@arcgis/core 4.23.0-next.20220126 → 4.23.0-next.20220127

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 (247) hide show
  1. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/02fbc76dfdc20e628c61.js +1 -0
  4. package/assets/esri/core/workers/chunks/0317f37b6c8705b363fd.js +1 -0
  5. package/assets/esri/core/workers/chunks/0453fad5cb819797b4f6.js +1 -0
  6. package/assets/esri/core/workers/chunks/{97ec9eef0048760fa260.js → 0d02c6ad1f4688bfa374.js} +1 -1
  7. package/assets/esri/core/workers/chunks/0d684f16f37d5dc385dd.js +1 -0
  8. package/assets/esri/core/workers/chunks/0e17691520d890d34efb.js +1 -0
  9. package/assets/esri/core/workers/chunks/12c0cabb6c59e65d8546.js +1 -0
  10. package/assets/esri/core/workers/chunks/16b6d0f8378582c051c3.js +1 -0
  11. package/assets/esri/core/workers/chunks/{b313ab14a643273e7d09.js → 1877ab1b6a115dbba1c5.js} +1 -1
  12. package/assets/esri/core/workers/chunks/1b2a961f776a0b57e57a.js +1 -0
  13. package/assets/esri/core/workers/chunks/1b3fd66577b19aa5f2b6.js +1 -0
  14. package/assets/esri/core/workers/chunks/1f8c6a179e39fd4c5e6f.js +1 -0
  15. package/assets/esri/core/workers/chunks/2076fcbae63f1bfb7143.js +1 -0
  16. package/assets/esri/core/workers/chunks/281b89dbf5574fc642ae.js +1 -0
  17. package/assets/esri/core/workers/chunks/2c8fe9bc988c3c5760a5.js +1 -0
  18. package/assets/esri/core/workers/chunks/322d917e8cb398816a93.js +1 -0
  19. package/assets/esri/core/workers/chunks/34b59d7099904dcb28b5.js +1 -0
  20. package/assets/esri/core/workers/chunks/{e6165e17fbb07bfc40a1.js → 391e96192d1ec4e55ce2.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{23b15e7c2f96d260e16c.js → 392b6382e06652dd4c80.js} +1 -1
  22. package/assets/esri/core/workers/chunks/3aa73119b055e05bbbeb.js +1 -0
  23. package/assets/esri/core/workers/chunks/{c959e0d1cf7dce0421b9.js → 48fa8aed6c24877b44c4.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{438f0b5ae5c53ae4f06a.js → 4954fd86b48cc68b737c.js} +1 -1
  25. package/assets/esri/core/workers/chunks/4ba6de8aa7e2960bad49.js +1 -0
  26. package/assets/esri/core/workers/chunks/52ea678ba1da0e349919.js +1 -0
  27. package/assets/esri/core/workers/chunks/56274b37ff74ca0d68a6.js +1 -0
  28. package/assets/esri/core/workers/chunks/{b9c177524b3e7de1ffd1.js → 5790d171072b3c7d108f.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{5dfe1f8d520025e2118b.js → 57b349d1dbc0bed75b79.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{b2ebe4f6d100e15b512d.js → 5948923e07bd1662c24a.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{97a28641b3b2fd31bea2.js → 5bcb3240b3c005e5fe72.js} +1 -1
  32. package/assets/esri/core/workers/chunks/5dbe555a5a662ff3d9ce.js +1 -0
  33. package/assets/esri/core/workers/chunks/5ec98f4ddac707d0fbd1.js +1 -0
  34. package/assets/esri/core/workers/chunks/5ee497d5d7b0e580526a.js +1 -0
  35. package/assets/esri/core/workers/chunks/5f1dcb6556820cd0aa31.js +1 -0
  36. package/assets/esri/core/workers/chunks/64b7e8d812ea8fcf269e.js +1 -0
  37. package/assets/esri/core/workers/chunks/{b0b036ad3ad3cd956747.js → 69fd99b7c76e9992ccf3.js} +1 -1
  38. package/assets/esri/core/workers/chunks/6e6a3c5866e8d8820457.js +1 -0
  39. package/assets/esri/core/workers/chunks/75d812955a473d0e8960.js +1 -0
  40. package/assets/esri/core/workers/chunks/{cc146c57bbdac8029fd8.js → 7a5f5acfbd4ca1a5c1f3.js} +1 -1
  41. package/assets/esri/core/workers/chunks/8001b0e514bfffe9d7f8.js +1 -0
  42. package/assets/esri/core/workers/chunks/83b8fec1650e061aaa56.js +1 -0
  43. package/assets/esri/core/workers/chunks/83d00afae4406ec78bc9.js +1 -0
  44. package/assets/esri/core/workers/chunks/842db82733635dbf25cb.js +1 -0
  45. package/assets/esri/core/workers/chunks/{434b16731c6a81f868ef.js → 85b1f36790df95b17659.js} +1 -1
  46. package/assets/esri/core/workers/chunks/89820b200ee44e678af5.js +1 -0
  47. package/assets/esri/core/workers/chunks/{94b8dbf859df71858d1c.js → 929c9b7cdab7c4ca3d87.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{010a71c2aa1b7681e191.js → 9d11f84e6c893b9d0019.js} +1 -1
  49. package/assets/esri/core/workers/chunks/a1930e4f035bc9aa1ae5.js +1 -0
  50. package/assets/esri/core/workers/chunks/a8692bffb76444c34760.js +1 -0
  51. package/assets/esri/core/workers/chunks/{f760a3e030b0f358a92a.js → aeaa1667c2d9f1b3366b.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{a8b13fb804bb775e4967.js → b62e3dccd9f662c0afeb.js} +1 -1
  53. package/assets/esri/core/workers/chunks/b97953694f42bfec1b3c.js +1 -0
  54. package/assets/esri/core/workers/chunks/b9e9cb354822c6d995a4.js +1 -0
  55. package/assets/esri/core/workers/chunks/ba762bcfd74af0bb8218.js +1 -0
  56. package/assets/esri/core/workers/chunks/{e4b84ca8ddfd48dd79b1.js → bac9fc90e6756e211160.js} +1 -1
  57. package/assets/esri/core/workers/chunks/bf97a933ea3b220115e1.js +1 -0
  58. package/assets/esri/core/workers/chunks/bfedd6ebff817c9b31c0.js +1 -0
  59. package/assets/esri/core/workers/chunks/c093dff4592832ac0973.js +1 -0
  60. package/assets/esri/core/workers/chunks/c1135cb02ec46c491459.js +1 -0
  61. package/assets/esri/core/workers/chunks/{e4e2036373166c1d5cf5.js → c2253a9f29c1aabb2b75.js} +1 -1
  62. package/assets/esri/core/workers/chunks/c9cbf8135e95f0f42cd9.js +1 -0
  63. package/assets/esri/core/workers/chunks/d04fca5d46cca02500b7.js +1 -0
  64. package/assets/esri/core/workers/chunks/d07440469fe7d181c4fd.js +1 -0
  65. package/assets/esri/core/workers/chunks/d08efbc349dd9f999497.js +1 -0
  66. package/assets/esri/core/workers/chunks/d835b2a683fcd8aeeed8.js +1 -0
  67. package/assets/esri/core/workers/chunks/dbf192b4ce7e608610f6.js +1 -0
  68. package/assets/esri/core/workers/chunks/dd13772a5e2eccc6a2bc.js +1 -0
  69. package/assets/esri/core/workers/chunks/dedc333a61081772ca7b.js +1 -0
  70. package/assets/esri/core/workers/chunks/{22b09e276c9b9f22f0f8.js → dee9929d95e9fe26929c.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{6f50a9647f026a8d4729.js → e0c8d61c7a85ce15499a.js} +1 -1
  72. package/assets/esri/core/workers/chunks/e12d91ef44d6f879a02a.js +1 -0
  73. package/assets/esri/core/workers/chunks/{0ce1dc14280d6f188468.js → e4896cf85fb2da8a9cc7.js} +1 -1
  74. package/assets/esri/core/workers/chunks/e657ba0cab29f05d02da.js +1 -0
  75. package/assets/esri/core/workers/chunks/e8741bf421f80213f1d3.js +1 -0
  76. package/assets/esri/core/workers/chunks/e8e775758b79c5a084c8.js +1 -0
  77. package/assets/esri/core/workers/chunks/e93dfdede0532a89ffa5.js +1 -0
  78. package/assets/esri/core/workers/chunks/ea595b0df5050eda2a13.js +1 -0
  79. package/assets/esri/core/workers/chunks/{1305ef8717da6e902a55.js → ec10151a2a95e95a0bb5.js} +1 -1
  80. package/assets/esri/core/workers/chunks/eccba071ced2d922bb85.js +1 -0
  81. package/assets/esri/core/workers/chunks/f2124f4d0f2b8a91f0ea.js +1 -0
  82. package/assets/esri/core/workers/chunks/f9ff3eaf4eb324429fbd.js +1 -0
  83. package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
  84. package/assets/esri/themes/base/widgets/_Weather.scss +1 -1
  85. package/assets/esri/themes/dark/main.css +1 -1
  86. package/assets/esri/themes/dark-blue/main.css +1 -1
  87. package/assets/esri/themes/dark-green/main.css +1 -1
  88. package/assets/esri/themes/dark-purple/main.css +1 -1
  89. package/assets/esri/themes/dark-red/main.css +1 -1
  90. package/assets/esri/themes/light/main.css +1 -1
  91. package/assets/esri/themes/light/view.css +1 -1
  92. package/assets/esri/themes/light-blue/main.css +1 -1
  93. package/assets/esri/themes/light-green/main.css +1 -1
  94. package/assets/esri/themes/light-purple/main.css +1 -1
  95. package/assets/esri/themes/light-red/main.css +1 -1
  96. package/assets/esri/widgets/Weather/t9n/Weather.json +1 -1
  97. package/assets/esri/widgets/Weather/t9n/Weather_ar.json +1 -1
  98. package/assets/esri/widgets/Weather/t9n/Weather_bg.json +1 -1
  99. package/assets/esri/widgets/Weather/t9n/Weather_bs.json +1 -1
  100. package/assets/esri/widgets/Weather/t9n/Weather_ca.json +1 -1
  101. package/assets/esri/widgets/Weather/t9n/Weather_cs.json +1 -1
  102. package/assets/esri/widgets/Weather/t9n/Weather_da.json +1 -1
  103. package/assets/esri/widgets/Weather/t9n/Weather_de.json +1 -1
  104. package/assets/esri/widgets/Weather/t9n/Weather_el.json +1 -1
  105. package/assets/esri/widgets/Weather/t9n/Weather_en.json +1 -1
  106. package/assets/esri/widgets/Weather/t9n/Weather_es.json +1 -1
  107. package/assets/esri/widgets/Weather/t9n/Weather_et.json +1 -1
  108. package/assets/esri/widgets/Weather/t9n/Weather_fi.json +1 -1
  109. package/assets/esri/widgets/Weather/t9n/Weather_fr.json +1 -1
  110. package/assets/esri/widgets/Weather/t9n/Weather_he.json +1 -1
  111. package/assets/esri/widgets/Weather/t9n/Weather_hr.json +1 -1
  112. package/assets/esri/widgets/Weather/t9n/Weather_hu.json +1 -1
  113. package/assets/esri/widgets/Weather/t9n/Weather_id.json +1 -1
  114. package/assets/esri/widgets/Weather/t9n/Weather_it.json +1 -1
  115. package/assets/esri/widgets/Weather/t9n/Weather_ja.json +1 -1
  116. package/assets/esri/widgets/Weather/t9n/Weather_ko.json +1 -1
  117. package/assets/esri/widgets/Weather/t9n/Weather_lt.json +1 -1
  118. package/assets/esri/widgets/Weather/t9n/Weather_lv.json +1 -1
  119. package/assets/esri/widgets/Weather/t9n/Weather_nb.json +1 -1
  120. package/assets/esri/widgets/Weather/t9n/Weather_nl.json +1 -1
  121. package/assets/esri/widgets/Weather/t9n/Weather_pl.json +1 -1
  122. package/assets/esri/widgets/Weather/t9n/Weather_pt-BR.json +1 -1
  123. package/assets/esri/widgets/Weather/t9n/Weather_pt-PT.json +1 -1
  124. package/assets/esri/widgets/Weather/t9n/Weather_ro.json +1 -1
  125. package/assets/esri/widgets/Weather/t9n/Weather_ru.json +1 -1
  126. package/assets/esri/widgets/Weather/t9n/Weather_sk.json +1 -1
  127. package/assets/esri/widgets/Weather/t9n/Weather_sl.json +1 -1
  128. package/assets/esri/widgets/Weather/t9n/Weather_sr.json +1 -1
  129. package/assets/esri/widgets/Weather/t9n/Weather_sv.json +1 -1
  130. package/assets/esri/widgets/Weather/t9n/Weather_th.json +1 -1
  131. package/assets/esri/widgets/Weather/t9n/Weather_tr.json +1 -1
  132. package/assets/esri/widgets/Weather/t9n/Weather_uk.json +1 -1
  133. package/assets/esri/widgets/Weather/t9n/Weather_vi.json +1 -1
  134. package/assets/esri/widgets/Weather/t9n/Weather_zh-CN.json +1 -1
  135. package/assets/esri/widgets/Weather/t9n/Weather_zh-HK.json +1 -1
  136. package/assets/esri/widgets/Weather/t9n/Weather_zh-TW.json +1 -1
  137. package/chunks/Precipitation.glsl.js +91 -0
  138. package/chunks/vxlLayer.js +1 -1
  139. package/core/clock.js +1 -1
  140. package/core/jsonMap.js +1 -1
  141. package/core/promiseUtils.js +1 -1
  142. package/core/reactiveUtils.js +1 -1
  143. package/form/ExpressionInfo.js +1 -1
  144. package/interfaces.d.ts +28 -28
  145. package/package.json +1 -1
  146. package/rest/print.js +1 -1
  147. package/support/arcadeOnDemand.js +1 -1
  148. package/support/featureFlags.js +1 -1
  149. package/support/revision.js +1 -1
  150. package/views/2d/MapViewConstraints.js +1 -1
  151. package/views/2d/viewpointUtils.js +1 -1
  152. package/views/3d/environment/CloudsPresets.js +1 -1
  153. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  154. package/views/3d/environment/Precipitation.glsl.js +5 -0
  155. package/views/3d/environment/Precipitation.js +5 -0
  156. package/views/3d/environment/PrecipitationTechnique.js +5 -0
  157. package/views/3d/environment/RainyWeather.js +1 -1
  158. package/views/3d/environment/SnowyWeather.js +5 -0
  159. package/views/3d/environment/weather.js +1 -1
  160. package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
  161. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  162. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  163. package/views/3d/layers/GraphicsView3D.js +1 -1
  164. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  165. package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
  166. package/views/3d/support/sunUtils.js +1 -1
  167. package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
  168. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  169. package/views/MapView.js +1 -1
  170. package/views/View.js +1 -1
  171. package/views/input/recognizers/DoubleTapDrag.js +1 -1
  172. package/views/input/recognizers/ImmediateDoubleClick.js +1 -1
  173. package/views/input/recognizers/PointerClickHoldAndDrag.js +1 -1
  174. package/views/input/recognizers/SingleAndDoubleClick.js +1 -1
  175. package/views/support/DefaultsFromMap.js +1 -1
  176. package/views/support/projectionUtils.js +5 -0
  177. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
  178. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  179. package/widgets/BasemapGallery/support/BasemapGalleryItem.js +1 -1
  180. package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
  181. package/widgets/BasemapGallery.js +1 -1
  182. package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
  183. package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
  184. package/widgets/Slice/SliceViewModel.js +1 -1
  185. package/widgets/Weather/WeatherViewModel.js +1 -1
  186. package/widgets/Weather/css.js +1 -1
  187. package/widgets/Weather/enums.js +5 -0
  188. package/widgets/Weather.js +1 -1
  189. package/widgets/support/InteractiveToolViewModel.js +1 -1
  190. package/assets/esri/core/workers/chunks/00c5bb5eecb0e89266df.js +0 -1
  191. package/assets/esri/core/workers/chunks/021a37e2b191298e80b7.js +0 -1
  192. package/assets/esri/core/workers/chunks/1370c92c40fd6271553c.js +0 -1
  193. package/assets/esri/core/workers/chunks/14bef72154b3a19561a7.js +0 -1
  194. package/assets/esri/core/workers/chunks/18668dc45eb9e35530df.js +0 -1
  195. package/assets/esri/core/workers/chunks/1e4d37c2b9dc83d20a11.js +0 -1
  196. package/assets/esri/core/workers/chunks/1fbcc8424452d0256bd6.js +0 -1
  197. package/assets/esri/core/workers/chunks/208a7e24e19fc5633dd7.js +0 -1
  198. package/assets/esri/core/workers/chunks/25a3e9bc0b4c7e0d3165.js +0 -1
  199. package/assets/esri/core/workers/chunks/2792ca40f1e92849247c.js +0 -1
  200. package/assets/esri/core/workers/chunks/2a96f1bba9ce6883e5e0.js +0 -1
  201. package/assets/esri/core/workers/chunks/3231ee3e090bb4cac3fc.js +0 -1
  202. package/assets/esri/core/workers/chunks/36a3f6fb4d1d18fcb642.js +0 -1
  203. package/assets/esri/core/workers/chunks/36e250278b5622ccf068.js +0 -1
  204. package/assets/esri/core/workers/chunks/395ba088d4864588ff66.js +0 -1
  205. package/assets/esri/core/workers/chunks/3aa4194dc5497c57647f.js +0 -1
  206. package/assets/esri/core/workers/chunks/3cc77692b2eee27b9c9e.js +0 -1
  207. package/assets/esri/core/workers/chunks/40a1e713f63ec77110c0.js +0 -1
  208. package/assets/esri/core/workers/chunks/4385a268c2a64281d1c1.js +0 -1
  209. package/assets/esri/core/workers/chunks/46b4bb66a54bbd8e2e57.js +0 -1
  210. package/assets/esri/core/workers/chunks/4bfbf5a34c9207fdcf44.js +0 -1
  211. package/assets/esri/core/workers/chunks/5a4a5585ec8027079f32.js +0 -1
  212. package/assets/esri/core/workers/chunks/5d4863a92b03bebc1b54.js +0 -1
  213. package/assets/esri/core/workers/chunks/5d991b74d958005c26c4.js +0 -1
  214. package/assets/esri/core/workers/chunks/634b5ccd7a3ac67f855d.js +0 -1
  215. package/assets/esri/core/workers/chunks/662d13f68cf3ec92439b.js +0 -1
  216. package/assets/esri/core/workers/chunks/7bc5cc5dbf1b7b70ddac.js +0 -1
  217. package/assets/esri/core/workers/chunks/7d661129a0d8c466eeec.js +0 -1
  218. package/assets/esri/core/workers/chunks/8070972c0efb78523b68.js +0 -1
  219. package/assets/esri/core/workers/chunks/85e27fd949475f9a6bbc.js +0 -1
  220. package/assets/esri/core/workers/chunks/8b6ab6202a40fe622833.js +0 -1
  221. package/assets/esri/core/workers/chunks/96ab518eb6ba11333dee.js +0 -1
  222. package/assets/esri/core/workers/chunks/98986e6601b0366376b4.js +0 -1
  223. package/assets/esri/core/workers/chunks/9cdcf9309d6feda70185.js +0 -1
  224. package/assets/esri/core/workers/chunks/aa861b8eae6c85f3dad4.js +0 -1
  225. package/assets/esri/core/workers/chunks/aace7e1fef256bb961c9.js +0 -1
  226. package/assets/esri/core/workers/chunks/ad081d8e49e7f90c3c26.js +0 -1
  227. package/assets/esri/core/workers/chunks/af5694b4d278cf1db2d9.js +0 -1
  228. package/assets/esri/core/workers/chunks/afbb4f802ca5774f0326.js +0 -1
  229. package/assets/esri/core/workers/chunks/b2c5f92e3d7606297ca9.js +0 -1
  230. package/assets/esri/core/workers/chunks/b8316c6469a543029bc6.js +0 -1
  231. package/assets/esri/core/workers/chunks/ba615f118a3a8970ef25.js +0 -1
  232. package/assets/esri/core/workers/chunks/ba6654a885be4b7a43f0.js +0 -1
  233. package/assets/esri/core/workers/chunks/bf0a65b4be31959f921d.js +0 -1
  234. package/assets/esri/core/workers/chunks/c11474b702dfb94e8e87.js +0 -1
  235. package/assets/esri/core/workers/chunks/c890c7fca27170e3341f.js +0 -1
  236. package/assets/esri/core/workers/chunks/c976785f2391c77d8a30.js +0 -1
  237. package/assets/esri/core/workers/chunks/ca2f5faa01d99c21ec14.js +0 -1
  238. package/assets/esri/core/workers/chunks/cef4af64860ebbfc1c47.js +0 -1
  239. package/assets/esri/core/workers/chunks/cfbffa429d88e7709c3f.js +0 -1
  240. package/assets/esri/core/workers/chunks/d24c4fbc567486b1188f.js +0 -1
  241. package/assets/esri/core/workers/chunks/e4f93c55eaefab4192b5.js +0 -1
  242. package/assets/esri/core/workers/chunks/ec89466f76d0ba22525e.js +0 -1
  243. package/assets/esri/core/workers/chunks/ee45618c45806ab654cb.js +0 -1
  244. package/assets/esri/core/workers/chunks/f467c8f1fce22f6f599c.js +0 -1
  245. package/assets/esri/core/workers/chunks/f4baa5ea2e42b1317941.js +0 -1
  246. package/assets/esri/core/workers/chunks/face43cf5abcd2f5bd9d.js +0 -1
  247. package/assets/esri/core/workers/chunks/ffaf091c6023225cf5aa.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9101,6006],{78346:(e,t,r)=>{r.d(t,{bA:()=>T});var o=r(20102),s=r(80442),i=r(95330),n=r(80903),a=r(25045),l=r(40330),d=r(92604),u=r(94362),c=r(99880),p=r(68773),h=(r(2587),r(17452));const y={};function f(e){var t;const r={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages&&e.packages.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(r.async=!0),e.hasOwnProperty("isDebug")||(r.isDebug=!1),e.baseUrl||(r.baseUrl=y.baseUrl),null==(t=y.packages)||t.forEach((e=>{!function(e,t){for(const r of e)if(r.name===t.name)return;e.push(t)}(r.packages,e)})),r}var m=r(41213);class g{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...r)=>e[t](...r)}))}}class w{constructor(){this._dispatcher=new g,this._workerPostMessage({type:u.Cs.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,m.Y)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,m.Y)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,u.QM)(e);if(t&&t.type===u.Cs.OPEN){const{modulePath:e,jobId:r}=t;let o=await a.default.loadWorker(e);o||(o=await import(e));const s=a.default.connect(o);this._workerPostMessage({type:u.Cs.OPENED,jobId:r,data:s})}}}var b=r(70171),v=r(17202);const _=d.Z.getLogger("esri.core.workers"),{HANDSHAKE:C}=u.Cs;let k,j;const S="Failed to create Worker. Fallback to execute module in main thread";async function R(e){return new Promise((t=>{function r(s){const i=(0,u.QM)(s);i&&i.type===C&&(e.removeEventListener("message",r),e.removeEventListener("error",o),t(e))}function o(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",o),_.warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new w).addEventListener("message",r),e.addEventListener("error",o)}e.addEventListener("message",r),e.addEventListener("error",o)}))}let E=0;const M=d.Z.getLogger("esri.core.workers"),{ABORT:P,INVOKE:N,OPEN:x,OPENED:Z,RESPONSE:O}=u.Cs;class I{constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),M.error(e)}))}static async create(e){const t=await async function(){if(!(0,s.Z)("esri-workers")||((0,s.Z)("mozilla"),0))return R(new w);if(!k&&!j)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,buildDate:r,version:t}=configuration.kernelInfo,{revision:n,buildDate:i,version:s}=e.kernelInfo;o!==n&&console.warn(`[esri.core.workers] Version mismatch detected between ArcGIS API for JavaScript and assets:\\nAPI version: ${t} [Date: ${r}, Revision: ${o.slice(0,8)}]\nAssets version: ${s} [Date: ${i}, Revision: ${n.slice(0,8)}]`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let e;function t(o){const t=e.connect(o);self.postMessage({type:2,jobId:r,data:t},[t])}"function"==typeof define&&define.amd?require([workerPath],(r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((r=>(e=r.default,checkWorkerRevision(e),e.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),e=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(e),e.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const e=outgoing.get(r);outgoing.delete(r),o.error?e.reject(JSON.parse(o.error)):e.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.replace('"{CONFIGURATION}"',`'${function(){let e;if(null!=p.Z.default){const t={...p.Z};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(p.Z));e.assetsPath=(0,h.hF)(e.assetsPath),e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,b.Kd)(),e.has={"esri-csp-restrictions":(0,s.Z)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,s.Z)("esri-2d-update-debug"),"esri-2d-query-centroid-enabled":(0,s.Z)("esri-2d-query-centroid-enabled"),"featurelayer-pbf":(0,s.Z)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,s.Z)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,s.Z)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,s.Z)("featurelayer-simplify-mobile-factor"),"esri-atomics":(0,s.Z)("esri-atomics"),"esri-shared-array-buffer":(0,s.Z)("esri-shared-array-buffer"),"esri-tiles-debug":(0,s.Z)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,s.Z)("esri-workers-arraybuffer-transfer"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,h.hF)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,h.hF)(e.workers.workerPath):e.workers.workerPath=(0,h.hF)((0,c.V)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=p.Z.workers.loaderConfig,r=f({baseUrl:null==t?void 0:t.baseUrl,locale:(0,b.Kd)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...null==t?void 0:t.has},map:{...null==t?void 0:t.map},paths:{...null==t?void 0:t.paths},packages:(null==t?void 0:t.packages)||[]}),o={version:l.i8,buildDate:v.r,revision:v.$};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:o})}()}'`);k=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){j=e||{}}let e;if(k)try{e=new Worker(k,{name:"esri-worker-"+E++})}catch(t){_.warn(S,j),e=new w}else _.warn(S,j),e=new w;return R(e)}();return new I(t,e)}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,o=(0,u.jt)();return new Promise(((t,s)=>{const n={resolve:t,reject:s,abortHandle:(0,i.$F)(r,(()=>{this._outJobs.delete(o),this._post({type:P,jobId:o})}))};this._outJobs.set(o,n),this._post({type:x,jobId:o,modulePath:e})}))}_onMessage(e){const t=(0,u.QM)(e);if(t)switch(t.type){case Z:this._onOpenedMessage(t);break;case O:this._onResponseMessage(t);break;case P:this._onAbortMessage(t);break;case N:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,o=t.get(r);o&&(o.controller&&o.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:o,abortable:s}=e,n=s?new AbortController:null,a=this._inJobs,d=l.Nv[t];let c;try{if("function"!=typeof d)throw new TypeError(`${t} is not a function`);c=d.call(null,o,{signal:n?n.signal:null})}catch(e){return void this._post({type:O,jobId:r,error:(0,u.AB)(e)})}(0,i.y8)(c)?(a.set(r,{controller:n,promise:c}),c.then((e=>{a.has(r)&&(a.delete(r),this._post({type:O,jobId:r},e))}),(e=>{a.has(r)&&(a.delete(r),e||(e={message:"Error encountered at method"+t}),(0,i.D_)(e)||this._post({type:O,jobId:r,error:(0,u.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:O,jobId:r},c)}_onOpenedMessage(e){var t;const{jobId:r,data:o}=e,s=this._outJobs.get(r);s&&(this._outJobs.delete(r),null==(t=s.abortHandle)||t.remove(),s.resolve(o))}_onResponseMessage(e){var t;const{jobId:r,error:s,data:i}=e,n=this._outJobs.get(r);n&&(this._outJobs.delete(r),null==(t=n.abortHandle)||t.remove(),s?n.reject(o.Z.fromJSON(JSON.parse(s))):n.resolve(i))}_post(e,t,r){return(0,u.oi)(this.worker,e,t,r)}}let F=(0,s.Z)("esri-workers-debug")?1:(0,s.Z)("host-browser")?navigator.hardwareConcurrency-1:0;F||(F=(0,s.Z)("safari")&&(0,s.Z)("mac")||(0,s.Z)("trident")?7:2);let A=0;const L=[];async function B(e,t){const r=new n.Z;return await r.open(e,t),r}async function T(e,t={}){if("string"!=typeof e)throw new o.Z("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if((0,s.Z)("host-webworker")&&!(0,s.Z)("esri-workers")&&(r="local"),"local"===r){let r=await a.default.loadWorker(e);r||(r=await import(e)),(0,i.k_)(t.signal);const o=t.client||r;return B([a.default.connect(r)],{...t,client:o})}if(await async function(){if(U)return U;H=new AbortController;const e=[];for(let t=0;t<F;t++){const r=I.create(t).then((e=>(L[t]=e,e)));e.push(r)}return U=Promise.all(e),U}(),(0,i.k_)(t.signal),"dedicated"===r){const r=A++%F;return B([await L[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,F);if(r<F){const o=new Array(r);for(let s=0;s<r;++s){const r=A++%F;o[s]=L[r].open(e,t)}return B(o,t)}}return B(L.map((r=>r.open(e,t))),t)}let H,U=null},2587:(e,t,r)=>{r(90344),r(18848),r(940),r(70171);var o=r(94443),s=r(3172),i=r(20102),n=r(70586);async function a(e){if((0,n.pC)(l.fetchBundleAsset))return l.fetchBundleAsset(e);const t=await(0,s.default)(e,{responseType:"text"});return JSON.parse(t.data)}const l={};var d,u=r(99880);(0,o.tz)((d={pattern:"esri/",location:u.V},new class{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let o;o="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=o,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,s){const n=t.exec(r);if(!n)throw new i.Z("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const l=n[1]?`${n[1]}/`:"",d=n[2],u=(0,o.Su)(s),c=`${l}${d}.json`,p=u?`${l}${d}_${u}.json`:c;let h;try{h=await a(e(p))}catch(t){if(p===c)throw new i.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:t});try{h=await a(e(c))}catch(e){throw new i.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}}return h}(this.getAssetUrl,this.matcher,e,t)}}(d)))},94443:(e,t,r)=>{r.d(t,{ME:()=>h,Su:()=>y,tz:()=>p});var o=r(20102),s=r(95330),i=r(70171);const n=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,a={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){var t;return null!=(t=a[e])&&t}const d=[],u=new Map;function c(e){for(const t of u.keys())f(e.pattern,t)&&u.delete(t)}function p(e){return d.includes(e)||(c(e),d.unshift(e)),{remove(){const t=d.indexOf(e);t>-1&&(d.splice(t,1),c(e))}}}async function h(e){const t=(0,i.Kd)();u.has(e)||u.set(e,async function(e,t){const r=[];for(const o of d)if(f(o.pattern,e))try{return await o.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new o.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new o.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=u.get(e);return await m.add(r),r}function y(e){if(!n.test(e))return null;const[,t,r]=n.exec(e),o=t+(r?"-"+r.toUpperCase():"");return l(o)?o:l(t)?t:null}function f(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,i.Ze)((()=>{u.clear()}));const m=new class{constructor(){this._numLoading=0}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,s.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},940:(e,t,r)=>{r.d(t,{n:()=>d});var o=r(92604),s=r(78286),i=r(19153),n=r(90344),a=r(18848);const l=o.Z.getLogger("esri.intl");function d(e,t,r={}){const{format:o={}}=r;return(0,i.gx)(e,(e=>function(e,t,r){let o,i;const n=e.indexOf(":");if(-1===n?o=e.trim():(o=e.slice(0,n).trim(),i=e.slice(n+1).trim()),!o)return"";const a=(0,s.hS)(o,t);if(null==a)return"";const l=r[i]||r[o];return l?u(a,l):i?c(a,i):p(a)}(e,t,o)))}function u(e,t){switch(t.type){case"date":return(0,n.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),p(e)}}function c(e,t){switch(t.toLowerCase()){case"dateformat":return(0,n.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,n.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):p(e)}}function p(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,n.p6)(e):""}}},56545:(e,t,r)=>{r.d(t,{Z:()=>p});var o,s=r(43697),i=r(96674),n=r(22974),a=r(5600),l=r(75215),d=r(52011),u=r(30556);let c=o=class extends i.wq{constructor(e){super(e),this.attachmentTypes=null,this.attachmentsWhere=null,this.keywords=null,this.globalIds=null,this.name=null,this.num=null,this.objectIds=null,this.returnMetadata=!1,this.size=null,this.start=null,this.where=null}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new o((0,n.d9)({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,keywords:this.keywords,where:this.where,globalIds:this.globalIds,name:this.name,num:this.num,objectIds:this.objectIds,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))}};(0,s._)([(0,a.Cb)({type:[String],json:{write:!0}})],c.prototype,"attachmentTypes",void 0),(0,s._)([(0,a.Cb)({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],c.prototype,"attachmentsWhere",void 0),(0,s._)([(0,a.Cb)({type:[String],json:{write:!0}})],c.prototype,"keywords",void 0),(0,s._)([(0,a.Cb)({type:[Number],json:{write:!0}})],c.prototype,"globalIds",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],c.prototype,"name",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],c.prototype,"num",void 0),(0,s._)([(0,a.Cb)({type:[Number],json:{write:!0}})],c.prototype,"objectIds",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{default:!1,write:!0}})],c.prototype,"returnMetadata",void 0),(0,s._)([(0,a.Cb)({type:[Number],json:{write:!0}})],c.prototype,"size",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],c.prototype,"start",void 0),(0,s._)([(0,u.c)("start"),(0,u.c)("num")],c.prototype,"writeStart",null),(0,s._)([(0,a.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],c.prototype,"where",void 0),c=o=(0,s._)([(0,d.j)("esri.rest.support.AttachmentQuery")],c),c.from=(0,l.se)(c);const p=c},74889:(e,t,r)=>{r.r(t),r.d(t,{default:()=>v});var o,s=r(43697),i=r(66577),n=r(1692),a=r(35454),l=r(96674),d=r(22974),u=r(70586),c=r(5600),p=(r(75215),r(71715)),h=r(52011),y=r(30556),f=r(82971),m=r(33955),g=r(1231);const w=new a.Xn({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=o=class extends l.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=f.Z.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){const s=e[t],i=n.Z.fromJSON(s),a=s.geometry&&s.geometry.spatialReference;(0,u.pC)(i.geometry)&&!a&&(i.geometry.spatialReference=r),o.push(i)}return o}writeGeometryType(e,t,r,o){if(e)return void w.write(e,t,r,o);const{features:s}=this;if(s)for(const e of s)if(e&&(0,u.pC)(e.geometry))return void w.write(e.geometry.type,t,r,o)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,o=(0,m.im)(e);return!r&&t.spatialReference&&(o.spatialReference=f.Z.fromJSON(t.spatialReference)),o}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&(0,u.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new o(this.cloneProperties())}cloneProperties(){return(0,d.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const o=t.features[r];if(o.geometry){const t=e&&e[r];o.geometry=t&&t.toJSON()||o.geometry}}return t}quantize(e){const{scale:[t,r],translate:[o,s]}=e,i=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-o)/t)),(e=>Math.round((s-e)/r)));for(let e=0,t=i.length;e<t;e++)n((0,u.Wg)(i[e].geometry))||(i.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[o,s],scale:[i,n]}=r,a=this._getHydrationFunction(e,(e=>e*i+o),(e=>s-e*n));for(const{geometry:e}of t)(0,u.pC)(e)&&a(e);return this.transform=null,this}_quantizePoints(e,t,r){let o,s;const i=[];for(let n=0,a=e.length;n<a;n++){const a=e[n];if(n>0){const e=t(a[0]),n=r(a[1]);e===o&&n===s||(i.push([e-o,n-s]),o=e,s=n)}else o=t(a[0]),s=r(a[1]),i.push([o,s])}return i.length>0?i:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const o=(0,m.oU)(e)?e.rings:e.paths,s=[];for(let e=0,i=o.length;e<i;e++){const i=o[e],n=this._quantizePoints(i,t,r);n&&s.push(n)}return s.length>0?((0,m.oU)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const o=this._quantizePoints(e.points,t,r);return o.length>0?(e.points=o,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const o=(0,m.oU)(e)?e.rings:e.paths;let s,i;for(let e=0,n=o.length;e<n;e++){const n=o[e];for(let e=0,o=n.length;e<o;e++){const o=n[e];e>0?(s+=o[0],i+=o[1]):(s=o[0],i=o[1]),o[0]=t(s),o[1]=r(i)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const o=e.points;let s,i;for(let e=0,n=o.length;e<n;e++){const n=o[e];e>0?(s+=n[0],i+=n[1]):(s=n[0],i=n[1]),n[0]=t(s),n[1]=r(i)}}:void 0}};(0,s._)([(0,c.Cb)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,c.Cb)({type:[n.Z],json:{write:!0}})],b.prototype,"features",void 0),(0,s._)([(0,p.r)("features")],b.prototype,"readFeatures",null),(0,s._)([(0,c.Cb)({type:[g.Z],json:{write:!0}})],b.prototype,"fields",void 0),(0,s._)([(0,c.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:w.read}}})],b.prototype,"geometryType",void 0),(0,s._)([(0,y.c)("geometryType")],b.prototype,"writeGeometryType",null),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,s._)([(0,c.Cb)({types:i.qM,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,s._)([(0,p.r)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,s._)([(0,c.Cb)({type:f.Z,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,s._)([(0,y.c)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,s._)([(0,c.Cb)({json:{write:!0}})],b.prototype,"transform",void 0),b=o=(0,s._)([(0,h.j)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0;const v=b},75935:(e,t,r)=>{r.d(t,{Z:()=>y});var o,s=r(43697),i=(r(66577),r(96674)),n=r(22974),a=r(5600),l=r(75215),d=r(52011),u=r(30556),c=r(10158),p=r(82971);let h=o=class extends i.wq{constructor(e){super(e),this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new o((0,n.d9)({dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};(0,s._)([(0,a.Cb)({type:c.n,json:{write:!0}})],h.prototype,"dynamicDataSource",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"gdbVersion",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"geometryPrecision",void 0),(0,s._)([(0,a.Cb)({type:Date})],h.prototype,"historicMoment",void 0),(0,s._)([(0,u.c)("historicMoment")],h.prototype,"_writeHistoricMoment",null),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"maxAllowableOffset",void 0),(0,s._)([(0,a.Cb)({type:[Number],json:{write:!0}})],h.prototype,"objectIds",void 0),(0,s._)([(0,a.Cb)({type:[String],json:{write:!0}})],h.prototype,"orderByFields",void 0),(0,s._)([(0,a.Cb)({type:[String],json:{write:!0}})],h.prototype,"outFields",void 0),(0,s._)([(0,a.Cb)({type:p.Z,json:{read:{source:"outSR"},write:{target:"outSR"}}})],h.prototype,"outSpatialReference",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"relationshipId",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],h.prototype,"start",void 0),(0,s._)([(0,u.c)("start"),(0,u.c)("num")],h.prototype,"writeStart",null),(0,s._)([(0,a.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],h.prototype,"num",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"returnGeometry",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],h.prototype,"returnM",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],h.prototype,"returnZ",void 0),(0,s._)([(0,a.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],h.prototype,"where",void 0),h=o=(0,s._)([(0,d.j)("esri.rest.support.RelationshipQuery")],h),h.from=(0,l.se)(h);const y=h},28141:(e,t,r)=>{r.d(t,{Z:()=>C});var o,s=r(43697),i=r(66577),n=r(92835),a=r(35454),l=r(96674),d=r(22974),u=r(5600),c=r(75215),p=r(52011),h=r(30556),y=r(33955);r(67676),r(80442);let f=o=class extends l.wq{constructor(e){super(e),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new o({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,s._)([(0,u.Cb)({type:[String],json:{write:!0}})],f.prototype,"groupByFields",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{write:!0}})],f.prototype,"topCount",void 0),(0,s._)([(0,u.Cb)({type:[String],json:{write:!0}})],f.prototype,"orderByFields",void 0),f=o=(0,s._)([(0,p.j)("esri.rest.support.TopFilter")],f);const m=f;var g,w=r(82971);const b=new a.Xn({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),v=new a.Xn({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let _=g=class extends l.wq{constructor(e){super(e),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new g((0,d.d9)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,s._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],_.prototype,"cacheHint",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],_.prototype,"distance",void 0),(0,s._)([(0,u.Cb)({types:i.qM,json:{read:y.im,write:!0}})],_.prototype,"geometry",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{write:!0}})],_.prototype,"geometryPrecision",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{write:!0}})],_.prototype,"maxAllowableOffset",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],_.prototype,"num",void 0),(0,s._)([(0,u.Cb)({json:{write:!0}})],_.prototype,"objectIds",void 0),(0,s._)([(0,u.Cb)({type:[String],json:{write:!0}})],_.prototype,"orderByFields",void 0),(0,s._)([(0,u.Cb)({type:[String],json:{write:!0}})],_.prototype,"outFields",void 0),(0,s._)([(0,u.Cb)({type:w.Z,json:{read:{source:"outSR"},write:{target:"outSR"}}})],_.prototype,"outSpatialReference",void 0),(0,s._)([(0,u.Cb)({type:String,json:{write:!0}})],_.prototype,"resultType",void 0),(0,s._)([(0,u.Cb)({json:{write:!0}})],_.prototype,"returnGeometry",void 0),(0,s._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"returnM",void 0),(0,s._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"returnZ",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],_.prototype,"start",void 0),(0,s._)([(0,h.c)("start"),(0,h.c)("num")],_.prototype,"writeStart",null),(0,s._)([(0,u.Cb)({type:String,json:{read:{source:"spatialRel",reader:b.read},write:{target:"spatialRel",writer:b.write}}})],_.prototype,"spatialRelationship",void 0),(0,s._)([(0,u.Cb)({type:n.Z,json:{write:!0}})],_.prototype,"timeExtent",void 0),(0,s._)([(0,u.Cb)({type:m,json:{write:!0}})],_.prototype,"topFilter",void 0),(0,s._)([(0,u.Cb)({type:String,json:{read:v.read,write:{writer:v.write,overridePolicy(e){return{enabled:e&&this.distance>0}}}}})],_.prototype,"units",void 0),(0,s._)([(0,u.Cb)({type:String,json:{write:!0}})],_.prototype,"where",void 0),_=g=(0,s._)([(0,p.j)("esri.rest.support.TopFeaturesQuery")],_),_.from=(0,c.se)(_);const C=_}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9101,6006],{78346:(e,t,r)=>{r.d(t,{bA:()=>T});var o=r(20102),s=r(80442),i=r(95330),n=r(80903),a=r(25045),l=r(40330),d=r(92604),u=r(94362),c=r(99880),p=r(68773),h=(r(2587),r(17452));const y={};function f(e){var t;const r={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages&&e.packages.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(r.async=!0),e.hasOwnProperty("isDebug")||(r.isDebug=!1),e.baseUrl||(r.baseUrl=y.baseUrl),null==(t=y.packages)||t.forEach((e=>{!function(e,t){for(const r of e)if(r.name===t.name)return;e.push(t)}(r.packages,e)})),r}var m=r(41213);class g{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...r)=>e[t](...r)}))}}class w{constructor(){this._dispatcher=new g,this._workerPostMessage({type:u.Cs.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,m.Y)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,m.Y)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,u.QM)(e);if(t&&t.type===u.Cs.OPEN){const{modulePath:e,jobId:r}=t;let o=await a.default.loadWorker(e);o||(o=await import(e));const s=a.default.connect(o);this._workerPostMessage({type:u.Cs.OPENED,jobId:r,data:s})}}}var b=r(70171),v=r(17202);const _=d.Z.getLogger("esri.core.workers"),{HANDSHAKE:C}=u.Cs;let k,j;const S="Failed to create Worker. Fallback to execute module in main thread";async function R(e){return new Promise((t=>{function r(s){const i=(0,u.QM)(s);i&&i.type===C&&(e.removeEventListener("message",r),e.removeEventListener("error",o),t(e))}function o(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",o),_.warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new w).addEventListener("message",r),e.addEventListener("error",o)}e.addEventListener("message",r),e.addEventListener("error",o)}))}let E=0;const M=d.Z.getLogger("esri.core.workers"),{ABORT:P,INVOKE:N,OPEN:x,OPENED:Z,RESPONSE:O}=u.Cs;class I{constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),M.error(e)}))}static async create(e){const t=await async function(){if(!(0,s.Z)("esri-workers")||((0,s.Z)("mozilla"),0))return R(new w);if(!k&&!j)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,buildDate:r,version:t}=configuration.kernelInfo,{revision:n,buildDate:i,version:s}=e.kernelInfo;o!==n&&console.warn(`[esri.core.workers] Version mismatch detected between ArcGIS API for JavaScript and assets:\\nAPI version: ${t} [Date: ${r}, Revision: ${o.slice(0,8)}]\nAssets version: ${s} [Date: ${i}, Revision: ${n.slice(0,8)}]`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let e;function t(o){const t=e.connect(o);self.postMessage({type:2,jobId:r,data:t},[t])}"function"==typeof define&&define.amd?require([workerPath],(r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((r=>(e=r.default,checkWorkerRevision(e),e.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),e=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(e),e.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const e=outgoing.get(r);outgoing.delete(r),o.error?e.reject(JSON.parse(o.error)):e.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.replace('"{CONFIGURATION}"',`'${function(){let e;if(null!=p.Z.default){const t={...p.Z};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(p.Z));e.assetsPath=(0,h.hF)(e.assetsPath),e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,b.Kd)(),e.has={"esri-csp-restrictions":(0,s.Z)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,s.Z)("esri-2d-update-debug"),"esri-2d-query-centroid-enabled":(0,s.Z)("esri-2d-query-centroid-enabled"),"featurelayer-pbf":(0,s.Z)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,s.Z)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,s.Z)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,s.Z)("featurelayer-simplify-mobile-factor"),"esri-atomics":(0,s.Z)("esri-atomics"),"esri-shared-array-buffer":(0,s.Z)("esri-shared-array-buffer"),"esri-tiles-debug":(0,s.Z)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,s.Z)("esri-workers-arraybuffer-transfer"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,h.hF)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,h.hF)(e.workers.workerPath):e.workers.workerPath=(0,h.hF)((0,c.V)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=p.Z.workers.loaderConfig,r=f({baseUrl:null==t?void 0:t.baseUrl,locale:(0,b.Kd)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...null==t?void 0:t.has},map:{...null==t?void 0:t.map},paths:{...null==t?void 0:t.paths},packages:(null==t?void 0:t.packages)||[]}),o={version:l.i8,buildDate:v.r,revision:v.$};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:o})}()}'`);k=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){j=e||{}}let e;if(k)try{e=new Worker(k,{name:"esri-worker-"+E++})}catch(t){_.warn(S,j),e=new w}else _.warn(S,j),e=new w;return R(e)}();return new I(t,e)}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,o=(0,u.jt)();return new Promise(((t,s)=>{const n={resolve:t,reject:s,abortHandle:(0,i.$F)(r,(()=>{this._outJobs.delete(o),this._post({type:P,jobId:o})}))};this._outJobs.set(o,n),this._post({type:x,jobId:o,modulePath:e})}))}_onMessage(e){const t=(0,u.QM)(e);if(t)switch(t.type){case Z:this._onOpenedMessage(t);break;case O:this._onResponseMessage(t);break;case P:this._onAbortMessage(t);break;case N:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,o=t.get(r);o&&(o.controller&&o.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:o,abortable:s}=e,n=s?new AbortController:null,a=this._inJobs,d=l.Nv[t];let c;try{if("function"!=typeof d)throw new TypeError(`${t} is not a function`);c=d.call(null,o,{signal:n?n.signal:null})}catch(e){return void this._post({type:O,jobId:r,error:(0,u.AB)(e)})}(0,i.y8)(c)?(a.set(r,{controller:n,promise:c}),c.then((e=>{a.has(r)&&(a.delete(r),this._post({type:O,jobId:r},e))}),(e=>{a.has(r)&&(a.delete(r),e||(e={message:"Error encountered at method"+t}),(0,i.D_)(e)||this._post({type:O,jobId:r,error:(0,u.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:O,jobId:r},c)}_onOpenedMessage(e){var t;const{jobId:r,data:o}=e,s=this._outJobs.get(r);s&&(this._outJobs.delete(r),null==(t=s.abortHandle)||t.remove(),s.resolve(o))}_onResponseMessage(e){var t;const{jobId:r,error:s,data:i}=e,n=this._outJobs.get(r);n&&(this._outJobs.delete(r),null==(t=n.abortHandle)||t.remove(),s?n.reject(o.Z.fromJSON(JSON.parse(s))):n.resolve(i))}_post(e,t,r){return(0,u.oi)(this.worker,e,t,r)}}let F=(0,s.Z)("esri-workers-debug")?1:(0,s.Z)("host-browser")?navigator.hardwareConcurrency-1:0;F||(F=(0,s.Z)("safari")&&(0,s.Z)("mac")||(0,s.Z)("trident")?7:2);let A=0;const L=[];async function B(e,t){const r=new n.Z;return await r.open(e,t),r}async function T(e,t={}){if("string"!=typeof e)throw new o.Z("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if((0,s.Z)("host-webworker")&&!(0,s.Z)("esri-workers")&&(r="local"),"local"===r){let r=await a.default.loadWorker(e);r||(r=await import(e)),(0,i.k_)(t.signal);const o=t.client||r;return B([a.default.connect(r)],{...t,client:o})}if(await async function(){if(U)return U;H=new AbortController;const e=[];for(let t=0;t<F;t++){const r=I.create(t).then((e=>(L[t]=e,e)));e.push(r)}return U=Promise.all(e),U}(),(0,i.k_)(t.signal),"dedicated"===r){const r=A++%F;return B([await L[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,F);if(r<F){const o=new Array(r);for(let s=0;s<r;++s){const r=A++%F;o[s]=L[r].open(e,t)}return B(o,t)}}return B(L.map((r=>r.open(e,t))),t)}let H,U=null},2587:(e,t,r)=>{r(90344),r(18848),r(940),r(70171);var o=r(94443),s=r(3172),i=r(20102),n=r(70586);async function a(e){if((0,n.pC)(l.fetchBundleAsset))return l.fetchBundleAsset(e);const t=await(0,s.default)(e,{responseType:"text"});return JSON.parse(t.data)}const l={};var d,u=r(99880);(0,o.tz)((d={pattern:"esri/",location:u.V},new class{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let o;o="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=o,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,s){const n=t.exec(r);if(!n)throw new i.Z("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const l=n[1]?`${n[1]}/`:"",d=n[2],u=(0,o.Su)(s),c=`${l}${d}.json`,p=u?`${l}${d}_${u}.json`:c;let h;try{h=await a(e(p))}catch(t){if(p===c)throw new i.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:t});try{h=await a(e(c))}catch(e){throw new i.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}}return h}(this.getAssetUrl,this.matcher,e,t)}}(d)))},94443:(e,t,r)=>{r.d(t,{ME:()=>h,Su:()=>y,tz:()=>p});var o=r(20102),s=r(95330),i=r(70171);const n=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,a={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){var t;return null!=(t=a[e])&&t}const d=[],u=new Map;function c(e){for(const t of u.keys())f(e.pattern,t)&&u.delete(t)}function p(e){return d.includes(e)||(c(e),d.unshift(e)),{remove(){const t=d.indexOf(e);t>-1&&(d.splice(t,1),c(e))}}}async function h(e){const t=(0,i.Kd)();u.has(e)||u.set(e,async function(e,t){const r=[];for(const o of d)if(f(o.pattern,e))try{return await o.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new o.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new o.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=u.get(e);return await m.add(r),r}function y(e){if(!n.test(e))return null;const[,t,r]=n.exec(e),o=t+(r?"-"+r.toUpperCase():"");return l(o)?o:l(t)?t:null}function f(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,i.Ze)((()=>{u.clear()}));const m=new class{constructor(){this._numLoading=0}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,s.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},940:(e,t,r)=>{r.d(t,{n:()=>d});var o=r(92604),s=r(78286),i=r(19153),n=r(90344),a=r(18848);const l=o.Z.getLogger("esri.intl");function d(e,t,r={}){const{format:o={}}=r;return(0,i.gx)(e,(e=>function(e,t,r){let o,i;const n=e.indexOf(":");if(-1===n?o=e.trim():(o=e.slice(0,n).trim(),i=e.slice(n+1).trim()),!o)return"";const a=(0,s.hS)(o,t);if(null==a)return"";const l=r[i]||r[o];return l?u(a,l):i?c(a,i):p(a)}(e,t,o)))}function u(e,t){switch(t.type){case"date":return(0,n.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),p(e)}}function c(e,t){switch(t.toLowerCase()){case"dateformat":return(0,n.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,n.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):p(e)}}function p(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,n.p6)(e):""}}},56545:(e,t,r)=>{r.d(t,{Z:()=>p});var o,s=r(43697),i=r(96674),n=r(22974),a=r(5600),l=r(75215),d=r(52011),u=r(30556);let c=o=class extends i.wq{constructor(e){super(e),this.attachmentTypes=null,this.attachmentsWhere=null,this.keywords=null,this.globalIds=null,this.name=null,this.num=null,this.objectIds=null,this.returnMetadata=!1,this.size=null,this.start=null,this.where=null}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new o((0,n.d9)({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,keywords:this.keywords,where:this.where,globalIds:this.globalIds,name:this.name,num:this.num,objectIds:this.objectIds,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))}};(0,s._)([(0,a.Cb)({type:[String],json:{write:!0}})],c.prototype,"attachmentTypes",void 0),(0,s._)([(0,a.Cb)({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],c.prototype,"attachmentsWhere",void 0),(0,s._)([(0,a.Cb)({type:[String],json:{write:!0}})],c.prototype,"keywords",void 0),(0,s._)([(0,a.Cb)({type:[Number],json:{write:!0}})],c.prototype,"globalIds",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],c.prototype,"name",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],c.prototype,"num",void 0),(0,s._)([(0,a.Cb)({type:[Number],json:{write:!0}})],c.prototype,"objectIds",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{default:!1,write:!0}})],c.prototype,"returnMetadata",void 0),(0,s._)([(0,a.Cb)({type:[Number],json:{write:!0}})],c.prototype,"size",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],c.prototype,"start",void 0),(0,s._)([(0,u.c)("start"),(0,u.c)("num")],c.prototype,"writeStart",null),(0,s._)([(0,a.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],c.prototype,"where",void 0),c=o=(0,s._)([(0,d.j)("esri.rest.support.AttachmentQuery")],c),c.from=(0,l.se)(c);const p=c},74889:(e,t,r)=>{r.r(t),r.d(t,{default:()=>v});var o,s=r(43697),i=r(66577),n=r(1692),a=r(35454),l=r(96674),d=r(22974),u=r(70586),c=r(5600),p=(r(75215),r(71715)),h=r(52011),y=r(30556),f=r(82971),m=r(33955),g=r(1231);const w=new a.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=o=class extends l.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=f.Z.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){const s=e[t],i=n.Z.fromJSON(s),a=s.geometry&&s.geometry.spatialReference;(0,u.pC)(i.geometry)&&!a&&(i.geometry.spatialReference=r),o.push(i)}return o}writeGeometryType(e,t,r,o){if(e)return void w.write(e,t,r,o);const{features:s}=this;if(s)for(const e of s)if(e&&(0,u.pC)(e.geometry))return void w.write(e.geometry.type,t,r,o)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,o=(0,m.im)(e);return!r&&t.spatialReference&&(o.spatialReference=f.Z.fromJSON(t.spatialReference)),o}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&(0,u.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new o(this.cloneProperties())}cloneProperties(){return(0,d.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const o=t.features[r];if(o.geometry){const t=e&&e[r];o.geometry=t&&t.toJSON()||o.geometry}}return t}quantize(e){const{scale:[t,r],translate:[o,s]}=e,i=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-o)/t)),(e=>Math.round((s-e)/r)));for(let e=0,t=i.length;e<t;e++)n((0,u.Wg)(i[e].geometry))||(i.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[o,s],scale:[i,n]}=r,a=this._getHydrationFunction(e,(e=>e*i+o),(e=>s-e*n));for(const{geometry:e}of t)(0,u.pC)(e)&&a(e);return this.transform=null,this}_quantizePoints(e,t,r){let o,s;const i=[];for(let n=0,a=e.length;n<a;n++){const a=e[n];if(n>0){const e=t(a[0]),n=r(a[1]);e===o&&n===s||(i.push([e-o,n-s]),o=e,s=n)}else o=t(a[0]),s=r(a[1]),i.push([o,s])}return i.length>0?i:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const o=(0,m.oU)(e)?e.rings:e.paths,s=[];for(let e=0,i=o.length;e<i;e++){const i=o[e],n=this._quantizePoints(i,t,r);n&&s.push(n)}return s.length>0?((0,m.oU)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const o=this._quantizePoints(e.points,t,r);return o.length>0?(e.points=o,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const o=(0,m.oU)(e)?e.rings:e.paths;let s,i;for(let e=0,n=o.length;e<n;e++){const n=o[e];for(let e=0,o=n.length;e<o;e++){const o=n[e];e>0?(s+=o[0],i+=o[1]):(s=o[0],i=o[1]),o[0]=t(s),o[1]=r(i)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const o=e.points;let s,i;for(let e=0,n=o.length;e<n;e++){const n=o[e];e>0?(s+=n[0],i+=n[1]):(s=n[0],i=n[1]),n[0]=t(s),n[1]=r(i)}}:void 0}};(0,s._)([(0,c.Cb)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,c.Cb)({type:[n.Z],json:{write:!0}})],b.prototype,"features",void 0),(0,s._)([(0,p.r)("features")],b.prototype,"readFeatures",null),(0,s._)([(0,c.Cb)({type:[g.Z],json:{write:!0}})],b.prototype,"fields",void 0),(0,s._)([(0,c.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:w.read}}})],b.prototype,"geometryType",void 0),(0,s._)([(0,y.c)("geometryType")],b.prototype,"writeGeometryType",null),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,s._)([(0,c.Cb)({types:i.qM,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,s._)([(0,p.r)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,s._)([(0,c.Cb)({type:f.Z,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,s._)([(0,y.c)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,s._)([(0,c.Cb)({json:{write:!0}})],b.prototype,"transform",void 0),b=o=(0,s._)([(0,h.j)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0;const v=b},75935:(e,t,r)=>{r.d(t,{Z:()=>y});var o,s=r(43697),i=(r(66577),r(96674)),n=r(22974),a=r(5600),l=r(75215),d=r(52011),u=r(30556),c=r(10158),p=r(82971);let h=o=class extends i.wq{constructor(e){super(e),this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new o((0,n.d9)({dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};(0,s._)([(0,a.Cb)({type:c.n,json:{write:!0}})],h.prototype,"dynamicDataSource",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"gdbVersion",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"geometryPrecision",void 0),(0,s._)([(0,a.Cb)({type:Date})],h.prototype,"historicMoment",void 0),(0,s._)([(0,u.c)("historicMoment")],h.prototype,"_writeHistoricMoment",null),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"maxAllowableOffset",void 0),(0,s._)([(0,a.Cb)({type:[Number],json:{write:!0}})],h.prototype,"objectIds",void 0),(0,s._)([(0,a.Cb)({type:[String],json:{write:!0}})],h.prototype,"orderByFields",void 0),(0,s._)([(0,a.Cb)({type:[String],json:{write:!0}})],h.prototype,"outFields",void 0),(0,s._)([(0,a.Cb)({type:p.Z,json:{read:{source:"outSR"},write:{target:"outSR"}}})],h.prototype,"outSpatialReference",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"relationshipId",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],h.prototype,"start",void 0),(0,s._)([(0,u.c)("start"),(0,u.c)("num")],h.prototype,"writeStart",null),(0,s._)([(0,a.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],h.prototype,"num",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"returnGeometry",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],h.prototype,"returnM",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],h.prototype,"returnZ",void 0),(0,s._)([(0,a.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],h.prototype,"where",void 0),h=o=(0,s._)([(0,d.j)("esri.rest.support.RelationshipQuery")],h),h.from=(0,l.se)(h);const y=h},28141:(e,t,r)=>{r.d(t,{Z:()=>C});var o,s=r(43697),i=r(66577),n=r(92835),a=r(35454),l=r(96674),d=r(22974),u=r(5600),c=r(75215),p=r(52011),h=r(30556),y=r(33955);r(67676),r(80442);let f=o=class extends l.wq{constructor(e){super(e),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new o({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,s._)([(0,u.Cb)({type:[String],json:{write:!0}})],f.prototype,"groupByFields",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{write:!0}})],f.prototype,"topCount",void 0),(0,s._)([(0,u.Cb)({type:[String],json:{write:!0}})],f.prototype,"orderByFields",void 0),f=o=(0,s._)([(0,p.j)("esri.rest.support.TopFilter")],f);const m=f;var g,w=r(82971);const b=new a.X({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),v=new a.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let _=g=class extends l.wq{constructor(e){super(e),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new g((0,d.d9)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,s._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],_.prototype,"cacheHint",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],_.prototype,"distance",void 0),(0,s._)([(0,u.Cb)({types:i.qM,json:{read:y.im,write:!0}})],_.prototype,"geometry",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{write:!0}})],_.prototype,"geometryPrecision",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{write:!0}})],_.prototype,"maxAllowableOffset",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],_.prototype,"num",void 0),(0,s._)([(0,u.Cb)({json:{write:!0}})],_.prototype,"objectIds",void 0),(0,s._)([(0,u.Cb)({type:[String],json:{write:!0}})],_.prototype,"orderByFields",void 0),(0,s._)([(0,u.Cb)({type:[String],json:{write:!0}})],_.prototype,"outFields",void 0),(0,s._)([(0,u.Cb)({type:w.Z,json:{read:{source:"outSR"},write:{target:"outSR"}}})],_.prototype,"outSpatialReference",void 0),(0,s._)([(0,u.Cb)({type:String,json:{write:!0}})],_.prototype,"resultType",void 0),(0,s._)([(0,u.Cb)({json:{write:!0}})],_.prototype,"returnGeometry",void 0),(0,s._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"returnM",void 0),(0,s._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"returnZ",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],_.prototype,"start",void 0),(0,s._)([(0,h.c)("start"),(0,h.c)("num")],_.prototype,"writeStart",null),(0,s._)([(0,u.Cb)({type:String,json:{read:{source:"spatialRel",reader:b.read},write:{target:"spatialRel",writer:b.write}}})],_.prototype,"spatialRelationship",void 0),(0,s._)([(0,u.Cb)({type:n.Z,json:{write:!0}})],_.prototype,"timeExtent",void 0),(0,s._)([(0,u.Cb)({type:m,json:{write:!0}})],_.prototype,"topFilter",void 0),(0,s._)([(0,u.Cb)({type:String,json:{read:v.read,write:{writer:v.write,overridePolicy(e){return{enabled:e&&this.distance>0}}}}})],_.prototype,"units",void 0),(0,s._)([(0,u.Cb)({type:String,json:{write:!0}})],_.prototype,"where",void 0),_=g=(0,s._)([(0,p.j)("esri.rest.support.TopFeaturesQuery")],_),_.from=(0,c.se)(_);const C=_}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2730],{92722:(e,t,n)=>{n.d(t,{lG:()=>v,q9:()=>a,my:()=>T,O3:()=>F});var i=n(20102),r=n(70272),o=n(5428),s=n(35671);const l={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function a(e){return l[e]}function*u(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*c(e){if(!e)return null;switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function d(e){for(const t of e)if(t.length>2)return!0;return!1}function p(e){let t=0;for(let n=0;n<e.length;n++){const i=e[n],r=e[(n+1)%e.length];t+=i[0]*r[1]-r[0]*i[1]}return t<=0}function y(e){const t=e[0],n=e[e.length-1];return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t),e}function f(e,t,n){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,n){return h(e,t.coordinates,n),e}(e,t,n);case"MultiLineString":return function(e,t,n){for(const i of t.coordinates)h(e,i,n);return e}(e,t,n);case"MultiPolygon":return function(e,t,n){for(const i of t.coordinates){m(e,i[0],n);for(let t=1;t<i.length;t++)g(e,i[t],n)}return e}(e,t,n);case"Point":return function(e,t,n){return b(e,t.coordinates,n),e}(e,t,n);case"Polygon":return function(e,t,n){const i=t.coordinates;m(e,i[0],n);for(let t=1;t<i.length;t++)g(e,i[t],n);return e}(e,t,n)}}function m(e,t,n){const i=y(t);!function(e){return!p(e)}(i)?h(e,i,n):w(e,i,n)}function g(e,t,n){const i=y(t);!function(e){return p(e)}(i)?h(e,i,n):w(e,i,n)}function h(e,t,n){for(const i of t)b(e,i,n);e.lengths.push(t.length)}function w(e,t,n){for(let i=t.length-1;i>=0;i--)b(e,t[i],n);e.lengths.push(t.length)}function b(e,t,n){const[i,r,o]=t;e.coords.push(i,r),n.hasZ&&e.coords.push(o||0)}function S(e){switch(typeof e){case"string":return"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function F(e){if(!e)throw new i.Z("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new i.Z("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:t}=e;if(!t)return;const n="string"==typeof t?t:"name"===t.type?t.properties.name:"EPSG"===t.type?t.properties.code:null,r=new RegExp(".*(CRS84H?|4326)$","i");if(!n||!r.test(n))throw new i.Z("geojson-layer:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:t})}function T(e,t={}){const n=[],i=new Set,r=new Set;let o,l=!1,p=null,y=!1,{geometryType:f=null}=t,m=!1;for(const t of u(e)){const{geometry:e,properties:s,id:u}=t;if((!e||(f||(f=a(e.type)),a(e.type)===f))&&(l||(l=d(c(e))),y||(y=null!=u,y&&(o=typeof u,p=Object.keys(s).filter((e=>s[e]===u)))),y&&null!=u&&(p.length>1?p=p.filter((e=>s[e]===u)):1===p.length&&(p=s[p[0]]===u?p:[])),!m&&s)){let e=!0;for(const t in s){if(i.has(t))continue;const o=s[t];if(null==o){e=!1,r.add(t);continue}const l=S(o);"unknown"!==l?(r.delete(t),i.add(t),n.push({name:t,alias:t,type:l})):r.add(t)}m=e}}const g=p&&1===p.length&&p[0]||null;if(g)for(const e of n)if(e.name===g&&(0,s.H7)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:f,hasZ:l,objectIdFieldName:g,objectIdFieldType:o,unknownFields:Array.from(r)}}function v(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:i}=t;for(const l of e){var s;const{geometry:e,properties:u,id:c}=l;if(e&&a(e.type)!==n)continue;const d=u||{};let p=null!=(s=d[i])?s:null;i&&null!=c&&!d[i]&&(d[i]=p=c);const y=new r.ZP(e?f(new o.Z,e,t):null,d,null,p);yield y}}(u(e),t))}},25278:(e,t,n)=>{n.d(t,{MS:()=>c,Dm:()=>a,Hq:()=>u,bU:()=>l});var i=n(80442),r=n(22974),o=n(61159),s=n(58333);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?s.I4:"esriGeometryPolyline"===e?s.ET:s.lF}}}function a(e,t){if((0,i.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let n=`this.${t} = null;`;for(const t in e)n+=`this${t.includes(".")?`["${t}"]`:`.${t}`} = ${JSON.stringify(e[t])};`;const i=new Function(n);return()=>new i}catch(n){return()=>({[t]:null,...e})}}function u(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.d9)(e)}}]}function c(e,t){return{attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:o.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},16467:(e,t,n)=>{n.d(t,{$9:()=>w,Lu:()=>h,w9:()=>b,j:()=>S,G4:()=>F,gp:()=>T,eS:()=>v,d:()=>j,yN:()=>I,WW:()=>k}),n(66577);var i=n(3172),r=n(20102),o=n(92604),s=n(70586),l=n(8744),a=n(40488),u=n(98732),c=n(44876),d=n(92722),p=n(25278),y=n(99514),f=n(86719),m=n(82971);const g=o.Z.getLogger("esri.layers.graphics.sources.ogcfeature"),h="http://www.opengis.net/def/crs/",w=`${h}OGC/1.3/CRS84`;async function b(e,t,n={},o=5){const{links:l}=e,a=N(l,"items","application/geo+json")||N(l,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if((0,s.Wi)(a))throw new r.Z("ogc-feature-layer:missing-items-page","Missing items url");const{data:u}=await(0,i.default)(a.href,{signal:n.signal,query:{limit:o,...n.customParameters,token:n.apiKey},headers:{accept:"application/geo+json"}});await(0,d.O3)(u);const c=(0,d.my)(u,{geometryType:t.geometryType}),m=t.fields||c.fields||[],h=null!=t.hasZ?t.hasZ:c.hasZ,w=c.geometryType,b=t.objectIdField||c.objectIdFieldName||"OBJECTID";let S=t.timeInfo;const F=m.find((e=>e.name===b));if(F)F.type="esriFieldTypeOID",F.editable=!1,F.nullable=!1;else{if(!c.objectIdFieldType)throw new r.Z("ogc-feature-layer:missing-feature-id","Collection geojson require a feature id as a unique identifier");m.unshift({name:b,alias:b,type:"esriFieldTypeOID",editable:!1,nullable:!1})}if(b!==c.objectIdFieldName){const e=m.find((e=>e.name===c.objectIdFieldName));e&&(e.type="esriFieldTypeInteger")}m===c.fields&&c.unknownFields.length>0&&g.warn({name:"ogc-feature-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:c.unknownFields}});for(const e of m){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),"esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable),!e.name)throw new r.Z("ogc-feature-layer:invalid-field-name","field name is missing",{field:e});if(-1===f.v.jsonValues.indexOf(e.type))throw new r.Z("ogc-feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e})}if(S){const e=new y.Z(m);if(S.startTimeField){const t=e.get(S.startTimeField);t?(S.startTimeField=t.name,t.type="esriFieldTypeDate"):S.startTimeField=null}if(S.endTimeField){const t=e.get(S.endTimeField);t?(S.endTimeField=t.name,t.type="esriFieldTypeDate"):S.endTimeField=null}if(S.trackIdField){const t=e.get(S.trackIdField);t?S.trackIdField=t.name:(S.trackIdField=null,g.warn({name:"ogc-feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:S}}))}S.startTimeField||S.endTimeField||(g.warn({name:"ogc-feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:S}}),S=null)}return{drawingInfo:w?(0,p.bU)(w):null,geometryType:w,fields:m,hasZ:!!h,objectIdField:b,timeInfo:S}}async function S(e,t={}){const{links:n}=e,o=N(n,"data","application/json")||N(n,"http://www.opengis.net/def/rel/ogc/1.0/data","application/json");if((0,s.Wi)(o))throw new r.Z("ogc-feature-layer:missing-collections-page","Missing collections url");const{apiKey:l,customParameters:a,signal:u}=t,{data:c}=await(0,i.default)(o.href,{signal:u,headers:{accept:"application/json"},query:{...a,token:l}});return c}async function F(e,t={}){const{links:n}=e,o=N(n,"conformance","application/json")||N(n,"http://www.opengis.net/def/rel/ogc/1.0/conformance","application/json");if((0,s.Wi)(o))throw new r.Z("ogc-feature-layer:missing-conformance-page","Missing conformance url");const{apiKey:l,customParameters:a,signal:u}=t,{data:c}=await(0,i.default)(o.href,{signal:u,headers:{accept:"application/json"},query:{...a,token:l}});return c}async function T(e,t={}){const{apiKey:n,customParameters:r,signal:o}=t,{data:s}=await(0,i.default)(e,{signal:o,headers:{accept:"application/json"},query:{...r,token:n}});return s}async function v(e,t={}){const n="application/vnd.oai.openapi+json;version=3.0",r=N(e.links,"service-desc",n);if((0,s.Wi)(r))return g.warn("ogc-feature-layer:missing-openapi-page","The OGC API-Features server does not have an OpenAPI page."),null;const{apiKey:o,customParameters:l,signal:a}=t,{data:u}=await(0,i.default)(r.href,{signal:a,headers:{accept:n},query:{...l,token:o}});return u}function j(e){const t=/^http:\/\/www\.opengis.net\/def\/crs\/(?<authority>.*)\/(?<version>.*)\/(?<code>.*)$/i.exec(e),n=null==t?void 0:t.groups;if(!n)return null;const{authority:i,code:r}=n;switch(i.toLowerCase()){case"ogc":switch(r.toLowerCase()){case"crs27":return m.Z.GCS_NAD_1927.wkid;case"crs83":return 4269;case"crs84":case"crs84h":return m.Z.WGS84.wkid;default:return null}case"esri":case"epsg":{const e=Number.parseInt(r,10);return Number.isNaN(e)?null:e}default:return null}}async function I(e,t,n){const i=await k(e,t,n);return(0,u.cn)(i)}async function k(e,t,n){const{capabilities:{query:{maxRecordCount:o}},collection:p,layerDefinition:y,queryParameters:{apiKey:f,customParameters:g},spatialReference:h,supportedCrs:w}=e,{links:b}=p,S=N(b,"items","application/geo+json")||N(b,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if((0,s.Wi)(S))throw new r.Z("ogc-feature-layer:missing-items-page","Missing items url");const{geometry:F,num:T,start:v,timeExtent:j,where:I}=t;if(t.objectIds)throw new r.Z("ogc-feature-layer:query-by-objectids-not-supported","Queries with objectids are not supported");const k=m.Z.fromJSON(h),O=(0,s.Pt)(t.outSpatialReference,k),P=O.isWGS84?null:C(O,w),Z=V(F,w),x=function(e){if((0,s.Wi)(e))return null;const{start:t,end:n}=e;return`${(0,s.pC)(t)?t.toISOString():".."}/${(0,s.pC)(n)?n.toISOString():".."}`}(j),G=(D=I,(0,s.Wi)(D)||!D||"1=1"===D?null:D),M=null!=T?T:null!=v&&void 0!==v?10:o,{data:_}=await(0,i.default)(S.href,{...n,query:{...g,...Z,crs:P,datetime:x,query:G,limit:M,startindex:v,token:f},headers:{accept:"application/geo+json"}});var D;let q=!1;_.links&&(q=!!_.links.find((e=>"next"===e.rel))),!q&&Number.isInteger(_.numberMatched)&&Number.isInteger(_.numberReturned)&&(q=_.numberReturned<_.numberMatched);const{fields:L,globalIdField:R,hasM:W,hasZ:J,objectIdField:$}=y,A=y.geometryType,B=(0,d.lG)(_,{geometryType:A,hasZ:J,objectIdField:$});if(!P&&O.isWebMercator)for(const e of B)if((0,s.pC)(e.geometry)){const t=(0,u.di)(e.geometry,A,J,!1);t.spatialReference=m.Z.WGS84,e.geometry=(0,u.GH)((0,a.iV)(t,O))}for(const e of B)e.objectId=e.attributes[$];const E=P||!P&&O.isWebMercator?O.toJSON():l.Zn,U=new c.Z;return U.exceededTransferLimit=q,U.features=B,U.fields=L,U.geometryType=A,U.globalIdFieldName=R,U.hasM=W,U.hasZ=J,U.objectIdFieldName=$,U.spatialReference=E,U}function C(e,t){var n,i,r;const{isWebMercator:o,wkid:s}=e;if(!s)return null;const l=o?null!=(n=null!=(i=null!=(r=t[3857])?r:t[102100])?i:t[102113])?n:t[900913]:t[e.wkid];return l?`${h}${l}`:null}function O(e){if((0,s.Wi)(e))return"";const{xmin:t,ymin:n,xmax:i,ymax:r}=e;return`${t},${n},${i},${r}`}function V(e,t){if(!function(e){return(0,s.pC)(e)&&"extent"===e.type}(e))return null;const{spatialReference:n}=e;if(!n||n.isWGS84)return{bbox:O(e)};const i=C(n,t);return(0,s.pC)(i)?{bbox:O(e),"bbox-crs":i}:n.isWebMercator?{bbox:O((0,a.iV)(e,m.Z.WGS84))}:null}function N(e,t,n){return e.find((e=>e.rel===t&&e.type===n))||e.find((e=>e.rel===t&&!e.type))}},1231:(e,t,n)=>{n.d(t,{Z:()=>g});var i,r=n(43697),o=n(35454),s=n(96674),l=n(5600),a=(n(67676),n(80442),n(75215)),u=n(36030),c=n(71715),d=n(52011),p=n(72729),y=n(86719);const f=new o.Xn({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=i=class extends s.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null}readDescription(e,{description:t}){let n;try{n=JSON.parse(t)}catch(e){}return n?n.value:null}readValueType(e,{description:t}){let n;try{n=JSON.parse(t)}catch(e){}return n?f.fromJSON(n.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType})}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,r._)([(0,l.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,r._)([(0,l.Cb)()],m.prototype,"description",void 0),(0,r._)([(0,c.r)("description")],m.prototype,"readDescription",null),(0,r._)([(0,l.Cb)({types:p.V5,json:{read:{reader:p.im},write:!0}})],m.prototype,"domain",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,r._)([(0,l.Cb)({type:a.z8,json:{write:!0}})],m.prototype,"length",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,r._)([(0,u.J)(y.v)],m.prototype,"type",void 0),(0,r._)([(0,l.Cb)()],m.prototype,"valueType",void 0),(0,r._)([(0,c.r)("valueType",["description"])],m.prototype,"readValueType",null),m=i=(0,r._)([(0,d.j)("esri.layers.support.Field")],m);const g=m},72729:(e,t,n)=>{n.d(t,{im:()=>I,V5:()=>j}),n(80442);var i,r=n(43697),o=n(22974),s=n(5600),l=(n(75215),n(36030)),a=n(52011),u=n(96674);n(67676);let c=i=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,r._)([(0,s.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=i=(0,r._)([(0,a.j)("esri.layers.support.CodedValue")],c);const d=c,p=new(n(35454).Xn)({inherited:"inherited",codedValue:"coded-value",range:"range"});let y=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,r._)([(0,l.J)(p)],y.prototype,"type",void 0),y=(0,r._)([(0,a.j)("esri.layers.support.Domain")],y);const f=y;var m;let g=m=class extends f{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new m({codedValues:(0,o.d9)(this.codedValues),name:this.name})}};(0,r._)([(0,s.Cb)({type:[d],json:{write:!0}})],g.prototype,"codedValues",void 0),(0,r._)([(0,l.J)({codedValue:"coded-value"})],g.prototype,"type",void 0),g=m=(0,r._)([(0,a.j)("esri.layers.support.CodedValueDomain")],g);const h=g;var w;n(92604),n(37697);let b=w=class extends f{constructor(e){super(e),this.type="inherited"}clone(){return new w}};(0,r._)([(0,l.J)({inherited:"inherited"})],b.prototype,"type",void 0),b=w=(0,r._)([(0,a.j)("esri.layers.support.InheritedDomain")],b);const S=b;var F;let T=F=class extends f{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new F({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]}}}})],T.prototype,"maxValue",void 0),(0,r._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],T.prototype,"minValue",void 0),(0,r._)([(0,l.J)({range:"range"})],T.prototype,"type",void 0),T=F=(0,r._)([(0,a.j)("esri.layers.support.RangeDomain")],T);const v=T,j={key:"type",base:f,typeMap:{range:T,"coded-value":h,inherited:S}};function I(e){if(!e||!e.type)return null;switch(e.type){case"range":return v.fromJSON(e);case"codedValue":return h.fromJSON(e);case"inherited":return S.fromJSON(e)}return null}},86719:(e,t,n)=>{n.d(t,{v:()=>i});const i=new(n(35454).Xn)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})},58333:(e,t,n)=>{n.d(t,{I4:()=>r,lF:()=>s,ET:()=>o,qP:()=>l,eG:()=>a,lj:()=>c,wW:()=>u});const i=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},s={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2730],{92722:(e,t,n)=>{n.d(t,{lG:()=>v,q9:()=>a,my:()=>T,O3:()=>F});var i=n(20102),r=n(70272),o=n(5428),s=n(35671);const l={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function a(e){return l[e]}function*u(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*c(e){if(!e)return null;switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function d(e){for(const t of e)if(t.length>2)return!0;return!1}function p(e){let t=0;for(let n=0;n<e.length;n++){const i=e[n],r=e[(n+1)%e.length];t+=i[0]*r[1]-r[0]*i[1]}return t<=0}function y(e){const t=e[0],n=e[e.length-1];return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t),e}function f(e,t,n){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,n){return h(e,t.coordinates,n),e}(e,t,n);case"MultiLineString":return function(e,t,n){for(const i of t.coordinates)h(e,i,n);return e}(e,t,n);case"MultiPolygon":return function(e,t,n){for(const i of t.coordinates){m(e,i[0],n);for(let t=1;t<i.length;t++)g(e,i[t],n)}return e}(e,t,n);case"Point":return function(e,t,n){return b(e,t.coordinates,n),e}(e,t,n);case"Polygon":return function(e,t,n){const i=t.coordinates;m(e,i[0],n);for(let t=1;t<i.length;t++)g(e,i[t],n);return e}(e,t,n)}}function m(e,t,n){const i=y(t);!function(e){return!p(e)}(i)?h(e,i,n):w(e,i,n)}function g(e,t,n){const i=y(t);!function(e){return p(e)}(i)?h(e,i,n):w(e,i,n)}function h(e,t,n){for(const i of t)b(e,i,n);e.lengths.push(t.length)}function w(e,t,n){for(let i=t.length-1;i>=0;i--)b(e,t[i],n);e.lengths.push(t.length)}function b(e,t,n){const[i,r,o]=t;e.coords.push(i,r),n.hasZ&&e.coords.push(o||0)}function S(e){switch(typeof e){case"string":return"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function F(e){if(!e)throw new i.Z("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new i.Z("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:t}=e;if(!t)return;const n="string"==typeof t?t:"name"===t.type?t.properties.name:"EPSG"===t.type?t.properties.code:null,r=new RegExp(".*(CRS84H?|4326)$","i");if(!n||!r.test(n))throw new i.Z("geojson-layer:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:t})}function T(e,t={}){const n=[],i=new Set,r=new Set;let o,l=!1,p=null,y=!1,{geometryType:f=null}=t,m=!1;for(const t of u(e)){const{geometry:e,properties:s,id:u}=t;if((!e||(f||(f=a(e.type)),a(e.type)===f))&&(l||(l=d(c(e))),y||(y=null!=u,y&&(o=typeof u,p=Object.keys(s).filter((e=>s[e]===u)))),y&&null!=u&&(p.length>1?p=p.filter((e=>s[e]===u)):1===p.length&&(p=s[p[0]]===u?p:[])),!m&&s)){let e=!0;for(const t in s){if(i.has(t))continue;const o=s[t];if(null==o){e=!1,r.add(t);continue}const l=S(o);"unknown"!==l?(r.delete(t),i.add(t),n.push({name:t,alias:t,type:l})):r.add(t)}m=e}}const g=p&&1===p.length&&p[0]||null;if(g)for(const e of n)if(e.name===g&&(0,s.H7)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:f,hasZ:l,objectIdFieldName:g,objectIdFieldType:o,unknownFields:Array.from(r)}}function v(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:i}=t;for(const l of e){var s;const{geometry:e,properties:u,id:c}=l;if(e&&a(e.type)!==n)continue;const d=u||{};let p=null!=(s=d[i])?s:null;i&&null!=c&&!d[i]&&(d[i]=p=c);const y=new r.ZP(e?f(new o.Z,e,t):null,d,null,p);yield y}}(u(e),t))}},25278:(e,t,n)=>{n.d(t,{MS:()=>c,Dm:()=>a,Hq:()=>u,bU:()=>l});var i=n(80442),r=n(22974),o=n(61159),s=n(58333);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?s.I4:"esriGeometryPolyline"===e?s.ET:s.lF}}}function a(e,t){if((0,i.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let n=`this.${t} = null;`;for(const t in e)n+=`this${t.includes(".")?`["${t}"]`:`.${t}`} = ${JSON.stringify(e[t])};`;const i=new Function(n);return()=>new i}catch(n){return()=>({[t]:null,...e})}}function u(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.d9)(e)}}]}function c(e,t){return{attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:o.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},16467:(e,t,n)=>{n.d(t,{$9:()=>w,Lu:()=>h,w9:()=>b,j:()=>S,G4:()=>F,gp:()=>T,eS:()=>v,d:()=>j,yN:()=>I,WW:()=>k}),n(66577);var i=n(3172),r=n(20102),o=n(92604),s=n(70586),l=n(8744),a=n(40488),u=n(98732),c=n(44876),d=n(92722),p=n(25278),y=n(99514),f=n(86719),m=n(82971);const g=o.Z.getLogger("esri.layers.graphics.sources.ogcfeature"),h="http://www.opengis.net/def/crs/",w=`${h}OGC/1.3/CRS84`;async function b(e,t,n={},o=5){const{links:l}=e,a=N(l,"items","application/geo+json")||N(l,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if((0,s.Wi)(a))throw new r.Z("ogc-feature-layer:missing-items-page","Missing items url");const{data:u}=await(0,i.default)(a.href,{signal:n.signal,query:{limit:o,...n.customParameters,token:n.apiKey},headers:{accept:"application/geo+json"}});await(0,d.O3)(u);const c=(0,d.my)(u,{geometryType:t.geometryType}),m=t.fields||c.fields||[],h=null!=t.hasZ?t.hasZ:c.hasZ,w=c.geometryType,b=t.objectIdField||c.objectIdFieldName||"OBJECTID";let S=t.timeInfo;const F=m.find((e=>e.name===b));if(F)F.type="esriFieldTypeOID",F.editable=!1,F.nullable=!1;else{if(!c.objectIdFieldType)throw new r.Z("ogc-feature-layer:missing-feature-id","Collection geojson require a feature id as a unique identifier");m.unshift({name:b,alias:b,type:"esriFieldTypeOID",editable:!1,nullable:!1})}if(b!==c.objectIdFieldName){const e=m.find((e=>e.name===c.objectIdFieldName));e&&(e.type="esriFieldTypeInteger")}m===c.fields&&c.unknownFields.length>0&&g.warn({name:"ogc-feature-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:c.unknownFields}});for(const e of m){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),"esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable),!e.name)throw new r.Z("ogc-feature-layer:invalid-field-name","field name is missing",{field:e});if(-1===f.v.jsonValues.indexOf(e.type))throw new r.Z("ogc-feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e})}if(S){const e=new y.Z(m);if(S.startTimeField){const t=e.get(S.startTimeField);t?(S.startTimeField=t.name,t.type="esriFieldTypeDate"):S.startTimeField=null}if(S.endTimeField){const t=e.get(S.endTimeField);t?(S.endTimeField=t.name,t.type="esriFieldTypeDate"):S.endTimeField=null}if(S.trackIdField){const t=e.get(S.trackIdField);t?S.trackIdField=t.name:(S.trackIdField=null,g.warn({name:"ogc-feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:S}}))}S.startTimeField||S.endTimeField||(g.warn({name:"ogc-feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:S}}),S=null)}return{drawingInfo:w?(0,p.bU)(w):null,geometryType:w,fields:m,hasZ:!!h,objectIdField:b,timeInfo:S}}async function S(e,t={}){const{links:n}=e,o=N(n,"data","application/json")||N(n,"http://www.opengis.net/def/rel/ogc/1.0/data","application/json");if((0,s.Wi)(o))throw new r.Z("ogc-feature-layer:missing-collections-page","Missing collections url");const{apiKey:l,customParameters:a,signal:u}=t,{data:c}=await(0,i.default)(o.href,{signal:u,headers:{accept:"application/json"},query:{...a,token:l}});return c}async function F(e,t={}){const{links:n}=e,o=N(n,"conformance","application/json")||N(n,"http://www.opengis.net/def/rel/ogc/1.0/conformance","application/json");if((0,s.Wi)(o))throw new r.Z("ogc-feature-layer:missing-conformance-page","Missing conformance url");const{apiKey:l,customParameters:a,signal:u}=t,{data:c}=await(0,i.default)(o.href,{signal:u,headers:{accept:"application/json"},query:{...a,token:l}});return c}async function T(e,t={}){const{apiKey:n,customParameters:r,signal:o}=t,{data:s}=await(0,i.default)(e,{signal:o,headers:{accept:"application/json"},query:{...r,token:n}});return s}async function v(e,t={}){const n="application/vnd.oai.openapi+json;version=3.0",r=N(e.links,"service-desc",n);if((0,s.Wi)(r))return g.warn("ogc-feature-layer:missing-openapi-page","The OGC API-Features server does not have an OpenAPI page."),null;const{apiKey:o,customParameters:l,signal:a}=t,{data:u}=await(0,i.default)(r.href,{signal:a,headers:{accept:n},query:{...l,token:o}});return u}function j(e){const t=/^http:\/\/www\.opengis.net\/def\/crs\/(?<authority>.*)\/(?<version>.*)\/(?<code>.*)$/i.exec(e),n=null==t?void 0:t.groups;if(!n)return null;const{authority:i,code:r}=n;switch(i.toLowerCase()){case"ogc":switch(r.toLowerCase()){case"crs27":return m.Z.GCS_NAD_1927.wkid;case"crs83":return 4269;case"crs84":case"crs84h":return m.Z.WGS84.wkid;default:return null}case"esri":case"epsg":{const e=Number.parseInt(r,10);return Number.isNaN(e)?null:e}default:return null}}async function I(e,t,n){const i=await k(e,t,n);return(0,u.cn)(i)}async function k(e,t,n){const{capabilities:{query:{maxRecordCount:o}},collection:p,layerDefinition:y,queryParameters:{apiKey:f,customParameters:g},spatialReference:h,supportedCrs:w}=e,{links:b}=p,S=N(b,"items","application/geo+json")||N(b,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if((0,s.Wi)(S))throw new r.Z("ogc-feature-layer:missing-items-page","Missing items url");const{geometry:F,num:T,start:v,timeExtent:j,where:I}=t;if(t.objectIds)throw new r.Z("ogc-feature-layer:query-by-objectids-not-supported","Queries with objectids are not supported");const k=m.Z.fromJSON(h),O=(0,s.Pt)(t.outSpatialReference,k),P=O.isWGS84?null:C(O,w),Z=V(F,w),x=function(e){if((0,s.Wi)(e))return null;const{start:t,end:n}=e;return`${(0,s.pC)(t)?t.toISOString():".."}/${(0,s.pC)(n)?n.toISOString():".."}`}(j),G=(D=I,(0,s.Wi)(D)||!D||"1=1"===D?null:D),M=null!=T?T:null!=v&&void 0!==v?10:o,{data:_}=await(0,i.default)(S.href,{...n,query:{...g,...Z,crs:P,datetime:x,query:G,limit:M,startindex:v,token:f},headers:{accept:"application/geo+json"}});var D;let q=!1;_.links&&(q=!!_.links.find((e=>"next"===e.rel))),!q&&Number.isInteger(_.numberMatched)&&Number.isInteger(_.numberReturned)&&(q=_.numberReturned<_.numberMatched);const{fields:L,globalIdField:R,hasM:W,hasZ:J,objectIdField:$}=y,A=y.geometryType,B=(0,d.lG)(_,{geometryType:A,hasZ:J,objectIdField:$});if(!P&&O.isWebMercator)for(const e of B)if((0,s.pC)(e.geometry)){const t=(0,u.di)(e.geometry,A,J,!1);t.spatialReference=m.Z.WGS84,e.geometry=(0,u.GH)((0,a.iV)(t,O))}for(const e of B)e.objectId=e.attributes[$];const E=P||!P&&O.isWebMercator?O.toJSON():l.Zn,U=new c.Z;return U.exceededTransferLimit=q,U.features=B,U.fields=L,U.geometryType=A,U.globalIdFieldName=R,U.hasM=W,U.hasZ=J,U.objectIdFieldName=$,U.spatialReference=E,U}function C(e,t){var n,i,r;const{isWebMercator:o,wkid:s}=e;if(!s)return null;const l=o?null!=(n=null!=(i=null!=(r=t[3857])?r:t[102100])?i:t[102113])?n:t[900913]:t[e.wkid];return l?`${h}${l}`:null}function O(e){if((0,s.Wi)(e))return"";const{xmin:t,ymin:n,xmax:i,ymax:r}=e;return`${t},${n},${i},${r}`}function V(e,t){if(!function(e){return(0,s.pC)(e)&&"extent"===e.type}(e))return null;const{spatialReference:n}=e;if(!n||n.isWGS84)return{bbox:O(e)};const i=C(n,t);return(0,s.pC)(i)?{bbox:O(e),"bbox-crs":i}:n.isWebMercator?{bbox:O((0,a.iV)(e,m.Z.WGS84))}:null}function N(e,t,n){return e.find((e=>e.rel===t&&e.type===n))||e.find((e=>e.rel===t&&!e.type))}},1231:(e,t,n)=>{n.d(t,{Z:()=>g});var i,r=n(43697),o=n(35454),s=n(96674),l=n(5600),a=(n(67676),n(80442),n(75215)),u=n(36030),c=n(71715),d=n(52011),p=n(72729),y=n(86719);const f=new o.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=i=class extends s.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null}readDescription(e,{description:t}){let n;try{n=JSON.parse(t)}catch(e){}return n?n.value:null}readValueType(e,{description:t}){let n;try{n=JSON.parse(t)}catch(e){}return n?f.fromJSON(n.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType})}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,r._)([(0,l.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,r._)([(0,l.Cb)()],m.prototype,"description",void 0),(0,r._)([(0,c.r)("description")],m.prototype,"readDescription",null),(0,r._)([(0,l.Cb)({types:p.V5,json:{read:{reader:p.im},write:!0}})],m.prototype,"domain",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,r._)([(0,l.Cb)({type:a.z8,json:{write:!0}})],m.prototype,"length",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,r._)([(0,u.J)(y.v)],m.prototype,"type",void 0),(0,r._)([(0,l.Cb)()],m.prototype,"valueType",void 0),(0,r._)([(0,c.r)("valueType",["description"])],m.prototype,"readValueType",null),m=i=(0,r._)([(0,d.j)("esri.layers.support.Field")],m);const g=m},72729:(e,t,n)=>{n.d(t,{im:()=>I,V5:()=>j}),n(80442);var i,r=n(43697),o=n(22974),s=n(5600),l=(n(75215),n(36030)),a=n(52011),u=n(96674);n(67676);let c=i=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,r._)([(0,s.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=i=(0,r._)([(0,a.j)("esri.layers.support.CodedValue")],c);const d=c,p=new(n(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let y=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,r._)([(0,l.J)(p)],y.prototype,"type",void 0),y=(0,r._)([(0,a.j)("esri.layers.support.Domain")],y);const f=y;var m;let g=m=class extends f{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new m({codedValues:(0,o.d9)(this.codedValues),name:this.name})}};(0,r._)([(0,s.Cb)({type:[d],json:{write:!0}})],g.prototype,"codedValues",void 0),(0,r._)([(0,l.J)({codedValue:"coded-value"})],g.prototype,"type",void 0),g=m=(0,r._)([(0,a.j)("esri.layers.support.CodedValueDomain")],g);const h=g;var w;n(92604),n(37697);let b=w=class extends f{constructor(e){super(e),this.type="inherited"}clone(){return new w}};(0,r._)([(0,l.J)({inherited:"inherited"})],b.prototype,"type",void 0),b=w=(0,r._)([(0,a.j)("esri.layers.support.InheritedDomain")],b);const S=b;var F;let T=F=class extends f{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new F({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]}}}})],T.prototype,"maxValue",void 0),(0,r._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],T.prototype,"minValue",void 0),(0,r._)([(0,l.J)({range:"range"})],T.prototype,"type",void 0),T=F=(0,r._)([(0,a.j)("esri.layers.support.RangeDomain")],T);const v=T,j={key:"type",base:f,typeMap:{range:T,"coded-value":h,inherited:S}};function I(e){if(!e||!e.type)return null;switch(e.type){case"range":return v.fromJSON(e);case"codedValue":return h.fromJSON(e);case"inherited":return S.fromJSON(e)}return null}},86719:(e,t,n)=>{n.d(t,{v:()=>i});const i=new(n(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})},58333:(e,t,n)=>{n.d(t,{I4:()=>r,lF:()=>s,ET:()=>o,qP:()=>l,eG:()=>a,lj:()=>c,wW:()=>u});const i=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},s={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3471],{44422:(e,t,i)=>{i.d(t,{B:()=>l});var s=i(5600);function l(e,t){const i=t?{...t,source:e}:e;return(0,s.Cb)({aliasOf:i})}},16050:(e,t,i)=>{i.d(t,{Z:()=>q});var s,l=i(43697),n=i(78223),o=i(35454),r=i(22974),a=i(92604),u=i(70586),d=i(5600),p=i(90578),c=i(36030),y=i(71715),f=i(52011),h=i(30556),m=i(75215),b=i(35671),g=i(5499),v=i(12571),S=i(32984),I=i(9833),_=i(66338),w=i(59266);const V=a.Z.getLogger("esri.renderers.ClassBreaksRenderer"),x="percent-of-total",C="field",k=new o.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:x,esriNormalizeByField:C}),F=(0,m.se)(S.Z);let B=s=class extends((0,v.W)(g.Z)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,i){if(!Array.isArray(e))return;let s=t.minValue;return e.map((e=>{const t=new S.Z;return t.read(e,i),null==t.minValue&&(t.minValue=s),null==t.maxValue&&(t.maxValue=t.minValue),s=t.maxValue,t}))}writeClassBreakInfos(e,t,i,s){const l=e.map((e=>e.write({},s)));this._areClassBreaksConsecutive()&&l.forEach((e=>delete e.classMinValue)),t[i]=l}castField(e){return null==e?e:"function"==typeof e?(V.error(".field: field must be a string value"),null):(0,m.Zs)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=(t?C:i&&x)||null,t&&i&&V.warn("warning: both normalizationField and normalizationTotal are set!")):e!==C&&e!==x||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new S.Z({minValue:e,maxValue:t,symbol:(0,n.se)(i)}):F((0,r.d9)(e)),this.classBreakInfos.push(s),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const i=this.classBreakInfos.length;for(let s=0;s<i;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]===e&&i[1]===t){this.classBreakInfos.splice(s,1);break}}}getBreakIndex(e,t){return this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))&&V.warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))&&(i={...i,arcade:await(0,w.LC)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade)))return void V.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this.getBreakIndex(e,t);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))){const e=await(0,w.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this.getBreakIndex(e,i);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}getSymbols(){const e=[];return this.classBreakInfos.forEach((t=>{t.symbol&&e.push(t.symbol)})),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${i}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new s({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol&&this.backgroundFillSymbol.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol&&this.defaultSymbol.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,r.d9)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,r.d9)(this.visualVariables),legendOptions:(0,r.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,b.io)(e,t,this.valueExpression)];(0,b.AB)(e,t,this.field),(0,b.AB)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:l,arcade:n}=(0,u.Pt)(t,{});let o=this._compiledValueExpression.valueExpression===this.valueExpression?this._compiledValueExpression.compiledFunction:null;const r=(0,u.Wg)(n).arcadeUtils;if(!o){const e=r.createSyntaxTree(this.valueExpression);o=r.createFunction(e),this._compiledValueExpression.compiledFunction=o}this._compiledValueExpression.valueExpression=this.valueExpression;const a=r.executeFunction(o,r.createExecContext(e,r.getViewInfo({viewingMode:i,scale:s,spatialReference:l})));return this._getBreakIndexfromInfos(a)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let l=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(i[this.normalizationField]);if("log"===s)l=Math.log(l)*Math.LOG10E;else if(s!==x||isNaN(e)){if(s===C&&!isNaN(t)){if(isNaN(l)||isNaN(t))return-1;l/=t}}else l=l/e*100}return this._getBreakIndexfromInfos(l)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let i=0;i<this.classBreakInfos.length;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]<=e&&(t?e<=s[1]:e<s[1]))return i}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let i=1;i<t;i++)if(e[i-1].maxValue!==e[i].minValue)return!1;return!0}};(0,l._)([(0,d.Cb)(I.K)],B.prototype,"backgroundFillSymbol",void 0),(0,l._)([(0,d.Cb)({type:[S.Z]})],B.prototype,"classBreakInfos",void 0),(0,l._)([(0,y.r)("classBreakInfos")],B.prototype,"readClassBreakInfos",null),(0,l._)([(0,h.c)("classBreakInfos")],B.prototype,"writeClassBreakInfos",null),(0,l._)([(0,d.Cb)({type:String,json:{write:!0}})],B.prototype,"defaultLabel",void 0),(0,l._)([(0,d.Cb)(I.G)],B.prototype,"defaultSymbol",void 0),(0,l._)([(0,d.Cb)({type:String,json:{write:!0}})],B.prototype,"field",void 0),(0,l._)([(0,p.p)("field")],B.prototype,"castField",null),(0,l._)([(0,d.Cb)({type:Boolean})],B.prototype,"isMaxInclusive",void 0),(0,l._)([(0,d.Cb)({type:_.Z,json:{write:!0}})],B.prototype,"legendOptions",void 0),(0,l._)([(0,d.Cb)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],B.prototype,"minValue",null),(0,l._)([(0,d.Cb)({type:String,json:{write:!0}})],B.prototype,"normalizationField",void 0),(0,l._)([(0,d.Cb)({type:Number,cast:e=>(0,m.q9)(e),json:{write:!0}})],B.prototype,"normalizationTotal",void 0),(0,l._)([(0,d.Cb)({type:k.apiValues,value:null,json:{type:k.jsonValues,read:k.read,write:k.write}})],B.prototype,"normalizationType",null),(0,l._)([(0,c.J)({classBreaks:"class-breaks"})],B.prototype,"type",void 0),(0,l._)([(0,d.Cb)({type:String,json:{write:!0}})],B.prototype,"valueExpression",void 0),(0,l._)([(0,d.Cb)({type:String,json:{write:!0}})],B.prototype,"valueExpressionTitle",void 0),B=s=(0,l._)([(0,f.j)("esri.renderers.ClassBreaksRenderer")],B);const q=B},30687:(e,t,i)=>{i.d(t,{Z:()=>M});var s,l=i(43697),n=i(78223),o=i(20102),r=i(22974),a=i(92604),u=i(70586),d=i(78286),p=i(5600),c=i(90578),y=i(36030),f=i(71715),h=i(52011),m=i(30556),b=i(22862),g=i(75215),v=i(35671),S=i(65587),I=i(5499),_=i(12571),w=i(9833),V=i(66338),x=i(44262),C=i(59266),k=i(25929),F=i(27391),B=i(59390);const q=a.Z.getLogger("esri.renderers.UniqueValueRenderer"),E=(0,g.se)(x.Z);let O=s=class extends((0,_.W)(I.Z)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this.type="unique-value",this.backgroundFillSymbol=null,this.field=null,this.field2=null,this.field3=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.fieldDelimiter=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let l=0;l<t.length;l++){const n=e.find((e=>e.value===t[l].value));n?(0,b.Hg)(n,t[l])?(s.changed.push({type:"complete",oldValue:n,newValue:t[l]}),i=!0):s.unchanged.push({oldValue:n,newValue:t[l]}):(s.added.push(t[l]),i=!0)}for(let l=0;l<e.length;l++)t.find((t=>t.value===e[l].value))||(s.removed.push(e[l]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[])}get _cache(){return{compiledFunc:null}}castField(e){return null==e||"function"==typeof e?e:(0,g.Zs)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s&&s.messages?s.messages.push(new o.Z("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):q.error(".field: cannot write field to JSON since it's not a string value")}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}readPortal(e,t,i){return i.portal||S.Z.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,k.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,k.t)(e.styleUrl,s))}set uniqueValueInfos(e){this.styleOrigin?q.error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void q.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?E(e):new x.Z({value:e,symbol:(0,n.se)(t)}),this.uniqueValueInfos.push(i),this._valueInfoMap[i.value]=i}removeUniqueValueInfo(e){if(this.styleOrigin)q.error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");else for(let t=0;t<this.uniqueValueInfos.length;t++)if(this.uniqueValueInfos[t].value===e+""){delete this._valueInfoMap[e],this.uniqueValueInfos.splice(t,1);break}}async getUniqueValueInfo(e,t){let i=t;return this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))&&(i={...i,arcade:await(0,C.LC)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade)))return void q.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return i&&i.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&((0,u.Wi)(i)||(0,u.Wi)(i.arcade))){const e=await(0,C.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return s&&s.symbol||this.defaultSymbol}getSymbols(){const e=[];for(const t of this.uniqueValueInfos)t.symbol&&e.push(t.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return`${JSON.stringify(this.backgroundFillSymbol)}.${JSON.stringify(this.defaultSymbol)}.${this.uniqueValueInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new s({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,r.d9)(this.defaultSymbol),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,r.d9)(this.visualVariables),legendOptions:(0,r.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),backgroundFillSymbol:(0,r.d9)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,r.d9)(this.uniqueValueInfos);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,r.d9)(this.styleOrigin))),Object.freeze(t)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,v.io)(e,t,this.valueExpression)];(0,v.AB)(e,t,this.field),(0,v.AB)(e,t,this.field2),(0,v.AB)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,F.n2)(this.styleOrigin,{portal:this.portal}).then((e=>{const t=[];return this._valueInfoMap={},e&&e.data&&Array.isArray(e.data.items)&&e.data.items.forEach((i=>{const s=new B.Z({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const l=new x.Z({value:i.name,symbol:s});t.push(l),this._valueInfoMap[i.name]=l})),this._set("uniqueValueInfos",Object.freeze(t)),!this.defaultSymbol&&this.uniqueValueInfos.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this}))}_updateValueInfoMap(){this._valueInfoMap={},this.uniqueValueInfos.forEach((e=>this._valueInfoMap[e.value+""]=e))}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:l,arcade:n}=(0,u.Pt)(t,{});let o=this._cache.compiledFunc;const r=(0,u.Wg)(n).arcadeUtils;if(!o){const e=r.createSyntaxTree(this.valueExpression);o=r.createFunction(e),this._cache.compiledFunc=o}const a=r.executeFunction(o,r.createExecContext(e,r.getViewInfo({viewingMode:i,scale:s,spatialReference:l})));return this._valueInfoMap[a+""]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if("function"!=typeof t&&this.field2){const e=this.field2,l=this.field3,n=[];t&&n.push(i[t]),e&&n.push(i[e]),l&&n.push(i[l]),s=n.join(this.fieldDelimiter||"")}else"function"==typeof t?s=t(e):t&&(s=i[t]);return this._valueInfoMap[s+""]}static fromPortalStyle(e,t){const i=new s(t&&t.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t&&t.portal||S.Z.getDefault());const l=i.populateFromStyle();return l.catch((t=>{q.error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)})),l}static fromStyleUrl(e,t){const i=new s(t&&t.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const l=i.populateFromStyle();return l.catch((t=>{q.error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)})),l}};(0,l._)([(0,p.Cb)({readOnly:!0})],O.prototype,"_cache",null),(0,l._)([(0,y.J)({uniqueValue:"unique-value"})],O.prototype,"type",void 0),(0,l._)([(0,p.Cb)(w.K)],O.prototype,"backgroundFillSymbol",void 0),(0,l._)([(0,p.Cb)({json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],O.prototype,"field",void 0),(0,l._)([(0,c.p)("field")],O.prototype,"castField",null),(0,l._)([(0,m.c)("field")],O.prototype,"writeField",null),(0,l._)([(0,p.Cb)({type:String,json:{write:!0}})],O.prototype,"field2",void 0),(0,l._)([(0,p.Cb)({type:String,json:{write:!0}})],O.prototype,"field3",void 0),(0,l._)([(0,p.Cb)({type:String,json:{write:!0}})],O.prototype,"valueExpression",void 0),(0,l._)([(0,p.Cb)({type:String,json:{write:!0}})],O.prototype,"valueExpressionTitle",void 0),(0,l._)([(0,p.Cb)({type:V.Z,json:{write:!0}})],O.prototype,"legendOptions",void 0),(0,l._)([(0,p.Cb)({type:String,json:{write:!0}})],O.prototype,"defaultLabel",void 0),(0,l._)([(0,p.Cb)((0,d.RH)({...w.G},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],O.prototype,"defaultSymbol",null),(0,l._)([(0,p.Cb)({type:String,json:{write:!0}})],O.prototype,"fieldDelimiter",void 0),(0,l._)([(0,p.Cb)({type:S.Z,readOnly:!0})],O.prototype,"portal",void 0),(0,l._)([(0,f.r)("portal",["styleName"])],O.prototype,"readPortal",null),(0,l._)([(0,p.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],O.prototype,"styleOrigin",void 0),(0,l._)([(0,f.r)("styleOrigin",["styleName","styleUrl"])],O.prototype,"readStyleOrigin",null),(0,l._)([(0,m.c)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],O.prototype,"writeStyleOrigin",null),(0,l._)([(0,p.Cb)({type:[x.Z],json:{write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],O.prototype,"uniqueValueInfos",null),O=s=(0,l._)([(0,h.j)("esri.renderers.UniqueValueRenderer")],O);const M=O},32984:(e,t,i)=>{i.d(t,{Z:()=>d});var s,l=i(43697),n=i(96674),o=i(5600),r=(i(67676),i(80442),i(75215),i(52011)),a=i(9833);let u=s=class extends n.wq{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new s({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,l._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,o.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,l._)([(0,o.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,l._)([(0,o.Cb)(a.G)],u.prototype,"symbol",void 0),u=s=(0,l._)([(0,r.j)("esri.renderers.support.ClassBreakInfo")],u);const d=u},44262:(e,t,i)=>{i.d(t,{Z:()=>d});var s,l=i(43697),n=i(96674),o=i(5600),r=(i(67676),i(80442),i(75215),i(52011)),a=i(9833);let u=s=class extends n.wq{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new s({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol&&this.symbol.toJSON());return`${this.value}.${e}`}};(0,l._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,o.Cb)(a.G)],u.prototype,"symbol",void 0),(0,l._)([(0,o.Cb)({type:[String,Number],json:{type:String,write:{writer:(e,t)=>{t.value=null==e?void 0:e.toString()}}}})],u.prototype,"value",void 0),u=s=(0,l._)([(0,r.j)("esri.renderers.support.UniqueValueInfo")],u);const d=u},9833:(e,t,i)=>{i.d(t,{K:()=>u,G:()=>a});var s=i(78223),l=i(63213),n=i(21878),o=i(89164),r=i(86114);const a={types:s.QT,json:{write:{writer:n.c},origins:{"web-scene":{types:s.f_,write:{writer:n.c},read:{reader:(0,l.d)({types:s.f_})}}}}},u={types:{base:o.Z,key:"type",typeMap:{"simple-fill":s.LB.typeMap["simple-fill"],"picture-fill":s.LB.typeMap["picture-fill"],"polygon-3d":s.LB.typeMap["polygon-3d"]}},json:{write:{writer:n.c},origins:{"web-scene":{type:r.Z,write:{writer:n.c}}}}}},21878:(e,t,i)=>{i.d(t,{i:()=>v,c:()=>g});var s=i(78223),l=i(20102),n=i(70586),o=i(87223),r=i(59390),a=i(42143),u=i(4095),d=i(98587),p=i(77987),c=i(37898),y=i(20256),f=i(86114),h=i(78724),m=i(20825);const b={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function g(e,t,i,g){const v=function(e,t,i){if(!e)return null;if(i&&"web-scene"===i.origin&&!(e instanceof o.Z)&&!(e instanceof r.Z)){const o=function(e,t=b){if(!e)return{symbol:null};const{retainId:i=b.retainId,ignoreDrivers:n=b.ignoreDrivers,hasLabelingContext:o=b.hasLabelingContext,retainCIM:g=b.retainCIM}=t;let v;if((0,s.dU)(e)||e instanceof r.Z)v=e.clone();else if("cim"===e.type){var S,I;const t=null==(S=e.data)||null==(I=S.symbol)?void 0:I.type;if("CIMPointSymbol"!==t)return{error:new l.Z("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${t||"unknown"}' is unsupported in 3D`,{symbol:e})};v=g?e.clone():a.Z.fromCIMSymbol(e)}else if(e instanceof u.Z)v=d.Z.fromSimpleLineSymbol(e);else if(e instanceof p.Z)v=a.Z.fromSimpleMarkerSymbol(e);else if(e instanceof c.Z)v=a.Z.fromPictureMarkerSymbol(e);else if(e instanceof y.Z)v=f.Z.fromSimpleFillSymbol(e);else{if(!(e instanceof h.Z))return{error:new l.Z("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};v=o?m.Z.fromTextSymbol(e):a.Z.fromTextSymbol(e)}if(i&&"cim"!==v.type&&(v.id=e.id),n&&(0,s.dU)(v))for(let e=0;e<v.symbolLayers.length;++e)v.symbolLayers.getItemAt(e)._ignoreDrivers=!0;return{symbol:v}}(e,{retainCIM:!0});return(0,n.pC)(o.symbol)?o.symbol.write(t,i):(i.messages&&i.messages.push(new l.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:i,error:o.error})),null)}return i&&"web-map"===i.origin&&"web-style"===e.type?(i.messages&&i.messages.push(new l.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in webmaps. Use CIMSymbol instead when working with WebMap in MapView.`,{symbol:e,context:i})),null):e.write(t,i)}(e,{},g);v&&(t[i]=v)}function v(e,t){return(0,s.S9)(e,null,t)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6348,5732],{5732:(e,t,i)=>{i.d(t,{a:()=>s,c:()=>r,g:()=>n});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}},66577:(e,t,i)=>{i.d(t,{qM:()=>u});var r=i(75215),n=i(6570),s=i(9361),o=i(65091),l=i(13473),a=i(17332),d=i(58901);i(82971),i(86973),i(33955);const u={base:s.Z,key:"type",typeMap:{extent:n.Z,multipoint:o.Z,point:l.Z,polyline:d.Z,polygon:a.Z}};(0,r.N7)(u)},60437:(e,t,i)=>{i.d(t,{Gv:()=>p,Ue:()=>n,cS:()=>h,fS:()=>y,TC:()=>o,pp:()=>l,JR:()=>f,al:()=>s,t8:()=>c,Tn:()=>u,op:()=>d,dp:()=>a});var r=i(70586);function n(e=g){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,i,r,s,o,l=n()){return l[0]=e,l[1]=t,l[2]=i,l[3]=r,l[4]=s,l[5]=o,l}function o(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function a(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function d(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function u(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function c(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function h(e){return e?c(e,p):n(p)}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function m(e){return 6===e.length}function y(e,t,i){if((0,r.Wi)(e)||(0,r.Wi)(t))return e===t;if(!m(e)||!m(t))return!1;if(i){for(let r=0;r<e.length;r++)if(!i(e[r],t[r]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}i(6570),i(24470);const p=[1/0,1/0,1/0,-1/0,-1/0,-1/0],g=[0,0,0,0,0,0];n()},33955:(e,t,i)=>{i.d(t,{im:()=>y,q9:()=>_,Ji:()=>p,YX:()=>u,aW:()=>c,wp:()=>h,oU:()=>m,l9:()=>f});var r=i(70586),n=i(6570),s=i(9361),o=i(65091),l=i(13473),a=i(17332),d=i(58901);function u(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function c(e){return void 0!==e.points}function h(e){return void 0!==e.x&&void 0!==e.y}function f(e){return void 0!==e.paths}function m(e){return void 0!==e.rings}function y(e){return(0,r.Wi)(e)?null:e instanceof s.Z?e:h(e)?l.Z.fromJSON(e):f(e)?d.Z.fromJSON(e):m(e)?a.Z.fromJSON(e):c(e)?o.Z.fromJSON(e):u(e)?n.Z.fromJSON(e):null}function p(e){return e?h(e)?"esriGeometryPoint":f(e)?"esriGeometryPolyline":m(e)?"esriGeometryPolygon":u(e)?"esriGeometryEnvelope":c(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:l.Z,esriGeometryPolyline:d.Z,esriGeometryPolygon:a.Z,esriGeometryEnvelope:n.Z,esriGeometryMultipoint:o.Z};function _(e){return e&&g[e]||null}},86973:(e,t,i)=>{i.d(t,{Mk:()=>n,P$:()=>s});var r=i(35454);const n=(0,r.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(0,r.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},37549:(e,t,i)=>{i.d(t,{H:()=>o});var r=i(80442),n=i(24133);const s={minX:0,minY:0,maxX:0,maxY:0};class o{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.QB(9,(0,r.Z)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach(((i,r)=>{e[t++]=r})),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(this._boundsToLoad.filter((e=>this._idByBounds.has(e)))),this._boundsToLoad.length=0)}}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){s.minX=t[0],s.minY=t[1],s.maxX=t[2],s.maxY=t[3],e.search(s,i)}(this._index,e,(e=>t(this._idByBounds.get(e))))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},57191:(e,t,i)=>{i.d(t,{Z:()=>y});var r=i(20102),n=i(32448),s=i(92604),o=i(70586),l=i(60437),a=i(24470),d=i(98732),u=i(37549),c=i(29730),h=i(70272),f=i(5428);const m={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new h.ZP(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>(e.centroid||(e.centroid=(0,c.Y)(new f.Z,e.geometry,t.hasZ,t.hasM)),e.centroid)};class y{constructor(e){this.geometryInfo=e,this._boundsStore=new u.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new n.Z,this.featureAdapter=m}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){if(!this.numFeatures)return null;const e=(0,a.Ue)(a.Gv);return this._featuresById.forEach((t=>{const i=this._boundsStore.get(t.objectId);i&&(e[0]=Math.min(i[0],e[0]),e[1]=Math.min(i[1],e[1]),e[2]=Math.max(i[2],e[2]),e[3]=Math.max(i[3],e[3]))})),e}get storeStatistics(){let e=0;return this._featuresById.forEach((t=>{(0,o.pC)(t.geometry)&&t.geometry.coords&&(e+=t.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t,i){for(const r of e){const e=this._boundsStore.get(r.objectId);e&&t((0,l.JR)(i,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach((t=>e(t)))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,(e=>{t(this._featuresById.get(e))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let e=!1;this._featuresById.forEach(((t,i)=>{this._markedIds.has(i)||(e=!0,this._remove(t))})),this._markedIds.clear(),e&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void s.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.Z("featurestore:invalid-feature","feature id is missing",{feature:e}));const i=this._featuresById.get(t);let n;if(this._markedIds.add(t),i?(e.displayId=i.displayId,n=this._boundsStore.get(t),this._boundsStore.delete(t)):(0,o.pC)(this.onFeatureAdd)&&this.onFeatureAdd(e),(0,o.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);n=(0,d.$)((0,o.pC)(n)?n:(0,a.Ue)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),(0,o.pC)(n)&&this._boundsStore.set(t,n),this._featuresById.set(t,e)}_remove(e){return(0,o.pC)(this.onFeatureRemove)&&this.onFeatureRemove(e),this._markedIds.delete(e.objectId),this._boundsStore.delete(e.objectId),this._featuresById.delete(e.objectId),e}}},23095:(e,t,i)=>{i.d(t,{av:()=>l,d1:()=>d,b:()=>y,O0:()=>c,og:()=>m});var r=i(8744),n=i(35671);class s{constructor(){this.code=null,this.description=null}}class o{constructor(e){this.error=new s,this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error.description=e}}function l(e){return new o(e)}class a{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function d(e){return new a(e)}const u=new Set;function c(e,t,i,r=!1,s){u.clear();for(const o in i){const a=e.get(o);if(!a)continue;const d=i[o],c=h(a,d);if(c!==d&&s&&s.push({name:"invalid-value-type",message:"attribute value was converted to match the field type",details:{field:a,originalValue:d,sanitizedValue:c}}),u.add(a.name),a&&(r||a.editable)){const e=(0,n.Qc)(a,c);if(e)return l((0,n.vP)(e,a,c));t[a.name]=c}}for(const t of e.requiredFields)if(!u.has(t.name))return l(`missing required field "${t.name}"`);return null}function h(e,t){let i=t;return"string"==typeof t&&(0,n.H7)(e)?i=parseFloat(t):null!=t&&(0,n.qN)(e)&&"string"!=typeof t&&(i=String(t)),(0,n.Pz)(i)}let f;function m(e,t){if(!e||!(0,r.JY)(t))return e;if("rings"in e||"paths"in e){if(!f)throw new TypeError("geometry engine not loaded");return f.simplify(t,e)}return e}async function y(e,t){!(0,r.JY)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return f||(f=await Promise.all([i.e(5837),i.e(247)]).then(i.bind(i,30247)),f)}()}},99514:(e,t,i)=>{i.d(t,{Z:()=>o});var r=i(35671);function n(e){return"oid"===e.type||"esriFieldTypeOID"===e.type}function s(e){return"global-id"===e.type||"esriFieldTypeGlobalID"===e.type}class o{constructor(e){if(this.fields=e,this._fieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this.dateFields=[],this.numericFields=[],this._requiredFields=null,!e)return;const t=[];for(const o of e){const e=o&&o.name;if(e){const a=l(e);this._fieldsMap.set(e,o),this._fieldsMap.set(a,o),t.push(a),"date"===(i=o).type||"esriFieldTypeDate"===i.type?(this.dateFields.push(o),this._dateFieldsSet.add(o)):(0,r.H7)(o)&&(this._numericFieldsSet.add(o),this.numericFields.push(o)),n(o)||s(o)||(o.editable=null==o.editable||!!o.editable,o.nullable=null==o.nullable||!!o.nullable)}}var i;t.sort(),this.uid=t.join(",")}destroy(){this._fieldsMap.clear()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)n(e)||s(e)||e.nullable||void 0!==(0,r.os)(e)||this._requiredFields.push(e)}return this._requiredFields}has(e){return null!=this.get(e)}get(e){return null!=e?this._fieldsMap.get(e)||this._fieldsMap.get(l(e)):void 0}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){const t=this.get(e);if(t)return t.name}}function l(e){return e.toLowerCase().trim()}},86719:(e,t,i)=>{i.d(t,{v:()=>r});const r=new(i(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})},35671:(e,t,i)=>{i.d(t,{io:()=>g,AB:()=>p,gd:()=>y,Mu:()=>I,Q0:()=>m,YN:()=>u,UF:()=>h,O5:()=>_,os:()=>v,H7:()=>Z,qN:()=>A,Pz:()=>O,Qc:()=>L,vP:()=>U});var r,n,s=i(20102),o=i(78286);(n=r||(r={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",n.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";var l=i(59266);const a=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],d=["field","normalizationField"];function u(e,t){if(null!=e&&null!=t)for(const i of Array.isArray(e)?e:[e])if(c(a,i,t),"visualVariables"in i&&i.visualVariables)for(const e of i.visualVariables)c(d,e,t)}function c(e,t,i){if(e)for(const r of e){const e=(0,o.hS)(r,t),n=e&&"function"!=typeof e&&i.get(e);n&&(0,o.RB)(r,n.name,t)}}function h(e,t){if(null!=e&&null!=t&&t.fields.length)if("startField"in e){const i=t.get(e.startField),r=t.get(e.endField);e.startField=i&&i.name||null,e.endField=r&&r.name||null}else{const i=t.get(e.startTimeField),r=t.get(e.endTimeField);e.startTimeField=i&&i.name||null,e.endTimeField=r&&r.name||null}}const f=new Set;function m(e,t){return e&&t?(f.clear(),y(f,e,t),Array.from(f).sort()):[]}function y(e,t,i){var r;if(i)if(null!=t&&null!=(r=t.fields)&&r.length)if(i.includes("*"))for(const{name:i}of t.fields)e.add(i);else for(const r of i)p(e,t,r);else{if(i.includes("*"))return e.clear(),void e.add("*");for(const t of i)e.add(t)}}function p(e,t,i){if("string"==typeof i)if(t){const r=t.get(i);r&&e.add(r.name)}else e.add(i)}async function g(e,t,i){var r;if(!i)return;const{arcadeUtils:n}=await(0,l.LC)(),s=n.extractFieldNames(i,null==t||null==(r=t.fields)?void 0:r.map((e=>e.name)));for(const i of s)p(e,t,i)}function _({displayField:e,fields:t}){return e||(t&&t.length?b(t,"name-or-title")||b(t,"unique-identifier")||b(t,"type-or-category")||function(e){for(const t of e){if(!t||!t.name)continue;const e=t.name.toLowerCase();if(e.indexOf("name")>-1||e.indexOf("title")>-1)return t.name}return null}(t):null)}function b(e,t){for(const i of e)if(i&&i.valueType&&i.valueType===t)return i.name;return null}async function I(e,t){const{labelingInfo:r,fieldsIndex:n}=t;r&&r.length&&await Promise.all(r.map((t=>async function(e,t,r){if(!r)return;const n=r.getLabelExpression(),o=r.where;if("arcade"===n.type)await g(e,t,n.expression);else{const i=n.expression.match(/{[^}]*}/g);i&&i.forEach((i=>{p(e,t,i.slice(1,-1))}))}await async function(e,t,r){if(r&&"1=1"!==r){const n=(await Promise.all([i.e(1534),i.e(5732)]).then(i.bind(i,41534))).WhereClause.create(r,t);if(!n.isStandardized)throw new s.Z("fieldUtils:collectFilterFields","Where clause is not standardized");y(e,t,n.fieldNames)}}(e,t,o)}(e,n,t))))}function v(e){const t=e.defaultValue;return void 0!==t&&C(e,t)?t:e.nullable?null:void 0}function F(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function S(e){return null===e||F(e)}const w="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function T(e){return null===e||w(e)}function x(e){return null!=e&&"string"==typeof e}function M(e){return null===e||x(e)}function B(){return!0}function C(e,t){let i;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":i=e.nullable?T:w;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":i=e.nullable?S:F;break;case"string":case"esriFieldTypeString":i=e.nullable?M:x;break;default:i=B}return 1===arguments.length?i:i(t)}const N=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function Z(e){return null!=e&&N.has(e.type)}function A(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var E,G;function O(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function L(e,t){return e.nullable&&null===t?null:Z(e)&&!function(e,t){const i="string"==typeof e?D(e):e;return!!i&&(i.isInteger?w(t)&&t>=i.min&&t<=i.max:t>=i.min&&t<=i.max)}(e.type,Number(t))?E.OUT_OF_RANGE:C(e,t)?e.domain?function(e,t){switch(e.type){case"range":{const i="range"in e?e.range[0]:e.minValue,n="range"in e?e.range[1]:e.maxValue;if(+t<i||+t>n)return r.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==e.codedValues||e.codedValues.every((e=>null==e||e.code!==t)))return r.INVALID_CODED_VALUE}return null}(e.domain,t):null:G.INVALID_TYPE}function D(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return P;case"esriFieldTypeInteger":case"integer":return V;case"esriFieldTypeSingle":case"single":return R;case"esriFieldTypeDouble":case"double":return $}}!function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(E||(E={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(G||(G={}));const P={min:-32768,max:32767,isInteger:!0},V={min:-2147483648,max:2147483647,isInteger:!0},R={min:-34e37,max:12e37,isInteger:!1},$={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function U(e,t,i){switch(e){case r.INVALID_CODED_VALUE:return`Value ${i} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case r.VALUE_OUT_OF_RANGE:return`Value ${i} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case G.INVALID_TYPE:return`Value ${i} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case E.OUT_OF_RANGE:{const{min:e,max:r}=D(t.type);return`Value ${i} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${r}`}}}},98046:(e,t,i)=>{i.d(t,{Z:()=>f});var r,n=i(43697),s=i(22303),o=i(22974),l=i(5600),a=i(75215),d=i(36030),u=i(52011),c=i(899);let h=r=class extends c.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new r({fromColor:(0,o.d9)(this.fromColor),toColor:(0,o.d9)(this.toColor),algorithm:this.algorithm})}};(0,n._)([(0,d.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],h.prototype,"algorithm",void 0),(0,n._)([(0,l.Cb)({type:s.Z,json:{type:[a.z8],write:!0}})],h.prototype,"fromColor",void 0),(0,n._)([(0,l.Cb)({type:s.Z,json:{type:[a.z8],write:!0}})],h.prototype,"toColor",void 0),(0,n._)([(0,l.Cb)({type:["algorithmic"]})],h.prototype,"type",void 0),h=r=(0,n._)([(0,u.j)("esri.rest.support.AlgorithmicColorRamp")],h);const f=h},899:(e,t,i)=>{i.d(t,{Z:()=>a});var r=i(43697),n=i(96674),s=i(5600),o=(i(67676),i(80442),i(75215),i(52011));let l=class extends n.wq{constructor(e){super(e),this.type=null}};(0,r._)([(0,s.Cb)({readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=(0,r._)([(0,o.j)("esri.rest.support.ColorRamp")],l);const a=l},1515:(e,t,i)=>{i.d(t,{Z:()=>c});var r,n=i(43697),s=i(22974),o=i(5600),l=(i(75215),i(52011)),a=i(98046),d=i(899);let u=r=class extends d.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new r({colorRamps:(0,s.d9)(this.colorRamps)})}};(0,n._)([(0,o.Cb)({type:[a.Z],json:{write:!0}})],u.prototype,"colorRamps",void 0),(0,n._)([(0,o.Cb)({type:["multipart"]})],u.prototype,"type",void 0),u=r=(0,n._)([(0,l.j)("esri.rest.support.MultipartColorRamp")],u);const c=u},94593:(e,t,i)=>{i.d(t,{i:()=>l,V:()=>o});var r=i(98046),n=i(899),s=i(1515);const o={key:"type",base:n.Z,typeMap:{algorithmic:r.Z,multipart:s.Z}};function l(e){return e&&e.type?"algorithmic"===e.type?r.Z.fromJSON(e):"multipart"===e.type?s.Z.fromJSON(e):null:null}},59266:(e,t,i)=>{i.d(t,{mz:()=>u,pp:()=>d,WW:()=>l,Yi:()=>a,LC:()=>o}),i(66577);var r=i(70586),n=i(82971);let s;function o(){return s||(s=(async()=>{const e=await Promise.all([i.e(9490),i.e(6690)]).then(i.bind(i,96690));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),s}const l=(e,t,i)=>u.create(e,t,i,null,["$feature"]),a=(e,t,i)=>u.create(e,t,i,null,["$feature","$view"]),d=(e,t,i,r)=>u.create(e,t,i,r,["$feature","$view"]);class u{constructor(e,t,i,r,n,s,o,l){this.script=e,this.evaluate=n;const a=Array.isArray(o)?o:o.fields;this.fields=a,this._syntaxTree=r,this._arcade=t,this._arcadeDictionary=i,this._arcadeFeature=s,this._spatialReference=l,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,i,s,l,a){const{arcade:d,Feature:c,Dictionary:h}=await o(),f=n.Z.fromJSON(t),m=d.parseScript(e,a),y=l.reduce(((e,t)=>({...e,[t]:null})),{});let p=null;(0,r.pC)(s)&&(p=new h(s),p.immutable=!0,y.$config=null);const g=d.scriptUsesGeometryEngine(m)&&d.enableGeometrySupport(),_=d.scriptUsesFeatureSet(m)&&d.enableFeatureSetSupport(),b=d.scriptIsAsync(m)&&d.enableAsyncSupport(),I={vars:y,spatialReference:f,useAsync:!!b},v=new h;v.immutable=!1,v.setField("scale",0);const F=d.compileScript(m,I);return await Promise.all([g,_,b]),new u(e,d,h,m,(e=>("$view"in e&&e.$view&&(v.setField("scale",e.$view.scale),e.$view=v),p&&(e.$config=p),F({vars:e,spatialReference:f}))),new c,i,f)}repurposeFeature(e){return e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields}),this._arcadeFeature}repurposeAdapter(e){return this._arcadeFeature.repurposeFromAdapter(e,{fields:this.fields}),this._arcadeFeature}createDictionary(){return new this._arcadeDictionary}referencesMember(e){return this._arcade.referencesMember(this._syntaxTree,e)}referencesFunction(e){return this._arcade.referencesFunction(this._syntaxTree,e)}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}extractFieldLiterals(){return this._arcade.extractExpectedFieldLiterals(this._syntaxTree)}}},89164:(e,t,i)=>{i.d(t,{Z:()=>f});var r=i(43697),n=i(22303),s=i(35454),o=i(96674),l=i(5600),a=(i(67676),i(80442),i(75215),i(71715)),d=i(52011);const u=new s.X({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let c=0,h=class extends o.wq{constructor(e){super(e),this.id="sym"+c++,this.type=null,this.color=new n.Z([0,0,0,1])}readColor(e){return e&&null!=e[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,r._)([(0,l.Cb)({type:u.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:u.write}}})],h.prototype,"type",void 0),(0,r._)([(0,l.Cb)({type:n.Z,json:{write:{allowNull:!0}}})],h.prototype,"color",void 0),(0,r._)([(0,a.r)("color")],h.prototype,"readColor",null),h=(0,r._)([(0,d.j)("esri.symbols.Symbol")],h);const f=h}}]);