@arcgis/core 4.32.0-next.20250203 → 4.32.0-next.20250204

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 (209) hide show
  1. package/WebScene.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{d3a8aabdbfb59dd433e3.js → 01c3507d78398baaf61b.js} +1 -1
  4. package/assets/esri/core/workers/chunks/06f693780f70e5a627c4.js +1 -0
  5. package/assets/esri/core/workers/chunks/{c4b0e3f7dcad6c7ea620.js → 08f76c75758a29158b13.js} +34 -34
  6. package/assets/esri/core/workers/chunks/1a2e1a414e651e988435.js +2 -0
  7. package/assets/esri/core/workers/chunks/{bf9bc52a3c559108c19a.js.LICENSE.txt → 1a2e1a414e651e988435.js.LICENSE.txt} +1 -1
  8. package/assets/esri/core/workers/chunks/{6e25742ceedea7fb1b97.js → 287362f9af132fafe4de.js} +1 -1
  9. package/assets/esri/core/workers/chunks/308ec51ff4a66f7fcb0d.js.LICENSE.txt +1 -1
  10. package/assets/esri/core/workers/chunks/354531dc2f0dea2ad96f.js +2 -0
  11. package/assets/esri/core/workers/chunks/{6e8905f20101c1f4509d.js.LICENSE.txt → 354531dc2f0dea2ad96f.js.LICENSE.txt} +1 -1
  12. package/assets/esri/core/workers/chunks/41cd1a5c99ab3bbd1fb4.js +1 -0
  13. package/assets/esri/core/workers/chunks/44abd2cd17aae3299ede.js +1 -0
  14. package/assets/esri/core/workers/chunks/{af2a70d33afb12bb536f.js → 4d0a6ccb8434f8898377.js} +44 -44
  15. package/assets/esri/core/workers/chunks/{e9f0402fa3ac5a249807.js → 5196c43dbce48d1b81ae.js} +1 -1
  16. package/assets/esri/core/workers/chunks/568bcf809fcfd4d9c713.js +1 -0
  17. package/assets/esri/core/workers/chunks/{f2fae056a81f12b56b04.js → 5e7f16b312077ca8c18d.js} +1 -1
  18. package/assets/esri/core/workers/chunks/61243217aed5de012e93.js +1 -0
  19. package/assets/esri/core/workers/chunks/69d307758262e5d7a32e.js +1 -0
  20. package/assets/esri/core/workers/chunks/6d5bfcc7856cafe7b043.js +2 -0
  21. package/assets/esri/core/workers/chunks/{7d3a441d2eb18d709ef9.js.LICENSE.txt → 6d5bfcc7856cafe7b043.js.LICENSE.txt} +1 -1
  22. package/assets/esri/core/workers/chunks/72cf9192292e5c85c6df.js.LICENSE.txt +1 -1
  23. package/assets/esri/core/workers/chunks/{bc50585615f07d5ec1a9.js → 746c964cf07e4306f21f.js} +1 -1
  24. package/assets/esri/core/workers/chunks/77764ca90bdd13ee2167.js +2 -0
  25. package/assets/esri/core/workers/chunks/{25c8cc30faade043c8dc.js.LICENSE.txt → 77764ca90bdd13ee2167.js.LICENSE.txt} +1 -1
  26. package/assets/esri/core/workers/chunks/{07360fde6ea65664e6ca.js → 82d26884127ed772cc4b.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{ba3c18d1efde46461231.js → 8438fba57e82e4cc7c11.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{d1678945cf6a58f76863.js → 858b191c078d04232342.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{0ef5b0f8aa8a09acd6e0.js → 8e90c5fee4ad7c7275dc.js} +1 -1
  30. package/assets/esri/core/workers/chunks/918bdba41fa470cf77fd.js +1 -0
  31. package/assets/esri/core/workers/chunks/{3ec51b75d1a86dad6cb1.js → 91d2bdfa6e34c10b7f50.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{12dd892cf61a76fb40ad.js → 991e0f619f1f81f94d56.js} +1 -1
  33. package/assets/esri/core/workers/chunks/9a27824d94df702e6e28.js +1 -0
  34. package/assets/esri/core/workers/chunks/a2409d4921c02614169a.js +1 -0
  35. package/assets/esri/core/workers/chunks/{7810579a5a780933cdc9.js → ad3e692681b50bd1acc2.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{adfa126cea32298c28e9.js → b1269b51cef3e11c85e3.js} +1 -1
  37. package/assets/esri/core/workers/chunks/b21b152fa15896577242.js.LICENSE.txt +1 -1
  38. package/assets/esri/core/workers/chunks/{c7a94e569c905f97244a.js → b33122adfd1fb68f7c0f.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{da77eefaad83c0644380.js → b8fae500c69ca2cff62a.js} +1 -1
  40. package/assets/esri/core/workers/chunks/b9d9a1dc3c5d799e2685.js +1 -0
  41. package/assets/esri/core/workers/chunks/{79afe4674a0557eb26e4.js → bf26f58210755875748c.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{5adeb979f178944b9ce5.js → c4c2b94e5cee7b824093.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{3e872e5e528dca7bee0c.js → cc75bbfd779f409943a3.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{4c5279fedf982a174706.js → d175953337fa655dc6b0.js} +1 -1
  45. package/assets/esri/core/workers/chunks/d35efcbe439500bf18bc.js +1 -0
  46. package/assets/esri/core/workers/chunks/d3d1dcb440588a295eba.js +1 -0
  47. package/assets/esri/core/workers/chunks/e26dc0c1654316bb1558.js +1 -0
  48. package/assets/esri/core/workers/chunks/{448ee44c7f594e5b2551.js → e410a09650530d7aad10.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{2345344be4b0e487d3a6.js → f198f4ba7d3d52882d98.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{881ddbdeb40336208e90.js → f29715459ecd46180829.js} +1 -1
  51. package/assets/esri/core/workers/chunks/f4e48bbdbc9da10ec71a.js +1 -0
  52. package/assets/esri/themes/base/widgets/_Directions.scss +59 -11
  53. package/assets/esri/themes/dark/main.css +1 -1
  54. package/assets/esri/themes/light/main.css +1 -1
  55. package/assets/esri/themes/light/view.css +1 -1
  56. package/assets/esri/widgets/Directions/t9n/Directions_ar.json +1 -1
  57. package/assets/esri/widgets/Directions/t9n/Directions_bg.json +1 -1
  58. package/assets/esri/widgets/Directions/t9n/Directions_bs.json +1 -1
  59. package/assets/esri/widgets/Directions/t9n/Directions_ca.json +1 -1
  60. package/assets/esri/widgets/Directions/t9n/Directions_cs.json +1 -1
  61. package/assets/esri/widgets/Directions/t9n/Directions_da.json +1 -1
  62. package/assets/esri/widgets/Directions/t9n/Directions_de.json +1 -1
  63. package/assets/esri/widgets/Directions/t9n/Directions_el.json +1 -1
  64. package/assets/esri/widgets/Directions/t9n/Directions_es.json +1 -1
  65. package/assets/esri/widgets/Directions/t9n/Directions_et.json +1 -1
  66. package/assets/esri/widgets/Directions/t9n/Directions_fi.json +1 -1
  67. package/assets/esri/widgets/Directions/t9n/Directions_fr.json +1 -1
  68. package/assets/esri/widgets/Directions/t9n/Directions_he.json +1 -1
  69. package/assets/esri/widgets/Directions/t9n/Directions_hr.json +1 -1
  70. package/assets/esri/widgets/Directions/t9n/Directions_hu.json +1 -1
  71. package/assets/esri/widgets/Directions/t9n/Directions_id.json +1 -1
  72. package/assets/esri/widgets/Directions/t9n/Directions_it.json +1 -1
  73. package/assets/esri/widgets/Directions/t9n/Directions_ja.json +1 -1
  74. package/assets/esri/widgets/Directions/t9n/Directions_ko.json +1 -1
  75. package/assets/esri/widgets/Directions/t9n/Directions_lt.json +1 -1
  76. package/assets/esri/widgets/Directions/t9n/Directions_lv.json +1 -1
  77. package/assets/esri/widgets/Directions/t9n/Directions_nl.json +1 -1
  78. package/assets/esri/widgets/Directions/t9n/Directions_no.json +1 -1
  79. package/assets/esri/widgets/Directions/t9n/Directions_pl.json +1 -1
  80. package/assets/esri/widgets/Directions/t9n/Directions_pt-BR.json +1 -1
  81. package/assets/esri/widgets/Directions/t9n/Directions_pt-PT.json +1 -1
  82. package/assets/esri/widgets/Directions/t9n/Directions_ro.json +1 -1
  83. package/assets/esri/widgets/Directions/t9n/Directions_ru.json +1 -1
  84. package/assets/esri/widgets/Directions/t9n/Directions_sk.json +1 -1
  85. package/assets/esri/widgets/Directions/t9n/Directions_sl.json +1 -1
  86. package/assets/esri/widgets/Directions/t9n/Directions_sr.json +1 -1
  87. package/assets/esri/widgets/Directions/t9n/Directions_sv.json +1 -1
  88. package/assets/esri/widgets/Directions/t9n/Directions_th.json +1 -1
  89. package/assets/esri/widgets/Directions/t9n/Directions_tr.json +1 -1
  90. package/assets/esri/widgets/Directions/t9n/Directions_uk.json +1 -1
  91. package/assets/esri/widgets/Directions/t9n/Directions_vi.json +1 -1
  92. package/assets/esri/widgets/Directions/t9n/Directions_zh-CN.json +1 -1
  93. package/assets/esri/widgets/Directions/t9n/Directions_zh-HK.json +1 -1
  94. package/assets/esri/widgets/Directions/t9n/Directions_zh-TW.json +1 -1
  95. package/chunks/ComponentShader.glsl.js +30 -30
  96. package/chunks/DefaultMaterial.glsl.js +19 -19
  97. package/chunks/HUDMaterial.glsl.js +34 -34
  98. package/chunks/MeasurementArrow.glsl.js +6 -6
  99. package/chunks/NativeLine.glsl.js +4 -4
  100. package/chunks/QuadraticBezier.js +1 -1
  101. package/chunks/RealisticTree.glsl.js +14 -14
  102. package/chunks/RibbonLine.glsl.js +32 -32
  103. package/chunks/Terrain.glsl.js +31 -31
  104. package/chunks/WaterSurface.glsl.js +15 -15
  105. package/copyright.txt +0 -29
  106. package/core/Collection.js +1 -1
  107. package/core/has.js +1 -1
  108. package/geometry/support/centroid.js +1 -1
  109. package/interfaces.d.ts +107 -13
  110. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  111. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  112. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  113. package/layers/mixins/ArcGISImageService.js +1 -1
  114. package/layers/mixins/ImageryTileMixin.js +1 -1
  115. package/layers/support/Sublayer.js +1 -1
  116. package/layers/support/capabilities.js +1 -1
  117. package/layers/support/featureLayerUtils.js +1 -1
  118. package/layers/support/labelUtils.js +1 -1
  119. package/layers/support/rasterDatasets/WCSRaster.js +1 -1
  120. package/layers/support/rasterDatasets/multidimensionalUtils.js +1 -1
  121. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  122. package/package.json +4 -5
  123. package/popup/content/AttachmentsContent.js +1 -1
  124. package/popup/support/AttachmentsOrderByInfo.d.ts +4 -0
  125. package/popup/support/AttachmentsOrderByInfo.js +5 -0
  126. package/portal/schemas/definitions.js +1 -1
  127. package/rest/imageService/fetchRasterInfo.js +1 -1
  128. package/rest/query/operations/queryAttachments.js +1 -1
  129. package/rest/support/AttachmentQuery.js +1 -1
  130. package/support/revision.js +1 -1
  131. package/support/timeUtils.d.ts +0 -1
  132. package/support/timeUtils.js +1 -1
  133. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  134. package/views/2d/engine/webgl/mesh/factories/FeatureMeshFactory.js +1 -1
  135. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedShader.js +1 -1
  136. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
  137. package/views/2d/engine/webgl/shaderGraph/techniques/line/gradientStrokeConstants.js +1 -1
  138. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
  139. package/views/2d/engine/webgl/util/LabelMatcher.js +1 -1
  140. package/views/2d/engine/webgl/util/createMatcher.js +1 -1
  141. package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
  142. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  143. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  144. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  145. package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
  146. package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
  147. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  148. package/views/3d/layers/support/FeatureTileFetcher3DContext.js +1 -1
  149. package/views/3d/layers/support/FeatureTileTree3D.js +1 -1
  150. package/views/3d/layers/support/FeatureVisibilityFilter.js +1 -1
  151. package/views/3d/terrain/PatchRenderData.js +1 -1
  152. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  153. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  154. package/views/3d/webgl-engine/core/shaderLibrary/util/DiscardOrAdjustAlpha.glsl.js +3 -3
  155. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  156. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  157. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  158. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  159. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  160. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  161. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  162. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  163. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  164. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  165. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  166. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  167. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  168. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  169. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  170. package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
  171. package/views/3d/webgl-engine/shaders/MeasurementArrow.glsl.js +1 -1
  172. package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
  173. package/views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js +8 -8
  174. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  175. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  176. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  177. package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
  178. package/views/layers/FeatureLayerView.js +1 -1
  179. package/views/layers/ImageryTileLayerView.d.ts +4 -0
  180. package/views/layers/ImageryTileLayerView.js +1 -1
  181. package/webscene/spec-certification/index.js +1 -1
  182. package/widgets/BasemapLayerList.js +1 -1
  183. package/widgets/Directions/DirectionsViewModel.js +1 -1
  184. package/widgets/Directions.js +1 -1
  185. package/widgets/LayerList.js +1 -1
  186. package/widgets/Legend/LegendViewModel.js +1 -1
  187. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  188. package/widgets/Legend.js +1 -1
  189. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  190. package/widgets/support/geolocationUtils.js +1 -1
  191. package/assets/esri/core/workers/chunks/06d72622590dbd38c5de.js +0 -1
  192. package/assets/esri/core/workers/chunks/0a19e1aec6a5502e391a.js +0 -1
  193. package/assets/esri/core/workers/chunks/12964a4b16113cdc9c93.js +0 -1
  194. package/assets/esri/core/workers/chunks/1e3ab66d0e8a7f160f33.js +0 -1
  195. package/assets/esri/core/workers/chunks/25c8cc30faade043c8dc.js +0 -2
  196. package/assets/esri/core/workers/chunks/34d464dacee52739c98c.js +0 -1
  197. package/assets/esri/core/workers/chunks/402de76b5de05615e111.js +0 -1
  198. package/assets/esri/core/workers/chunks/4cab082b8432ddc05345.js +0 -1
  199. package/assets/esri/core/workers/chunks/613db14d698741886753.js +0 -1
  200. package/assets/esri/core/workers/chunks/6e8905f20101c1f4509d.js +0 -2
  201. package/assets/esri/core/workers/chunks/7d3a441d2eb18d709ef9.js +0 -2
  202. package/assets/esri/core/workers/chunks/ba37ab9e560644dc1f18.js +0 -1
  203. package/assets/esri/core/workers/chunks/bf9bc52a3c559108c19a.js +0 -2
  204. package/assets/esri/core/workers/chunks/c74441fbe0f63633796f.js +0 -1
  205. package/assets/esri/core/workers/chunks/dd46ec81cebe1a0a7b9c.js +0 -1
  206. package/assets/esri/core/workers/chunks/e444ec05a8a1dfbd21a8.js +0 -1
  207. package/assets/esri/core/workers/chunks/f8367c21fa91435c7c53.js +0 -1
  208. package/assets/esri/core/workers/chunks/ffa2b9d70830aed03a8f.js +0 -1
  209. /package/{views/3d/webgl-engine/core/shaderLibrary/util → webscene/support}/AlphaCutoff.js +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1882],{48526:(t,n,e)=>{e.d(n,{A:()=>g});var i,s=e(90237),r=e(4718),a=e(10107),o=(e(44208),e(53966),e(40608)),h=e(43937),l=e(5443),u=e(91075),c=e(86738),p=e(56993);function f(t){return(n,e)=>null==n?e:null==e?n:t(n,e)}let m=i=class extends u.A{constructor(...t){super(...t),this.points=[],this.type="multipoint"}normalizeCtorArgs(t,n){if(!t&&!n)return{};const e={};Array.isArray(t)?(e.points=t,e.spatialReference=n):function(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}(t)?e.spatialReference=t:(t.points&&(e.points=t.points),t.spatialReference&&(e.spatialReference=t.spatialReference),t.hasZ&&(e.hasZ=t.hasZ),t.hasM&&(e.hasM=t.hasM));const i=e.points?.[0];return i&&(void 0===e.hasZ&&void 0===e.hasM?(e.hasZ=i.length>2,e.hasM=!1):void 0===e.hasZ?e.hasZ=i.length>3:void 0===e.hasM&&(e.hasM=i.length>3)),e}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=this.points;if(!t.length)return null;const n=new l.A,e=this.hasZ,i=this.hasM,s=e?3:2,r=t[0],a=f(Math.min),o=f(Math.max);let h,u,c,p,[m,g]=r,[y,x]=r;for(let n=0,r=t.length;n<r;n++){const r=t[n],[l,f]=r;if(m=a(m,l),g=a(g,f),y=o(y,l),x=o(x,f),e&&r.length>2){const t=r[2];h=a(h,t),c=o(c,t)}if(i&&r.length>s){const t=r[s];u=a(u,t),p=o(p,t)}}return n.xmin=m,n.ymin=g,n.xmax=y,n.ymax=x,n.spatialReference=this.spatialReference,e?(n.zmin=h,n.zmax=c):(n.zmin=void 0,n.zmax=void 0),i?(n.mmin=u,n.mmax=p):(n.mmin=void 0,n.mmax=void 0),n}writePoints(t,n){n.points=(0,r.o8)(this.points)}addPoint(t){return(0,p.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}clone(){const t={points:(0,r.o8)(this.points),spatialReference:this.spatialReference};return this.hasZ&&(t.hasZ=!0),this.hasM&&(t.hasM=!0),new i(t)}getPoint(t){if(!this._validateInputs(t))return null;const n=this.points[t],e={x:n[0],y:n[1],spatialReference:this.spatialReference};let i=2;return this.hasZ&&(e.z=n[2],i=3),this.hasM&&(e.m=n[i]),new c.A(e)}removePoint(t){if(!this._validateInputs(t))return null;const n=new c.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),n}setPoint(t,n){return this._validateInputs(t)?((0,p.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.points[t]=n,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,s._)([(0,a.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,s._)([(0,a.MZ)()],m.prototype,"extent",null),(0,s._)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,s._)([(0,h.K)("points")],m.prototype,"writePoints",null),m=i=(0,s._)([(0,o.$)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0;const g=m},39829:(t,n,e)=>{e.d(n,{A:()=>I});var i,s=e(90237),r=e(4576),a=e(4718),o=e(10107),h=(e(44208),e(53966),e(40608)),l=e(43937),u=e(5443),c=e(91075),p=e(86738),f=e(16930),m=e(12359),g=e(94078),y=e(95108),x=e(90634),d=e(12176),v=e(28735),P=e(56993);function R(t){return!Array.isArray(t[0])}let A=i=class extends c.A{static fromExtent(t){const n=t.clone().normalize(),{spatialReference:e}=t;let s=!1,r=!1;for(const t of n)t.hasZ&&(s=!0),t.hasM&&(r=!0);const a={rings:n.map((t=>{const n=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(s&&t.hasZ){const e=t.zmin+.5*(t.zmax-t.zmin);for(let t=0;t<n.length;t++)n[t].push(e)}if(r&&t.hasM){const e=t.mmin+.5*(t.mmax-t.mmin);for(let t=0;t<n.length;t++)n[t].push(e)}return n})),spatialReference:e};return s&&(a.hasZ=!0),r&&(a.hasM=!0),new i(a)}constructor(t){super(function(t){if(!t)return;let{rings:n,hasM:e,hasZ:i,spatialReference:s}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:i??=!0,e??=!0;break;case 3:i??=!0!==e,e??=!i;break;default:i??=!1,e??=!1}return s??=f.A.WGS84,{...t,hasM:e,hasZ:i,rings:n,spatialReference:s}}(t)),this.curveRings=void 0,this.rings=[],this.type="polygon"}get cache(){return this.commitProperty("curveRings"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("rings"),this.commitProperty("spatialReference"),{}}get centroid(){const t=(0,m.l8)(this);if(!t||isNaN(t[0])||isNaN(t[1])||this.hasZ&&isNaN(t[2]))return null;const n=new p.A;return n.x=t[0],n.y=t[1],n.spatialReference=this.spatialReference,this.hasZ&&(n.z=t[2]),n}writeCurveRings(t,n){n.curveRings=(0,a.o8)(t)}get extent(){const t=(0,x.v)(this),{spatialReference:n}=this;return t?new u.A({...t,spatialReference:n}):null}get isSelfIntersecting(){return(0,d.A3)(this.rings)}writeRings(t,n){n.rings=(0,a.o8)(this.rings)}addRing(t){if(!t)return;const n=this.rings,e=n.length;if(R(t)){const i=[];for(let n=0,e=t.length;n<e;n++)i[n]=t[n].toArray();n[e]=i}else n[e]=t.slice();return this.notifyChange("rings"),this}clone(){const t=new i;return t.spatialReference=this.spatialReference,t.rings=(0,a.o8)(this.rings),t.curveRings=(0,a.o8)(this.curveRings),t.hasZ=this.hasZ,t.hasM=this.hasM,t}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,e=t.spatialReference;if(null!=n!=(null!=e))return!1;if(null!=n&&null!=e&&!n.equals(e))return!1;if(this.rings.length!==t.rings.length)return!1;const i=([t,n,e,i],[s,r,a,o])=>t===s&&n===r&&(null==e&&null==a||e===a)&&(null==i&&null==o||i===o);for(let n=0;n<this.rings.length;n++){const e=this.rings[n],s=t.rings[n];if(!(0,r.aI)(e,s,i))return!1}return!0}contains(t){if(!t)return!1;const n=(0,v.Cv)(t,this.spatialReference);return(0,g.m3)(this,null!=n?n:t)}isClockwise(t){const n=R(t)?t.map((t=>this.hasZ?this.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])):t;return(0,y.$3)(n)}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.rings[t][n],i=this.hasZ,s=this.hasM;return i&&!s?new p.A(e[0],e[1],e[2],void 0,this.spatialReference):s&&!i?new p.A(e[0],e[1],void 0,e[2],this.spatialReference):i&&s?new p.A(e[0],e[1],e[2],e[3],this.spatialReference):new p.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,P.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t].splice(n,0,e),this.notifyChange("rings"),this):this}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new p.A(this.rings[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("rings"),e}removeRing(t){if(!this._validateInputs(t,null))return null;const n=this.rings.splice(t,1)[0],e=this.spatialReference,i=n.map((t=>new p.A(t,e)));return this.notifyChange("rings"),i}setPoint(t,n,e){return this._validateInputs(t,n)?((0,P.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t][n]=e,this.notifyChange("rings"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.rings.length)return!1;if(null!=n){const i=this.rings[t];if(e&&(n<0||n>i.length))return!1;if(!e&&(n<0||n>=i.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,s._)([(0,o.MZ)({readOnly:!0})],A.prototype,"cache",null),(0,s._)([(0,o.MZ)({readOnly:!0})],A.prototype,"centroid",null),(0,s._)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],A.prototype,"curveRings",void 0),(0,s._)([(0,l.K)("curveRings")],A.prototype,"writeCurveRings",null),(0,s._)([(0,o.MZ)({readOnly:!0})],A.prototype,"extent",null),(0,s._)([(0,o.MZ)({readOnly:!0})],A.prototype,"isSelfIntersecting",null),(0,s._)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],A.prototype,"rings",void 0),(0,s._)([(0,l.K)("rings")],A.prototype,"writeRings",null),A=i=(0,s._)([(0,h.$)("esri.geometry.Polygon")],A);const I=A;A.prototype.toJSON.isDefaultToJSON=!0},82799:(t,n,e)=>{e.d(n,{A:()=>y});var i,s=e(90237),r=e(4718),a=e(10107),o=(e(44208),e(53966),e(40608)),h=e(43937),l=e(5443),u=e(91075),c=e(86738),p=e(16930),f=e(90634),m=e(56993);let g=i=class extends u.A{constructor(t){super(function(t){if(!t)return;let{paths:n,hasM:e,hasZ:i,spatialReference:s}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:i??=!0,e??=!0;break;case 3:i??=!0!==e,e??=!i;break;default:i??=!1,e??=!1}return s??=p.A.WGS84,{...t,hasM:e,hasZ:i,paths:n,spatialReference:s}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,n){n.curvePaths=(0,r.o8)(t)}get extent(){const t=(0,f.Z3)(this),{spatialReference:n}=this;return t?new l.A({...t,spatialReference:n}):null}writePaths(t,n){n.paths=(0,r.o8)(this.paths)}addPath(t){if(!t)return;const n=this.paths,e=n.length;if(function(t){return!Array.isArray(t[0])}(t)){const i=[];for(let n=0,e=t.length;n<e;n++)i[n]=t[n].toArray();n[e]=i}else n[e]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new i;return t.spatialReference=this.spatialReference,t.paths=(0,r.o8)(this.paths),t.curvePaths=(0,r.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.paths[t][n],i=this.hasZ,s=this.hasM;return i&&!s?new c.A(e[0],e[1],e[2],void 0,this.spatialReference):s&&!i?new c.A(e[0],e[1],void 0,e[2],this.spatialReference):i&&s?new c.A(e[0],e[1],e[2],e[3],this.spatialReference):new c.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,m.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t].splice(n,0,e),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const n=this.paths.splice(t,1)[0],e=this.spatialReference,i=n.map((t=>new c.A(t,e)));return this.notifyChange("paths"),i}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new c.A(this.paths[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("paths"),e}setPoint(t,n,e){return this._validateInputs(t,n)?((0,m.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t][n]=e,this.notifyChange("paths"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=n){const i=this.paths[t];if(e&&(n<0||n>i.length))return!1;if(!e&&(n<0||n>=i.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,s._)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,s._)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],g.prototype,"curvePaths",void 0),(0,s._)([(0,h.K)("curvePaths")],g.prototype,"writeCurvePaths",null),(0,s._)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,s._)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],g.prototype,"paths",void 0),(0,s._)([(0,h.K)("paths")],g.prototype,"writePaths",null),g=i=(0,s._)([(0,o.$)("esri.geometry.Polyline")],g);const y=g;g.prototype.toJSON.isDefaultToJSON=!0},51118:(t,n,e)=>{function i(t){const n=[];for(t.reset();t.nextPath();){const e=[];for(;t.nextPoint();)e.push([t.x,t.y]);n.push(e)}return t.reset(),n}function s(t){const n=[];for(;t.nextPoint();)n.push([t.x,t.y]);return t.seekPathStart(),n}e.d(n,{A:()=>s,x:()=>i})},537:(t,n,e)=>{e.d(n,{B$:()=>m,LJ:()=>g,Pj:()=>d,Rg:()=>p,Yz:()=>y,z8:()=>f});var i=e(19419);function s(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function r(t){return void 0!==t.points}function a(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths}function h(t){return void 0!==t.rings}function l(t){return function(n,e){return null==n?e:null==e?n:t(n,e)}}const u=l(Math.min),c=l(Math.max);function p(t,n){return o(n)?y(t,n.paths,!1,!1):h(n)?y(t,n.rings,!1,!1):r(n)?d(t,n.points,!1,!1,!1,!1):s(n)?x(t,n):(a(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.x,t[3]=n.y),t)}function f(t){let n,e,s,r;for(t.reset(),n=s=1/0,e=r=-1/0;t.nextPath();){const i=m(t);n=Math.min(i[0],n),s=Math.min(i[1],s),e=Math.max(i[2],e),r=Math.max(i[3],r)}return(0,i.vt)([n,s,e,r])}function m(t){let n,e,s,r;for(n=s=1/0,e=r=-1/0;t.nextPoint();)n=Math.min(t.x,n),s=Math.min(t.y,s),e=Math.max(t.x,e),r=Math.max(t.y,r);return(0,i.vt)([n,s,e,r])}function g(t,n){return o(n)?y(t,n.paths,!0,!1):h(n)?y(t,n.rings,!0,!1):r(n)?d(t,n.points,!0,!1,!0,!1):s(n)?x(t,n,0,0,!0,!1):(a(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=n.x,t[4]=n.y,t[5]=n.z),t)}function y(t,n,e,i){const s=e?3:2;if(!n.length||!n[0].length)return null;let r,a,o,h,[l,p]=n[0][0],[f,m]=n[0][0];for(let t=0;t<n.length;t++){const g=n[t];for(let t=0;t<g.length;t++){const n=g[t],[y,x]=n;if(l=u(l,y),p=u(p,x),f=c(f,y),m=c(m,x),e&&n.length>2){const t=n[2];r=u(r,t),a=c(a,t)}if(i&&n.length>s){const t=n[s];o=u(r,t),h=c(a,t)}}}return e?i?(t[0]=l,t[1]=p,t[2]=r,t[3]=o,t[4]=f,t[5]=m,t[6]=a,t[7]=h,t.length=8,t):(t[0]=l,t[1]=p,t[2]=r,t[3]=f,t[4]=m,t[5]=a,t.length=6,t):i?(t[0]=l,t[1]=p,t[2]=o,t[3]=f,t[4]=m,t[5]=h,t.length=6,t):(t[0]=l,t[1]=p,t[2]=f,t[3]=m,t.length=4,t)}function x(t,n,e,i,s,r){const a=n.xmin,o=n.xmax,h=n.ymin,l=n.ymax;let u=n.zmin,c=n.zmax,p=n.mmin,f=n.mmax;return s?(u=u||0,c=c||0,r?(p=p||0,f=f||0,t[0]=a,t[1]=h,t[2]=u,t[3]=p,t[4]=o,t[5]=l,t[6]=c,t[7]=f,t):(t[0]=a,t[1]=h,t[2]=u,t[3]=o,t[4]=l,t[5]=c,t)):r?(p=p||0,f=f||0,t[0]=a,t[1]=h,t[2]=p,t[3]=o,t[4]=l,t[5]=f,t):(t[0]=a,t[1]=h,t[2]=o,t[3]=l,t)}function d(t,n,e,i,s,r){const a=e?3:2,o=i&&r,h=e&&s;if(!n.length||!n[0].length)return null;let l,p,f,m,[g,y]=n[0],[x,d]=n[0];for(let t=0;t<n.length;t++){const e=n[t],[i,s]=e;if(g=u(g,i),y=u(y,s),x=c(x,i),d=c(d,s),h&&e.length>2){const t=e[2];l=u(l,t),p=c(p,t)}if(o&&e.length>a){const t=e[a];f=u(l,t),m=c(p,t)}}return s?(l=l||0,p=p||0,r?(f=f||0,m=m||0,t[0]=g,t[1]=y,t[2]=l,t[3]=f,t[4]=x,t[5]=d,t[6]=p,t[7]=m,t):(t[0]=g,t[1]=y,t[2]=l,t[3]=x,t[4]=d,t[5]=p,t)):r?(f=f||0,m=m||0,t[0]=g,t[1]=y,t[2]=f,t[3]=x,t[4]=d,t[5]=m,t):(t[0]=g,t[1]=y,t[2]=x,t[3]=d,t)}},12359:(t,n,e)=>{e.d(n,{TP:()=>u,Z4:()=>r,l8:()=>a,w2:()=>h});var i=e(51118),s=e(95108);function r(t){return t?t.hasZ?[t.xmax-t.xmin/2,t.ymax-t.ymin/2,t.zmax-t.zmin/2]:[t.xmax-t.xmin/2,t.ymax-t.ymin/2]:null}function a(t){return t?function(t,n){if(!t?.length)return null;const e=[],i=[],r=n?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let e=0,s=t.length;e<s;e++){const s=o(t[e],n,r);s&&i.push(s)}if(i.sort(((t,e)=>{let i=t[2]-e[2];return 0===i&&n&&(i=t[4]-e[4]),i})),i.length&&(e[0]=i[0][0],e[1]=i[0][1],n&&(e[2]=i[0][3]),(e[0]<r[0]||e[0]>r[1]||e[1]<r[2]||e[1]>r[3]||n&&(e[2]<r[4]||e[2]>r[5]))&&(e.length=0)),!e.length){const i=t[0]&&t[0].length?function(t,n){const e=n?[0,0,0]:[0,0],i=n?[0,0,0]:[0,0];let r=0,a=0,o=0,h=0;for(let l=0,u=t.length;l<u-1;l++){const u=t[l],c=t[l+1];if(u&&c){e[0]=u[0],e[1]=u[1],i[0]=c[0],i[1]=c[1],n&&u.length>2&&c.length>2&&(e[2]=u[2],i[2]=c[2]);const t=(0,s.R3)(e,i);if(t){r+=t;const e=(0,s.t9)(u,c);a+=t*e[0],o+=t*e[1],n&&e.length>2&&(h+=t*e[2])}}}return r>0?n?[a/r,o/r,h/r]:[a/r,o/r]:t.length?t[0]:null}(t[0],n):null;if(!i)return null;e[0]=i[0],e[1]=i[1],n&&i.length>2&&(e[2]=i[2])}return e}(t.rings,t.hasZ??!1):null}function o(t,n,e){let i=0,s=0,r=0,a=0,o=0;const h=t.length?t[0][0]:0,l=t.length?t[0][1]:0,u=t.length&&n?t[0][2]:0;for(let c=0;c<t.length;c++){const p=t[c],f=t[(c+1)%t.length],[m,g,y]=p,x=m-h,d=g-l,[v,P,R]=f,A=v-h,I=P-l,M=x*I-A*d;if(a+=M,i+=(x+A)*M,s+=(d+I)*M,n&&p.length>2&&f.length>2){const t=y-u,n=R-u,e=x*n-A*t;r+=(t+n)*e,o+=e}m<e[0]&&(e[0]=m),m>e[1]&&(e[1]=m),g<e[2]&&(e[2]=g),g>e[3]&&(e[3]=g),n&&(y<e[4]&&(e[4]=y),y>e[5]&&(e[5]=y))}if(a>0&&(a*=-1),o>0&&(o*=-1),!a)return null;a*=.5,o*=.5;const c=[i/(6*a)+h,s/(6*a)+l,a];return n&&(e[4]===e[5]||0===o?(c[3]=(e[4]+e[5])/2,c[4]=0):(c[3]=r/(6*o)+u,c[4]=o)),c}function h(t,n){let e=0,i=0,s=0;t.nextPoint();const r=t.pathSize?t.x:0,a=t.pathSize?t.y:0;for(let o=0;o<t.pathSize;o++){t.seekInPath(o);const h=[t.x,t.y];t.seekInPath((o+1)%t.pathSize);const l=[t.x,t.y],[u,c]=h,p=u-r,f=c-a,[m,g]=l,y=m-r,x=g-a,d=p*x-y*f;s+=d,e+=(p+y)*d,i+=(f+x)*d,u<n[0]&&(n[0]=u),u>n[1]&&(n[1]=u),c<n[2]&&(n[2]=c),c>n[3]&&(n[3]=c)}return s>0&&(s*=-1),s?(s*=.5,[e/(6*s)+r,i/(6*s)+a,s]):null}const l=1e-6;function u(t){let n=0;for(t.reset();t.nextPath();)n+=t.getCurrentRingArea();if(n<l){const n=function(t){const{hasZ:n,totalSize:e}=t;if(0===e)return null;const r=[],a=[],h=n?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];for(t.reset();t.nextPath();){const n=o((0,i.A)(t),t.hasZ,h);n&&a.push(n)}if(a.sort(((t,e)=>{let i=t[2]-e[2];return 0===i&&n&&(i=t[4]-e[4]),i})),a.length&&(r[0]=a[0][0],r[1]=a[0][1],n&&(r[2]=a[0][3]),(r[0]<h[0]||r[0]>h[1]||r[1]<h[2]||r[1]>h[3]||n&&(r[2]<h[4]||r[2]>h[5]))&&(r.length=0)),!r.length){t.reset(),t.nextPath();const e=t.pathSize?function(t){const{hasZ:n}=t,e=n?[0,0,0]:[0,0],i=n?[0,0,0]:[0,0];let r=0,a=0,o=0,h=0;if(t.nextPoint()){let l=t.x,u=t.y,c=t.z;for(;t.nextPoint();){const p=t.x,f=t.y,m=t.z;e[0]=l,e[1]=u,i[0]=p,i[1]=f,n&&(e[2]=c,i[2]=m);const g=(0,s.R3)(e,i);if(g){r+=g;const t=(0,s.t9)(e,i);a+=g*t[0],o+=g*t[1],n&&t.length>2&&(h+=g*t[2])}l=p,u=f,c=m}}return r>0?n?[a/r,o/r,h/r]:[a/r,o/r]:t.pathSize?(t.seekPathStart(),t.nextPoint(),[t.x,t.y]):null}(t):null;if(!e)return null;r[0]=e[0],r[1]=e[1],n&&e.length>2&&(r[2]=e[2])}return r}(t);return n?[n[0],n[1]]:null}const e=[0,0];if(t.reset(),!t.nextPath()||!t.nextPoint())return null;const r=[t.x,t.y];for(t.reset();t.nextPath();)p(e,r,t);return e[0]*=1/n,e[1]*=1/n,e[0]+=r[0],e[1]+=r[1],e}const c=1/3;function p(t,n,e){if(!t||!e||e.pathSize<3)return null;e.nextPoint();const i=e.x,s=e.y;e.nextPoint();let r,a=e.x-i,o=e.y-s,h=0,l=0;for(;e.nextPoint();)h=e.x-i,l=e.y-s,r=.5*c*(h*o-l*a),t[0]+=r*(a+h),t[1]+=r*(o+l),a=h,o=l;const u=e.getCurrentRingArea(),p=[i,s];return p[0]-=n[0],p[1]-=n[1],p[0]*=u,p[1]*=u,t[0]+=p[0],t[1]+=p[1],t}},90634:(t,n,e)=>{e.d(n,{HA:()=>u,Z3:()=>p,v:()=>c});var i=e(537);const s=[];function r(t,n,e,i){return{xmin:t,ymin:n,xmax:e,ymax:i}}function a(t,n,e,i,s,r){return{xmin:t,ymin:n,zmin:e,xmax:i,ymax:s,zmax:r}}function o(t,n,e,i,s,r){return{xmin:t,ymin:n,mmin:e,xmax:i,ymax:s,mmax:r}}function h(t,n,e,i,s,r,a,o){return{xmin:t,ymin:n,zmin:e,mmin:i,xmax:s,ymax:r,zmax:a,mmax:o}}function l(t,n=!1,e=!1){return n?e?h(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]):a(t[0],t[1],t[2],t[3],t[4],t[5]):e?o(t[0],t[1],t[2],t[3],t[4],t[5]):r(t[0],t[1],t[2],t[3])}function u(t){return t?function(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}(t)?t:function(t){return void 0!==t.x&&void 0!==t.y}(t)?function(t){const{x:n,y:e,z:i,m:s}=t,l=null!=s;return null!=i?l?h(n,e,i,s,n,e,i,s):a(n,e,i,n,e,i):l?o(n,e,s,n,e,s):r(n,e,n,e)}(t):function(t){return void 0!==t.rings}(t)?c(t):function(t){return void 0!==t.paths}(t)?p(t):function(t){return void 0!==t.points}(t)?function(t){const{hasZ:n,hasM:e,points:r}=t;return l((0,i.Pj)(s,r,n??!1,e??!1),n,e)}(t):null:null}function c(t){const{hasZ:n,hasM:e,rings:r}=t,a=(0,i.Yz)(s,r,n??!1,e??!1);return a?l(a,n,e):null}function p(t){const{hasZ:n,hasM:e,paths:r}=t,a=(0,i.Yz)(s,r,n??!1,e??!1);return a?l(a,n,e):null}},56993:(t,n,e)=>{function i(t,n,e=!1){let{hasM:i,hasZ:s}=t;Array.isArray(n)?4!==n.length||i||s?3===n.length&&e&&!i?(s=!0,i=!1):3===n.length&&i&&s&&(i=!1,s=!1):(i=!0,s=!0):(s=!s&&n.hasZ&&(!i||n.hasM),i=!i&&n.hasM&&(!s||n.hasZ)),t.hasZ=s,t.hasM=i}e.d(n,{h:()=>i})}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1882],{48526:(t,n,e)=>{e.d(n,{A:()=>g});var i,s=e(90237),r=e(4718),a=e(10107),o=(e(44208),e(53966),e(40608)),h=e(43937),l=e(5443),u=e(91075),c=e(86738),p=e(56993);function f(t){return(n,e)=>null==n?e:null==e?n:t(n,e)}let m=i=class extends u.A{constructor(...t){super(...t),this.points=[],this.type="multipoint"}normalizeCtorArgs(t,n){if(!t&&!n)return{};const e={};Array.isArray(t)?(e.points=t,e.spatialReference=n):function(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}(t)?e.spatialReference=t:(t.points&&(e.points=t.points),t.spatialReference&&(e.spatialReference=t.spatialReference),t.hasZ&&(e.hasZ=t.hasZ),t.hasM&&(e.hasM=t.hasM));const i=e.points?.[0];return i&&(void 0===e.hasZ&&void 0===e.hasM?(e.hasZ=i.length>2,e.hasM=!1):void 0===e.hasZ?e.hasZ=i.length>3:void 0===e.hasM&&(e.hasM=i.length>3)),e}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=this.points;if(!t.length)return null;const n=new l.A,e=this.hasZ,i=this.hasM,s=e?3:2,r=t[0],a=f(Math.min),o=f(Math.max);let h,u,c,p,[m,g]=r,[y,x]=r;for(let n=0,r=t.length;n<r;n++){const r=t[n],[l,f]=r;if(m=a(m,l),g=a(g,f),y=o(y,l),x=o(x,f),e&&r.length>2){const t=r[2];h=a(h,t),c=o(c,t)}if(i&&r.length>s){const t=r[s];u=a(u,t),p=o(p,t)}}return n.xmin=m,n.ymin=g,n.xmax=y,n.ymax=x,n.spatialReference=this.spatialReference,e?(n.zmin=h,n.zmax=c):(n.zmin=void 0,n.zmax=void 0),i?(n.mmin=u,n.mmax=p):(n.mmin=void 0,n.mmax=void 0),n}writePoints(t,n){n.points=(0,r.o8)(this.points)}addPoint(t){return(0,p.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}clone(){const t={points:(0,r.o8)(this.points),spatialReference:this.spatialReference};return this.hasZ&&(t.hasZ=!0),this.hasM&&(t.hasM=!0),new i(t)}getPoint(t){if(!this._validateInputs(t))return null;const n=this.points[t],e={x:n[0],y:n[1],spatialReference:this.spatialReference};let i=2;return this.hasZ&&(e.z=n[2],i=3),this.hasM&&(e.m=n[i]),new c.A(e)}removePoint(t){if(!this._validateInputs(t))return null;const n=new c.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),n}setPoint(t,n){return this._validateInputs(t)?((0,p.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.points[t]=n,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,s._)([(0,a.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,s._)([(0,a.MZ)()],m.prototype,"extent",null),(0,s._)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,s._)([(0,h.K)("points")],m.prototype,"writePoints",null),m=i=(0,s._)([(0,o.$)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0;const g=m},39829:(t,n,e)=>{e.d(n,{A:()=>I});var i,s=e(90237),r=e(4576),a=e(4718),o=e(10107),h=(e(44208),e(53966),e(40608)),l=e(43937),u=e(5443),c=e(91075),p=e(86738),f=e(16930),m=e(12359),g=e(94078),y=e(95108),x=e(90634),d=e(12176),v=e(28735),P=e(56993);function R(t){return!Array.isArray(t[0])}let A=i=class extends c.A{static fromExtent(t){const n=t.clone().normalize(),{spatialReference:e}=t;let s=!1,r=!1;for(const t of n)t.hasZ&&(s=!0),t.hasM&&(r=!0);const a={rings:n.map((t=>{const n=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(s&&t.hasZ){const e=t.zmin+.5*(t.zmax-t.zmin);for(let t=0;t<n.length;t++)n[t].push(e)}if(r&&t.hasM){const e=t.mmin+.5*(t.mmax-t.mmin);for(let t=0;t<n.length;t++)n[t].push(e)}return n})),spatialReference:e};return s&&(a.hasZ=!0),r&&(a.hasM=!0),new i(a)}constructor(t){super(function(t){if(!t)return;let{rings:n,hasM:e,hasZ:i,spatialReference:s}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:i??=!0,e??=!0;break;case 3:i??=!0!==e,e??=!i;break;default:i??=!1,e??=!1}return s??=f.A.WGS84,{...t,hasM:e,hasZ:i,rings:n,spatialReference:s}}(t)),this.curveRings=void 0,this.rings=[],this.type="polygon"}get cache(){return this.commitProperty("curveRings"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("rings"),this.commitProperty("spatialReference"),{}}get centroid(){const t=(0,m.l8)(this);if(!t||isNaN(t[0])||isNaN(t[1])||this.hasZ&&isNaN(t[2]))return null;const n=new p.A;return n.x=t[0],n.y=t[1],n.spatialReference=this.spatialReference,this.hasZ&&(n.z=t[2]),n}writeCurveRings(t,n){n.curveRings=(0,a.o8)(t)}get extent(){const t=(0,x.v)(this),{spatialReference:n}=this;return t?new u.A({...t,spatialReference:n}):null}get isSelfIntersecting(){return(0,d.A3)(this.rings)}writeRings(t,n){n.rings=(0,a.o8)(this.rings)}addRing(t){if(!t)return;const n=this.rings,e=n.length;if(R(t)){const i=[];for(let n=0,e=t.length;n<e;n++)i[n]=t[n].toArray();n[e]=i}else n[e]=t.slice();return this.notifyChange("rings"),this}clone(){const t=new i;return t.spatialReference=this.spatialReference,t.rings=(0,a.o8)(this.rings),t.curveRings=(0,a.o8)(this.curveRings),t.hasZ=this.hasZ,t.hasM=this.hasM,t}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,e=t.spatialReference;if(null!=n!=(null!=e))return!1;if(null!=n&&null!=e&&!n.equals(e))return!1;if(this.rings.length!==t.rings.length)return!1;const i=([t,n,e,i],[s,r,a,o])=>t===s&&n===r&&(null==e&&null==a||e===a)&&(null==i&&null==o||i===o);for(let n=0;n<this.rings.length;n++){const e=this.rings[n],s=t.rings[n];if(!(0,r.aI)(e,s,i))return!1}return!0}contains(t){if(!t)return!1;const n=(0,v.Cv)(t,this.spatialReference);return(0,g.m3)(this,null!=n?n:t)}isClockwise(t){const n=R(t)?t.map((t=>this.hasZ?this.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])):t;return(0,y.$3)(n)}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.rings[t][n],i=this.hasZ,s=this.hasM;return i&&!s?new p.A(e[0],e[1],e[2],void 0,this.spatialReference):s&&!i?new p.A(e[0],e[1],void 0,e[2],this.spatialReference):i&&s?new p.A(e[0],e[1],e[2],e[3],this.spatialReference):new p.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,P.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t].splice(n,0,e),this.notifyChange("rings"),this):this}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new p.A(this.rings[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("rings"),e}removeRing(t){if(!this._validateInputs(t,null))return null;const n=this.rings.splice(t,1)[0],e=this.spatialReference,i=n.map((t=>new p.A(t,e)));return this.notifyChange("rings"),i}setPoint(t,n,e){return this._validateInputs(t,n)?((0,P.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t][n]=e,this.notifyChange("rings"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.rings.length)return!1;if(null!=n){const i=this.rings[t];if(e&&(n<0||n>i.length))return!1;if(!e&&(n<0||n>=i.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,s._)([(0,o.MZ)({readOnly:!0})],A.prototype,"cache",null),(0,s._)([(0,o.MZ)({readOnly:!0})],A.prototype,"centroid",null),(0,s._)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],A.prototype,"curveRings",void 0),(0,s._)([(0,l.K)("curveRings")],A.prototype,"writeCurveRings",null),(0,s._)([(0,o.MZ)({readOnly:!0})],A.prototype,"extent",null),(0,s._)([(0,o.MZ)({readOnly:!0})],A.prototype,"isSelfIntersecting",null),(0,s._)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],A.prototype,"rings",void 0),(0,s._)([(0,l.K)("rings")],A.prototype,"writeRings",null),A=i=(0,s._)([(0,h.$)("esri.geometry.Polygon")],A);const I=A;A.prototype.toJSON.isDefaultToJSON=!0},82799:(t,n,e)=>{e.d(n,{A:()=>y});var i,s=e(90237),r=e(4718),a=e(10107),o=(e(44208),e(53966),e(40608)),h=e(43937),l=e(5443),u=e(91075),c=e(86738),p=e(16930),f=e(90634),m=e(56993);let g=i=class extends u.A{constructor(t){super(function(t){if(!t)return;let{paths:n,hasM:e,hasZ:i,spatialReference:s}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:i??=!0,e??=!0;break;case 3:i??=!0!==e,e??=!i;break;default:i??=!1,e??=!1}return s??=p.A.WGS84,{...t,hasM:e,hasZ:i,paths:n,spatialReference:s}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,n){n.curvePaths=(0,r.o8)(t)}get extent(){const t=(0,f.Z3)(this),{spatialReference:n}=this;return t?new l.A({...t,spatialReference:n}):null}writePaths(t,n){n.paths=(0,r.o8)(this.paths)}addPath(t){if(!t)return;const n=this.paths,e=n.length;if(function(t){return!Array.isArray(t[0])}(t)){const i=[];for(let n=0,e=t.length;n<e;n++)i[n]=t[n].toArray();n[e]=i}else n[e]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new i;return t.spatialReference=this.spatialReference,t.paths=(0,r.o8)(this.paths),t.curvePaths=(0,r.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.paths[t][n],i=this.hasZ,s=this.hasM;return i&&!s?new c.A(e[0],e[1],e[2],void 0,this.spatialReference):s&&!i?new c.A(e[0],e[1],void 0,e[2],this.spatialReference):i&&s?new c.A(e[0],e[1],e[2],e[3],this.spatialReference):new c.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,m.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t].splice(n,0,e),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const n=this.paths.splice(t,1)[0],e=this.spatialReference,i=n.map((t=>new c.A(t,e)));return this.notifyChange("paths"),i}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new c.A(this.paths[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("paths"),e}setPoint(t,n,e){return this._validateInputs(t,n)?((0,m.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t][n]=e,this.notifyChange("paths"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=n){const i=this.paths[t];if(e&&(n<0||n>i.length))return!1;if(!e&&(n<0||n>=i.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,s._)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,s._)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],g.prototype,"curvePaths",void 0),(0,s._)([(0,h.K)("curvePaths")],g.prototype,"writeCurvePaths",null),(0,s._)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,s._)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],g.prototype,"paths",void 0),(0,s._)([(0,h.K)("paths")],g.prototype,"writePaths",null),g=i=(0,s._)([(0,o.$)("esri.geometry.Polyline")],g);const y=g;g.prototype.toJSON.isDefaultToJSON=!0},51118:(t,n,e)=>{function i(t){const n=[];for(t.reset();t.nextPath();){const e=[];for(;t.nextPoint();)e.push([t.x,t.y]);n.push(e)}return t.reset(),n}function s(t){const n=[];for(;t.nextPoint();)n.push([t.x,t.y]);return t.seekPathStart(),n}e.d(n,{A:()=>s,x:()=>i})},537:(t,n,e)=>{e.d(n,{B$:()=>m,LJ:()=>g,Pj:()=>d,Rg:()=>p,Yz:()=>y,z8:()=>f});var i=e(19419);function s(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function r(t){return void 0!==t.points}function a(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths}function h(t){return void 0!==t.rings}function l(t){return function(n,e){return null==n?e:null==e?n:t(n,e)}}const u=l(Math.min),c=l(Math.max);function p(t,n){return o(n)?y(t,n.paths,!1,!1):h(n)?y(t,n.rings,!1,!1):r(n)?d(t,n.points,!1,!1,!1,!1):s(n)?x(t,n):(a(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.x,t[3]=n.y),t)}function f(t){let n,e,s,r;for(t.reset(),n=s=1/0,e=r=-1/0;t.nextPath();){const i=m(t);n=Math.min(i[0],n),s=Math.min(i[1],s),e=Math.max(i[2],e),r=Math.max(i[3],r)}return(0,i.vt)([n,s,e,r])}function m(t){let n,e,s,r;for(n=s=1/0,e=r=-1/0;t.nextPoint();)n=Math.min(t.x,n),s=Math.min(t.y,s),e=Math.max(t.x,e),r=Math.max(t.y,r);return(0,i.vt)([n,s,e,r])}function g(t,n){return o(n)?y(t,n.paths,!0,!1):h(n)?y(t,n.rings,!0,!1):r(n)?d(t,n.points,!0,!1,!0,!1):s(n)?x(t,n,0,0,!0,!1):(a(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=n.x,t[4]=n.y,t[5]=n.z),t)}function y(t,n,e,i){const s=e?3:2;if(!n.length||!n[0].length)return null;let r,a,o,h,[l,p]=n[0][0],[f,m]=n[0][0];for(let t=0;t<n.length;t++){const g=n[t];for(let t=0;t<g.length;t++){const n=g[t],[y,x]=n;if(l=u(l,y),p=u(p,x),f=c(f,y),m=c(m,x),e&&n.length>2){const t=n[2];r=u(r,t),a=c(a,t)}if(i&&n.length>s){const t=n[s];o=u(r,t),h=c(a,t)}}}return e?i?(t[0]=l,t[1]=p,t[2]=r,t[3]=o,t[4]=f,t[5]=m,t[6]=a,t[7]=h,t.length=8,t):(t[0]=l,t[1]=p,t[2]=r,t[3]=f,t[4]=m,t[5]=a,t.length=6,t):i?(t[0]=l,t[1]=p,t[2]=o,t[3]=f,t[4]=m,t[5]=h,t.length=6,t):(t[0]=l,t[1]=p,t[2]=f,t[3]=m,t.length=4,t)}function x(t,n,e,i,s,r){const a=n.xmin,o=n.xmax,h=n.ymin,l=n.ymax;let u=n.zmin,c=n.zmax,p=n.mmin,f=n.mmax;return s?(u=u||0,c=c||0,r?(p=p||0,f=f||0,t[0]=a,t[1]=h,t[2]=u,t[3]=p,t[4]=o,t[5]=l,t[6]=c,t[7]=f,t):(t[0]=a,t[1]=h,t[2]=u,t[3]=o,t[4]=l,t[5]=c,t)):r?(p=p||0,f=f||0,t[0]=a,t[1]=h,t[2]=p,t[3]=o,t[4]=l,t[5]=f,t):(t[0]=a,t[1]=h,t[2]=o,t[3]=l,t)}function d(t,n,e,i,s,r){const a=e?3:2,o=i&&r,h=e&&s;if(!n.length||!n[0].length)return null;let l,p,f,m,[g,y]=n[0],[x,d]=n[0];for(let t=0;t<n.length;t++){const e=n[t],[i,s]=e;if(g=u(g,i),y=u(y,s),x=c(x,i),d=c(d,s),h&&e.length>2){const t=e[2];l=u(l,t),p=c(p,t)}if(o&&e.length>a){const t=e[a];f=u(l,t),m=c(p,t)}}return s?(l=l||0,p=p||0,r?(f=f||0,m=m||0,t[0]=g,t[1]=y,t[2]=l,t[3]=f,t[4]=x,t[5]=d,t[6]=p,t[7]=m,t):(t[0]=g,t[1]=y,t[2]=l,t[3]=x,t[4]=d,t[5]=p,t)):r?(f=f||0,m=m||0,t[0]=g,t[1]=y,t[2]=f,t[3]=x,t[4]=d,t[5]=m,t):(t[0]=g,t[1]=y,t[2]=x,t[3]=d,t)}},12359:(t,n,e)=>{e.d(n,{TP:()=>u,Z4:()=>r,l8:()=>a,w2:()=>h});var i=e(51118),s=e(95108);function r(t){return t?t.hasZ?[t.xmax-t.xmin/2,t.ymax-t.ymin/2,t.zmax-t.zmin/2]:[t.xmax-t.xmin/2,t.ymax-t.ymin/2]:null}function a(t){return t?function(t,n){if(!t?.length)return null;const e=[],i=[],r=n?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let e=0,s=t.length;e<s;e++){const s=o(t[e],n,r);s&&i.push(s)}if(i.sort(((t,e)=>{let i=t[2]-e[2];return 0===i&&n&&(i=t[4]-e[4]),i})),i.length&&(e[0]=i[0][0],e[1]=i[0][1],n&&(e[2]=i[0][3]),(e[0]<r[0]||e[0]>r[1]||e[1]<r[2]||e[1]>r[3]||n&&(e[2]<r[4]||e[2]>r[5]))&&(e.length=0)),!e.length){const i=t[0]&&t[0].length?function(t,n){const e=n?[0,0,0]:[0,0],i=n?[0,0,0]:[0,0];let r=0,a=0,o=0,h=0;for(let l=0,u=t.length;l<u-1;l++){const u=t[l],c=t[l+1];if(u&&c){e[0]=u[0],e[1]=u[1],i[0]=c[0],i[1]=c[1],n&&u.length>2&&c.length>2&&(e[2]=u[2],i[2]=c[2]);const t=(0,s.R3)(e,i);if(t){r+=t;const e=(0,s.t9)(u,c);a+=t*e[0],o+=t*e[1],n&&e.length>2&&(h+=t*e[2])}}}return r>0?n?[a/r,o/r,h/r]:[a/r,o/r]:t.length?t[0]:null}(t[0],n):null;if(!i)return null;e[0]=i[0],e[1]=i[1],n&&i.length>2&&(e[2]=i[2])}return e}(t.rings,t.hasZ??!1):null}function o(t,n,e){let i=0,s=0,r=0,a=0,o=0;const h=t.length?t[0][0]:0,l=t.length?t[0][1]:0,u=t.length&&n?t[0][2]:0;for(let c=0;c<t.length;c++){const p=t[c],f=t[(c+1)%t.length],[m,g,y]=p,x=m-h,d=g-l,[v,P,R]=f,A=v-h,I=P-l,M=x*I-A*d;if(a+=M,i+=(x+A)*M,s+=(d+I)*M,n&&p.length>2&&f.length>2){const t=y-u,n=R-u,e=x*n-A*t;r+=(t+n)*e,o+=e}m<e[0]&&(e[0]=m),m>e[1]&&(e[1]=m),g<e[2]&&(e[2]=g),g>e[3]&&(e[3]=g),n&&(y<e[4]&&(e[4]=y),y>e[5]&&(e[5]=y))}if(a>0&&(a*=-1),o>0&&(o*=-1),!a)return null;a*=.5,o*=.5;const c=[i/(6*a)+h,s/(6*a)+l,a];return n&&(e[4]===e[5]||0===o?(c[3]=(e[4]+e[5])/2,c[4]=0):(c[3]=r/(6*o)+u,c[4]=o)),c}function h(t,n){let e=0,i=0,s=0;t.nextPoint();const r=t.pathSize?t.x:0,a=t.pathSize?t.y:0;for(let o=0;o<t.pathSize;o++){t.seekInPath(o);const h=[t.x,t.y];t.seekInPath((o+1)%t.pathSize);const l=[t.x,t.y],[u,c]=h,p=u-r,f=c-a,[m,g]=l,y=m-r,x=g-a,d=p*x-y*f;s+=d,e+=(p+y)*d,i+=(f+x)*d,u<n[0]&&(n[0]=u),u>n[1]&&(n[1]=u),c<n[2]&&(n[2]=c),c>n[3]&&(n[3]=c)}return s>0&&(s*=-1),s?(s*=.5,[e/(6*s)+r,i/(6*s)+a,s]):null}const l=1e-6;function u(t){let n=0;for(t.reset();t.nextPath();)n+=t.getCurrentRingArea();if(n<l){const n=function(t){const{hasZ:n,totalSize:e}=t;if(0===e)return null;const r=[],a=[],h=n?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];for(t.reset();t.nextPath();){const n=o((0,i.A)(t),t.hasZ,h);n&&a.push(n)}if(a.sort(((t,e)=>{let i=t[2]-e[2];return 0===i&&n&&(i=t[4]-e[4]),i})),a.length&&(r[0]=a[0][0],r[1]=a[0][1],n&&(r[2]=a[0][3]),(r[0]<h[0]||r[0]>h[1]||r[1]<h[2]||r[1]>h[3]||n&&(r[2]<h[4]||r[2]>h[5]))&&(r.length=0)),!r.length){t.reset(),t.nextPath();const e=t.pathSize?function(t){const{hasZ:n}=t,e=n?[0,0,0]:[0,0],i=n?[0,0,0]:[0,0];let r=0,a=0,o=0,h=0;if(t.nextPoint()){let l=t.x,u=t.y,c=t.z;for(;t.nextPoint();){const p=t.x,f=t.y,m=t.z;e[0]=l,e[1]=u,i[0]=p,i[1]=f,n&&(e[2]=c,i[2]=m);const g=(0,s.R3)(e,i);if(g){r+=g;const t=(0,s.t9)(e,i);a+=g*t[0],o+=g*t[1],n&&t.length>2&&(h+=g*t[2])}l=p,u=f,c=m}}return r>0?n?[a/r,o/r,h/r]:[a/r,o/r]:t.pathSize?(t.seekPathStart(),t.nextPoint(),[t.x,t.y]):null}(t):null;if(!e)return null;r[0]=e[0],r[1]=e[1],n&&e.length>2&&(r[2]=e[2])}return r}(t);return n?[n[0],n[1]]:null}const e=[0,0];if(t.reset(),!t.nextPath()||!t.nextPoint())return null;const r=[t.x,t.y];for(t.reset();t.nextPath();)p(e,r,t);return e[0]*=1/n,e[1]*=1/n,e[0]+=r[0],e[1]+=r[1],e}const c=1/3;function p(t,n,e){if(!e||e.pathSize<3)return null;e.nextPoint();const i=e.x,s=e.y;e.nextPoint();let r,a=e.x-i,o=e.y-s,h=0,l=0;for(;e.nextPoint();)h=e.x-i,l=e.y-s,r=.5*c*(h*o-l*a),t[0]+=r*(a+h),t[1]+=r*(o+l),a=h,o=l;const u=e.getCurrentRingArea(),p=[i,s];return p[0]-=n[0],p[1]-=n[1],p[0]*=u,p[1]*=u,t[0]+=p[0],t[1]+=p[1],t}},90634:(t,n,e)=>{e.d(n,{HA:()=>u,Z3:()=>p,v:()=>c});var i=e(537);const s=[];function r(t,n,e,i){return{xmin:t,ymin:n,xmax:e,ymax:i}}function a(t,n,e,i,s,r){return{xmin:t,ymin:n,zmin:e,xmax:i,ymax:s,zmax:r}}function o(t,n,e,i,s,r){return{xmin:t,ymin:n,mmin:e,xmax:i,ymax:s,mmax:r}}function h(t,n,e,i,s,r,a,o){return{xmin:t,ymin:n,zmin:e,mmin:i,xmax:s,ymax:r,zmax:a,mmax:o}}function l(t,n=!1,e=!1){return n?e?h(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]):a(t[0],t[1],t[2],t[3],t[4],t[5]):e?o(t[0],t[1],t[2],t[3],t[4],t[5]):r(t[0],t[1],t[2],t[3])}function u(t){return t?function(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}(t)?t:function(t){return void 0!==t.x&&void 0!==t.y}(t)?function(t){const{x:n,y:e,z:i,m:s}=t,l=null!=s;return null!=i?l?h(n,e,i,s,n,e,i,s):a(n,e,i,n,e,i):l?o(n,e,s,n,e,s):r(n,e,n,e)}(t):function(t){return void 0!==t.rings}(t)?c(t):function(t){return void 0!==t.paths}(t)?p(t):function(t){return void 0!==t.points}(t)?function(t){const{hasZ:n,hasM:e,points:r}=t;return l((0,i.Pj)(s,r,n??!1,e??!1),n,e)}(t):null:null}function c(t){const{hasZ:n,hasM:e,rings:r}=t,a=(0,i.Yz)(s,r,n??!1,e??!1);return a?l(a,n,e):null}function p(t){const{hasZ:n,hasM:e,paths:r}=t,a=(0,i.Yz)(s,r,n??!1,e??!1);return a?l(a,n,e):null}},56993:(t,n,e)=>{function i(t,n,e=!1){let{hasM:i,hasZ:s}=t;Array.isArray(n)?4!==n.length||i||s?3===n.length&&e&&!i?(s=!0,i=!1):3===n.length&&i&&s&&(i=!1,s=!1):(i=!0,s=!0):(s=!s&&n.hasZ&&(!i||n.hasM),i=!i&&n.hasM&&(!s||n.hasZ)),t.hasZ=s,t.hasM=i}e.d(n,{h:()=>i})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7677],{563:(e,t,i)=>{i.d(t,{QueueProcessor:()=>u});var s=i(97768),r=i(74887),n=i(9775),o=i(32587),l=i(11932),a=i(44794);class c{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class u{constructor(e){this._schedule=null,this._deferreds=new o.A,this._controllers=new o.A,this._processingItems=new o.A,this._pausedSignal=(0,a.v)(!1),this.concurrency=1,e.concurrency&&(this.concurrency=e.concurrency),this._queue=new n.A(e.peeker),this.process=e.process}destroy(){this.clear(),this._schedule=(0,s.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&this._processingItems.size<this.concurrency}abort(e){const t=this._controllers.get(e);t&&t.abort()}clear(){this._queue.clear();const e=[];this._controllers.forEach((t=>e.push(t))),this._controllers.clear(),e.forEach((e=>e.abort())),this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach(((t,i)=>e(i)))}get(e){const t=this._deferreds.get(e);return t?t.promise:void 0}isOngoing(e){return this._processingItems.has(e)}has(e){return this._deferreds.has(e)}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){const i=this.get(e);if(i)return i;const s=new AbortController;let n=null;t&&(n=(0,r.u7)(t,(()=>s.abort())));const o=()=>{l.remove(),null!=n&&n.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()},l=(0,r.NY)(s.signal,(()=>{const t=this._processingItems.get(e);t&&t.controller.abort(),o(),a.reject((0,r.NK)())})),a=(0,r.Tw)();return this._deferreds.set(e,a),this._controllers.set(e,s),a.promise.then(o,o),this._queue.push(e),this._scheduleNext(),a.promise}last(){return this._queue.last()}lastPromise(){const e=this.last();return e?this.get(e):null}peek(){return this._queue.peek()}popLast(){const e=this._queue.popLast();return e&&(this._deferreds.get(e)?.reject((0,r.NK)()),this._removeItem(e)),e}reset(){const e=Array.from(this._processingItems.values());this._processingItems.clear();for(const t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){const e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.delete(e)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,l._)((()=>{this._schedule=null,this._next()})))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!!this._deferreds.get(e.item)&&this._processingItems.get(e.item)===e}_process(e){if(null==e)return;let t;const i=new AbortController,s=new c(e,i);this._processingItems.set(e,s);try{t=this.process(e,i.signal)}catch(e){this._processError(s,e)}(0,r.$X)(t)?(s.promise=t,t.then((e=>this._processResult(s,e)),(e=>this._processError(s,e)))):this._processResult(s,t)}}},32587:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(62788),r=i(95488);class n{constructor(e){this._observable=new r.I,this._map=new Map(e)}get size(){return(0,s.gc)(this._observable),this._map.size}clear(){this._map.size>0&&(this._map.clear(),this._observable.notify())}delete(e){const t=this._map.delete(e);return t&&this._observable.notify(),t}entries(){return(0,s.gc)(this._observable),this._map.entries()}forEach(e,t){(0,s.gc)(this._observable),this._map.forEach(((i,s)=>e.call(t,i,s,this)),t)}get(e){return(0,s.gc)(this._observable),this._map.get(e)}has(e){return(0,s.gc)(this._observable),this._map.has(e)}keys(){return(0,s.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._observable.notify(),this}values(){return(0,s.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,s.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}}},44794:(e,t,i)=>{i.d(t,{v:()=>l});var s=i(4718),r=i(62788),n=i(95488);class o{constructor(e,t){this._observable=new n.I,this._value=e,this._equalityFunction=t}get value(){return(0,r.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function l(e,t=s.gh){return new o(e,t)}},89015:(e,t,i)=>{i.d(t,{o:()=>N});var s=i(90237),r=i(78888),n=i(49186),o=i(53966),l=i(10107),a=i(56507),c=(i(44208),i(87811),i(93223)),u=i(36005),h=i(40608),d=i(86738),p=i(16930),f=i(21325),m=i(60694),y=i(10873),g=i(45617),x=i(43577),_=i(13868),b=i(22796),v=i(69409),w=i(87045),R=i(84169),I=i(77301),S=i(77359),M=i(6049),k=i(70834),T=i(6952),F=i(14636),A=i(12711),P=i(85676),z=i(94359),C=i(22048),J=i(4095);const N=e=>{let t=class extends e{constructor(...e){super(...e),this._isConstructedFromFunctionRaster=!1,this._rasterJobHandler={instance:null,refCount:0,connectionPromise:null},this.bandIds=null,this.copyright=null,this.interpolation=null,this.multidimensionalSubset=null,this.raster=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.spatialReference=null,this.symbolizer=null,this._isConstructedFromFunctionRaster="Function"===e[0]?.raster?.datasetFormat}get fullExtent(){return this.serviceRasterInfo?.extent}set multidimensionalDefinition(e){this._set("multidimensionalDefinition",e),this.updateRenderer()}set rasterFunction(e){"none"===e?.functionName?.toLowerCase()&&(e=void 0),this._set("rasterFunction",e),this.updateRasterFunction()}set url(e){this._set("url",(0,m.Jf)(e,o.A.getLogger(this)))}get renderer(){if("imagery-tile"!==this.type)return this.internalRenderer;const{activePresetRendererName:e,presetRenderers:t}=this;if(e){const i=t?.find((({name:t})=>t===e));return i?.renderer.clone()}return this.internalRenderer}set renderer(e){"imagery-tile"===this.type&&(this.activePresetRendererName=null),this.internalRenderer=e}set internalRenderer(e){null==e&&null==this.rasterFunction?this._configDefaultRenderer("override"):(this._set("internalRenderer",e),this.updateRenderer())}readRenderer(e,t,i){const s=t?.layerDefinition?.drawingInfo?.renderer;return(0,z.LF)(s,i)||void 0}async convertVectorFieldData(e,t){const{serviceRasterInfo:i}=this;if(null==e||!i)return null;const s=this._rasterJobHandler.instance,r=i.dataType;return s?s.convertVectorFieldData({pixelBlock:e,dataType:r},t):(0,F.FI)(e,r)}async computeStatisticsHistograms(e,t){await this.load(t),e=(0,a.PZ)(C.A,e).clone();const{serviceRasterInfo:i}=this;if(null==i)throw new n.A("imagery-tile-mixin:compute-statistics-histograms","serviceRasterInfo must be specified");const{geometry:s}=e;if(null==s)throw new n.A("imagery-tile-mixin:compute-statistics-histograms","geometry must be specified");let r=s;const{spatialReference:o}=i;s.spatialReference.equals(o)||(await(0,k.Hh)(),r="extent"===s.type?(0,k._l)(s,o):(0,k.uk)(s,o));const l=e.pixelSize??new d.A({x:i.pixelSize.x,y:i.pixelSize.y,spatialReference:o}),{extent:c,width:u,height:h}=(0,S.b7)(i,r,l),p=await this.fetchPixels(c,u,h,{...t,interpolation:"nearest"});if(null==p.pixelBlock)throw new n.A("imagery-tile-mixin:compute-statistics-histograms","failed to fetch pixels");const f=await(0,S.$Q)(p.pixelBlock,c,r),m=this._rasterJobHandler.instance;return m?m.computeStatisticsHistograms({pixelBlock:f},t):(0,T.eH)(f)}async createFlowMesh(e,t){const i=this._rasterJobHandler.instance;return i?i.createFlowMesh(e,t):(0,J.CW)(e.meshType,e.simulationSettings,e.flowData,null!=t.signal?t.signal:(new AbortController).signal)}normalizeRasterFetchOptions(e){const{multidimensionalInfo:t}=this.serviceRasterInfo??{};if(null==t)return e;const i=(0,I.XU)({rasterInfo:this.raster.rasterInfo,multidimensionalDefinition:e.multidimensionalDefinition||this.multidimensionalDefinition,timeExtent:e.timeExtent??this.timeExtent,multidimensionalSubset:this.multidimensionalSubset});return{...e,multidimensionalDefinition:i}}async updateRasterFunction(){return this.loaded&&"imagery-tile"===this.type&&(this.rasterFunction||this._cachedRasterFunctionJson)&&JSON.stringify(this.rasterFunction)!==JSON.stringify(this._cachedRasterFunctionJson)?(this._cachedRasterFunctionJson=this.rasterFunction?.toJSON(),this._rasterFunctionUpdatePromise=this._updateRasterFunction(),this._rasterFunctionUpdatePromise):this._rasterFunctionUpdatePromise}async updateRenderer(){const{loaded:e,symbolizer:t}=this;if(!e||!t||!this.renderer)return;const{rasterInfo:i}=this.raster,s=(0,I.ct)(i,{multidimensionalDefinition:this.multidimensionalDefinition,multidimensionalSubset:this.multidimensionalSubset}),r=s?.name,n=(0,A.$P)({...this.renderer.toJSON(),variableName:r});if(JSON.stringify(this._cachedRendererJson)===JSON.stringify(n))return;const o=this._rasterJobHandler.instance;o&&(t.rasterInfo=(0,A.m7)(i,r),t.rendererJSON=n,t.bind(),await o.updateSymbolizer(t),this._cachedRendererJson=n)}async applyRenderer(e,t){const i=e?.pixelBlock;if(!(null!=i&&i.pixels&&i.pixels.length>0))return null;let s;await this.updateRenderer();const r=this._rasterJobHandler.instance,n=this.bandIds??[];return s=r?await r.symbolize({...e,simpleStretchParams:t,bandIds:n}):this.symbolizer.symbolize({...e,simpleStretchParams:t,bandIds:n}),s}getTileUrl(e,t,i){return"RasterTileServer"===this.raster.datasetFormat?`${this.url}/tile/${e}/${t}/${i}`:""}getCompatibleTileInfo(e,t,i=!1){if(!this.loaded||null==t)return null;if(i&&e.equals(this.spatialReference))return this.tileInfo;const s=(0,f.Vp)(e);return w.A.create({size:256,spatialReference:e,origin:s?{x:s.origin[0],y:s.origin[1]}:{x:t.xmin,y:t.ymax}})}getCompatibleFullExtent(e){return this.loaded?(this._compatibleFullExtent?.spatialReference.equals(e)||(this._compatibleFullExtent=this.raster.computeExtent(e)),this._compatibleFullExtent):null}async fetchTile(e,t,s,n={}){if(i(this),n.requestAsImageElement){const i=this.getTileUrl(e,t,s);return(0,r.A)(i,{responseType:"image",query:{...this.refreshParameters,...this.raster.ioConfig.customFetchParameters},signal:n.signal}).then((e=>e.data))}const{serviceRasterInfo:o}=this;if(null!=o.multidimensionalInfo&&null==(n=this.normalizeRasterFetchOptions(n)).multidimensionalDefinition){const i=n.tileInfo||o.storageInfo.tileInfo;return{extent:this.raster.getTileExtentFromTileInfo(e,t,s,i),pixelBlock:null}}return await this._initJobHandler(),await this.updateRasterFunction(),"raster-shaded-relief"===this.renderer?.type&&(n={...n,buffer:{cols:1,rows:1}}),this.raster.fetchTile(e,t,s,n)}async fetchPixels(e,t,i,s={}){return null!=this.serviceRasterInfo.multidimensionalInfo&&null==(s=this.normalizeRasterFetchOptions(s)).multidimensionalDefinition?{extent:e,pixelBlock:null}:(await this._initJobHandler(),await this.updateRasterFunction(),t=Math.round(t),i=Math.round(i),this.raster.fetchPixels(e,t,i,s))}async identify(e,t={}){await this.load();const{raster:i,serviceRasterInfo:s}=this;if(null!=s?.multidimensionalInfo&&!(s.hasMultidimensionalTranspose&&((0,I.DY)(t.multidimensionalDefinition)||t.transposedVariableName||t.timeExtent)||null!=(t=this.normalizeRasterFetchOptions(t)).multidimensionalDefinition))return{location:e,value:null};const r=this.multidimensionalSubset?.areaOfInterest;if(r&&!r.contains(e))throw new n.A("imagery-tile-mixin:identify","the request cannot be fulfilled when falling outside of the multidimensional subset");return i.identify(e,t)}increaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount++}decreaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount--,this._rasterJobHandler.refCount<=0&&this._shutdownJobHandler()}hasStandardTime(){const e=this.serviceRasterInfo?.multidimensionalInfo;if(null==e||"standard-time"!==this.serviceRasterInfo?.dataType)return!1;const t=this.multidimensionalDefinition,i=t?.[0]?.variableName;return e.variables.some((e=>e.name===i&&(!t?.[0].dimensionName||e.dimensions.some((e=>"StdTime"===e.name)))))}getStandardTimeValue(e){return new Date(24*(e-25569)*3600*1e3).toString()}getMultidimensionalSubsetVariables(e){const t=e??this.serviceRasterInfo?.multidimensionalInfo;return(0,I.z2)(this.multidimensionalSubset,t)}_configDefaultSettings(){this._configDefaultInterpolation(),this.multidimensionalDefinition||(this.multidimensionalDefinition=(0,I.fy)(this.raster.rasterInfo,{multidimensionalSubset:this.multidimensionalSubset})),this.rasterFunction&&"Function"===this.raster.datasetFormat&&(this._cachedRasterFunctionJson=this.rasterFunction.toJSON()),this._configDefaultRenderer()}_initJobHandler(){if(null!=this._rasterJobHandler.connectionPromise)return this._rasterJobHandler.connectionPromise;const e=new v.A;return this._rasterJobHandler.connectionPromise=e.initialize().then((async()=>{i(this),this._rasterJobHandler.instance=e,this.raster.rasterJobHandler=e,"Function"===this.raster.datasetFormat&&this.raster.syncJobHandler(),this.rasterFunction&&await this.updateRasterFunction().catch((()=>{})),this.renderer&&this.updateRenderer()})).catch((()=>{})),this._rasterJobHandler.connectionPromise}_shutdownJobHandler(){this._rasterJobHandler.instance&&this._rasterJobHandler.instance.destroy(),this._rasterJobHandler.instance=null,this._rasterJobHandler.connectionPromise=null,this._rasterJobHandler.refCount=0,this._cachedRendererJson=null,this.raster&&(this.raster.rasterJobHandler=null)}_configDefaultInterpolation(){if(null==this.interpolation){i(this);const{raster:e}=this,t=(0,A.w6)(e.rasterInfo,e.tileType,this.sourceJSON?.defaultResamplingMethod);this._set("interpolation",t)}}_configDefaultRenderer(e="no"){i(this);const{rasterInfo:t}=this.raster,s=(0,I.ct)(t,{multidimensionalDefinition:this.multidimensionalDefinition,multidimensionalSubset:this.multidimensionalSubset}),r=s?.name,n=(0,A.I8)({variableName:r,rasterFunctionName:this.rasterFunction?.functionName,presetRenderers:this.presetRenderers});if(!this.bandIds&&t.bandCount>1&&(this.bandIds=n?.bandIds??(0,A.ci)(t)),!this.renderer||"override"===e){const e=(0,A.Mm)(this.raster),i=n?.renderer??(0,A.PD)(t,{bandIds:this.bandIds,variableName:r,rasterFunctionColorRamp:e}),s=t.statistics,o=s&&s.length>0?s[0]:null,l=o?.max??0,a=o?.min??0;"WCSServer"===this.raster.datasetFormat&&"raster-stretch"===i.type&&(l>1e24||a<-1e24)&&(i.dynamicRangeAdjustment=!0,i.customStatistics=null,"none"===i.stretchType&&(i.stretchType="min-max")),this.renderer=i}const l=(0,A.$P)({...this.renderer.toJSON(),variableName:r}),a=(0,A.m7)(t,r);this.symbolizer?(this.symbolizer.rendererJSON=l,this.symbolizer.rasterInfo=a):this.symbolizer=new P.A({rendererJSON:l,rasterInfo:a});const c=this.symbolizer.bind();if(c.success){if("auto"===e){const{colormap:e}=this.raster.rasterInfo,t=this.renderer;if(null!=e&&"raster-colormap"===t.type){const e=(0,A.PD)(this.raster.rasterInfo);JSON.stringify(e)!==JSON.stringify(t)&&this._configDefaultRenderer("override")}else if("raster-stretch"===t.type){const e=this.bandIds?.length,i=t.customStatistics?.length;!t.dynamicRangeAdjustment&&i&&e&&i!==e&&this._configDefaultRenderer("override")}}}else o.A.getLogger(this).warn("imagery-tile-mixin",c.error||"The given renderer is not supported by the layer."),"auto"===e&&this._configDefaultRenderer("override")}async _updateRasterFunction(){if(this._isConstructedFromFunctionRaster&&"Function"===this.raster.datasetFormat){const e=this.raster.rasterFunction.toJSON();return void(!this.rasterFunction&&e&&this._set("rasterFunction",b.A.fromJSON(e)))}let e,t=this.raster,i=!1;"Function"===t.datasetFormat?(e=t.primaryRasters.rasters,t=e[0],i=!0):e=[t];const{rasterFunction:s}=this;if(s){const i={raster:t};e.length>1&&e.forEach((e=>i[e.url]=e));const r=(0,M.vt)(s.functionDefinition?.toJSON()??s.toJSON(),i),n=new R.A({rasterFunction:r});n.rasterJobHandler=this._rasterJobHandler.instance,await n.open(),this.raster=n}else this.raster=t,await t.open();if(this._cachedRendererJson=null,!i&&!s)return;const{bandIds:r}=this,{bandCount:n}=this.raster.rasterInfo,o=r?.length?r.some((e=>e>=n)):n>=3;r&&(o||this.renderer&&"raster-stretch"!==this.renderer.type)&&this._set("bandIds",null),this._configDefaultRenderer("auto")}};function i(e){if(!e.raster||!e.serviceRasterInfo)throw new n.A("imagery-tile","no raster")}return(0,s._)([(0,l.MZ)({clonable:!1})],t.prototype,"_cachedRendererJson",void 0),(0,s._)([(0,l.MZ)({clonable:!1})],t.prototype,"_cachedRasterFunctionJson",void 0),(0,s._)([(0,l.MZ)({clonable:!1})],t.prototype,"_compatibleFullExtent",void 0),(0,s._)([(0,l.MZ)({clonable:!1})],t.prototype,"_isConstructedFromFunctionRaster",void 0),(0,s._)([(0,l.MZ)({clonable:!1})],t.prototype,"_rasterJobHandler",void 0),(0,s._)([(0,l.MZ)({clonable:!1})],t.prototype,"_rasterFunctionUpdatePromise",void 0),(0,s._)([(0,l.MZ)({type:[a.jz],json:{write:{overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType||"0,1,2"!==this.bandIds?.join(",")}}}}})],t.prototype,"bandIds",void 0),(0,s._)([(0,l.MZ)({json:{origins:{service:{read:{source:"copyrightText"}}}}})],t.prototype,"copyright",void 0),(0,s._)([(0,l.MZ)({json:{read:!1}})],t.prototype,"fullExtent",null),(0,s._)([(0,l.MZ)({json:{write:{overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType||"bilinear"!==this.interpolation}}}}}),(0,c.e)(_.SZ)],t.prototype,"interpolation",void 0),(0,s._)([(0,l.MZ)()],t.prototype,"ioConfig",void 0),(0,s._)([(0,l.MZ)({type:[g.A],json:{write:!0}})],t.prototype,"multidimensionalDefinition",null),(0,s._)([(0,l.MZ)({type:x.A,json:{write:!0}})],t.prototype,"multidimensionalSubset",void 0),(0,s._)([(0,l.MZ)()],t.prototype,"raster",void 0),(0,s._)([(0,l.MZ)({type:b.A})],t.prototype,"rasterFunction",null),(0,s._)([(0,l.MZ)()],t.prototype,"serviceRasterInfo",void 0),(0,s._)([(0,l.MZ)()],t.prototype,"sourceJSON",void 0),(0,s._)([(0,l.MZ)({readOnly:!0,type:p.A,json:{read:!1}})],t.prototype,"spatialReference",void 0),(0,s._)([(0,l.MZ)({type:w.A})],t.prototype,"tileInfo",void 0),(0,s._)([(0,l.MZ)(y.OZ)],t.prototype,"url",null),(0,s._)([(0,l.MZ)()],t.prototype,"renderer",null),(0,s._)([(0,l.MZ)({types:z.uy,json:{name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(){const e="raster-stretch"===this.renderer?.type&&"none"===this.renderer.stretchType&&!this.renderer.useGamma;return{enabled:!this.loaded||"Raster"===this.raster.tileType||!e}}},origins:{"web-scene":{types:z.Gj,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type&&"flow"!==e.type})}}}}})],t.prototype,"internalRenderer",null),(0,s._)([(0,u.w)("internalRenderer")],t.prototype,"readRenderer",null),(0,s._)([(0,l.MZ)({clonable:!1})],t.prototype,"symbolizer",void 0),t=(0,s._)([(0,h.$)("esri.layers.mixins.ImageryTileMixin")],t),t}},91806:(e,t,i)=>{i.d(t,{A:()=>u});var s,r=i(90237),n=i(25482),o=i(10107),l=i(56507),a=(i(44208),i(87811),i(40608));let c=s=class extends n.A{constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new s({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,r._)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"cols",void 0),(0,r._)([(0,o.MZ)({type:l.jz,json:{write:!0}})],c.prototype,"level",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"levelValue",void 0),(0,r._)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"origin",void 0),(0,r._)([(0,o.MZ)({type:Number,json:{write:!0}})],c.prototype,"resolution",void 0),(0,r._)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"rows",void 0),(0,r._)([(0,o.MZ)({type:Number,json:{write:!0}})],c.prototype,"scale",void 0),c=s=(0,r._)([(0,a.$)("esri.layers.support.LOD")],c);const u=c},87045:(e,t,i)=>{i.d(t,{A:()=>I});var s,r=i(90237),n=i(66552),o=i(25482),l=i(83047),a=i(10107),c=i(56507),u=(i(44208),i(87811),i(36005)),h=i(40608),d=i(43937),p=i(86738),f=i(16930),m=i(19419),y=i(21325),g=i(28735),x=i(91806),_=i(72802);const b=new n.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let v=s=class extends o.A{static create(e={}){const{resolutionFactor:t=1,scales:i,size:r=256,spatialReference:n=f.A.WebMercator,numLODs:o=24}=e;if(!(0,y.fn)(n)){const e=[];if(i)for(let t=0;t<i.length;t++){const s=i[t];e.push(new x.A({level:t,scale:s,resolution:s}))}else{let t=5e-4;for(let i=o-1;i>=0;i--)e.unshift(new x.A({level:i,scale:t,resolution:t})),t*=2}return new s({dpi:96,lods:e,origin:new p.A(0,0,n),size:[r,r],spatialReference:n})}const a=(0,y.Vp)(n),c=e.origin?new p.A({x:e.origin.x,y:e.origin.y,spatialReference:n}):new p.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:n}:{x:0,y:0,spatialReference:n}),u=1/(39.37*(0,l.GA)(n)*96),h=[];if(i)for(let e=0;e<i.length;e++){const t=i[e],s=t*u;h.push(new x.A({level:e,scale:t,resolution:s}))}else{let e=(0,y.EA)(n)?512/r*591657527.5917094:256/r*591657527.591555;const i=Math.ceil(o/t);h.push(new x.A({level:0,scale:e,resolution:e*u}));for(let s=1;s<i;s++){const i=e/2**t,r=i*u;h.push(new x.A({level:s,scale:i,resolution:r})),e=i}}return new s({dpi:96,lods:h,origin:c,size:[r,r],spatialReference:n})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const i=(0,y.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return p.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0;const s=[],r=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach((e=>{s.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,r[e.level]=e}))),this._set("scales",s),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const i=Math.floor(e),s=i+1;return t[i]/(t[i]/t[s])**(e-i)}scaleToZoom(e){const t=this.scales,i=t.length-1;let s=0;for(;s<i;s++){const i=t[s],r=t[s+1];if(i<=e)return s;if(r===e)return s+1;if(i>e&&r<e)return s+Math.log(i/e)/Math.log(i/r)}return s}tileAt(e,t,i,s){const r=this.lodAt(e);if(!r)return null;let n,o;if("number"==typeof t)n=t,o=i;else if((0,y.aI)(t.spatialReference,this.spatialReference))n=t.x,o=t.y,s=i;else{const e=(0,g.Cv)(t,this.spatialReference);if(null==e)return null;n=e.x,o=e.y,s=i}const l=r.resolution*this.size[0],a=r.resolution*this.size[1];return s||(s=new _.U(null,0,0,0,(0,m.vt)())),s.level=e,s.row=Math.floor((this.origin.y-o)/a+.001),s.col=Math.floor((n-this.origin.x)/l+.001),this.updateTileInfo(s),s}updateTileInfo(e,t=s.ExtrapolateOptions.NONE){let i=this.lodAt(e.level);if(!i&&t===s.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return;const r=e.level-i.level,n=i.resolution*this.size[0]/2**r,o=i.resolution*this.size[1]/2**r;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,m.vt)()),e.extent[0]=this.origin.x+e.col*n,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+n,e.extent[3]=e.extent[1]+o}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const i=this.lodAt(t.level);if(null==i)return null;const{resolution:s}=i,r=s*this.size[0],n=s*this.size[1];return e[0]=this.origin.x+t.col*r,e[1]=this.origin.y-(t.row+1)*n,e[2]=e[0]+r,e[3]=e[1]+n,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return s.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const i=[],r=this.lods.length-t;for(let e=0;e<r;e++){const s=e+t,{scale:r,resolution:n}=s>=0?this.lods[s]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new x.A({level:e,scale:r,resolution:n}))}return new s({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){const s=e[i];this._upsampleLevels[s.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/s.resolution:0},t=s}}};var w,R;(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"compressionQuality",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"dpi",void 0),(0,r._)([(0,a.MZ)({type:String,json:{read:b.read,write:b.write,origins:{"web-scene":{read:!1,write:!1}}}})],v.prototype,"format",void 0),(0,r._)([(0,a.MZ)({readOnly:!0})],v.prototype,"isWrappable",null),(0,r._)([(0,a.MZ)({type:p.A,json:{write:!0}})],v.prototype,"origin",void 0),(0,r._)([(0,u.w)("origin")],v.prototype,"readOrigin",null),(0,r._)([(0,a.MZ)({type:[x.A],value:null,json:{write:!0}})],v.prototype,"lods",null),(0,r._)([(0,a.MZ)({readOnly:!0})],v.prototype,"scales",void 0),(0,r._)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],v.prototype,"size",void 0),(0,r._)([(0,u.w)("size",["rows","cols"])],v.prototype,"readSize",null),(0,r._)([(0,d.K)("size",{cols:{type:c.jz},rows:{type:c.jz}})],v.prototype,"writeSize",null),(0,r._)([(0,a.MZ)({type:f.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),v=s=(0,r._)([(0,h.$)("esri.layers.support.TileInfo")],v),w=v||(v={}),(R=w.ExtrapolateOptions||(w.ExtrapolateOptions={}))[R.NONE=0]="NONE",R[R.POWER_OF_TWO=1]="POWER_OF_TWO";const I=v},72802:(e,t,i)=>{i.d(t,{U:()=>s});class s{constructor(e,t,i,s,r=void 0){this.id=e,this.level=t,this.row=i,this.col=s,this.extent=r}}},4916:(e,t,i)=>{i.d(t,{A:()=>D});var s=i(90237),r=i(78888),n=i(49186),o=i(25482),l=i(53966),a=i(74887),c=i(563),u=i(10107),h=i(56507),d=(i(44208),i(87811),i(40608)),p=i(5443),f=i(86738),m=i(16930),y=i(60694),g=i(10873),x=i(45617),_=i(91806),b=i(20223),v=i(87045),w=i(77301),R=i(70834);const I=new Map,S=new class{constructor(e=15e3,t=5e3){this._timer=null,this._cachedBlocks=new Map,this._size=-1,this._duration=e,this._interval=Math.min(e,t)}decreaseRefCount(e,t){const i=e+"/"+t,s=this._cachedBlocks;if(s.has(i)){const e=s.get(i);return e.refCount--,e.refCount<=0&&(s.delete(i),e.controller&&e.controller.abort()),e.refCount}return 0}getBlock(e,t){const i=e+"/"+t,s=this._cachedBlocks;if(s.has(i)){const e=s.get(i);return e.ts=Date.now(),e.refCount++,s.delete(i),s.set(i,e),e.block}return null}putBlock(e,t,i,s){const r=this._cachedBlocks,n=e+"/"+t;if(r.has(n)){const e=r.get(n);e.ts=Date.now(),e.refCount++}else r.set(n,{block:i,ts:Date.now(),refCount:1,controller:s});this._trim(),this._updateTimer()}deleteBlock(e,t){const i=this._cachedBlocks,s=e+"/"+t;i.has(s)&&i.delete(s)}updateMaxSize(e){this._size=e,this._trim()}empty(){this._cachedBlocks.clear(),this._clearTimer()}getCurrentSize(){return this._cachedBlocks.size}_updateTimer(){if(null!=this._timer)return;const e=this._cachedBlocks;this._timer=setInterval((()=>{const t=Array.from(e),i=Date.now();for(let s=0;s<t.length&&t[s][1].ts<=i-this._duration;s++)e.delete(t[s][0]);0===e.size&&this._clearTimer()}),this._interval)}_trim(){const e=this._cachedBlocks;if(-1===this._size||this._size>=e.size)return;const t=Array.from(e);for(let i=0;i<t.length-this._size;i++)e.delete(t[i][0])}_clearTimer(){null!=this._timer&&(clearInterval(this._timer),this._timer=null)}};function M(e,t){return null==t?e:`${e}?sliceId=${t}`}function k(e,t,i){const s=I.get(e);if(!s)return null==t?S.decreaseRefCount(e,i):0;if(null==t||null==s[t])return S.decreaseRefCount(e,i);const r=s[t]?.cache,n=r?.get(i);if(r&&n){if(n.refCount--,0===n.refCount){r.delete(i);for(let e=0;e<s.length;e++)s[e]?.cache.delete(i);n.controller&&n.controller.abort()}return n.refCount}return 0}function T(e,t,i){const s=I.get(e);if(!s)return null==t?S.getBlock(e,i):null;if(null==t||null==s[t]){for(let e=0;e<s.length;e++){const t=s[e]?.cache.get(i);if(t)return t.refCount++,t.block}return S.getBlock(e,i)}const r=s[t]?.cache.get(i);if(r)return r.refCount++,r.block;for(let e=0;e<s.length;e++){if(e===t||!s[e])continue;const r=s[e]?.cache,n=r?.get(i);if(r&&n)return n.refCount++,r.set(i,n),n.block}return null}function F(e,t,i,s,r=null){const n=I.get(e);if(!n)return void(null==t&&S.putBlock(e,i,s,r));if(null==t||null==n[t])return void S.putBlock(e,i,s,r);const o={refCount:1,block:s,isResolved:!1,isRejected:!1,controller:r};s.then((()=>o.isResolved=!0)).catch((()=>o.isRejected=!0)),n[t]?.cache.set(i,o)}function A(e,t,i){const s=I.get(e);s?null!=t&&null!=s[t]?s[t]?.cache.delete(i):S.deleteBlock(e,i):null==t&&S.deleteBlock(e,i)}var P=i(16019),z=i(51244),C=i(28435),J=i(14636);let N=0,O=class extends o.A{constructor(){super(...arguments),this._tileFetchQueue=new c.QueueProcessor({concurrency:32,process:(e,t)=>this._fetchRawTile(e.pyramidLevel,e.row,e.col,{...e.options,signal:t})}),this.datasetName=null,this.datasetFormat=null,this.hasUniqueSourceStorageInfo=!0,this.rasterInfo=null,this.ioConfig={sampling:"closest"}}normalizeCtorArgs(e){return e?.ioConfig&&(e={...e,ioConfig:{resolution:null,bandIds:null,sampling:"closest",tileInfo:v.A.create(),...e.ioConfig}}),e}get _isGlobalWrappableSource(){const{rasterInfo:e}=this,t=(0,R.FT)(e.spatialReference);return null!=t&&e.extent.width>=t/2}get _hasNoneOrGCSShiftTransform(){const{transform:e}=this.rasterInfo;return null==e||"gcs-shift"===e.type}set rasterJobHandler(e){this._set("rasterJobHandler",e),"Function"===this.datasetFormat&&this.primaryRasters?.rasters?.forEach((t=>t.rasterJobHandler=e))}get rasterId(){return this.url||"rasterId-"+N++}set url(e){this._set("url",(0,y.Jf)(e,l.A.getLogger(this)))}async open(e){return this._openPromise??=(0,R.Hh)().then((()=>this._open(e))),this._openPromise}async fetchTile(e,t,i,s={}){const r=s.tileInfo||this.rasterInfo.storageInfo.tileInfo,n=this.getTileExtentFromTileInfo(e,t,i,r);return s={noClip:!0,...s},this.fetchPixels(n,r.size[0],r.size[1],s)}async identify(e,t={}){e=(0,h.PZ)(f.A,e).clone().normalize();const{multidimensionalDefinition:i,timeExtent:s}=t,{rasterInfo:r}=this,{hasMultidimensionalTranspose:n,multidimensionalInfo:o}=r;let{transposedVariableName:l}=t;const a=null!=o&&n&&(null!=s||(0,w.DY)(i));a&&!l&&(l=null!=i&&i.length>0?i[0].variableName??void 0:o.variables[0].name,t={...t,transposedVariableName:l}),t=this._getRequestOptionsWithSliceId(t);const{spatialReference:c,extent:u}=r,{datumTransformation:d}=t;let m=(0,R._I)(e,c,d);if(!u.intersects(m))return{location:m,value:null};if(null!=r.transform){const e=r.transform.inverseTransform(m);if(!r.nativeExtent.intersects(e))return{location:e,value:null};m=e}let y=0;const g=null!=l&&null!=o&&r.hasMultidimensionalTranspose;if("Function"===this.datasetFormat){const e=this.primaryRasters.rasters[0];if(g)return e.identify(m,t);const{pixelSize:s}=r,n=3,o=s.x*n/2,l=s.y*n/2,a=new p.A({xmin:m.x-o,xmax:m.x+o,ymin:m.y-l,ymax:m.y+l,spatialReference:c}),u={interpolation:"nearest",multidimensionalDefinition:i,sliceId:t.sliceId},{pixelBlock:h}=await e.fetchPixels(a,n,n,u),{pixelBlock:d}=await this.fetchPixels(a,n,n,u);if(null==h)return{location:m,value:null};const f=Math.floor(n*n*.5),y=!h.mask||h.mask[f]?h.pixels.map((e=>e[f])):null;let x;return null!=d&&(x=!d.mask||d.mask[f]?d.pixels.map((e=>e[f])):void 0),{location:m,value:y,processedValue:x,pyramidLevel:0}}if(!g)if(t.srcResolution)y=(0,R.t$)(t.srcResolution,r,this.ioConfig.sampling).pyramidLevel;else if(y=await this.computeBestPyramidLevelForLocation(e,t),null==y)return{location:m,value:null};const x=this.identifyPixelLocation(m,y,null,g);if(null===x)return{location:m,value:null};const{row:_,col:b,rowOffset:v,colOffset:I,blockWidth:S}=x,k=l??t.sliceId,A=M(this.rasterId,k),P=`${y}/${_}/${b}`;let z=T(A,null,P);null==z&&(z=this.fetchRawTile(y,_,b,t),F(A,null,P,z));const C=await z;if(!C?.pixels?.length)return{location:m,value:null};const J=v*S+I;return this._processIdentifyResult(C,{srcLocation:m,position:J,pyramidLevel:y,useTransposedTile:!!g,requestSomeSlices:a,identifyOptions:t})}async fetchPixels(e,t,i,s={}){e=(0,R.Ps)(e),s=this._getRequestOptionsWithSliceId(s);const{_hasNoneOrGCSShiftTransform:r}=this;if(s.requestRawData&&r)return this._fetchPixels(e,t,i,s);const n=(0,R.FT)(e.spatialReference),o=(0,R.OM)(e);if(null==n||0===o||1===o&&this._isGlobalWrappableSource&&r)return this._fetchPixels(e,t,i,s);if(o>=3)return{extent:e,pixelBlock:null};const l=[],{xmin:a,xmax:c}=e,u=Math.round(n/(c-a)*t),h=u-Math.round((n/2-a)/(c-a)*t);let d=0;const f=[];for(let r=0;r<=o;r++){const m=new p.A({xmin:0===r?a:-n/2,xmax:r===o?c-n*r:n/2,ymin:e.ymin,ymax:e.ymax,spatialReference:e.spatialReference}),y=0===r?u-h:r===o?t-d:u;d+=y,f.push(y);const g=s.disableWrapAround&&r>0?null:this._fetchPixels(m,y,i,s);l.push(g)}const m=(await Promise.all(l)).map((e=>e?.pixelBlock));let y=null;const g={width:t,height:i};return y=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:m,srcMosaicSize:g,destDimension:null,coefs:null,sampleSpacing:null,interpolation:"nearest",alignmentInfo:null,blockWidths:f},s)).pixelBlock:(0,C.z7)(m,g,{blockWidths:f}),{extent:e,srcExtent:(0,R._l)(e,this.rasterInfo.spatialReference,s.datumTransformation),pixelBlock:y}}async fetchRawPixels(e,t,i,s={}){t={x:Math.floor(t.x),y:Math.floor(t.y)};const r=await this._fetchRawTiles(e,t,i,s),{nativeExtent:n,nativePixelSize:o,storageInfo:l}=this.rasterInfo,a=2**e,c=o.x*a,u=o.y*a,h=new p.A({xmin:n.xmin+c*t.x,xmax:n.xmin+c*(t.x+i.width-1),ymin:n.ymax-u*(t.y+i.height-1),ymax:n.ymax-u*t.y,spatialReference:n.spatialReference});if(!r)return{extent:h,srcExtent:h,pixelBlock:null};const{pixelBlocks:d,mosaicSize:f}=r;if(1===d.length&&null!=d[0]&&d[0].width===i.width&&d[0].height===i.height)return{extent:h,srcExtent:h,pixelBlock:r.pixelBlocks[0]};const m=e>0?l.pyramidBlockWidth:l.blockWidth,y=e>0?l.pyramidBlockHeight:l.blockHeight,g={x:t.x%m,y:t.y%y};let x;return x=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:d,srcMosaicSize:f,destDimension:i,clipOffset:g,clipSize:i,coefs:null,sampleSpacing:null,interpolation:s.interpolation,alignmentInfo:null,blockWidths:null},s)).pixelBlock:(0,C.z7)(d,f,{clipOffset:g,clipSize:i}),{extent:h,srcExtent:h,pixelBlock:x}}fetchRawTile(e,t,i,s){throw new n.A("BaseRaster:read-not-implemented","fetchRawTile() is not implemented")}computeExtent(e){return(0,R._l)(this.rasterInfo.extent,e)}decodePixelBlock(e,t){return!this.rasterJobHandler||t.useCanvas?(0,z.D)(e,t):this.rasterJobHandler.decode({data:e,options:t})}async request(e,t,i=0){const{customFetchParameters:s}=this.ioConfig,{range:n,query:o,headers:l}=t;i=i??t.retryCount??this.ioConfig.retryCount;const a=n?{Range:`bytes=${n.from}-${n.to}`}:null;try{return await(0,r.A)(e,{...t,query:{...o,...s},headers:{...l,...a}})}catch(s){if(i>0)return i--,this.request(e,t,i);throw s}}getSliceIndex(e){const{multidimensionalInfo:t}=this.rasterInfo;return null==t||null==e||0===e.length?null:(0,w.NG)(e,t)}getTileExtentFromTileInfo(e,t,i,s){const r=s.lodAt(e);return this.getTileExtent({x:r.resolution,y:r.resolution},t,i,s.origin,s.spatialReference,s.size)}updateTileInfo(){const{storageInfo:e,spatialReference:t,extent:i,pixelSize:s}=this.rasterInfo,{pyramidResolutions:r}=e;if(!e.tileInfo){const n=[],o=e.maximumPyramidLevel||0;let l=(s.x+s.y)/2,a=1/.0254*96*l;for(let e=0;e<=o&&(n.unshift(new _.A({level:o-e,resolution:l,scale:a})),e!==o);e++)if(r){const t=(r[e].x+r[e].y)/2;a*=t/l,l=t}else l*=2,a*=2;const c=new f.A({x:i.xmin,y:i.ymax,spatialReference:t});e.tileInfo=new v.A({origin:c,size:[e.blockWidth,e.blockHeight],spatialReference:t,lods:n}),e.isVirtualTileInfo=!0}}createRemoteDatasetStorageInfo(e,t=512,i=512,s){const{width:r,height:n,nativeExtent:o,pixelSize:l,spatialReference:a}=e,c=new f.A({x:o.xmin,y:o.ymax,spatialReference:a});null==s&&(s=Math.max(0,Math.round(Math.log(Math.max(r,n))/Math.LN2-8)));const u=this.computeBlockBoundary(o,512,512,{x:o.xmin,y:o.ymax},[l],s);e.storageInfo=new b.A({blockWidth:t,blockHeight:i,pyramidBlockWidth:t,pyramidBlockHeight:i,origin:c,firstPyramidLevel:1,maximumPyramidLevel:s,blockBoundary:u})}async computeBestPyramidLevelForLocation(e,t={}){return 0}computeBlockBoundary(e,t,i,s,r,n=0,o=2){if(1===r.length&&n>0){r=[...r];let{x:e,y:t}=r[0];for(let i=0;i<n;i++)e*=o,t*=o,r.push({x:e,y:t})}const l=[],{x:a,y:c}=s;for(let s=0;s<r.length;s++){const{x:n,y:o}=r[s];l.push({minCol:Math.floor((e.xmin-a+.1*n)/t/n),maxCol:Math.floor((e.xmax-a-.1*n)/t/n),minRow:Math.floor((c-e.ymax+.1*o)/i/o),maxRow:Math.floor((c-e.ymin-.1*o)/i/o)})}return l}getPyramidPixelSize(e){const{nativePixelSize:t}=this.rasterInfo,{pyramidResolutions:i,pyramidScalingFactor:s}=this.rasterInfo.storageInfo;if(0===e)return t;if(null!=i&&i.length)return i[e-1];const r=s**e;return{x:t.x*r,y:t.y*r}}identifyPixelLocation(e,t,i,s){const{spatialReference:r,nativeExtent:n,storageInfo:o}=this.rasterInfo,{maximumPyramidLevel:l,origin:a,transposeInfo:c}=o,u=s&&null!=c?c.tileSize[0]:o.blockWidth,h=s&&null!=c?c.tileSize[1]:o.blockHeight,d=(0,R._I)(e,r,i);if(!n.intersects(d))return null;if(t<0||t>l)return null;const p=this.getPyramidPixelSize(t),{x:f,y:m}=p,y=(a.y-d.y)/m/h,g=(d.x-a.x)/f/u,x=Math.min(h-1,Math.floor((y-Math.floor(y))*h)),_=Math.min(u-1,Math.floor((g-Math.floor(g))*u));return{pyramidLevel:t,row:Math.floor(y),col:Math.floor(g),rowOffset:x,colOffset:_,blockWidth:u,srcLocation:d}}getTileExtent(e,t,i,s,r,n){const[o,l]=n,a=s.x+i*o*e.x,c=a+o*e.x,u=s.y-t*l*e.y,h=u-l*e.y;return new p.A({xmin:a,xmax:c,ymin:h,ymax:u,spatialReference:r})}getBlockWidthHeight(e){return{blockWidth:e>0?this.rasterInfo.storageInfo.pyramidBlockWidth:this.rasterInfo.storageInfo.blockWidth,blockHeight:e>0?this.rasterInfo.storageInfo.pyramidBlockHeight:this.rasterInfo.storageInfo.blockHeight}}isBlockOutside(e,t,i){const s=this.rasterInfo.storageInfo.blockBoundary[e];return!s||s.maxRow<t||s.maxCol<i||s.minRow>t||s.minCol>i}updateImageSpaceRasterInfo(e){const{pixelSize:t}=e,{width:i,height:s}=e,r=m.A.WebMercator;e.spatialReference=r,e.extent=e.nativeExtent=new p.A({xmin:-.5,ymax:.5,xmax:i-.5,ymin:.5-s,spatialReference:r}),e.isPseudoSpatialReference=!0,e.transform=null,e.pixelSize=new f.A({x:1,y:1,spatialReference:r});const{extent:n,storageInfo:o}=e;if(o){o.origin=new f.A({x:n.xmin,y:n.ymax,spatialReference:r});const{pyramidResolutions:i,tileInfo:s}=o;if(i&&i.forEach((e=>{e.x/=t.x,e.y/=t.y})),s){s.origin=o.origin;const t=(e.nativePixelSize.x+e.nativePixelSize.y)/2;s.lods.forEach(((e,i)=>{e.resolution=t*2**i,e.scale=96*e.resolution/.0254}))}}}async _fetchPixels(e,t,i,s={}){let r=(0,R.OM)(e);if(r>=2)return{extent:e,pixelBlock:null};const n=this._getSourceDataInfo(e,t,i,s),{pyramidLevel:o,srcResolution:l,srcExtent:a,srcWidth:c,srcHeight:u,ul:h}=n;if(0===c||0===u)return{extent:e,srcExtent:a,pixelBlock:null};const{rasterInfo:d}=this,p=d.transform,m="gcs-shift"===p?.type,y=null!=(0,R.FT)(e.spatialReference);!m&&y||(r=(0,R.OM)(n.srcExtent,m));const g=await this._fetchRawTiles(o,h,{width:c,height:u,wrapCount:r},s);if(!g)return{extent:e,srcExtent:a,pixelBlock:null};const x=d.storageInfo,_=o>0?x.pyramidBlockWidth:x.blockWidth,b=o>0?x.pyramidBlockHeight:x.blockHeight;let{x:v,y:w}=d.pixelSize;if(o>0){const{pyramidResolutions:e,pyramidScalingFactor:t}=x;if(null!=e&&e[o-1])({x:v,y:w}=e[o-1]);else{const e=t**o;v*=e,w*=e}}const I=d.spatialReference,S=new f.A({x:v,y:w,spatialReference:I}),M=_===c&&b===u&&h.x%_==0&&h.y%b==0,k=new f.A({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/i,spatialReference:e.spatialReference}),T=!e.spatialReference.equals(I),F=I.isGeographic?1e-9:1e-4,{datumTransformation:A}=s;if(!T&&M&&1===g.pixelBlocks.length&&_===t&&b===i&&function(e,t,i){return Math.abs(e.x-t.x)<i&&Math.abs(e.y-t.y)<i}(l,k,F))return{extent:e,srcExtent:a,srcTilePixelSize:S,pixelBlock:g.pixelBlocks[0]};const P=y&&null!=(0,R.FT)(a.spatialReference)&&this._hasNoneOrGCSShiftTransform,z=s.requestProjectedLocalDirections&&this.rasterInfo.dataType.startsWith("vector");z&&!this.rasterJobHandler&&await(0,R.Hh)();const N=this.rasterJobHandler?await this.rasterJobHandler.getProjectionOffsetGrid({projectedExtent:e,srcBufferExtent:g.extent,pixelSize:k.toJSON(),datumTransformation:A,rasterTransform:p,hasWrapAround:r>0||P,isAdaptive:!1!==this.ioConfig.optimizeProjectionAccuracy,includeGCSGrid:z},s):(0,R.l0)({projectedExtent:e,srcBufferExtent:g.extent,pixelSize:k,datumTransformation:A,rasterTransform:p,hasWrapAround:r>0||P,isAdaptive:!1,includeGCSGrid:z});let O;const D=!s.requestRawData,B={rows:N.spacing[0],cols:N.spacing[1]},H=this._hasNoneOrGCSShiftTransform?this._getRasterTileAlignmentInfo(o,g.extent.xmin):void 0,{pixelBlocks:E,mosaicSize:Z,isPartiallyFilled:W}=g;let L=null;if(this.rasterJobHandler){const e=await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:E,srcMosaicSize:Z,destDimension:D?{width:t,height:i}:null,coefs:D?N.coefficients:null,sampleSpacing:D?B:null,projectDirections:z,gcsGrid:z?N.gcsGrid:null,isUV:"vector-uv"===this.rasterInfo.dataType,interpolation:s.interpolation,alignmentInfo:H,blockWidths:null},s);({pixelBlock:O,localNorthDirections:L}=e)}else{const e=(0,C.z7)(E,Z,{alignmentInfo:H});O=D?(0,C.$i)(e,{width:t,height:i},N.coefficients,B,s.interpolation):e,z&&N.gcsGrid&&(L=(0,C.QF)({width:t,height:i},N.gcsGrid),O=(0,J.Y2)(O,this.rasterInfo.dataType,L))}return s.requestRawData||z?{extent:e,srcExtent:a,srcTilePixelSize:S,pixelBlock:O,transformGrid:N,localNorthDirections:L,isPartiallyFilled:W}:{extent:e,srcExtent:a,srcTilePixelSize:S,pixelBlock:O}}async _fetchRawTiles(e,t,i,s){const{origin:r,blockBoundary:n}=this.rasterInfo.storageInfo,{blockWidth:o,blockHeight:l}=this.getBlockWidthHeight(e);let{x:a,y:c}=t,{width:u,height:h,wrapCount:d}=i;const f=this._getRasterTileAlignmentInfo(e,0);s.buffer&&(a-=s.buffer.cols,c-=s.buffer.rows,u+=2*s.buffer.cols,h+=2*s.buffer.rows);let m=0,y=0,g=0;d&&null!=f&&(({worldColumnCountFromOrigin:y,originColumnOffset:g,rightPadding:m}=f),y*f.blockWidth-m>=a+u&&(m=0));const x=Math.floor(a/o),_=Math.floor(c/l),b=Math.floor((a+u+m-1)/o),v=Math.floor((c+h+m-1)/l),w=n[e];if(!w)return null;const{minRow:R,minCol:I,maxCol:S,maxRow:M}=w;if(0===d&&(v<R||b<I||_>M||x>S))return null;const k=new Array;let T=!1;const F=null==this.ioConfig.allowPartialFill?s.allowPartialFill:this.ioConfig.allowPartialFill;for(let t=_;t<=v;t++)for(let i=x;i<=b;i++){let r=i;if(!s.disableWrapAround&&d&&null!=f&&y<=i&&(r=i-y-g),t>=R&&r>=I&&M>=t&&S>=r){const i=this._tileFetchQueue.push({pyramidLevel:e,row:t,col:r,options:s},{signal:s.signal});F?k.push(new Promise((e=>{i.then((t=>e(t))).catch((()=>{T=!0,e(null)}))}))):k.push(i)}else k.push(Promise.resolve(null))}if(0===k.length)return null;const A=await Promise.all(k),P={height:(v-_+1)*l,width:(b-x+1)*o},{spatialReference:z}=this.rasterInfo,C=this.getPyramidPixelSize(e),{x:J,y:N}=C;return{extent:new p.A({xmin:r.x+x*o*J,xmax:r.x+(b+1)*o*J,ymin:r.y-(v+1)*l*N,ymax:r.y-_*l*N,spatialReference:z}),pixelBlocks:A,mosaicSize:P,isPartiallyFilled:T}}_fetchRawTile(e,t,i,s){const r=this.rasterInfo.storageInfo.blockBoundary[e];if(!r)return Promise.resolve(null);const{minRow:n,minCol:o,maxCol:l,maxRow:c}=r;if(t<n||i<o||t>c||i>l)return Promise.resolve(null);const u=M(this.rasterId,s.sliceId),h=`${e}/${t}/${i}`;let d=T(u,s.registryId,h);if(null==d){const r=new AbortController;d=this.fetchRawTile(e,t,i,{...s,signal:r.signal}),F(u,s.registryId,h,d,r),d.catch((()=>A(u,s.registryId,h)))}return s.signal&&(0,a.u7)(s,(()=>{k(u,s.registryId,h)})),d}_computeMagDirValues(e){const{bandCount:t,dataType:i}=this.rasterInfo;if((2!==t||"vector-magdir"!==i)&&"vector-uv"!==i||2!==e?.length||!e[0]?.length)return null;const s=e[0].length;if("vector-magdir"===i){const t=e[1].map((e=>(e+360)%360));return[e[0],t]}const[r,n]=e,o=[],l=[];for(let e=0;e<s;e++){const[t,i]=(0,J.Lu)([r[e],n[e]]);o.push(t),l.push(i)}return[o,l]}_getRasterTileAlignmentInfo(e,t){return null==this._rasterTileAlignmentInfo&&(this._rasterTileAlignmentInfo=(0,R.DO)(this.rasterInfo)),null==this._rasterTileAlignmentInfo.pyramidsInfo?null:{startX:t,halfWorldWidth:this._rasterTileAlignmentInfo.halfWorldWidth,hasGCSSShiftTransform:this._rasterTileAlignmentInfo.hasGCSSShiftTransform,...this._rasterTileAlignmentInfo.pyramidsInfo[e]}}_getSourceDataInfo(e,t,i,s={}){const r={datumTransformation:s.datumTransformation,pyramidLevel:0,pyramidResolution:null,srcExtent:null,srcHeight:0,srcResolution:null,srcWidth:0,ul:{x:0,y:0}};s.srcResolution&&(r.srcResolution=s.srcResolution,this._updateSourceDataInfo(e,r));const n=this.rasterInfo.storageInfo.maximumPyramidLevel||0,{srcWidth:o,srcHeight:l,pyramidLevel:a}=r,c=o/t,u=l/i,h=a<n&&c*u>=16,d=a===n&&this._requireTooManySrcTiles(o,l,t,i);if(h||d||0===o||0===l){const o=new f.A({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/i,spatialReference:e.spatialReference});let l=(0,R.Wo)(o,this.rasterInfo.spatialReference,e,r.datumTransformation);const d=!l||s.srcResolution&&l.x+l.y<s.srcResolution.x+s.srcResolution.y;if(h&&s.srcResolution&&d){const e=Math.round(Math.log(Math.max(c,u))/Math.LN2)-1;if(n-a+3>=e){const t=2**e;l={x:s.srcResolution.x*t,y:s.srcResolution.y*t}}}l&&(r.srcResolution=l,this._updateSourceDataInfo(e,r))}return this._requireTooManySrcTiles(r.srcWidth,r.srcHeight,t,i)&&(r.srcWidth=0,r.srcHeight=0),r}_requireTooManySrcTiles(e,t,i,s){const{tileInfo:r}=this.rasterInfo.storageInfo,n=e/i,o=t/s;return Math.ceil(e/r.size[0])*Math.ceil(t/r.size[1])>=256*Math.max(1,(i+s)/1024)||n>8||o>8}_updateSourceDataInfo(e,t){t.srcWidth=0,t.srcHeight=0;const{rasterInfo:i}=this,s=i.spatialReference,{srcResolution:r,datumTransformation:n}=t,{pyramidLevel:o,pyramidResolution:l,excessiveReading:a}=(0,R.t$)(r,i,this.ioConfig.sampling);if(a)return;let c=t.srcExtent||(0,R._l)(e,s,n);if(null==c)return;const u=i.transform;u&&(c=u.inverseTransform(c)),t.srcExtent=c;const{x:h,y:d}=i.storageInfo.origin,p=Math.floor((c.xmin-h)/l.x+.1),f=Math.floor((d-c.ymax)/l.y+.1),m=Math.floor((c.xmax-h)/l.x-.1),y=Math.floor((d-c.ymin)/l.y-.1),g=c.width<.1*l.x?0:m-p+1,x=c.height<.1*l.y?0:y-f+1;t.pyramidLevel=o,t.pyramidResolution=l,t.srcWidth=g,t.srcHeight=x,t.ul={x:p,y:f}}_getRequestOptionsWithSliceId(e){return null!=this.rasterInfo.multidimensionalInfo&&null==e.sliceId&&(e={...e,sliceId:this.getSliceIndex(e.multidimensionalDefinition)}),e}_processIdentifyResult(e,t){const{srcLocation:i,position:s,pyramidLevel:r,useTransposedTile:n}=t,o=e.pixels[0].length/e.width/e.height;if(e.mask&&!e.mask[s])return{location:i,value:null};const{multidimensionalInfo:l}=this.rasterInfo;if(null==l||!n){const t=e.pixels.map((e=>e[s])),n={location:i,value:t,pyramidLevel:r},o=this._computeMagDirValues(t.map((e=>[e])));return o?.length&&(n.magdirValue=o.map((e=>e[0]))),n}let a=e.pixels.map((e=>e.slice(s*o,s*o+o))),c=this._computeMagDirValues(a);const{requestSomeSlices:u,identifyOptions:h}=t;let d=(0,w.QW)(l,h.transposedVariableName);if(u){const e=(0,w.xx)(d,h.multidimensionalDefinition,h.timeExtent);a=a.map((t=>e.map((e=>t[e])))),c=c?.map((t=>e.map((e=>t[e])))),d=e.map((e=>d[e]))}const p=e.noDataValues||this.rasterInfo.noDataValue,f={pixels:a,pixelType:e.pixelType};let m;return null!=p&&((0,P.Sp)(f,p),m=f.mask),{location:i,value:null,dataSeries:d.map(((e,t)=>{const i={value:0===m?.[t]?null:a.map((e=>e[t])),multidimensionalDefinition:e.multidimensionalDefinition.map((e=>new x.A({...e,isSlice:!0})))};return c?.length&&(i.magdirValue=[c[0][t],c[1][t]]),i})),pyramidLevel:r}}};(0,s._)([(0,u.MZ)()],O.prototype,"_rasterTileAlignmentInfo",void 0),(0,s._)([(0,u.MZ)()],O.prototype,"_tileFetchQueue",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],O.prototype,"_isGlobalWrappableSource",null),(0,s._)([(0,u.MZ)({readOnly:!0})],O.prototype,"_hasNoneOrGCSShiftTransform",null),(0,s._)([(0,u.MZ)()],O.prototype,"_openPromise",void 0),(0,s._)([(0,u.MZ)()],O.prototype,"rasterJobHandler",null),(0,s._)([(0,u.MZ)({readOnly:!0})],O.prototype,"rasterId",null),(0,s._)([(0,u.MZ)(g.OZ)],O.prototype,"url",null),(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],O.prototype,"datasetName",void 0),(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],O.prototype,"datasetFormat",void 0),(0,s._)([(0,u.MZ)()],O.prototype,"hasUniqueSourceStorageInfo",void 0),(0,s._)([(0,u.MZ)()],O.prototype,"rasterInfo",void 0),(0,s._)([(0,u.MZ)()],O.prototype,"ioConfig",void 0),(0,s._)([(0,u.MZ)()],O.prototype,"sourceJSON",void 0),O=(0,s._)([(0,d.$)("esri.layers.support.rasterDatasets.BaseRaster")],O);const D=O},84169:(e,t,i)=>{i.d(t,{A:()=>f});var s=i(90237),r=i(49186),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),l=i(39829),a=i(4916),c=i(77359),u=i(28435),h=i(70834),d=i(22671);let p=class extends a.A{constructor(){super(...arguments),this.datasetFormat="Function",this.tileType="Raster",this.rasterFunction=null,this._clippingGeometry=new Map}async fetchPixels(e,t,i,s={}){const{rasters:r,rasterIds:n}=this.primaryRasters;let o=!1;const{interpolation:l}=s,a=this.rasterFunction.flatWebGLFunctionChain?.hasFocalFunction;!s.requestRawData&&a&&(o=1===r.length&&!s.skipRasterFunction,s={...s,interpolation:"bilinear",requestRawData:o});const h=r.map((r=>r.fetchPixels(e,t,i,s))),d=await Promise.all(h),p=d.map((e=>e.pixelBlock)),f=o||s.requestRawData?d.map((e=>e.srcTilePixelSize)):null;if(s.skipRasterFunction||p.every((e=>null==e)))return d[0];const m=d.find((e=>null!=e.pixelBlock))?.extent??e;let y=this.rasterJobHandler?await this.rasterJobHandler.process({extent:m,primaryPixelBlocks:p,primaryPixelSizes:f,primaryRasterIds:n}):this.rasterFunction.process({extent:m,primaryPixelBlocks:p,primaryPixelSizes:f,primaryRasterIds:n});const{transformGrid:g}=d[0];if(!o||null==y||null==g){const e=s.noClip?null:this.getClippingGeometry(m.spatialReference);return s.noClip||s.requestRawData||null==y||!e||(y=await(0,c.$Q)(y,m,e)),{...d[0],pixelBlock:y}}const x={rows:g.spacing[0],cols:g.spacing[1]};let _;_=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:[y],srcMosaicSize:{width:y.width,height:y.height},destDimension:{width:t,height:i},coefs:g.coefficients,sampleSpacing:x,projectDirections:!1,gcsGrid:null,isUV:!1,interpolation:l,alignmentInfo:void 0,blockWidths:null},s)).pixelBlock:(0,u.$i)(y,{width:t,height:i},g.coefficients,x,l);const b=s.noClip?null:this.getClippingGeometry(e.spatialReference);return s.noClip||s.requestRawData||null==_||null==b||(_=await(0,c.$Q)(_,e,b)),{extent:e,srcExtent:d[0].srcExtent,pixelBlock:_}}getClippingGeometry(e){const t=this._clippingGeometry.get("0");if(!e||!t)return t;const i=function(e){return String(e.wkid??e.wkt??e.wkt2)}(e);let s=this._clippingGeometry.get(i);return null!=s||(s=e.equals(t.spatialReference)?t:(0,h.uk)(t,e),this._clippingGeometry.set(i,s)),s}async _open(e){const{rasterFunction:t}=this;this.primaryRasters?.rasters?.length?t.sourceRasters=this.primaryRasters.rasters:(this.primaryRasters=t.getPrimaryRasters(),this.rasterJobHandler&&this.primaryRasters.rasters?.forEach((e=>e.rasterJobHandler=this.rasterJobHandler)));const{rasters:i,rasterIds:s}=this.primaryRasters,n=i.map((t=>t.rasterInfo?void 0:t.open(e)));await Promise.all(n);const o=i.map((({rasterInfo:e})=>e)),l=t.bind({rasterInfos:o,rasterIds:s});if(t.rawSourceRasterInfos=o,!l.success||0===o.length)throw new r.A("raster-function:open",`cannot bind the function: ${l.error??""}`);const a="Table"===t.functionName?t:t.functionArguments?.raster;"Table"===a?.functionName&&(t.rasterInfo.attributeTable=d.A.fromJSON(a.functionArguments.attributeTableAsRecordSet)),await this.syncJobHandler();const c=o[0];this.hasUniqueSourceStorageInfo=1===o.length||o.slice(1).every((e=>function(e,t){const{storageInfo:i,pixelSize:s,spatialReference:r,extent:n}=e,{storageInfo:o,pixelSize:l,spatialReference:a,extent:c}=t;return s.x===l.x&&s.y===l.y&&r.equals(a)&&n.equals(c)&&i.blockHeight===o.blockHeight&&i.blockWidth===o.blockWidth&&i.maximumPyramidLevel===o.maximumPyramidLevel}(e,c))),this.set("sourceJSON",i[0].sourceJSON),this.set("rasterInfo",t.rasterInfo),await this._updateClipGeometry()}async syncJobHandler(){return this.rasterJobHandler?.updateRasterFunction(this.rasterFunction)}async _updateClipGeometry(){const e=this.rasterFunction.getClippingGeometries()[0];let t=e?.clippingGeometry;if(t&&"inside"===e.clippingType){const{extent:e}=this.rasterInfo,{difference:s,densify:r}=await Promise.all([i.e(9930),i.e(3209)]).then(i.bind(i,33209));let n=r(l.A.fromExtent(e),2*(e.width+e.height)/40);n=(0,h.uk)(n,t.spatialReference),t=s(n,t)}this._clippingGeometry.clear(),t&&this._clippingGeometry.set("0",t)}};(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"datasetFormat",void 0),(0,s._)([(0,n.MZ)()],p.prototype,"tileType",void 0),(0,s._)([(0,n.MZ)()],p.prototype,"rasterFunction",void 0),(0,s._)([(0,n.MZ)()],p.prototype,"primaryRasters",void 0),p=(0,s._)([(0,o.$)("esri.layers.support.rasterDatasets.FunctionRaster")],p);const f=p},50103:(e,t,i)=>{function s(e,t){if(!e||!t)return[];let i=t;t.includes("/")?(i=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";const r=[];if(t){const n=s(e,i);for(let e=0;e<n.length;e++)s(n[e],t).forEach((e=>r.push(e)));return r}const n=e.getElementsByTagNameNS("*",i);if(!n||0===n.length)return[];for(let e=0;e<n.length;e++)r.push(n[e]||n.item(e));return r}function r(e,t){if(!e||!t)return null;let i=t;t.includes("/")?(i=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";const n=s(e,i);return n.length>0?t?r(n[0],t):n[0]:null}function n(e,t=null){const i=t?r(e,t):e;let s;return i?(s=i.textContent||i.nodeValue,s?s.trim():null):null}function o(e,t){const i=s(e,t),r=[];let n;for(let e=0;e<i.length;e++)n=i[e].textContent||i[e].nodeValue,n&&(n=n.trim(),""!==n&&r.push(n));return r}function l(e,t=null){const i=n(e,t);return i?.split(" ").map((e=>Number(e)))??[]}function a(e,t){return o(e,t).map((e=>Number(e)))}function c(e,t){const i=n(e,t);return Number(i)}function u(e,t){const i=e?.nodeName?.toLowerCase(),s=t.toLowerCase();return i.slice(i.lastIndexOf(":")+1)===s}function h(e){return e.nodeName.slice(e.nodeName.lastIndexOf(":")+1)}i.d(t,{Dy:()=>o,IC:()=>s,Ui:()=>a,V6:()=>r,g7:()=>u,mX:()=>n,pN:()=>l,v7:()=>c,vv:()=>h})}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[377],{67482:(e,t,n)=>{function r(e){return null!=u(e)||null!=i(e)}function s(e){return a.test(e)}function o(e){return u(e)??i(e)}function i(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let n=!0;if(p&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,r=0;for(;!t&&r<=e.length;)t=!l.test(e[r]),r++;n=!t}}return n}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function u(e){const t=a.exec(e);if(!t?.groups)return null;const n=t.groups,r=+n.year,s=+n.month-1,o=+n.day,i=+(n.hours??"0"),u=+(n.minutes??"0"),l=+(n.seconds??"0");if(i>23)return null;if(u>59)return null;if(l>59)return null;const p=n.ms??"0",c=p?+p.padEnd(3,"0").slice(0,3):0;let d;if(n.isUTC||!n.offsetSign)d=Date.UTC(r,s,o,i,u,l,c);else{const e=+n.offsetHours,t=+n.offsetMinutes;d=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(r,s,o,i,u,l,c)}return Number.isNaN(d)?null:d}n.d(t,{Br:()=>s,Cq:()=>r,_U:()=>o});const a=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,l=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,p=!Number.isNaN(new Date("technology 10").getTime())},39516:(e,t,n)=>{let r;async function s(){return null==r&&(r=n.e(4123).then(n.bind(n,44123)).then((e=>new e.WhereClauseCache(500,500)))),r}async function o(e,t){const n=await s(),r=n.get(e,t);if(null==r)throw n.getError(e,t);return r}function i(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function u(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}n.d(t,{GP:()=>o,IW:()=>u,mA:()=>i})},85113:(e,t,n)=>{n.d(t,{BM:()=>x,bd:()=>T,sO:()=>S,xD:()=>p});var r=n(67482),s=n(49186),o=n(21325),i=n(43334),u=n(92722),a=n(30524);const l={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function p(e){return l[e]}function*c(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*d(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function f(e){for(const t of e)if(t.length>2)return!0;return!1}function y(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n],s=e[(n+1)%e.length];t+=r[0]*s[1]-s[0]*r[1]}return t<=0}function m(e){const t=e[0],n=e[e.length-1];return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t),e}function g(e,t,n){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,n){return b(e,t.coordinates,n),e}(e,t,n);case"MultiLineString":return function(e,t,n){for(const r of t.coordinates)b(e,r,n);return e}(e,t,n);case"MultiPolygon":return function(e,t,n){for(const r of t.coordinates){h(e,r[0],n);for(let t=1;t<r.length;t++)w(e,r[t],n)}return e}(e,t,n);case"Point":return function(e,t,n){return I(e,t.coordinates,n),e}(e,t,n);case"Polygon":return function(e,t,n){const r=t.coordinates;h(e,r[0],n);for(let t=1;t<r.length;t++)w(e,r[t],n);return e}(e,t,n)}}function h(e,t,n){const r=m(t);!function(e){return!y(e)}(r)?b(e,r,n):A(e,r,n)}function w(e,t,n){const r=m(t);!function(e){return y(e)}(r)?b(e,r,n):A(e,r,n)}function b(e,t,n){for(const r of t)I(e,r,n);e.lengths.push(t.length)}function A(e,t,n){for(let r=t.length-1;r>=0;r--)I(e,t[r],n);e.lengths.push(t.length)}function I(e,t,n){const[r,s,o]=t;e.coords.push(r,s),n.hasZ&&e.coords.push(o||0)}function F(e){switch(typeof e){case"string":return(0,r.Br)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function S(e,t=4326){if(!e)throw new s.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new s.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:n}=e;if(!n)return;const r="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,i=(0,o.oT)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!r||!i.test(r))throw new s.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function x(e,t={}){const n=[],r=new Set,s=new Set;let o,i=!1,u=null,l=!1,{geometryType:y=null}=t;for(const t of c(e)){const{geometry:e,properties:c,id:m}=t;if((!e||(y||(y=p(e.type)),p(e.type)===y))&&(i||(i=f(d(e))),l||(l=null!=m,l&&(o=typeof m,c&&(u=Object.keys(c).filter((e=>c[e]===m))))),c&&u&&l&&null!=m&&(u.length>1?u=u.filter((e=>c[e]===m)):1===u.length&&(u=c[u[0]]===m?u:[])),c))for(const e in c){if(r.has(e))continue;const t=F(c[e]);if("unknown"===t){s.add(e);continue}s.delete(e),r.add(e);const o=(0,a.rS)(e);o&&n.push({name:o,alias:e,type:t})}}const m=(0,a.rS)(1===u?.length&&u[0]||null)??void 0;if(m)for(const e of n)if(e.name===m&&(0,a.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:y,hasZ:i,objectIdFieldName:m,objectIdFieldType:o,unknownFields:Array.from(s)}}function T(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:r}=t;for(const s of e){const{geometry:e,properties:o,id:a}=s;if(e&&p(e.type)!==n)continue;const l=o||{};let c;r&&(c=l[r],null==a||c||(l[r]=c=a));const d=new i.Om(e?g(new u.A,e,t):null,l,null,c);yield d}}(c(e),t))}},64714:(e,t,n)=>{n.d(t,{F0:()=>a,Vx:()=>c,e2:()=>f,f:()=>y});var r=n(44208),s=n(4718),o=n(99352),i=n(4071),u=n(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?u.Cb:"esriGeometryPolyline"===e?u.yM:u.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let p=1;function c(e,t){if((0,r.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let n=`this${d(t)} = null;`;for(const t in e)n+=`this${d(t)} = ${JSON.stringify(e[t])};`;const r=new Function(`\n return class AttributesClass$${p++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new r}catch(n){return()=>({[t]:null,...e})}}function d(e){return l.test(e)?`.${e}`:`["${e}"]`}function f(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,s.o8)(e)}}]}function y(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:o.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i.$,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},82832:(e,t,n)=>{n.d(t,{$1:()=>g,CR:()=>m,MB:()=>d,Yx:()=>a,bP:()=>p});var r=n(67482),s=n(21325),o=n(30524);class i{constructor(){this.code=null,this.description=null}}class u{constructor(e){this.error=new i,this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error.description=e}}function a(e){return new u(e)}class l{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function p(e){return new l(e)}const c=new Set;function d(e,t,n,r=!1){c.clear();for(const s in n){const i=e.get(s);if(!i)continue;const u=f(i,n[s]);if(c.add(i.name),i&&(r||i.editable)){const e=(0,o.CJ)(i,u);if(e)return a((0,o.uo)(e,i,u));t[i.name]=u}}for(const t of e.requiredFields??[])if(!c.has(t.name))return a(`missing required field "${t.name}"`);return null}function f(e,t){let n=t;return(0,o.WA)(e)&&"string"==typeof t?n=parseFloat(t):(0,o.yM)(e)&&null!=t&&"string"!=typeof t?n=String(t):(0,o.vE)(e)&&"string"==typeof t&&(n=(0,r._U)(t)),(0,o.WX)(n)}let y;function m(e,t){if(!e||!(0,s.fn)(t))return e;if("rings"in e||"paths"in e){if(null==y)throw new TypeError("geometry engine not loaded");return y.simplify(t,e)}return e}async function g(e,t){!(0,s.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==y&&(y=await Promise.all([n.e(9930),n.e(1275)]).then(n.bind(n,47559))),y}()}},75321:(e,t,n)=>{n.d(t,{GA:()=>P,GL:()=>T,I:()=>N,J0:()=>$,Ki:()=>v,Px:()=>j,QE:()=>F,bV:()=>C,bW:()=>k,vJ:()=>I});var r=n(78888),s=n(49186),o=n(53966),i=n(84952),u=n(16930),a=n(21325),l=n(28735),p=n(90708),c=n(58512),d=n(85113),f=n(64714),y=n(82832),m=n(95466),g=n(98453),h=n(56400);const w=()=>o.A.getLogger("esri.layers.ogc.ogcFeatureUtils"),b="startindex",A=new Set([b,"offset"]),I="http://www.opengis.net/def/crs/",F=`${I}OGC/1.3/CRS84`;var S,x;async function T(e,t,n={},o=5){const{links:u}=e,a=D(u,"items",S.geojson)||D(u,"http://www.opengis.net/def/rel/ogc/1.0/items",S.geojson);if(null==a)throw new s.A("ogc-feature-layer:missing-items-page","Missing items url");const{apiKey:l,customParameters:p,signal:c}=n,y=(0,i.s2)(a.href,e.landingPage.url),A={limit:o,...p,token:l},I=(0,i.a6)(y,A),F={accept:S.geojson},{data:x}=await(0,r.A)(I,{signal:c,headers:F}),T=G(I,o,x.links)??b;(0,d.sO)(x);const C=(0,d.BM)(x,{geometryType:t.geometryType}),j=t.fields||C.fields||[],v=null!=t.hasZ?t.hasZ:C.hasZ,P=C.geometryType,$=t.objectIdField||C.objectIdFieldName||"OBJECTID";let k=t.timeInfo;const N=j.find((({name:e})=>e===$));if(N)N.editable=!1,N.nullable=!1;else{if(!C.objectIdFieldType)throw new s.A("ogc-feature-layer:missing-feature-id","Collection geojson require a feature id as a unique identifier");j.unshift({name:$,alias:$,type:"number"===C.objectIdFieldType?"esriFieldTypeOID":"esriFieldTypeString",editable:!1,nullable:!1})}if($!==C.objectIdFieldName){const e=j.find((({name:e})=>e===C.objectIdFieldName));e&&(e.type="esriFieldTypeInteger")}j===C.fields&&C.unknownFields.length>0&&w().warn({name:"ogc-feature-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:C.unknownFields}});for(const e of j){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),"esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable),!e.name)throw new s.A("ogc-feature-layer:invalid-field-name","field name is missing",{field:e});if(!g.m.jsonValues.includes(e.type))throw new s.A("ogc-feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e})}if(k){const e=new m.A(j);if(k.startTimeField){const t=e.get(k.startTimeField);t?(k.startTimeField=t.name,t.type="esriFieldTypeDate"):k.startTimeField=null}if(k.endTimeField){const t=e.get(k.endTimeField);t?(k.endTimeField=t.name,t.type="esriFieldTypeDate"):k.endTimeField=null}if(k.trackIdField){const t=e.get(k.trackIdField);t?k.trackIdField=t.name:(k.trackIdField=null,w().warn({name:"ogc-feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:k}}))}k.timeReference||={timeZoneIANA:h.n$},k.startTimeField||k.endTimeField||(w().warn({name:"ogc-feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:k}}),k=void 0)}return{drawingInfo:P?(0,f.F0)(P):null,extent:O(e),geometryType:P,fields:j,hasZ:!!v,objectIdField:$,paginationParameter:T,timeInfo:k}}async function C(e,t={}){const{links:n,url:o}=e,u=D(n,"data",S.json)||D(n,"http://www.opengis.net/def/rel/ogc/1.0/data",S.json);if(null==u)throw new s.A("ogc-feature-layer:missing-collections-page","Missing collections url");const{apiKey:a,customParameters:l,signal:p}=t,c=(0,i.s2)(u.href,o),{data:d}=await(0,r.A)(c,{signal:p,headers:{accept:S.json},query:{...l,token:a}});for(const t of d.collections)t.landingPage=e;return d}async function j(e,t={}){const{links:n,url:o}=e,u=D(n,"conformance",S.json)||D(n,"http://www.opengis.net/def/rel/ogc/1.0/conformance",S.json);if(null==u)throw new s.A("ogc-feature-layer:missing-conformance-page","Missing conformance url");const{apiKey:a,customParameters:l,signal:p}=t,c=(0,i.s2)(u.href,o),{data:d}=await(0,r.A)(c,{signal:p,headers:{accept:S.json},query:{...l,token:a}});return d}async function v(e,t={}){const{apiKey:n,customParameters:s,signal:o}=t,{data:i}=await(0,r.A)(e,{signal:o,headers:{accept:S.json},query:{...s,token:n}});return i.url=e,i}async function P(e,t={}){const{links:n,url:s}=e,o=D(n,"service-desc",S.openapi);if(null==o)return w().warn("ogc-feature-layer:missing-openapi-page","The OGC API-Features server does not have an OpenAPI page."),null;const{apiKey:u,customParameters:a,signal:l}=t,p=(0,i.s2)(o.href,s),{data:c}=await(0,r.A)(p,{signal:l,headers:{accept:S.openapi},query:{...a,token:u}});return c}function $(e){const t=/^http:\/\/www\.opengis.net\/def\/crs\/(?<authority>.*)\/(?<version>.*)\/(?<code>.*)$/i.exec(e),n=t?.groups;if(!n)return null;const{authority:r,code:s}=n;switch(r.toLowerCase()){case"ogc":switch(s.toLowerCase()){case"crs27":return u.A.GCS_NAD_1927.wkid;case"crs83":return 4269;case"crs84":case"crs84h":return u.A.WGS84.wkid;default:return null}case"esri":case"epsg":{const e=Number.parseInt(s,10);return Number.isNaN(e)?null:e}default:return null}}async function k(e,t,n){const r=await N(e,t,n);return(0,p.ZF)(r)}async function N(e,t,n){const{collection:{links:o,landingPage:{url:f}},layerDefinition:g,maxRecordCount:h,queryParameters:{apiKey:w,customParameters:b},spatialReference:A,supportedCrs:I}=e,F=D(o,"items",S.geojson)||D(o,"http://www.opengis.net/def/rel/ogc/1.0/items",S.geojson);if(null==F)throw new s.A("ogc-feature-layer:missing-items-page","Missing items url");const{geometry:x,num:T,start:C,timeExtent:j,where:v}=t;if(t.objectIds)throw new s.A("ogc-feature-layer:query-by-objectids-not-supported","Queries with object ids are not supported");const P=u.A.fromJSON(A),$=t.outSpatialReference??P,k=$.isWGS84?null:R($,I),N=M(x,I),E=function(e){if(null==e)return null;const{start:t,end:n}=e;return`${null!=t?t.toISOString():".."}/${null!=n?n.toISOString():".."}`}(j),O=null!=(V=v)&&V&&"1=1"!==V?V:null,G=T??(null==C?h:10),B=0===C?void 0:C,{fields:q,geometryType:W,hasZ:U,objectIdField:H,paginationParameter:Z}=g,Q=(0,i.s2)(F.href,f),{data:z}=await(0,r.A)(Q,{...n,query:{...b,...N,crs:k,datetime:E,query:O,limit:G,[Z]:B,token:w},headers:{accept:S.geojson}}),_=(0,d.bd)(z,{geometryType:W,hasZ:U,objectIdField:H}),L=_.length===G&&!!D(z.links??[],"next",S.geojson),J=new m.A(q);var V;for(const e of _){const t={};(0,y.MB)(J,t,e.attributes,!0);for(const e of J.fields)e.nullable&&!(e.name in t)&&(t[e.name]=null);t[H]=e.attributes[H],e.attributes=t}if(!k&&$.isWebMercator)for(const e of _)if(null!=e.geometry&&null!=W){const t=(0,p.zv)(e.geometry,W,U,!1);t.spatialReference=u.A.WGS84,e.geometry=(0,p.Ux)((0,l.Cv)(t,$))}for(const e of _)e.objectId=e.attributes[H];const K=k||!k&&$.isWebMercator?$.toJSON():a.KK,Y=new c.A;return Y.exceededTransferLimit=L,Y.features=_,Y.fields=q,Y.geometryType=W,Y.hasZ=U,Y.objectIdFieldName=H,Y.spatialReference=K,Y}function R(e,t){const{isWebMercator:n,wkid:r}=e;if(!r)return null;const s=n?t[3857]??t[102100]??t[102113]??t[900913]:t[e.wkid];return s?`${I}${s}`:null}function E(e){if(null==e)return"";const{xmin:t,ymin:n,xmax:r,ymax:s}=e;return`${t},${n},${r},${s}`}function M(e,t){if(!function(e){return null!=e&&"extent"===e.type}(e))return null;const{spatialReference:n}=e;if(!n||n.isWGS84)return{bbox:E(e)};const r=R(n,t);return null!=r?{bbox:E(e),"bbox-crs":r}:n.isWebMercator?{bbox:E((0,l.Cv)(e,u.A.WGS84))}:null}function O(e){const t=e.extent?.spatial;if(!t)return null;const n=t.bbox[0],r=4===n.length,[s,o]=n,i=r?void 0:n[2];return{xmin:s,ymin:o,xmax:r?n[2]:n[3],ymax:r?n[3]:n[4],zmin:i,zmax:r?void 0:n[5],spatialReference:u.A.WGS84.toJSON()}}function D(e,t,n){return e.find((({rel:e,type:r})=>e===t&&r===n))??e.find((({rel:e,type:n})=>e===t&&!n))}function G(e,t,n){if(!n)return;const r=D(n,"next",S.geojson),s=(0,i.An)(r?.href)?.query;if(!s)return;const o=(0,i.An)(e).query,u=Object.keys(o??{}),a=Object.entries(s).filter((([e])=>!u.includes(e))).find((([e,n])=>A.has(e.toLowerCase())&&Number.parseInt(n,10)===t)),l=a?.[0];return l}(x=S||(S={})).json="application/json",x.geojson="application/geo+json",x.openapi="application/vnd.oai.openapi+json;version=3.0"},4071:(e,t,n)=>{n.d(t,{$:()=>r,P:()=>s});const r={supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportsStackBy:!1,supportsSplitBy:!1,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!1,supportedStatistics:void 0,supportedNormalizationTypes:void 0},s={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsResize:!1},data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsAsyncApplyEdits:!1,zDefault:void 0},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryBins:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r,query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsCurrentUser:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsTrueCurve:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},41560:(e,t,n)=>{n.d(t,{Ch:()=>i,mW:()=>o});var r=n(34727),s=n(39516);function o(e,t){return{...t,filterMode:e.mode}}function i(e,t,n){const o=function(e){if("manual"===l(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:r}of e.filters)t[0]=Math.max(t[0],p(n)),t[1]=Math.min(t[1],c(r));return t}(e);if(o&&((0,r.gg)(t,o[0])||(0,r.ZH)(n,o[1])))return"";const i=Array.from(u(e,t,n)),a=function(e,t,n){if(0===e.length)return!0;const s=p(e.at(0)?.minScale),o=c(e.at(-1)?.maxScale);if((0,r.ZH)(s,t)||(0,r.gg)(o,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],s=e[t+1];if((0,r.ZH)(p(s.minScale),c(n.maxScale)))return!0}return!1}(i,t,n)?"1=1":i.map((e=>e.where||"1=1")).reduce(((e,t)=>(0,s.IW)(e,t)),"");return a&&"1=1"!==a?a:""}function*u(e,t,n){if("manual"===l(e)){const t=e.filters.find((t=>t.id===e.activeFilterId));t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const r of e.filters)a(r.minScale,r.maxScale,t,n)&&(yield r)}}function a(e,t,n,s){return e=p(e),n=p(n),t=c(t),!(!(0,r.Sp)(n,e)&&(s??n)>e||(0,r.Hx)(t,n)||void 0!==s&&(0,r.Sp)(s,e))}function l(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||Number.POSITIVE_INFINITY}function c(e){return e||0}},32730:(e,t,n)=>{n.d(t,{BI:()=>g,D3:()=>y,XJ:()=>m,lc:()=>f,mX:()=>w,rU:()=>h,tH:()=>S});var r=n(799);const s="__begin__",o="__end__",i=new RegExp(s,"ig"),u=new RegExp(o,"ig"),a=new RegExp("^"+s,"i"),l=new RegExp(o+"$","i"),p='"',c=p+" + ",d=" + "+p;function f(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function y(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function m(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=f(e.labelExpression),t.type="conventional"),t}function g(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return w(t.expression);case"arcade":return t.expression}return null}function h(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(b);return t?.[1].trim()||null}(t.expression);case"arcade":return S(t.expression)}return null}function w(e){let t;return e?(t=(0,r.HC)(e,(e=>s+'$feature["'+e+'"]'+o)),t=a.test(t)?t.replace(a,""):p+t,t=l.test(t)?t.replace(l,""):t+p,t=t.replaceAll(i,c).replaceAll(u,d)):t='""',t}const b=/^\s*\{([^}]+)\}\s*$/i,A=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,I=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,F=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function S(e){if(!e)return null;let t=A.exec(e)||I.exec(e);return t?t[1]||t[3]:(t=F.exec(e),t?t[2]:null)}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[377],{67482:(e,t,n)=>{function r(e){return null!=u(e)||null!=i(e)}function s(e){return a.test(e)}function o(e){return u(e)??i(e)}function i(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let n=!0;if(p&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,r=0;for(;!t&&r<=e.length;)t=!l.test(e[r]),r++;n=!t}}return n}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function u(e){const t=a.exec(e);if(!t?.groups)return null;const n=t.groups,r=+n.year,s=+n.month-1,o=+n.day,i=+(n.hours??"0"),u=+(n.minutes??"0"),l=+(n.seconds??"0");if(i>23)return null;if(u>59)return null;if(l>59)return null;const p=n.ms??"0",c=p?+p.padEnd(3,"0").slice(0,3):0;let d;if(n.isUTC||!n.offsetSign)d=Date.UTC(r,s,o,i,u,l,c);else{const e=+n.offsetHours,t=+n.offsetMinutes;d=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(r,s,o,i,u,l,c)}return Number.isNaN(d)?null:d}n.d(t,{Br:()=>s,Cq:()=>r,_U:()=>o});const a=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,l=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,p=!Number.isNaN(new Date("technology 10").getTime())},39516:(e,t,n)=>{let r;async function s(){return null==r&&(r=n.e(4123).then(n.bind(n,44123)).then((e=>new e.WhereClauseCache(500,500)))),r}async function o(e,t){const n=await s(),r=n.get(e,t);if(null==r)throw n.getError(e,t);return r}function i(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function u(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}n.d(t,{GP:()=>o,IW:()=>u,mA:()=>i})},85113:(e,t,n)=>{n.d(t,{BM:()=>x,bd:()=>T,sO:()=>S,xD:()=>p});var r=n(67482),s=n(49186),o=n(21325),i=n(43334),u=n(92722),a=n(30524);const l={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function p(e){return l[e]}function*c(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*d(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function f(e){for(const t of e)if(t.length>2)return!0;return!1}function y(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n],s=e[(n+1)%e.length];t+=r[0]*s[1]-s[0]*r[1]}return t<=0}function m(e){const t=e[0],n=e[e.length-1];return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t),e}function g(e,t,n){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,n){return b(e,t.coordinates,n),e}(e,t,n);case"MultiLineString":return function(e,t,n){for(const r of t.coordinates)b(e,r,n);return e}(e,t,n);case"MultiPolygon":return function(e,t,n){for(const r of t.coordinates){h(e,r[0],n);for(let t=1;t<r.length;t++)w(e,r[t],n)}return e}(e,t,n);case"Point":return function(e,t,n){return F(e,t.coordinates,n),e}(e,t,n);case"Polygon":return function(e,t,n){const r=t.coordinates;h(e,r[0],n);for(let t=1;t<r.length;t++)w(e,r[t],n);return e}(e,t,n)}}function h(e,t,n){const r=m(t);!function(e){return!y(e)}(r)?b(e,r,n):A(e,r,n)}function w(e,t,n){const r=m(t);!function(e){return y(e)}(r)?b(e,r,n):A(e,r,n)}function b(e,t,n){for(const r of t)F(e,r,n);e.lengths.push(t.length)}function A(e,t,n){for(let r=t.length-1;r>=0;r--)F(e,t[r],n);e.lengths.push(t.length)}function F(e,t,n){const[r,s,o]=t;e.coords.push(r,s),n.hasZ&&e.coords.push(o||0)}function I(e){switch(typeof e){case"string":return(0,r.Br)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function S(e,t=4326){if(!e)throw new s.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new s.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:n}=e;if(!n)return;const r="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,i=(0,o.oT)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!r||!i.test(r))throw new s.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function x(e,t={}){const n=[],r=new Set,s=new Set;let o,i=!1,u=null,l=!1,{geometryType:y=null}=t;for(const t of c(e)){const{geometry:e,properties:c,id:m}=t;if((!e||(y||(y=p(e.type)),p(e.type)===y))&&(i||(i=f(d(e))),l||(l=null!=m,l&&(o=typeof m,c&&(u=Object.keys(c).filter((e=>c[e]===m))))),c&&u&&l&&null!=m&&(u.length>1?u=u.filter((e=>c[e]===m)):1===u.length&&(u=c[u[0]]===m?u:[])),c))for(const e in c){if(r.has(e))continue;const t=I(c[e]);if("unknown"===t){s.add(e);continue}s.delete(e),r.add(e);const o=(0,a.rS)(e);o&&n.push({name:o,alias:e,type:t})}}const m=(0,a.rS)(1===u?.length&&u[0]||null)??void 0;if(m)for(const e of n)if(e.name===m&&(0,a.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:y,hasZ:i,objectIdFieldName:m,objectIdFieldType:o,unknownFields:Array.from(s)}}function T(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:r}=t;for(const s of e){const{geometry:e,properties:o,id:a}=s;if(e&&p(e.type)!==n)continue;const l=o||{};let c;r&&(c=l[r],null==a||c||(l[r]=c=a));const d=new i.Om(e?g(new u.A,e,t):null,l,null,c);yield d}}(c(e),t))}},64714:(e,t,n)=>{n.d(t,{F0:()=>a,Vx:()=>c,e2:()=>f,f:()=>y});var r=n(44208),s=n(4718),o=n(99352),i=n(4071),u=n(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?u.Cb:"esriGeometryPolyline"===e?u.yM:u.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let p=1;function c(e,t){if((0,r.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let n=`this${d(t)} = null;`;for(const t in e)n+=`this${d(t)} = ${JSON.stringify(e[t])};`;const r=new Function(`\n return class AttributesClass$${p++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new r}catch(n){return()=>({[t]:null,...e})}}function d(e){return l.test(e)?`.${e}`:`["${e}"]`}function f(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,s.o8)(e)}}]}function y(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:o.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i.$,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},82832:(e,t,n)=>{n.d(t,{$1:()=>g,CR:()=>m,MB:()=>d,Yx:()=>a,bP:()=>p});var r=n(67482),s=n(21325),o=n(30524);class i{constructor(){this.code=null,this.description=null}}class u{constructor(e){this.error=new i,this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error.description=e}}function a(e){return new u(e)}class l{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function p(e){return new l(e)}const c=new Set;function d(e,t,n,r=!1){c.clear();for(const s in n){const i=e.get(s);if(!i)continue;const u=f(i,n[s]);if(c.add(i.name),i&&(r||i.editable)){const e=(0,o.CJ)(i,u);if(e)return a((0,o.uo)(e,i,u));t[i.name]=u}}for(const t of e.requiredFields??[])if(!c.has(t.name))return a(`missing required field "${t.name}"`);return null}function f(e,t){let n=t;return(0,o.WA)(e)&&"string"==typeof t?n=parseFloat(t):(0,o.yM)(e)&&null!=t&&"string"!=typeof t?n=String(t):(0,o.vE)(e)&&"string"==typeof t&&(n=(0,r._U)(t)),(0,o.WX)(n)}let y;function m(e,t){if(!e||!(0,s.fn)(t))return e;if("rings"in e||"paths"in e){if(null==y)throw new TypeError("geometry engine not loaded");return y.simplify(t,e)}return e}async function g(e,t){!(0,s.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==y&&(y=await Promise.all([n.e(9930),n.e(1275)]).then(n.bind(n,47559))),y}()}},75321:(e,t,n)=>{n.d(t,{GA:()=>P,GL:()=>T,I:()=>N,J0:()=>$,Ki:()=>v,Px:()=>j,QE:()=>I,bV:()=>C,bW:()=>k,vJ:()=>F});var r=n(78888),s=n(49186),o=n(53966),i=n(84952),u=n(16930),a=n(21325),l=n(28735),p=n(90708),c=n(58512),d=n(85113),f=n(64714),y=n(82832),m=n(95466),g=n(98453),h=n(56400);const w=()=>o.A.getLogger("esri.layers.ogc.ogcFeatureUtils"),b="startindex",A=new Set([b,"offset"]),F="http://www.opengis.net/def/crs/",I=`${F}OGC/1.3/CRS84`;var S,x;async function T(e,t,n={},o=5){const{links:u}=e,a=D(u,"items",S.geojson)||D(u,"http://www.opengis.net/def/rel/ogc/1.0/items",S.geojson);if(null==a)throw new s.A("ogc-feature-layer:missing-items-page","Missing items url");const{apiKey:l,customParameters:p,signal:c}=n,y=(0,i.s2)(a.href,e.landingPage.url),A={limit:o,...p,token:l},F=(0,i.a6)(y,A),I={accept:S.geojson},{data:x}=await(0,r.A)(F,{signal:c,headers:I}),T=G(F,o,x.links)??b;(0,d.sO)(x);const C=(0,d.BM)(x,{geometryType:t.geometryType}),j=t.fields||C.fields||[],v=null!=t.hasZ?t.hasZ:C.hasZ,P=C.geometryType,$=t.objectIdField||C.objectIdFieldName||"OBJECTID";let k=t.timeInfo;const N=j.find((({name:e})=>e===$));if(N)N.editable=!1,N.nullable=!1;else{if(!C.objectIdFieldType)throw new s.A("ogc-feature-layer:missing-feature-id","Collection geojson require a feature id as a unique identifier");j.unshift({name:$,alias:$,type:"number"===C.objectIdFieldType?"esriFieldTypeOID":"esriFieldTypeString",editable:!1,nullable:!1})}if($!==C.objectIdFieldName){const e=j.find((({name:e})=>e===C.objectIdFieldName));e&&(e.type="esriFieldTypeInteger")}j===C.fields&&C.unknownFields.length>0&&w().warn({name:"ogc-feature-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:C.unknownFields}});for(const e of j){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),"esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable),!e.name)throw new s.A("ogc-feature-layer:invalid-field-name","field name is missing",{field:e});if(!g.m.jsonValues.includes(e.type))throw new s.A("ogc-feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e})}if(k){const e=new m.A(j);if(k.startTimeField){const t=e.get(k.startTimeField);t?(k.startTimeField=t.name,t.type="esriFieldTypeDate"):k.startTimeField=null}if(k.endTimeField){const t=e.get(k.endTimeField);t?(k.endTimeField=t.name,t.type="esriFieldTypeDate"):k.endTimeField=null}if(k.trackIdField){const t=e.get(k.trackIdField);t?k.trackIdField=t.name:(k.trackIdField=null,w().warn({name:"ogc-feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:k}}))}k.timeReference||={timeZoneIANA:h.n$},k.startTimeField||k.endTimeField||(w().warn({name:"ogc-feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:k}}),k=void 0)}return{drawingInfo:P?(0,f.F0)(P):null,extent:O(e),geometryType:P,fields:j,hasZ:!!v,objectIdField:$,paginationParameter:T,timeInfo:k}}async function C(e,t={}){const{links:n,url:o}=e,u=D(n,"data",S.json)||D(n,"http://www.opengis.net/def/rel/ogc/1.0/data",S.json);if(null==u)throw new s.A("ogc-feature-layer:missing-collections-page","Missing collections url");const{apiKey:a,customParameters:l,signal:p}=t,c=(0,i.s2)(u.href,o),{data:d}=await(0,r.A)(c,{signal:p,headers:{accept:S.json},query:{...l,token:a}});for(const t of d.collections)t.landingPage=e;return d}async function j(e,t={}){const{links:n,url:o}=e,u=D(n,"conformance",S.json)||D(n,"http://www.opengis.net/def/rel/ogc/1.0/conformance",S.json);if(null==u)throw new s.A("ogc-feature-layer:missing-conformance-page","Missing conformance url");const{apiKey:a,customParameters:l,signal:p}=t,c=(0,i.s2)(u.href,o),{data:d}=await(0,r.A)(c,{signal:p,headers:{accept:S.json},query:{...l,token:a}});return d}async function v(e,t={}){const{apiKey:n,customParameters:s,signal:o}=t,{data:i}=await(0,r.A)(e,{signal:o,headers:{accept:S.json},query:{...s,token:n}});return i.url=e,i}async function P(e,t={}){const{links:n,url:s}=e,o=D(n,"service-desc",S.openapi);if(null==o)return w().warn("ogc-feature-layer:missing-openapi-page","The OGC API-Features server does not have an OpenAPI page."),null;const{apiKey:u,customParameters:a,signal:l}=t,p=(0,i.s2)(o.href,s),{data:c}=await(0,r.A)(p,{signal:l,headers:{accept:S.openapi},query:{...a,token:u}});return c}function $(e){const t=/^http:\/\/www\.opengis.net\/def\/crs\/(?<authority>.*)\/(?<version>.*)\/(?<code>.*)$/i.exec(e),n=t?.groups;if(!n)return null;const{authority:r,code:s}=n;switch(r.toLowerCase()){case"ogc":switch(s.toLowerCase()){case"crs27":return u.A.GCS_NAD_1927.wkid;case"crs83":return 4269;case"crs84":case"crs84h":return u.A.WGS84.wkid;default:return null}case"esri":case"epsg":{const e=Number.parseInt(s,10);return Number.isNaN(e)?null:e}default:return null}}async function k(e,t,n){const r=await N(e,t,n);return(0,p.ZF)(r)}async function N(e,t,n){const{collection:{links:o,landingPage:{url:f}},layerDefinition:g,maxRecordCount:h,queryParameters:{apiKey:w,customParameters:b},spatialReference:A,supportedCrs:F}=e,I=D(o,"items",S.geojson)||D(o,"http://www.opengis.net/def/rel/ogc/1.0/items",S.geojson);if(null==I)throw new s.A("ogc-feature-layer:missing-items-page","Missing items url");const{geometry:x,num:T,start:C,timeExtent:j,where:v}=t;if(t.objectIds)throw new s.A("ogc-feature-layer:query-by-objectids-not-supported","Queries with object ids are not supported");const P=u.A.fromJSON(A),$=t.outSpatialReference??P,k=$.isWGS84?null:R($,F),N=M(x,F),E=function(e){if(null==e)return null;const{start:t,end:n}=e;return`${null!=t?t.toISOString():".."}/${null!=n?n.toISOString():".."}`}(j),O=null!=(V=v)&&V&&"1=1"!==V?V:null,G=T??(null==C?h:10),B=0===C?void 0:C,{fields:q,geometryType:W,hasZ:U,objectIdField:H,paginationParameter:Z}=g,Q=(0,i.s2)(I.href,f),{data:z}=await(0,r.A)(Q,{...n,query:{...b,...N,crs:k,datetime:E,query:O,limit:G,[Z]:B,token:w},headers:{accept:S.geojson}}),_=(0,d.bd)(z,{geometryType:W,hasZ:U,objectIdField:H}),L=_.length===G&&!!D(z.links??[],"next",S.geojson),J=new m.A(q);var V;for(const e of _){const t={};(0,y.MB)(J,t,e.attributes,!0);for(const e of J.fields)e.nullable&&!(e.name in t)&&(t[e.name]=null);t[H]=e.attributes[H],e.attributes=t}if(!k&&$.isWebMercator)for(const e of _)if(null!=e.geometry&&null!=W){const t=(0,p.zv)(e.geometry,W,U,!1);t.spatialReference=u.A.WGS84,e.geometry=(0,p.Ux)((0,l.Cv)(t,$))}for(const e of _)e.objectId=e.attributes[H];const K=k||!k&&$.isWebMercator?$.toJSON():a.KK,Y=new c.A;return Y.exceededTransferLimit=L,Y.features=_,Y.fields=q,Y.geometryType=W,Y.hasZ=U,Y.objectIdFieldName=H,Y.spatialReference=K,Y}function R(e,t){const{isWebMercator:n,wkid:r}=e;if(!r)return null;const s=n?t[3857]??t[102100]??t[102113]??t[900913]:t[e.wkid];return s?`${F}${s}`:null}function E(e){if(null==e)return"";const{xmin:t,ymin:n,xmax:r,ymax:s}=e;return`${t},${n},${r},${s}`}function M(e,t){if(!function(e){return null!=e&&"extent"===e.type}(e))return null;const{spatialReference:n}=e;if(!n||n.isWGS84)return{bbox:E(e)};const r=R(n,t);return null!=r?{bbox:E(e),"bbox-crs":r}:n.isWebMercator?{bbox:E((0,l.Cv)(e,u.A.WGS84))}:null}function O(e){const t=e.extent?.spatial;if(!t)return null;const n=t.bbox[0],r=4===n.length,[s,o]=n,i=r?void 0:n[2];return{xmin:s,ymin:o,xmax:r?n[2]:n[3],ymax:r?n[3]:n[4],zmin:i,zmax:r?void 0:n[5],spatialReference:u.A.WGS84.toJSON()}}function D(e,t,n){return e.find((({rel:e,type:r})=>e===t&&r===n))??e.find((({rel:e,type:n})=>e===t&&!n))}function G(e,t,n){if(!n)return;const r=D(n,"next",S.geojson),s=(0,i.An)(r?.href)?.query;if(!s)return;const o=(0,i.An)(e).query,u=Object.keys(o??{}),a=Object.entries(s).filter((([e])=>!u.includes(e))).find((([e,n])=>A.has(e.toLowerCase())&&Number.parseInt(n,10)===t)),l=a?.[0];return l}(x=S||(S={})).json="application/json",x.geojson="application/geo+json",x.openapi="application/vnd.oai.openapi+json;version=3.0"},4071:(e,t,n)=>{n.d(t,{$:()=>r,P:()=>s});const r={supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportsStackBy:!1,supportsSplitBy:!1,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!1,supportedStatistics:void 0,supportedNormalizationTypes:void 0},s={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsOrderByFields:!1,supportsResize:!1},data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsAsyncApplyEdits:!1,zDefault:void 0},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryBins:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r,query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsCurrentUser:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsTrueCurve:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},41560:(e,t,n)=>{n.d(t,{Ch:()=>i,mW:()=>o});var r=n(34727),s=n(39516);function o(e,t){return{...t,filterMode:e.mode}}function i(e,t,n){const o=function(e){if("manual"===l(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:r}of e.filters)t[0]=Math.max(t[0],p(n)),t[1]=Math.min(t[1],c(r));return t}(e);if(o&&((0,r.gg)(t,o[0])||(0,r.ZH)(n,o[1])))return"";const i=Array.from(u(e,t,n)),a=function(e,t,n){if(0===e.length)return!0;const s=p(e.at(0)?.minScale),o=c(e.at(-1)?.maxScale);if((0,r.ZH)(s,t)||(0,r.gg)(o,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],s=e[t+1];if((0,r.ZH)(p(s.minScale),c(n.maxScale)))return!0}return!1}(i,t,n)?"1=1":i.map((e=>e.where||"1=1")).reduce(((e,t)=>(0,s.IW)(e,t)),"");return a&&"1=1"!==a?a:""}function*u(e,t,n){if("manual"===l(e)){const t=e.filters.find((t=>t.id===e.activeFilterId));t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const r of e.filters)a(r.minScale,r.maxScale,t,n)&&(yield r)}}function a(e,t,n,s){return e=p(e),n=p(n),t=c(t),!(!(0,r.Sp)(n,e)&&(s??n)>e||(0,r.Hx)(t,n)||void 0!==s&&(0,r.Sp)(s,e))}function l(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||Number.POSITIVE_INFINITY}function c(e){return e||0}},32730:(e,t,n)=>{n.d(t,{BI:()=>g,D3:()=>y,XJ:()=>m,lc:()=>f,mX:()=>w,rU:()=>h,tH:()=>S});var r=n(799);const s="__begin__",o="__end__",i=new RegExp(s,"ig"),u=new RegExp(o,"ig"),a=new RegExp("^"+s,"i"),l=new RegExp(o+"$","i"),p='"',c=p+" + ",d=" + "+p;function f(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function y(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function m(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=f(e.labelExpression),t.type="conventional"),t}function g(e){const t=m(e);switch(t.type){case"conventional":return w(t.expression);case"arcade":return t.expression}return null}function h(e){const t=m(e);switch(t.type){case"conventional":return function(e){const t=e?.match(b);return t?.[1].trim()||null}(t.expression);case"arcade":return S(t.expression)}return null}function w(e){let t;return e?(t=(0,r.HC)(e,(e=>s+'$feature["'+e+'"]'+o)),t=a.test(t)?t.replace(a,""):p+t,t=l.test(t)?t.replace(l,""):t+p,t=t.replaceAll(i,c).replaceAll(u,d)):t='""',t}const b=/^\s*\{([^}]+)\}\s*$/i,A=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,F=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,I=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function S(e){if(!e)return null;let t=A.exec(e)||F.exec(e);return t?t[1]||t[3]:(t=I.exec(e),t?t[2]:null)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8948],{13874:(t,e,i)=>{i.d(e,{A:()=>it});var o=i(90237),s=i(69540),r=i(5503),n=i(25482),l=i(4718),p=i(53966),a=i(74887),d=i(10107),c=i(79901),u=i(36005),y=i(40608),h=i(43937),f=i(56507),v=i(30524),_=i(89893),m=i(84424),w=i(80737),A=i(96808),x=i(66159),M=i(67336),I=i(92094),g=i(23721),Z=i(47582);const b={base:null,key:"type",typeMap:{attachment:_.A,media:M.A,text:g.A,expression:A.A,field:x.A,relationship:I.A,utilityNetworkAssociations:Z.A}},j={base:null,key:"type",typeMap:{attachment:_.A,media:M.A,text:g.A,expression:A.A,field:x.A,relationship:I.A}};var F,N=i(93705),R=i(41227);i(44208),i(87811);let S=F=class extends n.A{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new F({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,o._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"returnTopmostRaster",void 0),(0,o._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"showNoDataRecords",void 0),S=F=(0,o._)([(0,y.$)("esri.popup.LayerOptions")],S);const C=S;var O,T=i(49852);let $=O=class extends n.A{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new O({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,l.o8)(this.orderByFields):null})}};(0,o._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],$.prototype,"showRelatedRecords",void 0),(0,o._)([(0,d.MZ)({type:[T.A],json:{write:!0}})],$.prototype,"orderByFields",void 0),$=O=(0,o._)([(0,y.$)("esri.popup.RelatedRecordsInfo")],$);const E=$;var B,k=i(58280),J=i(69622),q=i(4902);let L=B=class extends(q.A.IdentifiableMixin(J.A)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new B({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,o._)([(0,d.MZ)()],L.prototype,"active",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"className",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"disabled",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"icon",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"id",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"indicator",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"title",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"type",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"visible",void 0),L=B=(0,o._)([(0,y.$)("esri.support.actions.ActionBase")],L);const U=L;var z;let P=z=class extends U{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new z({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,o._)([(0,d.MZ)()],P.prototype,"image",void 0),P=z=(0,o._)([(0,y.$)("esri.support.actions.ActionButton")],P);const D=P;var K;let V=K=class extends U{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new K({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,o._)([(0,d.MZ)()],V.prototype,"image",void 0),(0,o._)([(0,d.MZ)()],V.prototype,"value",void 0),V=K=(0,o._)([(0,y.$)("esri.support.actions.ActionToggle")],V);const W=V,G="relationships/",H="expression/",X=r.A.ofType({key:"type",defaultKeyValue:"button",base:U,typeMap:{button:D,toggle:W}}),Q={base:m.A,key:"type",typeMap:{media:M.A,custom:w.A,text:g.A,attachments:_.A,fields:x.A,expression:A.A,relationship:I.A,utilityNetworkAssociations:Z.A}},Y=new Set(["attachments","fields","media","text","expression","relationship"]),tt=new Set([...Y,"utility-network-associations"]);let et=class extends(s.A.ClonableMixin(n.A)){constructor(){super(...arguments),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map((t=>(0,f.aq)(Q,t))):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,a.$X)(t)?t:(p.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:i}=e;return Array.isArray(i)&&i.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,i):this._readPopupInfo(e)}writeWebSceneContent(t,e,i,o){this._writePopupTemplateContent(t,e,o)}writeWebMapContent(t,e,i,o){this._writePopupTemplateContent(t,e,o)}writeFieldInfos(t,e,i,o){const{content:s}=this,r=Array.isArray(s)?s:null;if(t){const i=r?r.filter((t=>"fields"===t.type)):[],s=i.length&&i.every((t=>t.fieldInfos?.length));e.fieldInfos=t.filter(Boolean).map((t=>{const e=t.toJSON(o);return s&&(e.visible=!1),e}))}if(r)for(const t of r)"fields"===t.type&&this._writeFieldsContent(t,e)}writeLayerOptions(t,e,i,o){e[i]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(o)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e){const i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,v._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t){const e=new Set;return await this.collectRequiredFields(e,t),[...e].sort()}_writePopupTemplateContent(t,e,i){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter((t=>"web-scene"===i?.origin?Y.has(t.type):tt.has(t.type))).map((t=>t?.toJSON(i))),e.popupElements.forEach((t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)}))):e.description=t}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const i=(0,l.o8)(t.fieldInfos);Array.isArray(e.fieldInfos)?i.forEach((t=>{const i=e.fieldInfos.find((e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase()));i?i.visible=!0:e.fieldInfos.push(t)})):e.fieldInfos=i}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const i=t.orderByFields?.map((e=>this._toFieldOrderJSON(e,t.relationshipId)))||[],o=[...e.relatedRecordsInfo?.orderByFields||[],...i];e.relatedRecordsInfo={showRelatedRecords:!0,...o?.length&&{orderByFields:o}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const i=(0,l.o8)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...i]:e.mediaInfos=i}_readPopupInfoElements(t,e,i){const o={description:!1,mediaInfos:!1};return i.map((i=>"media"===i.type?(i.mediaInfos||!e||o.mediaInfos||(i.mediaInfos=e,o.mediaInfos=!0),M.A.fromJSON(i)):"text"===i.type?(i.text||!t||o.description||(i.text=t,o.description=!0),g.A.fromJSON(i)):"attachments"===i.type?_.A.fromJSON(i):"fields"===i.type?x.A.fromJSON(i):"expression"===i.type?A.A.fromJSON(i):"relationship"===i.type?I.A.fromJSON(i):"utilityNetworkAssociations"===i.type?Z.A.fromJSON(i):void 0)).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:i}=t;if(!e?.startsWith(G))return null;const o=e.replace(G,"").split("/");if(2!==o.length)return null;const s=parseInt(o[0],10),r=o[1];return!Number.isNaN(s)&&r?I.A.fromJSON({relationshipId:s,orderByFields:[{field:r,order:i}]}):null}_toFieldOrderJSON(t,e){const{order:i,field:o}=t;return{field:`${G}${e}/${o}`,order:i}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:i,relatedRecordsInfo:o={showRelatedRecords:!1}}){const s=[];t?s.push(new g.A({text:t})):s.push(new x.A),Array.isArray(e)&&e.length&&s.push(M.A.fromJSON({mediaInfos:e})),i&&s.push(_.A.fromJSON({displayType:"auto"}));const{showRelatedRecords:r,orderByFields:n}=o;return r&&n?.length&&n.forEach((t=>{const e=this._toRelationshipContent(t);e&&s.push(e)})),s.length?s:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce(((t,e)=>[...t,...this._getMediaInfoFields(e)]),[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){const{caption:e,title:i,value:o}=t,s=o||{},{fields:r,normalizeField:n,tooltipField:l,sourceURL:p,linkURL:a}=s,d=[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(p),...this._extractFieldNames(a),...r??[]];return n&&d.push(n),l&&d.push(l),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce(((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]]),e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce(((t,e)=>[...t,...this._getContentElementFields(e)]),[]):[]}async _collectExpressionInfoFields(t,e,i){i&&await Promise.all(i.map((i=>(0,v.Dx)(t,e,i.expression))))}_getFieldInfoFields(t){return t?t.filter((({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(G)||t.startsWith(H)))).map((t=>t.fieldName)):[]}_getActionsFields(t){return t?t.toArray().reduce(((t,e)=>[...t,...this._getActionFields(e)]),[]):[]}_getActionFields(t){const{className:e,title:i,type:o}=t,s="button"===o||"toggle"===o?t.image:"";return[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(s)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,v.nw)(t).filter((t=>!(0===t.indexOf(G)||0===t.indexOf(H))))}};(0,o._)([(0,d.MZ)({type:X})],et.prototype,"actions",void 0),(0,o._)([(0,d.MZ)()],et.prototype,"content",void 0),(0,o._)([(0,c.w)("content")],et.prototype,"castContent",null),(0,o._)([(0,u.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],et.prototype,"readContent",null),(0,o._)([(0,h.K)("web-scene","content",{popupElements:{type:r.A.ofType(j)},showAttachments:{type:Boolean},mediaInfos:{type:r.A.ofType(k.g)},description:{type:String},relatedRecordsInfo:{type:E}})],et.prototype,"writeWebSceneContent",null),(0,o._)([(0,h.K)("content",{popupElements:{type:r.A.ofType(b)},showAttachments:{type:Boolean},mediaInfos:{type:r.A.ofType(k.g)},description:{type:String},relatedRecordsInfo:{type:E}})],et.prototype,"writeWebMapContent",null),(0,o._)([(0,d.MZ)({type:[N.A],json:{write:!0}})],et.prototype,"expressionInfos",void 0),(0,o._)([(0,d.MZ)({type:[R.A]})],et.prototype,"fieldInfos",void 0),(0,o._)([(0,h.K)("fieldInfos")],et.prototype,"writeFieldInfos",null),(0,o._)([(0,d.MZ)({type:C})],et.prototype,"layerOptions",void 0),(0,o._)([(0,h.K)("layerOptions")],et.prototype,"writeLayerOptions",null),(0,o._)([(0,d.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],et.prototype,"lastEditInfoEnabled",void 0),(0,o._)([(0,d.MZ)()],et.prototype,"outFields",void 0),(0,o._)([(0,d.MZ)()],et.prototype,"overwriteActions",void 0),(0,o._)([(0,d.MZ)()],et.prototype,"returnGeometry",void 0),(0,o._)([(0,d.MZ)({json:{type:String}})],et.prototype,"title",void 0),(0,o._)([(0,h.K)("title")],et.prototype,"writeTitle",null),et=(0,o._)([(0,y.$)("esri.PopupTemplate")],et);const it=et},4902:(t,e,i)=>{i.d(e,{A:()=>a});var o=i(90237),s=i(40608);let r=0;const n=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+r++})}};return e=(0,o._)([(0,s.$)("esri.core.Identifiable")],e),e};let l=class extends(n(class{})){};var p;l=(0,o._)([(0,s.$)("esri.core.Identifiable")],l),(p=l||(l={})).IdentifiableMixin=n,p.NumericIdentifiableMixin=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:r++})}};return e=(0,o._)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],e),e};const a=l},93705:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(90237),r=i(25482),n=i(10107),l=(i(44208),i(53966),i(87811),i(40608));let p=o=class extends r.A{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new o({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"title",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"expression",void 0),(0,s._)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],p.prototype,"returnType",void 0),p=o=(0,s._)([(0,l.$)("esri.popup.ExpressionInfo")],p);const a=p},41227:(t,e,i)=>{i.d(e,{A:()=>u});var o,s=i(90237),r=i(66552),n=i(25482),l=i(10107),p=(i(44208),i(53966),i(87811),i(93223)),a=i(40608),d=i(68780);let c=o=class extends n.A{constructor(t){super(t),this.fieldName=null,this.format=void 0,this.isEditable=!0,this.label=null,this.stringFieldOption="text-box",this.statisticType=null,this.tooltip=null,this.visible=!0}clone(){return new o({fieldName:this.fieldName,format:this.format?.clone(),isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0),(0,s._)([(0,l.MZ)({type:d.A,json:{write:!0}})],c.prototype,"format",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],c.prototype,"isEditable",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,s._)([(0,p.e)(new r.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",void 0),(0,s._)([(0,l.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],c.prototype,"statisticType",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0),c=o=(0,s._)([(0,a.$)("esri.popup.FieldInfo")],c);const u=c},89893:(t,e,i)=>{i.d(e,{A:()=>h});var o=i(90237),s=i(69540),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),l=i(84424),p=i(66552),a=i(25482);const d=new p.J({asc:"ascending",desc:"descending"});let c=class extends(s.A.ClonableMixin(a.A)){constructor(t){super(t),this.field=null,this.order="ascending"}};(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,o._)([(0,r.MZ)({type:d.apiValues,json:{type:d.jsonValues,read:d.read,write:d.write}})],c.prototype,"order",void 0),c=(0,o._)([(0,n.$)("esri.popup.support.AttachmentsOrderByInfo")],c);const u=c;let y=class extends(s.A.ClonableMixin(l.A)){constructor(t){super(t),this.description=null,this.displayType="auto",this.orderByFields=null,this.title=null,this.type="attachments"}};(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,o._)([(0,r.MZ)({type:["auto","preview","list"],json:{write:!0}})],y.prototype,"displayType",void 0),(0,o._)([(0,r.MZ)({type:[u],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,o._)([(0,r.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],y.prototype,"type",void 0),y=(0,o._)([(0,n.$)("esri.popup.content.AttachmentsContent")],y);const h=y},71468:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),l=i(39740),p=i(38152);let a=o=class extends l.A{constructor(t){super(t),this.type="bar-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:p.U.write,isRequired:!0}}})],a.prototype,"type",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.BarChartMediaInfo")],a);const d=a},81663:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),l=i(39740),p=i(38152);let a=o=class extends l.A{constructor(t){super(t),this.type="column-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:p.U.write,isRequired:!0}}})],a.prototype,"type",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.ColumnChartMediaInfo")],a);const d=a},84424:(t,e,i)=>{i.d(e,{A:()=>p});var o=i(90237),s=i(25482),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let l=class extends s.A{constructor(t){super(t),this.type=null}};(0,o._)([(0,r.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=(0,o._)([(0,n.$)("esri.popup.content.Content")],l);const p=l},80737:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(4718),n=i(10107),l=(i(44208),i(53966),i(40608)),p=i(84424);let a=o=class extends p.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new o({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,r.o8)(this.outFields):null})}};(0,s._)([(0,n.MZ)()],a.prototype,"creator",void 0),(0,s._)([(0,n.MZ)()],a.prototype,"destroyer",void 0),(0,s._)([(0,n.MZ)()],a.prototype,"outFields",void 0),(0,s._)([(0,n.MZ)({type:["custom"],readOnly:!0})],a.prototype,"type",void 0),a=o=(0,s._)([(0,l.$)("esri.popup.content.CustomContent")],a);const d=a},96808:(t,e,i)=>{i.d(e,{A:()=>y});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),l=i(25482);let p=o=class extends l.A{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new o({title:this.title,expression:this.expression})}};(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],p.prototype,"title",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],p.prototype,"expression",void 0),(0,s._)([(0,r.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],p.prototype,"returnType",void 0),p=o=(0,s._)([(0,n.$)("esri.popup.ElementExpressionInfo")],p);const a=p;var d,c=i(84424);let u=d=class extends c.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new d({expressionInfo:this.expressionInfo?.clone()})}};(0,s._)([(0,r.MZ)({type:a,json:{write:!0}})],u.prototype,"expressionInfo",void 0),(0,s._)([(0,r.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],u.prototype,"type",void 0),u=d=(0,s._)([(0,n.$)("esri.popup.content.ExpressionContent")],u);const y=u},66159:(t,e,i)=>{i.d(e,{A:()=>u});var o,s=i(90237),r=i(4718),n=i(10107),l=(i(44208),i(53966),i(40608)),p=i(43937),a=i(41227),d=i(84424);let c=o=class extends d.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}writeFieldInfos(t,e){e.fieldInfos=t&&t.map((t=>t.toJSON()))}clone(){return new o((0,r.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,s._)([(0,n.MZ)({type:Object,json:{write:!0}})],c.prototype,"attributes",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,s._)([(0,n.MZ)({type:[a.A]})],c.prototype,"fieldInfos",void 0),(0,s._)([(0,p.K)("fieldInfos")],c.prototype,"writeFieldInfos",null),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,s._)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],c.prototype,"type",void 0),c=o=(0,s._)([(0,l.$)("esri.popup.content.FieldsContent")],c);const u=c},96922:(t,e,i)=>{i.d(e,{A:()=>y});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),l=i(22756),p=i(25482);let a=o=class extends p.A{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new o({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],a.prototype,"linkURL",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"sourceURL",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.support.ImageMediaInfoValue")],a);const d=a;var c;let u=c=class extends l.A{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new c({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:Number,json:{write:!0}})],u.prototype,"refreshInterval",void 0),(0,s._)([(0,r.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],u.prototype,"type",void 0),(0,s._)([(0,r.MZ)({type:d,json:{write:{isRequired:!0}}})],u.prototype,"value",void 0),u=c=(0,s._)([(0,n.$)("esri.popup.content.ImageMediaInfo")],u);const y=u},92799:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),l=i(39740),p=i(38152);let a=o=class extends l.A{constructor(t){super(t),this.type="line-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:p.U.write,isRequired:!0}}})],a.prototype,"type",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.LineChartMediaInfo")],a);const d=a},67336:(t,e,i)=>{i.d(e,{A:()=>m});var o,s=i(90237),r=i(4718),n=i(10107),l=(i(44208),i(53966),i(36005)),p=i(40608),a=i(43937),d=i(71468),c=i(81663),u=i(84424),y=i(96922),h=i(92799),f=i(53535),v=i(58280);let _=o=class extends u.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map((t=>"image"===t.type?y.A.fromJSON(t):"barchart"===t.type?d.A.fromJSON(t):"columnchart"===t.type?c.A.fromJSON(t):"linechart"===t.type?h.A.fromJSON(t):"piechart"===t.type?f.A.fromJSON(t):void 0)).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map((t=>t.toJSON()))}clone(){return new o((0,r.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,s._)([(0,n.MZ)()],_.prototype,"activeMediaInfoIndex",void 0),(0,s._)([(0,n.MZ)({type:Object,json:{write:!0}})],_.prototype,"attributes",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],_.prototype,"description",void 0),(0,s._)([(0,n.MZ)({types:[v.g]})],_.prototype,"mediaInfos",void 0),(0,s._)([(0,l.w)("mediaInfos")],_.prototype,"readMediaInfos",null),(0,s._)([(0,a.K)("mediaInfos")],_.prototype,"writeMediaInfos",null),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],_.prototype,"title",void 0),(0,s._)([(0,n.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],_.prototype,"type",void 0),_=o=(0,s._)([(0,p.$)("esri.popup.content.MediaContent")],_);const m=_},53535:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),l=i(39740),p=i(38152);let a=o=class extends l.A{constructor(t){super(t),this.type="pie-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:p.U.write,isRequired:!0}}})],a.prototype,"type",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.PieChartMediaInfo")],a);const d=a},92094:(t,e,i)=>{i.d(e,{A:()=>c});var o=i(90237),s=i(69540),r=i(10107),n=i(56507),l=(i(44208),i(87811),i(40608)),p=i(84424),a=i(49852);let d=class extends(s.A.ClonableMixin(p.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,o._)([(0,r.MZ)({type:Number,json:{type:n.jz,write:!0}})],d.prototype,"displayCount",void 0),(0,o._)([(0,r.MZ)({type:["list"],json:{write:{isRequired:!0}}})],d.prototype,"displayType",void 0),(0,o._)([(0,r.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"orderByFields",void 0),(0,o._)([(0,r.MZ)({type:Number,json:{type:n.jz,write:{isRequired:!0}}})],d.prototype,"relationshipId",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,o._)([(0,r.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],d.prototype,"type",void 0),d=(0,o._)([(0,l.$)("esri.popup.content.RelationshipContent")],d);const c=d},23721:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),l=i(84424);let p=o=class extends l.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new o({text:this.text})}};(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],p.prototype,"text",void 0),(0,s._)([(0,r.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],p.prototype,"type",void 0),p=o=(0,s._)([(0,n.$)("esri.popup.content.TextContent")],p);const a=p},47582:(t,e,i)=>{i.d(e,{A:()=>u});var o=i(90237),s=i(69540),r=i(10107),n=i(56507),l=(i(44208),i(87811),i(93223)),p=i(40608),a=i(84424),d=i(83342);let c=class extends(s.A.ClonableMixin(a.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,o._)([(0,r.MZ)({type:Number,json:{type:n.jz,write:!0}})],c.prototype,"displayCount",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,o._)([(0,r.MZ)({type:[d.A],json:{write:!0}})],c.prototype,"associationTypes",void 0),(0,o._)([(0,l.e)({utilityNetworkAssociations:"utility-network-associations"})],c.prototype,"type",void 0),c=(0,o._)([(0,p.$)("esri.popup.content.UtilityNetworkAssociationsContent")],c);const u=c},39740:(t,e,i)=>{i.d(e,{A:()=>w});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),l=i(22756),p=i(68197),a=i(25482),d=i(4718),c=i(56507),u=i(69622);let y=o=class extends u.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new o({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,s._)([(0,r.MZ)()],y.prototype,"color",void 0),(0,s._)([(0,r.MZ)()],y.prototype,"fieldName",void 0),(0,s._)([(0,r.MZ)()],y.prototype,"tooltip",void 0),(0,s._)([(0,r.MZ)()],y.prototype,"value",void 0),y=o=(0,s._)([(0,n.$)("esri.popup.content.support.ChartMediaInfoValueSeries")],y);const h=y;var f;let v=f=class extends a.A{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new f({colors:(0,d.o8)(this.colors),fields:(0,d.o8)(this.fields),normalizeField:this.normalizeField,series:(0,d.o8)(this.series),tooltipField:this.tooltipField})}};(0,s._)([(0,r.MZ)({type:[p.A],json:{type:[[c.jz]],write:!0}})],v.prototype,"colors",void 0),(0,s._)([(0,r.MZ)({type:[String],json:{write:{isRequired:!0}}})],v.prototype,"fields",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],v.prototype,"normalizeField",void 0),(0,s._)([(0,r.MZ)({type:[h],json:{read:!1}})],v.prototype,"series",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],v.prototype,"tooltipField",void 0),v=f=(0,s._)([(0,n.$)("esri.popup.content.support.ChartMediaInfoValue")],v);const _=v;let m=class extends l.A{constructor(t){super(t),this.type=null,this.value=void 0}};(0,s._)([(0,r.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],m.prototype,"type",void 0),(0,s._)([(0,r.MZ)({type:_,json:{write:{isRequired:!0}}})],m.prototype,"value",void 0),m=(0,s._)([(0,n.$)("esri.popup.content.mixins.ChartMediaInfo")],m);const w=m},22756:(t,e,i)=>{i.d(e,{A:()=>p});var o=i(90237),s=i(25482),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let l=class extends s.A{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"altText",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"caption",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,o._)([(0,r.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=(0,o._)([(0,n.$)("esri.popup.content.mixins.MediaInfo")],l);const p=l},38152:(t,e,i)=>{i.d(e,{U:()=>o});const o=(0,i(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"})},58280:(t,e,i)=>{i.d(e,{g:()=>p});var o=i(71468),s=i(81663),r=i(96922),n=i(92799),l=i(53535);const p={base:i(22756).A,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":o.A,"column-chart":s.A,"line-chart":n.A,"pie-chart":l.A,image:r.A}}},68780:(t,e,i)=>{i.d(e,{A:()=>u});var o=i(90237),s=i(69540),r=i(25482),n=i(10107),l=i(56507),p=(i(44208),i(87811),i(93223)),a=i(40608),d=i(97770);let c=class extends(s.A.ClonableMixin(r.A)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,o._)([(0,p.e)(d._v)],c.prototype,"dateFormat",void 0),(0,o._)([(0,n.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"digitSeparator",void 0),(0,o._)([(0,n.MZ)({type:l.jz,json:{write:!0}})],c.prototype,"places",void 0),c=(0,o._)([(0,a.$)("esri.popup.support.FieldInfoFormat")],c);const u=c},49852:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(90237),r=i(25482),n=i(10107),l=(i(44208),i(53966),i(87811),i(40608));let p=o=class extends r.A{constructor(t){super(t),this.field=null,this.order=null}clone(){return new o({field:this.field,order:this.order})}};(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,s._)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],p.prototype,"order",void 0),p=o=(0,s._)([(0,l.$)("esri.popup.support.RelatedRecordsInfoFieldOrder")],p);const a=p},83342:(t,e,i)=>{i.d(e,{A:()=>d});var o=i(90237),s=i(69540),r=i(25482),n=i(10107),l=i(56507),p=(i(44208),i(87811),i(40608));let a=class extends(s.A.ClonableMixin(r.A)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,o._)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,o._)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,o._)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],a.prototype,"type",void 0),(0,o._)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedNetworkSourceId",void 0),(0,o._)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedAssetGroup",void 0),(0,o._)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedAssetType",void 0),a=(0,o._)([(0,p.$)("esri.popup.support.UtilityNetworkAssociationType")],a);const d=a},78553:(t,e,i)=>{i.d(e,{D:()=>r,p:()=>s});var o=i(56507);function s(t){const e=(0,o.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function r(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);