@arcgis/core 6.0.0-next.56 → 6.0.0-next.58

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 (695) hide show
  1. package/WebLinkChart.d.ts +0 -12
  2. package/WebLinkChart.js +1 -1
  3. package/applications/Components/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  4. package/applications/WebEditor/sketchUtils.js +1 -1
  5. package/arcade/arcadeCompiler.js +5 -5
  6. package/arcade/containerUtils.js +1 -1
  7. package/arcade/featureset/actions/Adapted.js +1 -1
  8. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  9. package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
  10. package/arcade/featureset/support/shared.js +1 -1
  11. package/arcade/featureset/support/sqlUtils.js +1 -1
  12. package/assets/esri/core/workers/RemoteClient.js +1 -1
  13. package/assets/esri/core/workers/chunks/00c227bcecc28fe278bb.js +1 -0
  14. package/assets/esri/core/workers/chunks/075e6c60e741482e673f.js +1 -0
  15. package/assets/esri/core/workers/chunks/076c2098570ee885d117.js +1 -0
  16. package/assets/esri/core/workers/chunks/091ce6b3de590e1d9ff6.js +1 -0
  17. package/assets/esri/core/workers/chunks/099dec4103f6e7556eb0.js +1 -0
  18. package/assets/esri/core/workers/chunks/{77267e0807cbbc00496d.js → 0be55d9bab7c3510a7f2.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{da69e8cd52aa77aa4c2c.js → 0fc1facd26c9ef96e081.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{f97dc99afe3375fc8e16.js → 1179a3574c580f7ce390.js} +1 -1
  21. package/assets/esri/core/workers/chunks/129140104be2620c0382.js +1 -0
  22. package/assets/esri/core/workers/chunks/1295fcf866e7347b2d53.js +1 -0
  23. package/assets/esri/core/workers/chunks/16219f0c56d6f6213c24.js +1 -0
  24. package/assets/esri/core/workers/chunks/185b317eec95f3370970.js +1 -0
  25. package/assets/esri/core/workers/chunks/1afc8820c283ef785729.js +1 -0
  26. package/assets/esri/core/workers/chunks/1bdef2e142e78341fec0.js +1 -0
  27. package/assets/esri/core/workers/chunks/1c874f86bfd0963aa3d2.js +1 -0
  28. package/assets/esri/core/workers/chunks/1ce0bf4ff14af8a68a5c.js +1 -0
  29. package/assets/esri/core/workers/chunks/1f1515313baeecc095a2.js +1 -0
  30. package/assets/esri/core/workers/chunks/1f710c91a82f6fd3d0f6.js +1 -0
  31. package/assets/esri/core/workers/chunks/{1894c39dabc78e7a5af8.js → 1fad7a7211bb8c9b58e3.js} +1 -1
  32. package/assets/esri/core/workers/chunks/24374aaa6fb3e12960d1.js +1 -0
  33. package/assets/esri/core/workers/chunks/24aa7b81814b4e519b01.js +1 -0
  34. package/assets/esri/core/workers/chunks/294097140e349e073b7e.js +1 -0
  35. package/assets/esri/core/workers/chunks/{c8c79d21dfce5695a089.js → 2b69fdf51b6f0b2abb75.js} +1 -1
  36. package/assets/esri/core/workers/chunks/2ba9b3b4d49eb2740a42.js +1 -0
  37. package/assets/esri/core/workers/chunks/2eb3297014f063fb4bc9.js +1 -0
  38. package/assets/esri/core/workers/chunks/2eb3cec44ce7587980a4.js +1 -0
  39. package/assets/esri/core/workers/chunks/2ee3cd6b2e5274932d31.js +1 -0
  40. package/assets/esri/core/workers/chunks/2f31766bc0f9d1d70c5a.js +1 -0
  41. package/assets/esri/core/workers/chunks/31df02c6f5b04a143ae6.js +1 -0
  42. package/assets/esri/core/workers/chunks/32d5aae2e0953420216a.js +1 -0
  43. package/assets/esri/core/workers/chunks/35109db6a6be66f895f7.js +1 -0
  44. package/assets/esri/core/workers/chunks/373b140f92eda3857f82.js +1 -0
  45. package/assets/esri/core/workers/chunks/3a1510650ce8de7edec8.js +1 -0
  46. package/assets/esri/core/workers/chunks/3b0933cea2a902a26bb7.js +1 -0
  47. package/assets/esri/core/workers/chunks/3d96676b94e8ecb6a4d1.js +1 -0
  48. package/assets/esri/core/workers/chunks/3edfd8ecf000b00a4a92.js +1 -0
  49. package/assets/esri/core/workers/chunks/3fc4b7d0ee460fc96176.js +1 -0
  50. package/assets/esri/core/workers/chunks/{f053cbfe671bd14c7d5b.js → 419d8116d8e7faccfed5.js} +1 -1
  51. package/assets/esri/core/workers/chunks/41d57b45cc2361305af3.js +1 -0
  52. package/assets/esri/core/workers/chunks/42ee1f8732e644371ea9.js +1 -0
  53. package/assets/esri/core/workers/chunks/4309f3e72c6332e01d75.js +1 -0
  54. package/assets/esri/core/workers/chunks/44ca7a56fb28227fdcbf.js +1 -0
  55. package/assets/esri/core/workers/chunks/4537f0866e903d2e9bb9.js +1 -0
  56. package/assets/esri/core/workers/chunks/49f61832e0d3b24e1608.js +1 -0
  57. package/assets/esri/core/workers/chunks/4a45505fb9a40b503672.js +29 -0
  58. package/assets/esri/core/workers/chunks/4b456c1f26d70392f7d4.js +1 -0
  59. package/assets/esri/core/workers/chunks/{28fae7da8cc4ae7a83e4.js → 4c510b1caffeec80dc6b.js} +1 -1
  60. package/assets/esri/core/workers/chunks/4ce5c9b658ba79a0b668.js +1 -0
  61. package/assets/esri/core/workers/chunks/{41694ee8990e799da225.js → 4d8f23b2e6721fb5b289.js} +1 -1
  62. package/assets/esri/core/workers/chunks/4fb8708666a614df583d.js +1 -0
  63. package/assets/esri/core/workers/chunks/4feec96a312dcc137911.js +1 -0
  64. package/assets/esri/core/workers/chunks/52ad9306fd40d488376d.js +1 -0
  65. package/assets/esri/core/workers/chunks/5375bdf46b602b19fa86.js +1 -0
  66. package/assets/esri/core/workers/chunks/549a8e7313f75ea3f85b.js +1 -0
  67. package/assets/esri/core/workers/chunks/55f97942c58455f47975.js +1 -0
  68. package/assets/esri/core/workers/chunks/566d72534d694c318e30.js +1 -0
  69. package/assets/esri/core/workers/chunks/5ce00674305e5716d27b.js +1 -0
  70. package/assets/esri/core/workers/chunks/5e032d209df500fad321.js +1 -0
  71. package/assets/esri/core/workers/chunks/{dfa1b0308e5e82d1ddfe.js → 5e4de4ddd3bdc74100e0.js} +34 -33
  72. package/assets/esri/core/workers/chunks/5ea8cdc28a81744913cd.js +1 -0
  73. package/assets/esri/core/workers/chunks/61565d4674cf77cbf1dd.js +1 -0
  74. package/assets/esri/core/workers/chunks/651e33be8bb3995d749f.js +1 -0
  75. package/assets/esri/core/workers/chunks/{d296c9561f6a6aeff973.js → 68b8dff748f1ef588653.js} +1 -1
  76. package/assets/esri/core/workers/chunks/690041373d03d02a3044.js +1 -0
  77. package/assets/esri/core/workers/chunks/{6d99e7e1aa007a6f1039.js → 69316db52d7bed746879.js} +1 -1
  78. package/assets/esri/core/workers/chunks/69384a9703abee1903c5.js +1 -0
  79. package/assets/esri/core/workers/chunks/6992a7728451c5a7b673.js +1 -0
  80. package/assets/esri/core/workers/chunks/69e5efe1acbdaddee90d.js +1 -0
  81. package/assets/esri/core/workers/chunks/6b2e09e43f449020d5ad.js +1 -0
  82. package/assets/esri/core/workers/chunks/6b5f8bf8b3480910666d.js +1 -0
  83. package/assets/esri/core/workers/chunks/70fe8b90f174ec64db2e.js +1 -0
  84. package/assets/esri/core/workers/chunks/720356fc6d5e18008471.js +1 -0
  85. package/assets/esri/core/workers/chunks/721f43554b9654481de7.js +1 -0
  86. package/assets/esri/core/workers/chunks/{3869ea1be105eaad4a38.js → 7328aca34c95fd0fc752.js} +1 -1
  87. package/assets/esri/core/workers/chunks/789567124c4a15235952.js +1 -0
  88. package/assets/esri/core/workers/chunks/{a24dc5350af001db417a.js → 7affab0d0692bdb76036.js} +1 -1
  89. package/assets/esri/core/workers/chunks/{b6e628b5d2643af4c19b.js → 7b4063f45b45ad8a7289.js} +1 -1
  90. package/assets/esri/core/workers/chunks/7c22d3669087f38c92b9.js +1 -0
  91. package/assets/esri/core/workers/chunks/7cb7bdc30f970eb9ff7f.js +1 -0
  92. package/assets/esri/core/workers/chunks/7d71cf65bbc1b3308856.js +1 -0
  93. package/assets/esri/core/workers/chunks/81cdb9705f7eee9e792f.js +1 -0
  94. package/assets/esri/core/workers/chunks/821003fe1be30d5d29aa.js +1 -0
  95. package/assets/esri/core/workers/chunks/822b9c1e172c835b9624.js +1 -0
  96. package/assets/esri/core/workers/chunks/{a7dfca326883384d2751.js → 823228f1fa6ba4e8bff2.js} +1 -1
  97. package/assets/esri/core/workers/chunks/84021d57822f374217ef.js +1 -0
  98. package/assets/esri/core/workers/chunks/847ec6b337cfb2e4a15b.js +1 -0
  99. package/assets/esri/core/workers/chunks/84f41ddd7366bfbf5b25.js +1 -0
  100. package/assets/esri/core/workers/chunks/8920d0b11951b57d6a66.js +1 -0
  101. package/assets/esri/core/workers/chunks/{c6e7c95391a54978402b.js → 893363ee500fc1288781.js} +1 -1
  102. package/assets/esri/core/workers/chunks/8b0cdbbf5c81283eae13.js +1 -0
  103. package/assets/esri/core/workers/chunks/{7850e306d7cd12653b23.js → 90de2f93b0ba1eb337fd.js} +1 -1
  104. package/assets/esri/core/workers/chunks/91b0035e3eae9e452fbc.js +1 -0
  105. package/assets/esri/core/workers/chunks/92d97e0fcc20dd5f5ac4.js +1 -0
  106. package/assets/esri/core/workers/chunks/93262d3616ac0cc4b532.js +1 -0
  107. package/assets/esri/core/workers/chunks/9748a0db6451336d51ef.js +1 -0
  108. package/assets/esri/core/workers/chunks/{69a09c6acb5ae03c67f6.js → 985ce51da8ae4984a4db.js} +1 -1
  109. package/assets/esri/core/workers/chunks/9bbff9230298b1bac46a.js +1 -0
  110. package/assets/esri/core/workers/chunks/9ca84fa9423654061d05.js +1 -0
  111. package/assets/esri/core/workers/chunks/9cae59db5b9cb37baea9.js +1 -0
  112. package/assets/esri/core/workers/chunks/{ed2626a895ca1d4a7216.js → 9dbb9e74754392b066a8.js} +1 -1
  113. package/assets/esri/core/workers/chunks/9dd3863b9d7c1a5ea20a.js +1 -0
  114. package/assets/esri/core/workers/chunks/9e62cfcb4e0188d51294.js +1 -0
  115. package/assets/esri/core/workers/chunks/a2a3edec2ee31273d609.js +1 -0
  116. package/assets/esri/core/workers/chunks/{d0e8d0f8b4e4cc13e837.js → a301aa62a03d3618eba9.js} +1 -1
  117. package/assets/esri/core/workers/chunks/a39d595fc11afedc1875.js +1 -0
  118. package/assets/esri/core/workers/chunks/a57b506c538e2186909d.js +1 -0
  119. package/assets/esri/core/workers/chunks/a722114f01e66a608cec.js +1 -0
  120. package/assets/esri/core/workers/chunks/{5bda285f6ecf725676b3.js → a7b4821fd3080cf2756f.js} +1 -1
  121. package/assets/esri/core/workers/chunks/a8d91c2654c5012400b4.js +1 -0
  122. package/assets/esri/core/workers/chunks/aa70d98e6bcbd06a8461.js +1 -0
  123. package/assets/esri/core/workers/chunks/add538f52c7bcfd154da.js +1 -0
  124. package/assets/esri/core/workers/chunks/ae0b0a562f0ab57e1883.js +1 -0
  125. package/assets/esri/core/workers/chunks/b10c534cbe311d17b7d5.js +1 -0
  126. package/assets/esri/core/workers/chunks/b2c3652c8ce9597dcf89.js +1 -0
  127. package/assets/esri/core/workers/chunks/b725d944ecd5da02fd9e.js +1 -0
  128. package/assets/esri/core/workers/chunks/b7fbbbeabaa5bfcdeabc.js +1 -0
  129. package/assets/esri/core/workers/chunks/{70ead4c231cba4084cf4.js → b856ef3a949ca06a4af5.js} +1 -1
  130. package/assets/esri/core/workers/chunks/{ae2cd50c2b938b39417b.js → b8b4f68305a4f654fa75.js} +1 -1
  131. package/assets/esri/core/workers/chunks/{97107e64407fa6825620.js → ba324fd300b6e6a584ae.js} +1 -1
  132. package/assets/esri/core/workers/chunks/bc40b96080346b91e507.js +1 -0
  133. package/assets/esri/core/workers/chunks/c5ca8245113576b35acc.js +1 -0
  134. package/assets/esri/core/workers/chunks/{c7a0c4ca37ebd1d98cf1.js → c629a676b707138e7a1c.js} +1 -1
  135. package/assets/esri/core/workers/chunks/c8a1aa90ec6d455ff82d.js +1 -0
  136. package/assets/esri/core/workers/chunks/c8dd8b67100177109619.js +1 -0
  137. package/assets/esri/core/workers/chunks/c8eb8744f1ed9d1897dc.js +1 -0
  138. package/assets/esri/core/workers/chunks/cb0e3614b78c78040662.js +1 -0
  139. package/assets/esri/core/workers/chunks/ccc89208aad7206aabd9.js +1 -0
  140. package/assets/esri/core/workers/chunks/cebd6732fe573f79849c.js +1 -0
  141. package/assets/esri/core/workers/chunks/d22e3b5d836dffdf91cc.js +1 -0
  142. package/assets/esri/core/workers/chunks/{c5ddf8b347c31fe772a3.js → d45769f8a02abe5d2917.js} +1 -1
  143. package/assets/esri/core/workers/chunks/d4b62e78bb27272a5f83.js +1 -0
  144. package/assets/esri/core/workers/chunks/d52b2a591e5e6abaa133.js +1 -0
  145. package/assets/esri/core/workers/chunks/{0978e12dd6a1cbc50b80.js → d572b125bed40a4d02b1.js} +1 -1
  146. package/assets/esri/core/workers/chunks/d65206fea850b1fc0712.js +1 -0
  147. package/assets/esri/core/workers/chunks/d6a42c936ead00ab7ad4.js +1 -0
  148. package/assets/esri/core/workers/chunks/d77887edc10d5be39ac9.js +1 -0
  149. package/assets/esri/core/workers/chunks/d7b9c16fe73f50a41099.js +1 -0
  150. package/assets/esri/core/workers/chunks/{7b6fd287e7043ad50f4e.js → d9bf0be2323e9df55834.js} +1 -1
  151. package/assets/esri/core/workers/chunks/dab98890d77a6b0b2741.js +1 -0
  152. package/assets/esri/core/workers/chunks/e2ac387e154d68fd10ca.js +1 -0
  153. package/assets/esri/core/workers/chunks/e39259ff441fb67cd3e4.js +1 -0
  154. package/assets/esri/core/workers/chunks/e3c152eeaa1c95f0f2d2.js +1 -0
  155. package/assets/esri/core/workers/chunks/e42e9dd3c933f5f864ab.js +1 -0
  156. package/assets/esri/core/workers/chunks/e4ae0fad312467f218df.js +1 -0
  157. package/assets/esri/core/workers/chunks/e50cc686db878d0a9399.js +1 -0
  158. package/assets/esri/core/workers/chunks/e7cd5eeb15d3783f803d.js +1 -0
  159. package/assets/esri/core/workers/chunks/e8042584e422044ca1d1.js +1 -0
  160. package/assets/esri/core/workers/chunks/e89640667b71c1bb4ee3.js +1 -0
  161. package/assets/esri/core/workers/chunks/e9649aa2d0fdd28d91ac.js +1 -0
  162. package/assets/esri/core/workers/chunks/ee31801144602ce816d3.js +1 -0
  163. package/assets/esri/core/workers/chunks/eff8a1a880e0eb1a6814.js +1 -0
  164. package/assets/esri/core/workers/chunks/f2b7c61462f530d812c4.js +1 -0
  165. package/assets/esri/core/workers/chunks/f56404d401dfbce29473.js +1 -0
  166. package/assets/esri/core/workers/chunks/f87416f2aa791cd1bebe.js +1 -0
  167. package/assets/esri/core/workers/chunks/{f3744b12a5d0d8ca8621.js → fa65aafac2b99478c32a.js} +1 -1
  168. package/assets/esri/core/workers/chunks/fb14a0c8d2edf868838c.js +1 -0
  169. package/assets/esri/core/workers/chunks/fb8a24aa04bd2fa43241.js +1 -0
  170. package/assets/esri/core/workers/chunks/fbb27d2cef962f725180.js +1 -0
  171. package/assets/esri/core/workers/chunks/{3c6e7dcb79d13e8aecc5.js → fc965ace82bef4c6111b.js} +1 -1
  172. package/assets/esri/core/workers/chunks/{5954f02c3901b28d8e73.js → fd9382e5207b6da74b91.js} +1 -1
  173. package/assets/esri/core/workers/chunks/fdb370546be4ad552959.js +1 -0
  174. package/assets/esri/core/workers/chunks/fefac70ebe29dff54b4c.js +1 -0
  175. package/chunks/BlurEmission.glsl.js +4 -17
  176. package/chunks/Bufferer-CclWhXVb.js +1 -1
  177. package/chunks/ColorMaterial.glsl.js +1 -1
  178. package/chunks/Component.glsl.js +2 -1
  179. package/chunks/EmissionComposite.glsl.js +2 -2
  180. package/chunks/Envelope.js +1 -1
  181. package/chunks/Envelope2D.js +1 -1
  182. package/chunks/Fog.glsl.js +3 -3
  183. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  184. package/chunks/GlobalIllumination.glsl.js +12 -11
  185. package/chunks/GlobalIlluminationBlur.glsl.js +6 -4
  186. package/chunks/ImageMaterial.glsl.js +1 -1
  187. package/chunks/LineMarker.glsl.js +2 -2
  188. package/chunks/MultiPathImpl.js +1 -1
  189. package/chunks/OperatorGeodesicBuffer.js +1 -1
  190. package/chunks/OperatorGeodeticArea.js +1 -1
  191. package/chunks/OperatorShapePreservingProject.js +1 -1
  192. package/chunks/Point2D.js +1 -1
  193. package/chunks/RealisticAtmosphere.glsl.js +7 -9
  194. package/chunks/RealisticAtmosphereCompositing.glsl.js +6 -10
  195. package/chunks/RibbonLine.glsl.js +2 -2
  196. package/chunks/Terrain.glsl.js +28 -27
  197. package/chunks/UPCPointRenderer.glsl.js +100 -0
  198. package/chunks/UnitFactory.js +1 -1
  199. package/chunks/Water.glsl.js +25 -24
  200. package/chunks/arcade.js +1 -1
  201. package/chunks/arcgis-knowledge-client-core-simd.js +4 -4
  202. package/chunks/arcgis-knowledge-client-core.js +4 -4
  203. package/chunks/array.js +1 -1
  204. package/chunks/basis_encoder.js +3 -3
  205. package/chunks/basis_transcoder.js +2 -2
  206. package/chunks/draco_mesh_decoder.js +2 -2
  207. package/chunks/dxt_encoder.js +3 -3
  208. package/chunks/i3s.js +2 -2
  209. package/chunks/languageUtils.js +1 -1
  210. package/chunks/lclayout.js +3 -3
  211. package/chunks/lerc-wasm.js +1 -1
  212. package/chunks/lyr3DWorker.js +2 -2
  213. package/chunks/pe.js +1 -1
  214. package/chunks/projector.js +1 -1
  215. package/chunks/qb3-wasm.js +1 -1
  216. package/chunks/vxlLayer.js +2 -2
  217. package/colorUtils.js +1 -1
  218. package/config.js +1 -1
  219. package/core/AsyncUpdate.js +1 -1
  220. package/core/Clonable.js +1 -1
  221. package/core/Identifiable.js +1 -1
  222. package/core/Loadable.js +1 -1
  223. package/core/MultiOriginJSONSupport.js +1 -1
  224. package/core/NumericIdentifiable.js +1 -1
  225. package/core/Promise.js +1 -1
  226. package/core/ReadOnlyMultiOriginJSONSupport.js +1 -1
  227. package/core/accessorSupport/metadata.js +1 -1
  228. package/core/accessorSupport/trackingUtils.js +1 -1
  229. package/core/asyncUtils.js +1 -1
  230. package/core/handleUtils.js +1 -1
  231. package/core/mapCollectionUtils.js +1 -1
  232. package/core/memoryEstimations.js +1 -1
  233. package/core/reactiveUtils.js +1 -1
  234. package/core/sql/SqlTimestampOffset.js +1 -1
  235. package/core/sql/WhereClause.js +1 -1
  236. package/core/sql/WhereGrammar.js +1 -1
  237. package/core/sql/writeUtils.js +1 -1
  238. package/core/sql.js +1 -1
  239. package/core/urlUtils.js +1 -1
  240. package/core/workers/workers.js +1 -1
  241. package/geohash/GeohashCell.js +1 -1
  242. package/geohash/GeohashTree.js +1 -1
  243. package/geometry/coordinateConversion/CoordinateConversionModel.d.ts +11 -56
  244. package/geometry/coordinateConversion/support/Conversion.d.ts +5 -17
  245. package/geometry/coordinateConversion/support/Format.d.ts +6 -30
  246. package/geometry/coordinateConversion/types.d.ts +15 -15
  247. package/geometry/operators/reshapeOperator.js +1 -1
  248. package/geometry/support/MeshMaterial.js +1 -1
  249. package/geometry/support/MeshMaterialMetallicRoughness.js +1 -1
  250. package/geometry/support/meshUtils/elevationSampler.js +1 -1
  251. package/graphic/AggregateGraphicOrigin.js +1 -1
  252. package/graphic/AnnotationFeatureGraphicOrigin.js +1 -1
  253. package/graphic/BuildingGraphicOrigin.js +1 -1
  254. package/graphic/CSVGraphicOrigin.js +1 -1
  255. package/graphic/CatalogGraphicOrigin.js +1 -1
  256. package/graphic/DimensionFeatureGraphicOrigin.js +1 -1
  257. package/graphic/FeatureGraphicOrigin.js +1 -1
  258. package/graphic/GeoJSONGraphicOrigin.js +1 -1
  259. package/graphic/GeoRSSGraphicOrigin.js +1 -1
  260. package/graphic/ImageryGraphicOrigin.js +1 -1
  261. package/graphic/ImageryTileGraphicOrigin.js +1 -1
  262. package/graphic/KMLGraphicOrigin.js +1 -1
  263. package/graphic/KnowledgeGraphGraphicOrigin.js +1 -1
  264. package/graphic/LinkChartGraphicOrigin.js +1 -1
  265. package/graphic/MapImageGraphicOrigin.js +1 -1
  266. package/graphic/MapNotesGraphicOrigin.js +1 -1
  267. package/graphic/OGCFeatureGraphicOrigin.js +1 -1
  268. package/graphic/OrientedImageryGraphicOrigin.js +1 -1
  269. package/graphic/ParquetGraphicOrigin.js +1 -1
  270. package/graphic/PointCloudGraphicOrigin.js +1 -1
  271. package/graphic/SceneGraphicOrigin.js +1 -1
  272. package/graphic/SketchGraphicOrigin.js +1 -1
  273. package/graphic/StreamGraphicOrigin.js +1 -1
  274. package/graphic/SubtypeGroupGraphicOrigin.js +1 -1
  275. package/graphic/TileGraphicOrigin.js +1 -1
  276. package/graphic/TrackGraphicOrigin.js +1 -1
  277. package/graphic/VectorTileGraphicOrigin.js +1 -1
  278. package/graphic/VoxelGraphicOrigin.js +1 -1
  279. package/graphic/WCSGraphicOrigin.js +1 -1
  280. package/graphic/WFSGraphicOrigin.js +1 -1
  281. package/graphic/getLayerViewLayer.js +2 -0
  282. package/identity/IdentityManagerBase.js +1 -1
  283. package/interfaces.d.ts +0 -1
  284. package/kernel.js +1 -1
  285. package/layers/ElevationLayer.js +1 -1
  286. package/layers/LinkChartLayer.d.ts +1 -1
  287. package/layers/LinkChartLayer.js +1 -1
  288. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  289. package/layers/PointCloudLayer.js +3 -3
  290. package/layers/VectorTileLayer.d.ts +17 -10
  291. package/layers/VoxelWasmPerSceneView.js +1 -1
  292. package/layers/WMTSLayer.js +1 -1
  293. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  294. package/layers/graphics/dehydratedFeatures.js +1 -1
  295. package/layers/graphics/transferFeatures.js +1 -1
  296. package/layers/knowledgeGraph/KnowledgeGraphSublayerBase.js +1 -1
  297. package/layers/mixins/APIKeyMixin.js +1 -1
  298. package/layers/mixins/ArcGISCachedService.js +1 -1
  299. package/layers/mixins/ArcGISImageService.js +1 -1
  300. package/layers/mixins/ArcGISMapService.js +1 -1
  301. package/layers/mixins/ArcGISService.js +1 -1
  302. package/layers/mixins/BlendLayer.js +1 -1
  303. package/layers/mixins/CustomParametersMixin.js +1 -1
  304. package/layers/mixins/DataElementMixin.js +1 -1
  305. package/layers/mixins/DataSeriesLayer.js +1 -1
  306. package/layers/mixins/DisplayFilteredLayer.js +1 -1
  307. package/layers/mixins/EditBusLayer.js +1 -1
  308. package/layers/mixins/FeatureEffectLayer.js +1 -1
  309. package/layers/mixins/FeatureLayerBase.js +1 -1
  310. package/layers/mixins/FeatureReductionLayer.js +1 -1
  311. package/layers/mixins/HeightModelInfoMixin.js +1 -1
  312. package/layers/mixins/OperationalLayer.js +1 -1
  313. package/layers/mixins/OrderedLayer.js +1 -1
  314. package/layers/mixins/PortalLayer.js +1 -1
  315. package/layers/mixins/PublishableLayer.js +1 -1
  316. package/layers/mixins/RasterJobHandlerMixin.js +1 -1
  317. package/layers/mixins/RasterPresetRendererMixin.js +1 -1
  318. package/layers/mixins/RefreshableLayer.js +1 -1
  319. package/layers/mixins/ReloadableLayer.js +1 -1
  320. package/layers/mixins/ScaleRangeLayer.js +1 -1
  321. package/layers/mixins/SceneService.js +1 -1
  322. package/layers/mixins/SublayersOwner.js +1 -1
  323. package/layers/mixins/TemporalLayer.js +1 -1
  324. package/layers/mixins/TrackableLayer.js +1 -1
  325. package/layers/orientedImagery/transformations/utils.js +1 -1
  326. package/layers/raster/datasets/TIFFRaster.js +1 -1
  327. package/layers/raster/datasets/pixelReader.js +1 -1
  328. package/layers/raster/datasets/xmlUtilities.js +1 -1
  329. package/layers/raster/formats/Lerc.js +1 -1
  330. package/layers/raster/formats/Qb3.js +1 -1
  331. package/layers/raster/formats/TiffDecoder.js +1 -1
  332. package/layers/raster/formats/blosc.js +1 -1
  333. package/layers/raster/formats/tiffParser.js +1 -1
  334. package/layers/raster/formats/tiffSpatialReferenceUtils.js +2 -0
  335. package/layers/raster/formats/tiffTag.js +1 -1
  336. package/layers/raster/functions/colormaps.js +1 -1
  337. package/layers/support/TitleCreator.js +1 -1
  338. package/layers/support/WMTSSublayer.js +1 -1
  339. package/layers/support/fieldUtils.d.ts +129 -57
  340. package/layers/support/fieldUtils.js +1 -1
  341. package/layers/support/geospatialPDFUtils.js +1 -1
  342. package/layers/support/imageUtils.js +1 -1
  343. package/layers/support/labelUtils.js +1 -1
  344. package/layers/support/tiles3DUtils.js +1 -1
  345. package/layers/video/VideoController.js +14 -14
  346. package/legend/ActiveLayerInfo.js +1 -1
  347. package/legend/support/sizeRampUtils.js +1 -1
  348. package/libs/basisu/BasisUEncoder.js +1 -1
  349. package/libs/basisu/BasisUTranscoder.js +1 -1
  350. package/libs/dracoMeshDecoder/dracoMeshDecoder.js +1 -1
  351. package/libs/dxtEncoder/DXTEncoder.js +1 -1
  352. package/libs/i3s/I3SModule.js +1 -1
  353. package/libs/librust-parquet/loadParquetModule.js +1 -1
  354. package/libs/librust-text/loadTextModule.js +1 -1
  355. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  356. package/libs/maquette-advanced-projector/projector.js +1 -1
  357. package/networks/Network.js +1 -1
  358. package/networks/support/TopologyValidationJobInfo.js +1 -1
  359. package/package.json +2 -2
  360. package/popup/FeaturesModel.d.ts +6 -0
  361. package/popup/FeaturesModel.js +1 -1
  362. package/portal/PortalUser.js +1 -1
  363. package/renderers/mixins/VisualVariablesMixin.js +1 -1
  364. package/renderers/visualVariables/VisualVariableFactory.js +1 -1
  365. package/rest/identify.js +1 -1
  366. package/rest/knowledgeGraph/wasmInterface/knowledgeWasmAccess.js +1 -1
  367. package/rest/layerSources/utils.js +1 -1
  368. package/rest/networks/validateNetworkTopology.js +1 -1
  369. package/rest/support/CameraInfoMixin.js +1 -1
  370. package/rest/support/NormalizationBinParametersMixin.js +1 -1
  371. package/rest/support/generateRendererUtils.js +1 -1
  372. package/smartMapping/raster/renderers/vectorField.js +1 -1
  373. package/smartMapping/renderers/type.js +1 -1
  374. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  375. package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
  376. package/smartMapping/symbology/color.js +1 -1
  377. package/smartMapping/symbology/support/Theme.js +1 -1
  378. package/support/BasemapStyle.js +1 -1
  379. package/support/LayersMixin.js +1 -1
  380. package/support/TablesMixin.js +1 -1
  381. package/support/actions/ActionBase.d.ts +14 -2
  382. package/support/actions/ActionBase.js +1 -1
  383. package/support/actions/ActionButton.js +1 -1
  384. package/support/actions/ActionToggle.js +1 -1
  385. package/support/loadArcade.js +1 -1
  386. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  387. package/views/2d/engine/flow/utils.js +1 -1
  388. package/views/2d/engine/vectorTiles/TextShaping.js +1 -1
  389. package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
  390. package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
  391. package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
  392. package/views/2d/engine/webgl/GlyphWorker.js +1 -1
  393. package/views/2d/engine/webgl/cpuMapped/CpuMeshData.js +1 -1
  394. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  395. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/bitmapUtils.js +1 -1
  396. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/surface.js +1 -1
  397. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
  398. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  399. package/views/2d/layerViewModuleImportUtils.js +1 -1
  400. package/views/2d/layers/BitmapTileLayerView2D.js +1 -1
  401. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  402. package/views/2d/layers/LayerView2D.js +1 -1
  403. package/views/2d/layers/MapImageLayerView2D.js +1 -1
  404. package/views/2d/layers/TileLayerView2D.js +1 -1
  405. package/views/2d/layers/features/FeatureContainer.js +1 -1
  406. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  407. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  408. package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
  409. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  410. package/views/2d/layers/support/visualVariableSimpleUtils.js +1 -1
  411. package/views/3d/GroundView3D.js +1 -1
  412. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  413. package/views/3d/layerViewModuleImportUtils.js +1 -1
  414. package/views/3d/layers/BuildingSublayerView3D.js +1 -1
  415. package/views/3d/layers/DynamicLayerView3D.js +1 -1
  416. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  417. package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
  418. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  419. package/views/3d/layers/I3SMeshView3D.js +1 -1
  420. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  421. package/views/3d/layers/LayerView3D.js +1 -1
  422. package/views/3d/layers/Lyr3DWorker.js +1 -1
  423. package/views/3d/layers/PointCloudIntersector.js +2 -0
  424. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  425. package/views/3d/layers/SceneLayerWorker.js +1 -1
  426. package/views/3d/layers/TiledLayerView3D.js +1 -1
  427. package/views/3d/layers/UPCPointRenderer.js +2 -0
  428. package/views/3d/layers/UPCPointRendererNode.js +2 -0
  429. package/views/3d/layers/UpdatablePointCloudLayerView3D.js +2 -0
  430. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  431. package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
  432. package/views/3d/layers/i3s/PointCloudHighlights.js +1 -1
  433. package/views/3d/layers/i3s/PointCloudNodeHighlights.js +2 -0
  434. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  435. package/views/3d/layers/i3s/PointCloudRendererNode.js +1 -1
  436. package/views/3d/layers/support/DefinitionExpressionSceneLayerView.js +1 -1
  437. package/views/3d/layers/support/GraphicsProcessorLayerView3D.js +1 -1
  438. package/views/3d/layers/support/PopupSceneLayerView.js +1 -1
  439. package/views/3d/layers/support/TemporalSceneLayerView.js +1 -1
  440. package/views/3d/layers/support/Tiles3DBVH.js +1 -1
  441. package/views/3d/layers/support/Tiles3DLayerViewRegistration.js +1 -1
  442. package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
  443. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  444. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  445. package/views/3d/support/GroundAndIMSurface.js +1 -1
  446. package/views/3d/support/QualityProfile.js +1 -1
  447. package/views/3d/support/QualitySettings.js +1 -1
  448. package/views/3d/support/cameraUtils.js +1 -1
  449. package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
  450. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  451. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  452. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  453. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  454. package/views/3d/terrain/TerrainRenderer.js +1 -1
  455. package/views/3d/webgl/RenderNode.js +1 -1
  456. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  457. package/views/3d/webgl-engine/collections/Component/ComponentObjectFixedBVH.js +1 -1
  458. package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
  459. package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
  460. package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +9 -9
  461. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  462. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  463. package/views/3d/webgl-engine/collections/Component/RenderSubmitSystem.js +1 -1
  464. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  465. package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +19 -19
  466. package/views/3d/webgl-engine/core/shaderLibrary/lastFrameUniforms.js +1 -1
  467. package/views/3d/webgl-engine/core/shaderLibrary/outputEmission.glsl.js +5 -0
  468. package/views/3d/webgl-engine/core/shaderLibrary/{util/CloudsParallaxShading.glsl.js → renderClouds.glsl.js} +5 -4
  469. package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +2 -2
  470. package/views/3d/webgl-engine/core/shaderLibrary/shading/forwardLocalUp.glsl.js +1 -5
  471. package/views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js +7 -7
  472. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +15 -12
  473. package/views/3d/webgl-engine/core/shaderLibrary/terrain/blendLayers.glsl.js +9 -9
  474. package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
  475. package/views/3d/webgl-engine/core/shaderModules/glsl.js +1 -1
  476. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
  477. package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
  478. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  479. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.glsl.js +1 -1
  480. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.js +1 -1
  481. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereCompositing.glsl.js +1 -1
  482. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereConfiguration.js +1 -1
  483. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  484. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  485. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  486. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlur.glsl.js +1 -1
  487. package/views/3d/webgl-engine/effects/globalIllumination/globalIlluminationUniforms.js +1 -1
  488. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +30 -53
  489. package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
  490. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  491. package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
  492. package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
  493. package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
  494. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  495. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  496. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  497. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  498. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  499. package/views/3d/webgl-engine/materials/HUDMaterialBaseInstance.js +1 -1
  500. package/views/3d/webgl-engine/materials/LineCalloutMaterialBaseInstance.js +1 -1
  501. package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
  502. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  503. package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
  504. package/views/3d/webgl-engine/materials/getWaterColor.glsl.js +89 -0
  505. package/views/3d/webgl-engine/materials/renderers/BufferCache.js +1 -1
  506. package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +12 -14
  507. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  508. package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
  509. package/views/3d/webgl-engine/shaders/UPCPointRenderer.glsl.js +2 -0
  510. package/views/3d/webgl-engine/shaders/UPCPointRendererTechnique.js +2 -0
  511. package/views/3d/webgl-engine/shaders/UPCPointRendererTechniqueConfiguration.js +2 -0
  512. package/views/BreakpointsOwner.js +1 -1
  513. package/views/DOMContainer.js +1 -1
  514. package/views/PopupView.js +1 -1
  515. package/views/View.d.ts +27 -1
  516. package/views/View.js +1 -1
  517. package/views/Viewport2DBaseMixin.js +1 -1
  518. package/views/Viewport2DMixin.js +1 -1
  519. package/views/animation/pointToPoint/Animation.js +1 -1
  520. package/views/interactive/Tooltip.d.ts +1 -1
  521. package/views/interactive/Tooltip.js +1 -1
  522. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  523. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  524. package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
  525. package/views/interactive/tooltip/infos/TooltipInfoWithCoordinates.js +1 -1
  526. package/views/layers/MapImageLayerView.js +1 -1
  527. package/views/layers/PointCloudLayerView.js +1 -1
  528. package/views/layers/RefreshableLayerView.js +1 -1
  529. package/views/layers/WMSLayerView.js +1 -1
  530. package/views/overlay/ViewOverlay.js +1 -1
  531. package/views/support/flow/utils.js +1 -1
  532. package/views/support/screenshotUtils.js +1 -1
  533. package/views/types.d.ts +15 -0
  534. package/views/webgl/AllocationTracer.js +1 -1
  535. package/views/webgl/InstanceCounter.js +1 -1
  536. package/views/webgl/RenderingContext.js +1 -1
  537. package/views/webgl/ShaderBuilder.js +23 -23
  538. package/views/webgl/ShaderTranspiler.js +1 -1
  539. package/views/webgl/capabilities/DisjointTimerQuery.js +1 -1
  540. package/views/webgl/capabilities.js +1 -1
  541. package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +1 -1
  542. package/widgets/CoordinateConversion/support/Conversion.d.ts +1 -0
  543. package/widgets/CoordinateConversion/support/Format.d.ts +1 -0
  544. package/widgets/Editor/EditorViewModel.js +1 -1
  545. package/widgets/Editor/workflowUtils.js +1 -1
  546. package/widgets/Feature/support/FeatureContentMixin.js +1 -1
  547. package/widgets/FeatureTable/support/EditableColumnTemplateMixin.js +1 -1
  548. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  549. package/widgets/Legend/support/sizeRampUtils.js +1 -1
  550. package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
  551. package/widgets/OrientedImageryViewer/mixins/DrawHandlerMixin.js +1 -1
  552. package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
  553. package/widgets/OrientedImageryViewer/mixins/SketchHandlerMixin.js +1 -1
  554. package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
  555. package/widgets/OrientedImageryViewer/mixins/TriangulatedSketchHandlerMixin.js +1 -1
  556. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  557. package/widgets/Sketch/support/ResponsiveToolbar/ToolbarGroupBase.js +1 -1
  558. package/widgets/smartMapping/support/utils.js +1 -1
  559. package/widgets/support/AnalysisViewModelMixin.js +1 -1
  560. package/widgets/support/AnchorElementViewModel.js +1 -1
  561. package/widgets/support/GoTo.js +1 -1
  562. package/widgets/support/InteractiveToolViewModelMixin.js +1 -1
  563. package/assets/esri/core/workers/chunks/0329fa3aa3403f1c243b.js +0 -1
  564. package/assets/esri/core/workers/chunks/04f09e1afda92cbe09f5.js +0 -1
  565. package/assets/esri/core/workers/chunks/0a97b1974367382cfdf5.js +0 -1
  566. package/assets/esri/core/workers/chunks/0b74d353f80974ff6fea.js +0 -1
  567. package/assets/esri/core/workers/chunks/0e100855bb3832a68e4b.js +0 -1
  568. package/assets/esri/core/workers/chunks/0ede8ba757fd0976d485.js +0 -1
  569. package/assets/esri/core/workers/chunks/0f39576806866cff777d.js +0 -1
  570. package/assets/esri/core/workers/chunks/0fea695721a818955abf.js +0 -1
  571. package/assets/esri/core/workers/chunks/110f78d5e78732750097.js +0 -1
  572. package/assets/esri/core/workers/chunks/1507297550c3cd1268e2.js +0 -1
  573. package/assets/esri/core/workers/chunks/193a73a2c7f4f8482c21.js +0 -1
  574. package/assets/esri/core/workers/chunks/20acb6f3ed5140b6c6c6.js +0 -1
  575. package/assets/esri/core/workers/chunks/21aa29039a95debd7f44.js +0 -1
  576. package/assets/esri/core/workers/chunks/29b74a3ff03d3c8b65dc.js +0 -1
  577. package/assets/esri/core/workers/chunks/2ad6db80a508285a3e5d.js +0 -1
  578. package/assets/esri/core/workers/chunks/2b87d5b8931305b11ff6.js +0 -1
  579. package/assets/esri/core/workers/chunks/2d4788be418a4e5f6606.js +0 -1
  580. package/assets/esri/core/workers/chunks/2f07dc632e51fddb2d48.js +0 -1
  581. package/assets/esri/core/workers/chunks/2f9adf0b809ce8797ebf.js +0 -1
  582. package/assets/esri/core/workers/chunks/3169d639ab54bf508e2c.js +0 -1
  583. package/assets/esri/core/workers/chunks/333140b18aeb5a50b654.js +0 -1
  584. package/assets/esri/core/workers/chunks/3354f1fa90f8ce4c8fde.js +0 -1
  585. package/assets/esri/core/workers/chunks/3809a8b3f31bb811d964.js +0 -1
  586. package/assets/esri/core/workers/chunks/3982409149571a827390.js +0 -1
  587. package/assets/esri/core/workers/chunks/3b11e4d2e69b7aea1d65.js +0 -1
  588. package/assets/esri/core/workers/chunks/3c1651e9e8d2e83d22df.js +0 -1
  589. package/assets/esri/core/workers/chunks/3df6631895d0a7109e00.js +0 -1
  590. package/assets/esri/core/workers/chunks/3e8d70039800f2395d66.js +0 -1
  591. package/assets/esri/core/workers/chunks/3f8d66d8447036f122ae.js +0 -1
  592. package/assets/esri/core/workers/chunks/420c6a14107a77ddad36.js +0 -1
  593. package/assets/esri/core/workers/chunks/421b8244d01736d82e7a.js +0 -1
  594. package/assets/esri/core/workers/chunks/4761cd436abceee858bf.js +0 -1
  595. package/assets/esri/core/workers/chunks/48b60ff59afbae865de1.js +0 -1
  596. package/assets/esri/core/workers/chunks/4953314fd9afd52b6eec.js +0 -1
  597. package/assets/esri/core/workers/chunks/4cf8bddc3e0619e34424.js +0 -1
  598. package/assets/esri/core/workers/chunks/4d0bb5e4a1d789cc0d75.js +0 -1
  599. package/assets/esri/core/workers/chunks/4d8539674fc2e4fea03c.js +0 -1
  600. package/assets/esri/core/workers/chunks/4de08ead94660025075b.js +0 -1
  601. package/assets/esri/core/workers/chunks/5060be52a380fc4920f8.js +0 -1
  602. package/assets/esri/core/workers/chunks/5082cdc3e91e1c6d1070.js +0 -1
  603. package/assets/esri/core/workers/chunks/52ded087d19a93e29d93.js +0 -1
  604. package/assets/esri/core/workers/chunks/53bbb9aa6e4e4a0a8121.js +0 -1
  605. package/assets/esri/core/workers/chunks/54d3cb7d95d948998591.js +0 -1
  606. package/assets/esri/core/workers/chunks/560ebf5524ade7d1f85b.js +0 -1
  607. package/assets/esri/core/workers/chunks/56f227e1a9e51d1fd742.js +0 -1
  608. package/assets/esri/core/workers/chunks/5bd451c7db17ee8f0315.js +0 -1
  609. package/assets/esri/core/workers/chunks/5c34d49a6c9cc34b7626.js +0 -1
  610. package/assets/esri/core/workers/chunks/5d75fcaded78f76efd3e.js +0 -1
  611. package/assets/esri/core/workers/chunks/5f7505ada0991cfbdd84.js +0 -1
  612. package/assets/esri/core/workers/chunks/62ddd3a82864e26f009a.js +0 -1
  613. package/assets/esri/core/workers/chunks/6737b2a4a70bbdafaf67.js +0 -1
  614. package/assets/esri/core/workers/chunks/6a339a47e765b9937dd7.js +0 -1
  615. package/assets/esri/core/workers/chunks/6c21964eb7c25c8b1e9a.js +0 -1
  616. package/assets/esri/core/workers/chunks/6fd10891506925560443.js +0 -29
  617. package/assets/esri/core/workers/chunks/703373f529c1c334cfad.js +0 -1
  618. package/assets/esri/core/workers/chunks/71a05edd6f7f3197e621.js +0 -1
  619. package/assets/esri/core/workers/chunks/72b7e7b518c88b7569dd.js +0 -1
  620. package/assets/esri/core/workers/chunks/733c32d8091427d84de7.js +0 -1
  621. package/assets/esri/core/workers/chunks/73918ca7fdf41272d941.js +0 -1
  622. package/assets/esri/core/workers/chunks/7673217a688d739141e2.js +0 -1
  623. package/assets/esri/core/workers/chunks/76869c14dd7ffaae7eff.js +0 -1
  624. package/assets/esri/core/workers/chunks/7b156905d168bf973518.js +0 -1
  625. package/assets/esri/core/workers/chunks/7baa49055bc31618b56e.js +0 -1
  626. package/assets/esri/core/workers/chunks/7bd5a074d9f4ba137649.js +0 -1
  627. package/assets/esri/core/workers/chunks/7c13d7754fc914a87817.js +0 -1
  628. package/assets/esri/core/workers/chunks/7dc2e714234b2cee8701.js +0 -1
  629. package/assets/esri/core/workers/chunks/835e0315661003caa71f.js +0 -1
  630. package/assets/esri/core/workers/chunks/8570e3df90fb76a8741a.js +0 -1
  631. package/assets/esri/core/workers/chunks/860552f49f17de2f3353.js +0 -1
  632. package/assets/esri/core/workers/chunks/86578c191d76062157ec.js +0 -1
  633. package/assets/esri/core/workers/chunks/87d6e99d83db9a8cda7c.js +0 -1
  634. package/assets/esri/core/workers/chunks/88df1b8b295d3aed649f.js +0 -1
  635. package/assets/esri/core/workers/chunks/8c9934d30655dd2c48da.js +0 -1
  636. package/assets/esri/core/workers/chunks/9117c9b720c9ba6e7a6e.js +0 -1
  637. package/assets/esri/core/workers/chunks/939fb9a8c301ace07186.js +0 -1
  638. package/assets/esri/core/workers/chunks/94a38c9b3d086b37242f.js +0 -1
  639. package/assets/esri/core/workers/chunks/98e1751f888975532afc.js +0 -1
  640. package/assets/esri/core/workers/chunks/9b727f45dfea84357b57.js +0 -1
  641. package/assets/esri/core/workers/chunks/9d61f10f2bef15b5811d.js +0 -1
  642. package/assets/esri/core/workers/chunks/9dcf5be203f8b1e47d9d.js +0 -1
  643. package/assets/esri/core/workers/chunks/9eb00bb8dab995c2dcb3.js +0 -1
  644. package/assets/esri/core/workers/chunks/9ed81757937fe08363ed.js +0 -1
  645. package/assets/esri/core/workers/chunks/9fe07947cf4ec44014e8.js +0 -1
  646. package/assets/esri/core/workers/chunks/a05a2c2aaf0c288f9681.js +0 -1
  647. package/assets/esri/core/workers/chunks/a1d265614d038eb603f7.js +0 -1
  648. package/assets/esri/core/workers/chunks/a3d02885d6962b49eee4.js +0 -1
  649. package/assets/esri/core/workers/chunks/a66d6298236d59a615db.js +0 -1
  650. package/assets/esri/core/workers/chunks/a710c7a0584d9e45a469.js +0 -1
  651. package/assets/esri/core/workers/chunks/ab76170c374fd67ce8cd.js +0 -1
  652. package/assets/esri/core/workers/chunks/ab784764ddf9d7f693a1.js +0 -1
  653. package/assets/esri/core/workers/chunks/ace210d313ce53f3ae10.js +0 -1
  654. package/assets/esri/core/workers/chunks/aebd12488b4004e207a3.js +0 -1
  655. package/assets/esri/core/workers/chunks/b7426e5f290573cb9689.js +0 -1
  656. package/assets/esri/core/workers/chunks/b88e1084097a93a89f61.js +0 -1
  657. package/assets/esri/core/workers/chunks/baa5aa0670b23db86b50.js +0 -1
  658. package/assets/esri/core/workers/chunks/c0867890a84b4c98e0ba.js +0 -1
  659. package/assets/esri/core/workers/chunks/c1a551c4aa77f123d091.js +0 -1
  660. package/assets/esri/core/workers/chunks/c58f859dec9d6675dbd6.js +0 -1
  661. package/assets/esri/core/workers/chunks/c7425fb5e804f0f9d4dd.js +0 -1
  662. package/assets/esri/core/workers/chunks/c7b1c6d57603fa385c54.js +0 -1
  663. package/assets/esri/core/workers/chunks/c85184baccb4004bf42b.js +0 -1
  664. package/assets/esri/core/workers/chunks/ccf4b5fdcdace533bcb7.js +0 -1
  665. package/assets/esri/core/workers/chunks/cd8181600623e18f511c.js +0 -1
  666. package/assets/esri/core/workers/chunks/cef537fa9705dd1cf685.js +0 -1
  667. package/assets/esri/core/workers/chunks/d33403d578fbeecaf844.js +0 -1
  668. package/assets/esri/core/workers/chunks/d5bb6f479c0cdfc21d8a.js +0 -1
  669. package/assets/esri/core/workers/chunks/d689e7c685dd9a444d19.js +0 -1
  670. package/assets/esri/core/workers/chunks/d8b84d21144a58b6b911.js +0 -1
  671. package/assets/esri/core/workers/chunks/d8ffb1502def5c85740b.js +0 -1
  672. package/assets/esri/core/workers/chunks/db96d1d9f6d1a4d7fd2a.js +0 -1
  673. package/assets/esri/core/workers/chunks/ddbfa664e69612295785.js +0 -1
  674. package/assets/esri/core/workers/chunks/de35baceeb815e6befd5.js +0 -1
  675. package/assets/esri/core/workers/chunks/ded81c504bf44806ca7d.js +0 -1
  676. package/assets/esri/core/workers/chunks/e0466387b2ab54d706ca.js +0 -1
  677. package/assets/esri/core/workers/chunks/e164198dbb87ee202ba1.js +0 -1
  678. package/assets/esri/core/workers/chunks/e4eb6fdf5115bed48856.js +0 -1
  679. package/assets/esri/core/workers/chunks/e566102c7ed7a8ebf89e.js +0 -1
  680. package/assets/esri/core/workers/chunks/e59271f8b142a7602b7a.js +0 -1
  681. package/assets/esri/core/workers/chunks/ee70be138831cc2a0f56.js +0 -1
  682. package/assets/esri/core/workers/chunks/eef3fa804e456beac4c1.js +0 -1
  683. package/assets/esri/core/workers/chunks/efd6ea0966f60ab19520.js +0 -1
  684. package/assets/esri/core/workers/chunks/f23c4fd014126ea7abc6.js +0 -1
  685. package/assets/esri/core/workers/chunks/f319b59228b64e7f9008.js +0 -1
  686. package/assets/esri/core/workers/chunks/f42adcea81390fb21c66.js +0 -1
  687. package/assets/esri/core/workers/chunks/f52d081bbde5c95265cf.js +0 -1
  688. package/assets/esri/core/workers/chunks/f6e40f3faf0c80cf1b3a.js +0 -1
  689. package/assets/esri/core/workers/chunks/f7ab4bf14ec8e986ef7c.js +0 -1
  690. package/assets/esri/core/workers/chunks/f92c92c0fd1b5b33ca21.js +0 -1
  691. package/assets/esri/core/workers/chunks/fbd5f3b81cd9f061824d.js +0 -1
  692. package/assets/esri/core/workers/chunks/fdcc5fe4630a4ccf58de.js +0 -1
  693. package/assets/esri/core/workers/chunks/ff0a0819bba5e8264c47.js +0 -1
  694. package/assets/esri/core/workers/chunks/ff225735eba7f9130e19.js +0 -1
  695. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +0 -70
@@ -1 +0,0 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[9279],{52106(e,t,r){r.d(t,{A:()=>S});var i,o,l=r(32198),n=r(91429),s=r(69540),a=r(51447),p=r(25482),u=r(53966),y=r(36708),d=r(12195),c=r(24326),g=r(65864),h=r(50498),f=r(55156),m=r(60950),b=r(54339),v=r(40124),w=r(94128),C=r(33910);const M=Symbol("meshGeometryHandles");function x(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let S=class extends((0,s.OU)(p.o)){static{i=w.Z}static{o=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperties(this,{uid:{value:(0,c.c)(),configurable:!0},_lastMeshTransform:{value:{},configurable:!0,writable:!0,enumerable:!1}}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,m.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,f.I)(this.origin);if(e)return(0,b.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){let e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:x(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,d.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let o={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(o.action=i),"attributes"===e&&(o.attributeName=i),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(M);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,y.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,y.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],M)}};(0,l.Cg)([(0,n.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,g.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],S.prototype,"aggregateGeometries",null),(0,l.Cg)([(0,n.MZ)({value:null})],S.prototype,"attributes",null),(0,l.Cg)([(0,n.MZ)({value:null,types:h.yR,json:{read:g.rS}})],S.prototype,"geometry",null),(0,l.Cg)([(0,n.MZ)()],S.prototype,"distance",void 0),(0,l.Cg)([(0,n.MZ)({type:Boolean})],S.prototype,"isAggregate",void 0),(0,l.Cg)([(0,n.MZ)({clonable:!1})],S.prototype,"layer",void 0),(0,l.Cg)([(0,n.MZ)({clonable:"reference"})],S.prototype,"origin",void 0),(0,l.Cg)([(0,n.MZ)({type:v.A,value:null})],S.prototype,"popupTemplate",null),(0,l.Cg)([(0,n.MZ)({clonable:"reference"})],S.prototype,"sourceLayer",void 0),(0,l.Cg)([(0,n.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],S.prototype,"statisticsAggregatedIds",void 0),(0,l.Cg)([(0,n.MZ)({value:null,types:C.Es})],S.prototype,"symbol",null),(0,l.Cg)([(0,n.MZ)({clonable:!1,json:{read:!1,write:!1}})],S.prototype,"_version",void 0),(0,l.Cg)([(0,n.MZ)({type:Boolean,value:!0})],S.prototype,"visible",null),S=o=(0,l.Cg)([(0,n.$K)("esri.Graphic")],S)},4902(e,t,r){var i=r(32198),o=r(64108);let l=0;const n=e=>{let t=e,r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+l++})}};return r=(0,i.Cg)([(0,o.$K)("esri.core.Identifiable")],r),r};n(class{}),r.d(t,["s",0,n])},55156(e,t,r){r.d(t,{I:()=>o});const i=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},4146(e,t,r){r.d(t,{A:()=>b});var i=r(32198),o=r(91429),l=r(49186),n=r(65529),s=r(4902),a=r(92474),p=r(53966),u=r(17676),y=r(84952),d=r(5443),c=r(16930),g=r(78888),h=r(79677),f=r(92602);let m=0,b=class extends((0,n.Zt)((0,s.s)(a.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new d.A({xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:c.A.WGS84}),this.id=Date.now().toString(16)+"-layer-"+m++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=c.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){let t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(()=>r(27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){let t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([r.e(9917),r.e(812),r.e(5613)]).then(()=>r(45613));try{return await i(t)}catch(e){let r=t?.portalItem,i=r?.id||"unset",o=r?.portal?.url||f.A.portalUrl;throw p.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,u.zf)(e)||p.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){let{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){let{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,y.An)(this.url)}createLayerView(e,t){return Promise.reject(new l.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){let e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,g.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new l.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,o.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,i.Cg)([(0,o.MZ)({type:d.A})],b.prototype,"fullExtent",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,i.Cg)([(0,o.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,o.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,i.Cg)([(0,o.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,o.MZ)({type:c.A})],b.prototype,"spatialReference",void 0),(0,i.Cg)([(0,o.MZ)({type:String})],b.prototype,"title",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)()],b.prototype,"url",void 0),(0,i.Cg)([(0,o.MZ)({type:h.A})],b.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,i.Cg)([(0,o.$K)("esri.layers.Layer")],b)},52136(e,t,r){var i=r(32198),o=r(91429);r.d(t,["p",0,e=>{let t=e,r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,i.Cg)([(0,o.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>s});var i=r(32198),o=r(91429),l=r(93637),n=r(91880);function s(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let o=new n.A;return o.read(i,r),[o]}const a={type:[n.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:s},write:{writer:function(e,t,r,i){let o=e.find(e=>!!e.field);o&&(0,l.sM)(r,[o.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,o.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},28032(e,t,r){r.d(t,{A:()=>a});var i=r(32198),o=r(91429),l=r(69540),n=r(25482),s=r(56400);let a=class extends((0,l.OU)(n.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,o.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,o.MZ)((0,s.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,o.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>p});var i=r(32198),o=r(91429),l=r(69540),n=r(66552),s=r(25482);const a=new n.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,l.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"drawingTool",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,i.Cg)([(0,o.$K)("esri.layers.support.FeatureTemplate")],p)},33143(e,t,r){r.d(t,{A:()=>y});var i=r(32198),o=r(91429),l=r(69540),n=r(25482),s=r(8631),a=r(29005),p=r(36005),u=r(43937);let y=class extends((0,l.OU)(n.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,s.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],y.prototype,"id",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],y.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],y.prototype,"domains",void 0),(0,i.Cg)([(0,p.w)("domains")],y.prototype,"readDomains",null),(0,i.Cg)([(0,u.K)("domains")],y.prototype,"writeDomains",null),(0,i.Cg)([(0,o.MZ)({type:[a.A],json:{write:!0}})],y.prototype,"templates",void 0),y=(0,i.Cg)([(0,o.$K)("esri.layers.support.FeatureType")],y)},46499(e,t,r){var i,o,l=r(32198),n=r(91429),s=r(90360),a=(r(44208),r(66552)),p=r(25482),u=r(4718),y=r(90629),d=r(59868),c=r(73838),g=r(33910),h=r(73913),f=r(32730),m=r(77548),b=r(36005),v=r(43937);const w=new a.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function C(e,t,r){return{enabled:!(0,m.TU)(r?.layer)}}function M(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function x(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let S=class extends p.o{static{i=f.vK}static{o=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),o=i[3],l=r(t[i[4]],i[5],i[6]);switch(o){case"AND":return e&&l;case"OR":return e||l}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=d.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,f.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,f.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&M(i))e=new h.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let o=e.toJSON(i);o.expression&&(t[r]=o)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,f.XJ)(this)}getLabelExpressionArcade(){return(0,f.BI)(this)}getLabelExpressionSingleField(){return(0,f.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new o({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,u.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,u.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],S.prototype,"name",void 0),(0,l.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:C}}}}})],S.prototype,"allowOverrun",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:C}}}}})],S.prototype,"deconflictionStrategy",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&x(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],S.prototype,"labelExpression",void 0),(0,l.Cg)([(0,b.w)("labelExpression")],S.prototype,"readLabelExpression",null),(0,l.Cg)([(0,v.K)("labelExpression")],S.prototype,"writeLabelExpression",null),(0,l.Cg)([(0,n.MZ)({type:h.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return M(e)||x(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],S.prototype,"labelExpressionInfo",void 0),(0,l.Cg)([(0,v.K)("labelExpressionInfo")],S.prototype,"writeLabelExpressionInfo",null),(0,l.Cg)([(0,n.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],S.prototype,"labelPlacement",void 0),(0,l.Cg)([(0,n.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],S.prototype,"offsetDistance",void 0),(0,l.Cg)([(0,n.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],S.prototype,"labelPosition",void 0),(0,l.Cg)([(0,n.MZ)({type:Number})],S.prototype,"maxScale",void 0),(0,l.Cg)([(0,v.K)("maxScale")],S.prototype,"writeMaxScale",null),(0,l.Cg)([(0,n.MZ)({type:Number})],S.prototype,"minScale",void 0),(0,l.Cg)([(0,v.K)("minScale")],S.prototype,"writeMinScale",null),(0,l.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],S.prototype,"repeatLabel",void 0),(0,l.Cg)([(0,n.MZ)({type:Number,cast:y.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],S.prototype,"repeatLabelDistance",null),(0,l.Cg)([(0,n.MZ)({types:g.em,json:{types:g.em,origins:{"portal-item":{types:g.em,read:{reader:(0,s.C)({types:g.em})},default:null},"web-scene":{types:g.Rv,read:{reader:(0,s.C)({types:g.Rv})},write:c.oO,default:null}},write:c.oO,default:null}})],S.prototype,"symbol",void 0),(0,l.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"useCodedValues",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],S.prototype,"where",void 0),S=o=(0,l.Cg)([(0,n.$K)("esri.layers.support.LabelClass")],S);const A=S;r.d(t,["A",0,A])},73913(e,t,r){var i,o=r(32198),l=r(91429),n=r(25482),s=r(32730),a=r(36005),p=r(43937);let u=class extends n.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,s.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,s.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"name",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],u.prototype,"expression",void 0),(0,o.Cg)([(0,a.w)("expression",["expression","value"])],u.prototype,"readExpression",null),(0,o.Cg)([(0,p.K)("expression")],u.prototype,"writeExpression",null),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"title",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],u.prototype,"value",void 0),u=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.LabelExpressionInfo")],u);const y=u;r.d(t,["A",0,y])},37352(e,t,r){r.d(t,{A:()=>a});var i,o=r(32198),l=r(91429),n=r(7762),s=r(25482);let a=i=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>p});var i,o=r(32198),l=r(91429),n=r(66552),s=r(25482);const a=new n.J({asc:"ascending",desc:"descending"});let p=class extends s.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,o.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],p.prototype,"order",void 0),p=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],p)},45067(e,t,r){r.d(t,{A:()=>u});var i=r(32198),o=r(91429),l=r(69540),n=r(66552),s=r(25482);const a=new n.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),p=new n.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let u=class extends((0,l.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,o.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"cardinality",void 0),(0,i.Cg)([(0,o.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:p.read,write:p.write}})],u.prototype,"role",void 0),u=(0,i.Cg)([(0,o.$K)("esri.layers.support.Relationship")],u)},39383(e,t,r){r.d(t,{w:()=>a,z:()=>y});var i=r(49186),o=r(53966),l=r(46499);const n=()=>o.A.getLogger("esri.layers.support.labelingInfo"),s=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new l.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(s,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const p=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],u={esriGeometryPoint:p,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:p,esriGeometryEnvelope:null};function y(e,t){let r=[];for(let o of e){let e=o.labelPlacement,l=u[t];if(!o.symbol)return n().warn("No ILabelClass symbol specified."),[];if(!l)return n().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(l.includes(e))r.push(o);else{let i=l[0];e&&n().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let s=o.clone();s.labelPlacement=i,r.push(s)}}return r}},77548(e,t,r){r.d(t,{Gh:()=>j,tk:()=>Z,BR:()=>A,p2:()=>x,qd:()=>L,wI:()=>S,G$:()=>E,$x:()=>P,Ov:()=>v,cM:()=>d,UC:()=>c,Qz:()=>g,OP:()=>T,TU:()=>b,F2:()=>h,XX:()=>m,Qi:()=>w,jy:()=>C});var i=r(7762),o=(r(84952),r(70333)),l=r(78888),n=(r(16215),r(36563)),s=r(36708),a=r(4146);const p=new WeakMap;function u(e){return!e.destroyed&&(p.has(e)||e.addHandles([(0,s.wB)(()=>{let{parent:t}=e;return!!(t&&t instanceof a.A)&&("catalog-dynamic-group"===t.type||u(t))},t=>p.set(e,t),s.pc),(0,n.hA)(()=>p.delete(e))]),p.get(e))}function y(e,t){return"object"==typeof e&&!!e&&"type"in e&&e.type===t}function d(e){return y(e,"knowledge-graph")&&"layers"in e}function c(e){return y(e,"knowledge-graph-sublayer")}function g(e){return y(e,"link-chart")&&"layers"in e}function h(e){return y(e,"subtype-group")&&"sublayers"in e}function f(e){let t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}const m={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function b(e){let t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function v(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return"object"==typeof e&&!!e&&"featureReduction"in e}function C(e){return function(e){return y(e,"catalog-footprint")}(e)||function(e){return y(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return y(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function M(e){let t=e?.type;return"binning"===t||"cluster"===t}function x(e,t){if(!C(e))return;let r=t?.graphic,i="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){let e=r.origin;return e&&"featureReductionProvider"in e&&i?M(i)?i:null:void 0}return e}return t?.checkFeatureReduction&&i?M(i)?i:null:e}async function S(e,t){let r=o.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;let i=e.toLowerCase().indexOf("/rest/services");if(-1===i)return null;let n=`${e.slice(0,i)}/rest/info`,s=null==t?null:t.signal,{data:a}=await(0,l.A)(n,{query:{f:"json"},responseType:"json",signal:s});return a?.owningSystemUrl||null}function A(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"annotation-feature":case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function Z(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function L(e){let t=new i.A;for(let r of e.allLayers.concat(e.allTables))u(r)||f(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function P(e,t){return null}function E(e){return null}function T(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function j(e,t){if(!t||!T(e))return;let r=(e.url,null);r&&(e.url=r)}},22671(e,t,r){r.d(t,{A:()=>b});var i,o=r(32198),l=r(91429),n=r(66552),s=r(25482),a=r(4718),p=r(16930),u=r(60408),y=r(65864),d=r(50498),c=r(52106),g=r(20437),h=r(36005),f=r(43937);const m=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=i=class extends s.o{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){return this.readFeaturesWithClass(e,t,c.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:o}=this;if(o)for(let e of o)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=p.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({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){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,o]}=e,l=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=l.length;e<t;e++)n?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,o],scale:[l,n]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let p=this._getHydrationFunction(e,e=>e*l+i,e=>o-e*n,s,a);for(let{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=p.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){let l=e[t],n=r.fromJSON(l),s=l.geometry?.spatialReference;null!=n.geometry&&!s&&(n.geometry.spatialReference=i);let a=l.aggregateGeometries,p=n.aggregateGeometries;if(a&&null!=p)for(let e in p){let t=p[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}o.push(n)}return o}_quantizePoints(e,t,r){let i,o,l=[];for(let n=0,s=e.length;n<s;n++){let s=e[n];if(n>0){let e=t(s[0]),n=r(s[1]);(e!==i||n!==o)&&(l.push([e-i,n-o]),i=e,o=n)}else i=t(s[0]),o=r(s[1]),l.push([i,o])}return l.length>0?l: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=>{let i=(0,u.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,l=i.length;e<l;e++){let l=i[e],n=this._quantizePoints(l,t,r);n&&o.push(n)}return o.length>0?((0,u.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,n,s=(0,u.Bi)(e)?e.rings:e.paths;for(let e=0,i=s.length;e<i;e++){let i=s[e];for(let e=0,o=i.length;e<o;e++){let o=i[e];e>0?(l+=o[0],n+=o[1]):(l=o[0],n=o[1]),o[0]=t(l),o[1]=r(n)}}if(i&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{let l,n,s=e.points;for(let e=0,i=s.length;e<i;e++){let i=s[e];e>0?(l+=i[0],n+=i[1]):(l=i[0],n=i[1]),i[0]=t(l),i[1]=r(n)}if(i&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2])}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,l.MZ)({type:[c.A],json:{write:!0}})],b.prototype,"features",void 0),(0,o.Cg)([(0,h.w)("features")],b.prototype,"readFeatures",null),(0,o.Cg)([(0,l.MZ)({type:[g.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,o.Cg)([(0,l.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],b.prototype,"geometryType",void 0),(0,o.Cg)([(0,f.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,o.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,o.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,o.Cg)([(0,l.MZ)({types:d.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,h.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,l.MZ)({type:p.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,o.Cg)([(0,f.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=i=(0,o.Cg)([(0,l.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},16215(e,t,r){r.d(t,{S:()=>o});const i=Symbol("BasemapInstance");function o(e){return"object"==typeof e&&!!e&&i in e}r.d(t,["Y",0,i])}}]);
@@ -1 +0,0 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[7552],{65615(e,t,r){r.d(t,{A:()=>V});var i=r(32198),o=r(91429),s=r(56507),n=r(69540),a=r(25482),l=r(20437),p=r(10107),u=r(79901),d=r(64108),c=r(93223),y=r(36005),g=r(66552),h=r(90360),m=r(93849);let C=null,v=null;function w(){return v||=(0,h.C)({types:M()}),v}let S=null;function M(){return S||={key:"type",base:null,typeMap:{"data-layer":C,"map-layer":m.A}},S}var j;const f=(0,g.O)()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"});let b=j=class extends a.o{constructor(e){super(e),this.type="join-table"}readLeftTableSource(e,t,r){return w()(e,t,r)}castLeftTableSource(e){return(0,s.aq)(M(),e)}readRightTableSource(e,t,r){return w()(e,t,r)}castRightTableSource(e){return(0,s.aq)(M(),e)}clone(){let{leftTableKey:e,rightTableKey:t,leftTableSource:r,rightTableSource:i,joinType:o}=this,s={leftTableKey:e,rightTableKey:t,leftTableSource:r?.clone()??void 0,rightTableSource:i?.clone()??void 0,joinType:o};return new j(s)}};(0,i.Cg)([(0,c.e)({joinTable:"join-table"}),(0,p.MZ)({json:{write:{isRequired:!0}}})],b.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],b.prototype,"leftTableKey",void 0),(0,i.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],b.prototype,"rightTableKey",void 0),(0,i.Cg)([(0,p.MZ)({json:{write:!0}})],b.prototype,"leftTableSource",void 0),(0,i.Cg)([(0,y.w)("leftTableSource")],b.prototype,"readLeftTableSource",null),(0,i.Cg)([(0,u.w)("leftTableSource")],b.prototype,"castLeftTableSource",null),(0,i.Cg)([(0,p.MZ)({json:{write:!0}})],b.prototype,"rightTableSource",void 0),(0,i.Cg)([(0,y.w)("rightTableSource")],b.prototype,"readRightTableSource",null),(0,i.Cg)([(0,u.w)("rightTableSource")],b.prototype,"castRightTableSource",null),(0,i.Cg)([(0,c.e)(f)],b.prototype,"joinType",void 0),b=j=(0,i.Cg)([(0,d.$K)("esri.rest.layerSources.JoinTableDataSource")],b);const Z=b;var R,x=r(16930),T=r(50498);let F=R=class extends a.o{constructor(e){super(e),this.type="query-table"}clone(){let{workspaceId:e,query:t,oidFields:r,spatialReference:i,geometryType:o}=this,s={workspaceId:e,query:t,oidFields:r,spatialReference:i?.clone()??void 0,geometryType:o};return new R(s)}};(0,i.Cg)([(0,c.e)({queryTable:"query-table"}),(0,o.MZ)({json:{write:{isRequired:!0}}})],F.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],F.prototype,"workspaceId",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],F.prototype,"query",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],F.prototype,"oidFields",void 0),(0,i.Cg)([(0,o.MZ)({type:x.A,json:{write:!0}})],F.prototype,"spatialReference",void 0),(0,i.Cg)([(0,c.e)(T.gy)],F.prototype,"geometryType",void 0),F=R=(0,i.Cg)([(0,o.$K)("esri.rest.layerSources.QueryTableDataSource")],F);const P=F;var A;let D=A=class extends a.o{constructor(e){super(e),this.type="raster"}clone(){let{workspaceId:e,dataSourceName:t}=this;return new A({workspaceId:e,dataSourceName:t})}};(0,i.Cg)([(0,c.e)({raster:"raster"}),(0,o.MZ)({json:{write:{isRequired:!0}}})],D.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],D.prototype,"dataSourceName",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],D.prototype,"workspaceId",void 0),D=A=(0,i.Cg)([(0,o.$K)("esri.rest.layerSources.RasterDataSource")],D);const O=D;var k;let I=k=class extends a.o{constructor(e){super(e),this.type="table"}clone(){let{workspaceId:e,gdbVersion:t,dataSourceName:r}=this;return new k({workspaceId:e,gdbVersion:t,dataSourceName:r})}};(0,i.Cg)([(0,c.e)({table:"table"}),(0,o.MZ)({json:{write:{isRequired:!0}}})],I.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],I.prototype,"workspaceId",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],I.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],I.prototype,"dataSourceName",void 0),I=k=(0,i.Cg)([(0,o.$K)("esri.rest.layerSources.TableDataSource")],I);const N={key:"type",base:null,typeMap:{"join-table":Z,"query-table":P,raster:O,table:I}};let U=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.type="data-layer"}toLayerSourceJSON(){return{source:this.toJSON()}}};(0,i.Cg)([(0,c.e)({dataLayer:"data-layer"}),(0,o.MZ)({json:{write:{isRequired:!0}}})],U.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:[l.A],json:{write:!0}})],U.prototype,"fields",void 0),(0,i.Cg)([(0,o.MZ)({types:N,json:{write:!0}})],U.prototype,"dataSource",void 0),U=(0,i.Cg)([(0,o.$K)("esri.rest.layerSources.DynamicDataLayer")],U);const V=U;U.from=(0,s.dp)(U),S=null,v=null,C=U},93849(e,t,r){r.d(t,{A:()=>p});var i,o=r(32198),s=r(91429),n=r(56507),a=r(25482),l=r(93223);let p=i=class extends a.o{constructor(e){super(e),this.type="map-layer"}clone(){let{mapLayerId:e,gdbVersion:t}=this;return new i({mapLayerId:e,gdbVersion:t})}};(0,o.Cg)([(0,l.e)({mapLayer:"map-layer"}),(0,s.MZ)({json:{write:{isRequired:!0}}})],p.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({type:n.jz,json:{write:{isRequired:!0}}})],p.prototype,"mapLayerId",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"gdbVersion",void 0),p=i=(0,o.Cg)([(0,s.$K)("esri.rest.layerSources.DynamicMapLayer")],p)},29308(e,t,r){var i=r(32198),o=r(91429),s=r(56507),n=r(69540),a=r(25482),l=r(93223);let p=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.type="workspace-layer"}toLayerSourceJSON(){let{definitionExpression:e,...t}=this.toJSON();return{definitionExpression:e,source:t}}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"layerId",void 0),(0,i.Cg)([(0,l.e)({workspaceLayer:"workspace-layer"}),(0,o.MZ)({json:{write:{isRequired:!0}}})],p.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"workspaceId",void 0),p=(0,i.Cg)([(0,o.$K)("esri.rest.layerSources.DynamicWorkspaceLayer")],p);const u=p;p.from=(0,s.dp)(p),r.d(t,["A",0,u])},99614(e,t,r){var i=r(65615),o=r(29308);const s={key:"type",base:null,typeMap:{"data-layer":i.A,"workspace-layer":o.A}};r.d(t,["e",0,s])},27348(e,t,r){r.d(t,{A:()=>d});var i,o=r(32198),s=r(91429),n=r(66552),a=r(25482),l=r(4718),p=r(5443);const u=new n.J({upperLeft:"upper-left",lowerLeft:"lower-left"});let d=i=class extends a.o{constructor(e){super(e),this.extent=null,this.mode="view",this.originPosition="upper-left",this.tolerance=1}clone(){return new i((0,l.o8)({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))}};(0,o.Cg)([(0,s.MZ)({type:p.A,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],d.prototype,"extent",void 0),(0,o.Cg)([(0,s.MZ)({type:["view","edit"],json:{write:!0}})],d.prototype,"mode",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{read:u.read,write:u.write}})],d.prototype,"originPosition",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],d.prototype,"tolerance",void 0),d=i=(0,o.Cg)([(0,s.$K)("esri.rest.support.QuantizationParameters")],d)},97552(e,t,r){r.d(t,{A:()=>F});var i=r(32198),o=r(91429),s=r(56507),n=r(66552),a=r(25482),l=r(4718),p=r(86738),u=r(16930),d=r(65864),c=r(50498),y=r(79677),g=r(99614),h=r(69540);let m=class extends((0,h.OU)(a.o)){constructor(e){super(e),this.onFields=null,this.operator=null,this.searchTerm=null,this.searchType=null}};(0,i.Cg)([(0,o.MZ)({type:[String],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.onFields&&this.onFields.length>0}}}}})],m.prototype,"onFields",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],m.prototype,"operator",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],m.prototype,"searchTerm",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],m.prototype,"searchType",void 0),m=(0,i.Cg)([(0,o.$K)("esri.rest.support.FullTextSearch")],m);const C=m;var v=r(93223);const w=new n.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),S=new n.J({ASC:"ascending",DESC:"descending"});let M=class extends((0,h.OU)(a.o)){constructor(e){super(e),this.returnDistance=null,this.referenceGeometry=null,this.order=null,this.outDistanceUnit=null}};(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],M.prototype,"returnDistance",void 0),(0,i.Cg)([(0,o.MZ)({types:c.yR,json:{name:"refGeometry",read:d.rS,write:!0}})],M.prototype,"referenceGeometry",void 0),(0,i.Cg)([(0,v.e)(S,{ignoreUnknown:!1})],M.prototype,"order",void 0),(0,i.Cg)([(0,v.e)(w,{ignoreUnknown:!1})],M.prototype,"outDistanceUnit",void 0),M=(0,i.Cg)([(0,o.$K)("esri.rest.support.OutDistance")],M);const j=M;var f,b=r(27348),Z=r(58174),R=r(7562),x=r(43937);const T=new n.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let F=class extends a.o{static{f=this}static from(e){return(0,s.PZ)(f,e)}constructor(e){super(e),this.aggregateIds=null,this.cacheHint=void 0,this.datumTransformation=null,this.distance=void 0,this.dynamicDataSource=void 0,this.formatOf3DObjects=null,this.fullText=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=void 0,this.groupByFieldsForStatistics=null,this.having=null,this.historicMoment=null,this.maxAllowableOffset=void 0,this.maxRecordCountFactor=1,this.multipatchOption=null,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.parameterValues=null,this.pixelSize=null,this.quantizationParameters=null,this.rangeValues=null,this.relationParameter=null,this.resultType=null,this.returnStatisticsAggregatedIds=!1,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnExceededLimitGeometries=!0,this.returnGeometry=!1,this.returnQueryGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.sqlFormat=null,this.text=null,this.timeExtent=null,this.timeReferenceUnknownClient=!1,this.units=null,this.outDistance=null,this.where=null}castDatumTransformation(e){return"number"==typeof e||"object"==typeof e?e:null}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeParameterValues(e,t){if(e){let r={};for(let t in e){let i=e[t];r[t]=Array.isArray(i)?i.map(e=>e instanceof Date?e.getTime():e):i instanceof Date?i.getTime():i}t.parameterValues=r}}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,t.where="1=1"}writeWhere(e,t){t.where=e||"1=1"}clone(){return new f((0,l.o8)({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,datumTransformation:this.datumTransformation,distance:this.distance,fullText:this.fullText,formatOf3DObjects:this.formatOf3DObjects,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:null==this.historicMoment?null:new Date(this.historicMoment),maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnStatisticsAggregatedIds:this.returnStatisticsAggregatedIds,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnExceededLimitGeometries:this.returnExceededLimitGeometries,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,outDistance:this.outDistance,where:this.where}))}static{this.MAX_MAX_RECORD_COUNT_FACTOR=5}};(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],F.prototype,"aggregateIds",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],F.prototype,"cacheHint",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],F.prototype,"datumTransformation",void 0),(0,i.Cg)([(0,o.wg)("datumTransformation")],F.prototype,"castDatumTransformation",null),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy:e=>({enabled:!!e})}}})],F.prototype,"distance",void 0),(0,i.Cg)([(0,o.MZ)({types:g.e,json:{write:!0}})],F.prototype,"dynamicDataSource",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],F.prototype,"formatOf3DObjects",void 0),(0,i.Cg)([(0,o.MZ)({type:[C],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.fullText&&this.fullText.length>0}}}}})],F.prototype,"fullText",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],F.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,o.MZ)({types:c.yR,json:{read:d.rS,write:!0}})],F.prototype,"geometry",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],F.prototype,"geometryPrecision",void 0),(0,i.Cg)([(0,o.MZ)({type:[String],json:{write:!0}})],F.prototype,"groupByFieldsForStatistics",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],F.prototype,"having",void 0),(0,i.Cg)([(0,o.MZ)({type:Date})],F.prototype,"historicMoment",void 0),(0,i.Cg)([(0,x.K)("historicMoment")],F.prototype,"writeHistoricMoment",null),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],F.prototype,"maxAllowableOffset",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,cast:e=>e<1?1:e>f.MAX_MAX_RECORD_COUNT_FACTOR?f.MAX_MAX_RECORD_COUNT_FACTOR:e,json:{write:{overridePolicy:e=>({enabled:e>1})}}})],F.prototype,"maxRecordCountFactor",void 0),(0,i.Cg)([(0,o.MZ)({type:["xyFootprint"],json:{write:!0}})],F.prototype,"multipatchOption",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],F.prototype,"num",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],F.prototype,"objectIds",void 0),(0,i.Cg)([(0,o.MZ)({type:[String],json:{write:!0}})],F.prototype,"orderByFields",void 0),(0,i.Cg)([(0,o.MZ)({type:[String],json:{write:!0}})],F.prototype,"outFields",void 0),(0,i.Cg)([(0,o.MZ)({type:u.A,json:{name:"outSR",write:!0}})],F.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,o.MZ)({type:[R.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],F.prototype,"outStatistics",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],F.prototype,"parameterValues",void 0),(0,i.Cg)([(0,x.K)("parameterValues")],F.prototype,"writeParameterValues",null),(0,i.Cg)([(0,o.MZ)({type:p.A,json:{write:!0}})],F.prototype,"pixelSize",void 0),(0,i.Cg)([(0,o.MZ)({type:b.A,json:{write:!0}})],F.prototype,"quantizationParameters",void 0),(0,i.Cg)([(0,o.MZ)({type:[Object],json:{write:!0}})],F.prototype,"rangeValues",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],F.prototype,"relationParameter",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],F.prototype,"resultType",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"returnAggIds",write:{overridePolicy(e){return{enabled:e&&!!this.groupByFieldsForStatistics?.length&&!!this.outStatistics?.length}}}}})],F.prototype,"returnStatisticsAggregatedIds",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{default:!1,write:!0}})],F.prototype,"returnCentroid",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{default:!1,write:!0}})],F.prototype,"returnDistinctValues",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{default:!0,write:!0}})],F.prototype,"returnExceededLimitFeatures",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{default:!0,write:!0}})],F.prototype,"returnExceededLimitGeometries",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],F.prototype,"returnGeometry",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{default:!1,write:!0}})],F.prototype,"returnQueryGeometry",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{default:!1,write:!0}})],F.prototype,"returnM",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],F.prototype,"returnZ",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],F.prototype,"returnTrueCurves",void 0),(0,i.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],F.prototype,"sourceSpatialReference",void 0),(0,i.Cg)([(0,v.e)(Z.x,{ignoreUnknown:!1,name:"spatialRel"})],F.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],F.prototype,"start",void 0),(0,i.Cg)([(0,x.K)("start"),(0,x.K)("num")],F.prototype,"writeStart",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],F.prototype,"sqlFormat",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],F.prototype,"text",void 0),(0,i.Cg)([(0,o.MZ)({type:y.A,json:{write:!0}})],F.prototype,"timeExtent",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{default:!1,write:!0}})],F.prototype,"timeReferenceUnknownClient",void 0),(0,i.Cg)([(0,v.e)(T,{ignoreUnknown:!1}),(0,o.MZ)({json:{write:{overridePolicy(e){return{enabled:!!e&&!!this.distance}}}}})],F.prototype,"units",void 0),(0,i.Cg)([(0,o.MZ)({type:j,json:{write:!0}})],F.prototype,"outDistance",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{overridePolicy(e){return{enabled:null!=e||null!=this.start&&this.start>0}}}}})],F.prototype,"where",void 0),(0,i.Cg)([(0,x.K)("where")],F.prototype,"writeWhere",null),F=f=(0,i.Cg)([(0,o.$K)("esri.rest.support.Query")],F)},7562(e,t,r){r.d(t,{A:()=>d});var i,o=r(32198),s=r(91429),n=r(66552),a=r(25482),l=r(4718),p=r(43937);const u=new n.J({count:"count",sum:"sum",min:"min",max:"max",avg:"avg",stddev:"stddev",var:"var",exceedslimit:"exceedslimit",percentile_cont:"percentile-continuous",percentile_disc:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate"});let d=i=class extends a.o{constructor(e){super(e),this.maxPointCount=void 0,this.maxRecordCount=void 0,this.maxVertexCount=void 0,this.onStatisticField=null,this.outStatisticFieldName=null,this.statisticType=null,this.statisticParameters=null}writeStatisticParameters(e,t){("percentile-continuous"===this.statisticType||"percentile-discrete"===this.statisticType)&&(t.statisticParameters=(0,l.o8)(e))}clone(){return new i({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,statisticType:this.statisticType,statisticParameters:(0,l.o8)(this.statisticParameters)})}};(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],d.prototype,"maxPointCount",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],d.prototype,"maxRecordCount",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],d.prototype,"maxVertexCount",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"onStatisticField",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"outStatisticFieldName",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{read:{source:"statisticType",reader:u.read},write:{target:"statisticType",writer:u.write}}})],d.prototype,"statisticType",void 0),(0,o.Cg)([(0,s.MZ)({type:Object})],d.prototype,"statisticParameters",void 0),(0,o.Cg)([(0,p.K)("statisticParameters")],d.prototype,"writeStatisticParameters",null),d=i=(0,o.Cg)([(0,s.$K)("esri.rest.support.StatisticDefinition")],d)},58174(e,t,r){const i=new(r(66552).J)({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"});r.d(t,["x",0,i])}}]);
@@ -1 +0,0 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[1560,4935],{52106(e,t,r){r.d(t,{A:()=>M});var i,o,s=r(32198),n=r(91429),l=r(69540),a=r(51447),p=r(25482),u=r(53966),d=r(36708),c=r(12195),y=r(24326),h=r(65864),g=r(50498),f=r(55156),m=r(60950),v=r(54339),b=r(40124),w=r(94128),S=r(33910);const C=Symbol("meshGeometryHandles");function x(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let M=class extends((0,l.OU)(p.o)){static{i=w.Z}static{o=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperties(this,{uid:{value:(0,y.c)(),configurable:!0},_lastMeshTransform:{value:{},configurable:!0,writable:!0,enumerable:!1}}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,m.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,f.I)(this.origin);if(e)return(0,v.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){let e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:x(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,c.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let o={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(o.action=i),"attributes"===e&&(o.attributeName=i),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(C);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,d.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,d.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],C)}};(0,s.Cg)([(0,n.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,h.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],M.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,n.MZ)({value:null})],M.prototype,"attributes",null),(0,s.Cg)([(0,n.MZ)({value:null,types:g.yR,json:{read:h.rS}})],M.prototype,"geometry",null),(0,s.Cg)([(0,n.MZ)()],M.prototype,"distance",void 0),(0,s.Cg)([(0,n.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,s.Cg)([(0,n.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,s.Cg)([(0,n.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,s.Cg)([(0,n.MZ)({type:b.A,value:null})],M.prototype,"popupTemplate",null),(0,s.Cg)([(0,n.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,n.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],M.prototype,"statisticsAggregatedIds",void 0),(0,s.Cg)([(0,n.MZ)({value:null,types:S.Es})],M.prototype,"symbol",null),(0,s.Cg)([(0,n.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,s.Cg)([(0,n.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=o=(0,s.Cg)([(0,n.$K)("esri.Graphic")],M)},46140(e,t,r){r.d(t,{A:()=>o});var i=r(49186);class o{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){let t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new o(this.major,this.minor,this._context)}static parse(e,t=""){let[r,s]=e.split(".",2),n=/^\s*\d+\s*$/;if(!r?.match||!n.test(r)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e})}if(!s?.match||!n.test(s)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e})}return new o(parseInt(r,10),parseInt(s,10),t)}}},6797(e,t,r){r.d(t,{Ui:()=>c});var i=r(56372),o=r(7762),s=r(88620);const n=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function a(e){return e instanceof o.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function p(e,t){return e instanceof o.A?e.items[t]:e[t]}function u(e){return e?e.declaredClass:null}function d(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=a(e),o=a(t);if(0===i.length&&0===o.length)return;if(!i.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let s=o.filter(e=>!i.includes(e)),c=i.filter(e=>!o.includes(e)),y=i.filter(r=>o.includes(r)&&p(e,r)!==p(t,r)).concat(s,c).sort(),h=u(e);if(h&&n.has(h)&&y.length)return{type:"complete",oldValue:e,newValue:t};let g,f=l(e)&&l(t);for(let i of y){let o,s=p(e,i),n=p(t,i);if((f||"function"!=typeof s&&"function"!=typeof n)&&s!==n&&(null!=s||null!=n)){if(r&&r[i]&&"function"==typeof r[i])o=r[i]?.(s,n);else if(s instanceof Date&&n instanceof Date){if(s.getTime()===n.getTime())continue;o={type:"complete",oldValue:s,newValue:n}}else o="object"==typeof s&&"object"==typeof n&&u(s)===u(n)?d(s,n):{type:"complete",oldValue:s,newValue:n};null!=o&&(null==g?g={type:"partial",diff:{[i]:o}}:g.diff[i]=o)}}return g}function c(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&u(e)!==u(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},83027(e,t,r){const i=r(29953).ho;r.d(t,["h",0,i])},55156(e,t,r){r.d(t,{I:()=>o});const i=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},68695(e,t,r){r.r(t),r.d(t,{default:()=>te});var i=r(32198),o=r(91429),s=r(89317),n=r(49186),l=r(25728),a=r(17676),p=r(84952),u=r(16930),d=r(41910),c=r(55156),y=r(60950),h=r(89808),g=r(99959);const f=Symbol("isCSVGraphicOrigin");var m;class v extends g.A{get[(m=f,y.ym)](){return this.layer}get[c.e](){return this.layer}get[h.Q](){return this.layer}get[d.e7](){return this.layer}constructor(e){super(),this[m]=!0,this.type="csv",this.layer=e}get id(){return this.layer.id}}var b=r(40124),w=r(41214),S=r(97552),C=r(30291),x=r(56400),M=r(92474),I=r(83027),A=r(5443),P=r(22671),F=r(59288);let O=class extends M.x_{constructor(e){super(e),this.type="csv",this.refresh=(0,a.sg)(async e=>{await this.load();let{extent:t,timeExtent:r}=await this._connection.invoke("refresh",e);return t&&(this.sourceJSON.extent=t),r&&(this.sourceJSON.timeInfo.timeExtent=[r.start,r.end]),{dataChanged:!0,updates:{extent:this.sourceJSON.extent,timeInfo:this.sourceJSON.timeInfo}}})}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}async openPorts(){return await this.load(),this._connection.openPorts()}async queryFeatures(e,t={}){await this.load(t);let r=(0,F.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex),i=await this._connection.invoke("queryFeatures",r.toJSON(),t);return P.A.fromJSON(i)}async queryFeaturesJSON(e,t={}){await this.load(t);let r=(0,F.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryFeatures",r.toJSON(),t)}async queryFeatureCount(e,t={}){await this.load(t);let r=(0,F.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryFeatureCount",r.toJSON(),t)}async queryObjectIds(e,t={}){await this.load(t);let r=(0,F.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryObjectIds",r.toJSON(),t)}async queryExtent(e,t={}){await this.load(t);let r=(0,F.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex),i=await this._connection.invoke("queryExtent",r.toJSON(),t);return{count:i.count,extent:A.A.fromJSON(i.extent)}}async querySnapping(e,t={}){return await this.load(t),this._connection.invoke("querySnapping",e,t)}async queryAttributeBins(e,t={}){await this.load();let r=(0,F.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryAttributeBins",r.toJSON(),t)}async _startWorker(e){this._connection=await(0,I.h)("CSVSourceWorker",{strategy:"dedicated",signal:e,registryTarget:this});let{url:t,delimiter:r,fields:i,latitudeField:o,longitudeField:s,spatialReference:n,timeInfo:l}=this.loadOptions,a=await this._connection.invoke("load",{url:t,customParameters:this.customParameters,parsingOptions:{delimiter:r,fields:i?.map(e=>e.toJSON()),latitudeField:o,longitudeField:s,spatialReference:n?.toJSON(),timeInfo:l?.toJSON()}},{signal:e});this.locationInfo=a.locationInfo,this.sourceJSON=a.layerDefinition,this.delimiter=a.delimiter}};(0,i.Cg)([(0,o.MZ)()],O.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)()],O.prototype,"loadOptions",void 0),(0,i.Cg)([(0,o.MZ)()],O.prototype,"customParameters",void 0),(0,i.Cg)([(0,o.MZ)({constructOnly:!0})],O.prototype,"layer",void 0),(0,i.Cg)([(0,o.MZ)()],O.prototype,"locationInfo",void 0),(0,i.Cg)([(0,o.MZ)()],O.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,o.MZ)()],O.prototype,"delimiter",void 0),O=(0,i.Cg)([(0,o.$K)("esri.layers.graphics.sources.CSVSource")],O);var T=r(64714),Z=r(4146),L=r(63074),j=r(69208),E=r(6455),_=r(87718),N=r(56658),R=r(34287),D=r(32756),$=r(8303),q=r(54310),z=r(25036),G=r(82935),J=r(63396),B=r(10873),k=r(15426),U=r(20437),V=r(17036),H=r(30524),Q=r(46499),K=r(39383),W=r(37352),Y=r(36005);const X=(0,V.p)();let ee=class extends((0,D.fY)((0,E.FJ)((0,j.d)((0,N.J)((0,_.F)((0,L.dM)((0,G.e)((0,J.d)((0,z.j)((0,q.J)((0,R.q)((0,$.A)((0,l.M)(Z.A)))))))))))))){constructor(e){super(e),this.attributeTableTemplate=null,this.capabilities=(0,T.f)(!1,!1),this.copyright=null,this.definitionExpression=null,this.delimiter=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.fullExtent=null,this.geometryType="point",this.graphicOrigin=new v(this),this.labelingInfo=null,this.labelsVisible=!0,this.latitudeField=null,this.legendEnabled=!0,this.locationType="coordinates",this.longitudeField=null,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.opacity=1,this.operationalLayerType="CSV",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new O({layer:this}),this.spatialReference=u.A.WGS84,this.timeInfo=null,this.type="csv"}load(e){let t=this.loadFromPortal({supportedTypes:["CSV"],supportsData:!1},e).catch(a.QP).then(()=>(this.source.loadOptions={delimiter:this.delimiter,fields:this.fields,latitudeField:this.latitudeField??void 0,longitudeField:this.longitudeField??void 0,spatialReference:this.spatialReference??void 0,timeInfo:this.timeInfo??void 0,url:this.url},this.source.customParameters=this.customParameters??void 0,this.source.load(e))).then(()=>{this.read({layerDefinition:this.source.sourceJSON,locationInfo:this.source.locationInfo,columnDelimiter:this.source.delimiter},{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,H.yp)(this.renderer,this.fieldsIndex),(0,H.sv)(this.timeInfo,this.fieldsIndex)});return this.addResolvingPromise(t),Promise.resolve(this)}destroy(){this.source?.destroy()}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}get isTable(){return this.loaded&&null==this.geometryType}readWebMapLabelsVisible(e,t){return t.showLabels??!!t.layerDefinition?.drawingInfo?.labelingInfo}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}set renderer(e){(0,H.yp)(e,this.fieldsIndex),this._set("renderer",e)}set url(e){if(!e)return void this._set("url",e);let t=(0,p.An)(e);this._set("url",t.path),t.query&&(this.customParameters={...this.customParameters,...t.query})}createPopupTemplate(e){return(0,C.tn)(this,e)}createQuery(){let e=new S.A,t=this.capabilities?.data;e.returnGeometry=!0,t?.supportsZ&&(e.returnZ=!0),e.outFields=["*"],e.where=this.definitionExpression||"1=1";let{timeOffset:r,timeExtent:i}=this;return e.timeExtent=r&&i?i.offset(-r.value,r.unit):i??null,e}getFieldDomain(e,t){return this.getField(e)?.domain}getField(e){return this.fieldsIndex.get(e)}async queryAttributeBins(e,t){let{source:i,capabilities:o}=await this.load();if(!i.queryAttributeBins)throw new n.A("CSVLayer","Layer source does not support queryAttributeBins capability");(0,k.ZJ)(e,o,"CSVLayer");let{default:s}=await r.e(4575).then(()=>r(14575)),l=await i.queryAttributeBins(s.from(e),t),a=this.graphicOrigin;if(l.features)for(let e of l.features)e.layer=e.sourceLayer=this,e.origin=a;return l}queryFeatures(e,t){return this.load().then(()=>this.source.queryFeatures(S.A.from(e)||this.createQuery())).then(e=>{let t=this.graphicOrigin;if(e.features)for(let r of e.features)r.layer=r.sourceLayer=this,r.origin=t;return e})}async queryObjectIds(e,t){return await this.load(),this.source.queryObjectIds(S.A.from(e)||this.createQuery())}queryFeatureCount(e,t){return this.load().then(()=>this.source.queryFeatureCount(S.A.from(e)||this.createQuery()))}queryExtent(e,t){return this.load().then(()=>this.source.queryExtent(S.A.from(e)||this.createQuery()))}read(e,t){super.read(e,t),"service"===t?.origin&&(["objectIdField","fields","timeInfo","dateFieldsTimeZone","latitudeField","longitudeField"].forEach(e=>this.revertToOrigin(e,"service")),this.spatialReference||this.revertToOrigin("spatialReference","service"))}async hasDataChanged(){try{let{dataChanged:e,updates:t}=await this.source.refresh(this.customParameters);return null!=t&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};(0,i.Cg)([(0,o.MZ)(B.zQ)],ee.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1,write:!1}})],ee.prototype,"capabilities",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],ee.prototype,"copyright",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],ee.prototype,"createQueryVersion",null),(0,i.Cg)([(0,o.MZ)({json:{name:"layerDefinition.dateFieldsTimeReference",read:{reader:x.ZS}}})],ee.prototype,"dateFieldsTimeZone",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],ee.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ee.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,o.MZ)({type:[","," ",";","|","\t"],json:{name:"columnDelimiter",write:{ignoreOrigin:!0}}})],ee.prototype,"delimiter",void 0),(0,i.Cg)([(0,o.MZ)({type:String})],ee.prototype,"displayField",void 0),(0,i.Cg)([(0,o.MZ)(B.Yj)],ee.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,o.MZ)({type:[U.A],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0}}})],ee.prototype,"fields",void 0),(0,i.Cg)([(0,o.MZ)(X.fieldsIndex)],ee.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,o.MZ)({type:W.A,json:{name:"layerDefinition.floorInfo",write:{layerContainerTypes:s.K}}})],ee.prototype,"floorInfo",void 0),(0,i.Cg)([(0,o.MZ)({json:{origins:{service:{name:"layerDefinition.extent"}}}})],ee.prototype,"fullExtent",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],ee.prototype,"geometryType",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],ee.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],ee.prototype,"isTable",null),(0,i.Cg)([(0,o.MZ)({type:[Q.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:K.w},write:!0}})],ee.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,o.MZ)(B.kF)],ee.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,Y.w)("web-map","labelsVisible",["layerDefinition.drawingInfo.labelingInfo","showLabels"])],ee.prototype,"readWebMapLabelsVisible",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"locationInfo.latitudeFieldName",write:{ignoreOrigin:!0}}})],ee.prototype,"latitudeField",void 0),(0,i.Cg)([(0,o.MZ)(B.fV)],ee.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,o.MZ)({type:["show","hide"]})],ee.prototype,"listMode",void 0),(0,i.Cg)([(0,o.MZ)({type:["coordinates"],json:{name:"locationInfo.locationType",write:{ignoreOrigin:!0,isRequired:!0}}})],ee.prototype,"locationType",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"locationInfo.longitudeFieldName",write:{ignoreOrigin:!0}}})],ee.prototype,"longitudeField",void 0),(0,i.Cg)([(0,o.MZ)(B.hG)],ee.prototype,"maxScale",void 0),(0,i.Cg)([(0,o.MZ)(B.hn)],ee.prototype,"minScale",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"layerDefinition.objectIdField",origins:{"web-map":{write:{target:"layerDefinition.objectIdField",ignoreOrigin:!0}}}}})],ee.prototype,"objectIdField",void 0),(0,i.Cg)([(0,o.MZ)(B.Ih)],ee.prototype,"opacity",void 0),(0,i.Cg)([(0,o.MZ)({type:["CSV"]})],ee.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,o.MZ)()],ee.prototype,"outFields",void 0),(0,i.Cg)([(0,o.MZ)(B.M6)],ee.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,o.MZ)({type:b.A,json:{name:"popupInfo",write:!0}})],ee.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,o.MZ)({types:w.Hg,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:w.XJ,name:"layerDefinition.drawingInfo.renderer",write:!0}},write:{ignoreOrigin:!0,layerContainerTypes:s.K}}})],ee.prototype,"renderer",null),(0,i.Cg)([(0,o.MZ)(B.PY)],ee.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],ee.prototype,"source",void 0),(0,i.Cg)([(0,o.MZ)({type:u.A,json:{origins:{service:{name:"layerDefinition.extent.spatialReference"}}}})],ee.prototype,"spatialReference",void 0),(0,i.Cg)([(0,o.MZ)((0,B.U$)({name:"layerDefinition.timeInfo",alwaysWriteNonItemOrigin:!0}))],ee.prototype,"timeInfo",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{origins:{service:{name:"layerDefinition.name"},"web-document":{name:"title",write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}}}})],ee.prototype,"title",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!1},value:"csv",readOnly:!0})],ee.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)(B.OZ)],ee.prototype,"url",null),ee=(0,i.Cg)([(0,o.$K)("esri.layers.CSVLayer")],ee);const te=ee},99352(e,t,r){r.d(t,["F",0,{supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsStatisticsAggregatedIds:!0,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},"P",0,{supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}])},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let r=[];for(let i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function o(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>o})},64714(e,t,r){r.d(t,{F0:()=>l,Vx:()=>u,e2:()=>c,f:()=>g});var i=r(44208),o=r(4718),s=r(93470),n=r(99352);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?s.Cb:"esriGeometryPolyline"===e?s.yM:s.WR}}}const a=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let p=1;function u(e,t){if((0,i.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${d(t)} = null;`);for(let t in e)r+=`this${d(t)} = ${JSON.stringify(e[t])};`;let i=Function(`\n return class AttributesClass$${p++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new i}catch{return()=>t?{[t]:null,...e}:{...e}}}function d(e){return a.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,o.o8)(e)}}]}const y={...n.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},h={...n.P,supportedStatistics:{...n.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function g(e,t,r=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r?y:n.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r?h:n.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},59288(e,t,r){r.d(t,{$:()=>n});var i=r(2991),o=r(96184),s=r(36003);function n(e,t,r,n){if(!e.timeExtent||!t&&!r)return e;let l=e.clone();if(t&&r){if(!(0,s.L)(t,o.A.fromJSON(r))){let r=(0,i.RZ)(e.timeExtent,t,n,e.where);r&&(l.where=r,l.timeExtent=void 0)}return l}return!t&&r?(l.timeExtent=void 0,l):(t&&!r&&(l.where=(0,i.RZ)(e.timeExtent,t,n,e.where),l.timeExtent=void 0),l)}},69208(e,t,r){var i=r(32198),o=r(91429);r.d(t,["d",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,o.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>l});var i=r(32198),o=r(91429),s=r(93637),n=r(91880);function l(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let o=new n.A;return o.read(i,r),[o]}const a={type:[n.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,i){let o=e.find(e=>!!e.field);o&&(0,s.sM)(r,[o.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,o.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},8303(e,t,r){var i=r(32198),o=r(92602),s=r(91429),n=r(60999),l=r(49186),a=r(36563),p=r(53966),u=r(97768),d=r(17676),c=r(84952),y=r(70333),h=r(20655),g=r(80812),f=r(41318),m=r(10407),v=r(78888),b=r(26121),w=r(77548),S=r(36005),C=r(43937);const x={credential:null,user:null};r.d(t,["A",0,e=>{let t=e,M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,u.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{let{load:i}=await r.e(1204).then(()=>r(41204));return(0,d.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||p.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;let i=t?.signal?null:new AbortController;try{let{reload:o}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,a.rE)(i),"reloadFromPortal"),await o({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:i.signal})}catch(e){throw(0,d.zf)(e)||p.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{i&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,d.QP)(e),!0)))}async setUserPrivileges(e,t){if(!o.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{let{features:{edit:r,fullEdit:i},content:{updateItem:o}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",o)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);let i,o,s=!y.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,s);if(n)i=r.portal.url;else try{i=await(0,w.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!i||!(0,c.b8)(i,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{let e=null==t?null:t.signal;o=await(y.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(n?await r.reload():(r=new g.default({id:e,portal:{url:i}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,s)}catch(e){(0,d.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}_getUserPrivileges(e,t){let r=(0,m.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){let t=this.url?y.id?.findCredential(this.url):null;if(!t)return!0;let r=x.credential===t?x.user:await this._fetchEditingUser(e);return x.credential=t,x.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){let t=this.portalItem?.portal?.user;if(t)return t;let r=y.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;let i=`${r.owningSystemUrl}/sharing/rest`,o=h.A.getDefault();if(o&&o.loaded&&(0,c.S8)(o.restUrl)===(0,c.S8)(i))return o.user;let s=`${i}/community/self`,l=null==e?null:e.signal,a=await(0,n.Ke)((0,v.A)(s,{authMode:"no-prompt",query:{f:"json"},signal:l}));return a.ok?f.A.fromJSON(a.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){return(0,b.wN)(this.portalItem,t)?(t?.messages?.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,s.MZ)({type:g.default})],M.prototype,"portalItem",null),(0,i.Cg)([(0,S.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,i.Cg)([(0,C.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,i.Cg)([(0,s.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.PortalLayer")],M),M}])},82935(e,t,r){var i=r(32198),o=r(91429),s=r(73133),n=r(79677),l=r(10184),a=r(30524),p=r(96184),u=r(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,d,"e",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){let r=t.timeInfo.exportOptions;if(!r)return null;let i=r.timeOffset,o=s.j.fromJSON(r.timeOffsetUnits);return i&&o?new l.A({value:i,unit:o}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,o.MZ)({type:n.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,o.MZ)({type:l.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,u.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,o.MZ)({value:null,type:p.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,o.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},63396(e,t,r){r.d(t,{d:()=>x});var i=r(32198),o=r(91429),s=r(41910),n=r(60950),l=r(99959);class a extends l.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[n.ym](){return this.trackInfoProvider.trackInfo}get[s.e7](){return this.trackInfoProvider}}var p=r(69540),u=r(25482),d=r(93637),c=r(40124),y=r(96576),h=r(59868),g=r(10184),f=r(50820),m=r(10873),v=r(41214),b=r(46499);let w=class extends((0,p.OU)(u.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,i.Cg)([(0,o.MZ)({type:[b.A],json:{write:!0}})],w.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,o.MZ)(m.kF)],w.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,o.MZ)({types:v.Hg,json:{write:!0}})],w.prototype,"renderer",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],w.prototype,"visible",void 0),w=(0,i.Cg)([(0,o.$K)("esri.layers.support.TrackPartInfo")],w);var S=r(43937);let C=class extends((0,p.OU)(u.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new w({renderer:new y.A({symbol:h.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new w({renderer:new y.A({symbol:h.UK.clone()})}),this.trackLines=new w({renderer:new y.A({symbol:h.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,r){let i=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,d.sM)(r,i,t)}};(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],C.prototype,"enabled",void 0),(0,i.Cg)([(0,o.MZ)({type:[f.A],json:{write:!0}})],C.prototype,"fields",void 0),(0,i.Cg)([(0,S.K)("fields")],C.prototype,"writeFields",null),(0,i.Cg)([(0,o.MZ)({type:w,json:{write:!0}})],C.prototype,"latestObservations",void 0),(0,i.Cg)([(0,o.MZ)({type:g.A,json:{write:!0}})],C.prototype,"maxDisplayDuration",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],C.prototype,"maxDisplayObservationsPerTrack",void 0),(0,i.Cg)([(0,o.MZ)(m.M6)],C.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,o.MZ)({type:c.A,json:{name:"popupInfo",write:!0}})],C.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,o.MZ)({type:w,json:{write:!0}})],C.prototype,"previousObservations",void 0),(0,i.Cg)([(0,o.MZ)({type:w,json:{write:!0}})],C.prototype,"trackLines",void 0),(0,i.Cg)([(0,o.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],C.prototype,"timeField",void 0),C=(0,i.Cg)([(0,o.$K)("esri.layers.support.TrackInfo")],C);const x=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,i.Cg)([(0,o.MZ)({readOnly:!0,clonable:!1})],r.prototype,"trackGraphicOrigin",void 0),(0,i.Cg)([(0,o.MZ)({type:C})],r.prototype,"trackInfo",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.TrackableLayer")],r),r}},46499(e,t,r){var i,o,s=r(32198),n=r(91429),l=r(90360),a=(r(44208),r(66552)),p=r(25482),u=r(4718),d=r(90629),c=r(59868),y=r(73838),h=r(33910),g=r(73913),f=r(32730),m=r(77548),v=r(36005),b=r(43937);const w=new a.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function S(e,t,r){return{enabled:!(0,m.TU)(r?.layer)}}function C(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function x(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let M=class extends p.o{static{i=f.vK}static{o=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),o=i[3],s=r(t[i[4]],i[5],i[6]);switch(o){case"AND":return e&&s;case"OR":return e||s}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=c.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,f.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,f.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&C(i))e=new g.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let o=e.toJSON(i);o.expression&&(t[r]=o)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,f.XJ)(this)}getLabelExpressionArcade(){return(0,f.BI)(this)}getLabelExpressionSingleField(){return(0,f.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new o({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,u.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,u.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],M.prototype,"name",void 0),(0,s.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:S}}}}})],M.prototype,"allowOverrun",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:S}}}}})],M.prototype,"deconflictionStrategy",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&x(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],M.prototype,"labelExpression",void 0),(0,s.Cg)([(0,v.w)("labelExpression")],M.prototype,"readLabelExpression",null),(0,s.Cg)([(0,b.K)("labelExpression")],M.prototype,"writeLabelExpression",null),(0,s.Cg)([(0,n.MZ)({type:g.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return C(e)||x(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],M.prototype,"labelExpressionInfo",void 0),(0,s.Cg)([(0,b.K)("labelExpressionInfo")],M.prototype,"writeLabelExpressionInfo",null),(0,s.Cg)([(0,n.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],M.prototype,"labelPlacement",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],M.prototype,"offsetDistance",void 0),(0,s.Cg)([(0,n.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],M.prototype,"labelPosition",void 0),(0,s.Cg)([(0,n.MZ)({type:Number})],M.prototype,"maxScale",void 0),(0,s.Cg)([(0,b.K)("maxScale")],M.prototype,"writeMaxScale",null),(0,s.Cg)([(0,n.MZ)({type:Number})],M.prototype,"minScale",void 0),(0,s.Cg)([(0,b.K)("minScale")],M.prototype,"writeMinScale",null),(0,s.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],M.prototype,"repeatLabel",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,cast:d.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],M.prototype,"repeatLabelDistance",null),(0,s.Cg)([(0,n.MZ)({types:h.em,json:{types:h.em,origins:{"portal-item":{types:h.em,read:{reader:(0,l.C)({types:h.em})},default:null},"web-scene":{types:h.Rv,read:{reader:(0,l.C)({types:h.Rv})},write:y.oO,default:null}},write:y.oO,default:null}})],M.prototype,"symbol",void 0),(0,s.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"useCodedValues",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],M.prototype,"where",void 0),M=o=(0,s.Cg)([(0,n.$K)("esri.layers.support.LabelClass")],M);const I=M;r.d(t,["A",0,I])},73913(e,t,r){var i,o=r(32198),s=r(91429),n=r(25482),l=r(32730),a=r(36005),p=r(43937);let u=class extends n.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,l.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,l.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"name",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],u.prototype,"expression",void 0),(0,o.Cg)([(0,a.w)("expression",["expression","value"])],u.prototype,"readExpression",null),(0,o.Cg)([(0,p.K)("expression")],u.prototype,"writeExpression",null),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"title",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],u.prototype,"value",void 0),u=i=(0,o.Cg)([(0,s.$K)("esri.layers.support.LabelExpressionInfo")],u);const d=u;r.d(t,["A",0,d])},37352(e,t,r){r.d(t,{A:()=>a});var i,o=r(32198),s=r(91429),n=r(7762),l=r(25482);let a=i=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,o.Cg)([(0,s.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>p});var i,o=r(32198),s=r(91429),n=r(66552),l=r(25482);const a=new n.J({asc:"ascending",desc:"descending"});let p=class extends l.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,o.Cg)([(0,s.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],p.prototype,"order",void 0),p=i=(0,o.Cg)([(0,s.$K)("esri.layers.support.OrderByInfo")],p)},41560(e,t,r){r.d(t,{Ch:()=>n,mW:()=>s});var i=r(34727),o=r(39516);function s(e,t){return{...t,filterMode:e.mode}}function n(e,t,r){let s=function(e){if("manual"===p(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(s&&((0,i.gg)(t,s[0])||(0,i.ZH)(r,s[1])))return"";let n=Array.from(l(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let o=u(e.at(0)?.minScale),s=d(e.at(-1)?.maxScale);if((0,i.ZH)(o,t)||(0,i.gg)(s,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],o=e[t+1];if((0,i.ZH)(u(o.minScale),d(r.maxScale)))return!0}return!1}(n,t,r)?"1=1":n.map(e=>e.where||"1=1").reduce((e,t)=>(0,o.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,r){if("manual"===p(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,o){return e=u(e),r=u(r),t=d(t),!(!(0,i.Sp)(r,e)&&(o??r)>e||(0,i.Hx)(t,r)||void 0!==o&&(0,i.Sp)(o,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||1/0}function d(e){return e||0}},17036(e,t,r){r.d(t,{p:()=>a});var i=r(44208),o=r(53966),s=r(20437),n=r(95466),l=r(30524);function a(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){let t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){let e=t.map(e=>`'${e.name}'`).join(", ");o.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${2**53-1} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return n.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){let e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(let t of e)this.fieldsIndex?.has(t)||o.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e});return(0,l.DB)(this.fieldsIndex,e)}}}}},39383(e,t,r){r.d(t,{w:()=>a,z:()=>d});var i=r(49186),o=r(53966),s=r(46499);const n=()=>o.A.getLogger("esri.layers.support.labelingInfo"),l=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new s.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(l,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const p=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],u={esriGeometryPoint:p,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:p,esriGeometryEnvelope:null};function d(e,t){let r=[];for(let o of e){let e=o.labelPlacement,s=u[t];if(!o.symbol)return n().warn("No ILabelClass symbol specified."),[];if(!s)return n().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(s.includes(e))r.push(o);else{let i=s[0];e&&n().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let l=o.clone();l.labelPlacement=i,r.push(l)}}return r}},36003(e,t,r){function i(e,t){let r=e.startField===t.startField||!e.startField&&!t.startField,i=e.endField===t.endField||!e.endField&&!t.endField;return r&&i}r.d(t,{L:()=>i})},73681(e,t,r){r.d(t,{n:()=>a});var i=r(49186),o=r(53966),s=r(46140),n=r(95466),l=r(55674);class a{static async from(e,t,r){let n=e.dictionary_version?s.A.parse(e.dictionary_version):null,u=new Set(e.itemsNames),d={};if(t)for(let e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(let t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);let c=new Set(e.authoringInfo.symbol);for(let e of Object.keys(r))c.delete(e);c.size&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:c});let y=await(0,l.xR)(e.expression,null,d);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let h=!n||!n.greaterEqual(4,0);h&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:n});let g=new p(r,h);return new a(h,u,y,g)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new n.A(e);let t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new n.A(t)}}class p extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){let t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);let t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},22671(e,t,r){r.d(t,{A:()=>v});var i,o=r(32198),s=r(91429),n=r(66552),l=r(25482),a=r(4718),p=r(16930),u=r(60408),d=r(65864),c=r(50498),y=r(52106),h=r(20437),g=r(36005),f=r(43937);const m=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends l.o{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){return this.readFeaturesWithClass(e,t,y.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:o}=this;if(o)for(let e of o)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,d.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=p.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({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){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,o]}=e,s=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=s.length;e<t;e++)n?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,o],scale:[s,n]}=r,l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let p=this._getHydrationFunction(e,e=>e*s+i,e=>o-e*n,l,a);for(let{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=p.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){let s=e[t],n=r.fromJSON(s),l=s.geometry?.spatialReference;null!=n.geometry&&!l&&(n.geometry.spatialReference=i);let a=s.aggregateGeometries,p=n.aggregateGeometries;if(a&&null!=p)for(let e in p){let t=p[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}o.push(n)}return o}_quantizePoints(e,t,r){let i,o,s=[];for(let n=0,l=e.length;n<l;n++){let l=e[n];if(n>0){let e=t(l[0]),n=r(l[1]);(e!==i||n!==o)&&(s.push([e-i,n-o]),i=e,o=n)}else i=t(l[0]),o=r(l[1]),s.push([i,o])}return s.length>0?s: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=>{let i=(0,u.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,s=i.length;e<s;e++){let s=i[e],n=this._quantizePoints(s,t,r);n&&o.push(n)}return o.length>0?((0,u.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let s,n,l=(0,u.Bi)(e)?e.rings:e.paths;for(let e=0,i=l.length;e<i;e++){let i=l[e];for(let e=0,o=i.length;e<o;e++){let o=i[e];e>0?(s+=o[0],n+=o[1]):(s=o[0],n=o[1]),o[0]=t(s),o[1]=r(n)}}if(i&&o)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{let s,n,l=e.points;for(let e=0,i=l.length;e<i;e++){let i=l[e];e>0?(s+=i[0],n+=i[1]):(s=i[0],n=i[1]),i[0]=t(s),i[1]=r(n)}if(i&&o)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=i(t[2])}else if(o)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,s.MZ)({type:[y.A],json:{write:!0}})],v.prototype,"features",void 0),(0,o.Cg)([(0,g.w)("features")],v.prototype,"readFeatures",null),(0,o.Cg)([(0,s.MZ)({type:[h.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,o.Cg)([(0,s.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,o.Cg)([(0,f.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,o.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o.Cg)([(0,s.MZ)({types:c.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,g.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,s.MZ)({type:p.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o.Cg)([(0,f.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,o.Cg)([(0,s.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var i=r(32198),o=r(91429),s=r(66552),n=r(53966),l=r(93223);const a=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",u="field";r.d(t,["K",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&u||r&&p||null,t&&r&&n.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===u||e===p)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.e)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,o.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,a])},2991(e,t,r){r.d(t,{G9:()=>p,RZ:()=>a});var i=r(39516);const o="=",s=">=",n="<=";function l(e,t,r,o){let s=o.get(e)?.type,n=o.getTimeZone(e);return`${(0,i.iA)(e)} ${t} ${(0,i.YG)(r,{type:"date"},{type:s,timeZone:n})}`}function a(e,t,r,a){if(!t||!r)return;let{startField:p,endField:u}=t,{start:d,end:c}=e;if(!d&&!c||!p&&!u)return;let y=p??u,h=u??p;if(y&&h){if(d&&c){if(d.getTime()===c.getTime())return(0,i.mA)(a,l(y,o,d,r));if(!p||!u){let e=l(y,s,d,r),t=l(y,n,c,r);return(0,i.mA)(a,(0,i.mA)(e,t))}let e=l(p,s,d,r),t=l(u,n,c,r);return(0,i.mA)(a,(0,i.mA)(e,t))}if(d)return(0,i.mA)(a,l(y,s,d,r));if(c)return(0,i.mA)(a,l(h,n,c,r))}}function p(e){let{start:t,end:r}=e;if(t||r){if(!t&&r)return`null,${r.getTime()}`;if(!r&&t)return`${t.getTime()},null`;if(r&&t)return t.getTime()===r.getTime()?`${t.getTime()}`:`${t.getTime()},${r.getTime()}`}}},93470(e,t,r){const i=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,o,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{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},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,s])},26121(e,t,r){r.d(t,{I6:()=>u,ci:()=>p,dL:()=>a,wN:()=>d});var i=r(49186),o=r(84952),s=r(77548),n=r(20655),l=r(59923);async function a(e){let t=[];for(let r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){let e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function p(e,t,r){let o=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new i.A(e,t,r));if(e.blockedRelativeUrls&&(o=o.concat(e.blockedRelativeUrls.map(e=>(0,l.GL)("url",`Relative url '${e}' is not supported`)))),r){let{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:i}=r;e&&(o=o.filter(({name:e})=>!(l.MG.has(e)||t.includes(e)))),i&&(o=o.filter(e=>"web-document-write:property-required"!==e.name))}if(o.length>0)throw new i.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:o})}function u(e){return(0,s.qd)(e).some(e=>!!e.charts?.length)}function d(e,t){let r=t?.portal,i=e?.id&&(e.portal||n.A.getDefault());return!!r&&!!i&&!(0,o.ut)(i.restUrl,r.restUrl)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[506,1550,1666,1948,2174,7992,8125],{61691(e,t,r){r.d(t,{G:()=>s});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,r){r.d(t,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){let e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},69397(e,t,r){r.d(t,{JY:()=>m,Qf:()=>l,Qh:()=>i,lM:()=>a,ro:()=>h,rq:()=>u});var s=r(44208),n=r(34275);function a(e){if(!e)return 0;let t=f;for(let r in e)e.hasOwnProperty(r)&&(t+=o(e[r],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let r=g;for(let s=0;s<t;s++)r+=o(e[s]);return r}(e);let t=f;for(let r in e)e.hasOwnProperty(r)&&(t+=o(e[r]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?i(e):f;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+h(t),0)}function h(e,t=16){return e?(0,n.iu)(e)?e.byteLength+c:Array.isArray(e)?u(e,t):0:0}function u(e,t){return g+e.length*t}const f=32,g=16,m=(0,s.A)("ios")||!(0,s.A)("chrome")&&!(0,s.A)("opr")?8:4,c=145},87992(e,t,r){r.d(t,{JR:()=>Z,ME:()=>M,MY:()=>A,NO:()=>C,Nh:()=>P,V2:()=>_,_s:()=>Y,e6:()=>b,gh:()=>E,jm:()=>V,tr:()=>X,uX:()=>p});var s=r(32198),n=(r(69397),r(92722)),a=r(16930),i=r(19419),o=r(513),l=r(50954),h=r(79567),u=r(52006),f=r(49663),g=r(46068),m=r(60408),c=r(21325);class p{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:a,partCount:i,partOffsets:o,partFlags:l,segmentFlags:h,segmentIndices:u,segmentParams:f,segmentCountArc:g,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=a,this.partCount=i,this.partOffsets=o,this.partFlags=l,this.segmentFlags=h,this.segmentIndices=u,this.segmentParams=f,this.segmentCountArc=g,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:s,hasM:n,segmentCountArc:a,segmentCountBezier:i}=this,o=_(e,t,r,s,n,this.hasCurves(),a,i);o.spatialReference=this.spatialReference;let{vertexXY:l,vertexZ:h,vertexM:u}=this;if(o.vertexXY.set(l.subarray(0,2*t),0),o.vertexZ?.set(h.subarray(0,t),0),o.vertexM?.set(u.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;o.partFlags.set(t.subarray(0,r+1)),o.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(e.subarray(0,t),0),o.segmentIndices.set(r.subarray(0,t),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,c.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new x(this):[][Symbol.iterator]()}}class x{constructor(e){this.geometry=e,this.value=new d(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(e){this.geometry=e,this.index=-1,this._readVertex=w(e),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class y{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new v(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=w(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],s=t[r++],n=t[r++],a=t[r++];return{b:[this.end,[e,s],[n,a]]}}let s=t[r++],n=t[r++],a=t[r++],i=t[r++],o=t[r++],l=t[r++];r++,r++;let h=t[r++],u=t[r++];if(!(4&s)&&1===a)return{c:[this.end,[h,u]]};let f=2&s?0:1,g=1&s?0:1;return{a:[this.end,[o,l],f,g,i,n,a]}}}function C(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,i.Ie)(),(0,s.mS)(r,new O(e,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(t,function(e){let t,{vertexCount:r,vertexXY:n,vertexZ:a,vertexM:o}=e,l=R(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new O(e,["vertexZ","vertexM"]),!1);let n=(0,i.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,h.e)(n,e,r),e=(0,u.yP)(r)}let[a,o,f,g]=n;t={xmin:a,ymin:o,xmax:f,ymax:g,spatialReference:l}}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}else{let e,s,a,i;e=s=1/0,a=i=-1/0;for(let t=0;t<r;++t){let r=n[2*t],o=n[2*t+1];e=Math.min(e,r),a=Math.max(a,r),s=Math.min(s,o),i=Math.max(i,o)}t={xmin:e,ymin:s,xmax:a,ymax:i,spatialReference:l}}if(a){let e=1/0,r=-1/0;for(let t of a)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(o){let e=1/0,r=-1/0;for(let t of o)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}function M(e){let t,r,s;if((0,m.fT)(e)){s="point";let{x:n,y:a,z:i,m:o}=e,l=[n,a];null!=i&&l.push(i),null!=o&&l.push(o),r=[[l]],t=1}else(0,m.U9)(e)?(s="multipoint",r=[e.points],t=e.points.length):(0,m.Rg)(e)?(s="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(s="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,S(t[0],(0,u.yP)(t.at(-1)))&&--e),e),0));let n=_(s,t,s.includes("point")?0:r.length,(0,m.Pv)(e),(0,m.W0)(e),(0,u.Ed)(e)),{hasZ:a,hasM:i,vertexXY:o,vertexZ:l,vertexM:h}=n;function f(e){o[2*c]=e[0],o[2*c+1]=e[1],a&&(l[c]=e[2]),i&&(h[c]=e[g]),++c}n.spatialReference=e.spatialReference??void 0;let g=n.hasZ?3:2,c=0;if(!n.isMultipart()){if(!a&&!i){for(let[e,t]of r[0])o[2*c]=e,o[2*c+1]=t,++c;return n}for(let e of r[0])f(e);return n}let p="polygon"===s,{partOffsets:x}=n,d=0;if(!(0,u.Ed)(e)){for(let e of r){if(x[d++]=c,0===e.length)continue;let t=e.length;if(p&&S(e[0],e.at(-1))&&--t,a||i)for(let r=0;r<t;++r)f(e[r]);else for(let r=0;r<t;++r){let[t,s]=e[r];o[2*c]=t,o[2*c+1]=s,++c}}return x[d]=c,n}function y(e){let t=v+e;if(t<=(n.segmentParams?.length??0))return;let r=t*G;r=20*Math.ceil(r/20);let s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let v=0;for(let e of r){if(n.partOffsets[d++]=c,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let s=e[t];f(r);let a=c-1;(0,u.wY)(s)?(y(10),++n.segmentCountArc,v=Y(r,s,n,a,v),r=s.a[0]):(0,u.DA)(s)?(y(10),++n.segmentCountArc,v=I(r,s,n,a,v),r=s.a[0]):(0,u.aO)(s)?(y(10),++n.segmentCountArc,v=b(r,s,n,a,v),r=s.c[0]):(0,u.n1)(s)?(y(4),++n.segmentCountBezier,v=X(0,s,n,a,v),r=s.b[0]):r=s}p&&S(t,r)||f(r)}return n.partOffsets[d]=c,n}function E(e){let t=w(e),{vertexCount:r,partCount:s,hasZ:n,hasM:a}=e,i=R(e),o=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:i}}let s=[];for(;o<r;)s.push(t(o++));return{points:s,spatialReference:i,hasZ:n,hasM:a}}if(!e.hasCurves()){let r=[];for(let n=0;n<s;++n){let s=!!(1&e.partFlags[n]),a=e.partOffsets[n+1],i=[];for(;o<a;)i.push(t(o++));s&&i.length>0&&i.push([...i[0]]),r.push(i)}return"polygon"===e.type?{rings:r,hasZ:n,hasM:a,spatialReference:i}:{paths:r,hasZ:n,hasM:a,spatialReference:i}}let l=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);l.push(e)}return"polygon"===e.type?{rings:[],curveRings:l,hasZ:n,hasM:a,spatialReference:i}:{paths:[],curvePaths:l,hasZ:n,hasM:a,spatialReference:i}}function P(e,{lengths:t,coords:r,hasZ:s,hasM:n},a){let i=e.includes("point")?0:t.length,o="polygon"===e,l="point"===e?1:t.reduce((e,t)=>e+t,0)-(o?i:0);s??=!1,n??=!1;let h=_(e,l,i,s,n,!1,0,0);if(h.spatialReference=a??void 0,!h.isMultipart()){for(let e=0,t=0;e<l;++e)h.vertexXY[2*e]=r[t++],h.vertexXY[2*e+1]=r[t++],s&&(h.vertexZ[e]=r[t++]),n&&(h.vertexM[e]=r[t++]);return h}let u=2+Number(s)+Number(n),f=0,g=0;h.partOffsets[0]=0;for(let e of t){let t=h.partOffsets[g],a=t+e-Number(o);h.partOffsets[++g]=a;for(let e=t;e<a;++e)h.vertexXY[2*e]=r[f++],h.vertexXY[2*e+1]=r[f++],s&&(h.vertexZ[e]=r[f++]),n&&(h.vertexM[e]=r[f++]);o&&(f+=u)}return h}function Z({type:e,vertexCount:t,vertexXY:r,vertexZ:s,vertexM:a,partCount:i,partOffsets:o,partFlags:l,hasZ:h,hasM:u}){let f=new n.A([],[],h,u);i=Math.max(i,1);let g=0;for(let e=0;e<i;++e){let n=o?.[e+1]??t,i=f.coords.length;for(let e=g;e<n;++e)f.coords.push(r[2*e],r[2*e+1]),h&&f.coords.push(s[e]),u&&f.coords.push(a[e]);if(l&&1&l[e]){let e=g;f.coords.push(r[2*e],r[2*e+1]),h&&f.coords.push(s[e]),u&&f.coords.push(a[e])}f.lengths.push((f.coords.length-i)/f.stride),g=n}return"point"===e&&(f.lengths.length=0),f}function V(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function A(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let s=e.getLatestID();(s<=0||s===r)&&(s=void 0);let n=e.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:t};let a=n.isCustomWkid()?0:n.getOldID();if(a<=0)return{wkt:t};let i=e.getLatestVerticalID();return(i<=0||i===a)&&(i=void 0),{wkid:r,wkt:t,latestWkid:s,vcsWkid:a,latestVcsWkid:i}}(e.getSpatialReference()),e=e.getGeometry()),new p({...e.toFlatGeometry(),spatialReference:t})}class O{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function R({spatialReference:e}){return e instanceof a.A?e.toJSON():e}function w({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?s=>[e[2*s],e[2*s+1],t[s],r[s]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function S(e,t){return e.every((e,r)=>e===t[r])}function _(e,t,r,s,n,a,i,o){i??=0,o??=0;let l=new p({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:i,segmentCountBezier:o}),h=2*Float64Array.BYTES_PER_ELEMENT*t;s&&(h+=Float64Array.BYTES_PER_ELEMENT*t),n&&(h+=Float64Array.BYTES_PER_ELEMENT*t),l.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),a&&(h+=t*Int8Array.BYTES_PER_ELEMENT,h+=t*Int32Array.BYTES_PER_ELEMENT,h+=l.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let u=new ArrayBuffer(h),f=0;return l.vertexXY=new Float64Array(u,f,2*t),f+=l.vertexXY.byteLength,s&&(l.vertexZ=new Float64Array(u,f,t),f+=l.vertexZ.byteLength),n&&(l.vertexM=new Float64Array(u,f,t),f+=l.vertexM.byteLength),a&&(l.segmentParams=new Float64Array(u,f,l.segmentParamCount),f+=l.segmentParams.byteLength,l.segmentIndices=new Int32Array(u,f,t),l.segmentIndices.fill(k),f+=l.segmentIndices.byteLength),l.isMultipart()&&(l.partOffsets=new Int32Array(u,f,r+1),f+=l.partOffsets.byteLength,l.partFlags=new Int8Array(u,f,r+1),f+=l.partFlags.byteLength,"polygon"===l.type&&l.partFlags.subarray(0,r).fill(1)),a&&(l.segmentFlags=new Int8Array(u,f,t),l.segmentFlags.fill(1),f+=l.segmentFlags.byteLength),l}function Y(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){r[a]=4,s[a]=i;let[o,[l,h],u,f,m,c,p]=t.a,x=4;f||(x|=1),u||(x|=2);let d=(0,g.SW)(e,t),[y,v]=(0,g.Uk)(d,.5);return n[i++]=x,n[i++]=c,n[i++]=p,n[i++]=m,n[i++]=l,n[i++]=h,n[i++]=d.u2-d.u1,n[i++]=d.u1,n[i++]=y,n[i++]=v,i}function I(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){r[a]=4,s[a]=i;let l=(0,f.io)(e,t);return F(l,4,...(0,o.mq)(l,.5),n,i)}function b(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){return r[a]=4,s[a]=i,F((0,l.pM)(e,t),0,...t.c[1],n,i)}function F(e,t,r,s,n,a){let{cx:i,cy:o,thetaStart:l,thetaEnd:h,radius:u}=e;return l>h||(t|=1),Math.abs(h-l)<=Math.PI||(t|=2),n[a++]=t,n[a++]=u,n[a++]=1,n[a++]=0,n[a++]=i,n[a++]=o,n[a++]=h-l,n[a++]=l,n[a++]=r,n[a++]=s,a}function X(e,{b:[t,[r,s],[n,a]]},{segmentFlags:i,segmentIndices:o,segmentParams:l},h,u){return i[h]=2,o[h]=u,l[u++]=r,l[u++]=s,l[u++]=n,l[u++]=a,u}const G=1.61803,k=-1},965(e,t,r){r.d(t,{lengthExecute:()=>a});var s=r(86211),n=r(78125);function a(e,t={}){let{unit:r}=t,a=(0,n.fromGeometry)(e).calculateLength2D();if(a&&r){let t=(0,n.getSpatialReference)(e);a=(0,s.PQ)(a,t,r)}return a}r(85036)},78125(e,t,r){r.r(t),r.d(t,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>d,fromPoint:()=>y,fromPolygon:()=>v,fromPolyline:()=>C,fromPolylineUsingImportOperator:()=>M,fromSpatialReference:()=>E,getSpatialReference:()=>c,toExtent:()=>Z,toGeometry:()=>P,toMultipoint:()=>V,toPoint:()=>A,toPolygon:()=>O,toPolyline:()=>R});var s=r(83661),n=r(55537),a=r(95213),i=r(88885),o=r(5443),l=r(48526),h=r(86738),u=r(39829),f=r(82799),g=(r(90293),r(83299));const m="_gxVersion";function c(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function p(e){switch(e.type){case"point":return y(e);case"multipoint":return d(e);case"polyline":return C(e);case"polygon":return v(e);case"extent":return x(e);default:throw Error(`Unsupported geometry type: ${e.type}`)}}function x(e){if(!e.getCacheValue(m)){let t=new a.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(m,t)}return e.getCacheValue(m)}function d(e){if(!e.getCacheValue(m)){let t=new i.M,r=new a.P,s=e.points,n=e.hasM,o=e.hasZ,l=o?3:2;for(let e=0,a=s.length;e<a;e++){let a=s[e];r.setXYCoords(a[0],a[1]),o&&r.setZ(a[2]??0),n&&r.setM(a[l]??NaN),t.add(r)}e.setCacheValue(m,t)}return e.getCacheValue(m)}function y(e){if(!e.getCacheValue(m)){let t=new a.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(m,t)}return e.getCacheValue(m)}function v(e){if(!e.getCacheValue(m)){let{curveRings:t,hasM:r,hasZ:s,rings:n}=e,a=(0,g.fromGeometryToGXGeometry)({curveRings:t,hasM:r,hasZ:s,rings:n});e.setCacheValue(m,a)}return e.getCacheValue(m)}function C(e){if(!e.getCacheValue(m)){let{curvePaths:t,hasM:r,hasZ:s,paths:n}=e,a=(0,g.fromGeometryToGXGeometry)({curvePaths:t,hasM:r,hasZ:s,paths:n});e.setCacheValue(m,a)}return e.getCacheValue(m)}function M(e){if(!e.getCacheValue(m)){let{curvePaths:t,hasM:r,hasZ:s,paths:n}=e,a=(0,g.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:r,hasZ:s,paths:n});e.setCacheValue(m,a)}return e.getCacheValue(m)}function E(e){return e.cache?(e.cache[m]??=(0,g.fromSpatialReference)(e),e.cache[m]):(0,g.fromSpatialReference)(e)}function P(e,t){if(e)switch(e.getGeometryType()){case n.G.enumPoint:return A(e,t);case n.G.enumEnvelope:return Z(e,t);case n.G.enumMultiPoint:return V(e,t);case n.G.enumPolyline:return R(e,t);case n.G.enumPolygon:return O(e,t)}return null}function Z(e,t){if(e.isEmpty())return null;let r=new o.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),s=e.getDescription();if(s.hasM()){let t=e.queryInterval(2,0);r.mmin=t.vmin,r.mmax=t.vmax}if(s.hasZ()){let t=e.queryInterval(1,0);r.zmin=t.vmin,r.zmax=t.vmax}return r.setCacheValue(m,e),r}function V(e,t){if(e.isEmpty())return null;let r=e.getDescription(),s=r.hasM(),n=r.hasZ(),i=[],o=new a.P;for(let t=0,r=e.getPointCount();t<r;t++){e.getPointByVal(t,o);let r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),i.push(r)}let h=new l.A({hasM:s,hasZ:n,points:i,spatialReference:t});return h.setCacheValue(m,e),h}function A(e,t){if(e instanceof s.P)return new h.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;let r=new h.A({x:e.getX(),y:e.getY(),spatialReference:t}),n=e.getDescription();return n.hasM()&&(r.m=e.getM()),n.hasZ()&&(r.z=e.getZ()),r.setCacheValue(m,e),r}function O(e,t){if(e.isEmpty())return null;let r=u.A.fromJSON({...(0,g.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(m,e),r}function R(e,t){if(e.isEmpty())return null;let r=f.A.fromJSON({...(0,g.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(m,e),r}},85036(e,t,r){r.d(t,{Q:()=>a});var s=r(51447),n=r(53966);function a(e,t,r){(0,s.io)(n.A.getLogger(`esri.geometry.operators.${e}`),`${t} is deprecated. Refactor using @arcgis/codemod or manually replace usages with ${r} instead.`,{replacement:r,warnOnce:!0})}},92722(e,t,r){r.d(t,{A:()=>n});var s=r(69397);class n{constructor(e=[],t=[],r=!1,s=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:s}){return new n(e,t,r||!1,s||!1)}static fromRect([e,t,r,s]){let a=r-e,i=s-t;return new n([5],[e,t,a,0,0,i,-a,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let e=0,t=0;for(let r of this.lengths){if(r<3)continue;let{stride:s}=this,n=this.coords[s*t],a=this.coords[s*t+1];for(let i=1;i<r;i+=1){let r=s*(t+i),o=this.coords[r],l=this.coords[r+1];e+=-.5*(o-n)*(l+a),n=o,a=l}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);let{stride:r}=this;for(let s of this.lengths){for(let n=0;n<s;n++){let s=r*(t+n);e(this.coords[s],this.coords[s+1])}t+=s}}deltaDecode(){let e=this.clone(),{coords:t,lengths:r}=e,s=0,{stride:n}=this;for(let e of r){for(let r=1;r<e;r++){let e=n*(s+r);t[e]+=t[e-n],t[e+1]+=t[e+1-n]}s+=e}return e}clone(e){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let t=Array.from(this.lengths),{stride:r,size:s}=this,a=this.coords.slice(0,s*r);return e?(e.set(a),new n(t,e,this.hasZ,this.hasM)):new n(t,Array.from(a),this.hasZ,this.hasM)}justXY(){let{stride:e,size:t}=this;if(2===e)return this;let r=Array(t*e);for(let t=0,s=0;t<r.length;t+=e)r[s++]=this.coords[t],r[s++]=this.coords[t+1];return new n(this.lengths,r,!1,!1)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[926,5879],{92474(e,t,r){r.d(t,{WV:()=>h,Zm:()=>c});var s=r(32198),o=r(10107),i=r(64108),l=r(49186),a=r(97768),n=r(61893),u=r(17676),p=r(67076);const d="loaded",h=e=>{let t=e,r=class extends t{constructor(...e){super(...e),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(e=>{let t=this.load.bind(this);this.load=r=>{let s=new Promise((e,t)=>{let s=(0,u.NY)(r,t);this.destroyed&&t(new l.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(e,t).finally(()=>{s&&s.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");let e=this._loadController=new AbortController,r=t({signal:e.signal});(0,u.$X)(r)&&r.catch(()=>{})}return e(),s}})),this.when(()=>{this._set("loadStatus",d),this._loadController=null},e=>{this.destroyed||(this._set("loadStatus","failed"),this._set("loadError",e),this._loadController=null)})}destroy(){this._loadController&&(this._loadController=(0,a.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}async load(e){return this}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new l.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,s.Cg)([(0,o.MZ)({readOnly:!0})],r.prototype,"loaded",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],r.prototype,"loadError",void 0),(0,s.Cg)([(0,o.MZ)({clonable:!1})],r.prototype,"loadStatus",void 0),(0,s.Cg)([(0,o.MZ)({type:[p.A],readOnly:!0})],r.prototype,"loadWarnings",null),r=(0,s.Cg)([(0,i.$K)("esri.core.Loadable")],r),r},y=h(n.Z);function c(e){return!(!e||!e.load)}r.d(t,["x_",0,y])},61893(e,t,r){var s=r(32198),o=r(56372),i=r(64108),l=r(36563),a=r(17676);class n{constructor(){this._resolver=Promise.withResolvers(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,a.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let e=Promise.withResolvers(),t=[...this._resolvingPromises,e.promise],r=this._allPromise=Promise.all(t);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},e=>{this.isFulfilled()||this._allPromise!==r||(0,a.zf)(e)||this._resolver.reject(e)}),e.resolve()}}const u=e=>{let t=e,r=class extends t{constructor(...e){super(...e),this._promiseProps=new n,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,t){return this._promiseProps.promise.then(()=>this).then(e,t)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}addResolvingTask(e){e&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,l.rE)(e)),this._promiseProps.addResolvingPromise(e.promise))}};return r=(0,s.Cg)([(0,i.$K)("esri.core.Promise")],r),r},p=u(o.A);r.d(t,["Z",0,p,"g",0,u])},41910(e,t,r){r.d(t,{WH:()=>o});const s=Symbol("arcadeFeatureSource");function o(e){return null!=(t=e)&&s in t?e[s]:null;var t}r.d(t,["e7",0,s])},5757(e,t,r){r.d(t,{B:()=>o});const s=Symbol("PopupTemplateInstance");function o(e){return"object"==typeof e&&!!e&&s in e}r.d(t,["P",0,s])},20655(e,t,r){r.d(t,{A:()=>A});var s=r(32198),o=r(92602),i=r(91429),l=r(56507),a=r(49186),n=r(25482),u=r(92474),p=r(97768),d=r(17676),h=r(5443),y=r(73444),c=r(70333),m=r(78888),g=r(926);let f;var C=r(96360),v=r(16405),M=r(56372);let Z=class extends M.A{constructor(e){super(e),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,s.Cg)([(0,i.MZ)()],Z.prototype,"nextQueryParams",void 0),(0,s.Cg)([(0,i.MZ)()],Z.prototype,"queryParams",void 0),(0,s.Cg)([(0,i.MZ)()],Z.prototype,"results",void 0),(0,s.Cg)([(0,i.MZ)()],Z.prototype,"total",void 0),Z=(0,s.Cg)([(0,i.$K)("esri.portal.PortalQueryResult")],Z);var S,P=r(41318),w=r(36005);let _;const O={PortalGroup:()=>Promise.resolve({default:C.A}),PortalItem:()=>r.e(812).then(()=>r(80812)),PortalUser:()=>Promise.resolve({default:P.A})};let A=class extends((0,n.T)(u.x_)){static{S=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(e){super(e),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.g3DTilesGalleryGroupQuery=null,this.g3dTilesEnabled=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=o.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}destroy(){b.unregister(this),this.defaultBasemap=(0,p.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,p.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(e){if(e)for(let t of e)o.A.request.trustedServers.includes(t)||o.A.request.trustedServers.push(t);return e}readDefaultBasemap(e){return this._readBasemap(e)}readDefaultDevBasemap(e){return this._readBasemap(e)}readDefaultVectorBasemap(e){return this._readBasemap(e)}get extraQuery(){let e=!this.user?.orgId||this.canSearchPublic;return this.id&&!e?`orgid:${this.id}`:null}get hasAPIKey(){return(0,g.Jn)(this.restUrl)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get loaded(){return super.loaded}get restUrl(){let e=this.url;if(e){let t=e.indexOf("/sharing");e=t>0?e.slice(0,t):this.url.replace(/\/+$/,""),e+="/sharing/rest"}return e}get thumbnailUrl(){let e=this.restUrl,t=this.thumbnail;return e&&t?this._normalizeSSL(e+"/portals/self/resources/"+t):null}readUrlKey(e){return e&&e.toLowerCase()}readUser(e){let t=null;return e&&(t=P.A.fromJSON(e),t.portal=this),t}load(e){let t=Promise.all([r.e(812),r.e(3281),r.e(3116)]).then(()=>r(83116)).then(({default:t})=>{(0,d.Te)(e),_=t}).then(()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,e)).then(e=>{if(!this.hasAPIKey&&c.id){let e=c.id;this.credential=e.findCredential(this.restUrl),this.credential||this.authMode!==S.AUTH_MODE_AUTO&&this.authMode!==S.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=e.on("credential-create",function(e){let t=c.id;return()=>{let r=e.deref();r&&t.findCredential(r.restUrl)&&r.signIn().catch(()=>{})}}(new WeakRef(this))),b.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=e,this.read(e)});return this.addResolvingPromise(t),Promise.resolve(this)}async createElevationLayers(){await this.load();let e=this._getHelperService("defaultElevationLayers"),t=(await Promise.all([r.e(9917),r.e(8278),r.e(9953),r.e(812),r.e(6874),r.e(7548)]).then(()=>r(38732))).default;return e?e.map(e=>new t({id:e.id,url:e.url})):[]}async fetchBasemaps(e,t){let r=await this._fetchBasemaps(e,t);if(!0===t?.include3d&&!1!==this.use3dBasemaps){if(this.g3dTilesEnabled&&this.g3DTilesGalleryGroupQuery){let e=await this._fetchBasemaps3D(this.g3DTilesGalleryGroupQuery,t);r.unshift(...e)}let s=await this._fetchBasemaps3D(e,t);r.unshift(...s)}return r}async fetchDefault3DBasemap(e){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;let t=new v.A;t.query=this.default3DBasemapQuery,t.disableExtraQuery=!0;let r=(await this.queryItems(t,e)).results.find(e=>"Web Scene"===e.type);return r?new _({portalItem:r}):null}fetchCategorySchema(e){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",e).then(e=>e.categorySchema):(0,d.G4)(e)?Promise.reject((0,d.NK)()):Promise.resolve([])}async fetchClassificationSchema(e){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",e).then(e=>e.classificationSchema):null}fetchFeaturedGroups(e){let t=this.featuredGroups,r=new v.A({num:100,sortField:"title"});return t?.length?(r.query=Array.from(t,e=>`(title:"${e.title}" AND owner:${e.owner})`).join(" OR "),this.queryGroups(r,e).then(e=>e.results)):(0,d.G4)(e)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchRegions(e){let t=this.user?.culture||this.culture||(0,y.JK)();return this.request(this.restUrl+"/portals/regions",{...e,query:{culture:t}})}fetchSettings(e){let t=this.user?.culture||this.culture||(0,y.JK)();return this.request(this.restUrl+"/portals/self/settings",{...e,query:{culture:t}})}static getDefault(){return(!f||f.destroyed)&&(f=new S),f}queryGroups(e,t){return this.queryPortal("/community/groups",e,"PortalGroup",t)}queryItems(e,t){return this.queryPortal("/search",e,"PortalItem",t)}queryUsers(e,t){return e.sortField||="username",this.queryPortal("/community/users",e,"PortalUser",t)}fetchSelf(e=this.authMode,t=!1,r){let s=this.restUrl+"/portals/self",o={authMode:e,query:{culture:(0,y.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===o.authMode&&(o.authMode="no-prompt"),t&&(o.query.default=!0),this.request(s,o)}queryPortal(e,t,r,s){let o=(0,l.dp)(v.A,t),i=t=>this.request(this.restUrl+e,{...o.toRequestOptions(this),...s}).then(e=>{let r=o.clone();return r.start=e.nextStart,new Z({nextQueryParams:r,queryParams:o,total:e.total,results:S._resultsToTypedArray(t,{portal:this},e,s)})}).then(e=>Promise.all(e.results.map(t=>"function"==typeof t.when?t.when():e)).then(()=>e,t=>((0,d.QP)(t),e)));return r&&O[r]?O[r]().then(({default:e})=>((0,d.Te)(s),i(e))):i()}signIn(){if(this.hasAPIKey)return this.load().then(()=>{if(!this.user)throw new a.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")});if(this.authMode===S.AUTH_MODE_ANONYMOUS||this.authMode===S.AUTH_MODE_NO_PROMPT&&!c.id)return Promise.reject(new a.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);let e=e=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(e||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=e,this.fetchSelf("immediate"))):this.user&&this.credential===e?null:(this.credential=e,this.fetchSelf("immediate"))).then(e=>{e&&(this.sourceJSON=e,this.read(e))});return c.id?c.id.getCredential(this.restUrl,{prompt:this.authMode!==S.AUTH_MODE_NO_PROMPT}).then(t=>e(t)):e(this.credential)}normalizeUrl(e){let t=this.credential?.token;return this._normalizeSSL(t?e+(e.includes("?")?"&":"?")+"token="+t:e)}requestToTypedArray(e,t,r){return this.request(e,t).then(e=>{let t=S._resultsToTypedArray(r,{portal:this},e);return Promise.all(t.map(t=>"function"==typeof t.when?t.when():e)).then(()=>t,()=>t)})}request(e,t={}){let r={f:"json",...t.query},{authMode:s=(this.authMode===S.AUTH_MODE_ANONYMOUS||this.authMode===S.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:o=null,cacheBust:i=!1,method:l="auto",responseType:a="json",signal:n}=t,u={authMode:s,body:o,cacheBust:i,method:l,query:r,responseType:a,timeout:0,signal:n};return t.withCredentials&&(u.withCredentials=!0),(0,m.A)(this._normalizeSSL(e),u).then(e=>e.data)}toJSON(){throw new a.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw Error("JSON object is already hydrated");return new S({sourceJSON:e})}_getHelperService(e){let t=this.helperServices?.[e];if(!t)throw new a.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${e}"`);return t}async _fetchBasemaps(e,t){let r=new v.A;r.query=e||((0,g.Dd)()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;let s=await this.queryGroups(r,t);if(!s.total)return[];let o=s.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=o.sortField||"name",r.sortOrder=o.sortOrder||"desc";let i=await o.queryItems(r,t);return i.total?i.results.filter(e=>"Web Map"===e.type).map(e=>new _({portalItem:e})):[]}async _fetchBasemaps3D(e,t){let r=e||this.basemapGalleryGroupQuery3D;if(!r||(0,g.Dd)())return[];let s=new v.A({query:r,disableExtraQuery:!0}),o=await this.queryGroups(s,t);if(!o.total)return[];let i=o.results[0];s.num=100,s.query='type:"Web Scene"',s.sortField=i.sortField||"name",s.sortOrder=i.sortOrder||"desc";let l=await i.queryItems(s,t);return l.total?l.results.filter(e=>"Web Scene"===e.type).map(e=>new _({portalItem:e})):[]}_normalizeSSL(e){return e.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(e){if(e){let t=_.fromJSON(e);return t.portalItem={portal:this},t}return null}static _resultsToTypedArray(e,t,r,s){let o;if(r){let i=null==s?null:s.signal;o=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(e||t)&&(o=o.map(r=>{let s=Object.assign(e?e.fromJSON(r):r,t);return"function"==typeof s.load&&s.load(i),s}))}else o=[];return o}};(0,s.Cg)([(0,i.MZ)()],A.prototype,"access",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"allSSL",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"authMode",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"authorizedCrossOriginDomains",void 0),(0,s.Cg)([(0,w.w)("authorizedCrossOriginDomains")],A.prototype,"readAuthorizedCrossOriginDomains",null),(0,s.Cg)([(0,i.MZ)()],A.prototype,"basemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,i.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],A.prototype,"basemapGalleryGroupQuery3D",void 0),(0,s.Cg)([(0,i.MZ)({json:{name:"g3DTilesGalleryGroupQuery"}})],A.prototype,"g3DTilesGalleryGroupQuery",void 0),(0,s.Cg)([(0,i.MZ)({json:{name:"g3dTilesEnabled"}})],A.prototype,"g3dTilesEnabled",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"bingKey",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"canListApps",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"canListData",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"canListPreProvisionedItems",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"canProvisionDirectPurchase",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"canSearchPublic",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"canShareBingPublic",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"canSharePublic",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"canSignInArcGIS",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"canSignInIDP",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"colorSetsGroupQuery",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"commentsEnabled",void 0),(0,s.Cg)([(0,i.MZ)({type:Date})],A.prototype,"created",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"credential",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"culture",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"currentVersion",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"customBaseUrl",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"default3DBasemapQuery",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"defaultBasemap",void 0),(0,s.Cg)([(0,w.w)("defaultBasemap")],A.prototype,"readDefaultBasemap",null),(0,s.Cg)([(0,i.MZ)()],A.prototype,"defaultDevBasemap",void 0),(0,s.Cg)([(0,w.w)("defaultDevBasemap")],A.prototype,"readDefaultDevBasemap",null),(0,s.Cg)([(0,i.MZ)({type:h.A})],A.prototype,"defaultExtent",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"defaultVectorBasemap",void 0),(0,s.Cg)([(0,w.w)("defaultVectorBasemap")],A.prototype,"readDefaultVectorBasemap",null),(0,s.Cg)([(0,i.MZ)()],A.prototype,"description",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"devBasemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"eueiEnabled",void 0),(0,s.Cg)([(0,i.MZ)({readOnly:!0})],A.prototype,"extraQuery",null),(0,s.Cg)([(0,i.MZ)()],A.prototype,"featuredGroups",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"featuredItemsGroupQuery",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"galleryTemplatesGroupQuery",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"layoutGroupQuery",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"livingAtlasGroupQuery",void 0),(0,s.Cg)([(0,i.MZ)({readOnly:!0})],A.prototype,"hasAPIKey",null),(0,s.Cg)([(0,i.MZ)()],A.prototype,"hasCategorySchema",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"hasClassificationSchema",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"helpBase",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"helperServices",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"helpMap",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"homePageFeaturedContent",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"homePageFeaturedContentCount",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"httpPort",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"httpsPort",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"id",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"ipCntryCode",void 0),(0,s.Cg)([(0,i.MZ)({readOnly:!0})],A.prototype,"isOrganization",null),(0,s.Cg)([(0,i.MZ)()],A.prototype,"isPortal",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"isReadOnly",void 0),(0,s.Cg)([(0,i.MZ)({readOnly:!0})],A.prototype,"itemPageUrl",null),(0,s.Cg)([(0,i.MZ)()],A.prototype,"layerTemplatesGroupQuery",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"maxTokenExpirationMinutes",void 0),(0,s.Cg)([(0,i.MZ)({type:Date})],A.prototype,"modified",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"name",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"portalHostname",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"portalMode",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"portalProperties",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"region",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"recycleBinEnabled",void 0),(0,s.Cg)([(0,i.MZ)({readOnly:!0})],A.prototype,"restUrl",null),(0,s.Cg)([(0,i.MZ)()],A.prototype,"rotatorPanels",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"showHomePageDescription",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"staticImagesUrl",void 0),(0,s.Cg)([(0,i.MZ)({json:{name:"2DStylesGroupQuery"}})],A.prototype,"stylesGroupQuery2d",void 0),(0,s.Cg)([(0,i.MZ)({json:{name:"stylesGroupQuery"}})],A.prototype,"stylesGroupQuery3d",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"supportsHostedServices",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"symbolSetsGroupQuery",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"templatesGroupQuery",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"thumbnail",void 0),(0,s.Cg)([(0,i.MZ)({readOnly:!0})],A.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,i.MZ)()],A.prototype,"units",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"url",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"urlKey",void 0),(0,s.Cg)([(0,w.w)("urlKey")],A.prototype,"readUrlKey",null),(0,s.Cg)([(0,i.MZ)()],A.prototype,"user",void 0),(0,s.Cg)([(0,w.w)("user")],A.prototype,"readUser",null),(0,s.Cg)([(0,i.MZ)()],A.prototype,"use3dBasemaps",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"useDefault3dBasemap",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"useStandardizedQuery",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"useVectorBasemaps",void 0),(0,s.Cg)([(0,i.MZ)()],A.prototype,"vectorBasemapGalleryGroupQuery",void 0),A=S=(0,s.Cg)([(0,i.$K)("esri.portal.Portal")],A);const b=new FinalizationRegistry(e=>{e.remove()})},96360(e,t,r){r.d(t,{A:()=>p});var s,o=r(32198),i=r(91429),l=r(56507),a=r(49186),n=r(25482),u=r(16405);let p=s=class extends n.o{constructor(e){super(e),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){let e=this.url,t=this.thumbnail;return e&&t&&this.portal?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`):null}get url(){let e=this.portal?.restUrl;return e?e+"/community/groups/"+this.id:null}fetchCategorySchema(e){return this.portal.request(this.url+"/categorySchema",e).then(t=>{let r=t.categorySchema||[];return r.some(e=>"contentCategorySetsGroupQuery.LivingAtlas"===e.source)?this._fetchCategorySchemaSet("LivingAtlas",e):r})}fetchMembers(e){return this.portal.request(this.url+"/users",e)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}toJSON(){throw new a.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw Error("JSON object is already hydrated");let t=new s({sourceJSON:e});return t.read(e),t}queryItems(e,t){let r=(0,l.dp)(u.A,e),s=this.portal;return parseFloat(s.currentVersion)>5?(r||=new u.A,s.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",t)):(r=r?r.clone():new u.A,r.query="group:"+this.id+(r.query?" "+r.query:""),s.queryItems(r,t))}_fetchCategorySchemaSet(e,t){let r=this.portal;return r.fetchSelf(r.authMode,!0,t).then(e=>{let s=e.contentCategorySetsGroupQuery;if(s){let e=new u.A({disableExtraQuery:!0,num:1,query:s});return r.queryGroups(e,t)}throw new a.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(r=>{if(r.total){let s=r.results[0],o=new u.A({num:1,query:`typekeywords:"${e}"`});return s.queryItems(o,t)}throw new a.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(e=>e.total?e.results[0].fetchData("json",t).then(e=>{let t=e?.categorySchema;return t?.length?t:[]}):[])}};(0,o.Cg)([(0,i.MZ)()],p.prototype,"access",void 0),(0,o.Cg)([(0,i.MZ)({type:Date})],p.prototype,"created",void 0),(0,o.Cg)([(0,i.MZ)()],p.prototype,"description",void 0),(0,o.Cg)([(0,i.MZ)()],p.prototype,"id",void 0),(0,o.Cg)([(0,i.MZ)()],p.prototype,"isInvitationOnly",void 0),(0,o.Cg)([(0,i.MZ)({type:Date})],p.prototype,"modified",void 0),(0,o.Cg)([(0,i.MZ)()],p.prototype,"owner",void 0),(0,o.Cg)([(0,i.MZ)()],p.prototype,"portal",void 0),(0,o.Cg)([(0,i.MZ)()],p.prototype,"snippet",void 0),(0,o.Cg)([(0,i.MZ)()],p.prototype,"sortField",void 0),(0,o.Cg)([(0,i.MZ)()],p.prototype,"sortOrder",void 0),(0,o.Cg)([(0,i.MZ)()],p.prototype,"sourceJSON",void 0),(0,o.Cg)([(0,i.MZ)()],p.prototype,"tags",void 0),(0,o.Cg)([(0,i.MZ)()],p.prototype,"thumbnail",void 0),(0,o.Cg)([(0,i.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,o.Cg)([(0,i.MZ)()],p.prototype,"title",void 0),(0,o.Cg)([(0,i.MZ)({readOnly:!0})],p.prototype,"url",null),p=s=(0,o.Cg)([(0,i.$K)("esri.portal.PortalGroup")],p)},16405(e,t,r){r.d(t,{A:()=>y});var s,o=r(32198),i=r(56372),l=r(91429),a=r(66552),n=r(4718),u=r(5443),p=r(16930),d=r(28735);const h=new a.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let y=s=class extends i.A{constructor(e){super(e),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(e){("asc"===e||"desc"===e)&&this._set("sortOrder",e)}clone(){return new s({categories:this.categories?(0,n.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(e,t){let r=[];this.categories&&(r=this.categories.map(e=>Array.isArray(e)?JSON.stringify(e):e));let s="";if(this.extent){let e=(0,d.y)(this.extent,p.A.WGS84);null!=e&&(s=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`)}let o=this.query,i=e.extraQuery;!this.disableExtraQuery&&i&&(o=o?"("+o+") AND "+i:i);let l={categories:r,bbox:s,q:o,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(l.sortField=this.sortField.split(",").map(e=>h.toJSON(e.trim())).join(","),l.sortOrder=this.sortOrder),{query:{...t,...l}}}};(0,o.Cg)([(0,l.MZ)()],y.prototype,"categories",void 0),(0,o.Cg)([(0,l.MZ)()],y.prototype,"disableExtraQuery",void 0),(0,o.Cg)([(0,l.MZ)({type:u.A})],y.prototype,"extent",void 0),(0,o.Cg)([(0,l.MZ)()],y.prototype,"filter",void 0),(0,o.Cg)([(0,l.MZ)()],y.prototype,"num",void 0),(0,o.Cg)([(0,l.MZ)()],y.prototype,"query",void 0),(0,o.Cg)([(0,l.MZ)()],y.prototype,"sortField",void 0),(0,o.Cg)([(0,l.MZ)()],y.prototype,"sortOrder",null),(0,o.Cg)([(0,l.MZ)()],y.prototype,"start",void 0),y=s=(0,o.Cg)([(0,l.$K)("esri.portal.PortalQueryParams")],y)},41318(e,t,r){r.d(t,{A:()=>p});var s=r(32198),o=r(91429),i=r(49186),l=r(25482);let a=class extends l.o{constructor(e){super(e),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){let e=this.portal?.restUrl;return e?`${e}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new i.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,s.Cg)([(0,o.MZ)({type:Date})],a.prototype,"created",void 0),(0,s.Cg)([(0,o.MZ)()],a.prototype,"id",void 0),(0,s.Cg)([(0,o.MZ)()],a.prototype,"portal",void 0),(0,s.Cg)([(0,o.MZ)()],a.prototype,"title",void 0),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],a.prototype,"url",null),(0,s.Cg)([(0,o.MZ)()],a.prototype,"username",void 0),a=(0,s.Cg)([(0,o.$K)("esri.portal.PortalFolder")],a);var n,u=r(96360);let p=n=class extends l.o{constructor(e){super(e),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.id=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){let e=this.url,t=this.thumbnail;return e&&t?this.portal.normalizeUrl(`${e}/info/${t}?f=json`):null}get userContentUrl(){let e=this.portal?.restUrl;return e?`${e}/content/users/${this.id}`:null}get url(){let e=this.portal?.restUrl;return e?`${e}/community/users/${this.id}`:null}addItem(e){let t=e&&e.item,r=e?.data,s=e?.folder,o={method:"post"};t&&(o.query=t.createPostQuery(),null!=r&&("string"==typeof r?o.query.text=r:"object"==typeof r&&(o.query.text=JSON.stringify(r))));let i=this.userContentUrl;return s&&(i+="/"+("string"==typeof s?s:s.id)),this.portal.request(i+"/addItem",o).then(e=>(t.id=e.id,t.portal=this.portal,t.loaded?t.reload():t.load()))}async deleteItem(e,t=!1){let r=this.userContentUrl;e.ownerFolder&&(r+="/"+e.ownerFolder);let s=t?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${e.id}/delete`,{method:"post",query:s}),e.id=null,e.portal=null}async deleteItems(e,t=!1){e=e.slice();let r=this.userContentUrl+"/deleteItems",s=[],o=e.map(e=>e.id);if(o.length){let l={method:"post",query:{items:o.join(","),permanentDelete:t}},a=await this.portal.request(r,l);for(let t of a.results){let r=e.find(e=>t.itemId===e.id),o=t.success,l=null;o?(r.id=null,r.portal=null):t.error&&(l=new i.A("portal:delete-item-failed",t.error.message,t.error)),s.push({item:r,success:o,error:l})}}return s}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then(e=>{let t;return t=e&&e.folders?e.folders.map(e=>{let t=a.fromJSON(e);return t.portal=this.portal,t}):[],t})}fetchGroups(){return this.portal.request(this.url??"").then(e=>{let t;return t=e&&e.groups?e.groups.map(e=>{let t=u.A.fromJSON(e);return t.portal=this.portal,t}):[],t})}async fetchItems(e){e??={};let t=this.userContentUrl??"";e.folder&&(t+="/"+e.folder.id);let s,{default:o}=await r.e(812).then(()=>r(80812)),i={folders:!1,inRecycleBin:!!e.inRecycleBin||null,foldersContent:!(e.folder||!e.includeSubfolderItems)||null,num:e.num||10,start:e.start||1,sortField:e.sortField||"created",sortOrder:e.sortOrder||"asc"},l=await this.portal.request(t,{query:i});return l?.items?(s=l.items.map(e=>{let t=o.fromJSON(e);return t.portal=this.portal,t}),await Promise.all(s.map(e=>e.load())),{items:s,nextStart:l.nextStart,total:l.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then(e=>e.tags)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}queryFavorites(e){return this.favGroupId?(this._favGroup||=new u.A({id:this.favGroupId,portal:this.portal}),this._favGroup.queryItems(e)):Promise.reject(new i.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(e,t){let r=this.userContentUrl,s=t?{folderID:"string"==typeof t?t:t.id}:null;await this.portal.request(r+`/items/${e.id}/restore`,{method:"post",query:s})}toJSON(){throw new i.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw Error("JSON object is already hydrated");let t=new n({sourceJSON:e});return t.read(e),t}};(0,s.Cg)([(0,o.MZ)()],p.prototype,"access",void 0),(0,s.Cg)([(0,o.MZ)({type:Date})],p.prototype,"created",void 0),(0,s.Cg)([(0,o.MZ)()],p.prototype,"culture",void 0),(0,s.Cg)([(0,o.MZ)()],p.prototype,"description",void 0),(0,s.Cg)([(0,o.MZ)()],p.prototype,"email",void 0),(0,s.Cg)([(0,o.MZ)()],p.prototype,"favGroupId",void 0),(0,s.Cg)([(0,o.MZ)()],p.prototype,"fullName",void 0),(0,s.Cg)([(0,o.MZ)()],p.prototype,"id",void 0),(0,s.Cg)([(0,o.MZ)({type:Date})],p.prototype,"modified",void 0),(0,s.Cg)([(0,o.MZ)()],p.prototype,"orgId",void 0),(0,s.Cg)([(0,o.MZ)()],p.prototype,"portal",void 0),(0,s.Cg)([(0,o.MZ)()],p.prototype,"preferredView",void 0),(0,s.Cg)([(0,o.MZ)()],p.prototype,"privileges",void 0),(0,s.Cg)([(0,o.MZ)()],p.prototype,"region",void 0),(0,s.Cg)([(0,o.MZ)()],p.prototype,"role",void 0),(0,s.Cg)([(0,o.MZ)()],p.prototype,"roleId",void 0),(0,s.Cg)([(0,o.MZ)()],p.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,o.MZ)()],p.prototype,"thumbnail",void 0),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,o.MZ)()],p.prototype,"units",void 0),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"userContentUrl",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"url",null),(0,s.Cg)([(0,o.MZ)()],p.prototype,"username",void 0),(0,s.Cg)([(0,o.MZ)()],p.prototype,"userLicenseTypeId",void 0),(0,s.Cg)([(0,o.MZ)()],p.prototype,"userType",void 0),p=n=(0,s.Cg)([(0,o.$K)("esri.portal.PortalUser")],p)},98205(e,t,r){r.d(t,{KZ:()=>a,eh:()=>l,gf:()=>i,of:()=>o});const s=Symbol("SizeVariableInstance");function o(e){return"object"==typeof e&&!!e&&s in e}function i(e){return null!=e&&!isNaN(e)&&isFinite(e)}function l(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){let r=t||l(e),s=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===s?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}r.d(t,["uY",0,s])},926(e,t,r){r.d(t,{Dd:()=>h,Jn:()=>y,Qc:()=>c,getApiKey:()=>p,getSessionToken:()=>d});var s=r(92602),o=r(84952),i=r(78888);const l=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,a=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),n=new Map;let u=null;function p(e){if(!c(e))return null;let t=t=>t instanceof RegExp?t.test(e):"string"==typeof t&&e.startsWith(t),r=s.A.apiKeys;if(Array.isArray(r.scopes))for(let e of r.scopes)if(Array.isArray(e.urls)){if(e.urls.some(t))return e.token}else if(t(e.urls))return e.token;return r.basemapStyles&&l.test(e)?r.basemapStyles:s.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(e)?s.A.apiKey:null}async function d(e){if(!s.A.sessions?.basemap?.enabled||!l.test(e))return null;let t=p(e);if(!t)return null;u&&await u;let r,{styleFamily:o="arcgis",autoRefresh:a,duration:d=43200}=s.A.sessions.basemap,h=`${t}:${o}`,y=n.get(h);if(y&&(!a||y.endTime>Date.now()))return y.sessionToken;u=(0,i.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:d,styleFamily:o,token:t}});try{r=(await u).data,r.endTime-=5e3,n.set(h,r)}finally{u=null}return r.sessionToken}function h(){return null!=s.A.apiKey||null!=s.A.apiKeys.basemapStyles}function y(e,t){return t?c(e):null!=p(e)}function c(e){let t=(0,o.$z)(e,!0);return!!t&&!a.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},94128(e,t,r){r.d(t,{D:()=>o});const s=Symbol("GraphicInstance");function o(e){return"object"==typeof e&&!!e&&s in e}r.d(t,["Z",0,s])}}]);
@@ -1 +0,0 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[5902],{95902(e,t,n){n.r(t),n.d(t,{TextureCompressionWorkerOutput:()=>T,compress:()=>S,compressRGBADataToKTX2:()=>I,createTextureDataKTX2:()=>o,destroy:()=>u,initializeBasisEncoder:()=>G,initializeDXTEncoder:()=>C});var r=n(2741);let l,a;var _=n(63907);let i,R,s=null,E=null;class T{constructor(e,t){this.internalFormat=e,this.compressedTexture=t}}function u(){s=null,i=null,E=null,R=null,l=null,a=null}async function S(e){let t,n=e.data instanceof ImageBitmap?e.data:null;t=e.data instanceof ImageBitmap?function(e){let t=new OffscreenCanvas(e.width,e.height),n=t.getContext("2d",{willReadFrequently:!0});return n.drawImage(e,0,0),n.getImageData(0,0,t.width,t.height).data}(e.data):function(e,t,n,r,l){let a=new Uint8ClampedArray(e).subarray(0,t*n*r);if(!l)return a;let _=new Uint8ClampedArray(a.length),i=t*r;for(let e=0;e<n;e++){let t=e*i,r=(n-e-1)*i;_.set(a.subarray(t,t+i),r)}return _}(e.data,e.width,e.height,e.components,e.needsFlip);try{let n=e.preMultiplyAlpha&&!e.isOpaque;if(e.hasS3TC){E||await C();let r=E?.encode(t,e.width,e.height,n);if(r){let e=function(e){let t,n,r=new Int32Array(e.buffer,e.byteOffset,31);switch(r[21]){case N:t=8,n=_.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case c:t=16,n=_.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case f:t=16,n=_.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}let l=1,a=r[4],i=r[3];(3&a||3&i)&&(a=a+3&-4,i=i+3&-4);let R=a,s=i;131072&r[2]&&(l=Math.max(1,r[7]));let E,T,u=e.byteOffset+r[1]+4,S=[];for(let n=0;n<l;++n)T=(a+3>>2)*(i+3>>2)*t,E=new Uint8Array(e.buffer,u,T),S.push(E),u+=T,a=Math.max(1,a>>1),i=Math.max(1,i>>1);return{textureData:{type:"compressed",levels:S},internalFormat:n,width:R,height:s}}(r),t=[r.buffer];return{result:new T(e?.internalFormat??null,e?.textureData??null),transferList:t}}return{result:new T(null,null)}}if(e.hasETC){if(s||await G(),n&&!E&&await C(),n){let n=new Uint8ClampedArray(t.length);E?.premultiply(new Uint8Array(t),e.width,e.height,n),t=n}let r=I(t,e.width,e.height,e.hasMipmap,void 0,void 0,!1,!1,e.isOpaque),l=r?o(r):null,a=l?.compressedTexture?.levels.map(e=>e.buffer)||[];return{result:new T(l?.internalFormat??null,l?.compressedTexture??null),transferList:a}}return{result:new T(null,null)}}finally{n?.close()}}async function G(){s||(s=await(i??=(l??=(async()=>{let e=await(await n.e(2372).then(()=>n(62372))).default({locateFile:e=>(0,r.s)(`esri/libs/basisu/${e}`)});return e.initializeBasis(),e})(),l)),i=null)}async function C(){E||(E=await(R??=(a??=(async()=>await(await n.e(8714).then(()=>n(98714))).default({locateFile:e=>(0,r.s)(`esri/libs/dxtEncoder/${e}`)}))(),a)),R=null)}function I(e,t,n,r,l=255,a=0,_=!1,i=!1,R=!1){if(!s)return null;let E=new s.BasisEncoder;E.setPerceptual(!i),E.setCheckForAlpha(!R),E.setForceAlpha(!1),E.setRenormalize(i),E.setMipGen(r),E.setMipSRGB(!i),E.setCreateKTX2File(!0),E.setKTX2AndBasisSRGBTransferFunc(!i),E.setQualityLevel(l),E.setETC1SCompressionLevel(a);let T=new Uint8Array(e.byteLength);try{E.setSliceSourceImage(0,new Uint8Array(e),t,n,_);let r=E.encode(T);if(!r)return null;let l=new Uint8Array(T.buffer,0,r),a=new s.KTX2File(new Uint8Array(l));try{if(!a.isValid())return null}finally{a.close(),a.delete()}return l}finally{E.delete()}}function o(e){if(!s)return new T(null,null);let t=new s.KTX2File(new Uint8Array(e));try{if(!t.startTranscoding())return new T(null,null);let[e,n]=t.getHasAlpha()?[1,_.CQ.COMPRESSED_RGBA8_ETC2_EAC]:[0,_.CQ.COMPRESSED_RGB8_ETC2],r=t.getLevels(),l=[];for(let n=0;n<r;n++){let r=new Uint8Array(t.getImageTranscodedSizeInBytes(n,0,0,e));if(!t.transcodeImage(r,n,0,0,e,0,-1,-1))return new T(null,null);l.push(r)}return{internalFormat:n,compressedTexture:{type:"compressed",levels:l}}}finally{t.close(),t.delete()}}function A(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}const N=A("DXT1"),c=A("DXT3"),f=A("DXT5")},63907(e,t,n){const r={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},l={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},a=Object.values(l),_={FLOAT:r.FLOAT,UNSIGNED_BYTE:r.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:r.BYTE,UNSIGNED_SHORT:r.UNSIGNED_SHORT,SHORT:r.SHORT,UNSIGNED_INT:r.UNSIGNED_INT,INT:r.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};n.d(t,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,l,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,a,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,_,"pe",0,r,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);