@agrotools1/at-components 0.3.4 → 0.3.5

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 (895) hide show
  1. package/dist/AGraphicContainer-b6e32ab3.js +109 -0
  2. package/dist/APIKeyMixin-83218bd5.js +19 -0
  3. package/dist/Analysis-8c5616ab.js +31 -0
  4. package/dist/ArcGISCachedService-8da73861.js +47 -0
  5. package/dist/ArcGISService-1e7483eb.js +25 -0
  6. package/dist/AreaMeasurement2D-ee78c5ab.js +405 -0
  7. package/dist/AreaMeasurement3D-098fd9ea.js +488 -0
  8. package/dist/AttachmentInfo-1b2ece0a.js +34 -0
  9. package/dist/AttachmentQuery-470d5a03.js +18 -0
  10. package/dist/AttributeStore-f80857be.js +1707 -0
  11. package/dist/BaseDynamicLayerView2D-a5f201d7.js +63 -0
  12. package/dist/BingMapsLayer-4c95d39c.js +112 -0
  13. package/dist/Bitmap-d7c41f66.js +128 -0
  14. package/dist/BitmapContainer-af419f59.js +23 -0
  15. package/dist/BlendLayer-ced1717f.js +13 -0
  16. package/dist/BoundsStore-030e1112.js +63 -0
  17. package/dist/BufferObject-6f0ccf08.js +100 -0
  18. package/dist/BufferView-83825b1b.js +683 -0
  19. package/dist/BuildingSceneLayer-67d67dd9.js +535 -0
  20. package/dist/Button-b96d4e96.js +36 -0
  21. package/dist/CSVLayer-0d54cccb.js +208 -0
  22. package/dist/CSVSourceWorker-00c7e147.js +367 -0
  23. package/dist/CatalogDynamicGroupLayerView2D-e1b747eb.js +66 -0
  24. package/dist/CatalogFootprintLayerView2D-4d654b8c.js +76 -0
  25. package/dist/CatalogLayer-fdcebf46.js +262 -0
  26. package/dist/CatalogLayerView2D-d872dec4.js +52 -0
  27. package/dist/ClassBreaksDefinition-0f6902fe.js +18 -0
  28. package/dist/ColorMaterial.glsl-0f79d1d3.js +64 -0
  29. package/dist/ColorSet-1f170190.js +45 -0
  30. package/dist/ColorStop-81b2ebbf.js +29 -0
  31. package/dist/Container-5cca9103.js +521 -0
  32. package/dist/CustomParametersMixin-fa9fc8f5.js +12 -0
  33. package/dist/DefaultMaterial.glsl-ea170d90.js +42 -0
  34. package/dist/DefaultMaterial_COLOR_GAMMA-e9199fb6.js +653 -0
  35. package/dist/DefaultTheme-e76e0ce4.js +130 -0
  36. package/dist/DeleteForwardEditsParameters-114413db.js +18 -0
  37. package/dist/DimensionLayer-5caa9d6d.js +129 -0
  38. package/dist/DirectLineMeasurement3D-6d3a316a.js +449 -0
  39. package/dist/DistanceMeasurement2D-7090d647.js +303 -0
  40. package/dist/DoubleArray-40bc6f82.js +25 -0
  41. package/dist/Dropdown/Checklist/Dropdown.Checklist.d.ts +17 -17
  42. package/dist/Dropdown/Dropdown.core.d.ts +6 -4
  43. package/dist/Dropdown/Dropdown.types.d.ts +1 -1
  44. package/dist/EdgeProcessingWorker-94aed8c4.js +63 -0
  45. package/dist/EditBusLayer-dcf477a3.js +107 -0
  46. package/dist/ElevationInfo-a456026a.js +56 -0
  47. package/dist/ElevationLayer-6061b8f4.js +129 -0
  48. package/dist/ElevationQuery-ec17e2cc.js +598 -0
  49. package/dist/ElevationSamplerWorker-beaaeaeb.js +62 -0
  50. package/dist/ExportImageParameters-56040230.js +66 -0
  51. package/dist/ExportStrategy-7d1b4a0c.js +93 -0
  52. package/dist/ExportWMSImageParameters-0b3d33ed.js +33 -0
  53. package/dist/External-9a57bcf0.js +110 -0
  54. package/dist/FeatureCollectionSnappingSource-b589f9ce.js +130 -0
  55. package/dist/FeatureCommandQueue-d1572e0d.js +1244 -0
  56. package/dist/FeatureEffect-20d94762.js +39 -0
  57. package/dist/FeatureEffectLayer-017997f2.js +13 -0
  58. package/dist/FeatureFilter-73c8c240.js +27 -0
  59. package/dist/FeatureLayer-ecf9f4ea.js +693 -0
  60. package/dist/FeatureLayerBase-1ffc64a0.js +148 -0
  61. package/dist/FeatureLayerSource-0acdac77.js +444 -0
  62. package/dist/FeatureLayerView2D-6f0d2580.js +1967 -0
  63. package/dist/FeaturePipelineWorker-77d06d4f.js +3633 -0
  64. package/dist/FeatureReductionLayer-203415cc.js +225 -0
  65. package/dist/FeatureReductionSelection-4ba3cfda.js +22 -0
  66. package/dist/FeatureServiceSnappingSource-90c5e877.js +481 -0
  67. package/dist/FeatureServiceSnappingSourceWorker-9f33d320.js +747 -0
  68. package/dist/FeatureSet-29d82bc9.js +188 -0
  69. package/dist/FeatureStore-9d48217b.js +131 -0
  70. package/dist/FeatureTemplate-79cf9cb6.js +12 -0
  71. package/dist/FeatureType-30eece24.js +25 -0
  72. package/dist/FieldsIndex-7d8f3589.js +109 -0
  73. package/dist/Filter/components/Filter.types.d.ts +17 -0
  74. package/dist/Filter/index.d.ts +4 -0
  75. package/dist/Filter/tests/mocks.d.ts +6 -0
  76. package/dist/FormTemplate-18b193a8.js +350 -0
  77. package/dist/GeoJSONLayer-d2677013.js +236 -0
  78. package/dist/GeoJSONSourceWorker-4571c9d5.js +247 -0
  79. package/dist/GeoRSSLayer-320f17b2.js +73 -0
  80. package/dist/GeoRSSLayerView2D-4683eb47.js +140 -0
  81. package/dist/GeometryUtils-b855940e.js +403 -0
  82. package/dist/GraphicContainer-9bd07fb2.js +26 -0
  83. package/dist/GraphicManipulator-e96e9aa3.js +1499 -0
  84. package/dist/GraphicsLayer-964ed1f0.js +38 -0
  85. package/dist/GraphicsLayerView2D-83766b4b.js +114 -0
  86. package/dist/GraphicsSnappingSource-0bf5350b.js +273 -0
  87. package/dist/GraphicsView2D-3103ed12.js +620 -0
  88. package/dist/GroupLayer-2c099630.js +147 -0
  89. package/dist/GroupLayerView2D-abb8b6d5.js +98 -0
  90. package/dist/HUDMaterial.glsl-6e206016.js +65 -0
  91. package/dist/HighlightCounter-1d4774e1.js +41 -0
  92. package/dist/HighlightGraphicContainer-de26900b.js +18 -0
  93. package/dist/I3SBinaryReader-63c12e1b.js +310 -0
  94. package/dist/I3SLayerDefinitions-d0aa8265.js +55 -0
  95. package/dist/I3SUtil-277467e8.js +59 -0
  96. package/dist/IdentityManager-a1b54522.js +899 -0
  97. package/dist/ImageHistogramParameters-47cf0f1b.js +905 -0
  98. package/dist/ImageryLayer-89c92097.js +1799 -0
  99. package/dist/ImageryLayerView2D-e0c5549a.js +352 -0
  100. package/dist/ImageryTileLayer-c38364f3.js +2157 -0
  101. package/dist/ImageryTileLayerView2D-f659a87c.js +1110 -0
  102. package/dist/Indices-29975728.js +67 -0
  103. package/dist/Input/Input.core.d.ts +1 -1
  104. package/dist/Input/index.d.ts +1 -1
  105. package/dist/IntegratedMesh3DTilesLayer-8b851e87.js +112 -0
  106. package/dist/IntegratedMeshLayer-9ed738ba.js +141 -0
  107. package/dist/InteractiveAnalysisViewModel-c95e13c5.js +7397 -0
  108. package/dist/InterleavedLayout-f5e6ee23.js +163 -0
  109. package/dist/KMLLayer-3662a890.js +162 -0
  110. package/dist/KMLLayerView2D-3d172b6a.js +253 -0
  111. package/dist/KnowledgeGraphLayerView2D-086160b5.js +43 -0
  112. package/dist/LRUCache-948c7d75.js +32 -0
  113. package/dist/LabelClass-c0694878.js +135 -0
  114. package/dist/LabelMetric-39280634.js +400 -0
  115. package/dist/LaserlinePath.glsl-205f0e8a.js +64 -0
  116. package/dist/Laserlines.glsl-6f09c43e.js +65 -0
  117. package/dist/LayerFloorInfo-308449b6.js +15 -0
  118. package/dist/LayerView-2b3b1a70.js +206 -0
  119. package/dist/LercWorker-b007ee29.js +157 -0
  120. package/dist/LineOfSightLayer-99b48ebf.js +147 -0
  121. package/dist/LinkChartLayer-d69e2e36.js +1027 -0
  122. package/dist/List/components/List.d.ts +74 -0
  123. package/dist/List/components/List.types.d.ts +11 -0
  124. package/dist/List/index.d.ts +4 -0
  125. package/dist/List/tests/mocks.d.ts +7 -0
  126. package/dist/Lyr3DWorker-2fdd578b.js +82 -0
  127. package/dist/MagnifierPrograms-5042ccad.js +806 -0
  128. package/dist/MapImageLayer-f3e35db3.js +169 -0
  129. package/dist/MapImageLayerView2D-98cfaffb.js +146 -0
  130. package/dist/MapNotesLayer-6942570f.js +283 -0
  131. package/dist/MapNotesLayerView2D-b641bba4.js +161 -0
  132. package/dist/MapServiceLayerViewHelper-9111fb4f.js +288 -0
  133. package/dist/MeasurementWidgetContent-a66f382a.js +2642 -0
  134. package/dist/MediaLayer-585e1067.js +523 -0
  135. package/dist/MediaLayerView2D-74d90bf4.js +332 -0
  136. package/dist/MemCache-1532e921.js +227 -0
  137. package/dist/MemorySourceWorker-ba059303.js +222 -0
  138. package/dist/Mesh-43d631db.js +980 -0
  139. package/dist/MeshLocalVertexSpace-f9cc6881.js +19 -0
  140. package/dist/MultiOriginJSONSupport-ec8788e6.js +158 -0
  141. package/dist/OGCFeatureLayer-5e327659.js +211 -0
  142. package/dist/OGCFeatureLayerView2D-d0104fdc.js +82 -0
  143. package/dist/ObjectStack-2d389b76.js +21 -0
  144. package/dist/Octree-1dba17ba.js +495 -0
  145. package/dist/OpenStreetMapLayer-dc083119.js +30 -0
  146. package/dist/OperationalLayer-d43d80b1.js +44 -0
  147. package/dist/OrderByInfo-26301234.js +16 -0
  148. package/dist/OrderedLayer-36fe0e60.js +26 -0
  149. package/dist/OrientedImageryLayer-21689d88.js +216 -0
  150. package/dist/OverlayCompositing.glsl-f80836ca.js +65 -0
  151. package/dist/OverrideHelper-880a7e09.js +242 -0
  152. package/dist/PBFDecoderWorker-b5f6d890.js +213 -0
  153. package/dist/PointCloudLayer-899f6a49.js +197 -0
  154. package/dist/PointCloudUniqueValueRenderer-8a477087.js +115 -0
  155. package/dist/PointCloudWorker-4bea79e8.js +212 -0
  156. package/dist/PooledRBush-df73bc2a.js +272 -0
  157. package/dist/Popup-e01092b4.js +3990 -0
  158. package/dist/PortalLayer-daca6a23.js +126 -0
  159. package/dist/Program-8b1e5f48.js +694 -0
  160. package/dist/ProgramTemplate-e4360f44.js +35 -0
  161. package/dist/QueryEngine-ca1511e3.js +896 -0
  162. package/dist/QueryTask-c9fa71fa.js +119 -0
  163. package/dist/RasterSymbolizer-1644d7a7.js +3024 -0
  164. package/dist/RasterVFDisplayObject-7ec19876.js +581 -0
  165. package/dist/RasterWorker-2d320094.js +78 -0
  166. package/dist/RawBlockCache-86e6c5d3.js +185 -0
  167. package/dist/RealisticTree.glsl-65abf4e9.js +42 -0
  168. package/dist/RefreshableLayer-a0708abb.js +80 -0
  169. package/dist/RefreshableLayerView-2b6aca24.js +16 -0
  170. package/dist/Relationship-ef9ae528.js +64 -0
  171. package/dist/RelationshipQuery-8a39148b.js +22 -0
  172. package/dist/RenderingContext-e718bfed.js +889 -0
  173. package/dist/RibbonLine.glsl-e82fb3bb.js +65 -0
  174. package/dist/RouteLayer-06ecd24a.js +786 -0
  175. package/dist/RouteLayerView2D-26c96396.js +195 -0
  176. package/dist/SDFHelper-70cff23b.js +140 -0
  177. package/dist/SSAO.glsl-54f15911.js +43 -0
  178. package/dist/SSAOBlur.glsl-cbd829bc.js +42 -0
  179. package/dist/ScaleRangeLayer-dc6d9c0e.js +21 -0
  180. package/dist/SceneLayer-255b45af.js +542 -0
  181. package/dist/SceneLayerSnappingSource-8969a32e.js +218 -0
  182. package/dist/SceneLayerSnappingSourceWorker-17673240.js +112 -0
  183. package/dist/SceneLayerWorker-46a764a8.js +164 -0
  184. package/dist/SceneService-bbc3f4e5.js +215 -0
  185. package/dist/Scheduler-e3ad50f2.js +373 -0
  186. package/dist/Search/Search.d.ts +11 -0
  187. package/dist/Select/Multiple/Select.multiple.d.ts +1 -1
  188. package/dist/Select/Select.core.d.ts +1 -1
  189. package/dist/Select/index.d.ts +1 -1
  190. package/dist/ShadedColorMaterial.glsl-8e194f81.js +64 -0
  191. package/dist/SnappingOperation-d12c0cd0.js +48 -0
  192. package/dist/SourceLayerData-054d8bb6.js +116 -0
  193. package/dist/SpatialFilter-ba146c95.js +1701 -0
  194. package/dist/Stop-38c9a9d4.js +281 -0
  195. package/dist/StreamLayer-9d300b87.js +188 -0
  196. package/dist/StreamLayerView2D-d80b90e9.js +164 -0
  197. package/dist/StyleRepository-e8c44bab.js +2212 -0
  198. package/dist/SublayersOwner-469b921a.js +545 -0
  199. package/dist/SubtypeGroupLayer-e467307a.js +514 -0
  200. package/dist/SubtypeGroupLayerView2D-41ed7e6f.js +84 -0
  201. package/dist/TableConfig/TableConfig.d.ts +6 -6
  202. package/dist/Tabs/Tab/Tab.d.ts +3 -3
  203. package/dist/TechniqueInstance-9c0d4dcf.js +233 -0
  204. package/dist/TemporalLayer-011ac13a.js +23 -0
  205. package/dist/Texture-b28260ca.js +501 -0
  206. package/dist/TextureOnly.glsl-87d0e898.js +65 -0
  207. package/dist/Theme-bf54db6d.js +3426 -0
  208. package/dist/Tick-5be5a637.js +723 -0
  209. package/dist/TileContainer-09ca940a.js +31 -0
  210. package/dist/TileInfoTilemapCache-26485a76.js +38 -0
  211. package/dist/TileLayer-b0580f1d.js +194 -0
  212. package/dist/TileLayerView2D-e4561937.js +187 -0
  213. package/dist/TilemapCache-d2163c80.js +189 -0
  214. package/dist/TimeInfo-68d2df8b.js +42 -0
  215. package/dist/TimeOnly-bb600899.js +706 -0
  216. package/dist/Tooltip-927072f3.js +138 -0
  217. package/dist/TopFeaturesQuery-77f00fe7.js +32 -0
  218. package/dist/TurboLine-87dd880a.js +565 -0
  219. package/dist/UniqueValueRenderer-56a91680.js +1039 -0
  220. package/dist/UnknownLayer-6b7b3c5d.js +30 -0
  221. package/dist/UnknownTimeZone-e62caf07.js +15 -0
  222. package/dist/UnsupportedLayer-16a90c0a.js +31 -0
  223. package/dist/UpdateTracking2D-bf4e8a89.js +8566 -0
  224. package/dist/Util-6762e3c9.js +57 -0
  225. package/dist/VectorTileLayer-3c42b01b.js +544 -0
  226. package/dist/VectorTileLayerView2D-3af619aa.js +2108 -0
  227. package/dist/Version-9c75ca2b.js +33 -0
  228. package/dist/VertexArrayObject-e736d4c8.js +73 -0
  229. package/dist/VertexColor.glsl-69e78e7a.js +2683 -0
  230. package/dist/VertexSnappingCandidate-10823eb3.js +13 -0
  231. package/dist/VideoLayerView2D-68e687b0.js +124 -0
  232. package/dist/VoxelLayer-76005caf.js +631 -0
  233. package/dist/WFSLayer-398b281f.js +221 -0
  234. package/dist/WFSSourceWorker-7506acff.js +157 -0
  235. package/dist/WGLContainer-f2c4f5da.js +5426 -0
  236. package/dist/WMSLayer-6fbfc745.js +536 -0
  237. package/dist/WMSLayerView2D-63dda194.js +117 -0
  238. package/dist/WMTSLayer-6492359f.js +531 -0
  239. package/dist/WMTSLayerView2D-5daae3fe.js +142 -0
  240. package/dist/WebTileLayer-5f7595df.js +110 -0
  241. package/dist/WhereClause-a8fc45da.js +2766 -0
  242. package/dist/WorkerHandle-11931750.js +47 -0
  243. package/dist/WorkerTileHandler-b53b5efc.js +1539 -0
  244. package/dist/action-b5c3b319.js +198 -0
  245. package/dist/action-group-01e02696.js +145 -0
  246. package/dist/action-menu-e0ddae4e.js +1759 -0
  247. package/dist/apng-9d467a98.js +392 -0
  248. package/dist/arcade-71dc610e.js +229 -0
  249. package/dist/arcadeAsyncRuntime-146d9fb6.js +943 -0
  250. package/dist/arcadeUtils-f7ed3399.js +8741 -0
  251. package/dist/arcgis-knowledge-client-core-b8fef5b0.js +1218 -0
  252. package/dist/arcgis-knowledge-client-core-simd-d54c7150.js +1218 -0
  253. package/dist/arcgisLayers-8d42568b.js +152 -0
  254. package/dist/associatedFeatureServiceUtils-c50f28e9.js +92 -0
  255. package/dist/axisAngleDegrees-ea89c136.js +49 -0
  256. package/dist/basis_transcoder-39fbc6ae.js +1248 -0
  257. package/dist/calcite-action-264e28ab.js +22 -0
  258. package/dist/calcite-action-bar-6ec66445.js +303 -0
  259. package/dist/calcite-action-group-85d021dc.js +28 -0
  260. package/dist/calcite-button-8a5af2ce.js +228 -0
  261. package/dist/calcite-flow-9b5e43fd.js +128 -0
  262. package/dist/calcite-flow-item-0089f891.js +499 -0
  263. package/dist/calcite-icon-c20a8db7.js +16 -0
  264. package/dist/calcite-input-24e48df5.js +24 -0
  265. package/dist/calcite-label-9e4dcb66.js +79 -0
  266. package/dist/calcite-list-711dcec1.js +2135 -0
  267. package/dist/calcite-list-item-1a29c5f1.js +576 -0
  268. package/dist/calcite-list-item-group-b69dedb8.js +71 -0
  269. package/dist/calcite-loader-e8b209f6.js +14 -0
  270. package/dist/calcite-modal-5e518e4c.js +333 -0
  271. package/dist/calcite-notice-25463d4d.js +181 -0
  272. package/dist/calcite-option-113080c1.js +94 -0
  273. package/dist/calcite-scrim-423337f4.js +18 -0
  274. package/dist/calcite-select-cd1e7e86.js +231 -0
  275. package/dist/capabilities-e7ea2422.js +50 -0
  276. package/dist/chartCommon-beb757c5.js +256 -0
  277. package/dist/chartUtilsAm5-6eaf385e.js +2954 -0
  278. package/dist/clientSideDefaults-366deb67.js +39 -0
  279. package/dist/colorRamps-4ea8b8f7.js +38 -0
  280. package/dist/colorUtils-611a3fa1.js +164 -0
  281. package/dist/commonProperties-3f86f534.js +60 -0
  282. package/dist/computeTranslationToOriginAndRotation-db6fb1b6.js +60 -0
  283. package/dist/conditionalSlot-4bf2837a.js +27 -0
  284. package/dist/createConnection-0754c362.js +299 -0
  285. package/dist/dataUtils-ebb55aab.js +1421 -0
  286. package/dist/deduplicate-af05e046.js +89 -0
  287. package/dist/defaults-f025f8a3.js +31 -0
  288. package/dist/deleteForwardEdits-0b666266.js +13 -0
  289. package/dist/diffUtils-b887dbbc.js +90 -0
  290. package/dist/drapedUtils-82fba1a5.js +75 -0
  291. package/dist/earcut-da8e2a55.js +292 -0
  292. package/dist/edgeProcessing-d7499657.js +252 -0
  293. package/dist/editingSupport-4b7813cf.js +203 -0
  294. package/dist/editsZScale-4a6ee4aa.js +37 -0
  295. package/dist/elevationInfoUtils-c20557cb.js +126 -0
  296. package/dist/executeForIds-6a55aa95.js +14 -0
  297. package/dist/executeForTopCount-7ffc37ac.js +17 -0
  298. package/dist/executeForTopExtents-191307d3.js +17 -0
  299. package/dist/executeForTopIds-f644d448.js +17 -0
  300. package/dist/executeQueryJSON-c5616d7b.js +15 -0
  301. package/dist/executeQueryPBF-807fb886.js +152 -0
  302. package/dist/executeRelationshipQuery-d5a1463b.js +53 -0
  303. package/dist/executeTopFeaturesQuery-6bb737a8.js +18 -0
  304. package/dist/featureConversionUtils-8fd0a407.js +479 -0
  305. package/dist/featureLayerUtils-37c96c26.js +250 -0
  306. package/dist/featureLayerUtils-cd009ccc.js +142 -0
  307. package/dist/featureSetUtils-f54946cf.js +2530 -0
  308. package/dist/featuresetbase-5a262736.js +707 -0
  309. package/dist/featuresetgeom-b772f260.js +99 -0
  310. package/dist/featuresetstats-fecaae94.js +81 -0
  311. package/dist/featuresetstring-8d32b66d.js +95 -0
  312. package/dist/fetchService-41c786e9.js +33 -0
  313. package/dist/fieldProperties-0a31a020.js +33 -0
  314. package/dist/floatRGBA-bcce207e.js +20 -0
  315. package/dist/form-8bc80cb2.js +138 -0
  316. package/dist/geohashUtils-5b115834.js +85 -0
  317. package/dist/geojson-33ba4718.js +208 -0
  318. package/dist/geomasync-9ccbb40e.js +567 -0
  319. package/dist/geometryEngine-5d1edffb.js +192 -0
  320. package/dist/geometryEngineAsync-65f20167.js +217 -0
  321. package/dist/geometryEngineBase-4107554c.js +18463 -0
  322. package/dist/geometryEngineJSON-96ac95b3.js +46 -0
  323. package/dist/geometryEngineJSON-fecd2377.js +171 -0
  324. package/dist/geometryEngineWorker-3cc93f48.js +11 -0
  325. package/dist/geometryServiceUtils-99ffac76.js +28 -0
  326. package/dist/georeference-597e7b2a.js +291 -0
  327. package/dist/gif-24ef6c2c.js +323 -0
  328. package/dist/gltfexport-f5557b01.js +705 -0
  329. package/dist/groupLayerUtils-429ce1be.js +39 -0
  330. package/dist/heatmapUtils-582b52e1.js +45 -0
  331. package/dist/highlightReasons-6f0f9ef6.js +19 -0
  332. package/dist/hydrated-31a838fb.js +40 -0
  333. package/dist/i3s-3437a8f0.js +809 -0
  334. package/dist/icon-6764e79e.js +127 -0
  335. package/dist/imageBitmapUtils-d56cd963.js +23 -0
  336. package/dist/imageUtils-5fc5f2e1.js +69 -0
  337. package/dist/imageUtils-d0a1bdd3.js +89 -0
  338. package/dist/imageryUtils-31c938b0.js +43 -0
  339. package/dist/index-a8d87ec0.js +45604 -0
  340. package/dist/index.d.ts +2 -1
  341. package/dist/index.js +26 -25
  342. package/dist/input-message-067fbc56.js +92 -0
  343. package/dist/input2-d25d1697.js +575 -0
  344. package/dist/interactive-79c8f5d7.js +80 -0
  345. package/dist/jsonContext-b5489a22.js +15 -0
  346. package/dist/jsonUtils-34961e68.js +86 -0
  347. package/dist/jsonUtils-65dc6fdf.js +476 -0
  348. package/dist/jsonUtils-980c608d.js +59 -0
  349. package/dist/kmlUtils-b1b9817a.js +112 -0
  350. package/dist/knowledgeGraphService-53d3ffbb.js +739 -0
  351. package/dist/knowledgegraph-bd84abd0.js +149 -0
  352. package/dist/labelUtils-333abe25.js +61 -0
  353. package/dist/labelingInfo-6d452fa4.js +46 -0
  354. package/dist/layersCreator-2cc797a3.js +151 -0
  355. package/dist/layersLoader-028db48b.js +197 -0
  356. package/dist/lazyLayerLoader-2dd5721b.js +10 -0
  357. package/dist/lclayout-44591238.js +773 -0
  358. package/dist/lengthUtils-7339106c.js +5 -0
  359. package/dist/lerc-wasm-49e10ccb.js +325 -0
  360. package/dist/libtess-asm-ac16428b.js +3673 -0
  361. package/dist/libtess-f4e34dcf.js +269 -0
  362. package/dist/lineSegment-0e4aefd8.js +76 -0
  363. package/dist/loadGLTFMesh-4afc2514.js +181 -0
  364. package/dist/loadable-a2fd544f.js +24 -0
  365. package/dist/loader-fbae5e8f.js +79 -0
  366. package/dist/lyr3DWorker-1fc30357.js +2108 -0
  367. package/dist/mapViewDeps-59a6c6c7.js +3052 -0
  368. package/dist/mediaLayerUtils-642a4077.js +35 -0
  369. package/dist/meshFeatureSet-91312223.js +126 -0
  370. package/dist/meshVertexSpaceUtils-48eddc77.js +58 -0
  371. package/dist/multidimensionalUtils-705f0902.js +290 -0
  372. package/dist/normalizeUtilsSync-71d587bd.js +181 -0
  373. package/dist/number-063f85f4.js +128 -0
  374. package/dist/objectResourceUtils-0e881546.js +1455 -0
  375. package/dist/observers-745d564e.js +30 -0
  376. package/dist/ogcFeatureUtils-80329692.js +206 -0
  377. package/dist/openCloseComponent-1c398ac3.js +37 -0
  378. package/dist/orientedBoundingBox-a29567df.js +447 -0
  379. package/dist/parser-65ddb097.js +488 -0
  380. package/dist/pbf-b0a9807c.js +215 -0
  381. package/dist/pbfQueryUtils-3cd28b30.js +422 -0
  382. package/dist/pe-wasm-fe3a1187.js +887 -0
  383. package/dist/persistable-36a3796e.js +89 -0
  384. package/dist/perspectiveUtils-b75aeded.js +42 -0
  385. package/dist/pieChart-bc276742.js +555 -0
  386. package/dist/plane-79192909.js +160 -0
  387. package/dist/popupUtils-022834aa.js +22 -0
  388. package/dist/popupUtils-4b2bd688.js +50 -0
  389. package/dist/portalItemUtils-052627b4.js +57 -0
  390. package/dist/portalLayers-3be98e63.js +312 -0
  391. package/dist/portalUtils-b665fd61.js +7 -0
  392. package/dist/programUtils-00a4e18d.js +59 -0
  393. package/dist/project-032d84cf.js +21 -0
  394. package/dist/projectPointToVector-3a48d9a2.js +14 -0
  395. package/dist/projectVectorToVector-4c6a3902.js +13 -0
  396. package/dist/quantityUtils-a39f9287.js +33 -0
  397. package/dist/quantizationUtils-4616cce9.js +68 -0
  398. package/dist/quat-5e906b75.js +104 -0
  399. package/dist/query-2ab99d18.js +89 -0
  400. package/dist/queryAttachments-15a42419.js +39 -0
  401. package/dist/queryEngineUtils-ff4789cd.js +21 -0
  402. package/dist/queryTopFeatures-5eb3ccc9.js +50 -0
  403. package/dist/queryZScale-62422052.js +12 -0
  404. package/dist/rasterProjectionHelper-b605f2ee.js +577 -0
  405. package/dist/rasterUtils-f2036a08.js +122 -0
  406. package/dist/rasterizingUtils-0c9cf9ce.js +46 -0
  407. package/dist/request-00229175.js +46 -0
  408. package/dist/requestImageUtils-90da2619.js +8 -0
  409. package/dist/resourceExtension-eadbfa3f.js +17 -0
  410. package/dist/resourceUtils-28b3c1e8.js +42 -0
  411. package/dist/resourceUtils-4e9ccf63.js +69 -0
  412. package/dist/resourceUtils-666fad8a.js +62 -0
  413. package/dist/saveAPIKeyUtils-1a4f92e5.js +8 -0
  414. package/dist/saveUtils-5b62c0b1.js +24 -0
  415. package/dist/scaleUtils-6153583e.js +23 -0
  416. package/dist/scrim-6e0e08c4.js +114 -0
  417. package/dist/serviceCapabilitiesUtils-96f8d393.js +64 -0
  418. package/dist/sourceUtils-5aee3b16.js +71 -0
  419. package/dist/sphere-512478f6.js +199 -0
  420. package/dist/statsWorker-183f2d29.js +37 -0
  421. package/dist/streamLayerUtils-a1e8e58a.js +31 -0
  422. package/dist/style.css +1 -1
  423. package/dist/styleUtils-49a8dabd.js +14 -0
  424. package/dist/styleUtils-52e000d6.js +75 -0
  425. package/dist/sublayerUtils-65a83d58.js +37 -0
  426. package/dist/substitute-0272cab6.js +52 -0
  427. package/dist/symbolColorUtils-261cba60.js +8 -0
  428. package/dist/symbolLayerUtils-e0203fd7.js +31 -0
  429. package/dist/symbologySnappingCandidates-eeda4ddf.js +221 -0
  430. package/dist/t9n-147b4f00.js +349 -0
  431. package/dist/testSVGPremultipliedAlpha-e3c11fd6.js +94 -0
  432. package/dist/timeSupport-3ddd7e4b.js +410 -0
  433. package/dist/triangle-28fd7dff.js +98 -0
  434. package/dist/unitConversionUtils-df3ffd70.js +17 -0
  435. package/dist/unitFormatUtils-d857519e.js +40 -0
  436. package/dist/uploadAssetErrors-18a6fad7.js +70 -0
  437. package/dist/uploadAssets-f2c89175.js +330 -0
  438. package/dist/utils-214b98cc.js +91 -0
  439. package/dist/utils-283fbef1.js +34 -0
  440. package/dist/utils-333b2280.js +2746 -0
  441. package/dist/utils-7202e24d.js +232 -0
  442. package/dist/utils-a7d5b733.js +419 -0
  443. package/dist/utils-cffde1b1.js +433 -0
  444. package/dist/utils-e4309923.js +79 -0
  445. package/dist/utils-e582955c.js +73 -0
  446. package/dist/utils3-d4b9a6af.js +75 -0
  447. package/dist/vec3-d9885b29.js +81 -0
  448. package/dist/vec42-d5675dd5.js +125 -0
  449. package/dist/versionUtils-2a4f90d3.js +161 -0
  450. package/dist/visualVariableUtils-d45d2e59.js +267 -0
  451. package/dist/webStyleSymbolUtils-5d8e6604.js +48 -0
  452. package/dist/webglDeps-c5e1e661.js +23 -0
  453. package/dist/wfsUtils-a004cee1.js +343 -0
  454. package/dist/workerHelper-a0956a07.js +11 -0
  455. package/dist/xyChart-e8a9ed1d.js +3335 -0
  456. package/package.json +1 -1
  457. package/dist/AGraphicContainer-0a4e0426.js +0 -109
  458. package/dist/APIKeyMixin-83e85532.js +0 -19
  459. package/dist/Analysis-c4011253.js +0 -31
  460. package/dist/ArcGISCachedService-1c6af1c1.js +0 -47
  461. package/dist/ArcGISService-1d880889.js +0 -25
  462. package/dist/AreaMeasurement2D-86006a71.js +0 -405
  463. package/dist/AreaMeasurement3D-1825243c.js +0 -488
  464. package/dist/AttachmentInfo-fa04c641.js +0 -34
  465. package/dist/AttachmentQuery-1450c2f7.js +0 -18
  466. package/dist/AttributeStore-02f947ea.js +0 -1707
  467. package/dist/BaseDynamicLayerView2D-eb11c757.js +0 -63
  468. package/dist/BingMapsLayer-7ad7d511.js +0 -112
  469. package/dist/Bitmap-14a020d8.js +0 -128
  470. package/dist/BitmapContainer-cc71fd24.js +0 -23
  471. package/dist/BlendLayer-e2f97659.js +0 -13
  472. package/dist/BoundsStore-8612892f.js +0 -63
  473. package/dist/BufferObject-bd932c2c.js +0 -100
  474. package/dist/BufferView-97ed14c7.js +0 -683
  475. package/dist/BuildingSceneLayer-3f5380c8.js +0 -535
  476. package/dist/Button-15031955.js +0 -36
  477. package/dist/CSVLayer-a76db6f4.js +0 -208
  478. package/dist/CSVSourceWorker-afe160ed.js +0 -367
  479. package/dist/CatalogDynamicGroupLayerView2D-be946494.js +0 -66
  480. package/dist/CatalogFootprintLayerView2D-14763204.js +0 -76
  481. package/dist/CatalogLayer-7d6228dd.js +0 -262
  482. package/dist/CatalogLayerView2D-13e32a42.js +0 -52
  483. package/dist/ClassBreaksDefinition-7040a7fc.js +0 -18
  484. package/dist/ColorMaterial.glsl-e56765f1.js +0 -64
  485. package/dist/ColorSet-4ff0a7b7.js +0 -45
  486. package/dist/ColorStop-1e154045.js +0 -29
  487. package/dist/Container-6e3b610b.js +0 -521
  488. package/dist/CustomParametersMixin-c01280c0.js +0 -12
  489. package/dist/DefaultMaterial.glsl-e7e23b90.js +0 -42
  490. package/dist/DefaultMaterial_COLOR_GAMMA-7fd21704.js +0 -653
  491. package/dist/DefaultTheme-3c5b433f.js +0 -130
  492. package/dist/DeleteForwardEditsParameters-7073c5e5.js +0 -18
  493. package/dist/DimensionLayer-f921dd3d.js +0 -129
  494. package/dist/DirectLineMeasurement3D-61d14af2.js +0 -449
  495. package/dist/DistanceMeasurement2D-b023b35c.js +0 -303
  496. package/dist/DoubleArray-1186b8b8.js +0 -25
  497. package/dist/Dropdown/Filter/Filter.types.d.ts +0 -17
  498. package/dist/Dropdown/Filter/test.mocks.d.ts +0 -6
  499. package/dist/Dropdown/List/Dropdown.List.d.ts +0 -73
  500. package/dist/Dropdown/List/List.types.d.ts +0 -11
  501. package/dist/Dropdown/List/test.mocks.d.ts +0 -7
  502. package/dist/EdgeProcessingWorker-cb6277ad.js +0 -63
  503. package/dist/EditBusLayer-9d740f8f.js +0 -107
  504. package/dist/ElevationInfo-581ff99d.js +0 -56
  505. package/dist/ElevationLayer-42b57d9b.js +0 -129
  506. package/dist/ElevationQuery-f6d0cf9f.js +0 -598
  507. package/dist/ElevationSamplerWorker-50d805bb.js +0 -62
  508. package/dist/ExportImageParameters-5b047f92.js +0 -66
  509. package/dist/ExportStrategy-b6c54d77.js +0 -93
  510. package/dist/ExportWMSImageParameters-ff5a3ac8.js +0 -33
  511. package/dist/External-695a389a.js +0 -110
  512. package/dist/FeatureCollectionSnappingSource-fdaed9e0.js +0 -130
  513. package/dist/FeatureCommandQueue-c2bd1a39.js +0 -1244
  514. package/dist/FeatureEffect-9ea1b3da.js +0 -39
  515. package/dist/FeatureEffectLayer-0fa169c4.js +0 -13
  516. package/dist/FeatureFilter-638c4cae.js +0 -27
  517. package/dist/FeatureLayer-2a419d3e.js +0 -693
  518. package/dist/FeatureLayerBase-7331e738.js +0 -148
  519. package/dist/FeatureLayerSource-733186fb.js +0 -444
  520. package/dist/FeatureLayerView2D-bc4994b6.js +0 -1967
  521. package/dist/FeaturePipelineWorker-5f68488c.js +0 -3633
  522. package/dist/FeatureReductionLayer-0c152478.js +0 -225
  523. package/dist/FeatureReductionSelection-f952512d.js +0 -22
  524. package/dist/FeatureServiceSnappingSource-4c02d5a3.js +0 -481
  525. package/dist/FeatureServiceSnappingSourceWorker-c2a1dc50.js +0 -747
  526. package/dist/FeatureSet-2c6b8e00.js +0 -188
  527. package/dist/FeatureStore-a26846c0.js +0 -131
  528. package/dist/FeatureTemplate-1b6b7e2d.js +0 -12
  529. package/dist/FeatureType-9e1f1a7d.js +0 -25
  530. package/dist/FieldsIndex-91711836.js +0 -109
  531. package/dist/FormTemplate-ae0cfb6e.js +0 -350
  532. package/dist/GeoJSONLayer-b2070c34.js +0 -236
  533. package/dist/GeoJSONSourceWorker-aecb5f9b.js +0 -247
  534. package/dist/GeoRSSLayer-3743b41f.js +0 -73
  535. package/dist/GeoRSSLayerView2D-098c24bc.js +0 -140
  536. package/dist/GeometryUtils-036c7f22.js +0 -403
  537. package/dist/GraphicContainer-ece3945e.js +0 -26
  538. package/dist/GraphicManipulator-bc92899f.js +0 -1499
  539. package/dist/GraphicsLayer-764f0324.js +0 -38
  540. package/dist/GraphicsLayerView2D-36908d0c.js +0 -114
  541. package/dist/GraphicsSnappingSource-2bb681c0.js +0 -273
  542. package/dist/GraphicsView2D-e9cf5cd6.js +0 -620
  543. package/dist/GroupLayer-5ea5b71b.js +0 -147
  544. package/dist/GroupLayerView2D-22ec9eaa.js +0 -98
  545. package/dist/HUDMaterial.glsl-80ab7d22.js +0 -65
  546. package/dist/HighlightCounter-36842e52.js +0 -41
  547. package/dist/HighlightGraphicContainer-10cb9671.js +0 -18
  548. package/dist/I3SBinaryReader-9dbdc661.js +0 -310
  549. package/dist/I3SLayerDefinitions-b56e2c87.js +0 -55
  550. package/dist/I3SUtil-5461dc89.js +0 -59
  551. package/dist/IdentityManager-bb063156.js +0 -899
  552. package/dist/ImageHistogramParameters-1f8e5179.js +0 -905
  553. package/dist/ImageryLayer-a807d3b3.js +0 -1799
  554. package/dist/ImageryLayerView2D-358a3267.js +0 -352
  555. package/dist/ImageryTileLayer-0f67f262.js +0 -2157
  556. package/dist/ImageryTileLayerView2D-2bc2bb67.js +0 -1110
  557. package/dist/Indices-0c5304f2.js +0 -67
  558. package/dist/IntegratedMesh3DTilesLayer-be69dca8.js +0 -112
  559. package/dist/IntegratedMeshLayer-3c070523.js +0 -141
  560. package/dist/InteractiveAnalysisViewModel-3005a4a6.js +0 -7397
  561. package/dist/InterleavedLayout-d37b99a2.js +0 -163
  562. package/dist/KMLLayer-2011c3c6.js +0 -162
  563. package/dist/KMLLayerView2D-5d17145f.js +0 -253
  564. package/dist/KnowledgeGraphLayerView2D-7172b91b.js +0 -43
  565. package/dist/LRUCache-39211cf9.js +0 -32
  566. package/dist/LabelClass-d1080628.js +0 -135
  567. package/dist/LabelMetric-ab56c6b3.js +0 -400
  568. package/dist/LaserlinePath.glsl-df8f92cc.js +0 -64
  569. package/dist/Laserlines.glsl-f7d93e3f.js +0 -65
  570. package/dist/LayerFloorInfo-3edeb9a2.js +0 -15
  571. package/dist/LayerView-1c58c8c6.js +0 -206
  572. package/dist/LercWorker-c7a2aca1.js +0 -157
  573. package/dist/LineOfSightLayer-3028e21f.js +0 -147
  574. package/dist/LinkChartLayer-988ae660.js +0 -1027
  575. package/dist/Lyr3DWorker-4c8c758f.js +0 -82
  576. package/dist/MagnifierPrograms-123961a3.js +0 -806
  577. package/dist/MapImageLayer-9241ad63.js +0 -169
  578. package/dist/MapImageLayerView2D-726e5c66.js +0 -146
  579. package/dist/MapNotesLayer-2d2db99b.js +0 -283
  580. package/dist/MapNotesLayerView2D-41f5790c.js +0 -161
  581. package/dist/MapServiceLayerViewHelper-8f5228ec.js +0 -288
  582. package/dist/MeasurementWidgetContent-504fd868.js +0 -2642
  583. package/dist/MediaLayer-e71ce661.js +0 -523
  584. package/dist/MediaLayerView2D-33c67404.js +0 -332
  585. package/dist/MemCache-413327b3.js +0 -227
  586. package/dist/MemorySourceWorker-b0e70dd0.js +0 -222
  587. package/dist/Mesh-98c4e050.js +0 -980
  588. package/dist/MeshLocalVertexSpace-7a7e4d4e.js +0 -19
  589. package/dist/MultiOriginJSONSupport-2fca3cc5.js +0 -158
  590. package/dist/OGCFeatureLayer-451fbd45.js +0 -211
  591. package/dist/OGCFeatureLayerView2D-d23b08d2.js +0 -82
  592. package/dist/ObjectStack-742b2ff3.js +0 -21
  593. package/dist/Octree-a3c8e90e.js +0 -495
  594. package/dist/OpenStreetMapLayer-9bb91f97.js +0 -30
  595. package/dist/OperationalLayer-fbfada66.js +0 -44
  596. package/dist/OrderByInfo-335eb561.js +0 -16
  597. package/dist/OrderedLayer-29b4ac64.js +0 -26
  598. package/dist/OrientedImageryLayer-aa2498e2.js +0 -216
  599. package/dist/OverlayCompositing.glsl-4b1e83c2.js +0 -65
  600. package/dist/OverrideHelper-74cc3959.js +0 -242
  601. package/dist/PBFDecoderWorker-fd40e0f9.js +0 -213
  602. package/dist/PointCloudLayer-64cdbbb2.js +0 -197
  603. package/dist/PointCloudUniqueValueRenderer-db9b3a98.js +0 -115
  604. package/dist/PointCloudWorker-a5eb5224.js +0 -212
  605. package/dist/PooledRBush-be6fe17a.js +0 -272
  606. package/dist/Popup-db250fe6.js +0 -3990
  607. package/dist/PortalLayer-a6ce110e.js +0 -126
  608. package/dist/Program-ecabc523.js +0 -694
  609. package/dist/ProgramTemplate-e5ce3b0f.js +0 -35
  610. package/dist/QueryEngine-87b2546b.js +0 -896
  611. package/dist/QueryTask-36400ec7.js +0 -119
  612. package/dist/RasterSymbolizer-cfd47847.js +0 -3024
  613. package/dist/RasterVFDisplayObject-d4c967ea.js +0 -581
  614. package/dist/RasterWorker-068ae23a.js +0 -78
  615. package/dist/RawBlockCache-9e8d4c35.js +0 -185
  616. package/dist/RealisticTree.glsl-adab8e44.js +0 -42
  617. package/dist/RefreshableLayer-eec34ca2.js +0 -80
  618. package/dist/RefreshableLayerView-ee06f08c.js +0 -16
  619. package/dist/Relationship-a7eb5489.js +0 -64
  620. package/dist/RelationshipQuery-4551bb04.js +0 -22
  621. package/dist/RenderingContext-9e8fac0d.js +0 -889
  622. package/dist/RibbonLine.glsl-5990bf5f.js +0 -65
  623. package/dist/RouteLayer-858bc482.js +0 -786
  624. package/dist/RouteLayerView2D-a70d519f.js +0 -195
  625. package/dist/SDFHelper-efca0a53.js +0 -140
  626. package/dist/SSAO.glsl-7670c1fc.js +0 -43
  627. package/dist/SSAOBlur.glsl-3523d6af.js +0 -42
  628. package/dist/ScaleRangeLayer-7f440b85.js +0 -21
  629. package/dist/SceneLayer-999bd23f.js +0 -542
  630. package/dist/SceneLayerSnappingSource-9420aaed.js +0 -218
  631. package/dist/SceneLayerSnappingSourceWorker-be67e552.js +0 -112
  632. package/dist/SceneLayerWorker-201939c2.js +0 -164
  633. package/dist/SceneService-318eff2f.js +0 -215
  634. package/dist/Scheduler-279ea0c3.js +0 -373
  635. package/dist/ShadedColorMaterial.glsl-bd2979d8.js +0 -64
  636. package/dist/SnappingOperation-5100da71.js +0 -48
  637. package/dist/SourceLayerData-50c2b980.js +0 -116
  638. package/dist/SpatialFilter-b6c6b2fc.js +0 -1701
  639. package/dist/Stop-196981da.js +0 -281
  640. package/dist/StreamLayer-37b818b8.js +0 -188
  641. package/dist/StreamLayerView2D-7f0f45bc.js +0 -164
  642. package/dist/StyleRepository-4e8fa398.js +0 -2212
  643. package/dist/SublayersOwner-90d10612.js +0 -545
  644. package/dist/SubtypeGroupLayer-959cabf8.js +0 -514
  645. package/dist/SubtypeGroupLayerView2D-95e63b42.js +0 -84
  646. package/dist/TechniqueInstance-bd190c26.js +0 -233
  647. package/dist/TemporalLayer-aacda167.js +0 -23
  648. package/dist/Texture-3618be49.js +0 -501
  649. package/dist/TextureOnly.glsl-fcca7034.js +0 -65
  650. package/dist/Theme-85608a9a.js +0 -3426
  651. package/dist/Tick-79e96104.js +0 -723
  652. package/dist/TileContainer-f1e7edd8.js +0 -31
  653. package/dist/TileInfoTilemapCache-2f882821.js +0 -38
  654. package/dist/TileLayer-db13a237.js +0 -194
  655. package/dist/TileLayerView2D-15af6be4.js +0 -187
  656. package/dist/TilemapCache-fc4b2c6c.js +0 -189
  657. package/dist/TimeInfo-39a9d4e1.js +0 -42
  658. package/dist/TimeOnly-b759457a.js +0 -706
  659. package/dist/Tooltip-0ba72b27.js +0 -138
  660. package/dist/TopFeaturesQuery-a11ecc39.js +0 -32
  661. package/dist/TurboLine-5e62d290.js +0 -565
  662. package/dist/UniqueValueRenderer-bf2f3234.js +0 -1039
  663. package/dist/UnknownLayer-2cf71578.js +0 -30
  664. package/dist/UnknownTimeZone-aabdcf56.js +0 -15
  665. package/dist/UnsupportedLayer-36650e4a.js +0 -31
  666. package/dist/UpdateTracking2D-b6d16b0c.js +0 -8566
  667. package/dist/Util-8f54c96b.js +0 -57
  668. package/dist/VectorTileLayer-ddcca4ec.js +0 -544
  669. package/dist/VectorTileLayerView2D-8176946a.js +0 -2108
  670. package/dist/Version-9eb299cd.js +0 -33
  671. package/dist/VertexArrayObject-d1a4262b.js +0 -73
  672. package/dist/VertexColor.glsl-fd9f70e0.js +0 -2683
  673. package/dist/VertexSnappingCandidate-70513010.js +0 -13
  674. package/dist/VideoLayerView2D-e08e1d57.js +0 -124
  675. package/dist/VoxelLayer-959702aa.js +0 -631
  676. package/dist/WFSLayer-4a41b206.js +0 -221
  677. package/dist/WFSSourceWorker-53d88982.js +0 -157
  678. package/dist/WGLContainer-e9e8616e.js +0 -5426
  679. package/dist/WMSLayer-8e44f55c.js +0 -536
  680. package/dist/WMSLayerView2D-415a1793.js +0 -117
  681. package/dist/WMTSLayer-804f4bed.js +0 -531
  682. package/dist/WMTSLayerView2D-96186a90.js +0 -142
  683. package/dist/WebTileLayer-7391ea01.js +0 -110
  684. package/dist/WhereClause-1816217e.js +0 -2766
  685. package/dist/WorkerHandle-25f67c67.js +0 -47
  686. package/dist/WorkerTileHandler-a7e508bc.js +0 -1539
  687. package/dist/action-3ce81e45.js +0 -198
  688. package/dist/action-group-f2d26c2b.js +0 -145
  689. package/dist/action-menu-015d91ab.js +0 -1759
  690. package/dist/apng-e5532475.js +0 -392
  691. package/dist/arcade-dbe2ca4a.js +0 -229
  692. package/dist/arcadeAsyncRuntime-78b83b41.js +0 -943
  693. package/dist/arcadeUtils-cb1066a6.js +0 -8741
  694. package/dist/arcgis-knowledge-client-core-7379d99e.js +0 -1218
  695. package/dist/arcgis-knowledge-client-core-simd-ea8b4d20.js +0 -1218
  696. package/dist/arcgisLayers-cd3494fd.js +0 -152
  697. package/dist/associatedFeatureServiceUtils-da8d377d.js +0 -92
  698. package/dist/axisAngleDegrees-19922758.js +0 -49
  699. package/dist/basis_transcoder-bf0490cc.js +0 -1248
  700. package/dist/calcite-action-0db4f61c.js +0 -22
  701. package/dist/calcite-action-bar-1b4c89cb.js +0 -303
  702. package/dist/calcite-action-group-3c8a934c.js +0 -28
  703. package/dist/calcite-button-1079a10c.js +0 -228
  704. package/dist/calcite-flow-c1e71a12.js +0 -128
  705. package/dist/calcite-flow-item-1097b48f.js +0 -499
  706. package/dist/calcite-icon-c88b4a67.js +0 -16
  707. package/dist/calcite-input-8c33ee84.js +0 -24
  708. package/dist/calcite-label-7fbfbe36.js +0 -79
  709. package/dist/calcite-list-93af4ae2.js +0 -2135
  710. package/dist/calcite-list-item-f0a6cda3.js +0 -576
  711. package/dist/calcite-list-item-group-107a313e.js +0 -71
  712. package/dist/calcite-loader-5194bf83.js +0 -14
  713. package/dist/calcite-modal-486280cc.js +0 -333
  714. package/dist/calcite-notice-a81274a8.js +0 -181
  715. package/dist/calcite-option-0020a955.js +0 -94
  716. package/dist/calcite-scrim-27d65e7f.js +0 -18
  717. package/dist/calcite-select-05f25c2a.js +0 -231
  718. package/dist/capabilities-238bde7d.js +0 -50
  719. package/dist/chartCommon-7eda170a.js +0 -256
  720. package/dist/chartUtilsAm5-fd8aeac2.js +0 -2954
  721. package/dist/clientSideDefaults-b91506af.js +0 -39
  722. package/dist/colorRamps-6027ea73.js +0 -38
  723. package/dist/colorUtils-3dd4b884.js +0 -164
  724. package/dist/commonProperties-bf4d305f.js +0 -60
  725. package/dist/computeTranslationToOriginAndRotation-ca5a9439.js +0 -60
  726. package/dist/conditionalSlot-80a4c6ff.js +0 -27
  727. package/dist/createConnection-70dd787a.js +0 -299
  728. package/dist/dataUtils-b632d3a2.js +0 -1421
  729. package/dist/deduplicate-e13aa9e2.js +0 -89
  730. package/dist/defaults-40a1a995.js +0 -31
  731. package/dist/deleteForwardEdits-b0182a08.js +0 -13
  732. package/dist/diffUtils-5f43e52a.js +0 -90
  733. package/dist/drapedUtils-416e5304.js +0 -75
  734. package/dist/earcut-235aa57d.js +0 -292
  735. package/dist/edgeProcessing-43d45a32.js +0 -252
  736. package/dist/editingSupport-7706f838.js +0 -203
  737. package/dist/editsZScale-49d8a8cd.js +0 -37
  738. package/dist/elevationInfoUtils-3fbfcf1f.js +0 -126
  739. package/dist/executeForIds-419ba6a3.js +0 -14
  740. package/dist/executeForTopCount-8a8ba5c7.js +0 -17
  741. package/dist/executeForTopExtents-9f24d5d0.js +0 -17
  742. package/dist/executeForTopIds-0bfdb55f.js +0 -17
  743. package/dist/executeQueryJSON-2a2e9e1b.js +0 -15
  744. package/dist/executeQueryPBF-f10de9ec.js +0 -152
  745. package/dist/executeRelationshipQuery-0680cb30.js +0 -53
  746. package/dist/executeTopFeaturesQuery-c553d696.js +0 -18
  747. package/dist/featureConversionUtils-83783887.js +0 -479
  748. package/dist/featureLayerUtils-545d260a.js +0 -250
  749. package/dist/featureLayerUtils-b18e6016.js +0 -142
  750. package/dist/featureSetUtils-0c7ba073.js +0 -2530
  751. package/dist/featuresetbase-aadfabb3.js +0 -707
  752. package/dist/featuresetgeom-a405018e.js +0 -99
  753. package/dist/featuresetstats-f6602402.js +0 -81
  754. package/dist/featuresetstring-834ea865.js +0 -95
  755. package/dist/fetchService-dac740ef.js +0 -33
  756. package/dist/fieldProperties-b024e721.js +0 -33
  757. package/dist/floatRGBA-46ee3e38.js +0 -20
  758. package/dist/form-0b2f0ac9.js +0 -138
  759. package/dist/geohashUtils-418d1ca6.js +0 -85
  760. package/dist/geojson-96d3353d.js +0 -208
  761. package/dist/geomasync-ff5b3734.js +0 -567
  762. package/dist/geometryEngine-8fcb3d59.js +0 -192
  763. package/dist/geometryEngineAsync-212f4b0f.js +0 -217
  764. package/dist/geometryEngineBase-4c2ff8b9.js +0 -18463
  765. package/dist/geometryEngineJSON-131b461e.js +0 -171
  766. package/dist/geometryEngineJSON-b43cf67f.js +0 -46
  767. package/dist/geometryEngineWorker-707ca480.js +0 -11
  768. package/dist/geometryServiceUtils-af23d0b5.js +0 -28
  769. package/dist/georeference-02bc532d.js +0 -291
  770. package/dist/gif-b072aa1c.js +0 -323
  771. package/dist/gltfexport-3362ea71.js +0 -705
  772. package/dist/groupLayerUtils-81545911.js +0 -39
  773. package/dist/heatmapUtils-b25824e4.js +0 -45
  774. package/dist/highlightReasons-5b8b2665.js +0 -19
  775. package/dist/hydrated-b0c62926.js +0 -40
  776. package/dist/i3s-32edc725.js +0 -809
  777. package/dist/icon-453c7f62.js +0 -127
  778. package/dist/imageBitmapUtils-51497e26.js +0 -23
  779. package/dist/imageUtils-1d1da6e6.js +0 -89
  780. package/dist/imageUtils-8c40eba6.js +0 -69
  781. package/dist/imageryUtils-0c00fbf3.js +0 -43
  782. package/dist/index-3b4c2147.js +0 -45568
  783. package/dist/input-message-32600f49.js +0 -92
  784. package/dist/input2-1c0831ed.js +0 -575
  785. package/dist/interactive-5824e097.js +0 -80
  786. package/dist/jsonContext-ec21ce85.js +0 -15
  787. package/dist/jsonUtils-012feb40.js +0 -476
  788. package/dist/jsonUtils-3979baa3.js +0 -59
  789. package/dist/jsonUtils-3eb7c689.js +0 -86
  790. package/dist/kmlUtils-4c198ea5.js +0 -112
  791. package/dist/knowledgeGraphService-a159d815.js +0 -739
  792. package/dist/knowledgegraph-eb0d44d4.js +0 -149
  793. package/dist/labelUtils-01b646c7.js +0 -61
  794. package/dist/labelingInfo-148dcd26.js +0 -46
  795. package/dist/layersCreator-4e94f616.js +0 -151
  796. package/dist/layersLoader-f4e3ab33.js +0 -197
  797. package/dist/lazyLayerLoader-eb51910e.js +0 -10
  798. package/dist/lclayout-4d303c41.js +0 -773
  799. package/dist/lengthUtils-6abaf27a.js +0 -5
  800. package/dist/lerc-wasm-0ae912df.js +0 -325
  801. package/dist/libtess-asm-91c97dcd.js +0 -3673
  802. package/dist/libtess-cba14731.js +0 -269
  803. package/dist/lineSegment-8f04aab4.js +0 -76
  804. package/dist/loadGLTFMesh-71542570.js +0 -181
  805. package/dist/loadable-e7c40a8a.js +0 -24
  806. package/dist/loader-6272e4b3.js +0 -79
  807. package/dist/lyr3DWorker-9ee4ee8b.js +0 -2108
  808. package/dist/mapViewDeps-b17a2e04.js +0 -3052
  809. package/dist/mediaLayerUtils-f0ccfd82.js +0 -35
  810. package/dist/meshFeatureSet-304dfa08.js +0 -126
  811. package/dist/meshVertexSpaceUtils-e7f774fa.js +0 -58
  812. package/dist/multidimensionalUtils-642f26da.js +0 -290
  813. package/dist/normalizeUtilsSync-b5f617e6.js +0 -181
  814. package/dist/number-3af512e3.js +0 -128
  815. package/dist/objectResourceUtils-d45057aa.js +0 -1455
  816. package/dist/observers-700e505d.js +0 -30
  817. package/dist/ogcFeatureUtils-440ed0bf.js +0 -206
  818. package/dist/openCloseComponent-1501c620.js +0 -37
  819. package/dist/orientedBoundingBox-80988e7f.js +0 -447
  820. package/dist/parser-6e351b85.js +0 -488
  821. package/dist/pbf-a85c52b3.js +0 -215
  822. package/dist/pbfQueryUtils-5f25f81f.js +0 -422
  823. package/dist/pe-wasm-e588110b.js +0 -887
  824. package/dist/persistable-ad01d0ca.js +0 -89
  825. package/dist/perspectiveUtils-ab58ddbb.js +0 -42
  826. package/dist/pieChart-d3793e8b.js +0 -555
  827. package/dist/plane-e103e8ed.js +0 -160
  828. package/dist/popupUtils-5f7c3e79.js +0 -50
  829. package/dist/popupUtils-b95ab60a.js +0 -22
  830. package/dist/portalItemUtils-3d59513a.js +0 -57
  831. package/dist/portalLayers-16b2f807.js +0 -312
  832. package/dist/portalUtils-3789afb0.js +0 -7
  833. package/dist/programUtils-c8d96b39.js +0 -59
  834. package/dist/project-7eaa59a4.js +0 -21
  835. package/dist/projectPointToVector-19151d97.js +0 -14
  836. package/dist/projectVectorToVector-d552535c.js +0 -13
  837. package/dist/quantityUtils-258bfdb4.js +0 -33
  838. package/dist/quantizationUtils-752e4d24.js +0 -68
  839. package/dist/quat-6dc51256.js +0 -104
  840. package/dist/query-da893693.js +0 -89
  841. package/dist/queryAttachments-df86b71d.js +0 -39
  842. package/dist/queryEngineUtils-ffc50ce5.js +0 -21
  843. package/dist/queryTopFeatures-5a58a12d.js +0 -50
  844. package/dist/queryZScale-39ffaf30.js +0 -12
  845. package/dist/rasterProjectionHelper-d13bc46d.js +0 -577
  846. package/dist/rasterUtils-22b15453.js +0 -122
  847. package/dist/rasterizingUtils-3388ddbf.js +0 -46
  848. package/dist/request-82a2415a.js +0 -46
  849. package/dist/requestImageUtils-2fca27f8.js +0 -8
  850. package/dist/resourceExtension-672d03cc.js +0 -17
  851. package/dist/resourceUtils-95b9964a.js +0 -42
  852. package/dist/resourceUtils-b1e50d5e.js +0 -69
  853. package/dist/resourceUtils-e8831103.js +0 -62
  854. package/dist/saveAPIKeyUtils-ee9b0447.js +0 -8
  855. package/dist/saveUtils-1323ad64.js +0 -24
  856. package/dist/scaleUtils-1a70f716.js +0 -23
  857. package/dist/scrim-c0a641cd.js +0 -114
  858. package/dist/serviceCapabilitiesUtils-33d4e1c0.js +0 -64
  859. package/dist/sourceUtils-e8c5db4e.js +0 -71
  860. package/dist/sphere-75cef429.js +0 -199
  861. package/dist/statsWorker-1f1bc582.js +0 -37
  862. package/dist/streamLayerUtils-c85a0eed.js +0 -31
  863. package/dist/styleUtils-05bc85a5.js +0 -75
  864. package/dist/styleUtils-7bd8d0a7.js +0 -14
  865. package/dist/sublayerUtils-feb77591.js +0 -37
  866. package/dist/substitute-c31da60c.js +0 -52
  867. package/dist/symbolColorUtils-3c385668.js +0 -8
  868. package/dist/symbolLayerUtils-2d2753b7.js +0 -31
  869. package/dist/symbologySnappingCandidates-00eeca39.js +0 -221
  870. package/dist/t9n-55800455.js +0 -349
  871. package/dist/testSVGPremultipliedAlpha-ec1f73c4.js +0 -94
  872. package/dist/timeSupport-a7623294.js +0 -410
  873. package/dist/triangle-c799f11b.js +0 -98
  874. package/dist/unitConversionUtils-05050e6d.js +0 -17
  875. package/dist/unitFormatUtils-2a84c371.js +0 -40
  876. package/dist/uploadAssetErrors-601b044e.js +0 -70
  877. package/dist/uploadAssets-5a835c8a.js +0 -330
  878. package/dist/utils-2dc379da.js +0 -79
  879. package/dist/utils-34b1ea70.js +0 -2746
  880. package/dist/utils-45c14202.js +0 -232
  881. package/dist/utils-484969fb.js +0 -91
  882. package/dist/utils-5aaff624.js +0 -433
  883. package/dist/utils-a94dc35d.js +0 -419
  884. package/dist/utils-e68cfebf.js +0 -34
  885. package/dist/utils-fc14cc83.js +0 -73
  886. package/dist/utils3-5745e839.js +0 -75
  887. package/dist/vec3-12b9e1d8.js +0 -81
  888. package/dist/vec42-a1569d60.js +0 -125
  889. package/dist/versionUtils-c4f3617a.js +0 -161
  890. package/dist/visualVariableUtils-bcb95edc.js +0 -267
  891. package/dist/webStyleSymbolUtils-9db5b81c.js +0 -48
  892. package/dist/webglDeps-05e0410a.js +0 -23
  893. package/dist/wfsUtils-7caaa2cc.js +0 -343
  894. package/dist/workerHelper-86e37deb.js +0 -11
  895. package/dist/xyChart-0673158d.js +0 -3335
