@arcgis/core 5.1.0-next.87 → 5.1.0-next.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/Graphic.js +1 -1
  2. package/analysis/LineOfSightAnalysisObserver.d.ts +2 -2
  3. package/analysis/LineOfSightAnalysisTarget.d.ts +2 -2
  4. package/applications/Components/arcadeUtils.d.ts +23 -0
  5. package/applications/Components/arcadeUtils.js +2 -0
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/00e9e25269d5776f8645.js +1 -0
  8. package/assets/esri/core/workers/chunks/015fc0a17b17d69cc3bb.js +1 -0
  9. package/assets/esri/core/workers/chunks/0a6df243b18acae471be.js +1 -0
  10. package/assets/esri/core/workers/chunks/0cc4b3100a7a453bd058.js +1 -0
  11. package/assets/esri/core/workers/chunks/10cf6a70bf79f04a7208.js +1 -0
  12. package/assets/esri/core/workers/chunks/169ca3724053fc046d1b.js +1 -0
  13. package/assets/esri/core/workers/chunks/206bdfd868a9ef88f3a8.js +1 -0
  14. package/assets/esri/core/workers/chunks/2343b1105bc4c1b4a086.js +1 -0
  15. package/assets/esri/core/workers/chunks/{f89b7b0ccfbd1e5f9a0f.js → 3092184350d66c79f610.js} +1 -1
  16. package/assets/esri/core/workers/chunks/3469df5c4846b0cee012.js +1 -0
  17. package/assets/esri/core/workers/chunks/{26f804c92077c11c626d.js → 394812e19b6915d560b0.js} +1 -1
  18. package/assets/esri/core/workers/chunks/3feec3d08424b94e1bcf.js +1 -0
  19. package/assets/esri/core/workers/chunks/{ce4dfc3a470230ddc9e4.js → 43f58604ba4a94a9167c.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{ff57a071156d8a7e47be.js → 456d269e3982c437010a.js} +1 -1
  21. package/assets/esri/core/workers/chunks/46b16501db6681dc467b.js +1 -0
  22. package/assets/esri/core/workers/chunks/48549d3d7bf0154c0afa.js +1 -0
  23. package/assets/esri/core/workers/chunks/{713ab619060bd5087479.js → 4baf66314f82cfa76beb.js} +182 -157
  24. package/assets/esri/core/workers/chunks/{1ab66600579fa4232d7b.js → 4dc91c2208201ba34c90.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{b14c4c3f295970f731ab.js → 500be1fb7cc9efec875c.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{fc6ca7ffb9f1b875059c.js → 51716e411fad624ac21c.js} +1 -1
  27. package/assets/esri/core/workers/chunks/54c035cdc171998d0776.js +1 -0
  28. package/assets/esri/core/workers/chunks/{b23e677c33db6f9bac8a.js → 566f6319ded0634769e0.js} +1 -1
  29. package/assets/esri/core/workers/chunks/752f4e0e2961fc315dca.js +1 -0
  30. package/assets/esri/core/workers/chunks/7ba67f1d7831a5576a5a.js +1 -0
  31. package/assets/esri/core/workers/chunks/{186bfde8c552e3b42302.js → 7ef51b0ebd560113ae7e.js} +1 -1
  32. package/assets/esri/core/workers/chunks/7f0f10946f05a09b5654.js +1 -0
  33. package/assets/esri/core/workers/chunks/{fce2306a1b31c6680f90.js → 7f34fa9f154f5101cb13.js} +1 -1
  34. package/assets/esri/core/workers/chunks/8178e9ba3c568d406a87.js +1 -0
  35. package/assets/esri/core/workers/chunks/83f1871d04c979fa23b7.js +1 -0
  36. package/assets/esri/core/workers/chunks/85da2987e17b6755a94e.js +1 -0
  37. package/assets/esri/core/workers/chunks/8a5a827ee557d9f9a66e.js +1 -0
  38. package/assets/esri/core/workers/chunks/9c09097e390985bbac58.js +1 -0
  39. package/assets/esri/core/workers/chunks/a432219de6a873f88776.js +1 -0
  40. package/assets/esri/core/workers/chunks/{455d08294e0f5c5509ff.js → a6b75576d598ec161cc4.js} +1 -1
  41. package/assets/esri/core/workers/chunks/b2662bfdbd1e3623ceb9.js +1 -0
  42. package/assets/esri/core/workers/chunks/b4bac22467e96be7a974.js +1 -0
  43. package/assets/esri/core/workers/chunks/{5166f204fd078dced5db.js → baea6f86b2dbe067940e.js} +1 -1
  44. package/assets/esri/core/workers/chunks/c3e89c7c7b677bd18557.js +1 -0
  45. package/assets/esri/core/workers/chunks/cb81d524f12edcadb9bb.js +1 -0
  46. package/assets/esri/core/workers/chunks/cc0f3b9b153a0c232afe.js +1 -0
  47. package/assets/esri/core/workers/chunks/cd0c232f4e3868d91a05.js +1 -0
  48. package/assets/esri/core/workers/chunks/{9bd713d96502ddc2ce25.js → d8ccc713c5ad93e7a0c3.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{e66b9d00d02fc08cbb2d.js → da008d6a3afb30d18392.js} +1 -1
  50. package/assets/esri/core/workers/chunks/dde94664110ff231a52d.js +1 -0
  51. package/assets/esri/core/workers/chunks/de3e5d82502ee15b7eae.js +1 -0
  52. package/assets/esri/core/workers/chunks/e6fe8b5fbe95de01453b.js +1 -0
  53. package/assets/esri/core/workers/chunks/ee7e9bca57160694b3c4.js +1 -0
  54. package/assets/esri/core/workers/chunks/f36345ebb9851ab92453.js +1 -0
  55. package/assets/esri/core/workers/chunks/{c503c79ba5761f7abbeb.js → fa869bfe4366f7f49cca.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{d8de7fe49dba9ed589df.js → fade7b878a9498382bb2.js} +1 -1
  57. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  58. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  59. package/assets/esri/libs/text/pkg/bundle_bg.wasm +0 -0
  60. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ar.json +1 -1
  61. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bg.json +1 -1
  62. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bs.json +1 -1
  63. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ca.json +1 -1
  64. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_cs.json +1 -1
  65. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_da.json +1 -1
  66. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_de.json +1 -1
  67. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_el.json +1 -1
  68. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_es.json +1 -1
  69. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_et.json +1 -1
  70. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fi.json +1 -1
  71. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fr.json +1 -1
  72. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_he.json +1 -1
  73. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hr.json +1 -1
  74. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hu.json +1 -1
  75. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_id.json +1 -1
  76. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_it.json +1 -1
  77. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ja.json +1 -1
  78. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ko.json +1 -1
  79. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lt.json +1 -1
  80. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lv.json +1 -1
  81. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_nl.json +1 -1
  82. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_no.json +1 -1
  83. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pl.json +1 -1
  84. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-BR.json +1 -1
  85. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-PT.json +1 -1
  86. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ro.json +1 -1
  87. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ru.json +1 -1
  88. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sk.json +1 -1
  89. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sl.json +1 -1
  90. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sr.json +1 -1
  91. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sv.json +1 -1
  92. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_th.json +1 -1
  93. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_tr.json +1 -1
  94. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_uk.json +1 -1
  95. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_vi.json +1 -1
  96. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-CN.json +1 -1
  97. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-HK.json +1 -1
  98. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-TW.json +1 -1
  99. package/chunks/GlobalIllumination.glsl.js +25 -17
  100. package/chunks/GlowBlur.glsl.js +11 -8
  101. package/chunks/OITBlend.glsl.js +1 -1
  102. package/chunks/bundle2.js +1 -1
  103. package/config.js +1 -1
  104. package/core/has.js +1 -1
  105. package/interfaces.d.ts +0 -3
  106. package/kernel.js +1 -1
  107. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  108. package/layers/graphics/data/QueryEngineCapabilities.js +1 -1
  109. package/layers/graphics/data/QueryEngineResult.js +1 -1
  110. package/layers/graphics/sources/OGCFeatureSource.js +1 -1
  111. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  112. package/layers/mixins/ArcGISImageService.js +1 -1
  113. package/layers/support/SubtypeSublayer.js +1 -1
  114. package/layers/support/capabilities.js +1 -1
  115. package/layers/support/layerUtils.js +1 -1
  116. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  117. package/networks/CircuitManager.d.ts +33 -25
  118. package/networks/CircuitManager.js +1 -1
  119. package/networks/support/typeUtils.d.ts +4 -1
  120. package/networks/support/typeUtils.js +1 -1
  121. package/package.json +1 -1
  122. package/renderers/ClassBreaksRenderer.js +1 -1
  123. package/renderers/UniqueValueRenderer.js +1 -1
  124. package/renderers/support/scaleDependentSymbolUtils.js +2 -0
  125. package/rest/networks/circuits/queryCircuits.js +1 -1
  126. package/rest/networks/circuits/support/QueryCircuitsParameters.d.ts +21 -15
  127. package/rest/networks/circuits/support/QueryCircuitsParameters.js +1 -1
  128. package/rest/query/operations/query.js +1 -1
  129. package/rest/support/Query.js +1 -1
  130. package/support/revision.js +1 -1
  131. package/third-party-notices.txt +19 -12
  132. package/views/2d/engine/webgl/GlyphSDFCreator.js +1 -1
  133. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  134. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringStore.js +2 -0
  135. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +2 -0
  136. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  137. package/views/3d/analysis/LineOfSight/LineOfSightDrawToolRenderer.js +2 -0
  138. package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +2 -0
  139. package/views/3d/analysis/LineOfSight/LineOfSightPlacementTool.js +2 -0
  140. package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +2 -0
  141. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +2 -0
  142. package/views/3d/analysis/LineOfSight/LineOfSightTool2.js +1 -1
  143. package/views/3d/analysis/LineOfSightAnalysisView3D.js +1 -1
  144. package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
  145. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  146. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +149 -0
  147. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +2 -2
  148. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  149. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  150. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechniqueConfiguration.js +1 -1
  151. package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
  152. package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
  153. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  154. package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
  155. package/webmap/utils.js +1 -1
  156. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  157. package/assets/esri/core/workers/chunks/0c074c46d106ca4d3bad.js +0 -1
  158. package/assets/esri/core/workers/chunks/1f16bc8c02d8c4b2f693.js +0 -1
  159. package/assets/esri/core/workers/chunks/29878b52aa12b3815230.js +0 -1
  160. package/assets/esri/core/workers/chunks/2c916b93d8a6e6b9c0d7.js +0 -1
  161. package/assets/esri/core/workers/chunks/3ea5a18b264628dc37f0.js +0 -1
  162. package/assets/esri/core/workers/chunks/41913575dd45c65d645e.js +0 -1
  163. package/assets/esri/core/workers/chunks/46e622857ba92a72a317.js +0 -1
  164. package/assets/esri/core/workers/chunks/49e8144effc299dfcd66.js +0 -1
  165. package/assets/esri/core/workers/chunks/4d0f793dee4ad919221b.js +0 -1
  166. package/assets/esri/core/workers/chunks/65ac73de5bb133c6bf89.js +0 -1
  167. package/assets/esri/core/workers/chunks/67ec1694d6e18b7c234c.js +0 -1
  168. package/assets/esri/core/workers/chunks/6e526c06825ecc6c99c0.js +0 -1
  169. package/assets/esri/core/workers/chunks/6f7aaba26773fe416ac2.js +0 -1
  170. package/assets/esri/core/workers/chunks/7acf82763aeba44049d0.js +0 -1
  171. package/assets/esri/core/workers/chunks/88eb1e4320c4ada01711.js +0 -1
  172. package/assets/esri/core/workers/chunks/8af9a78cf316581ea482.js +0 -1
  173. package/assets/esri/core/workers/chunks/96bba4d93a32ad34a1c8.js +0 -1
  174. package/assets/esri/core/workers/chunks/97719271a3e4c9f2b2c9.js +0 -1
  175. package/assets/esri/core/workers/chunks/9ea23cd4b2664c08b670.js +0 -1
  176. package/assets/esri/core/workers/chunks/a1a12552d34ea9eea130.js +0 -1
  177. package/assets/esri/core/workers/chunks/ac5999c88c27b49cd760.js +0 -1
  178. package/assets/esri/core/workers/chunks/b575292013bceef9b015.js +0 -1
  179. package/assets/esri/core/workers/chunks/bbc27d9285162696d089.js +0 -1
  180. package/assets/esri/core/workers/chunks/bc8a74da48b08309875f.js +0 -1
  181. package/assets/esri/core/workers/chunks/cd7159600ce132e32d04.js +0 -1
  182. package/assets/esri/core/workers/chunks/ce66c551b7083913eee5.js +0 -1
  183. package/assets/esri/core/workers/chunks/cf7acf5acb6d322fd996.js +0 -1
  184. package/assets/esri/core/workers/chunks/d9c3f14eee4db7a7137b.js +0 -1
  185. package/assets/esri/core/workers/chunks/db3c484bfa607dec6050.js +0 -1
  186. package/assets/esri/core/workers/chunks/dcc719e15b2e0cce1f3b.js +0 -1
  187. package/assets/esri/core/workers/chunks/f43d628d47eec7d530c7.js +0 -1
  188. package/assets/esri/core/workers/chunks/fae147d03ed723ab234d.js +0 -1
  189. package/assets/esri/core/workers/chunks/fcf51697c361e0075cc2.js +0 -1
  190. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +0 -132
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4744],{52106(t,e,n){n.d(e,{A:()=>C});var r,i,o=n(5482),l=n(37838),s=n(69540),a=n(51447),u=n(25482),c=n(53966),p=n(36708),f=n(24326),h=n(91429),d=n(12195),g=n(65864),y=n(50498),m=n(55156),M=n(60950),b=n(54339),w=n(94128),v=n(33910);function x(t){if(null==t)return null;const e={};for(const n in t){const r=t[n];r&&(e[n]=r.toJSON())}return 0!==Object.keys(e).length?e:null}let C=class extends((0,s.OU)(u.o)){static{r=w.Z}static{i=this}constructor(t){super(t),this[r]=!0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,f.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(t){const e=this._get("aggregateGeometries");JSON.stringify(e)!==JSON.stringify(t)&&this._set("aggregateGeometries",t)}set attributes(t){const e=this._get("attributes");e!==t&&(this._set("attributes",t),this._notifyLayer("attributes",e,t))}set geometry(t){const e=this._get("geometry");e!==t&&(this._set("geometry",t),"mesh"!==t?.type&&this._notifyLayer("geometry",e,t))}set popupTemplate(t){const e=this._get("popupTemplate");e!==t&&(this._set("popupTemplate",t),this._notifyLayer("popupTemplate",e,t))}set symbol(t){const e=this._get("symbol");e!==t&&(this._set("symbol",t),this._notifyLayer("symbol",e,t))}get version(){return this._version}set visible(t){const e=this._get("visible");e!==t&&(this._set("visible",t),this._notifyLayer("visible",e,t))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,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(t=!1){if(this.popupTemplate)return this.popupTemplate;const e=(0,M.E_)(this.origin);if(e)return e.popupTemplate??(t?e.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const e of[n,this.sourceLayer,this.layer])if(e&&"object"==typeof e){if("popupTemplate"in e&&e.popupTemplate)return e.popupTemplate;if(t&&"defaultPopupTemplate"in e&&null!=e.defaultPopupTemplate)return e.defaultPopupTemplate}return null}getAttribute(t){return this.attributes?.[t]}setAttribute(t,e){if(this.attributes){const n=this.getAttribute(t);this.attributes[t]=e,this._notifyLayer("attributes",n,e,t)}else this.attributes={[t]:e}}getObjectId(){const t=(0,m.I)(this.origin);if(t)return(0,b.r)(this,t);const e=this.sourceLayer??this.layer;return e?(0,b.r)(this,e):null}getGlobalId(){const t=(0,m.I)(this.origin);if(t?.globalIdField)return this.getAttribute(t.globalIdField);const e=this.sourceLayer??this.layer;return e&&"globalIdField"in e&&e.globalIdField?this.getAttribute(e.globalIdField):null}toJSON(){return{aggregateGeometries:x(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,d.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(t={}){const{geometry:e}=this;if("mesh"===e?.type){const n={origin:e.origin,transform:e.transform};this._notifyLayer("origin-transform",n,n,t.action)}}_notifyLayer(t,e,n,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:t,oldValue:e,newValue:n};"origin-transform"===t&&(i.action=r),"attributes"===t&&(i.attributeName=r),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:t,origin:e})=>{this._lastMeshTransform.localMatrix===t&&this._lastMeshTransform.origin===e||(this._lastMeshTransform.localMatrix=t,this._lastMeshTransform.origin=e,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const t=this.geometry;"mesh"===t?.type&&t.vertexSpace.origin?(this._lastMeshTransform.localMatrix=t.transform?.localMatrix,this._lastMeshTransform.origin=t.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(t,e)=>t===e,sync:!0})])}};(0,o.Cg)([(0,h.MZ)({value:null,json:{read:function(t){if(!t)return null;const e={};for(const n in t){const r=(0,g.rS)(t[n]);r&&(e[n]=r)}return 0!==Object.keys(e).length?e:null}}})],C.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,h.MZ)({value:null})],C.prototype,"attributes",null),(0,o.Cg)([(0,h.MZ)({value:null,types:y.yR,json:{read:g.rS}})],C.prototype,"geometry",null),(0,o.Cg)([(0,h.MZ)({type:Boolean})],C.prototype,"isAggregate",void 0),(0,o.Cg)([(0,h.MZ)({clonable:!1})],C.prototype,"layer",void 0),(0,o.Cg)([(0,h.MZ)({clonable:"reference"})],C.prototype,"origin",void 0),(0,o.Cg)([(0,h.MZ)({type:l.A,value:null})],C.prototype,"popupTemplate",null),(0,o.Cg)([(0,h.MZ)({clonable:"reference"})],C.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,h.MZ)({value:null,types:v.Es})],C.prototype,"symbol",null),(0,o.Cg)([(0,h.MZ)({clonable:!1,json:{read:!1,write:!1}})],C.prototype,"_version",void 0),(0,o.Cg)([(0,h.MZ)({type:Boolean,value:!0})],C.prototype,"visible",null),C=i=(0,o.Cg)([(0,h.$K)("esri.Graphic")],C)},6797(t,e,n){n.d(e,{Ui:()=>f});var r=n(69622),i=n(7762),o=n(88620);const l=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function s(t){return t instanceof r.A}function a(t){return t instanceof i.A?Object.keys(t.items):s(t)?(0,o.oY)(t).keys():t?Object.keys(t):[]}function u(t,e){return t instanceof i.A?t.items[e]:t[e]}function c(t){return t?t.declaredClass:null}function p(t,e){const n=t.diff;if(n&&"function"==typeof n)return n(t,e);const r=a(t),i=a(e);if(0===r.length&&0===i.length)return;if(!r.length||!i.length||function(t,e){return!(!Array.isArray(t)||!Array.isArray(e))&&t.length!==e.length}(t,e))return{type:"complete",oldValue:t,newValue:e};const o=i.filter(t=>!r.includes(t)),f=r.filter(t=>!i.includes(t)),h=r.filter(n=>i.includes(n)&&u(t,n)!==u(e,n)).concat(o,f).sort(),d=c(t);if(d&&l.has(d)&&h.length)return{type:"complete",oldValue:t,newValue:e};let g;const y=s(t)&&s(e);for(const r of h){const i=u(t,r),o=u(e,r);let l;if((y||"function"!=typeof i&&"function"!=typeof o)&&i!==o&&(null!=i||null!=o)){if(n&&n[r]&&"function"==typeof n[r])l=n[r]?.(i,o);else if(i instanceof Date&&o instanceof Date){if(i.getTime()===o.getTime())continue;l={type:"complete",oldValue:i,newValue:o}}else l="object"==typeof i&&"object"==typeof o&&c(i)===c(o)?p(i,o):{type:"complete",oldValue:i,newValue:o};null!=l&&(null!=g?g.diff[r]=l:g={type:"partial",diff:{[r]:l}})}}return g}function f(t,e){if("function"!=typeof t&&"function"!=typeof e&&(null!=t||null!=e))return null==t||null==e||"object"==typeof t&&"object"==typeof e&&c(t)!==c(e)?{type:"complete",oldValue:t,newValue:e}:p(t,e)}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>i,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,e,n,r,i,o,l,s,a,u,c,p,f,h,d,g){return[t,e,n,r,i,o,l,s,a,u,c,p,f,h,d,g]}},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>I,Bw:()=>o,C:()=>l,Cc:()=>T,DI:()=>x,Il:()=>q,Io:()=>M,Ln:()=>m,Om:()=>A,Qr:()=>p,Re:()=>u,S8:()=>C,T9:()=>g,WQ:()=>a,Z0:()=>j,_S:()=>h,aI:()=>L,ei:()=>S,fw:()=>R,g7:()=>z,gL:()=>Z,hG:()=>b,hZ:()=>s,hs:()=>y,jb:()=>E,jk:()=>d,lo:()=>G,lw:()=>c,m3:()=>w,oW:()=>N,t2:()=>O,tn:()=>f,uE:()=>D,xg:()=>k,ze:()=>v});var r=n(51850),i=n(34304);function o(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function l(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function s(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function a(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function p(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function h(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function g(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function m(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function b(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function w(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function x(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function C(t,e){const n=e[0],r=e[1],i=e[2];let o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function I(t,e,n){const r=e[0],i=e[1],o=e[2],l=n[0],s=n[1],a=n[2];return t[0]=i*a-o*s,t[1]=o*l-r*a,t[2]=r*s-i*l,t}function T(t,e,n,r){const i=e[0],o=e[1],l=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=l+r*(n[2]-l),t}function j(t,e,n){const r=e[0],i=e[1],o=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12],t[1]=n[1]*r+n[5]*i+n[9]*o+n[13],t[2]=n[2]*r+n[6]*i+n[10]*o+n[14],t}function S(t,e,n){const r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function Z(t,e,n){return R(t,e,n[0],n[1],n[2],n[3])}function R(t,e,n,r,i,o){const l=e[0],s=e[1],a=e[2],u=r*a-i*s,c=i*l-n*a,p=n*s-r*l,f=r*p-i*c,h=i*u-n*p,d=n*c-r*u,g=2*o;return t[0]=l+u*g+2*f,t[1]=s+c*g+2*h,t[2]=a+p*g+2*d,t}function z(t,e){C(_,t),C(F,e);const n=A(_,F);return n>1?0:n<-1?Math.PI:Math.acos(n)}const _=(0,r.vt)(),F=(0,r.vt)();function O(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e){if(t===e)return!0;const n=t[0],r=t[1],o=t[2],l=e[0],s=e[1],a=e[2],u=(0,i.FD)();return Math.abs(n-l)<=u*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(o-a)<=u*Math.max(1,Math.abs(o),Math.abs(a))}function N(t,e,n){const r=n[0]-e[0],i=n[1]-e[1],o=n[2]-e[2];let l=r*r+i*i+o*o;return l>0?(l=1/Math.sqrt(l),t[0]=r*l,t[1]=i*l,t[2]=o*l,t):(t[0]=0,t[1]=0,t[2]=0,t)}const E=u,$=c,P=p,k=M,G=b,q=o,D=w;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:a,angle:z,bezier:function(t,e,n,r,i,o){const l=1-o,s=l*l,a=o*o,u=s*l,c=3*o*s,p=3*a*l,f=a*o;return t[0]=e[0]*u+n[0]*c+r[0]*p+i[0]*f,t[1]=e[1]*u+n[1]*c+r[1]*p+i[1]*f,t[2]=e[2]*u+n[2]*c+r[2]*p+i[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:l,cross:I,crossAndNormalize:function(t,e,n){const r=e[0],i=e[1],o=e[2],l=n[0],s=n[1],a=n[2],u=i*a-o*s,c=o*l-r*a,p=r*s-i*l,f=Math.sqrt(u*u+c*c+p*p);return t[0]=u/f,t[1]=c/f,t[2]=p/f,t},direction:N,dist:k,distance:M,div:P,divide:p,dot:A,equals:L,exactEquals:O,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,i,o){const l=o*o,s=l*(2*o-3)+1,a=l*(o-2)+o,u=l*(o-1),c=l*(3-2*o);return t[0]=e[0]*s+n[0]*a+r[0]*u+i[0]*c,t[1]=e[1]*s+n[1]*a+r[1]*u+i[1]*c,t[2]=e[2]*s+n[2]*a+r[2]*u+i[2]*c,t},inverse:x,len:q,length:o,lerp:T,max:g,min:d,mul:$,multiply:c,negate:v,normalize:C,random:function(t,e=1){const n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,l=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(r)*l,t[1]=Math.sin(r)*l,t[2]=o*e,t},rotateX:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:y,scaleAndAdd:m,set:s,sign:h,sqrDist:G,sqrLen:D,squaredDistance:b,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:E,subtract:u,transformMat3:S,transformMat4:j,transformQuat:Z,transformQuatValues:R},Symbol.toStringTag,{value:"Module"}))},13069(t,e,n){n.d(e,{AG:()=>s,lk:()=>i,vD:()=>l,yS:()=>o});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function o(){return`{${i().toUpperCase()}}`}function l(){return`{${i()}}`}function s(t){const e=t.toUpperCase();return t.startsWith("{")?e:`{${e}}`}},159(t,e,n){n.d(e,{A:()=>u});var r,i=n(5482),o=n(69540),l=n(25482),s=n(91429),a=n(99157);let u=r=class extends((0,o.OU)(l.o)){constructor(t){super(t),this.steps=[]}getInverse(){const t=new r;for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}};(0,i.Cg)([(0,s.MZ)({type:[a.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,i.Cg)([(0,s.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(t,e,n){n.d(e,{A:()=>a});var r,i=n(5482),o=n(69540),l=n(25482),s=n(91429);let a=r=class extends((0,o.OU)(l.o)){constructor(t){super(t),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,s.MZ)({json:{name:"transformForward",read:t=>!t,write:(t,e,n)=>{e[n]=!t}}})],a.prototype,"isInverse",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],a.prototype,"wkt",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],a.prototype,"wkid",void 0),a=r=(0,i.Cg)([(0,s.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)},9762(t,e,n){n.r(e),n.d(e,{projectBuffer:()=>i});var r=n(49208);function i(t,e,n,i,o,l,s=Math.floor(t.length/3)){const a=(0,r.jd)(e,o);if(null==a)return!1;if(a===r.pO){if(t===i&&n===l)return!0;const e=n+3*s;for(let r=n,o=l;r<e;r++,o++)i[o]=t[r]??0;return!0}const u=n+3*s;for(let e=n,r=l;e<u;e+=3,r+=3)a(t,e,i,r);return!0}},49208(t,e,n){n.d(e,{Tp:()=>p,jd:()=>c,pO:()=>h,w5:()=>u});var r=n(34727),i=n(86211),o=n(73941),l=n(79258),s=n(34403),a=n(21325);const u={2:{5:h,7:null,9:null,10:h,1:v,6:null,8:null,0:null,3:g,11:y,2:h,4:T},5:{5:h,7:null,9:null,10:h,1:v,6:null,8:null,0:null,3:g,11:y,2:h,4:T},7:{5:null,7:h,9:null,10:h,1:null,6:w,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:h,10:h,1:null,6:null,8:b,0:null,3:null,11:null,2:null,4:null},3:{5:d,7:null,9:null,10:d,1:function(t,e,n,r){const i=t[e]/_,o=z-2*Math.atan(Math.exp(-t[e+1]/_)),l=_+(t[e+2]??0),s=Math.cos(o)*l;n[r]=Math.cos(i)*s,n[r+1]=Math.sin(i)*s,n[r+2]=Math.sin(o)*l},6:null,8:null,0:null,3:h,11:function(t,e,n,r){d(t,e,n,r),y(n,r,n,r)},2:d,4:function(t,e,n,r){d(t,e,n,r),T(n,r,n,r)}},4:{5:j,7:null,9:null,10:j,1:function(t,e,n,r){j(t,e,n,r),v(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){j(t,e,n,r),g(n,r,n,r)},11:function(t,e,n,r){j(t,e,n,r),y(n,r,n,r)},2:j,4:h},1:{5:I,7:null,9:null,10:I,1:h,6:null,8:null,0:null,3:function(t,e,n,r){I(t,e,n,r),g(n,r,n,r)},11:function(t,e,n,r){I(t,e,n,r),y(n,r,n,r)},2:I,4:function(t,e,n,r){I(t,e,n,r),T(n,r,n,r)}},6:{5:null,7:A,9:null,10:A,1:null,6:h,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:C,10:C,1:null,6:null,8:h,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:h,3:null,11:null,2:null,4:null},10:{5:h,7:h,9:h,10:h,1:v,6:w,8:b,0:null,3:g,11:y,2:h,4:T},11:{5:m,7:null,9:null,10:m,1:function(t,e,n,r){m(t,e,n,r),v(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){m(t,e,n,r),g(n,r,n,r)},11:h,2:m,4:function(t,e,n,r){m(t,e,n,r),T(n,r,n,r)}}};function c(t,e){return p(t,e)?.projector}function p(t,e){if(null==t||null==e)return null;if(S.source.spatialReference===t&&S.dest.spatialReference===e)return S;const n=f(t,S.source),r=f(e,S.dest);return 0===n&&0===r?(0,a.aI)(t,e)?S.projector=h:S.projector=null:S.projector=u[n][r],S}function f(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,i.GA)(t,1)),(0,o.jA)(t)?e.spatialReferenceId=1:(0,a.oT)(t)?e.spatialReferenceId=2:(0,a.K8)(t)?e.spatialReferenceId=3:(0,a.r1)(t)?e.spatialReferenceId=11:t.wkt===o.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===o.FY.wkt?e.spatialReferenceId=6:t.wkt===o.LJ.wkt?e.spatialReferenceId=8:(0,o.q8)(t)?e.spatialReferenceId=7:(0,o.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function h(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e]??0)}function d(t,e,n,r){n[r]=R*(t[e]/_),n[r+1]=R*(z-2*Math.atan(Math.exp(-t[e+1]/_))),n[r+2]=t[e+2]??0}function g(t,e,n,i){!function(t,e,n,i,o){const l=.4999999*Math.PI,s=(0,r.qE)(Z*t[e+1],-l,l),a=Math.sin(s);n[i++]=Z*t[e]*o.radius,n[i++]=o.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[i]=t[e+2]??0}(t,e,n,i,l.$O)}function y(t,e,n,r){n[r]=t[e]*F,n[r+1]=t[e+1]*F,n[r+2]=t[e+2]??0}function m(t,e,n,r){n[r]=t[e]*O,n[r+1]=t[e+1]*O,n[r+2]=t[e+2]??0}function M(t,e,n,r,i){const o=i+(t[e+2]??0),l=Z*t[e],s=Z*t[e+1],a=Math.cos(s)*o;n[r]=Math.cos(l)*a,n[r+1]=Math.sin(l)*a,n[r+2]=Math.sin(s)*o}function b(t,e,n,r){M(t,e,n,r,l.Sw.radius)}function w(t,e,n,r){M(t,e,n,r,l.sH.radius)}function v(t,e,n,r){M(t,e,n,r,l.$O.radius)}function x(t,e,n,i,o){const l=t[e],s=t[e+1],a=t[e+2]??0,u=Math.sqrt(l*l+s*s+a*a),c=(0,r.YN)(a/(0===u?1:u)),p=Math.atan2(s,l);n[i++]=R*p,n[i++]=R*c,n[i]=u-o}function C(t,e,n,r){x(t,e,n,r,l.Sw.radius)}function A(t,e,n,r){x(t,e,n,r,l.sH.radius)}function I(t,e,n,r){x(t,e,n,r,l.$O.radius)}function T(t,e,n,r){!function(t,e,n,r,i){const o=Z*t[e],l=Z*t[e+1],s=t[e+2]??0,a=Math.sin(l),u=Math.cos(l),c=i.radius/Math.sqrt(1-i.eccentricitySquared*a*a);n[r++]=(c+s)*u*Math.cos(o),n[r++]=(c+s)*u*Math.sin(o),n[r++]=(c*(1-i.eccentricitySquared)+s)*a}(t,e,n,r,l.$O)}function j(t,e,n,r){const i=s.TP,o=t[e],a=t[e+1],u=t[e+2]??0;let c,p,f,h,d,g,y,m,M,b,w,v,x,C,A,I,T,j,S,Z,z;c=Math.abs(u),p=o*o+a*a,f=Math.sqrt(p),h=p+u*u,d=Math.sqrt(h),Z=Math.atan2(a,o),g=u*u/h,y=p/h,C=i.a2/d,A=i.a3-i.a4/d,y>.3?(m=c/d*(1+y*(i.a1+C+g*A)/d),S=Math.asin(m),b=m*m,M=Math.sqrt(1-b)):(M=f/d*(1-g*(i.a5-C-y*A)/d),S=Math.acos(M),b=1-M*M,m=Math.sqrt(b)),w=1-l.$O.eccentricitySquared*b,v=l.$O.radius/Math.sqrt(w),x=i.a6*v,C=f-v*M,A=c-x*m,T=M*C+m*A,I=M*A-m*C,j=I/(x/w+T),S+=j,z=T+I*j/2,u<0&&(S=-S),n[r++]=R*Z,n[r++]=R*S,n[r]=z}const S={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:h},Z=(0,r.kU)(1),R=(0,r.KJ)(1),z=.5*Math.PI,_=l.$O.radius,F=_*Math.PI/180,O=180/(_*Math.PI)},91218(t,e,n){n.r(e),n.d(e,{canProjectWithoutEngine:()=>W,initializeProjection:()=>H,isEqualBaseGCS:()=>U,isLoaded:()=>_,isLoadedOrLoad:()=>F,isLoadedOrLoadFor:()=>O,load:()=>N,project:()=>E,projectAsync:()=>K,projectExtent:()=>it,projectMany:()=>$,projectMultipoint:()=>Q,projectOrLoad:()=>k,projectOrLoadMany:()=>G,projectPoint:()=>J,projectPolygon:()=>nt,projectPolyline:()=>tt,projectWithoutEngine:()=>B,requiresLoad:()=>L,test:()=>V,tryProject:()=>P,unload:()=>D});var r=n(49186),i=n(17676),o=n(62788),l=n(95488),s=n(51850),a=n(21276),u=n(73941),c=n(5443),p=n(91075),f=n(48526),h=n(86738),d=n(39829),g=n(82799),y=n(16930),m=n(98764),M=n(159),b=n(9762),w=n(49208);function v(t,e,n,r,i,o){return x[0]=t,x[1]=e,x[2]=n,(0,b.projectBuffer)(x,r,0,i,o,0)}const x=(0,s.vt)();var C=n(60408),A=n(21325),I=n(52006);let T=null,j=null,S=null,Z=null,R={};const z=new l.I;function _(){return!!(j?.isLoaded()&&S?.isLoaded()&&Z?.isLoaded())}function F(){return!!_()||((0,o.gc)(z),N(),!1)}function O(t,e){return!t||!e||W(t,e)||F()}function L(t,e){return!W(t,e)&&!_()}async function N(t){null==T&&(T=Promise.all([n.e(3276).then(n.bind(n,83276)).then(t=>(j=t,j.load())),n.e(8377).then(n.bind(n,8377)).then(t=>(S=t,S.load())),n.e(2158).then(n.bind(n,12158)).then(t=>(Z=t,Z.load()))])),await T,(0,i.Te)(t),z.notify()}function E(t,e,n){return Array.isArray(t)?0===t.length?[]:((0,a.H)(t),$(t,t[0].spatialReference,e,n)):((0,a.f)(t),$([t],t.spatialReference,e,n)[0])}function $(t,e,n,r){if(null==e||null==n)return t;if(W(e,n,r))return t.map(t=>B(t,e,n));if(null==r?.geographicTransformation&&(0,u.jA)(e))return $(t.map(t=>B(t,e,y.A.WGS84)),y.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(n))return $(t,e,y.A.WGS84).map(t=>B(t,y.A.WGS84,n));if(!_())throw new q;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:Z.getTransformation(e,n,r.areaOfInterestExtent)||new M.A};else if(!r?.areaOfInterestExtent){const t=function(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}(e,n);let i=R[t];i||(i=Z.getTransformation(e,n)||new M.A,R[t]=i),r={geographicTransformation:i,zConversionDisabled:r?.zConversionDisabled}}return t[0].spatialReference||(t[0].spatialReference=e),t[0]instanceof p.A?j.executeMany(t,n,r):S.executeMany(t,n,r)}function P(t,e,n){try{return E(t,e,n)}catch(t){return null}}function k(t,e){const n=G([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function G(t,e,n){if(!_())for(const n of t)if(null!=n&&!(0,A.aI)(n.spatialReference,e)&&(0,A.fn)(n.spatialReference)&&(0,A.fn)(e)&&!W(n.spatialReference,e))return(0,o.gc)(z),{pending:N(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,A.aI)(t.spatialReference,e)?t:(0,A.fn)(t.spatialReference)&&(0,A.fn)(e)?E(t,e,n):null)}}class q extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function D(){T=null,j=null,S=null,Z=null,R={}}const V={get loadPromise(){return T}};async function K(t,e,n){if((0,i.Te)(n),!t)return t;const r=G(Array.isArray(t)?t:[t],e,n);if(r.pending)return await r.pending,(0,i.Te)(n),K(t,e,n);const o=r.geometries??[];return Array.isArray(t)?o:o[0]}function W(t,e,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,A.aI)(t,e)||(0,A.fn)(t)&&(0,A.fn)(e)&&!!(0,w.jd)(t,e))}function U(t,e){if((0,A.aI)(t,e))return!0;if(!(0,A.fn)(t)||!(0,A.fn)(e))return!1;const n=(0,A.oT)(t)||(0,A.K8)(t)||(0,A.x1)(t),r=(0,A.oT)(e)||(0,A.K8)(e)||(0,A.x1)(e);return n&&r}async function H(t,e,n,r){if(_())return(0,i.NO)(r);if(Array.isArray(t)){for(const{source:e,dest:n,options:i}of t)if(e&&n&&!W(e,n,i))return N(r)}else if(t&&e&&!W(t,e,n))return N(r);return(0,i.NO)(r)}function B(t,e,n){return t?(0,C.fT)(t)?Y(t,e,new h.A,n,0):(0,C.ZC)(t)?ot(t,e,new c.A,n,0):(0,C.Bi)(t)?rt(t,e,new d.A,n,0):(0,C.Rg)(t)?et(t,e,new g.A,n,0):(0,C.U9)(t)?X(t,e,new f.A,n,0):null:null}function J(t,e,n=e.spatialReference,r=0){return null!=n&&null!=t.spatialReference&&null!=Y(t,t.spatialReference,e,n,r)}function Y(t,e,n,r,i){ut[0]=t.x,ut[1]=t.y;const o=t.z;return ut[2]=void 0!==o?o:i,(0,b.projectBuffer)(ut,e,0,ut,r,0)?(n.x=ut[0],n.y=ut[1],n.spatialReference=r,void 0!==o||(0,u.xP)(r)?(n.z=ut[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}function Q(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=X(t,t.spatialReference,e,n,r)}function X(t,e,n,r,i){const{points:o,hasZ:l,hasM:s}=t,a=[],u=o.length,c=[];for(const t of o)c.push(t[0],t[1],l?t[2]:i);if(!(0,b.projectBuffer)(c,e,0,c,r,0,u))return null;const p=at(l,r);for(let t=0;t<u;++t){const e=3*t,n=c[e],r=c[e+1];p&&s?a.push([n,r,c[e+2],o[t][3]]):p?a.push([n,r,c[e+2]]):s?a.push([n,r,o[t][2]]):a.push([n,r])}return n.points=a,n.spatialReference=r,n.hasZ=l,n.hasM=s,n}function tt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=et(t,t.spatialReference,e,n,r)}function et(t,e,n,r,i){const{curvePaths:o,paths:l,hasZ:s,hasM:a}=t;if(!(o?st(o,s??!1,a??!1,e,n.curvePaths=[],r,i):lt(l,s??!1,a??!1,e,n.paths,r,i)))return null;const u=at(s,r);return n.spatialReference=r,n.hasZ=u,n.hasM=a,n}function nt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=rt(t,t.spatialReference,e,n,r)}function rt(t,e,n,r,i){const{curveRings:o,rings:l,hasZ:s,hasM:a}=t;return(o?st(o,s??!1,a??!1,e,n.curveRings=[],r,i):lt(l,s??!1,a??!1,e,n.rings,r,i))?(n.spatialReference=r,n.hasZ=at(s,r),n.hasM=a,n):null}function it(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=ot(t,t.spatialReference,e,n,r)}function ot(t,e,n,r,i){const{xmin:o,ymin:l,xmax:s,ymax:a,hasZ:u,hasM:c}=t;if(!v(o,l,u?t.zmin:i,e,ut,r))return null;const p=at(u,r);return n.xmin=ut[0],n.ymin=ut[1],p&&(n.zmin=ut[2]),v(s,a,u?t.zmax:i,e,ut,r)?(n.xmax=ut[0],n.ymax=ut[1],p&&(n.zmax=ut[2]),c&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=r,n):null}function lt(t,e,n,r,i,o,l=0){const s=new Array;for(const n of t)for(const t of n)s.push(t[0],t[1],e?t[2]:l);if(!(0,b.projectBuffer)(s,r,0,s,o,0))return!1;let a=0;i.length=0;const u=e?3:2,c=at(e,o);for(const e of t){const t=new Array;for(const r of e){const e=s.slice(a,a+=3);c||e.pop(),n&&e.push(r[u]),t.push(e)}i.push(t)}return!0}function st(t,e,n,r,i,o,l=0){const s=new Array;for(const n of t)for(const t of n){if((0,I.FG)(t))return!1;if((0,I.aO)(t)){const[n,r]=t.c;s.push(n[0],n[1],e?n[2]:l,r[0],r[1],l);continue}if((0,I.n1)(t)){const[n,r,i]=t.b;s.push(n[0],n[1],e?n[2]:l,r[0],r[1],l,i[0],i[1],l);continue}const n=t;s.push(n[0],n[1],e?n[2]:l)}if(!(0,b.projectBuffer)(s,r,0,s,o,0))return!1;let a=0;i.length=0;const u=e?3:2,c=at(e,o);for(const e of t){const t=new Array;for(const r of e){const e=s.slice(a,a+=3);if(c||e.pop(),n&&e.push((0,I.yP)(r)[u]),(0,I.FG)(r))return!1;if((0,I.aO)(r)){const n=s[a++],r=s[a++];++a,t.push({c:[e,[n,r]]});continue}if((0,I.n1)(r)){const n=s[a++],r=s[a++];++a;const i=s[a++],o=s[a++];++a,t.push({b:[e,[n,r],[i,o]]});continue}t.push(e)}i.push(t)}return!0}function at(t,e){return t||(0,u.xP)(e)||(0,A.aI)(e,m.Y0)}const ut=(0,s.vt)()},98764(t,e,n){n.d(e,{GD:()=>l,Y0:()=>u,lO:()=>c});var r=n(73941),i=n(16930),o=n(21325);const l=new i.A(r.fv),s=new i.A(r.FY),a=new i.A(r.LJ),u=new i.A(r.Ro);function c(t){const e=p.get(t);if(e)return e;let n=l;if(t)if(t===s)n=s;else if(t===a)n=a;else{const e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,o.tl)(e)||(0,o.tl)(r)?n=s:((0,o.ZL)(e)||(0,o.ZL)(r))&&(n=a);else{const e=t.wkt2??t.wkt;if(e){const t=e.toUpperCase();t===f?n=s:t===h&&(n=a)}}}return p.set(t,n),n}const p=new Map,f=s.wkt.toUpperCase(),h=a.wkt.toUpperCase()},4197(t,e,n){n.d(e,{Vj:()=>a,cj:()=>s,jh:()=>o,l5:()=>l});var r=n(34275),i=n(9093);function o(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function l(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function s(t){return[...t]}function a(t){const e=(0,i.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>b,DC:()=>p,Ej:()=>h,Ie:()=>m,Jt:()=>M,Ne:()=>d,RF:()=>c,aI:()=>v,fA:()=>l,gE:()=>a,hZ:()=>y,iT:()=>f,is:()=>w,qv:()=>x,vI:()=>g,vY:()=>s,v_:()=>C,vt:()=>o,w1:()=>u}),n(35522);var r=n(5443),i=(n(19419),n(4197));function o(t=C){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function l(t,e,n,r,i,l,s=o()){return s[0]=t,s[1]=e,s[2]=n,s[3]=r,s[4]=i,s[5]=l,s}function s(t,e=o()){return function(t,e,n,r=o()){return y(r,x),function(t,e,n=0,r=e.length/3){let i=t[0],o=t[1],l=t[2],s=t[3],a=t[4],u=t[5];for(let t=0;t<r;t++)i=Math.min(i,e[n+3*t]),o=Math.min(o,e[n+3*t+1]),l=Math.min(l,e[n+3*t+2]),s=Math.max(s,e[n+3*t]),a=Math.max(a,e[n+3*t+1]),u=Math.max(u,e[n+3*t+2]);t[0]=i,t[1]=o,t[2]=l,t[3]=s,t[4]=a,t[5]=u}(r,t,e,n),r}(t,0,t.length/3,e)}function a(t,e=(0,i.jh)(24)){const[n,r,o,l,s,a]=t;return e[0]=n,e[1]=r,e[2]=o,e[3]=n,e[4]=r,e[5]=a,e[6]=n,e[7]=s,e[8]=o,e[9]=n,e[10]=s,e[11]=a,e[12]=l,e[13]=r,e[14]=o,e[15]=l,e[16]=r,e[17]=a,e[18]=l,e[19]=s,e[20]=o,e[21]=l,e[22]=s,e[23]=a,e}function u(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function p(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function h(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function d(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function g(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function m(t){return t?y(t,x):o(x)}function M(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function b(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function w(t){return 6===t.length}function v(t,e,n){if(null==t||null==e)return t===e;if(!w(t)||!w(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const x=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];o()},34403(t,e,n){n.d(e,{TP:()=>l});var r=n(79258);Math.PI;const i=r.$O.radius,o=r.$O.eccentricitySquared,l={a1:i*o,a2:i*o*i*o,a3:i*o*o/2,a4:i*o*i*o*2.5,a5:i*o+i*o*o/2,a6:1-o};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius},50498(t,e,n){n.d(e,{Ye:()=>p,gy:()=>c,iI:()=>h,yR:()=>f});var r=n(66552),i=n(5443),o=n(91075),l=n(48526),s=n(86738),a=n(39829),u=n(82799);const c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:o.A,key:"type",typeMap:{extent:i.A,multipoint:l.A,point:s.A,polyline:u.A,polygon:a.A}},h=new r.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},55156(t,e,n){n.d(e,{I:()=>i,e:()=>r});const r=Symbol("idFieldsProviderSymbol");function i(t){return(e=t)&&r in e?t[r]:void 0;var e}},54339(t,e,n){function r(t,e){switch(e.type){case"object-id":case"unique-id-simple":return t.attributes[e.fieldName];case"unique-id-composite":{const n=[];for(const r of e.fieldNames)n.push(t.attributes[r]??null);return JSON.stringify(n)}}}function i(t,e){if("uniqueIdFields"in e&&e.uniqueIdFields?.length){if(1===e.uniqueIdFields.length)return t.attributes?.[e.uniqueIdFields[0]];const n=e.uniqueIdFields.map(e=>t.attributes?.[e]);return JSON.stringify(n)}return"objectIdField"in e&&e.objectIdField?t.attributes?.[e.objectIdField]:null}n.d(e,{W:()=>r,r:()=>i})},52136(t,e,n){n.d(e,{p:()=>o});var r=n(5482),i=n(91429);const o=t=>{const e=t;let n=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(t){null!=t?this._override("apiKey",t):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,r.Cg)([(0,i.MZ)({type:String})],n.prototype,"apiKey",null),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.APIKeyMixin")],n),n}},28032(t,e,n){n.d(e,{A:()=>a});var r=n(5482),i=n(69540),o=n(25482),l=n(91429),s=n(56400);let a=class extends((0,i.OU)(o.o)){constructor(t){super(t),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r.Cg)([(0,l.MZ)()],a.prototype,"creatorField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"creationDateField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"editorField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"editDateField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"realm",void 0),(0,r.Cg)([(0,l.MZ)((0,s.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,r.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(t,e,n){n.d(e,{A:()=>u});var r=n(5482),i=n(69540),o=n(66552),l=n(25482),s=n(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,i.OU)(l.o)){constructor(t){super(t),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,r.Cg)([(0,s.$K)("esri.layers.support.FeatureTemplate")],u)},37352(t,e,n){n.d(e,{A:()=>a});var r,i=n(5482),o=n(7762),l=n(25482),s=n(91429);let a=r=class extends l.o{constructor(t){super(t),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=r=(0,i.Cg)([(0,s.$K)("esri.layers.support.LayerFloorInfo")],a)},45067(t,e,n){n.d(e,{A:()=>c});var r=n(5482),i=n(69540),o=n(66552),l=n(25482),s=n(91429);const a=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let c=class extends((0,i.OU)(l.o)){constructor(t){super(t),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,r.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],c.prototype,"cardinality",void 0),(0,r.Cg)([(0,s.MZ)({json:{name:"catalogID"}})],c.prototype,"catalogId",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],c.prototype,"composite",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],c.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyField",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyFieldInRelationshipTable",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],c.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],c.prototype,"relatedTableId",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],c.prototype,"relationshipTableId",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"role",void 0),c=(0,r.Cg)([(0,s.$K)("esri.layers.support.Relationship")],c)},41560(t,e,n){n.d(e,{Ch:()=>l,mW:()=>o});var r=n(34727),i=n(39516);function o(t,e){return{...e,filterMode:t.mode}}function l(t,e,n){const o=function(t){if("manual"===u(t))return null;const e=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:r}of t.filters)e[0]=Math.max(e[0],c(n)),e[1]=Math.min(e[1],p(r));return e}(t);if(o&&((0,r.gg)(e,o[0])||(0,r.ZH)(n,o[1])))return"";const l=Array.from(s(t,e,n)),a=function(t,e,n){if(0===t.length)return!0;const i=c(t.at(0)?.minScale),o=p(t.at(-1)?.maxScale);if((0,r.ZH)(i,e)||(0,r.gg)(o,n))return!0;for(let e=0;e<t.length-1;e++){const n=t[e],i=t[e+1];if((0,r.ZH)(c(i.minScale),p(n.maxScale)))return!0}return!1}(l,e,n)?"1=1":l.map(t=>t.where||"1=1").reduce((t,e)=>(0,i.IW)(t,e),"");return a&&"1=1"!==a?a:""}function*s(t,e,n){if("manual"===u(t)){const e=t.filters.find(e=>e.id===t.activeFilterId);e&&(yield e)}else{"object"==typeof e&&(e=e.scale);for(const r of t.filters)a(r.minScale,r.maxScale,e,n)&&(yield r)}}function a(t,e,n,i){return t=c(t),n=c(n),e=p(e),!(!(0,r.Sp)(n,t)&&(i??n)>t||(0,r.Hx)(e,n)||void 0!==i&&(0,r.Sp)(i,t))}function u(t){return"mode"in t?t.mode:t.filterMode}function c(t){return t||Number.POSITIVE_INFINITY}function p(t){return t||0}},32730(t,e,n){n.d(e,{BI:()=>h,D3:()=>p,XJ:()=>f,lc:()=>c,mX:()=>g,rU:()=>d,tH:()=>w,vK:()=>v,zA:()=>x});var r=n(799);const i="__begin__",o="__end__",l=new RegExp(i,"ig"),s=new RegExp(o,"ig"),a=new RegExp("^"+i,"i"),u=new RegExp(o+"$","i");function c(t){return t.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function p(t){return t.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(t){const e={expression:"",type:"none"};return t.labelExpressionInfo?t.labelExpressionInfo.value?(e.expression=t.labelExpressionInfo.value,e.type="conventional"):t.labelExpressionInfo.expression&&(e.expression=t.labelExpressionInfo.expression,e.type="arcade"):null!=t.labelExpression&&(e.expression=c(t.labelExpression),e.type="conventional"),e}function h(t){const e=f(t);if(!e)return null;switch(e.type){case"conventional":return g(e.expression);case"arcade":return e.expression}return null}function d(t){const e=f(t);if(!e)return null;switch(e.type){case"conventional":return function(t){const e=t?.match(y);return e?.[1].trim()||null}(e.expression);case"arcade":return w(e.expression)}return null}function g(t){let e;return t?(e=(0,r.HC)(t,t=>i+'$feature["'+t+'"]'+o),e=a.test(e)?e.replace(a,""):'"'+e,e=u.test(e)?e.replace(u,""):e+'"',e=e.replaceAll(l,'" + ').replaceAll(s,' + "')):e='""',e}const y=/^\s*\{([^}]+)\}\s*$/i,m=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,M=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,b=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function w(t){if(!t)return null;let e=m.exec(t)||M.exec(t);return e?e[1]||e[3]:(e=b.exec(t),e?e[2]:null)}const v=Symbol("LabelClassInstance");function x(t){return null!=t&&"object"==typeof t&&v in t}},5757(t,e,n){n.d(e,{B:()=>i,P:()=>r});const r=Symbol("PopupTemplateInstance");function i(t){return null!=t&&"object"==typeof t&&r in t}},98205(t,e,n){n.d(e,{KZ:()=>s,eh:()=>l,gf:()=>o,of:()=>i,uY:()=>r});const r=Symbol("SizeVariableInstance");function i(t){return null!=t&&"object"==typeof t&&r in t}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}function l(t){return t.valueExpression?"expression":t.field&&"string"==typeof t.field?"field":"unknown"}function s(t,e){const n=e||l(t),r=t.valueUnit||"unknown";return"unknown"===n?"constant":t.stops?"stops":null!=t.minSize&&null!=t.maxSize&&null!=t.minDataValue&&null!=t.maxDataValue?"clamped-linear":"unknown"===r?null!=t.minSize&&null!=t.minDataValue?t.minSize&&t.minDataValue?"proportional":"additive":"identity":"real-world-size"}},41366(t,e,n){n.d(e,{K:()=>p,Q:()=>a});var r=n(5482),i=n(66552),o=n(53966),l=n(91429),s=n(93223);const a=(0,i.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",p=t=>{const e=t;let n=class extends e{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let t=this._get("normalizationType");const e=!!this.normalizationField,n=null!=this.normalizationTotal;return e||n?(t=e&&c||n&&u||null,e&&n&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):t!==c&&t!==u||(t=null),t}set normalizationType(t){this._set("normalizationType",t)}};return(0,r.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],n.prototype,"normalizationField",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],n.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],n.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],n.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,s.e)(a,{name:"parameters.normalizationType"})],n.prototype,"normalizationType",null),n=(0,r.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],n),n}},11831(t,e,n){n.d(e,{A:()=>u});var r,i=n(5482),o=n(25482),l=n(90629),s=n(91429),a=n(5760);let u=r=class extends o.o{constructor(t){super(t),this.decoration="none",this.family="sans-serif",this.style="normal",this.weight="normal"}get size(){return this._get("size")??9}set size(t){this._set("size",t)}castSize(t){return(0,l.cr)(t)}clone(){return new r({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,i.Cg)([(0,s.MZ)({type:a.h9,json:{default:"none",write:!0}})],u.prototype,"decoration",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"family",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:{overridePolicy:(t,e,n)=>({enabled:!n||!n.textSymbol3D})}}})],u.prototype,"size",null),(0,i.Cg)([(0,s.wg)("size")],u.prototype,"castSize",null),(0,i.Cg)([(0,s.MZ)({type:a._R,json:{default:"normal",write:!0}})],u.prototype,"style",void 0),(0,i.Cg)([(0,s.MZ)({type:a.NM,json:{default:"normal",write:!0}})],u.prototype,"weight",void 0),u=r=(0,i.Cg)([(0,s.$K)("esri.symbols.Font")],u)},68249(t,e,n){n.d(e,{A:()=>d});var r,i=n(5482),o=n(68197),l=n(4718),s=n(90629),a=n(91429),u=n(11831),c=n(20378),p=n(5760),f=n(93223),h=n(43937);let d=r=class extends c.A{constructor(...t){super(...t),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new u.A,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.angle=0,this.width=null,this.lineHeight=1}normalizeCtorArgs(t,e,n){if(t&&"string"!=typeof t)return t;const r={};return t&&(r.text=t),e&&(r.font=e),n&&(r.color=n),r}get haloSize(){return this._get("haloSize")??null}set haloSize(t){this._set("haloSize",t)}get xoffset(){return this._get("xoffset")??0}set xoffset(t){this._set("xoffset",t)}get yoffset(){return this._get("yoffset")??0}set yoffset(t){this._set("yoffset",t)}get lineWidth(){return this._get("lineWidth")??192}set lineWidth(t){this._set("lineWidth",t)}writeLineWidth(t,e,n,r){r&&"string"!=typeof r?r.origin:e[n]=t}castLineWidth(t){return(0,s.cr)(t)}writeLineHeight(t,e,n,r){r&&"string"!=typeof r?r.origin:e[n]=t}clone(){return new r({angle:this.angle,backgroundColor:(0,l.o8)(this.backgroundColor),borderLineColor:(0,l.o8)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,l.o8)(this.color),font:this.font&&this.font.clone(),haloColor:(0,l.o8)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,i.Cg)([(0,a.MZ)({type:o.A,json:{write:!0}})],d.prototype,"backgroundColor",void 0),(0,i.Cg)([(0,a.MZ)({type:o.A,json:{write:!0}})],d.prototype,"borderLineColor",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0},cast:s.cr})],d.prototype,"borderLineSize",void 0),(0,i.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],d.prototype,"font",void 0),(0,i.Cg)([(0,a.MZ)({...p.rM,json:{write:!0}})],d.prototype,"horizontalAlignment",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"kerning",void 0),(0,i.Cg)([(0,a.MZ)({type:o.A,json:{write:!0}})],d.prototype,"haloColor",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,cast:s.cr,json:{write:!0}})],d.prototype,"haloSize",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"rightToLeft",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"rotated",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"text",void 0),(0,i.Cg)([(0,f.e)({esriTS:"text"},{readOnly:!0})],d.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({...p.x0,json:{write:!0}})],d.prototype,"verticalAlignment",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,cast:s.cr,json:{write:!0}})],d.prototype,"xoffset",null),(0,i.Cg)([(0,a.MZ)({type:Number,cast:s.cr,json:{write:!0}})],d.prototype,"yoffset",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],d.prototype,"angle",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"width",void 0),(0,i.Cg)([(0,a.MZ)({type:Number})],d.prototype,"lineWidth",null),(0,i.Cg)([(0,h.K)("lineWidth")],d.prototype,"writeLineWidth",null),(0,i.Cg)([(0,a.wg)("lineWidth")],d.prototype,"castLineWidth",null),(0,i.Cg)([(0,a.MZ)(p.Tb)],d.prototype,"lineHeight",void 0),(0,i.Cg)([(0,h.K)("lineHeight")],d.prototype,"writeLineHeight",null),d=r=(0,i.Cg)([(0,a.$K)("esri.symbols.TextSymbol")],d)},5760(t,e,n){n.d(e,{NM:()=>s,Tb:()=>a,_R:()=>l,h9:()=>o,rM:()=>u,x0:()=>c,y7:()=>p});var r=n(34727),i=n(56507);const o=["none","underline","line-through"],l=["normal","italic","oblique"],s=["normal","lighter","bold","bolder"],a={type:Number,cast:t=>{const e=(0,i.GB)(t);return 0===e?1:(0,r.qE)(e,.1,4)},nonNullable:!0},u={type:["left","right","center"],nonNullable:!0},c={type:["baseline","top","middle","bottom"],nonNullable:!0},p=8}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3693],{85978(e,t,n){n.d(t,{A:()=>s});var r=n(87449),i=n(11221),a=n(33325);class s extends i.t1{constructor(e){super(),this.declaredClass="esri.layers.featureset.sources.Empty",this._maxProcessing=1e3,this._parent=e.parentfeatureset,this._databaseType=0}async _queryAll(){return i.An.features}async query(e){return i.An}async queryStat(e){return await this._manualStat(e.stat,e.field,e.limit??a.gO,e.abortSignal)}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new r.dr("NeverReach")}async queryAttachments(){return[]}}},3693(e,t,n){n.r(t),n.d(t,{registerFunctions:()=>Ne});var r=n(52106),i=n(66131),a=n(47609),s=n(66395),o=n(59534),l=n(85935),u=n(93833),d=n(47423),c=n(93818),f=n(78878),p=n(80672),h=n(48938),m=n(87449),y=n(11221),g=n(33325),w=n(80609),F=n(1262),I=n(89696);class b{constructor(e){this.field=e,this.sqlRewritable=!1}postInitialization(e,t){}}class A extends b{constructor(e){super(e),this.sqlRewritable=!0}extractValue(e){return e.attributes[this.field.name]}rewriteSql(e){return{rewritten:this.sqlRewritable,where:e}}}class N extends b{constructor(e,t,n){super((0,g.ke)(e)),this.originalField=e,this.sqlRewritable=!0,this.field.name=t,this.field.alias=n}rewriteSql(e,t){return{rewritten:this.sqlRewritable,where:(0,w.bD)(e,this.field.name,this.originalField.name,t.getFieldsIndex())}}extractValue(e){return e.attributes[this.originalField.name]}}class S extends b{constructor(e,t,n){super(e),this.codefield=t,this._stringToCode=n,this._codeToString={};for(const e in n)this._codeToString[n[e]]=e;this.sqlRewritable=!0}static{this.BADNESS="_!!!_BAD_LKP_!!!!"}rewriteSql(e,t){const n=this.evaluateNodeToWhereClause(e.parseTree,0,this.field.name,this.codefield instanceof I.A?(0,w.YY)(this.codefield,0):this.codefield,e.parameters);return n.includes(S.BADNESS)?{rewritten:!1,where:e}:{rewritten:this.sqlRewritable,where:I.A.create(n,{fieldsIndex:t._parent.getFieldsIndex(),timeZone:t.dateFieldsTimeZoneDefaultUTC})}}evaluateNodeToWhereClause(e,t,n=null,r=null,i){switch(e.type){case"interval":return(0,w.oj)(this.evaluateNodeToWhereClause(e.value,t,n,r,i),e.qualifier,e.op);case"case-expression":{let r=" CASE ";"simple"===e.format&&(r+=this.evaluateNodeToWhereClause(e.operand,t,n,S.BADNESS,i));for(const a of e.clauses)r+=" WHEN "+this.evaluateNodeToWhereClause(a.operand,t,n,S.BADNESS,i)+" THEN "+this.evaluateNodeToWhereClause(a.value,t,n,S.BADNESS,i);return null!==e.else&&(r+=" ELSE "+this.evaluateNodeToWhereClause(e.else,t,n,S.BADNESS,i)),r+=" END ",r}case"parameter":{const n=i[e.value.toLowerCase()];return"string"==typeof n?"'"+n.toString().replaceAll("'","''")+"'":(0,g.$P)(n)||(0,g.Lk)(n)?(0,w.bm)(n,t):(0,g.eg)(n)?(0,w.F1)(n,t):(0,g.rX)(n)?(0,w.R8)(n,t):(0,g.f0)(n)?(0,w.Nf)(n,t):Array.isArray(n)?n.map(e=>"string"==typeof e?"'"+e.toString().replaceAll("'","''")+"'":(0,g.$P)(e)||(0,g.Lk)(e)?(0,w.bm)(e,t):(0,g.eg)(e)?(0,w.F1)(e,t):(0,g.rX)(e)?(0,w.R8)(e,t):(0,g.f0)(e)?(0,w.Nf)(e,t):e.toString()):n.toString()}case"expression-list":{const a=[];for(const s of e.value)a.push(this.evaluateNodeToWhereClause(s,t,n,r,i));return a}case"unary-expression":return" ( NOT "+this.evaluateNodeToWhereClause(e.expr,t,n,S.BADNESS,i)+" ) ";case"binary-expression":switch(e.operator){case"AND":return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" AND "+this.evaluateNodeToWhereClause(e.right,t,n,r,i)+") ";case"OR":return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" OR "+this.evaluateNodeToWhereClause(e.right,t,n,r,i)+") ";case"IS":if("null"!==e.right.type)throw new F.L("UnsupportedIsRhs");return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IS NULL )";case"ISNOT":if("null"!==e.right.type)throw new F.L("UnsupportedIsRhs");return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IS NOT NULL )";case"IN":{if("expression-list"===e.right.type){if("column-reference"===e.left.type&&e.left.column.toUpperCase()===this.field.name.toUpperCase()){const a=[];let s=!0;for(const t of e.right.value){if("string"!==t.type){s=!1;break}if(void 0===this._stringToCode[t.value]){s=!1;break}a.push(this._stringToCode[t.value].toString())}if(s)return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IN ("+a.join(",")+")) "}const a=this.evaluateNodeToWhereClause(e.right,t,n,r,i);return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IN ("+a.join(",")+")) "}const a=this.evaluateNodeToWhereClause(e.right,t,n,r,i);return Array.isArray(a)?" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IN ("+a.join(",")+")) ":" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IN ("+a+")) "}case"NOT IN":{if("expression-list"===e.right.type){if("column-reference"===e.left.type&&e.left.column.toUpperCase()===this.field.name.toUpperCase()){const a=[];let s=!0;for(const t of e.right.value){if("string"!==t.type){s=!1;break}if(void 0===this._stringToCode[t.value]){s=!1;break}a.push(this._stringToCode[t.value].toString())}if(s)return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" NOT IN ("+a.join(",")+")) "}const a=this.evaluateNodeToWhereClause(e.right,t,n,r,i);return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" NOT IN ("+a.join(",")+")) "}const a=this.evaluateNodeToWhereClause(e.right,t,n,r,i);return Array.isArray(a)?" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" NOT IN ("+a.join(",")+")) ":" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" NOT IN ("+a+")) "}case"BETWEEN":{const r=this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i);return" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" BETWEEN "+r[0]+" AND "+r[1]+" ) "}case"NOTBETWEEN":{const r=this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i);return" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" NOT BETWEEN "+r[0]+" AND "+r[1]+" ) "}case"LIKE":return""!==e.escape?" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" LIKE "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+" ESCAPE '"+e.escape+"') ":" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" LIKE "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+") ";case"NOT LIKE":return""!==e.escape?" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" NOT LIKE "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+" ESCAPE '"+e.escape+"') ":" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" NOT LIKE "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+") ";case"<>":case"=":if("column-reference"===e.left.type&&"string"===e.right.type){if(e.left.column.toUpperCase()===this.field.name.toUpperCase()&&void 0!==this._stringToCode[e.right.value.toString()])return" ("+r+" "+e.operator+" "+this._stringToCode[e.right.value.toString()].toString()+") "}else if("column-reference"===e.right.type&&"string"===e.left.type&&e.right.column.toUpperCase()===this.field.name.toUpperCase())return" ("+this._stringToCode[e.left.value.toString()].toString()+" "+e.operator+" "+r+") ";return" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" "+e.operator+" "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+") ";case"<":case">":case">=":case"<=":case"*":case"-":case"+":case"/":case"||":return" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" "+e.operator+" "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+") "}case"null":return"null";case"boolean":return!0===e.value?"1":"0";case"string":return"'"+e.value.toString().replaceAll("'","''")+"'";case"timestamp":return`timestamp '${e.value}'`;case"date":return`date '${e.value}'`;case"time":return`time '${e.value}'`;case"number":return e.value.toString();case"current-time":return(0,w.C6)(e.mode,t);case"current-user":return"CURRENT_USER";case"column-reference":return n&&n.toLowerCase()===e.column.toLowerCase()?"("+r+")":(0,w.Kb)(e);case"data-type":return e.value;case"function":{const r=this.evaluateNodeToWhereClause(e.args,t,n,S.BADNESS,i);return(0,w.F6)(e.name,r,t)}}throw new F.L("UnsupportedSyntax",{node:e.type})}extractValue(e){if(this.codefield instanceof I.A){const t=this.codefield.calculateValueCompiled(e);return this._codeToString[I.A.convertValueToStorageFormat(t)]}return this._codeToString[e.attributes[this.codefield]]}}class T extends b{constructor(e,t){super(e),this._sql=t}rewriteSql(e,t){return{rewritten:!0,where:(0,w.bD)(e,this.field.name,(0,w.YY)(this._sql,0),t.getFieldsIndex())}}extractValue(e){return I.A.convertValueToStorageFormat(this._sql.calculateValueCompiled(e),this.field.type)}}class _ extends y.t1{static findField(e,t){for(const n of e)if(n.name.toLowerCase()===t.toString().toLowerCase())return n;return null}constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.Adapted",this._maxProcessing=30,this._parent=e.parentfeatureset,this._adaptedFields=e.adaptedFields,this._extraFilter=e.extraFilter}_initialiseFeatureSet(){this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.fields=[];for(const e of this._adaptedFields)e.postInitialization(this,this._parent),this.fields.push(e.field)}async _queryAll(){return await this._ensureLoaded(),this._extraFilter?(await this.query({abortSignal:h._})).features:this._calculateFields(await this._parent.queryAll(h._))}async query(e){let t=e.where??null;const n=this._reformulateWithoutAdaptions(t),r=n.cannot;t=n.where;let i=!n.cannot,a=!1,s=e.orderBy;if(null!=s){a=!0;const e=[];for(const t of this._adaptedFields)if(!(t instanceof A)&&!0===s.scanForField(t.field.name)){if(!(t instanceof N)){s=null,a=!1,i=!1;break}e.push({field:t.field.name,newfield:t.originalField.name})}s&&e.length>0&&(s=s.replaceFields(e))}null!=t?null!=this._extraFilter&&(t=(0,w.kg)(this._extraFilter,t)):t=this._extraFilter,await this._ensureLoaded();const o=await this._parent.query({...e,where:t,orderBy:s,limit:i?e.limit:null});return(0,m.dZ)(e.abortSignal),r?{...o,filterApplied:!1,ordered:!!a&&o.ordered,features:this._calculateFields(o.features)}:{...o,ordered:!!a&&o.ordered,features:this._calculateFields(o.features)}}async*_calculateFields(e){for await(const t of e)yield t.map(e=>{const t={};for(const n of this._adaptedFields)t[n.field.name]=n.extractValue(e);return{attributes:t,geometry:e.geometry}})}async queryStat(e){let t=!1,n=e.field,r=this._reformulateWithoutAdaptions(n);t=r.cannot,n=r.where;let i=e.where??null;if(r=this._reformulateWithoutAdaptions(i),t=t||r.cannot,i=r.where,null!=i?null!==this._extraFilter&&(i=(0,w.kg)(this._extraFilter,i)):i=this._extraFilter,t)return null==i&&null==e.spatialFilter?this._manualStat(e.stat,n,e.limit??g.gO,e.abortSignal):{calculated:!1};const a=await this._parent.queryStat({...e,field:n,where:i});return a.calculated?a:null==i&&null==e.spatialFilter?this._manualStat(e.stat,n,e.limit??g.gO,e.abortSignal):{calculated:!1}}async canQueryAggregate(e){for(const t of e.groupBy)for(const e of this._adaptedFields)if(t.toLowerCase()===e.field.name.toLowerCase()&&!(e instanceof A))return!1;const t=[];for(const n of e.statistics)if(null!==n.workingexpr){const e=this._reformulateWithoutAdaptions(n.workingexpr);if(e.cannot)return!1;const r=n.clone();r.workingexpr=e.where,t.push(r)}else t.push(n);let n=e.where??null;const r=this._reformulateWithoutAdaptions(n);return!r.cannot&&(n=r.where,null!==n?null!==this._extraFilter&&(n=(0,w.kg)(this._extraFilter,n)):n=this._extraFilter,this._parent.canQueryAggregate({...e,statistics:t,where:n}))}async queryAggregate(e){const t=[];for(const n of e.statistics)if(null!==n.workingexpr){const e=this._reformulateWithoutAdaptions(n.workingexpr);if(e.cannot)throw new m.dr("NeverReach");const r=n.clone();r.workingexpr=e.where,t.push(r)}else t.push(n);let n=e.where??null;const r=this._reformulateWithoutAdaptions(n);if(r.cannot)throw new m.dr("NeverReach");return n=r.where,null!==n?null!==this._extraFilter&&(n=(0,w.kg)(this._extraFilter,n)):n=this._extraFilter,this._parent.queryAggregate({...e,statistics:t,where:n})}_reformulateWithoutAdaptions(e){const t={cannot:!1,where:e};if(null!==e)for(const n of this._adaptedFields)if(!0===(0,w.Ju)(e,n.field.name)){const r=n.rewriteSql(e,this);if(!0!==r.rewritten){t.cannot=!0,t.where=null;break}t.where=r.where}return t}}var C=n(35704),v=n(4576);class x extends y.t1{constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.OrderBy",this._maxProcessing=100,this._parent=e.parentfeatureset,this._orderByClause=e.orderbyclause}async _queryAll(){return(await this.query({abortSignal:h._})).features}async query(e){if(null!=e.orderBy)return this._parent.query(e);await this._ensureLoaded();const t=await this._parent.query({...e,orderBy:this._orderByClause});return(0,m.dZ)(e.abortSignal),!1===t.ordered?{...t,ordered:!0,features:null!=e.limit&&e.limit<=5e3?this._topNFeatures(t.features,e.limit,e.abortSignal):this._sortFeatures(t.features,e.abortSignal)}:t}async*_sortFeatures(e,t){const n=[];for await(const r of e)n.push(r),await(0,f.a5)(),(0,m.dZ)(t);const r=n.flat();this._orderByClause.order(r),yield*(0,v.Ho)(r,this._maxQueryRate())}async*_topNFeatures(e,t,n){const r=[],i=this._orderByClause.toComparator();for await(const a of e){for(const e of a)(0,v.HX)(r,e,t,i);await(0,f.a5)(),(0,m.dZ)(n)}yield*(0,v.Ho)(r,this._maxQueryRate())}async queryStat(e){const t=await this._parent.queryStat(e);return t.calculated?t:null==e.where&&null==e.spatialFilter?this._manualStat(e.stat,e.field,e.limit??g.gO,e.abortSignal):{calculated:!1}}async canQueryAggregate(e){return this._parent.canQueryAggregate(e)}async queryAggregate(e){return this._parent.queryAggregate(e)}getFieldsIndex(){return this._parent.getFieldsIndex()}}function D(e,t){return e===t?0:null===e?-1:null===t?1:e<t?-1:1}class E{constructor(e){const t=e.split(",");this._fields=[],this._directions=[];for(let e=0;e<t.length;e++){const n=t[e].match(/\S+/g);this._fields.push(n[0]),2===n.length?"asc"===n[1].toLowerCase()?this._directions.push(1):this._directions.push(0):this._directions.push(1)}}toOrderByFields(){return this._fields.map((e,t)=>e+(1===this._directions[t]?" ASC":" DESC"))}order(e){e.sort(this.toComparator())}toComparator(){return(e,t)=>{for(let n=0;n<this._fields.length;n++){const r=this.featureValue(e,this._fields[n],n),i=this.featureValue(t,this._fields[n],n);let a=0;if(a=1===this._directions[n]?D(r,i):-1*D(r,i),0!==a)return a}return 0}}scanForField(e){for(let t=0;t<this._fields.length;t++)if(this._fields[t].toLowerCase().trim()===e.toLowerCase().trim())return!0;return!1}replaceFields(e){let t="";for(let n=0;n<this._fields.length;n++){0!==n&&(t+=",");let r=this._fields[n];for(const t of e)if(r.toLowerCase()===t.field.toLowerCase()){r=t.newfield;break}t+=r,1===this._directions[n]?t+=" ASC":t+=" DESC"}return new E(t)}featureValue(e,t,n){const r=e.attributes[t];if(void 0!==r)return r;for(const r in e.attributes)if(t.toLowerCase()===r.toLowerCase())return this._fields[n]=r,e.attributes[r];return null}}class k{constructor(){this.field="",this.tofieldname="",this.typeofstat="MIN",this.workingexpr=null}clone(){const e=new k;return e.field=this.field,e.tofieldname=this.tofieldname,e.typeofstat=this.typeofstat,e.workingexpr=this.workingexpr,e}static parseStatField(e,t,n,r){const i=new k;i.field=e;const a=I.A.create(t,{fieldsIndex:n,timeZone:r}),s=function(e){if("function"===e.parseTree.type){if(0===e.parseTree.args.value.length)return{name:e.parseTree.name,expr:null};if(e.parseTree.args.value.length>1)throw new F.L("MissingStatisticParameters");const t=I.A.create((0,w.Mi)(e.parseTree.args.value[0],0,e.parameters),{fieldsIndex:e.fieldsIndex,timeZone:e.timeZone,currentUser:e.currentUser});return{name:e.parseTree.name,expr:t}}return null}(a);if(null===s)throw new F.L("UnsupportedSqlFunction",{function:""});const o=s.name.toUpperCase().trim();if("MIN"===o){if(i.typeofstat="MIN",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"min"})}else if("MAX"===o){if(i.typeofstat="MAX",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"max"})}else if("COUNT"===o)i.typeofstat="COUNT",i.workingexpr=s.expr;else if("STDEV"===o){if(i.typeofstat="STDDEV",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"stdev"})}else if("SUM"===o){if(i.typeofstat="SUM",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"sum"})}else if("MEAN"===o){if(i.typeofstat="AVG",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:o})}else if("AVG"===o){if(i.typeofstat="AVG",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"avg"})}else{if("VAR"!==o)throw new F.L("UnsupportedSqlFunction",{function:o});if(i.typeofstat="VAR",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"var"})}return i}toStatisticsName(){switch(this.typeofstat.toUpperCase()){case"MIN":return"min";case"MAX":return"max";case"SUM":return"sum";case"COUNT":default:return"count";case"VAR":return"var";case"STDDEV":return"stddev";case"AVG":return"avg"}}}var L=n(80200),U=n(74639),$=n(44729),Z=n(55612),j=n(15032),B=n(20437);const M=new o.b(["MIN","MAX","VAR","STDDEV","COUNT","SUM","AVG"],[["VARIANCE","VAR"],["AVERAGE","AVG"],["MEAN","AVG"],["STDEV","STDDEV"]]);class W extends y.t1{constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.Aggregate",this._decodedStatsFields=[],this._decodedGroupByFields=[],this._canDoSimpleGroupBy=!0,this._physicalGroupByFields=[],this.objectIdField="ROW__ID",this._adaptedFields=[],this._uniqueIds=1,this._maxQuery=10,this._maxProcessing=10,this._parent=e.parentfeatureset,this._config=e}isTable(){return!0}_nextUniqueName(e){for(;1===e["T"+this._uniqueIds.toString()];)this._uniqueIds++;const t="T"+this._uniqueIds.toString();return e[t]=1,t}_convertToEsriFieldType(e){return e}_initialiseFeatureSet(){const e=this._parent.getFieldsIndex();this.objectIdField="ROW__ID",this.globalIdField="";let t=!1,n=1;for(;!1===t;){let e=!1;for(const t of this._config.groupbyfields)if(t.name.toLowerCase()===this.objectIdField.toLowerCase()){e=!0;break}if(!1===e)for(const t of this._config.statsfields)if(t.name.toLowerCase()===this.objectIdField.toLowerCase()){e=!0;break}!1===e?t=!0:(this.objectIdField="ROW__ID"+n.toString(),n++)}for(const t of this._config.statsfields){const n=new k;n.field=t.name,n.tofieldname=t.name,n.workingexpr=t.expression instanceof I.A?t.expression:I.A.create(t.expression,{fieldsIndex:e,timeZone:this.dateFieldsTimeZoneDefaultUTC}),n.typeofstat=M.lookup(t.statistic)??"COUNT",this._decodedStatsFields.push(n)}this._decodedGroupByFields=[];for(const t of this._config.groupbyfields){const n={name:t.name,singlefield:null,tofieldname:t.name,expression:t.expression instanceof I.A?t.expression:I.A.create(t.expression,{fieldsIndex:e,timeZone:this.dateFieldsTimeZoneDefaultUTC}),sqlType:null};this._decodedGroupByFields.push(n)}const r={};this.geometryType=this._parent.geometryType,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField="";for(const e of this._parent.fields)r[e.name.toUpperCase()]=1;this.types=null,this.subtypes=null,this.subtypeField="",this.fields=[];const i=new k;i.field=this._nextUniqueName(r),i.tofieldname=this.objectIdField,i.workingexpr=I.A.create(this._parent.objectIdField,{fieldsIndex:this._parent.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),i.typeofstat="MIN",this._decodedStatsFields.push(i);for(const e of this._decodedGroupByFields){const t=new B.A;if(e.name=this._nextUniqueName(r),t.name=e.tofieldname,t.alias=t.name,(0,w.DA)(e.expression)){const n=this._parent.getField((0,w.YY)(e.expression,0));if(!n)throw new m.dr("AggregationFieldNotFound");e.name=n.name,e.singlefield=n.name,this._physicalGroupByFields.push(n.name),t.type=n.type,e.sqlType=n.type}else{t.type=this._convertToEsriFieldType((0,w.IY)(e.expression,this._parent.fields));const n=new B.A;n.name=e.name,n.alias=n.name,this._physicalGroupByFields.push(e.name),this._adaptedFields.push(new T(n,e.expression)),this._canDoSimpleGroupBy=!1,e.sqlType=t.type}this.fields.push(t)}if(this._adaptedFields.length>0)for(const e of this._parent.fields)this._adaptedFields.push(new A(e));for(const e of this._decodedStatsFields){const t=new B.A;let n=null;e.field=this._nextUniqueName(r),t.name=e.tofieldname,t.alias=t.name;const i=null!==e.workingexpr&&(0,w.DA)(e.workingexpr)?(0,w.YY)(e.workingexpr,0):"";switch(e.typeofstat){case"SUM":if(""!==i){if(n=this._parent.getField(i),!n)throw new m.dr("AggregationFieldNotFound");t.type=n.type}else t.type="double";break;case"MIN":case"MAX":if(""!==i){if(n=this._parent.getField(i),!n)throw new m.dr("AggregationFieldNotFound");t.type=n.type}else t.type="double";break;case"COUNT":t.type="integer";break;case"STDDEV":case"VAR":case"AVG":if(""!==i&&(n=this._parent.getField(i),!n))throw new m.dr("AggregationFieldNotFound");t.type="double"}this.fields.push(t)}}async _queryAll(){return(await this.query({abortSignal:h._})).features}async query(e){if(null!=e.spatialFilter)return y.An;const t={ordered:!1,nowhereclause:!1};await this._ensureLoaded();let n=e.where;if(null!=n)for(const e of this._decodedStatsFields)if(!0===(0,w.Ju)(n,e.tofieldname)){t.nowhereclause=!0,n=null;break}let r=e.orderBy;if(null!=r){t.ordered=!0;for(const e of this._decodedStatsFields)if(!0===r.scanForField(e.tofieldname)){r=null,t.ordered=!1;break}if(null!==r)for(const e of this._decodedGroupByFields)if(null===e.singlefield&&!0===r.scanForField(e.tofieldname)){r=null,t.ordered=!1;break}}if(!1!==this._canDoSimpleGroupBy&&await this._parent.canQueryAggregate({groupBy:this._physicalGroupByFields,statistics:this._decodedStatsFields,where:null,spatialFilter:null,abortSignal:e.abortSignal})){const i=await this._parent.queryAggregate({groupBy:this._physicalGroupByFields,statistics:this._decodedStatsFields,where:n?this._reformulateWhereClauseWithoutGroupByFields(n):null,spatialFilter:null,orderBy:r?this._reformulateOrderClauseWithoutGroupByFields(r):null,abortSignal:e.abortSignal});return(0,m.dZ)(e.abortSignal),{...i,filterApplied:!t.nowhereclause&&i.filterApplied,ordered:!0===t.ordered&&i.ordered,features:this._fixAggregateAttributeNames(i.features)}}const i=this._adaptedFields.length>0?new _({parentfeatureset:this._parent,adaptedFields:this._adaptedFields,extraFilter:null}):this._parent;if(!0===t.nowhereclause){const t=new x({parentfeatureset:i,orderbyclause:new E(this._physicalGroupByFields.join(",")+","+this._parent.objectIdField+" ASC")});return{filterApplied:!1,spatialFilterApplied:!1,ordered:!1,features:this._aggregateSortedFeatureGroups((await t.query({abortSignal:e.abortSignal})).features,this._maxQuery,e.abortSignal)}}let a=i;null!=n&&(a=new C.A({parentfeatureset:a,whereclause:this._reformulateWhereClauseWithoutGroupByFields(n)}));const s=new x({parentfeatureset:a,orderbyclause:new E(this._physicalGroupByFields.join(",")+","+this._parent.objectIdField+" ASC")});return{filterApplied:!1,spatialFilterApplied:!1,ordered:!1,features:this._aggregateSortedFeatureGroups((await s.query({abortSignal:e.abortSignal})).features,this._maxQuery,e.abortSignal)}}async*_fixAggregateAttributeNames(e){for await(const t of e)yield t.map(e=>{const t={geometry:e.geometry,attributes:{}},n={};for(const t in e.attributes)n[t.toLowerCase()]=e.attributes[t];for(const e of this._decodedGroupByFields)t.attributes[e.tofieldname]=n[e.name.toLowerCase()];for(const e of this._decodedStatsFields)t.attributes[e.tofieldname]=n[e.field.toLowerCase()];return t})}async*_aggregateSortedFeatureGroups(e,t,n){let r=null,i=[];for await(const a of e){await(0,f.a5)(),(0,m.dZ)(n);for(const e of a){const t=this._generateAggregateHash(e);null==r?r={features:[e],id:t}:t!==r.id?(i.push(this._calculateAndAppendAggregateItem(r)),r={features:[e],id:t}):r.features.push(e)}i.length>=t&&(yield i,i=[])}null!=r&&(i.push(this._calculateAndAppendAggregateItem(r)),yield i)}async queryStat(e){return{calculated:!1}}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new m.dr("NeverReach")}_reformulateWhereClauseWithoutStatsFields(e){for(const t of this._decodedStatsFields)e=(0,w.bD)(e,t.tofieldname,(0,w.YY)(t.workingexpr,0),this._parent.getFieldsIndex());return e}_reformulateWhereClauseWithoutGroupByFields(e){for(const t of this._decodedGroupByFields)t.tofieldname!==t.name&&(e=(0,w.bD)(e,t.tofieldname,(0,w.YY)(t.expression,0),this._parent.getFieldsIndex()));return e}_reformulateOrderClauseWithoutGroupByFields(e){const t=[];for(const e of this._decodedGroupByFields)e.tofieldname!==e.name&&t.push({field:e.tofieldname,newfield:e.name});return t.length>0?e.replaceFields(t):e}_calculateFieldStat(e,t,n){const r=[];for(const n of e.features)if(null!==t.workingexpr){const e=t.workingexpr.calculateValue(n);null!==e&&(e instanceof $.n||e instanceof j.k?r.push(e.toNumber()):e instanceof Z.g?r.push(e.toMilliseconds()):r.push(e))}else r.push(null);n.attributes[t.tofieldname]=(0,U.s)(t.typeofstat,[r])}_calculateAndAppendAggregateItem(e){const t={attributes:{}};for(const n of this._decodedGroupByFields){const r=n.singlefield?e.features[0].attributes[n.singlefield]:I.A.convertValueToStorageFormat(n.expression.calculateValue(e.features[0]),n.sqlType);t.attributes[n.tofieldname]=r}for(const n of this._decodedStatsFields)this._calculateFieldStat(e,n,t);return t}_generateAggregateHash(e){let t="";for(const n of this._decodedGroupByFields){const r=n.singlefield?e.attributes[n.singlefield]:n.expression.calculateValue(e);t+=null==r?":":":"+r.toString()}return(0,L.d)(t,L.T.String)}async getFeatureByObjectId(){throw new m.dr("NotImplemented")}}async function*R(e,t){let n=t;for await(const t of e)if(n>=t.length?(n-=t.length,yield t):(yield t.slice(0,n),n=0),n<=0)break}class q extends y.t1{constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.Top",this._maxProcessing=100,this._parent=e.parentfeatureset,this._limit=e.topnum}async _queryAll(){return(await this.query({abortSignal:h._})).features}async query(e){const t=null!=e.limit&&null==e.where&&null==e.spatialFilter&&null==e.orderBy?Math.min(e.limit,this._limit):this._limit;await this._ensureLoaded();const{features:n}=await this._parent.query({limit:t,abortSignal:e.abortSignal});return{filterApplied:null==e.where,spatialFilterApplied:null==e.spatialFilter,ordered:!1,features:R(n,t)}}async queryStat(e){return{calculated:!1}}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new m.dr("NeverReach")}getFieldsIndex(){return this._parent.getFieldsIndex()}}var P=n(85978),O=n(30235),V=n(334),G=n(17676),K=n(18589),J=n(11254),H=n(51447),z=n(53966),Q=n(66552);new Q.J({Clean:"clean",Dirty:"dirty",Invalid:"invalid"}),new Q.J({Physical:"physical",Virtual:"virtual"}),new Q.J({"Start and End":"start-and-end",Start:"start",Midspan:"midspan",End:"end"}),new Q.J({Available:"available",Consumed:"consumed",Reserved:"reserved"}),new Q.J({startingPoint:"starting-point",barrier:"barrier",stoppingPoint:"stopping-point"}),new Q.J({connected:"connected",upstream:"upstream",downstream:"downstream",shortestPath:"shortest-path",subnetwork:"subnetwork",subnetworkController:"subnetwork-controller",loops:"loops",isolation:"isolation",path:"path",circuit:"circuit"});const Y="{00000000-0000-0000-0000-000000000000}",X=new Q.J({junctionJunctionConnectivity:"junction-junction-connectivity",connectivity:"connectivity",attachment:"attachment",containment:"containment",junctionEdgeFromConnectivity:"junction-edge-from-connectivity",junctionEdgeMidspanConnectivity:"junction-edge-midspan-connectivity",junctionEdgeToConnectivity:"junction-edge-to-connectivity"});new Q.J({normal:"normal",rebuild:"rebuild",forceRebuild:"force-rebuild"});var ee=n(2272),te=n(5482),ne=n(25482),re=n(91429),ie=n(82799);let ae=class extends ne.o{constructor(e){super(e),this.type="networkElement",this.assetGroupCode=null,this.assetTypeCode=null,this.globalId=null,this.networkSourceId=null,this.objectId=null,this.positionFrom=null,this.positionTo=null,this.terminalId=null}};(0,te.Cg)([(0,re.MZ)({json:{write:!1}})],ae.prototype,"type",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"assetGroupCode",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"assetTypeCode",void 0),(0,te.Cg)([(0,re.MZ)({type:String,json:{write:!0}})],ae.prototype,"globalId",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"networkSourceId",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"objectId",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"positionFrom",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"positionTo",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"terminalId",void 0),ae=(0,te.Cg)([(0,re.$K)("esri.rest.networks.support.NetworkElement")],ae);let se=class extends ae{constructor(e){super(e),this.type="telecomNetworkElement",this.firstUnit=null,this.lastUnit=null,this.terminalId=null}};(0,te.Cg)([(0,re.MZ)({json:{write:!1}})],se.prototype,"type",void 0),(0,te.Cg)([(0,re.MZ)({json:{write:!0}})],se.prototype,"firstUnit",void 0),(0,te.Cg)([(0,re.MZ)({json:{write:!0}})],se.prototype,"lastUnit",void 0),(0,te.Cg)([(0,re.MZ)({readOnly:!0})],se.prototype,"terminalId",void 0),se=(0,te.Cg)([(0,re.$K)("esri.rest.networks.support.TelecomNetworkElement")],se);var oe=n(36005),le=n(43937);let ue=class extends ne.o{constructor(e){super(e),this.globalId=null,this.associationType=null,this.fromNetworkElement=null,this.toNetworkElement=null,this.geometry=null,this.errorMessage=null,this.percentAlong=null,this.errorCode=null,this.isContentVisible=null,this.status=null}readFromNetworkElement(e,t){return t.fromFirstUnit||t.fromLastUnit?new se({globalId:t.fromGlobalId,networkSourceId:t.fromNetworkSourceId,firstUnit:t.fromFirstUnit,lastUnit:t.fromLastUnit}):new ae({globalId:t.fromGlobalId,networkSourceId:t.fromNetworkSourceId,terminalId:t.fromTerminalId})}writeFromNetworkElement(e,t){if(e&&(t.fromGlobalId=e.globalId,t.fromNetworkSourceId=e.networkSourceId,t.fromTerminalId=e.terminalId,"telecomNetworkElement"===e.type)){const n=e;t.fromFirstUnit=n.firstUnit,t.fromLastUnit=n.lastUnit}}readToNetworkElement(e,t){return t.toFirstUnit||t.toLastUnit?new se({globalId:t.toGlobalId,networkSourceId:t.toNetworkSourceId,firstUnit:t.toFirstUnit,lastUnit:t.toLastUnit}):new ae({globalId:t.toGlobalId,networkSourceId:t.toNetworkSourceId,terminalId:t.toTerminalId})}writeToNetworkElement(e,t){if(e&&(t.toGlobalId=e.globalId,t.toNetworkSourceId=e.networkSourceId,t.toTerminalId=e.terminalId,"telecomNetworkElement"===e.type)){const n=e;t.toFirstUnit=n.firstUnit,t.toLastUnit=n.lastUnit}}equals(e){if(this.globalId===Y&&e.globalId===Y){function t(e,t){return e.networkSourceId===t.networkSourceId&&e.globalId===t.globalId&&e.terminalId===t.terminalId&&e.firstUnit===t.firstUnit&&e.lastUnit===t.lastUnit}const n=this.fromNetworkElement,r=this.toNetworkElement,i=e.fromNetworkElement,a=e.toNetworkElement,s=t(n,i),o=t(r,a);return s&&o&&this.associationType===e.associationType}return null!=this.globalId&&null!=e.globalId&&this.globalId===e.globalId}};(0,te.Cg)([(0,re.MZ)({type:String,json:{write:!0}})],ue.prototype,"globalId",void 0),(0,te.Cg)([(0,re.MZ)({type:X.apiValues,json:{type:X.jsonValues,read:X.read,write:X.write}})],ue.prototype,"associationType",void 0),(0,te.Cg)([(0,re.MZ)({type:ae,json:{write:{target:{fromGlobalId:{type:String},fromNetworkSourceId:{type:Number},fromTerminalId:{type:Number},fromFirstUnit:{type:Number},fromLastUnit:{type:Number}}},read:{source:["fromGlobalId","fromNetworkSourceId","fromTerminalId","fromFirstUnit","fromLastUnit"]}}})],ue.prototype,"fromNetworkElement",void 0),(0,te.Cg)([(0,oe.w)("fromNetworkElement")],ue.prototype,"readFromNetworkElement",null),(0,te.Cg)([(0,le.K)("fromNetworkElement")],ue.prototype,"writeFromNetworkElement",null),(0,te.Cg)([(0,re.MZ)({type:ae,json:{write:{target:{toGlobalId:{type:String},toNetworkSourceId:{type:Number},toTerminalId:{type:Number},toFirstUnit:{type:Number},toLastUnit:{type:Number}}},read:{source:["toGlobalId","toNetworkSourceId","toTerminalId","toFirstUnit","toLastUnit"]}}})],ue.prototype,"toNetworkElement",void 0),(0,te.Cg)([(0,oe.w)("toNetworkElement")],ue.prototype,"readToNetworkElement",null),(0,te.Cg)([(0,le.K)("toNetworkElement")],ue.prototype,"writeToNetworkElement",null),(0,te.Cg)([(0,re.MZ)({type:ie.A,json:{write:!0}})],ue.prototype,"geometry",void 0),(0,te.Cg)([(0,re.MZ)({type:String,json:{write:!0}})],ue.prototype,"errorMessage",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ue.prototype,"percentAlong",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ue.prototype,"errorCode",void 0),(0,te.Cg)([(0,re.MZ)({type:Boolean,json:{write:!0}})],ue.prototype,"isContentVisible",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ue.prototype,"status",void 0),ue=(0,te.Cg)([(0,re.$K)("esri.rest.networks.support.Association")],ue);const de=ue;let ce=class extends ne.o{constructor(e){super(e),this.associations=[]}};function fe(e){const{returnDeletes:t,elements:n,gdbVersion:r,moment:i}=e.toJSON();return{returnDeletes:t,elements:JSON.stringify(n.map(e=>({globalId:e.globalId,networkSourceId:e.networkSourceId,terminalId:e.terminalId}))),types:JSON.stringify(e.types.map(e=>X.toJSON(e))).replaceAll('"connectivity"','"junctionJunctionConnectivity"'),gdbVersion:r,moment:i??Date.now()}}(0,te.Cg)([(0,re.MZ)({type:[de],json:{write:!0}})],ce.prototype,"associations",void 0),ce=(0,te.Cg)([(0,re.$K)("esri.rest.networks.support.QueryAssociationsResult")],ce);var pe,he=n(56507);let me=pe=class extends ne.o{static from(e){return(0,he.PZ)(pe,e)}constructor(e){super(e),this.returnDeletes=!1,this.elements=[],this.types=[],this.gdbVersion=null,this.moment=null}};(0,te.Cg)([(0,re.MZ)({type:Boolean,json:{write:!0}})],me.prototype,"returnDeletes",void 0),(0,te.Cg)([(0,re.MZ)({type:[ae],json:{write:!0}})],me.prototype,"elements",void 0),(0,te.Cg)([(0,re.MZ)({type:[X.apiValues],json:{type:X.jsonValues,read:X.read,write:X.write}})],me.prototype,"types",void 0),(0,te.Cg)([(0,re.MZ)({type:String,json:{write:!0}})],me.prototype,"gdbVersion",void 0),(0,te.Cg)([(0,re.MZ)({type:Date,json:{type:Number,write:{writer:(e,t)=>{t.moment=e?.getTime()}}}})],me.prototype,"moment",void 0),me=pe=(0,te.Cg)([(0,re.$K)("esri.rest.networks.support.QueryAssociationsParameters")],me);var ye=n(54218);function ge(e,t,n){const r=e.getVariables();if(r.length>0){const i={};for(const e of r)i[e]=t.evaluateIdentifier(n,{name:e});e.parameters=i}return e}function we(e,t,n=null){for(const n in e)if(n.toLowerCase()===t.toLowerCase())return e[n];return n}function Fe(e){if(null===e)return null;const t={type:we(e,"type",""),name:we(e,"name","")};if("range"===t.type)t.range=we(e,"range",[]);else{t.codedValues=[];for(const n of we(e,"codedValues",[]))t.codedValues.push({name:we(n,"name",""),code:we(n,"code",null)})}return t}function Ie(e){if(null===e)return null;const t={},n=we(e,"wkt");null!==n&&(t.wkt=n);const r=we(e,"wkid");return null!==r&&(t.wkid=r),t}function be(e){if(null===e)return null;const t={hasZ:we(e,"hasz",!1),hasM:we(e,"hasm",!1)},n=we(e,"spatialreference");null!=n&&(t.spatialReference=Ie(n));const r=we(e,"x",null);if(null!==r)return t.x=r,t.y=we(e,"y",null),t.hasZ&&(t.z=we(e,"z",null)),t.hasM&&(t.m=we(e,"m",null)),t;const i=we(e,"rings",null);if(null!==i)return t.rings=i,t;const a=we(e,"paths",null);if(null!==a)return t.paths=a,t;const s=we(e,"points",null);if(null!==s)return t.points=s,t;for(const n of["xmin","xmax","ymin","ymax","zmin","zmax","mmin","mmax"]){const r=we(e,n,null);null!==r&&(t[n]=r)}return t}function Ae(e){return"utc"===e?.toLowerCase()?"UTC":"unknown"===e?.toLowerCase()?"Unknown":e}function Ne(e){if("async"===e.mode){e.functions.timezone=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,a)=>{if((0,f.B)(a,1,2,t,n),(0,f.g)(a[0]))return"Unknown";if((0,f.f)(a[0]))return"Unknown";if((0,f.m)(a[0])){if(await a[0].load(),1===a.length||null===a[1])return a[0].datesInUnknownTimezone?Ae("unknown"):Ae(a[0].dateFieldsTimeZone);if(!(a[1]instanceof s.A)||!1===a[1].hasField("type"))throw new l.D$(t,"InvalidParameter",n);const e=a[1].field("type");if(!1===(0,ye.Kg)(e))throw new l.D$(t,"InvalidParameter",n);switch((0,f.s)(e).toLowerCase()){case"preferredtimezone":return Ae(a[0].preferredTimeZone);case"editfieldsinfo":return Ae(a[0].editFieldsInfo?.timeZone??null);case"timeinfo":return Ae(a[0].timeInfo?.timeZone??null);case"field":if(a[1].hasField("fieldname")&&(0,ye.Kg)(a[1].field("fieldname")))return Ae(a[0].fieldTimeZone((0,f.s)(a[1].field("fieldname"))))}throw new l.D$(t,"InvalidParameter",n)}const o=(0,f.P)(a[0],(0,f.K)(t));if(null===o)return null;const u=o.timeZone;return"system"===u?i.lY.systemTimeZoneCanonicalName:"utc"===u.toLowerCase()?"UTC":"unknown"===u.toLowerCase()?"Unknown":u})},e.functions.sqltimestamp=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,i)=>{(0,f.B)(i,1,3,t,n);const a=i[0];if((0,f.e)(a)){if(1===i.length)return a.toSQLWithKeyword();if(2===i.length)return a.changeTimeZone((0,f.s)(i[1])).toSQLWithKeyword();throw new l.D$(t,"InvalidParameter",n)}if((0,f.f)(a))return a.toSQLWithKeyword();if((0,f.m)(a)){if(3!==i.length)throw new l.D$(t,"InvalidParameter",n);await a.load();const e=(0,f.s)(i[1]);if((0,f.f)(i[2]))return i[2].toSQLWithKeyword();if(!1===(0,f.e)(i[2]))throw new l.D$(t,"InvalidParameter",n);const r=a.fieldTimeZone(e);return null==r?i[2].toSQLWithKeyword():i[2].changeTimeZone(r).toSQLWithKeyword()}throw new l.D$(t,"InvalidParameter",n)})},e.signatures.push({name:"sqltimestamp",min:2,max:4}),e.functions.featuresetbyid=function(t,n){return e.standardFunctionAsync(t,n,(e,r,i)=>{if((0,f.B)(i,2,4,t,n),(0,f.l)(i[0])){const e=(0,f.s)(i[1]);let r=(0,f.J)(i[2],null);const a=(0,f.H)((0,f.J)(i[3],!0));if(null===r&&(r=["*"]),!1===(0,ye.cy)(r))throw new l.D$(t,"InvalidParameter",n);return i[0].featureSetById(e,a,r)}throw new l.D$(t,"InvalidParameter",n)})},e.signatures.push({name:"featuresetbyid",min:2,max:4});const t=new o.b(["datasource","parent","root"]);e.functions.getfeatureset=function(n,r){return e.standardFunctionAsync(n,r,async(e,i,a)=>{if((0,f.B)(a,1,2,n,r),(0,f.k)(a[0])){const e=null==a[1]?"datasource":t.lookup((0,f.s)(a[1]));return(0,d.convertToFeatureSet)(a[0].fullSchema(),e,n.lrucache,n.interceptor,n.spatialReference)}throw new l.D$(n,"InvalidParameter",r)})},e.signatures.push({name:"getfeatureset",min:1,max:2}),e.functions.featuresetbyportalitem=function(t,n){return e.standardFunctionAsync(t,n,(e,r,i)=>{if((0,f.B)(i,2,5,t,n),null===i[0])throw new l.D$(t,"PortalRequired",n);if(i[0]instanceof a.A){const e=(0,f.s)(i[1]),r=(0,f.s)(i[2]);let a=(0,f.J)(i[3],null);const s=(0,f.H)((0,f.J)(i[4],!0));if(null===a&&(a=["*"]),!1===(0,ye.cy)(a))throw new l.D$(t,"InvalidParameter",n);const o=(0,p.RI)(t,i[0]);return(0,d.constructFeatureSetFromPortalItem)(e,r,t.spatialReference,a,s,o,t.lrucache,t.interceptor)}if(!1===(0,ye.Kg)(i[0]))throw new l.D$(t,"PortalRequired",n);const s=(0,f.s)(i[0]),o=(0,f.s)(i[1]);let u=(0,f.J)(i[2],null);const c=(0,f.H)((0,f.J)(i[3],!0));if(null===u&&(u=["*"]),!1===(0,ye.cy)(u))throw new l.D$(t,"InvalidParameter",n);return(0,d.constructFeatureSetFromPortalItem)(s,o,t.spatialReference,u,c,(0,p.Iq)(t),t.lrucache,t.interceptor)})},e.signatures.push({name:"featuresetbyportalitem",min:2,max:5}),e.functions.featuresetbyname=function(t,n){return e.standardFunctionAsync(t,n,(e,r,i)=>{if((0,f.B)(i,2,4,t,n),(0,f.l)(i[0])){const e=(0,f.s)(i[1]);let r=(0,f.J)(i[2],null);const a=(0,f.H)((0,f.J)(i[3],!0));if(null===r&&(r=["*"]),!1===(0,ye.cy)(r))throw new l.D$(t,"InvalidParameter",n);return i[0].featureSetByName(e,a,r)}throw new l.D$(t,"InvalidParameter",n)})},e.signatures.push({name:"featuresetbyname",min:2,max:4}),e.functions.featureset=function(t,n){return e.standardFunction(t,n,(e,r,i)=>{(0,f.B)(i,1,1,t,n);const a={layerDefinition:{geometryType:"",objectIdField:"",globalIdField:"",typeIdField:"",hasM:!1,hasZ:!1,fields:[]},featureSet:{geometryType:"",features:[]}};if((0,ye.Kg)(i[0])){const e=JSON.parse(i[0]);void 0!==e.layerDefinition?(a.layerDefinition=e.layerDefinition,a.featureSet=e.featureSet,e.layerDefinition.spatialReference&&(a.layerDefinition.spatialReference=e.layerDefinition.spatialReference)):(a.featureSet.features=e.features,a.featureSet.geometryType=e.geometryType,a.layerDefinition.geometryType=a.featureSet.geometryType,a.layerDefinition.objectIdField=e.objectIdFieldName??"",a.layerDefinition.typeIdField=e.typeIdFieldName,a.layerDefinition.globalIdField=e.globalIdFieldName,a.layerDefinition.fields=e.fields,e.spatialReference&&(a.layerDefinition.spatialReference=e.spatialReference))}else{if(!(i[0]instanceof s.A))throw new l.D$(t,"InvalidParameter",n);{const e=JSON.parse(i[0].castToText(!0)),r=we(e,"layerdefinition");if(null!==r){a.layerDefinition.geometryType=we(r,"geometrytype",""),a.featureSet.geometryType=a.layerDefinition.geometryType,a.layerDefinition.globalIdField=we(r,"globalidfield",""),a.layerDefinition.objectIdField=we(r,"objectidfield",""),a.layerDefinition.typeIdField=we(r,"typeidfield",""),a.layerDefinition.hasZ=!0===we(r,"hasz",!1),a.layerDefinition.hasM=!0===we(r,"hasm",!1);const t=we(r,"spatialreference");t&&(a.layerDefinition.spatialReference=Ie(t));const n=[];for(const e of we(r,"fields",[])){const t={name:we(e,"name",""),alias:we(e,"alias",""),type:we(e,"type",""),nullable:we(e,"nullable",!0),editable:we(e,"editable",!0),length:we(e,"length",null),domain:Fe(we(e,"domain"))};n.push(t)}a.layerDefinition.fields=n;const i=we(e,"featureset");if(i){const e={};for(const t of n)e[t.name.toLowerCase()]=t.name;for(const t of we(i,"features",[])){const n={},r=we(t,"attributes",{});for(const t in r)n[e[t.toLowerCase()]]=r[t];a.featureSet.features.push({attributes:n,geometry:be(we(t,"geometry"))})}}}else{a.layerDefinition.hasZ=!0===we(e,"hasz",!1),a.layerDefinition.hasM=!0===we(e,"hasm",!1),a.layerDefinition.geometryType=we(e,"geometrytype",""),a.featureSet.geometryType=a.layerDefinition.geometryType,a.layerDefinition.objectIdField=we(e,"objectidfieldname",""),a.layerDefinition.typeIdField=we(e,"typeidfieldname","");const r=we(e,"spatialreference");r&&(a.layerDefinition.spatialReference=Ie(r));const i=[],s=we(e,"fields",null);if(!(0,ye.cy)(s))throw new l.D$(t,"InvalidParameter",n);for(const e of s){const t={name:we(e,"name",""),alias:we(e,"alias",""),type:we(e,"type",""),nullable:we(e,"nullable",!0),editable:we(e,"editable",!0),length:we(e,"length",null),domain:Fe(we(e,"domain"))};i.push(t)}a.layerDefinition.fields=i;const o={};for(const e of i)o[e.name.toLowerCase()]=e.name;let u=we(e,"features",null);if((0,ye.cy)(u))for(const e of u){const t={},n=we(e,"attributes",{});for(const e in n)t[o[e.toLowerCase()]]=n[e];a.featureSet.features.push({attributes:t,geometry:be(we(e,"geometry",null))})}else u=null,a.featureSet.features=u}}}if(!1===function(e){return!!e.layerDefinition&&!!e.featureSet&&!1!==function(e){for(const t of["",null,"esriGeometryNull","esriGeometryPoint","esriGeometryPolyline","esriGeometryPolygon","esriGeometryMultipoint","esriGeometryEnvelope"])if(t===e)return!0;return!1}(e.layerDefinition.geometryType)&&!1!==(0,ye.cy)(e.layerDefinition.fields)&&!1!==(0,ye.cy)(e.featureSet.features)}(a))throw new l.D$(t,"InvalidParameter",n);return a.layerDefinition.geometryType||(a.layerDefinition.geometryType="esriGeometryNull"),O.A.create(a,t.spatialReference)})},e.signatures.push({name:"featureset",min:1,max:1}),e.functions.filter=function(t,n){return e.standardFunctionAsync(t,n,async(r,i,a)=>{if((0,f.B)(a,2,2,t,n),(0,ye.cy)(a[0])||(0,f.j)(a[0])){const e=[];let r,i=a[0];if(i instanceof c.A&&(i=i.toArray()),!(0,f.i)(a[1]))throw new l.D$(t,"InvalidParameter",n);r=a[1].createFunction(t);for(const t of i){const n=r(t);(0,G.$X)(n)?!0===await n&&e.push(t):!0===n&&e.push(t)}return e}if((0,f.m)(a[0])){const n=await a[0].load(),r=I.A.create(a[1],{fieldsIndex:n.getFieldsIndex(),timeZone:n.dateFieldsTimeZoneDefaultUTC}),i=r.getVariables();if(i.length>0){const n={};for(const r of i)n[r]=e.evaluateIdentifier(t,{name:r});r.parameters=n}return new C.A({parentfeatureset:a[0],whereclause:r})}throw new l.D$(t,"InvalidParameter",n)})},e.signatures.push({name:"filter",min:2,max:2}),e.functions.orderby=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,i)=>{if((0,f.B)(i,2,2,t,n),(0,f.m)(i[0])){const e=new E(i[1]);return new x({parentfeatureset:i[0],orderbyclause:e})}throw new l.D$(t,"InvalidParameter",n)})},e.signatures.push({name:"orderby",min:2,max:2}),e.functions.top=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,i)=>{if((0,f.B)(i,2,2,t,n),(0,f.m)(i[0]))return new q({parentfeatureset:i[0],topnum:i[1]});if((0,ye.cy)(i[0]))return(0,f.r)(i[1])>=i[0].length?i[0].slice():i[0].slice(0,(0,f.r)(i[1]));if((0,f.j)(i[0]))return(0,f.r)(i[1])>=i[0].length()?i[0].slice():i[0].slice(0,(0,f.r)(i[1]));throw new l.D$(t,"InvalidParameter",n)})},e.signatures.push({name:"top",min:2,max:2}),e.functions.first=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,i)=>{if((0,f.B)(i,1,1,t,n),(0,f.m)(i[0])){const n=await i[0].first(e.abortSignal);if(null!==n){const e=u.Xj.createFromGraphicLikeObject(n.geometry,n.attributes,i[0],t.timeZone);return e._underlyingGraphic=n,e}return n}return(0,ye.cy)(i[0])?0===i[0].length?null:i[0][0]:(0,f.j)(i[0])?0===i[0].length()?null:i[0].get(0):null})},e.signatures.push({name:"first",min:1,max:1}),e.functions.attachments=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,i)=>{(0,f.B)(i,1,2,t,n);const a={minsize:-1,maxsize:-1,types:null,returnMetadata:!1};if(i.length>1)if(i[1]instanceof s.A){if(i[1].hasField("minsize")&&(a.minsize=(0,f.r)(i[1].field("minsize"))),i[1].hasField("metadata")&&(a.returnMetadata=(0,f.H)(i[1].field("metadata"))),i[1].hasField("maxsize")&&(a.maxsize=(0,f.r)(i[1].field("maxsize"))),i[1].hasField("types")){const e=(0,f.N)(i[1].field("types"),!1);e.length>0&&(a.types=e)}}else if(null!==i[1])throw new l.D$(t,"InvalidParameter",n);if((0,f.k)(i[0])){const e=i[0]._layer;let n;if((0,f.m)(e))n=e;else{if(null==e||!(0,g.eB)(e))return[];n=(0,d.constructFeatureSet)(e,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)}return await n.load(),n.queryAttachments(i[0].field(n.objectIdField),a.minsize,a.maxsize,a.types,a.returnMetadata)}if(null===i[0])return[];throw new l.D$(t,"InvalidParameter",n)})},e.signatures.push({name:"attachments",min:1,max:2}),e.functions.featuresetbyrelationshipname=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,i)=>{(0,f.B)(i,2,4,t,n);const a=i[0],s=(0,f.s)(i[1]);let o=(0,f.J)(i[2],null);const u=(0,f.H)((0,f.J)(i[3],!0));if(null===o&&(o=["*"]),!1===(0,ye.cy)(o))throw new l.D$(t,"InvalidParameter",n);if(null===i[0])return null;if(!(0,f.k)(i[0]))throw new l.D$(t,"InvalidParameter",n);const c=a._layer;let p;if((0,f.m)(c))p=c;else{if(null==c||!(0,g.eB)(c))return null;p=(0,d.constructFeatureSet)(c,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)}p=await p.load();const h=p.relationshipMetadata().filter(e=>e.name===s);if(0===h.length)return null;if(void 0!==h[0].relationshipTableId&&null!==h[0].relationshipTableId&&h[0].relationshipTableId>-1)return(0,d.constructFeatureSetFromRelationship)(p,h[0],a.field(p.objectIdField),p.spatialReference,o,u,t.lrucache,t.interceptor);let m=p.serviceUrl();if(!m)return null;m=m.endsWith("/")?m+h[0].relatedTableId.toString():m+"/"+h[0].relatedTableId.toString();const y=await(0,d.constructFeatureSetFromUrl)(m,p.spatialReference,o,u,t.lrucache,t.interceptor);await y.load();let w=y.relationshipMetadata();if(w=w.filter(e=>e.id===h[0].id),!1===a.hasField(h[0].keyField)||null===a.field(h[0].keyField)){const e=await p.getFeatureByObjectId(a.field(p.objectIdField),[h[0].keyField]);if(e){const t=I.A.create(w[0].keyField+"= @id",{fieldsIndex:y.getFieldsIndex(),timeZone:y.dateFieldsTimeZoneDefaultUTC});return t.parameters={id:e.attributes[h[0].keyField]},new C.A({parentfeatureset:y,whereclause:t})}return new P.A({parentfeatureset:y})}const F=I.A.create(w[0].keyField+"= @id",{fieldsIndex:y.getFieldsIndex(),timeZone:y.dateFieldsTimeZoneDefaultUTC});return F.parameters={id:a.field(h[0].keyField)},new C.A({parentfeatureset:y,whereclause:F})})},e.signatures.push({name:"featuresetbyrelationshipname",min:2,max:4}),e.functions.featuresetbyassociation=function(t,n){return e.standardFunctionAsync(t,n,async(e,i,a)=>{(0,f.B)(a,2,3,t,n);const s=a[0],u=(0,o.B)((0,f.s)((0,f.J)(a[1],""))),c=(0,ye.Kg)(a[2])?(0,f.s)(a[2]):null;if(null===a[0])return null;if(!(0,f.k)(a[0]))throw new l.D$(t,"InvalidParameter",n);const p=s._layer;let h;if((0,f.m)(p))h=p;else{if(null==p||!(0,g.eB)(p))return null;h=(0,d.constructFeatureSet)(p,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)}await h.load();const m=h.serviceUrl(),y=await(0,d.constructAssociationMetaDataFeatureSetFromUrl)(m,t.spatialReference,!0);if(y.unVersion>=8)return await async function(e,t,n,i,a,s,o){const u=await e.getFeatureSetInfo();if(null===(u?.layerId??null))return null;if(!a.layerIdLookup.get(u.layerId))return null;const c=e.serviceUrl().replace(/\/FeatureServer/i,"/UtilityNetworkServer"),f=[];switch(n){case"connected":f.push("connectivity"),f.push("junction-edge-from-connectivity"),f.push("junction-edge-to-connectivity"),f.push("junction-edge-midspan-connectivity"),f.push("junction-junction-connectivity");break;case"container":case"content":f.push("containment");break;case"structure":case"attached":f.push("attachment");break;case"junctionedge":f.push("junction-edge-from-connectivity"),f.push("junction-edge-to-connectivity");break;case"midspan":f.push("junction-edge-midspan-connectivity");break;default:throw new l.D$(s,"InvalidParameter",o)}let p=null,h=!1;if(null!==i&&""!==i&&void 0!==i){for(const e of a.terminals)e.terminalName===i&&(p=e.terminalId);null===p&&(h=!0)}const m=[];if(!h){const i=new ae({globalId:t.field(e.globalIdField),networkSourceId:a.layerIdLookup.get(u.layerId).sourceId,...p?{terminalId:p}:""}),s=await async function(e,t){const n=(0,ee.Dl)(e),r={...fe(t),f:"json"},i=(0,ee.lF)({...n.query,...r}),a=(0,ee.jV)(i,{method:"post"}),s=`${n.path}/associations/query`,{data:o}=await(0,J.A)(s,a),l=ce.fromJSON(o);return t.types.includes("connectivity")&&(0,H.Lx)(z.A.getLogger("esri/rest/networks/support/QueryAssociationsParameters"),"types",{replacement:"Please use 'junction-junction-connectivity' instead of 'connectivity'.",see:"https://arcg.is/11Tr8a#types",version:"4.29",warnOnce:!0}),l}(c,new me({types:f,elements:[i]}));let o=0;for(const e of s.associations){let t=null,s="",l="";if(e.fromNetworkElement?.globalId===i.globalId?(t=e.toNetworkElement,l="to"):e.toNetworkElement?.globalId===i.globalId&&(t=e.fromNetworkElement,l="from"),!t)continue;switch(n){case"attached":if("attachment"!==e.associationType)continue;if("to"!==l)continue;break;case"structure":if("attachment"!==e.associationType)continue;if("from"!==l)continue;break;case"container":if("containment"!==e.associationType)continue;if("from"!==l)continue;break;case"content":if("containment"!==e.associationType)continue;if("to"!==l)continue;break;case"connected":break;case"junctionedge":"junction-edge-to-connectivity"===e.associationType?s="to":"junction-edge-from-connectivity"===e.associationType&&(s="from");break;case"midspan":if("junction-edge-midspan-connectivity"!==e.associationType)continue}const u=a.sourceIdLookup.get(t.networkSourceId)?.className??"";m.push(new r.A({geometry:null,attributes:{objectId:o++,globalId:t.globalId,percentAlong:e.percentAlong??0,isContentVisible:e.isContentVisible?0:1,className:u,side:s}}))}}const y=new K.default({source:m,geometryType:null,objectIdField:"objectId",globalIdField:"globalId",fields:[new B.A({name:"objectId",alias:"objectId",type:"oid"}),new B.A({name:"globalId",alias:"globalId",type:"global-id"}),new B.A({name:"percentAlong",alias:"percentAlong",type:"double"}),new B.A({name:"side",alias:"side",type:"string"}),new B.A({name:"isContentVisible",alias:"isContentVisible",type:"integer"}),new B.A({name:"className",alias:"className",type:"string"})]});return(0,d.constructFeatureSet)(y)}(h,s,u,c,y,t,n);const w=y.associations;if(null==w)return null;let F=null,b=null,C=!1;if(null!==c&&""!==c&&void 0!==c){for(const e of y.terminals)e.terminalName===c&&(b=e.terminalId);null===b&&(C=!0)}const v=w.getFieldsIndex(),x=v.get("TOGLOBALID").name,D=v.get("FROMGLOBALID").name,E=v.get("TOTERMINALID").name,k=v.get("FROMTERMINALID").name,L=v.get("FROMNETWORKSOURCEID").name,U=v.get("TONETWORKSOURCEID").name,$=v.get("ASSOCIATIONTYPE").name,Z=v.get("ISCONTENTVISIBLE").name,j=v.get("OBJECTID").name;for(const e of h.fields)if("global-id"===e.type){F=s.field(e.name);break}let M=null,W=new T(new B.A({name:"percentalong",alias:"percentalong",type:"double"}),I.A.create("0",{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC})),R=new T(new B.A({name:"side",alias:"side",type:"string"}),I.A.create("''",{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC}));const q="globalid",P="globalId",O={};for(const e in y.lkp)O[e]=y.lkp[e].sourceId;const V=new S(new B.A({name:"classname",alias:"classname",type:"string"}),null,O);let G="";switch(u){case"midspan":{G=`((${x}='${F}') OR ( ${D}='${F}')) AND (${$} IN (5))`,V.codefield=I.A.create(`CASE WHEN (${x}='${F}') THEN ${L} ELSE ${U} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC});const e=(0,g.ke)(_.findField(w.fields,D));e.name=q,e.alias=q,M=new T(e,I.A.create(`CASE WHEN (${D}='${F}') THEN ${x} ELSE ${D} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC})),W=y.unVersion>=4?new A(_.findField(w.fields,v.get("PERCENTALONG").name)):new T(new B.A({name:"percentalong",alias:"percentalong",type:"double"}),I.A.create("0",{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC}));break}case"junctionedge":{G=`((${x}='${F}') OR ( ${D}='${F}')) AND (${$} IN (4,6))`,V.codefield=I.A.create(`CASE WHEN (${x}='${F}') THEN ${L} ELSE ${U} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC});const e=(0,g.ke)(_.findField(w.fields,D));e.name=q,e.alias=q,M=new T(e,I.A.create(`CASE WHEN (${D}='${F}') THEN ${x} ELSE ${D} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC})),R=new T(new B.A({name:"side",alias:"side",type:"string"}),I.A.create(`CASE WHEN (${$}=4) THEN 'from' ELSE 'to' END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC}));break}case"connected":{let e=`${x}='@T'`,t=`${D}='@T'`;null!==b&&(e+=` AND ${E}=@A`,t+=` AND ${k}=@A`),G="(("+e+") OR ("+t+"))",G=(0,f.$)(G,"@T",F??""),e=(0,f.$)(e,"@T",F??""),null!==b&&(e=(0,f.$)(e,"@A",b.toString()),G=(0,f.$)(G,"@A",b.toString())),V.codefield=I.A.create("CASE WHEN "+e+` THEN ${L} ELSE ${U} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC});const n=(0,g.ke)(_.findField(w.fields,D));n.name=q,n.alias=q,M=new T(n,I.A.create("CASE WHEN "+e+` THEN ${D} ELSE ${x} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC}));break}case"container":G=`${x}='${F}' AND ${$} = 2`,null!==b&&(G+=` AND ${E} = `+b.toString()),V.codefield=L,G="( "+G+" )",M=new N(_.findField(w.fields,D),q,q);break;case"content":G=`(${D}='${F}' AND ${$} = 2)`,null!==b&&(G+=` AND ${k} = `+b.toString()),V.codefield=U,G="( "+G+" )",M=new N(_.findField(w.fields,x),q,q);break;case"structure":G=`(${x}='${F}' AND ${$} = 3)`,null!==b&&(G+=` AND ${E} = `+b.toString()),V.codefield=L,G="( "+G+" )",M=new N(_.findField(w.fields,D),q,P);break;case"attached":G=`(${D}='${F}' AND ${$} = 3)`,null!==b&&(G+=` AND ${k} = `+b.toString()),V.codefield=U,G="( "+G+" )",M=new N(_.findField(w.fields,x),q,P);break;default:throw new l.D$(t,"InvalidParameter",n)}return C&&(G="1 <> 1"),new _({parentfeatureset:w,adaptedFields:[new A(_.findField(w.fields,j)),new A(_.findField(w.fields,Z)),M,R,V,W],extraFilter:G?I.A.create(G,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC}):null})})},e.signatures.push({name:"featuresetbyassociation",min:2,max:6}),e.functions.groupby=function(t,n){return e.standardFunctionAsync(t,n,async(r,i,a)=>{if((0,f.B)(a,3,3,t,n),!(0,f.m)(a[0]))throw new l.D$(t,"InvalidParameter",n);const o=await a[0].load(),u=[],d=[];let c=!1,p=[];if((0,ye.Kg)(a[1]))p.push(a[1]);else if(a[1]instanceof s.A)p.push(a[1]);else if((0,ye.cy)(a[1]))p=a[1];else{if(!(0,f.j)(a[1]))throw new l.D$(t,"InvalidParameter",n);p=a[1].toArray()}for(const e of p)if((0,ye.Kg)(e)){const t=I.A.create((0,f.s)(e),{fieldsIndex:o.getFieldsIndex(),timeZone:o.dateFieldsTimeZoneDefaultUTC}),n=!0===(0,w.DA)(t)?(0,f.s)(e):"%%%%FIELDNAME";u.push({name:n,expression:t}),"%%%%FIELDNAME"===n&&(c=!0)}else{if(!(e instanceof s.A))throw new l.D$(t,"InvalidParameter",n);{const r=e.hasField("name")?e.field("name"):"%%%%FIELDNAME",i=e.hasField("expression")?e.field("expression"):"";if("%%%%FIELDNAME"===r&&(c=!0),!r)throw new l.D$(t,"InvalidParameter",n);u.push({name:r,expression:I.A.create(i||r,{fieldsIndex:o.getFieldsIndex(),timeZone:o.dateFieldsTimeZoneDefaultUTC})})}}if(p=[],(0,ye.Kg)(a[2]))p.push(a[2]);else if((0,ye.cy)(a[2]))p=a[2];else if((0,f.j)(a[2]))p=a[2].toArray();else{if(!(a[2]instanceof s.A))throw new l.D$(t,"InvalidParameter",n);p.push(a[2])}for(const e of p){if(!(e instanceof s.A))throw new l.D$(t,"InvalidParameter",n);{const r=e.hasField("name")?e.field("name"):"",i=e.hasField("statistic")?e.field("statistic"):"",a=e.hasField("expression")?e.field("expression"):"";if(!(r&&i&&(0,ye.Kg)(i)&&a))throw new l.D$(t,"InvalidParameter",n);d.push({name:r,statistic:i,expression:I.A.create(a,{fieldsIndex:o.getFieldsIndex(),timeZone:o.dateFieldsTimeZoneDefaultUTC})})}}if(c){const e={};for(const t of o.fields)e[t.name.toLowerCase()]=1;for(const t of u)"%%%%FIELDNAME"!==t.name&&(e[t.name.toLowerCase()]=1);for(const t of d)"%%%%FIELDNAME"!==t.name&&(e[t.name.toLowerCase()]=1);let t=0;for(const n of u)if("%%%%FIELDNAME"===n.name){for(;1===e["field_"+t.toString()];)t++;e["field_"+t.toString()]=1,n.name="FIELD_"+t.toString()}}for(const n of u)ge(n.expression,e,t);for(const n of d)ge(n.expression,e,t);return new W({parentfeatureset:a[0],groupbyfields:u,statsfields:d})})},e.signatures.push({name:"groupby",min:3,max:3}),e.functions.distinct=function(t,n){return e.standardFunctionAsync(t,n,async(r,i,a)=>{if((0,f.m)(a[0])){(0,f.B)(a,2,2,t,n);const r=await a[0].load(),i=[];let o=[];if((0,ye.Kg)(a[1]))o.push(a[1]);else if(a[1]instanceof s.A)o.push(a[1]);else if((0,ye.cy)(a[1]))o=a[1];else{if(!(0,f.j)(a[1]))throw new l.D$(t,"InvalidParameter",n);o=a[1].toArray()}let u=!1;for(const e of o)if((0,ye.Kg)(e)){const t=I.A.create((0,f.s)(e),{fieldsIndex:r.getFieldsIndex(),timeZone:r.dateFieldsTimeZoneDefaultUTC}),n=!0===(0,w.DA)(t)?(0,f.s)(e):"%%%%FIELDNAME";i.push({name:n,expression:t}),"%%%%FIELDNAME"===n&&(u=!0)}else{if(!(e instanceof s.A))throw new l.D$(t,"InvalidParameter",n);{const a=e.hasField("name")?e.field("name"):"%%%%FIELDNAME",s=e.hasField("expression")?e.field("expression"):"";if("%%%%FIELDNAME"===a&&(u=!0),!a)throw new l.D$(t,"InvalidParameter",n);i.push({name:a,expression:I.A.create(s||a,{fieldsIndex:r.getFieldsIndex(),timeZone:r.dateFieldsTimeZoneDefaultUTC})})}}if(u){const e={};for(const t of r.fields)e[t.name.toLowerCase()]=1;for(const t of i)"%%%%FIELDNAME"!==t.name&&(e[t.name.toLowerCase()]=1);let t=0;for(const n of i)if("%%%%FIELDNAME"===n.name){for(;1===e["field_"+t.toString()];)t++;e["field_"+t.toString()]=1,n.name="FIELD_"+t.toString()}}for(const n of i)ge(n.expression,e,t);return new W({parentfeatureset:a[0],groupbyfields:i,statsfields:[]})}return function(e){if(1===e.length){if((0,ye.cy)(e[0]))return(0,V.t)("distinct",e[0],-1);if((0,f.j)(e[0]))return(0,V.t)("distinct",e[0].toArray(),-1)}return(0,V.t)("distinct",e,-1)}(a)})},e.functions.getfeaturesetinfo=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,i)=>{if((0,f.B)(i,1,1,t,n),!(0,f.m)(i[0]))return null;const a=await i[0].getFeatureSetInfo();return a?s.A.convertObjectToArcadeDictionary({layerId:a.layerId,layerName:a.layerName,itemId:a.itemId,serviceLayerUrl:a.serviceLayerUrl,webMapLayerId:a.webMapLayerId??null,webMapLayerTitle:a.webMapLayerTitle??null,className:null,objectClassId:null},(0,f.K)(t),!1,!1):null})},e.signatures.push({name:"getfeaturesetinfo",min:1,max:1}),e.functions.filterbysubtypecode=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,i)=>{if((0,f.B)(i,2,2,t,n),(0,f.m)(i[0])){const e=await i[0].load(),r=i[1];if(!(0,ye.Fq)(r))throw new l.D$(t,"InvalidParameter",n);if(e.subtypeField){const t=I.A.create(`${e.subtypeField}= ${i[1]}`,{fieldsIndex:e.getFieldsIndex(),timeZone:e.dateFieldsTimeZoneDefaultUTC});return new C.A({parentfeatureset:i[0],whereclause:t})}if(null===e.typeIdField||""===e.typeIdField)throw new l.D$(t,"FeatureSetDoesNotHaveSubtypes",n);const a=I.A.create(`${e.typeIdField}= ${i[1]}`,{fieldsIndex:e.getFieldsIndex(),timeZone:e.dateFieldsTimeZoneDefaultUTC});return new C.A({parentfeatureset:i[0],whereclause:a})}throw new l.D$(t,"InvalidParameter",n)})},e.signatures.push({name:"filterbysubtypecode",min:2,max:2})}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2655],{46140(e,t,r){r.d(t,{A:()=>i});var n=r(49186);class i{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){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new n.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new i(this.major,this.minor,this._context)}static parse(e,t=""){const[r,o]=e.split("."),s=/^\s*\d+\s*$/;if(!r?.match||!s.test(r))throw new n.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!o?.match||!s.test(o))throw new n.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(r,10),l=parseInt(o,10);return new i(a,l,t)}}},6797(e,t,r){r.d(t,{Ui:()=>p});var n=r(69622),i=r(7762),o=r(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof n.A}function l(e){return e instanceof i.A?Object.keys(e.items):a(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function c(e,t){return e instanceof i.A?e.items[t]:e[t]}function u(e){return e?e.declaredClass:null}function d(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const n=l(e),i=l(t);if(0===n.length&&0===i.length)return;if(!n.length||!i.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=i.filter(e=>!n.includes(e)),p=n.filter(e=>!i.includes(e)),f=n.filter(r=>i.includes(r)&&c(e,r)!==c(t,r)).concat(o,p).sort(),h=u(e);if(h&&s.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let m;const y=a(e)&&a(t);for(const n of f){const i=c(e,n),o=c(t,n);let s;if((y||"function"!=typeof i&&"function"!=typeof o)&&i!==o&&(null!=i||null!=o)){if(r&&r[n]&&"function"==typeof r[n])s=r[n]?.(i,o);else if(i instanceof Date&&o instanceof Date){if(i.getTime()===o.getTime())continue;s={type:"complete",oldValue:i,newValue:o}}else s="object"==typeof i&&"object"==typeof o&&u(i)===u(o)?d(i,o):{type:"complete",oldValue:i,newValue:o};null!=s&&(null!=m?m.diff[n]=s:m={type:"partial",diff:{[n]:s}})}}return m}function p(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&u(e)!==u(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},13069(e,t,r){r.d(t,{AG:()=>a,lk:()=>i,vD:()=>s,yS:()=>o});const n="randomUUID"in crypto;function i(){if(n)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const 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`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},94194(e,t,r){r.d(t,{A:()=>g});var n=r(5482),i=r(91429),o=r(7762),s=r(62885),a=(r(44208),r(53966),r(10107));let l=class extends o.A{constructor(e){super(e),this.addHandles([this.on("before-add",e=>{null==e.item&&e.preventDefault()}),this.on("after-add",e=>this._own(e.item)),this.on("after-remove",e=>this._release(e.item))])}get owner(){return this._get("owner")}set owner(e){this.destroyed||e!==this._get("owner")&&(this._releaseAll(),this._set("owner",e),this._ownAll())}_ownAll(){for(const e of this.items)this._own(e)}_releaseAll(){for(const e of this.items)this._release(e)}_createNewInstance(e){return this.itemType?new(o.A.ofType(this.itemType.Type))(e):new o.A(e)}};(0,n.Cg)([(0,a.MZ)()],l.prototype,"owner",null),l=(0,n.Cg)([(0,i.$K)("esri.core.support.OwningCollection")],l);var c=r(4146),u=r(63074),d=r(25036),p=r(52106),f=r(56507),h=r(7695);let m=class extends l{_own(e){e.layer&&"remove"in e.layer&&e.layer!==this.owner&&e.layer.remove(e),e.layer=this.owner}_release(e){e.layer===this.owner&&(e.layer=null)}};(0,n.Cg)([(0,h.u)({Type:p.A,ensureType:(0,f.dp)(p.A)})],m.prototype,"itemType",void 0),m=(0,n.Cg)([(0,i.$K)("esri.support.GraphicsCollection")],m);var y=r(88625);let g=class extends((0,u.dM)((0,d.j)(c.A))){constructor(e){super(e),this.elevationInfo=null,this.graphics=new m,this.screenSizePerspectiveEnabled=!0,this.type="graphics",this.internal=!1}destroy(){this.removeAll(),this.graphics.destroy()}get loaded(){return super.loaded}add(e){return this.graphics.add(e),this}addMany(e){return this.graphics.addMany(e),this}removeAll(){return this.graphics.removeAll(),this}remove(e){this.graphics.remove(e)}removeMany(e){this.graphics.removeMany(e)}graphicChanged(e){this.emit("graphic-update",e)}};var w,_;(0,n.Cg)([(0,i.MZ)({type:y.A})],g.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,i.MZ)((w=m,_="graphics",{type:w,cast:s.H,set(e){const t=(0,s.V)(e,this._get(_),w);t&&!t.destroyed&&(t.owner=this),this._set(_,t)}}))],g.prototype,"graphics",void 0),(0,n.Cg)([(0,i.MZ)({type:["show","hide"]})],g.prototype,"listMode",void 0),(0,n.Cg)([(0,i.MZ)()],g.prototype,"screenSizePerspectiveEnabled",void 0),(0,n.Cg)([(0,i.MZ)({readOnly:!0})],g.prototype,"type",void 0),(0,n.Cg)([(0,i.MZ)({constructOnly:!0})],g.prototype,"internal",void 0),g=(0,n.Cg)([(0,i.$K)("esri.layers.GraphicsLayer")],g)},32756(e,t,r){r.d(t,{Rr:()=>a,fY:()=>c,ne:()=>l});var n=r(5482),i=r(93637),o=r(91429),s=r(91880);function a(e,t,r){if(!e)return null;const n=e.find(e=>!!e.field);if(!n)return null;const i=new s.A;return i.read(n,r),[i]}const l={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,n){const o=e.find(e=>!!e.field);o&&(0,i.sM)(r,[o.toJSON()],t)}}}},c=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,n.Cg)([(0,o.MZ)(l)],r.prototype,"orderBy",void 0),r=(0,n.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r}},29005(e,t,r){r.d(t,{A:()=>c});var n=r(5482),i=r(69540),o=r(66552),s=r(25482),a=r(91429);const l=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 c=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"description",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:l.read,write:l.write}})],c.prototype,"drawingTool",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"prototype",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"thumbnail",void 0),c=(0,n.Cg)([(0,a.$K)("esri.layers.support.FeatureTemplate")],c)},91880(e,t,r){r.d(t,{A:()=>c});var n,i=r(5482),o=r(66552),s=r(25482),a=r(91429);const l=new o.J({asc:"ascending",desc:"descending"});let c=class extends s.o{static{n=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new n({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],c.prototype,"valueExpression",void 0),(0,i.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],c.prototype,"order",void 0),c=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],c)},41560(e,t,r){r.d(t,{Ch:()=>s,mW:()=>o});var n=r(34727),i=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){const o=function(e){if("manual"===c(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:n}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],d(n));return t}(e);if(o&&((0,n.gg)(t,o[0])||(0,n.ZH)(r,o[1])))return"";const s=Array.from(a(e,t,r)),l=function(e,t,r){if(0===e.length)return!0;const i=u(e.at(0)?.minScale),o=d(e.at(-1)?.maxScale);if((0,n.ZH)(i,t)||(0,n.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],i=e[t+1];if((0,n.ZH)(u(i.minScale),d(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,i.IW)(e,t),"");return l&&"1=1"!==l?l:""}function*a(e,t,r){if("manual"===c(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const n of e.filters)l(n.minScale,n.maxScale,t,r)&&(yield n)}}function l(e,t,r,i){return e=u(e),r=u(r),t=d(t),!(!(0,n.Sp)(r,e)&&(i??r)>e||(0,n.Hx)(t,r)||void 0!==i&&(0,n.Sp)(i,e))}function c(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||Number.POSITIVE_INFINITY}function d(e){return e||0}},32730(e,t,r){r.d(t,{BI:()=>f,D3:()=>d,XJ:()=>p,lc:()=>u,mX:()=>m,rU:()=>h,tH:()=>v,vK:()=>b,zA:()=>T});var n=r(799);const i="__begin__",o="__end__",s=new RegExp(i,"ig"),a=new RegExp(o,"ig"),l=new RegExp("^"+i,"i"),c=new RegExp(o+"$","i");function u(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function d(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function p(e){const 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=u(e.labelExpression),t.type="conventional"),t}function f(e){const t=p(e);if(!t)return null;switch(t.type){case"conventional":return m(t.expression);case"arcade":return t.expression}return null}function h(e){const t=p(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(y);return t?.[1].trim()||null}(t.expression);case"arcade":return v(t.expression)}return null}function m(e){let t;return e?(t=(0,n.HC)(e,e=>i+'$feature["'+e+'"]'+o),t=l.test(t)?t.replace(l,""):'"'+t,t=c.test(t)?t.replace(c,""):t+'"',t=t.replaceAll(s,'" + ').replaceAll(a,' + "')):t='""',t}const y=/^\s*\{([^}]+)\}\s*$/i,g=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,_=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function v(e){if(!e)return null;let t=g.exec(e)||w.exec(e);return t?t[1]||t[3]:(t=_.exec(e),t?t[2]:null)}const b=Symbol("LabelClassInstance");function T(e){return null!=e&&"object"==typeof e&&b in e}},5757(e,t,r){r.d(t,{B:()=>i,P:()=>n});const n=Symbol("PopupTemplateInstance");function i(e){return null!=e&&"object"==typeof e&&n in e}},73681(e,t,r){r.d(t,{n:()=>l});var n=r(49186),i=r(53966),o=r(46140),s=r(95466),a=r(55674);class l{static async from(e,t,r){const s=e.dictionary_version?o.A.parse(e.dictionary_version):null,u=new Set(e.itemsNames),d={};if(t)for(const e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);const p=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))p.delete(e);p.size&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:p});const f=await(0,a.xR)(e.expression,null,d);if(!f)throw new n.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!s||!s.greaterEqual(4,0);h&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const m=new c(r,h);return new l(h,u,f,m)}constructor(e,t,r,n){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=n}get itemNames(){return this._itemNames}evaluate(e,t,r,n){try{return this._reader.bind(e,r,n),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class c extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},98205(e,t,r){r.d(t,{KZ:()=>a,eh:()=>s,gf:()=>o,of:()=>i,uY:()=>n});const n=Symbol("SizeVariableInstance");function i(e){return null!=e&&"object"==typeof e&&n in e}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function s(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){const r=t||s(e),n=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===n?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}},55674(e,t,r){r.d(t,{Ad:()=>f,Gj:()=>y,QY:()=>p,lL:()=>g,xR:()=>h});var n=r(66131),i=r(49186),o=(r(44208),r(44729)),s=r(15032),a=r(65864),l=r(95466),c=r(43668),u=r(98623);const d=["geometry","scale","timeProperties"];function p(e,t){if(null!=t)for(const r of d)t.hasArcadeDependency(r)&&e.add(r);return e}function f(e,t){return m.create(e,t,null,["$feature","$view"])}function h(e,t,r){return m.create(e,t,r,["$feature","$view","$config"])}class m{static async create(e,t,r,n){const{arcade:o,Dictionary:s}=await(0,c.l)();let a;try{a=o.parseScript(e)}catch(t){throw new i.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=o.scriptUsesGeometryEngine(a);l&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,a,null,!1,l);const u={vars:n.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},d=o.compileScript(a,u);let p=null;null!=r&&(p=new s(r),p.immutable=!0);const f=new s;return f.immutable=!1,f.setField("scale",0),new m(e,o,a,d,t,f,p,s)}constructor(e,t,r,n,i,o,s,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=n,this._spatialReference=i,this._viewDict=o,this._configDict=s,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:i,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=i?null!=r?n.lY.epochToArcadeDate(i,r):n.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=o?null!=r?n.lY.epochToArcadeDate(o,r):n.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const n=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=n.fields,this._boundSchema.fieldsIndex=n,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===u.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?n.lY.unknownEpochToArcadeDate(t):n.lY.epochToArcadeDate(t,this.contextTimeZone??u.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}}}]);