@arcgis/core 6.0.0-next.36 → 6.0.0-next.37

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 (163) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{0202eb8c2b2865f99981.js → 00311d1b18d5952a014b.js} +1 -1
  3. package/assets/esri/core/workers/chunks/0b21d0e2e5a91c34a108.js +1 -0
  4. package/assets/esri/core/workers/chunks/{f717005e14a7e9141df7.js → 2050c844b5a29b1df28a.js} +1 -1
  5. package/assets/esri/core/workers/chunks/2c3612379111457c3221.js +1 -0
  6. package/assets/esri/core/workers/chunks/2f9072563194026e320e.js +1 -0
  7. package/assets/esri/core/workers/chunks/{d9a240a3c6bf85124474.js → 342a97974a78007b25e0.js} +1 -1
  8. package/assets/esri/core/workers/chunks/34467f7d84baffd772a3.js +1 -0
  9. package/assets/esri/core/workers/chunks/{4d18b48d4a282a0f341c.js → 427d929dc7f89b0a1ea9.js} +1 -1
  10. package/assets/esri/core/workers/chunks/432728c557be5dfa26b5.js +1 -0
  11. package/assets/esri/core/workers/chunks/46969f379623810b2eca.js +1 -0
  12. package/assets/esri/core/workers/chunks/592b5db1459c02cf6a0c.js +1 -0
  13. package/assets/esri/core/workers/chunks/6a21dc13a465757ba007.js +1 -0
  14. package/assets/esri/core/workers/chunks/{379db67f78161ebd5468.js → 7023651ed6398dcf8efb.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{90360c0bd053d3e3fd77.js → 7027a0e7bfabb3bb7fc2.js} +1 -1
  16. package/assets/esri/core/workers/chunks/78818c2a898444f7e890.js +1 -0
  17. package/assets/esri/core/workers/chunks/{40c2674dae73f0942751.js → 7d497df6e13162156342.js} +1 -1
  18. package/assets/esri/core/workers/chunks/8a3dfe997712dc2ddead.js +1 -0
  19. package/assets/esri/core/workers/chunks/{81bcc495e6eaf2cf7474.js → 8f82a0a6747f673a2a7e.js} +1 -1
  20. package/assets/esri/core/workers/chunks/9826baa3c15ea2062669.js +1 -0
  21. package/assets/esri/core/workers/chunks/{d3369ffed19f4c264dcd.js → 9ab0735e86cf8932bf9d.js} +1 -1
  22. package/assets/esri/core/workers/chunks/ab0ea4042f4e13874aed.js +1 -0
  23. package/assets/esri/core/workers/chunks/ab98ade3257360015d6c.js +1 -0
  24. package/assets/esri/core/workers/chunks/{796c6195b6bf59dcc9bd.js → b25a05c58b0fd0f6ac60.js} +1 -1
  25. package/assets/esri/core/workers/chunks/b90271ce38522bcf813b.js +1 -0
  26. package/assets/esri/core/workers/chunks/ba91df9835cdea7698a9.js +1 -0
  27. package/assets/esri/core/workers/chunks/bfe13ac9fa1aafb190a1.js +1 -0
  28. package/assets/esri/core/workers/chunks/ce0274847ccce6a1ac53.js +1 -0
  29. package/assets/esri/core/workers/chunks/cf2e5f827cea7d7319ce.js +1 -0
  30. package/assets/esri/core/workers/chunks/dae2036faa28dade2119.js +1 -0
  31. package/assets/esri/core/workers/chunks/{e8fb2ba7b7a4f0916325.js → eed4b90494a54f8b337b.js} +1 -1
  32. package/assets/esri/core/workers/chunks/fc77eb7683e708774168.js +1 -0
  33. package/chunks/Clouds.glsl.js +7 -11
  34. package/config.js +1 -1
  35. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  36. package/kernel.js +1 -1
  37. package/layers/BaseElevationLayer.js +1 -1
  38. package/layers/ElevationLayer.js +1 -1
  39. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  40. package/layers/IntegratedMeshLayer.d.ts +2 -0
  41. package/layers/IntegratedMeshLayer.js +1 -1
  42. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  43. package/layers/support/ElevationQuery.js +1 -1
  44. package/layers/video/VideoController.js +3 -3
  45. package/layers/video/types.d.ts +12 -0
  46. package/package.json +3 -3
  47. package/views/2d/engine/Bitmap.js +1 -1
  48. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  49. package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
  50. package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
  51. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  52. package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
  53. package/views/2d/engine/webgl/Overlay.js +1 -1
  54. package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
  55. package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
  56. package/views/2d/engine/webgl/VideoScreenRenderer.js +1 -1
  57. package/views/2d/engine/webgl/animations/store/AnimationStore.js +1 -1
  58. package/views/2d/engine/webgl/collisions/LabelStore.js +1 -1
  59. package/views/2d/engine/webgl/effects/highlight/HighlightGradient.js +1 -1
  60. package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
  61. package/views/2d/engine/webgl/shaderGraph/techniques/blend/BlendTechnique.js +1 -1
  62. package/views/2d/engine/webgl/shaderGraph/techniques/colorize/ColorizeTechnique.js +1 -1
  63. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityResources.js +1 -1
  64. package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +1 -1
  65. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapResources.js +1 -1
  66. package/views/2d/engine/webgl/shaderGraph/techniques/magnifier/MagnifierTechnique.js +1 -1
  67. package/views/2d/engine/webgl/shaderGraph/techniques/opacity/OpacityTechnique.js +1 -1
  68. package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
  69. package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterHighlightTechnique.js +1 -1
  70. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/textureUtils.js +1 -1
  71. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTexture.js +1 -1
  72. package/views/2d/engine/webgl/textureUtils.js +1 -1
  73. package/views/2d/layers/LayerView2D.js +1 -1
  74. package/views/2d/webglDeps.js +1 -1
  75. package/views/3d/GroundView3D.js +1 -1
  76. package/views/3d/input/SceneInputManager.js +1 -1
  77. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  78. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  79. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  80. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  81. package/views/3d/support/engineContent/line.js +1 -1
  82. package/views/3d/support/engineContent/marker.js +1 -1
  83. package/views/3d/support/flow/StreamlineResources3D.js +1 -1
  84. package/views/3d/support/flow/StreamlineResources3DOverlay.js +1 -1
  85. package/views/3d/support/flow/StreamlineResources3DShape.js +1 -1
  86. package/views/3d/support/flow/geometryUtils.js +1 -1
  87. package/views/3d/support/gaussianSplatting/GaussianSplatIntersectionHandler.js +1 -1
  88. package/views/3d/support/gaussianSplatting/GaussianSplatOrderTexture.js +1 -1
  89. package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
  90. package/views/3d/support/gaussianSplatting/GaussianTileBuilder.js +2 -0
  91. package/views/3d/support/gaussianSplatting/formatConstants.js +2 -0
  92. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  93. package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
  94. package/views/3d/terrain/OverlayRenderer.js +1 -1
  95. package/views/3d/terrain/TerrainRenderer.js +1 -1
  96. package/views/3d/terrain/TerrainSurface.js +1 -1
  97. package/views/3d/terrain/TileCompositor.js +1 -1
  98. package/views/3d/terrain/TileRenderer.js +1 -1
  99. package/views/3d/webgl/RenderNode.d.ts +1 -1
  100. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  101. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  102. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -1
  103. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatUnpacking.glsl.js +15 -11
  104. package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
  105. package/views/3d/webgl-engine/effects/atmosphere/MarsAtmosphere.js +1 -1
  106. package/views/3d/webgl-engine/effects/clouds/CloudsRenderer.js +1 -1
  107. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  108. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  109. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  110. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  111. package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
  112. package/views/3d/webgl-engine/lib/AttributeView.js +1 -1
  113. package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
  114. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  115. package/views/3d/webgl-engine/lib/DDSUtil.js +1 -1
  116. package/views/3d/webgl-engine/lib/DrapedHeatmapRenderer.js +1 -1
  117. package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
  118. package/views/3d/webgl-engine/lib/GaussianSplatRenderUtils.js +1 -1
  119. package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
  120. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  121. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBuffer.js +1 -1
  122. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBufferView.js +1 -1
  123. package/views/3d/webgl-engine/lib/VerticesView.js +2 -0
  124. package/views/3d/webgl-engine/lib/attributeViewUtils.js +1 -1
  125. package/views/3d/webgl-engine/lib/edgeRendering/strokes.js +1 -1
  126. package/views/3d/webgl-engine/lib/glUtil3D.js +1 -1
  127. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  128. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  129. package/views/3d/webgl-engine/materials/internal/WaterTextureRepository.js +1 -1
  130. package/views/3d/webgl-engine/materials/internal/lineMarkerBufferUtils.js +2 -0
  131. package/views/3d/webgl-engine/materials/internal/ribbonLineBufferUtils.js +2 -0
  132. package/views/3d/webgl-engine/materials/renderers/VaoRenderer.js +1 -1
  133. package/views/3d/webgl-engine/materials/stippleTextureRepository.js +1 -1
  134. package/views/draw/support/ManagedTooltipField.js +1 -1
  135. package/views/support/TextureCompressionHelper.js +1 -1
  136. package/views/support/imageReprojection.js +1 -1
  137. package/views/webgl/FramebufferObject.js +1 -1
  138. package/views/webgl/RenderingContext.js +1 -1
  139. package/views/webgl/Texture.js +1 -1
  140. package/views/webgl/rasterUtils.js +1 -1
  141. package/views/webgl/testSVGPremultipliedAlpha.js +1 -1
  142. package/views/webgl/textureUtils.js +1 -1
  143. package/widgets/ScaleRangeSlider/types.d.ts +3 -3
  144. package/assets/esri/core/workers/chunks/039d9bc5b5015012f811.js +0 -1
  145. package/assets/esri/core/workers/chunks/08140725277de5d2e41a.js +0 -1
  146. package/assets/esri/core/workers/chunks/16cda273927ab0a39544.js +0 -1
  147. package/assets/esri/core/workers/chunks/29c610ce1c81ebb84a6b.js +0 -1
  148. package/assets/esri/core/workers/chunks/3223f9fbc76ba9ef8d13.js +0 -1
  149. package/assets/esri/core/workers/chunks/3fdcc383bbd9cf0d274c.js +0 -1
  150. package/assets/esri/core/workers/chunks/46c290108a90518ef695.js +0 -1
  151. package/assets/esri/core/workers/chunks/48b8b57f559a53c6c513.js +0 -1
  152. package/assets/esri/core/workers/chunks/4a979fce1c971b614a18.js +0 -1
  153. package/assets/esri/core/workers/chunks/5bd1414220e42cb8ebcf.js +0 -1
  154. package/assets/esri/core/workers/chunks/5d781c2c6204cffffd0d.js +0 -1
  155. package/assets/esri/core/workers/chunks/723df53cfa0189837d01.js +0 -1
  156. package/assets/esri/core/workers/chunks/7400b8c454b47ee4fb3c.js +0 -1
  157. package/assets/esri/core/workers/chunks/7af4edc6e87d27b9d467.js +0 -1
  158. package/assets/esri/core/workers/chunks/990e96139b5a1dccb061.js +0 -1
  159. package/assets/esri/core/workers/chunks/a607541959169741a943.js +0 -1
  160. package/assets/esri/core/workers/chunks/aa779896fd9e5c341349.js +0 -1
  161. package/assets/esri/core/workers/chunks/c131e0dd180a4c10e12e.js +0 -1
  162. package/assets/esri/core/workers/chunks/f3b4159c0722df8ffe13.js +0 -1
  163. package/assets/esri/core/workers/chunks/f75eec2cbc541eec9712.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1333],{69540(e,t,i){var n=i(32198),r=i(69622),s=(i(44208),i(4718)),o=(i(53966),i(97768)),a=i(88620),l=i(64108);const u=Symbol("ClonableMixin"),h=e=>{var t;let i=e,r=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){let t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");let i=t.metadata,n=t.store,r={},l=new Map;for(let t in i){let o=i[t],a=n?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;let h=this[t],d=null;if("function"==typeof u)d=u(h,e);else if("reference"===u)d=h;else if(d=(0,s.TU)(h,e),null!=h&&null==d)continue;0===a?l.set(t,d):r[t]=d}let u=new(0,Object.getPrototypeOf(this).constructor)(r);if(l.size){let e=(0,a.oY)(u)?.store;if(e)for(let[t,i]of l)e.set(t,i,0)}return u}};return r=(0,n.Cg)([(0,l.$)("esri.core.Clonable")],r),r},d=h(r.A);i.d(t,["OU",0,h,"Pw",0,d])},66344(e,t,i){i.d(t,{q:()=>a});const n=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){return this._db.get(e.id+t)?.size??0}put(e,t,i,r,o){t=e.id+t;let a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==i&&this._notifyRemove(t,a.entry,a.size,0)),r>this._maxSize)return void this._notifyRemove(t,i,r,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return n||console.warn(`Refusing to cache entry with size ${r} for key ${t}`),void this._notifyRemove(t,i,0,0);let l=1+Math.max(o,-4)- -3;this._db.set(t,new s(i,r,l)),this._size+=r,e.size+=r,this._checkSize()}updateSize(e,t){t=e.id+t;let i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let n=i.entry.usedMemory;for(;n>this._maxSize;){let e=this._notifyRemove(t,i.entry,n,1);if(!(null!=e&&e>0))return void this._db.delete(t);n=e}i.size=n,this._size+=n,e.size+=n,this._checkSize()}pop(e,t){t=e.id+t;let i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;let i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){let i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){let e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=[];this._db.forEach((e,n)=>{let r=e.lifetime;i[r]=(i[r]||0)+e.size,this._clients.forEach(i=>{let{id:r,name:s}=i;if(n.startsWith(r)){let i=t[s]||0;t[s]=i+e.size}})});let n={};this._clients.forEach(e=>{let i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){let r=t[i]||0;t[i]=r,n[i]=Math.round(100*e.hitRate)+"%"}else n[i]="0%"});let r=Object.keys(t);r.sort((e,i)=>t[i]-t[e]),r.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+n[i]);for(let t=i.length-1;t>=0;--t){let n=i[t];n&&(e["Priority "+(t+-3-1)]=Math.round(n/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){let t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(let[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,n){let r=this._clients.get(e.split(o)[0])?.removeFunc,s=r?.(t,n,i);return"number"==typeof s?s:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){let i=t??this;if(i.size<=e)return;let n=t?.id,r=!0;for(;r;){r=!1;for(let[s,a]of this._db)if(0===a.lifetime&&(!n||s.startsWith(n))){let n=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,a,n),i.size<=.9*e)return;r||=this._db.has(s)}}for(let[r,s]of this._db)if(!n||r.startsWith(n)){let n=t??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,s,n),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);let n=this._notifyRemove(e,t.entry,t.size,1);null!=n&&n>0&&(this._size+=n,i&&(i.size+=n),t.lives=t.lifetime,t.size=n,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new r(0);class s{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new r(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},60999(e,t,i){i.d(t,{DZ:()=>m,Ke:()=>f,QA:()=>p,Tj:()=>h,UT:()=>y,aD:()=>_,jJ:()=>u});var n=i(32198),r=i(69622),s=i(97768),o=i(17676),a=i(10107),l=i(64108);function u(e,t,i){return(0,o.Lx)(e.map((e,n)=>t.apply(i,[e,n])))}async function h(e,t,i){return(await(0,o.Lx)(e.map((e,n)=>t.apply(i,[e,n])))).map(e=>e.value)}function d(e){return{ok:!0,value:e}}function c(e){return{ok:!1,error:e}}async function f(e){if(null==e)return{ok:!1,error:Error("no promise provided")};try{return d(await e)}catch(e){return c(e)}}async function m(e){try{return d(await e)}catch(e){return(0,o.QP)(e),c(e)}}function p(e){if(!0===e.ok)return e.value;throw e.error}function y(e,t){return new g(e,t)}let g=class extends r.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=d(e),this._cleanup()},e=>{this._result=c(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,a.MZ)()],g.prototype,"value",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"error",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"finished",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"promise",void 0),(0,n.Cg)([(0,a.MZ)()],g.prototype,"_result",void 0),g=(0,n.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g);class _{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});let t=await e;return{[Symbol.dispose]:t}}async run(e){let t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},67482(e,t,i){function n(e){return null!==r(e)}function r(e){return function(e){let t=s.exec(e);if(!t?.groups)return null;let i=t.groups,n=+i.year,r=i.month-1,o=+i.day,a=+(i.hours??"0"),l=+(i.minutes??"0"),u=+(i.seconds??"0");if(a>23||l>59||u>59)return null;let h,d=i.ms??"0",c=d?+d.padEnd(3,"0").slice(0,3):0;if(i.isUTC||!i.offsetSign)h=Date.UTC(n,r,o,a,l,u,c);else{let e=+i.offsetHours,t=+i.offsetMinutes;h=6e4*("+"===i.offsetSign?-1:1)*(60*e+t)+Date.UTC(n,r,o,a,l,u,c)}return Number.isNaN(h)?null:h}(e)??function(e){let t=new Date(e),i=t.getTime();return Number.isNaN(i)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?i:null}(e)??function(e){if(!o.test(e))return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}i.d(t,{C:()=>n,_:()=>r});const s=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},9093(e,t,i){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>r,vt:()=>n});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:n,fromValues:function(e,t,i,n,r,s,o,a,l,u,h,d,c,f,m,p){return[e,t,i,n,r,s,o,a,l,u,h,d,c,f,m,p]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["zK",0,s])},35522(e,t,i){i.d(t,{$A:()=>F,Bw:()=>s,C:()=>o,Cc:()=>I,DI:()=>v,Io:()=>_,Ln:()=>g,Om:()=>w,Qr:()=>d,Re:()=>u,S8:()=>S,T9:()=>p,WQ:()=>l,Z0:()=>T,_S:()=>f,aI:()=>E,ei:()=>A,fw:()=>C,gL:()=>z,hG:()=>x,hZ:()=>a,hs:()=>y,jk:()=>m,lw:()=>h,m3:()=>M,oW:()=>R,t2:()=>O,tn:()=>c,ze:()=>b});var n=i(51850),r=i(34304);function s(e){let t=e[0],i=e[1],n=e[2];return Math.sqrt(t*t+i*i+n*n)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,i,n){return e[0]=t,e[1]=i,e[2]=n,e}function l(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function u(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function h(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function d(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e}function c(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function f(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function m(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function p(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function y(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function g(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e[2]=t[2]+i[2]*n,e}function _(e,t){let i=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(i*i+n*n+r*r)}function x(e,t){let i=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2];return i*i+n*n+r*r}function M(e){let t=e[0],i=e[1],n=e[2];return t*t+i*i+n*n}function b(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function v(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function S(e,t=e){let i=t[0],n=t[1],r=t[2],s=i*i+n*n+r*r;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function w(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function F(e,t,i){let n=t[0],r=t[1],s=t[2],o=i[0],a=i[1],l=i[2];return e[0]=r*l-s*a,e[1]=s*o-n*l,e[2]=n*a-r*o,e}function I(e,t,i,n){let r=t[0],s=t[1],o=t[2];return e[0]=r+n*(i[0]-r),e[1]=s+n*(i[1]-s),e[2]=o+n*(i[2]-o),e}function T(e,t,i){let n=t[0],r=t[1],s=t[2];return e[0]=i[0]*n+i[4]*r+i[8]*s+i[12],e[1]=i[1]*n+i[5]*r+i[9]*s+i[13],e[2]=i[2]*n+i[6]*r+i[10]*s+i[14],e}function A(e,t,i){let n=t[0],r=t[1],s=t[2];return e[0]=n*i[0]+r*i[3]+s*i[6],e[1]=n*i[1]+r*i[4]+s*i[7],e[2]=n*i[2]+r*i[5]+s*i[8],e}function z(e,t,i){return C(e,t,i[0],i[1],i[2],i[3])}function C(e,t,i,n,r,s){let o=t[0],a=t[1],l=t[2],u=n*l-r*a,h=r*o-i*l,d=i*a-n*o,c=n*d-r*h,f=r*u-i*d,m=i*h-n*u,p=2*s;return e[0]=o+u*p+2*c,e[1]=a+h*p+2*f,e[2]=l+d*p+2*m,e}const N=(0,n.vt)(),B=(0,n.vt)();function O(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function E(e,t){if(e===t)return!0;let i=e[0],n=e[1],s=e[2],o=t[0],a=t[1],l=t[2],u=(0,r.FD)();return Math.abs(i-o)<=u*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function R(e,t,i){let n=i[0]-t[0],r=i[1]-t[1],s=i[2]-t[2],o=n*n+r*r+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=n*o,e[1]=r*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const D=u,L=h,P=d,Z=_,q=x,k=s,Y=M;Object.freeze(Object.defineProperty({__proto__:null,abs:c,add:l,angle:function(e,t){S(N,e),S(B,t);let i=w(N,B);return i>1?0:i<-1?Math.PI:Math.acos(i)},applyTranslation:function(e,t,i){return e[0]=t[0]+i[12],e[1]=t[1]+i[13],e[2]=t[2]+i[14],e},bezier:function(e,t,i,n,r,s){let o=1-s,a=o*o,l=s*s,u=a*o,h=3*s*a,d=3*l*o,c=l*s;return e[0]=t[0]*u+i[0]*h+n[0]*d+r[0]*c,e[1]=t[1]*u+i[1]*h+n[1]*d+r[1]*c,e[2]=t[2]*u+i[2]*h+n[2]*d+r[2]*c,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,i=1){return e[0]=Math.min(Math.max(e[0],t),i),e[1]=Math.min(Math.max(e[1],t),i),e[2]=Math.min(Math.max(e[2],t),i),e},copy:o,cross:F,crossAndNormalize:function(e,t,i){let n=t[0],r=t[1],s=t[2],o=i[0],a=i[1],l=i[2],u=r*l-s*a,h=s*o-n*l,d=n*a-r*o,c=Math.sqrt(u*u+h*h+d*d);return e[0]=u/c,e[1]=h/c,e[2]=d/c,e},direction:R,dist:Z,distance:_,div:P,divide:d,dot:w,equals:E,exactEquals:O,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,i,n,r,s){let o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),h=o*(3-2*s);return e[0]=t[0]*a+i[0]*l+n[0]*u+r[0]*h,e[1]=t[1]*a+i[1]*l+n[1]*u+r[1]*h,e[2]=t[2]*a+i[2]*l+n[2]*u+r[2]*h,e},inverse:v,len:k,length:s,lerp:I,max:p,min:m,mul:L,multiply:h,negate:b,normalize:S,random:function(e,t=1){let i=r.Ov,n=2*i()*Math.PI,s=2*i()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(n)*o,e[1]=Math.sin(n)*o,e[2]=s*t,e},rotateX:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[0],s[1]=r[1]*Math.cos(n)-r[2]*Math.sin(n),s[2]=r[1]*Math.sin(n)+r[2]*Math.cos(n),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateY:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[2]*Math.sin(n)+r[0]*Math.cos(n),s[1]=r[1],s[2]=r[2]*Math.cos(n)-r[0]*Math.sin(n),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateZ:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[0]*Math.cos(n)-r[1]*Math.sin(n),s[1]=r[0]*Math.sin(n)+r[1]*Math.cos(n),s[2]=r[2],e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:y,scaleAndAdd:g,scaleTo:function(e,t){return y(e,e,t/k(e))},set:a,sign:f,sqrDist:q,sqrLen:Y,squaredDistance:x,squaredLength:M,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:D,subtract:u,transformMat3:A,transformMat4:T,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:z,transformQuatValues:C},Symbol.toStringTag,{value:"Module"})),i.d(t,["Il",0,k,"jb",0,D,"lo",0,q,"uE",0,Y])},75503(e,t,i){i.d(t,{wq:()=>a});var n=i(4576),r=i(21818),s=(i(44208),i(15142)),o=i(11006);class a{constructor(e=9,t){this._compareMinX=c,this._compareMinY=f,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),b.prune(),v.prune(),S.prune(),w.prune()}all(e){l(this._data,e)}search(e,t){let i=this._data,n=this._toBBox;if(x(e,i))for(b.clear();i;){for(let r=0,s=i.children.length;r<s;r++){let s=i.children[r],o=i.leaf?n(s):s;x(e,o)&&(i.leaf?t(s):_(e,o)?l(s,t):b.push(s))}i=b.pop()}}collides(e){let t=this._data,i=this._toBBox;if(!x(e,t))return!1;for(b.clear();t;){for(let n=0,r=t.children.length;n<r;n++){let r=t.children[n],s=t.leaf?i(r):r;if(x(e,s)){if(t.leaf||_(e,s))return!0;b.push(r)}}t=b.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){let e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new T([]),this}remove(e){if(!e)return this;let t,i=this._data,s=null,o=0,a=!1,l=this._toBBox(e);for(S.clear(),w.clear();i||S.length>0;){if(i||(i=S.pop(),s=S.data[S.length-1],o=w.pop()??0,a=!0),i.leaf&&(t=(0,n.qh)(i.children,(0,r.z)(e),i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),S.push(i),this._condense(S),this;a||i.leaf||!_(i,l)?s?(o++,i=s.children[o],a=!1):i=null:(S.push(i),w.push(o),o=0,s=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,i,n){let r=i-t+1,s=this._maxEntries;if(r<=s){let n=new T(e.slice(t,i+1));return u(n,this._toBBox),n}n||(n=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(n-1)));let o=new A([]);o.height=n;let a=Math.ceil(r/s),l=a*Math.ceil(Math.sqrt(s));M(e,t,i,l,this._compareMinX);for(let r=t;r<=i;r+=l){let t=Math.min(r+l-1,i);M(e,r,t,a,this._compareMinY);for(let i=r;i<=t;i+=a){let r=Math.min(i+a-1,t);o.children.push(this._build(e,i,r,n-1))}}return u(o,this._toBBox),o}_insert(e,t,i){let n=this._toBBox,r=i?e:n(e);S.clear();let s=function(e,t,i,n){for(;n.push(t),!0!==t.leaf&&n.length-1!==i;){let i,n=1/0,r=1/0;for(let s=0,o=t.children.length;s<o;s++){let o=t.children[s],a=m(o),l=y(e,o)-a;l<r?(r=l,n=a<n?a:n,i=o):l===r&&a<n&&(n=a,i=o)}t=i||t.children[0]}return t}(r,this._data,t,S);for(s.children.push(e),d(s,r);t>=0&&S.data[t].children.length>this._maxEntries;)this._split(S,t),t--;!function(e,t,i){for(let n=i;n>=0;n--)d(t.data[n],e)}(r,S,t)}_split(e,t){let i=e.data[t],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);let s=this._chooseSplitIndex(i,r,n);if(!s)return;let o=i.children.splice(s,i.children.length-s),a=i.leaf?new T(o):new A(o);a.height=i.height,u(i,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this._data=new A([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,i){let n,r,s;n=r=1/0;for(let o=t;o<=i-t;o++){let t=h(e,0,o,this._toBBox),a=h(e,o,i,this._toBBox),l=g(t,a),u=m(t)+m(a);l<n?(n=l,s=o,r=u<r?u:r):l===n&&u<r&&(r=u,s=o)}return s}_chooseSplitAxis(e,t,i){let n=e.leaf?this._compareMinX:c,r=e.leaf?this._compareMinY:f;this._allDistMargin(e,t,i,n)<this._allDistMargin(e,t,i,r)&&e.children.sort(n)}_allDistMargin(e,t,i,n){e.children.sort(n);let r=this._toBBox,s=h(e,0,t,r),o=h(e,i-t,i,r),a=p(s)+p(o);for(let n=t;n<i-t;n++){let t=e.children[n];d(s,e.leaf?r(t):t),a+=p(s)}for(let n=i-t-1;n>=t;n--){let t=e.children[n];d(o,e.leaf?r(t):t),a+=p(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){let i=e.data[t];if(0===i.children.length)if(t>0){let r=e.data[t-1],s=r.children;s.splice((0,n.qh)(s,i,s.length,r.indexHint),1)}else this.clear();else u(i,this._toBBox)}}_initFormat(e){let t=["return a"," - b",";"];this._compareMinX=Function("a","b",t.join(e[0])),this._compareMinY=Function("a","b",t.join(e[1])),this._toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let i=e;for(v.clear();i;){if(!0===i.leaf)for(let e of i.children)t((0,r.z)(e));else v.pushArray(i.children);i=v.pop()??null}}function u(e,t){h(e,0,e.children.length,t,e)}function h(e,t,i,n,r){r||=new T([]),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=t;o<i;o++)s=e.children[o],d(r,e.leaf?n(s):s);return r}function d(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function c(e,t){return e.minX-t.minX}function f(e,t){return e.minY-t.minY}function m(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function p(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){let i=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,r-i)*Math.max(0,s-n)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function x(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function M(e,t,i,n,r){let s=[t,i];for(;s.length;){let t=s.pop(),i=s.pop();if(t-i<=n)continue;let a=i+Math.ceil((t-i)/n/2)*n;(0,o.q)(e,a,i,t,r),s.push(i,a,a,t)}}const b=new s.A,v=new s.A,S=new s.A,w=new s.A({deallocator:void 0});class F{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class I extends F{constructor(){super(...arguments),this.height=1,this.indexHint=new n.vW}}class T extends I{constructor(e){super(),this.children=e,this.leaf=!0}}class A extends I{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,i){i.d(t,{Qf:()=>l,Qh:()=>o,lM:()=>s,ro:()=>u,rq:()=>h});var n=i(44208),r=i(34275);function s(e){if(!e)return 0;let t=d;for(let i in e)e.hasOwnProperty(i)&&(t+=a(e[i],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return h(e,8);let i=c;for(let n=0;n<t;n++)i+=a(e[n]);return i}(e);let t=d;for(let i in e)e.hasOwnProperty(i)&&(t+=a(e[i]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?o(e):d;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+u(t),0)}function u(e,t=16){return e?(0,r.iu)(e)?e.byteLength+m:Array.isArray(e)?h(e,t):0:0}function h(e,t){return c+e.length*t}const d=32,c=16,f=(0,n.A)("ios")||!(0,n.A)("chrome")&&!(0,n.A)("opr")?8:4,m=145;i.d(t,["JY",0,f])},14607(e,t,i){i.d(t,{B:()=>u,GP:()=>a,qg:()=>h});var n=i(799),r=i(73444);const s={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,r.JK)()){let t=(e=e.toLowerCase())in s;if(!t){let i=e.split("-");i.length>1&&i[0]in s&&(e=i[0],t=!0),t||(e="en")}let[i,n,o="#,##0.###"]=s[e];return{decimal:i,group:n,pattern:o}}function a(e,t){let i=o((t={...t}).locale);t.customs=i;let n=t.pattern||i.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,i){i||={};let n=i.customs.group,r=i.customs.decimal,s=t.split(";"),o=s[0];if((t=s[+(e<0)]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw Error("currency notation not supported");if(t.includes("E"))throw Error("exponential notation not supported")}let a=l,u=o.match(a);if(!u)throw Error("unable to find a number expression in pattern: "+t);return!1===i.fractional&&(i.places=0),t.replace(a,function(e,t,i){i||={},!0===i.places&&(i.places=0),i.places===1/0&&(i.places=6);let n=t.split("."),r="string"==typeof i.places&&i.places.indexOf(","),s=i.places;r?s=i.places.slice(r+1):+s>=0||(s=(n[1]||[]).length),i.round<0||(e=Number(e.toFixed(Number(s))));let o=String(Math.abs(e)).split("."),a=o[1]||"";if(n[1]||i.places){r&&(i.places=i.places.slice(0,Math.max(0,r)));let e=void 0===i.places?n[1]&&n[1].lastIndexOf("0")+1:i.places;+e>a.length&&(o[1]=a.padEnd(Number(e),"0")),+s<a.length&&(o[1]=a.slice(0,Math.max(0,Number(s))))}else o[1]&&o.pop();let l=n[0].replace(",",""),u=l.indexOf("0");-1!==u&&(u=l.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),l.includes("#")||(o[0]=o[0].slice(-u)));let h,d,c=n[0].lastIndexOf(",");if(-1!==c){h=n[0].length-c-1;let e=n[0].slice(0,c);c=e.lastIndexOf(","),-1!==c&&(d=e.length-c-1)}let f=[];for(let e=o[0];e;){let t=e.length-h;f.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",d&&=void(h=d)}return o[0]=f.reverse().join(i.group||","),o.join(i.decimal||".")}(e,u[0],{decimal:r,group:n,places:i.places,round:i.round}))}(e,n,t)}const l=/[#0,]*[#0](?:\.0*#*)?/;function u(e){e||={};let t=o(e.locale),i=e.pattern||t.pattern,r=t.group,s=t.decimal,a=1;if(i.includes("%"))a/=100;else if(i.includes("‰"))a/=1e3;else if(i.includes("¤"))throw Error("currency notation not supported");let u=i.split(";");return 1===u.length&&u.push("-"+u[0]),{regexp:c(u,t=>(t="(?:"+(0,n.Cj)(t,".")+")").replace(l,t=>{let i={signed:!1,separator:e.strict?r:[r,""],fractional:e.fractional,decimal:s,exponent:!1},n=t.split("."),o=e.places;1===n.length&&1!==a&&(n[1]="###"),1===n.length||0===o?i.fractional=!1:(void 0===o&&(o=e.pattern?n[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(i.fractional=!0),!e.places&&+o<n[1].length&&(o+=","+n[1].length),i.places=o);let l=n[0].split(",");return l.length>1&&(i.groupSize=l.pop().length,l.length>1&&(i.groupSize2=l.pop().length)),"("+function(e){e||={},"places"in e||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),(!("fractional"in e)||String(e.places).startsWith("0"))&&(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);let t=d(e),i=c(e.fractional,t=>{let i="";return t&&0!==e.places&&(i="\\"+e.decimal,e.places===1/0?i="(?:"+i+"\\d+)?":i+="\\d{"+e.places+"}"),i},!0),n=c(e.exponent,t=>t?"([eE]"+d({signed:e.eSigned})+")":""),r=t+i;return i&&(r="(?:(?:"+r+")|(?:"+i+"))"),r+n}(i)+")"}),!0).replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:r,decimal:s,factor:a}}function h(e,t){let i=u(t),n=RegExp("^"+i.regexp+"$").exec(e);if(!n)return NaN;let r=n[1];if(!n[1]){if(!n[2])return NaN;r=n[2],i.factor*=-1}return r=r.replaceAll(RegExp("["+i.group+"\\s\\xa0]","g"),"").replace(i.decimal,"."),Number(r)*i.factor}function d(e){return e||={},"signed"in e||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",c(e.signed,e=>e?"[-+]":"",!0)+c(e.separator,t=>{if(!t)return"(?:\\d+)";" "===(t=(0,n.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");let i=e.groupSize,r=e.groupSize2;if(r){let e="(?:0|[1-9]\\d{0,"+(r-1)+"}(?:["+t+"]\\d{"+r+"})*["+t+"]\\d{"+i+"})";return i-r>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(i-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*)"},!0)}const c=(e,t,i)=>{if(!Array.isArray(e))return t(e);let n=[];for(let i=0;i<e.length;i++)n.push(t(e[i]));return f(n.join("|"),!!i)},f=(e,t)=>"("+(t?"?:":"")+e+")"},36708(e,t,i){i.d(t,{C_:()=>c,on:()=>d,wB:()=>l,z7:()=>u});var n=i(37955),r=i(36563),s=i(97768),o=i(17676),a=i(14012);function l(e,t,i={}){return h(e,t,i,f)}function u(e,t,i={}){return h(e,t,i,m)}function h(e,t,i={},n){let r=null,o=i.once?(e,i)=>{n(e)&&((0,s.xt)(r),t(e,i))}:(e,i)=>{n(e)&&t(e,i)};if(r=(0,a.Cn)(e,o,i.sync,i.equals),i.initial){let t=e();o(t,t)}return r}function d(e,t,i,o={}){let a=null,u=null,h=null;function d(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function c(e){o.once&&o.once&&(0,s.xt)(h),i(e)}let f=l(e,(e,i)=>{d(),(0,n.wb)(e)&&(a=e,u=(0,n.on)(e,t,c),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,r.hA)(()=>{f.remove(),d()}),h}function c(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());let n=e();if(t?.(n))return Promise.resolve(n);let a=null;function l(){a=(0,s.xt)(a)}return new Promise((n,s)=>{a=(0,r.vE)([(0,o.u7)(i,()=>{l(),s((0,o.NK)())}),h(e,e=>{l(),n(e)},{sync:!1,once:!0},t??f)])})}(e,m,t)}function f(e){return!0}function m(e){return!!e}i(80559),i.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},44794(e,t,i){i.d(t,{v:()=>a});var n=i(4718),r=i(62788),s=i(95488);class o{constructor(e,t){this._observable=new s.I,this._value=e,this._equalityFunction=t}get value(){return(0,r.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=n.gh){return new o(e,t)}},88930(e,t,i){i.d(t,{S1:()=>a,VW:()=>l,lL:()=>u,rb:()=>h,t:()=>d});var n=i(97770),r=(i(98623),i(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={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,i,s="system"){if("unknown"===i)return e;let o=new r.oh((0,n.wj)(s)),a=r.c9.fromJSDate(e,{zone:o}),l="decades"===i||"centuries"===i?"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"}}(i);return"decades"===i&&(t*=10),"centuries"===i&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,i="milliseconds"){let n=e.getTime(),r=d(t,i,"milliseconds");return new Date(n+r)}function u(e,t,i="system"){let{unit:s}=t,o=Math.max(1,Math.trunc(t.value)),a=new r.oh((0,n.wj)(i)),l=r.c9.fromJSDate(e,{zone:a}),u=e=>e-e%o;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{let e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*o,i=e.year-e.year%t;return e.set({year:i}).toJSDate()}case"unknown":return e}}function h(e){let t=s.exec(e);if(!t)return null;let{hh:i,mm:n,ss:r,ms:a}=t.groups;return Number(i)*o.hours+Number(n)*o.minutes+Number(r||0)*o.seconds+Number(a||0)}function d(e,t,i){return 0===e?0:e*o[t]/o[i]}},48526(e,t,i){i.d(t,{A:()=>y});var n,r=i(32198),s=i(4576),o=i(4718),a=i(91429),l=i(5443),u=i(91075),h=i(86738),d=i(16930),c=i(90634),f=i(47610),m=i(56993),p=i(43937);let y=n=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:i,hasZ:n,spatialReference:r}=e;switch(t??=[],t?.at(0)?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=d.A.WGS84,{...e,hasM:i,hasZ:n,points:t,spatialReference:r}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,c.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:i,hasZ:r}=this;return new n({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:i,hasZ:r})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,i=e.spatialReference;return!(null!=t!=(null!=i)||null!=t&&null!=i&&!t.equals(i))&&(0,s.aI)(this.points,e.points,f.v6)}addPoint(e){return(0,m.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],i={x:t[0],y:t[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(i.z=t[2],n=3),this.hasM&&(i.m=t[n]),new h.A(i)}removePoint(e){if(!this._validateInputs(e))return null;let t=new h.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)&&((0,m.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points")),this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,r.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,r.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=n=(0,r.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,i){i.d(t,{A:()=>m});var n,r=i(32198),s=i(4718),o=i(91429),a=i(5443),l=i(91075),u=i(86738),h=i(16930),d=i(90634),c=i(56993),f=i(43937);let m=n=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:i,hasZ:n,spatialReference:r}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=h.A.WGS84,{...e,hasM:i,hasZ:n,paths:t,spatialReference:r}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){let e=(0,d.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,i=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let n=[];for(let t=0,i=e.length;t<i;t++)n[t]=e[t].toArray();t[i]=n}else t[i]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new n;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let i=this.paths[e][t],n=this.hasZ,r=this.hasM;return n&&!r?new u.A(i[0],i[1],i[2],void 0,this.spatialReference):r&&!n?new u.A(i[0],i[1],void 0,i[2],this.spatialReference):n&&r?new u.A(i[0],i[1],i[2],i[3],this.spatialReference):new u.A(i[0],i[1],this.spatialReference)}insertPoint(e,t,i){return this._validateInputs(e,t,!0)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e].splice(t,0,i),this.notifyChange("paths")),this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],i=this.spatialReference,n=t.map(e=>new u.A(e,i));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;let i=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),i}setPoint(e,t,i){return this._validateInputs(e,t)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e][t]=i,this.notifyChange("paths")),this}_validateInputs(e,t,i=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let n=this.paths[e];if(i&&(t<0||t>n.length)||!i&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],m.prototype,"curvePaths",void 0),(0,r.Cg)([(0,f.K)("curvePaths")],m.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],m.prototype,"paths",void 0),(0,r.Cg)([(0,f.K)("paths")],m.prototype,"writePaths",null),m=n=(0,r.Cg)([(0,o.$K)("esri.geometry.Polyline")],m),m.prototype.toJSON.isDefaultToJSON=!0},4197(e,t,i){i.d(t,{Vj:()=>o,cj:()=>s,jh:()=>r});var n=i(9093);function r(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function s(e){return[...e]}function o(e){let t=(0,n.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},70328(e,t,i){i.d(t,{BI:()=>T,C:()=>o,DC:()=>c,Ej:()=>x,Ie:()=>F,Jt:()=>I,Lu:()=>b,Ne:()=>v,RF:()=>d,TF:()=>g,VL:()=>m,aI:()=>z,fA:()=>a,gE:()=>u,gX:()=>_,hZ:()=>w,iT:()=>f,is:()=>A,pg:()=>M,uJ:()=>y,vI:()=>S,vY:()=>l,vt:()=>s,w1:()=>h,yr:()=>p}),i(35522);var n=i(5443),r=(i(19419),i(4197));function s(e=N){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t){for(let i=0;i<6;i++)e[i]=t[i];return e}function a(e,t,i,n,r,o,a=s()){return a[0]=e,a[1]=t,a[2]=i,a[3]=n,a[4]=r,a[5]=o,a}function l(e,t=s()){return function(e,t,i,n=s()){return w(n,C),function(e,t,i=0,n=t.length/3){let r=e[0],s=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)r=Math.min(r,t[i+3*e]),s=Math.min(s,t[i+3*e+1]),o=Math.min(o,t[i+3*e+2]),a=Math.max(a,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=u}(n,e,t,i),n}(e,0,e.length/3,t)}function u(e,t=(0,r.jh)(24)){let[i,n,s,o,a,l]=e;return t[0]=i,t[1]=n,t[2]=s,t[3]=i,t[4]=n,t[5]=l,t[6]=i,t[7]=a,t[8]=s,t[9]=i,t[10]=a,t[11]=l,t[12]=o,t[13]=n,t[14]=s,t[15]=o,t[16]=n,t[17]=l,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function d(e,t,i=e){i[0]=Math.min(e[0],t[0]),i[1]=Math.min(e[1],t[1]),i[2]=Math.min(e[2],t[2]),i[3]=Math.max(e[3],t[3]),i[4]=Math.max(e[4],t[4]),i[5]=Math.max(e[5],t[5])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,[t,i,n]){!function(e,t,i,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],i),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],i),e[5]=Math.max(e[5],n)}(e,t,i,n)}function m(e){return e[0]>=e[3]?0:e[3]-e[0]}function p(e){return e[1]>=e[4]?0:e[4]-e[1]}function y(e){return e[2]>=e[5]?0:e[5]-e[2]}function g(e){let t=m(e),i=y(e),n=p(e);return t*t+i*i+n*n}function _(e,t=[0,0,0]){return t[0]=e[0]+m(e)/2,t[1]=e[1]+p(e)/2,t[2]=e[2]+y(e)/2,t}function x(e,t=[0,0,0]){return t[0]=m(e),t[1]=p(e),t[2]=y(e),t}function M(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function b(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function v(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function S(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function w(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function F(e){return e?w(e,C):s(C)}function I(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function T(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=-1/0,e[3]=n,e[4]=r,e[5]=1/0,e}function A(e){return 6===e.length}function z(e,t,i){if(null==e||null==t)return e===t;if(!A(e)||!A(t))return!1;if(i){for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],N=[0,0,0,0,0,0];s(),i.d(t,["qv",0,C,"v_",0,N])},46329(e,t,i){i.d(t,{y:()=>d});var n=i(49186),r=i(4305),s=i(513),o=i(50954),a=i(52006),l=i(49663),u=i(46068),h=i(59803);function d(e,t,i){if((0,a.Xq)(t))return(0,h.T)(e,t,i);if((0,a.n1)(t)){let s=(0,r.m_)(e,t,i)[0];if(null==s)throw new n.A("closestPointOnCurve:unexpected-error","Failed to find close point on bezier curve");return s}if((0,a.aO)(t)){let n=(0,o.pM)(e,t);return(0,s.fM)(n,i)}if((0,a.DA)(t)){let n=(0,l.io)(e,t);return(0,s.fM)(n,i)}let d=(0,u.SW)(e,t);return(0,u.pb)(d,i)}},60408(e,t,i){function n(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function r(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":r(e)?"esriGeometryMultipoint":null:null}function h(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function d(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}i.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>r,W0:()=>d,ZC:()=>n,fT:()=>s,uW:()=>l})},65864(e,t,i){i.d(t,{rS:()=>h,xD:()=>c});var n=i(5443),r=i(91075),s=i(48526),o=i(86738),a=i(39829),l=i(82799),u=i(60408);function h(e){return null==e?null:e instanceof r.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?n.A.fromJSON(e):null}const d={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function c(e){return e&&d[e]||null}},97770(e,t,i){i.d(t,{Ey:()=>C,F8:()=>z,J2:()=>F,Yq:()=>T,_m:()=>I,iS:()=>A,wj:()=>N});var n=i(66552),r=i(73444),s=i(98623),o=i(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},u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},f={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},p={...m,second:"numeric"},y={hourCycle:"h23"},g={...m,...y},_={...p,...y},x={"short-date":h,"short-date-short-time":{...h,...m},"short-date-short-time-24":{...h,...g},"short-date-long-time":{...h,...p},"short-date-long-time-24":{...h,..._},"short-date-le":h,"short-date-le-short-time":{...h,...m},"short-date-le-short-time-24":{...h,...g},"short-date-le-long-time":{...h,...p},"short-date-le-long-time-24":{...h,..._},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...m},"long-month-day-year-short-time-24":{...d,...g},"long-month-day-year-long-time":{...d,...p},"long-month-day-year-long-time-24":{...d,..._},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...m},"day-short-month-year-short-time-24":{...c,...g},"day-short-month-year-long-time":{...c,...p},"day-short-month-year-long-time-24":{...c,..._},"long-date":f,"long-date-short-time":{...f,...m},"long-date-short-time-24":{...f,...g},"long-date-long-time":{...f,...p},"long-date-long-time-24":{...f,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":p},M=(0,n.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"}),b={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function v(){let e=(0,r.lR)();return(e&&b[e])??(0,r.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(b.bs="sr-Latn-CS");let S=new WeakMap;const w=x["short-date-short-time"];function F(e){return x[e]}function I(e){let{dateStyle:t,timeStyle:i,hour12:n,year:r,month:s}=e,o={};return t?o.dateStyle=t:r&&(o.year=r,o.month=s||void 0),i&&!o.year&&(o.timeStyle=i,o.hour12="auto"===n?void 0:"always"===n),o}function T(e,t=w){return function(e){let t=S.get(e);if(!t){let i=v(),n=N(e.timeZone??"system"),r={...e,timeZone:n};t=new Intl.DateTimeFormat(i,r),S.set(e,t)}return t}(t).format(e)}function A(e,t=w){return T(new Date(e),{...t,...u,...l})}function z(e,t=w){return T(new Date(`1970-01-01T${e}Z`),{...t,...u,...a})}function C(e,t=w){let i=o.c9.fromISO(e,{setZone:!0});if(!i.isValid)return e;if(t.timeZone)return T(i.toJSDate(),t);let n=0===i.offset?"UTC":t.timeZone,r={...t,timeZone:n};return i.toLocaleString(r,{locale:v()})}function N(e){switch(e){case"system":return s.N;case s.L:return"UTC";default:return e}}(0,r.Ml)(()=>{S=new WeakMap}),i.d(t,["_v",0,M])},73444(e,t,i){i.d(t,{JK:()=>l,Ml:()=>y,QC:()=>d,lR:()=>h,oQ:()=>m});var n=i(36563);let r;i(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){let e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return s??e??t??"en"}function l(){return void 0===r&&(r=a()),r}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=l()){return c(e)?.language}function d(e=l()){let t=c(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function c(e=l()){return u.exec(e)?.groups}const f=[];function m(e){return f.push(e),(0,n.hA)(()=>{f.splice(f.indexOf(e),1)})}new Map;const p=[];function y(e){return p.push(e),(0,n.hA)(()=>p.splice(p.indexOf(e),1))}function g(){let e=a();r!==e&&([...p].forEach(t=>t(e)),r=e,[...f].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},6518(e,t,i){i.d(t,{F:()=>a});var n=i(44208),r=i(75503),s=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,n.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let e=Array(this._idByBounds.size),t=0;this._idByBounds.forEach((i,n)=>{e[t++]=n}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let e=(0,s.Ie)();for(let t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){let t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,i)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){let t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,i){i.d(t,{A:()=>f});var n=i(4576),r=i(49186),s=i(65529),o=i(53966),a=i(70328),l=i(19419),u=i(90708),h=i(6518),d=i(37730);const c=(0,a.vt)();class f{constructor(e){this.geometryInfo=e,this._boundsStore=new h.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;let[t,i,n,r]=this.fullBounds;return{xmin:t,ymin:i,xmax:n,ymax:r,spatialReference:e}}add(e){this._add(e),this._emitChanged()}addMany(e){for(let t of e)this._add(t);this._emitChanged()}upsertMany(e){let t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(n.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){let t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(let t of e){let e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(let i of e){let e=this._boundsStore.get(i.objectId);e&&t((0,a.Jt)(c,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;let t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e}));let i,n=this._featuresById.get(t);n?(e.displayId=n.displayId,i=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),e.geometry?.coords?.length?(i=(0,u.jQ)(i??(0,l.vt)(),e.geometry),null!=i&&this._boundsStore.set(t,i),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0):(this._boundsStore.set(t,null),this._featuresById.set(t,e))}_upsert(e){let t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;let i=this._featuresById.get(t);if(!i)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;let{geometry:n,attributes:s}=e;for(let e in s)i.attributes[e]=s[e];return n&&(i.geometry=n,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),n)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);let t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,i){var n=i(43334);const r={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,i)=>new n.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};i.d(t,["T",0,r])},25209(e,t,i){i.r(t),i.d(t,{default:()=>X});var n=i(56507),r=i(60999),s=i(67482),o=i(49186),a=i(53966),l=i(17676),u=i(84952),h=i(99917),d=i(16930),c=i(21325),f=i(28735),m=i(43334),p=i(92722),y=i(83221),g=i(31464),_=i(75752),x=i(14607),M=i(30524),b=i(54625);const v=/^\s*"([\S\s]*)"\s*$/,S=/""/g,w=[",",";","|","\t"];function*F(e,t,i){let n=0;for(;n<=e.length;){let r=e.indexOf(t,n),s=e.slice(n,r>-1?r:void 0);n+=s.length+t.length,(!i||s.trim())&&(yield s)}}function I(e){return F(e,e.includes("\r\n")?"\r\n":"\n",!0)}function T(e,t){return F(e,t,!1)}function A(e,t,i){e=e.trim(),t=t?.trim();let n=[],r=Array.from(new Set([i?.delimiter,...w])).filter(e=>null!=e);for(let i of r){let r=N(e,i).length,s=N(t,i).length??r;r>1&&n.push({weight:Math.min(r,s),delimiter:i})}let s=n.sort(({weight:e},{weight:t})=>t-e).map(({delimiter:e})=>e);for(let t of s){let n=C(e,t).names,r=(0,b.i_)(n,i?.longitudeField,i?.latitudeField);if(r.longitudeFieldName&&r.latitudeFieldName)return{delimiter:t,locationInfo:r}}return{delimiter:s[0],locationInfo:null}}function*z(e,t,i,n=()=>Object.create(null)){let r=I(e);r.next();let s="",o="",a=0,l=n(),u=0;e:for(let e of r){let r=T(e,i);for(let e of r)if(s+=o+e,o="",a+=B(e),a%2==0){if(a>0){let e=v.exec(s);if(!e){l=n(),u=0,s="",a=0;continue e}l[t[u]]=e[1].replaceAll(S,'"'),u++}else l[t[u]]=s,u++;s="",a=0}else o=i;0===a?(yield l,l=n(),u=0):o="\n"}}function C(e,t){let i=N(e,t).filter(e=>null!=e),n=i.map(e=>(0,M.rS)(e));for(let e=n.length-1;e>=0;e--)n[e]||(n.splice(e,1),i.splice(e,1));return{names:n,aliases:i}}function N(e,t){if(!e?.length)return[];let i=[],n="",r="",s=0,o=T(e,t);for(let e of o)if(n+=r+e,r="",s+=B(e),s%2==0){if(s>0){let e=v.exec(n);e&&i.push(e[1].replaceAll(S,'"'))}else i.push(n);n="",s=0}else r=t;return i}function B(e){let t=0,i=0;for(i=e.indexOf('"',i);i>=0;)t++,i=e.indexOf('"',i+1);return t}function O(e){if(!e.length)return"string";let t=/[^+\-.,0-9]/;return e.map(e=>{if(""!==e){if(!t.test(e)){let t=E(e);if(!isNaN(t))return/[.,]/.test(e)||!Number.isInteger(t)||t>214783647||t<-214783648?"double":"integer";if(e.includes("E")){if(t=Number(e),!Number.isNaN(t))return"double";if(e.includes(",")&&(e=e.replace(",","."),t=Number(e),!Number.isNaN(t)))return"double"}}return(0,s.C)(e)?"date":"string"}}).reduce((e,t)=>void 0===e?t:void 0===t?e:e===t?t:"string"===e||"string"===t?"string":"double"===e||"double"===t?"double":void 0)}const E=function(){let e=(0,x.B)(),t=RegExp("^"+e.regexp+"$"),i=RegExp("["+e.group+"\\s\\xa0]","g"),n=e.factor;return r=>{let s=t.exec(r);if(e.factor=n,!s)return NaN;let o=s[1];if(!s[1]){if(!s[2])return NaN;o=s[2],e.factor*=-1}return o=o.replace(i,"").replace(e.decimal,"."),+o*e.factor}}();function R(e){return JSON.parse(JSON.stringify(e))}var D=i(64714),L=i(60694),P=i(95466),Z=i(54218);i(98623);const q=(0,D.F0)("esriGeometryPoint"),k=["csv"],Y=[0,0];class j{constructor(e,t){this.x=e,this.y=t}}class X{constructor(){this._queryEngine=null,this._featureIdInfo=null,this._snapshotFeatures=async e=>{let t=await this._fetch(e);return this._createFeatures(t)}}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(e,t={}){this._loadOptions=e;let[i]=await Promise.all([this._fetch(t.signal),this._checkProjection(e?.parsingOptions?.spatialReference)]),n=function(e,t){let i=t.parsingOptions||{},n={delimiter:i.delimiter,layerDefinition:null,locationInfo:{latitudeFieldName:i.latitudeField,longitudeFieldName:i.longitudeField}},r=n.layerDefinition={name:(0,L.cr)((0,u.e7)(t.url,k)||"csv"),dateFieldsTimeReference:{timeZoneIANA:"UTC"},drawingInfo:q,geometryType:"esriGeometryPoint",objectIdField:null,fields:[],timeInfo:i.timeInfo,extent:{xmin:1/0,ymin:1/0,xmax:-1/0,ymax:-1/0,spatialReference:i.spatialReference||{wkid:4326}}},s=I(e),a=s.next().value?.trim(),l=s.next().value?.trim();if(!a)throw new o.A("csv-layer:empty-csv","CSV is empty",{csv:e});let{delimiter:h,locationInfo:d}=A(a,l,i);if(!h)throw new o.A("csv-layer:invalid-delimiter","Unable to detect the delimiter from CSV",{firstLine:a,secondLine:l,parsingOptions:i});if(!d)throw new o.A("csv-layer:location-fields-not-found","Unable to identify latitude and longitude fields from the CSV file",{firstLine:a,secondLine:l,parsingOptions:i});n.locationInfo=d,n.delimiter=h;let{names:c,aliases:f}=C(a,h),m=function(e,t,i,n,r){let s=[],o=z(e,i,t),a=[];for(let e of o){if(10===a.length)break;a.push(e)}for(let e=0;e<i.length;e++){let t=i[e],o=n[e];if(t===r.longitudeFieldName||t===r.latitudeFieldName)s.push({name:t,type:"esriFieldTypeDouble",alias:o});else{let e;switch(O(a.map(e=>e[t]))){case"integer":e="esriFieldTypeInteger";break;case"double":e="esriFieldTypeDouble";break;case"date":e="esriFieldTypeDate";break;default:e="esriFieldTypeString"}s.push({name:t,type:e,alias:o,length:(0,M._b)(e)})}}return s}(e,n.delimiter,c,f,n.locationInfo);if(i.fields?.length){let e=new P.A(i.fields);for(let t of m){let i=e.get(t.name);i&&Object.assign(t,i)}}if(!m.some(e=>"esriFieldTypeOID"===e.type&&(r.objectIdField=e.name,!0))){let e={name:"__OBJECTID",alias:"__OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1};r.objectIdField=e.name,m.unshift(e)}r.fields=m;let p=new P.A(r.fields);if(n.locationInfo&&(n.locationInfo.latitudeFieldName=p.get(n.locationInfo.latitudeFieldName).name,n.locationInfo.longitudeFieldName=p.get(n.locationInfo.longitudeFieldName).name),r.timeInfo){let e=r.timeInfo;if(e.startTimeField){let t=p.get(e.startTimeField);t?(e.startTimeField=t.name,t.type="esriFieldTypeDate"):e.startTimeField=null}if(e.endTimeField){let t=p.get(e.endTimeField);t?(e.endTimeField=t.name,t.type="esriFieldTypeDate"):e.endTimeField=null}if(e.trackIdField){let t=p.get(e.trackIdField);e.trackIdField=t?t.name:null}!e.startTimeField&&!e.endTimeField&&(r.timeInfo=null)}return n}(i,e);this._locationInfo=n.locationInfo,this._delimiter=n.delimiter;let{objectIdField:r,fields:s,extent:{spatialReference:a},timeInfo:l}=n.layerDefinition,h=new y.A({geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1});this._featureIdInfo={type:"object-id",fieldName:r},this._queryEngine=new _.do({fieldsIndex:P.A.fromLayerJSON({fields:s,dateFieldsTimeReference:{timeZoneIANA:"UTC"}}),geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1,timeInfo:l,featureIdInfo:this._featureIdInfo,spatialReference:a||{wkid:4326},featureStore:h});let d=this._createFeatures(i);this._queryEngine.featureStore.addMany(d);let{fullExtent:c,timeExtent:f}=await this._queryEngine.fetchRecomputedExtents();if(n.layerDefinition.extent=c,f){let{start:e,end:t}=f;n.layerDefinition.timeInfo.timeExtent=[e,t]}return n}async applyEdits(){throw new o.A("csv-layer:editing-not-supported","applyEdits() is not supported on CSVLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),(await this._queryEngine.executeQueryForIds(e,t.signal)).filter(Z.Et)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){this._loadOptions.customParameters=e,this._snapshotTask?.abort(),this._snapshotTask=(0,r.UT)(this._snapshotFeatures),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),e&&this._queryEngine.featureStore.addMany(e)},e=>{this._queryEngine.featureStore.clear(),(0,l.zf)(e)||a.A.getLogger("esri.layers.CSVLayer").error(new o.A("csv-layer:refresh","An error occurred during refresh",{error:e}))}),await this._waitSnapshotComplete();let{fullExtent:t,timeExtent:i}=await this._queryEngine.fetchRecomputedExtents();return{extent:t,timeExtent:i}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(e){let{url:t,customParameters:i}=this._loadOptions;if(!t)throw new o.A("csv-layer:invalid-source","url not defined");let r=(0,u.An)(t);return(await(0,n.A)(r.path,{query:{...r.query,...i},responseType:"text",signal:e})).data}_createFeatures(e){let{latitudeFieldName:t,longitudeFieldName:i}=this._locationInfo,{fieldsIndex:n,spatialReference:r}=this._queryEngine,o=this._featureIdInfo.fieldName,a=[],l=[],u=n.fields.filter(e=>e.name!==o).map(e=>e.name),y=0,g={};for(let e of n.fields)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){let t=(0,M.lD)(e);void 0!==t&&(g[e.name]=t)}let _=z(e,u,this._delimiter,(0,D.Vx)(g,o));for(let e of _){let r=this._parseCoordinateValue(e[t]),u=this._parseCoordinateValue(e[i]);if(null!=u&&null!=r&&!isNaN(r)&&!isNaN(u)){e[t]=r,e[i]=u;for(let r in e)if(r!==t&&r!==i)if(n.isDateField(r))e[r]=(0,s._)(e[r]);else if(n.isNumericField(r)){let t=E(e[r]);e[r]=isNaN(t)?null:t}else null!=e[r]&&(e[r]=R(e[r]));e[o]=y,y++,a.push(new j(u,r)),l.push(e)}}if(!(0,c.aI)({wkid:4326},r))if((0,c.K8)(r))for(let e of a)[e.x,e.y]=(0,f.je)(e.x,e.y,Y);else a=(0,h.projectMany)(a,d.A.WGS84,r);let x=[];for(let e=0;e<a.length;e++){let{x:t,y:i}=a[e],n=l[e];n[o]=e+1,x.push(new m.Om(new p.A([],[t,i]),n,null,n[o]))}return x}_parseCoordinateValue(e){if(null==e||""===e)return null;let t=E(e);return(isNaN(t)||Math.abs(t)>181)&&(t=parseFloat(e)),t}async _checkProjection(e){try{await(0,g.Nk)(c.KK,e)}catch{throw new o.A("csv-layer:projection-not-supported","Projection not supported")}}}},64714(e,t,i){i.d(t,{F0:()=>a,Vx:()=>h,e2:()=>c,f:()=>p});var n=i(44208),r=i(4718),s=i(99352),o=i(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function h(e,t){if((0,n.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let i="";t&&(i+=`this${d(t)} = null;`);for(let t in e)i+=`this${d(t)} = ${JSON.stringify(e[t])};`;let n=Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${i};\n }\n }\n `)();return()=>new n}catch{return()=>t?{[t]:null,...e}:{...e}}}function d(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.o8)(e)}}]}const f={...s.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},m={...s.P,supportedStatistics:{...s.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function p(e,t,i=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i?f:s.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i?m:s.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},95466(e,t,i){i.d(t,{A:()=>u});var n=i(49186),r=i(53966),s=i(12195),o=i(30524),a=i(98623),l=i(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],d(e))}static fromLayerJSON(e){return new u(e.fields??[],d(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let i=[];for(let e of this.fields){let t=e?.name,n=(0,o.GZ)(t);if(t&&n){let r=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(n,e),i.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,o.te)(e)&&!(0,o.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,s.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function d(e){let t=new Map;if(!e.fields)return t;let i=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:r}=e,s=(n?"startField"in n?n.startField:n.startTimeField:"")??"",u=(n?"endField"in n?n.endField:n.endTimeField:"")??"",d=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,c=r?function(e){return"timeZone"in e}(r)?r.timeZone??d:r.dateFieldsTimeReference?(0,l.ZS)(r.dateFieldsTimeReference):d??"UTC":null,f=n?function(e){return"timeZone"in e}(n)?n.timeZone??d:n.timeReference?(0,l.ZS)(n.timeReference):d:null,m=new Map([[(0,o.NF)(r?.creationDateField??""),c],[(0,o.NF)(r?.editDateField??""),c],[(0,o.NF)(s),f],[(0,o.NF)(u),f]]);for(let{name:n,type:r}of e.fields)if(h.has(r))t.set(n,a.L);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(n,null);else if(i)t.set(n,a.L);else{let e=m.get((0,o.NF)(n??""))??d;t.set(n,e)}return t}},98453(e,t,i){const n=new(i(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"});i.d(t,["m",0,n])},54625(e,t,i){i.d(t,{i_:()=>r});var n=i(30524);function r(e,t,i){t=(0,n.rS)(t)?.toLowerCase(),i=(0,n.rS)(i)?.toLowerCase();let r=e.map(e=>e.toLowerCase()),a=t?e[r.indexOf(t)]:null,l=i?e[r.indexOf(i)]:null;return{longitudeFieldName:a||e[r.indexOf(o.find(e=>r.includes(e)))],latitudeFieldName:l||e[r.indexOf(s.find(e=>r.includes(e)))]}}const s=["lat","lat83","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point_y"],o=["lon","lng","lng83","long","long83","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point_x"];i.d(t,["A0",0,o,"bD",0,s])},93470(e,t,i){const n=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n};i.d(t,["Cb",0,r,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,n,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,s])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9554],{29242(t,e,n){function r(){return[1,0,0,0,1,0,0,0,1]}function a(t,e,n,r,a,i,o,u,l){return[t,e,n,r,a,i,o,u,l]}n.d(e,{fA:()=>a,vt:()=>r});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:a},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,i])},82534(t,e,n){function r(){return[0,0,0,1]}function a(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{o8:()=>a,vt:()=>r});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:r,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,i])},51850(t,e,n){function r(){return[0,0,0]}function a(t){return[t[0],t[1],t[2]]}function i(t,e,n){return[t,e,n]}function o(t,e,n){return[t,e,n]}function u(t,e=[0,0,0]){let n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function l(){return i(1,1,1)}function s(){return i(1,0,0)}function f(){return i(0,1,0)}function c(){return i(0,0,1)}n.d(e,{CN:()=>o,ci:()=>u,fA:()=>i,o8:()=>a,vt:()=>r});const h=[0,0,0],M=l(),d=s(),m=f(),b=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:M,UNIT_X:d,UNIT_Y:m,UNIT_Z:b,ZEROS:h,clone:a,create:r,freeze:o,fromArray:u,fromValues:i,ones:l,unitX:s,unitY:f,unitZ:c,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,b,"Cw",0,d,"JP",0,m,"Un",0,M,"uY",0,h])},34304(t,e,n){n.d(e,{DF:()=>l,FD:()=>a,ct:()=>s});let r=1e-6;function a(){return r}const i=Math.random,o=Math.PI/180,u=180/Math.PI;function l(t){return t*o}function s(t){return t*u}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:a,setEpsilon:function(t){r=t},toDegree:s,toRadian:l},Symbol.toStringTag,{value:"Module"})),n.d(e,["Ov",0,i])},77690(t,e,n){n.d(e,{B8:()=>u,Ge:()=>M,I0:()=>h,KC:()=>l,a4:()=>s,hZ:()=>i,hs:()=>c,lw:()=>f,mg:()=>o,z0:()=>a});var r=n(34304);function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function i(t,e,n,r,a,i,o,u,l,s){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=i,t[5]=o,t[6]=u,t[7]=l,t[8]=s,t}function o(t,e){if(t===e){let n=e[1],r=e[2],a=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=a}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function u(t,e){let n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],u=e[5],l=e[6],s=e[7],f=e[8],c=f*o-u*s,h=-f*i+u*l,M=s*i-o*l,d=n*c+r*h+a*M;return d?(d=1/d,t[0]=c*d,t[1]=(-f*r+a*s)*d,t[2]=(u*r-a*o)*d,t[3]=h*d,t[4]=(f*n-a*l)*d,t[5]=(-u*n+a*i)*d,t[6]=M*d,t[7]=(-s*n+r*l)*d,t[8]=(o*n-r*i)*d,t):null}function l(t,e){let n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],u=e[5],l=e[6],s=e[7],f=e[8];return t[0]=o*f-u*s,t[1]=a*s-r*f,t[2]=r*u-a*o,t[3]=u*l-i*f,t[4]=n*f-a*l,t[5]=a*i-n*u,t[6]=i*s-o*l,t[7]=r*l-n*s,t[8]=n*o-r*i,t}function s(t){let e=t[0],n=t[1],r=t[2],a=t[3],i=t[4],o=t[5],u=t[6],l=t[7],s=t[8];return e*(s*i-o*l)+n*(-s*a+o*u)+r*(l*a-i*u)}function f(t,e,n){let r=e[0],a=e[1],i=e[2],o=e[3],u=e[4],l=e[5],s=e[6],f=e[7],c=e[8],h=n[0],M=n[1],d=n[2],m=n[3],b=n[4],p=n[5],v=n[6],y=n[7],x=n[8];return t[0]=h*r+M*o+d*s,t[1]=h*a+M*u+d*f,t[2]=h*i+M*l+d*c,t[3]=m*r+b*o+p*s,t[4]=m*a+b*u+p*f,t[5]=m*i+b*l+p*c,t[6]=v*r+y*o+x*s,t[7]=v*a+y*u+x*f,t[8]=v*i+y*l+x*c,t}function c(t,e,n){let r=n[0],a=n[1],i=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=a*e[3],t[4]=a*e[4],t[5]=a*e[5],t[6]=i*e[6],t[7]=i*e[7],t[8]=i*e[8],t}function h(t,e){let n=e[0],r=e[1],a=e[2],i=e[3],o=n+n,u=r+r,l=a+a,s=n*o,f=r*o,c=r*u,h=a*o,M=a*u,d=a*l,m=i*o,b=i*u,p=i*l;return t[0]=1-c-d,t[3]=f-p,t[6]=h+b,t[1]=f+p,t[4]=1-s-d,t[7]=M-m,t[2]=h-b,t[5]=M+m,t[8]=1-s-c,t}function M(t,e){let n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],u=e[5],l=e[6],s=e[7],f=e[8],c=e[9],h=e[10],M=e[11],d=e[12],m=e[13],b=e[14],p=e[15],v=n*u-r*o,y=n*l-a*o,x=n*s-i*o,g=r*l-a*u,E=r*s-i*u,w=a*s-i*l,A=f*m-c*d,S=f*b-h*d,N=f*p-M*d,C=c*b-h*m,O=c*p-M*m,q=h*p-M*b,V=v*q-y*O+x*C+g*N-E*S+w*A;return V?(V=1/V,t[0]=(u*q-l*O+s*C)*V,t[1]=(l*N-o*q-s*S)*V,t[2]=(o*O-u*N+s*A)*V,t[3]=(a*O-r*q-i*C)*V,t[4]=(n*q-a*N+i*S)*V,t[5]=(r*N-n*O-i*A)*V,t[6]=(m*w-b*E+p*g)*V,t[7]=(b*x-d*w-p*y)*V,t[8]=(d*E-m*x+p*v)*V,t):null}function d(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}const m=f,b=d;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:s,equals:function(t,e){let n=t[0],a=t[1],i=t[2],o=t[3],u=t[4],l=t[5],s=t[6],f=t[7],c=t[8],h=e[0],M=e[1],d=e[2],m=e[3],b=e[4],p=e[5],v=e[6],y=e[7],x=e[8],g=(0,r.FD)();return Math.abs(n-h)<=g*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(a-M)<=g*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(i-d)<=g*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-m)<=g*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(u-b)<=g*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(l-p)<=g*Math.max(1,Math.abs(l),Math.abs(p))&&Math.abs(s-v)<=g*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(f-y)<=g*Math.max(1,Math.abs(f),Math.abs(y))&&Math.abs(c-x)<=g*Math.max(1,Math.abs(c),Math.abs(x))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:a,fromQuat:h,fromRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:u,isOrthoNormal:function(t){let e=(0,r.FD)(),n=t[0],a=t[1],i=t[2],o=t[3],u=t[4],l=t[5],s=t[6],f=t[7],c=t[8];return Math.abs(1-(n*n+o*o+s*s))<=e&&Math.abs(1-(a*a+u*u+f*f))<=e&&Math.abs(1-(i*i+l*l+c*c))<=e},mul:m,multiply:f,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:M,normalFromMat4Legacy:function(t,e){let n=e[0],r=e[1],a=e[2],i=e[4],o=e[5],u=e[6],l=e[8],s=e[9],f=e[10],c=f*o-u*s,h=-f*i+u*l,M=s*i-o*l,d=n*c+r*h+a*M;if(!d)return null;let m=1/d;return t[0]=c*m,t[1]=(-f*r+a*s)*m,t[2]=(u*r-a*o)*m,t[3]=h*m,t[4]=(f*n-a*l)*m,t[5]=(-u*n+a*i)*m,t[6]=M*m,t[7]=(-s*n+r*l)*m,t[8]=(o*n-r*i)*m,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){let r=e[0],a=e[1],i=e[2],o=e[3],u=e[4],l=e[5],s=e[6],f=e[7],c=e[8],h=Math.sin(n),M=Math.cos(n);return t[0]=M*r+h*o,t[1]=M*a+h*u,t[2]=M*i+h*l,t[3]=M*o-h*r,t[4]=M*u-h*a,t[5]=M*l-h*i,t[6]=s,t[7]=f,t[8]=c,t},scale:c,scaleByVec2:function(t,e,n){let r=n[0],a=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=a*e[3],t[4]=a*e[4],t[5]=a*e[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:b,subtract:d,translate:function(t,e,n){let r=e[0],a=e[1],i=e[2],o=e[3],u=e[4],l=e[5],s=e[6],f=e[7],c=e[8],h=n[0],M=n[1];return t[0]=r,t[1]=a,t[2]=i,t[3]=o,t[4]=u,t[5]=l,t[6]=h*r+M*o+s,t[7]=h*a+M*u+f,t[8]=h*i+M*l+c,t},transpose:o},Symbol.toStringTag,{value:"Module"}))},37585(t,e,n){n.d(e,{C:()=>i,Cc:()=>E,Io:()=>b,LI:()=>M,Ln:()=>m,Om:()=>g,Re:()=>l,S8:()=>x,T9:()=>c,WQ:()=>u,aI:()=>N,e$:()=>A,hG:()=>p,hZ:()=>o,hs:()=>d,l0:()=>w,qE:()=>h,t2:()=>S});var r=n(34727),a=n(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t,e,n){return t[0]=e,t[1]=n,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function c(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function h(t,e,n,a){return t[0]=(0,r.qE)(e[0],n[0],a[0]),t[1]=(0,r.qE)(e[1],n[1],a[1]),t}function M(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function d(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function m(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function b(t,e){let n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function p(t,e){let n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function v(t){let e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function y(t){let e=t[0],n=t[1];return e*e+n*n}function x(t,e){let n=e[0],r=e[1],a=n*n+r*r;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a),t}function g(t,e){return t[0]*e[0]+t[1]*e[1]}function E(t,e,n,r){let a=e[0],i=e[1];return t[0]=a+r*(n[0]-a),t[1]=i+r*(n[1]-i),t}function w(t,e,n){let r=e[0],a=e[1];return t[0]=n[0]*r+n[2]*a+n[4],t[1]=n[1]*r+n[3]*a+n[5],t}function A(t,e,n,r){let a=e[0]-n[0],i=e[1]-n[1],o=Math.sin(r),u=Math.cos(r);return t[0]=a*u-i*o+n[0],t[1]=a*o+i*u+n[1],t}function S(t,e){return t[0]===e[0]&&t[1]===e[1]}function N(t,e){let n=t[0],r=t[1],i=e[0],o=e[1],u=(0,a.FD)();return Math.abs(n-i)<=u*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))}const C=v,O=l,q=s,V=f,I=b,D=p,F=y;Object.freeze(Object.defineProperty({__proto__:null,add:u,angle:function(t,e){let n=t[0],r=t[1],a=e[0],i=e[1],o=n*n+r*r;o>0&&(o=1/Math.sqrt(o));let u=a*a+i*i;u>0&&(u=1/Math.sqrt(u));let l=(n*a+r*i)*o*u;return l>1?0:l<-1?Math.PI:Math.acos(l)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},clamp:h,copy:i,cross:function(t,e,n){let r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},dist:I,distance:b,div:V,divide:f,dot:g,equals:N,exactEquals:S,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:C,length:v,lerp:E,max:c,min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},mul:q,multiply:s,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:x,projectAndScale:function(t,e,n,r,a){let i=e[0]-n[0],o=e[1]-n[1],u=(r[0]*i+r[1]*o)*(a-1);return i=r[0]*u,o=r[1]*u,t[0]=e[0]+i,t[1]=e[1]+o,t},random:function(t,e=1){let n=2*(0,a.Ov)()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},rotate:A,round:M,scale:d,scaleAndAdd:m,set:o,sqrDist:D,sqrLen:F,squaredDistance:p,squaredLength:y,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:O,subtract:l,transformMat2:function(t,e,n){let r=e[0],a=e[1];return t[0]=n[0]*r+n[2]*a,t[1]=n[1]*r+n[3]*a,t},transformMat2d:w,transformMat3:function(t,e,n){let r=e[0],a=e[1];return t[0]=n[0]*r+n[3]*a+n[6],t[1]=n[1]*r+n[4]*a+n[7],t},transformMat4:function(t,e,n){let r=e[0],a=e[1];return t[0]=n[0]*r+n[4]*a+n[12],t[1]=n[1]*r+n[5]*a+n[13],t}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,C,"jb",0,O,"xg",0,I])},35522(t,e,n){n.d(e,{$A:()=>S,Bw:()=>i,C:()=>o,Cc:()=>N,DI:()=>E,Io:()=>v,Ln:()=>p,Om:()=>A,Qr:()=>c,Re:()=>s,S8:()=>w,T9:()=>m,WQ:()=>l,Z0:()=>C,_S:()=>M,aI:()=>_,ei:()=>O,fw:()=>V,gL:()=>q,hG:()=>y,hZ:()=>u,hs:()=>b,jk:()=>d,lw:()=>f,m3:()=>x,oW:()=>T,t2:()=>F,tn:()=>h,ze:()=>g});var r=n(51850),a=n(34304);function i(t){let e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function M(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function p(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function v(t,e){let n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return Math.sqrt(n*n+r*r+a*a)}function y(t,e){let n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return n*n+r*r+a*a}function x(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function g(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function E(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function w(t,e=t){let n=e[0],r=e[1],a=e[2],i=n*n+r*r+a*a;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function S(t,e,n){let r=e[0],a=e[1],i=e[2],o=n[0],u=n[1],l=n[2];return t[0]=a*l-i*u,t[1]=i*o-r*l,t[2]=r*u-a*o,t}function N(t,e,n,r){let a=e[0],i=e[1],o=e[2];return t[0]=a+r*(n[0]-a),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t}function C(t,e,n){let r=e[0],a=e[1],i=e[2];return t[0]=n[0]*r+n[4]*a+n[8]*i+n[12],t[1]=n[1]*r+n[5]*a+n[9]*i+n[13],t[2]=n[2]*r+n[6]*a+n[10]*i+n[14],t}function O(t,e,n){let r=e[0],a=e[1],i=e[2];return t[0]=r*n[0]+a*n[3]+i*n[6],t[1]=r*n[1]+a*n[4]+i*n[7],t[2]=r*n[2]+a*n[5]+i*n[8],t}function q(t,e,n){return V(t,e,n[0],n[1],n[2],n[3])}function V(t,e,n,r,a,i){let o=e[0],u=e[1],l=e[2],s=r*l-a*u,f=a*o-n*l,c=n*u-r*o,h=r*c-a*f,M=a*s-n*c,d=n*f-r*s,m=2*i;return t[0]=o+s*m+2*h,t[1]=u+f*m+2*M,t[2]=l+c*m+2*d,t}const I=(0,r.vt)(),D=(0,r.vt)();function F(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function _(t,e){if(t===e)return!0;let n=t[0],r=t[1],i=t[2],o=e[0],u=e[1],l=e[2],s=(0,a.FD)();return Math.abs(n-o)<=s*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-u)<=s*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-l)<=s*Math.max(1,Math.abs(i),Math.abs(l))}function T(t,e,n){let r=n[0]-e[0],a=n[1]-e[1],i=n[2]-e[2],o=r*r+a*a+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=a*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const z=s,U=f,R=c,B=v,P=y,j=i,L=x;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:l,angle:function(t,e){w(I,t),w(D,e);let n=A(I,D);return n>1?0:n<-1?Math.PI:Math.acos(n)},applyTranslation:function(t,e,n){return t[0]=e[0]+n[12],t[1]=e[1]+n[13],t[2]=e[2]+n[14],t},bezier:function(t,e,n,r,a,i){let o=1-i,u=o*o,l=i*i,s=u*o,f=3*i*u,c=3*l*o,h=l*i;return t[0]=e[0]*s+n[0]*f+r[0]*c+a[0]*h,t[1]=e[1]*s+n[1]*f+r[1]*c+a[1]*h,t[2]=e[2]*s+n[2]*f+r[2]*c+a[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:o,cross:S,crossAndNormalize:function(t,e,n){let r=e[0],a=e[1],i=e[2],o=n[0],u=n[1],l=n[2],s=a*l-i*u,f=i*o-r*l,c=r*u-a*o,h=Math.sqrt(s*s+f*f+c*c);return t[0]=s/h,t[1]=f/h,t[2]=c/h,t},direction:T,dist:B,distance:v,div:R,divide:c,dot:A,equals:_,exactEquals:F,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,a,i){let o=i*i,u=o*(2*i-3)+1,l=o*(i-2)+i,s=o*(i-1),f=o*(3-2*i);return t[0]=e[0]*u+n[0]*l+r[0]*s+a[0]*f,t[1]=e[1]*u+n[1]*l+r[1]*s+a[1]*f,t[2]=e[2]*u+n[2]*l+r[2]*s+a[2]*f,t},inverse:E,len:j,length:i,lerp:N,max:m,min:d,mul:U,multiply:f,negate:g,normalize:w,random:function(t,e=1){let n=a.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=i*e,t},rotateX:function(t,e,n,r){let a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[0],i[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),i[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateY:function(t,e,n,r){let a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),i[1]=a[1],i[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateZ:function(t,e,n,r){let a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),i[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),i[2]=a[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:b,scaleAndAdd:p,scaleTo:function(t,e){return b(t,t,e/j(t))},set:u,sign:M,sqrDist:P,sqrLen:L,squaredDistance:y,squaredLength:x,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:z,subtract:s,transformMat3:O,transformMat4:C,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:q,transformQuatValues:V},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,j,"jb",0,z,"lo",0,P,"uE",0,L])},34727(t,e,n){n.d(e,{$8:()=>w,Cc:()=>o,Hx:()=>m,Io:()=>g,KJ:()=>s,OS:()=>N,Sp:()=>h,XM:()=>f,YN:()=>c,ZH:()=>d,b6:()=>E,cU:()=>a,gg:()=>M,hs:()=>u,kU:()=>l,or:()=>S,pF:()=>O,qE:()=>i});const r=new Float32Array(1);function a(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function i(t,e,n){return Math.min(Math.max(t,e),n)}function o(t,e,n){return t+(e-t)*n}function u(t,e,n,r,a){return o(r,a,(t-e)/(n-e))}function l(t){return t*Math.PI/180}function s(t){return 180*t/Math.PI}function f(t){return Math.acos(i(t,-1,1))}function c(t){return Math.asin(i(t,-1,1))}function h(t,e,n=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=n}function M(t,e,n=1e-6){return!h(t,e,n)&&t>e}function d(t,e,n=1e-6){return!h(t,e,n)&&t<e}function m(t,e,n=1e-6){return h(t,e,n)||t>e}const b=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function p(t){return b.setFloat64(0,t),b.getBigInt64(0)}const v=1000000n,y=x(1);function x(t){let e=p(t=Math.abs(t)),n=function(t){return b.setBigInt64(0,t),b.getFloat64(0)}(e<=v?v:e-v);return Math.abs(t-n)}function g(t,e,n=y){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=n&&x(Math.min(Math.abs(t),Math.abs(e)))<n)return Math.abs(t-e)<=n;let r=p(t),a=p(e);return!(r<0!=a<0||(r<a?a-r:r-a)>v)}function E(t,e,n=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;let r=Math.abs(t-e),a=Math.abs(t),i=Math.abs(e);if(0===t||0===e||a<1e-12&&i<1e-12){if(r>.01*n)return!1}else if(r/(a+i)>n)return!1;return!0}function w(t){return A(Math.max(-C,Math.min(t,C)))}function A(t){return r[0]=t,r[0]}function S(t){let e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(h(e,1)&&h(n,1)&&h(r,1))}function N(t,e){return(t%e+e)%e}const C=A(34028234663852886e22);function O(t,e,n){if(void 0===n||0==+n)return Math[t](e);if(e=+e,n=+n,isNaN(e)||"number"!=typeof n||n%1!=0)return NaN;let r=e.toString().split("e");return r=(e=Math[t](+(r[0]+"e"+(r[1]?+r[1]-n:-n)))).toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+n:n))}n.d(e,["pq",0,C])},95938(t,e,n){n.r(e),n.d(e,{destroyContext:()=>v,initialize:()=>m,processVertices:()=>p});var r=n(82534),a=n(51850),i=n(13030),o=n(77690),u=n(29242),l=n(35522),s=n(89606),f=n(89707),c=n(62747);function h(t,e,n,r){let{origin:a,ellipsoidRadius:s,isGlobal:f,ecefRotation:c}=t,{texCoord0Data:h,colorView:m,packedNormalsSource:b}=e,{positionView:p,tileObb:v,obbHalfSizeAccumulator:y,elevationRange:x}=r,g=n.getField("position",i.xs),E=g.typedBuffer,w=g.typedBufferStride,A=null==h?null:n.getField("uv0",i.gH),S=A?.typedBuffer,N=A?.typedBufferStride??0,C=m?.typedBuffer,O=m?.elementCount??0,q=null==m?null:n.getField("color",i.XP),V=q?.typedBuffer,I=q?.typedBufferStride??0,D=null==b?null:n.getField("normalCompressed",i.mJ),F=null==D?null:new Uint32Array(D.typedBuffer.buffer,D.typedBuffer.byteOffset,D.typedBuffer.length/2),_=null==D?0:D.typedBufferStride/2,T=(0,o.I0)(d,v.quaternionConjugate),z=(0,l.ei)(M,v.center,T),U=T[0],R=T[1],B=T[2],P=T[3],j=T[4],L=T[5],k=T[6],H=T[7],Y=T[8],Z=z[0],G=z[1],Q=z[2],X=c[0],K=c[1],W=c[2],J=c[3],$=c[4],tt=c[5],et=c[6],nt=c[7],rt=c[8],at=c!==u.zK,it=a[0],ot=a[1],ut=a[2],lt=p.count,st=p.typedBufferStride,ft=p.typedBuffer,ct=null!=S&&null!=h,ht=null!=V&&null!=C&&(3===O||4===O),Mt=4===O,dt=null!=F&&null!=b,mt=y[0],bt=y[1],pt=y[2];for(let t=0;t<lt;++t){let e=t*st,n=ft[e],r=ft[e+1],a=ft[e+2],i=n+it,o=r+ot,u=a+ut,l=f?Math.sqrt(i*i+o*o+u*u)-s:u;x.expandElevationRangeValues(l,l);let c=Math.abs(i*U+o*P+u*k-Z),M=Math.abs(i*R+o*j+u*H-G),d=Math.abs(i*B+o*L+u*Y-Q);mt=Math.max(mt,c),bt=Math.max(bt,M),pt=Math.max(pt,d),at&&(ft[e]=n*X+r*J+a*et,ft[e+1]=n*K+r*$+a*nt,ft[e+2]=n*W+r*tt+a*rt);let m=t*w;if(E[m]=n,E[m+1]=r,E[m+2]=a,ct){let e=2*t,n=t*N;S[n]=h[e],S[n+1]=h[e+1]}if(ht){let e=t*I;if(Mt){let n=4*t;V[e]=C[n],V[e+1]=C[n+1],V[e+2]=C[n+2],V[e+3]=C[n+3]}else{let n=3*t;V[e]=C[n],V[e+1]=C[n+1],V[e+2]=C[n+2],V[e+3]=255}}dt&&(F[t*_]=b[t])}y[0]=mt,y[1]=bt,y[2]=pt}const M=(0,a.vt)(),d=(0,u.vt)();function m(){}function b(t){let{colorData:e,colorElementCount:n}=t;if(null==e||0===n)return;let r=e.byteOffset,a=r+e.byteLength;return 3===n?e instanceof Float32Array?new i.xs(e.buffer,r,void 0,a):e instanceof Uint8Array?new i.eI(e.buffer,r,void 0,a):new i.nS(e.buffer,r,void 0,a):e instanceof Float32Array?new i.Eq(e.buffer,r,void 0,a):e instanceof Uint8Array?new i.XP(e.buffer,r,void 0,a):new i.Uz(e.buffer,r,void 0,a)}async function p(t){let e={center:(0,a.o8)(t.tileObbCenter),quaternionConjugate:(0,r.o8)(t.tileObbQuaternionConjugate)},{vertexProcessingOutputs:n,obbHalfSizeAccumulator:o,elevationRange:u}=function(t,e,n,r,i,o,u){let l=[],M=(0,a.fA)(0,0,0),d=new f.H,m={origin:e,ellipsoidRadius:n,isGlobal:r,ecefRotation:i};for(let e of t){let t,{componentIndex:n,positionView:r,indicesView:a,texCoord0Data:i,colorView:f,normalsData:b}=e,p=r.count,v=null!=f,y=null!=b||u,x=+!!i,g=new c.W7(v,y,x),E=u&&null==b?(0,s.GN)(a.typedBuffer,r.typedBuffer,r.typedBufferStride):null,w=E?.outputVertexCount??p,A=(0,c.hH)(g),S=A.createBuffer(w),N=E?A.fields.get("normalCompressed"):null;if(null!=E&&null==N)throw Error("computeNormals requires a reserved NORMALCOMPRESSED attribute in layout");if(h(m,{texCoord0Data:i,colorView:f,packedNormalsSource:E?E.packedNormals:b??null},S,{positionView:r,tileObb:o,obbHalfSizeAccumulator:M,elevationRange:d}),null!=E){let e=A.stride/4,n=N.offset/4,r=p,a=new Uint32Array(S.buffer);(0,s.yf)(a,e,n,a,e,r,w,E.appendedVertexToOriginal,E.packedNormals,!1),t=E.indices}else t=a.typedBuffer;l.push({componentIndex:n,positionView:r,indicesView:a,layout:A,textureCoordinateType:x,interleavedVertexData:S.buffer,indices:t})}return{vertexProcessingOutputs:l,obbHalfSizeAccumulator:M,elevationRange:d}}(t.inputs.map((t,e)=>{let{indicesData:n}=t,r=t.positionData.byteOffset,a=r+t.positionData.byteLength,o=t.positionStride*Float32Array.BYTES_PER_ELEMENT,u=n.byteOffset,l=u+n.byteLength;return{componentIndex:e,positionView:new i.xs(t.positionData.buffer,r,o,a),indicesView:n instanceof Uint16Array?new i.h(n.buffer,u,void 0,l):new i.P(n.buffer,u,void 0,l),texCoord0Data:t.texCoord0Data??void 0,colorView:b(t),normalsData:t.normalsData??void 0}}),t.origin,t.ellipsoidRadius,t.isGlobal,t.ecefRotation,e,t.imVertexNormals),l=(d=n,m=t.isGlobal,d.map(t=>({positionData:m?t.positionView.typedBuffer:null,interleavedVertexData:t.interleavedVertexData,renderIndices:t.indices===t.indicesView.typedBuffer?null:t.indices}))),M=function(t){let e=[];for(let n of t)null!=n.positionData&&e.push(n.positionData.buffer),e.push(n.interleavedVertexData),null!=n.renderIndices&&e.push(n.renderIndices.buffer);return e}(l);var d,m;return{result:{outputs:l,obbHalfSizeAccumulator:(0,a.o8)(o),minElevation:u.minElevation,maxElevation:u.maxElevation},transferList:M}}function v(t){}},89606(t,e,n){n.d(e,{GN:()=>c,MU:()=>f,yf:()=>M});var r=n(35522),a=n(51850),i=n(10614),o=n(63907),u=n(74038);class l{constructor(t,e){this.data=t,this.indices=e}}class s{constructor(t,e,n,r,a){this.indices=t,this.packedNormals=e,this.appendedVertexToOriginal=n,this.outputVertexCount=r,this.appendedVertexCount=a}}function f(t,e,n,s,f){return!s||n.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,e,n,o){let u=new l(t.slice().buffer,e);if(!o)return u;let s=n[0].stride,f=u.data.byteLength/s;for(let t of n)if("normalCompressed"===t.name){let{offset:e}=t,n=new Int16Array(u.data),l=(0,a.vt)();for(let t=0;t<f;++t)(0,i.Tz)(l,n,t,s/2,e/2),(0,r.ei)(l,l,o),(0,i.aT)(n,t,l[0],l[1],l[2],s/2,e/2)}else if("normal"===t.name){let{offset:e}=t,n=new Float32Array(u.data),i=(0,a.vt)();for(let t=0;t<f;++t){let a=(t*s+e)/4;i[0]=n[a],i[1]=n[a+1],i[2]=n[a+2],(0,r.ei)(i,i,o),n[a]=i[0],n[a+1]=i[1],n[a+2]=i[2]}}return u}(t,e,n,f):function(t,e,n,r){let a=n[0].stride,i=a/4,l=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),s=t.byteLength/a,f=1<n.length?n[1].offset/4:i,M=a+4;return n.forEach((t,e)=>{t.stride=M,e>=1&&(t.offset+=4)}),n.splice(1,0,new u._("normalCompressed",2,o.pe.SHORT,12,M,!0)),h(l,s,f,a,M,c(e,l,i,r))}(t,e,n,f)}function c(t,e,n,r){let a=t.length/3,i=e.length/n,{faceNormals:o,faceAreas:u,faceEdges:l,edgeFaces:s,vertexFaces:f,vertexFaceCountAndOffset:c}=function(t,e,n,r,a,i){let o=new Float32Array(3*a),u=new Float32Array(a),l=new Uint32Array(3*a),s=new Int32Array(2*(3*a)),f=3*a,c=new Uint32Array(f),h=new Uint32Array(2*n);for(let t=0;t<a;++t){let e=3*t;for(let t=0;t<3;++t)++h[2*r[e+t]]}{let t=0;for(let e=0;e<n;++e){let n=2*e;h[n+1]=t,t+=h[n]}for(let t=0;t<a;++t){let e=3*t;for(let n=0;n<3;++n)c[h[2*r[e+n]+1]++]=t}for(let t=0;t<n;++t)h[2*t+1]-=h[2*t]}let M=0,d=new Uint32Array(2*f*2),m=new Uint32Array(2*n);for(let t=0;t<n;++t){let e=2*t,n=4*h[e+1];m[e]=n,m[e+1]=n}function b(t,e,n){let r=Math.min(t,e),a=Math.max(t,e),i=t<e?0:1,o=2*r,u=m[o],l=m[o+1],f=-1;for(let t=u;t<l;t+=2)if(d[t]===a){f=d[t+1];break}return-1===f&&(f=M++,d[l]=a,d[l+1]=f,m[o+1]=l+2,s[2*f+(1-i)]=-1),s[2*f+i]=n,f}for(let n=0;n<r.length;n+=3){let a=r[n],s=a*e,f=t[s],c=t[s+1],h=t[s+2],M=r[n+1],d=M*e,m=t[d],p=t[d+1],v=t[d+2],y=r[n+2],x=y*e,g=f-m,E=c-p,w=h-v,A=f-t[x],S=c-t[x+1],N=h-t[x+2],C=E*N-w*S,O=w*A-g*N,q=g*S-E*A,V=Math.sqrt(C*C+O*O+q*q)||1,I=n/3;u[I]=.5*V;let D=1/V;if(i){let t=i[0]*C+i[3]*O+i[6]*q,e=i[1]*C+i[4]*O+i[7]*q,n=i[2]*C+i[5]*O+i[8]*q;o[3*I]=t*D,o[3*I+1]=e*D,o[3*I+2]=n*D}else o[3*I]=C*D,o[3*I+1]=O*D,o[3*I+2]=q*D;let F=b(a,M,I),_=b(M,y,I),T=b(y,a,I);l[3*I]=F,l[3*I+1]=_,l[3*I+2]=T}return{faceNormals:o,faceAreas:u,faceEdges:l,vertexFaces:c,vertexFaceCountAndOffset:h,edgeFaces:s}}(e,n,i,t,a,r);return function(t,e,n,r,a,i){let o=new Uint8Array(e),u=new Uint32Array(e),l=new Uint32Array(3*e),s=0,f=new Uint32Array(e),c=0;for(let e=0;e<t.length;e+=3){let t=e/3;if(1===o[t])continue;o[t]=1;let h=n[3*t],M=n[3*t+1],d=n[3*t+2];for(c=0,f[c++]=t,l[0]=a[3*t],l[1]=a[3*t+1],l[2]=a[3*t+2],s=3,u[t]=t+1;s>0;){let e=l[--s];for(let r=0;r<2;++r){let b=i[2*e+r];if(-1===b||u[b]===t+1)continue;u[b]=t+1;let p=n[3*b],v=n[3*b+1],y=n[3*b+2];if(Math.abs(1-(h*p+M*v+d*y))<m){f[c++]=b,o[b]=1;for(let t=0;t<3;++t){let n=a[3*b+t];n!==e&&(l[s++]=n)}}}}if(c>1){let t=0,e=0,a=0,i=0;for(let o=0;o<c;++o){let u=f[o],l=r[u];t+=l,e+=n[3*u]*l,a+=n[3*u+1]*l,i+=n[3*u+2]*l}let o=Math.sqrt(e*e+a*a+i*i)||1;e/=o,a/=o,i/=o;for(let o=0;o<c;++o){let u=f[o];n[3*u]=e,n[3*u+1]=a,n[3*u+2]=i,r[u]=t}}}}(t,a,o,u,l,s),d(a,i,t,o,u,f,c)}function h(t,e,n,r,a,i){let o=r/4,u=a/4,s=i.outputVertexCount,f=new Float32Array(s*u),c=new Uint32Array(f.buffer),h=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,e,n,r,a,i,o){for(let u=0;u<i;++u){let i=u*a,l=u*e;for(let e=0;e<n;++e)t[l+e]=r[i+e];t[l+n]=o[u];for(let e=n;e<a;++e)t[l+e+1]=r[i+e]}}(c,u,n,h,o,e,i.packedNormals),M(c,u,n,h,o,e,s,i.appendedVertexToOriginal,i.packedNormals,!0),new l(f.buffer,i.indices)}function M(t,e,n,r,a,i,o,u,l,s){for(let f=i;f<o;++f){let o=u[f-i]*a,c=f*e;for(let e=0;e<a;++e)t[c+e+(s&&e>=n?1:0)]=r[o+e];t[c+n]=l[f]}}function d(t,e,n,r,a,i,o){let u=3*t,l=new(u<256?Uint8Array:u<65536?Uint16Array:Uint32Array)(n),f=e,c=new(e<256?Uint8Array:e<65536?Uint16Array:Uint32Array)(u-e),h=new ArrayBuffer(4*u),M=new Int16Array(h),d=new Uint32Array(h),m=0,p=0,v=new Uint32Array(t),y=0,x=1-b;for(let t=0;t<e;++t){m=o[2*t+1],p=m+o[2*t];let n=t;for(;m<p;){{let t=i[--p],e=3*t,o=r[e],u=r[e+1],l=r[e+2];y=0,v[y++]=t;let s=m;for(;s<p;){let t=i[s],e=3*t;if(o*r[e]+u*r[e+1]+l*r[e+2]>x){v[y++]=t;let e=--p;if(s<e){i[s]=i[e];continue}}++s}let f=0,c=0,h=0;if(1===y)f=o,c=u,h=l;else{for(let t=0;t<y;++t){let e=v[t],n=a[e],i=3*e;f+=r[i]*n,c+=r[i+1]*n,h+=r[i+2]*n}let t=Math.sqrt(f*f+c*c+h*h)||1;f/=t,c/=t,h/=t}{let t=1/(Math.abs(f)+Math.abs(c)+Math.abs(h)),e=f*t,r=c*t,a=e,i=r;h<=0&&(a=(e>=0?1:-1)*(1-Math.abs(r)),i=(r>=0?1:-1)*(1-Math.abs(e)));let o=2*n,u=Math.round(32767*a),l=Math.round(32767*i);M[o]=u<-32767?-32767:u>32767?32767:u,M[o+1]=l<-32767?-32767:l>32767?32767:l}}if(n!==t)for(let e=0;e<y;++e){let r=3*v[e];l[r]===t&&(l[r]=n),l[r+1]===t&&(l[r+1]=n),l[r+2]===t&&(l[r+2]=n)}if(m>=p)break;n=f++,c[n-e]=t}}return new s(l,d,c,f,f-e)}const m=.04,b=.8},89707(t,e,n){n.d(e,{H:()=>r});class r{constructor(t=1/0,e=-1/0){this.minElevation=t,this.maxElevation=e}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(t){return this.minElevation<=t.minElevation&&this.maxElevation>=t.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(t){let e=Math.min(this.minElevation,t.minElevation),n=Math.max(this.maxElevation,t.maxElevation),r=e!==this.minElevation||n!==this.maxElevation;return this.minElevation=e,this.maxElevation=n,r}expandElevationRangeValues(t,e){let n=Math.min(this.minElevation,t),r=Math.max(this.maxElevation,e),a=n!==this.minElevation||r!==this.maxElevation;return this.minElevation=n,this.maxElevation=r,a}setElevationRange(t){this.minElevation=t.minElevation,this.maxElevation=t.maxElevation}setElevationRangeValues(t,e){this.minElevation=t,this.maxElevation=e}equals(t){return this.minElevation===t.minElevation&&this.maxElevation===t.maxElevation}}},62747(t,e,n){n.d(e,{W7:()=>i,hH:()=>o});var r=n(1843),a=n(65786);a.Y;class i extends a.Y{constructor(t,e,n){super(),this.hasVertexColors=t,this.hasNormals=e,this.textureCoordinateType=n}}function o(t){let e=(0,r.BP)().vec3f("position");return t.hasNormals&&e.vec2i16("normalCompressed",{glNormalized:!0}),1===t.textureCoordinateType?e.vec2f("uv0"):2===t.textureCoordinateType&&(e.vec2f("uv0"),e.vec4u16("uvRegion",{glNormalized:!0})),t.hasVertexColors&&e.vec4u8("color",{glNormalized:!0}),e.freeze()}},10614(t,e,n){n.d(e,{Tz:()=>o,aT:()=>i});var r=n(34727),a=n(35522);function i(t,e,n,r,a,i=2,o=0){let l=1/(Math.abs(n)+Math.abs(r)+Math.abs(a)),s=n*l,f=r*l,c=a<=0?(s>=0?1:-1)*(1-Math.abs(f)):s,h=a<=0?(f>=0?1:-1)*(1-Math.abs(s)):f,M=e*i+o;t[M]=u(c),t[M+1]=u(h)}function o(t,e,n,r=2,i=0){let o=n*r+i,u=l(e[o]),s=l(e[o+1]),f=1-Math.abs(u)-Math.abs(s);return t[2]=f,f<0?(t[0]=(u>=0?1:-1)*(1-Math.abs(s)),t[1]=(s>=0?1:-1)*(1-Math.abs(u))):(t[0]=u,t[1]=s),(0,a.S8)(t,t)}function u(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function l(t){return(0,r.qE)(t/32767,-1,1)}n(51850)},65786(t,e,n){const r=class{};new r,n.d(e,["Y",0,r])}}]);