@arcgis/core 5.2.0-next.93 → 5.2.0-next.95

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 (190) hide show
  1. package/arcade/arcadeAsyncRuntime.js +1 -1
  2. package/arcade/arcadeCompiler.js +1 -1
  3. package/arcade/functions/portal.js +2 -0
  4. package/arcade/treeAnalysis.js +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/{c4a0d3149947a1d2c484.js → 05662a663f761dd3dea5.js} +1 -1
  7. package/assets/esri/core/workers/chunks/0be98adfef79fc5036f0.js +1 -0
  8. package/assets/esri/core/workers/chunks/0df9864ecebe6a2b973f.js +1 -0
  9. package/assets/esri/core/workers/chunks/10c13c36c42c5ac41d12.js +1 -0
  10. package/assets/esri/core/workers/chunks/{e50adcfb392adfb3f79c.js → 1b311ff39dede07865df.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{188c6ff5f4664827c254.js → 1c803eef9a8fdabc61e3.js} +2 -2
  12. package/assets/esri/core/workers/chunks/1d7f633f158062eb3f64.js +1 -0
  13. package/assets/esri/core/workers/chunks/1f047dd747e7c1916dc7.js +1684 -0
  14. package/assets/esri/core/workers/chunks/2524e2385f61a6898411.js +1 -0
  15. package/assets/esri/core/workers/chunks/26737d061c7cfbbab95c.js +1 -0
  16. package/assets/esri/core/workers/chunks/{91de343844ac578e7c93.js → 2b6d261fe79fe186fb22.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{8a87e1a89a0d8c6203a7.js → 2e51764c8aa31096cb2a.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{da8a314800944706511b.js → 36e35a8067b18f59cc05.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{d270b49c037085503016.js → 3a9435569ba460ff7e3d.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{5d9c92c4e60a4696fdad.js → 471027e4280bd51167b0.js} +1 -1
  21. package/assets/esri/core/workers/chunks/4c088c26d5d546c95c90.js +1 -0
  22. package/assets/esri/core/workers/chunks/{e594b6db9caee1f7b9fc.js → 4d700cb028f6306b163e.js} +1 -1
  23. package/assets/esri/core/workers/chunks/5168bd8ab6233dc9c32a.js +1 -0
  24. package/assets/esri/core/workers/chunks/{cd02a6078443b8f63927.js → 5b8591486f33627f5389.js} +1 -1
  25. package/assets/esri/core/workers/chunks/5d6733dcee9c2ef00072.js +1 -0
  26. package/assets/esri/core/workers/chunks/{a89dbef8155d7c4354da.js → 5edf77618ca51819d7c4.js} +2 -2
  27. package/assets/esri/core/workers/chunks/6057a79c68c33ee4a193.js +1 -0
  28. package/assets/esri/core/workers/chunks/{48726010778d6004e347.js → 63127e3b22e7eac6003d.js} +2 -2
  29. package/assets/esri/core/workers/chunks/{ff83d0337ac489ab08de.js → 678585509706755c0434.js} +2 -2
  30. package/assets/esri/core/workers/chunks/{2754ba5cc094028a7a3c.js → 691e9cc541cfaebe1776.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{32f11b4aeae1ef00e466.js → 6baae3e856d904fef9b1.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{aed7b80145b22c246098.js → 6cbc30b31f0bb39c73ca.js} +1 -1
  33. package/assets/esri/core/workers/chunks/6cc03ef97d7731153b9a.js +1 -0
  34. package/assets/esri/core/workers/chunks/{d44338bf5edafa3ca926.js → 6f01bd01b13662eb3bd7.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{76e7d3cde2da4bdd7820.js → 74cd9df85c4560bb8e52.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{97e41500fc2d24a88938.js → 7b70d6fdfa7a19ffffb0.js} +1 -1
  37. package/assets/esri/core/workers/chunks/7bb3411a86cdd736d555.js +1 -0
  38. package/assets/esri/core/workers/chunks/7ddb5800777fbecee3a8.js +1 -0
  39. package/assets/esri/core/workers/chunks/7eae9053065d3d38e54e.js +1 -0
  40. package/assets/esri/core/workers/chunks/7efc51324cfc8e08c756.js +1 -0
  41. package/assets/esri/core/workers/chunks/{e90076ac1cf88a83a7f9.js → 80f38ab2b7ae61e6f301.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{5aa23b0f4521ba9a07ad.js → 854f42f16fdb40000aae.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{24c44541046576fee7e0.js → 87094044458b0ea5cb0f.js} +2 -2
  44. package/assets/esri/core/workers/chunks/909ee7d2a0eec773037a.js +1 -0
  45. package/assets/esri/core/workers/chunks/92a6559a6999b26362d7.js +1 -0
  46. package/assets/esri/core/workers/chunks/{3a65693964e3976d8035.js → 9df38cadebf8e6fd746c.js} +1 -1
  47. package/assets/esri/core/workers/chunks/a0eb882a5a81d25b9153.js +1 -0
  48. package/assets/esri/core/workers/chunks/{20f6e681ccd8bf884b77.js → a72983c3621810d4b1af.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{9226205850e35b7fc610.js → a8aa8cb60b30f0983e7e.js} +1 -1
  50. package/assets/esri/core/workers/chunks/a8e9aa5461c71c88e2e5.js +1 -0
  51. package/assets/esri/core/workers/chunks/{1ab8307ba9981124f669.js → af6b9fd77b1792fbb66e.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{19e93d4d37018e3ee849.js → b102ae764c14d8b32ace.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{1554feab934e8e1bcd28.js → b333de4dea14c5db0a4d.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{d7d5275d8b3c9430de1f.js → b7c0da9d255d5e48320d.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{6b9dbf43c0659e55c539.js → be0417df35a7d99af675.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{a46ac0be9aabc4cfedc7.js → cc3186dcbbf5edff8b9e.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{6fd0d9431b141f2a3252.js → cefb70d633c220cbedf9.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{69c9a12c97ead8963817.js → d1304d414b1fa725168a.js} +1 -1
  59. package/assets/esri/core/workers/chunks/d453627894e6e5b02023.js +1 -0
  60. package/assets/esri/core/workers/chunks/e4380706b629729f2212.js +1 -0
  61. package/assets/esri/core/workers/chunks/e5b6fa57cc4028fbd401.js +1 -0
  62. package/assets/esri/core/workers/chunks/e7fdad0c07beb3614b60.js +1 -0
  63. package/assets/esri/core/workers/chunks/ea1877ce00da3b585a30.js +1 -0
  64. package/assets/esri/core/workers/chunks/{0336f4f8498a22347720.js → ea5ee1b12b43594592a0.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{c4fef90cf08bbe4f0bb5.js → eafc591e1a98000d54ef.js} +1 -1
  66. package/assets/esri/core/workers/chunks/f331c24247d132589859.js +1 -0
  67. package/assets/esri/core/workers/chunks/f5867d8ba73c67ac27d2.js +1 -0
  68. package/assets/esri/core/workers/chunks/{b7ed5f130661e9ca00b9.js → f5a058a0ce006bce2a2a.js} +1 -1
  69. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  70. package/chunks/{GlowBlur.glsl.js → BlurEmission.glsl.js} +3 -3
  71. package/chunks/EmissionComposite.glsl.js +3 -3
  72. package/chunks/Fog.glsl.js +8 -6
  73. package/chunks/RibbonLine.glsl.js +52 -52
  74. package/chunks/bundle.js +1 -1
  75. package/chunks/portal.js +2 -0
  76. package/config.js +1 -1
  77. package/core/timeUtils.d.ts +62 -0
  78. package/core/timeUtils.js +1 -1
  79. package/kernel.js +1 -1
  80. package/layers/AnnotationFeatureLayer.d.ts +0 -1
  81. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  82. package/layers/support/AnnotationFeatureSublayer.js +1 -1
  83. package/libs/parquet/parquet.js +1 -1
  84. package/package.json +3 -3
  85. package/rest/imageService/fetchRasterInfo.js +1 -1
  86. package/support/revision.js +1 -1
  87. package/symbols/cim/types.d.ts +2 -1
  88. package/views/2d/engine/Stage.js +1 -1
  89. package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
  90. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  91. package/views/2d/engine/webgl/Painter.js +1 -1
  92. package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
  93. package/views/2d/engine/webgl/shaderGraph/techniques/Technique.js +1 -1
  94. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
  95. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
  96. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
  97. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
  98. package/views/2d/layers/AnnotationFeatureLayerView2D.js +1 -1
  99. package/views/2d/layers/features/FeatureContainer.js +1 -1
  100. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  101. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  102. package/views/2d/layers/graphics/GraphicContainer.js +1 -1
  103. package/views/2d/layers/graphics/HighlightGraphicContainer.js +1 -1
  104. package/views/3d/environment/CloudyWeather.js +1 -1
  105. package/views/3d/environment/SunnyWeather.js +1 -1
  106. package/views/3d/layers/I3SMeshView3D.js +1 -1
  107. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  108. package/views/3d/state/ViewStateManager.js +1 -1
  109. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  110. package/views/3d/support/buffer/InterleavedLayout.js +1 -1
  111. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  112. package/views/3d/terrain/TileCompositor.js +1 -1
  113. package/views/3d/webgl/RenderCamera.js +1 -1
  114. package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +1 -1
  115. package/views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js +1 -5
  116. package/views/3d/webgl-engine/effects/clouds/CloudsParameters.js +1 -1
  117. package/views/3d/webgl-engine/effects/clouds/CloudsPresets.js +1 -1
  118. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  119. package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
  120. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  121. package/views/3d/webgl-engine/effects/fog/FogTechnique.js +1 -1
  122. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  123. package/views/3d/webgl-engine/effects/glow/{GlowBlur.glsl.js → BlurEmission.glsl.js} +1 -1
  124. package/views/3d/webgl-engine/effects/glow/BlurEmission.js +2 -0
  125. package/views/3d/webgl-engine/effects/glow/BlurEmissionTechnique.js +2 -0
  126. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +37 -0
  127. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowAccumulator.js +1 -1
  128. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  129. package/views/3d/webgl-engine/lib/BufferGeometry.js +2 -0
  130. package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
  131. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  132. package/views/3d/webgl-engine/lib/EmissionCompositeTechnique.js +1 -1
  133. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  134. package/views/3d/webgl-engine/lib/GeometryBaseInstance.js +1 -1
  135. package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
  136. package/views/3d/webgl-engine/lib/RenderContext.js +1 -1
  137. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  138. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  139. package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
  140. package/views/3d/webgl-engine/lib/rendererUtils.js +1 -1
  141. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  142. package/views/3d/webgl-engine/materials/renderers/Instance.js +1 -1
  143. package/views/3d/webgl-engine/materials/renderers/MergedBuffer.js +1 -1
  144. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  145. package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +1 -1
  146. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  147. package/views/3d/webgl-engine/shaders/EmissiveTechniqueConfiguration.js +1 -1
  148. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  149. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  150. package/views/3d/webgl-engine/shaders/floatBlendScale.glsl.js +1 -1
  151. package/views/SceneView.d.ts +1 -0
  152. package/views/SceneView.js +1 -1
  153. package/views/popupAdapter.js +1 -1
  154. package/assets/esri/core/workers/chunks/0846855843f85661e974.js +0 -1
  155. package/assets/esri/core/workers/chunks/15f4f7e34e14e3cf52e6.js +0 -1
  156. package/assets/esri/core/workers/chunks/19ab024f6f732fd6c69b.js +0 -1
  157. package/assets/esri/core/workers/chunks/22c94f9a69b2157f8dbd.js +0 -1
  158. package/assets/esri/core/workers/chunks/2ec44ebc48beeba11201.js +0 -1
  159. package/assets/esri/core/workers/chunks/30376f00cda1165a2504.js +0 -1
  160. package/assets/esri/core/workers/chunks/349b0c7febc46267441d.js +0 -1684
  161. package/assets/esri/core/workers/chunks/423c2692df662b3dddd4.js +0 -1
  162. package/assets/esri/core/workers/chunks/46f8c7ae7fb356c3410d.js +0 -1
  163. package/assets/esri/core/workers/chunks/4bf7c0c874d30b1c0760.js +0 -1
  164. package/assets/esri/core/workers/chunks/5bf2ce280ea35ea4c96b.js +0 -1
  165. package/assets/esri/core/workers/chunks/7253a439c98200e3e748.js +0 -1
  166. package/assets/esri/core/workers/chunks/75b90fb05e4a2d32b7bb.js +0 -1
  167. package/assets/esri/core/workers/chunks/7e41cee4a0ae75e1490d.js +0 -1
  168. package/assets/esri/core/workers/chunks/848a9f0e5373bbf289a5.js +0 -1
  169. package/assets/esri/core/workers/chunks/95a3f09751bff63f4fab.js +0 -1
  170. package/assets/esri/core/workers/chunks/98d614d6fc9de8ebaf94.js +0 -1
  171. package/assets/esri/core/workers/chunks/b2e2234fdf8e05bc3312.js +0 -1
  172. package/assets/esri/core/workers/chunks/bb23e670736bcace8b6f.js +0 -1
  173. package/assets/esri/core/workers/chunks/bdfffa5f88b559a4b42d.js +0 -1
  174. package/assets/esri/core/workers/chunks/c352696478b48a2090d5.js +0 -1
  175. package/assets/esri/core/workers/chunks/c91042f8bf886056a29c.js +0 -1
  176. package/assets/esri/core/workers/chunks/d58d6b55b2749a535eb3.js +0 -1
  177. package/assets/esri/core/workers/chunks/ec69dd546c312ba97110.js +0 -1
  178. package/assets/esri/core/workers/chunks/f247f3c5148fa0237a7c.js +0 -1
  179. package/assets/esri/core/workers/chunks/f4d351b4cd9d1aa10632.js +0 -1
  180. package/assets/esri/core/workers/chunks/fbc7576ed12964059da6.js +0 -1
  181. package/chunks/GlowComposite.glsl.js +0 -37
  182. package/views/3d/webgl-engine/effects/glow/Glow.js +0 -2
  183. package/views/3d/webgl-engine/effects/glow/GlowBlurTechnique.js +0 -2
  184. package/views/3d/webgl-engine/effects/glow/GlowComposite.glsl.js +0 -2
  185. package/views/3d/webgl-engine/effects/glow/GlowCompositeTechnique.js +0 -2
  186. /package/assets/esri/core/workers/chunks/{188c6ff5f4664827c254.js.LICENSE.txt → 1c803eef9a8fdabc61e3.js.LICENSE.txt} +0 -0
  187. /package/assets/esri/core/workers/chunks/{a89dbef8155d7c4354da.js.LICENSE.txt → 5edf77618ca51819d7c4.js.LICENSE.txt} +0 -0
  188. /package/assets/esri/core/workers/chunks/{48726010778d6004e347.js.LICENSE.txt → 63127e3b22e7eac6003d.js.LICENSE.txt} +0 -0
  189. /package/assets/esri/core/workers/chunks/{ff83d0337ac489ab08de.js.LICENSE.txt → 678585509706755c0434.js.LICENSE.txt} +0 -0
  190. /package/assets/esri/core/workers/chunks/{24c44541046576fee7e0.js.LICENSE.txt → 87094044458b0ea5cb0f.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[91,1150,3354,3847,5223,6742,7085],{73354(e,t,n){n.d(t,{a:()=>h,b:()=>a,c:()=>r,d:()=>s,e:()=>d,f:()=>u,l:()=>c,n:()=>p,t:()=>o}),n(44208);var i=n(72727);function r(e,t,n){o(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function o(e,t,n,r=3,o=r){const s=(0,i.k)(e.length,r,3),a=(0,i.k)(t.length,o,3),l=Math.min(s,a),c=n[0],u=n[1],h=n[2],d=n[4],p=n[5],f=n[6],m=n[8],g=n[9],y=n[10],v=n[12],w=n[13],b=n[14];let C=0,_=0;for(let n=0;n<l;n++){const n=t[C],i=t[C+1],s=t[C+2];e[_]=c*n+d*i+m*s+v,e[_+1]=u*n+p*i+g*s+w,e[_+2]=h*n+f*i+y*s+b,C+=o,_+=r}return e}function s(e,t,n){a(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function a(e,t,n,r=3,o=r){const s=(0,i.k)(e.length,r,3),a=(0,i.k)(t.length,o,3),l=Math.min(s,a),c=n[0],u=n[1],h=n[2],d=n[3],p=n[4],f=n[5],m=n[6],g=n[7],y=n[8];let v=0,w=0;for(let n=0;n<l;n++){const n=t[v],i=t[v+1],s=t[v+2];e[w]=c*n+d*i+m*s,e[w+1]=u*n+p*i+g*s,e[w+2]=h*n+f*i+y*s,v+=o,w+=r}}function l(e,t,n,i=3,r=i){const o=Math.min(e.length/i,t.length/r);let s=0,a=0;for(let l=0;l<o;l++)e[a]=n*t[s],e[a+1]=n*t[s+1],e[a+2]=n*t[s+2],s+=r,a+=i;return e}function c(e,t,n,i){u(e.typedBuffer,t.typedBuffer,n,i,e.typedBufferStride,t.typedBufferStride)}function u(e,t,n,i,r=3,o=r){const s=Math.min(e.length/r,t.length/o);let a=0,l=0;const c=1/2.2;for(let u=0;u<s;u++)e[l]=i*(n*t[a])**c,e[l+1]=i*(n*t[a+1])**c,e[l+2]=i*(n*t[a+2])**c,a+=o,l+=r}function h(e,t,n,r=3,o=r){const s=(0,i.k)(e.length,r,3),a=(0,i.k)(t.length,o,3),l=Math.min(s,a);let c=0,u=0;for(let i=0;i<l;i++)e[u]=t[c]+n[0],e[u+1]=t[c+1]+n[1],e[u+2]=t[c+2]+n[2],c+=o,u+=r;return e}function d(e,t){p(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function p(e,t,n=3,i=n){const r=Math.min(e.length/n,t.length/i);let o=0,s=0;for(let a=0;a<r;a++){const r=t[o],a=t[o+1],l=t[o+2],c=r*r+a*a+l*l;if(c>0){const t=1/Math.sqrt(c);e[s]=t*r,e[s+1]=t*a,e[s+2]=t*l}o+=i,s+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:c,normalize:p,normalizeView:d,scale:l,scaleView:function(e,t,n){l(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,n){const i=Math.min(e.count,t.count),r=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,a=t.typedBufferStride;let l=0,c=0;for(let e=0;e<i;e++)r[c]=s[l]>>n,r[c+1]=s[l+1]>>n,r[c+2]=s[l+2]>>n,l+=a,c+=o},transformMat3:a,transformMat3View:s,transformMat4:o,transformMat4View:r,translate:h},Symbol.toStringTag,{value:"Module"}))},69540(e,t,n){var i=n(32198),r=n(69622),o=(n(44208),n(4718)),s=(n(53966),n(97768)),a=n(88620),l=n(64108);const c=Symbol("ClonableMixin"),u=e=>{var t;const n=e;let r=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=c}clone(e){const t=(0,a.oY)(this);(0,s.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,i=t.store,r={},l=new Map;for(const t in n){const s=n[t],a=i?.originOf(t),c=s.clonable;if(s.readOnly||!1===c||7!==a&&0!==a&&5!==a&&4!==a)continue;const u=this[t];let h=null;if("function"==typeof c)h=c(u,e);else if("reference"===c)h=u;else if(h=(0,o.TU)(u,e),null!=u&&null==h)continue;0===a?l.set(t,h):r[t]=h}const c=new(0,Object.getPrototypeOf(this).constructor)(r);if(l.size){const e=(0,a.oY)(c)?.store;if(e)for(const[t,n]of l)e.set(t,n,0)}return c}};return r=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],r),r},h=u(r.A);n.d(t,["OU",0,u,"Pw",0,h])},7762(e,t,n){var i,r=n(32198),o=n(98291),s=n(4576),a=n(65529),l=n(36563),c=n(4718),u=n(53966),h=n(93687),d=n(76030),p=n(56507),f=n(62788),m=n(10107),g=n(7695),y=n(64108),v=n(95488),w=n(12195);class b{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class C{constructor(e,t,n,i,r){this.target=e,this.added=t,this.removed=n,this.start=i,this.deleteCount=r}}const _=new h.A(()=>new b,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function M(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function T(e){return e?e instanceof z?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function x(e){if(e?.length)return e[0]}function A(e,t,n,i){const r=Math.min(e.length-n,t.length-i);let o=0;for(;o<r&&e[n+o]===t[i+o];)o++;return o}function D(e,t,n,i){t&&t.forEach((t,r,o)=>{e.push(t),D(e,n.call(i,t,r,o),n,i)})}const R=new Set,S=new Set,Z=new Set,E=new Map;let O=0,z=i=class extends a.nJ{static ofType(e){if(!e)return i;if(E.has(e))return E.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const n in e.typeMap){const i=e.typeMap[n].prototype.declaredClass;t?t+=` | ${i}`:t=i}let n=class extends i{};return(0,r.Cg)([(0,g.u)({Type:e,ensureType:"function"==typeof e?(0,p.dp)(e):(0,p.aq)(e)})],n.prototype,"itemType",void 0),n=(0,r.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],n),E.set(e,n),n}static isCollection(e){return null!=e&&e instanceof i}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new v.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:O++})}normalizeCtorArgs(e){return e?(0,s.yc)(e)||e instanceof i?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,f.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,T(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){const e=this._chgListeners,n={removed:!1,callback:t};return e.push(n),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{n.removed=!0,e.splice(e.indexOf(n),1)})}return super.on(e,t)}once(e,t){const n="deref"in t?()=>t.deref():()=>t,i=this.on(e,e=>{n()?.call(null,e),i.remove()});return i}add(e,t){if((0,f.gc)(this._observable),this._emitBeforeChanges(1))return this;const n=this.getNextIndex(t??null);return this._splice(n,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,f.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const n=this.getNextIndex(t);return this._splice(n,0,T(e)),this._emitAfterChanges(1),this}at(e){if((0,f.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.map(c.o8)})}concat(...e){(0,f.gc)(this._observable);const t=e.map(T);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const n=this._splice(0,this.length),i=n.length;for(let r=0;r<i;r++)e.call(t,n[r],r,n);this._emitAfterChanges(2)}destroyAll(){this.drain(M)}destroyMany(e){const t=this.removeMany(e);return t.forEach(M),t}every(e,t){return(0,f.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,f.gc)(this._observable);const n=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:n})}find(e,t){return(0,f.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,f.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,f.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,f.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,f.gc)(this._observable);const n=[];return D(n,this,e,t),new i(n)}forEach(e,t){return(0,f.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,f.gc)(this._observable),this._items[e]}getNextIndex(e){(0,f.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,f.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,f.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,f.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,f.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,f.gc)(this._observable);const n=this._items.map(e,t);return new i({items:n})}reorder(e,t=this.length-1){(0,f.gc)(this._observable);const n=this.indexOf(e);if(-1!==n){if(t<0?t=0:t>=this.length&&(t=this.length-1),n!==t){if(this._emitBeforeChanges(4))return e;this._splice(n,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=x(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,f.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,f.gc)(this._observable);const n=this._items;return 2===arguments.length?n.reduce(e,t):n.reduce(e)}reduceRight(e,t){(0,f.gc)(this._observable);const n=this._items;return 2===arguments.length?n.reduceRight(e,t):n.reduceRight(e)}remove(e){return(0,f.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,f.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=x(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof i?e.toArray():e,n=this._items,r=[],o=t.length;for(let e=0;e<o;e++){const i=t[e],o=n.indexOf(i);if(o>-1){const i=1+A(t,n,e+1,o+1),s=this._splice(o,i);s&&s.length>0&&r.push.apply(r,s),e+=i-1}}return this._emitAfterChanges(2),r}reverse(){if((0,f.gc)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=x(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,f.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let n=0;n<t;n++)if(e(this.items[n],this.items[n+1])>0)return!0;return!1}splice(e,t,...n){(0,f.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;const i=(t?2:0)|(n.length?1:0);if(this._emitBeforeChanges(i))return[];const r=this._splice(e,t,n)||[];return this._emitAfterChanges(i),r}toArray(){return(0,f.gc)(this._observable),this._items.slice()}toJSON(e){return(0,f.gc)(this._observable),this.toArray().map(t=>(0,w.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,f.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,f.gc)(this._observable),this._items.toString()}unshift(...e){return(0,f.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,n){const i=this._items,r=this.itemType;let o,s;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=i.splice(e,t),this.hasEventListener("before-remove")){const t=_.acquire();t.target=this,t.cancellable=!0;for(let n=0,r=s.length;n<r;n++)o=s[n],t.reset(o),this.emit("before-remove",t),t.defaultPrevented&&(s.splice(n,1),i.splice(e,0,o),e+=1,n-=1,r-=1);_.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const e=_.acquire();e.target=this,e.cancellable=!1;const t=s.length;for(let n=0;n<t;n++)e.reset(s[n]),this.emit("after-remove",e);_.release(e)}}if(n?.length){if(r){const e=[];for(const t of n){const n=r.ensureType(t);null==n&&null!=t||e.push(n)}n=e}const t=this.hasEventListener("before-add"),o=this.hasEventListener("after-add"),s=e===this.length;if(t||o){const r=_.acquire();r.target=this,r.cancellable=!0;const a=_.acquire();a.target=this,a.cancellable=!1;for(const l of n)t?(r.reset(l),this.emit("before-add",r),r.defaultPrevented||(s?i.push(l):i.splice(e++,0,l),this._length=i.length,o&&(a.reset(l),this.emit("after-add",a)))):(s?i.push(l):i.splice(e++,0,l),this._length=i.length,a.reset(l),this.emit("after-add",a));_.release(a),_.release(r)}else{if(s)for(const e of n)i.push(e);else i.splice(e,0,...n);this._length=i.length}}if((n?.length||s?.length)&&this._notifyChangeEvent(n,s),this.hasEventListener("after-splice")){const i=new C(this,n,s,e,t);this.emit("after-splice",i)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const n=_.acquire();n.target=this,n.cancellable=!0,n.type=e,this.emit("before-changes",n),t=n.defaultPrevented,_.release(n)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=_.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),_.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;R.clear(),S.clear(),Z.clear();for(const{added:t,removed:n}of e){if(t)if(0===Z.size&&0===S.size)for(const e of t)R.add(e);else for(const e of t)S.has(e)?(Z.add(e),S.delete(e)):Z.has(e)||R.add(e);if(n)if(0===Z.size&&0===R.size)for(const e of n)S.add(e);else for(const e of n)R.has(e)?R.delete(e):(Z.delete(e),S.add(e))}const n=o.A.acquire();R.forEach(e=>{n.push(e)});const i=o.A.acquire();S.forEach(e=>{i.push(e)});const r=this._items,s=t.items,a=o.A.acquire();if(Z.forEach(e=>{s.indexOf(e)!==r.indexOf(e)&&a.push(e)}),t.listeners&&(n.length||i.length||a.length)){const e={target:this,added:n,removed:i,moved:a},r=t.listeners.length;for(let n=0;n<r;n++){const i=t.listeners[n];i.removed||i.callback.call(this,e)}}o.A.release(n),o.A.release(i),o.A.release(a)}R.clear(),S.clear(),Z.clear()}};(0,r.Cg)([(0,m.MZ)()],z.prototype,"_updating",void 0),(0,r.Cg)([(0,m.MZ)()],z.prototype,"_length",void 0),(0,r.Cg)([(0,m.MZ)()],z.prototype,"length",null),(0,r.Cg)([(0,m.MZ)()],z.prototype,"items",null),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],z.prototype,"updating",null),z=i=(0,r.Cg)([(0,y.$)("esri.core.Collection")],z);const j=z;n.d(t,["A",0,j])},4902(e,t,n){var i=n(32198),r=n(64108);let o=0;const s=e=>{const t=e;let n=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return n=(0,i.Cg)([(0,r.$)("esri.core.Identifiable")],n),n};s(class{}),n.d(t,["s",0,s])},7695(e,t,n){function i(e){return(t,n)=>{t[n]=e}}n.d(t,{u:()=>i})},82534(e,t,n){function i(){return[0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3]]}n.d(t,{o8:()=>r,vt:()=>i});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:r,create:i,fromValues:function(e,t,n,i){return[e,t,n,i]}},Symbol.toStringTag,{value:"Module"})),n.d(t,["zK",0,o])},48163(e,t,n){function i(){return[0,0]}function r(e){return[e[0],e[1]]}function o(e,t){return[e,t]}function s(){return o(1,1)}function a(){return o(-1,-1)}function l(){return o(1,0)}function c(){return o(0,1)}n.d(t,{fA:()=>o,o8:()=>r,vt:()=>i});const u=s(),h=a(),d=l(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:h,ONES:u,UNIT_X:d,UNIT_Y:p,ZEROS:[0,0],clone:r,create:i,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){const n=Math.min(2,e.length);for(let i=0;i<n;++i)t[i]=e[i];return t},fromValues:o,negativeOnes:a,ones:s,unitX:l,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(t,["IA",0,h,"Un",0,u])},17799(e,t,n){n.d(t,{T9:()=>a,d_:()=>r,gT:()=>o});var i=n(86211);function r(e,t){return{type:(0,i.t$)(t),value:e,unit:t}}function o(e,t){return{type:(0,i.t$)(t),value:e,unit:t}}function s(e,t,n="arithmetic"){return{type:(0,i.t$)(t),value:e,unit:t,rotationType:n}}function a(e,t){return null==e?t:null==t||e.value>(0,i.oU)(t.value,t.unit,e.unit)?e:t}r(0,"meters"),o(0,"square-meters"),s(0,"radians"),s(0,"degrees"),s(0,"degrees","geographic")},36708(e,t,n){n.d(t,{C_:()=>d,on:()=>h,wB:()=>l,z7:()=>c});var i=n(37955),r=n(36563),o=n(97768),s=n(17676),a=n(14012);function l(e,t,n={}){return u(e,t,n,p)}function c(e,t,n={}){return u(e,t,n,f)}function u(e,t,n={},i){let r=null;const s=n.once?(e,n)=>{i(e)&&((0,o.xt)(r),t(e,n))}:(e,n)=>{i(e)&&t(e,n)};if(r=(0,a.Cn)(e,s,n.sync,n.equals),n.initial){const t=e();s(t,t)}return r}function h(e,t,n,s={}){let a=null,c=null,u=null;function h(){a&&c&&(c.remove(),s.onListenerRemove?.(a),a=null,c=null)}function d(e){s.once&&s.once&&(0,o.xt)(u),n(e)}const p=l(e,(e,n)=>{h(),(0,i.wb)(e)&&(a=e,c=(0,i.on)(e,t,d),s.onListenerAdd?.(e))},{sync:s.sync,initial:!0});return u=(0,r.hA)(()=>{p.remove(),h()}),u}function d(e,t){return function(e,t,n){if((0,s.G4)(n))return Promise.reject((0,s.NK)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,o.xt)(a)}return new Promise((i,o)=>{a=(0,r.vE)([(0,s.u7)(n,()=>{l(),o((0,s.NK)())}),u(e,e=>{l(),i(e)},{sync:!1,once:!0},t??p)])})}(e,f,t)}function p(e){return!0}function f(e){return!!e}n(80559),n.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},88930(e,t,n){n.d(t,{S1:()=>a,lL:()=>c,mi:()=>l,rb:()=>u,t:()=>h});var i=n(97770),r=(n(98623),n(34747));const o=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,n,o="system"){if("unknown"===n)return e;const s=new r.oh((0,i.wj)(o)),a=r.c9.fromJSDate(e,{zone:s}),l="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,n="milliseconds"){const i=e.getTime(),r=h(t,n,"milliseconds");return new Date(i+r)}function c(e,t,n="system"){const{unit:o}=t,s=Math.max(1,Math.trunc(t.value)),a=new r.oh((0,i.wj)(n)),l=r.c9.fromJSDate(e,{zone:a}),c=e=>e-e%s;switch(o){case"milliseconds":return l.startOf("second").plus({millisecond:c(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:c(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:c(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:c(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:c(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:c(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:c(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===o?10:"centuries"===o?100:1)*s,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function u(e){const t=o.exec(e);if(!t)return null;const{hh:n,mm:i,ss:r,ms:a}=t.groups;return Number(n)*s.hours+Number(i)*s.minutes+Number(r||0)*s.seconds+Number(a||0)}function h(e,t,n){return 0===e?0:e*s[t]/s[n]}},95624(e,t,n){n.d(t,{g:()=>o});var i=n(86211),r=n(78125);function o(e,t={}){const{unit:n}=t;let o=(0,r.fromGeometry)(e).calculateArea2D();if(o&&n){const t=(0,r.getSpatialReference)(e);if(t.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const s=(0,i.B5)(t);s!==n&&(s?o=(0,i.oU)(o,s,n):(o=Math.sqrt(o),o*=(0,i.GA)(t),o**=2,o=(0,i.oU)(o,"square-meters",n)))}return o}},89506(e,t,n){n.d(t,{Hh:()=>u,g7:()=>h});var i=n(86211),r=n(86742),o=n(5808);let s,a,l,c;async function u(){if(!s||!(0,r.s)()){const[e]=await Promise.all([Promise.resolve().then(n.bind(n,78125)),(0,r.load)()]);s=e.fromGeometry,a=e.fromSpatialReference,l=e.getSpatialReference,c=(0,r.f)()}}function h(e,t={}){const{curveType:n="geodesic",unit:c}=t,u=l(e);let h=(0,r.execute)(s(e),a(u),o.O[n]);return h&&c&&(h=(0,i.oU)(h,"square-meters",c)),h}},40427(e,t,n){n.d(t,{Hh:()=>u,g7:()=>h});var i=n(86211),r=n(35223),o=n(5808);let s,a,l,c;async function u(){if(!s||!(0,r.s)()){const[e]=await Promise.all([Promise.resolve().then(n.bind(n,78125)),(0,r.load)()]);s=e.fromGeometry,a=e.fromSpatialReference,l=e.getSpatialReference,c=(0,r.f)()}}function h(e,t={}){const{curveType:n="geodesic",unit:c}=t,u=l(e);let h=(0,r.execute)(s(e),a(u),o.O[n]);return h&&c&&(h=(0,i.oU)(h,"meters",c)),h}},86742(e,t,n){n.d(t,{execute:()=>a,f:()=>l,load:()=>s,s:()=>o});var i=n(83290);let r;function o(){return!!r&&(0,i.i)()}async function s(){if(!o()){const[e,t]=await Promise.all([Promise.all([n.e(2024),n.e(6558)]).then(n.bind(n,6558)),n.e(3375).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,i.l)()]);r=new e.OperatorGeodeticArea,t(i.p)}}function a(e,t,n){return r.execute(e,t,n,null)}function l(){return r.supportsCurves()}},77085(e,t,n){n.d(t,{execute:()=>s,load:()=>o}),n(76061);var i=n(83290);let r;async function o(){if(!r||!(0,i.i)()){const[e,t]=await Promise.all([Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(1088)]).then(n.bind(n,31088)),Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(5756)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,i.l)()]);r=new e.OperatorGeodeticDensifyByLength,t(i.p)}}function s(e,t,n,i){return r.execute(e,t,n,i,null)}},35223(e,t,n){n.d(t,{execute:()=>a,f:()=>l,load:()=>s,s:()=>o});var i=n(83290);let r;function o(){return!!r&&(0,i.i)()}async function s(){if(!o()){const[e,t]=await Promise.all([n.e(8879).then(n.bind(n,28879)),n.e(3375).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,i.l)()]);r=new e.OperatorGeodeticLength,t(i.p)}}function a(e,t,n){return r.execute(e,t,n,null)}function l(){return r.supportsCurves()}},4144(e,t,n){n.r(t),n.d(t,{clipToSpatialReference:()=>l,execute:()=>c,executeMany:()=>u,foldInto360Range:()=>h,foldInto360RangeGeodetic:()=>d,isLoaded:()=>s,load:()=>a,normalizeGeometry:()=>p,supportsCurves:()=>f,transform:()=>m});var i=n(76061),r=n(83290);let o;function s(){return!!o&&(0,r.i)()}async function a(){if(!s()){const[e,t]=await Promise.all([Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(9192)]).then(n.bind(n,9192)),Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(5756)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,r.l)()]);o=new e.OperatorProject,t(r.p)}}function l(e,t,n){return o.clipToSpatialReference(e,t,null,n)}function c(e,t){return o.execute(e,t,null)}function u(e,t){const n=o.executeMany(new i.S(e),t,null);return Array.from(n)}function h(e,t){return o.foldInto360Range(e,t)}function d(e,t,n){return o.foldInto360RangeGeodetic(e,t,n)}function p(e,t,n){return o.normalizeGeometry(e,t,n)}function f(){return o.supportsCurves()}function m(e,t,n,i,r){return o.transform(e,t,n,i,r)}},81150(e,t,n){n.d(t,{execute:()=>s,f:()=>c,isSimpleAsFeature:()=>l,z:()=>a});var i=n(76061),r=(n(55537),n(88885),n(39117));n(95213);const o=new r.J;function s(e,t,n){return o.execute(e,t,n,null)}function a(e,t,n){const r=o.executeMany(new i.S(e),t,n,null);return Array.from(r)}function l(e,t,n){return o.isSimpleAsFeature(e,t,n,null,null)}function c(){return o.supportsCurves()}},83276(e,t,n){n.r(t),n.d(t,{execute:()=>p,executeMany:()=>f,isLoaded:()=>h,load:()=>d,supportsCurves:()=>u});var i=n(4144),r=n(17499);let o,s,a,l,c,u;function h(){return!!o&&(0,i.isLoaded)()}async function d(){if(!h()){const[e,t]=await Promise.all([Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(1666)]).then(n.bind(n,78125)),Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(6129)]).then(n.bind(n,86129)),(0,i.load)()]);o=e.fromGeometry,s=e.fromSpatialReference,a=e.getSpatialReference,l=e.toGeometry,c=t.createProjectionTransformation,u=(0,i.supportsCurves)()}}function p(e,t,n){const u=a(e),h=c(s(u),s(t),n),d=l((0,i.execute)(o(e),h),t);return!n?.zConversionDisabled&&d?.hasZ&&(0,r.g)([d],u,t),d}function f(e,t,n){const u=e.map(o),h=a(e),d=c(s(h),s(t),n),p=(0,i.executeMany)(u,d).map(e=>l(e,t));return!n?.zConversionDisabled&&p&&(0,r.g)(p,h,t),p}},23914(e,t,n){n.d(t,{g7:()=>o});var i=n(81150),r=n(78125);function o(e){const t=(0,r.getSpatialReference)(e);return(0,r.toGeometry)((0,i.execute)((0,r.fromGeometry)(e),(0,r.fromSpatialReference)(t),!1),t)}(0,i.f)()},5808(e,t,n){n.d(t,["O",0,{geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}])},17499(e,t,n){n.d(t,{g:()=>o});var i=n(60408),r=n(62815);function o(e,t,n){let o;for(const s of e)if(s&&(0,i.Pv)(s)&&!("vertexAttributes"in s)){if(!o){const e="type"in s?s.type:(0,i.$B)(s);if(o=(0,r.N)(e,t,n),!o)return}o(s)}}},72727(e,t,n){function i(e,t,n){if(t<=0)return 0;const i=e-n;return i<0?0:Math.floor(i/t)+1}n.d(t,{k:()=>i}),n(53966)},27921(e,t,n){n.d(t,{$Q:()=>C,BX:()=>b,C:()=>a,Cr:()=>u,H:()=>M,O_:()=>c,Qj:()=>l,T7:()=>v,lU:()=>h,mN:()=>T,vE:()=>A,vt:()=>s,wE:()=>x});var i=n(34727),r=n(35522),o=n(51850);function s(e=D){return[e[0],e[1],e[2],e[3]]}function a(e,t){return function(e,t,n,i,r=s()){return r[0]=e,r[1]=t,r[2]=n,r[3]=i,r}(t[0],t[1],t[2],t[3],e)}function l(e){return e}function c(e,t,n){const i=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=Math.abs(i-1)>1e-5&&i>1e-12?1/Math.sqrt(i):1;return n[0]=t[0]*r,n[1]=t[1]*r,n[2]=t[2]*r,n[3]=-(n[0]*e[0]+n[1]*e[1]+n[2]*e[2]),n}function u(e,t,n,i=s()){const r=n[0]-t[0],o=n[1]-t[1],a=n[2]-t[2],l=e[0]-t[0],c=e[1]-t[1],u=e[2]-t[2],h=o*u-a*c,d=a*l-r*u,p=r*c-o*l,f=h*h+d*d+p*p,m=Math.abs(f-1)>1e-5&&f>1e-12?1/Math.sqrt(f):1;return i[0]=h*m,i[1]=d*m,i[2]=p*m,i[3]=-(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]),i}function h(e,t,n,i=0,o=Math.floor(n*(1/3)),s=Math.floor(n*(2/3))){if(n<3)return!1;t(p,i);let a=o,l=!1;for(;a<n-1&&!l;)t(f,a),a++,l=!(0,r.t2)(p,f);if(!l)return!1;for(a=Math.max(a,s),l=!1;a<n&&!l;)t(m,a),a++,(0,r.Re)(g,p,f),(0,r.S8)(g,g),(0,r.Re)(y,f,m),(0,r.S8)(y,y),l=!(0,r.t2)(p,m)&&!(0,r.t2)(f,m)&&Math.abs((0,r.Om)(g,y))<d;return l?(u(p,f,m,e),!0):(0!==i||1!==o||2!==s)&&h(e,t,n,0,1,2)}n(78955),n(44280),n(32114),n(32728);const d=.99619469809,p=(0,o.vt)(),f=(0,o.vt)(),m=(0,o.vt)(),g=(0,o.vt)(),y=(0,o.vt)();function v(e,t,n){return function(e){return 0===e||1===e}(A(e,t.origin,t.vector,0,n))}function w(e,t){return T(e,t)<=0}function b(e,t){return T(e,t)>=0}function C(e,t){return function(e,t,n,i,o,s,a){const l=(0,r.Om)(e,n),c=T(e,t);if(l>-1e-6&&l<1e-6)return _(c,o,s);const u=-c/l,h=_(l,o,!1);return!(a&&!h&&!_(c,o,s))&&(h?u>i.c0&&(i.c0=u):u<i.c1&&(i.c1=u),i.c0<=i.c1)}(e,t.ray.origin,t.ray.direction,t,!1,!1,!0)}function _(e,t,n){return n?t?e>=0:e<=0:t?e>0:e<0}function M(e,t,n,i=!1){let o=t.at(-1),s=T(e,o),a=i?s>0:s<=0;for(let l=0;l<t.length;l++){const c=t.at(l),u=T(e,c),h=i?u>0:u<=0;a!==h&&(0,r.Cc)(n(),o,c,s/(s-u)),h&&(0,r.C)(n(),c),o=c,s=u,a=h}}function T(e,t){return(0,r.Om)(e,t)+e[3]}function x(e,t,n){for(let i=0;i<n;++i)if(w(e,t[i]))return!1;return!0}function A(e,t,n,o,s){const a=(0,r.Om)(e,n),l=T(e,t);if(0===a)return l>=0?2:3;let c=-l/a;return 1&o&&(c=(0,i.qE)(c,0,1)),!(4&o)&&c<0||!(8&o)&&c>1?l>=0?2:3:((0,r.WQ)(s,t,(0,r.hs)(s,n,c)),l>=0?0:1)}const D=[0,0,1,0];(0,o.vt)()},44280(e,t,n){n.d(t,{g7:()=>a,gr:()=>s});var i=n(34727),r=n(35522),o=n(51850);function s(e,t){return(0,r.Om)(e,t)/(0,r.Bw)(e)}function a(e,t){const n=(0,r.Om)(e,t)/((0,r.Bw)(e)*(0,r.Bw)(t));return-(0,i.XM)(n)}(0,o.vt)(),(0,o.vt)()},32114(e,t,n){n.d(t,{Rc:()=>p,rq:()=>h,Km:()=>d}),n(44208);var i=n(26390),r=n(29242),o=n(9093),s=n(82534),a=n(48163),l=n(51850),c=n(91829);class u{constructor(e){this._create=e,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,i.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const e=2*this._itemsPtr;this._items.length>e&&(this._items.length=e),this._itemsPtr=0}static createVec2f64(){return new u(a.vt)}static createVec3f64(){return new u(l.vt)}static createVec4f64(){return new u(c.vt)}static createMat3f64(){return new u(r.vt)}static createMat4f64(){return new u(o.vt)}static createQuatf64(){return new u(s.vt)}get test(){}}u.createVec2f64();const h=u.createVec3f64(),d=u.createVec4f64(),p=(u.createMat3f64(),u.createMat4f64());u.createQuatf64()},97770(e,t,n){n.d(t,{Ey:()=>O,F8:()=>E,J2:()=>D,Yq:()=>S,_m:()=>R,iS:()=>Z,wj:()=>z});var i=n(66552),r=n(73444),o=n(98623),s=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},c={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},h={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},p={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},m={...f,second:"numeric"},g={hourCycle:"h23"},y={...f,...g},v={...m,...g},w={"short-date":u,"short-date-short-time":{...u,...f},"short-date-short-time-24":{...u,...y},"short-date-long-time":{...u,...m},"short-date-long-time-24":{...u,...v},"short-date-le":u,"short-date-le-short-time":{...u,...f},"short-date-le-short-time-24":{...u,...y},"short-date-le-long-time":{...u,...m},"short-date-le-long-time-24":{...u,...v},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...f},"long-month-day-year-short-time-24":{...h,...y},"long-month-day-year-long-time":{...h,...m},"long-month-day-year-long-time-24":{...h,...v},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...f},"day-short-month-year-short-time-24":{...d,...y},"day-short-month-year-long-time":{...d,...m},"day-short-month-year-long-time-24":{...d,...v},"long-date":p,"long-date-short-time":{...p,...f},"long-date-short-time-24":{...p,...y},"long-date-long-time":{...p,...m},"long-date-long-time-24":{...p,...v},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":m},b=(0,i.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),C={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},_=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),M=_.find(({type:e})=>"month"===e)?.value.toLowerCase();function T(){const e=(0,r.lR)();return(e&&C[e])??(0,r.QC)()}"mart"!==M&&(C.bs="sr-Latn-CS");let x=new WeakMap;const A=w["short-date-short-time"];function D(e){return w[e]}function R(e){const{dateStyle:t,timeStyle:n,hour12:i,year:r,month:o}=e,s={};return t?s.dateStyle=t:r&&(s.year=r,s.month=o||void 0),n&&!s.year&&(s.timeStyle=n,s.hour12="auto"===i?void 0:"always"===i),s}function S(e,t=A){return function(e){let t=x.get(e);if(!t){const n=T(),i=z(e.timeZone??"system"),r={...e,timeZone:i};t=new Intl.DateTimeFormat(n,r),x.set(e,t)}return t}(t).format(e)}function Z(e,t=A){return S(new Date(e),{...t,...c,...l})}function E(e,t=A){return S(new Date(`1970-01-01T${e}Z`),{...t,...c,...a})}function O(e,t=A){const n=s.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return S(n.toJSDate(),t);const i=0===n.offset?"UTC":t.timeZone,r={...t,timeZone:i};return n.toLocaleString(r,{locale:T()})}function z(e){switch(e){case"system":return o.N;case o.L:return"UTC";default:return e}}(0,r.Ml)(()=>{x=new WeakMap}),n.d(t,["_v",0,b])},73444(e,t,n){n.d(t,{JK:()=>l,Ml:()=>g,QC:()=>h,lR:()=>u,oQ:()=>f});var i=n(36563);let r;n(44208);const o=globalThis.esriConfig?.locale,s=globalThis.document?.documentElement;function a(){const e=s?.getAttribute("lang"),t=globalThis.navigator?.language;return o??e??t??"en"}function l(){return void 0===r&&(r=a()),r}const c=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(e=l()){return d(e)?.language}function h(e=l()){const t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=l()){return c.exec(e)?.groups}const p=[];function f(e){return p.push(e),(0,i.hA)(()=>{p.splice(p.indexOf(e),1)})}new Map;const m=[];function g(e){return m.push(e),(0,i.hA)(()=>m.splice(m.indexOf(e),1))}function y(){const e=a();r!==e&&([...m].forEach(t=>t(e)),r=e,[...p].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),s&&new MutationObserver(()=>{y()}).observe(s,{attributeFilter:["lang"]})},4146(e,t,n){n.d(t,{A:()=>v});var i=n(32198),r=n(11254),o=n(49186),s=n(65529),a=n(4902),l=n(92474),c=n(53966),u=n(17676),h=n(84952),d=n(91429),p=n(5443),f=n(16930),m=n(92602),g=n(79677);let y=0,v=class extends((0,s.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new p.A(-180,-90,180,90,f.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+y++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([n.e(812),n.e(7982)]).then(n.bind(n,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([n.e(9917),n.e(812),n.e(8559)]).then(n.bind(n,45613));try{return await i(t)}catch(e){const n=t?.portalItem,i=n?.id||"unset",r=n?.portal?.url||m.A.portalUrl;throw c.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+r+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,u.zf)(e)||c.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,h.An)(this.url)}createLayerView(e,t){return Promise.reject(new o.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,r.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,d.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,i.Cg)([(0,d.MZ)({type:p.A})],v.prototype,"fullExtent",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i.Cg)([(0,d.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i.Cg)([(0,d.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,d.MZ)({type:f.A})],v.prototype,"spatialReference",void 0),(0,i.Cg)([(0,d.MZ)({type:String})],v.prototype,"title",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i.Cg)([(0,d.MZ)()],v.prototype,"url",void 0),(0,i.Cg)([(0,d.MZ)({type:g.A})],v.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i.Cg)([(0,d.$K)("esri.layers.Layer")],v)},63490(e,t,n){n.d(t,{Mr:()=>l,TH:()=>a});var i=n(32198),r=n(69540),o=n(25482),s=n(91429);let a=class extends((0,r.OU)(o.o)){constructor(){super(...arguments),this.url=null}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"lod",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"rasterFunction",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=(0,i.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],a);let l=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.constantElevation=null}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],l.prototype,"constantElevation",void 0),l=(0,i.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],l),n.d(t,["E1",0,e=>null!=e&&"number"==typeof e.constantElevation])},23281(e,t,n){n.d(t,{eR:()=>_,Qv:()=>S,fs:()=>x,Yp:()=>Z,o:()=>E,RR:()=>M,l6:()=>T});var i=n(66552),r=(n(86211),n(28735),n(32198)),o=n(69540),s=n(25482),a=n(91429),l=n(69622),c=n(21325);let u=class extends l.A{set horizontalWKID(e){e?(0,c.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,c.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:n,radialDistortionCoefficients:i,tangentialDistortionCoefficients:r}=this;return e?.length>1&&!Number.isNaN(t)&&n?.length>1&&i?.length>1&&r?.length>1}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"horizontalWKID",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"verticalWKID",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"z",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"type",void 0),u=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientation")],u);const h=u;let d=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:n,x:i,y:r,z:o,heading:s,pitch:a,roll:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,f=[e,t,n,i,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>f.push(e)),f.push(u),h?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"heading",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"pitch",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"roll",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"z",void 0),d=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],d);const p=d;let f=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:n,ellipsoidRadius:i,squaredEccentricity:r,properties:o}=this,s=`${o}`.split("|");return s.splice(1,1),`${e}|${t}|${n}|${i}|${r}|${s.join("|")}`}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],f.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"latitude",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"longitude",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"ellipsoidRadius",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"squaredEccentricity",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],f.prototype,"properties",void 0),f=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],f);const m=f;let g=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:n,x:i,y:r,z:o,omega:s,phi:a,kappa:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,f=[e,t,n,i,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>f.push(e)),f.push(u),h?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e))),f.map(e=>isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],g.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"omega",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"phi",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"kappa",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"z",void 0),g=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],g);const y=g;let v=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:n,radialDistortionCoefficients:i,tangentialDistortionCoefficients:r}=this;return e?.length>1||!Number.isNaN(t)||n?.length>1||i?.length>1||r?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:n,x:i,y:r,z:o,yaw:s,pitch:a,roll:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,f=[e,t,n,i,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>f.push(e)),f.push(u),h?.forEach(e=>f.push(e)),h?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"yaw",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],v);const w=v,b=new Map;b.set("2",{desc:"Using Omega Phi Kappa",constructor:y}),b.set("1",{desc:"Using Heading, Pitch and Roll",constructor:p}),b.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:w}),b.set("4",{desc:"Using Local Tangent Plane",constructor:m});var C=n(63490);function _(e,t,n){return e?(0,C.E1)(e)?new C.Mr(e):function(e,t,n){let{url:i}=e;return i?(i=function(e,t,n){return t&&(e=`${t}${e}`),n&&(e+=`${n}`),e}(i,t,n),new C.TH({...e,url:i})):null}(e,t,n):e}const M=new i.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),T=new i.J({Feet:"feet",Meter:"meter"}),x=new i.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),A=new Map;A.set("1",function(e){const[t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:n,x:i,y:r,z:o,heading:s,pitch:a,roll:l,...R([c,u,h,d,p,f],[g,y],[v,w,b],[C,_],m)}}),A.set("3",function(e){const[t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:n,x:i,y:r,z:o,yaw:s,pitch:a,roll:l,...R([c,u,h,d,p,f],[g,y],[v,w,b],[C,_],m)}}),A.set("2",function(e){const[t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:n,x:i,y:r,z:o,omega:s,phi:a,kappa:l,...R([c,u,h,d,p,f],[g,y],[v,w,b],[C,_],m)}}),A.set("4",function(e){const[t,n,i,r,o,...s]=e.slice(1),a=A.get(o),l=b.get(o)?.constructor;return a&&l?{latitude:t,longitude:n,ellipsoidRadius:i,squaredEccentricity:r,properties:new l(a([o,"",...s]))}:null});const D=e=>{const t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function R(e,t,n,i,r){const o=D(e),s=D(t),a=D(n),l=D(i);return{affineTransformations:6===o?.length?o:void 0,focalLength:6===o?.length?parseFloat(r):void 0,principalOffsetPoint:2!==s?.length?[0,0]:s,radialDistortionCoefficients:3!==a?.length?[0,0,0]:a,tangentialDistortionCoefficients:2!==l?.length?[0,0]:l}}function S(e){return Array.isArray(e)&&e?.length>5&&!e.some(isNaN)}function Z(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}function E(e,t,n){const i=function(e,t){return e?.length?e.map(({field:e,order:n})=>{const i=t.find(t=>t.name.toLowerCase()===e.toLowerCase());return i?{fieldName:i.name,sortOrder:"desc"===n?.toLowerCase()?"desc":"asc"}:null}).filter(e=>null!=e):null}(n,t);if(i?.length)return i;if(!e){const e=t.find(e=>e.name.toLocaleLowerCase()==="sequenceorder".toLocaleLowerCase());return e?[{fieldName:e.name,sortOrder:"asc"}]:null}const r=t.find(t=>t.name.toLowerCase()===e.trim().toLowerCase());return r?[{fieldName:r.name,sortOrder:"asc"}]:null}},39357(e,t,n){n.d(t,{A:()=>a});var i,r=n(32198),o=n(25482),s=n(91429);let a=i=class extends o.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=i=(0,r.Cg)([(0,s.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,n){n.d(t,{A:()=>u});var i,r=n(32198),o=n(4718),s=n(91429),a=n(39357),l=n(76357),c=n(93223);let u=class extends l.A{static{i=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some(e=>(String(e.code)===n&&(t=e.name),!!t))}return t}clone(){return new i({codedValues:(0,o.o8)(this.codedValues),name:this.name})}};(0,r.Cg)([(0,s.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],u.prototype,"codedValues",void 0),(0,r.Cg)([(0,c.e)({codedValue:"coded-value"})],u.prototype,"type",void 0),u=i=(0,r.Cg)([(0,s.$K)("esri.layers.support.CodedValueDomain")],u)},76357(e,t,n){n.d(t,{A:()=>c});var i=n(32198),r=n(66552),o=n(25482),s=n(91429),a=n(93223);const l=new r.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends o.o{constructor(e){super(e),this.name=null,this.type=null}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,a.e)(l),(0,s.MZ)({json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,i.Cg)([(0,s.$K)("esri.layers.support.Domain")],c)},90091(e,t,n){n.d(t,{createSampler:()=>S,query:()=>R});var i=n(60999),r=n(49186),o=n(97768),s=n(17676),a=n(86211),l=n(99917),c=n(19419),u=n(4576),h=n(72802);class d{constructor(e,t){this.layer=e,this.parameters=t}}class p extends d{constructor(e,t,n){super(e,n),this.outSpatialReference=t,this.type="geometry"}selectTilesAtLOD(e){if(e<0)this.geometry.coordinates.forEach(e=>e.tile=null);else{const{tileInfo:t,tilemapCache:n}=this.layer,i=g(t,n)[e].level;this.geometry.coordinates.forEach(e=>e.tile=t.tileAt(i,e.x,e.y))}}allElevationTilesFetched(){return!this.geometry.coordinates.some(e=>!e.elevationTile)}clearElevationTiles(){for(const e of this.geometry.coordinates)e.elevationTile!==this.outsideExtentTile&&(e.elevationTile=null)}populateElevationTiles(e){for(const t of this.geometry.coordinates)!t.elevationTile&&t.tile?.id&&(t.elevationTile=e[t.tile.id])}remapTiles(e){for(const t of this.geometry.coordinates){const n=t.tile?.id;t.tile=n?e[n]:null}}getTilesToFetch(){return(0,u.Am)(this.geometry.coordinates.filter(({tile:e,elevationTile:t})=>e?.id&&!t),(e,t)=>e.tile?.id===t.tile?.id).map(({tile:e})=>e)}forEachTileToFetch(e){for(const t of this.geometry.coordinates)t.tile&&!t.elevationTile&&e(t.tile,()=>t.tile=null)}}class f extends d{constructor(e,t,n,i){super(e,n),this.maskExtents=i,this.type="extent",this.elevationTiles=[],this._candidateTiles=[],this._fetchedCandidates=new Set,this.extent=t.clone().intersection(e.fullExtent)}selectTilesAtLOD(e,t){const n=this._maximumLodForRequests(t),i=Math.min(n,e);i<0?this._candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(i)}_maximumLodForRequests(e){const{tileInfo:t,tilemapCache:n}=this.layer,i=g(t,n);if(!e)return i.length-1;const r=this.extent;if(null==r)return-1;for(let n=i.length-1;n>=0;n--){const o=i[n],s=o.resolution*t.size[0],a=o.resolution*t.size[1];if(Math.ceil(r.width/s)*Math.ceil(r.height/a)<=e)return n}return-1}allElevationTilesFetched(){return this._candidateTiles.length===this.elevationTiles.length}clearElevationTiles(){this.elevationTiles.length=0,this._fetchedCandidates.clear()}populateElevationTiles(e){for(const t of this._candidateTiles){const n=t.id&&e[t.id];n&&(this._fetchedCandidates.add(t),this.elevationTiles.push(n))}}remapTiles(e){this._candidateTiles=y(this._candidateTiles.map(t=>e[t.id]))}getTilesToFetch(){return this._candidateTiles}forEachTileToFetch(e,t){const n=this._candidateTiles;this._candidateTiles=[],n.forEach(n=>{if(this._fetchedCandidates.has(n))return void t?.(n);let i=!1;e(n,()=>i=!0),i?t?.(n):this._candidateTiles.push(n)}),this._candidateTiles=y(this._candidateTiles,t)}_selectCandidateTilesCoveringExtentAt(e){this._candidateTiles.length=0;const t=this.extent;if(null==t)return;const{tileInfo:n,tilemapCache:i}=this.layer,r=g(n,i)[e],o=n.tileAt(r.level,t.xmin,t.ymin),s=o.extent,a=r.resolution*n.size[0],l=r.resolution*n.size[1],c=Math.ceil((t.xmax-s[0])/a),u=Math.ceil((t.ymax-s[1])/l);for(let e=0;e<u;e++)for(let t=0;t<c;t++){const i=new h.U(o.level,o.row-e,o.col+t);n.updateTileInfo(i),this._tileIsMasked(i)||this._candidateTiles.push(i)}}_tileIsMasked(e){return this.maskExtents?.some(t=>(0,c.gR)(t,e.extent))??!1}}function m(e){return null!=e?.tileInfo}function g(e,t){const n=e.lods;if(m(t)){const{effectiveMinLOD:e,effectiveMaxLOD:i}=t;return n.filter(t=>t.level>=e&&t.level<=i)}return n}function y(e,t){const n={},i=[];for(const r of e){const e=r.id;e&&!n[e]?(n[e]=r,i.push(r)):t?.(r)}const r=i.sort((e,t)=>e.level-t.level);return r.filter((e,n)=>{for(let i=0;i<n;i++){const n=r[i].extent;if(n&&(0,c.gR)(n,e.extent))return t?.(e),!1}return!0})}class v{constructor(e,t){this.data=e,this.safeWidth=.99999999*(e.width-1),this.dx=(e.width-1)/(t[2]-t[0]),this.dy=(e.width-1)/(t[3]-t[1]),this.x0=t[0],this.y1=t[3]}}class w{constructor(e,t=null){if(this.key=e,null!=t){const n=e.extent;this._samplerData=new v(t,n)}}get zmin(){return null!=this._samplerData?this._samplerData.data.minValue:0}get zmax(){return null!=this._samplerData?this._samplerData.data.maxValue:0}get hasNoDataValues(){return!!this._samplerData?.data.hasNoDataValues}sample(e,t){if(null==this._samplerData)return;const{safeWidth:n,data:i,dx:r,dy:o,y1:s,x0:a}=this._samplerData,{width:l,values:c,noDataValue:u}=i,h=b(o*(s-t),0,n),d=b(r*(e-a),0,n),p=Math.floor(h),f=Math.floor(d),m=p*l+f,g=m+l,y=c[m],v=c[g],w=c[m+1],C=c[g+1];if(y!==u&&v!==u&&w!==u&&C!==u){const e=d-f,t=y+(w-y)*e;return t+(v+(C-v)*e-t)*(h-p)}}}function b(e,t,n){return e<t?t:e>n?n:e}var C=n(87378),_=n(48526),M=n(86738),T=n(82799);class x{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){const t=new x(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,l.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});const n=new _.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),i=(0,l.project)(n,e);if(!i)return null;const r=this.coordinates.map((e,t)=>{const n=e.clone(),r=i.points[t];return n.x=r[0],n.y=r[1],n}),o=this.clone(r);return o.spatialReference=e,o}projectSync(e){if(this.spatialReference.equals(e))return this.clone();const t=new _.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),n=(0,l.project)(t,e);if(!n)return null;const i=this.coordinates.map((e,t)=>{const i=e.clone(),r=n.points[t];return i.x=r[0],i.y=r[1],i}),r=this.clone(i);return r.spatialReference=e,r}static fromGeometry(e){const t=new x(e);if(e instanceof x)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,n)=>{const i=e.clone(t);return i.spatialReference=n,i},t;switch(e.type){case"point":{const n=e,{hasZ:i,hasM:r}=n;return t.coordinates=i&&r?[new A(n.x,n.y,n.z,n.m)]:i?[new A(n.x,n.y,n.z)]:r?[new A(n.x,n.y,null,n.m)]:[new A(n.x,n.y)],t._exporter=(t,n)=>e.hasM?new M.A(t[0].x,t[0].y,t[0].z,t[0].m,n):new M.A(t[0].x,t[0].y,t[0].z,n),t}case"multipoint":{const n=e,{hasZ:i,hasM:r}=n;return t.coordinates=i&&r?n.points.map(e=>new A(e[0],e[1],e[2],e[3])):i?n.points.map(e=>new A(e[0],e[1],e[2])):r?n.points.map(e=>new A(e[0],e[1],null,e[2])):n.points.map(e=>new A(e[0],e[1])),t._exporter=(t,n)=>e.hasM?new _.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:n}):new _.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:n}),t}case"polyline":{const n=e,i=[],r=[],{hasZ:o,hasM:s}=e;let a=0;for(const e of n.paths)if(r.push([a,a+e.length]),a+=e.length,o&&s)for(const t of e)i.push(new A(t[0],t[1],t[2],t[3]));else if(o)for(const t of e)i.push(new A(t[0],t[1],t[2]));else if(s)for(const t of e)i.push(new A(t[0],t[1],null,t[2]));else for(const t of e)i.push(new A(t[0],t[1]));return t.coordinates=i,t._exporter=(t,n)=>{const i=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),o=r.map(e=>i.slice(e[0],e[1]));return new T.A({paths:o,hasM:e.hasM,hasZ:!0,spatialReference:n})},t}}}}class A{constructor(e,t,n=null,i=null,r=null,o=null){this.x=e,this.y=t,this.z=n,this.m=i,this.tile=r,this.elevationTile=o}clone(){return new A(this.x,this.y,this.z,this.m)}}var D=n(57984);async function R(e,t,n){if(!e)throw new r.A(L,"Elevation queries require an elevation layer to fetch tiles from");if(!t||!(t instanceof x)&&"point"!==t.type&&"multipoint"!==t.type&&"polyline"!==t.type)throw new r.A("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");const i={...N,...n},s=i.signal;if("integrated-mesh-3dtiles"===e.type){const r=x.fromGeometry(t);if(e.queryElevationCallback&&e.replacesTerrain){const o=12.9*(n?.minDemResolution||0)+.71,a=await e.queryElevationCallback(r,{signal:s,maxGeometricError:o}),l=r.coordinates.map(()=>({demResolution:1,source:e})),c=await a.project(t.spatialReference,s);if(c){if(void 0!==i.noDataValue&&i.noDataValue!==Number.MAX_VALUE)for(const e of c.coordinates)e.z===Number.MAX_VALUE&&(e.z=i.noDataValue);return{geometry:c.export(),noDataValue:i.noDataValue??Number.MAX_VALUE,sampleInfo:l}}}const o=r.coordinates.map(()=>({demResolution:-1,source:e}));return{geometry:r.export(),noDataValue:Number.MAX_VALUE,sampleInfo:o}}const c=new p(e,t.spatialReference,i);return await e.load({signal:s}),await async function(e,t,n){let i;const o=e.layer.tileInfo.spatialReference;if(t instanceof x?i=await t.project(o,n):(await(0,l.initializeProjection)([{source:t.spatialReference,dest:o}],{signal:n}),i=(0,l.project)(t,o)),!i)throw new r.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${t.spatialReference.wkid}' on an elevation service in '${o.wkid}'`);e.geometry=x.fromGeometry(i)}(c,t,s),await O(c,s),await P(c,s),function(e){e.geometry.coordinates.forEach(t=>{const n=t.elevationTile;let i=e.parameters.noDataValue;if(n){const e=n.sample(t.x,t.y);null==e?t.elevationTile=null:i=e}t.z=i})}(c),async function(e,t){const n=await e.geometry.project(e.outSpatialReference,t);(0,o.Lw)(n);const i={geometry:n.export(),noDataValue:e.parameters.noDataValue};return e.parameters.returnSampleInfo&&(i.sampleInfo=function(e){const t=e.layer.tileInfo,n=(0,a.GA)(t.spatialReference);return e.geometry.coordinates.map(i=>{let r=-1;return i.elevationTile&&i.elevationTile!==e.outsideExtentTile&&(r=t.lodAt(i.elevationTile.key.level).resolution*n),{demResolution:r,source:-1===r?void 0:e.layer}})}(e)),e.geometry.coordinates.forEach(e=>{e.tile=null,e.elevationTile=null}),i}(c,s)}async function S(e,t,n){if(e=Array.isArray(e)?e:[e],0===(e=n?.ignoreInvisibleLayers?e.filter(e=>e.visible):e.slice()).length)throw new r.A(L,"Elevation queries require at least one elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new r.A("elevation-query:invalid-extent","Invalid or undefined extent");const i={...N,...n,returnSampleInfo:!0},o=Z(e[e.length-1],t,i);return 1===e.length?o:E(e,t,await o,i)}async function Z(e,t,n,i){const r=n.signal;await e.load({signal:r});const o=t.spatialReference,s=e.tileInfo.spatialReference;o.equals(s)||(await(0,l.initializeProjection)([{source:o,dest:s}],{signal:r}),t=(0,l.project)(t,s));const a=new f(e,t,n,i);await O(a,r),await P(a,r);const c=a.elevationTiles,u=a.layer.tileInfo,h=a.parameters.noDataValue;return new D.C({noDataValue:h,tiles:c,tileInfo:u})}async function E(e,t,n,i){if(e.pop(),!e.length)return n;const r=n.samplers.filter(e=>!e.tile.hasNoDataValues).map(e=>(0,c.VY)(e.extent)),o=await Z(e[e.length-1],t,i,r);if(0===o.samplers.length)return n;const s=n.samplers.concat(o.samplers),a=i.noDataValue;return E(e,t,new D.C({samplers:s,noDataValue:a}),i)}async function O(e,t){"geometry"===e.type&&function(e){if(null==e.layer.fullExtent)return;const t=new w(new h.U(-1,-1,-1));t.sample=()=>e.parameters.noDataValue,e.outsideExtentTile=t;const n=e.layer.fullExtent;e.geometry.coordinates.forEach(e=>{const i=e.x,r=e.y;(i<n.xmin||i>n.xmax||r<n.ymin||r>n.ymax)&&(e.elevationTile=t)})}(e);const n=e.parameters.demResolution;if("number"==typeof n)!function(e,t){const n=function(e,t){const{tileInfo:n,tilemapCache:i}=e.layer,r=t/(0,a.GA)(n.spatialReference),o=g(n,i);let s=o[0],l=0;for(let e=1;e<o.length;e++){const t=o[e];Math.abs(t.resolution-r)<Math.abs(s.resolution-r)&&(s=t,l=e)}return l}(e,t);e.selectTilesAtLOD(n)}(e,n);else if("finest-contiguous"===n)await async function(e,t){const{tileInfo:n,tilemapCache:i}=e.layer,r=I(n,i,e.parameters.minDemResolution);await z(e,r,t)}(e,t);else{if("auto"!==n)throw new r.A("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${n}', expected a number, "finest-contiguous" or "auto"`);await async function(e,t){(function(e){const{tileInfo:t,tilemapCache:n}=e.layer,i=I(t,n,e.parameters.minDemResolution);e.selectTilesAtLOD(i,e.parameters.maximumAutoTileRequests)})(e),function(e){const t=e.layer.tileInfo;let n=0;const i={},r=e=>{null!=e.id&&(e.id in i?i[e.id]++:(i[e.id]=1,n++))},o=e=>{if(null==e.id)return;const t=i[e.id];1===t?(delete i[e.id],n--):i[e.id]=t-1};e.forEachTileToFetch(r,o);let s=!0;for(;s&&(s=!1,e.forEachTileToFetch(i=>{n<=e.parameters.maximumAutoTileRequests||(o(i),t.upsampleTile(i)&&(s=!0),r(i))},o),s););}(e);const n=e.layer.tilemapCache;if(!n||m(n))return j(e,t);const r=e.getTilesToFetch(),o={},a=r.map(async e=>{const r=new h.U(0,0,0),a=await(0,i.Ke)(n.fetchAvailabilityUpsample(e.level,e.row,e.col,r,{signal:t}));!1!==a.ok?null!=e.id&&(o[e.id]=r):(0,s.QP)(a.error)});await(0,s.qr)(Promise.all(a),t),e.remapTiles(o)}(e,t)}}async function z(e,t,n){const i=e.layer;if(e.selectTilesAtLOD(t),t<0)return;const o=i.tilemapCache,a=e.getTilesToFetch();try{if(o&&!m(o))await(0,s.qr)(Promise.all(a.map(e=>o.fetchAvailability(e.level,e.row,e.col,{signal:n}))),n);else if(await P(e,n),!e.allElevationTilesFetched())throw e.clearElevationTiles(),new r.A("elevation-query:has-unavailable-tiles","Some elevation tiles are unavailable")}catch(i){(0,s.QP)(i),await z(e,t-1,n)}}async function j(e,t){const n=e.layer.tileInfo;await P(e,t);let i=!1;e.forEachTileToFetch((e,t)=>{n.upsampleTile(e)?i=!0:t()}),i&&await j(e,t)}function I(e,t,n=0){const i=g(e,t);let r=i.length-1;if(n>0){const t=n/(0,a.GA)(e.spatialReference),o=i.findIndex(e=>e.resolution<t);0===o?r=0:o>0&&(r=o-1)}return r}const N={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0,signal:null};async function P(e,t){const n=e.getTilesToFetch(),i={},r=e.parameters.cache,o=e.parameters.noDataValue,a={noDataValue:o,signal:t},l=n.map(async t=>{if(null==t.id)return;const n=`${e.layer.uid}:${t.id}:${o}`,s=r?.get(n),l=s??C.A.from(await e.layer.fetchTile(t.level,t.row,t.col,a));r?.put(n,l),i[t.id]=new w(t,l)});await(0,s.qr)(Promise.allSettled(l),t),e.populateElevationTiles(i)}const L="elevation-query:invalid-layer"},7236(e,t,n){n.d(t,{A:()=>c});var i=n(32198),r=n(65529),o=n(53966),s=n(91429),a=n(86738),l=n(28735);let c=class extends r.nJ{queryElevation(e){const t=this.projectIfRequired(e,this.spatialReference);if(!t)return null;switch(e.type){case"point":return function(e,t,n){return e.hasZ=!0,e.z=n.elevationAt(t.x,t.y),e}(e,t,this);case"polyline":return function(e,t,n){u.spatialReference=t.spatialReference;const i=e.hasM&&!e.hasZ;for(let r=0;r<e.paths.length;r++){const o=e.paths[r],s=t.paths[r];for(let e=0;e<o.length;e++){const t=o[e],r=s[e];u.x=r[0],u.y=r[1],i&&(t[3]=t[2]),t[2]=n.elevationAt(u.x,u.y)}}return e.hasZ=!0,e}(e,t,this);case"multipoint":return function(e,t,n){u.spatialReference=t.spatialReference;const i=e.hasM&&!e.hasZ;for(let r=0;r<e.points.length;r++){const o=e.points[r],s=t.points[r];u.x=s[0],u.y=s[1],i&&(o[3]=o[2]),o[2]=n.elevationAt(u.x,u.y)}return e.hasZ=!0,e}(e,t,this);default:return null}}projectIfRequired(e,t){if(null==e)return null;const n=e.spatialReference;if(n.equals(t))return e;const i=(0,l.Cv)(e,t);return i||o.A.getLogger(this).error(`Cannot project geometry spatial reference (wkid:${n.wkid}) to elevation sampler spatial reference (wkid:${t.wkid})`),i}};c=(0,i.Cg)([(0,s.$K)("esri.layers.support.ElevationSampler")],c);const u=new a.A},20437(e,t,n){n.d(t,{A:()=>f});var i,r=n(32198),o=n(66552),s=n(25482),a=n(91429),l=n(56507),c=n(8631),u=n(98453),h=n(36005),d=n(93223);const p=new o.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let f=class extends s.o{static{i=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?p.fromJSON(n.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,r.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,r.Cg)([(0,a.MZ)()],f.prototype,"description",void 0),(0,r.Cg)([(0,h.w)("description")],f.prototype,"readDescription",null),(0,r.Cg)([(0,a.MZ)({types:c.g,json:{read:{reader:c.r},write:!0}})],f.prototype,"domain",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,r.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,r.Cg)([(0,d.e)(u.m)],f.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)()],f.prototype,"valueType",void 0),(0,r.Cg)([(0,h.w)("valueType",["description"])],f.prototype,"readValueType",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=i=(0,r.Cg)([(0,a.$K)("esri.layers.support.Field")],f)},41628(e,t,n){n.d(t,{A:()=>l});var i,r=n(32198),o=n(91429),s=n(76357),a=n(93223);let l=class extends s.A{static{i=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new i({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r.Cg)([(0,o.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,r.Cg)([(0,o.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,r.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=i=(0,r.Cg)([(0,o.$K)("esri.layers.support.RangeDomain")],l)},57984(e,t,n){n.d(t,{C:()=>u});var i=n(32198),r=n(53966),o=n(86211),s=n(91429),a=n(16930),l=n(19419),c=n(7236);let u=class extends c.A{get spatialReference(){return this.extent.spatialReference}constructor(e){const t=e.noDataValue,n="tiles"in e?e.tiles.map(n=>new h({tile:n,tileInfo:e.tileInfo,noDataValue:t})):e.samplers;super({noDataValue:t,samplers:n});const i=n[0];if(i){this.extent=i.extent.clone();const{min:e,max:t}=i.demResolution;this.demResolution={min:e,max:t};for(let e=1;e<n.length;e++){const t=n[e];this.extent.union(t.extent),this.demResolution.min=Math.min(this.demResolution.min,t.demResolution.min),this.demResolution.max=Math.max(this.demResolution.max,t.demResolution.max)}}else{const t="tileInfo"in e?e.tileInfo:null;this.extent=(0,l.w1)((0,l.vt)(),t?.spatialReference??a.A.WGS84),this.demResolution={min:0,max:0}}}elevationAt(e,t){let n;for(const i of this.samplers)if(i.containsAt(e,t)&&(n=i.elevationAt(e,t),n!==i.noDataValue))return n;return null!=n?n:(r.A.getLogger(this).warn("#elevationAt()",`Point used to sample elevation (${e}, ${t}) is outside of the sampler`),this.noDataValue)}};(0,i.Cg)([(0,s.MZ)({constructOnly:!0})],u.prototype,"noDataValue",void 0),(0,i.Cg)([(0,s.MZ)({constructOnly:!0})],u.prototype,"samplers",void 0),u=(0,i.Cg)([(0,s.$K)("esri.layers.support.TileElevationSampler")],u);let h=class extends c.A{get spatialReference(){return this.extent.spatialReference}constructor(e){super(e);const t=e.tile.key.extent;this.extent=(0,l.w1)(t,e.tileInfo.spatialReference),this.extent.zmin=e.tile.zmin,this.extent.zmax=e.tile.zmax;const n=(0,o.GA)(e.tileInfo.spatialReference),i=e.tileInfo.lodAt(e.tile.key.level).resolution*n;this.demResolution={min:i,max:i}}contains(e){const t=this.projectIfRequired(e,this.spatialReference);return null!=t&&this.containsAt(t.x,t.y)}containsAt(e,t){return(0,l.Rj)(this.tile.key.extent,e,t)}elevationAt(e,t){return this.containsAt(e,t)?this.tile.sample(e,t)??this.noDataValue:this.noDataValue}};(0,i.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"tile",void 0),(0,i.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"noDataValue",void 0),(0,i.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"tileInfo",void 0),h=(0,i.Cg)([(0,s.$K)("esri.layers.support.TileElevationSampler.SingleTileElevationSampler")],h)},8631(e,t,n){n.d(t,{r:()=>d,g:()=>h});var i,r=n(53177),o=n(76357),s=n(32198),a=n(91429),l=n(93223);let c=class extends o.A{static{i=this}constructor(e){super(e),this.type="inherited"}clone(){return new i}};(0,s.Cg)([(0,l.e)({inherited:"inherited"})],c.prototype,"type",void 0),c=i=(0,s.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],c);var u=n(41628);const h={key:"type",base:o.A,typeMap:{range:u.A,"coded-value":r.A,inherited:c}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return u.A.fromJSON(e);case"codedValue":return r.A.fromJSON(e);case"inherited":return c.fromJSON(e)}return null}},98453(e,t,n){const i=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});n.d(t,["m",0,i])},77548(e,t,n){n.d(t,{Gh:()=>E,tk:()=>A,BR:()=>x,p2:()=>M,qd:()=>D,wI:()=>T,G$:()=>S,$x:()=>R,Ov:()=>w,cM:()=>d,UC:()=>p,Qz:()=>f,OP:()=>Z,TU:()=>v,F2:()=>m,XX:()=>y,Qi:()=>b,jy:()=>C});var i=n(70333),r=n(11254),o=n(7762),s=(n(84952),n(36563)),a=n(36708),l=n(4146);const c=new WeakMap;function u(e){return!e.destroyed&&(c.has(e)||e.addHandles([(0,a.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||u(t))},t=>c.set(e,t),a.pc),(0,s.hA)(()=>c.delete(e))]),c.get(e))}function h(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function d(e){return h(e,"knowledge-graph")&&"layers"in e}function p(e){return h(e,"knowledge-graph-sublayer")}function f(e){return h(e,"link-chart")&&"layers"in e}function m(e){return h(e,"subtype-group")&&"sublayers"in e}function g(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}n(16215);const y={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function w(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function b(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function C(e){return function(e){return h(e,"catalog-footprint")}(e)||function(e){return h(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return h(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function _(e){const t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!C(e))return;const n=t?.graphic,i="featureReduction"in e?e.featureReduction:null;if(n){if(n.isAggregate){const e=n.origin;return e&&"featureReductionProvider"in e&&i?_(i)?i:null:void 0}return e}return t?.checkFeatureReduction&&i?_(i)?i:null:e}async function T(e,t){const n=i.id?.findServerInfo(e);if(null!=n?.currentVersion)return n.owningSystemUrl||null;const o=e.toLowerCase().indexOf("/rest/services");if(-1===o)return null;const s=`${e.slice(0,o)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,r.A)(s,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function x(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function A(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function D(e){const t=new o.A;for(const n of e.allLayers.concat(e.allTables))u(n)||g(n)||"annotation-feature"===n.type||"dimension-feature"===n.type||("charts"in n&&t.push(n),"subtype-group"===n.type&&t.push(...n.sublayers));return t}function R(e,t){return null}function S(e){return null}function Z(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function E(e,t){if(!t||!Z(e))return;const n=(e.url,null);n&&(e.url=n)}},38969(e,t,n){n.d(t,{i:()=>r});var i=n(37955);function r(e,t){return new Promise((n,r)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?n():(t((0,i.Oo)(e,"canplay",n)),t((0,i.Oo)(e,"error",r)))})}},73133(e,t,n){const i=(0,n(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});n.d(t,["j",0,i])},7861(e,t,n){n.d(t,{L:()=>r});var i=n(11254);async function r(e,t){return(await(0,i.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}},16215(e,t,n){n.d(t,{S:()=>r});const i=Symbol("BasemapInstance");function r(e){return null!=e&&"object"==typeof e&&i in e}n.d(t,["Y",0,i])},79677(e,t,n){n.d(t,{A:()=>h});var i,r=n(32198),o=n(25482),s=n(88930),a=n(91429),l=(n(98623),n(10184)),c=n(36005),u=n(43937);let h=class extends o.o{static{i=this}static get allTime(){return d}static get empty(){return p}static fromArray(e){return new i({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,r=e.end?.getTime()??e.end;return t===i&&n===r}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let n=this.start;n&&(n=(0,s.lL)(n,new l.A({value:1,unit:e}),t));let r=this.end;if(r){const n=(0,s.lL)(r,new l.A({value:1,unit:e}),t);r=r.getTime()===n.getTime()?n:(0,s.S1)(n,1,e,t)}return new i({start:n,end:r})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,r=e.start?.getTime()??-1/0,o=e.end?.getTime()??1/0;let s,a;return r>=t&&r<=n?s=r:t>=r&&t<=o&&(s=t),n>=r&&n<=o?a=n:o>=t&&o<=n&&(a=o),null==s||null==a||isNaN(s)||isNaN(a)?i.empty:new i({start:s===-1/0?null:new Date(s),end:a===1/0?null:new Date(a)})}offset(e,t,n="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const r=new i,{start:o,end:a}=this;return null!=o&&(r.start=(0,s.S1)(o,e,t,n)),null!=a&&(r.end=(0,s.S1)(a,e,t,n)),r}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,n=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:n})}};(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,r.Cg)([(0,c.w)("end")],h.prototype,"readEnd",null),(0,r.Cg)([(0,u.K)("end")],h.prototype,"writeEnd",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,r.Cg)([(0,c.w)("start")],h.prototype,"readStart",null),(0,r.Cg)([(0,u.K)("start")],h.prototype,"writeStart",null),h=i=(0,r.Cg)([(0,a.$K)("esri.time.TimeExtent")],h);const d=new h,p=new h({start:void 0,end:void 0})},10184(e,t,n){n.d(t,{A:()=>u});var i=n(32198),r=n(69540),o=n(25482),s=n(88930),a=n(91429),l=n(73133),c=n(93223);let u=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,c.e)(l.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,i.Cg)([(0,a.$K)("esri.time.TimeInterval")],u)},32728(e,t,n){n.d(t,{YH:()=>s,nu:()=>a,wp:()=>o}),n(34727);var i=n(35522),r=n(51850);function o(e,t){const n=Math.sqrt(t[0]*t[0]+t[4]*t[4]+t[8]*t[8]),r=Math.sqrt(t[1]*t[1]+t[5]*t[5]+t[9]*t[9]),o=Math.sqrt(t[2]*t[2]+t[6]*t[6]+t[10]*t[10]);return(0,i.hZ)(e,n,r,o),e}function s(e,t,n){n=n||e;const r=(0,i.Om)(e,t);(0,i.hZ)(n,e[0]-r*t[0],e[1]-r*t[1],e[2]-r*t[2]),(0,i.S8)(n,n)}function a(e,t,n,o=(0,r.vt)()){const s=(0,i.Bw)(e),a=(0,i.Bw)(t),u=(0,i.Om)(e,t)/(s*a);if(u<.9999999999999999){const r=Math.acos(u),h=((1-n)*s+n*a)/Math.sin(r),d=h/s*Math.sin((1-n)*r),p=h/a*Math.sin(n*r);return(0,i.hs)(l,e,d),(0,i.hs)(c,t,p),(0,i.WQ)(o,l,c)}return(0,i.Cc)(o,e,t,n)}(0,r.vt)(),(0,r.vt)(),(0,r.vt)();const l=(0,r.vt)(),c=(0,r.vt)()},29420(e,t,n){n.r(t),n.d(t,{generateCombinationsPanoramicWorker:()=>x,generateCombinationsWorker:()=>T});var i=n(34727),r=n(17676);n(17799),n(69052),n(799),n(86211),n(18047),new Map,n(77690),n(29242),n(51850),n(37585),n(35522);var o=n(49186),s=(n(56507),n(86738),n(39829),n(82799),n(16930));n(34403),n(21325),n(99917),n(95624),n(89506),n(77085),n(40427),n(965),n(23914),n(4576),n(63490),n(87811);var a=n(53966),l=(n(44208),n(27921),n(5443));n(83276),n(19419),n(38732),n(87772),n(23281),n(90091),n(87378),n(22796),n(57984),n(87045),n(72802),n(7861);const c=[1920,1080],u={xmin:-150,ymin:1,xmax:20,ymax:80,spatialReference:{wkid:4326}},h=(s.A.fromJSON(u.spatialReference),.001);new l.A({xmin:u.xmin+h,ymin:u.ymin+h,xmax:u.xmax-h,ymax:u.ymax-h,spatialReference:u.spatialReference}),(0,i.KJ)(Math.acos(.05));var d=n(32198),p=n(97768),f=n(61893),m=n(10107),g=n(64108);let y=class extends f.Z{constructor(e){super(e),this.autoLoad=!1,this.customParameters=null,this.datasetFormat=null,this.url=null,this.rotation=null}destroy(){this._cache=(0,p.pR)(this._cache)}get layer(){return this._cache}get size(){if(!this._cache?.loaded||!this._cache.serviceRasterInfo)return;const{serviceRasterInfo:e}=this._cache;return[e.width,e.height]}async load(e){if(this._cache?.loaded)return await this._cache.load(e),{layer:this._cache,size:this.size};const{url:t,customParameters:i}=this;let o=this.datasetFormat;if(!t)throw new Error("URL is required to load NonPanoramicMedia.");const s=await n.e(7835).then(n.bind(n,97835));if((0,r.Te)(e),o||(o=s.guessExtensionFromURI(t)),!o){try{o=await s.getDatasetFormat(t)}catch(e){a.A.getLogger(this).warn("non-panoramic-media:dataset-format",e)}(0,r.Te)(e)}o??="UNKNOWN FORMAT",this.datasetFormat=o;const l=(await Promise.all([n.e(373),n.e(9235),n.e(3500),n.e(1003),n.e(2806),n.e(124)]).then(n.bind(n,90124))).default;(0,r.Te)(e),this._cache=new l({url:t,ioConfig:{skipExtensions:["aux.xml","jgw"],skipMapInfo:!0,datasetFormat:o},customParameters:i??void 0});const c=this._cache.load(e);return this.addResolvingPromise(c),await c,(0,r.Te)(e),{layer:this._cache,size:this.size}}};(0,d.Cg)([(0,m.MZ)()],y.prototype,"_cache",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"autoLoad",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"customParameters",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"datasetFormat",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"url",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"layer",null),(0,d.Cg)([(0,m.MZ)()],y.prototype,"rotation",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"size",null),y=(0,d.Cg)([(0,g.$)("esri.widgets.OrientedImageryViewer.support.NonPanoramicMedia")],y);var v=n(37955),w=n(38969);class b extends o.A{constructor(e,t,n){super(e,t,n),this.name="unknown",this.name=e}}const C=new Set(["JPG","JPEG","TIFF","TIF","MRF"]),_=new Set(["MRF","TIFF","TIF"]);let M=class extends f.Z{constructor(e){super(e),this._size=[0,0],this._cache=null,this.autoLoad=!1,this.cameraHeading=null,this.extension=null,this.imagePyramid=null,this.type="image",this.uiStrings={}}destroy(){this._cache=null}get horizonPitch(){const{matrix:e}=this;return e?(0,i.KJ)(Math.asin(-e[6])):0}get horizonRoll(){const{matrix:e}=this;return e?(0,i.KJ)(Math.atan(e[7]/e[8])):0}get horizonYaw(){const{matrix:e,cameraHeading:t}=this;return e?(0,i.KJ)(Math.atan2(e[3],e[0])):t?-t:0}get size(){return this._size}async load(e){const{guessExtensionFromURI:t}=await n.e(7835).then(n.bind(n,97835));if((0,r.Te)(e),"video"===this.type)return this.loadVideoMesh(e);let i=this.extension;if(i||(i=t(this.url)),!i||!C.has(i))throw new b("unsupported-format",this.uiStrings["unsupported-format"]??"Unsupported image format: {extension}",{datasetFormat:i??"UNKNOWN FORMAT"});return _.has(i)?this.loadOptimizedImageMesh(e):this.loadImageMesh(e)}async loadOptimizedImageMesh(e){const{loadMeshes:t,loadPyramid:i,loadRaster:o}=await Promise.all([n.e(6860),n.e(118),n.e(3494)]).then(n.bind(n,21060)),s=await o(this.url,e);(0,r.Te)(e),this.imagePyramid=await i(s,{pitch:this.horizonPitch,yaw:this.horizonYaw,roll:this.horizonRoll},e),(0,r.Te)(e);const a=this.imagePyramid.getLowResolutionTiles(),l=await t(a,e);return(0,r.Te)(e),this._size=this.imagePyramid.imageSize,{meshOrMeshes:l,size:this._size,tileKeys:a?.map(e=>e.key)}}async loadVideoMesh(e){const{createImageSphere:t}=await Promise.all([n.e(6860),n.e(118),n.e(3494)]).then(n.bind(n,21060));if((0,r.Te)(e),this._cache){const n=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:n,size:this._size}}const i=await this._resolveMedia(e);(0,r.Te)(e),this._cache=i.media,this._size=[...c];const o=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:o,size:this._size}}async loadImageMesh(e){const{createImageSphere:t}=await Promise.all([n.e(6860),n.e(118),n.e(3494)]).then(n.bind(n,21060));if((0,r.Te)(e),this._cache){const n=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:n,size:this._size}}const i=await this._resolveMedia(e);(0,r.Te)(e),this._cache=i.media;const o=i.mesh;return this._size=[i.media.width,i.media.height],{meshOrMeshes:o,size:this._size}}async _resolveMedia(e){const t=Promise.withResolvers(),i=(0,r.u7)(e?.signal,t.resolve),o="video"===this.type?document.createElement("video"):document.createElement("img");o.crossOrigin="anonymous",o.src=this.url;let s=null;const a="video"===this.type?(0,w.i)(o,this.addHandles):await new Promise((e,t)=>{s=[(0,v.on)(o,"error",e=>{t(e)}),(0,v.on)(o,"load",e)]}).finally(()=>{s?.forEach(e=>e.remove()),s=null}),l=Promise.race([a,t.promise]);this.addResolvingPromise(l);try{await l}finally{i?.remove()}(0,r.Te)(e);const c=o;if(!c)throw new b("unknown","Could not load media",{url:this.url});const{createImageSphere:u}=await Promise.all([n.e(6860),n.e(118),n.e(3494)]).then(n.bind(n,21060));(0,r.Te)(e);const h=await u({data:o,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{media:c,mesh:h}}};function T(e){return function(e,t){const{cameraPitch:n,cameraRoll:i,cameraLocation:r}=e,{x:o,y:s,z:a,spatialReference:l}=r;if(t.every(e=>0===e)||!t||!t.length||!l)throw new Error("Invalid parameters");const[c,u,,h,d]=t,p=[-h,0,h],f=[-d,0,d],m=[-c,0,c],g=[-u,0,u],y=[];for(const t of p)for(const r of f)for(const c of m)for(const u of m)for(const h of g){const d={...e};d.cameraPitch=n+t,d.cameraRoll=i+r,d.cameraLocation={x:o+c,y:s+u,z:a?a+h:0,spatialReference:{wkid:l.wkid}},y.push(d)}return y}(e.imageToWorldProps,e.accuracyParameters)}function x(e){return function(e,t){const{cameraHeading:n,cameraLocation:i}=e,{x:r,y:o,z:s,spatialReference:a}=i;if(!t||t.every(e=>0===e)||!t.length||!a)throw new Error("Invalid parameters");const[l,c,u]=t,h=u>0?[-u,0,u]:[],d=l>0?[-l,0,l]:[],p=c>0?[-c,0,c]:[],f=[];for(const t of h)for(const i of d)for(const l of d)for(const c of p){const u={...e};u.cameraHeading=n+t,u.cameraLocation={x:r+i,y:o+l,z:s?s+c:0,spatialReference:{wkid:a.wkid}},f.push(u)}return f}(e.imageToWorldProps,e.accuracyParameters)}(0,d.Cg)([(0,m.MZ)()],M.prototype,"_size",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"autoLoad",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"cameraHeading",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"extension",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"horizonPitch",null),(0,d.Cg)([(0,m.MZ)()],M.prototype,"horizonRoll",null),(0,d.Cg)([(0,m.MZ)()],M.prototype,"horizonYaw",null),(0,d.Cg)([(0,m.MZ)()],M.prototype,"id",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"imagePyramid",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"matrix",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"size",null),(0,d.Cg)([(0,m.MZ)()],M.prototype,"type",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"uiStrings",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"url",void 0),M=(0,d.Cg)([(0,g.$)("esri.widgets.PanoramicViewer.support.PanoramicMedia")],M),n(9093),n(91829),n(58083),n(79258),n(73354),n(28208),n(28735)},28208(e,t,n){var i=n(86738),r=n(16930);const o=new i.A({x:0,y:0,z:0,spatialReference:r.A.WebMercator});n.d(t,["NU",0,.3515625,"ZH",0,o])}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[91,1150,3354,3847,5223,6742,7085],{73354(e,t,n){n.d(t,{a:()=>h,b:()=>a,c:()=>r,d:()=>s,e:()=>d,f:()=>u,l:()=>c,n:()=>p,t:()=>o}),n(44208);var i=n(72727);function r(e,t,n){o(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function o(e,t,n,r=3,o=r){const s=(0,i.k)(e.length,r,3),a=(0,i.k)(t.length,o,3),l=Math.min(s,a),c=n[0],u=n[1],h=n[2],d=n[4],p=n[5],f=n[6],m=n[8],g=n[9],y=n[10],v=n[12],w=n[13],b=n[14];let C=0,_=0;for(let n=0;n<l;n++){const n=t[C],i=t[C+1],s=t[C+2];e[_]=c*n+d*i+m*s+v,e[_+1]=u*n+p*i+g*s+w,e[_+2]=h*n+f*i+y*s+b,C+=o,_+=r}return e}function s(e,t,n){a(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function a(e,t,n,r=3,o=r){const s=(0,i.k)(e.length,r,3),a=(0,i.k)(t.length,o,3),l=Math.min(s,a),c=n[0],u=n[1],h=n[2],d=n[3],p=n[4],f=n[5],m=n[6],g=n[7],y=n[8];let v=0,w=0;for(let n=0;n<l;n++){const n=t[v],i=t[v+1],s=t[v+2];e[w]=c*n+d*i+m*s,e[w+1]=u*n+p*i+g*s,e[w+2]=h*n+f*i+y*s,v+=o,w+=r}}function l(e,t,n,i=3,r=i){const o=Math.min(e.length/i,t.length/r);let s=0,a=0;for(let l=0;l<o;l++)e[a]=n*t[s],e[a+1]=n*t[s+1],e[a+2]=n*t[s+2],s+=r,a+=i;return e}function c(e,t,n,i){u(e.typedBuffer,t.typedBuffer,n,i,e.typedBufferStride,t.typedBufferStride)}function u(e,t,n,i,r=3,o=r){const s=Math.min(e.length/r,t.length/o);let a=0,l=0;const c=1/2.2;for(let u=0;u<s;u++)e[l]=i*(n*t[a])**c,e[l+1]=i*(n*t[a+1])**c,e[l+2]=i*(n*t[a+2])**c,a+=o,l+=r}function h(e,t,n,r=3,o=r){const s=(0,i.k)(e.length,r,3),a=(0,i.k)(t.length,o,3),l=Math.min(s,a);let c=0,u=0;for(let i=0;i<l;i++)e[u]=t[c]+n[0],e[u+1]=t[c+1]+n[1],e[u+2]=t[c+2]+n[2],c+=o,u+=r;return e}function d(e,t){p(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function p(e,t,n=3,i=n){const r=Math.min(e.length/n,t.length/i);let o=0,s=0;for(let a=0;a<r;a++){const r=t[o],a=t[o+1],l=t[o+2],c=r*r+a*a+l*l;if(c>0){const t=1/Math.sqrt(c);e[s]=t*r,e[s+1]=t*a,e[s+2]=t*l}o+=i,s+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:c,normalize:p,normalizeView:d,scale:l,scaleView:function(e,t,n){l(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,n){const i=Math.min(e.count,t.count),r=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,a=t.typedBufferStride;let l=0,c=0;for(let e=0;e<i;e++)r[c]=s[l]>>n,r[c+1]=s[l+1]>>n,r[c+2]=s[l+2]>>n,l+=a,c+=o},transformMat3:a,transformMat3View:s,transformMat4:o,transformMat4View:r,translate:h},Symbol.toStringTag,{value:"Module"}))},69540(e,t,n){var i=n(32198),r=n(69622),o=(n(44208),n(4718)),s=(n(53966),n(97768)),a=n(88620),l=n(64108);const c=Symbol("ClonableMixin"),u=e=>{var t;const n=e;let r=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=c}clone(e){const t=(0,a.oY)(this);(0,s.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,i=t.store,r={},l=new Map;for(const t in n){const s=n[t],a=i?.originOf(t),c=s.clonable;if(s.readOnly||!1===c||7!==a&&0!==a&&5!==a&&4!==a)continue;const u=this[t];let h=null;if("function"==typeof c)h=c(u,e);else if("reference"===c)h=u;else if(h=(0,o.TU)(u,e),null!=u&&null==h)continue;0===a?l.set(t,h):r[t]=h}const c=new(0,Object.getPrototypeOf(this).constructor)(r);if(l.size){const e=(0,a.oY)(c)?.store;if(e)for(const[t,n]of l)e.set(t,n,0)}return c}};return r=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],r),r},h=u(r.A);n.d(t,["OU",0,u,"Pw",0,h])},7762(e,t,n){var i,r=n(32198),o=n(98291),s=n(4576),a=n(65529),l=n(36563),c=n(4718),u=n(53966),h=n(93687),d=n(76030),p=n(56507),f=n(62788),m=n(10107),g=n(7695),y=n(64108),v=n(95488),w=n(12195);class b{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class C{constructor(e,t,n,i,r){this.target=e,this.added=t,this.removed=n,this.start=i,this.deleteCount=r}}const _=new h.A(()=>new b,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function M(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function T(e){return e?e instanceof z?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function x(e){if(e?.length)return e[0]}function A(e,t,n,i){const r=Math.min(e.length-n,t.length-i);let o=0;for(;o<r&&e[n+o]===t[i+o];)o++;return o}function D(e,t,n,i){t&&t.forEach((t,r,o)=>{e.push(t),D(e,n.call(i,t,r,o),n,i)})}const R=new Set,S=new Set,Z=new Set,E=new Map;let O=0,z=i=class extends a.nJ{static ofType(e){if(!e)return i;if(E.has(e))return E.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const n in e.typeMap){const i=e.typeMap[n].prototype.declaredClass;t?t+=` | ${i}`:t=i}let n=class extends i{};return(0,r.Cg)([(0,g.u)({Type:e,ensureType:"function"==typeof e?(0,p.dp)(e):(0,p.aq)(e)})],n.prototype,"itemType",void 0),n=(0,r.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],n),E.set(e,n),n}static isCollection(e){return null!=e&&e instanceof i}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new v.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:O++})}normalizeCtorArgs(e){return e?(0,s.yc)(e)||e instanceof i?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,f.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,T(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){const e=this._chgListeners,n={removed:!1,callback:t};return e.push(n),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{n.removed=!0,e.splice(e.indexOf(n),1)})}return super.on(e,t)}once(e,t){const n="deref"in t?()=>t.deref():()=>t,i=this.on(e,e=>{n()?.call(null,e),i.remove()});return i}add(e,t){if((0,f.gc)(this._observable),this._emitBeforeChanges(1))return this;const n=this.getNextIndex(t??null);return this._splice(n,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,f.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const n=this.getNextIndex(t);return this._splice(n,0,T(e)),this._emitAfterChanges(1),this}at(e){if((0,f.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.map(c.o8)})}concat(...e){(0,f.gc)(this._observable);const t=e.map(T);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const n=this._splice(0,this.length),i=n.length;for(let r=0;r<i;r++)e.call(t,n[r],r,n);this._emitAfterChanges(2)}destroyAll(){this.drain(M)}destroyMany(e){const t=this.removeMany(e);return t.forEach(M),t}every(e,t){return(0,f.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,f.gc)(this._observable);const n=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:n})}find(e,t){return(0,f.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,f.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,f.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,f.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,f.gc)(this._observable);const n=[];return D(n,this,e,t),new i(n)}forEach(e,t){return(0,f.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,f.gc)(this._observable),this._items[e]}getNextIndex(e){(0,f.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,f.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,f.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,f.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,f.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,f.gc)(this._observable);const n=this._items.map(e,t);return new i({items:n})}reorder(e,t=this.length-1){(0,f.gc)(this._observable);const n=this.indexOf(e);if(-1!==n){if(t<0?t=0:t>=this.length&&(t=this.length-1),n!==t){if(this._emitBeforeChanges(4))return e;this._splice(n,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=x(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,f.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,f.gc)(this._observable);const n=this._items;return 2===arguments.length?n.reduce(e,t):n.reduce(e)}reduceRight(e,t){(0,f.gc)(this._observable);const n=this._items;return 2===arguments.length?n.reduceRight(e,t):n.reduceRight(e)}remove(e){return(0,f.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,f.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=x(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof i?e.toArray():e,n=this._items,r=[],o=t.length;for(let e=0;e<o;e++){const i=t[e],o=n.indexOf(i);if(o>-1){const i=1+A(t,n,e+1,o+1),s=this._splice(o,i);s&&s.length>0&&r.push.apply(r,s),e+=i-1}}return this._emitAfterChanges(2),r}reverse(){if((0,f.gc)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=x(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,f.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let n=0;n<t;n++)if(e(this.items[n],this.items[n+1])>0)return!0;return!1}splice(e,t,...n){(0,f.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;const i=(t?2:0)|(n.length?1:0);if(this._emitBeforeChanges(i))return[];const r=this._splice(e,t,n)||[];return this._emitAfterChanges(i),r}toArray(){return(0,f.gc)(this._observable),this._items.slice()}toJSON(e){return(0,f.gc)(this._observable),this.toArray().map(t=>(0,w.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,f.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,f.gc)(this._observable),this._items.toString()}unshift(...e){return(0,f.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,n){const i=this._items,r=this.itemType;let o,s;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=i.splice(e,t),this.hasEventListener("before-remove")){const t=_.acquire();t.target=this,t.cancellable=!0;for(let n=0,r=s.length;n<r;n++)o=s[n],t.reset(o),this.emit("before-remove",t),t.defaultPrevented&&(s.splice(n,1),i.splice(e,0,o),e+=1,n-=1,r-=1);_.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const e=_.acquire();e.target=this,e.cancellable=!1;const t=s.length;for(let n=0;n<t;n++)e.reset(s[n]),this.emit("after-remove",e);_.release(e)}}if(n?.length){if(r){const e=[];for(const t of n){const n=r.ensureType(t);null==n&&null!=t||e.push(n)}n=e}const t=this.hasEventListener("before-add"),o=this.hasEventListener("after-add"),s=e===this.length;if(t||o){const r=_.acquire();r.target=this,r.cancellable=!0;const a=_.acquire();a.target=this,a.cancellable=!1;for(const l of n)t?(r.reset(l),this.emit("before-add",r),r.defaultPrevented||(s?i.push(l):i.splice(e++,0,l),this._length=i.length,o&&(a.reset(l),this.emit("after-add",a)))):(s?i.push(l):i.splice(e++,0,l),this._length=i.length,a.reset(l),this.emit("after-add",a));_.release(a),_.release(r)}else{if(s)for(const e of n)i.push(e);else i.splice(e,0,...n);this._length=i.length}}if((n?.length||s?.length)&&this._notifyChangeEvent(n,s),this.hasEventListener("after-splice")){const i=new C(this,n,s,e,t);this.emit("after-splice",i)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const n=_.acquire();n.target=this,n.cancellable=!0,n.type=e,this.emit("before-changes",n),t=n.defaultPrevented,_.release(n)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=_.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),_.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;R.clear(),S.clear(),Z.clear();for(const{added:t,removed:n}of e){if(t)if(0===Z.size&&0===S.size)for(const e of t)R.add(e);else for(const e of t)S.has(e)?(Z.add(e),S.delete(e)):Z.has(e)||R.add(e);if(n)if(0===Z.size&&0===R.size)for(const e of n)S.add(e);else for(const e of n)R.has(e)?R.delete(e):(Z.delete(e),S.add(e))}const n=o.A.acquire();R.forEach(e=>{n.push(e)});const i=o.A.acquire();S.forEach(e=>{i.push(e)});const r=this._items,s=t.items,a=o.A.acquire();if(Z.forEach(e=>{s.indexOf(e)!==r.indexOf(e)&&a.push(e)}),t.listeners&&(n.length||i.length||a.length)){const e={target:this,added:n,removed:i,moved:a},r=t.listeners.length;for(let n=0;n<r;n++){const i=t.listeners[n];i.removed||i.callback.call(this,e)}}o.A.release(n),o.A.release(i),o.A.release(a)}R.clear(),S.clear(),Z.clear()}};(0,r.Cg)([(0,m.MZ)()],z.prototype,"_updating",void 0),(0,r.Cg)([(0,m.MZ)()],z.prototype,"_length",void 0),(0,r.Cg)([(0,m.MZ)()],z.prototype,"length",null),(0,r.Cg)([(0,m.MZ)()],z.prototype,"items",null),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],z.prototype,"updating",null),z=i=(0,r.Cg)([(0,y.$)("esri.core.Collection")],z);const j=z;n.d(t,["A",0,j])},4902(e,t,n){var i=n(32198),r=n(64108);let o=0;const s=e=>{const t=e;let n=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return n=(0,i.Cg)([(0,r.$)("esri.core.Identifiable")],n),n};s(class{}),n.d(t,["s",0,s])},7695(e,t,n){function i(e){return(t,n)=>{t[n]=e}}n.d(t,{u:()=>i})},82534(e,t,n){function i(){return[0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3]]}n.d(t,{o8:()=>r,vt:()=>i});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:r,create:i,fromValues:function(e,t,n,i){return[e,t,n,i]}},Symbol.toStringTag,{value:"Module"})),n.d(t,["zK",0,o])},48163(e,t,n){function i(){return[0,0]}function r(e){return[e[0],e[1]]}function o(e,t){return[e,t]}function s(){return o(1,1)}function a(){return o(-1,-1)}function l(){return o(1,0)}function c(){return o(0,1)}n.d(t,{fA:()=>o,o8:()=>r,vt:()=>i});const u=s(),h=a(),d=l(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:h,ONES:u,UNIT_X:d,UNIT_Y:p,ZEROS:[0,0],clone:r,create:i,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){const n=Math.min(2,e.length);for(let i=0;i<n;++i)t[i]=e[i];return t},fromValues:o,negativeOnes:a,ones:s,unitX:l,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(t,["IA",0,h,"Un",0,u])},17799(e,t,n){n.d(t,{T9:()=>a,d_:()=>r,gT:()=>o});var i=n(86211);function r(e,t){return{type:(0,i.t$)(t),value:e,unit:t}}function o(e,t){return{type:(0,i.t$)(t),value:e,unit:t}}function s(e,t,n="arithmetic"){return{type:(0,i.t$)(t),value:e,unit:t,rotationType:n}}function a(e,t){return null==e?t:null==t||e.value>(0,i.oU)(t.value,t.unit,e.unit)?e:t}r(0,"meters"),o(0,"square-meters"),s(0,"radians"),s(0,"degrees"),s(0,"degrees","geographic")},36708(e,t,n){n.d(t,{C_:()=>d,on:()=>h,wB:()=>l,z7:()=>c});var i=n(37955),r=n(36563),o=n(97768),s=n(17676),a=n(14012);function l(e,t,n={}){return u(e,t,n,p)}function c(e,t,n={}){return u(e,t,n,f)}function u(e,t,n={},i){let r=null;const s=n.once?(e,n)=>{i(e)&&((0,o.xt)(r),t(e,n))}:(e,n)=>{i(e)&&t(e,n)};if(r=(0,a.Cn)(e,s,n.sync,n.equals),n.initial){const t=e();s(t,t)}return r}function h(e,t,n,s={}){let a=null,c=null,u=null;function h(){a&&c&&(c.remove(),s.onListenerRemove?.(a),a=null,c=null)}function d(e){s.once&&s.once&&(0,o.xt)(u),n(e)}const p=l(e,(e,n)=>{h(),(0,i.wb)(e)&&(a=e,c=(0,i.on)(e,t,d),s.onListenerAdd?.(e))},{sync:s.sync,initial:!0});return u=(0,r.hA)(()=>{p.remove(),h()}),u}function d(e,t){return function(e,t,n){if((0,s.G4)(n))return Promise.reject((0,s.NK)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,o.xt)(a)}return new Promise((i,o)=>{a=(0,r.vE)([(0,s.u7)(n,()=>{l(),o((0,s.NK)())}),u(e,e=>{l(),i(e)},{sync:!1,once:!0},t??p)])})}(e,f,t)}function p(e){return!0}function f(e){return!!e}n(80559),n.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},88930(e,t,n){n.d(t,{S1:()=>a,VW:()=>l,lL:()=>c,rb:()=>u,t:()=>h});var i=n(97770),r=(n(98623),n(34747));const o=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,n,o="system"){if("unknown"===n)return e;const s=new r.oh((0,i.wj)(o)),a=r.c9.fromJSDate(e,{zone:s}),l="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,n="milliseconds"){const i=e.getTime(),r=h(t,n,"milliseconds");return new Date(i+r)}function c(e,t,n="system"){const{unit:o}=t,s=Math.max(1,Math.trunc(t.value)),a=new r.oh((0,i.wj)(n)),l=r.c9.fromJSDate(e,{zone:a}),c=e=>e-e%s;switch(o){case"milliseconds":return l.startOf("second").plus({millisecond:c(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:c(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:c(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:c(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:c(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:c(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:c(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===o?10:"centuries"===o?100:1)*s,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function u(e){const t=o.exec(e);if(!t)return null;const{hh:n,mm:i,ss:r,ms:a}=t.groups;return Number(n)*s.hours+Number(i)*s.minutes+Number(r||0)*s.seconds+Number(a||0)}function h(e,t,n){return 0===e?0:e*s[t]/s[n]}},95624(e,t,n){n.d(t,{g:()=>o});var i=n(86211),r=n(78125);function o(e,t={}){const{unit:n}=t;let o=(0,r.fromGeometry)(e).calculateArea2D();if(o&&n){const t=(0,r.getSpatialReference)(e);if(t.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const s=(0,i.B5)(t);s!==n&&(s?o=(0,i.oU)(o,s,n):(o=Math.sqrt(o),o*=(0,i.GA)(t),o**=2,o=(0,i.oU)(o,"square-meters",n)))}return o}},89506(e,t,n){n.d(t,{Hh:()=>u,g7:()=>h});var i=n(86211),r=n(86742),o=n(5808);let s,a,l,c;async function u(){if(!s||!(0,r.s)()){const[e]=await Promise.all([Promise.resolve().then(n.bind(n,78125)),(0,r.load)()]);s=e.fromGeometry,a=e.fromSpatialReference,l=e.getSpatialReference,c=(0,r.f)()}}function h(e,t={}){const{curveType:n="geodesic",unit:c}=t,u=l(e);let h=(0,r.execute)(s(e),a(u),o.O[n]);return h&&c&&(h=(0,i.oU)(h,"square-meters",c)),h}},40427(e,t,n){n.d(t,{Hh:()=>u,g7:()=>h});var i=n(86211),r=n(35223),o=n(5808);let s,a,l,c;async function u(){if(!s||!(0,r.s)()){const[e]=await Promise.all([Promise.resolve().then(n.bind(n,78125)),(0,r.load)()]);s=e.fromGeometry,a=e.fromSpatialReference,l=e.getSpatialReference,c=(0,r.f)()}}function h(e,t={}){const{curveType:n="geodesic",unit:c}=t,u=l(e);let h=(0,r.execute)(s(e),a(u),o.O[n]);return h&&c&&(h=(0,i.oU)(h,"meters",c)),h}},86742(e,t,n){n.d(t,{execute:()=>a,f:()=>l,load:()=>s,s:()=>o});var i=n(83290);let r;function o(){return!!r&&(0,i.i)()}async function s(){if(!o()){const[e,t]=await Promise.all([Promise.all([n.e(2024),n.e(6558)]).then(n.bind(n,6558)),n.e(3375).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,i.l)()]);r=new e.OperatorGeodeticArea,t(i.p)}}function a(e,t,n){return r.execute(e,t,n,null)}function l(){return r.supportsCurves()}},77085(e,t,n){n.d(t,{execute:()=>s,load:()=>o}),n(76061);var i=n(83290);let r;async function o(){if(!r||!(0,i.i)()){const[e,t]=await Promise.all([Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(1088)]).then(n.bind(n,31088)),Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(5756)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,i.l)()]);r=new e.OperatorGeodeticDensifyByLength,t(i.p)}}function s(e,t,n,i){return r.execute(e,t,n,i,null)}},35223(e,t,n){n.d(t,{execute:()=>a,f:()=>l,load:()=>s,s:()=>o});var i=n(83290);let r;function o(){return!!r&&(0,i.i)()}async function s(){if(!o()){const[e,t]=await Promise.all([n.e(8879).then(n.bind(n,28879)),n.e(3375).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,i.l)()]);r=new e.OperatorGeodeticLength,t(i.p)}}function a(e,t,n){return r.execute(e,t,n,null)}function l(){return r.supportsCurves()}},4144(e,t,n){n.r(t),n.d(t,{clipToSpatialReference:()=>l,execute:()=>c,executeMany:()=>u,foldInto360Range:()=>h,foldInto360RangeGeodetic:()=>d,isLoaded:()=>s,load:()=>a,normalizeGeometry:()=>p,supportsCurves:()=>f,transform:()=>m});var i=n(76061),r=n(83290);let o;function s(){return!!o&&(0,r.i)()}async function a(){if(!s()){const[e,t]=await Promise.all([Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(9192)]).then(n.bind(n,9192)),Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(5756)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,r.l)()]);o=new e.OperatorProject,t(r.p)}}function l(e,t,n){return o.clipToSpatialReference(e,t,null,n)}function c(e,t){return o.execute(e,t,null)}function u(e,t){const n=o.executeMany(new i.S(e),t,null);return Array.from(n)}function h(e,t){return o.foldInto360Range(e,t)}function d(e,t,n){return o.foldInto360RangeGeodetic(e,t,n)}function p(e,t,n){return o.normalizeGeometry(e,t,n)}function f(){return o.supportsCurves()}function m(e,t,n,i,r){return o.transform(e,t,n,i,r)}},81150(e,t,n){n.d(t,{execute:()=>s,f:()=>c,isSimpleAsFeature:()=>l,z:()=>a});var i=n(76061),r=(n(55537),n(88885),n(39117));n(95213);const o=new r.J;function s(e,t,n){return o.execute(e,t,n,null)}function a(e,t,n){const r=o.executeMany(new i.S(e),t,n,null);return Array.from(r)}function l(e,t,n){return o.isSimpleAsFeature(e,t,n,null,null)}function c(){return o.supportsCurves()}},83276(e,t,n){n.r(t),n.d(t,{execute:()=>p,executeMany:()=>f,isLoaded:()=>h,load:()=>d,supportsCurves:()=>u});var i=n(4144),r=n(17499);let o,s,a,l,c,u;function h(){return!!o&&(0,i.isLoaded)()}async function d(){if(!h()){const[e,t]=await Promise.all([Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(1666)]).then(n.bind(n,78125)),Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(6129)]).then(n.bind(n,86129)),(0,i.load)()]);o=e.fromGeometry,s=e.fromSpatialReference,a=e.getSpatialReference,l=e.toGeometry,c=t.createProjectionTransformation,u=(0,i.supportsCurves)()}}function p(e,t,n){const u=a(e),h=c(s(u),s(t),n),d=l((0,i.execute)(o(e),h),t);return!n?.zConversionDisabled&&d?.hasZ&&(0,r.g)([d],u,t),d}function f(e,t,n){const u=e.map(o),h=a(e),d=c(s(h),s(t),n),p=(0,i.executeMany)(u,d).map(e=>l(e,t));return!n?.zConversionDisabled&&p&&(0,r.g)(p,h,t),p}},23914(e,t,n){n.d(t,{g7:()=>o});var i=n(81150),r=n(78125);function o(e){const t=(0,r.getSpatialReference)(e);return(0,r.toGeometry)((0,i.execute)((0,r.fromGeometry)(e),(0,r.fromSpatialReference)(t),!1),t)}(0,i.f)()},5808(e,t,n){n.d(t,["O",0,{geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}])},17499(e,t,n){n.d(t,{g:()=>o});var i=n(60408),r=n(62815);function o(e,t,n){let o;for(const s of e)if(s&&(0,i.Pv)(s)&&!("vertexAttributes"in s)){if(!o){const e="type"in s?s.type:(0,i.$B)(s);if(o=(0,r.N)(e,t,n),!o)return}o(s)}}},72727(e,t,n){function i(e,t,n){if(t<=0)return 0;const i=e-n;return i<0?0:Math.floor(i/t)+1}n.d(t,{k:()=>i}),n(53966)},27921(e,t,n){n.d(t,{$Q:()=>C,BX:()=>b,C:()=>a,Cr:()=>u,H:()=>M,O_:()=>c,Qj:()=>l,T7:()=>v,lU:()=>h,mN:()=>T,vE:()=>A,vt:()=>s,wE:()=>x});var i=n(34727),r=n(35522),o=n(51850);function s(e=D){return[e[0],e[1],e[2],e[3]]}function a(e,t){return function(e,t,n,i,r=s()){return r[0]=e,r[1]=t,r[2]=n,r[3]=i,r}(t[0],t[1],t[2],t[3],e)}function l(e){return e}function c(e,t,n){const i=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=Math.abs(i-1)>1e-5&&i>1e-12?1/Math.sqrt(i):1;return n[0]=t[0]*r,n[1]=t[1]*r,n[2]=t[2]*r,n[3]=-(n[0]*e[0]+n[1]*e[1]+n[2]*e[2]),n}function u(e,t,n,i=s()){const r=n[0]-t[0],o=n[1]-t[1],a=n[2]-t[2],l=e[0]-t[0],c=e[1]-t[1],u=e[2]-t[2],h=o*u-a*c,d=a*l-r*u,p=r*c-o*l,f=h*h+d*d+p*p,m=Math.abs(f-1)>1e-5&&f>1e-12?1/Math.sqrt(f):1;return i[0]=h*m,i[1]=d*m,i[2]=p*m,i[3]=-(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]),i}function h(e,t,n,i=0,o=Math.floor(n*(1/3)),s=Math.floor(n*(2/3))){if(n<3)return!1;t(p,i);let a=o,l=!1;for(;a<n-1&&!l;)t(f,a),a++,l=!(0,r.t2)(p,f);if(!l)return!1;for(a=Math.max(a,s),l=!1;a<n&&!l;)t(m,a),a++,(0,r.Re)(g,p,f),(0,r.S8)(g,g),(0,r.Re)(y,f,m),(0,r.S8)(y,y),l=!(0,r.t2)(p,m)&&!(0,r.t2)(f,m)&&Math.abs((0,r.Om)(g,y))<d;return l?(u(p,f,m,e),!0):(0!==i||1!==o||2!==s)&&h(e,t,n,0,1,2)}n(78955),n(44280),n(32114),n(32728);const d=.99619469809,p=(0,o.vt)(),f=(0,o.vt)(),m=(0,o.vt)(),g=(0,o.vt)(),y=(0,o.vt)();function v(e,t,n){return function(e){return 0===e||1===e}(A(e,t.origin,t.vector,0,n))}function w(e,t){return T(e,t)<=0}function b(e,t){return T(e,t)>=0}function C(e,t){return function(e,t,n,i,o,s,a){const l=(0,r.Om)(e,n),c=T(e,t);if(l>-1e-6&&l<1e-6)return _(c,o,s);const u=-c/l,h=_(l,o,!1);return!(a&&!h&&!_(c,o,s))&&(h?u>i.c0&&(i.c0=u):u<i.c1&&(i.c1=u),i.c0<=i.c1)}(e,t.ray.origin,t.ray.direction,t,!1,!1,!0)}function _(e,t,n){return n?t?e>=0:e<=0:t?e>0:e<0}function M(e,t,n,i=!1){let o=t.at(-1),s=T(e,o),a=i?s>0:s<=0;for(let l=0;l<t.length;l++){const c=t.at(l),u=T(e,c),h=i?u>0:u<=0;a!==h&&(0,r.Cc)(n(),o,c,s/(s-u)),h&&(0,r.C)(n(),c),o=c,s=u,a=h}}function T(e,t){return(0,r.Om)(e,t)+e[3]}function x(e,t,n){for(let i=0;i<n;++i)if(w(e,t[i]))return!1;return!0}function A(e,t,n,o,s){const a=(0,r.Om)(e,n),l=T(e,t);if(0===a)return l>=0?2:3;let c=-l/a;return 1&o&&(c=(0,i.qE)(c,0,1)),!(4&o)&&c<0||!(8&o)&&c>1?l>=0?2:3:((0,r.WQ)(s,t,(0,r.hs)(s,n,c)),l>=0?0:1)}const D=[0,0,1,0];(0,o.vt)()},44280(e,t,n){n.d(t,{g7:()=>a,gr:()=>s});var i=n(34727),r=n(35522),o=n(51850);function s(e,t){return(0,r.Om)(e,t)/(0,r.Bw)(e)}function a(e,t){const n=(0,r.Om)(e,t)/((0,r.Bw)(e)*(0,r.Bw)(t));return-(0,i.XM)(n)}(0,o.vt)(),(0,o.vt)()},32114(e,t,n){n.d(t,{Rc:()=>p,rq:()=>h,Km:()=>d}),n(44208);var i=n(26390),r=n(29242),o=n(9093),s=n(82534),a=n(48163),l=n(51850),c=n(91829);class u{constructor(e){this._create=e,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,i.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const e=2*this._itemsPtr;this._items.length>e&&(this._items.length=e),this._itemsPtr=0}static createVec2f64(){return new u(a.vt)}static createVec3f64(){return new u(l.vt)}static createVec4f64(){return new u(c.vt)}static createMat3f64(){return new u(r.vt)}static createMat4f64(){return new u(o.vt)}static createQuatf64(){return new u(s.vt)}get test(){}}u.createVec2f64();const h=u.createVec3f64(),d=u.createVec4f64(),p=(u.createMat3f64(),u.createMat4f64());u.createQuatf64()},97770(e,t,n){n.d(t,{Ey:()=>O,F8:()=>E,J2:()=>D,Yq:()=>S,_m:()=>R,iS:()=>Z,wj:()=>z});var i=n(66552),r=n(73444),o=n(98623),s=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},c={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},h={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},p={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},m={...f,second:"numeric"},g={hourCycle:"h23"},y={...f,...g},v={...m,...g},w={"short-date":u,"short-date-short-time":{...u,...f},"short-date-short-time-24":{...u,...y},"short-date-long-time":{...u,...m},"short-date-long-time-24":{...u,...v},"short-date-le":u,"short-date-le-short-time":{...u,...f},"short-date-le-short-time-24":{...u,...y},"short-date-le-long-time":{...u,...m},"short-date-le-long-time-24":{...u,...v},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...f},"long-month-day-year-short-time-24":{...h,...y},"long-month-day-year-long-time":{...h,...m},"long-month-day-year-long-time-24":{...h,...v},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...f},"day-short-month-year-short-time-24":{...d,...y},"day-short-month-year-long-time":{...d,...m},"day-short-month-year-long-time-24":{...d,...v},"long-date":p,"long-date-short-time":{...p,...f},"long-date-short-time-24":{...p,...y},"long-date-long-time":{...p,...m},"long-date-long-time-24":{...p,...v},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":m},b=(0,i.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),C={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},_=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),M=_.find(({type:e})=>"month"===e)?.value.toLowerCase();function T(){const e=(0,r.lR)();return(e&&C[e])??(0,r.QC)()}"mart"!==M&&(C.bs="sr-Latn-CS");let x=new WeakMap;const A=w["short-date-short-time"];function D(e){return w[e]}function R(e){const{dateStyle:t,timeStyle:n,hour12:i,year:r,month:o}=e,s={};return t?s.dateStyle=t:r&&(s.year=r,s.month=o||void 0),n&&!s.year&&(s.timeStyle=n,s.hour12="auto"===i?void 0:"always"===i),s}function S(e,t=A){return function(e){let t=x.get(e);if(!t){const n=T(),i=z(e.timeZone??"system"),r={...e,timeZone:i};t=new Intl.DateTimeFormat(n,r),x.set(e,t)}return t}(t).format(e)}function Z(e,t=A){return S(new Date(e),{...t,...c,...l})}function E(e,t=A){return S(new Date(`1970-01-01T${e}Z`),{...t,...c,...a})}function O(e,t=A){const n=s.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return S(n.toJSDate(),t);const i=0===n.offset?"UTC":t.timeZone,r={...t,timeZone:i};return n.toLocaleString(r,{locale:T()})}function z(e){switch(e){case"system":return o.N;case o.L:return"UTC";default:return e}}(0,r.Ml)(()=>{x=new WeakMap}),n.d(t,["_v",0,b])},73444(e,t,n){n.d(t,{JK:()=>l,Ml:()=>g,QC:()=>h,lR:()=>u,oQ:()=>f});var i=n(36563);let r;n(44208);const o=globalThis.esriConfig?.locale,s=globalThis.document?.documentElement;function a(){const e=s?.getAttribute("lang"),t=globalThis.navigator?.language;return o??e??t??"en"}function l(){return void 0===r&&(r=a()),r}const c=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(e=l()){return d(e)?.language}function h(e=l()){const t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=l()){return c.exec(e)?.groups}const p=[];function f(e){return p.push(e),(0,i.hA)(()=>{p.splice(p.indexOf(e),1)})}new Map;const m=[];function g(e){return m.push(e),(0,i.hA)(()=>m.splice(m.indexOf(e),1))}function y(){const e=a();r!==e&&([...m].forEach(t=>t(e)),r=e,[...p].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),s&&new MutationObserver(()=>{y()}).observe(s,{attributeFilter:["lang"]})},4146(e,t,n){n.d(t,{A:()=>v});var i=n(32198),r=n(11254),o=n(49186),s=n(65529),a=n(4902),l=n(92474),c=n(53966),u=n(17676),h=n(84952),d=n(91429),p=n(5443),f=n(16930),m=n(92602),g=n(79677);let y=0,v=class extends((0,s.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new p.A(-180,-90,180,90,f.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+y++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([n.e(812),n.e(7982)]).then(n.bind(n,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([n.e(9917),n.e(812),n.e(8559)]).then(n.bind(n,45613));try{return await i(t)}catch(e){const n=t?.portalItem,i=n?.id||"unset",r=n?.portal?.url||m.A.portalUrl;throw c.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+r+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,u.zf)(e)||c.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,h.An)(this.url)}createLayerView(e,t){return Promise.reject(new o.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,r.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,d.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,i.Cg)([(0,d.MZ)({type:p.A})],v.prototype,"fullExtent",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i.Cg)([(0,d.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i.Cg)([(0,d.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,d.MZ)({type:f.A})],v.prototype,"spatialReference",void 0),(0,i.Cg)([(0,d.MZ)({type:String})],v.prototype,"title",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i.Cg)([(0,d.MZ)()],v.prototype,"url",void 0),(0,i.Cg)([(0,d.MZ)({type:g.A})],v.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i.Cg)([(0,d.$K)("esri.layers.Layer")],v)},63490(e,t,n){n.d(t,{Mr:()=>l,TH:()=>a});var i=n(32198),r=n(69540),o=n(25482),s=n(91429);let a=class extends((0,r.OU)(o.o)){constructor(){super(...arguments),this.url=null}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"lod",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"rasterFunction",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=(0,i.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],a);let l=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.constantElevation=null}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],l.prototype,"constantElevation",void 0),l=(0,i.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],l),n.d(t,["E1",0,e=>null!=e&&"number"==typeof e.constantElevation])},23281(e,t,n){n.d(t,{eR:()=>_,Qv:()=>S,fs:()=>x,Yp:()=>Z,o:()=>E,RR:()=>M,l6:()=>T});var i=n(66552),r=(n(86211),n(28735),n(32198)),o=n(69540),s=n(25482),a=n(91429),l=n(69622),c=n(21325);let u=class extends l.A{set horizontalWKID(e){e?(0,c.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,c.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:n,radialDistortionCoefficients:i,tangentialDistortionCoefficients:r}=this;return e?.length>1&&!Number.isNaN(t)&&n?.length>1&&i?.length>1&&r?.length>1}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"horizontalWKID",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"verticalWKID",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"z",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"type",void 0),u=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientation")],u);const h=u;let d=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:n,x:i,y:r,z:o,heading:s,pitch:a,roll:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,f=[e,t,n,i,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>f.push(e)),f.push(u),h?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"heading",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"pitch",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"roll",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"z",void 0),d=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],d);const p=d;let f=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:n,ellipsoidRadius:i,squaredEccentricity:r,properties:o}=this,s=`${o}`.split("|");return s.splice(1,1),`${e}|${t}|${n}|${i}|${r}|${s.join("|")}`}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],f.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"latitude",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"longitude",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"ellipsoidRadius",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"squaredEccentricity",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],f.prototype,"properties",void 0),f=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],f);const m=f;let g=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:n,x:i,y:r,z:o,omega:s,phi:a,kappa:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,f=[e,t,n,i,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>f.push(e)),f.push(u),h?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e))),f.map(e=>isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],g.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"omega",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"phi",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"kappa",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"z",void 0),g=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],g);const y=g;let v=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:n,radialDistortionCoefficients:i,tangentialDistortionCoefficients:r}=this;return e?.length>1||!Number.isNaN(t)||n?.length>1||i?.length>1||r?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:n,x:i,y:r,z:o,yaw:s,pitch:a,roll:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,f=[e,t,n,i,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>f.push(e)),f.push(u),h?.forEach(e=>f.push(e)),h?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"yaw",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],v);const w=v,b=new Map;b.set("2",{desc:"Using Omega Phi Kappa",constructor:y}),b.set("1",{desc:"Using Heading, Pitch and Roll",constructor:p}),b.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:w}),b.set("4",{desc:"Using Local Tangent Plane",constructor:m});var C=n(63490);function _(e,t,n){return e?(0,C.E1)(e)?new C.Mr(e):function(e,t,n){let{url:i}=e;return i?(i=function(e,t,n){return t&&(e=`${t}${e}`),n&&(e+=`${n}`),e}(i,t,n),new C.TH({...e,url:i})):null}(e,t,n):e}const M=new i.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),T=new i.J({Feet:"feet",Meter:"meter"}),x=new i.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),A=new Map;A.set("1",function(e){const[t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:n,x:i,y:r,z:o,heading:s,pitch:a,roll:l,...R([c,u,h,d,p,f],[g,y],[v,w,b],[C,_],m)}}),A.set("3",function(e){const[t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:n,x:i,y:r,z:o,yaw:s,pitch:a,roll:l,...R([c,u,h,d,p,f],[g,y],[v,w,b],[C,_],m)}}),A.set("2",function(e){const[t,n,i,r,o,s,a,l,c,u,h,d,p,f,m,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:n,x:i,y:r,z:o,omega:s,phi:a,kappa:l,...R([c,u,h,d,p,f],[g,y],[v,w,b],[C,_],m)}}),A.set("4",function(e){const[t,n,i,r,o,...s]=e.slice(1),a=A.get(o),l=b.get(o)?.constructor;return a&&l?{latitude:t,longitude:n,ellipsoidRadius:i,squaredEccentricity:r,properties:new l(a([o,"",...s]))}:null});const D=e=>{const t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function R(e,t,n,i,r){const o=D(e),s=D(t),a=D(n),l=D(i);return{affineTransformations:6===o?.length?o:void 0,focalLength:6===o?.length?parseFloat(r):void 0,principalOffsetPoint:2!==s?.length?[0,0]:s,radialDistortionCoefficients:3!==a?.length?[0,0,0]:a,tangentialDistortionCoefficients:2!==l?.length?[0,0]:l}}function S(e){return Array.isArray(e)&&e?.length>5&&!e.some(isNaN)}function Z(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}function E(e,t,n){const i=function(e,t){return e?.length?e.map(({field:e,order:n})=>{const i=t.find(t=>t.name.toLowerCase()===e.toLowerCase());return i?{fieldName:i.name,sortOrder:"desc"===n?.toLowerCase()?"desc":"asc"}:null}).filter(e=>null!=e):null}(n,t);if(i?.length)return i;if(!e){const e=t.find(e=>e.name.toLocaleLowerCase()==="sequenceorder".toLocaleLowerCase());return e?[{fieldName:e.name,sortOrder:"asc"}]:null}const r=t.find(t=>t.name.toLowerCase()===e.trim().toLowerCase());return r?[{fieldName:r.name,sortOrder:"asc"}]:null}},39357(e,t,n){n.d(t,{A:()=>a});var i,r=n(32198),o=n(25482),s=n(91429);let a=i=class extends o.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=i=(0,r.Cg)([(0,s.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,n){n.d(t,{A:()=>u});var i,r=n(32198),o=n(4718),s=n(91429),a=n(39357),l=n(76357),c=n(93223);let u=class extends l.A{static{i=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some(e=>(String(e.code)===n&&(t=e.name),!!t))}return t}clone(){return new i({codedValues:(0,o.o8)(this.codedValues),name:this.name})}};(0,r.Cg)([(0,s.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],u.prototype,"codedValues",void 0),(0,r.Cg)([(0,c.e)({codedValue:"coded-value"})],u.prototype,"type",void 0),u=i=(0,r.Cg)([(0,s.$K)("esri.layers.support.CodedValueDomain")],u)},76357(e,t,n){n.d(t,{A:()=>c});var i=n(32198),r=n(66552),o=n(25482),s=n(91429),a=n(93223);const l=new r.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends o.o{constructor(e){super(e),this.name=null,this.type=null}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,a.e)(l),(0,s.MZ)({json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,i.Cg)([(0,s.$K)("esri.layers.support.Domain")],c)},90091(e,t,n){n.d(t,{createSampler:()=>S,query:()=>R});var i=n(60999),r=n(49186),o=n(97768),s=n(17676),a=n(86211),l=n(99917),c=n(19419),u=n(4576),h=n(72802);class d{constructor(e,t){this.layer=e,this.parameters=t}}class p extends d{constructor(e,t,n){super(e,n),this.outSpatialReference=t,this.type="geometry"}selectTilesAtLOD(e){if(e<0)this.geometry.coordinates.forEach(e=>e.tile=null);else{const{tileInfo:t,tilemapCache:n}=this.layer,i=g(t,n)[e].level;this.geometry.coordinates.forEach(e=>e.tile=t.tileAt(i,e.x,e.y))}}allElevationTilesFetched(){return!this.geometry.coordinates.some(e=>!e.elevationTile)}clearElevationTiles(){for(const e of this.geometry.coordinates)e.elevationTile!==this.outsideExtentTile&&(e.elevationTile=null)}populateElevationTiles(e){for(const t of this.geometry.coordinates)!t.elevationTile&&t.tile?.id&&(t.elevationTile=e[t.tile.id])}remapTiles(e){for(const t of this.geometry.coordinates){const n=t.tile?.id;t.tile=n?e[n]:null}}getTilesToFetch(){return(0,u.Am)(this.geometry.coordinates.filter(({tile:e,elevationTile:t})=>e?.id&&!t),(e,t)=>e.tile?.id===t.tile?.id).map(({tile:e})=>e)}forEachTileToFetch(e){for(const t of this.geometry.coordinates)t.tile&&!t.elevationTile&&e(t.tile,()=>t.tile=null)}}class f extends d{constructor(e,t,n,i){super(e,n),this.maskExtents=i,this.type="extent",this.elevationTiles=[],this._candidateTiles=[],this._fetchedCandidates=new Set,this.extent=t.clone().intersection(e.fullExtent)}selectTilesAtLOD(e,t){const n=this._maximumLodForRequests(t),i=Math.min(n,e);i<0?this._candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(i)}_maximumLodForRequests(e){const{tileInfo:t,tilemapCache:n}=this.layer,i=g(t,n);if(!e)return i.length-1;const r=this.extent;if(null==r)return-1;for(let n=i.length-1;n>=0;n--){const o=i[n],s=o.resolution*t.size[0],a=o.resolution*t.size[1];if(Math.ceil(r.width/s)*Math.ceil(r.height/a)<=e)return n}return-1}allElevationTilesFetched(){return this._candidateTiles.length===this.elevationTiles.length}clearElevationTiles(){this.elevationTiles.length=0,this._fetchedCandidates.clear()}populateElevationTiles(e){for(const t of this._candidateTiles){const n=t.id&&e[t.id];n&&(this._fetchedCandidates.add(t),this.elevationTiles.push(n))}}remapTiles(e){this._candidateTiles=y(this._candidateTiles.map(t=>e[t.id]))}getTilesToFetch(){return this._candidateTiles}forEachTileToFetch(e,t){const n=this._candidateTiles;this._candidateTiles=[],n.forEach(n=>{if(this._fetchedCandidates.has(n))return void t?.(n);let i=!1;e(n,()=>i=!0),i?t?.(n):this._candidateTiles.push(n)}),this._candidateTiles=y(this._candidateTiles,t)}_selectCandidateTilesCoveringExtentAt(e){this._candidateTiles.length=0;const t=this.extent;if(null==t)return;const{tileInfo:n,tilemapCache:i}=this.layer,r=g(n,i)[e],o=n.tileAt(r.level,t.xmin,t.ymin),s=o.extent,a=r.resolution*n.size[0],l=r.resolution*n.size[1],c=Math.ceil((t.xmax-s[0])/a),u=Math.ceil((t.ymax-s[1])/l);for(let e=0;e<u;e++)for(let t=0;t<c;t++){const i=new h.U(o.level,o.row-e,o.col+t);n.updateTileInfo(i),this._tileIsMasked(i)||this._candidateTiles.push(i)}}_tileIsMasked(e){return this.maskExtents?.some(t=>(0,c.gR)(t,e.extent))??!1}}function m(e){return null!=e?.tileInfo}function g(e,t){const n=e.lods;if(m(t)){const{effectiveMinLOD:e,effectiveMaxLOD:i}=t;return n.filter(t=>t.level>=e&&t.level<=i)}return n}function y(e,t){const n={},i=[];for(const r of e){const e=r.id;e&&!n[e]?(n[e]=r,i.push(r)):t?.(r)}const r=i.sort((e,t)=>e.level-t.level);return r.filter((e,n)=>{for(let i=0;i<n;i++){const n=r[i].extent;if(n&&(0,c.gR)(n,e.extent))return t?.(e),!1}return!0})}class v{constructor(e,t){this.data=e,this.safeWidth=.99999999*(e.width-1),this.dx=(e.width-1)/(t[2]-t[0]),this.dy=(e.width-1)/(t[3]-t[1]),this.x0=t[0],this.y1=t[3]}}class w{constructor(e,t=null){if(this.key=e,null!=t){const n=e.extent;this._samplerData=new v(t,n)}}get zmin(){return null!=this._samplerData?this._samplerData.data.minValue:0}get zmax(){return null!=this._samplerData?this._samplerData.data.maxValue:0}get hasNoDataValues(){return!!this._samplerData?.data.hasNoDataValues}sample(e,t){if(null==this._samplerData)return;const{safeWidth:n,data:i,dx:r,dy:o,y1:s,x0:a}=this._samplerData,{width:l,values:c,noDataValue:u}=i,h=b(o*(s-t),0,n),d=b(r*(e-a),0,n),p=Math.floor(h),f=Math.floor(d),m=p*l+f,g=m+l,y=c[m],v=c[g],w=c[m+1],C=c[g+1];if(y!==u&&v!==u&&w!==u&&C!==u){const e=d-f,t=y+(w-y)*e;return t+(v+(C-v)*e-t)*(h-p)}}}function b(e,t,n){return e<t?t:e>n?n:e}var C=n(87378),_=n(48526),M=n(86738),T=n(82799);class x{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){const t=new x(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,l.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});const n=new _.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),i=(0,l.project)(n,e);if(!i)return null;const r=this.coordinates.map((e,t)=>{const n=e.clone(),r=i.points[t];return n.x=r[0],n.y=r[1],n}),o=this.clone(r);return o.spatialReference=e,o}projectSync(e){if(this.spatialReference.equals(e))return this.clone();const t=new _.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),n=(0,l.project)(t,e);if(!n)return null;const i=this.coordinates.map((e,t)=>{const i=e.clone(),r=n.points[t];return i.x=r[0],i.y=r[1],i}),r=this.clone(i);return r.spatialReference=e,r}static fromGeometry(e){const t=new x(e);if(e instanceof x)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,n)=>{const i=e.clone(t);return i.spatialReference=n,i},t;switch(e.type){case"point":{const n=e,{hasZ:i,hasM:r}=n;return t.coordinates=i&&r?[new A(n.x,n.y,n.z,n.m)]:i?[new A(n.x,n.y,n.z)]:r?[new A(n.x,n.y,null,n.m)]:[new A(n.x,n.y)],t._exporter=(t,n)=>e.hasM?new M.A(t[0].x,t[0].y,t[0].z,t[0].m,n):new M.A(t[0].x,t[0].y,t[0].z,n),t}case"multipoint":{const n=e,{hasZ:i,hasM:r}=n;return t.coordinates=i&&r?n.points.map(e=>new A(e[0],e[1],e[2],e[3])):i?n.points.map(e=>new A(e[0],e[1],e[2])):r?n.points.map(e=>new A(e[0],e[1],null,e[2])):n.points.map(e=>new A(e[0],e[1])),t._exporter=(t,n)=>e.hasM?new _.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:n}):new _.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:n}),t}case"polyline":{const n=e,i=[],r=[],{hasZ:o,hasM:s}=e;let a=0;for(const e of n.paths)if(r.push([a,a+e.length]),a+=e.length,o&&s)for(const t of e)i.push(new A(t[0],t[1],t[2],t[3]));else if(o)for(const t of e)i.push(new A(t[0],t[1],t[2]));else if(s)for(const t of e)i.push(new A(t[0],t[1],null,t[2]));else for(const t of e)i.push(new A(t[0],t[1]));return t.coordinates=i,t._exporter=(t,n)=>{const i=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),o=r.map(e=>i.slice(e[0],e[1]));return new T.A({paths:o,hasM:e.hasM,hasZ:!0,spatialReference:n})},t}}}}class A{constructor(e,t,n=null,i=null,r=null,o=null){this.x=e,this.y=t,this.z=n,this.m=i,this.tile=r,this.elevationTile=o}clone(){return new A(this.x,this.y,this.z,this.m)}}var D=n(57984);async function R(e,t,n){if(!e)throw new r.A(L,"Elevation queries require an elevation layer to fetch tiles from");if(!t||!(t instanceof x)&&"point"!==t.type&&"multipoint"!==t.type&&"polyline"!==t.type)throw new r.A("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");const i={...N,...n},s=i.signal;if("integrated-mesh-3dtiles"===e.type){const r=x.fromGeometry(t);if(e.queryElevationCallback&&e.replacesTerrain){const o=12.9*(n?.minDemResolution||0)+.71,a=await e.queryElevationCallback(r,{signal:s,maxGeometricError:o}),l=r.coordinates.map(()=>({demResolution:1,source:e})),c=await a.project(t.spatialReference,s);if(c){if(void 0!==i.noDataValue&&i.noDataValue!==Number.MAX_VALUE)for(const e of c.coordinates)e.z===Number.MAX_VALUE&&(e.z=i.noDataValue);return{geometry:c.export(),noDataValue:i.noDataValue??Number.MAX_VALUE,sampleInfo:l}}}const o=r.coordinates.map(()=>({demResolution:-1,source:e}));return{geometry:r.export(),noDataValue:Number.MAX_VALUE,sampleInfo:o}}const c=new p(e,t.spatialReference,i);return await e.load({signal:s}),await async function(e,t,n){let i;const o=e.layer.tileInfo.spatialReference;if(t instanceof x?i=await t.project(o,n):(await(0,l.initializeProjection)([{source:t.spatialReference,dest:o}],{signal:n}),i=(0,l.project)(t,o)),!i)throw new r.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${t.spatialReference.wkid}' on an elevation service in '${o.wkid}'`);e.geometry=x.fromGeometry(i)}(c,t,s),await O(c,s),await P(c,s),function(e){e.geometry.coordinates.forEach(t=>{const n=t.elevationTile;let i=e.parameters.noDataValue;if(n){const e=n.sample(t.x,t.y);null==e?t.elevationTile=null:i=e}t.z=i})}(c),async function(e,t){const n=await e.geometry.project(e.outSpatialReference,t);(0,o.Lw)(n);const i={geometry:n.export(),noDataValue:e.parameters.noDataValue};return e.parameters.returnSampleInfo&&(i.sampleInfo=function(e){const t=e.layer.tileInfo,n=(0,a.GA)(t.spatialReference);return e.geometry.coordinates.map(i=>{let r=-1;return i.elevationTile&&i.elevationTile!==e.outsideExtentTile&&(r=t.lodAt(i.elevationTile.key.level).resolution*n),{demResolution:r,source:-1===r?void 0:e.layer}})}(e)),e.geometry.coordinates.forEach(e=>{e.tile=null,e.elevationTile=null}),i}(c,s)}async function S(e,t,n){if(e=Array.isArray(e)?e:[e],0===(e=n?.ignoreInvisibleLayers?e.filter(e=>e.visible):e.slice()).length)throw new r.A(L,"Elevation queries require at least one elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new r.A("elevation-query:invalid-extent","Invalid or undefined extent");const i={...N,...n,returnSampleInfo:!0},o=Z(e[e.length-1],t,i);return 1===e.length?o:E(e,t,await o,i)}async function Z(e,t,n,i){const r=n.signal;await e.load({signal:r});const o=t.spatialReference,s=e.tileInfo.spatialReference;o.equals(s)||(await(0,l.initializeProjection)([{source:o,dest:s}],{signal:r}),t=(0,l.project)(t,s));const a=new f(e,t,n,i);await O(a,r),await P(a,r);const c=a.elevationTiles,u=a.layer.tileInfo,h=a.parameters.noDataValue;return new D.C({noDataValue:h,tiles:c,tileInfo:u})}async function E(e,t,n,i){if(e.pop(),!e.length)return n;const r=n.samplers.filter(e=>!e.tile.hasNoDataValues).map(e=>(0,c.VY)(e.extent)),o=await Z(e[e.length-1],t,i,r);if(0===o.samplers.length)return n;const s=n.samplers.concat(o.samplers),a=i.noDataValue;return E(e,t,new D.C({samplers:s,noDataValue:a}),i)}async function O(e,t){"geometry"===e.type&&function(e){if(null==e.layer.fullExtent)return;const t=new w(new h.U(-1,-1,-1));t.sample=()=>e.parameters.noDataValue,e.outsideExtentTile=t;const n=e.layer.fullExtent;e.geometry.coordinates.forEach(e=>{const i=e.x,r=e.y;(i<n.xmin||i>n.xmax||r<n.ymin||r>n.ymax)&&(e.elevationTile=t)})}(e);const n=e.parameters.demResolution;if("number"==typeof n)!function(e,t){const n=function(e,t){const{tileInfo:n,tilemapCache:i}=e.layer,r=t/(0,a.GA)(n.spatialReference),o=g(n,i);let s=o[0],l=0;for(let e=1;e<o.length;e++){const t=o[e];Math.abs(t.resolution-r)<Math.abs(s.resolution-r)&&(s=t,l=e)}return l}(e,t);e.selectTilesAtLOD(n)}(e,n);else if("finest-contiguous"===n)await async function(e,t){const{tileInfo:n,tilemapCache:i}=e.layer,r=I(n,i,e.parameters.minDemResolution);await z(e,r,t)}(e,t);else{if("auto"!==n)throw new r.A("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${n}', expected a number, "finest-contiguous" or "auto"`);await async function(e,t){(function(e){const{tileInfo:t,tilemapCache:n}=e.layer,i=I(t,n,e.parameters.minDemResolution);e.selectTilesAtLOD(i,e.parameters.maximumAutoTileRequests)})(e),function(e){const t=e.layer.tileInfo;let n=0;const i={},r=e=>{null!=e.id&&(e.id in i?i[e.id]++:(i[e.id]=1,n++))},o=e=>{if(null==e.id)return;const t=i[e.id];1===t?(delete i[e.id],n--):i[e.id]=t-1};e.forEachTileToFetch(r,o);let s=!0;for(;s&&(s=!1,e.forEachTileToFetch(i=>{n<=e.parameters.maximumAutoTileRequests||(o(i),t.upsampleTile(i)&&(s=!0),r(i))},o),s););}(e);const n=e.layer.tilemapCache;if(!n||m(n))return j(e,t);const r=e.getTilesToFetch(),o={},a=r.map(async e=>{const r=new h.U(0,0,0),a=await(0,i.Ke)(n.fetchAvailabilityUpsample(e.level,e.row,e.col,r,{signal:t}));!1!==a.ok?null!=e.id&&(o[e.id]=r):(0,s.QP)(a.error)});await(0,s.qr)(Promise.all(a),t),e.remapTiles(o)}(e,t)}}async function z(e,t,n){const i=e.layer;if(e.selectTilesAtLOD(t),t<0)return;const o=i.tilemapCache,a=e.getTilesToFetch();try{if(o&&!m(o))await(0,s.qr)(Promise.all(a.map(e=>o.fetchAvailability(e.level,e.row,e.col,{signal:n}))),n);else if(await P(e,n),!e.allElevationTilesFetched())throw e.clearElevationTiles(),new r.A("elevation-query:has-unavailable-tiles","Some elevation tiles are unavailable")}catch(i){(0,s.QP)(i),await z(e,t-1,n)}}async function j(e,t){const n=e.layer.tileInfo;await P(e,t);let i=!1;e.forEachTileToFetch((e,t)=>{n.upsampleTile(e)?i=!0:t()}),i&&await j(e,t)}function I(e,t,n=0){const i=g(e,t);let r=i.length-1;if(n>0){const t=n/(0,a.GA)(e.spatialReference),o=i.findIndex(e=>e.resolution<t);0===o?r=0:o>0&&(r=o-1)}return r}const N={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0,signal:null};async function P(e,t){const n=e.getTilesToFetch(),i={},r=e.parameters.cache,o=e.parameters.noDataValue,a={noDataValue:o,signal:t},l=n.map(async t=>{if(null==t.id)return;const n=`${e.layer.uid}:${t.id}:${o}`,s=r?.get(n),l=s??C.A.from(await e.layer.fetchTile(t.level,t.row,t.col,a));r?.put(n,l),i[t.id]=new w(t,l)});await(0,s.qr)(Promise.allSettled(l),t),e.populateElevationTiles(i)}const L="elevation-query:invalid-layer"},7236(e,t,n){n.d(t,{A:()=>c});var i=n(32198),r=n(65529),o=n(53966),s=n(91429),a=n(86738),l=n(28735);let c=class extends r.nJ{queryElevation(e){const t=this.projectIfRequired(e,this.spatialReference);if(!t)return null;switch(e.type){case"point":return function(e,t,n){return e.hasZ=!0,e.z=n.elevationAt(t.x,t.y),e}(e,t,this);case"polyline":return function(e,t,n){u.spatialReference=t.spatialReference;const i=e.hasM&&!e.hasZ;for(let r=0;r<e.paths.length;r++){const o=e.paths[r],s=t.paths[r];for(let e=0;e<o.length;e++){const t=o[e],r=s[e];u.x=r[0],u.y=r[1],i&&(t[3]=t[2]),t[2]=n.elevationAt(u.x,u.y)}}return e.hasZ=!0,e}(e,t,this);case"multipoint":return function(e,t,n){u.spatialReference=t.spatialReference;const i=e.hasM&&!e.hasZ;for(let r=0;r<e.points.length;r++){const o=e.points[r],s=t.points[r];u.x=s[0],u.y=s[1],i&&(o[3]=o[2]),o[2]=n.elevationAt(u.x,u.y)}return e.hasZ=!0,e}(e,t,this);default:return null}}projectIfRequired(e,t){if(null==e)return null;const n=e.spatialReference;if(n.equals(t))return e;const i=(0,l.Cv)(e,t);return i||o.A.getLogger(this).error(`Cannot project geometry spatial reference (wkid:${n.wkid}) to elevation sampler spatial reference (wkid:${t.wkid})`),i}};c=(0,i.Cg)([(0,s.$K)("esri.layers.support.ElevationSampler")],c);const u=new a.A},20437(e,t,n){n.d(t,{A:()=>f});var i,r=n(32198),o=n(66552),s=n(25482),a=n(91429),l=n(56507),c=n(8631),u=n(98453),h=n(36005),d=n(93223);const p=new o.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let f=class extends s.o{static{i=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?p.fromJSON(n.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,r.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,r.Cg)([(0,a.MZ)()],f.prototype,"description",void 0),(0,r.Cg)([(0,h.w)("description")],f.prototype,"readDescription",null),(0,r.Cg)([(0,a.MZ)({types:c.g,json:{read:{reader:c.r},write:!0}})],f.prototype,"domain",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,r.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,r.Cg)([(0,d.e)(u.m)],f.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)()],f.prototype,"valueType",void 0),(0,r.Cg)([(0,h.w)("valueType",["description"])],f.prototype,"readValueType",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=i=(0,r.Cg)([(0,a.$K)("esri.layers.support.Field")],f)},41628(e,t,n){n.d(t,{A:()=>l});var i,r=n(32198),o=n(91429),s=n(76357),a=n(93223);let l=class extends s.A{static{i=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new i({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r.Cg)([(0,o.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,r.Cg)([(0,o.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,r.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=i=(0,r.Cg)([(0,o.$K)("esri.layers.support.RangeDomain")],l)},57984(e,t,n){n.d(t,{C:()=>u});var i=n(32198),r=n(53966),o=n(86211),s=n(91429),a=n(16930),l=n(19419),c=n(7236);let u=class extends c.A{get spatialReference(){return this.extent.spatialReference}constructor(e){const t=e.noDataValue,n="tiles"in e?e.tiles.map(n=>new h({tile:n,tileInfo:e.tileInfo,noDataValue:t})):e.samplers;super({noDataValue:t,samplers:n});const i=n[0];if(i){this.extent=i.extent.clone();const{min:e,max:t}=i.demResolution;this.demResolution={min:e,max:t};for(let e=1;e<n.length;e++){const t=n[e];this.extent.union(t.extent),this.demResolution.min=Math.min(this.demResolution.min,t.demResolution.min),this.demResolution.max=Math.max(this.demResolution.max,t.demResolution.max)}}else{const t="tileInfo"in e?e.tileInfo:null;this.extent=(0,l.w1)((0,l.vt)(),t?.spatialReference??a.A.WGS84),this.demResolution={min:0,max:0}}}elevationAt(e,t){let n;for(const i of this.samplers)if(i.containsAt(e,t)&&(n=i.elevationAt(e,t),n!==i.noDataValue))return n;return null!=n?n:(r.A.getLogger(this).warn("#elevationAt()",`Point used to sample elevation (${e}, ${t}) is outside of the sampler`),this.noDataValue)}};(0,i.Cg)([(0,s.MZ)({constructOnly:!0})],u.prototype,"noDataValue",void 0),(0,i.Cg)([(0,s.MZ)({constructOnly:!0})],u.prototype,"samplers",void 0),u=(0,i.Cg)([(0,s.$K)("esri.layers.support.TileElevationSampler")],u);let h=class extends c.A{get spatialReference(){return this.extent.spatialReference}constructor(e){super(e);const t=e.tile.key.extent;this.extent=(0,l.w1)(t,e.tileInfo.spatialReference),this.extent.zmin=e.tile.zmin,this.extent.zmax=e.tile.zmax;const n=(0,o.GA)(e.tileInfo.spatialReference),i=e.tileInfo.lodAt(e.tile.key.level).resolution*n;this.demResolution={min:i,max:i}}contains(e){const t=this.projectIfRequired(e,this.spatialReference);return null!=t&&this.containsAt(t.x,t.y)}containsAt(e,t){return(0,l.Rj)(this.tile.key.extent,e,t)}elevationAt(e,t){return this.containsAt(e,t)?this.tile.sample(e,t)??this.noDataValue:this.noDataValue}};(0,i.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"tile",void 0),(0,i.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"noDataValue",void 0),(0,i.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"tileInfo",void 0),h=(0,i.Cg)([(0,s.$K)("esri.layers.support.TileElevationSampler.SingleTileElevationSampler")],h)},8631(e,t,n){n.d(t,{r:()=>d,g:()=>h});var i,r=n(53177),o=n(76357),s=n(32198),a=n(91429),l=n(93223);let c=class extends o.A{static{i=this}constructor(e){super(e),this.type="inherited"}clone(){return new i}};(0,s.Cg)([(0,l.e)({inherited:"inherited"})],c.prototype,"type",void 0),c=i=(0,s.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],c);var u=n(41628);const h={key:"type",base:o.A,typeMap:{range:u.A,"coded-value":r.A,inherited:c}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return u.A.fromJSON(e);case"codedValue":return r.A.fromJSON(e);case"inherited":return c.fromJSON(e)}return null}},98453(e,t,n){const i=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});n.d(t,["m",0,i])},77548(e,t,n){n.d(t,{Gh:()=>E,tk:()=>A,BR:()=>x,p2:()=>M,qd:()=>D,wI:()=>T,G$:()=>S,$x:()=>R,Ov:()=>w,cM:()=>d,UC:()=>p,Qz:()=>f,OP:()=>Z,TU:()=>v,F2:()=>m,XX:()=>y,Qi:()=>b,jy:()=>C});var i=n(70333),r=n(11254),o=n(7762),s=(n(84952),n(36563)),a=n(36708),l=n(4146);const c=new WeakMap;function u(e){return!e.destroyed&&(c.has(e)||e.addHandles([(0,a.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||u(t))},t=>c.set(e,t),a.pc),(0,s.hA)(()=>c.delete(e))]),c.get(e))}function h(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function d(e){return h(e,"knowledge-graph")&&"layers"in e}function p(e){return h(e,"knowledge-graph-sublayer")}function f(e){return h(e,"link-chart")&&"layers"in e}function m(e){return h(e,"subtype-group")&&"sublayers"in e}function g(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}n(16215);const y={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function w(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function b(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function C(e){return function(e){return h(e,"catalog-footprint")}(e)||function(e){return h(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return h(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function _(e){const t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!C(e))return;const n=t?.graphic,i="featureReduction"in e?e.featureReduction:null;if(n){if(n.isAggregate){const e=n.origin;return e&&"featureReductionProvider"in e&&i?_(i)?i:null:void 0}return e}return t?.checkFeatureReduction&&i?_(i)?i:null:e}async function T(e,t){const n=i.id?.findServerInfo(e);if(null!=n?.currentVersion)return n.owningSystemUrl||null;const o=e.toLowerCase().indexOf("/rest/services");if(-1===o)return null;const s=`${e.slice(0,o)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,r.A)(s,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function x(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function A(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function D(e){const t=new o.A;for(const n of e.allLayers.concat(e.allTables))u(n)||g(n)||"annotation-feature"===n.type||"dimension-feature"===n.type||("charts"in n&&t.push(n),"subtype-group"===n.type&&t.push(...n.sublayers));return t}function R(e,t){return null}function S(e){return null}function Z(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function E(e,t){if(!t||!Z(e))return;const n=(e.url,null);n&&(e.url=n)}},38969(e,t,n){n.d(t,{i:()=>r});var i=n(37955);function r(e,t){return new Promise((n,r)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?n():(t((0,i.Oo)(e,"canplay",n)),t((0,i.Oo)(e,"error",r)))})}},73133(e,t,n){const i=(0,n(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});n.d(t,["j",0,i])},7861(e,t,n){n.d(t,{L:()=>r});var i=n(11254);async function r(e,t){return(await(0,i.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}},16215(e,t,n){n.d(t,{S:()=>r});const i=Symbol("BasemapInstance");function r(e){return null!=e&&"object"==typeof e&&i in e}n.d(t,["Y",0,i])},79677(e,t,n){n.d(t,{A:()=>h});var i,r=n(32198),o=n(25482),s=n(88930),a=n(91429),l=(n(98623),n(10184)),c=n(36005),u=n(43937);let h=class extends o.o{static{i=this}static get allTime(){return d}static get empty(){return p}static fromArray(e){return new i({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,r=e.end?.getTime()??e.end;return t===i&&n===r}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let n=this.start;n&&(n=(0,s.lL)(n,new l.A({value:1,unit:e}),t));let r=this.end;if(r){const n=(0,s.lL)(r,new l.A({value:1,unit:e}),t);r=r.getTime()===n.getTime()?n:(0,s.S1)(n,1,e,t)}return new i({start:n,end:r})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,r=e.start?.getTime()??-1/0,o=e.end?.getTime()??1/0;let s,a;return r>=t&&r<=n?s=r:t>=r&&t<=o&&(s=t),n>=r&&n<=o?a=n:o>=t&&o<=n&&(a=o),null==s||null==a||isNaN(s)||isNaN(a)?i.empty:new i({start:s===-1/0?null:new Date(s),end:a===1/0?null:new Date(a)})}offset(e,t,n="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const r=new i,{start:o,end:a}=this;return null!=o&&(r.start=(0,s.S1)(o,e,t,n)),null!=a&&(r.end=(0,s.S1)(a,e,t,n)),r}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,n=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:n})}};(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,r.Cg)([(0,c.w)("end")],h.prototype,"readEnd",null),(0,r.Cg)([(0,u.K)("end")],h.prototype,"writeEnd",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,r.Cg)([(0,c.w)("start")],h.prototype,"readStart",null),(0,r.Cg)([(0,u.K)("start")],h.prototype,"writeStart",null),h=i=(0,r.Cg)([(0,a.$K)("esri.time.TimeExtent")],h);const d=new h,p=new h({start:void 0,end:void 0})},10184(e,t,n){n.d(t,{A:()=>u});var i=n(32198),r=n(69540),o=n(25482),s=n(88930),a=n(91429),l=n(73133),c=n(93223);let u=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,c.e)(l.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,i.Cg)([(0,a.$K)("esri.time.TimeInterval")],u)},32728(e,t,n){n.d(t,{YH:()=>s,nu:()=>a,wp:()=>o}),n(34727);var i=n(35522),r=n(51850);function o(e,t){const n=Math.sqrt(t[0]*t[0]+t[4]*t[4]+t[8]*t[8]),r=Math.sqrt(t[1]*t[1]+t[5]*t[5]+t[9]*t[9]),o=Math.sqrt(t[2]*t[2]+t[6]*t[6]+t[10]*t[10]);return(0,i.hZ)(e,n,r,o),e}function s(e,t,n){n=n||e;const r=(0,i.Om)(e,t);(0,i.hZ)(n,e[0]-r*t[0],e[1]-r*t[1],e[2]-r*t[2]),(0,i.S8)(n,n)}function a(e,t,n,o=(0,r.vt)()){const s=(0,i.Bw)(e),a=(0,i.Bw)(t),u=(0,i.Om)(e,t)/(s*a);if(u<.9999999999999999){const r=Math.acos(u),h=((1-n)*s+n*a)/Math.sin(r),d=h/s*Math.sin((1-n)*r),p=h/a*Math.sin(n*r);return(0,i.hs)(l,e,d),(0,i.hs)(c,t,p),(0,i.WQ)(o,l,c)}return(0,i.Cc)(o,e,t,n)}(0,r.vt)(),(0,r.vt)(),(0,r.vt)();const l=(0,r.vt)(),c=(0,r.vt)()},29420(e,t,n){n.r(t),n.d(t,{generateCombinationsPanoramicWorker:()=>x,generateCombinationsWorker:()=>T});var i=n(34727),r=n(17676);n(17799),n(69052),n(799),n(86211),n(18047),new Map,n(77690),n(29242),n(51850),n(37585),n(35522);var o=n(49186),s=(n(56507),n(86738),n(39829),n(82799),n(16930));n(34403),n(21325),n(99917),n(95624),n(89506),n(77085),n(40427),n(965),n(23914),n(4576),n(63490),n(87811);var a=n(53966),l=(n(44208),n(27921),n(5443));n(83276),n(19419),n(38732),n(87772),n(23281),n(90091),n(87378),n(22796),n(57984),n(87045),n(72802),n(7861);const c=[1920,1080],u={xmin:-150,ymin:1,xmax:20,ymax:80,spatialReference:{wkid:4326}},h=(s.A.fromJSON(u.spatialReference),.001);new l.A({xmin:u.xmin+h,ymin:u.ymin+h,xmax:u.xmax-h,ymax:u.ymax-h,spatialReference:u.spatialReference}),(0,i.KJ)(Math.acos(.05));var d=n(32198),p=n(97768),f=n(61893),m=n(10107),g=n(64108);let y=class extends f.Z{constructor(e){super(e),this.autoLoad=!1,this.customParameters=null,this.datasetFormat=null,this.url=null,this.rotation=null}destroy(){this._cache=(0,p.pR)(this._cache)}get layer(){return this._cache}get size(){if(!this._cache?.loaded||!this._cache.serviceRasterInfo)return;const{serviceRasterInfo:e}=this._cache;return[e.width,e.height]}async load(e){if(this._cache?.loaded)return await this._cache.load(e),{layer:this._cache,size:this.size};const{url:t,customParameters:i}=this;let o=this.datasetFormat;if(!t)throw new Error("URL is required to load NonPanoramicMedia.");const s=await n.e(7835).then(n.bind(n,97835));if((0,r.Te)(e),o||(o=s.guessExtensionFromURI(t)),!o){try{o=await s.getDatasetFormat(t)}catch(e){a.A.getLogger(this).warn("non-panoramic-media:dataset-format",e)}(0,r.Te)(e)}o??="UNKNOWN FORMAT",this.datasetFormat=o;const l=(await Promise.all([n.e(373),n.e(9235),n.e(3500),n.e(1003),n.e(2806),n.e(124)]).then(n.bind(n,90124))).default;(0,r.Te)(e),this._cache=new l({url:t,ioConfig:{skipExtensions:["aux.xml","jgw"],skipMapInfo:!0,datasetFormat:o},customParameters:i??void 0});const c=this._cache.load(e);return this.addResolvingPromise(c),await c,(0,r.Te)(e),{layer:this._cache,size:this.size}}};(0,d.Cg)([(0,m.MZ)()],y.prototype,"_cache",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"autoLoad",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"customParameters",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"datasetFormat",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"url",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"layer",null),(0,d.Cg)([(0,m.MZ)()],y.prototype,"rotation",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"size",null),y=(0,d.Cg)([(0,g.$)("esri.widgets.OrientedImageryViewer.support.NonPanoramicMedia")],y);var v=n(37955),w=n(38969);class b extends o.A{constructor(e,t,n){super(e,t,n),this.name="unknown",this.name=e}}const C=new Set(["JPG","JPEG","TIFF","TIF","MRF"]),_=new Set(["MRF","TIFF","TIF"]);let M=class extends f.Z{constructor(e){super(e),this._size=[0,0],this._cache=null,this.autoLoad=!1,this.cameraHeading=null,this.extension=null,this.imagePyramid=null,this.type="image",this.uiStrings={}}destroy(){this._cache=null}get horizonPitch(){const{matrix:e}=this;return e?(0,i.KJ)(Math.asin(-e[6])):0}get horizonRoll(){const{matrix:e}=this;return e?(0,i.KJ)(Math.atan(e[7]/e[8])):0}get horizonYaw(){const{matrix:e,cameraHeading:t}=this;return e?(0,i.KJ)(Math.atan2(e[3],e[0])):t?-t:0}get size(){return this._size}async load(e){const{guessExtensionFromURI:t}=await n.e(7835).then(n.bind(n,97835));if((0,r.Te)(e),"video"===this.type)return this.loadVideoMesh(e);let i=this.extension;if(i||(i=t(this.url)),!i||!C.has(i))throw new b("unsupported-format",this.uiStrings["unsupported-format"]??"Unsupported image format: {extension}",{datasetFormat:i??"UNKNOWN FORMAT"});return _.has(i)?this.loadOptimizedImageMesh(e):this.loadImageMesh(e)}async loadOptimizedImageMesh(e){const{loadMeshes:t,loadPyramid:i,loadRaster:o}=await Promise.all([n.e(6860),n.e(118),n.e(3494)]).then(n.bind(n,21060)),s=await o(this.url,e);(0,r.Te)(e),this.imagePyramid=await i(s,{pitch:this.horizonPitch,yaw:this.horizonYaw,roll:this.horizonRoll},e),(0,r.Te)(e);const a=this.imagePyramid.getLowResolutionTiles(),l=await t(a,e);return(0,r.Te)(e),this._size=this.imagePyramid.imageSize,{meshOrMeshes:l,size:this._size,tileKeys:a?.map(e=>e.key)}}async loadVideoMesh(e){const{createImageSphere:t}=await Promise.all([n.e(6860),n.e(118),n.e(3494)]).then(n.bind(n,21060));if((0,r.Te)(e),this._cache){const n=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:n,size:this._size}}const i=await this._resolveMedia(e);(0,r.Te)(e),this._cache=i.media,this._size=[...c];const o=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:o,size:this._size}}async loadImageMesh(e){const{createImageSphere:t}=await Promise.all([n.e(6860),n.e(118),n.e(3494)]).then(n.bind(n,21060));if((0,r.Te)(e),this._cache){const n=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:n,size:this._size}}const i=await this._resolveMedia(e);(0,r.Te)(e),this._cache=i.media;const o=i.mesh;return this._size=[i.media.width,i.media.height],{meshOrMeshes:o,size:this._size}}async _resolveMedia(e){const t=Promise.withResolvers(),i=(0,r.u7)(e?.signal,t.resolve),o="video"===this.type?document.createElement("video"):document.createElement("img");o.crossOrigin="anonymous",o.src=this.url;let s=null;const a="video"===this.type?(0,w.i)(o,this.addHandles):await new Promise((e,t)=>{s=[(0,v.on)(o,"error",e=>{t(e)}),(0,v.on)(o,"load",e)]}).finally(()=>{s?.forEach(e=>e.remove()),s=null}),l=Promise.race([a,t.promise]);this.addResolvingPromise(l);try{await l}finally{i?.remove()}(0,r.Te)(e);const c=o;if(!c)throw new b("unknown","Could not load media",{url:this.url});const{createImageSphere:u}=await Promise.all([n.e(6860),n.e(118),n.e(3494)]).then(n.bind(n,21060));(0,r.Te)(e);const h=await u({data:o,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{media:c,mesh:h}}};function T(e){return function(e,t){const{cameraPitch:n,cameraRoll:i,cameraLocation:r}=e,{x:o,y:s,z:a,spatialReference:l}=r;if(t.every(e=>0===e)||!t||!t.length||!l)throw new Error("Invalid parameters");const[c,u,,h,d]=t,p=[-h,0,h],f=[-d,0,d],m=[-c,0,c],g=[-u,0,u],y=[];for(const t of p)for(const r of f)for(const c of m)for(const u of m)for(const h of g){const d={...e};d.cameraPitch=n+t,d.cameraRoll=i+r,d.cameraLocation={x:o+c,y:s+u,z:a?a+h:0,spatialReference:{wkid:l.wkid}},y.push(d)}return y}(e.imageToWorldProps,e.accuracyParameters)}function x(e){return function(e,t){const{cameraHeading:n,cameraLocation:i}=e,{x:r,y:o,z:s,spatialReference:a}=i;if(!t||t.every(e=>0===e)||!t.length||!a)throw new Error("Invalid parameters");const[l,c,u]=t,h=u>0?[-u,0,u]:[],d=l>0?[-l,0,l]:[],p=c>0?[-c,0,c]:[],f=[];for(const t of h)for(const i of d)for(const l of d)for(const c of p){const u={...e};u.cameraHeading=n+t,u.cameraLocation={x:r+i,y:o+l,z:s?s+c:0,spatialReference:{wkid:a.wkid}},f.push(u)}return f}(e.imageToWorldProps,e.accuracyParameters)}(0,d.Cg)([(0,m.MZ)()],M.prototype,"_size",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"autoLoad",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"cameraHeading",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"extension",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"horizonPitch",null),(0,d.Cg)([(0,m.MZ)()],M.prototype,"horizonRoll",null),(0,d.Cg)([(0,m.MZ)()],M.prototype,"horizonYaw",null),(0,d.Cg)([(0,m.MZ)()],M.prototype,"id",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"imagePyramid",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"matrix",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"size",null),(0,d.Cg)([(0,m.MZ)()],M.prototype,"type",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"uiStrings",void 0),(0,d.Cg)([(0,m.MZ)()],M.prototype,"url",void 0),M=(0,d.Cg)([(0,g.$)("esri.widgets.PanoramicViewer.support.PanoramicMedia")],M),n(9093),n(91829),n(58083),n(79258),n(73354),n(28208),n(28735)},28208(e,t,n){var i=n(86738),r=n(16930);const o=new i.A({x:0,y:0,z:0,spatialReference:r.A.WebMercator});n.d(t,["NU",0,.3515625,"ZH",0,o])}}]);