@arcgis/core 6.0.0-next.34 → 6.0.0-next.35

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 (207) hide show
  1. package/Basemap.d.ts +2 -2
  2. package/analysis/ShadowCastAnalysis.d.ts +11 -5
  3. package/arcgisGlobal.d.ts +1 -0
  4. package/assets/esri/core/libs/libtess/libtess-f32.wasm +0 -0
  5. package/assets/esri/core/libs/libtess/libtess-f64.wasm +0 -0
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/01f55004d64309f8538b.js +1 -0
  8. package/assets/esri/core/workers/chunks/0202eb8c2b2865f99981.js +1 -0
  9. package/assets/esri/core/workers/chunks/{67e533748435253aaba6.js → 0284f608d25c654fcc11.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{7810586c35dfe1437516.js → 06102715e9a8f218e07c.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{6029773458ab98600f67.js → 07e5482e1fc69be5de09.js} +1 -1
  12. package/assets/esri/core/workers/chunks/08140725277de5d2e41a.js +1 -0
  13. package/assets/esri/core/workers/chunks/{2d9a1f23ec6ce90723ac.js → 0d99bfb75dcb9fa29080.js} +1 -1
  14. package/assets/esri/core/workers/chunks/10ad7b35b6800d40444e.js +1 -0
  15. package/assets/esri/core/workers/chunks/1132e28aaa5825b10b6e.js +1 -0
  16. package/assets/esri/core/workers/chunks/{dd30b02c5978c1c5f511.js → 155861fbd0e5fc2db80c.js} +1 -1
  17. package/assets/esri/core/workers/chunks/165ca7a97b611c8f26c4.js +1 -0
  18. package/assets/esri/core/workers/chunks/1ae0c9345626e70affd3.js +2 -0
  19. package/assets/esri/core/workers/chunks/{cd355baab983033c3ef0.js → 1ec772eaa63eb6937231.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{5c04835b0b52461183cd.js → 1fd82fcba2758741996a.js} +1 -1
  21. package/assets/esri/core/workers/chunks/21e1d423ee33f916547e.js +1 -0
  22. package/assets/esri/core/workers/chunks/{e8e54faf947a582b4cf7.js → 247617c0dbae2386ab3b.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{97ec46605f16333144b7.js → 26ea39dfdf887f357fce.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{85de980c5b296ec69323.js → 279089a6a3f08022c678.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{b657363113f4a37e634b.js → 3223f9fbc76ba9ef8d13.js} +1 -1
  26. package/assets/esri/core/workers/chunks/322b22a5d54e404bebd5.js +1 -0
  27. package/assets/esri/core/workers/chunks/{122e75b21699a4e83b15.js → 338d800d4efcc91cead1.js} +1 -1
  28. package/assets/esri/core/workers/chunks/3537fe95b83a13b156cc.js +1 -0
  29. package/assets/esri/core/workers/chunks/{f09bc86cd52224febfcb.js → 3b380e64566a6cce59e2.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{a1e8209d00809c9520a0.js → 3fe4c89acd325d36618d.js} +1 -1
  31. package/assets/esri/core/workers/chunks/449a2dee17b54946f245.js +1 -0
  32. package/assets/esri/core/workers/chunks/{311e4969f19df63451dd.js → 4e5405134d079bdf9b7a.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{d070fcb73ce274ab80e4.js → 5504ec9bd9ee4d10af07.js} +1 -1
  34. package/assets/esri/core/workers/chunks/552c36b40e5a5ec117fb.js +1 -0
  35. package/assets/esri/core/workers/chunks/5622f3faa59434772857.js +1 -0
  36. package/assets/esri/core/workers/chunks/59a1b637d2c107504a04.js +1 -0
  37. package/assets/esri/core/workers/chunks/59a88dd53f8806bbec06.js +1 -0
  38. package/assets/esri/core/workers/chunks/5c2fe67527c9d7b4dba3.js +1 -0
  39. package/assets/esri/core/workers/chunks/5d781c2c6204cffffd0d.js +1 -0
  40. package/assets/esri/core/workers/chunks/61d36730564c5ac5edab.js +1 -0
  41. package/assets/esri/core/workers/chunks/6604272ef6fe85279032.js +1 -0
  42. package/assets/esri/core/workers/chunks/{90c1d10eae7ae71889b0.js → 7400b8c454b47ee4fb3c.js} +1 -1
  43. package/assets/esri/core/workers/chunks/796c6195b6bf59dcc9bd.js +1 -0
  44. package/assets/esri/core/workers/chunks/7b45ac83e279fe9516a5.js +1 -0
  45. package/assets/esri/core/workers/chunks/{2de077c7b971f2c215a6.js → 7ddbde8fdd1cf3c53f50.js} +1 -1
  46. package/assets/esri/core/workers/chunks/804606b194dc9e71d088.js +1 -0
  47. package/assets/esri/core/workers/chunks/8102f0bf5707c3be3310.js +1 -0
  48. package/assets/esri/core/workers/chunks/{676c8c0329d68f9f3ac4.js → 81bcc495e6eaf2cf7474.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{d1d6154b4af1c9cc497b.js → 934e1f2153e6fad6ed23.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{e096c1d9d53af74d3207.js → 990e96139b5a1dccb061.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{f28b63c1179366dac8a2.js → 9e2c30b67bab5795306e.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{9184c947cdefe06bf551.js → a18c3cbe505a19d29569.js} +1 -1
  53. package/assets/esri/core/workers/chunks/aa6ee2aa4ff6e6d41efb.js +1 -0
  54. package/assets/esri/core/workers/chunks/{3fd5c3cd8457ddc68798.js → aa779896fd9e5c341349.js} +1 -1
  55. package/assets/esri/core/workers/chunks/ac10c7d2c4829a150037.js +1 -0
  56. package/assets/esri/core/workers/chunks/{e0a7a75709121a26f255.js → afc8a9847f31bb66b13b.js} +1 -1
  57. package/assets/esri/core/workers/chunks/c7adb7b77721c75891f4.js +1 -0
  58. package/assets/esri/core/workers/chunks/{bead830a677690eeb6fb.js → ce8ef2eec290e1df6b2a.js} +1 -1
  59. package/assets/esri/core/workers/chunks/d3369ffed19f4c264dcd.js +1 -0
  60. package/assets/esri/core/workers/chunks/d3412518a7b518860fbb.js +1 -0
  61. package/assets/esri/core/workers/chunks/{3048e74e6246324ce6fc.js → d5916500514a41a4758f.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{c034c30e577d620b8e28.js → dac69c0047488fdf986d.js} +1 -1
  63. package/assets/esri/core/workers/chunks/dcc782e4bf9e8a8202f9.js +1 -0
  64. package/assets/esri/core/workers/chunks/dcdf837a452dc0cac582.js +1 -0
  65. package/assets/esri/core/workers/chunks/{19a4fa965b70fc6f78f6.js → e209cb1f3f14bf576ebe.js} +1 -1
  66. package/assets/esri/core/workers/chunks/e67ea2f1714e5abeae44.js +1 -0
  67. package/assets/esri/core/workers/chunks/e8fb2ba7b7a4f0916325.js +1 -0
  68. package/assets/esri/core/workers/chunks/efcd38aad9aa667001b2.js +1 -0
  69. package/assets/esri/core/workers/chunks/{3aafdb905c697bc9b1ad.js → f372f4eb5527238c46f5.js} +1 -1
  70. package/assets/esri/core/workers/chunks/f497968055af459c5da4.js +1 -0
  71. package/assets/esri/core/workers/chunks/f7123ba1286f64e13e91.js +1 -0
  72. package/assets/esri/core/workers/chunks/fcb4707c2e95099b9f30.js +1 -0
  73. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  74. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  75. package/chunks/BlurEmission.glsl.js +9 -4
  76. package/chunks/Terrain.glsl.js +9 -9
  77. package/chunks/libtess-f32.js +1 -1
  78. package/chunks/libtess-f64.js +1 -1
  79. package/chunks/lyr3DMain.js +1 -1
  80. package/chunks/lyr3DWorker.js +2 -2
  81. package/config.d.ts +3 -3
  82. package/config.js +1 -1
  83. package/core/mathUtils.js +1 -1
  84. package/form/FormTemplate.d.ts +1 -1
  85. package/geometry/libtess.js +1 -1
  86. package/geometry/projection/projectors.js +1 -1
  87. package/identity/Credential.d.ts +1 -1
  88. package/identity/IdentityManager.d.ts +1 -1
  89. package/identity/OAuthInfo.d.ts +1 -1
  90. package/identity/ServerInfo.d.ts +1 -1
  91. package/kernel.js +1 -1
  92. package/layers/CSVLayer.js +1 -1
  93. package/layers/GaussianSplatLayer.js +1 -1
  94. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  95. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  96. package/layers/VectorTileLayer.d.ts +2 -2
  97. package/layers/VideoLayer.js +1 -1
  98. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  99. package/layers/graphics/sources/CSVSource.js +1 -1
  100. package/layers/graphics/sources/GeoJSONSource.js +1 -1
  101. package/layers/graphics/sources/MemorySource.js +2 -2
  102. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  103. package/layers/graphics/sources/support/QueryTask.js +1 -1
  104. package/layers/graphics/sources/support/timeQueryUtils.js +2 -0
  105. package/layers/mixins/APIKeyMixin.d.ts +1 -1
  106. package/layers/ogc/types.d.ts +1 -1
  107. package/layers/support/TelemetryData.d.ts +28 -4
  108. package/layers/support/TimeInformation.js +1 -1
  109. package/layers/support/tiles3DUtils.js +1 -1
  110. package/layers/support/timeInfoUtils.js +2 -0
  111. package/layers/video/videoUtils.js +1 -1
  112. package/package.json +2 -2
  113. package/rest/query/executeAttributeBinsQuery.js +1 -1
  114. package/rest/query/executeForExtent.js +1 -1
  115. package/rest/query/executeForTopCount.js +1 -1
  116. package/rest/query/executeForTopExtents.js +1 -1
  117. package/rest/query/executeForTopIds.js +1 -1
  118. package/rest/query/executeTopFeaturesQuery.js +1 -1
  119. package/rest/query/operations/query.js +1 -1
  120. package/rest/query/operations/queryAttributeBins.js +1 -1
  121. package/rest/query/operations/queryTopFeatures.js +1 -1
  122. package/rest/support/timeUtils.js +1 -1
  123. package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
  124. package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
  125. package/views/2d/engine/webgl/GlyphWorker.js +1 -1
  126. package/views/2d/engine/webgl/TextureManager.js +1 -1
  127. package/views/2d/engine/webgl/materialKeyUtils.js +2 -0
  128. package/views/2d/engine/webgl/mesh/MeshData.js +1 -1
  129. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  130. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  131. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
  132. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillMeshWriter.js +1 -1
  133. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillMeshWriter.js +1 -1
  134. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillMeshWriter.js +1 -1
  135. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillMeshWriter.js +1 -1
  136. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  137. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeMeshWriter.js +1 -1
  138. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineMeshWriter.js +1 -1
  139. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  140. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  141. package/views/2d/layers/VideoLayerView2D.js +1 -1
  142. package/views/3d/analysis/ShadowCast/ShadowCastError.d.ts +40 -0
  143. package/views/3d/analysis/ShadowCast/ShadowCastError.js +2 -0
  144. package/views/3d/analysis/ShadowCast/sunlightUtils.js +2 -0
  145. package/views/3d/analysis/ShadowCastAnalysisView3D.d.ts +16 -1
  146. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  147. package/views/3d/camera/constraintUtils/surfaceCollision.js +1 -1
  148. package/views/3d/camera/intersectionUtils.js +1 -1
  149. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  150. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  151. package/views/3d/layers/Lyr3DWorker.js +1 -1
  152. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  153. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  154. package/views/3d/layers/support/FeatureMemory.js +1 -1
  155. package/views/3d/layers/support/FeatureTile.js +1 -1
  156. package/views/3d/navigation/modes/GroundNavigationMode3D.js +1 -1
  157. package/views/3d/state/Constraints.js +1 -1
  158. package/views/3d/state/NearFarHeuristic.js +1 -1
  159. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  160. package/views/3d/support/orientedBoundingBox.js +1 -1
  161. package/views/3d/support/sphereExtentUtils.js +1 -1
  162. package/views/3d/terrain/TerrainSurface.js +1 -1
  163. package/views/3d/terrain/TileRenderer.js +1 -1
  164. package/views/3d/terrain/tileUtils.js +1 -1
  165. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  166. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  167. package/views/3d/webgl.d.ts +1 -1
  168. package/views/support/Scheduler.js +1 -1
  169. package/widgets/Directions.d.ts +1 -1
  170. package/assets/esri/core/workers/chunks/0f6c0d42100c21367e5c.js +0 -1
  171. package/assets/esri/core/workers/chunks/176d0a06ebff5a29dedf.js +0 -1
  172. package/assets/esri/core/workers/chunks/18776a130d96879a68b1.js +0 -1
  173. package/assets/esri/core/workers/chunks/20a698709c3c11ff2c16.js +0 -1
  174. package/assets/esri/core/workers/chunks/24ada9511b074dc5ae27.js +0 -1
  175. package/assets/esri/core/workers/chunks/277263466837e1673f56.js +0 -1
  176. package/assets/esri/core/workers/chunks/2c8ca43563c4f3e94535.js +0 -1
  177. package/assets/esri/core/workers/chunks/379ef56f6b32494832a6.js +0 -1
  178. package/assets/esri/core/workers/chunks/38d852676677e5697864.js +0 -1
  179. package/assets/esri/core/workers/chunks/38df7b1d58c4bcf693d0.js +0 -1
  180. package/assets/esri/core/workers/chunks/507ecc3692e6d0700958.js +0 -1
  181. package/assets/esri/core/workers/chunks/5a9b7eb26f936f03d02e.js +0 -1
  182. package/assets/esri/core/workers/chunks/5f07f52bb8b7721f08d3.js +0 -1
  183. package/assets/esri/core/workers/chunks/661847f1b7044f21600f.js +0 -1
  184. package/assets/esri/core/workers/chunks/6b5c073dddd89d06ed80.js +0 -1
  185. package/assets/esri/core/workers/chunks/6ddc29a144640acb1192.js +0 -1
  186. package/assets/esri/core/workers/chunks/6ebe73f69ae822053b70.js +0 -1
  187. package/assets/esri/core/workers/chunks/6f6d1873753a9c6994aa.js +0 -1
  188. package/assets/esri/core/workers/chunks/7582654a0fc70910731c.js +0 -1
  189. package/assets/esri/core/workers/chunks/7e211d8a8ad6c6a7cf3e.js +0 -1
  190. package/assets/esri/core/workers/chunks/849f446c718e892f39ce.js +0 -1
  191. package/assets/esri/core/workers/chunks/8517d96fc8ba7b21d845.js +0 -2
  192. package/assets/esri/core/workers/chunks/a107f16cd004626b5018.js +0 -1
  193. package/assets/esri/core/workers/chunks/a65951f1d5702cfd996e.js +0 -1
  194. package/assets/esri/core/workers/chunks/bf62be00f3040f91aaee.js +0 -1
  195. package/assets/esri/core/workers/chunks/c570b90995c65bbb2e14.js +0 -1
  196. package/assets/esri/core/workers/chunks/c576bef77e34920af188.js +0 -1
  197. package/assets/esri/core/workers/chunks/caad4f475d6eb01c2850.js +0 -1
  198. package/assets/esri/core/workers/chunks/cf1ec61eb2ad147bb931.js +0 -1
  199. package/assets/esri/core/workers/chunks/daae21cf77864f3293ef.js +0 -1
  200. package/assets/esri/core/workers/chunks/dc2f93453dfa40f623ab.js +0 -1
  201. package/assets/esri/core/workers/chunks/e81173724e8de8c1e65b.js +0 -1
  202. package/assets/esri/core/workers/chunks/e83f9abee611c5b80009.js +0 -1
  203. package/assets/esri/core/workers/chunks/ec8b7476eac4718eb0ac.js +0 -1
  204. package/assets/esri/core/workers/chunks/f45064066e1ab041a0b2.js +0 -1
  205. package/assets/esri/core/workers/chunks/ffe49d9e7df081bef4a5.js +0 -1
  206. package/views/2d/engine/webgl/hashMosaic.js +0 -2
  207. /package/assets/esri/core/workers/chunks/{8517d96fc8ba7b21d845.js.LICENSE.txt → 1ae0c9345626e70affd3.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,4935],{52106(e,t,r){r.d(t,{A:()=>M});var i,o,s=r(32198),n=r(40124),l=r(69540),a=r(51447),p=r(25482),u=r(53966),d=r(36708),c=r(24326),y=r(91429),h=r(12195),g=r(65864),f=r(50498),m=r(55156),v=r(60950),b=r(54339),w=r(94128),C=r(33910);const S=Symbol("meshGeometryHandles");function x(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let M=class extends((0,l.OU)(p.o)){static{i=w.Z}static{o=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,c.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,m.I)(this.origin);if(e)return(0,b.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){let e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:x(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let o={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(o.action=i),"attributes"===e&&(o.attributeName=i),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(S);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,d.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,d.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],S)}};(0,s.Cg)([(0,y.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,g.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],M.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,y.MZ)({value:null})],M.prototype,"attributes",null),(0,s.Cg)([(0,y.MZ)({value:null,types:f.yR,json:{read:g.rS}})],M.prototype,"geometry",null),(0,s.Cg)([(0,y.MZ)()],M.prototype,"distance",void 0),(0,s.Cg)([(0,y.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,s.Cg)([(0,y.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,s.Cg)([(0,y.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,s.Cg)([(0,y.MZ)({type:n.A,value:null})],M.prototype,"popupTemplate",null),(0,s.Cg)([(0,y.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,y.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],M.prototype,"statisticsAggregatedIds",void 0),(0,s.Cg)([(0,y.MZ)({value:null,types:C.Es})],M.prototype,"symbol",null),(0,s.Cg)([(0,y.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,s.Cg)([(0,y.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=o=(0,s.Cg)([(0,y.$K)("esri.Graphic")],M)},46140(e,t,r){r.d(t,{A:()=>o});var i=r(49186);class o{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){let t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new o(this.major,this.minor,this._context)}static parse(e,t=""){let[r,s]=e.split("."),n=/^\s*\d+\s*$/;if(!r?.match||!n.test(r)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e})}if(!s?.match||!n.test(s)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e})}return new o(parseInt(r,10),parseInt(s,10),t)}}},6797(e,t,r){r.d(t,{Ui:()=>c});var i=r(69622),o=r(7762),s=r(88620);const n=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function a(e){return e instanceof o.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function p(e,t){return e instanceof o.A?e.items[t]:e[t]}function u(e){return e?e.declaredClass:null}function d(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=a(e),o=a(t);if(0===i.length&&0===o.length)return;if(!i.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let s=o.filter(e=>!i.includes(e)),c=i.filter(e=>!o.includes(e)),y=i.filter(r=>o.includes(r)&&p(e,r)!==p(t,r)).concat(s,c).sort(),h=u(e);if(h&&n.has(h)&&y.length)return{type:"complete",oldValue:e,newValue:t};let g,f=l(e)&&l(t);for(let i of y){let o,s=p(e,i),n=p(t,i);if((f||"function"!=typeof s&&"function"!=typeof n)&&s!==n&&(null!=s||null!=n)){if(r&&r[i]&&"function"==typeof r[i])o=r[i]?.(s,n);else if(s instanceof Date&&n instanceof Date){if(s.getTime()===n.getTime())continue;o={type:"complete",oldValue:s,newValue:n}}else o="object"==typeof s&&"object"==typeof n&&u(s)===u(n)?d(s,n):{type:"complete",oldValue:s,newValue:n};null!=o&&(null==g?g={type:"partial",diff:{[i]:o}}:g.diff[i]=o)}}return g}function c(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&u(e)!==u(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},83027(e,t,r){const i=r(29953).ho;r.d(t,["h",0,i])},55156(e,t,r){r.d(t,{I:()=>o});const i=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},68695(e,t,r){r.r(t),r.d(t,{default:()=>te});var i=r(32198),o=r(40124),s=r(49186),n=r(25728),l=r(17676),a=r(84952),p=r(91429),u=r(89317),d=r(16930),c=r(41910),y=r(55156),h=r(60950),g=r(89808),f=r(99959);const m=Symbol("isCSVGraphicOrigin");var v;class b extends f.A{get[(v=m,h.ym)](){return this.layer}get[y.e](){return this.layer}get[g.Q](){return this.layer}get[c.e7](){return this.layer}constructor(e){super(),this[v]=!0,this.type="csv",this.layer=e}get id(){return this.layer.id}}var w=r(4146),C=r(44208),S=r(92474),x=r(83027),M=r(5443),I=r(22671);let A=class extends S.x_{constructor(e){super(e),this.type="csv",this.refresh=(0,l.sg)(async e=>{await this.load();let{extent:t,timeExtent:r}=await this._connection.invoke("refresh",e);return t&&(this.sourceJSON.extent=t),r&&(this.sourceJSON.timeInfo.timeExtent=[r.start,r.end]),{dataChanged:!0,updates:{extent:this.sourceJSON.extent,timeInfo:this.sourceJSON.timeInfo}}})}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}async openPorts(){return await this.load(),this._connection.openPorts()}async queryFeatures(e,t={}){await this.load(t);let r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);return I.A.fromJSON(r)}async queryFeaturesJSON(e,t={}){return await this.load(t),this._connection.invoke("queryFeatures",e?e.toJSON():null,t)}async queryFeatureCount(e,t={}){return await this.load(t),this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)}async queryObjectIds(e,t={}){return await this.load(t),this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)}async queryExtent(e,t={}){await this.load(t);let r=await this._connection.invoke("queryExtent",e?e.toJSON():null,t);return{count:r.count,extent:M.A.fromJSON(r.extent)}}async querySnapping(e,t={}){return await this.load(t),this._connection.invoke("querySnapping",e,t)}async queryAttributeBins(e,t={}){return await this.load(),this._connection.invoke("queryAttributeBins",e?e.toJSON():null,t)}async _startWorker(e){this._connection=await(0,x.h)("CSVSourceWorker",{strategy:(0,C.A)("feature-layers-workers")?"dedicated":"local",signal:e,registryTarget:this});let{url:t,delimiter:r,fields:i,latitudeField:o,longitudeField:s,spatialReference:n,timeInfo:l}=this.loadOptions,a=await this._connection.invoke("load",{url:t,customParameters:this.customParameters,parsingOptions:{delimiter:r,fields:i?.map(e=>e.toJSON()),latitudeField:o,longitudeField:s,spatialReference:n?.toJSON(),timeInfo:l?.toJSON()}},{signal:e});this.locationInfo=a.locationInfo,this.sourceJSON=a.layerDefinition,this.delimiter=a.delimiter}};(0,i.Cg)([(0,p.MZ)()],A.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)()],A.prototype,"loadOptions",void 0),(0,i.Cg)([(0,p.MZ)()],A.prototype,"customParameters",void 0),(0,i.Cg)([(0,p.MZ)()],A.prototype,"locationInfo",void 0),(0,i.Cg)([(0,p.MZ)()],A.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,p.MZ)()],A.prototype,"delimiter",void 0),A=(0,i.Cg)([(0,p.$K)("esri.layers.graphics.sources.CSVSource")],A);var P=r(64714),F=r(63074),O=r(69208),T=r(6455),Z=r(87718),L=r(56658),j=r(34287),_=r(32756),E=r(8303),N=r(54310),D=r(25036),R=r(82935),q=r(63396),z=r(10873),G=r(15426),$=r(20437),B=r(17036),k=r(30524),J=r(46499),U=r(39383),V=r(37352),H=r(41214),Q=r(97552),K=r(30291),W=r(56400),X=r(36005);const Y=(0,B.p)();let ee=class extends((0,_.fY)((0,T.FJ)((0,O.d)((0,L.J)((0,Z.F)((0,F.dM)((0,R.e)((0,q.d)((0,D.j)((0,N.J)((0,j.q)((0,E.A)((0,n.M)(w.A)))))))))))))){constructor(e){super(e),this.attributeTableTemplate=null,this.capabilities=(0,P.f)(!1,!1),this.copyright=null,this.definitionExpression=null,this.delimiter=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.fullExtent=null,this.geometryType="point",this.graphicOrigin=new b(this),this.labelingInfo=null,this.labelsVisible=!0,this.latitudeField=null,this.legendEnabled=!0,this.locationType="coordinates",this.longitudeField=null,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.opacity=1,this.operationalLayerType="CSV",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new A,this.spatialReference=d.A.WGS84,this.timeInfo=null,this.type="csv"}load(e){let t=this.loadFromPortal({supportedTypes:["CSV"],supportsData:!1},e).catch(l.QP).then(()=>(this.source.loadOptions={delimiter:this.delimiter,fields:this.fields,latitudeField:this.latitudeField??void 0,longitudeField:this.longitudeField??void 0,spatialReference:this.spatialReference??void 0,timeInfo:this.timeInfo??void 0,url:this.url},this.source.customParameters=this.customParameters??void 0,this.source.load(e))).then(()=>{this.read({layerDefinition:this.source.sourceJSON,locationInfo:this.source.locationInfo,columnDelimiter:this.source.delimiter},{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,k.yp)(this.renderer,this.fieldsIndex),(0,k.sv)(this.timeInfo,this.fieldsIndex)});return this.addResolvingPromise(t),Promise.resolve(this)}destroy(){this.source?.destroy()}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}get isTable(){return this.loaded&&null==this.geometryType}readWebMapLabelsVisible(e,t){return t.showLabels??!!t.layerDefinition?.drawingInfo?.labelingInfo}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}set renderer(e){(0,k.yp)(e,this.fieldsIndex),this._set("renderer",e)}set url(e){if(!e)return void this._set("url",e);let t=(0,a.An)(e);this._set("url",t.path),t.query&&(this.customParameters={...this.customParameters,...t.query})}createPopupTemplate(e){return(0,K.tn)(this,e)}createQuery(){let e=new Q.A,t=this.capabilities?.data;e.returnGeometry=!0,t?.supportsZ&&(e.returnZ=!0),e.outFields=["*"],e.where=this.definitionExpression||"1=1";let{timeOffset:r,timeExtent:i}=this;return e.timeExtent=r&&i?i.offset(-r.value,r.unit):i??null,e}getFieldDomain(e,t){return this.getField(e)?.domain}getField(e){return this.fieldsIndex.get(e)}async queryAttributeBins(e,t){let{source:i,capabilities:o}=await this.load();if(!i.queryAttributeBins)throw new s.A("CSVLayer","Layer source does not support queryAttributeBins capability");(0,G.ZJ)(e,o,"CSVLayer");let{default:n}=await r.e(4575).then(()=>r(14575)),l=await i.queryAttributeBins(n.from(e),t),a=this.graphicOrigin;if(l.features)for(let e of l.features)e.layer=e.sourceLayer=this,e.origin=a;return l}queryFeatures(e,t){return this.load().then(()=>this.source.queryFeatures(Q.A.from(e)||this.createQuery())).then(e=>{let t=this.graphicOrigin;if(e.features)for(let r of e.features)r.layer=r.sourceLayer=this,r.origin=t;return e})}async queryObjectIds(e,t){return await this.load(),this.source.queryObjectIds(Q.A.from(e)||this.createQuery())}queryFeatureCount(e,t){return this.load().then(()=>this.source.queryFeatureCount(Q.A.from(e)||this.createQuery()))}queryExtent(e,t){return this.load().then(()=>this.source.queryExtent(Q.A.from(e)||this.createQuery()))}read(e,t){super.read(e,t),"service"===t?.origin&&(["objectIdField","fields","timeInfo","dateFieldsTimeZone","latitudeField","longitudeField"].forEach(e=>this.revertToOrigin(e,"service")),this.spatialReference||this.revertToOrigin("spatialReference","service"))}async hasDataChanged(){try{let{dataChanged:e,updates:t}=await this.source.refresh(this.customParameters);return null!=t&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};(0,i.Cg)([(0,p.MZ)(z.zQ)],ee.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1,write:!1}})],ee.prototype,"capabilities",void 0),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],ee.prototype,"copyright",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ee.prototype,"createQueryVersion",null),(0,i.Cg)([(0,p.MZ)({json:{name:"layerDefinition.dateFieldsTimeReference",read:{reader:W.ZS}}})],ee.prototype,"dateFieldsTimeZone",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ee.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ee.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,p.MZ)({type:[","," ",";","|","\t"],json:{name:"columnDelimiter",write:{ignoreOrigin:!0}}})],ee.prototype,"delimiter",void 0),(0,i.Cg)([(0,p.MZ)({type:String})],ee.prototype,"displayField",void 0),(0,i.Cg)([(0,p.MZ)(z.Yj)],ee.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)({type:[$.A],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0}}})],ee.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)(Y.fieldsIndex)],ee.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,p.MZ)({type:V.A,json:{name:"layerDefinition.floorInfo",write:{layerContainerTypes:u.K}}})],ee.prototype,"floorInfo",void 0),(0,i.Cg)([(0,p.MZ)({json:{origins:{service:{name:"layerDefinition.extent"}}}})],ee.prototype,"fullExtent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],ee.prototype,"geometryType",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ee.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ee.prototype,"isTable",null),(0,i.Cg)([(0,p.MZ)({type:[J.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:U.w},write:!0}})],ee.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,p.MZ)(z.kF)],ee.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,X.w)("web-map","labelsVisible",["layerDefinition.drawingInfo.labelingInfo","showLabels"])],ee.prototype,"readWebMapLabelsVisible",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{name:"locationInfo.latitudeFieldName",write:{ignoreOrigin:!0}}})],ee.prototype,"latitudeField",void 0),(0,i.Cg)([(0,p.MZ)(z.fV)],ee.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide"]})],ee.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({type:["coordinates"],json:{name:"locationInfo.locationType",write:{ignoreOrigin:!0,isRequired:!0}}})],ee.prototype,"locationType",void 0),(0,i.Cg)([(0,p.MZ)({type:String,json:{name:"locationInfo.longitudeFieldName",write:{ignoreOrigin:!0}}})],ee.prototype,"longitudeField",void 0),(0,i.Cg)([(0,p.MZ)(z.hG)],ee.prototype,"maxScale",void 0),(0,i.Cg)([(0,p.MZ)(z.hn)],ee.prototype,"minScale",void 0),(0,i.Cg)([(0,p.MZ)({type:String,json:{name:"layerDefinition.objectIdField",origins:{"web-map":{write:{target:"layerDefinition.objectIdField",ignoreOrigin:!0}}}}})],ee.prototype,"objectIdField",void 0),(0,i.Cg)([(0,p.MZ)(z.Ih)],ee.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({type:["CSV"]})],ee.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,p.MZ)()],ee.prototype,"outFields",void 0),(0,i.Cg)([(0,p.MZ)(z.M6)],ee.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:o.A,json:{name:"popupInfo",write:!0}})],ee.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,p.MZ)({types:H.Hg,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:H.XJ,name:"layerDefinition.drawingInfo.renderer",write:!0}},write:{ignoreOrigin:!0,layerContainerTypes:u.K}}})],ee.prototype,"renderer",null),(0,i.Cg)([(0,p.MZ)(z.PY)],ee.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ee.prototype,"source",void 0),(0,i.Cg)([(0,p.MZ)({type:d.A,json:{origins:{service:{name:"layerDefinition.extent.spatialReference"}}}})],ee.prototype,"spatialReference",void 0),(0,i.Cg)([(0,p.MZ)((0,z.U$)({name:"layerDefinition.timeInfo",alwaysWriteNonItemOrigin:!0}))],ee.prototype,"timeInfo",void 0),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{name:"layerDefinition.name"},"web-document":{name:"title",write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}}}})],ee.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1},value:"csv",readOnly:!0})],ee.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)(z.OZ)],ee.prototype,"url",null),ee=(0,i.Cg)([(0,p.$K)("esri.layers.CSVLayer")],ee);const te=ee},99352(e,t,r){r.d(t,["F",0,{supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsStatisticsAggregatedIds:!0,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},"P",0,{supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}])},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let r=[];for(let i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function o(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>o})},64714(e,t,r){r.d(t,{F0:()=>l,Vx:()=>u,e2:()=>c,f:()=>g});var i=r(44208),o=r(4718),s=r(99352),n=r(93470);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?n.Cb:"esriGeometryPolyline"===e?n.yM:n.WR}}}const a=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let p=1;function u(e,t){if((0,i.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${d(t)} = null;`);for(let t in e)r+=`this${d(t)} = ${JSON.stringify(e[t])};`;let i=Function(`\n return class AttributesClass$${p++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new i}catch{return()=>t?{[t]:null,...e}:{...e}}}function d(e){return a.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,o.o8)(e)}}]}const y={...s.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},h={...s.P,supportedStatistics:{...s.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function g(e,t,r=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r?y:s.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r?h:s.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},69208(e,t,r){var i=r(32198),o=r(91429);r.d(t,["d",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,o.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>l});var i=r(32198),o=r(93637),s=r(91429),n=r(91880);function l(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let o=new n.A;return o.read(i,r),[o]}const a={type:[n.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,i){let s=e.find(e=>!!e.field);s&&(0,o.sM)(r,[s.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,s.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},8303(e,t,r){var i=r(32198),o=r(92602),s=r(70333),n=r(56507),l=r(60999),a=r(49186),p=r(36563),u=r(53966),d=r(97768),c=r(17676),y=r(84952),h=r(91429),g=r(77548),f=r(20655),m=r(80812),v=r(41318),b=r(10407),w=r(26121),C=r(36005),S=r(43937);const x={credential:null,user:null};r.d(t,["A",0,e=>{let t=e,M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,d.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{let{load:i}=await r.e(1204).then(()=>r(41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;let i=t?.signal?null:new AbortController;try{let{reload:o}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,p.rE)(i),"reloadFromPortal"),await o({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:i.signal})}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{i&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!o.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{let{features:{edit:r,fullEdit:i},content:{updateItem:o}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",o)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);let i,o,n=!s.id?.findCredential(this.url),l=e===r.id;if(l&&r.portal.user)return this._getUserPrivileges(r,n);if(l)i=r.portal.url;else try{i=await(0,g.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!i||!(0,y.b8)(i,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{let e=null==t?null:t.signal;o=await(s.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(l?await r.reload():(r=new m.default({id:e,portal:{url:i}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,c.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}_getUserPrivileges(e,t){let r=(0,b.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){let t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;let r=x.credential===t?x.user:await this._fetchEditingUser(e);return x.credential=t,x.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){let t=this.portalItem?.portal?.user;if(t)return t;let r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;let i=`${r.owningSystemUrl}/sharing/rest`,o=f.A.getDefault();if(o&&o.loaded&&(0,y.S8)(o.restUrl)===(0,y.S8)(i))return o.user;let a=`${i}/community/self`,p=null==e?null:e.signal,u=await(0,l.Ke)((0,n.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:p}));return u.ok?v.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){return(0,w.wN)(this.portalItem,t)?(t?.messages?.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,h.MZ)({type:m.default})],M.prototype,"portalItem",null),(0,i.Cg)([(0,C.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,i.Cg)([(0,S.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,i.Cg)([(0,h.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,i.Cg)([(0,h.$K)("esri.layers.mixins.PortalLayer")],M),M}])},82935(e,t,r){var i=r(32198),o=r(91429),s=r(30524),n=r(96184),l=r(73133),a=r(79677),p=r(10184),u=r(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,d,"e",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){let r=t.timeInfo.exportOptions;if(!r)return null;let i=r.timeOffset,o=l.j.fromJSON(r.timeOffsetUnits);return i&&o?new p.A({value:i,unit:o}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,o.MZ)({type:a.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,o.MZ)({type:p.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,u.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,o.MZ)({value:null,type:n.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,o.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},63396(e,t,r){r.d(t,{d:()=>x});var i=r(32198),o=r(91429),s=r(41910),n=r(60950),l=r(99959);class a extends l.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[n.ym](){return this.trackInfoProvider.trackInfo}get[s.e7](){return this.trackInfoProvider}}var p=r(40124),u=r(69540),d=r(25482),c=r(93637),y=r(50820),h=r(10873),g=r(46499),f=r(41214);let m=class extends((0,u.OU)(d.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,i.Cg)([(0,o.MZ)({type:[g.A],json:{write:!0}})],m.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,o.MZ)(h.kF)],m.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,o.MZ)({types:f.Hg,json:{write:!0}})],m.prototype,"renderer",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"visible",void 0),m=(0,i.Cg)([(0,o.$K)("esri.layers.support.TrackPartInfo")],m);var v=r(96576),b=r(59868),w=r(10184),C=r(43937);let S=class extends((0,u.OU)(d.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new m({renderer:new v.A({symbol:b.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new m({renderer:new v.A({symbol:b.UK.clone()})}),this.trackLines=new m({renderer:new v.A({symbol:b.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,r){let i=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,c.sM)(r,i,t)}};(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"enabled",void 0),(0,i.Cg)([(0,o.MZ)({type:[y.A],json:{write:!0}})],S.prototype,"fields",void 0),(0,i.Cg)([(0,C.K)("fields")],S.prototype,"writeFields",null),(0,i.Cg)([(0,o.MZ)({type:m,json:{write:!0}})],S.prototype,"latestObservations",void 0),(0,i.Cg)([(0,o.MZ)({type:w.A,json:{write:!0}})],S.prototype,"maxDisplayDuration",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],S.prototype,"maxDisplayObservationsPerTrack",void 0),(0,i.Cg)([(0,o.MZ)(h.M6)],S.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,o.MZ)({type:p.A,json:{name:"popupInfo",write:!0}})],S.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,o.MZ)({type:m,json:{write:!0}})],S.prototype,"previousObservations",void 0),(0,i.Cg)([(0,o.MZ)({type:m,json:{write:!0}})],S.prototype,"trackLines",void 0),(0,i.Cg)([(0,o.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],S.prototype,"timeField",void 0),S=(0,i.Cg)([(0,o.$K)("esri.layers.support.TrackInfo")],S);const x=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,i.Cg)([(0,o.MZ)({readOnly:!0,clonable:!1})],r.prototype,"trackGraphicOrigin",void 0),(0,i.Cg)([(0,o.MZ)({type:S})],r.prototype,"trackInfo",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.TrackableLayer")],r),r}},46499(e,t,r){r.d(t,{A:()=>M});var i,o,s=r(32198),n=(r(44208),r(66552)),l=r(25482),a=r(4718),p=r(90629),u=r(91429),d=r(90360),c=r(73913),y=r(32730),h=r(77548),g=r(59868),f=r(73838),m=r(33910),v=r(36005),b=r(43937);const w=new n.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function C(e,t,r){return{enabled:!(0,h.TU)(r?.layer)}}function S(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function x(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let M=class extends l.o{static{i=y.vK}static{o=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),o=i[3],s=r(t[i[4]],i[5],i[6]);switch(o){case"AND":return e&&s;case"OR":return e||s}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=g.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,y.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,y.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&S(i))e=new c.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let o=e.toJSON(i);o.expression&&(t[r]=o)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,y.XJ)(this)}getLabelExpressionArcade(){return(0,y.BI)(this)}getLabelExpressionSingleField(){return(0,y.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new o({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],M.prototype,"name",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:C}}}}})],M.prototype,"allowOverrun",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:C}}}}})],M.prototype,"deconflictionStrategy",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&x(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],M.prototype,"labelExpression",void 0),(0,s.Cg)([(0,v.w)("labelExpression")],M.prototype,"readLabelExpression",null),(0,s.Cg)([(0,b.K)("labelExpression")],M.prototype,"writeLabelExpression",null),(0,s.Cg)([(0,u.MZ)({type:c.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return S(e)||x(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],M.prototype,"labelExpressionInfo",void 0),(0,s.Cg)([(0,b.K)("labelExpressionInfo")],M.prototype,"writeLabelExpressionInfo",null),(0,s.Cg)([(0,u.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],M.prototype,"labelPlacement",void 0),(0,s.Cg)([(0,u.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],M.prototype,"offsetDistance",void 0),(0,s.Cg)([(0,u.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],M.prototype,"labelPosition",void 0),(0,s.Cg)([(0,u.MZ)({type:Number})],M.prototype,"maxScale",void 0),(0,s.Cg)([(0,b.K)("maxScale")],M.prototype,"writeMaxScale",null),(0,s.Cg)([(0,u.MZ)({type:Number})],M.prototype,"minScale",void 0),(0,s.Cg)([(0,b.K)("minScale")],M.prototype,"writeMinScale",null),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],M.prototype,"repeatLabel",void 0),(0,s.Cg)([(0,u.MZ)({type:Number,cast:p.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],M.prototype,"repeatLabelDistance",null),(0,s.Cg)([(0,u.MZ)({types:m.em,json:{types:m.em,origins:{"portal-item":{types:m.em,read:{reader:(0,d.C)({types:m.em})},default:null},"web-scene":{types:m.Rv,read:{reader:(0,d.C)({types:m.Rv})},write:f.oO,default:null}},write:f.oO,default:null}})],M.prototype,"symbol",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"useCodedValues",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],M.prototype,"where",void 0),M=o=(0,s.Cg)([(0,u.$K)("esri.layers.support.LabelClass")],M)},73913(e,t,r){r.d(t,{A:()=>u});var i,o=r(32198),s=r(25482),n=r(91429),l=r(32730),a=r(36005),p=r(43937);let u=class extends s.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,l.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,l.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"name",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],u.prototype,"expression",void 0),(0,o.Cg)([(0,a.w)("expression",["expression","value"])],u.prototype,"readExpression",null),(0,o.Cg)([(0,p.K)("expression")],u.prototype,"writeExpression",null),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"title",void 0),(0,o.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],u.prototype,"value",void 0),u=i=(0,o.Cg)([(0,n.$K)("esri.layers.support.LabelExpressionInfo")],u)},37352(e,t,r){r.d(t,{A:()=>a});var i,o=r(32198),s=r(7762),n=r(25482),l=r(91429);let a=i=class extends n.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new s.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>p});var i,o=r(32198),s=r(66552),n=r(25482),l=r(91429);const a=new s.J({asc:"ascending",desc:"descending"});let p=class extends n.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,o.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],p.prototype,"order",void 0),p=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],p)},41560(e,t,r){r.d(t,{Ch:()=>n,mW:()=>s});var i=r(34727),o=r(39516);function s(e,t){return{...t,filterMode:e.mode}}function n(e,t,r){let s=function(e){if("manual"===p(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(s&&((0,i.gg)(t,s[0])||(0,i.ZH)(r,s[1])))return"";let n=Array.from(l(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let o=u(e.at(0)?.minScale),s=d(e.at(-1)?.maxScale);if((0,i.ZH)(o,t)||(0,i.gg)(s,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],o=e[t+1];if((0,i.ZH)(u(o.minScale),d(r.maxScale)))return!0}return!1}(n,t,r)?"1=1":n.map(e=>e.where||"1=1").reduce((e,t)=>(0,o.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,r){if("manual"===p(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,o){return e=u(e),r=u(r),t=d(t),!(!(0,i.Sp)(r,e)&&(o??r)>e||(0,i.Hx)(t,r)||void 0!==o&&(0,i.Sp)(o,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||1/0}function d(e){return e||0}},17036(e,t,r){r.d(t,{p:()=>a});var i=r(44208),o=r(53966),s=r(20437),n=r(95466),l=r(30524);function a(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){let t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){let e=t.map(e=>`'${e.name}'`).join(", ");o.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${2**53-1} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return n.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){let e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(let t of e)this.fieldsIndex?.has(t)||o.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e});return(0,l.DB)(this.fieldsIndex,e)}}}}},39383(e,t,r){r.d(t,{w:()=>a,z:()=>d});var i=r(49186),o=r(53966),s=r(46499);const n=()=>o.A.getLogger("esri.layers.support.labelingInfo"),l=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new s.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(l,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const p=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],u={esriGeometryPoint:p,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:p,esriGeometryEnvelope:null};function d(e,t){let r=[];for(let o of e){let e=o.labelPlacement,s=u[t];if(!o.symbol)return n().warn("No ILabelClass symbol specified."),[];if(!s)return n().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(s.includes(e))r.push(o);else{let i=s[0];e&&n().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let l=o.clone();l.labelPlacement=i,r.push(l)}}return r}},73681(e,t,r){r.d(t,{n:()=>a});var i=r(49186),o=r(53966),s=r(46140),n=r(95466),l=r(55674);class a{static async from(e,t,r){let n=e.dictionary_version?s.A.parse(e.dictionary_version):null,u=new Set(e.itemsNames),d={};if(t)for(let e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(let t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);let c=new Set(e.authoringInfo.symbol);for(let e of Object.keys(r))c.delete(e);c.size&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:c});let y=await(0,l.xR)(e.expression,null,d);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let h=!n||!n.greaterEqual(4,0);h&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:n});let g=new p(r,h);return new a(h,u,y,g)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new n.A(e);let t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new n.A(t)}}class p extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){let t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);let t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},22671(e,t,r){r.d(t,{A:()=>v});var i,o=r(32198),s=r(52106),n=r(66552),l=r(25482),a=r(4718),p=r(91429),u=r(16930),d=r(60408),c=r(65864),y=r(50498),h=r(20437),g=r(36005),f=r(43937);const m=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:o}=this;if(o)for(let e of o)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,c.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,o]}=e,s=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=s.length;e<t;e++)n?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,o],scale:[s,n]}=r,l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let p=this._getHydrationFunction(e,e=>e*s+i,e=>o-e*n,l,a);for(let{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=u.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){let s=e[t],n=r.fromJSON(s),l=s.geometry?.spatialReference;null!=n.geometry&&!l&&(n.geometry.spatialReference=i);let a=s.aggregateGeometries,p=n.aggregateGeometries;if(a&&null!=p)for(let e in p){let t=p[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}o.push(n)}return o}_quantizePoints(e,t,r){let i,o,s=[];for(let n=0,l=e.length;n<l;n++){let l=e[n];if(n>0){let e=t(l[0]),n=r(l[1]);(e!==i||n!==o)&&(s.push([e-i,n-o]),i=e,o=n)}else i=t(l[0]),o=r(l[1]),s.push([i,o])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,d.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,s=i.length;e<s;e++){let s=i[e],n=this._quantizePoints(s,t,r);n&&o.push(n)}return o.length>0?((0,d.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let s,n,l=(0,d.Bi)(e)?e.rings:e.paths;for(let e=0,i=l.length;e<i;e++){let i=l[e];for(let e=0,o=i.length;e<o;e++){let o=i[e];e>0?(s+=o[0],n+=o[1]):(s=o[0],n=o[1]),o[0]=t(s),o[1]=r(n)}}if(i&&o)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{let s,n,l=e.points;for(let e=0,i=l.length;e<i;e++){let i=l[e];e>0?(s+=i[0],n+=i[1]):(s=i[0],n=i[1]),i[0]=t(s),i[1]=r(n)}if(i&&o)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=i(t[2])}else if(o)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,p.MZ)({type:[s.A],json:{write:!0}})],v.prototype,"features",void 0),(0,o.Cg)([(0,g.w)("features")],v.prototype,"readFeatures",null),(0,o.Cg)([(0,p.MZ)({type:[h.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,o.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,o.Cg)([(0,f.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o.Cg)([(0,p.MZ)({types:y.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,g.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,p.MZ)({type:u.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o.Cg)([(0,f.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,o.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var i=r(32198),o=r(66552),s=r(53966),n=r(91429),l=r(93223);const a=(0,o.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",u="field";r.d(t,["K",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&u||r&&p||null,t&&r&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===u||e===p)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,n.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.e)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,n.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,a])},93470(e,t,r){const i=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,o,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,s])},26121(e,t,r){r.d(t,{I6:()=>u,ci:()=>p,dL:()=>a,wN:()=>d});var i=r(49186),o=r(84952),s=r(77548),n=r(20655),l=r(59923);async function a(e){let t=[];for(let r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){let e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function p(e,t,r){let o=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new i.A(e,t,r));if(e.blockedRelativeUrls&&(o=o.concat(e.blockedRelativeUrls.map(e=>(0,l.GL)("url",`Relative url '${e}' is not supported`)))),r){let{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:i}=r;e&&(o=o.filter(({name:e})=>!(l.MG.has(e)||t.includes(e)))),i&&(o=o.filter(e=>"web-document-write:property-required"!==e.name))}if(o.length>0)throw new i.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:o})}function u(e){return(0,s.qd)(e).some(e=>!!e.charts?.length)}function d(e,t){let r=t?.portal,i=e?.id&&(e.portal||n.A.getDefault());return!!r&&!!i&&!(0,o.ut)(i.restUrl,r.restUrl)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1348,1560,4549,6713,7340],{52106(e,t,r){r.d(t,{A:()=>x});var i,o,n=r(32198),l=r(40124),s=r(69540),a=r(51447),p=r(25482),u=r(53966),d=r(36708),y=r(24326),c=r(91429),g=r(12195),h=r(65864),f=r(50498),m=r(55156),v=r(60950),w=r(54339),b=r(94128),C=r(33910);const M=Symbol("meshGeometryHandles");function S(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let x=class extends((0,s.OU)(p.o)){static{i=b.Z}static{o=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,y.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,m.I)(this.origin);if(e)return(0,w.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,w.r)(this,t):null}getGlobalId(){let e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:S(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let o={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(o.action=i),"attributes"===e&&(o.attributeName=i),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(M);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,d.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,d.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],M)}};(0,n.Cg)([(0,c.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,h.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],x.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,c.MZ)({value:null})],x.prototype,"attributes",null),(0,n.Cg)([(0,c.MZ)({value:null,types:f.yR,json:{read:h.rS}})],x.prototype,"geometry",null),(0,n.Cg)([(0,c.MZ)()],x.prototype,"distance",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean})],x.prototype,"isAggregate",void 0),(0,n.Cg)([(0,c.MZ)({clonable:!1})],x.prototype,"layer",void 0),(0,n.Cg)([(0,c.MZ)({clonable:"reference"})],x.prototype,"origin",void 0),(0,n.Cg)([(0,c.MZ)({type:l.A,value:null})],x.prototype,"popupTemplate",null),(0,n.Cg)([(0,c.MZ)({clonable:"reference"})],x.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,c.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],x.prototype,"statisticsAggregatedIds",void 0),(0,n.Cg)([(0,c.MZ)({value:null,types:C.Es})],x.prototype,"symbol",null),(0,n.Cg)([(0,c.MZ)({clonable:!1,json:{read:!1,write:!1}})],x.prototype,"_version",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,value:!0})],x.prototype,"visible",null),x=o=(0,n.Cg)([(0,c.$K)("esri.Graphic")],x)},46140(e,t,r){r.d(t,{A:()=>o});var i=r(49186);class o{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){let t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new o(this.major,this.minor,this._context)}static parse(e,t=""){let[r,n]=e.split("."),l=/^\s*\d+\s*$/;if(!r?.match||!l.test(r)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e})}if(!n?.match||!l.test(n)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e})}return new o(parseInt(r,10),parseInt(n,10),t)}}},6797(e,t,r){r.d(t,{Ui:()=>y});var i=r(69622),o=r(7762),n=r(88620);const l=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function s(e){return e instanceof i.A}function a(e){return e instanceof o.A?Object.keys(e.items):s(e)?(0,n.oY)(e).keys():e?Object.keys(e):[]}function p(e,t){return e instanceof o.A?e.items[t]:e[t]}function u(e){return e?e.declaredClass:null}function d(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=a(e),o=a(t);if(0===i.length&&0===o.length)return;if(!i.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let n=o.filter(e=>!i.includes(e)),y=i.filter(e=>!o.includes(e)),c=i.filter(r=>o.includes(r)&&p(e,r)!==p(t,r)).concat(n,y).sort(),g=u(e);if(g&&l.has(g)&&c.length)return{type:"complete",oldValue:e,newValue:t};let h,f=s(e)&&s(t);for(let i of c){let o,n=p(e,i),l=p(t,i);if((f||"function"!=typeof n&&"function"!=typeof l)&&n!==l&&(null!=n||null!=l)){if(r&&r[i]&&"function"==typeof r[i])o=r[i]?.(n,l);else if(n instanceof Date&&l instanceof Date){if(n.getTime()===l.getTime())continue;o={type:"complete",oldValue:n,newValue:l}}else o="object"==typeof n&&"object"==typeof l&&u(n)===u(l)?d(n,l):{type:"complete",oldValue:n,newValue:l};null!=o&&(null==h?h={type:"partial",diff:{[i]:o}}:h.diff[i]=o)}}return h}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&u(e)!==u(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},55156(e,t,r){r.d(t,{I:()=>o});const i=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},9352(e,t,r){r.r(t),r.d(t,{default:()=>k});var i=r(32198),o=r(49186),n=r(93637),l=r(91429),s=r(16930),a=r(41910),p=r(55156),u=r(60950),d=r(89808),y=r(99959);const c=Symbol("isOrientedImageryGraphicOrigin");var g;class h extends y.A{get[(g=c,u.ym)](){return this.layer}get[p.e](){return this.layer}get[d.Q](){return this.layer}get[a.e7](){return this.layer}constructor(e){super(),this[g]=!0,this.type="oriented-imagery",this.layer=e}get id(){return this.layer.id}}var f=r(18589),m=r(66552),v=(r(86211),r(28735),r(69540)),w=r(25482),b=r(69622),C=r(21325);let M=class extends b.A{set horizontalWKID(e){e?(0,C.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,C.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){let{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:o}=this;return e?.length>1&&!Number.isNaN(t)&&r?.length>1&&i?.length>1&&o?.length>1}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],M.prototype,"affineTransformations",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],M.prototype,"focalLength",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],M.prototype,"principalOffsetPoint",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],M.prototype,"radialDistortionCoefficients",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],M.prototype,"tangentialDistortionCoefficients",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],M.prototype,"horizontalWKID",null),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],M.prototype,"verticalWKID",null),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],M.prototype,"x",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],M.prototype,"y",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],M.prototype,"z",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],M.prototype,"type",void 0),M=(0,i.Cg)([(0,l.$K)("esri.layers.orientedImagery.core.CameraOrientation")],M);const S=M;let x=class extends((0,v.OU)((0,w.T)(S))){constructor(){super(...arguments),this.type=1}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,heading:l,pitch:s,roll:a,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:y,tangentialDistortionCoefficients:c}=this,g=[e,t,r,i,o,n,l,s,a];return this.isAdvanced&&(p?.forEach(e=>g.push(e)),g.push(u),d?.forEach(e=>g.push(e)),y?.forEach(e=>g.push(e)),c?.forEach(e=>g.push(e))),g.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],x.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],x.prototype,"affineTransformations",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],x.prototype,"focalLength",void 0),(0,i.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],x.prototype,"principalOffsetPoint",void 0),(0,i.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],x.prototype,"radialDistortionCoefficients",void 0),(0,i.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],x.prototype,"tangentialDistortionCoefficients",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],x.prototype,"heading",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],x.prototype,"pitch",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],x.prototype,"roll",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],x.prototype,"x",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],x.prototype,"y",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],x.prototype,"z",void 0),x=(0,i.Cg)([(0,l.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],x);const j=x;let Z=class extends((0,v.OU)((0,w.T)(S))){constructor(){super(...arguments),this.type=4}toString(){let{type:e,latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:o,properties:n}=this,l=`${n}`.split("|");return l.splice(1,1),`${e}|${t}|${r}|${i}|${o}|${l.join("|")}`}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],Z.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0},type:Number})],Z.prototype,"latitude",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0},type:Number})],Z.prototype,"longitude",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0},type:Number})],Z.prototype,"ellipsoidRadius",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0},type:Number})],Z.prototype,"squaredEccentricity",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],Z.prototype,"properties",void 0),Z=(0,i.Cg)([(0,l.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],Z);const P=Z;let I=class extends((0,v.OU)((0,w.T)(S))){constructor(){super(...arguments),this.type=2}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,omega:l,phi:s,kappa:a,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:y,tangentialDistortionCoefficients:c}=this,g=[e,t,r,i,o,n,l,s,a];return this.isAdvanced&&(p?.forEach(e=>g.push(e)),g.push(u),d?.forEach(e=>g.push(e)),y?.forEach(e=>g.push(e)),c?.forEach(e=>g.push(e))),g.map(e=>isNaN(e)?"":e).join("|")}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],I.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],I.prototype,"affineTransformations",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],I.prototype,"focalLength",void 0),(0,i.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],I.prototype,"principalOffsetPoint",void 0),(0,i.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],I.prototype,"radialDistortionCoefficients",void 0),(0,i.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],I.prototype,"tangentialDistortionCoefficients",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],I.prototype,"omega",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],I.prototype,"phi",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],I.prototype,"kappa",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],I.prototype,"x",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],I.prototype,"y",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],I.prototype,"z",void 0),I=(0,i.Cg)([(0,l.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],I);const T=I;let O=class extends((0,v.OU)((0,w.T)(S))){constructor(){super(...arguments),this.type=3}get isAdvanced(){let{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:o}=this;return e?.length>1||!Number.isNaN(t)||r?.length>1||i?.length>1||o?.length>1}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,yaw:l,pitch:s,roll:a,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:y,tangentialDistortionCoefficients:c}=this,g=[e,t,r,i,o,n,l,s,a];return this.isAdvanced&&(p?.forEach(e=>g.push(e)),g.push(u),d?.forEach(e=>g.push(e)),d?.forEach(e=>g.push(e)),y?.forEach(e=>g.push(e)),c?.forEach(e=>g.push(e))),g.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],O.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],O.prototype,"affineTransformations",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],O.prototype,"focalLength",void 0),(0,i.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],O.prototype,"principalOffsetPoint",void 0),(0,i.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],O.prototype,"radialDistortionCoefficients",void 0),(0,i.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],O.prototype,"tangentialDistortionCoefficients",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],O.prototype,"yaw",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],O.prototype,"pitch",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],O.prototype,"roll",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],O.prototype,"x",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],O.prototype,"y",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],O.prototype,"z",void 0),O=(0,i.Cg)([(0,l.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],O);const A=O,F=new Map;F.set("2",{desc:"Using Omega Phi Kappa",constructor:T}),F.set("1",{desc:"Using Heading, Pitch and Roll",constructor:j}),F.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:A}),F.set("4",{desc:"Using Local Tangent Plane",constructor:P});let L=class extends((0,v.OU)(w.o)){constructor(){super(...arguments),this.url=null}};(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],L.prototype,"lod",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],L.prototype,"rasterFunction",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],L.prototype,"url",void 0),L=(0,i.Cg)([(0,l.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],L);let N=class extends((0,v.OU)(w.o)){constructor(e){super(e),this.constantElevation=null}};(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],N.prototype,"constantElevation",void 0),N=(0,i.Cg)([(0,l.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],N);const E=new m.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),D=new m.J({Feet:"feet",Meter:"meter"}),_=new m.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),z=new Map;z.set("1",function(e){let[t,r,i,o,n,l,s,a,p,u,d,y,c,g,h,f,m,v,w,b,C,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,heading:l,pitch:s,roll:a,...K([p,u,d,y,c,g],[f,m],[v,w,b],[C,M],h)}}),z.set("3",function(e){let[t,r,i,o,n,l,s,a,p,u,d,y,c,g,h,f,m,v,w,b,C,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,yaw:l,pitch:s,roll:a,...K([p,u,d,y,c,g],[f,m],[v,w,b],[C,M],h)}}),z.set("2",function(e){let[t,r,i,o,n,l,s,a,p,u,d,y,c,g,h,f,m,v,w,b,C,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,omega:l,phi:s,kappa:a,...K([p,u,d,y,c,g],[f,m],[v,w,b],[C,M],h)}}),z.set("4",function(e){let[t,r,i,o,n,...l]=e.slice(1),s=z.get(n),a=F.get(n)?.constructor;return s&&a?{latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:o,properties:new a(s([n,"",...l]))}:null});const R=e=>{let t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function K(e,t,r,i,o){let n=R(e),l=R(t),s=R(r),a=R(i);return{affineTransformations:6===n?.length?n:void 0,focalLength:6===n?.length?parseFloat(o):void 0,principalOffsetPoint:2===l?.length?l:[0,0],radialDistortionCoefficients:3===s?.length?s:[0,0,0],tangentialDistortionCoefficients:2===a?.length?a:[0,0]}}var $=r(20437),q=r(43440),G=r(79677);const V=new Set(["demPathPrefix","demPathSuffix","depthImagePathPrefix","depthImagePathSuffix","elevationSource","horizontalMeasurementUnit","imageGeometryField","imageReferenceField","referenceIDField","sequenceOrderField","sequenceOrderFields","verticalMeasurementUnit","videoPathPrefix","videoPathSuffix","timeAnimation","visibilityTimeExtent"]),J=new Set(["elevationSource"]),U=(e,t)=>!V.has(t)&&e;function W(e,t,r,i){let{name:o,write:n,read:l}=((e,t,r)=>{let i=`orientedImageryProperties.${e}`,o={allowNull:J.has(e),ignoreOrigin:!0};return{name:i,write:t?{...o,target:i,writer:t}:o,read:r?{ignoreOrigin:!0,source:i,reader:r}:{ignoreOrigin:!0}}})(e,t,r),s={name:o,write:n,read:l,origins:{service:{name:`orientedImageryInfo.${o}`,write:t,read:r},"web-scene":{name:o,write:U(n,e),read:U(l,e)},"web-map":{name:o,write:n,read:l}}};return!i||!s.origins||(s.type=i,s.origins["web-map"].type=i,s.origins["web-scene"].type=i),s}let B=class extends f.default{constructor(e){super(e),this.attributeTableTemplate=null,this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.graphicOrigin=new h(this),this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imageGeometryField="ImageGeometry",this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageReferenceField="OIObjectID",this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.referenceIDField="OBJECTID",this.sequenceOrderField="SequenceOrder",this.sequenceOrderFields=[],this.subtypeField=null,this.subtypes=null,this.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),this.type="oriented-imagery",this.timeIntervalUnit="days",this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.verticalSearchRange=null,this.videoPathPrefix=null,this.videoPathSuffix=null,this.virtualCacheDirectory=null,this.dataStoreID=null,this.imageAccessPaths=null,this.visibilityTimeExtent=null}get effectiveElevationSource(){let{elevationSource:e,demPathPrefix:t,demPathSuffix:r}=this;return function(e,t,r){return e&&((e=>null!=e&&"number"==typeof e.constantElevation)(e)?new N(e):function(e,t,r){let{url:i}=e;return i?(i=function(e,t,r){return t&&(e=`${t}${e}`),r&&(e+=`${r}`),e}(i,t,r),new L({...e,url:i})):null}(e,t,r))}(e,t,r)}get effectiveSequenceOrderField(){let{sequenceOrderField:e,fields:t,sequenceOrderFields:r}=this;return function(e,t,r){let i=function(e,t){return e?.length?e.map(({field:e,order:r})=>{let i=t.find(t=>t.name.toLowerCase()===e.toLowerCase());return i?{fieldName:i.name,sortOrder:"desc"===r?.toLowerCase()?"desc":"asc"}:null}).filter(e=>null!=e):null}(r,t);if(i?.length)return i;if(!e){let e=t.find(e=>e.name.toLocaleLowerCase()==="sequenceorder".toLocaleLowerCase());return e?[{fieldName:e.name,sortOrder:"asc"}]:null}let o=t.find(t=>t.name.toLowerCase()===e.trim().toLowerCase());return o?[{fieldName:o.name,sortOrder:"asc"}]:null}(e,t,r)}get fieldConfigurations(){return super.fieldConfigurations}set fieldConfigurations(e){super.fieldConfigurations=e}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}findFirstValidLayerId(e){return e.layers?.find(({type:e})=>!!e&&this.supportedSourceTypes.has(e))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new o.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};(0,i.Cg)([(0,l.MZ)({type:q.A,json:{write:!1,read:!1}})],B.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:W("cameraHeading")})],B.prototype,"cameraHeading",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:W("cameraHeight")})],B.prototype,"cameraHeight",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:W("cameraPitch")})],B.prototype,"cameraPitch",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:W("cameraRoll")})],B.prototype,"cameraRoll",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:W("coveragePercent")})],B.prototype,"coveragePercent",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:W("demPathPrefix")})],B.prototype,"demPathPrefix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:W("demPathSuffix")})],B.prototype,"demPathSuffix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:W("depthImagePathPrefix")})],B.prototype,"depthImagePathPrefix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:W("depthImagePathSuffix")})],B.prototype,"depthImagePathSuffix",void 0),(0,i.Cg)([(0,l.MZ)({type:Object,json:W("elevationSource")})],B.prototype,"elevationSource",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],B.prototype,"effectiveElevationSource",null),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],B.prototype,"effectiveSequenceOrderField",null),(0,i.Cg)([(0,l.MZ)({type:Number,json:W("farDistance")})],B.prototype,"farDistance",void 0),(0,i.Cg)([(0,l.MZ)({type:[$.A]})],B.prototype,"fields",void 0),(0,i.Cg)([(0,l.MZ)()],B.prototype,"geometryType",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1})],B.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:W("horizontalFieldOfView")})],B.prototype,"horizontalFieldOfView",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:W("horizontalMeasurementUnit")})],B.prototype,"horizontalMeasurementUnit",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{...W("imageGeometryField"),default:"ImageGeometry"}})],B.prototype,"imageGeometryField",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:W("imagePathPrefix")})],B.prototype,"imagePathPrefix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:W("imagePathSuffix")})],B.prototype,"imagePathSuffix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{...W("imageReferenceField"),default:"OIObjectID"}})],B.prototype,"imageReferenceField",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:W("imageRotation")})],B.prototype,"imageRotation",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:W("maximumDistance")})],B.prototype,"maximumDistance",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:W("nearDistance")})],B.prototype,"nearDistance",void 0),(0,i.Cg)([(0,l.MZ)({type:["OrientedImageryLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0}}}}})],B.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,l.MZ)({json:{...W("orientationAccuracy",(e,t,r)=>{(0,n.sM)(r,e.join(";"),t)},e=>function(e){if("string"!=typeof e)return null;let t=e.split(";");return t.some(e=>!/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/.test(e.trim()))?null:function(e){return function(e){if(!Array.isArray(e)||e.length<=5)return!1;for(let t of e)if("number"!=typeof t||!Number.isFinite(t)||t<0)return!1;return!0}(e)?function(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}(e):null}(t.map(e=>Number(e.trim())))}(e)??[0,0,0,0,0,0,0,0],String)}})],B.prototype,"orientationAccuracy",void 0),(0,i.Cg)([(0,l.MZ)({json:{...W("orientedImageryType",_.write,_.read,_.jsonValues.slice(1))}})],B.prototype,"orientedImageryType",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{...W("referenceIDField"),default:"OBJECTID"}})],B.prototype,"referenceIDField",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{...W("sequenceOrderField"),default:"SequenceOrder"}})],B.prototype,"sequenceOrderField",void 0),(0,i.Cg)([(0,l.MZ)({json:{...W("sequenceOrderFields",function(e,t,r){e?.length&&(0,n.sM)(r,e,t)}),default:[]}})],B.prototype,"sequenceOrderFields",void 0),(0,i.Cg)([(0,l.MZ)({type:s.A})],B.prototype,"spatialReference",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],B.prototype,"subtypeField",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],B.prototype,"subtypes",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],B.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({type:E.apiValues,json:{...W("timeIntervalUnit",E.write,E.read,E.jsonValues)}})],B.prototype,"timeIntervalUnit",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:W("verticalFieldOfView")})],B.prototype,"verticalFieldOfView",void 0),(0,i.Cg)([(0,l.MZ)({type:D.apiValues,json:{...W("verticalMeasurementUnit",D.write,D.read,D.jsonValues)}})],B.prototype,"verticalMeasurementUnit",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:W("verticalSearchRange")})],B.prototype,"verticalSearchRange",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:W("videoPathPrefix")})],B.prototype,"videoPathPrefix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:W("videoPathSuffix")})],B.prototype,"videoPathSuffix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.orientedImageryProperties.virtualCacheDirectory",read:!0}}}})],B.prototype,"virtualCacheDirectory",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.dsid",read:!0}}}})],B.prototype,"dataStoreID",void 0),(0,i.Cg)([(0,l.MZ)({type:Object,readOnly:!0,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.imageAccessPaths",read:!0}}}})],B.prototype,"imageAccessPaths",void 0),(0,i.Cg)([(0,l.MZ)({type:G.A,json:{origins:{"web-scene":{write:!1,read:!1}}}})],B.prototype,"visibilityTimeExtent",void 0),B=(0,i.Cg)([(0,l.$K)("esri.layers.OrientedImageryLayer")],B);const k=B},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let r=[];for(let i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function o(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>o})},52136(e,t,r){var i=r(32198),o=r(91429);r.d(t,["p",0,e=>{let t=e,r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,i.Cg)([(0,o.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>s});var i=r(32198),o=r(93637),n=r(91429),l=r(91880);function s(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let o=new l.A;return o.read(i,r),[o]}const a={type:[l.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:s},write:{writer:function(e,t,r,i){let n=e.find(e=>!!e.field);n&&(0,o.sM)(r,[n.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,n.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},28032(e,t,r){r.d(t,{A:()=>a});var i=r(32198),o=r(69540),n=r(25482),l=r(91429),s=r(56400);let a=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,l.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,l.MZ)((0,s.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>p});var i=r(32198),o=r(69540),n=r(66552),l=r(25482),s=r(91429);const a=new n.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,o.OU)(l.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"drawingTool",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureTemplate")],p)},33143(e,t,r){r.d(t,{A:()=>d});var i=r(32198),o=r(69540),n=r(25482),l=r(91429),s=r(8631),a=r(29005),p=r(36005),u=r(43937);let d=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,s.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,p.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,u.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,l.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureType")],d)},46499(e,t,r){r.d(t,{A:()=>x});var i,o,n=r(32198),l=(r(44208),r(66552)),s=r(25482),a=r(4718),p=r(90629),u=r(91429),d=r(90360),y=r(73913),c=r(32730),g=r(77548),h=r(59868),f=r(73838),m=r(33910),v=r(36005),w=r(43937);const b=new l.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function C(e,t,r){return{enabled:!(0,g.TU)(r?.layer)}}function M(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function S(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let x=class extends s.o{static{i=c.vK}static{o=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),o=i[3],n=r(t[i[4]],i[5],i[6]);switch(o){case"AND":return e&&n;case"OR":return e||n}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=h.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,c.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,c.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&M(i))e=new y.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let o=e.toJSON(i);o.expression&&(t[r]=o)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,c.XJ)(this)}getLabelExpressionArcade(){return(0,c.BI)(this)}getLabelExpressionSingleField(){return(0,c.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new o({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],x.prototype,"name",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:C}}}}})],x.prototype,"allowOverrun",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:C}}}}})],x.prototype,"deconflictionStrategy",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&S(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],x.prototype,"labelExpression",void 0),(0,n.Cg)([(0,v.w)("labelExpression")],x.prototype,"readLabelExpression",null),(0,n.Cg)([(0,w.K)("labelExpression")],x.prototype,"writeLabelExpression",null),(0,n.Cg)([(0,u.MZ)({type:y.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return M(e)||S(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],x.prototype,"labelExpressionInfo",void 0),(0,n.Cg)([(0,w.K)("labelExpressionInfo")],x.prototype,"writeLabelExpressionInfo",null),(0,n.Cg)([(0,u.MZ)({type:b.apiValues,json:{type:b.jsonValues,read:b.read,write:b.write}})],x.prototype,"labelPlacement",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],x.prototype,"offsetDistance",void 0),(0,n.Cg)([(0,u.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],x.prototype,"labelPosition",void 0),(0,n.Cg)([(0,u.MZ)({type:Number})],x.prototype,"maxScale",void 0),(0,n.Cg)([(0,w.K)("maxScale")],x.prototype,"writeMaxScale",null),(0,n.Cg)([(0,u.MZ)({type:Number})],x.prototype,"minScale",void 0),(0,n.Cg)([(0,w.K)("minScale")],x.prototype,"writeMinScale",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],x.prototype,"repeatLabel",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,cast:p.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],x.prototype,"repeatLabelDistance",null),(0,n.Cg)([(0,u.MZ)({types:m.em,json:{types:m.em,origins:{"portal-item":{types:m.em,read:{reader:(0,d.C)({types:m.em})},default:null},"web-scene":{types:m.Rv,read:{reader:(0,d.C)({types:m.Rv})},write:f.oO,default:null}},write:f.oO,default:null}})],x.prototype,"symbol",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"useCodedValues",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],x.prototype,"where",void 0),x=o=(0,n.Cg)([(0,u.$K)("esri.layers.support.LabelClass")],x)},73913(e,t,r){r.d(t,{A:()=>u});var i,o=r(32198),n=r(25482),l=r(91429),s=r(32730),a=r(36005),p=r(43937);let u=class extends n.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,s.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,s.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"name",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],u.prototype,"expression",void 0),(0,o.Cg)([(0,a.w)("expression",["expression","value"])],u.prototype,"readExpression",null),(0,o.Cg)([(0,p.K)("expression")],u.prototype,"writeExpression",null),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"title",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],u.prototype,"value",void 0),u=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.LabelExpressionInfo")],u)},37352(e,t,r){r.d(t,{A:()=>a});var i,o=r(32198),n=r(7762),l=r(25482),s=r(91429);let a=i=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,o.Cg)([(0,s.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>p});var i,o=r(32198),n=r(66552),l=r(25482),s=r(91429);const a=new n.J({asc:"ascending",desc:"descending"});let p=class extends l.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,o.Cg)([(0,s.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],p.prototype,"order",void 0),p=i=(0,o.Cg)([(0,s.$K)("esri.layers.support.OrderByInfo")],p)},45067(e,t,r){r.d(t,{A:()=>u});var i=r(32198),o=r(69540),n=r(66552),l=r(25482),s=r(91429);const a=new n.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),p=new n.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let u=class extends((0,o.OU)(l.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"cardinality",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:p.read,write:p.write}})],u.prototype,"role",void 0),u=(0,i.Cg)([(0,s.$K)("esri.layers.support.Relationship")],u)},41560(e,t,r){r.d(t,{Ch:()=>l,mW:()=>n});var i=r(34727),o=r(39516);function n(e,t){return{...t,filterMode:e.mode}}function l(e,t,r){let n=function(e){if("manual"===p(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(n&&((0,i.gg)(t,n[0])||(0,i.ZH)(r,n[1])))return"";let l=Array.from(s(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let o=u(e.at(0)?.minScale),n=d(e.at(-1)?.maxScale);if((0,i.ZH)(o,t)||(0,i.gg)(n,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],o=e[t+1];if((0,i.ZH)(u(o.minScale),d(r.maxScale)))return!0}return!1}(l,t,r)?"1=1":l.map(e=>e.where||"1=1").reduce((e,t)=>(0,o.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*s(e,t,r){if("manual"===p(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,o){return e=u(e),r=u(r),t=d(t),!(!(0,i.Sp)(r,e)&&(o??r)>e||(0,i.Hx)(t,r)||void 0!==o&&(0,i.Sp)(o,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||1/0}function d(e){return e||0}},39383(e,t,r){r.d(t,{w:()=>a,z:()=>d});var i=r(49186),o=r(53966),n=r(46499);const l=()=>o.A.getLogger("esri.layers.support.labelingInfo"),s=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new n.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(s,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const p=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],u={esriGeometryPoint:p,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:p,esriGeometryEnvelope:null};function d(e,t){let r=[];for(let o of e){let e=o.labelPlacement,n=u[t];if(!o.symbol)return l().warn("No ILabelClass symbol specified."),[];if(!n)return l().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(n.includes(e))r.push(o);else{let i=n[0];e&&l().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let s=o.clone();s.labelPlacement=i,r.push(s)}}return r}},73681(e,t,r){r.d(t,{n:()=>a});var i=r(49186),o=r(53966),n=r(46140),l=r(95466),s=r(55674);class a{static async from(e,t,r){let l=e.dictionary_version?n.A.parse(e.dictionary_version):null,u=new Set(e.itemsNames),d={};if(t)for(let e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(let t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);let y=new Set(e.authoringInfo.symbol);for(let e of Object.keys(r))y.delete(e);y.size&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:y});let c=await(0,s.xR)(e.expression,null,d);if(!c)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let g=!l||!l.greaterEqual(4,0);g&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:l});let h=new p(r,g);return new a(g,u,c,h)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new l.A(e);let t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new l.A(t)}}class p extends s.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){let t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);let t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},22671(e,t,r){r.d(t,{A:()=>v});var i,o=r(32198),n=r(52106),l=r(66552),s=r(25482),a=r(4718),p=r(91429),u=r(16930),d=r(60408),y=r(65864),c=r(50498),g=r(20437),h=r(36005),f=r(43937);const m=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:o}=this;if(o)for(let e of o)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,o]}=e,n=this.features,l=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=n.length;e<t;e++)l?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,o],scale:[n,l]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let p=this._getHydrationFunction(e,e=>e*n+i,e=>o-e*l,s,a);for(let{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=u.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){let n=e[t],l=r.fromJSON(n),s=n.geometry?.spatialReference;null!=l.geometry&&!s&&(l.geometry.spatialReference=i);let a=n.aggregateGeometries,p=l.aggregateGeometries;if(a&&null!=p)for(let e in p){let t=p[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}o.push(l)}return o}_quantizePoints(e,t,r){let i,o,n=[];for(let l=0,s=e.length;l<s;l++){let s=e[l];if(l>0){let e=t(s[0]),l=r(s[1]);(e!==i||l!==o)&&(n.push([e-i,l-o]),i=e,o=l)}else i=t(s[0]),o=r(s[1]),n.push([i,o])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,d.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,n=i.length;e<n;e++){let n=i[e],l=this._quantizePoints(n,t,r);l&&o.push(l)}return o.length>0?((0,d.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let n,l,s=(0,d.Bi)(e)?e.rings:e.paths;for(let e=0,i=s.length;e<i;e++){let i=s[e];for(let e=0,o=i.length;e<o;e++){let o=i[e];e>0?(n+=o[0],l+=o[1]):(n=o[0],l=o[1]),o[0]=t(n),o[1]=r(l)}}if(i&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{let n,l,s=e.points;for(let e=0,i=s.length;e<i;e++){let i=s[e];e>0?(n+=i[0],l+=i[1]):(n=i[0],l=i[1]),i[0]=t(n),i[1]=r(l)}if(i&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2])}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,p.MZ)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,o.Cg)([(0,h.w)("features")],v.prototype,"readFeatures",null),(0,o.Cg)([(0,p.MZ)({type:[g.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,o.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,o.Cg)([(0,f.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o.Cg)([(0,p.MZ)({types:c.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,h.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,p.MZ)({type:u.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o.Cg)([(0,f.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,o.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var i=r(32198),o=r(66552),n=r(53966),l=r(91429),s=r(93223);const a=(0,o.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",u="field";r.d(t,["K",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&u||r&&p||null,t&&r&&n.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===u||e===p)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,s.e)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,a])},93470(e,t,r){const i=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,o,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,n])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7561,8018],{8018(t,e,r){r.r(e),r.d(e,{executeForTopExtents:()=>l});var i=r(5443),o=r(2272),s=r(24645),n=r(57561);async function l(t,e,r){let l=(0,o.Dl)(t),u=await(0,s.$K)(l,n.default.from(e),{...r}),a=u.data.extent;return!a||isNaN(a.xmin)||isNaN(a.ymin)||isNaN(a.xmax)||isNaN(a.ymax)?{count:u.data.count,extent:null}:{count:u.data.count,extent:i.A.fromJSON(a)}}},24645(t,e,r){r.d(e,{$K:()=>c,KW:()=>y,Yb:()=>d,xs:()=>h});var i=r(56507),o=r(84952),s=r(60408),n=r(52039),l=r(21325),u=r(10536),a=(r(5076),r(58501));function p(t,e){let r=t.geometry,i=t.toJSON(),o=i;if(null!=r&&(o.geometry=JSON.stringify(r),o.geometryType=(0,s.$B)(r),o.inSR=(0,l.YX)(r.spatialReference)),i.topFilter?.groupByFields&&(o.topFilter.groupByFields=i.topFilter.groupByFields.join(",")),i.topFilter?.orderByFields&&(o.topFilter.orderByFields=i.topFilter.orderByFields.join(",")),i.topFilter&&(o.topFilter=JSON.stringify(o.topFilter)),i.objectIds&&(o.objectIds=i.objectIds.join(",")),i.orderByFields&&(o.orderByFields=i.orderByFields.join(",")),i.outFields&&!(e?.returnCountOnly||e?.returnExtentOnly||e?.returnIdsOnly)?o.outFields=i.outFields.includes("*")?"*":i.outFields.join(","):delete o.outFields,i.outSR?o.outSR=(0,l.YX)(i.outSR):r&&i.returnGeometry&&(o.outSR=o.inSR),i.returnGeometry&&delete i.returnGeometry,i.timeExtent){let{start:t,end:e}=i.timeExtent;(null!=t||null!=e)&&(o.time=t===e?t:`${t??"null"},${e??"null"}`),delete i.timeExtent}return o}async function d(t,e,r,i){let o=await m(t,e,"json",i);return(0,a.q)(e,r,o.data),o}async function y(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{objectIds:[]}}:m(t,e,"json",r,{returnIdsOnly:!0})}async function c(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{count:0,extent:null}}:m(t,e,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then(t=>{let e=t.data;if(e.hasOwnProperty("extent"))return t;if(e.features||e.hasOwnProperty("count"))throw Error("Layer does not support extent calculation.");return t})}function h(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):m(t,e,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}async function m(t,e,r,s={},l={}){let a="string"==typeof t?(0,o.An)(t):t,d=e.geometry?[e.geometry]:[];s.responseType="json";let[y]=await(0,n.el)(d,s);null!=y&&((e=e.clone()).geometry=y);let c=(0,u.z)({...a.query,f:r,...l,...p(e,l)});return(0,i.A)((0,o.fj)(a.path,"queryTopFeatures"),{...s,query:{...c,...s.query}})}},57561(t,e,r){r.d(e,{default:()=>S});var i,o=r(32198),s=r(66552),n=r(25482),l=r(4718),u=r(91429),a=r(78888),p=r(16930),d=r(65864),y=r(50498);let c=i=class extends n.o{constructor(t){super(t),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new i({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],c.prototype,"groupByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],c.prototype,"topCount",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],c.prototype,"orderByFields",void 0),c=i=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFilter")],c);const h=c;var m,g=r(79677),v=r(43937);const w=new s.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),F=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let S=class extends n.o{static{m=this}constructor(t){super(t),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10}clone(){return new m((0,l.o8)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"cacheHint",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:!!t})}}})],S.prototype,"distance",void 0),(0,o.Cg)([(0,u.MZ)({types:y.yR,json:{read:d.rS,write:!0}})],S.prototype,"geometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],S.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],S.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],S.prototype,"num",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],S.prototype,"objectIds",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],S.prototype,"orderByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],S.prototype,"outFields",void 0),(0,o.Cg)([(0,u.MZ)({type:p.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],S.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"resultType",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],S.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"returnM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"returnZ",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],S.prototype,"start",void 0),(0,o.Cg)([(0,v.K)("start"),(0,v.K)("num")],S.prototype,"writeStart",null),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:{source:"spatialRel",reader:w.read},write:{target:"spatialRel",writer:w.write}}})],S.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,u.MZ)({type:g.A,json:{write:!0}})],S.prototype,"timeExtent",void 0),(0,o.Cg)([(0,u.MZ)({type:h,json:{write:!0}})],S.prototype,"topFilter",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:F.read,write:{writer:F.write,overridePolicy(t){return{enabled:null!=t&&!!this.distance}}}}})],S.prototype,"units",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"where",void 0),S=m=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFeaturesQuery")],S),S.from=(0,a.dp)(S)}}]);