@@ -0,0 +1,1967 @@
1
+ import { e as h, y as f, c as W, z as Ie, S as Ye, aO as g, c5 as lt, bR as ot, gY as ut, n as xe, aG as ct, W as C, s as q, dF as dt, bJ as pe, dO as et, c$ as pt, dc as ht, jR as ft, b as tt, cs as ae, q as fe, ab as yt, dQ as N, bz as ne, ci as ge, iF as mt, cy as ke, o as Ee, fG as gt, H as qe, ch as Ue, hI as Le, by as ye, da as bt, jS as Be, jT as St, jU as Je, jV as vt, jW as _t, hA as oe, iW as ve, jX as wt, k as Vt, cv as It, V as xt, B as Et, g as De, b3 as Ft, P as Rt, x as Ot, fc as $t, i as _e, jY as zt } from "./index-a8d87ec0.js";
2
+ import { m as je } from "./diffUtils-b887dbbc.js";
3
+ import { b as He, E as we, R as H, a as Tt, N as Qe } from "./Container-5cca9103.js";
4
+ import { d as te } from "./FeatureFilter-73c8c240.js";
5
+ import { d as Fe } from "./FeatureSet-29d82bc9.js";
6
+ import { t as Ct } from "./highlightReasons-6f0f9ef6.js";
7
+ import { m as At, u as Pt } from "./LayerView-2b3b1a70.js";
8
+ import { i as Ge, r as Mt } from "./TechniqueInstance-9c0d4dcf.js";
9
+ import { r as Ke, K as Z, o as Nt, e as kt, Z as qt } from "./UpdateTracking2D-bf4e8a89.js";
10
+ import { b as Ut } from "./WGLContainer-f2c4f5da.js";
11
+ import { o as Lt } from "./tileUtils-3e0c8c1d.js";
12
+ import { m as Bt } from "./lengthUtils-7339106c.js";
13
+ import { i as M } from "./sizeVariableUtils-a1b694d8.js";
14
+ import { c as Jt } from "./OrderByInfo-26301234.js";
15
+ import { c as Dt } from "./labelingInfo-6d452fa4.js";
16
+ import { f as jt } from "./heatmapUtils-582b52e1.js";
17
+ import { i as G, o as ue } from "./enums-fa8f05ab.js";
18
+ import { e as Ht } from "./SDFHelper-70cff23b.js";
19
+ import "./LabelMetric-39280634.js";
20
+ import { P as ce } from "./definitions-a00a3a6c.js";
21
+ import { n as me, h as x, c as z, d as de, e as U, f as ie, i as Re, x as be, t as Oe, m as L, g as Qt, b as Gt } from "./FeatureCommandQueue-d1572e0d.js";
22
+ import { t as Kt } from "./HighlightCounter-1d4774e1.js";
23
+ import { j as Wt } from "./commonProperties-3f86f534.js";
24
+ import { m as Zt } from "./FeatureEffect-20d94762.js";
25
+ import { o as We } from "./floorFilterUtils-936f7587.js";
26
+ import { p as Ve, n as Xt } from "./popupUtils-022834aa.js";
27
+ import { i as Yt } from "./RefreshableLayerView-2b6aca24.js";
28
+ let he = class extends Ie {
29
+ constructor() {
30
+ super(...arguments), this.isAggregate = !0;
31
+ }
32
+ getEffectivePopupTemplate(e = !1) {
33
+ var r;
34
+ if (this.popupTemplate)
35
+ return this.popupTemplate;
36
+ const t = (r = this.sourceLayer) == null ? void 0 : r.featureReduction;
37
+ return t && "popupTemplate" in t && t.popupEnabled ? t.popupTemplate : null;
38
+ }
39
+ getObjectId() {
40
+ return this.attributes.aggregateId;
41
+ }
42
+ };
43
+ h([f({ type: Boolean })], he.prototype, "isAggregate", void 0), he = h([W("esri.AggregateGraphic")], he);
44
+ const $e = he;
45
+ let E = class extends Ye {
46
+ constructor(e) {
47
+ super(e), this._filter = null, this.duration = g("mapview-transitions-duration"), this._excludedEffectView = new He(e), this._includedEffectView = new He(e);
48
+ }
49
+ get excludedEffects() {
50
+ return this._excludedEffectView.effects;
51
+ }
52
+ set featureEffect(e) {
53
+ this._get("featureEffect") !== e && this._transitionTo(e);
54
+ }
55
+ get filter() {
56
+ var e;
57
+ return this._filter || ((e = this.featureEffect) == null ? void 0 : e.filter) || null;
58
+ }
59
+ get hasEffects() {
60
+ return this._excludedEffectView.hasEffects || this._includedEffectView.hasEffects;
61
+ }
62
+ get includedEffects() {
63
+ return this._includedEffectView.effects;
64
+ }
65
+ set scale(e) {
66
+ this._set("scale", e), this._excludedEffectView.scale = e, this._includedEffectView.scale = e;
67
+ }
68
+ get transitioning() {
69
+ return this._excludedEffectView.transitioning || this._includedEffectView.transitioning;
70
+ }
71
+ transitionStep(e, t) {
72
+ this._set("scale", t), this.transitioning ? (this._includedEffectView.transitionStep(e, t), this._excludedEffectView.transitionStep(e, t), this.transitioning || (this._filter = null)) : (this._excludedEffectView.scale = t, this._includedEffectView.scale = t);
73
+ }
74
+ endTransitions() {
75
+ this._includedEffectView.endTransitions(), this._excludedEffectView.endTransitions(), this._filter = null;
76
+ }
77
+ _transitionTo(e) {
78
+ const t = this._get("featureEffect"), r = e, s = r == null ? void 0 : r.includedEffect, a = r == null ? void 0 : r.excludedEffect, n = this._includedEffectView.canTransitionTo(s) && this._excludedEffectView.canTransitionTo(a);
79
+ this._includedEffectView.effect = s, this._excludedEffectView.effect = a, this._set("featureEffect", r), this._filter = (r == null ? void 0 : r.filter) || (t == null ? void 0 : t.filter) || null, n || this.endTransitions();
80
+ }
81
+ };
82
+ h([f()], E.prototype, "_filter", void 0), h([f()], E.prototype, "_excludedEffectView", void 0), h([f()], E.prototype, "_includedEffectView", void 0), h([f()], E.prototype, "duration", void 0), h([f()], E.prototype, "excludedEffects", null), h([f()], E.prototype, "featureEffect", null), h([f()], E.prototype, "filter", null), h([f()], E.prototype, "hasEffects", null), h([f()], E.prototype, "includedEffects", null), h([f({ value: 0 })], E.prototype, "scale", null), h([f()], E.prototype, "transitioning", null), E = h([W("esri.layers.effects.FeatureEffectView")], E);
83
+ const ei = E;
84
+ let ee = class extends Fe {
85
+ constructor() {
86
+ super(...arguments), this.features = [];
87
+ }
88
+ readFeatures(e, t) {
89
+ var a;
90
+ const r = ot.fromJSON(t.spatialReference), s = [];
91
+ for (let n = 0; n < e.length; n++) {
92
+ const o = e[n], u = $e.fromJSON(o), l = (a = o.geometry) == null ? void 0 : a.spatialReference;
93
+ u.geometry == null || l || (u.geometry.spatialReference = r);
94
+ const c = o.aggregateGeometries, d = u.aggregateGeometries;
95
+ if (c && d != null)
96
+ for (const p in d) {
97
+ const y = d[p], m = c[p], b = m == null ? void 0 : m.spatialReference;
98
+ y == null || b || (y.spatialReference = r);
99
+ }
100
+ s.push(u);
101
+ }
102
+ return s;
103
+ }
104
+ };
105
+ h([f({ type: [$e], json: { write: !0 } })], ee.prototype, "features", void 0), h([lt("features")], ee.prototype, "readFeatures", null), ee = h([W("esri.rest.support.AggregateFeatureSet")], ee);
106
+ const ti = ee;
107
+ let ii = class {
108
+ constructor() {
109
+ this._instanceById = /* @__PURE__ */ new Map();
110
+ }
111
+ destroy() {
112
+ this._instanceById.clear();
113
+ }
114
+ get size() {
115
+ return this._instanceById.size;
116
+ }
117
+ updateStart() {
118
+ this._instanceByIdNext = /* @__PURE__ */ new Map();
119
+ }
120
+ updateEnd() {
121
+ if (!this._instanceByIdNext)
122
+ throw new Error("InternalError: Found updateEnd call without corresponding updateStart");
123
+ for (const e of this._instanceById.keys())
124
+ this._instanceByIdNext.has(e) || this._instanceById.delete(e);
125
+ for (const [e, t] of this._instanceByIdNext.entries()) {
126
+ const r = this._instanceById.get(e);
127
+ r ? r.setInput(t.getInput()) : this._instanceById.set(e, t);
128
+ }
129
+ this._instanceByIdNext = null;
130
+ }
131
+ values() {
132
+ return this._instanceById.values();
133
+ }
134
+ ensureInstance(e, t, r) {
135
+ let s = `${e.registryName}`;
136
+ for (const n in t) {
137
+ const o = t[n];
138
+ if (typeof o == "object" && n === "geometry")
139
+ for (const u in o)
140
+ s += `.${n}.${u}.${o[u] != null}`;
141
+ else
142
+ s += `.${n}.${t[n] != null}`;
143
+ }
144
+ if (r != null)
145
+ for (const n in r)
146
+ r[n] && (s += `-${n}`);
147
+ const a = ut(s);
148
+ if (this._instanceByIdNext) {
149
+ const n = new Ge(Ke(a), e, e.meshWriter.name, t, r);
150
+ return this._instanceByIdNext.set(a, n), n;
151
+ }
152
+ if (!this._instanceById.has(a)) {
153
+ const n = new Ge(Ke(a), e, e.meshWriter.name, t, r);
154
+ this._instanceById.set(a, n);
155
+ }
156
+ return this._instanceById.get(a);
157
+ }
158
+ getInstance(e) {
159
+ return this._instanceById.get(e);
160
+ }
161
+ }, ri = class {
162
+ constructor(e, t, r) {
163
+ this.getStage = e, this.version = t, this._tileInfoView = r, this._tiles = /* @__PURE__ */ new Map(), this._pendingUpdates = [], this._locked = !1;
164
+ }
165
+ destroy() {
166
+ }
167
+ tiles() {
168
+ return this._tiles.values();
169
+ }
170
+ size() {
171
+ return this._tiles.size;
172
+ }
173
+ setTiles(e) {
174
+ this._tiles.clear();
175
+ for (const t of e)
176
+ this._tiles.set(t.key.id, t);
177
+ }
178
+ lockUploads() {
179
+ this._locked = !0;
180
+ }
181
+ unlockUploads() {
182
+ this._locked = !1;
183
+ for (const e of this._pendingUpdates)
184
+ this.updateTile(e);
185
+ this._pendingUpdates = [];
186
+ }
187
+ updateTile(e) {
188
+ var a;
189
+ if (this._locked)
190
+ return void this._pendingUpdates.push(e);
191
+ if (g("esri-2d-update-debug")) {
192
+ const n = ((a = e.debugInfo) == null ? void 0 : a.chunkId) ?? "<EnsureEnd>";
193
+ console.debug(`Version[${e.version}] Tile[${e.id}] Chunk[${n}] RenderState.updateTile [${e.type}]`, e);
194
+ }
195
+ const t = this._ensureTile(e.id);
196
+ if (e.type === "update") {
197
+ const [n, ...o] = e.modify;
198
+ t.onMessage({ type: "update", modify: n, remove: e.remove, end: e.end, attributeEpoch: e.attributeEpoch });
199
+ for (const u of o) {
200
+ const l = this._tiles.get(u.tileId);
201
+ l && l.onMessage({ type: "update", modify: u, remove: e.remove, end: !1, isPixelBuffer: !0, attributeEpoch: null });
202
+ }
203
+ return;
204
+ }
205
+ if (e.append == null)
206
+ return void t.onMessage({ type: "append", clear: e.clear, debugInfo: e.debugInfo, end: e.end, attributeEpoch: e.attributeEpoch });
207
+ const [r, ...s] = e.append;
208
+ t.onMessage({ type: "append", clear: e.clear, append: r, debugInfo: e.debugInfo, end: e.end, attributeEpoch: e.attributeEpoch });
209
+ for (const n of s) {
210
+ const o = this._tiles.get(n.tileId);
211
+ o && o.onMessage({ type: "update", modify: n, remove: [], sort: !1, end: !1, isPixelBuffer: !0, attributeEpoch: null });
212
+ }
213
+ }
214
+ removeTile(e) {
215
+ const t = this._tiles.get(e);
216
+ g("esri-2d-update-debug") && console.debug(`Tile[${e}] RenderState.removeTile`), t == null || t.destroy(), this._tiles.delete(e);
217
+ }
218
+ isTileDone(e) {
219
+ const t = this._tiles.get(e.id);
220
+ return !!t && t.isReady;
221
+ }
222
+ _ensureTile(e) {
223
+ if (!this._tiles.has(e)) {
224
+ const t = this._createTile(e);
225
+ this._copyPixelBufferedEntitiesInto(t), this._tiles.set(e, t);
226
+ }
227
+ return this._tiles.get(e);
228
+ }
229
+ _createTile(e) {
230
+ g("esri-2d-update-debug") && console.debug(`Version[${this.version}] Tile[${e}] RenderState.createTile`);
231
+ const t = new xe(e), r = this._tileInfoView.getTileBounds(ct(), t), s = this._tileInfoView.getTileResolution(t.level), a = new Ut(t, s, r[0], r[3], !0);
232
+ if (a.stage = this.getStage(), !a.stage) {
233
+ const n = new C("featurelayerview:webgl", "Cannot create tile with empty stage");
234
+ q.getLogger("esri.views.2d.layers.features.RenderState").error(n);
235
+ }
236
+ return a;
237
+ }
238
+ _copyPixelBufferedEntitiesInto(e) {
239
+ let t = 7;
240
+ for (let r = -1; r <= 1; r++)
241
+ for (let s = -1; s <= 1; s++) {
242
+ if (r === 0 && s === 0)
243
+ continue;
244
+ const a = this._tileInfoView.tileInfo.isWrappable, n = Lt(e.key, s, r, a).id, o = this._tiles.get(n);
245
+ if (o != null) {
246
+ const u = 1 << t;
247
+ e.copyPixelBufferedEntitesFrom(o, u, s, r);
248
+ }
249
+ t--;
250
+ }
251
+ }
252
+ }, si = class {
253
+ constructor(e, t) {
254
+ this.id = e, this.version = t, this._resolver = et(), this._done = !1;
255
+ }
256
+ get done() {
257
+ return this._done;
258
+ }
259
+ get promise() {
260
+ return this._resolver.promise;
261
+ }
262
+ end() {
263
+ this._resolver.resolve(), this._done = !0;
264
+ }
265
+ destroy() {
266
+ this._resolver.reject();
267
+ }
268
+ }, ai = class extends Mt {
269
+ constructor(e) {
270
+ super(e.view.featuresTilingScheme), this.updatingHandles = new dt(), this._hitTestsRequests = [], this._store = new ii(), this._visibleTiles = /* @__PURE__ */ new Set(), this._subscriptions = /* @__PURE__ */ new Map(), this._updateStatisticsRequests = [], this._lockStatisticUpdates = !1, this._layerView = e;
271
+ }
272
+ renderChildren(e) {
273
+ if (this.attributeView.update(), this._renderState) {
274
+ const t = Array.from(this._renderState.tiles()).filter((r) => r.needsUpload);
275
+ t.length && (t[Math.floor(Math.random() * t.length)].upload(), t.length >= 2 && this.requestRender());
276
+ for (const r of this._renderState.tiles())
277
+ r.tryReady(this.attributeView.currentEpoch) && (this._layerView.requestUpdate(), this.hasLabels && this._layerView.view.labelManager.requestUpdate(), this.requestRender());
278
+ }
279
+ for (const t of this.children)
280
+ t.setTransform(e.state);
281
+ switch (this.hasAnimation && e.painter.effects.integrate.draw(e, e.attributeView), super.renderChildren(e), e.drawPhase) {
282
+ case we.MAP:
283
+ return this._renderMapPhase(e);
284
+ case we.HIGHLIGHT:
285
+ return this._renderHighlightPhase(e);
286
+ case we.LABEL:
287
+ return this._renderLabelPhase(e);
288
+ }
289
+ }
290
+ subscriptions() {
291
+ return this._subscriptions.values();
292
+ }
293
+ get _instanceStore() {
294
+ return this._store;
295
+ }
296
+ get instanceStore() {
297
+ return this._store;
298
+ }
299
+ get layerView() {
300
+ return this._layerView;
301
+ }
302
+ get hasLabels() {
303
+ return this._layerView.labelingCollisionInfos.length > 0;
304
+ }
305
+ get hasHighlight() {
306
+ return this._layerView.hasHighlight();
307
+ }
308
+ get _layer() {
309
+ return this._layerView.layer;
310
+ }
311
+ _getExclusivePostprocessingInstance({ drawPhase: e }) {
312
+ if (this._instanceStore == null)
313
+ return null;
314
+ let t = 0, r = null;
315
+ for (const s of this._instanceStore.values())
316
+ s.techniqueRef.drawPhase & e && (t++, s.techniqueRef.postProcessingEnabled && (r = s));
317
+ return t > 1 ? null : r;
318
+ }
319
+ _getOverrideStencilRef({ drawPhase: e }) {
320
+ if (this._instanceStore == null)
321
+ return null;
322
+ let t = null;
323
+ for (const r of this._instanceStore.values()) {
324
+ if (!(r.techniqueRef.drawPhase & e))
325
+ continue;
326
+ const { overrideStencilRef: s } = r.techniqueRef;
327
+ if (t == null)
328
+ t = s;
329
+ else if (t !== s) {
330
+ t = null;
331
+ break;
332
+ }
333
+ }
334
+ return t;
335
+ }
336
+ get children() {
337
+ return this._renderState ? Array.from(this._renderState.tiles()).filter((e) => this._visibleTiles.has(e.key.id)) : [];
338
+ }
339
+ async updateAttributeView(e) {
340
+ this.requestRender(), await this.updatingHandles.addPromise(this.attributeView.requestUpdate(e)), this.hasLabels && this._layerView.view.labelManager.requestUpdate();
341
+ }
342
+ updateSubscriptions(e) {
343
+ for (const { tileId: t, version: r } of e.subscribe)
344
+ if (this._subscriptions.has(t))
345
+ this._subscriptions.get(t).version = r;
346
+ else {
347
+ const s = new si(t, r);
348
+ this._subscriptions.set(t, s), this.updatingHandles.addPromise(s.promise);
349
+ }
350
+ for (const t of e.unsubscribe) {
351
+ const r = this._subscriptions.get(t);
352
+ r == null || r.destroy(), this._subscriptions.delete(t), this.removeTile(t);
353
+ }
354
+ }
355
+ isDone(e) {
356
+ return !!this._renderState && this._renderState.isTileDone(e);
357
+ }
358
+ async updateRenderState(e) {
359
+ g("esri-2d-update-debug") && console.debug(`Version[${e}] FeatureContainer.updateRenderState`), this._renderStateNext = new ri(() => this._stage, e, this._tileInfoView);
360
+ }
361
+ getDisplayStatistics(e, t) {
362
+ const r = this._statisticsByLevel.get(e);
363
+ return r ? r.get(t) : null;
364
+ }
365
+ updateStatistics(e, t) {
366
+ if (this._lockStatisticUpdates)
367
+ return void this._updateStatisticsRequests.push({ level: e, statistics: t });
368
+ let r = this._statisticsByLevel.get(e);
369
+ r || (r = /* @__PURE__ */ new Map(), this._statisticsByLevel.set(e, r));
370
+ for (const s of t)
371
+ r.set(s.fieldName, { minValue: s.minValue, maxValue: s.maxValue });
372
+ }
373
+ editStart() {
374
+ var e;
375
+ (e = this._renderState) == null || e.lockUploads(), this.attributeView.lockTextureUploads(), this._lockStatisticUpdates = !0;
376
+ }
377
+ editEnd() {
378
+ var e;
379
+ (e = this._renderState) == null || e.unlockUploads(), this.attributeView.unlockTextureUploads(), this._lockStatisticUpdates = !1;
380
+ for (const t of this._updateStatisticsRequests)
381
+ this.updateStatistics(t.level, t.statistics);
382
+ this._updateStatisticsRequests = [], this.requestRender();
383
+ }
384
+ swapRenderState() {
385
+ var e;
386
+ if (this._renderStateNext && (g("esri-2d-update-debug") && console.debug(`Version[${this._renderStateNext.version}] FeatureContainer.update.swapRenderState`), (e = this._renderState) == null || e.destroy(), this._renderState = this._renderStateNext, this._renderStateNext = null), this._renderState)
387
+ for (const t of this._renderState.tiles())
388
+ t.upload();
389
+ this.requestRender();
390
+ }
391
+ setVisibleTiles(e) {
392
+ this._visibleTiles = e;
393
+ }
394
+ async onMessage(e, t) {
395
+ if (pe(t), !this._subscriptions.has(e.id))
396
+ return;
397
+ const r = this._subscriptions.get(e.id);
398
+ if (r.version !== e.subscriptionVesrion) {
399
+ if (g("esri-2d-update-debug")) {
400
+ const a = `${e.subscriptionVesrion} != ${r.version}`;
401
+ console.debug(`Version[${a}] Tile[${e.id}] FeatureContainer - Dropping message, outdated version]`, e);
402
+ }
403
+ return;
404
+ }
405
+ const s = this._renderStateNext ?? this._renderState;
406
+ if (!s)
407
+ throw new Error("InternalError: No renderState defined");
408
+ s.version !== e.version && console.error(`InternalError: Version mismatch. [renderState: ${s.version}, message: ${e.version}]`), s.updateTile(e), e.end && this._subscriptions.get(e.id).end(), this.requestRender(), this._layerView.view.labelManager.requestUpdate(), this._layerView.requestUpdate();
409
+ }
410
+ removeTile(e) {
411
+ (this._renderState || this._renderStateNext) && (this._renderState && this._renderState.removeTile(e), this._renderStateNext && this._renderStateNext.removeTile(e));
412
+ }
413
+ hitTest(e) {
414
+ let t = this._hitTestsRequests.find(({ x: s, y: a }) => s === e.x && a === e.y);
415
+ const r = et();
416
+ return t ? t.resolvers.push(r) : (t = { x: e.x, y: e.y, resolvers: [r] }, this._hitTestsRequests.push(t)), this.requestRender(), r.promise;
417
+ }
418
+ getSortKeys(e) {
419
+ const t = new Set(e), r = /* @__PURE__ */ new Map();
420
+ for (const s of this.children)
421
+ if (s.getSortKeys(t).forEach((a, n) => r.set(n, a)), r.size === t.size)
422
+ break;
423
+ return r;
424
+ }
425
+ get hasAnimation() {
426
+ return this.hasLabels;
427
+ }
428
+ updateTransitionProperties(e, t) {
429
+ super.updateTransitionProperties(e, t), this._layerView.featureEffectView.transitionStep(e, t), this._layerView.featureEffectView.transitioning && this.requestRender();
430
+ }
431
+ doRender(e) {
432
+ const { minScale: t, maxScale: r } = this._layer.effectiveScaleRange, s = e.state.scale;
433
+ s <= (t || 1 / 0) && s >= r && super.doRender(e);
434
+ }
435
+ afterRender(e) {
436
+ super.afterRender(e), this._hitTestsRequests.length && this.requestRender();
437
+ }
438
+ setStencilReference(e) {
439
+ const t = this._getOverrideStencilRef(e);
440
+ if (t == null)
441
+ super.setStencilReference(e);
442
+ else
443
+ for (const r of this.children)
444
+ r.stencilRef = t(r);
445
+ }
446
+ _renderMapPhase(e) {
447
+ this._layerView.featureEffectView.hasEffects ? (this._renderOutsideEffect(e), this._renderInsideEffect(e)) : this._renderFeatures(e, H.All), this._hitTestsRequests.length > 0 && this._renderHittest(e);
448
+ }
449
+ _renderHighlightPhase(e) {
450
+ this.hasHighlight && Tt(e, !1, (t) => {
451
+ this._renderFeatures(t, H.Highlight);
452
+ });
453
+ }
454
+ _renderLabelPhase(e) {
455
+ this._renderFeatures(e, H.All);
456
+ }
457
+ _renderInsideEffect(e) {
458
+ const t = e.painter.effects.insideEffect;
459
+ t.bind(e), this._renderFeatures(e, H.InsideEffect), t.draw(e, this._layerView.featureEffectView.includedEffects), t.unbind();
460
+ }
461
+ _renderOutsideEffect(e) {
462
+ const t = e.painter.effects.outsideEffect;
463
+ t.bind(e), this._renderFeatures(e, H.OutsideEffect), t.draw(e, this._layerView.featureEffectView.excludedEffects), t.unbind();
464
+ }
465
+ _renderHittest(e) {
466
+ const { context: t } = e, r = e.painter.effects.hittest, s = t.getBoundFramebufferObject(), a = t.getViewport(), n = e.passOptions;
467
+ r.bind(e), e.passOptions = r.createOptions(e, this._hitTestsRequests), this._renderFeatures(e, H.All), r.draw(e), r.unbind(), t.bindFramebuffer(s), t.restoreViewport(a), e.passOptions = n;
468
+ }
469
+ _renderFeatures(e, t) {
470
+ for (const s of this.children) {
471
+ if (!s.visible)
472
+ continue;
473
+ const a = g("featurelayer-force-marker-text-draw-order") ? Qe.STRICT_MARKERS_AND_TEXT : Qe.BATCHING, n = s.getDisplayList(e.drawPhase, this._instanceStore, a);
474
+ e.selection = t, n == null || n.render(e);
475
+ }
476
+ const r = this._getExclusivePostprocessingInstance(e);
477
+ r != null && r.techniqueRef.postProcess(e, r);
478
+ }
479
+ };
480
+ async function ni(i) {
481
+ const e = await pt("FeaturePipelineWorker", { client: i, strategy: "dedicated" });
482
+ return new li(e);
483
+ }
484
+ let li = class {
485
+ constructor(e) {
486
+ this._connection = e, this.pipeline = this._connection.createInvokeProxy(), this.features = this._connection.createInvokeProxy("features"), this.aggregates = this._connection.createInvokeProxy("aggregates"), this.streamMessenger = this._connection.createInvokeProxy("streamMessenger");
487
+ }
488
+ destroy() {
489
+ this._connection.destroy();
490
+ }
491
+ get closed() {
492
+ return this._connection.closed;
493
+ }
494
+ };
495
+ const oi = "esri.views.2d.layers.features.FeatureSourceEventLog";
496
+ let T = class extends Ye {
497
+ constructor() {
498
+ super(...arguments), this.events = new ht(), this._updatingStrategy = !0, this._tileToEvent = new ft(), this._fetchStatus = { outstanding: 0, done: 0 };
499
+ }
500
+ get hasAllFeatures() {
501
+ var e;
502
+ return this._hasAllData() && (((e = this._strategyInfo) == null ? void 0 : e.willQueryAllFeatures) ?? !1);
503
+ }
504
+ get hasAllFeaturesInView() {
505
+ return this._hasAllData();
506
+ }
507
+ get hasFullGeometries() {
508
+ var e;
509
+ return this._hasAllData() && (((e = this._strategyInfo) == null ? void 0 : e.willQueryFullResolutionGeometry) ?? !1);
510
+ }
511
+ onEvent(e) {
512
+ switch (e.type) {
513
+ case "subscribe":
514
+ case "unsubscribe":
515
+ case "loaded":
516
+ case "error":
517
+ this._handleTileEvent(e);
518
+ break;
519
+ case "updateStrategyStart":
520
+ this._updatingStrategy = !0, this._fetchStatus = { done: 0, outstanding: 0 }, this._strategyInfo = e.about;
521
+ break;
522
+ case "updateStrategyEnd":
523
+ this._updatingStrategy = !1;
524
+ break;
525
+ case "updateFieldsStart":
526
+ this._fetchStatus = { done: 0, outstanding: 0 };
527
+ break;
528
+ case "updateFieldsEnd":
529
+ break;
530
+ case "updateFieldsError":
531
+ this.events.emit("error", e);
532
+ break;
533
+ case "fetchStart":
534
+ this._fetchStatus.outstanding += 1, this.events.emit("status", this._fetchStatus);
535
+ break;
536
+ case "fetchEnd":
537
+ this._fetchStatus.done += 1, this.events.emit("status", this._fetchStatus), e.done && (this._fetchStatus = { done: 0, outstanding: 0 });
538
+ }
539
+ }
540
+ _hasAllData() {
541
+ return !this._updatingStrategy && this._hasAllTileData();
542
+ }
543
+ _hasAllTileData() {
544
+ for (const e of this._tileToEvent.values())
545
+ if (e[e.length - 1].type !== "loaded")
546
+ return !1;
547
+ return !0;
548
+ }
549
+ _handleTileEvent(e) {
550
+ switch (e.type) {
551
+ case "subscribe":
552
+ this._tileToEvent.set(e.tile, [e]);
553
+ break;
554
+ case "unsubscribe":
555
+ this._tileToEvent.delete(e.tile);
556
+ break;
557
+ case "loaded": {
558
+ const t = this._tileToEvent.get(e.tile);
559
+ if (!t)
560
+ return;
561
+ t.push(e), this._tileToEvent.set(e.tile, t);
562
+ break;
563
+ }
564
+ case "error": {
565
+ const t = this._tileToEvent.get(e.tile);
566
+ if (!t)
567
+ return;
568
+ t.push(e), this._tileToEvent.set(e.tile, t), this.events.emit("error", e);
569
+ break;
570
+ }
571
+ }
572
+ }
573
+ };
574
+ h([f({ readOnly: !0 })], T.prototype, "hasAllFeatures", null), h([f({ readOnly: !0 })], T.prototype, "hasAllFeaturesInView", null), h([f({ readOnly: !0 })], T.prototype, "hasFullGeometries", null), h([f()], T.prototype, "_updatingStrategy", void 0), h([f()], T.prototype, "_strategyInfo", void 0), h([f()], T.prototype, "_tileToEvent", void 0), T = h([W(oi)], T);
575
+ function P(i) {
576
+ switch (i.geometryType) {
577
+ case "point":
578
+ return "esriGeometryPoint";
579
+ case "polyline":
580
+ return "esriGeometryPolyline";
581
+ case "polygon":
582
+ case "multipatch":
583
+ return "esriGeometryPolygon";
584
+ case "multipoint":
585
+ return "esriGeometryMultipoint";
586
+ default:
587
+ return null;
588
+ }
589
+ }
590
+ function R(i, e) {
591
+ const t = i.featureReduction;
592
+ return t && t.type !== "selection" && (!("maxScale" in t) || !t.maxScale || t.maxScale < e.scale) ? t : null;
593
+ }
594
+ const ui = Math.PI;
595
+ function it(i, e) {
596
+ switch (e.transformationType) {
597
+ case M.Additive:
598
+ return ci(i, e);
599
+ case M.Constant:
600
+ return di(e, i);
601
+ case M.ClampedLinear:
602
+ return pi(i, e);
603
+ case M.Proportional:
604
+ return hi(i, e);
605
+ case M.Stops:
606
+ return fi(i, e);
607
+ case M.RealWorldSize:
608
+ return yi(i, e);
609
+ case M.Identity:
610
+ return i;
611
+ case M.Unknown:
612
+ return null;
613
+ }
614
+ }
615
+ function O(i, e) {
616
+ return typeof i == "number" ? i : it(e, i);
617
+ }
618
+ function ci(i, e) {
619
+ return i + (O(e.minSize, i) || e.minDataValue);
620
+ }
621
+ function di(i, e) {
622
+ const t = i.stops;
623
+ let r = (t == null ? void 0 : t.length) && t[0].size;
624
+ return r == null && (r = i.minSize), O(r, e);
625
+ }
626
+ function pi(i, e) {
627
+ const t = e.minDataValue, r = e.maxDataValue, s = (i - t) / (r - t), a = O(e.minSize, i), n = O(e.maxSize, i);
628
+ return i <= t ? a : i >= r ? n : a + s * (n - a);
629
+ }
630
+ function hi(i, e) {
631
+ const t = i / e.minDataValue, r = O(e.minSize, i), s = O(e.maxSize, i);
632
+ let a = null;
633
+ return a = t * r, tt(a, r, s);
634
+ }
635
+ function fi(i, e) {
636
+ const [t, r, s] = mi(i, e.cache.ipData);
637
+ if (t === r)
638
+ return O(e.stops[t].size, i);
639
+ {
640
+ const a = O(e.stops[t].size, i);
641
+ return a + (O(e.stops[r].size, i) - a) * s;
642
+ }
643
+ }
644
+ function yi(i, e) {
645
+ const t = Bt[e.valueUnit], r = O(e.minSize, i), s = O(e.maxSize, i), { valueRepresentation: a } = e;
646
+ let n = null;
647
+ return n = a === "area" ? 2 * Math.sqrt(i / ui) / t : a === "radius" || a === "distance" ? 2 * i / t : i / t, tt(n, r, s);
648
+ }
649
+ function mi(i, e) {
650
+ if (!e)
651
+ return;
652
+ let t = 0, r = e.length - 1;
653
+ return e.some((s, a) => i < s ? (r = a, !0) : (t = a, !1)), [t, r, (i - e[t]) / (e[r] - e[t])];
654
+ }
655
+ function k(i) {
656
+ var e;
657
+ return (i.labelsVisible && ((e = i.labelingInfo) == null ? void 0 : e.every((t) => t.deconflictionStrategy !== "none"))) ?? !1;
658
+ }
659
+ function X(i, e) {
660
+ var r;
661
+ const t = R(i, e);
662
+ if (t != null && t.labelsVisible && ((r = t.labelingInfo) != null && r.length))
663
+ return t.labelingInfo.every((s) => s.deconflictionStrategy !== "none");
664
+ }
665
+ function gi(i) {
666
+ return (e) => ae(it(e, i));
667
+ }
668
+ function B(i) {
669
+ const e = i != null && "visualVariables" in i && i.visualVariables;
670
+ if (!e)
671
+ return null;
672
+ for (const t of e)
673
+ if (t.type === "size")
674
+ return gi(t);
675
+ return null;
676
+ }
677
+ function J(i, e, t, r, s) {
678
+ var u, l;
679
+ const a = e.subtypeCode != null ? `${e.subtypeField} = ${e.subtypeCode}` : null, n = fe(e.definitionExpression, a), o = e.customParameters ?? {};
680
+ return s && (o.token = s), { type: "feature", mutable: { sourceRefreshVersion: r, availableFields: t.availableFields, dataFilter: { definitionExpression: n, gdbVersion: e.gdbVersion, historicMoment: (u = e.historicMoment) == null ? void 0 : u.getTime(), outSpatialReference: t.outSpatialReference.toJSON(), timeExtent: (l = e.timeExtent) == null ? void 0 : l.toJSON(), customParameters: o } }, service: i, tileInfoJSON: t.tileInfoJSON };
681
+ }
682
+ function bi(i, e, t = 0) {
683
+ if (e == null)
684
+ return i[t] = 0, i[t + 1] = 0, i[t + 2] = 0, void (i[t + 3] = 0);
685
+ const { r, g: s, b: a, a: n } = e;
686
+ i[t] = r * n / 255, i[t + 1] = s * n / 255, i[t + 2] = a * n / 255, i[t + 3] = n;
687
+ }
688
+ async function A(i, e) {
689
+ if (!i)
690
+ return [];
691
+ switch (i.type) {
692
+ case "simple-fill":
693
+ return st(i, e);
694
+ case "picture-fill":
695
+ return Oi(i, e);
696
+ case "simple-marker":
697
+ return wi(i, e);
698
+ case "picture-marker":
699
+ return Vi(i, e);
700
+ case "simple-line":
701
+ return le(i, e, !1);
702
+ case "text":
703
+ return xi(i, e);
704
+ case "label":
705
+ return Ei(i, e);
706
+ case "cim":
707
+ return me(i.data, e);
708
+ case "web-style": {
709
+ const t = await i.fetchCIMSymbol();
710
+ return me(t.data, e);
711
+ }
712
+ default:
713
+ throw new Error(`symbol not supported ${i.type}`);
714
+ }
715
+ }
716
+ async function Si(i, e) {
717
+ const { schemaOptions: t } = e, { store: r } = t, s = new Array(ce), a = new Array(ce / 4);
718
+ for (let l = 0; l < ce; l++) {
719
+ const c = l < i.attributes.length ? i.attributes[l].color : null;
720
+ s[l] = [0, 0, 0, 0], bi(s[l], c);
721
+ }
722
+ for (let l = 0; l < ce / 4; l++)
723
+ a[l] = [0, 0, 0, 0], a[l][0] = 4 * l < i.attributes.length ? 1 : 0, a[l][1] = 4 * l + 1 < i.attributes.length ? 1 : 0, a[l][2] = 4 * l + 2 < i.attributes.length ? 1 : 0, a[l][3] = 4 * l + 3 < i.attributes.length ? 1 : 0;
724
+ const n = { isActive: a, colors: s, dotValue: i.dotValue, dotScale: i.referenceScale, blending: i.dotBlendingEnabled, dotSize: i.dotSize, seed: i.seed }, o = r.ensureInstance(x.dotDensity, n, {}).createMeshInfo({ params: { effects: null } }), u = [];
725
+ if (i.backgroundColor) {
726
+ const l = new yt({ color: i.backgroundColor, outline: null }), c = await A(l, e);
727
+ u.push(...c);
728
+ }
729
+ if (u.push(o), i.outline) {
730
+ const l = le(i.outline, e, !0);
731
+ u.push(...l);
732
+ }
733
+ return u;
734
+ }
735
+ async function vi(i, e) {
736
+ const { store: t } = e, { radius: r, minDensity: s, maxDensity: a, referenceScale: n, field: o, valueExpression: u, colorStops: l } = i, c = jt(l);
737
+ return [t.ensureInstance(x.heatmap, { radius: ae(r), minDensity: s, maxDensity: a, referenceScale: n, isFieldActive: !(!o && !u), gradient: c, gradientHash: c.join(",") }, {}).createMeshInfo({ params: { effects: null } })];
738
+ }
739
+ function _i(i, e) {
740
+ var n, o, u, l;
741
+ const { store: t } = e, r = ((n = i.outline) == null ? void 0 : n.width) || 0, s = z(i), a = t.ensureInstance(x.pieChart, { geometry: { outlineWidth: Math.round(ae(r)), defaultColor: de(i.defaultColor), outlineColor: de((o = i.outline) == null ? void 0 : o.color), othersColor: de((u = i.othersCategory) == null ? void 0 : u.color), donutRatio: i.holePercentage, sectorThreshold: ((l = i.othersCategory) == null ? void 0 : l.threshold) || 0, colors: i.attributes.map((c) => de(c.color)), visualVariableOpacity: s.visualVariableOpacity, visualVariableSizeMinMaxValue: s.visualVariableSizeMinMaxValue, visualVariableSizeScaleStops: s.visualVariableSizeScaleStops, visualVariableSizeStops: s.visualVariableSizeStops, visualVariableSizeUnitValue: s.visualVariableSizeUnitValue, hittestUniforms: null }, numberOfFields: i.attributes.length }, {}).createMeshInfo({ params: { size: i.size, outlineWidth: r, effects: null, scaleInfo: null, minPixelBuffer: U(s) } });
742
+ return [...i.backgroundFillSymbol ? st(i.backgroundFillSymbol, { schemaOptions: e, path: "", uniforms: be }) : [], a];
743
+ }
744
+ function rt(i) {
745
+ if (i.style === "path") {
746
+ if (i.path == null)
747
+ throw new Error("Symbol with a style of type path must define a path");
748
+ return { type: "sprite-rasterization-param", overrides: [], resource: { type: "path", path: i.path, asFill: !0 } };
749
+ }
750
+ const e = Z.fromSimpleMarker(i);
751
+ if ("outline" in i && i.outline && i.outline.style !== "none" && i.outline.style !== "solid") {
752
+ if (!e || !e.symbolLayers)
753
+ throw new Error("Error handling marker! ");
754
+ return { type: "sprite-rasterization-param", resource: e.symbolLayers[0], overrides: [] };
755
+ }
756
+ return { type: "sprite-rasterization-param", resource: Ht(e), overrides: [] };
757
+ }
758
+ async function wi(i, e) {
759
+ var p, y, m, b, V;
760
+ const { uniforms: t, schemaOptions: r } = e, { store: s } = r;
761
+ if (i.style === "path" || i.outline && i.outline.style !== "solid" && i.outline.style !== "none") {
762
+ const S = Z.fromSimpleMarker(i);
763
+ if (!S || !S.symbolLayers)
764
+ throw new Error("Error handling marker! ");
765
+ if (t.visualVariableRotation && (S.angleAlignment = "Map"), i.style !== "path") {
766
+ const w = S.symbolLayers[0];
767
+ if (ie(e.uniforms)) {
768
+ const v = U(e.uniforms, 0, 1);
769
+ if (v > w.size) {
770
+ const F = v / w.size;
771
+ w.size = v;
772
+ const $ = (p = w.markerGraphics) == null ? void 0 : p[0].symbol;
773
+ ($.symbolLayers && $.symbolLayers[0]).width *= F;
774
+ }
775
+ }
776
+ }
777
+ return me({ type: "CIMSymbolReference", symbol: S }, e);
778
+ }
779
+ const a = s.ensureInstance(x.marker, { geometry: { visualVariableColor: t.visualVariableColor, visualVariableOpacity: t.visualVariableOpacity, visualVariableSizeMinMaxValue: t.visualVariableSizeMinMaxValue, visualVariableSizeScaleStops: t.visualVariableSizeScaleStops, visualVariableSizeStops: t.visualVariableSizeStops, visualVariableSizeUnitValue: t.visualVariableSizeUnitValue, visualVariableRotation: t.visualVariableRotation } }, { zoomRange: !1 }), n = rt(i);
780
+ let o = ((y = i.color) == null ? void 0 : y.toArray()) ?? [0, 0, 0, 0];
781
+ n.resource.type === "CIMVectorMarker" && (o = [255, 255, 255, 255]);
782
+ const u = i.style === "triangle" ? 124 / 116 : 1, l = i.size, c = l * u, d = t.visualVariableColor != null && (i.style === "cross" || i.style === "x");
783
+ return [a.createMeshInfo({ params: { type: "simple", color: o, height: l, width: c, offsetX: i.xoffset, offsetY: i.yoffset, angle: i.angle, alignment: Re(t) ? G.MAP : G.SCREEN, outlineColor: ((b = (m = i.outline) == null ? void 0 : m.color) == null ? void 0 : b.toArray()) ?? [0, 0, 0, 0], outlineSize: ((V = i.outline) == null ? void 0 : V.width) ?? 1, referenceSize: l, sprite: n, overrideOutlineColor: d, hasSizeVV: ie(t), placement: null, effects: null, transforms: null, scaleInfo: null, minPixelBuffer: U(t) } })];
784
+ }
785
+ function Vi(i, e) {
786
+ const { uniforms: t, schemaOptions: r } = e, { store: s } = r, a = s.ensureInstance(x.marker, { geometry: { visualVariableColor: t.visualVariableColor, visualVariableOpacity: t.visualVariableOpacity, visualVariableSizeMinMaxValue: t.visualVariableSizeMinMaxValue, visualVariableSizeScaleStops: t.visualVariableSizeScaleStops, visualVariableSizeStops: t.visualVariableSizeStops, visualVariableSizeUnitValue: t.visualVariableSizeUnitValue, visualVariableRotation: t.visualVariableRotation } }, { zoomRange: !1 }), n = Z.createPictureMarkerRasterizationParam(i);
787
+ return n ? [a.createMeshInfo({ params: { type: "picture", color: [255, 255, 255, 255], height: i.height, width: i.width, offsetX: i.xoffset, offsetY: i.yoffset, angle: i.angle, alignment: Re(t) ? G.MAP : G.SCREEN, outlineColor: null, outlineSize: 0, referenceSize: i.height, sprite: n, overrideOutlineColor: !1, hasSizeVV: ie(t), placement: null, effects: null, transforms: null, scaleInfo: null, minPixelBuffer: U(t) } })] : [];
788
+ }
789
+ function Ii(i, e, t) {
790
+ var b, V;
791
+ const { uniforms: r, schemaOptions: s } = t, { store: a } = s, n = a.ensureInstance(x.marker, { geometry: { visualVariableColor: r.visualVariableColor, visualVariableOpacity: r.visualVariableOpacity, visualVariableSizeMinMaxValue: r.visualVariableSizeMinMaxValue, visualVariableSizeScaleStops: r.visualVariableSizeScaleStops, visualVariableSizeStops: r.visualVariableSizeStops, visualVariableSizeUnitValue: r.visualVariableSizeUnitValue, visualVariableRotation: r.visualVariableRotation } }, { zoomRange: !1 }), o = rt(i), u = 6, l = u * e.width, c = l, d = ((b = i.color) == null ? void 0 : b.toArray()) ?? ((V = e.color) == null ? void 0 : V.toArray()) ?? [0, 0, 0, 0], p = i.style === "cross" || i.style === "x";
792
+ let y;
793
+ switch (i.placement) {
794
+ case "begin-end":
795
+ y = ue.Both;
796
+ break;
797
+ case "begin":
798
+ y = ue.JustBegin;
799
+ break;
800
+ case "end":
801
+ y = ue.JustEnd;
802
+ break;
803
+ default:
804
+ y = ue.None;
805
+ }
806
+ const m = { type: "cim-marker-placement-info", placement: { type: "CIMMarkerPlacementAtExtremities", angleToLine: !0, offset: 0, extremityPlacement: y, offsetAlongLine: 0 }, overrides: [] };
807
+ return [n.createMeshInfo({ params: { type: "simple", color: d, height: c, width: l, offsetX: 0, offsetY: 0, angle: 0, alignment: Re(r) ? G.MAP : G.SCREEN, outlineColor: d, outlineSize: p ? e.width : 0, referenceSize: c / u, sprite: o, overrideOutlineColor: p && r.visualVariableColor != null, hasSizeVV: ie(r), placement: m, transforms: null, effects: null, scaleInfo: null, minPixelBuffer: U(r) } })];
808
+ }
809
+ function xi(i, e) {
810
+ var a, n, o, u;
811
+ const { uniforms: t, schemaOptions: r } = e, { store: s } = r;
812
+ return [s.ensureInstance(x.text, { geometry: { visualVariableColor: t.visualVariableColor, visualVariableOpacity: t.visualVariableOpacity, visualVariableRotation: t.visualVariableRotation, visualVariableSizeMinMaxValue: t.visualVariableSizeMinMaxValue, visualVariableSizeScaleStops: t.visualVariableSizeScaleStops, visualVariableSizeStops: t.visualVariableSizeStops, visualVariableSizeUnitValue: t.visualVariableSizeUnitValue } }, { zoomRange: !1, clipAngle: !1, referenceSymbol: !1 }).createMeshInfo({ params: { boxBackgroundColor: (a = i.backgroundColor) == null ? void 0 : a.toArray(), boxBorderLineColor: (n = i.borderLineColor) == null ? void 0 : n.toArray(), boxBorderLineSize: i.borderLineSize ?? 0, color: ((o = i.color) == null ? void 0 : o.toArray()) ?? [0, 0, 0, 0], offsetX: i.xoffset, offsetY: i.yoffset, postAngle: i.angle, fontSize: i.font.size, decoration: i.font.decoration, haloColor: ((u = i.haloColor) == null ? void 0 : u.toArray()) ?? [0, 0, 0, 0], haloFontSize: i.haloSize ?? 0, lineWidth: i.lineWidth, lineHeightRatio: i.lineHeight, horizontalAlignment: i.horizontalAlignment, verticalAlignment: i.verticalAlignment, useCIMAngleBehavior: !1, glyphs: { type: "text-rasterization-param", resource: { type: "text", font: i.font.toJSON(), textString: i.text, symbol: Z.createCIMTextSymbolfromTextSymbol(i) }, overrides: [] }, referenceSize: null, effects: null, placement: null, scaleInfo: null, transforms: null, scaleFactor: 1, minPixelBuffer: U(t), repeatLabel: null, repeatLabelDistance: null, allowOverrun: null, labelPosition: null, isLineLabel: !1 } })];
813
+ }
814
+ function Ei(i, e) {
815
+ var m, b, V, S, w, v;
816
+ const { schemaOptions: t, uniforms: r } = e, { store: s } = t, a = i.symbol, { allowOverrun: n, repeatLabel: o, repeatLabelDistance: u } = i, l = { maxScale: i.maxScale ?? 0, minScale: i.minScale ?? 0 }, c = s.ensureInstance(x.label, { geometry: { visualVariableColor: null, visualVariableOpacity: null, visualVariableRotation: r.visualVariableRotation, visualVariableSizeMinMaxValue: r.visualVariableSizeMinMaxValue, visualVariableSizeScaleStops: r.visualVariableSizeScaleStops, visualVariableSizeStops: r.visualVariableSizeStops, visualVariableSizeUnitValue: r.visualVariableSizeUnitValue } }, { zoomRange: !0, clipAngle: !0, referenceSymbol: !0 }), d = i.labelPlacement, [p, y] = Nt(d);
817
+ return [c.createMeshInfo({ params: { boxBackgroundColor: (m = a.backgroundColor) == null ? void 0 : m.toArray(), boxBorderLineColor: (b = a.borderLineColor) == null ? void 0 : b.toArray(), boxBorderLineSize: a.borderLineSize ?? 0, color: ((V = a.color) == null ? void 0 : V.toArray()) ?? [0, 0, 0, 0], offsetX: a.xoffset, offsetY: a.yoffset, postAngle: a.angle, fontSize: a.font.size, decoration: a.font.decoration, haloColor: ((S = a.haloColor) == null ? void 0 : S.toArray()) ?? [0, 0, 0, 0], haloFontSize: a.haloSize ?? 0, lineWidth: a.lineWidth, lineHeightRatio: a.lineHeight, horizontalAlignment: p, verticalAlignment: y, repeatLabel: o, repeatLabelDistance: ae(u), allowOverrun: n, labelPosition: i.labelPosition, scaleInfo: l, minPixelBuffer: U(r), useCIMAngleBehavior: !1, glyphs: { type: "text-rasterization-param", resource: { type: "text", font: a.font.toJSON(), textString: a.text, symbol: Z.createCIMTextSymbolfromTextSymbol(a), primitiveName: "label-override" }, useLegacyLabelEvaluationRules: ((w = i.labelExpressionInfo) == null ? void 0 : w.expression) == null, overrides: [{ type: "CIMPrimitiveOverride", valueExpressionInfo: { type: "CIMExpressionInfo", expression: ((v = i.labelExpressionInfo) == null ? void 0 : v.expression) ?? i.labelExpression, returnType: "String" }, primitiveName: "label-override", propertyName: "textString", defaultValue: "" }] }, referenceSize: null, effects: null, placement: null, transforms: null, scaleFactor: 1, isLineLabel: !1 } })];
818
+ }
819
+ function ze(i, e) {
820
+ var r;
821
+ const t = i.width;
822
+ return { outlineColor: ((r = i.color) == null ? void 0 : r.toArray()) || [0, 0, 0, 1], width: t, referenceWidth: t, capType: i.cap ?? "round", joinType: i.join ?? "round", miterLimit: i.miterLimit, hasSizeVV: e };
823
+ }
824
+ function Fi(i, e) {
825
+ var l, c, d;
826
+ const { uniforms: t, schemaOptions: r } = e, { store: s } = r, a = ((l = i.color) == null ? void 0 : l.toArray()) ?? [0, 0, 0, 0], n = { type: "sprite-rasterization-param", resource: { type: "fill-style", style: i.style }, overrides: [] };
827
+ if (((c = i.outline) == null ? void 0 : c.style) === "solid")
828
+ return [s.ensureInstance(x.patternOutlineFill, { geometry: { visualVariableColor: t.visualVariableColor, visualVariableOpacity: t.visualVariableOpacity, visualVariableSizeScaleStops: t.visualVariableSizeOutlineScaleStops, visualVariableSizeMinMaxValue: null, visualVariableSizeStops: null, visualVariableSizeUnitValue: null } }, { zoomRange: !1 }).createMeshInfo({ params: { color: a, ...ze(i.outline, !!t.visualVariableSizeOutlineScaleStops), sprite: n, scaleInfo: null, effects: null } })];
829
+ const o = [], u = s.ensureInstance(x.patternFill, { geometry: { visualVariableColor: t.visualVariableColor, visualVariableOpacity: t.visualVariableOpacity } }, { zoomRange: !1 }).createMeshInfo({ params: { color: ((d = i.color) == null ? void 0 : d.toArray()) ?? [0, 0, 0, 0], sprite: n, scaleInfo: null, effects: null } });
830
+ return o.push(u), i.outline && o.push(...le(i.outline, e, !0)), o;
831
+ }
832
+ function Ri(i, e) {
833
+ var o, u;
834
+ const { uniforms: t, schemaOptions: r } = e, { store: s } = r, a = ((o = i.color) == null ? void 0 : o.toArray()) ?? [0, 0, 0, 0];
835
+ if (i.style !== "none" && ((u = i.outline) == null ? void 0 : u.style) === "solid")
836
+ return [s.ensureInstance(x.outlineFill, { geometry: { visualVariableColor: t.visualVariableColor, visualVariableOpacity: t.visualVariableOpacity, visualVariableSizeScaleStops: t.visualVariableSizeOutlineScaleStops, visualVariableSizeMinMaxValue: null, visualVariableSizeStops: null, visualVariableSizeUnitValue: null } }, { zoomRange: !1 }).createMeshInfo({ params: { color: a, ...ze(i.outline, !!t.visualVariableSizeOutlineScaleStops), scaleInfo: null, effects: null } })];
837
+ const n = [];
838
+ if (i.style !== "none") {
839
+ const l = s.ensureInstance(x.fill, { geometry: { visualVariableColor: t.visualVariableColor, visualVariableOpacity: t.visualVariableOpacity } }, { zoomRange: !1 }).createMeshInfo({ params: { color: a, scaleInfo: null, effects: null } });
840
+ n.push(l);
841
+ }
842
+ return i.outline && n.push(...le(i.outline, e, !0)), n;
843
+ }
844
+ function st(i, e) {
845
+ const { style: t } = i;
846
+ return t && t !== "none" && t !== "solid" ? Fi(i, e) : Ri(i, e);
847
+ }
848
+ function Oi(i, e) {
849
+ const { outline: t } = i, { uniforms: r, schemaOptions: s } = e, { store: a } = s, n = [], o = Z.createPictureFillRasterizationParam(i);
850
+ if (!o)
851
+ return [];
852
+ const { width: u, height: l, xoffset: c, yoffset: d, xscale: p, yscale: y } = i, m = { color: [255, 255, 255, 255], sprite: o, height: l, aspectRatio: u / l, offsetX: c, offsetY: d, scaleX: p, scaleY: y, angle: 0, applyRandomOffset: !1, sampleAlphaOnly: !1, scaleProportionally: !1, effects: null, scaleInfo: null };
853
+ if ((t == null ? void 0 : t.style) === "solid")
854
+ return [a.ensureInstance(x.complexOutlineFill, { geometry: { visualVariableColor: r.visualVariableColor, visualVariableOpacity: r.visualVariableOpacity, visualVariableSizeScaleStops: r.visualVariableSizeOutlineScaleStops, visualVariableSizeMinMaxValue: null, visualVariableSizeStops: null, visualVariableSizeUnitValue: null } }, { zoomRange: !1 }).createMeshInfo({ params: { ...m, ...ze(t, !!r.visualVariableSizeOutlineScaleStops) } })];
855
+ const b = a.ensureInstance(x.complexFill, { geometry: { visualVariableColor: r.visualVariableColor, visualVariableOpacity: r.visualVariableOpacity } }, { zoomRange: !1 });
856
+ return n.push(b.createMeshInfo({ params: m })), t && n.push(...le(t, e, !0)), n;
857
+ }
858
+ function le(i, e, t) {
859
+ const { color: r, style: s, width: a, cap: n, join: o } = i, { schemaOptions: u } = e, { store: l } = u, c = [], d = t ? { ...be, visualVariableSizeScaleStops: e.uniforms.visualVariableSizeOutlineScaleStops } : e.uniforms, p = { geometry: { visualVariableColor: d.visualVariableColor, visualVariableOpacity: d.visualVariableOpacity, visualVariableSizeMinMaxValue: d.visualVariableSizeMinMaxValue, visualVariableSizeScaleStops: d.visualVariableSizeScaleStops, visualVariableSizeStops: d.visualVariableSizeStops, visualVariableSizeUnitValue: d.visualVariableSizeUnitValue } }, y = { color: (r == null ? void 0 : r.toArray()) ?? [0, 0, 0, 0], width: a, referenceWidth: a, capType: n, joinType: o, miterLimit: i.miterLimit, hasSizeVV: ie(d), effects: null, scaleInfo: null };
860
+ if (s == null || s === "solid") {
861
+ const m = l.ensureInstance(x.line, p, { zoomRange: !1 }).createMeshInfo({ params: y });
862
+ c.push(m);
863
+ } else if (s !== "none") {
864
+ const m = l.ensureInstance(x.texturedLine, p, { zoomRange: !1 }).createMeshInfo({ params: { ...y, shouldScaleDash: !0, shouldSampleAlphaOnly: !1, isSDF: !0, sprite: { type: "sprite-rasterization-param", resource: { type: "dash", dashTemplate: kt(s, n), capStyle: qt(n) }, overrides: [] } } });
865
+ c.push(m);
866
+ }
867
+ return i.marker != null && c.push(...Ii(i.marker, i, e)), c;
868
+ }
869
+ async function re(i, e, t) {
870
+ const r = e.labelsVisible && e.labelingInfo || [], s = P(e), a = Dt(r, s);
871
+ return { type: "label", classes: await Promise.all(a.map((n, o) => $i(i, n, o, t))) };
872
+ }
873
+ async function $i(i, e, t, r) {
874
+ var a;
875
+ const s = await A(e, { path: `${t}`, schemaOptions: i, uniforms: r });
876
+ return { maxScale: e.maxScale, minScale: e.minScale, expression: ((a = e.labelExpressionInfo) == null ? void 0 : a.expression) ?? e.labelExpression, where: e.where, meshes: s };
877
+ }
878
+ async function se(i, e) {
879
+ if (!e)
880
+ return { type: "simple", meshes: [] };
881
+ switch (e.type) {
882
+ case "simple":
883
+ return zi(i, e);
884
+ case "dot-density":
885
+ return Ti(i, e);
886
+ case "class-breaks":
887
+ return Ci(i, e);
888
+ case "unique-value":
889
+ return Ai(i, e);
890
+ case "dictionary":
891
+ return Pi(e);
892
+ case "heatmap":
893
+ return Mi(i, e);
894
+ case "pie-chart":
895
+ return Ni(i, e);
896
+ }
897
+ }
898
+ async function zi(i, e) {
899
+ const t = e.getSymbols(), r = t.length ? t[0] : null, s = z(e);
900
+ return { type: "simple", meshes: await A(r, { schemaOptions: i, uniforms: s, path: "renderer.symbol" }) };
901
+ }
902
+ async function Ti(i, e) {
903
+ const t = z(e);
904
+ return { type: "dot-density", meshes: await Si(e, { schemaOptions: i, uniforms: t, path: "renderer.symbol" }) };
905
+ }
906
+ async function Ci(i, e) {
907
+ const t = z(e), r = e.backgroundFillSymbol, s = e.normalizationType, a = s === "log" ? "esriNormalizeByLog" : s === "percent-of-total" ? "esriNormalizeByPercentOfTotal" : s === "field" ? "esriNormalizeByField" : null, n = e.classBreakInfos.map(async (c) => ({ meshes: await A(c.symbol, { path: `renderer-stop-${c.minValue}-${c.maxValue}`, schemaOptions: i, uniforms: t }), min: c.minValue, max: c.maxValue })), o = (await Promise.all(n)).sort((c, d) => c.min - d.min), u = await A(r, { schemaOptions: i, path: "renderer.backgroundFill", uniforms: { ...be, visualVariableSizeOutlineScaleStops: t.visualVariableSizeOutlineScaleStops } }), l = await A(e.defaultSymbol, { schemaOptions: i, path: "renderer.defaultSymbol", uniforms: t });
908
+ return { type: "interval", field: e.field, expression: e.valueExpression, backgroundFill: u, defaultSymbol: l, intervals: o, normalizationField: e.normalizationField, normalizationTotal: e.normalizationTotal, normalizationType: a, isMaxInclusive: e.isMaxInclusive };
909
+ }
910
+ async function Ai(i, e) {
911
+ const t = [], r = z(e), s = await A(e.backgroundFillSymbol, { schemaOptions: i, path: "renderer.backgroundFill", uniforms: { ...be, visualVariableSizeOutlineScaleStops: r.visualVariableSizeOutlineScaleStops } }), a = await A(e.defaultSymbol, { schemaOptions: i, path: "renderer.defaultSymbol", uniforms: r });
912
+ for (const n of e.uniqueValueInfos ?? []) {
913
+ const o = await A(n.symbol, { path: `renderer-unique-value-${n.value}`, schemaOptions: i, uniforms: r });
914
+ t.push({ value: "" + n.value, symbol: o });
915
+ }
916
+ return { type: "map", field: e.field, expression: e.valueExpression, field2: e.field2, field3: e.field3, fieldDelimiter: e.fieldDelimiter, backgroundFill: s, defaultSymbol: a, map: t };
917
+ }
918
+ function Pi(i) {
919
+ const e = z(i), t = i.scaleExpression, r = t != null && t !== "1" ? { valueExpressionInfo: { type: "CIMExpressionInfo", expression: i.scaleExpression, returnType: "Numeric" }, defaultValue: 1 } : void 0;
920
+ return { type: "dictionary", fieldMap: i.fieldMap, scaleExpression: r, visualVariableUniforms: e };
921
+ }
922
+ async function Mi(i, e) {
923
+ return { type: "heatmap", meshes: await vi(e, i) };
924
+ }
925
+ async function Ni(i, e) {
926
+ return { type: "pie-chart", meshes: _i(e, i) };
927
+ }
928
+ async function ki(i, e) {
929
+ const t = e.renderer, r = z(t);
930
+ return { symbology: await se(i, t), labels: await re(i, e, r) };
931
+ }
932
+ async function D(i, e, t, r) {
933
+ const s = t.featureReduction;
934
+ if (s)
935
+ switch (s.type) {
936
+ case "binning":
937
+ return Ui(s, i, e, t, r);
938
+ case "cluster":
939
+ return Li(s, i, e, t, r);
940
+ }
941
+ const a = Bi(t.orderBy, t.renderer, t.objectIdField);
942
+ return { storage: Oe(t.renderer, e.filters), mesh: { displayRefreshVersion: r, strategy: { type: "feature" }, factory: await ki(i, t), sortKey: a, timeZone: e.timeZone } };
943
+ }
944
+ function at(i, e) {
945
+ return i.fields.map((t) => ({ ...t.toJSON(), type: qi(t, e) }));
946
+ }
947
+ function qi(i, e) {
948
+ const { onStatisticExpression: t, onStatisticField: r, statisticType: s } = i;
949
+ switch (s) {
950
+ case "min":
951
+ case "max":
952
+ case "avg":
953
+ case "avg_angle":
954
+ case "sum":
955
+ case "count":
956
+ return "esriFieldTypeDouble";
957
+ case "mode": {
958
+ if (t) {
959
+ const { returnType: n } = t;
960
+ return n ? n === "string" ? "esriFieldTypeString" : "esriFieldTypeDouble" : "esriFieldTypeString";
961
+ }
962
+ const a = e.find((n) => n.name === r);
963
+ return a ? a.type : "esriFieldTypeString";
964
+ }
965
+ }
966
+ }
967
+ async function Ui(i, e, t, r, s) {
968
+ const a = at(i, r.fields), n = i.renderer, o = await se(e, n), u = Oe(n, [null, null]), l = z(n), c = await re(e, { geometryType: "polygon", labelingInfo: i.labelingInfo, labelsVisible: i.labelsVisible }, l);
969
+ return { storage: u, mesh: { displayRefreshVersion: s, strategy: { type: "binning", fields: a, fixedBinLevel: i.fixedBinLevel, featureFilter: t.filters[0] }, factory: { labels: c, symbology: o }, sortKey: null, timeZone: t.timeZone } };
970
+ }
971
+ async function Li(i, e, t, r, s) {
972
+ const a = at(i, r.fields), n = { type: "cluster", feature: await se(e, i.effectiveFeatureRenderer), cluster: await se(e, i.effectiveClusterRenderer) }, o = z(i.effectiveFeatureRenderer), u = { type: "cluster", feature: await re(e, r, o), cluster: await re(e, { geometryType: "point", labelingInfo: i.labelingInfo, labelsVisible: i.labelsVisible }, o) };
973
+ return { storage: Oe(i.effectiveFeatureRenderer, [null, null]), mesh: { displayRefreshVersion: s, strategy: { type: "cluster", fields: a, featureFilter: t.filters[0], clusterRadius: ae(i.clusterRadius / 2) }, factory: { labels: u, symbology: n }, sortKey: null, timeZone: t.timeZone } };
974
+ }
975
+ function Bi(i, e, t) {
976
+ const r = e != null && e.type === "unique-value" && e.orderByClassesEnabled;
977
+ if (i !== "default" || r || (i = [new Jt({ field: t, order: "descending" })]), i !== "default" && i.length) {
978
+ i.length;
979
+ const s = i[0], a = s.order === "ascending" ? "asc" : "desc";
980
+ return s.field ? { field: s.field, order: a } : s.valueExpression ? { expression: s.valueExpression, order: a } : null;
981
+ }
982
+ return r ? { byRenderer: !0, order: "asc" } : null;
983
+ }
984
+ let Ji = class {
985
+ constructor(e) {
986
+ this.layer = e;
987
+ }
988
+ getLabelingDeconflictionInfo(e) {
989
+ const t = this.layer, r = k(t);
990
+ return [{ vvEvaluators: { 0: B(t.renderer) }, deconflictionEnabled: r }];
991
+ }
992
+ async createServiceOptions(e) {
993
+ var v, F;
994
+ const t = this.layer, r = t.parent, s = N(r), { capabilities: a, editingInfo: n, objectIdField: o, globalIdField: u, datesInUnknownTimezone: l, orderBy: c, subtypeField: d, parsedUrl: p } = r, y = r.fieldsIndex.toJSON(), m = P(t), b = (v = r.timeInfo) == null ? void 0 : v.toJSON(), V = t.spatialReference.toJSON(), S = ne(p);
995
+ let w = o;
996
+ if (c != null && c.length) {
997
+ const $ = !c[0].valueExpression && c[0].field;
998
+ $ && (w = $);
999
+ }
1000
+ return { type: "feature-service", source: S, isSourceHosted: ge(S.path), orderByFields: w, metadata: { timeReferenceUnknownClient: l, subtypeField: d, globalIdField: u, fieldsIndex: y, geometryType: m, objectIdField: o, timeInfo: b, spatialReference: V, subtypes: null, typeIdField: null, types: null }, queryMetadata: { capabilities: a, effectiveCapabilities: s, lastEditDate: (F = n == null ? void 0 : n.lastEditDate) == null ? void 0 : F.getTime(), snapshotInfo: null } };
1001
+ }
1002
+ createSourceSchema(e, t, r) {
1003
+ const { definitionExpression: s, customParameters: a, timeExtent: n, apiKey: o } = this.layer.parent;
1004
+ return J(e, { definitionExpression: s, customParameters: a, timeExtent: n }, t, r, o);
1005
+ }
1006
+ createProcessorSchema(e, t, r) {
1007
+ const { parent: { fields: s, geometryType: a, orderBy: n, objectIdField: o }, renderer: u, labelingInfo: l, labelsVisible: c } = this.layer, d = { featureReduction: null, fields: s.map((p) => p.toJSON()), geometryType: a, labelingInfo: l, labelsVisible: c, objectIdField: o, orderBy: n ?? "default", renderer: u == null ? void 0 : u.clone() };
1008
+ return D(e, t, d, r);
1009
+ }
1010
+ get hasRequiredSupport() {
1011
+ return L(this.layer.renderer);
1012
+ }
1013
+ getUpdateHashProperties(e) {
1014
+ const t = this.layer, { parent: r, parent: { definitionExpression: s, apiKey: a }, renderer: n } = t, o = this.layer.labelsVisible ? this.layer.labelingInfo : null;
1015
+ return { apiKey: a, customParameters: JSON.stringify(r.customParameters), definitionExpression: s, labelingInfo: o, orderBy: JSON.stringify(r.orderBy), renderer: n };
1016
+ }
1017
+ setGraphicOrigin(e) {
1018
+ e.origin = { type: "catalog", layer: this.layer };
1019
+ }
1020
+ };
1021
+ function Te(i, e) {
1022
+ const t = i.extent, r = e == null ? void 0 : e.clone().intersection(t), s = r != null ? r.width * r.height : 0, a = e ? e.width * e.height : 0, n = a === 0 ? 0 : s / a, o = g("featurelayer-snapshot-point-coverage");
1023
+ return !isNaN(n) && n >= o;
1024
+ }
1025
+ function K(i, e) {
1026
+ return i.floorInfo != null && (i.floorInfo.viewAllLevelIds.length > 0 || e.floors.length > 0);
1027
+ }
1028
+ function Ce(i, e, t) {
1029
+ const r = Di(i, e == null ? void 0 : e.where, t);
1030
+ return r && (e ?? (e = new te()), e.where = r), e;
1031
+ }
1032
+ function Di(i, e, t) {
1033
+ var u;
1034
+ if (i.floorInfo == null || !((u = t.floors) != null && u.length))
1035
+ return e;
1036
+ let r = t.floors;
1037
+ const { floorField: s, viewAllLevelIds: a } = i.floorInfo;
1038
+ a.length && (r = a);
1039
+ const n = r.filter((l) => l !== "").map((l) => "'" + l + "'");
1040
+ if (n.push("''"), e == null ? void 0 : e.includes(s)) {
1041
+ let l = new RegExp("AND \\(" + s + ".*NULL\\)", "g");
1042
+ e = e.replace(l, ""), l = new RegExp("\\(" + s + ".*NULL\\)", "g"), e = (e = e.replace(l, "")).replaceAll(/\s+/g, " ").trim();
1043
+ }
1044
+ let o = "(" + s + " IN ({ids}) OR " + s + " IS NULL)";
1045
+ return o = o.replace("{ids}", n.join(", ")), fe(e, o);
1046
+ }
1047
+ let ji = class {
1048
+ constructor(e) {
1049
+ this.layer = e;
1050
+ }
1051
+ getLabelingDeconflictionInfo(e) {
1052
+ const t = this.layer, r = X(t, e) ?? k(t);
1053
+ return [{ vvEvaluators: { 0: B(t.renderer) }, deconflictionEnabled: r }];
1054
+ }
1055
+ async createServiceOptions(e) {
1056
+ var Ae, Pe, Me, Ne;
1057
+ const t = this.layer, r = N(t), { capabilities: s, editingInfo: a, objectIdField: n, typeIdField: o, globalIdField: u, datesInUnknownTimezone: l, orderBy: c, subtypeField: d, refreshInterval: p } = t, y = t.fieldsIndex.toJSON(), m = y.fields, b = P(t), V = (Ae = t.timeInfo) == null ? void 0 : Ae.toJSON(), S = t.spatialReference.toJSON(), w = (Pe = t.types) == null ? void 0 : Pe.map((j) => j.toJSON()), v = ne(this.layer.parsedUrl);
1058
+ this.layer.dynamicDataSource && (v.query = { layer: JSON.stringify({ source: this.layer.dynamicDataSource }) });
1059
+ let F = this.layer.objectIdField;
1060
+ if (c != null && c.length) {
1061
+ const j = !c[0].valueExpression && c[0].field;
1062
+ j && (F = j);
1063
+ }
1064
+ const $ = (a == null ? void 0 : a.lastEditDate) == null && p > 0, Y = g("featurelayer-snapshot-enabled") && t.geometryType === "point" && (s == null ? void 0 : s.query.supportsPagination) && !(s != null && s.operations.supportsEditing) && !$, Se = Y && Te(e, t.fullExtent);
1065
+ return { type: "feature-service", source: v, isSourceHosted: ge(v.path), orderByFields: F, metadata: { typeIdField: o ?? void 0, types: w, timeReferenceUnknownClient: l, subtypeField: d, globalIdField: u, fields: m, fieldsIndex: y, geometryType: b, objectIdField: n, timeInfo: V, spatialReference: S, subtypes: (Me = this.layer.subtypes) == null ? void 0 : Me.map((j) => j.toJSON()) }, queryMetadata: { capabilities: s, effectiveCapabilities: r, lastEditDate: (Ne = a == null ? void 0 : a.lastEditDate) == null ? void 0 : Ne.getTime(), snapshotInfo: { supportsSnapshotMinThreshold: Y, supportsSnapshotMaxThreshold: Se, snapshotCountThresholds: { min: g("featurelayer-snapshot-point-min-threshold"), max: g("featurelayer-snapshot-point-max-threshold") } } } };
1066
+ }
1067
+ createSourceSchema(e, t, r) {
1068
+ const { definitionExpression: s, customParameters: a, gdbVersion: n, historicMoment: o, subtypeCode: u, subtypeField: l, timeExtent: c, apiKey: d } = this.layer;
1069
+ return J(e, { definitionExpression: s, customParameters: a, gdbVersion: n, historicMoment: o, subtypeCode: u, subtypeField: l, timeExtent: c }, t, r, d);
1070
+ }
1071
+ createProcessorSchema(e, t, r) {
1072
+ const { fields: s, renderer: a, geometryType: n, labelingInfo: o, labelsVisible: u, orderBy: l, objectIdField: c } = this.layer, d = { fields: s.map((p) => p.toJSON()), renderer: a == null ? void 0 : a.clone(), featureReduction: R(this.layer, t), geometryType: n, labelingInfo: o, labelsVisible: u, objectIdField: c, orderBy: l ?? "default" };
1073
+ return D(e, t, d, r);
1074
+ }
1075
+ get hasRequiredSupport() {
1076
+ return L(this.layer.renderer);
1077
+ }
1078
+ hasFilters(e) {
1079
+ return K(this.layer, e);
1080
+ }
1081
+ addFilters(e, t) {
1082
+ return Ce(this.layer, e, t);
1083
+ }
1084
+ getUpdateHashProperties(e) {
1085
+ var y, m;
1086
+ const t = this.layer, { definitionExpression: r, renderer: s, gdbVersion: a, apiKey: n, subtypeCode: o } = t, u = this.layer.labelsVisible ? this.layer.labelingInfo : null, l = ((y = t.historicMoment) == null ? void 0 : y.getTime()) ?? void 0, c = JSON.stringify(t.customParameters), d = (m = R(t, e)) == null ? void 0 : m.toJSON(), p = JSON.stringify(t.orderBy);
1087
+ return { apiKey: n, customParameters: c, definitionExpression: r, featureReduction: d, floors: K(this.layer, e) ? e.floors : null, gdbVersion: a, historicMoment: l, labelingInfo: u, orderBy: p, renderer: s, subtypeCode: o };
1088
+ }
1089
+ };
1090
+ function Hi(i) {
1091
+ if (!("openPorts" in i))
1092
+ throw new C("source-not-supported");
1093
+ }
1094
+ class Ze {
1095
+ constructor(e) {
1096
+ this.layer = e;
1097
+ }
1098
+ getLabelingDeconflictionInfo(e) {
1099
+ const t = this.layer, r = X(t, e) ?? k(t);
1100
+ return [{ vvEvaluators: { 0: B(t.renderer) }, deconflictionEnabled: r }];
1101
+ }
1102
+ async createServiceOptions(e) {
1103
+ var c;
1104
+ const t = this.layer, r = N(t), { capabilities: s, objectIdField: a } = t, n = t.fieldsIndex.toJSON(), o = P(t), u = (c = t.timeInfo) == null ? void 0 : c.toJSON(), l = t.spatialReference.toJSON();
1105
+ return Hi(t.source), { type: "memory", source: await t.source.openPorts(), orderByFields: a, metadata: { fieldsIndex: n, geometryType: o, objectIdField: a, timeInfo: u, spatialReference: l, subtypes: null, subtypeField: null, globalIdField: null, typeIdField: null, types: null, timeReferenceUnknownClient: null }, queryMetadata: { capabilities: s, effectiveCapabilities: r, lastEditDate: null, snapshotInfo: null } };
1106
+ }
1107
+ createSourceSchema(e, t, r) {
1108
+ const { definitionExpression: s, timeExtent: a } = this.layer;
1109
+ return J(e, { definitionExpression: s, timeExtent: a, customParameters: null }, t, r, null);
1110
+ }
1111
+ createProcessorSchema(e, t, r) {
1112
+ const { fields: s, renderer: a, geometryType: n, labelingInfo: o, labelsVisible: u, orderBy: l, objectIdField: c } = this.layer, d = { fields: s.map((p) => p.toJSON()), renderer: a == null ? void 0 : a.clone(), featureReduction: R(this.layer, t), geometryType: n, labelingInfo: o, labelsVisible: u, objectIdField: c, orderBy: l ?? "default" };
1113
+ return D(e, t, d, r);
1114
+ }
1115
+ get hasRequiredSupport() {
1116
+ return L(this.layer.renderer);
1117
+ }
1118
+ getUpdateHashProperties(e) {
1119
+ var o;
1120
+ const t = this.layer, { definitionExpression: r, renderer: s } = t, a = this.layer.labelsVisible ? this.layer.labelingInfo : null, n = (o = R(t, e)) == null ? void 0 : o.toJSON();
1121
+ return { orderBy: JSON.stringify(t.orderBy), definitionExpression: r, renderer: s, labelingInfo: a, featureReduction: n };
1122
+ }
1123
+ }
1124
+ let Qi = class {
1125
+ constructor(e) {
1126
+ this.layer = e;
1127
+ }
1128
+ getLabelingDeconflictionInfo(e) {
1129
+ const t = this.layer, r = X(t, e) ?? k(t);
1130
+ return [{ vvEvaluators: { 0: B(t.renderer) }, deconflictionEnabled: r }];
1131
+ }
1132
+ async createServiceOptions(e) {
1133
+ const t = this.layer, r = N(t), { capabilities: s, objectIdField: a } = t, n = t.fieldsIndex.toJSON(), o = P(t), u = t.spatialReference.toJSON();
1134
+ return { type: "memory", source: await t.source.openPorts(), orderByFields: a, metadata: { fieldsIndex: n, geometryType: o, objectIdField: a, spatialReference: u, globalIdField: null, subtypeField: null, subtypes: null, timeInfo: null, timeReferenceUnknownClient: null, typeIdField: null, types: null }, queryMetadata: { capabilities: s, effectiveCapabilities: r, lastEditDate: null, snapshotInfo: null } };
1135
+ }
1136
+ createSourceSchema(e, t, r) {
1137
+ const { definitionExpression: s } = this.layer;
1138
+ return J(e, { definitionExpression: s, customParameters: null }, t, r, null);
1139
+ }
1140
+ createProcessorSchema(e, t, r) {
1141
+ const { fields: s, renderer: a, geometryType: n, labelingInfo: o, labelsVisible: u, objectIdField: l } = this.layer, c = { fields: s.map((d) => d.toJSON()), renderer: a == null ? void 0 : a.clone(), featureReduction: R(this.layer, t), geometryType: n, labelingInfo: o, labelsVisible: u, objectIdField: l, orderBy: "default" };
1142
+ return D(e, t, c, r);
1143
+ }
1144
+ get hasRequiredSupport() {
1145
+ return L(this.layer.renderer);
1146
+ }
1147
+ getUpdateHashProperties(e) {
1148
+ var o;
1149
+ const t = this.layer, { definitionExpression: r, renderer: s } = t, a = this.layer.labelsVisible ? this.layer.labelingInfo : null, n = (o = R(t, e)) == null ? void 0 : o.toJSON();
1150
+ return { definitionExpression: r, renderer: s, labelingInfo: a, featureReduction: n };
1151
+ }
1152
+ }, Gi = class {
1153
+ constructor(e) {
1154
+ this.layer = e;
1155
+ }
1156
+ getLabelingDeconflictionInfo(e) {
1157
+ const t = this.layer, r = X(t, e) ?? k(t);
1158
+ return [{ vvEvaluators: { 0: B(t.renderer) }, deconflictionEnabled: r }];
1159
+ }
1160
+ async createServiceOptions(e) {
1161
+ var y;
1162
+ const t = this.layer, r = N(t), { capabilities: s, objectIdField: a } = t, n = t.fieldsIndex.toJSON(), o = P(t), u = (y = t.timeInfo) == null ? void 0 : y.toJSON(), l = t.spatialReference.toJSON(), c = t.source.getSource(), d = this.layer.objectIdField, p = ne(s);
1163
+ return p.query.maxRecordCount = c.maxRecordCount, { type: "ogc", source: c, orderByFields: d, metadata: { fieldsIndex: n, geometryType: o, objectIdField: a, timeInfo: u, spatialReference: l, globalIdField: null, subtypeField: null, subtypes: null, timeReferenceUnknownClient: null, typeIdField: null, types: null }, queryMetadata: { capabilities: p, effectiveCapabilities: r, lastEditDate: null, snapshotInfo: null } };
1164
+ }
1165
+ createSourceSchema(e, t, r) {
1166
+ const { customParameters: s, timeExtent: a, apiKey: n } = this.layer;
1167
+ return J(e, { customParameters: s, timeExtent: a }, t, r, n);
1168
+ }
1169
+ createProcessorSchema(e, t, r) {
1170
+ const { fields: s, renderer: a, geometryType: n, labelingInfo: o, labelsVisible: u, orderBy: l, objectIdField: c } = this.layer, d = { fields: s.map((p) => p.toJSON()), renderer: a == null ? void 0 : a.clone(), featureReduction: R(this.layer, t), geometryType: n, labelingInfo: o, labelsVisible: u, objectIdField: c, orderBy: l ?? "default" };
1171
+ return D(e, t, d, r);
1172
+ }
1173
+ get hasRequiredSupport() {
1174
+ return L(this.layer.renderer);
1175
+ }
1176
+ getUpdateHashProperties(e) {
1177
+ var u;
1178
+ const t = this.layer, { renderer: r, apiKey: s } = t, a = this.layer.labelsVisible ? this.layer.labelingInfo : null, n = JSON.stringify(t.customParameters), o = (u = R(t, e)) == null ? void 0 : u.toJSON();
1179
+ return { apiKey: s, customParameters: n, featureReduction: o, labelingInfo: a, orderBy: JSON.stringify(t.orderBy), renderer: r };
1180
+ }
1181
+ }, Ki = class {
1182
+ constructor(e) {
1183
+ this.layer = e;
1184
+ }
1185
+ getLabelingDeconflictionInfo(e) {
1186
+ const t = this.layer, r = X(t, e) ?? k(t);
1187
+ return [{ vvEvaluators: { 0: B(t.renderer) }, deconflictionEnabled: r }];
1188
+ }
1189
+ async createServiceOptions(e) {
1190
+ var v;
1191
+ const t = this.layer, r = N(t), { capabilities: s, objectIdField: a, globalIdField: n, orderBy: o, refreshInterval: u } = t, l = t.fieldsIndex.toJSON(), c = l.fields, d = P(t), p = (v = t.timeInfo) == null ? void 0 : v.toJSON(), y = t.spatialReference.toJSON(), m = ne(this.layer.parsedUrl);
1192
+ let b = this.layer.objectIdField;
1193
+ if (o != null && o.length) {
1194
+ const F = !o[0].valueExpression && o[0].field;
1195
+ F && (b = F);
1196
+ }
1197
+ const V = u > 0, S = g("featurelayer-snapshot-enabled") && t.geometryType === "point" && (s == null ? void 0 : s.query.supportsPagination) && !(s != null && s.operations.supportsEditing) && !V, w = S && Te(e, t.fullExtent);
1198
+ return { type: "feature-service", source: m, isSourceHosted: ge(m.path), orderByFields: b, metadata: { globalIdField: n, fields: c, fieldsIndex: l, geometryType: d, objectIdField: a, timeInfo: p, spatialReference: y, timeReferenceUnknownClient: !1, subtypeField: null, subtypes: null, typeIdField: null, types: null }, queryMetadata: { capabilities: s, effectiveCapabilities: r, lastEditDate: null, snapshotInfo: { supportsSnapshotMinThreshold: S, supportsSnapshotMaxThreshold: w, snapshotCountThresholds: { min: g("featurelayer-snapshot-point-min-threshold"), max: g("featurelayer-snapshot-point-max-threshold") } } } };
1199
+ }
1200
+ createSourceSchema(e, t, r) {
1201
+ const { definitionExpression: s, customParameters: a, timeExtent: n } = this.layer;
1202
+ return J(e, { definitionExpression: s, customParameters: a, timeExtent: n }, t, r, null);
1203
+ }
1204
+ createProcessorSchema(e, t, r) {
1205
+ const { fields: s, renderer: a, geometryType: n, labelingInfo: o, labelsVisible: u, orderBy: l, objectIdField: c } = this.layer, d = { fields: s.map((p) => p.toJSON()), renderer: a == null ? void 0 : a.clone(), featureReduction: R(this.layer, t), geometryType: n, labelingInfo: o, labelsVisible: u, objectIdField: c, orderBy: l ?? "default" };
1206
+ return D(e, t, d, r);
1207
+ }
1208
+ get hasRequiredSupport() {
1209
+ return L(this.layer.renderer);
1210
+ }
1211
+ hasFilters(e) {
1212
+ return K(this.layer, e);
1213
+ }
1214
+ addFilters(e, t) {
1215
+ return Ce(this.layer, e, t);
1216
+ }
1217
+ getUpdateHashProperties(e) {
1218
+ var u;
1219
+ const t = this.layer, { definitionExpression: r, renderer: s } = t, a = this.layer.labelsVisible ? this.layer.labelingInfo : null, n = JSON.stringify(t.customParameters), o = (u = R(t, e)) == null ? void 0 : u.toJSON();
1220
+ return { orderBy: JSON.stringify(t.orderBy), definitionExpression: r, renderer: s, labelingInfo: a, featureReduction: o, customParameters: n, floors: K(this.layer, e) ? e.floors : null };
1221
+ }
1222
+ };
1223
+ class Wi {
1224
+ constructor(e) {
1225
+ this.layer = e;
1226
+ }
1227
+ getLabelingDeconflictionInfo(e) {
1228
+ const t = this.layer, r = X(t, e) ?? k(t);
1229
+ return [{ vvEvaluators: { 0: B(t.renderer) }, deconflictionEnabled: r }];
1230
+ }
1231
+ async createServiceOptions(e) {
1232
+ var o;
1233
+ const t = this.layer, { objectIdField: r } = t, s = P(t), a = ((o = t.timeInfo) == null ? void 0 : o.toJSON()) || null, n = t.spatialReference ? t.spatialReference.toJSON() : null;
1234
+ return { source: this.layer.parsedUrl, metadata: { fieldsIndex: this.layer.fieldsIndex.toJSON(), geometryType: s, objectIdField: r, timeInfo: a, timeReferenceUnknownClient: null, spatialReference: n, subtypeField: null, subtypes: null, globalIdField: null, typeIdField: null, types: null } };
1235
+ }
1236
+ createSourceSchema(e, t, r) {
1237
+ const { definitionExpression: s, geometryDefinition: a, customParameters: n } = this.layer;
1238
+ return { type: "stream", service: e, tileInfoJSON: t.tileInfoJSON, mutable: { sourceRefreshVersion: r, availableFields: t.availableFields, dataFilter: { geometryDefinition: a == null ? void 0 : a.toJSON(), definitionExpression: s, outSpatialReference: t.outSpatialReference.toJSON(), customParameters: n ?? null, maxReconnectionAttempts: this.layer.maxReconnectionAttempts, maxReconnectionInterval: this.layer.maxReconnectionInterval, purgeOptions: this.layer.purgeOptions.toJSON() } } };
1239
+ }
1240
+ createProcessorSchema(e, t, r) {
1241
+ const { fields: s, renderer: a, geometryType: n, labelingInfo: o, labelsVisible: u, objectIdField: l } = this.layer, c = { fields: s.map((d) => d.toJSON()), renderer: a == null ? void 0 : a.clone(), featureReduction: R(this.layer, t), geometryType: n, labelingInfo: o, labelsVisible: u, objectIdField: l, orderBy: "default" };
1242
+ return D(e, t, c, r);
1243
+ }
1244
+ get hasRequiredSupport() {
1245
+ return L(this.layer.renderer);
1246
+ }
1247
+ getUpdateHashProperties(e) {
1248
+ var u;
1249
+ const t = this.layer, { definitionExpression: r, renderer: s } = t, a = this.layer.labelsVisible ? this.layer.labelingInfo : null, n = JSON.stringify(t.customParameters), o = (u = R(t, e)) == null ? void 0 : u.toJSON();
1250
+ return { definitionExpression: r, renderer: s, labelingInfo: a, featureReduction: o, customParameters: n, streamFilter: `${JSON.stringify(t.geometryDefinition)}${t.definitionExpression}` };
1251
+ }
1252
+ }
1253
+ async function Zi(i, { subtypeField: e, sublayers: t }) {
1254
+ const r = await Promise.all(t.map(({ renderer: s }) => se(i, s)));
1255
+ return { type: "subtype", subtypeField: e, renderers: t.reduce((s, { subtypeCode: a }, n) => ({ ...s, [a]: r[n] }), {}) };
1256
+ }
1257
+ function Xi(i, e) {
1258
+ const t = mt();
1259
+ return { type: "subtype", filters: i.filters, capabilities: { maxTextureSize: t.maxTextureSize }, subtypeField: e.subtypeField, target: "feature", bindings: e.sublayers.reduce((r, { renderer: s, subtypeCode: a }) => ({ ...r, [a]: Qt(s) }), {}) };
1260
+ }
1261
+ async function Yi(i, { subtypeField: e, sublayers: t }) {
1262
+ const r = await Promise.all(t.map((s) => {
1263
+ const a = z(s.renderer), n = { ...s, geometryType: s.geometryType ?? null };
1264
+ return re(i, n, a);
1265
+ }));
1266
+ return { type: "subtype", subtypeField: e, renderers: t.reduce((s, { subtypeCode: a }, n) => ({ ...s, [a]: r[n] }), {}) };
1267
+ }
1268
+ async function er(i, e, t, r) {
1269
+ return { storage: Xi(e, t), mesh: { displayRefreshVersion: r, strategy: { type: "feature" }, factory: { symbology: await Zi(i, t), labels: await Yi(i, t) }, sortKey: null, timeZone: e.timeZone } };
1270
+ }
1271
+ class tr {
1272
+ constructor(e) {
1273
+ this.layer = e;
1274
+ }
1275
+ getLabelingDeconflictionInfo(e) {
1276
+ return [{ vvEvaluators: {}, deconflictionEnabled: this.layer.sublayers.every((t) => k(t)) }];
1277
+ }
1278
+ async createServiceOptions(e) {
1279
+ var F, $, Y;
1280
+ const t = this.layer, r = N(t), { capabilities: s, datesInUnknownTimezone: a, editingInfo: n, globalIdField: o, objectIdField: u, refreshInterval: l, subtypeField: c } = t, d = t.fieldsIndex.toJSON(), p = P(t), y = (F = t.timeInfo) == null ? void 0 : F.toJSON(), m = t.spatialReference.toJSON(), b = ne(this.layer.parsedUrl), V = u, S = (n == null ? void 0 : n.lastEditDate) == null && l > 0, w = g("featurelayer-snapshot-enabled") && t.geometryType === "point" && (s == null ? void 0 : s.query.supportsPagination) && !(s != null && s.operations.supportsEditing) && !S, v = w && Te(e, t.fullExtent);
1281
+ return { type: "feature-service", source: b, isSourceHosted: ge(b.path), orderByFields: V, metadata: { timeReferenceUnknownClient: a, subtypeField: c, globalIdField: o, fieldsIndex: d, geometryType: p, objectIdField: u, timeInfo: y, spatialReference: m, subtypes: ($ = this.layer.subtypes) == null ? void 0 : $.map((Se) => Se.toJSON()), typeIdField: null, types: null }, queryMetadata: { capabilities: s, effectiveCapabilities: r, lastEditDate: (Y = n == null ? void 0 : n.lastEditDate) == null ? void 0 : Y.getTime(), snapshotInfo: { supportsSnapshotMinThreshold: w, supportsSnapshotMaxThreshold: v, snapshotCountThresholds: { min: g("featurelayer-snapshot-point-min-threshold"), max: g("featurelayer-snapshot-point-max-threshold") } } } };
1282
+ }
1283
+ createSourceSchema(e, t, r) {
1284
+ const { definitionExpression: s, customParameters: a, gdbVersion: n, historicMoment: o, subtypeField: u, timeExtent: l, apiKey: c } = this.layer, d = this.layer.sublayers.map((m) => m.subtypeCode).join(","), p = this.layer.sublayers.length ? `${this.layer.subtypeField} IN (${d})` : "1=2", y = { definitionExpression: fe(s, p), customParameters: a, gdbVersion: n, historicMoment: o, subtypeField: u, timeExtent: l };
1285
+ return J(e, y, t, r, c);
1286
+ }
1287
+ createProcessorSchema(e, t, r) {
1288
+ const s = { subtypeField: this.layer.subtypeField, sublayers: Array.from(this.layer.sublayers, (a) => ({ featureReduction: null, geometryType: this.layer.geometryType, labelingInfo: a.labelingInfo, labelsVisible: a.labelsVisible, renderer: a.renderer, subtypeCode: a.subtypeCode, orderBy: null })) };
1289
+ return er(e, t, s, r);
1290
+ }
1291
+ hasFilters(e) {
1292
+ return K(this.layer, e) || ir(this.layer, e);
1293
+ }
1294
+ addFilters(e, t) {
1295
+ e = Ce(this.layer, e, t);
1296
+ const r = this.layer.sublayers.filter((a) => !nt(a, t)).map((a) => a.subtypeCode);
1297
+ if (!r.length)
1298
+ return e;
1299
+ e ?? (e = new te());
1300
+ const s = `NOT ${this.layer.subtypeField} IN (${r.join(",")})`;
1301
+ return e.where = fe(e.where, s), e;
1302
+ }
1303
+ get hasRequiredSupport() {
1304
+ return !0;
1305
+ }
1306
+ getUpdateHashProperties(e) {
1307
+ var l;
1308
+ const t = this.layer, { definitionExpression: r, gdbVersion: s, apiKey: a } = t, n = ((l = t.historicMoment) == null ? void 0 : l.getTime()) ?? void 0, o = JSON.stringify(t.customParameters), u = K(this.layer, e) ? e.floors : null;
1309
+ return { gdbVersion: s, definitionExpression: r, historicMoment: n, customParameters: o, apiKey: a, sublayerHash: "sublayers" in this.layer && this.layer.sublayers.items.reduce((c, d) => c + `${d.visible ? 1 : 0}.${JSON.stringify(d.renderer)}.${d.labelsVisible}
1310
+ .${JSON.stringify(d.labelingInfo)}`, ""), floors: u };
1311
+ }
1312
+ setGraphicOrigin(e) {
1313
+ const t = this.layer.fieldsIndex.get(this.layer.subtypeField), r = e.attributes[t.name], s = this.layer.sublayers.find((a) => a.subtypeCode === r);
1314
+ e.layer = e.sourceLayer = s;
1315
+ }
1316
+ }
1317
+ function ir(i, e) {
1318
+ return i.sublayers.some((t) => !nt(t, e));
1319
+ }
1320
+ function nt(i, e) {
1321
+ return i.visible && (i.minScale === 0 || ke(e.scale, i.minScale) || e.scale < i.minScale) && (i.maxScale === 0 || ke(e.scale, i.maxScale) || e.scale > i.maxScale);
1322
+ }
1323
+ async function _(i, e) {
1324
+ try {
1325
+ return await i;
1326
+ } catch (t) {
1327
+ if (t.name !== "no-queryEngine")
1328
+ throw t;
1329
+ return e;
1330
+ }
1331
+ }
1332
+ function Q(i, e) {
1333
+ const t = /* @__PURE__ */ new Set();
1334
+ for (const r of i instanceof Set ? i.values() : i.keys())
1335
+ e.has(r) || t.add(r);
1336
+ return t;
1337
+ }
1338
+ class rr {
1339
+ constructor(e) {
1340
+ this.version = e;
1341
+ }
1342
+ }
1343
+ class sr {
1344
+ constructor(e) {
1345
+ this._subscriptions = /* @__PURE__ */ new Map(), this._visible = /* @__PURE__ */ new Set(), this._paused = /* @__PURE__ */ new Set(), this._version = 0, this._config = e;
1346
+ }
1347
+ destroy() {
1348
+ }
1349
+ get _coverageSet() {
1350
+ const e = this._coverage ? Array.from(this._coverage.keys()).map((t) => t.id) : [];
1351
+ return new Set(e);
1352
+ }
1353
+ suspend() {
1354
+ this._suspendedOverage = this._coverage, this._coverage = null, this._updateSubscriptions();
1355
+ }
1356
+ resume() {
1357
+ this._coverage == null && (this._coverage = this._suspendedOverage, this._suspendedOverage = null, this._updateSubscriptions());
1358
+ }
1359
+ update(e) {
1360
+ return this._version = this._version + 1 % Number.MAX_SAFE_INTEGER, this._updateCoverage(e), this._updateSubscriptions(), new Set(this._visible);
1361
+ }
1362
+ _updateCoverage(e) {
1363
+ this._coverage = this._config.tileInfoView.getTileCoverage(e.state, 0, !0, "closest");
1364
+ }
1365
+ _updateSubscriptions() {
1366
+ const e = this._coverageSet, t = this._updateVisibility(), r = Q(t, e), s = Q(this._subscriptions, t), a = Q(e, this._subscriptions), n = Q(s, e), o = Q(r, n), u = Q(o, this._paused);
1367
+ this._visible = t;
1368
+ for (const l of a.values())
1369
+ this._subscriptions.set(l, new rr(this._version));
1370
+ for (const l of u.values())
1371
+ this._paused.add(l);
1372
+ for (const l of n.values())
1373
+ this._subscriptions.delete(l), this._paused.delete(l);
1374
+ (a.size || n.size || u.size) && this._sendUpdateSubscriptions(a, n, u);
1375
+ }
1376
+ _sendUpdateSubscriptions(e, t, r) {
1377
+ const s = Array.from(e.values()).map((a) => ({ tileId: a, version: this._subscriptions.get(a).version }));
1378
+ this._config.updateSubscriptions({ subscribe: s, unsubscribe: Array.from(t.values()), pause: Array.from(r.values()), tileInfoJSON: this._config.tileInfoView.tileInfo.toJSON() });
1379
+ }
1380
+ _updateVisibility() {
1381
+ const e = /* @__PURE__ */ new Set();
1382
+ if (!this._coverage)
1383
+ return e;
1384
+ for (const t of this._coverage.keys()) {
1385
+ if (this._config.isDone(t)) {
1386
+ e.add(t.id);
1387
+ continue;
1388
+ }
1389
+ this._addVisibleParent(e, t) || this._addVisibleChildren(e, t) || e.add(t.id);
1390
+ }
1391
+ return e;
1392
+ }
1393
+ _addVisibleParent(e, t) {
1394
+ let r = !1;
1395
+ for (const s of this._visible.values())
1396
+ new xe(s).containsChild(t) && (e.add(s), r = !0);
1397
+ return r;
1398
+ }
1399
+ _addVisibleChildren(e, t) {
1400
+ let r = !1;
1401
+ for (const s of this._visible.values()) {
1402
+ const a = new xe(s);
1403
+ t.containsChild(a) && (e.add(s), r = !0);
1404
+ }
1405
+ return r;
1406
+ }
1407
+ }
1408
+ const ar = (i) => {
1409
+ let e = class extends i {
1410
+ constructor(...t) {
1411
+ super(...t), this._updatingRequiredFieldsPromise = null, this.dataUpdating = !1, this.filter = null, this.timeExtent = null, this.layer = null, this.requiredFields = [], this.view = null;
1412
+ }
1413
+ initialize() {
1414
+ this.addHandles([Ee(() => {
1415
+ var r;
1416
+ const t = this.layer;
1417
+ return [t && "elevationInfo" in t ? (r = t.elevationInfo) == null ? void 0 : r.featureExpressionInfo : null, t && "displayField" in t ? t.displayField : null, t && "timeInfo" in t && t.timeInfo, t && "renderer" in t && t.renderer, t && "labelingInfo" in t && t.labelingInfo, t && "floorInfo" in t && t.floorInfo, this.filter, this.featureEffect, this.timeExtent];
1418
+ }, () => this._handleRequiredFieldsChange(), gt), qe(() => {
1419
+ var t;
1420
+ return (t = this.view) == null ? void 0 : t.floors;
1421
+ }, "change", () => this._handleRequiredFieldsChange()), qe(() => {
1422
+ const t = this.layer;
1423
+ return t && "sublayers" in t ? t.sublayers : null;
1424
+ }, "change", () => this._handleRequiredFieldsChange())]);
1425
+ }
1426
+ get availableFields() {
1427
+ if (!this.layer)
1428
+ return [];
1429
+ const { layer: t, layer: { fieldsIndex: r }, requiredFields: s } = this;
1430
+ return "outFields" in t && t.outFields ? Ue(r, [...Le(r, t.outFields), ...s]) : Ue(r, s);
1431
+ }
1432
+ get featureEffect() {
1433
+ return this.layer && "featureEffect" in this.layer ? this.layer.featureEffect : null;
1434
+ }
1435
+ set featureEffect(t) {
1436
+ this._override("featureEffect", t);
1437
+ }
1438
+ get maximumNumberOfFeatures() {
1439
+ return 0;
1440
+ }
1441
+ set maximumNumberOfFeatures(t) {
1442
+ q.getLogger(this).error("#maximumNumberOfFeatures=", "Setting maximum number of features is not supported");
1443
+ }
1444
+ get maximumNumberOfFeaturesExceeded() {
1445
+ return !1;
1446
+ }
1447
+ highlight(t) {
1448
+ throw new Error("missing implementation");
1449
+ }
1450
+ createQuery() {
1451
+ const t = { outFields: ["*"], returnGeometry: !0, outSpatialReference: this.view.spatialReference }, r = this.filter != null ? this.filter.createQuery(t) : new ye(t);
1452
+ if ("floorInfo" in this.layer && this.layer.floorInfo) {
1453
+ const s = We(this);
1454
+ s != null && (r.where = r.where ? `(${r.where}) AND (${s})` : s);
1455
+ }
1456
+ return this.timeExtent != null && (r.timeExtent = r.timeExtent != null ? r.timeExtent.intersection(this.timeExtent) : this.timeExtent.clone()), r;
1457
+ }
1458
+ createAggregateQuery() {
1459
+ const t = { outFields: ["*"], returnGeometry: !0, outSpatialReference: this.view.spatialReference };
1460
+ return new ye(t);
1461
+ }
1462
+ queryFeatures(t, r) {
1463
+ throw new Error("missing implementation");
1464
+ }
1465
+ queryObjectIds(t, r) {
1466
+ throw new Error("missing implementation");
1467
+ }
1468
+ queryFeatureCount(t, r) {
1469
+ throw new Error("missing implementation");
1470
+ }
1471
+ queryExtent(t, r) {
1472
+ throw new Error("missing implementation");
1473
+ }
1474
+ async fetchPopupFeaturesFromGraphics(t, r) {
1475
+ return this._validateFetchPopupFeatures(t, r), this._fetchPopupFeatures(t, r);
1476
+ }
1477
+ _loadArcadeModules(t) {
1478
+ var r;
1479
+ return (r = t.expressionInfos) != null && r.length || Array.isArray(t.content) && t.content.some((s) => s.type === "expression") ? bt() : Promise.resolve();
1480
+ }
1481
+ _handleRequiredFieldsChange() {
1482
+ const t = this._updateRequiredFields();
1483
+ this._set("_updatingRequiredFieldsPromise", t), t.then(() => {
1484
+ this._updatingRequiredFieldsPromise === t && this._set("_updatingRequiredFieldsPromise", null);
1485
+ });
1486
+ }
1487
+ async _updateRequiredFields() {
1488
+ if (!this.layer || !this.view)
1489
+ return;
1490
+ const t = this.view.type === "3d", { layer: r, layer: { fieldsIndex: s, objectIdField: a } } = this, n = "renderer" in r && r.renderer, o = "orderBy" in r && r.orderBy, u = "featureReduction" in r ? r.featureReduction : null, l = /* @__PURE__ */ new Set(), c = await Promise.allSettled([n ? n.collectRequiredFields(l, s) : null, Be(l, r), t && "elevationInfo" in r ? St(l, r) : null, this.filter != null ? Je(l, r, this.filter) : null, t || this.featureEffect == null ? null : Je(l, r, this.featureEffect.filter), !t && u ? vt(l, r, u) : null, !t && o ? _t(l, r, o) : null]);
1491
+ if ("timeInfo" in r && r.timeInfo && this.timeExtent && oe(l, r.fieldsIndex, [r.timeInfo.startField, r.timeInfo.endField]), "floorInfo" in r && r.floorInfo && oe(l, r.fieldsIndex, [r.floorInfo.floorField]), r.type === "feature" && t && r.infoFor3D != null && (r.globalIdField == null && q.getLogger(this).error("globalIdField missing on 3DObjectFeatureLayer"), oe(l, r.fieldsIndex, [r.globalIdField])), r.type === "subtype-group") {
1492
+ ve(l, s, r.subtypeField);
1493
+ const p = r.sublayers.map((y) => {
1494
+ var m;
1495
+ return Promise.all([(m = y.renderer) == null ? void 0 : m.collectRequiredFields(l, s), Be(l, y)]);
1496
+ });
1497
+ await Promise.allSettled(p);
1498
+ }
1499
+ r.type === "catalog-footprint" && oe(l, s, [r.parent.itemSourceField, r.parent.itemTypeField]);
1500
+ for (const p of c)
1501
+ p.status === "rejected" && q.getLogger(this).error(p.reason);
1502
+ ve(l, s, a), t && "displayField" in r && r.displayField && ve(l, s, r.displayField);
1503
+ const d = Array.from(l).sort();
1504
+ this._set("requiredFields", d);
1505
+ }
1506
+ _validateFetchPopupFeatures(t, r) {
1507
+ if (r != null)
1508
+ for (const s of t) {
1509
+ const a = s.origin && "layer" in s.origin ? s.origin.layer : s.layer;
1510
+ if ("popupEnabled" in a && !a.popupEnabled)
1511
+ throw new C("featurelayerview:fetchPopupFeatures", "Popups are disabled", { layer: a });
1512
+ if (s.isAggregate) {
1513
+ const n = "featureReduction" in a ? a.featureReduction : null;
1514
+ if (!(n && "popupTemplate" in n && n.popupEnabled && n.popupTemplate))
1515
+ throw new C("featurelayerview:fetchPopupFeatures", "Popups are disabled", { layer: a });
1516
+ } else if ("popupTemplate" in a && !Ve(a, r))
1517
+ throw new C("featurelayerview:fetchPopupFeatures", "Layer does not define a popup template", { layer: a });
1518
+ }
1519
+ }
1520
+ _popupFeatureHasRequiredFields(t, r) {
1521
+ return wt(r, t);
1522
+ }
1523
+ async _fetchPopupFeatures(t, r) {
1524
+ var o;
1525
+ const s = new Array(t.length), a = /* @__PURE__ */ new Map(), n = await this._createPopupQuery(t.map((u) => {
1526
+ var l;
1527
+ return ((l = u.origin) == null ? void 0 : l.layer) ?? u.layer;
1528
+ }), r);
1529
+ for (let u = 0; u < t.length; u++) {
1530
+ const l = t[u];
1531
+ if (l.isAggregate) {
1532
+ s[u] = l;
1533
+ continue;
1534
+ }
1535
+ const c = ((o = l.origin) == null ? void 0 : o.layer) ?? l.layer;
1536
+ if (!c || !("popupEnabled" in c))
1537
+ continue;
1538
+ const d = Le(this.layer.fieldsIndex, n.outFields), p = Ve(c, r);
1539
+ if (p == null)
1540
+ continue;
1541
+ const y = await this._loadArcadeModules(p);
1542
+ pe(r), y && y.arcadeUtils.hasGeometryOperations(p) || !this._popupFeatureHasRequiredFields(l, d) ? a.set(l.getObjectId(), { graphic: l, index: u }) : s[u] = l;
1543
+ }
1544
+ if (this.layer.type === "stream" || a.size === 0)
1545
+ return s.filter(Boolean);
1546
+ n.objectIds = Array.from(a.keys());
1547
+ try {
1548
+ const u = await this.layer.queryFeatures(n, r);
1549
+ for (const l of u.features) {
1550
+ const { graphic: { geometry: c, origin: d }, index: p } = a.get(l.getObjectId());
1551
+ l.geometry || (l.geometry = c), l.origin = d, s[p] = l;
1552
+ }
1553
+ } catch {
1554
+ }
1555
+ return s.filter(Boolean);
1556
+ }
1557
+ async _createPopupQuery(t, r) {
1558
+ const s = this.layer.createQuery(), a = /* @__PURE__ */ new Set();
1559
+ let n = !1;
1560
+ const o = t ?? [this.layer];
1561
+ for (const u of o) {
1562
+ if (!("popupEnabled" in u))
1563
+ continue;
1564
+ const l = Ve(u, r);
1565
+ if (l == null)
1566
+ continue;
1567
+ const c = await this._loadArcadeModules(l);
1568
+ pe(r);
1569
+ const d = c && c.arcadeUtils.hasGeometryOperations(l);
1570
+ n = !(this.layer.geometryType !== "point" && !d);
1571
+ const p = await Xt(this.layer, l);
1572
+ pe(r);
1573
+ for (const y of p)
1574
+ a.add(y);
1575
+ }
1576
+ if (s.returnGeometry = n, s.returnZ = n, s.returnM = n, s.outFields = Array.from(a), s.outSpatialReference = this.view.spatialReference, "floorInfo" in this.layer && this.layer.floorInfo) {
1577
+ const u = We(this);
1578
+ u != null && (s.where = s.where ? `(${s.where}) AND (${u})` : u);
1579
+ }
1580
+ return s;
1581
+ }
1582
+ canResume() {
1583
+ return !!super.canResume() && (this.timeExtent == null || !this.timeExtent.isEmpty);
1584
+ }
1585
+ getTest() {
1586
+ return { createPopupQuery: (t) => this._createPopupQuery(void 0, t) };
1587
+ }
1588
+ get test() {
1589
+ return this.getTest();
1590
+ }
1591
+ };
1592
+ return h([f()], e.prototype, "_updatingRequiredFieldsPromise", void 0), h([f({ readOnly: !0 })], e.prototype, "availableFields", null), h([f({ readOnly: !0 })], e.prototype, "dataUpdating", void 0), h([f({ type: Zt })], e.prototype, "featureEffect", null), h([f({ type: te })], e.prototype, "filter", void 0), h([f(Wt)], e.prototype, "timeExtent", void 0), h([f()], e.prototype, "layer", void 0), h([f({ type: Number })], e.prototype, "maximumNumberOfFeatures", null), h([f({ readOnly: !0, type: Boolean })], e.prototype, "maximumNumberOfFeaturesExceeded", null), h([f({ readOnly: !0 })], e.prototype, "requiredFields", void 0), h([f()], e.prototype, "suspended", void 0), h([f()], e.prototype, "view", void 0), e = h([W("esri.views.layers.FeatureLayerView")], e), e;
1593
+ };
1594
+ function nr(i, e) {
1595
+ const t = /* @__PURE__ */ new Set();
1596
+ return i && i.forEach((r) => t.add(r)), e && e.forEach((r) => t.add(r)), t.has("*") ? ["*"] : Array.from(t);
1597
+ }
1598
+ const lr = "esri.views.2d.layers.FeatureLayerView2D", Xe = 4294967294;
1599
+ let I = class extends ar(Yt(At(Pt))) {
1600
+ constructor() {
1601
+ super(...arguments), this._commandsQueue = new Gt({ process: (i) => {
1602
+ switch (i.type) {
1603
+ case "processed-edit":
1604
+ return this._doEdit(i);
1605
+ case "update":
1606
+ return this._doUpdate();
1607
+ }
1608
+ } }), this._visibilityOverrides = /* @__PURE__ */ new Set(), this._highlightCounter = new Kt(), this._updateHighlight = Vt(async () => {
1609
+ const i = [];
1610
+ for (const e of this._highlightCounter.ids()) {
1611
+ const t = this._highlightCounter.getHighestReason(e), r = Ct(t);
1612
+ i.push({ objectId: e, highlightFlags: r });
1613
+ }
1614
+ this._worker.pipeline.updateHighlight({ highlights: i });
1615
+ }), this._lastAvailableFields = [], this.eventLog = new T(), this._sourceRefreshVersion = 1, this._displayRefreshVersion = 1, this._pipelineUpdating = !1, this._fields = null, this.featureEffectView = new ei();
1616
+ }
1617
+ destroy() {
1618
+ var i;
1619
+ (i = this._worker) == null || i.destroy(), this._commandsQueue.destroy();
1620
+ }
1621
+ initialize() {
1622
+ this.addResolvingPromise(this._initProxy()), this.featureEffectView.featureEffect = this.featureEffect, this.featureEffectView.endTransitions();
1623
+ }
1624
+ async _initProxy() {
1625
+ var t;
1626
+ const i = this.layer;
1627
+ if ("isTable" in i && i.isTable)
1628
+ throw new C("featurelayerview:table-not-supported", "table feature layer can't be displayed", { layer: i });
1629
+ if (i.geometryType === "mesh")
1630
+ throw new C("featurelayerview:geometry-type-not-supported", `Geometry type of ${i.geometryType} is not supported`, { layer: i });
1631
+ if ((i.type === "feature" || i.type === "subtype-group") && ((t = N(i)) == null ? void 0 : t.operations.supportsQuery) === !1)
1632
+ throw new C("featurelayerview:query-not-supported", "layer view requires a layer with query capability", { layer: i });
1633
+ this._worker && this._worker.destroy();
1634
+ const e = this._createClientOptions();
1635
+ this._worker = await ni(e);
1636
+ }
1637
+ get hasAllFeatures() {
1638
+ return this.layer.visible && this.eventLog.hasAllFeatures;
1639
+ }
1640
+ get hasAllFeaturesInView() {
1641
+ return this.layer.visible && this.eventLog.hasAllFeaturesInView;
1642
+ }
1643
+ get hasFullGeometries() {
1644
+ return this.layer.visible && this.eventLog.hasFullGeometries;
1645
+ }
1646
+ get labelingCollisionInfos() {
1647
+ const i = this.layerAdapter.getLabelingDeconflictionInfo(this.view), e = this.layer.geometryType, t = !this.suspended;
1648
+ return i.map(({ vvEvaluators: r, deconflictionEnabled: s }) => ({ container: this.featureContainer, vvEvaluators: r, deconflictionEnabled: s, geometryType: e, visible: t }));
1649
+ }
1650
+ get layerAdapter() {
1651
+ switch (this.layer.type) {
1652
+ case "feature":
1653
+ return this.layer.source.type === "memory" ? new Ze(this.layer) : new ji(this.layer);
1654
+ case "geojson":
1655
+ case "csv":
1656
+ case "wfs":
1657
+ return new Ze(this.layer);
1658
+ case "subtype-group":
1659
+ return new tr(this.layer);
1660
+ case "ogc-feature":
1661
+ return new Gi(this.layer);
1662
+ case "stream":
1663
+ return new Wi(this.layer);
1664
+ case "oriented-imagery":
1665
+ return new Ki(this.layer);
1666
+ case "knowledge-graph-sublayer":
1667
+ return new Qi(this.layer);
1668
+ case "catalog-footprint":
1669
+ return new Ji(this.layer);
1670
+ default:
1671
+ It(this.layer);
1672
+ }
1673
+ return null;
1674
+ }
1675
+ get updateHash() {
1676
+ if (!this.layerAdapter)
1677
+ return null;
1678
+ const { availableFields: i, _displayRefreshVersion: e, timeExtent: t, clips: r, filter: s, featureEffect: a, _sourceRefreshVersion: n, view: { timeZone: o } } = this, u = JSON.stringify(r), l = a == null ? void 0 : a.toJSON(), c = s == null ? void 0 : s.toJSON();
1679
+ return JSON.stringify({ availableFields: i, clipsHash: u, displayRefreshVersion: e, effectHash: l, filterHash: c, sourceRefreshVersion: n, timeExtent: t, timeZone: o, ...this.layerAdapter.getUpdateHashProperties(this.view) });
1680
+ }
1681
+ getDisplayStatistics(i, e) {
1682
+ var t;
1683
+ return (t = this.featureContainer) == null ? void 0 : t.getDisplayStatistics(i, e);
1684
+ }
1685
+ async queryHeatmapStatistics(i) {
1686
+ return this._worker.pipeline.queryHeatmapStatistics(i);
1687
+ }
1688
+ highlight(i, e = "highlight") {
1689
+ let t;
1690
+ i instanceof Ie ? t = [i.getObjectId()] : typeof i == "number" || typeof i == "string" ? t = [i] : xt.isCollection(i) && i.length > 0 ? t = i.map((s) => s == null ? void 0 : s.getObjectId()).toArray() : Array.isArray(i) && i.length > 0 && (t = typeof i[0] == "number" || typeof i[0] == "string" ? i : i.map((s) => s == null ? void 0 : s.getObjectId()));
1691
+ const r = t == null ? void 0 : t.filter(Et);
1692
+ return r != null && r.length ? (this._addHighlight(r, e), De(() => this._removeHighlight(r, e))) : De();
1693
+ }
1694
+ getHighlightIds() {
1695
+ return Array.from(this._highlightCounter.ids());
1696
+ }
1697
+ hasHighlight() {
1698
+ return !this._highlightCounter.empty;
1699
+ }
1700
+ async hitTest(i, e) {
1701
+ const t = await this.featureContainer.hitTest(e);
1702
+ if (t.length === 0)
1703
+ return null;
1704
+ const { features: r, aggregates: s } = await this._worker.pipeline.getDisplayFeatures(t), a = this.featureContainer.getSortKeys(t), n = ({ displayId: o }, { displayId: u }) => a.has(o) && a.has(u) ? a.get(o) - a.get(u) : o - u;
1705
+ return r.sort(n).reverse(), s.sort(n).reverse(), [...s.map((o) => this._createGraphicHit(i, $e.fromJSON(o))), ...r.map((o) => this._createGraphicHit(i, Ie.fromJSON(o)))];
1706
+ }
1707
+ queryStatistics() {
1708
+ return _(this._worker.pipeline.queryStatistics(), { featureCount: 0, ringCount: 0, vertexCount: 0 });
1709
+ }
1710
+ querySummaryStatistics(i, e, t) {
1711
+ const r = { ...e, scale: this.view.scale }, s = this._worker.features.executeQueryForSummaryStatistics(this._cleanUpQuery(i), r, t);
1712
+ return _(s, {});
1713
+ }
1714
+ async queryAggregateSummaryStatistics(i, e, t) {
1715
+ const r = { ...e, scale: this.view.scale }, s = this._worker.aggregates.executeQueryForSummaryStatistics(this._cleanUpAggregateQuery(i), r, t);
1716
+ return _(s, {});
1717
+ }
1718
+ async queryUniqueValues(i, e, t) {
1719
+ const r = { ...e, scale: this.view.scale }, s = this._worker.features.executeQueryForUniqueValues(this._cleanUpQuery(i), r, t);
1720
+ return _(s, { uniqueValueInfos: [] });
1721
+ }
1722
+ async queryAggregateUniqueValues(i, e, t) {
1723
+ const r = { ...e, scale: this.view.scale }, s = this._worker.aggregates.executeQueryForUniqueValues(this._cleanUpAggregateQuery(i), r, t);
1724
+ return _(s, { uniqueValueInfos: [] });
1725
+ }
1726
+ async queryClassBreaks(i, e, t) {
1727
+ const r = { ...e, scale: this.view.scale }, s = this._worker.features.executeQueryForClassBreaks(this._cleanUpQuery(i), r, t);
1728
+ return _(s, { classBreakInfos: [] });
1729
+ }
1730
+ async queryAggregateClassBreaks(i, e, t) {
1731
+ const r = { ...e, scale: this.view.scale }, s = this._worker.aggregates.executeQueryForClassBreaks(this._cleanUpAggregateQuery(i), r, t);
1732
+ return _(s, { classBreakInfos: [] });
1733
+ }
1734
+ async queryHistogram(i, e, t) {
1735
+ const r = { ...e, scale: this.view.scale }, s = this._worker.features.executeQueryForHistogram(this._cleanUpQuery(i), r, t);
1736
+ return _(s, { bins: [], maxValue: null, minValue: null, normalizationTotal: null });
1737
+ }
1738
+ async queryAggregateHistogram(i, e, t) {
1739
+ const r = { ...e, scale: this.view.scale }, s = this._worker.aggregates.executeQueryForHistogram(this._cleanUpAggregateQuery(i), r, t);
1740
+ return _(s, { bins: [], maxValue: null, minValue: null, normalizationTotal: null });
1741
+ }
1742
+ queryFeatures(i, e) {
1743
+ return this.queryFeaturesJSON(i, e).then((t) => {
1744
+ const r = Fe.fromJSON(t);
1745
+ return r.features.forEach((s) => this._setLayersForFeature(s)), r;
1746
+ });
1747
+ }
1748
+ async queryVisibleFeatures(i, e) {
1749
+ const t = this._worker.pipeline.queryVisibleFeatures(this._cleanUpQuery(i), e), r = await _(t, { features: [] }), s = Fe.fromJSON(r);
1750
+ return s.features.forEach((a) => this._setLayersForFeature(a)), s;
1751
+ }
1752
+ async queryAggregates(i, e) {
1753
+ const t = this._worker.aggregates.executeQuery(this._cleanUpAggregateQuery(i), e), r = await _(t, { features: [] }), s = ti.fromJSON(r);
1754
+ return s.features.forEach((a) => this._setLayersForFeature(a)), s;
1755
+ }
1756
+ queryAggregateIds(i, e) {
1757
+ const t = this._worker.aggregates.executeQueryForIds(this._cleanUpAggregateQuery(i), e);
1758
+ return _(t, []);
1759
+ }
1760
+ queryAggregateCount(i, e) {
1761
+ const t = this._worker.aggregates.executeQueryForCount(this._cleanUpAggregateQuery(i), e);
1762
+ return _(t, 0);
1763
+ }
1764
+ queryAggregateJSON(i, e) {
1765
+ const t = this._worker.aggregates.executeQuery(this._cleanUpAggregateQuery(i), e);
1766
+ return _(t, { features: [] });
1767
+ }
1768
+ async queryFeaturesJSON(i, e) {
1769
+ const t = this._worker.features.executeQuery(this._cleanUpQuery(i), e);
1770
+ return _(t, { features: [] });
1771
+ }
1772
+ queryObjectIds(i, e) {
1773
+ const t = this._worker.features.executeQueryForIds(this._cleanUpQuery(i), e);
1774
+ return _(t, []);
1775
+ }
1776
+ queryFeatureCount(i, e) {
1777
+ const t = this._worker.features.executeQueryForCount(this._cleanUpQuery(i), e);
1778
+ return _(t, 0);
1779
+ }
1780
+ async queryExtent(i, e) {
1781
+ const t = this._worker.features.executeQueryForExtent(this._cleanUpQuery(i), e), r = await _(t, { count: 0, extent: null });
1782
+ return { count: r.count, extent: Ft.fromJSON(r.extent) };
1783
+ }
1784
+ async getSampleFeatures(i) {
1785
+ return this._worker.pipeline.getSampleFeatures(i);
1786
+ }
1787
+ setVisibility(i, e) {
1788
+ e ? this._visibilityOverrides.delete(i) : this._visibilityOverrides.add(i), this._update();
1789
+ }
1790
+ update(i) {
1791
+ if (!this._subscriptionManager)
1792
+ return;
1793
+ const e = this._subscriptionManager.update(i);
1794
+ this.featureContainer.setVisibleTiles(e);
1795
+ }
1796
+ attach() {
1797
+ g("esri-2d-update-debug") && console.debug("FeatureLayerView2D.attach"), this.featureContainer = new ai(this), this.container.addChild(this.featureContainer), this.view.timeline.record(`${this.layer.title} (FeatureLayer) Attach`), this._subscriptionManager = new sr({ tileInfoView: this.view.featuresTilingScheme, updateSubscriptions: (i) => {
1798
+ this.featureContainer.updateSubscriptions(i), this._worker.pipeline.updateSubscriptions(i);
1799
+ }, isDone: (i) => this.featureContainer.isDone(i) }), this.requestUpdate(), this.addAttachHandles([Ee(() => this.updateHash, () => this._update(), Rt), Ee(() => this.updateSuspended, (i) => {
1800
+ i || this._subscriptionManager.resume();
1801
+ })]), this.layer.type !== "stream" && this.layer.type !== "catalog-footprint" && this.addAttachHandles(this.layer.on("edits", (i) => this._edit(i)));
1802
+ }
1803
+ detach() {
1804
+ g("esri-2d-update-debug") && console.debug("FeatureLayerView2D.detach"), this._fields = null, this.featureContainer.destroy(), this._commandsQueue.clear(), this.container.removeAllChildren(), this._subscriptionManager = Ot(this._subscriptionManager), this._worker.pipeline.onDetach();
1805
+ }
1806
+ moveStart() {
1807
+ this.requestUpdate();
1808
+ }
1809
+ viewChange() {
1810
+ this.requestUpdate();
1811
+ }
1812
+ moveEnd() {
1813
+ this.requestUpdate();
1814
+ }
1815
+ isUpdating() {
1816
+ const i = "renderer" in this.layer && this.layer.renderer != null, e = this._commandsQueue.updateTracking.updating, t = this._updatingRequiredFieldsPromise != null, r = this.featureContainer.updatingHandles.updating, s = i && (e || t) || r || this._pipelineUpdating || this.dataUpdating;
1817
+ if (g("esri-2d-log-updating")) {
1818
+ console.log(`Updating FLV2D (${this.layer.id}): ${s}
1819
+ -> hasRenderer ${i}
1820
+ -> updatingRequiredFields ${t}
1821
+ -> hasPendingCommand ${e}
1822
+ -> dataUpdating ${this.dataUpdating}
1823
+ -> processing ${this._pipelineUpdating}
1824
+ -> updatingContainer ${r}
1825
+ `);
1826
+ for (const a of this.featureContainer.subscriptions())
1827
+ console.log(` -> Tile[${a.id}] Done: ${a.done}`);
1828
+ }
1829
+ return s;
1830
+ }
1831
+ _createClientOptions() {
1832
+ const i = this;
1833
+ return { get container() {
1834
+ return i.featureContainer;
1835
+ }, setUpdating: (e) => {
1836
+ this._set("_pipelineUpdating", e.pipeline), this._set("dataUpdating", e.data);
1837
+ }, emitEvent: (e) => {
1838
+ this.emit(e.name, e.event);
1839
+ }, get eventLog() {
1840
+ return i.eventLog;
1841
+ }, fetch: (e) => Promise.all(e.map((t) => i.view.stage.painter.textureManager.rasterizeItem(t))), fetchDictionary: (e) => Promise.all(e.map((t) => this._fetchDictionaryRequest(t))) };
1842
+ }
1843
+ async _fetchDictionaryRequest(i) {
1844
+ try {
1845
+ if (this.layer.type === "subtype-group")
1846
+ throw new Error("InternalError: SubtypeGroupLayer does not support dictionary renderer");
1847
+ const e = this.layer.renderer;
1848
+ if (!e || e.type !== "dictionary")
1849
+ throw new Error("InternalError: Expected layer to have a DictionaryRenderer");
1850
+ const t = this._lastSchema.processor.mesh.factory.symbology;
1851
+ if (t.type !== "dictionary")
1852
+ throw new Error("InternalError: Expected schema to be of type 'dictionary'");
1853
+ const r = { cimAnalyzer: this.view.stage.cimAnalyzer, cimResourceManager: this.view.stage.painter.textureManager.resourceManager, store: this.featureContainer.instanceStore, scaleExpression: t.scaleExpression };
1854
+ this._fields || (this._fields = this.layer.fields.map((n) => n.toJSON()));
1855
+ const s = t.visualVariableUniforms, a = await e.getSymbolAsync(i.feature, { fields: this._fields });
1856
+ return !a || !a.data ? { type: "dictionary-response", meshes: [] } : { type: "dictionary-response", meshes: await me(a.data, { uniforms: s, path: "renderer", schemaOptions: r }) };
1857
+ } catch {
1858
+ return { type: "dictionary-response", meshes: [] };
1859
+ }
1860
+ }
1861
+ _cleanUpQuery(i) {
1862
+ const e = ye.from(i) || this.createQuery();
1863
+ return e.outSpatialReference || (e.outSpatialReference = this.view.spatialReference), e.toJSON();
1864
+ }
1865
+ _cleanUpAggregateQuery(i) {
1866
+ const e = ye.from(i) || this.createAggregateQuery();
1867
+ e.outSpatialReference || (e.outSpatialReference = this.view.spatialReference);
1868
+ const t = e.objectIds ?? [];
1869
+ for (const r of e.aggregateIds ?? [])
1870
+ t.push(r);
1871
+ return e.objectIds = t, e.aggregateIds = [], e.toJSON();
1872
+ }
1873
+ async _update() {
1874
+ return this._commandsQueue.push({ type: "update" });
1875
+ }
1876
+ async _edit(i) {
1877
+ return this.updateSuspended ? void this._subscriptionManager.suspend() : this._validateEdit(i) ? this._commandsQueue.push({ type: "edit", edits: i }).catch($t) : void 0;
1878
+ }
1879
+ async doRefresh(i) {
1880
+ this.attached && (this.updateSuspended && i || (i ? this.incrementSourceRefreshVersion() : this.incrementDisplayRefreshVersion()));
1881
+ }
1882
+ incrementSourceRefreshVersion() {
1883
+ this._sourceRefreshVersion = (this._sourceRefreshVersion + 1) % Xe + 1;
1884
+ }
1885
+ incrementDisplayRefreshVersion() {
1886
+ this._displayRefreshVersion = (this._displayRefreshVersion + 1) % Xe + 1;
1887
+ }
1888
+ _validateEdit(i) {
1889
+ const e = "globalIdField" in this.layer && this.layer.globalIdField, t = i.deletedFeatures.some((s) => s.objectId === -1 || !s.objectId), r = e && this.availableFields.includes(e);
1890
+ return t && !r ? (q.getLogger(this).error(new C("mapview-apply-edits", `Editing the specified service requires the layer's globalIdField, ${e} to be included the layer's outFields for updates to be reflected on the map`)), null) : i;
1891
+ }
1892
+ async _doUpdate() {
1893
+ var i, e, t, r;
1894
+ "featureReduction" in this.layer && this.layer.featureReduction && this.layer.featureReduction !== this._lastFeatureReduction && (this.layer.featureReduction = (i = this.layer.featureReduction) == null ? void 0 : i.clone(), this._lastFeatureReduction = this.layer.featureReduction);
1895
+ try {
1896
+ if (await this._updateRequiredFields(), this.destroyed || !((e = this.layerAdapter) != null && e.hasRequiredSupport) || !this._subscriptionManager)
1897
+ return;
1898
+ const s = this.featureContainer.instanceStore;
1899
+ this.featureContainer.attributeView.lockTextureUploads(), s.updateStart();
1900
+ const a = this.featureEffect, n = { store: s, cimAnalyzer: this.view.stage.cimAnalyzer, cimResourceManager: this.view.stage.painter.textureManager.resourceManager, scaleExpression: void 0 }, o = await this.layerAdapter.createServiceOptions(this.view), u = this._createViewSchemaConfig(), l = { source: this.layerAdapter.createSourceSchema(o, u, this._sourceRefreshVersion), processor: await this.layerAdapter.createProcessorSchema(n, u, this._displayRefreshVersion) }, c = !!je((t = this._lastSchema) == null ? void 0 : t.source.mutable, l.source.mutable) || !!je((r = this._lastSchema) == null ? void 0 : r.processor, l.processor);
1901
+ if (!c)
1902
+ return this.featureContainer.requestRender(), this.featureContainer.attributeView.unlockTextureUploads(), s.updateEnd(), void (this.featureEffectView.featureEffect = a);
1903
+ this._lastSchema = l, this._fields = null;
1904
+ const d = Math.round(performance.now());
1905
+ g("esri-2d-update-debug") && console.debug(`Id[${this.layer.uid}] Version[${d}] FeatureLayerView2D._doUpdate`, { changes: c });
1906
+ let p = [];
1907
+ Array.isArray(o.source) && (p = o.source), await this._worker.pipeline.updateSchema(l, d, { transferList: p }), s.updateEnd(), this.featureEffectView.featureEffect = a, this.featureEffectView.endTransitions(), this.featureContainer.attributeView.unlockTextureUploads(), this.featureContainer.swapRenderState(), this.featureContainer.requestRender(), g("esri-2d-update-debug") && console.debug(`Version[${d}] FeatureLayerView2D.updateEnd`), this.requestUpdate();
1908
+ } catch (s) {
1909
+ g("esri-2d-update-debug") && console.error("Encountered an error during update", s);
1910
+ }
1911
+ }
1912
+ async _doEdit(i) {
1913
+ try {
1914
+ this.featureContainer.editStart(), await this._worker.pipeline.onEdits(i), this.featureContainer.editEnd();
1915
+ } catch (e) {
1916
+ _e(e);
1917
+ }
1918
+ }
1919
+ get hasFilter() {
1920
+ var e, t;
1921
+ const i = ((t = (e = this.layerAdapter).hasFilters) == null ? void 0 : t.call(e, this.view)) ?? !1;
1922
+ return this.filter != null || this.timeExtent != null || this._visibilityOverrides.size > 0 || i;
1923
+ }
1924
+ _getEffectiveAvailableFields(i) {
1925
+ const e = nr(this._lastAvailableFields, i);
1926
+ return this._lastAvailableFields = e, zt(this.layer.fieldsIndex, e);
1927
+ }
1928
+ _createViewSchemaConfig() {
1929
+ var e, t;
1930
+ const i = [or(this.view, this.layerAdapter, this.timeExtent, this._visibilityOverrides, this.filter), ((t = (e = this.featureEffect) == null ? void 0 : e.filter) == null ? void 0 : t.toJSON()) ?? null];
1931
+ return { availableFields: this._getEffectiveAvailableFields(this.availableFields), filters: i, outSpatialReference: this.view.spatialReference, tileInfoJSON: this.view.featuresTilingScheme.tileInfo.toJSON(), scale: this.view.scale, timeZone: this.view.timeZone };
1932
+ }
1933
+ _addHighlight(i, e) {
1934
+ this._highlightCounter.addReason(i, e), this._updateHighlight().catch((t) => {
1935
+ _e(t) || q.getLogger(this).error(t);
1936
+ });
1937
+ }
1938
+ _removeHighlight(i, e) {
1939
+ this._highlightCounter.deleteReason(i, e), this._updateHighlight().catch((t) => {
1940
+ _e(t) || q.getLogger(this).error(t);
1941
+ });
1942
+ }
1943
+ _setLayersForFeature(i) {
1944
+ i.layer = i.sourceLayer = this.layer, this.layerAdapter.setGraphicOrigin && this.layerAdapter.setGraphicOrigin(i);
1945
+ }
1946
+ _createGraphicHit(i, e) {
1947
+ return this._setLayersForFeature(e), e.geometry != null && (e.geometry.spatialReference = this.view.spatialReference), { type: "graphic", graphic: e, layer: this.layer, mapPoint: i };
1948
+ }
1949
+ };
1950
+ function or(i, e, t, r, s) {
1951
+ var u;
1952
+ s && (s = s.clone());
1953
+ const a = s != null ? s.timeExtent : null, n = t != null && a != null ? t.intersection(a) : t || a;
1954
+ n && (s ?? (s = new te()), s.timeExtent = n), s = ((u = e.addFilters) == null ? void 0 : u.call(e, s, i)) ?? s;
1955
+ let o = (s == null ? void 0 : s.toJSON()) ?? null;
1956
+ return r.size && (o ?? (o = new te().toJSON()), o.hiddenIds = Array.from(r)), o;
1957
+ }
1958
+ h([f()], I.prototype, "_worker", void 0), h([f()], I.prototype, "_commandsQueue", void 0), h([f()], I.prototype, "_sourceRefreshVersion", void 0), h([f()], I.prototype, "_displayRefreshVersion", void 0), h([f({ readOnly: !0 })], I.prototype, "_pipelineUpdating", void 0), h([f({ readOnly: !0 })], I.prototype, "hasAllFeatures", null), h([f({ readOnly: !0 })], I.prototype, "hasAllFeaturesInView", null), h([f({ readOnly: !0 })], I.prototype, "hasFullGeometries", null), h([f()], I.prototype, "featureEffectView", void 0), h([f()], I.prototype, "labelingCollisionInfos", null), h([f()], I.prototype, "layerAdapter", null), h([f()], I.prototype, "updateHash", null), h([f()], I.prototype, "updating", void 0), I = h([W(lr)], I);
1959
+ const ur = I, Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1960
+ __proto__: null,
1961
+ default: ur
1962
+ }, Symbol.toStringTag, { value: "Module" }));
1963
+ export {
1964
+ Zr as F,
1965
+ ur as X,
1966
+ _ as n
1967
+ };