@arcgis/core 4.23.0-next.20220123 → 4.23.0-next.20220128

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 (624) hide show
  1. package/Graphic.js +1 -1
  2. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/02fbc76dfdc20e628c61.js +1 -0
  5. package/assets/esri/core/workers/chunks/0453fad5cb819797b4f6.js +1 -0
  6. package/assets/esri/core/workers/chunks/0463ba46df855a92b9c0.js +1 -0
  7. package/assets/esri/core/workers/chunks/0cd0a6eef51fc5b9ea61.js +1 -0
  8. package/assets/esri/core/workers/chunks/{d1454155ee1b8a421cbb.js → 0d02c6ad1f4688bfa374.js} +1 -1
  9. package/assets/esri/core/workers/chunks/0d684f16f37d5dc385dd.js +1 -0
  10. package/assets/esri/core/workers/chunks/0e17691520d890d34efb.js +1 -0
  11. package/assets/esri/core/workers/chunks/16b6d0f8378582c051c3.js +1 -0
  12. package/assets/esri/core/workers/chunks/{0ce1dc14280d6f188468.js → 17de7a324dfa7f57ad5d.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{b313ab14a643273e7d09.js → 1877ab1b6a115dbba1c5.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{c36f84daa7736878418d.js → 197ec52641aed20029c6.js} +1 -1
  15. package/assets/esri/core/workers/chunks/1b2a961f776a0b57e57a.js +1 -0
  16. package/assets/esri/core/workers/chunks/1b3fd66577b19aa5f2b6.js +1 -0
  17. package/assets/esri/core/workers/chunks/1c733b7db092a2a88ef3.js +1 -0
  18. package/assets/esri/core/workers/chunks/1f8c6a179e39fd4c5e6f.js +1 -0
  19. package/assets/esri/core/workers/chunks/2076fcbae63f1bfb7143.js +1 -0
  20. package/assets/esri/core/workers/chunks/{9387db408f496e7dd003.js → 214910032945dd2d86b0.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{b2ae5fc4f787ea568b88.js → 2460f3b6ada6ae900dec.js} +1 -1
  22. package/assets/esri/core/workers/chunks/27474b007988855bea9d.js +1 -0
  23. package/assets/esri/core/workers/chunks/281b89dbf5574fc642ae.js +1 -0
  24. package/assets/esri/core/workers/chunks/{4d539878bfbd7c549e60.js → 2c8fe9bc988c3c5760a5.js} +1 -1
  25. package/assets/esri/core/workers/chunks/2e899ef5881b4ec6fa55.js +1 -0
  26. package/assets/esri/core/workers/chunks/34b59d7099904dcb28b5.js +1 -0
  27. package/assets/esri/core/workers/chunks/357033117dfe61eb81ea.js +1 -0
  28. package/assets/esri/core/workers/chunks/37c03cfc19086ce631c6.js +1 -0
  29. package/assets/esri/core/workers/chunks/391e96192d1ec4e55ce2.js +1 -0
  30. package/assets/esri/core/workers/chunks/3c673495e5f507c4a9e5.js +1 -0
  31. package/assets/esri/core/workers/chunks/422537fc3df707bb62c9.js +1 -0
  32. package/assets/esri/core/workers/chunks/44f0c3663b293afbd172.js +1 -0
  33. package/assets/esri/core/workers/chunks/483d5d8593d96d0f0b15.js +1 -0
  34. package/assets/esri/core/workers/chunks/{c959e0d1cf7dce0421b9.js → 48fa8aed6c24877b44c4.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{44b01d42d4ec72913229.js → 4954fd86b48cc68b737c.js} +1 -1
  36. package/assets/esri/core/workers/chunks/49a1a633bb0d93764aae.js +1 -0
  37. package/assets/esri/core/workers/chunks/4ba6de8aa7e2960bad49.js +1 -0
  38. package/assets/esri/core/workers/chunks/4be35af7d6babbfe9d84.js +1 -0
  39. package/assets/esri/core/workers/chunks/5457962a70bd3c557a75.js +1 -0
  40. package/assets/esri/core/workers/chunks/57856b4a9b8784a69844.js +1 -0
  41. package/assets/esri/core/workers/chunks/{b9c177524b3e7de1ffd1.js → 5790d171072b3c7d108f.js} +1 -1
  42. package/assets/esri/core/workers/chunks/57b349d1dbc0bed75b79.js +1 -0
  43. package/assets/esri/core/workers/chunks/5bcb3240b3c005e5fe72.js +1 -0
  44. package/assets/esri/core/workers/chunks/5d11b97b667921d67ae7.js +1 -0
  45. package/assets/esri/core/workers/chunks/5dbe555a5a662ff3d9ce.js +1 -0
  46. package/assets/esri/core/workers/chunks/5ec98f4ddac707d0fbd1.js +1 -0
  47. package/assets/esri/core/workers/chunks/64b7e8d812ea8fcf269e.js +1 -0
  48. package/assets/esri/core/workers/chunks/{4c9084a04948b6924749.js → 655b55ac0cd533d7e9d7.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{b0b036ad3ad3cd956747.js → 69fd99b7c76e9992ccf3.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{9cdaba126ac7fa5f33f0.js → 6cd5e4380d29b9a3c344.js} +1 -1
  51. package/assets/esri/core/workers/chunks/75d812955a473d0e8960.js +1 -0
  52. package/assets/esri/core/workers/chunks/7903a3e2e0faff0f86c0.js +1 -0
  53. package/assets/esri/core/workers/chunks/{cc146c57bbdac8029fd8.js → 7a5f5acfbd4ca1a5c1f3.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{64276aacaafa4c8a15bd.js → 7dcf52d3db3903c8eb9f.js} +1 -1
  55. package/assets/esri/core/workers/chunks/83d00afae4406ec78bc9.js +1 -0
  56. package/assets/esri/core/workers/chunks/{625d2663daa8e0cf64b0.js → 85b1f36790df95b17659.js} +1 -1
  57. package/assets/esri/core/workers/chunks/89820b200ee44e678af5.js +1 -0
  58. package/assets/esri/core/workers/chunks/918bb7a7d901544a7367.js +1 -0
  59. package/assets/esri/core/workers/chunks/{94b8dbf859df71858d1c.js → 929c9b7cdab7c4ca3d87.js} +1 -1
  60. package/assets/esri/core/workers/chunks/94515fb3ef38067eeadd.js +1 -0
  61. package/assets/esri/core/workers/chunks/949b2269457302ffc64b.js +1 -0
  62. package/assets/esri/core/workers/chunks/952980635afc7ec81804.js +1 -0
  63. package/assets/esri/core/workers/chunks/9876a1bae350795fab36.js +1 -0
  64. package/assets/esri/core/workers/chunks/99619fcb772807c74f3b.js +1 -0
  65. package/assets/esri/core/workers/chunks/{010a71c2aa1b7681e191.js → 9d11f84e6c893b9d0019.js} +1 -1
  66. package/assets/esri/core/workers/chunks/a1930e4f035bc9aa1ae5.js +1 -0
  67. package/assets/esri/core/workers/chunks/a8692bffb76444c34760.js +1 -0
  68. package/assets/esri/core/workers/chunks/aa04b90b82bf70caaae4.js +1 -0
  69. package/assets/esri/core/workers/chunks/aeaa1667c2d9f1b3366b.js +1 -0
  70. package/assets/esri/core/workers/chunks/b2d2de935487257c568b.js +1 -0
  71. package/assets/esri/core/workers/chunks/b3f5e91116112b0b612a.js +1 -0
  72. package/assets/esri/core/workers/chunks/b97953694f42bfec1b3c.js +1 -0
  73. package/assets/esri/core/workers/chunks/b9e9cb354822c6d995a4.js +1 -0
  74. package/assets/esri/core/workers/chunks/ba762bcfd74af0bb8218.js +1 -0
  75. package/assets/esri/core/workers/chunks/bac9fc90e6756e211160.js +1 -0
  76. package/assets/esri/core/workers/chunks/be588873c16770ceb9ef.js +1 -0
  77. package/assets/esri/core/workers/chunks/bf97a933ea3b220115e1.js +1 -0
  78. package/assets/esri/core/workers/chunks/bfedd6ebff817c9b31c0.js +1 -0
  79. package/assets/esri/core/workers/chunks/c093dff4592832ac0973.js +1 -0
  80. package/assets/esri/core/workers/chunks/c1135cb02ec46c491459.js +1 -0
  81. package/assets/esri/core/workers/chunks/c2253a9f29c1aabb2b75.js +1 -0
  82. package/assets/esri/core/workers/chunks/{d39b7983b68d6e5b404d.js → cdbc005eebec1503b99d.js} +1 -1
  83. package/assets/esri/core/workers/chunks/d04fca5d46cca02500b7.js +1 -0
  84. package/assets/esri/core/workers/chunks/d08efbc349dd9f999497.js +1 -0
  85. package/assets/esri/core/workers/chunks/d1fe53b597351dc58305.js +1 -0
  86. package/assets/esri/core/workers/chunks/{a8b13fb804bb775e4967.js → db3c729ce0c0b2690dc9.js} +1 -1
  87. package/assets/esri/core/workers/chunks/dd13772a5e2eccc6a2bc.js +1 -0
  88. package/assets/esri/core/workers/chunks/dedc333a61081772ca7b.js +1 -0
  89. package/assets/esri/core/workers/chunks/{a7b1b75643ed31489495.js → e0c8d61c7a85ce15499a.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{199670a3a564ebe3bd79.js → e218bde41ffbcc5194f5.js} +1 -1
  91. package/assets/esri/core/workers/chunks/e21b211913aefde47e30.js +1 -0
  92. package/assets/esri/core/workers/chunks/e287f49184d076af17e2.js +1 -0
  93. package/assets/esri/core/workers/chunks/{bde1d5b0a7717350986e.js → e4019b63a1fe74e2c842.js} +1 -1
  94. package/assets/esri/core/workers/chunks/e8e775758b79c5a084c8.js +1 -0
  95. package/assets/esri/core/workers/chunks/e93dfdede0532a89ffa5.js +1 -0
  96. package/assets/esri/core/workers/chunks/e9e5196b44b6923be1a3.js +1 -0
  97. package/assets/esri/core/workers/chunks/ea595b0df5050eda2a13.js +1 -0
  98. package/assets/esri/core/workers/chunks/eb82ff10cef2bde6e57f.js +1 -0
  99. package/assets/esri/core/workers/chunks/ebc6f4764b82d4104c65.js +1 -0
  100. package/assets/esri/core/workers/chunks/{1305ef8717da6e902a55.js → ec10151a2a95e95a0bb5.js} +1 -1
  101. package/assets/esri/core/workers/chunks/eccba071ced2d922bb85.js +1 -0
  102. package/assets/esri/core/workers/chunks/ee6e0db58dc64410e687.js +1 -0
  103. package/assets/esri/core/workers/chunks/f0a9f161805fc7a30fc5.js +1 -0
  104. package/assets/esri/core/workers/chunks/f2124f4d0f2b8a91f0ea.js +1 -0
  105. package/assets/esri/core/workers/chunks/ff6abdc72076f3994659.js +981 -0
  106. package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
  107. package/assets/esri/themes/base/_mixins.scss +4 -1
  108. package/assets/esri/themes/base/icons/style.scss +11 -2
  109. package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +13 -10
  110. package/assets/esri/themes/base/widgets/_CoordinateConversion.scss +4 -2
  111. package/assets/esri/themes/base/widgets/_Directions.scss +5 -3
  112. package/assets/esri/themes/base/widgets/_Editor.scss +5 -2
  113. package/assets/esri/themes/base/widgets/_ElevationProfile.scss +6 -4
  114. package/assets/esri/themes/base/widgets/_FeatureTable.scss +6 -0
  115. package/assets/esri/themes/base/widgets/_ItemList.scss +1 -1
  116. package/assets/esri/themes/base/widgets/_LayerList.scss +13 -9
  117. package/assets/esri/themes/base/widgets/_Popup.scss +4 -2
  118. package/assets/esri/themes/base/widgets/_Print.scss +24 -11
  119. package/assets/esri/themes/base/widgets/_Search.scss +4 -2
  120. package/assets/esri/themes/base/widgets/_TableList.scss +9 -7
  121. package/assets/esri/themes/base/widgets/_Weather.scss +12 -0
  122. package/assets/esri/themes/base/widgets/_Widget.scss +18 -9
  123. package/assets/esri/themes/dark/main.css +1 -1
  124. package/assets/esri/themes/dark-blue/main.css +1 -1
  125. package/assets/esri/themes/dark-green/main.css +1 -1
  126. package/assets/esri/themes/dark-purple/main.css +1 -1
  127. package/assets/esri/themes/dark-red/main.css +1 -1
  128. package/assets/esri/themes/light/main.css +1 -1
  129. package/assets/esri/themes/light/view.css +1 -1
  130. package/assets/esri/themes/light-blue/main.css +1 -1
  131. package/assets/esri/themes/light-green/main.css +1 -1
  132. package/assets/esri/themes/light-purple/main.css +1 -1
  133. package/assets/esri/themes/light-red/main.css +1 -1
  134. package/assets/esri/widgets/Weather/t9n/Weather.json +1 -1
  135. package/assets/esri/widgets/Weather/t9n/Weather_ar.json +1 -1
  136. package/assets/esri/widgets/Weather/t9n/Weather_bg.json +1 -1
  137. package/assets/esri/widgets/Weather/t9n/Weather_bs.json +1 -1
  138. package/assets/esri/widgets/Weather/t9n/Weather_ca.json +1 -1
  139. package/assets/esri/widgets/Weather/t9n/Weather_cs.json +1 -1
  140. package/assets/esri/widgets/Weather/t9n/Weather_da.json +1 -1
  141. package/assets/esri/widgets/Weather/t9n/Weather_de.json +1 -1
  142. package/assets/esri/widgets/Weather/t9n/Weather_el.json +1 -1
  143. package/assets/esri/widgets/Weather/t9n/Weather_en.json +1 -1
  144. package/assets/esri/widgets/Weather/t9n/Weather_es.json +1 -1
  145. package/assets/esri/widgets/Weather/t9n/Weather_et.json +1 -1
  146. package/assets/esri/widgets/Weather/t9n/Weather_fi.json +1 -1
  147. package/assets/esri/widgets/Weather/t9n/Weather_fr.json +1 -1
  148. package/assets/esri/widgets/Weather/t9n/Weather_he.json +1 -1
  149. package/assets/esri/widgets/Weather/t9n/Weather_hr.json +1 -1
  150. package/assets/esri/widgets/Weather/t9n/Weather_hu.json +1 -1
  151. package/assets/esri/widgets/Weather/t9n/Weather_id.json +1 -1
  152. package/assets/esri/widgets/Weather/t9n/Weather_it.json +1 -1
  153. package/assets/esri/widgets/Weather/t9n/Weather_ja.json +1 -1
  154. package/assets/esri/widgets/Weather/t9n/Weather_ko.json +1 -1
  155. package/assets/esri/widgets/Weather/t9n/Weather_lt.json +1 -1
  156. package/assets/esri/widgets/Weather/t9n/Weather_lv.json +1 -1
  157. package/assets/esri/widgets/Weather/t9n/Weather_nb.json +1 -1
  158. package/assets/esri/widgets/Weather/t9n/Weather_nl.json +1 -1
  159. package/assets/esri/widgets/Weather/t9n/Weather_pl.json +1 -1
  160. package/assets/esri/widgets/Weather/t9n/Weather_pt-BR.json +1 -1
  161. package/assets/esri/widgets/Weather/t9n/Weather_pt-PT.json +1 -1
  162. package/assets/esri/widgets/Weather/t9n/Weather_ro.json +1 -1
  163. package/assets/esri/widgets/Weather/t9n/Weather_ru.json +1 -1
  164. package/assets/esri/widgets/Weather/t9n/Weather_sk.json +1 -1
  165. package/assets/esri/widgets/Weather/t9n/Weather_sl.json +1 -1
  166. package/assets/esri/widgets/Weather/t9n/Weather_sr.json +1 -1
  167. package/assets/esri/widgets/Weather/t9n/Weather_sv.json +1 -1
  168. package/assets/esri/widgets/Weather/t9n/Weather_th.json +1 -1
  169. package/assets/esri/widgets/Weather/t9n/Weather_tr.json +1 -1
  170. package/assets/esri/widgets/Weather/t9n/Weather_uk.json +1 -1
  171. package/assets/esri/widgets/Weather/t9n/Weather_vi.json +1 -1
  172. package/assets/esri/widgets/Weather/t9n/Weather_zh-CN.json +1 -1
  173. package/assets/esri/widgets/Weather/t9n/Weather_zh-HK.json +1 -1
  174. package/assets/esri/widgets/Weather/t9n/Weather_zh-TW.json +1 -1
  175. package/chunks/BlendLayers.glsl.js +2 -2
  176. package/chunks/ChapmanAtmosphere.glsl.js +17 -17
  177. package/chunks/CheckerBoard.glsl.js +3 -3
  178. package/chunks/Clouds.glsl.js +2 -2
  179. package/chunks/CloudsComposition.glsl.js +1 -1
  180. package/chunks/ColorMaterial.glsl.js +12 -12
  181. package/chunks/ComponentShader.glsl.js +21 -21
  182. package/chunks/Compositing.glsl.js +1 -1
  183. package/chunks/DefaultMaterial.glsl.js +33 -33
  184. package/chunks/EdgeShaderProgram.glsl.js +7 -7
  185. package/chunks/Fog.glsl.js +10 -12
  186. package/chunks/HUDMaterial.glsl.js +2 -2
  187. package/chunks/HighlightComposition.glsl.js +5 -5
  188. package/chunks/ImageMaterial.glsl.js +6 -6
  189. package/chunks/LaserlinePath.glsl.js +8 -8
  190. package/chunks/LineCallout.glsl.js +6 -6
  191. package/chunks/MeasurementArrow.glsl.js +1 -1
  192. package/chunks/NativeLine.glsl.js +1 -1
  193. package/chunks/Path.glsl.js +5 -5
  194. package/chunks/Pattern.glsl.js +9 -9
  195. package/chunks/PointRenderer.glsl.js +14 -14
  196. package/chunks/Precipitation.glsl.js +91 -0
  197. package/chunks/RealisticTree.glsl.js +21 -21
  198. package/chunks/RibbonLine.glsl.js +11 -11
  199. package/chunks/SMAA.glsl.js +40 -40
  200. package/chunks/ShadedColorMaterial.glsl.js +12 -12
  201. package/chunks/ShadowCast.glsl.js +6 -6
  202. package/chunks/ShadowHighlight.glsl.js +4 -4
  203. package/chunks/SimpleAtmosphere.glsl.js +3 -3
  204. package/chunks/SlicePlaneMaterial.glsl.js +3 -3
  205. package/chunks/Stars.glsl.js +3 -3
  206. package/chunks/Terrain.glsl.js +3 -3
  207. package/chunks/TextureOnly.glsl.js +2 -2
  208. package/chunks/WaterSurface.glsl.js +22 -22
  209. package/chunks/boundedPlane.js +1 -1
  210. package/chunks/pe.js +1 -1
  211. package/chunks/vec3.js +1 -1
  212. package/chunks/vxlLayer.js +1 -1
  213. package/core/accessorSupport/ensureType.js +1 -1
  214. package/core/accessorSupport/get.js +1 -1
  215. package/core/accessorSupport/read.js +1 -1
  216. package/core/accessorSupport/set.js +1 -1
  217. package/core/accessorSupport/watch.js +1 -1
  218. package/core/accessorSupport/write.js +1 -1
  219. package/core/clock.js +1 -1
  220. package/core/jsonMap.js +1 -1
  221. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  222. package/core/loadAll.js +1 -1
  223. package/core/promiseUtils.js +1 -1
  224. package/core/reactiveUtils.js +1 -1
  225. package/form/ExpressionInfo.js +1 -1
  226. package/geometry/pe.js +1 -1
  227. package/geometry/support/axisAngleDegrees.js +1 -1
  228. package/geometry/support/frustum.js +1 -1
  229. package/geometry/support/plane.js +1 -1
  230. package/interfaces.d.ts +263 -35
  231. package/layers/VectorTileLayer.js +1 -1
  232. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  233. package/layers/graphics/featureConversionUtils.js +1 -1
  234. package/layers/support/LayerContingentValuesCache.js +1 -1
  235. package/layers/support/TileInfo.js +1 -1
  236. package/layers/support/rasterDatasets/BaseRaster.js +1 -1
  237. package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
  238. package/package.json +2 -2
  239. package/popup/content/AttachmentsContent.js +1 -1
  240. package/popup/content/support/mediaInfoTypes.js +1 -1
  241. package/rest/print.js +1 -1
  242. package/smartMapping/statistics/support/predominanceUtils.d.ts +4 -0
  243. package/support/arcadeOnDemand.js +1 -1
  244. package/support/featureFlags.js +1 -1
  245. package/support/revision.js +1 -1
  246. package/symbols/FillSymbol3DLayer.js +1 -1
  247. package/symbols/IconSymbol3DLayer.js +1 -1
  248. package/symbols/LabelSymbol3D.js +1 -1
  249. package/symbols/ObjectSymbol3DLayer.js +1 -1
  250. package/symbols/PointSymbol3D.js +1 -1
  251. package/symbols/Symbol3D.js +1 -1
  252. package/symbols/WebStyleSymbol.js +1 -1
  253. package/symbols/cim/CIMSymbolHelper.js +1 -1
  254. package/symbols/cim/CIMSymbolRasterizer.js +1 -1
  255. package/symbols/cim/cimAnalyzer.js +1 -1
  256. package/symbols/support/IconSymbol3DLayerResource.js +1 -1
  257. package/symbols/support/ObjectSymbol3DLayerResource.js +1 -1
  258. package/symbols/support/Symbol3DAnchorPosition2D.js +1 -1
  259. package/symbols/support/Symbol3DAnchorPosition3D.js +1 -1
  260. package/symbols/support/Symbol3DFillMaterial.js +1 -1
  261. package/symbols/support/Symbol3DIconOutline.js +1 -1
  262. package/symbols/support/Symbol3DOutline.js +1 -1
  263. package/symbols/support/Symbol3DVerticalOffset.js +1 -1
  264. package/symbols/support/Thumbnail.js +1 -1
  265. package/symbols/support/previewCIMSymbol.js +1 -1
  266. package/symbols/support/previewSymbol2D.js +1 -1
  267. package/symbols/support/previewSymbol3D.js +1 -1
  268. package/symbols/support/previewWebStyleSymbol.js +1 -1
  269. package/symbols/support/svgUtils.js +1 -1
  270. package/symbols/support/webStyleSymbolUtils.js +1 -1
  271. package/symbols.js +1 -1
  272. package/views/2d/MapViewConstraints.js +1 -1
  273. package/views/2d/engine/vectorTiles/SchemaHelper.js +1 -1
  274. package/views/2d/engine/webgl/brushes/raster/BrushRasterBitmap.js +1 -1
  275. package/views/2d/engine/webgl/mesh/templates/WGLFillTemplate.js +1 -1
  276. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  277. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  278. package/views/2d/viewpointUtils.js +1 -1
  279. package/views/3d/environment/ChapmanAtmosphere.glsl.js +1 -1
  280. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  281. package/views/3d/environment/CloudsComposition.glsl.js +1 -1
  282. package/views/3d/environment/CloudsComposition.js +1 -1
  283. package/views/3d/environment/CloudsGenerator.js +1 -1
  284. package/views/3d/environment/CloudsPresets.js +1 -1
  285. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  286. package/views/3d/environment/Fog.glsl.js +1 -1
  287. package/views/3d/environment/Fog.js +1 -1
  288. package/views/3d/environment/PanoramicAtmosphere.js +1 -1
  289. package/views/3d/environment/Precipitation.glsl.js +5 -0
  290. package/views/3d/environment/Precipitation.js +5 -0
  291. package/views/3d/environment/PrecipitationTechnique.js +5 -0
  292. package/views/3d/environment/RainyWeather.js +1 -1
  293. package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
  294. package/views/3d/environment/SimpleAtmosphere.glsl.js +1 -1
  295. package/views/3d/environment/SimpleAtmosphere.js +1 -1
  296. package/views/3d/environment/SnowyWeather.js +5 -0
  297. package/views/3d/environment/Stars.glsl.js +1 -1
  298. package/views/3d/environment/Stars.js +1 -1
  299. package/views/3d/environment/weather.js +1 -1
  300. package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
  301. package/views/3d/interactive/analysisTools/slice/sliceToolUtils.js +1 -1
  302. package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
  303. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  304. package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
  305. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  306. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  307. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  308. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  309. package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
  310. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  311. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  312. package/views/3d/layers/GraphicsView3D.js +1 -1
  313. package/views/3d/layers/I3SMeshView3D.js +1 -1
  314. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  315. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  316. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  317. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  318. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  319. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  320. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  321. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  322. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  323. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  324. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  325. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  326. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  327. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  328. package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
  329. package/views/3d/layers/graphics/graphicUtils.js +1 -1
  330. package/views/3d/layers/graphics/lineUtils.js +1 -1
  331. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  332. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  333. package/views/3d/layers/graphics/symbolComplexity.js +1 -1
  334. package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
  335. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  336. package/views/3d/layers/support/HeatmapFeatureProcessor.js +5 -0
  337. package/views/3d/layers/support/overlayImageUtils.js +1 -1
  338. package/views/3d/layers/support/patternUtils.js +1 -1
  339. package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
  340. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  341. package/views/3d/support/LaserLineRenderer.js +1 -1
  342. package/views/3d/support/LaserlinePathData.js +1 -1
  343. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  344. package/views/3d/support/sunUtils.js +1 -1
  345. package/views/3d/terrain/OverlayRenderer.js +1 -1
  346. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  347. package/views/3d/terrain/TerrainRenderer.js +1 -1
  348. package/views/3d/terrain/TerrainSurface.js +1 -1
  349. package/views/3d/terrain/Tile.js +1 -1
  350. package/views/3d/terrain/terrainUtils.js +1 -1
  351. package/views/3d/terrain/tileUtils.js +1 -1
  352. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  353. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  354. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  355. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +10 -10
  356. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  357. package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
  358. package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
  359. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  360. package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +2 -2
  361. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSizeScaling.glsl.js +2 -2
  362. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.js +2 -2
  363. package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +2 -2
  364. package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +4 -4
  365. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +1 -1
  366. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PositionAttribute.glsl.js +1 -1
  367. package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +1 -1
  368. package/views/3d/webgl-engine/core/shaderLibrary/attributes/SymbolColor.glsl.js +1 -1
  369. package/views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js +3 -3
  370. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js +1 -1
  371. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +6 -6
  372. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +12 -12
  373. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTextureCoordinates.glsl.js +4 -4
  374. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +1 -1
  375. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +16 -16
  376. package/views/3d/webgl-engine/core/shaderLibrary/default/RealisticTree.glsl.js +1 -1
  377. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +5 -5
  378. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js +3 -3
  379. package/views/3d/webgl-engine/core/shaderLibrary/raster/BasicGrid.glsl.js +2 -2
  380. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeMaterialColor.glsl.js +6 -6
  381. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +2 -2
  382. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeShadingNormal.glsl.js +10 -11
  383. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +2 -2
  384. package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassGeometryTest.glsl.js +2 -2
  385. package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js +2 -2
  386. package/views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js +6 -6
  387. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js +4 -4
  388. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +6 -6
  389. package/views/3d/webgl-engine/core/shaderLibrary/shading/Reprojection.glsl.js +4 -4
  390. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +5 -5
  391. package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +1 -1
  392. package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +22 -14
  393. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +2 -2
  394. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Terrain.glsl.js +1 -1
  395. package/views/3d/webgl-engine/core/shaderLibrary/util/BlendLayers.glsl.js +1 -1
  396. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +4 -4
  397. package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
  398. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  399. package/views/3d/webgl-engine/lib/DefaultVertexAttributeLocations.js +1 -1
  400. package/views/3d/webgl-engine/lib/DefaultVertexBufferLayouts.js +1 -1
  401. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  402. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  403. package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
  404. package/views/3d/webgl-engine/lib/MagnifierHelper.js +1 -1
  405. package/views/3d/webgl-engine/lib/Material.js +1 -1
  406. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  407. package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
  408. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  409. package/views/3d/webgl-engine/lib/SSAOHelper.js +1 -1
  410. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  411. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  412. package/views/3d/webgl-engine/lib/SmaaRenderPass.js +1 -1
  413. package/views/3d/webgl-engine/lib/TextRenderer.js +1 -1
  414. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  415. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  416. package/views/3d/{layers/graphics/IGraphics3DFeatureProcessor.js → webgl-engine/lib/TextureUniformName.js} +0 -0
  417. package/views/3d/webgl-engine/lib/UniformName.js +4 -0
  418. package/views/3d/webgl-engine/lib/VertexAttribute.js +5 -0
  419. package/views/3d/webgl-engine/lib/basicInterfaces.js +1 -1
  420. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  421. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  422. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechnique.js +1 -1
  423. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  424. package/views/3d/webgl-engine/lib/edgeRendering/bufferLayouts.js +1 -1
  425. package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
  426. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  427. package/views/3d/webgl-engine/lib/lodRendering/RenderInstanceData.js +1 -1
  428. package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
  429. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  430. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  431. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  432. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  433. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  434. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  435. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  436. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  437. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  438. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  439. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  440. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  441. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  442. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  443. package/views/3d/webgl-engine/materials/VisualVariableMaterialParameters.js +1 -1
  444. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  445. package/views/3d/webgl-engine/materials/internal/DefaultBufferWriter.js +1 -1
  446. package/views/3d/webgl-engine/materials/internal/MaterialUtil.js +1 -1
  447. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  448. package/views/3d/webgl-engine/materials/internal/waterMaterialUtils.js +1 -1
  449. package/views/3d/webgl-engine/parts/Model.js +1 -1
  450. package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
  451. package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
  452. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  453. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  454. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  455. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  456. package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
  457. package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
  458. package/views/3d/webgl-engine/shaders/HighlightComposition.glsl.js +1 -1
  459. package/views/3d/webgl-engine/shaders/HighlightTechnique.js +1 -1
  460. package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
  461. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  462. package/views/3d/webgl-engine/shaders/LaserlinePath.glsl.js +1 -1
  463. package/views/3d/webgl-engine/shaders/LaserlinePathTechnique.js +1 -1
  464. package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
  465. package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
  466. package/views/3d/webgl-engine/shaders/Magnifier.glsl.js +1 -1
  467. package/views/3d/webgl-engine/shaders/MeasurementArrow.glsl.js +1 -1
  468. package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
  469. package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
  470. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  471. package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
  472. package/views/3d/webgl-engine/shaders/RealisticTreeTechnique.js +1 -1
  473. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  474. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  475. package/views/3d/webgl-engine/shaders/SMAA.glsl.js +1 -1
  476. package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
  477. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
  478. package/views/3d/webgl-engine/shaders/ShadowCastTechnique.js +1 -1
  479. package/views/3d/webgl-engine/shaders/ShadowHighlightTechnique.js +1 -1
  480. package/views/3d/webgl-engine/shaders/SlicePlaneMaterial.glsl.js +1 -1
  481. package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
  482. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/AdjustProjectedPosition.glsl.js +10 -10
  483. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/DiscardShortEdges.glsl.js +1 -1
  484. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeShaderProgram.glsl.js +1 -1
  485. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +21 -21
  486. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineAmplitude.glsl.js +6 -6
  487. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineOffset.glsl.js +13 -13
  488. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/UnpackAttributes.glsl.js +6 -6
  489. package/views/MapView.js +1 -1
  490. package/views/SceneView.js +1 -1
  491. package/views/View.js +1 -1
  492. package/views/input/recognizers/DoubleTapDrag.js +1 -1
  493. package/views/input/recognizers/ImmediateDoubleClick.js +1 -1
  494. package/views/input/recognizers/PointerClickHoldAndDrag.js +1 -1
  495. package/views/input/recognizers/SingleAndDoubleClick.js +1 -1
  496. package/views/interactive/dragEventPipeline.js +1 -1
  497. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  498. package/views/support/DefaultsFromMap.js +1 -1
  499. package/views/support/WatchUpdatingTracking.js +1 -1
  500. package/views/support/projectionUtils.js +5 -0
  501. package/views/webgl/BufferObject.js +1 -1
  502. package/views/webgl/InstanceCounter.js +1 -1
  503. package/views/webgl/Program.js +1 -1
  504. package/views/webgl/rasterUtils.js +1 -1
  505. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
  506. package/widgets/Attachments.js +1 -1
  507. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  508. package/widgets/BasemapGallery/support/BasemapGalleryItem.js +1 -1
  509. package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
  510. package/widgets/BasemapGallery.js +1 -1
  511. package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
  512. package/widgets/FeatureForm/InputField.js +1 -1
  513. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  514. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  515. package/widgets/FeatureTable.js +1 -1
  516. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
  517. package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
  518. package/widgets/Popup/PopupViewModel.js +1 -1
  519. package/widgets/Popup/actionUtils.js +1 -1
  520. package/widgets/Search/support/locatorUtils.js +1 -1
  521. package/widgets/Search.js +1 -1
  522. package/widgets/Slice/SliceViewModel.js +1 -1
  523. package/widgets/Slider/SliderViewModel.js +1 -1
  524. package/widgets/Slider.js +1 -1
  525. package/widgets/Weather/WeatherViewModel.js +1 -1
  526. package/widgets/Weather/css.js +1 -1
  527. package/widgets/Weather/enums.js +5 -0
  528. package/widgets/Weather.js +1 -1
  529. package/widgets/support/InteractiveAnalysisViewModel.js +1 -1
  530. package/widgets/support/InteractiveToolViewModel.js +1 -1
  531. package/assets/components/assets/calcite-icon/checkSquareF16.json +0 -1
  532. package/assets/components/assets/calcite-icon/checkSquareF24.json +0 -1
  533. package/assets/components/assets/calcite-icon/checkSquareF32.json +0 -1
  534. package/assets/components/assets/calcite-icon/lineSolid4.json +0 -1
  535. package/assets/components/assets/calcite-icon/squareF16.json +0 -1
  536. package/assets/components/assets/calcite-icon/squareF24.json +0 -1
  537. package/assets/components/assets/calcite-icon/squareF32.json +0 -1
  538. package/assets/components/assets/calcite-icon/xHexagon16.json +0 -1
  539. package/assets/components/assets/calcite-icon/xHexagon24.json +0 -1
  540. package/assets/components/assets/calcite-icon/xHexagon32.json +0 -1
  541. package/assets/components/assets/calcite-icon/xHexagonF16.json +0 -1
  542. package/assets/components/assets/calcite-icon/xHexagonF24.json +0 -1
  543. package/assets/components/assets/calcite-icon/xHexagonF32.json +0 -1
  544. package/assets/components/assets/calcite-icon/xOctagonF16.json +0 -1
  545. package/assets/components/assets/calcite-icon/xOctagonF24.json +0 -1
  546. package/assets/components/assets/calcite-icon/xOctagonF32.json +0 -1
  547. package/assets/esri/core/workers/chunks/09da224052976e290828.js +0 -1
  548. package/assets/esri/core/workers/chunks/0bf079e752ab79468478.js +0 -1
  549. package/assets/esri/core/workers/chunks/0c3e3a5baf54bd5e210c.js +0 -1
  550. package/assets/esri/core/workers/chunks/14bef72154b3a19561a7.js +0 -1
  551. package/assets/esri/core/workers/chunks/18668dc45eb9e35530df.js +0 -1
  552. package/assets/esri/core/workers/chunks/1e4d37c2b9dc83d20a11.js +0 -1
  553. package/assets/esri/core/workers/chunks/20411bb8e04703962ce6.js +0 -1
  554. package/assets/esri/core/workers/chunks/208a7e24e19fc5633dd7.js +0 -1
  555. package/assets/esri/core/workers/chunks/22b09e276c9b9f22f0f8.js +0 -1
  556. package/assets/esri/core/workers/chunks/23745a5ab47c840dc452.js +0 -1
  557. package/assets/esri/core/workers/chunks/2416f8bf8bbd2ec786ab.js +0 -1
  558. package/assets/esri/core/workers/chunks/25a3e9bc0b4c7e0d3165.js +0 -1
  559. package/assets/esri/core/workers/chunks/2e445a8735ea2adb641a.js +0 -1
  560. package/assets/esri/core/workers/chunks/32f8c4af7e70ebdcb19e.js +0 -1
  561. package/assets/esri/core/workers/chunks/36a3f6fb4d1d18fcb642.js +0 -1
  562. package/assets/esri/core/workers/chunks/390d9021169e65c10eb8.js +0 -1
  563. package/assets/esri/core/workers/chunks/3a9740dccda6a733313c.js +0 -1
  564. package/assets/esri/core/workers/chunks/3aa4194dc5497c57647f.js +0 -1
  565. package/assets/esri/core/workers/chunks/40a1e713f63ec77110c0.js +0 -1
  566. package/assets/esri/core/workers/chunks/43cdff2418325e163420.js +0 -1
  567. package/assets/esri/core/workers/chunks/4bfbf5a34c9207fdcf44.js +0 -1
  568. package/assets/esri/core/workers/chunks/5383a8f3e4ec1a8a4fcd.js +0 -1
  569. package/assets/esri/core/workers/chunks/5538639a49c7cc2eca63.js +0 -1
  570. package/assets/esri/core/workers/chunks/5a4a5585ec8027079f32.js +0 -1
  571. package/assets/esri/core/workers/chunks/5d4863a92b03bebc1b54.js +0 -1
  572. package/assets/esri/core/workers/chunks/60371c0f750cde87656d.js +0 -1
  573. package/assets/esri/core/workers/chunks/634b5ccd7a3ac67f855d.js +0 -1
  574. package/assets/esri/core/workers/chunks/662d13f68cf3ec92439b.js +0 -1
  575. package/assets/esri/core/workers/chunks/663ad15b86936eb06b69.js +0 -1
  576. package/assets/esri/core/workers/chunks/67162b3e2cc1b5dc6818.js +0 -1
  577. package/assets/esri/core/workers/chunks/739e579150bf466d43ae.js +0 -1
  578. package/assets/esri/core/workers/chunks/74df1f3e1e2e524a89d2.js +0 -1
  579. package/assets/esri/core/workers/chunks/76eef4799f6c5fff7e2d.js +0 -1
  580. package/assets/esri/core/workers/chunks/7baf6b1f3f050aa67ae4.js +0 -1
  581. package/assets/esri/core/workers/chunks/7bc5cc5dbf1b7b70ddac.js +0 -1
  582. package/assets/esri/core/workers/chunks/85e27fd949475f9a6bbc.js +0 -1
  583. package/assets/esri/core/workers/chunks/8967288145f8fbd20e7d.js +0 -1
  584. package/assets/esri/core/workers/chunks/8b6ab6202a40fe622833.js +0 -1
  585. package/assets/esri/core/workers/chunks/96ab518eb6ba11333dee.js +0 -1
  586. package/assets/esri/core/workers/chunks/9796d54ff12b6429164a.js +0 -1
  587. package/assets/esri/core/workers/chunks/99a777693e4539f0b03b.js +0 -1
  588. package/assets/esri/core/workers/chunks/9cb2ae42a8e328b1d98d.js +0 -1
  589. package/assets/esri/core/workers/chunks/9d3c58a0ef634d95b7bd.js +0 -1
  590. package/assets/esri/core/workers/chunks/a6ff3db3493543df81bc.js +0 -1
  591. package/assets/esri/core/workers/chunks/a8c13529367c037cdd94.js +0 -1
  592. package/assets/esri/core/workers/chunks/a96afc176041f698c7a1.js +0 -1
  593. package/assets/esri/core/workers/chunks/aa861b8eae6c85f3dad4.js +0 -1
  594. package/assets/esri/core/workers/chunks/ac8dca61ade28c542ae2.js +0 -1
  595. package/assets/esri/core/workers/chunks/ad081d8e49e7f90c3c26.js +0 -1
  596. package/assets/esri/core/workers/chunks/afa6912454f2a5ffadce.js +0 -1
  597. package/assets/esri/core/workers/chunks/b2beb6e1fd2ee6503830.js +0 -1
  598. package/assets/esri/core/workers/chunks/ba615f118a3a8970ef25.js +0 -1
  599. package/assets/esri/core/workers/chunks/ba6654a885be4b7a43f0.js +0 -1
  600. package/assets/esri/core/workers/chunks/bab1cfd0a901181622af.js +0 -1
  601. package/assets/esri/core/workers/chunks/be2b7cce79fd41627931.js +0 -1
  602. package/assets/esri/core/workers/chunks/c080114a69fa95b88d22.js +0 -1
  603. package/assets/esri/core/workers/chunks/c11474b702dfb94e8e87.js +0 -1
  604. package/assets/esri/core/workers/chunks/c13dfdd548dcb1bdb294.js +0 -1
  605. package/assets/esri/core/workers/chunks/c6bd943fe8fd13bb4806.js +0 -1
  606. package/assets/esri/core/workers/chunks/c6f94b92e866b881d9b9.js +0 -1
  607. package/assets/esri/core/workers/chunks/ca2f5faa01d99c21ec14.js +0 -1
  608. package/assets/esri/core/workers/chunks/cd7d83d127e085d52584.js +0 -1
  609. package/assets/esri/core/workers/chunks/cef4af64860ebbfc1c47.js +0 -1
  610. package/assets/esri/core/workers/chunks/cfbffa429d88e7709c3f.js +0 -1
  611. package/assets/esri/core/workers/chunks/d24c4fbc567486b1188f.js +0 -1
  612. package/assets/esri/core/workers/chunks/d52108864136c5a8a618.js +0 -1
  613. package/assets/esri/core/workers/chunks/da1c2873bdbc0956dca0.js +0 -1
  614. package/assets/esri/core/workers/chunks/de03439ca2c9782bf325.js +0 -1
  615. package/assets/esri/core/workers/chunks/de6cff7b6cbbf99b20d1.js +0 -981
  616. package/assets/esri/core/workers/chunks/e079cb1d53aca15b7df2.js +0 -1
  617. package/assets/esri/core/workers/chunks/e59764ee8cf25d4f74e2.js +0 -1
  618. package/assets/esri/core/workers/chunks/e6df9839b551569fbc62.js +0 -1
  619. package/assets/esri/core/workers/chunks/e97e986120aaadad7d4c.js +0 -1
  620. package/assets/esri/core/workers/chunks/f467c8f1fce22f6f599c.js +0 -1
  621. package/assets/esri/core/workers/chunks/f678293de9a6d8f5b5db.js +0 -1
  622. package/assets/esri/core/workers/chunks/f8e7755240a94b499e1f.js +0 -1
  623. package/assets/esri/core/workers/chunks/fd3e5d823dc7917f4b8f.js +0 -1
  624. package/assets/esri/core/workers/chunks/ffaf091c6023225cf5aa.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6748,3172],{66748:(e,t,n)=>{n.r(t),n.d(t,{registerFunctions:()=>E});var r=n(40330),o=n(77286),s=n(61363),i=n(71201),a=n(95330),l=n(6570),c=n(9361),u=n(8667),h=n(65091),f=n(13473),d=n(17332),m=n(58901),g=n(33955),p=n(67900);function w(e){return 0===r.i8.indexOf("4.")?d.Z.fromExtent(e):new d.Z({spatialReference:e.spatialReference,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}function y(e){if((0,s.p)(e,2,2),e[0]instanceof c.Z&&e[1]instanceof c.Z);else if(e[0]instanceof c.Z&&null===e[1]);else if(e[1]instanceof c.Z&&null===e[0]);else if(null!==e[0]||null!==e[1])throw new Error("Illegal Argument")}function b(e,t){if("polygon"!==e.type&&"polyline"!==e.type&&"extent"!==e.type)return(0,a.DB)(0);let n=1;(e.spatialReference.vcsWkid||e.spatialReference.latestVcsWkid)&&(n=(0,i._R)(e.spatialReference)/(0,p.c9)(e.spatialReference));let r=0;if("polyline"===e.type)for(const t of e.paths)for(let e=1;e<t.length;e++)r+=(0,i.AW)(t[e],t[e-1],n);else if("polygon"===e.type)for(const t of e.rings){for(let e=1;e<t.length;e++)r+=(0,i.AW)(t[e],t[e-1],n);(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1]||void 0!==t[0][2]&&t[0][2]!==t[t.length-1][2])&&(r+=(0,i.AW)(t[0],t[t.length-1],n))}else"extent"===e.type&&(r+=2*(0,i.AW)([e.xmin,e.ymin,0],[e.xmax,e.ymin,0],n),r+=2*(0,i.AW)([e.xmin,e.ymin,0],[e.xmin,e.ymax,0],n),r*=2,r+=4*Math.abs((0,s.E)(e.zmax,0)*n-(0,s.E)(e.zmin,0)*n));const o=new m.Z({hasZ:!1,hasM:!1,spatialReference:e.spatialReference,paths:[[0,0],[0,r]]});return(0,u.sz)(o,t)}function E(e){"async"===e.mode&&(e.functions.disjoint=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null===n[0]||null===n[1]||(0,u.ED)(n[0],n[1])}))},e.functions.intersects=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null!==n[0]&&null!==n[1]&&(0,u.kK)(n[0],n[1])}))},e.functions.touches=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null!==n[0]&&null!==n[1]&&(0,u.W4)(n[0],n[1])}))},e.functions.crosses=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null!==n[0]&&null!==n[1]&&(0,u.jU)(n[0],n[1])}))},e.functions.within=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null!==n[0]&&null!==n[1]&&(0,u.uh)(n[0],n[1])}))},e.functions.contains=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null!==n[0]&&null!==n[1]&&(0,u.r3)(n[0],n[1])}))},e.functions.overlaps=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null!==n[0]&&null!==n[1]&&(0,u.Nm)(n[0],n[1])}))},e.functions.equals=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return(0,s.p)(n,2,2),n[0]===n[1]||(n[0]instanceof c.Z&&n[1]instanceof c.Z?(0,u.fS)(n[0],n[1]):!(!(0,s.n)(n[0])||!(0,s.n)(n[1]))&&n[0].getTime()===n[1].getTime())}))},e.functions.relate=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,3,3),n[0]instanceof c.Z&&n[1]instanceof c.Z)return(0,u.LV)(n[0],n[1],(0,s.d)(n[2]));if(n[0]instanceof c.Z&&null===n[1])return!1;if(n[1]instanceof c.Z&&null===n[0])return!1;if(null===n[0]&&null===n[1])return!1;throw new Error("Illegal Argument")}))},e.functions.intersection=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null===n[0]||null===n[1]?null:(0,u.wf)(n[0],n[1])}))},e.functions.union=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){const i=[];if(0===(r=(0,s.K)(r)).length)throw new Error("Function called with wrong number of Parameters");if(1===r.length)if((0,s.a)(r[0])){const e=(0,s.K)(r[0]);for(let t=0;t<e.length;t++)if(null!==e[t]){if(!(e[t]instanceof c.Z))throw new Error("Illegal Argument");i.push(e[t])}}else{if(!(0,s.b)(r[0])){if(r[0]instanceof c.Z)return(0,s.r)((0,o.r1)(r[0]),t.spatialReference);if(null===r[0])return null;throw new Error("Illegal Argument")}{const e=(0,s.K)(r[0].toArray());for(let t=0;t<e.length;t++)if(null!==e[t]){if(!(e[t]instanceof c.Z))throw new Error("Illegal Argument");i.push(e[t])}}}else for(let e=0;e<r.length;e++)if(null!==r[e]){if(!(r[e]instanceof c.Z))throw new Error("Illegal Argument");i.push(r[e])}return 0===i.length?null:(0,u.G0)(i)}))},e.functions.difference=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null!==n[0]&&null===n[1]?(0,o.r1)(n[0]):null===n[0]?null:(0,u.e5)(n[0],n[1])}))},e.functions.symmetricdifference=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null===n[0]&&null===n[1]?null:null===n[0]?(0,o.r1)(n[1]):null===n[1]?(0,o.r1)(n[0]):(0,u.Sp)(n[0],n[1])}))},e.functions.clip=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,2,2),!(n[1]instanceof l.Z)&&null!==n[1])throw new Error("Illegal Argument");if(null===n[0])return null;if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");return null===n[1]?null:(0,u.oq)(n[0],n[1])}))},e.functions.cut=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,2,2),!(n[1]instanceof m.Z)&&null!==n[1])throw new Error("Illegal Argument");if(null===n[0])return[];if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");return null===n[1]?[(0,o.r1)(n[0])]:(0,u.z7)(n[0],n[1])}))},e.functions.area=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.K)(r))[0])return 0;if((0,s.o)(r[0]))return r[0].sumArea((0,o.EI)((0,s.E)(r[1],-1)),!1,t.abortSignal).then((e=>{if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}));if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.M)(r[0],t.spatialReference);return null===e?0:(0,u.CJ)(e,(0,o.EI)((0,s.E)(r[1],-1)))}if(!(r[0]instanceof c.Z))throw new Error("Illegal Argument");return(0,u.CJ)(r[0],(0,o.EI)((0,s.E)(r[1],-1)))}))},e.functions.areageodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.K)(r))[0])return 0;if((0,s.o)(r[0]))return r[0].sumArea((0,o.EI)((0,s.E)(r[1],-1)),!0,t.abortSignal).then((e=>{if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}));if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.M)(r[0],t.spatialReference);return null===e?0:(0,u.Y4)(e,(0,o.EI)((0,s.E)(r[1],-1)))}if(!(r[0]instanceof c.Z))throw new Error("Illegal Argument");return(0,u.Y4)(r[0],(0,o.EI)((0,s.E)(r[1],-1)))}))},e.functions.length=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.K)(r))[0])return 0;if((0,s.o)(r[0]))return r[0].sumLength((0,o.Lz)((0,s.E)(r[1],-1)),!1,t.abortSignal).then((e=>{if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}));if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.L)(r[0],t.spatialReference);return null===e?0:(0,u.sz)(e,(0,o.Lz)((0,s.E)(r[1],-1)))}if(!(r[0]instanceof c.Z))throw new Error("Illegal Argument");return(0,u.sz)(r[0],(0,o.Lz)((0,s.E)(r[1],-1)))}))},e.functions.length3d=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.K)(r))[0])return 0;if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.L)(r[0],t.spatialReference);return null===e?0:!0===e.hasZ?b(e,(0,o.Lz)((0,s.E)(r[1],-1))):(0,u.sz)(e,(0,o.Lz)((0,s.E)(r[1],-1)))}if(!(r[0]instanceof c.Z))throw new Error("Illegal Argument");return!0===r[0].hasZ?b(r[0],(0,o.Lz)((0,s.E)(r[1],-1))):(0,u.sz)(r[0],(0,o.Lz)((0,s.E)(r[1],-1)))}))},e.functions.lengthgeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.K)(r))[0])return 0;if((0,s.o)(r[0]))return r[0].sumLength((0,o.Lz)((0,s.E)(r[1],-1)),!0,t.abortSignal).then((e=>{if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}));if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.L)(r[0],t.spatialReference);return null===e?0:(0,u.kQ)(e,(0,o.Lz)((0,s.E)(r[1],-1)))}if(!(r[0]instanceof c.Z))throw new Error("Illegal Argument");return(0,u.kQ)(r[0],(0,o.Lz)((0,s.E)(r[1],-1)))}))},e.functions.distance=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){r=(0,s.K)(r),(0,s.p)(r,2,3);let i=r[0];((0,s.a)(r[0])||(0,s.b)(r[0]))&&(i=(0,s.O)(r[0],t.spatialReference));let a=r[1];if(((0,s.a)(r[1])||(0,s.b)(r[1]))&&(a=(0,s.O)(r[1],t.spatialReference)),!(i instanceof c.Z))throw new Error("Illegal Argument");if(!(a instanceof c.Z))throw new Error("Illegal Argument");return(0,u.TE)(i,a,(0,o.Lz)((0,s.E)(r[2],-1)))}))},e.functions.distancegeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){n=(0,s.K)(n),(0,s.p)(n,2,3);const r=n[0],i=n[1];if(!(r instanceof f.Z))throw new Error("Illegal Argument");if(!(i instanceof f.Z))throw new Error("Illegal Argument");const a=new m.Z({paths:[],spatialReference:r.spatialReference});return a.addPath([r,i]),(0,u.kQ)(a,(0,o.Lz)((0,s.E)(n[2],-1)))}))},e.functions.densify=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");if(r<=0)throw new Error("Illegal Argument");return n[0]instanceof d.Z||n[0]instanceof m.Z?(0,u.Cz)(n[0],r,(0,o.Lz)((0,s.E)(n[2],-1))):n[0]instanceof l.Z?(0,u.Cz)(w(n[0]),r,(0,o.Lz)((0,s.E)(n[2],-1))):n[0]}))},e.functions.densifygeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");if(r<=0)throw new Error("Illegal Argument");return n[0]instanceof d.Z||n[0]instanceof m.Z?(0,u.j2)(n[0],r,(0,o.Lz)((0,s.E)(n[2],-1))):n[0]instanceof l.Z?(0,u.j2)(w(n[0]),r,(0,o.Lz)((0,s.E)(n[2],-1))):n[0]}))},e.functions.generalize=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,2,4),null===n[0])return null;if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return(0,u.D$)(n[0],r,(0,s.y)((0,s.E)(n[2],!0)),(0,o.Lz)((0,s.E)(n[3],-1)))}))},e.functions.buffer=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return 0===r?(0,o.r1)(n[0]):(0,u.f3)(n[0],r,(0,o.Lz)((0,s.E)(n[2],-1)))}))},e.functions.buffergeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return 0===r?(0,o.r1)(n[0]):(0,u.rd)(n[0],r,(0,o.Lz)((0,s.E)(n[2],-1)))}))},e.functions.offset=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,2,6),null===n[0])return null;if(!(n[0]instanceof d.Z||n[0]instanceof m.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");const i=(0,s.t)((0,s.E)(n[4],10));if(isNaN(i))throw new Error("Illegal Argument");const a=(0,s.t)((0,s.E)(n[5],0));if(isNaN(a))throw new Error("Illegal Argument");return(0,u.cv)(n[0],r,(0,o.Lz)((0,s.E)(n[2],-1)),(0,s.d)((0,s.E)(n[3],"round")).toLowerCase(),i,a)}))},e.functions.rotate=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){n=(0,s.K)(n),(0,s.p)(n,2,3);let r=n[0];if(null===r)return null;if(!(r instanceof c.Z))throw new Error("Illegal Argument");r instanceof l.Z&&(r=d.Z.fromExtent(r));const o=(0,s.t)(n[1]);if(isNaN(o))throw new Error("Illegal Argument");const i=(0,s.E)(n[2],null);if(null===i)return(0,u.U1)(r,o);if(i instanceof f.Z)return(0,u.U1)(r,o,i);throw new Error("Illegal Argument")}))},e.functions.centroid=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if(r=(0,s.K)(r),(0,s.p)(r,1,1),null===r[0])return null;let a=r[0];if(((0,s.a)(r[0])||(0,s.b)(r[0]))&&(a=(0,s.O)(r[0],t.spatialReference)),null===a)return null;if(!(a instanceof c.Z))throw new Error("Illegal Argument");return a instanceof f.Z?(0,s.r)((0,o.r1)(r[0]),t.spatialReference):a instanceof d.Z?a.centroid:a instanceof m.Z?(0,i.s9)(a):a instanceof h.Z?(0,i.Ay)(a):a instanceof l.Z?a.center:null}))},e.functions.multiparttosinglepart=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){r=(0,s.K)(r),(0,s.p)(r,1,1);const i=[];if(null===r[0])return null;if(!(r[0]instanceof c.Z))throw new Error("Illegal Argument");return r[0]instanceof f.Z||r[0]instanceof l.Z?[(0,s.r)((0,o.r1)(r[0]),t.spatialReference)]:(0,u.og)(r[0]).then((e=>{if(e instanceof d.Z){const t=[],n=[];for(let r=0;r<e.rings.length;r++)if(e.isClockwise(e.rings[r])){const n=(0,g.im)({rings:[e.rings[r]],hasZ:!0===e.hasZ,hazM:!0===e.hasM,spatialReference:e.spatialReference.toJSON()});t.push(n)}else n.push({ring:e.rings[r],pt:e.getPoint(r,0)});for(let e=0;e<n.length;e++)for(let r=0;r<t.length;r++)if(t[r].contains(n[e].pt)){t[r].addRing(n[e].ring);break}return t}if(e instanceof m.Z){const t=[];for(let n=0;n<e.paths.length;n++){const r=(0,g.im)({paths:[e.paths[n]],hasZ:!0===e.hasZ,hazM:!0===e.hasM,spatialReference:e.spatialReference.toJSON()});t.push(r)}return t}if(r[0]instanceof h.Z){const e=(0,s.r)((0,o.r1)(r[0]),t.spatialReference);for(let t=0;t<e.points.length;t++)i.push(e.getPoint(t));return i}return null}))}))},e.functions.issimple=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,1,1),null===n[0])return!0;if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");return(0,u.Gg)(n[0])}))},e.functions.simplify=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,1,1),null===n[0])return null;if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");return(0,u.og)(n[0])}))})}},99880:(e,t,n)=>{n.d(t,{V:()=>l});var r=n(68773),o=(n(3172),n(20102)),s=n(92604),i=n(17452);const a=s.Z.getLogger("esri.assets");function l(e){if(!r.Z.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(r.Z.assetsPath,e)}},80903:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(50758),o=n(92604),s=n(95330),i=n(25045);const a=o.Z.getLogger("esri.core.workers.Connection");class l{constructor(){this._clients=new Array,this._clientPromises=new Array,this._clientIdx=0}destroy(){this.close()}get closed(){return!this._clients||!this._clients.length}open(e,t){return new Promise(((n,r)=>{let o=!0;const a=e=>{(0,s.k_)(t.signal),o&&(o=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length;for(let o=0;o<e.length;++o){const l=e[o];(0,s.y8)(l)?this._clientPromises[o]=l.then((e=>(this._clients[o]=new i.default(e,t),a(n),this._clients[o])),(()=>(a(r),null))):(this._clients[o]=new i.default(l,t),this._clientPromises[o]=Promise.resolve(this._clients[o]),a(n))}}))}broadcast(e,t,n){const r=new Array(this._clientPromises.length);for(let o=0;o<this._clientPromises.length;++o){const s=this._clientPromises[o];r[o]=s.then((r=>r.invoke(e,t,n)))}return r}close(){for(const e of this._clientPromises)e.then((e=>e.close()));this._clients.length=0,this._clientPromises.length=0}getAvailableClient(){let e;for(let t=0;t<this._clients.length;++t){const n=this._clients[t];if(n){if(!n.isBusy())return Promise.resolve(n)}else e=e||[],e.push(this._clientPromises[t])}return e?Promise.race(e):(this._clientIdx=(this._clientIdx+1)%this._clients.length,Promise.resolve(this._clients[this._clientIdx]))}invoke(e,t,n){let r=null;return Array.isArray(n)?(a.warn("invoke()","The transferList parameter is deprecated, use the options object instead"),r={transferList:n}):r=n,this.closed?Promise.reject(new Error("Connection closed")):this.getAvailableClient().then((n=>n.invoke(e,t,r)))}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,r.AL)(this._clients.map((n=>n.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let n=t.length;for(let r=0;r<this._clientPromises.length;++r)this._clientPromises[r].then((o=>{t[r]=o.openPort(),0==--n&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},25045:(e,t,n)=>{n.r(t),n.d(t,{default:()=>y});var r=n(40330),o=n(20102),s=n(91460),i=n(70586),a=n(95330),l=n(94362),c=n(17202);const u={statsWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(6841)]).then(n.bind(n,36841)),geometryEngineWorker:()=>Promise.all([n.e(5837),n.e(8227)]).then(n.bind(n,48227)),CSVSourceWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(7668),n.e(4547),n.e(1534),n.e(3578),n.e(8961),n.e(7054),n.e(2781),n.e(966)]).then(n.bind(n,27793)),EdgeProcessingWorker:()=>Promise.all([n.e(6481),n.e(8936)]).then(n.bind(n,18936)),ElevationSamplerWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(4547),n.e(2781),n.e(6481),n.e(6459),n.e(3553)]).then(n.bind(n,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(7668),n.e(4588),n.e(4547),n.e(1534),n.e(3485),n.e(3578),n.e(8961),n.e(7054),n.e(2781),n.e(5404)]).then(n.bind(n,2255)),GeoJSONSourceWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(7668),n.e(4547),n.e(1534),n.e(3578),n.e(8961),n.e(7054),n.e(2781),n.e(6348),n.e(7845)]).then(n.bind(n,97845)),LercWorker:()=>n.e(3027).then(n.bind(n,23027)),MemorySourceWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(7668),n.e(4547),n.e(1534),n.e(3578),n.e(8961),n.e(7054),n.e(2781),n.e(6348),n.e(639)]).then(n.bind(n,30639)),PBFDecoderWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(8961),n.e(147)]).then(n.bind(n,61916)),Pipeline:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(7668),n.e(5638),n.e(4588),n.e(4547),n.e(1534),n.e(3485),n.e(3578),n.e(8961),n.e(7054),n.e(4325),n.e(2730),n.e(7783)]).then(n.bind(n,97783)),PointCloudWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(4547),n.e(9294),n.e(9474)]).then(n.bind(n,16583)),RasterWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(4547),n.e(176),n.e(2398),n.e(5340)]).then(n.bind(n,61576)),SceneLayerWorker:()=>n.e(1412).then(n.bind(n,31412)),WFSSourceWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(7668),n.e(4547),n.e(1534),n.e(3578),n.e(8961),n.e(7054),n.e(2781),n.e(6348),n.e(4556),n.e(3230)]).then(n.bind(n,43230)),WorkerTileHandler:()=>Promise.all([n.e(2303),n.e(4325),n.e(1785),n.e(6810),n.e(9872)]).then(n.bind(n,56456))},{CLOSE:h,ABORT:f,INVOKE:d,RESPONSE:m,OPEN_PORT:g,ON:p}=l.Cs;class w{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===l.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class y{constructor(e,t){this._port=e,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new w((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const r=new y(t.port1,{channel:t,client:n});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=r),y.clients.set(r,n),t.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}close(){this._post({type:h}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,n){const r=n&&n.signal,s=n&&n.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,l.jt)();return new Promise(((n,o)=>{const l=(0,a.$F)(r,(()=>{var e;const t=this._outJobs.get(i);t&&(this._outJobs.delete(i),null==(e=t.abortHandle)||e.remove(),this._post({type:f,jobId:i}),o((0,a.zE)()))})),c={resolve:n,reject:o,abortHandle:l,debugInfo:e};this._outJobs.set(i,c),this._post({type:d,jobId:i,methodName:e,abortable:null!=r},t,s)}))}on(e,t){const n=new MessageChannel;function r(e){t(e.data)}return this._port.postMessage({type:l.Cs.ON,eventType:e,port:n.port2},[n.port2]),n.port1.addEventListener("message",r),n.port1.start(),{remove(){n.port1.postMessage({type:l.Cs.CLOSE}),n.port1.close(),n.port1.removeEventListener("message",r)}}}openPort(){const e=new MessageChannel;return this._post({type:g,port:e.port2}),e.port1}_close(){this._channel&&(this._channel=null),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{var t;null==(t=e.abortHandle)||t.remove(),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,l.QM)(e);if(t)switch(t.type){case m:this._onResponseMessage(t);break;case d:this._invokeQueue.push(t);break;case f:this._onAbortMessage(t);break;case h:this._onCloseMessage();break;case g:this._onOpenPortMessage(t);break;case p:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);this._invokeQueue.push(e),r&&(r.controller&&r.controller.abort(),t.delete(n))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let c,u=this._client,h=u[t];try{if(!h&&t&&-1!==t.indexOf(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)u=u[e[t]],h=u[e[t+1]]}if("function"!=typeof h)throw new TypeError(`${t} is not a function`);c=h.call(u,r,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:m,jobId:n,error:(0,l.AB)(e)})}(0,a.y8)(c)?(i.set(n,{controller:s,promise:c}),c.then((e=>{i.has(n)&&(i.delete(n),this._post({type:m,jobId:n},e))}),(e=>{i.has(n)&&(i.delete(n),(0,a.D_)(e)||this._post({type:m,jobId:n,error:(0,l.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:m,jobId:n},c)}_onOpenPortMessage(e){new y(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,n=this._client.on(e.eventType,(e=>{t.postMessage(e)})),r=(0,s.on)(e.port,"message",(e=>{(0,l.QM)(e).type===l.Cs.CLOSE&&(r.remove(),n.remove(),t.close())}))}_onResponseMessage(e){var t;const{jobId:n,error:r,data:s}=e,i=this._outJobs;if(!i.has(n))return;const a=i.get(n);i.delete(n),null==(t=a.abortHandle)||t.remove(),r?a.reject(o.Z.fromJSON(JSON.parse(r))):a.resolve(s)}_post(e,t,n){return(0,l.oi)(this._port,e,t,n)}}y.kernelInfo={revision:c.$,version:r.i8,buildDate:c.r},y.clients=new Map},94362:(e,t,n)=>{n.d(t,{Cs:()=>r,jt:()=>a,oi:()=>c,QM:()=>u,AB:()=>l});var r,o,s=n(80442);(o=r||(r={}))[o.HANDSHAKE=0]="HANDSHAKE",o[o.OPEN=1]="OPEN",o[o.OPENED=2]="OPENED",o[o.RESPONSE=3]="RESPONSE",o[o.INVOKE=4]="INVOKE",o[o.ABORT=5]="ABORT",o[o.CLOSE=6]="CLOSE",o[o.OPEN_PORT=7]="OPEN_PORT",o[o.ON=8]="ON";let i=0;function a(){return i++}function l(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function c(e,t,n,o){if(t.type===r.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==r.INVOKE&&t.type!==r.RESPONSE)return void e.postMessage(t);let s;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(n)?(s=h(o),t.data=n):(s=h(n.transferList),t.data=n.result),s?e.postMessage(t,s):e.postMessage(t)}function u(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function h(e){if(!e||!e.length)return null;if((0,s.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},78346:(e,t,n)=>{n.d(t,{bA:()=>F});var r=n(20102),o=n(80442),s=n(95330),i=n(80903),a=n(25045),l=n(40330),c=n(92604),u=n(94362),h=n(99880),f=n(68773),d=(n(2587),n(17452));const m={};function g(e){var t;const n={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages&&e.packages.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(n.async=!0),e.hasOwnProperty("isDebug")||(n.isDebug=!1),e.baseUrl||(n.baseUrl=m.baseUrl),null==(t=m.packages)||t.forEach((e=>{!function(e,t){for(const n of e)if(n.name===t.name)return;e.push(t)}(n.packages,e)})),n}var p=n(41213);class w{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...n)=>e[t](...n)}))}}class y{constructor(){this._dispatcher=new w,this._workerPostMessage({type:u.Cs.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,p.Y)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,n){this._dispatcher.addEventListener(e,t,n)}removeEventListener(e,t,n){this._dispatcher.removeEventListener(e,t,n)}_workerPostMessage(e){(0,p.Y)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,u.QM)(e);if(t&&t.type===u.Cs.OPEN){const{modulePath:e,jobId:n}=t;let r=await a.default.loadWorker(e);r||(r=await import(e));const o=a.default.connect(r);this._workerPostMessage({type:u.Cs.OPENED,jobId:n,data:o})}}}var b=n(70171),E=n(17202);const k=c.Z.getLogger("esri.core.workers"),{HANDSHAKE:_}=u.Cs;let v,A;const O="Failed to create Worker. Fallback to execute module in main thread";async function P(e){return new Promise((t=>{function n(o){const s=(0,u.QM)(o);s&&s.type===_&&(e.removeEventListener("message",n),e.removeEventListener("error",r),t(e))}function r(t){t.preventDefault(),e.removeEventListener("message",n),e.removeEventListener("error",r),k.warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new y).addEventListener("message",n),e.addEventListener("error",r)}e.addEventListener("message",n),e.addEventListener("error",r)}))}let L=0;const S=c.Z.getLogger("esri.core.workers"),{ABORT:Z,INVOKE:I,OPEN:M,OPENED:C,RESPONSE:N}=u.Cs;class T{constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),S.error(e)}))}static async create(e){const t=await async function(){if(!(0,o.Z)("esri-workers")||((0,o.Z)("mozilla"),0))return P(new y);if(!v&&!A)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,buildDate:r,version:t}=configuration.kernelInfo,{revision:n,buildDate:i,version:s}=e.kernelInfo;o!==n&&console.warn(`[esri.core.workers] Version mismatch detected between ArcGIS API for JavaScript and assets:\\nAPI version: ${t} [Date: ${r}, Revision: ${o.slice(0,8)}]\nAssets version: ${s} [Date: ${i}, Revision: ${n.slice(0,8)}]`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let e;function t(o){const t=e.connect(o);self.postMessage({type:2,jobId:r,data:t},[t])}"function"==typeof define&&define.amd?require([workerPath],(r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((r=>(e=r.default,checkWorkerRevision(e),e.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),e=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(e),e.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const e=outgoing.get(r);outgoing.delete(r),o.error?e.reject(JSON.parse(o.error)):e.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.replace('"{CONFIGURATION}"',`'${function(){let e;if(null!=f.Z.default){const t={...f.Z};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(f.Z));e.assetsPath=(0,d.hF)(e.assetsPath),e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,b.Kd)(),e.has={"esri-csp-restrictions":(0,o.Z)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,o.Z)("esri-2d-update-debug"),"esri-2d-query-centroid-enabled":(0,o.Z)("esri-2d-query-centroid-enabled"),"featurelayer-pbf":(0,o.Z)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,o.Z)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,o.Z)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,o.Z)("featurelayer-simplify-mobile-factor"),"esri-atomics":(0,o.Z)("esri-atomics"),"esri-shared-array-buffer":(0,o.Z)("esri-shared-array-buffer"),"esri-tiles-debug":(0,o.Z)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,o.Z)("esri-workers-arraybuffer-transfer"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,d.hF)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,d.hF)(e.workers.workerPath):e.workers.workerPath=(0,d.hF)((0,h.V)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=f.Z.workers.loaderConfig,n=g({baseUrl:null==t?void 0:t.baseUrl,locale:(0,b.Kd)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...null==t?void 0:t.has},map:{...null==t?void 0:t.map},paths:{...null==t?void 0:t.paths},packages:(null==t?void 0:t.packages)||[]}),r={version:l.i8,buildDate:E.r,revision:E.$};return JSON.stringify({esriConfig:e,loaderConfig:n,kernelInfo:r})}()}'`);v=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){A=e||{}}let e;if(v)try{e=new Worker(v,{name:"esri-worker-"+L++})}catch(t){k.warn(O,A),e=new y}else k.warn(O,A),e=new y;return P(e)}();return new T(t,e)}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:n}=t,r=(0,u.jt)();return new Promise(((t,o)=>{const i={resolve:t,reject:o,abortHandle:(0,s.$F)(n,(()=>{this._outJobs.delete(r),this._post({type:Z,jobId:r})}))};this._outJobs.set(r,i),this._post({type:M,jobId:r,modulePath:e})}))}_onMessage(e){const t=(0,u.QM)(e);if(t)switch(t.type){case C:this._onOpenedMessage(t);break;case N:this._onResponseMessage(t);break;case Z:this._onAbortMessage(t);break;case I:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);r&&(r.controller&&r.controller.abort(),t.delete(n))}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:o}=e,i=o?new AbortController:null,a=this._inJobs,c=l.Nv[t];let h;try{if("function"!=typeof c)throw new TypeError(`${t} is not a function`);h=c.call(null,r,{signal:i?i.signal:null})}catch(e){return void this._post({type:N,jobId:n,error:(0,u.AB)(e)})}(0,s.y8)(h)?(a.set(n,{controller:i,promise:h}),h.then((e=>{a.has(n)&&(a.delete(n),this._post({type:N,jobId:n},e))}),(e=>{a.has(n)&&(a.delete(n),e||(e={message:"Error encountered at method"+t}),(0,s.D_)(e)||this._post({type:N,jobId:n,error:(0,u.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:N,jobId:n},h)}_onOpenedMessage(e){var t;const{jobId:n,data:r}=e,o=this._outJobs.get(n);o&&(this._outJobs.delete(n),null==(t=o.abortHandle)||t.remove(),o.resolve(r))}_onResponseMessage(e){var t;const{jobId:n,error:o,data:s}=e,i=this._outJobs.get(n);i&&(this._outJobs.delete(n),null==(t=i.abortHandle)||t.remove(),o?i.reject(r.Z.fromJSON(JSON.parse(o))):i.resolve(s))}_post(e,t,n){return(0,u.oi)(this.worker,e,t,n)}}let R=(0,o.Z)("esri-workers-debug")?1:(0,o.Z)("host-browser")?navigator.hardwareConcurrency-1:0;R||(R=(0,o.Z)("safari")&&(0,o.Z)("mac")||(0,o.Z)("trident")?7:2);let x=0;const D=[];async function j(e,t){const n=new i.Z;return await n.open(e,t),n}async function F(e,t={}){if("string"!=typeof e)throw new r.Z("workers:undefined-module","modulePath is missing");let n=t.strategy||"distributed";if((0,o.Z)("host-webworker")&&!(0,o.Z)("esri-workers")&&(n="local"),"local"===n){let n=await a.default.loadWorker(e);n||(n=await import(e)),(0,s.k_)(t.signal);const r=t.client||n;return j([a.default.connect(n)],{...t,client:r})}if(await async function(){if(K)return K;q=new AbortController;const e=[];for(let t=0;t<R;t++){const n=T.create(t).then((e=>(D[t]=e,e)));e.push(n)}return K=Promise.all(e),K}(),(0,s.k_)(t.signal),"dedicated"===n){const n=x++%R;return j([await D[n].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const n=Math.min(t.maxNumWorkers,R);if(n<R){const r=new Array(n);for(let o=0;o<n;++o){const n=x++%R;r[o]=D[n].open(e,t)}return j(r,t)}}return j(D.map((n=>n.open(e,t))),t)}let q,K=null},8667:(e,t,n)=>{n.d(t,{f3:()=>Z,oq:()=>u,r3:()=>f,jU:()=>d,z7:()=>h,Cz:()=>N,e5:()=>A,ED:()=>b,TE:()=>m,fS:()=>g,D$:()=>C,Y4:()=>D,rd:()=>I,j2:()=>T,kQ:()=>j,wf:()=>P,kK:()=>p,Gg:()=>_,cv:()=>S,Nm:()=>E,CJ:()=>R,sz:()=>x,LV:()=>k,U1:()=>M,og:()=>v,Sp:()=>O,W4:()=>w,G0:()=>L,uh:()=>y}),n(66577);var r=n(78346),o=(n(13473),n(33955));function s(e){var t;return Array.isArray(e)?null==(t=e[0])?void 0:t.spatialReference:null==e?void 0:e.spatialReference}function i(e){return e?Array.isArray(e)?e.map(i):e.toJSON?e.toJSON():e:e}function a(e){return Array.isArray(e)?e.map((e=>(0,o.im)(e))):(0,o.im)(e)}let l;async function c(e,t){return(await async function(){return l||(l=(0,r.bA)("geometryEngineWorker",{strategy:"distributed"})),l}()).invoke("executeGEOperation",{operation:e,parameters:i(t)})}async function u(e,t){return a(await c("clip",[s(e),e,t]))}async function h(e,t){return a(await c("cut",[s(e),e,t]))}function f(e,t){return c("contains",[s(e),e,t])}function d(e,t){return c("crosses",[s(e),e,t])}function m(e,t,n){return c("distance",[s(e),e,t,n])}function g(e,t){return c("equals",[s(e),e,t])}function p(e,t){return c("intersects",[s(e),e,t])}function w(e,t){return c("touches",[s(e),e,t])}function y(e,t){return c("within",[s(e),e,t])}function b(e,t){return c("disjoint",[s(e),e,t])}function E(e,t){return c("overlaps",[s(e),e,t])}function k(e,t,n){return c("relate",[s(e),e,t,n])}function _(e){return c("isSimple",[s(e),e])}async function v(e){return a(await c("simplify",[s(e),e]))}async function A(e,t){return a(await c("difference",[s(e),e,t]))}async function O(e,t){return a(await c("symmetricDifference",[s(e),e,t]))}async function P(e,t){return a(await c("intersect",[s(e),e,t]))}async function L(e,t=null){const n=function(e,t){let n;return Array.isArray(e)?n=e:(n=[],n.push(e),null!=t&&n.push(t)),n}(e,t);return a(await c("union",[s(n),n]))}async function S(e,t,n,r,o,i){return a(await c("offset",[s(e),e,t,n,r,o,i]))}async function Z(e,t,n,r=!1){const o=[s(e),e,t,n,r];return a(await c("buffer",o))}async function I(e,t,n,r,o,i){const l=[s(e),e,t,n,r,o,i];return a(await c("geodesicBuffer",l))}async function M(e,t,n){var r;if(null==e)throw new Error("Illegal Argument Exception");const o=e.spatialReference;n=null!=(r=n)?r:function(e){return"xmin"in e?e.center:"x"in e?e:e.extent.center}(e);const s=e.constructor.fromJSON(await c("rotate",[o,e,t,n]));return s.spatialReference=o,s}async function C(e,t,n,r){return a(await c("generalize",[s(e),e,t,n,r]))}async function N(e,t,n){return a(await c("densify",[s(e),e,t,n]))}async function T(e,t,n,r=0){return a(await c("geodesicDensify",[s(e),e,t,n,r]))}function R(e,t){return c("planarArea",[s(e),e,t])}function x(e,t){return c("planarLength",[s(e),e,t])}function D(e,t,n){return c("geodesicArea",[s(e),e,t,n])}function j(e,t,n){return c("geodesicLength",[s(e),e,t,n])}},2587:(e,t,n)=>{n(90344),n(18848),n(940),n(70171);var r=n(94443),o=n(3172),s=n(20102),i=n(70586);async function a(e){if((0,i.pC)(l.fetchBundleAsset))return l.fetchBundleAsset(e);const t=await(0,o.default)(e,{responseType:"text"});return JSON.parse(t.data)}const l={};var c,u=n(99880);(0,r.tz)((c={pattern:"esri/",location:u.V},new class{constructor({base:e="",pattern:t,location:n=new URL(window.location.href)}){let r;r="string"==typeof n?e=>new URL(e,new URL(n,window.location.href)).href:n instanceof URL?e=>new URL(e,n).href:n,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=r,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,n,o){const i=t.exec(n);if(!i)throw new s.Z("esri-intl:invalid-bundle",`Bundle id "${n}" is not compatible with the pattern "${t}"`);const l=i[1]?`${i[1]}/`:"",c=i[2],u=(0,r.Su)(o),h=`${l}${c}.json`,f=u?`${l}${c}_${u}.json`:h;let d;try{d=await a(e(f))}catch(t){if(f===h)throw new s.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:t});try{d=await a(e(h))}catch(e){throw new s.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:e})}}return d}(this.getAssetUrl,this.matcher,e,t)}}(c)))},90344:(e,t,n)=>{n.d(t,{Ze:()=>p,p6:()=>w});var r=n(35454),o=n(70171);const s={year:"numeric",month:"numeric",day:"numeric"},i={year:"numeric",month:"long",day:"numeric"},a={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},c={hour:"numeric",minute:"numeric"},u={...c,second:"numeric"},h={"short-date":s,"short-date-short-time":{...s,...c},"short-date-short-time-24":{...s,...c,hour12:!1},"short-date-long-time":{...s,...u},"short-date-long-time-24":{...s,...u,hour12:!1},"short-date-le":s,"short-date-le-short-time":{...s,...c},"short-date-le-short-time-24":{...s,...c,hour12:!1},"short-date-le-long-time":{...s,...u},"short-date-le-long-time-24":{...s,...u,hour12:!1},"long-month-day-year":i,"long-month-day-year-short-time":{...i,...c},"long-month-day-year-short-time-24":{...i,...c,hour12:!1},"long-month-day-year-long-time":{...i,...u},"long-month-day-year-long-time-24":{...i,...u,hour12:!1},"day-short-month-year":a,"day-short-month-year-short-time":{...a,...c},"day-short-month-year-short-time-24":{...a,...c,hour12:!1},"day-short-month-year-long-time":{...a,...u},"day-short-month-year-long-time-24":{...a,...u,hour12:!1},"long-date":l,"long-date-short-time":{...l,...c},"long-date-short-time-24":{...l,...c,hour12:!1},"long-date-long-time":{...l,...u},"long-date-long-time-24":{...l,...u,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":c,"long-time":u},f=(0,r.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),d=(f.apiValues,f.toJSON.bind(f),f.fromJSON.bind(f),{ar:"ar-u-nu-latn-ca-gregory"});let m=new WeakMap,g=h["short-date-short-time"];function p(e){return h[e]||null}function w(e,t){return function(e){const t=e||g;if(!m.has(t)){const e=(0,o.Kd)(),n=d[(0,o.Kd)()]||e;m.set(t,new Intl.DateTimeFormat(n,t))}return m.get(t)}(t).format(e)}(0,o.Ze)((()=>{m=new WeakMap,g=h["short-date-short-time"]}))},94443:(e,t,n)=>{n.d(t,{ME:()=>d,Su:()=>m,tz:()=>f});var r=n(20102),o=n(95330),s=n(70171);const i=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,a={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){var t;return null!=(t=a[e])&&t}const c=[],u=new Map;function h(e){for(const t of u.keys())g(e.pattern,t)&&u.delete(t)}function f(e){return c.includes(e)||(h(e),c.unshift(e)),{remove(){const t=c.indexOf(e);t>-1&&(c.splice(t,1),h(e))}}}async function d(e){const t=(0,s.Kd)();u.has(e)||u.set(e,async function(e,t){const n=[];for(const r of c)if(g(r.pattern,e))try{return await r.fetchMessageBundle(e,t)}catch(e){n.push(e)}if(n.length)throw new r.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:n});throw new r.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const n=u.get(e);return await p.add(n),n}function m(e){if(!i.test(e))return null;const[,t,n]=i.exec(e),r=t+(n?"-"+n.toUpperCase():"");return l(r)?r:l(t)?t:null}function g(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,s.Ze)((()=>{u.clear()}));const p=new class{constructor(){this._numLoading=0}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,o.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(e,t,n)=>{n.d(t,{sh:()=>l,uf:()=>c});var r=n(70586),o=n(70171);const s={ar:"ar-u-nu-latn"};let i=new WeakMap,a={};function l(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function c(e,t){return function(e){const t=e||a;if(!i.has(t)){const n=(0,o.Kd)(),r=s[(0,o.Kd)()]||n;i.set(t,new Intl.NumberFormat(r,e))}return(0,r.j0)(i.get(t))}(t).format(e)}(0,o.Ze)((()=>{i=new WeakMap,a={}}))},940:(e,t,n)=>{n.d(t,{n:()=>c});var r=n(92604),o=n(78286),s=n(19153),i=n(90344),a=n(18848);const l=r.Z.getLogger("esri.intl");function c(e,t,n={}){const{format:r={}}=n;return(0,s.gx)(e,(e=>function(e,t,n){let r,s;const i=e.indexOf(":");if(-1===i?r=e.trim():(r=e.slice(0,i).trim(),s=e.slice(i+1).trim()),!r)return"";const a=(0,o.hS)(r,t);if(null==a)return"";const l=n[s]||n[r];return l?u(a,l):s?h(a,s):f(a)}(e,t,r)))}function u(e,t){switch(t.type){case"date":return(0,i.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),f(e)}}function h(e,t){switch(t.toLowerCase()){case"dateformat":return(0,i.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,i.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):f(e)}}function f(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,i.p6)(e):""}}},3172:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var r=n(68773),o=n(40330),s=n(20102),i=n(80442),a=n(22974),l=n(70586),c=n(95330),u=n(17452),h=n(71058),f=n(85958);async function d(e,t){var a;const f=(0,u.HK)(e),w=(0,u.jc)(e);w||f||(e=(0,u.Fv)(e));const y={url:e,requestOptions:{...(0,l.Wg)(t)}};let b=(0,u.oh)(e);if(b){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let n,r;try{r=await e.before(t)}catch(e){n=v("request:interceptor",e,t)}if((r instanceof Error||r instanceof s.Z)&&(n=v("request:interceptor",r,t)),n)throw e.error&&e.error(n),n;return r}}(b,y);if(null!=e)return{data:e,getHeader:E,requestOptions:y.requestOptions,url:y.url};b.after||b.error||(b=null)}if(e=y.url,"image"===(t=y.requestOptions).responseType){if((0,i.Z)("host-webworker")||(0,i.Z)("host-node"))throw v("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),y)}else if(f)throw v("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),y);if("head"===t.method){if(t.body)throw v("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),y);if(f||w)throw v("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),y)}if(await async function(){(0,i.Z)("host-webworker")?m||(m=await Promise.all([n.e(102),n.e(9884)]).then(n.bind(n,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(e,t);const k=new AbortController;(0,c.fu)(t,(()=>k.abort()));const _={controller:k,credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:b,params:y,redoRequest:!1,useIdentity:g.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},L=await async function(e){var t,n;let s,i;await async function(e){const t=e.params.url,n=e.params.requestOptions,s=e.controller.signal,i=n.body;let a=null,l=null,u=null;if(p&&"HTMLFormElement"in globalThis&&(i instanceof FormData?a=i:i instanceof HTMLFormElement&&(l=i,a=new FormData(l))),"string"==typeof i&&(u=i),e.fetchOptions={cache:n.cacheBust&&!d._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:n.headers||{},method:"head"===n.method?"HEAD":"GET",mode:"cors",redirect:"follow",signal:s},(a||u)&&(e.fetchOptions.body=a||u),"anonymous"===n.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||n.query&&n.query.token||a&&a.get&&a.get("token")||l&&l.elements.token),!e.hasToken&&r.Z.apiKey&&(0,h.r)(t)&&(n.query||(n.query={}),n.query.token=r.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!O(t)&&!(0,c.Hc)(s)){let r;"immediate"===n.authMode?(await A(),r=await o.id.getCredential(t,{signal:s}),e.credential=r):"no-prompt"===n.authMode?(await A(),r=await o.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=r):o.id&&(r=o.id.findCredential(t)),r&&(e.credentialToken=r.token,e.useSSL=!!r.ssl)}}(e);try{do{[s,i]=await P(e)}while(!await S(e,s,i))}catch(t){const n=v("request:server",t,e.params,s);throw n.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(n),n}const a=e.params.url;if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)&&!e.hasToken&&!e.credentialToken&&null!=(t=i)&&null!=(n=t.user)&&n.username&&!(0,u.kl)(a)){const e=(0,u.P$)(a,!0);e&&g.trustedServers.push(e)}const l=e.credential;if(l&&o.id){const e=o.id.findServerInfo(l.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=o.id.findCredential(t,l.userId);e&&-1===o.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:i,getHeader:s?e=>s.headers.get(e):E,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(_);return null==(a=b)||null==a.after||a.after(L),L}let m;const g=r.Z.request,p="FormData"in globalThis,w=[499,498,403,401],y=["COM_0056","COM_0057","SB_0008"],b=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],E=()=>null,k=Symbol();function _(e){const t=(0,u.P$)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,u.kl)(t)}function v(e,t,n,r){let o="Error";const i={url:n.url,requestOptions:n.requestOptions,getHeader:E,ssl:!1};if(t instanceof s.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=n.url,t.details.requestOptions=n.requestOptions):t.details=i,t;if(t){const e=r&&(e=>r.headers.get(e)),n=r&&r.status,s=t.message;s&&(o=s),e&&(i.getHeader=e),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||n||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=k in t?t[k]:t}return(0,c.D_)(t)?(0,c.zE)():new s.Z(e,o,i)}async function A(){o.id||await Promise.all([n.e(280),n.e(2785),n.e(102),n.e(8536)]).then(n.bind(n,85976))}function O(e){return b.some((t=>t.test(e)))}async function P(e){let t=e.params.url;const n=e.params.requestOptions,r=e.fetchOptions,s=(0,u.jc)(t)||(0,u.HK)(t),a=n.responseType||"json",l=s?0:null!=n.timeout?n.timeout:g.timeout;let h=!1;if(!s){e.useSSL&&(t=(0,u.hO)(t)),n.cacheBust&&"default"===r.cache&&(t=(0,u.ZN)(t,"request.preventCache",Date.now()));let s={...n.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,u.B7)(s);(0,i.Z)("esri-url-encodes-apostrophe")&&(a=a.replace(/'/g,"%27"));const l=t.length+1+a.length;let c;h="delete"===n.method||"post"===n.method||"put"===n.method||!!n.body||l>g.maxUrlLength;const f=n.useProxy||!!(0,u.ed)(t);if(f){const e=(0,u.b7)(t);c=e.path,!h&&c.length+1+l>g.maxUrlLength&&(h=!0),e.query&&(s={...e.query,...s})}if("HEAD"===r.method&&(h||f)){if(h){if(l>g.maxUrlLength)throw v("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw v("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(f)throw v("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(h?(r.method="delete"===n.method?"DELETE":"put"===n.method?"PUT":"POST",n.body?t=(0,u.fl)(t,s):(r.body=(0,u.B7)(s),r.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.fl)(t,s),f&&(e.useProxy=!0,t=`${c}?${t}`),s.token&&p&&r.body instanceof FormData){const e=r.body;e.set?e.set("token",s.token):e.append("token",s.token)}if(n.hasOwnProperty("withCredentials"))e.withCredentials=n.withCredentials;else if(!(0,u.D6)(t,(0,u.TI)()))if((0,u.kl)(t))e.withCredentials=!0;else if(o.id){const n=o.id.findServerInfo(t);n&&n.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(r.credentials="include")}let f,m,w=0,y=!1;l>0&&(w=setTimeout((()=>{y=!0,e.controller.abort()}),l));try{if("native-request-init"===n.responseType)m=r,m.url=t;else if("image"!==n.responseType||"default"!==r.cache||"GET"!==r.method||h||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(n.headers)||!s&&!e.useProxy&&g.proxyUrl&&!_(t)){if(f=await d._abortableFetch(t,r),e.useProxy||function(e){const t=(0,u.P$)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===n.responseType)m=f;else if("HEAD"!==r.method)if(f.ok){switch(a){case"array-buffer":m=await f.arrayBuffer();break;case"blob":case"image":m=await f.blob();break;default:m=await f.text()}if(w&&(clearTimeout(w),w=0),"json"===a||"xml"===a||"document"===a)if(m)switch(a){case"json":m=JSON.parse(m);break;case"xml":m=L(m,"application/xml");break;case"document":m=L(m,"text/html")}else m=null;if(m){if("array-buffer"===a||"blob"===a){const e=f.headers.get("Content-Type");if(/application\/json|text\/plain/i.test(e)&&m["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(m).json();e.error&&(m=e)}catch{}}"image"===a&&m instanceof Blob&&(m=await Z(URL.createObjectURL(m),e,!0))}}else m=await f.text()}else m=await Z(t,e)}catch(r){if("AbortError"===r.name){if(y)throw new Error("Timeout exceeded");throw(0,c.zE)("Request canceled")}if(!(!f&&r instanceof TypeError&&g.proxyUrl)||n.body||"delete"===n.method||"head"===n.method||"post"===n.method||"put"===n.method||e.useProxy||_(t))throw r;e.redoRequest=!0,(0,u.tD)({proxyUrl:g.proxyUrl,urlPrefix:(0,u.P$)(t)})}finally{w&&clearTimeout(w)}return[f,m]}function L(e,t){let n;try{n=(new DOMParser).parseFromString(e,t)}catch{}if(!n||n.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return n}async function S(e,t,n){if(e.redoRequest)return e.redoRequest=!1,!1;const r=e.params.requestOptions;if(!t||"native"===r.responseType||"native-request-init"===r.responseType)return!0;let s,i,a,l;if(!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[k]=n,s;null!=n&&n.error&&(s=n.error),s&&(i=Number(s.code),a=s.hasOwnProperty("subcode")?Number(s.subcode):null,l=s.messageCode,l=l&&l.toUpperCase());const c=r.authMode;if(403===i&&(4===a||s.message&&s.message.toLowerCase().indexOf("ssl")>-1&&-1===s.message.toLowerCase().indexOf("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==c||498===i)&&-1!==w.indexOf(i)&&!O(e.params.url)&&(403!==i||-1===y.indexOf(l)&&(null==a||2===a&&e.credentialToken))){await A();try{const t=await o.id.getCredential(e.params.url,{error:v("request:server",s,e.params),prompt:"no-prompt"!==c,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===c)return e.credential=null,e.credentialToken=null,!1;s=t}}if(s)throw s;return!0}function Z(e,t,n=!1){const r=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.src=e,(0,f.f)(o,e,n,r)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,n)=>{n.d(t,{r:()=>s});var r=n(17452);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(e){const t=(0,r.P$)(e,!0);return t&&t.endsWith(".arcgis.com")&&!o.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,n)=>{n.d(t,{f:()=>i});var r=n(80442),o=n(70586),s=n(95330);function i(e,t,n=!1,i){return new Promise(((l,c)=>{if((0,s.Hc)(i))return void c(a());let u=()=>{d(),c(new Error(`Unable to load ${t}`))},h=()=>{const t=e;d(),l(t)},f=()=>{if(!e)return;const t=e;d(),t.src="",c(a())};const d=()=>{(0,r.Z)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",h)),u=null,h=null,e=null,(0,o.pC)(i)&&i.removeEventListener("abort",f),f=null,n&&URL.revokeObjectURL(t)};(0,o.pC)(i)&&i.addEventListener("abort",f),(0,r.Z)("esri-image-decode")?e.decode().then(h,u):(e.addEventListener("error",u),e.addEventListener("load",h))}))}function a(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8163],{95401:(t,e,n)=>{n.d(e,{e:()=>a});var r,o,i,s={exports:{}};r=s,o=function(){function t(t,n,o){o=o||2;var i,s,a,c,u,p,h,f=n&&n.length,g=f?n[0]*o:t.length,d=e(t,0,g,o,!0),x=[];if(!d||d.next===d.prev)return x;if(f&&(d=l(t,n,d,o)),t.length>80*o){i=a=t[0],s=c=t[1];for(var m=o;m<g;m+=o)(u=t[m])<i&&(i=u),(p=t[m+1])<s&&(s=p),u>a&&(a=u),p>c&&(c=p);h=0!==(h=Math.max(a-i,c-s))?1/h:0}return r(d,x,o,i,s,h),x}function e(t,e,n,r,o){var i,s;if(o===F(t,e,n,r)>0)for(i=e;i<n;i+=r)s=Z(i,t[i],t[i+1],s);else for(i=n-r;i>=e;i-=r)s=Z(i,t[i],t[i+1],s);if(s&&v(s,s.next)){var a=s.next;_(s),s=a}return s}function n(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!v(r,r.next)&&0!==y(r.prev,r,r.next))r=r.next;else{var o=r.prev;if(_(r),(r=e=o)===r.next)break;n=!0}}while(n||r!==e);return e}function r(t,e,l,c,u,p,h){if(t){!h&&p&&f(t,c,u,p);for(var g,d,x=t;t.prev!==t.next;)if(g=t.prev,d=t.next,p?i(t,c,u,p):o(t))e.push(g.i/l),e.push(t.i/l),e.push(d.i/l),_(t),t=d.next,x=d.next;else if((t=d)===x){h?1===h?r(t=s(n(t),e,l),e,l,c,u,p,2):2===h&&a(t,e,l,c,u,p):r(n(t),e,l,c,u,p,1);break}}}function o(t){var e=t.prev,n=t,r=t.next;if(y(e,n,r)>=0)return!1;for(var o=t.next.next;o!==t.prev;){if(x(e.x,e.y,n.x,n.y,r.x,r.y,o.x,o.y)&&y(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function i(t,e,n,r){var o=t.prev,i=t,s=t.next;if(y(o,i,s)>=0)return!1;for(var a=o.x<i.x?o.x<s.x?o.x:s.x:i.x<s.x?i.x:s.x,l=o.y<i.y?o.y<s.y?o.y:s.y:i.y<s.y?i.y:s.y,c=o.x>i.x?o.x>s.x?o.x:s.x:i.x>s.x?i.x:s.x,u=o.y>i.y?o.y>s.y?o.y:s.y:i.y>s.y?i.y:s.y,p=g(a,l,e,n,r),h=g(c,u,e,n,r),f=t.prevZ,d=t.nextZ;f&&f.z>=p&&d&&d.z<=h;){if(f!==t.prev&&f!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,d!==t.prev&&d!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,d.x,d.y)&&y(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;f&&f.z>=p;){if(f!==t.prev&&f!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;d&&d.z<=h;){if(d!==t.prev&&d!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,d.x,d.y)&&y(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function s(t,e,r){var o=t;do{var i=o.prev,s=o.next.next;!v(i,s)&&w(i,o,o.next,s)&&A(i,s)&&A(s,i)&&(e.push(i.i/r),e.push(o.i/r),e.push(s.i/r),_(o),_(o.next),o=t=s),o=o.next}while(o!==t);return n(o)}function a(t,e,o,i,s,a){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&m(l,c)){var u=M(l,c);return l=n(l,l.next),u=n(u,u.next),r(l,e,o,i,s,a),void r(u,e,o,i,s,a)}c=c.next}l=l.next}while(l!==t)}function l(t,r,o,i){var s,a,l,u=[];for(s=0,a=r.length;s<a;s++)(l=e(t,r[s]*i,s<a-1?r[s+1]*i:t.length,i,!1))===l.next&&(l.steiner=!0),u.push(d(l));for(u.sort(c),s=0;s<u.length;s++)o=n(o=p(u[s],o),o.next);return o}function c(t,e){return t.x-e.x}function u(t){if(t.next.prev===t)return t;let e=t;for(;;){const n=e.next;if(n.prev===e||n===e||n===t)break;e=n}return e}function p(t,e){var r=function(t,e){var n,r=e,o=t.x,i=t.y,s=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var a=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=o&&a>s){if(s=a,a===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(o===s)return n;var l,c=n,u=n.x,p=n.y,f=1/0;r=n;do{o>=r.x&&r.x>=u&&o!==r.x&&x(i<p?o:s,i,u,p,i<p?s:o,i,r.x,r.y)&&(l=Math.abs(i-r.y)/(o-r.x),A(r,t)&&(l<f||l===f&&(r.x>n.x||r.x===n.x&&h(n,r)))&&(n=r,f=l)),r=r.next}while(r!==c);return n}(t,e);if(!r)return e;var o=M(r,t),i=n(r,r.next);let s=u(o);return n(s,s.next),i=u(i),u(e===r?i:e)}function h(t,e){return y(t.prev,t,e.prev)<0&&y(e.next,t,t.next)<0}function f(t,e,n,r){var o=t;do{null===o.z&&(o.z=g(o.x,o.y,e,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==t);o.prevZ.nextZ=null,o.prevZ=null,function(t){var e,n,r,o,i,s,a,l,c=1;do{for(n=t,t=null,i=null,s=0;n;){for(s++,r=n,a=0,e=0;e<c&&(a++,r=r.nextZ);e++);for(l=c;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(o=n,n=n.nextZ,a--):(o=r,r=r.nextZ,l--),i?i.nextZ=o:t=o,o.prevZ=i,i=o;n=r}i.nextZ=null,c*=2}while(s>1)}(o)}function g(t,e,n,r,o){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*o)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*o)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function d(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function x(t,e,n,r,o,i,s,a){return(o-s)*(e-a)-(t-s)*(i-a)>=0&&(t-s)*(r-a)-(n-s)*(e-a)>=0&&(n-s)*(i-a)-(o-s)*(r-a)>=0}function m(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&w(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(A(t,e)&&A(e,t)&&function(t,e){var n=t,r=!1,o=(t.x+e.x)/2,i=(t.y+e.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(y(t.prev,t,e.prev)||y(t,e.prev,e))||v(t,e)&&y(t.prev,t,t.next)>0&&y(e.prev,e,e.next)>0)}function y(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function v(t,e){return t.x===e.x&&t.y===e.y}function w(t,e,n,r){var o=C(y(t,e,n)),i=C(y(t,e,r)),s=C(y(n,r,t)),a=C(y(n,r,e));return o!==i&&s!==a||!(0!==o||!b(t,n,e))||!(0!==i||!b(t,r,e))||!(0!==s||!b(n,t,r))||!(0!==a||!b(n,e,r))}function b(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function C(t){return t>0?1:t<0?-1:0}function A(t,e){return y(t.prev,t,t.next)<0?y(t,e,t.next)>=0&&y(t,t.prev,e)>=0:y(t,e,t.prev)<0||y(t,t.next,e)<0}function M(t,e){var n=new T(t.i,t.x,t.y),r=new T(e.i,e.x,e.y),o=t.next,i=e.prev;return t.next=e,e.prev=t,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function Z(t,e,n,r){var o=new T(t,e,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function _(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function T(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function F(t,e,n,r){for(var o=0,i=e,s=n-r;i<n;i+=r)o+=(t[s]-t[i])*(t[i+1]+t[s+1]),s=i;return o}return t.deviation=function(t,e,n,r){var o=e&&e.length,i=o?e[0]*n:t.length,s=Math.abs(F(t,0,i,n));if(o)for(var a=0,l=e.length;a<l;a++){var c=e[a]*n,u=a<l-1?e[a+1]*n:t.length;s-=Math.abs(F(t,c,u,n))}var p=0;for(a=0;a<r.length;a+=3){var h=r[a]*n,f=r[a+1]*n,g=r[a+2]*n;p+=Math.abs((t[h]-t[g])*(t[f+1]-t[h+1])-(t[h]-t[f])*(t[g+1]-t[h+1]))}return 0===s&&0===p?0:Math.abs((p-s)/s)},t.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,o=0;o<t.length;o++){for(var i=0;i<t[o].length;i++)for(var s=0;s<e;s++)n.vertices.push(t[o][i][s]);o>0&&(r+=t[o-1].length,n.holes.push(r))}return n},t},void 0!==(i=o())&&(r.exports=i);const a=s.exports},62540:(t,e,n)=>{n.d(e,{Z:()=>m});var r,o=n(43697),i=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011),p=n(75215),h=n(65542),f=n(60746),g=n(71630);const d=a.Z.getLogger("esri.geometry.support.MeshComponent");let x=r=class extends i.wq{constructor(t){super(t),this.faces=null,this.material=null,this.shading="source",this.trustSourceNormals=!1}static from(t){return(0,p.TJ)(r,t)}castFaces(t){return(0,g.XQ)(t,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},d)}castMaterial(t){return(0,p.TJ)(t&&"object"==typeof t&&("metallic"in t||"roughness"in t||"metallicRoughnessTexture"in t)?f.Z:h.Z,t)}clone(){return new r({faces:(0,s.d9)(this.faces),shading:this.shading,material:(0,s.d9)(this.material),trustSourceNormals:this.trustSourceNormals})}cloneWithDeduplication(t,e){const n={faces:(0,s.d9)(this.faces),shading:this.shading,material:this.material?this.material.cloneWithDeduplication(t,e):null,trustSourceNormals:this.trustSourceNormals};return new r(n)}};(0,o._)([(0,l.Cb)({json:{write:!0}})],x.prototype,"faces",void 0),(0,o._)([(0,c.p)("faces")],x.prototype,"castFaces",null),(0,o._)([(0,l.Cb)({type:h.Z,json:{write:!0}})],x.prototype,"material",void 0),(0,o._)([(0,c.p)("material")],x.prototype,"castMaterial",null),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],x.prototype,"shading",void 0),(0,o._)([(0,l.Cb)({type:Boolean})],x.prototype,"trustSourceNormals",void 0),x=r=(0,o._)([(0,u.j)("esri.geometry.support.MeshComponent")],x);const m=x},65542:(t,e,n)=>{n.d(e,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(96674),a=n(70586),l=n(5600),c=(n(67676),n(80442),n(75215),n(52011)),u=n(81118);let p=r=class extends s.wq{constructor(t){super(t),this.color=null,this.colorTexture=null,this.normalTexture=null,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(t,e){const n=(0,a.pC)(t)?t.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(e));return(0,a.pC)(t)&&t.set(this,o),o}clonePropertiesWithDeduplication(t){return{color:(0,a.pC)(this.color)?this.color.clone():null,colorTexture:(0,a.pC)(this.colorTexture)?this.colorTexture.cloneWithDeduplication(t):null,normalTexture:(0,a.pC)(this.normalTexture)?this.normalTexture.cloneWithDeduplication(t):null,alphaMode:this.alphaMode,alphaCutoff:this.alphaCutoff,doubleSided:this.doubleSided}}};(0,o._)([(0,l.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"color",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"colorTexture",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"normalTexture",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaMode",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaCutoff",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"doubleSided",void 0),p=r=(0,o._)([(0,c.j)("esri.geometry.support.MeshMaterial")],p);const h=p},60746:(t,e,n)=>{n.d(e,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(70586),a=n(5600),l=(n(67676),n(80442),n(75215),n(52011)),c=n(65542),u=n(81118);let p=r=class extends c.Z{constructor(t){super(t),this.emissiveColor=null,this.emissiveTexture=null,this.occlusionTexture=null,this.metallic=1,this.roughness=1,this.metallicRoughnessTexture=null}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(t,e){const n=(0,s.pC)(t)?t.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(e));return(0,s.pC)(t)&&t.set(this,o),o}clonePropertiesWithDeduplication(t){return{...super.clonePropertiesWithDeduplication(t),emissiveColor:(0,s.pC)(this.emissiveColor)?this.emissiveColor.clone():null,emissiveTexture:(0,s.pC)(this.emissiveTexture)?this.emissiveTexture.cloneWithDeduplication(t):null,occlusionTexture:(0,s.pC)(this.occlusionTexture)?this.occlusionTexture.cloneWithDeduplication(t):null,metallic:this.metallic,roughness:this.roughness,metallicRoughnessTexture:(0,s.pC)(this.metallicRoughnessTexture)?this.metallicRoughnessTexture.cloneWithDeduplication(t):null}}};(0,o._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"emissiveColor",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"emissiveTexture",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"occlusionTexture",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"metallic",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"roughness",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"metallicRoughnessTexture",void 0),p=r=(0,o._)([(0,l.j)("esri.geometry.support.MeshMaterialMetallicRoughness")],p);const h=p},81118:(t,e,n)=>{n.d(e,{Z:()=>m});var r=n(43697),o=(n(80442),n(96674)),i=n(5600),s=(n(67676),n(75215)),a=n(71715),l=n(52011),c=n(30556),u=n(25929);n(22021);let p=null,h=!0;var f;const g=new WeakMap;let d=0,x=f=class extends o.wq{constructor(t){super(t),this.wrap="repeat"}get url(){return this._get("url")||null}set url(t){this._set("url",t),t&&this._set("data",null)}get data(){return this._get("data")||null}set data(t){this._set("data",t),t&&this._set("url",null)}writeData(t,e,n,r){if(t instanceof HTMLImageElement){const o={type:"image-element",src:(0,u.t)(t.src,r),crossOrigin:t.crossOrigin};e[n]=o}else if(t instanceof HTMLCanvasElement){const r=t.getContext("2d").getImageData(0,0,t.width,t.height),o={type:"canvas-element",imageData:this._encodeImageData(r)};e[n]=o}else if(t instanceof HTMLVideoElement){const o={type:"video-element",src:(0,u.t)(t.src,r),autoplay:t.autoplay,loop:t.loop,muted:t.muted,crossOrigin:t.crossOrigin,preload:t.preload};e[n]=o}else{const r={type:"image-data",imageData:this._encodeImageData(t)};e[n]=r}}readData(t){switch(t.type){case"image-element":{const e=new Image;return e.src=t.src,e.crossOrigin=t.crossOrigin,e}case"canvas-element":{const e=this._decodeImageData(t.imageData),n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").putImageData(e,0,0),n}case"image-data":return this._decodeImageData(t.imageData);case"video-element":{const e=document.createElement("video");return e.src=t.src,e.crossOrigin=t.crossOrigin,e.autoplay=t.autoplay,e.loop=t.loop,e.muted=t.muted,e.preload=t.preload,e}default:return}}get transparent(){const t=this.data,e=this.url;if(t instanceof HTMLCanvasElement)return this._imageDataContainsTransparent(t.getContext("2d").getImageData(0,0,t.width,t.height));if(t instanceof ImageData)return this._imageDataContainsTransparent(t);if(e){const t=e.substr(e.length-4,4).toLowerCase(),n=e.substr(0,15).toLocaleLowerCase();if(".png"===t||"data:image/png;"===n)return!0}return!1}set transparent(t){null!=t?this._override("transparent",t):this._clearOverride("transparent")}get contentHash(){const t="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",e=(e="")=>`d:${e},t:${this.transparent},w:${t}`;return null!=this.url?e(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?e(this.data.src):(g.has(this.data)||g.set(this.data,++d),e(g.get(this.data))):e()}clone(){const t={url:this.url,data:this.data,wrap:this._cloneWrap()};return new f(t)}cloneWithDeduplication(t){const e=t.get(this);if(e)return e;const n=this.clone();return t.set(this,n),n}_cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}_encodeImageData(t){let e="";for(let n=0;n<t.data.length;n++)e+=String.fromCharCode(t.data[n]);return{data:btoa(e),width:t.width,height:t.height}}_decodeImageData(t){const e=atob(t.data),n=new Uint8ClampedArray(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return function(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(h)try{return new ImageData(t,e,n)}catch(t){h=!1}const o=function(t,e,n){return n||(p||(p=document.createElement("canvas"),p.width=1,p.height=1),n=p),n.getContext("2d").createImageData(t,e)}(e,n,void 0);return o.data.set(t,0),o}(n,t.width,t.height)}_imageDataContainsTransparent(t){for(let e=3;e<t.data.length;e+=4)if(255!==t.data[e])return!0;return!1}static from(t){return"string"==typeof t?new f({url:t}):t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof ImageData||t instanceof HTMLVideoElement?new f({data:t}):(0,s.TJ)(f,t)}};(0,r._)([(0,i.Cb)({type:String,json:{write:u.w}})],x.prototype,"url",null),(0,r._)([(0,i.Cb)({json:{write:{overridePolicy(){return{enabled:!this.url}}}}}),(0,i.Cb)()],x.prototype,"data",null),(0,r._)([(0,c.c)("data")],x.prototype,"writeData",null),(0,r._)([(0,a.r)("data")],x.prototype,"readData",null),(0,r._)([(0,i.Cb)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],x.prototype,"transparent",null),(0,r._)([(0,i.Cb)({json:{write:!0}})],x.prototype,"wrap",void 0),(0,r._)([(0,i.Cb)({readOnly:!0})],x.prototype,"contentHash",null),x=f=(0,r._)([(0,l.j)("esri.geometry.support.MeshTexture")],x);const m=x},71630:(t,e,n)=>{n.d(e,{QL:()=>h,XQ:()=>g,ZP:()=>x});var r,o=n(43697),i=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011);const p=a.Z.getLogger("esri.geometry.support.MeshVertexAttributes");let h=r=class extends i.wq{constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return g(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},p)}castPosition(t){return t&&t instanceof Float32Array&&p.warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),g(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},p)}castUv(t){return g(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},p)}castNormal(t){return g(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},p)}castTangent(t){return g(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},p)}clone(){const t={position:(0,s.d9)(this.position),uv:(0,s.d9)(this.uv),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),color:(0,s.d9)(this.color)};return new r(t)}clonePositional(){const t={position:(0,s.d9)(this.position),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),uv:this.uv,color:this.color};return new r(t)}};function f(t,e,n,r){const{loggerTag:o,stride:i}=e;return t.length%i!=0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new n([])):t}function g(t,e,n,r,o){if(!t)return t;if(t instanceof e)return f(t,r,e,o);for(const i of n)if(t instanceof i)return f(new e(t),r,e,o);if(Array.isArray(t))return f(new e(t),r,e,o);{const r=n.map((t=>`'${t.name}'`));return o.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new e([])}}function d(t,e,n){e[n]=function(t){const e=new Array(t.length);for(let n=0;n<t.length;n++)e[n]=t[n];return e}(t)}(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"color",void 0),(0,o._)([(0,c.p)("color")],h.prototype,"castColor",null),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:d}})],h.prototype,"position",void 0),(0,o._)([(0,c.p)("position")],h.prototype,"castPosition",null),(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"uv",void 0),(0,o._)([(0,c.p)("uv")],h.prototype,"castUv",null),(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"normal",void 0),(0,o._)([(0,c.p)("normal")],h.prototype,"castNormal",null),(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"tangent",void 0),(0,o._)([(0,c.p)("tangent")],h.prototype,"castTangent",null),h=r=(0,o._)([(0,u.j)("esri.geometry.support.MeshVertexAttributes")],h);const x=h},47545:(t,e,n)=>{n.d(e,{d:()=>o});var r=n(22021);function o(t,e,n){var o;const c=t.byteLength/(4*e),u=new Uint32Array(t,0,c*e);let p=new Uint32Array(c);const h=null!=(o=null==n?void 0:n.minReduction)?o:0,f=(null==n?void 0:n.originalIndices)||null,g=f?f.length:0,d=(null==n?void 0:n.componentOffsets)||null;let x=0;if(d)for(let t=0;t<d.length-1;t++){const e=d[t+1]-d[t];e>x&&(x=e)}else x=c;const m=Math.floor(1.1*x)+1;(null==l||l.length<2*m)&&(l=new Uint32Array((0,r.Sf)(2*m)));for(let t=0;t<2*m;t++)l[t]=0;let y=0;const v=!!d&&!!f,w=v?g:c,b=v?new Uint32Array(g):null,C=1.96;let A=0!==h?Math.ceil(4*C*C/(h*h)*h*(1-h)):w,M=1,Z=d?d[1]:w;for(let t=0;t<w;t++){if(t===A){const e=1-y/t;if(e+C*Math.sqrt(e*(1-e)/t)<h)return null;A*=2}if(t===Z){for(let t=0;t<2*m;t++)l[t]=0;if(f)for(let t=d[M-1];t<d[M];t++)b[t]=p[f[t]];Z=d[++M]}const n=v?f[t]:t,r=n*e,o=a(u,r,e);let s=o%m,c=y;for(;0!==l[2*s+1];){if(l[2*s]===o){const t=l[2*s+1]-1;if(i(u,r,t*e,e)){c=p[t];break}}s++,s>=m&&(s-=m)}c===y&&(l[2*s]=o,l[2*s+1]=n+1,y++),p[n]=c}if(0!==h&&1-y/c<h)return null;if(v){for(let t=d[M-1];t<b.length;t++)b[t]=p[f[t]];p=b}const _=new Uint32Array(e*y);y=0;for(let t=0;t<w;t++)p[t]===y&&(s(u,(v?f[t]:t)*e,_,y*e,e),y++);if(f&&!v){const t=new Uint32Array(g);for(let e=0;e<t.length;e++)t[e]=p[f[e]];p=t}return{buffer:_.buffer,indices:p,uniqueCount:y}}function i(t,e,n,r){for(let o=0;o<r;o++)if(t[e+o]!==t[n+o])return!1;return!0}function s(t,e,n,r,o){for(let i=0;i<o;i++)n[r+i]=t[e+i]}function a(t,e,n){let r=0;for(let o=0;o<n;o++)r=t[e+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let l=null},38163:(t,e,n)=>{n.r(e),n.d(e,{meshFeatureSetFromJSON:()=>Et});var r,o,i=n(1692),s=n(70586),a=n(6570),l=n(43697),c=n(20102),u=n(3920),p=n(83379),h=n(92604),f=n(609),g=n(95330),d=n(17445),x=n(5600),m=(n(67676),n(80442),n(75215),n(52011)),y=n(65617),v=n(9361),w=n(13473),b=n(17332),C=n(3709),A=n(62540),M=n(2674),Z=n(71630),_=n(95401),T=n(86662),F=n(47545);function R(t,e,n){const o=t.length,i=new Array(o),s=new Array(o),a=new Array(o);let l=0,c=0,u=0,p=0;for(let e=0;e<o;++e)p+=t[e].length;const h=new Float64Array(3*p);let f=0;for(let p=o-1;p>=0;p--){const g=t[p],d=n===r.CCW_IS_HOLE&&I(g);if(d&&1!==o)i[l++]=g;else{let t=g.length;for(let e=0;e<l;++e)t+=i[e].length;const n={index:f,pathLengths:new Array(l+1),count:t,holeIndices:new Array(l)};n.pathLengths[0]=g.length,g.length>0&&(a[u++]={index:f,count:g.length}),f=d?D(g,g.length-1,-1,h,f,g.length,e):D(g,0,1,h,f,g.length,e);for(let t=0;t<l;++t){const r=i[t];n.holeIndices[t]=f,n.pathLengths[t+1]=r.length,r.length>0&&(a[u++]={index:f,count:r.length}),f=D(r,0,1,h,f,r.length,e)}l=0,n.count>0&&(s[c++]=n)}}for(let t=0;t<l;++t){const n=i[t];n.length>0&&(a[u++]={index:f,count:n.length}),f=D(n,0,1,h,f,n.length,e)}return c<o&&(s.length=c),u<o&&(a.length=u),{position:h,polygons:s,outlines:a}}function D(t,e,n,r,o,i,s){o*=3;for(let a=0;a<i;++a){const i=t[e];r[o++]=i[0],r[o++]=i[1],r[o++]=s?i[2]:0,e+=n}return o/3}function I(t){return!(0,T.bu)(t,!1,!1)}(o=r||(r={}))[o.NONE=0]="NONE",o[o.CCW_IS_HOLE=1]="CCW_IS_HOLE";var L=n(90411),E=n(13442),O=n(66459);const P=h.Z.getLogger("esri.geometry.support.meshUtils.centerAt");const S=(0,y.c)(),j=(0,y.c)();var z=n(17452);function N(t){const e=(0,z.Yd)(t.url);return n=>{var r;const o=(0,z.PF)(n,e,e),i=o?o.replace(/^ *\.\//,""):null;return null!=(r=t.files.get(i))?r:n}}async function U(t,e){return t instanceof Blob?W.fromBlob(t):"string"==typeof t?new W(t):Array.isArray(t)?async function(t,e){const n=new Map;let r=null;const o=await(0,g.WW)(t.map((async t=>({name:t.name,source:await U(t instanceof Blob?t:t.source,e)})))),i=[];for(const t of o)t&&((0,g.Hc)(e)?t.source.dispose():i.push(t));(0,g.k_)(e);for(const{name:t,source:e}of i)((0,s.Wi)(r)||/\.(gltf|glb)/i.test(t))&&(r=e.url),n.set(t,e.url),e.files&&e.files.forEach(((t,e)=>n.set(e,t)));if((0,s.Wi)(r))throw new c.Z("mesh-load-external:missing-files","Missing files to load external mesh source");return new W(r,(()=>i.forEach((({source:t})=>t.dispose()))),n)}(t,e):async function(t,e){const{default:r}=await(0,g.Hl)(Promise.resolve().then(n.bind(n,3172)),e),o="string"==typeof t.multipart[0]?await Promise.all(t.multipart.map((async t=>(await r(t,{responseType:"array-buffer"})).data))):t.multipart;return W.fromBlob(new Blob(o))}(t,e)}class W{constructor(t,e=(()=>{}),n=new Map){this.url=t,this.dispose=e,this.files=n}static fromBlob(t){const e=URL.createObjectURL(t);return new W(e,(()=>URL.revokeObjectURL(e)))}}var k=n(21787),$=n(46521),H=n(13598),B=n(17896),G=n(24678),q=n(56493);const Y=h.Z.getLogger("esri.geometry.support.meshUtils.offset");function X(t,e){if(t)for(let n=0;n<t.length;n+=3)for(let r=0;r<3;r++)t[n+r]+=e[r]}const K=(0,y.c)(),V=(0,H.c)(),J=(0,$.c)(),Q={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function tt(t,e,n){(function(t){for(let e=0;e<t.position.length;e+=3)t.position[e+2]+=.5})(t),function(t,e){if(null==e)return;const n="number"==typeof e?[e,e,e]:[null!=e.width?e.width:1,null!=e.depth?e.depth:1,null!=e.height?e.height:1];ot[0]=n[0],ot[4]=n[1],ot[8]=n[2];for(let e=0;e<t.position.length;e+=3){for(let n=0;n<3;n++)rt[n]=t.position[e+n];(0,B.t)(rt,rt,ot);for(let n=0;n<3;n++)t.position[e+n]=rt[n]}if(n[0]!==n[1]||n[1]!==n[2]){ot[0]=1/n[0],ot[4]=1/n[1],ot[8]=1/n[2];for(let e=0;e<t.normal.length;e+=3){for(let n=0;n<3;n++)rt[n]=t.normal[e+n];(0,B.t)(rt,rt,ot),(0,B.n)(rt,rt);for(let n=0;n<3;n++)t.normal[e+n]=rt[n]}}}(t,n&&n.size);const{vertexAttributes:r,transform:o}=(0,O.w1)(t,e,n);return{vertexAttributes:new Z.ZP({...r,uv:t.uv}),transform:o,components:[new A.Z({faces:t.faces,material:n&&n.material||null})],spatialReference:e.spatialReference}}const et={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},nt={south:0,east:1,north:2,west:3,up:4,down:5},rt=(0,y.c)(),ot=(0,$.c)();var it=n(52138);const st=h.Z.getLogger("esri.geometry.support.meshUtils.rotate");function at(t,e,n,r=y.Z){if(!(0,s.Wi)(t)){(0,it.d)(pt,(0,C.WH)(e),(0,C.ZZ)(e));for(let e=0;e<t.length;e+=n){for(let n=0;n<3;n++)lt[n]=t[e+n]-r[n];(0,B.m)(lt,lt,pt);for(let n=0;n<3;n++)t[e+n]=lt[n]+r[n]}}}const lt=(0,y.c)(),ct=(0,y.c)(),ut=(0,C.Ue)(),pt=(0,H.c)(),ht=(0,$.c)(),ft=(0,y.c)(),gt=h.Z.getLogger("esri.geometry.support.meshUtils.scale");function dt(t,e,n=y.Z){if(t)for(let r=0;r<t.length;r+=3){for(let e=0;e<3;e++)xt[e]=t[r+e]-n[e];(0,B.a)(xt,xt,e);for(let e=0;e<3;e++)t[r+e]=xt[e]+n[e]}}const xt=(0,y.c)(),mt=(0,y.c)(),yt=(0,y.c)();var vt;const wt=h.Z.getLogger("esri.geometry.Mesh");let bt=vt=class extends((0,u.p)(p.Z.LoadableMixin((0,f.v)(v.Z)))){constructor(t){super(t),this.components=null,this.transform=null,this.external=null,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new Z.QL,this.type="mesh"}initialize(){((0,s.Wi)(this.external)||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when((()=>{this.handles.add((0,d.YP)((()=>{var t;return{vertexAttributes:this.vertexAttributes,components:null==(t=this.components)?void 0:t.map((t=>t.clone())),transform:(0,s.pC)(this.transform)?this.transform.clone():null}}),(()=>this._set("external",null)),{once:!0,sync:!0}))}))}get hasExtent(){return!this.loaded&&(0,s.pC)(this.external)&&(0,s.pC)(this.external.extent)||this.loaded&&this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0)}get boundingInfo(){const t=this.vertexAttributes.position,e=this.spatialReference;if(0===t.length||this.components&&0===this.components.length)return{extent:new a.Z({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0,spatialReference:e}),center:new w.Z({x:0,y:0,z:0,spatialReference:e})};const n=(0,s.pC)(this.transform)?this.transform.project(t,e):t;let r=1/0,o=1/0,i=1/0,l=-1/0,c=-1/0,u=-1/0,p=0,h=0,f=0;const g=n.length,d=1/(g/3);let x=0;for(;x<g;){const t=n[x++],e=n[x++],s=n[x++];r=Math.min(r,t),o=Math.min(o,e),i=Math.min(i,s),l=Math.max(l,t),c=Math.max(c,e),u=Math.max(u,s),p+=d*t,h+=d*e,f+=d*s}return{extent:new a.Z({xmin:r,ymin:o,zmin:i,xmax:l,ymax:c,zmax:u,spatialReference:e}),center:new w.Z({x:p,y:h,z:f,spatialReference:e})}}get anchor(){if((0,s.pC)(this.transform))return this.transform.getOriginPoint(this.spatialReference);const t=this.boundingInfo;return new w.Z({x:t.center.x,y:t.center.y,z:t.extent.zmin,spatialReference:this.spatialReference})}get origin(){return(0,s.pC)(this.transform)?this.transform.getOriginPoint(this.spatialReference):this.boundingInfo.center}get extent(){return!this.loaded&&(0,s.pC)(this.external)&&(0,s.pC)(this.external.extent)?this.external.extent.clone():this.boundingInfo.extent}addComponent(t){this.loaded?(this.components||(this.components=[]),this.components.push(A.Z.from(t)),this.notifyChange("components")):wt.error("addComponent()","Mesh must be loaded before applying operations")}removeComponent(t){if(this.loaded){if(this.components){const e=this.components.indexOf(t);if(-1!==e)return this.components.splice(e,1),void this.notifyChange("components")}wt.error("removeComponent()","Provided component is not part of the list of components")}else wt.error("removeComponent()","Mesh must be loaded before applying operations")}rotate(t,e,n,r){return(0,C.uT)(Ct.x,t,At),(0,C.uT)(Ct.y,e,Mt),(0,C.uT)(Ct.z,n,Zt),(0,C.qC)(At,Mt,At),(0,C.qC)(At,Zt,At),function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position||0===e[3])return;const r=t.spatialReference;if((0,s.pC)(t.transform)){var o;null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&st.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`);const i=null!=(o=null==n?void 0:n.origin)?o:t.transform.getOriginPoint(r);!function(t,e,n){const r=(0,B.s)(lt,n.x,n.y,n.z),o=(0,B.f)(lt,r,t.origin);t.applyLocalInverse(o,ct),t.rotation=(0,C.qC)(t.rotation,e,(0,C.Ue)()),t.applyLocalInverse(o,o),(0,B.f)(o,o,ct),t.translation=(0,B.b)((0,y.c)(),t.translation,o)}(t.transform,e,i)}else{var i;const r=null!=(i=null==n?void 0:n.origin)?i:t.origin;(0,E.h)(t.spatialReference,n)?function(t,e,n){const r=t.spatialReference,o=(0,G.rS)(r),i=ft;(0,L.KC)(n,i,o)||(0,L.KC)(t.origin,i,o);const a=t.vertexAttributes.position,l=t.vertexAttributes.normal,c=t.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,s.pC)(l)?new Float32Array(l.length):null,h=(0,s.pC)(c)?new Float32Array(c.length):null;(0,L.Bm)(o,i,pt,o),(0,k.f)(ht,pt);const f=ut;(0,B.t)((0,C.ZZ)(ut),(0,C.ZZ)(e),ht),f[3]=e[3],(0,q.XO)(a,r,u),(0,s.pC)(l)&&(0,q.Iz)(l,a,u,r,p),(0,s.pC)(c)&&(0,q.wi)(c,a,u,r,h),at(u,f,3,i),(0,q.To)(u,a,r),(0,s.pC)(l)&&(at(p,f,3),(0,q.Yk)(p,a,u,r,l)),(0,s.pC)(c)&&(at(h,f,4),(0,q.M2)(h,a,u,r,c)),t.vertexAttributesChanged()}(t,e,r):function(t,e,n){const r=ft;if(!(0,L.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,st.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}at(t.vertexAttributes.position,e,3,r),at(t.vertexAttributes.normal,e,3),at(t.vertexAttributes.tangent,e,4),t.vertexAttributesChanged()}(t,e,r)}}(this,At,r),this}offset(t,e,n,r){return this.loaded?(_t[0]=t,_t[1]=e,_t[2]=n,function(t,e,n){t.vertexAttributes&&t.vertexAttributes.position&&((0,s.pC)(t.transform)?(null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&Y.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`),function(t,e){const n=t.origin;t.origin=(0,B.b)((0,y.c)(),n,e)}(t.transform,e)):(0,E.h)(t.spatialReference,n)?function(t,e){const n=t.spatialReference,r=t.vertexAttributes.position,o=t.vertexAttributes.normal,i=t.vertexAttributes.tangent,a=new Float64Array(r.length),l=(0,s.pC)(o)?new Float32Array(o.length):null,c=(0,s.pC)(i)?new Float32Array(i.length):null,u=t.extent.center,p=K;(0,L.Bm)(n,[u.x,u.y,u.z],V,(0,G.rS)(n)),(0,k.f)(J,V),(0,B.t)(p,e,J),(0,q.XO)(r,n,a),(0,s.pC)(o)&&(0,q.Iz)(o,r,a,n,l),(0,s.pC)(i)&&(0,q.wi)(i,r,a,n,c),X(a,p),(0,q.To)(a,r,n),(0,s.pC)(o)&&(0,q.Yk)(l,r,a,n,o),(0,s.pC)(i)&&(0,q.M2)(c,r,a,n,i),t.vertexAttributesChanged()}(t,e):function(t,e){X(t.vertexAttributes.position,e),t.vertexAttributesChanged()}(t,e))}(this,_t,r),this):(wt.error("offset()","Mesh must be loaded before applying operations"),this)}scale(t,e){return this.loaded?(function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position)return;const r=t.spatialReference;if((0,s.pC)(t.transform)){var o;null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&gt.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`);const i=null!=(o=null==n?void 0:n.origin)?o:t.transform.getOriginPoint(r);!function(t,e,n){const r=(0,B.s)(xt,n.x,n.y,n.z),o=(0,B.f)(xt,r,t.origin);t.applyLocalInverse(o,mt);const i=(0,B.a)((0,y.c)(),t.scale,e);t.scale=i,t.applyLocalInverse(o,o),(0,B.f)(o,o,mt),t.translation=(0,B.b)((0,y.c)(),t.translation,o)}(t.transform,e,i)}else{const r=(0,E.h)(t.spatialReference,n),o=n&&n.origin||t.origin;r?function(t,e,n){const r=t.spatialReference,o=(0,G.rS)(r),i=yt;(0,L.KC)(n,i,o)||(0,L.KC)(t.origin,i,o);const a=t.vertexAttributes.position,l=t.vertexAttributes.normal,c=t.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,s.pC)(l)?new Float32Array(l.length):null,h=(0,s.pC)(c)?new Float32Array(c.length):null;(0,q.XO)(a,r,u),(0,s.pC)(l)&&(0,q.Iz)(l,a,u,r,p),(0,s.pC)(c)&&(0,q.wi)(c,a,u,r,h),dt(u,e,i),(0,q.To)(u,a,r),(0,s.pC)(l)&&(0,q.Yk)(p,a,u,r,l),(0,s.pC)(c)&&(0,q.M2)(h,a,u,r,c),t.vertexAttributesChanged()}(t,e,o):function(t,e,n){const r=yt;if(!(0,L.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,gt.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}dt(t.vertexAttributes.position,e,r),t.vertexAttributesChanged()}(t,e,o)}}(this,t,e),this):(wt.error("scale()","Mesh must be loaded before applying operations"),this)}centerAt(t,e){return this.loaded?(function(t,e,n){var r;if(!t.vertexAttributes||!t.vertexAttributes.position)return;const o=null!=(r=null==n?void 0:n.origin)?r:t.origin;(0,s.pC)(t.transform)?(null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&P.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`),function(t,e,n){const r=e.x-n.x,o=e.y-n.y,i=e.hasZ&&n.hasZ?e.z-n.z:0,s=t.origin;t.origin=[s[0]+r,s[1]+o,s[2]+i]}(t.transform,e,o)):(0,E.h)(t.spatialReference,n)?function(t,e,n){const r=(0,O.FF)(t.vertexAttributes,n,{geographic:!0}),{position:o,normal:i,tangent:s}=(0,O.iv)(r,e,{geographic:!0});t.vertexAttributes.position=o,t.vertexAttributes.normal=i,t.vertexAttributes.tangent=s,t.vertexAttributesChanged()}(t,e,o):function(t,e,n){const r=j,o=S;if((0,L.KC)(e,o,t.spatialReference)){if(!(0,L.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,P.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}(function(t,e,n){if(t)for(let r=0;r<t.length;r+=3)for(let o=0;o<3;o++)t[r+o]+=e[o]-n[o]})(t.vertexAttributes.position,o,r),t.vertexAttributesChanged()}else P.error(`Failed to project centerAt location (wkid:${e.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid})`)}(t,e,o)}(this,t,e),this):(wt.error("centerAt()","Mesh must be loaded before applying operations"),this)}load(t){return(0,s.pC)(this.external)&&this.addResolvingPromise(async function(t,e,r){const{loadGLTFMesh:o}=await(0,g.Hl)(Promise.all([n.e(2133),n.e(9070)]).then(n.bind(n,99070)),r),i=await U(e,r),a=o(new w.Z({x:0,y:0,z:0,spatialReference:t.spatialReference}),i.url,{resolveFile:N(i),useTransform:!0,signal:(0,s.pC)(r)?r.signal:null});a.then((()=>i.dispose()),(()=>i.dispose()));const{vertexAttributes:l,components:c}=await a;t.vertexAttributes=l,t.components=c}(this,this.external.source,t)),Promise.resolve(this)}clone(){const t=this.components?new Map:null,e=this.components?new Map:null,n={components:this.components?this.components.map((n=>n.cloneWithDeduplication(t,e))):null,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes.clone(),transform:(0,s.pC)(this.transform)?this.transform.clone():null,external:(0,s.pC)(this.external)?{source:this.external.source,extent:(0,s.pC)(this.external.extent)?this.external.extent.clone():null}:null};return new vt(n)}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(t){const{toBinaryGLTF:e}=await n.e(7277).then(n.bind(n,7277));return e(this,t)}static createBox(t,e){if(!(t instanceof w.Z))return wt.error(".createBox()","expected location to be a Point instance"),null;const n=new vt(tt(function(){const{faceDescriptions:t,faceVertexOffsets:e,uvScales:n}=et,r=4*t.length,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array(2*t.length*3);let l=0,c=0,u=0,p=0;for(let r=0;r<t.length;r++){const h=t[r],f=l/3;for(const t of e)a[p++]=f+t;const g=h.corners;for(let t=0;t<4;t++){const e=g[t];let r=0;s[u++]=.25*n[t][0]+h.uvOrigin[0],s[u++]=h.uvOrigin[1]-.25*n[t][1];for(let t=0;t<3;t++)0!==h.axis[t]?(o[l++]=.5*h.axis[t],i[c++]=h.axis[t]):(o[l++]=.5*e[r++],i[c++]=0)}}return{position:o,normal:i,uv:s,faces:a}}(),t,e));return e&&e.imageFace&&"all"!==e.imageFace?function(t,e){const n=t.components[0],r=n.faces,o=nt[e],i=6*o,a=new Uint32Array(6),l=new Uint32Array(r.length-6);let c=0,u=0;for(let t=0;t<r.length;t++)t>=i&&t<i+6?a[c++]=r[t]:l[u++]=r[t];if((0,s.pC)(t.vertexAttributes.uv)){const e=new Float32Array(t.vertexAttributes.uv),n=4*o*2,r=[0,1,1,1,1,0,0,0];for(let t=0;t<r.length;t++)e[n+t]=r[t];t.vertexAttributes.uv=e}return t.components=[new A.Z({faces:a,material:n.material}),new A.Z({faces:l})],t}(n,e.imageFace):n}static createSphere(t,e){return t instanceof w.Z?new vt(tt(function(t=0){const e=Math.round(8*2**t),n=2*e,r=(e-1)*(n+1)+2*n,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array((e-1)*n*2*3);let l=0,c=0,u=0,p=0;for(let t=0;t<=e;t++){const r=t/e*Math.PI+.5*Math.PI,h=Math.cos(r),f=Math.sin(r);rt[2]=f;const g=0===t||t===e,d=g?n-1:n;for(let r=0;r<=d;r++){const f=r/d*2*Math.PI;rt[0]=-Math.sin(f)*h,rt[1]=Math.cos(f)*h;for(let t=0;t<3;t++)o[l]=.5*rt[t],i[l]=rt[t],++l;s[c++]=(r+(g?.5:0))/n,s[c++]=t/e,0!==t&&r!==n&&(t!==e&&(a[u++]=p,a[u++]=p+1,a[u++]=p-n),1!==t&&(a[u++]=p,a[u++]=p-n,a[u++]=p-n-1)),p++}}return{position:o,normal:i,uv:s,faces:a}}(e&&e.densificationFactor||0),t,e)):(wt.error(".createSphere()","expected location to be a Point instance"),null)}static createCylinder(t,e){return t instanceof w.Z?new vt(tt(function(t=0){const e=Math.round(16*2**t),n=4*(e+1)+2*e,r=new Float64Array(3*n),o=new Float32Array(3*n),i=new Float32Array(2*n),s=new Uint32Array(4*e*3);let a=0,l=0,c=0,u=0,p=0;for(let t=0;t<=5;t++){const n=0===t||5===t,h=t<=1||t>=4,f=2===t||4===t,g=n?e-1:e;for(let d=0;d<=g;d++){const x=d/g*2*Math.PI,m=n?0:.5;rt[0]=m*Math.sin(x),rt[1]=m*-Math.cos(x),rt[2]=t<=2?.5:-.5;for(let e=0;e<3;e++)r[a++]=rt[e],o[l++]=h?2===e?t<=1?1:-1:0:2===e?0:rt[e]/m;i[c++]=(d+(n?.5:0))/e,i[c++]=t<=1?1*t/3:t<=3?1*(t-2)/3+1/3:1*(t-4)/3+2/3,f||0===t||d===e||(5!==t&&(s[u++]=p,s[u++]=p+1,s[u++]=p-e),1!==t&&(s[u++]=p,s[u++]=p-e,s[u++]=p-e-1)),p++}}return{position:r,normal:o,uv:i,faces:s}}(e&&e.densificationFactor||0),t,e)):(wt.error(".createCylinder()","expected location to be a Point instance"),null)}static createPlane(t,e){var n;if(!(t instanceof w.Z))return wt.error(".createPlane()","expected location to be a Point instance"),null;const r=null!=(n=null==e?void 0:e.facing)?n:"up",o=function(t,e){const n="number"==typeof e?e:null!=e?e.width:1,r="number"==typeof e?e:null!=e?e.height:1;switch(t){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}(r,null==e?void 0:e.size);return new vt(tt(function(t){const e=Q.facingAxisOrderSwap[t],n=Q.position,r=Q.normal,o=new Float64Array(n.length),i=new Float32Array(r.length);let s=0;for(let t=0;t<4;t++){const t=s;for(let a=0;a<3;a++){const l=e[a],c=Math.abs(l)-1,u=l>=0?1:-1;o[s]=n[t+c]*u,i[s]=r[t+c]*u,s++}}return{position:o,normal:i,uv:new Float32Array(Q.uv),faces:new Uint32Array(Q.faces)}}(r),t,{...e,size:o}))}static createFromPolygon(t,e){if(!(t instanceof b.Z))return wt.error(".createFromPolygon()","expected polygon to be a Polygon instance"),null;const n=function(t){const e=R(t.rings,t.hasZ,r.CCW_IS_HOLE),n=[];let o=0,i=0;for(const t of e.polygons){const r=t.count,s=t.index,a=new Float64Array(e.position.buffer,3*s*e.position.BYTES_PER_ELEMENT,3*r),l=t.holeIndices.map((t=>t-s)),c=new Uint32Array((0,_.e)(a,l,3));n.push({position:a,faces:c}),o+=a.length,i+=c.length}const s=function(t,e,n){if(1===t.length)return t[0];const r=new Float64Array(e),o=new Uint32Array(n);let i=0,s=0,a=0;for(const e of t){for(let t=0;t<e.position.length;t++)r[i++]=e.position[t];for(let t=0;t<e.faces.length;t++)o[s++]=e.faces[t]+a;a=i/3}return{position:r,faces:o}}(n,o,i),a=(0,F.d)(s.position.buffer,6,{originalIndices:s.faces});return s.position=new Float64Array(a.buffer),s.faces=a.indices,s}(t);return new vt({vertexAttributes:new Z.QL({position:n.position}),components:[new A.Z({faces:n.faces,shading:"flat",material:e&&e.material||null})],spatialReference:t.spatialReference})}static async createFromGLTF(t,e,r){if(!(t instanceof w.Z))throw wt.error(".createfromGLTF()","expected location to be a Point instance"),new c.Z("invalid-input","Expected location to be a Point instance");const{loadGLTFMesh:o}=await(0,g.Hl)(Promise.all([n.e(2133),n.e(9070)]).then(n.bind(n,99070)),r);return new vt(await o(t,e,r))}static createWithExternalSource(t,e,n){var r,o,i;const s=null!=(r=null==n?void 0:n.extent)?r:null,a=null!=(o=null==n?void 0:n.transform.clone())?o:new M.Z;a.origin=[t.x,t.y,null!=(i=t.z)?i:0];const l=t.spatialReference;return new vt({external:{source:e,extent:s},transform:a,spatialReference:l})}static createIncomplete(t,e){var n,r;const o=null!=(n=null==e?void 0:e.transform.clone())?n:new M.Z;o.origin=[t.x,t.y,null!=(r=t.z)?r:0];const i=t.spatialReference,s=new vt({transform:o,spatialReference:i});return s.addResolvingPromise(Promise.reject(new c.Z("mesh-incomplete","Mesh resources are not complete"))),s}};(0,l._)([(0,x.Cb)({type:[A.Z],json:{write:!0}})],bt.prototype,"components",void 0),(0,l._)([(0,x.Cb)({type:M.Z,json:{write:!0}})],bt.prototype,"transform",void 0),(0,l._)([(0,x.Cb)({constructOnly:!0})],bt.prototype,"external",void 0),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"hasExtent",null),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"boundingInfo",null),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"anchor",null),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"origin",null),(0,l._)([(0,x.Cb)({readOnly:!0,json:{read:!1}})],bt.prototype,"extent",null),(0,l._)([(0,x.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],bt.prototype,"hasZ",void 0),(0,l._)([(0,x.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],bt.prototype,"hasM",void 0),(0,l._)([(0,x.Cb)({type:Z.QL,nonNullable:!0,json:{write:!0}})],bt.prototype,"vertexAttributes",void 0),bt=vt=(0,l._)([(0,m.j)("esri.geometry.Mesh")],bt);const Ct={x:(0,y.f)(1,0,0),y:(0,y.f)(0,1,0),z:(0,y.f)(0,0,1)},At=(0,C.Ue)(),Mt=(0,C.Ue)(),Zt=(0,C.Ue)(),_t=(0,y.c)(),Tt=bt;var Ft,Rt;!function(t){t.featureGUID="featureGUID",t.assetName="assetName",t.hash="hash",t.type="type",t.conversionStatus="conversionStatus",t.flags="flags",t.complexity="complexity",t.size="size",t.seqNo="seqNo",t.sourceHash="sourceHash",t.assetURL="assetURL"}(Ft||(Ft={})),function(t){t.SUBMITTED="SUBMITTED",t.INPROGRESS="INPROGRESS",t.FAILED="FAILED",t.COMPLETED="COMPLETED"}(Rt||(Rt={}));var Dt,It,Lt=n(74889);function Et(t,e,n){const r=n.features;n.features=[],delete n.geometryType;const o=Lt.default.fromJSON(n);o.geometryType="mesh";const a=o.spatialReference,l=(0,s.Wi)(t.outFields)||!t.outFields.length?()=>({}):(c=t.outFields.includes("*")?null:new Set(t.outFields),({attributes:t})=>{if(!t)return{};if(!c)return t;for(const e in t)c.has(e)||delete t[e];return t});var c;for(const t of r){const n=Ot(t,a,e);(0,s.pC)(n)&&o.features.push(new i.Z({geometry:n,attributes:l(t)}))}return o}function Ot(t,e,n){const{status:r,source:o}=function(t){if(!t.assetMappings)return{status:Dt.FAILED};const e=[],n=new Map;for(const r of t.assetMappings){const t=r[Ft.seqNo],o=r[Ft.assetName],i=r[Ft.assetURL],s=r[Ft.conversionStatus];if(s===Rt.FAILED)return{status:Dt.FAILED};if(s!==Rt.COMPLETED)return{status:Dt.PENDING};if(null==t)e.push({name:o,source:i});else{const r=n.get(o);let s;r?s=r.multipart:(s=[],e.push({name:o,source:{multipart:s}}),n.set(o,{multipart:s})),s[t]=i}}return{status:Dt.COMPLETED,source:e}}(t);if(r===Dt.FAILED)return null;const i=function({attributes:t},e,{transformFieldRoles:n}){return new w.Z({x:t[n.originX],y:t[n.originY],z:t[n.originZ],spatialReference:e})}(t,e,n),s=a.Z.fromJSON(t.geometry);s.spatialReference=e;const l=function({attributes:t,assetMappings:e},{transformFieldRoles:n}){var r;return new M.Z({translation:[t[n.translationX],t[n.translationY],t[n.translationZ]],rotation:(0,C.uT)([t[n.rotationX],t[n.rotationY],t[n.rotationZ]],t[n.rotationDeg]),scale:[t[n.scaleX],t[n.scaleY],t[n.scaleZ]],geographic:!(null!=(r=e[Ft.flags])&&r.includes("PROJECT_VERTICES"))})}(t,n);return r===Dt.PENDING?Tt.createIncomplete(i,{extent:s,transform:l}):Tt.createWithExternalSource(i,o,{extent:s,transform:l})}(It=Dt||(Dt={}))[It.FAILED=0]="FAILED",It[It.PENDING=1]="PENDING",It[It.COMPLETED=2]="COMPLETED"}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8163],{95401:(t,e,n)=>{n.d(e,{e:()=>a});var r,o,i,s={exports:{}};r=s,o=function(){function t(t,n,o){o=o||2;var i,s,a,c,u,p,h,f=n&&n.length,g=f?n[0]*o:t.length,d=e(t,0,g,o,!0),x=[];if(!d||d.next===d.prev)return x;if(f&&(d=l(t,n,d,o)),t.length>80*o){i=a=t[0],s=c=t[1];for(var m=o;m<g;m+=o)(u=t[m])<i&&(i=u),(p=t[m+1])<s&&(s=p),u>a&&(a=u),p>c&&(c=p);h=0!==(h=Math.max(a-i,c-s))?1/h:0}return r(d,x,o,i,s,h),x}function e(t,e,n,r,o){var i,s;if(o===F(t,e,n,r)>0)for(i=e;i<n;i+=r)s=Z(i,t[i],t[i+1],s);else for(i=n-r;i>=e;i-=r)s=Z(i,t[i],t[i+1],s);if(s&&v(s,s.next)){var a=s.next;_(s),s=a}return s}function n(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!v(r,r.next)&&0!==y(r.prev,r,r.next))r=r.next;else{var o=r.prev;if(_(r),(r=e=o)===r.next)break;n=!0}}while(n||r!==e);return e}function r(t,e,l,c,u,p,h){if(t){!h&&p&&f(t,c,u,p);for(var g,d,x=t;t.prev!==t.next;)if(g=t.prev,d=t.next,p?i(t,c,u,p):o(t))e.push(g.i/l),e.push(t.i/l),e.push(d.i/l),_(t),t=d.next,x=d.next;else if((t=d)===x){h?1===h?r(t=s(n(t),e,l),e,l,c,u,p,2):2===h&&a(t,e,l,c,u,p):r(n(t),e,l,c,u,p,1);break}}}function o(t){var e=t.prev,n=t,r=t.next;if(y(e,n,r)>=0)return!1;for(var o=t.next.next;o!==t.prev;){if(x(e.x,e.y,n.x,n.y,r.x,r.y,o.x,o.y)&&y(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function i(t,e,n,r){var o=t.prev,i=t,s=t.next;if(y(o,i,s)>=0)return!1;for(var a=o.x<i.x?o.x<s.x?o.x:s.x:i.x<s.x?i.x:s.x,l=o.y<i.y?o.y<s.y?o.y:s.y:i.y<s.y?i.y:s.y,c=o.x>i.x?o.x>s.x?o.x:s.x:i.x>s.x?i.x:s.x,u=o.y>i.y?o.y>s.y?o.y:s.y:i.y>s.y?i.y:s.y,p=g(a,l,e,n,r),h=g(c,u,e,n,r),f=t.prevZ,d=t.nextZ;f&&f.z>=p&&d&&d.z<=h;){if(f!==t.prev&&f!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,d!==t.prev&&d!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,d.x,d.y)&&y(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;f&&f.z>=p;){if(f!==t.prev&&f!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;d&&d.z<=h;){if(d!==t.prev&&d!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,d.x,d.y)&&y(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function s(t,e,r){var o=t;do{var i=o.prev,s=o.next.next;!v(i,s)&&w(i,o,o.next,s)&&A(i,s)&&A(s,i)&&(e.push(i.i/r),e.push(o.i/r),e.push(s.i/r),_(o),_(o.next),o=t=s),o=o.next}while(o!==t);return n(o)}function a(t,e,o,i,s,a){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&m(l,c)){var u=M(l,c);return l=n(l,l.next),u=n(u,u.next),r(l,e,o,i,s,a),void r(u,e,o,i,s,a)}c=c.next}l=l.next}while(l!==t)}function l(t,r,o,i){var s,a,l,u=[];for(s=0,a=r.length;s<a;s++)(l=e(t,r[s]*i,s<a-1?r[s+1]*i:t.length,i,!1))===l.next&&(l.steiner=!0),u.push(d(l));for(u.sort(c),s=0;s<u.length;s++)o=n(o=p(u[s],o),o.next);return o}function c(t,e){return t.x-e.x}function u(t){if(t.next.prev===t)return t;let e=t;for(;;){const n=e.next;if(n.prev===e||n===e||n===t)break;e=n}return e}function p(t,e){var r=function(t,e){var n,r=e,o=t.x,i=t.y,s=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var a=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=o&&a>s){if(s=a,a===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(o===s)return n;var l,c=n,u=n.x,p=n.y,f=1/0;r=n;do{o>=r.x&&r.x>=u&&o!==r.x&&x(i<p?o:s,i,u,p,i<p?s:o,i,r.x,r.y)&&(l=Math.abs(i-r.y)/(o-r.x),A(r,t)&&(l<f||l===f&&(r.x>n.x||r.x===n.x&&h(n,r)))&&(n=r,f=l)),r=r.next}while(r!==c);return n}(t,e);if(!r)return e;var o=M(r,t),i=n(r,r.next);let s=u(o);return n(s,s.next),i=u(i),u(e===r?i:e)}function h(t,e){return y(t.prev,t,e.prev)<0&&y(e.next,t,t.next)<0}function f(t,e,n,r){var o=t;do{null===o.z&&(o.z=g(o.x,o.y,e,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==t);o.prevZ.nextZ=null,o.prevZ=null,function(t){var e,n,r,o,i,s,a,l,c=1;do{for(n=t,t=null,i=null,s=0;n;){for(s++,r=n,a=0,e=0;e<c&&(a++,r=r.nextZ);e++);for(l=c;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(o=n,n=n.nextZ,a--):(o=r,r=r.nextZ,l--),i?i.nextZ=o:t=o,o.prevZ=i,i=o;n=r}i.nextZ=null,c*=2}while(s>1)}(o)}function g(t,e,n,r,o){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*o)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*o)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function d(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function x(t,e,n,r,o,i,s,a){return(o-s)*(e-a)-(t-s)*(i-a)>=0&&(t-s)*(r-a)-(n-s)*(e-a)>=0&&(n-s)*(i-a)-(o-s)*(r-a)>=0}function m(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&w(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(A(t,e)&&A(e,t)&&function(t,e){var n=t,r=!1,o=(t.x+e.x)/2,i=(t.y+e.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(y(t.prev,t,e.prev)||y(t,e.prev,e))||v(t,e)&&y(t.prev,t,t.next)>0&&y(e.prev,e,e.next)>0)}function y(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function v(t,e){return t.x===e.x&&t.y===e.y}function w(t,e,n,r){var o=C(y(t,e,n)),i=C(y(t,e,r)),s=C(y(n,r,t)),a=C(y(n,r,e));return o!==i&&s!==a||!(0!==o||!b(t,n,e))||!(0!==i||!b(t,r,e))||!(0!==s||!b(n,t,r))||!(0!==a||!b(n,e,r))}function b(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function C(t){return t>0?1:t<0?-1:0}function A(t,e){return y(t.prev,t,t.next)<0?y(t,e,t.next)>=0&&y(t,t.prev,e)>=0:y(t,e,t.prev)<0||y(t,t.next,e)<0}function M(t,e){var n=new T(t.i,t.x,t.y),r=new T(e.i,e.x,e.y),o=t.next,i=e.prev;return t.next=e,e.prev=t,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function Z(t,e,n,r){var o=new T(t,e,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function _(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function T(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function F(t,e,n,r){for(var o=0,i=e,s=n-r;i<n;i+=r)o+=(t[s]-t[i])*(t[i+1]+t[s+1]),s=i;return o}return t.deviation=function(t,e,n,r){var o=e&&e.length,i=o?e[0]*n:t.length,s=Math.abs(F(t,0,i,n));if(o)for(var a=0,l=e.length;a<l;a++){var c=e[a]*n,u=a<l-1?e[a+1]*n:t.length;s-=Math.abs(F(t,c,u,n))}var p=0;for(a=0;a<r.length;a+=3){var h=r[a]*n,f=r[a+1]*n,g=r[a+2]*n;p+=Math.abs((t[h]-t[g])*(t[f+1]-t[h+1])-(t[h]-t[f])*(t[g+1]-t[h+1]))}return 0===s&&0===p?0:Math.abs((p-s)/s)},t.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,o=0;o<t.length;o++){for(var i=0;i<t[o].length;i++)for(var s=0;s<e;s++)n.vertices.push(t[o][i][s]);o>0&&(r+=t[o-1].length,n.holes.push(r))}return n},t},void 0!==(i=o())&&(r.exports=i);const a=s.exports},62540:(t,e,n)=>{n.d(e,{Z:()=>m});var r,o=n(43697),i=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011),p=n(75215),h=n(65542),f=n(60746),g=n(71630);const d=a.Z.getLogger("esri.geometry.support.MeshComponent");let x=r=class extends i.wq{constructor(t){super(t),this.faces=null,this.material=null,this.shading="source",this.trustSourceNormals=!1}static from(t){return(0,p.TJ)(r,t)}castFaces(t){return(0,g.XQ)(t,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},d)}castMaterial(t){return(0,p.TJ)(t&&"object"==typeof t&&("metallic"in t||"roughness"in t||"metallicRoughnessTexture"in t)?f.Z:h.Z,t)}clone(){return new r({faces:(0,s.d9)(this.faces),shading:this.shading,material:(0,s.d9)(this.material),trustSourceNormals:this.trustSourceNormals})}cloneWithDeduplication(t,e){const n={faces:(0,s.d9)(this.faces),shading:this.shading,material:this.material?this.material.cloneWithDeduplication(t,e):null,trustSourceNormals:this.trustSourceNormals};return new r(n)}};(0,o._)([(0,l.Cb)({json:{write:!0}})],x.prototype,"faces",void 0),(0,o._)([(0,c.p)("faces")],x.prototype,"castFaces",null),(0,o._)([(0,l.Cb)({type:h.Z,json:{write:!0}})],x.prototype,"material",void 0),(0,o._)([(0,c.p)("material")],x.prototype,"castMaterial",null),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],x.prototype,"shading",void 0),(0,o._)([(0,l.Cb)({type:Boolean})],x.prototype,"trustSourceNormals",void 0),x=r=(0,o._)([(0,u.j)("esri.geometry.support.MeshComponent")],x);const m=x},65542:(t,e,n)=>{n.d(e,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(96674),a=n(70586),l=n(5600),c=(n(67676),n(80442),n(75215),n(52011)),u=n(81118);let p=r=class extends s.wq{constructor(t){super(t),this.color=null,this.colorTexture=null,this.normalTexture=null,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(t,e){const n=(0,a.pC)(t)?t.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(e));return(0,a.pC)(t)&&t.set(this,o),o}clonePropertiesWithDeduplication(t){return{color:(0,a.pC)(this.color)?this.color.clone():null,colorTexture:(0,a.pC)(this.colorTexture)?this.colorTexture.cloneWithDeduplication(t):null,normalTexture:(0,a.pC)(this.normalTexture)?this.normalTexture.cloneWithDeduplication(t):null,alphaMode:this.alphaMode,alphaCutoff:this.alphaCutoff,doubleSided:this.doubleSided}}};(0,o._)([(0,l.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"color",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"colorTexture",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"normalTexture",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaMode",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaCutoff",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"doubleSided",void 0),p=r=(0,o._)([(0,c.j)("esri.geometry.support.MeshMaterial")],p);const h=p},60746:(t,e,n)=>{n.d(e,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(70586),a=n(5600),l=(n(67676),n(80442),n(75215),n(52011)),c=n(65542),u=n(81118);let p=r=class extends c.Z{constructor(t){super(t),this.emissiveColor=null,this.emissiveTexture=null,this.occlusionTexture=null,this.metallic=1,this.roughness=1,this.metallicRoughnessTexture=null}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(t,e){const n=(0,s.pC)(t)?t.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(e));return(0,s.pC)(t)&&t.set(this,o),o}clonePropertiesWithDeduplication(t){return{...super.clonePropertiesWithDeduplication(t),emissiveColor:(0,s.pC)(this.emissiveColor)?this.emissiveColor.clone():null,emissiveTexture:(0,s.pC)(this.emissiveTexture)?this.emissiveTexture.cloneWithDeduplication(t):null,occlusionTexture:(0,s.pC)(this.occlusionTexture)?this.occlusionTexture.cloneWithDeduplication(t):null,metallic:this.metallic,roughness:this.roughness,metallicRoughnessTexture:(0,s.pC)(this.metallicRoughnessTexture)?this.metallicRoughnessTexture.cloneWithDeduplication(t):null}}};(0,o._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"emissiveColor",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"emissiveTexture",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"occlusionTexture",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"metallic",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"roughness",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"metallicRoughnessTexture",void 0),p=r=(0,o._)([(0,l.j)("esri.geometry.support.MeshMaterialMetallicRoughness")],p);const h=p},81118:(t,e,n)=>{n.d(e,{Z:()=>m});var r=n(43697),o=(n(80442),n(96674)),i=n(5600),s=(n(67676),n(75215)),a=n(71715),l=n(52011),c=n(30556),u=n(25929);n(22021);let p=null,h=!0;var f;const g=new WeakMap;let d=0,x=f=class extends o.wq{constructor(t){super(t),this.wrap="repeat"}get url(){return this._get("url")||null}set url(t){this._set("url",t),t&&this._set("data",null)}get data(){return this._get("data")||null}set data(t){this._set("data",t),t&&this._set("url",null)}writeData(t,e,n,r){if(t instanceof HTMLImageElement){const o={type:"image-element",src:(0,u.t)(t.src,r),crossOrigin:t.crossOrigin};e[n]=o}else if(t instanceof HTMLCanvasElement){const r=t.getContext("2d").getImageData(0,0,t.width,t.height),o={type:"canvas-element",imageData:this._encodeImageData(r)};e[n]=o}else if(t instanceof HTMLVideoElement){const o={type:"video-element",src:(0,u.t)(t.src,r),autoplay:t.autoplay,loop:t.loop,muted:t.muted,crossOrigin:t.crossOrigin,preload:t.preload};e[n]=o}else{const r={type:"image-data",imageData:this._encodeImageData(t)};e[n]=r}}readData(t){switch(t.type){case"image-element":{const e=new Image;return e.src=t.src,e.crossOrigin=t.crossOrigin,e}case"canvas-element":{const e=this._decodeImageData(t.imageData),n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").putImageData(e,0,0),n}case"image-data":return this._decodeImageData(t.imageData);case"video-element":{const e=document.createElement("video");return e.src=t.src,e.crossOrigin=t.crossOrigin,e.autoplay=t.autoplay,e.loop=t.loop,e.muted=t.muted,e.preload=t.preload,e}default:return}}get transparent(){const t=this.data,e=this.url;if(t instanceof HTMLCanvasElement)return this._imageDataContainsTransparent(t.getContext("2d").getImageData(0,0,t.width,t.height));if(t instanceof ImageData)return this._imageDataContainsTransparent(t);if(e){const t=e.substr(e.length-4,4).toLowerCase(),n=e.substr(0,15).toLocaleLowerCase();if(".png"===t||"data:image/png;"===n)return!0}return!1}set transparent(t){null!=t?this._override("transparent",t):this._clearOverride("transparent")}get contentHash(){const t="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",e=(e="")=>`d:${e},t:${this.transparent},w:${t}`;return null!=this.url?e(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?e(this.data.src):(g.has(this.data)||g.set(this.data,++d),e(g.get(this.data))):e()}clone(){const t={url:this.url,data:this.data,wrap:this._cloneWrap()};return new f(t)}cloneWithDeduplication(t){const e=t.get(this);if(e)return e;const n=this.clone();return t.set(this,n),n}_cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}_encodeImageData(t){let e="";for(let n=0;n<t.data.length;n++)e+=String.fromCharCode(t.data[n]);return{data:btoa(e),width:t.width,height:t.height}}_decodeImageData(t){const e=atob(t.data),n=new Uint8ClampedArray(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return function(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(h)try{return new ImageData(t,e,n)}catch(t){h=!1}const o=function(t,e,n){return n||(p||(p=document.createElement("canvas"),p.width=1,p.height=1),n=p),n.getContext("2d").createImageData(t,e)}(e,n,void 0);return o.data.set(t,0),o}(n,t.width,t.height)}_imageDataContainsTransparent(t){for(let e=3;e<t.data.length;e+=4)if(255!==t.data[e])return!0;return!1}static from(t){return"string"==typeof t?new f({url:t}):t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof ImageData||t instanceof HTMLVideoElement?new f({data:t}):(0,s.TJ)(f,t)}};(0,r._)([(0,i.Cb)({type:String,json:{write:u.w}})],x.prototype,"url",null),(0,r._)([(0,i.Cb)({json:{write:{overridePolicy(){return{enabled:!this.url}}}}}),(0,i.Cb)()],x.prototype,"data",null),(0,r._)([(0,c.c)("data")],x.prototype,"writeData",null),(0,r._)([(0,a.r)("data")],x.prototype,"readData",null),(0,r._)([(0,i.Cb)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],x.prototype,"transparent",null),(0,r._)([(0,i.Cb)({json:{write:!0}})],x.prototype,"wrap",void 0),(0,r._)([(0,i.Cb)({readOnly:!0})],x.prototype,"contentHash",null),x=f=(0,r._)([(0,l.j)("esri.geometry.support.MeshTexture")],x);const m=x},71630:(t,e,n)=>{n.d(e,{QL:()=>h,XQ:()=>g,ZP:()=>x});var r,o=n(43697),i=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011);const p=a.Z.getLogger("esri.geometry.support.MeshVertexAttributes");let h=r=class extends i.wq{constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return g(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},p)}castPosition(t){return t&&t instanceof Float32Array&&p.warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),g(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},p)}castUv(t){return g(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},p)}castNormal(t){return g(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},p)}castTangent(t){return g(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},p)}clone(){const t={position:(0,s.d9)(this.position),uv:(0,s.d9)(this.uv),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),color:(0,s.d9)(this.color)};return new r(t)}clonePositional(){const t={position:(0,s.d9)(this.position),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),uv:this.uv,color:this.color};return new r(t)}};function f(t,e,n,r){const{loggerTag:o,stride:i}=e;return t.length%i!=0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new n([])):t}function g(t,e,n,r,o){if(!t)return t;if(t instanceof e)return f(t,r,e,o);for(const i of n)if(t instanceof i)return f(new e(t),r,e,o);if(Array.isArray(t))return f(new e(t),r,e,o);{const r=n.map((t=>`'${t.name}'`));return o.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new e([])}}function d(t,e,n){e[n]=function(t){const e=new Array(t.length);for(let n=0;n<t.length;n++)e[n]=t[n];return e}(t)}(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"color",void 0),(0,o._)([(0,c.p)("color")],h.prototype,"castColor",null),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:d}})],h.prototype,"position",void 0),(0,o._)([(0,c.p)("position")],h.prototype,"castPosition",null),(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"uv",void 0),(0,o._)([(0,c.p)("uv")],h.prototype,"castUv",null),(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"normal",void 0),(0,o._)([(0,c.p)("normal")],h.prototype,"castNormal",null),(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"tangent",void 0),(0,o._)([(0,c.p)("tangent")],h.prototype,"castTangent",null),h=r=(0,o._)([(0,u.j)("esri.geometry.support.MeshVertexAttributes")],h);const x=h},47545:(t,e,n)=>{n.d(e,{d:()=>o});var r=n(22021);function o(t,e,n){var o;const c=t.byteLength/(4*e),u=new Uint32Array(t,0,c*e);let p=new Uint32Array(c);const h=null!=(o=null==n?void 0:n.minReduction)?o:0,f=(null==n?void 0:n.originalIndices)||null,g=f?f.length:0,d=(null==n?void 0:n.componentOffsets)||null;let x=0;if(d)for(let t=0;t<d.length-1;t++){const e=d[t+1]-d[t];e>x&&(x=e)}else x=c;const m=Math.floor(1.1*x)+1;(null==l||l.length<2*m)&&(l=new Uint32Array((0,r.Sf)(2*m)));for(let t=0;t<2*m;t++)l[t]=0;let y=0;const v=!!d&&!!f,w=v?g:c,b=v?new Uint32Array(g):null,C=1.96;let A=0!==h?Math.ceil(4*C*C/(h*h)*h*(1-h)):w,M=1,Z=d?d[1]:w;for(let t=0;t<w;t++){if(t===A){const e=1-y/t;if(e+C*Math.sqrt(e*(1-e)/t)<h)return null;A*=2}if(t===Z){for(let t=0;t<2*m;t++)l[t]=0;if(f)for(let t=d[M-1];t<d[M];t++)b[t]=p[f[t]];Z=d[++M]}const n=v?f[t]:t,r=n*e,o=a(u,r,e);let s=o%m,c=y;for(;0!==l[2*s+1];){if(l[2*s]===o){const t=l[2*s+1]-1;if(i(u,r,t*e,e)){c=p[t];break}}s++,s>=m&&(s-=m)}c===y&&(l[2*s]=o,l[2*s+1]=n+1,y++),p[n]=c}if(0!==h&&1-y/c<h)return null;if(v){for(let t=d[M-1];t<b.length;t++)b[t]=p[f[t]];p=b}const _=new Uint32Array(e*y);y=0;for(let t=0;t<w;t++)p[t]===y&&(s(u,(v?f[t]:t)*e,_,y*e,e),y++);if(f&&!v){const t=new Uint32Array(g);for(let e=0;e<t.length;e++)t[e]=p[f[e]];p=t}return{buffer:_.buffer,indices:p,uniqueCount:y}}function i(t,e,n,r){for(let o=0;o<r;o++)if(t[e+o]!==t[n+o])return!1;return!0}function s(t,e,n,r,o){for(let i=0;i<o;i++)n[r+i]=t[e+i]}function a(t,e,n){let r=0;for(let o=0;o<n;o++)r=t[e+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let l=null},38163:(t,e,n)=>{n.r(e),n.d(e,{meshFeatureSetFromJSON:()=>Et});var r,o,i=n(1692),s=n(70586),a=n(6570),l=n(43697),c=n(20102),u=n(3920),p=n(83379),h=n(92604),f=n(609),g=n(95330),d=n(17445),x=n(5600),m=(n(67676),n(80442),n(75215),n(52011)),y=n(65617),v=n(9361),w=n(13473),b=n(17332),C=n(3709),A=n(62540),M=n(2674),Z=n(71630),_=n(95401),T=n(86662),F=n(47545);function R(t,e,n){const o=t.length,i=new Array(o),s=new Array(o),a=new Array(o);let l=0,c=0,u=0,p=0;for(let e=0;e<o;++e)p+=t[e].length;const h=new Float64Array(3*p);let f=0;for(let p=o-1;p>=0;p--){const g=t[p],d=n===r.CCW_IS_HOLE&&I(g);if(d&&1!==o)i[l++]=g;else{let t=g.length;for(let e=0;e<l;++e)t+=i[e].length;const n={index:f,pathLengths:new Array(l+1),count:t,holeIndices:new Array(l)};n.pathLengths[0]=g.length,g.length>0&&(a[u++]={index:f,count:g.length}),f=d?D(g,g.length-1,-1,h,f,g.length,e):D(g,0,1,h,f,g.length,e);for(let t=0;t<l;++t){const r=i[t];n.holeIndices[t]=f,n.pathLengths[t+1]=r.length,r.length>0&&(a[u++]={index:f,count:r.length}),f=D(r,0,1,h,f,r.length,e)}l=0,n.count>0&&(s[c++]=n)}}for(let t=0;t<l;++t){const n=i[t];n.length>0&&(a[u++]={index:f,count:n.length}),f=D(n,0,1,h,f,n.length,e)}return c<o&&(s.length=c),u<o&&(a.length=u),{position:h,polygons:s,outlines:a}}function D(t,e,n,r,o,i,s){o*=3;for(let a=0;a<i;++a){const i=t[e];r[o++]=i[0],r[o++]=i[1],r[o++]=s?i[2]:0,e+=n}return o/3}function I(t){return!(0,T.bu)(t,!1,!1)}(o=r||(r={}))[o.NONE=0]="NONE",o[o.CCW_IS_HOLE=1]="CCW_IS_HOLE";var L=n(44547),E=n(13442),O=n(66459);const P=h.Z.getLogger("esri.geometry.support.meshUtils.centerAt");const S=(0,y.c)(),j=(0,y.c)();var z=n(17452);function N(t){const e=(0,z.Yd)(t.url);return n=>{var r;const o=(0,z.PF)(n,e,e),i=o?o.replace(/^ *\.\//,""):null;return null!=(r=t.files.get(i))?r:n}}async function U(t,e){return t instanceof Blob?W.fromBlob(t):"string"==typeof t?new W(t):Array.isArray(t)?async function(t,e){const n=new Map;let r=null;const o=await(0,g.WW)(t.map((async t=>({name:t.name,source:await U(t instanceof Blob?t:t.source,e)})))),i=[];for(const t of o)t&&((0,g.Hc)(e)?t.source.dispose():i.push(t));(0,g.k_)(e);for(const{name:t,source:e}of i)((0,s.Wi)(r)||/\.(gltf|glb)/i.test(t))&&(r=e.url),n.set(t,e.url),e.files&&e.files.forEach(((t,e)=>n.set(e,t)));if((0,s.Wi)(r))throw new c.Z("mesh-load-external:missing-files","Missing files to load external mesh source");return new W(r,(()=>i.forEach((({source:t})=>t.dispose()))),n)}(t,e):async function(t,e){const{default:r}=await(0,g.Hl)(Promise.resolve().then(n.bind(n,3172)),e),o="string"==typeof t.multipart[0]?await Promise.all(t.multipart.map((async t=>(await r(t,{responseType:"array-buffer"})).data))):t.multipart;return W.fromBlob(new Blob(o))}(t,e)}class W{constructor(t,e=(()=>{}),n=new Map){this.url=t,this.dispose=e,this.files=n}static fromBlob(t){const e=URL.createObjectURL(t);return new W(e,(()=>URL.revokeObjectURL(e)))}}var k=n(21787),$=n(46521),H=n(13598),B=n(17896),G=n(24678),q=n(56493);const Y=h.Z.getLogger("esri.geometry.support.meshUtils.offset");function X(t,e){if(t)for(let n=0;n<t.length;n+=3)for(let r=0;r<3;r++)t[n+r]+=e[r]}const K=(0,y.c)(),V=(0,H.c)(),J=(0,$.c)(),Q={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function tt(t,e,n){(function(t){for(let e=0;e<t.position.length;e+=3)t.position[e+2]+=.5})(t),function(t,e){if(null==e)return;const n="number"==typeof e?[e,e,e]:[null!=e.width?e.width:1,null!=e.depth?e.depth:1,null!=e.height?e.height:1];ot[0]=n[0],ot[4]=n[1],ot[8]=n[2];for(let e=0;e<t.position.length;e+=3){for(let n=0;n<3;n++)rt[n]=t.position[e+n];(0,B.t)(rt,rt,ot);for(let n=0;n<3;n++)t.position[e+n]=rt[n]}if(n[0]!==n[1]||n[1]!==n[2]){ot[0]=1/n[0],ot[4]=1/n[1],ot[8]=1/n[2];for(let e=0;e<t.normal.length;e+=3){for(let n=0;n<3;n++)rt[n]=t.normal[e+n];(0,B.t)(rt,rt,ot),(0,B.n)(rt,rt);for(let n=0;n<3;n++)t.normal[e+n]=rt[n]}}}(t,n&&n.size);const{vertexAttributes:r,transform:o}=(0,O.w1)(t,e,n);return{vertexAttributes:new Z.ZP({...r,uv:t.uv}),transform:o,components:[new A.Z({faces:t.faces,material:n&&n.material||null})],spatialReference:e.spatialReference}}const et={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},nt={south:0,east:1,north:2,west:3,up:4,down:5},rt=(0,y.c)(),ot=(0,$.c)();var it=n(52138);const st=h.Z.getLogger("esri.geometry.support.meshUtils.rotate");function at(t,e,n,r=y.Z){if(!(0,s.Wi)(t)){(0,it.d)(pt,(0,C.WH)(e),(0,C.ZZ)(e));for(let e=0;e<t.length;e+=n){for(let n=0;n<3;n++)lt[n]=t[e+n]-r[n];(0,B.m)(lt,lt,pt);for(let n=0;n<3;n++)t[e+n]=lt[n]+r[n]}}}const lt=(0,y.c)(),ct=(0,y.c)(),ut=(0,C.Ue)(),pt=(0,H.c)(),ht=(0,$.c)(),ft=(0,y.c)(),gt=h.Z.getLogger("esri.geometry.support.meshUtils.scale");function dt(t,e,n=y.Z){if(t)for(let r=0;r<t.length;r+=3){for(let e=0;e<3;e++)xt[e]=t[r+e]-n[e];(0,B.a)(xt,xt,e);for(let e=0;e<3;e++)t[r+e]=xt[e]+n[e]}}const xt=(0,y.c)(),mt=(0,y.c)(),yt=(0,y.c)();var vt;const wt=h.Z.getLogger("esri.geometry.Mesh");let bt=vt=class extends((0,u.p)(p.Z.LoadableMixin((0,f.v)(v.Z)))){constructor(t){super(t),this.components=null,this.transform=null,this.external=null,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new Z.QL,this.type="mesh"}initialize(){((0,s.Wi)(this.external)||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when((()=>{this.handles.add((0,d.YP)((()=>{var t;return{vertexAttributes:this.vertexAttributes,components:null==(t=this.components)?void 0:t.map((t=>t.clone())),transform:(0,s.pC)(this.transform)?this.transform.clone():null}}),(()=>this._set("external",null)),{once:!0,sync:!0}))}))}get hasExtent(){return!this.loaded&&(0,s.pC)(this.external)&&(0,s.pC)(this.external.extent)||this.loaded&&this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0)}get boundingInfo(){const t=this.vertexAttributes.position,e=this.spatialReference;if(0===t.length||this.components&&0===this.components.length)return{extent:new a.Z({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0,spatialReference:e}),center:new w.Z({x:0,y:0,z:0,spatialReference:e})};const n=(0,s.pC)(this.transform)?this.transform.project(t,e):t;let r=1/0,o=1/0,i=1/0,l=-1/0,c=-1/0,u=-1/0,p=0,h=0,f=0;const g=n.length,d=1/(g/3);let x=0;for(;x<g;){const t=n[x++],e=n[x++],s=n[x++];r=Math.min(r,t),o=Math.min(o,e),i=Math.min(i,s),l=Math.max(l,t),c=Math.max(c,e),u=Math.max(u,s),p+=d*t,h+=d*e,f+=d*s}return{extent:new a.Z({xmin:r,ymin:o,zmin:i,xmax:l,ymax:c,zmax:u,spatialReference:e}),center:new w.Z({x:p,y:h,z:f,spatialReference:e})}}get anchor(){if((0,s.pC)(this.transform))return this.transform.getOriginPoint(this.spatialReference);const t=this.boundingInfo;return new w.Z({x:t.center.x,y:t.center.y,z:t.extent.zmin,spatialReference:this.spatialReference})}get origin(){return(0,s.pC)(this.transform)?this.transform.getOriginPoint(this.spatialReference):this.boundingInfo.center}get extent(){return!this.loaded&&(0,s.pC)(this.external)&&(0,s.pC)(this.external.extent)?this.external.extent.clone():this.boundingInfo.extent}addComponent(t){this.loaded?(this.components||(this.components=[]),this.components.push(A.Z.from(t)),this.notifyChange("components")):wt.error("addComponent()","Mesh must be loaded before applying operations")}removeComponent(t){if(this.loaded){if(this.components){const e=this.components.indexOf(t);if(-1!==e)return this.components.splice(e,1),void this.notifyChange("components")}wt.error("removeComponent()","Provided component is not part of the list of components")}else wt.error("removeComponent()","Mesh must be loaded before applying operations")}rotate(t,e,n,r){return(0,C.uT)(Ct.x,t,At),(0,C.uT)(Ct.y,e,Mt),(0,C.uT)(Ct.z,n,Zt),(0,C.qC)(At,Mt,At),(0,C.qC)(At,Zt,At),function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position||0===e[3])return;const r=t.spatialReference;if((0,s.pC)(t.transform)){var o;null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&st.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`);const i=null!=(o=null==n?void 0:n.origin)?o:t.transform.getOriginPoint(r);!function(t,e,n){const r=(0,B.s)(lt,n.x,n.y,n.z),o=(0,B.f)(lt,r,t.origin);t.applyLocalInverse(o,ct),t.rotation=(0,C.qC)(t.rotation,e,(0,C.Ue)()),t.applyLocalInverse(o,o),(0,B.f)(o,o,ct),t.translation=(0,B.b)((0,y.c)(),t.translation,o)}(t.transform,e,i)}else{var i;const r=null!=(i=null==n?void 0:n.origin)?i:t.origin;(0,E.h)(t.spatialReference,n)?function(t,e,n){const r=t.spatialReference,o=(0,G.rS)(r),i=ft;(0,L.KC)(n,i,o)||(0,L.KC)(t.origin,i,o);const a=t.vertexAttributes.position,l=t.vertexAttributes.normal,c=t.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,s.pC)(l)?new Float32Array(l.length):null,h=(0,s.pC)(c)?new Float32Array(c.length):null;(0,L.Bm)(o,i,pt,o),(0,k.f)(ht,pt);const f=ut;(0,B.t)((0,C.ZZ)(ut),(0,C.ZZ)(e),ht),f[3]=e[3],(0,q.XO)(a,r,u),(0,s.pC)(l)&&(0,q.Iz)(l,a,u,r,p),(0,s.pC)(c)&&(0,q.wi)(c,a,u,r,h),at(u,f,3,i),(0,q.To)(u,a,r),(0,s.pC)(l)&&(at(p,f,3),(0,q.Yk)(p,a,u,r,l)),(0,s.pC)(c)&&(at(h,f,4),(0,q.M2)(h,a,u,r,c)),t.vertexAttributesChanged()}(t,e,r):function(t,e,n){const r=ft;if(!(0,L.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,st.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}at(t.vertexAttributes.position,e,3,r),at(t.vertexAttributes.normal,e,3),at(t.vertexAttributes.tangent,e,4),t.vertexAttributesChanged()}(t,e,r)}}(this,At,r),this}offset(t,e,n,r){return this.loaded?(_t[0]=t,_t[1]=e,_t[2]=n,function(t,e,n){t.vertexAttributes&&t.vertexAttributes.position&&((0,s.pC)(t.transform)?(null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&Y.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`),function(t,e){const n=t.origin;t.origin=(0,B.b)((0,y.c)(),n,e)}(t.transform,e)):(0,E.h)(t.spatialReference,n)?function(t,e){const n=t.spatialReference,r=t.vertexAttributes.position,o=t.vertexAttributes.normal,i=t.vertexAttributes.tangent,a=new Float64Array(r.length),l=(0,s.pC)(o)?new Float32Array(o.length):null,c=(0,s.pC)(i)?new Float32Array(i.length):null,u=t.extent.center,p=K;(0,L.Bm)(n,[u.x,u.y,u.z],V,(0,G.rS)(n)),(0,k.f)(J,V),(0,B.t)(p,e,J),(0,q.XO)(r,n,a),(0,s.pC)(o)&&(0,q.Iz)(o,r,a,n,l),(0,s.pC)(i)&&(0,q.wi)(i,r,a,n,c),X(a,p),(0,q.To)(a,r,n),(0,s.pC)(o)&&(0,q.Yk)(l,r,a,n,o),(0,s.pC)(i)&&(0,q.M2)(c,r,a,n,i),t.vertexAttributesChanged()}(t,e):function(t,e){X(t.vertexAttributes.position,e),t.vertexAttributesChanged()}(t,e))}(this,_t,r),this):(wt.error("offset()","Mesh must be loaded before applying operations"),this)}scale(t,e){return this.loaded?(function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position)return;const r=t.spatialReference;if((0,s.pC)(t.transform)){var o;null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&gt.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`);const i=null!=(o=null==n?void 0:n.origin)?o:t.transform.getOriginPoint(r);!function(t,e,n){const r=(0,B.s)(xt,n.x,n.y,n.z),o=(0,B.f)(xt,r,t.origin);t.applyLocalInverse(o,mt);const i=(0,B.a)((0,y.c)(),t.scale,e);t.scale=i,t.applyLocalInverse(o,o),(0,B.f)(o,o,mt),t.translation=(0,B.b)((0,y.c)(),t.translation,o)}(t.transform,e,i)}else{const r=(0,E.h)(t.spatialReference,n),o=n&&n.origin||t.origin;r?function(t,e,n){const r=t.spatialReference,o=(0,G.rS)(r),i=yt;(0,L.KC)(n,i,o)||(0,L.KC)(t.origin,i,o);const a=t.vertexAttributes.position,l=t.vertexAttributes.normal,c=t.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,s.pC)(l)?new Float32Array(l.length):null,h=(0,s.pC)(c)?new Float32Array(c.length):null;(0,q.XO)(a,r,u),(0,s.pC)(l)&&(0,q.Iz)(l,a,u,r,p),(0,s.pC)(c)&&(0,q.wi)(c,a,u,r,h),dt(u,e,i),(0,q.To)(u,a,r),(0,s.pC)(l)&&(0,q.Yk)(p,a,u,r,l),(0,s.pC)(c)&&(0,q.M2)(h,a,u,r,c),t.vertexAttributesChanged()}(t,e,o):function(t,e,n){const r=yt;if(!(0,L.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,gt.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}dt(t.vertexAttributes.position,e,r),t.vertexAttributesChanged()}(t,e,o)}}(this,t,e),this):(wt.error("scale()","Mesh must be loaded before applying operations"),this)}centerAt(t,e){return this.loaded?(function(t,e,n){var r;if(!t.vertexAttributes||!t.vertexAttributes.position)return;const o=null!=(r=null==n?void 0:n.origin)?r:t.origin;(0,s.pC)(t.transform)?(null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&P.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`),function(t,e,n){const r=e.x-n.x,o=e.y-n.y,i=e.hasZ&&n.hasZ?e.z-n.z:0,s=t.origin;t.origin=[s[0]+r,s[1]+o,s[2]+i]}(t.transform,e,o)):(0,E.h)(t.spatialReference,n)?function(t,e,n){const r=(0,O.FF)(t.vertexAttributes,n,{geographic:!0}),{position:o,normal:i,tangent:s}=(0,O.iv)(r,e,{geographic:!0});t.vertexAttributes.position=o,t.vertexAttributes.normal=i,t.vertexAttributes.tangent=s,t.vertexAttributesChanged()}(t,e,o):function(t,e,n){const r=j,o=S;if((0,L.KC)(e,o,t.spatialReference)){if(!(0,L.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,P.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}(function(t,e,n){if(t)for(let r=0;r<t.length;r+=3)for(let o=0;o<3;o++)t[r+o]+=e[o]-n[o]})(t.vertexAttributes.position,o,r),t.vertexAttributesChanged()}else P.error(`Failed to project centerAt location (wkid:${e.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid})`)}(t,e,o)}(this,t,e),this):(wt.error("centerAt()","Mesh must be loaded before applying operations"),this)}load(t){return(0,s.pC)(this.external)&&this.addResolvingPromise(async function(t,e,r){const{loadGLTFMesh:o}=await(0,g.Hl)(Promise.all([n.e(2133),n.e(9070)]).then(n.bind(n,99070)),r),i=await U(e,r),a=o(new w.Z({x:0,y:0,z:0,spatialReference:t.spatialReference}),i.url,{resolveFile:N(i),useTransform:!0,signal:(0,s.pC)(r)?r.signal:null});a.then((()=>i.dispose()),(()=>i.dispose()));const{vertexAttributes:l,components:c}=await a;t.vertexAttributes=l,t.components=c}(this,this.external.source,t)),Promise.resolve(this)}clone(){const t=this.components?new Map:null,e=this.components?new Map:null,n={components:this.components?this.components.map((n=>n.cloneWithDeduplication(t,e))):null,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes.clone(),transform:(0,s.pC)(this.transform)?this.transform.clone():null,external:(0,s.pC)(this.external)?{source:this.external.source,extent:(0,s.pC)(this.external.extent)?this.external.extent.clone():null}:null};return new vt(n)}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(t){const{toBinaryGLTF:e}=await n.e(7277).then(n.bind(n,7277));return e(this,t)}static createBox(t,e){if(!(t instanceof w.Z))return wt.error(".createBox()","expected location to be a Point instance"),null;const n=new vt(tt(function(){const{faceDescriptions:t,faceVertexOffsets:e,uvScales:n}=et,r=4*t.length,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array(2*t.length*3);let l=0,c=0,u=0,p=0;for(let r=0;r<t.length;r++){const h=t[r],f=l/3;for(const t of e)a[p++]=f+t;const g=h.corners;for(let t=0;t<4;t++){const e=g[t];let r=0;s[u++]=.25*n[t][0]+h.uvOrigin[0],s[u++]=h.uvOrigin[1]-.25*n[t][1];for(let t=0;t<3;t++)0!==h.axis[t]?(o[l++]=.5*h.axis[t],i[c++]=h.axis[t]):(o[l++]=.5*e[r++],i[c++]=0)}}return{position:o,normal:i,uv:s,faces:a}}(),t,e));return e&&e.imageFace&&"all"!==e.imageFace?function(t,e){const n=t.components[0],r=n.faces,o=nt[e],i=6*o,a=new Uint32Array(6),l=new Uint32Array(r.length-6);let c=0,u=0;for(let t=0;t<r.length;t++)t>=i&&t<i+6?a[c++]=r[t]:l[u++]=r[t];if((0,s.pC)(t.vertexAttributes.uv)){const e=new Float32Array(t.vertexAttributes.uv),n=4*o*2,r=[0,1,1,1,1,0,0,0];for(let t=0;t<r.length;t++)e[n+t]=r[t];t.vertexAttributes.uv=e}return t.components=[new A.Z({faces:a,material:n.material}),new A.Z({faces:l})],t}(n,e.imageFace):n}static createSphere(t,e){return t instanceof w.Z?new vt(tt(function(t=0){const e=Math.round(8*2**t),n=2*e,r=(e-1)*(n+1)+2*n,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array((e-1)*n*2*3);let l=0,c=0,u=0,p=0;for(let t=0;t<=e;t++){const r=t/e*Math.PI+.5*Math.PI,h=Math.cos(r),f=Math.sin(r);rt[2]=f;const g=0===t||t===e,d=g?n-1:n;for(let r=0;r<=d;r++){const f=r/d*2*Math.PI;rt[0]=-Math.sin(f)*h,rt[1]=Math.cos(f)*h;for(let t=0;t<3;t++)o[l]=.5*rt[t],i[l]=rt[t],++l;s[c++]=(r+(g?.5:0))/n,s[c++]=t/e,0!==t&&r!==n&&(t!==e&&(a[u++]=p,a[u++]=p+1,a[u++]=p-n),1!==t&&(a[u++]=p,a[u++]=p-n,a[u++]=p-n-1)),p++}}return{position:o,normal:i,uv:s,faces:a}}(e&&e.densificationFactor||0),t,e)):(wt.error(".createSphere()","expected location to be a Point instance"),null)}static createCylinder(t,e){return t instanceof w.Z?new vt(tt(function(t=0){const e=Math.round(16*2**t),n=4*(e+1)+2*e,r=new Float64Array(3*n),o=new Float32Array(3*n),i=new Float32Array(2*n),s=new Uint32Array(4*e*3);let a=0,l=0,c=0,u=0,p=0;for(let t=0;t<=5;t++){const n=0===t||5===t,h=t<=1||t>=4,f=2===t||4===t,g=n?e-1:e;for(let d=0;d<=g;d++){const x=d/g*2*Math.PI,m=n?0:.5;rt[0]=m*Math.sin(x),rt[1]=m*-Math.cos(x),rt[2]=t<=2?.5:-.5;for(let e=0;e<3;e++)r[a++]=rt[e],o[l++]=h?2===e?t<=1?1:-1:0:2===e?0:rt[e]/m;i[c++]=(d+(n?.5:0))/e,i[c++]=t<=1?1*t/3:t<=3?1*(t-2)/3+1/3:1*(t-4)/3+2/3,f||0===t||d===e||(5!==t&&(s[u++]=p,s[u++]=p+1,s[u++]=p-e),1!==t&&(s[u++]=p,s[u++]=p-e,s[u++]=p-e-1)),p++}}return{position:r,normal:o,uv:i,faces:s}}(e&&e.densificationFactor||0),t,e)):(wt.error(".createCylinder()","expected location to be a Point instance"),null)}static createPlane(t,e){var n;if(!(t instanceof w.Z))return wt.error(".createPlane()","expected location to be a Point instance"),null;const r=null!=(n=null==e?void 0:e.facing)?n:"up",o=function(t,e){const n="number"==typeof e?e:null!=e?e.width:1,r="number"==typeof e?e:null!=e?e.height:1;switch(t){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}(r,null==e?void 0:e.size);return new vt(tt(function(t){const e=Q.facingAxisOrderSwap[t],n=Q.position,r=Q.normal,o=new Float64Array(n.length),i=new Float32Array(r.length);let s=0;for(let t=0;t<4;t++){const t=s;for(let a=0;a<3;a++){const l=e[a],c=Math.abs(l)-1,u=l>=0?1:-1;o[s]=n[t+c]*u,i[s]=r[t+c]*u,s++}}return{position:o,normal:i,uv:new Float32Array(Q.uv),faces:new Uint32Array(Q.faces)}}(r),t,{...e,size:o}))}static createFromPolygon(t,e){if(!(t instanceof b.Z))return wt.error(".createFromPolygon()","expected polygon to be a Polygon instance"),null;const n=function(t){const e=R(t.rings,t.hasZ,r.CCW_IS_HOLE),n=[];let o=0,i=0;for(const t of e.polygons){const r=t.count,s=t.index,a=new Float64Array(e.position.buffer,3*s*e.position.BYTES_PER_ELEMENT,3*r),l=t.holeIndices.map((t=>t-s)),c=new Uint32Array((0,_.e)(a,l,3));n.push({position:a,faces:c}),o+=a.length,i+=c.length}const s=function(t,e,n){if(1===t.length)return t[0];const r=new Float64Array(e),o=new Uint32Array(n);let i=0,s=0,a=0;for(const e of t){for(let t=0;t<e.position.length;t++)r[i++]=e.position[t];for(let t=0;t<e.faces.length;t++)o[s++]=e.faces[t]+a;a=i/3}return{position:r,faces:o}}(n,o,i),a=(0,F.d)(s.position.buffer,6,{originalIndices:s.faces});return s.position=new Float64Array(a.buffer),s.faces=a.indices,s}(t);return new vt({vertexAttributes:new Z.QL({position:n.position}),components:[new A.Z({faces:n.faces,shading:"flat",material:e&&e.material||null})],spatialReference:t.spatialReference})}static async createFromGLTF(t,e,r){if(!(t instanceof w.Z))throw wt.error(".createfromGLTF()","expected location to be a Point instance"),new c.Z("invalid-input","Expected location to be a Point instance");const{loadGLTFMesh:o}=await(0,g.Hl)(Promise.all([n.e(2133),n.e(9070)]).then(n.bind(n,99070)),r);return new vt(await o(t,e,r))}static createWithExternalSource(t,e,n){var r,o,i;const s=null!=(r=null==n?void 0:n.extent)?r:null,a=null!=(o=null==n?void 0:n.transform.clone())?o:new M.Z;a.origin=[t.x,t.y,null!=(i=t.z)?i:0];const l=t.spatialReference;return new vt({external:{source:e,extent:s},transform:a,spatialReference:l})}static createIncomplete(t,e){var n,r;const o=null!=(n=null==e?void 0:e.transform.clone())?n:new M.Z;o.origin=[t.x,t.y,null!=(r=t.z)?r:0];const i=t.spatialReference,s=new vt({transform:o,spatialReference:i});return s.addResolvingPromise(Promise.reject(new c.Z("mesh-incomplete","Mesh resources are not complete"))),s}};(0,l._)([(0,x.Cb)({type:[A.Z],json:{write:!0}})],bt.prototype,"components",void 0),(0,l._)([(0,x.Cb)({type:M.Z,json:{write:!0}})],bt.prototype,"transform",void 0),(0,l._)([(0,x.Cb)({constructOnly:!0})],bt.prototype,"external",void 0),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"hasExtent",null),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"boundingInfo",null),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"anchor",null),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"origin",null),(0,l._)([(0,x.Cb)({readOnly:!0,json:{read:!1}})],bt.prototype,"extent",null),(0,l._)([(0,x.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],bt.prototype,"hasZ",void 0),(0,l._)([(0,x.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],bt.prototype,"hasM",void 0),(0,l._)([(0,x.Cb)({type:Z.QL,nonNullable:!0,json:{write:!0}})],bt.prototype,"vertexAttributes",void 0),bt=vt=(0,l._)([(0,m.j)("esri.geometry.Mesh")],bt);const Ct={x:(0,y.f)(1,0,0),y:(0,y.f)(0,1,0),z:(0,y.f)(0,0,1)},At=(0,C.Ue)(),Mt=(0,C.Ue)(),Zt=(0,C.Ue)(),_t=(0,y.c)(),Tt=bt;var Ft,Rt;!function(t){t.featureGUID="featureGUID",t.assetName="assetName",t.hash="hash",t.type="type",t.conversionStatus="conversionStatus",t.flags="flags",t.complexity="complexity",t.size="size",t.seqNo="seqNo",t.sourceHash="sourceHash",t.assetURL="assetURL"}(Ft||(Ft={})),function(t){t.SUBMITTED="SUBMITTED",t.INPROGRESS="INPROGRESS",t.FAILED="FAILED",t.COMPLETED="COMPLETED"}(Rt||(Rt={}));var Dt,It,Lt=n(74889);function Et(t,e,n){const r=n.features;n.features=[],delete n.geometryType;const o=Lt.default.fromJSON(n);o.geometryType="mesh";const a=o.spatialReference,l=(0,s.Wi)(t.outFields)||!t.outFields.length?()=>({}):(c=t.outFields.includes("*")?null:new Set(t.outFields),({attributes:t})=>{if(!t)return{};if(!c)return t;for(const e in t)c.has(e)||delete t[e];return t});var c;for(const t of r){const n=Ot(t,a,e);(0,s.pC)(n)&&o.features.push(new i.Z({geometry:n,attributes:l(t)}))}return o}function Ot(t,e,n){const{status:r,source:o}=function(t){if(!t.assetMappings)return{status:Dt.FAILED};const e=[],n=new Map;for(const r of t.assetMappings){const t=r[Ft.seqNo],o=r[Ft.assetName],i=r[Ft.assetURL],s=r[Ft.conversionStatus];if(s===Rt.FAILED)return{status:Dt.FAILED};if(s!==Rt.COMPLETED)return{status:Dt.PENDING};if(null==t)e.push({name:o,source:i});else{const r=n.get(o);let s;r?s=r.multipart:(s=[],e.push({name:o,source:{multipart:s}}),n.set(o,{multipart:s})),s[t]=i}}return{status:Dt.COMPLETED,source:e}}(t);if(r===Dt.FAILED)return null;const i=function({attributes:t},e,{transformFieldRoles:n}){return new w.Z({x:t[n.originX],y:t[n.originY],z:t[n.originZ],spatialReference:e})}(t,e,n),s=a.Z.fromJSON(t.geometry);s.spatialReference=e;const l=function({attributes:t,assetMappings:e},{transformFieldRoles:n}){var r;return new M.Z({translation:[t[n.translationX],t[n.translationY],t[n.translationZ]],rotation:(0,C.uT)([t[n.rotationX],t[n.rotationY],t[n.rotationZ]],t[n.rotationDeg]),scale:[t[n.scaleX],t[n.scaleY],t[n.scaleZ]],geographic:!(null!=(r=e[Ft.flags])&&r.includes("PROJECT_VERTICES"))})}(t,n);return r===Dt.PENDING?Tt.createIncomplete(i,{extent:s,transform:l}):Tt.createWithExternalSource(i,o,{extent:s,transform:l})}(It=Dt||(Dt={}))[It.FAILED=0]="FAILED",It[It.PENDING=1]="PENDING",It[It.COMPLETED=2]="COMPLETED"}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[511],{16453:(e,t,r)=>{r.d(t,{R:()=>v,w:()=>w});var i=r(43697),s=r(15923),o=r(70586),n=r(41103),l=r(22974),a=r(31263);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new u,r=this._originStores[a.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,l.d9)(e),a.s3.DEFAULTS)}));for(let r=a.s3.SERVICE;r<a.kk;r++){const i=this._originStores[r];i&&i.forEach(((i,s)=>{e&&e.has(s)||t.set(s,(0,l.d9)(i),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=a.s3.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||(0,o.j0)(this._propertyOriginMap.get(e))<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=a.s3.USER){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r&&r.get(e),s=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),s!==i}originOf(e){return this._propertyOriginMap.get(e)||a.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var p=r(50549),c=r(1153),d=r(52011);const h=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,o.j0)((0,c.vw)(this)),r=t.store,i=new u;t.store=i,(0,n.M)(t,r,i)}read(e,t){(0,p.i)(this,e,t)}getAtOrigin(e,t){const r=y(this),i=(0,a.M9)(t);if("string"==typeof e)return r.get(e,i);const s={};return e.forEach((e=>{s[e]=r.get(e,i)})),s}originOf(e){return(0,a.x3)(this.originIdOf(e))}originIdOf(e){return y(this).originOf(e)}revert(e,t){const r=y(this),i=(0,a.M9)(t),s=(0,c.vw)(this);let o;o="string"==typeof e?"*"===e?r.keys(i):[e]:e,o.forEach((e=>{s.invalidate(e),r.revert(e,i),s.commit(e)}))}};return t=(0,i._)([(0,d.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function y(e){return(0,c.vw)(e).store}let b=class extends(h(s.Z)){};b=(0,i._)([(0,d.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],b);var f=r(76169);const m=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return g(this).delete(e,(0,a.M9)(t))}write(e={},t){return(0,f.c)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,c.vw)(this).setAtOrigin(e,t,(0,a.M9)(r))}removeOrigin(e){const t=g(this),r=(0,a.M9)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),a.s3.USER)}updateOrigin(e,t){const r=g(this),i=(0,a.M9)(t),s=this.get(e);for(let t=i+1;t<a.kk;++t)r.delete(e,t);r.set(e,s,i)}toJSON(e){return this.write({},e)}};return t=(0,i._)([(0,d.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function g(e){return(0,c.vw)(e).store}const v=e=>{let t=class extends(m(h(e))){constructor(...e){super(...e)}};return t=(0,i._)([(0,d.j)("esri.core.MultiOriginJSONSupport")],t),t};let w=class extends(v(s.Z)){};w=(0,i._)([(0,d.j)("esri.core.MultiOriginJSONSupport")],w)},29600:(e,t,r)=>{r.d(t,{Z:()=>w});var i=r(43697),s=r(68773),o=(r(66577),r(3172)),n=r(20102),l=r(32448),a=r(10699),u=r(83379),p=r(92604),c=r(95330),d=r(17452),h=r(5600),y=(r(67676),r(80442),r(75215),r(52011)),b=r(6570),f=r(82971);let m=0;const g=p.Z.getLogger("esri.layers.Layer");let v=class extends(l.Z.EventedMixin((0,a.I)(u.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new b.Z(-180,-90,180,90,f.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+m++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e,i=await r.e(3529).then(r.bind(r,63529));try{return await i.fromUrl(t)}catch(e){throw g.error("#fromArcGISServerUrl({ url: '"+t.url+"'})","Failed to create layer from arcgis server url",e),e}}static async fromPortalItem(e){const t="portalItem"in e?e:{portalItem:e},i=await r.e(4579).then(r.bind(r,44579));try{return await i.fromItem(t)}catch(e){const r=t&&t.portalItem,i=r&&r.id||"unset",o=r&&r.portal&&r.portal.url||s.Z.portalUrl;throw g.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+i+"')",e),e}}initialize(){this.when().catch((e=>{var t,r;(0,c.D_)(e)||p.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(t=this.title)?t:"no title"}', id: '${null!=(r=this.id)?r:"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,d.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,o.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,h.Cb)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i._)([(0,h.Cb)({type:b.Z})],v.prototype,"fullExtent",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i._)([(0,h.Cb)({type:String})],v.prototype,"id",void 0),(0,i._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i._)([(0,h.Cb)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i._)([(0,h.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i._)([(0,h.Cb)()],v.prototype,"parent",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i._)([(0,h.Cb)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i._)([(0,h.Cb)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i._)([(0,h.Cb)({type:f.Z})],v.prototype,"spatialReference",void 0),(0,i._)([(0,h.Cb)({type:String})],v.prototype,"title",void 0),(0,i._)([(0,h.Cb)({type:String,readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i._)([(0,h.Cb)()],v.prototype,"url",void 0),(0,i._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i._)([(0,y.j)("esri.layers.Layer")],v);const w=v},17017:(e,t,r)=>{r.d(t,{N:()=>n});var i=r(43697),s=r(5600),o=(r(67676),r(80442),r(75215),r(52011));const n=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,s.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,o.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},34760:(e,t,r)=>{r.d(t,{Q:()=>m});var i=r(43697),s=r(92604),o=r(95330),n=r(5600),l=(r(67676),r(80442),r(75215),r(52011)),a=r(80539),u=(r(20102),r(26258),r(87538));const p=new a.Z,c=new WeakMap;function d(e){return e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function h(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:h(t,e%t):0}let y=0,b=0;function f(){const e=Date.now();for(const r of p)if(r.refreshInterval){var t;e-(null!=(t=c.get(r))?t:0)+5>=6e4*r.refreshInterval&&(c.set(r,e),r.refresh(e))}}(0,u.EH)((()=>{const e=Date.now();let t=0;for(const r of p)t=h(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?c.get(r)||c.set(r,e):c.delete(r);if(t!==b){if(b=t,clearInterval(y),0===b)return void(y=0);y=setInterval(f,b)}}));const m=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,o.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{!function(e){d(e)&&p.push(e)}(this)}),(()=>{}))}destroy(){d(this)&&p.includes(this)&&p.remove(this)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,o.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{s.Z.getLogger(this.declaredClass).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}};return(0,i._)([(0,n.Cb)({type:Number,cast:e=>e>=.1?e:e<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,i._)([(0,n.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,i._)([(0,n.Cb)()],t.prototype,"refreshParameters",null),t=(0,i._)([(0,l.j)("esri.layers.mixins.RefreshableLayer")],t),t}},2319:(e,t,r)=>{r.d(t,{Z:()=>O});var i,s=r(43697),o=r(78223),n=r(35454),l=r(96674),a=r(22974),u=r(62357),p=r(5600),c=(r(75215),r(71715)),d=r(52011),h=r(30556),y=(r(67676),r(80442),r(8813));let b=i=class extends l.wq{constructor(){super(...arguments),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,y.dI)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,y.dI)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({expression:this.expression,title:this.title,value:this.value})}};(0,s._)([(0,p.Cb)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],b.prototype,"expression",void 0),(0,s._)([(0,c.r)("expression",["expression","value"])],b.prototype,"readExpression",null),(0,s._)([(0,h.c)("expression")],b.prototype,"writeExpression",null),(0,s._)([(0,p.Cb)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],b.prototype,"title",void 0),(0,s._)([(0,p.Cb)({json:{read:!1,write:!1}})],b.prototype,"value",void 0),b=i=(0,s._)([(0,d.j)("esri.layers.support.LabelExpressionInfo")],b);const f=b;var m=r(20256),g=r(4095),v=r(77987),w=r(78724),_=r(58333);v.Z.fromJSON(_.I4),g.Z.fromJSON(_.ET),m.Z.fromJSON(_.lF);const S=w.Z.fromJSON(_.qP);v.Z.fromJSON(_.eG),g.Z.fromJSON(_.wW),m.Z.fromJSON(_.lj);var x,C=r(21878);const E=new n.X({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function j(e){return!e||"service"!==e.origin&&!L(e.layer)}function L(e){return"map-image"===(null==e?void 0:e.type)}function P(e){var t,r;return!!L(e)&&!(null==(t=e.capabilities)||null==(r=t.exportMap)||!r.supportsArcadeExpressionForLabeling)}let I=x=class extends l.wq{constructor(e){super(e),this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.repeatLabelDistance=null,this.symbol=S,this.useCodedValues=void 0,this.where=null}static evaluateWhere(e,t){const r=function(e,t,r){switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;const i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){const e=r(t[i[0]],i[1],i[2]),s=i[3],o=r(t[i[4]],i[5],i[6]);switch(s){case"AND":return e&&o;case"OR":return e||o}}return!1}catch(t){console.log("Error.: can't parse = "+e)}}readLabelExpression(e,t){const r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,y.z7)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const t=(0,y.el)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&j(i))e=new f({expression:this.getLabelExpressionArcade()});else if(!e)return;const s=e.toJSON(i);s.expression&&(t[r]=s)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}getLabelExpression(){return(0,y.hV)(this)}getLabelExpressionArcade(){return(0,y.YI)(this)}getLabelExpressionSingleField(){return(0,y.UO)(this)}hash(){return JSON.stringify(this)}clone(){return new x({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.d9)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.d9)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],I.prototype,"name",void 0),(0,s._)([(0,p.Cb)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],I.prototype,"allowOverrun",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1}}}})],I.prototype,"deconflictionStrategy",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===(null==r?void 0:r.origin)&&P(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],I.prototype,"labelExpression",void 0),(0,s._)([(0,c.r)("labelExpression")],I.prototype,"readLabelExpression",null),(0,s._)([(0,h.c)("labelExpression")],I.prototype,"writeLabelExpression",null),(0,s._)([(0,p.Cb)({type:f,json:{write:{overridePolicy:(e,t,r)=>function(e){return j(e)||P(e.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],I.prototype,"labelExpressionInfo",void 0),(0,s._)([(0,h.c)("labelExpressionInfo")],I.prototype,"writeLabelExpressionInfo",null),(0,s._)([(0,p.Cb)({type:E.apiValues,json:{type:E.jsonValues,read:E.read,write:E.write}})],I.prototype,"labelPlacement",void 0),(0,s._)([(0,p.Cb)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],I.prototype,"labelPosition",void 0),(0,s._)([(0,p.Cb)({type:Number})],I.prototype,"maxScale",void 0),(0,s._)([(0,h.c)("maxScale")],I.prototype,"writeMaxScale",null),(0,s._)([(0,p.Cb)({type:Number})],I.prototype,"minScale",void 0),(0,s._)([(0,h.c)("minScale")],I.prototype,"writeMinScale",null),(0,s._)([(0,p.Cb)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:!1}}}})],I.prototype,"repeatLabel",void 0),(0,s._)([(0,p.Cb)({type:Number,cast:u.t_,json:{write:!0,origins:{"web-scene":{write:!1}}}})],I.prototype,"repeatLabelDistance",void 0),(0,s._)([(0,p.Cb)({types:o.yK,json:{origins:{"web-scene":{types:o.S6,write:C.c,default:null}},write:C.c,default:null}})],I.prototype,"symbol",void 0),(0,s._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],I.prototype,"useCodedValues",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],I.prototype,"where",void 0),I=x=(0,s._)([(0,d.j)("esri.layers.support.LabelClass")],I);const O=I},8813:(e,t,r)=>{r.d(t,{dI:()=>y,hV:()=>c,YI:()=>d,UO:()=>h,el:()=>v,z7:()=>p});var i=r(19153);const s="__begin__",o="__end__",n=new RegExp(s,"ig"),l=new RegExp(o,"ig"),a=new RegExp("^"+s,"i"),u=new RegExp(o+"$","i");function p(e){return e.replace(new RegExp("\\{","g"),"[").replace(new RegExp("\\}","g"),"]")}function c(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=function(e){return e.replace(new RegExp("\\[","g"),"{").replace(new RegExp("\\]","g"),"}")}(e.labelExpression),t.type="conventional"),t}function d(e){const t=c(e);if(!t)return null;switch(t.type){case"conventional":return y(t.expression);case"arcade":return t.expression}return null}function h(e){const t=c(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e.match(b);return t&&t[1].trim()||null}(t.expression);case"arcade":return v(t.expression)}return null}function y(e){let t;return e?(t=(0,i.gx)(e,(e=>s+'$feature["'+e+'"]'+o)),t=a.test(t)?t.replace(a,""):'"'+t,t=u.test(t)?t.replace(u,""):t+'"',t=t.replace(n,'" + ').replace(l,' + "')):t='""',t}const b=/^\s*\{([^}]+)\}\s*$/i,f=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i,m=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,g=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i;function v(e){if(!e)return null;let t=f.exec(e)||m.exec(e);return t?t[1]||t[3]:(t=g.exec(e),t?t[2]:null)}},12501:(e,t,r)=>{r.r(t),r.d(t,{default:()=>E});var i,s=r(43697),o=r(22303),n=r(3172),l=r(20102),a=r(22974),u=r(92604),p=r(13867),c=r(70586),d=r(95330),h=r(19153),y=r(5600),b=(r(75215),r(52011)),f=r(30556),m=r(35671),g=r(5499),v=r(12571),w=r(59266),_=r(17386);const S=u.Z.getLogger("esri.renderers.DictionaryRenderer"),x={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",width:.5,color:[0,0,0,255]}]}};let C=i=class extends((0,v.W)(g.Z)){constructor(e){super(e),this._ongoingRequests=new Map,this._symbolCache=new p.Z(100),this.config=null,this.fieldMap=null,this.scaleExpression=null,this.scaleExpressionTitle=null,this.url=null,this.type="dictionary"}writeData(e,t){e&&(t.scalingExpressionInfo={expression:e,returnType:"number"})}writeVisualVariables(e,t,r,i){null!=i&&i.origin||super.writeVisualVariables(e,t,r,i)}clone(){return new i({config:(0,a.d9)(this.config),scaleExpression:this.scaleExpression,scaleExpressionTitle:this.scaleExpressionTitle,fieldMap:(0,a.d9)(this.fieldMap),url:(0,a.d9)(this.url),visualVariables:(0,a.d9)(this.visualVariables)})}async getSymbolAsync(e,t){let r;this._dictionaryPromise||(this._dictionaryPromise=this.fetchResources(t));try{r=await this._dictionaryPromise}catch(e){if((0,d.D_)(e))return this._dictionaryPromise=null,null}const i={};if(this.fieldMap)for(const t of this._symbolFields){const r=this.fieldMap[t];if(r&&null!==e.attributes[r]&&void 0!==e.attributes[r]){const s=""+e.attributes[r];i[t]=s}else i[t]=""}const s=r(i,t);if(!s||"string"!=typeof s)return null;const n=(0,h.hP)(s).toString(),l=this._symbolCache.get(n);if(l)return l.catch((()=>{this._symbolCache.pop(n)})),l;const a=s.split(";"),u=[],p=[];for(const e of a)if(e&&0!==e.length)if(-1===e.indexOf("po:"))if(-1!==e.indexOf("|")){for(const t of e.split("|"))if(this._itemNames.has(t)){u.push(t);break}}else this._itemNames.has(e)&&u.push(e);else{const t=e.substr(3).split("|");if(3===t.length){const e=t[0],r=t[1];let i=t[2];if("DashTemplate"===r)i=i.split(" ").map((e=>Number(e)));else if("Color"===r){const e=new o.Z(i).toRgba();i=[e[0],e[1],e[2],255*e[3]]}else i=Number(i);p.push({primitiveName:e,propertyName:r,value:i})}}const y=!(0,c.pC)(e.geometry)||!e.geometry.hasZ&&"point"===e.geometry.type,b=this._cimPartsToCIMSymbol(u,p,y,t);return this._symbolCache.put(n,b,1),b}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t),this.scaleExpression&&await(0,m.io)(e,t,this.scaleExpression);for(const r in this.fieldMap){const i=this.fieldMap[r];t.has(i)&&e.add(i)}}get arcadeRequired(){return!0}async fetchResources(e){if(this._dictionaryPromise)return this._dictionaryPromise;if(!this.url)return void S.error("no valid URL!");const t=(0,c.pC)(e)?e.abortOptions:null,r=(0,n.default)(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"},...t}),[{data:i}]=await Promise.all([r,(0,w.LC)()]);if(!i)throw this._dictionaryPromise=null,new l.Z("esri.renderers.DictionaryRenderer","Bad dictionary data!");const s=i.expression,o=i.authoringInfo;this._refSymbolUrlTemplate=this.url+"/"+i.cimRefTemplateUrl,this._itemNames=new Set(i.itemsNames),this._symbolFields=o.symbol;const a={};if(this.config){const e=this.config;for(const t in e)a[t]=e[t]}if(o.configuration)for(const e of o.configuration)a.hasOwnProperty(e.name)||(a[e.name]=e.value);const u=[];if((0,c.pC)(e)&&e.fields&&this.fieldMap)for(const t of this._symbolFields){const r=this.fieldMap[t],i=e.fields.filter((e=>e.name===r));i.length>0&&u.push({...i[0],name:t})}return this._dictionaryPromise=(0,w.pp)(s,(0,c.pC)(e)?e.spatialReference:null,u,a).then((e=>{const t={scale:0};return(r,i)=>{const s=e.repurposeFeature({geometry:null,attributes:r});return t.scale=(0,c.pC)(i)?i.scale:void 0,e.evaluate({$feature:s,$view:t})}})).catch((e=>(S.error("Creating dictinoary expression failed:",e),null))),this._dictionaryPromise}getSymbol(){return null}getSymbols(){return[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return`${this.url}-${JSON.stringify(this.fieldMap)}`}getSymbolFields(){return this._symbolFields}async _getSymbolPart(e,t){if(this._ongoingRequests.has(e))return this._ongoingRequests.get(e).then((e=>e.data));const r=this._refSymbolUrlTemplate.replace(/\{itemName\}/gi,e),i=(0,n.default)(r,{responseType:"json",query:{f:"json"},...t});this._ongoingRequests.set(e,i);try{return(await i).data}catch(t){return this._ongoingRequests.delete(e),Promise.reject(t)}}_combineSymbolParts(e,t,r){if(!e||0===e.length)return null;const i={...e[0]};if(e.length>1){i.symbolLayers=[];for(const t of e){const e=t;i.symbolLayers.unshift(...e.symbolLayers)}}return r&&(i.callout=x),{type:"CIMSymbolReference",symbol:i,primitiveOverrides:t}}async _cimPartsToCIMSymbol(e,t,r,i){const s=new Array(e.length);for(let t=0;t<e.length;t++)s[t]=this._getSymbolPart(e[t],i);const o=await Promise.all(s);return new _.Z({data:this._combineSymbolParts(o,t,r)})}};(0,s._)([(0,y.Cb)({type:Object,json:{read:{source:"configuration"},write:{target:"configuration"}}})],C.prototype,"config",void 0),(0,s._)([(0,y.Cb)({type:Object,json:{write:!0}})],C.prototype,"fieldMap",void 0),(0,s._)([(0,y.Cb)({type:String,json:{read:{source:"scalingExpressionInfo.expression"},write:!0}})],C.prototype,"scaleExpression",void 0),(0,s._)([(0,f.c)("scaleExpression")],C.prototype,"writeData",null),(0,s._)([(0,y.Cb)({type:String,json:{read:{source:"scalingExpressionInfo.title"},write:{target:"scalingExpressionInfo.title",overridePolicy(e){return{enabled:!!e&&!!this.scaleExpression}}}}})],C.prototype,"scaleExpressionTitle",void 0),(0,s._)([(0,y.Cb)({type:String,json:{write:!0}})],C.prototype,"url",void 0),(0,s._)([(0,f.c)("visualVariables")],C.prototype,"writeVisualVariables",null),C=i=(0,s._)([(0,b.j)("esri.renderers.DictionaryRenderer")],C);const E=C},95088:(e,t,r)=>{r.d(t,{Z:()=>P});var i,s=r(43697),o=r(22303),n=r(22974),l=r(44422),a=r(75215),u=r(36030),p=r(5600),c=r(52011),d=r(35671),h=r(5499),y=r(12571),b=r(96674),f=r(92604),m=(r(67676),r(80442),r(90578));const g=f.Z.getLogger("esri.renderers.support.AttributeColorInfo");let v=i=class extends b.wq{constructor(e){super(e),this.color=null,this.field=null,this.label=null,this.valueExpression=null,this.valueExpressionTitle=null}castField(e){return null==e?e:"function"==typeof e?(g.error(".field: field must be a string value"),null):(0,a.Zs)(e)}getAttributeHash(){return`${this.field}-${this.valueExpression}`}clone(){return new i({color:this.color&&this.color.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,s._)([(0,p.Cb)({type:o.Z,json:{type:[Number],write:!0}})],v.prototype,"color",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],v.prototype,"field",void 0),(0,s._)([(0,m.p)("field")],v.prototype,"castField",null),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],v.prototype,"label",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],v.prototype,"valueExpression",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],v.prototype,"valueExpressionTitle",void 0),v=i=(0,s._)([(0,c.j)("esri.renderers.support.AttributeColorInfo")],v);const w=v;var _;let S=_=class extends b.wq{constructor(){super(...arguments),this.unit=null}clone(){return new _({unit:this.unit})}};(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],S.prototype,"unit",void 0),S=_=(0,s._)([(0,c.j)("esri.renderers.support.DotDensityLegendOptions")],S);const x=S;var C,E=r(20256),j=r(4095);let L=C=class extends((0,y.W)(h.Z)){constructor(e){super(e),this.attributes=null,this.backgroundColor=new o.Z([0,0,0,0]),this.blendDots=!0,this.dotBlendingEnabled=!0,this.dotShape="square",this.dotSize=1,this.legendOptions=null,this.outline=new j.Z,this.dotValue=null,this.referenceDotValue=null,this.referenceScale=null,this.seed=1,this.type="dot-density"}calculateDotValue(e){if(null==this.referenceScale)return this.dotValue;const t=e/this.referenceScale*this.dotValue;return t<1?1:t}getSymbol(){return new E.Z({outline:this.outline})}async getSymbolAsync(){return this.getSymbol()}getSymbols(){return[this.getSymbol()]}getAttributeHash(){return this.attributes&&this.attributes.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return JSON.stringify(this.outline)}clone(){return new C({attributes:(0,n.d9)(this.attributes),backgroundColor:(0,n.d9)(this.backgroundColor),dotBlendingEnabled:(0,n.d9)(this.dotBlendingEnabled),dotShape:(0,n.d9)(this.dotShape),dotSize:(0,n.d9)(this.dotSize),dotValue:(0,n.d9)(this.dotValue),legendOptions:(0,n.d9)(this.legendOptions),outline:(0,n.d9)(this.outline),referenceScale:(0,n.d9)(this.referenceScale),visualVariables:(0,n.d9)(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}getControllerHash(){return`${this.attributes.map((e=>e.field||e.valueExpression||""))}-${this.outline&&JSON.stringify(this.outline.toJSON())||""}`}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const r of this.attributes)r.valueExpression&&await(0,d.io)(e,t,r.valueExpression),r.field&&e.add(r.field)}};(0,s._)([(0,p.Cb)({type:[w],json:{write:!0}})],L.prototype,"attributes",void 0),(0,s._)([(0,p.Cb)({type:o.Z,json:{write:!0}})],L.prototype,"backgroundColor",void 0),(0,s._)([(0,p.Cb)({type:Boolean}),(0,l.B)("dotBlendingEnabled")],L.prototype,"blendDots",void 0),(0,s._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],L.prototype,"dotBlendingEnabled",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!1}})],L.prototype,"dotShape",void 0),(0,s._)([(0,p.Cb)({type:Number,json:{write:!1}})],L.prototype,"dotSize",void 0),(0,s._)([(0,p.Cb)({type:x,json:{write:!0}})],L.prototype,"legendOptions",void 0),(0,s._)([(0,p.Cb)({type:j.Z,json:{default:null,write:!0}})],L.prototype,"outline",void 0),(0,s._)([(0,p.Cb)({type:Number,json:{write:!0}})],L.prototype,"dotValue",void 0),(0,s._)([(0,p.Cb)({type:Number}),(0,l.B)("dotValue")],L.prototype,"referenceDotValue",void 0),(0,s._)([(0,p.Cb)({type:Number,json:{write:!0}})],L.prototype,"referenceScale",void 0),(0,s._)([(0,p.Cb)({type:Number,json:{write:!0}})],L.prototype,"seed",void 0),(0,s._)([(0,u.J)({dotDensity:"dot-density"})],L.prototype,"type",void 0),L=C=(0,s._)([(0,c.j)("esri.renderers.DotDensityRenderer")],L);const P=L},79056:(e,t,r)=>{r.d(t,{Z:()=>m});var i,s=r(43697),o=r(22303),n=r(22974),l=r(5600),a=(r(75215),r(36030)),u=r(52011),p=r(35671),c=r(5499),d=r(96674);r(67676),r(80442);let h=i=class extends d.wq{constructor(e){super(e),this.color=null,this.ratio=null}clone(){return new i({color:this.color,ratio:this.ratio})}};(0,s._)([(0,l.Cb)({type:o.Z,json:{write:!0}})],h.prototype,"color",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],h.prototype,"ratio",void 0),h=i=(0,s._)([(0,u.j)("esri.renderers.support.HeatmapColorStop")],h);const y=h;var b;let f=b=class extends c.Z{constructor(e){super(e),this.blurRadius=10,this.colorStops=[new y({ratio:0,color:new o.Z("rgba(255, 140, 0, 0)")}),new y({ratio:.75,color:new o.Z("rgba(255, 140, 0, 1)")}),new y({ratio:.9,color:new o.Z("rgba(255, 0, 0, 1)")})],this.field=null,this.fieldOffset=0,this.maxPixelIntensity=100,this.minPixelIntensity=0,this.type="heatmap"}async collectRequiredFields(e,t){const r=this.field;r&&"string"==typeof r&&(0,p.AB)(e,t,r)}getAttributeHash(){return null}getMeshHash(){return`${JSON.stringify(this.colorStops)}.${this.blurRadius}.${this.field}`}clone(){return new b({blurRadius:this.blurRadius,colorStops:(0,n.d9)(this.colorStops),field:this.field,maxPixelIntensity:this.maxPixelIntensity,minPixelIntensity:this.minPixelIntensity})}};(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],f.prototype,"blurRadius",void 0),(0,s._)([(0,l.Cb)({type:[y],json:{write:!0}})],f.prototype,"colorStops",void 0),(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],f.prototype,"field",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:{overridePolicy:(e,t,r)=>({enabled:null==r})}}})],f.prototype,"fieldOffset",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],f.prototype,"maxPixelIntensity",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],f.prototype,"minPixelIntensity",void 0),(0,s._)([(0,a.J)({heatmap:"heatmap"})],f.prototype,"type",void 0),f=b=(0,s._)([(0,u.j)("esri.renderers.HeatmapRenderer")],f);const m=f},84382:(e,t,r)=>{r.d(t,{Z:()=>h});var i,s=r(43697),o=r(22974),n=r(5600),l=(r(75215),r(36030)),a=r(52011),u=r(5499),p=r(12571),c=r(9833);let d=i=class extends((0,p.W)(u.Z)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.getSymbols().map((r=>r.collectRequiredFields(e,t))))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}getSymbols(){return this.symbol?[this.symbol]:[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return this.getSymbols().reduce(((e,t)=>e+JSON.stringify(t)),"")}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new i({description:this.description,label:this.label,symbol:this.symbol&&this.symbol.clone(),visualVariables:(0,o.d9)(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}};(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,s._)([(0,n.Cb)(c.G)],d.prototype,"symbol",void 0),(0,s._)([(0,l.J)({simple:"simple"})],d.prototype,"type",void 0),d=i=(0,s._)([(0,a.j)("esri.renderers.SimpleRenderer")],d);const h=d},91423:(e,t,r)=>{r.d(t,{a:()=>l});var i=r(20941),s=r(63213),o=r(32400);const n=(0,s.d)({types:o.A});function l(e,t,r){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?(r&&r.messages&&r.messages.push(new i.Z("renderer:unsupported","Only UniqueValueRenderer can be referenced from a web style, but found '"+e.type+"'",{definition:e,context:r})),null):n(e,t,r):null}},32400:(e,t,r)=>{r.d(t,{A:()=>p,o:()=>c});var i=r(16050),s=r(12501),o=r(95088),n=r(79056),l=r(5499),a=r(84382),u=r(30687);const p={key:"type",base:l.Z,typeMap:{heatmap:n.Z,simple:a.Z,"unique-value":u.Z,"class-breaks":i.Z,"dot-density":o.Z,dictionary:s.default},errorContext:"renderer"},c={key:"type",base:l.Z,typeMap:{simple:a.Z,"unique-value":u.Z,"class-breaks":i.Z},errorContext:"renderer"}},32163:(e,t,r)=>{r.d(t,{eZ:()=>c});var i=r(51773),s=r(35671),o=r(84649),n=(r(63801),r(48074),r(38745),r(9190)),l=(r(10214),r(44951),r(422)),a=r(63061);const u=["oid","global-id"],p=["oid","global-id","guid"];function c({displayField:e,editFieldsInfo:t,fields:r,objectIdField:a,title:u},p){if(!r)return null;const c=function({editFieldsInfo:e,fields:t,objectIdField:r},i){return function(e,t){const r=e;return t&&(e=e.filter((e=>-1===t.indexOf(e.type)))),e===r&&(e=e.slice()),e.sort(y),e}(t,(null==i?void 0:i.ignoreFieldTypes)||v).map((t=>new l.Z({fieldName:t.name,isEditable:f(t,e),label:t.alias,format:m(t),visible:h(t,{editFieldsInfo:e,objectIdField:r,visibleFieldNames:null==i?void 0:i.visibleFieldNames})})))}({editFieldsInfo:t,fields:r,objectIdField:a},p);if(!c.length)return null;const d=function(e){const t=(0,s.O5)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r}({titleBase:u,fields:r,displayField:e}),b=[new n.Z,new o.Z];return new i.Z({title:d,content:b,fieldInfos:c})}const d=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/shape/i,/perimeter/i,/objectid/i,/_i$/i],h=(e,{editFieldsInfo:t,objectIdField:r,visibleFieldNames:i})=>i?i.has(e.name):!(b(e.name,t)||r&&e.name===r||u.indexOf(e.type)>-1||d.some((t=>t.test(e.name))));function y(e,t){return"oid"===e.type?-1:"oid"===t.type?1:g(e)?-1:g(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function b(e,t){if(!e||!t)return!1;const{creationDateField:r,creatorField:i,editDateField:s,editorField:o}=t;return-1!==[r&&r.toLowerCase(),i&&i.toLowerCase(),s&&s.toLowerCase(),o&&o.toLowerCase()].indexOf(e.toLowerCase())}function f(e,t){return e.editable&&-1===p.indexOf(e.type)&&!b(e.name,t)}function m(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.Z({digitSeparator:!0,places:0});case"double":return new a.Z({digitSeparator:!0,places:2});case"date":return new a.Z({dateFormat:"long-month-day-year"});default:return null}}function g(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())||void 0}const v=["geometry","blob","raster","guid","xml"]}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[147],{46851:(e,t,n)=>{n.d(t,{E:()=>r,R:()=>i});const r=1e-6,i=Math.random,s=Math.PI/180,a=180/Math.PI;Object.freeze({__proto__:null,EPSILON:r,RANDOM:i,toRadian:function(e){return e*s},toDegree:function(e){return e*a},equals:function(e,t){return Math.abs(e-t)<=r*Math.max(1,Math.abs(e),Math.abs(t))}})},17896:(e,t,n)=>{n.d(t,{E:()=>h,a:()=>d,b:()=>u,c:()=>b,d:()=>g,e:()=>_,f:()=>c,g:()=>a,h:()=>p,i:()=>f,k:()=>S,l:()=>s,m:()=>M,n:()=>y,p:()=>m,q:()=>T,r:()=>x,s:()=>o,t:()=>k,u:()=>C});var r=n(65617),i=n(46851);function s(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function u(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function c(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function l(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function h(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function d(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function f(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function p(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function m(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function y(e,t){const n=t[0],r=t[1],i=t[2];let s=n*n+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function g(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function b(e,t,n){const r=t[0],i=t[1],s=t[2],a=n[0],o=n[1],u=n[2];return e[0]=i*u-s*o,e[1]=s*a-r*u,e[2]=r*o-i*a,e}function _(e,t,n,r){const i=t[0],s=t[1],a=t[2];return e[0]=i+r*(n[0]-i),e[1]=s+r*(n[1]-s),e[2]=a+r*(n[2]-a),e}function M(e,t,n){const r=t[0],i=t[1],s=t[2];return e[0]=n[0]*r+n[4]*i+n[8]*s+n[12],e[1]=n[1]*r+n[5]*i+n[9]*s+n[13],e[2]=n[2]*r+n[6]*i+n[10]*s+n[14],e}function k(e,t,n){const r=t[0],i=t[1],s=t[2];return e[0]=r*n[0]+i*n[3]+s*n[6],e[1]=r*n[1]+i*n[4]+s*n[7],e[2]=r*n[2]+i*n[5]+s*n[8],e}function T(e,t,n){const r=n[0],i=n[1],s=n[2],a=n[3],o=t[0],u=t[1],c=t[2];let l=i*c-s*u,h=s*o-r*c,d=r*u-i*o,f=i*d-s*h,p=s*l-r*d,m=r*h-i*l;const y=2*a;return l*=y,h*=y,d*=y,f*=2,p*=2,m*=2,e[0]=o+l+f,e[1]=u+h+p,e[2]=c+d+m,e}const w=(0,r.c)(),v=(0,r.c)();function S(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function x(e,t,n){const r=n[0]-t[0],i=n[1]-t[1],s=n[2]-t[2];let a=r*r+i*i+s*s;return a>0?(a=1/Math.sqrt(a),e[0]=r*a,e[1]=i*a,e[2]=s*a,e):(e[0]=0,e[1]=0,e[2]=0,e)}const I=c,q=l,G=h,U=f,P=p,C=s,F=m;Object.freeze({__proto__:null,length:s,copy:a,set:o,add:u,subtract:c,multiply:l,divide:h,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},min:function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e},max:function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:d,scaleAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e},distance:f,squaredDistance:p,squaredLength:m,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e},normalize:y,dot:g,cross:b,lerp:_,hermite:function(e,t,n,r,i,s){const a=s*s,o=a*(2*s-3)+1,u=a*(s-2)+s,c=a*(s-1),l=a*(3-2*s);return e[0]=t[0]*o+n[0]*u+r[0]*c+i[0]*l,e[1]=t[1]*o+n[1]*u+r[1]*c+i[1]*l,e[2]=t[2]*o+n[2]*u+r[2]*c+i[2]*l,e},bezier:function(e,t,n,r,i,s){const a=1-s,o=a*a,u=s*s,c=o*a,l=3*s*o,h=3*u*a,d=u*s;return e[0]=t[0]*c+n[0]*l+r[0]*h+i[0]*d,e[1]=t[1]*c+n[1]*l+r[1]*h+i[1]*d,e[2]=t[2]*c+n[2]*l+r[2]*h+i[2]*d,e},random:function(e,t){t=t||1;const n=2*(0,i.R)()*Math.PI,r=2*(0,i.R)()-1,s=Math.sqrt(1-r*r)*t;return e[0]=Math.cos(n)*s,e[1]=Math.sin(n)*s,e[2]=r*t,e},transformMat4:M,transformMat3:k,transformQuat:T,rotateX:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateY:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateZ:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},angle:function(e,t){a(w,e),a(v,t),y(w,w),y(v,v);const n=g(w,v);return n>1?0:n<-1?Math.PI:Math.acos(n)},str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},exactEquals:S,equals:function(e,t){if(e===t)return!0;const n=e[0],r=e[1],s=e[2],a=t[0],o=t[1],u=t[2];return Math.abs(n-a)<=i.E*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i.E*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-u)<=i.E*Math.max(1,Math.abs(s),Math.abs(u))},direction:x,sub:I,mul:q,div:G,dist:U,sqrDist:P,len:C,sqrLen:F})},65617:(e,t,n)=>{function r(){return[0,0,0]}function i(e){return[e[0],e[1],e[2]]}function s(e,t,n){return[e,t,n]}function a(e){const t=[0,0,0],n=Math.min(3,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t}function o(e,t){return new Float64Array(e,t,3)}function u(){return s(1,1,1)}function c(){return s(1,0,0)}function l(){return s(0,1,0)}function h(){return s(0,0,1)}n.d(t,{O:()=>f,Z:()=>d,a:()=>i,b:()=>o,c:()=>r,d:()=>a,f:()=>s});const d=[0,0,0],f=u(),p=c(),m=l(),y=h();Object.freeze({__proto__:null,create:r,clone:i,fromValues:s,fromArray:a,createView:o,zeros:function(){return[0,0,0]},ones:u,unitX:c,unitY:l,unitZ:h,ZEROS:d,ONES:f,UNIT_X:p,UNIT_Y:m,UNIT_Z:y})},98766:(e,t,n)=>{n.d(t,{a:()=>a,b:()=>l,c:()=>i,d:()=>y,e:()=>f,f:()=>p,g:()=>b,h:()=>_,l:()=>g,n:()=>m,s:()=>s});var r=n(46851);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function s(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function a(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}function o(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}function u(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}function c(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}function l(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}function h(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2],s=t[3]-e[3];return Math.sqrt(n*n+r*r+i*i+s*s)}function d(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2],s=t[3]-e[3];return n*n+r*r+i*i+s*s}function f(e){const t=e[0],n=e[1],r=e[2],i=e[3];return Math.sqrt(t*t+n*n+r*r+i*i)}function p(e){const t=e[0],n=e[1],r=e[2],i=e[3];return t*t+n*n+r*r+i*i}function m(e,t){const n=t[0],r=t[1],i=t[2],s=t[3];let a=n*n+r*r+i*i+s*s;return a>0&&(a=1/Math.sqrt(a),e[0]=n*a,e[1]=r*a,e[2]=i*a,e[3]=s*a),e}function y(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function g(e,t,n,r){const i=t[0],s=t[1],a=t[2],o=t[3];return e[0]=i+r*(n[0]-i),e[1]=s+r*(n[1]-s),e[2]=a+r*(n[2]-a),e[3]=o+r*(n[3]-o),e}function b(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function _(e,t){const n=e[0],i=e[1],s=e[2],a=e[3],o=t[0],u=t[1],c=t[2],l=t[3];return Math.abs(n-o)<=r.E*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-u)<=r.E*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(s-c)<=r.E*Math.max(1,Math.abs(s),Math.abs(c))&&Math.abs(a-l)<=r.E*Math.max(1,Math.abs(a),Math.abs(l))}const M=o,k=u,T=c,w=h,v=d,S=f,x=p;Object.freeze({__proto__:null,copy:i,set:s,add:a,subtract:o,multiply:u,divide:c,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},min:function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e},max:function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e},scale:l,scaleAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e},distance:h,squaredDistance:d,length:f,squaredLength:p,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},normalize:m,dot:y,lerp:g,random:function(e,t){let n,i,s,a,o,u;t=t||1;do{n=2*(0,r.R)()-1,i=2*(0,r.R)()-1,o=n*n+i*i}while(o>=1);do{s=2*(0,r.R)()-1,a=2*(0,r.R)()-1,u=s*s+a*a}while(u>=1);const c=Math.sqrt((1-o)/u);return e[0]=t*n,e[1]=t*i,e[2]=t*s*c,e[3]=t*a*c,e},transformMat4:function(e,t,n){const r=t[0],i=t[1],s=t[2],a=t[3];return e[0]=n[0]*r+n[4]*i+n[8]*s+n[12]*a,e[1]=n[1]*r+n[5]*i+n[9]*s+n[13]*a,e[2]=n[2]*r+n[6]*i+n[10]*s+n[14]*a,e[3]=n[3]*r+n[7]*i+n[11]*s+n[15]*a,e},transformQuat:function(e,t,n){const r=t[0],i=t[1],s=t[2],a=n[0],o=n[1],u=n[2],c=n[3],l=c*r+o*s-u*i,h=c*i+u*r-a*s,d=c*s+a*i-o*r,f=-a*r-o*i-u*s;return e[0]=l*c+f*-a+h*-u-d*-o,e[1]=h*c+f*-o+d*-a-l*-u,e[2]=d*c+f*-u+l*-o-h*-a,e[3]=t[3],e},str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},exactEquals:b,equals:_,sub:M,mul:k,div:T,dist:w,sqrDist:v,len:S,sqrLen:x})},36030:(e,t,n)=>{n.d(t,{J:()=>s});var r=n(35454),i=n(5600);function s(e,t={}){var n;const s=e instanceof r.X?e:new r.X(e,t),a={type:null==(n=null==t?void 0:t.ignoreUnknown)||n?s.apiValues:String,json:{type:s.jsonValues,read:(null==t||!t.readOnly)&&{reader:s.read},write:{writer:s.write}}};return void 0!==(null==t?void 0:t.readOnly)&&(a.readOnly=!!t.readOnly),void 0!==(null==t?void 0:t.default)&&(a.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(a.json.name=t.name),(0,i.Cb)(a)}},43090:(e,t,n)=>{function r(e){return 32+e.length}function i(e){if(!e)return 0;let t=32;for(const n in e)if(e.hasOwnProperty(n)){const i=e[n];switch(typeof i){case"string":t+=r(i);break;case"number":t+=16;break;case"boolean":t+=4}}return t}function s(e,t){return 32+e.length*t}var a;n.d(t,{Y8:()=>a,f2:()=>i,do:()=>s}),function(e){e[e.KILOBYTES=1024]="KILOBYTES",e[e.MEGABYTES=1048576]="MEGABYTES",e[e.GIGABYTES=1073741824]="GIGABYTES"}(a||(a={}))},74085:(e,t,n)=>{function r(e){}n.d(t,{Bg:()=>r}),n(80442)},22021:(e,t,n)=>{n.d(t,{ZF:()=>d,Kt:()=>f,jE:()=>y,uZ:()=>a,oK:()=>p,Vl:()=>l,wt:()=>o,t7:()=>c,Sf:()=>s,fp:()=>u,BV:()=>h});var r=n(17896);n(98766);const i=new Float32Array(1);function s(e){--e;for(let t=1;t<32;t<<=1)e|=e>>t;return e+1}function a(e,t,n){return Math.min(Math.max(e,t),n)}function o(e){return 0==(e&e-1)}function u(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e}function c(e,t,n){return e+(t-e)*n}function l(e){return e*Math.PI/180}function h(e){return 180*e/Math.PI}function d(e){return Math.acos(a(e,-1,1))}function f(e){return Math.asin(a(e,-1,1))}function p(e){return m(Math.max(-g,Math.min(e,g)))}function m(e){return i[0]=e,i[0]}function y(e,t){const n=(0,r.l)(e),i=f(e[2]/n),s=Math.atan2(e[1]/n,e[0]/n);return(0,r.s)(t,n,i,s),t}const g=m(34028234663852886e22)},45091:(e,t,n)=>{n.d(t,{Z:()=>l});var r,i,s=n(80442),a=n(71143);(i=r||(r={}))[i.varint=0]="varint",i[i.fixed64=1]="fixed64",i[i.delimited=2]="delimited",i[i.fixed32=5]="fixed32",i[i.unknown=99]="unknown";const o=4294967296,u=new TextDecoder("utf-8"),c=(0,s.Z)("safari")||(0,s.Z)("ios")?6:(0,s.Z)("ff")?12:32;class l{constructor(e,t,n=0,i=(e?e.byteLength:0)){this._tag=0,this._dataType=r.unknown,this._init(e,t,n,i)}_init(e,t,n,r){this._data=e,this._dataView=t,this._pos=n,this._end=r}clone(){return new l(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;return e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128?e:(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128?e:void 0))))}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)|0}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,n=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),n}getSFixed64(){const e=this._dataView,t=this._pos,n=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),n}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,n=this._toString(this._data,t,t+e);return this._skip(e),n}getBytes(){const e=this._getLength(),t=this._pos,n=this._toBytes(this._data,t,t+e);return this._skip(e),n}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,n,r){const i=this.getMessage(),s=e(i,t,n,r);return i.release(),s}processMessage(e){const t=this.getMessage(),n=e(t);return t.release(),n}getMessage(){const e=this._getLength(),t=l.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){l.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case r.varint:this._decodeVarint();break;case r.fixed64:this._skip(8);break;case r.delimited:this._skip(this._getLength());break;case r.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t,n=this._pos,r=0;if(this._end-n>=10)do{if(t=e[n++],r|=127&t,0==(128&t))break;if(t=e[n++],r|=(127&t)<<7,0==(128&t))break;if(t=e[n++],r|=(127&t)<<14,0==(128&t))break;if(t=e[n++],r|=(127&t)<<21,0==(128&t))break;if(t=e[n++],r+=268435456*(127&t),0==(128&t))break;if(t=e[n++],r+=34359738368*(127&t),0==(128&t))break;if(t=e[n++],r+=4398046511104*(127&t),0==(128&t))break;if(t=e[n++],r+=562949953421312*(127&t),0==(128&t))break;if(t=e[n++],r+=72057594037927940*(127&t),0==(128&t))break;if(t=e[n++],r+=0x8000000000000000*(127&t),0==(128&t))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;n!==this._end&&(t=e[n],0!=(128&t));)++n,r+=(127&t)*i,i*=128;if(n===this._end)throw new Error("Varint overrun!");++n,r+=t*i}return this._pos=n,r}_decodeSVarint(){const e=this._decodeVarint();return e%2?-(e+1)/2:e/2}_getLength(){if(this._dataType!==r.delimited)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,n){if((n=Math.min(this._end,n))-t>c){const r=e.subarray(t,n);return u.decode(r)}let r="",i="";for(let s=t;s<n;++s){const t=e[s];128&t?i+="%"+t.toString(16):(r+=decodeURIComponent(i)+String.fromCharCode(t),i="")}return i.length&&(r+=decodeURIComponent(i)),r}_toBytes(e,t,n){return n=Math.min(this._end,n),new Uint8Array(e.buffer,t,n-t)}}l.pool=new a.Z(l,null,(e=>{e._data=null,e._dataView=null}))},67900:(e,t,n)=>{n.d(t,{gV:()=>E,En:()=>w,Z7:()=>G,c9:()=>q,_R:()=>x,qE:()=>C,cM:()=>I,hd:()=>l,ty:()=>v,Jo:()=>Z,$C:()=>S}),n(80442);var r=n(35454),i=n(70586),s=n(24678),a=n(82971),o=n(68441),u=n(8744),c=n(58116);const l=39.37,h=o.sv.radius*Math.PI/200,d=/UNIT\[([^\]]+)\]\]$/i,f=c.Z,p=/UNIT\[([^\]]+)\]/i,m=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),y=(0,r.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),g=e=>e*e,b=e=>e*e*e,_={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:g(.001)},"square-centimeters":{inBaseUnits:g(.01)},"square-decimeters":{inBaseUnits:g(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:g(1e3)},"square-inches":{inBaseUnits:g(.0254)},"square-feet":{inBaseUnits:g(.3048)},"square-yards":{inBaseUnits:g(.9144)},"square-miles":{inBaseUnits:g(1609.344)},"square-us-feet":{inBaseUnits:g(1200/3937)},acres:{inBaseUnits:.0015625*g(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*b(.001)},"cubic-centimeters":{inBaseUnits:1e3*b(.01)},"cubic-decimeters":{inBaseUnits:1e3*b(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*b(1e3)},"cubic-inches":{inBaseUnits:1e3*b(.0254)},"cubic-feet":{inBaseUnits:1e3*b(.3048)},"cubic-yards":{inBaseUnits:1e3*b(.9144)},"cubic-miles":{inBaseUnits:1e3*b(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},M=function(){const e={};for(const t in _)for(const n in _[t].units)e[n]=t;return e}();function k(e){const t=M[e];if(t)return t;throw new Error("unknown measure")}function T(e,t=null){return t=t||k(e),_[t].baseUnit===e}function w(e,t,n){if(t===n)return e;const r=k(t);if(r!==k(n))throw new Error("incompatible units");const i=T(t,r)?e:function(e,t,n){return e*_[n].units[t].inBaseUnits}(e,t,r);return T(n,r)?i:function(e,t,n){return e/_[n].units[t].inBaseUnits}(i,n,r)}function v(e,t,n){return w(e,t,"meters")/(n*Math.PI/180)}function S(e){return y.fromJSON(e.toLowerCase())||null}function x(e){if(e&&"object"==typeof e&&!(0,u.N$)(e))return 1;const t=q(e);return t>1e5?1:t}function I(e){return q(e)>=(e instanceof a.Z?(0,s.Iu)(e).metersPerDegree:1e5)?"meters":C(e)}function q(e,t=o.sv.metersPerDegree){return G(e,!0)||t}function G(e,t=!1){let n,r,i=null;if(null!=e&&("object"==typeof e?(n=e.wkid,r=e.wkt):"number"==typeof e?n=e:"string"==typeof e&&(r=e)),n){if((0,u.o$)(n))return o.yr.metersPerDegree;if((0,u.ME)(n))return o.Z1.metersPerDegree;i=f.values[f[n]],!i&&t&&m.has(n)&&(i=h)}else r&&(R(r)?i=U(d.exec(r),i):F(r)&&(i=U(p.exec(r),i)));return i}function U(e,t){return e&&e[1]?P(e[1]):t}function P(e){return parseFloat(e.split(",")[1])}function C(e){let t,n,r=null;if(null!=e&&("object"==typeof e?(t=e.wkid,n=e.wkt):"number"==typeof e?t=e:"string"==typeof e&&(n=e)),t)r=f.units[f[t]];else if(n){const e=R(n)?d:F(n)?p:null;if(e){const t=e.exec(n);t&&t[1]&&(r=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let n=t&&t[1];if(!n||-1===f.units.indexOf(n)){const t=P(e);n=null;const r=f.values;for(let e=0;e<r.length;++e)if(Math.abs(t-r[e])<1e-7){n=f.units[e];break}}return n}(t[1]))}}return(0,i.pC)(r)?S(r):null}function F(e){return/^GEOCCS/i.test(e)}function R(e){return/^PROJCS/i.test(e)}const V={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},B={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},E=(0,r.w)()(V),Z=(0,r.w)()(B);(0,r.w)()({...V,...B})},24678:(e,t,n)=>{n.d(t,{GG:()=>o,HQ:()=>u,VY:()=>c,wY:()=>l,Iu:()=>d,e8:()=>f,rS:()=>h});var r=n(82971),i=n(68441),s=n(8744);function a(e){return new r.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const o=a(i.sv),u=a(i.yr),c=a(i.Z1),l=new r.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${i.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function h(e){return e&&((0,s.BZ)(e)||e===u)?u:e&&((0,s.V2)(e)||e===c)?c:o}function d(e){return e&&((0,s.BZ)(e)||e===u)?i.yr:e&&((0,s.V2)(e)||e===c)?i.Z1:i.sv}function f(e){return(0,s.o$)(e)?i.yr:(0,s.ME)(e)?i.Z1:i.sv}},60437:(e,t,n)=>{n.d(t,{Gv:()=>y,Ue:()=>i,cS:()=>d,fS:()=>m,TC:()=>a,pp:()=>o,JR:()=>f,al:()=>s,t8:()=>h,Tn:()=>l,op:()=>c,dp:()=>u});var r=n(70586);function i(e=g){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,n,r,s,a,o=i()){return o[0]=e,o[1]=t,o[2]=n,o[3]=r,o[4]=s,o[5]=a,o}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function o(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function u(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function c(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function l(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function d(e){return e?h(e,y):i(y)}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function p(e){return 6===e.length}function m(e,t,n){if((0,r.Wi)(e)||(0,r.Wi)(t))return e===t;if(!p(e)||!p(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n(6570),n(24470);const y=[1/0,1/0,1/0,-1/0,-1/0,-1/0],g=[0,0,0,0,0,0];i()},24470:(e,t,n)=>{n.d(t,{Gv:()=>d,SO:()=>c,r3:()=>h,Ue:()=>s,oJ:()=>o,al:()=>a,kK:()=>l,HH:()=>u}),n(80442),n(22021);var r=n(70586),i=n(6570);function s(e=f){return[e[0],e[1],e[2],e[3]]}function a(e,t,n,r,i=s()){return i[0]=e,i[1]=t,i[2]=n,i[3]=r,i}function o(e,t=s()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function u(e,t){return new i.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function c(e){return function(e){return(0,r.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function l(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function h(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}const d=[1/0,1/0,-1/0,-1/0],f=[0,0,0,0]},33955:(e,t,n)=>{n.d(t,{im:()=>m,q9:()=>b,Ji:()=>y,YX:()=>l,aW:()=>h,wp:()=>d,oU:()=>p,l9:()=>f});var r=n(70586),i=n(6570),s=n(9361),a=n(65091),o=n(13473),u=n(17332),c=n(58901);function l(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function h(e){return void 0!==e.points}function d(e){return void 0!==e.x&&void 0!==e.y}function f(e){return void 0!==e.paths}function p(e){return void 0!==e.rings}function m(e){return(0,r.Wi)(e)?null:e instanceof s.Z?e:d(e)?o.Z.fromJSON(e):f(e)?c.Z.fromJSON(e):p(e)?u.Z.fromJSON(e):h(e)?a.Z.fromJSON(e):l(e)?i.Z.fromJSON(e):null}function y(e){return e?d(e)?"esriGeometryPoint":f(e)?"esriGeometryPolyline":p(e)?"esriGeometryPolygon":l(e)?"esriGeometryEnvelope":h(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:o.Z,esriGeometryPolyline:c.Z,esriGeometryPolygon:u.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:a.Z};function b(e){return e&&g[e]||null}},86973:(e,t,n)=>{n.d(t,{Mk:()=>i,P$:()=>s});var r=n(35454);const i=(0,r.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(0,r.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},69285:(e,t,n)=>{n.d(t,{k:()=>a});var r=n(70586),i=n(67900),s=n(8744);function a(e,t,n){if((0,r.Wi)(t)||(0,r.Wi)(n)||n.vcsWkid||(0,s.fS)(t,n))return null;const a=(0,i._R)(t)/(0,i._R)(n);if(1===a)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,a);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}(e,a);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}(e,a);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,a);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,a);default:return null}}},1231:(e,t,n)=>{n.d(t,{Z:()=>y});var r,i=n(43697),s=n(35454),a=n(96674),o=n(5600),u=(n(67676),n(80442),n(75215)),c=n(36030),l=n(71715),h=n(52011),d=n(72729),f=n(86719);const p=new s.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=r=class extends a.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null}readDescription(e,{description:t}){let n;try{n=JSON.parse(t)}catch(e){}return n?n.value:null}readValueType(e,{description:t}){let n;try{n=JSON.parse(t)}catch(e){}return n?p.fromJSON(n.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType})}};(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,i._)([(0,o.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,i._)([(0,o.Cb)()],m.prototype,"description",void 0),(0,i._)([(0,l.r)("description")],m.prototype,"readDescription",null),(0,i._)([(0,o.Cb)({types:d.V5,json:{read:{reader:d.im},write:!0}})],m.prototype,"domain",void 0),(0,i._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,i._)([(0,o.Cb)({type:u.z8,json:{write:!0}})],m.prototype,"length",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,i._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,i._)([(0,c.J)(f.v)],m.prototype,"type",void 0),(0,i._)([(0,o.Cb)()],m.prototype,"valueType",void 0),(0,i._)([(0,l.r)("valueType",["description"])],m.prototype,"readValueType",null),m=r=(0,i._)([(0,h.j)("esri.layers.support.Field")],m);const y=m},72729:(e,t,n)=>{n.d(t,{im:()=>S,V5:()=>v}),n(80442);var r,i=n(43697),s=n(22974),a=n(5600),o=(n(75215),n(36030)),u=n(52011),c=n(96674);n(67676);let l=r=class extends c.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,i._)([(0,a.Cb)({type:[String,Number],json:{write:!0}})],l.prototype,"code",void 0),l=r=(0,i._)([(0,u.j)("esri.layers.support.CodedValue")],l);const h=l,d=new(n(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let f=class extends c.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,i._)([(0,o.J)(d)],f.prototype,"type",void 0),f=(0,i._)([(0,u.j)("esri.layers.support.Domain")],f);const p=f;var m;let y=m=class extends p{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new m({codedValues:(0,s.d9)(this.codedValues),name:this.name})}};(0,i._)([(0,a.Cb)({type:[h],json:{write:!0}})],y.prototype,"codedValues",void 0),(0,i._)([(0,o.J)({codedValue:"coded-value"})],y.prototype,"type",void 0),y=m=(0,i._)([(0,u.j)("esri.layers.support.CodedValueDomain")],y);const g=y;var b;n(92604),n(37697);let _=b=class extends p{constructor(e){super(e),this.type="inherited"}clone(){return new b}};(0,i._)([(0,o.J)({inherited:"inherited"})],_.prototype,"type",void 0),_=b=(0,i._)([(0,u.j)("esri.layers.support.InheritedDomain")],_);const M=_;var k;let T=k=class extends p{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new k({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i._)([(0,a.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]}}}})],T.prototype,"maxValue",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],T.prototype,"minValue",void 0),(0,i._)([(0,o.J)({range:"range"})],T.prototype,"type",void 0),T=k=(0,i._)([(0,u.j)("esri.layers.support.RangeDomain")],T);const w=T,v={key:"type",base:p,typeMap:{range:T,"coded-value":g,inherited:M}};function S(e){if(!e||!e.type)return null;switch(e.type){case"range":return w.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return M.fromJSON(e)}return null}},86719:(e,t,n)=>{n.d(t,{v:()=>r});const r=new(n(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})},77863:(e,t,n)=>{n.d(t,{K9:()=>G,O7:()=>h,G$:()=>v});var r=n(20102),i=n(70586),s=n(45091),a=n(5428),o=n(78760);const u=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML"],c=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],l=["upperLeft","lowerLeft"];function h(e){return e>=u.length?null:u[e]}function d(e){return e>=c.length?null:c[e]}function f(e){return e>=l.length?null:l[e]}function p(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function m(e,t,n){const r=t.createPointGeometry(n);for(;e.next();)switch(e.tag()){case 3:{const n=e.getUInt32(),i=e.pos()+n;let s=0;for(;e.pos()<i;)t.addCoordinatePoint(r,e.getSInt64(),s++);break}default:e.skip()}return r}function y(e,t,n){const r=t.createGeometry(n),i=2+(n.hasZ?1:0)+(n.hasM?1:0);for(;e.next();)switch(e.tag()){case 2:{const n=e.getUInt32(),i=e.pos()+n;let s=0;for(;e.pos()<i;)t.addLength(r,e.getUInt32(),s++);break}case 3:{const n=e.getUInt32(),s=e.pos()+n;let a=0;for(t.allocateCoordinates(r);e.pos()<s;)t.addCoordinate(r,e.getSInt64(),a),a++,a===i&&(a=0);break}default:e.skip()}return r}function g(e){const t=new a.Z;let n="esriGeometryPoint";for(;e.next();)switch(e.tag()){case 2:{const n=e.getUInt32(),r=e.pos()+n;for(;e.pos()<r;)t.lengths.push(e.getUInt32());break}case 3:{const n=e.getUInt32(),r=e.pos()+n;for(;e.pos()<r;)t.coords.push(e.getSInt64());break}case 1:n=o.A[e.getEnum()];break;default:e.skip()}return{queryGeometry:t,queryGeometryType:n}}function b(e){for(;e.next();)switch(e.tag()){case 1:return e.getString();case 2:return e.getFloat();case 3:return e.getDouble();case 4:return e.getSInt32();case 5:return e.getUInt32();case 6:return e.getInt64();case 7:return e.getUInt64();case 8:return e.getSInt64();case 9:return e.getBool();default:return e.skip(),null}return null}function _(e){const t={type:h(0)};for(;e.next();)switch(e.tag()){case 1:t.name=e.getString();break;case 2:t.type=h(e.getEnum());break;case 3:t.alias=e.getString();break;case 4:t.sqlType=d(e.getEnum());break;case 5:default:e.skip();break;case 6:t.defaultValue=e.getString()}return t}function M(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.name=e.getString();break;case 2:t.isSystemMaintained=e.getBool();break;default:e.skip()}return t}function k(e,t,n,r){const i=t.createFeature(n);let s=0;for(;e.next();)switch(e.tag()){case 1:{const t=r[s++].name;i.attributes[t]=e.processMessage(b);break}case 2:i.geometry=e.processMessageWithArgs(y,t,n);break;case 4:i.centroid=e.processMessageWithArgs(m,t,n);break;default:e.skip()}return i}function T(e){const t=[1,1,1,1];for(;e.next();)switch(e.tag()){case 1:t[0]=e.getDouble();break;case 2:t[1]=e.getDouble();break;case 4:t[2]=e.getDouble();break;case 3:t[3]=e.getDouble();break;default:e.skip()}return t}function w(e){const t=[0,0,0,0];for(;e.next();)switch(e.tag()){case 1:t[0]=e.getDouble();break;case 2:t[1]=e.getDouble();break;case 4:t[2]=e.getDouble();break;case 3:t[3]=e.getDouble();break;default:e.skip()}return t}function v(e){const t={originPosition:f(0)};for(;e.next();)switch(e.tag()){case 1:t.originPosition=f(e.getEnum());break;case 2:t.scale=e.processMessage(T);break;case 3:t.translate=e.processMessage(w);break;default:e.skip()}return t}function S(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.shapeAreaFieldName=e.getString();break;case 2:t.shapeLengthFieldName=e.getString();break;case 3:t.units=e.getString();break;default:e.skip()}return t}function x(e,t){const n=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:n.wkid=e.getUInt32();break;case 5:n.wkt=e.getString();break;case 2:n.latestWkid=e.getUInt32();break;case 3:n.vcsWkid=e.getUInt32();break;case 4:n.latestVcsWkid=e.getUInt32();break;default:e.skip()}return n}function I(e,t){const n=t.createFeatureResult();n.geometryType=p(t,0);let r=!1;for(;e.next();)switch(e.tag()){case 1:n.objectIdFieldName=e.getString();break;case 3:n.globalIdFieldName=e.getString();break;case 4:n.geohashFieldName=e.getString();break;case 5:n.geometryProperties=e.processMessage(S);break;case 7:n.geometryType=p(t,e.getEnum());break;case 8:n.spatialReference=e.processMessageWithArgs(x,t);break;case 10:n.hasZ=e.getBool();break;case 11:n.hasM=e.getBool();break;case 12:n.transform=e.processMessage(v);break;case 9:{const t=e.getBool();n.exceededTransferLimit=t;break}case 13:t.addField(n,e.processMessage(_));break;case 15:r||(t.prepareFeatures(n),r=!0),t.addFeature(n,e.processMessageWithArgs(k,t,n,n.fields));break;case 2:n.uniqueIdField=e.processMessage(M);break;default:e.skip()}return t.finishFeatureResult(n),n}function q(e,t){const n={};let r=null;for(;e.next();)switch(e.tag()){case 4:r=e.processMessageWithArgs(g);break;case 1:n.featureResult=e.processMessageWithArgs(I,t);break;default:e.skip()}return(0,i.pC)(r)&&n.featureResult&&t.addQueryGeometry(n,r),n}function G(e,t){try{const n=2,r=new s.Z(new Uint8Array(e),new DataView(e)),i={};for(;r.next();)r.tag()===n?i.queryResult=r.processMessageWithArgs(q,t):r.skip();return i}catch(e){throw new r.Z("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},78760:(e,t,n)=>{n.d(t,{A:()=>u,J:()=>c});var r=n(67900),i=n(8744),s=n(70272),a=n(44876),o=n(5428);const u=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class c{constructor(e){this.options=e,this.geometryTypes=u,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new a.Z}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e||!e.features||!e.hasZ||!this.options.sourceSpatialReference||!e.spatialReference||(0,i.fS)(e.spatialReference,this.options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,r._R)(this.options.sourceSpatialReference)/(0,r._R)(e.spatialReference);if(1!==t)for(const n of e.features){if(!(0,s.S6)(n))continue;const e=n.geometry.coords;for(let n=2;n<e.length;n+=3)e[n]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new s.ZP}createSpatialReference(){return{wkid:0}}createGeometry(){return new o.Z}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce(((e,t)=>e+t),0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new o.Z}}},45178:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(77863);function i(e,t){const n=(0,r.K9)(e,t),i=n.queryResult.featureResult,s=n.queryResult.queryGeometry,a=n.queryResult.queryGeometryType;if(i&&i.features&&i.features.length&&i.objectIdFieldName){const e=i.objectIdFieldName;for(const t of i.features)t.attributes&&(t.objectId=t.attributes[e])}return i&&(i.queryGeometry=s,i.queryGeometryType=a),i}},61916:(e,t,n)=>{n.r(t),n.d(t,{default:()=>w});var r=n(74085),i=n(70586),s=n(99001),a=n(82971),o=n(69285),u=(n(43090),n(80442),n(60437)),c=n(24470),l=(n(82397),n(86973),n(1231));class h{constructor(e,t,n){this.uid=e,this.geometry=t,this.attributes=n,this.visible=!0,this.objectId=null,this.centroid=null}}class d{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null}}(0,u.Ue)(),(0,c.Ue)();var f=n(98732);function p(e,t){return t}function m(e,t,n,r){switch(n){case 0:return _(e,t+r,0);case 1:return"lowerLeft"===e.originPosition?_(e,t+r,1):function({translate:e,scale:t},n,r){return e[r]-n*t[r]}(e,t+r,1)}}function y(e,t,n,r){return 2===n?_(e,t,2):m(e,t,n,r)}function g(e,t,n,r){return 2===n?_(e,t,3):m(e,t,n,r)}function b(e,t,n,r){return 3===n?_(e,t,3):y(e,t,n,r)}function _({translate:e,scale:t},n,r){return e[r]+n*t[r]}class M{constructor(e){this.options=e,this.geometryTypes=["point","multipoint","polyline","polygon"],this.previousCoordinate=[0,0],this.transform=null,this.applyTransform=p,this.lengths=[],this.currentLengthIndex=0,this.toAddInCurrentPath=0,this.vertexDimension=0,this.coordinateBuffer=null,this.coordinateBufferPtr=0,this._attributesConstructor=function(){}}createFeatureResult(){return new d}finishFeatureResult(e){if(this.options.applyTransform&&(e.transform=null),this._attributesConstructor=function(){},this.coordinateBuffer=null,this.lengths.length=0,!e.hasZ)return;const t=(0,o.k)(e.geometryType,this.options.sourceSpatialReference,e.spatialReference);if(!(0,i.Wi)(t))for(const n of e.features)t(n.geometry)}createSpatialReference(){return new a.Z}addField(e,t){e.fields.push(l.Z.fromJSON(t));const n=e.fields.map((e=>e.name));this._attributesConstructor=function(){for(const e of n)this[e]=null}}addFeature(e,t){const n=this.options.maxStringAttributeLength?this.options.maxStringAttributeLength:0;if(n>0)for(const e in t.attributes){const r=t.attributes[e];"string"==typeof r&&r.length>n&&(t.attributes[e]="")}e.features.push(t)}addQueryGeometry(e,t){const{queryGeometry:n,queryGeometryType:r}=t,i=(0,f.$g)(n.clone(),n,!1,!1,this.transform),s=(0,f.di)(i,r,!1,!1);let a=null;switch(r){case"esriGeometryPoint":a="point";break;case"esriGeometryPolygon":a="polygon";break;case"esriGeometryPolyline":a="polyline";break;case"esriGeometryMultipoint":a="multipoint"}s.type=a,e.queryGeometryType=r,e.queryGeometry=s}prepareFeatures(e){switch(this.transform=e.transform,this.options.applyTransform&&e.transform&&(this.applyTransform=this._deriveApplyTransform(e)),this.vertexDimension=2,e.hasZ&&this.vertexDimension++,e.hasM&&this.vertexDimension++,e.geometryType){case"point":this.addCoordinate=(e,t,n)=>this.addCoordinatePoint(e,t,n),this.createGeometry=e=>this.createPointGeometry(e);break;case"polygon":this.addCoordinate=(e,t,n)=>this._addCoordinatePolygon(e,t,n),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"polyline":this.addCoordinate=(e,t,n)=>this._addCoordinatePolyline(e,t,n),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"multipoint":this.addCoordinate=(e,t,n)=>this._addCoordinateMultipoint(e,t,n),this.createGeometry=e=>this._createMultipointGeometry(e);break;case"mesh":case"extent":break;default:(0,r.Bg)(e.geometryType)}}createFeature(){return this.lengths.length=0,this.currentLengthIndex=0,this.previousCoordinate[0]=0,this.previousCoordinate[1]=0,new h((0,s.D)(),null,new this._attributesConstructor)}allocateCoordinates(){const e=this.lengths.reduce(((e,t)=>e+t),0);this.coordinateBuffer=new Float64Array(e*this.vertexDimension),this.coordinateBufferPtr=0}addLength(e,t,n){0===this.lengths.length&&(this.toAddInCurrentPath=t),this.lengths.push(t)}createPointGeometry(e){const t={type:"point",x:0,y:0,spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM};return t.hasZ&&(t.z=0),t.hasM&&(t.m=0),t}addCoordinatePoint(e,t,n){switch(t=this.applyTransform(this.transform,t,n,0),n){case 0:e.x=t;break;case 1:e.y=t;break;case 2:e.hasZ?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let n=0;return t<=1&&(n=this.previousCoordinate[t],this.previousCoordinate[t]+=e),this.applyTransform(this.transform,e,t,n)}_addCoordinatePolyline(e,t,n){this._dehydratedAddPointsCoordinate(e.paths,t,n)}_addCoordinatePolygon(e,t,n){this._dehydratedAddPointsCoordinate(e.rings,t,n)}_addCoordinateMultipoint(e,t,n){0===n&&e.points.push([]);const r=this._transformPathLikeValue(t,n);e.points[e.points.length-1].push(r)}_createPolygonGeometry(e){return{type:"polygon",rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{type:"polyline",paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{type:"multipoint",points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,n){0===n&&0==this.toAddInCurrentPath--&&(e.push([]),this.toAddInCurrentPath=this.lengths[++this.currentLengthIndex]-1,this.previousCoordinate[0]=0,this.previousCoordinate[1]=0);const r=this._transformPathLikeValue(t,n),i=e[e.length-1];0===n&&i.push(new Float64Array(this.coordinateBuffer.buffer,this.coordinateBufferPtr*Float64Array.BYTES_PER_ELEMENT,this.vertexDimension)),this.coordinateBuffer[this.coordinateBufferPtr++]=r}_deriveApplyTransform(e){const{hasZ:t,hasM:n}=e;return t&&n?b:t?y:n?g:m}}var k=n(45178);class T{_parseFeatureQuery(e){const t=(0,k.C)(e.buffer,new M(e.options)),n={...t,spatialReference:t.spatialReference.toJSON(),fields:t.fields?t.fields.map((e=>e.toJSON())):void 0};return Promise.resolve(n)}}function w(){return new T}}}]);