@arcgis/core 5.2.1 → 5.2.3

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 (201) hide show
  1. package/Basemap.d.ts +2 -2
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{67e533748435253aaba6.js → 0284f608d25c654fcc11.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{2d9a1f23ec6ce90723ac.js → 0d99bfb75dcb9fa29080.js} +1 -1
  5. package/assets/esri/core/workers/chunks/0fa29352f2ecf0c515e8.js +1 -0
  6. package/assets/esri/core/workers/chunks/10ad7b35b6800d40444e.js +1 -0
  7. package/assets/esri/core/workers/chunks/1132e28aaa5825b10b6e.js +1 -0
  8. package/assets/esri/core/workers/chunks/{10878932826ddb60fac4.js → 1fcc998421c7c16de2ca.js} +1 -1
  9. package/assets/esri/core/workers/chunks/21e1d423ee33f916547e.js +1 -0
  10. package/assets/esri/core/workers/chunks/251f706d226b1d47ba99.js +1 -0
  11. package/assets/esri/core/workers/chunks/{ba38231193919e093917.js → 2529f12fc16e98c014ca.js} +1 -1
  12. package/assets/esri/core/workers/chunks/2b4dd42920d37b1ff0a9.js +2 -0
  13. package/assets/esri/core/workers/chunks/2b804b5d7ce10f0f0cf0.js +1 -0
  14. package/assets/esri/core/workers/chunks/3537fe95b83a13b156cc.js +1 -0
  15. package/assets/esri/core/workers/chunks/36f31416132de434ec00.js +1 -0
  16. package/assets/esri/core/workers/chunks/3e29ab5ec136e669b633.js +1 -0
  17. package/assets/esri/core/workers/chunks/{36c780a9527c75b36725.js → 40d7e54529d13fdd2bf1.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{2cb209bc51a19487692d.js → 43aef67452fa6ff8d8f9.js} +2 -2
  19. package/assets/esri/core/workers/chunks/449a2dee17b54946f245.js +1 -0
  20. package/assets/esri/core/workers/chunks/{5d42f0898bf30ae940ea.js → 46071e59290bf06bb614.js} +1 -1
  21. package/assets/esri/core/workers/chunks/46d91cd99558304da0c7.js +1 -0
  22. package/assets/esri/core/workers/chunks/4cf72dcccf2be353a701.js +1 -0
  23. package/assets/esri/core/workers/chunks/{e3a742dc0c291b47ba56.js → 510c2eb78f5e12f77bbc.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{7d2be06dfbd92c8b9484.js → 596891426621c403bdef.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{98d1efb6f2439c6344cf.js → 5b2d1c8763a1716677c0.js} +1 -1
  26. package/assets/esri/core/workers/chunks/5bf7de2e2faa55e53629.js +1 -0
  27. package/assets/esri/core/workers/chunks/{042614bf65b7d63025cb.js → 5f49233d5b67a9ad71d7.js} +1 -1
  28. package/assets/esri/core/workers/chunks/604433b02a165d187953.js +1 -0
  29. package/assets/esri/core/workers/chunks/61d36730564c5ac5edab.js +1 -0
  30. package/assets/esri/core/workers/chunks/{094eb9677cdebfaa9e1b.js → 648d5cdfc3e92be3db55.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{bc6fdd9faf8ed54be0cb.js → 6694e2b27fd6ddf44e21.js} +1 -1
  32. package/assets/esri/core/workers/chunks/70268d790c2f1cb83d43.js +1 -0
  33. package/assets/esri/core/workers/chunks/7b45ac83e279fe9516a5.js +1 -0
  34. package/assets/esri/core/workers/chunks/8102f0bf5707c3be3310.js +1 -0
  35. package/assets/esri/core/workers/chunks/{d56fdf5ce5ff53dc0e69.js → 84495695313b01832369.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{31640b41e0ecdff892fa.js → 85b63811ae7bcb6f74b6.js} +2 -2
  37. package/assets/esri/core/workers/chunks/{c4bbe4707e90b7cd0379.js → 8ac4a043a4f185db271f.js} +1 -1
  38. package/assets/esri/core/workers/chunks/8d01dd92f5c897193ab5.js +1 -0
  39. package/assets/esri/core/workers/chunks/900c8569596609183f19.js +2 -0
  40. package/assets/esri/core/workers/chunks/{d1d6154b4af1c9cc497b.js → 934e1f2153e6fad6ed23.js} +1 -1
  41. package/assets/esri/core/workers/chunks/95c9c5677bbe7fd0420a.js +1 -0
  42. package/assets/esri/core/workers/chunks/{b70885deebc6106597ad.js → 983b85727e09c54bede0.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{d20dcd4ce4b0111d924f.js → 9bbc8e5d42921a8050bb.js} +1 -1
  44. package/assets/esri/core/workers/chunks/a07070de96e143a329a4.js +1 -0
  45. package/assets/esri/core/workers/chunks/a17fb26d6ac4895e51a3.js +2 -0
  46. package/assets/esri/core/workers/chunks/{0d52e1b6d38f2670658c.js → a6f74bd1a9c87b9836ca.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{a85cdafbaf1848bb924b.js → a846c94d49df8d4cd5be.js} +1 -1
  48. package/assets/esri/core/workers/chunks/aa4f12fcb9f4ed3dba18.js +1 -0
  49. package/assets/esri/core/workers/chunks/ac10c7d2c4829a150037.js +1 -0
  50. package/assets/esri/core/workers/chunks/{509a74e9334f31b931d4.js → b54ba2bd6b1b90dcc0cc.js} +1 -1
  51. package/assets/esri/core/workers/chunks/bde8f3b3ce5b1d3ee774.js +1 -0
  52. package/assets/esri/core/workers/chunks/c25ae83fd790f181bb42.js +1 -0
  53. package/assets/esri/core/workers/chunks/{dc51dcaa4e2f9a90f5bd.js → c2cbe0f5e8958cf18e58.js} +2 -2
  54. package/assets/esri/core/workers/chunks/c4c55d8a98ba3f51f63c.js +1 -0
  55. package/assets/esri/core/workers/chunks/c5bf19da62a3d31009fe.js +2 -0
  56. package/assets/esri/core/workers/chunks/{2226c20c38e20713bcb5.js.LICENSE.txt → c5bf19da62a3d31009fe.js.LICENSE.txt} +1 -1
  57. package/assets/esri/core/workers/chunks/{2a2a4650dd9b953d317c.js → c93343a91161c4e40c28.js} +1 -1
  58. package/assets/esri/core/workers/chunks/cb4c5544382eb8c4a87f.js +1 -0
  59. package/assets/esri/core/workers/chunks/{2d83ba260dd6bbe38206.js → d05665ddc8d31403aed3.js} +1 -1
  60. package/assets/esri/core/workers/chunks/d24dea0bdb17db07e2b3.js +1 -0
  61. package/assets/esri/core/workers/chunks/d3412518a7b518860fbb.js +1 -0
  62. package/assets/esri/core/workers/chunks/d4bc6d65dff5d0cc93ba.js +1 -0
  63. package/assets/esri/core/workers/chunks/{3048e74e6246324ce6fc.js → d5916500514a41a4758f.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{aea44253c80493ef5755.js → e7b168ba31142c00f765.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{a504a5e06cb89a620799.js → ec8b7476eac4718eb0ac.js} +1 -1
  66. package/assets/esri/core/workers/chunks/f497968055af459c5da4.js +1 -0
  67. package/assets/esri/core/workers/chunks/{d53cc574a21031436c45.js → f79494829a5b65b5b4c9.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{bf4d913e523eae2fda28.js → fa7b189e9b2cc8d4a77f.js} +1 -1
  69. package/assets/esri/core/workers/chunks/fcb4707c2e95099b9f30.js +1 -0
  70. package/assets/esri/core/workers/chunks/{735c1dffc3439bdba3cc.js → fd172c96d2b36032a1d9.js} +1 -1
  71. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ar.json +1 -1
  72. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bg.json +1 -1
  73. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bs.json +1 -1
  74. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ca.json +1 -1
  75. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.cs.json +1 -1
  76. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.da.json +1 -1
  77. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.de.json +1 -1
  78. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.el.json +1 -1
  79. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.es.json +1 -1
  80. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.et.json +1 -1
  81. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fi.json +1 -1
  82. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fr.json +1 -1
  83. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.he.json +1 -1
  84. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hr.json +1 -1
  85. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hu.json +1 -1
  86. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.id.json +1 -1
  87. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.it.json +1 -1
  88. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ja.json +1 -1
  89. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ko.json +1 -1
  90. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lt.json +1 -1
  91. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lv.json +1 -1
  92. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.nl.json +1 -1
  93. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.no.json +1 -1
  94. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pl.json +1 -1
  95. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-BR.json +1 -1
  96. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-PT.json +1 -1
  97. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ro.json +1 -1
  98. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ru.json +1 -1
  99. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sk.json +1 -1
  100. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sl.json +1 -1
  101. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sr.json +1 -1
  102. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sv.json +1 -1
  103. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.th.json +1 -1
  104. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.tr.json +1 -1
  105. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.uk.json +1 -1
  106. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.vi.json +1 -1
  107. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-CN.json +1 -1
  108. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-HK.json +1 -1
  109. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-TW.json +1 -1
  110. package/config.d.ts +3 -3
  111. package/config.js +1 -1
  112. package/core/workers.d.ts +1 -0
  113. package/identity/Credential.d.ts +1 -1
  114. package/identity/IdentityManager.d.ts +1 -1
  115. package/identity/OAuthInfo.d.ts +1 -1
  116. package/identity/ServerInfo.d.ts +1 -1
  117. package/kernel.js +1 -1
  118. package/layers/CSVLayer.js +1 -1
  119. package/layers/SceneLayer.js +1 -1
  120. package/layers/VectorTileLayer.d.ts +2 -2
  121. package/layers/graphics/sources/CSVSource.js +1 -1
  122. package/layers/graphics/sources/GeoJSONSource.js +1 -1
  123. package/layers/graphics/sources/MemorySource.js +2 -2
  124. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  125. package/layers/graphics/sources/support/QueryTask.js +1 -1
  126. package/layers/graphics/sources/support/timeQueryUtils.js +2 -0
  127. package/layers/mixins/APIKeyMixin.d.ts +1 -1
  128. package/layers/mixins/ArcGISImageService.js +1 -1
  129. package/layers/ogc/types.d.ts +1 -1
  130. package/layers/raster/functions/rasterProjectionHelper.js +1 -1
  131. package/layers/support/TimeInformation.js +1 -1
  132. package/layers/support/timeInfoUtils.js +2 -0
  133. package/package.json +4 -4
  134. package/rest/query/executeAttributeBinsQuery.js +1 -1
  135. package/rest/query/executeForExtent.js +1 -1
  136. package/rest/query/executeForTopCount.js +1 -1
  137. package/rest/query/executeForTopExtents.js +1 -1
  138. package/rest/query/executeForTopIds.js +1 -1
  139. package/rest/query/executeTopFeaturesQuery.js +1 -1
  140. package/rest/query/operations/query.js +1 -1
  141. package/rest/query/operations/queryAttributeBins.js +1 -1
  142. package/rest/query/operations/queryTopFeatures.js +1 -1
  143. package/rest/support/timeUtils.js +1 -1
  144. package/support/timeUtils.js +1 -1
  145. package/symbols/TextSymbol.d.ts +0 -1
  146. package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
  147. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  148. package/views/3d/analysis/LineOfSight/placementUtils.js +1 -1
  149. package/views/3d/analysis/Viewshed/placementUtils.js +1 -1
  150. package/views/3d/environment/SunLighting.d.ts +10 -8
  151. package/views/3d/environment/VirtualLighting.d.ts +10 -8
  152. package/views/draw/DrawTool.js +1 -1
  153. package/widgets/Directions.d.ts +1 -1
  154. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  155. package/widgets/OrientedImageryViewer/navigation/NavigationManager.js +1 -1
  156. package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
  157. package/widgets/OrientedImageryViewer/navigation/utils.js +1 -1
  158. package/widgets/OrientedImageryViewer.js +2 -2
  159. package/widgets/ScaleRangeSlider/types.d.ts +3 -3
  160. package/assets/esri/core/workers/chunks/20a698709c3c11ff2c16.js +0 -1
  161. package/assets/esri/core/workers/chunks/2226c20c38e20713bcb5.js +0 -2
  162. package/assets/esri/core/workers/chunks/2a570ce6b99dac6ee996.js +0 -1
  163. package/assets/esri/core/workers/chunks/2b6684d057d9ad17ac13.js +0 -1
  164. package/assets/esri/core/workers/chunks/2e66c969bf4209c957b5.js +0 -2
  165. package/assets/esri/core/workers/chunks/377595b23379b0c8fe95.js +0 -1
  166. package/assets/esri/core/workers/chunks/379ef56f6b32494832a6.js +0 -1
  167. package/assets/esri/core/workers/chunks/38d852676677e5697864.js +0 -1
  168. package/assets/esri/core/workers/chunks/3c881b1adc8a5dea9a90.js +0 -1
  169. package/assets/esri/core/workers/chunks/4e6656a5f29e31902fca.js +0 -2
  170. package/assets/esri/core/workers/chunks/50e8943d2c0b96fab2c1.js +0 -1
  171. package/assets/esri/core/workers/chunks/5a9b7eb26f936f03d02e.js +0 -1
  172. package/assets/esri/core/workers/chunks/5f07f52bb8b7721f08d3.js +0 -1
  173. package/assets/esri/core/workers/chunks/60c79934799927114074.js +0 -1
  174. package/assets/esri/core/workers/chunks/63b5418a1c3fe0a97a86.js +0 -1
  175. package/assets/esri/core/workers/chunks/6ddc29a144640acb1192.js +0 -1
  176. package/assets/esri/core/workers/chunks/6f73e41e14817acfaead.js +0 -1
  177. package/assets/esri/core/workers/chunks/7dfbc31f3b56728485a4.js +0 -1
  178. package/assets/esri/core/workers/chunks/822f83d7c09ef0a9bbdf.js +0 -1
  179. package/assets/esri/core/workers/chunks/844eedda8f749972f707.js +0 -2
  180. package/assets/esri/core/workers/chunks/8b8118ab56cc808b5a71.js +0 -1
  181. package/assets/esri/core/workers/chunks/8d86b0cb0e004ad72040.js +0 -1
  182. package/assets/esri/core/workers/chunks/98760040f0c9d47c718d.js +0 -1
  183. package/assets/esri/core/workers/chunks/a2f0894218e665780a21.js +0 -1
  184. package/assets/esri/core/workers/chunks/a65951f1d5702cfd996e.js +0 -1
  185. package/assets/esri/core/workers/chunks/ab6506a3c16f8717fc00.js +0 -1
  186. package/assets/esri/core/workers/chunks/c45edd0a7d57263bb7d6.js +0 -1
  187. package/assets/esri/core/workers/chunks/c52466eb1f3c33ae1f5a.js +0 -1
  188. package/assets/esri/core/workers/chunks/c570b90995c65bbb2e14.js +0 -1
  189. package/assets/esri/core/workers/chunks/c576bef77e34920af188.js +0 -1
  190. package/assets/esri/core/workers/chunks/c80a3b039e510c118399.js +0 -1
  191. package/assets/esri/core/workers/chunks/c88a70f68c8ce8c30e9b.js +0 -1
  192. package/assets/esri/core/workers/chunks/cf1ec61eb2ad147bb931.js +0 -1
  193. package/assets/esri/core/workers/chunks/daae21cf77864f3293ef.js +0 -1
  194. package/assets/esri/core/workers/chunks/e9cdb0b0f074583edebd.js +0 -1
  195. package/assets/esri/core/workers/chunks/f5cc78291b53931b91e8.js +0 -1
  196. /package/assets/esri/core/workers/chunks/{844eedda8f749972f707.js.LICENSE.txt → 2b4dd42920d37b1ff0a9.js.LICENSE.txt} +0 -0
  197. /package/assets/esri/core/workers/chunks/{2cb209bc51a19487692d.js.LICENSE.txt → 43aef67452fa6ff8d8f9.js.LICENSE.txt} +0 -0
  198. /package/assets/esri/core/workers/chunks/{31640b41e0ecdff892fa.js.LICENSE.txt → 85b63811ae7bcb6f74b6.js.LICENSE.txt} +0 -0
  199. /package/assets/esri/core/workers/chunks/{4e6656a5f29e31902fca.js.LICENSE.txt → 900c8569596609183f19.js.LICENSE.txt} +0 -0
  200. /package/assets/esri/core/workers/chunks/{2e66c969bf4209c957b5.js.LICENSE.txt → a17fb26d6ac4895e51a3.js.LICENSE.txt} +0 -0
  201. /package/assets/esri/core/workers/chunks/{dc51dcaa4e2f9a90f5bd.js.LICENSE.txt → c2cbe0f5e8958cf18e58.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3242],{56512(e,t,i){function r(e){let t,i,r=[],s=!1;return function(...n){return s&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(e[i]!==t[i])return!1;return!0}(n,r)||(i=e.apply(this,n),t=this,r=n,s=!0),i}}i.d(t,{B:()=>r})},74379(e,t,i){i.d(t,{t:()=>s});const r=Symbol("isImageryGraphicOrigin");function s(e){return!!e&&r in e}i.d(t,["V",0,r])},87772(e,t,i){i.r(t),i.d(t,{default:()=>bi});var r,s=i(32198),n=i(40124),a=i(69540),o=i(53966),l=i(25728),u=i(17676),p=i(91429),m=i(41910),c=i(55156),d=i(60950),y=i(89808),h=i(99959),g=i(74379);class f extends h.A{get[(r=g.V,d.ym)](){return this.layer}get[c.e](){return this.layer}get[y.Q](){return this.layer}get[m.e7](){return this.layer}constructor(e){super(),this[r]=!0,this.type="imagery",this.layer=e}get id(){return this.layer.id}}var w=i(4146),v=i(52106),R=i(56507),C=i(49186),b=i(4718),S=i(563),x=i(36708),I=i(84952),M=i(78888),F=i(62788),A=i(5443),D=i(86738),T=i(39829),P=i(16930),j=i(21325),N=i(4366),O=i(96381),Z=i(34930),_=i(47520),V=i(34251),q=i(10873),E=i(45617),J=i(25482),G=i(94778);const $={StretchFunction:{arguments:{ComputeGamma:{isDataset:!1,isPublic:!1,name:"ComputeGamma",type:"RasterFunctionVariable",value:!1},DRA:{isDataset:!1,isPublic:!1,name:"DRA",type:"RasterFunctionVariable",value:!1},EstimateStatsHistogram:{isDataset:!1,isPublic:!1,name:"EstimateStatsHistogram",type:"RasterFunctionVariable",value:!1},Gamma:{displayName:"Gamma",isDataset:!1,isPublic:!1,name:"Gamma",type:"RasterFunctionVariable"},Histograms:{isDataset:!1,isPublic:!1,name:"Histograms",type:"RasterFunctionVariable"},Max:{isDataset:!1,isPublic:!1,name:"Max",type:"RasterFunctionVariable",value:255},MaxPercent:{isDataset:!1,isPublic:!1,name:"MaxPercent",type:"RasterFunctionVariable",value:.5},Min:{isDataset:!1,isPublic:!1,name:"Min",type:"RasterFunctionVariable",value:0},MinPercent:{isDataset:!1,isPublic:!1,name:"MinPercent",type:"RasterFunctionVariable",value:.25},NumberOfStandardDeviations:{isDataset:!1,isPublic:!1,name:"NumberOfStandardDeviation",type:"RasterFunctionVariable",value:2},Raster:{isDataset:!0,isPublic:!1,name:"Raster",type:"RasterFunctionVariable"},SigmoidStrengthLevel:{isDataset:!1,isPublic:!1,name:"SigmoidStrengthLevel",type:"RasterFunctionVariable",value:2},Statistics:{isDataset:!1,isPublic:!1,name:"Statistics",type:"RasterFunctionVariable"},StretchType:{isDataset:!1,isPublic:!1,name:"StretchType",type:"RasterFunctionVariable",value:0},type:"StretchFunctionArguments",UseGamma:{isDataset:!1,isPublic:!1,name:"UseGamma",type:"RasterFunctionVariable",value:!1}},description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",function:{description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",name:"Stretch",pixelType:"UNKNOWN",type:"StretchFunction"},functionType:0,name:"Stretch",thumbnail:""},RemapFunction:{name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table.",function:{type:"RemapFunction",pixelType:"UNKNOWN",name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},UseTable:{name:"UseTable",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},InputRanges:{name:"InputRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Input Ranges"},OutputValues:{name:"OutputValues",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Output Values"},NoDataRanges:{name:"NoDataRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"NoData Ranges"},Table:{name:"Table",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputField:{name:"InputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},OutputField:{name:"OutputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputMaxField:{name:"InputMaxField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},RemapTableType:{name:"RemapTableType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},AllowUnmatched:{name:"AllowUnmatched",isPublic:!1,isDataset:!1,value:!0,type:"RasterFunctionVariable"},type:"RemapFunctionArguments"},functionType:0,thumbnail:""},ColormapFunction:{name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp.",function:{type:"ColormapFunction",pixelType:"UNKNOWN",name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},ColormapName:{name:"ColormapName",isPublic:!1,isDataset:!1,value:"Gray",type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},type:"ColormapFunctionArguments"},functionType:0,thumbnail:""},ShadedReliefFunction:{name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image.",function:{type:"ShadedReliefFunction",pixelType:"UNKNOWN",name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"ShadedReliefFunctionArguments"},functionType:0,thumbnail:""},HillshadeFunction:{name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image",function:{type:"HillshadeFunction",pixelType:"UNKNOWN",name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image"},arguments:{DEM:{name:"DEM",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"HillshadeFunctionArguments"},functionType:0,thumbnail:""},ResampleFunction:{name:"Resample",description:"Changes the cell size of a raster.",function:{type:"ResampleFunction",pixelType:"UNKNOWN",name:"Resample",description:"Changes the cell size of a raster."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ResamplingType:{name:"ResamplingType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},InputCellSize:{name:"InputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},OutputCellSize:{name:"OutputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},type:"ResampleFunctionArguments"},functionType:0,thumbnail:""}};var z=i(22796),L=i(67369),U=i(70274),B=i(48940);const K=new Set(["u1","u2","u4","u8","s8","u16","s16"]),k={simple_scalar:"Simple Scalar",wind_barb:"Wind Barb",single_arrow:"Single Arrow",beaufort_kn:"Beaufort Wind (Knots)",beaufort_m:"Beaufort Wind (MetersPerSecond)",ocean_current_m:"Ocean Current (MetersPerSecond)",ocean_current_kn:"Ocean Current (Knots)"},Q=new Set(["raster-stretch","unique-value","class-breaks","raster-shaded-relief","vector-field","raster-colormap"]);function H(e){return Q.has(e.type)}function W(e,t){if(!e||!t)return(0,b.o8)(e||t);let i=(0,b.o8)(e);if(i.functionDefinition&&t.rasterFunctionDefinition){let e=t.rasterFunctionDefinition;(e.thumbnail||e.thumbnailEx)&&(e.thumbnail=e.thumbnailEx=void 0),X(i.functionDefinition.arguments,t),i.rasterFunctionDefinition=i.functionDefinition.toJSON()}else"none"!==t.functionName?.toLowerCase()&&(ee(i.functionArguments).Raster=t);return i}function X(e,t){for(let i in e)"raster"===i.toLowerCase()&&("RasterFunctionVariable"===e[i].type?(e[i]=t.rasterFunctionDefinition,e[i].type="RasterFunctionTemplate"):"RasterFunctionTemplate"===e[i].type&&X(e[i].arguments,t))}function Y(e){let t=(0,b.o8)($[e.functionName+"Function"]),i=e.functionArguments;for(let e in i)"raster"===e.toLowerCase()?(t.arguments[e]=Y(i[e]),t.arguments[e].type="RasterFunctionTemplate"):"colormap"===e.toLowerCase()?(t.arguments[e].value=ne(i[e]),t.arguments.ColorSchemeType.value=0):t.arguments[e].value=i[e];return e.outputPixelType&&t.function&&(t.function.pixelType=e.outputPixelType.toUpperCase()),t}function ee(e){let t=e?.Raster??e?.raster;return t&&"esri.layers.support.RasterFunction"===t.declaredClass?ee(t.functionArguments):e}const te={none:0,standardDeviation:3,histogramEqualization:4,minMax:5,percentClip:6,sigmoid:9};function ie(e,t){let i=K.has(t)?(0,G.hP)(t):null;return i&&e.push([Math.floor(i[0]-1),0,0,0],[Math.ceil(i[1]+1),0,0,0]),e}function re(e){if(null==e)return;let{fields:t}=e;return t?.find(e=>e?.name&&"value"===e.name.toLowerCase())?.name}function se(e){return"polygon-3d"===e.symbol?.type?e.symbol.symbolLayers?.find(e=>"fill"===e.type)?.material?.color:e.symbol?.color}function ne(e){let t=[],i=[];return e.forEach(e=>{t.push(e[0]),i.push((0,L.vL)([...e.slice(1),255]))}),{type:"RasterColormap",values:t,colors:i}}var ae=i(85675),oe=i(13868),le=i(43937);let ue=class extends J.o{constructor(){super(...arguments),this.layer=null,this.requestRawData=!1,this.compression=void 0,this.lercVersion=2}get adjustAspectRatio(){return this.layer.adjustAspectRatio}writeAdjustAspectRatio(e,t,i){this.layer.version<10.3||(t[i]=e)}get bandIds(){return this.requestRawData?this.rawDataRequestBandIds:this.layer.bandIds}get compressionQuality(){return this.layer.compressionQuality}writeCompressionQuality(e,t,i){this.format&&this.format.toLowerCase().includes("jpg")&&null!=e&&(t[i]=e)}get compressionTolerance(){return this.layer.compressionTolerance}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}get format(){let e=this.layer.renderer?.type;return this.requestRawData||"vector-field"===e||"flow"===e?"lerc":this.layer.format}get interpolation(){return this.layer.interpolation}get noData(){return this.layer.noData}get noDataInterpretation(){return this.layer.noDataInterpretation}get pixelType(){let{layer:e}=this;return e.pixelType===e.serviceRasterInfo.pixelType?void 0:e.pixelType}writeLercVersion(e,t,i){"lerc"===this.format&&this.layer.version>=10.5&&(t[i]=e)}get version(){let e=this.layer;return e.commitProperty("bandIds"),e.commitProperty("format"),e.commitProperty("compressionQuality"),e.commitProperty("compressionTolerance"),e.commitProperty("interpolation"),e.commitProperty("noData"),e.commitProperty("noDataInterpretation"),e.commitProperty("mosaicRule"),e.commitProperty("rasterFunction"),e.commitProperty("adjustAspectRatio"),e.commitProperty("pixelFilter"),e.commitProperty("pixelType"),e.commitProperty("definitionExpression"),e.commitProperty("multidimensionalSubset"),(this._get("version")||0)+1}set version(e){this._set("version",e)}get mosaicRule(){let e=this.layer,t=e.mosaicRule,i=e.definitionExpression;if(t?i&&i!==t.where&&(t=t.clone(),t.where=i):i&&(t=new ae.A({where:i})),!t?.itemRasterFunction){let i=e.rasterFunction,r=pe(i,e.rasterFunctionInfos)?i:null;r&&(t=t?t.clone():new ae.A,t.itemRasterFunction=r)}return t}get rasterFunction(){let e=this.layer,{rasterFunction:t,rasterInfo:i}=e;t=pe(t,e.rasterFunctionInfos)?null:t?.clone(),t&&"lerc"===this.format&&1===i?.bandCount&&i.colormap&&(t=function(e,t){let[i,r]=(0,G.hP)(t);return W(new z.A({functionName:"Stretch",functionArguments:{StretchType:5,UseGamma:!1,Min:i,Max:r,Statistics:[[i,r,1,1]]}}),e)}(t,i.pixelType));let r=e.multidimensionalSubset?.areaOfInterest;return r&&(t=function(e,t){return W(new z.A({functionName:"Clip",functionArguments:{ClippingGeometry:t.toJSON(),ClippingType:1}}),e)}(t,r)),!this.requestRawData&&e.isRenderedFormat&&!e.pixelFilter&&"vector-field"!==e.renderer?.type&&(t=this.combineRendererWithRenderingRule(t)),t}combineRendererWithRenderingRule(e){let t=this.layer,{rasterInfo:i,renderer:r}=t;return r&&H(r)?W(function(e,t){switch(t||={},e.type){case"raster-stretch":return function(e,t){let i=t.convertToRFT,r=new z.A;r.functionName="Stretch";let s=te[U.u.toJSON(e.stretchType)],n={StretchType:s,Statistics:e.customStatistics?.map(e=>[e.min,e.max,e.avg??0,e.stddev??1]),DRA:e.dynamicRangeAdjustment,UseGamma:e.useGamma,Gamma:e.gamma,ComputeGamma:e.computeGamma};if(null!=e.outputMin&&(n.Min=e.outputMin),null!=e.outputMax&&(n.Max=e.outputMax),s===te.standardDeviation?(n.NumberOfStandardDeviations=e.numberOfStandardDeviations,r.outputPixelType="u8"):s===te.percentClip?(n.MinPercent=e.minPercent,n.MaxPercent=e.maxPercent,r.outputPixelType="u8"):s===te.minMax?r.outputPixelType="u8":s===te.sigmoid&&(n.SigmoidStrengthLevel=e.sigmoidStrengthLevel),r.functionArguments=n,r.variableName="Raster",e.colorRamp){let s=e.colorRamp,n=new z.A;if(i)n.functionArguments={ColorRamp:(0,L.hf)(s)};else{let i=(0,L.hs)(s,!0);if(i)n.functionArguments={colorRampName:i};else if(!t.convertColorRampToColormap||"algorithmic"!==s.type&&"multipart"!==s.type){let t=e.colorRamp.toJSON();"algorithmic"===t.type?t.algorithm=t.algorithm||"esriCIELabAlgorithm":"multipart"===t.type&&t.colorRamps?.length&&t.colorRamps.forEach(e=>e.algorithm=e.algorithm||"esriCIELabAlgorithm"),n.functionArguments={colorRamp:t}}else n.functionArguments={Colormap:(0,L.R8)(s)}}return n.variableName="Raster",n.functionName="Colormap",n.functionArguments.Raster=r,i?new z.A({rasterFunctionDefinition:Y(n)}):n}return i?new z.A({rasterFunctionDefinition:Y(r)}):r}(e,t);case"class-breaks":return function(e,t){let i=[],r=[],s=[],n=[],a=1e-4,{pixelType:o,rasterAttributeTable:l}=t,u=null==l?null:l.features,p=re(l);if(p&&u&&Array.isArray(u)&&e.classBreakInfos){e.classBreakInfos.forEach((t,i)=>{let r,s=t.symbol?.color;s?.a&&null!=t.minValue&&null!=t.maxValue&&u.forEach(a=>{null!=t.minValue&&null!=t.maxValue&&(r=a.attributes[e.field],(r>=t.minValue&&r<t.maxValue||i===e.classBreakInfos.length-1&&r>=t.minValue)&&n.push([a.attributes[p],s.r,s.g,s.b]))})});let i=o?ie(n,o):n,r=new z.A;return r.functionName="Colormap",r.functionArguments={},r.functionArguments.Colormap=i,r.variableName="Raster",t.convertToRFT?new z.A({rasterFunctionDefinition:Y(r)}):r}e.classBreakInfos.forEach((e,t)=>{if(null==e.minValue||null==e.maxValue)return;let o=e.symbol&&e.symbol.color;o?.a?(0===t?i.push(e.minValue,e.maxValue+a):i.push(e.minValue+a,e.maxValue+a),r.push(t),n.push([t,o.r,o.g,o.b])):s.push(e.minValue,e.maxValue)});let m=o?ie(n,o):n,c=new z.A;c.functionName="Remap",c.functionArguments={InputRanges:i,OutputValues:r,NoDataRanges:s},c.variableName="Raster";let d=new z.A;return d.functionName="Colormap",d.functionArguments={Colormap:m,Raster:c},t.convertToRFT?new z.A({rasterFunctionDefinition:Y(d)}):d}(e,t);case"unique-value":return function(e,t){let i=[],{pixelType:r,rasterAttributeTable:s}=t,n=null==s?null:s.features,a=re(s),o=e.defaultSymbol?.color?.toRgb(),l=e.uniqueValueInfos;if(l)if(n){if(a){let t=new Map;l.forEach(e=>{let i=e.value,r=se(e);null!=i&&r?.a&&t.set(String(i),r.toRgb())});let r=e.field;r&&n.forEach(({attributes:e})=>{let s=String(e[r]),n=e[a],l=t.get(s);l?i.push([n,...l]):o&&i.push([n,...o])})}}else for(let e=0;e<l.length;e++){let t=l[e],r=se(t),s=+t.value;if(r?.a){if(isNaN(s))return null;i.push([s,r.r,r.g,r.b])}}let u=r?ie(i,r):i,p=new z.A;return p.functionName="Colormap",p.functionArguments={},p.functionArguments.Colormap=u,p.variableName="Raster",t.convertToRFT?new z.A({rasterFunctionDefinition:Y(p)}):p}(e,t);case"raster-colormap":return function(e,t){let i=e.extractColormap();if(!i||0===i.length)return null;let{pixelType:r}=t,s=r?ie(i,r):i,n=new z.A;return n.functionName="Colormap",n.functionArguments={},n.functionArguments.Colormap=s,t.convertToRFT?new z.A({rasterFunctionDefinition:Y(n)}):n}(e,t);case"vector-field":return function(e,t){let i=new z.A;i.functionName="VectorFieldRenderer";let r,s,{dataType:n,bandNames:a}=t,o="vector-uv"===n;if(2===a?.length){let e=a.map(e=>e.toLowerCase());r=e.indexOf("magnitude"),s=e.indexOf("direction")}(-1===r||null===r)&&(r=0,s=1);let l="arithmetic"===e.rotationType?1:2,u="flow-from"===e.flowRepresentation?0:1,p=e.visualVariables?e.visualVariables.find(e=>"Magnitude"===e.field):new B.A;i.functionArguments={magnitudeBandID:r,directionBandID:s,isUVComponents:o,referenceSystem:l,massFlowAngleRepresentation:u,symbolTileSize:50,symbolTileSizeUnits:100,calculationMethod:"Vector Average",symbologyName:k[e.style.toLowerCase().replace("-","_")],minimumMagnitude:p.minDataValue,maximumMagnitude:p.maxDataValue,minimumSymbolSize:p.minSize,maximumSymbolSize:p.maxSize};let m=Y(i);return t.convertToRFT?z.A.fromJSON({rasterFunctionDefinition:m}):i}(e,t);case"raster-shaded-relief":return function(e,t){let i=t.convertToRFT;if("elevation"!==t.dataType&&("generic"!==t.dataType||1!==t.bandCount||"s16"!==t.pixelType&&"s32"!==t.pixelType&&"f32"!==t.pixelType&&"f64"!==t.pixelType))return new z.A;let r=new z.A;r.functionName="Hillshade";let s="traditional"===e.hillshadeType?0:1,n="none"===e.scalingType?1:3,a={HillshadeType:s,SlopeType:n,ZFactor:e.zFactor};return 0===s&&(a.Azimuth=e.azimuth,a.Altitude=e.altitude),3===n&&(a.PSPower=e.pixelSizePower,a.PSZFactor=e.pixelSizeFactor),r.functionArguments=a,r.variableName="Raster",e.colorRamp&&(r.functionName="ShadedRelief",i?a.ColorRamp=(0,L.hf)(e.colorRamp):a.Colormap=(0,L.R8)(e.colorRamp)),i?new z.A({rasterFunctionDefinition:Y(r)}):r}(e,t);case"flow":throw Error("Unsupported rendering rule.")}}(r,{rasterAttributeTable:i.attributeTable,pixelType:i.pixelType,dataType:i.dataType,bandNames:i.bandInfos.map(({name:e})=>e),convertColorRampToColormap:t.version<10.6,convertToRFT:!!e?.rasterFunctionDefinition,bandCount:i.bandCount}),e):e}};function pe(e,t){if(!e)return!1;let i=e.functionDefinition;if(i)return"item"===i.functionType||"item-group"===i.functionType;let r=e?.functionName?.toLowerCase(),s=r?t?.find(({name:e})=>e.toLowerCase()===r):null;return 1===s?.functionType||2===s?.functionType}(0,s.Cg)([(0,p.MZ)()],ue.prototype,"layer",void 0),(0,s.Cg)([(0,p.MZ)()],ue.prototype,"requestRawData",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ue.prototype,"adjustAspectRatio",null),(0,s.Cg)([(0,le.K)("adjustAspectRatio")],ue.prototype,"writeAdjustAspectRatio",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ue.prototype,"bandIds",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ue.prototype,"rawDataRequestBandIds",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ue.prototype,"compression",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ue.prototype,"compressionQuality",null),(0,s.Cg)([(0,le.K)("compressionQuality")],ue.prototype,"writeCompressionQuality",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ue.prototype,"compressionTolerance",null),(0,s.Cg)([(0,le.K)("compressionTolerance")],ue.prototype,"writeCompressionTolerance",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ue.prototype,"format",null),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:{reader:oe.SZ.read},write:{writer:oe.SZ.write}}})],ue.prototype,"interpolation",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ue.prototype,"noData",null),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:{reader:oe.hm.read},write:{writer:oe.hm.write}}})],ue.prototype,"noDataInterpretation",null),(0,s.Cg)([(0,p.MZ)({type:oe.e8.apiValues,json:{read:oe.e8.read,write:oe.e8.write}})],ue.prototype,"pixelType",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ue.prototype,"lercVersion",void 0),(0,s.Cg)([(0,le.K)("lercVersion")],ue.prototype,"writeLercVersion",null),(0,s.Cg)([(0,p.MZ)({type:Number})],ue.prototype,"version",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ue.prototype,"mosaicRule",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0,name:"renderingRule"}})],ue.prototype,"rasterFunction",null),ue=(0,s.Cg)([(0,p.$K)("esri.layers.support.ExportImageServiceParameters")],ue);var me=i(20437),ce=i(95466),de=i(33446),ye=i(43577),he=i(14140),ge=i(74797),fe=i(87186),we=i(12711),ve=i(85676),Re=i(94359),Ce=i(65864),be=i(52039),Se=i(2272);let xe=class extends((0,a.OU)(J.o)){constructor(e){super(e),this.fromGeometry=null,this.toGeometry=null,this.objectIds=null,this.where=null,this.maxCount=null}};(0,s.Cg)([(0,p.MZ)({type:D.A,json:{read:!0}})],xe.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,p.MZ)({type:D.A,json:{read:!0,write:!0}})],xe.prototype,"toGeometry",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],xe.prototype,"objectIds",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],xe.prototype,"where",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],xe.prototype,"maxCount",void 0),xe=(0,s.Cg)([(0,p.$K)("esri.rest.support.FindImagesParameters")],xe);const Ie=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.make=null,this.model=null,this.focalLength=null,this.pixelSize=null,this.rows=null,this.cols=null}};return(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"make",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"model",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"focalLength",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"pixelSize",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"rows",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"cols",void 0),i=(0,s.Cg)([(0,p.$K)("esri.rest.support.CameraInfoMixin")],i),i};let Me=class extends(Ie(J.o)){constructor(e){super(e),this.id=null,this.referenceUri=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.perspectiveCenter=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Me.prototype,"id",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"uri",write:!0}})],Me.prototype,"referenceUri",void 0),(0,s.Cg)([(0,p.MZ)({type:Date,json:{write:!0}})],Me.prototype,"acquisitionDate",void 0),(0,s.Cg)([(0,le.K)("acquisitionDate")],Me.prototype,"writeAcquisitionDate",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Me.prototype,"cameraID",void 0),(0,s.Cg)([(0,p.MZ)({type:D.A,json:{write:!0}})],Me.prototype,"center",void 0),(0,s.Cg)([(0,p.MZ)({type:D.A,json:{write:!0}})],Me.prototype,"perspectiveCenter",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Me.prototype,"orientation",void 0),Me=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageInspectionInfo")],Me);const Fe=Me;let Ae=class extends J.o{constructor(e){super(e),this.images=null}};var De;(0,s.Cg)([(0,p.MZ)({type:[Fe],json:{write:!0}})],Ae.prototype,"images",void 0),Ae=(0,s.Cg)([(0,p.$K)("esri.rest.support.FindImagesResult")],Ae);let Te=De=class extends J.o{constructor(e){super(e),this.angleNames=null,this.point=null,this.spatialReference=null,this.rasterId=null}clone(){return new De((0,b.o8)({angleNames:this.angleNames,point:this.point,spatialReference:this.spatialReference,rasterId:this.rasterId}))}};(0,s.Cg)([(0,p.MZ)({type:[String],json:{name:"angleName",write:!0}})],Te.prototype,"angleNames",void 0),(0,s.Cg)([(0,p.MZ)({type:D.A,json:{write:!0}})],Te.prototype,"point",void 0),(0,s.Cg)([(0,p.MZ)({type:P.A,json:{write:!0}})],Te.prototype,"spatialReference",void 0),(0,s.Cg)([(0,p.MZ)({type:M.jz,json:{write:!0}})],Te.prototype,"rasterId",void 0),Te=De=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageAngleParameters")],Te);let Pe=class extends J.o{constructor(e){super(e),this.north=null,this.up=null,this.spatialReference=null}};(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Pe.prototype,"north",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Pe.prototype,"up",void 0),(0,s.Cg)([(0,p.MZ)({type:P.A,json:{write:!0}})],Pe.prototype,"spatialReference",void 0),Pe=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageAngleResult")],Pe);var je=i(86211),Ne=i(60408),Oe=i(50498),Ze=i(66552);const _e=new Ze.J({esriMensurationPoint:"point",esriMensurationCentroid:"centroid",esriMensurationDistanceAndAngle:"distance-and-angle",esriMensurationAreaAndPerimeter:"area-and-perimeter",esriMensurationHeightFromBaseAndTop:"base-and-top",esriMensurationHeightFromBaseAndTopShadow:"base-and-top-shadow",esriMensurationHeightFromTopAndTopShadow:"top-and-top-shadow",esriMensurationPoint3D:"point-3D",esriMensurationCentroid3D:"centroid-3D",esriMensurationDistanceAndAngle3D:"distance-and-angle-3D",esriMensurationAreaAndPerimeter3D:"area-and-perimeter-3D"});let Ve=class extends J.o{constructor(e){super(e),this.type=null,this.measureOperation=null,this.mosaicRule=null,this.pixelSize=null,this.raster=void 0}};var qe;(0,s.Cg)([(0,p.MZ)()],Ve.prototype,"type",void 0),(0,s.Cg)([(0,p.MZ)({type:_e.apiValues,json:{read:_e.read,write:_e.write}})],Ve.prototype,"measureOperation",void 0),(0,s.Cg)([(0,p.MZ)({type:ae.A,json:{write:!0}})],Ve.prototype,"mosaicRule",void 0),(0,s.Cg)([(0,p.MZ)({type:D.A,json:{write:!0}})],Ve.prototype,"pixelSize",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ve.prototype,"raster",void 0),Ve=(0,s.Cg)([(0,p.$K)("esri.rest.support.BaseImageMeasureParameters")],Ve);let Ee=qe=class extends Ve{constructor(e){super(e),this.type="area-perimeter",this.geometry=null,this.is3D=!1,this.linearUnit="meters",this.areaUnit="square-meters"}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,Ne.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.is3D?"area-and-perimeter-3D":"area-and-perimeter"}clone(){return new qe((0,b.o8)({geometry:this.geometry,is3D:this.is3D,linearUnit:this.linearUnit,areaUnit:this.areaUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,p.MZ)({types:Oe.yR,json:{name:"fromGeometry",read:!0,write:!0}})],Ee.prototype,"geometry",void 0),(0,s.Cg)([(0,le.K)("geometry")],Ee.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({type:_e.apiValues,json:{write:_e.write}})],Ee.prototype,"measureOperation",null),(0,s.Cg)([(0,p.MZ)({json:{read:!0}})],Ee.prototype,"is3D",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:je.Sk.read,write:je.Sk.write}})],Ee.prototype,"linearUnit",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:je.dk.read,write:je.dk.write}})],Ee.prototype,"areaUnit",void 0),Ee=qe=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageAreaParameters")],Ee);let Je=class extends J.o{constructor(e){super(e),this.name=null,this.sensorName=null}};(0,s.Cg)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],Je.prototype,"name",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],Je.prototype,"sensorName",void 0),Je=(0,s.Cg)([(0,p.$K)("esri.rest.support.BaseImageMeasureResult")],Je);var Ge=i(64108);let $e=class extends J.o{constructor(e){super(e),this.value=null,this.displayValue=null,this.uncertainty=null}};(0,s.Cg)([(0,p.MZ)({type:String})],$e.prototype,"unit",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0}})],$e.prototype,"value",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],$e.prototype,"displayValue",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0}})],$e.prototype,"uncertainty",void 0),$e=(0,s.Cg)([(0,p.$K)("esri.rest.support.BaseImageMeasureResultValue")],$e);const ze=$e;let Le=class extends ze{constructor(e){super(e),this.unit=null}};(0,s.Cg)([(0,p.MZ)({json:{read:je.dk.read,write:je.dk.write}})],Le.prototype,"unit",void 0),Le=(0,s.Cg)([(0,Ge.$)("esri.rest.support.ImageMeasureResultAreaValue")],Le);const Ue=Le;let Be=class extends ze{constructor(e){super(e),this.unit=null}};(0,s.Cg)([(0,p.MZ)({json:{read:je.Sk.read,write:je.Sk.write}})],Be.prototype,"unit",void 0),Be=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageMeasureResultLengthValue")],Be);const Ke=Be;let ke=class extends Je{constructor(e){super(e),this.area=null,this.perimeter=null}};(0,s.Cg)([(0,p.MZ)({type:Ue,json:{read:!0,write:!0}})],ke.prototype,"area",void 0),(0,s.Cg)([(0,p.MZ)({type:Ke,json:{read:!0,write:!0}})],ke.prototype,"perimeter",void 0),ke=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageAreaResult")],ke);let Qe=class extends((0,a.OU)(J.o)){constructor(e){super(e),this.outSpatialReference=null}};(0,s.Cg)([(0,p.MZ)({type:P.A,json:{name:"outSR",write:!0}})],Qe.prototype,"outSpatialReference",void 0),Qe=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageBoundaryParameters")],Qe);var He=i(36005);let We=class extends J.o{constructor(e){super(e),this.area=null,this.geometry=null}readGeometry(e,t){return null==e?null:e.rings?T.A.fromJSON(e):A.A.fromJSON(e)}};var Xe;(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],We.prototype,"area",void 0),(0,s.Cg)([(0,p.MZ)({types:Oe.yR,json:{name:"shape",write:!0}})],We.prototype,"geometry",void 0),(0,s.Cg)([(0,He.w)("geometry")],We.prototype,"readGeometry",null),We=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageBoundaryResult")],We);let Ye=Xe=class extends Ve{constructor(e){super(e),this.type="distance-angle",this.fromGeometry=null,this.toGeometry=null,this.is3D=!1,this.linearUnit="meters",this.angularUnit="degrees"}writeFromGeometry(e,t,i){null!=e&&(t.geometryType=(0,Ne.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.is3D?"distance-and-angle-3D":"distance-and-angle"}clone(){return new Xe((0,b.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,is3D:this.is3D,linearUnit:this.linearUnit,angularUnit:this.angularUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,p.MZ)({type:D.A,json:{read:!0,write:!0}})],Ye.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,le.K)("fromGeometry")],Ye.prototype,"writeFromGeometry",null),(0,s.Cg)([(0,p.MZ)({type:D.A,json:{read:!0,write:!0}})],Ye.prototype,"toGeometry",void 0),(0,s.Cg)([(0,p.MZ)({type:_e.apiValues,json:{write:_e.write}})],Ye.prototype,"measureOperation",null),(0,s.Cg)([(0,p.MZ)({json:{read:!0}})],Ye.prototype,"is3D",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:je.Sk.read,write:je.Sk.write}})],Ye.prototype,"linearUnit",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:je.b$.read,write:je.b$.write}})],Ye.prototype,"angularUnit",void 0),Ye=Xe=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageDistanceParameters")],Ye);let et=class extends ze{constructor(e){super(e),this.unit=null}};(0,s.Cg)([(0,p.MZ)({json:{read:je.b$.read,write:je.b$.write}})],et.prototype,"unit",void 0),et=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageMeasureResultAngleValue")],et);const tt=et;let it=class extends Je{constructor(e){super(e),this.distance=null,this.azimuthAngle=null,this.elevationAngle=null}};(0,s.Cg)([(0,p.MZ)({type:Ke,json:{read:!0,write:!0}})],it.prototype,"distance",void 0),(0,s.Cg)([(0,p.MZ)({type:tt,json:{read:!0,write:!0}})],it.prototype,"azimuthAngle",void 0),(0,s.Cg)([(0,p.MZ)({type:tt,json:{read:!0,write:!0}})],it.prototype,"elevationAngle",void 0),it=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageDistanceResult")],it);var rt=i(58174),st=i(79677),nt=i(93223);let at=class extends((0,a.OU)(J.o)){constructor(e){super(e),this.geometry=null,this.objectIds=null,this.spatialRelationship="intersects",this.timeExtent=null,this.where=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,Ne.$B)(e),t[i]=JSON.stringify(e.toJSON()))}};(0,s.Cg)([(0,p.MZ)({types:Oe.yR,json:{read:Ce.rS,write:!0}})],at.prototype,"geometry",void 0),(0,s.Cg)([(0,le.K)("geometry")],at.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],at.prototype,"objectIds",void 0),(0,s.Cg)([(0,nt.e)(rt.x,{ignoreUnknown:!1,name:"spatialRel"})],at.prototype,"spatialRelationship",void 0),(0,s.Cg)([(0,p.MZ)({type:st.A,json:{name:"time",write:!0}})],at.prototype,"timeExtent",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],at.prototype,"where",void 0),at=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageGPSInfoParameters")],at);let ot=class extends(Ie(J.o)){constructor(e){super(e),this.id=null}};(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ot.prototype,"id",void 0),ot=(0,s.Cg)([(0,p.$K)("esri.rest.support.CameraInfo")],ot);const lt=ot;let ut=class extends J.o{constructor(e){super(e),this.id=null,this.name=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.gps=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ut.prototype,"id",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ut.prototype,"name",void 0),(0,s.Cg)([(0,p.MZ)({type:Date,json:{write:!0}})],ut.prototype,"acquisitionDate",void 0),(0,s.Cg)([(0,le.K)("acquisitionDate")],ut.prototype,"writeAcquisitionDate",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ut.prototype,"cameraID",void 0),(0,s.Cg)([(0,p.MZ)({type:D.A,json:{write:!0}})],ut.prototype,"center",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ut.prototype,"gps",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ut.prototype,"orientation",void 0),ut=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageGPSInfo")],ut);const pt=ut;let mt=class extends J.o{constructor(e){super(e),this.images=null,this.cameras=null}};var ct;(0,s.Cg)([(0,p.MZ)({type:[pt],json:{write:!0}})],mt.prototype,"images",void 0),(0,s.Cg)([(0,p.MZ)({type:[lt],json:{write:!0}})],mt.prototype,"cameras",void 0),mt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageGPSInfoResult")],mt);let dt=ct=class extends Ve{constructor(e){super(e),this.type="height",this.fromGeometry=null,this.toGeometry=null,this.operationType="base-and-top",this.linearUnit="meters"}writeFromGeometry(e,t,i){null!=e&&(t.geometryType=(0,Ne.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.operationType}clone(){return new ct((0,b.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,operationType:this.operationType,linearUnit:this.linearUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,p.MZ)({type:D.A,json:{read:!0}})],dt.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,le.K)("fromGeometry")],dt.prototype,"writeFromGeometry",null),(0,s.Cg)([(0,p.MZ)({type:D.A,json:{read:!0,write:!0}})],dt.prototype,"toGeometry",void 0),(0,s.Cg)([(0,p.MZ)({type:_e.apiValues,json:{write:_e.write}})],dt.prototype,"measureOperation",null),(0,s.Cg)([(0,p.MZ)({json:{read:!0}})],dt.prototype,"operationType",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:je.Sk.read,write:je.Sk.write}})],dt.prototype,"linearUnit",void 0),dt=ct=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageHeightParameters")],dt);let yt=class extends Je{constructor(e){super(e),this.height=null}};(0,s.Cg)([(0,p.MZ)({type:Ke,json:{read:!0,write:!0}})],yt.prototype,"height",void 0),yt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageHeightResult")],yt);var ht,gt=i(22048);let ft=ht=class extends J.o{constructor(e){super(e),this.geometry=null,this.rasterFunctions=null,this.pixelSize=null,this.returnGeometry=!0,this.returnCatalogItems=!0,this.returnPixelValues=!0,this.maxItemCount=null,this.timeExtent=null,this.raster=void 0,this.viewId=void 0,this.processAsMultidimensional=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,Ne.$B)(e),t[i]=JSON.stringify(e.toJSON()))}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=ae.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}writeMosaicRule(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON()))}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=z.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}writeRasterFunction(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON())),e.rasterFunctionDefinition&&(t[i]=JSON.stringify(e.rasterFunctionDefinition))}writeRasterFunctions(e,t,i){null!=e&&(t[i]=JSON.stringify(e.map(e=>e.rasterFunctionDefinition||e.toJSON())))}writePixelSize(e,t,i){null!=e&&(t[i]=JSON.stringify(e))}writeTimeExtent(e,t,i){if(null!=e){let r=null==e.start?null:e.start.getTime(),s=null==e.end?null:e.end.getTime();t[i]=null==r?null:null==s?`${r}`:`${r},${s}`}}clone(){return new ht((0,b.o8)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,rasterFunctions:this.rasterFunctions,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,processAsMultidimensional:this.processAsMultidimensional,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};(0,s.Cg)([(0,p.MZ)({types:Oe.yR,json:{write:!0}})],ft.prototype,"geometry",void 0),(0,s.Cg)([(0,le.K)("geometry")],ft.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({type:ae.A,json:{write:!0}})],ft.prototype,"mosaicRule",null),(0,s.Cg)([(0,le.K)("mosaicRule")],ft.prototype,"writeMosaicRule",null),(0,s.Cg)([(0,p.MZ)({type:z.A,json:{write:!0,name:"renderingRule"}})],ft.prototype,"rasterFunction",null),(0,s.Cg)([(0,le.K)("rasterFunction")],ft.prototype,"writeRasterFunction",null),(0,s.Cg)([(0,p.MZ)({type:[z.A],json:{write:!0,name:"renderingRules"}})],ft.prototype,"rasterFunctions",void 0),(0,s.Cg)([(0,le.K)("rasterFunctions")],ft.prototype,"writeRasterFunctions",null),(0,s.Cg)([(0,p.MZ)({type:D.A,json:{write:!0}})],ft.prototype,"pixelSize",void 0),(0,s.Cg)([(0,le.K)("pixelSize")],ft.prototype,"writePixelSize",null),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],ft.prototype,"returnGeometry",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],ft.prototype,"returnCatalogItems",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],ft.prototype,"returnPixelValues",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],ft.prototype,"maxItemCount",void 0),(0,s.Cg)([(0,p.MZ)({type:st.A,json:{write:{target:"time"}}})],ft.prototype,"timeExtent",void 0),(0,s.Cg)([(0,le.K)("timeExtent")],ft.prototype,"writeTimeExtent",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ft.prototype,"raster",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],ft.prototype,"viewId",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],ft.prototype,"processAsMultidimensional",void 0),ft=ht=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageIdentifyParameters")],ft);var wt=i(22671);let vt=class extends J.o{constructor(e){super(e),this.catalogItemVisibilities=null,this.catalogItems=null,this.location=null,this.name=null,this.objectId=null,this.processedValues=null,this.properties=null,this.value=null}};var Rt;(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],vt.prototype,"catalogItemVisibilities",void 0),(0,s.Cg)([(0,p.MZ)({type:wt.A,json:{write:!0}})],vt.prototype,"catalogItems",void 0),(0,s.Cg)([(0,p.MZ)({type:D.A,json:{write:!0}})],vt.prototype,"location",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],vt.prototype,"name",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],vt.prototype,"objectId",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],vt.prototype,"processedValues",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],vt.prototype,"properties",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],vt.prototype,"value",void 0),vt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageIdentifyResult")],vt);let Ct=Rt=class extends J.o{constructor(e){super(e),this.geometries=null,this.rasterId=null}writeGeometry(e,t,i){t.geometries={geometryType:"esriGeometryPoint",geometries:e.map(e=>e.toJSON())}}clone(){return new Rt({geometries:this.geometries?.map(e=>e.clone())??[],rasterId:this.rasterId})}};(0,s.Cg)([(0,p.MZ)({type:[D.A],json:{write:!0}})],Ct.prototype,"geometries",void 0),(0,s.Cg)([(0,le.K)("geometries")],Ct.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({type:M.jz,json:{write:!0}})],Ct.prototype,"rasterId",void 0),Ct=Rt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImagePixelLocationParameters")],Ct);let bt=class extends J.o{constructor(e){super(e),this.geometries=null}};var St;(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],bt.prototype,"geometries",void 0),bt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImagePixelLocationResult")],bt);let xt=St=class extends Ve{constructor(e){super(e),this.type="point",this.geometry=null,this.is3D=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,Ne.$B)(e),t[i]=e.toJSON())}get measureOperation(){let{is3D:e,geometry:t}=this;return"point"===t.type?e?"point-3D":"point":e?"centroid-3D":"centroid"}clone(){return new St((0,b.o8)({geometry:this.geometry,is3D:this.is3D,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,p.MZ)({types:Oe.yR,json:{name:"fromGeometry",read:Ce.rS}})],xt.prototype,"geometry",void 0),(0,s.Cg)([(0,le.K)("geometry")],xt.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({type:_e.apiValues,json:{read:_e.read,write:_e.write}})],xt.prototype,"measureOperation",null),(0,s.Cg)([(0,p.MZ)({json:{read:!0}})],xt.prototype,"is3D",void 0),xt=St=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImagePointParameters")],xt);let It=class extends Je{constructor(e){super(e),this.point=null}};(0,s.Cg)([(0,p.MZ)({type:D.A,json:{name:"point.value",read:!0,write:!0}})],It.prototype,"point",void 0),It=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImagePointResult")],It);var Mt=i(34606),Ft=i(51508);let At=class extends((0,a.OU)(J.o)){constructor(e){super(e),this.geometries=[],this.rasterIds=null,this.outSpatialReference=null}writeGeometries(e,t,i){t.geometries=e?.length?{geometryType:(0,Ne.$B)(e[0]),geometries:e.map(e=>({...e.toJSON(),spatialReference:void 0}))}:null}};(0,s.Cg)([(0,p.MZ)({types:[Oe.yR]})],At.prototype,"geometries",void 0),(0,s.Cg)([(0,le.K)("geometries")],At.prototype,"writeGeometries",null),(0,s.Cg)([(0,p.MZ)({type:[M.jz],json:{write:!0}})],At.prototype,"rasterIds",void 0),(0,s.Cg)([(0,p.MZ)({type:P.A,json:{name:"outSR",write:!0}})],At.prototype,"outSpatialReference",void 0),At=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageToMapMultirayParameters")],At);let Dt=class extends((0,a.OU)(J.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.outSpatialReference=null,this.depthOffset=0,this.adjust=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,Ne.$B)(e),t[i]={...e.toJSON(),spatialReference:void 0})}};(0,s.Cg)([(0,p.MZ)({types:Oe.yR,json:{read:Ce.rS,write:!0}})],Dt.prototype,"geometry",void 0),(0,s.Cg)([(0,le.K)("geometry")],Dt.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Dt.prototype,"rasterId",void 0),(0,s.Cg)([(0,p.MZ)({type:P.A,json:{name:"outSR",write:!0}})],Dt.prototype,"outSpatialReference",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"options.DOff",write:!0}})],Dt.prototype,"depthOffset",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"options.Adjust",write:!0}})],Dt.prototype,"adjust",void 0),Dt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageToMapParameters")],Dt);let Tt=class extends((0,a.OU)(J.o)){constructor(e){super(e),this.referenceUri=null,this.rasterId=null}};(0,s.Cg)([(0,p.MZ)({type:String,json:{name:"uri",write:!0}})],Tt.prototype,"referenceUri",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Tt.prototype,"rasterId",void 0),Tt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageUrlParameters")],Tt);let Pt=class extends J.o{constructor(e){super(e),this.url=null}};(0,s.Cg)([(0,p.MZ)({json:{name:"imageURL",write:!0}})],Pt.prototype,"url",void 0),Pt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageUrlResult")],Pt);const jt=new Ze.J({0:"constant",1:"plane",2:"minimum",3:"maximum",4:"average"},{useNumericKeys:!0});let Nt=class extends((0,a.OU)(J.o)){constructor(e){super(e),this.geometries=[],this.mosaicRule=null,this.pixelSize=null,this.constantZ=null,this.baseType="plane"}writeGeometries(e,t,i){e?.length&&(t.geometryType=(0,Ne.$B)(e[0]),t.geometries=e.map(e=>e.toJSON()))}};(0,s.Cg)([(0,p.MZ)({types:[Oe.yR]})],Nt.prototype,"geometries",void 0),(0,s.Cg)([(0,le.K)("geometries")],Nt.prototype,"writeGeometries",null),(0,s.Cg)([(0,p.MZ)({type:ae.A,json:{write:!0}})],Nt.prototype,"mosaicRule",void 0),(0,s.Cg)([(0,p.MZ)({type:D.A,json:{write:!0}})],Nt.prototype,"pixelSize",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Nt.prototype,"constantZ",void 0),(0,s.Cg)([(0,p.MZ)({type:jt.apiValues,json:{read:jt.read,write:jt.write}})],Nt.prototype,"baseType",void 0),Nt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageVolumeParameters")],Nt);let Ot=class extends J.o{constructor(e){super(e),this.area=null,this.cut=null,this.fill=null,this.maxZ=null,this.minZ=null,this.meanZ=null,this.cutCellCount=null,this.fillCellCount=null}};(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ot.prototype,"area",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ot.prototype,"cut",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ot.prototype,"fill",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"maxz",write:!0}})],Ot.prototype,"maxZ",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"minz",write:!0}})],Ot.prototype,"minZ",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"meanz",write:!0}})],Ot.prototype,"meanZ",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ot.prototype,"cutCellCount",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ot.prototype,"fillCellCount",void 0),Ot=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageVolume")],Ot);const Zt=Ot;let _t=class extends J.o{constructor(e){super(e),this.volumes=[]}};(0,s.Cg)([(0,p.MZ)({type:[Zt],json:{write:!0}})],_t.prototype,"volumes",void 0),_t=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageVolumeResult")],_t);let Vt=class extends((0,a.OU)(J.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.visibleOnly=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,Ne.$B)(e),t[i]=JSON.stringify(e))}};(0,s.Cg)([(0,p.MZ)({types:Oe.yR,json:{read:Ce.rS,write:!0}})],Vt.prototype,"geometry",void 0),(0,s.Cg)([(0,le.K)("geometry")],Vt.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Vt.prototype,"rasterId",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"options.VisibleOnly",write:!0}})],Vt.prototype,"visibleOnly",void 0),Vt=(0,s.Cg)([(0,p.$K)("esri.rest.support.MapToImageParameters")],Vt);let qt=class extends J.o{constructor(e){super(e),this.geometry=null,this.length=null,this.area=null,this.center=null}readCenter(e,t){return e.spatialReference||(e={...e,spatialReference:t.Shape.spatialReference}),D.A.fromJSON(e)}};var Et;(0,s.Cg)([(0,p.MZ)({types:Oe.yR,json:{name:"Shape",read:Ce.rS,write:!0}})],qt.prototype,"geometry",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"Length",write:!0}})],qt.prototype,"length",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"Area",write:!0}})],qt.prototype,"area",void 0),(0,s.Cg)([(0,p.MZ)({type:D.A,json:{name:"Center",write:!0}})],qt.prototype,"center",void 0),(0,s.Cg)([(0,He.w)("center")],qt.prototype,"readCenter",null),qt=(0,s.Cg)([(0,p.$K)("esri.rest.support.MeasureAreaFromImageResult")],qt);let Jt=Et=class extends J.o{constructor(e){super(e),this.geometry=null,this.rasterId=void 0}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,Ne.$B)(e),t[i]={...e.toJSON(),spatialReference:void 0})}clone(){let e=(0,b.o8)({geometry:this.geometry,rasterId:this.rasterId});return new Et(e)}};(0,s.Cg)([(0,p.MZ)({types:Oe.yR,json:{name:"fromGeometry",read:Ce.rS,write:!0}})],Jt.prototype,"geometry",void 0),(0,s.Cg)([(0,le.K)("geometry")],Jt.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Jt.prototype,"rasterId",void 0),Jt=Et=(0,s.Cg)([(0,p.$K)("esri.rest.support.MeasureFromImageParameters")],Jt);let Gt=class extends J.o{constructor(e){super(e),this.geometry=null,this.length=null}};function $t(e){let t=e?.time;if(t&&(null!=t.start||null!=t.end)){let i=[];null!=t.start&&i.push(t.start),null!=t.end&&!i.includes(t.end)&&i.push(t.end),e.time=i.join(",")}}async function zt(e,t,i){let r=(0,M.PZ)(gt.A,t),s=(0,Se.Dl)(e),n=r.geometry?[r.geometry]:[],a=await(0,be.el)(n),o=r.toJSON();$t(o);let l=a?.[0];null!=l&&(o.geometry=Kt(l));let u=(0,Se.lF)({...s.query,f:"json",...o});return(0,Se.jV)(u,i)}async function Lt(e,t,i){let r=(0,M.PZ)(ft,t),s=(0,Se.Dl)(e),n=r.geometry?[r.geometry]:[],a=await(0,be.el)(n),o=r.toJSON(),l=a?.[0];null!=l&&(o.geometry=JSON.stringify(Kt(l)));let u=(0,Se.lF)({...s.query,f:"json",...o}),p=(0,Se.jV)(u,i),m=await(0,R.A)(s.path+"/identify",p);return vt.fromJSON(m.data)}async function Ut(e,t,i,r){let s=(0,Se.Dl)(e),n=await(0,be.el)(i),a=t.toJSON();null!=n[0]&&(a.fromGeometry=JSON.stringify(Kt(n[0]))),null!=n[1]&&(a.toGeometry=JSON.stringify(Kt(n[1])));let o=(0,Se.lF)({...s.query,f:"json",...a}),l=(0,Se.jV)(o,r),{data:u}=await(0,R.A)(s.path+"/measure",l);return u}async function Bt(e,t,i){t=(0,M.PZ)(Jt,t);let r=(0,Se.Dl)(e),s=t.toJSON(),n=(0,Se.lF)({...r.query,f:"json",...s}),a=(0,Se.jV)(n,i),{data:o}=await(0,R.A)(r.path+"/measureFromImage",a);return o}function Kt(e){let t=e.toJSON();return e.spatialReference?.imageCoordinateSystem&&(t.spatialReference=kt(e.spatialReference)),t}function kt(e){let{imageCoordinateSystem:t}=e;if(t){let{id:e,referenceServiceName:i}=t;return null==e?{ics:t}:i?{icsid:e,icsns:i}:{icsid:e}}return e.toJSON()}function Qt(e,t){if(!e.imageCoordinateSystem)return(0,j.YX)(e);let i=kt(e),{icsid:r,icsns:s}=i;return null==r||null!=s&&!t?.toLowerCase().includes("/"+s.toLowerCase()+"/")?JSON.stringify(i):`0:${r}`}(0,s.Cg)([(0,p.MZ)({types:Oe.yR,json:{name:"Shape",read:Ce.rS,write:!0}})],Gt.prototype,"geometry",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"Length",write:!0}})],Gt.prototype,"length",void 0),Gt=(0,s.Cg)([(0,p.$K)("esri.rest.support.MeasureLengthFromImageResult")],Gt);var Ht=i(82371),Wt=i(20223),Xt=i(20615),Yt=i(74910),ei=i(78286),ti=i(99199),ii=i(97552),ri=i(7562);const si=new Set(["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"]),ni=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this._functionRasterInfos={},this._serviceSupportsMosaicRule=null,this._exportTileQueue=new S.QueueProcessor({concurrency:4,process:(e,t)=>this._fetchPixels(e.extent,e.width,e.height,{...e.options,signal:t})}),this.adjustAspectRatio=null,this.bandIds=void 0,this.capabilities=null,this.compressionQuality=void 0,this.compressionTolerance=.01,this.copyright=null,this.defaultMosaicRule=null,this.definitionExpression=null,this.exportImageServiceParameters=null,this.rasterInfo=null,this.fields=null,this.fullExtent=null,this.hasMultidimensions=!1,this.imageMaxHeight=4100,this.imageMaxWidth=4100,this.interpolation=void 0,this.minScale=0,this.maxScale=0,this.multidimensionalInfo=null,this.multidimensionalSubset=null,this.noData=null,this.noDataInterpretation=void 0,this.objectIdField=null,this.geometryType="polygon",this.typeIdField=null,this.types=[],this.pixelFilter=null,this.raster=void 0,this.sourceType=null,this.viewId=void 0,this.symbolizer=null,this.rasterFunctionInfos=null,this.serviceDataType=null,this.spatialReference=null,this.pixelType=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.url=null,this.version=void 0}initialize(){this._set("exportImageServiceParameters",new ue({layer:this}))}readServiceSupportsMosaicRule(e,t){return this._isMosaicRuleSupported(t)}get _rasterFunctionNamesIndex(){let e=new Map;return!this.rasterFunctionInfos||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.length<1||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.forEach(t=>{e.set(t.name.toLowerCase().replaceAll(/ /gi,"_"),t.name)}),e}readBandIds(e,t){if(Array.isArray(e)&&e.length>0&&e.every(e=>"number"==typeof e))return e}readCapabilities(e,t){return this._readCapabilities(t)}writeCompressionQuality(e,t,i){null!=e&&"lerc"!==this.format&&(t[i]=e)}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}readDefaultMosaicRule(e,t){return this._serviceSupportsMosaicRule?(0,F.F_)(()=>ae.A.fromJSON(t)):null}get fieldsIndex(){return this.fields?new ce.A(this.fields):null}set format(e){e&&si.has(e.toLowerCase())&&this._set("format",e.toLowerCase())}readFormat(e,t){return"esriImageServiceDataTypeVector-UV"===t.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===t.serviceDataType||null!=this.pixelFilter||!1===t.allowRasterFunction?"lerc":"jpgpng"}get isRenderedFormat(){return!this.format||this.format.includes("jpg")||this.format.includes("png")}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=ae.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}readMosaicRule(e,t){let i=e||t.mosaicRule;return i?ae.A.fromJSON(i):this._isMosaicRuleSupported(t)?ae.A.fromJSON(t):null}writeMosaicRule(e,t,i){let{mosaicRule:r}=this;this._isValidCustomizedMosaicRule(r)&&(t[i]=r.toJSON())}readObjectIdField(e,t){return e||=t.fields.find(e=>"esriFieldTypeOID"===e.type||"oid"===e.type)?.name,e}get parsedUrl(){return(0,I.An)(this.url)}readSourceType(e,t){return this._isMosaicDataset(t)?"mosaic-dataset":"raster-dataset"}get renderer(){let{activePresetRendererName:e,presetRenderers:t}=this;return e?(t?.find(({name:t})=>t===e))?.renderer.clone():this.internalRenderer}set renderer(e){this.activePresetRendererName=null,this.internalRenderer=e}set internalRenderer(e){this.loaded&&(e=this._configRenderer(e)),this._set("internalRenderer",e)}readRenderer(e,t,i){let r=t?.layerDefinition?.drawingInfo?.renderer,s=(0,Re.LF)(r,i);return null==s?null:("vector-field"===s.type&&t.symbolTileSize&&!r.symbolTileSize&&(s.symbolTileSize=t.symbolTileSize),H(s)||o.A.getLogger(this).warn("ArcGISImageService","Imagery layer doesn't support given renderer type."),s)}writeRenderer(e,t,i){t.layerDefinition=t.layerDefinition||{},t.layerDefinition.drawingInfo=t.layerDefinition.drawingInfo||{},t.layerDefinition.drawingInfo.renderer=e.toJSON()}get rasterFields(){let e=this.fields?.map(e=>e.clone())??[];e.push((0,ge.rZ)()),"mosaic-dataset"===this.sourceType&&this.fields?.length&&e.push((0,ge.Nd)()),this.version>=10.4&&null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.some(({name:e})=>"none"===e.toLowerCase())&&e.push((0,ge.dy)()),null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.filter(({name:e})=>"none"!==e.toLowerCase()).forEach(({name:t})=>e.push((0,ge.nq)(t)));let{rasterInfo:t}=this;if(this._isVectorDataSet()){let i=t?.multidimensionalInfo?.variables[0].unit?.trim(),r=(0,ge.DV)(i),s=(0,ge.y6)();e.push(r,s)}if(t?.multidimensionalInfo&&"raster-dataset"===this.sourceType){let i=(0,ge.AL)(t.multidimensionalInfo);e.push(...i)}let i=t?.attributeTable;if(null!=i){let t=(0,ge.jC)(i);e.push(...t)}return e}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=z.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}readRasterFunction(e,t){let i=t.rasterFunctionInfos,r=t.renderingRule,s=null!=r&&Object.keys(r).length>0;return s||i?.length&&"None"!==i[0].name?this._isRFTJson(r)?z.A.fromJSON({rasterFunctionDefinition:r}):z.A.fromJSON(s?r:{rasterFunctionInfos:i}):null}readSpatialReference(e,t){let i=e||t.extent.spatialReference;return i?P.A.fromJSON(i):null}writePixelType(e,t,i){(null==this.serviceRasterInfo||this.pixelType!==this.serviceRasterInfo.pixelType)&&(t[i]=oe.e8.toJSON(e))}readVersion(e,t){let i=t.currentVersion;return i||=t.hasOwnProperty("fields")||t.hasOwnProperty("timeInfo")?10:9.3,i}applyFilter(e){let t=e;return this.pixelFilter&&(t=this._clonePixelData(e),this.pixelFilter(t)),t}async applyRenderer(e,t){let i=e,{renderer:r,symbolizer:s,pixelFilter:n}=this,{isRawData:a}=e;if(a&&"lerc"!==this.format&&(r??=(0,we.PD)(this.rasterInfo,{bandIds:this.bandIds,variableName:this.rasterFunction?null:this.mosaicRule?.multidimensionalDefinition?.[0].variableName}),s||=(this.symbolizer=new ve.A({rendererJSON:r.toJSON(),rasterInfo:this.rasterInfo}),this.symbolizer)),(a||!this.isRenderedFormat)&&r&&s&&!n){await this._updateSymbolizer(s,r);let n=this.bandIds?.length?this.bandIds:(0,we.ci)(this.rasterInfo);i=await this._symbolize({pixelData:e,bandIds:n,symbolizer:s},t)}return i}destroy(){this._shutdownJobHandler()}async calculateVolume(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsCalculateVolume)throw new C.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return e=(0,b.o8)(e),this.mosaicRule&&null==e.mosaicRule&&(e.mosaicRule=this.mosaicRule),async function(e,t,i){let r=(0,M.PZ)(Nt,t).toJSON();r.geometries=JSON.stringify(r.geometries);let s=(0,Se.Dl)(e),n=(0,Se.lF)({...s.query,f:"json",...r}),a=(0,Se.jV)(n,i),{data:o}=await(0,R.A)(`${s.path}/calculateVolume`,a);return _t.fromJSON({volumes:o.results})}(this.url,e,this._getRequestOptions(t))}async computeAngles(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeAngles)throw new C.A("imagery-layer:compute-angles","this operation is not supported on the input image service");return async function(e,t,i){let r=(0,M.PZ)(Te,t),s=r.toJSON();null!=s.angleName&&(s.angleName=s.angleName.join(",")),r?.point?.spatialReference?.imageCoordinateSystem&&(s.point.spatialReference=kt(r.point.spatialReference)),r?.spatialReference?.imageCoordinateSystem&&(s.spatialReference=Qt(r.spatialReference));let n=(0,Se.Dl)(e),a=(0,Se.lF)({...n.query,f:"json",...s}),o=(0,Se.jV)(a,i),{data:l}=await(0,R.A)(`${n.path}/computeAngles`,o);return l.spatialReference=l.spatialReference?null==l.spatialReference.geodataXform?P.A.fromJSON(l.spatialReference):new P.A({wkid:0,imageCoordinateSystem:l.spatialReference}):null,"NaN"===l.north&&(l.north=null),"NaN"===l.up&&(l.up=null),new Pe(l)}(this.url,e,this._getRequestOptions(t))}async computePixelSpaceLocations(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputePixelLocation)throw new C.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return async function(e,t,i){let r=(0,M.PZ)(Ct,t),s=r.toJSON(),{geometries:n}=r;if(n)for(let e=0;e<n.length;e++)n[e].spatialReference?.imageCoordinateSystem&&(s.geometries.geometries[e].spatialReference=kt(n[e].spatialReference));let a=(0,Se.Dl)(e),o=(0,Se.lF)({...a.query,f:"json",...s}),l=(0,Se.jV)(o,i),{data:u}=await(0,R.A)(`${a.path}/computePixelLocation`,l);return bt.fromJSON(u)}(this.url,e,this._getRequestOptions(t))}async computeHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeHistograms)throw new C.A("imagery-layer:compute-histograms","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,i){let r=await zt(e,t,i),s=(0,Se.Dl)(e),{data:n}=await(0,R.A)(`${s.path}/computeHistograms`,r);return{histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async computeStatisticsHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeStatisticsHistograms)throw new C.A("imagery-layer:compute-statistics-histograms","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,i){let r=await zt(e,t,i),s=(0,Se.Dl)(e),{data:n}=await(0,R.A)(`${s.path}/computeStatisticsHistograms`,r),{statistics:a}=n;return a?.length&&a.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation;let t=e.covariances?.trim();t&&(e.covariances=t.split(",").map(Number))}),{statistics:a,histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async measureHeight(e,t){let i=await this._fetchCapabilities(t?.signal);if(!("base-and-top"===e.operationType?i.mensuration.supportsHeightFromBaseAndTop:"base-and-top-shadow"===e.operationType?i.mensuration.supportsHeightFromBaseAndTopShadow:i.mensuration.supportsHeightFromTopAndTopShadow))throw new C.A("imagery-layer:measure-height","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicRule(e),async function(e,t,i){let r=(0,M.PZ)(dt,t),s=await Ut(e,r,[r.fromGeometry,r.toGeometry],i);return yt.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureAreaAndPerimeter(e,t){let i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsAreaAndPerimeter||e.is3D&&!i.mensuration.supports3D)throw new C.A("imagery-layer:measure-area-and-perimeter","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicRule(e),async function(e,t,i){let r=(0,M.PZ)(Ee,t),s=await Ut(e,r,[r.geometry],i);return ke.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureDistanceAndAngle(e,t){let i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsDistanceAndAngle||e.is3D&&!i.mensuration.supports3D)throw new C.A("imagery-layer:measure-distance-and-angle","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicRule(e),async function(e,t,i){let r=(0,M.PZ)(Ye,t),s=await Ut(e,r,[r.fromGeometry,r.toGeometry],i);return it.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measurePointOrCentroid(e,t){let i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsPointOrCentroid||e.is3D&&!i.mensuration.supports3D)throw new C.A("imagery-layer:measure-point-or-centroid","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicRule(e),async function(e,t,i){let r=(0,M.PZ)(xt,t),s=await Ut(e,r,[r.geometry],i);return It.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureLengthFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new C.A("imagery-layer:measure-length-from-image","this operation is not supported on the input image service");if("polyline"!==e.geometry.type)throw new C.A("imagery-layer:measure-length-from-image","this input geometry must be a polyline");return async function(e,t,i){let r=await Bt(e,(0,M.PZ)(Jt,t),i);return Gt.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}async measureAreaFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new C.A("imagery-layer:measure-area-from-image","this operation is not supported on the input image service");if("polygon"!==e.geometry.type)throw new C.A("imagery-layer:measure-area-from-image","this input geometry must be a polygon");return async function(e,t,i){let r=await Bt(e,(0,M.PZ)(Jt,t),i);return qt.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}getField(e){let{fieldsIndex:t}=this;return t?.get(e)}getFieldDomain(e,t){let i=this.getField(e);return i?i.domain:null}async internalFetchImage(e,t,i,r={}){await this._updateCurrentRasterInfo();let{exportImageServiceParameters:s}=this,a=!1;if(r.requestRawData&&(await this._initJobHandler(),!s.requestRawData&&"lerc"!==this.format)){a=!0,s.requestRawData=!0;let e=this.bandIds;if(!e?.length){let t=(0,we.ci)(this.rasterInfo);Array.from({length:this.rasterInfo.bandCount},(e,t)=>t)?.join(",")!==t?.join(",")&&(e=t)}s.rawDataRequestBandIds=e}let o=this.getExportImageServiceParameters(e,t,i,r.timeExtent);if(a&&(s.requestRawData=!1,s.rawDataRequestBandIds=null),null==o){if(r.requestAsImageElement&&this._canRequestImageElement(this.format)){let e=document.createElement("canvas");if(e.width=t,e.height=i,r.returnImageBitmap){let{bitmap:t}=await(0,de.mn)(e,`${n(this.parsedUrl)}/exportImage`,r);return{imageBitmap:t}}return{imageOrCanvasElement:e}}let{bandIds:s,rasterInfo:a}=this,o=(s?.length||a.bandCount)??0,l=t*i,u=a.pixelType,p=[];for(let e=0;e<o;e++)p.push(he.A.createEmptyBand(u,l));return{pixelData:{pixelBlock:new he.A({width:t,height:i,pixels:p,mask:new Uint8Array(l),pixelType:u}),extent:e}}}let l=!!r.requestAsImageElement&&!this.pixelFilter,u=l&&!!r.returnImageBitmap,p={imageServiceParameters:o,imageProps:{extent:e,width:t,height:i,format:this.format},requestAsImageElement:l,returnImageBitmap:u,signal:r.signal};return this._requestArrayBuffer(p)}async fetchPixels(e,t,r,s={}){await this._initJobHandler(),s.applyRendering&&await this._updateCurrentRasterInfo();let{imageMaxWidth:n,imageMaxHeight:a}=this;if(t<=n&&r<=a)return this._exportTileQueue.push({extent:e,width:t,height:r,options:s},{signal:s.signal});if(t>4096||r>4096||n<512||a<512)throw new C.A("imagery-layer:fetch-pixels",`The image service has a maximum export size of ${n}x${a}. The requested size of ${t}x${r} exceeds this limit.`);let{xmin:o,ymax:l,spatialReference:u}=this._projectedFullExtent??this.fullExtent;if(!u?.equals(e.spatialReference)){let{projectLoad:t,projectExecute:r}=await i.e(895).then(()=>i(83276));await t();let s=r(this.fullExtent,e.spatialReference);o=s.xmin,l=s.ymax,this._projectedFullExtent=s}let p=e.width/t,m=e.height/r,c=Math.floor((e.xmin-o)/p),d=Math.floor((l-e.ymax)/m),y=c+t,h=d+r,g=Math.floor(c/512),f=Math.floor(d/512),w=Math.ceil(y/512)-1,v=Math.ceil(h/512)-1,R=512*p,b=512*m,S=[];for(let t=f;t<=v;t++){let i=l-t*b,r=i-b;for(let t=g;t<=w;t++){let n=o+t*R,a=new A.A({xmin:n,ymin:r,xmax:n+R,ymax:i,spatialReference:e.spatialReference});S.push(this._exportTileQueue.push({extent:a,width:512,height:512,options:s},{signal:s.signal}))}}let x=await Promise.all(S);return x.some(e=>null==e.pixelBlock)?{extent:e,pixelBlock:null}:{extent:e,pixelBlock:this._rasterJobHandler?await this._rasterJobHandler.mosaicPixelData({pixelBlocks:x,destExtent:e},{signal:s.signal,transferPixelsToWorker:!0}):(0,_.LY)(x,e)?.pixelBlock}}async _fetchPixels(e,t,i,r={}){let s=r.applyRendering?void 0:new ue({layer:this,requestRawData:!0,interpolation:r.interpolation??"nearest",bandIds:r.bandIds??[]}),n=this.getExportImageServiceParameters(e,t,i,r.timeExtent,s);if(null==n)return{extent:e,pixelBlock:null};delete n.pixelType,r.bandIds||delete n.bandIds,delete n.compressionQuality;let a={imageServiceParameters:n,imageProps:{extent:e,width:t,height:i,format:this.format},requestAsImageElement:!1,returnImageBitmap:!1,signal:r.signal},{pixelData:o}=await this._requestArrayBuffer(a);return o??{extent:e,pixelBlock:null}}fetchKeyProperties(e){return(0,R.A)(n(this.parsedUrl)+"/keyProperties",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>e.data)}fetchRasterAttributeTable(e){return this.version<10.1?Promise.reject(new C.A("#fetchRasterAttributeTable()","Failed to get rasterAttributeTable")):(0,R.A)(n(this.parsedUrl)+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>wt.A.fromJSON(e.data))}getCatalogItemRasterInfo(e,t){let i={...t,query:this._getQueryParams()};return async function(e,t,i){let r=(0,Se.Dl)(e),s=(0,Se.lF)({...r?.query,f:"json"}),n=(0,Se.jV)(s,i),a=`${r?.path}/${t}/info`,o=(0,R.A)(`${a}`,n),l=(0,R.A)(`${a}/keyProperties`,n),u=await Promise.allSettled([o,l]),p="fulfilled"===u[0].status?u[0].value.data:null,m="fulfilled"===u[1].status?u[1].value.data:null,c=null;p.statistics?.length&&(c=p.statistics.map(e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]})));let d=A.A.fromJSON(p.extent),y=Math.ceil(d.width/p.pixelSizeX-.1),h=Math.ceil(d.height/p.pixelSizeY-.1),g=d.spatialReference,f=new D.A({x:p.pixelSizeX,y:p.pixelSizeY,spatialReference:g}),w=p.histograms?.length?p.histograms:null,v=new Wt.A({origin:p.origin,blockWidth:p.blockWidth,blockHeight:p.blockHeight,firstPyramidLevel:p.firstPyramidLevel,maximumPyramidLevel:p.maxPyramidLevel});return new fe.A({width:y,height:h,bandCount:p.bandCount,extent:d,spatialReference:g,pixelSize:f,pixelType:p.pixelType.toLowerCase(),statistics:c,histograms:w,keyProperties:m,storageInfo:v})}(n(this.parsedUrl),e,i)}async getCatalogItemICSInfo(e,t){let{data:i}=await(0,R.A)(n(this.parsedUrl)+"/"+e+"/info/ics",{query:this._getQueryParams(),...t}),r=i?.ics;if(!r)return;let s=null;try{s=(await(0,R.A)(n(this.parsedUrl)+"/"+e+"/info",{query:this._getQueryParams(),...t})).data.extent}catch{}if(!s?.spatialReference)return{ics:r,icsToPixelTransform:null,icsExtent:null,northDirection:null};let a=this.version>=10.7?(0,R.A)(n(this.parsedUrl)+"/"+e+"/info/icstopixel",{query:this._getQueryParams(),...t}).then(e=>e.data).catch(()=>({})):{},o=s.spatialReference,l={geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[s]}),inSR:(0,j.YX)(o),outSR:"0:"+e},u=(0,R.A)(n(this.parsedUrl)+"/project",{query:this._getQueryParams(l),...t}).then(e=>e.data).catch(()=>({})),p=(s.xmin+s.xmax)/2,m=(s.ymax-s.ymin)/6,c=s.ymin+m,d=[];for(let e=0;e<5;e++)d.push({x:p,y:c+m*e});let y={geometries:JSON.stringify({geometryType:"esriGeometryPoint",geometries:d}),inSR:(0,j.YX)(o),outSR:"0:"+e},h=(0,R.A)(n(this.parsedUrl)+"/project",{query:this._getQueryParams(y),...t}).then(e=>e.data).catch(()=>({})),g=await Promise.all([a,u,h]),f=g[0].ipxf;if(null==f){let e=r.geodataXform?.xf_0;"topup"===e?.name?.toLowerCase()&&6===e?.coefficients?.length&&(f={affine:{name:"ics [sensor: Frame] to pixel (column, row) transformation",coefficients:e.coefficients,cellsizeRatio:0,type:"GeometricXform"}})}let w=A.A.fromJSON(g[1]?.geometries?.[0]);w&&(w.spatialReference=new P.A({wkid:0,imageCoordinateSystem:r}));let v=g[2].geometries?g[2].geometries.filter(e=>null!=e?.x&&null!=e.y&&"NaN"!==e.x&&"NaN"!==e.y):[],C=v.length;if(C<3)return{ics:r,icsToPixelTransform:f,icsExtent:w,northDirection:null};let b=0,S=0,x=0,I=0;for(let e=0;e<C;e++)b+=v[e].x,S+=v[e].y,x+=v[e].x*v[e].x,I+=v[e].x*v[e].y;let M=(C*I-b*S)/(C*x-b*b),F=0,D=v[4].x>v[0].x,T=v[4].y>v[0].y;return M===1/0?F=T?90:270:0===M?F=D?0:180:M>0?F=D?180*Math.atan(M)/Math.PI:180*Math.atan(M)/Math.PI+180:M<0&&(F=T?180+180*Math.atan(M)/Math.PI:360+180*Math.atan(M)/Math.PI),{ics:r,icsToPixelTransform:f,icsExtent:w,northDirection:F}}async generateRasterInfo(e,t){let i=(0,M.PZ)(z.A,e),r={...t,query:this._getQueryParams()};if(!i||"none"===i.functionName?.toLowerCase()||this._isVectorFieldResampleFunction(i))return this.serviceRasterInfo??(0,Ht.Tw)(n(this.parsedUrl),this.sourceJSON,r);let s=function(e){let t=JSON.stringify(e),i=t.includes('"rasterFunctionDefinition":{'),r=(i?t.match(/"type":"(.*?FunctionArguments")/gi):t.match(/"rasterFunction":"(.*?")/gi))?.map(e=>i?e.slice(8,-18):e.slice(18,-1));return r?r.join("/"):null}(i);if(!s)throw new C.A("imagery-layer:generate-raster-info","the rendering rule is not supported");if(this._functionRasterInfos[s])return this._functionRasterInfos[s];let a=(0,Ht.X6)(n(this.parsedUrl),i,r);this._functionRasterInfos[s]=a;try{let t=await a,{rasterFunction:i}=this;return(i===e||JSON.stringify(i)===JSON.stringify(e))&&JSON.stringify(this.rasterInfo)!==JSON.stringify(t)&&(this.rasterInfo=t),t}catch(e){throw this._functionRasterInfos[s]=null,e}}getExportImageServiceParameters(e,t,i,r,s){let a=Qt((e=e.clone().shiftCentralMeridian()).spatialReference,n(this.parsedUrl));s??=this.exportImageServiceParameters;let o=s.toJSON(),{bandIds:l,noData:u}=o,{renderingRule:p}=o,m=this.rasterFunction?.rasterFunctionDefinition,c=this.renderer?.type,d=!c||"raster-stretch"===c||"raster-colormap"===c||"unique-value"===c||"class-breaks"===c||"raster-shaded-relief"===c;if(l?.length&&this._hasRasterFunction(this.rasterFunction)&&!m&&d){let e={rasterFunction:"ExtractBand",rasterFunctionArguments:{BandIds:l}};if("Stretch"===p.rasterFunction)e.rasterFunctionArguments.Raster=p.rasterFunctionArguments.Raster,p.rasterFunctionArguments.Raster=e;else if("Colormap"===p.rasterFunction){let t=p.rasterFunctionArguments.Raster;"Stretch"===t?.rasterFunction?(e.rasterFunctionArguments.Raster=t.rasterFunctionArguments.Raster,t.rasterFunctionArguments.Raster=e):(e.rasterFunctionArguments.Raster=t,p.rasterFunctionArguments.Raster=e)}else e.rasterFunctionArguments.Raster=p,p=e;o.bandIds=void 0}else o.bandIds=l?.join(",");Array.isArray(u)&&u.length>0&&(o.noData=u.join(","));let y=this._processMultidimensionalIntersection(null,r,s.mosaicRule);if(y.isOutSide)return null;o.mosaicRule=null==y.mosaicRule?null:JSON.stringify(y.mosaicRule),r=y.timeExtent,o.renderingRule=this._getRenderingRuleString(z.A.fromJSON(p));let h={};if(null!=r){let{start:e,end:t}=r.toJSON();e&&t&&e===t?h.time=""+e:(null!=e||null!=t)&&(h.time=`${e??"null"},${t??"null"}`)}return{bbox:e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:a,imageSR:a,size:t+","+i,...o,...h}}async getSamples(e,t){if(!(await this._fetchCapabilities(t?.signal))?.operations.supportsGetSamples)throw new C.A("imagery-layer:get-samples","getSamples operation is not supported on the input image service");e=(0,b.o8)(e);let{raster:i}=this;return i&&null==e.raster&&(e.raster=i),async function(e,t,i){let r=(0,M.PZ)(Mt.A,t),s=r.toJSON();$t(s),s.outFields?.length&&(s.outFields=s.outFields.join(","));let n=(await(0,be.el)(r.geometry))?.[0];null!=n&&(s.geometry=Kt(n));let a=(0,Se.Dl)(e),o=(0,Se.lF)({...a.query,f:"json",...s}),l=(0,Se.jV)(o,i),{data:u}=await(0,R.A)(`${a.path}/getSamples`,l),p=u.samples.map(e=>{let t="NaN"===e.value||""===e.value?null:e.value.split(" ").map(e=>Number(e));return{...e,pixelValue:t}});return Ft.A.fromJSON({samples:p})}(this.url,e,this._getRequestOptions(t))}async identify(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsIdentify)throw new C.A("imagery-layer:identify","identify operation is not supported on the input image service");e=(0,b.o8)(e),this.version<10.91&&"extent"===e.geometry?.type&&(e.geometry=T.A.fromExtent(e.geometry));let i=this._processMultidimensionalIntersection(e.geometry,e.timeExtent,e.mosaicRule||this.mosaicRule);if(i.isOutSide)throw new C.A("imagery-layer:identify","the request cannot be fulfilled when falling outside of the multidimensional subset");e.timeExtent=i.timeExtent,e.mosaicRule=i.mosaicRule;let{raster:r,rasterFunction:s}=this;return s&&null==e.rasterFunction&&(e.rasterFunction=s),r&&null==e.raster&&(e.raster=r),Lt(this.url,e,this._getRequestOptions(t))}async imageToMap(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMap)throw new C.A("imagery-layer:image-to-map","imageToMap operation is not supported on the input image service");return async function(e,t,i){let r=(0,M.PZ)(Dt,t),s=r.toJSON();r.geometry.spatialReference.imageCoordinateSystem&&(s.geometry=Kt(r.geometry)),r.depthOffset&&r.adjust||delete s.options;let n=(0,Se.Dl)(e),a=(0,Se.lF)({...n.query,f:"json",...s}),o=(0,Se.jV)(a,i),{data:l}=await(0,R.A)(`${n.path}/imageToMap`,o);return(0,Ce.rS)(l)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async imageToMapMultiray(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMapMultiray)throw new C.A("imagery-layer:image-to-map-multiray","imageToMapMultiray operation is not supported on the input image service");return async function(e,t,i){let r=(0,M.PZ)(At,t),s=r.toJSON();r.rasterIds?.length&&(s.rasterIds=r.rasterIds.join(","));let n=(0,Se.Dl)(e),a=(0,Se.lF)({...n.query,f:"json",...s}),o=(0,Se.jV)(a,i),{data:l}=await(0,R.A)(`${n.path}/imageToMapMultiray`,o);return(0,Ce.rS)(l)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async mapToImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMapToImage)throw new C.A("imagery-layer:map-to-image","mapToImage operation is not supported on the input image service");return async function(e,t,i){let r=(0,M.PZ)(Vt,t),s=r.toJSON(),n=(await(0,be.el)(r.geometry))?.[0];null!=n&&(s.geometry=Kt(n)),r.visibleOnly||delete s.options;let a=n?.spatialReference??r.geometry?.spatialReference;a&&(s.inSR=Qt(a));let o=(0,Se.Dl)(e),l=(0,Se.lF)({...o.query,f:"json",...s}),u=(0,Se.jV)(l,i),{data:p}=await(0,R.A)(`${o.path}/mapToImage`,u);return(0,Ce.rS)(p)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async findImages(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsFindImages)throw new C.A("imagery-layer:find-images","findImages operation is not supported on the input image service");return async function(e,t,i){let r=(0,M.PZ)(xe,t),s=r.toJSON(),n=await(0,be.el)([r.fromGeometry,r.toGeometry]);null!=n[0]&&(s.fromGeometry=Kt(n[0]),n[0].spatialReference&&(s.inSR=Qt(n[0].spatialReference))),null!=n[1]&&(s.toGeometry=Kt(n[1])),r.objectIds?.length&&(s.objectIds=s.objectIds.join(","));let a=(0,Se.Dl)(e),o=(0,Se.lF)({...a.query,f:"json",...s}),l=(0,Se.jV)(o,i),{data:u}=await(0,R.A)(`${a.path}/find`,l);return Ae.fromJSON(u)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async getImageUrl(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsGetImageUrl)throw new C.A("imagery-layer:get-image-url","getImageUrl operation is not supported on the input image service");return async function(e,t,i){let r=(0,M.PZ)(Tt,t).toJSON(),s=(0,Se.Dl)(e),n=(0,Se.lF)({...s.query,f:"json",...r}),a=(0,Se.jV)(n,i),{data:o}=await(0,R.A)(`${s.path}/getImageUrl`,a);return Pt.fromJSON(o)}(n(this.parsedUrl),e,this._getRequestOptions(t))}createQuery(){return new ii.A({outFields:["*"],returnGeometry:!0,where:this.definitionExpression||"1=1"})}async queryBoundary(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryBoundary)throw new C.A("imagery-layer:query-boundary","queryBoundary operation is not supported on the input image service");return e??={outSpatialReference:this.spatialReference},async function(e,t,i){let r=(0,M.PZ)(Qe,t),s=(0,Se.Dl)(e),n=r.toJSON();r.outSpatialReference&&(n.outSR=Qt(r.outSpatialReference));let a=(0,Se.lF)({...s.query,f:"json",...n}),o=(0,Se.jV)(a,i),{data:l}=await(0,R.A)(s.path+"/queryBoundary",o);return We.fromJSON(l)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async queryExtent(e,t){({query:e,requestOptions:t}=await this._prepareForQuery(e,t));let{where:r,objectIds:s,geometry:n,timeExtent:a,start:o,num:l,pixelSize:u}=e,p=null!=r&&"1=1"!==r,m=null!=s&&s.length>0,c=null!=n&&("extent"!==n.type||!n.equals(this.fullExtent)),d=null!=u,y=null!=o||null!=l,{timeInfo:h}=this,g=null!=a&&null!=h&&!a.equals(h.fullTimeExtent);if(!(p||m||c||d||g||y)){let r=await(0,Xt.I)(this.url,e,t),{outSpatialReference:s}=e;if(!s||s.equals(this.spatialReference))return{count:r,extent:this.fullExtent.clone()};let{projectLoad:n,projectExecute:a}=await i.e(895).then(()=>i(83276));return await n(),{count:r,extent:a(this.fullExtent,s)}}return(0,Yt.L)(this.url,e,t)}async queryRasters(e,t){({query:e,requestOptions:t}=await this._prepareForQuery(e,t));let i=await(0,ti.s)(this.url,e,t),r=this.graphicOrigin;return i.features.forEach(e=>{e.layer=this,e.origin=r}),i}async fetchMaxPixelSize(e,t){let i=await this._fetchCapabilities(t?.signal),r=this.fields?.find(({name:e})=>"maxps"===e.toLowerCase());if(!i.query.supportsStatistics||!r)return null;let s="maxPixelSize",n=(await this.queryRasters({where:"1=1",outStatistics:[new ri.A({statisticType:"max",onStatisticField:r.name,outStatisticFieldName:s})],returnGeometry:!1},t)).features[0]?.attributes?.[s];if(!n)return null;let a=new D.A({x:n,y:n,spatialReference:this.spatialReference});return(0,Z.T5)(a,e)}async queryObjectIds(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,ei.V)(this.url,e,t)}async queryGPSInfo(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryGPSInfo)throw new C.A("imagery-layer:query-gps-info","queryGPSInfo operation is not supported on the input image service");return e??={where:"1=1"},async function(e,t,i){let r=(0,M.PZ)(at,t),s=r.toJSON();$t(s),s.objectIds?.length&&(s.objectIds=s.objectIds.join(",")),s.geometry||s.objectIds||s.time||s.where||(s.where="1=1");let n=(await(0,be.el)(r.geometry))?.[0];null!=n&&(s.geometry=Kt(n));let a=n?.spatialReference??r.geometry?.spatialReference;a&&(s.inSR=Qt(a));let o=(0,Se.Dl)(e),l=(0,Se.lF)({...o.query,f:"json",...s}),u=(0,Se.jV)(l,i),{data:p}=await(0,R.A)(`${o.path}/queryGPSInfo`,u);return mt.fromJSON(p)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async queryRasterCount(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Xt.I)(this.url,e,t)}async queryVisibleRasters(e,t){if(!e)throw new C.A("imagery-layer: query-visible-rasters","missing query parameter");await this.load();let{pixelSize:i,returnDomainValues:r,returnTopmostRaster:s,showNoDataRecords:n}=t||{pixelSize:null,returnDomainValues:!1,returnTopmostRaster:!1,showNoDataRecords:!1},a=!1,o=null,l=null,u=ge.F_.servicePixelValue.toLowerCase(),p=this._rasterFunctionNamesIndex;if(null!=e.outFields&&(a=e.outFields.some(e=>!e.toLowerCase().startsWith(u)),this.version>=10.4)){let t=e.outFields.filter(e=>e.toLowerCase().startsWith(u)&&e.length>u.length).map(e=>{let t=e.slice(u.length+1);return[this._updateRenderingRulesFunctionName(t,p),t]});o=t.map(e=>new z.A({functionName:e[0]})),l=t.map(e=>e[1]);let{rasterFunction:i}=this;0===o.length?i?.functionName?(o.push(i),l.push(i.functionName)):o=null:i?.functionName&&!o.some(e=>e.functionName===i.functionName)&&(o.push(i),l.push(i.functionName))}let m=null==e.outSpatialReference||e.outSpatialReference.equals(this.spatialReference),{multidimensionalSubset:c}=this,d=e.timeExtent||this.timeExtent;if(c){let{isOutside:t,intersection:i}=(0,N.Rp)(c,{geometry:e.geometry,timeExtent:e.timeExtent,multidimensionalDefinition:this.exportImageServiceParameters.mosaicRule?.multidimensionalDefinition});if(t)throw new C.A("imagery-layer:query-visible-rasters","the request cannot be fulfilled when falling outside of the multidimensional subset");null!=i?.timeExtent&&(d=i.timeExtent)}let y=this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,d),h=e.geometry;this.version<10.91&&"extent"===h?.type&&(h=T.A.fromExtent(h));let g=this._getQueryParams({geometry:h,timeExtent:d,mosaicRule:y,rasterFunction:this.version<10.4?this.rasterFunction:null,rasterFunctions:o,pixelSize:i,returnCatalogItems:a,returnGeometry:m,raster:this.raster,maxItemCount:s?1:null});delete g.f;let f=new ft(g);try{await this._generateRasterInfo(this.rasterFunction);let i=await Lt(this.url,f,{signal:t?.signal,query:{...this.customParameters}}),s=e.outFields,o=null!=i.value&&i.value.toLowerCase().includes("nodata"),u=a&&!m&&i?.catalogItems?.features.length&&(n||!o),p=this.multidimensionalInfo&&"raster-dataset"===this.sourceType?(0,N.XU)({rasterInfo:this.rasterInfo,multidimensionalDefinition:y?.multidimensionalDefinition,timeExtent:d,multidimensionalSubset:this.multidimensionalSubset}):null;if(!u)return this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:l,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p});let c=this.objectIdField||"ObjectId",h=i.catalogItems?.features??[],g=h.map(e=>e.attributes?.[c]),w=new ii.A({objectIds:g,returnGeometry:!0,outSpatialReference:e.outSpatialReference,outFields:[c]}),v=await this.queryRasters(w);return v?.features?.length&&v.features.forEach(t=>{h.forEach(i=>{i.attributes[c]===t.attributes[c]&&t.geometry&&(i.geometry=t.geometry.clone(),null!=e.outSpatialReference&&(i.geometry.spatialReference=e.outSpatialReference))})}),this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:l,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p})}catch{throw new C.A("imagery-layer:query-visible-rasters","encountered error when querying visible rasters")}}async fetchVariableStatisticsHistograms(e,t){let i=(0,R.A)(n(this.parsedUrl)+"/statistics",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.statistics),r=(0,R.A)(n(this.parsedUrl)+"/histograms",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.histograms),s=await Promise.all([i,r]);return s[0]&&s[0].forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),{statistics:s[0]||null,histograms:s[1]||null}}getMultidimensionalSubsetVariables(e){let t=e??this.serviceRasterInfo.multidimensionalInfo;return(0,N.z2)(this.multidimensionalSubset,t)}async _fetchService(e){await this._fetchServiceInfo(e);let t=this.sourceJSON,i=null==this.serviceRasterInfo?(0,Ht.Tw)(n(this.parsedUrl),t,{signal:e,query:this._getQueryParams()}).then(e=>(this._set("serviceRasterInfo",e),this._set("multidimensionalInfo",e.multidimensionalInfo),(0,Ht.E9)(e,t),e)):Promise.resolve(this.serviceRasterInfo),r=!this.rasterInfo&&this._hasRasterFunction(this.rasterFunction)?this._generateRasterInfo(this.rasterFunction,{signal:e}):Promise.resolve(this.rasterInfo),s=this.rasterFunctionInfos?.every(e=>null!=e.functionType)?null:this._getRasterFunctionInfos();return Promise.all([i,r,s]).then(e=>{e[1]?this._set("rasterInfo",e[1]):this._set("rasterInfo",e[0]),e[2]&&(t.rasterFunctionInfos=e[2],this.setAtOrigin("rasterFunctionInfos",e[2],"service")),this.internalRenderer&&!this._isSupportedRenderer(this.internalRenderer)&&(this._set("internalRenderer",null),o.A.getLogger(this).warn("ArcGISImageService","Switching to the default renderer. Renderer applied is not valid for this Imagery Layer")),this._set("internalRenderer",this._configRenderer(this.renderer)),this.addHandles([(0,x.wB)(()=>this.rasterFunction,e=>{(this.renderer||this.symbolizer||this.popupEnabled&&this.popupTemplate)&&this._generateRasterInfo(e).then(e=>{e&&(this.rasterInfo=e)})})]);let{serviceRasterInfo:i}=this;null!=i.multidimensionalInfo&&this._updateMultidimensionalDefinition(i)})}_combineMosaicRuleWithTimeExtent(e,t){let i=this.timeInfo,{multidimensionalInfo:r}=this.serviceRasterInfo;if(null==e||null==r||null==t||null==i?.startField)return e;let{startField:s}=i,n=r.variables.some(e=>e.dimensions.some(e=>e.name===s))?s:"StdTime";if(e=e.clone(),"mosaic-dataset"===this.sourceType)return e.multidimensionalDefinition=e.multidimensionalDefinition?.filter(e=>e.dimensionName!==n),this._cleanupMultidimensionalDefinition(e);e.multidimensionalDefinition=e.multidimensionalDefinition||[];let a=e.multidimensionalDefinition.filter(e=>e.dimensionName===n),o=null==t.start?null:t.start.getTime(),l=null==t.end?null:t.end.getTime(),u=null==o||null==l||o===l,p=u?[o||l]:[[o,l]],m=this.version>=10.8;if(a.length)a.forEach(e=>{e.dimensionName===n&&(m?(e.dimensionName=null,e.isSlice=!1,e.values=[]):(e.isSlice=u,e.values=p))});else if(!m){let t=e.multidimensionalDefinition.filter(e=>null!=e.variableName&&null==e.dimensionName);t.length?t.forEach(e=>{e.dimensionName=n,e.isSlice=u,e.values=p}):e.multidimensionalDefinition.push(new E.A({variableName:"",dimensionName:n,isSlice:u,values:p}))}return this._cleanupMultidimensionalDefinition(e)}_cleanupMultidimensionalDefinition(e){return null==e?null:(e.multidimensionalDefinition&&(e.multidimensionalDefinition=e.multidimensionalDefinition.filter(e=>!(!e.variableName&&!e.dimensionName)),0===e.multidimensionalDefinition.length&&(e.multidimensionalDefinition=null)),"mosaic-dataset"!==this.sourceType&&null==e.multidimensionalDefinition?null:e)}async _prepareForQuery(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQuery)throw new C.A("imagery-layer:query-rasters","query operation is not supported on the input image service");let i=null==e?this.createQuery():(0,M.PZ)(ii.A,e);return t=this._getRequestOptions(t),this.raster&&(t.query={...t.query,raster:this.raster}),{query:i,requestOptions:t}}_isSupportedRenderer(e){let{rasterInfo:t,rasterFunction:i}=this;return"unique-value"===e.type&&this._hasRasterFunction(i)&&1===t?.bandCount&&["u8","s8"].includes(t.pixelType)||null!=t&&null!=e&&(0,we.fp)(t).includes(e.type)}async _fetchCapabilities(e){return this.capabilities||await this._fetchServiceInfo(e),this.capabilities}async _fetchServiceInfo(e){let t=this.sourceJSON;if(!t){let{data:i,ssl:r}=await(0,R.A)(n(this.parsedUrl),{query:this._getQueryParams(),signal:e});t=i,this.sourceJSON=t,r&&(this.url=this.url.replace(/^http:/i,"https:"))}if(t.capabilities?.toLowerCase().split(",").map(e=>e.trim()).indexOf("tilesonly")>-1)throw new C.A("imagery-layer:fetch-service-info","use ImageryTileLayer to open tiles-only image services");this.read(t,{origin:"service",url:this.parsedUrl})}_isMosaicDataset(e){return e.serviceSourceType?"esriImageServiceSourceTypeMosaicDataset"===e.serviceSourceType:e.fields?.length>0}_isMosaicRuleSupported(e){if(!e)return!1;let t=this._isMosaicDataset(e),i=e.currentVersion>=10.71&&e.hasMultidimensions&&!(e.fields?.length>1);return t||i}_isVectorFieldResampleFunction(e){if(null==e)return!1;let{functionName:t,functionArguments:i}=e,r="resample"===t?.toLowerCase(),s=i?.ResampleType||i?.resampleType;return r&&(7===s||10===s)}_configRenderer(e){let{rasterInfo:t}=this,i=t.attributeTable,r=null!=(0,we.VI)(i,"red")&&null!=(0,we.VI)(i,"green")&&null!=(0,we.VI)(i,"blue"),s=!e&&null==t.colormap&&!r&&(0,we.fp)(t).includes("unique-value");if(!this.isRenderedFormat&&!this.pixelFilter||this._isVectorDataSet()||s){let i=this.mosaicRule?.multidimensionalDefinition?.[0].variableName,r=(0,we.I8)({variableName:i,rasterFunctionName:this.rasterFunction?.functionName,presetRenderers:this.presetRenderers});if(!this.bandIds&&t.bandCount>=3){let e=r?.bandIds??(0,we.ci)(t);e&&(3!==t.bandCount||0!==e[0]||1!==e[1]||2!==e[2])&&(this.bandIds=e)}e||=r?.renderer??(0,we.PD)(t,{bandIds:this.bandIds,variableName:this.rasterFunction?null:i});let s=(0,we.$P)(e.toJSON());this.symbolizer?(this.symbolizer.rendererJSON=s,this.symbolizer.rasterInfo=t):this.symbolizer=new ve.A({rendererJSON:s,rasterInfo:t}),this.symbolizer.bind().success||(this.symbolizer=null)}return e}_clonePixelData(e){return null==e?e:{extent:e.extent&&e.extent.clone(),pixelBlock:null==e.pixelBlock?null:e.pixelBlock.clone()}}_getQueryParams(e){null!=e?.renderingRule&&"string"!=typeof e.renderingRule&&(e.renderingRule=this._getRenderingRuleString(e.renderingRule));let{raster:t,viewId:i}=this;return{raster:t,viewId:i,f:"json",...e,...this.customParameters}}_getRequestOptions(e){return{...e,query:{...e?.query,...this.customParameters}}}_decodePixelBlock(e,t,i){return this._rasterJobHandler?this._rasterJobHandler.decode({data:e,options:t}):(0,O.D)(e,t,i)}async _getRasterFunctionInfos(e){let t=this.sourceJSON.rasterFunctionInfos;return this.loaded||!t?.length?t:t&&this.version>=10.3?1===t.length&&"none"===t[0].name.toLowerCase()?[{thumbnail:"",functionType:0,...t[0]}]:(await(0,R.A)(n(this.parsedUrl)+"/rasterFunctionInfos",{query:this._getQueryParams(),signal:e})).data?.rasterFunctionInfos:null}_canRequestImageElement(e){return!this.pixelFilter&&(!e||e.includes("png"))}async _requestArrayBuffer(e){let{imageProps:t,requestAsImageElement:i,returnImageBitmap:r,signal:s}=e;if(i&&this._canRequestImageElement(t.format)){let i=`${n(this.parsedUrl)}/exportImage`,{data:a}=await(0,R.A)(i,{responseType:r?"blob":"image",query:this._getQueryParams({f:"image",...this.refreshParameters,...e.imageServiceParameters}),signal:s});if(a instanceof Blob){let{bitmap:e}=await(0,de.mn)(a,i,{signal:s});return{imageBitmap:e,params:t}}return{imageOrCanvasElement:a,params:t}}let a=this._initJobHandler(),o=(0,R.A)(n(this.parsedUrl)+"/exportImage",{responseType:"array-buffer",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:s}),l=(await Promise.all([o,a]))[0].data,u=t.format||"jpgpng",p=u;if("bsq"!==p&&"bip"!==p&&(p=(0,O.g)(l)),!p)throw new C.A("imagery-layer:fetch-image","unsupported format signature "+String.fromCharCode.apply(null,new Uint8Array(l)));let m={signal:s};return{pixelData:{pixelBlock:await this._decodePixelBlock(l,{width:t.width,height:t.height,format:u,applyJpegMask:!0},m),extent:t.extent},params:t}}_generateRasterInfo(e,t){return this.generateRasterInfo(e,t).catch(()=>null)}_isValidCustomizedMosaicRule(e){return e&&JSON.stringify(e.toJSON())!==JSON.stringify(this.defaultMosaicRule?.toJSON())}_updateMultidimensionalDefinition(e){if(this._isValidCustomizedMosaicRule(this.mosaicRule))return;let t=(0,N.fy)(e,{multidimensionalSubset:this.multidimensionalSubset});if(null!=t&&t.length>0){this.mosaicRule=this.mosaicRule||new ae.A;let e=this.mosaicRule.multidimensionalDefinition;!this.sourceJSON.defaultVariableName&&this.rasterFunction&&"none"!==this.rasterFunction.functionName?.toLowerCase()&&t.forEach(e=>e.variableName=""),t=t.filter(({variableName:e,dimensionName:t})=>e&&"*"!==e||t),!e?.length&&t.length&&(this.mosaicRule.multidimensionalDefinition=t)}}_processVisibleRastersResponse(e,t){t||={};let i=e.value,{templateRRFunctionNames:r,showNoDataRecords:s,returnDomainValues:n,templateFields:a}=t,o=e.processedValues,l=e.catalogItems?.features,u=e.properties?.Values?.map(e=>e.replaceAll(/ /gi,", "))||[],p=this.objectIdField||"ObjectId",m="string"==typeof i&&i.toLowerCase().includes("nodata"),c=[];if(i&&!l&&(!m||s)){let e={};e[p]=0,u=[i],l=[new v.A({geometry:this.fullExtent,attributes:e})],this.multidimensionalInfo&&"raster-dataset"===this.sourceType&&(0,ge.eS)(this.rasterFields,e,t.effectiveMultidimensionalDefinition)}if(!l)return[];this._updateResponseFieldNames(l,a),m&&!s&&(l=[]);let{itemPixelValue:d,servicePixelValue:y}=ge.F_,h=this.rasterFields.some(e=>e.name===d),g=this.graphicOrigin;for(let e=0;e<l.length;e++){let t=l[e];if(null!=i){let n=u[e],a=this.rasterFunction&&o&&o.length>0&&r&&r.length>0&&r.includes(this.rasterFunction.functionName)?o[r.indexOf(this.rasterFunction.functionName)]:i;if("nodata"===n.toLowerCase()&&!s)continue;h&&(t.attributes[d]=n),t.attributes[y]=a,this._updateFeatureWithMagDirValues(t,n);let l=this.fields&&this.fields.length>0,p=this.rasterFunction&&null!=this.serviceRasterInfo.attributeTable?l?n:i:a;this.rasterFunction||(p=l?n:i),this._updateFeatureWithRasterAttributeTableValues(t,p)}if(t.sourceLayer=t.layer=this,t.origin=g,n&&this._updateFeatureWithDomainValues(t),r&&o&&r.length===o.length)for(let e=0;e<r.length;e++){let i=`${ge.F_.servicePixelValue}.${r[e]}`;t.attributes[i]=o[e]}c.push(l[e])}return c}_processMultidimensionalIntersection(e,t,i){let{multidimensionalSubset:r}=this;if(!r)return{isOutSide:!1,timeExtent:t,mosaicRule:i=this._combineMosaicRuleWithTimeExtent(i,t)};if(r){let{isOutside:i,intersection:s}=(0,N.Rp)(r,{geometry:e,timeExtent:t});if(i)return{isOutSide:!0,timeExtent:null,mosaicRule:null};null!=s?.timeExtent&&(t=s.timeExtent)}if(i=this._combineMosaicRuleWithTimeExtent(i,t),i?.multidimensionalDefinition){let{isOutside:e}=(0,N.Rp)(r,{multidimensionalDefinition:i.multidimensionalDefinition});if(e)return{isOutSide:!0,timeExtent:null,mosaicRule:null}}return{isOutSide:!1,timeExtent:t,mosaicRule:i}}_updateFeatureWithRasterAttributeTableValues(e,t){let i=this.rasterInfo.attributeTable||this.serviceRasterInfo.attributeTable;if(null==i)return;let{features:r,fields:s}=i,n=s.map(e=>e.name).find(e=>"value"===e.toLowerCase());if(!n)return;let a=r.filter(e=>e.attributes[n]===(null==t?null:parseInt(t,10)));a&&a[0]&&s.forEach(t=>{let i=ge.ER+t.name;e.attributes[i]=a[0].attributes[t.name]})}_updateFeatureWithMagDirValues(e,t){if(!this._isVectorDataSet())return;let i=t.split(/,\s*/).map(e=>parseFloat(e)),r=i.map(e=>[e]),s=i.map(e=>({minValue:e,maxValue:e,noDataValue:null})),n=new he.A({height:1,width:1,pixelType:"f32",pixels:r,statistics:s});null!=this.pixelFilter&&this.pixelFilter({pixelBlock:n,extent:new A.A(0,0,0,0,this.spatialReference)});let a="esriImageServiceDataTypeVector-MagDir"===this.serviceDataType?[n.pixels[0][0],n.pixels[1][0]]:(0,V.Lu)([n.pixels[0][0],n.pixels[1][0]]);e.attributes[ge.F_.magnitude]=a[0],e.attributes[ge.F_.direction]=a[1]}_updateFeatureWithDomainValues(e){(this.fields&&this.fields.filter(e=>"coded-value"===e.domain?.type))?.forEach(t=>{let i=e.attributes[t.name];if(null!=i){let r=t.domain.codedValues.find(e=>e.code===i);r&&(e.attributes[t.name]=r.name)}})}_updateResponseFieldNames(e,t){if(!t||t.length<1)return;let i=this.fieldsIndex;null!=i&&e.forEach(e=>{if(e?.attributes)for(let r of t){let t=i.get(r)?.name;t&&t!==r&&(e.attributes[r]=e.attributes[t],delete e.attributes[t])}})}_getRenderingRuleString(e){if(e){let t=e.toJSON();return t=t.rasterFunctionDefinition??t,(t.thumbnail||t.thumbnailEx)&&(t.thumbnail=t.thumbnailEx=null),JSON.stringify(t)}return null}_hasRasterFunction(e){return null!=e?.functionName&&"none"!==e.functionName.toLowerCase()}_updateRenderingRulesFunctionName(e,t){if(!e||e.length<1)return;if("Raw"===e)return e.replace("Raw","None");let i=e.toLowerCase().replaceAll(/ /gi,"_");return t.has(i)?t.get(i):e}_isRFTJson(e){return e?.name&&e.arguments&&e.function&&e.hasOwnProperty("functionType")}_isVectorDataSet(){return"esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType}_applyMosaicAndRenderingRules(e){let{raster:t,mosaicRule:i,rasterFunction:r}=this;r&&null==e.rasterFunction&&(e.rasterFunction=r),i&&null==e.mosaicRule&&(e.mosaicRule=i),t&&null==e.raster&&(e.raster=t)}async _updateCurrentRasterInfo(e){if(this.renderer||this.symbolizer){let t=await this._generateRasterInfo(this.rasterFunction,{signal:e});t&&(this.rasterInfo=t)}}_applyMosaicRule(e){let{raster:t,mosaicRule:i}=this;i&&null==e.mosaicRule&&(e.mosaicRule=i),t&&null==e.raster&&(e.raster=t)}_readCapabilities(e){let t=e.capabilities?e.capabilities.toLowerCase().split(",").map(e=>e.trim()):["image","catalog"],{currentVersion:i,maxRecordCount:r}=e,s=t.includes("image"),n="esriImageServiceDataTypeElevation"===e.serviceDataType,a=!(!e.spatialReference&&!e.extent?.spatialReference),o=t.includes("edit"),l=t.includes("mensuration")&&a,u=null==e.mensurationCapabilities?[]:e.mensurationCapabilities.toLowerCase().split(",").map(e=>e.trim()),p=l&&u.includes("basic"),m=this._isMosaicDataset(e)&&t.includes("catalog"),c=t.includes("download"),d=i>=10.7&&n||i>=11.4&&(n||l&&u.includes("3d")),y=m&&e.fields&&e.fields.length>0,h=y&&e.supportsAdvancedQueries?e.advancedQueryCapabilities:void 0;return{data:{supportsAttachment:!1},operations:{supportsComputeHistograms:s,supportsExportImage:s,supportsIdentify:s,supportsImageToMap:i>=11.2&&m,supportsImageToMapMultiray:i>=11.2&&m,supportsMapToImage:i>=11.2&&m,supportsFindImages:i>=11.2&&m,supportsGetImageUrl:i>=11.3&&c,supportsMeasure:l,supportsMeasureFromImage:i>=11.2,supportsDownload:c,supportsQuery:y,supportsGetSamples:i>=10.2&&s,supportsProject:i>=10.3&&s,supportsComputeStatisticsHistograms:i>=10.4&&s,supportsQueryBoundary:i>=10.6&&s,supportsCalculateVolume:d,supportsComputePixelLocation:i>=10.7&&m,supportsComputeAngles:i>=10.91,supportsQueryGPSInfo:i>=11.2&&m,supportsAdd:o,supportsDelete:o,supportsEditing:o,supportsUpdate:o,supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsChangeTracking:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsExceedsLimitStatistics:!1,supportsQueryAnalytics:!1,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryTopFeatures:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:r,maxRecordCountFactor:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:void 0,supportsStatisticsAggregatedIds:!!h?.supportsAggregateIds,supportsStatistics:!!h?.supportsStatistics,supportsOrderBy:!!h?.supportsOrderBy,supportsDistinct:!!h?.supportsDistinct,supportsPagination:!!h?.supportsPagination,supportsPaginationOnAggregatedQueries:!!h?.supportsPaginationOnAggregatedQueries,supportsStandardizedQueriesOnly:!!h?.useStandardizedQueries,supportsPercentileStatistics:!!h?.supportsPercentileStatistics,supportsCentroid:!!h?.supportsReturningGeometryCentroid,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!!h?.supportsQueryWithDistance,supportsOutDistance:!!h?.supportsOutDistance,supportsExtent:!!h?.supportsReturningQueryExtent,supportsGeometryProperties:!!h?.supportsReturningGeometryProperties,supportsHavingClause:!!h?.supportsHavingClause,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsMaxRecordCountFactor:!1,supportsSqlExpression:h?.supportsSqlExpression??!!h,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!1,supportsCacheHint:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!!h?.supportsDefaultSR,supportsFullTextSearch:!1,supportsCompactGeometry:!1,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},mensuration:{supportsDistanceAndAngle:p,supportsAreaAndPerimeter:p,supportsPointOrCentroid:p,supportsHeightFromBaseAndTop:l&&u.includes("base-top height"),supportsHeightFromBaseAndTopShadow:l&&u.includes("base-top shadow height"),supportsHeightFromTopAndTopShadow:l&&u.includes("top-top shadow height"),supports3D:l&&u.includes("3d")}}}};function n(e){return e?.path??""}return(0,s.Cg)([(0,p.MZ)({clonable:!1})],r.prototype,"_functionRasterInfos",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"_serviceSupportsMosaicRule",void 0),(0,s.Cg)([(0,He.w)("_serviceSupportsMosaicRule",["currentVersion","fields"])],r.prototype,"readServiceSupportsMosaicRule",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"_rasterFunctionNamesIndex",null),(0,s.Cg)([(0,p.MZ)()],r.prototype,"_projectedFullExtent",void 0),(0,s.Cg)([(0,p.MZ)({clonable:!1})],r.prototype,"_exportTileQueue",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"adjustAspectRatio",void 0),(0,s.Cg)([(0,p.MZ)({type:[M.jz],json:{write:!0}})],r.prototype,"bandIds",void 0),(0,s.Cg)([(0,He.w)("bandIds")],r.prototype,"readBandIds",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],r.prototype,"capabilities",void 0),(0,s.Cg)([(0,He.w)("service","capabilities",["capabilities","currentVersion","serviceDataType"])],r.prototype,"readCapabilities",null),(0,s.Cg)([(0,p.MZ)({type:Number})],r.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,le.K)("compressionQuality")],r.prototype,"writeCompressionQuality",null),(0,s.Cg)([(0,p.MZ)({type:Number})],r.prototype,"compressionTolerance",void 0),(0,s.Cg)([(0,le.K)("compressionTolerance")],r.prototype,"writeCompressionTolerance",null),(0,s.Cg)([(0,p.MZ)({json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"defaultMosaicRule",void 0),(0,s.Cg)([(0,He.w)("defaultMosaicRule",["defaultMosaicMethod"])],r.prototype,"readDefaultMosaicRule",null),(0,s.Cg)([(0,p.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],r.prototype,"definitionExpression",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,constructOnly:!0})],r.prototype,"exportImageServiceParameters",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"rasterInfo",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:[me.A]})],r.prototype,"fields",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"fieldsIndex",null),(0,s.Cg)([(0,p.MZ)({type:["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff","bip","bsq"],json:{write:!0}})],r.prototype,"format",null),(0,s.Cg)([(0,He.w)("service","format",["serviceDataType","allowRasterFunction"])],r.prototype,"readFormat",null),(0,s.Cg)([(0,p.MZ)({type:A.A})],r.prototype,"fullExtent",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"hasMultidimensions",void 0),(0,s.Cg)([(0,p.MZ)({json:{read:{source:"maxImageHeight"}}})],r.prototype,"imageMaxHeight",void 0),(0,s.Cg)([(0,p.MZ)({json:{read:{source:"maxImageWidth"}}})],r.prototype,"imageMaxWidth",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{type:oe.SZ.jsonValues,read:oe.SZ.read,write:oe.SZ.write}})],r.prototype,"interpolation",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"minScale",void 0),(0,s.Cg)([(0,He.w)("service","minScale")],r.prototype,"readMinScale",null),(0,s.Cg)([(0,p.MZ)()],r.prototype,"maxScale",void 0),(0,s.Cg)([(0,He.w)("service","maxScale")],r.prototype,"readMaxScale",null),(0,s.Cg)([(0,p.MZ)({type:ae.A})],r.prototype,"mosaicRule",null),(0,s.Cg)([(0,He.w)("mosaicRule",["mosaicRule","defaultMosaicMethod"])],r.prototype,"readMosaicRule",null),(0,s.Cg)([(0,le.K)("mosaicRule")],r.prototype,"writeMosaicRule",null),(0,s.Cg)([(0,p.MZ)()],r.prototype,"multidimensionalInfo",void 0),(0,s.Cg)([(0,p.MZ)({type:ye.A,json:{write:!0}})],r.prototype,"multidimensionalSubset",void 0),(0,s.Cg)([(0,p.MZ)({json:{type:[Number,[Number]],write:!0}})],r.prototype,"noData",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{type:oe.hm.jsonValues,read:oe.hm.read,write:oe.hm.write}})],r.prototype,"noDataInterpretation",void 0),(0,s.Cg)([(0,p.MZ)({type:String,readOnly:!0,json:{read:{source:["fields"]}}})],r.prototype,"objectIdField",void 0),(0,s.Cg)([(0,He.w)("objectIdField")],r.prototype,"readObjectIdField",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"geometryType",void 0),(0,s.Cg)([(0,p.MZ)({})],r.prototype,"typeIdField",void 0),(0,s.Cg)([(0,p.MZ)({})],r.prototype,"types",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"parsedUrl",null),(0,s.Cg)([(0,p.MZ)({type:Function})],r.prototype,"pixelFilter",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"raster",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"sourceType",void 0),(0,s.Cg)([(0,He.w)("sourceType",["serviceSourceType","fields"])],r.prototype,"readSourceType",null),(0,s.Cg)([(0,p.MZ)()],r.prototype,"viewId",void 0),(0,s.Cg)([(0,p.MZ)({types:Re.uy})],r.prototype,"renderer",null),(0,s.Cg)([(0,p.MZ)({types:Re.uy,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:Re.Gj,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],r.prototype,"internalRenderer",null),(0,s.Cg)([(0,He.w)("internalRenderer")],r.prototype,"readRenderer",null),(0,s.Cg)([(0,le.K)("internalRenderer")],r.prototype,"writeRenderer",null),(0,s.Cg)([(0,p.MZ)({clonable:!1})],r.prototype,"symbolizer",void 0),(0,s.Cg)([(0,p.MZ)(q.ke)],r.prototype,"opacity",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"rasterFields",null),(0,s.Cg)([(0,p.MZ)({constructOnly:!0})],r.prototype,"rasterFunctionInfos",void 0),(0,s.Cg)([(0,p.MZ)({type:z.A,json:{name:"renderingRule"}})],r.prototype,"rasterFunction",null),(0,s.Cg)([(0,He.w)("rasterFunction",["renderingRule","rasterFunctionInfos"])],r.prototype,"readRasterFunction",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"serviceDataType",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:P.A})],r.prototype,"spatialReference",void 0),(0,s.Cg)([(0,He.w)("spatialReference",["spatialReference","extent"])],r.prototype,"readSpatialReference",null),(0,s.Cg)([(0,p.MZ)({type:oe.e8.apiValues,json:{read:oe.e8.read,type:oe.e8.jsonValues}})],r.prototype,"pixelType",void 0),(0,s.Cg)([(0,le.K)("pixelType")],r.prototype,"writePixelType",null),(0,s.Cg)([(0,p.MZ)({constructOnly:!0,type:fe.A})],r.prototype,"serviceRasterInfo",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,p.MZ)(q.OZ)],r.prototype,"url",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,s.Cg)([(0,He.w)("version",["currentVersion","fields","timeInfo"])],r.prototype,"readVersion",null),r=(0,s.Cg)([(0,p.$K)("esri.layers.mixins.ArcGISImageService")],r),r};var ai=i(18768),oi=i(63074),li=i(69208),ui=i(34287),pi=i(8303),mi=i(72545),ci=i(56551),di=i(54310),yi=i(25036),hi=i(82935),gi=i(91908),fi=i(24212),wi=i(30291),vi=i(88625),Ri=i(59923);let Ci=class extends((0,oi.dM)((0,hi.e)((0,yi.j)((0,ui.q)((0,pi.A)((0,ci.H)(ni((0,mi.G)((0,di.J)((0,li.d)((0,ai.b)((0,l.M)((0,a.OU)(w.A)))))))))))))){constructor(...e){super(...e),this.charts=null,this.graphicOrigin=new f(this),this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.type="imagery",this._debouncedSaveOperations=(0,u.sg)(async(e,t,r)=>{let{save:s,saveAs:n}=await i.e(9838).then(()=>i(59838));switch(e){case 0:return s(this,t);case 1:return n(this,r,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(u.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}set elevationInfo(e){"relative-to-scene"!==e?.mode&&this._set("elevationInfo",e),this._validateElevationInfo(e)}get legendEnabled(){return!this._isPreviewLayer&&(this._get("legendEnabled")??!0)}set legendEnabled(e){this._set("legendEnabled",e)}get listMode(){return this._isPreviewLayer?"hide":this._get("listMode")}set listMode(e){this._set("listMode",e)}get defaultPopupTemplate(){return this.createPopupTemplate()}get _isPreviewLayer(){return!(!this.raster||!this.url?.toLowerCase().includes("/rasterrendering/imageserver"))}createPopupTemplate(e){let{rasterFields:t}=this,i=new Set,r=ge.F_.itemPixelValue.toLowerCase(),s="raster-dataset"===this.sourceType,n=ge.Oo.toLowerCase(),a=`${ge.F_.servicePixelValue.toLowerCase()}.`;for(let e of t){let t=e.name.toLowerCase();t===r||t.startsWith(a)||s&&t.startsWith(n)||i.add(e.name)}let o=(0,wi.tn)({fields:t,title:this.title},{...e,visibleFieldNames:i}),{rasterInfo:l}=this;return o?.fieldInfos&&l&&(0,ge.h4)(o.fieldInfos,l),o}queryFeatures(e,t){return this.queryRasters(e,t).then(e=>{if(e?.features)for(let t of e.features)t.layer=t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}queryFeatureCount(e,t){return this.queryRasterCount(e,t)}redraw(){this.emit("redraw")}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,gi.D)(this,e)}write(e,t){return this._isPreviewLayer?((0,Ri.U4)(t,this,"preview layer cannot be saved"),null):super.write(e,t)}_validateElevationInfo(e){(0,fi.XF)(o.A.getLogger(this),(0,fi.$7)("Imagery layers","relative-to-scene",e)),(0,fi.XF)(o.A.getLogger(this),(0,fi.tW)("Imagery layers",e))}};(0,s.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],Ci.prototype,"charts",void 0),(0,s.Cg)([(0,p.MZ)({type:vi.A,value:null,json:{name:"layerDefinition.elevationInfo",write:!0,origins:{"portal-item":{read:!1,write:!1},"web-map":{read:!1,write:!1}}}})],Ci.prototype,"elevationInfo",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,clonable:!1})],Ci.prototype,"graphicOrigin",void 0),(0,s.Cg)([(0,p.MZ)(q.fV)],Ci.prototype,"legendEnabled",null),(0,s.Cg)([(0,p.MZ)({type:["show","hide"]})],Ci.prototype,"listMode",null),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],Ci.prototype,"isReference",void 0),(0,s.Cg)([(0,p.MZ)({type:["ArcGISImageServiceLayer"]})],Ci.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,p.MZ)(q.M6)],Ci.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,p.MZ)({type:n.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],Ci.prototype,"popupTemplate",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Ci.prototype,"defaultPopupTemplate",null),(0,s.Cg)([(0,p.MZ)(q.PY)],Ci.prototype,"screenSizePerspectiveEnabled",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],Ci.prototype,"type",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Ci.prototype,"_isPreviewLayer",null),Ci=(0,s.Cg)([(0,p.$K)("esri.layers.ImageryLayer")],Ci);const bi=Ci},18768(e,t,i){var r=i(32198),s=i(53966),n=i(91429),a=i(60694);i.d(t,["b",0,e=>{let t=e,i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){let e=(0,a.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,s.A.getLogger(this)))}};return(0,r.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,r.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],i),i}])},56551(e,t,i){i.d(t,{H:()=>m});var r=i(32198),s=i(91429),n=i(69540),a=i(25482),o=i(78888),l=i(94359),u=i(93223);let p=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.name=void 0,this.method="none",this.value=void 0,this.bandIds=void 0,this.renderer=void 0}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],p.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:["raster-function-template","variable","none"],json:{write:{isRequired:!0}}}),(0,u.e)({rasterFunctionTemplate:"raster-function-template",variable:"variable",none:"none"})],p.prototype,"method",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],p.prototype,"value",void 0),(0,r.Cg)([(0,s.MZ)({type:[o.jz],json:{write:{isRequired:!0}}})],p.prototype,"bandIds",void 0),(0,r.Cg)([(0,s.MZ)({types:l.uy,json:{write:!0,origins:{"web-scene":{types:l.Gj,write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],p.prototype,"renderer",void 0),p=(0,r.Cg)([(0,s.$K)("esri.renderers.support.RasterPresetRenderer")],p);const m=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.activePresetRendererName=null,this.presetRenderers=null}};return(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"layerDefinition.activePresetRendererName",write:{allowNull:!0}}})],i.prototype,"activePresetRendererName",void 0),(0,r.Cg)([(0,s.MZ)({type:[p],json:{name:"layerDefinition.presetRenderers",write:!0}})],i.prototype,"presetRenderers",void 0),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.RasterPresetRendererMixin")],i),i}},91908(e,t,i){i.d(t,{D:()=>n});var r=i(60694);const s=[];function n(e,t){if((0,r.Wo)(e.url??""))return!0;let{wkid:i}=t;for(let t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}s.push([10.91,()=>{let e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{let e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{let e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{let e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{let e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},82371(e,t,i){i.d(t,{E9:()=>y,Tw:()=>c,X6:()=>d});var r=i(56507),s=i(5443),n=i(86738),a=i(16930),o=i(87186),l=i(20223),u=i(2272),p=i(22671);async function m(e,t,i){let m=(0,u.Dl)(e),{rasterFunction:c,sourceJSON:d}=t||{},y=c?JSON.stringify(c.rasterFunctionDefinition||c):null,h=(0,u.lF)({...m.query,renderingRule:y,f:"json"}),g=(0,u.jV)(h,i);e=m.path;let f=d||await(0,r.A)(e,g).then(e=>e.data),{currentVersion:w}=f,v=f.hasRasterAttributeTable?(0,r.A)(`${e}/rasterAttributeTable`,g):null,R=f.hasColormap?(0,r.A)(`${e}/colormap`,g):null,C=f.hasHistograms?(0,r.A)(`${e}/histograms`,g):null,b=w>=10.3?(0,r.A)(`${e}/keyProperties`,g):null,S=f.hasMultidimensions?(0,r.A)(`${e}/multidimensionalInfo`,g):null,x=(c?w>=10.91:w>=10.81)?(0,r.A)(`${e}/statistics`,g):null,I=await Promise.allSettled([v,R,C,b,S,x]),M=s.A.fromJSON(f.extent),F=Math.ceil(M.width/f.pixelSizeX-.1),A=Math.ceil(M.height/f.pixelSizeY-.1),D=a.A.fromJSON(f.spatialReference||f.extent.spatialReference),T="fulfilled"===I[0].status?I[0].value?.data:null,P=T?.features?.length?p.A.fromJSON(T):null,j="fulfilled"===I[1].status?I[1].value?.data.colormap:null,N=j?.length?j:null,O="fulfilled"===I[2].status?I[2].value?.data.histograms:null,Z=O?.[0]?.counts?.length?O:null,_="fulfilled"===I[3].status?I[3].value?.data??{}:{},V="fulfilled"===I[4].status?I[4].value?.data.multidimensionalInfo:null,q=V?.variables?.length?V:null;var E;(E=q)&&E.variables.forEach(e=>{e.statistics?.length&&e.statistics.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),e.dimensions?.forEach(e=>{"StdTime"===e.name&&!e.recurring&&!e.unit&&(e.unit="ISO8601")})});let J=function(e,t){let i=null;t&&t.length===e.bandCount&&(i=t.map(e=>{let t=e.covariances?.trim(),i=t?t.split(",").map(Number):void 0;return{avg:e.mean,count:e.count,max:e.max,median:e.median,min:e.min,mode:e.mode,stddev:e.standardDeviation,sum:e.sum,covariances:i}}));let r=e.minValues?.length===e.bandCount?e.minValues.map((t,i)=>({min:t,max:e.maxValues[i],avg:e.meanValues[i],stddev:e.stdvValues[i]})):null;return null==r||null==i||i.some((e,t)=>e.min!==r[t]?.min||e.max!==r[t]?.max||e.avg!==r[t]?.avg||e.stddev!==r[t]?.stddev)?r:i}(f,"fulfilled"===I[5].status?I[5].value?.data.statistics:null),{defaultVariable:G,serviceDataType:$}=f;G&&G!==_.DefaultVariable&&(_.DefaultVariable=G),$?.includes("esriImageServiceDataTypeVector")&&!$.includes(_.DataType)&&(_.DataType=$.replace("esriImageServiceDataType",""));let z=f.noDataValue;f.noDataValues?.length&&f.noDataValues.some(e=>e!==z)&&(z=f.noDataValues);let L=f.transposeInfo?new l.A({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new n.A({x:f.extent.xmin,y:f.extent.ymax,spatialReference:D}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(F,A))/Math.LN2-8)),transposeInfo:f.transposeInfo}):void 0;return new o.A({width:F,height:A,bandCount:f.bandCount,extent:s.A.fromJSON(f.extent),spatialReference:D,pixelSize:new n.A({x:f.pixelSizeX,y:f.pixelSizeY,spatialReference:D}),pixelType:f.pixelType.toLowerCase(),statistics:J,attributeTable:P,colormap:N,histograms:Z,keyProperties:_,noDataValue:z,multidimensionalInfo:q,storageInfo:L})}function c(e,t,i){return m(e,{sourceJSON:t},i)}function d(e,t,i){return m(e,{rasterFunction:t},i)}function y(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},20615(e,t,i){i.d(t,{I:()=>a});var r=i(2272),s=i(80893),n=i(97552);function a(e,t,i,a){return(0,s.gW)((0,r.Dl)(e),n.A.from(t),i,a)}},74910(e,t,i){i.d(t,{L:()=>o});var r=i(5443),s=i(2272),n=i(80893),a=i(97552);async function o(e,t,i,o){let l=(0,s.Dl)(e),u=await(0,n.Jf)(l,a.A.from(t),{...i},o),p=u.extent;return!p||isNaN(p.xmin)||isNaN(p.ymin)||isNaN(p.xmax)||isNaN(p.ymax)?{count:u.count,extent:null}:{count:u.count,extent:r.A.fromJSON(p)}}},78286(e,t,i){i.d(t,{V:()=>a});var r=i(2272),s=i(80893),n=i(97552);async function a(e,t,i,a){let o=(0,r.Dl)(e),l=await(0,s.Pk)(o,n.A.from(t),i,a);return l.objectIds??function(e){if(e)return function(e){return!Array.isArray(e[0])}(e)?e:e.map(e=>JSON.stringify(e))}(l.uniqueIds)??[]}},99199(e,t,i){i.d(t,{e:()=>l,s:()=>o});var r=i(2272),s=i(80893),n=i(22671),a=i(97552);async function o(e,t,i,r){let s=await l(e,t,i,r);return n.A.fromJSON(s)}function l(e,t,i,n){let o=(0,r.Dl)(e),l={...i},u=a.A.from(t);return(0,s.eW)(o,u,u.sourceSpatialReference,l,n)}},2991(e,t,i){i.d(t,{G9:()=>u,RZ:()=>l});var r=i(39516);const s="=",n=">=",a="<=";function o(e,t,i,s){let n=s.get(e)?.type,a=s.getTimeZone(e);return`${(0,r.iA)(e)} ${t} ${(0,r.YG)(i,{type:"date"},{type:n,timeZone:a})}`}function l(e,t,i,l){if(!t||!i)return;let{startField:u,endField:p}=t,{start:m,end:c}=e;if(!m&&!c||!u&&!p)return;let d=u??p,y=p??u;if(d&&y){if(m&&c){if(m.getTime()===c.getTime())return(0,r.mA)(l,o(d,s,m,i));if(!u||!p){let e=o(d,n,m,i),t=o(d,a,c,i);return(0,r.mA)(l,(0,r.mA)(e,t))}let e=o(u,n,m,i),t=o(p,a,c,i);return(0,r.mA)(l,(0,r.mA)(e,t))}if(m)return(0,r.mA)(l,o(d,n,m,i));if(c)return(0,r.mA)(l,o(y,a,c,i))}}function u(e){let{start:t,end:i}=e;if(t||i){if(!t&&i)return`null,${i.getTime()}`;if(!i&&t)return`${t.getTime()},null`;if(i&&t)return t.getTime()===i.getTime()?`${t.getTime()}`:`${t.getTime()},${i.getTime()}`}}},2272(e,t,i){i.d(t,{Dl:()=>u,gf:()=>m,jV:()=>l,lF:()=>p});var r=i(92602),s=i(70333),n=i(4718),a=i(84952),o=i(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,a.An)(e):(0,n.o8)(e)}function p(e,t,i){let r={};for(let s in e){if("declaredClass"===s)continue;let n=e[s];if(null!=n&&"function"!=typeof n)if(Array.isArray(n))r[s]=n.map(e=>p(e));else if("object"==typeof n)if(n.toJSON){let e=n.toJSON(i?.[s]);r[s]=t?e:JSON.stringify(e)}else r[s]=t?n:JSON.stringify(n);else r[s]=n}return r}async function m(e,t,n){return function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??s.id?.findCredential(e)?.token:null}(e,t)||(!s.id&&r.A.request.useIdentity&&await Promise.all([i.e(8673),i.e(7956),i.e(7715)]).then(()=>i(50148)),(await s.id.getCredential(e,n))?.token)}},24212(e,t,i){i.d(t,{$7:()=>l,B:()=>o,M7:()=>m,XF:()=>p,tW:()=>u,w7:()=>a});var r=i(56512),s=i(86211),n=i(16271);function a(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?c:d}(e).mode}(null==e||(e.hasZ??!1),t)}function o(e,t,i){return i&&i.mode!==t?`${e} only support ${t} elevation mode`:null}function l(e,t,i){return i?.mode===t?`${e} do not support ${t} elevation mode`:null}function u(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function p(e,t){t&&e.warn(".elevationInfo=",t)}function m(e){return(e?.offset??0)*(0,n.Ao)(e?.unit)}(0,r.B)((e,t,i)=>{if(!e||"decimal-degrees"===t)return 0;let r="unknown"!==t&&t?t:"meters",n=(0,s.mq)(i);return n?(0,s.oU)(e,r,n):0});const c={mode:"absolute-height",offset:0},d={mode:"on-the-ground",offset:null}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4152],{69052(e,t,i){i.d(t,{hr:()=>o});var r=i(34727);class o{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return n(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+l(this.range,e-t,i)}minimalMonotonic(e,t,i){return n(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);let i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function n(e,t,i,r,o=0,n=!1){return(r-=o)<t?r+=l(e,t-r):r>i&&(r-=l(e,r-i)),n&&r===i&&(r=t),r+o}function l(e,t,i=0){return Math.ceil((t-i)/e)*e+i}const a=new o(0,2*Math.PI),s=(new o(-Math.PI,Math.PI),new o(0,360));i.d(t,["ie",0,s,"uC",0,a])},18370(e,t,i){i.d(t,{z:()=>o});class r{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function o(e){return new r(e)}},52039(e,t,i){i.d(t,{O7:()=>y,el:()=>p});var r=i(69052),o=(i(49186),i(18370)),n=i(17676),l=(i(5443),i(39829)),a=(i(82799),i(16930)),s=(i(80754),i(21325));async function p(e,t,i){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(i=t);let r=null;for(let t of e)r??=t?.spatialReference;if(!r)return e;let o=(0,s.Vp)(r);if(!o)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(o);return["xmin"in t?t:new l.A(t)]}let[a,p]=o.valid,y=!1;for(let t of e){if(!t)continue;if("point"===t.type){y||=t.x>=p,y||=t.x<=a;continue}let{extent:e}=t;if(null==e){y=!0;break}y||=e.xmin>=p,y||=e.xmin<=a,y||=e.xmax>=p,y||=e.xmax<=a}if(!y)return e;let[{foldInto360Range:m},c]=await(0,n.qr)(Promise.all([u.getImportPromise(),d.getImportPromise()]),i),h=c.fromSpatialReference(r);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=c.fromGeometry(e),i=c.toGeometry(m(t,h),r);return"extent"===e.type&&1===i?.rings.length?i.extent:i})}const u=(0,o.z)(()=>i.e(4144).then(()=>i(4144)).then(e=>e.load().then(()=>e))),d=(0,o.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1550)]).then(()=>i(78125)));function y(e,t,i){let r=(0,s.Vp)(i);if(null==r)return e;let[o,n]=r.valid,l=2*n,a=0,p=0;t>n?a=Math.ceil(Math.abs(t-n)/l):t<o&&(a=-Math.ceil(Math.abs(t-o)/l)),e>n?p=Math.ceil(Math.abs(e-n)/l):e<o&&(p=-Math.ceil(Math.abs(e-o)/l));let u=e+(a-p)*l,d=u-t;return d>n?u-=l:d<o&&(u+=l),u}function m(e){let t=(0,s.Vp)(e);if(null==t)return null;let[i,o]=t.valid;return new r.hr(i,o)}const c=m(a.A.WGS84);m(a.A.WebMercator),i.d(t,["Y_",0,c])},80754(e,t,i){i.d(t,{kS:()=>p,kd:()=>s});var r=i(82799),o=i(16930),n=i(60408),l=i(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function s(e,t){return Math.ceil((e-t)/(2*t))}function p(e,t){if((0,l.Ed)(e))for(let i of function(e){return(0,n.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of i){if((0,l.aO)(e)){let[i,r]=e.c;i[0]+=t,r[0]+=t;continue}if((0,l.FG)(e)){let[i,r]=e.a;i[0]+=t,r[0]+=t;continue}if((0,l.n1)(e)){let[i,r,o]=e.b;i[0]+=t,r[0]+=t,o[0]+=t;continue}e[0]+=t}for(let i of function(e){return(0,n.Bi)(e)?e.rings:e.paths}(e))for(let e of i)e[0]+=t;return e}i.d(t,["j7",0,a])},15056(e,t,i){i.r(t),i.d(t,{default:()=>W});var r=i(32198),o=i(52106),n=i(7762),l=i(49186),a=i(4718),s=i(25728),p=i(93637),u=i(67076),d=i(91429),y=i(58318),m=i(5443),c=i(99917),h=i(16930),g=i(19419),f=i(52039),w=i(21325),M=i(89808),C=i(99959);const b=Symbol("isSketchGraphicOriginSymbol");var v;class S extends C.A{get[(v=b,M.Q)](){return this.layer}constructor(e){super(),this[v]=!0,this.type="sketch",this.layer=e}get id(){return this.layer.id}}var O=i(18589),I=i(4146),x=i(33032),T=i(63074),A=i(34287),N=i(8303),j=i(25036),F=i(20437),Z=i(98809),J=i(94985),R=i(31593),z=i(53930),L=i(68249),D=i(36005),k=i(43937);function P(e){return"markup"===e.featureCollectionType||e.layers.some(e=>null!=e.layerDefinition.visibilityField||!_(e))}function _({layerDefinition:e,featureSet:t}){let i=e.geometryType??t.geometryType;return E.find(t=>i===t.geometryTypeJSON&&e.drawingInfo?.renderer?.symbol?.type===t.identifyingSymbol.type)}const G=new F.A({name:"OBJECTID",alias:"OBJECTID",type:"oid",nullable:!1,editable:!1}),K=new F.A({name:"title",alias:"Title",type:"string",nullable:!0,editable:!0,length:255}),E=[{geometryType:"polygon",geometryTypeJSON:"esriGeometryPolygon",id:"polygonLayer",layerId:0,title:"Polygons",identifyingSymbol:(new J.A).toJSON()},{geometryType:"polyline",geometryTypeJSON:"esriGeometryPolyline",id:"polylineLayer",layerId:1,title:"Polylines",identifyingSymbol:(new R.A).toJSON()},{geometryType:"multipoint",geometryTypeJSON:"esriGeometryMultipoint",id:"multipointLayer",layerId:2,title:"Multipoints",identifyingSymbol:(new z.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"pointLayer",layerId:3,title:"Points",identifyingSymbol:(new z.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"textLayer",layerId:4,title:"Text",identifyingSymbol:(new L.A).toJSON()}];let q=class extends((0,T.dM)((0,j.j)((0,A.q)((0,N.A)((0,s.M)(I.A)))))){constructor(e){super(e),this._featureCollectionMetadata=new Map,this.graphicOrigin=new S(this),this.capabilities={operations:{supportsMapNotesEditing:!0}},this.featureCollections=null,this.featureCollectionJSON=null,this.featureCollectionType="notes",this.graphics=new Z.Y,this.legendEnabled=!1,this.listMode="show",this.minScale=0,this.maxScale=0,this.spatialReference=h.A.WGS84,this.title="Sketch",this.type="sketch",this.visibilityMode="inherited"}initialize(){for(let e of this.graphics)e.sourceLayer=this,e.origin=this.graphicOrigin;this.addHandles([this.graphics.on("after-add",({item:e})=>{e.sourceLayer=this,e.origin=this.graphicOrigin}),this.graphics.on("after-remove",({item:e})=>{e.sourceLayer===this&&(e.sourceLayer=null),e.origin===this.graphicOrigin&&(e.origin=null)})])}destroy(){for(let e of this.graphics)e.sourceLayer===this&&(e.sourceLayer=null),e.origin===this.graphicOrigin&&(e.origin=null);this.graphics.removeAll(),this.graphics.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}readCapabilities(e,t,i){return{operations:{supportsMapNotesEditing:!P(t)&&"portal-item"!==i?.origin}}}readFeatureCollections(e,t,i){if(!P(t))return null;let r=t.layers.map(e=>{let t=new O.default;return t.read(e,i),t});return new n.A({items:r})}readLegacyfeatureCollectionJSON(e,t){return P(t)?(0,a.o8)(t.featureCollection):null}get fullExtent(){let e=this.spatialReference,t=(0,g.Ie)();return null==this.featureCollectionJSON?this.graphics.forEach(i=>{let r=null==i.geometry?null:(0,c.projectOrLoad)(i.geometry,e).geometry;null!=r&&(0,g.fT)(t,"point"===r.type?r:r.extent,t)}):this.featureCollectionJSON.layers.forEach(i=>{let r=(0,c.projectOrLoad)(i.layerDefinition.extent,e).geometry;null!=r&&(0,g.fT)(t,r,t)}),(0,g.aI)(t,g.qv)?(0,c.projectOrLoad)(new m.A({xmin:-180,ymin:-90,xmax:180,ymax:90}),e).geometry:(0,g.w1)(t,e)}readGraphics(e,t){if(this._featureCollectionMetadata.clear(),P(t))return[];let i=new Map,r=t.layers.reduce((e,t)=>Math.max(e,t.layerDefinition.id??-1),-1)+1;for(let e of t.layers){let t=_(e);if(null==t)continue;this._featureCollectionMetadata.has(t.id)||this._featureCollectionMetadata.set(t.id,{layerId:e.layerDefinition.id??r++,title:e.layerDefinition.name??t.title});let o=i.get(t.id)??[];o.push(e),i.set(t.id,o)}let n=[];for(let e of E)for(let t of i.get(e.id)??[])for(let{geometry:e,symbol:i,attributes:r,popupInfo:l}of t.featureSet.features)n.push(o.A.fromJSON({attributes:r,geometry:e,symbol:i,popupTemplate:l}));return n}writeGraphics(e,t,i,r){if(!this.capabilities.operations.supportsMapNotesEditing)return void(e.length>0&&r?.messages?.push(new l.A("sketch-layer:editing-not-supported","New graphics cannot be added to this layer")));let o=this.spatialReference.toJSON();for(let t of e)if(null!=t.geometry){o=t.geometry.spatialReference.toJSON();break}let n=new Map(E.map(e=>[e.id,[]]));for(let t of e){let{geometry:e}=t;if(null==e)continue;let i=E.find(i=>i.geometryType===e.type&&("point"!==e.type||"textLayer"===i.id==("text"===t.symbol?.type)));null!=i?this._writeMapNote(n.get(i.id),t,i.geometryType,r):r?.messages?.push(new u.A("sketch-layer:invalid-geometry-type",`Geometry "${e.type}" cannot be saved`,{graphic:t}))}let a=[],s=new Set,d=Math.max(4,...Array.from(this._featureCollectionMetadata.values(),({layerId:e})=>e))+1;for(let e of E){let t=this._featureCollectionMetadata.get(e.id),i=t?.layerId??e.layerId;s.has(i)&&(i=d++),s.add(i),this._writeFeatureCollection(a,n.get(e.id),e,t?.title??e.title,i,this.minScale,this.maxScale,o)}(0,p.sM)("featureCollection.layers",a,t)}readMinScale(e,t){for(let e of t.layers)if(null!=e.layerDefinition.minScale)return e.layerDefinition.minScale;return 0}readMaxScale(e,t){for(let e of t.layers)if(null!=e.layerDefinition.maxScale)return e.layerDefinition.maxScale;return 0}readSpatialReference(e,t){return t.layers.length?h.A.fromJSON(t.layers[0].layerDefinition.spatialReference):h.A.WGS84}add(e){return this.graphics.add(e),this}remove(e){this.graphics.remove(e)}graphicChanged(e){this.emit("graphic-update",e)}read(e,t){"featureCollection"in e&&(e=(0,a.o8)(e),Object.assign(e,e.featureCollection)),super.read(e,t)}async updateFrom(e){if(!this.capabilities.operations.supportsMapNotesEditing)return;let t=e.view.spatialReference,i=[];for(let e of this.graphics)if(null!=e.geometry){let r=e.geometry;(0,w.aI)(r.spatialReference,t)||(!(0,c.canProjectWithoutEngine)(r.spatialReference,t)&&!(0,c.isLoaded)()&&await(0,c.load)(),e.geometry=(0,c.project)(r,t)),i.push(e)}let r=await(0,f.el)(i.map(e=>e.geometry));i.forEach((e,t)=>e.geometry=r[t])}_writeFeatureCollection(e,t,i,r,o,n,l,s){this._normalizeObjectIds(t,G),e.push({layerDefinition:{name:r,drawingInfo:{renderer:{type:"simple",symbol:(0,a.o8)(i.identifyingSymbol)}},id:o,geometryType:i.geometryTypeJSON,minScale:n,maxScale:l,objectIdField:"OBJECTID",fields:[G.toJSON(),K.toJSON()],spatialReference:s},featureSet:{features:t,geometryType:i.geometryTypeJSON}})}_writeMapNote(e,t,i,r){if(null==t)return;let{geometry:o,symbol:n,popupTemplate:l}=t;if(null==o)return;if(o.type!==i)return void r?.messages?.push(new u.A("sketch-layer:invalid-geometry-type",`Geometry "${o.type}" cannot be saved in "${i}" layer`,{graphic:t}));if(null==n)return void r?.messages?.push(new u.A("sketch-layer:no-symbol","Skipping graphic with no symbol",{graphic:t}));let a={attributes:{...t.attributes},geometry:o.toJSON(),symbol:n.toJSON()};null!=l&&(a.popupInfo=l.toJSON()),e.push(a)}_normalizeObjectIds(e,t){let i=t.name,r=(0,x.H)(i,e)+1,o=new Set;for(let t of e){t.attributes||={};let{attributes:e}=t;(null==e[i]||o.has(e[i]))&&(e[i]=r++),o.add(e[i])}}};(0,r.Cg)([(0,d.MZ)({readOnly:!0})],q.prototype,"capabilities",void 0),(0,r.Cg)([(0,D.w)(["portal-item","web-map"],"capabilities",["layers"])],q.prototype,"readCapabilities",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],q.prototype,"featureCollections",void 0),(0,r.Cg)([(0,D.w)(["web-map","portal-item"],"featureCollections",["layers"])],q.prototype,"readFeatureCollections",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{enabled:!0,target:"featureCollection"}}}}})],q.prototype,"featureCollectionJSON",void 0),(0,r.Cg)([(0,D.w)(["web-map","portal-item"],"featureCollectionJSON",["featureCollection"])],q.prototype,"readLegacyfeatureCollectionJSON",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!0,write:{enabled:!0,ignoreOrigin:!0}}})],q.prototype,"featureCollectionType",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],q.prototype,"fullExtent",null),(0,r.Cg)([(0,d.MZ)({...(0,y.C)(Z.Y,"graphics"),json:{origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],q.prototype,"graphics",void 0),(0,r.Cg)([(0,D.w)("web-map","graphics",["layers"])],q.prototype,"readGraphics",null),(0,r.Cg)([(0,k.K)("web-map","graphics")],q.prototype,"writeGraphics",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{target:"featureCollection.showLegend",overridePolicy(){return{enabled:null!=this.featureCollectionJSON}}}}}}})],q.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:["show","hide"]})],q.prototype,"listMode",void 0),(0,r.Cg)([(0,d.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],q.prototype,"minScale",void 0),(0,r.Cg)([(0,D.w)(["web-map","portal-item"],"minScale",["layers"])],q.prototype,"readMinScale",null),(0,r.Cg)([(0,d.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],q.prototype,"maxScale",void 0),(0,r.Cg)([(0,D.w)(["web-map","portal-item"],"maxScale",["layers"])],q.prototype,"readMaxScale",null),(0,r.Cg)([(0,d.MZ)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],q.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,d.MZ)({type:h.A})],q.prototype,"spatialReference",void 0),(0,r.Cg)([(0,D.w)(["web-map","portal-item"],"spatialReference",["layers"])],q.prototype,"readSpatialReference",null),(0,r.Cg)([(0,d.MZ)()],q.prototype,"title",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],q.prototype,"type",void 0),q=(0,r.Cg)([(0,d.$K)("esri.layers.SketchLayer")],q);const W=q},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let i=[];for(let r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function o(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>o})},33032(e,t,i){function r(e,t){let i=0;for(let r of t){let t=r.attributes?.[e];"number"==typeof t&&isFinite(t)&&(i=Math.max(i,t))}return i}i.d(t,{H:()=>r})},52136(e,t,i){var r=i(32198),o=i(91429);i.d(t,["p",0,e=>{let t=e,i=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,r.Cg)([(0,o.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},28032(e,t,i){i.d(t,{A:()=>s});var r=i(32198),o=i(69540),n=i(25482),l=i(91429),a=i(56400);let s=class extends((0,o.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,r.Cg)([(0,l.MZ)()],s.prototype,"creatorField",void 0),(0,r.Cg)([(0,l.MZ)()],s.prototype,"creationDateField",void 0),(0,r.Cg)([(0,l.MZ)()],s.prototype,"editorField",void 0),(0,r.Cg)([(0,l.MZ)()],s.prototype,"editDateField",void 0),(0,r.Cg)([(0,l.MZ)()],s.prototype,"realm",void 0),(0,r.Cg)([(0,l.MZ)((0,a.P6)("dateFieldsTimeReference",!0))],s.prototype,"timeZone",void 0),s=(0,r.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],s)},33143(e,t,i){i.d(t,{A:()=>d});var r=i(32198),o=i(69540),n=i(25482),l=i(91429),a=i(8631),s=i(29005),p=i(36005),u=i(43937);let d=class extends((0,o.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 i of Object.keys(e))t[i]=(0,a.r)(e[i]);return t}writeDomains(e,t){let i={};for(let t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,r.Cg)([(0,p.w)("domains")],d.prototype,"readDomains",null),(0,r.Cg)([(0,u.K)("domains")],d.prototype,"writeDomains",null),(0,r.Cg)([(0,l.MZ)({type:[s.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,r.Cg)([(0,l.$K)("esri.layers.support.FeatureType")],d)},37352(e,t,i){i.d(t,{A:()=>s});var r,o=i(32198),n=i(7762),l=i(25482),a=i(91429);let s=r=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],s.prototype,"floorField",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],s.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],s.prototype,"viewAllLevelIds",void 0),s=r=(0,o.Cg)([(0,a.$K)("esri.layers.support.LayerFloorInfo")],s)},45067(e,t,i){i.d(t,{A:()=>u});var r=i(32198),o=i(69540),n=i(66552),l=i(25482),a=i(91429);const s=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,o.OU)(l.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,r.Cg)([(0,a.MZ)({json:{read:s.read,write:s.write}})],u.prototype,"cardinality",void 0),(0,r.Cg)([(0,a.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:p.read,write:p.write}})],u.prototype,"role",void 0),u=(0,r.Cg)([(0,a.$K)("esri.layers.support.Relationship")],u)},41366(e,t,i){var r=i(32198),o=i(66552),n=i(53966),l=i(91429),a=i(93223);const s=(0,o.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",u="field";i.d(t,["K",0,e=>{let t=e,i=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,i=null!=this.normalizationTotal;return t||i?(e=t&&u||i&&p||null,t&&i&&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,r.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,a.e)(s,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i},"Q",0,s])}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1630],{69052(e,t,i){i.d(t,{hr:()=>o});var r=i(34727);class o{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return n(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+l(this.range,e-t,i)}minimalMonotonic(e,t,i){return n(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);let i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function n(e,t,i,r,o=0,n=!1){return(r-=o)<t?r+=l(e,t-r):r>i&&(r-=l(e,r-i)),n&&r===i&&(r=t),r+o}function l(e,t,i=0){return Math.ceil((t-i)/e)*e+i}const a=new o(0,2*Math.PI),s=(new o(-Math.PI,Math.PI),new o(0,360));i.d(t,["ie",0,s,"uC",0,a])},18370(e,t,i){i.d(t,{z:()=>o});class r{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function o(e){return new r(e)}},52039(e,t,i){i.d(t,{O7:()=>y,el:()=>p});var r=i(69052),o=(i(49186),i(18370)),n=i(17676),l=(i(5443),i(39829)),a=(i(82799),i(16930)),s=(i(80754),i(21325));async function p(e,t,i){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(i=t);let r=null;for(let t of e)r??=t?.spatialReference;if(!r)return e;let o=(0,s.Vp)(r);if(!o)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(o);return["xmin"in t?t:new l.A(t)]}let[a,p]=o.valid,y=!1;for(let t of e){if(!t)continue;if("point"===t.type){y||=t.x>=p,y||=t.x<=a;continue}let{extent:e}=t;if(null==e){y=!0;break}y||=e.xmin>=p,y||=e.xmin<=a,y||=e.xmax>=p,y||=e.xmax<=a}if(!y)return e;let[{foldInto360Range:m},c]=await(0,n.qr)(Promise.all([u.getImportPromise(),d.getImportPromise()]),i),h=c.fromSpatialReference(r);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=c.fromGeometry(e),i=c.toGeometry(m(t,h),r);return"extent"===e.type&&1===i?.rings.length?i.extent:i})}const u=(0,o.z)(()=>i.e(4144).then(()=>i(4144)).then(e=>e.load().then(()=>e))),d=(0,o.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1550)]).then(()=>i(78125)));function y(e,t,i){let r=(0,s.Vp)(i);if(null==r)return e;let[o,n]=r.valid,l=2*n,a=0,p=0;t>n?a=Math.ceil(Math.abs(t-n)/l):t<o&&(a=-Math.ceil(Math.abs(t-o)/l)),e>n?p=Math.ceil(Math.abs(e-n)/l):e<o&&(p=-Math.ceil(Math.abs(e-o)/l));let u=e+(a-p)*l,d=u-t;return d>n?u-=l:d<o&&(u+=l),u}function m(e){let t=(0,s.Vp)(e);if(null==t)return null;let[i,o]=t.valid;return new r.hr(i,o)}const c=m(a.A.WGS84);m(a.A.WebMercator),i.d(t,["Y_",0,c])},80754(e,t,i){i.d(t,{kS:()=>p,kd:()=>s});var r=i(82799),o=i(16930),n=i(60408),l=i(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function s(e,t){return Math.ceil((e-t)/(2*t))}function p(e,t){if((0,l.Ed)(e))for(let i of function(e){return(0,n.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of i){if((0,l.aO)(e)){let[i,r]=e.c;i[0]+=t,r[0]+=t;continue}if((0,l.FG)(e)){let[i,r]=e.a;i[0]+=t,r[0]+=t;continue}if((0,l.n1)(e)){let[i,r,o]=e.b;i[0]+=t,r[0]+=t,o[0]+=t;continue}e[0]+=t}for(let i of function(e){return(0,n.Bi)(e)?e.rings:e.paths}(e))for(let e of i)e[0]+=t;return e}i.d(t,["j7",0,a])},15056(e,t,i){i.r(t),i.d(t,{default:()=>q});var r=i(32198),o=i(52106),n=i(7762),l=i(49186),a=i(4718),s=i(25728),p=i(93637),u=i(67076),d=i(91429),y=i(58318),m=i(5443),c=i(99917),h=i(16930),g=i(19419),f=i(52039),w=i(21325),M=i(89808),C=i(99959);const b=Symbol("isSketchGraphicOriginSymbol");var v;class S extends C.A{get[(v=b,M.Q)](){return this.layer}constructor(e){super(),this[v]=!0,this.type="sketch",this.layer=e}get id(){return this.layer.id}}var O=i(18589),T=i(4146),A=i(33032),I=i(63074),x=i(34287),N=i(8303),F=i(25036),Z=i(20437),j=i(98809),J=i(94985),R=i(31593),z=i(53930),L=i(68249),D=i(36005),k=i(43937);function G(e){return"markup"===e.featureCollectionType||e.layers.some(e=>null!=e.layerDefinition.visibilityField||!P(e))}function P({layerDefinition:e,featureSet:t}){let i=e.geometryType??t.geometryType;return E.find(t=>i===t.geometryTypeJSON&&e.drawingInfo?.renderer?.symbol?.type===t.identifyingSymbol.type)}const _=new Z.A({name:"OBJECTID",alias:"OBJECTID",type:"oid",nullable:!1,editable:!1}),K=new Z.A({name:"title",alias:"Title",type:"string",nullable:!0,editable:!0,length:255}),E=[{geometryType:"polygon",geometryTypeJSON:"esriGeometryPolygon",id:"polygonLayer",layerId:0,title:"Polygons",identifyingSymbol:(new J.A).toJSON()},{geometryType:"polyline",geometryTypeJSON:"esriGeometryPolyline",id:"polylineLayer",layerId:1,title:"Polylines",identifyingSymbol:(new R.A).toJSON()},{geometryType:"multipoint",geometryTypeJSON:"esriGeometryMultipoint",id:"multipointLayer",layerId:2,title:"Multipoints",identifyingSymbol:(new z.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"pointLayer",layerId:3,title:"Points",identifyingSymbol:(new z.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"textLayer",layerId:4,title:"Text",identifyingSymbol:(new L.A).toJSON()}];let $=class extends((0,I.dM)((0,F.j)((0,x.q)((0,N.A)((0,s.M)(T.A)))))){constructor(e){super(e),this._featureCollectionMetadata=new Map,this.graphicOrigin=new S(this),this.capabilities={operations:{supportsMapNotesEditing:!0}},this.featureCollections=null,this.featureCollectionJSON=null,this.featureCollectionType="notes",this.graphics=new j.Y,this.legendEnabled=!1,this.listMode="show",this.minScale=0,this.maxScale=0,this.spatialReference=h.A.WGS84,this.title="Sketch",this.type="sketch",this.visibilityMode="inherited"}initialize(){for(let e of this.graphics)e.sourceLayer=this,e.origin=this.graphicOrigin;this.addHandles([this.graphics.on("after-add",({item:e})=>{e.sourceLayer=this,e.origin=this.graphicOrigin}),this.graphics.on("after-remove",({item:e})=>{e.sourceLayer===this&&(e.sourceLayer=null),e.origin===this.graphicOrigin&&(e.origin=null)})])}destroy(){for(let e of this.graphics)e.sourceLayer===this&&(e.sourceLayer=null),e.origin===this.graphicOrigin&&(e.origin=null);this.graphics.removeAll(),this.graphics.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}readCapabilities(e,t,i){return{operations:{supportsMapNotesEditing:!G(t)&&"portal-item"!==i?.origin}}}readFeatureCollections(e,t,i){if(!G(t))return null;let r=t.layers.map(e=>{let t=new O.default;return t.read(e,i),t});return new n.A({items:r})}readLegacyfeatureCollectionJSON(e,t){return G(t)?(0,a.o8)(t.featureCollection):null}get fullExtent(){let e=this.spatialReference,t=(0,g.Ie)();return null==this.featureCollectionJSON?this.graphics.forEach(i=>{let r=null==i.geometry?null:(0,c.projectOrLoad)(i.geometry,e).geometry;null!=r&&(0,g.fT)(t,"point"===r.type?r:r.extent,t)}):this.featureCollectionJSON.layers.forEach(i=>{let r=(0,c.projectOrLoad)(i.layerDefinition.extent,e).geometry;null!=r&&(0,g.fT)(t,r,t)}),(0,g.aI)(t,g.qv)?(0,c.projectOrLoad)(new m.A({xmin:-180,ymin:-90,xmax:180,ymax:90}),e).geometry:(0,g.w1)(t,e)}readGraphics(e,t){if(this._featureCollectionMetadata.clear(),G(t))return[];let i=new Map,r=t.layers.reduce((e,t)=>Math.max(e,t.layerDefinition.id??-1),-1)+1;for(let e of t.layers){let t=P(e);if(null==t)continue;this._featureCollectionMetadata.has(t.id)||this._featureCollectionMetadata.set(t.id,{layerId:e.layerDefinition.id??r++,title:e.layerDefinition.name??t.title});let o=i.get(t.id)??[];o.push(e),i.set(t.id,o)}let n=[];for(let e of E)for(let t of i.get(e.id)??[])for(let{geometry:e,symbol:i,attributes:r,popupInfo:l}of t.featureSet.features)n.push(o.A.fromJSON({attributes:r,geometry:e,symbol:i,popupTemplate:l}));return n}writeGraphics(e,t,i,r){if(!this.capabilities.operations.supportsMapNotesEditing)return void(e.length>0&&r?.messages?.push(new l.A("sketch-layer:editing-not-supported","New graphics cannot be added to this layer")));let o=this.spatialReference.toJSON();for(let t of e)if(null!=t.geometry){o=t.geometry.spatialReference.toJSON();break}let n=new Map(E.map(e=>[e.id,[]]));for(let t of e){let{geometry:e}=t;if(null==e)continue;let i=E.find(i=>i.geometryType===e.type&&("point"!==e.type||"textLayer"===i.id==("text"===t.symbol?.type)));null!=i?this._writeMapNote(n.get(i.id),t,i.geometryType,r):r?.messages?.push(new u.A("sketch-layer:invalid-geometry-type",`Geometry "${e.type}" cannot be saved`,{graphic:t}))}let a=[],s=new Set,d=Math.max(4,...Array.from(this._featureCollectionMetadata.values(),({layerId:e})=>e))+1;for(let e of E){let t=this._featureCollectionMetadata.get(e.id),i=t?.layerId??e.layerId;s.has(i)&&(i=d++),s.add(i),this._writeFeatureCollection(a,n.get(e.id),e,t?.title??e.title,i,this.minScale,this.maxScale,o)}(0,p.sM)("featureCollection.layers",a,t)}readMinScale(e,t){for(let e of t.layers)if(null!=e.layerDefinition.minScale)return e.layerDefinition.minScale;return 0}readMaxScale(e,t){for(let e of t.layers)if(null!=e.layerDefinition.maxScale)return e.layerDefinition.maxScale;return 0}readSpatialReference(e,t){return t.layers.length?h.A.fromJSON(t.layers[0].layerDefinition.spatialReference):h.A.WGS84}add(e){return this.graphics.add(e),this}remove(e){this.graphics.remove(e)}graphicChanged(e){this.emit("graphic-update",e)}read(e,t){"featureCollection"in e&&(e=(0,a.o8)(e),Object.assign(e,e.featureCollection)),super.read(e,t)}async updateFrom(e){if(!this.capabilities.operations.supportsMapNotesEditing)return;let t=e.view.spatialReference,i=[];for(let e of this.graphics)if(null!=e.geometry){let r=e.geometry;(0,w.aI)(r.spatialReference,t)||(!(0,c.canProjectWithoutEngine)(r.spatialReference,t)&&!(0,c.isLoaded)()&&await(0,c.load)(),e.geometry=(0,c.project)(r,t)),i.push(e)}let r=await(0,f.el)(i.map(e=>e.geometry));i.forEach((e,t)=>e.geometry=r[t])}_writeFeatureCollection(e,t,i,r,o,n,l,s){this._normalizeObjectIds(t,_),e.push({layerDefinition:{name:r,drawingInfo:{renderer:{type:"simple",symbol:(0,a.o8)(i.identifyingSymbol)}},id:o,geometryType:i.geometryTypeJSON,minScale:n,maxScale:l,objectIdField:"OBJECTID",fields:[_.toJSON(),K.toJSON()],spatialReference:s},featureSet:{features:t,geometryType:i.geometryTypeJSON}})}_writeMapNote(e,t,i,r){if(null==t)return;let{geometry:o,symbol:n,popupTemplate:l}=t;if(null==o)return;if(o.type!==i)return void r?.messages?.push(new u.A("sketch-layer:invalid-geometry-type",`Geometry "${o.type}" cannot be saved in "${i}" layer`,{graphic:t}));if(null==n)return void r?.messages?.push(new u.A("sketch-layer:no-symbol","Skipping graphic with no symbol",{graphic:t}));let a={attributes:{...t.attributes},geometry:o.toJSON(),symbol:n.toJSON()};null!=l&&(a.popupInfo=l.toJSON()),e.push(a)}_normalizeObjectIds(e,t){let i=t.name,r=(0,A.H)(i,e)+1,o=new Set;for(let t of e){t.attributes||={};let{attributes:e}=t;(null==e[i]||o.has(e[i]))&&(e[i]=r++),o.add(e[i])}}};(0,r.Cg)([(0,d.MZ)({readOnly:!0})],$.prototype,"capabilities",void 0),(0,r.Cg)([(0,D.w)(["portal-item","web-map"],"capabilities",["layers"])],$.prototype,"readCapabilities",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],$.prototype,"featureCollections",void 0),(0,r.Cg)([(0,D.w)(["web-map","portal-item"],"featureCollections",["layers"])],$.prototype,"readFeatureCollections",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{enabled:!0,target:"featureCollection"}}}}})],$.prototype,"featureCollectionJSON",void 0),(0,r.Cg)([(0,D.w)(["web-map","portal-item"],"featureCollectionJSON",["featureCollection"])],$.prototype,"readLegacyfeatureCollectionJSON",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!0,write:{enabled:!0,ignoreOrigin:!0}}})],$.prototype,"featureCollectionType",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],$.prototype,"fullExtent",null),(0,r.Cg)([(0,d.MZ)({...(0,y.C)(j.Y,"graphics"),json:{origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],$.prototype,"graphics",void 0),(0,r.Cg)([(0,D.w)("web-map","graphics",["layers"])],$.prototype,"readGraphics",null),(0,r.Cg)([(0,k.K)("web-map","graphics")],$.prototype,"writeGraphics",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{target:"featureCollection.showLegend",overridePolicy(){return{enabled:null!=this.featureCollectionJSON}}}}}}})],$.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:["show","hide"]})],$.prototype,"listMode",void 0),(0,r.Cg)([(0,d.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],$.prototype,"minScale",void 0),(0,r.Cg)([(0,D.w)(["web-map","portal-item"],"minScale",["layers"])],$.prototype,"readMinScale",null),(0,r.Cg)([(0,d.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],$.prototype,"maxScale",void 0),(0,r.Cg)([(0,D.w)(["web-map","portal-item"],"maxScale",["layers"])],$.prototype,"readMaxScale",null),(0,r.Cg)([(0,d.MZ)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],$.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,d.MZ)({type:h.A})],$.prototype,"spatialReference",void 0),(0,r.Cg)([(0,D.w)(["web-map","portal-item"],"spatialReference",["layers"])],$.prototype,"readSpatialReference",null),(0,r.Cg)([(0,d.MZ)()],$.prototype,"title",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],$.prototype,"type",void 0),$=(0,r.Cg)([(0,d.$K)("esri.layers.SketchLayer")],$);const q=$},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let i=[];for(let r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function o(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>o})},33032(e,t,i){function r(e,t){let i=0;for(let r of t){let t=r.attributes?.[e];"number"==typeof t&&isFinite(t)&&(i=Math.max(i,t))}return i}i.d(t,{H:()=>r})},52136(e,t,i){var r=i(32198),o=i(91429);i.d(t,["p",0,e=>{let t=e,i=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,r.Cg)([(0,o.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},28032(e,t,i){i.d(t,{A:()=>s});var r=i(32198),o=i(69540),n=i(25482),l=i(91429),a=i(56400);let s=class extends((0,o.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,r.Cg)([(0,l.MZ)()],s.prototype,"creatorField",void 0),(0,r.Cg)([(0,l.MZ)()],s.prototype,"creationDateField",void 0),(0,r.Cg)([(0,l.MZ)()],s.prototype,"editorField",void 0),(0,r.Cg)([(0,l.MZ)()],s.prototype,"editDateField",void 0),(0,r.Cg)([(0,l.MZ)()],s.prototype,"realm",void 0),(0,r.Cg)([(0,l.MZ)((0,a.P6)("dateFieldsTimeReference",!0))],s.prototype,"timeZone",void 0),s=(0,r.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],s)},33143(e,t,i){i.d(t,{A:()=>d});var r=i(32198),o=i(69540),n=i(25482),l=i(91429),a=i(8631),s=i(29005),p=i(36005),u=i(43937);let d=class extends((0,o.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 i of Object.keys(e))t[i]=(0,a.r)(e[i]);return t}writeDomains(e,t){let i={};for(let t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,r.Cg)([(0,p.w)("domains")],d.prototype,"readDomains",null),(0,r.Cg)([(0,u.K)("domains")],d.prototype,"writeDomains",null),(0,r.Cg)([(0,l.MZ)({type:[s.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,r.Cg)([(0,l.$K)("esri.layers.support.FeatureType")],d)},37352(e,t,i){i.d(t,{A:()=>s});var r,o=i(32198),n=i(7762),l=i(25482),a=i(91429);let s=r=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],s.prototype,"floorField",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],s.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],s.prototype,"viewAllLevelIds",void 0),s=r=(0,o.Cg)([(0,a.$K)("esri.layers.support.LayerFloorInfo")],s)},45067(e,t,i){i.d(t,{A:()=>u});var r=i(32198),o=i(69540),n=i(66552),l=i(25482),a=i(91429);const s=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,o.OU)(l.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,r.Cg)([(0,a.MZ)({json:{read:s.read,write:s.write}})],u.prototype,"cardinality",void 0),(0,r.Cg)([(0,a.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:p.read,write:p.write}})],u.prototype,"role",void 0),u=(0,r.Cg)([(0,a.$K)("esri.layers.support.Relationship")],u)},41366(e,t,i){var r=i(32198),o=i(66552),n=i(53966),l=i(91429),a=i(93223);const s=(0,o.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",u="field";i.d(t,["K",0,e=>{let t=e,i=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,i=null!=this.normalizationTotal;return t||i?(e=t&&u||i&&p||null,t&&i&&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,r.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,a.e)(s,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i},"Q",0,s])},2991(e,t,i){i.d(t,{G9:()=>p,RZ:()=>s});var r=i(39516);const o="=",n=">=",l="<=";function a(e,t,i,o){let n=o.get(e)?.type,l=o.getTimeZone(e);return`${(0,r.iA)(e)} ${t} ${(0,r.YG)(i,{type:"date"},{type:n,timeZone:l})}`}function s(e,t,i,s){if(!t||!i)return;let{startField:p,endField:u}=t,{start:d,end:y}=e;if(!d&&!y||!p&&!u)return;let m=p??u,c=u??p;if(m&&c){if(d&&y){if(d.getTime()===y.getTime())return(0,r.mA)(s,a(m,o,d,i));if(!p||!u){let e=a(m,n,d,i),t=a(m,l,y,i);return(0,r.mA)(s,(0,r.mA)(e,t))}let e=a(p,n,d,i),t=a(u,l,y,i);return(0,r.mA)(s,(0,r.mA)(e,t))}if(d)return(0,r.mA)(s,a(m,n,d,i));if(y)return(0,r.mA)(s,a(c,l,y,i))}}function p(e){let{start:t,end:i}=e;if(t||i){if(!t&&i)return`null,${i.getTime()}`;if(!i&&t)return`${t.getTime()},null`;if(i&&t)return t.getTime()===i.getTime()?`${t.getTime()}`:`${t.getTime()},${i.getTime()}`}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3103,6956,7745],{31464(e,t,r){r.d(t,{Cv:()=>m,Nk:()=>d,lK:()=>f});var i=r(4576),n=r(99917),s=r(60408),a=r(21325),o=r(28735);const l=[0,0];function u(e,t){let r=(0,a.K8)(e)?o.je:o.tD;if((0,s.fT)(t)){let e={x:0,y:0};return[e.x,e.y]=r(t.x,t.y,l),null!=t.z&&(e.z=t.z),null!=t.m&&(e.m=t.m),e}if((0,s.ZC)(t)){let e={xmin:0,ymin:0,xmax:0,ymax:0};return[e.xmin,e.ymin]=r(t.xmin,t.ymin,l),[e.xmax,e.ymax]=r(t.xmax,t.ymax,l),t.hasZ&&(e.zmin=t.zmin,e.zmax=t.zmax,e.hasZ=!0),t.hasM&&(e.mmin=t.mmin,e.mmax=t.mmax,e.hasM=!0),e}if((0,s.Bi)(t))return{rings:p(t.rings,r),hasM:t.hasM,hasZ:t.hasZ};if((0,s.Rg)(t))return{paths:p(t.paths,r),hasM:t.hasM,hasZ:t.hasZ};if((0,s.U9)(t))return{points:y(t.points,r),hasM:t.hasM,hasZ:t.hasZ};throw Error()}function p(e,t){let r=[];for(let i of e)r.push(y(i,t));return r}function y(e,t){let r=[];for(let i of e){let e=t(i[0],i[1],[0,0]);r.push(e),i.length>2&&e.push(i[2]),i.length>3&&e.push(i[3])}return r}async function d(e,t){if(!e||!t)return;let r=Array.isArray(e)?e.map(e=>null==e.geometry?null:e.geometry.spatialReference).filter(i.Ru):[e];await(0,n.initializeProjection)(r.map(e=>({source:e,dest:t})))}function m(e,t,r,i){if(!e)return null;if(r||(r=t,t=e.spatialReference),!(0,a.fn)(t)||!(0,a.fn)(r)||(0,a.aI)(t,r))return e;if((0,o.y7)(t,r)){let t=u(r,e);return t.spatialReference=r,t}return(0,n.projectMany)([e],t,r,i)[0]}const c=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,r,i){if(!e?.length||!t||!r||(0,a.aI)(t,r))return e;let n={geometries:e,inSpatialReference:t,outSpatialReference:r,options:i,resolve:Promise.withResolvers()};return this._jobs.push(n),this._timer??=setTimeout(this._process,10),n.resolve.promise}_process(){this._timer=null;let e=this._jobs.shift();if(!e)return;let t,{geometries:r,inSpatialReference:i,outSpatialReference:s,resolve:a,options:l}=e,p=r.filter(e=>null!=e);t=(0,o.y7)(i,s)&&null==l?.extendedParams?p.map(e=>u(s,e)):(0,n.projectMany)(p,i,s,l);let y=0,d=r.map(e=>null==e?null:t[y++]);a.resolve(d),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function f(e,t,r,i){return c.push(e,t,r,i)}},58727(e,t,r){r.d(t,{GC:()=>h,T2:()=>v,dO:()=>S,iJ:()=>g});var i=r(49186),n=r(66552),s=r(86211),a=r(39829),o=r(99917),l=r(90634),u=r(60408),p=r(65864),y=r(52039),d=r(21325),m=r(31464);const c=new n.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),f=Object.freeze({});async function g(e,t,r){let i=e.bin;return i.onField&&=i.onField.trim(),i.onExpression?.value&&(i.onExpression.value=i.onExpression.value.trim()),i.splitBy&&(i.splitBy.value&&(i.splitBy.value=i.splitBy.value.trim()),i.splitBy.outAlias&&(i.splitBy.outAlias=i.splitBy.outAlias.trim())),i.stackBy&&(i.stackBy.value&&(i.stackBy.value=i.stackBy.value.trim()),i.stackBy.outAlias&&(i.stackBy.outAlias=i.stackBy.outAlias.trim())),"normalizationField"in i.parameters&&i.parameters.normalizationField&&(i.parameters.normalizationField=i.parameters.normalizationField.trim()),e.outStatistics?.length||(e.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:"frequency"}]),h(e,t,r)}async function h(e,t,r){let{outFields:i,orderByFields:n,groupByFieldsForStatistics:s,outStatistics:a}=e;if(i)for(let e=0;e<i.length;e++)i[e]=i[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(s)for(let e=0;e<s.length;e++)s[e]=s[e].trim();if(a)for(let e=0;e<a.length;e++)a[e].onStatisticField&&(a[e].onStatisticField=a[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),v(e,t,r)}async function v(e,t,r){if(!e)return null;let{where:i}=e;if(e.where=i=i?.trim(),(!i||/^1 *= *1$/.test(i)||t&&t===i)&&(e.where=null),!e.geometry)return e;let n=await w(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){let{spatialReference:t}=e.geometry;n=(0,l.HA)(n),n.spatialReference=t}if(!n)return e;await(0,m.Nk)(n.spatialReference,r);let[s]=await(0,y.el)((0,p.rS)(n));if(null==s)throw f;let c=!1;((0,u.ZC)(s)||(0,u.Bi)(s)||(0,u.Rg)(s))&&(c=!(0,d.aI)(s.spatialReference,r)&&!(0,o.canProjectWithoutEngine)(s.spatialReference,r)),c&&(0,u.ZC)(s)&&(s=a.A.fromExtent(s));let g="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,h=c&&g?{extendedParams:{densificationStep:8*g}}:void 0,v=s.toJSON(),S=(0,m.Cv)(v,v.spatialReference,r,h);if(!S)throw f;return S.spatialReference=r,e.geometry=S,e}async function w(e){let{distance:t,units:n}=e,a=e.geometry;if(!t||"vertexAttributes"in a)return a;let o=a.spatialReference,l=n?c.fromJSON(n):(0,s.Ij)(o),p=o&&((0,d.EA)(o)||(0,d.K8)(o))?a:await(0,m.Nk)(o,d.KK).then(()=>(0,m.Cv)(a,d.KK)),{geodesicBufferExecute:y,geodesicBufferLoad:f}=await r.e(9159).then(()=>r(49159));await f();let g=y(p,t||1,{unit:l})??void 0;if(!g||!(0,u.Bi)(g)||0===g.rings.length)throw new i.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return g}function S(e,t){return null==e?null:"string"==typeof e?t?new Date(`1970-01-01T${e}Z`).getTime():new Date(e).getTime():e instanceof Date?e.getTime():e}r.d(t,["VY",0,c,"v8",0,f])},33103(e,t,r){r.r(t),r.d(t,{executeAttributeBinsQuery:()=>f});var i=r(2272),n=r(56507),s=r(39516),a=r(84952),o=r(60408),l=r(52039),u=r(21325),p=r(10536),y=r(2991);function d(e,t){let r,i,n,a=e.geometry,l=e.toJSON(),p=l;if(null!=a&&(i=a.spatialReference,n=(0,u.YX)(i),p.geometryType=(0,o.$B)(a),p.geometry=JSON.stringify(a),p.inSR=n),l.outSR?(p.outSR=(0,u.YX)(l.outSR),r=e.outSpatialReference):a&&(p.outSR=p.inSR,r=i),p.bin&&=JSON.stringify(p.bin),p.quantizationParameters&&=JSON.stringify(p.quantizationParameters),p.outStatistics&&=JSON.stringify(p.outStatistics),p.outTimeReference&&=JSON.stringify(p.outTimeReference),e.timeExtent){let r=t?.timeInformation;if(r){let t=r.getExpression(e.timeExtent);switch(t?.type){case"time":p.time=t.value;break;case"where":t.value&&(p.where=(0,s.mA)(p.where,t.value))}}else p.time=(0,y.G9)(e.timeExtent);delete l.timeExtent}return e.defaultSpatialReference&&(0,u.aI)(i,r)&&(p.defaultSR=p.inSR,delete p.inSR,delete p.outSR),p}var m=r(37745),c=r(14575);async function f(e,t,r,s){let{data:o}=await async function(e,t,r,i){return null!=t.timeExtent&&t.timeExtent.isEmpty?{data:{features:[]}}:await async function(e,t,r={},i={}){let s="string"==typeof e?(0,a.An)(e):e,[o]=await(0,l.el)([t.geometry],r);null!=o&&((t=t.clone()).geometry=o);let u=(0,p.z)({...s.query,f:"json",...d(t,i)});return(0,n.A)((0,a.fj)(s.path,"queryBins"),{...r,query:{...u,...r.query}})}(e,t,r,i)}((0,i.Dl)(e),c.default.from(t),r,s);return m.default.fromJSON(o)}},37745(e,t,r){r.r(t),r.d(t,{default:()=>d});var i,n=r(32198),s=r(52106),a=r(4718),o=r(91429);let l=class extends s.A{static{i=this}constructor(e){super(e),this.stackedAttributes=null}cloneShallow(){return new i(Object.assign({stackedAttributes:this.stackedAttributes},super.cloneShallow()))}toJSON(){return{...super.toJSON(),stackedAttributes:(0,a.o8)(this.stackedAttributes)}}};(0,n.Cg)([(0,o.MZ)()],l.prototype,"stackedAttributes",void 0),l=i=(0,n.Cg)([(0,o.$K)("esri.AttributeBinsGraphic")],l);var u=r(69540),p=r(22671),y=r(36005);let d=class extends((0,u.OU)(p.A)){constructor(e){super(e),this.features=[]}readFeatures(e,t){return this.readFeaturesWithClass(e,t,l)}};(0,n.Cg)([(0,o.MZ)({type:[l],json:{write:!0}})],d.prototype,"features",void 0),(0,n.Cg)([(0,y.w)("features")],d.prototype,"readFeatures",null),d=(0,n.Cg)([(0,o.$K)("esri.rest.support.AttributeBinsFeatureSet")],d)},14575(e,t,r){r.d(t,{default:()=>Z});var i=r(32198),n=r(69540),s=r(66552),a=r(25482),o=r(53966),l=r(91429),u=r(78888),p=r(16930),y=r(65864),d=r(50498),m=r(58727),c=r(5834),f=r(41266),g=r(59977),h=r(11440),v=r(60909),w=r(58174),S=r(7562),C=r(79677),B=r(56400),x=r(93223);const M=new s.J({asc:"ascending",desc:"descending"}),A={base:f.A,key:"type",typeMap:{"auto-interval":c.A,date:g.A,"fixed-boundaries":h.A,"fixed-interval":v.A}};let Z=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.binParameters=null,this.binOrder="ascending",this.cacheHint=void 0,this.datumTransformation=null,this.defaultSpatialReference=null,this.distance=void 0,this.geometry=null,this.lowerBoundaryAlias=null,this.outSpatialReference=null,this.outStatistics=null,this.returnDistinctValues=null,this.spatialRelationship="intersects",this.timeExtent=null,this.upperBoundaryAlias=null,this.units=null,this.where="1=1"}set outTimeZone(e){this._set("outTimeZone",e),e&&!(0,B.wr)(e)&&o.A.getLogger(this).warn("#outTimeZone",`the parsed value '${e}' may not be a valid IANA time zone`)}};(0,i.Cg)([(0,l.MZ)({types:A,json:{name:"bin",write:!0}})],Z.prototype,"binParameters",void 0),(0,i.Cg)([(0,x.e)(M)],Z.prototype,"binOrder",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],Z.prototype,"cacheHint",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],Z.prototype,"datumTransformation",void 0),(0,i.Cg)([(0,l.MZ)({type:p.A,json:{name:"defaultSR",write:!0}})],Z.prototype,"defaultSpatialReference",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],Z.prototype,"distance",void 0),(0,i.Cg)([(0,l.MZ)({types:d.yR,json:{read:y.rS,write:!0}})],Z.prototype,"geometry",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],Z.prototype,"lowerBoundaryAlias",void 0),(0,i.Cg)([(0,l.MZ)({type:p.A,json:{name:"outSR",write:!0}})],Z.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,l.MZ)({type:[S.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],Z.prototype,"outStatistics",void 0),(0,i.Cg)([(0,l.MZ)({value:null,json:{name:"outTimeReference",read:{reader:e=>e.ianaTimeZone},write:{writer:(e,t,r)=>{e&&(t[r]={ianaTimeZone:e})}}}})],Z.prototype,"outTimeZone",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{name:"returnAggIds",write:{overridePolicy:e=>({enabled:null!=e})}}})],Z.prototype,"returnAggregateIds",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],Z.prototype,"returnDistinctValues",void 0),(0,i.Cg)([(0,x.e)(w.x,{name:"spatialRel"})],Z.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,l.MZ)({type:C.A,json:{write:!0}})],Z.prototype,"timeExtent",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],Z.prototype,"upperBoundaryAlias",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:m.VY.read,write:{writer:m.VY.write,overridePolicy(e){return{enabled:null!=e&&!!this.distance}}}}})],Z.prototype,"units",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],Z.prototype,"where",void 0),Z=(0,i.Cg)([(0,l.$K)("esri.rest.support.AttributeBinsQuery")],Z),Z.from=(0,u.dp)(Z)},5834(e,t,r){r.d(t,{A:()=>y});var i=r(32198),n=r(93637),s=r(91429),a=r(78888),o=r(41266),l=r(41366),u=r(93223);function p(e,t,r){(0,n.sM)(r,e instanceof Date?e.getTime():e,t)}let y=class extends((0,l.K)(o.A)){constructor(e){super(e),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],y.prototype,"numBins",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:p}}})],y.prototype,"end",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:p}}})],y.prototype,"start",void 0),(0,i.Cg)([(0,u.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],y.prototype,"type",void 0),y=(0,i.Cg)([(0,s.$K)("esri.rest.support.AutoIntervalBinParameters")],y),y.from=(0,a.dp)(y)},41266(e,t,r){r.d(t,{A:()=>f});var i=r(32198),n=r(69540),s=r(66552),a=r(25482),o=r(91429),l=r(78888),u=r(93223);const p=new s.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let y=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"outAlias",write:!0}})],y.prototype,"alias",void 0),(0,i.Cg)([(0,o.MZ)({type:String})],y.prototype,"responseType",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],y.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],y.prototype,"value",void 0),(0,i.Cg)([(0,u.e)(p)],y.prototype,"valueType",void 0),y=(0,i.Cg)([(0,o.$K)("esri.rest.support.AttributeBinsGrouping")],y);const d=y;y.from=(0,l.dp)(y);const m=new s.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),c=new s.J({naturalLog:"natural-log",squareRoot:"square-root"});let f=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],f.prototype,"expression",void 0),(0,i.Cg)([(0,u.e)(m,{name:"onExpression.valueType"})],f.prototype,"expressionValueType",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"onField",write:!0}})],f.prototype,"field",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],f.prototype,"firstDayOfWeek",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"hideUpperBound",void 0),(0,i.Cg)([(0,o.MZ)({type:d,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],f.prototype,"splitBy",void 0),(0,i.Cg)([(0,o.MZ)({type:d,json:{write:{target:{stackBy:{type:d},jsonStyle:{type:String}},writer:(e,t)=>{e&&(t.stackBy=e.toJSON(),null!=e.responseType&&(t.jsonStyle=e.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(e,t)=>d.fromJSON({...t.stackBy,responseType:t.jsonStyle})}}})],f.prototype,"stackBy",void 0),(0,i.Cg)([(0,u.e)(c)],f.prototype,"transformation",void 0),f=(0,i.Cg)([(0,o.$K)("esri.rest.support.BinParametersBase")],f)},59977(e,t,r){r.d(t,{A:()=>g});var i=r(32198),n=r(93637),s=r(91429),a=r(78888),o=r(41266),l=r(69540),u=r(25482),p=r(57231),y=r(93223);let d=class extends((0,l.OU)(u.o)){constructor(e){super(e),this.value=null,this.unit=null}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"number",write:!0}})],d.prototype,"value",void 0),(0,i.Cg)([(0,y.e)(p.g)],d.prototype,"unit",void 0),d=(0,i.Cg)([(0,s.$K)("esri.rest.support.DateBinTimeInterval")],d);const m=d;function c(e,t,r){(0,n.sM)(r,"string"==typeof e?e:e?.getTime(),t)}function f(e,t){let r=e.parameters[t];return r?"string"==typeof r?r:new Date(r):null}d.from=(0,a.dp)(d);let g=class extends o.A{constructor(e){super(e),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,i.Cg)([(0,s.MZ)({cast:e=>null==e?null:"string"==typeof e?e:new Date(e),json:{name:"parameters.end",read:{reader:(e,t)=>f(t,"end")},write:{writer:c}}})],g.prototype,"end",void 0),(0,i.Cg)([(0,s.MZ)({type:m,json:{name:"parameters",write:!0}})],g.prototype,"interval",void 0),(0,i.Cg)([(0,s.MZ)({type:m,json:{name:"parameters.offset",write:!0}})],g.prototype,"offset",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],g.prototype,"returnFullIntervalBin",void 0),(0,i.Cg)([(0,s.MZ)({cast:e=>null==e?null:"string"==typeof e?e:new Date(e),json:{name:"parameters.start",read:{reader:(e,t)=>f(t,"start")},write:{writer:c}}})],g.prototype,"start",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],g.prototype,"snapToData",void 0),(0,i.Cg)([(0,y.e)({dateBin:"date"},{readOnly:!0})],g.prototype,"type",void 0),g=(0,i.Cg)([(0,s.$K)("esri.rest.support.DateBinParameters")],g),g.from=(0,a.dp)(g)},57231(e,t,r){const i=(0,r(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"});r.d(t,["g",0,i])},11440(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(93637),s=r(91429),a=r(78888),o=r(41266),l=r(93223);let u=class extends o.A{constructor(e){super(e),this.boundaries=[],this.type="fixed-boundaries"}};(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.boundaries",write:{writer:function(e,t,r){(0,n.sM)(r,e&&function(e){return e[0]instanceof Date}(e)?e.map(e=>e.getTime()):e,t)}}}})],u.prototype,"boundaries",void 0),(0,i.Cg)([(0,l.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,s.$K)("esri.rest.support.FixedBoundariesBinParameters")],u),u.from=(0,a.dp)(u)},60909(e,t,r){r.d(t,{A:()=>y});var i=r(32198),n=r(93637),s=r(91429),a=r(78888),o=r(41266),l=r(41366),u=r(93223);function p(e,t,r){(0,n.sM)(r,e instanceof Date?e.getTime():e,t)}let y=class extends((0,l.K)(o.A)){constructor(e){super(e),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:p}}})],y.prototype,"end",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],y.prototype,"interval",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:p}}})],y.prototype,"start",void 0),(0,i.Cg)([(0,u.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],y.prototype,"type",void 0),y=(0,i.Cg)([(0,s.$K)("esri.rest.support.FixedIntervalBinParameters")],y),y.from=(0,a.dp)(y)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[737,7420,8169],{52106(e,t,i){i.d(t,{A:()=>I});var r,s,o=i(32198),l=i(40124),n=i(69540),a=i(51447),d=i(25482),u=i(53966),p=i(36708),h=i(24326),y=i(91429),c=i(12195),g=i(65864),m=i(50498),f=i(55156),b=i(60950),v=i(54339),M=i(94128),S=i(33910);const C=Symbol("meshGeometryHandles");function w(e){if(null==e)return null;let t={};for(let i in e){let r=e[i];r&&(t[i]=r.toJSON())}return 0===Object.keys(t).length?null:t}let I=class extends((0,n.OU)(d.o)){static{r=M.Z}static{s=this}constructor(e){super(e),this[r]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,h.c)(),configurable:!0}),Object.defineProperty(this,"_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 s({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,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[i,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 i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,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:w(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 i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let s={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(s.action=r),"attributes"===e&&(s.attributeName=r),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.removeHandles(C);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,p.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,p.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,o.Cg)([(0,y.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let i in e){let r=(0,g.rS)(e[i]);r&&(t[i]=r)}return 0===Object.keys(t).length?null:t}}})],I.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,y.MZ)({value:null})],I.prototype,"attributes",null),(0,o.Cg)([(0,y.MZ)({value:null,types:m.yR,json:{read:g.rS}})],I.prototype,"geometry",null),(0,o.Cg)([(0,y.MZ)()],I.prototype,"distance",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean})],I.prototype,"isAggregate",void 0),(0,o.Cg)([(0,y.MZ)({clonable:!1})],I.prototype,"layer",void 0),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],I.prototype,"origin",void 0),(0,o.Cg)([(0,y.MZ)({type:l.A,value:null})],I.prototype,"popupTemplate",null),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],I.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,y.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],I.prototype,"statisticsAggregatedIds",void 0),(0,o.Cg)([(0,y.MZ)({value:null,types:S.Es})],I.prototype,"symbol",null),(0,o.Cg)([(0,y.MZ)({clonable:!1,json:{read:!1,write:!1}})],I.prototype,"_version",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean,value:!0})],I.prototype,"visible",null),I=s=(0,o.Cg)([(0,y.$K)("esri.Graphic")],I)},6797(e,t,i){i.d(t,{Ui:()=>h});var r=i(69622),s=i(7762),o=i(88620);const l=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function n(e){return e instanceof r.A}function a(e){return e instanceof s.A?Object.keys(e.items):n(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function d(e,t){return e instanceof s.A?e.items[t]:e[t]}function u(e){return e?e.declaredClass:null}function p(e,t){let i=e.diff;if(i&&"function"==typeof i)return i(e,t);let r=a(e),s=a(t);if(0===r.length&&0===s.length)return;if(!r.length||!s.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 o=s.filter(e=>!r.includes(e)),h=r.filter(e=>!s.includes(e)),y=r.filter(i=>s.includes(i)&&d(e,i)!==d(t,i)).concat(o,h).sort(),c=u(e);if(c&&l.has(c)&&y.length)return{type:"complete",oldValue:e,newValue:t};let g,m=n(e)&&n(t);for(let r of y){let s,o=d(e,r),l=d(t,r);if((m||"function"!=typeof o&&"function"!=typeof l)&&o!==l&&(null!=o||null!=l)){if(i&&i[r]&&"function"==typeof i[r])s=i[r]?.(o,l);else if(o instanceof Date&&l instanceof Date){if(o.getTime()===l.getTime())continue;s={type:"complete",oldValue:o,newValue:l}}else s="object"==typeof o&&"object"==typeof l&&u(o)===u(l)?p(o,l):{type:"complete",oldValue:o,newValue:l};null!=s&&(null==g?g={type:"partial",diff:{[r]:s}}:g.diff[r]=s)}}return g}function h(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}:p(e,t)}},55156(e,t,i){i.d(t,{I:()=>s});const r=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},20737(e,t,i){i.r(t),i.d(t,{default:()=>ie});var r=i(32198),s=i(40124),o=i(56507),l=i(69540),n=i(7762),a=i(49186),d=i(36563),u=i(25728),p=i(17676),h=i(36708),y=i(91429),c=i(16930),g=i(41910),m=i(55156),f=i(60950),b=i(89808),v=i(99959);const M=Symbol("isAnnotationFeatureGraphicOrigin");var S;class C extends v.A{get[(S=M,f.ym)](){return this.layer}get[m.e](){return this.layer}get[b.Q](){return this.layer}get[g.e7](){return this.layer}constructor(e,t){super(),this[S]=!0,this.type="annotation-feature",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer?.subtypeCode??null}__`}}var w=i(4146),I=i(52136),F=i(18768),A=i(63074),T=i(69208),Z=i(40775),j=i(47685),_=i(10086),O=i(34287),L=i(8303),x=i(54310),E=i(23502),P=i(25036),D=i(82935),k=i(4902),R=i(25482),V=i(4718),z=i(92474),N=i(10873);let q=0,G=class extends((0,R.T)((0,l.OU)((0,k.s)(z.x_)))){constructor(e){super(e),this.id=`${Date.now().toString(16)}-annotation-feature-sublayer-${q++}`,this.layerType="ArcGISAnnotationSubLayer",this.maxScale=0,this.minScale=0,this.parent=null,this.subtypeCode=null,this.type="annotation-feature-sublayer",this.visible=!0}get graphicOrigin(){return new C(this.parent,this)}get title(){return this._isOverridden("title")?this._get("title"):this.parent?.subtypes?.find(e=>e.code===this.subtypeCode)?.name??this.subtypeCode?.toString()??null}set title(e){this._override("title",e)}clone(){let e=super.clone();return this._isOverridden("title")&&(e.title=this.title),e}};(0,r.Cg)([(0,y.MZ)({readOnly:!0,clonable:!1})],G.prototype,"graphicOrigin",null),(0,r.Cg)([(0,y.MZ)({type:String,nonNullable:!0,clonable:!1,json:{write:{isRequired:!0}}})],G.prototype,"id",void 0),(0,r.Cg)([(0,y.MZ)({type:["ArcGISAnnotationSubLayer"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],G.prototype,"layerType",void 0),(0,r.Cg)([(0,y.MZ)((()=>{let e=(0,V.o8)(N.hG);return e.json??={},e.json.default=0,e})())],G.prototype,"maxScale",void 0),(0,r.Cg)([(0,y.MZ)((()=>{let e=(0,V.o8)(N.hn);return e.json??={},e.json.default=0,e})())],G.prototype,"minScale",void 0),(0,r.Cg)([(0,y.MZ)({clonable:!1})],G.prototype,"parent",void 0),(0,r.Cg)([(0,y.MZ)({type:Number,nonNullable:!0,json:{name:"subLayerId",write:{isRequired:!0}}})],G.prototype,"subtypeCode",void 0),(0,r.Cg)([(0,y.MZ)({type:String,nonNullable:!0,clonable:!1,json:{write:{isRequired:!0}}})],G.prototype,"title",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],G.prototype,"type",void 0),(0,r.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0,json:{default:!0,name:"visibility",write:!0}})],G.prototype,"visible",void 0),G=(0,r.Cg)([(0,y.$K)("esri.layers.support.AnnotationFeatureSublayer")],G);var J=i(60694),K=i(15426),$=i(17036),H=i(30524),U=i(91908),B=i(97552),W=i(30291),Q=i(36005);const Y="annotation-feature-layer",X=(0,$.p)(),ee=n.A.ofType(G);let te=class extends((0,E.Z)((0,Z.I)((0,_.j)((0,A.dM)((0,D.e)((0,j.w6)((0,P.j)((0,x.J)((0,F.b)((0,O.q)((0,L.A)((0,u.M)((0,T.d)((0,I.p)((0,l.OU)(w.A)))))))))))))))){constructor(e){super(e),this._sublayerLookup=new Map,this.barrierWeight="high",this.elementField="element",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new C(this,null),this.operationalLayerType="ArcGISAnnotationLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.referenceScale=0,this.source=null,this.statusField="status",this.sublayers=new ee,this.sublayerTitleMode="item-title",this.supportedPortalItemTypes=["Feature Service"],this.supportedSourceTypes=new Set(["Annotation Layer"]),this.symbolCollection=null,this.type="annotation-feature",this.unplacedAnnotationsVisible=!1,this._debouncedSaveOperations=(0,p.sg)(async(e,t,r)=>{let{save:s,saveAs:o}=await i.e(5740).then(()=>i(33359));switch(e){case 0:return s(this,t);case 1:return o(this,r,t)}}),this.addHandles((0,h.wB)(()=>this.sublayers,(e,t)=>this._handleSublayersChange(e,t),h.OH))}destroy(){this.source?.destroy()}load(e){let t=e?.signal,i=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(p.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){let e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url)throw new a.A(`${Y}:missing-url`,"AnnotationFeatureLayer must be created with a url");return Promise.all([this.loadDataElement(e).then(()=>{if(!this.symbolCollection)throw new a.A(`${Y}:missing-symbol-collection`,"Invalid service with no symbol collection")}),this.initLayerProperties(await this.createGraphicsSource(t))])}).then(()=>(0,K.VA)(this,"load",e));return this.addResolvingPromise(i),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readSublayers(e,t){let i=new ee(t.subtypes.map(({code:e})=>new G({subtypeCode:e})).reverse());if(this.visibleLayers){let e=new Set(this.visibleLayers);i.forEach(t=>{t.visible=e.has(t.subtypeCode)})}return i}readTitleFromService(e,t){let{url:i}=this,r=t.name||(0,J.qg)(i)?.title;switch(this.sublayerTitleMode){case"item-title":if(i)return(0,J.yG)(i,r);break;case"item-title-and-service-name":{let e=this.portalItem?.title;if(e&&e!==r)return e=(0,J.cr)(e),r?`${e} - ${(0,J.cr)(r)}`:e;break}}return r?(0,J.cr)(r):void 0}readTitleFromPortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}get visibleLayers(){return 0===this.sublayers.length?this._get("visibleLayers")??null:Array.from(new Set(function(e){return e.sublayers?.toArray().filter(e=>e.visible).map(e=>e.subtypeCode).sort((e,t)=>e-t)??null}(this)))}set visibleLayers(e){this._set("visibleLayers",e)}createPopupTemplate(e){return(0,W.tn)(this,e)}async createGraphicsSource(e){let t={stack:[],error:void 0,hasError:!1};try{let{default:s}=await(0,p.qr)(Promise.all([i.e(893),i.e(7),i.e(154)]).then(()=>i(60845)),e),o=new s({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,r.mS)(t,(0,d.Bf)((0,p.u7)(e,()=>o.cancelLoad())??(0,d.hA)()),!1),await o.load({signal:e}),o}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}createQuery(){let e=(0,K.VZ)(this);return e.where=this.definitionExpression||"1=1",e}findSublayerForFeature(e){let t=this.fieldsIndex.get(this.subtypeField),i=e.attributes[t.name];return this.findSublayerForSubtypeCode(i)}findSublayerForSubtypeCode(e){return this._sublayerLookup.get(e)}getFieldDomain(e,t){return(0,K.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryFeatures(e,t){let i=await this.load(),r=await i.source.queryFeatures(B.A.from(e)??i.createQuery(),t);if(r?.features)for(let e of r.features)e.origin=this.findSublayerForFeature(e)?.graphicOrigin??this.graphicOrigin,e.layer=e.sourceLayer=this;return r}async queryObjectIds(e,t){let i=await this.load();return i.source.queryObjectIds(B.A.from(e)??i.createQuery(),t)}async queryFeatureCount(e,t){let i=await this.load();return i.source.queryFeatureCount(B.A.from(e)??i.createQuery(),t)}async queryExtent(e,t){let i=await this.load();return i.source.queryExtent(B.A.from(e)??i.createQuery(),t)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return this.loaded&&(0,U.D)(this,e)}async initLayerProperties(e){this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),(0,H.sv)(this.timeInfo,this.fieldsIndex)}async reloadFromService(e){let t=this.source;await Promise.all([t.reload({signal:e}),this.loadDataElement({signal:e})]),await this.initLayerProperties(t)}async hasDataChanged(){return(0,K.jp)(this)}_verifySource(){if(this.version&&this.version<10.8)throw new a.A(Y+":unsupported-version","The feature service must be version 10.8 or above.");let e=["ZOrder","AnnotationClassID","Element","SymbolID","Status"],t=e.filter(e=>!this.fieldsIndex.has(e));if(!this.fieldsIndex.has("FeatureID")&&!this.fieldsIndex.has("FeatureGlobalID")&&t.unshift("FeatureID","FeatureGlobalID"),t.length)throw new a.A(Y+":missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}_fetchFirstValidLayerId(e){return(0,o.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{let t=e.data;return t?(this.applyPreferredHost(t),[...t.layers||[],...t.tables||[]].find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id):void 0})}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner"),this._sublayerLookup.clear()),e&&(e.forEach(e=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),e.on("after-remove",({item:e})=>{e.parent=null,this._sublayerLookup.delete(e.subtypeCode)})],"sublayers-owner"))}};(0,r.Cg)([(0,y.MZ)({type:c.A,json:{origins:{service:{read:{source:"sourceSpatialReference"}}}}})],te.prototype,"attributeSpatialReference",void 0),(0,r.Cg)([(0,y.MZ)(N.es)],te.prototype,"barrierWeight",void 0),(0,r.Cg)([(0,y.MZ)({nonNullable:!0,json:{name:"enableEditing",write:!0}})],te.prototype,"editingEnabled",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"elementField",void 0),(0,r.Cg)([(0,y.MZ)({...X.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],te.prototype,"fields",void 0),(0,r.Cg)([(0,y.MZ)(X.fieldsIndex)],te.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0,clonable:!1})],te.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,y.MZ)(N.id)],te.prototype,"id",void 0),(0,r.Cg)([(0,y.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],te.prototype,"listMode",void 0),(0,r.Cg)([(0,y.MZ)({type:["ArcGISAnnotationLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}}}}})],te.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,y.MZ)(X.outFields)],te.prototype,"outFields",void 0),(0,r.Cg)([(0,y.MZ)(N.M6)],te.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,y.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],te.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"referenceScale",void 0),(0,r.Cg)([(0,y.MZ)({clonable:!1,readOnly:!0})],te.prototype,"source",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"statusField",void 0),(0,r.Cg)([(0,y.MZ)({type:ee,json:{name:"layers",write:{ignoreOrigin:!0}}})],te.prototype,"sublayers",void 0),(0,r.Cg)([(0,Q.w)("service","sublayers",["subtypes"])],te.prototype,"readSublayers",null),(0,r.Cg)([(0,y.MZ)({type:String})],te.prototype,"sublayerTitleMode",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"symbolCollection",void 0),(0,r.Cg)([(0,Q.w)("service","title",["name"])],te.prototype,"readTitleFromService",null),(0,r.Cg)([(0,Q.w)("portal-item","title")],te.prototype,"readTitleFromPortalItem",null),(0,r.Cg)([(0,y.MZ)({json:{read:!1},value:"annotation-feature",readOnly:!0})],te.prototype,"type",void 0),(0,r.Cg)([(0,y.MZ)()],te.prototype,"unplacedAnnotationsVisible",void 0),(0,r.Cg)([(0,y.MZ)({type:[Number]})],te.prototype,"visibleLayers",null),te=(0,r.Cg)([(0,y.$K)("esri.layers.AnnotationFeatureLayer")],te);const ie=te},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let i=[];for(let r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function s(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>s})},52136(e,t,i){var r=i(32198),s=i(91429);i.d(t,["p",0,e=>{let t=e,i=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,r.Cg)([(0,s.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},40775(e,t,i){var r=i(32198),s=i(56507),o=i(49186),l=i(84952),n=i(91429),a=i(95250);function d(e,t){let i=e.indexOf(t);return-1===i?void 0:e[i+1]}function u(e,t){let i=d(e,t);return i&&"string"==typeof i?JSON.parse(i):null}function p(e){let t=d(e,"ReferenceScale")??0;return"string"==typeof t?parseFloat(t):t}function h(e){return u(e,"SymbolCollection")??void 0}function y(e){return u(e,"StyleCollection")??void 0}i.d(t,["I",0,e=>{let t=e,i=class extends t{async loadDataElement(e){if(!this.url||null==this.layerId)throw new o.A("fetchDataElement:missing-url-or-layerId","The layer must have a url and a layerId to fetch the data element.");let t=(0,l.fj)(this.url,"queryDataElements"),i={f:"json",layers:this.layerId},{data:r}=await(0,s.A)(t,{...e,responseType:"json",query:i}),n=r.layerDataElements.find(e=>e.layerId===this.layerId)?.dataElement;if(!n)throw new o.A("fetchDataElement:not-available","A data element for this layer could not be retrieved.");let d=n.extensionProperties?.propertySetItems??[],u=p(d),c=(0,a.S)(h(d)),g=(0,a.S)(y(d));this.read({referenceScale:u,symbolCollection:c,styleCollection:g},{origin:"service"})}};return i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.DataElementMixin")],i),i}])},47685(e,t,i){i.d(t,{Mk:()=>y,Zk:()=>p});var r=i(32198),s=i(65529),o=i(4718),l=i(91429),n=i(20816);const a=new s.bk;function d(e){return a.on("apply-edits",new WeakRef(e))}function u(e){return a.on("update-moment",new WeakRef(e))}function p(e,t,i=null,r=!1){let s=Promise.withResolvers();return r=null==t||r,a.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:s.promise}),s}const h=Symbol();function y(e){return"object"==typeof e&&!!e&&h in e}function c(e){return"object"==typeof e&&!!e&&"gdbVersion"in e}function g(e,t,i){let r=new URL(e).host,s=n.Z3.get(r),o=e=>!e||e===s;return o(t)&&o(i)||t===i}i.d(t,["w6",0,e=>{var t;let i=e,s=class extends i{static{t=h}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{let{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:s,result:l}=e,n=t===this.url,a=null!=i&&null!=this.layerId&&i===this.layerId,d=null!=i&&this.relationships?.some(e=>e.relatedTableId===i),u=c(this),p=c(this)&&g(t,r,this.gdbVersion);if(!n||u&&!p||!a&&!d&&!s)return;let h=l.then(e=>{if(this.lastEditsEventDate=new Date,a&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,o.o8)(e)),e;let i=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(i){let{adds:t,updates:r,deletes:s}=i.editedFeatures,l={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:s?s.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:r?r.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,o.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,o.o8)(e.historicMoment)};return this.emit("edits",l),l}let s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,o.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,o.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,s.historicMoment)&&this.emit("edits",s),s}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));h.catch(()=>{}),this.emit("apply-edits",{result:h})},this._updateMomentHandler=e=>{let{serviceUrl:t,gdbVersion:i,moment:r}=e,s=t===this.url,o=c(this),l=c(this)&&g(t,i,this.gdbVersion),n=c(this)&&!g(t,this.gdbVersion,null);s&&o&&l&&n&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then(()=>{this.addHandles(d(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(u(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,n.w5)(e,t)}};return(0,r.Cg)([(0,l.MZ)()],s.prototype,"lastEditsEventDate",void 0),s=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.EditBusLayer")],s),s}])},28032(e,t,i){i.d(t,{A:()=>a});var r=i(32198),s=i(69540),o=i(25482),l=i(91429),n=i(56400);let a=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r.Cg)([(0,l.MZ)()],a.prototype,"creatorField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"creationDateField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"editorField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"editDateField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"realm",void 0),(0,r.Cg)([(0,l.MZ)((0,n.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,r.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],a)},37352(e,t,i){i.d(t,{A:()=>a});var r,s=i(32198),o=i(7762),l=i(25482),n=i(91429);let a=r=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,s.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,s.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=r=(0,s.Cg)([(0,n.$K)("esri.layers.support.LayerFloorInfo")],a)},45067(e,t,i){i.d(t,{A:()=>u});var r=i(32198),s=i(69540),o=i(66552),l=i(25482),n=i(91429);const a=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),d=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let u=class extends((0,s.OU)(l.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,r.Cg)([(0,n.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"cardinality",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:d.read,write:d.write}})],u.prototype,"role",void 0),u=(0,r.Cg)([(0,n.$K)("esri.layers.support.Relationship")],u)},41366(e,t,i){var r=i(32198),s=i(66552),o=i(53966),l=i(91429),n=i(93223);const a=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),d="percent-of-total",u="field";i.d(t,["K",0,e=>{let t=e,i=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,i=null!=this.normalizationTotal;return t||i?(e=t&&u||i&&d||null,t&&i&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===u||e===d)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,n.e)(a,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i},"Q",0,a])},95250(e,t,i){function r(e){return s(e,{CIMRGBColor:o,CIMCharacterMarker:l})}function s(e,t){if(null==e)return e;if(Array.isArray(e))return e.map(e=>s(e,t));if("object"==typeof e){if("type"in e&&"string"==typeof e.type&&t[e.type])return t[e.type](e);let i={};for(let[r,o]of Object.entries(e))i[r]=s(o,t);return i}return e}function o(e){let[t,i,r,s]=e.values;return[t,i,r,255*s/100]}function l(){return{type:"CIMVectorMarker",enable:!0,size:40,colorLocked:!1,anchorPointUnits:"Relative",frame:{xmin:-10,ymin:-10,xmax:10,ymax:10},markerGraphics:[{type:"CIMMarkerGraphic",textString:"■",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",underline:!1,blockProgression:"TTB",depth3D:0,extrapolateBaselines:!0,flipAngle:90,fontEffects:"Normal",fontEncoding:"Unicode",haloSize:0,height:8,hinting:"Default",horizontalAlignment:"Center",kerning:!0,letterSpacing:10,letterWidth:100,ligatures:!1,lineGapType:"ExtraLeading",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},symbol3DProperties:{type:"CIM3DSymbolProperties",dominantSizeAxis3D:"Z",rotationOrder3D:"XYZ",scaleZ:1,scaleY:1},textCase:"Normal",textDirection:"LTR",verticalAlignment:"Center",verticalGlyphOrientation:"Right",wordSpacing:100,billboardMode3D:"FaceNearPlane"}}],scaleSymbolsProportionally:!0,respectFrame:!0}}i.d(t,{S:()=>r})},93470(e,t,i){const r=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r};i.d(t,["Cb",0,s,"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,r,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])},20816(e,t,i){i.d(t,{We:()=>n,ZJ:()=>a,w5:()=>d});var r=i(56507);const s=(0,i(13069).vD)(),o=new Map,l=new Map;async function n(e,t,i){if(!e||!i)return!1;if(!t)return!0;let s=new URL(e).host,l=o.get(s);if(!l){let t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");l=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return l===t}async function a(e,t,r=!1){if(!e||!t)return!0;let o=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),n=l.get(o)?.entries();if(n)for(let[e,l]of n)if(l.name===t){let t=!l.stack?.hasForwardEdits();if(!t&&r){let[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(()=>i(32186)),i.e(2558).then(()=>i(32558))]),n=await t(o,e,new r({sessionId:s,moment:l.moment}));return n.success&&l.stack?.clearForwardEdits(),n.success}return t}return!0}function d(e,t){if(!e)return!1;let i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=l.get(i)?.entries();if(r)for(let[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map,i.d(t,["TA",0,s,"Z3",0,o])}}]);