@agrotools1/at-components 0.2.1 → 0.2.3

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.
Files changed (553) hide show
  1. package/dist/AGraphicContainer-98a4c8a4.js +109 -0
  2. package/dist/APIKeyMixin-9511e0a5.js +19 -0
  3. package/dist/Analysis-4b1d1fb5.js +31 -0
  4. package/dist/ArcGISCachedService-93e2cb27.js +47 -0
  5. package/dist/ArcGISService-3f8d89c1.js +25 -0
  6. package/dist/AreaMeasurement2D-e0bb230c.js +405 -0
  7. package/dist/AreaMeasurement3D-a9959ecf.js +488 -0
  8. package/dist/AttachmentInfo-601c56e2.js +34 -0
  9. package/dist/AttachmentQuery-3504d550.js +18 -0
  10. package/dist/AttributeStore-b90878e3.js +1707 -0
  11. package/dist/BaseDynamicLayerView2D-b2faf028.js +63 -0
  12. package/dist/BindType-5e76c8e1.js +7 -0
  13. package/dist/BingMapsLayer-5d79fe2b.js +112 -0
  14. package/dist/Bitmap-f775c851.js +128 -0
  15. package/dist/BitmapContainer-af5942b8.js +23 -0
  16. package/dist/BlendLayer-a792edf6.js +13 -0
  17. package/dist/BoundsStore-789624df.js +63 -0
  18. package/dist/BufferObject-cbd0168e.js +100 -0
  19. package/dist/BufferView-004ad517.js +683 -0
  20. package/dist/BuildingSceneLayer-25bc760b.js +535 -0
  21. package/dist/Button/Button.d.ts +24 -2
  22. package/dist/Button-70963624.js +36 -0
  23. package/dist/ByteSizeUnit-90df2840.js +7 -0
  24. package/dist/CSVLayer-fd3b6750.js +208 -0
  25. package/dist/CSVSourceWorker-eb24cd85.js +367 -0
  26. package/dist/CatalogDynamicGroupLayerView2D-dfc700a4.js +66 -0
  27. package/dist/CatalogFootprintLayerView2D-6eb16597.js +76 -0
  28. package/dist/CatalogLayer-1cc632fe.js +262 -0
  29. package/dist/CatalogLayerView2D-d143aa34.js +52 -0
  30. package/dist/Chips/index.d.ts +1 -0
  31. package/dist/CircularArray-b2bc1dfd.js +40 -0
  32. package/dist/ClassBreaksDefinition-07ba0c64.js +18 -0
  33. package/dist/ColorMaterial.glsl-e7801766.js +64 -0
  34. package/dist/ColorSet-df5696b5.js +45 -0
  35. package/dist/ColorStop-7187f368.js +29 -0
  36. package/dist/Container-ac97765a.js +521 -0
  37. package/dist/CustomParametersMixin-b3432b3e.js +12 -0
  38. package/dist/DatePicker/DatePicker.helper.d.ts +22 -0
  39. package/dist/DatePicker/DatePickerCalendar/DatePickerCalendar.helper.d.ts +18 -0
  40. package/dist/DatePicker/index.d.ts +2 -0
  41. package/dist/DefaultMaterial.glsl-3cc4efe7.js +42 -0
  42. package/dist/DefaultMaterial_COLOR_GAMMA-337c63aa.js +653 -0
  43. package/dist/DefaultTheme-12dffc66.js +130 -0
  44. package/dist/DeleteForwardEditsParameters-ae76d898.js +18 -0
  45. package/dist/DimensionLayer-9eb47c76.js +129 -0
  46. package/dist/DirectLineMeasurement3D-e9903136.js +449 -0
  47. package/dist/DistanceMeasurement2D-a4853462.js +303 -0
  48. package/dist/DoubleArray-5076283e.js +25 -0
  49. package/dist/EdgeProcessingWorker-c1783ddd.js +63 -0
  50. package/dist/EditBusLayer-e812f4c9.js +107 -0
  51. package/dist/ElevationInfo-fad03d5e.js +56 -0
  52. package/dist/ElevationLayer-397792d5.js +129 -0
  53. package/dist/ElevationQuery-beceb62f.js +598 -0
  54. package/dist/ElevationSamplerWorker-0048a204.js +62 -0
  55. package/dist/ExportImageParameters-c6c4bc61.js +66 -0
  56. package/dist/ExportStrategy-908f5b8d.js +93 -0
  57. package/dist/ExportWMSImageParameters-34da6b46.js +33 -0
  58. package/dist/External-14daf0c1.js +110 -0
  59. package/dist/FeatureCollectionSnappingSource-f97a1829.js +130 -0
  60. package/dist/FeatureCommandQueue-d4817eac.js +1244 -0
  61. package/dist/FeatureEffect-08976bbd.js +39 -0
  62. package/dist/FeatureEffectLayer-05c258f4.js +13 -0
  63. package/dist/FeatureFilter-8c5e44b1.js +27 -0
  64. package/dist/FeatureLayer-d3659466.js +693 -0
  65. package/dist/FeatureLayerBase-9b63f732.js +148 -0
  66. package/dist/FeatureLayerSource-960f1c01.js +444 -0
  67. package/dist/FeatureLayerView2D-7503e1ed.js +1967 -0
  68. package/dist/FeaturePipelineWorker-d4301d2a.js +3633 -0
  69. package/dist/FeatureReductionLayer-e6cf73ac.js +225 -0
  70. package/dist/FeatureReductionSelection-d90249a7.js +22 -0
  71. package/dist/FeatureServiceSnappingSource-9e49ca72.js +481 -0
  72. package/dist/FeatureServiceSnappingSourceWorker-39b093b3.js +747 -0
  73. package/dist/FeatureSet-d79f0e48.js +188 -0
  74. package/dist/FeatureStore-eb4b87c0.js +131 -0
  75. package/dist/FeatureTemplate-edb1b782.js +12 -0
  76. package/dist/FeatureType-bba29adb.js +25 -0
  77. package/dist/FieldsIndex-75cca4d0.js +109 -0
  78. package/dist/FormTemplate-22911c47.js +350 -0
  79. package/dist/GeoJSONLayer-b33c96b8.js +236 -0
  80. package/dist/GeoJSONSourceWorker-b04ff552.js +247 -0
  81. package/dist/GeoRSSLayer-6e5fcd0e.js +73 -0
  82. package/dist/GeoRSSLayerView2D-21b6b12e.js +140 -0
  83. package/dist/GeometryUtils-fa897cbd.js +403 -0
  84. package/dist/GraphicContainer-1fd6bfce.js +26 -0
  85. package/dist/GraphicManipulator-f3b7dc9b.js +1499 -0
  86. package/dist/GraphicsLayer-e0686779.js +38 -0
  87. package/dist/GraphicsLayerView2D-a7eba2fe.js +114 -0
  88. package/dist/GraphicsSnappingSource-594f402a.js +273 -0
  89. package/dist/GraphicsView2D-347562b8.js +620 -0
  90. package/dist/GroupLayer-7ae0a916.js +147 -0
  91. package/dist/GroupLayerView2D-ffcde606.js +98 -0
  92. package/dist/HUDMaterial.glsl-b0a3e0ce.js +65 -0
  93. package/dist/HighlightCounter-e18f0179.js +41 -0
  94. package/dist/HighlightGraphicContainer-fd774cea.js +18 -0
  95. package/dist/I3SBinaryReader-190e99de.js +310 -0
  96. package/dist/I3SLayerDefinitions-6ddaca60.js +55 -0
  97. package/dist/I3SUtil-44b83dc0.js +59 -0
  98. package/dist/IdentityManager-fbe91c13.js +899 -0
  99. package/dist/ImageHistogramParameters-d64fd9c8.js +905 -0
  100. package/dist/ImageryLayer-67878a78.js +1799 -0
  101. package/dist/ImageryLayerView2D-ae45faba.js +352 -0
  102. package/dist/ImageryTileLayer-9dca8b93.js +2157 -0
  103. package/dist/ImageryTileLayerView2D-977f66aa.js +1110 -0
  104. package/dist/ImmutableArray-fb7b7a6a.js +20 -0
  105. package/dist/Indices-e6dc3b15.js +67 -0
  106. package/dist/Input/Input.core.d.ts +37 -11
  107. package/dist/Input/index.d.ts +37 -11
  108. package/dist/IntegratedMesh3DTilesLayer-8811e7bf.js +112 -0
  109. package/dist/IntegratedMeshLayer-9162c0b5.js +141 -0
  110. package/dist/InteractiveAnalysisViewModel-b046fcb9.js +7397 -0
  111. package/dist/InterleavedLayout-32973c8a.js +163 -0
  112. package/dist/KMLLayer-80f81df7.js +162 -0
  113. package/dist/KMLLayerView2D-b6ba3b80.js +253 -0
  114. package/dist/KnowledgeGraphLayerView2D-ae91bd81.js +43 -0
  115. package/dist/LRUCache-27e8c401.js +32 -0
  116. package/dist/LabelClass-d9a476d6.js +135 -0
  117. package/dist/LabelMetric-e2728bbf.js +400 -0
  118. package/dist/LaserlinePath.glsl-60d00e61.js +64 -0
  119. package/dist/Laserlines.glsl-499a6cbf.js +65 -0
  120. package/dist/LayerFloorInfo-d05cf9dd.js +15 -0
  121. package/dist/LayerView-036988a9.js +206 -0
  122. package/dist/LercWorker-b1b4bb47.js +157 -0
  123. package/dist/LineOfSightLayer-9a9a60b7.js +147 -0
  124. package/dist/LinkChartLayer-d61803bb.js +1027 -0
  125. package/dist/Lyr3DWorker-87be14e0.js +82 -0
  126. package/dist/MD5-1b5ec1c3.js +76 -0
  127. package/dist/MagnifierPrograms-da7a27ab.js +806 -0
  128. package/dist/Map/Map.d.ts +26 -0
  129. package/dist/Map/index.d.ts +1 -0
  130. package/dist/Map/types/index.d.ts +38 -0
  131. package/dist/Map/utils/index.d.ts +24 -0
  132. package/dist/MapImageLayer-f07adf1a.js +169 -0
  133. package/dist/MapImageLayerView2D-d1b140c3.js +146 -0
  134. package/dist/MapNotesLayer-c662d147.js +283 -0
  135. package/dist/MapNotesLayerView2D-bf9ac698.js +161 -0
  136. package/dist/MapServiceLayerViewHelper-fb724de9.js +288 -0
  137. package/dist/MeasurementWidgetContent-e4888ef2.js +2642 -0
  138. package/dist/MediaLayer-36d873a3.js +523 -0
  139. package/dist/MediaLayerView2D-e58b8ec0.js +332 -0
  140. package/dist/MemCache-a9232ec2.js +227 -0
  141. package/dist/MemorySourceWorker-20ff27d6.js +222 -0
  142. package/dist/Mesh-3839826a.js +980 -0
  143. package/dist/MeshLocalVertexSpace-00151564.js +19 -0
  144. package/dist/MultiOriginJSONSupport-bb258670.js +158 -0
  145. package/dist/NestedMap-83f8e815.js +29 -0
  146. package/dist/OGCFeatureLayer-2a8b7ecc.js +211 -0
  147. package/dist/OGCFeatureLayerView2D-185f9649.js +82 -0
  148. package/dist/ObjectStack-10d91171.js +21 -0
  149. package/dist/Octree-78797046.js +495 -0
  150. package/dist/OpenStreetMapLayer-b0a17790.js +30 -0
  151. package/dist/OperationalLayer-55af27d6.js +44 -0
  152. package/dist/OptimizedFeatureSet-54e095c4.js +12 -0
  153. package/dist/OptimizedGeometry-3b808152.js +68 -0
  154. package/dist/OrderByInfo-22e3c805.js +16 -0
  155. package/dist/OrderIndependentTransparency-3eadfe42.js +214 -0
  156. package/dist/OrderedLayer-1403a591.js +26 -0
  157. package/dist/OrientedImageryLayer-8ec8d7d1.js +216 -0
  158. package/dist/OverlayCompositing.glsl-ba3bd81d.js +65 -0
  159. package/dist/OverrideHelper-82325a2c.js +242 -0
  160. package/dist/PBFDecoderWorker-f6517afc.js +213 -0
  161. package/dist/PointCloudLayer-cff43a10.js +197 -0
  162. package/dist/PointCloudUniqueValueRenderer-f337a895.js +115 -0
  163. package/dist/PointCloudWorker-cdb28dc1.js +212 -0
  164. package/dist/PooledRBush-ee4e60af.js +272 -0
  165. package/dist/Popup-c7f55588.js +3990 -0
  166. package/dist/PortalLayer-07b3c53e.js +126 -0
  167. package/dist/Program-ba2f18b2.js +694 -0
  168. package/dist/ProgramTemplate-eee4f097.js +35 -0
  169. package/dist/ProgressBar/ProgressBar.d.ts +0 -13
  170. package/dist/QueryEngine-10c97624.js +896 -0
  171. package/dist/QueryEngineCapabilities-0d8477a2.js +4 -0
  172. package/dist/QueryTask-115430b6.js +119 -0
  173. package/dist/RasterSymbolizer-fbf433fe.js +3024 -0
  174. package/dist/RasterVFDisplayObject-20b0dd86.js +581 -0
  175. package/dist/RasterWorker-44c37e20.js +78 -0
  176. package/dist/RawBlockCache-25203dbd.js +185 -0
  177. package/dist/RealisticTree.glsl-bc07c4dc.js +42 -0
  178. package/dist/Rect-894f011c.js +14 -0
  179. package/dist/RefreshableLayer-9550b85a.js +80 -0
  180. package/dist/RefreshableLayerView-601f7038.js +16 -0
  181. package/dist/Relationship-c662830e.js +64 -0
  182. package/dist/RelationshipQuery-765f068e.js +22 -0
  183. package/dist/RenderState-b244097f.js +7 -0
  184. package/dist/RenderingContext-3db74548.js +889 -0
  185. package/dist/RibbonLine.glsl-c6a715b7.js +65 -0
  186. package/dist/RouteLayer-3f5411f3.js +786 -0
  187. package/dist/RouteLayerView2D-a5fd4cbf.js +195 -0
  188. package/dist/SDFHelper-a34e90ee.js +140 -0
  189. package/dist/SSAO.glsl-5491a708.js +43 -0
  190. package/dist/SSAOBlur.glsl-f3068b8e.js +42 -0
  191. package/dist/ScaleRangeLayer-7ddf00b4.js +21 -0
  192. package/dist/SceneLayer-c594bfc3.js +542 -0
  193. package/dist/SceneLayerSnappingSource-a0504ac7.js +218 -0
  194. package/dist/SceneLayerSnappingSourceWorker-a04d6692.js +112 -0
  195. package/dist/SceneLayerWorker-1865768e.js +164 -0
  196. package/dist/SceneService-fb9f0142.js +215 -0
  197. package/dist/Scheduler-eacc84bb.js +373 -0
  198. package/dist/Select/Item/Item.d.ts +2 -1
  199. package/dist/Select/{Select.multiple.d.ts → Multiple/Select.multiple.d.ts} +26 -16
  200. package/dist/Select/Select.core.d.ts +18 -15
  201. package/dist/Select/{Select.single.d.ts → Single/Select.single.d.ts} +23 -14
  202. package/dist/Select/index.d.ts +42 -24
  203. package/dist/ShadedColorMaterial.glsl-db97956b.js +64 -0
  204. package/dist/SnappingOperation-9622a00d.js +48 -0
  205. package/dist/SourceLayerData-7016f1a5.js +116 -0
  206. package/dist/SpatialFilter-d20d4f50.js +1701 -0
  207. package/dist/Stop-68022e32.js +281 -0
  208. package/dist/StreamLayer-7c837e3d.js +188 -0
  209. package/dist/StreamLayerView2D-586f5a6a.js +164 -0
  210. package/dist/StyleDefinition-f4862d5a.js +36 -0
  211. package/dist/StyleRepository-fba75e70.js +2212 -0
  212. package/dist/SublayersOwner-3dc574cd.js +545 -0
  213. package/dist/SubtypeGroupLayer-1f9c5398.js +514 -0
  214. package/dist/SubtypeGroupLayerView2D-0f108d9d.js +84 -0
  215. package/dist/Tabs/Tab/Tab.d.ts +3 -3
  216. package/dist/TechniqueInstance-0481dbff.js +233 -0
  217. package/dist/TemporalLayer-8116b4a4.js +23 -0
  218. package/dist/Texture-22a8cca5.js +501 -0
  219. package/dist/TextureOnly.glsl-458f8148.js +65 -0
  220. package/dist/Theme-f05b8eb0.js +3426 -0
  221. package/dist/Tick-aef93b48.js +723 -0
  222. package/dist/TileContainer-0bf0ea1b.js +31 -0
  223. package/dist/TileInfoTilemapCache-d78858c0.js +38 -0
  224. package/dist/TileLayer-0edee064.js +194 -0
  225. package/dist/TileLayerView2D-78d5801b.js +187 -0
  226. package/dist/TilemapCache-79699d61.js +189 -0
  227. package/dist/TimeInfo-40c96ade.js +42 -0
  228. package/dist/TimeOnly-9ee66ca6.js +706 -0
  229. package/dist/Tooltip-e7498dc9.js +138 -0
  230. package/dist/TopFeaturesQuery-ad224e01.js +32 -0
  231. package/dist/TurboLine-6ab04aef.js +565 -0
  232. package/dist/UniqueValueRenderer-eaa5f8a6.js +1039 -0
  233. package/dist/UnknownLayer-e280ddd4.js +30 -0
  234. package/dist/UnknownTimeZone-220952b5.js +15 -0
  235. package/dist/UnsupportedLayer-447f7676.js +31 -0
  236. package/dist/UpdateTracking2D-e9adad8f.js +8566 -0
  237. package/dist/Util-002f5109.js +57 -0
  238. package/dist/VectorTileLayer-3210be81.js +544 -0
  239. package/dist/VectorTileLayerView2D-6a51e3b8.js +2108 -0
  240. package/dist/Version-3de8cbca.js +33 -0
  241. package/dist/VertexArrayObject-07998745.js +73 -0
  242. package/dist/VertexAttribute-faad30bf.js +11 -0
  243. package/dist/VertexColor.glsl-e415cf02.js +2683 -0
  244. package/dist/VertexElementDescriptor-d7c718c2.js +8 -0
  245. package/dist/VertexSnappingCandidate-b676241f.js +13 -0
  246. package/dist/VideoLayerView2D-f659dd0d.js +124 -0
  247. package/dist/VoxelLayer-003f82ff.js +631 -0
  248. package/dist/WFSLayer-3da6c5f7.js +221 -0
  249. package/dist/WFSSourceWorker-9a11693a.js +157 -0
  250. package/dist/WGLContainer-3d159b63.js +5426 -0
  251. package/dist/WMSLayer-fc0632f8.js +536 -0
  252. package/dist/WMSLayerView2D-54e80e1b.js +117 -0
  253. package/dist/WMTSLayer-9324b12b.js +531 -0
  254. package/dist/WMTSLayerView2D-3ef936db.js +142 -0
  255. package/dist/WebTileLayer-45c563ff.js +110 -0
  256. package/dist/WhereClause-7a28b740.js +2766 -0
  257. package/dist/WorkerHandle-0d54a6c7.js +47 -0
  258. package/dist/WorkerTileHandler-786c2b24.js +1539 -0
  259. package/dist/action-163397e3.js +198 -0
  260. package/dist/action-group-4859fb97.js +145 -0
  261. package/dist/action-menu-2d70b2fc.js +1759 -0
  262. package/dist/agrotools-theme.css.map +1 -1
  263. package/dist/apng-9b71d52c.js +392 -0
  264. package/dist/ar-a17f8064.js +18 -0
  265. package/dist/arcade-fa309282.js +229 -0
  266. package/dist/arcadeAsyncRuntime-738498fd.js +943 -0
  267. package/dist/arcadeUtils-f71d80fa.js +8741 -0
  268. package/dist/arcgis-knowledge-client-core-6056bcea.js +1218 -0
  269. package/dist/arcgis-knowledge-client-core-simd-9bc1f83e.js +1218 -0
  270. package/dist/arcgisLayers-b2b878bd.js +152 -0
  271. package/dist/associatedFeatureServiceUtils-df5b5187.js +92 -0
  272. package/dist/axisAngleDegrees-32643b7c.js +49 -0
  273. package/dist/basicInterfaces-fa4f5fa7.js +30 -0
  274. package/dist/basis_transcoder-3187cc92.js +1248 -0
  275. package/dist/bg_BG-9950a70b.js +18 -0
  276. package/dist/bs_BA-60482871.js +18 -0
  277. package/dist/ca_ES-a121088e.js +18 -0
  278. package/dist/calcite-action-bar-5a87c23c.js +303 -0
  279. package/dist/calcite-action-ee2ca847.js +22 -0
  280. package/dist/calcite-action-group-19aa86ee.js +28 -0
  281. package/dist/calcite-button-8e9175c0.js +228 -0
  282. package/dist/calcite-flow-57d26d2d.js +128 -0
  283. package/dist/calcite-flow-item-4a3e3fc0.js +499 -0
  284. package/dist/calcite-icon-d99e280a.js +16 -0
  285. package/dist/calcite-input-28b20785.js +24 -0
  286. package/dist/calcite-label-4f30e08d.js +79 -0
  287. package/dist/calcite-list-0cee7628.js +2135 -0
  288. package/dist/calcite-list-item-0a19efa8.js +576 -0
  289. package/dist/calcite-list-item-group-0706662f.js +71 -0
  290. package/dist/calcite-loader-865045b1.js +14 -0
  291. package/dist/calcite-modal-3e4da6fd.js +333 -0
  292. package/dist/calcite-notice-50b74ab7.js +181 -0
  293. package/dist/calcite-option-713c1d40.js +94 -0
  294. package/dist/calcite-scrim-809fbd0b.js +18 -0
  295. package/dist/calcite-select-28d8edfc.js +231 -0
  296. package/dist/capabilities-c8f838be.js +50 -0
  297. package/dist/chartCommon-13718cda.js +256 -0
  298. package/dist/chartUtilsAm5-6be145fb.js +2954 -0
  299. package/dist/clientSideDefaults-5c1f97c9.js +39 -0
  300. package/dist/colorRamps-8792655e.js +38 -0
  301. package/dist/colorUtils-54f4b662.js +164 -0
  302. package/dist/commonProperties-f9559903.js +60 -0
  303. package/dist/component-51a10bc0.js +18 -0
  304. package/dist/computeTranslationToOriginAndRotation-4876cb93.js +60 -0
  305. package/dist/conditionalSlot-87175989.js +27 -0
  306. package/dist/config-61215215.js +7 -0
  307. package/dist/constants-5bd557fe.js +5 -0
  308. package/dist/createConnection-f974a00a.js +299 -0
  309. package/dist/crsUtils-59933b10.js +7 -0
  310. package/dist/cs_CZ-1b968650.js +18 -0
  311. package/dist/da_DK-e0fe1642.js +18 -0
  312. package/dist/dataUtils-7c276b73.js +1421 -0
  313. package/dist/date-1c28c6a5.js +52 -0
  314. package/dist/de_CH-b0dbd4c8.js +6 -0
  315. package/dist/de_DE-8609ef65.js +6 -0
  316. package/dist/debounce-de27a42a.js +121 -0
  317. package/dist/deduplicate-59fb9cac.js +89 -0
  318. package/dist/defaults-2bfa4a36.js +31 -0
  319. package/dist/defaultsJSON-ba17aa15.js +10 -0
  320. package/dist/definitions-a00a3a6c.js +52 -0
  321. package/dist/deleteForwardEdits-f653b513.js +13 -0
  322. package/dist/devEnvironmentUtils-42cb97c7.js +11 -0
  323. package/dist/diffUtils-e71a6152.js +90 -0
  324. package/dist/dom-b589b728.js +358 -0
  325. package/dist/doublePrecisionUtils-46e21550.js +22 -0
  326. package/dist/drapedUtils-b42fcbc6.js +75 -0
  327. package/dist/earcut-6fa1a128.js +292 -0
  328. package/dist/edgeProcessing-2ff1f201.js +252 -0
  329. package/dist/editingSupport-68545668.js +203 -0
  330. package/dist/editsZScale-c7cdd215.js +37 -0
  331. package/dist/el_GR-5cfd1e7e.js +18 -0
  332. package/dist/elevationInfoUtils-5456a079.js +126 -0
  333. package/dist/en_CA-47f2633b.js +18 -0
  334. package/dist/en_US-47f2633b.js +18 -0
  335. package/dist/enums-25d066fc.js +13 -0
  336. package/dist/enums-2c166c09.js +99 -0
  337. package/dist/enums-fa8f05ab.js +152 -0
  338. package/dist/es_ES-489878a2.js +6 -0
  339. package/dist/et_EE-6472669a.js +18 -0
  340. package/dist/executeForIds-4ab75c0d.js +14 -0
  341. package/dist/executeForTopCount-7e095ec1.js +17 -0
  342. package/dist/executeForTopExtents-19daf9d0.js +17 -0
  343. package/dist/executeForTopIds-1ba3a4af.js +17 -0
  344. package/dist/executeQueryJSON-46168866.js +15 -0
  345. package/dist/executeQueryPBF-d8623daf.js +152 -0
  346. package/dist/executeRelationshipQuery-011dfb45.js +53 -0
  347. package/dist/executeTopFeaturesQuery-02166801.js +18 -0
  348. package/dist/featureConversionUtils-650d7601.js +479 -0
  349. package/dist/featureLayerUtils-64e09283.js +142 -0
  350. package/dist/featureLayerUtils-b07f9c11.js +250 -0
  351. package/dist/featureSetUtils-9d37d6f8.js +2530 -0
  352. package/dist/featuresetbase-62aeb079.js +707 -0
  353. package/dist/featuresetgeom-51f9fc4e.js +99 -0
  354. package/dist/featuresetstats-4db32894.js +81 -0
  355. package/dist/featuresetstring-990c3287.js +95 -0
  356. package/dist/fetchService-5198dd4a.js +33 -0
  357. package/dist/fi_FI-d7a3a525.js +18 -0
  358. package/dist/fieldProperties-edfa24cb.js +33 -0
  359. package/dist/floatRGBA-516d7961.js +20 -0
  360. package/dist/floorFilterUtils-936f7587.js +19 -0
  361. package/dist/focusTrapComponent-e849bb89.js +475 -0
  362. package/dist/form-99719d52.js +138 -0
  363. package/dist/fr_FR-a88f2596.js +7 -0
  364. package/dist/geohashUtils-2bc76440.js +85 -0
  365. package/dist/geojson-603231df.js +208 -0
  366. package/dist/geomasync-e9063b4c.js +567 -0
  367. package/dist/geometryEngine-d3bb2fd6.js +192 -0
  368. package/dist/geometryEngineAsync-55aa6170.js +217 -0
  369. package/dist/geometryEngineBase-527e8b63.js +18463 -0
  370. package/dist/geometryEngineJSON-28087174.js +46 -0
  371. package/dist/geometryEngineJSON-d54949f9.js +171 -0
  372. package/dist/geometryEngineWorker-dc2c7127.js +11 -0
  373. package/dist/geometryServiceUtils-6a3e1e93.js +28 -0
  374. package/dist/georeference-ed8b2c30.js +291 -0
  375. package/dist/gif-204e82dd.js +323 -0
  376. package/dist/glUtil-8f8bce6b.js +19 -0
  377. package/dist/gltfexport-b2566542.js +705 -0
  378. package/dist/groupLayerUtils-ea9e6359.js +39 -0
  379. package/dist/guid-5ee54248.js +17 -0
  380. package/dist/he_IL-e34cf273.js +18 -0
  381. package/dist/heatmapUtils-56758920.js +45 -0
  382. package/dist/highlightReasons-de432106.js +19 -0
  383. package/dist/hr_HR-6a124f87.js +18 -0
  384. package/dist/hu_HU-58f3feb6.js +18 -0
  385. package/dist/hydrated-0e1c7565.js +40 -0
  386. package/dist/i3s-bb0b5b67.js +809 -0
  387. package/dist/icon-c6e3bd23.js +127 -0
  388. package/dist/id_ID-18d97715.js +18 -0
  389. package/dist/imageBitmapUtils-881d8c64.js +23 -0
  390. package/dist/imageUtils-57eeedc5.js +69 -0
  391. package/dist/imageUtils-ef69c578.js +89 -0
  392. package/dist/imageryUtils-23f51cb1.js +43 -0
  393. package/dist/index-01c737ed.js +42563 -0
  394. package/dist/index.d.ts +2 -1
  395. package/dist/index.js +22 -10184
  396. package/dist/infoFor3D-bf4e6c95.js +58 -0
  397. package/dist/input-message-673a9baa.js +92 -0
  398. package/dist/input2-bbf6454e.js +575 -0
  399. package/dist/interactive-aeb2cb9f.js +80 -0
  400. package/dist/interfaces-fac3cfda.js +7 -0
  401. package/dist/it_IT-49e70bbf.js +6 -0
  402. package/dist/ja_JP-eaef2cc3.js +18 -0
  403. package/dist/json-5febf88a.js +57 -0
  404. package/dist/jsonContext-2dc288b1.js +15 -0
  405. package/dist/jsonUtils-1abd4bfc.js +59 -0
  406. package/dist/jsonUtils-913fa1bd.js +86 -0
  407. package/dist/jsonUtils-f6a5e63b.js +476 -0
  408. package/dist/kmlUtils-7c2744fe.js +112 -0
  409. package/dist/knowledgeGraphService-6a349e04.js +739 -0
  410. package/dist/knowledgegraph-c91b0bb2.js +149 -0
  411. package/dist/ko_KR-5c972fd8.js +14 -0
  412. package/dist/label2-1ab25f27.js +90 -0
  413. package/dist/labelUtils-a3634e8f.js +61 -0
  414. package/dist/labelingInfo-568c9210.js +46 -0
  415. package/dist/layerViewUtils-052e603c.js +10 -0
  416. package/dist/layersCreator-4a5366ea.js +151 -0
  417. package/dist/layersLoader-b87d4857.js +197 -0
  418. package/dist/lazyLayerLoader-8817000c.js +10 -0
  419. package/dist/lclayout-64c67b4e.js +773 -0
  420. package/dist/lengthUtils-695e744c.js +5 -0
  421. package/dist/lerc-wasm-13192bf3.js +325 -0
  422. package/dist/libtess-asm-4883179d.js +3673 -0
  423. package/dist/libtess-fc70d1ce.js +269 -0
  424. package/dist/lineSegment-3aa941f5.js +76 -0
  425. package/dist/loadGLTFMesh-db6645f5.js +181 -0
  426. package/dist/loadable-266f324b.js +24 -0
  427. package/dist/loader-d1ce1bc1.js +79 -0
  428. package/dist/lt_LT-26f13fd1.js +6 -0
  429. package/dist/lv_LV-4feafa92.js +18 -0
  430. package/dist/lyr3DWorker-dd48e619.js +2108 -0
  431. package/dist/mapViewDeps-226d9da3.js +3052 -0
  432. package/dist/mask-svg-30f64a7b.js +4 -0
  433. package/dist/mat3f64-03233387.js +19 -0
  434. package/dist/mat4f64-cce69db4.js +19 -0
  435. package/dist/mediaLayerUtils-ae485c27.js +35 -0
  436. package/dist/meshFeatureSet-8a2ad011.js +126 -0
  437. package/dist/meshVertexSpaceUtils-6efe3dcc.js +58 -0
  438. package/dist/multiOriginJSONSupportUtils-207ba4d4.js +6 -0
  439. package/dist/multidimensionalUtils-508a3f3f.js +290 -0
  440. package/dist/nb_NO-21543153.js +18 -0
  441. package/dist/nl_NL-7876d97f.js +7 -0
  442. package/dist/normalizeUtilsSync-1dae280b.js +181 -0
  443. package/dist/number-5aa3a81b.js +128 -0
  444. package/dist/objectIdUtils-93dae423.js +14 -0
  445. package/dist/objectResourceUtils-642ab03e.js +1455 -0
  446. package/dist/observers-f646a6a4.js +30 -0
  447. package/dist/ogcFeatureUtils-46ac1c44.js +206 -0
  448. package/dist/openCloseComponent-47eb52c6.js +37 -0
  449. package/dist/orientedBoundingBox-554ccdc6.js +447 -0
  450. package/dist/originUtils-87edf087.js +9 -0
  451. package/dist/overlay-svg-c3941b3b.js +4 -0
  452. package/dist/parser-0701286c.js +488 -0
  453. package/dist/pbf-5dd791f5.js +215 -0
  454. package/dist/pbfQueryUtils-a6ca7e23.js +422 -0
  455. package/dist/pe-wasm-6c16b121.js +887 -0
  456. package/dist/persistable-9eb0e8df.js +89 -0
  457. package/dist/perspectiveUtils-b194621d.js +42 -0
  458. package/dist/pieChart-b97433d0.js +555 -0
  459. package/dist/pl_PL-276c6dae.js +18 -0
  460. package/dist/plane-3398eec1.js +160 -0
  461. package/dist/popupUtils-c444b896.js +22 -0
  462. package/dist/popupUtils-d871563b.js +50 -0
  463. package/dist/portalItemUtils-4c4caad0.js +57 -0
  464. package/dist/portalLayers-cb07742f.js +312 -0
  465. package/dist/portalUtils-effd590f.js +7 -0
  466. package/dist/programUtils-65af7b7c.js +59 -0
  467. package/dist/project-ee9c2947.js +21 -0
  468. package/dist/projectPointToVector-7dc831a9.js +14 -0
  469. package/dist/projectVectorToVector-5163db7a.js +13 -0
  470. package/dist/pt_BR-4fae3055.js +6 -0
  471. package/dist/pt_PT-14d9efb1.js +6 -0
  472. package/dist/quantityUtils-5cd4cf90.js +33 -0
  473. package/dist/quantizationUtils-0a8f74c6.js +68 -0
  474. package/dist/quat-a508aed3.js +104 -0
  475. package/dist/quatf64-bec1af25.js +19 -0
  476. package/dist/query-b6e1fd14.js +89 -0
  477. package/dist/queryAttachments-7b39ebdc.js +39 -0
  478. package/dist/queryEngineUtils-cb8e309e.js +21 -0
  479. package/dist/queryTopFeatures-2e0e3941.js +50 -0
  480. package/dist/queryZScale-c5733d0a.js +12 -0
  481. package/dist/rasterProjectionHelper-213afa27.js +577 -0
  482. package/dist/rasterUtils-f2e44e8b.js +122 -0
  483. package/dist/rasterizingUtils-25cc0190.js +46 -0
  484. package/dist/request-e0c679b3.js +46 -0
  485. package/dist/requestImageUtils-37d79281.js +8 -0
  486. package/dist/resourceExtension-5f3f1c80.js +17 -0
  487. package/dist/resourceUtils-0d68cbc2.js +69 -0
  488. package/dist/resourceUtils-374db840.js +62 -0
  489. package/dist/resourceUtils-43ce192b.js +42 -0
  490. package/dist/ro_RO-8e733cf5.js +18 -0
  491. package/dist/ru_RU-f7bafc90.js +6 -0
  492. package/dist/saveAPIKeyUtils-1a3d4a8a.js +8 -0
  493. package/dist/saveUtils-43fdc547.js +24 -0
  494. package/dist/scaleUtils-bdf8b6cb.js +23 -0
  495. package/dist/scrim-44eb4dc0.js +114 -0
  496. package/dist/serviceCapabilitiesUtils-823612b8.js +64 -0
  497. package/dist/sizeVariableUtils-a1b694d8.js +27 -0
  498. package/dist/sk_SK-c279eea3.js +6 -0
  499. package/dist/sl_SL-e40950dd.js +6 -0
  500. package/dist/sourceUtils-01d115c6.js +71 -0
  501. package/dist/sphere-908cd9aa.js +199 -0
  502. package/dist/sr_RS-b1835dfa.js +18 -0
  503. package/dist/statsWorker-49f9befe.js +37 -0
  504. package/dist/streamLayerUtils-29324e05.js +31 -0
  505. package/dist/style.css +1 -1
  506. package/dist/styleUtils-82e8da52.js +75 -0
  507. package/dist/styleUtils-8541d60d.js +14 -0
  508. package/dist/sublayerUtils-eaac2486.js +37 -0
  509. package/dist/substitute-1f578d70.js +52 -0
  510. package/dist/sv_SE-15ca9e36.js +6 -0
  511. package/dist/symbolColorUtils-18fd6b3d.js +8 -0
  512. package/dist/symbolLayerUtils-4c58b291.js +31 -0
  513. package/dist/symbologySnappingCandidates-14d94b6b.js +221 -0
  514. package/dist/t9n-c1c2b6c8.js +349 -0
  515. package/dist/testSVGPremultipliedAlpha-159dac90.js +94 -0
  516. package/dist/th_TH-bf624a56.js +18 -0
  517. package/dist/tileUtils-3e0c8c1d.js +7 -0
  518. package/dist/timeSupport-3f529cdb.js +410 -0
  519. package/dist/tr_TR-ca5c315f.js +18 -0
  520. package/dist/triangle-8a3a2ba8.js +98 -0
  521. package/dist/types-adba9034.js +19 -0
  522. package/dist/uk_UA-4b3cb86d.js +6 -0
  523. package/dist/unitConversionUtils-f0ebaf75.js +17 -0
  524. package/dist/unitFormatUtils-555e2d94.js +40 -0
  525. package/dist/uploadAssetErrors-d1389781.js +70 -0
  526. package/dist/uploadAssets-5e85f09d.js +330 -0
  527. package/dist/utils-3a10b10c.js +34 -0
  528. package/dist/utils-505c54e9.js +91 -0
  529. package/dist/utils-5432e258.js +433 -0
  530. package/dist/utils-7a88ec6a.js +419 -0
  531. package/dist/utils-7fa9cdf9.js +2746 -0
  532. package/dist/utils-d252c575.js +73 -0
  533. package/dist/utils-f07e00b3.js +232 -0
  534. package/dist/utils-fda10b4b.js +79 -0
  535. package/dist/utils3-c34ab97c.js +75 -0
  536. package/dist/vec3-f79c600d.js +81 -0
  537. package/dist/vec3f32-304a6a9c.js +36 -0
  538. package/dist/vec42-36edeb73.js +125 -0
  539. package/dist/vec4f32-b2628ced.js +38 -0
  540. package/dist/vec4f64-043e974c.js +45 -0
  541. package/dist/versionUtils-6935648b.js +161 -0
  542. package/dist/vi_VN-ad09e708.js +18 -0
  543. package/dist/visualVariableUtils-c425461a.js +267 -0
  544. package/dist/webStyleSymbolUtils-4f42a29f.js +48 -0
  545. package/dist/webglDeps-5f18210d.js +23 -0
  546. package/dist/wfsUtils-6f7f1e3e.js +343 -0
  547. package/dist/workerHelper-9dc9a790.js +11 -0
  548. package/dist/xmlUtils-64cc47e1.js +24 -0
  549. package/dist/xyChart-e5648fee.js +3335 -0
  550. package/dist/zh_Hans-61faef57.js +14 -0
  551. package/dist/zh_Hant-87a9767b.js +14 -0
  552. package/dist/zipjs-wrapper-1bd67e07.js +6496 -0
  553. package/package.json +3 -2
