@arcgis/core 6.0.0-next.41 → 6.0.0-next.42

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 (203) hide show
  1. package/Camera.js +1 -1
  2. package/arcgisGlobal.d.ts +0 -2
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/075fe33152fd79fe6d72.js +1 -0
  5. package/assets/esri/core/workers/chunks/0d87cb6417672de95d53.js +1 -0
  6. package/assets/esri/core/workers/chunks/11877d4dc97f756e4711.js +1 -0
  7. package/assets/esri/core/workers/chunks/1860104c2b33f68785dd.js +1 -0
  8. package/assets/esri/core/workers/chunks/1980fd7ae1617ef4d19d.js +1 -0
  9. package/assets/esri/core/workers/chunks/{14d81280807a3d3c1b7e.js → 244ffdb91237d1cbade3.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{059cda6f11a91dbc9e28.js → 2690d5fcd9d5ca92ebf6.js} +1 -1
  11. package/assets/esri/core/workers/chunks/348f28d7ab46df878c6f.js +1 -0
  12. package/assets/esri/core/workers/chunks/{8b0efcc30184593a0812.js → 36bafcc29ac133a05558.js} +24 -24
  13. package/assets/esri/core/workers/chunks/36e5f070009b29b7ac3d.js +1 -0
  14. package/assets/esri/core/workers/chunks/39c23a52d7c3e1ee121c.js +1 -0
  15. package/assets/esri/core/workers/chunks/{5504ec9bd9ee4d10af07.js → 3f74c61359b4bd6dcf00.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{6738b3d6bce34a1e8be2.js → 446d172834f8675f1202.js} +1 -1
  17. package/assets/esri/core/workers/chunks/48c6230b8a6d3a8a7906.js +1 -0
  18. package/assets/esri/core/workers/chunks/4c73c493dabe949c2512.js +1 -0
  19. package/assets/esri/core/workers/chunks/{46504fc81f357bc7465a.js → 4d62877f521cc9663535.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{54de7dc0597fc80d7a52.js → 5dea74fe52583e77f3ce.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{1ec772eaa63eb6937231.js → 8140ed6e44c3d8536d3e.js} +1 -1
  22. package/assets/esri/core/workers/chunks/867502158997cb2d6406.js +1 -0
  23. package/assets/esri/core/workers/chunks/8ceb6697e8adbeffe019.js +1 -0
  24. package/assets/esri/core/workers/chunks/8fe22c2370219f25c15b.js +1 -0
  25. package/assets/esri/core/workers/chunks/91586bf29492735e692d.js +1 -0
  26. package/assets/esri/core/workers/chunks/{123541f79be7adff0818.js → a422a801e55fa125546e.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{fd967a9f3cf0e2890dbb.js → a91dc05a6a609d04ed04.js} +1 -1
  28. package/assets/esri/core/workers/chunks/a99c50b4e1c7568210e1.js +1 -0
  29. package/assets/esri/core/workers/chunks/ab48faea5432e2dbd45c.js +1 -0
  30. package/assets/esri/core/workers/chunks/bbddeb1c893ff8bbae5d.js +1 -0
  31. package/assets/esri/core/workers/chunks/bc2e2bdf1194e6e9eb5e.js +1 -0
  32. package/assets/esri/core/workers/chunks/c3ba1a3247e14f6b7b3a.js +1 -0
  33. package/assets/esri/core/workers/chunks/c5d0a034ff31d5954571.js +1 -0
  34. package/assets/esri/core/workers/chunks/{efc1a90742813b55602e.js → c8057b47c7c6c02a0bda.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{b386e921c273de3ac7a5.js → d4c8673ca65df874a7ce.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{947f3a1cad976bba9738.js → d5e251cddd41d643510c.js} +1 -1
  37. package/assets/esri/core/workers/chunks/fbe3a3b9d6c8c0b52f65.js +1 -0
  38. package/assets/esri/core/workers/chunks/fe7184993ef5713d13fb.js +1 -0
  39. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  40. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  41. package/assets/esri/themes/base/_core.scss +0 -2
  42. package/assets/esri/themes/dark/main.css +1 -1
  43. package/assets/esri/themes/light/main.css +1 -1
  44. package/assets/esri/themes/light/view.css +1 -1
  45. package/chunks/lyr3DMain.js +1 -1
  46. package/chunks/lyr3DWorker.js +1 -1
  47. package/config.js +1 -1
  48. package/core/Logger.js +1 -1
  49. package/core/deprecate.js +1 -1
  50. package/core/types.d.ts +0 -5
  51. package/interfaces.d.ts +0 -17
  52. package/kernel.js +1 -1
  53. package/layers/BuildingSceneLayer.js +1 -1
  54. package/layers/ElevationLayer.d.ts +1 -1
  55. package/layers/ElevationLayer.js +1 -1
  56. package/layers/FeatureLayer.js +1 -1
  57. package/layers/GeoRSSLayer.js +1 -1
  58. package/layers/ImageryLayer.js +1 -1
  59. package/layers/ImageryTileLayer.js +1 -1
  60. package/layers/IntegratedMesh3DTilesLayer.d.ts +4 -3
  61. package/layers/IntegratedMeshLayer.d.ts +4 -3
  62. package/layers/IntegratedMeshLayer.js +1 -1
  63. package/layers/KMLLayer.js +1 -1
  64. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  65. package/layers/MapImageLayer.js +1 -1
  66. package/layers/PointCloudLayer.js +1 -1
  67. package/layers/SceneLayer.js +1 -1
  68. package/layers/StreamLayer.js +1 -1
  69. package/layers/SubtypeGroupLayer.js +1 -1
  70. package/layers/TileLayer.js +1 -1
  71. package/layers/VectorTileLayer.js +1 -1
  72. package/layers/WCSLayer.js +1 -1
  73. package/layers/WMSLayer.js +1 -1
  74. package/layers/WMTSLayer.js +1 -1
  75. package/layers/WebTileLayer.js +1 -1
  76. package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
  77. package/layers/raster/datasets/ImageServerRaster.js +1 -1
  78. package/layers/raster/datasets/RasterFactory.js +1 -1
  79. package/layers/raster/datasets/ZarrRaster.js +2 -0
  80. package/layers/raster/datasets/datasetUtils.js +1 -1
  81. package/layers/raster/datasets/zarrParser.js +2 -0
  82. package/layers/raster/datasets/zarrUtils.js +2 -0
  83. package/layers/raster/formats/pixelRangeUtils.js +1 -1
  84. package/layers/support/SceneModifications.d.ts +1 -3
  85. package/layers/support/SceneModifications.js +1 -1
  86. package/legend/ActiveLayerInfo.js +1 -1
  87. package/package.json +3 -3
  88. package/portal/Portal.js +1 -1
  89. package/support/LayersMixin.d.ts +2 -2
  90. package/symbols/PictureFillSymbol.js +1 -1
  91. package/symbols/PictureMarkerSymbol.js +1 -1
  92. package/symbols/SimpleFillSymbol.js +1 -1
  93. package/symbols/SimpleLineSymbol.js +1 -1
  94. package/symbols/SimpleMarkerSymbol.js +1 -1
  95. package/symbols/Symbol3D.js +1 -1
  96. package/symbols/TextSymbol.js +1 -1
  97. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  98. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  99. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  100. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  101. package/views/3d/interactive/visualElements/VisualElementResources.js +1 -1
  102. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  103. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  104. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  105. package/views/3d/layers/support/Tiles3DLayerViewRegistration.js +2 -0
  106. package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
  107. package/views/3d/layers/support/createTileBVHForLayer.js +2 -0
  108. package/views/3d/layers/support/tileBoundingVolumeUtils.js +2 -0
  109. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  110. package/views/3d/support/engineContent/line.js +1 -1
  111. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  112. package/views/3d/support/gaussianSplatting/GaussianSplatIntersectionHandler.js +1 -1
  113. package/views/3d/support/gaussianSplatting/GaussianSplatSortCoordinator.js +2 -0
  114. package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
  115. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  116. package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
  117. package/views/3d/webgl-engine/lib/LineMaterial.js +1 -1
  118. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  119. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  120. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  121. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  122. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  123. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  124. package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
  125. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  126. package/views/3d/webgl-engine/shaders/ShadedMaterialConfiguration.js +2 -0
  127. package/views/SceneView.d.ts +2 -4
  128. package/views/View.d.ts +1 -3
  129. package/views/View2D.d.ts +2 -2
  130. package/views/analysis/ElevationProfile/ElevationProfileChart.js +1 -1
  131. package/views/interactive/options/ViewOptions.d.ts +0 -2
  132. package/widgets/Editor/EditorViewModel.d.ts +0 -1
  133. package/widgets/Editor.d.ts +0 -1
  134. package/widgets/ElevationProfile/support/chartUtils.js +1 -1
  135. package/widgets/Sketch/SketchViewModel.d.ts +0 -1
  136. package/widgets/Sketch.d.ts +0 -1
  137. package/assets/esri/core/workers/chunks/073f0232135f71b6c7a5.js +0 -1
  138. package/assets/esri/core/workers/chunks/0bf43d80cb40c2b43333.js +0 -1
  139. package/assets/esri/core/workers/chunks/1866f832e5f52958bc97.js +0 -1
  140. package/assets/esri/core/workers/chunks/19e51cbb354954ddafbd.js +0 -1
  141. package/assets/esri/core/workers/chunks/1deca3de77b1a9a07da4.js +0 -1
  142. package/assets/esri/core/workers/chunks/1fd82fcba2758741996a.js +0 -1
  143. package/assets/esri/core/workers/chunks/23f3692c7426173e8352.js +0 -1
  144. package/assets/esri/core/workers/chunks/2dfe6af28cd1b29d5ebc.js +0 -1
  145. package/assets/esri/core/workers/chunks/305eeaac0b4d5b79ebde.js +0 -1
  146. package/assets/esri/core/workers/chunks/353976c812ebf0c98549.js +0 -1
  147. package/assets/esri/core/workers/chunks/4caebb64a365da18453f.js +0 -1
  148. package/assets/esri/core/workers/chunks/4d8833f48348cbbcc947.js +0 -1
  149. package/assets/esri/core/workers/chunks/598ba405e93ebccf7b2d.js +0 -1
  150. package/assets/esri/core/workers/chunks/8b0be232723424dda320.js +0 -1
  151. package/assets/esri/core/workers/chunks/8b38fad017c4c0d9e1ec.js +0 -1
  152. package/assets/esri/core/workers/chunks/8c3779de09291170497f.js +0 -1
  153. package/assets/esri/core/workers/chunks/98958203a5ca45b24d72.js +0 -1
  154. package/assets/esri/core/workers/chunks/af2087b75225d7d7dbd8.js +0 -1
  155. package/assets/esri/core/workers/chunks/b3aa29589dcfb5b93106.js +0 -1
  156. package/assets/esri/core/workers/chunks/c5364ff8dd1358af3603.js +0 -1
  157. package/assets/esri/core/workers/chunks/f6f5937a1308f28bb959.js +0 -1
  158. package/assets/esri/core/workers/chunks/fe24e039385473bf77f9.js +0 -1
  159. package/assets/esri/themes/base/widgets/_UtilityNetworkValidateTopology.scss +0 -46
  160. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ar.json +0 -1
  161. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.bg.json +0 -1
  162. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.bs.json +0 -1
  163. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ca.json +0 -1
  164. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.cs.json +0 -1
  165. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.da.json +0 -1
  166. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.de.json +0 -1
  167. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.el.json +0 -1
  168. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.en.json +0 -1
  169. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.es.json +0 -1
  170. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.et.json +0 -1
  171. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.fi.json +0 -1
  172. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.fr.json +0 -1
  173. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.he.json +0 -1
  174. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.hr.json +0 -1
  175. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.hu.json +0 -1
  176. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.id.json +0 -1
  177. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.it.json +0 -1
  178. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ja.json +0 -1
  179. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ko.json +0 -1
  180. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.lt.json +0 -1
  181. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.lv.json +0 -1
  182. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.nl.json +0 -1
  183. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.no.json +0 -1
  184. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.pl.json +0 -1
  185. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.pt-BR.json +0 -1
  186. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.pt-PT.json +0 -1
  187. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ro.json +0 -1
  188. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ru.json +0 -1
  189. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.sk.json +0 -1
  190. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.sl.json +0 -1
  191. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.sr.json +0 -1
  192. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.sv.json +0 -1
  193. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.th.json +0 -1
  194. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.tr.json +0 -1
  195. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.uk.json +0 -1
  196. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.vi.json +0 -1
  197. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.zh-CN.json +0 -1
  198. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.zh-HK.json +0 -1
  199. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.zh-TW.json +0 -1
  200. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.d.ts +0 -72
  201. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +0 -2
  202. package/widgets/UtilityNetworkValidateTopology.d.ts +0 -130
  203. package/widgets/UtilityNetworkValidateTopology.js +0 -2
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7915],{68197(e,t,r){r.d(t,{A:()=>h});var i=r(40876),n=r(4576),s=r(34727),a=r(78888);function o(e){return(0,s.qE)((0,a.Vr)(e),0,255)}function l(e,t){let r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}function u(e){return.2126*(0,i.Q6)(e.r)+.7152*(0,i.Q6)(e.g)+.0722*(0,i.Q6)(e.b)}class h{static blendColors(e,t,r,i=new h){return i.r=Math.round(e.r+(t.r-e.r)*r),i.g=Math.round(e.g+(t.g-e.g)*r),i.b=Math.round(e.b+(t.b-e.b)*r),i.a=e.a+(t.a-e.a)*r,i._sanitize()}static fromRgb(e,t){let r=(0,i.lT)(e);return r?h.fromArray(r,t):null}static fromHex(e,t=new h){let r=(0,i.oW)(e);return r?h.fromArray(r,t):null}static fromArray(e,t=new h){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){let r=(0,i.Eq)(e);return r?h.fromArray(r,t):null}static fromJSON(e){return null==e?void 0:new h([e[0],e[1],e[2],(e[3]??255)/255])}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null==this.a?1:this.a,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(e,t=3){let r=e instanceof h?e:new h(e),i=u(this),n=u(r);return(Math.max(i,n)+.05)/(Math.min(i,n)+.05)<t}setColor(e){if("string"==typeof e)h.fromString(e,this);else if((0,n.yc)(e))h.fromArray(e,this);else{let t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof h||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){let t=e?.capitalize??!1,r=e?.digits??6,i=3===r||4===r,n=4===r||8===r,s=`#${l(this.r,i)}${l(this.g,i)}${l(this.b,i)}${n?l(Math.round(255*this.a),i):""}`;return t?s.toUpperCase():s}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(e=!1){let t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){let t=o(this.r),r=o(this.g),i=o(this.b);return 0===e||1!==this.a?[t,r,i,o(255*this.a)]:[t,r,i]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(e,t,r,i){this.r=e,this.g=t,this.b=r,this.a=i}}h.prototype.declaredClass="esri.Color"},40876(e,t,r){r.d(t,{Eq:()=>g,G1:()=>m,Q6:()=>E,TS:()=>s,V6:()=>n,Vm:()=>f,ay:()=>l,c1:()=>p,c4:()=>a,j5:()=>u,lT:()=>d,oW:()=>h,xV:()=>v});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function n(e){return!!i[e]||!!i[e.toLowerCase()]}function s(e){return i[e]??i[e.toLowerCase()]}function a(e){return[...s(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;let i=6*r;return i<1?e+(t-e)*i:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,i=1){let n=(e%360+360)%360/360,s=r<=.5?r*(t+1):r+t-r*t,a=2*r-s;return[Math.round(255*o(a,s,n+1/3)),Math.round(255*o(a,s,n)),Math.round(255*o(a,s,n-1/3)),i]}function u(e){let t=e.length>5,r=t?8:4,i=(1<<r)-1,n=t?1:17,s=t?9===e.length:5===e.length,a=Number("0x"+e.slice(1));if(isNaN(a))return null;let o,l=[0,0,0,1];return s&&(o=a&i,a>>=r,l[3]=n*o/255),o=a&i,a>>=r,l[2]=n*o,o=a&i,a>>=r,l[1]=n*o,o=a&i,a>>=r,l[0]=n*o,l}function h(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),n=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,i+16*i,(n+16*n)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function d(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){let t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),c(t)}return c(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function c(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?m(e[3]):1,e}function g(e){let t=n(e)?s(e):null;return t??=d(e),t??=h(e),t}function f(e){let t=g(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function m(e){return _(e,0,1)}function p(e){return Math.round(_(e,0,255))}function _(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const y=1/2.2;function E(e){return e**2.2}function v(e){return e**y}r.d(t,["iw",0,y])},85334(e,t,r){r.d(t,{$:()=>y,IB:()=>o,Iy:()=>I,KV:()=>R,N2:()=>E,RH:()=>b,ZD:()=>v,sn:()=>T});var i=r(68197),n=r(4576),s=r(4718),a=r(34727);function o(e){return"r"in e&&"g"in e&&"b"in e}function l(e){return"h"in e&&"s"in e&&"v"in e}function u(e){return"l"in e&&"a"in e&&"b"in e}function h(e){return"l"in e&&"c"in e&&"h"in e}r(78955),r(91829);const d=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],c=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function g(e,t){let r,i,n=[];if(e[0].length!==t.length)throw Error("dimensions do not match");let s=e.length,a=e[0].length,o=0;for(r=0;r<s;r++){for(o=0,i=0;i<a;i++)o+=e[r][i]*t[i];n.push(o)}return n}function f(e){let t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=g(d,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function m(e){let t=g(c,[e.x/100,e.y/100,e.z/100]).map(e=>{let t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function p(e){let t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function _(e){let t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function y(e){return o(e)?e:h(e)?function(e){return m(_(function(e){let t=e.l,r=e.c,i=e.h;return{l:t,a:r*Math.cos(i),b:r*Math.sin(i)}}(e)))}(e):u(e)?function(e){return m(_(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?m(e):l(e)?function(e){let t,r=(e.h+360)%360/60,i=e.s/100,n=e.v/100*255,s=n*i,a=s*(1-Math.abs(r%2-1));switch(Math.floor(r)){case 0:t={r:s,g:a,b:0};break;case 1:t={r:a,g:s,b:0};break;case 2:t={r:0,g:s,b:a};break;case 3:t={r:0,g:a,b:s};break;case 4:t={r:a,g:0,b:s};break;case 5:case 6:t={r:s,g:0,b:a};break;default:t={r:0,g:0,b:0}}return t.r=Math.round(t.r+n-s),t.g=Math.round(t.g+n-s),t.b=Math.round(t.b+n-s),t}(e):e}function E(e){return l(e)?e:function(e){let{r:t,g:r,b:i}=e,n=Math.max(t,r,i),s=n-Math.min(t,r,i),a=n,o=0===s?0:n===t?(r-i)/s%6:n===r?(i-t)/s+2:(t-r)/s+4,l=0===s?0:s/a;return o<0&&(o+=6),o*=60,l*=100,a*=100/255,{h:o,s:l,v:a}}(y(e))}function v(e){return u(e)?e:function(e){return p(f(e))}(y(e))}function b(e){return h(e)?e:function(e){return function(e){let t=e.l,r=e.a,i=e.b,n=Math.sqrt(r*r+i*i),s=Math.atan2(i,r);return s=s>0?s:s+2*Math.PI,{l:t,c:n,h:s}}(p(f(e)))}(y(e))}function R(e){return e[0]??=0,e[1]??=0,e[2]??=0,e}function T(e){return e.length=4,R(e),e[3]??=1,(0,a.qE)(e[3],0,1),e}function I(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new i.A(e):e)).length||1===t){let r=[],i=e[0];for(let e=0;e<t;e++)r.push(i.clone());return r}if(r.shuffle&&(e=(0,n.k4)((0,s.o8)(e),r.seed)),e.length>=t){let r=[],i=(e.length-1)/(t-1);for(let n=0;n<t;n++){let t=Math.round(n*i);r.push(e[t].clone())}return r}return function(e,t,r={}){let i=[],s=e.length-1,a=Math.ceil((t-e.length)/s);e:for(let n=0;n<s;n++){let s=e[n],o=e[n+1];for(let n=1;n<=a;n++){let l=n/(a+1);if(i.push(A(s,o,l,r)),i.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,n.k4)(i,r.seed??1)]}(e,t,r)}const S=(e,t)=>{let r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function A(e,t,r,s={}){let a=e.r,o=e.g,l=e.b,u=t.r,h=t.g,d=t.b,c=Math.round(a+(u-a)*r),g=Math.round(o+(h-o)*r),f=Math.round(l+(d-l)*r);if(!s.offset)return new i.A([c,g,f]);let m=(0,n.Mo)(s.seed);return new i.A([S(c,m),S(g,m),S(f,m)])}},90629(e,t,r){r.d(t,{Lz:()=>a,PN:()=>o,cr:()=>l,gs:()=>h,r_:()=>d,tc:()=>u}),r(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,n=o(1),s=a(1);function a(e){return e?e/72*96:0}function o(e){return e?72*e/96:0}function l(e){if("string"==typeof e){let t=e.match(i);if(t){let r=Number(t[1]),i=t[3]&&t[3].toLowerCase(),n=e.startsWith("-"),s="px"===i?o(r):r;return n?-s:s}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function u(e=0,t=0){return{x:e,y:t}}function h(e=0,t=0){return[e,t]}function d(e=0,t=0,r=0){return[e,t,r]}r.d(t,["L7",0,s,"ps",0,n])},4197(e,t,r){r.d(t,{Vj:()=>a,cj:()=>s,jh:()=>n});var i=r(9093);function n(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function s(e){return[...e]}function a(e){let t=(0,i.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>x,C:()=>a,DC:()=>c,Ej:()=>E,Ie:()=>S,Jt:()=>A,Lu:()=>b,Ne:()=>R,RF:()=>d,TF:()=>_,VL:()=>f,aI:()=>w,fA:()=>o,gE:()=>u,gX:()=>y,hZ:()=>I,iT:()=>g,is:()=>M,pg:()=>v,uJ:()=>p,vI:()=>T,vY:()=>l,vt:()=>s,w1:()=>h,yr:()=>m}),r(35522);var i=r(5443),n=(r(19419),r(4197));function s(e=C){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function o(e,t,r,i,n,a,o=s()){return o[0]=e,o[1]=t,o[2]=r,o[3]=i,o[4]=n,o[5]=a,o}function l(e,t=s()){return function(e,t,r,i=s()){return I(i,N),function(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],a=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),a=Math.min(a,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=a,e[3]=o,e[4]=l,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function u(e,t=(0,n.jh)(24)){let[r,i,s,a,o,l]=e;return t[0]=r,t[1]=i,t[2]=s,t[3]=r,t[4]=i,t[5]=l,t[6]=r,t[7]=o,t[8]=s,t[9]=r,t[10]=o,t[11]=l,t[12]=a,t[13]=i,t[14]=s,t[15]=a,t[16]=i,t[17]=l,t[18]=a,t[19]=o,t[20]=s,t[21]=a,t[22]=o,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new i.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new i.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function d(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[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 g(e,[t,r,i]){!function(e,t,r,i){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],i),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],i)}(e,t,r,i)}function f(e){return e[0]>=e[3]?0:e[3]-e[0]}function m(e){return e[1]>=e[4]?0:e[4]-e[1]}function p(e){return e[2]>=e[5]?0:e[5]-e[2]}function _(e){let t=f(e),r=p(e),i=m(e);return t*t+r*r+i*i}function y(e,t=[0,0,0]){return t[0]=e[0]+f(e)/2,t[1]=e[1]+m(e)/2,t[2]=e[2]+p(e)/2,t}function E(e,t=[0,0,0]){return t[0]=f(e),t[1]=m(e),t[2]=p(e),t}function v(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 R(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function T(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function I(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 S(e){return e?I(e,N):s(N)}function A(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 x(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=-1/0,e[3]=i,e[4]=n,e[5]=1/0,e}function M(e){return 6===e.length}function w(e,t,r){if(null==e||null==t)return e===t;if(!M(e)||!M(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const N=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];s(),r.d(t,["qv",0,N,"v_",0,C])},50498(e,t,r){var i=r(66552),n=r(5443),s=r(91075),a=r(48526),o=r(86738),l=r(39829),u=r(82799);const h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),d=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),c={base:s.A,key:"type",typeMap:{extent:n.A,multipoint:a.A,point:o.A,polyline:u.A,polygon:l.A}},g=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,d,"gy",0,h,"iI",0,g,"yR",0,c])},42521(e,t,r){r.r(t),r.d(t,{default:()=>Ge});var i=r(32198),n=r(4576),s=r(60999),a=r(69540),o=r(49186),l=r(36563),u=r(44208),h=r(53966),d=r(25728),c=r(17676),g=r(36708),f=r(91429),m=r(87024),p=r(4146),_=r(52136),y=r(18768),E=r(69208),v=r(34287),b=r(8303),R=r(25036),T=r(58947),I=r(10873),S=r(10292),A=r(58083),x=r(9093),M=r(35522),w=r(51850),N=r(34727),C=r(37539),O=r(79258);function L(e,t,r,i){let n=i+t;if(n<i/2||r>n)return Number.MAX_VALUE;let s=Math.abs(U*e)+Math.asin(r/n);return s>=Math.PI/2?Number.MAX_VALUE:r/Math.cos(s)}const D=(0,w.vt)(),U=(0,N.kU)(1);var F=r(27993),P=r(16930),k=r(98764);(0,w.vt)();var q=r(71351),G=r(28540),V=r(19419),Q=r(89707);class j extends Q.H{constructor(e,t){super(NaN,NaN),this.id=e,this.serviceMbsInIndexSR=t,this._serviceMbsInRenderSRElevationAdjusted=new G.i(0,0,0,-1),this._serviceMbsInRenderSR=new G.i(0,0,0,-1),this._serviceMbsElevationUpdateExtent=null,this._mbsConeInRenderSR=null}get serviceMbsInRenderSRElevationAdjusted(){return this._serviceMbsInRenderSRElevationAdjusted}updateServiceMbsInRenderSRElevationAdjusted(e){return this._serviceMbsInRenderSRElevationAdjusted.copyFrom(e),this._serviceMbsInRenderSRElevationAdjusted}get serviceMbsInRenderSR(){return this._serviceMbsInRenderSR}updateServiceMbsInRenderSR(e){return this._serviceMbsInRenderSR.copyFrom(e),null!=this._serviceMbsElevationUpdateExtent&&(0,V.Ie)(this._serviceMbsElevationUpdateExtent),this._serviceMbsInRenderSR}get serviceMbsElevationUpdateExtent(){return this._serviceMbsElevationUpdateExtent??=(0,V.Ie)()}get mbsConeInRenderSR(){return this._mbsConeInRenderSR}updateMbsConeInRenderSR(e){return this._mbsConeInRenderSR=e.clone(),this._mbsConeInRenderSR}invalidateServiceBVsInRenderSR(){this._serviceMbsInRenderSRElevationAdjusted.invalidate(),this._serviceMbsInRenderSR.invalidate(),null!=this._serviceMbsElevationUpdateExtent&&(0,V.Ie)(this._serviceMbsElevationUpdateExtent),this._mbsConeInRenderSR=null,this.serviceObbInRenderSR?.invalidate()}shareServiceBVsInRenderSRWith(e){this.serviceObbInRenderSR=e.serviceObbInRenderSR,this._serviceMbsInRenderSRElevationAdjusted=e._serviceMbsInRenderSRElevationAdjusted,this._serviceMbsInRenderSR=e._serviceMbsInRenderSR,this._serviceMbsElevationUpdateExtent=e._serviceMbsElevationUpdateExtent??=(0,V.Ie)(),this._mbsConeInRenderSR=e._mbsConeInRenderSR}}class H extends j{constructor(e,t,r,i,n,s,a,o,l,u,h){super(e,r),this.index=t,this.childCount=i,this.level=n,this.resources=s,this.version=a,this.lodMetric=o,this.maxError=l,this.numFeatures=u,this.failed=!1,this.cacheState=0,this.vertexCount=0,this.memory=0,this.childrenLoaded=0,this.hasModifications=!1,this.imModificationImpact=4,this.elevationAgnosticBoundingVolume=new W,this.serviceObbInIndexSR=h}invalidateServiceBVsInRenderSR(){super.invalidateServiceBVsInRenderSR(),this.elevationAgnosticBoundingVolume.invalidate()}}class W{constructor(){this._data=[0,0,0,W.invalidRadius]}static{this.invalidRadius=-2}invalidate(){this._data[3]=W.invalidRadius}get valid(){return this._data[3]!==W.invalidRadius}get radius(){return this._data[3]}getAxis(e){return e[0]=this._data[0],e[1]=this._data[1],e[2]=this._data[2],e}set(e,t){this._data[0]=e[0],this._data[1]=e[1],this._data[2]=e[2],this._data[3]=t}intersectsFrustumConservative(e,t,r){if(!this.valid)return!0;let i=this.getAxis($),{center:n,radius:s}=e.boundingSphere,a=s+r;return 1===t?this.radius>B||function(e,t,r,i){let n=(0,M.Bw)(r);if(n<=i)return!0;let s=(0,M.Om)(e,r);if(s<=0)return-s<=i;let a=(0,N.qE)(s/n,-1,1),o=Math.sqrt(1-a*a),l=(0,N.qE)(i/n,0,1);return o*Math.sqrt(1-l*l)-l*a<=t}(i,this.radius,n,a):function(e,t,r,i){let n=r[0]-e[0],s=r[1]-e[1],a=t+i;return n*n+s*s<=a*a}(i,this.radius,n,a)&&function(e,t,r,i,n){for(let s of n){let n=s[0],a=s[1],o=s[2],l=o>0?r:i;if(n*e[0]+a*e[1]+o*l+s[3]-Math.hypot(n,a)*t>0)return!1}return!0}(i,this.radius,n[2]-a,n[2]+a,e.planes)}}const $=(0,w.vt)(),B=.9;var z=r(25992),Z=r(66480),Y=r(57005),K=r(4431),X=r(62747),J=r(58682),ee=r(92359);class te{constructor(e,t,r){this._layer=e,this._descriptor=t,this._options=r,this._subtaskAbortController=new AbortController,this._highest=-1/0,this._signal=AbortSignal.any([r.signal,this._subtaskAbortController.signal]),this._indexSpatialReference=(0,Z.Rm)(e),this._vertexSpatialReference=(0,Z.Dd)(e),this._intersectionSpaceSpatialReference=function(e,t){return e?(0,k.lO)(t):t.isGeographic?P.A.PlateCarree:t}(this._indexSpatialReference.isGeographic,this._indexSpatialReference),this._indexToVertexProjector=(0,C.wy)(this._indexSpatialReference,this._vertexSpatialReference),this._vertexToIntersectionSpaceProjector=(0,C.wy)(this._vertexSpatialReference,this._intersectionSpaceSpatialReference),this.frameTask=r.scheduler.registerTask(ee.W6.ELEVATION_QUERY),this.promise=this._run()}async _run(){let e={stack:[],error:void 0,hasError:!1};try{(0,i.mS)(e,this.frameTask,!1);try{let e=this._descriptor;if("point"!==e.geometry.type)throw new o.A("elevation-query:invalid-geometry","Only point geometries can be used to query elevation");if(null==this._indexToVertexProjector||null==this._vertexToIntersectionSpaceProjector)throw new o.A("integrated-mesh-elevation-query:projection","Failed to create projection for elevation query.");let t=await e.project(this._indexSpatialReference,this._signal);(0,c.Te)(this._signal),t??this._throwSpatialReferenceMismatchError();let r=t.coordinates[0],i=function(e,t,r,i,n){let s=(0,w.fA)(e,t,r),a=(0,w.fA)(e,t,r-1e3),o=(0,w.vt)(),l=(0,w.vt)();return(0,F.F)(s,i,o,n)&&(0,F.F)(a,i,l,n)?(0,q.Cr)(o,l):null}(r.x,r.y,this.getRootRayOriginZ(),this._indexSpatialReference,this._intersectionSpaceSpatialReference);return i??this._throwSpatialReferenceMismatchError(),this._queryRay=i,await this.visitRoot(),(0,c.Te)(this._signal),r.z=this._highest===-1/0?ne:this._highest,t}catch(e){throw this._subtaskAbortController.abort(),e}}catch(t){e.error=t,e.hasError=!0}finally{(0,i.hk)(e)}}_throwSpatialReferenceMismatchError(){throw new o.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${this._descriptor.spatialReference.wkid}' on an elevation service in '${this._indexSpatialReference.wkid}'`)}_intersectsQueryObb(e){let t=this._queryRay,r=new Y.ab;return e.transform(r,this._indexSpatialReference,this._intersectionSpaceSpatialReference),r.intersectRay(t.origin,t.direction)}intersectsQueryBounds(e){if(null==e)return!0;let t=this._queryRay;if(null!=e.obb)return this._intersectsQueryObb(Y.ab.fromJSON(e.obb));let r=new G.i;return!function(e,t,r,i){if(null==e||null==t||null==i)return!1;let n=(0,C.Tp)(t,i);if(null==n?.projector)return!1;if(n.projector===C.pO)return r.copyFrom(e),!0;let{source:s,dest:a,projector:o}=n;if(3===a.spatialReferenceId){let t=C.w5[s.spatialReferenceId][2];return null!=t&&(t(e.center,0,D,0),(0,C.s7)(D,0,r.center,0),r.radius=L(D[1],e.center[2],e.radius,O.$O.radius),!0)}if(2!==s.spatialReferenceId&&5!==s.spatialReferenceId||11!==a.spatialReferenceId){o(e.center,0,r.center,0);let t=s.metersPerUnit??1,i=a.metersPerUnit??1;r.radius=e.radius*t/i}else{let t=C.w5[s.spatialReferenceId][1],i=C.w5[1][11],n=e.radius;null!=t&&null!=i&&(n=L(e.center[1],e.center[2],e.radius,O.$O.radius)),o(e.center,0,r.center,0),r.radius=n}return!0}(new G.i(e.mbs),this._indexSpatialReference,r,this._intersectionSpaceSpatialReference)||r.intersectRay(t)}async _processLeafNode(e){let t=await this._layer.elevationQueryNodeLoader.loadNodeData(e,this._signal);if((0,c.Te)(this._signal),null==t.geometryBuffer||null==t.geometryDescriptor)return;let r=await this.transformNode(e,t);(0,c.Te)(this._signal),null!=r&&await this.frameTask.schedule(()=>{this._highest=this.intersectTransformedGeometry(r,this._highest,this._options.elevationOffset)},this._signal)}async transformNode(e,t){let r=e.serviceMbsInIndexSR;if(null==r)return null;let i=(0,z.C)(r,0,se,this._indexSpatialReference,this._intersectionSpaceSpatialReference),n={context:`i3s-elevation-query-${this._layer.uid}`,geometryBuffer:t.geometryBuffer,geometryData:null,geometryDescriptor:t.geometryDescriptor,layouts:[ae],globalTrafo:i,geometryElevationOffset:0,mbs:r.toJSON(),obbData:e.serviceObbInIndexSR?.data,elevationOffset:0,planetRadiusInGlobalMode:0,needNormals:!1,computeNormals:!1,normalReferenceFrame:se,indexToVertexProjector:this._indexToVertexProjector,vertexToRenderProjector:this._vertexToIntersectionSpaceProjector},s=await this._layer.processElevationQueryGeometry(n,this._signal);return(0,c.Te)(this._signal),s}intersectTransformedGeometry(e,t,r){let i=e.globalTrafo;if(null==(0,A.B8)(oe,i))return t;let n=this._queryRay,s=(0,M.Z0)(le,n.origin,oe),a=(0,M.WQ)(ue,n.origin,n.direction),o=(0,M.Z0)(he,a,oe),l=(0,M.jb)(de,o,s),{data:u,indices:h}=e.transformedGeometry.positionData,d=h.length/3,c=t;return(0,J.h7)(s,l,0,d,h,u,3,!1,e=>{let t=(0,M.hs)(ce,l,e);(0,M.WQ)(t,t,s);let n=(0,M.Z0)(ge,t,i),a=fe;if((0,F.F)(n,this._intersectionSpaceSpatialReference,a,this._layer.spatialReference)){let e=a[2]+r;c=Math.max(c,e)}}),c}async requestJSON(e){let t=await this._layer.elevationQueryDataRequester.request(e,"json",this._signal);return(0,c.Te)(this._signal),t}}class re extends te{constructor(e,t,r,i){super(e,t,r),this._pendingPages=new Map,this._loadedPages=new Map,this._pageSize=i.pageSize,this._rootIndex=i.rootIndex,this._urlPrefix=i.urlPrefix;let n=this._pageId(this._rootIndex),s=this._rootIndex-n*this._pageSize,a=Y.ab.fromJSON(i.rootPage.nodes[s].obb);this._rootRayOriginZ=a.centerZ+a.radius+1,this._loadedPages.set(n,i.rootPage)}visitRoot(){return this._visitNode(this._rootIndex)}getRootRayOriginZ(){return this._rootRayOriginZ}_pageId(e){return Math.floor(e/this._pageSize)}getPage(e){let t=this._loadedPages.get(e);if(null!=t)return Promise.resolve(t);let r=this._pendingPages.get(e);if(null!=r)return r;let i=this.requestJSON(`${this._urlPrefix}${e}`);return this._pendingPages.set(e,i),i.then(t=>{this._loadedPages.set(e,t),this._pendingPages.delete(e)},()=>this._pendingPages.delete(e)),i}async _visitNode(e){let t=this._pageId(e),r=await this.getPage(t);(0,c.Te)(this._signal);let i=r.nodes[e-t*this._pageSize],n=Y.ab.fromJSON(i.obb);if(!this._intersectsQueryObb(n))return;let{children:s}=i;if(null!=s&&s.length>0)return await Promise.all(s.map(e=>this._visitNode(e))),void(0,c.Te)(this._signal);let a=this._createNode(e,i,n);null!=a&&(await this._processLeafNode(a),(0,c.Te)(this._signal))}_createNode(e,t,r){let{mesh:i}=t;if(null==i?.geometry)return null;let n=new G.i(r.getCenter((0,w.vt)()),r.radius),{geometry:s,material:a}=i;return new H(`${e}`,e,n,t.children?.length??0,0,{hasSharedResource:!1,isEmpty:!1,geometry:`${s.resource}`,geometryDefinition:s.definition,materialDefinition:a?.definition??-1},"",0,0,s.featureCount??null,r)}}class ie extends te{constructor(e,t,r,i){super(e,t,r),this._rootNode=i.rootNode,this._urlPrefix=i.urlPrefix}visitRoot(){return this.intersectsQueryBounds(this._rootNode)?this._visitNodeData(this._rootNode,null!=this._rootNode.obb):Promise.resolve()}getRootRayOriginZ(){return this._rootNode.mbs[2]+this._rootNode.mbs[3]+1}_visitNode(e){return this.intersectsQueryBounds(e)?this._visitNodeAsync(e):Promise.resolve()}async _visitNodeAsync(e){let t=await this.requestJSON(`${this._urlPrefix}${e.id}`);(0,c.Te)(this._signal),await this._visitNodeData(t,null!=e.obb),(0,c.Te)(this._signal)}async _visitNodeData(e,t){if(!t&&null!=e.obb&&!this._intersectsQueryObb(Y.ab.fromJSON(e.obb)))return;let{children:r}=e;if(null!=r&&r.length>0)return await Promise.all(r.map(e=>this._visitNode(e))),void(0,c.Te)(this._signal);let i=this._createNode(e);null!=i&&(await this._processLeafNode(i),(0,c.Te)(this._signal))}_createNode(e){let{geometryData:t,id:r}=e;if(null==t||0===t.length)return null;let i=null==e.obb?null:Y.ab.fromJSON(e.obb),n=new G.i(e.mbs);return new H(r,0,n,e.children?.length??0,0,{hasSharedResource:null!=e.sharedResource,isEmpty:!1,geometry:r,geometryDefinition:0},e.version??"",0,0,null,i)}}const ne=Number.MAX_VALUE,se="none",ae=(0,K.U)((0,X.hH)(new X.W7(!1,!1,0))),oe=(0,x.vt)(),le=(0,w.vt)(),ue=(0,w.vt)(),he=(0,w.vt)(),de=(0,w.vt)(),ce=(0,w.vt)(),ge=(0,w.vt)(),fe=(0,w.vt)();var me=r(50805),pe=r(58325),_e=r(24212),ye=r(80215),Ee=r(97159),ve=r(16215),be=r(98697),Re=r(56507),Te=r(97768),Ie=r(50075);class Se{constructor(e,t){this._customParameters=e,this._apiKey=t,this._activeRequests=new Set}isFull(e){return(0,Ie._i)(e)}request(e,t,r){let i=new AbortController,n=(0,c.NY)(r,()=>i.abort()),s={...Ie.Fz,signal:i.signal,responseType:t,query:{...this._customParameters,token:this._apiKey}},a=(0,Re.A)(e,s),o={abortController:i,abortHandle:n};return this._activeRequests.add(o),a.then(({data:e})=>e).finally(()=>{o.abortController=null,o.abortHandle=(0,Te.xt)(o.abortHandle),this._activeRequests.delete(o)})}cancelAll(){this._activeRequests.forEach(e=>{e.abortController=(0,Te.DC)(e.abortController),e.abortHandle=(0,Te.xt)(e.abortHandle)}),this._activeRequests.clear()}}var Ae=r(4718),xe=r(84952),Me=r(59418),we=r(85334);r(91829),r(73941),r(76200);var Ne=r(74810),Ce=r(49788);function Oe(e){return e.sort((e,t)=>e.encoding-t.encoding)}const Le={ktx2:1,basis:2,dds:4,png:8,jpg:16,"ktx-etc2":32},De={"image/ktx2":2,"image/x.basis":2,"image/vnd-ms.dds":4,"image/png":8,"image/jpg":16,"image/jpeg":16,"image/ktx":32};function Ue(e){let t=e?.materialDefinitions?Object.keys(e.materialDefinitions)[0]:null,r=e?.textureDefinitions?Object.keys(e.textureDefinitions)[0]:null,i=t?e.materialDefinitions?.[t]:null,n=r?e.textureDefinitions?.[r]:null,s=Fe();if(null!=i){let e=i.params;e.diffuse&&((0,we.KV)(e.diffuse),s.metallicRoughness.baseColorFactor=[e.diffuse[0],e.diffuse[1],e.diffuse[2],1]),null!=e.doubleSided&&(s.doubleSided=e.doubleSided,s.cullFace=e.doubleSided?0:2),("none"===e.cullFace||"front"===e.cullFace||"back"===e.cullFace)&&(s.cullFace="none"===e.cullFace?0:"back"===e.cullFace?2:1),e.transparency&&(s.metallicRoughness.baseColorFactor[3]=(0,N.qE)(1-e.transparency,0,1)),(e.useVertexColorAlpha||s.metallicRoughness.baseColorFactor[3]<1)&&(s.alphaMode="blend")}let a=[];if(null!=n){n.wrap&&("repeat"===n.wrap[0]||"repeat"===n.wrap[1])&&(s.wrapTextures=!0);let e=1;"rgba"===n.channels&&(s.alphaMode="blend",e|=32);let t=n.images.length-1,r=n.images[t],i=e=>e?.split("/").pop(),o=Array.isArray(n.encoding)?Oe(n.encoding.map((e,t)=>({name:i(r.href[t]),encoding:De[e]||0}))):[{name:i(r.href),encoding:De[n.encoding]||0}];a.push({id:0,usage:e,encodings:o}),s.metallicRoughness.baseColorTextureId=0}return{material:s,textures:a}}const Fe=()=>({alphaMode:"opaque",alphaCutoff:Ce.Q,doubleSided:!0,cullFace:0,normalTextureId:-1,emissiveTextureId:-1,occlusionTextureId:-1,emissiveFactor:[0,0,0],metallicRoughness:{baseColorFactor:[.8,.8,.8,1],baseColorTextureId:-1,metallicRoughnessTextureId:-1,metallicFactor:0,roughnessFactor:.6},wrapTextures:!1,hasParametersFromSource:!0});class Pe{constructor(e,t,r,i,n,s){if(this._requester=t,this._logger=r,this._defaultGeometrySchema=i,this._requiredAttributes=n,this._options=s,this._logLayer=e,this._layerUrl=e.parsedUrl.path,this._geometryDefinitions=e.geometryDefinitions,e.materialDefinitions){let t=e.textureSetDefinitions;this._materialAndTextures=e.materialDefinitions.map(r=>function(e,t,r){let i=new Map,n=(e,t)=>{if(null==e)return-1;let r=i.get(e.id);if(r)return r.usage|=t,r.id;let n=i.size;return i.set(e.id,{id:n,usage:t}),n},s=t.pbrMetallicRoughness,a=s?.baseColorFactor?(0,we.sn)(s.baseColorFactor):null,o=t.emissiveFactor,l=r&&0===s?.metallicFactor||(0,Ne.Jr)({normalTexture:t.normalTexture,emissiveTexture:t.emissiveTexture,emissiveFactor:t.emissiveFactor,occlusionTexture:t.occlusionTexture,metallicRoughnessTexture:s?.metallicRoughnessTexture,metallicFactor:s?.metallicFactor,roughnessFactor:s?.roughnessFactor}),u=l?Ne.Bt[0]:s?.metallicFactor??Ne.mb[0],h=l?Ne.Bt[1]:s?.roughnessFactor??Ne.mb[1],d="mask"===t.alphaMode?33:1,c={baseColorFactor:a?[a[0],a[1],a[2],a[3]]:[1,1,1,1],baseColorTextureId:n(s?.baseColorTexture,d),metallicRoughnessTextureId:n(s?.metallicRoughnessTexture,2),metallicFactor:u,roughnessFactor:h},g={alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,cullFace:"none"===t.cullFace?0:"back"===t.cullFace?2:+("front"===t.cullFace),normalTextureId:n(t.normalTexture,4),emissiveTextureId:n(t.emissiveTexture,16),occlusionTextureId:n(t.occlusionTexture,8),emissiveFactor:o?[o[0],o[1],o[2]]:[0,0,0],metallicRoughness:c,wrapTextures:!1,hasParametersFromSource:l},f=[];return i.forEach(({usage:t},r)=>{let i=null!=e&&e[r]&&e[r].formats,n=i?Oe(i.map(({name:e,format:t})=>({name:e,encoding:Le[t]}))):[];f.push({id:r,usage:t,encodings:n})}),{material:g,textures:f}}(t,r,"integrated-mesh"===e.type))}}_loadAttribute(e,t,r){let i=`${this._layerUrl}/nodes/${e.resources.attributes}/attributes/${t.key}/0`;return this._requester.request(i,"array-buffer",r).then(e=>(0,Me.m0)(t,e))}async loadAttributes(e,t,r){let i=await Promise.allSettled(t.map(t=>this._loadAttribute(e,t.attributeStorageInfo,r))),n={};for(let r=0;r<t.length;++r){let s=i[r],a=t[r];if("fulfilled"===s.status){let e=s.value;n[a.name]=e}else{let t=s.reason;(0,c.QP)(t),this._logger.error("#loadAttributes",this._logLayer,`Failed to load attributeData for '${a.name}' on node '${e.id}'`,t)}}return n}async loadNodeData(e,t){let r=null!=this._requiredAttributes&&e.resources.attributes?(0,s.Ke)(this.loadAttributes(e,this._requiredAttributes,t)):null,{bufferDefinition:i,bufferIndex:n}=function(e,t){let r={bufferDefinition:null,bufferIndex:0},i=t.resources.geometryDefinition;if(null==e||null==i||i<0)return r;let n=i>=0?e[i].geometryBuffers:null;if(null==n)return r;for(let e=0;e<n.length;e++){let t=n[e];if(null!=t.compressedAttributes){if("draco"===t.compressedAttributes.encoding&&!(0,u.A)("disable-feature:i3s-draco"))return r.bufferIndex=e,r.bufferDefinition=t,r}else r.bufferIndex=e,r.bufferDefinition=n[e]}return r}(this._geometryDefinitions,e),a=!!e.resources.geometry,o=a?(0,s.Ke)(this._loadGeometry(e.resources.geometry,n,t)):null,l=e.resources.hasSharedResource?await this._loadShared(e,t):null,h=e.resources.materialDefinition,d=this._materialAndTextures&&null!=h&&h>=0?this._materialAndTextures[h]:null==l?null:Ue(l),c=d?.material,g=d?.textures??[],f=`${e.id}`,m=!a&&this._options.loadFeatureData,p=m?await this._loadFeatureData(f,t):null,_=m?function(e){if(!e)return null;for(let t of e.featureData){let e=t.geometries;if(null!=e)for(let r of e)return{featureIds:[t.id],featureDataPosition:t.position,geometries:[r]}}return null}(p):{featureIds:[],geometries:[{type:"ArrayBufferView",params:{material:c}}],featureDataPosition:[0,0,0]},y=null==_?function(e){if(!e)return null;let t=[];for(let r of e.featureData)null!=r.position&&t.push({featureIds:[r.id],featureDataPosition:r.position,geometries:[]});return t}(p):null,E=g.length>0?(0,s.Ke)(this.loadTextures(e,g,t)):null,v=null,b=null;if(o){v=(0,s.QA)(await o);let e=function(e,t){if(!e||!t?.materialDefinitions)return e;let r=Object.keys(t.materialDefinitions)[0];return!t.materialDefinitions[r].params.vertexRegions&&e.vertexAttributes.region&&delete(e=(0,Ae.o8)(e)).vertexAttributes.region,e}(this._defaultGeometrySchema,l);b=(0,Me.qs)(i,e)}let R=E?(0,s.QA)(await E):null,T=r?(0,s.QA)(await r):{},I=T?{attributeData:T,loadedAttributes:this._requiredAttributes}:null;if(null!=_)return{geometryData:_,attributeDataInfo:I,geometryBuffer:v,geometryDescriptor:b,requiredTextures:g,textureData:R};if(null!=y)return{pointData:y,attributeDataInfo:I,geometryBuffer:v,geometryDescriptor:b,requiredTextures:g,textureData:R};throw Error()}static _addAbsoluteHrefTexture(e,t){let r=e.textureDefinitions;if(null!=r)for(let e of Object.keys(r))for(let i of r[e].images)i.hrefConcat=Array.isArray(i.href)?i.href.map(e=>(0,xe.s2)(e,t)):(0,xe.s2)(i.href,t)}static _fixTextureEncodings(e){let t=e.textureDefinitions;if(null!=t)for(let e in t){let r=t[e];if(Array.isArray(r.encoding))for(let e=0;e<r.encoding.length;e++){let t=r.encoding[e];t.startsWith("data:")&&(r.encoding[e]=t.slice(5))}else{let e=r.encoding;e.startsWith("data:")&&(r.encoding=e.slice(5))}}}async _loadShared(e,t){if(null==e.resources.geometry)return{};let r=`${this._layerUrl}/nodes/${e.resources.geometry}/shared`,i=await this._requester.request(r,"json",t);return Pe._fixTextureEncodings(i),Pe._addAbsoluteHrefTexture(i,r),i}_loadTexture(e,t,r,i,n){return 4===i||1===i||2===i?this._requester.request(e,"array-buffer",n).then(e=>({id:t,usage:r,data:e,encoding:i})):this._requester.request(e,"image",n).then(e=>({id:t,usage:r,data:e,encoding:i}))}loadTextures(e,t,r){let i=this._options.textureUsageMask;return Promise.all(t.map(t=>{if(0===(t.usage&i))return null;let n=function(e,t){if(null!=t)return e.find(e=>0!==(e.encoding&t))}(t.encodings,this._options.textureEncodings);if(null==n)return this._logger.error("#loadTextures",this._logLayer,`No known encoding for texture found on node ${e.id}`),Promise.reject();let s=e.resources.texture||e.id,a=`${this._layerUrl}/nodes/${s}/textures/${n.name}`;return this._loadTexture(a,t.id,t.usage,n.encoding,r)}))}_loadFeatureData(e,t){let r=`${this._layerUrl}/nodes/${e}/features/0`;return this._requester.request(r,"json",t)}_loadGeometry(e,t,r){let i=`${this._layerUrl}/nodes/${e}/geometries/${t}`;return this._requester.request(i,"array-buffer",r)}}var ke=r(36005);let qe=class extends((0,T.w6)((0,y.b)((0,v.q)((0,b.A)((0,R.j)((0,d.M)((0,E.d)((0,_.p)((0,a.OU)(p.A)))))))))){constructor(e){super(e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null,this._elevationQueryAbortController=new AbortController,this._elevationQueryWorkerContext=`i3s-elevation-query-${this.uid}`,this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,this._modificationsGeneration=0}destroy(){this._elevationQueryAbortController.abort();let e=this._elevationQueryWorkerHandle;this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,e?.destroyContextAndSelf(this._elevationQueryWorkerContext),super.destroy()}initialize(){this.addHandles([(0,g.on)(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},g.OH),(0,g.wB)(()=>this.modifications,()=>this._modificationsGeneration++,g.OH),(0,g.wB)(()=>this.memoizedElevationQueryDependencies,()=>this._abortElevationQueriesAfterDependencyChange(),g.OH)])}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e}readModifications(e,t,r){this._modificationsSource={url:(0,Ee.f)(e,r),context:r}}set elevationInfo(e){(null==e||"absolute-height"===e.mode)&&this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get _elevationQueryWorker(){return this._elevationQueryWorkerHandle??=new be.Cm((e,t)=>ee.nu.schedule(e,t))}get memoizedElevationQueryDependencies(){return[this.elevationInfo?.offset,this._modificationsGeneration]}async queryElevation(e,t,r){let a={stack:[],error:void 0,hasError:!1};try{let u=r?.noDataValue??Number.MAX_VALUE,h=this._elevationQueryWorker,d=new AbortController;e.addHandles((0,l.rE)(d),d),(0,i.mS)(a,(0,l.Bf)((0,l.hA)(()=>e.removeHandles(d))),!1);let g=AbortSignal.any([r?.signal,this._elevationQueryAbortController.signal,d.signal].filter(n.Ru));await this.load({signal:g}),(0,c.Te)(g);let f=S.q.fromGeometry(t),m={signal:g,elevationOffset:this.elevationInfo?.offset??0,scheduler:e.resourceController.scheduler};if(null==this._elevationQueryWorkerSetup){let e=this.store?.defaultGeometrySchema;null!=e&&(this._elevationQueryWorkerSetup=(0,s.Ke)(h.setLegacySchema(this._elevationQueryWorkerContext,e)))}let p=await async function(e,t,r){let i=await e.indexInfo;if((0,c.Te)(r.signal),null==i)throw new o.A("integrated-mesh-elevation-query:index-missing","I3S index information is missing.");return"page"===i.type?new re(e,t,r,i).promise:new ie(e,t,r,i).promise}(this,f,m);(0,c.Te)(g);let _=p.coordinates[0].z===ne;_&&(p.coordinates[0].z=u);let y=await p.project(t.spatialReference,g);(0,c.Te)(g);let E=y??f.clone(),v={geometry:E.export(),noDataValue:u};return r?.returnSampleInfo&&(v.sampleInfo=E.coordinates.map(()=>({demResolution:_?-1:1}))),v}catch(e){a.error=e,a.hasError=!0}finally{(0,i.hk)(a)}}async queryElevationForGround(e,t){let r=S.q.fromGeometry(e),i=Ve(e),{view:n,...s}=t;if(null!=i&&"3d"===n?.type){let e=await this.queryElevation(n,i,s),t=S.q.fromGeometry(e.geometry),a=t.coordinates.map((t,r)=>({demResolution:e.sampleInfo?.[r]?.demResolution??(t.z===e.noDataValue?-1:1),source:this}));return{geometry:r.clone(t.coordinates).export(),noDataValue:e.noDataValue,sampleInfo:a}}return{geometry:r.export(),noDataValue:Number.MAX_VALUE,sampleInfo:r.coordinates.map(()=>({demResolution:-1,source:this}))}}_abortElevationQueriesAfterDependencyChange(){let e=this._elevationQueryAbortController;this._elevationQueryAbortController=new AbortController,e.abort()}async processElevationQueryGeometry(e,t){let r=await this._elevationQueryWorkerSetup;return null!=r&&(0,s.QA)(r),(0,c.Te)(t),this._elevationQueryWorker.invoke(e,t)}async _doLoad(e){let t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,c.QP)(e)}if((0,c.Te)(t),await this._fetchService(t),(0,c.Te)(t),null!=this._modificationsSource){let r=await pe.A.fromUrl(this._modificationsSource.url,this.spatialReference,e);(0,c.Te)(t),this.setAtOrigin("modifications",r,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t),(0,c.Te)(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){return this._debouncedSaveOperations(0,{getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"})}get isUsedAsGroundLayer(){return!(0,u.A)("enable-feature:im-as-ground")||(0,ve.S)(this.parent)||(0,ye.Q)(this.parent)}get replacesTerrain(){return!1}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new o.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}get elevationQueryDataRequester(){return new Se(this.customParameters,this.apiKey)}get elevationQueryNodeLoader(){return new Pe(this,this.elevationQueryDataRequester,h.A.getLogger("esri.layers.IntegratedMeshLayer"),this.store?.defaultGeometrySchema,[],{loadFeatureData:!1,textureUsageMask:0})}_validateElevationInfo(e){let t="Integrated mesh layers";(0,_e.XF)(h.A.getLogger(this),(0,_e.B)(t,"absolute-height",e)),(0,_e.XF)(h.A.getLogger(this),(0,_e.tW)(t,e))}};(0,i.Cg)([(0,f.MZ)({type:String,readOnly:!0})],qe.prototype,"geometryType",void 0),(0,i.Cg)([(0,f.MZ)({type:["show","hide"]})],qe.prototype,"listMode",void 0),(0,i.Cg)([(0,f.MZ)({type:["IntegratedMeshLayer"]})],qe.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1},readOnly:!0})],qe.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)({type:me.W4,readOnly:!0,clonable:!1})],qe.prototype,"nodePages",void 0),(0,i.Cg)([(0,f.MZ)({type:[me.uV],readOnly:!0,clonable:!1})],qe.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,f.MZ)({type:[me.Ot],readOnly:!0,clonable:!1})],qe.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,f.MZ)({type:[me.L0],readOnly:!0,clonable:!1})],qe.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],qe.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,f.MZ)({type:pe.A,clonable:e=>e?.clone()??e}),(0,m.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],qe.prototype,"modifications",void 0),(0,i.Cg)([(0,f.MZ)({clonable:e=>e?{...e}:null})],qe.prototype,"_modificationsSource",void 0),(0,i.Cg)([(0,ke.w)(["web-scene","portal-item"],"modifications")],qe.prototype,"readModifications",null),(0,i.Cg)([(0,f.MZ)(I.Yj)],qe.prototype,"elevationInfo",null),(0,i.Cg)([(0,f.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],qe.prototype,"path",void 0),(0,i.Cg)([(0,f.MZ)({clonable:!1})],qe.prototype,"_elevationQueryWorker",null),(0,i.Cg)([(0,f.MZ)()],qe.prototype,"_modificationsGeneration",void 0),(0,i.Cg)([(0,f.MZ)()],qe.prototype,"memoizedElevationQueryDependencies",null),(0,i.Cg)([(0,f.MZ)()],qe.prototype,"isUsedAsGroundLayer",null),(0,i.Cg)([(0,f.MZ)()],qe.prototype,"replacesTerrain",null),(0,i.Cg)([(0,f.MZ)({clonable:!1})],qe.prototype,"elevationQueryDataRequester",null),(0,i.Cg)([(0,f.MZ)({clonable:!1})],qe.prototype,"elevationQueryNodeLoader",null),qe=(0,i.Cg)([(0,f.$K)("esri.layers.IntegratedMeshLayer")],qe);const Ge=qe;function Ve(e){return e instanceof S.q?Ve(e.geometry):"point"===e.type?e:null}},85707(e,t,r){var i=r(32198),n=r(91429),s=r(54239);r.d(t,["a",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.heightModelInfo=null}read(e,t){super.read(e,t),"service"===t?.origin&&2===this.heightModelInfo?.origin&&(this.heightModelInfo.associatedSpatialReference=this.getAtOrigin("spatialReference","service"))}};return(0,i.Cg)([(0,n.MZ)({readOnly:!0,type:s.A})],r.prototype,"heightModelInfo",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.HeightModelInfoMixin")],r),r}])},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var i=r(4718),n=r(53966),s=r(84952),a=r(60694),o=r(10873);function l(e){let{nonStandardUrlAllowed:t=!1,separator:r}=e??{},s=(0,i.o8)(o.OZ),l=s.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,i,n){(0,a.LS)(this,e,r,t,n)}),{...s,set:function(e){if(null==e)return void this._set("url",e);let r=(0,a.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:n.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){let{separator:r}=t??{},i=(0,s.An)(e.url);return null!=i&&(null==e.dynamicDataSource?null!=e.layerId&&(i.path=(0,s.fj)(i.path,r??"",e.layerId.toString())):i.path=(0,s.fj)(i.path,"dynamicLayer")),i}},89707(e,t,r){r.d(t,{H:()=>i});class i{constructor(e=1/0,t=-1/0){this.minElevation=e,this.maxElevation=t}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(e){return this.minElevation<=e.minElevation&&this.maxElevation>=e.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(e){let t=Math.min(this.minElevation,e.minElevation),r=Math.max(this.maxElevation,e.maxElevation),i=t!==this.minElevation||r!==this.maxElevation;return this.minElevation=t,this.maxElevation=r,i}expandElevationRangeValues(e,t){let r=Math.min(this.minElevation,e),i=Math.max(this.maxElevation,t),n=r!==this.minElevation||i!==this.maxElevation;return this.minElevation=r,this.maxElevation=i,n}setElevationRange(e){this.minElevation=e.minElevation,this.maxElevation=e.maxElevation}setElevationRangeValues(e,t){this.minElevation=e,this.maxElevation=t}equals(e){return this.minElevation===e.minElevation&&this.maxElevation===e.maxElevation}}},62747(e,t,r){r.d(t,{W7:()=>s,hH:()=>a});var i=r(1843),n=r(65786);n.Y;class s extends n.Y{constructor(e,t,r){super(),this.hasVertexColors=e,this.hasNormals=t,this.textureCoordinateType=r}}function a(e){let t=(0,i.BP)().vec3f("position");return e.hasNormals&&t.vec2i16("normalCompressed",{glNormalized:!0}),1===e.textureCoordinateType?t.vec2f("uv0"):2===e.textureCoordinateType&&(t.vec2f("uv0"),t.vec4u16("uvRegion",{glNormalized:!0})),e.hasVertexColors&&t.vec4u8("color",{glNormalized:!0}),t.freeze()}},92359(e,t,r){r.d(t,{nu:()=>c,W6:()=>u}),r(4576),r(71511),r(44208),r(53966);var i=r(17676),n=(r(36708),r(44794),r(78659)),s=r(32198),a=r(69622),o=r(91429);let l=class extends a.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,s.Cg)([(0,o.MZ)()],l.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,s.Cg)([(0,o.MZ)()],l.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),l=(0,s.Cg)([(0,o.$K)("esri.views.support.debugFlags")],l),new l,r(49186),Symbol("Yield");const u={RESOURCE_CONTROLLER_IMMEDIATE:"immediate",RESOURCE_CONTROLLER:"schedule",SLIDE:"slide",STREAM_DATA_LOADER:"stream loader",ELEVATION_QUERY:"elevation query",TERRAIN_SURFACE:"terrain",SURFACE_GEOMETRY_UPDATES:"surface geometry updates",LOD_RENDERER:"LoD renderer",GRAPHICS_CORE:"Graphics3D",I3S:"I3S",LYR3D:"Lyr3D",TILES3D:"3DTiles",POINT_CLOUD_LAYER:"point cloud",FEATURE_TILE_FETCHER:"feature fetcher",STREAM_CONTROLLER:"stream controller",SCREEN_POLYGON_INTERSECTION:"screen polygon intersection",OCCLUSION_QUERY:"occlusion query",OVERLAY:"overlay",OVERLAY_RENDERER:"overlay renderer",STAGE:"stage",GRAPHICS_DECONFLICTOR:"graphics deconflictor",FILTER_VISIBILITY:"graphics filter visibility",SCALE_VISIBILITY:"graphics scale visibility",FRUSTUM_VISIBILITY:"graphics frustum visibility",POINT_OF_INTEREST_FREQUENT:"POI frequent",POINT_OF_INTEREST_INFREQUENT:"POI infrequent",LABELER:"labeler",FEATURE_FILTER_HIGHLIGHT:"feature filter highlight",FEATURE_QUERY_ENGINE:"feature query",FEATURE_TILE_TREE:"feature tile tree",FEATURE_TILE_TREE_ACTIVE:"fast feature tile tree",ELEVATION_ALIGNMENT:"elevation alignment",ELEVATION_ALIGNMENT_SCENE:"elevation alignment scene",TEXT_TEXTURE_ATLAS:"text texture atlas",TEXTURE_UNLOAD:"texture unload",LINE_OF_SIGHT_TOOL:"line of sight tool",LINE_OF_SIGHT_TOOL_INTERACTIVE:"interactive line of sight tool",VOLUME_MEASUREMENT:"volume measurement",ELEVATION_PROFILE:"elevation profile",SNAPPING:"snapping",SHADOW_ACCUMULATOR:"shadow accumulator",CLOUDS_GENERATOR:"clouds generator",FLOW_GENERATOR:"flow generator",GAUSSIAN_SPLAT_SORTING:"gaussian splat sorting",GAUSSIAN_SPLAT_TEXTURE_ATLAS:"gaussian splat texture atlas",MAPVIEW_FETCH_QUEUE:"mapview fetch queue",MAPVIEW_LAYERVIEW_UPDATE:"mapview layerview update",MAPVIEW_VECTOR_TILE_PARSING_QUEUE:"mapview vector tile parsing queue",NONE:0,TEST_PRIO:1};new Map([[u.RESOURCE_CONTROLLER_IMMEDIATE,0],[u.RESOURCE_CONTROLLER,4],[u.SLIDE,0],[u.STREAM_DATA_LOADER,0],[u.ELEVATION_QUERY,0],[u.TERRAIN_SURFACE,1],[u.SURFACE_GEOMETRY_UPDATES,1],[u.LOD_RENDERER,2],[u.GRAPHICS_CORE,2],[u.I3S,2],[u.LYR3D,2],[u.TILES3D,3],[u.POINT_CLOUD_LAYER,2],[u.FEATURE_TILE_FETCHER,2],[u.STREAM_CONTROLLER,2],[u.SCREEN_POLYGON_INTERSECTION,0],[u.CLOUDS_GENERATOR,2],[u.OCCLUSION_QUERY,2],[u.OVERLAY,4],[u.OVERLAY_RENDERER,4],[u.STAGE,4],[u.GRAPHICS_DECONFLICTOR,4],[u.FILTER_VISIBILITY,4],[u.SCALE_VISIBILITY,4],[u.FRUSTUM_VISIBILITY,4],[u.POINT_OF_INTEREST_FREQUENT,6],[u.POINT_OF_INTEREST_INFREQUENT,30],[u.LABELER,8],[u.FEATURE_FILTER_HIGHLIGHT,2],[u.FEATURE_QUERY_ENGINE,8],[u.FEATURE_TILE_TREE,16],[u.FEATURE_TILE_TREE_ACTIVE,0],[u.ELEVATION_ALIGNMENT,12],[u.ELEVATION_ALIGNMENT_SCENE,14],[u.TEXT_TEXTURE_ATLAS,12],[u.TEXTURE_UNLOAD,12],[u.LINE_OF_SIGHT_TOOL,16],[u.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[u.VOLUME_MEASUREMENT,4],[u.SNAPPING,0],[u.SHADOW_ACCUMULATOR,30],[u.FLOW_GENERATOR,12],[u.GAUSSIAN_SPLAT_SORTING,2],[u.GAUSSIAN_SPLAT_TEXTURE_ATLAS,12],[u.MAPVIEW_FETCH_QUEUE,0],[u.MAPVIEW_LAYERVIEW_UPDATE,2],[u.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]),(0,n.l5)(6.5),(0,n.l5)(1),(0,n.l5)(30),(0,n.l5)(1e3/30),(0,n.l5)(100),Symbol.dispose;const h=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this._enabled&&this._budget!==1/0&&this.elapsed>=this._budget,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};h.enabled=!1;class d{remove(){}[Symbol.dispose](){this.remove()}processQueue(){}schedule(e,t,r){try{if((0,i.G4)(t)){let e=(0,i.NK)();return r?Promise.resolve(r(e)):Promise.reject(e)}return(0,i.z7)(e(h))}catch(e){return Promise.reject(e)}}reschedule(e,t,r){return this.schedule(e,t,r)}async scheduleGenerator(e,t,r){if((0,i.G4)(t)){let e=(0,i.NK)();if(r)return r(e);throw e}let n=e(h);for(;;){let e=n.next(h),s=(0,i.$X)(e)?await e:e;if((0,i.G4)(t)){let e=(0,i.NK)();if(r){let t=r(e),s=n.return(null);return(0,i.$X)(s)&&await(0,i.QZ)(s),t}let t=n.throw(e);throw(0,i.$X)(t)&&await(0,i.QZ)(t),e}if(s.done)return s.value}}}const c=new d}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7915],{68197(e,t,r){r.d(t,{A:()=>h});var i=r(40876),n=r(4576),s=r(34727),a=r(78888);function o(e){return(0,s.qE)((0,a.Vr)(e),0,255)}function l(e,t){let r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}function u(e){return.2126*(0,i.Q6)(e.r)+.7152*(0,i.Q6)(e.g)+.0722*(0,i.Q6)(e.b)}class h{static blendColors(e,t,r,i=new h){return i.r=Math.round(e.r+(t.r-e.r)*r),i.g=Math.round(e.g+(t.g-e.g)*r),i.b=Math.round(e.b+(t.b-e.b)*r),i.a=e.a+(t.a-e.a)*r,i._sanitize()}static fromRgb(e,t){let r=(0,i.lT)(e);return r?h.fromArray(r,t):null}static fromHex(e,t=new h){let r=(0,i.oW)(e);return r?h.fromArray(r,t):null}static fromArray(e,t=new h){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){let r=(0,i.Eq)(e);return r?h.fromArray(r,t):null}static fromJSON(e){return null==e?void 0:new h([e[0],e[1],e[2],(e[3]??255)/255])}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null==this.a?1:this.a,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(e,t=3){let r=e instanceof h?e:new h(e),i=u(this),n=u(r);return(Math.max(i,n)+.05)/(Math.min(i,n)+.05)<t}setColor(e){if("string"==typeof e)h.fromString(e,this);else if((0,n.yc)(e))h.fromArray(e,this);else{let t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof h||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){let t=e?.capitalize??!1,r=e?.digits??6,i=3===r||4===r,n=4===r||8===r,s=`#${l(this.r,i)}${l(this.g,i)}${l(this.b,i)}${n?l(Math.round(255*this.a),i):""}`;return t?s.toUpperCase():s}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(e=!1){let t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){let t=o(this.r),r=o(this.g),i=o(this.b);return 0===e||1!==this.a?[t,r,i,o(255*this.a)]:[t,r,i]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(e,t,r,i){this.r=e,this.g=t,this.b=r,this.a=i}}h.prototype.declaredClass="esri.Color"},40876(e,t,r){r.d(t,{Eq:()=>f,G1:()=>m,Q6:()=>E,TS:()=>s,V6:()=>n,Vm:()=>g,ay:()=>l,c1:()=>p,c4:()=>a,j5:()=>u,lT:()=>d,oW:()=>h,xV:()=>v});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function n(e){return!!i[e]||!!i[e.toLowerCase()]}function s(e){return i[e]??i[e.toLowerCase()]}function a(e){return[...s(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;let i=6*r;return i<1?e+(t-e)*i:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,i=1){let n=(e%360+360)%360/360,s=r<=.5?r*(t+1):r+t-r*t,a=2*r-s;return[Math.round(255*o(a,s,n+1/3)),Math.round(255*o(a,s,n)),Math.round(255*o(a,s,n-1/3)),i]}function u(e){let t=e.length>5,r=t?8:4,i=(1<<r)-1,n=t?1:17,s=t?9===e.length:5===e.length,a=Number("0x"+e.slice(1));if(isNaN(a))return null;let o,l=[0,0,0,1];return s&&(o=a&i,a>>=r,l[3]=n*o/255),o=a&i,a>>=r,l[2]=n*o,o=a&i,a>>=r,l[1]=n*o,o=a&i,a>>=r,l[0]=n*o,l}function h(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),n=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,i+16*i,(n+16*n)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function d(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){let t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),c(t)}return c(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function c(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?m(e[3]):1,e}function f(e){let t=n(e)?s(e):null;return t??=d(e),t??=h(e),t}function g(e){let t=f(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function m(e){return _(e,0,1)}function p(e){return Math.round(_(e,0,255))}function _(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const y=1/2.2;function E(e){return e**2.2}function v(e){return e**y}r.d(t,["iw",0,y])},85334(e,t,r){r.d(t,{$:()=>y,IB:()=>o,Iy:()=>I,KV:()=>R,N2:()=>E,RH:()=>b,ZD:()=>v,sn:()=>T});var i=r(68197),n=r(4576),s=r(4718),a=r(34727);function o(e){return"r"in e&&"g"in e&&"b"in e}function l(e){return"h"in e&&"s"in e&&"v"in e}function u(e){return"l"in e&&"a"in e&&"b"in e}function h(e){return"l"in e&&"c"in e&&"h"in e}r(78955),r(91829);const d=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],c=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function f(e,t){let r,i,n=[];if(e[0].length!==t.length)throw Error("dimensions do not match");let s=e.length,a=e[0].length,o=0;for(r=0;r<s;r++){for(o=0,i=0;i<a;i++)o+=e[r][i]*t[i];n.push(o)}return n}function g(e){let t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=f(d,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function m(e){let t=f(c,[e.x/100,e.y/100,e.z/100]).map(e=>{let t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function p(e){let t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function _(e){let t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function y(e){return o(e)?e:h(e)?function(e){return m(_(function(e){let t=e.l,r=e.c,i=e.h;return{l:t,a:r*Math.cos(i),b:r*Math.sin(i)}}(e)))}(e):u(e)?function(e){return m(_(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?m(e):l(e)?function(e){let t,r=(e.h+360)%360/60,i=e.s/100,n=e.v/100*255,s=n*i,a=s*(1-Math.abs(r%2-1));switch(Math.floor(r)){case 0:t={r:s,g:a,b:0};break;case 1:t={r:a,g:s,b:0};break;case 2:t={r:0,g:s,b:a};break;case 3:t={r:0,g:a,b:s};break;case 4:t={r:a,g:0,b:s};break;case 5:case 6:t={r:s,g:0,b:a};break;default:t={r:0,g:0,b:0}}return t.r=Math.round(t.r+n-s),t.g=Math.round(t.g+n-s),t.b=Math.round(t.b+n-s),t}(e):e}function E(e){return l(e)?e:function(e){let{r:t,g:r,b:i}=e,n=Math.max(t,r,i),s=n-Math.min(t,r,i),a=n,o=0===s?0:n===t?(r-i)/s%6:n===r?(i-t)/s+2:(t-r)/s+4,l=0===s?0:s/a;return o<0&&(o+=6),o*=60,l*=100,a*=100/255,{h:o,s:l,v:a}}(y(e))}function v(e){return u(e)?e:function(e){return p(g(e))}(y(e))}function b(e){return h(e)?e:function(e){return function(e){let t=e.l,r=e.a,i=e.b,n=Math.sqrt(r*r+i*i),s=Math.atan2(i,r);return s=s>0?s:s+2*Math.PI,{l:t,c:n,h:s}}(p(g(e)))}(y(e))}function R(e){return e[0]??=0,e[1]??=0,e[2]??=0,e}function T(e){return e.length=4,R(e),e[3]??=1,(0,a.qE)(e[3],0,1),e}function I(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new i.A(e):e)).length||1===t){let r=[],i=e[0];for(let e=0;e<t;e++)r.push(i.clone());return r}if(r.shuffle&&(e=(0,n.k4)((0,s.o8)(e),r.seed)),e.length>=t){let r=[],i=(e.length-1)/(t-1);for(let n=0;n<t;n++){let t=Math.round(n*i);r.push(e[t].clone())}return r}return function(e,t,r={}){let i=[],s=e.length-1,a=Math.ceil((t-e.length)/s);e:for(let n=0;n<s;n++){let s=e[n],o=e[n+1];for(let n=1;n<=a;n++){let l=n/(a+1);if(i.push(A(s,o,l,r)),i.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,n.k4)(i,r.seed??1)]}(e,t,r)}const S=(e,t)=>{let r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function A(e,t,r,s={}){let a=e.r,o=e.g,l=e.b,u=t.r,h=t.g,d=t.b,c=Math.round(a+(u-a)*r),f=Math.round(o+(h-o)*r),g=Math.round(l+(d-l)*r);if(!s.offset)return new i.A([c,f,g]);let m=(0,n.Mo)(s.seed);return new i.A([S(c,m),S(f,m),S(g,m)])}},90629(e,t,r){r.d(t,{Lz:()=>a,PN:()=>o,cr:()=>l,gs:()=>h,r_:()=>d,tc:()=>u}),r(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,n=o(1),s=a(1);function a(e){return e?e/72*96:0}function o(e){return e?72*e/96:0}function l(e){if("string"==typeof e){let t=e.match(i);if(t){let r=Number(t[1]),i=t[3]&&t[3].toLowerCase(),n=e.startsWith("-"),s="px"===i?o(r):r;return n?-s:s}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function u(e=0,t=0){return{x:e,y:t}}function h(e=0,t=0){return[e,t]}function d(e=0,t=0,r=0){return[e,t,r]}r.d(t,["L7",0,s,"ps",0,n])},4197(e,t,r){r.d(t,{Vj:()=>a,cj:()=>s,jh:()=>n});var i=r(9093);function n(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function s(e){return[...e]}function a(e){let t=(0,i.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>x,C:()=>a,DC:()=>c,Ej:()=>E,Ie:()=>S,Jt:()=>A,Lu:()=>b,Ne:()=>R,RF:()=>d,TF:()=>_,VL:()=>g,aI:()=>w,fA:()=>o,gE:()=>u,gX:()=>y,hZ:()=>I,iT:()=>f,is:()=>M,pg:()=>v,uJ:()=>p,vI:()=>T,vY:()=>l,vt:()=>s,w1:()=>h,yr:()=>m}),r(35522);var i=r(5443),n=(r(19419),r(4197));function s(e=C){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function o(e,t,r,i,n,a,o=s()){return o[0]=e,o[1]=t,o[2]=r,o[3]=i,o[4]=n,o[5]=a,o}function l(e,t=s()){return function(e,t,r,i=s()){return I(i,N),function(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],a=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),a=Math.min(a,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=a,e[3]=o,e[4]=l,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function u(e,t=(0,n.jh)(24)){let[r,i,s,a,o,l]=e;return t[0]=r,t[1]=i,t[2]=s,t[3]=r,t[4]=i,t[5]=l,t[6]=r,t[7]=o,t[8]=s,t[9]=r,t[10]=o,t[11]=l,t[12]=a,t[13]=i,t[14]=s,t[15]=a,t[16]=i,t[17]=l,t[18]=a,t[19]=o,t[20]=s,t[21]=a,t[22]=o,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new i.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new i.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function d(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[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,r,i]){!function(e,t,r,i){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],i),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],i)}(e,t,r,i)}function g(e){return e[0]>=e[3]?0:e[3]-e[0]}function m(e){return e[1]>=e[4]?0:e[4]-e[1]}function p(e){return e[2]>=e[5]?0:e[5]-e[2]}function _(e){let t=g(e),r=p(e),i=m(e);return t*t+r*r+i*i}function y(e,t=[0,0,0]){return t[0]=e[0]+g(e)/2,t[1]=e[1]+m(e)/2,t[2]=e[2]+p(e)/2,t}function E(e,t=[0,0,0]){return t[0]=g(e),t[1]=m(e),t[2]=p(e),t}function v(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 R(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function T(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function I(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 S(e){return e?I(e,N):s(N)}function A(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 x(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=-1/0,e[3]=i,e[4]=n,e[5]=1/0,e}function M(e){return 6===e.length}function w(e,t,r){if(null==e||null==t)return e===t;if(!M(e)||!M(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const N=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];s(),r.d(t,["qv",0,N,"v_",0,C])},50498(e,t,r){var i=r(66552),n=r(5443),s=r(91075),a=r(48526),o=r(86738),l=r(39829),u=r(82799);const h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),d=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),c={base:s.A,key:"type",typeMap:{extent:n.A,multipoint:a.A,point:o.A,polyline:u.A,polygon:l.A}},f=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,d,"gy",0,h,"iI",0,f,"yR",0,c])},42521(e,t,r){r.r(t),r.d(t,{default:()=>Ge});var i=r(32198),n=r(4576),s=r(60999),a=r(69540),o=r(49186),l=r(36563),u=r(44208),h=r(53966),d=r(25728),c=r(17676),f=r(36708),g=r(91429),m=r(87024),p=r(4146),_=r(52136),y=r(18768),E=r(69208),v=r(34287),b=r(8303),R=r(25036),T=r(58947),I=r(10873),S=r(10292),A=r(58083),x=r(9093),M=r(35522),w=r(51850),N=r(34727),C=r(37539),O=r(79258);function L(e,t,r,i){let n=i+t;if(n<i/2||r>n)return Number.MAX_VALUE;let s=Math.abs(U*e)+Math.asin(r/n);return s>=Math.PI/2?Number.MAX_VALUE:r/Math.cos(s)}const D=(0,w.vt)(),U=(0,N.kU)(1);var F=r(27993),P=r(16930),k=r(98764);(0,w.vt)();var q=r(71351),G=r(28540),V=r(19419),Q=r(89707);class j extends Q.H{constructor(e,t){super(NaN,NaN),this.id=e,this.serviceMbsInIndexSR=t,this._serviceMbsInRenderSRElevationAdjusted=new G.i(0,0,0,-1),this._serviceMbsInRenderSR=new G.i(0,0,0,-1),this._serviceMbsElevationUpdateExtent=null,this._mbsConeInRenderSR=null}get serviceMbsInRenderSRElevationAdjusted(){return this._serviceMbsInRenderSRElevationAdjusted}updateServiceMbsInRenderSRElevationAdjusted(e){return this._serviceMbsInRenderSRElevationAdjusted.copyFrom(e),this._serviceMbsInRenderSRElevationAdjusted}get serviceMbsInRenderSR(){return this._serviceMbsInRenderSR}updateServiceMbsInRenderSR(e){return this._serviceMbsInRenderSR.copyFrom(e),null!=this._serviceMbsElevationUpdateExtent&&(0,V.Ie)(this._serviceMbsElevationUpdateExtent),this._serviceMbsInRenderSR}get serviceMbsElevationUpdateExtent(){return this._serviceMbsElevationUpdateExtent??=(0,V.Ie)()}get mbsConeInRenderSR(){return this._mbsConeInRenderSR}updateMbsConeInRenderSR(e){return this._mbsConeInRenderSR=e.clone(),this._mbsConeInRenderSR}invalidateServiceBVsInRenderSR(){this._serviceMbsInRenderSRElevationAdjusted.invalidate(),this._serviceMbsInRenderSR.invalidate(),null!=this._serviceMbsElevationUpdateExtent&&(0,V.Ie)(this._serviceMbsElevationUpdateExtent),this._mbsConeInRenderSR=null,this.serviceObbInRenderSR?.invalidate()}shareServiceBVsInRenderSRWith(e){this.serviceObbInRenderSR=e.serviceObbInRenderSR,this._serviceMbsInRenderSRElevationAdjusted=e._serviceMbsInRenderSRElevationAdjusted,this._serviceMbsInRenderSR=e._serviceMbsInRenderSR,this._serviceMbsElevationUpdateExtent=e._serviceMbsElevationUpdateExtent??=(0,V.Ie)(),this._mbsConeInRenderSR=e._mbsConeInRenderSR}}class H extends j{constructor(e,t,r,i,n,s,a,o,l,u,h){super(e,r),this.index=t,this.childCount=i,this.level=n,this.resources=s,this.version=a,this.lodMetric=o,this.maxError=l,this.numFeatures=u,this.failed=!1,this.cacheState=0,this.vertexCount=0,this.memory=0,this.childrenLoaded=0,this.hasModifications=!1,this.imModificationImpact=4,this.elevationAgnosticBoundingVolume=new W,this.serviceObbInIndexSR=h}invalidateServiceBVsInRenderSR(){super.invalidateServiceBVsInRenderSR(),this.elevationAgnosticBoundingVolume.invalidate()}}class W{constructor(){this._data=[0,0,0,W.invalidRadius]}static{this.invalidRadius=-2}invalidate(){this._data[3]=W.invalidRadius}get valid(){return this._data[3]!==W.invalidRadius}get radius(){return this._data[3]}getAxis(e){return e[0]=this._data[0],e[1]=this._data[1],e[2]=this._data[2],e}set(e,t){this._data[0]=e[0],this._data[1]=e[1],this._data[2]=e[2],this._data[3]=t}intersectsFrustumConservative(e,t,r){if(!this.valid)return!0;let i=this.getAxis($),{center:n,radius:s}=e.boundingSphere,a=s+r;return 1===t?this.radius>B||function(e,t,r,i){let n=(0,M.Bw)(r);if(n<=i)return!0;let s=(0,M.Om)(e,r);if(s<=0)return-s<=i;let a=(0,N.qE)(s/n,-1,1),o=Math.sqrt(1-a*a),l=(0,N.qE)(i/n,0,1);return o*Math.sqrt(1-l*l)-l*a<=t}(i,this.radius,n,a):function(e,t,r,i){let n=r[0]-e[0],s=r[1]-e[1],a=t+i;return n*n+s*s<=a*a}(i,this.radius,n,a)&&function(e,t,r,i,n){for(let s of n){let n=s[0],a=s[1],o=s[2],l=o>0?r:i;if(n*e[0]+a*e[1]+o*l+s[3]-Math.hypot(n,a)*t>0)return!1}return!0}(i,this.radius,n[2]-a,n[2]+a,e.planes)}}const $=(0,w.vt)(),B=.9;var z=r(25992),Z=r(66480),Y=r(57005),K=r(4431),X=r(62747),J=r(58682),ee=r(92359);class te{constructor(e,t,r){this._layer=e,this._descriptor=t,this._options=r,this._subtaskAbortController=new AbortController,this._highest=-1/0,this._signal=AbortSignal.any([r.signal,this._subtaskAbortController.signal]),this._indexSpatialReference=(0,Z.Rm)(e),this._vertexSpatialReference=(0,Z.Dd)(e),this._intersectionSpaceSpatialReference=function(e,t){return e?(0,k.lO)(t):t.isGeographic?P.A.PlateCarree:t}(this._indexSpatialReference.isGeographic,this._indexSpatialReference),this._indexToVertexProjector=(0,C.wy)(this._indexSpatialReference,this._vertexSpatialReference),this._vertexToIntersectionSpaceProjector=(0,C.wy)(this._vertexSpatialReference,this._intersectionSpaceSpatialReference),this.frameTask=r.scheduler.registerTask(ee.W6.ELEVATION_QUERY),this.promise=this._run()}async _run(){let e={stack:[],error:void 0,hasError:!1};try{(0,i.mS)(e,this.frameTask,!1);try{let e=this._descriptor;if("point"!==e.geometry.type)throw new o.A("elevation-query:invalid-geometry","Only point geometries can be used to query elevation");if(null==this._indexToVertexProjector||null==this._vertexToIntersectionSpaceProjector)throw new o.A("integrated-mesh-elevation-query:projection","Failed to create projection for elevation query.");let t=await e.project(this._indexSpatialReference,this._signal);(0,c.Te)(this._signal),t??this._throwSpatialReferenceMismatchError();let r=t.coordinates[0],i=function(e,t,r,i,n){let s=(0,w.fA)(e,t,r),a=(0,w.fA)(e,t,r-1e3),o=(0,w.vt)(),l=(0,w.vt)();return(0,F.F)(s,i,o,n)&&(0,F.F)(a,i,l,n)?(0,q.Cr)(o,l):null}(r.x,r.y,this.getRootRayOriginZ(),this._indexSpatialReference,this._intersectionSpaceSpatialReference);return i??this._throwSpatialReferenceMismatchError(),this._queryRay=i,await this.visitRoot(),(0,c.Te)(this._signal),r.z=this._highest===-1/0?ne:this._highest,t}catch(e){throw this._subtaskAbortController.abort(),e}}catch(t){e.error=t,e.hasError=!0}finally{(0,i.hk)(e)}}_throwSpatialReferenceMismatchError(){throw new o.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${this._descriptor.spatialReference.wkid}' on an elevation service in '${this._indexSpatialReference.wkid}'`)}_intersectsQueryObb(e){let t=this._queryRay,r=new Y.ab;return e.transform(r,this._indexSpatialReference,this._intersectionSpaceSpatialReference),r.intersectRay(t.origin,t.direction)}intersectsQueryBounds(e){if(null==e)return!0;let t=this._queryRay;if(null!=e.obb)return this._intersectsQueryObb(Y.ab.fromJSON(e.obb));let r=new G.i;return!function(e,t,r,i){if(null==e||null==t||null==i)return!1;let n=(0,C.Tp)(t,i);if(null==n?.projector)return!1;if(n.projector===C.pO)return r.copyFrom(e),!0;let{source:s,dest:a,projector:o}=n;if(3===a.spatialReferenceId){let t=C.w5[s.spatialReferenceId][2];return null!=t&&(t(e.center,0,D,0),(0,C.s7)(D,0,r.center,0),r.radius=L(D[1],e.center[2],e.radius,O.$O.radius),!0)}if(2!==s.spatialReferenceId&&5!==s.spatialReferenceId||11!==a.spatialReferenceId){o(e.center,0,r.center,0);let t=s.metersPerUnit??1,i=a.metersPerUnit??1;r.radius=e.radius*t/i}else{let t=C.w5[s.spatialReferenceId][1],i=C.w5[1][11],n=e.radius;null!=t&&null!=i&&(n=L(e.center[1],e.center[2],e.radius,O.$O.radius)),o(e.center,0,r.center,0),r.radius=n}return!0}(new G.i(e.mbs),this._indexSpatialReference,r,this._intersectionSpaceSpatialReference)||r.intersectRay(t)}async _processLeafNode(e){let t=await this._layer.elevationQueryNodeLoader.loadNodeData(e,this._signal);if((0,c.Te)(this._signal),null==t.geometryBuffer||null==t.geometryDescriptor)return;let r=await this.transformNode(e,t);(0,c.Te)(this._signal),null!=r&&await this.frameTask.schedule(()=>{this._highest=this.intersectTransformedGeometry(r,this._highest,this._options.elevationOffset)},this._signal)}async transformNode(e,t){let r=e.serviceMbsInIndexSR;if(null==r)return null;let i=(0,z.C)(r,0,se,this._indexSpatialReference,this._intersectionSpaceSpatialReference),n={context:`i3s-elevation-query-${this._layer.uid}`,geometryBuffer:t.geometryBuffer,geometryData:null,geometryDescriptor:t.geometryDescriptor,layouts:[ae],globalTrafo:i,geometryElevationOffset:0,mbs:r.toJSON(),obbData:e.serviceObbInIndexSR?.data,elevationOffset:0,planetRadiusInGlobalMode:0,needNormals:!1,computeNormals:!1,normalReferenceFrame:se,indexToVertexProjector:this._indexToVertexProjector,vertexToRenderProjector:this._vertexToIntersectionSpaceProjector},s=await this._layer.processElevationQueryGeometry(n,this._signal);return(0,c.Te)(this._signal),s}intersectTransformedGeometry(e,t,r){let i=e.globalTrafo;if(null==(0,A.B8)(oe,i))return t;let n=this._queryRay,s=(0,M.Z0)(le,n.origin,oe),a=(0,M.WQ)(ue,n.origin,n.direction),o=(0,M.Z0)(he,a,oe),l=(0,M.jb)(de,o,s),{data:u,indices:h}=e.transformedGeometry.positionData,d=h.length/3,c=t;return(0,J.h7)(s,l,0,d,h,u,3,!1,e=>{let t=(0,M.hs)(ce,l,e);(0,M.WQ)(t,t,s);let n=(0,M.Z0)(fe,t,i),a=ge;if((0,F.F)(n,this._intersectionSpaceSpatialReference,a,this._layer.spatialReference)){let e=a[2]+r;c=Math.max(c,e)}}),c}async requestJSON(e){let t=await this._layer.elevationQueryDataRequester.request(e,"json",this._signal);return(0,c.Te)(this._signal),t}}class re extends te{constructor(e,t,r,i){super(e,t,r),this._pendingPages=new Map,this._loadedPages=new Map,this._pageSize=i.pageSize,this._rootIndex=i.rootIndex,this._urlPrefix=i.urlPrefix;let n=this._pageId(this._rootIndex),s=this._rootIndex-n*this._pageSize,a=Y.ab.fromJSON(i.rootPage.nodes[s].obb);this._rootRayOriginZ=a.centerZ+a.radius+1,this._loadedPages.set(n,i.rootPage)}visitRoot(){return this._visitNode(this._rootIndex)}getRootRayOriginZ(){return this._rootRayOriginZ}_pageId(e){return Math.floor(e/this._pageSize)}getPage(e){let t=this._loadedPages.get(e);if(null!=t)return Promise.resolve(t);let r=this._pendingPages.get(e);if(null!=r)return r;let i=this.requestJSON(`${this._urlPrefix}${e}`);return this._pendingPages.set(e,i),i.then(t=>{this._loadedPages.set(e,t),this._pendingPages.delete(e)},()=>this._pendingPages.delete(e)),i}async _visitNode(e){let t=this._pageId(e),r=await this.getPage(t);(0,c.Te)(this._signal);let i=r.nodes[e-t*this._pageSize],n=Y.ab.fromJSON(i.obb);if(!this._intersectsQueryObb(n))return;let{children:s}=i;if(null!=s&&s.length>0)return await Promise.all(s.map(e=>this._visitNode(e))),void(0,c.Te)(this._signal);let a=this._createNode(e,i,n);null!=a&&(await this._processLeafNode(a),(0,c.Te)(this._signal))}_createNode(e,t,r){let{mesh:i}=t;if(null==i?.geometry)return null;let n=new G.i(r.getCenter((0,w.vt)()),r.radius),{geometry:s,material:a}=i;return new H(`${e}`,e,n,t.children?.length??0,0,{hasSharedResource:!1,isEmpty:!1,geometry:`${s.resource}`,geometryDefinition:s.definition,materialDefinition:a?.definition??-1},"",0,0,s.featureCount??null,r)}}class ie extends te{constructor(e,t,r,i){super(e,t,r),this._rootNode=i.rootNode,this._urlPrefix=i.urlPrefix}visitRoot(){return this.intersectsQueryBounds(this._rootNode)?this._visitNodeData(this._rootNode,null!=this._rootNode.obb):Promise.resolve()}getRootRayOriginZ(){return this._rootNode.mbs[2]+this._rootNode.mbs[3]+1}_visitNode(e){return this.intersectsQueryBounds(e)?this._visitNodeAsync(e):Promise.resolve()}async _visitNodeAsync(e){let t=await this.requestJSON(`${this._urlPrefix}${e.id}`);(0,c.Te)(this._signal),await this._visitNodeData(t,null!=e.obb),(0,c.Te)(this._signal)}async _visitNodeData(e,t){if(!t&&null!=e.obb&&!this._intersectsQueryObb(Y.ab.fromJSON(e.obb)))return;let{children:r}=e;if(null!=r&&r.length>0)return await Promise.all(r.map(e=>this._visitNode(e))),void(0,c.Te)(this._signal);let i=this._createNode(e);null!=i&&(await this._processLeafNode(i),(0,c.Te)(this._signal))}_createNode(e){let{geometryData:t,id:r}=e;if(null==t||0===t.length)return null;let i=null==e.obb?null:Y.ab.fromJSON(e.obb),n=new G.i(e.mbs);return new H(r,0,n,e.children?.length??0,0,{hasSharedResource:null!=e.sharedResource,isEmpty:!1,geometry:r,geometryDefinition:0},e.version??"",0,0,null,i)}}const ne=Number.MAX_VALUE,se="none",ae=(0,K.U)((0,X.hH)(new X.W7(!1,!1,0))),oe=(0,x.vt)(),le=(0,w.vt)(),ue=(0,w.vt)(),he=(0,w.vt)(),de=(0,w.vt)(),ce=(0,w.vt)(),fe=(0,w.vt)(),ge=(0,w.vt)();var me=r(50805),pe=r(58325),_e=r(24212),ye=r(80215),Ee=r(97159),ve=r(16215),be=r(98697),Re=r(56507),Te=r(97768),Ie=r(50075);class Se{constructor(e,t){this._customParameters=e,this._apiKey=t,this._activeRequests=new Set}isFull(e){return(0,Ie._i)(e)}request(e,t,r){let i=new AbortController,n=(0,c.NY)(r,()=>i.abort()),s={...Ie.Fz,signal:i.signal,responseType:t,query:{...this._customParameters,token:this._apiKey}},a=(0,Re.A)(e,s),o={abortController:i,abortHandle:n};return this._activeRequests.add(o),a.then(({data:e})=>e).finally(()=>{o.abortController=null,o.abortHandle=(0,Te.xt)(o.abortHandle),this._activeRequests.delete(o)})}cancelAll(){this._activeRequests.forEach(e=>{e.abortController=(0,Te.DC)(e.abortController),e.abortHandle=(0,Te.xt)(e.abortHandle)}),this._activeRequests.clear()}}var Ae=r(4718),xe=r(84952),Me=r(59418),we=r(85334);r(91829),r(73941),r(76200);var Ne=r(74810),Ce=r(49788);function Oe(e){return e.sort((e,t)=>e.encoding-t.encoding)}const Le={ktx2:1,basis:2,dds:4,png:8,jpg:16,"ktx-etc2":32},De={"image/ktx2":2,"image/x.basis":2,"image/vnd-ms.dds":4,"image/png":8,"image/jpg":16,"image/jpeg":16,"image/ktx":32};function Ue(e){let t=e?.materialDefinitions?Object.keys(e.materialDefinitions)[0]:null,r=e?.textureDefinitions?Object.keys(e.textureDefinitions)[0]:null,i=t?e.materialDefinitions?.[t]:null,n=r?e.textureDefinitions?.[r]:null,s=Fe();if(null!=i){let e=i.params;e.diffuse&&((0,we.KV)(e.diffuse),s.metallicRoughness.baseColorFactor=[e.diffuse[0],e.diffuse[1],e.diffuse[2],1]),null!=e.doubleSided&&(s.doubleSided=e.doubleSided,s.cullFace=e.doubleSided?0:2),("none"===e.cullFace||"front"===e.cullFace||"back"===e.cullFace)&&(s.cullFace="none"===e.cullFace?0:"back"===e.cullFace?2:1),e.transparency&&(s.metallicRoughness.baseColorFactor[3]=(0,N.qE)(1-e.transparency,0,1)),(e.useVertexColorAlpha||s.metallicRoughness.baseColorFactor[3]<1)&&(s.alphaMode="blend")}let a=[];if(null!=n){n.wrap&&("repeat"===n.wrap[0]||"repeat"===n.wrap[1])&&(s.wrapTextures=!0);let e=1;"rgba"===n.channels&&(s.alphaMode="blend",e|=32);let t=n.images.length-1,r=n.images[t],i=e=>e?.split("/").pop(),o=Array.isArray(n.encoding)?Oe(n.encoding.map((e,t)=>({name:i(r.href[t]),encoding:De[e]||0}))):[{name:i(r.href),encoding:De[n.encoding]||0}];a.push({id:0,usage:e,encodings:o}),s.metallicRoughness.baseColorTextureId=0}return{material:s,textures:a}}const Fe=()=>({alphaMode:"opaque",alphaCutoff:Ce.Q,doubleSided:!0,cullFace:0,normalTextureId:-1,emissiveTextureId:-1,occlusionTextureId:-1,emissiveFactor:[0,0,0],metallicRoughness:{baseColorFactor:[.8,.8,.8,1],baseColorTextureId:-1,metallicRoughnessTextureId:-1,metallicFactor:0,roughnessFactor:.6},wrapTextures:!1,hasParametersFromSource:!0});class Pe{constructor(e,t,r,i,n,s){if(this._requester=t,this._logger=r,this._defaultGeometrySchema=i,this._requiredAttributes=n,this._options=s,this._logLayer=e,this._layerUrl=e.parsedUrl.path,this._geometryDefinitions=e.geometryDefinitions,e.materialDefinitions){let t=e.textureSetDefinitions;this._materialAndTextures=e.materialDefinitions.map(r=>function(e,t,r){let i=new Map,n=(e,t)=>{if(null==e)return-1;let r=i.get(e.id);if(r)return r.usage|=t,r.id;let n=i.size;return i.set(e.id,{id:n,usage:t}),n},s=t.pbrMetallicRoughness,a=s?.baseColorFactor?(0,we.sn)(s.baseColorFactor):null,o=t.emissiveFactor,l=r&&0===s?.metallicFactor||(0,Ne.Jr)({normalTexture:t.normalTexture,emissiveTexture:t.emissiveTexture,emissiveFactor:t.emissiveFactor,occlusionTexture:t.occlusionTexture,metallicRoughnessTexture:s?.metallicRoughnessTexture,metallicFactor:s?.metallicFactor,roughnessFactor:s?.roughnessFactor}),u=l?Ne.Bt[0]:s?.metallicFactor??Ne.mb[0],h=l?Ne.Bt[1]:s?.roughnessFactor??Ne.mb[1],d="mask"===t.alphaMode?33:1,c={baseColorFactor:a?[a[0],a[1],a[2],a[3]]:[1,1,1,1],baseColorTextureId:n(s?.baseColorTexture,d),metallicRoughnessTextureId:n(s?.metallicRoughnessTexture,2),metallicFactor:u,roughnessFactor:h},f={alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,cullFace:"none"===t.cullFace?0:"back"===t.cullFace?2:+("front"===t.cullFace),normalTextureId:n(t.normalTexture,4),emissiveTextureId:n(t.emissiveTexture,16),occlusionTextureId:n(t.occlusionTexture,8),emissiveFactor:o?[o[0],o[1],o[2]]:[0,0,0],metallicRoughness:c,wrapTextures:!1,hasParametersFromSource:l},g=[];return i.forEach(({usage:t},r)=>{let i=null!=e&&e[r]&&e[r].formats,n=i?Oe(i.map(({name:e,format:t})=>({name:e,encoding:Le[t]}))):[];g.push({id:r,usage:t,encodings:n})}),{material:f,textures:g}}(t,r,"integrated-mesh"===e.type))}}_loadAttribute(e,t,r){let i=`${this._layerUrl}/nodes/${e.resources.attributes}/attributes/${t.key}/0`;return this._requester.request(i,"array-buffer",r).then(e=>(0,Me.m0)(t,e))}async loadAttributes(e,t,r){let i=await Promise.allSettled(t.map(t=>this._loadAttribute(e,t.attributeStorageInfo,r))),n={};for(let r=0;r<t.length;++r){let s=i[r],a=t[r];if("fulfilled"===s.status){let e=s.value;n[a.name]=e}else{let t=s.reason;(0,c.QP)(t),this._logger.error("#loadAttributes",this._logLayer,`Failed to load attributeData for '${a.name}' on node '${e.id}'`,t)}}return n}async loadNodeData(e,t){let r=null!=this._requiredAttributes&&e.resources.attributes?(0,s.Ke)(this.loadAttributes(e,this._requiredAttributes,t)):null,{bufferDefinition:i,bufferIndex:n}=function(e,t){let r={bufferDefinition:null,bufferIndex:0},i=t.resources.geometryDefinition;if(null==e||null==i||i<0)return r;let n=i>=0?e[i].geometryBuffers:null;if(null==n)return r;for(let e=0;e<n.length;e++){let t=n[e];if(null!=t.compressedAttributes){if("draco"===t.compressedAttributes.encoding&&!(0,u.A)("disable-feature:i3s-draco"))return r.bufferIndex=e,r.bufferDefinition=t,r}else r.bufferIndex=e,r.bufferDefinition=n[e]}return r}(this._geometryDefinitions,e),a=!!e.resources.geometry,o=a?(0,s.Ke)(this._loadGeometry(e.resources.geometry,n,t)):null,l=e.resources.hasSharedResource?await this._loadShared(e,t):null,h=e.resources.materialDefinition,d=this._materialAndTextures&&null!=h&&h>=0?this._materialAndTextures[h]:null==l?null:Ue(l),c=d?.material,f=d?.textures??[],g=`${e.id}`,m=!a&&this._options.loadFeatureData,p=m?await this._loadFeatureData(g,t):null,_=m?function(e){if(!e)return null;for(let t of e.featureData){let e=t.geometries;if(null!=e)for(let r of e)return{featureIds:[t.id],featureDataPosition:t.position,geometries:[r]}}return null}(p):{featureIds:[],geometries:[{type:"ArrayBufferView",params:{material:c}}],featureDataPosition:[0,0,0]},y=null==_?function(e){if(!e)return null;let t=[];for(let r of e.featureData)null!=r.position&&t.push({featureIds:[r.id],featureDataPosition:r.position,geometries:[]});return t}(p):null,E=f.length>0?(0,s.Ke)(this.loadTextures(e,f,t)):null,v=null,b=null;if(o){v=(0,s.QA)(await o);let e=function(e,t){if(!e||!t?.materialDefinitions)return e;let r=Object.keys(t.materialDefinitions)[0];return!t.materialDefinitions[r].params.vertexRegions&&e.vertexAttributes.region&&delete(e=(0,Ae.o8)(e)).vertexAttributes.region,e}(this._defaultGeometrySchema,l);b=(0,Me.qs)(i,e)}let R=E?(0,s.QA)(await E):null,T=r?(0,s.QA)(await r):{},I=T?{attributeData:T,loadedAttributes:this._requiredAttributes}:null;if(null!=_)return{geometryData:_,attributeDataInfo:I,geometryBuffer:v,geometryDescriptor:b,requiredTextures:f,textureData:R};if(null!=y)return{pointData:y,attributeDataInfo:I,geometryBuffer:v,geometryDescriptor:b,requiredTextures:f,textureData:R};throw Error()}static _addAbsoluteHrefTexture(e,t){let r=e.textureDefinitions;if(null!=r)for(let e of Object.keys(r))for(let i of r[e].images)i.hrefConcat=Array.isArray(i.href)?i.href.map(e=>(0,xe.s2)(e,t)):(0,xe.s2)(i.href,t)}static _fixTextureEncodings(e){let t=e.textureDefinitions;if(null!=t)for(let e in t){let r=t[e];if(Array.isArray(r.encoding))for(let e=0;e<r.encoding.length;e++){let t=r.encoding[e];t.startsWith("data:")&&(r.encoding[e]=t.slice(5))}else{let e=r.encoding;e.startsWith("data:")&&(r.encoding=e.slice(5))}}}async _loadShared(e,t){if(null==e.resources.geometry)return{};let r=`${this._layerUrl}/nodes/${e.resources.geometry}/shared`,i=await this._requester.request(r,"json",t);return Pe._fixTextureEncodings(i),Pe._addAbsoluteHrefTexture(i,r),i}_loadTexture(e,t,r,i,n){return 4===i||1===i||2===i?this._requester.request(e,"array-buffer",n).then(e=>({id:t,usage:r,data:e,encoding:i})):this._requester.request(e,"image",n).then(e=>({id:t,usage:r,data:e,encoding:i}))}loadTextures(e,t,r){let i=this._options.textureUsageMask;return Promise.all(t.map(t=>{if(0===(t.usage&i))return null;let n=function(e,t){if(null!=t)return e.find(e=>0!==(e.encoding&t))}(t.encodings,this._options.textureEncodings);if(null==n)return this._logger.error("#loadTextures",this._logLayer,`No known encoding for texture found on node ${e.id}`),Promise.reject();let s=e.resources.texture||e.id,a=`${this._layerUrl}/nodes/${s}/textures/${n.name}`;return this._loadTexture(a,t.id,t.usage,n.encoding,r)}))}_loadFeatureData(e,t){let r=`${this._layerUrl}/nodes/${e}/features/0`;return this._requester.request(r,"json",t)}_loadGeometry(e,t,r){let i=`${this._layerUrl}/nodes/${e}/geometries/${t}`;return this._requester.request(i,"array-buffer",r)}}var ke=r(36005);let qe=class extends((0,T.w6)((0,y.b)((0,v.q)((0,b.A)((0,R.j)((0,d.M)((0,E.d)((0,_.p)((0,a.OU)(p.A)))))))))){constructor(e){super(e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null,this._elevationQueryAbortController=new AbortController,this._elevationQueryWorkerContext=`i3s-elevation-query-${this.uid}`,this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,this._modificationsGeneration=0}destroy(){this._elevationQueryAbortController.abort();let e=this._elevationQueryWorkerHandle;this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,e?.destroyContextAndSelf(this._elevationQueryWorkerContext),super.destroy()}initialize(){this.addHandles([(0,f.on)(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},f.OH),(0,f.wB)(()=>this.modifications,()=>this._modificationsGeneration++,f.OH),(0,f.wB)(()=>this.memoizedElevationQueryDependencies,()=>this._abortElevationQueriesAfterDependencyChange(),f.OH)])}readModifications(e,t,r){this._modificationsSource={url:(0,Ee.f)(e,r),context:r}}set elevationInfo(e){(null==e||"absolute-height"===e.mode)&&this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get _elevationQueryWorker(){return this._elevationQueryWorkerHandle??=new be.Cm((e,t)=>ee.nu.schedule(e,t))}get memoizedElevationQueryDependencies(){return[this.elevationInfo?.offset,this._modificationsGeneration]}async queryElevation(e,t,r){let a={stack:[],error:void 0,hasError:!1};try{let u=r?.noDataValue??Number.MAX_VALUE,h=this._elevationQueryWorker,d=new AbortController;e.addHandles((0,l.rE)(d),d),(0,i.mS)(a,(0,l.Bf)((0,l.hA)(()=>e.removeHandles(d))),!1);let f=AbortSignal.any([r?.signal,this._elevationQueryAbortController.signal,d.signal].filter(n.Ru));await this.load({signal:f}),(0,c.Te)(f);let g=S.q.fromGeometry(t),m={signal:f,elevationOffset:this.elevationInfo?.offset??0,scheduler:e.resourceController.scheduler};if(null==this._elevationQueryWorkerSetup){let e=this.store?.defaultGeometrySchema;null!=e&&(this._elevationQueryWorkerSetup=(0,s.Ke)(h.setLegacySchema(this._elevationQueryWorkerContext,e)))}let p=await async function(e,t,r){let i=await e.indexInfo;if((0,c.Te)(r.signal),null==i)throw new o.A("integrated-mesh-elevation-query:index-missing","I3S index information is missing.");return"page"===i.type?new re(e,t,r,i).promise:new ie(e,t,r,i).promise}(this,g,m);(0,c.Te)(f);let _=p.coordinates[0].z===ne;_&&(p.coordinates[0].z=u);let y=await p.project(t.spatialReference,f);(0,c.Te)(f);let E=y??g.clone(),v={geometry:E.export(),noDataValue:u};return r?.returnSampleInfo&&(v.sampleInfo=E.coordinates.map(()=>({demResolution:_?-1:1}))),v}catch(e){a.error=e,a.hasError=!0}finally{(0,i.hk)(a)}}async queryElevationForGround(e,t){let r=S.q.fromGeometry(e),i=Ve(e),{view:n,...s}=t;if(null!=i&&"3d"===n?.type){let e=await this.queryElevation(n,i,s),t=S.q.fromGeometry(e.geometry),a=t.coordinates.map((t,r)=>({demResolution:e.sampleInfo?.[r]?.demResolution??(t.z===e.noDataValue?-1:1),source:this}));return{geometry:r.clone(t.coordinates).export(),noDataValue:e.noDataValue,sampleInfo:a}}return{geometry:r.export(),noDataValue:Number.MAX_VALUE,sampleInfo:r.coordinates.map(()=>({demResolution:-1,source:this}))}}_abortElevationQueriesAfterDependencyChange(){let e=this._elevationQueryAbortController;this._elevationQueryAbortController=new AbortController,e.abort()}async processElevationQueryGeometry(e,t){let r=await this._elevationQueryWorkerSetup;return null!=r&&(0,s.QA)(r),(0,c.Te)(t),this._elevationQueryWorker.invoke(e,t)}async _doLoad(e){let t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,c.QP)(e)}if((0,c.Te)(t),await this._fetchService(t),(0,c.Te)(t),null!=this._modificationsSource){let r=await pe.A.fromUrl(this._modificationsSource.url,this.spatialReference,e);(0,c.Te)(t),this.setAtOrigin("modifications",r,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t),(0,c.Te)(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){return this._debouncedSaveOperations(0,{getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"})}get isUsedAsGroundLayer(){return!(0,u.A)("enable-feature:im-as-ground")||(0,ve.S)(this.parent)||(0,ye.Q)(this.parent)}get replacesTerrain(){return!1}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new o.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}get elevationQueryDataRequester(){return new Se(this.customParameters,this.apiKey)}get elevationQueryNodeLoader(){return new Pe(this,this.elevationQueryDataRequester,h.A.getLogger("esri.layers.IntegratedMeshLayer"),this.store?.defaultGeometrySchema,[],{loadFeatureData:!1,textureUsageMask:0})}_validateElevationInfo(e){let t="Integrated mesh layers";(0,_e.XF)(h.A.getLogger(this),(0,_e.B)(t,"absolute-height",e)),(0,_e.XF)(h.A.getLogger(this),(0,_e.tW)(t,e))}};(0,i.Cg)([(0,g.MZ)({type:String,readOnly:!0})],qe.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({type:["show","hide"]})],qe.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)({type:["IntegratedMeshLayer"]})],qe.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1},readOnly:!0})],qe.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({type:me.W4,readOnly:!0,clonable:!1})],qe.prototype,"nodePages",void 0),(0,i.Cg)([(0,g.MZ)({type:[me.uV],readOnly:!0,clonable:!1})],qe.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[me.Ot],readOnly:!0,clonable:!1})],qe.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[me.L0],readOnly:!0,clonable:!1})],qe.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],qe.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,clonable:e=>e?.clone()??e}),(0,m.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],qe.prototype,"modifications",void 0),(0,i.Cg)([(0,g.MZ)({clonable:e=>e?{...e}:null})],qe.prototype,"_modificationsSource",void 0),(0,i.Cg)([(0,ke.w)(["web-scene","portal-item"],"modifications")],qe.prototype,"readModifications",null),(0,i.Cg)([(0,g.MZ)(I.Yj)],qe.prototype,"elevationInfo",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],qe.prototype,"path",void 0),(0,i.Cg)([(0,g.MZ)({clonable:!1})],qe.prototype,"_elevationQueryWorker",null),(0,i.Cg)([(0,g.MZ)()],qe.prototype,"_modificationsGeneration",void 0),(0,i.Cg)([(0,g.MZ)()],qe.prototype,"memoizedElevationQueryDependencies",null),(0,i.Cg)([(0,g.MZ)()],qe.prototype,"isUsedAsGroundLayer",null),(0,i.Cg)([(0,g.MZ)()],qe.prototype,"replacesTerrain",null),(0,i.Cg)([(0,g.MZ)({clonable:!1})],qe.prototype,"elevationQueryDataRequester",null),(0,i.Cg)([(0,g.MZ)({clonable:!1})],qe.prototype,"elevationQueryNodeLoader",null),qe=(0,i.Cg)([(0,g.$K)("esri.layers.IntegratedMeshLayer")],qe);const Ge=qe;function Ve(e){return e instanceof S.q?Ve(e.geometry):"point"===e.type?e:null}},85707(e,t,r){var i=r(32198),n=r(91429),s=r(54239);r.d(t,["a",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.heightModelInfo=null}read(e,t){super.read(e,t),"service"===t?.origin&&2===this.heightModelInfo?.origin&&(this.heightModelInfo.associatedSpatialReference=this.getAtOrigin("spatialReference","service"))}};return(0,i.Cg)([(0,n.MZ)({readOnly:!0,type:s.A})],r.prototype,"heightModelInfo",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.HeightModelInfoMixin")],r),r}])},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var i=r(4718),n=r(53966),s=r(84952),a=r(60694),o=r(10873);function l(e){let{nonStandardUrlAllowed:t=!1,separator:r}=e??{},s=(0,i.o8)(o.OZ),l=s.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,i,n){(0,a.LS)(this,e,r,t,n)}),{...s,set:function(e){if(null==e)return void this._set("url",e);let r=(0,a.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:n.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){let{separator:r}=t??{},i=(0,s.An)(e.url);return null!=i&&(null==e.dynamicDataSource?null!=e.layerId&&(i.path=(0,s.fj)(i.path,r??"",e.layerId.toString())):i.path=(0,s.fj)(i.path,"dynamicLayer")),i}},89707(e,t,r){r.d(t,{H:()=>i});class i{constructor(e=1/0,t=-1/0){this.minElevation=e,this.maxElevation=t}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(e){return this.minElevation<=e.minElevation&&this.maxElevation>=e.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(e){let t=Math.min(this.minElevation,e.minElevation),r=Math.max(this.maxElevation,e.maxElevation),i=t!==this.minElevation||r!==this.maxElevation;return this.minElevation=t,this.maxElevation=r,i}expandElevationRangeValues(e,t){let r=Math.min(this.minElevation,e),i=Math.max(this.maxElevation,t),n=r!==this.minElevation||i!==this.maxElevation;return this.minElevation=r,this.maxElevation=i,n}setElevationRange(e){this.minElevation=e.minElevation,this.maxElevation=e.maxElevation}setElevationRangeValues(e,t){this.minElevation=e,this.maxElevation=t}equals(e){return this.minElevation===e.minElevation&&this.maxElevation===e.maxElevation}}},62747(e,t,r){r.d(t,{W7:()=>s,hH:()=>a});var i=r(1843),n=r(65786);n.Y;class s extends n.Y{constructor(e,t,r){super(),this.hasVertexColors=e,this.hasNormals=t,this.textureCoordinateType=r}}function a(e){let t=(0,i.BP)().vec3f("position");return e.hasNormals&&t.vec2i16("normalCompressed",{glNormalized:!0}),1===e.textureCoordinateType?t.vec2f("uv0"):2===e.textureCoordinateType&&(t.vec2f("uv0"),t.vec4u16("uvRegion",{glNormalized:!0})),e.hasVertexColors&&t.vec4u8("color",{glNormalized:!0}),t.freeze()}},92359(e,t,r){r.d(t,{nu:()=>c,W6:()=>u}),r(4576),r(71511),r(44208),r(53966);var i=r(17676),n=(r(36708),r(44794),r(78659)),s=r(32198),a=r(69622),o=r(91429);let l=class extends a.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,s.Cg)([(0,o.MZ)()],l.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,s.Cg)([(0,o.MZ)()],l.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),l=(0,s.Cg)([(0,o.$K)("esri.views.support.debugFlags")],l),new l,r(49186),Symbol("Yield");const u={RESOURCE_CONTROLLER_IMMEDIATE:"immediate",RESOURCE_CONTROLLER:"schedule",SLIDE:"slide",STREAM_DATA_LOADER:"stream loader",ELEVATION_QUERY:"elevation query",TERRAIN_SURFACE:"terrain",SURFACE_GEOMETRY_UPDATES:"surface geometry updates",LOD_RENDERER:"LoD renderer",GRAPHICS_CORE:"Graphics3D",I3S:"I3S",LYR3D:"Lyr3D",TILES3D:"3DTiles",POINT_CLOUD_LAYER:"point cloud",FEATURE_TILE_FETCHER:"feature fetcher",STREAM_CONTROLLER:"stream controller",SCREEN_POLYGON_INTERSECTION:"screen polygon intersection",OCCLUSION_QUERY:"occlusion query",OVERLAY:"overlay",OVERLAY_RENDERER:"overlay renderer",STAGE:"stage",GRAPHICS_DECONFLICTOR:"graphics deconflictor",FILTER_VISIBILITY:"graphics filter visibility",SCALE_VISIBILITY:"graphics scale visibility",FRUSTUM_VISIBILITY:"graphics frustum visibility",POINT_OF_INTEREST_FREQUENT:"POI frequent",POINT_OF_INTEREST_INFREQUENT:"POI infrequent",LABELER:"labeler",FEATURE_FILTER_HIGHLIGHT:"feature filter highlight",FEATURE_QUERY_ENGINE:"feature query",FEATURE_TILE_TREE:"feature tile tree",FEATURE_TILE_TREE_ACTIVE:"fast feature tile tree",ELEVATION_ALIGNMENT:"elevation alignment",ELEVATION_ALIGNMENT_SCENE:"elevation alignment scene",TEXT_TEXTURE_ATLAS:"text texture atlas",TEXTURE_UNLOAD:"texture unload",LINE_OF_SIGHT_TOOL:"line of sight tool",LINE_OF_SIGHT_TOOL_INTERACTIVE:"interactive line of sight tool",VOLUME_MEASUREMENT:"volume measurement",ELEVATION_PROFILE:"elevation profile",SNAPPING:"snapping",SHADOW_ACCUMULATOR:"shadow accumulator",CLOUDS_GENERATOR:"clouds generator",FLOW_GENERATOR:"flow generator",GAUSSIAN_SPLAT_SORTING:"gaussian splat sorting",GAUSSIAN_SPLAT_TEXTURE_ATLAS:"gaussian splat texture atlas",MAPVIEW_FETCH_QUEUE:"mapview fetch queue",MAPVIEW_LAYERVIEW_UPDATE:"mapview layerview update",MAPVIEW_VECTOR_TILE_PARSING_QUEUE:"mapview vector tile parsing queue",NONE:0,TEST_PRIO:1};new Map([[u.RESOURCE_CONTROLLER_IMMEDIATE,0],[u.RESOURCE_CONTROLLER,4],[u.SLIDE,0],[u.STREAM_DATA_LOADER,0],[u.ELEVATION_QUERY,0],[u.TERRAIN_SURFACE,1],[u.SURFACE_GEOMETRY_UPDATES,1],[u.LOD_RENDERER,2],[u.GRAPHICS_CORE,2],[u.I3S,2],[u.LYR3D,2],[u.TILES3D,3],[u.POINT_CLOUD_LAYER,2],[u.FEATURE_TILE_FETCHER,2],[u.STREAM_CONTROLLER,2],[u.SCREEN_POLYGON_INTERSECTION,0],[u.CLOUDS_GENERATOR,2],[u.OCCLUSION_QUERY,2],[u.OVERLAY,4],[u.OVERLAY_RENDERER,4],[u.STAGE,4],[u.GRAPHICS_DECONFLICTOR,4],[u.FILTER_VISIBILITY,4],[u.SCALE_VISIBILITY,4],[u.FRUSTUM_VISIBILITY,4],[u.POINT_OF_INTEREST_FREQUENT,6],[u.POINT_OF_INTEREST_INFREQUENT,30],[u.LABELER,8],[u.FEATURE_FILTER_HIGHLIGHT,2],[u.FEATURE_QUERY_ENGINE,8],[u.FEATURE_TILE_TREE,16],[u.FEATURE_TILE_TREE_ACTIVE,0],[u.ELEVATION_ALIGNMENT,12],[u.ELEVATION_ALIGNMENT_SCENE,14],[u.TEXT_TEXTURE_ATLAS,12],[u.TEXTURE_UNLOAD,12],[u.LINE_OF_SIGHT_TOOL,16],[u.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[u.VOLUME_MEASUREMENT,4],[u.SNAPPING,0],[u.SHADOW_ACCUMULATOR,30],[u.FLOW_GENERATOR,12],[u.GAUSSIAN_SPLAT_SORTING,2],[u.GAUSSIAN_SPLAT_TEXTURE_ATLAS,12],[u.MAPVIEW_FETCH_QUEUE,0],[u.MAPVIEW_LAYERVIEW_UPDATE,2],[u.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]),(0,n.l5)(6.5),(0,n.l5)(1),(0,n.l5)(30),(0,n.l5)(1e3/30),(0,n.l5)(100),Symbol.dispose;const h=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this._enabled&&this._budget!==1/0&&this.elapsed>=this._budget,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};h.enabled=!1;class d{remove(){}[Symbol.dispose](){this.remove()}processQueue(){}schedule(e,t,r){try{if((0,i.G4)(t)){let e=(0,i.NK)();return r?Promise.resolve(r(e)):Promise.reject(e)}return(0,i.z7)(e(h))}catch(e){return Promise.reject(e)}}reschedule(e,t,r){return this.schedule(e,t,r)}async scheduleGenerator(e,t,r){if((0,i.G4)(t)){let e=(0,i.NK)();if(r)return r(e);throw e}let n=e(h);for(;;){let e=n.next(h),s=(0,i.$X)(e)?await e:e;if((0,i.G4)(t)){let e=(0,i.NK)();if(r){let t=r(e),s=n.return(null);return(0,i.$X)(s)&&await(0,i.QZ)(s),t}let t=n.throw(e);throw(0,i.$X)(t)&&await(0,i.QZ)(t),e}if(s.done)return s.value}}}const c=new d}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3910],{62885(e,t,o){o.d(t,{H:()=>s,V:()=>i});var r=o(7762);function i(e,t,o=r.A){return t||=new o,t===e||t.destroyed||(t.removeAll(),(i=e)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?t.addMany(e):e&&t.add(e)),t;var i}function s(e){return e}},40863(e,t,o){o.d(t,{A:()=>u});var r,i=o(32198),s=o(4718),l=o(799),n=o(91429),a=o(30524),p=o(20378),y=o(36005),h=o(43937),d=o(93223);let u=r=class extends p.A{constructor(e){super(e),this.data=null,this.type="cim"}readData(e,t){return t}writeData(e,t){Object.assign(t,e)}async collectRequiredFields(e,t){if("CIMSymbolReference"===this.data?.type){let o=this.data.primitiveOverrides;if(o){let r=o.map(o=>{let r=o.valueExpressionInfo;return r?(0,a.Dx)(e,t,null,r.expression):null});await Promise.all(r)}}}clone(){return new r({data:(0,s.o8)(this.data)})}hash(){return(0,l.Wm)(JSON.stringify(this.data)).toString()}};(0,i.Cg)([(0,n.MZ)({json:{write:!1}})],u.prototype,"color",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],u.prototype,"data",void 0),(0,i.Cg)([(0,y.w)("data",["symbol"])],u.prototype,"readData",null),(0,i.Cg)([(0,h.K)("data",{})],u.prototype,"writeData",null),(0,i.Cg)([(0,d.e)({CIMSymbolReference:"cim"},{readOnly:!0})],u.prototype,"type",void 0),u=r=(0,i.Cg)([(0,n.$K)("esri.symbols.CIMSymbol")],u)},26449(e,t,o){o.d(t,{A:()=>y});var r,i=o(32198),s=o(91429),l=o(3904),n=o(51734),a=o(28975),p=o(93223);let y=class extends l.A{static{r=this}constructor(e){super(e),this.type="extrude",this.size=1,this.material=null,this.castShadows=!0,this.edges=null}clone(){return new r({edges:this.edges?.clone(),enabled:this.enabled,material:this.material?.clone(),castShadows:this.castShadows,size:this.size})}};(0,i.Cg)([(0,p.e)({Extrude:"extrude"},{readOnly:!0})],y.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}},nonNullable:!0})],y.prototype,"size",void 0),(0,i.Cg)([(0,s.MZ)({type:a.A,json:{write:!0}})],y.prototype,"material",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],y.prototype,"castShadows",void 0),(0,i.Cg)([(0,s.MZ)(n.J)],y.prototype,"edges",void 0),y=r=(0,i.Cg)([(0,s.$K)("esri.symbols.ExtrudeSymbol3DLayer")],y)},65851(e,t,o){o.d(t,{A:()=>n});var r=o(32198),i=o(91429),s=o(31593),l=o(20378);let n=class extends l.A{constructor(e){super(e),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline?.hash()}`}};(0,r.Cg)([(0,i.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":s.A}},json:{default:null,write:!0}})],n.prototype,"outline",void 0),(0,r.Cg)([(0,i.MZ)({type:["simple-fill","picture-fill"],readOnly:!0})],n.prototype,"type",void 0),n=(0,r.Cg)([(0,i.$K)("esri.symbols.FillSymbol")],n)},27845(e,t,o){o.d(t,{A:()=>S});var r=o(32198),i=o(91429),s=o(3904),l=o(51734),n=o(44633),a=o(16264),p=o(64086),y=o(33386),h=o(28975),d=o(93223);let u=class extends h.A{constructor(e){super(e),this.colorMixMode=null}};(0,r.Cg)([(0,d.e)({multiply:"multiply",replace:"replace",tint:"tint"})],u.prototype,"colorMixMode",void 0),u=(0,r.Cg)([(0,i.$K)("esri.symbols.support.Symbol3DFillMaterial")],u);var c,g=o(68197),m=o(25482),b=o(90629),w=o(67222),C=o(8887);let f=c=class extends m.o{constructor(e){super(e),this.color=new g.A([0,0,0,1]),this.pattern=null,this.patternCap="butt"}get size(){return this._get("size")??b.ps}set size(e){this._set("size",e)}clone(){let e={color:null==this.color?null:this.color.clone(),size:this.size,pattern:null==this.pattern?null:this.pattern.clone(),patternCap:this.patternCap};return new c(e)}};(0,r.Cg)([(0,i.MZ)((0,w.EW)({colorRequiredOnWrite:!0}))],f.prototype,"color",void 0),(0,r.Cg)([(0,i.MZ)({...w.pI,json:{write:{isRequired:!0}}})],f.prototype,"size",null),(0,r.Cg)([(0,i.MZ)(p.h6)],f.prototype,"pattern",void 0),(0,r.Cg)([(0,i.MZ)({type:C.M4,json:{default:"butt",write:{overridePolicy(){return{enabled:null!=this.pattern}}}}})],f.prototype,"patternCap",void 0),f=c=(0,r.Cg)([(0,i.$K)("esri.symbols.support.Symbol3DOutline")],f);const v=f;var A;let S=class extends s.A{static{A=this}constructor(e){super(e),this.type="fill",this.material=null,this.pattern=null,this.castShadows=!0,this.outline=null,this.edges=null}clone(){let e={edges:null==this.edges?null:this.edges.clone(),enabled:this.enabled,material:null==this.material?null:this.material.clone(),pattern:null==this.pattern?null:this.pattern.clone(),castShadows:this.castShadows,outline:null==this.outline?null:this.outline.clone()};return new A(e)}static fromSimpleFillSymbol(e){let t=e.outline&&e.outline.style&&"solid"!==e.outline.style?new n.A({style:e.outline.style}):null,o={size:e.outline?.width??0,color:(e.outline?.color??y.ON).clone(),pattern:t};return t&&e.outline?.cap&&(o.patternCap=e.outline.cap),new A({material:new u({color:(e.color??y.u7).clone()}),pattern:e.style&&"solid"!==e.style?new a.A({style:e.style}):null,outline:o})}};(0,r.Cg)([(0,d.e)({Fill:"fill"},{readOnly:!0})],S.prototype,"type",void 0),(0,r.Cg)([(0,i.MZ)({type:u,json:{write:!0}})],S.prototype,"material",void 0),(0,r.Cg)([(0,i.MZ)(p.rn)],S.prototype,"pattern",void 0),(0,r.Cg)([(0,i.MZ)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],S.prototype,"castShadows",void 0),(0,r.Cg)([(0,i.MZ)({type:v,json:{write:!0}})],S.prototype,"outline",void 0),(0,r.Cg)([(0,i.MZ)(l.J)],S.prototype,"edges",void 0),S=A=(0,r.Cg)([(0,i.$K)("esri.symbols.FillSymbol3DLayer")],S)},11831(e,t,o){o.d(t,{A:()=>p});var r,i=o(32198),s=o(25482),l=o(90629),n=o(91429),a=o(5760);let p=r=class extends s.o{constructor(e){super(e),this.decoration="none",this.family="sans-serif",this.style="normal",this.weight="normal"}get size(){return this._get("size")??9}set size(e){this._set("size",e)}castSize(e){return(0,l.cr)(e)}clone(){return new r({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,i.Cg)([(0,n.MZ)({type:a.h9,json:{default:"none",write:!0}})],p.prototype,"decoration",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"family",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{write:{overridePolicy:(e,t,o)=>({enabled:!o||!o.textSymbol3D})}}})],p.prototype,"size",null),(0,i.Cg)([(0,n.wg)("size")],p.prototype,"castSize",null),(0,i.Cg)([(0,n.MZ)({type:a._R,json:{default:"normal",write:!0}})],p.prototype,"style",void 0),(0,i.Cg)([(0,n.MZ)({type:a.NM,json:{default:"normal",write:!0}})],p.prototype,"weight",void 0),p=r=(0,i.Cg)([(0,n.$K)("esri.symbols.Font")],p)},80138(e,t,o){o.d(t,{A:()=>D});var r,i=o(32198),s=o(4718),l=o(53966),n=o(84952),a=o(91429),p=o(3904),y=o(33386),h=o(66552),d=o(25482),u=o(97159),c=o(36005),g=o(43937),m=o(93223);const b=(0,h.O)()({circle:"circle",square:"square",cross:"cross",x:"x",kite:"kite",triangle:"triangle"});let w=r=class extends d.o{constructor(e){super(e)}readHref(e,t,o){return e?(0,u.f)(e,o):t.dataURI}writeHref(e,t,o,r){e&&((0,n.DB)(e)?t.dataURI=e:(t.href=(0,u.t)(e,r),(0,n.oP)(t.href)&&(t.href=(0,n.S8)(t.href))))}clone(){return new r({href:this.href,primitive:this.primitive})}equals(e){return e.primitive===this.primitive&&e.href===this.href}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0,read:{source:["href","dataURI"]}}})],w.prototype,"href",void 0),(0,i.Cg)([(0,c.w)("href")],w.prototype,"readHref",null),(0,i.Cg)([(0,g.K)("href",{href:{type:String},dataURI:{type:String}})],w.prototype,"writeHref",null),(0,i.Cg)([(0,m.e)(b)],w.prototype,"primitive",void 0),w=r=(0,i.Cg)([(0,a.$K)("esri.symbols.support.IconSymbol3DLayerResource")],w);const C=w;var f,v=o(67222),A=o(97515),S=o(27066),M=o(69622);let Z=f=class extends M.A{constructor(e){super(e),this.x=0,this.y=0}clone(){return new f({x:this.x,y:this.y})}equals(e){return e.x===this.x&&e.y===this.y}};(0,i.Cg)([(0,a.MZ)({type:Number})],Z.prototype,"x",void 0),(0,i.Cg)([(0,a.MZ)({type:Number})],Z.prototype,"y",void 0),Z=f=(0,i.Cg)([(0,a.$K)("esri.symbols.support.Symbol3DAnchorPosition2D")],Z);const j=Z;var x,z=o(68197),L=o(90629);let $=x=class extends d.o{constructor(e){super(e),this.color=new z.A([0,0,0,1])}get size(){return this._get("size")??L.ps}set size(e){this._set("size",e)}clone(){let e={color:null==this.color?null:this.color.clone(),size:this.size};return new x(e)}equals(e){return e.size===this.size&&(null==this.color?null==e.color:this.color.equals(e.color))}};(0,i.Cg)([(0,a.MZ)((0,v.EW)({colorRequiredOnWrite:!0}))],$.prototype,"color",void 0),(0,i.Cg)([(0,a.MZ)({...v.pI,json:{write:{isRequired:!0}}})],$.prototype,"size",null),$=x=(0,i.Cg)([(0,a.$K)("esri.symbols.support.Symbol3DIconOutline")],$);const O=$;var k,N=o(28975);let D=class extends p.A{static{k=this}constructor(e){super(e),this.material=null,this.resource=null,this.type="icon",this.anchor="center",this.anchorPosition=null,this.outline=null,this.angle=0,this.occludedVisibility=new A.A({mode:"adaptive"})}get size(){return this._get("size")??12}set size(e){this._set("size",e)}clone(){return new k({anchor:this.anchor,anchorPosition:(0,s.o8)(this.anchorPosition),enabled:this.enabled,material:(0,s.o8)(this.material),outline:(0,s.o8)(this.outline),resource:(0,s.o8)(this.resource),angle:this.angle,size:this.size,occludedVisibility:(0,s.o8)(this.occludedVisibility)})}static fromSimpleMarkerSymbol(e){let t=e.color||y.ON,o=_(e),r=e.outline&&e.outline.width>0?{size:e.outline.width,color:(e.outline.color||y.ON).clone()}:null;return new k({size:e.size,angle:e.angle,resource:{primitive:q(()=>l.A.getLogger(this.prototype),e.style)},material:{color:t},outline:r,anchor:o?"relative":void 0,anchorPosition:o,occludedVisibility:null})}static fromPictureMarkerSymbol(e){let t=!e.color||(0,y.U9)(e.color)?y.ON:e.color,o=_(e);return new k({size:e.width<=e.height?e.height:e.width,angle:e.angle,resource:{href:e.url},material:{color:t.clone()},anchor:o?"relative":void 0,anchorPosition:o,occludedVisibility:null})}static fromCIMSymbol(e){return new k({resource:{href:(0,n.Hg)({mediaType:"application/json",data:JSON.stringify(e.data)})},occludedVisibility:null})}};function _(e){let t="width"in e?e.width:e.size,o="height"in e?e.height:e.size,r=K(e.xoffset),i=K(e.yoffset);return(r||i)&&t&&o?{x:-r/t,y:i/o}:null}function K(e){return isFinite(e)?e:0}(0,i.Cg)([(0,a.MZ)({type:N.A,json:{write:!0}})],D.prototype,"material",void 0),(0,i.Cg)([(0,a.MZ)({type:C,json:{write:!0}})],D.prototype,"resource",void 0),(0,i.Cg)([(0,m.e)({Icon:"icon"},{readOnly:!0})],D.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({...v.pI,json:{write:{isRequired:!0}}})],D.prototype,"size",null),(0,i.Cg)([(0,m.e)({center:"center",left:"left",right:"right",top:"top",bottom:"bottom",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",relative:"relative"},{default:"center"})],D.prototype,"anchor",void 0),(0,i.Cg)([(0,a.MZ)({type:j,json:{type:[Number],read:{reader:e=>new j({x:e[0],y:e[1]})},write:{writer:(e,t)=>{t.anchorPosition=[e.x,e.y]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],D.prototype,"anchorPosition",void 0),(0,i.Cg)([(0,a.MZ)({type:O,json:{write:!0}})],D.prototype,"outline",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0,default:0}})],D.prototype,"angle",void 0),(0,i.Cg)([(0,a.MZ)(S.D)],D.prototype,"occludedVisibility",void 0),D=k=(0,i.Cg)([(0,a.$K)("esri.symbols.IconSymbol3DLayer")],D);const P={circle:"circle",cross:"cross",diamond:"kite",square:"square",x:"x",triangle:"triangle",path:null};function q(e,t){return P[t]||(e().warn(`${t} cannot be mapped to Icon symbol. Fallback to "circle"`),"circle")}},13313(e,t,o){o.d(t,{A:()=>g});var r,i=o(32198),s=o(7762),l=o(62885),n=o(4718),a=o(91429),p=o(58185),y=o(80393),h=o(59483),d=o(4900),u=o(93223);const c=s.A.ofType({base:null,key:"type",typeMap:{text:y.A}});let g=r=class extends p.A{constructor(e){super(e),this.verticalOffset=null,this.callout=null,this.styleOrigin=null,this.type="label-3d",this.symbolLayers=new c}get symbolLayers(){return this._get("symbolLayers")}set symbolLayers(e){(0,l.V)(e,this._get("symbolLayers"))}supportsCallout(){return!0}hasVisibleCallout(){return(0,h.LH)(this)}hasVisibleVerticalOffset(){return(0,h.Yq)(this)}clone(){return new r({styleOrigin:(0,n.o8)(this.styleOrigin),symbolLayers:(0,n.o8)(this.symbolLayers),thumbnail:(0,n.o8)(this.thumbnail),callout:(0,n.o8)(this.callout),verticalOffset:(0,n.o8)(this.verticalOffset)})}static fromTextSymbol(e){return new r({symbolLayers:new s.A([y.A.fromTextSymbol(e)])})}};(0,i.Cg)([(0,a.MZ)({type:d.A,json:{write:!0}})],g.prototype,"verticalOffset",void 0),(0,i.Cg)([(0,a.MZ)(h.oG)],g.prototype,"callout",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],g.prototype,"styleOrigin",void 0),(0,i.Cg)([(0,a.MZ)({type:c})],g.prototype,"symbolLayers",null),(0,i.Cg)([(0,u.e)({LabelSymbol3D:"label-3d"},{readOnly:!0})],g.prototype,"type",void 0),g=r=(0,i.Cg)([(0,a.$K)("esri.symbols.LabelSymbol3D")],g)},97887(e,t,o){o.d(t,{A:()=>c});var r,i=o(32198),s=o(7762),l=o(4718),n=o(91429),a=o(11506),p=o(66525),y=o(58185),h=o(93223);const d=s.A.ofType({base:null,key:"type",typeMap:{line:a.A,path:p.A}}),u=s.A.ofType({base:null,key:"type",typeMap:{line:a.A,path:p.A}});let c=r=class extends y.A{constructor(e){super(e),this.symbolLayers=new d,this.worldSized=!1,this.type="line-3d"}clone(){return new r({styleOrigin:(0,l.o8)(this.styleOrigin),symbolLayers:(0,l.o8)(this.symbolLayers),thumbnail:(0,l.o8)(this.thumbnail),worldSized:this.worldSized})}static fromSimpleLineSymbol(e){return new r({symbolLayers:new s.A([a.A.fromSimpleLineSymbol(e)])})}};(0,i.Cg)([(0,n.MZ)({type:d,json:{type:u}})],c.prototype,"symbolLayers",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,nonNullable:!0,json:{write:!0,default:!1}})],c.prototype,"worldSized",void 0),(0,i.Cg)([(0,h.e)({LineSymbol3D:"line-3d"},{readOnly:!0})],c.prototype,"type",void 0),c=r=(0,i.Cg)([(0,n.$K)("esri.symbols.LineSymbol3D")],c)},11506(e,t,o){o.d(t,{A:()=>v});var r=o(32198),i=o(90629),s=o(91429),l=o(68197),n=o(69540),a=o(25482),p=o(78888),y=o(83213);let h=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.type="style",this.placement="begin-end",this.style="arrow",this.color=null}equals(e){return null!=e&&e.placement===this.placement&&e.style===this.style&&(null==this.color&&null==e.color||null!=this.color&&null!=e.color&&this.color.toJSON()===e.color.toJSON())}};(0,r.Cg)([(0,s.MZ)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0,isRequired:!0}}})],h.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({type:y.x,json:{default:"begin-end",write:!0}})],h.prototype,"placement",void 0),(0,r.Cg)([(0,s.MZ)({type:y.z,json:{default:"arrow",write:!0}})],h.prototype,"style",void 0),(0,r.Cg)([(0,s.MZ)({type:l.A,json:{type:[p.jz],default:null,write:!0}})],h.prototype,"color",void 0),h=(0,r.Cg)([(0,s.$K)("esri.symbols.LineStyleMarker3D")],h);var d,u=o(3904),c=o(44633),g=o(64086),m=o(33386),b=o(67222),w=o(28975),C=o(8887),f=o(93223);let v=class extends u.A{static{d=this}constructor(e){super(e),this.material=null,this.type="line",this.join="miter",this.cap="butt",this.pattern=null,this.imagePattern=null,this.marker=null}get size(){return this._get("size")??i.ps}set size(e){this._set("size",e)}clone(){let e={enabled:this.enabled,material:null==this.material?null:this.material.clone(),size:this.size,join:this.join,cap:this.cap,pattern:null==this.pattern?null:this.pattern.clone(),imagePattern:null==this.imagePattern?null:this.imagePattern.clone(),marker:null==this.marker?null:this.marker.clone()};return new d(e)}static fromSimpleLineSymbol(e){let t={enabled:!0,size:e.width??i.ps,cap:e.cap||"butt",join:e.join||"miter",pattern:e.style?new c.A({style:e.style}):null,imagePattern:null,material:new w.A({color:(e.color||m.ON).clone()}),marker:e.marker?new h({placement:e.marker.placement,style:e.marker.style,color:e.marker.color?.clone()??null}):null};return new d(t)}};(0,r.Cg)([(0,s.MZ)({type:w.A,json:{write:!0}})],v.prototype,"material",void 0),(0,r.Cg)([(0,f.e)({Line:"line"},{readOnly:!0})],v.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({type:C.e,json:{write:!0,default:"miter"}})],v.prototype,"join",void 0),(0,r.Cg)([(0,s.MZ)({type:C.M4,json:{write:!0,default:"butt"}})],v.prototype,"cap",void 0),(0,r.Cg)([(0,s.MZ)({...b.pI,json:{write:{isRequired:!0}}})],v.prototype,"size",null),(0,r.Cg)([(0,s.MZ)(g.vc)],v.prototype,"pattern",void 0),(0,r.Cg)([(0,s.MZ)()],v.prototype,"imagePattern",void 0),(0,r.Cg)([(0,s.MZ)({types:{key:"type",base:h,typeMap:{style:h}},json:{write:!0}})],v.prototype,"marker",void 0),v=d=(0,r.Cg)([(0,s.$K)("esri.symbols.LineSymbol3DLayer")],v)},89420(e,t,o){o.d(t,{A:()=>a});var r=o(32198),i=o(90629),s=o(91429),l=o(78888),n=o(20378);let a=class extends n.A{constructor(e){super(e),this.angle=0,this.type=null}get xoffset(){return this._get("xoffset")??0}set xoffset(e){this._set("xoffset",e)}get yoffset(){return this._get("yoffset")??0}set yoffset(e){this._set("yoffset",e)}get size(){return this._get("size")??9}set size(e){this._set("size",e)}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,r.Cg)([(0,s.MZ)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],a.prototype,"angle",void 0),(0,r.Cg)([(0,s.MZ)({type:["simple-marker","picture-marker"],readOnly:!0})],a.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,cast:i.cr,json:{write:!0}})],a.prototype,"xoffset",null),(0,r.Cg)([(0,s.MZ)({type:Number,cast:i.cr,json:{write:!0}})],a.prototype,"yoffset",null),(0,r.Cg)([(0,s.MZ)({cast:e=>"auto"===e?e:(0,l.GB)((0,i.cr)(e)),json:{write:!0}})],a.prototype,"size",null),a=(0,r.Cg)([(0,s.$K)("esri.symbols.MarkerSymbol")],a)},68548(e,t,o){o.d(t,{A:()=>u});var r,i=o(32198),s=o(7762),l=o(62885),n=o(4718),a=o(91429),p=o(27845),y=o(58185),h=o(93223);const d=s.A.ofType({base:null,key:"type",typeMap:{fill:p.A}});let u=r=class extends y.A{constructor(e){super(e),this.type="mesh-3d",this.symbolLayers=new d}get symbolLayers(){return this._get("symbolLayers")}set symbolLayers(e){(0,l.V)(e,this._get("symbolLayers"))}clone(){return new r({styleOrigin:(0,n.o8)(this.styleOrigin),symbolLayers:(0,n.o8)(this.symbolLayers),thumbnail:(0,n.o8)(this.thumbnail)})}static fromSimpleFillSymbol(e){return new r({symbolLayers:new s.A([p.A.fromSimpleFillSymbol(e)])})}};(0,i.Cg)([(0,a.MZ)({type:d})],u.prototype,"symbolLayers",null),(0,i.Cg)([(0,h.e)({MeshSymbol3D:"mesh-3d"},{readOnly:!0})],u.prototype,"type",void 0),u=r=(0,i.Cg)([(0,a.$K)("esri.symbols.MeshSymbol3D")],u)},51216(e,t,o){o.d(t,{A:()=>f});var r,i=o(32198),s=o(91429),l=o(3904),n=o(66552),a=o(25482),p=o(97159),y=o(93223);const h=(0,n.O)()({sphere:"sphere",cylinder:"cylinder",cube:"cube",cone:"cone",diamond:"diamond",tetrahedron:"tetrahedron",invertedCone:"inverted-cone"});let d=r=class extends a.o{constructor(e){super(e)}clone(){return new r({href:this.href,primitive:this.primitive})}};(0,i.Cg)([(0,s.MZ)({type:String,json:{read:p.r,write:p.w}})],d.prototype,"href",void 0),(0,i.Cg)([(0,y.e)(h)],d.prototype,"primitive",void 0),d=r=(0,i.Cg)([(0,s.$K)("esri.symbols.support.ObjectSymbol3DLayerResource")],d);const u=d;var c,g=o(69622);let m=c=class extends g.A{constructor(e){super(e),this.x=0,this.y=0,this.z=0}clone(){return new c({x:this.x,y:this.y,z:this.z})}};(0,i.Cg)([(0,s.MZ)({type:Number})],m.prototype,"x",void 0),(0,i.Cg)([(0,s.MZ)({type:Number})],m.prototype,"y",void 0),(0,i.Cg)([(0,s.MZ)({type:Number})],m.prototype,"z",void 0),m=c=(0,i.Cg)([(0,s.$K)("esri.symbols.support.Symbol3DAnchorPosition3D")],m);const b=m;var w,C=o(28975);let f=class extends l.A{static{w=this}constructor(e){super(e),this.material=null,this.castShadows=!0,this.resource=null,this.type="object",this.width=void 0,this.height=void 0,this.depth=void 0,this.anchor=void 0,this.anchorPosition=void 0,this.heading=void 0,this.tilt=void 0,this.roll=void 0}clone(){return new w({heading:this.heading,tilt:this.tilt,roll:this.roll,anchor:this.anchor,anchorPosition:this.anchorPosition?.clone(),depth:this.depth,enabled:this.enabled,height:this.height,material:this.material?.clone()??null,castShadows:this.castShadows,resource:this.resource?.clone(),width:this.width})}get isPrimitive(){return!this.resource||"string"!=typeof this.resource.href}};(0,i.Cg)([(0,s.MZ)({type:C.A,json:{write:!0}})],f.prototype,"material",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],f.prototype,"castShadows",void 0),(0,i.Cg)([(0,s.MZ)({type:u,json:{write:!0}})],f.prototype,"resource",void 0),(0,i.Cg)([(0,y.e)({Object:"object"},{readOnly:!0})],f.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],f.prototype,"width",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],f.prototype,"height",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],f.prototype,"depth",void 0),(0,i.Cg)([(0,y.e)({center:"center",top:"top",bottom:"bottom",origin:"origin",relative:"relative"},{default:"origin"})],f.prototype,"anchor",void 0),(0,i.Cg)([(0,s.MZ)({type:b,json:{type:[Number],read:{reader:e=>new b({x:e[0],y:e[1],z:e[2]})},write:{writer:(e,t)=>{t.anchorPosition=[e.x,e.y,e.z]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],f.prototype,"anchorPosition",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],f.prototype,"heading",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],f.prototype,"tilt",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],f.prototype,"roll",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],f.prototype,"isPrimitive",null),f=w=(0,i.Cg)([(0,s.$K)("esri.symbols.ObjectSymbol3DLayer")],f)},66525(e,t,o){o.d(t,{A:()=>h});var r,i=o(32198),s=o(91429),l=o(3904),n=o(28975),a=o(8887),p=o(93223),y=o(36005);let h=class extends l.A{static{r=this}constructor(e){super(e),this.material=null,this.castShadows=!0,this.type="path",this.profile="circle",this.join="miter",this.cap="butt",this.width=void 0,this.height=void 0,this.anchor="center",this.profileRotation="all"}readWidth(e,t){return e??(null==t.height&&null!=t.size?t.size:void 0)}readHeight(e,t){return e??(null==t.width&&null!=t.size?t.size:void 0)}clone(){return new r({enabled:this.enabled,material:null==this.material?null:this.material.clone(),castShadows:this.castShadows,profile:this.profile,join:this.join,cap:this.cap,width:this.width,height:this.height,profileRotation:this.profileRotation,anchor:this.anchor})}};(0,i.Cg)([(0,s.MZ)({type:n.A,json:{write:!0}})],h.prototype,"material",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],h.prototype,"castShadows",void 0),(0,i.Cg)([(0,p.e)({Path:"path"},{readOnly:!0})],h.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:["circle","quad"],nonNullable:!0,json:{write:!0,default:"circle"}})],h.prototype,"profile",void 0),(0,i.Cg)([(0,s.MZ)({type:a.e,nonNullable:!0,json:{write:!0,default:"miter"}})],h.prototype,"join",void 0),(0,i.Cg)([(0,s.MZ)({type:a.Nv,nonNullable:!0,json:{write:!0,default:"butt"}})],h.prototype,"cap",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:{enabled:!0,target:{width:{type:Number},size:{type:Number}}}}})],h.prototype,"width",void 0),(0,i.Cg)([(0,y.w)("width",["width","size","height"])],h.prototype,"readWidth",null),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],h.prototype,"height",void 0),(0,i.Cg)([(0,y.w)("height",["height","size","width"])],h.prototype,"readHeight",null),(0,i.Cg)([(0,s.MZ)({type:["center","bottom","top"],nonNullable:!0,json:{write:!0,default:"center"}})],h.prototype,"anchor",void 0),(0,i.Cg)([(0,s.MZ)({type:["heading","all"],nonNullable:!0,json:{write:!0,default:"all"}})],h.prototype,"profileRotation",void 0),h=r=(0,i.Cg)([(0,s.$K)("esri.symbols.PathSymbol3DLayer")],h)},58592(e,t,o){o.d(t,{A:()=>d});var r,i=o(32198),s=o(4718),l=o(90629),n=o(91429),a=o(89420),p=o(77040),y=o(93223),h=o(36005);let d=r=class extends a.A{constructor(e){super(e),this.color=null,this.type="picture-marker",this.url=null,this.source=null}get height(){return this._get("height")??12}set height(e){this._set("height",e)}readHeight(e,t){return t.size||e}get width(){return this._get("width")??12}set width(e){this._set("width",e)}readWidth(e,t){return t.size||e}get size(){return this._get("size")??null}set size(e){this._set("size",e)}clone(){let e=new r({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return e._set("source",(0,s.o8)(this.source)),e}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,i.Cg)([(0,n.MZ)({json:{write:!1}})],d.prototype,"color",void 0),(0,i.Cg)([(0,y.e)({esriPMS:"picture-marker"},{readOnly:!0})],d.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)(p.ku)],d.prototype,"url",void 0),(0,i.Cg)([(0,n.MZ)(p.k7)],d.prototype,"source",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],d.prototype,"height",null),(0,i.Cg)([(0,h.w)("height",["height","size"])],d.prototype,"readHeight",null),(0,i.Cg)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],d.prototype,"width",null),(0,i.Cg)([(0,n.MZ)({json:{write:!1}})],d.prototype,"size",null),d=r=(0,i.Cg)([(0,n.$K)("esri.symbols.PictureMarkerSymbol")],d)},75981(e,t,o){o.d(t,{A:()=>w});var r,i=o(32198),s=o(68197),l=o(7762),n=o(4718),a=o(91429),p=o(80138),y=o(51216),h=o(58185),d=o(80393),u=o(59483),c=o(8893),g=o(4900),m=o(93223);const b=l.A.ofType({base:null,key:"type",typeMap:{icon:p.A,object:y.A,text:d.A}});let w=r=class extends h.A{constructor(e){super(e),this.verticalOffset=null,this.callout=null,this.symbolLayers=new b,this.type="point-3d"}supportsCallout(){if((this.symbolLayers?this.symbolLayers.length:0)<1)return!1;for(let e of this.symbolLayers.items)switch(e.type){case"icon":case"text":case"object":continue;default:return!1}return!0}hasVisibleCallout(){return(0,u.LH)(this)}hasVisibleVerticalOffset(){return(0,u.Yq)(this)}clone(){return new r({verticalOffset:(0,n.o8)(this.verticalOffset),callout:(0,n.o8)(this.callout),styleOrigin:(0,n.o8)(this.styleOrigin),symbolLayers:(0,n.o8)(this.symbolLayers),thumbnail:(0,n.o8)(this.thumbnail)})}static fromSimpleMarkerSymbol(e){return new r({symbolLayers:new l.A([p.A.fromSimpleMarkerSymbol(e)])})}static fromPictureMarkerSymbol(e){return new r({symbolLayers:new l.A([p.A.fromPictureMarkerSymbol(e)])})}static fromCIMSymbol(e){return"CIMPointSymbol"===e.data?.symbol?.type?e.data.symbol?.callout?new r({symbolLayers:new l.A([p.A.fromCIMSymbol(e)]),callout:new c.A({size:.5,color:new s.A([0,0,0])}),verticalOffset:new g.A({screenLength:40})}):new r({symbolLayers:new l.A([p.A.fromCIMSymbol(e)])}):null}static fromTextSymbol(e){return new r({symbolLayers:new l.A([d.A.fromTextSymbol(e)])})}};(0,i.Cg)([(0,a.MZ)({type:g.A,json:{write:!0}})],w.prototype,"verticalOffset",void 0),(0,i.Cg)([(0,a.MZ)(u.oG)],w.prototype,"callout",void 0),(0,i.Cg)([(0,a.MZ)({type:b,json:{origins:{"web-scene":{write:!0}}}})],w.prototype,"symbolLayers",void 0),(0,i.Cg)([(0,m.e)({PointSymbol3D:"point-3d"},{readOnly:!0})],w.prototype,"type",void 0),w=r=(0,i.Cg)([(0,a.$K)("esri.symbols.PointSymbol3D")],w)},65365(e,t,o){o.d(t,{A:()=>m});var r,i=o(32198),s=o(7762),l=o(4718),n=o(91429),a=o(26449),p=o(27845),y=o(80138),h=o(51216),d=o(58185),u=o(34723),c=o(93223);const g=s.A.ofType({base:null,key:"type",typeMap:{extrude:a.A,fill:p.A,icon:y.A,object:h.A,water:u.A}});let m=r=class extends d.A{constructor(e){super(e),this.symbolLayers=new g,this.type="polygon-3d"}clone(){return new r({styleOrigin:(0,l.o8)(this.styleOrigin),symbolLayers:(0,l.o8)(this.symbolLayers),thumbnail:(0,l.o8)(this.thumbnail)})}static fromJSON(e){let t=new r;return t.read(e),t}static fromSimpleFillSymbol(e){return new r({symbolLayers:new s.A([p.A.fromSimpleFillSymbol(e)])})}};(0,i.Cg)([(0,n.MZ)({type:g,json:{write:!0}})],m.prototype,"symbolLayers",void 0),(0,i.Cg)([(0,c.e)({PolygonSymbol3D:"polygon-3d"},{readOnly:!0})],m.prototype,"type",void 0),m=r=(0,i.Cg)([(0,n.$K)("esri.symbols.PolygonSymbol3D")],m)},94985(e,t,o){o.d(t,{A:()=>u});var r,i=o(32198),s=o(68197),l=o(66552),n=o(4718),a=o(91429),p=o(65851),y=o(31593),h=o(93223);const d=new l.J({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let u=r=class extends p.A{constructor(e){super(e),this.color=new s.A([0,0,0,.25]),this.outline=new y.A,this.type="simple-fill",this.style="solid"}clone(){return new r({color:(0,n.o8)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,i.Cg)([(0,a.MZ)({type:s.A})],u.prototype,"color",void 0),(0,i.Cg)([(0,a.MZ)()],u.prototype,"outline",void 0),(0,i.Cg)([(0,h.e)({esriSFS:"simple-fill"},{readOnly:!0})],u.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:d.apiValues,json:{read:d.read,write:d.write}})],u.prototype,"style",void 0),u=r=(0,i.Cg)([(0,a.$K)("esri.symbols.SimpleFillSymbol")],u)},31593(e,t,o){o.d(t,{A:()=>v});var r=o(32198),i=o(66552),s=o(4718),l=o(91429),n=o(90629),a=o(20378),p=o(93223);let y=class extends a.A{constructor(e){super(e),this.type="simple-line"}get width(){return this._get("width")??.75}set width(e){this._set("width",e)}hash(){return`${this.type}.${this.width}`}};(0,r.Cg)([(0,p.e)({esriSLS:"simple-line"},{readOnly:!0})],y.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,cast:n.cr,json:{write:!0}})],y.prototype,"width",null),y=(0,r.Cg)([(0,l.$K)("esri.symbols.LineSymbol")],y);var h,d=o(68197),u=o(25482),c=o(83213),g=o(43937),m=o(36005);let b=h=class extends u.o{constructor(e){super(e),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(e,t,o,r){t[o]="web-map"===r?.origin?"arrow":e}set color(e){this._set("color",e)}readColor(e){return null==e?.[0]?e:[e[0],e[1],e[2],e[3]/255]}writeColor(e,t,o,r){"web-map"===r?.origin||(t[o]=e)}clone(){return new h({color:(0,s.o8)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,r.Cg)([(0,l.MZ)({type:["begin","end","begin-end"],json:{write:!0}})],b.prototype,"placement",void 0),(0,r.Cg)([(0,p.e)({"line-marker":"line-marker"},{readOnly:!0}),(0,l.MZ)({json:{origins:{"web-map":{write:!1}}}})],b.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:c.z})],b.prototype,"style",void 0),(0,r.Cg)([(0,g.K)("style")],b.prototype,"writeStyle",null),(0,r.Cg)([(0,l.MZ)({type:d.A,value:null,json:{write:{allowNull:!0}}})],b.prototype,"color",null),(0,r.Cg)([(0,m.w)("color")],b.prototype,"readColor",null),(0,r.Cg)([(0,g.K)("color")],b.prototype,"writeColor",null),b=h=(0,r.Cg)([(0,l.$K)("esri.symbols.LineSymbolMarker")],b);const w=b;var C;const f=new i.J({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let v=C=class extends y{constructor(e){super(e),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}clone(){return new C({color:(0,s.o8)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,r.Cg)([(0,p.e)({esriSLS:"simple-line"},{readOnly:!0})],v.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:f.apiValues,json:{read:f.read,write:f.write}})],v.prototype,"style",void 0),(0,r.Cg)([(0,l.MZ)({type:["butt","round","square"],json:{write:{overridePolicy:(e,t,o)=>({enabled:"round"!==e&&null==o?.origin})}}})],v.prototype,"cap",void 0),(0,r.Cg)([(0,l.MZ)({type:["miter","round","bevel"],json:{write:{overridePolicy:(e,t,o)=>({enabled:"round"!==e&&null==o?.origin})}}})],v.prototype,"join",void 0),(0,r.Cg)([(0,l.MZ)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":w}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],v.prototype,"marker",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{read:!1,write:!1}})],v.prototype,"miterLimit",void 0),v=C=(0,r.Cg)([(0,l.$K)("esri.symbols.SimpleLineSymbol")],v)},53930(e,t,o){o.d(t,{A:()=>c});var r,i=o(32198),s=o(68197),l=o(66552),n=o(4718),a=o(91429),p=o(89420),y=o(31593),h=o(43937),d=o(93223);const u=new l.J({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let c=r=class extends p.A{constructor(e){super(e),this.color=new s.A([255,255,255,.25]),this.type="simple-marker",this.style="circle",this.outline=new y.A}writeColor(e,t){e&&"x"!==this.style&&"cross"!==this.style&&(t.color=e.toJSON()),null===e&&(t.color=null)}get size(){return this._get("size")??12}set size(e){this._set("size",e)}set path(e){this.style="path",this._set("path",e)}clone(){return new r({angle:this.angle,color:(0,n.o8)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,i.Cg)([(0,a.MZ)({type:s.A})],c.prototype,"color",void 0),(0,i.Cg)([(0,h.K)("color")],c.prototype,"writeColor",null),(0,i.Cg)([(0,d.e)({esriSMS:"simple-marker"},{readOnly:!0})],c.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)()],c.prototype,"size",null),(0,i.Cg)([(0,a.MZ)({type:u.apiValues,json:{read:u.read,write:u.write}})],c.prototype,"style",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"path",null),(0,i.Cg)([(0,a.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":y.A}},json:{default:null,write:!0}})],c.prototype,"outline",void 0),c=r=(0,i.Cg)([(0,a.$K)("esri.symbols.SimpleMarkerSymbol")],c)},20378(e,t,o){o.d(t,{A:()=>h});var r=o(32198),i=o(68197),s=o(66552),l=o(25482),n=o(91429),a=o(36005);const p=new s.J({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let y=0,h=class extends l.o{constructor(e){super(e),this.id="sym"+y++,this.type=null,this.color=new i.A([0,0,0,1])}readColor(e){return null==e?.[0]?e:[e[0],e[1],e[2],e[3]/255]}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,r.Cg)([(0,n.MZ)({type:p.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:p.write,isRequired:!0}}})],h.prototype,"type",void 0),(0,r.Cg)([(0,n.MZ)({type:i.A,json:{write:{allowNull:!0}}})],h.prototype,"color",void 0),(0,r.Cg)([(0,a.w)("color")],h.prototype,"readColor",null),h=(0,r.Cg)([(0,n.$K)("esri.symbols.Symbol")],h)},58185(e,t,o){o.d(t,{A:()=>z});var r=o(32198),i=o(7762),s=o(62885),l=o(53966),n=o(84952),a=o(67076),p=o(91429),y=o(20655),h=o(97159),d=o(26449),u=o(27845),c=o(80138),g=o(11506),m=o(51216),b=o(66525),w=o(20378),C=o(3904),f=o(80393),v=o(34723),A=o(98751),S=o(57212),M=o(36005),Z=o(43937);const j={icon:c.A,object:m.A,line:g.A,path:b.A,fill:u.A,extrude:d.A,text:f.A,water:v.A},x=i.A.ofType({base:C.A,key:"type",typeMap:j,errorContext:"symbol-layer"});let z=class extends w.A{constructor(e){super(e),this.styleOrigin=null,this.thumbnail=null,this.type=null;let t=(this.__accessor__&&this.__accessor__.metadata&&this.__accessor__.metadata.symbolLayers)?.type||i.A;this._set("symbolLayers",new t)}get color(){return null}set color(e){this.constructed&&l.A.getLogger(this).error("Symbol3D does not support colors on the symbol level. Colors may be set on individual symbol layer materials instead.")}set symbolLayers(e){(0,s.V)(e,this._get("symbolLayers"))}readStyleOrigin(e,t,o){if(e.styleUrl&&e.name){let t=(0,h.f)(e.styleUrl,o);return new A.A({styleUrl:t,name:e.name})}if(e.styleName&&e.name)return new A.A({portal:o?.portal||y.A.getDefault(),styleName:e.styleName,name:e.name});o?.messages&&o.messages.push(new a.A("symbol3d:incomplete-style-origin","Style origin requires either a 'styleUrl' or 'styleName' and a 'name' property",{context:o,definition:e}))}writeStyleOrigin(e,t,o,r){if(e.styleUrl&&e.name){let o=(0,h.t)(e.styleUrl,r);(0,n.oP)(o)&&(o=(0,n.S8)(o)),t.styleOrigin={styleUrl:o,name:e.name}}else e.styleName&&e.name&&(e.portal&&r?.portal&&!(0,n.ut)(e.portal.restUrl,r.portal.restUrl)?r?.messages&&r.messages.push(new a.A("symbol:cross-portal","The symbol style origin cannot be persisted because it refers to an item on a different portal than the one being saved to.",{symbol:this})):t.styleOrigin={styleName:e.styleName,name:e.name})}};(0,r.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],z.prototype,"color",null),(0,r.Cg)([(0,p.MZ)({type:x,nonNullable:!0,json:{write:!0}}),(0,p.wg)(s.H)],z.prototype,"symbolLayers",null),(0,r.Cg)([(0,p.MZ)({type:A.A})],z.prototype,"styleOrigin",void 0),(0,r.Cg)([(0,M.w)("styleOrigin")],z.prototype,"readStyleOrigin",null),(0,r.Cg)([(0,Z.K)("styleOrigin",{"styleOrigin.styleUrl":{type:String},"styleOrigin.styleName":{type:String},"styleOrigin.name":{type:String}})],z.prototype,"writeStyleOrigin",null),(0,r.Cg)([(0,p.MZ)({type:S.V,json:{read:!1}})],z.prototype,"thumbnail",void 0),(0,r.Cg)([(0,p.MZ)({type:["point-3d","line-3d","polygon-3d","mesh-3d","label-3d"],readOnly:!0})],z.prototype,"type",void 0),z=(0,r.Cg)([(0,p.$K)("esri.symbols.Symbol3D")],z)},3904(e,t,o){o.d(t,{A:()=>n});var r=o(32198),i=o(25482),s=o(91429),l=o(43937);let n=class extends i.o{constructor(e){super(e),this.enabled=!0,this.type=null,this.ignoreDrivers=!1}writeEnabled(e,t,o){e||(t[o]=e)}};(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{read:{source:"enable"},write:{target:"enable"}}})],n.prototype,"enabled",void 0),(0,r.Cg)([(0,l.K)("enabled")],n.prototype,"writeEnabled",null),(0,r.Cg)([(0,s.MZ)({type:["icon","object","line","path","fill","water","extrude","text"],readOnly:!0,json:{write:{isRequired:!0}}})],n.prototype,"type",void 0),n=(0,r.Cg)([(0,s.$K)("esri.symbols.Symbol3DLayer")],n)},68249(e,t,o){o.d(t,{A:()=>c});var r,i=o(32198),s=o(68197),l=o(4718),n=o(90629),a=o(91429),p=o(11831),y=o(20378),h=o(5760),d=o(93223),u=o(43937);let c=r=class extends y.A{constructor(e){super(e),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new p.A,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.angle=0,this.width=null,this.lineHeight=1}get haloSize(){return this._get("haloSize")??null}set haloSize(e){this._set("haloSize",e)}get xoffset(){return this._get("xoffset")??0}set xoffset(e){this._set("xoffset",e)}get yoffset(){return this._get("yoffset")??0}set yoffset(e){this._set("yoffset",e)}get lineWidth(){return this._get("lineWidth")??192}set lineWidth(e){this._set("lineWidth",e)}writeLineWidth(e,t,o,r){r&&"string"!=typeof r?r.origin:t[o]=e}castLineWidth(e){return(0,n.cr)(e)}writeLineHeight(e,t,o,r){r&&"string"!=typeof r?r.origin:t[o]=e}clone(){return new r({angle:this.angle,backgroundColor:(0,l.o8)(this.backgroundColor),borderLineColor:(0,l.o8)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,l.o8)(this.color),font:this.font&&this.font.clone(),haloColor:(0,l.o8)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,i.Cg)([(0,a.MZ)({type:s.A,json:{write:!0}})],c.prototype,"backgroundColor",void 0),(0,i.Cg)([(0,a.MZ)({type:s.A,json:{write:!0}})],c.prototype,"borderLineColor",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0},cast:n.cr})],c.prototype,"borderLineSize",void 0),(0,i.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],c.prototype,"font",void 0),(0,i.Cg)([(0,a.MZ)({...h.rM,json:{write:!0}})],c.prototype,"horizontalAlignment",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"kerning",void 0),(0,i.Cg)([(0,a.MZ)({type:s.A,json:{write:!0}})],c.prototype,"haloColor",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,cast:n.cr,json:{write:!0}})],c.prototype,"haloSize",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"rightToLeft",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"rotated",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"text",void 0),(0,i.Cg)([(0,d.e)({esriTS:"text"},{readOnly:!0})],c.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({...h.x0,json:{write:!0}})],c.prototype,"verticalAlignment",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,cast:n.cr,json:{write:!0}})],c.prototype,"xoffset",null),(0,i.Cg)([(0,a.MZ)({type:Number,cast:n.cr,json:{write:!0}})],c.prototype,"yoffset",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],c.prototype,"angle",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"width",void 0),(0,i.Cg)([(0,a.MZ)({type:Number})],c.prototype,"lineWidth",null),(0,i.Cg)([(0,u.K)("lineWidth")],c.prototype,"writeLineWidth",null),(0,i.Cg)([(0,a.wg)("lineWidth")],c.prototype,"castLineWidth",null),(0,i.Cg)([(0,a.MZ)(h.Tb)],c.prototype,"lineHeight",void 0),(0,i.Cg)([(0,u.K)("lineHeight")],c.prototype,"writeLineHeight",null),c=r=(0,i.Cg)([(0,a.$K)("esri.symbols.TextSymbol")],c)},80393(e,t,o){o.d(t,{A:()=>M});var r,i=o(32198),s=o(4718),l=o(91429),n=o(11831),a=o(3904),p=o(67222),y=o(97515),h=o(27066),d=o(68197),u=o(25482);let c=r=class extends u.o{constructor(e){super(e),this.color=new d.A([0,0,0,1])}get size(){return this._get("size")??0}set size(e){this._set("size",e)}clone(){let e={color:(0,s.o8)(this.color),size:this.size};return new r(e)}};(0,i.Cg)([(0,l.MZ)((0,p.EW)())],c.prototype,"color",void 0),(0,i.Cg)([(0,l.MZ)(p.pI)],c.prototype,"size",null),c=r=(0,i.Cg)([(0,l.$K)("esri.symbols.support.Symbol3DHalo")],c);var g=o(28975),m=o(69540);let b=class extends((0,m.OU)(u.o)){constructor(e){super(e),this.color=null}};(0,i.Cg)([(0,l.MZ)((0,p.EW)())],b.prototype,"color",void 0),b=(0,i.Cg)([(0,l.$K)("esri.symbols.support.Symbol3DTextBackground")],b);var w=o(90629);let C=class extends((0,m.OU)(u.o)){constructor(e){super(e),this.color=new d.A([0,0,0,1])}get size(){return this._get("size")??w.ps}set size(e){this._set("size",e)}};(0,i.Cg)([(0,l.MZ)({...(0,p.EW)({colorRequiredOnWrite:!0}),json:void 0})],C.prototype,"color",void 0),(0,i.Cg)([(0,l.MZ)({...p.pI,json:void 0})],C.prototype,"size",null),C=(0,i.Cg)([(0,l.$K)("esri.symbols.support.Symbol3DTextBorder")],C);var f,v=o(5760),A=o(43937),S=o(93223);let M=class extends a.A{static{f=this}constructor(e){super(e),this._userSize=void 0,this.halo=null,this.horizontalAlignment="center",this.lineHeight=1,this.material=null,this.background=null,this.border=null,this.text=null,this.type="text",this.verticalAlignment="baseline",this.occludedVisibility=new y.A({mode:"adaptive"})}get font(){return this._get("font")||null}set font(e){null!=e&&null!=this._userSize&&(e.size=this._userSize),this._set("font",e)}writeFont(e,t,o,r){let i={...r,textSymbol3D:!0};t.font=e.write({},i),delete t.font.size}get size(){return null==this._userSize?null==this.font?.size?9:this.font.size:this._userSize}set size(e){this._userSize=Number(e),null!=this.font&&(this.font.size=this._userSize),this.notifyChange("size")}clone(){let e=new f({enabled:this.enabled,font:(0,s.o8)(this.font),halo:(0,s.o8)(this.halo),horizontalAlignment:this.horizontalAlignment,lineHeight:this.lineHeight,material:null==this.material?null:this.material.clone(),text:this.text,verticalAlignment:this.verticalAlignment,background:(0,s.o8)(this.background),border:(0,s.o8)(this.border),occludedVisibility:(0,s.o8)(this.occludedVisibility)});return e._userSize=this._userSize,e}static fromTextSymbol(e){return new f({font:null==e.font?new n.A:e.font.clone(),halo:Z(e.haloColor,e.haloSize),horizontalAlignment:e.horizontalAlignment,lineHeight:e.lineHeight,material:e.color?new g.A({color:e.color.clone()}):null,text:e.text,verticalAlignment:e.verticalAlignment,background:e.backgroundColor?new b({color:e.backgroundColor.clone()}):null,border:j(e.borderLineColor,e.borderLineSize),occludedVisibility:null})}};function Z(e,t){return e&&null!=t&&t>0?new c({color:(0,s.o8)(e),size:t}):null}function j(e,t){return null!=e&&null!=t&&t>0?new C({color:(0,s.o8)(e),size:t}):null}(0,i.Cg)([(0,l.MZ)({type:n.A,json:{write:!0}})],M.prototype,"font",null),(0,i.Cg)([(0,A.K)("font")],M.prototype,"writeFont",null),(0,i.Cg)([(0,l.MZ)({type:c,json:{write:!0}})],M.prototype,"halo",void 0),(0,i.Cg)([(0,l.MZ)({...v.rM,json:{default:"center",write:!0}})],M.prototype,"horizontalAlignment",void 0),(0,i.Cg)([(0,l.MZ)({...v.Tb,json:{default:1,write:!0}})],M.prototype,"lineHeight",void 0),(0,i.Cg)([(0,l.MZ)({type:g.A,json:{write:!0}})],M.prototype,"material",void 0),(0,i.Cg)([(0,l.MZ)({type:b,json:{write:!0}})],M.prototype,"background",void 0),(0,i.Cg)([(0,l.MZ)({type:C,json:{read:!1,write:!1}})],M.prototype,"border",void 0),(0,i.Cg)([(0,l.MZ)(p.pI)],M.prototype,"size",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],M.prototype,"text",void 0),(0,i.Cg)([(0,S.e)({Text:"text"},{readOnly:!0})],M.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({...v.x0,json:{default:"baseline",write:!0}})],M.prototype,"verticalAlignment",void 0),(0,i.Cg)([(0,l.MZ)(h.D)],M.prototype,"occludedVisibility",void 0),M=f=(0,i.Cg)([(0,l.$K)("esri.symbols.TextSymbol3DLayer")],M)},34723(e,t,o){o.d(t,{A:()=>y});var r,i=o(32198),s=o(68197),l=o(91429),n=o(78888),a=o(3904),p=o(93223);let y=class extends a.A{static{r=this}constructor(e){super(e),this.color=h.clone(),this.type="water",this.waterbodySize="medium",this.waveDirection=null,this.waveStrength="moderate"}clone(){return new r({color:this.color.clone(),waterbodySize:this.waterbodySize,waveDirection:this.waveDirection,waveStrength:this.waveStrength})}};(0,i.Cg)([(0,l.MZ)({type:s.A,nonNullable:!0,json:{type:[n.jz],write:(e,t,o)=>t[o]=e.toArray(1),default:()=>h.clone(),defaultEquals:e=>e.toCss(!0)===h.toCss(!0)}})],y.prototype,"color",void 0),(0,i.Cg)([(0,p.e)({Water:"water"},{readOnly:!0})],y.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({type:["small","medium","large"],json:{write:!0,default:"medium"}})],y.prototype,"waterbodySize",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0,default:null}})],y.prototype,"waveDirection",void 0),(0,i.Cg)([(0,l.MZ)({type:["calm","rippled","slight","moderate"],json:{write:!0,default:"moderate"}})],y.prototype,"waveStrength",void 0),y=r=(0,i.Cg)([(0,l.$K)("esri.symbols.WaterSymbol3DLayer")],y);const h=new s.A([0,119,190])},29169(e,t,o){o.d(t,{A:()=>c});var r=o(32198),i=o(53966),s=o(17676),l=o(91429),n=o(20655),a=o(97159),p=o(20378),y=o(57212);const h=new(o(66344).q)(500);var d,u=o(93223);let c=d=class extends p.A{constructor(e){super(e),this.color=null,this.styleName=null,this.portal=null,this.styleUrl=null,this.thumbnail=null,this.name=null,this.type="web-style"}get _fetchCacheKey(){let e=null==this.portal?n.A.getDefault():this.portal,t=e.user?e.user.username:null;return`${this.styleName}:${this.styleUrl}:${this.name}:${t}:${e.url}`}read(e,t){this.portal=t?.portal,super.read(e,t)}clone(){return new d({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}fetchSymbol(e){return this._fetchSymbol(e)}async _fetchSymbol(e){let t=h,r=`${this._fetchCacheKey}:${e?.acceptedFormats?.join(",")}`,l=t.get(r);if(l)return await Promise.resolve(),(0,s.Te)(e),l.clone();let{resolveWebStyleSymbol:n}=await o.e(7883).then(()=>o(27883));(0,s.Te)(e);let a=n(this,{portal:this.portal},e);a.catch(e=>{i.A.getLogger(this).error("#fetchSymbol()","Failed to create symbol from style",e)});let p=await a;return t.put(r,p.clone()),p}};(0,r.Cg)([(0,l.MZ)({json:{write:!1}})],c.prototype,"color",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"styleName",void 0),(0,r.Cg)([(0,l.MZ)({type:n.A,json:{write:!1}})],c.prototype,"portal",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:a.r,write:a.w}})],c.prototype,"styleUrl",void 0),(0,r.Cg)([(0,l.MZ)({type:y.V,json:{read:!1}})],c.prototype,"thumbnail",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,r.Cg)([(0,u.e)({styleSymbolReference:"web-style"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)()],c.prototype,"_fetchCacheKey",null),c=d=(0,r.Cg)([(0,l.$K)("esri.symbols.WebStyleSymbol")],c)},4595(e,t,o){o.d(t,{A:()=>l});var r=o(32198),i=o(25482),s=o(91429);let l=class extends i.o{constructor(e){super(e),this.visible=!0}clone(){throw Error("Subclasses of Callout3D should implement their own clone method.")}};(0,r.Cg)([(0,s.MZ)({type:["line"],constructOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,isRequired:!0}}})],l.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({readOnly:!0})],l.prototype,"visible",void 0),l=(0,r.Cg)([(0,s.$K)("esri.symbols.callouts.Callout3D")],l)},8893(e,t,o){o.d(t,{A:()=>m});var r,i=o(32198),s=o(68197),l=o(4718),n=o(90629),a=o(91429),p=o(4595),y=o(25482),h=o(67222);let d=r=class extends y.o{constructor(e){super(e),this.color=new s.A("white")}clone(){return new r({color:(0,l.o8)(this.color)})}};(0,i.Cg)([(0,a.MZ)((0,h.EW)({colorRequiredOnWrite:!0}))],d.prototype,"color",void 0),d=r=(0,i.Cg)([(0,a.$K)("esri.symbols.callouts.LineCallout3DBorder")],d);const u=d;var c,g=o(93223);let m=c=class extends p.A{constructor(e){super(e),this.type="line",this.color=new s.A([0,0,0,1]),this.border=null}get size(){return this._get("size")??n.ps}set size(e){this._set("size",e)}get visible(){return this.size>0&&null!=this.color&&this.color.a>0}clone(){return new c({color:(0,l.o8)(this.color),size:this.size,border:(0,l.o8)(this.border)})}};(0,i.Cg)([(0,g.e)({line:"line"})],m.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)((0,h.EW)({colorRequiredOnWrite:!0}))],m.prototype,"color",void 0),(0,i.Cg)([(0,a.MZ)({...h.pI,json:{write:{isRequired:!0}}})],m.prototype,"size",null),(0,i.Cg)([(0,a.MZ)({type:u,json:{write:!0}})],m.prototype,"border",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"visible",null),m=c=(0,i.Cg)([(0,a.$K)("esri.symbols.callouts.LineCallout3D")],m)},59483(e,t,o){o.d(t,{LH:()=>l,Yq:()=>s});var r=o(4595),i=o(8893);function s(e){if(!e)return!1;let t=e.verticalOffset;return!(!t||t.screenLength<=0||null!=t.maxWorldLength&&t.maxWorldLength<=0)}function l(e){return!!(e&&e.supportsCallout&&e.supportsCallout()&&e.callout?.visible)&&!!s(e)}const n={types:{key:"type",base:r.A,typeMap:{line:i.A}},json:{write:!0}};o.d(t,["oG",0,n])},4792(e,t,o){var r=o(32198),i=o(68197),s=o(25482),l=o(4718),n=o(90629),a=o(91429),p=o(67222);let y=class extends s.o{constructor(e){super(e),this.color=new i.A([0,0,0,1])}get extensionLength(){return this._get("extensionLength")??0}set extensionLength(e){this._set("extensionLength",e)}get size(){return this._get("size")??n.ps}set size(e){this._set("size",e)}clone(){}cloneProperties(){return{color:(0,l.o8)(this.color),size:this.size,extensionLength:this.extensionLength}}};(0,r.Cg)([(0,a.MZ)({type:["solid","sketch"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0,isRequired:!0}}})],y.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)((0,p.EW)({colorRequiredOnWrite:!0}))],y.prototype,"color",void 0),(0,r.Cg)([(0,a.MZ)({...p.pI,json:{write:{overridePolicy:e=>({enabled:!!e})}}})],y.prototype,"extensionLength",null),(0,r.Cg)([(0,a.MZ)(p.pI)],y.prototype,"size",null),y=(0,r.Cg)([(0,a.$K)("esri.symbols.edges.Edges3D")],y);const h=y;o.d(t,["A",0,h])},39065(e,t,o){var r,i=o(32198),s=o(91429),l=o(4792),n=o(93223);let a=r=class extends l.A{constructor(e){super(e),this.type="solid"}clone(){return new r(this.cloneProperties())}};(0,i.Cg)([(0,n.e)({solid:"solid"},{readOnly:!0})],a.prototype,"type",void 0),a=r=(0,i.Cg)([(0,s.$K)("esri.symbols.edges.SolidEdges3D")],a);const p=a;o.d(t,["A",0,p])},51734(e,t,o){o.d(t,{J:()=>h});var r,i=o(4792),s=o(32198),l=o(91429),n=o(93223);let a=r=class extends i.A{constructor(e){super(e),this.type="sketch"}clone(){return new r(this.cloneProperties())}};(0,s.Cg)([(0,n.e)({sketch:"sketch"},{readOnly:!0})],a.prototype,"type",void 0),a=r=(0,s.Cg)([(0,l.$K)("esri.symbols.edges.SketchEdges3D")],a);const p=a;var y=o(39065);const h={types:{key:"type",base:i.A,typeMap:{solid:y.A,sketch:p}},json:{write:!0}}},36533(e,t,o){o.d(t,{A:()=>n});var r=o(32198),i=o(69540),s=o(25482),l=o(91429);let n=class extends((0,i.OU)(s.o)){constructor(e){super(e)}};(0,r.Cg)([(0,l.MZ)({type:["style","template","image"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0,isRequired:!0}}})],n.prototype,"type",void 0),n=(0,r.Cg)([(0,l.$K)("esri.symbols.patterns.LinePattern3D")],n)},44633(e,t,o){o.d(t,{A:()=>p});var r=o(32198),i=o(66552),s=o(91429),l=o(36533);var n=o(93223);const a=(0,i.O)()({dash:"dash","dash-dot":"dash-dot","dash-dot-dot":"long-dash-dot-dot",dot:"dot","long-dash":"long-dash","long-dash-dot":"long-dash-dot",null:"none","short-dash":"short-dash","short-dash-dot":"short-dash-dot","short-dash-dot-dot":"short-dash-dot-dot","short-dot":"short-dot",solid:"solid"});let p=class extends l.A{constructor(e){super(e),this.type="style",this.style="solid"}};(0,r.Cg)([(0,s.MZ)({type:["style"]})],p.prototype,"type",void 0),(0,r.Cg)([(0,n.e)(a),(0,s.MZ)({type:["dash","dash-dot","dot","long-dash","long-dash-dot","long-dash-dot-dot","none","short-dash","short-dash-dot","short-dash-dot-dot","short-dot","solid"],json:{write:{isRequired:!0}}})],p.prototype,"style",void 0),p=(0,r.Cg)([(0,s.$K)("esri.symbols.patterns.LineStylePattern3D")],p)},3955(e,t,o){o.d(t,{A:()=>n});var r=o(32198),i=o(69540),s=o(25482),l=o(91429);let n=class extends((0,i.OU)(s.o)){constructor(){super(...arguments),this.type="style"}};(0,r.Cg)([(0,l.MZ)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),n=(0,r.Cg)([(0,l.$K)("esri.symbols.patterns.Pattern3D")],n)},16264(e,t,o){o.d(t,{A:()=>l});var r=o(32198),i=o(91429),s=o(3955);let l=class extends s.A{constructor(e){super(e),this.type="style",this.style="solid"}};(0,r.Cg)([(0,i.MZ)({type:["style"],json:{write:{isRequired:!0}}})],l.prototype,"type",void 0),(0,r.Cg)([(0,i.MZ)({type:["backward-diagonal","cross","diagonal-cross","forward-diagonal","horizontal","none","solid","vertical"],json:{read:!0,write:{isRequired:!0}}})],l.prototype,"style",void 0),l=(0,r.Cg)([(0,i.$K)("esri.symbols.patterns.StylePattern3D")],l)},64086(e,t,o){o.d(t,{vc:()=>g,h6:()=>m,rn:()=>c});var r=o(36533),i=o(44633),s=o(32198),l=o(91429),n=o(45733);let a=class extends r.A{constructor(e){super(e),this.type="template",this.dashTemplate=[]}get normalizedDashTemplate(){let{dashTemplate:e,hidesLine:t}=(0,n.OI)(this.dashTemplate);return{dashTemplate:e.map(e=>Math.abs(e)),hidesLine:t}}};(0,s.Cg)([(0,l.MZ)({type:["template"]})],a.prototype,"type",void 0),(0,s.Cg)([(0,l.MZ)({type:[Number],nonNullable:!0,json:{write:{isRequired:!0}}})],a.prototype,"dashTemplate",void 0),(0,s.Cg)([(0,l.MZ)()],a.prototype,"normalizedDashTemplate",null),a=(0,s.Cg)([(0,l.$K)("esri.symbols.patterns.LineTemplatePattern3D")],a);const p=a;var y=o(3955),h=o(16264);const d={key:"type",base:r.A,typeMap:{style:i.A,template:p}},u={key:"type",base:r.A,typeMap:{style:i.A}},c={types:{key:"type",base:y.A,typeMap:{style:h.A}},json:{write:!0}},g={types:d,json:{write:!0}},m={types:u,json:{write:!0}}},97515(e,t,o){o.d(t,{A:()=>n});var r=o(32198),i=o(69540),s=o(25482),l=o(91429);let n=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.mode="adaptive"}equals(e){return this.mode===e.mode}};(0,r.Cg)([(0,l.MZ)({type:["adaptive","hidden","visible"],json:{write:{isRequired:!0}}})],n.prototype,"mode",void 0),n=(0,r.Cg)([(0,l.$K)("esri.symbols.support.OccludedVisibility")],n)},98751(e,t,o){o.d(t,{A:()=>a});var r,i=o(32198),s=o(69622),l=o(91429),n=o(20655);let a=r=class extends s.A{constructor(e){super(e),this.name=null,this.styleUrl=null,this.styleName=null,this.portal=null}clone(){return new r({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}};(0,i.Cg)([(0,l.MZ)({type:String})],a.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({type:String})],a.prototype,"styleUrl",void 0),(0,i.Cg)([(0,l.MZ)({type:String})],a.prototype,"styleName",void 0),(0,i.Cg)([(0,l.MZ)({type:n.A})],a.prototype,"portal",void 0),a=r=(0,i.Cg)([(0,l.$K)("esri.symbols.support.StyleOrigin")],a)},28975(e,t,o){o.d(t,{A:()=>y});var r=o(32198),i=o(69540),s=o(25482),l=o(91429),n=o(67222),a=o(93223);let p=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.strength=1,this.source="emissive"}};(0,r.Cg)([(0,l.MZ)({type:Number,nonNullable:!0,range:{min:0},json:{write:!0}})],p.prototype,"strength",void 0),(0,r.Cg)([(0,a.e)({emissive:"emissive",color:"color"}),(0,l.MZ)({nonNullable:!0,json:{write:{enabled:!0}}})],p.prototype,"source",void 0),p=(0,r.Cg)([(0,l.$K)("esri.symbols.support.Symbol3DEmissive")],p);let y=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.color=null,this.emissive=null}};(0,r.Cg)([(0,l.MZ)((0,n.EW)())],y.prototype,"color",void 0),(0,r.Cg)([(0,l.MZ)({type:p,json:{write:!0}})],y.prototype,"emissive",void 0),y=(0,r.Cg)([(0,l.$K)("esri.symbols.support.Symbol3DMaterial")],y)},4900(e,t,o){o.d(t,{A:()=>a});var r,i=o(32198),s=o(25482),l=o(91429),n=o(67222);let a=r=class extends s.o{constructor(e){super(e),this.minWorldLength=0,this.maxWorldLength=null}get screenLength(){return this._get("screenLength")??0}set screenLength(e){this._set("screenLength",e)}clone(){return new r({screenLength:this.screenLength,minWorldLength:this.minWorldLength,maxWorldLength:this.maxWorldLength})}};(0,i.Cg)([(0,l.MZ)({...n.pI,json:{write:{isRequired:!0}}})],a.prototype,"screenLength",null),(0,i.Cg)([(0,l.MZ)({type:Number,nonNullable:!0,json:{write:!0,default:0}})],a.prototype,"minWorldLength",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],a.prototype,"maxWorldLength",void 0),a=r=(0,i.Cg)([(0,l.$K)("esri.symbols.support.Symbol3DVerticalOffset")],a)},57212(e,t,o){o.d(t,{V:()=>n});var r,i=o(32198),s=o(69622),l=o(91429);let n=r=class extends s.A{constructor(){super(...arguments),this.url=""}clone(){return new r({url:this.url})}};(0,i.Cg)([(0,l.MZ)({type:String})],n.prototype,"url",void 0),n=r=(0,i.Cg)([(0,l.$K)("esri.symbols.support.Thumbnail")],n)},33386(e,t,o){o.d(t,{U9:()=>l});var r=o(68197);const i=new r.A("white"),s=new r.A([255,255,255,0]);function l(e){return 0===e.r&&0===e.g&&0===e.b}o.d(t,["ON",0,i,"u7",0,s])},83213(e,t,o){o.d(t,["x",0,["begin","end","begin-end"],"z",0,["arrow","circle","square","diamond","cross","x"]])},67222(e,t,o){o.d(t,{EW:()=>p});var r=o(68197),i=o(90629),s=o(78888),l=o(78553);function n(e,t){let o=null==t.transparency?1:(0,l.D)(t.transparency),i=t.color;return i&&Array.isArray(i)?new r.A([i[0]||0,i[1]||0,i[2]||0,o]):null}function a(e,t){t.color=e.toJSON().slice(0,3);let o=(0,l.p)(e.a);0!==o&&(t.transparency=o)}function p(e){return{type:r.A,nonNullable:e?.nonNullable,json:{type:[s.jz],default:null,read:{source:["color","transparency"],reader:n},write:{target:{color:{type:[s.jz],isRequired:e?.colorRequiredOnWrite},transparency:{type:s.jz}},writer:a}}}}const y={type:Number,cast:i.cr,json:{write:!0}};o.d(t,["pI",0,y])},27066(e,t,o){const r={type:o(97515).A,json:{write:!0,default:null}};o.d(t,["D",0,r])},8887(e,t,o){o.d(t,{Fq:()=>n}),o(51850);var r=o(70328);const i=(0,r.fA)(-.5,-.5,-.5,.5,.5,.5),s=(0,r.fA)(-.5,-.5,0,.5,.5,1),l=(0,r.fA)(-.5,-.5,0,.5,.5,.5);function n(e){switch(e){case"sphere":case"cube":case"diamond":return i;case"cylinder":case"cone":case"inverted-cone":return s;case"tetrahedron":return l;default:return}}const a=["butt","square","round"],p=[...a,"none"];o.d(t,["M4",0,a,"Nv",0,p,"e",0,["miter","bevel","round"]])},5760(e,t,o){var r=o(34727),i=o(78888);const s={type:Number,cast:e=>{let t=(0,i.GB)(e);return 0===t?1:(0,r.qE)(t,.1,4)},nonNullable:!0};o.d(t,["NM",0,["normal","lighter","bold","bolder"],"Tb",0,s,"_R",0,["normal","italic","oblique"],"h9",0,["none","underline","line-through"],"rM",0,{type:["left","right","center"],nonNullable:!0},"x0",0,{type:["baseline","top","middle","bottom"],nonNullable:!0}])},33910(e,t,o){o.d(t,{dp:()=>W,$y:()=>x,wk:()=>z,Y7:()=>O,wC:()=>$,Ac:()=>k,Bu:()=>D,Es:()=>L,q8:()=>N,em:()=>K,Rv:()=>q,xK:()=>_,On:()=>P});var r,i=o(78888),s=o(90360),l=o(40863),n=o(13313),a=o(97887),p=o(68548),y=o(32198),h=o(4718),d=o(90629),u=o(91429),c=o(65851),g=o(77040),m=o(93223);let b=r=class extends c.A{constructor(e){super(e),this.color=null,this.type="picture-fill",this.url=null,this.xscale=1,this.yscale=1,this.source=null}get width(){return this._get("width")??12}set width(e){this._set("width",e)}get height(){return this._get("height")??12}set height(e){this._set("height",e)}get xoffset(){return this._get("xoffset")??0}set xoffset(e){this._set("xoffset",e)}get yoffset(){return this._get("yoffset")??0}set yoffset(e){this._set("yoffset",e)}clone(){let e=new r({color:(0,h.o8)(this.color),height:this.height,outline:(0,h.o8)(this.outline),url:this.url,width:this.width,xoffset:this.xoffset,xscale:this.xscale,yoffset:this.yoffset,yscale:this.yscale});return e._set("source",(0,h.o8)(this.source)),e}hash(){return`${super.hash()}.${this.color?.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`}};(0,y.Cg)([(0,u.MZ)({json:{write:!1}})],b.prototype,"color",void 0),(0,y.Cg)([(0,m.e)({esriPFS:"picture-fill"},{readOnly:!0})],b.prototype,"type",void 0),(0,y.Cg)([(0,u.MZ)(g.ku)],b.prototype,"url",void 0),(0,y.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],b.prototype,"xscale",void 0),(0,y.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],b.prototype,"yscale",void 0),(0,y.Cg)([(0,u.MZ)({type:Number,cast:d.cr,json:{write:!0}})],b.prototype,"width",null),(0,y.Cg)([(0,u.MZ)({type:Number,cast:d.cr,json:{write:!0}})],b.prototype,"height",null),(0,y.Cg)([(0,u.MZ)({type:Number,cast:d.cr,json:{write:!0}})],b.prototype,"xoffset",null),(0,y.Cg)([(0,u.MZ)({type:Number,cast:d.cr,json:{write:!0}})],b.prototype,"yoffset",null),(0,y.Cg)([(0,u.MZ)(g.k7)],b.prototype,"source",void 0),b=r=(0,y.Cg)([(0,u.$K)("esri.symbols.PictureFillSymbol")],b);var w=o(58592),C=o(75981),f=o(65365),v=o(94985),A=o(31593),S=o(53930),M=o(20378),Z=o(68249),j=o(29169);function x(e){if(!e)return!1;switch(e.type){case"picture-fill":case"picture-marker":case"simple-fill":case"simple-line":case"simple-marker":case"text":case"cim":return!0;default:return!1}}function z(e){switch(e?.type){case"label-3d":case"line-3d":case"mesh-3d":case"point-3d":case"polygon-3d":return!0;default:return!1}}const L={base:M.A,key:"type",typeMap:{"simple-fill":v.A,"picture-fill":b,"picture-marker":w.A,"simple-line":A.A,"simple-marker":S.A,text:Z.A,"label-3d":n.A,"line-3d":a.A,"mesh-3d":p.A,"point-3d":C.A,"polygon-3d":f.A,"web-style":j.A,cim:l.A},errorContext:"symbol"},$={base:M.A,key:"type",typeMap:{"picture-marker":w.A,"simple-marker":S.A,"point-3d":C.A,cim:l.A},errorContext:"symbol"},O={base:M.A,key:"type",typeMap:{"simple-line":A.A,"line-3d":a.A,cim:l.A},errorContext:"symbol"},k={base:M.A,key:"type",typeMap:{"simple-fill":v.A,"picture-fill":b,"polygon-3d":f.A,cim:l.A},errorContext:"symbol"},N={base:M.A,key:"type",typeMap:{"picture-marker":w.A,"simple-marker":S.A,text:Z.A,"web-style":j.A,cim:l.A},errorContext:"symbol"},D=(0,s.C)({types:L}),_={base:M.A,key:"type",typeMap:{"simple-fill":v.A,"picture-fill":b,"picture-marker":w.A,"simple-line":A.A,"simple-marker":S.A,text:Z.A,"line-3d":a.A,"mesh-3d":p.A,"point-3d":C.A,"polygon-3d":f.A,"web-style":j.A,cim:l.A},errorContext:"symbol"},K={base:M.A,key:"type",typeMap:{text:Z.A,"label-3d":n.A,cim:l.A},errorContext:"symbol"},P={base:M.A,key:"type",typeMap:{"line-3d":a.A,"mesh-3d":p.A,"point-3d":C.A,"polygon-3d":f.A,"web-style":j.A,cim:l.A},errorContext:"symbol"},q={base:M.A,key:"type",typeMap:{"label-3d":n.A},errorContext:"symbol"},W=(0,i.aq)(L)},77040(e,t,o){var r=o(84952),i=o(97159);function s(e,t){if(!(0,r.oP)(e)){let o=function(e){if(!e)return null;let{origin:t,layer:o}=e;if("service"!==t&&"portal-item"!==t)return null;let r=o?.type;return"feature"===r||"stream"===r?o.parsedUrl?.path:"map-image"===r||"tile"===r?e.url?.path:null}(t);if(o)return(0,r.fj)(o,"images",e)}return(0,i.f)(e,t)}const l={json:{read:{source:["imageData","url"],reader:function(e,t,o){return t.imageData?(0,r.Hg)({mediaType:t.contentType||"image/png",isBase64:!0,data:t.imageData}):s(t.url,o)}},write:{writer(e,t,o,s){!function(e,t,o,s){if((0,r.DB)(e)){let l=(0,r.r$)(e);if(!l)return;t.contentType=l.mediaType,t.imageData=l.data,o&&o.imageData===t.imageData&&o.url&&(0,i.w)(o.url,t,"url",s)}else(0,i.w)(e,t,"url",s)}(e,t,this.source,s)}}}},n={readOnly:!0,json:{read:{source:["imageData","url"],reader(e,t,o){let r={};return t.imageData&&(r.imageData=t.imageData),t.contentType&&(r.contentType=t.contentType),t.url&&(r.url=s(t.url,o)),r}}}};o.d(t,["k7",0,n,"ku",0,l])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8589],{16494(e,t,i){var r=i(8673);const s=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup",..."animate.animatetransform.circle.clippath.defs.ellipse.g.image.line.lineargradient.marker.mask.path.pattern.polygon.polyline.radialgradient.rect.stop.svg.switch.symbol.text.textpath.tspan.use".split(".")].reduce((e,t)=>(e[t]=[],e),{}),a="align.alink.alt.bgcolor.border.cellpadding.cellspacing.class.color.cols.colspan.coords.d.dir.face.height.hspace.ismap.lang.marginheight.marginwidth.multiple.nohref.noresize.noshade.nowrap.ref.rel.rev.rows.rowspan.scrolling.shape.span.summary.tabindex.title.usemap.valign.value.vlink.vspace.width".split("."),o=new r.I({whiteList:s,onTagAttr:(e,t,i)=>{let r=`${t}="${i}"`;if(a.includes(t))return r},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),n={sanitizeHtml:e=>o.sanitize(e)},l=new r.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1);i.d(t,["KO",0,n,"Nd",0,l,"W5",0,o])},83027(e,t,i){const r=i(29953).ho;i.d(t,["h",0,r])},18589(e,t,i){i.r(t),i.d(t,{default:()=>Ve});var r=i(32198),s=i(40124),a=i(56507),o=i(69540),n=i(7762),l=i(49186),d=i(36563),u=i(4718),p=i(53966),y=i(97768),h=i(25728),c=i(93637),f=i(17676),g=i(39516),m=i(91429),b=i(89317),w=i(78247),v=i(16930),F=i(41910),I=i(55156),C=i(60950),M=i(89808),T=i(99959);const S=Symbol("isFeatureGraphicOrigin");var _;class E extends T.A{get[(_=S,C.ym)](){return this.layer}get[I.e](){return this.layer}get[M.Q](){return this.layer}get[F.e7](){return this.layer}constructor(e){super(),this[_]=!0,this.type="feature",this.layer=e}get id(){return this.layer.id}}var Z=i(4146),j=i(52106),O=i(92474),x=i(61893),A=i(83027),D=i(78888),q=i(5443),L=i(39829),P=i(50498),R=i(54339),k=i(59288),N=i(96520),G=i(22671),$=i(7695);let J=0,U=class extends((0,O.WV)((0,x.g)(n.A))){constructor(e){super(e),this._idToClientGeometry=null,this.type="memory"}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}get _workerGeometryType(){let e=this.layer?.geometryType;return e?this._geometryTypeRequiresClientGraphicMapping(e)?"polygon":e:null}applyEdits(e){return this.load().then(()=>this._applyEdits(e))}openPorts(){return this.load().then(()=>this._connection.openPorts())}async queryFeatures(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let i=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex),r=await this._connection.invoke("queryFeatures",i.toJSON(),t),s=G.A.fromJSON(r);if(!this._requiresClientGraphicMapping()||!this._idToClientGeometry)return s;let a=this.layer.objectIdField;for(let e of s.features){let t=e.attributes[a],i=this._idToClientGeometry.get(t);void 0!==i&&(e.geometry=i)}return s.geometryType=this.layer.geometryType,s}async queryFeaturesJSON(e,t={}){if(this._requiresClientGraphicMapping())throw new l.A("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let i=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return await this._connection.invoke("queryFeatures",i.toJSON(),t)}async queryFeatureCount(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let i=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryFeatureCount",i.toJSON(),t)}async queryObjectIds(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let i=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryObjectIds",i.toJSON(),t)}async queryExtent(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let i=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex),r=await this._connection.invoke("queryExtent",i.toJSON(),t);return{count:r.count,extent:q.A.fromJSON(r.extent)}}async querySnapping(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();return this._connection.invoke("querySnapping",e,t)}async queryAttributeBins(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let r=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex),s=await this._connection.invoke("queryAttributeBins",r.toJSON(),t);return(await i.e(7745).then(()=>i(37745))).default.fromJSON(s)}async _applyEdits(e){if(!this._connection)throw new l.A("feature-layer-source:edit-failure","Memory source not loaded");let t=this.layer.objectIdField,i=this.layer.uniqueIdFields,r=null,s=[],a=[];await Promise.all([this._prepareClientMapping(e.addFeatures,null),this._prepareClientMapping(e.updateFeatures,null)]);let o=e=>i?.length&&"attributes"in e?(0,R.r)(e,this.layer):"objectId"in e&&null!=e.objectId?e.objectId:"attributes"in e&&null!=e.attributes[t]?e.attributes[t]:null;if(e.addFeatures&&(r=this._prepareAddFeatures(e.addFeatures)),e.deleteFeatures)for(let t of e.deleteFeatures){let e=o(t);null!=e&&s.push(e)}let n=e.updateFeatures&&this._idToClientGeometry?new Map:null;if(e.updateFeatures)for(let t of e.updateFeatures)if(a.push(this._serializeFeature(t)),n&&null!=t.geometry){let e=o(t);null!=e&&n.set(e,t)}(0,N.u)(r?r.features:null,a,this.layer.spatialReference);let{fullExtent:d,featureEditResults:u}=await this._connection.invoke("applyEdits",{adds:r?r.features:[],updates:a,deletes:s});return this.fullExtent=d,r&&r.finish(u.uidToObjectId),this._updateIdToClientGeometries(n,u),this._createEditsResult(u)}async _prepareClientMapping(e,t){if("mesh"!==this._layerOrSourceGeometryType||null==e)return;let i=[];for(let{geometry:r}of e)null!=r&&"mesh"===r.type&&!r.hasExtent&&!r.loaded&&i.push(r.load({signal:t}));i.length&&await Promise.all(i)}_updateIdToClientGeometries(e,t){if(this._idToClientGeometry){if(e)for(let i of t.updateResults){if(!i.success)continue;let t=e.get(i.objectId);null!=t&&this._addIdToClientGeometry(t)}for(let e of t.deleteResults)e.success&&this._idToClientGeometry.delete(e.objectId)}}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){let t=!0===e.success?null:e.error||{code:void 0,description:""};return{objectId:e.objectId,globalId:e.globalId,error:t?new l.A("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_prepareAddFeatures(e){let t=new Map,i=Array(e.length),r=null;for(let s=0;s<e.length;s++){let a=e[s],o=this._serializeFeature(a);!r&&null!=a.geometry&&(r=a.geometry.type),i[s]=o,t.set(`${o.uid}`,a)}let s=this;return{features:i,inferredGeometryType:r,finish(e){let i=s.sourceJSON.objectIdField;for(let r in e){let a=e[r],o=t.get(r);o&&(o.attributes||={},-1===a?delete o.attributes[i]:o.attributes[i]=a,s._addIdToClientGeometry(o))}}}}_addIdToClientGeometry(e){if(!this._idToClientGeometry)return;let t=this.sourceJSON.objectIdField,i=e.attributes?.[t];null!=i&&this._idToClientGeometry.set(i,e.geometry??null)}get _layerOrSourceGeometryType(){return this.layer?.geometryType??this.sourceJSON?.geometryType}_requiresClientGraphicMapping(){return this._geometryTypeRequiresClientGraphicMapping(this._layerOrSourceGeometryType)}_geometryRequiresClientGraphicMapping(e){return this._geometryTypeRequiresClientGraphicMapping(e.type)}_geometryTypeRequiresClientGraphicMapping(e){return"mesh"===e||"multipatch"===e||"extent"===e}_serializeFeature(e){let{attributes:t}=e,i=this._geometryForSerialization(e),r=(J++).toString();return i?{uid:r,geometry:i.toJSON(),attributes:t}:{uid:r,attributes:t}}_geometryForSerialization(e){let{geometry:t}=e;return null==t?null:this._geometryRequiresClientGraphicMapping(t)?t.extent?L.A.fromExtent(t.extent):null:t}async _startWorker(e){this._connection=await(0,A.h)("MemorySourceWorker",{strategy:"dedicated",signal:e,registryTarget:this});let{fields:t,spatialReference:i,objectIdField:r,hasM:s,hasZ:a,timeInfo:o,dateFieldsTimeZone:n}=this.layer,l="defaults"===this.layer.originOf("spatialReference");await this._prepareClientMapping(this.items,e);let d=this._prepareAddFeatures(this.items);this.addHandles(this.on("before-changes",e=>{p.A.getLogger(this).error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead"),e.preventDefault()}));let{uniqueIdFields:u}=this.layer,y=u?.length?{type:u.length>1?"composite":"simple",fields:u.slice(),OIDFieldContainsHashValue:1!==u?.length||u.at(0)!==this.layer.objectIdField}:void 0,h={features:d.features,fields:t?.map(e=>e.toJSON()),geometryType:P.Ye.toJSON(this._workerGeometryType),hasM:"mesh"!==this._layerOrSourceGeometryType&&s,hasZ:"mesh"===this._layerOrSourceGeometryType||a,objectIdField:r,spatialReference:l?null:i&&i.toJSON(),timeInfo:o?.toJSON()??null,dateFieldsTimeZone:n,uniqueIdInfo:y},c=await this._connection.invoke("load",h,{signal:e});for(let e of c.warnings)p.A.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});c.featureErrors.length&&p.A.getLogger(this.layer).error("#load()",`Failed to load ${c.featureErrors.length} features due to errors. (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}').`,c.featureErrors.map(e=>"\n\n- "+e.error.description).join(""));let f=c.layerDefinition;this._geometryTypeRequiresClientGraphicMapping(d.inferredGeometryType)&&(f.geometryType=P.Ye.toJSON(d.inferredGeometryType)),this.sourceJSON=f,this._requiresClientGraphicMapping()&&(this._idToClientGeometry=new Map),d.finish(c.assignedObjectIds)}};(0,r.Cg)([(0,$.u)({Type:j.A,ensureType:(0,D.dp)(j.A)})],U.prototype,"itemType",void 0),(0,r.Cg)([(0,m.MZ)()],U.prototype,"type",void 0),(0,r.Cg)([(0,m.MZ)({constructOnly:!0})],U.prototype,"layer",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],U.prototype,"_workerGeometryType",null),(0,r.Cg)([(0,m.MZ)()],U.prototype,"sourceJSON",void 0),U=(0,r.Cg)([(0,m.$K)("esri.layers.graphics.sources.MemorySource")],U);var V=i(52136),K=i(18768),H=i(63074),B=i(69208),Q=i(75254),W=i(6455),z=i(47685),Y=i(87718),X=i(10086),ee=i(56658),te=i(34287),ie=i(32756),re=i(8303),se=i(69622);let ae=class extends se.A{constructor(e){super(e),this.updating=!1,this.status="unknown"}};(0,r.Cg)([(0,m.MZ)()],ae.prototype,"updating",void 0),(0,r.Cg)([(0,m.MZ)()],ae.prototype,"status",void 0),ae=(0,r.Cg)([(0,m.$K)("esri.layers.support.PublishingInfo")],ae);const oe=Symbol(),ne=e=>{var t;let i=e,s=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=oe}get publishingInfo(){if(this.destroyed)return null;let e=this._get("publishingInfo");if(e)return e;let t=new ae;return this._checkPublishingStatus(t),t}_checkPublishingStatus(e){let t=0,i=async s=>{let a;e.updating=!0;try{a=await this.fetchPublishingStatus()}catch{a="unavailable"}("published"===a||"unavailable"===a)&&("publishing"===e.status&&this.refresh(),r.remove()),e.status=a,e.updating=!1,r.removed||(t=setTimeout(i,s,s+125))},r={removed:!1,remove(){this.removed=!0,clearTimeout(t)}};this.when().catch(()=>r.remove()),i(250),this.addHandles(r)}};return(0,r.Cg)([(0,m.MZ)({readOnly:!0,clonable:!1})],s.prototype,"publishingInfo",null),s=(0,r.Cg)([(0,m.$K)("esri.layers.mixins.PublishableLayer")],s),s};var le=i(54310),de=i(23502),ue=i(25036),pe=i(82935),ye=i(63396),he=i(60694),ce=i(10873),fe=i(15426),ge=i(29005),me=i(33143),be=i(30279),we=i(16194),ve=i(17036),Fe=i(30524),Ie=i(46499),Ce=i(39383),Me=i(6666),Te=i(25482);let Se=class extends((0,o.OU)(Te.o)){constructor(e){super(e),this.enabled=!1,this.drawOrder=[]}};(0,r.Cg)([(0,m.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1}}}})],Se.prototype,"enabled",void 0),(0,r.Cg)([(0,m.MZ)({type:[String],json:{write:!0,origins:{"web-scene":{write:!1}}}})],Se.prototype,"drawOrder",void 0),Se=(0,r.Cg)([(0,m.$K)("esri.layers.support.SymbolLayerDrawing")],Se);var _e=i(17311),Ee=i(91908),Ze=i(65494),je=i(8947),Oe=i(41214),xe=i(99614),Ae=i(97552),De=i(54218),qe=i(30291),Le=i(33910),Pe=i(78553),Re=i(59923),ke=i(36005),Ne=i(43937);const Ge="FeatureLayer";function $e(e){return e&&e instanceof n.A}const Je=(0,ve.p)();function Ue(e,t,i){let r=!!i?.writeLayerSchema;return{enabled:r,ignoreOrigin:r}}let Ve=class extends((0,de.Z)((0,X.j)((0,ee.J)((0,Y.F)(ne((0,z.w6)((0,W.FJ)((0,H.dM)((0,ie.fY)((0,pe.e)((0,Q.z)((0,ye.d)((0,ue.j)((0,le.J)((0,K.b)((0,te.q)((0,re.A)((0,h.M)((0,B.d)((0,V.p)((0,o.OU)(Z.A)))))))))))))))))))))){constructor(e){super(e),this.attributeTableTemplate=null,this.charts=null,this.copyright=null,this.displayField=null,this.dynamicDataSource=null,this.fields=null,this.fieldsIndex=null,this.formTemplate=null,this.fullExtent=null,this.geometryType=null,this.graphicOrigin=new E(this),this.hasM=void 0,this.hasZ=void 0,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.symbolLayerDrawing=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="ArcGISFeatureLayer",this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.resourceInfo=null,this.screenSizePerspectiveEnabled=!0,this.spatialReference=v.A.WGS84,this.subtypeCode=null,this.subtypeField=null,this.subtypes=null,this.supportedPortalItemTypes=["Feature Service","Feature Collection","Scene Service"],this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.templates=null,this.title=null,this.sublayerTitleMode="item-title",this.type="feature",this.typeIdField=null,this.types=null,this.visible=!0,this._debouncedSaveOperations=(0,f.sg)(async(e,t,r)=>{let{save:s,saveAs:a}=await i.e(3359).then(()=>i(33359));switch(e){case 0:return s(this,t);case 1:return a(this,r,t)}})}destroy(){this.source?.destroy()}load(e){let t=null==e?null:e.signal;if(this.portalItem?.loaded&&this.source)return this.addResolvingPromise(this.createGraphicsSource(t).then(e=>this.initLayerProperties(e))),Promise.resolve(this);let i=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(f.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){let e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url&&!this._hasMemorySource())throw new l.A("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return this.initLayerProperties(await this.createGraphicsSource(t))}).then(()=>(0,fe.VA)(this,"load",e));return this.addResolvingPromise(i),Promise.resolve(this)}get _titleCreator(){let e=this._get("_titleCreator");return(0,y.pR)(e),new _e.A({fieldsIndex:this.fieldsIndex,objectIdField:this.objectIdField,fields:this.fields,displayField:this.displayField,effectivePopupTemplate:this.popupTemplate??this.defaultPopupTemplate})}readCapabilities(e,t){return t=t.layerDefinition||t,(0,Me.S$)(t,this.url)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return!(this.loaded&&!this.capabilities?.operations.supportsEditing)&&(this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}readEditingEnabled(e,t){return this._readEditingEnabled(t,!1)}readEditingEnabledFromWebMap(e,t,i){return this._readEditingEnabled(t,!0,i)}writeEditingEnabled(e,t){this._writeEditingEnabled(e,t,!1)}writeEditingEnabledToWebMap(e,t,i,r){this._writeEditingEnabled(e,t,!0,r)}get effectiveEditingEnabled(){return(0,fe.C$)(this)}get featureTitleFields(){return[...this._titleCreator.requiredFields]}set fieldConfigurations(e){if(this._hasMemorySource()||(this._override("fieldConfigurations",e),!this.loaded))return;let t=(0,we.sS)(this,e);t&&this._set("popupTemplate",t)}get fieldConfigurations(){if(!this._hasMemorySource())return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):(0,we.QX)(this)||null}readIsTable(e,t){return"Table"===(t=t?.layerDefinition??t).type||!t.geometryType}writeIsTable(e,t,i,r){r?.writeLayerSchema&&(0,c.sM)(i,e?"Table":"Feature Layer",t)}readSymbolLayerDrawing(e,t){let i=t.layerDefinition?.drawingInfo,r=i?.renderer,s=i?.symbolLayerDrawing;return r&&s?new Se(s):null}readGlobalIdField(e,t){return(0,fe.jD)(t.layerDefinition||t)}readObjectIdField(e,t){return(0,fe.Zm)(t.layerDefinition||t)}writePopupTemplate(e,t,i,r){e&&(t[i]=e.toJSON({...r,writeFieldFormat:!r?.writeLayerSchema}))}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,Fe.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,i){t=t.layerDefinition||t;let r=t.drawingInfo?.renderer;if(r){let e=(0,Ze.L)(r,t,i)??void 0;return e||p.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:i}),e}return(0,fe.PD)(t,i)}get source(){return this._get("source")}set source(e){e||=null;let t=this._get("source");t!==e&&((Array.isArray(e)||e instanceof n.A)&&(e=new U({layer:this,items:e})),$e(t)&&this._resetMemorySource(t),$e(e)&&this._initMemorySource(e),this._set("source",e))}readSource(e,t){let i=G.A.fromJSON(t.featureSet);return new U({layer:this,items:i?.features??[]})}readTemplates(e,t){let i=t.editFieldsInfo,r=i?.creatorField,s=i?.editorField;return e=e?.map(e=>ge.A.fromJSON(e)),this._fixTemplates(e,r),this._fixTemplates(e,s),e}readTitle(e,t){let i=t.layerDefinition?.name??t.name,r=t.title||t.layerDefinition?.title;if(i){if("item-title"===this.sublayerTitleMode)return this.url?(0,he.yG)(this.url,i):i;let e=i;if(!e&&this.url){let t=(0,he.qg)(this.url);null!=t&&(e=t.title)}if(!e)return;let t=this.portalItem?.title;return"item-title-and-service-name"===this.sublayerTitleMode&&t&&t!==e&&(e=t+" - "+e),(0,he.cr)(e)}if("item-title"===this.sublayerTitleMode&&r)return r}readTitleFromWebMap(e,t){return t.title||t.layerDefinition?.name}readTypeIdField(e,t){let i=(t=t.layerDefinition||t).typeIdField;if(i&&t.fields){i=i.toLowerCase();let e=t.fields.find(e=>e.name.toLowerCase()===i);e&&(i=e.name)}return i}readTypes(e,t){e=(t=t.layerDefinition||t).types;let i=t.editFieldsInfo,r=i?.creatorField,s=i?.editorField;return e?.map(e=>(e=me.A.fromJSON(e),this._fixTemplates(e.templates,r),this._fixTemplates(e.templates,s),e))}readVisible(e,t){return null!=t.layerDefinition?.defaultVisibility?!!t.layerDefinition.defaultVisibility:null!=t.visibility?!!t.visibility:void 0}async addAttachment(e,t,i){let r=await(0,fe.Xl)(this,e,t,Ge,i);return this.lastEditsEventDate=new Date,r}async updateAttachment(e,t,i,r){let s=await(0,fe.bt)(this,e,t,i,Ge,r);return this.lastEditsEventDate=new Date,s}async applyEdits(e,t){return(0,fe.ct)(this,e,t)}async uploadAssets(e,t){return(0,fe.rn)(this,e,t)}createFieldConfigurations(){return(0,we.xY)(this)}createPopupTemplate(e){return(0,qe.tn)(this,e)}async createGraphicsSource(e){let t={stack:[],error:void 0,hasError:!1};try{if(this._hasMemorySource()&&this.source)return this.source.load({signal:e});let{default:s}=await(0,f.qr)(Promise.all([i.e(893),i.e(7),i.e(6553)]).then(()=>i(60845)),e),a=new s({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,r.mS)(t,(0,d.Bf)((0,f.u7)(e,()=>a.cancelLoad())??(0,d.hA)()),!1),await a.load({signal:e}),a}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}createQuery(){let e=(0,fe.VZ)(this);e.dynamicDataSource=this.dynamicDataSource;let t=null==this.subtypeCode?null:`${this.subtypeField} = ${this.subtypeCode}`;return e.where=(0,g.mA)(this.definitionExpression,t)||"1=1",e}async deleteAttachments(e,t,i){let r=await(0,fe.mm)(this,e,t,Ge,i);return this.lastEditsEventDate=new Date,r}async fetchRecomputedExtents(e){return(0,fe.WP)(this,e,Ge)}async getFeatureTitle(e,t){return this._titleCreator.getTitle(this,e,t)}async getFeatureTitles(e,t){return this._titleCreator.getTitles(this,e,t)}getFeatureType(e){return(0,fe.xd)(this.types,this.typeIdField,e)}getFieldAlias(e){let t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}getFieldDomain(e,t){return(0,fe.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryAttachments(e,t){return(0,fe.lV)(this,e,t,Ge)}async queryFeatures(e,t){let i=await this.load(),r=await i.source.queryFeatures(Ae.A.from(e)??i.createQuery(),t),s=this.graphicOrigin;if(r?.features)for(let e of r.features)e.layer=e.sourceLayer=i,e.origin=s;return r}async queryObjectIds(e,t){return await(0,fe.sg)(this,e,t,Ge)}async queryFeatureCount(e,t){return(0,fe.Ye)(this,e,t,Ge)}async queryExtent(e,t){return(0,fe.B5)(this,e,t,Ge)}async queryRelatedFeatures(e,t){return(0,fe.hM)(this,e,t,Ge)}async queryRelatedFeaturesCount(e,t){return(0,fe.S2)(this,e,t,Ge)}async queryPivot(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryPivot||!s?.operations?.supportsQueryPivot)throw new l.A(Ge,"Layer source does not support queryPivot capability");let a=await i.e(9958).then(()=>i(29958)),o=await r.queryPivot(a.default.from(e),t),n=this.graphicOrigin;if(o?.features)for(let e of o.features)e.layer=e.sourceLayer=this,e.origin=n;return o}async queryTopFeatures(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryTopFeatures||!s?.query?.supportsTopFeaturesQuery)throw new l.A(Ge,"Layer source does not support queryTopFeatures capability");let a=await i.e(7561).then(()=>i(57561)),o=await r.queryTopFeatures(a.default.from(e),t),n=this.graphicOrigin;if(o?.features)for(let e of o.features)e.layer=e.sourceLayer=this,e.origin=n;return o}async queryAttributeBins(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryAttributeBins)throw new l.A(Ge,"Layer source does not support queryAttributeBins capability");(0,fe.ZJ)(e,s,Ge);let a=await i.e(4575).then(()=>i(14575)),o=await r.queryAttributeBins(a.default.from(e),t),n=this.graphicOrigin;if(o.features)for(let e of o.features)e.layer=e.sourceLayer=this,e.origin=n;return o}async queryTopObjectIds(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryTopObjectIds||!s?.query.supportsTopFeaturesQuery)throw new l.A(Ge,"Layer source does not support queryTopObjectIds capability");let a=await i.e(7561).then(()=>i(57561));return(await r.queryTopObjectIds(a.default.from(e),t)).filter(De.Et)}async queryTopFeaturesExtent(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryTopExtents||!s?.query?.supportsTopFeaturesQuery)throw new l.A(Ge,"Layer source does not support queryTopExtents capability");let a=await i.e(7561).then(()=>i(57561));return r.queryTopExtents(a.default.from(e),t)}async queryTopFeatureCount(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryTopCount||!s?.query?.supportsTopFeaturesQuery)throw new l.A(Ge,"Layer source does not support queryFeatureCount capability");let a=await i.e(7561).then(()=>i(57561));return r.queryTopCount(a.default.from(e),t)}read(e,t){let i=e.featureCollection;if((i||"Feature Collection"===e.type)&&(this.resourceInfo=e),i){let{layers:e,showLegend:r}=i;1===e?.length&&(super.read(e[0],t),null!=r&&super.read({showLegend:r},t))}super.read(e,t),$e(this.source)&&"service"===t?.origin&&(["objectIdField","fields","timeInfo","dateFieldsTimeZone","uniqueIdFields"].forEach(e=>{this.revertToOrigin(e,"service")}),this.spatialReference||this.revertToOrigin("spatialReference","service"))}write(e,t){t={...t,origin:t?.origin??void 0,writeLayerSchema:t?.writeLayerSchema??this._hasMemorySource()};let{origin:i,layerContainerType:r}=t;if(this.dynamicDataSource)return(0,Re.U4)(t,this,"a dynamic data source cannot be written to web scenes, web maps and feature service items"),null;if(this.isTable){if(("web-map"===i||"web-scene"===i)&&"tables"!==r)return(0,Re.U4)(t,this,"a table source can only be written to tables"),null;if(this._hasMemorySource())return(0,Re.U4)(t,this,"an in-memory table source cannot be written to web scenes and web maps"),null}else if(this.loaded&&("web-map"===i||"web-scene"===i)&&"tables"===r)return(0,Re.U4)(t,this,"a non-table source cannot be written to tables in web maps or web scenes"),null;return super.write(e,t)}clone(){if(this._hasMemorySource())throw new l.A(Ge,`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(e){return!!this.loaded&&("memory"===this.source?.type||(0,Ee.D)(this,e))}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}_readEditingEnabled(e,t,i){let r=e.layerDefinition?.capabilities;if(r||(r=e.capabilities,t&&"web-map"===i?.origin&&!this._hasMemorySource()&&r))return this._hasEditingCapability(r)}_hasEditingCapability(e){return e.toLowerCase().split(",").map(e=>e.trim()).includes("editing")}_writeEditingEnabled(e,t,i,r){if(!e){let e=this.capabilities?.operations?.supportsSync?"Query,Sync":"Query";(0,c.sM)("layerDefinition.capabilities",e,t),i&&!r?.writeLayerSchema&&(t.capabilities=e)}}_fetchFirstValidLayerId(e){return(0,a.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{let t=e.data;if(t)return this.applyPreferredHost(t),this.findFirstValidLayerId(t)})}async initLayerProperties(e){return this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),this._verifyFields(),(0,Fe.yp)(this.renderer,this.fieldsIndex),(0,Fe.sv)(this.timeInfo,this.fieldsIndex),this._hasMemorySource()&&"mesh"===this.geometryType&&(this.capabilities.query.supportsReturnMesh=!0),(0,je.L)(this,{origin:"service"})}canReload(){return super.canReload()&&!this._hasMemorySource()}async reloadFromService(e){let t=this.source;await t.reload({signal:e}),await this.initLayerProperties(t)}async hasDataChanged(){return(0,fe.jp)(this)}async fetchPublishingStatus(){let e=this.source;return e?.fetchPublishingStatus?e.fetchPublishingStatus():"unavailable"}_verifyFields(){let e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||this._hasMemorySource()||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some(e=>"geometry"===e.type)||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_fixTemplates(e,t){e&&e.forEach(e=>{let i=e.prototype?.attributes;i&&t&&delete i[t]})}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new l.A("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url")}else if(!this.url)throw new l.A("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source")}_initMemorySource(e){e.forEach(e=>{e.layer=this,e.sourceLayer=this}),this.addHandles([e.on("after-add",e=>{e.item.layer=this,e.item.sourceLayer=this}),e.on("after-remove",e=>{e.item.layer=null,e.item.sourceLayer=null})],"fl-source")}_resetMemorySource(e){e.forEach(e=>{e.layer=null,e.sourceLayer=null}),this.removeHandles("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}findFirstValidLayerId(e){return[...e.layers||[],...e.tables||[]].find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id}};(0,r.Cg)([(0,m.MZ)({clonable:!1,readOnly:!0})],Ve.prototype,"_titleCreator",null),(0,r.Cg)([(0,m.MZ)(ce.zQ)],Ve.prototype,"attributeTableTemplate",void 0),(0,r.Cg)([(0,ke.w)("service","capabilities")],Ve.prototype,"readCapabilities",null),(0,r.Cg)([(0,m.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],Ve.prototype,"charts",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],Ve.prototype,"createQueryVersion",null),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.copyrightText"}}})],Ve.prototype,"copyright",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.displayField"}}})],Ve.prototype,"displayField",void 0),(0,r.Cg)([(0,m.MZ)({types:Le.Es,readOnly:!0})],Ve.prototype,"defaultSymbol",void 0),(0,r.Cg)([(0,m.MZ)({types:xe.e})],Ve.prototype,"dynamicDataSource",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean})],Ve.prototype,"editingEnabled",null),(0,r.Cg)([(0,ke.w)(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],Ve.prototype,"readEditingEnabled",null),(0,r.Cg)([(0,ke.w)("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],Ve.prototype,"readEditingEnabledFromWebMap",null),(0,r.Cg)([(0,Ne.K)(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],Ve.prototype,"writeEditingEnabled",null),(0,r.Cg)([(0,Ne.K)("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],Ve.prototype,"writeEditingEnabledToWebMap",null),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],Ve.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,m.MZ)({clonable:!1,readOnly:!0})],Ve.prototype,"featureTitleFields",null),(0,r.Cg)([(0,m.MZ)({type:[be.A],json:{name:"layerDefinition.fieldConfigurations",write:{overridePolicy(e,t,i){return{enabled:!i?.writeLayerSchema,ignoreOrigin:1===this.originIdOf(t)}}}}})],Ve.prototype,"fieldConfigurations",null),(0,r.Cg)([(0,m.MZ)({...Je.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:Ue}}}}})],Ve.prototype,"fields",void 0),(0,r.Cg)([(0,m.MZ)(Je.fieldsIndex)],Ve.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,m.MZ)({type:w.A,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],Ve.prototype,"formTemplate",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.extent"}}})],Ve.prototype,"fullExtent",void 0),(0,r.Cg)([(0,m.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:Ue,writer(e,t,i){let r=e?fe.iX.toJSON(e):null;r&&(0,c.sM)(i,r,t)}}}},read:{source:"layerDefinition.geometryType",reader:fe.iX.read}}})],Ve.prototype,"geometryType",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0,clonable:!1})],Ve.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.hasM"}}})],Ve.prototype,"hasM",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.hasZ"}}})],Ve.prototype,"hasZ",void 0),(0,r.Cg)([(0,m.MZ)(ce.id)],Ve.prototype,"id",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],Ve.prototype,"infoFor3D",void 0),(0,r.Cg)([(0,m.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],Ve.prototype,"isTable",void 0),(0,r.Cg)([(0,ke.w)("service","isTable",["type","geometryType"]),(0,ke.w)("isTable",["layerDefinition.type","layerDefinition.geometryType"])],Ve.prototype,"readIsTable",null),(0,r.Cg)([(0,Ne.K)("web-map","isTable")],Ve.prototype,"writeIsTable",null),(0,r.Cg)([(0,m.MZ)(ce.kF)],Ve.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,m.MZ)({type:[Ie.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:Ce.w,write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:Ce.w,write:{layerContainerTypes:b.K}}})],Ve.prototype,"labelingInfo",void 0),(0,r.Cg)([(0,m.MZ)({type:Se,json:{name:"layerDefinition.drawingInfo.symbolLayerDrawing",write:!0,origins:{"web-scene":{write:!1}}}})],Ve.prototype,"symbolLayerDrawing",void 0),(0,r.Cg)([(0,ke.w)(["portal-item","web-map"],"symbolLayerDrawing",["layerDefinition.drawingInfo.renderer","layerDefinition.drawingInfo.symbolLayerDrawing"])],Ve.prototype,"readSymbolLayerDrawing",null),(0,r.Cg)([(0,m.MZ)((()=>{let e=(0,u.o8)(ce.Ih);return e.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",writer(e,t,i){(0,c.sM)(i,(0,Pe.p)(e),t)}}},e})())],Ve.prototype,"opacity",void 0),(0,r.Cg)([(0,m.MZ)(ce.fV)],Ve.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,m.MZ)({type:["show","hide"],json:(()=>{let e=(0,u.o8)(ce.C1.json);return e.origins["portal-item"]={read:!1,write:!1},e})()})],Ve.prototype,"listMode",void 0),(0,r.Cg)([(0,ke.w)("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],Ve.prototype,"readGlobalIdField",null),(0,r.Cg)([(0,m.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:Ue}}}}})],Ve.prototype,"objectIdField",void 0),(0,r.Cg)([(0,ke.w)("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],Ve.prototype,"readObjectIdField",null),(0,r.Cg)([(0,m.MZ)({type:["ArcGISFeatureLayer"],json:{write:{target:"layerType",ignoreOrigin:!0,layerContainerTypes:b.K}}})],Ve.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,m.MZ)(Je.outFields)],Ve.prototype,"outFields",void 0),(0,r.Cg)([(0,m.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Ve.prototype,"path",void 0),(0,r.Cg)([(0,m.MZ)(ce.M6)],Ve.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,m.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],Ve.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,Ne.K)("popupTemplate")],Ve.prototype,"writePopupTemplate",null),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],Ve.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,m.MZ)({types:Oe.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:Oe.XJ,name:"layerDefinition.drawingInfo.renderer",write:{layerContainerTypes:b.K,overridePolicy:(e,t,i)=>({ignoreOrigin:i?.writeLayerSchema,layerContainerTypes:b.K})}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy:(e,t,i)=>({ignoreOrigin:i?.writeLayerSchema,layerContainerTypes:b.K})}}})],Ve.prototype,"renderer",null),(0,r.Cg)([(0,ke.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,ke.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],Ve.prototype,"readRenderer",null),(0,r.Cg)([(0,m.MZ)()],Ve.prototype,"resourceInfo",void 0),(0,r.Cg)([(0,m.MZ)((()=>{let e=(0,u.o8)(ce.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],Ve.prototype,"screenSizePerspectiveEnabled",void 0),(0,r.Cg)([(0,m.MZ)({clonable:!1})],Ve.prototype,"source",null),(0,r.Cg)([(0,ke.w)("portal-item","source",["featureSet"]),(0,ke.w)("web-map","source",["featureSet"])],Ve.prototype,"readSource",null),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.extent.spatialReference"}}})],Ve.prototype,"spatialReference",void 0),(0,r.Cg)([(0,m.MZ)({type:Number})],Ve.prototype,"subtypeCode",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!1})],Ve.prototype,"subtypeField",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!1})],Ve.prototype,"subtypes",void 0),(0,r.Cg)([(0,m.MZ)({type:[ge.A]})],Ve.prototype,"templates",void 0),(0,r.Cg)([(0,ke.w)("templates",["editFieldsInfo","creatorField","editorField","templates"])],Ve.prototype,"readTemplates",null),(0,r.Cg)([(0,m.MZ)()],Ve.prototype,"title",void 0),(0,r.Cg)([(0,ke.w)("service","title",["name"]),(0,ke.w)("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],Ve.prototype,"readTitle",null),(0,r.Cg)([(0,ke.w)("web-map","title",["layerDefinition.name","title"])],Ve.prototype,"readTitleFromWebMap",null),(0,r.Cg)([(0,m.MZ)({type:String})],Ve.prototype,"sublayerTitleMode",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:!1}})],Ve.prototype,"type",void 0),(0,r.Cg)([(0,m.MZ)({type:String})],Ve.prototype,"typeIdField",void 0),(0,r.Cg)([(0,ke.w)("service","typeIdField"),(0,ke.w)("typeIdField",["layerDefinition.typeIdField"])],Ve.prototype,"readTypeIdField",null),(0,r.Cg)([(0,m.MZ)({type:[me.A]})],Ve.prototype,"types",void 0),(0,r.Cg)([(0,ke.w)("service","types",["types"]),(0,ke.w)("types",["layerDefinition.types"])],Ve.prototype,"readTypes",null),(0,r.Cg)([(0,m.MZ)({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility",layerContainerTypes:b.K}}}}})],Ve.prototype,"visible",void 0),(0,r.Cg)([(0,ke.w)("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],Ve.prototype,"readVisible",null),Ve=(0,r.Cg)([(0,m.$K)("esri.layers.FeatureLayer")],Ve)},59288(e,t,i){i.d(t,{$:()=>o});var r=i(96184),s=i(36003),a=i(2991);function o(e,t,i,o){if(!e.timeExtent||!t&&!i)return e;let n=e.clone();if(t&&i){if(!(0,s.L)(t,r.A.fromJSON(i))){let i=(0,a.RZ)(e.timeExtent,t,o,e.where);i&&(n.where=i,n.timeExtent=void 0)}return n}return!t&&i?(n.timeExtent=void 0,n):(t&&!i&&(n.where=(0,a.RZ)(e.timeExtent,t,o,e.where),n.timeExtent=void 0),n)}},75254(e,t,i){i.d(t,{z:()=>c});var r=i(32198),s=i(91429),a=i(89317),o=i(69540),n=i(25482);let l=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.name=null,this.type=null,this.title=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:["change-from-average","change-from-first","change-from-previous","percent-change-from-average","percent-change-from-first","percent-change-from-previous"],json:{write:{isRequired:!0}}})],l.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),l=(0,r.Cg)([(0,s.$K)("esri.layers.support.TimeSeriesCalculationMethod")],l);const d=l;let u=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.fieldName=null,this.timeValue=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],u.prototype,"fieldName",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],u.prototype,"timeValue",void 0),u=(0,r.Cg)([(0,s.$K)("esri.layers.support.TimeSeriesFieldTimeMapping")],u);const p=u;var y=i(79677);let h=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.name=null,this.fieldTimeMappings=null,this.timeExtent=null,this.timeInterval=null,this.timeIntervalUnits=null,this.timeValueUnits=null,this.title=null,this.calculationMethods=null,this.type="time-series-fields"}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],h.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:[p],json:{write:{isRequired:!0}}})],h.prototype,"fieldTimeMappings",void 0),(0,r.Cg)([(0,s.MZ)({type:y.A,json:{write:!0}})],h.prototype,"timeExtent",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:{isRequired:!0}}})],h.prototype,"timeInterval",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],h.prototype,"timeIntervalUnits",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],h.prototype,"timeValueUnits",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],h.prototype,"title",void 0),(0,r.Cg)([(0,s.MZ)({type:[d],json:{write:!0}})],h.prototype,"calculationMethods",void 0),(0,r.Cg)([(0,s.MZ)({type:String,readOnly:!0,json:{write:{isRequired:!0}}})],h.prototype,"type",void 0),h=(0,r.Cg)([(0,s.$K)("esri.layers.support.TimeSeriesInfo")],h);const c=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.dataSeriesInfos=null}};return(0,r.Cg)([(0,s.MZ)({type:[h],json:{read:{source:["layerDefinition.dataSeriesInfos","dataSeriesInfos"],reader:(e,t,i)=>(t?.layerDefinition?.dataSeriesInfos??t.dataSeriesInfos)?.filter(e=>"time-series-fields"===e.type).map(e=>h.fromJSON(e,i))},write:{target:"layerDefinition.dataSeriesInfos",enabled:!0,allowNull:!0,layerContainerTypes:a.K},origins:{"web-scene":{write:!1,read:!1}}}})],i.prototype,"dataSeriesInfos",void 0),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.DataSeriesLayer")],i),i}},47685(e,t,i){i.d(t,{Mk:()=>h,Zk:()=>p});var r=i(32198),s=i(65529),a=i(4718),o=i(91429),n=i(20816);const l=new s.bk;function d(e){return l.on("apply-edits",new WeakRef(e))}function u(e){return l.on("update-moment",new WeakRef(e))}function p(e,t,i=null,r=!1){let s=Promise.withResolvers();return r=null==t||r,l.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:s.promise}),s}const y=Symbol();function h(e){return"object"==typeof e&&!!e&&y in e}function c(e){return"object"==typeof e&&!!e&&"gdbVersion"in e}function f(e,t,i){let r=new URL(e).host,s=n.Z3.get(r),a=e=>!e||e===s;return a(t)&&a(i)||t===i}i.d(t,["w6",0,e=>{var t;let i=e,s=class extends i{static{t=y}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{let{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:s,result:o}=e,n=t===this.url,l=null!=i&&null!=this.layerId&&i===this.layerId,d=null!=i&&this.relationships?.some(e=>e.relatedTableId===i),u=c(this),p=c(this)&&f(t,r,this.gdbVersion);if(!n||u&&!p||!l&&!d&&!s)return;let y=o.then(e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,a.o8)(e)),e;let i=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(i){let{adds:t,updates:r,deletes:s}=i.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:s?s.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:r?r.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,a.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,a.o8)(e.historicMoment)};return this.emit("edits",o),o}let s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,a.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,a.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,s.historicMoment)&&this.emit("edits",s),s}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));y.catch(()=>{}),this.emit("apply-edits",{result:y})},this._updateMomentHandler=e=>{let{serviceUrl:t,gdbVersion:i,moment:r}=e,s=t===this.url,a=c(this),o=c(this)&&f(t,i,this.gdbVersion),n=c(this)&&!f(t,this.gdbVersion,null);s&&a&&o&&n&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then(()=>{this.addHandles(d(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(u(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,n.w5)(e,t)}};return(0,r.Cg)([(0,o.MZ)()],s.prototype,"lastEditsEventDate",void 0),s=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.EditBusLayer")],s),s}])},63396(e,t,i){i.d(t,{d:()=>C});var r=i(32198),s=i(91429),a=i(41910),o=i(60950),n=i(99959);class l extends n.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[o.ym](){return this.trackInfoProvider.trackInfo}get[a.e7](){return this.trackInfoProvider}}var d=i(40124),u=i(69540),p=i(25482),y=i(93637),h=i(50820),c=i(10873),f=i(46499),g=i(41214);let m=class extends((0,u.OU)(p.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,r.Cg)([(0,s.MZ)({type:[f.A],json:{write:!0}})],m.prototype,"labelingInfo",void 0),(0,r.Cg)([(0,s.MZ)(c.kF)],m.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,s.MZ)({types:g.Hg,json:{write:!0}})],m.prototype,"renderer",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"visible",void 0),m=(0,r.Cg)([(0,s.$K)("esri.layers.support.TrackPartInfo")],m);var b=i(96576),w=i(59868),v=i(10184),F=i(43937);let I=class extends((0,u.OU)(p.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new m({renderer:new b.A({symbol:w.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new m({renderer:new b.A({symbol:w.UK.clone()})}),this.trackLines=new m({renderer:new b.A({symbol:w.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,i){let r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,y.sM)(i,r,t)}};(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],I.prototype,"enabled",void 0),(0,r.Cg)([(0,s.MZ)({type:[h.A],json:{write:!0}})],I.prototype,"fields",void 0),(0,r.Cg)([(0,F.K)("fields")],I.prototype,"writeFields",null),(0,r.Cg)([(0,s.MZ)({type:m,json:{write:!0}})],I.prototype,"latestObservations",void 0),(0,r.Cg)([(0,s.MZ)({type:v.A,json:{write:!0}})],I.prototype,"maxDisplayDuration",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],I.prototype,"maxDisplayObservationsPerTrack",void 0),(0,r.Cg)([(0,s.MZ)(c.M6)],I.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,s.MZ)({type:d.A,json:{name:"popupInfo",write:!0}})],I.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,s.MZ)({type:m,json:{write:!0}})],I.prototype,"previousObservations",void 0),(0,r.Cg)([(0,s.MZ)({type:m,json:{write:!0}})],I.prototype,"trackLines",void 0),(0,r.Cg)([(0,s.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],I.prototype,"timeField",void 0),I=(0,r.Cg)([(0,s.$K)("esri.layers.support.TrackInfo")],I);const C=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new l(this),this.trackInfo=null}};return(0,r.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],i.prototype,"trackGraphicOrigin",void 0),(0,r.Cg)([(0,s.MZ)({type:I})],i.prototype,"trackInfo",void 0),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.TrackableLayer")],i),i}},17311(e,t,i){i.d(t,{A:()=>h});var r=i(32198),s=i(69622),a=i(4576),o=i(60999),n=i(7762),l=i(16494),d=i(91429),u=i(30524),p=i(43668);const y=/<br\s*\/*>/gi;let h=class extends s.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,o.UT)(()=>(0,p.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([i.e(3281),i.e(9301)]).then(()=>i(99301)).then(e=>this._featureUtils=e)}get calculatedExpressions(){let e=new n.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(let t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(let t of this.expressionsUsedInTitle)try{let i=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(i.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:i,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(i,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"==typeof e?(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[]):[]}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){let e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(let t of this.calculatedExpressions?.toArray()??[])try{let i=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(let t of i){let i=t.split("."),r=this.fieldsIndex.get(i.at(-1)??"");r&&e.add(r.name)}}catch{}let t=this._extractFieldNames(this.workingTitle);for(let i of t){let t=this.fieldsIndex.get(i);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||=this.fieldsIndex.get(this.objectIdField)?.name??"",e?`{${e}}`:""}get workingTitle(){let e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,i){let r=t.getObjectId()??t.attributes?.[e.objectIdField];return(await this.getTitles(e,[t],i)).get(r)??""}async getTitles(e,t,i){let r=new Map,s=i?.timeZone??"system";try{let[{substituteFieldsInLinksAndAttributes:a}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);i?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));let{fieldInfoMap:o,workingTitle:n}=this,d=n&&o;t.forEach(t=>{let u=t.getObjectId()??t.attributes[e.objectIdField],p=d?a({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:o,globalAttributes:this._createFormattedAttributes(e,t,s).global,layer:e,text:n}):"";i?.removeHTML&&(p=l.Nd.sanitize(p).replaceAll(y," ")),r.set(u,p)})}catch{}return r}async _checkAndReQueryGraphics(e,t){let i=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(a.Ru);if(i.length!==t.length)return t;if(t.some(e=>!(0,u.Kl)(e,this.requiredFields))){let r=e.createQuery();r.where="1=1",r.outFields=[...this.requiredFields],r.objectIds=i;let s=await e.queryFeatures(r);if(s?.features.length===t.length)return s.features}return t}_createFieldInfoMap(e){let t=new Map;if(!e)return t;for(let i of e){if(!i.fieldName)continue;let e=this.fieldsIndex.get(i.fieldName)?.name??i.fieldName;i.fieldName=e,t.set(e.toLowerCase(),i)}return t}_createFormattedAttributes(e,t,i="system"){let r=this.effectivePopupTemplate?.fieldInfos??[],s={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){let i=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(let e of this.calculatedExpressions)try{s[`expression/${e.name}`]=e.func({vars:{$feature:i}})}catch{}}let a={...t.attributes,...s};return{global:this._featureUtils.formatAttributes({fieldInfos:r,attributes:a,graphic:t,timeZone:i,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,u.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,r.Cg)([(0,d.MZ)({readOnly:!0})],h.prototype,"_arcadeTask",null),(0,r.Cg)([(0,d.MZ)()],h.prototype,"_featureUtils",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],h.prototype,"featureUtilsPromise",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],h.prototype,"calculatedExpressions",null),(0,r.Cg)([(0,d.MZ)()],h.prototype,"displayField",void 0),(0,r.Cg)([(0,d.MZ)()],h.prototype,"effectivePopupTemplate",void 0),(0,r.Cg)([(0,d.MZ)()],h.prototype,"expressionsUsedInTitle",null),(0,r.Cg)([(0,d.MZ)()],h.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,d.MZ)()],h.prototype,"fieldInfoMap",null),(0,r.Cg)([(0,d.MZ)()],h.prototype,"fields",void 0),(0,r.Cg)([(0,d.MZ)()],h.prototype,"objectIdField",void 0),(0,r.Cg)([(0,d.MZ)()],h.prototype,"requiredFields",null),h=(0,r.Cg)([(0,d.$K)("esri.layers.support.TitleCreator")],h)},36003(e,t,i){function r(e,t){let i=e.startField===t.startField||!e.startField&&!t.startField,r=e.endField===t.endField||!e.endField&&!t.endField;return i&&r}i.d(t,{L:()=>r})},8947(e,t,i){i.d(t,{L:()=>o});var r=i(60999),s=i(17676),a=i(67076);async function o(e,t,i){let o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){let n=await(0,r.Ke)(o.populateFromStyle());if((0,s.Te)(i),!1===n.ok){let i=n.error;t?.messages&&t.messages.push(new a.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${i.message}`,{error:i,context:t})),e.clear("renderer",t?.origin)}}}},96520(e,t,i){i.d(t,{u:()=>l});var r=i(86211),s=i(21325),a=i(52006);function o(e,t,i){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e)t.length>2&&(t[2]*=i)}function n(e,t,i){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e){let e=(0,a.yP)(t);e.length>2&&(e[2]*=i)}}function l(e,t,i){if(!e&&!t||!i)return;let s=(0,r.G9)(i);d(e,i,s),d(t,i,s)}function d(e,t,i){if(e)for(let r of e)u(r.geometry,t,i)}function u(e,t,i){if(!e?.spatialReference||(0,s.aI)(e.spatialReference,t))return;let a=(0,r.G9)(e.spatialReference)/i;if(1!==a)if("x"in e)null!=e.z&&(e.z*=a);else if("curveRings"in e)n(e,e.curveRings,a);else if("curvePaths"in e)n(e,e.curvePaths,a);else if("rings"in e)o(e,e.rings,a);else if("paths"in e)o(e,e.paths,a);else if("points"in e&&(null==e.hasM||e.hasZ))for(let t of e.points)t.length>2&&(t[2]*=a)}},20816(e,t,i){i.d(t,{We:()=>n,ZJ:()=>l,w5:()=>d});var r=i(56507);const s=(0,i(13069).vD)(),a=new Map,o=new Map;async function n(e,t,i){if(!e||!i)return!1;if(!t)return!0;let s=new URL(e).host,o=a.get(s);if(!o){let t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function l(e,t,r=!1){if(!e||!t)return!0;let a=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),n=o.get(a)?.entries();if(n)for(let[e,o]of n)if(o.name===t){let t=!o.stack?.hasForwardEdits();if(!t&&r){let[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(()=>i(32186)),i.e(2558).then(()=>i(32558))]),n=await t(a,e,new r({sessionId:s,moment:o.moment}));return n.success&&o.stack?.clearForwardEdits(),n.success}return t}return!0}function d(e,t){if(!e)return!1;let i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=o.get(i)?.entries();if(r)for(let[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map,i.d(t,["TA",0,s,"Z3",0,a])}}]);