@arcgis/core 6.0.0-next.12 → 6.0.0-next.14

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/arcade/containerUtils.js +1 -1
  2. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  3. package/arcade/functions/feature.js +1 -1
  4. package/arcade/functions/featuresetstring.js +1 -1
  5. package/arcade/functions/geomasync.js +1 -1
  6. package/arcade/functions/portal.js +1 -1
  7. package/arcade/functions/string.js +1 -1
  8. package/arcgisGlobal.d.ts +1 -1
  9. package/assets/esri/core/workers/RemoteClient.js +1 -1
  10. package/assets/esri/core/workers/chunks/{5566f14afb63065e438f.js → 0050916e462e3c9e0627.js} +1 -1
  11. package/assets/esri/core/workers/chunks/02c5d027bdaee67869cf.js +1 -0
  12. package/assets/esri/core/workers/chunks/09bd5df07eab80ae7b15.js +1 -0
  13. package/assets/esri/core/workers/chunks/0da6abe3ceabfe78f7a0.js +1 -0
  14. package/assets/esri/core/workers/chunks/0f617980c7dd9ad0444f.js +1 -0
  15. package/assets/esri/core/workers/chunks/{10445313d0d57b34511b.js → 2145a512d269d64036b0.js} +1 -1
  16. package/assets/esri/core/workers/chunks/21ddb26526bcb2b122c3.js +1 -0
  17. package/assets/esri/core/workers/chunks/22e8c0aad2fe75943865.js +1 -0
  18. package/assets/esri/core/workers/chunks/25f19fc929f25ddd628c.js +1 -0
  19. package/assets/esri/core/workers/chunks/28b74bc77f7c13080074.js +1 -0
  20. package/assets/esri/core/workers/chunks/{2ef5237e4c876d6a4ee0.js → 2bd4ee083ca4ad221f8b.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{f4f9d08b2df856e3b694.js → 2eae542fe7f0f6576ac1.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{2aeb5cc32284dd3e4d22.js → 33e4ff228a8c81b99022.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{42323093827adffe56d3.js → 3418877328f4f0830300.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{8dc1c3042267618fd710.js → 34cbaf844730ac2d92c2.js} +2 -2
  25. package/assets/esri/core/workers/chunks/{96c50a0dda0f1503ef92.js → 3c301a689c7853c9fa67.js} +2 -2
  26. package/assets/esri/core/workers/chunks/{02253bdffbd580af22d8.js → 3ff6d1ed3c0f1285f3e7.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{67e4b5651fd7ff7d8cf0.js → 4ac1d3e49e242e373a92.js} +1 -1
  28. package/assets/esri/core/workers/chunks/4df6cb1bee5d0720a43e.js +1 -0
  29. package/assets/esri/core/workers/chunks/{8d0c2de92770a1567536.js → 4e6f40cbdb8c508e6df1.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{dc486a3595b6d57018bb.js → 5bfea0c55aca826de536.js} +1 -1
  31. package/assets/esri/core/workers/chunks/601e1d020b8115497944.js +1 -0
  32. package/assets/esri/core/workers/chunks/62d6e101e9bd9557a410.js +1 -0
  33. package/assets/esri/core/workers/chunks/{2686fe5b62dd0be699c0.js → 634523cc7757da9020e4.js} +1 -1
  34. package/assets/esri/core/workers/chunks/67ebc5a3d46b254b725c.js +1 -0
  35. package/assets/esri/core/workers/chunks/{6e62581d933e7298d1f6.js → 6f4e6022a52de0c54aab.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{a518ae5683367eeda74c.js → 70d3055f15d8b0cf4074.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{1b946714ca4a1a7359d4.js → 76ab353d80d786777161.js} +2 -2
  38. package/assets/esri/core/workers/chunks/{45800373650fbc8262e6.js → 7d11710e1586a3d75887.js} +1 -1
  39. package/assets/esri/core/workers/chunks/7f8e327acad48c9e75ea.js +1 -0
  40. package/assets/esri/core/workers/chunks/8052da8be251c3ff2176.js +1 -0
  41. package/assets/esri/core/workers/chunks/{f6e62d2d279a328cbed7.js → 90bdf86f553e2742d67c.js} +1 -1
  42. package/assets/esri/core/workers/chunks/91ebb2ccab1889eb7e81.js +1 -0
  43. package/assets/esri/core/workers/chunks/{3d9d7d3a40b51eb7ee3d.js → 953ba13299e7aa92c1a0.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{f46d9a19f79d4a4bd354.js → 9e1a3b6a08c96dcefdde.js} +1 -1
  45. package/assets/esri/core/workers/chunks/9f0a973a0dd28953ce25.js +1 -0
  46. package/assets/esri/core/workers/chunks/a2ad3e620c98e2b2eb06.js +1 -0
  47. package/assets/esri/core/workers/chunks/a34b3d2e11a777e1ff3f.js +1 -0
  48. package/assets/esri/core/workers/chunks/{140f2eeb11e39ab15734.js → aa36c3a9bbaa086e3757.js} +1 -1
  49. package/assets/esri/core/workers/chunks/aadfe34a99c9ec7a0e11.js +1 -0
  50. package/assets/esri/core/workers/chunks/b49df4ebd4be1181b0f9.js +2 -0
  51. package/assets/esri/core/workers/chunks/{68d8ae42ab71d01a70a5.js → b557824bc1fa163d72a3.js} +2 -2
  52. package/assets/esri/core/workers/chunks/b8337492e2b753aefac4.js +1 -0
  53. package/assets/esri/core/workers/chunks/bc915fb182d463d804e6.js +1 -0
  54. package/assets/esri/core/workers/chunks/{58032aab28a20a327f6c.js → d03b82e962c70a3fd377.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{992f102992c2bed7b34e.js → d5d0fe8e198ff5a902ee.js} +1 -1
  56. package/assets/esri/core/workers/chunks/e2190361247f35b02b32.js +1 -0
  57. package/assets/esri/core/workers/chunks/e2f42aec02bff33b25dd.js +1 -0
  58. package/assets/esri/core/workers/chunks/ead49b513e070951a964.js +1 -0
  59. package/assets/esri/core/workers/chunks/ebc1a2ef3aed8aa29424.js +1 -0
  60. package/assets/esri/core/workers/chunks/ed6e9d7f71bfd2691717.js +1 -0
  61. package/assets/esri/core/workers/chunks/ee6679ef9efa1504e7eb.js +1 -0
  62. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  63. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  64. package/chunks/BlendWeights.glsl.js +10 -10
  65. package/chunks/Blur.glsl.js +2 -2
  66. package/chunks/EdgeDetect.glsl.js +24 -19
  67. package/chunks/HUDMaterial.glsl.js +11 -1
  68. package/chunks/HighlightApply.glsl.js +4 -5
  69. package/chunks/HighlightBlur.glsl.js +5 -5
  70. package/chunks/HighlightDownsample.glsl.js +2 -2
  71. package/chunks/HighlightSharpApply.glsl.js +61 -0
  72. package/chunks/lyr3DMain.js +1 -1
  73. package/chunks/lyr3DWorker.js +2 -2
  74. package/chunks/portal.js +1 -1
  75. package/config.js +1 -1
  76. package/geometry/operators/simplifyOGCOperator.d.ts +10 -4
  77. package/geometry/support/TileClipper.js +1 -1
  78. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  79. package/geometry/support/curves/mathUtils.js +1 -1
  80. package/interfaces.d.ts +1 -1
  81. package/kernel.js +1 -1
  82. package/layers/CSVLayer.d.ts +1 -1
  83. package/layers/CatalogLayer.d.ts +1 -1
  84. package/layers/FeatureLayer.d.ts +1 -1
  85. package/layers/GeoJSONLayer.d.ts +1 -1
  86. package/layers/ParquetLayer.d.ts +1 -1
  87. package/layers/SceneLayer.d.ts +4 -5
  88. package/layers/SceneLayer.js +1 -1
  89. package/layers/SketchLayer.d.ts +4 -2
  90. package/layers/SubtypeGroupLayer.d.ts +1 -1
  91. package/layers/WFSLayer.d.ts +1 -1
  92. package/layers/buildingSublayers/BuildingComponentSublayer.d.ts +1 -1
  93. package/layers/catalog/CatalogFootprintLayer.d.ts +1 -1
  94. package/layers/geospatialPDF/ViewportMeasureFrame.js +1 -1
  95. package/layers/geospatialPDF/geospatialPDFParserUtils.js +1 -1
  96. package/layers/geospatialPDF/projectionToWKTUtils.js +2 -2
  97. package/layers/graphics/sources/GeoJSONSource.js +1 -1
  98. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  99. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  100. package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
  101. package/layers/graphics/sources/support/sourceUtils.js +1 -1
  102. package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +1 -1
  103. package/layers/mixins/ArcGISImageService.d.ts +1 -1
  104. package/layers/raster/datasets/TIFFRaster.js +1 -1
  105. package/layers/raster/datasets/pixelReader.js +1 -1
  106. package/layers/raster/functions/clipUtils.js +1 -1
  107. package/layers/support/FeatureFilter.d.ts +1 -1
  108. package/layers/support/SubtypeSublayer.d.ts +1 -1
  109. package/layers/support/{TimeSeriesCalculation.d.ts → TimeSeriesCalculationMethod.d.ts} +6 -6
  110. package/layers/support/{TimeSeriesCalculation.js → TimeSeriesCalculationMethod.js} +1 -1
  111. package/layers/support/TimeSeriesInfo.d.ts +5 -5
  112. package/layers/support/TimeSeriesInfo.js +1 -1
  113. package/layers/support/fieldUtils.js +1 -1
  114. package/layers/support/timeSeriesUtils.d.ts +6 -2
  115. package/layers/support/timeSeriesUtils.js +1 -1
  116. package/package.json +4 -4
  117. package/portal/schemas/definitions.js +1 -1
  118. package/smartMapping/renderers/support/timeSeriesUtils.js +1 -1
  119. package/smartMapping/statistics/support/timeSeriesUtils.js +1 -1
  120. package/symbols/cim/cimAnalyzer.js +1 -1
  121. package/symbols/cim/types.d.ts +1 -1
  122. package/views/2d/engine/webgl/GlyphWorker.js +1 -1
  123. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/projection.js +1 -1
  124. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  125. package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +1 -1
  126. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
  127. package/views/3d/analysis/Viewshed/ViewshedPlacementPointPlugin.js +1 -1
  128. package/views/3d/webgl-engine/core/shaderLibrary/HighlightCellGridScreenSpacePass.glsl.js +20 -6
  129. package/views/3d/webgl-engine/core/shaderLibrary/raster/Projection.glsl.js +2 -2
  130. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  131. package/views/3d/webgl-engine/effects/highlight/HighlightApply.glsl.js +1 -1
  132. package/views/3d/webgl-engine/effects/highlight/HighlightCellGridScreenSpacePassParameters.js +2 -0
  133. package/views/3d/webgl-engine/effects/highlight/HighlightDownsample.glsl.js +1 -1
  134. package/views/3d/webgl-engine/effects/highlight/HighlightPassParameters.js +1 -1
  135. package/views/3d/webgl-engine/effects/highlight/HighlightSharpApply.glsl.js +2 -0
  136. package/views/3d/webgl-engine/effects/highlight/HighlightSharpApplyTechnique.js +2 -0
  137. package/views/3d/webgl-engine/effects/smaa/BlendWeights.glsl.js +1 -1
  138. package/views/3d/webgl-engine/effects/smaa/Blur.glsl.js +1 -1
  139. package/views/3d/webgl-engine/effects/smaa/EdgeDetect.glsl.js +1 -1
  140. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  141. package/views/3d/webgl-engine/effects/smaa/SMAABlendWeightsTechnique.js +1 -1
  142. package/views/3d/webgl-engine/effects/smaa/SMAABlurTechnique.js +1 -1
  143. package/views/3d/webgl-engine/effects/smaa/SMAAEdgeDetectTechnique.js +1 -1
  144. package/views/3d/webgl-engine/effects/smaa/SMAAPassParameters.js +1 -1
  145. package/views/3d/webgl-engine/effects/smaa/SMAATechniqueConfiguration.js +2 -0
  146. package/views/3d/webgl-engine/lib/Compositor.js +1 -1
  147. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  148. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  149. package/views/draw/DrawTool.js +1 -1
  150. package/views/draw/plugins/MultipointPlugin.js +1 -1
  151. package/views/draw/support/PluginContext.js +1 -1
  152. package/views/draw/support/managers/TooltipManager.js +1 -1
  153. package/views/draw/support/types.d.ts +5 -2
  154. package/views/layers/FeatureLikeLayerView.d.ts +1 -1
  155. package/views/layers/PointCloudLayerView.d.ts +1 -1
  156. package/views/layers/SceneLayerView.d.ts +1 -1
  157. package/views/support/HighlightDefaults.js +1 -1
  158. package/webdoc/applicationProperties/SearchLayerField.d.ts +7 -1
  159. package/webdoc/applicationProperties/SearchLayerField.js +1 -1
  160. package/webdoc/applicationProperties/SearchTableField.d.ts +7 -1
  161. package/webdoc/applicationProperties/SearchTableField.js +1 -1
  162. package/webdoc/applicationProperties/searchMode.js +2 -0
  163. package/widgets/BatchAttributeForm/attachmentUtils.d.ts +10 -0
  164. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  165. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +2 -0
  166. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  167. package/widgets/BatchAttributeForm/inputs/types.d.ts +10 -1
  168. package/widgets/BatchAttributeForm.js +1 -1
  169. package/widgets/OrientedImageryViewer/services/DepthImageService.js +1 -1
  170. package/widgets/Search/LayerSearchSource.d.ts +23 -1
  171. package/widgets/Search/LayerSearchSource.js +1 -1
  172. package/widgets/Search/support/layerSearchUtils.js +1 -1
  173. package/widgets/Search/types.d.ts +7 -0
  174. package/widgets/support/forms/formUtils.js +1 -1
  175. package/widgets/support/forms/types.d.ts +1 -1
  176. package/assets/esri/core/workers/chunks/0dc66b03ff55d0ea5a09.js +0 -1
  177. package/assets/esri/core/workers/chunks/175c268e64ccd01f8c25.js +0 -1
  178. package/assets/esri/core/workers/chunks/216e6065b224309e1051.js +0 -1
  179. package/assets/esri/core/workers/chunks/2a1ec30f9ad305763f81.js +0 -2
  180. package/assets/esri/core/workers/chunks/37d6a264a3f1d8072aa0.js +0 -1
  181. package/assets/esri/core/workers/chunks/3df5500a85345577480a.js +0 -1
  182. package/assets/esri/core/workers/chunks/3f7d583b676b23b3fadb.js +0 -1
  183. package/assets/esri/core/workers/chunks/4503b20ca6a80fb63d72.js +0 -1
  184. package/assets/esri/core/workers/chunks/4a640548032355e57acd.js +0 -1
  185. package/assets/esri/core/workers/chunks/4debf2d9c3465250ef7a.js +0 -1
  186. package/assets/esri/core/workers/chunks/53be85d04cd2da4f391d.js +0 -1
  187. package/assets/esri/core/workers/chunks/54778dec1598818d93cb.js +0 -1
  188. package/assets/esri/core/workers/chunks/567a65f4203f6e81f4b4.js +0 -1
  189. package/assets/esri/core/workers/chunks/5982c6a8459c1237b298.js +0 -1
  190. package/assets/esri/core/workers/chunks/74b5c00f93cfc0d59029.js +0 -1
  191. package/assets/esri/core/workers/chunks/78472a57c2ba146fec65.js +0 -1
  192. package/assets/esri/core/workers/chunks/7c2c8f786a30267a5f05.js +0 -1
  193. package/assets/esri/core/workers/chunks/88e54449261ef94e390d.js +0 -1
  194. package/assets/esri/core/workers/chunks/917f53833b853898facc.js +0 -1
  195. package/assets/esri/core/workers/chunks/9e142551163acf752618.js +0 -1
  196. package/assets/esri/core/workers/chunks/aaba33611753c6aada68.js +0 -1
  197. package/assets/esri/core/workers/chunks/af75747b06d79446a855.js +0 -1
  198. package/assets/esri/core/workers/chunks/b5fdcc80d5973b6e26d1.js +0 -1
  199. package/assets/esri/core/workers/chunks/d6ad4390df576198e45b.js +0 -1
  200. package/assets/esri/core/workers/chunks/dba280c370df13196711.js +0 -1
  201. package/assets/esri/core/workers/chunks/f1f90adae13b04898008.js +0 -1
  202. package/assets/esri/core/workers/chunks/f47c7065da3b5001245f.js +0 -1
  203. /package/assets/esri/core/workers/chunks/{1b946714ca4a1a7359d4.js.LICENSE.txt → 34cbaf844730ac2d92c2.js.LICENSE.txt} +0 -0
  204. /package/assets/esri/core/workers/chunks/{96c50a0dda0f1503ef92.js.LICENSE.txt → 3c301a689c7853c9fa67.js.LICENSE.txt} +0 -0
  205. /package/assets/esri/core/workers/chunks/{8dc1c3042267618fd710.js.LICENSE.txt → 76ab353d80d786777161.js.LICENSE.txt} +0 -0
  206. /package/assets/esri/core/workers/chunks/{2a1ec30f9ad305763f81.js.LICENSE.txt → b49df4ebd4be1181b0f9.js.LICENSE.txt} +0 -0
  207. /package/assets/esri/core/workers/chunks/{68d8ae42ab71d01a70a5.js.LICENSE.txt → b557824bc1fa163d72a3.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,3864],{52106(e,t,r){r.d(t,{A:()=>M});var i,s,o=r(32198),n=r(37838),l=r(69540),a=r(51447),u=r(25482),p=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),x=r(33910);const S=Symbol("meshGeometryHandles");function C(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)(u.o)){static{i=w.Z}static{s=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)(p.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 s({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:C(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 s={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(s.action=i),"attributes"===e&&(s.attributeName=i),this.layer.graphicChanged(s)}_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,o.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,o.Cg)([(0,y.MZ)({value:null})],M.prototype,"attributes",null),(0,o.Cg)([(0,y.MZ)({value:null,types:f.yR,json:{read:g.rS}})],M.prototype,"geometry",null),(0,o.Cg)([(0,y.MZ)()],M.prototype,"distance",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,o.Cg)([(0,y.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,o.Cg)([(0,y.MZ)({type:n.A,value:null})],M.prototype,"popupTemplate",null),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,o.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,o.Cg)([(0,y.MZ)({value:null,types:x.Es})],M.prototype,"symbol",null),(0,o.Cg)([(0,y.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=s=(0,o.Cg)([(0,y.$K)("esri.Graphic")],M)},19334(e,t,r){r.d(t,{e:()=>n});var i=r(54639),s=r(14112);class o{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function n(e){if(null==e)return null;switch(e.type){case"point":if((0,s.e6)(e))return null;break;case"polygon":if((0,s.Wq)(e))return null;break;case"polyline":if((0,s.IY)(e))return null;break;case"multipoint":if((0,s.DG)(e))return null;break;case"extent":if((0,s.As)(e))return null;break;default:return null}let t=i.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new o(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>u,p:()=>p});var i=r(54639),s=r(14112),o=r(16930),n=r(60408),l=r(65864);class a{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){let t=(0,l.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function u(e,t){if("object"!=typeof e||!e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof o.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new o.A,r.read(e.spatialReference))),null==r)throw Error("Spatial reference required");return(0,n.fT)(e)?p("point",e,r):(0,n.Rg)(e)?p("polyline",e,r):(0,n.Bi)(e)?p("polygon",e,r):(0,n.U9)(e)?p("multipoint",e,r):(0,n.ZC)(e)?p("extent",e,r):null}function p(e,t,r){if(null==t)return null;let o=!1,n=!1;switch(e){case"point":if((0,s.e6)(t))return null;o=void 0!==t.z,n=void 0!==t.m;break;case"polygon":if((0,s.Wq)(t))return null;o=!0===t.hasZ,n=!0===t.hasM;break;case"polyline":if((0,s.IY)(t))return null;o=!0===t.hasZ,n=!0===t.hasM;break;case"multipoint":if((0,s.DG)(t))return null;o=!0===t.hasZ,n=!0===t.hasM;break;case"extent":if((0,s.As)(t))return null;o=null!=t.zmin&&null!=t.zmax,n=null!=t.mmin&&null!=t.mmax;break;default:throw Error("Unsupported geometry type: "+t.type)}return i.R.of(e,r,o,n,new a(t))}},14112(e,t,r){function i(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function s(e){if(0===(e.curveRings??e.rings).length)return!0;for(let t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function o(e){if(0===(e.curvePaths??e.paths).length)return!0;for(let t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function n(e){return 0===e.points.length}function l(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>l,DG:()=>n,IY:()=>o,Wq:()=>s,e6:()=>i})},46140(e,t,r){r.d(t,{A:()=>s});var i=r(49186);class s{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 s(this.major,this.minor,this._context)}static parse(e,t=""){let[r,o]=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(!o?.match||!n.test(o)){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 s(parseInt(r,10),parseInt(o,10),t)}}},6797(e,t,r){r.d(t,{Ui:()=>c});var i=r(69622),s=r(7762),o=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 s.A?Object.keys(e.items):l(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof s.A?e.items[t]:e[t]}function p(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),s=a(t);if(0===i.length&&0===s.length)return;if(!i.length||!s.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 o=s.filter(e=>!i.includes(e)),c=i.filter(e=>!s.includes(e)),y=i.filter(r=>s.includes(r)&&u(e,r)!==u(t,r)).concat(o,c).sort(),h=p(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 s,o=u(e,i),n=u(t,i);if((f||"function"!=typeof o&&"function"!=typeof n)&&o!==n&&(null!=o||null!=n)){if(r&&r[i]&&"function"==typeof r[i])s=r[i]?.(o,n);else if(o instanceof Date&&n instanceof Date){if(o.getTime()===n.getTime())continue;s={type:"complete",oldValue:o,newValue:n}}else s="object"==typeof o&&"object"==typeof n&&p(o)===p(n)?d(o,n):{type:"complete",oldValue:o,newValue:n};null!=s&&(null==g?g={type:"partial",diff:{[i]:s}}:g.diff[i]=s)}}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&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},13069(e,t,r){r.d(t,{AG:()=>l,lk:()=>s,vD:()=>n,yS:()=>o});const i="randomUUID"in crypto;function s(){if(i)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${s().toUpperCase()}}`}function n(){return`{${s()}}`}function l(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},83027(e,t,r){const i=r(29953).ho;r.d(t,["h",0,i])},55156(e,t,r){r.d(t,{I:()=>s});const i=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},15481(e,t,r){r.r(t),r.d(t,{default:()=>se});var i=r(32198),s=r(37838),o=r(25728),n=r(17676),l=r(84952),a=r(91429),u=r(5443),p=r(16930),d=r(50498),c=r(41910),y=r(55156),h=r(60950),g=r(89808),f=r(99959);const m=Symbol("isGeoJSONGraphicOrigin");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="geojson",this.layer=e}get id(){return this.layer.id}}var w=r(4146),x=r(49186),S=r(44208),C=r(92474),M=r(53966),A=r(83027),I=r(39829),P=r(64714),E=r(22671);let _=class extends C.x_{constructor(){super(...arguments),this.type="geojson",this.refresh=(0,n.sg)(async e=>{await this.load();let{extent:t,timeExtent:r}=await this._connection.invoke("refresh",e);return 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}applyEdits(e){return this.load().then(()=>this._applyEdits(e))}openPorts(){return this.load().then(()=>this._connection.openPorts())}queryFeatures(e,t={}){return this.load(t).then(()=>this._connection.invoke("queryFeatures",e?e.toJSON():null,t)).then(e=>E.A.fromJSON(e))}queryFeaturesJSON(e,t={}){return this.load(t).then(()=>this._connection.invoke("queryFeatures",e?e.toJSON():null,t))}queryFeatureCount(e,t={}){return this.load(t).then(()=>this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t))}queryObjectIds(e,t={}){return this.load(t).then(()=>this._connection.invoke("queryObjectIds",e?e.toJSON():null,t))}queryExtent(e,t={}){return this.load(t).then(()=>this._connection.invoke("queryExtent",e?e.toJSON():null,t)).then(e=>({count:e.count,extent:u.A.fromJSON(e.extent)}))}querySnapping(e,t={}){return this.load(t).then(()=>this._connection.invoke("querySnapping",e,t))}async queryAttributeBins(e,t={}){return await this.load(),this._connection.invoke("queryAttributeBins",e?.toJSON(),t)}_applyEdits(e){if(!this._connection)throw new x.A("geojson-layer-source:edit-failure","Memory source not loaded");let t=this.layer.objectIdField,r=[],i=[],s=[];if(e.addFeatures)for(let t of e.addFeatures)r.push(this._serializeFeature(t));if(e.deleteFeatures)for(let r of e.deleteFeatures)"objectId"in r&&null!=r.objectId?i.push(r.objectId):"attributes"in r&&null!=r.attributes[t]&&i.push(r.attributes[t]);if(e.updateFeatures)for(let t of e.updateFeatures)s.push(this._serializeFeature(t));return this._connection.invoke("applyEdits",{adds:r,updates:s,deletes:i}).then(({extent:e,timeExtent:t,featureEditResults:r})=>(this.sourceJSON.extent=e,t&&(this.sourceJSON.timeInfo.timeExtent=[t.start,t.end]),this._createEditsResult(r)))}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){let t=!0===e.success?null:e.error||{code:void 0,description:""};return{objectId:e.objectId,globalId:e.globalId,error:t?new x.A("geojson-layer-source:edit-failure",t.description,{code:t.code}):null}}_serializeFeature(e){let{attributes:t}=e,r=this._geometryForSerialization(e);return r?{geometry:r.toJSON(),attributes:t}:{attributes:t}}_geometryForSerialization(e){let{geometry:t}=e;return null==t?null:"mesh"===t.type||"extent"===t.type?I.A.fromExtent(t.extent):t}async _startWorker(e){this._connection=await(0,A.h)("GeoJSONSourceWorker",{strategy:(0,S.A)("feature-layers-workers")?"dedicated":"local",signal:e,registryTarget:this});let{fields:t,spatialReference:r,hasZ:i,geometryType:s,objectIdField:o,url:n,timeInfo:l,customParameters:a}=this.layer,u="defaults"===this.layer.originOf("spatialReference"),p={url:n,customParameters:a,fields:t&&t.map(e=>e.toJSON()),geometryType:d.gy.toJSON(s),hasZ:i,objectIdField:o,timeInfo:l?l.toJSON():null,spatialReference:u?null:r&&r.toJSON()},c=await this._connection.invoke("load",p,{signal:e});for(let e of c.warnings)M.A.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});c.featureErrors.length&&M.A.getLogger(this.layer).warn("#load()",`Encountered ${c.featureErrors.length} validation errors while loading features. (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{errors:c.featureErrors}),this.sourceJSON=c.layerDefinition,this.capabilities=(0,P.f)(this.sourceJSON.hasZ,!0,!this.sourceJSON.geometryType)}};(0,i.Cg)([(0,a.MZ)()],_.prototype,"capabilities",void 0),(0,i.Cg)([(0,a.MZ)()],_.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],_.prototype,"layer",void 0),(0,i.Cg)([(0,a.MZ)()],_.prototype,"sourceJSON",void 0),_=(0,i.Cg)([(0,a.$K)("esri.layers.graphics.sources.GeoJSONSource")],_);var F=r(63074),T=r(69208),O=r(6455),Z=r(87718),j=r(56658),L=r(34287),R=r(32756),N=r(8303),G=r(54310),$=r(25036),D=r(82935),J=r(63396),z=r(10873),q=r(15426),k=r(29005),U=r(20437),B=r(17036),H=r(30524),V=r(46499),Q=r(39383),K=r(41214),W=r(97552),Y=r(30291),X=r(79677),ee=r(10184),te=r(56400);const re=(0,B.p)();let ie=class extends((0,R.fY)((0,O.FJ)((0,T.d)((0,j.J)((0,Z.F)((0,F.dM)((0,D.e)((0,J.d)((0,$.j)((0,G.J)((0,L.q)((0,N.A)((0,o.M)(w.A)))))))))))))){constructor(e){super(e),this.timeInfo=null,this.attributeTableTemplate=null,this.copyright=null,this.dateFieldsTimeZone=null,this.definitionExpression=null,this.displayField=null,this.editingEnabled=!1,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.graphicOrigin=new b(this),this.hasZ=void 0,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="GeoJSON",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new _({layer:this}),this.spatialReference=p.A.WGS84,this.templates=null,this.title="GeoJSON",this.type="geojson"}destroy(){this.source?.destroy()}load(e){let t=this.loadFromPortal({supportedTypes:["GeoJson"],supportsData:!1},e).catch(n.QP).then(()=>this.source.load(e)).then(()=>{this.read(this.source.sourceJSON,{origin:"service",url:this.parsedUrl}),(0,H.yp)(this.renderer,this.fieldsIndex),(0,H.sv)(this.timeInfo,this.fieldsIndex)});return this.addResolvingPromise(t),Promise.resolve(this)}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}get capabilities(){return this.source?this.source.capabilities:null}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}get parsedUrl(){return(0,l.An)(this.url)}set renderer(e){(0,H.yp)(e,this.fieldsIndex),this._set("renderer",e)}set url(e){if(!e)return void this._set("url",e);let t=(0,l.An)(e);this._set("url",t.path),t.query&&(this.customParameters={...this.customParameters,...t.query})}async applyEdits(e,t){let{applyEdits:i}=await r.e(8628).then(()=>r(78628));await this.load();let s=await i(this,this.source,e,t);return this.read({extent:this.source.sourceJSON.extent,timeInfo:this.source.sourceJSON.timeInfo},{origin:"service",ignoreDefaults:!0}),s}createPopupTemplate(e){return(0,Y.tn)(this,e)}createQuery(){let e=new W.A,t=this.capabilities?.data;e.returnGeometry=!0,t&&t.supportsZ&&(e.returnZ=!0),e.outFields=["*"],e.where=this.definitionExpression||"1=1";let{timeOffset:r,timeExtent:i}=this;return e.timeExtent=null!=r&&null!=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)}queryFeatures(e,t){return this.load().then(()=>this.source.queryFeatures(W.A.from(e)||this.createQuery(),t)).then(e=>{if(e?.features)for(let t of e.features)t.layer=t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}queryObjectIds(e,t){return this.load().then(()=>this.source.queryObjectIds(W.A.from(e)||this.createQuery(),t))}queryFeatureCount(e,t){return this.load().then(()=>this.source.queryFeatureCount(W.A.from(e)||this.createQuery(),t))}queryExtent(e,t){return this.load().then(()=>this.source.queryExtent(W.A.from(e)||this.createQuery(),t))}async queryAttributeBins(e,t){let{source:i,capabilities:s}=await this.load();(0,q.ZJ)(e,s,"GeoJSONLayer");let o=await r.e(4575).then(()=>r(14575)),n=await i.queryAttributeBins(o.default.from(e),t);if(n.features)for(let e of n.features)e.layer=e.sourceLayer=this;return n}read(e,t){super.read(e,t),"service"===t?.origin&&["objectIdField","fields","timeInfo"].forEach(e=>this.revertToOrigin(e,"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,a.MZ)({type:X.A})],ie.prototype,"timeExtent",void 0),(0,i.Cg)([(0,a.MZ)({type:ee.A})],ie.prototype,"timeOffset",void 0),(0,i.Cg)([(0,a.MZ)((0,z.U$)({alwaysWriteNonItemOrigin:!0}))],ie.prototype,"timeInfo",void 0),(0,i.Cg)([(0,a.MZ)(z.zQ)],ie.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1,write:!1}})],ie.prototype,"capabilities",null),(0,i.Cg)([(0,a.MZ)({type:String})],ie.prototype,"copyright",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],ie.prototype,"createQueryVersion",null),(0,i.Cg)([(0,a.MZ)((0,te.P6)("dateFieldsTimeReference"))],ie.prototype,"dateFieldsTimeZone",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],ie.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ie.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,a.MZ)({type:String})],ie.prototype,"displayField",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean})],ie.prototype,"editingEnabled",void 0),(0,i.Cg)([(0,a.MZ)(z.Yj)],ie.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,a.MZ)({type:[U.A],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],ie.prototype,"fields",void 0),(0,i.Cg)([(0,a.MZ)(re.fieldsIndex)],ie.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,a.MZ)({type:u.A,json:{name:"extent"}})],ie.prototype,"fullExtent",void 0),(0,i.Cg)([(0,a.MZ)({type:["point","polygon","polyline","multipoint"],json:{read:{reader:d.gy.read}}})],ie.prototype,"geometryType",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0,clonable:!1})],ie.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean})],ie.prototype,"hasZ",void 0),(0,i.Cg)([(0,a.MZ)(z.id)],ie.prototype,"id",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,readOnly:!0})],ie.prototype,"isTable",null),(0,i.Cg)([(0,a.MZ)(z.kF)],ie.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,a.MZ)({type:[V.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:Q.w},write:!0}})],ie.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,a.MZ)(z.fV)],ie.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,a.MZ)({type:["show","hide"]})],ie.prototype,"listMode",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"layerDefinition.objectIdField",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"objectIdField"}}}})],ie.prototype,"objectIdField",void 0),(0,i.Cg)([(0,a.MZ)(z.ke)],ie.prototype,"opacity",void 0),(0,i.Cg)([(0,a.MZ)({type:["GeoJSON"]})],ie.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,a.MZ)(re.outFields)],ie.prototype,"outFields",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],ie.prototype,"parsedUrl",null),(0,i.Cg)([(0,a.MZ)(z.M6)],ie.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,a.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],ie.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,a.MZ)({types:K.Hg,json:{name:"layerDefinition.drawingInfo.renderer",write:!0,origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:K.XJ}}}})],ie.prototype,"renderer",null),(0,i.Cg)([(0,a.MZ)(z.PY)],ie.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],ie.prototype,"source",void 0),(0,i.Cg)([(0,a.MZ)({type:p.A})],ie.prototype,"spatialReference",void 0),(0,i.Cg)([(0,a.MZ)({type:[k.A]})],ie.prototype,"templates",void 0),(0,i.Cg)([(0,a.MZ)()],ie.prototype,"title",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1},readOnly:!0})],ie.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)(z.OZ)],ie.prototype,"url",null),ie=(0,i.Cg)([(0,a.$K)("esri.layers.GeoJSONLayer")],ie);const se=ie},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 s(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:()=>s})},64714(e,t,r){r.d(t,{F0:()=>l,Vx:()=>p,e2:()=>c,f:()=>g});var i=r(44208),s=r(4718),o=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 u=1;function p(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$${u++} {\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,s.o8)(e)}}]}const y={...o.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},h={...o.P,supportedStatistics:{...o.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:o.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r?h:o.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),s=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,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>l});var i=r(32198),s=r(93637),o=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 s=new n.A;return s.read(i,r),[s]}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 o=e.find(e=>!!e.field);o&&(0,s.sM)(r,[o.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,o.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},8303(e,t,r){var i=r(32198),s=r(92602),o=r(70333),n=r(56507),l=r(60999),a=r(49186),u=r(36563),p=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),x=r(36005),S=r(43937);const C={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)||p.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:s}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,u.rE)(i),"reloadFromPortal"),await s({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)||p.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(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{let{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}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,s,n=!o.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;s=await(o.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}if(!s)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?o.id?.findCredential(this.url):null;if(!t)return!0;let r=C.credential===t?C.user:await this._fetchEditingUser(e);return C.credential=t,C.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=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;let i=`${r.owningSystemUrl}/sharing/rest`,s=f.A.getDefault();if(s&&s.loaded&&(0,y.S8)(s.restUrl)===(0,y.S8)(i))return s.user;let a=`${i}/community/self`,u=null==e?null:e.signal,p=await(0,l.Ke)((0,n.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?v.A.fromJSON(p.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,x.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),s=r(91429),o=r(30524),n=r(96184),l=r(73133),a=r(79677),u=r(10184),p=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,s=l.j.fromJSON(r.timeOffsetUnits);return i&&s?new u.A({value:i,unit:s}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,o.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,s.MZ)({type:a.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,s.MZ)({type:u.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,s.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,s.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},63396(e,t,r){r.d(t,{d:()=>C});var i=r(32198),s=r(91429),o=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[o.e7](){return this.trackInfoProvider}}var u=r(37838),p=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,p.OU)(d.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,i.Cg)([(0,s.MZ)({type:[g.A],json:{write:!0}})],m.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,s.MZ)(h.kF)],m.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,s.MZ)({types:f.Hg,json:{write:!0}})],m.prototype,"renderer",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"visible",void 0),m=(0,i.Cg)([(0,s.$K)("esri.layers.support.TrackPartInfo")],m);var v=r(96576),b=r(59868),w=r(10184),x=r(43937);let S=class extends((0,p.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,s.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"enabled",void 0),(0,i.Cg)([(0,s.MZ)({type:[y.A],json:{write:!0}})],S.prototype,"fields",void 0),(0,i.Cg)([(0,x.K)("fields")],S.prototype,"writeFields",null),(0,i.Cg)([(0,s.MZ)({type:m,json:{write:!0}})],S.prototype,"latestObservations",void 0),(0,i.Cg)([(0,s.MZ)({type:w.A,json:{write:!0}})],S.prototype,"maxDisplayDuration",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],S.prototype,"maxDisplayObservationsPerTrack",void 0),(0,i.Cg)([(0,s.MZ)(h.M6)],S.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,s.MZ)({type:u.A,json:{name:"popupInfo",write:!0}})],S.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,s.MZ)({type:m,json:{write:!0}})],S.prototype,"previousObservations",void 0),(0,i.Cg)([(0,s.MZ)({type:m,json:{write:!0}})],S.prototype,"trackLines",void 0),(0,i.Cg)([(0,s.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],S.prototype,"timeField",void 0),S=(0,i.Cg)([(0,s.$K)("esri.layers.support.TrackInfo")],S);const C=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,i.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],r.prototype,"trackGraphicOrigin",void 0),(0,i.Cg)([(0,s.MZ)({type:S})],r.prototype,"trackInfo",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.TrackableLayer")],r),r}},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),s=r(69540),o=r(66552),n=r(25482),l=r(91429);const a=new o.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 u=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureTemplate")],u)},46499(e,t,r){r.d(t,{A:()=>M});var i,s,o=r(32198),n=(r(44208),r(66552)),l=r(25482),a=r(4718),u=r(90629),p=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 x(e,t,r){return{enabled:!(0,h.TU)(r?.layer)}}function S(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function C(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{s=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]),s=i[3],o=r(t[i[4]],i[5],i[6]);switch(s){case"AND":return e&&o;case"OR":return e||o}}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 s=e.toJSON(i);s.expression&&(t[r]=s)}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 s({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,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],M.prototype,"name",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:x}}}}})],M.prototype,"allowOverrun",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:x}}}}})],M.prototype,"deconflictionStrategy",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&C(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],M.prototype,"labelExpression",void 0),(0,o.Cg)([(0,v.w)("labelExpression")],M.prototype,"readLabelExpression",null),(0,o.Cg)([(0,b.K)("labelExpression")],M.prototype,"writeLabelExpression",null),(0,o.Cg)([(0,p.MZ)({type:c.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return S(e)||C(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],M.prototype,"labelExpressionInfo",void 0),(0,o.Cg)([(0,b.K)("labelExpressionInfo")],M.prototype,"writeLabelExpressionInfo",null),(0,o.Cg)([(0,p.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],M.prototype,"labelPlacement",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],M.prototype,"offsetDistance",void 0),(0,o.Cg)([(0,p.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,o.Cg)([(0,p.MZ)({type:Number})],M.prototype,"maxScale",void 0),(0,o.Cg)([(0,b.K)("maxScale")],M.prototype,"writeMaxScale",null),(0,o.Cg)([(0,p.MZ)({type:Number})],M.prototype,"minScale",void 0),(0,o.Cg)([(0,b.K)("minScale")],M.prototype,"writeMinScale",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:x}}}}})],M.prototype,"repeatLabel",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:x}}}}})],M.prototype,"repeatLabelDistance",null),(0,o.Cg)([(0,p.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,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"useCodedValues",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],M.prototype,"where",void 0),M=s=(0,o.Cg)([(0,p.$K)("esri.layers.support.LabelClass")],M)},73913(e,t,r){r.d(t,{A:()=>p});var i,s=r(32198),o=r(25482),n=r(91429),l=r(32730),a=r(36005),u=r(43937);let p=class extends o.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,s.Cg)([(0,n.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"name",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"expression",void 0),(0,s.Cg)([(0,a.w)("expression",["expression","value"])],p.prototype,"readExpression",null),(0,s.Cg)([(0,u.K)("expression")],p.prototype,"writeExpression",null),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],p.prototype,"value",void 0),p=i=(0,s.Cg)([(0,n.$K)("esri.layers.support.LabelExpressionInfo")],p)},91880(e,t,r){r.d(t,{A:()=>u});var i,s=r(32198),o=r(66552),n=r(25482),l=r(91429);const a=new o.J({asc:"ascending",desc:"descending"});let u=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,s.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,s.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,s.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],u.prototype,"order",void 0),u=i=(0,s.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],u)},41560(e,t,r){r.d(t,{Ch:()=>n,mW:()=>o});var i=r(34727),s=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function n(e,t,r){let o=function(e){if("manual"===u(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],p(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(o&&((0,i.gg)(t,o[0])||(0,i.ZH)(r,o[1])))return"";let n=Array.from(l(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let s=p(e.at(0)?.minScale),o=d(e.at(-1)?.maxScale);if((0,i.ZH)(s,t)||(0,i.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],s=e[t+1];if((0,i.ZH)(p(s.minScale),d(r.maxScale)))return!0}return!1}(n,t,r)?"1=1":n.map(e=>e.where||"1=1").reduce((e,t)=>(0,s.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,r){if("manual"===u(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,s){return e=p(e),r=p(r),t=d(t),!(!(0,i.Sp)(r,e)&&(s??r)>e||(0,i.Hx)(t,r)||void 0!==s&&(0,i.Sp)(s,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||1/0}function d(e){return e||0}},17036(e,t,r){r.d(t,{p:()=>a});var i=r(44208),s=r(53966),o=r(20437),n=r(95466),l=r(30524);function a(){return{fields:{type:[o.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(", ");s.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)||s.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)}}}}},32730(e,t,r){r.d(t,{BI:()=>d,D3:()=>u,XJ:()=>p,lc:()=>a,mX:()=>y,rU:()=>c,tH:()=>v,zA:()=>w});var i=r(799);const s=RegExp("__begin__","ig"),o=RegExp("__end__","ig"),n=RegExp("^__begin__","i"),l=RegExp("__end__$","i");function a(e){return e.replaceAll(RegExp("\\[","g"),"{").replaceAll(RegExp("\\]","g"),"}")}function u(e){return e.replaceAll(RegExp("\\{","g"),"[").replaceAll(RegExp("\\}","g"),"]")}function p(e){let t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=a(e.labelExpression),t.type="conventional"),t}function d(e){let t=p(e);if(!t)return null;switch(t.type){case"conventional":return y(t.expression);case"arcade":return t.expression}return null}function c(e){let t=p(e);if(!t)return null;switch(t.type){case"conventional":return function(e){return(e?.match(h))?.[1].trim()||null}(t.expression);case"arcade":return v(t.expression)}return null}function y(e){let t;return e?(t=(0,i.HC)(e,e=>'__begin__$feature["'+e+'"]__end__'),t=n.test(t)?t.replace(n,""):'"'+t,t=l.test(t)?t.replace(l,""):t+'"',t=t.replaceAll(s,'" + ').replaceAll(o,' + "')):t='""',t}const h=/^\s*\{([^}]+)\}\s*$/i,g=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,f=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,m=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function v(e){if(!e)return null;let t=g.exec(e)||f.exec(e);return t?t[1]||t[3]:(t=m.exec(e),t?t[2]:null)}const b=Symbol("LabelClassInstance");function w(e){return"object"==typeof e&&!!e&&b in e}r.d(t,["vK",0,b])},39383(e,t,r){r.d(t,{w:()=>a,z:()=>d});var i=r(49186),s=r(53966),o=r(46499);const n=()=>s.A.getLogger("esri.layers.support.labelingInfo"),l=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new o.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 u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],p={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function d(e,t){let r=[];for(let s of e){let e=s.labelPlacement,o=p[t];if(!s.symbol)return n().warn("No ILabelClass symbol specified."),[];if(!o)return n().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(o.includes(e))r.push(s);else{let i=o[0];e&&n().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let l=s.clone();l.labelPlacement=i,r.push(l)}}return r}},73681(e,t,r){r.d(t,{n:()=>a});var i=r(49186),s=r(53966),o=r(46140),n=r(95466),l=r(55674);class a{static async from(e,t,r){let n=e.dictionary_version?o.A.parse(e.dictionary_version):null,p=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&&s.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&&s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:n});let g=new u(r,h);return new a(h,p,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){s.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 u 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,s=r(32198),o=r(52106),n=r(66552),l=r(25482),a=r(4718),u=r(91429),p=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,o.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:s}=this;if(s)for(let e of s)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=p.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,s]}=e,o=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((s-e)/r));for(let e=0,t=o.length;e<t;e++)n?.(o[e].geometry)||(o.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,s],scale:[o,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 u=this._getHydrationFunction(e,e=>e*o+i,e=>s-e*n,l,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=p.A.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){let o=e[t],n=r.fromJSON(o),l=o.geometry?.spatialReference;null!=n.geometry&&!l&&(n.geometry.spatialReference=i);let a=o.aggregateGeometries,u=n.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}s.push(n)}return s}_quantizePoints(e,t,r){let i,s,o=[];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!==s)&&(o.push([e-i,n-s]),i=e,s=n)}else i=t(l[0]),s=r(l[1]),o.push([i,s])}return o.length>0?o: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,s=[];for(let e=0,o=i.length;e<o;e++){let o=i[e],n=this._quantizePoints(o,t,r);n&&s.push(n)}return s.length>0?((0,d.Bi)(e)?e.rings=s:e.paths=s,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,s){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 o,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,s=i.length;e<s;e++){let s=i[e];e>0?(o+=s[0],n+=s[1]):(o=s[0],n=s[1]),s[0]=t(o),s[1]=r(n)}}if(i&&s)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]=s(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(s)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]=s(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)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{let o,n,l=e.points;for(let e=0,i=l.length;e<i;e++){let i=l[e];e>0?(o+=i[0],n+=i[1]):(o=i[0],n=i[1]),i[0]=t(o),i[1]=r(n)}if(i&&s)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=i(t[2]),t[3]=s(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(s)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=s(t[2])}}:null}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,s.Cg)([(0,u.MZ)({type:[o.A],json:{write:!0}})],v.prototype,"features",void 0),(0,s.Cg)([(0,g.w)("features")],v.prototype,"readFeatures",null),(0,s.Cg)([(0,u.MZ)({type:[h.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,s.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,s.Cg)([(0,f.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,s.Cg)([(0,u.MZ)({types:y.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,s.Cg)([(0,g.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,s.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,s.Cg)([(0,f.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,s.Cg)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,s.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var i=r(32198),s=r(66552),o=r(53966),n=r(91429),l=r(93223);const a=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",p="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&&p||r&&u||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===p||e===u)&&(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],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,s,"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,o])},26121(e,t,r){r.d(t,{I6:()=>p,ci:()=>u,dL:()=>a,wN:()=>d});var i=r(49186),s=r(84952),o=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 u(e,t,r){let s=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new i.A(e,t,r));if(e.blockedRelativeUrls&&(s=s.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&&(s=s.filter(({name:e})=>!(l.MG.has(e)||t.includes(e)))),i&&(s=s.filter(e=>"web-document-write:property-required"!==e.name))}if(s.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:s})}function p(e){return(0,o.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,s.ut)(i.restUrl,r.restUrl)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5228],{85334(t,i,s){s.d(i,{$:()=>R,IB:()=>_,Iy:()=>M,KV:()=>S,N2:()=>E,RH:()=>g,ZD:()=>T,sn:()=>I});var e=s(68197),n=s(4576),h=s(4718),r=s(34727);function _(t){return"r"in t&&"g"in t&&"b"in t}function l(t){return"h"in t&&"s"in t&&"v"in t}function a(t){return"l"in t&&"a"in t&&"b"in t}function u(t){return"l"in t&&"c"in t&&"h"in t}s(78955),s(91829);const o=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],x=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function y(t,i){let s,e,n=[];if(t[0].length!==i.length)throw Error("dimensions do not match");let h=t.length,r=t[0].length,_=0;for(s=0;s<h;s++){for(_=0,e=0;e<r;e++)_+=t[s][e]*i[e];n.push(_)}return n}function c(t){let i=[t.r/255,t.g/255,t.b/255].map(t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4),s=y(o,i);return{x:100*s[0],y:100*s[1],z:100*s[2]}}function f(t){let i=y(x,[t.x/100,t.y/100,t.z/100]).map(t=>{let i=t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055;return Math.min(1,Math.max(i,0))});return{r:Math.round(255*i[0]),g:Math.round(255*i[1]),b:Math.round(255*i[2])}}function m(t){let i=[t.x/95.047,t.y/100,t.z/108.883].map(t=>t>(6/29)**3?t**(1/3):1/3*(29/6)**2*t+4/29);return{l:116*i[1]-16,a:500*(i[0]-i[1]),b:200*(i[1]-i[2])}}function p(t){let i=t.l,s=[(i+16)/116+t.a/500,(i+16)/116,(i+16)/116-t.b/200].map(t=>t>6/29?t**3:3*(6/29)**2*(t-4/29));return{x:95.047*s[0],y:100*s[1],z:108.883*s[2]}}function R(t){return _(t)?t:u(t)?function(t){return f(p(function(t){let i=t.l,s=t.c,e=t.h;return{l:i,a:s*Math.cos(e),b:s*Math.sin(e)}}(t)))}(t):a(t)?function(t){return f(p(t))}(t):function(t){return"x"in t&&"y"in t&&"z"in t}(t)?f(t):l(t)?function(t){let i,s=(t.h+360)%360/60,e=t.s/100,n=t.v/100*255,h=n*e,r=h*(1-Math.abs(s%2-1));switch(Math.floor(s)){case 0:i={r:h,g:r,b:0};break;case 1:i={r,g:h,b:0};break;case 2:i={r:0,g:h,b:r};break;case 3:i={r:0,g:r,b:h};break;case 4:i={r,g:0,b:h};break;case 5:case 6:i={r:h,g:0,b:r};break;default:i={r:0,g:0,b:0}}return i.r=Math.round(i.r+n-h),i.g=Math.round(i.g+n-h),i.b=Math.round(i.b+n-h),i}(t):t}function E(t){return l(t)?t:function(t){let{r:i,g:s,b:e}=t,n=Math.max(i,s,e),h=n-Math.min(i,s,e),r=n,_=0===h?0:n===i?(s-e)/h%6:n===s?(e-i)/h+2:(i-s)/h+4,l=0===h?0:h/r;return _<0&&(_+=6),_*=60,l*=100,r*=100/255,{h:_,s:l,v:r}}(R(t))}function T(t){return a(t)?t:function(t){return m(c(t))}(R(t))}function g(t){return u(t)?t:function(t){return function(t){let i=t.l,s=t.a,e=t.b,n=Math.sqrt(s*s+e*e),h=Math.atan2(e,s);return h=h>0?h:h+2*Math.PI,{l:i,c:n,h}}(m(c(t)))}(R(t))}function S(t){return t[0]??=0,t[1]??=0,t[2]??=0,t}function I(t){return t.length=4,S(t),t[3]??=1,(0,r.qE)(t[3],0,1),t}function M(t,i,s={}){if(0===t.length||i<=0)return[];if(1===(t=t.map(t=>"string"==typeof t?new e.A(t):t)).length||1===i){let s=[],e=t[0];for(let t=0;t<i;t++)s.push(e.clone());return s}if(s.shuffle&&(t=(0,n.k4)((0,h.o8)(t),s.seed)),t.length>=i){let s=[],e=(t.length-1)/(i-1);for(let n=0;n<i;n++){let i=Math.round(n*e);s.push(t[i].clone())}return s}return function(t,i,s={}){let e=[],h=t.length-1,r=Math.ceil((i-t.length)/h);t:for(let n=0;n<h;n++){let h=t[n],_=t[n+1];for(let n=1;n<=r;n++){let l=n/(r+1);if(e.push(d(h,_,l,s)),e.length+t.length===i)break t}}return[...t.map(t=>t.clone()),...(0,n.k4)(e,s.seed??1)]}(t,i,s)}const N=(t,i)=>{let s=Math.floor(10*i())-5;return Math.min(255,Math.max(0,t+s))};function d(t,i,s,h={}){let r=t.r,_=t.g,l=t.b,a=i.r,u=i.g,o=i.b,x=Math.round(r+(a-r)*s),y=Math.round(_+(u-_)*s),c=Math.round(l+(o-l)*s);if(!h.offset)return new e.A([x,y,c]);let f=(0,n.Mo)(h.seed);return new e.A([N(x,f),N(y,f),N(c,f)])}},6774(t,i,s){s.d(i,{O3:()=>h,Ox:()=>r,bR:()=>e});class e{constructor(t,i){this.x=t,this.y=i}static fromArray(t){return new e(t[0],t[1])}clone(){return new e(this.x,this.y)}equals(t,i){return t===this.x&&i===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,i){return this.x=t,this.y=i,this}normalize(){let t=this.x,i=this.y,s=Math.sqrt(t*t+i*i);return this.x/=s,this.y/=s,this}rightPerpendicular(){let t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){let t=this.x;return this.x=-this.y,this.y=t,this}move(t,i){return this.x+=t,this.y+=i,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,i){return this.x=t.x+i.x,this.y=t.y+i.y,this}assignSub(t,i){return this.x=t.x-i.x,this.y=t.y-i.y,this}rotate(t,i){let s=this.x,e=this.y;return this.x=s*t-e*i,this.y=s*i+e*t,this}rotateReverse(t,i){let s=this.x,e=this.y;return this.x=s*t+e*i,this.y=-s*i+e*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){let t=this.x,i=this.y;return Math.sqrt(t*t+i*i)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,i){let s=i.x-t.x,e=i.y-t.y;return Math.sqrt(s*s+e*e)}static add(t,i){return new e(t.x+i.x,t.y+i.y)}static sub(t,i){return new e(t.x-i.x,t.y-i.y)}}class n{constructor(t,i,s){this.ratio=t,this.x=i,this.y=s}}class h{constructor(t,i,s,e=8,n=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=e,this._pixelMargin=n,this._tileSize=512*e,this._dz=t,this._yPos=i,this._xPos=s}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let i=this._pixelRatio*this._pixelMargin;i/=this._finalRatio;let s=t>>this._dz;i>s&&(i=s),this._margin=i,this._xmin=s*this._xPos-i,this._ymin=s*this._yPos-i,this._xmax=this._xmin+s+2*i,this._ymax=this._ymin+s+2*i}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,i){this._pushLine(),this._prevIsIn=this._isIn(t,i),this._moveTo(t,i,this._prevIsIn),this._prevPt=new e(t,i),this._firstPt=new e(t,i),this._dist=0}lineTo(t,i){let s,h,r,_,l,a,u,o,x=this._isIn(t,i),y=new e(t,i),c=e.distance(this._prevPt,y);if(x)this._prevIsIn?this._lineTo(t,i,!0):(s=this._prevPt,h=y,r=this._intersect(h,s),this._start=this._dist+c*(1-this._r),this._lineTo(r.x,r.y,!0),this._lineTo(h.x,h.y,!0));else if(this._prevIsIn)h=this._prevPt,s=y,r=this._intersect(h,s),this._lineTo(r.x,r.y,!0),this._lineTo(s.x,s.y,!1);else{let t=this._prevPt,i=y;if(t.x<=this._xmin&&i.x<=this._xmin||t.x>=this._xmax&&i.x>=this._xmax||t.y<=this._ymin&&i.y<=this._ymin||t.y>=this._ymax&&i.y>=this._ymax)this._lineTo(i.x,i.y,!1);else{let s=[];if((t.x<this._xmin&&i.x>this._xmin||t.x>this._xmin&&i.x<this._xmin)&&(_=(this._xmin-t.x)/(i.x-t.x),o=t.y+_*(i.y-t.y),o<this._ymin?a=!1:o>this._ymax?a=!0:s.push(new n(_,this._xmin,o))),(t.x<this._xmax&&i.x>this._xmax||t.x>this._xmax&&i.x<this._xmax)&&(_=(this._xmax-t.x)/(i.x-t.x),o=t.y+_*(i.y-t.y),o<this._ymin?a=!1:o>this._ymax?a=!0:s.push(new n(_,this._xmax,o))),(t.y<this._ymin&&i.y>this._ymin||t.y>this._ymin&&i.y<this._ymin)&&(_=(this._ymin-t.y)/(i.y-t.y),u=t.x+_*(i.x-t.x),u<=this._xmin?l=!1:u>=this._xmax?l=!0:s.push(new n(_,u,this._ymin))),(t.y<this._ymax&&i.y>this._ymax||t.y>this._ymax&&i.y<this._ymax)&&(_=(this._ymax-t.y)/(i.y-t.y),u=t.x+_*(i.x-t.x),u<=this._xmin?l=!1:u>=this._xmax?l=!0:s.push(new n(_,u,this._ymax))),0===s.length)l?a?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):a?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(s.length>1&&s[0].ratio>s[1].ratio)this._start=this._dist+c*s[1].ratio,this._lineTo(s[1].x,s[1].y,!0),this._lineTo(s[0].x,s[0].y,!0);else{this._start=this._dist+c*s[0].ratio;for(let t=0;t<s.length;t++)this._lineTo(s[t].x,s[t].y,!0)}this._lineTo(i.x,i.y,!1)}}this._dist+=c,this._prevIsIn=x,this._prevPt=y}close(){if(this._line.length>2){let t=this._firstPt,i=this._prevPt;(t.x!==i.x||t.y!==i.y)&&this.lineTo(t.x,t.y);let s=this._line,e=s.length;for(;e>=4&&(s[0].x===s[1].x&&s[0].x===s[e-2].x||s[0].y===s[1].y&&s[0].y===s[e-2].y);)s.pop(),s[0].x=s[e-2].x,s[0].y=s[e-2].y,--e}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&_.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw Error("Only valid for lines");this._pushLine();let t=this._lines,i=t.length;if(0===i)return null;let s=[];for(let e=0;e<i;e++)s.push({line:t[e],start:this._starts[e]||0});return s}_isIn(t,i){return t>=this._xmin&&t<=this._xmax&&i>=this._ymin&&i<=this._ymax}_intersect(t,i){let s,n,h;if(i.x>=this._xmin&&i.x<=this._xmax)n=i.y<=this._ymin?this._ymin:this._ymax,h=(n-t.y)/(i.y-t.y),s=t.x+h*(i.x-t.x);else if(i.y>=this._ymin&&i.y<=this._ymax)s=i.x<=this._xmin?this._xmin:this._xmax,h=(s-t.x)/(i.x-t.x),n=t.y+h*(i.y-t.y);else{n=i.y<=this._ymin?this._ymin:this._ymax,s=i.x<=this._xmin?this._xmin:this._xmax;let e=(s-t.x)/(i.x-t.x),r=(n-t.y)/(i.y-t.y);e<r?(h=e,n=t.y+e*(i.y-t.y)):(h=r,s=t.x+r*(i.x-t.x))}return this._r=h,new e(s,n)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,i,s){3===this._type?(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),i<this._ymin&&(i=this._ymin),i>this._ymax&&(i=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line.push(new e(t,i)),this._isH=!1,this._isV=!1):s&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line.push(new e(t,i)))}_lineTo(t,i,s){let n,h;if(3!==this._type)if(s){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(n=this._line[this._line.length-1],n.equals(t,i)))return;this._line.push(new e(t,i))}else this._line&&this._line.length>0&&this._pushLine();else if(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),i<this._ymin&&(i=this._ymin),i>this._ymax&&(i=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){n=this._line[this._line.length-1];let s=n.x===t,r=n.y===i;if(s&&r)return;this._isH&&s||this._isV&&r?(n.x=t,n.y=i,h=this._line[this._line.length-2],h.x===t&&h.y===i?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(h=this._line[this._line.length-2],this._isH=h.x===t,this._isV=h.y===i)):(this._isH=h.x===t,this._isV=h.y===i)):(this._line.push(new e(t,i)),this._isH=s,this._isV=r)}else this._line.push(new e(t,i))}}class r{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,i){this._line&&this._lines.push(this._line),this._line=[];let s=this._ratio;this._line.push(new e(t*s,i*s))}lineTo(t,i){let s=this._ratio;this._line.push(new e(t*s,i*s))}close(){let t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class _{static simplify(t,i,s){if(!s)return;let e=-i,n=t+i,h=-i,r=t+i,l=[],a=[],u=s.length;for(let t=0;t<u;++t){let i=s[t];if(!i||i.length<2)continue;let _,u=i[0],o=i.length;for(let s=1;s<o;++s)_=i[s],u.x===_.x&&(u.x<=e&&(u.y>_.y?(l.push(t),l.push(s),l.push(0),l.push(-1)):(a.push(t),a.push(s),a.push(0),a.push(-1))),u.x>=n&&(u.y<_.y?(l.push(t),l.push(s),l.push(1),l.push(-1)):(a.push(t),a.push(s),a.push(1),a.push(-1)))),u.y===_.y&&(u.y<=h&&(u.x<_.x?(l.push(t),l.push(s),l.push(2),l.push(-1)):(a.push(t),a.push(s),a.push(2),a.push(-1))),u.y>=r&&(u.x>_.x?(l.push(t),l.push(s),l.push(3),l.push(-1)):(a.push(t),a.push(s),a.push(3),a.push(-1)))),u=_}if(0===l.length||0===a.length)return;_.fillParent(s,a,l),_.fillParent(s,l,a);let o=[];_.calcDeltas(o,a,l),_.calcDeltas(o,l,a),_.addDeltas(o,s)}static fillParent(t,i,s){let e=s.length,n=i.length;for(let h=0;h<n;h+=4){let n=i[h],r=i[h+1],_=i[h+2],a=t[n][r-1],u=t[n][r],o=8092,x=-1;for(let i=0;i<e;i+=4){if(s[i+2]!==_)continue;let e=s[i],n=s[i+1],h=t[e][n-1],r=t[e][n];switch(_){case 0:case 1:if(l(a.y,h.y,r.y)&&l(u.y,h.y,r.y)){let t=Math.abs(r.y-h.y);t<o&&(o=t,x=i)}break;case 2:case 3:if(l(a.x,h.x,r.x)&&l(u.x,h.x,r.x)){let t=Math.abs(r.x-h.x);t<o&&(o=t,x=i)}}}i[h+3]=x}}static calcDeltas(t,i,s){let e=i.length;for(let n=0;n<e;n+=4){let e=_.calcDelta(n,i,s,[]);t.push(i[n]),t.push(i[n+1]),t.push(i[n+2]),t.push(e)}}static calcDelta(t,i,s,e){let n=i[t+3];if(-1===n)return 0;let h=e.length;return h>1&&e[h-2]===n?0:(e.push(n),_.calcDelta(n,s,i,e)+1)}static addDeltas(t,i){let s=t.length,e=0;for(let i=0;i<s;i+=4){let s=t[i+3];s>e&&(e=s)}for(let n=0;n<s;n+=4){let s=i[t[n]],h=t[n+1],r=e-t[n+3];switch(t[n+2]){case 0:s[h-1].x-=r,s[h].x-=r,1===h&&(s[s.length-1].x-=r),h===s.length-1&&(s[0].x-=r);break;case 1:s[h-1].x+=r,s[h].x+=r,1===h&&(s[s.length-1].x+=r),h===s.length-1&&(s[0].x+=r);break;case 2:s[h-1].y-=r,s[h].y-=r,1===h&&(s[s.length-1].y-=r),h===s.length-1&&(s[0].y-=r);break;case 3:s[h-1].y+=r,s[h].y+=r,1===h&&(s[s.length-1].y+=r),h===s.length-1&&(s[0].y+=r)}}}}const l=(t,i,s)=>t>=i&&t<=s||t>=s&&t<=i},13195(t,i,s){s.d(i,{GW:()=>c,IU:()=>f,Wh:()=>u,cP:()=>m,p6:()=>y,wV:()=>x,yM:()=>p,z0:()=>o});var e=s(6774);const n=Math.PI,h=2*n,r=128/n,_=256/360,l=n/180,a=1/Math.LN2;function u(t,i){return(t%=i)>=0?t:t+i}function o(t){return u(t*r,256)}function x(t){return u(t*_,256)}function y(t){return Math.log(t)*a}function c(t,i,s){return t*(1-s)+i*s}function f(t){return 8+Math.max(16*(t-14),0)}function m(t,i){if(0===i||Number.isNaN(i))return t;let s=[],n=new e.bR(0,0),h=new e.bR(0,0),r=new e.bR(0,0);for(let _=0;_<t.length;_++){let l=t[_],a=[];for(let t=0;t<l.length;t++){let s=l[t-1],_=l[t],u=l[t+1];0===t?n.setCoords(0,0):n.assignSub(_,s).normalize().rightPerpendicular(),t===l.length-1?h.setCoords(0,0):h.assignSub(u,_).normalize().rightPerpendicular(),r.assignAdd(n,h).normalize();let o=r.x*h.x+r.y*h.y;0!==o&&r.scale(1/o),a.push(e.bR.add(_,r.scale(i)))}s.push(a)}return s}function p(t,i,s,n){let h=new e.bR(t[0],t[1]);if(h.scale(n),"viewport"===i){let t=-s*(Math.PI/180),i=Math.cos(t),e=Math.sin(t);h.rotate(i,e)}return h}s.d(i,["Jo",0,n,"MG",0,1/0,"aA",0,_,"os",0,l,"pJ",0,h])},89518(t,i,s){s.d(i,{Kl:()=>o,M9:()=>_,Ss:()=>l,fw:()=>u,lj:()=>h,ws:()=>a});const e=new Float32Array(1),n=new Uint32Array(e.buffer);function h(t){return function(t,i,s){return Math.round(Math.max(Math.min(t,s),i))}(t,-32768,32767)}function r(t){return e[0]=t,n[0]}function _(t,i){return 65535&t|i<<16}function l(t,i,s,e){return 255&t|(255&i)<<8|(255&s)<<16|e<<24}function a(t,i){return 255&t|(255&i)<<8}function u(t){let i=r(t),s=i>>>31,e=i>>>23&255,n=8388607&i;return e-=127,e>15?s<<15|31744:e<-25?0:(e<-14&&(n+=8388608,n/=2**(-14-e),e=-15),e+=15,n/=8192,n=function(t){let i=Math.floor(t),s=t-i;return i<1023&&(s>.5||.5===s&&i%2==1)?i+1:i}(n),s<<15|e<<10|n)}function o(t){let i=t>>>15,s=t>>10&31,e=1023&t;return i=i?-1:1,s-=15,e/=1024,s>-15?e+=1:s=-14,i*2**s*e}},68572(t,i,s){s.d(i,{H:()=>r,q:()=>_}),s(44208);var e=s(23304),n=s(63907);function h(t){switch(t){case n.pe.BYTE:case n.pe.UNSIGNED_BYTE:return 1;case n.pe.SHORT:case n.pe.UNSIGNED_SHORT:case n.pe.HALF_FLOAT:return 2;case n.pe.FLOAT:case n.pe.INT:case n.pe.UNSIGNED_INT:return 4}}function r(t){let i=[],s=[],e=[];for(let n of t){let t=h(n.type)*n.count;switch(t%2||t%4||4){case 4:i.push(n);continue;case 2:s.push(n);continue;case 1:e.push(n);continue;default:throw Error("Found unexpected dataType byte count")}}return i.push(...s),i.push(...e),i}class _{static fromVertexSpec(t,i){let s,e,n,l=t.attributes,a=t.optionalAttributes,u=[];for(let t in l){if(l[t].otherSource)continue;let i=l[t];"position"===i.pack?s={...i,name:t,offset:0}:"id"===i.pack?e={...i,name:t,offset:4}:"bitset"===t?n={...i,name:t,offset:7}:u.push({...i,name:t})}for(let t in a)if(!0===i[t]){let i=a[t];u.push({...i,name:t})}let o=r(u),x=[],y=8,c=1;for(let t of o)x.push({...t,offset:y}),y+=h(t.type)*t.count,t.packAlternating&&(c=Math.max(t.packAlternating.count,c));let f=Uint32Array.BYTES_PER_ELEMENT,m=y%f;return new _(s,e,n,x,y+(m?f-m:0),c)}constructor(t,i,s,e,n,h){this.position=t,this.id=i,this.bitset=s,this.standardAttributes=e,this.stride=n,this.packVertexCount=h,e.push(s),this._attributes=[t,i,s,...e]}get attributeLayout(){if(!this._attributeLayout){let t=(0,e.hU)(this._attributes),i=this._attributes.map(t=>({name:t.name,count:t.count,offset:t.offset,type:t.type,packPrecisionFactor:t.packPrecisionFactor,normalized:t.normalized??!1}));this._attributeLayout={attributes:i,hash:t,stride:this.stride}}return this._attributeLayout}}},23304(t,i,s){s.d(i,{Ph:()=>h,Z0:()=>r,hU:()=>n});var e=s(799);function n(t){let i=t.map(({name:t,count:i,type:s})=>`${t}.${i}.${s}`).join(",");return(0,e.Wm)(i)}function h(t,i,s,e,n,r,_){if(t.primitiveName===i){let i=e?.readWithDefault(n,r,t[s]&&_);"text"===t.type&&(i=i.toString()),t[s]=i}else if("type"in t&&null!=t.type){if(t.effects)for(let l of t.effects)h(l,i,s,e,n,r,_);switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(t.symbolLayers)for(let l of t.symbolLayers)h(l,i,s,e,n,r,_);break;case"CIMTextSymbol":t.symbol&&h(t.symbol,i,s,e,n,r,_);break;case"CIMHatchFill":t.lineSymbol&&h(t.lineSymbol,i,s,e,n,r,_);break;case"CIMPictureMarker":case"CIMCharacterMarker":case"CIMVectorMarker":if(t.markerPlacement&&h(t.markerPlacement,i,s,e,n,r,_),"CIMVectorMarker"===t.type&&t.markerGraphics)for(let l of t.markerGraphics)h(l,i,s,e,n,r,_),h(l.symbol,i,s,e,n,r,_)}}}function r(t){let i=Math.max(1.25*t.width,20);return null!=t.effects&&t.effects.length>0?400:i}},63907(t,i,s){const e={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},n={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},h=Object.values(n),r={FLOAT:e.FLOAT,UNSIGNED_BYTE:e.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:e.BYTE,UNSIGNED_SHORT:e.UNSIGNED_SHORT,SHORT:e.SHORT,UNSIGNED_INT:e.UNSIGNED_INT,INT:e.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};s.d(i,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,n,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,h,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,r,"pe",0,e,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2754],{34930(e,t,n){n.d(t,{$Q:()=>s,Sd:()=>x,T5:()=>o,b7:()=>m});var i=n(86211),a=n(5443),l=n(86738),r=n(14140);function o(e,t){if(e.spatialReference.equals(t))return e;let n=(0,i.GA)(e.spatialReference),a=(0,i.GA)(t);if(n===a)return e;let l=n/a;return{x:e.x*l,y:e.y*l}}async function s(e,t,i,a){if("extent"===i.type)return function(e,t,n){let{width:i,height:a}=e,l=new Uint8Array(i*a),o=t.width/i,s=t.height/a;if(n.width/o<.5||n.height/s<.5)return new r.A({pixelType:e.pixelType,width:i,height:a,mask:l,pixels:[...e.pixels]});let{xmin:h,xmax:f,ymin:x,ymax:m}=t,{xmin:u,xmax:p,ymin:c,ymax:g}=n,y=Math.max(h,u),M=Math.min(f,p),d=Math.max(x,c),w=Math.min(m,g),R=.5*o,k=.5*s;if(M-y<R||w-d<k||M<h+R||y>f-R||d>m-k||w<x+k)return new r.A({pixelType:e.pixelType,width:i,height:a,mask:l,pixels:[...e.pixels]});let P=Math.max(0,(y-h)/o),A=Math.min(i,Math.max(0,(M-h)/o)),b=Math.max(0,(m-w)/s),E=Math.min(a,Math.max(0,(m-d)/s)),T=Math.round(P),S=Math.round(A)-1,G=Math.round(b),N=Math.round(E)-1;if(T===S&&P%1>.5&&A%1<.5||G===N&&b%1>.5&&E%1<.5)return new r.A({pixelType:e.pixelType,width:i,height:a,mask:l,pixels:[...e.pixels]});if(0===T&&0===G&&S===i&&N===a)return e;let v=e.mask;for(let e=G;e<=N;e++)for(let t=T;t<=S;t++){let n=e*i+t;l[n]=v?v[n]:255}return new r.A({pixelType:e.pixelType,width:i,height:a,mask:l,pixels:[...e.pixels]})}(e,t,i);let{width:l,height:o}=e,s=new Uint8Array(l*o),{intersectsExecute:h}=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(1132)]).then(()=>n(25275));if(!h(t,i))return new r.A({pixelType:e.pixelType,width:l,height:o,mask:s,maskIsAlpha:!1,pixels:[...e.pixels]});if("polyline"===i.type)return a?.thinPolyline?f(e,t,i):function(e,t,n){let{width:i,height:a}=e,l=new Uint8Array(i*a),o=t.width/i,s=t.height/a,{xmin:h,ymax:f}=t,{paths:x}=n,m=e.mask;for(let e=0;e<x.length;e++){let t=x[e];for(let e=0;e<t.length-1;e++){let[n,r]=t[e],[x,u]=t[e+1],p=Math.min(r,u),c=Math.max(r,u),g=Math.max(0,Math.floor((f-c)/s)),y=Math.min(a-1,Math.floor((f-p)/s));if(!(y<g))if(r===u){let e=Math.min(n,x),t=Math.max(n,x),a=Math.max(0,Math.floor((e-h)/o)),r=Math.min(i-1,Math.floor((t-h)/o));if(r<a)continue;let s=g*i;for(let e=s+a;e<=s+r;e++)l[e]=m?m[e]:255}else{let e=(n-h)/o,t=(x-n)/(u-r)/o;for(let n=g;n<=y;n++){let a=t*(Math.min(c,f-n*s)-r)+e,o=t*(Math.max(p,f-(n+1)*s)-r)+e,h=Math.max(0,Math.floor(Math.min(a,o))),x=Math.min(i-1,Math.floor(Math.max(a,o)));if(x<h)continue;let u=n*i;for(let e=u+h;e<=u+x;e++)l[e]=m?m[e]:255}}}}return new r.A({pixelType:e.pixelType,width:i,height:a,mask:l,maskIsAlpha:e.maskIsAlpha,pixels:[...e.pixels]})}(e,t,i);let{containsExecute:x}=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(6671)]).then(()=>n(30912));return x(i,t)?e:function(e,t,n){if(!e)return e;let{width:i,height:a}=e,l=function(e){let t,{geometry:n,size:i,srcExtent:a,srcMask:l}=e,[r,o]=i,s=a.width/r,h=a.height/o,{xmin:f,ymax:x}=a;if("extent"===n.type){let e=(n.xmin-f)/s,i=(n.xmax-f)/s,a=(x-n.ymax)/h,l=(x-n.ymin)/h;t=[[[e,a],[e,l],[i,l],[i,a],[e,a]]]}else t=n.rings.map(e=>e.map(([e,t])=>[(e-f)/s,(x-t)/h]));return function(e,t,n){let[i,a]=t,l=new OffscreenCanvas(i,a).getContext("2d");l.fillStyle="#f00",l.beginPath(),e.forEach(e=>{l.moveTo(e[0][0],e[0][1]);for(let t=0;t<e.length;t++)l.lineTo(e[t][0],e[t][1]);l.closePath()}),l.fill();let r=l.getImageData(0,0,i,a).data,o=i*a,s=new Uint8Array(o),h=!1;for(let e=0;e<o;e++)(!n||n[e])&&(r[4*e+3]>127?s[e]=255:h=!0);return h||n?s:void 0}(t,i,l)}({geometry:n,size:[i,a],srcExtent:t,srcMask:e.mask});return new r.A({pixelType:e.pixelType,width:i,height:a,mask:l,maskIsAlpha:!1,pixels:[...e.pixels]})}(e,t,i)}function h(e){let{size:t,start:n,end:i,outMask:a,srcMask:l}=e,[r,o]=t,[s,h]=n,[f,x]=i;if(Math.max(s,f)<=0||Math.min(s,f)>=r||Math.max(h,x)<=0||Math.min(h,x)>=o)return;let m=Math.abs(f-s),u=Math.abs(x-h);if(0===m&&0===u){let e=Math.floor(s),t=Math.floor(h)*r+e;return void(a[t]=l?l[t]:255)}let p=u>m;p&&([s,h]=[h,s],[f,x]=[x,f],[m,u]=[u,m],[r,o]=[o,r]),s>f&&([s,f]=[f,s],[h,x]=[x,h]);let c=Math.max(0,Math.floor(s)),g=Math.min(r-1,Math.floor(f)),y=h<=x?1:-1,M=Math.floor(Math.min(h,x)),d=Math.floor(Math.max(h,x)),w=u/m,R=h+(c+.5-s)*y*w,k=y>0?Math.floor(R):Math.ceil(R)-1,P=y>0?R-k:k+1-R;for(let e=c;e<=g;e++){let t=Math.max(M,Math.min(d,k));if(t>=0&&t<o){let n=p?e*o+t:t*r+e;a[n]=l?l[n]:255}P+=w,P>=1&&(k+=y,--P)}}function f(e,t,n){let{width:i,height:a,mask:l}=e,o=new Uint8Array(i*a),s=t.width/i,f=t.height/a,{xmin:x,ymax:m}=t,u=[i,a];for(let e of n.paths)for(let t=0;t<e.length-1;t++){let[n,i]=e[t],[a,r]=e[t+1];h({size:u,start:[(n-x)/s,(m-i)/f],end:[(a-x)/s,(m-r)/f],srcMask:l,outMask:o})}return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,maskIsAlpha:e.maskIsAlpha,pixels:[...e.pixels]})}function x(e,t){let{extent:n}=m(e,t,new l.A({x:e.pixelSize.x,y:e.pixelSize.y,spatialReference:e.spatialReference})),{extent:i}=e.extent;if(n.xmax=Math.min(n.xmax,i.xmax),n.ymax=Math.min(n.ymax,i.ymax),n.xmin<n.xmax&&n.ymin<n.ymax){let{x:t,y:i}=e.pixelSize,a=Math.round(n.width/t),l=Math.round(n.height/i);e.extent=n,e.width=a,e.height=l}}function m(e,t,n,i=!0){let l,r,s,{spatialReference:h}=e,{x:f,y:x}=o(n,h),{xmin:m,xmax:u,ymax:p,ymin:c}="extent"===t.type?t:t.extent,{xmin:g,ymax:y}=e.extent;return i?(m=g+(m>g?f*Math.round((m-g)/f):0),p=y-(p<y?x*Math.round((y-p)/x):0),u=g+(u>g?f*Math.round((u-g)/f):0),c=y-(c<y?x*Math.round((y-c)/x):0),l=new a.A({xmin:m,ymax:p,xmax:u,ymin:c,spatialReference:h}),r=Math.round(l.width/f),s=Math.round(l.height/x)):(r=Math.floor((u-m)/f+.8),s=Math.floor((p-c)/x+.8),m=g+(m>g?f*Math.floor((m-g)/f+.1):0),p=y-(p<y?x*Math.floor((y-p)/x+.1):0),u=m+r*f,c=p-s*x,l=new a.A({xmin:m,ymax:p,xmax:u,ymin:c,spatialReference:h})),{extent:l,width:r,height:s}}},37373(e,t,n){n.d(t,{DO:()=>O,FT:()=>I,Hh:()=>k,OM:()=>L,Ps:()=>q,Wo:()=>P,_I:()=>b,_l:()=>v,l0:()=>W,t$:()=>B,uk:()=>C});var i=n(4576),a=n(49186),l=n(86211),r=n(5443),o=n(83290),s=n(86738),h=n(39829),f=n(99917),x=n(16930),m=n(21325);function u(){if(!R)throw new a.A("rasterprojectionhelper-project","projection operator is not loaded")}const p=(e,t,n,i=0)=>{if(1===n[0])return[0,0];let a=1,l=-1,r=1,o=-1;for(let t=0;t<e.length;t+=2)isNaN(e[t])||(a=a>e[t]?e[t]:a,l=l>e[t]?l:e[t],r=r>e[t+1]?e[t+1]:r,o=o>e[t+1]?o:e[t+1]);let{cols:s,rows:h}=t,f=(l-a)/s/n[0],x=(o-r)/h/n[1],m=2*i,u=0,p=!1,c=[0,0];for(let t=0;t<s-3;t++){for(let n=0;n<h-3;n++){let i=t*h*2+2*n,a=(e[i]+e[i+4]+e[i+4*h]+e[i+4*h+4])/4,l=(e[i+1]+e[i+5]+e[i+4*h+1]+e[i+4*h+5])/4,r=Math.abs((a-e[i+2*h+2])/f),o=Math.abs((l-e[i+2*h+3])/x);if(r+o>u&&(u=r+o,c=[r,o]),m&&u>m){p=!0;break}}if(p)break}return c},c={3395:20037508.342789244,3410:17334193.943686873,3857:20037508.342788905,3975:17367530.445161372,4087:20037508.342789244,4088:20015108.787169147,6933:17367530.445161372,32662:20037508.342789244,53001:20015086.79602057,53002:10007543.39801029,53003:20015086.79602057,53004:20015086.79602057,53016:14152803.599503474,53017:17333573.624304302,53034:20015086.79602057,53079:20015114.352186374,53080:20015114.352186374,54001:20037508.342789244,54002:10018754.171394624,54003:20037508.342789244,54004:20037508.342789244,54016:14168658.027268292,54017:17367530.44516137,54034:20037508.342789244,54079:20037508.342789244,54080:20037508.342789244,54100:20037508.342789244,54101:20037508.342789244},g=new Map,y=new Map;let M,d,w,R=!1;async function k(){return M||(M=Promise.withResolvers(),d=await n.e(3276).then(()=>n(83276)),w=await n.e(2158).then(()=>n(12158)),d.projectIsLoaded()||await d.projectLoad(),w.isLoaded()||await w.load(),R=!0,M.resolve()),M.promise}function P(e,t,n,i){let a=e.spatialReference;if(!a||!t||a.equals(t))return e;u();let o=n.center,s=new r.A({xmin:o.x-e.x/2,xmax:o.x+e.x/2,ymin:o.y-e.y/2,ymax:o.y+e.y/2,spatialReference:a}),h=d.projectExecute(s,t,{geographicTransformation:i}),f=I(t);return null==h||null!=f&&h.width>=f?function(e,t,n){let i=(0,l.GA)(t)/(0,l.GA)(n);return{x:e.x*i,y:e.y*i}}(e,a,t):{x:h.width,y:h.height}}function A(e,t=.01){return(0,l.GA)(e)?t/(0,l.GA)(e):0}function b(e,t,n,i=!0){let a=e.spatialReference;if(a.equals(t))return e;u();let l=d.projectExecute(e,t,{geographicTransformation:n});return!i||!l||E([e],[l],a,t),l}function E(e,t,n,i){let a=z(n,!0),l=z(i,!0),r=A(n,500),o=A(i,500);if(r&&null!=a&&null!=l)for(let n=0;n<e.length;n++){let i=t[n];if(!i)continue;let{x:s}=e[n],{x:h}=i;h>=l[1]-o&&Math.abs(s-a[0])<r?i.x-=l[1]-l[0]:h<=l[0]+o&&Math.abs(s-a[1])<r&&(i.x+=l[1]-l[0])}}function T(e){let{inSR:t,outSR:n,preferPE:i}=e;if(t.equals(n)){let{points:t}=N(e,null);return t}return t.isWebMercator&&n.isWGS84||t.isWGS84&&n.isWebMercator?function(e){let{cols:t,rows:n,xres:i,yres:a,usePixelCenter:l,inSR:r,outSR:o}=e,{xmin:h,ymax:x}=e;l&&(h+=i/2,x-=a/2);let m=[],u=[],p=Math.max(t,n);for(let e=0;e<p;e++){let l=h+i*Math.min(t,e),p=x-a*Math.min(n,e),c=(0,f.projectWithoutEngine)(new s.A({x:l,y:p,spatialReference:r}),r,o);e<=t&&m.push(c.x),e<=n&&u.push(c.y)}let c=[];for(let e=0;e<t;e++)for(let t=0;t<n;t++)c.push([m[e],u[t]]);return c}(e):i&&(t.isGeographic||null!=S(t))?function(e){let{inSR:t,outSR:n,datumTransformation:i}=e,{points:a,mask:l}=N(e,S(t));if(!t.isGeographic){let e=t.wkid?o.P.coordsys(t.wkid):o.P.fromString(t.isGeographic?o.a.PE_TYPE_GEOGCS:o.a.PE_TYPE_PROJCS,t.wkt2||t.wkt);o.c.projToGeog(e,a.length,a)}if(null!=i&&i.steps.length){let e,t=179.9955;if(n.isGeographic&&(e=a.map(([e])=>e>t?1:e<-179.9955?-1:0)),i.steps.forEach(e=>{let t=e.wkid?o.P.geogtran(e.wkid):o.P.fromString(o.a.PE_TYPE_GEOGTRAN,e.wkt);o.d.geogToGeog(t,a.length,a,null,e.isInverse?o.a.PE_TRANSFORM_2_TO_1:o.a.PE_TRANSFORM_1_TO_2)}),e)for(let n=0;n<a.length;n++){let i=e[n],l=a[n][0],r=l>t?1:l<-179.9955?-1:0;i&&r&&i!==r&&(a[n][0]=i>0?l+360:l-360)}}if(!n.isGeographic){let e=S(n,!0);!function(e,t){let[n,i]=t;for(let t=0;t<e.length;t++){let a=e[t][1];(a<n||a>i)&&(e[t]=[NaN,NaN])}}(a,null!=e&&e.isEnvelope?[e.bbox[1],e.bbox[3]]:[-90,90]);let t=n.wkid?o.P.coordsys(n.wkid):o.P.fromString(n.isGeographic?o.a.PE_TYPE_GEOGCS:o.a.PE_TYPE_PROJCS,n.wkt2||n.wkt);o.c.geogToProj(t,a.length,a)}let r=a;if(l&&a.length!==l.length){r=[];for(let e=0,t=0;e<l.length;e++)l[e]?r.push(a[t++]):r.push([NaN,NaN])}return r}(e):function(e){let{points:t}=N(e,null),{inSR:n,outSR:i,datumTransformation:a}=e,l=t.map(e=>new s.A(e[0],e[1],n)),r=d.projectExecuteMany(l,i,{geographicTransformation:a});return a&&E(l,r,n,i),r.map(e=>e?[e.x,e.y]:[NaN,NaN])}(e)}function S(e,t=!1){let n=e.wkid||e.wkt2||e.wkt;if(!n||e.isGeographic)return null;if(n=String(n),g.has(n)){let e=g.get(n);return t?e?.gcs:e?.pcs}let i=e.wkid?o.P.coordsys(e.wkid):o.P.fromString(e.isGeographic?o.a.PE_TYPE_GEOGCS:o.a.PE_TYPE_PROJCS,e.wkt2||e.wkt),a=G(i,A(e,1e-4)),l=G(i,0,!0);return g.set(n,{pcs:a,gcs:l}),t?l:a}function G(e,t=0,n=!1){let i=o.b.generate(e),a=n?e.horizonGcsGenerate():e.horizonPcsGenerate();if(!i||!a?.length)return null;let l=!1,r=a.find(e=>1===e.getInclusive()&&1===e.getKind());if(!r){if(r=a.find(e=>1===e.getInclusive()&&0===e.getKind()),!r)return null;l=!0}let s=n?0:+(2===i.getNorthPoleLocation())|(2===i.getSouthPoleLocation()?2:0),h=i.isPannableRectangle(),f=r.getCoord();if(l)return{isEnvelope:l,isPannable:h,vertices:f,coef:null,bbox:[f[0][0]-t,f[0][1]-t,f[1][0]+t,f[1][1]+t],poleLocation:s};let x=0,m=[],[u,p]=f[0],[c,g]=f[0];for(let e=0,t=f.length;e<t;e++){x++,x===t&&(x=0);let[n,i]=f[e],[a,l]=f[x];if(l===i)m.push([n,a,i,l,2]);else{let e=(a-n)/(l-i||1e-4),t=n-e*i;i<l?m.push([e,t,i,l,0]):m.push([e,t,l,i,1])}u=u<n?u:n,p=p<i?p:i,c=c>n?c:n,g=g>i?g:i}return{isEnvelope:!1,isPannable:h,vertices:f,coef:m,bbox:[u,p,c,g],poleLocation:s}}function N(e,t){let n=[],{cols:i,rows:a,xres:l,yres:r,usePixelCenter:o}=e,{xmin:s,ymax:h}=e;if(o&&(s+=l/2,h-=r/2),null==t){for(let e=0;e<i;e++)for(let t=0;t<a;t++)n.push([s+l*e,h-r*t]);return{points:n}}let f=new Uint8Array(i*a);if(t.isEnvelope){let{isPannable:e,bbox:[o,x,m,u]}=t;for(let t=0,p=0;t<i;t++){let i=s+l*t,c=e||i>=o&&i<=m;for(let e=0;e<a;e++,p++){let t=h-r*e;c&&t>=x&&t<=u&&(n.push([i,t]),f[p]=1)}}return{points:n,mask:f}}let x=t.coef,m=[];for(let e=0;e<a;e++){let t=h-r*e,n=[],i=[];for(let e=0;e<x.length;e++){let[a,l,r,o,s]=x[e];if(t===r&&r===o)n.push(a),n.push(l),i.push(2),i.push(2);else if(t>=r&&t<=o){let e=a*t+l;n.push(e),i.push(s)}}let a=n;if(n.length>2){let e=2===i[0]?0:i[0],t=n[0];a=[];for(let l=1;l<i.length;l++)(2!==i[l]||l===i.length-1)&&(i[l]!==e&&(a.push(0===e?Math.min(t,n[l-1]):Math.max(t,n[l-1])),e=i[l],t=n[l]),l===i.length-1&&a.push(0===i[l]?Math.min(t,n[l]):Math.max(t,n[l])));a.sort((e,t)=>e-t)}else n[0]>n[1]&&(a=[n[1],n[0]]);m.push(a)}for(let e=0,t=0;e<i;e++){let i=s+l*e;for(let e=0;e<a;e++,t++){let a=h-r*e,l=m[e];if(2===l.length)i>=l[0]&&i<=l[1]&&(n.push([i,a]),f[t]=1);else if(l.length>2){let e=!1;for(let t=0;t<l.length;t+=2)if(i>=l[t]&&i<=l[t+1]){e=!0;break}e&&(n.push([i,a]),f[t]=1)}}}return{points:n,mask:f}}function v(e,t,n=null,a=!0){let l=e.spatialReference;if(l.equals(t)||!t)return e;let o=L(e),s=I(l,!0),f=I(t);if(0===o||null==s||null==f){let i=_(e,t,n,a);if(i&&null==s&&null!=f&&Math.abs(i.width-f)<A(t)&&d.projectIsLoaded()){let n=S(l);if(null!=n&&0===n.poleLocation&&e.width<(n.bbox[2]-n.bbox[0])/2)return function(e,t){let n=I(t);if(null==n)return null;let{xmin:i,ymin:a,xmax:l,ymax:o}=e,s=e.spatialReference,f=new h.A({spatialReference:s,rings:[[[i,a],[l,a],[l,o],[i,o],[i,a]]]}),x=d.projectExecute(f,t);if(2!==x.rings.length||!x.rings[0].length||!x.rings[1].length)return null;let{rings:m}=x,u=A(s),p=new r.A({spatialReference:t});for(let e=0;e<2;e++){i=l=m[e][0][0],a=o=m[e][0][1];for(let t=0;t<m[e].length;t++)i=i>m[e][t][0]?m[e][t][0]:i,l=l<m[e][t][0]?m[e][t][0]:l,a=a>m[e][t][1]?m[e][t][1]:a,o=o<m[e][t][1]?m[e][t][1]:o;if(0===e)p.ymin=a,p.ymax=o,p.xmin=i,p.xmax=l;else if(p.ymin=Math.min(p.ymin,a),p.ymax=Math.max(p.ymax,o),Math.abs(l-n/2)<u)p.xmin=i,p.xmax+=n;else{if(!(Math.abs(i+n/2)<u))return null;p.xmax=l+n}}return p}(e,t)||i}return i}let x=e.clone().normalize();if(1===x.length&&e.xmax<s&&e.xmax-s/2>A(l)){let{xmin:t,xmax:n}=e;for(let i=0;i<=o;i++){let a=0===i?t:-s/2,h=i===o?n-s*i:s/2;x[i]=new r.A({xmin:a,xmax:h,ymin:e.ymin,ymax:e.ymax,spatialReference:l})}}let m=x.map(e=>_(e,t,n,a)).filter(i.Ru);return 0===m.length?null:function(e,t){let n=I(e[0].spatialReference);if(e.length<2||null==n||(t??=A(e[0].spatialReference),1===(e=e.filter(e=>e.width>t)).length))return e[0];let{xmin:i,xmax:a,ymin:l,ymax:o}=e[0];for(let t=1;t<e.length;t++){let i=e[t];a=i.xmax+n*t,l=Math.min(l,i.ymin),o=Math.max(o,i.ymax)}return new r.A({xmin:i,xmax:a,ymin:l,ymax:o,spatialReference:e[0].spatialReference})}(m)}function C(e,t,n){if("extent"===e.type){let{xmin:t,ymin:n,xmax:i,ymax:a,spatialReference:l}=e;e=new h.A({rings:[[[t,a],[i,a],[i,n],[t,n],[t,a]]],spatialReference:l})}return e.spatialReference.equals(t)?e:(u(),d.projectExecute(e,t,{geographicTransformation:n}))}function _(e,t,n,i=!0,a=!0){let l=e.spatialReference;if(l.equals(t)||!t)return e;u();let r=d.projectExecute(e,t,{geographicTransformation:n});if(a&&t.isWebMercator&&r&&(r.ymax=Math.min(20037508.342787,r.ymax),r.ymin=Math.max(-20037508.342787,r.ymin),r.ymin>=r.ymax))return null;if(!i||!r)return r;let o=z(l,!0),h=z(t,!0);if(null==o||null==h)return r;let f=A(l,.001),x=A(l,500),m=A(t,.001);if(Math.abs(r.xmin-h[0])<m&&Math.abs(r.xmax-h[1])<m){let i=Math.abs(e.xmin-o[0]),a=Math.abs(o[1]-e.xmax);if(i<f&&a>x){r.xmin=h[0];let i=[];i.push(new s.A(e.xmax,e.ymin,l)),i.push(new s.A(e.xmax,(e.ymin+e.ymax)/2,l)),i.push(new s.A(e.xmax,e.ymax,l));let a=i.map(e=>b(e,t,n)).filter(e=>!isNaN(e?.x)).map(e=>e.x);r.xmax=Math.max.apply(null,a)}if(a<f&&i>x){r.xmax=h[1];let i=[];i.push(new s.A(e.xmin,e.ymin,l)),i.push(new s.A(e.xmin,(e.ymin+e.ymax)/2,l)),i.push(new s.A(e.xmin,e.ymax,l));let a=i.map(e=>b(e,t,n)).filter(e=>!isNaN(e?.x)).map(e=>e.x);r.xmin=Math.min.apply(null,a)}}else{let e=A(t,.001);Math.abs(r.xmin-h[0])<e&&(r.xmin=h[0]),Math.abs(r.xmax-h[1])<e&&(r.xmax=h[1])}return r}function I(e,t=!1){if(!e)return null;let n=t?20037508.342787:20037508.342788905;return e.isWebMercator?2*n:e.wkid&&e.isGeographic?360:2*c[e.wkid]||null}function z(e,t=!1){if(e.isGeographic)return[-180,180];let n=I(e,t);return n?[-n/2,n/2]:null}function j(e,t,n,i){let a=(e-t)/n;return a-Math.floor(a)===0?i&&--a:a=Math.floor(a),a}function L(e,t=!1){let n=I(e.spatialReference);if(null==n)return 0;let i=t?0:-n/2,a=A(e.spatialReference),l=!t&&Math.abs(e.xmax-n/2)<a?n/2:e.xmax,r=!t&&Math.abs(e.xmin+n/2)<a?-n/2:e.xmin;return j(l,i,n,!0)-j(r,i,n,!1)}function O(e){let t=e.storageInfo.origin.x,n=I(e.spatialReference,!0);if(null==n)return{originX:t,halfWorldWidth:null,pyramidsInfo:null};let i=n/2,{nativePixelSize:a,storageInfo:l,extent:r}=e,{maximumPyramidLevel:o,blockWidth:s,pyramidScalingFactor:h}=l,f=a.x,x=[],m=null!=e.transform&&"gcs-shift"===e.transform.type,u=t+(m?0:i),p=m?n-t:i-t;for(let e=0;e<=o;e++){let e=(r.xmax-t)/f/s,n=e-Math.floor(e)===0?e:Math.ceil(e),i=p/f/s,a=i-Math.floor(i)===0?i:Math.ceil(i),l=Math.floor(u/f/s),o=Math.round(u/f)%s,m=(s-Math.round(p/f)%s)%s;x.push({resolutionX:f,blockWidth:s,datasetColumnCount:n,worldColumnCountFromOrigin:a,leftMargin:o,rightPadding:m,originColumnOffset:l}),f*=h}return{originX:t,halfWorldWidth:i,pyramidsInfo:x,hasGCSSShiftTransform:m}}function W(e){let t=e.isAdaptive&&null==e.spacing,n=e.spacing||[32,32],i=F(e),a={cols:i.size[0]+1,rows:i.size[1]+1},l=i.outofBoundPointCount>0&&i.outofBoundPointCount<i.offsets.length/2,r=i.outofBoundPointCount===i.offsets.length/2||t&&l?[0,0]:p(i.offsets,a,n,4),s=(r[0]+r[1])/2,h=e.projectedExtent.spatialReference,f=e.srcBufferExtent.spatialReference;if(t&&(l||s>4)&&(h.isGeographic||S(h),n=[4,4],i=F({...e,spacing:n}),a={cols:i.size[0]+1,rows:i.size[1]+1},r=p(i.offsets,a,n,4)),i.error=r,n[0]>1&&(i.coefficients=Y(i.offsets,a,l)),e.includeGCSGrid&&!h.isGeographic&&!h.isWebMercator)if(f.isGeographic)i.gcsGrid={offsets:i.offsets,coefficients:i.coefficients,spacing:n};else{let t=S(h);if(null!=t&&!t.isEnvelope){let t=function(e){if(!e||e.isGeographic)return e;let t,n=String(e.wkid||e.wkt2||e.wkt);return y.has(n)?t=y.get(n):(t=(e.wkid?o.P.coordsys(e.wkid):o.P.fromString(o.a.PE_TYPE_PROJCS,e.wkt2||e.wkt)).getGeogcs().getCode(),y.set(n,t)),new x.A({wkid:t})}(h),r=v(e.projectedExtent,t),{offsets:s}=F({...e,srcBufferExtent:r,spacing:n}),f=Y(s,a,l);i.gcsGrid={offsets:s,coefficients:f,spacing:n}}}return i}function F(e){let{projectedExtent:t,srcBufferExtent:n,pixelSize:i,datumTransformation:a,rasterTransform:l}=e,r=t.spatialReference,o=n.spatialReference;u();let h,{xmin:f,ymin:x,xmax:m,ymax:p}=t,c=I(o),g=null!=c&&(e.hasWrapAround||"gcs-shift"===l?.type),y=e.spacing||[32,32],M=y[0]*i.x,d=y[1]*i.y,w=1===y[0],R=Math.ceil((m-f)/M-.1/y[0])+ +!w,k=Math.ceil((p-x)/d-.1/y[1])+ +!w,P=T({cols:R,rows:k,xmin:f,ymax:p,xres:M,yres:d,inSR:r,outSR:o,datumTransformation:a,preferPE:y[0]<=4,usePixelCenter:w}),b=[],E=0,G=w?-1:NaN,{xmin:N,xmax:v,ymax:C,width:_,height:z}=n,j=A(o,500),L=null!=c&&N>0&&v>c/2,O=S(r),W=null!=O&&O.poleLocation>0;for(let e=0;e<R;e++){let t=[];for(let n=0;n<k;n++){let i=P[e*k+n];if(g&&i[0]>v&&i[0]>c/2-j?i[0]-=c:g&&0===e&&i[0]<0&&L&&!l&&(i[0]+=c),!i||isNaN(i[0])||isNaN(i[1]))b.push(G),b.push(G),t.push(null),E++;else{if(l){let e=l.inverseTransform(new s.A({x:i[0],y:i[1],spatialReference:o}));i=[e.x,e.y]}t.push(i),e>0&&g&&h[n]&&i[0]<h[n][0]&&(i[0]+=c,W&&i[0]>v&&i[0]>c&&(i[0]-=c)),b.push((i[0]-N)/_),b.push((C-i[1])/z)}}h=t}return{offsets:b,error:null,coefficients:null,outofBoundPointCount:E,spacing:y,size:w?[R,k]:[R-1,k-1]}}function Y(e,t,n){let{cols:i,rows:a}=t,l=new Float32Array((i-1)*(a-1)*2*6),r=new Float32Array([-0,-1,1,-1,1,-0,1,-0,-0]),o=new Float32Array([-1,1,0,0,-1,1,1,0,0]);for(let t=0;t<i-1;t++){for(let n=0;n<a-1;n++){let s=t*a*2+2*n,h=e[s],f=e[s+1],x=e[s+2],m=e[s+3];s+=2*a;let u=e[s],p=e[s+1],c=e[s+2],g=e[s+3],y=0,M=12*(n*(i-1)+t);for(let e=0;e<3;e++)l[M++]=r[y++]*h+r[y++]*x+r[y++]*c;y=0;for(let e=0;e<3;e++)l[M++]=r[y++]*f+r[y++]*m+r[y++]*g;y=0;for(let e=0;e<3;e++)l[M++]=o[y++]*h+o[y++]*u+o[y++]*c;y=0;for(let e=0;e<3;e++)l[M++]=o[y++]*f+o[y++]*p+o[y++]*g}if(n)for(let e=0;e<l.length;e++)isNaN(l[e])&&(l[e]=-1)}return l}function q(e){let{spatialReference:t}=e,n=(0,m.Vp)(t);if(!n)return e;let[i,a]=n.valid,l=a-i,o=0;if(e.xmin<i){let t=i-e.xmin;o=Math.ceil(t/l)}else if(e.xmin>a){let t=e.xmin-a;o=-Math.ceil(t/l)}return new r.A({spatialReference:e.spatialReference,xmin:e.xmin+o*l,ymin:e.ymin,xmax:e.xmax+o*l,ymax:e.ymax})}function B(e,t,n){let{storageInfo:i,pixelSize:a}=t,r=0,o=!1,{pyramidResolutions:h}=i,f="mixed"===i.tileInfo.format?.toLowerCase()?Math.max(1,Math.min(3,i.tileInfo.dpi/96)):1,x=(e.x+e.y)/2/f;if(null!=h&&h.length){let e=h[h.length-1],i=(e.x+e.y)/2,f=(a.x+a.y)/2;if(x<=f)r=0;else if(x>=i)r=h.length,o=x/i>8;else{let e,t=f;for(let i=1;i<=h.length;i++){if(e=(h[i-1].x+h[i-1].y)/2,x<=e){x===e?r=i:"down"===n?(r=i-1,o=x/t>8):r="up"===n||x-t>e-x||x/t>2?i:i-1;break}t=e}}let m=0===r?a:h[r-1];return o&&Math.min(m.x,m.y)*(0,l.GA)(t.spatialReference)>19567&&(o=!1),{pyramidLevel:r,pyramidResolution:new s.A({x:m.x,y:m.y,spatialReference:t.spatialReference}),excessiveReading:o}}let m=Math.log(e.x/a.x)/Math.LN2,u=Math.log(e.y/a.y)/Math.LN2,p=t.storageInfo.maximumPyramidLevel||0;r="down"===n?Math.floor(Math.min(m,u)):"up"===n?Math.ceil(Math.max(m,u)):Math.round((m+u)/2),r<0?r=0:r>p&&(o=r>p+3,r=p);let c=2**r;return{pyramidLevel:r,pyramidResolution:new s.A({x:c*t.nativePixelSize.x,y:c*t.nativePixelSize.y,spatialReference:t.spatialReference}),excessiveReading:o}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[574],{66131(e,t,r){r.d(t,{lY:()=>d,mT:()=>m});var n=r(59534),i=r(799),s=r(3330),o=r(84741),a=r(34747);const l={TimeZoneNotRecognized:"Timezone identifier has not been recognized."};class u extends Error{constructor(e,t){super((0,i.HC)(l[e],t)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,u)}}function h(e,t,r){return e<t?e-t:e>r?e-r:0}function c(e,t,r){return e<t?t:e>r?r:e}class d{constructor(e){this._date=e,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(e=0,t=1,r=1,n=0,i=0,s=0,o=0,l){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(s)||isNaN(o))return null;let u=a.c9.local(e,t).daysInMonth,p=a.c9.fromObject({day:c(r,1,u),year:e,month:c(t,1,12),hour:c(n,0,23),minute:c(i,0,59),second:c(s,0,59),millisecond:c(o,0,999)},{zone:m(l)});return p=p.plus({months:h(t,1,12),days:h(r,1,u),hours:h(n,0,23),minutes:h(i,0,59),seconds:h(s,0,59),milliseconds:h(o,0,999)}),new d(p)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,t){let r=m(t);return e.isUnknownTimeZone||r===s.GB.instance?d.fromParts(e.year,e.monthJS+1,e.day,e.hour,e.minute,e.second,e.millisecond,r):new d(e._date.setZone(r))}static dateJSToArcadeDate(e){return new d(a.c9.fromJSDate(e,{zone:"system"}))}static dateJSAndZoneToArcadeDate(e,t="system"){let r=m(t);return new d(a.c9.fromJSDate(e,{zone:r}))}static unknownEpochToArcadeDate(e){return new d(a.c9.fromMillis(e,{zone:s.GB.instance}))}static unknownDateJSToArcadeDate(e){return new d(a.c9.fromMillis(e.getTime(),{zone:s.GB.instance}))}static epochToArcadeDate(e,t="system"){let r=m(t);return new d(a.c9.fromMillis(e,{zone:r}))}static dateTimeToArcadeDate(e){return new d(e)}clone(){return new d(this._date)}changeTimeZone(e){let t=m(e);return d.dateTimeToArcadeDate(this._date.setZone(t))}static dateTimeAndZoneToArcadeDate(e,t){let r=m(t);return e.zone===s.GB.instance||r===s.GB.instance?d.fromParts(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond,r):new d(e.setZone(r))}static nowToArcadeDate(e){let t=m(e);return new d(a.c9.fromJSDate(new Date,{zone:t}))}static nowUTCToArcadeDate(){return new d(a.c9.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===d.systemTimeZoneCanonicalName}equals(e){return this.isSystem&&e.isSystem?this.toNumber()===e.toNumber():this.isUnknownTimeZone===e.isUnknownTimeZone&&this._date.equals(e._date)}get isUnknownTimeZone(){return this._date.zone===s.GB.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let e=this._date.weekday;return e>6&&(e=0),e}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";let e=this.zone;return"fixed"===e.type?0===e.fixed?"UTC":e.formatOffset(0,"short"):e.name}stringify(){return JSON.stringify(this.toJSDate())}plus(e){return new d(this._date.plus(e))}diff(e,t){return this._date.diff(e._date,t)[t]}toISODate(){return this._date.toISODate()}toISOString(e){return e?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(e,t){return this._date.toISOTime({suppressMilliseconds:e,includeOffset:t&&!this.isUnknownTimeZone})}toFormat(e,t){return this.isUnknownTimeZone&&(e=e.replaceAll("Z","")),this._date.toFormat(e,t)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new d(this._date.toUTC())}toLocal(){return new d(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(e){if(!e)return null;let t=a.c9.fromISO(e,{setZone:!0});return new d(t)}}function m(e,t=!0){if(e instanceof a.bo)return e;switch((0,n.B)(e)){case"system":return"system";case"utc":return"UTC";case"unknown":return s.GB.instance}if(/^[+-]?[0-9]{1,2}(:[0-9]{2})?$/.test(e)){let t=a.mQ.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(t)return t}let r=(0,o.p)(e);if(!r.isValid){if(t)throw new u("TimeZoneNotRecognized");return null}return r}},59534(e,t,r){r.d(t,{B:()=>i,b:()=>s});var n=r(85935);function i(e){return e.toLowerCase().replaceAll(/[\s-]+/g,"")}class s{constructor(e,t){let r=new Map;for(let t of e){let e=i(t);if(r.has(e))throw Error(`${t} already added as ${r.get(e)}`);r.set(e,t)}if(null!=t)for(let[e,n]of t){let t=i(e);if(r.has(t))throw Error(`${e} already associated with ${r.get(t)}`);r.set(t,n)}this._enumMap=r}lookup(e){return this._enumMap.get(i(e))}get(e){let t=this.lookup(e);if(null==t)throw new n.D$("InvalidParameter",null);return t}}},85935(e,t,r){r.d(t,{D$:()=>a,O$:()=>h,i2:()=>c,mT:()=>u,ps:()=>m});var n=r(799);const i={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};function s(e){return"object"==typeof e&&"line"in e&&"column"in e&&"number"==typeof e.line&&"number"==typeof e.column}class o extends Error{constructor(e,t){super(l(t)+("object"==typeof e&&e&&"message"in e?e.message:""),{cause:e}),this.loc=t?.loc??null}}class a extends Error{constructor(e,t,r){super("Execution error - "+l(t)+(0,n.HC)(i[e],r)),this.declaredRootClass="esri.arcade.arcadeexecutionerror",this.loc=t?.loc??null}}function l(e){return null==e?.loc?"":`Line ${e.loc.start.line}:${e.loc.start.column}: `}class u extends Error{constructor(e,t,r){super("Compilation error - "+l(t)+(0,n.HC)(i[e],r)),this.declaredRootClass="esri.arcade.arcadecompilationerror",this.loc=t?.loc??null}}class h extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror"}}function c(e,t){return!function(e){if(e instanceof Error&&"loc"in e){let t=e.loc;return null==t||"object"==typeof t&&"start"in t&&null!=t.start&&s(t.start)&&(!("end"in t)||null==t.end||s(t.end))}return!1}(e)||null==e.loc&&null!=t?.loc?new o(e,t):e}const d={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class m extends Error{constructor(e,t){super((0,n.HC)(d[e],t)),this.declaredRootClass="esri.arcade.arcademoduleerror"}}},69540(e,t,r){var n=r(32198),i=r(69622),s=(r(44208),r(4718)),o=(r(53966),r(97768)),a=r(88620),l=r(64108);const u=Symbol("ClonableMixin"),h=e=>{var t;let r=e,i=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){let t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");let r=t.metadata,n=t.store,i={},l=new Map;for(let t in r){let o=r[t],a=n?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;let h=this[t],c=null;if("function"==typeof u)c=u(h,e);else if("reference"===u)c=h;else if(c=(0,s.TU)(h,e),null!=h&&null==c)continue;0===a?l.set(t,c):i[t]=c}let u=new(0,Object.getPrototypeOf(this).constructor)(i);if(l.size){let e=(0,a.oY)(u)?.store;if(e)for(let[t,r]of l)e.set(t,r,0)}return u}};return i=(0,n.Cg)([(0,l.$)("esri.core.Clonable")],i),i},c=h(i.A);r.d(t,["OU",0,h,"Pw",0,c])},66344(e,t,r){r.d(t,{q:()=>a});const n=!!(0,r(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class i{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){return this._db.get(e.id+t)?.size??0}put(e,t,r,i,o){t=e.id+t;let a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==r&&this._notifyRemove(t,a.entry,a.size,0)),i>this._maxSize)return void this._notifyRemove(t,r,i,0);if(void 0===r)return void console.warn("Refusing to cache undefined entry ");if(!i||i<0)return n||console.warn(`Refusing to cache entry with size ${i} for key ${t}`),void this._notifyRemove(t,r,0,0);let l=1+Math.max(o,-4)- -3;this._db.set(t,new s(r,i,l)),this._size+=i,e.size+=i,this._checkSize()}updateSize(e,t){t=e.id+t;let r=this._db.get(t);if(!r)return;this._size-=r.size,e.size-=r.size;let n=r.entry.usedMemory;for(;n>this._maxSize;){let e=this._notifyRemove(t,r.entry,n,1);if(!(null!=e&&e>0))return void this._db.delete(t);n=e}r.size=n,this._size+=n,e.size+=n,this._checkSize()}pop(e,t){t=e.id+t;let r=this._db.get(t);if(r)return this._size-=r.size,e.size-=r.size,this._db.delete(t),++this._hit,r.entry;++this._miss}get(e,t){t=e.id+t;let r=this._db.get(t);if(void 0!==r)return this._db.delete(t),r.lives=r.lifetime,this._db.set(t,r),++this._hit,r.entry;++this._miss}peek(e,t){let r=this._db.get(e.id+t);return r?++this._hit:++this._miss,r?.entry}get performanceInfo(){let e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},r=[];this._db.forEach((e,n)=>{let i=e.lifetime;r[i]=(r[i]||0)+e.size,this._clients.forEach(r=>{let{id:i,name:s}=r;if(n.startsWith(i)){let r=t[s]||0;t[s]=r+e.size}})});let n={};this._clients.forEach(e=>{let r=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){let i=t[r]||0;t[r]=i,n[r]=Math.round(100*e.hitRate)+"%"}else n[r]="0%"});let i=Object.keys(t);i.sort((e,r)=>t[r]-t[e]),i.forEach(r=>e[r]=Math.round(t[r]/2**20)+"MB / "+n[r]);for(let t=r.length-1;t>=0;--t){let n=r[t];n&&(e["Priority "+(t+-3-1)]=Math.round(n/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){let t=e.id;this._db.forEach((e,r)=>{r.startsWith(t)&&(this._size-=e.size,this._db.delete(r),this._notifyRemove(r,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(let[t,r]of this._db)t.startsWith(e.id)&&(yield r.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,r,n){let i=this._clients.get(e.split(o)[0])?.removeFunc,s=i?.(t,n,r);return"number"==typeof s?s:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){let r=t??this;if(r.size<=e)return;let n=t?.id,i=!0;for(;i;){i=!1;for(let[s,a]of this._db)if(0===a.lifetime&&(!n||s.startsWith(n))){let n=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,a,n),r.size<=.9*e)return;i||=this._db.has(s)}}for(let[i,s]of this._db)if(!n||i.startsWith(n)){let n=t??this._clients.get(i.split(o)[0]);if(this._purgeItem(i,s,n),r.size<=.9*e)return}}_purgeItem(e,t,r){if(this._db.delete(e),t.lives<=1){this._size-=t.size,r&&(r.size-=t.size);let n=this._notifyRemove(e,t.entry,t.size,1);null!=n&&n>0&&(this._size+=n,r&&(r.size+=n),t.lives=t.lifetime,t.size=n,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new i(0);class s{constructor(e,t,r){this.entry=e,this.size=t,this.lifetime=r,this.lives=r}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new i(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,r=1){this._storage.put(this,e,t,r,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},60999(e,t,r){r.d(t,{DZ:()=>p,Ke:()=>m,QA:()=>f,Tj:()=>h,UT:()=>y,aD:()=>_,jJ:()=>u});var n=r(32198),i=r(69622),s=r(97768),o=r(17676),a=r(10107),l=r(64108);function u(e,t,r){return(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))}async function h(e,t,r){return(await(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function m(e){if(null==e)return{ok:!1,error:Error("no promise provided")};try{return c(await e)}catch(e){return d(e)}}async function p(e){try{return c(await e)}catch(e){return(0,o.QP)(e),d(e)}}function f(e){if(!0===e.ok)return e.value;throw e.error}function y(e,t){return new g(e,t)}let g=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,a.MZ)()],g.prototype,"value",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"error",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"finished",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"promise",void 0),(0,n.Cg)([(0,a.MZ)()],g.prototype,"_result",void 0),g=(0,n.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g);class _{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});let t=await e;return{[Symbol.dispose]:t}}async run(e){let t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},67482(e,t,r){function n(e){return null!==i(e)}function i(e){return function(e){let t=s.exec(e);if(!t?.groups)return null;let r=t.groups,n=+r.year,i=r.month-1,o=+r.day,a=+(r.hours??"0"),l=+(r.minutes??"0"),u=+(r.seconds??"0");if(a>23||l>59||u>59)return null;let h,c=r.ms??"0",d=c?+c.padEnd(3,"0").slice(0,3):0;if(r.isUTC||!r.offsetSign)h=Date.UTC(n,i,o,a,l,u,d);else{let e=+r.offsetHours,t=+r.offsetMinutes;h=6e4*("+"===r.offsetSign?-1:1)*(60*e+t)+Date.UTC(n,i,o,a,l,u,d)}return Number.isNaN(h)?null:h}(e)??function(e){let t=new Date(e),r=t.getTime();return Number.isNaN(r)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?r:null}(e)??function(e){if(!o.test(e))return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}r.d(t,{C:()=>n,_:()=>i});const s=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},9093(e,t,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>i,vt:()=>n});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:n,fromValues:function(e,t,r,n,i,s,o,a,l,u,h,c,d,m,p,f){return[e,t,r,n,i,s,o,a,l,u,h,c,d,m,p,f]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,s])},35522(e,t,r){r.d(t,{$A:()=>C,Bw:()=>s,C:()=>o,Cc:()=>v,DI:()=>T,Io:()=>_,Ln:()=>g,Om:()=>M,Qr:()=>c,Re:()=>u,S8:()=>x,T9:()=>f,WQ:()=>l,Z0:()=>A,_S:()=>m,aI:()=>N,ei:()=>F,fw:()=>D,gL:()=>R,hG:()=>w,hZ:()=>a,hs:()=>y,jk:()=>p,lw:()=>h,m3:()=>b,oW:()=>O,t2:()=>z,tn:()=>d,ze:()=>S});var n=r(51850),i=r(34304);function s(e){let t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function h(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function c(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function m(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function p(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function f(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function y(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function g(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e}function _(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}function w(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return r*r+n*n+i*i}function b(e){let t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function S(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function T(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function x(e,t=e){let r=t[0],n=t[1],i=t[2],s=r*r+n*n+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function M(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function C(e,t,r){let n=t[0],i=t[1],s=t[2],o=r[0],a=r[1],l=r[2];return e[0]=i*l-s*a,e[1]=s*o-n*l,e[2]=n*a-i*o,e}function v(e,t,r,n){let i=t[0],s=t[1],o=t[2];return e[0]=i+n*(r[0]-i),e[1]=s+n*(r[1]-s),e[2]=o+n*(r[2]-o),e}function A(e,t,r){let n=t[0],i=t[1],s=t[2];return e[0]=r[0]*n+r[4]*i+r[8]*s+r[12],e[1]=r[1]*n+r[5]*i+r[9]*s+r[13],e[2]=r[2]*n+r[6]*i+r[10]*s+r[14],e}function F(e,t,r){let n=t[0],i=t[1],s=t[2];return e[0]=n*r[0]+i*r[3]+s*r[6],e[1]=n*r[1]+i*r[4]+s*r[7],e[2]=n*r[2]+i*r[5]+s*r[8],e}function R(e,t,r){return D(e,t,r[0],r[1],r[2],r[3])}function D(e,t,r,n,i,s){let o=t[0],a=t[1],l=t[2],u=n*l-i*a,h=i*o-r*l,c=r*a-n*o,d=n*c-i*h,m=i*u-r*c,p=r*h-n*u,f=2*s;return e[0]=o+u*f+2*d,e[1]=a+h*f+2*m,e[2]=l+c*f+2*p,e}const I=(0,n.vt)(),P=(0,n.vt)();function z(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function N(e,t){if(e===t)return!0;let r=e[0],n=e[1],s=e[2],o=t[0],a=t[1],l=t[2],u=(0,i.FD)();return Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function O(e,t,r){let n=r[0]-t[0],i=r[1]-t[1],s=r[2]-t[2],o=n*n+i*i+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=n*o,e[1]=i*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const E=u,k=h,B=c,L=_,Z=w,U=s,j=b;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){x(I,e),x(P,t);let r=M(I,P);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,n,i,s){let o=1-s,a=o*o,l=s*s,u=a*o,h=3*s*a,c=3*l*o,d=l*s;return e[0]=t[0]*u+r[0]*h+n[0]*c+i[0]*d,e[1]=t[1]*u+r[1]*h+n[1]*c+i[1]*d,e[2]=t[2]*u+r[2]*h+n[2]*c+i[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:o,cross:C,crossAndNormalize:function(e,t,r){let n=t[0],i=t[1],s=t[2],o=r[0],a=r[1],l=r[2],u=i*l-s*a,h=s*o-n*l,c=n*a-i*o,d=Math.sqrt(u*u+h*h+c*c);return e[0]=u/d,e[1]=h/d,e[2]=c/d,e},direction:O,dist:L,distance:_,div:B,divide:c,dot:M,equals:N,exactEquals:z,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,n,i,s){let o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),h=o*(3-2*s);return e[0]=t[0]*a+r[0]*l+n[0]*u+i[0]*h,e[1]=t[1]*a+r[1]*l+n[1]*u+i[1]*h,e[2]=t[2]*a+r[2]*l+n[2]*u+i[2]*h,e},inverse:T,len:U,length:s,lerp:v,max:f,min:p,mul:k,multiply:h,negate:S,normalize:x,random:function(e,t=1){let r=i.Ov,n=2*r()*Math.PI,s=2*r()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(n)*o,e[1]=Math.sin(n)*o,e[2]=s*t,e},rotateX:function(e,t,r,n){let i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0],s[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),s[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateY:function(e,t,r,n){let i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),s[1]=i[1],s[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateZ:function(e,t,r,n){let i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),s[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),s[2]=i[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:y,scaleAndAdd:g,scaleTo:function(e,t){return y(e,e,t/U(e))},set:a,sign:m,sqrDist:Z,sqrLen:j,squaredDistance:w,squaredLength:b,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:E,subtract:u,transformMat3:F,transformMat4:A,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:R,transformQuatValues:D},Symbol.toStringTag,{value:"Module"})),r.d(t,["Il",0,U,"jb",0,E,"lo",0,Z,"uE",0,j])},75503(e,t,r){r.d(t,{wq:()=>a});var n=r(4576),i=r(21818),s=(r(44208),r(15142)),o=r(11006);class a{constructor(e=9,t){this._compareMinX=d,this._compareMinY=m,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),S.prune(),T.prune(),x.prune(),M.prune()}all(e){l(this._data,e)}search(e,t){let r=this._data,n=this._toBBox;if(w(e,r))for(S.clear();r;){for(let i=0,s=r.children.length;i<s;i++){let s=r.children[i],o=r.leaf?n(s):s;w(e,o)&&(r.leaf?t(s):_(e,o)?l(s,t):S.push(s))}r=S.pop()}}collides(e){let t=this._data,r=this._toBBox;if(!w(e,t))return!1;for(S.clear();t;){for(let n=0,i=t.children.length;n<i;n++){let i=t.children[n],s=t.leaf?r(i):i;if(w(e,s)){if(t.leaf||_(e,s))return!0;S.push(i)}}t=S.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,r=e.length;t<r;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){let e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(e){if(!e)return this;let t,r=this._data,s=null,o=0,a=!1,l=this._toBBox(e);for(x.clear(),M.clear();r||x.length>0;){if(r||(r=x.pop(),s=x.data[x.length-1],o=M.pop()??0,a=!0),r.leaf&&(t=(0,n.qh)(r.children,(0,i.z)(e),r.children.length,r.indexHint),-1!==t))return r.children.splice(t,1),x.push(r),this._condense(x),this;a||r.leaf||!_(r,l)?s?(o++,r=s.children[o],a=!1):r=null:(x.push(r),M.push(o),o=0,s=r,r=r.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,r,n){let i=r-t+1,s=this._maxEntries;if(i<=s){let n=new A(e.slice(t,r+1));return u(n,this._toBBox),n}n||(n=Math.ceil(Math.log(i)/Math.log(s)),s=Math.ceil(i/s**(n-1)));let o=new F([]);o.height=n;let a=Math.ceil(i/s),l=a*Math.ceil(Math.sqrt(s));b(e,t,r,l,this._compareMinX);for(let i=t;i<=r;i+=l){let t=Math.min(i+l-1,r);b(e,i,t,a,this._compareMinY);for(let r=i;r<=t;r+=a){let i=Math.min(r+a-1,t);o.children.push(this._build(e,r,i,n-1))}}return u(o,this._toBBox),o}_insert(e,t,r){let n=this._toBBox,i=r?e:n(e);x.clear();let s=function(e,t,r,n){for(;n.push(t),!0!==t.leaf&&n.length-1!==r;){let r,n=1/0,i=1/0;for(let s=0,o=t.children.length;s<o;s++){let o=t.children[s],a=p(o),l=y(e,o)-a;l<i?(i=l,n=a<n?a:n,r=o):l===i&&a<n&&(n=a,r=o)}t=r||t.children[0]}return t}(i,this._data,t,x);for(s.children.push(e),c(s,i);t>=0&&x.data[t].children.length>this._maxEntries;)this._split(x,t),t--;!function(e,t,r){for(let n=r;n>=0;n--)c(t.data[n],e)}(i,x,t)}_split(e,t){let r=e.data[t],n=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,n);let s=this._chooseSplitIndex(r,i,n);if(!s)return;let o=r.children.splice(s,r.children.length-s),a=r.leaf?new A(o):new F(o);a.height=r.height,u(r,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(r,a)}_splitRoot(e,t){this._data=new F([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,r){let n,i,s;n=i=1/0;for(let o=t;o<=r-t;o++){let t=h(e,0,o,this._toBBox),a=h(e,o,r,this._toBBox),l=g(t,a),u=p(t)+p(a);l<n?(n=l,s=o,i=u<i?u:i):l===n&&u<i&&(i=u,s=o)}return s}_chooseSplitAxis(e,t,r){let n=e.leaf?this._compareMinX:d,i=e.leaf?this._compareMinY:m;this._allDistMargin(e,t,r,n)<this._allDistMargin(e,t,r,i)&&e.children.sort(n)}_allDistMargin(e,t,r,n){e.children.sort(n);let i=this._toBBox,s=h(e,0,t,i),o=h(e,r-t,r,i),a=f(s)+f(o);for(let n=t;n<r-t;n++){let t=e.children[n];c(s,e.leaf?i(t):t),a+=f(s)}for(let n=r-t-1;n>=t;n--){let t=e.children[n];c(o,e.leaf?i(t):t),a+=f(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){let r=e.data[t];if(0===r.children.length)if(t>0){let i=e.data[t-1],s=i.children;s.splice((0,n.qh)(s,r,s.length,i.indexHint),1)}else this.clear();else u(r,this._toBBox)}}_initFormat(e){let t=["return a"," - b",";"];this._compareMinX=Function("a","b",t.join(e[0])),this._compareMinY=Function("a","b",t.join(e[1])),this._toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let r=e;for(T.clear();r;){if(!0===r.leaf)for(let e of r.children)t((0,i.z)(e));else T.pushArray(r.children);r=T.pop()??null}}function u(e,t){h(e,0,e.children.length,t,e)}function h(e,t,r,n,i){i||=new A([]),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let s,o=t;o<r;o++)s=e.children[o],c(i,e.leaf?n(s):s);return i}function c(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function m(e,t){return e.minY-t.minY}function p(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){let r=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,i-r)*Math.max(0,s-n)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function w(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function b(e,t,r,n,i){let s=[t,r];for(;s.length;){let t=s.pop(),r=s.pop();if(t-r<=n)continue;let a=r+Math.ceil((t-r)/n/2)*n;(0,o.q)(e,a,r,t,i),s.push(r,a,a,t)}}const S=new s.A,T=new s.A,x=new s.A,M=new s.A({deallocator:void 0});class C{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class v extends C{constructor(){super(...arguments),this.height=1,this.indexHint=new n.vW}}class A extends v{constructor(e){super(),this.children=e,this.leaf=!0}}class F extends v{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,r){r.d(t,{Qf:()=>a,Qh:()=>s,lM:()=>i});var n=r(34275);function i(e){if(!e)return 0;let t=u;for(let r in e)e.hasOwnProperty(r)&&(t+=o(e[r],!1));return t}function s(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=h;for(let n=0;n<t;n++)r+=o(e[n]);return r}(e);let t=u;for(let r in e)e.hasOwnProperty(r)&&(t+=o(e[r]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?s(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+c:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return h+e.length*t}const u=32,h=16,c=145},36708(e,t,r){r.d(t,{C_:()=>d,on:()=>c,wB:()=>l,z7:()=>u});var n=r(37955),i=r(36563),s=r(97768),o=r(17676),a=r(14012);function l(e,t,r={}){return h(e,t,r,m)}function u(e,t,r={}){return h(e,t,r,p)}function h(e,t,r={},n){let i=null,o=r.once?(e,r)=>{n(e)&&((0,s.xt)(i),t(e,r))}:(e,r)=>{n(e)&&t(e,r)};if(i=(0,a.Cn)(e,o,r.sync,r.equals),r.initial){let t=e();o(t,t)}return i}function c(e,t,r,o={}){let a=null,u=null,h=null;function c(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,s.xt)(h),r(e)}let m=l(e,(e,r)=>{c(),(0,n.wb)(e)&&(a=e,u=(0,n.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,i.hA)(()=>{m.remove(),c()}),h}function d(e,t){return function(e,t,r){if((0,o.G4)(r))return Promise.reject((0,o.NK)());let n=e();if(t?.(n))return Promise.resolve(n);let a=null;function l(){a=(0,s.xt)(a)}return new Promise((n,s)=>{a=(0,i.vE)([(0,o.u7)(r,()=>{l(),s((0,o.NK)())}),h(e,e=>{l(),n(e)},{sync:!1,once:!0},t??m)])})}(e,p,t)}function m(e){return!0}function p(e){return!!e}r(80559),r.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},44794(e,t,r){r.d(t,{v:()=>a});var n=r(4718),i=r(62788),s=r(95488);class o{constructor(e,t){this._observable=new s.I,this._value=e,this._equalityFunction=t}get value(){return(0,i.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=n.gh){return new o(e,t)}},44729(e,t,r){r.d(t,{n:()=>l});var n=r(66131),i=r(73444),s=r(34747);function o(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="";for(let r of e.match(/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g)||[])switch(r){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=r;break;default:r.length>=2&&r.startsWith("[")&&r.endsWith("]")?t+=`'${r.slice(1,-1)}'`:t+=`'${r}'`}return t}const a="esri.core.sql.dateonly";class l{constructor(e,t,r){this._year=e,this._month=t,this._day=r,this.declaredRootClass=a}static isDateOnly(e){return"object"==typeof e&&!!e&&"declaredRootClass"in e&&e.declaredRootClass===a}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(e){return l.isDateOnly(e)&&e.day===this.day&&e.month===this.month&&e.year===this.year}compare(e){return this.year===e.year?this.month===e.month?this.day-e.day:this.month-e.month:this.year-e.year}clone(){return new l(this._year,this._month,this._day)}toDateTime(e){return s.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,n.mT)(e)})}toDateTimeLuxon(e){return s.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,n.mT)(e)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(e=null,t=!0){if(null===e||""===e)return this.toString();if(t&&(e=o(e)),!e)return"";let r=this.toDateTime("unknown");return n.lY.dateTimeToArcadeDate(r).toFormat(e,{locale:(0,i.JK)(),numberingSystem:"latn"})}toArcadeDate(){let e=this.toDateTime("unknown");return n.lY.dateTimeToArcadeDate(e)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(e,t){return l.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}toUTCDateTime(){return s.c9.utc(this.year,this.month,this.day,0,0,0,0)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}static fromMilliseconds(e){let t=s.c9.fromMillis(e,{zone:s.mQ.utcInstance});return t.isValid?l.fromParts(t.year,t.month,t.day):null}static fromSeconds(e){let t=s.c9.fromSeconds(e,{zone:s.mQ.utcInstance});return t.isValid?l.fromParts(t.year,t.month,t.day):null}static fromReader(e){if(!e)return null;let t=e.indexOf("-");if(t<0)return null;let r=e.indexOf("-",t+1);return r<0?null:new l(parseInt(e.slice(0,t),10),parseInt(e.slice(t+1,r),10),parseInt(e.slice(r+1),10))}static fromParts(e,t,r){let n=new l(e,t,r);return!1===n.isValid?null:n}static fromDateJS(e){return l.fromParts(e.getFullYear(),e.getMonth()+1,e.getDay())}static fromDateTime(e){return l.fromParts(e.year,e.month,e.day)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e||null===e)return null;let r=[];if(t)(t=o(t))&&r.push(t);else if(null===t||""===t){let t=s.c9.fromISO(e,{setZone:!0});return t.isValid?l.fromParts(t.year,t.month,t.day):null}for(let n of r){let r=s.c9.fromFormat(e,t??n);if(r.isValid)return new l(r.year,r.month,r.day)}return null}static fromNow(e="system"){let t=s.c9.fromJSDate(new Date).setZone((0,n.mT)(e));return new l(t.year,t.month,t.day)}}},15032(e,t,r){r.d(t,{k:()=>l});var n=r(73444),i=r(54218),s=r(34747);function o(e){if(!e)return"";let t=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g,r="";for(let n of e.match(t)||[])switch(n){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":r+=n;break;case"A":case"a":r+="a";break;default:r+=`'${n}'`}return r}const a="esri.core.sql.timeonly";class l{constructor(e,t,r,n){this._hour=e,this._minute=t,this._second=r,this._millisecond=n,this.declaredRootClass=a}static isTimeOnly(e){return"object"==typeof e&&!!e&&"declaredRootClass"in e&&e.declaredRootClass===a}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(e){return l.isTimeOnly(e)&&e.hour===this.hour&&e.minute===this.minute&&e.second===this.second&&e.millisecond===this.millisecond}clone(){return new l(this.hour,this.minute,this.second,this.millisecond)}isValid(){return(0,i.Fq)(this.hour)&&(0,i.Fq)(this.minute)&&(0,i.Fq)(this.second)&&(0,i.Fq)(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(e=null){return null===e||""===e?this.toString():(e=o(e))?s.c9.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(e,{locale:(0,n.JK)(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(e,t,r,n){let i=new l(e,t,r,n);return i.isValid()?i:null}static fromReader(e){if(!e)return null;let t=e.indexOf(":");if(t<0)return null;let r=e.indexOf(":",t+1);return r<0?null:new l(parseInt(e.slice(0,t),10),parseInt(e.slice(t+1,r),10),parseInt(e.slice(r+1),10),0)}static fromMilliseconds(e){if(e>864e5||e<0)return null;let t=Math.floor(e/1e3%60),r=Math.floor(e/6e4%60),n=Math.floor(e/36e5%24),i=Math.floor(e%1e3);return new l(n,r,t,i)}static fromDateJS(e){return new l(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}static fromDateTime(e){return new l(e.hour,e.minute,e.second,e.millisecond)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e||null===e)return null;let r=[];t?(t=o(t))&&r.push(t):(null===t||""===t)&&(r.push("HH:mm:ss"),r.push("HH:mm:ss.SSS"),r.push("hh:mm:ss a"),r.push("hh:mm:ss.SSS a"),r.push("HH:mm"),r.push("hh:mm a"),r.push("H:mm"),r.push("h:mm a"),r.push("H:mm:ss"),r.push("h:mm:ss a"),r.push("H:mm:ss.SSS"),r.push("h:mm:ss.SSS a"));for(let t of r){let r=s.c9.fromFormat(e,t);if(r.isValid)return new l(r.hour,r.minute,r.second,r.millisecond)}return null}plus(e,t){switch(e){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return l.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}return null}toUTCDateTime(){return s.c9.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}}},88930(e,t,r){r.d(t,{S1:()=>a,VW:()=>l,lL:()=>u,rb:()=>h,t:()=>c});var n=r(97770),i=(r(98623),r(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,r,s="system"){if("unknown"===r)return e;let o=new i.oh((0,n.wj)(s)),a=i.c9.fromJSDate(e,{zone:o}),l="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){let n=e.getTime(),i=c(t,r,"milliseconds");return new Date(n+i)}function u(e,t,r="system"){let{unit:s}=t,o=Math.max(1,Math.trunc(t.value)),a=new i.oh((0,n.wj)(r)),l=i.c9.fromJSDate(e,{zone:a}),u=e=>e-e%o;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{let e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*o,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function h(e){let t=s.exec(e);if(!t)return null;let{hh:r,mm:n,ss:i,ms:a}=t.groups;return Number(r)*o.hours+Number(n)*o.minutes+Number(i||0)*o.seconds+Number(a||0)}function c(e,t,r){return 0===e?0:e*o[t]/o[r]}},48526(e,t,r){r.d(t,{A:()=>y});var n,i=r(32198),s=r(4576),o=r(4718),a=r(91429),l=r(5443),u=r(91075),h=r(86738),c=r(16930),d=r(90634),m=r(47610),p=r(56993),f=r(43937);let y=n=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:n,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return i??=c.A.WGS84,{...e,hasM:r,hasZ:n,points:t,spatialReference:i}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,d.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:r,hasZ:i}=this;return new n({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:i})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,r=e.spatialReference;return!(null!=t!=(null!=r)||null!=t&&null!=r&&!t.equals(r))&&(0,s.aI)(this.points,e.points,m.v6)}addPoint(e){return(0,p.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(r.z=t[2],n=3),this.hasM&&(r.m=t[n]),new h.A(r)}removePoint(e){if(!this._validateInputs(e))return null;let t=new h.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)&&((0,p.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points")),this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,i.Cg)([(0,f.K)("points")],y.prototype,"writePoints",null),y=n=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>p});var n,i=r(32198),s=r(4718),o=r(91429),a=r(5443),l=r(91075),u=r(86738),h=r(16930),c=r(90634),d=r(56993),m=r(43937);let p=n=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:n,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return i??=h.A.WGS84,{...e,hasM:r,hasZ:n,paths:t,spatialReference:i}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){let e=(0,c.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let n=[];for(let t=0,r=e.length;t<r;t++)n[t]=e[t].toArray();t[r]=n}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new n;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],n=this.hasZ,i=this.hasM;return n&&!i?new u.A(r[0],r[1],r[2],void 0,this.spatialReference):i&&!n?new u.A(r[0],r[1],void 0,r[2],this.spatialReference):n&&i?new u.A(r[0],r[1],r[2],r[3],this.spatialReference):new u.A(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)&&((0,d.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths")),this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,n=t.map(e=>new u.A(e,r));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)&&((0,d.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths")),this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let n=this.paths[e];if(r&&(t<0||t>n.length)||!r&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],p.prototype,"curvePaths",void 0),(0,i.Cg)([(0,m.K)("curvePaths")],p.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],p.prototype,"paths",void 0),(0,i.Cg)([(0,m.K)("paths")],p.prototype,"writePaths",null),p=n=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],p),p.prototype.toJSON.isDefaultToJSON=!0},4197(e,t,r){r.d(t,{Vj:()=>h,cj:()=>u,jh:()=>s,l5:()=>a,yH:()=>l});var n=r(34275),i=r(9093);function s(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function o(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function a(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function l(e,t){if(0===t.length)return o(e);if(0===e.length)return o(t);let r=s(e.length+t.length);for(let t=0;t<e.length;++t)r[t]=e[t];for(let n=0;n<t.length;++n)r[e.length+n]=t[n];return r}function u(e){return[...e]}function h(e){let t=(0,i.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>A,C:()=>o,DC:()=>d,Ej:()=>w,Ie:()=>C,Jt:()=>v,Lu:()=>S,Ne:()=>T,RF:()=>c,TF:()=>g,VL:()=>p,aI:()=>R,fA:()=>a,gE:()=>u,gX:()=>_,hZ:()=>M,iT:()=>m,is:()=>F,pg:()=>b,uJ:()=>y,vI:()=>x,vY:()=>l,vt:()=>s,w1:()=>h,yr:()=>f}),r(35522);var n=r(5443),i=(r(19419),r(4197));function s(e=I){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function a(e,t,r,n,i,o,a=s()){return a[0]=e,a[1]=t,a[2]=r,a[3]=n,a[4]=i,a[5]=o,a}function l(e,t=s()){return function(e,t,r,n=s()){return M(n,D),function(e,t,r=0,n=t.length/3){let i=e[0],s=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)i=Math.min(i,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),o=Math.min(o,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=i,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=u}(n,e,t,r),n}(e,0,e.length/3,t)}function u(e,t=(0,i.jh)(24)){let[r,n,s,o,a,l]=e;return t[0]=r,t[1]=n,t[2]=s,t[3]=r,t[4]=n,t[5]=l,t[6]=r,t[7]=a,t[8]=s,t[9]=r,t[10]=a,t[11]=l,t[12]=o,t[13]=n,t[14]=s,t[15]=o,t[16]=n,t[17]=l,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function m(e,[t,r,n]){!function(e,t,r,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],n)}(e,t,r,n)}function p(e){return e[0]>=e[3]?0:e[3]-e[0]}function f(e){return e[1]>=e[4]?0:e[4]-e[1]}function y(e){return e[2]>=e[5]?0:e[5]-e[2]}function g(e){let t=p(e),r=y(e),n=f(e);return t*t+r*r+n*n}function _(e,t=[0,0,0]){return t[0]=e[0]+p(e)/2,t[1]=e[1]+f(e)/2,t[2]=e[2]+y(e)/2,t}function w(e,t=[0,0,0]){return t[0]=p(e),t[1]=f(e),t[2]=y(e),t}function b(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function S(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function T(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function x(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function M(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function C(e){return e?M(e,D):s(D)}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function A(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=-1/0,e[3]=n,e[4]=i,e[5]=1/0,e}function F(e){return 6===e.length}function R(e,t,r){if(null==e||null==t)return e===t;if(!F(e)||!F(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const D=[1/0,1/0,1/0,-1/0,-1/0,-1/0],I=[0,0,0,0,0,0];s(),r.d(t,["qv",0,D,"v_",0,I])},60408(e,t,r){function n(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function h(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function c(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>i,W0:()=>c,ZC:()=>n,fT:()=>s,uW:()=>l})},65864(e,t,r){r.d(t,{rS:()=>h,xD:()=>d});var n=r(5443),i=r(91075),s=r(48526),o=r(86738),a=r(39829),l=r(82799),u=r(60408);function h(e){return null==e?null:e instanceof i.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?n.A.fromJSON(e):null}const c={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function d(e){return e&&c[e]||null}},50498(e,t,r){var n=r(66552),i=r(5443),s=r(91075),o=r(48526),a=r(86738),l=r(39829),u=r(82799);const h=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:s.A,key:"type",typeMap:{extent:i.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}},m=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,c,"gy",0,h,"iI",0,m,"yR",0,d])},97770(e,t,r){r.d(t,{Ey:()=>D,F8:()=>R,J2:()=>C,Yq:()=>A,_m:()=>v,iS:()=>F,wj:()=>I});var n=r(66552),i=r(73444),s=r(98623),o=r(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},f={...p,second:"numeric"},y={hourCycle:"h23"},g={...p,...y},_={...f,...y},w={"short-date":h,"short-date-short-time":{...h,...p},"short-date-short-time-24":{...h,...g},"short-date-long-time":{...h,...f},"short-date-long-time-24":{...h,..._},"short-date-le":h,"short-date-le-short-time":{...h,...p},"short-date-le-short-time-24":{...h,...g},"short-date-le-long-time":{...h,...f},"short-date-le-long-time-24":{...h,..._},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...p},"long-month-day-year-short-time-24":{...c,...g},"long-month-day-year-long-time":{...c,...f},"long-month-day-year-long-time-24":{...c,..._},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...p},"day-short-month-year-short-time-24":{...d,...g},"day-short-month-year-long-time":{...d,...f},"day-short-month-year-long-time-24":{...d,..._},"long-date":m,"long-date-short-time":{...m,...p},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...f},"long-date-long-time-24":{...m,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":f},b=(0,n.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),S={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function T(){let e=(0,i.lR)();return(e&&S[e])??(0,i.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(S.bs="sr-Latn-CS");let x=new WeakMap;const M=w["short-date-short-time"];function C(e){return w[e]}function v(e){let{dateStyle:t,timeStyle:r,hour12:n,year:i,month:s}=e,o={};return t?o.dateStyle=t:i&&(o.year=i,o.month=s||void 0),r&&!o.year&&(o.timeStyle=r,o.hour12="auto"===n?void 0:"always"===n),o}function A(e,t=M){return function(e){let t=x.get(e);if(!t){let r=T(),n=I(e.timeZone??"system"),i={...e,timeZone:n};t=new Intl.DateTimeFormat(r,i),x.set(e,t)}return t}(t).format(e)}function F(e,t=M){return A(new Date(e),{...t,...u,...l})}function R(e,t=M){return A(new Date(`1970-01-01T${e}Z`),{...t,...u,...a})}function D(e,t=M){let r=o.c9.fromISO(e,{setZone:!0});if(!r.isValid)return e;if(t.timeZone)return A(r.toJSDate(),t);let n=0===r.offset?"UTC":t.timeZone,i={...t,timeZone:n};return r.toLocaleString(i,{locale:T()})}function I(e){switch(e){case"system":return s.N;case s.L:return"UTC";default:return e}}(0,i.Ml)(()=>{x=new WeakMap}),r.d(t,["_v",0,b])},73444(e,t,r){r.d(t,{JK:()=>l,Ml:()=>y,QC:()=>c,lR:()=>h,oQ:()=>p});var n=r(36563);let i;r(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){let e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return s??e??t??"en"}function l(){return void 0===i&&(i=a()),i}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=l()){return d(e)?.language}function c(e=l()){let t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=l()){return u.exec(e)?.groups}const m=[];function p(e){return m.push(e),(0,n.hA)(()=>{m.splice(m.indexOf(e),1)})}new Map;const f=[];function y(e){return f.push(e),(0,n.hA)(()=>f.splice(f.indexOf(e),1))}function g(){let e=a();i!==e&&([...f].forEach(t=>t(e)),i=e,[...m].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},6518(e,t,r){r.d(t,{F:()=>a});var n=r(44208),i=r(75503),s=r(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new i.wq(9,(0,n.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let e=Array(this._idByBounds.size),t=0;this._idByBounds.forEach((r,n)=>{e[t++]=n}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let e=(0,s.Ie)();for(let t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){let t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,r){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,r)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){let t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,r){r.d(t,{A:()=>m});var n=r(4576),i=r(49186),s=r(65529),o=r(53966),a=r(70328),l=r(19419),u=r(90708),h=r(6518),c=r(37730);const d=(0,a.vt)();class m{constructor(e){this.geometryInfo=e,this._boundsStore=new h.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=c.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;let[t,r,n,i]=this.fullBounds;return{xmin:t,ymin:r,xmax:n,ymax:i,spatialReference:e}}add(e){this._add(e),this._emitChanged()}addMany(e){for(let t of e)this._add(t);this._emitChanged()}upsertMany(e){let t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(n.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){let t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(let t of e){let e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(let r of e){let e=this._boundsStore.get(r.objectId);e&&t((0,a.Jt)(d,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;let t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new i.A("featurestore:invalid-feature","feature id is missing",{feature:e}));let r,n=this._featuresById.get(t);n?(e.displayId=n.displayId,r=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),e.geometry?.coords?.length?(r=(0,u.jQ)(r??(0,l.vt)(),e.geometry),null!=r&&this._boundsStore.set(t,r),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0):(this._boundsStore.set(t,null),this._featuresById.set(t,e))}_upsert(e){let t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new i.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;let r=this._featuresById.get(t);if(!r)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(r)??0;let{geometry:n,attributes:s}=e;for(let e in s)r.attributes[e]=s[e];return n&&(r.geometry=n,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),n)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(r)??0,r}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);let t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,r){var n=r(43334);const i={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,r)=>new n.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};r.d(t,["T",0,i])},33771(e,t,r){r.r(t),r.d(t,{default:()=>b});var n=r(60999),i=r(49186),s=r(53966),o=r(34727),a=r(17676),l=r(67076),u=r(21325),h=r(90708),c=r(83221),d=r(31464),m=r(75752),p=r(85113),f=r(82832),y=r(34322),g=r(95466),_=r(54218);r(98623);const w="esri.layers.WFSLayer";class b{constructor(){this._customParameters=null,this._queryEngine=null,this._supportsPagination=!0}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(e,t={}){let{getFeatureUrl:r,getFeatureOutputFormat:n,fields:s,geometryType:o,featureType:l,maxRecordCount:u,maxTotalRecordCount:h,maxPageCount:p,objectIdField:f,customParameters:_}=e,{spatialReference:w,getFeatureSpatialReference:b}=(0,y.UH)(r,l,e.spatialReference);try{await(0,d.Nk)(b,w)}catch{throw new i.A("unsupported-projection","Projection not supported",{inSpatialReference:b,outSpatialReference:w})}(0,a.Te)(t),this._customParameters=_,this._featureType=l,this._fieldsIndex=g.A.fromLayerJSON({fields:s,dateFieldsTimeReference:s.some(e=>"esriFieldTypeDate"===e.type)?{timeZoneIANA:"UTC"}:null}),this._geometryType=o,this._getFeatureUrl=r,this._getFeatureOutputFormat=n,this._getFeatureSpatialReference=b,this._maxRecordCount=u,this._maxTotalRecordCount=h,this._maxPageCount=p,this._objectIdField=f,this._spatialReference=w;let T=await this._snapshotFeatures(t);if(T.errors.length>0&&(this._supportsPagination=!1,T=await this._snapshotFeatures(t),T.errors.length>0))throw T.errors[0];let x={type:"object-id",fieldName:f};return this._queryEngine=new m.do({fieldsIndex:this._fieldsIndex,geometryType:o,hasM:!1,hasZ:!1,featureIdInfo:x,spatialReference:w,timeInfo:null,featureStore:new c.A({geometryType:o,hasM:!1,hasZ:!1})}),this._queryEngine.featureStore.addMany(T.features),{warnings:S(T),extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async applyEdits(){throw new i.A("wfs-source:editing-not-supported","applyEdits() is not supported on WFSLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),(await this._queryEngine.executeQueryForIds(e,t.signal)).filter(_.Et)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){return this._customParameters=e.customParameters,this._maxRecordCount=e.maxRecordCount,this._maxTotalRecordCount=e.maxTotalRecordCount,this._maxPageCount=e.maxPageCount,this._snapshotTask?.abort(),this._snapshotTask=(0,n.UT)(e=>this._snapshotFeatures({signal:e})),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),this._queryEngine.featureStore.addMany(e.features);for(let t of S(e))s.A.getLogger(w).warn(new l.A("wfs-layer:refresh-warning",t.message,t.details));e.errors?.length&&s.A.getLogger(w).warn(new l.A("wfs-layer:refresh-error","Refresh completed with errors",{errors:e.errors}))},()=>{this._queryEngine.featureStore.clear()}),await this._waitSnapshotComplete(),{extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _snapshotFeatures(e){let t=e?.signal,r=this._maxTotalRecordCount,n=this._maxPageCount,i=this._supportsPagination&&n>1?await(0,y.E)(this._getFeatureUrl,this._featureType.typeName,{customParameters:this._customParameters,signal:t}):void 0,s=[],l=[];if(null==i)try{s=await this._singleQuery(t)}catch(e){(0,a.zf)(e)||l.push(e)}else{let e=function*(e,t,r){for(let n=0;n<t;n++)yield e._pageQuery(n,r)}(this,(0,o.qE)(Math.ceil(Math.min(i,r)/this._maxRecordCount),1,n),t);await Promise.allSettled(Array.from({length:10}).map(()=>async function(e,t,r){let n=e.next();for(;!n.done;){try{let e=await n.value;t.push(...e)}catch(e){(0,a.zf)(e)||r.push(e)}n=e.next()}}(e,s,l)))}return(0,a.Te)(t),{features:s,totalRecordCount:i,maxTotalRecordCount:r,maxPageCount:n,errors:l}}async _singleQuery(e){let t=Number.isFinite(this._maxRecordCount)&&this._maxRecordCount>0?this._maxRecordCount:void 0,r=await(0,y.x$)(this._getFeatureUrl,this._featureType.typeName,this._getFeatureSpatialReference,this._getFeatureOutputFormat,{customParameters:this._customParameters,count:t,signal:e});return this._processGeoJSON(r,{signal:e})}async _pageQuery(e,t){let r=e*this._maxRecordCount,n=await(0,y.x$)(this._getFeatureUrl,this._featureType.typeName,this._getFeatureSpatialReference,this._getFeatureOutputFormat,{customParameters:this._customParameters,startIndex:r,count:this._maxRecordCount,signal:t});return this._processGeoJSON(n,{startIndex:r,signal:t})}_processGeoJSON(e,t){(0,p.sO)(e,this._getFeatureSpatialReference.wkid);let{startIndex:r,signal:n}=t;(0,a.Te)(n);let i=(0,p.bd)(e,{geometryType:this._geometryType,hasZ:!1,objectIdField:this._objectIdField});if(!(0,u.aI)(this._spatialReference,this._getFeatureSpatialReference))for(let e of i)null!=e.geometry&&(e.geometry=(0,h.Ux)((0,d.Cv)((0,h.zv)(e.geometry,this._geometryType,!1,!1),this._getFeatureSpatialReference,this._spatialReference)));let s=r??1;for(let e of i){let t={};(0,f.MB)(this._fieldsIndex,t,e.attributes,!0),e.attributes=t,t[this._objectIdField]??(e.objectId=t[this._objectIdField]=s++)}return i}}function S(e){let t=[];return null!=e.totalRecordCount&&(e.features.length<e.totalRecordCount&&t.push({name:"wfs-layer:maxRecordCount-too-low",message:`Could only fetch ${e.features.length} of ${e.totalRecordCount} in ${e.maxPageCount} queries. Try increasing the value of WFSLayer.maxRecordCount.`,details:{recordCount:e.features.length,totalRecordCount:e.totalRecordCount}}),e.totalRecordCount>e.maxTotalRecordCount&&t.push({name:"wfs-layer:large-dataset",message:`The number of ${e.totalRecordCount} features exceeds the maximum allowed of ${e.maxTotalRecordCount}.`,details:{recordCount:e.features.length,totalRecordCount:e.totalRecordCount,maxTotalRecordCount:e.maxTotalRecordCount}})),t}},85113(e,t,r){r.d(t,{BM:()=>C,bd:()=>v,sO:()=>M,xD:()=>c});var n=r(67482),i=r(49186),s=r(21325),o=r(90708),a=r(43334),l=r(92722),u=r(30524);const h={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(e){return h[e]}function*d(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(let t of e.features)t&&(yield t)}}function*m(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(let t of e.coordinates)yield*t;break;case"MultiPolygon":for(let t of e.coordinates)for(let e of t)yield*e}}function p(e){for(let t of e)if(t.length>2)return!0;return!1}function f(e){let t=0;for(let r=0;r<e.length;r++){let n=e[r],i=e[(r+1)%e.length];t+=n[0]*i[1]-i[0]*n[1]}return t<=0}function y(e){let t=e[0],r=e[e.length-1];(t[0]!==r[0]||t[1]!==r[1]||t[2]!==r[2])&&e.push(t)}function g(e,t){let{coordinates:r,type:n}=e,i=t.hasZ??!1;switch(n){case"Point":return new l.A([],[...r],i,!1);case"LineString":return(0,o.Ap)({paths:[r],hasZ:!0},i,!1);case"MultiLineString":return(0,o.Ap)({paths:r,hasZ:!0},i,!1);case"MultiPoint":return(0,o.PR)({points:r,hasZ:!0},i,!1);case"Polygon":case"MultiPolygon":{let e=new l.A([],[],i,!1);for(let t of"Polygon"===n?[r]:r){_(e,t[0],i);for(let r=1;r<t.length;r++)w(e,t[r],i)}return e}}}function _(e,t,r){y(t),function(e){return!f(e)}(t)?S(e,t,r):b(e,t,r)}function w(e,t,r){y(t),function(e){return f(e)}(t)?S(e,t,r):b(e,t,r)}function b(e,t,r){for(let n of t)T(e,n,r);e.lengths.push(t.length)}function S(e,t,r){for(let n=t.length-1;n>=0;n--)T(e,t[n],r);e.lengths.push(t.length)}function T(e,[t,r,n],i){e.coords.push(t,r),i&&e.coords.push(n||0)}function x(e){switch(typeof e){case"string":return(0,n.C)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function M(e,t=4326){if(!e)throw new i.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new i.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});let{crs:r}=e;if(!r)return;let n="string"==typeof r?r:"name"===r.type?r.properties.name:"EPSG"===r.type?r.properties.code:null,o=(0,s.oT)({wkid:t})?RegExp(".*(CRS84H?|4326)$","i"):RegExp(`.*(${t})$`,"i");if(!n||!o.test(n))throw new i.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:r})}function C(e,t={}){let r,n=[],i=new Set,s=new Set,o=!1,a=null,l=!1,{geometryType:h=null}=t;for(let t of d(e)){let{geometry:e,properties:d,id:f}=t;if((!e||(h||=c(e.type),c(e.type)===h))&&(o||=p(m(e)),l||(l=null!=f,l&&(r=typeof f,d&&(a=Object.keys(d).filter(e=>d[e]===f)))),d&&a&&l&&null!=f&&(a.length>1?a=a.filter(e=>d[e]===f):1===a.length&&(a=d[a[0]]===f?a:[])),d))for(let e in d){if(i.has(e))continue;let t=x(d[e]);if("unknown"===t){s.add(e);continue}s.delete(e),i.add(e);let r=(0,u.rS)(e);r&&n.push({name:r,alias:e,type:t})}}let f=(0,u.rS)(1===a?.length&&a[0]||null)??void 0;if(f)for(let e of n)if(e.name===f&&(0,u.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:h,hasZ:o,objectIdFieldName:f,objectIdFieldType:r,unknownFields:Array.from(s)}}function v(e,t){return Array.from(function*(e,t={}){let{geometryType:r,objectIdField:n}=t;for(let i of e){let{geometry:e,properties:s,id:o}=i;if(e&&c(e.type)!==r)continue;let l,u=s||{};n&&(l=u[n],null!=o&&!l&&(u[n]=l=o)),yield new a.Om(e&&g(e,t),u,null,l)}}(d(e),t))}},82832(e,t,r){r.d(t,{$1:()=>_,CR:()=>g,MB:()=>p,Yx:()=>h,bP:()=>d});var n=r(67482),i=r(18370),s=r(60408),o=r(21325),a=r(30524);class l{constructor(e){this.description=e,this.code=null}}class u{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new l(e)}}function h(e){return new u(e)}class c{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function d(e){return new c(e)}const m=new Set;function p(e,t,r,n=!1){m.clear();for(let i in r){let s=e.get(i);if(!s)continue;let o=f(s,r[i]);if(m.add(s.name),s&&(n||s.editable)){let e=(0,a.CJ)(s,o);if(e)return h((0,a.uo)(e,s,o));t[s.name]=o}}for(let t of e.requiredFields??[])if(!m.has(t.name))return h(`missing required field "${t.name}"`);return null}function f(e,t){let r=t;return(0,a.WA)(e)&&"string"==typeof t?r=(0,a.XT)(t):(0,a.yM)(e)&&null!=t&&"string"!=typeof t?r=String(t):(0,a.vE)(e)&&"string"==typeof t&&(r=(0,n._)(t)),(0,a.WX)(r)}const y=(0,i.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(3456)]).then(()=>r(3637)));function g(e,t){if(!(0,s.Bi)(e)&&!(0,s.Rg)(e)||!(0,o.fn)(t))return e;let r=y.module;if(null==r)throw TypeError("simplify operator not loaded");return r.simplifyExecute({...e,spatialReference:t})??e}async function _(e,t){(0,o.fn)(e)&&("esriGeometryPolygon"===t||"esriGeometryPolyline"===t)&&await y.getImportPromise()}const w={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]},b={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsQueryAttachmentsCountOnly:!1,supportsQueryAttachmentOrderByFields:!1,supportsQueryAttachmentWithTypeWildcard:!1,supportsQueryBins:!0,supportsQueryPivot:!1,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:["EnvelopeAggregate","CentroidAggregate","ConvexHullAggregate"],supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0,supportsQueryWithCacheHint:!0},queryBinsCapabilities:w},S={...b,supportsCoordinatesQuantization:!1,supportsReturningQueryGeometry:!1,advancedQueryCapabilities:{...b.advancedQueryCapabilities,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:[],supportsReturningGeometryCentroid:!1,supportsQueryWithDistance:!1,supportsReturningQueryExtent:!1,supportsDisjointSpatialRel:!1},queryBinsCapabilities:{...w,supportedStatisticTypes:w.supportedStatisticTypes.filter(e=>"EnvelopeAggregate"!==e&&"CentroidAggregate"!==e&&"ConvexHullAggregate"!==e)}};r.d(t,["CI",0,b,"Xn",0,S])},34322(e,t,r){r.d(t,{E:()=>O,Fu:()=>T,O8:()=>F,UH:()=>L,YW:()=>R,mG:()=>A,x$:()=>z});var n=r(56507),i=r(49186),s=r(5479),o=r(84952),a=r(5443),l=r(99917),u=r(16930),h=r(21325),c=r(50498),d=r(85113),m=r(13043),p=r(60694),f=r(20437),y=r(30524);const g="xlink:href",_="2.0.0",w="__esri_wfs_id__",b="wfs-layer:feature-type-not-found",S="wfs-layer:unknown-geometry-type";async function T(e,t){let r=function(e){let t=E(e);(function(e){let t=e.firstElementChild?.getAttribute("version");if(t&&t!==_)throw new i.A("wfs-layer:unsupported-wfs-version",`Unsupported WFS version ${t}. Supported version: ${_}`)})(t),B(t);let r=t.firstElementChild,n=(0,s.PP)(function(e){return(0,m.i)(e,{FeatureTypeList:{FeatureType:e=>{let t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",defaultSpatialReference:4326,supportedSpatialReferences:[]},r=new Set;return(0,m.p)(e,{Name:e=>{let{name:r,prefix:n}=k(e.textContent);t.typeName=`${n}:${r}`,t.name=r,t.namespacePrefix=n,t.namespaceUri=e.lookupNamespaceURI(n)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=a.A.fromJSON(function(e){let t,r,n,i;for(let s of e.children)switch(s.localName){case"LowerCorner":[t,r]=s.textContent.split(" ").map(e=>Number.parseFloat(e));break;case"UpperCorner":[n,i]=s.textContent.split(" ").map(e=>Number.parseFloat(e))}return{xmin:t,ymin:r,xmax:n,ymax:i,spatialReference:h.KK}}(e))},DefaultCRS:e=>{let n=v(e);n&&(t.defaultSpatialReference=n,r.add(n))},OtherCRS:e=>{let t=v(e);t&&r.add(t)}}),t.title||=t.name,r.add(4326),t.supportedSpatialReferences.push(...r),t}}})}(r));return{operations:C(r),get featureTypes(){return Array.from(n())},readFeatureTypes:n}}((await(0,n.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:_,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,o.m3)(e)&&((0,o.FX)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,o.lM)(t.operations.DescribeFeatureType.url)),(0,o.FX)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,o.lM)(t.operations.GetFeature.url)))}(e,r),r}const x=["json","application/json; subtype=geojson; charset=utf-8","application/json; subtype=geojson","application/json","geojson","application/geo+json"];function M(e){for(let t of x){let r=e.findIndex(e=>e.toLowerCase()===t);if(r>=0)return e[r]}return null}function C(e){let t=!0,r={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}},n=[],s=[];if((0,m.p)(e,{OperationsMetadata:{Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&n.push(e)}}}},Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{r.GetCapabilities.url=e.getAttribute(g)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{r.DescribeFeatureType.url=e.getAttribute(g)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{r.GetFeature.url=e.getAttribute(g)}}},Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&s.push(e)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{r.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),r.GetFeature.outputFormat=M(s)??M(n),!t)throw new i.A("wfs-layer:kvp-encoding-not-supported","WFS service doesn't support key/value pair (KVP) encoding");if(null==r.GetFeature.outputFormat)throw new i.A("wfs-layer:geojson-not-supported","WFS service doesn't support GeoJSON output format");return r}function v(e){let t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);if(!Number.isNaN(t))return t}function A(e,t,r){return(0,s.I6)(e,e=>r?e.name===t&&e.namespaceUri===r:e.typeName===t||e.name===t)}async function F(e,t,r,n={}){let{featureType:s,extent:o}=await async function(e,t,r,n={}){let s=e.readFeatureTypes(),o=t?A(s,t,r):s.next().value,{spatialReference:a=new u.A({wkid:o?.defaultSpatialReference})}=n;if(null==o)throw t?new i.A(b,`The type '${t}' could not be found in the service`):new i.A("wfs-layer:empty-service","The service is empty");let c=o.extent;if(c&&!(0,h.aI)(c.spatialReference,a))try{await(0,l.initializeProjection)(c.spatialReference,a,void 0,n),c=(0,l.project)(c,a)}catch{throw new i.A("wfs-layer:unsupported-spatial-reference","Projection not supported")}return{extent:c,spatialReference:a,featureType:o}}(e,t,r,n),{spatialReference:a}=L(e.operations.GetFeature.url,s,n.spatialReference),{fields:c,geometryType:d,swapXY:m,objectIdField:p,geometryField:f}=await async function(e,t,r,n={}){let{typeName:s}=t,[o,a]=await Promise.allSettled([I(e.operations.DescribeFeatureType.url,s,n),D(e,s,r,n)]),l=e=>{let t=`An error occurred while getting info about the feature type '${s}'`;return new i.A("wfs-layer:getWFSLayerTypeInfo-error",t,{error:e})};if("rejected"===o.status)throw l(o.reason);if("rejected"===a.status)throw l(a.reason);let{fields:u,errors:h}=o.value??{},c=o.value?.geometryType||a.value?.geometryType,d=a.value?.swapXY??!1;if(null==c)throw new i.A(S,`The geometry type could not be determined for type '${s}`,{typeName:s,geometryType:c,fields:u,errors:h});return{...R(u??[]),geometryType:c,swapXY:d}}(e,s,a,n);return{url:e.operations.GetCapabilities.url,name:s.name,namespaceUri:s.namespaceUri,fields:c,geometryField:f,geometryType:d,objectIdField:p,spatialReference:n.spatialReference??new u.A({wkid:s.defaultSpatialReference}),extent:o,swapXY:m,wfsCapabilities:e,customParameters:n.customParameters}}function R(e){let t=e.find(e=>"geometry"===e.type),r=e.find(e=>"oid"===e.type);return e=e.filter(e=>"geometry"!==e.type),r||(r=new f.A({name:w,type:"oid",alias:w}),e.unshift(r)),{geometryField:t?.name??null,objectIdField:r.name,fields:e}}async function D(e,t,r,i={}){let s,o=!1,[a,l]=await Promise.all([z(e.operations.GetFeature.url,t,r,e.operations.GetFeature.outputFormat,{...i,count:1}),(0,n.A)(e.operations.GetFeature.url,{responseType:"text",query:N(t,r,void 0,{...i,count:1}),signal:i?.signal})]),u="FeatureCollection"===a.type&&a.features[0]?.geometry;if(u){let e;switch(s=c.gy.fromJSON((0,d.xD)(u.type)),u.type){case"Point":e=u.coordinates;break;case"LineString":case"MultiPoint":e=u.coordinates[0];break;case"MultiLineString":case"Polygon":e=u.coordinates[0][0];break;case"MultiPolygon":e=u.coordinates[0][0][0]}let t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(l.data);if(t){let r=e[0].toFixed(3),n=e[1].toFixed(3),i=parseFloat(t[1]).toFixed(3);r===parseFloat(t[2]).toFixed(3)&&n===i&&(o=!0)}}return{geometryType:s,swapXY:o}}async function I(e,t,r){return function(e,t){let{name:r}=k(e),n=E(t);B(n);let o=(0,s.I6)((0,m.i)(n.firstElementChild,{element:e=>e}),e=>e.getAttribute("name")===r);if(null!=o){let e=o.getAttribute("type"),t=e?(0,s.I6)((0,m.i)(n.firstElementChild,{complexType:e=>e}),t=>t.getAttribute("name")===k(e).name):(0,s.I6)((0,m.i)(o,{complexType:e=>e}),()=>!0);if(t)return function(e){let t,r=[],n=[],s=(0,m.i)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(let o of s){let s,a,l=o.getAttribute("name");if(!l)continue;if(o.hasAttribute("type")?s=k(o.getAttribute("type")).name:(0,m.p)(o,{simpleType:{restriction:e=>(s=k(e.getAttribute("base")).name,{maxLength:e=>{a=+e.getAttribute("value")}})}}),!s)continue;let u="true"===o.getAttribute("nillable"),h=!1;switch(s.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":n.push(new f.A({name:l,alias:l,type:"integer",nullable:u,length:(0,y._b)("integer")}));break;case"float":case"double":case"decimal":n.push(new f.A({name:l,alias:l,type:"double",nullable:u,length:(0,y._b)("double")}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":n.push(new f.A({name:l,alias:l,type:"string",nullable:u,length:a??(0,y._b)("string")}));break;case"datetime":case"date":n.push(new f.A({name:l,alias:l,type:"date",nullable:u,length:a??(0,y._b)("date")}));break;case"pointpropertytype":t="point",h=!0;break;case"multipointpropertytype":t="multipoint",h=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":t="polyline",h=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":t="polygon",h=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":h=!0,r.push(new i.A(S,`geometry type '${s}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:r.push(new i.A("wfs-layer:unknown-field-type",`Unknown field type '${s}'`,{type:(new XMLSerializer).serializeToString(e)}))}h&&n.push(new f.A({name:l,alias:l,type:"geometry",nullable:u}))}for(let e of n)if("integer"===e.type&&!e.nullable&&P.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:t,fields:n,errors:r}}(t)}throw new i.A(b,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(n)})}(t,(await(0,n.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:_,TYPENAME:t,TYPENAMES:t,...r?.customParameters},signal:r?.signal})).data)}const P=new Set(["objectid","fid"]);async function z(e,t,r,s,o){let{data:a}=await(0,n.A)(e,{responseType:"text",query:N(t,r,s,o),signal:o?.signal});a=a.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{return JSON.parse(a)}catch(e){throw new i.A("wfs-layer:malformed-json","Error while parsing the response",{response:a,error:e})}}function N(e,t,r,n){let i="number"==typeof t?t:t.wkid;return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:_,TYPENAMES:e,OUTPUTFORMAT:r,SRSNAME:"EPSG:"+i,STARTINDEX:n?.startIndex,COUNT:n?.count,...n?.customParameters}}async function O(e,t,r){let i=await(0,n.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:_,TYPENAMES:t,RESULTTYPE:"hits",...r?.customParameters},signal:r?.signal}),s=/numberMatched=["'](?<numberMatched>\d+)["']/gi.exec(i.data);if(s?.groups)return+s.groups.numberMatched}function E(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function k(e){let[t,r]=e.split(":");return{prefix:r?t:"",name:r??t}}function B(e){let t="",r="";if((0,m.p)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{r=e.textContent}})}),t)throw new i.A(`wfs-layer:${t}`,r)}function L(e,t,r){let n={wkid:t.defaultSpatialReference},i=null==r?.wkid?n:{wkid:r.wkid};return{spatialReference:i,getFeatureSpatialReference:(0,p.Fi)(e)||i.wkid&&t.supportedSpatialReferences.includes(i.wkid)?{wkid:i.wkid}:{wkid:t.defaultSpatialReference}}}r.d(t,["i5",0,w])},13043(e,t,r){function n(e,t){if(e&&t)for(let r of e.children)if(r.localName in t){let e=t[r.localName];if("function"==typeof e){let t=e(r);t&&n(r,t)}else n(r,e)}}function*i(e,t){for(let r of e.children)if(r.localName in t){let e=t[r.localName];"function"==typeof e?yield e(r):yield*i(r,e)}}r.d(t,{i:()=>i,p:()=>n})},39357(e,t,r){r.d(t,{A:()=>a});var n,i=r(32198),s=r(25482),o=r(91429);let a=n=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=n=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,r){r.d(t,{A:()=>h});var n,i=r(32198),s=r(4718),o=r(91429),a=r(39357),l=r(76357),u=r(93223);let h=class extends l.A{static{n=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){let r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new n({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],h.prototype,"codedValues",void 0),(0,i.Cg)([(0,u.e)({codedValue:"coded-value"})],h.prototype,"type",void 0),h=n=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],h)},76357(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(66552),s=r(25482),o=r(91429),a=r(93223);const l=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,n.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},20437(e,t,r){r.d(t,{A:()=>p});var n,i=r(32198),s=r(66552),o=r(25482),a=r(91429),l=r(78888),u=r(8631),h=r(98453),c=r(36005),d=r(93223);const m=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",marginOfError:"margin-of-error",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let p=class extends o.o{static{n=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?m.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],p.prototype,"defaultValue",void 0),(0,i.Cg)([(0,a.MZ)()],p.prototype,"description",void 0),(0,i.Cg)([(0,c.w)("description")],p.prototype,"readDescription",null),(0,i.Cg)([(0,a.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],p.prototype,"domain",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"editable",void 0),(0,i.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],p.prototype,"length",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"nullable",void 0),(0,i.Cg)([(0,d.e)(h.m)],p.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)()],p.prototype,"valueType",void 0),(0,i.Cg)([(0,c.w)("valueType",["description"])],p.prototype,"readValueType",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],p.prototype,"visible",void 0),p=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.Field")],p)},95466(e,t,r){r.d(t,{A:()=>u});var n=r(49186),i=r(53966),s=r(12195),o=r(30524),a=r(98623),l=r(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],c(e))}static fromLayerJSON(e){return new u(e.fields??[],c(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let r=[];for(let e of this.fields){let t=e?.name,n=(0,o.GZ)(t);if(t&&n){let i=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(n,e),r.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,o.te)(e)&&!(0,o.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)!(0,o.te)(e)&&!(0,o.Xz)(e)&&!e.nullable&&void 0===(0,o.lD)(e)&&this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(i.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,s.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function c(e){let t=new Map;if(!e.fields)return t;let r=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:i}=e,s=(n?"startField"in n?n.startField:n.startTimeField:"")??"",u=(n?"endField"in n?n.endField:n.endTimeField:"")??"",c=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,d=i?function(e){return"timeZone"in e}(i)?i.timeZone??c:i.dateFieldsTimeReference?(0,l.ZS)(i.dateFieldsTimeReference):c??"UTC":null,m=n?function(e){return"timeZone"in e}(n)?n.timeZone??c:n.timeReference?(0,l.ZS)(n.timeReference):c:null,p=new Map([[(0,o.NF)(i?.creationDateField??""),d],[(0,o.NF)(i?.editDateField??""),d],[(0,o.NF)(s),m],[(0,o.NF)(u),m]]);for(let{name:n,type:i}of e.fields)if(h.has(i))t.set(n,a.L);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(n,null);else if(r)t.set(n,a.L);else{let e=p.get((0,o.NF)(n??""))??c;t.set(n,e)}return t}},41628(e,t,r){r.d(t,{A:()=>l});var n,i=r(32198),s=r(91429),o=r(76357),a=r(93223);let l=class extends o.A{static{n=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new n({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,i.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=n=(0,i.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],l)},8631(e,t,r){r.d(t,{r:()=>d,g:()=>c});var n,i=r(53177),s=r(76357),o=r(32198),a=r(91429),l=r(93223);let u=class extends s.A{static{n=this}constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=n=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var h=r(41628);const c={key:"type",base:s.A,typeMap:{range:h.A,"coded-value":i.A,inherited:u}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return h.A.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453(e,t,r){const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});r.d(t,["m",0,n])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3390],{3390(n,e,t){t.r(e),t.d(e,{registerFunctions:()=>u});var a=t(67862),r=t(85935),i=t(78878),o=t(54218);function u(n){"async"===n.mode&&(n.functions.domain=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,o)=>{if((0,i.E)(o,2,3,t),(0,i.h)(o[0])){let n=(0,i.W)(o[0],(0,i.w)(o[1]),void 0===o[2]?void 0:o[2]);return(0,a.OT)(n)}if((0,i.k)(o[0])){await o[0]._ensureLoaded();let n=(0,i.a6)((0,i.w)(o[1]),o[0],null,void 0===o[2]?void 0:o[2],!1);return(0,a.OT)(n)}throw new r.D$("InvalidParameter",t)})},n.functions.subtypes=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,o)=>{if((0,i.E)(o,1,1,t),(0,i.h)(o[0]))return(0,a.Dy)((0,i._)(o[0]),!0,!1);if((0,i.k)(o[0]))return await o[0]._ensureLoaded(),(0,a.Dy)(o[0].subtypeMetadata(),!0,!1);throw new r.D$("InvalidParameter",t)})},n.functions.domainname=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,a)=>{if((0,i.E)(a,2,4,t),(0,i.h)(a[0]))return(0,i.Y)(a[0],(0,i.w)(a[1]),a[2],void 0===a[3]?void 0:a[3]);if((0,i.k)(a[0])){await a[0]._ensureLoaded();let n=(0,i.a6)((0,i.w)(a[1]),a[0],null,void 0===a[3]?void 0:a[3],!0);return(0,i.a7)(n,a[2])}throw new r.D$("InvalidParameter",t)})},n.signatures.push({name:"domainname",min:2,max:4}),n.functions.domaincode=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,a)=>{if((0,i.E)(a,2,4,t),(0,i.h)(a[0]))return(0,i.X)(a[0],(0,i.w)(a[1]),a[2],void 0===a[3]?void 0:a[3]);if((0,i.k)(a[0])){await a[0]._ensureLoaded();let n=(0,i.a6)((0,i.w)(a[1]),a[0],null,void 0===a[3]?void 0:a[3],!0);return(0,i.a8)(n,a[2])}throw new r.D$("InvalidParameter",t)})},n.signatures.push({name:"domaincode",min:2,max:4}),n.functions.text=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,a)=>{if((0,i.E)(a,1,2,t),(0,i.k)(a[0])){let e=(0,i.N)(a[1],"");if(!(0,o.Kg)(e))throw new r.D$("InvalidParameter",t);if(""===e)return a[0].castToText();if("schema"===e.toLowerCase())return a[0].convertToText("schema",n.abortSignal);if("featureset"===e.toLowerCase())return a[0].convertToText("featureset",n.abortSignal);throw new r.D$("InvalidParameter",t)}return(0,i.t)(a[0],a[1])})},n.functions.gdbversion=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,a)=>{if((0,i.E)(a,1,1,t),(0,i.h)(a[0]))return a[0].gdbVersion();if((0,i.k)(a[0]))return(await a[0].load()).gdbVersion;throw new r.D$("InvalidParameter",t)})},n.functions.schema=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,o)=>{if((0,i.E)(o,1,1,t),(0,i.k)(o[0]))return await o[0].load(),(0,a.Dy)(o[0].schema(),!0,!1);if((0,i.h)(o[0]))return(0,a.Dy)((0,i.Z)(o[0]),!0,!1);throw new r.D$("InvalidParameter",t)})})}}}]);