@arcgis/core 5.2.0-next.36 → 5.2.0-next.37

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 (276) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/02b043a3c5fa8bcb4c5b.js +1 -0
  3. package/assets/esri/core/workers/chunks/{acbc14395c31f6da509e.js → 03437a8ef35c200dbf17.js} +1 -1
  4. package/assets/esri/core/workers/chunks/034dd8ee5152a12412cd.js +1 -0
  5. package/assets/esri/core/workers/chunks/0a6e03263ab0906d8bcf.js +1 -0
  6. package/assets/esri/core/workers/chunks/0edd250159ec259601b3.js +1 -0
  7. package/assets/esri/core/workers/chunks/{401ee7fa500adad77db1.js → 1079914101d69a40b3eb.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{c72121076e438ed28d60.js → 1599dc5309a4e60017ce.js} +2 -2
  9. package/assets/esri/core/workers/chunks/181e98399732f425305d.js +1 -0
  10. package/assets/esri/core/workers/chunks/{47d88e1b003c4519b7b6.js → 18f4b2099299942aaf97.js} +1 -1
  11. package/assets/esri/core/workers/chunks/196e7515a43bd0026f49.js +1 -0
  12. package/assets/esri/core/workers/chunks/1aa7496a7dc95aae11ac.js +1 -0
  13. package/assets/esri/core/workers/chunks/1d524690c4b66289bd20.js +1 -0
  14. package/assets/esri/core/workers/chunks/{f72f38e7609756a7f8ea.js → 20fa2c3d4360afa5e136.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{03350a56f840cffe5459.js → 2757c4bf0280e27f3484.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{93ceb74ac88ef460fe5f.js → 278409028bc5af45b507.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{2c61bb25578f73ba49bc.js → 29a1d0659bbc5a039864.js} +1 -1
  18. package/assets/esri/core/workers/chunks/29df3f829006719b2680.js +1 -0
  19. package/assets/esri/core/workers/chunks/30cf84a47ebefd180bb7.js +1 -0
  20. package/assets/esri/core/workers/chunks/{71a593fa116770e58832.js → 37a95f097533bad1b338.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{7335a762412bc8c15a2f.js → 37e823202424c11076cb.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{ee446250a40e5d89bb5a.js → 3a76fffa2016c16d7989.js} +3 -3
  23. package/assets/esri/core/workers/chunks/{58ce4bcfb15f378b1b9f.js → 3d6d2b42ba2ad7086d5d.js} +1 -1
  24. package/assets/esri/core/workers/chunks/3ec91474658eae87b832.js +1 -0
  25. package/assets/esri/core/workers/chunks/448e0596005cba9a4225.js +1 -0
  26. package/assets/esri/core/workers/chunks/{f148666308071bdb185a.js → 45530a49fa1f09d1682e.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{155940ef3d1888272d73.js → 459e89d1b94a3b204d20.js} +2 -2
  28. package/assets/esri/core/workers/chunks/{f71f5778e03f68f27482.js → 45b2e58051f42ebd236e.js} +1 -1
  29. package/assets/esri/core/workers/chunks/4611cf051c3c396fdf96.js +1 -0
  30. package/assets/esri/core/workers/chunks/{efaa1d05705f6b450e8f.js → 46e3d33e44e5398221e2.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{866950e9ab96aebc6b32.js → 4a8201e09bc3ad5cc00b.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{110135b0562a3b5708b9.js → 4abe820bbe4f7ffccc09.js} +1 -1
  33. package/assets/esri/core/workers/chunks/4ad86d6b1be07c97b6f6.js +1 -0
  34. package/assets/esri/core/workers/chunks/{20ffeb09bb30400de110.js → 4e28f49d0be20ea50fd7.js} +1 -1
  35. package/assets/esri/core/workers/chunks/4f25aac84d9eb10cac83.js +1 -0
  36. package/assets/esri/core/workers/chunks/{0197e459fdb04dfb28ef.js → 51838d55d8ec4ce70398.js} +1 -1
  37. package/assets/esri/core/workers/chunks/542d8a6c415098b9857c.js +1 -0
  38. package/assets/esri/core/workers/chunks/57abf838fcff0f0e2c5e.js +1 -0
  39. package/assets/esri/core/workers/chunks/57dd017fed2943d24e3d.js +1 -0
  40. package/assets/esri/core/workers/chunks/59801b2ccaaf4b394e02.js +1 -0
  41. package/assets/esri/core/workers/chunks/5a62c9f64db4fcae5e52.js +1 -0
  42. package/assets/esri/core/workers/chunks/{e84c13ac59e5381b77e2.js → 5aebecb5c2b3e7887127.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{c19fe4f31e4ef84bbcf6.js → 5e68b74fd548c7cdba36.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{9dcb2cbf89dcb7558432.js → 5f360492560ae07083a6.js} +1 -1
  45. package/assets/esri/core/workers/chunks/6022f43ebd58e21c737a.js +1 -0
  46. package/assets/esri/core/workers/chunks/62b137a795e487fa06a1.js +1 -0
  47. package/assets/esri/core/workers/chunks/{007485862ce95928717a.js → 632de34ebd2f44b4423d.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{1ad5fcae6d6a9801cf58.js → 63ca17f569407c89bde1.js} +2 -2
  49. package/assets/esri/core/workers/chunks/6896a6dd36fa91a27151.js +1 -0
  50. package/assets/esri/core/workers/chunks/{e6263e1983e703befe48.js → 68bc674affe2f7269c40.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{759686b896f51f0fe6a9.js → 6a51499c6623ddce5f00.js} +1 -1
  52. package/assets/esri/core/workers/chunks/6cdf1db30793133294dd.js +1 -0
  53. package/assets/esri/core/workers/chunks/{b0e4af49fc968b0a910f.js → 6ff6783f89ecd3a5e752.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{857532de88f21e8c3466.js → 70763c7b68d8abe8d5fe.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{e67a9f9298d63026e7f6.js → 716b1f073e3cd807abd3.js} +1 -1
  56. package/assets/esri/core/workers/chunks/71a3f05cb86ae2920f8d.js +1 -0
  57. package/assets/esri/core/workers/chunks/723bb56de2324b41df4e.js +1 -0
  58. package/assets/esri/core/workers/chunks/73f61107cb7e6d30bf03.js +1 -0
  59. package/assets/esri/core/workers/chunks/752c34cee981862add89.js +1 -0
  60. package/assets/esri/core/workers/chunks/760dfd585b6c2c1937ce.js +1 -0
  61. package/assets/esri/core/workers/chunks/{595401947e74a0a67144.js → 76449e50222111ba0eb1.js} +1 -1
  62. package/assets/esri/core/workers/chunks/76bed5497f42f23a27ed.js +1 -0
  63. package/assets/esri/core/workers/chunks/832ecc1f7d45774c4726.js +1 -0
  64. package/assets/esri/core/workers/chunks/860a0f9d20f53db1caf4.js +1 -0
  65. package/assets/esri/core/workers/chunks/867e39bb444947c93586.js +1 -0
  66. package/assets/esri/core/workers/chunks/8a8b7ac6693bdfbebf07.js +1 -0
  67. package/assets/esri/core/workers/chunks/8fce15ce4cfdccf407f3.js +1 -0
  68. package/assets/esri/core/workers/chunks/{5260f623438bd84f2caa.js → 937cf55b3b9d324eea73.js} +1 -1
  69. package/assets/esri/core/workers/chunks/93df864c2e829f0fd5ce.js +1 -0
  70. package/assets/esri/core/workers/chunks/{7b5e628ea3d4a51f1c4e.js → 966d002acec8c72be56a.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{367a3031abbeff0c0090.js → 9aef0b87f471626abd66.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{f1d211904d5a1de93cb3.js → 9ba9a3705623679bc305.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{aec82b94787821153d2b.js → a188d0767825d322f96d.js} +1 -1
  74. package/assets/esri/core/workers/chunks/a638de0102c3990403d1.js +1 -0
  75. package/assets/esri/core/workers/chunks/b09935d0105d50a0971b.js +1 -0
  76. package/assets/esri/core/workers/chunks/b2c0262c4a76b8a86200.js +1 -0
  77. package/assets/esri/core/workers/chunks/{599bd80379423c99799d.js → b4323e69e624c6b51754.js} +1 -1
  78. package/assets/esri/core/workers/chunks/b5141f240ca79729686d.js +1 -0
  79. package/assets/esri/core/workers/chunks/b549a4d4b1a34bee8beb.js +1 -0
  80. package/assets/esri/core/workers/chunks/bb89b6fd93513c61b2d3.js +1 -0
  81. package/assets/esri/core/workers/chunks/{3bd32387af52fa48d747.js → bc553ecc8cbcc1b02717.js} +1 -1
  82. package/assets/esri/core/workers/chunks/bcba02f61cf0abcb5600.js +1 -0
  83. package/assets/esri/core/workers/chunks/{f63e7b01c70352538b1e.js → bd0f488e228a75fbefb3.js} +2 -2
  84. package/assets/esri/core/workers/chunks/c48dfda8dcb9551606fb.js +1 -0
  85. package/assets/esri/core/workers/chunks/c4e44fde4bc4ff89e2bc.js +1 -0
  86. package/assets/esri/core/workers/chunks/c93a68618674b38b932e.js +1 -0
  87. package/assets/esri/core/workers/chunks/d2745886ba5a86fd5c4c.js +680 -0
  88. package/assets/esri/core/workers/chunks/d4c341b15d9244276fb9.js +1 -0
  89. package/assets/esri/core/workers/chunks/d5faab9799891e5da5a8.js +1 -0
  90. package/assets/esri/core/workers/chunks/d811924acc9c0be95bba.js +1 -0
  91. package/assets/esri/core/workers/chunks/{4b96aa2dc5b88846bb53.js → e0a4d0288abd334b0673.js} +1 -1
  92. package/assets/esri/core/workers/chunks/{b22a1c98271c2e4d8808.js → e1ddb8e4977b317fd40c.js} +1 -1
  93. package/assets/esri/core/workers/chunks/e961c6140c39921816a8.js +1 -0
  94. package/assets/esri/core/workers/chunks/eb7daa0f6610983ff8db.js +1 -0
  95. package/assets/esri/core/workers/chunks/eb842cf470ce28a73187.js +1 -0
  96. package/assets/esri/core/workers/chunks/ed1d4ebf487c7dcd5c33.js +1 -0
  97. package/assets/esri/core/workers/chunks/f565e203d8fed2672112.js +1 -0
  98. package/assets/esri/core/workers/chunks/f80cadcc2a588da63b38.js +1 -0
  99. package/assets/esri/core/workers/chunks/f8bbb52b865a0a242140.js +1 -0
  100. package/assets/esri/core/workers/chunks/f9592bcdd9988199a7ea.js +1 -0
  101. package/assets/esri/core/workers/chunks/ff7e1eb2366d4301d288.js +1 -0
  102. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  103. package/chunks/NavigationDepth.glsl.js +18 -0
  104. package/chunks/Path.glsl.js +20 -16
  105. package/config.js +1 -1
  106. package/core/accessorSupport/diffUtils.js +1 -1
  107. package/geometry/FlatGeometry.js +1 -1
  108. package/geometry/support/Indices.js +1 -1
  109. package/geometry/support/ShortArray.js +1 -1
  110. package/geometry/support/UintArray.js +1 -1
  111. package/geometry/support/meshUtils/geographicUtils.js +1 -1
  112. package/kernel.js +1 -1
  113. package/layers/mixins/PublishableLayer.js +1 -1
  114. package/layers/mixins/RefreshableLayer.js +1 -1
  115. package/layers/raster/functions/pixelUtils.js +1 -1
  116. package/layers/support/kustoUtils.js +1 -1
  117. package/package.json +1 -1
  118. package/popup/Feature.js +1 -1
  119. package/portal/support/resourceUtils.js +1 -1
  120. package/renderers/support/rasterTypeUtils.js +1 -1
  121. package/rest/query/operations/pbfFeatureSetUtils.js +1 -1
  122. package/support/revision.js +1 -1
  123. package/symbols/cim/utils.js +1 -1
  124. package/tables/support/tablesUtils.js +1 -1
  125. package/views/2d/engine/flow/utils.js +1 -1
  126. package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
  127. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
  128. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
  129. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  130. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/AlignedVertexSpec.js +1 -1
  131. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  132. package/views/2d/layers/features/layerAdapters/labelingUtils.js +1 -1
  133. package/views/2d/layers/support/annodime/dimensionUtils.js +1 -1
  134. package/views/2d/layers/support/annodime/utils.js +1 -1
  135. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  136. package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
  137. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  138. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  139. package/views/3d/layers/Lyr3DWasm.js +1 -1
  140. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  141. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  142. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  143. package/views/3d/layers/i3s/PointCloudRendererUtil.js +1 -1
  144. package/views/3d/layers/i3s/PointCloudWorkerUtil.js +1 -1
  145. package/views/3d/layers/support/lyr3dTypeConversions.js +1 -1
  146. package/views/3d/state/utils/navigationUtils.js +1 -1
  147. package/views/3d/support/gaussianSplatting/GaussianSplatAtlasPages.js +1 -1
  148. package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
  149. package/views/3d/support/orientedBoundingBox.js +1 -1
  150. package/views/3d/terrain/terrainUtils.js +1 -1
  151. package/views/3d/webgl-engine/core/material/MaterialBase.js +1 -1
  152. package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
  153. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +32 -16
  154. package/views/3d/webgl-engine/core/shaderLibrary/output/Emissions.glsl.js +1 -1
  155. package/views/3d/webgl-engine/core/shaderLibrary/shading/calculateUVZShadowFromDepth.glsl.js +2 -2
  156. package/views/3d/webgl-engine/effects/RenderPlugin.js +1 -1
  157. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  158. package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
  159. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  160. package/views/3d/webgl-engine/lib/NavigationDepthCache.js +2 -0
  161. package/views/3d/webgl-engine/lib/PathEvaluator.js +1 -1
  162. package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
  163. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  164. package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
  165. package/views/3d/webgl-engine/lib/intersectorUtils.js +1 -1
  166. package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
  167. package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
  168. package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
  169. package/views/3d/webgl-engine/materials/PathLayouts.js +1 -1
  170. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  171. package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
  172. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  173. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  174. package/views/3d/webgl-engine/shaders/NavigationDepth.glsl.js +2 -0
  175. package/views/3d/webgl-engine/shaders/NavigationDepthTechnique.js +2 -0
  176. package/views/3d/webgl-engine/shaders/oitResolution.glsl.js +1 -1
  177. package/views/draw/support/Reshape.js +1 -1
  178. package/views/support/euclideanLengthMeasurementUtils.js +1 -1
  179. package/views/support/selectionUtils.js +1 -1
  180. package/views/webgl/BufferObject.js +1 -1
  181. package/views/webgl/FramebufferObject.js +1 -1
  182. package/views/webgl/RenderingContext.js +1 -1
  183. package/views/webgl/VertexAttributeLayouts.js +1 -1
  184. package/webscene/spec-certification/utils.js +1 -1
  185. package/widgets/Editor/legacy/workflowUtils.js +1 -1
  186. package/widgets/Editor/workflowUtils.js +1 -1
  187. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  188. package/widgets/OrientedImageryViewer/navigation/errors.js +1 -1
  189. package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
  190. package/widgets/OrientedImageryViewer/navigation/utils.js +1 -1
  191. package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
  192. package/widgets/OrientedImageryViewer/utils.js +1 -1
  193. package/widgets/OrientedImageryViewer.js +1 -1
  194. package/widgets/PanoramicViewer/constants.js +1 -1
  195. package/widgets/PanoramicViewer/support/importUtils.js +1 -1
  196. package/widgets/PanoramicViewer/utils.js +1 -1
  197. package/widgets/support/dateUtils.js +1 -1
  198. package/assets/esri/core/workers/chunks/0a2f08298a3c932614f2.js +0 -1
  199. package/assets/esri/core/workers/chunks/0df978697328b6453c94.js +0 -1
  200. package/assets/esri/core/workers/chunks/168c15cf462f9abcbdd2.js +0 -1
  201. package/assets/esri/core/workers/chunks/22c447fcc9a28afeb6e3.js +0 -1
  202. package/assets/esri/core/workers/chunks/24aa98cb2021ddd789ce.js +0 -1
  203. package/assets/esri/core/workers/chunks/2509da565e5a2b43ac7f.js +0 -1
  204. package/assets/esri/core/workers/chunks/256cc116e3be4feee593.js +0 -1
  205. package/assets/esri/core/workers/chunks/2bb3494659609594c4ca.js +0 -1
  206. package/assets/esri/core/workers/chunks/2c017eae434254610c8e.js +0 -1
  207. package/assets/esri/core/workers/chunks/303e723e829ea7088d43.js +0 -1
  208. package/assets/esri/core/workers/chunks/368db1420b8520beae05.js +0 -1
  209. package/assets/esri/core/workers/chunks/38a6a7c56c592f336a12.js +0 -1
  210. package/assets/esri/core/workers/chunks/39ff5b2a05a90e1cb214.js +0 -1
  211. package/assets/esri/core/workers/chunks/3b914ca36e7e2b00cfe6.js +0 -1
  212. package/assets/esri/core/workers/chunks/3e8fa2a7a36881234479.js +0 -1
  213. package/assets/esri/core/workers/chunks/451331f69d21c61ec93b.js +0 -1
  214. package/assets/esri/core/workers/chunks/4656a4bf430d7eed1465.js +0 -1
  215. package/assets/esri/core/workers/chunks/472ec242cd3070e6acfe.js +0 -1
  216. package/assets/esri/core/workers/chunks/51d7145f748b4865de7f.js +0 -1
  217. package/assets/esri/core/workers/chunks/54f54623532f633dc0e2.js +0 -1
  218. package/assets/esri/core/workers/chunks/570a4725b2a4a19c5148.js +0 -1
  219. package/assets/esri/core/workers/chunks/586ca90e46f5cbdfeece.js +0 -1
  220. package/assets/esri/core/workers/chunks/59c22bab85f9cdbb9948.js +0 -1
  221. package/assets/esri/core/workers/chunks/5dfeefee96659832398a.js +0 -1
  222. package/assets/esri/core/workers/chunks/6c746ac4bd2e57b8cb41.js +0 -1
  223. package/assets/esri/core/workers/chunks/6d72a1bdc2664df62c4c.js +0 -1
  224. package/assets/esri/core/workers/chunks/7085b4c655a19694da04.js +0 -1
  225. package/assets/esri/core/workers/chunks/777b16b76db406c99c69.js +0 -1
  226. package/assets/esri/core/workers/chunks/818a481ce579f519de1c.js +0 -1
  227. package/assets/esri/core/workers/chunks/85a280ee915010a8da3c.js +0 -1
  228. package/assets/esri/core/workers/chunks/86731e276b31453bc235.js +0 -1
  229. package/assets/esri/core/workers/chunks/87b86375f8557418dbe6.js +0 -1
  230. package/assets/esri/core/workers/chunks/8817d25c7f4cf0e6c6bd.js +0 -1
  231. package/assets/esri/core/workers/chunks/8a9b2efa0603e9fa4e8b.js +0 -1
  232. package/assets/esri/core/workers/chunks/8aa5bbf9a9b09815725a.js +0 -1
  233. package/assets/esri/core/workers/chunks/8b68a69ab8fb1679e7b2.js +0 -1
  234. package/assets/esri/core/workers/chunks/98685bd149dee1d6dc99.js +0 -1
  235. package/assets/esri/core/workers/chunks/9de673a04c70bd47047e.js +0 -1
  236. package/assets/esri/core/workers/chunks/9de9cec5c644bc452294.js +0 -1
  237. package/assets/esri/core/workers/chunks/9fb0431b0628dcb53004.js +0 -680
  238. package/assets/esri/core/workers/chunks/a2a688dd2ed4565e01ff.js +0 -1
  239. package/assets/esri/core/workers/chunks/a3ae7c41832c7a8b0570.js +0 -1
  240. package/assets/esri/core/workers/chunks/a3e86830460e52706a4d.js +0 -1
  241. package/assets/esri/core/workers/chunks/a58b8903ae17acf117d6.js +0 -1
  242. package/assets/esri/core/workers/chunks/a99ce2f12c8204ee542a.js +0 -1
  243. package/assets/esri/core/workers/chunks/ab3d1c00ef514b61ce0b.js +0 -1
  244. package/assets/esri/core/workers/chunks/ae5363956b4467208e04.js +0 -1
  245. package/assets/esri/core/workers/chunks/b24b7411a73d1da87c30.js +0 -1
  246. package/assets/esri/core/workers/chunks/b97b83159fec34f383af.js +0 -1
  247. package/assets/esri/core/workers/chunks/bec660ee2e7828f965e2.js +0 -1
  248. package/assets/esri/core/workers/chunks/c7316fd2bdb7ac9eada3.js +0 -1
  249. package/assets/esri/core/workers/chunks/ca7d4d76a6bf5a3046cd.js +0 -1
  250. package/assets/esri/core/workers/chunks/cffef41791f0cfa6c26c.js +0 -1
  251. package/assets/esri/core/workers/chunks/d26b1a9f47b4b2744c89.js +0 -1
  252. package/assets/esri/core/workers/chunks/d4a96f0402172787823a.js +0 -1
  253. package/assets/esri/core/workers/chunks/d9fcc63df008f687848a.js +0 -1
  254. package/assets/esri/core/workers/chunks/e3a4695c31d3f9d55213.js +0 -1
  255. package/assets/esri/core/workers/chunks/e65d291bab13f7f5323b.js +0 -1
  256. package/assets/esri/core/workers/chunks/eeee7421f64a52074ff4.js +0 -1
  257. package/assets/esri/core/workers/chunks/eef7e0bee19c4258ba55.js +0 -1
  258. package/assets/esri/core/workers/chunks/efaf998d18479a0380ae.js +0 -1
  259. package/assets/esri/core/workers/chunks/f0573db9a3d3e1499a7e.js +0 -1
  260. package/assets/esri/core/workers/chunks/f07722efd7fa2b75d4dd.js +0 -1
  261. package/assets/esri/core/workers/chunks/f137e544076482e348ad.js +0 -1
  262. package/assets/esri/core/workers/chunks/fd53ef66176ae164e221.js +0 -1
  263. package/assets/esri/core/workers/chunks/fd956a58787020d610af.js +0 -1
  264. package/rest/sharedTemplates/addSharedTemplates.js +0 -2
  265. package/support/featureFlags.js +0 -2
  266. package/views/2d/engine/webgl/ClippingInfo.js +0 -2
  267. package/views/2d/engine/webgl/Mesh2D.js +0 -2
  268. package/views/2d/engine/webgl/shaderGraph/GLSLShaderModule.js +0 -2
  269. package/views/2d/layers/features/ProcessorTileMessageQueue.js +0 -2
  270. package/views/3d/support/AsyncWorkerQueue.js +0 -2
  271. package/views/3d/webgl-engine/lib/PathGeometryData.js +0 -2
  272. package/widgets/BatchAttributeForm/templates/support/contingentValuesUtils.js +0 -2
  273. package/widgets/OrientedImageryViewer/components/NavigationAction.js +0 -2
  274. package/widgets/OrientedImageryViewer/components/NavigationActions.js +0 -2
  275. package/widgets/OrientedImageryViewer/support/NonPanoramicMediaCollection.js +0 -2
  276. package/widgets/PanoramicViewer/support/PanoramicMediaCollection.js +0 -2
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1094,1550,1666,1948,6061,7992,8125,9169],{57694(e,t,n){n.d(t,{a:()=>i,c:()=>o});var r=n(55537),s=n(83661);function o(e,t){if(!e.isEmpty())switch(e.getGeometryType()){case r.G.enumPolygon:return a(e);case r.G.enumPolyline:return h(e.getImpl());case r.G.enumLine:case r.G.enumBezier:case r.G.enumEllipticArc:return function(e){const t=e.calculateLength2D();return 0===t?e.getStartXY():e.calculateWeightedCentroid2D().mul(1/t)}(e);case r.G.enumMultiPoint:return function(e){const t=new s.K(0),n=new s.K(0),r=e.getImpl(),o=r.getAttributeStreamRef(0),i=r.getPointCount(),a=new s.P;for(let e=0;e<i;e++)o.queryPoint2D(2*e,a),t.add(a.x),n.add(a.y);const u=new s.P;return u.setCoords(t.getResult(),n.getResult()),u.divThis(i)}(e);case r.G.enumEnvelope:return e.getCenterXY();case r.G.enumPoint:return e.getXY();default:return s.P.construct(Number.NaN,Number.NaN)}return s.P.construct(Number.NaN,Number.NaN)}function i(e,t){return a(e,t)}function a(e,t=-1){const n=new s.K(0),r=new s.K(0),o=e.getImpl();let i;const a=o.hasNonLinearSegments();let h;const g=o.getXY(0);if(-1===t){if(h=o.calculateArea2D(),0===h)return l(e);a&&(i=o.querySegmentIterator());for(let e=0,t=o.getPathCount();e<t;e++)u(g,o,e,n,r),a&&c(g,i,n,r)}else{if(h=o.calculateRingArea2D(t),0===h)return l(e,t);a&&(i=o.querySegmentIterator(),i.resetToPath(t)),u(g,o,t,n,r),a&&c(g,i,n,r)}const m=new s.P,f=new s.P;return m.setCoords(n.getResult(),r.getResult()),f.assign(m.mul(1/h).add(g)),f}function u(e,t,n,r,o){const i=t.getPathStart(n),a=t.getPathEnd(n);if(a-i<3)return;const u=t.getAttributeStreamRef(0),c=u.readPoint2D(2*i),l=u.readPoint2D(2*(i+1));l.subThis(c);const h=new s.K(0),g=t.hasNonLinearSegments(),m=1/3,f=new s.P;for(let e=i+2;e<a;e++){u.queryPoint2D(2*e,f),f.subThis(c);const t=.5*f.crossProduct(l);g&&h.add(t);const n=m*t;r.add((l.x+f.x)*n),o.add((l.y+f.y)*n),l.setCoordsPoint2D(f)}const d=g?h.getResult():t.calculateRingArea2D(n),x=c.sub(e).mul(d);r.add(x.x),o.add(x.y)}function c(e,t,n,s){let o;for(t.nextPath()||(0,r.d)("centroid");null!==(o=t.nextCurve());){const t=o.calculateWeightedAreaCentroid2D(e);n.add(t.x),s.add(t.y)}}function l(e,t=-1){return h(e.getImpl(),t)}function h(e,t=-1){const n=-1===t?e.calculateLength2D():e.calculatePathLength2D(t);if(0===n)return function(e,t=-1){if(-1!==t)return e.getXY(e.getPathStart(t));const n=new s.K(0),r=new s.K(0);for(let t=0;t<e.getPathCount();++t){const s=e.getXY(e.getPathStart(t));n.add(s.x),r.add(s.y)}return s.P.construct(n.getResult(),r.getResult()).mul(1/e.getPathCount())}(e,t);const r=new s.K(0),o=new s.K(0),i=e.querySegmentIterator();for(-1!==t&&i.resetToPath(t);i.nextPath();){const n=i.getPathIndex(),s=e.getXY(e.getPathStart(n));for(;i.hasNextSegment();){const e=i.nextSegment(),t=e.calculateLength2D();if(0===t)continue;const n=e.calculateWeightedCentroid2D().sub(s.mul(t));r.add(n.x),o.add(n.y)}const a=s.mul(e.calculatePathLength2D(n));if(r.add(a.x),o.add(a.y),-1!==t)break}const a=new s.P;return a.setCoords(r.getResult(),o.getResult()),a.mul(1/n)}},61691(e,t,n){n.d(t,{G:()=>r});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},88194(e,t,n){n.d(t,{O:()=>g});var r=n(55537),s=n(79187),o=n(83661),i=n(15756);function a(){return u(new o.P,-1,Number.NaN)}function u(e,t,n){return{m_coordinate:e.clone(),m_vertexIndex:t,m_geometryIndex:0,m_distance:n,m_bRightSide:!1,isEmpty:c}}function c(){return Number.isNaN(this.m_distance)}function l(e,t,n=-1,a=-1){if(e.isEmpty())return 3;const u=e.getGeometryType();if((0,r.m)(u))return function(e,t,n,s){if(n>=0||s>=0)return(0,r.a)("");if(e.isDegenerate(0))return e.getStartXY().equals(t)?2:3;if(!e.isCurve()){const n=o.P.orientationRobust(t,e.getStartXY(),e.getEndXY());return n<0?1:n>0?0:2}const i=e.getClosestCoordinate(t,!1),a=e.getTangent(i),u=e.getCoord2D(i),c=o.P.orientationRobust(t,u,u.add(a));return c<0?1:c>0?0:2}(e,t,n,a);if(u===r.G.enumPolygon)return function(e,t,n,o){(n>=0||o>=0)&&(0,r.a)("");const a=new s.Envelope2D;e.queryEnvelope(a);const u=(0,i.g)(e,t,0);return 0===u?0:1===u?1:2}(e,t,n,a);if(u===r.G.enumPolyline)return function(e,t,n,s){(n<0&&s>=0||n>=0&&s<0)&&(0,r.a)("");const i=e.querySegmentIterator();if(n<0){let e=Number.MAX_VALUE,r=0;for(;i.nextPath();)for(;i.hasNextSegment();){const a=i.nextSegment(),u=a.getClosestCoordinate(t,!1),c=a.getCoord2D(u),l=o.P.sqrDistance(c,t);l<e?(r=1,n=i.getStartPointIndex(),s=i.getPathIndex(),e=l):l===e&&r++}if(0===r)return 3;if(1===r)return i.resetToVertex(n,s),l(i.nextSegment(),t)}const a=function(e,t,n,r){const s={i1:-1,i2:-1,bRight1:!1,bRight2:!1};if(s.i1=function(e,t,n){for(e.resetToVertex(t,n);e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();for(e.resetToVertex(t,n);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,n,r),-1!==s.i1){t.resetToVertex(s.i1,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r),a=o.P.sqrDistance(i,e);{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),s.bRight1=t.crossProduct(r)<0}if(s.i2=function(e,t){for(e.resetToVertex(t,-1),e.nextSegment();e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,s.i1),-1!==s.i2){t.resetToVertex(s.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if(o.P.sqrDistance(i,e)>a)s.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),s.bRight2=t.crossProduct(r)<0}}if(-1===s.i2&&(s.i2=function(e,t){for(e.resetToVertex(t,-1);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,s.i1),-1!==s.i2)){t.resetToVertex(s.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if(o.P.sqrDistance(i,e)>a)s.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),s.bRight2=t.crossProduct(r)<0;const o=s.i1;s.i1=s.i2,s.i2=o;const a=s.bRight1;s.bRight1=s.bRight2,s.bRight2=a}}}return s}(t,i,n,s);if(-1!==a.i1&&-1===a.i2)return a.bRight1?1:0;if(-1!==a.i1&&-1!==a.i2){if(a.bRight1===a.bRight2)return a.bRight1?1:0;{i.resetToVertex(a.i1,-1);const e=i.nextSegment().getTangent(1);i.resetToVertex(a.i2,-1);const t=i.nextSegment().getTangent(0);return e.crossProduct(t)>=0?1:0}}return i.resetToVertex(n,s),l(i.nextSegment(),t)}(e,t,n,a);if(u===r.G.enumEnvelope){const n=new s.Envelope2D;return e.queryEnvelope(n),n.contains(t)?n.containsExclusive(t)?1:2:0}return 3}var h=n(95213);class g{getOperatorType(){return 10500}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}getNearestCoordinate(e,t,n,s){if(t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(e,t);case r.G.enumMultiPoint:return this.multiVertexGetNearestVertex(e,t);case r.G.enumPolyline:case r.G.enumPolygon:return this.multiPathGetNearestCoordinate(e,t,n,s);default:(0,r.t)("")}}getNearestVertex(e,t){if(t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(e,t);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertex(e,t);default:(0,r.t)("")}}getNearestVertices(e,t,n,s){if(0===s&&(0,r.a)(""),t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return[];switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertices(e,t,n,s);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertices(e,t,n,s);default:(0,r.t)("")}}multiPathGetNearestCoordinate(e,t,n,a){if(e.getGeometryType()===r.G.enumPolygon&&n){const n=new s.Envelope2D;e.queryEnvelope(n);const r=(0,h.d)(null,n,!1);let o;if(o=(0,i.g)(e,t,a?0:r),0!==o){const e=u(t,-1,0);return a&&(e.m_bRightSide=!0),e}}const c=e.querySegmentIterator(),g=new o.P;let m=-1,f=-1,d=Number.MAX_VALUE,x=0;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment(),n=e.getClosestCoordinate(t,!1),r=e.getCoord2D(n),s=o.P.sqrDistance(r,t);s<d?(x=1,g.assign(r),m=c.getStartPointIndex(),f=c.getPathIndex(),d=s):s===d&&x++}-1===m&&(0,r.a)("");const p=u(g,m,Math.sqrt(d));if(a)if(e.getGeometryType()!==r.G.enumPolygon){let n=!1;if(x>1){const r=l(e,t,m,f);n=0!==r&&3!==r}else c.resetToVertex(m,f),n=0!==l(c.nextSegment(),t);p.m_bRightSide=n}else n||0!==(0,i.g)(e,t,0)&&(p.m_bRightSide=!0);return p}pointGetNearestVertex(e,t){const n=e.getXY();return u(n,0,o.P.distance(n,t))}multiVertexGetNearestVertex(e,t){const n=e.getAttributeStreamRef(0),r=e.getPointCount();let s=-1;const i=new o.P;let a=Number.MAX_VALUE;const c=new o.P;for(let e=0;e<r;e++){n.queryPoint2D(2*e,c);const r=o.P.sqrDistance(c,t);r<a&&(i.assign(c),s=e,a=r)}return u(i,s,Math.sqrt(a))}pointGetNearestVertices(e,t,n,r){const s=[];if(0!==r){const r=n*n,i=e.getXY(),a=o.P.sqrDistance(i,t);a<=r&&s.push(u(i,0,Math.sqrt(a)))}return s}multiVertexGetNearestVertices(e,t,n,r){const s=[];if(0!==r){const i=e.getAttributeStreamRef(0),a=e.getPointCount();s.length=r+1;const c=n*n;for(let e=0;e<a;e++){const n=i.read(2*e),r=i.read(2*e+1),a=t.x-n,l=t.y-r,h=a*a+l*l;h<=c&&s.push(u(o.P.construct(n,r),e,Math.sqrt(h)))}s.sort((e,t)=>e.m_distance-t.m_distance)}return s.slice(0,r)}}},76061(e,t,n){n.d(t,{S:()=>s});var r=n(61691);class s extends r.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},5913(e,t,n){n.d(t,{e:()=>o,l:()=>a});var r=n(54945),s=n(78125);function o(e){return(0,s.toPoint)((0,r.g7)((0,s.fromGeometry)(e)),(0,s.getSpatialReference)(e))}const i=(0,r.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:o,executeMany:function(e){const t=e.map(s.fromGeometry),n=(0,s.getSpatialReference)(e);return(0,r.zo)(t).map(e=>(0,s.toPoint)(e,n))},supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},69397(e,t,n){n.d(t,{Qf:()=>u,Qh:()=>i,RS:()=>s,Ul:()=>m,i5:()=>g,lM:()=>o,qK:()=>l});var r=n(34275);const s=16;function o(e){if(!e)return 0;let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=a(e[n],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return u(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return c(e,8);let n=h;for(let r=0;r<t;r++)n+=a(e[r]);return n}(e);let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=a(e[n]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?i(e):l;case"string":return function(e){return 32+e.length}(e);case"number":return s;case"boolean":return 4;default:return 8}}function u(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+g:Array.isArray(t)?c(t,s):0:0),0)}function c(e,t){return h+e.length*t}const l=32,h=16,g=145,m=64},87992(e,t,n){n.d(t,{JR:()=>w,ME:()=>N,MY:()=>b,NO:()=>C,Nh:()=>S,V2:()=>_,_s:()=>R,e6:()=>X,gh:()=>M,tr:()=>Y,uX:()=>x});var r=n(5482),s=n(69397),o=n(16930),i=n(19419),a=n(60408),u=n(21325),c=n(513),l=n(50954),h=n(79567),g=n(52006),m=n(49663),f=n(46068),d=n(92722);class x{constructor({type:e,spatialReference:t,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:o,partCount:i,partOffsets:a,partFlags:u,segmentFlags:c,segmentIndices:l,segmentParams:h,segmentCountArc:g,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=o,this.partCount=i,this.partOffsets=a,this.partFlags=u,this.segmentFlags=c,this.segmentIndices=l,this.segmentParams=h,this.segmentCountArc=g,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:e,segmentCountArc:t,segmentCountBezier:n}=this;return e&&e-t-n}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?s.Ul+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){const{type:e,vertexCount:t,partCount:n,hasZ:r,hasM:s,segmentCountArc:o,segmentCountBezier:i}=this,a=_(e,t,n,r,s,this.hasCurves(),o,i);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:c,vertexM:l}=this;if(a.vertexXY.set(u.subarray(0,2*t),0),a.vertexZ?.set(c.subarray(0,t),0),a.vertexM?.set(l.subarray(0,t),0),this.isMultipart()){const{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,n+1)),a.partOffsets.set(e.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:e,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(n.subarray(0,t),0),a.segmentParams.set(r.subarray(0,s),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,u.aI)(this.spatialReference,e.spatialReference))return!1;if(this.vertexCount!==e.vertexCount||this.partCount!==e.partCount)return!1;if(this.hasZ!==e.hasZ||this.hasM!==e.hasM)return!1;if(this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;const n=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,n)=>Math.abs(e-n)>t||isNaN(e)!==isNaN(n);for(let t=0;t<this.vertexCount;++t)if(n(this.vertexXY[2*t],e.vertexXY[2*t])||n(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(n(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(n(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(n(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(e){this.geometry=e,this.value=new y(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(e){this.geometry=e,this.index=-1,this._readVertex=V(e),this._segments=new P(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class P{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===e.geometry.type,this.value=new v(e.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=V(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;const t=this.geometry.segmentParams;let n=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){const e=t[n++],r=t[n++],s=t[n++],o=t[n++];return{b:[this.end,[e,r],[s,o]]}}const r=t[n++],s=t[n++],o=t[n++],i=t[n++],a=t[n++],u=t[n++];n++,n++;const c=t[n++],l=t[n++];if(!Boolean(4&r)&&1===o)return{c:[this.end,[c,l]]};const h=2&r?0:1,g=1&r?0:1;return{a:[this.end,[a,u],h,g,i,s,o]}}}function C(e,t){const n={stack:[],error:void 0,hasError:!1};try{return t??=(0,i.Ie)(),(0,r.mS)(n,new E(e,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(t,function(e){let t;const{vertexCount:n,vertexXY:s,vertexZ:o,vertexM:a}=e,u=G(e);if(e.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new E(e,["vertexZ","vertexM"]),!1);const s=(0,i.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:n}of t.segments)(0,h.e)(s,e,n),e=(0,g.yP)(n)}const[o,a,c,l]=s;t={xmin:o,ymin:a,xmax:c,ymax:l,spatialReference:u}}catch(e){n.error=e,n.hasError=!0}finally{(0,r.hk)(n)}}else{let e,r,o,i;e=r=1/0,o=i=-1/0;for(let t=0;t<n;++t){const n=s[2*t],a=s[2*t+1];e=Math.min(e,n),o=Math.max(o,n),r=Math.min(r,a),i=Math.max(i,a)}t={xmin:e,ymin:r,xmax:o,ymax:i,spatialReference:u}}if(o){let e=1/0,n=-1/0;for(const t of o)e=Math.min(e,t),n=Math.max(n,t);t.zmin=e,t.zmax=n}if(a){let e=1/0,n=-1/0;for(const t of a)e=Math.min(e,t),n=Math.max(n,t);t.mmin=e,t.mmax=n}return t}(e)),t}catch(e){n.error=e,n.hasError=!0}finally{(0,r.hk)(n)}}function N(e){let t,n,r;if((0,a.fT)(e)){r="point";const{x:s,y:o,z:i,m:a}=e,u=[s,o];null!=i&&u.push(i),null!=a&&u.push(a),n=[[u]],t=1}else(0,a.U9)(e)?(r="multipoint",n=[e.points],t=e.points.length):(0,a.Rg)(e)?(r="polyline",n=e.curvePaths??e.paths,t=n.reduce((e,t)=>e+t.length,0)):(r="polygon",n=e.curveRings??e.rings,t=n.reduce((e,t)=>(0===t.length||(e+=t.length,A(t[0],(0,g.yP)(t.at(-1)))&&--e),e),0));const s=_(r,t,r.includes("point")?0:n.length,(0,a.Pv)(e),(0,a.W0)(e),(0,g.Ed)(e)),{hasZ:o,hasM:i,vertexXY:u,vertexZ:c,vertexM:l}=s;function h(e){u[2*f]=e[0],u[2*f+1]=e[1],o&&(c[f]=e[2]),i&&(l[f]=e[m]),++f}s.spatialReference=e.spatialReference??void 0;const m=s.hasZ?3:2;let f=0;if(!s.isMultipart()){if(!o&&!i){for(const[e,t]of n[0])u[2*f]=e,u[2*f+1]=t,++f;return s}for(const e of n[0])h(e);return s}const d="polygon"===r,{partOffsets:x}=s;let p=0;if(!(0,g.Ed)(e)){for(const e of n){if(x[p++]=f,0===e.length)continue;let t=e.length;if(d&&A(e[0],e.at(-1))&&--t,o||i)for(let n=0;n<t;++n)h(e[n]);else for(let n=0;n<t;++n){const[t,r]=e[n];u[2*f]=t,u[2*f+1]=r,++f}}return x[p]=f,s}function y(e){const t=P+e;if(t<=(s.segmentParams?.length??0))return;let n=t*O;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let P=0;for(const e of n){if(s.partOffsets[p++]=f,0===e.length)continue;const t=e[0];let n=t;for(let t=1;t<e.length;++t){const r=e[t];h(n);const o=f-1;(0,g.wY)(r)?(y(10),++s.segmentCountArc,P=R(n,r,s,o,P),n=r.a[0]):(0,g.DA)(r)?(y(10),++s.segmentCountArc,P=D(n,r,s,o,P),n=r.a[0]):(0,g.aO)(r)?(y(10),++s.segmentCountArc,P=X(n,r,s,o,P),n=r.c[0]):(0,g.n1)(r)?(y(4),++s.segmentCountBezier,P=Y(0,r,s,o,P),n=r.b[0]):n=r}d&&A(t,n)||h(n)}return s.partOffsets[p]=f,s}function M(e){const t=V(e),{vertexCount:n,partCount:r,hasZ:s,hasM:o}=e,i=G(e);if("point"===e.type){const[t,n]=e.vertexXY,r=e.vertexZ?.[0],s=e.vertexM?.[0];return{x:t,y:n,z:r,m:s,spatialReference:i}}let a=0;if("multipoint"===e.type){const e=[];for(;a<n;)e.push(t(a++));return{points:e,spatialReference:i,hasZ:s,hasM:o}}const u="polygon"===e.type;if(!e.hasCurves()){const n=new Array;for(let s=0;s<r;++s){const r=e.partOffsets[s+1],o=new Array;for(;a<r;)o.push(t(a++));u&&o.length>0&&o.push(o[0]),n.push(o)}return u?{rings:n,hasZ:s,hasM:o,spatialReference:i}:{paths:n,hasZ:s,hasM:o,spatialReference:i}}const c=new Array;for(const{segments:t,startVertex:n}of e.parts){const e=[n];for(const{curve:n}of t)e.push(n);c.push(e)}return u?{rings:[],curveRings:c,hasZ:s,hasM:o,spatialReference:i}:{paths:[],curvePaths:c,hasZ:s,hasM:o,spatialReference:i}}function S(e,{lengths:t,coords:n,hasZ:r,hasM:s},o){const i=e.includes("point")?0:t.length,a="polygon"===e,u="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?i:0);r??=!1,s??=!1;const c=_(e,u,i,r,s,!1,0,0);if(c.spatialReference=o??void 0,!c.isMultipart()){for(let e=0,t=0;e<u;++e)c.vertexXY[2*e]=n[t++],c.vertexXY[2*e+1]=n[t++],r&&(c.vertexZ[e]=n[t++]),s&&(c.vertexM[e]=n[t++]);return c}const l=2+Number(r)+Number(s);let h=0,g=0;c.partOffsets[0]=0;for(const e of t){const t=c.partOffsets[g],o=t+e-Number(a);c.partOffsets[++g]=o;for(let e=t;e<o;++e)c.vertexXY[2*e]=n[h++],c.vertexXY[2*e+1]=n[h++],r&&(c.vertexZ[e]=n[h++]),s&&(c.vertexM[e]=n[h++]);a&&(h+=l)}return c}function w({type:e,vertexCount:t,vertexXY:n,vertexZ:r,vertexM:s,partCount:o,partOffsets:i,hasZ:a,hasM:u}){const c=new d.A([],[],a,u);o=Math.max(o,1);const l="polygon"===e;let h=0;for(let e=0;e<o;++e){const o=i?.[e+1]??t,g=c.coords.length;for(let e=h;e<o;++e)c.coords.push(n[2*e],n[2*e+1]),a&&c.coords.push(r[e]),u&&c.coords.push(s[e]);if(l){const e=h;c.coords.push(n[2*e],n[2*e+1]),a&&c.coords.push(r[e]),u&&c.coords.push(s[e])}c.lengths.push((c.coords.length-g)/c.stride),h=o}return"point"===e&&(c.lengths.length=0),c}function b(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;const t=e.getText()||void 0,n=e.isCustomWkid()?0:e.getOldID();if(n<=0)return{wkt:t};let r=e.getLatestID();(r<=0||r===n)&&(r=void 0);const s=e.getVCS();if(null==s)return{wkid:n,latestWkid:r,wkt:t};const o=s.isCustomWkid()?0:s.getOldID();if(o<=0)return{wkt:t};let i=e.getLatestVerticalID();return(i<=0||i===o)&&(i=void 0),{wkid:n,wkt:t,latestWkid:r,vcsWkid:o,latestVcsWkid:i}}(e.getSpatialReference()),e=e.getGeometry()),new x({...e.toFlatGeometry(),spatialReference:t})}class E{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(const n of t)e[n]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function G({spatialReference:e}){return e instanceof o.A?e.toJSON():e}function V({vertexXY:e,vertexZ:t,vertexM:n}){return t?n?r=>[e[2*r],e[2*r+1],t[r],n[r]]:n=>[e[2*n],e[2*n+1],t[n]]:n?t=>[e[2*t],e[2*t+1],n[t]]:t=>[e[2*t],e[2*t+1]]}function A(e,t){return e.every((e,n)=>e===t[n])}function _(e,t,n,r,s,o,i,a){i??=0,a??=0;const u=new x({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:n,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:i,segmentCountBezier:a});let c=2*Float64Array.BYTES_PER_ELEMENT*t;r&&(c+=Float64Array.BYTES_PER_ELEMENT*t),s&&(c+=Float64Array.BYTES_PER_ELEMENT*t),u.isMultipart()&&(c+=(n+1)*Int32Array.BYTES_PER_ELEMENT,c+=(n+1)*Int8Array.BYTES_PER_ELEMENT),o&&(c+=t*Int8Array.BYTES_PER_ELEMENT,c+=t*Int32Array.BYTES_PER_ELEMENT,c+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(c);let h=0;return u.vertexXY=new Float64Array(l,h,2*t),h+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(l,h,t),h+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(l,h,t),h+=u.vertexM.byteLength),o&&(u.segmentParams=new Float64Array(l,h,u.segmentParamCount),h+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(l,h,t),u.segmentIndices.fill(I),h+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(l,h,n+1),h+=u.partOffsets.byteLength,u.partFlags=new Int8Array(l,h,n+1),h+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),o&&(u.segmentFlags=new Int8Array(l,h,t),u.segmentFlags.fill(1),h+=u.segmentFlags.byteLength),u}function R(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},o,i){n[o]=4,r[o]=i;const[a,[u,c],l,h,g,m,d]=t.a;let x=4;h||(x|=1),l||(x|=2);const p=(0,f.SW)(e,t),[y,P]=(0,f.Uk)(p,.5);return s[i++]=x,s[i++]=m,s[i++]=d,s[i++]=g,s[i++]=u,s[i++]=c,s[i++]=p.u2-p.u1,s[i++]=p.u1,s[i++]=y,s[i++]=P,i}function D(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},o,i){n[o]=4,r[o]=i;const a=(0,m.io)(e,t);return T(a,4,...(0,c.mq)(a,.5),s,i)}function X(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},o,i){return n[o]=4,r[o]=i,T((0,l.pM)(e,t),0,...t.c[1],s,i)}function T(e,t,n,r,s,o){const{cx:i,cy:a,thetaStart:u,thetaEnd:c,radius:l}=e;return u>c||(t|=1),Math.abs(c-u)<=Math.PI||(t|=2),s[o++]=t,s[o++]=l,s[o++]=1,s[o++]=0,s[o++]=i,s[o++]=a,s[o++]=c-u,s[o++]=u,s[o++]=n,s[o++]=r,o}function Y(e,{b:[t,[n,r],[s,o]]},{segmentFlags:i,segmentIndices:a,segmentParams:u},c,l){return i[c]=2,a[c]=l,u[l++]=n,u[l++]=r,u[l++]=s,u[l++]=o,l}const O=1.61803,I=-1},54945(e,t,n){n.d(t,{fz:()=>p,g7:()=>d,zo:()=>x});var r=n(76061),s=n(61691),o=n(55537),i=n(95213),a=n(88885),u=n(79187),c=n(83661),l=n(15756),h=n(57694),g=n(88194);class m extends s.G{m_inputGeoms;m_index=-1;m_progressTracker;m_progressCounter=0;progress_(){}tock(){return!0}getRank(){return 1}constructor(e,t){super(),this.m_progressTracker=t,this.m_inputGeoms=e}next(){const e=this.m_inputGeoms.next();return e?((0,o.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.labelPoint(e)):null}getGeometryID(){return this.m_index}labelPoint(e){if(null===e&&(0,o.a)("null pointer is not allowed"),e.getGeometryType()===o.G.enumPoint)return e;if(e.isEmpty())return new i.P({vd:e.getDescription()});switch(e.getGeometryType()){case o.G.enumPolygon:return this.labelPointPolygon(e);case o.G.enumPolyline:return this.labelPointPolyline(e);case o.G.enumMultiPoint:return this.labelPointMultiPoint(e);case o.G.enumEnvelope:return this.labelPointEnvelope(e);default:(0,o.a)("geometry is not supported")}}labelPointPolygon(e){const t=new u.Envelope2D;e.queryEnvelope(t);const n=(0,i.c)(null,t,!0).total();let r=null,s=e;if(e.hasNonLinearSegments()){const t=new a.P({copy:e}),i=(0,l.aw)(t,.25*n,n);(0,o.g)(i!==e),r=i,s=r}let m=0,f=0;for(let e=0,t=s.getPathCount();e<t;++e){const t=Math.abs(s.calculateRingArea2D(e));t>f&&(f=t,m=e)}const d=new c.P;if(Math.abs(f)<=2*n*n?d.setNAN():d.assign((0,h.a)(s,m)),Number.isNaN(d.x)){const e=new u.Envelope2D;return s.queryPathEnvelope(m,e),new i.P({pt:e.getCenter()})}if(s.getPointCount()<4)return new i.P({x:d.x,y:d.y});const x=c.P.getNAN(),p=[x.clone(),x.clone(),x.clone(),x.clone()],y=[Number.NaN,Number.NaN,Number.NaN,Number.NaN],P=[Number.NaN,Number.NaN,Number.NaN,Number.NaN];let v=!1,C=(new g.O).getNearestCoordinate(s,d,!0,!1);if(0===C.m_distance&&(v=!0,p[0]=d,C=(new g.O).getNearestCoordinate(s,d,!1,!1),C.m_distance>.25*t.minDimension()*1.66666666))return new i.P({x:d.x,y:d.y});y[0]=C.m_distance,P[0]=0;const N=new c.P;let M=!1,S=.25,w=-1;const b=new u.Envelope2D;s.queryPathEnvelope(m,b);do{let e=Number.NaN;if(p[1]=this.calculateParacentroid_(s,(0,c.r)(b.xmin,b.xmax,S),n),p[1].isNAN()||(C=(new g.O).getNearestCoordinate(s,p[1],!1,!1),e=C.m_distance),e>n&&1===(0,l.g)(s,p[1],n))M=!0,y[1]=e,P[1]=c.P.sqrDistance(p[1],d);else if(e>w&&(w=e,N.setCoordsPoint2D(p[1])),S-=.01,S<.1){if(!(w>=0))break;M=!0,y[1]=w,p[1]=N,P[1]=c.P.sqrDistance(p[1],d)}}while(!M);M=!1,S=.5,w=-1;let E=.01,G=1;do{let e=Number.NaN;if(p[2]=this.calculateParacentroid_(s,(0,c.r)(b.xmin,b.xmax,S),n),p[2].isNAN()||(C=(new g.O).getNearestCoordinate(s,p[2],!1,!1),e=C.m_distance),e>n&&1===(0,l.g)(s,p[2],n))M=!0,y[2]=e,P[2]=c.P.sqrDistance(p[2],d);else if(e>w&&(w=e,N.setCoordsPoint2D(p[2])),S=.5+E*G,E+=.01,G*=-1,S<.3||S>.7){if(!(w>=0))break;M=!0,y[2]=w,p[2]=N,P[2]=c.P.sqrDistance(p[2],d)}}while(!M);M=!1,S=.75,w=-1;do{let e=Number.NaN;if(p[3]=this.calculateParacentroid_(s,(0,c.r)(b.xmin,b.xmax,S),n),p[3].isNAN()||(C=(new g.O).getNearestCoordinate(s,p[3],!1,!1),e=C.m_distance),e>n&&1===(0,l.g)(s,p[3],n))M=!0,y[3]=e,P[3]=c.P.sqrDistance(p[3],d);else if(e>w&&(w=e,N.setCoordsPoint2D(p[3])),S+=.01,S>.9){if(!(w>=0))break;M=!0,y[3]=w,p[3]=N,P[3]=c.P.sqrDistance(p[3],d)}}while(!M);const V=[0,1,2,3],A=v?0:1;for(let e=A;e<4;e++)for(let e=A;e<3;e++){const t=P[e],n=P[e+1];if((0,c.u)(t,n)>0){const r=V[e];V[e]=V[e+1],V[e+1]=r,P[e]=n,P[e+1]=t}}let _=A,R=0,D=0;for(let e=A;e<4;e++){switch(e){case 0:D=2*y[V[e]];break;case 1:D=1.66666666*y[V[e]];break;case 2:D=1.33333333*y[V[e]];break;case 3:D=y[V[e]]}D>R&&(R=D,_=V[e])}return(0,o.g)(!p[_].isNAN()),new i.P({x:p[_].x,y:p[_].y})}labelPointPolyline(e){const t=new c.P;if(e.getPointCount()>2*e.getPathCount()){let n=-1,r=-Number.MAX_VALUE;for(let t=0,s=e.getPathCount();t<s;t++)if(e.getPathSize(t)>2){const s=e.calculatePathLength2D(t);s>r&&(r=s,n=t)}const s=e.getPathStart(n),o=e.getPathEnd(n),i=Math.trunc((s+o)/2);t.assign(e.getXY(i))}else{let n=-Number.MAX_VALUE;const r=e.querySegmentIterator();for(;r.nextPath();)if(r.hasNextSegment()){const e=r.nextSegment(),s=e.calculateLength2D();s>n&&(n=s,t.assign(e.getCoord2D(e.lengthToT(.5*s))))}}return new i.P({x:t.x,y:t.y})}labelPointMultiPoint(e){const t=new u.Envelope2D;e.queryEnvelope(t);const n=t.getCenter(),r=(new g.O).getNearestCoordinate(e,n,!1,!1).m_coordinate;return new i.P({x:r.x,y:r.y})}labelPointEnvelope(e){const t=e.getCenterXY();return new i.P({x:t.x,y:t.y})}calculateParacentroid_(e,t,n){const r=new u.Envelope2D;e.queryEnvelope(r);const s=new c.P(t,0);let i=Number.MAX_VALUE,l=Number.MAX_VALUE,h=!1,g=!1;const m=new a.L;m.setStartXYCoords(s.x,r.ymin-1),m.setEndXYCoords(s.x,r.ymax+1);const f=new u.Envelope2D,d=new c.P,x=new c.P,p=(0,c.m)(c.P,2),y=e.querySegmentIterator();for(;y.nextPath();)for(;y.hasNextSegment();){const e=y.nextSegment();if(e.queryEnvelope(f),(0,o.g)(e.isMonotoneQuickAndDirty()),d.setCoordsPoint2D(m.getStartXY()),x.setCoordsPoint2D(m.getEndXY()),0===f.clipLine(d,x))continue;if(1!==m.intersect(e,p,null,null,n))continue;const t=p[0].y;i>l?t<i&&(i=t,h=!0):t<l&&(l=t,g=!0)}return h&&g?s.y=(i+l)/2:s.setNAN(),s}}const f=new class{getOperatorType(){return 10203}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,t){return new m(e,t)}execute(e,t){return new m(null,t).labelPoint(e)}};function d(e){return f.execute(e,null)}function x(e){const t=f.executeMany(new r.S(e),null);return Array.from(t)}function p(){return f.supportsCurves()}},91421(e,t,n){n.d(t,{execute:()=>r.e}),n(54945),n(78125);var r=n(5913)},78125(e,t,n){n.r(t),n.d(t,{fromExtent:()=>x,fromGeometry:()=>d,fromMultipoint:()=>p,fromPoint:()=>y,fromPolygon:()=>P,fromPolyline:()=>v,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>N,getSpatialReference:()=>f,toExtent:()=>S,toGeometry:()=>M,toMultipoint:()=>w,toPoint:()=>b,toPolygon:()=>E,toPolyline:()=>G});var r=n(83661),s=n(55537),o=n(95213),i=n(88885),a=n(5443),u=n(48526),c=n(86738),l=n(39829),h=n(82799),g=(n(90293),n(83299));const m="_gxVersion";function f(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function d(e){switch(e.type){case"point":return y(e);case"multipoint":return p(e);case"polyline":return v(e);case"polygon":return P(e);case"extent":return x(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function x(e){if(!e.getCacheValue(m)){const t=new o.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(m,t)}return e.getCacheValue(m)}function p(e){if(!e.getCacheValue(m)){const t=new i.M,n=new o.P,r=e.points,s=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,o=r.length;e<o;e++){const o=r[e];n.setXYCoords(o[0],o[1]),a&&n.setZ(o[2]??0),s&&n.setM(o[u]??NaN),t.add(n)}e.setCacheValue(m,t)}return e.getCacheValue(m)}function y(e){if(!e.getCacheValue(m)){const t=new o.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(m,t)}return e.getCacheValue(m)}function P(e){if(!e.getCacheValue(m)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,o=(0,g.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(m,o)}return e.getCacheValue(m)}function v(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,o=(0,g.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(m,o)}return e.getCacheValue(m)}function C(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,o=(0,g.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(m,o)}return e.getCacheValue(m)}function N(e){return e.cache?(e.cache[m]??=(0,g.fromSpatialReference)(e),e.cache[m]):(0,g.fromSpatialReference)(e)}function M(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return b(e,t);case s.G.enumEnvelope:return S(e,t);case s.G.enumMultiPoint:return w(e,t);case s.G.enumPolyline:return G(e,t);case s.G.enumPolygon:return E(e,t)}return null}function S(e,t){if(e.isEmpty())return null;const n=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(2,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(1,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(m,e),n}function w(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),s=n.hasZ(),i=[],a=new o.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const c=new u.A({hasM:r,hasZ:s,points:i,spatialReference:t});return c.setCacheValue(m,e),c}function b(e,t){if(e instanceof r.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(m,e),n}function E(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({...(0,g.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(m,e),n}function G(e,t){if(e.isEmpty())return null;const n=h.A.fromJSON({...(0,g.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(m,e),n}},92722(e,t,n){n.d(t,{A:()=>s});var r=n(69397);class s{constructor(e=[],t=[],n=!1,r=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:e,coords:t,hasZ:n,hasM:r}){return new s(e,t,n||!1,r||!1)}static fromRect([e,t,n,r]){const o=n-e,i=r-t;return new s([5],[e,t,o,0,0,i,-o,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*t],o=this.coords[r*t+1];for(let i=1;i<n;i+=1){const n=r*(t+i),a=this.coords[n],u=this.coords[n+1];e+=-.5*(a-s)*(u+o),s=a,o=u}t+=n}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(t+s);e(this.coords[r],this.coords[r+1])}t+=r}}deltaDecode(){const e=this.clone(),{coords:t,lengths:n}=e;let r=0;const{stride:s}=this;for(const e of n){for(let n=1;n<e;n++){const e=s*(r+n);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}r+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:n,size:r}=this,o=this.coords.slice(0,r*n);return e?(e.set(o),new s(t,e,this.hasZ,this.hasM)):new s(t,Array.from(o),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const n=new Array(t*e);for(let t=0,r=0;t<n.length;t+=e)n[r++]=this.coords[t],n[r++]=this.coords[t+1];return new s(this.lengths,n,!1,!1)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[609,1948,6061],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(t,e,r){r.d(e,{JR:()=>S,ME:()=>E,MY:()=>P,NO:()=>M,Nh:()=>O,V2:()=>Y,_s:()=>b,e6:()=>I,gh:()=>_,tr:()=>X,uX:()=>p});var s=r(5482),n=r(69397),i=r(16930),a=r(19419),o=r(60408),h=r(21325),u=r(513),l=r(50954),g=r(79567),c=r(52006),m=r(49663),f=r(46068),x=r(92722);class p{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:l,segmentParams:g,segmentCountArc:c,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=l,this.segmentParams=g,this.segmentCountArc=c,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?n.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=Y(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:l}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(l.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,h.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new v(this):[][Symbol.iterator]()}}class v{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=F(t),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class y{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new C(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class C{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=F(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],h=e[r++];r++,r++;const u=e[r++],l=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,l]]};const g=2&s?0:1,c=1&s?0:1;return{a:[this.end,[o,h],g,c,a,n,i]}}}function M(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,s.mS)(r,new R(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:o}=t,h=A(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new R(t,["vertexZ","vertexM"]),!1);const n=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,g.e)(n,t,r),t=(0,c.yP)(r)}const[i,o,u,l]=n;e={xmin:i,ymin:o,xmax:u,ymax:l,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:h}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function E(t){let e,r,s;if((0,o.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),r=[[h]],e=1}else(0,o.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,o.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,Z(e[0],(0,c.yP)(e.at(-1)))&&--t),t),0));const n=Y(s,e,s.includes("point")?0:r.length,(0,o.Pv)(t),(0,o.W0)(t),(0,c.Ed)(t)),{hasZ:i,hasM:a,vertexXY:h,vertexZ:u,vertexM:l}=n;function g(t){h[2*f]=t[0],h[2*f+1]=t[1],i&&(u[f]=t[2]),a&&(l[f]=t[m]),++f}n.spatialReference=t.spatialReference??void 0;const m=n.hasZ?3:2;let f=0;if(!n.isMultipart()){if(!i&&!a){for(const[t,e]of r[0])h[2*f]=t,h[2*f+1]=e,++f;return n}for(const t of r[0])g(t);return n}const x="polygon"===s,{partOffsets:p}=n;let v=0;if(!(0,c.Ed)(t)){for(const t of r){if(p[v++]=f,0===t.length)continue;let e=t.length;if(x&&Z(t[0],t.at(-1))&&--e,i||a)for(let r=0;r<e;++r)g(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];h[2*f]=e,h[2*f+1]=s,++f}}return p[v]=f,n}function d(t){const e=y+t;if(e<=(n.segmentParams?.length??0))return;let r=e*k;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let y=0;for(const t of r){if(n.partOffsets[v++]=f,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];g(r);const i=f-1;(0,c.wY)(s)?(d(10),++n.segmentCountArc,y=b(r,s,n,i,y),r=s.a[0]):(0,c.DA)(s)?(d(10),++n.segmentCountArc,y=V(r,s,n,i,y),r=s.a[0]):(0,c.aO)(s)?(d(10),++n.segmentCountArc,y=I(r,s,n,i,y),r=s.c[0]):(0,c.n1)(s)?(d(4),++n.segmentCountBezier,y=X(0,s,n,i,y),r=s.b[0]):r=s}x&&Z(e,r)||g(r)}return n.partOffsets[v]=f,n}function _(t){const e=F(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=A(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function O(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const u=Y(t,h,a,s,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],s&&(u.vertexZ[t]=r[e++]),n&&(u.vertexM[t]=r[e++]);return u}const l=2+Number(s)+Number(n);let g=0,c=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[c],i=e+t-Number(o);u.partOffsets[++c]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[g++],u.vertexXY[2*t+1]=r[g++],s&&(u.vertexZ[t]=r[g++]),n&&(u.vertexM[t]=r[g++]);o&&(g+=l)}return u}function S({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new x.A([],[],o,h);i=Math.max(i,1);const l="polygon"===t;let g=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,c=u.coords.length;for(let t=g;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(l){const t=g;u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-c)/u.stride),g=i}return"point"===t&&(u.lengths.length=0),u}function P(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class R{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function A({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function F({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function Z(t,e){return t.every((t,r)=>t===e[r])}function Y(t,e,r,s,n,i,a,o){a??=0,o??=0;const h=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(u);let g=0;return h.vertexXY=new Float64Array(l,g,2*e),g+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(l,g,e),g+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(l,g,e),g+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(l,g,h.segmentParamCount),g+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(l,g,e),h.segmentIndices.fill(N),g+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(l,g,r+1),g+=h.partOffsets.byteLength,h.partFlags=new Int8Array(l,g,r+1),g+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(l,g,e),h.segmentFlags.fill(1),g+=h.segmentFlags.byteLength),h}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[h,u],l,g,c,m,x]=e.a;let p=4;g||(p|=1),l||(p|=2);const v=(0,f.SW)(t,e),[d,y]=(0,f.Uk)(v,.5);return n[a++]=p,n[a++]=m,n[a++]=x,n[a++]=c,n[a++]=h,n[a++]=u,n[a++]=v.u2-v.u1,n[a++]=v.u1,n[a++]=d,n[a++]=y,a}function V(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,m.io)(t,e);return w(o,4,...(0,u.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,w((0,l.pM)(t,e),0,...e.c[1],n,a)}function w(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:l}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=l,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function X(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,l){return a[u]=2,o[u]=l,h[l++]=r,h[l++]=s,h[l++]=n,h[l++]=i,l}const k=1.61803,N=-1},51508(t,e,r){r.r(e),r.d(e,{execute:()=>a});var s=r(15756),n=r(83299);const i=new s.x;function a(t,e){const r=(0,n.fromGeometry)(t);return i.execute(r.getGeometry(),(0,n.fromGeometryToGXGeometry)(e),r.getSpatialReference(),null)}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4575,6956],{69052(t,e,n){n.d(e,{hr:()=>s,ie:()=>l,uC:()=>a});var i=n(34727);class s{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return r(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,i.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+o(this.range,t-e,n)}minimalMonotonic(t,e,n){return r(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,i=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(i)?n:i}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function r(t,e,n,i,s=0,r=!1){return(i-=s)<e?i+=o(t,e-i):i>n&&(i-=o(t,i-n)),r&&i===n&&(i=e),i+s}function o(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const a=new s(0,2*Math.PI),l=(new s(-Math.PI,Math.PI),new s(0,360))},56512(t,e,n){function i(t){let e,n,i=[],s=!1;return function(...r){return s&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0}(r,i)||(n=t.apply(this,r),e=this,i=r,s=!0),n}}n.d(e,{B:()=>i})},31411(t,e,n){n.d(e,{GS:()=>R,gh:()=>A});var i=n(49186),s=n(56512),r=n(65864),o=n(4305),a=n(50954),l=n(52006),u=n(49663),c=n(46068),p=n(15507);const h=1e-6,d=[0,0];function f(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class m{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:n,maxSegmentsPerCurve:i,minSegmentsPerCurve:s}){const r=n*n,o=e*e,a=1/i,l=this.interpolate(0),u=this.interpolate(1);(0,p.kb)(this.curveStart,l)>h&&t.push(l),this.initialize(l,u);const c=1/s;for(let t=s-1;t>0;t--){const e=t*c;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===r||!isFinite(r)||(0,p.kb)(this.arcStart,this.arcEnd)<r)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,p.kb)(this.curveEnd,u)>h&&t.push([...this.curveEnd]),t}}class y extends m{constructor(t,e){const[n,i,s]=e.b;super(t,n),this._controlPointsStack=[],this._curveControlPoints=[i,s],this._arcControlPoints=[i,s],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:n,tStart:i,tEnd:s}=this,[r,o]=this._arcControlPoints,a=(t-i)/(s-i),l=(0,p.RS)([],e,r,a),u=(0,p.RS)(d,r,o,a),c=(0,p.RS)([],o,n,a),h=(0,p.RS)([],l,u,a),f=(0,p.RS)([],u,c,a),m=(0,p.RS)([],h,f,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([f,c]),this.tEndStack.push(t),this.arcEndStack.push(m),this._arcControlPoints[0]=l,this._arcControlPoints[1]=h,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:n}=this,[i,s]=this._curveControlPoints;return(0,o.B4)(e,i,s,n,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[n,i]=this._arcControlPoints;return Math.max((0,p.yE)(n,t,e),(0,p.yE)(i,t,e))}}class g extends m{constructor(t,e){const[n]=e.a;super(t,n),this._derivedEllipse=(0,c.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,c.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,p.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function v(t,e,n,{cx:i,cy:s,radius:r,thetaStart:o,thetaEnd:a,isInvalid:l},{maxDeviation:u,maxSegmentLength:c,maxSegmentsPerCurve:d,minSegmentsPerCurve:f}){if(l)return t.push([...n]),t;const m=2*r,y=[i+r*Math.cos(o),s+r*Math.sin(o)],g=[i+r*Math.cos(a),s+r*Math.sin(a)];(0,p.kb)(e,y)>h&&t.push(y);const v=Math.abs(a-o),S=c>0&&c<m?2*Math.asin(c/m):v,w=u>0&&u<=r?2*Math.acos(1-u/r):v,M=Math.min(S,w),x=Math.min(d,Math.max(f,Math.ceil(Math.abs(v/M)))),C=1/x;for(let e=1;e<x;e++){const n=e*C,l=o*(1-n)+a*n;t.push([i+r*Math.cos(l),s+r*Math.sin(l)])}return t.push(g),(0,p.kb)(n,g)>h&&t.push([...n]),t}function S(t,e,n,i){return new y(e,n).densify(t,i)}function w(t,e,n,i){const s=(0,a.pM)(e,n),[r]=n.c;return v(t,e,r,s,i)}function M(t,e,n,i){const s=(0,u.io)(e,n),[r]=n.a;return v(t,e,r,s,i)}function x(t,e,n,i){const[s,r,o,a,l,u,c]=n.a;return 0===u||0===c?(t.push([...s]),t):new g(e,n).densify(t,i)}function C(t,e,n,i){return(0,l.Xq)(n)?(t.push([...n]),t):(0,l.n1)(n)?S(t,e,n,i):(0,l.aO)(n)?w(t,e,n,i):(0,l.DA)(n)?M(t,e,n,i):x(t,e,n,i)}function R(t,e={}){if(!(0,l.Ed)(t))return t;const n=f(e),i=(0,l.FD)(t),s=[];for(const t of i){const e=[];for(let i=0;i<t.length-1;i++){const s=i+1,r=[...(0,l.yP)(t[i])];0===i&&e.push(r),C(e,r,t[s],n)}s.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:s,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:s,spatialReference:t.spatialReference}}const b=(0,s.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function A(t,e,s){const o=new Set(e);return await async function(t,e,s){let r=null;for(const o of t)if(o&&(0,l.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,l.V8)(o,e)){const t=o.spatialReference;if(!t)throw new i.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=k(t);if(s.has(e))o.spatialReference=s.get(e);else{r||(r=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6312)]).then(n.bind(n,78125)));const a=r.fromSpatialReference(t),l=a?.getTolerance();if(null==l)throw new i.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const u=o.spatialReference.clone();u.read({xyTolerance:l}),o.spatialReference=u,s.set(e,u)}}}(t,o,s),t.map(t=>{if(!t||!(0,l.Ed)(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const i=b(n);return(0,r.rS)(function(t,e,n){if(!(0,l.Ed)(t))return t;const i=new Set(e),s=f(n),r=(0,l.FD)(t),o=[];let a=!1;for(const t of r){const e=[];for(let n=0;n<t.length-1;n++){const r=n+1,o=[...(0,l.yP)(t[n])];0===n&&e.push(o);const u=t[r];(0,l.Xq)(u)?e.push([...u]):(0,l.n1)(u)&&!i.has("cubic-bezier")?S(e,o,u,s):(0,l.aO)(u)&&!i.has("circular-arc")?w(e,o,u,s):(0,l.DA)(u)&&!i.has("elliptic-arc")?M(e,o,u,s):(0,l.wY)(u)&&!i.has("elliptic-arc")?x(e,o,u,s):(e.push((0,l.tk)(u)),a=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:o}:{rings:o}}}(t,e,i))})}function k(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},17136(t,e,n){n.d(e,{Y_:()=>E,O7:()=>B,el:()=>k});var i=n(92602),s=n(69052),r=n(49186),o=n(53966),a=n(39829),l=n(82799),u=n(16930),c=n(80754),p=n(21325),h=n(28735),d=n(52006),f=n(31411),m=n(11254),y=n(60408),g=n(65864),v=n(2272),S=n(84952),w=n(92300);const M=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function x(t){return"polygon"===t[0].type}function C(t){return"polyline"===t[0].type}function R(t,e,n){const i=1e6;if(e){const e=(0,d.Ed)(t)?(0,f.GS)(t,{maxSegmentLength:i}):function(t,e){if(!(t instanceof l.A||t instanceof a.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw M().error(t),new r.A("internal:geometry",t)}const n=(0,c.r8)(t),i=[];for(const t of n){const n=[];i.push(n),n.push([t[0][0],t[0][1]]);for(let i=0;i<t.length-1;i++){const s=t[i][0],r=t[i][1],o=t[i+1][0],a=t[i+1][1],l=Math.sqrt((o-s)*(o-s)+(a-r)*(a-r)),u=(a-r)/l,c=(o-s)/l,p=l/e;if(p>1){for(let t=1;t<=p-1;t++){const i=t*e,o=c*i+s,a=u*i+r;n.push([o,a])}const t=(l+Math.floor(p-1)*e)/2,i=c*t+s,o=u*t+r;n.push([i,o])}n.push([o,a])}}return function(t){return"polygon"===t.type}(t)?new a.A({rings:i,spatialReference:t.spatialReference}):new l.A({paths:i,spatialReference:t.spatialReference})}(t,i);t=(0,h.ci)(e,!0)}return n&&(t=(0,c.kS)(t,n)),t}function b(t,e,n){if(Array.isArray(t)){const i=t[0];if(i>e){const n=(0,c.kd)(i,e);t[0]=i+n*(-2*e)}else if(i<n){const e=(0,c.kd)(i,n);t[0]=i+e*(-2*n)}}else{const i=t.x;if(i>e){const n=(0,c.kd)(i,e);t=t.clone().offset(n*(-2*e),0)}else if(i<n){const e=(0,c.kd)(i,n);t=t.clone().offset(e*(-2*n),0)}}return t}function A(t,e){let n=-1;for(let i=0;i<e.cutIndexes.length;i++){const s=e.cutIndexes[i],r=e.geometries[i],o=(0,c.r8)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some(n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const i=e[t][0];n=i>n?i:n}n=Number(n.toFixed(9));const i=-360*(0,c.kd)(n,180);for(let n=0;n<e.length;n++){const e=r.getPoint(t,n);r.setPoint(t,n,e.clone().offset(i,0))}return!0}})}if(s===n){if(x(t))for(const e of(0,c.r8)(r))t[s]=t[s].addRing(e);else if(C(t))for(const e of(0,c.r8)(r))t[s]=t[s].addPath(e)}else n=s,t[s]=r}return t}async function k(t,e,n){if(!Array.isArray(t))return k([t],e);e&&"string"!=typeof e&&M().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof e?e:e?.url??i.A.geometryServiceUrl;let r,o,u,d,f,x,C,B,Z=0;const E=[],j=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,o=(0,p.Vp)(r),u=r.isWebMercator,x=u?102100:4326,d=c.j7[x].maxX,f=c.j7[x].minX,C=c.j7[x].plus180Line,B=c.j7[x].minus180Line),o)if("mesh"===e.type)j.push(e);else if("point"===e.type)j.push(b(e.clone(),d,f));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>b(t,d,f)),j.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,o);j.push(t.rings?new a.A(t):t)}else if(e.extent){const t=e.extent,n=(0,c.kd)(t.xmin,f)*(2*d);let i=0===n?e.clone():(0,c.kS)(e.clone(),n);t.offset(n,0);let{xmin:s,xmax:r}=t;s=Number(s.toFixed(9)),r=Number(r.toFixed(9)),t.intersects(C)&&r!==d?(Z=r>Z?r:Z,i=R(i,u),E.push(i),j.push("cut")):t.intersects(B)&&s!==f?(Z=r*(2*d)>Z?r*(2*d):Z,i=R(i,u,360),E.push(i),j.push("cut")):j.push(i)}else j.push(e.clone());else j.push(e);else j.push(e);let P=(0,c.kd)(Z,d),T=-90;const _=P,F=new l.A;for(;P>0;){const t=360*P-180;F.addPath([[t,T],[t,-1*T]]),T*=-1,P--}if(E.length>0&&_>0){const e=A(E,await async function(t,e,n,i){const s=(0,v.Dl)(t),r=e[0].spatialReference,o={...i,responseType:"json",query:{...s.query,f:"json",sr:(0,p.YX)(r),target:JSON.stringify({geometryType:(0,y.$B)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,m.A)(s.path+"/cut",o),{cutIndexes:l,geometries:u=[]}=a.data;return{cutIndexes:l,geometries:u.map(t=>{const e=(0,g.rS)(t);return e.spatialReference=r,e})}}(s,E,F,n)),i=[],r=[];for(let n=0;n<j.length;n++){const s=j[n];if("cut"!==s)r.push(s);else{const s=e.shift(),o=t[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&s.rings.length>=o.rings.length?(i.push(s),r.push("simplify")):r.push(u?(0,h.Gh)(s):s)}}if(!i.length)return r;const o=await async function(t,e,n){const i="string"==typeof t?(0,S.An)(t):t,s=e[0].spatialReference,r=(0,y.$B)(e[0]),o={...n,query:{...i.query,f:"json",sr:(0,p.YX)(s),geometries:JSON.stringify((0,w.X)(e))}},{data:a}=await(0,m.A)(i.path+"/simplify",o);return(0,w.V)(a.geometries,r,s)}(s,i,n),a=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?a.push(e):a.push(u?(0,h.Gh)(o.shift()):o.shift())}return a}const D=[];for(let t=0;t<j.length;t++){const e=j[t];if("cut"!==e)D.push(e);else{const t=E.shift();D.push(!0===u?(0,h.Gh)(t):t)}}return D}function B(t,e,n){const i=(0,p.Vp)(n);if(null==i)return t;const[s,r]=i.valid,o=2*r;let a=0,l=0;e>r?a=Math.ceil(Math.abs(e-r)/o):e<s&&(a=-Math.ceil(Math.abs(e-s)/o)),t>r?l=Math.ceil(Math.abs(t-r)/o):t<s&&(l=-Math.ceil(Math.abs(t-s)/o));let u=t+(a-l)*o;const c=u-e;return c>r?u-=o:c<s&&(u+=o),u}function Z(t){const e=(0,p.Vp)(t);if(null==e)return null;const[n,i]=e.valid;return new s.hr(n,i)}const E=Z(u.A.WGS84);Z(u.A.WebMercator)},80754(t,e,n){n.d(e,{j7:()=>a,kS:()=>u,kd:()=>l,r8:()=>c});var i=n(82799),s=n(16930),r=n(60408),o=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function l(t,e){return Math.ceil((t-e)/(2*e))}function u(t,e){if((0,o.Ed)(t))for(const n of function(t){return(0,r.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,o.aO)(t)){const[n,i]=t.c;n[0]+=e,i[0]+=e;continue}if((0,o.FG)(t)){const[n,i]=t.a;n[0]+=e,i[0]+=e;continue}if((0,o.n1)(t)){const[n,i,s]=t.b;n[0]+=e,i[0]+=e,s[0]+=e;continue}t[0]+=e}for(const n of c(t))for(const t of n)t[0]+=e;return t}function c(t){return(0,r.Bi)(t)?t.rings:t.paths}},31464(t,e,n){n.d(e,{Cv:()=>f,Nk:()=>p,lK:()=>y});var i=n(4576),s=n(91218),r=n(21325),o=n(28735);const a=[0,0];function l(t,e){if(!e)return null;if("x"in e){const n={x:0,y:0};return[n.x,n.y]=t(e.x,e.y,a),null!=e.z&&(n.z=e.z),null!=e.m&&(n.m=e.m),n}if("xmin"in e){const n={xmin:0,ymin:0,xmax:0,ymax:0};return[n.xmin,n.ymin]=t(e.xmin,e.ymin,a),[n.xmax,n.ymax]=t(e.xmax,e.ymax,a),e.hasZ&&(n.zmin=e.zmin,n.zmax=e.zmax,n.hasZ=!0),e.hasM&&(n.mmin=e.mmin,n.mmax=e.mmax,n.hasM=!0),n}return"rings"in e?{rings:u(e.rings,t),hasM:e.hasM,hasZ:e.hasZ}:"paths"in e?{paths:u(e.paths,t),hasM:e.hasM,hasZ:e.hasZ}:"points"in e?{points:c(e.points,t),hasM:e.hasM,hasZ:e.hasZ}:null}function u(t,e){const n=[];for(const i of t)n.push(c(i,e));return n}function c(t,e){const n=[];for(const i of t){const t=e(i[0],i[1],[0,0]);n.push(t),i.length>2&&t.push(i[2]),i.length>3&&t.push(i[3])}return n}async function p(t,e){if(!t||!e)return;const n=Array.isArray(t)?t.map(t=>null!=t.geometry?t.geometry.spatialReference:null).filter(i.Ru):[t];await(0,s.initializeProjection)(n.map(t=>({source:t,dest:e})))}const h=l.bind(null,o.je),d=l.bind(null,o.tD);function f(t,e,n,i){if(!t)return null;if(n||(n=e,e=t.spatialReference),!(0,r.fn)(e)||!(0,r.fn)(n)||(0,r.aI)(e,n))return t;if((0,o.y7)(e,n)){const e=(0,r.K8)(n)?h(t):d(t);return e.spatialReference=n,e}return(0,s.projectMany)([t],e,n,i)[0]}const m=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(t,e,n,i){if(!t?.length||!e||!n||(0,r.aI)(e,n))return t;const s={geometries:t,inSpatialReference:e,outSpatialReference:n,options:i,resolve:Promise.withResolvers()};return this._jobs.push(s),this._timer??=setTimeout(this._process,10),s.resolve.promise}_process(){this._timer=null;const t=this._jobs.shift();if(!t)return;const{geometries:e,inSpatialReference:n,outSpatialReference:i,resolve:a,options:l}=t,u=e.filter(t=>null!=t);let c;c=(0,o.y7)(n,i)&&null==l?.extendedParams?(0,r.K8)(i)?u.map(h):u.map(d):(0,s.projectMany)(u,n,i,l);let p=0;const f=e.map(t=>null==t?null:c[p++]);a.resolve(f),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function y(t,e,n,i){return m.push(t,e,n,i)}},58727(t,e,n){n.d(e,{GC:()=>y,T2:()=>g,VY:()=>d,dO:()=>S,iJ:()=>m,v8:()=>f});var i=n(49186),s=n(66552),r=n(86211),o=n(91218),a=n(90634),l=n(60408),u=n(65864),c=n(17136),p=n(21325),h=n(31464);const d=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),f=Object.freeze({});async function m(t,e,n){const i=t.bin;return i.onField&&(i.onField=i.onField.trim()),i.onExpression?.value&&(i.onExpression.value=i.onExpression.value.trim()),i.splitBy&&(i.splitBy.value&&(i.splitBy.value=i.splitBy.value.trim()),i.splitBy.outAlias&&(i.splitBy.outAlias=i.splitBy.outAlias.trim())),i.stackBy&&(i.stackBy.value&&(i.stackBy.value=i.stackBy.value.trim()),i.stackBy.outAlias&&(i.stackBy.outAlias=i.stackBy.outAlias.trim())),"normalizationField"in i.parameters&&i.parameters.normalizationField&&(i.parameters.normalizationField=i.parameters.normalizationField.trim()),t.outStatistics?.length||(t.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:"frequency"}]),y(t,e,n)}async function y(t,e,n){const{outFields:i,orderByFields:s,groupByFieldsForStatistics:r,outStatistics:o}=t;if(i)for(let t=0;t<i.length;t++)i[t]=i[t].trim();if(s)for(let t=0;t<s.length;t++)s[t]=s[t].trim();if(r)for(let t=0;t<r.length;t++)r[t]=r[t].trim();if(o)for(let t=0;t<o.length;t++)o[t].onStatisticField&&(o[t].onStatisticField=o[t].onStatisticField.trim());return t.geometry&&!t.outSR&&(t.outSR=t.geometry.spatialReference),g(t,e,n)}async function g(t,e,s){if(!t)return null;let{where:o}=t;if(t.where=o=o?.trim(),(!o||/^1 *= *1$/.test(o)||e&&e===o)&&(t.where=null),!t.geometry)return t;let m=await async function(t){const{distance:e,units:s}=t,o=t.geometry;if(!e||"vertexAttributes"in o)return o;const a=o.spatialReference,u=s?d.fromJSON(s):(0,r.Ij)(a),c=a&&((0,p.EA)(a)||(0,p.K8)(a))?o:await(0,h.Nk)(a,p.KK).then(()=>(0,h.Cv)(o,p.KK)),f=await n.e(9159).then(n.bind(n,49159));await f.load();const m=f.execute(c,e||1,{unit:u})??void 0;if(!m||!(0,l.Bi)(m)||0===m.rings.length)throw new i.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return m}(t);if(t.distance=0,t.units=null,"esriSpatialRelEnvelopeIntersects"===t.spatialRel){const{spatialReference:e}=t.geometry;m=(0,a.HA)(m),m.spatialReference=e}if(m){await(0,h.Nk)(m.spatialReference,s),m=function(t,e){const n=t.spatialReference;return v(t,e)&&(0,l.ZC)(t)?{spatialReference:n,rings:[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]]}:t}(m,s);const e=(await(0,c.el)((0,u.rS)(m)))[0];if(null==e)throw f;const n="quantizationParameters"in t&&t.quantizationParameters?.tolerance||"maxAllowableOffset"in t&&t.maxAllowableOffset||0,i=n&&v(m,s)?{extendedParams:{densificationStep:8*n}}:void 0,r=e.toJSON(),o=(0,h.Cv)(r,r.spatialReference,s,i);if(!o)throw f;o.spatialReference=s,t.geometry=o}return t}function v(t,e){if(!t)return!1;const n=t.spatialReference;return((0,l.ZC)(t)||(0,l.Bi)(t)||(0,l.Rg)(t))&&!(0,p.aI)(n,e)&&!(0,o.canProjectWithoutEngine)(n,e)}function S(t,e){return null==t?null:"string"==typeof t?e?new Date(`1970-01-01T${t}Z`).getTime():new Date(t).getTime():t instanceof Date?t.getTime():t}},92300(t,e,n){n.d(e,{V:()=>o,X:()=>r});var i=n(60408),s=n(65864);function r(t){return{geometryType:(0,i.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function o(t,e,n){const i=(0,s.xD)(e);return t.map(t=>{const e=i.fromJSON(t);return e.spatialReference=n,e})}},14575(t,e,n){n.d(e,{default:()=>A});var i=n(5482),s=n(69540),r=n(66552),o=n(25482),a=n(53966),l=n(91429),u=n(56507),c=n(16930),p=n(65864),h=n(50498),d=n(58727),f=n(5834),m=n(41266),y=n(59977),g=n(11440),v=n(60909),S=n(58174),w=n(7562),M=n(79677),x=n(56400),C=n(93223);const R=new r.J({asc:"ascending",desc:"descending"}),b={base:m.A,key:"type",typeMap:{"auto-interval":f.A,date:y.A,"fixed-boundaries":g.A,"fixed-interval":v.A}};let A=class extends((0,s.OU)(o.o)){constructor(t){super(t),this.binParameters=null,this.binOrder="ascending",this.cacheHint=void 0,this.datumTransformation=null,this.defaultSpatialReference=null,this.distance=void 0,this.geometry=null,this.lowerBoundaryAlias=null,this.outSpatialReference=null,this.outStatistics=null,this.returnDistinctValues=null,this.spatialRelationship="intersects",this.timeExtent=null,this.upperBoundaryAlias=null,this.units=null,this.where="1=1"}set outTimeZone(t){this._set("outTimeZone",t),t&&!(0,x.wr)(t)&&a.A.getLogger(this).warn("#outTimeZone",`the parsed value '${t}' may not be a valid IANA time zone`)}};(0,i.Cg)([(0,l.MZ)({types:b,json:{name:"bin",write:!0}})],A.prototype,"binParameters",void 0),(0,i.Cg)([(0,C.e)(R)],A.prototype,"binOrder",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],A.prototype,"cacheHint",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],A.prototype,"datumTransformation",void 0),(0,i.Cg)([(0,l.MZ)({type:c.A,json:{name:"defaultSR",write:!0}})],A.prototype,"defaultSpatialReference",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:t>0})}}})],A.prototype,"distance",void 0),(0,i.Cg)([(0,l.MZ)({types:h.yR,json:{read:p.rS,write:!0}})],A.prototype,"geometry",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],A.prototype,"lowerBoundaryAlias",void 0),(0,i.Cg)([(0,l.MZ)({type:c.A,json:{name:"outSR",write:!0}})],A.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,l.MZ)({type:[w.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],A.prototype,"outStatistics",void 0),(0,i.Cg)([(0,l.MZ)({value:null,json:{name:"outTimeReference",read:{reader:t=>t.ianaTimeZone},write:{writer:(t,e,n)=>{t&&(e[n]={ianaTimeZone:t})}}}})],A.prototype,"outTimeZone",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{name:"returnAggIds",write:{overridePolicy:t=>({enabled:null!=t})}}})],A.prototype,"returnAggregateIds",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],A.prototype,"returnDistinctValues",void 0),(0,i.Cg)([(0,C.e)(S.x,{name:"spatialRel"})],A.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,l.MZ)({type:M.A,json:{write:!0}})],A.prototype,"timeExtent",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],A.prototype,"upperBoundaryAlias",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:d.VY.read,write:{writer:d.VY.write,overridePolicy(t){return{enabled:null!=t&&!!this.distance}}}}})],A.prototype,"units",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],A.prototype,"where",void 0),A=(0,i.Cg)([(0,l.$K)("esri.rest.support.AttributeBinsQuery")],A),A.from=(0,u.dp)(A)},5834(t,e,n){n.d(e,{A:()=>p});var i=n(5482),s=n(93637),r=n(91429),o=n(56507),a=n(41266),l=n(41366),u=n(93223);function c(t,e,n){(0,s.sM)(n,t instanceof Date?t.getTime():t,e)}let p=class extends((0,l.K)(a.A)){constructor(t){super(t),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,i.Cg)([(0,r.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],p.prototype,"numBins",void 0),(0,i.Cg)([(0,r.MZ)({json:{name:"parameters.end",write:{writer:c}}})],p.prototype,"end",void 0),(0,i.Cg)([(0,r.MZ)({json:{name:"parameters.start",write:{writer:c}}})],p.prototype,"start",void 0),(0,i.Cg)([(0,u.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],p.prototype,"type",void 0),p=(0,i.Cg)([(0,r.$K)("esri.rest.support.AutoIntervalBinParameters")],p),p.from=(0,o.dp)(p)},41266(t,e,n){n.d(e,{A:()=>m});var i=n(5482),s=n(69540),r=n(66552),o=n(25482),a=n(91429),l=n(56507),u=n(93223);const c=new r.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let p=class extends((0,s.OU)(o.o)){constructor(t){super(t),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"outAlias",write:!0}})],p.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:String})],p.prototype,"responseType",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"value",void 0),(0,i.Cg)([(0,u.e)(c)],p.prototype,"valueType",void 0),p=(0,i.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsGrouping")],p);const h=p;p.from=(0,l.dp)(p);const d=new r.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),f=new r.J({naturalLog:"natural-log",squareRoot:"square-root"});let m=class extends((0,s.OU)(o.o)){constructor(t){super(t),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],m.prototype,"expression",void 0),(0,i.Cg)([(0,u.e)(d,{name:"onExpression.valueType"})],m.prototype,"expressionValueType",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"onField",write:!0}})],m.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"firstDayOfWeek",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"hideUpperBound",void 0),(0,i.Cg)([(0,a.MZ)({type:h,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],m.prototype,"splitBy",void 0),(0,i.Cg)([(0,a.MZ)({type:h,json:{write:{target:{stackBy:{type:h},jsonStyle:{type:String}},writer:(t,e)=>{t&&(e.stackBy=t.toJSON(),null!=t.responseType&&(e.jsonStyle=t.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(t,e)=>h.fromJSON({...e.stackBy,responseType:e.jsonStyle})}}})],m.prototype,"stackBy",void 0),(0,i.Cg)([(0,u.e)(f)],m.prototype,"transformation",void 0),m=(0,i.Cg)([(0,a.$K)("esri.rest.support.BinParametersBase")],m)},59977(t,e,n){n.d(e,{A:()=>y});var i=n(5482),s=n(93637),r=n(91429),o=n(56507),a=n(41266),l=n(69540),u=n(25482),c=n(57231),p=n(93223);let h=class extends((0,l.OU)(u.o)){constructor(t){super(t),this.value=null,this.unit=null}};(0,i.Cg)([(0,r.MZ)({type:Number,json:{name:"number",write:!0}})],h.prototype,"value",void 0),(0,i.Cg)([(0,p.e)(c.g)],h.prototype,"unit",void 0),h=(0,i.Cg)([(0,r.$K)("esri.rest.support.DateBinTimeInterval")],h);const d=h;function f(t,e,n){(0,s.sM)(n,"string"==typeof t?t:t?.getTime(),e)}function m(t,e){const n=t.parameters[e];return n?"string"==typeof n?n:new Date(n):null}h.from=(0,o.dp)(h);let y=class extends a.A{constructor(t){super(t),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,i.Cg)([(0,r.MZ)({cast:t=>null!=t?"string"==typeof t?t:new Date(t):null,json:{name:"parameters.end",read:{reader:(t,e)=>m(e,"end")},write:{writer:f}}})],y.prototype,"end",void 0),(0,i.Cg)([(0,r.MZ)({type:d,json:{name:"parameters",write:!0}})],y.prototype,"interval",void 0),(0,i.Cg)([(0,r.MZ)({type:d,json:{name:"parameters.offset",write:!0}})],y.prototype,"offset",void 0),(0,i.Cg)([(0,r.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],y.prototype,"returnFullIntervalBin",void 0),(0,i.Cg)([(0,r.MZ)({cast:t=>null!=t?"string"==typeof t?t:new Date(t):null,json:{name:"parameters.start",read:{reader:(t,e)=>m(e,"start")},write:{writer:f}}})],y.prototype,"start",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],y.prototype,"snapToData",void 0),(0,i.Cg)([(0,p.e)({dateBin:"date"},{readOnly:!0})],y.prototype,"type",void 0),y=(0,i.Cg)([(0,r.$K)("esri.rest.support.DateBinParameters")],y),y.from=(0,o.dp)(y)},57231(t,e,n){n.d(e,{g:()=>i});const i=(0,n(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"})},11440(t,e,n){n.d(e,{A:()=>u});var i=n(5482),s=n(93637),r=n(91429),o=n(56507),a=n(41266),l=n(93223);let u=class extends a.A{constructor(t){super(t),this.boundaries=[],this.type="fixed-boundaries"}};(0,i.Cg)([(0,r.MZ)({json:{name:"parameters.boundaries",write:{writer:function(t,e,n){(0,s.sM)(n,t&&function(t){return t[0]instanceof Date}(t)?t.map(t=>t.getTime()):t,e)}}}})],u.prototype,"boundaries",void 0),(0,i.Cg)([(0,l.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,r.$K)("esri.rest.support.FixedBoundariesBinParameters")],u),u.from=(0,o.dp)(u)},60909(t,e,n){n.d(e,{A:()=>p});var i=n(5482),s=n(93637),r=n(91429),o=n(56507),a=n(41266),l=n(41366),u=n(93223);function c(t,e,n){(0,s.sM)(n,t instanceof Date?t.getTime():t,e)}let p=class extends((0,l.K)(a.A)){constructor(t){super(t),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,i.Cg)([(0,r.MZ)({json:{name:"parameters.end",write:{writer:c}}})],p.prototype,"end",void 0),(0,i.Cg)([(0,r.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],p.prototype,"interval",void 0),(0,i.Cg)([(0,r.MZ)({json:{name:"parameters.start",write:{writer:c}}})],p.prototype,"start",void 0),(0,i.Cg)([(0,u.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],p.prototype,"type",void 0),p=(0,i.Cg)([(0,r.$K)("esri.rest.support.FixedIntervalBinParameters")],p),p.from=(0,o.dp)(p)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4575,6956],{69052(t,e,n){n.d(e,{hr:()=>s,ie:()=>l,uC:()=>a});var i=n(34727);class s{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return r(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,i.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+o(this.range,t-e,n)}minimalMonotonic(t,e,n){return r(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,i=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(i)?n:i}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function r(t,e,n,i,s=0,r=!1){return(i-=s)<e?i+=o(t,e-i):i>n&&(i-=o(t,i-n)),r&&i===n&&(i=e),i+s}function o(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const a=new s(0,2*Math.PI),l=(new s(-Math.PI,Math.PI),new s(0,360))},56512(t,e,n){function i(t){let e,n,i=[],s=!1;return function(...r){return s&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0}(r,i)||(n=t.apply(this,r),e=this,i=r,s=!0),n}}n.d(e,{B:()=>i})},31411(t,e,n){n.d(e,{GS:()=>R,gh:()=>A});var i=n(49186),s=n(56512),r=n(65864),o=n(4305),a=n(50954),l=n(52006),u=n(49663),c=n(46068),p=n(15507);const h=1e-6,d=[0,0];function f(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class m{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:n,maxSegmentsPerCurve:i,minSegmentsPerCurve:s}){const r=n*n,o=e*e,a=1/i,l=this.interpolate(0),u=this.interpolate(1);(0,p.kb)(this.curveStart,l)>h&&t.push(l),this.initialize(l,u);const c=1/s;for(let t=s-1;t>0;t--){const e=t*c;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===r||!isFinite(r)||(0,p.kb)(this.arcStart,this.arcEnd)<r)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,p.kb)(this.curveEnd,u)>h&&t.push([...this.curveEnd]),t}}class y extends m{constructor(t,e){const[n,i,s]=e.b;super(t,n),this._controlPointsStack=[],this._curveControlPoints=[i,s],this._arcControlPoints=[i,s],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:n,tStart:i,tEnd:s}=this,[r,o]=this._arcControlPoints,a=(t-i)/(s-i),l=(0,p.RS)([],e,r,a),u=(0,p.RS)(d,r,o,a),c=(0,p.RS)([],o,n,a),h=(0,p.RS)([],l,u,a),f=(0,p.RS)([],u,c,a),m=(0,p.RS)([],h,f,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([f,c]),this.tEndStack.push(t),this.arcEndStack.push(m),this._arcControlPoints[0]=l,this._arcControlPoints[1]=h,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:n}=this,[i,s]=this._curveControlPoints;return(0,o.B4)(e,i,s,n,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[n,i]=this._arcControlPoints;return Math.max((0,p.yE)(n,t,e),(0,p.yE)(i,t,e))}}class g extends m{constructor(t,e){const[n]=e.a;super(t,n),this._derivedEllipse=(0,c.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,c.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,p.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function v(t,e,n,{cx:i,cy:s,radius:r,thetaStart:o,thetaEnd:a,isInvalid:l},{maxDeviation:u,maxSegmentLength:c,maxSegmentsPerCurve:d,minSegmentsPerCurve:f}){if(l)return t.push([...n]),t;const m=2*r,y=[i+r*Math.cos(o),s+r*Math.sin(o)],g=[i+r*Math.cos(a),s+r*Math.sin(a)];(0,p.kb)(e,y)>h&&t.push(y);const v=Math.abs(a-o),S=c>0&&c<m?2*Math.asin(c/m):v,w=u>0&&u<=r?2*Math.acos(1-u/r):v,M=Math.min(S,w),x=Math.min(d,Math.max(f,Math.ceil(Math.abs(v/M)))),C=1/x;for(let e=1;e<x;e++){const n=e*C,l=o*(1-n)+a*n;t.push([i+r*Math.cos(l),s+r*Math.sin(l)])}return t.push(g),(0,p.kb)(n,g)>h&&t.push([...n]),t}function S(t,e,n,i){return new y(e,n).densify(t,i)}function w(t,e,n,i){const s=(0,a.pM)(e,n),[r]=n.c;return v(t,e,r,s,i)}function M(t,e,n,i){const s=(0,u.io)(e,n),[r]=n.a;return v(t,e,r,s,i)}function x(t,e,n,i){const[s,r,o,a,l,u,c]=n.a;return 0===u||0===c?(t.push([...s]),t):new g(e,n).densify(t,i)}function C(t,e,n,i){return(0,l.Xq)(n)?(t.push([...n]),t):(0,l.n1)(n)?S(t,e,n,i):(0,l.aO)(n)?w(t,e,n,i):(0,l.DA)(n)?M(t,e,n,i):x(t,e,n,i)}function R(t,e={}){if(!(0,l.Ed)(t))return t;const n=f(e),i=(0,l.FD)(t),s=[];for(const t of i){const e=[];for(let i=0;i<t.length-1;i++){const s=i+1,r=[...(0,l.yP)(t[i])];0===i&&e.push(r),C(e,r,t[s],n)}s.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:s,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:s,spatialReference:t.spatialReference}}const b=(0,s.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function A(t,e,s){const o=new Set(e);return await async function(t,e,s){let r=null;for(const o of t)if(o&&(0,l.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,l.V8)(o,e)){const t=o.spatialReference;if(!t)throw new i.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=k(t);if(s.has(e))o.spatialReference=s.get(e);else{r||(r=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1550)]).then(n.bind(n,78125)));const a=r.fromSpatialReference(t),l=a?.getTolerance();if(null==l)throw new i.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const u=o.spatialReference.clone();u.read({xyTolerance:l}),o.spatialReference=u,s.set(e,u)}}}(t,o,s),t.map(t=>{if(!t||!(0,l.Ed)(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const i=b(n);return(0,r.rS)(function(t,e,n){if(!(0,l.Ed)(t))return t;const i=new Set(e),s=f(n),r=(0,l.FD)(t),o=[];let a=!1;for(const t of r){const e=[];for(let n=0;n<t.length-1;n++){const r=n+1,o=[...(0,l.yP)(t[n])];0===n&&e.push(o);const u=t[r];(0,l.Xq)(u)?e.push([...u]):(0,l.n1)(u)&&!i.has("cubic-bezier")?S(e,o,u,s):(0,l.aO)(u)&&!i.has("circular-arc")?w(e,o,u,s):(0,l.DA)(u)&&!i.has("elliptic-arc")?M(e,o,u,s):(0,l.wY)(u)&&!i.has("elliptic-arc")?x(e,o,u,s):(e.push((0,l.tk)(u)),a=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:o}:{rings:o}}}(t,e,i))})}function k(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},17136(t,e,n){n.d(e,{Y_:()=>E,O7:()=>B,el:()=>k});var i=n(92602),s=n(69052),r=n(49186),o=n(53966),a=n(39829),l=n(82799),u=n(16930),c=n(80754),p=n(21325),h=n(28735),d=n(52006),f=n(31411),m=n(11254),y=n(60408),g=n(65864),v=n(2272),S=n(84952),w=n(92300);const M=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function x(t){return"polygon"===t[0].type}function C(t){return"polyline"===t[0].type}function R(t,e,n){const i=1e6;if(e){const e=(0,d.Ed)(t)?(0,f.GS)(t,{maxSegmentLength:i}):function(t,e){if(!(t instanceof l.A||t instanceof a.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw M().error(t),new r.A("internal:geometry",t)}const n=(0,c.r8)(t),i=[];for(const t of n){const n=[];i.push(n),n.push([t[0][0],t[0][1]]);for(let i=0;i<t.length-1;i++){const s=t[i][0],r=t[i][1],o=t[i+1][0],a=t[i+1][1],l=Math.sqrt((o-s)*(o-s)+(a-r)*(a-r)),u=(a-r)/l,c=(o-s)/l,p=l/e;if(p>1){for(let t=1;t<=p-1;t++){const i=t*e,o=c*i+s,a=u*i+r;n.push([o,a])}const t=(l+Math.floor(p-1)*e)/2,i=c*t+s,o=u*t+r;n.push([i,o])}n.push([o,a])}}return function(t){return"polygon"===t.type}(t)?new a.A({rings:i,spatialReference:t.spatialReference}):new l.A({paths:i,spatialReference:t.spatialReference})}(t,i);t=(0,h.ci)(e,!0)}return n&&(t=(0,c.kS)(t,n)),t}function b(t,e,n){if(Array.isArray(t)){const i=t[0];if(i>e){const n=(0,c.kd)(i,e);t[0]=i+n*(-2*e)}else if(i<n){const e=(0,c.kd)(i,n);t[0]=i+e*(-2*n)}}else{const i=t.x;if(i>e){const n=(0,c.kd)(i,e);t=t.clone().offset(n*(-2*e),0)}else if(i<n){const e=(0,c.kd)(i,n);t=t.clone().offset(e*(-2*n),0)}}return t}function A(t,e){let n=-1;for(let i=0;i<e.cutIndexes.length;i++){const s=e.cutIndexes[i],r=e.geometries[i],o=(0,c.r8)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some(n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const i=e[t][0];n=i>n?i:n}n=Number(n.toFixed(9));const i=-360*(0,c.kd)(n,180);for(let n=0;n<e.length;n++){const e=r.getPoint(t,n);r.setPoint(t,n,e.clone().offset(i,0))}return!0}})}if(s===n){if(x(t))for(const e of(0,c.r8)(r))t[s]=t[s].addRing(e);else if(C(t))for(const e of(0,c.r8)(r))t[s]=t[s].addPath(e)}else n=s,t[s]=r}return t}async function k(t,e,n){if(!Array.isArray(t))return k([t],e);e&&"string"!=typeof e&&M().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof e?e:e?.url??i.A.geometryServiceUrl;let r,o,u,d,f,x,C,B,Z=0;const E=[],j=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,o=(0,p.Vp)(r),u=r.isWebMercator,x=u?102100:4326,d=c.j7[x].maxX,f=c.j7[x].minX,C=c.j7[x].plus180Line,B=c.j7[x].minus180Line),o)if("mesh"===e.type)j.push(e);else if("point"===e.type)j.push(b(e.clone(),d,f));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>b(t,d,f)),j.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,o);j.push(t.rings?new a.A(t):t)}else if(e.extent){const t=e.extent,n=(0,c.kd)(t.xmin,f)*(2*d);let i=0===n?e.clone():(0,c.kS)(e.clone(),n);t.offset(n,0);let{xmin:s,xmax:r}=t;s=Number(s.toFixed(9)),r=Number(r.toFixed(9)),t.intersects(C)&&r!==d?(Z=r>Z?r:Z,i=R(i,u),E.push(i),j.push("cut")):t.intersects(B)&&s!==f?(Z=r*(2*d)>Z?r*(2*d):Z,i=R(i,u,360),E.push(i),j.push("cut")):j.push(i)}else j.push(e.clone());else j.push(e);else j.push(e);let P=(0,c.kd)(Z,d),T=-90;const _=P,F=new l.A;for(;P>0;){const t=360*P-180;F.addPath([[t,T],[t,-1*T]]),T*=-1,P--}if(E.length>0&&_>0){const e=A(E,await async function(t,e,n,i){const s=(0,v.Dl)(t),r=e[0].spatialReference,o={...i,responseType:"json",query:{...s.query,f:"json",sr:(0,p.YX)(r),target:JSON.stringify({geometryType:(0,y.$B)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,m.A)(s.path+"/cut",o),{cutIndexes:l,geometries:u=[]}=a.data;return{cutIndexes:l,geometries:u.map(t=>{const e=(0,g.rS)(t);return e.spatialReference=r,e})}}(s,E,F,n)),i=[],r=[];for(let n=0;n<j.length;n++){const s=j[n];if("cut"!==s)r.push(s);else{const s=e.shift(),o=t[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&s.rings.length>=o.rings.length?(i.push(s),r.push("simplify")):r.push(u?(0,h.Gh)(s):s)}}if(!i.length)return r;const o=await async function(t,e,n){const i="string"==typeof t?(0,S.An)(t):t,s=e[0].spatialReference,r=(0,y.$B)(e[0]),o={...n,query:{...i.query,f:"json",sr:(0,p.YX)(s),geometries:JSON.stringify((0,w.X)(e))}},{data:a}=await(0,m.A)(i.path+"/simplify",o);return(0,w.V)(a.geometries,r,s)}(s,i,n),a=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?a.push(e):a.push(u?(0,h.Gh)(o.shift()):o.shift())}return a}const D=[];for(let t=0;t<j.length;t++){const e=j[t];if("cut"!==e)D.push(e);else{const t=E.shift();D.push(!0===u?(0,h.Gh)(t):t)}}return D}function B(t,e,n){const i=(0,p.Vp)(n);if(null==i)return t;const[s,r]=i.valid,o=2*r;let a=0,l=0;e>r?a=Math.ceil(Math.abs(e-r)/o):e<s&&(a=-Math.ceil(Math.abs(e-s)/o)),t>r?l=Math.ceil(Math.abs(t-r)/o):t<s&&(l=-Math.ceil(Math.abs(t-s)/o));let u=t+(a-l)*o;const c=u-e;return c>r?u-=o:c<s&&(u+=o),u}function Z(t){const e=(0,p.Vp)(t);if(null==e)return null;const[n,i]=e.valid;return new s.hr(n,i)}const E=Z(u.A.WGS84);Z(u.A.WebMercator)},80754(t,e,n){n.d(e,{j7:()=>a,kS:()=>u,kd:()=>l,r8:()=>c});var i=n(82799),s=n(16930),r=n(60408),o=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function l(t,e){return Math.ceil((t-e)/(2*e))}function u(t,e){if((0,o.Ed)(t))for(const n of function(t){return(0,r.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,o.aO)(t)){const[n,i]=t.c;n[0]+=e,i[0]+=e;continue}if((0,o.FG)(t)){const[n,i]=t.a;n[0]+=e,i[0]+=e;continue}if((0,o.n1)(t)){const[n,i,s]=t.b;n[0]+=e,i[0]+=e,s[0]+=e;continue}t[0]+=e}for(const n of c(t))for(const t of n)t[0]+=e;return t}function c(t){return(0,r.Bi)(t)?t.rings:t.paths}},31464(t,e,n){n.d(e,{Cv:()=>f,Nk:()=>p,lK:()=>y});var i=n(4576),s=n(91218),r=n(21325),o=n(28735);const a=[0,0];function l(t,e){if(!e)return null;if("x"in e){const n={x:0,y:0};return[n.x,n.y]=t(e.x,e.y,a),null!=e.z&&(n.z=e.z),null!=e.m&&(n.m=e.m),n}if("xmin"in e){const n={xmin:0,ymin:0,xmax:0,ymax:0};return[n.xmin,n.ymin]=t(e.xmin,e.ymin,a),[n.xmax,n.ymax]=t(e.xmax,e.ymax,a),e.hasZ&&(n.zmin=e.zmin,n.zmax=e.zmax,n.hasZ=!0),e.hasM&&(n.mmin=e.mmin,n.mmax=e.mmax,n.hasM=!0),n}return"rings"in e?{rings:u(e.rings,t),hasM:e.hasM,hasZ:e.hasZ}:"paths"in e?{paths:u(e.paths,t),hasM:e.hasM,hasZ:e.hasZ}:"points"in e?{points:c(e.points,t),hasM:e.hasM,hasZ:e.hasZ}:null}function u(t,e){const n=[];for(const i of t)n.push(c(i,e));return n}function c(t,e){const n=[];for(const i of t){const t=e(i[0],i[1],[0,0]);n.push(t),i.length>2&&t.push(i[2]),i.length>3&&t.push(i[3])}return n}async function p(t,e){if(!t||!e)return;const n=Array.isArray(t)?t.map(t=>null!=t.geometry?t.geometry.spatialReference:null).filter(i.Ru):[t];await(0,s.initializeProjection)(n.map(t=>({source:t,dest:e})))}const h=l.bind(null,o.je),d=l.bind(null,o.tD);function f(t,e,n,i){if(!t)return null;if(n||(n=e,e=t.spatialReference),!(0,r.fn)(e)||!(0,r.fn)(n)||(0,r.aI)(e,n))return t;if((0,o.y7)(e,n)){const e=(0,r.K8)(n)?h(t):d(t);return e.spatialReference=n,e}return(0,s.projectMany)([t],e,n,i)[0]}const m=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(t,e,n,i){if(!t?.length||!e||!n||(0,r.aI)(e,n))return t;const s={geometries:t,inSpatialReference:e,outSpatialReference:n,options:i,resolve:Promise.withResolvers()};return this._jobs.push(s),this._timer??=setTimeout(this._process,10),s.resolve.promise}_process(){this._timer=null;const t=this._jobs.shift();if(!t)return;const{geometries:e,inSpatialReference:n,outSpatialReference:i,resolve:a,options:l}=t,u=e.filter(t=>null!=t);let c;c=(0,o.y7)(n,i)&&null==l?.extendedParams?(0,r.K8)(i)?u.map(h):u.map(d):(0,s.projectMany)(u,n,i,l);let p=0;const f=e.map(t=>null==t?null:c[p++]);a.resolve(f),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function y(t,e,n,i){return m.push(t,e,n,i)}},58727(t,e,n){n.d(e,{GC:()=>y,T2:()=>g,VY:()=>d,dO:()=>S,iJ:()=>m,v8:()=>f});var i=n(49186),s=n(66552),r=n(86211),o=n(91218),a=n(90634),l=n(60408),u=n(65864),c=n(17136),p=n(21325),h=n(31464);const d=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),f=Object.freeze({});async function m(t,e,n){const i=t.bin;return i.onField&&(i.onField=i.onField.trim()),i.onExpression?.value&&(i.onExpression.value=i.onExpression.value.trim()),i.splitBy&&(i.splitBy.value&&(i.splitBy.value=i.splitBy.value.trim()),i.splitBy.outAlias&&(i.splitBy.outAlias=i.splitBy.outAlias.trim())),i.stackBy&&(i.stackBy.value&&(i.stackBy.value=i.stackBy.value.trim()),i.stackBy.outAlias&&(i.stackBy.outAlias=i.stackBy.outAlias.trim())),"normalizationField"in i.parameters&&i.parameters.normalizationField&&(i.parameters.normalizationField=i.parameters.normalizationField.trim()),t.outStatistics?.length||(t.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:"frequency"}]),y(t,e,n)}async function y(t,e,n){const{outFields:i,orderByFields:s,groupByFieldsForStatistics:r,outStatistics:o}=t;if(i)for(let t=0;t<i.length;t++)i[t]=i[t].trim();if(s)for(let t=0;t<s.length;t++)s[t]=s[t].trim();if(r)for(let t=0;t<r.length;t++)r[t]=r[t].trim();if(o)for(let t=0;t<o.length;t++)o[t].onStatisticField&&(o[t].onStatisticField=o[t].onStatisticField.trim());return t.geometry&&!t.outSR&&(t.outSR=t.geometry.spatialReference),g(t,e,n)}async function g(t,e,s){if(!t)return null;let{where:o}=t;if(t.where=o=o?.trim(),(!o||/^1 *= *1$/.test(o)||e&&e===o)&&(t.where=null),!t.geometry)return t;let m=await async function(t){const{distance:e,units:s}=t,o=t.geometry;if(!e||"vertexAttributes"in o)return o;const a=o.spatialReference,u=s?d.fromJSON(s):(0,r.Ij)(a),c=a&&((0,p.EA)(a)||(0,p.K8)(a))?o:await(0,h.Nk)(a,p.KK).then(()=>(0,h.Cv)(o,p.KK)),f=await n.e(9159).then(n.bind(n,49159));await f.load();const m=f.execute(c,e||1,{unit:u})??void 0;if(!m||!(0,l.Bi)(m)||0===m.rings.length)throw new i.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return m}(t);if(t.distance=0,t.units=null,"esriSpatialRelEnvelopeIntersects"===t.spatialRel){const{spatialReference:e}=t.geometry;m=(0,a.HA)(m),m.spatialReference=e}if(m){await(0,h.Nk)(m.spatialReference,s),m=function(t,e){const n=t.spatialReference;return v(t,e)&&(0,l.ZC)(t)?{spatialReference:n,rings:[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]]}:t}(m,s);const e=(await(0,c.el)((0,u.rS)(m)))[0];if(null==e)throw f;const n="quantizationParameters"in t&&t.quantizationParameters?.tolerance||"maxAllowableOffset"in t&&t.maxAllowableOffset||0,i=n&&v(m,s)?{extendedParams:{densificationStep:8*n}}:void 0,r=e.toJSON(),o=(0,h.Cv)(r,r.spatialReference,s,i);if(!o)throw f;o.spatialReference=s,t.geometry=o}return t}function v(t,e){if(!t)return!1;const n=t.spatialReference;return((0,l.ZC)(t)||(0,l.Bi)(t)||(0,l.Rg)(t))&&!(0,p.aI)(n,e)&&!(0,o.canProjectWithoutEngine)(n,e)}function S(t,e){return null==t?null:"string"==typeof t?e?new Date(`1970-01-01T${t}Z`).getTime():new Date(t).getTime():t instanceof Date?t.getTime():t}},92300(t,e,n){n.d(e,{V:()=>o,X:()=>r});var i=n(60408),s=n(65864);function r(t){return{geometryType:(0,i.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function o(t,e,n){const i=(0,s.xD)(e);return t.map(t=>{const e=i.fromJSON(t);return e.spatialReference=n,e})}},14575(t,e,n){n.d(e,{default:()=>A});var i=n(5482),s=n(69540),r=n(66552),o=n(25482),a=n(53966),l=n(91429),u=n(56507),c=n(16930),p=n(65864),h=n(50498),d=n(58727),f=n(5834),m=n(41266),y=n(59977),g=n(11440),v=n(60909),S=n(58174),w=n(7562),M=n(79677),x=n(56400),C=n(93223);const R=new r.J({asc:"ascending",desc:"descending"}),b={base:m.A,key:"type",typeMap:{"auto-interval":f.A,date:y.A,"fixed-boundaries":g.A,"fixed-interval":v.A}};let A=class extends((0,s.OU)(o.o)){constructor(t){super(t),this.binParameters=null,this.binOrder="ascending",this.cacheHint=void 0,this.datumTransformation=null,this.defaultSpatialReference=null,this.distance=void 0,this.geometry=null,this.lowerBoundaryAlias=null,this.outSpatialReference=null,this.outStatistics=null,this.returnDistinctValues=null,this.spatialRelationship="intersects",this.timeExtent=null,this.upperBoundaryAlias=null,this.units=null,this.where="1=1"}set outTimeZone(t){this._set("outTimeZone",t),t&&!(0,x.wr)(t)&&a.A.getLogger(this).warn("#outTimeZone",`the parsed value '${t}' may not be a valid IANA time zone`)}};(0,i.Cg)([(0,l.MZ)({types:b,json:{name:"bin",write:!0}})],A.prototype,"binParameters",void 0),(0,i.Cg)([(0,C.e)(R)],A.prototype,"binOrder",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],A.prototype,"cacheHint",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],A.prototype,"datumTransformation",void 0),(0,i.Cg)([(0,l.MZ)({type:c.A,json:{name:"defaultSR",write:!0}})],A.prototype,"defaultSpatialReference",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:t>0})}}})],A.prototype,"distance",void 0),(0,i.Cg)([(0,l.MZ)({types:h.yR,json:{read:p.rS,write:!0}})],A.prototype,"geometry",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],A.prototype,"lowerBoundaryAlias",void 0),(0,i.Cg)([(0,l.MZ)({type:c.A,json:{name:"outSR",write:!0}})],A.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,l.MZ)({type:[w.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],A.prototype,"outStatistics",void 0),(0,i.Cg)([(0,l.MZ)({value:null,json:{name:"outTimeReference",read:{reader:t=>t.ianaTimeZone},write:{writer:(t,e,n)=>{t&&(e[n]={ianaTimeZone:t})}}}})],A.prototype,"outTimeZone",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{name:"returnAggIds",write:{overridePolicy:t=>({enabled:null!=t})}}})],A.prototype,"returnAggregateIds",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],A.prototype,"returnDistinctValues",void 0),(0,i.Cg)([(0,C.e)(S.x,{name:"spatialRel"})],A.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,l.MZ)({type:M.A,json:{write:!0}})],A.prototype,"timeExtent",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],A.prototype,"upperBoundaryAlias",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:d.VY.read,write:{writer:d.VY.write,overridePolicy(t){return{enabled:null!=t&&!!this.distance}}}}})],A.prototype,"units",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],A.prototype,"where",void 0),A=(0,i.Cg)([(0,l.$K)("esri.rest.support.AttributeBinsQuery")],A),A.from=(0,u.dp)(A)},5834(t,e,n){n.d(e,{A:()=>p});var i=n(5482),s=n(93637),r=n(91429),o=n(56507),a=n(41266),l=n(41366),u=n(93223);function c(t,e,n){(0,s.sM)(n,t instanceof Date?t.getTime():t,e)}let p=class extends((0,l.K)(a.A)){constructor(t){super(t),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,i.Cg)([(0,r.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],p.prototype,"numBins",void 0),(0,i.Cg)([(0,r.MZ)({json:{name:"parameters.end",write:{writer:c}}})],p.prototype,"end",void 0),(0,i.Cg)([(0,r.MZ)({json:{name:"parameters.start",write:{writer:c}}})],p.prototype,"start",void 0),(0,i.Cg)([(0,u.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],p.prototype,"type",void 0),p=(0,i.Cg)([(0,r.$K)("esri.rest.support.AutoIntervalBinParameters")],p),p.from=(0,o.dp)(p)},41266(t,e,n){n.d(e,{A:()=>m});var i=n(5482),s=n(69540),r=n(66552),o=n(25482),a=n(91429),l=n(56507),u=n(93223);const c=new r.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let p=class extends((0,s.OU)(o.o)){constructor(t){super(t),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"outAlias",write:!0}})],p.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:String})],p.prototype,"responseType",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"value",void 0),(0,i.Cg)([(0,u.e)(c)],p.prototype,"valueType",void 0),p=(0,i.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsGrouping")],p);const h=p;p.from=(0,l.dp)(p);const d=new r.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),f=new r.J({naturalLog:"natural-log",squareRoot:"square-root"});let m=class extends((0,s.OU)(o.o)){constructor(t){super(t),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],m.prototype,"expression",void 0),(0,i.Cg)([(0,u.e)(d,{name:"onExpression.valueType"})],m.prototype,"expressionValueType",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"onField",write:!0}})],m.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"firstDayOfWeek",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"hideUpperBound",void 0),(0,i.Cg)([(0,a.MZ)({type:h,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],m.prototype,"splitBy",void 0),(0,i.Cg)([(0,a.MZ)({type:h,json:{write:{target:{stackBy:{type:h},jsonStyle:{type:String}},writer:(t,e)=>{t&&(e.stackBy=t.toJSON(),null!=t.responseType&&(e.jsonStyle=t.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(t,e)=>h.fromJSON({...e.stackBy,responseType:e.jsonStyle})}}})],m.prototype,"stackBy",void 0),(0,i.Cg)([(0,u.e)(f)],m.prototype,"transformation",void 0),m=(0,i.Cg)([(0,a.$K)("esri.rest.support.BinParametersBase")],m)},59977(t,e,n){n.d(e,{A:()=>y});var i=n(5482),s=n(93637),r=n(91429),o=n(56507),a=n(41266),l=n(69540),u=n(25482),c=n(57231),p=n(93223);let h=class extends((0,l.OU)(u.o)){constructor(t){super(t),this.value=null,this.unit=null}};(0,i.Cg)([(0,r.MZ)({type:Number,json:{name:"number",write:!0}})],h.prototype,"value",void 0),(0,i.Cg)([(0,p.e)(c.g)],h.prototype,"unit",void 0),h=(0,i.Cg)([(0,r.$K)("esri.rest.support.DateBinTimeInterval")],h);const d=h;function f(t,e,n){(0,s.sM)(n,"string"==typeof t?t:t?.getTime(),e)}function m(t,e){const n=t.parameters[e];return n?"string"==typeof n?n:new Date(n):null}h.from=(0,o.dp)(h);let y=class extends a.A{constructor(t){super(t),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,i.Cg)([(0,r.MZ)({cast:t=>null!=t?"string"==typeof t?t:new Date(t):null,json:{name:"parameters.end",read:{reader:(t,e)=>m(e,"end")},write:{writer:f}}})],y.prototype,"end",void 0),(0,i.Cg)([(0,r.MZ)({type:d,json:{name:"parameters",write:!0}})],y.prototype,"interval",void 0),(0,i.Cg)([(0,r.MZ)({type:d,json:{name:"parameters.offset",write:!0}})],y.prototype,"offset",void 0),(0,i.Cg)([(0,r.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],y.prototype,"returnFullIntervalBin",void 0),(0,i.Cg)([(0,r.MZ)({cast:t=>null!=t?"string"==typeof t?t:new Date(t):null,json:{name:"parameters.start",read:{reader:(t,e)=>m(e,"start")},write:{writer:f}}})],y.prototype,"start",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],y.prototype,"snapToData",void 0),(0,i.Cg)([(0,p.e)({dateBin:"date"},{readOnly:!0})],y.prototype,"type",void 0),y=(0,i.Cg)([(0,r.$K)("esri.rest.support.DateBinParameters")],y),y.from=(0,o.dp)(y)},57231(t,e,n){n.d(e,{g:()=>i});const i=(0,n(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"})},11440(t,e,n){n.d(e,{A:()=>u});var i=n(5482),s=n(93637),r=n(91429),o=n(56507),a=n(41266),l=n(93223);let u=class extends a.A{constructor(t){super(t),this.boundaries=[],this.type="fixed-boundaries"}};(0,i.Cg)([(0,r.MZ)({json:{name:"parameters.boundaries",write:{writer:function(t,e,n){(0,s.sM)(n,t&&function(t){return t[0]instanceof Date}(t)?t.map(t=>t.getTime()):t,e)}}}})],u.prototype,"boundaries",void 0),(0,i.Cg)([(0,l.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,r.$K)("esri.rest.support.FixedBoundariesBinParameters")],u),u.from=(0,o.dp)(u)},60909(t,e,n){n.d(e,{A:()=>p});var i=n(5482),s=n(93637),r=n(91429),o=n(56507),a=n(41266),l=n(41366),u=n(93223);function c(t,e,n){(0,s.sM)(n,t instanceof Date?t.getTime():t,e)}let p=class extends((0,l.K)(a.A)){constructor(t){super(t),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,i.Cg)([(0,r.MZ)({json:{name:"parameters.end",write:{writer:c}}})],p.prototype,"end",void 0),(0,i.Cg)([(0,r.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],p.prototype,"interval",void 0),(0,i.Cg)([(0,r.MZ)({json:{name:"parameters.start",write:{writer:c}}})],p.prototype,"start",void 0),(0,i.Cg)([(0,u.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],p.prototype,"type",void 0),p=(0,i.Cg)([(0,r.$K)("esri.rest.support.FixedIntervalBinParameters")],p),p.from=(0,o.dp)(p)}}]);
@@ -12,7 +12,7 @@ return textureGrad(tex, uvAtlas, dUVdx, dUVdy);
12
12
  vec4 textureLookup(sampler2D tex, vec2 uv) {
13
13
  return ${s?"textureAtlasLookup(tex, uv, vuvRegion)":"texture(tex, uv)"};
14
14
  }
15
- `)}},22911(t,e,r){r.d(e,{NL:()=>h});var n=r(34727),o=r(49255),i=r(99208),s=r(65261),a=r(40710),u=r(33079),c=r(28421),l=r(20304),f=r(31821),d=r(15976),m=r(63761),v=r(66211);function h(t,e){if(!(0,o._o)(e.output))return;t.fragment.include(s.C);const{emissionSource:r,hasEmissiveTextureTransform:h,bindType:p}=e,g=3===r||4===r||5===r;g&&(t.include(i.r,e),t.fragment.uniforms.add(1===p?new m.N("texEmission",t=>t.textureEmissive):new d.o("texEmission",t=>t.textureEmissive)));const y=2===r||g;y&&t.fragment.uniforms.add(1===p?new u.t("emissiveBaseColor",t=>t.emissiveBaseColor):new a.W("emissiveBaseColor",t=>t.emissiveBaseColor));const x=0!==r;if(x&&7!==r&&6!==r&&4!==r&&5!==r){const e=t=>(0,n.qE)(t??0,0,v.bS);t.fragment.uniforms.add(1===p?new l.m("emissiveStrength",t=>e(t.emissiveStrength)):new c.J("emissiveStrength",t=>e(t.emissiveStrength)))}const _=7===r,b=5===r,M=1===r||6===r||_;t.fragment.code.add(f.H`
15
+ `)}},22911(t,e,r){r.d(e,{NL:()=>h});var n=r(34727),o=r(49255),i=r(99208),s=r(65261),a=r(40710),u=r(33079),c=r(28421),l=r(20304),f=r(31821),d=r(15976),m=r(63761),v=r(66211);function h(t,e){if(!(0,o._o)(e.output))return;t.fragment.include(s.C);const{emissionSource:r,hasEmissiveTextureTransform:h,bindType:p}=e,g=3===r||4===r||5===r;g&&(t.include(i.r,e),t.fragment.uniforms.add(1===p?new m.N("texEmission",t=>t.textureEmissive):new d.o("texEmission",t=>t.textureEmissive)));const y=2===r||g;y&&t.fragment.uniforms.add(1===p?new u.t("emissiveBaseColor",t=>t.emissiveBaseColor):new a.W("emissiveBaseColor",t=>t.emissiveBaseColor));const x=0!==r;if(x&&7!==r&&6!==r&&4!==r&&5!==r){const e=t=>(0,n.qE)(t??0,0,v.mx);t.fragment.uniforms.add(1===p?new l.m("emissiveStrength",t=>e(t.emissiveStrength)):new c.J("emissiveStrength",t=>e(t.emissiveStrength)))}const _=7===r,b=5===r,M=1===r||6===r||_;t.fragment.code.add(f.H`
16
16
  vec4 getEmissions(vec3 symbolColor) {
17
17
  vec4 emissions = ${y?b?"emissiveSource == 0 ? vec4(emissiveBaseColor, 1.0): vec4(linearizeGamma(symbolColor), 1.0)":"vec4(emissiveBaseColor, 1.0)":M?_?"emissiveSource == 0 ? vec4(0.0): vec4(linearizeGamma(symbolColor), 1.0)":"vec4(linearizeGamma(symbolColor), 1.0)":"vec4(0.0)"};
18
18
  ${(0,f.If)(g,`${(0,f.If)(b,`if(emissiveSource == 0) {\n vec4 emissiveFromTex = textureLookup(texEmission, ${h?"emissiveUV":"vuv0"});\n emissions *= vec4(linearizeGamma(emissiveFromTex.rgb), emissiveFromTex.a);\n }`,`vec4 emissiveFromTex = textureLookup(texEmission, ${h?"emissiveUV":"vuv0"});\n emissions *= vec4(linearizeGamma(emissiveFromTex.rgb), emissiveFromTex.a);`)}\n emissions.a = emissions.rgb == vec3(0.0) ? 0.0: emissions.a;`)}
@@ -27,4 +27,4 @@ return vec4(delinearizeGamma(color.rgb), color.a);
27
27
  }
28
28
  vec3 linearizeGamma(vec3 color) {
29
29
  return pow(color, vec3(GAMMA));
30
- }`)}},40710(t,e,r){r.d(e,{W:()=>o});var n=r(74333);class o extends n.n{constructor(t,e,r){super(t,"vec3",2,(n,o,i,s)=>n.setUniform3fv(t,e(o,i,s),r))}}},33079(t,e,r){r.d(e,{t:()=>o});var n=r(74333);class o extends n.n{constructor(t,e,r){super(t,"vec3",1,(n,o,i)=>n.setUniform3fv(t,e(o,i),r))}}},28421(t,e,r){r.d(e,{J:()=>o});var n=r(74333);class o extends n.n{constructor(t,e,r){super(t,"float",2,(n,o,i)=>n.setUniform1f(t,e(o,i),r))}}},20304(t,e,r){r.d(e,{m:()=>o});var n=r(74333);class o extends n.n{constructor(t,e,r){super(t,"float",1,(n,o,i)=>n.setUniform1f(t,e(o,i),r))}}},15976(t,e,r){r.d(e,{o:()=>o});var n=r(74333);class o extends n.n{constructor(t,e,r){super(t,"sampler2D",2,(n,o,i)=>n.bindTexture(t,e(o,i),r?.(o,i)))}}},63761(t,e,r){r.d(e,{N:()=>o});var n=r(74333);class o extends n.n{constructor(t,e){super(t,"sampler2D",1,(r,n,o)=>r.bindTexture(t,e(n,o)))}}},31821(t,e,r){r.d(e,{H:()=>n,If:()=>o});const n=(t,...e)=>{let r="";for(let n=0;n<e.length;n++)r+=t[n]+e[n];return r+=t[t.length-1],r};function o(t,e,r=""){return t?e:r}n.int=t=>t.toFixed(),n.uint=t=>`${Math.max(0,t).toFixed()}u`,n.hexuint=t=>`0x${Math.round(Math.max(0,t)).toString(16)}u`,n.float=t=>t.toPrecision(8)},51976(t,e,r){r.d(e,{K:()=>a,W:()=>u});var n=r(49186),o=r(4576);class i{constructor(t){this._bits=[...t]}equals(t){return(0,o.aI)(this._bits,t.bits)}get code(){return this._code??=String.fromCharCode(...this._bits),this._code}get bits(){return this._bits}}var s=r(65786);class a extends s.Y{constructor(){super(),this._parameterBits=this._parameterBits?.map(()=>0)??[],this._parameterNames??=[]}get key(){return this._key??=new i(this._parameterBits),this._key}decode(t=this.key){const e=this._parameterBits;this._parameterBits=[...t.bits];const r=this._parameterNames.map(t=>` ${t}: ${this[t]}`).join("\n");return this._parameterBits=e,r}}function u(t={}){return(e,r)=>{e.hasOwnProperty("_parameterNames")||Object.defineProperty(e,"_parameterNames",{value:e._parameterNames?.slice()??[],configurable:!0,writable:!0}),e.hasOwnProperty("_parameterBits")||Object.defineProperty(e,"_parameterBits",{value:e._parameterBits?.slice()??[0],configurable:!0,writable:!0}),e._parameterNames.push(r);const o=t.count||2,i=Math.ceil(Math.log2(o)),s=e._parameterBits;let a=0;for(;s[a]+i>16;)a++,a>=s.length&&s.push(0);const u=s[a],c=(1<<i)-1<<u;s[a]+=i,t.count?Object.defineProperty(e,r,{get(){return(this._parameterBits[a]&c)>>u},set(e){const o=this._parameterBits[a];if((o&c)>>u!==e){if(this._key=null,this._parameterBits[a]=o&~c|+e<<u&c,"number"!=typeof e)throw new n.A("internal:invalid-shader-configuration",`Configuration value for ${r} must be a number, got ${typeof e}`);if(null==t.count)throw new n.A("internal:invalid-shader-configuration",`Configuration value for ${r} must provide a count option`)}}}):Object.defineProperty(e,r,{get(){return!!((this._parameterBits[a]&c)>>u)},set(t){const e=this._parameterBits[a];if(!!((e&c)>>u)!==t&&(this._key=null,this._parameterBits[a]=e&~c|+t<<u,"boolean"!=typeof t))throw new n.A("internal:invalid-shader-configurationx",`Configuration value for ${r} must be boolean, got ${typeof t}`)}})}}},66211(t,e,r){r.d(e,{Hp:()=>a,Tt:()=>i,bS:()=>s});var n=r(5482),o=r(51976);class i extends o.K{constructor(){super(...arguments),this.useFloatBlend=!0}}(0,n.Cg)([(0,o.W)()],i.prototype,"useFloatBlend",void 0);const s=16;function a(t,e){e.useFloatBlend?(t.constants.add("floatBlendOutputScale","float",1),t.constants.add("floatBlendInputScale","float",1)):(t.constants.add("floatBlendOutputScale","float",1/16),t.constants.add("floatBlendInputScale","float",16)),t.constants.add("maxEmissiveStrength","float",s)}},65786(t,e,r){r.d(e,{Y:()=>n});const n=class{};new n},74333(t,e,r){r.d(e,{n:()=>n});class n{constructor(t,e,r,n,o=null){if(this.name=t,this.type=e,this.arraySize=o,this.bind={0:null,1:null,2:null},n)switch(r){case void 0:break;case 0:this.bind[0]=n;break;case 1:this.bind[1]=n;break;case 2:this.bind[2]=n}}equals(t){return this.type===t.type&&this.name===t.name&&this.arraySize===t.arraySize}}}}]);
30
+ }`)}},40710(t,e,r){r.d(e,{W:()=>o});var n=r(74333);class o extends n.n{constructor(t,e,r){super(t,"vec3",2,(n,o,i,s)=>n.setUniform3fv(t,e(o,i,s),r))}}},33079(t,e,r){r.d(e,{t:()=>o});var n=r(74333);class o extends n.n{constructor(t,e,r){super(t,"vec3",1,(n,o,i)=>n.setUniform3fv(t,e(o,i),r))}}},28421(t,e,r){r.d(e,{J:()=>o});var n=r(74333);class o extends n.n{constructor(t,e,r){super(t,"float",2,(n,o,i)=>n.setUniform1f(t,e(o,i),r))}}},20304(t,e,r){r.d(e,{m:()=>o});var n=r(74333);class o extends n.n{constructor(t,e,r){super(t,"float",1,(n,o,i)=>n.setUniform1f(t,e(o,i),r))}}},15976(t,e,r){r.d(e,{o:()=>o});var n=r(74333);class o extends n.n{constructor(t,e,r){super(t,"sampler2D",2,(n,o,i)=>n.bindTexture(t,e(o,i),r?.(o,i)))}}},63761(t,e,r){r.d(e,{N:()=>o});var n=r(74333);class o extends n.n{constructor(t,e){super(t,"sampler2D",1,(r,n,o)=>r.bindTexture(t,e(n,o)))}}},31821(t,e,r){r.d(e,{H:()=>n,If:()=>o});const n=(t,...e)=>{let r="";for(let n=0;n<e.length;n++)r+=t[n]+e[n];return r+=t[t.length-1],r};function o(t,e,r=""){return t?e:r}n.int=t=>t.toFixed(),n.uint=t=>`${Math.max(0,t).toFixed()}u`,n.hexuint=t=>`0x${Math.round(Math.max(0,t)).toString(16)}u`,n.float=t=>t.toPrecision(8)},51976(t,e,r){r.d(e,{K:()=>a,W:()=>u});var n=r(49186),o=r(4576);class i{constructor(t){this._bits=[...t]}equals(t){return(0,o.aI)(this._bits,t.bits)}get code(){return this._code??=String.fromCharCode(...this._bits),this._code}get bits(){return this._bits}}var s=r(65786);class a extends s.Y{constructor(){super(),this._parameterBits=this._parameterBits?.map(()=>0)??[],this._parameterNames??=[]}get key(){return this._key??=new i(this._parameterBits),this._key}decode(t=this.key){const e=this._parameterBits;this._parameterBits=[...t.bits];const r=this._parameterNames.map(t=>` ${t}: ${this[t]}`).join("\n");return this._parameterBits=e,r}}function u(t={}){return(e,r)=>{e.hasOwnProperty("_parameterNames")||Object.defineProperty(e,"_parameterNames",{value:e._parameterNames?.slice()??[],configurable:!0,writable:!0}),e.hasOwnProperty("_parameterBits")||Object.defineProperty(e,"_parameterBits",{value:e._parameterBits?.slice()??[0],configurable:!0,writable:!0}),e._parameterNames.push(r);const o=t.count||2,i=Math.ceil(Math.log2(o)),s=e._parameterBits;let a=0;for(;s[a]+i>16;)a++,a>=s.length&&s.push(0);const u=s[a],c=(1<<i)-1<<u;s[a]+=i,t.count?Object.defineProperty(e,r,{get(){return(this._parameterBits[a]&c)>>u},set(e){const o=this._parameterBits[a];if((o&c)>>u!==e){if(this._key=null,this._parameterBits[a]=o&~c|+e<<u&c,"number"!=typeof e)throw new n.A("internal:invalid-shader-configuration",`Configuration value for ${r} must be a number, got ${typeof e}`);if(null==t.count)throw new n.A("internal:invalid-shader-configuration",`Configuration value for ${r} must provide a count option`)}}}):Object.defineProperty(e,r,{get(){return!!((this._parameterBits[a]&c)>>u)},set(t){const e=this._parameterBits[a];if(!!((e&c)>>u)!==t&&(this._key=null,this._parameterBits[a]=e&~c|+t<<u,"boolean"!=typeof t))throw new n.A("internal:invalid-shader-configurationx",`Configuration value for ${r} must be boolean, got ${typeof t}`)}})}}},66211(t,e,r){r.d(e,{Hp:()=>u,Tt:()=>i,mx:()=>s});var n=r(5482),o=r(51976);class i extends o.K{constructor(){super(...arguments),this.useFloatBlend=!0}}(0,n.Cg)([(0,o.W)()],i.prototype,"useFloatBlend",void 0);const s=16,a=s;function u(t,e){e.useFloatBlend?(t.constants.add("floatBlendOutputScale","float",1),t.constants.add("floatBlendInputScale","float",1)):(t.constants.add("floatBlendOutputScale","float",1/s),t.constants.add("floatBlendInputScale","float",s)),t.constants.add("maxEmissiveStrength","float",a)}},65786(t,e,r){r.d(e,{Y:()=>n});const n=class{};new n},74333(t,e,r){r.d(e,{n:()=>n});class n{constructor(t,e,r,n,o=null){if(this.name=t,this.type=e,this.arraySize=o,this.bind={0:null,1:null,2:null},n)switch(r){case void 0:break;case 0:this.bind[0]=n;break;case 1:this.bind[1]=n;break;case 2:this.bind[2]=n}}equals(t){return this.type===t.type&&this.name===t.name&&this.arraySize===t.arraySize}}}}]);