@arcgis/core 4.34.0-next.74 → 4.34.0-next.76
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.
- package/PopupTemplate.js +1 -1
- package/applications/Components/QuantityFormatter.js +1 -1
- package/applications/Components/arcadeEditorUtils.d.ts +4 -0
- package/applications/Components/arcadeEditorUtils.js +5 -0
- package/applications/Components/featureUtils.d.ts +1 -0
- package/applications/Components/featureUtils.js +1 -1
- package/arcade/Feature.js +1 -1
- package/arcade/Pixel.js +5 -0
- package/arcade/Voxel.js +1 -1
- package/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/arcadeRuntime.js +1 -1
- package/arcade/featureSetUtils.js +1 -1
- package/arcade/featureset/actions/GroupBy.js +1 -1
- package/arcade/featureset/actions/OrderBy.js +1 -1
- package/arcade/featureset/support/FeatureSetIterator.js +1 -1
- package/arcade/functions/feature.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/featuresetstring.js +1 -1
- package/arcade/functions/fieldStats.js +1 -1
- package/arcade/functions/geometry.js +1 -1
- package/arcade/functions/maths.js +1 -1
- package/arcade/functions/string.js +1 -1
- package/arcade/languageUtils.js +1 -1
- package/arcade.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/009556f323e58271bc7a.js +1 -0
- package/assets/esri/core/workers/chunks/{11acefc48c0354e675df.js → 0309d008e50e55c7ff1d.js} +1 -1
- package/assets/esri/core/workers/chunks/13de06e614adf92239fe.js +1 -0
- package/assets/esri/core/workers/chunks/14a22d1a0eefa970efa1.js +1 -0
- package/assets/esri/core/workers/chunks/16d66770ef841564ee3f.js +1 -0
- package/assets/esri/core/workers/chunks/17103e6542aae53c7301.js +1 -0
- package/assets/esri/core/workers/chunks/{dd447dfc50ee7f511b84.js → 19c1f1431c0b2f4525a2.js} +1 -1
- package/assets/esri/core/workers/chunks/{5c30252c1bb8350cae5f.js → 1c52999a6392370844a6.js} +1 -1
- package/assets/esri/core/workers/chunks/21bfad7283620766d9cd.js +1 -0
- package/assets/esri/core/workers/chunks/{7219ceab0b6fae2e69b6.js → 280af3640f8e93c1024e.js} +2 -2
- package/assets/esri/core/workers/chunks/{49f7a5523462aebf90fc.js.LICENSE.txt → 280af3640f8e93c1024e.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/3064320d54a9b48bd697.js +1 -0
- package/assets/esri/core/workers/chunks/3a5f0c759dd2f4638343.js +1 -0
- package/assets/esri/core/workers/chunks/{d12f373fcf5848ddcd8a.js → 3f523bc8551e712c9bd4.js} +1 -1
- package/assets/esri/core/workers/chunks/{5b7e5ec6aea1f7f9b005.js → 3fecfe4f8ca2a5fd7360.js} +1 -1
- package/assets/esri/core/workers/chunks/4832faefd3b7edc17c84.js +1 -0
- package/assets/esri/core/workers/chunks/{78b33c6d73824085c6d1.js → 48449abe795cb7a831eb.js} +1 -1
- package/assets/esri/core/workers/chunks/4d47187bc0821413492d.js +1 -0
- package/assets/esri/core/workers/chunks/5102c20645d9708c34b4.js +1 -0
- package/assets/esri/core/workers/chunks/541bffd61006d0e36166.js +1 -0
- package/assets/esri/core/workers/chunks/58cc06ed86301f4cee75.js +1 -0
- package/assets/esri/core/workers/chunks/{e12e8d69c05c182b6a69.js → 61bb39597ccf89f99a72.js} +1 -1
- package/assets/esri/core/workers/chunks/{f4e9640306f64b1af7a3.js → 65ec21d29e8563fdbc55.js} +1 -1
- package/assets/esri/core/workers/chunks/67d9cfe02613cb73ee37.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{6dc62c170e9583222df2.js → 70367da4ba916376f40c.js} +1 -1
- package/assets/esri/core/workers/chunks/{fb669a2e50ca7aacac25.js → 71fef0a33b7ed9456e47.js} +1 -1
- package/assets/esri/core/workers/chunks/7430c462c350fdd26349.js +1 -0
- package/assets/esri/core/workers/chunks/{ff3fe5c97a98c8cab4ac.js → 7a23b127f551bf13ef54.js} +2 -2
- package/assets/esri/core/workers/chunks/{ff3fe5c97a98c8cab4ac.js.LICENSE.txt → 7a23b127f551bf13ef54.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/7b73a808922b52755abd.js +1 -0
- package/assets/esri/core/workers/chunks/{d682dd49bb9ee7f48f93.js → 9304c3cdf732745577fd.js} +1 -1
- package/assets/esri/core/workers/chunks/{8d642b34d40edfe02d8e.js → 9c64b78c5c9b35b31d98.js} +2 -2
- package/assets/esri/core/workers/chunks/{8d642b34d40edfe02d8e.js.LICENSE.txt → 9c64b78c5c9b35b31d98.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/a0edff37fd4a3f2cb2eb.js +1 -0
- package/assets/esri/core/workers/chunks/a6533bab3b2fbc1e2a47.js +1 -0
- package/assets/esri/core/workers/chunks/a9f6054d86982b9e5a7c.js +1 -0
- package/assets/esri/core/workers/chunks/{10ec10ca361842efce92.js → ab005fe84952f0676020.js} +1 -1
- package/assets/esri/core/workers/chunks/{5c53deb45bc142219c76.js → b15ff6c9ef2de8a49853.js} +2 -2
- package/assets/esri/core/workers/chunks/{5a476e6743902e35f81a.js.LICENSE.txt → b15ff6c9ef2de8a49853.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/b70d71144a060f7eeeeb.js +1 -0
- package/assets/esri/core/workers/chunks/b8d02f1b73c374767a5f.js +1 -0
- package/assets/esri/core/workers/chunks/ba6452acee3d6defb37e.js +1 -0
- package/assets/esri/core/workers/chunks/bccecd678faff927ac76.js +1 -0
- package/assets/esri/core/workers/chunks/{ce1f4508487298ab57b6.js → bd2dc1282c49125ede89.js} +1 -1
- package/assets/esri/core/workers/chunks/bfbbf180c2c8fdbb6731.js +1 -0
- package/assets/esri/core/workers/chunks/{f542bdc994a5ea3aa9d1.js → c38360d912f256519e06.js} +1 -1
- package/assets/esri/core/workers/chunks/{e3ad0a390387c5847aca.js → c6fecf2bbd2a711f15d3.js} +1 -1
- package/assets/esri/core/workers/chunks/c86f5bb199cf046b8952.js +1 -0
- package/assets/esri/core/workers/chunks/cd1869e183001266c4c1.js +2 -0
- package/assets/esri/core/workers/chunks/{626c18c1bbc50b3b16b2.js.LICENSE.txt → cd1869e183001266c4c1.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{90321feb56f3a84f6e58.js → d153b29c542c37ae1636.js} +2 -2
- package/assets/esri/core/workers/chunks/{90321feb56f3a84f6e58.js.LICENSE.txt → d153b29c542c37ae1636.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{b5f197e24982f6e14468.js → d1f181f91b36351f1d3b.js} +2 -2
- package/assets/esri/core/workers/chunks/d55c55d39a253630d228.js +1 -0
- package/assets/esri/core/workers/chunks/{49f7a5523462aebf90fc.js → d66cdb9bb494da19696b.js} +2 -2
- package/assets/esri/core/workers/chunks/{5c53deb45bc142219c76.js.LICENSE.txt → d66cdb9bb494da19696b.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{9c00c2263e52ad51c2a2.js → d95554f43694b4769675.js} +1 -1
- package/assets/esri/core/workers/chunks/dd587d51dad2d82708d1.js +1 -0
- package/assets/esri/core/workers/chunks/ecac5ca00c742bfb5898.js +1 -0
- package/assets/esri/core/workers/chunks/ed773dab5965e42a2879.js +2 -0
- package/assets/esri/core/workers/chunks/{7219ceab0b6fae2e69b6.js.LICENSE.txt → ed773dab5965e42a2879.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{0d946a226b846b3c0849.js → fc06014fb484fc8c697e.js} +1 -1
- package/assets/esri/images/portal/xrexperience16.png +0 -0
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/chunks/Compositing.glsl.js +4 -3
- package/chunks/Fog.glsl.js +6 -6
- package/chunks/GlowComposition.glsl.js +31 -12
- package/chunks/LineMarker.glsl.js +37 -36
- package/chunks/RibbonLine.glsl.js +83 -83
- package/chunks/array.js +1 -1
- package/chunks/cameraUtilsSpherical.js +1 -1
- package/chunks/languageUtils.js +1 -1
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/config.js +1 -1
- package/core/quantityFormatUtils.js +1 -1
- package/core/sql.d.ts +1 -0
- package/core/unitFormatUtils.js +1 -1
- package/core/unitUtils.js +1 -1
- package/form/FormTemplate.js +1 -1
- package/geometry/support/curves/circleUtils.js +1 -1
- package/geometry/support/curves/circularArcUtils.js +1 -1
- package/geometry/support/curves/closestPointOnCurve.js +1 -1
- package/geometry/support/curves/curveExtent.js +1 -1
- package/geometry/support/curves/lineUtils.js +5 -0
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/geometry/support/normalizeUtils.js +1 -1
- package/geometry/support/spatialReferenceUtils.js +1 -1
- package/interfaces.d.ts +315 -18
- package/kernel.js +1 -1
- package/layers/GaussianSplatLayer.js +1 -1
- package/layers/ImageryLayer.js +1 -1
- package/layers/ImageryTileLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/Lyr3DWorkerHandle.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/tiles3DUtils.js +1 -1
- package/networks/CircuitManager.js +1 -1
- package/networks/support/Circuit.js +1 -1
- package/networks/support/CircuitSection.js +1 -1
- package/networks/support/Subcircuit.js +1 -1
- package/package.json +2 -2
- package/portal/PortalItem.js +1 -1
- package/renderers/ClassBreaksRenderer.js +1 -1
- package/renderers/DictionaryRenderer.js +1 -1
- package/renderers/DotDensityRenderer.js +1 -1
- package/renderers/HeatmapRenderer.js +1 -1
- package/renderers/PieChartRenderer.js +1 -1
- package/renderers/UniqueValueRenderer.js +1 -1
- package/renderers/mixins/VisualVariablesMixin.js +1 -1
- package/support/arcadeUtils.js +1 -1
- package/support/loadArcade.js +1 -1
- package/support/modeUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/CIMSymbol.js +1 -1
- package/symbols/support/FeatureExpressionInfo.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/3d/analysis/Dimension/DimensionVisualization.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
- package/views/3d/analysis/Slice/ResizeManipulator.js +1 -1
- package/views/3d/analysis/Slice/RotateManipulator.js +1 -1
- package/views/3d/analysis/Slice/ShiftManipulator.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedFieldOfViewManipulation.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MarkerVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/Lyr3DWorker.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
- package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
- package/views/3d/state/SurfaceCollisionConstraint.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/state/controllers/SurfaceCollisionCorrectionController.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/cameraUtilsSpherical.js +1 -1
- package/views/3d/support/flow/FlowSubViewExtent3D.js +1 -1
- package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
- package/views/3d/support/flow/FlowWorker.js +1 -1
- package/views/3d/support/flow/geometryUtils.js +1 -1
- package/views/3d/support/flow/loadUtils.js +1 -1
- package/{layers/support/GaussianSplatAtlasPageAllocator.js → views/3d/support/gaussianSplatting/GaussianSplatAtlasPages.js} +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +5 -0
- package/views/3d/support/gaussianSplatting/GaussianSplatOrderTexture.js +5 -0
- package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +5 -0
- package/views/3d/support/gaussianSplatting/GaussianTile.js +5 -0
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +23 -13
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +37 -25
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +11 -11
- package/views/3d/webgl-engine/core/shaderLibrary/util/NoPerspective.glsl.js +5 -0
- package/views/3d/webgl-engine/effects/glow/GlowComposition.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowPresets.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/CompositingHelper.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/strokes.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/stippleTextureRepository.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/CompositingTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineOffset.glsl.js +10 -11
- package/views/GroundView.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/interactive/snapping/allLayerSnapping.js +1 -1
- package/views/layers/ImageryLayerView.js +1 -1
- package/views/support/LayerViewManager.js +1 -1
- package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/support/widget.js +1 -1
- package/assets/esri/core/workers/chunks/06bd58c219678315cf5c.js +0 -1
- package/assets/esri/core/workers/chunks/0751f539db31bdb5caec.js +0 -1
- package/assets/esri/core/workers/chunks/19228ab0fe7944c554e5.js +0 -1
- package/assets/esri/core/workers/chunks/2a19a4d7d1c580121065.js +0 -1
- package/assets/esri/core/workers/chunks/3d2629357242492afcfa.js +0 -1
- package/assets/esri/core/workers/chunks/5a476e6743902e35f81a.js +0 -2
- package/assets/esri/core/workers/chunks/5a95688651d7e8b7101d.js +0 -1
- package/assets/esri/core/workers/chunks/5c4ba165816809e06340.js +0 -1
- package/assets/esri/core/workers/chunks/5f239972cb95afdfa77a.js +0 -1
- package/assets/esri/core/workers/chunks/626c18c1bbc50b3b16b2.js +0 -2
- package/assets/esri/core/workers/chunks/6963ded8428cc8d51d85.js +0 -1
- package/assets/esri/core/workers/chunks/6c3ae96c6ef764fb9552.js +0 -1
- package/assets/esri/core/workers/chunks/6da298da2ec09cced0b5.js +0 -1
- package/assets/esri/core/workers/chunks/76ec3d2646ba64e3442f.js +0 -1
- package/assets/esri/core/workers/chunks/8b1d2bbb2b2eb1830921.js +0 -1
- package/assets/esri/core/workers/chunks/925ad2665c2fe0f47cc3.js +0 -1
- package/assets/esri/core/workers/chunks/a2f4b6d8da93f106852c.js +0 -1
- package/assets/esri/core/workers/chunks/ada8e07ff12bc5d4a1d9.js +0 -1
- package/assets/esri/core/workers/chunks/b03dcbc31bccb9fdf9fe.js +0 -1
- package/assets/esri/core/workers/chunks/b0de01f8c9b1c3182e0c.js +0 -1
- package/assets/esri/core/workers/chunks/c7ba8f2aca0fbd6ceded.js +0 -1
- package/assets/esri/core/workers/chunks/c908184d747d33366881.js +0 -1
- package/assets/esri/core/workers/chunks/d1711256493d55eca523.js +0 -1
- package/assets/esri/core/workers/chunks/d305ca524837c5dc81c8.js +0 -1
- package/assets/esri/core/workers/chunks/e6e4e2fb9568319c6207.js +0 -1
- package/assets/esri/core/workers/chunks/e6f2ac738df16fb5e13a.js +0 -1
- package/assets/esri/core/workers/chunks/e8d25d4ca9b335883f34.js +0 -1
- package/assets/esri/core/workers/chunks/ee391a41144855fc625d.js +0 -1
- package/assets/esri/core/workers/chunks/f060a52a9b69eb250d63.js +0 -1
- package/layers/support/gaussianSplatUtils.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6475],{36475:(e,t,i)=>{i.r(t),i.d(t,{default:()=>R});var s=i(31635),a=i(78888),l=i(49186),r=i(53966),o=i(92071),n=i(74887),p=i(10107),h=(i(44208),i(87811),i(40608)),u=i(5443),d=i(16930),y=i(4146),c=i(52136),f=i(69208),g=i(16131),v=i(8303),C=i(25036),S=i(10873),m=i(88546),x=i(24212);let w=class extends((0,g.q)((0,v.A)((0,C.j)((0,o.P)((0,f.d)((0,c.p)(y.A))))))){constructor(e){super(e),this.operationalLayerType="GaussianSplatLayer",this.type="gaussian-splat",this.opacity=1,this.minScale=0,this.maxScale=0,this.url=null,this.rootTilesetJSON=null,this.fullExtent=new u.A(-180,-90,180,90,this.spatialReference),this.spatialReference=new d.A({wkid:4326,vcsWkid:115700}),this.esriCrsSpatialReference=null,this.esriCrsFullExtent=null}get supportedSpatialReferences(){return this.initialized&&this.esriCrsSpatialReference?[this.spatialReference,this.esriCrsSpatialReference]:[this.spatialReference]}get fullExtents(){return this.initialized&&this.esriCrsFullExtent?[this.fullExtent,this.esriCrsFullExtent]:[this.fullExtent]}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=null!=e?e.signal:null;try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{throw new l.A("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service"})}},e)}catch(e){(0,n.QP)(e)}if(this.url){const e=(0,a.A)(this.url,{query:{...this.customParameters,token:this.apiKey},responseType:"json",signal:t}).then(e=>{this.rootTilesetJSON=e.data;const t=(0,m._8)(this.rootTilesetJSON);this.fullExtent=(0,m.uB)(this.rootTilesetJSON,!1),this.spatialReference=this.fullExtent.spatialReference,t&&(this.esriCrsFullExtent=(0,m.uB)(this.rootTilesetJSON,!0),this.esriCrsSpatialReference=this.esriCrsFullExtent.spatialReference)},e=>{(0,n.QP)(e)});await e}}_validateElevationInfo(e){const t="Gaussian Splat layers";(0,x.XF)(r.A.getLogger(this),(0,x.B)(t,"absolute-height",e)),(0,x.XF)(r.A.getLogger(this),(0,x.tW)(t,e))}};(0,s.Cg)([(0,p.MZ)({type:["GaussianSplatLayer"]})],w.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],w.prototype,"type",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],w.prototype,"opacity",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],w.prototype,"minScale",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],w.prototype,"maxScale",void 0),(0,s.Cg)([(0,p.MZ)(S.OZ)],w.prototype,"url",void 0),(0,s.Cg)([(0,p.MZ)({type:u.A})],w.prototype,"fullExtent",void 0),(0,s.Cg)([(0,p.MZ)({type:d.A})],w.prototype,"spatialReference",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],w.prototype,"supportedSpatialReferences",null),(0,s.Cg)([(0,p.MZ)({type:[u.A]})],w.prototype,"fullExtents",null),(0,s.Cg)([(0,p.MZ)({type:["show","hide"]})],w.prototype,"listMode",void 0),(0,s.Cg)([(0,p.MZ)(S.Yj)],w.prototype,"elevationInfo",null),w=(0,s.Cg)([(0,h.$)("esri.layers.GaussianSplatLayer")],w);const R=w}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2869],{4902:(t,e,i)=>{i.d(e,{PH:()=>p,sA:()=>n});var o=i(31635),s=i(40608);let r=0;const n=t=>{const e=t;let i=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+r++})}};return i=(0,o.Cg)([(0,s.$)("esri.core.Identifiable")],i),i},p=t=>{const e=t;let i=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:r++})}};return i=(0,o.Cg)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],i),i};n(class{})},37838:(t,e,i)=>{i.d(e,{A:()=>Kt});var o,s=i(31635),r=i(69540),n=i(7762),p=i(25482),l=i(4718),a=i(53966),d=i(74887),c=i(10107),u=i(79901),y=i(36005),h=i(40608),g=i(43937),f=i(56507),v=i(30524),m=i(89893),C=i(84424);i(44208);let w=o=class extends C.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new o({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,l.o8)(this.outFields):null})}};(0,s.Cg)([(0,c.MZ)()],w.prototype,"creator",void 0),(0,s.Cg)([(0,c.MZ)()],w.prototype,"destroyer",void 0),(0,s.Cg)([(0,c.MZ)()],w.prototype,"outFields",void 0),(0,s.Cg)([(0,c.MZ)({type:["custom"],readOnly:!0})],w.prototype,"type",void 0),w=o=(0,s.Cg)([(0,h.$)("esri.popup.content.CustomContent")],w);const M=w;var x;i(87811);let I=x=class extends p.o{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new x({title:this.title,expression:this.expression})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],I.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],I.prototype,"expression",void 0),(0,s.Cg)([(0,c.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],I.prototype,"returnType",void 0),I=x=(0,s.Cg)([(0,h.$)("esri.popup.ElementExpressionInfo")],I);const Z=I;var A;let j=A=class extends C.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new A({expressionInfo:this.expressionInfo?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:Z,json:{write:!0}})],j.prototype,"expressionInfo",void 0),(0,s.Cg)([(0,c.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],j.prototype,"type",void 0),j=A=(0,s.Cg)([(0,h.$)("esri.popup.content.ExpressionContent")],j);const b=j;var F=i(66159);let N=class extends p.o{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"altText",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"caption",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],N.prototype,"type",void 0),N=(0,s.Cg)([(0,h.$)("esri.popup.content.mixins.MediaInfo")],N);const R=N;var S,O=i(68197),_=i(65008);let T=S=class extends _.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new S({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,s.Cg)([(0,c.MZ)()],T.prototype,"color",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"fieldName",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"tooltip",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"value",void 0),T=S=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValueSeries")],T);const $=T;var E;let B=E=class extends p.o{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new E({colors:(0,l.o8)(this.colors),fields:(0,l.o8)(this.fields),normalizeField:this.normalizeField,series:(0,l.o8)(this.series),tooltipField:this.tooltipField})}};(0,s.Cg)([(0,c.MZ)({type:[O.A],json:{type:[[f.jz]],write:!0}})],B.prototype,"colors",void 0),(0,s.Cg)([(0,c.MZ)({type:[String],json:{write:{isRequired:!0}}})],B.prototype,"fields",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],B.prototype,"normalizeField",void 0),(0,s.Cg)([(0,c.MZ)({type:[$],json:{read:!1}})],B.prototype,"series",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],B.prototype,"tooltipField",void 0),B=E=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValue")],B);const k=B;let J=class extends R{constructor(t){super(t),this.type=null,this.value=void 0}};(0,s.Cg)([(0,c.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],J.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:k,json:{write:{isRequired:!0}}})],J.prototype,"value",void 0),J=(0,s.Cg)([(0,h.$)("esri.popup.content.mixins.ChartMediaInfo")],J);const q=J,L=(0,i(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});var U;let P=U=class extends q{constructor(t){super(t),this.type="bar-chart"}clone(){return new U({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:L.write,isRequired:!0}}})],P.prototype,"type",void 0),P=U=(0,s.Cg)([(0,h.$)("esri.popup.content.BarChartMediaInfo")],P);const z=P;var W;let D=W=class extends q{constructor(t){super(t),this.type="column-chart"}clone(){return new W({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:L.write,isRequired:!0}}})],D.prototype,"type",void 0),D=W=(0,s.Cg)([(0,h.$)("esri.popup.content.ColumnChartMediaInfo")],D);const K=D;var V;let G=V=class extends p.o{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new V({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],G.prototype,"linkURL",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:{isRequired:!0}}})],G.prototype,"sourceURL",void 0),G=V=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ImageMediaInfoValue")],G);const H=G;var X;let Q=X=class extends R{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new X({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Q.prototype,"refreshInterval",void 0),(0,s.Cg)([(0,c.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],Q.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:H,json:{write:{isRequired:!0}}})],Q.prototype,"value",void 0),Q=X=(0,s.Cg)([(0,h.$)("esri.popup.content.ImageMediaInfo")],Q);const Y=Q;var tt;let et=tt=class extends q{constructor(t){super(t),this.type="line-chart"}clone(){return new tt({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:L.write,isRequired:!0}}})],et.prototype,"type",void 0),et=tt=(0,s.Cg)([(0,h.$)("esri.popup.content.LineChartMediaInfo")],et);const it=et;var ot;let st=ot=class extends q{constructor(t){super(t),this.type="pie-chart"}clone(){return new ot({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:L.write,isRequired:!0}}})],st.prototype,"type",void 0),st=ot=(0,s.Cg)([(0,h.$)("esri.popup.content.PieChartMediaInfo")],st);const rt=st,nt={base:R,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":z,"column-chart":K,"line-chart":it,"pie-chart":rt,image:Y}};var pt;let lt=pt=class extends C.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map(t=>"image"===t.type?Y.fromJSON(t):"barchart"===t.type?z.fromJSON(t):"columnchart"===t.type?K.fromJSON(t):"linechart"===t.type?it.fromJSON(t):"piechart"===t.type?rt.fromJSON(t):void 0).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map(t=>t.toJSON())}clone(){return new pt((0,l.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,s.Cg)([(0,c.MZ)()],lt.prototype,"activeMediaInfoIndex",void 0),(0,s.Cg)([(0,c.MZ)({type:Object,json:{write:!0}})],lt.prototype,"attributes",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],lt.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({types:[nt]})],lt.prototype,"mediaInfos",void 0),(0,s.Cg)([(0,y.w)("mediaInfos")],lt.prototype,"readMediaInfos",null),(0,s.Cg)([(0,g.K)("mediaInfos")],lt.prototype,"writeMediaInfos",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],lt.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],lt.prototype,"type",void 0),lt=pt=(0,s.Cg)([(0,h.$)("esri.popup.content.MediaContent")],lt);const at=lt;var dt=i(49852);let ct=class extends((0,r.OU)(C.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ct.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:f.jz,write:!0}})],ct.prototype,"displayCount",void 0),(0,s.Cg)([(0,c.MZ)({type:["list"],json:{write:{isRequired:!0}}})],ct.prototype,"displayType",void 0),(0,s.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],ct.prototype,"orderByFields",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:f.jz,write:{isRequired:!0}}})],ct.prototype,"relationshipId",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ct.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ct.prototype,"type",void 0),ct=(0,s.Cg)([(0,h.$)("esri.popup.content.RelationshipContent")],ct);const ut=ct;var yt;let ht=yt=class extends C.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new yt({text:this.text})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ht.prototype,"text",void 0),(0,s.Cg)([(0,c.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ht.prototype,"type",void 0),ht=yt=(0,s.Cg)([(0,h.$)("esri.popup.content.TextContent")],ht);const gt=ht;var ft=i(93223),vt=i(83342);let mt=class extends((0,r.OU)(C.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],mt.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:f.jz,write:!0}})],mt.prototype,"displayCount",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],mt.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:[vt.A],json:{write:!0}})],mt.prototype,"associationTypes",void 0),(0,s.Cg)([(0,ft.e)({utilityNetworkAssociations:"utility-network-associations"})],mt.prototype,"type",void 0),mt=(0,s.Cg)([(0,h.$)("esri.popup.content.UtilityNetworkAssociationsContent")],mt);const Ct=mt,wt={base:null,key:"type",typeMap:{attachment:m.A,media:at,text:gt,expression:b,field:F.A,relationship:ut,utilityNetworkAssociations:Ct}},Mt={base:null,key:"type",typeMap:{attachment:m.A,media:at,text:gt,expression:b,field:F.A,relationship:ut}};var xt,It=i(93705),Zt=i(41227);let At=xt=class extends p.o{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new xt({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],At.prototype,"returnTopmostRaster",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],At.prototype,"showNoDataRecords",void 0),At=xt=(0,s.Cg)([(0,h.$)("esri.popup.LayerOptions")],At);const jt=At;var bt;let Ft=bt=class extends p.o{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new bt({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,l.o8)(this.orderByFields):null})}};(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Ft.prototype,"showRelatedRecords",void 0),(0,s.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],Ft.prototype,"orderByFields",void 0),Ft=bt=(0,s.Cg)([(0,h.$)("esri.popup.RelatedRecordsInfo")],Ft);const Nt=Ft;var Rt,St=i(4902);let Ot=Rt=class extends((0,St.sA)(_.A)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new Rt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"active",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"className",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"disabled",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"icon",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"id",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"indicator",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"visible",void 0),Ot=Rt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionBase")],Ot);const _t=Ot;var Tt;let $t=Tt=class extends _t{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new Tt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,s.Cg)([(0,c.MZ)()],$t.prototype,"image",void 0),$t=Tt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionButton")],$t);const Et=$t;var Bt;let kt=Bt=class extends _t{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new Bt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,s.Cg)([(0,c.MZ)()],kt.prototype,"image",void 0),(0,s.Cg)([(0,c.MZ)()],kt.prototype,"value",void 0),kt=Bt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionToggle")],kt);const Jt=kt,qt="relationships/",Lt="expression/",Ut=n.A.ofType({key:"type",defaultKeyValue:"button",base:_t,typeMap:{button:Et,toggle:Jt}}),Pt={base:C.A,key:"type",typeMap:{media:at,custom:M,text:gt,attachments:m.A,fields:F.A,expression:b,relationship:ut,utilityNetworkAssociations:Ct}},zt=new Set(["attachments","fields","media","text","expression","relationship"]),Wt=new Set([...zt,"utility-network-associations"]);let Dt=class extends((0,r.OU)(p.o)){constructor(t){super(t),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map(t=>(0,f.aq)(Pt,t)):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,d.$X)(t)?t:(a.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:i}=e;return Array.isArray(i)&&i.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,i):this._readPopupInfo(e)}writeWebSceneContent(t,e,i,o){this._writePopupTemplateContent(t,e,o)}writeWebMapContent(t,e,i,o){this._writePopupTemplateContent(t,e,o)}writeFieldInfos(t,e,i,o){const{content:s}=this,r=Array.isArray(s)?s:null;if(t){const i=r?r.filter(t=>"fields"===t.type):[],s=i.length&&i.every(t=>t.fieldInfos?.length);e.fieldInfos=t.filter(Boolean).map(t=>{const e=t.toJSON(o);return s&&(e.visible=!1),e})}if(r)for(const t of r)"fields"===t.type&&this._writeFieldsContent(t,e)}writeLayerOptions(t,e,i,o){e[i]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(o)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e){const i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,v._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t){const e=new Set;return await this.collectRequiredFields(e,t),[...e].sort()}_writePopupTemplateContent(t,e,i){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter(t=>"web-scene"===i?.origin?zt.has(t.type):Wt.has(t.type)).map(t=>t?.toJSON(i)),e.popupElements.forEach(t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)})):e.description=t}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const i=(0,l.o8)(t.fieldInfos);Array.isArray(e.fieldInfos)?i.forEach(t=>{const i=e.fieldInfos.find(e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase());i?i.visible=!0:e.fieldInfos.push(t)}):e.fieldInfos=i}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const i=t.orderByFields?.map(e=>this._toFieldOrderJSON(e,t.relationshipId))||[],o=[...e.relatedRecordsInfo?.orderByFields||[],...i];e.relatedRecordsInfo={showRelatedRecords:!0,...o?.length&&{orderByFields:o}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const i=(0,l.o8)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...i]:e.mediaInfos=i}_readPopupInfoElements(t,e,i){const o={description:!1,mediaInfos:!1};return i.map(i=>"media"===i.type?(i.mediaInfos||!e||o.mediaInfos||(i.mediaInfos=e,o.mediaInfos=!0),at.fromJSON(i)):"text"===i.type?(i.text||!t||o.description||(i.text=t,o.description=!0),gt.fromJSON(i)):"attachments"===i.type?m.A.fromJSON(i):"fields"===i.type?F.A.fromJSON(i):"expression"===i.type?b.fromJSON(i):"relationship"===i.type?ut.fromJSON(i):"utilityNetworkAssociations"===i.type?Ct.fromJSON(i):void 0).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:i}=t;if(!e?.startsWith(qt))return null;const o=e.replace(qt,"").split("/");if(2!==o.length)return null;const s=parseInt(o[0],10),r=o[1];return!Number.isNaN(s)&&r?ut.fromJSON({relationshipId:s,orderByFields:[{field:r,order:i}]}):null}_toFieldOrderJSON(t,e){const{order:i,field:o}=t;return{field:`${qt}${e}/${o}`,order:i}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:i,relatedRecordsInfo:o={showRelatedRecords:!1}}){const s=[];t?s.push(new gt({text:t})):s.push(new F.A),Array.isArray(e)&&e.length&&s.push(at.fromJSON({mediaInfos:e})),i&&s.push(m.A.fromJSON({displayType:"auto"}));const{showRelatedRecords:r,orderByFields:n}=o;return r&&n?.length&&n.forEach(t=>{const e=this._toRelationshipContent(t);e&&s.push(e)}),s.length?s:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce((t,e)=>[...t,...this._getMediaInfoFields(e)],[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){const{caption:e,title:i,value:o}=t,s=o||{},{fields:r,normalizeField:n,tooltipField:p,sourceURL:l,linkURL:a}=s,d=[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(a),...r??[]];return n&&d.push(n),p&&d.push(p),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]],e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce((t,e)=>[...t,...this._getContentElementFields(e)],[]):[]}async _collectExpressionInfoFields(t,e,i){i&&await Promise.all(i.map(i=>(0,v.Dx)(t,e,i.expression)))}_getFieldInfoFields(t){return t?t.filter(({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(qt)||t.startsWith(Lt))).map(t=>t.fieldName):[]}_getActionsFields(t){return t?t.toArray().reduce((t,e)=>[...t,...this._getActionFields(e)],[]):[]}_getActionFields(t){const{className:e,title:i,type:o}=t,s="button"===o||"toggle"===o?t.image:"";return[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(s)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,v.nw)(t).filter(t=>!(t.startsWith(qt)||t.startsWith(Lt)))}};(0,s.Cg)([(0,c.MZ)({type:Ut})],Dt.prototype,"actions",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"content",void 0),(0,s.Cg)([(0,u.w)("content")],Dt.prototype,"castContent",null),(0,s.Cg)([(0,y.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],Dt.prototype,"readContent",null),(0,s.Cg)([(0,g.K)("web-scene","content",{popupElements:{type:n.A.ofType(Mt)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(nt)},description:{type:String},relatedRecordsInfo:{type:Nt}})],Dt.prototype,"writeWebSceneContent",null),(0,s.Cg)([(0,g.K)("content",{popupElements:{type:n.A.ofType(wt)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(nt)},description:{type:String},relatedRecordsInfo:{type:Nt}})],Dt.prototype,"writeWebMapContent",null),(0,s.Cg)([(0,c.MZ)({type:[It.A],json:{write:!0}})],Dt.prototype,"expressionInfos",void 0),(0,s.Cg)([(0,c.MZ)({type:[Zt.A]})],Dt.prototype,"fieldInfos",void 0),(0,s.Cg)([(0,g.K)("fieldInfos")],Dt.prototype,"writeFieldInfos",null),(0,s.Cg)([(0,c.MZ)({type:jt})],Dt.prototype,"layerOptions",void 0),(0,s.Cg)([(0,g.K)("layerOptions")],Dt.prototype,"writeLayerOptions",null),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],Dt.prototype,"lastEditInfoEnabled",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"outFields",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"overwriteActions",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"returnGeometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{type:String}})],Dt.prototype,"title",void 0),(0,s.Cg)([(0,g.K)("title")],Dt.prototype,"writeTitle",null),Dt=(0,s.Cg)([(0,h.$)("esri.PopupTemplate")],Dt);const Kt=Dt},41227:(t,e,i)=>{i.d(e,{A:()=>u});var o,s=i(31635),r=i(66552),n=i(25482),p=i(10107),l=(i(44208),i(53966),i(87811),i(93223)),a=i(40608),d=i(68780);let c=o=class extends n.o{constructor(t){super(t),this.fieldName=null,this.format=void 0,this.isEditable=!0,this.label=null,this.stringFieldOption="text-box",this.statisticType=null,this.tooltip=null,this.visible=!0}clone(){return new o({fieldName:this.fieldName,format:this.format?.clone(),isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0),(0,s.Cg)([(0,p.MZ)({type:d.A,json:{write:!0}})],c.prototype,"format",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],c.prototype,"isEditable",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,s.Cg)([(0,l.e)(new r.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",void 0),(0,s.Cg)([(0,p.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],c.prototype,"statisticType",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0),c=o=(0,s.Cg)([(0,a.$)("esri.popup.FieldInfo")],c);const u=c},49852:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(31635),r=i(25482),n=i(10107),p=(i(44208),i(53966),i(87811),i(40608));let l=o=class extends r.o{constructor(t){super(t),this.field=null,this.order=null}clone(){return new o({field:this.field,order:this.order})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"field",void 0),(0,s.Cg)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],l.prototype,"order",void 0),l=o=(0,s.Cg)([(0,p.$)("esri.popup.support.RelatedRecordsInfoFieldOrder")],l);const a=l},60950:(t,e,i)=>{i.d(e,{E_:()=>s,ym:()=>o});const o=Symbol("popupProvider");function s(t){return function(t){return!!t&&o in t}(t)?t[o]:null}},66159:(t,e,i)=>{i.d(e,{A:()=>u});var o,s=i(31635),r=i(4718),n=i(10107),p=(i(44208),i(53966),i(40608)),l=i(43937),a=i(41227),d=i(84424);let c=o=class extends d.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}writeFieldInfos(t,e){e.fieldInfos=t&&t.map(t=>t.toJSON())}clone(){return new o((0,r.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,s.Cg)([(0,n.MZ)({type:Object,json:{write:!0}})],c.prototype,"attributes",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,s.Cg)([(0,n.MZ)({type:[a.A]})],c.prototype,"fieldInfos",void 0),(0,s.Cg)([(0,l.K)("fieldInfos")],c.prototype,"writeFieldInfos",null),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],c.prototype,"type",void 0),c=o=(0,s.Cg)([(0,p.$)("esri.popup.content.FieldsContent")],c);const u=c},68780:(t,e,i)=>{i.d(e,{A:()=>u});var o=i(31635),s=i(69540),r=i(25482),n=i(10107),p=i(56507),l=(i(44208),i(87811),i(93223)),a=i(40608),d=i(97770);let c=class extends((0,s.OU)(r.o)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,o.Cg)([(0,l.e)(d._v)],c.prototype,"dateFormat",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"digitSeparator",void 0),(0,o.Cg)([(0,n.MZ)({type:p.jz,json:{write:!0}})],c.prototype,"places",void 0),c=(0,o.Cg)([(0,a.$)("esri.popup.support.FieldInfoFormat")],c);const u=c},78553:(t,e,i)=>{i.d(e,{D:()=>r,p:()=>s});var o=i(56507);function s(t){const e=(0,o.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function r(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},83342:(t,e,i)=>{i.d(e,{A:()=>d});var o=i(31635),s=i(69540),r=i(25482),n=i(10107),p=i(56507),l=(i(44208),i(87811),i(40608));let a=class extends((0,s.OU)(r.o)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,o.Cg)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],a.prototype,"type",void 0),(0,o.Cg)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedNetworkSourceId",void 0),(0,o.Cg)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedAssetGroup",void 0),(0,o.Cg)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedAssetType",void 0),a=(0,o.Cg)([(0,l.$)("esri.popup.support.UtilityNetworkAssociationType")],a);const d=a},84424:(t,e,i)=>{i.d(e,{A:()=>l});var o=i(31635),s=i(25482),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let p=class extends s.o{constructor(t){super(t),this.type=null}};(0,o.Cg)([(0,r.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],p.prototype,"type",void 0),p=(0,o.Cg)([(0,n.$)("esri.popup.content.Content")],p);const l=p},89893:(t,e,i)=>{i.d(e,{A:()=>h});var o=i(31635),s=i(69540),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(84424),l=i(66552),a=i(25482);const d=new l.J({asc:"ascending",desc:"descending"});let c=class extends((0,s.OU)(a.o)){constructor(t){super(t),this.field=null,this.order="ascending"}};(0,o.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,o.Cg)([(0,r.MZ)({type:d.apiValues,json:{type:d.jsonValues,read:d.read,write:d.write}})],c.prototype,"order",void 0),c=(0,o.Cg)([(0,n.$)("esri.popup.support.AttachmentsOrderByInfo")],c);const u=c;let y=class extends((0,s.OU)(p.A)){constructor(t){super(t),this.description=null,this.displayType="auto",this.orderByFields=null,this.title=null,this.type="attachments"}};(0,o.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,o.Cg)([(0,r.MZ)({type:["auto","preview","list"],json:{write:!0}})],y.prototype,"displayType",void 0),(0,o.Cg)([(0,r.MZ)({type:[u],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,o.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,o.Cg)([(0,r.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],y.prototype,"type",void 0),y=(0,o.Cg)([(0,n.$)("esri.popup.content.AttachmentsContent")],y);const h=y},93705:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(31635),r=i(25482),n=i(10107),p=(i(44208),i(53966),i(87811),i(40608));let l=o=class extends r.o{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new o({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,s.Cg)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],l.prototype,"returnType",void 0),l=o=(0,s.Cg)([(0,p.$)("esri.popup.ExpressionInfo")],l);const a=l}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2869],{4902:(t,e,i)=>{i.d(e,{PH:()=>p,sA:()=>n});var o=i(31635),s=i(40608);let r=0;const n=t=>{const e=t;let i=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+r++})}};return i=(0,o.Cg)([(0,s.$)("esri.core.Identifiable")],i),i},p=t=>{const e=t;let i=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:r++})}};return i=(0,o.Cg)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],i),i};n(class{})},37838:(t,e,i)=>{i.d(e,{A:()=>Kt});var o,s=i(31635),r=i(69540),n=i(7762),p=i(25482),l=i(4718),a=i(53966),d=i(74887),c=i(10107),u=i(79901),y=i(36005),h=i(40608),g=i(43937),f=i(56507),v=i(30524),m=i(89893),C=i(84424);i(44208);let w=o=class extends C.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new o({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,l.o8)(this.outFields):null})}};(0,s.Cg)([(0,c.MZ)()],w.prototype,"creator",void 0),(0,s.Cg)([(0,c.MZ)()],w.prototype,"destroyer",void 0),(0,s.Cg)([(0,c.MZ)()],w.prototype,"outFields",void 0),(0,s.Cg)([(0,c.MZ)({type:["custom"],readOnly:!0})],w.prototype,"type",void 0),w=o=(0,s.Cg)([(0,h.$)("esri.popup.content.CustomContent")],w);const M=w;var x;i(87811);let I=x=class extends p.o{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new x({title:this.title,expression:this.expression})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],I.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],I.prototype,"expression",void 0),(0,s.Cg)([(0,c.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],I.prototype,"returnType",void 0),I=x=(0,s.Cg)([(0,h.$)("esri.popup.ElementExpressionInfo")],I);const Z=I;var A;let j=A=class extends C.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new A({expressionInfo:this.expressionInfo?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:Z,json:{write:!0}})],j.prototype,"expressionInfo",void 0),(0,s.Cg)([(0,c.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],j.prototype,"type",void 0),j=A=(0,s.Cg)([(0,h.$)("esri.popup.content.ExpressionContent")],j);const b=j;var F=i(66159);let N=class extends p.o{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"altText",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"caption",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],N.prototype,"type",void 0),N=(0,s.Cg)([(0,h.$)("esri.popup.content.mixins.MediaInfo")],N);const R=N;var S,O=i(68197),_=i(65008);let T=S=class extends _.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new S({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,s.Cg)([(0,c.MZ)()],T.prototype,"color",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"fieldName",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"tooltip",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"value",void 0),T=S=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValueSeries")],T);const $=T;var E;let B=E=class extends p.o{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new E({colors:(0,l.o8)(this.colors),fields:(0,l.o8)(this.fields),normalizeField:this.normalizeField,series:(0,l.o8)(this.series),tooltipField:this.tooltipField})}};(0,s.Cg)([(0,c.MZ)({type:[O.A],json:{type:[[f.jz]],write:!0}})],B.prototype,"colors",void 0),(0,s.Cg)([(0,c.MZ)({type:[String],json:{write:{isRequired:!0}}})],B.prototype,"fields",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],B.prototype,"normalizeField",void 0),(0,s.Cg)([(0,c.MZ)({type:[$],json:{read:!1}})],B.prototype,"series",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],B.prototype,"tooltipField",void 0),B=E=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValue")],B);const k=B;let J=class extends R{constructor(t){super(t),this.type=null,this.value=void 0}};(0,s.Cg)([(0,c.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],J.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:k,json:{write:{isRequired:!0}}})],J.prototype,"value",void 0),J=(0,s.Cg)([(0,h.$)("esri.popup.content.mixins.ChartMediaInfo")],J);const q=J,L=(0,i(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});var U;let P=U=class extends q{constructor(t){super(t),this.type="bar-chart"}clone(){return new U({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:L.write,isRequired:!0}}})],P.prototype,"type",void 0),P=U=(0,s.Cg)([(0,h.$)("esri.popup.content.BarChartMediaInfo")],P);const z=P;var W;let D=W=class extends q{constructor(t){super(t),this.type="column-chart"}clone(){return new W({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:L.write,isRequired:!0}}})],D.prototype,"type",void 0),D=W=(0,s.Cg)([(0,h.$)("esri.popup.content.ColumnChartMediaInfo")],D);const K=D;var V;let G=V=class extends p.o{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new V({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],G.prototype,"linkURL",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:{isRequired:!0}}})],G.prototype,"sourceURL",void 0),G=V=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ImageMediaInfoValue")],G);const H=G;var X;let Q=X=class extends R{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new X({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Q.prototype,"refreshInterval",void 0),(0,s.Cg)([(0,c.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],Q.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:H,json:{write:{isRequired:!0}}})],Q.prototype,"value",void 0),Q=X=(0,s.Cg)([(0,h.$)("esri.popup.content.ImageMediaInfo")],Q);const Y=Q;var tt;let et=tt=class extends q{constructor(t){super(t),this.type="line-chart"}clone(){return new tt({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:L.write,isRequired:!0}}})],et.prototype,"type",void 0),et=tt=(0,s.Cg)([(0,h.$)("esri.popup.content.LineChartMediaInfo")],et);const it=et;var ot;let st=ot=class extends q{constructor(t){super(t),this.type="pie-chart"}clone(){return new ot({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:L.write,isRequired:!0}}})],st.prototype,"type",void 0),st=ot=(0,s.Cg)([(0,h.$)("esri.popup.content.PieChartMediaInfo")],st);const rt=st,nt={base:R,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":z,"column-chart":K,"line-chart":it,"pie-chart":rt,image:Y}};var pt;let lt=pt=class extends C.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map(t=>"image"===t.type?Y.fromJSON(t):"barchart"===t.type?z.fromJSON(t):"columnchart"===t.type?K.fromJSON(t):"linechart"===t.type?it.fromJSON(t):"piechart"===t.type?rt.fromJSON(t):void 0).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map(t=>t.toJSON())}clone(){return new pt((0,l.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,s.Cg)([(0,c.MZ)()],lt.prototype,"activeMediaInfoIndex",void 0),(0,s.Cg)([(0,c.MZ)({type:Object,json:{write:!0}})],lt.prototype,"attributes",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],lt.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({types:[nt]})],lt.prototype,"mediaInfos",void 0),(0,s.Cg)([(0,y.w)("mediaInfos")],lt.prototype,"readMediaInfos",null),(0,s.Cg)([(0,g.K)("mediaInfos")],lt.prototype,"writeMediaInfos",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],lt.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],lt.prototype,"type",void 0),lt=pt=(0,s.Cg)([(0,h.$)("esri.popup.content.MediaContent")],lt);const at=lt;var dt=i(49852);let ct=class extends((0,r.OU)(C.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ct.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:f.jz,write:!0}})],ct.prototype,"displayCount",void 0),(0,s.Cg)([(0,c.MZ)({type:["list"],json:{write:{isRequired:!0}}})],ct.prototype,"displayType",void 0),(0,s.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],ct.prototype,"orderByFields",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:f.jz,write:{isRequired:!0}}})],ct.prototype,"relationshipId",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ct.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ct.prototype,"type",void 0),ct=(0,s.Cg)([(0,h.$)("esri.popup.content.RelationshipContent")],ct);const ut=ct;var yt;let ht=yt=class extends C.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new yt({text:this.text})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ht.prototype,"text",void 0),(0,s.Cg)([(0,c.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ht.prototype,"type",void 0),ht=yt=(0,s.Cg)([(0,h.$)("esri.popup.content.TextContent")],ht);const gt=ht;var ft=i(93223),vt=i(83342);let mt=class extends((0,r.OU)(C.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],mt.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:f.jz,write:!0}})],mt.prototype,"displayCount",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],mt.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:[vt.A],json:{write:!0}})],mt.prototype,"associationTypes",void 0),(0,s.Cg)([(0,ft.e)({utilityNetworkAssociations:"utility-network-associations"})],mt.prototype,"type",void 0),mt=(0,s.Cg)([(0,h.$)("esri.popup.content.UtilityNetworkAssociationsContent")],mt);const Ct=mt,wt={base:null,key:"type",typeMap:{attachment:m.A,media:at,text:gt,expression:b,field:F.A,relationship:ut,utilityNetworkAssociations:Ct}},Mt={base:null,key:"type",typeMap:{attachment:m.A,media:at,text:gt,expression:b,field:F.A,relationship:ut}};var xt,It=i(93705),Zt=i(41227);let At=xt=class extends p.o{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new xt({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],At.prototype,"returnTopmostRaster",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],At.prototype,"showNoDataRecords",void 0),At=xt=(0,s.Cg)([(0,h.$)("esri.popup.LayerOptions")],At);const jt=At;var bt;let Ft=bt=class extends p.o{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new bt({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,l.o8)(this.orderByFields):null})}};(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Ft.prototype,"showRelatedRecords",void 0),(0,s.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],Ft.prototype,"orderByFields",void 0),Ft=bt=(0,s.Cg)([(0,h.$)("esri.popup.RelatedRecordsInfo")],Ft);const Nt=Ft;var Rt,St=i(4902);let Ot=Rt=class extends((0,St.sA)(_.A)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new Rt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"active",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"className",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"disabled",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"icon",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"id",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"indicator",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"visible",void 0),Ot=Rt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionBase")],Ot);const _t=Ot;var Tt;let $t=Tt=class extends _t{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new Tt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,s.Cg)([(0,c.MZ)()],$t.prototype,"image",void 0),$t=Tt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionButton")],$t);const Et=$t;var Bt;let kt=Bt=class extends _t{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new Bt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,s.Cg)([(0,c.MZ)()],kt.prototype,"image",void 0),(0,s.Cg)([(0,c.MZ)()],kt.prototype,"value",void 0),kt=Bt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionToggle")],kt);const Jt=kt,qt="relationships/",Lt="expression/",Ut=n.A.ofType({key:"type",defaultKeyValue:"button",base:_t,typeMap:{button:Et,toggle:Jt}}),Pt={base:C.A,key:"type",typeMap:{media:at,custom:M,text:gt,attachments:m.A,fields:F.A,expression:b,relationship:ut,utilityNetworkAssociations:Ct}},zt=new Set(["attachments","fields","media","text","expression","relationship"]),Wt=new Set([...zt,"utility-network-associations"]);let Dt=class extends((0,r.OU)(p.o)){constructor(t){super(t),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map(t=>(0,f.aq)(Pt,t)):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,d.$X)(t)?t:(a.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:i}=e;return Array.isArray(i)&&i.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,i):this._readPopupInfo(e)}writeWebSceneContent(t,e,i,o){this._writePopupTemplateContent(t,e,o)}writeWebMapContent(t,e,i,o){this._writePopupTemplateContent(t,e,o)}writeFieldInfos(t,e,i,o){const{content:s}=this,r=Array.isArray(s)?s:null;if(t){const i=r?r.filter(t=>"fields"===t.type):[],s=i.length&&i.every(t=>t.fieldInfos?.length);e.fieldInfos=t.filter(Boolean).map(t=>{const e=t.toJSON(o);return s&&(e.visible=!1),e})}if(r)for(const t of r)"fields"===t.type&&this._writeFieldsContent(t,e)}writeLayerOptions(t,e,i,o){e[i]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(o)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e,i){const o=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,i,[...o,...this._getContentExpressionInfos(this.content,o)]),(0,v._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t,e){const i=new Set;return await this.collectRequiredFields(i,t,e),[...i].sort()}_writePopupTemplateContent(t,e,i){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter(t=>"web-scene"===i?.origin?zt.has(t.type):Wt.has(t.type)).map(t=>t?.toJSON(i)),e.popupElements.forEach(t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)})):e.description=t}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const i=(0,l.o8)(t.fieldInfos);Array.isArray(e.fieldInfos)?i.forEach(t=>{const i=e.fieldInfos.find(e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase());i?i.visible=!0:e.fieldInfos.push(t)}):e.fieldInfos=i}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const i=t.orderByFields?.map(e=>this._toFieldOrderJSON(e,t.relationshipId))||[],o=[...e.relatedRecordsInfo?.orderByFields||[],...i];e.relatedRecordsInfo={showRelatedRecords:!0,...o?.length&&{orderByFields:o}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const i=(0,l.o8)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...i]:e.mediaInfos=i}_readPopupInfoElements(t,e,i){const o={description:!1,mediaInfos:!1};return i.map(i=>"media"===i.type?(i.mediaInfos||!e||o.mediaInfos||(i.mediaInfos=e,o.mediaInfos=!0),at.fromJSON(i)):"text"===i.type?(i.text||!t||o.description||(i.text=t,o.description=!0),gt.fromJSON(i)):"attachments"===i.type?m.A.fromJSON(i):"fields"===i.type?F.A.fromJSON(i):"expression"===i.type?b.fromJSON(i):"relationship"===i.type?ut.fromJSON(i):"utilityNetworkAssociations"===i.type?Ct.fromJSON(i):void 0).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:i}=t;if(!e?.startsWith(qt))return null;const o=e.replace(qt,"").split("/");if(2!==o.length)return null;const s=parseInt(o[0],10),r=o[1];return!Number.isNaN(s)&&r?ut.fromJSON({relationshipId:s,orderByFields:[{field:r,order:i}]}):null}_toFieldOrderJSON(t,e){const{order:i,field:o}=t;return{field:`${qt}${e}/${o}`,order:i}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:i,relatedRecordsInfo:o={showRelatedRecords:!1}}){const s=[];t?s.push(new gt({text:t})):s.push(new F.A),Array.isArray(e)&&e.length&&s.push(at.fromJSON({mediaInfos:e})),i&&s.push(m.A.fromJSON({displayType:"auto"}));const{showRelatedRecords:r,orderByFields:n}=o;return r&&n?.length&&n.forEach(t=>{const e=this._toRelationshipContent(t);e&&s.push(e)}),s.length?s:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce((t,e)=>[...t,...this._getMediaInfoFields(e)],[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){const{caption:e,title:i,value:o}=t,s=o||{},{fields:r,normalizeField:n,tooltipField:p,sourceURL:l,linkURL:a}=s,d=[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(a),...r??[]];return n&&d.push(n),p&&d.push(p),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]],e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce((t,e)=>[...t,...this._getContentElementFields(e)],[]):[]}async _collectExpressionInfoFields(t,e,i,o){o&&await Promise.all(o.map(o=>(0,v.Dx)(t,e,i,o.expression)))}_getFieldInfoFields(t){return t?t.filter(({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(qt)||t.startsWith(Lt))).map(t=>t.fieldName):[]}_getActionsFields(t){return t?t.toArray().reduce((t,e)=>[...t,...this._getActionFields(e)],[]):[]}_getActionFields(t){const{className:e,title:i,type:o}=t,s="button"===o||"toggle"===o?t.image:"";return[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(s)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,v.nw)(t).filter(t=>!(t.startsWith(qt)||t.startsWith(Lt)))}};(0,s.Cg)([(0,c.MZ)({type:Ut})],Dt.prototype,"actions",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"content",void 0),(0,s.Cg)([(0,u.w)("content")],Dt.prototype,"castContent",null),(0,s.Cg)([(0,y.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],Dt.prototype,"readContent",null),(0,s.Cg)([(0,g.K)("web-scene","content",{popupElements:{type:n.A.ofType(Mt)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(nt)},description:{type:String},relatedRecordsInfo:{type:Nt}})],Dt.prototype,"writeWebSceneContent",null),(0,s.Cg)([(0,g.K)("content",{popupElements:{type:n.A.ofType(wt)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(nt)},description:{type:String},relatedRecordsInfo:{type:Nt}})],Dt.prototype,"writeWebMapContent",null),(0,s.Cg)([(0,c.MZ)({type:[It.A],json:{write:!0}})],Dt.prototype,"expressionInfos",void 0),(0,s.Cg)([(0,c.MZ)({type:[Zt.A]})],Dt.prototype,"fieldInfos",void 0),(0,s.Cg)([(0,g.K)("fieldInfos")],Dt.prototype,"writeFieldInfos",null),(0,s.Cg)([(0,c.MZ)({type:jt})],Dt.prototype,"layerOptions",void 0),(0,s.Cg)([(0,g.K)("layerOptions")],Dt.prototype,"writeLayerOptions",null),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],Dt.prototype,"lastEditInfoEnabled",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"outFields",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"overwriteActions",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"returnGeometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{type:String}})],Dt.prototype,"title",void 0),(0,s.Cg)([(0,g.K)("title")],Dt.prototype,"writeTitle",null),Dt=(0,s.Cg)([(0,h.$)("esri.PopupTemplate")],Dt);const Kt=Dt},41227:(t,e,i)=>{i.d(e,{A:()=>u});var o,s=i(31635),r=i(66552),n=i(25482),p=i(10107),l=(i(44208),i(53966),i(87811),i(93223)),a=i(40608),d=i(68780);let c=o=class extends n.o{constructor(t){super(t),this.fieldName=null,this.format=void 0,this.isEditable=!0,this.label=null,this.stringFieldOption="text-box",this.statisticType=null,this.tooltip=null,this.visible=!0}clone(){return new o({fieldName:this.fieldName,format:this.format?.clone(),isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0),(0,s.Cg)([(0,p.MZ)({type:d.A,json:{write:!0}})],c.prototype,"format",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],c.prototype,"isEditable",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,s.Cg)([(0,l.e)(new r.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",void 0),(0,s.Cg)([(0,p.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],c.prototype,"statisticType",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0),c=o=(0,s.Cg)([(0,a.$)("esri.popup.FieldInfo")],c);const u=c},49852:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(31635),r=i(25482),n=i(10107),p=(i(44208),i(53966),i(87811),i(40608));let l=o=class extends r.o{constructor(t){super(t),this.field=null,this.order=null}clone(){return new o({field:this.field,order:this.order})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"field",void 0),(0,s.Cg)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],l.prototype,"order",void 0),l=o=(0,s.Cg)([(0,p.$)("esri.popup.support.RelatedRecordsInfoFieldOrder")],l);const a=l},60950:(t,e,i)=>{i.d(e,{E_:()=>s,ym:()=>o});const o=Symbol("popupProvider");function s(t){return function(t){return!!t&&o in t}(t)?t[o]:null}},66159:(t,e,i)=>{i.d(e,{A:()=>u});var o,s=i(31635),r=i(4718),n=i(10107),p=(i(44208),i(53966),i(40608)),l=i(43937),a=i(41227),d=i(84424);let c=o=class extends d.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}writeFieldInfos(t,e){e.fieldInfos=t&&t.map(t=>t.toJSON())}clone(){return new o((0,r.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,s.Cg)([(0,n.MZ)({type:Object,json:{write:!0}})],c.prototype,"attributes",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,s.Cg)([(0,n.MZ)({type:[a.A]})],c.prototype,"fieldInfos",void 0),(0,s.Cg)([(0,l.K)("fieldInfos")],c.prototype,"writeFieldInfos",null),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],c.prototype,"type",void 0),c=o=(0,s.Cg)([(0,p.$)("esri.popup.content.FieldsContent")],c);const u=c},68780:(t,e,i)=>{i.d(e,{A:()=>u});var o=i(31635),s=i(69540),r=i(25482),n=i(10107),p=i(56507),l=(i(44208),i(87811),i(93223)),a=i(40608),d=i(97770);let c=class extends((0,s.OU)(r.o)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,o.Cg)([(0,l.e)(d._v)],c.prototype,"dateFormat",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"digitSeparator",void 0),(0,o.Cg)([(0,n.MZ)({type:p.jz,json:{write:!0}})],c.prototype,"places",void 0),c=(0,o.Cg)([(0,a.$)("esri.popup.support.FieldInfoFormat")],c);const u=c},78553:(t,e,i)=>{i.d(e,{D:()=>r,p:()=>s});var o=i(56507);function s(t){const e=(0,o.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function r(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},83342:(t,e,i)=>{i.d(e,{A:()=>d});var o=i(31635),s=i(69540),r=i(25482),n=i(10107),p=i(56507),l=(i(44208),i(87811),i(40608));let a=class extends((0,s.OU)(r.o)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,o.Cg)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],a.prototype,"type",void 0),(0,o.Cg)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedNetworkSourceId",void 0),(0,o.Cg)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedAssetGroup",void 0),(0,o.Cg)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedAssetType",void 0),a=(0,o.Cg)([(0,l.$)("esri.popup.support.UtilityNetworkAssociationType")],a);const d=a},84424:(t,e,i)=>{i.d(e,{A:()=>l});var o=i(31635),s=i(25482),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let p=class extends s.o{constructor(t){super(t),this.type=null}};(0,o.Cg)([(0,r.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],p.prototype,"type",void 0),p=(0,o.Cg)([(0,n.$)("esri.popup.content.Content")],p);const l=p},89893:(t,e,i)=>{i.d(e,{A:()=>h});var o=i(31635),s=i(69540),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(84424),l=i(66552),a=i(25482);const d=new l.J({asc:"ascending",desc:"descending"});let c=class extends((0,s.OU)(a.o)){constructor(t){super(t),this.field=null,this.order="ascending"}};(0,o.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,o.Cg)([(0,r.MZ)({type:d.apiValues,json:{type:d.jsonValues,read:d.read,write:d.write}})],c.prototype,"order",void 0),c=(0,o.Cg)([(0,n.$)("esri.popup.support.AttachmentsOrderByInfo")],c);const u=c;let y=class extends((0,s.OU)(p.A)){constructor(t){super(t),this.description=null,this.displayType="auto",this.orderByFields=null,this.title=null,this.type="attachments"}};(0,o.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,o.Cg)([(0,r.MZ)({type:["auto","preview","list"],json:{write:!0}})],y.prototype,"displayType",void 0),(0,o.Cg)([(0,r.MZ)({type:[u],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,o.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,o.Cg)([(0,r.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],y.prototype,"type",void 0),y=(0,o.Cg)([(0,n.$)("esri.popup.content.AttachmentsContent")],y);const h=y},93705:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(31635),r=i(25482),n=i(10107),p=(i(44208),i(53966),i(87811),i(40608));let l=o=class extends r.o{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new o({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,s.Cg)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],l.prototype,"returnType",void 0),l=o=(0,s.Cg)([(0,p.$)("esri.popup.ExpressionInfo")],l);const a=l}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see
|
|
2
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6395],{18883:(e,t,i)=>{i.d(t,{g:()=>a});const a=()=>[2,1,1,1,3].map(e=>{let t="";for(let i=0;i<e;i++)t+=(65536*(1+Math.random())|0).toString(16).substring(1);return t}).join("-")},21796:(e,t,i)=>{i.d(t,{H:()=>E,c:()=>f,d:()=>z,f:()=>p,i:()=>b,r:()=>h,s:()=>m});var a=i(46337),n=i(79e3);const r=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"],l="hidden-form-input";function o(e){return"checked"in e}const c=new WeakMap,s=new WeakSet;function d(e){return"CALCITE-RADIO-BUTTON"===e.nodeName?(0,n.l)(e,"calcite-radio-button-group"):e}const v=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0});function u(e){const t=e?.target,i=t?.validationMessage,a=d(t?.parentElement);if(!a)return;const n=a?.nodeName?.toLowerCase(),l=n?.split("-");if(l.length<2||"calcite"!==l[0])return;e?.preventDefault(),"validity"in a&&(a.validity=t?.validity),a.dispatchEvent(v),function(e,{status:t,message:i,icon:a}){"status"in e&&(e.status=t),"validationIcon"in e&&"string"!=typeof e.validationIcon&&(e.validationIcon=a),"validationMessage"in e&&!e.validationMessage&&(e.validationMessage=i)}(a,{message:i,icon:!0,status:"invalid"});const o=function(e){return`${e.split("-").map((e,t)=>0===t?e:`${e[0].toUpperCase()}${e.slice(1)}`).join("")}${r.includes(e)?"Input":"Change"}`}(n);a.addEventListener(o,()=>{"status"in a&&(a.status="idle"),!("validationIcon"in a)||""!==a.validationIcon&&!0!==a.validationIcon||(a.validationIcon=!1),"validationMessage"in a&&a.validationMessage===i&&(a.validationMessage=""),"validity"in a&&(a.validity=t?.validity)},{once:!0})}function m(e){const{formEl:t}=e;return!!t&&(t.addEventListener("invalid",u,!0),t.requestSubmit(),t.removeEventListener("invalid",u,!0),requestAnimationFrame(()=>{const e=t.querySelectorAll("[status=invalid]");for(const t of e)if(t?.validationMessage){t?.setFocus();break}}),!0)}function h(e){e.formEl?.reset()}function f(e){const{el:t,value:i}=e,a=p(e);if(!a||function(e,t){if((0,n.l)(t.parentElement,"[form]"))return!0;const i="calciteInternalFormComponentRegister";let a=!1;return e.addEventListener(i,e=>{a=e.composedPath().some(e=>s.has(e)),e.stopPropagation()},{once:!0}),t.dispatchEvent(new CustomEvent(i,{bubbles:!0,composed:!0})),a}(a,t))return;e.formEl=a,e.defaultValue=i,o(e)&&(e.defaultChecked=e.checked);const r=g.bind(e);a.addEventListener("reset",r),c.set(e.el,r),s.add(t)}function p(e){const{el:t,form:i}=e;return i?(0,n.q)(t,{id:i}):(0,n.l)(t,"form")}function g(){"status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),o(this)?this.checked=this.defaultChecked:(this.value=this.defaultValue,this.onFormReset?.())}function z(e){const{el:t,formEl:i}=e;if(!i)return;const a=c.get(t);i.removeEventListener("reset",a),c.delete(t),e.formEl=null,s.delete(t)}const b="calciteInternalHiddenInputInput",k=e=>{e.target.dispatchEvent(new CustomEvent(b,{bubbles:!0}))},y=e=>e.removeEventListener("input",k);function $(e,t,i){const{defaultValue:a,disabled:n,form:r,name:l,required:c}=e;t.defaultValue=a,t.disabled=n,t.name=l,t.required=c,t.tabIndex=-1,r?t.setAttribute("form",r):t.removeAttribute("form"),o(e)?(t.checked=e.checked,t.defaultChecked=e.defaultChecked,t.value=e.checked?i||"on":""):t.value=i||"",e.syncHiddenFormInput?.(t);const s=d(e.el);if(s&&"validity"in s)for(const e in{...t?.validity})s.validity[e]=t.validity[e]}const E=({component:e})=>(function(e){const{el:t,formEl:i,name:n,value:r}=e,{ownerDocument:o}=t;if(a.S$)return;const c=t.querySelectorAll(`input[slot="${l}"]`);if(!i||!n)return void c.forEach(e=>{y(e),e.remove()});const s=Array.isArray(r)?r:[r],d=[],v=new Set;let u;c.forEach(t=>{const i=s.find(e=>e==t.value);null!=i?(v.add(i),$(e,t,i)):d.push(t)}),s.forEach(t=>{if(v.has(t))return;let i=d.pop();i||(i=o.createElement("input"),i.ariaHidden="true",i.slot=l),u||(u=o.createDocumentFragment()),u.append(i),i.addEventListener("input",k),$(e,i,t)}),u&&t.append(u),d.forEach(e=>{y(e),e.remove()})}(e),a.qy`<slot name=${l}></slot>`)},30357:(e,t,i)=>{var a=i(34088),n=i(46337),r=i(32906),l=i(18883),o=i(75572);const c="ring--progress",s="ring",d="ring--track",v=n.AH`:host{--calcite-internal-color-focus: var( --calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)) )}:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-0);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-2);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`;class u extends r.WF{constructor(){super(...arguments),this.messages=(0,o.u)({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}static{this.properties={complete:[7,{},{reflect:!0,type:Boolean}],inline:[7,{},{reflect:!0,type:Boolean}],label:1,scale:[3,{},{reflect:!0}],text:1,type:[3,{},{reflect:!0}],value:[9,{},{type:Number}]}}static{this.styles=v}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(e){e.has("value")&&(this.hasUpdated||0!==this.value)&&this.valueChangeHandler(),(e.has("type")&&(this.hasUpdated||"indeterminate"!==this.type)||e.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&100===this.value}formatValue(){return"determinate-value"!==this.type?`${this.value}`:this.formatter.format(this.value/100)}getSize(e){return{s:32,m:64,l:96}[e]}getInlineSize(e){return{s:12,m:16,l:24}[e]}updateFormatter(){"determinate-value"===this.type&&this.formatter?.resolvedOptions().locale!==this.messages._lang&&(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){const{el:e,inline:t,label:i,text:a,type:o,value:c}=this,s=e.id||(0,l.g)(),d="indeterminate"!==o,v=Math.floor(c);return this.el.ariaLabel=i,this.el.ariaValueMax=d?"100":void 0,this.el.ariaValueMin=d?"0":void 0,this.el.ariaValueNow=d?v.toString():void 0,(0,r.Bq)(this.el,"id",s),this.el.role="progressbar",n.qy`<div class=${(0,r.CP)("rings")}>${this.renderRing("track")}${this.renderRing("progress")}${!t&&d&&n.qy`<div class=${(0,r.CP)("percentage")}>${this.formatValue()}</div>`||""}</div>${!t&&a&&n.qy`<div class=${(0,r.CP)("text")}>${a}</div>`||""}`}renderRing(e){const{inline:t,scale:i,value:a}=this,l=t?this.getInlineSize(i):this.getSize(i),o=.45*l;let v;if("progress"===e){const e=2*o*Math.PI,t=(this.type.startsWith("determinate")?a:24)/100*e;v={"stroke-dasharray":`${t} ${e-t}`}}return n.qy`<svg aria-hidden=true class=${(0,r.CP)({[s]:!0,[d]:"track"===e,[c]:"progress"===e})} style=${(0,r.zl)(v)} viewBox=${`0 0 ${l} ${l}`}>${n.JW`<circle cx=${l/2} cy=${l/2} r=${o??n.s6} />`}</svg>`}}(0,a.c)("calcite-loader",u)},52567:(e,t,i)=>{i.d(t,{Bk:()=>l,eu:()=>o,qy:()=>d});var a=i(36752);const n=Symbol.for(""),r=e=>{if(e?.r===n)return e?._$litStatic$},l=e=>({_$litStatic$:e,r:n}),o=(e,...t)=>({_$litStatic$:t.reduce((t,i,a)=>t+(e=>{if(void 0!==e._$litStatic$)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(i)+e[a+1],e[0]),r:n}),c=new Map,s=e=>(t,...i)=>{const a=i.length;let n,l;const o=[],s=[];let d,v=0,u=!1;for(;v<a;){for(d=t[v];v<a&&void 0!==(l=i[v],n=r(l));)d+=n+t[++v],u=!0;v!==a&&s.push(l),o.push(d),v++}if(v===a&&o.push(t[a]),u){const e=o.join("$$lit$$");void 0===(t=c.get(e))&&(o.raw=o,c.set(e,t=o)),i=s}return e(t,...i)},d=s(a.qy);s(a.JW),s(a.ej)},60992:(e,t,i)=>{i.d(t,{I:()=>v,u:()=>d});var a=i(36752),n=i(32906);function r(){const{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function l(e){e.target.disabled&&e.preventDefault()}const o=["mousedown","mouseup","click"];function c(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}const s={capture:!0};function d(e){if(e.disabled)return e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),void function(e){var t;e.el.click=r,(t=e.el).addEventListener("pointerdown",l,s),o.forEach(e=>t.addEventListener(e,c,s))}(e);!function(e){var t;delete e.el.click,(t=e.el).removeEventListener("pointerdown",l,s),o.forEach(e=>t.removeEventListener(e,c,s))}(e),e.el.removeAttribute("aria-disabled")}const v=({children:e,disabled:t})=>a.qy`<div class=${(0,n.CP)("interaction-container")} .inert=${t}>${e}</div>`}}]);
|
|
1
|
+
/*! For license information please see 9c64b78c5c9b35b31d98.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6395],{18883:(e,t,i)=>{i.d(t,{g:()=>a});const a=()=>[2,1,1,1,3].map(e=>{let t="";for(let i=0;i<e;i++)t+=(65536*(1+Math.random())|0).toString(16).substring(1);return t}).join("-")},21796:(e,t,i)=>{i.d(t,{H:()=>E,c:()=>f,d:()=>z,f:()=>p,i:()=>b,r:()=>h,s:()=>m});var a=i(46337),n=i(79e3);const r=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"],l="hidden-form-input";function o(e){return"checked"in e}const c=new WeakMap,s=new WeakSet;function d(e){return"CALCITE-RADIO-BUTTON"===e.nodeName?(0,n.l)(e,"calcite-radio-button-group"):e}const v=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0});function u(e){const t=e?.target,i=t?.validationMessage,a=d(t?.parentElement);if(!a)return;const n=a?.nodeName?.toLowerCase(),l=n?.split("-");if(l.length<2||"calcite"!==l[0])return;e?.preventDefault(),"validity"in a&&(a.validity=t?.validity),a.dispatchEvent(v),function(e,{status:t,message:i,icon:a}){"status"in e&&(e.status=t),"validationIcon"in e&&"string"!=typeof e.validationIcon&&(e.validationIcon=a),"validationMessage"in e&&!e.validationMessage&&(e.validationMessage=i)}(a,{message:i,icon:!0,status:"invalid"});const o=function(e){return`${e.split("-").map((e,t)=>0===t?e:`${e[0].toUpperCase()}${e.slice(1)}`).join("")}${r.includes(e)?"Input":"Change"}`}(n);a.addEventListener(o,()=>{"status"in a&&(a.status="idle"),!("validationIcon"in a)||""!==a.validationIcon&&!0!==a.validationIcon||(a.validationIcon=!1),"validationMessage"in a&&a.validationMessage===i&&(a.validationMessage=""),"validity"in a&&(a.validity=t?.validity)},{once:!0})}function m(e){const{formEl:t}=e;return!!t&&(t.addEventListener("invalid",u,!0),t.requestSubmit(),t.removeEventListener("invalid",u,!0),requestAnimationFrame(()=>{const e=t.querySelectorAll("[status=invalid]");for(const t of e)if(t?.validationMessage){t?.setFocus();break}}),!0)}function h(e){e.formEl?.reset()}function f(e){const{el:t,value:i}=e,a=p(e);if(!a||function(e,t){if((0,n.l)(t.parentElement,"[form]"))return!0;const i="calciteInternalFormComponentRegister";let a=!1;return e.addEventListener(i,e=>{a=e.composedPath().some(e=>s.has(e)),e.stopPropagation()},{once:!0}),t.dispatchEvent(new CustomEvent(i,{bubbles:!0,composed:!0})),a}(a,t))return;e.formEl=a,e.defaultValue=i,o(e)&&(e.defaultChecked=e.checked);const r=g.bind(e);a.addEventListener("reset",r),c.set(e.el,r),s.add(t)}function p(e){const{el:t,form:i}=e;return i?(0,n.q)(t,{id:i}):(0,n.l)(t,"form")}function g(){"status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),o(this)?this.checked=this.defaultChecked:(this.value=this.defaultValue,this.onFormReset?.())}function z(e){const{el:t,formEl:i}=e;if(!i)return;const a=c.get(t);i.removeEventListener("reset",a),c.delete(t),e.formEl=null,s.delete(t)}const b="calciteInternalHiddenInputInput",k=e=>{e.target.dispatchEvent(new CustomEvent(b,{bubbles:!0}))},y=e=>e.removeEventListener("input",k);function $(e,t,i){const{defaultValue:a,disabled:n,form:r,name:l,required:c}=e;t.defaultValue=a,t.disabled=n,t.name=l,t.required=c,t.tabIndex=-1,r?t.setAttribute("form",r):t.removeAttribute("form"),o(e)?(t.checked=e.checked,t.defaultChecked=e.defaultChecked,t.value=e.checked?i||"on":""):t.value=i||"",e.syncHiddenFormInput?.(t);const s=d(e.el);if(s&&"validity"in s)for(const e in{...t?.validity})s.validity[e]=t.validity[e]}const E=({component:e})=>(function(e){const{el:t,formEl:i,name:n,value:r}=e,{ownerDocument:o}=t;if(a.S$)return;const c=t.querySelectorAll(`input[slot="${l}"]`);if(!i||!n)return void c.forEach(e=>{y(e),e.remove()});const s=Array.isArray(r)?r:[r],d=[],v=new Set;let u;c.forEach(t=>{const i=s.find(e=>e==t.value);null!=i?(v.add(i),$(e,t,i)):d.push(t)}),s.forEach(t=>{if(v.has(t))return;let i=d.pop();i||(i=o.createElement("input"),i.ariaHidden="true",i.slot=l),u||(u=o.createDocumentFragment()),u.append(i),i.addEventListener("input",k),$(e,i,t)}),u&&t.append(u),d.forEach(e=>{y(e),e.remove()})}(e),a.qy`<slot name=${l}></slot>`)},30357:(e,t,i)=>{var a=i(34088),n=i(46337),r=i(17899),l=i(18883),o=i(75572);const c="ring--progress",s="ring",d="ring--track",v=n.AH`:host{--calcite-internal-color-focus: var( --calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)) )}:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-0);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-2);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`;class u extends r.WF{constructor(){super(...arguments),this.messages=(0,o.u)({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}static{this.properties={complete:[7,{},{reflect:!0,type:Boolean}],inline:[7,{},{reflect:!0,type:Boolean}],label:1,scale:[3,{},{reflect:!0}],text:1,type:[3,{},{reflect:!0}],value:[9,{},{type:Number}]}}static{this.styles=v}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(e){e.has("value")&&(this.hasUpdated||0!==this.value)&&this.valueChangeHandler(),(e.has("type")&&(this.hasUpdated||"indeterminate"!==this.type)||e.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&100===this.value}formatValue(){return"determinate-value"!==this.type?`${this.value}`:this.formatter.format(this.value/100)}getSize(e){return{s:32,m:64,l:96}[e]}getInlineSize(e){return{s:12,m:16,l:24}[e]}updateFormatter(){"determinate-value"===this.type&&this.formatter?.resolvedOptions().locale!==this.messages._lang&&(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){const{el:e,inline:t,label:i,text:a,type:o,value:c}=this,s=e.id||(0,l.g)(),d="indeterminate"!==o,v=Math.floor(c);return this.el.ariaLabel=i,this.el.ariaValueMax=d?"100":void 0,this.el.ariaValueMin=d?"0":void 0,this.el.ariaValueNow=d?v.toString():void 0,(0,r.Bq)(this.el,"id",s),this.el.role="progressbar",n.qy`<div class=${(0,r.CP)("rings")}>${this.renderRing("track")}${this.renderRing("progress")}${!t&&d&&n.qy`<div class=${(0,r.CP)("percentage")}>${this.formatValue()}</div>`||""}</div>${!t&&a&&n.qy`<div class=${(0,r.CP)("text")}>${a}</div>`||""}`}renderRing(e){const{inline:t,scale:i,value:a}=this,l=t?this.getInlineSize(i):this.getSize(i),o=.45*l;let v;if("progress"===e){const e=2*o*Math.PI,t=(this.type.startsWith("determinate")?a:24)/100*e;v={"stroke-dasharray":`${t} ${e-t}`}}return n.qy`<svg aria-hidden=true class=${(0,r.CP)({[s]:!0,[d]:"track"===e,[c]:"progress"===e})} style=${(0,r.zl)(v)} viewBox=${`0 0 ${l} ${l}`}>${n.JW`<circle cx=${l/2} cy=${l/2} r=${o??n.s6} />`}</svg>`}}(0,a.c)("calcite-loader",u)},52567:(e,t,i)=>{i.d(t,{Bk:()=>l,eu:()=>o,qy:()=>d});var a=i(36752);const n=Symbol.for(""),r=e=>{if(e?.r===n)return e?._$litStatic$},l=e=>({_$litStatic$:e,r:n}),o=(e,...t)=>({_$litStatic$:t.reduce((t,i,a)=>t+(e=>{if(void 0!==e._$litStatic$)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(i)+e[a+1],e[0]),r:n}),c=new Map,s=e=>(t,...i)=>{const a=i.length;let n,l;const o=[],s=[];let d,v=0,u=!1;for(;v<a;){for(d=t[v];v<a&&void 0!==(l=i[v],n=r(l));)d+=n+t[++v],u=!0;v!==a&&s.push(l),o.push(d),v++}if(v===a&&o.push(t[a]),u){const e=o.join("$$lit$$");void 0===(t=c.get(e))&&(o.raw=o,c.set(e,t=o)),i=s}return e(t,...i)},d=s(a.qy);s(a.JW),s(a.ej)},60992:(e,t,i)=>{i.d(t,{I:()=>v,u:()=>d});var a=i(36752),n=i(17899);function r(){const{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function l(e){e.target.disabled&&e.preventDefault()}const o=["mousedown","mouseup","click"];function c(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}const s={capture:!0};function d(e){if(e.disabled)return e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),void function(e){var t;e.el.click=r,(t=e.el).addEventListener("pointerdown",l,s),o.forEach(e=>t.addEventListener(e,c,s))}(e);!function(e){var t;delete e.el.click,(t=e.el).removeEventListener("pointerdown",l,s),o.forEach(e=>t.removeEventListener(e,c,s))}(e),e.el.removeAttribute("aria-disabled")}const v=({children:e,disabled:t})=>a.qy`<div class=${(0,n.CP)("interaction-container")} .inert=${t}>${e}</div>`}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4784],{11221:(e,t,n)=>{n.d(t,{A:()=>g});var r=n(23732),a=n(87449),s=n(93833);class i{constructor(e,t){this._lastId=-1,this._progress=t,this._parent=e}reset(){this._lastId=-1}async nextBatchAsArcadeFeatures(e,t){const n=await this.nextBatch(e);return null===n?n:n.map(e=>s.Xj.createFromGraphicLikeObject(e.geometry,e.attributes,this._parent,t))}nextBatch(e){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then(t=>this.nextBatch(e),t=>this.nextBatch(e));const t={returnpromise:null,hasset:!1},n=[];return t.returnpromise=new Promise((r,a)=>{this._parent._getSet(this._progress).then(s=>{const i=s._known;let l=i.length-1;if("GETPAGES"===i[i.length-1]&&(l-=1),this._lastId+e>l&&i.length>0&&"GETPAGES"===i[i.length-1])return void this._parent._expandPagedSet(s,this._parent._maxQueryRate(),0,0,this._progress).then(n=>{t.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(e).then(r,a)},e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)});const o=s._candidates;if(l>=this._lastId+e||0===o.length){for(let t=0;t<e;t++){const e=t+this._lastId+1;if(e>=i.length)break;n[t]=i[e]}return this._lastId+=n.length,0===n.length&&(t.hasset=!0,this._parent._mainSetInUse=null,r([])),void this._parent._getFeatureBatch(n,this._progress).then(e=>{t.hasset=!0,this._parent._mainSetInUse=null,r(e)},e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)})}this._parent._refineSetBlock(s,this._parent._maxProcessingRate(),this._progress).then(()=>{t.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(e).then(r,a)},e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)})},e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)})}),!1===t.hasset&&(this._parent._mainSetInUse=t.returnpromise,t.hasset=!0),t.returnpromise}next(){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then(e=>this.next(),e=>this.next());const e={returnpromise:null,hasset:!1};return e.returnpromise=new Promise((t,n)=>{this._parent._getSet(this._progress).then(r=>{const a=r._known;this._lastId<a.length-1?"GETPAGES"===a[this._lastId+1]?this._parent._expandPagedSet(r,this._parent._maxQueryRate(),0,0,this._progress).then(t=>(e.hasset=!0,this._parent._mainSetInUse=null,this.next())).then(t,n):(this._lastId+=1,this._parent._getFeature(r,a[this._lastId],this._progress).then(n=>{e.hasset=!0,this._parent._mainSetInUse=null,t(n)},t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)})):r._candidates.length>0?this._parent._refineSetBlock(r,this._parent._maxProcessingRate(),this._progress).then(()=>{e.hasset=!0,this._parent._mainSetInUse=null,this.next().then(t,n)},t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)}):(e.hasset=!0,this._parent._mainSetInUse=null,t(null))},t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)})}),!1===e.hasset&&(this._parent._mainSetInUse=e.returnpromise,e.hasset=!0),e.returnpromise}async count(){if(-1!==this._parent._totalCount)return this._parent._totalCount;const e=await this._parent._getSet(this._progress),t=await this._refineAllSets(e);return this._parent._totalCount=t._known.length,this._parent._totalCount}async _refineAllSets(e){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1])return await this._parent._expandPagedSet(e,this._parent._maxQueryRate(),0,1,this._progress),this._refineAllSets(e);if(e._candidates.length>0){if("GETPAGES"===e._known[e._candidates.length-1])return await this._parent._expandPagedSet(e,this._parent._maxQueryRate(),0,2,this._progress),this._refineAllSets(e);const t=await this._parent._refineSetBlock(e,this._parent._maxProcessingRate(),this._progress);return t._candidates.length>0?this._refineAllSets(t):t}return e}}var l=n(89169),o=n(33325),u=n(50145),c=n(71163),h=n(74887),d=n(88368),p=n(16930),_=n(65864),f=n(95466);class g{constructor(e){this.recentlyUsedQueries=null,this.featureSetQueryInterceptor=null,this._idstates=[],this._parent=null,this._wset=null,this._mainSetInUse=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=7,this._databaseTypeProbed=null,this.declaredRootClass="esri.arcade.featureset.support.FeatureSet",this._featureCache=Object.create(null),this.typeIdField=null,this.types=null,this.subtypeField=null,this.subtypes=null,this.fields=null,this.geometryType="",this.objectIdField="",this.globalIdField="",this.spatialReference=null,this.hasM=!1,this.hasZ=!1,this._transparent=!1,this.loaded=!1,this._loadPromise=null,this._fieldsIndex=null,this.fsetInfo=null,e?.lrucache&&(this.recentlyUsedQueries=e.lrucache),e?.interceptor&&(this.featureSetQueryInterceptor=e.interceptor)}optimisePagingFeatureQueries(e){this._parent&&this._parent.optimisePagingFeatureQueries(e)}_hasMemorySource(){return!0}static{this._featuresetFunctions={}}prop(e,t){return void 0===t?this[e]:(void 0!==this[e]&&(this[e]=t),this)}end(){return null!==this._parent&&!0===this._parent._transparent?this._parent.end():this._parent}_ensureLoaded(){return this.load()}load(){return null===this._loadPromise&&(this._loadPromise=this.loadImpl()),this._loadPromise}async loadImpl(){return!0===this._parent?.loaded?(this._initialiseFeatureSet(),this):(await(this._parent?.load()),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){null!==this._parent?(this.fields=this._parent.fields.slice(),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.subtypeField=this._parent.subtypeField,this.subtypes=this._parent.subtypes):(this.fields=[],this.typeIdField="",this.subtypeField="",this.objectIdField="",this.globalIdField="",this.spatialReference=new p.A({wkid:4326}),this.geometryType=o.ik.point)}getField(e,t){let n;return(t=t||this.fields)&&(e=e.toLowerCase(),t.some(t=>(t&&t.name.toLowerCase()===e&&(n=t),!!n))),n}getFieldsIndex(){return null===this._fieldsIndex&&(this._fieldsIndex=f.A.fromLayer({timeInfo:this.timeInfo,editFieldsInfo:this.editFieldsInfo,dateFieldsTimeZone:this.dateFieldsTimeZone,datesInUnknownTimezone:this.datesInUnknownTimezone,fields:this.fields})),this._fieldsIndex}_maxProcessingRate(){return null!==this._parent?Math.min(this._maxProcessing,this._parent._maxProcessingRate()):Math.min(this._maxProcessing,this._maxQueryRate())}_maxQueryRate(){return null!==this._parent?Math.max(this._maxQuery,this._parent._maxQueryRate()):this._maxQuery}_checkCancelled(e){if(null!=e&&e.aborted)throw new a.d("Cancelled")}nativeCapabilities(){return this._parent.nativeCapabilities()}async _canDoAggregates(e,t,n,r,a){return null!==this._parent&&this._parent._canDoAggregates(e,t,n,r,a)}async _getAggregatePagesDataSourceDefinition(e,t,n,r,s,i,l){if(null===this._parent)throw new a.d("NeverReach");return this._parent._getAggregatePagesDataSourceDefinition(e,t,n,r,s,i,l)}async _getAgregagtePhysicalPage(e,t,n){if(null===this._parent)throw new a.d("NeverReach");return this._parent._getAgregagtePhysicalPage(e,t,n)}async databaseType(){if(7===this._databaseType){if(null!==r.A.applicationCache){const e=r.A.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());if(null!==e)return e}if(null!==this._databaseTypeProbed)return this._databaseTypeProbed;try{this._databaseTypeProbed=this._getDatabaseTypeImpl(),null!==r.A.applicationCache&&r.A.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(),this._databaseTypeProbed)}catch(e){throw null!==r.A.applicationCache&&r.A.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()),e}return this._databaseTypeProbed}return this._databaseType}async _getDatabaseTypeImpl(){const e=[{thetype:2,testwhere:"(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0"},{thetype:3,testwhere:"(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0"},{thetype:1,testwhere:"(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0"}];for(const t of e)if(!0===await this._runDatabaseProbe(t.testwhere))return t.thetype;return 1}_cacheableFeatureSetSourceKey(){return"MUSTBESET"}async _runDatabaseProbe(e){if(null!==this._parent)return this._parent._runDatabaseProbe(e);throw new a.d("NotImplemented")}isTable(){return this._parent?.isTable()??!1}_featureFromCache(e){if(void 0!==this._featureCache[e])return this._featureCache[e]}_isInFeatureSet(e){return 2}_getSet(e){throw new a.d("NotImplemented")}async _getFeature(e,t,n){if(this._checkCancelled(n),void 0!==this._featureFromCache(t))return this._featureFromCache(t);if(await this._getFeatures(e,t,this._maxProcessingRate(),n),this._checkCancelled(n),void 0!==this._featureFromCache(t))return this._featureFromCache(t);throw new a.d("MissingFeatures")}async _getFeatureBatch(e,t){this._checkCancelled(t);const n=new l.A([],e,!1,null),r=[];await this._getFeatures(n,-1,e.length,t),this._checkCancelled(t);for(const t of e)void 0!==this._featureFromCache(t)&&r.push(this._featureFromCache(t));return r}async _getFeatures(e,t,n,r){return"success"}_getFilteredSet(e,t,n,r,s){throw new a.d("NotImplemented")}async _refineSetBlock(e,t,n){if(!0===this._checkIfNeedToExpandCandidatePage(e,this._maxQueryRate()))return await this._expandPagedSet(e,this._maxQueryRate(),0,0,n),this._refineSetBlock(e,t,n);this._checkCancelled(n);const r=e._candidates.length;this._refineKnowns(e,t);let a=r-e._candidates.length;if(0===e._candidates.length)return e;if(a>=t)return e;if(await this._refineIfParentKnown(e,t-a,n),this._checkCancelled(n),this._refineKnowns(e,t-a),a=r-e._candidates.length,a<t&&e._candidates.length>0){const r=t-a,s=this._prepareFetchAndRefineSet(e._candidates);return await this._fetchAndRefineFeatures(s,s.length>r?r:e._candidates.length,n),this._checkCancelled(n),this._refineKnowns(e,t-a),e}return e}_fetchAndRefineFeatures(e,t,n){return null}_prepareFetchAndRefineSet(e){const t=[];for(let n=0;n<e.length;n++)this._isPhysicalFeature(e[n])&&t.push(e[n]);return t}_isPhysicalFeature(e){return null===this._parent||this._parent._isPhysicalFeature(e)}_refineKnowns(e,t){let n=0,r=null;const a=[];t=this._maxQueryRate();for(let s=0;s<e._candidates.length&&"GETPAGES"!==e._candidates[s];s++){let i=!1;const l=this._candidateIdTransform(e._candidates[s]);l!==e._candidates[s]&&(i=!0);const o=this._isInFeatureSet(l);if(0===o)!0===i?e._known.includes(l)||(e._known.push(l),n+=1):(e._known.push(e._candidates[s]),n+=1),null===r?r={start:s,end:s}:r.end===s-1?r.end=s:(a.push(r),r={start:s,end:s});else if(1===o)null===r?r={start:s,end:s}:r.end===s-1?r.end=s:(a.push(r),r={start:s,end:s}),n+=1;else if(2===o&&(n+=1,!0===e._ordered))break;if(n>=t)break}null!==r&&a.push(r);for(let t=a.length-1;t>=0;t--)e._candidates.splice(a[t].start,a[t].end-a[t].start+1)}_refineIfParentKnown(e,t,n){const r=new l.A([],[],e._ordered,null);return r._candidates=e._candidates.slice(),this._parent._refineSetBlock(r,t,n)}_candidateIdTransform(e){return this._parent._candidateIdTransform(e)}_checkIfNeedToExpandKnownPage(e,t){if(null===e.pagesDefinition)return!1;let n=0;for(let r=e._lastFetchedIndex;r<e._known.length;r++){if("GETPAGES"===e._known[r])return!0;if(void 0===this._featureCache[e._known[r]]&&(n+=1,n>=t))break}return!1}_checkIfNeedToExpandCandidatePage(e,t){if(null===e.pagesDefinition)return!1;let n=0;for(let r=0;r<e._candidates.length;r++){if("GETPAGES"===e._candidates[r])return!0;if(n+=1,n>=t)break}return!1}async _expandPagedSet(e,t,n,r,s){if(null===this._parent)throw new a.d("NotImplemented");return this._parent._expandPagedSet(e,t,n,r,s)}async _expandPagedSetFeatureSet(e,t,n,r,a){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1]&&(r=1),0===r&&e._candidates.length>0&&"GETPAGES"===e._candidates[e._candidates.length-1]&&(r=2),0===r)return"finished";const s=await this._getPage(e,r,a);return n+s<t?this._expandPagedSet(e,t,n+s,0,a):"success"}async _getPage(e,t,n){const r=1===t?e._known:e._candidates;if(e.pagesDefinition.internal.set.length>e.pagesDefinition.resultOffset||!0===e.pagesDefinition.internal.fullyResolved){r.length=r.length-1;let t=0;for(let n=0;n<e.pagesDefinition.resultRecordCount&&!(e.pagesDefinition.resultOffset+n>=e.pagesDefinition.internal.set.length);n++)r[r.length]=e.pagesDefinition.internal.set[e.pagesDefinition.resultOffset+n],t++;e.pagesDefinition.resultOffset+=t;let n=!1;return!0===e.pagesDefinition.internal.fullyResolved&&e.pagesDefinition.internal.set.length<=e.pagesDefinition.resultOffset&&(n=!0),!1===n&&r.push("GETPAGES"),t}return await this._getPhysicalPage(e,t,n),this._getPage(e,t,n)}_getPhysicalPage(e,t,n){return null}_clonePageDefinition(e){return null===this._parent?null:this._parent._clonePageDefinition(e)}_first(e){return this.iterator(e).next()}first(e){return this._first(e)}async calculateStatistic(e,t,n,r){await this._ensureLoaded();let a=await this._stat(e,t,"",null,null,n,r);return!1===a.calculated&&(a=await this._manualStat(e,t,n,r)),a.result}async _manualStat(e,t,n,r){let a=null;switch(e.toLowerCase()){case"count":return a=await(0,u.U9)(this,r),{calculated:!0,result:a};case"distinct":return a=await(0,u.dM)(this,t,n,r),{calculated:!0,result:a};case"avg":case"mean":return a=await(0,u.i2)(this,t,r),{calculated:!0,result:a};case"stdev":return a=await(0,u.b$)(this,t,r),{calculated:!0,result:a};case"variance":return a=await(0,u.GV)(this,t,r),{calculated:!0,result:a};case"sum":return a=await(0,u.cz)(this,t,r),{calculated:!0,result:a};case"min":return a=await(0,u.jk)(this,t,r),{calculated:!0,result:a};case"max":return a=await(0,u.T9)(this,t,r),{calculated:!0,result:a};default:return{calculated:!0,result:0}}}async _stat(e,t,n,r,a,s,i){const l=await this._parent._stat(e,t,n,r,a,s,i);return!1===l.calculated?null===a&&""===n&&null===r?this._manualStat(e,t,s,i):{calculated:!1}:l}_unionAllGeomSelf(e){const t=this.iterator(this._defaultTracker(e)),n=[];return new Promise((e,r)=>{this._unionShapeInBatches(n,t,e,r)})}_unionAllGeom(e){return new Promise((t,n)=>{const r=this.iterator(this._defaultTracker(e));this._unionShapeInBatches([],r,t,n)})}_unionShapeInBatches(e,t,n,r){t.next().then(a=>{try{null!==a&&null!==a.geometry&&e.push(a.geometry),e.length>30||null===a&&e.length>1?(0,c.C)("union",[e.map(e=>e.toJSON())]).then(s=>{try{null===a?n(s):(e=[(0,_.rS)(s)],this._unionShapeInBatches(e,t,n,r))}catch(e){r(e)}},r):null===a?1===e.length?n(e[0]):n(null):this._unionShapeInBatches(e,t,n,r)}catch(e){r(e)}},r)}iterator(e){return new i(this,e)}intersection(e,t=!1){return g._featuresetFunctions.intersection.bind(this)(e,t)}difference(e,t=!1,n=!0){return g._featuresetFunctions.difference.bind(this)(e,t,n)}symmetricDifference(e,t=!1,n=!0){return g._featuresetFunctions.symmetricDifference.bind(this)(e,t,n)}morphShape(e,t,n="unknown",r=null){return g._featuresetFunctions.morphShape.bind(this)(e,t,n,r)}morphShapeAndAttributes(e,t,n="unknown"){return g._featuresetFunctions.morphShapeAndAttributes.bind(this)(e,t,n)}union(e,t=!1){return g._featuresetFunctions.union.bind(this)(e,t)}intersects(e){return g._featuresetFunctions.intersects.bind(this)(e)}envelopeIntersects(e){return g._featuresetFunctions.envelopeIntersects.bind(this)(e)}contains(e){return g._featuresetFunctions.contains.bind(this)(e)}overlaps(e){return g._featuresetFunctions.overlaps.bind(this)(e)}relate(e,t){return g._featuresetFunctions.relate.bind(this)(e,t)}within(e){return g._featuresetFunctions.within.bind(this)(e)}touches(e){return g._featuresetFunctions.touches.bind(this)(e)}top(e){return g._featuresetFunctions.top.bind(this)(e)}crosses(e){return g._featuresetFunctions.crosses.bind(this)(e)}buffer(e,t,n,r=!0){return g._featuresetFunctions.buffer.bind(this)(e,t,n,r)}filter(e,t=null){return g._featuresetFunctions.filter.bind(this)(e,t)}orderBy(e){return g._featuresetFunctions.orderBy.bind(this)(e)}dissolve(e,t){return g._featuresetFunctions.dissolve.bind(this)(e,t)}groupby(e,t){return g._featuresetFunctions.groupby.bind(this)(e,t)}reduce(e,t=null,n){return new Promise((r,a)=>{this._reduceImpl(this.iterator(this._defaultTracker(n)),e,t,0,r,a,0)})}_reduceImpl(e,t,n,r,a,s,i){try{if(++i>1e3)return void setTimeout(()=>{i=0,this._reduceImpl(e,t,n,r,a,s,i)});e.next().then(l=>{try{if(null===l)a(n);else{const o=t(n,l,r,this);(0,h.$X)(o)?o.then(n=>{this._reduceImpl(e,t,n,r+1,a,s,i)},s):this._reduceImpl(e,t,o,r+1,a,s,i)}}catch(e){s(e)}},s)}catch(e){s(e)}}removeField(e){return g._featuresetFunctions.removeField.bind(this)(e)}addField(e,t,n=null){return g._featuresetFunctions.addField.bind(this)(e,t,n)}async sumArea(e,t,n){const r=this.iterator(n);let a,s=0;for(;null!=(a=await r.next());)null!=a.geometry&&(s+=null!=t?await(0,c.C)("geodeticArea",[a.geometry.toJSON(),e,t]):await(0,c.C)("area",[a.geometry.toJSON(),e]));return s}async sumLength(e,t,n){const r=this.iterator(n);let a,s=0;for(;null!=(a=await r.next());)null!=a.geometry&&(s+=null!=t?await(0,c.C)("geodeticLength",[a.geometry.toJSON(),e,t]):await(0,c.C)("length",[a.geometry.toJSON(),e]));return s}async distinct(e,t=1e3,n=null,r){await this.load();const a=d.A.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return m(a,n),this.calculateStatistic("distinct",a,t,this._defaultTracker(r))}async min(e,t=null,n){await this.load();const r=d.A.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return m(r,t),this.calculateStatistic("min",r,-1,this._defaultTracker(n))}async max(e,t=null,n){await this.load();const r=d.A.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return m(r,t),this.calculateStatistic("max",r,-1,this._defaultTracker(n))}async avg(e,t=null,n){await this.load();const r=d.A.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return m(r,t),this.calculateStatistic("avg",r,-1,this._defaultTracker(n))}async sum(e,t=null,n){await this.load();const r=d.A.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return m(r,t),this.calculateStatistic("sum",r,-1,this._defaultTracker(n))}async stdev(e,t=null,n){await this.load();const r=d.A.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return m(r,t),this.calculateStatistic("stdev",r,-1,this._defaultTracker(n))}async variance(e,t=null,n){await this.load();const r=d.A.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return m(r,t),this.calculateStatistic("variance",r,-1,this._defaultTracker(n))}async count(e){return await this.load(),this.calculateStatistic("count",d.A.create("1",{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),-1,this._defaultTracker(e))}_defaultTracker(e){return e??{aborted:!1}}forEach(e,t){return new Promise((n,r)=>{this._forEachImpl(this.iterator(this._defaultTracker(t)),e,this,n,r,0)})}_forEachImpl(e,t,n,r,a,s){try{if(++s>1e3)return void setTimeout(()=>{s=0,this._forEachImpl(e,t,n,r,a,s)},0);e.next().then(i=>{try{if(null===i)r(n);else{const l=t(i);null==l?this._forEachImpl(e,t,n,r,a,s):(0,h.$X)(l)?l.then(()=>{try{this._forEachImpl(e,t,n,r,a,s)}catch(e){a(e)}},a):this._forEachImpl(e,t,n,r,a,s)}}catch(e){a(e)}},a)}catch(e){a(e)}}convertToJSON(e){const t={layerDefinition:{geometryType:this.geometryType,fields:[]},featureSet:{features:[],geometryType:this.geometryType}};for(let e=0;e<this.fields.length;e++)t.layerDefinition.fields.push((0,o.nE)(this.fields[e]));return this.reduce((e,n)=>{const r={geometry:n.geometry?.toJSON(),attributes:{}};for(const e in n.attributes)r.attributes[e]=n.attributes[e];return t.featureSet.features.push(r),1},0,e).then(()=>t)}castToText(e=!1){return"object, FeatureSet"}queryAttachments(e,t,n,r,a){return this._parent.queryAttachments(e,t,n,r,a)}serviceUrl(){return this._parent.serviceUrl()}subtypeMetaData(){return this.subtypeField&&this.subtypes?{subtypeField:this.subtypeField,subtypes:this.subtypes?this.subtypes.map(e=>({name:e.name,code:e.code})):[]}:this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map(e=>({name:e.name,code:e.id})):[]}:null}relationshipMetaData(){return this._parent.relationshipMetaData()}get gdbVersion(){return this._parent?this._parent.gdbVersion:""}schema(){const e=[];for(const t of this.fields)e.push((0,o.nE)(t));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:void 0===o.yT[this.geometryType]?"esriGeometryNull":o.yT[this.geometryType],fields:e}}async convertToText(e,t){if("schema"===e)return await this._ensureLoaded(),JSON.stringify(this.schema());if("featureset"===e){await this._ensureLoaded();const e=[];await this.reduce((t,n)=>{const r={geometry:n.geometry?n.geometry.toJSON():null,attributes:n.attributes};return null!==r.geometry&&r.geometry.spatialReference&&delete r.geometry.spatialReference,e.push(r),1},0,t);const n=this.schema();return n.features=e,n.spatialReference=this.spatialReference.toJSON(),JSON.stringify(n)}return this.castToText()}getFeatureByObjectId(e,t){return this._parent.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return null!==this._parent?this._parent.getRootFeatureSet():this}getDataSourceFeatureSet(){return null!==this._parent?this._parent.getDataSourceFeatureSet():this}castAsJson(e=null){return"keeptype"===e?.featureset?this:"none"===e?.featureset?null:{type:"FeatureSet"}}async castAsJsonAsync(e=null,t=null){if("keeptype"===t?.featureset)return this;if("schema"===t?.featureset)return await this._ensureLoaded(),JSON.parse(JSON.stringify(this.schema()));if("none"===t?.featureset)return null;await this._ensureLoaded();const n=[];await this.reduce((e,r)=>{const a={geometry:r.geometry?!0===t?.keepGeometryType?r.geometry:r.geometry.toJSON():null,attributes:r.attributes};return null!==a.geometry&&a.geometry.spatialReference&&!0!==t?.keepGeometryType&&delete a.geometry.spatialReference,n.push(a),1},0,e);const r=this.schema();return r.features=n,r.spatialReference=!0===t?.keepGeometryType?this.spatialReference:this.spatialReference?.toJSON(),r}fieldTimeZone(e){return this.getFieldsIndex().getTimeZone(e)}get preferredTimeZone(){return this._parent?.preferredTimeZone??null}get dateFieldsTimeZone(){return this._parent?.dateFieldsTimeZone??null}get dateFieldsTimeZoneDefaultUTC(){if(this.datesInUnknownTimezone)return"unknown";const e=this.dateFieldsTimeZone??"UTC";return""===e?"UTC":e}get datesInUnknownTimezone(){return this._parent.datesInUnknownTimezone}get editFieldsInfo(){return this._parent?.editFieldsInfo??null}get timeInfo(){return this._parent?.timeInfo??null}set featureSetInfo(e){this.fsetInfo=e}async getFeatureSetInfo(){return this.fsetInfo??await(this._parent?.getFeatureSetInfo())??null}}function m(e,t){if(null!==t){const n={};for(const e in t)n[e.toLowerCase()]=t[e];e.parameters=n}}},23732:(e,t,n)=>{n.d(t,{A:()=>r});class r{static{this.applicationCache=null}constructor(){this._databaseTypeMetaData={},this._layerInfo={}}clearDatabaseType(e){void 0===this._databaseTypeMetaData[e]&&delete this._databaseTypeMetaData[e]}getDatabaseType(e){return"MUSTBESET"===e||void 0===this._databaseTypeMetaData[e]?null:this._databaseTypeMetaData[e]}setDatabaseType(e,t){this._databaseTypeMetaData[e]=t}getLayerInfo(e){return void 0===this._layerInfo[e]?null:this._layerInfo[e]}setLayerInfo(e,t){this._layerInfo[e]=t}clearLayerInfo(e){void 0!==this._layerInfo[e]&&delete this._layerInfo[e]}}},50145:(e,t,n)=>{n.d(t,{Dp:()=>c,GV:()=>_,T9:()=>d,U9:()=>m,b$:()=>f,cz:()=>g,dM:()=>S,i2:()=>p,jk:()=>h});var r=n(87449),a=(n(33325),n(80609)),s=n(44729),i=n(55612),l=n(15032);function o(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}function u(e){const t=o(e);let n=0;for(let r=0;r<e.length;r++)n+=(t-e[r])**2;return n/(e.length-1)}function c(e){switch(e.toLowerCase()){case"distinct":return"distinct";case"avg":case"mean":return"avg";case"min":return"min";case"sum":return"sum";case"max":return"max";case"stdev":case"stddev":return"stddev";case"var":case"variance":return"var";case"count":return"count"}return""}async function h(e,t,n){const r=await y(e,t,n);return 0===r.length?null:Math.min.apply(Math,r)}async function d(e,t,n){const r=await y(e,t,n);return 0===r.length?null:Math.max.apply(Math,r)}async function p(e,t,n){let r="";t&&!(0,a.DA)(t)&&(r=(0,a.IY)(t,e.fields));const s=await y(e,t,n);if(0===s.length)return null;const i=o(s);return null===i?i:"integer"===r?function(e){return e=+e,isFinite(e)?e-e%1||(e<0?-0:0===e?e:0):e}(i):i}async function _(e,t,n){const r=await y(e,t,n);return 0===r.length?null:u(r)}async function f(e,t,n){const r=await y(e,t,n);return 0===r.length?null:Math.sqrt(u(r))}async function g(e,t,n){const r=await y(e,t,n);return 0===r.length?null:function(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t}(r)}async function m(e,t){return e.iterator(t).count()}async function y(e,t,n){const a=e.iterator(n),o=[],u={ticker:0};let c=await a.next();for(;null!==c;){if(u.ticker++,n.aborted)throw new r.d("Cancelled");u.ticker%100==0&&(u.ticker=0,await new Promise(e=>{setTimeout(e,0)}));const e=t?.calculateValue(c);null===e||(o[o.length]=e instanceof s.n||e instanceof l.k?e.toNumber():e instanceof i.g?e.toMilliseconds():e),c=await a.next()}return o}async function S(e,t,n=1e3,a=null){const o=e.iterator(a),u=[],c={},h={ticker:0};let d=await o.next();for(;null!==d;){if(h.ticker++,a?.aborted)throw new r.d("Cancelled");h.ticker%100==0&&(h.ticker=0,await new Promise(e=>{setTimeout(e,0)}));const e=t?.calculateValue(d);let p=e;if(e instanceof s.n?p="!!DATEONLY!!-"+e.toString():e instanceof i.g?p="!!TSOFFSETONLY!!-"+e.toString():e instanceof l.k?p="!!TIMEONLY!!-"+e.toString():e instanceof Date&&(p="!!DATE!!-"+e.toString()),null!=e&&void 0===c[p]&&(u.push(e),c[p]=1),u.length>=n&&-1!==n)return u;d=await o.next()}return u}},54784:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(78502),a=n(85978),s=n(87449),i=n(11221),l=n(89169),o=n(71163);class u extends i.A{constructor(e){super(e),this._relation="",this._relationString="",this.declaredClass="esri.arcade.featureset.actions.SpatialFilter",this._relationString=e.relationString,this._parent=e.parentfeatureset,this._maxProcessing=40,this._relation=e.relation,this._relationGeom=e.relationGeom}async _getSet(e){if(null===this._wset){await this._ensureLoaded();const t=await this._parent._getFilteredSet("esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,null,null,e);return this._checkCancelled(e),this._wset=new l.A(t._candidates.slice(),t._known.slice(),t._ordered,this._clonePageDefinition(t.pagesDefinition)),this._wset}return this._wset}_isInFeatureSet(e){let t=this._parent._isInFeatureSet(e);return 1===t?t:(t=this._idstates[e],void 0===t?2:t)}_getFeature(e,t,n){return this._parent._getFeature(e,t,n)}_getFeatures(e,t,n,r){return this._parent._getFeatures(e,t,n,r)}_featureFromCache(e){return this._parent._featureFromCache(e)}async executeSpatialRelationTest(e){if(null==e.geometry)return!1;switch(this._relation){case"esriSpatialRelEnvelopeIntersects":{const t=(0,r.Yc)(this._relationGeom),n=(0,r.Yc)(e.geometry);return null!=t&&null!=n&&(0,o.C)("intersects",[t.toJSON(),n.toJSON()])}case"esriSpatialRelIntersects":return(0,o.C)("intersects",[this._relationGeom.toJSON(),e.geometry.toJSON()]);case"esriSpatialRelContains":return(0,o.C)("contains",[this._relationGeom.toJSON(),e.geometry.toJSON()]);case"esriSpatialRelOverlaps":return(0,o.C)("overlaps",[this._relationGeom.toJSON(),e.geometry.toJSON()]);case"esriSpatialRelWithin":return(0,o.C)("within",[this._relationGeom.toJSON(),e.geometry.toJSON()]);case"esriSpatialRelTouches":return(0,o.C)("touches",[this._relationGeom.toJSON(),e.geometry.toJSON()]);case"esriSpatialRelCrosses":return(0,o.C)("crosses",[this._relationGeom.toJSON(),e.geometry.toJSON()]);case"esriSpatialRelRelation":return(0,o.C)("relate",[this._relationGeom.toJSON(),e.geometry.toJSON(),this._relationString??""])}}async _fetchAndRefineFeatures(e,t,n){const r=new l.A([],e,!1,null),a=Math.min(t,e.length);await(this._parent?._getFeatures(r,-1,a,n)),this._checkCancelled(n);const s=[];for(let t=0;t<a;t++){const n=this._parent._featureFromCache(e[t]);s.push(await this.executeSpatialRelationTest(n))}for(let n=0;n<t;n++)!0===s[n]?this._idstates[e[n]]=0:this._idstates[e[n]]=1;return"success"}async _getFilteredSet(e,t,n,r,a){await this._ensureLoaded();const s=await this._parent._getFilteredSet("esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,n,r,a);let i;return this._checkCancelled(a),i=null!==t?new l.A(s._candidates.slice().concat(s._known.slice()),[],s._ordered,this._clonePageDefinition(s.pagesDefinition)):new l.A(s._candidates.slice(),s._known.slice(),s._ordered,this._clonePageDefinition(s.pagesDefinition)),i}async _stat(e,t,n,r,a,s,i){if(""!==n)return{calculated:!1};const l=await this._parent._stat(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,a,s,i);return!1===l.calculated?null===a&&""===n&&null===r?this._manualStat(e,t,s,i):{calculated:!1}:l}async _canDoAggregates(e,t,n,r,a){return""===n&&null===r&&null!==this._parent&&this._parent._canDoAggregates(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,a)}async _getAggregatePagesDataSourceDefinition(e,t,n,r,a,i,l){if(null===this._parent)throw new s.d("NeverReach");return this._parent._getAggregatePagesDataSourceDefinition(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,a,i,l)}static registerAction(){i.A._featuresetFunctions.intersects=function(e){return null==e?new a.A({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelIntersects",relationGeom:e})},i.A._featuresetFunctions.envelopeIntersects=function(e){return null==e?new a.A({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelEnvelopeIntersects",relationGeom:e})},i.A._featuresetFunctions.contains=function(e){return null==e?new a.A({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelContains",relationGeom:e})},i.A._featuresetFunctions.overlaps=function(e){return null==e?new a.A({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelOverlaps",relationGeom:e})},i.A._featuresetFunctions.within=function(e){return null==e?new a.A({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelWithin",relationGeom:e})},i.A._featuresetFunctions.touches=function(e){return null==e?new a.A({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelTouches",relationGeom:e})},i.A._featuresetFunctions.crosses=function(e){return null==e?new a.A({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelCrosses",relationGeom:e})},i.A._featuresetFunctions.relate=function(e,t){return null==e?new a.A({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelRelation",relationGeom:e,relationString:t})}}getFieldsIndex(){return this._parent.getFieldsIndex()}}},71163:(e,t,n)=>{n.d(t,{C:()=>o});var r=n(29953);let a,s,i=!1;function l(){return a??=(0,r.ho)("arcadeGeometryOperatorsWorker").then(e=>{s=e,i=!0,a=void 0})}async function o(e,t){return i?s.apply("invokeGeometryOp",[e,t]):(await l(),o(e,t))}},80609:(e,t,n)=>{n.d(t,{C6:()=>w,DA:()=>E,F1:()=>y,F6:()=>f,IY:()=>T,Ju:()=>A,Kb:()=>p,Mi:()=>c,Nf:()=>m,R8:()=>g,YY:()=>u,bD:()=>h,bm:()=>S,kg:()=>d,oj:()=>R});var r=n(66131),a=n(33325),s=n(1262),i=n(15032),l=n(88368),o=n(96285);function u(e,t){return _(e?.parseTree,t,e?.parameters)}function c(e,t,n){return _(e,t,n)}function h(e,t,n,r){const a=_(e.parseTree,0,e.parameters,t,n);return l.A.create(a,{fieldsIndex:r,timeZone:e.timeZone,currentUser:e.currentUser})}function d(e,t,n="AND"){return l.A.create("(("+u(e,0)+")"+n+"("+u(t,0)+"))",{fieldsIndex:e.fieldsIndex,timeZone:e.timeZone,currentUser:e.currentUser})}function p(e){return!0===e.delimited?`"${e.column.split('"').join('""')}"`:e.column}function _(e,t,n,r=null,i=null){let l,o,u,c;switch(e.type){case"interval":return R(_(e.value,t,n,r,i),e.qualifier,e.op);case"case-expression":{let a=" CASE ";"simple"===e.format&&(a+=_(e.operand,t,n,r,i));for(let s=0;s<e.clauses.length;s++)a+=" WHEN "+_(e.clauses[s].operand,t,n,r,i)+" THEN "+_(e.clauses[s].value,t,n,r,i);return null!==e.else&&(a+=" ELSE "+_(e.else,t,n,r,i)),a+=" END ",a}case"parameter":{const r=n[e.value.toLowerCase()];if("string"==typeof r)return"'"+n[e.value.toLowerCase()].toString().replaceAll("'","''")+"'";if((0,a.$P)(r))return S(r,t);if((0,a.Lk)(r))return S(r,t);if((0,a.eg)(r))return y(r,t);if((0,a.rX)(r))return g(r,t);if((0,a.f0)(r))return m(r,t);if(Array.isArray(r)){const e=[];for(let n=0;n<r.length;n++)"string"==typeof r[n]?e.push("'"+r[n].toString().replaceAll("'","''")+"'"):(0,a.$P)(r[n])||(0,a.Lk)(r[n])?e.push(S(r[n],t)):(0,a.eg)(r[n])?e.push(y(r[n],t)):(0,a.rX)(r[n])?e.push(g(r[n],t)):(0,a.f0)(r[n])?e.push(m(r[n],t)):e.push(r[n].toString());return e}return r.toString()}case"expression-list":o=[];for(const a of e.value)o.push(_(a,t,n,r,i));return o;case"unary-expression":return" ( NOT "+_(e.expr,t,n,r,i)+" ) ";case"binary-expression":switch(e.operator){case"AND":return" ("+_(e.left,t,n,r,i)+" AND "+_(e.right,t,n,r,i)+") ";case"OR":return" ("+_(e.left,t,n,r,i)+" OR "+_(e.right,t,n,r,i)+") ";case"IS":if("null"!==e.right.type)throw new s.L("UnsupportedIsRhs");return" ("+_(e.left,t,n,r,i)+" IS NULL )";case"ISNOT":if("null"!==e.right.type)throw new s.L("UnsupportedIsRhs");return" ("+_(e.left,t,n,r,i)+" IS NOT NULL )";case"IN":return l=[],"expression-list"===e.right.type?(l=_(e.right,t,n,r,i)," ("+_(e.left,t,n,r,i)+" IN ("+l.join(",")+")) "):(c=_(e.right,t,n,r,i),Array.isArray(c)?" ("+_(e.left,t,n,r,i)+" IN ("+c.join(",")+")) ":" ("+_(e.left,t,n,r,i)+" IN ("+c+")) ");case"NOT IN":return l=[],"expression-list"===e.right.type?(l=_(e.right,t,n,r,i)," ("+_(e.left,t,n,r,i)+" NOT IN ("+l.join(",")+")) "):(c=_(e.right,t,n,r,i),Array.isArray(c)?" ("+_(e.left,t,n,r,i)+" NOT IN ("+c.join(",")+")) ":" ("+_(e.left,t,n,r,i)+" NOT IN ("+c+")) ");case"BETWEEN":return u=_(e.right,t,n,r,i)," ("+_(e.left,t,n,r,i)+" BETWEEN "+u[0]+" AND "+u[1]+" ) ";case"NOTBETWEEN":return u=_(e.right,t,n,r,i)," ("+_(e.left,t,n,r,i)+" NOT BETWEEN "+u[0]+" AND "+u[1]+" ) ";case"LIKE":return""!==e.escape?" ("+_(e.left,t,n,r,i)+" LIKE "+_(e.right,t,n,r,i)+" ESCAPE '"+e.escape+"') ":" ("+_(e.left,t,n,r,i)+" LIKE "+_(e.right,t,n,r,i)+") ";case"NOT LIKE":return""!==e.escape?" ("+_(e.left,t,n,r,i)+" NOT LIKE "+_(e.right,t,n,r,i)+" ESCAPE '"+e.escape+"') ":" ("+_(e.left,t,n,r,i)+" NOT LIKE "+_(e.right,t,n,r,i)+") ";case"<>":case"<":case">":case">=":case"<=":case"=":case"*":case"-":case"+":case"/":return" ("+_(e.left,t,n,r,i)+" "+e.operator+" "+_(e.right,t,n,r,i)+") ";case"||":return" ("+_(e.left,t,n,r,i)+" "+(2===t?"+":e.operator)+" "+_(e.right,t,n,r,i)+") "}throw new s.L("UnsupportedOperator",{operator:e.operator});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 w(e.mode,t);case"current-user":return"CURRENT_USER";case"column-reference":return r&&r.toLowerCase()===e.column.toLowerCase()?"("+i+")":p(e);case"data-type":return e.value;case"function":{const a=_(e.args,t,n,r,i);return f(e.name,a,t)}}throw new s.L("UnsupportedSyntax",{node:e.type})}function f(e,t,n){switch(e.toLowerCase().trim()){case"cos":case"sin":case"tan":case"cosh":case"tanh":case"sinh":case"acos":case"asin":case"atan":case"floor":case"log10":case"log":case"abs":if(1!==t.length)throw new s.L("InvalidFunctionParameters",{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]})`;case"ceiling":case"ceil":if(1!==t.length)throw new s.L("InvalidFunctionParameters",{function:"ceiling"});return"CEILING("+t[0]+")";case"mod":case"power":case"nullif":if(2!==t.length)throw new s.L("InvalidFunctionParameters",{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]},${t[1]})`;case"round":if(2===t.length)return"ROUND("+t[0]+","+t[1]+")";if(1===t.length)return"ROUND("+t[0]+")";throw new s.L("InvalidFunctionParameters",{function:"round"});case"truncate":if(t.length<1||t.length>2)throw new s.L("InvalidFunctionParameters",{function:"truncate"});return 2===n?"ROUND("+t[0]+(1===t.length?"0":","+t[1])+",1)":"TRUNCATE("+t[0]+(1===t.length?")":","+t[1]+")");case"char_length":case"len":if(1!==t.length)throw new s.L("InvalidFunctionParameters",{function:"char_length"});switch(n){case 2:return"LEN("+t[0]+")";case 3:return"LENGTH("+t[0]+")";default:return"CHAR_LENGTH("+t[0]+")"}case"coalesce":case"concat":{if(t.length<1)throw new s.L("InvalidFunctionParameters",{function:e.toLowerCase()});let n=e.toUpperCase().trim()+"(";for(let e=0;e<t.length;e++)0!==e&&(n+=","),n+=t[e];return n+=")",n}case"lower":case"lcase":if(1!==t.length)throw new s.L("InvalidFunctionParameters",{function:"lower"});return"LOWER("+t[0]+")";case"upper":case"ucase":if(1!==t.length)throw new s.L("InvalidFunctionParameters",{function:"upper"});return"UPPER("+t[0]+")";case"substring":{let e="";switch(n){case 3:return e="SUBSTR("+t[0]+","+t[1],3===t.length&&(e+=","+t[2]),e+=")",e;case 2:return e=3===t.length?"SUBSTRING("+t[0]+","+t[1]+","+t[2]+")":"SUBSTRING("+t[0]+", "+t[1]+", LEN("+t[0]+") - "+t[1]+")",e;default:return e="SUBSTRING("+t[0]+" FROM "+t[1],3===t.length&&(e+=" FOR "+t[2]),e+=")",e}}case"extract":return"EXTRACT("+t[0].replaceAll("'","")+" FROM "+t[1]+")";case"cast":{let e="";switch(n){case 3:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case 4:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE PRECISION";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case 2:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="DATETIME";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;default:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`}}}throw new s.L("InvalidFunctionParameters",{function:e})}function g(e,t){const n=e.toDateTime(),r=0===n.hour&&0===n.minute&&0===n.second&&0===n.millisecond;switch(t){case 6:case 0:case 1:return r?`date '${n.toFormat("yyyy-LL-dd")}'`:`timestamp '${n.toFormat("yyyy-LL-dd HH:mm:ss")}'`;case 3:return r?`TO_DATE('${n.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')`:`TO_DATE('${n.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;case 2:return`'${n.toFormat(r?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;case 5:return`#${n.toFormat(r?"LL-dd-yyyy":"LL-dd-yyyy HH:mm:ss")}#`;case 4:return`TIMESTAMP '${n.toFormat(r?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;default:return`timestamp '${n.toFormat("yyyy-LL-dd HH:mm:ss")}'`}}function m(e,t){switch(t){case 6:case 0:case 1:default:return e.toSQLWithKeyword();case 3:return`TO_DATE('${e.toFormat("Y-MM-DD")}'`;case 2:return`'${e.toFormat("Y-MM-DD")}'`;case 5:return`#${e.toFormat("Y-MM-DD")}#`;case 4:return`TIMESTAMP '${e.toFormat("Y-MM-DD")}'`}}function y(e,t){switch(e instanceof i.k&&(e=e.toStorageString()),t){case 3:return`TO_DATE('${e}', 'HH24:MI:SS')`;case 2:return`'${e}'`;default:return`time '${e}'`}}function S(e,t){return g(r.lY.dateTimeToArcadeDate((0,a.Lk)(e)?e:o.c9.fromJSDate(e)),t)}function w(e,t){switch(t){case 6:case 0:case 1:case 3:case 5:default:return"date"===e?"CURRENT_DATE":"time"===e?"CURRENT_TIME":"CURRENT_TIMESTAMP";case 2:return"date"===e?"CAST(GETDATE() AS DATE)":"time"===e?"CAST(GETDATE() AS TIME)":"GETDATE()";case 4:return"date"===e?"CURRENT_DATE":"time"===e?"LOCALTIME":"CURRENT_TIMESTAMP"}}function T(e,t,n={}){const r={},a={},s={esriFieldTypeSmallInteger:"integer",esriFieldTypeInteger:"integer",esriFieldTypeBigInteger:"integer",esriFieldTypeSingle:"double",esriFieldTypeDouble:"double",esriFieldTypeString:"string",esriFieldTypeTimeOnly:"time-only",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimestampOffset:"timestamp-offset",esriFieldTypeDate:"date",esriFieldTypeOID:"integer",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"guid",oid:"integer",long:"integer","small-integer":"integer",integer:"integer","big-integer":"integer",single:"double","time-only":"time-only","date-only":"date-only","timestamp-offset":"timestemp-offset",double:"double",date:"date",guid:"guid","global-id":"guid",string:"string"};for(const e of t){const t=e.type?s[e.type]:void 0;r[e.name.toLowerCase()]=void 0===t?"":t}for(const e in n){const t=s[n[e]];a[e.toLowerCase()]=void 0===t?"":t}switch(I(r,e.parseTree,e.parameters,a)){case"double":return"double";case"integer":return"integer";case"date":return"date";case"date-only":return"date-only";case"time-only":return"time-only";case"timestamp-offset":return"timestamp-offset";case"string":return"string";case"global-id":case"guid":return"guid"}return""}function I(e,t,n,r){let i;switch(t.type){case"interval":return"integer";case"case-expression":{const a=[];if("simple"===t.format){for(let s=0;s<t.clauses.length;s++)a.push(I(e,t.clauses[s].value,n,r));null!==t.else&&a.push(I(e,t.else,n,r))}else{for(let s=0;s<t.clauses.length;s++)a.push(I(e,t.clauses[s].value,n,r));null!==t.else&&a.push(I(e,t.else,n,r))}return b(a)}case"parameter":{const e=r[t.value.toLowerCase()];if(void 0===e&&n){const e=n[t.value.toLowerCase()];if(void 0===e)return"";if(null===e)return"";if("string"==typeof e||e instanceof String)return"string";if("boolean"==typeof e)return"boolean";if((0,a.$P)(e))return"date";if((0,a.rX)(e))return"date";if((0,a.f0)(e))return"date-only";if((0,a.eg)(e))return"time-only";if("number"==typeof e)return e%1==0?"integer":"double"}return void 0===e?"":e}case"expression-list":{const a=[];for(const s of t.value)a.push(I(e,s,n,r));return a}case"unary-expression":return"boolean";case"binary-expression":switch(t.operator){case"AND":case"OR":case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":case"LIKE":case"NOT LIKE":case"<>":case"<":case">":case">=":case"<=":case"=":return"boolean";case"IS":case"ISNOT":if("null"!==t.right.type)throw new s.L("UnsupportedIsRhs");return"boolean";case"*":case"-":case"+":case"/":return b([I(e,t.left,n,r),I(e,t.right,n,r)]);case"||":return"string";default:throw new s.L("UnsupportedOperator",{operator:t.operator})}case"null":return"";case"boolean":return"boolean";case"string":return"string";case"number":return null===t.value?"":t.value%1==0?"integer":"double";case"date":return"date";case"timestamp":return t.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"current-time":return"time"===t.mode?"time-only":"date";case"current-user":return"string";case"column-reference":{const n=e[t.column.toLowerCase()];return void 0===n?"":n}case"function":switch(t.name.toLowerCase()){case"cast":switch(t.args?.value[1]?.value.type??""){case"integer":case"smallint":return"integer";case"real":case"float":return"double";case"date":case"timestamp":return!0===t.args?.value[1]?.value?.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"varchar":return"string";default:return""}case"position":case"extract":case"char_length":case"mod":return"integer";case"round":if(i=I(e,t.args,n,r),Array.isArray(i)){if(i.length<=0)return"double";i=i[0]}return i;case"sign":return"integer";case"ceiling":case"floor":case"abs":return i=I(e,t.args,n,r),Array.isArray(i)&&(i=b(i)),"integer"===i||"double"===i?i:"double";case"area":case"length":case"log":case"log10":case"sin":case"cos":case"tan":case"asin":case"acos":case"atan":case"cosh":case"sinh":case"tanh":case"power":return"double";case"substring":case"trim":case"concat":case"lower":case"upper":return"string";case"truncate":return"double";case"nullif":case"coalesce":return i=I(e,t.args,n,r),Array.isArray(i)?i.length>0?i[0]:"":i}return""}throw new s.L("UnsupportedSyntax",{node:t.type})}const F={boolean:1,string:2,integer:3,double:4,date:5};function b(e){if(e){let t="";for(const n of e)""!==n&&(t=""===t||F[t]<F[n]?n:t);return t}return""}function A(e,t){return D(e.parseTree,t)}function E(e){return"column-reference"===e?.parseTree.type}function D(e,t){if(null==e)return!1;switch(e.type){case"when-clause":return D(e.operand,t)||D(e.value,t);case"case-expression":for(const n of e.clauses)if(D(n,t))return!0;return!("simple"!==e.format||!D(e.operand,t))||!(null===e.else||!D(e.else,t));case"parameter":case"null":case"boolean":case"date":case"timestamp":case"time":case"string":case"number":return!1;case"expression-list":for(const n of e.value)if(D(n,t))return!0;return!1;case"unary-expression":return D(e.expr,t);case"binary-expression":return D(e.left,t)||D(e.right,t);case"column-reference":return t.toLowerCase()===e.column.toLowerCase();case"function":return D(e.args,t)}return!1}function C(e){let t="";return t+=e.period.toUpperCase(),t}function R(e,t,n){let r="";return r="interval-period"===t.type?C(t):C(t.start)+" TO "+C(t.end),"INTERVAL "+n+" "+e+" "+r}},85978:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(87449),a=n(11221),s=n(89169);class i extends a.A{constructor(e){super(e),this.declaredClass="esri.layers.featureset.sources.Empty",this._maxProcessing=1e3,this._wset=new s.A([],[],!1,null),this._parent=e.parentfeatureset,this._databaseType=0}async _getSet(){return this._wset}optimisePagingFeatureQueries(){}_isInFeatureSet(){return 1}async _getFeature(){throw new r.d("NeverReach")}async queryAttachments(){return[]}async _getFeatures(){return"success"}_featureFromCache(){return null}async _fetchAndRefineFeatures(){throw new r.d("NeverReach")}async _getFilteredSet(){return new s.A([],[],!1,null)}_stat(e,t,n,r,a,s,i){return this._manualStat(e,t,s,i)}async _canDoAggregates(){return!1}}},87449:(e,t,n)=>{n.d(t,{d:()=>s});var r=n(799);const a={Cancelled:"Cancelled",InvalidStatResponse:"Invalid statistics response from service",InvalidRequest:"Invalid request",RequestFailed:"Request failed - {reason}",MissingFeatures:"Missing features",AggregationFieldNotFound:"Aggregation field not found",DataElementsNotFound:"Data elements not found on service",NeverReach:"Encountered unreachable logic",NotImplemented:"Not implemented"};class s extends Error{constructor(e,t){super((0,r.HC)(a[e],t)),this.declaredRootClass="esri.arcade.featureset.support.featureseterror",Error.captureStackTrace&&Error.captureStackTrace(this,s)}}},89169:(e,t,n)=>{n.d(t,{A:()=>r});class r{constructor(e,t,n,r){this._lastFetchedIndex=0,this._ordered=!1,this.pagesDefinition=null,this._candidates=e,this._known=t,this._ordered=n,this.pagesDefinition=r}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1882],{513:(t,n,e)=>{e.d(n,{KP:()=>a,X0:()=>h,fM:()=>c,mq:()=>u,zW:()=>l});var r=e(19419),i=e(59803),s=e(15507);class a{constructor(t,n,e,r,i,s){this.cx=t,this.cy=n,this.radius=e,this.thetaStart=r,this.thetaEnd=i,this.isInvalid=s}get startPoint(){const{cx:t,cy:n,radius:e,thetaStart:r}=this;return[t+e*Math.cos(r),n+e*Math.sin(r)]}get endPoint(){const{cx:t,cy:n,radius:e,thetaEnd:r}=this;return[t+e*Math.cos(r),n+e*Math.sin(r)]}}function o(t,n){const{cx:e,cy:r,radius:i}=t;return[e+i*Math.cos(n),r+i*Math.sin(n)]}function u(t,n){if(t.isInvalid)return(0,s.RS)([0,0],t.startPoint,t.endPoint,n);const{thetaStart:e,thetaEnd:r}=t;return o(t,e*(1-n)+r*n)}function c(t,n){if(t.isInvalid)return(0,i.T)(t.startPoint,t.endPoint,n);const{cx:e,cy:r,thetaStart:a,thetaEnd:u}=t,[c,h]=n,l=(0,s.Pf)((0,s.yN)(a,u),Math.atan2(h-r,c-e)),f=o(t,l);return{t:(l-a)/(u-a),curvePoint:f,distance:Math.sqrt((0,s.kb)(n,f))}}function h(t,n){if(n.isInvalid)return(0,r.tK)(t,n.startPoint),(0,r.tK)(t,n.endPoint),t;const{cx:e,cy:i,radius:a,thetaStart:u,thetaEnd:c}=n;(0,r.tK)(t,o(n,u)),(0,r.tK)(t,o(n,c));const h=(0,s.yN)(u,c),l=Math.PI/2;let f=0;for(const n of[[e+a,i],[e,i+a],[e-a,i],[e,i-a]])f=(0,s.Cp)(h,f),f>h.min&&f<h.max&&(0,r.tK)(t,n),f+=l;return t}function l(t){if(t.isInvalid)return 2*t.radius;const{radius:n,thetaStart:e,thetaEnd:r}=t;return n*Math.abs(r-e)}},4305:(t,n,e)=>{e.d(n,{jK:()=>h,lM:()=>f,m_:()=>l,ty:()=>m});var r=e(34727),i=e(19419),s=e(15507);const a=[0,0];function o(t){const n=1-t,e=n*n,r=t*t;return[e*n,3*t*e,3*r*n,r*t]}function u(t,n,e,r,i){const[s,a,u,c]=o(i);return[t[0]*s+n[0]*a+e[0]*u+r[0]*c,t[1]*s+n[1]*a+e[1]*u+r[1]*c]}function c(t,n,e,r,i){const[s,a,u,c]=o(i);return t*s+n*a+e*u+r*c}function h(t,n,e){const r=t,[i,o,u]=n.b,c=(0,s.RS)([0,0],r,o,e),h=(0,s.RS)(a,o,u,e),l=(0,s.RS)([0,0],u,i,e),f=(0,s.RS)([0,0],c,h,e),p=(0,s.RS)([0,0],h,l,e);return[{b:[(0,s.RS)([],f,p,e),c,f]},{b:[[...i],p,l]}]}function l(t,n,e){const i=t,[a,o,c]=n.b,h=(0,s.R)(e,[.1,.5,.9],t=>{const n=1-t,[e,r]=u(i,o,c,a,t);return[e,r,3*n*n*(o[0]-i[0])+6*n*t*(c[0]-o[0])+3*t*t*(a[0]-c[0]),3*n*n*(o[1]-i[1])+6*n*t*(c[1]-o[1])+3*t*t*(a[1]-c[1]),6*n*(c[0]-2*o[0]+i[0])+6*t*(a[0]-2*c[0]+o[0]),6*n*(c[1]-2*o[1]+i[1])+6*t*(a[1]-2*c[1]+o[1])]}).map(t=>Math.min(1,Math.max(0,t)));h.push(0,1);let l=1/0;const f=h.map(t=>{const n=u(i,o,c,a,t),[r,s]=n,h=e[0]-r,f=e[1]-s,p=Math.sqrt(h*h+f*f);return l=Math.min(p,l),{t,curvePoint:n,distance:p}}),p=[];for(const t of f){const{t:n,distance:e}=t;(0,r.b6)(e,l)&&!p.some(({t})=>(0,r.Sp)(t,n))&&p.push(t)}return p}function f(t,n,e){const r=n,[s,a,o]=e.b;if((0,i.tK)(t,r),(0,i.tK)(t,s),(0,i.Rj)(t,a[0],a[1])&&(0,i.Rj)(t,o[0],o[1]))return t;for(const n of p(r[0],a[0],o[0],s[0]))n>0&&n<1&&(0,i.nw)(t,c(r[0],a[0],o[0],s[0],n));for(const n of p(r[1],a[1],o[1],s[1]))n>0&&n<1&&(0,i.IO)(t,c(r[1],a[1],o[1],s[1],n));return t}function p(t,n,e,r){const i=3*(3*(n-e)-t+r),s=6*(t-2*n+e),a=3*(n-t);if(0===i)return 0!==s?[-a/s]:[];const o=Math.sqrt(s*s-4*i*a);return[(-s+o)/(2*i),(-s-o)/(2*i)]}function m(t,n,e){let r=0,i=[n];for(let n=0;n<16;n++){let n=t;const a=[];for(const t of i)a.push(...h(n,t,.5)),n=t.b[0];i=a,n=t,r=0;let o=0;for(const t of i){const[e,i,a]=t.b,u=Math.sqrt((0,s.kb)(n,e));r+=(u+(Math.sqrt((0,s.kb)(n,i))+Math.sqrt((0,s.kb)(i,a))+Math.sqrt((0,s.kb)(a,e))))/2,o+=u,n=e}if(r-o<e)return r}return r}},6606:(t,n,e)=>{e.d(n,{Rg:()=>x,LJ:()=>P,z8:()=>v,B$:()=>b,Pj:()=>A,Yz:()=>I});var r=e(19419),i=e(4305),s=e(513),a=e(50954),o=e(52006),u=e(49663),c=e(46068);function h(t,n,e){if((0,o.Xq)(e))return(0,r.tK)(t,n),(0,r.tK)(t,e),t;if((0,o.n1)(e))return(0,i.lM)(t,n,e);if((0,o.aO)(e)){const r=(0,a.pM)(n,e);return(0,s.X0)(t,r)}if((0,o.DA)(e)){const r=(0,u.i)(n,e);return(0,s.X0)(t,r)}return(0,c.DL)(t,n,e)}function l(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function f(t){return void 0!==t.points}function p(t){return void 0!==t.x&&void 0!==t.y}function m(t){return void 0!==t.paths}function g(t){return void 0!==t.rings}function M(t){return function(n,e){return null==n?e:null==e?n:t(n,e)}}const y=M(Math.min),d=M(Math.max);function x(t,n){return m(n)?I(t,n.curvePaths??n.paths,!1,!1)??t:g(n)?I(t,n.curveRings??n.rings,!1,!1)??t:f(n)?A(t,n.points,!1,!1,!1,!1):l(n)?R(t,n):(p(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.x,t[3]=n.y),t)}function v(t){let n,e,i,s;for(t.reset(),n=i=1/0,e=s=-1/0;t.nextPath();){const r=b(t);n=Math.min(r[0],n),i=Math.min(r[1],i),e=Math.max(r[2],e),s=Math.max(r[3],s)}return(0,r.vt)([n,i,e,s])}function b(t){let n,e,i,s;for(n=i=1/0,e=s=-1/0;t.nextPoint();)n=Math.min(t.x,n),i=Math.min(t.y,i),e=Math.max(t.x,e),s=Math.max(t.y,s);return(0,r.vt)([n,i,e,s])}function P(t,n){return m(n)?I(t,n.curvePaths??n.paths,!0,!1)??t:g(n)?I(t,n.curveRings??n.rings,!0,!1)??t:f(n)?A(t,n.points,!0,!1,!0,!1):l(n)?R(t,n,0,0,!0,!1):(p(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=n.x,t[4]=n.y,t[5]=n.z),t)}function I(t,n,e,i){const s=e?3:2;if(!n.length||!n[0].length)return null;let a,u,c,l,[f,p]=(0,o.yP)(n[0][0]),m=f,g=p;for(let t=0;t<n.length;t++){const M=n[t];for(let t=0;t<M.length;t++){const n=(0,o.yP)(M[t]),[x,v]=n;if(f=y(f,x),p=y(p,v),m=d(m,x),g=d(g,v),e&&n.length>2){const t=n[2];a=y(a,t),u=d(u,t)}if(i&&n.length>s){const t=n[s];c=y(a,t),l=d(u,t)}const b=M[t];if((0,o.Xq)(b)||t<1)continue;const P=(0,o.yP)(M[t-1]),I=(0,r.fA)(f,p,m,g);[f,p,m,g]=h(I,P,b)}}return e?i?(t[0]=f,t[1]=p,t[2]=a,t[3]=c,t[4]=m,t[5]=g,t[6]=u,t[7]=l,t.length=8,t):(t[0]=f,t[1]=p,t[2]=a,t[3]=m,t[4]=g,t[5]=u,t.length=6,t):i?(t[0]=f,t[1]=p,t[2]=c,t[3]=m,t[4]=g,t[5]=l,t.length=6,t):(t[0]=f,t[1]=p,t[2]=m,t[3]=g,t.length=4,t)}function R(t,n,e,r,i,s){const a=n.xmin,o=n.xmax,u=n.ymin,c=n.ymax;let h=n.zmin,l=n.zmax,f=n.mmin,p=n.mmax;return i?(h=h||0,l=l||0,s?(f=f||0,p=p||0,t[0]=a,t[1]=u,t[2]=h,t[3]=f,t[4]=o,t[5]=c,t[6]=l,t[7]=p,t):(t[0]=a,t[1]=u,t[2]=h,t[3]=o,t[4]=c,t[5]=l,t)):s?(f=f||0,p=p||0,t[0]=a,t[1]=u,t[2]=f,t[3]=o,t[4]=c,t[5]=p,t):(t[0]=a,t[1]=u,t[2]=o,t[3]=c,t)}function A(t,n,e,r,i,s){const a=e?3:2,o=r&&s,u=e&&i;if(!n.length||!n[0].length)return null;let c,h,l,f,[p,m]=n[0],[g,M]=n[0];for(let t=0;t<n.length;t++){const e=n[t],[r,i]=e;if(p=y(p,r),m=y(m,i),g=d(g,r),M=d(M,i),u&&e.length>2){const t=e[2];c=y(c,t),h=d(h,t)}if(o&&e.length>a){const t=e[a];l=y(c,t),f=d(h,t)}}return i?(c=c||0,h=h||0,s?(l=l||0,f=f||0,t[0]=p,t[1]=m,t[2]=c,t[3]=l,t[4]=g,t[5]=M,t[6]=h,t[7]=f,t):(t[0]=p,t[1]=m,t[2]=c,t[3]=g,t[4]=M,t[5]=h,t)):s?(l=l||0,f=f||0,t[0]=p,t[1]=m,t[2]=l,t[3]=g,t[4]=M,t[5]=f,t):(t[0]=p,t[1]=m,t[2]=g,t[3]=M,t)}},12359:(t,n,e)=>{e.d(n,{IK:()=>h,TP:()=>f,Ve:()=>o,Z4:()=>s,l8:()=>a,w2:()=>c});var r=e(51118),i=e(95108);function s(t){return t?t.hasZ?[t.xmax-t.xmin/2,t.ymax-t.ymin/2,t.zmax-t.zmin/2]:[t.xmax-t.xmin/2,t.ymax-t.ymin/2]:null}function a(t){return function(t,n){if(!t?.length)return null;const e=[],r=[],s=n?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let e=0,i=t.length;e<i;e++){const i=u(t[e],n,s);i&&r.push(i)}if(r.sort((t,e)=>{let r=t[2]-e[2];return 0===r&&n&&(r=t[4]-e[4]),r}),r.length&&(e[0]=r[0][0],e[1]=r[0][1],n&&(e[2]=r[0][3]),(e[0]<s[0]||e[0]>s[1]||e[1]<s[2]||e[1]>s[3]||n&&(e[2]<s[4]||e[2]>s[5]))&&(e.length=0)),!e.length){const r=t[0]&&t[0].length?function(t,n){const e=n?[0,0,0]:[0,0],r=n?[0,0,0]:[0,0];let s=0,a=0,o=0,u=0;for(let c=0,h=t.length;c<h-1;c++){const h=t[c],l=t[c+1];if(h&&l){e[0]=h[0],e[1]=h[1],r[0]=l[0],r[1]=l[1],n&&h.length>2&&l.length>2&&(e[2]=h[2],r[2]=l[2]);const t=(0,i.R3)(e,r);if(t){s+=t;const e=(0,i.t9)(h,l);a+=t*e[0],o+=t*e[1],n&&e.length>2&&(u+=t*e[2])}}}return s>0?n?[a/s,o/s,u/s]:[a/s,o/s]:t.length?t[0]:null}(t[0],n):null;if(!r)return null;e[0]=r[0],e[1]=r[1],n&&r.length>2&&(e[2]=r[2])}return e}(t.rings,t.hasZ??!1)}function o(t){const n=a(t);if(!n)return null;const{hasZ:e,spatialReference:r}=t,[i,s,o]=n;return isNaN(i)||isNaN(s)||e&&isNaN(o)?null:{x:i,y:s,z:e?o:void 0,spatialReference:r}}function u(t,n,e){let r=0,i=0,s=0,a=0,o=0;const u=t.length?t[0][0]:0,c=t.length?t[0][1]:0,h=t.length&&n?t[0][2]:0;for(let l=0;l<t.length;l++){const f=t[l],p=t[(l+1)%t.length],[m,g,M]=f,y=m-u,d=g-c,[x,v,b]=p,P=x-u,I=v-c,R=y*I-P*d;if(a+=R,r+=(y+P)*R,i+=(d+I)*R,n&&f.length>2&&p.length>2){const t=M-h,n=b-h,e=y*n-P*t;s+=(t+n)*e,o+=e}m<e[0]&&(e[0]=m),m>e[1]&&(e[1]=m),g<e[2]&&(e[2]=g),g>e[3]&&(e[3]=g),n&&(M<e[4]&&(e[4]=M),M>e[5]&&(e[5]=M))}if(a>0&&(a*=-1),o>0&&(o*=-1),!a)return null;a*=.5,o*=.5;const l=[r/(6*a)+u,i/(6*a)+c,a];return n&&(e[4]===e[5]||0===o?(l[3]=(e[4]+e[5])/2,l[4]=0):(l[3]=s/(6*o)+h,l[4]=o)),l}function c(t,n){let e=0,r=0,i=0;t.nextPoint();const s=t.pathSize?t.x:0,a=t.pathSize?t.y:0;for(let o=0;o<t.pathSize;o++){t.seekInPath(o);const u=[t.x,t.y];t.seekInPath((o+1)%t.pathSize);const c=[t.x,t.y],[h,l]=u,f=h-s,p=l-a,[m,g]=c,M=m-s,y=g-a,d=f*y-M*p;i+=d,e+=(f+M)*d,r+=(p+y)*d,h<n[0]&&(n[0]=h),h>n[1]&&(n[1]=h),l<n[2]&&(n[2]=l),l>n[3]&&(n[3]=l)}return i>0&&(i*=-1),i?(i*=.5,[e/(6*i)+s,r/(6*i)+a,i]):null}function h(t){const{hasZ:n,totalSize:e}=t;if(0===e)return null;const s=[],a=[],o=n?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];for(t.reset();t.nextPath();){const n=u((0,r.A)(t),t.hasZ,o);n&&a.push(n)}if(a.sort((t,e)=>{let r=t[2]-e[2];return 0===r&&n&&(r=t[4]-e[4]),r}),a.length&&(s[0]=a[0][0],s[1]=a[0][1],n&&(s[2]=a[0][3]),(s[0]<o[0]||s[0]>o[1]||s[1]<o[2]||s[1]>o[3]||n&&(s[2]<o[4]||s[2]>o[5]))&&(s.length=0)),!s.length){t.reset(),t.nextPath();const e=t.pathSize?function(t){const{hasZ:n}=t,e=n?[0,0,0]:[0,0],r=n?[0,0,0]:[0,0];let s=0,a=0,o=0,u=0;if(t.nextPoint()){let c=t.x,h=t.y,l=t.z;for(;t.nextPoint();){const f=t.x,p=t.y,m=t.z;e[0]=c,e[1]=h,r[0]=f,r[1]=p,n&&(e[2]=l,r[2]=m);const g=(0,i.R3)(e,r);if(g){s+=g;const t=(0,i.t9)(e,r);a+=g*t[0],o+=g*t[1],n&&t.length>2&&(u+=g*t[2])}c=f,h=p,l=m}}return s>0?n?[a/s,o/s,u/s]:[a/s,o/s]:t.pathSize?(t.seekPathStart(),t.nextPoint(),[t.x,t.y]):null}(t):null;if(!e)return null;s[0]=e[0],s[1]=e[1],n&&e.length>2&&(s[2]=e[2])}return s}const l=1e-6;function f(t){let n=0;for(t.reset();t.nextPath();)n+=t.getCurrentRingArea();if(n<l){const n=h(t);return n?[n[0],n[1]]:null}const e=[0,0];if(t.reset(),!t.nextPath()||!t.nextPoint())return null;const r=[t.x,t.y];for(t.reset();t.nextPath();)m(e,r,t);return e[0]*=1/n,e[1]*=1/n,e[0]+=r[0],e[1]+=r[1],e}const p=1/3;function m(t,n,e){if(!t||!e||e.pathSize<3)return null;e.nextPoint();const r=e.x,i=e.y;e.nextPoint();let s,a=e.x-r,o=e.y-i,u=0,c=0;for(;e.nextPoint();)u=e.x-r,c=e.y-i,s=.5*p*(u*o-c*a),t[0]+=s*(a+u),t[1]+=s*(o+c),a=u,o=c;const h=e.getCurrentRingArea(),l=[r,i];return l[0]-=n[0],l[1]-=n[1],l[0]*=h,l[1]*=h,t[0]+=l[0],t[1]+=l[1],t}},15507:(t,n,e)=>{e.d(n,{Cp:()=>m,Gz:()=>p,M_:()=>o,Pf:()=>g,R:()=>M,RS:()=>s,kb:()=>a,t7:()=>c,yN:()=>f});var r=e(34727),i=e(37585);function s(t,n,e,r){return t[0]=n[0]*(1-r)+e[0]*r,t[1]=n[1]*(1-r)+e[1]*r,t}function a(t,n){return(0,i.hG)(t,n)}function o(t,n,e,r,i){const[s,a]=n,[o,u]=e,[c,h]=r,[l,f]=i,p=(s-o)*(h-f)-(a-u)*(c-l);if(0===p)return null;const m=(s*u-a*o)*(c-l)-(s-o)*(c*f-h*l),g=(s*u-a*o)*(h-f)-(a-u)*(c*f-h*l);return t[0]=m/p,t[1]=g/p,t}const u=2*Math.PI;function c(t,n){const e=Math.atan2(t,n);return e<0?e+u:e}function h(t){return Math.abs(t)%u}function l(t){const n=h(t);return n<Math.PI?n:u-n}function f(t,n){return{min:Math.min(t,n),max:Math.max(t,n)}}function p(t,n,e,i){if((0,r.Sp)(h(t-n),0))return e?[t,t]:[t,i?t-u:t+u];const[s,a]=i?[t-u,t]:[t,t+u];return[t,m({min:s,max:a},n)]}function m({min:t,max:n},e){let r;return r=n-e,r>=u?(r-=r%u,e+r):(r=e-t,r>=u?(r-=r%u,e-r):e)}function g(t,n){const e=m(t,n);return e>t.min&&e<t.max?e:l(e-t.min)<l(e-t.max)?t.min:t.max}function M(t,n,e,r=10){return n.map(n=>{let i=n;for(let n=0;n<r;n++){const[n,r,s,a,o,u]=e(i),c=t[0]-n,h=t[1]-r,l=-s,f=-a;i+=-(2*c*l+2*h*f)/(2*l*l+2*c*-o+2*f*f+2*h*-u||1e-6)}return i})}},29242:(t,n,e)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function i(t,n,e,r,i,s,a,o,u){return[t,n,e,r,i,s,a,o,u]}e.d(n,{fA:()=>i,vt:()=>r,zK:()=>s});const s=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:i},Symbol.toStringTag,{value:"Module"}))},34304:(t,n,e)=>{e.d(n,{DF:()=>u,FD:()=>i,Ov:()=>s,ct:()=>c});let r=1e-6;function i(){return r}const s=Math.random,a=Math.PI/180,o=180/Math.PI;function u(t){return t*a}function c(t){return t*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:s,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:i,setEpsilon:function(t){r=t},toDegree:c,toRadian:u},Symbol.toStringTag,{value:"Module"}))},37585:(t,n,e)=>{e.d(n,{C:()=>i,Cc:()=>M,Io:()=>l,S8:()=>g,WQ:()=>a,aI:()=>v,e$:()=>d,hG:()=>f,hZ:()=>s,hs:()=>h,jb:()=>P,l0:()=>y,t2:()=>x});var r=e(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t}function s(t,n,e){return t[0]=n,t[1]=e,t}function a(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t}function o(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t}function u(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t}function h(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t}function l(t,n){const e=n[0]-t[0],r=n[1]-t[1];return Math.sqrt(e*e+r*r)}function f(t,n){const e=n[0]-t[0],r=n[1]-t[1];return e*e+r*r}function p(t){const n=t[0],e=t[1];return Math.sqrt(n*n+e*e)}function m(t){const n=t[0],e=t[1];return n*n+e*e}function g(t,n){const e=n[0],r=n[1];let i=e*e+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i),t}function M(t,n,e,r){const i=n[0],s=n[1];return t[0]=i+r*(e[0]-i),t[1]=s+r*(e[1]-s),t}function y(t,n,e){const r=n[0],i=n[1];return t[0]=e[0]*r+e[2]*i+e[4],t[1]=e[1]*r+e[3]*i+e[5],t}function d(t,n,e,r){const i=n[0]-e[0],s=n[1]-e[1],a=Math.sin(r),o=Math.cos(r);return t[0]=i*o-s*a+e[0],t[1]=i*a+s*o+e[1],t}function x(t,n){return t[0]===n[0]&&t[1]===n[1]}function v(t,n){const e=t[0],i=t[1],s=n[0],a=n[1],o=(0,r.FD)();return Math.abs(e-s)<=o*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(i-a)<=o*Math.max(1,Math.abs(i),Math.abs(a))}const b=p,P=o,I=u,R=c,A=l,S=f,w=m;Object.freeze(Object.defineProperty({__proto__:null,add:a,angle:function(t,n){const e=t[0],r=t[1],i=n[0],s=n[1];let a=e*e+r*r;a>0&&(a=1/Math.sqrt(a));let o=i*i+s*s;o>0&&(o=1/Math.sqrt(o));const u=(e*i+r*s)*a*o;return u>1?0:u<-1?Math.PI:Math.acos(u)},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},copy:i,cross:function(t,n,e){const r=n[0]*e[1]-n[1]*e[0];return t[0]=t[1]=0,t[2]=r,t},dist:A,distance:l,div:R,divide:c,dot:function(t,n){return t[0]*n[0]+t[1]*n[1]},equals:v,exactEquals:x,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},len:b,length:p,lerp:M,max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t},mul:I,multiply:u,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t},normalize:g,projectAndScale:function(t,n,e,r,i){let s=n[0]-e[0],a=n[1]-e[1];const o=(r[0]*s+r[1]*a)*(i-1);return s=r[0]*o,a=r[1]*o,t[0]=n[0]+s,t[1]=n[1]+a,t},random:function(t,n=1){const e=2*(0,r.Ov)()*Math.PI;return t[0]=Math.cos(e)*n,t[1]=Math.sin(e)*n,t},rotate:d,round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t},scale:h,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t},set:s,sqrDist:S,sqrLen:w,squaredDistance:f,squaredLength:m,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:P,subtract:o,transformMat2:function(t,n,e){const r=n[0],i=n[1];return t[0]=e[0]*r+e[2]*i,t[1]=e[1]*r+e[3]*i,t},transformMat2d:y,transformMat3:function(t,n,e){const r=n[0],i=n[1];return t[0]=e[0]*r+e[3]*i+e[6],t[1]=e[1]*r+e[4]*i+e[7],t},transformMat4:function(t,n,e){const r=n[0],i=n[1];return t[0]=e[0]*r+e[4]*i+e[12],t[1]=e[1]*r+e[5]*i+e[13],t}},Symbol.toStringTag,{value:"Module"}))},39829:(t,n,e)=>{e.d(n,{A:()=>R});var r,i=e(31635),s=e(4576),a=e(51447),o=e(4718),u=e(53966),c=e(10107),h=(e(44208),e(40608)),l=e(43937),f=e(5443),p=e(91075),m=e(86738),g=e(16930),M=e(12359),y=e(94078),d=e(95108),x=e(90634),v=e(12176),b=e(28735),P=e(56993);function I(t){return!Array.isArray(t[0])}let R=r=class extends p.A{static fromExtent(t){const n=t.clone().normalize(),{spatialReference:e}=t;let i=!1,s=!1;for(const t of n)t.hasZ&&(i=!0),t.hasM&&(s=!0);const a={rings:n.map(t=>{const n=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(i&&t.hasZ){const e=t.zmin+.5*(t.zmax-t.zmin);for(let t=0;t<n.length;t++)n[t].push(e)}if(s&&t.hasM){const e=t.mmin+.5*(t.mmax-t.mmin);for(let t=0;t<n.length;t++)n[t].push(e)}return n}),spatialReference:e};return i&&(a.hasZ=!0),s&&(a.hasM=!0),new r(a)}constructor(t){super(function(t){if(!t)return;let{rings:n,hasM:e,hasZ:r,spatialReference:i}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return i??=g.A.WGS84,{...t,hasM:e,hasZ:r,rings:n,spatialReference:i}}(t)),this.curveRings=void 0,this.rings=[],this.type="polygon"}get cache(){return this.commitProperty("curveRings"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("rings"),this.commitProperty("spatialReference"),{}}get centroid(){(0,a.Lx)(u.A.getLogger(this),"centroid",{replacement:"Please use centroidOperator.execute() instead.",version:"4.34",warnOnce:!0});const t=(0,M.Ve)(this);return t?m.A.fromJSON(t):null}writeCurveRings(t,n){n.curveRings=(0,o.o8)(t)}get extent(){const t=(0,x.v)(this),{spatialReference:n}=this;return t?new f.A({...t,spatialReference:n}):null}get isSelfIntersecting(){return(0,a.Lx)(u.A.getLogger(this),"isSelfIntersecting",{replacement:"Please use simplifyOperator.isSimple() instead.",version:"4.33",warnOnce:!0}),(0,v.A3)(this.rings)}writeRings(t,n){n.rings=(0,o.o8)(this.rings)}addRing(t){if(!t)return;const n=this.rings,e=n.length;if(I(t)){const r=[];for(let n=0,e=t.length;n<e;n++)r[n]=t[n].toArray();n[e]=r}else n[e]=t.slice();return this.notifyChange("rings"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.rings=(0,o.o8)(this.rings),t.curveRings=(0,o.o8)(this.curveRings),t.hasZ=this.hasZ,t.hasM=this.hasM,t}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,e=t.spatialReference;if(null!=n!=(null!=e))return!1;if(null!=n&&null!=e&&!n.equals(e))return!1;if(this.rings.length!==t.rings.length)return!1;const r=([t,n,e,r],[i,s,a,o])=>t===i&&n===s&&(null==e&&null==a||e===a)&&(null==r&&null==o||r===o);for(let n=0;n<this.rings.length;n++){const e=this.rings[n],i=t.rings[n];if(!(0,s.aI)(e,i,r))return!1}return!0}contains(t){if(!t)return!1;const n=(0,b.Cv)(t,this.spatialReference);return(0,y.m3)(this,null!=n?n:t)}isClockwise(t){const n=I(t)?t.map(t=>this.hasZ?this.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y]):t;return(0,d.$3)(n)}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.rings[t][n],r=this.hasZ,i=this.hasM;return r&&!i?new m.A(e[0],e[1],e[2],void 0,this.spatialReference):i&&!r?new m.A(e[0],e[1],void 0,e[2],this.spatialReference):r&&i?new m.A(e[0],e[1],e[2],e[3],this.spatialReference):new m.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,P.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t].splice(n,0,e),this.notifyChange("rings"),this):this}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new m.A(this.rings[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("rings"),e}removeRing(t){if(!this._validateInputs(t,null))return null;const n=this.rings.splice(t,1)[0],e=this.spatialReference,r=n.map(t=>new m.A(t,e));return this.notifyChange("rings"),r}setPoint(t,n,e){return this._validateInputs(t,n)?((0,P.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t][n]=e,this.notifyChange("rings"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.rings.length)return!1;if(null!=n){const r=this.rings[t];if(e&&(n<0||n>r.length))return!1;if(!e&&(n<0||n>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,c.MZ)({readOnly:!0})],R.prototype,"cache",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],R.prototype,"centroid",null),(0,i.Cg)([(0,c.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],R.prototype,"curveRings",void 0),(0,i.Cg)([(0,l.K)("curveRings")],R.prototype,"writeCurveRings",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],R.prototype,"extent",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],R.prototype,"isSelfIntersecting",null),(0,i.Cg)([(0,c.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],R.prototype,"rings",void 0),(0,i.Cg)([(0,l.K)("rings")],R.prototype,"writeRings",null),R=r=(0,i.Cg)([(0,h.$)("esri.geometry.Polygon")],R),R.prototype.toJSON.isDefaultToJSON=!0},46068:(t,n,e)=>{e.d(n,{DL:()=>p,ED:()=>l,SW:()=>u,pb:()=>f,xm:()=>m}),e(77690);var r=e(29242),i=(e(37585),e(19419)),s=e(52006),a=e(15507);class o{constructor(t,n,e,r,i,s,a,o,u){this.cx=t,this.cy=n,this.a=e,this.b=r,this.cosR=i,this.sinR=s,this.u1=a,this.u2=o,this.isInvalid=u}}function u(t,n){const[e,r,i,s,u,c,h]=n.a,[l,f]=t,[p,m]=e,[g,M]=r,y=c*h,d=Math.cos(u),x=Math.sin(u),[v,b]=(0,a.Gz)((0,a.t7)(1/y*(f-M)*d-1/y*(l-g)*x,1/c*(f-M)*x+1/c*(l-g)*d),Math.atan2(1/y*(m-M)*d-1/y*(p-g)*x,1/c*(m-M)*x+1/c*(p-g)*d),i,s);return new o(g,M,c,y,d,x,v,b,0===c||0===y)}function c(t,n){const{a:e,b:r,cosR:i,sinR:s,cx:a,cy:o}=t,u=Math.cos(n),c=Math.sin(n);return[e*u*i-r*c*s+a,e*u*s+r*c*i+o]}function h(t,n){const{u1:e,u2:r}=t;return c(t,e*(1-n)+r*n)}function l(t,n,e){if(e<0||e>1)return[];if(0===e||1===e)return[(0,s.tk)(n)];const[r,[i,a],o,u,c,l,f]=n.a,{u1:p,u2:m}=t,g=p*(1-e)+m*e;return[{a:[[...h(t,e)],[i,a],Math.abs(g-p)<Math.PI?1:0,u,c,l,f]},{a:[[...r],[i,a],Math.abs(m-g)<Math.PI?1:0,u,c,l,f]}]}function f(t,n){const{a:e,b:r,cosR:i,sinR:s,u1:o,u2:u}=t,h=Math.PI/6,l=(0,a.R)(n,[1*h,2*h,4*h,5*h,7*h,8*h,10*h,11*h],n=>{const a=Math.cos(n),o=Math.sin(n),[u,h]=c(t,n);return[u,h,-e*i*o-r*s*a,-e*s*o+r*i*a,-e*i*a+r*s*o,-e*s*a-r*i*o]}),f=(0,a.yN)(o,u),p=new Set(l.map(t=>(0,a.Cp)(f,t)).filter(t=>t>f.min&&t<f.max));p.add(o),p.add(u);let m,g,M=1/0;for(const e of p){const r=c(t,e),[i,s]=r,a=n[0]-i,h=n[1]-s,l=a*a+h*h;l<M&&(m=(e-o)/(u-o),g=r,M=l)}return{t:m,curvePoint:g,distance:Math.sqrt(M)}}function p(t,n,e){const r=u(n,e),{a:s,b:o,u1:h,u2:l,cosR:f,sinR:p,isInvalid:m}=r,g=e.a[0];if((0,i.tK)(t,n),(0,i.tK)(t,g),m)return t;const M=Math.atan2(-o*p,s*f),y=M+Math.PI,d=Math.atan2(o*f,s*p),x=d+Math.PI,v=(0,a.yN)(h,l);for(const n of[M,y,d,x].map(t=>(0,a.Cp)(v,t)))n>v.min&&n<v.max&&(0,i.tK)(t,c(r,n));return t}function m(t,n,e){const[r,i,s,o,l,f,p]=n.a,m=u(t,n),{u1:g,u2:M,isInvalid:y}=m,d=M-g;if(y)return Math.sqrt((0,a.kb)(t,r));const x=[0,0];let v=0,b=[h(m,0),h(m,.25),h(m,.5),h(m,.75),h(m,1)];for(let t=0;t<14;t++){const t=b.length-1,n=d/(2*t),r=[];for(let e=0;e<t;e++)r.push(b[e]),r.push(c(m,g+(2*e+1)*n));r.push(b[b.length-1]),b=r,v=0;let s=0;for(let t=1;t<b.length;t++){const n=b[t-1],e=b[t];if(v+=Math.sqrt((0,a.kb)(n,e)),t>1){const r=b[t-2],o=(0,a.M_)(x,r,n,i,e);s+=o?Math.sqrt((0,a.kb)(n,o)):Math.abs(e[0]-n[0])+Math.abs(e[1]-n[1])}else s+=v}if(s-v<e)return v}return v}(0,r.vt)(),(0,r.vt)(),(0,r.vt)(),(0,r.vt)()},48526:(t,n,e)=>{e.d(n,{A:()=>g});var r,i=e(31635),s=e(4718),a=e(10107),o=(e(44208),e(53966),e(40608)),u=e(43937),c=e(5443),h=e(91075),l=e(86738),f=e(16930),p=e(90634),m=e(56993);let g=r=class extends h.A{constructor(t){super(function(t){if(!t)return;let{points:n,hasM:e,hasZ:r,spatialReference:i}=t;switch(n??=[],n?.at(0)?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return i??=f.A.WGS84,{...t,hasM:e,hasZ:r,points:n,spatialReference:i}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,p.ge)(this);return t?new c.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,n){n.points=(0,s.o8)(this.points)}clone(){const{points:t,spatialReference:n,hasM:e,hasZ:i}=this;return new r({points:(0,s.o8)(t),spatialReference:n.clone(),hasM:e,hasZ:i})}addPoint(t){return(0,m.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const n=this.points[t],e={x:n[0],y:n[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(e.z=n[2],r=3),this.hasM&&(e.m=n[r]),new l.A(e)}removePoint(t){if(!this._validateInputs(t))return null;const n=new l.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),n}setPoint(t,n){return this._validateInputs(t)?((0,m.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.points[t]=n,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,i.Cg)([(0,u.K)("points")],g.prototype,"writePoints",null),g=r=(0,i.Cg)([(0,o.$)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0},49663:(t,n,e)=>{e.d(n,{i:()=>a,x:()=>o});var r=e(34727),i=e(513),s=e(15507);function a(t,n){const[e,a,o,u]=n.a,[c,h]=t,[l,f]=e,[p,m]=a,g=c-p,M=h-m,y=Math.sqrt(g*g+M*M),d=l-p,x=f-m,v=Math.sqrt(d*d+x*x),b=0===y||0===v||!(0,r.b6)(y,v),P=y,[I,R]=(0,s.Gz)((0,s.t7)(h-m,c-p),Math.atan2(f-m,l-p),o,u);return new i.KP(p,m,P,I,R,b)}function o(t,n,e){const{cx:r,cy:s,thetaStart:a,thetaEnd:o}=t,[u,c,h,l]=n.a,f=a*(1-e)+o*e;return[{a:[(0,i.mq)(t,e),[r,s],Math.abs(f-a)<Math.PI?1:0,l]},{a:[[...u],[r,s],Math.abs(o-f)<Math.PI?1:0,l]}]}},50954:(t,n,e)=>{e.d(n,{GX:()=>h,pM:()=>c});var r=e(77690),i=e(29242),s=e(513),a=e(15507);const o=(0,i.vt)();function u(t,n,e){const[i,s]=t,[u,c]=n,[h,l]=e;(0,r.hZ)(o,i,u,h,s,c,l,1,1,1);const f=(0,r.a4)(o),p=4*f/((0,a.kb)(t,n)+(0,a.kb)(n,e)+(0,a.kb)(e,t));if(!isFinite(p)||Math.abs(p)<1e-8)return null;const m=i**2+s**2,g=u**2+c**2,M=h**2+l**2;(0,r.hZ)(o,m,g,M,s,c,l,1,1,1);const y=(0,r.a4)(o);return(0,r.hZ)(o,m,g,M,i,u,h,1,1,1),[y/f*.5,(0,r.a4)(o)/f*-.5]}function c(t,n){const[e,r]=n.c,i=u(t,r,e),o=null==i,c=i??(0,a.RS)([],t,e,.5),[h,l]=t,[f,p]=r,[m,g]=e,[M,y]=c,d=h-M,x=l-y,v=Math.sqrt(d*d+x*x),b=(0,a.t7)(l-y,h-M),P=(0,a.t7)(p-y,f-M);let I=(0,a.t7)(g-y,m-M);return(P-b)*(I-P)<0&&(I+=2*Math.sign(b-I)*Math.PI),new s.KP(M,y,v,b,I,o)}function h(t,n,e){const r=(0,s.mq)(t,e/2),i=(0,s.mq)(t,e),a=(0,s.mq)(t,(e+1)/2);return[{c:[i,r]},{c:[[...n.c[0]],a]}]}},51118:(t,n,e)=>{function r(t){const n=[];for(t.reset();t.nextPath();){const e=[];for(;t.nextPoint();)e.push([t.x,t.y]);n.push(e)}return t.reset(),n}function i(t){const n=[];for(;t.nextPoint();)n.push([t.x,t.y]);return t.seekPathStart(),n}e.d(n,{A:()=>i,x:()=>r})},52006:(t,n,e)=>{function r(t){return"b"in t}function i(t){return"c"in t}function s(t){return Array.isArray(t)}function a(t){return"a"in t&&4===t.a.length}function o(t){return s(t)?t:r(t)?t.b[0]:i(t)?t.c[0]:t.a[0]}function u(t){if(r(t)){const[n,e,r]=t.b;return{b:[[...n],[...e],[...r]]}}if(i(t)){const[n,e]=t.c;return{c:[[...n],[...e]]}}if(s(t))return[...t];if(a(t)){const[n,e,r,i]=t.a;return{a:[[...n],[...e],r,i]}}if(function(t){return"a"in t&&7===t.a.length}(t)){const[n,e,r,i,s,a,o]=t.a;return{a:[[...n],[...e],r,i,s,a,o]}}return t}e.d(n,{DA:()=>a,Xq:()=>s,aO:()=>i,n1:()=>r,tk:()=>u,yP:()=>o})},56993:(t,n,e)=>{function r(t,n,e=!1){let{hasM:r,hasZ:i}=t;Array.isArray(n)?4!==n.length||r||i?3===n.length&&e&&!r?(i=!0,r=!1):3===n.length&&r&&i&&(r=!1,i=!1):(r=!0,i=!0):(i=!i&&n.hasZ&&(!r||n.hasM),r=!r&&n.hasM&&(!i||n.hasZ)),t.hasZ=i,t.hasM=r}e.d(n,{h:()=>r})},59803:(t,n,e)=>{e.d(n,{T:()=>s});var r=e(34727),i=e(15507);function s(t,n,e){const[s,a]=t,[o,u]=n,[c,h]=e,[l,f]=[o-s,u-a];let p=l*(c-s)+f*(h-a);p/=l**2+f**2,p=(0,r.qE)(p,0,1);const m=(0,i.RS)([0,0],t,n,p);return{t:p,curvePoint:m,distance:Math.sqrt((0,i.kb)(m,e))}}},77690:(t,n,e)=>{e.d(n,{B8:()=>o,Ge:()=>p,I0:()=>f,KC:()=>u,a4:()=>c,hZ:()=>s,hs:()=>l,lw:()=>h,mg:()=>a,z0:()=>i});var r=e(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function s(t,n,e,r,i,s,a,o,u,c){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=s,t[5]=a,t[6]=o,t[7]=u,t[8]=c,t}function a(t,n){if(t===n){const e=n[1],r=n[2],i=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=i}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function o(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],a=n[4],o=n[5],u=n[6],c=n[7],h=n[8],l=h*a-o*c,f=-h*s+o*u,p=c*s-a*u;let m=e*l+r*f+i*p;return m?(m=1/m,t[0]=l*m,t[1]=(-h*r+i*c)*m,t[2]=(o*r-i*a)*m,t[3]=f*m,t[4]=(h*e-i*u)*m,t[5]=(-o*e+i*s)*m,t[6]=p*m,t[7]=(-c*e+r*u)*m,t[8]=(a*e-r*s)*m,t):null}function u(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],a=n[4],o=n[5],u=n[6],c=n[7],h=n[8];return t[0]=a*h-o*c,t[1]=i*c-r*h,t[2]=r*o-i*a,t[3]=o*u-s*h,t[4]=e*h-i*u,t[5]=i*s-e*o,t[6]=s*c-a*u,t[7]=r*u-e*c,t[8]=e*a-r*s,t}function c(t){const n=t[0],e=t[1],r=t[2],i=t[3],s=t[4],a=t[5],o=t[6],u=t[7],c=t[8];return n*(c*s-a*u)+e*(-c*i+a*o)+r*(u*i-s*o)}function h(t,n,e){const r=n[0],i=n[1],s=n[2],a=n[3],o=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=e[0],p=e[1],m=e[2],g=e[3],M=e[4],y=e[5],d=e[6],x=e[7],v=e[8];return t[0]=f*r+p*a+m*c,t[1]=f*i+p*o+m*h,t[2]=f*s+p*u+m*l,t[3]=g*r+M*a+y*c,t[4]=g*i+M*o+y*h,t[5]=g*s+M*u+y*l,t[6]=d*r+x*a+v*c,t[7]=d*i+x*o+v*h,t[8]=d*s+x*u+v*l,t}function l(t,n,e){const r=e[0],i=e[1],s=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=i*n[3],t[4]=i*n[4],t[5]=i*n[5],t[6]=s*n[6],t[7]=s*n[7],t[8]=s*n[8],t}function f(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],a=e+e,o=r+r,u=i+i,c=e*a,h=r*a,l=r*o,f=i*a,p=i*o,m=i*u,g=s*a,M=s*o,y=s*u;return t[0]=1-l-m,t[3]=h-y,t[6]=f+M,t[1]=h+y,t[4]=1-c-m,t[7]=p-g,t[2]=f-M,t[5]=p+g,t[8]=1-c-l,t}function p(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],a=n[4],o=n[5],u=n[6],c=n[7],h=n[8],l=n[9],f=n[10],p=n[11],m=n[12],g=n[13],M=n[14],y=n[15],d=e*o-r*a,x=e*u-i*a,v=e*c-s*a,b=r*u-i*o,P=r*c-s*o,I=i*c-s*u,R=h*g-l*m,A=h*M-f*m,S=h*y-p*m,w=l*M-f*g,N=l*y-p*g,Z=f*y-p*M;let C=d*Z-x*N+v*w+b*S-P*A+I*R;return C?(C=1/C,t[0]=(o*Z-u*N+c*w)*C,t[1]=(u*S-a*Z-c*A)*C,t[2]=(a*N-o*S+c*R)*C,t[3]=(i*N-r*Z-s*w)*C,t[4]=(e*Z-i*S+s*A)*C,t[5]=(r*S-e*N-s*R)*C,t[6]=(g*I-M*P+y*b)*C,t[7]=(M*v-m*I-y*x)*C,t[8]=(m*P-g*v+y*d)*C,t):null}function m(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const g=h,M=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:u,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:c,equals:function(t,n){const e=t[0],i=t[1],s=t[2],a=t[3],o=t[4],u=t[5],c=t[6],h=t[7],l=t[8],f=n[0],p=n[1],m=n[2],g=n[3],M=n[4],y=n[5],d=n[6],x=n[7],v=n[8],b=(0,r.FD)();return Math.abs(e-f)<=b*Math.max(1,Math.abs(e),Math.abs(f))&&Math.abs(i-p)<=b*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(s-m)<=b*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(a-g)<=b*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(o-M)<=b*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(u-y)<=b*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-d)<=b*Math.max(1,Math.abs(c),Math.abs(d))&&Math.abs(h-x)<=b*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(l-v)<=b*Math.max(1,Math.abs(l),Math.abs(v))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:i,fromQuat:f,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:o,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],i=t[1],s=t[2],a=t[3],o=t[4],u=t[5],c=t[6],h=t[7],l=t[8];return Math.abs(1-(e*e+a*a+c*c))<=n&&Math.abs(1-(i*i+o*o+h*h))<=n&&Math.abs(1-(s*s+u*u+l*l))<=n},mul:g,multiply:h,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:p,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],i=n[2],s=n[4],a=n[5],o=n[6],u=n[8],c=n[9],h=n[10],l=h*a-o*c,f=-h*s+o*u,p=c*s-a*u,m=e*l+r*f+i*p;if(!m)return null;const g=1/m;return t[0]=l*g,t[1]=(-h*r+i*c)*g,t[2]=(o*r-i*a)*g,t[3]=f*g,t[4]=(h*e-i*u)*g,t[5]=(-o*e+i*s)*g,t[6]=p*g,t[7]=(-c*e+r*u)*g,t[8]=(a*e-r*s)*g,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],i=n[1],s=n[2],a=n[3],o=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=Math.sin(e),p=Math.cos(e);return t[0]=p*r+f*a,t[1]=p*i+f*o,t[2]=p*s+f*u,t[3]=p*a-f*r,t[4]=p*o-f*i,t[5]=p*u-f*s,t[6]=c,t[7]=h,t[8]=l,t},scale:l,scaleByVec2:function(t,n,e){const r=e[0],i=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=i*n[3],t[4]=i*n[4],t[5]=i*n[5],t},set:s,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:M,subtract:m,translate:function(t,n,e){const r=n[0],i=n[1],s=n[2],a=n[3],o=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=e[0],p=e[1];return t[0]=r,t[1]=i,t[2]=s,t[3]=a,t[4]=o,t[5]=u,t[6]=f*r+p*a+c,t[7]=f*i+p*o+h,t[8]=f*s+p*u+l,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},82799:(t,n,e)=>{e.d(n,{A:()=>g});var r,i=e(31635),s=e(4718),a=e(10107),o=(e(44208),e(53966),e(40608)),u=e(43937),c=e(5443),h=e(91075),l=e(86738),f=e(16930),p=e(90634),m=e(56993);let g=r=class extends h.A{constructor(t){super(function(t){if(!t)return;let{paths:n,hasM:e,hasZ:r,spatialReference:i}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return i??=f.A.WGS84,{...t,hasM:e,hasZ:r,paths:n,spatialReference:i}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,n){n.curvePaths=(0,s.o8)(t)}get extent(){const t=(0,p.Z3)(this),{spatialReference:n}=this;return t?new c.A({...t,spatialReference:n}):null}writePaths(t,n){n.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;const n=this.paths,e=n.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let n=0,e=t.length;n<e;n++)r[n]=t[n].toArray();n[e]=r}else n[e]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.paths[t][n],r=this.hasZ,i=this.hasM;return r&&!i?new l.A(e[0],e[1],e[2],void 0,this.spatialReference):i&&!r?new l.A(e[0],e[1],void 0,e[2],this.spatialReference):r&&i?new l.A(e[0],e[1],e[2],e[3],this.spatialReference):new l.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,m.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t].splice(n,0,e),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const n=this.paths.splice(t,1)[0],e=this.spatialReference,r=n.map(t=>new l.A(t,e));return this.notifyChange("paths"),r}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new l.A(this.paths[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("paths"),e}setPoint(t,n,e){return this._validateInputs(t,n)?((0,m.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t][n]=e,this.notifyChange("paths"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=n){const r=this.paths[t];if(e&&(n<0||n>r.length))return!1;if(!e&&(n<0||n>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],g.prototype,"curvePaths",void 0),(0,i.Cg)([(0,u.K)("curvePaths")],g.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],g.prototype,"paths",void 0),(0,i.Cg)([(0,u.K)("paths")],g.prototype,"writePaths",null),g=r=(0,i.Cg)([(0,o.$)("esri.geometry.Polyline")],g),g.prototype.toJSON.isDefaultToJSON=!0},90634:(t,n,e)=>{e.d(n,{HA:()=>h,Z3:()=>p,ge:()=>l,v:()=>f});var r=e(6606);const i=[];function s(t,n,e,r){return{xmin:t,ymin:n,xmax:e,ymax:r}}function a(t,n,e,r,i,s){return{xmin:t,ymin:n,zmin:e,xmax:r,ymax:i,zmax:s}}function o(t,n,e,r,i,s){return{xmin:t,ymin:n,mmin:e,xmax:r,ymax:i,mmax:s}}function u(t,n,e,r,i,s,a,o){return{xmin:t,ymin:n,zmin:e,mmin:r,xmax:i,ymax:s,zmax:a,mmax:o}}function c(t,n=!1,e=!1){return n?e?u(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]):a(t[0],t[1],t[2],t[3],t[4],t[5]):e?o(t[0],t[1],t[2],t[3],t[4],t[5]):s(t[0],t[1],t[2],t[3])}function h(t){return t?function(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}(t)?t:function(t){return void 0!==t.x&&void 0!==t.y}(t)?function(t){const{x:n,y:e,z:r,m:i}=t,c=null!=i;return null!=r?c?u(n,e,r,i,n,e,r,i):a(n,e,r,n,e,r):c?o(n,e,i,n,e,i):s(n,e,n,e)}(t):function(t){return void 0!==t.rings}(t)?f(t):function(t){return void 0!==t.paths}(t)?p(t):function(t){return void 0!==t.points}(t)?l(t):null:null}function l(t){const{hasZ:n,hasM:e,points:s}=t,a=(0,r.Pj)(i,s,n??!1,e??!1,n??!1,e??!1);return a?c(a,n,e):null}function f(t){const{hasZ:n,hasM:e,rings:s,curveRings:a}=t,o=(0,r.Yz)(i,a??s,n??!1,e??!1);return o?c(o,n,e):null}function p(t){const{hasZ:n,hasM:e,paths:s,curvePaths:a}=t,o=(0,r.Yz)(i,a??s,n??!1,e??!1);return o?c(o,n,e):null}},95108:(t,n,e)=>{e.d(n,{$3:()=>c,Ng:()=>a,R3:()=>i,Yl:()=>u,gR:()=>s,m3:()=>l,t9:()=>o});var r=e(4576);function i(t,n){const e=n[0]-t[0],r=n[1]-t[1];if(t.length>2&&n.length>2){const i=t[2]-n[2];return Math.sqrt(e*e+r*r+i*i)}return Math.sqrt(e*e+r*r)}function s(t,n,e,r){const[i,s]=n,[a,o]=e,[u,c]=r,h=u-a,l=c-o,f=h*h+l*l,p=(i-a)*h+(s-o)*l,m=Math.min(1,Math.max(0,p/f));return t[0]=a+h*m,t[1]=o+l*m,t}function a(t,n,e,r,i,s){let a=e,o=r,u=i-a,c=s-o;if(0!==u||0!==c){const e=((t-a)*u+(n-o)*c)/(u*u+c*c);e>1?(a=i,o=s):e>0&&(a+=u*e,o+=c*e)}return u=t-a,c=n-o,u*u+c*c}function o(t,n){return function(t,n,e){const r=t[0]+e*(n[0]-t[0]),i=t[1]+e*(n[1]-t[1]);return t.length>2&&n.length>2?[r,i,t[2]+e*(n[2]-t[2])]:[r,i]}(t,n,.5)}function u(t){const n=t.length;let e=0;for(let r=0;r<n-1;++r)e+=i(t[r],t[r+1]);return e}function c(t,n=0,e=1){let r=0;const i=t.length;let s=t[0];for(let a=1;a<i;a++){const i=t[a];r+=(i[n]-s[n])*(i[e]+s[e]),s=i}if(h(t)){const i=t[0];r+=(i[n]-s[n])*(i[e]+s[e])}return r>=0}function h(t){const n=t.length;return n>0&&!(0,r.aI)(t[0],t[n-1])}function l(t){if("rings"in t)for(const n of t.rings)h(n)&&n.push(n[0].slice())}e(21325)}}]);
|