@@ -0,0 +1,1701 @@
1
+ import { x as T, n as f, t as g, s as m, a as y, r as j } from "./WhereClause-7a28b740.js";
2
+ import { D as X, an as h, ao as P, ap as k, aq as L, ar as x, as as O, at as ee, au as te, av as ne, aw as ae, ax as F, ay as re, az as se, aA as G, aB as B, aC as H } from "./arcadeUtils-f71d80fa.js";
3
+ import { n as M, m as ie, a as z } from "./TimeOnly-9ee66ca6.js";
4
+ import { hb as le, bR as oe, ez as Z } from "./index-01c737ed.js";
5
+ import { union as ue, geodesicArea as ce, planarArea as he, geodesicLength as de, planarLength as pe, relate as _e, crosses as fe, touches as ge, within as me, overlaps as ye, contains as Se, intersects as Y } from "./geometryEngineAsync-55aa6170.js";
6
+ import { Z as we } from "./FieldsIndex-75cca4d0.js";
7
+ class E {
8
+ constructor() {
9
+ this._databaseTypeMetaData = {}, this._layerInfo = {};
10
+ }
11
+ clearDatabaseType(e) {
12
+ this._databaseTypeMetaData[e] === void 0 && delete this._databaseTypeMetaData[e];
13
+ }
14
+ getDatabaseType(e) {
15
+ return e === "MUSTBESET" || this._databaseTypeMetaData[e] === void 0 ? null : this._databaseTypeMetaData[e];
16
+ }
17
+ setDatabaseType(e, t) {
18
+ this._databaseTypeMetaData[e] = t;
19
+ }
20
+ getLayerInfo(e) {
21
+ return this._layerInfo[e] === void 0 ? null : this._layerInfo[e];
22
+ }
23
+ setLayerInfo(e, t) {
24
+ this._layerInfo[e] = t;
25
+ }
26
+ clearLayerInfo(e) {
27
+ this._layerInfo[e] !== void 0 && delete this._layerInfo[e];
28
+ }
29
+ }
30
+ E.applicationCache = null;
31
+ class Te {
32
+ constructor(e, t) {
33
+ this._lastId = -1, this._progress = t, this._parent = e;
34
+ }
35
+ reset() {
36
+ this._lastId = -1;
37
+ }
38
+ async nextBatchAsArcadeFeatures(e, t) {
39
+ const n = await this.nextBatch(e);
40
+ return n === null ? n : n.map((a) => X.createFromGraphicLikeObject(a.geometry, a.attributes, this._parent, t));
41
+ }
42
+ nextBatch(e) {
43
+ if (this._parent._mainSetInUse !== null)
44
+ return this._parent._mainSetInUse.then((a) => this.nextBatch(e), (a) => this.nextBatch(e));
45
+ const t = { returnpromise: null, hasset: !1 }, n = [];
46
+ return t.returnpromise = new Promise((a, s) => {
47
+ this._parent._getSet(this._progress).then((i) => {
48
+ const l = i._known;
49
+ let o = l.length - 1;
50
+ if (l[l.length - 1] === "GETPAGES" && (o -= 1), this._lastId + e > o && l.length > 0 && l[l.length - 1] === "GETPAGES")
51
+ return void this._parent._expandPagedSet(i, this._parent._maxQueryRate(), 0, 0, this._progress).then((c) => {
52
+ t.hasset = !0, this._parent._mainSetInUse = null, this.nextBatch(e).then(a, s);
53
+ }, (c) => {
54
+ t.hasset = !0, this._parent._mainSetInUse = null, s(c);
55
+ });
56
+ const u = i._candidates;
57
+ if (o >= this._lastId + e || u.length === 0) {
58
+ for (let c = 0; c < e; c++) {
59
+ const p = c + this._lastId + 1;
60
+ if (p >= l.length)
61
+ break;
62
+ n[c] = l[p];
63
+ }
64
+ return this._lastId += n.length, n.length === 0 && (t.hasset = !0, this._parent._mainSetInUse = null, a([])), void this._parent._getFeatureBatch(n, this._progress).then((c) => {
65
+ t.hasset = !0, this._parent._mainSetInUse = null, a(c);
66
+ }, (c) => {
67
+ t.hasset = !0, this._parent._mainSetInUse = null, s(c);
68
+ });
69
+ }
70
+ this._parent._refineSetBlock(i, this._parent._maxProcessingRate(), this._progress).then(() => {
71
+ t.hasset = !0, this._parent._mainSetInUse = null, this.nextBatch(e).then(a, s);
72
+ }, (c) => {
73
+ t.hasset = !0, this._parent._mainSetInUse = null, s(c);
74
+ });
75
+ }, (i) => {
76
+ t.hasset = !0, this._parent._mainSetInUse = null, s(i);
77
+ });
78
+ }), t.hasset === !1 && (this._parent._mainSetInUse = t.returnpromise, t.hasset = !0), t.returnpromise;
79
+ }
80
+ next() {
81
+ if (this._parent._mainSetInUse !== null)
82
+ return this._parent._mainSetInUse.then((t) => this.next(), (t) => this.next());
83
+ const e = { returnpromise: null, hasset: !1 };
84
+ return e.returnpromise = new Promise((t, n) => {
85
+ this._parent._getSet(this._progress).then((a) => {
86
+ const s = a._known;
87
+ this._lastId < s.length - 1 ? s[this._lastId + 1] === "GETPAGES" ? this._parent._expandPagedSet(a, this._parent._maxQueryRate(), 0, 0, this._progress).then((i) => (e.hasset = !0, this._parent._mainSetInUse = null, this.next())).then(t, n) : (this._lastId += 1, this._parent._getFeature(a, s[this._lastId], this._progress).then((i) => {
88
+ e.hasset = !0, this._parent._mainSetInUse = null, t(i);
89
+ }, (i) => {
90
+ e.hasset = !0, this._parent._mainSetInUse = null, n(i);
91
+ })) : a._candidates.length > 0 ? this._parent._refineSetBlock(a, this._parent._maxProcessingRate(), this._progress).then(() => {
92
+ e.hasset = !0, this._parent._mainSetInUse = null, this.next().then(t, n);
93
+ }, (i) => {
94
+ e.hasset = !0, this._parent._mainSetInUse = null, n(i);
95
+ }) : (e.hasset = !0, this._parent._mainSetInUse = null, t(null));
96
+ }, (a) => {
97
+ e.hasset = !0, this._parent._mainSetInUse = null, n(a);
98
+ });
99
+ }), e.hasset === !1 && (this._parent._mainSetInUse = e.returnpromise, e.hasset = !0), e.returnpromise;
100
+ }
101
+ async count() {
102
+ if (this._parent._totalCount !== -1)
103
+ return this._parent._totalCount;
104
+ const e = await this._parent._getSet(this._progress), t = await this._refineAllSets(e);
105
+ return this._parent._totalCount = t._known.length, this._parent._totalCount;
106
+ }
107
+ async _refineAllSets(e) {
108
+ if (e._known.length > 0 && e._known[e._known.length - 1] === "GETPAGES")
109
+ return await this._parent._expandPagedSet(e, this._parent._maxQueryRate(), 0, 1, this._progress), this._refineAllSets(e);
110
+ if (e._candidates.length > 0) {
111
+ if (e._known[e._candidates.length - 1] === "GETPAGES")
112
+ return await this._parent._expandPagedSet(e, this._parent._maxQueryRate(), 0, 2, this._progress), this._refineAllSets(e);
113
+ const t = await this._parent._refineSetBlock(e, this._parent._maxProcessingRate(), this._progress);
114
+ return t._candidates.length > 0 ? this._refineAllSets(t) : t;
115
+ }
116
+ return e;
117
+ }
118
+ }
119
+ class D {
120
+ constructor(e, t, n, a) {
121
+ this._lastFetchedIndex = 0, this._ordered = !1, this.pagesDefinition = null, this._candidates = e, this._known = t, this._ordered = n, this.pagesDefinition = a;
122
+ }
123
+ }
124
+ function K(r, e) {
125
+ return d(r == null ? void 0 : r.parseTree, e, r == null ? void 0 : r.parameters);
126
+ }
127
+ function Ye(r, e, t) {
128
+ return d(r, e, t);
129
+ }
130
+ function Ke(r, e, t, n) {
131
+ return T.create(d(r.parseTree, h.Standardised, r.parameters, e, t), n, r.timeZone);
132
+ }
133
+ function Qe(r, e, t = "AND") {
134
+ return T.create("((" + K(r, h.Standardised) + ")" + t + "(" + K(e, h.Standardised) + "))", r.fieldsIndex, r.timeZone);
135
+ }
136
+ function d(r, e, t, n = null, a = null) {
137
+ let s, i, l, o;
138
+ switch (r.type) {
139
+ case "interval":
140
+ return Ee(d(r.value, e, t, n, a), r.qualifier, r.op);
141
+ case "case-expression": {
142
+ let u = " CASE ";
143
+ r.format === "simple" && (u += d(r.operand, e, t, n, a));
144
+ for (let c = 0; c < r.clauses.length; c++)
145
+ u += " WHEN " + d(r.clauses[c].operand, e, t, n, a) + " THEN " + d(r.clauses[c].value, e, t, n, a);
146
+ return r.else !== null && (u += " ELSE " + d(r.else, e, t, n, a)), u += " END ", u;
147
+ }
148
+ case "parameter": {
149
+ const u = t[r.value.toLowerCase()];
150
+ if (typeof u == "string")
151
+ return "'" + t[r.value.toLowerCase()].toString().replaceAll("'", "''") + "'";
152
+ if (P(u) || k(u))
153
+ return R(u, e);
154
+ if (L(u))
155
+ return q(u, e);
156
+ if (x(u))
157
+ return U(u, e);
158
+ if (O(u))
159
+ return Q(u, e);
160
+ if (u instanceof Array) {
161
+ const c = [];
162
+ for (let p = 0; p < u.length; p++)
163
+ typeof u[p] == "string" ? c.push("'" + u[p].toString().replaceAll("'", "''") + "'") : P(u[p]) || k(u[p]) ? c.push(R(u[p], e)) : L(u[p]) ? c.push(q(u[p], e)) : x(u[p]) ? c.push(U(u[p], e)) : O(u[p]) ? c.push(Q(u[p], e)) : c.push(u[p].toString());
164
+ return c;
165
+ }
166
+ return u.toString();
167
+ }
168
+ case "expression-list":
169
+ i = [];
170
+ for (const u of r.value)
171
+ i.push(d(u, e, t, n, a));
172
+ return i;
173
+ case "unary-expression":
174
+ return " ( NOT " + d(r.expr, e, t, n, a) + " ) ";
175
+ case "binary-expression":
176
+ switch (r.operator) {
177
+ case "AND":
178
+ return " (" + d(r.left, e, t, n, a) + " AND " + d(r.right, e, t, n, a) + ") ";
179
+ case "OR":
180
+ return " (" + d(r.left, e, t, n, a) + " OR " + d(r.right, e, t, n, a) + ") ";
181
+ case "IS":
182
+ if (r.right.type !== "null")
183
+ throw new f(g.UnsupportedIsRhs);
184
+ return " (" + d(r.left, e, t, n, a) + " IS NULL )";
185
+ case "ISNOT":
186
+ if (r.right.type !== "null")
187
+ throw new f(g.UnsupportedIsRhs);
188
+ return " (" + d(r.left, e, t, n, a) + " IS NOT NULL )";
189
+ case "IN":
190
+ return s = [], r.right.type === "expression-list" ? (s = d(r.right, e, t, n, a), " (" + d(r.left, e, t, n, a) + " IN (" + s.join(",") + ")) ") : (o = d(r.right, e, t, n, a), o instanceof Array ? " (" + d(r.left, e, t, n, a) + " IN (" + o.join(",") + ")) " : " (" + d(r.left, e, t, n, a) + " IN (" + o + ")) ");
191
+ case "NOT IN":
192
+ return s = [], r.right.type === "expression-list" ? (s = d(r.right, e, t, n, a), " (" + d(r.left, e, t, n, a) + " NOT IN (" + s.join(",") + ")) ") : (o = d(r.right, e, t, n, a), o instanceof Array ? " (" + d(r.left, e, t, n, a) + " NOT IN (" + o.join(",") + ")) " : " (" + d(r.left, e, t, n, a) + " NOT IN (" + o + ")) ");
193
+ case "BETWEEN":
194
+ return l = d(r.right, e, t, n, a), " (" + d(r.left, e, t, n, a) + " BETWEEN " + l[0] + " AND " + l[1] + " ) ";
195
+ case "NOTBETWEEN":
196
+ return l = d(r.right, e, t, n, a), " (" + d(r.left, e, t, n, a) + " NOT BETWEEN " + l[0] + " AND " + l[1] + " ) ";
197
+ case "LIKE":
198
+ return r.escape !== "" ? " (" + d(r.left, e, t, n, a) + " LIKE " + d(r.right, e, t, n, a) + " ESCAPE '" + r.escape + "') " : " (" + d(r.left, e, t, n, a) + " LIKE " + d(r.right, e, t, n, a) + ") ";
199
+ case "NOT LIKE":
200
+ return r.escape !== "" ? " (" + d(r.left, e, t, n, a) + " NOT LIKE " + d(r.right, e, t, n, a) + " ESCAPE '" + r.escape + "') " : " (" + d(r.left, e, t, n, a) + " NOT LIKE " + d(r.right, e, t, n, a) + ") ";
201
+ case "<>":
202
+ case "<":
203
+ case ">":
204
+ case ">=":
205
+ case "<=":
206
+ case "=":
207
+ case "*":
208
+ case "-":
209
+ case "+":
210
+ case "/":
211
+ return " (" + d(r.left, e, t, n, a) + " " + r.operator + " " + d(r.right, e, t, n, a) + ") ";
212
+ case "||":
213
+ return " (" + d(r.left, e, t, n, a) + " " + (e === h.SqlServer ? "+" : r.operator) + " " + d(r.right, e, t, n, a) + ") ";
214
+ }
215
+ throw new f(g.UnsupportedOperator, { operator: r.operator });
216
+ case "null":
217
+ return "null";
218
+ case "boolean":
219
+ return r.value === !0 ? "1" : "0";
220
+ case "string":
221
+ return "'" + r.value.toString().replaceAll("'", "''") + "'";
222
+ case "timestamp":
223
+ return `timestamp '${r.value}'`;
224
+ case "date":
225
+ return `date '${r.value}'`;
226
+ case "time":
227
+ return `time '${r.value}'`;
228
+ case "number":
229
+ return r.value.toString();
230
+ case "current-time":
231
+ return Fe(r.mode === "date", e);
232
+ case "column-reference":
233
+ return n ? n.toLowerCase() === r.column.toLowerCase() ? "(" + a + ")" : r.delimited === !0 ? `"${r.column.split('"').join('""')}"` : r.column : r.column;
234
+ case "data-type":
235
+ return r.value;
236
+ case "function": {
237
+ const u = d(r.args, e, t, n, a);
238
+ return Ie(r.name, u, e);
239
+ }
240
+ }
241
+ throw new f(g.UnsupportedSyntax, { node: r.type });
242
+ }
243
+ function Ie(r, e, t) {
244
+ switch (r.toLowerCase().trim()) {
245
+ case "cos":
246
+ case "sin":
247
+ case "tan":
248
+ case "cosh":
249
+ case "tanh":
250
+ case "sinh":
251
+ case "acos":
252
+ case "asin":
253
+ case "atan":
254
+ case "floor":
255
+ case "log10":
256
+ case "log":
257
+ case "abs":
258
+ if (e.length !== 1)
259
+ throw new f(g.InvalidFunctionParameters, { function: r.toLowerCase().trim() });
260
+ return `${r.toUpperCase().trim()}(${e[0]})`;
261
+ case "ceiling":
262
+ case "ceil":
263
+ if (e.length !== 1)
264
+ throw new f(g.InvalidFunctionParameters, { function: "ceiling" });
265
+ switch (t) {
266
+ case h.Standardised:
267
+ case h.StandardisedNoInterval:
268
+ }
269
+ return "CEILING(" + e[0] + ")";
270
+ case "mod":
271
+ case "power":
272
+ case "nullif":
273
+ if (e.length !== 2)
274
+ throw new f(g.InvalidFunctionParameters, { function: r.toLowerCase().trim() });
275
+ return `${r.toUpperCase().trim()}(${e[0]},${e[1]})`;
276
+ case "round":
277
+ if (e.length === 2)
278
+ return "ROUND(" + e[0] + "," + e[1] + ")";
279
+ if (e.length === 1)
280
+ return "ROUND(" + e[0] + ")";
281
+ throw new f(g.InvalidFunctionParameters, { function: "round" });
282
+ case "truncate":
283
+ if (e.length < 1 || e.length > 2)
284
+ throw new f(g.InvalidFunctionParameters, { function: "truncate" });
285
+ return t === h.SqlServer ? "ROUND(" + e[0] + (e.length === 1 ? "0" : "," + e[1]) + ",1)" : "TRUNCATE(" + e[0] + (e.length === 1 ? ")" : "," + e[1] + ")");
286
+ case "char_length":
287
+ case "len":
288
+ if (e.length !== 1)
289
+ throw new f(g.InvalidFunctionParameters, { function: "char_length" });
290
+ switch (t) {
291
+ case h.SqlServer:
292
+ return "LEN(" + e[0] + ")";
293
+ case h.Oracle:
294
+ return "LENGTH(" + e[0] + ")";
295
+ default:
296
+ return "CHAR_LENGTH(" + e[0] + ")";
297
+ }
298
+ case "coalesce":
299
+ case "concat": {
300
+ if (e.length < 1)
301
+ throw new f(g.InvalidFunctionParameters, { function: r.toLowerCase() });
302
+ let n = r.toUpperCase().trim() + "(";
303
+ for (let a = 0; a < e.length; a++)
304
+ a !== 0 && (n += ","), n += e[a];
305
+ return n += ")", n;
306
+ }
307
+ case "lower":
308
+ case "lcase":
309
+ if (e.length !== 1)
310
+ throw new f(g.InvalidFunctionParameters, { function: "lower" });
311
+ return "LOWER(" + e[0] + ")";
312
+ case "upper":
313
+ case "ucase":
314
+ if (e.length !== 1)
315
+ throw new f(g.InvalidFunctionParameters, { function: "upper" });
316
+ return "UPPER(" + e[0] + ")";
317
+ case "substring": {
318
+ let n = "";
319
+ switch (t) {
320
+ case h.Oracle:
321
+ return n = "SUBSTR(" + e[0] + "," + e[1], e.length === 3 && (n += "," + e[2]), n += ")", n;
322
+ case h.SqlServer:
323
+ return n = e.length === 3 ? "SUBSTRING(" + e[0] + "," + e[1] + "," + e[2] + ")" : "SUBSTRING(" + e[0] + ", " + e[1] + ", LEN(" + e[0] + ") - " + e[1] + ")", n;
324
+ default:
325
+ return n = "SUBSTRING(" + e[0] + " FROM " + e[1], e.length === 3 && (n += " FOR " + e[2]), n += ")", n;
326
+ }
327
+ }
328
+ case "extract":
329
+ return "EXTRACT(" + e[0].replaceAll("'", "") + " FROM " + e[1] + ")";
330
+ case "cast": {
331
+ let n = "";
332
+ switch (t) {
333
+ case h.Oracle:
334
+ switch (e[1].type) {
335
+ case "date":
336
+ n = "DATE";
337
+ break;
338
+ case "float":
339
+ n = "DOUBLE";
340
+ break;
341
+ case "integer":
342
+ n = "INTEGER";
343
+ break;
344
+ case "real":
345
+ n = "REAL";
346
+ break;
347
+ case "smallint":
348
+ n = "SMALLINT";
349
+ break;
350
+ case "timestamp":
351
+ n = "TIMESTAMP";
352
+ break;
353
+ case "varchar":
354
+ n = "VARCHAR(" + e[1].size.toString() + ")";
355
+ }
356
+ return `CAST(${e[0]} AS ${n})`;
357
+ case h.Postgres:
358
+ switch (e[1].type) {
359
+ case "date":
360
+ n = "DATE";
361
+ break;
362
+ case "float":
363
+ n = "DOUBLE PRECISION";
364
+ break;
365
+ case "integer":
366
+ n = "INT";
367
+ break;
368
+ case "real":
369
+ n = "REAL";
370
+ break;
371
+ case "smallint":
372
+ n = "SMALLINT";
373
+ break;
374
+ case "timestamp":
375
+ n = "TIMESTAMP";
376
+ break;
377
+ case "varchar":
378
+ n = "VARCHAR(" + e[1].size.toString() + ")";
379
+ }
380
+ return `CAST(${e[0]} AS ${n})`;
381
+ case h.SqlServer:
382
+ switch (e[1].type) {
383
+ case "date":
384
+ n = "DATE";
385
+ break;
386
+ case "float":
387
+ n = "FLOAT";
388
+ break;
389
+ case "integer":
390
+ n = "INT";
391
+ break;
392
+ case "real":
393
+ n = "REAL";
394
+ break;
395
+ case "smallint":
396
+ n = "SMALLINT";
397
+ break;
398
+ case "timestamp":
399
+ n = "DATETIME";
400
+ break;
401
+ case "varchar":
402
+ n = "VARCHAR(" + e[1].size.toString() + ")";
403
+ }
404
+ return `CAST(${e[0]} AS ${n})`;
405
+ default:
406
+ switch (e[1].type) {
407
+ case "date":
408
+ n = "DATE";
409
+ break;
410
+ case "float":
411
+ n = "FLOAT";
412
+ break;
413
+ case "integer":
414
+ n = "INTEGER";
415
+ break;
416
+ case "real":
417
+ n = "REAL";
418
+ break;
419
+ case "smallint":
420
+ n = "SMALLINT";
421
+ break;
422
+ case "timestamp":
423
+ n = "TIMESTAMP";
424
+ break;
425
+ case "varchar":
426
+ n = "VARCHAR(" + e[1].size.toString() + ")";
427
+ }
428
+ return `CAST(${e[0]} AS ${n})`;
429
+ }
430
+ }
431
+ }
432
+ throw new f(g.InvalidFunctionParameters, { function: r });
433
+ }
434
+ function U(r, e) {
435
+ const t = r.toDateTime(), n = t.hour === 0 && t.minute === 0 && t.second === 0 && t.millisecond === 0;
436
+ switch (e) {
437
+ case h.FILEGDB:
438
+ case h.Standardised:
439
+ case h.StandardisedNoInterval:
440
+ return n ? `date '${t.toFormat("yyyy-LL-dd")}'` : `timestamp '${t.toFormat("yyyy-LL-dd HH:mm:ss")}'`;
441
+ case h.Oracle:
442
+ return n ? `TO_DATE('${t.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')` : `TO_DATE('${t.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;
443
+ case h.SqlServer:
444
+ return `'${t.toFormat(n ? "yyyy-LL-dd" : "yyyy-LL-dd HH:mm:ss")}'`;
445
+ case h.PGDB:
446
+ return `#${t.toFormat(n ? "LL-dd-yyyy" : "LL-dd-yyyy HH:mm:ss")}#`;
447
+ case h.Postgres:
448
+ return `TIMESTAMP '${t.toFormat(n ? "yyyy-LL-dd" : "yyyy-LL-dd HH:mm:ss")}'`;
449
+ default:
450
+ return `timestamp '${t.toFormat("yyyy-LL-dd HH:mm:ss")}'`;
451
+ }
452
+ }
453
+ function Q(r, e) {
454
+ switch (e) {
455
+ case h.FILEGDB:
456
+ case h.Standardised:
457
+ case h.StandardisedNoInterval:
458
+ return r.toSQLWithKeyword();
459
+ case h.Oracle:
460
+ return `TO_DATE('${r.toFormat("Y-MM-DD")}'`;
461
+ case h.SqlServer:
462
+ return `'${r.toFormat("Y-MM-DD")}'`;
463
+ case h.PGDB:
464
+ return `#${r.toFormat("Y-MM-DD")}#`;
465
+ case h.Postgres:
466
+ return `TIMESTAMP '${r.toFormat("Y-MM-DD")}'`;
467
+ default:
468
+ return r.toSQLWithKeyword();
469
+ }
470
+ }
471
+ function q(r, e) {
472
+ switch (r instanceof M && (r = r.toStorageString()), e) {
473
+ case h.Oracle:
474
+ return `TO_DATE('${r}', 'HH24:MI:SS')`;
475
+ case h.SqlServer:
476
+ return `'${r}'`;
477
+ case h.FILEGDB:
478
+ case h.Standardised:
479
+ case h.StandardisedNoInterval:
480
+ case h.Postgres:
481
+ default:
482
+ return `time '${r}'`;
483
+ }
484
+ }
485
+ function R(r, e) {
486
+ return U(ie.dateTimeToArcadeDate(k(r) ? r : le.fromJSDate(r)), e);
487
+ }
488
+ function Fe(r, e) {
489
+ switch (e) {
490
+ case h.FILEGDB:
491
+ case h.Standardised:
492
+ case h.StandardisedNoInterval:
493
+ case h.Oracle:
494
+ return r ? "CURRENT_DATE" : "CURRENT_TIMESTAMP";
495
+ case h.SqlServer:
496
+ return r ? "CAST(GETDATE() AS DATE)" : "GETDATE()";
497
+ case h.PGDB:
498
+ case h.Postgres:
499
+ default:
500
+ return r ? "CURRENT_DATE" : "CURRENT_TIMESTAMP";
501
+ }
502
+ }
503
+ function be(r, e, t = {}) {
504
+ const n = {}, a = {}, s = { esriFieldTypeSmallInteger: "integer", esriFieldTypeInteger: "integer", esriFieldTypeBigInteger: "integer", esriFieldTypeSingle: "double", esriFieldTypeDouble: "double", esriFieldTypeString: "string", esriFieldTypeTimeOnly: "time-only", esriFieldTypeDateOnly: "date-only", esriFieldTypeTimestampOffset: "timestamp-offset", esriFieldTypeDate: "date", esriFieldTypeOID: "integer", esriFieldTypeGUID: "guid", esriFieldTypeGlobalID: "guid", oid: "integer", long: "integer", "small-integer": "integer", integer: "integer", "big-integer": "integer", single: "double", "time-only": "time-only", "date-only": "date-only", "timestamp-offset": "timestemp-offset", double: "double", date: "date", guid: "guid", "global-id": "guid", string: "string" };
505
+ for (const i of e) {
506
+ const l = i.type ? s[i.type] : void 0;
507
+ n[i.name.toLowerCase()] = l === void 0 ? "" : l;
508
+ }
509
+ for (const i in t) {
510
+ const l = s[t[i]];
511
+ a[i.toLowerCase()] = l === void 0 ? "" : l;
512
+ }
513
+ switch (S(n, r.parseTree, r.parameters, a)) {
514
+ case "double":
515
+ return "double";
516
+ case "integer":
517
+ return "integer";
518
+ case "date":
519
+ return "date";
520
+ case "date-only":
521
+ return "date-only";
522
+ case "time-only":
523
+ return "time-only";
524
+ case "timestamp-offset":
525
+ return "timestamp-offset";
526
+ case "string":
527
+ return "string";
528
+ case "global-id":
529
+ case "guid":
530
+ return "guid";
531
+ }
532
+ return "";
533
+ }
534
+ function S(r, e, t, n) {
535
+ var s, i, l, o, u;
536
+ let a;
537
+ switch (e.type) {
538
+ case "interval":
539
+ return "integer";
540
+ case "case-expression": {
541
+ const c = [];
542
+ if (e.format === "simple") {
543
+ for (let p = 0; p < e.clauses.length; p++)
544
+ c.push(S(r, e.clauses[p].value, t, n));
545
+ e.else !== null && c.push(S(r, e.else, t, n));
546
+ } else {
547
+ for (let p = 0; p < e.clauses.length; p++)
548
+ c.push(S(r, e.else, t, n));
549
+ e.else !== null && c.push(S(r, e.else, t, n));
550
+ }
551
+ return C(c);
552
+ }
553
+ case "parameter": {
554
+ const c = n[e.value.toLowerCase()];
555
+ if (c === void 0 && t) {
556
+ const p = t[e.value.toLowerCase()];
557
+ if (p === void 0 || p === null)
558
+ return "";
559
+ if (typeof p == "string" || p instanceof String)
560
+ return "string";
561
+ if (typeof p == "boolean")
562
+ return "boolean";
563
+ if (P(p) || x(p))
564
+ return "date";
565
+ if (O(p))
566
+ return "date-only";
567
+ if (L(p))
568
+ return "time-only";
569
+ if (typeof p == "number")
570
+ return p % 1 == 0 ? "integer" : "double";
571
+ }
572
+ return c === void 0 ? "" : c;
573
+ }
574
+ case "expression-list": {
575
+ const c = [];
576
+ for (const p of e.value)
577
+ c.push(S(r, p, t, n));
578
+ return c;
579
+ }
580
+ case "unary-expression":
581
+ return "boolean";
582
+ case "binary-expression":
583
+ switch (e.operator) {
584
+ case "AND":
585
+ case "OR":
586
+ case "IN":
587
+ case "NOT IN":
588
+ case "BETWEEN":
589
+ case "NOTBETWEEN":
590
+ case "LIKE":
591
+ case "NOT LIKE":
592
+ case "<>":
593
+ case "<":
594
+ case ">":
595
+ case ">=":
596
+ case "<=":
597
+ case "=":
598
+ return "boolean";
599
+ case "IS":
600
+ case "ISNOT":
601
+ if (e.right.type !== "null")
602
+ throw new f(g.UnsupportedIsRhs);
603
+ return "boolean";
604
+ case "*":
605
+ case "-":
606
+ case "+":
607
+ case "/":
608
+ return C([S(r, e.left, t, n), S(r, e.right, t, n)]);
609
+ case "||":
610
+ return "string";
611
+ default:
612
+ throw new f(g.UnsupportedOperator, { operator: e.operator });
613
+ }
614
+ case "null":
615
+ return "";
616
+ case "boolean":
617
+ return "boolean";
618
+ case "string":
619
+ return "string";
620
+ case "number":
621
+ return e.value === null ? "" : e.value % 1 == 0 ? "integer" : "double";
622
+ case "date":
623
+ return "date";
624
+ case "timestamp":
625
+ return e.withtimezone ? "timestamp-offset" : "date";
626
+ case "time":
627
+ return "time-only";
628
+ case "current-time":
629
+ return "date";
630
+ case "column-reference": {
631
+ const c = r[e.column.toLowerCase()];
632
+ return c === void 0 ? "" : c;
633
+ }
634
+ case "function":
635
+ switch (e.name.toLowerCase()) {
636
+ case "cast":
637
+ switch (((i = (s = e.args) == null ? void 0 : s.value[1]) == null ? void 0 : i.value.type) ?? "") {
638
+ case "integer":
639
+ case "smallint":
640
+ return "integer";
641
+ case "real":
642
+ case "float":
643
+ return "double";
644
+ case "date":
645
+ case "timestamp":
646
+ return ((u = (o = (l = e.args) == null ? void 0 : l.value[1]) == null ? void 0 : o.value) == null ? void 0 : u.withtimezone) === !0 ? "timestamp-offset" : "date";
647
+ case "time":
648
+ return "time-only";
649
+ case "varchar":
650
+ return "string";
651
+ default:
652
+ return "";
653
+ }
654
+ case "position":
655
+ case "extract":
656
+ case "char_length":
657
+ case "mod":
658
+ return "integer";
659
+ case "round":
660
+ if (a = S(r, e.args, t, n), a instanceof Array) {
661
+ if (a.length <= 0)
662
+ return "double";
663
+ a = a[0];
664
+ }
665
+ return a;
666
+ case "sign":
667
+ return "integer";
668
+ case "ceiling":
669
+ case "floor":
670
+ case "abs":
671
+ return a = S(r, e.args, t, n), a instanceof Array && (a = C(a)), a === "integer" || a === "double" ? a : "double";
672
+ case "area":
673
+ case "length":
674
+ case "log":
675
+ case "log10":
676
+ case "sin":
677
+ case "cos":
678
+ case "tan":
679
+ case "asin":
680
+ case "acos":
681
+ case "atan":
682
+ case "cosh":
683
+ case "sinh":
684
+ case "tanh":
685
+ case "power":
686
+ return "double";
687
+ case "substring":
688
+ case "trim":
689
+ case "concat":
690
+ case "lower":
691
+ case "upper":
692
+ return "string";
693
+ case "truncate":
694
+ return "double";
695
+ case "nullif":
696
+ case "coalesce":
697
+ return a = S(r, e.args, t, n), a instanceof Array ? a.length > 0 ? a[0] : "" : a;
698
+ }
699
+ return "";
700
+ }
701
+ throw new f(g.UnsupportedSyntax, { node: e.type });
702
+ }
703
+ const V = { boolean: 1, string: 2, integer: 3, double: 4, date: 5 };
704
+ function C(r) {
705
+ if (r) {
706
+ let e = "";
707
+ for (const t of r)
708
+ t !== "" && (e = e === "" || V[e] < V[t] ? t : e);
709
+ return e;
710
+ }
711
+ return "";
712
+ }
713
+ function qe(r, e) {
714
+ return w(r.parseTree, e);
715
+ }
716
+ function De(r) {
717
+ return (r == null ? void 0 : r.parseTree.type) === "column-reference";
718
+ }
719
+ function w(r, e) {
720
+ if (r == null)
721
+ return !1;
722
+ switch (r.type) {
723
+ case "when-clause":
724
+ return w(r.operand, e) || w(r.value, e);
725
+ case "case-expression":
726
+ for (const t of r.clauses)
727
+ if (w(t, e))
728
+ return !0;
729
+ return !(r.format !== "simple" || !w(r.operand, e)) || !(r.else === null || !w(r.else, e));
730
+ case "parameter":
731
+ case "null":
732
+ case "boolean":
733
+ case "date":
734
+ case "timestamp":
735
+ case "time":
736
+ case "string":
737
+ case "number":
738
+ return !1;
739
+ case "expression-list":
740
+ for (const t of r.value)
741
+ if (w(t, e))
742
+ return !0;
743
+ return !1;
744
+ case "unary-expression":
745
+ return w(r.expr, e);
746
+ case "binary-expression":
747
+ return w(r.left, e) || w(r.right, e);
748
+ case "column-reference":
749
+ return e.toLowerCase() === r.column.toLowerCase();
750
+ case "function":
751
+ return w(r.args, e);
752
+ }
753
+ return !1;
754
+ }
755
+ function N(r) {
756
+ let e = "";
757
+ return e += r.period.toUpperCase(), e;
758
+ }
759
+ function Ee(r, e, t) {
760
+ let n = "";
761
+ return n = e.type === "interval-period" ? N(e) : N(e.start) + " TO " + N(e.end), "INTERVAL " + t + " " + r + " " + n;
762
+ }
763
+ function ve(r) {
764
+ return r = +r, isFinite(r) ? r - r % 1 || (r < 0 ? -0 : r === 0 ? r : 0) : r;
765
+ }
766
+ function A(r) {
767
+ let e = 0;
768
+ for (let t = 0; t < r.length; t++)
769
+ e += r[t];
770
+ return e / r.length;
771
+ }
772
+ function J(r) {
773
+ const e = A(r);
774
+ let t = 0;
775
+ for (let n = 0; n < r.length; n++)
776
+ t += (e - r[n]) ** 2;
777
+ return t / r.length;
778
+ }
779
+ function W(r) {
780
+ const e = A(r);
781
+ let t = 0;
782
+ for (let n = 0; n < r.length; n++)
783
+ t += (e - r[n]) ** 2;
784
+ return t / (r.length - 1);
785
+ }
786
+ function $(r) {
787
+ let e = 0;
788
+ for (let t = 0; t < r.length; t++)
789
+ e += r[t];
790
+ return e;
791
+ }
792
+ function Ae(r, e) {
793
+ const t = [], n = {}, a = [];
794
+ for (let s = 0; s < r.length; s++) {
795
+ if (r[s] !== void 0 && r[s] !== null) {
796
+ const i = r[s];
797
+ if (ee(i) || te(i))
798
+ n[i] === void 0 && (t.push(i), n[i] = 1);
799
+ else {
800
+ let l = !1;
801
+ for (let o = 0; o < a.length; o++)
802
+ ne(a[o], i) === !0 && (l = !0);
803
+ l === !1 && (a.push(i), t.push(i));
804
+ }
805
+ }
806
+ if (t.length >= e && e !== -1)
807
+ return t;
808
+ }
809
+ return t;
810
+ }
811
+ function Ve(r) {
812
+ switch (r.toLowerCase()) {
813
+ case "distinct":
814
+ return "distinct";
815
+ case "avg":
816
+ case "mean":
817
+ return "avg";
818
+ case "min":
819
+ return "min";
820
+ case "sum":
821
+ return "sum";
822
+ case "max":
823
+ return "max";
824
+ case "stdev":
825
+ case "stddev":
826
+ return "stddev";
827
+ case "var":
828
+ case "variance":
829
+ return "var";
830
+ case "count":
831
+ return "count";
832
+ }
833
+ return "";
834
+ }
835
+ function Je(r, e, t = 1e3) {
836
+ switch (r.toLowerCase()) {
837
+ case "distinct":
838
+ return Ae(e, t);
839
+ case "avg":
840
+ case "mean":
841
+ return A(e);
842
+ case "min":
843
+ return Math.min.apply(Math, e);
844
+ case "sum":
845
+ return $(e);
846
+ case "max":
847
+ return Math.max.apply(Math, e);
848
+ case "stdev":
849
+ case "stddev":
850
+ return Math.sqrt(J(e));
851
+ case "var":
852
+ case "variance":
853
+ return J(e);
854
+ case "count":
855
+ return e.length;
856
+ }
857
+ return 0;
858
+ }
859
+ async function Re(r, e, t) {
860
+ const n = await v(r, e, t, !0);
861
+ return n.length === 0 ? null : Math.min.apply(Math, n);
862
+ }
863
+ async function Ce(r, e, t) {
864
+ const n = await v(r, e, t, !0);
865
+ return n.length === 0 ? null : Math.max.apply(Math, n);
866
+ }
867
+ async function Ne(r, e, t) {
868
+ let n = "";
869
+ e && !De(e) && (n = be(e, r.fields));
870
+ const a = await v(r, e, t, !0);
871
+ if (a.length === 0)
872
+ return null;
873
+ const s = A(a);
874
+ return s === null ? s : n === "integer" ? ve(s) : s;
875
+ }
876
+ async function Pe(r, e, t) {
877
+ const n = await v(r, e, t, !0);
878
+ return n.length === 0 ? null : W(n);
879
+ }
880
+ async function ke(r, e, t) {
881
+ const n = await v(r, e, t, !0);
882
+ return n.length === 0 ? null : Math.sqrt(W(n));
883
+ }
884
+ async function Le(r, e, t) {
885
+ const n = await v(r, e, t, !0);
886
+ return n.length === 0 ? null : $(n);
887
+ }
888
+ async function xe(r, e) {
889
+ return r.iterator(e).count();
890
+ }
891
+ async function v(r, e, t, n = !1) {
892
+ const a = r.iterator(t), s = [], i = { ticker: 0 };
893
+ let l = await a.next();
894
+ for (; l !== null; ) {
895
+ if (i.ticker++, t.aborted)
896
+ throw new m(y.Cancelled);
897
+ i.ticker % 100 == 0 && (i.ticker = 0, await new Promise((u) => {
898
+ setTimeout(u, 0);
899
+ }));
900
+ const o = e == null ? void 0 : e.calculateValue(l);
901
+ o === null ? n === !1 && (s[s.length] = o) : s[s.length] = o instanceof z || o instanceof M ? o.toNumber() : o instanceof j ? o.toMilliseconds() : o, l = await a.next();
902
+ }
903
+ return s;
904
+ }
905
+ async function Oe(r, e, t = 1e3, n = null) {
906
+ const a = r.iterator(n), s = [], i = {}, l = { ticker: 0 };
907
+ let o = await a.next();
908
+ for (; o !== null; ) {
909
+ if (l.ticker++, n && n.aborted)
910
+ throw new m(y.Cancelled);
911
+ l.ticker % 100 == 0 && (l.ticker = 0, await new Promise((p) => {
912
+ setTimeout(p, 0);
913
+ }));
914
+ const u = e == null ? void 0 : e.calculateValue(o);
915
+ let c = u;
916
+ if (u instanceof z ? c = "!!DATEONLY!!-" + u.toString() : u instanceof j ? c = "!!TSOFFSETONLY!!-" + u.toString() : u instanceof M ? c = "!!TIMEONLY!!-" + u.toString() : u instanceof Date && (c = "!!DATE!!-" + u.toString()), u != null && i[c] === void 0 && (s.push(u), i[c] = 1), s.length >= t && t !== -1)
917
+ return s;
918
+ o = await a.next();
919
+ }
920
+ return s;
921
+ }
922
+ class _ {
923
+ constructor(e) {
924
+ this.recentlyUsedQueries = null, this.featureSetQueryInterceptor = null, this._idstates = [], this._parent = null, this._wset = null, this._mainSetInUse = null, this._maxProcessing = 200, this._maxQuery = 500, this._totalCount = -1, this._databaseType = h.NotEvaluated, this._databaseTypeProbed = null, this.declaredRootClass = "esri.arcade.featureset.support.FeatureSet", this._featureCache = [], this.typeIdField = null, this.types = null, this.subtypeField = null, this.subtypes = null, this.fields = null, this.geometryType = "", this.objectIdField = "", this.globalIdField = "", this.spatialReference = null, this.hasM = !1, this.hasZ = !1, this._transparent = !1, this.loaded = !1, this._loadPromise = null, this._fieldsIndex = null, this.fsetInfo = null, e != null && e.lrucache && (this.recentlyUsedQueries = e.lrucache), e != null && e.interceptor && (this.featureSetQueryInterceptor = e.interceptor);
925
+ }
926
+ optimisePagingFeatureQueries(e) {
927
+ this._parent && this._parent.optimisePagingFeatureQueries(e);
928
+ }
929
+ _hasMemorySource() {
930
+ return !0;
931
+ }
932
+ prop(e, t) {
933
+ return t === void 0 ? this[e] : (this[e] !== void 0 && (this[e] = t), this);
934
+ }
935
+ end() {
936
+ return this._parent !== null && this._parent._transparent === !0 ? this._parent.end() : this._parent;
937
+ }
938
+ _ensureLoaded() {
939
+ return this.load();
940
+ }
941
+ load() {
942
+ return this._loadPromise === null && (this._loadPromise = this.loadImpl()), this._loadPromise;
943
+ }
944
+ async loadImpl() {
945
+ var e, t;
946
+ return ((e = this._parent) == null ? void 0 : e.loaded) === !0 ? (this._initialiseFeatureSet(), this) : (await ((t = this._parent) == null ? void 0 : t.load()), this._initialiseFeatureSet(), this);
947
+ }
948
+ _initialiseFeatureSet() {
949
+ this._parent !== null ? (this.fields = this._parent.fields.slice(0), this.geometryType = this._parent.geometryType, this.objectIdField = this._parent.objectIdField, this.globalIdField = this._parent.globalIdField, this.spatialReference = this._parent.spatialReference, this.hasM = this._parent.hasM, this.hasZ = this._parent.hasZ, this.typeIdField = this._parent.typeIdField, this.types = this._parent.types, this.subtypeField = this._parent.subtypeField, this.subtypes = this._parent.subtypes) : (this.fields = [], this.typeIdField = "", this.subtypeField = "", this.objectIdField = "", this.globalIdField = "", this.spatialReference = new oe({ wkid: 4326 }), this.geometryType = ae.point);
950
+ }
951
+ getField(e, t) {
952
+ let n;
953
+ return (t = t || this.fields) && (e = e.toLowerCase(), t.some((a) => (a && a.name.toLowerCase() === e && (n = a), !!n))), n;
954
+ }
955
+ getFieldsIndex() {
956
+ return this._fieldsIndex === null && (this._fieldsIndex = we.fromLayer({ timeInfo: this.timeInfo, editFieldsInfo: this.editFieldsInfo, dateFieldsTimeZone: this.dateFieldsTimeZone, datesInUnknownTimezone: this.datesInUnknownTimezone, fields: this.fields })), this._fieldsIndex;
957
+ }
958
+ _maxProcessingRate() {
959
+ return this._parent !== null ? Math.min(this._maxProcessing, this._parent._maxProcessingRate()) : Math.min(this._maxProcessing, this._maxQueryRate());
960
+ }
961
+ _maxQueryRate() {
962
+ return this._parent !== null ? Math.max(this._maxQuery, this._parent._maxQueryRate()) : this._maxQuery;
963
+ }
964
+ _checkCancelled(e) {
965
+ if (e != null && e.aborted)
966
+ throw new m(y.Cancelled);
967
+ }
968
+ nativeCapabilities() {
969
+ return this._parent.nativeCapabilities();
970
+ }
971
+ async _canDoAggregates(e, t, n, a, s) {
972
+ return this._parent !== null && this._parent._canDoAggregates(e, t, n, a, s);
973
+ }
974
+ async _getAggregatePagesDataSourceDefinition(e, t, n, a, s, i, l) {
975
+ if (this._parent === null)
976
+ throw new m(y.NeverReach);
977
+ return this._parent._getAggregatePagesDataSourceDefinition(e, t, n, a, s, i, l);
978
+ }
979
+ async _getAgregagtePhysicalPage(e, t, n) {
980
+ if (this._parent === null)
981
+ throw new m(y.NeverReach);
982
+ return this._parent._getAgregagtePhysicalPage(e, t, n);
983
+ }
984
+ async databaseType() {
985
+ if (this._databaseType === h.NotEvaluated) {
986
+ if (E.applicationCache !== null) {
987
+ const e = E.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());
988
+ if (e !== null)
989
+ return e;
990
+ }
991
+ if (this._databaseTypeProbed !== null)
992
+ return this._databaseTypeProbed;
993
+ try {
994
+ this._databaseTypeProbed = this._getDatabaseTypeImpl(), E.applicationCache !== null && E.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(), this._databaseTypeProbed);
995
+ } catch (e) {
996
+ throw E.applicationCache !== null && E.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()), e;
997
+ }
998
+ return this._databaseTypeProbed;
999
+ }
1000
+ return this._databaseType;
1001
+ }
1002
+ async _getDatabaseTypeImpl() {
1003
+ const e = [{ thetype: h.SqlServer, testwhere: "(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0" }, { thetype: h.Oracle, testwhere: "(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0" }, { thetype: h.StandardisedNoInterval, testwhere: "(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0" }];
1004
+ for (const t of e)
1005
+ if (await this._runDatabaseProbe(t.testwhere) === !0)
1006
+ return t.thetype;
1007
+ return h.StandardisedNoInterval;
1008
+ }
1009
+ _cacheableFeatureSetSourceKey() {
1010
+ return "MUSTBESET";
1011
+ }
1012
+ async _runDatabaseProbe(e) {
1013
+ if (this._parent !== null)
1014
+ return this._parent._runDatabaseProbe(e);
1015
+ throw new m(y.NotImplemented);
1016
+ }
1017
+ isTable() {
1018
+ var e;
1019
+ return ((e = this._parent) == null ? void 0 : e.isTable()) ?? !1;
1020
+ }
1021
+ _featureFromCache(e) {
1022
+ if (this._featureCache[e] !== void 0)
1023
+ return this._featureCache[e];
1024
+ }
1025
+ _isInFeatureSet(e) {
1026
+ return F.Unknown;
1027
+ }
1028
+ _getSet(e) {
1029
+ throw new m(y.NotImplemented);
1030
+ }
1031
+ async _getFeature(e, t, n) {
1032
+ if (this._checkCancelled(n), this._featureFromCache(t) !== void 0)
1033
+ return this._featureFromCache(t);
1034
+ if (await this._getFeatures(e, t, this._maxProcessingRate(), n), this._checkCancelled(n), this._featureFromCache(t) !== void 0)
1035
+ return this._featureFromCache(t);
1036
+ throw new m(y.MissingFeatures);
1037
+ }
1038
+ async _getFeatureBatch(e, t) {
1039
+ this._checkCancelled(t);
1040
+ const n = new D([], e, !1, null), a = [];
1041
+ await this._getFeatures(n, -1, e.length, t), this._checkCancelled(t);
1042
+ for (const s of e)
1043
+ this._featureFromCache(s) !== void 0 && a.push(this._featureFromCache(s));
1044
+ return a;
1045
+ }
1046
+ async _getFeatures(e, t, n, a) {
1047
+ return "success";
1048
+ }
1049
+ _getFilteredSet(e, t, n, a, s) {
1050
+ throw new m(y.NotImplemented);
1051
+ }
1052
+ async _refineSetBlock(e, t, n) {
1053
+ if (this._checkIfNeedToExpandCandidatePage(e, this._maxQueryRate()) === !0)
1054
+ return await this._expandPagedSet(e, this._maxQueryRate(), 0, 0, n), this._refineSetBlock(e, t, n);
1055
+ this._checkCancelled(n);
1056
+ const a = e._candidates.length;
1057
+ this._refineKnowns(e, t);
1058
+ let s = a - e._candidates.length;
1059
+ if (e._candidates.length === 0 || s >= t)
1060
+ return e;
1061
+ if (await this._refineIfParentKnown(e, t - s, n), this._checkCancelled(n), this._refineKnowns(e, t - s), s = a - e._candidates.length, s < t && e._candidates.length > 0) {
1062
+ const i = t - s, l = this._prepareFetchAndRefineSet(e._candidates);
1063
+ return await this._fetchAndRefineFeatures(l, l.length > i ? i : e._candidates.length, n), this._checkCancelled(n), this._refineKnowns(e, t - s), e;
1064
+ }
1065
+ return e;
1066
+ }
1067
+ _fetchAndRefineFeatures(e, t, n) {
1068
+ return null;
1069
+ }
1070
+ _prepareFetchAndRefineSet(e) {
1071
+ const t = [];
1072
+ for (let n = 0; n < e.length; n++)
1073
+ this._isPhysicalFeature(e[n]) && t.push(e[n]);
1074
+ return t;
1075
+ }
1076
+ _isPhysicalFeature(e) {
1077
+ return this._parent === null || this._parent._isPhysicalFeature(e);
1078
+ }
1079
+ _refineKnowns(e, t) {
1080
+ let n = 0, a = null;
1081
+ const s = [];
1082
+ t = this._maxQueryRate();
1083
+ for (let i = 0; i < e._candidates.length && e._candidates[i] !== "GETPAGES"; i++) {
1084
+ let l = !1;
1085
+ const o = this._candidateIdTransform(e._candidates[i]);
1086
+ o !== e._candidates[i] && (l = !0);
1087
+ const u = this._isInFeatureSet(o);
1088
+ if (u === F.InFeatureSet)
1089
+ l === !0 ? e._known.includes(o) || (e._known.push(o), n += 1) : (e._known.push(e._candidates[i]), n += 1), a === null ? a = { start: i, end: i } : a.end === i - 1 ? a.end = i : (s.push(a), a = { start: i, end: i });
1090
+ else if (u === F.NotInFeatureSet)
1091
+ a === null ? a = { start: i, end: i } : a.end === i - 1 ? a.end = i : (s.push(a), a = { start: i, end: i }), n += 1;
1092
+ else if (u === F.Unknown && (n += 1, e._ordered === !0))
1093
+ break;
1094
+ if (n >= t)
1095
+ break;
1096
+ }
1097
+ a !== null && s.push(a);
1098
+ for (let i = s.length - 1; i >= 0; i--)
1099
+ e._candidates.splice(s[i].start, s[i].end - s[i].start + 1);
1100
+ }
1101
+ _refineIfParentKnown(e, t, n) {
1102
+ const a = new D([], [], e._ordered, null);
1103
+ return a._candidates = e._candidates.slice(0), this._parent._refineSetBlock(a, t, n);
1104
+ }
1105
+ _candidateIdTransform(e) {
1106
+ return this._parent._candidateIdTransform(e);
1107
+ }
1108
+ _checkIfNeedToExpandKnownPage(e, t) {
1109
+ if (e.pagesDefinition === null)
1110
+ return !1;
1111
+ let n = 0;
1112
+ for (let a = e._lastFetchedIndex; a < e._known.length; a++) {
1113
+ if (e._known[a] === "GETPAGES")
1114
+ return !0;
1115
+ if (this._featureCache[e._known[a]] === void 0 && (n += 1, n >= t))
1116
+ break;
1117
+ }
1118
+ return !1;
1119
+ }
1120
+ _checkIfNeedToExpandCandidatePage(e, t) {
1121
+ if (e.pagesDefinition === null)
1122
+ return !1;
1123
+ let n = 0;
1124
+ for (let a = 0; a < e._candidates.length; a++) {
1125
+ if (e._candidates[a] === "GETPAGES")
1126
+ return !0;
1127
+ if (n += 1, n >= t)
1128
+ break;
1129
+ }
1130
+ return !1;
1131
+ }
1132
+ async _expandPagedSet(e, t, n, a, s) {
1133
+ if (this._parent === null)
1134
+ throw new m(y.NotImplemented);
1135
+ return this._parent._expandPagedSet(e, t, n, a, s);
1136
+ }
1137
+ async _expandPagedSetFeatureSet(e, t, n, a, s) {
1138
+ if (e._known.length > 0 && e._known[e._known.length - 1] === "GETPAGES" && (a = 1), a === 0 && e._candidates.length > 0 && e._candidates[e._candidates.length - 1] === "GETPAGES" && (a = 2), a === 0)
1139
+ return "finished";
1140
+ const i = await this._getPage(e, a, s);
1141
+ return n + i < t ? this._expandPagedSet(e, t, n + i, 0, s) : "success";
1142
+ }
1143
+ async _getPage(e, t, n) {
1144
+ const a = t === 1 ? e._known : e._candidates;
1145
+ if (e.pagesDefinition.internal.set.length > e.pagesDefinition.resultOffset || e.pagesDefinition.internal.fullyResolved === !0) {
1146
+ a.length = a.length - 1;
1147
+ let s = 0;
1148
+ for (let l = 0; l < e.pagesDefinition.resultRecordCount && !(e.pagesDefinition.resultOffset + l >= e.pagesDefinition.internal.set.length); l++)
1149
+ a[a.length] = e.pagesDefinition.internal.set[e.pagesDefinition.resultOffset + l], s++;
1150
+ e.pagesDefinition.resultOffset += s;
1151
+ let i = !1;
1152
+ return e.pagesDefinition.internal.fullyResolved === !0 && e.pagesDefinition.internal.set.length <= e.pagesDefinition.resultOffset && (i = !0), i === !1 && a.push("GETPAGES"), s;
1153
+ }
1154
+ return await this._getPhysicalPage(e, t, n), this._getPage(e, t, n);
1155
+ }
1156
+ _getPhysicalPage(e, t, n) {
1157
+ return null;
1158
+ }
1159
+ _clonePageDefinition(e) {
1160
+ return this._parent === null ? null : this._parent._clonePageDefinition(e);
1161
+ }
1162
+ _first(e) {
1163
+ return this.iterator(e).next();
1164
+ }
1165
+ first(e) {
1166
+ return this._first(e);
1167
+ }
1168
+ async calculateStatistic(e, t, n, a) {
1169
+ await this._ensureLoaded();
1170
+ let s = await this._stat(e, t, "", null, null, n, a);
1171
+ return s.calculated === !1 && (s = await this._manualStat(e, t, n, a)), s.result;
1172
+ }
1173
+ async _manualStat(e, t, n, a) {
1174
+ let s = null;
1175
+ switch (e.toLowerCase()) {
1176
+ case "count":
1177
+ return s = await xe(this, a), { calculated: !0, result: s };
1178
+ case "distinct":
1179
+ return s = await Oe(this, t, n, a), { calculated: !0, result: s };
1180
+ case "avg":
1181
+ case "mean":
1182
+ return s = await Ne(this, t, a), { calculated: !0, result: s };
1183
+ case "stdev":
1184
+ return s = await ke(this, t, a), { calculated: !0, result: s };
1185
+ case "variance":
1186
+ return s = await Pe(this, t, a), { calculated: !0, result: s };
1187
+ case "sum":
1188
+ return s = await Le(this, t, a), { calculated: !0, result: s };
1189
+ case "min":
1190
+ return s = await Re(this, t, a), { calculated: !0, result: s };
1191
+ case "max":
1192
+ return s = await Ce(this, t, a), { calculated: !0, result: s };
1193
+ default:
1194
+ return { calculated: !0, result: 0 };
1195
+ }
1196
+ }
1197
+ async _stat(e, t, n, a, s, i, l) {
1198
+ const o = await this._parent._stat(e, t, n, a, s, i, l);
1199
+ return o.calculated === !1 ? s === null && n === "" && a === null ? this._manualStat(e, t, i, l) : { calculated: !1 } : o;
1200
+ }
1201
+ _unionAllGeomSelf(e) {
1202
+ const t = this.iterator(this._defaultTracker(e)), n = [];
1203
+ return new Promise((a, s) => {
1204
+ this._unionShapeInBatches(n, t, a, s);
1205
+ });
1206
+ }
1207
+ _unionAllGeom(e) {
1208
+ return new Promise((t, n) => {
1209
+ const a = this.iterator(this._defaultTracker(e)), s = [];
1210
+ this._unionShapeInBatches(s, a, t, n);
1211
+ });
1212
+ }
1213
+ _unionShapeInBatches(e, t, n, a) {
1214
+ t.next().then((s) => {
1215
+ try {
1216
+ s !== null && s.geometry !== null && e.push(s.geometry), e.length > 30 || s === null && e.length > 1 ? ue(e).then((i) => {
1217
+ try {
1218
+ s === null ? n(i) : (e = [i], this._unionShapeInBatches(e, t, n, a));
1219
+ } catch (l) {
1220
+ a(l);
1221
+ }
1222
+ }, a) : s === null ? e.length === 1 ? n(e[0]) : n(null) : this._unionShapeInBatches(e, t, n, a);
1223
+ } catch (i) {
1224
+ a(i);
1225
+ }
1226
+ }, a);
1227
+ }
1228
+ iterator(e) {
1229
+ return new Te(this, e);
1230
+ }
1231
+ intersection(e, t = !1) {
1232
+ return _._featuresetFunctions.intersection.bind(this)(e, t);
1233
+ }
1234
+ difference(e, t = !1, n = !0) {
1235
+ return _._featuresetFunctions.difference.bind(this)(e, t, n);
1236
+ }
1237
+ symmetricDifference(e, t = !1, n = !0) {
1238
+ return _._featuresetFunctions.symmetricDifference.bind(this)(e, t, n);
1239
+ }
1240
+ morphShape(e, t, n = "unknown", a = null) {
1241
+ return _._featuresetFunctions.morphShape.bind(this)(e, t, n, a);
1242
+ }
1243
+ morphShapeAndAttributes(e, t, n = "unknown") {
1244
+ return _._featuresetFunctions.morphShapeAndAttributes.bind(this)(e, t, n);
1245
+ }
1246
+ union(e, t = !1) {
1247
+ return _._featuresetFunctions.union.bind(this)(e, t);
1248
+ }
1249
+ intersects(e) {
1250
+ return _._featuresetFunctions.intersects.bind(this)(e);
1251
+ }
1252
+ envelopeIntersects(e) {
1253
+ return _._featuresetFunctions.envelopeIntersects.bind(this)(e);
1254
+ }
1255
+ contains(e) {
1256
+ return _._featuresetFunctions.contains.bind(this)(e);
1257
+ }
1258
+ overlaps(e) {
1259
+ return _._featuresetFunctions.overlaps.bind(this)(e);
1260
+ }
1261
+ relate(e, t) {
1262
+ return _._featuresetFunctions.relate.bind(this)(e, t);
1263
+ }
1264
+ within(e) {
1265
+ return _._featuresetFunctions.within.bind(this)(e);
1266
+ }
1267
+ touches(e) {
1268
+ return _._featuresetFunctions.touches.bind(this)(e);
1269
+ }
1270
+ top(e) {
1271
+ return _._featuresetFunctions.top.bind(this)(e);
1272
+ }
1273
+ crosses(e) {
1274
+ return _._featuresetFunctions.crosses.bind(this)(e);
1275
+ }
1276
+ buffer(e, t, n, a = !0) {
1277
+ return _._featuresetFunctions.buffer.bind(this)(e, t, n, a);
1278
+ }
1279
+ filter(e, t = null) {
1280
+ return _._featuresetFunctions.filter.bind(this)(e, t);
1281
+ }
1282
+ orderBy(e) {
1283
+ return _._featuresetFunctions.orderBy.bind(this)(e);
1284
+ }
1285
+ dissolve(e, t) {
1286
+ return _._featuresetFunctions.dissolve.bind(this)(e, t);
1287
+ }
1288
+ groupby(e, t) {
1289
+ return _._featuresetFunctions.groupby.bind(this)(e, t);
1290
+ }
1291
+ reduce(e, t = null, n) {
1292
+ return new Promise((a, s) => {
1293
+ this._reduceImpl(this.iterator(this._defaultTracker(n)), e, t, 0, a, s, 0);
1294
+ });
1295
+ }
1296
+ _reduceImpl(e, t, n, a, s, i, l) {
1297
+ try {
1298
+ if (++l > 1e3)
1299
+ return void setTimeout(() => {
1300
+ l = 0, this._reduceImpl(e, t, n, a, s, i, l);
1301
+ });
1302
+ e.next().then((o) => {
1303
+ try {
1304
+ if (o === null)
1305
+ s(n);
1306
+ else {
1307
+ const u = t(n, o, a, this);
1308
+ Z(u) ? u.then((c) => {
1309
+ this._reduceImpl(e, t, c, a + 1, s, i, l);
1310
+ }, i) : this._reduceImpl(e, t, u, a + 1, s, i, l);
1311
+ }
1312
+ } catch (u) {
1313
+ i(u);
1314
+ }
1315
+ }, i);
1316
+ } catch (o) {
1317
+ i(o);
1318
+ }
1319
+ }
1320
+ removeField(e) {
1321
+ return _._featuresetFunctions.removeField.bind(this)(e);
1322
+ }
1323
+ addField(e, t, n = null) {
1324
+ return _._featuresetFunctions.addField.bind(this)(e, t, n);
1325
+ }
1326
+ sumArea(e, t = !1, n) {
1327
+ const a = re(e);
1328
+ return this.reduce((s, i) => i.geometry === null ? 0 : t ? ce(i.geometry, a).then((l) => s + l) : he(i.geometry, a).then((l) => s + l), 0, n);
1329
+ }
1330
+ sumLength(e, t = !1, n) {
1331
+ const a = se(e);
1332
+ return this.reduce((s, i) => i.geometry === null ? 0 : t ? de(i.geometry, a).then((l) => s + l) : pe(i.geometry, a).then((l) => s + l), 0, n);
1333
+ }
1334
+ _substituteVars(e, t) {
1335
+ if (t !== null) {
1336
+ const n = {};
1337
+ for (const a in t)
1338
+ n[a.toLowerCase()] = t[a];
1339
+ e.parameters = n;
1340
+ }
1341
+ }
1342
+ async distinct(e, t = 1e3, n = null, a) {
1343
+ await this.load();
1344
+ const s = T.create(e, this.getFieldsIndex(), this.dateFieldsTimeZoneDefaultUTC);
1345
+ return this._substituteVars(s, n), this.calculateStatistic("distinct", s, t, this._defaultTracker(a));
1346
+ }
1347
+ async min(e, t = null, n) {
1348
+ await this.load();
1349
+ const a = T.create(e, this.getFieldsIndex(), this.dateFieldsTimeZoneDefaultUTC);
1350
+ return this._substituteVars(a, t), this.calculateStatistic("min", a, -1, this._defaultTracker(n));
1351
+ }
1352
+ async max(e, t = null, n) {
1353
+ await this.load();
1354
+ const a = T.create(e, this.getFieldsIndex(), this.dateFieldsTimeZoneDefaultUTC);
1355
+ return this._substituteVars(a, t), this.calculateStatistic("max", a, -1, this._defaultTracker(n));
1356
+ }
1357
+ async avg(e, t = null, n) {
1358
+ await this.load();
1359
+ const a = T.create(e, this.getFieldsIndex(), this.dateFieldsTimeZoneDefaultUTC);
1360
+ return this._substituteVars(a, t), this.calculateStatistic("avg", a, -1, this._defaultTracker(n));
1361
+ }
1362
+ async sum(e, t = null, n) {
1363
+ await this.load();
1364
+ const a = T.create(e, this.getFieldsIndex(), this.dateFieldsTimeZoneDefaultUTC);
1365
+ return this._substituteVars(a, t), this.calculateStatistic("sum", a, -1, this._defaultTracker(n));
1366
+ }
1367
+ async stdev(e, t = null, n) {
1368
+ await this.load();
1369
+ const a = T.create(e, this.getFieldsIndex(), this.dateFieldsTimeZoneDefaultUTC);
1370
+ return this._substituteVars(a, t), this.calculateStatistic("stdev", a, -1, this._defaultTracker(n));
1371
+ }
1372
+ async variance(e, t = null, n) {
1373
+ await this.load();
1374
+ const a = T.create(e, this.getFieldsIndex(), this.dateFieldsTimeZoneDefaultUTC);
1375
+ return this._substituteVars(a, t), this.calculateStatistic("variance", a, -1, this._defaultTracker(n));
1376
+ }
1377
+ async count(e) {
1378
+ return await this.load(), this.calculateStatistic("count", T.create("1", this.getFieldsIndex(), this.dateFieldsTimeZoneDefaultUTC), -1, this._defaultTracker(e));
1379
+ }
1380
+ _defaultTracker(e) {
1381
+ return e ?? { aborted: !1 };
1382
+ }
1383
+ forEach(e, t) {
1384
+ return new Promise((n, a) => {
1385
+ this._forEachImpl(this.iterator(this._defaultTracker(t)), e, this, n, a, 0);
1386
+ });
1387
+ }
1388
+ _forEachImpl(e, t, n, a, s, i) {
1389
+ try {
1390
+ if (++i > 1e3)
1391
+ return void setTimeout(() => {
1392
+ i = 0, this._forEachImpl(e, t, n, a, s, i);
1393
+ }, 0);
1394
+ e.next().then((l) => {
1395
+ try {
1396
+ if (l === null)
1397
+ a(n);
1398
+ else {
1399
+ const o = t(l);
1400
+ o == null ? this._forEachImpl(e, t, n, a, s, i) : Z(o) ? o.then(() => {
1401
+ try {
1402
+ this._forEachImpl(e, t, n, a, s, i);
1403
+ } catch (u) {
1404
+ s(u);
1405
+ }
1406
+ }, s) : this._forEachImpl(e, t, n, a, s, i);
1407
+ }
1408
+ } catch (o) {
1409
+ s(o);
1410
+ }
1411
+ }, s);
1412
+ } catch (l) {
1413
+ s(l);
1414
+ }
1415
+ }
1416
+ convertToJSON(e) {
1417
+ const t = { layerDefinition: { geometryType: this.geometryType, fields: [] }, featureSet: { features: [], geometryType: this.geometryType } };
1418
+ for (let n = 0; n < this.fields.length; n++)
1419
+ t.layerDefinition.fields.push(G(this.fields[n]));
1420
+ return this.reduce((n, a) => {
1421
+ var i;
1422
+ const s = { geometry: (i = a.geometry) == null ? void 0 : i.toJSON(), attributes: {} };
1423
+ for (const l in a.attributes)
1424
+ s.attributes[l] = a.attributes[l];
1425
+ return t.featureSet.features.push(s), 1;
1426
+ }, 0, e).then(() => t);
1427
+ }
1428
+ castToText(e = !1) {
1429
+ return "object, FeatureSet";
1430
+ }
1431
+ queryAttachments(e, t, n, a, s) {
1432
+ return this._parent.queryAttachments(e, t, n, a, s);
1433
+ }
1434
+ serviceUrl() {
1435
+ return this._parent.serviceUrl();
1436
+ }
1437
+ subtypeMetaData() {
1438
+ return this.subtypeField && this.subtypes ? { subtypeField: this.subtypeField, subtypes: this.subtypes ? this.subtypes.map((e) => ({ name: e.name, code: e.code })) : [] } : this.typeIdField ? { subtypeField: this.typeIdField, subtypes: this.types ? this.types.map((e) => ({ name: e.name, code: e.id })) : [] } : null;
1439
+ }
1440
+ relationshipMetaData() {
1441
+ return this._parent.relationshipMetaData();
1442
+ }
1443
+ get gdbVersion() {
1444
+ return this._parent ? this._parent.gdbVersion : "";
1445
+ }
1446
+ schema() {
1447
+ const e = [];
1448
+ for (const t of this.fields)
1449
+ e.push(G(t));
1450
+ return { objectIdField: this.objectIdField, globalIdField: this.globalIdField, geometryType: B[this.geometryType] === void 0 ? "esriGeometryNull" : B[this.geometryType], fields: e };
1451
+ }
1452
+ async convertToText(e, t) {
1453
+ if (e === "schema")
1454
+ return await this._ensureLoaded(), JSON.stringify(this.schema());
1455
+ if (e === "featureset") {
1456
+ await this._ensureLoaded();
1457
+ const n = [];
1458
+ await this.reduce((s, i) => {
1459
+ const l = { geometry: i.geometry ? i.geometry.toJSON() : null, attributes: i.attributes };
1460
+ return l.geometry !== null && l.geometry.spatialReference && delete l.geometry.spatialReference, n.push(l), 1;
1461
+ }, 0, t);
1462
+ const a = this.schema();
1463
+ return a.features = n, a.spatialReference = this.spatialReference.toJSON(), JSON.stringify(a);
1464
+ }
1465
+ return this.castToText();
1466
+ }
1467
+ getFeatureByObjectId(e, t) {
1468
+ return this._parent.getFeatureByObjectId(e, t);
1469
+ }
1470
+ getOwningSystemUrl() {
1471
+ return this._parent.getOwningSystemUrl();
1472
+ }
1473
+ getIdentityUser() {
1474
+ return this._parent.getIdentityUser();
1475
+ }
1476
+ getRootFeatureSet() {
1477
+ return this._parent !== null ? this._parent.getRootFeatureSet() : this;
1478
+ }
1479
+ getDataSourceFeatureSet() {
1480
+ return this._parent !== null ? this._parent.getDataSourceFeatureSet() : this;
1481
+ }
1482
+ castAsJson(e = null) {
1483
+ return (e == null ? void 0 : e.featureset) === "keeptype" ? this : (e == null ? void 0 : e.featureset) === "none" ? null : { type: "FeatureSet" };
1484
+ }
1485
+ async castAsJsonAsync(e = null, t = null) {
1486
+ var s;
1487
+ if ((t == null ? void 0 : t.featureset) === "keeptype")
1488
+ return this;
1489
+ if ((t == null ? void 0 : t.featureset) === "schema")
1490
+ return await this._ensureLoaded(), JSON.parse(JSON.stringify(this.schema()));
1491
+ if ((t == null ? void 0 : t.featureset) === "none")
1492
+ return null;
1493
+ await this._ensureLoaded();
1494
+ const n = [];
1495
+ await this.reduce((i, l) => {
1496
+ const o = { geometry: l.geometry ? (t == null ? void 0 : t.keepGeometryType) === !0 ? l.geometry : l.geometry.toJSON() : null, attributes: l.attributes };
1497
+ return o.geometry !== null && o.geometry.spatialReference && (t == null ? void 0 : t.keepGeometryType) !== !0 && delete o.geometry.spatialReference, n.push(o), 1;
1498
+ }, 0, e);
1499
+ const a = this.schema();
1500
+ return a.features = n, a.spatialReference = (t == null ? void 0 : t.keepGeometryType) === !0 ? this.spatialReference : (s = this.spatialReference) == null ? void 0 : s.toJSON(), a;
1501
+ }
1502
+ fieldTimeZone(e) {
1503
+ return this.getFieldsIndex().getTimeZone(e);
1504
+ }
1505
+ get preferredTimeZone() {
1506
+ var e;
1507
+ return ((e = this._parent) == null ? void 0 : e.preferredTimeZone) ?? null;
1508
+ }
1509
+ get dateFieldsTimeZone() {
1510
+ var e;
1511
+ return ((e = this._parent) == null ? void 0 : e.dateFieldsTimeZone) ?? null;
1512
+ }
1513
+ get dateFieldsTimeZoneDefaultUTC() {
1514
+ if (this.datesInUnknownTimezone)
1515
+ return "unknown";
1516
+ const e = this.dateFieldsTimeZone ?? "UTC";
1517
+ return e === "" ? "UTC" : e;
1518
+ }
1519
+ get datesInUnknownTimezone() {
1520
+ return this._parent.datesInUnknownTimezone;
1521
+ }
1522
+ get editFieldsInfo() {
1523
+ var e;
1524
+ return ((e = this._parent) == null ? void 0 : e.editFieldsInfo) ?? null;
1525
+ }
1526
+ get timeInfo() {
1527
+ var e;
1528
+ return ((e = this._parent) == null ? void 0 : e.timeInfo) ?? null;
1529
+ }
1530
+ set featureSetInfo(e) {
1531
+ this.fsetInfo = e;
1532
+ }
1533
+ async getFeatureSetInfo() {
1534
+ var e;
1535
+ return this.fsetInfo ?? await ((e = this._parent) == null ? void 0 : e.getFeatureSetInfo()) ?? null;
1536
+ }
1537
+ }
1538
+ _._featuresetFunctions = {};
1539
+ class b extends _ {
1540
+ constructor(e) {
1541
+ super(e), this.declaredClass = "esri.layers.featureset.sources.Empty", this._maxProcessing = 1e3, this._wset = new D([], [], !1, null), this._parent = e.parentfeatureset, this._databaseType = h.Standardised;
1542
+ }
1543
+ async _getSet() {
1544
+ return this._wset;
1545
+ }
1546
+ optimisePagingFeatureQueries() {
1547
+ }
1548
+ _isInFeatureSet() {
1549
+ return F.NotInFeatureSet;
1550
+ }
1551
+ async _getFeature() {
1552
+ throw new m(y.NeverReach);
1553
+ }
1554
+ async queryAttachments() {
1555
+ return [];
1556
+ }
1557
+ async _getFeatures() {
1558
+ return "success";
1559
+ }
1560
+ _featureFromCache() {
1561
+ return null;
1562
+ }
1563
+ async _fetchAndRefineFeatures() {
1564
+ throw new m(y.NeverReach);
1565
+ }
1566
+ async _getFilteredSet() {
1567
+ return new D([], [], !1, null);
1568
+ }
1569
+ _stat(e, t, n, a, s, i, l) {
1570
+ return this._manualStat(e, t, i, l);
1571
+ }
1572
+ async _canDoAggregates() {
1573
+ return !1;
1574
+ }
1575
+ }
1576
+ class I extends _ {
1577
+ constructor(e) {
1578
+ super(e), this._relation = "", this._relationGeom = null, this._relationString = "", this.declaredClass = "esri.arcade.featureset.actions.SpatialFilter", this._relationString = e.relationString, this._parent = e.parentfeatureset, this._maxProcessing = 40, this._relation = e.relation, this._relationGeom = e.relationGeom;
1579
+ }
1580
+ async _getSet(e) {
1581
+ if (this._wset === null) {
1582
+ await this._ensureLoaded();
1583
+ const t = await this._parent._getFilteredSet(this._relation !== "esriSpatialRelRelation" ? this._relation : this._relation + ":" + this._relationString, this._relationGeom, null, null, e);
1584
+ return this._checkCancelled(e), this._wset = new D(t._candidates.slice(0), t._known.slice(0), t._ordered, this._clonePageDefinition(t.pagesDefinition)), this._wset;
1585
+ }
1586
+ return this._wset;
1587
+ }
1588
+ _isInFeatureSet(e) {
1589
+ let t = this._parent._isInFeatureSet(e);
1590
+ return t === F.NotInFeatureSet ? t : (t = this._idstates[e], t === void 0 ? F.Unknown : t);
1591
+ }
1592
+ _getFeature(e, t, n) {
1593
+ return this._parent._getFeature(e, t, n);
1594
+ }
1595
+ _getFeatures(e, t, n, a) {
1596
+ return this._parent._getFeatures(e, t, n, a);
1597
+ }
1598
+ _featureFromCache(e) {
1599
+ return this._parent._featureFromCache(e);
1600
+ }
1601
+ async executeSpatialRelationTest(e) {
1602
+ if (e.geometry === null)
1603
+ return !1;
1604
+ switch (this._relation) {
1605
+ case "esriSpatialRelEnvelopeIntersects":
1606
+ return Y(H(this._relationGeom), H(e.geometry));
1607
+ case "esriSpatialRelIntersects":
1608
+ return Y(this._relationGeom, e.geometry);
1609
+ case "esriSpatialRelContains":
1610
+ return Se(this._relationGeom, e.geometry);
1611
+ case "esriSpatialRelOverlaps":
1612
+ return ye(this._relationGeom, e.geometry);
1613
+ case "esriSpatialRelWithin":
1614
+ return me(this._relationGeom, e.geometry);
1615
+ case "esriSpatialRelTouches":
1616
+ return ge(this._relationGeom, e.geometry);
1617
+ case "esriSpatialRelCrosses":
1618
+ return fe(this._relationGeom, e.geometry);
1619
+ case "esriSpatialRelRelation":
1620
+ return _e(this._relationGeom, e.geometry, this._relationString ?? "");
1621
+ }
1622
+ }
1623
+ async _fetchAndRefineFeatures(e, t, n) {
1624
+ var l;
1625
+ const a = new D([], e, !1, null), s = Math.min(t, e.length);
1626
+ await ((l = this._parent) == null ? void 0 : l._getFeatures(a, -1, s, n)), this._checkCancelled(n);
1627
+ const i = [];
1628
+ for (let o = 0; o < s; o++) {
1629
+ const u = this._parent._featureFromCache(e[o]);
1630
+ i.push(await this.executeSpatialRelationTest(u));
1631
+ }
1632
+ for (let o = 0; o < t; o++)
1633
+ i[o] === !0 ? this._idstates[e[o]] = F.InFeatureSet : this._idstates[e[o]] = F.NotInFeatureSet;
1634
+ return "success";
1635
+ }
1636
+ async _getFilteredSet(e, t, n, a, s) {
1637
+ await this._ensureLoaded();
1638
+ const i = await this._parent._getFilteredSet(this._relation !== "esriSpatialRelRelation" ? this._relation : this._relation + ":" + this._relationString, this._relationGeom, n, a, s);
1639
+ let l;
1640
+ return this._checkCancelled(s), l = t !== null ? new D(i._candidates.slice(0).concat(i._known.slice(0)), [], i._ordered, this._clonePageDefinition(i.pagesDefinition)) : new D(i._candidates.slice(0), i._known.slice(0), i._ordered, this._clonePageDefinition(i.pagesDefinition)), l;
1641
+ }
1642
+ async _stat(e, t, n, a, s, i, l) {
1643
+ if (n !== "")
1644
+ return { calculated: !1 };
1645
+ const o = await this._parent._stat(e, t, this._relation !== "esriSpatialRelRelation" ? this._relation : this._relation + ":" + this._relationString, this._relationGeom, s, i, l);
1646
+ return o.calculated === !1 ? s === null && n === "" && a === null ? this._manualStat(e, t, i, l) : { calculated: !1 } : o;
1647
+ }
1648
+ async _canDoAggregates(e, t, n, a, s) {
1649
+ return n === "" && a === null && this._parent !== null && this._parent._canDoAggregates(e, t, this._relation !== "esriSpatialRelRelation" ? this._relation : this._relation + ":" + this._relationString, this._relationGeom, s);
1650
+ }
1651
+ async _getAggregatePagesDataSourceDefinition(e, t, n, a, s, i, l) {
1652
+ if (this._parent === null)
1653
+ throw new m(y.NeverReach);
1654
+ return this._parent._getAggregatePagesDataSourceDefinition(e, t, this._relation !== "esriSpatialRelRelation" ? this._relation : this._relation + ":" + this._relationString, this._relationGeom, s, i, l);
1655
+ }
1656
+ static registerAction() {
1657
+ _._featuresetFunctions.intersects = function(e) {
1658
+ return e == null ? new b({ parentfeatureset: this }) : new I({ parentfeatureset: this, relation: "esriSpatialRelIntersects", relationGeom: e });
1659
+ }, _._featuresetFunctions.envelopeIntersects = function(e) {
1660
+ return e == null ? new b({ parentfeatureset: this }) : new I({ parentfeatureset: this, relation: "esriSpatialRelEnvelopeIntersects", relationGeom: e });
1661
+ }, _._featuresetFunctions.contains = function(e) {
1662
+ return e == null ? new b({ parentfeatureset: this }) : new I({ parentfeatureset: this, relation: "esriSpatialRelContains", relationGeom: e });
1663
+ }, _._featuresetFunctions.overlaps = function(e) {
1664
+ return e == null ? new b({ parentfeatureset: this }) : new I({ parentfeatureset: this, relation: "esriSpatialRelOverlaps", relationGeom: e });
1665
+ }, _._featuresetFunctions.within = function(e) {
1666
+ return e == null ? new b({ parentfeatureset: this }) : new I({ parentfeatureset: this, relation: "esriSpatialRelWithin", relationGeom: e });
1667
+ }, _._featuresetFunctions.touches = function(e) {
1668
+ return e == null ? new b({ parentfeatureset: this }) : new I({ parentfeatureset: this, relation: "esriSpatialRelTouches", relationGeom: e });
1669
+ }, _._featuresetFunctions.crosses = function(e) {
1670
+ return e == null ? new b({ parentfeatureset: this }) : new I({ parentfeatureset: this, relation: "esriSpatialRelCrosses", relationGeom: e });
1671
+ }, _._featuresetFunctions.relate = function(e, t) {
1672
+ return e == null ? new b({ parentfeatureset: this }) : new I({ parentfeatureset: this, relation: "esriSpatialRelRelation", relationGeom: e, relationString: t });
1673
+ };
1674
+ }
1675
+ getFieldsIndex() {
1676
+ return this._parent.getFieldsIndex();
1677
+ }
1678
+ }
1679
+ export {
1680
+ De as D,
1681
+ q as E,
1682
+ Ee as F,
1683
+ be as I,
1684
+ Fe as L,
1685
+ Q as S,
1686
+ U as T,
1687
+ K as a,
1688
+ Ve as b,
1689
+ E as c,
1690
+ Je as d,
1691
+ I as f,
1692
+ Qe as g,
1693
+ Ke as m,
1694
+ Ye as p,
1695
+ D as t,
1696
+ b as u,
1697
+ qe as v,
1698
+ R as w,
1699
+ _ as x,
1700
+ Ie as y
1701
+ };