@arcgis/core 5.2.0-next.139 → 5.2.0-next.140
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/arcgisGlobal.d.ts +10 -10
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{86d8ccb795611cd6d071.js → 00a600c71ceebe7bfeee.js} +1 -1
- package/assets/esri/core/workers/chunks/0193df3f9fb23633da87.js +1 -0
- package/assets/esri/core/workers/chunks/{3a0b19275751a3a73cd5.js → 07aa6d36f1006b6ab7ff.js} +1 -1
- package/assets/esri/core/workers/chunks/{a054da6cbd8ee4774a57.js → 1f3148cebee1961249a4.js} +1 -1
- package/assets/esri/core/workers/chunks/222af8522773c7dc80b1.js +1 -0
- package/assets/esri/core/workers/chunks/{a4d0df0177ac28e42219.js → 303fde8f3459dde16555.js} +1 -1
- package/assets/esri/core/workers/chunks/{51dd6df99dfe443df218.js → 350540770781b281c39a.js} +1 -1
- package/assets/esri/core/workers/chunks/{f5f4521119d2ce2465d7.js → 3b017b718ea2d4ed498f.js} +1 -1
- package/assets/esri/core/workers/chunks/{1bf5e4b56c32a853f200.js → 3e81dfc9d621ece038fe.js} +1 -1
- package/assets/esri/core/workers/chunks/{685cef5d2245450dc695.js → 4097edb2ad522dff50ce.js} +1 -1
- package/assets/esri/core/workers/chunks/{2398d1ee310bbbc1e20c.js → 4d82db661365daa513a6.js} +1 -1
- package/assets/esri/core/workers/chunks/{544a1326c12e71b33dd8.js → 641d196a554bd07f729e.js} +1 -1
- package/assets/esri/core/workers/chunks/{dce78ea26d078d9c4667.js → 798a63653f82c0e842c5.js} +1 -1
- package/assets/esri/core/workers/chunks/84fcbf7a1d04f01685d1.js +1 -0
- package/assets/esri/core/workers/chunks/{459d5dca9c915b13cfce.js → 8e511079918e2fd9261f.js} +1 -1
- package/assets/esri/core/workers/chunks/{0a8463fe687d3193dd8b.js → fc5a36e54929e03efa86.js} +1 -1
- package/assets/esri/libs/librust-parquet/pkg/parquet_bg.wasm +0 -0
- package/config.js +1 -1
- package/kernel.js +1 -1
- package/{layers/list/BasemapItemCollection.d.ts → layerList/BasemapLayerListModel.d.ts} +14 -14
- package/layerList/BasemapLayerListModel.js +2 -0
- package/{layers/list/CatalogItemCollection.d.ts → layerList/CatalogLayerListModel.d.ts} +15 -15
- package/layerList/CatalogLayerListModel.js +2 -0
- package/{layers/list → layerList}/Item.d.ts +22 -22
- package/layerList/Item.js +2 -0
- package/{layers/list → layerList}/ItemPanel.d.ts +3 -3
- package/layerList/ItemPanel.js +2 -0
- package/{layers/list/LayerItemCollection.d.ts → layerList/LayerListModel.d.ts} +16 -16
- package/layerList/LayerListModel.js +2 -0
- package/{layers/list → layerList}/TableItem.d.ts +11 -11
- package/layerList/TableItem.js +2 -0
- package/{layers/list → layerList}/TableItemPanel.d.ts +2 -2
- package/layerList/TableItemPanel.js +2 -0
- package/{layers/list/TableItemCollection.d.ts → layerList/TableListModel.d.ts} +15 -15
- package/layerList/TableListModel.js +2 -0
- package/{layers/list → layerList}/types.d.ts +29 -29
- package/layers/support/LabelExpressionInfo.d.ts +7 -1
- package/layers/support/LabelExpressionInfo.js +1 -1
- package/package.json +2 -2
- package/popup/{FeatureContent.d.ts → FeatureModel.d.ts} +11 -11
- package/popup/{FeatureContent.js → FeatureModel.js} +1 -1
- package/popup/{FeatureContentCollection.d.ts → FeaturesModel.d.ts} +62 -62
- package/popup/FeaturesModel.js +2 -0
- package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +2 -0
- package/widgets/DirectionalPad/types.d.ts +5 -1
- package/widgets/DirectionalPad.d.ts +1 -0
- package/widgets/Feature/FeatureViewModel.d.ts +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Features/FeaturesViewModel.d.ts +2 -2
- package/widgets/Features/FeaturesViewModel.js +1 -1
- package/widgets/LayerList/LayerListViewModel.d.ts +4 -4
- package/widgets/LayerList/LayerListViewModel.js +1 -1
- package/widgets/LayerList/ListItem.d.ts +5 -5
- package/widgets/LayerList/ListItemPanel.d.ts +4 -4
- package/widgets/LayerList/types.d.ts +7 -7
- package/widgets/Popup/PopupViewModel.d.ts +1 -1
- package/widgets/Popup/PopupViewModel.js +1 -1
- package/widgets/support/SelectionList/FeatureItem.d.ts +9 -2
- package/assets/esri/core/workers/chunks/069bd90cbb7377e2e4bc.js +0 -1
- package/assets/esri/core/workers/chunks/f3214bccb039338acadf.js +0 -1
- package/assets/esri/core/workers/chunks/fd2cea0761587adaa6c9.js +0 -1
- package/layers/list/BasemapItemCollection.js +0 -2
- package/layers/list/CatalogItemCollection.js +0 -2
- package/layers/list/Item.js +0 -2
- package/layers/list/ItemPanel.js +0 -2
- package/layers/list/LayerItemCollection.js +0 -2
- package/layers/list/TableItem.js +0 -2
- package/layers/list/TableItemCollection.js +0 -2
- package/layers/list/TableItemPanel.js +0 -2
- package/popup/FeatureContentCollection.js +0 -2
- /package/{layers/list → layerList}/support/layerListUtils.js +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../Graphic.js";import{isSome as n}from"../../core/arrayUtils.js";import{deprecatedModule as r}from"../../core/deprecate.js";import i from"../../core/Error.js";import{EventedAccessor as a}from"../../core/Evented.js";import o from"../../core/Logger.js";import{debounce as s,isAbortError as c}from"../../core/promiseUtils.js";import l from"../../core/ReactiveSet.js";import{watch as u,when as d,sync as f}from"../../core/reactiveUtils.js";import{property as p,subclass as m}from"../../core/accessorSupport/decorators.js";import h from"../../geometry/Point.js";import{initializeProjection as g,project as _}from"../../geometry/projectionUtils.js";import v from"../../geometry/SpatialReference.js";import{geographicToWebMercator as y}from"../../geometry/support/webMercatorUtils.js";import{fallbackObjectIDAttribute as b}from"../../layers/LayerConstants.js";import x from"../../symbols/SimpleFillSymbol.js";import{getDisplayedSymbol as S}from"../../symbols/support/symbolUtils.js";import{system as C}from"../../time/constants.js";import{highlightsSupported as w}from"../../views/support/layerViewUtils.js";import{createScreenPointFromEvent as T}from"../../views/support/screenUtils.js";import E from"../Feature/FeatureViewModel.js";import{ActionsCollection as D,zoomToFeature as O,zoomToClusteredFeatures as k,browseClusteredFeatures as A}from"../Popup/actions.js";import{triggerAction as j,isClusterFeature as M,getSelectedTarget as N,removeClusteredFeaturesForBrowsing as P,displayClusterExtent as F,browseAggregateFeatures as I}from"../Popup/actionUtils.js";import{AnchorElementViewModelMixin as L}from"../support/AnchorElementViewModel.js";import{GoTo as R}from"../support/GoTo.js";const z=`location-scale-handle`,B=()=>[O.clone()],V=()=>[k.clone(),A.clone()];let H=null;function U(e,t){return e===`building-scene`||e===`map-image`||e===`tile`||e===`imagery`||t===`2d`&&e===`imagery-tile`}let W=class extends R(L(a)){constructor(e){super(e),this._pendingPromises=new l,this._fetchFeaturesController=null,this._centerAtLocationController=null,this._locationUpdateController=null,this._highlightPromises={"highlight-active-feature":null,"highlight-selected-feature":null},this._selectedClusterFeature=null,this._featureStreamVersion=0,this._activeFeatureStream=null,this.actions=new D,this.activeFeature=null,this.autoCloseEnabled=!1,this.browseClusterEnabled=!1,this.content=null,this.defaultPopupTemplateEnabled=!1,this.featurePage=null,this.featuresPerPage=20,this.featureMenuOpen=!1,this.featureMenuTitle=null,this.featureViewModelAbilities=null,this.featureViewModels=[],this.highlightEnabled=!0,this.includeDefaultActions=!0,this.initialDisplayMode=`feature`,this.streamingFeatures=!1,this.selectedClusterBoundaryFeature=new t({symbol:new x({outline:{width:1.5,color:`cyan`},style:`none`})}),this.title=null,this.updateLocationEnabled=!1,this.view=null,this.visible=!1,this.zoomFactor=4,this.zoomToLocation=null,this._debouncedLocationUpdate=s(async e=>{this._cancelLocationUpdate();let t=new AbortController,{signal:n}=t;this._locationUpdateController=t,await this._locationUpdate(e,{signal:n}).catch(()=>{}).finally(()=>{this._locationUpdateController===t&&(this._locationUpdateController=null)})}),e?.suppressDeprecationWarning||r(o.getLogger(this),`esri.widgets.Features.FeaturesViewModel`,{version:`5.2`,replacement:`Use the Features (Next) component or the @arcgis/core/popup/FeatureContentCollection module instead.`,warnOnce:!0})}normalizeCtorArgs(e){let{suppressDeprecationWarning:t,...n}=e??{};return n}initialize(){this.addHandles([this.on(`view-change`,()=>this._autoClose()),u(()=>[this.highlightEnabled,this.selectedFeature,this.visible,this.view],()=>this._highlightSelectedFeature()),u(()=>[this.highlightEnabled,this.activeFeature,this.visible,this.view],()=>this._highlightActiveFeature()),u(()=>this.view?.animation?.state,e=>this._animationStateChange(e)),u(()=>this.location,e=>this._locationChange(e)),u(()=>this.selectedFeature,e=>this._selectedFeatureChange(e).catch(()=>{})),u(()=>[this.selectedFeatureIndex,this.featureCount,this.featuresPerPage],()=>this._selectedFeatureIndexChange()),u(()=>[this.featurePage,this.selectedFeatureIndex,this.featureCount,this.featuresPerPage,this.featureViewModels],()=>this._setGraphicOnFeatureViewModels()),u(()=>this.featureViewModels,()=>this._featureViewModelsChange()),this.on(`trigger-action`,e=>j({event:e,viewModel:this,view:this.view}).catch(()=>{})),d(()=>!this.waitingForResult,()=>this._waitingForResultChange(),f),u(()=>[this.features,this.map,this.spatialReference,this.timeZone],()=>this._updateFeatureVMs()),u(()=>this.view?.scale,()=>this._viewScaleChange()),d(()=>!this.visible,()=>this.browseClusterEnabled=!1),u(()=>this.browseClusterEnabled,e=>e?this.enableClusterBrowsing():this.disableClusterBrowsing())])}destroy(){this._cancelLocationUpdate(),this._cancelFetchingFeatures(),this._cancelCenterAtLocation(),this._cancelFeatureStream(),this._pendingPromises.clear(),this.browseClusterEnabled=!1,this.view=null,this.map=null,this.spatialReference=null,this.timeZone=null}get active(){return!(!this.visible||this.waitingForResult)}get allActions(){let e=this._get(`allActions`)||new D;e.removeAll();let{actions:t,defaultActions:n,defaultPopupTemplateEnabled:r,includeDefaultActions:i,selectedFeature:a}=this,o=i?n.concat(t):t,s=a&&(typeof a.getEffectivePopupTemplate==`function`&&a.getEffectivePopupTemplate(r)||a.popupTemplate),c=s?.actions;return(s?.overwriteActions?c:c?.concat(o)??o)?.filter(Boolean).forEach(t=>e.add(t)),e}get defaultActions(){let e=this._get(`defaultActions`)||new D;return e.removeAll(),e.addMany(M(this.selectedFeature)?V():B()),e}get featureCount(){return this.features.length}set features(e){if(this._get(`features`)===e)return;let t=e||[];this._set(`features`,t);let{pendingPromisesCount:n,promiseCount:r,selectedFeatureIndex:i}=this,a=r>0&&t.length>0,o=this._activeFeatureStream!=null&&t.length>0,s=a||o;if(this.initialDisplayMode===`list`){(!s||a&&n===r)&&(this.selectedFeatureIndex=-1);return}if(s&&i===-1){this.selectedFeatureIndex=0;return}s&&i!==-1||(this.selectedFeatureIndex=t.length?0:-1)}get featureStream(){return this._get(`featureStream`)||null}set featureStream(e){if(this._get(`featureStream`)===e||(this._set(`featureStream`,e),this._cancelFeatureStream(),!e))return;this.promises=[];let t=this._featureStreamVersion;this._activeFeatureStream=e,this._setStreamingFeatures(!0),this._consumeFeatureStream(e,t).catch(()=>{})}set location(e){let t=e,n=this.spatialReference?.isWebMercator;e?.spatialReference?.isWGS84&&n&&(t=y(e)),this._set(`location`,t)}get map(){return this.view?.map??null}set map(e){this._override(`map`,e)}get pendingPromisesCount(){return this._pendingPromises.size}get promiseCount(){return this.promises.length}get promises(){return this._get(`promises`)||[]}set promises(e){if(this._get(`promises`)!==e){if(this._cancelFeatureStream(),this._pendingPromises.clear(),this.features=[],!Array.isArray(e)||!e.length){this._set(`promises`,[]);return}this._set(`promises`,e),e=e.slice(),e.forEach(e=>this._pendingPromises.add(e)),e.reduce((e,t)=>e.finally(()=>t.then(e=>{this._pendingPromises.has(t)&&this._updateFeatures(e)}).finally(()=>this._pendingPromises.delete(t)).catch(()=>{})),Promise.resolve())}}get screenLocation(){return super.screenLocation}get selectedFeature(){let{features:e,selectedFeatureIndex:t}=this;return t===-1?null:e[t]||null}get selectedFeatureIndex(){let e=this._get(`selectedFeatureIndex`);return typeof e==`number`?e:-1}set selectedFeatureIndex(e){let{featureCount:t}=this;(isNaN(e)||e<0||!t)&&(e=-1),this.activeFeature=null,this._set(`selectedFeatureIndex`,e)}get selectedFeatureViewModel(){return this.featureViewModels[this.selectedFeatureIndex]||null}get spatialReference(){return this.view?.spatialReference??null}set spatialReference(e){this._override(`spatialReference`,e)}get state(){let{view:e,map:t}=this;return e?e.ready?`ready`:`disabled`:t?`ready`:`disabled`}get timeZone(){return this.view?.timeZone??C}set timeZone(e){this._overrideIfSome(`timeZone`,e)}get waitingForContents(){return this.featureViewModels.some(e=>e.waitingForContent)}get waitingForResult(){return!!((this._fetchFeaturesController||this.streamingFeatures||this.pendingPromisesCount>0)&&this.featureCount===0)}centerAtLocation(){let{view:e}=this,t=N(this);this._cancelCenterAtLocation();let n=new AbortController,{signal:r}=n;return this._centerAtLocationController=n,!t||!e?Promise.reject(new i(`center-at-location:invalid-target-or-view`,`Cannot center at a location without a target and view.`,{target:t,view:e})):this.callGoTo({target:{target:t,scale:e.scale},options:{signal:r}}).catch(e=>{c(e)||o.getLogger(this).error(e)})}zoomTo(e){return this.callGoTo(e)}clear(){this._cancelFeatureStream(),this.set({featureStream:null,promises:[],features:[],content:null,title:null,location:null,activeFeature:null})}fetchFeatures(e,t){let{view:n}=this;if(!n||!e)throw new i(`fetch-features:invalid-screenpoint-or-view`,`Cannot fetch features without a screenPoint and view.`,{screenPoint:e,view:n});return n.fetchPopupFeaturesLegacy(e,{pointerType:t?.event?.pointerType,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,signal:t?.signal})}open(e){this._cancelFeatureStream();let t={updateLocationEnabled:!1,promises:[],fetchFeatures:!1,...e,visible:!0},{fetchFeatures:n}=t;delete t.fetchFeatures,n&&!t.featureStream&&this._setFetchFeaturesPromises(t.location).catch(()=>{});for(let e of[`actionsMenuOpen`,`collapsed`,`shouldFocus`])delete t[e];this.set(t)}triggerAction(e){let t=this.allActions.at(e);t&&!t.disabled&&this.emit(`trigger-action`,{action:t})}next(){return this.selectedFeatureIndex=this._getRoundRobinIndex(this.selectedFeatureIndex+1,this.featureCount),this}previous(){return this.selectedFeatureIndex=this._getRoundRobinIndex(this.selectedFeatureIndex-1,this.featureCount),this}disableClusterBrowsing(){P(this),this._clearBrowsedClusterGraphics()}async enableClusterBrowsing(){let{view:e,selectedFeature:t}=this;if(e?.type!==`2d`){o.getLogger(this).warn(`enableClusterBrowsing:invalid-view: View must be 2d MapView.`,t);return}if(!M(t)){o.getLogger(this).warn(`enableClusterBrowsing:invalid-selectedFeature: Selected feature must represent an aggregate/cluster graphic.`,t);return}await F(this),await I(this)}async handleViewClick(e){return this._fetchFeaturesAndOpen(e)}_setStreamingFeatures(e){this._set(`streamingFeatures`,e)}_getRoundRobinIndex(e,t){return(e+t)%t}_animationStateChange(e){this.zoomToLocation||(O.disabled=e===`waiting-for-target`)}_clearBrowsedClusterGraphics(){let e=[this.selectedClusterBoundaryFeature,this._selectedClusterFeature].filter(n);this.view?.graphics?.removeMany(e),this._selectedClusterFeature=null,this.selectedClusterBoundaryFeature.geometry=null}_viewScaleChange(){if(M(this.selectedFeature)){this.browseClusterEnabled=!1,this.visible=!1,this.clear();return}this.browseClusterEnabled&&(this.features=this.selectedFeature?[this.selectedFeature]:[])}_locationChange(e){let{selectedFeature:t,updateLocationEnabled:n,view:r}=this;r&&!this._locationUpdateController&&n&&e&&(!t||t.geometry)&&this.centerAtLocation()}_selectedFeatureIndexChange(){this.featurePage=this.featureCount>0?Math.floor(this.selectedFeatureIndex/this.featuresPerPage)+1:null}_featureViewModelsChange(){this.featurePage=this.featureCount>0?1:null}_setGraphicOnFeatureViewModels(){let{features:e,featureCount:t,featurePage:n,featuresPerPage:r,featureViewModels:i}=this;if(n==null)return;let a=((n-1)*r+t)%t,o=a+r;i.slice(a,o).forEach((t,n)=>{t&&(t.graphic??=e[a+n])})}async _selectedFeatureChange(e){let{location:t,updateLocationEnabled:n,view:r}=this;if(!e||!r)return;if(this.browseClusterEnabled){if(this._selectedClusterFeature&&=(r.graphics.remove(this._selectedClusterFeature),null),M(e))return;e.symbol=await S(e),this._selectedClusterFeature=e,r.graphics.add(this._selectedClusterFeature);return}let i=e.sourceLayer?.type;if((i===`map-image`||i===`imagery`||i===`imagery-tile`)&&(e.symbol=await S(e)),(n||!t)&&e.geometry){if(e.geometry.type===`point`){this.location=e.geometry;return}let{labelPointExecute:t}=await import(`../../geometry/operators/labelPointOperator.js`);this.location=t(e.geometry);return}if(n&&!e.geometry){await this.centerAtLocation();let e=r.center?.clone();e&&(this.location=e)}}_waitingForResultChange(){!this.featureCount&&(this.promises.length>0||this.featureStream)&&(this.visible=!1)}async _setFetchFeaturesPromises(e){let{pendingFeatures:t}=await this._fetchFeaturesWithController({mapPoint:e});this.promises=t}_destroyFeatureVMs(){this.featureViewModels.forEach(e=>e&&!e.destroyed&&e.destroy()),this._set(`featureViewModels`,[])}_updateFeatureVMs(){let{selectedFeature:e,features:t,featureViewModels:n,view:r,spatialReference:i,map:a,timeZone:o,location:s}=this;if(M(t[0])||(this.browseClusterEnabled=!1),this._destroyFeatureVMs(),!t?.length)return;let c=n.slice(),l=[];t.forEach((t,n)=>{if(!t)return;let u=null;if(c.some((e,n)=>(e&&e.graphic===t&&(u=e,c.splice(n,1)),!!u)),u)l[n]=u;else{let c=new E({abilities:this.featureViewModelAbilities,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,spatialReference:i,graphic:t===e?t:null,location:s,map:a,view:r,timeZone:o,suppressDeprecationWarning:!0});l[n]=c}}),c.forEach(e=>e&&!e.destroyed&&e.destroy()),this._set(`featureViewModels`,l)}async _getScreenPoint(e,t){let{spatialReference:n,view:r}=this;if(!r)return null;await r?.when();let i=e?.spatialReference;return!i||!n?null:(await g(i,n,null,t),r.toScreen(e))}_cancelCenterAtLocation(){this._centerAtLocationController?.abort(),this._centerAtLocationController=null}_cancelFeatureStream(){this._featureStreamVersion++,this._setStreamingFeatures(!1);let e=this._activeFeatureStream;this._activeFeatureStream=null,this._get(`featureStream`)===e&&this._set(`featureStream`,null),e?.return&&e.return(void 0).catch(()=>{})}_cancelFetchingFeatures(){this._fetchFeaturesController?.abort(),this._fetchFeaturesController=null}async _consumeFeatureStream(e,t){try{for await(let n of e){if(t!==this._featureStreamVersion)return;this._updateFeatures([n])}}finally{this._activeFeatureStream===e&&(this._activeFeatureStream=null,this._setStreamingFeatures(!1),this._waitingForResultChange())}}async _projectScreenPointAndFetchFeatures({mapPoint:e,screenPoint:t,event:n,signal:r}){return this.fetchFeatures(t??await this._getScreenPoint(e??this.location,{signal:r}),{signal:r,event:n})}_fetchFeaturesWithController({mapPoint:e,screenPoint:t,event:n}){this._cancelFetchingFeatures();let r=new AbortController,{signal:i}=r;this._fetchFeaturesController=r;let a=this._projectScreenPointAndFetchFeatures({mapPoint:e,screenPoint:t,signal:i,event:n});return a.catch(()=>{}).finally(()=>{this._fetchFeaturesController===r&&(this._fetchFeaturesController=null)}),a}async _fetchFeaturesAndOpen(e){let{mapPoint:t}=e;this.removeHandles(z),this.addHandles([u(()=>this.view?.scale,()=>this._debouncedLocationUpdate(t).catch(e=>{c(e)||o.getLogger(this).error(e)})),d(()=>!this.visible,()=>{this.removeHandles(z)},{once:!0})],z);let{pendingFeatures:n}=await this._fetchFeaturesWithController({mapPoint:t,screenPoint:T(e),event:e});return{location:t??void 0,promises:n}}async _locationUpdate(e,t){let{spatialReference:n}=this,r=this.selectedFeature?.geometry?.type,i=this.location??e;if(r&&r!==`mesh`&&n&&i&&this.selectedFeature){if(r===`point`){let{labelPointExecute:e}=await import(`../../geometry/operators/labelPointOperator.js`);this.location=e(this.selectedFeature.geometry);return}try{let e=this.selectedFeature,r=e.geometry,a=this._getHighlightLayer(e),o=e.getObjectId();if(!a||!this.view)return;if(o){let e=this.view?.allLayerViews.find(e=>e.layer.uid===a.uid);if(!e||!(`queryFeatures`in e))return;let i=e.createQuery();i.outSpatialReference=n,i.objectIds=[o],i.returnGeometry=!0;let{features:s}=await e.queryFeatures(i,t);r=s[0]?.geometry}if(!r||r.type===`mesh`)return;r=_(r,n),H||=await Promise.all([import(`../../geometry/operators/intersectsOperator.js`),import(`../../geometry/operators/proximityOperator.js`)]);let[{intersectsExecute:s},{proximityGetNearestCoordinate:c}]=H;if(!s(r,i)){let t=c(r,i).coordinate??i;this.selectedFeature===e&&(this.location=t)}}catch(e){c(e)||o.getLogger(this).error(e)}}}_cancelLocationUpdate(){this._locationUpdateController?.abort(),this._locationUpdateController=null}_autoClose(){this.autoCloseEnabled&&(this.visible=!1)}async _getLayerView(e,t){return await e.when(),e.whenLayerView(t)}_getHighlightLayer(e){let{layer:t,sourceLayer:n}=e;return n&&`layer`in n&&n.layer?n.layer:n?.type===`map-notes`||n?.type===`sketch`||n?.type===`subtype-group`?n:t??n}_getHighlightLayerView(e,t){return t.type===`subtype-sublayer`&&t.parent&&this._mapIncludesLayer(t.parent)?this._getLayerView(e,t.parent):t&&this._mapIncludesLayer(t)?this._getLayerView(e,t):null}_getHighlightTarget(e,t,n){if(U(t.type,n))return e;let r=e.getObjectId();if(r!=null)return r;let i=t.type===`imagery`?void 0:`objectIdField`in t?t.objectIdField||b:null,a=e.attributes;return a&&i&&a[i]||e}_mapIncludesLayer(e){return!!this.map?.allLayers?.includes(e)}async _highlightFeature(e,t){this.removeHandles(e);let n=this[t];if(!n)return;let{highlightEnabled:r,view:i,visible:a}=this;if(!i||!r||!a)return;let o=this._getHighlightLayer(n);if(!o)return;let s=this._getHighlightLayerView(i,o);if(!s)return;this._highlightPromises[e]=s;let c=await s;if(!c||!w(c)||this._highlightPromises[e]!==s||!this[t]||!this.highlightEnabled)return;let l=c.highlight(this._getHighlightTarget(n,o,i.type));this.addHandles(l,e)}async _highlightActiveFeature(){return this._highlightFeature(`highlight-active-feature`,`activeFeature`)}async _highlightSelectedFeature(){return this._highlightFeature(`highlight-selected-feature`,`selectedFeature`)}_updateFeatures(e){let{features:t}=this,n=e.filter(e=>!t.includes(e));n?.length&&(this.features=t.concat(n))}};e([p()],W.prototype,`_fetchFeaturesController`,void 0),e([p({type:D})],W.prototype,`actions`,void 0),e([p({readOnly:!0})],W.prototype,`active`,null),e([p()],W.prototype,`activeFeature`,void 0),e([p({readOnly:!0})],W.prototype,`allActions`,null),e([p()],W.prototype,`autoCloseEnabled`,void 0),e([p()],W.prototype,`browseClusterEnabled`,void 0),e([p()],W.prototype,`content`,void 0),e([p({type:D,readOnly:!0})],W.prototype,`defaultActions`,null),e([p({type:Boolean})],W.prototype,`defaultPopupTemplateEnabled`,void 0),e([p({readOnly:!0})],W.prototype,`featureCount`,null),e([p()],W.prototype,`featurePage`,void 0),e([p({value:[]})],W.prototype,`features`,null),e([p()],W.prototype,`featuresPerPage`,void 0),e([p()],W.prototype,`featureStream`,null),e([p()],W.prototype,`featureMenuOpen`,void 0),e([p()],W.prototype,`featureMenuTitle`,void 0),e([p()],W.prototype,`featureViewModelAbilities`,void 0),e([p({readOnly:!0})],W.prototype,`featureViewModels`,void 0),e([p()],W.prototype,`highlightEnabled`,void 0),e([p()],W.prototype,`includeDefaultActions`,void 0),e([p()],W.prototype,`initialDisplayMode`,void 0),e([p({type:h})],W.prototype,`location`,null),e([p()],W.prototype,`map`,null),e([p({readOnly:!0})],W.prototype,`streamingFeatures`,void 0),e([p({readOnly:!0})],W.prototype,`pendingPromisesCount`,null),e([p({readOnly:!0})],W.prototype,`promiseCount`,null),e([p()],W.prototype,`promises`,null),e([p({readOnly:!0})],W.prototype,`selectedClusterBoundaryFeature`,void 0),e([p({value:null,readOnly:!0})],W.prototype,`selectedFeature`,null),e([p({value:-1})],W.prototype,`selectedFeatureIndex`,null),e([p({readOnly:!0})],W.prototype,`selectedFeatureViewModel`,null),e([p({type:v})],W.prototype,`spatialReference`,null),e([p({readOnly:!0})],W.prototype,`state`,null),e([p()],W.prototype,`timeZone`,null),e([p()],W.prototype,`title`,void 0),e([p()],W.prototype,`updateLocationEnabled`,void 0),e([p()],W.prototype,`view`,void 0),e([p()],W.prototype,`visible`,void 0),e([p({readOnly:!0})],W.prototype,`waitingForContents`,null),e([p({readOnly:!0})],W.prototype,`waitingForResult`,null),e([p()],W.prototype,`zoomFactor`,void 0),e([p()],W.prototype,`zoomToLocation`,void 0),e([p()],W.prototype,`centerAtLocation`,null),W=e([m(`esri.widgets.Features.FeaturesViewModel`)],W);export{W as default};
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../Graphic.js";import{isSome as n}from"../../core/arrayUtils.js";import{deprecatedModule as r}from"../../core/deprecate.js";import i from"../../core/Error.js";import{EventedAccessor as a}from"../../core/Evented.js";import o from"../../core/Logger.js";import{debounce as s,isAbortError as c}from"../../core/promiseUtils.js";import l from"../../core/ReactiveSet.js";import{watch as u,when as d,sync as f}from"../../core/reactiveUtils.js";import{property as p,subclass as m}from"../../core/accessorSupport/decorators.js";import h from"../../geometry/Point.js";import{initializeProjection as g,project as _}from"../../geometry/projectionUtils.js";import v from"../../geometry/SpatialReference.js";import{geographicToWebMercator as y}from"../../geometry/support/webMercatorUtils.js";import{fallbackObjectIDAttribute as b}from"../../layers/LayerConstants.js";import x from"../../symbols/SimpleFillSymbol.js";import{getDisplayedSymbol as S}from"../../symbols/support/symbolUtils.js";import{system as C}from"../../time/constants.js";import{highlightsSupported as w}from"../../views/support/layerViewUtils.js";import{createScreenPointFromEvent as T}from"../../views/support/screenUtils.js";import E from"../Feature/FeatureViewModel.js";import{ActionsCollection as D,zoomToFeature as O,zoomToClusteredFeatures as k,browseClusteredFeatures as A}from"../Popup/actions.js";import{triggerAction as j,isClusterFeature as M,getSelectedTarget as N,removeClusteredFeaturesForBrowsing as P,displayClusterExtent as F,browseAggregateFeatures as I}from"../Popup/actionUtils.js";import{AnchorElementViewModelMixin as L}from"../support/AnchorElementViewModel.js";import{GoTo as R}from"../support/GoTo.js";const z=`location-scale-handle`,B=()=>[O.clone()],V=()=>[k.clone(),A.clone()];let H=null;function U(e,t){return e===`building-scene`||e===`map-image`||e===`tile`||e===`imagery`||t===`2d`&&e===`imagery-tile`}let W=class extends R(L(a)){constructor(e){super(e),this._pendingPromises=new l,this._fetchFeaturesController=null,this._centerAtLocationController=null,this._locationUpdateController=null,this._highlightPromises={"highlight-active-feature":null,"highlight-selected-feature":null},this._selectedClusterFeature=null,this._featureStreamVersion=0,this._activeFeatureStream=null,this.actions=new D,this.activeFeature=null,this.autoCloseEnabled=!1,this.browseClusterEnabled=!1,this.content=null,this.defaultPopupTemplateEnabled=!1,this.featurePage=null,this.featuresPerPage=20,this.featureMenuOpen=!1,this.featureMenuTitle=null,this.featureViewModelAbilities=null,this.featureViewModels=[],this.highlightEnabled=!0,this.includeDefaultActions=!0,this.initialDisplayMode=`feature`,this.streamingFeatures=!1,this.selectedClusterBoundaryFeature=new t({symbol:new x({outline:{width:1.5,color:`cyan`},style:`none`})}),this.title=null,this.updateLocationEnabled=!1,this.view=null,this.visible=!1,this.zoomFactor=4,this.zoomToLocation=null,this._debouncedLocationUpdate=s(async e=>{this._cancelLocationUpdate();let t=new AbortController,{signal:n}=t;this._locationUpdateController=t,await this._locationUpdate(e,{signal:n}).catch(()=>{}).finally(()=>{this._locationUpdateController===t&&(this._locationUpdateController=null)})}),e?.suppressDeprecationWarning||r(o.getLogger(this),`esri.widgets.Features.FeaturesViewModel`,{version:`5.2`,replacement:`Use the Features (Next) component or the @arcgis/core/popup/FeaturesModel module instead.`,warnOnce:!0})}normalizeCtorArgs(e){let{suppressDeprecationWarning:t,...n}=e??{};return n}initialize(){this.addHandles([this.on(`view-change`,()=>this._autoClose()),u(()=>[this.highlightEnabled,this.selectedFeature,this.visible,this.view],()=>this._highlightSelectedFeature()),u(()=>[this.highlightEnabled,this.activeFeature,this.visible,this.view],()=>this._highlightActiveFeature()),u(()=>this.view?.animation?.state,e=>this._animationStateChange(e)),u(()=>this.location,e=>this._locationChange(e)),u(()=>this.selectedFeature,e=>this._selectedFeatureChange(e).catch(()=>{})),u(()=>[this.selectedFeatureIndex,this.featureCount,this.featuresPerPage],()=>this._selectedFeatureIndexChange()),u(()=>[this.featurePage,this.selectedFeatureIndex,this.featureCount,this.featuresPerPage,this.featureViewModels],()=>this._setGraphicOnFeatureViewModels()),u(()=>this.featureViewModels,()=>this._featureViewModelsChange()),this.on(`trigger-action`,e=>j({event:e,viewModel:this,view:this.view}).catch(()=>{})),d(()=>!this.waitingForResult,()=>this._waitingForResultChange(),f),u(()=>[this.features,this.map,this.spatialReference,this.timeZone],()=>this._updateFeatureVMs()),u(()=>this.view?.scale,()=>this._viewScaleChange()),d(()=>!this.visible,()=>this.browseClusterEnabled=!1),u(()=>this.browseClusterEnabled,e=>e?this.enableClusterBrowsing():this.disableClusterBrowsing())])}destroy(){this._cancelLocationUpdate(),this._cancelFetchingFeatures(),this._cancelCenterAtLocation(),this._cancelFeatureStream(),this._pendingPromises.clear(),this.browseClusterEnabled=!1,this.view=null,this.map=null,this.spatialReference=null,this.timeZone=null}get active(){return!(!this.visible||this.waitingForResult)}get allActions(){let e=this._get(`allActions`)||new D;e.removeAll();let{actions:t,defaultActions:n,defaultPopupTemplateEnabled:r,includeDefaultActions:i,selectedFeature:a}=this,o=i?n.concat(t):t,s=a&&(typeof a.getEffectivePopupTemplate==`function`&&a.getEffectivePopupTemplate(r)||a.popupTemplate),c=s?.actions;return(s?.overwriteActions?c:c?.concat(o)??o)?.filter(Boolean).forEach(t=>e.add(t)),e}get defaultActions(){let e=this._get(`defaultActions`)||new D;return e.removeAll(),e.addMany(M(this.selectedFeature)?V():B()),e}get featureCount(){return this.features.length}set features(e){if(this._get(`features`)===e)return;let t=e||[];this._set(`features`,t);let{pendingPromisesCount:n,promiseCount:r,selectedFeatureIndex:i}=this,a=r>0&&t.length>0,o=this._activeFeatureStream!=null&&t.length>0,s=a||o;if(this.initialDisplayMode===`list`){(!s||a&&n===r)&&(this.selectedFeatureIndex=-1);return}if(s&&i===-1){this.selectedFeatureIndex=0;return}s&&i!==-1||(this.selectedFeatureIndex=t.length?0:-1)}get featureStream(){return this._get(`featureStream`)||null}set featureStream(e){if(this._get(`featureStream`)===e||(this._set(`featureStream`,e),this._cancelFeatureStream(),!e))return;this.promises=[];let t=this._featureStreamVersion;this._activeFeatureStream=e,this._setStreamingFeatures(!0),this._consumeFeatureStream(e,t).catch(()=>{})}set location(e){let t=e,n=this.spatialReference?.isWebMercator;e?.spatialReference?.isWGS84&&n&&(t=y(e)),this._set(`location`,t)}get map(){return this.view?.map??null}set map(e){this._override(`map`,e)}get pendingPromisesCount(){return this._pendingPromises.size}get promiseCount(){return this.promises.length}get promises(){return this._get(`promises`)||[]}set promises(e){if(this._get(`promises`)!==e){if(this._cancelFeatureStream(),this._pendingPromises.clear(),this.features=[],!Array.isArray(e)||!e.length){this._set(`promises`,[]);return}this._set(`promises`,e),e=e.slice(),e.forEach(e=>this._pendingPromises.add(e)),e.reduce((e,t)=>e.finally(()=>t.then(e=>{this._pendingPromises.has(t)&&this._updateFeatures(e)}).finally(()=>this._pendingPromises.delete(t)).catch(()=>{})),Promise.resolve())}}get screenLocation(){return super.screenLocation}get selectedFeature(){let{features:e,selectedFeatureIndex:t}=this;return t===-1?null:e[t]||null}get selectedFeatureIndex(){let e=this._get(`selectedFeatureIndex`);return typeof e==`number`?e:-1}set selectedFeatureIndex(e){let{featureCount:t}=this;(isNaN(e)||e<0||!t)&&(e=-1),this.activeFeature=null,this._set(`selectedFeatureIndex`,e)}get selectedFeatureViewModel(){return this.featureViewModels[this.selectedFeatureIndex]||null}get spatialReference(){return this.view?.spatialReference??null}set spatialReference(e){this._override(`spatialReference`,e)}get state(){let{view:e,map:t}=this;return e?e.ready?`ready`:`disabled`:t?`ready`:`disabled`}get timeZone(){return this.view?.timeZone??C}set timeZone(e){this._overrideIfSome(`timeZone`,e)}get waitingForContents(){return this.featureViewModels.some(e=>e.waitingForContent)}get waitingForResult(){return!!((this._fetchFeaturesController||this.streamingFeatures||this.pendingPromisesCount>0)&&this.featureCount===0)}centerAtLocation(){let{view:e}=this,t=N(this);this._cancelCenterAtLocation();let n=new AbortController,{signal:r}=n;return this._centerAtLocationController=n,!t||!e?Promise.reject(new i(`center-at-location:invalid-target-or-view`,`Cannot center at a location without a target and view.`,{target:t,view:e})):this.callGoTo({target:{target:t,scale:e.scale},options:{signal:r}}).catch(e=>{c(e)||o.getLogger(this).error(e)})}zoomTo(e){return this.callGoTo(e)}clear(){this._cancelFeatureStream(),this.set({featureStream:null,promises:[],features:[],content:null,title:null,location:null,activeFeature:null})}fetchFeatures(e,t){let{view:n}=this;if(!n||!e)throw new i(`fetch-features:invalid-screenpoint-or-view`,`Cannot fetch features without a screenPoint and view.`,{screenPoint:e,view:n});return n.fetchPopupFeaturesLegacy(e,{pointerType:t?.event?.pointerType,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,signal:t?.signal})}open(e){this._cancelFeatureStream();let t={updateLocationEnabled:!1,promises:[],fetchFeatures:!1,...e,visible:!0},{fetchFeatures:n}=t;delete t.fetchFeatures,n&&!t.featureStream&&this._setFetchFeaturesPromises(t.location).catch(()=>{});for(let e of[`actionsMenuOpen`,`collapsed`,`shouldFocus`])delete t[e];this.set(t)}triggerAction(e){let t=this.allActions.at(e);t&&!t.disabled&&this.emit(`trigger-action`,{action:t})}next(){return this.selectedFeatureIndex=this._getRoundRobinIndex(this.selectedFeatureIndex+1,this.featureCount),this}previous(){return this.selectedFeatureIndex=this._getRoundRobinIndex(this.selectedFeatureIndex-1,this.featureCount),this}disableClusterBrowsing(){P(this),this._clearBrowsedClusterGraphics()}async enableClusterBrowsing(){let{view:e,selectedFeature:t}=this;if(e?.type!==`2d`){o.getLogger(this).warn(`enableClusterBrowsing:invalid-view: View must be 2d MapView.`,t);return}if(!M(t)){o.getLogger(this).warn(`enableClusterBrowsing:invalid-selectedFeature: Selected feature must represent an aggregate/cluster graphic.`,t);return}await F(this),await I(this)}async handleViewClick(e){return this._fetchFeaturesAndOpen(e)}_setStreamingFeatures(e){this._set(`streamingFeatures`,e)}_getRoundRobinIndex(e,t){return(e+t)%t}_animationStateChange(e){this.zoomToLocation||(O.disabled=e===`waiting-for-target`)}_clearBrowsedClusterGraphics(){let e=[this.selectedClusterBoundaryFeature,this._selectedClusterFeature].filter(n);this.view?.graphics?.removeMany(e),this._selectedClusterFeature=null,this.selectedClusterBoundaryFeature.geometry=null}_viewScaleChange(){if(M(this.selectedFeature)){this.browseClusterEnabled=!1,this.visible=!1,this.clear();return}this.browseClusterEnabled&&(this.features=this.selectedFeature?[this.selectedFeature]:[])}_locationChange(e){let{selectedFeature:t,updateLocationEnabled:n,view:r}=this;r&&!this._locationUpdateController&&n&&e&&(!t||t.geometry)&&this.centerAtLocation()}_selectedFeatureIndexChange(){this.featurePage=this.featureCount>0?Math.floor(this.selectedFeatureIndex/this.featuresPerPage)+1:null}_featureViewModelsChange(){this.featurePage=this.featureCount>0?1:null}_setGraphicOnFeatureViewModels(){let{features:e,featureCount:t,featurePage:n,featuresPerPage:r,featureViewModels:i}=this;if(n==null)return;let a=((n-1)*r+t)%t,o=a+r;i.slice(a,o).forEach((t,n)=>{t&&(t.graphic??=e[a+n])})}async _selectedFeatureChange(e){let{location:t,updateLocationEnabled:n,view:r}=this;if(!e||!r)return;if(this.browseClusterEnabled){if(this._selectedClusterFeature&&=(r.graphics.remove(this._selectedClusterFeature),null),M(e))return;e.symbol=await S(e),this._selectedClusterFeature=e,r.graphics.add(this._selectedClusterFeature);return}let i=e.sourceLayer?.type;if((i===`map-image`||i===`imagery`||i===`imagery-tile`)&&(e.symbol=await S(e)),(n||!t)&&e.geometry){if(e.geometry.type===`point`){this.location=e.geometry;return}let{labelPointExecute:t}=await import(`../../geometry/operators/labelPointOperator.js`);this.location=t(e.geometry);return}if(n&&!e.geometry){await this.centerAtLocation();let e=r.center?.clone();e&&(this.location=e)}}_waitingForResultChange(){!this.featureCount&&(this.promises.length>0||this.featureStream)&&(this.visible=!1)}async _setFetchFeaturesPromises(e){let{pendingFeatures:t}=await this._fetchFeaturesWithController({mapPoint:e});this.promises=t}_destroyFeatureVMs(){this.featureViewModels.forEach(e=>e&&!e.destroyed&&e.destroy()),this._set(`featureViewModels`,[])}_updateFeatureVMs(){let{selectedFeature:e,features:t,featureViewModels:n,view:r,spatialReference:i,map:a,timeZone:o,location:s}=this;if(M(t[0])||(this.browseClusterEnabled=!1),this._destroyFeatureVMs(),!t?.length)return;let c=n.slice(),l=[];t.forEach((t,n)=>{if(!t)return;let u=null;if(c.some((e,n)=>(e&&e.graphic===t&&(u=e,c.splice(n,1)),!!u)),u)l[n]=u;else{let c=new E({abilities:this.featureViewModelAbilities,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,spatialReference:i,graphic:t===e?t:null,location:s,map:a,view:r,timeZone:o,suppressDeprecationWarning:!0});l[n]=c}}),c.forEach(e=>e&&!e.destroyed&&e.destroy()),this._set(`featureViewModels`,l)}async _getScreenPoint(e,t){let{spatialReference:n,view:r}=this;if(!r)return null;await r?.when();let i=e?.spatialReference;return!i||!n?null:(await g(i,n,null,t),r.toScreen(e))}_cancelCenterAtLocation(){this._centerAtLocationController?.abort(),this._centerAtLocationController=null}_cancelFeatureStream(){this._featureStreamVersion++,this._setStreamingFeatures(!1);let e=this._activeFeatureStream;this._activeFeatureStream=null,this._get(`featureStream`)===e&&this._set(`featureStream`,null),e?.return&&e.return(void 0).catch(()=>{})}_cancelFetchingFeatures(){this._fetchFeaturesController?.abort(),this._fetchFeaturesController=null}async _consumeFeatureStream(e,t){try{for await(let n of e){if(t!==this._featureStreamVersion)return;this._updateFeatures([n])}}finally{this._activeFeatureStream===e&&(this._activeFeatureStream=null,this._setStreamingFeatures(!1),this._waitingForResultChange())}}async _projectScreenPointAndFetchFeatures({mapPoint:e,screenPoint:t,event:n,signal:r}){return this.fetchFeatures(t??await this._getScreenPoint(e??this.location,{signal:r}),{signal:r,event:n})}_fetchFeaturesWithController({mapPoint:e,screenPoint:t,event:n}){this._cancelFetchingFeatures();let r=new AbortController,{signal:i}=r;this._fetchFeaturesController=r;let a=this._projectScreenPointAndFetchFeatures({mapPoint:e,screenPoint:t,signal:i,event:n});return a.catch(()=>{}).finally(()=>{this._fetchFeaturesController===r&&(this._fetchFeaturesController=null)}),a}async _fetchFeaturesAndOpen(e){let{mapPoint:t}=e;this.removeHandles(z),this.addHandles([u(()=>this.view?.scale,()=>this._debouncedLocationUpdate(t).catch(e=>{c(e)||o.getLogger(this).error(e)})),d(()=>!this.visible,()=>{this.removeHandles(z)},{once:!0})],z);let{pendingFeatures:n}=await this._fetchFeaturesWithController({mapPoint:t,screenPoint:T(e),event:e});return{location:t??void 0,promises:n}}async _locationUpdate(e,t){let{spatialReference:n}=this,r=this.selectedFeature?.geometry?.type,i=this.location??e;if(r&&r!==`mesh`&&n&&i&&this.selectedFeature){if(r===`point`){let{labelPointExecute:e}=await import(`../../geometry/operators/labelPointOperator.js`);this.location=e(this.selectedFeature.geometry);return}try{let e=this.selectedFeature,r=e.geometry,a=this._getHighlightLayer(e),o=e.getObjectId();if(!a||!this.view)return;if(o){let e=this.view?.allLayerViews.find(e=>e.layer.uid===a.uid);if(!e||!(`queryFeatures`in e))return;let i=e.createQuery();i.outSpatialReference=n,i.objectIds=[o],i.returnGeometry=!0;let{features:s}=await e.queryFeatures(i,t);r=s[0]?.geometry}if(!r||r.type===`mesh`)return;r=_(r,n),H||=await Promise.all([import(`../../geometry/operators/intersectsOperator.js`),import(`../../geometry/operators/proximityOperator.js`)]);let[{intersectsExecute:s},{proximityGetNearestCoordinate:c}]=H;if(!s(r,i)){let t=c(r,i).coordinate??i;this.selectedFeature===e&&(this.location=t)}}catch(e){c(e)||o.getLogger(this).error(e)}}}_cancelLocationUpdate(){this._locationUpdateController?.abort(),this._locationUpdateController=null}_autoClose(){this.autoCloseEnabled&&(this.visible=!1)}async _getLayerView(e,t){return await e.when(),e.whenLayerView(t)}_getHighlightLayer(e){let{layer:t,sourceLayer:n}=e;return n&&`layer`in n&&n.layer?n.layer:n?.type===`map-notes`||n?.type===`sketch`||n?.type===`subtype-group`?n:t??n}_getHighlightLayerView(e,t){return t.type===`subtype-sublayer`&&t.parent&&this._mapIncludesLayer(t.parent)?this._getLayerView(e,t.parent):t&&this._mapIncludesLayer(t)?this._getLayerView(e,t):null}_getHighlightTarget(e,t,n){if(U(t.type,n))return e;let r=e.getObjectId();if(r!=null)return r;let i=t.type===`imagery`?void 0:`objectIdField`in t?t.objectIdField||b:null,a=e.attributes;return a&&i&&a[i]||e}_mapIncludesLayer(e){return!!this.map?.allLayers?.includes(e)}async _highlightFeature(e,t){this.removeHandles(e);let n=this[t];if(!n)return;let{highlightEnabled:r,view:i,visible:a}=this;if(!i||!r||!a)return;let o=this._getHighlightLayer(n);if(!o)return;let s=this._getHighlightLayerView(i,o);if(!s)return;this._highlightPromises[e]=s;let c=await s;if(!c||!w(c)||this._highlightPromises[e]!==s||!this[t]||!this.highlightEnabled)return;let l=c.highlight(this._getHighlightTarget(n,o,i.type));this.addHandles(l,e)}async _highlightActiveFeature(){return this._highlightFeature(`highlight-active-feature`,`activeFeature`)}async _highlightSelectedFeature(){return this._highlightFeature(`highlight-selected-feature`,`selectedFeature`)}_updateFeatures(e){let{features:t}=this,n=e.filter(e=>!t.includes(e));n?.length&&(this.features=t.concat(n))}};e([p()],W.prototype,`_fetchFeaturesController`,void 0),e([p({type:D})],W.prototype,`actions`,void 0),e([p({readOnly:!0})],W.prototype,`active`,null),e([p()],W.prototype,`activeFeature`,void 0),e([p({readOnly:!0})],W.prototype,`allActions`,null),e([p()],W.prototype,`autoCloseEnabled`,void 0),e([p()],W.prototype,`browseClusterEnabled`,void 0),e([p()],W.prototype,`content`,void 0),e([p({type:D,readOnly:!0})],W.prototype,`defaultActions`,null),e([p({type:Boolean})],W.prototype,`defaultPopupTemplateEnabled`,void 0),e([p({readOnly:!0})],W.prototype,`featureCount`,null),e([p()],W.prototype,`featurePage`,void 0),e([p({value:[]})],W.prototype,`features`,null),e([p()],W.prototype,`featuresPerPage`,void 0),e([p()],W.prototype,`featureStream`,null),e([p()],W.prototype,`featureMenuOpen`,void 0),e([p()],W.prototype,`featureMenuTitle`,void 0),e([p()],W.prototype,`featureViewModelAbilities`,void 0),e([p({readOnly:!0})],W.prototype,`featureViewModels`,void 0),e([p()],W.prototype,`highlightEnabled`,void 0),e([p()],W.prototype,`includeDefaultActions`,void 0),e([p()],W.prototype,`initialDisplayMode`,void 0),e([p({type:h})],W.prototype,`location`,null),e([p()],W.prototype,`map`,null),e([p({readOnly:!0})],W.prototype,`streamingFeatures`,void 0),e([p({readOnly:!0})],W.prototype,`pendingPromisesCount`,null),e([p({readOnly:!0})],W.prototype,`promiseCount`,null),e([p()],W.prototype,`promises`,null),e([p({readOnly:!0})],W.prototype,`selectedClusterBoundaryFeature`,void 0),e([p({value:null,readOnly:!0})],W.prototype,`selectedFeature`,null),e([p({value:-1})],W.prototype,`selectedFeatureIndex`,null),e([p({readOnly:!0})],W.prototype,`selectedFeatureViewModel`,null),e([p({type:v})],W.prototype,`spatialReference`,null),e([p({readOnly:!0})],W.prototype,`state`,null),e([p()],W.prototype,`timeZone`,null),e([p()],W.prototype,`title`,void 0),e([p()],W.prototype,`updateLocationEnabled`,void 0),e([p()],W.prototype,`view`,void 0),e([p()],W.prototype,`visible`,void 0),e([p({readOnly:!0})],W.prototype,`waitingForContents`,null),e([p({readOnly:!0})],W.prototype,`waitingForResult`,null),e([p()],W.prototype,`zoomFactor`,void 0),e([p()],W.prototype,`zoomToLocation`,void 0),e([p()],W.prototype,`centerAtLocation`,null),W=e([m(`esri.widgets.Features.FeaturesViewModel`)],W);export{W as default};
|
|
@@ -4,10 +4,10 @@ import type { EventedAccessor } from "../../core/Evented.js";
|
|
|
4
4
|
import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js";
|
|
5
5
|
import type { Action, ListItemModifier, State } from "./types.js";
|
|
6
6
|
|
|
7
|
-
/** @deprecated since 5.2. Use [
|
|
7
|
+
/** @deprecated since 5.2. Use [LayerListModelProperties](https://developers.arcgis.com/javascript/latest/references/core/layerList/types/#LayerListModelProperties) instead. */
|
|
8
8
|
export interface LayerListViewModelProperties extends Partial<Pick<LayerListViewModel, "checkPublishStatusEnabled" | "listItemCreatedFunction" | "listModeDisabled" | "view">> {}
|
|
9
9
|
|
|
10
|
-
/** @deprecated since 5.2. Use [
|
|
10
|
+
/** @deprecated since 5.2. Use [LayerListModelEvents](https://developers.arcgis.com/javascript/latest/references/core/layerList/LayerListModel/#LayerListModelEvents) instead. */
|
|
11
11
|
export interface LayerListViewModelEvents {
|
|
12
12
|
/**
|
|
13
13
|
* Emitted when the user clicks an [action](https://developers.arcgis.com/javascript/latest/references/core/support/actions/ActionButton/) or
|
|
@@ -26,7 +26,7 @@ export interface LayerListViewModelEvents {
|
|
|
26
26
|
/**
|
|
27
27
|
* The event object for the `trigger-action` event in the layer lists.
|
|
28
28
|
*
|
|
29
|
-
* @deprecated since 5.2. Use [
|
|
29
|
+
* @deprecated since 5.2. Use [LayerListModelTriggerActionEvent](https://developers.arcgis.com/javascript/latest/references/core/layerList/types/#LayerListModelTriggerActionEvent) instead.
|
|
30
30
|
* @see [BasemapLayerList.@trigger-action](https://developers.arcgis.com/javascript/latest/references/core/widgets/BasemapLayerList/#event-trigger-action)
|
|
31
31
|
* @see [CatalogLayerList.@trigger-action](https://developers.arcgis.com/javascript/latest/references/core/widgets/CatalogLayerList/#event-trigger-action)
|
|
32
32
|
* @see [CatalogLayerListViewModel.@trigger-action](https://developers.arcgis.com/javascript/latest/references/core/widgets/CatalogLayerList/CatalogLayerListViewModel/#event-trigger-action)
|
|
@@ -45,7 +45,7 @@ export interface LayerListViewModelTriggerActionEvent {
|
|
|
45
45
|
* To hide layers in the map from the LayerList widget, set the
|
|
46
46
|
* [Layer.listMode](https://developers.arcgis.com/javascript/latest/references/core/layers/Layer/#listMode) property on the layer(s) to `hide`.
|
|
47
47
|
*
|
|
48
|
-
* @deprecated since 5.2. Use [
|
|
48
|
+
* @deprecated since 5.2. Use [LayerListModel](https://developers.arcgis.com/javascript/latest/references/core/layerList/LayerListModel/) instead.
|
|
49
49
|
* @since 4.2
|
|
50
50
|
* @see [LayerList](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/) widget
|
|
51
51
|
* @see [Layer List component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list/)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../core/Collection.js";import{deprecatedModule as n}from"../../core/deprecate.js";import{EventedAccessor as r}from"../../core/Evented.js";import i from"../../core/Logger.js";import{watch as a,initial as o}from"../../core/reactiveUtils.js";import{property as s,subclass as c}from"../../core/accessorSupport/decorators.js";import{isLinkChartView as l}from"../../linkChart/guards.js";import u from"./ListItem.js";import{getItemLayers as d,findLayerListMode as f}from"./support/layerListUtils.js";const p={view:`view`,viewLayers:`view-layers`,mapLayers:`map-layers`,layerViews:`layer-views`,layerListMode:`layer-list-mode`},m=t.ofType(u);let h=class extends r{constructor(e){super(e),this.checkPublishStatusEnabled=!1,this.listItemCreatedFunction=null,this.listModeDisabled=!1,this.operationalItems=new m,this.view=null,e?.suppressDeprecationWarning||n(i.getLogger(this),`esri.widgets.LayerList.LayerListViewModel`,{version:`5.2`,replacement:`Use the Layer List (Next) component or the @arcgis/core/
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../core/Collection.js";import{deprecatedModule as n}from"../../core/deprecate.js";import{EventedAccessor as r}from"../../core/Evented.js";import i from"../../core/Logger.js";import{watch as a,initial as o}from"../../core/reactiveUtils.js";import{property as s,subclass as c}from"../../core/accessorSupport/decorators.js";import{isLinkChartView as l}from"../../linkChart/guards.js";import u from"./ListItem.js";import{getItemLayers as d,findLayerListMode as f}from"./support/layerListUtils.js";const p={view:`view`,viewLayers:`view-layers`,mapLayers:`map-layers`,layerViews:`layer-views`,layerListMode:`layer-list-mode`},m=t.ofType(u);let h=class extends r{constructor(e){super(e),this.checkPublishStatusEnabled=!1,this.listItemCreatedFunction=null,this.listModeDisabled=!1,this.operationalItems=new m,this.view=null,e?.suppressDeprecationWarning||n(i.getLogger(this),`esri.widgets.LayerList.LayerListViewModel`,{version:`5.2`,replacement:`Use the Layer List (Next) component or the @arcgis/core/layerList/LayerListModel module instead.`,see:`https://esriurl.com/LayerListModel/`,warnOnce:!0})}normalizeCtorArgs(e){let{suppressDeprecationWarning:t,...n}=e??{};return n}initialize(){this.addHandles([a(()=>this.view?.ready===!0,()=>this._viewHandles(),o),a(()=>[this.listItemCreatedFunction,this.checkPublishStatusEnabled,this.listModeDisabled],()=>this._recompileList()),a(()=>l(this.view)?this.view.inGeographicLayout:null,()=>this._compileList())],p.view)}destroy(){this._removeAllItems(),this.view=null}get state(){let{view:e}=this;return e?.ready?`ready`:e?`loading`:`disabled`}get totalItems(){return this.operationalItems.flatten(e=>e.children).length}triggerAction(e,t){e&&!e.disabled&&this.emit(`trigger-action`,{action:e,item:t})}moveListItem(e,t,n,r){let i=e?.layer;if(!i||i.type===`subtype-sublayer`||i.type===`sublayer`)return;let a=this.view?.map?.layers,o=t?d(t):a,s=n?d(n):a;if(!o||!s)return;let{operationalItems:c}=this,l=t?.children||c,u=n?.children||c,f=s.length-r;e.parent=n||null,l.remove(e),o.remove(i),u.includes(e)||u.add(e,f),s.includes(i)||s.add(i,f),this._compileList()}_createLayerViewHandles(e){this.removeHandles(p.layerViews),this._compileList(),e&&this.addHandles(e.on(`change`,()=>this._compileList()),p.layerViews)}_createMapLayerHandles(e){this.removeHandles(p.mapLayers),this._compileList(),e&&this.addHandles(e.on(`change`,()=>this._compileList()),p.mapLayers)}_createListItem(e){let{view:t,listItemCreatedFunction:n,checkPublishStatusEnabled:r,listModeDisabled:i}=this;return new u({checkPublishStatusEnabled:r,listModeDisabled:i,layer:e,listItemCreatedFunction:n,view:t})}_removeAllItems(){this.operationalItems.destroyAll()}_getViewableLayers(e){return e?this.listModeDisabled?e:e.filter(e=>f(e)!==`hide`):void 0}_watchLayersListMode(e){this.removeHandles(p.layerListMode),e&&!this.listModeDisabled&&this.addHandles(a(()=>e.filter(e=>`listMode`in e).map(e=>e.listMode).toArray(),()=>this._compileList()),p.layerListMode)}_compileList(){let e=this.view?.map?.layers,t=l(this.view)&&!this.view.inGeographicLayout?e?.filter(({type:e})=>e===`link-chart`):e;this._watchLayersListMode(t);let n=this._getViewableLayers(t);if(!n?.length){this._removeAllItems();return}this._createNewItems(n),this._removeItems(n),this._sortItems(n)}_createNewItems(e){let{operationalItems:t}=this;e.forEach(e=>{t.some(t=>t.layer===e)||t.add(this._createListItem(e))})}_removeItems(e){let{operationalItems:t}=this,n=[];t.forEach(t=>{t&&e&&e.includes(t.layer)||n.push(t)}),t.destroyMany(n)}_sortItems(e){let{operationalItems:t}=this;t.sort((t,n)=>{let r=e.indexOf(t.layer),i=e.indexOf(n.layer);return r>i?-1:+(r<i)})}_recompileList(){this._removeAllItems(),this._compileList()}_viewHandles(){let{view:e}=this;if(this.removeHandles([p.mapLayers,p.layerViews,p.viewLayers]),!e?.ready){this._removeAllItems();return}this.addHandles([a(()=>this.view?.map?.layers,e=>this._createMapLayerHandles(e),o),a(()=>this.view?.allLayerViews,e=>this._createLayerViewHandles(e),o)],p.viewLayers)}};e([s()],h.prototype,`checkPublishStatusEnabled`,void 0),e([s()],h.prototype,`listItemCreatedFunction`,void 0),e([s({nonNullable:!0})],h.prototype,`listModeDisabled`,void 0),e([s({type:m})],h.prototype,`operationalItems`,void 0),e([s({readOnly:!0})],h.prototype,`state`,null),e([s()],h.prototype,`totalItems`,null),e([s()],h.prototype,`view`,void 0),h=e([c(`esri.widgets.LayerList.LayerListViewModel`)],h);const g=h;export{g as default};
|
|
@@ -16,7 +16,7 @@ import type { ActionButtonProperties } from "../../support/actions/ActionButton.
|
|
|
16
16
|
import type { ReadonlyArrayOrCollection } from "../../core/Collection.js";
|
|
17
17
|
import type { ListItemPanelProperties } from "./ListItemPanel.js";
|
|
18
18
|
|
|
19
|
-
/** @deprecated since 5.2. Use [ItemProperties](https://developers.arcgis.com/javascript/latest/references/core/
|
|
19
|
+
/** @deprecated since 5.2. Use [ItemProperties](https://developers.arcgis.com/javascript/latest/references/core/layerList/types/#ItemProperties) instead. */
|
|
20
20
|
export interface ListItemProperties extends IdentifiableMixinProperties, Partial<Pick<ListItem, "actionsOpen" | "childrenSortable" | "hidden" | "layer" | "listModeDisabled" | "open" | "parent" | "sortable" | "view" | "visible">> {
|
|
21
21
|
/**
|
|
22
22
|
* A nested 2-dimensional collection of actions that could be triggered on the item.
|
|
@@ -69,7 +69,7 @@ export interface ListItemProperties extends IdentifiableMixinProperties, Partial
|
|
|
69
69
|
* Represents a layer view that supports spatial referencing. Used to indicate whether the
|
|
70
70
|
* associated layer view can operate with a spatial reference in the current view context.
|
|
71
71
|
*
|
|
72
|
-
* @deprecated since 5.2. Use [SpatiallyReferencedLayerView](https://developers.arcgis.com/javascript/latest/references/core/
|
|
72
|
+
* @deprecated since 5.2. Use [SpatiallyReferencedLayerView](https://developers.arcgis.com/javascript/latest/references/core/layerList/types/#SpatiallyReferencedLayerView) instead.
|
|
73
73
|
* @since 5.0
|
|
74
74
|
* @see [layerView](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/ListItem/#layerView)
|
|
75
75
|
*/
|
|
@@ -86,7 +86,7 @@ export interface SpatiallyReferencedLayerView extends LayerView {
|
|
|
86
86
|
* Represents a layer view for stream layers that provides connection status information.
|
|
87
87
|
* Used to determine the current connection state of a stream layer in the view.
|
|
88
88
|
*
|
|
89
|
-
* @deprecated since 5.2. Use [ConnectedLayerView](https://developers.arcgis.com/javascript/latest/references/core/
|
|
89
|
+
* @deprecated since 5.2. Use [ConnectedLayerView](https://developers.arcgis.com/javascript/latest/references/core/layerList/types/#ConnectedLayerView) instead.
|
|
90
90
|
* @since 5.0
|
|
91
91
|
* @see [connectionStatus](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/ListItem/#connectionStatus)
|
|
92
92
|
*/
|
|
@@ -106,7 +106,7 @@ export interface ConnectedLayerView extends LayerView {
|
|
|
106
106
|
* - `inherited`: Child layers inherit the visibility from their parent layer.
|
|
107
107
|
* - `exclusive`: Only one child layer can be visible at a time.
|
|
108
108
|
*
|
|
109
|
-
* @deprecated since 5.2. Use [ItemVisibilityMode](https://developers.arcgis.com/javascript/latest/references/core/
|
|
109
|
+
* @deprecated since 5.2. Use [ItemVisibilityMode](https://developers.arcgis.com/javascript/latest/references/core/layerList/types/#ItemVisibilityMode) instead.
|
|
110
110
|
* @see [visibilityMode](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/ListItem/#visibilityMode)
|
|
111
111
|
*/
|
|
112
112
|
export type ListItemVisibilityMode = "independent" | "inherited" | "exclusive";
|
|
@@ -121,7 +121,7 @@ export type ListItemVisibilityMode = "independent" | "inherited" | "exclusive";
|
|
|
121
121
|
* [Layer.listMode](https://developers.arcgis.com/javascript/latest/references/core/layers/Layer/#listMode) property to `hide` on the desired layers.
|
|
122
122
|
* You cannot hide list items using this class or the [LayerList](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/) class.
|
|
123
123
|
*
|
|
124
|
-
* @deprecated since 5.2. Use [Item](https://developers.arcgis.com/javascript/latest/references/core/
|
|
124
|
+
* @deprecated since 5.2. Use [Item](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/) and the [Layer List (Next)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/) component instead.
|
|
125
125
|
* @since 4.2
|
|
126
126
|
* @see [LayerListViewModel.operationalItems](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/LayerListViewModel/#operationalItems)
|
|
127
127
|
* @see [LayerListViewModel](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/LayerListViewModel/)
|
|
@@ -4,7 +4,7 @@ import type { Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
|
4
4
|
import type { IdentifiableMixin, IdentifiableMixinProperties } from "../../core/Identifiable.js";
|
|
5
5
|
import type { WidgetProperties } from "../Widget.js";
|
|
6
6
|
|
|
7
|
-
/** @deprecated since 5.2. Use [ItemPanelProperties](https://developers.arcgis.com/javascript/latest/references/core/
|
|
7
|
+
/** @deprecated since 5.2. Use [ItemPanelProperties](https://developers.arcgis.com/javascript/latest/references/core/layerList/types/#ItemPanelProperties) instead. */
|
|
8
8
|
export interface ListItemPanelProperties extends WidgetProperties, IdentifiableMixinProperties, Partial<Pick<ListItemPanel, "content" | "disabled" | "flowEnabled" | "image" | "listItem" | "open" | "title">> {
|
|
9
9
|
/**
|
|
10
10
|
* Icon which represents the panel.
|
|
@@ -50,7 +50,7 @@ export interface ListItemPanelProperties extends WidgetProperties, IdentifiableM
|
|
|
50
50
|
* a [Widget](https://developers.arcgis.com/javascript/latest/references/core/widgets/Widget/) instance, or an [HTMLElement](https://developer.mozilla.org/docs/Web/API/HTMLElement).
|
|
51
51
|
* If the string `legend` is used, then an instance of the [Legend](https://developers.arcgis.com/javascript/latest/references/core/widgets/Legend/) widget is placed in the content.
|
|
52
52
|
*
|
|
53
|
-
* @deprecated since 5.2. Use [ItemPanelContent](https://developers.arcgis.com/javascript/latest/references/core/
|
|
53
|
+
* @deprecated since 5.2. Use [ItemPanelContent](https://developers.arcgis.com/javascript/latest/references/core/layerList/types/#ItemPanelContent) instead.
|
|
54
54
|
* @see [content](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/ListItemPanel/#content)
|
|
55
55
|
*/
|
|
56
56
|
export type ListItemPanelContent = "legend" | Widget | HTMLElement | string;
|
|
@@ -59,7 +59,7 @@ export type ListItemPanelContent = "legend" | Widget | HTMLElement | string;
|
|
|
59
59
|
* Defines the content(s) that can be displayed in a ListItem panel. This can be a single content item
|
|
60
60
|
* or an array of content items, allowing for flexible panel layouts.
|
|
61
61
|
*
|
|
62
|
-
* @deprecated since 5.2. Use [ItemPanelContents](https://developers.arcgis.com/javascript/latest/references/core/
|
|
62
|
+
* @deprecated since 5.2. Use [ItemPanelContents](https://developers.arcgis.com/javascript/latest/references/core/layerList/types/#ItemPanelContents) instead.
|
|
63
63
|
* @see [content](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/ListItemPanel/#content)
|
|
64
64
|
*/
|
|
65
65
|
export type ListItemPanelContents = ListItemPanelContent | ListItemPanelContent[];
|
|
@@ -73,7 +73,7 @@ export type ListItemPanelContents = ListItemPanelContent | ListItemPanelContent[
|
|
|
73
73
|
* A common scenario for using ListItemPanel is to display a [Legend](https://developers.arcgis.com/javascript/latest/references/core/widgets/Legend/) widget within each list item.
|
|
74
74
|
* This allows users to create a legend for each layer in the map simply by adding the string "legend" as the [content](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/ListItemPanel/#content).
|
|
75
75
|
*
|
|
76
|
-
* @deprecated since 5.2. Use [ItemPanel](https://developers.arcgis.com/javascript/latest/references/core/
|
|
76
|
+
* @deprecated since 5.2. Use [ItemPanel](https://developers.arcgis.com/javascript/latest/references/core/layerList/ItemPanel/) and the [Layer List (Next)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/) component instead.
|
|
77
77
|
* @since 4.7
|
|
78
78
|
* @see [LayerList](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/)
|
|
79
79
|
* @see [ListItem](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/ListItem/)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Types for the LayerList widget.
|
|
3
3
|
*
|
|
4
|
-
* @deprecated since 5.2. Use [types](https://developers.arcgis.com/javascript/latest/references/core/
|
|
4
|
+
* @deprecated since 5.2. Use [types](https://developers.arcgis.com/javascript/latest/references/core/layerList/types/) and the [Layer List (Next)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/) component instead.
|
|
5
5
|
*/
|
|
6
6
|
import type ActionButton from "../../support/actions/ActionButton.js";
|
|
7
7
|
import type ActionToggle from "../../support/actions/ActionToggle.js";
|
|
@@ -10,7 +10,7 @@ import type ListItem from "./ListItem.js";
|
|
|
10
10
|
/**
|
|
11
11
|
* Specifies the style of the visibility toggle displayed in layer lists.
|
|
12
12
|
*
|
|
13
|
-
* @deprecated since 5.2. Use [VisibilityAppearance](https://developers.arcgis.com/javascript/latest/references/core/
|
|
13
|
+
* @deprecated since 5.2. Use [VisibilityAppearance](https://developers.arcgis.com/javascript/latest/references/core/layerList/types/#VisibilityAppearance) instead.
|
|
14
14
|
* @since 5.0
|
|
15
15
|
* @see [BasemapLayerList.visibilityAppearance](https://developers.arcgis.com/javascript/latest/references/core/widgets/BasemapLayerList/#visibilityAppearance)
|
|
16
16
|
* @see [CatalogLayerList.visibilityAppearance](https://developers.arcgis.com/javascript/latest/references/core/widgets/CatalogLayerList/#visibilityAppearance)
|
|
@@ -22,7 +22,7 @@ export type VisibilityAppearance = "default" | "checkbox";
|
|
|
22
22
|
* A function used to filter which [ListItem](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/ListItem/) objects appear in the layer list.
|
|
23
23
|
*
|
|
24
24
|
* @param item - The list item to evaluate for inclusion.
|
|
25
|
-
* @deprecated since 5.2. Use [FilterPredicate](https://developers.arcgis.com/javascript/latest/references/core/
|
|
25
|
+
* @deprecated since 5.2. Use [FilterPredicate](https://developers.arcgis.com/javascript/latest/references/core/layerList/types/#FilterPredicate) instead.
|
|
26
26
|
* @since 5.0
|
|
27
27
|
* @see [BasemapLayerList.baseFilterPredicate](https://developers.arcgis.com/javascript/latest/references/core/widgets/BasemapLayerList/#baseFilterPredicate)
|
|
28
28
|
* @see [BasemapLayerList.referenceFilterPredicate](https://developers.arcgis.com/javascript/latest/references/core/widgets/BasemapLayerList/#referenceFilterPredicate)
|
|
@@ -35,7 +35,7 @@ export type FilterPredicate = (item: ListItem) => boolean;
|
|
|
35
35
|
* A function for customizing a list item as it is created in the layer lists.
|
|
36
36
|
*
|
|
37
37
|
* @param event - The event containing the list item to customize.
|
|
38
|
-
* @deprecated since 5.2. Use [ItemModifier](https://developers.arcgis.com/javascript/latest/references/core/
|
|
38
|
+
* @deprecated since 5.2. Use [ItemModifier](https://developers.arcgis.com/javascript/latest/references/core/layerList/types/#ItemModifier) instead.
|
|
39
39
|
* @since 5.0
|
|
40
40
|
* @see [BasemapLayerList.baseListItemCreatedFunction](https://developers.arcgis.com/javascript/latest/references/core/widgets/BasemapLayerList/#baseListItemCreatedFunction)
|
|
41
41
|
* @see [BasemapLayerList.referenceListItemCreatedFunction](https://developers.arcgis.com/javascript/latest/references/core/widgets/BasemapLayerList/#referenceListItemCreatedFunction)
|
|
@@ -52,7 +52,7 @@ export type ListItemModifier = (event: ListItemModifierEvent) => void;
|
|
|
52
52
|
* The event object passed to a listItemCreatedFunction in the layer lists.
|
|
53
53
|
* Provides access to the list item being created, allowing you to customize its properties, actions, panel content, or visibility before rendering.
|
|
54
54
|
*
|
|
55
|
-
* @deprecated since 5.2. Use [ItemModifierEvent](https://developers.arcgis.com/javascript/latest/references/core/
|
|
55
|
+
* @deprecated since 5.2. Use [ItemModifierEvent](https://developers.arcgis.com/javascript/latest/references/core/layerList/types/#ItemModifierEvent) instead.
|
|
56
56
|
* @since 5.0
|
|
57
57
|
* @see [BasemapLayerList.baseListItemCreatedFunction](https://developers.arcgis.com/javascript/latest/references/core/widgets/BasemapLayerList/#baseListItemCreatedFunction)
|
|
58
58
|
* @see [BasemapLayerList.referenceListItemCreatedFunction](https://developers.arcgis.com/javascript/latest/references/core/widgets/BasemapLayerList/#referenceListItemCreatedFunction)
|
|
@@ -75,7 +75,7 @@ export interface ListItemModifierEvent {
|
|
|
75
75
|
/**
|
|
76
76
|
* An action element that can be used in the layer lists.
|
|
77
77
|
*
|
|
78
|
-
* @deprecated since 5.2. Use [Action](https://developers.arcgis.com/javascript/latest/references/core/
|
|
78
|
+
* @deprecated since 5.2. Use [Action](https://developers.arcgis.com/javascript/latest/references/core/layerList/types/#Action) instead.
|
|
79
79
|
* @since 5.0
|
|
80
80
|
* @see [BasemapLayerList.triggerAction()](https://developers.arcgis.com/javascript/latest/references/core/widgets/BasemapLayerList/#triggerAction)
|
|
81
81
|
* @see [BasemapLayerListViewModel.triggerAction()](https://developers.arcgis.com/javascript/latest/references/core/widgets/BasemapLayerList/BasemapLayerListViewModel/#triggerAction)
|
|
@@ -91,7 +91,7 @@ export type Action = ActionButton | ActionToggle;
|
|
|
91
91
|
/**
|
|
92
92
|
* Describes the current state of the list items in the [LayerListViewModel](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/LayerListViewModel/).
|
|
93
93
|
*
|
|
94
|
-
* @deprecated since 5.2. Use [State](https://developers.arcgis.com/javascript/latest/references/core/
|
|
94
|
+
* @deprecated since 5.2. Use [State](https://developers.arcgis.com/javascript/latest/references/core/layerList/types/#State) instead.
|
|
95
95
|
* @since 5.0
|
|
96
96
|
* @see [LayerListViewModel.state](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/LayerListViewModel/#state)
|
|
97
97
|
*/
|
|
@@ -9,7 +9,7 @@ export interface PopupViewModelProperties extends FeaturesViewModelProperties {}
|
|
|
9
9
|
* by providing users with a simple way to interact with and view attributes in a layer.
|
|
10
10
|
* They play an important role in relaying information to the user, which improves the storytelling capabilities of the application.
|
|
11
11
|
*
|
|
12
|
-
* @deprecated since 5.2. Use the [Popup component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) or the [
|
|
12
|
+
* @deprecated since 5.2. Use the [Popup component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) or the [FeaturesModel](https://developers.arcgis.com/javascript/latest/references/core/popup/FeaturesModel/) class instead.
|
|
13
13
|
* @since 4.0
|
|
14
14
|
* @see [Popup](https://developers.arcgis.com/javascript/latest/references/core/widgets/Popup/) widget - _Deprecated since 5.0. Use the [Popup component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) instead._
|
|
15
15
|
* @see [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{deprecatedModule as t}from"../../core/deprecate.js";import n from"../../core/Logger.js";import{subclass as r}from"../../core/accessorSupport/decorators.js";import i from"../Features/FeaturesViewModel.js";let a=class extends i{constructor(e){super({...e,suppressDeprecationWarning:!0}),e?.suppressDeprecationWarning||t(n.getLogger(this),`esri.widgets.Popup.PopupViewModel`,{version:`5.2`,replacement:`Use the Popup component or the @arcgis/core/popup/
|
|
2
|
+
import{__decorate as e}from"tslib";import{deprecatedModule as t}from"../../core/deprecate.js";import n from"../../core/Logger.js";import{subclass as r}from"../../core/accessorSupport/decorators.js";import i from"../Features/FeaturesViewModel.js";let a=class extends i{constructor(e){super({...e,suppressDeprecationWarning:!0}),e?.suppressDeprecationWarning||t(n.getLogger(this),`esri.widgets.Popup.PopupViewModel`,{version:`5.2`,replacement:`Use the Popup component or the @arcgis/core/popup/FeaturesModel module instead.`,warnOnce:!0})}};a=e([r(`esri.widgets.Popup.PopupViewModel`)],a);export{a as default};
|
|
@@ -54,7 +54,11 @@ export default class FeatureItem extends ItemBase {
|
|
|
54
54
|
* @internal
|
|
55
55
|
*/
|
|
56
56
|
get supportsThumbnail(): boolean;
|
|
57
|
-
/**
|
|
57
|
+
/**
|
|
58
|
+
* Reference to the thumbnail element icon used to represent this feature.
|
|
59
|
+
*
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
58
62
|
get thumbnail(): HTMLElement | null | undefined;
|
|
59
63
|
/**
|
|
60
64
|
* Unique identifier for a thumbnail representing the feature.
|
|
@@ -62,16 +66,18 @@ export default class FeatureItem extends ItemBase {
|
|
|
62
66
|
* It is used by the list to request a new thumbnail when the `graphic` property changes
|
|
63
67
|
* to a newer version of the feature. This is usually after the associated layer has been
|
|
64
68
|
* edited.
|
|
69
|
+
*
|
|
70
|
+
* @internal
|
|
65
71
|
*/
|
|
66
72
|
get thumbnailKey(): string;
|
|
67
73
|
/**
|
|
68
74
|
* Max size of the thumbnail in pixels.
|
|
69
75
|
*
|
|
70
76
|
* @default 24
|
|
77
|
+
* @internal
|
|
71
78
|
*/
|
|
72
79
|
accessor thumbnailSize: number;
|
|
73
80
|
/**
|
|
74
|
-
* Text used in the interface for the item.
|
|
75
81
|
* The display name for the feature within the [selection list](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-selection-list/).
|
|
76
82
|
* If no title is available, the object ID is used as a fallback.
|
|
77
83
|
* If neither a title nor an object ID is available, it will display 'Untitled feature'.
|
|
@@ -84,6 +90,7 @@ export default class FeatureItem extends ItemBase {
|
|
|
84
90
|
*
|
|
85
91
|
* @param options - Optional parameters for fetching the thumbnail.
|
|
86
92
|
* @returns Promise resolving to the thumbnail element or null if no thumbnail could be generated.
|
|
93
|
+
* @internal
|
|
87
94
|
*/
|
|
88
95
|
fetchThumbnail(options?: { ariaLabel?: string; }): Promise<HTMLElement | null | undefined>;
|
|
89
96
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8470],{38961(e,t,r){var i=r(32198),s=r(7762),o=r(36708),l=r(10107),a=r(64108),n=r(80559);let u=class extends s.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,n.fm)(()=>this._refresh(),o.OH))}destroy(){this.getCollections=null}_refresh(){let e=this.getCollections?.();if(null==e)return void this.removeAll();let t=0;for(let r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t)}_createNewInstance(e){return new s.A(e)}_processCollection(e,t){if(!t)return e;let r=this.itemFilterFunction??(e=>!!e);for(let i of t)if(i){if(r(i)){let t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){let t=this.getChildrenFunction(i);if(Array.isArray(t))for(let r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i.Cg)([(0,l.MZ)()],u.prototype,"getCollections",void 0),(0,i.Cg)([(0,l.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,i.Cg)([(0,l.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,i.Cg)([(0,a.$)("esri.core.CollectionFlattener")],u);const p=u;r.d(t,["A",0,p])},6797(e,t,r){r.d(t,{Ui:()=>d});var i=r(69622),s=r(7762),o=r(88620);const l=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof i.A}function n(e){return e instanceof s.A?Object.keys(e.items):a(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof s.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function y(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=n(e),s=n(t);if(0===i.length&&0===s.length)return;if(!i.length||!s.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let o=s.filter(e=>!i.includes(e)),d=i.filter(e=>!s.includes(e)),c=i.filter(r=>s.includes(r)&&u(e,r)!==u(t,r)).concat(o,d).sort(),h=p(e);if(h&&l.has(h)&&c.length)return{type:"complete",oldValue:e,newValue:t};let f,g=a(e)&&a(t);for(let i of c){let s,o=u(e,i),l=u(t,i);if((g||"function"!=typeof o&&"function"!=typeof l)&&o!==l&&(null!=o||null!=l)){if(r&&r[i]&&"function"==typeof r[i])s=r[i]?.(o,l);else if(o instanceof Date&&l instanceof Date){if(o.getTime()===l.getTime())continue;s={type:"complete",oldValue:o,newValue:l}}else s="object"==typeof o&&"object"==typeof l&&p(o)===p(l)?y(o,l):{type:"complete",oldValue:o,newValue:l};null!=s&&(null==f?f={type:"partial",diff:{[i]:s}}:f.diff[i]=s)}}return f}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:y(e,t)}},81583(e,t,r){r.d(t,{L:()=>a,g:()=>l});var i=r(60999),s=r(7762),o=r(92474);async function l(e,t){return await e.load(),a(e,t)}async function a(e,t){let r=[],l=(...e)=>{for(let t of e)if(null!=t){if(Array.isArray(t)){l(...t);continue}if(s.A.isCollection(t)){t.forEach(e=>l(e));continue}(0,o.Zm)(t)&&r.push(t)}};t(l);let a=null;if(await(0,i.Tj)(r,async e=>{let t=await(0,i.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1===t.ok&&!a&&(a=t)}),a)throw a.error;return e}},64314(e,t,r){r.d(t,{A:()=>I});var i=r(32198),s=r(69622),o=r(49186),l=r(44208),a=r(17676),n=r(84952),u=r(91429),p=r(21325),y=r(20557),d=r(2272),c=r(65615),h=r(20615),f=r(74910),g=r(78286),m=r(99199),b=r(62815),w=r(63746);class v{constructor(e){this._options=e,this.featureSet={features:[]},this.parseOnly=null,this._transformInPlace=null,this._transformInPlaceXY=null,this._finishVertex=v._finishVertexNonPoint,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._vertex=[],this._part=null,this._parts=null,this._i=0}queryGeometryType(){return this.featureSet.queryGeometryType}queryGeometry(){return this.featureSet.queryGeometry}idField(e){"string"==typeof e&&(this.featureSet.objectIdFieldName=e)}finish(){this._options.applyTransform&&(this.featureSet.transform=null);let{spatialReference:e,features:t}=this.featureSet;if(e)for(let{geometry:r}of t)r&&(r.spatialReference=e)}feature(){this._attributesClass??=(0,w._)(this.featureSet.fields?.map(e=>e.name)??[]),this.featureSet.features.push({attributes:new this._attributesClass}),this._options.applyTransform&&this._setVertexTransformer()}centroid([e,t]){this.featureSet.features.at(-1).centroid={x:e,y:t}}geometry(e,t,r){this._previousX=this._previousY=0,this._lengths=r;let i,{hasZ:s,hasM:o}=this.featureSet;switch(s??=!1,o??=!1,this._i=0,this._vertex=[0,0],s&&this._vertex.push(0),o&&this._vertex.push(0),this._finishVertex=v._finishVertexNonPoint,t){case"esriGeometryPoint":this._point={x:0,y:0},i=this._point,this._finishVertex=s?o?v._finishVertexPointXYZM:v._finishVertexPointXYZ:o?v._finishVertexPointXYM:v._finishVertexPointXY;break;case"esriGeometryMultipoint":i={points:[],hasZ:s,hasM:o},this._part=i.points,this._parts=[];break;case"esriGeometryPolyline":i={paths:[],hasZ:s,hasM:o},this._parts=i.paths,this._part=[];break;case"esriGeometryPolygon":i={rings:[],hasZ:s,hasM:o},this._parts=i.rings,this._part=[]}1===e?(this.featureSet.queryGeometry=i,this.featureSet.queryGeometryType=t,this._options.applyTransform||this._setVertexTransformer()):this.featureSet.features.at(-1).geometry=i}coord(e){let t=this._vertex;t[this._i++]=e,!(this._i<t.length)&&(this._i=0,this._transformInPlace&&(t[0]+=this._previousX,t[1]+=this._previousY,[this._previousX,this._previousY]=t,this._transformInPlace(t)),this._finishVertex(this))}curvedGeometry(e,t,r,i){let s,{hasZ:o,hasM:l}=this.featureSet;switch(o??=!1,l??=!1,e){case"esriGeometryPoint":case"esriGeometryMultipoint":throw Error(`Curved ${e} does not make sense`);case"esriGeometryPolyline":s={paths:[],curvePaths:[],hasZ:o,hasM:l},this._parts=s.curvePaths,this._part=[];break;case"esriGeometryPolygon":s={rings:[],curveRings:[],hasZ:o,hasM:l},this._parts=s.curveRings,this._part=[]}this.featureSet.features.at(-1).geometry=s}startCurvedPart(e){this._part.push(this._transform(e))}finishCurvedPart(e){this._parts.push(this._part),this._part=[]}lineSegment(e,t){this._part.push(this._transform(t))}bezierSegment(e,t,r,i){this._part.push({b:[this._transform(t),this._transformXY(r),this._transformXY(i)]})}circularArcSegment(e,t,r){this._part.push({c:[this._transform(t),this._transformXY(r)]})}ellipticArcSegment(e,t,r,i,s,o,l,a){this._part.push({a:[this._transform(t),this._transformXY(r),i,s,o,l,a]})}static _finishVertexPointXY({_point:e,_vertex:t}){[e.x,e.y]=t}static _finishVertexPointXYZ({_point:e,_vertex:t}){[e.x,e.y,e.z]=t}static _finishVertexPointXYM({_point:e,_vertex:t}){[e.x,e.y,e.m]=t}static _finishVertexPointXYZM({_point:e,_vertex:t}){[e.x,e.y,e.z,e.m]=t}static _finishVertexNonPoint(e){let{_part:t,_parts:r,_lengths:i,_vertex:s}=e;t.push([...s]),!(t.length<i[r.length])&&(e._previousX=e._previousY=0,e._part=[],r.push(t))}_setVertexTransformer(){let{sourceSpatialReference:e}=this._options,{spatialReference:t,hasZ:r,transform:i}=this.featureSet,s=r?(0,b.d)(e,t):1;this._transformInPlace??=(0,w.M)(this.featureSet,s),this._transformInPlaceXY??=(0,w.M)({transform:i})}_transform(e){let t=[...e];return this._transformInPlace?.(t),t}_transformXY(e){let t=[e[0],e[1]];return this._transformInPlaceXY?.(t),t}}var S=r(80893),C=r(22671),x=r(97552);let I=class extends s.A{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.pbfSupportedWithCurves=!1,this.queryAttachmentsSupported=!1,this.relativeTimeBinWindow=0,this.sourceSpatialReference=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return(0,n.An)(this.url)}async execute(e,t){let r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){let r,i=this._normalizeQuery(e),s=null!=e.outStatistics?.[0],o=(0,l.A)("featurelayer-pbf-statistics");if(this.pbfSupported&&(!s||o)&&(!e.returnTrueCurves||this.pbfSupportedWithCurves))try{r=await async function(e,t,r,i){let s=(0,d.Dl)(e),o={...r},l=x.A.from(t),a=!l.quantizationParameters;return await(0,S.IJ)(s,l,new v({sourceSpatialReference:l.sourceSpatialReference,applyTransform:a}),o,i)}(this.url,i,t,{uniqueIdFields:this.uniqueIdFields})}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return r??=await(0,m.e)(this.url,i,t,{uniqueIdFields:this.uniqueIdFields}),this._normalizeFields(r.fields),r}async featureSetFromJSON(e,t,i){if(!this._queryGet3DObjectFormat(e)||null==this.infoFor3D||!t.features)return C.A.fromJSON(t);let{meshFeatureSetFromJSON:s}=await(0,a.qr)(Promise.all([r.e(2258),r.e(118),r.e(8366)]).then(()=>r(40050)),i);return s(e,this.infoFor3D,t)}executeForCount(e,t){return(0,h.I)(this.url,this._normalizeQuery(e),t,{uniqueIdFields:this.uniqueIdFields})}executeForExtent(e,t){return(0,f.L)(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,g.V)(this.url,this._normalizeQuery(e),t,{uniqueIdFields:this.uniqueIdFields})}async executeRelationshipQuery(e,t){let[{default:i},{executeRelationshipQuery:s}]=await(0,a.qr)(Promise.all([Promise.resolve().then(()=>r(26591)),r.e(1763).then(()=>r(71763))]),t),o=i.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(o=o.clone(),o.gdbVersion=o.gdbVersion||this.gdbVersion,o.dynamicDataSource=o.dynamicDataSource||this.dynamicDataSource),s(this.url,o,t)}async executeRelationshipQueryForCount(e,t){let[{default:i},{executeRelationshipQueryForCount:s}]=await(0,a.qr)(Promise.all([Promise.resolve().then(()=>r(26591)),r.e(1763).then(()=>r(71763))]),t),o=i.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(o=o.clone(),o.gdbVersion=o.gdbVersion||this.gdbVersion,o.dynamicDataSource=o.dynamicDataSource||this.dynamicDataSource),s(this.url,o,t)}async executeAttachmentQuery(e,t){let{executeAttachmentQuery:i,fetchAttachments:s,processAttachmentQueryResult:o}=await(0,a.qr)(r.e(9239).then(()=>r(9239)),t),l=(0,d.Dl)(this.url);return o(l,await(this.queryAttachmentsSupported?i(l,e,t):s(l,e,t)))}async executeAttributeBinsQuery(e,t){let{executeAttributeBinsQuery:i}=await(0,a.qr)(r.e(3103).then(()=>r(33103)),t);return i(this.parsedUrl,e,t)}async executePivotQuery(e,t){let{executePivotQuery:i}=await(0,a.qr)(r.e(566).then(()=>r(80566)),t);return i(this.parsedUrl,e,t)}async executeTopFeaturesQuery(e,t){let{executeTopFeaturesQuery:i}=await(0,a.qr)(r.e(1273).then(()=>r(11273)),t);return i(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){let{executeForTopIds:i}=await(0,a.qr)(r.e(1277).then(()=>r(21277)),t);return i(this.parsedUrl,e,t)}async executeForTopExtents(e,t){let{executeForTopExtents:i}=await(0,a.qr)(r.e(8018).then(()=>r(8018)),t);return i(this.parsedUrl,e,t)}async executeForTopCount(e,t){let{executeForTopCount:i}=await(0,a.qr)(r.e(980).then(()=>r(10980)),t);return i(this.parsedUrl,e,t)}_normalizeQuery(e){let t=x.A.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?c.A.from(e.dynamicDataSource):this.dynamicDataSource);let{infoFor3D:r}=this,i=this._queryGet3DObjectFormat(e);if(null!=r&&i){if(t=t===e?t.clone():t,t.formatOf3DObjects=i,t.outSpatialReference&&!(0,p.aI)(t.outSpatialReference,this.sourceSpatialReference))throw new o.A("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,t.outFields??(t.outFields=[]);let{originX:i,originY:s,originZ:o,translationX:l,translationY:a,translationZ:n,scaleX:u,scaleY:p,scaleZ:y,rotationX:d,rotationY:c,rotationZ:h,rotationDeg:f}=r.transformFieldRoles;t.outFields.push(i,s,o,l,a,n,u,p,y,d,c,h,f)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(let t of e){let e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryGet3DObjectFormat({returnGeometry:e,multipatchOption:t,outStatistics:r}){return!0!==e||"xyFootprint"===t||r?null:(0,y.Hz)(this.infoFor3D)}};(0,i.Cg)([(0,u.MZ)({type:c.A})],I.prototype,"dynamicDataSource",void 0),(0,i.Cg)([(0,u.MZ)()],I.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,u.MZ)()],I.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,u.MZ)()],I.prototype,"infoFor3D",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],I.prototype,"parsedUrl",null),(0,i.Cg)([(0,u.MZ)()],I.prototype,"pbfSupported",void 0),(0,i.Cg)([(0,u.MZ)()],I.prototype,"pbfSupportedWithCurves",void 0),(0,i.Cg)([(0,u.MZ)()],I.prototype,"queryAttachmentsSupported",void 0),(0,i.Cg)([(0,u.MZ)()],I.prototype,"relativeTimeBinWindow",void 0),(0,i.Cg)([(0,u.MZ)()],I.prototype,"sourceSpatialReference",void 0),(0,i.Cg)([(0,u.MZ)()],I.prototype,"uniqueIdFields",void 0),(0,i.Cg)([(0,u.MZ)({type:String})],I.prototype,"url",void 0),I=(0,i.Cg)([(0,u.$K)("esri.layers.graphics.sources.support.QueryTask")],I)},52136(e,t,r){var i=r(32198),s=r(91429);r.d(t,["p",0,e=>{let t=e,r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,i.Cg)([(0,s.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},98534(e,t,r){var i=r(32198),s=r(56507),o=r(5479),l=r(91869),a=r(17676),n=r(84952),u=r(46140),p=r(91429),y=r(5443),d=r(16930),c=r(60694),h=r(10873),f=r(10407),g=r(36005);r.d(t,["V",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.capabilities=void 0,this.copyright=null,this.fullExtent=null,this.legendEnabled=!0,this.spatialReference=null,this.version=void 0,this._allLayersAndTablesMap=null}readCapabilities(e,t){let r=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());if(!r)return{operations:{supportsExportMap:!1,supportsExportTiles:!1,supportsIdentify:!1,supportsQuery:!1,supportsTileMap:!1},exportMap:null,exportTiles:null};let i=this.type,s="tile"!==i&&!!t.supportsDynamicLayers,o=r.includes("query"),l=r.includes("map"),a=!!t.exportTilesAllowed,n=r.includes("tilemap"),p=r.includes("data"),y="tile"!==i&&(!t.tileInfo||s),d="tile"!==i&&(!t.tileInfo||s),c="tile"!==i,h="tile"!==i&&s&&t.currentVersion>=11.1,f=t.cimVersion?u.A.parse(t.cimVersion):null,g=f?.greaterEqual(1,4)??!1,m=f?.greaterEqual(2,0)??!1;return{operations:{supportsExportMap:l,supportsExportTiles:a,supportsIdentify:o,supportsQuery:p,supportsTileMap:n},exportMap:l?{supportsArcadeExpressionForLabeling:g,supportsCIMSymbols:m,supportsDynamicLayers:s,supportsSublayerOrderBy:h,supportsSublayerDefinitionExpression:d,supportsSublayerVisibility:y,supportsSublayersChanges:c}:null,exportTiles:a?{maxExportTilesCount:+t.maxExportTilesCount}:null}}readVersion(e,t){let r=t.currentVersion;return r||=t.hasOwnProperty("capabilities")||t.hasOwnProperty("tables")?10:t.hasOwnProperty("supportedImageFormatTypes")?9.31:9.3,r}async fetchRelatedService(e){let t=this.portalItem;if(!t||!(0,f.bK)(t))return null;this._relatedFeatureServicePromise||=t.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},e).then(e=>e.find(e=>"Feature Service"===e.type)??null,()=>null);let r=await this._relatedFeatureServicePromise;return(0,a.Te)(e),r?{itemId:r.id,url:r.url}:null}async fetchSublayerInfo(e,t){let{source:r}=e;if(this?.portalItem&&"tile"===this.type&&"map-layer"===r?.type&&(0,f.bK)(this.portalItem)&&e.originIdOf("url")<2){let i=await this.fetchRelatedService(t);i&&(e.url=(0,n.fj)(i.url,r.mapLayerId.toString()),e.layerItemId=i.itemId)}let i,{url:o}=e;if("data-layer"===r.type)i=(await(0,s.A)(o,{responseType:"json",query:{f:"json",...this.customParameters,token:this.apiKey},...t})).data;else{let s=e.id;"map-layer"===r?.type&&(s=r.mapLayerId);try{i=(await this.fetchAllLayersAndTables(t)).get(s)}catch{}if(o&&e.originIdOf("url")>2)try{let e=await this._fetchAllLayersAndTablesFromService(o),t=(0,c.qg)(o)?.sublayer??r.mapLayerId,s=structuredClone(e.get(t));if(null!=s){for(let e of["drawingInfo","maxScale","minScale","name"])delete s[e];i={...i,...s}}}catch{}}return i}async fetchAllLayersAndTables(e){return this._fetchAllLayersAndTablesFromService(this.parsedUrl?.path,e)}async _fetchAllLayersAndTablesFromService(e,t){await this.load(t),this._allLayersAndTablesMap||=new Map;let r=(0,c.qg)(e),i=await(0,l.tE)(this._allLayersAndTablesMap,r?.url.path,()=>(0,s.A)((0,n.fj)(r?.url.path,"/layers"),{query:{f:"json",...this.customParameters,token:this.apiKey}}).then(async e=>{let t=new Map,{layers:i,tables:l}=e.data,a=[...i??[],...l??[]];for(let e of a)t.set(e.id,e);if((0,o.zN)(t.values(),e=>null==e.capabilities||null==e.extent)){let{data:e}=await(0,s.A)(r?.url.path,{query:{f:"json",...this.customParameters,token:this.apiKey}}).catch(()=>({data:{capabilities:"",fullExtent:void 0}}));for(let r of t.values())r.capabilities??=e.capabilities??"",r.extent??=e.fullExtent}return{result:t}},e=>({error:e})));if((0,a.Te)(t),"result"in i)return i.result;throw i.error}};return(0,i.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"capabilities",void 0),(0,i.Cg)([(0,g.w)("service","capabilities",["capabilities","cimVersion","currentVersion","exportTilesAllowed","maxExportTilesCount","supportsDynamicLayers","tileInfo"])],r.prototype,"readCapabilities",null),(0,i.Cg)([(0,p.MZ)({json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,i.Cg)([(0,p.MZ)({type:y.A})],r.prototype,"fullExtent",void 0),(0,i.Cg)([(0,p.MZ)(h.id)],r.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{origins:{service:{read:{enabled:!1}}},read:{source:"showLegend"},write:{target:"showLegend"}}})],r.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)(h.M6)],r.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:d.A})],r.prototype,"spatialReference",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,i.Cg)([(0,g.w)("service","version",["currentVersion","capabilities","tables","supportedImageFormatTypes"])],r.prototype,"readVersion",null),r=(0,i.Cg)([(0,p.$K)("esri.layers.mixins.ArcGISMapService")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>a});var i=r(32198),s=r(93637),o=r(91429),l=r(91880);function a(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let s=new l.A;return s.read(i,r),[s]}const n={type:[l.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,i){let o=e.find(e=>!!e.field);o&&(0,s.sM)(r,[o.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,o.MZ)(n)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,n])},91921(e,t,r){var i=r(32198),s=r(7762),o=r(38961),l=r(49186),a=r(53966),n=r(36708),u=r(91429),p=r(35666),y=r(88620),d=r(15775),c=r(63389);const h=s.A.ofType(d.A);function f(e,t){e&&e.forEach(e=>{t(e),e.sublayers&&e.sublayers.length&&f(e.sublayers,t)})}r.d(t,["I",0,e=>{let t=e,r=class extends t{constructor(...e){super(...e),this.allSublayers=new o.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.sublayersSourceJSON={2:{},3:{},4:{},5:{},6:{}},this.subtables=null,this.addHandles([(0,n.wB)(()=>this.sublayers,(e,t)=>this._handleSublayersChange(e,t),n.OH),(0,n.wB)(()=>this.subtables,(e,t)=>this._handleSublayersChange(e,t),n.OH)])}destroy(){this.allSublayers.destroy()}readSublayers(e,t){if(!t||!e)return;let{sublayersSourceJSON:r}=this,i=(0,p.aB)(t.origin);if(i<2||(r[i]={context:t,visibleLayers:e.visibleLayers||r[i].visibleLayers,layers:e.layers||r[i].layers},i>2))return;this._set("serviceSublayers",this.createSublayersForOrigin("service").sublayers);let{sublayers:s,origin:o}=this.createSublayersForOrigin("web-document"),l=(0,y.oY)(this);l.setDefaultOrigin(o),this._set("sublayers",new h(s)),l.setDefaultOrigin("user")}findSublayerById(e){return this.allSublayers.find(t=>t.id===e)}createServiceSublayers(){return this.createSublayersForOrigin("service").sublayers}createSublayersForOrigin(e){let t,r=(0,p.aB)("web-document"===e?"web-map":e),i=2,s=this.sublayersSourceJSON[2].layers,o=this.sublayersSourceJSON[2].context,l=null,a=[3,4,5].filter(e=>e<=r);for(let e of a){let t=this.sublayersSourceJSON[e];(0,c._X)(t.layers)&&(i=e,s=t.layers,o=t.context,t.visibleLayers&&(l={visibleLayers:t.visibleLayers,context:t.context}))}let n=[3,4,5].filter(e=>e>i&&e<=r),u=null;for(let e of n){let{layers:r,visibleLayers:i,context:s}=this.sublayersSourceJSON[e];r&&(u={layers:r,context:s},t??=e),i&&(l={visibleLayers:i,context:s})}let y=function(e,t){let r=[],i={};return e&&e.forEach(e=>{let s=new d.A;if(s.read(e,t),i[s.id]=s,null!=e.parentLayerId&&-1!==e.parentLayerId){let t=i[e.parentLayerId];t.sublayers||=[],t.sublayers.unshift(s)}else r.unshift(s)}),r}(s,o),g=new Map,m=new Set;if(u)for(let e of u.layers)g.set(e.id,e);if(l?.visibleLayers)for(let e of l.visibleLayers)m.add(e);return f(y,e=>{u&&e.read(g.get(e.id),u.context),l&&e.read({defaultVisibility:m.has(e.id)},l.context)}),{origin:(0,p.OL)(i),originWithPartialOverrides:t?(0,p.OL)(t):null,sublayers:new h({items:y})}}read(e,t){super.read(e,t),this.readSublayers(e,t)}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null,e.layer=null}),this.removeHandles("sublayers-owner")),e&&(e.forEach(e=>{e.parent=this,e.layer=this}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,e.layer=this}),e.on("after-remove",({item:e})=>{e.parent=null,e.layer=null})],"sublayers-owner"),"tile"===this.type&&this.addHandles(e.on("before-changes",e=>{a.A.getLogger("esri.layers.TileLayer").error(new l.A("tilelayer:sublayers-non-modifiable","Sublayer can't be added, moved, or removed from the layer's sublayers",{layer:this})),e.preventDefault()}),"sublayers-owner"))}};return(0,i.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"allSublayers",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0,type:s.A.ofType(d.A)})],r.prototype,"serviceSublayers",void 0),(0,i.Cg)([(0,u.MZ)({value:null,type:h,json:{read:!1,write:{allowNull:!0,ignoreOrigin:!0}}})],r.prototype,"sublayers",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"sublayersSourceJSON",void 0),(0,i.Cg)([(0,u.MZ)({type:h,json:{read:{source:"tables"}}})],r.prototype,"subtables",void 0),r=(0,i.Cg)([(0,u.$K)("esri.layers.mixins.SublayersOwner")],r),r}])},28032(e,t,r){r.d(t,{A:()=>n});var i=r(32198),s=r(69540),o=r(25482),l=r(91429),a=r(56400);let n=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,l.MZ)()],n.prototype,"creatorField",void 0),(0,i.Cg)([(0,l.MZ)()],n.prototype,"creationDateField",void 0),(0,i.Cg)([(0,l.MZ)()],n.prototype,"editorField",void 0),(0,i.Cg)([(0,l.MZ)()],n.prototype,"editDateField",void 0),(0,i.Cg)([(0,l.MZ)()],n.prototype,"realm",void 0),(0,i.Cg)([(0,l.MZ)((0,a.P6)("dateFieldsTimeReference",!0))],n.prototype,"timeZone",void 0),n=(0,i.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],n)},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),s=r(69540),o=r(66552),l=r(25482),a=r(91429);const n=new o.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:n.read,write:n.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,a.$K)("esri.layers.support.FeatureTemplate")],u)},33143(e,t,r){r.d(t,{A:()=>y});var i=r(32198),s=r(69540),o=r(25482),l=r(91429),a=r(8631),n=r(29005),u=r(36005),p=r(43937);let y=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,a.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],y.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],y.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],y.prototype,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],y.prototype,"readDomains",null),(0,i.Cg)([(0,p.K)("domains")],y.prototype,"writeDomains",null),(0,i.Cg)([(0,l.MZ)({type:[n.A],json:{write:!0}})],y.prototype,"templates",void 0),y=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureType")],y)},46499(e,t,r){r.d(t,{A:()=>I});var i,s,o=r(32198),l=(r(44208),r(66552)),a=r(25482),n=r(4718),u=r(90629),p=r(91429),y=r(90360),d=r(73913),c=r(32730),h=r(77548),f=r(59868),g=r(73838),m=r(33910),b=r(36005),w=r(43937);const v=new l.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function S(e,t,r){return{enabled:!(0,h.TU)(r?.layer)}}function C(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function x(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let I=class extends a.o{static{i=c.vK}static{s=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),s=i[3],o=r(t[i[4]],i[5],i[6]);switch(s){case"AND":return e&&o;case"OR":return e||o}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=f.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,c.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,c.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&C(i))e=new d.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let s=e.toJSON(i);s.expression&&(t[r]=s)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,c.XJ)(this)}getLabelExpressionArcade(){return(0,c.BI)(this)}getLabelExpressionSingleField(){return(0,c.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new s({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,n.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,n.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],I.prototype,"name",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:S}}}}})],I.prototype,"allowOverrun",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:S}}}}})],I.prototype,"deconflictionStrategy",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&x(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],I.prototype,"labelExpression",void 0),(0,o.Cg)([(0,b.w)("labelExpression")],I.prototype,"readLabelExpression",null),(0,o.Cg)([(0,w.K)("labelExpression")],I.prototype,"writeLabelExpression",null),(0,o.Cg)([(0,p.MZ)({type:d.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return C(e)||x(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],I.prototype,"labelExpressionInfo",void 0),(0,o.Cg)([(0,w.K)("labelExpressionInfo")],I.prototype,"writeLabelExpressionInfo",null),(0,o.Cg)([(0,p.MZ)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],I.prototype,"labelPlacement",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],I.prototype,"offsetDistance",void 0),(0,o.Cg)([(0,p.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],I.prototype,"labelPosition",void 0),(0,o.Cg)([(0,p.MZ)({type:Number})],I.prototype,"maxScale",void 0),(0,o.Cg)([(0,w.K)("maxScale")],I.prototype,"writeMaxScale",null),(0,o.Cg)([(0,p.MZ)({type:Number})],I.prototype,"minScale",void 0),(0,o.Cg)([(0,w.K)("minScale")],I.prototype,"writeMinScale",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],I.prototype,"repeatLabel",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],I.prototype,"repeatLabelDistance",null),(0,o.Cg)([(0,p.MZ)({types:m.em,json:{types:m.em,origins:{"portal-item":{types:m.em,read:{reader:(0,y.C)({types:m.em})},default:null},"web-scene":{types:m.Rv,read:{reader:(0,y.C)({types:m.Rv})},write:g.oO,default:null}},write:g.oO,default:null}})],I.prototype,"symbol",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],I.prototype,"useCodedValues",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],I.prototype,"where",void 0),I=s=(0,o.Cg)([(0,p.$K)("esri.layers.support.LabelClass")],I)},73913(e,t,r){r.d(t,{A:()=>p});var i,s=r(32198),o=r(25482),l=r(91429),a=r(32730),n=r(36005),u=r(43937);let p=class extends o.o{static{i=this}constructor(e){super(e),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,a.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,a.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({expression:this.expression,title:this.title,value:this.value})}};(0,s.Cg)([(0,l.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"expression",void 0),(0,s.Cg)([(0,n.w)("expression",["expression","value"])],p.prototype,"readExpression",null),(0,s.Cg)([(0,u.K)("expression")],p.prototype,"writeExpression",null),(0,s.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"title",void 0),(0,s.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],p.prototype,"value",void 0),p=i=(0,s.Cg)([(0,l.$K)("esri.layers.support.LabelExpressionInfo")],p)},37352(e,t,r){r.d(t,{A:()=>n});var i,s=r(32198),o=r(7762),l=r(25482),a=r(91429);let n=i=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],n.prototype,"floorField",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],n.prototype,"viewAllMode",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],n.prototype,"viewAllLevelIds",void 0),n=i=(0,s.Cg)([(0,a.$K)("esri.layers.support.LayerFloorInfo")],n)},91880(e,t,r){r.d(t,{A:()=>u});var i,s=r(32198),o=r(66552),l=r(25482),a=r(91429);const n=new o.J({asc:"ascending",desc:"descending"});let u=class extends l.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,s.Cg)([(0,a.MZ)({type:n.apiValues,json:{type:n.jsonValues,read:n.read,write:n.write}})],u.prototype,"order",void 0),u=i=(0,s.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],u)},45067(e,t,r){r.d(t,{A:()=>p});var i=r(32198),s=r(69540),o=r(66552),l=r(25482),a=r(91429);const n=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let p=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,a.MZ)({json:{read:n.read,write:n.write}})],p.prototype,"cardinality",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"catalogID"}})],p.prototype,"catalogId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],p.prototype,"composite",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],p.prototype,"id",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyField",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],p.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],p.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"role",void 0),p=(0,i.Cg)([(0,a.$K)("esri.layers.support.Relationship")],p)},15775(e,t,r){r.d(t,{A:()=>he});var i=r(32198),s=r(37838),o=r(56507),l=r(7762),a=r(49186),n=r(44208),u=r(4902),p=r(4718),y=r(92474),d=r(53966),c=r(25728),h=r(39516),f=r(84952),g=r(91429),m=r(78888),b=r(35666),w=r(88620),v=r(5443),S=r(16930),C=r(50498),x=r(41910),I=r(60950),M=r(89808),A=r(99959);const F=Symbol("isMapImageGraphicOriginSymbol");var _;class P extends A.A{get[(_=F,I.ym)](){return this.sublayer}get[M.Q](){return this.layer}get[x.e7](){return this.sublayer}constructor(e,t){super(),this[_]=!0,this.type="map-image",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}const O=Symbol("isTileGraphicOriginSymbol");var L;class T extends A.A{get[(L=O,I.ym)](){return this.sublayer}get[M.Q](){return this.layer}get[x.e7](){return this.sublayer}constructor(e,t){super(),this[L]=!0,this.type="tile",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var Z,D=r(64314),j=r(32756),E=r(28032),q=r(15426),V=r(33143),N=r(20437),R=r(95466),B=r(30524),k=r(46499),z=r(39383),K=r(37352),J=r(91880),Q=r(45067),$=r(6666),U=r(41214),G=r(2272),X=r(65615),Y=r(93849),W=r(54546),H=r(97552),ee=r(30291),te=r(33910),re=r(43440),ie=r(36005),se=r(43937);function oe(e){return"esriSMS"===e?.type}function le(e,t,r){let i=r.minimumWritableOrigin||r.origin;return!!i&&e.originIdOf(t)>=(0,b.aB)(i)}function ae(e,t,r){let i=le(this,t,r);return{ignoreOrigin:!0,allowNull:i,enabled:!!r&&"map-image"===r.layer?.type&&(r.writeSublayerStructure||i)}}function ne(e,t,r){return{enabled:!!r&&"tile"===r.layer?.type&&(le(this,t,r)||this._isOverridden(t))}}function ue(e,t,r){return{ignoreOrigin:!0,enabled:r&&r.writeSublayerStructure||!1}}function pe(e,t,r){return{ignoreOrigin:!0,enabled:!!r?.writeSublayerStructure&&this.originIdOf(t)>2}}function ye(e,t,r){return{ignoreOrigin:!0,enabled:!!r&&(r.writeSublayerStructure||le(this,t,r))}}let de=0;const ce=new Set(["layer","parent","loaded","loadStatus","loadError","loadWarnings"]);let he=class extends((0,c.M)((0,u.s)(y.x_))){static{Z=this}constructor(e){super(e),this.attributeTableTemplate=null,this.capabilities=void 0,this.editFieldsInfo=null,this.maxScaleRange={minScale:0,maxScale:0},this.fields=null,this.fullExtent=null,this.geometryType=null,this.globalIdField=null,this.isTable=!1,this.legendEnabled=!0,this.objectIdField=null,this.parent=null,this.popupEnabled=!0,this.popupTemplate=null,this.relationships=null,this.sourceJSON=null,this.spatialReference=null,this.title=null,this.typeIdField=null,this.type="sublayer",this.types=null,this.uniqueIdFields=null,this._lastParsedUrl=null}async load(e){return this.addResolvingPromise(this.reload(e)),this}readCapabilities(e,t){t=t.layerDefinition||t;let{attachment:r,operations:{supportsQuery:i,supportsQueryAttachments:s},query:{supportsFormatPBF:o,supportsOrderBy:l,supportsPagination:a,relativeTimeBinWindow:n},data:{supportsAttachment:u},queryRelated:p}=(0,$.S$)(t,this.url);return{attachment:{supportsOrderByFields:r?.supportsOrderByFields??!1,supportsResize:r?.supportsResize??!1,supportsTypeWildcard:r?.supportsTypeWildcard??!1},exportMap:{supportsModification:!!t.canModifyLayer},operations:{supportsQuery:i,supportsQueryAttachments:s},data:{supportsAttachment:u},query:{relativeTimeBinWindow:n,supportsFormatPBF:o,supportsOrderBy:l,supportsPagination:a},queryRelated:p}}get defaultPopupTemplate(){return this.createPopupTemplate()}set definitionExpression(e){this._setAndNotifyLayer("definitionExpression",e)}get effectiveScaleRange(){let{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}get effectiveUniqueIdFields(){return this.uniqueIdFields?[...this.uniqueIdFields]:this.objectIdField?[this.objectIdField]:[]}readMaxScaleRange(e,t){return{minScale:(t=t.layerDefinition||t).minScale??0,maxScale:t.maxScale??0}}get fieldsIndex(){return new R.A(this.fields||[])}set floorInfo(e){this._setAndNotifyLayer("floorInfo",e)}readGlobalIdFieldFromService(e,t){if((t=t.layerDefinition||t).globalIdField)return t.globalIdField;if(t.fields)for(let e of t.fields)if("esriFieldTypeGlobalID"===e.type)return e.name}get graphicOrigin(){if(!this.layer)return null;switch(this.layer.type){case"tile":return new T(this.layer,this);case"map-image":return new P(this.layer,this)}}get id(){return this._get("id")??de++}set id(e){if(this._get("id")!==e){if(!1===this.layer?.capabilities?.exportMap?.supportsDynamicLayers)return void this._logLockedError("id","capability not available 'layer.capabilities.exportMap.supportsDynamicLayers'");this._set("id",e)}}readIsTable(e,t){return"Table"===t.type}set labelingInfo(e){this._setAndNotifyLayer("labelingInfo",e)}writeLabelingInfo(e,t,r,i){e&&e.length&&(t.layerDefinition={drawingInfo:{labelingInfo:e.map(e=>e.write({},i))}})}set labelsVisible(e){this._setAndNotifyLayer("labelsVisible",e)}set layer(e){this._set("layer",e),this.sublayers?.forEach(t=>t.layer=e)}set listMode(e){this._set("listMode",e)}get loaded(){return super.loaded}set minScale(e){this._setAndNotifyLayer("minScale",e)}readMinScale(e,t){return t.minScale||t.layerDefinition?.minScale||0}set maxScale(e){this._setAndNotifyLayer("maxScale",e)}readMaxScale(e,t){return t.maxScale||t.layerDefinition?.maxScale||0}readObjectIdFieldFromService(e,t){return(t=t.layerDefinition||t).objectIdField?t.objectIdField:t.fields?.find(e=>"esriFieldTypeOID"===e.type)?.name}set opacity(e){this._setAndNotifyLayer("opacity",e)}readOpacity(e,t){let{layerDefinition:r}=t;return 1-.01*(r?.transparency??r?.drawingInfo?.transparency??0)}writeOpacity(e,t,r,i){t.layerDefinition={drawingInfo:{transparency:100-100*e}}}set orderBy(e){this._setAndNotifyLayer("orderBy",e)}writeParent(e,t){t.parentLayerId=this.parent&&this.parent!==this.layer?(0,m.Vr)(this.parent.id):-1}get queryTask(){if(!this.layer)return null;let{capabilities:e,fieldsIndex:t,layer:r,uniqueIdFields:i,url:s}=this,{spatialReference:o}=r,l="gdbVersion"in r?r.gdbVersion:void 0,a=(0,n.A)("featurelayer-pbf")&&e?.query.supportsFormatPBF,u=e?.operations?.supportsQueryAttachments??!1,p=e?.query?.relativeTimeBinWindow??0;return new D.A({fieldsIndex:t,gdbVersion:l,pbfSupported:a,queryAttachmentsSupported:u,relativeTimeBinWindow:p,sourceSpatialReference:o,uniqueIdFields:i,url:s})}set renderer(e){if((0,B.yp)(e,this.fieldsIndex),e)for(let t of e.symbols)if((0,te.wk)(t)){d.A.getLogger(this).warn("Sublayer renderer should use 2D symbols");break}this._setAndNotifyLayer("renderer",e)}get source(){return this._get("source")||new Y.A({mapLayerId:this.id})}set source(e){this._setAndNotifyLayer("source",e)}get sublayers(){return this._get("sublayers")}set sublayers(e){this._handleSublayersChange(e,this._get("sublayers")),this._set("sublayers",e)}castSublayers(e){return(0,m.dp)(l.A.ofType(Z),e)}writeSublayers(e,t,r){this.sublayers?.length&&(t[r]=this.sublayers.map(e=>e.id).toArray().reverse())}readTitle(e,t){return t.layerDefinition?.name??t.name}readTypeIdField(e,t){let r=(t=t.layerDefinition||t).typeIdField;if(r&&t.fields){r=r.toLowerCase();let e=t.fields.find(e=>e.name.toLowerCase()===r);e&&(r=e.name)}return r}readUniqueIdFields(e,t){return t.layerDefinition?.uniqueIdInfo?.OIDFieldContainsHashValue?t.layerDefinition.uniqueIdInfo.fields:null}get url(){let e=this.layer?.parsedUrl??this._lastParsedUrl,t=this.source;if(!e)return null;if(this._lastParsedUrl=e,"map-layer"===t?.type)return`${e.path}/${t.mapLayerId}`;let r={layer:JSON.stringify({source:this.source})};return`${e.path}/dynamicLayer?${(0,f.x0)(r)}`}set url(e){this._overrideIfSome("url",e)}set visible(e){this._setAndNotifyLayer("visible",e)}writeVisible(e,t,r,i){t[r]=this.getAtOrigin("defaultVisibility","service")||e}clone(){let{store:e}=(0,w.oY)(this),t=new Z;return(0,w.oY)(t).store=e.clone(ce),this.commitProperty("url"),t._lastParsedUrl=this._lastParsedUrl,t}createPopupTemplate(e){return(0,ee.tn)(this,e)}createQuery(){return new H.A({returnGeometry:!0,where:this.definitionExpression||"1=1"})}async createFeatureLayer(){if(this.sublayers)return null;let e,t=(await Promise.all([r.e(6361),r.e(9953),r.e(1017),r.e(9789),r.e(7283),r.e(8589),r.e(1560)]).then(()=>r(18589))).default,{layer:i,url:s}=this;if(s&&this.originIdOf("url")>2)e=new t({url:s});else{if(!i?.parsedUrl)throw new a.A("createFeatureLayer:missing-information","Cannot create a FeatureLayer without a url or a parent layer");{let r=i.parsedUrl;e=new t({url:r.path}),r&&this.source&&("map-layer"===this.source.type?e.layerId=this.source.mapLayerId:e.dynamicDataSource=this.source)}}return null!=i?.refreshInterval&&(e.refreshInterval=i.refreshInterval),this.definitionExpression&&(e.definitionExpression=this.definitionExpression),this.floorInfo&&(e.floorInfo=(0,p.o8)(this.floorInfo)),this.originIdOf("labelingInfo")>2&&(e.labelingInfo=(0,p.o8)(this.labelingInfo)),this.originIdOf("labelsVisible")>0&&(e.labelsVisible=this.labelsVisible),this.originIdOf("legendEnabled")>0&&(e.legendEnabled=this.legendEnabled),this.originIdOf("visible")>0&&(e.visible=this.visible),this.originIdOf("minScale")>0&&(e.minScale=this.minScale),this.originIdOf("maxScale")>0&&(e.maxScale=this.maxScale),this.originIdOf("opacity")>0&&(e.opacity=this.opacity),this.originIdOf("popupTemplate")>0&&(e.popupTemplate=(0,p.o8)(this.popupTemplate)),this.originIdOf("renderer")>2&&(e.renderer=(0,p.o8)(this.renderer)),"data-layer"===this.source?.type&&(e.dynamicDataSource=this.source.clone()),this.originIdOf("title")>0&&(e.title=this.title),"map-image"===i?.type&&i.originIdOf("customParameters")>0&&(e.customParameters=i.customParameters),"tile"===i?.type&&i.originIdOf("customParameters")>0&&(e.customParameters=i.customParameters),e}getField(e){return this.fieldsIndex.get(e)}getFeatureType(e){return(0,q.xd)(this.types,this.typeIdField,e)}getFieldDomain(e,t){let r=t?.feature,i=this.getFeatureType(r);if(i){let t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this._getLayerDomain(e)}async queryAttachments(e,t){await this.load();let r=W.A.from(e),i=this.capabilities;if(!i?.data?.supportsAttachment)throw new a.A("queryAttachments:not-supported","this layer doesn't support attachments");let{attachmentTypes:s,objectIds:o,globalIds:l,num:n,size:u,start:p,where:y}=r;if(!i?.operations?.supportsQueryAttachments&&(s?.length>0||l?.length>0||u?.length>0||n||p||y))throw new a.A("queryAttachments:option-not-supported","when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",r);if(!(o?.length||l?.length||y))throw new a.A("queryAttachments:invalid-query","'objectIds', 'globalIds', or 'where' are required to perform attachment query",r);return!i?.attachment?.supportsOrderByFields&&r.orderByFields?.length&&(r=r.clone(),r.orderByFields=null),this.queryTask.executeAttachmentQuery(r,t)}async queryFeatureCount(e=this.createQuery(),t){if(await this.load(),!this.capabilities.operations.supportsQuery)throw new a.A("queryFeatureCount:not-supported","this layer doesn't support queries.");if(!this.url)throw new a.A("queryFeatureCount:not-supported","this layer has no url.");let r=this.layer?.apiKey;return await this.queryTask.executeForCount(e,{...t,query:{...this.layer?.customParameters,token:r}})}async queryFeatures(e=this.createQuery(),t){if(await this.load(),!this.capabilities.operations.supportsQuery)throw new a.A("queryFeatures:not-supported","this layer doesn't support queries.");if(!this.url)throw new a.A("queryFeatures:not-supported","this layer has no url.");let r=await this.queryTask.execute(e,{...t,query:{...this.layer?.customParameters,token:this.layer?.apiKey}});if(r?.features){let e=this.graphicOrigin;for(let t of r.features)t.sourceLayer=this,t.origin=e}return r}async queryObjectIds(e=this.createQuery(),t){if(await this.load(),!this.capabilities.operations.supportsQuery)throw new a.A("queryObjectIds:not-supported","this layer doesn't support queries.");if(!this.url)throw new a.A("queryObjectIds:not-supported","this layer has no url.");let r=this.layer?.apiKey;return await this.queryTask.executeForIds(e,{...t,query:{...this.layer?.customParameters,token:r}})}async queryRelatedFeatures(e,t){if(await this.load(),!this.capabilities.operations.supportsQuery)throw new a.A("queryRelatedFeatures:not-supported","this layer doesn't support queries.");if(!this.url)throw new a.A("queryRelatedFeatures:not-supported","this layer has no url.");let r=this.layer?.apiKey;return await this.queryTask.executeRelationshipQuery(e,{...t,query:{...this.layer?.customParameters,token:r}})}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.capabilities.operations.supportsQuery)throw new a.A("queryRelatedFeaturesCount:not-supported","this layer doesn't support queries.");if(!this.capabilities.queryRelated.supportsCount)throw new a.A("queryRelatedFeaturesCount:not-supported","this layer doesn't support query related counts.");if(!this.url)throw new a.A("queryRelatedFeaturesCount:not-supported","this layer has no url.");let r=this.layer?.apiKey;return await this.queryTask.executeRelationshipQueryForCount(e,{...t,query:{...this.layer?.customParameters,token:r}})}async reload(e){if("not-loaded"===this.loadStatus)return this.load(e).then(()=>{});let{layer:t,url:r}=this;if(!t&&!r)throw new a.A("sublayer:missing-layer","Sublayer can't be loaded without being part of a layer",{sublayer:this});let i=t?await t.fetchSublayerInfo(this,e):(await(0,o.A)(r,{query:{f:"json"},...e})).data;i&&(this.sourceJSON={...this.sourceJSON,...i},this.read({layerDefinition:i},{origin:"service",layer:t,url:(0,G.Dl)(r)}))}toExportImageJSON(e){let t={id:this.id,source:this.source?.toJSON()||{mapLayerId:this.id,type:"mapLayer"}},r=(0,h.mA)(e,this.definitionExpression);null!=r&&(t.definitionExpression=r);let i=["renderer","labelingInfo","opacity","labelsVisible"].reduce((e,t)=>(e[t]=this.originIdOf(t),e),{});if(Object.keys(i).some(e=>i[e]>2)){let e=t.drawingInfo={};if(i.renderer>2&&(e.renderer=this.renderer?this.renderer.toJSON():null),i.labelsVisible>2&&(e.showLabels=this.labelsVisible),this.labelsVisible&&i.labelingInfo>2)if(this.labelingInfo){!this.loaded&&this.labelingInfo?.some(e=>!e.labelPlacement)&&d.A.getLogger(this).warnOnce(`A Sublayer (title: ${this.title}, id: ${this.id}) has an undefined 'labelPlacement' and so labels cannot be displayed. Either define a valid 'labelPlacement' or call Sublayer.load() to use a default value based on geometry type.`,{sublayer:this});let t=this.labelingInfo;null!=this.geometryType&&(t=(0,z.z)(this.labelingInfo,C.gy.toJSON(this.geometryType))),e.showLabels=!0,e.labelingInfo=t.filter(e=>e.labelPlacement).map(e=>e.toJSON({origin:"service",layer:this.layer}))}else e.showLabels=!1;i.opacity>2&&(e.transparency=100-100*this.opacity),this._assignDefaultSymbolColors(e.renderer)}return(this.layer?.capabilities?.exportMap?.supportsSublayerOrderBy??!1)&&this.originIdOf("orderBy")>2&&(t.orderBy=this.orderBy?.map(e=>e.toJSON())??null),t}_assignDefaultSymbolColors(e){this._forEachSimpleMarkerSymbols(e,e=>{e.color||("esriSMSX"===e.style||"esriSMSCross"===e.style)&&(e.color=e.outline?.color?e.outline.color:[0,0,0,0])})}_forEachSimpleMarkerSymbols(e,t){if(e){let r=("uniqueValueInfos"in e?e.uniqueValueInfos:"classBreakInfos"in e?e.classBreakInfos:null)??[];for(let e of r)oe(e.symbol)&&t(e.symbol);"symbol"in e&&oe(e.symbol)&&t(e.symbol),"defaultSymbol"in e&&oe(e.defaultSymbol)&&t(e.defaultSymbol)}}_setAndNotifyLayer(e,t){let r,i,s=this.layer,o=this._get(e);switch(e){case"definitionExpression":case"floorInfo":r="supportsSublayerDefinitionExpression";break;case"minScale":case"maxScale":case"visible":r="supportsSublayerVisibility";break;case"labelingInfo":case"labelsVisible":case"opacity":case"renderer":case"source":r="supportsDynamicLayers",i="supportsModification";break;case"orderBy":r="supportsSublayerOrderBy",i="supportsModification"}let l=(0,w.oY)(this).getDefaultOrigin();if("service"!==l){if(r&&!1===this.layer?.capabilities?.exportMap?.[r])return void this._logLockedError(e,`capability not available 'layer.capabilities.exportMap.${r}'`);if(i&&!1===this.capabilities?.exportMap[i])return void this._logLockedError(e,`capability not available 'capabilities.exportMap.${i}'`)}"source"!==e||"not-loaded"===this.loadStatus?(this._set(e,t),"service"!==l&&o!==t&&s?.emit&&s.emit("sublayer-update",{propertyName:e,target:this})):this._logLockedError(e,"'source' can't be changed after calling sublayer.load()")}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null,e.layer=null}),this.removeAllHandles()),e&&(e.forEach(e=>{e.parent=this,e.layer=this.layer}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,e.layer=this.layer}),e.on("after-remove",({item:e})=>{e.parent=null,e.layer=null}),e.on("before-changes",e=>{(this.layer?.capabilities?.exportMap?.supportsSublayersChanges??!0)||(d.A.getLogger(this).error(new a.A("sublayer:sublayers-non-modifiable","Sublayer can't be added, moved, or removed from the layer's sublayers",{sublayer:this,layer:this.layer})),e.preventDefault())})]))}_logLockedError(e,t){let{layer:r,declaredClass:i}=this;d.A.getLogger(i).error(new a.A("sublayer:locked",`Property '${String(e)}' can't be changed on Sublayer from the layer '${r?.id}'`,{reason:t,sublayer:this,layer:r}))}_getLayerDomain(e){return this.fieldsIndex.get(e)?.domain??null}static{this.test={isMapImageLayerOverridePolicy:e=>e===pe||e===ue||e===ae,isTileImageLayerOverridePolicy:e=>e===ne}}};(0,i.Cg)([(0,g.MZ)({type:re.A,json:{name:"attributeTableInfo",write:{overridePolicy:ae},origins:{"web-scene":{write:!1}}}})],he.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],he.prototype,"capabilities",void 0),(0,i.Cg)([(0,ie.w)("service","capabilities",["layerDefinition.canModifyLayer","layerDefinition.capabilities"])],he.prototype,"readCapabilities",null),(0,i.Cg)([(0,g.MZ)()],he.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,g.MZ)({type:String,value:null,json:{name:"layerDefinition.definitionExpression",write:{allowNull:!0,overridePolicy:ae}}})],he.prototype,"definitionExpression",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:E.A,json:{origins:{service:{read:{source:"layerDefinition.editFieldsInfo"}}}}})],he.prototype,"editFieldsInfo",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],he.prototype,"effectiveScaleRange",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:[String]})],he.prototype,"effectiveUniqueIdFields",null),(0,i.Cg)([(0,ie.w)("service","maxScaleRange",["minScale","maxScale"])],he.prototype,"readMaxScaleRange",null),(0,i.Cg)([(0,g.MZ)({type:[N.A],json:{origins:{service:{read:{source:"layerDefinition.fields"}}}}})],he.prototype,"fields",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],he.prototype,"fieldsIndex",null),(0,i.Cg)([(0,g.MZ)({type:K.A,value:null,json:{name:"layerDefinition.floorInfo",read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo",overridePolicy:ae},origins:{"web-scene":{read:!1,write:!1}}}})],he.prototype,"floorInfo",null),(0,i.Cg)([(0,g.MZ)({type:v.A,json:{read:{source:"layerDefinition.extent"}}})],he.prototype,"fullExtent",void 0),(0,i.Cg)([(0,g.MZ)({type:C.gy.apiValues,json:{origins:{service:{name:"layerDefinition.geometryType",read:{reader:C.gy.read}}}}})],he.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],he.prototype,"globalIdField",void 0),(0,i.Cg)([(0,ie.w)("service","globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],he.prototype,"readGlobalIdFieldFromService",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],he.prototype,"graphicOrigin",null),(0,i.Cg)([(0,g.MZ)({type:m.jz,json:{write:{ignoreOrigin:!0}}})],he.prototype,"id",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],he.prototype,"isTable",void 0),(0,i.Cg)([(0,ie.w)("service","isTable",["type"])],he.prototype,"readIsTable",null),(0,i.Cg)([(0,g.MZ)({value:null,type:[k.A],json:{read:{source:"layerDefinition.drawingInfo.labelingInfo"},write:{target:"layerDefinition.drawingInfo.labelingInfo",overridePolicy:pe}}})],he.prototype,"labelingInfo",null),(0,i.Cg)([(0,se.K)("labelingInfo")],he.prototype,"writeLabelingInfo",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,value:!0,json:{read:{source:"layerDefinition.drawingInfo.showLabels"},write:{target:"layerDefinition.drawingInfo.showLabels",overridePolicy:ue}}})],he.prototype,"labelsVisible",null),(0,i.Cg)([(0,g.MZ)({value:null})],he.prototype,"layer",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:{overridePolicy:ne}}})],he.prototype,"layerItemId",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},read:{source:"showLegend"},write:{target:"showLegend",overridePolicy:ye}}})],he.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:["show","hide","hide-children"],value:"show",json:{read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],he.prototype,"listMode",null),(0,i.Cg)([(0,g.MZ)({type:Number,value:0,json:{write:{overridePolicy:ue}}})],he.prototype,"minScale",null),(0,i.Cg)([(0,ie.w)("minScale",["minScale","layerDefinition.minScale"])],he.prototype,"readMinScale",null),(0,i.Cg)([(0,g.MZ)({type:Number,value:0,json:{write:{overridePolicy:ue}}})],he.prototype,"maxScale",null),(0,i.Cg)([(0,ie.w)("maxScale",["maxScale","layerDefinition.maxScale"])],he.prototype,"readMaxScale",null),(0,i.Cg)([(0,g.MZ)()],he.prototype,"objectIdField",void 0),(0,i.Cg)([(0,ie.w)("service","objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],he.prototype,"readObjectIdFieldFromService",null),(0,i.Cg)([(0,g.MZ)({type:Number,value:1,json:{write:{target:"layerDefinition.drawingInfo.transparency",overridePolicy:ue}}})],he.prototype,"opacity",null),(0,i.Cg)([(0,ie.w)("opacity",["layerDefinition.drawingInfo.transparency","layerDefinition.transparency"])],he.prototype,"readOpacity",null),(0,i.Cg)([(0,se.K)("opacity")],he.prototype,"writeOpacity",null),(0,i.Cg)([(0,g.MZ)({value:null,type:[J.A],json:{name:"layerDefinition.orderBy",read:{reader:j.Rr},write:{overridePolicy:ae},origins:{"web-scene":{read:!1,write:!1}}}})],he.prototype,"orderBy",null),(0,i.Cg)([(0,g.MZ)({json:{type:m.jz,write:{target:"parentLayerId",writerEnsuresNonNull:!0,overridePolicy:ue}}})],he.prototype,"parent",void 0),(0,i.Cg)([(0,se.K)("parent")],he.prototype,"writeParent",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(e,t)=>!t.disablePopup},write:{target:"disablePopup",overridePolicy:ye,writer(e,t,r){t[r]=!e}}}})],he.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy:ye}}})],he.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],he.prototype,"queryTask",null),(0,i.Cg)([(0,g.MZ)({type:[Q.A],readOnly:!0,json:{origins:{service:{read:{source:"layerDefinition.relationships"}}}}})],he.prototype,"relationships",void 0),(0,i.Cg)([(0,g.MZ)({types:U.Hg,value:null,json:{name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:pe},origins:{"web-scene":{types:U.XJ,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:pe}}}}})],he.prototype,"renderer",null),(0,i.Cg)([(0,g.MZ)({types:{key:"type",base:null,typeMap:{"data-layer":X.A,"map-layer":Y.A}},cast(e){if(e){if("mapLayerId"in e)return(0,m.PZ)(Y.A,e);if("dataSource"in e)return(0,m.PZ)(X.A,e)}return e},json:{name:"layerDefinition.source",write:{overridePolicy:ue}}})],he.prototype,"source",null),(0,i.Cg)([(0,g.MZ)()],he.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,g.MZ)({type:S.A,json:{origins:{service:{read:{source:"layerDefinition.extent.spatialReference"}}}}})],he.prototype,"spatialReference",void 0),(0,i.Cg)([(0,g.MZ)({value:null,json:{type:[m.jz],write:{target:"subLayerIds",allowNull:!0,overridePolicy:ue}}})],he.prototype,"sublayers",null),(0,i.Cg)([(0,g.wg)("sublayers")],he.prototype,"castSublayers",null),(0,i.Cg)([(0,se.K)("sublayers")],he.prototype,"writeSublayers",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{name:"name",write:{overridePolicy:ye}}})],he.prototype,"title",void 0),(0,i.Cg)([(0,ie.w)("service","title",["name","layerDefinition.name"])],he.prototype,"readTitle",null),(0,i.Cg)([(0,g.MZ)({type:String})],he.prototype,"typeIdField",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1},readOnly:!0,value:"sublayer"})],he.prototype,"type",void 0),(0,i.Cg)([(0,ie.w)("typeIdField",["layerDefinition.typeIdField"])],he.prototype,"readTypeIdField",null),(0,i.Cg)([(0,g.MZ)({type:[V.A],json:{origins:{service:{read:{source:"layerDefinition.types"}}}}})],he.prototype,"types",void 0),(0,i.Cg)([(0,g.MZ)({type:[String],readOnly:!0})],he.prototype,"uniqueIdFields",void 0),(0,i.Cg)([(0,ie.w)("service","uniqueIdFields",["layerDefinition.uniqueIdInfo.OIDFieldContainsHashValue","layerDefinition.uniqueIdInfo.fields"])],he.prototype,"readUniqueIdFields",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{name:"layerUrl",write:{overridePolicy:ne}}})],he.prototype,"url",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"},write:{target:"defaultVisibility",overridePolicy:ue}}})],he.prototype,"visible",null),(0,i.Cg)([(0,se.K)("visible")],he.prototype,"writeVisible",null),he=Z=(0,i.Cg)([(0,g.$K)("esri.layers.support.Sublayer")],he)},33446(e,t,r){r.d(t,{Cp:()=>l,mn:()=>o});var i=r(49186),s=r(17676);async function o(e,t,r){let o;try{o=await a(e,r)}catch(e){throw new i.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,s.Te)(r),o}async function l(e,t,r,o,l){let n;try{n=await a(e,l)}catch(e){throw new i.A("request:server",`Unable to load tile ${t}/${r}/${o}`,{error:e,level:t,row:r,col:o})}return(0,s.Te)(l),n}async function a(e,t){let r=await createImageBitmap(e,{imageOrientation:t?.imageOrientation??"none"}),i=t?.type??(e instanceof Blob?e.type.startsWith("image/")?e.type:t?.allowDeriveTypeFromData?await async function(e){return e.byteLength<2?"unknown":137===e[0]&&80===e[1]?"image/png":71===e[0]&&73===e[1]?"image/gif":66===e[0]&&77===e[1]?"image/bmp":255===e[0]&&216===e[1]?"image/jpeg":"unknown"}(await e.bytes()):void 0:void 0);return new n(r,i)}class n{constructor(e,t){this.bitmap=e,this.type=t}get isOpaque(){return"image/jpeg"===this.type}}},39383(e,t,r){r.d(t,{w:()=>n,z:()=>y});var i=r(49186),s=r(53966),o=r(46499);const l=()=>s.A.getLogger("esri.layers.support.labelingInfo"),a=/\[([^[\]]+)\]/gi;function n(e,t,r){return e?e.map(e=>{let i=new o.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(a,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],p={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function y(e,t){let r=[];for(let s of e){let e=s.labelPlacement,o=p[t];if(!s.symbol)return l().warn("No ILabelClass symbol specified."),[];if(!o)return l().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(o.includes(e))r.push(s);else{let i=o[0];e&&l().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let a=s.clone();a.labelPlacement=i,r.push(a)}}return r}},63389(e,t,r){function i(e,t,r){return!(t.flatten(({sublayers:e})=>e).length===e.length&&!e.some(e=>e.originIdOf("minScale")>r||e.originIdOf("maxScale")>r||e.originIdOf("renderer")>r||e.originIdOf("labelingInfo")>r||e.originIdOf("opacity")>r||e.originIdOf("labelsVisible")>r||e.originIdOf("source")>r)&&o(e,t))}function s(e,t,r){return!!e.some(e=>{let t=e.source,i=!t||"map-layer"===t.type&&t.mapLayerId===e.id&&(null==t.gdbVersion||t.gdbVersion===r);e.commitProperty("renderer"),e.commitProperty("labelingInfo"),e.commitProperty("opacity"),e.commitProperty("labelsVisible"),e.commitProperty("orderBy");let s=e.layer?.capabilities?.exportMap?.supportsSublayerOrderBy??!1;return!i||e.originIdOf("renderer")>2||e.originIdOf("labelingInfo")>2||e.originIdOf("opacity")>2||e.originIdOf("labelsVisible")>2||s&&e.originIdOf("orderBy")>2})||!o(e,t)}function o(e,t){if(!e?.length||null==t)return!0;let r=t.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).map(e=>e.id).toArray();if(e.length>r.length)return!1;let i=0,s=r.length;for(let{id:t}of e){for(;i<s&&r[i]!==t;)i++;if(i>=s)return!1}return!0}function l(e){return!!e&&e.some(e=>null!=e.minScale||null!=e.layerDefinition?.minScale)}r.d(t,{Sk:()=>s,Zx:()=>i,_X:()=>l})},20615(e,t,r){r.d(t,{I:()=>l});var i=r(2272),s=r(80893),o=r(97552);function l(e,t,r,l){return(0,s.gW)((0,i.Dl)(e),o.A.from(t),r,l)}},74910(e,t,r){r.d(t,{L:()=>a});var i=r(5443),s=r(2272),o=r(80893),l=r(97552);async function a(e,t,r){let a=(0,s.Dl)(e),n=await(0,o.Jf)(a,l.A.from(t),{...r}),u=n.extent;return!u||isNaN(u.xmin)||isNaN(u.ymin)||isNaN(u.xmax)||isNaN(u.ymax)?{count:n.count,extent:null}:{count:n.count,extent:i.A.fromJSON(u)}}},78286(e,t,r){r.d(t,{V:()=>l});var i=r(2272),s=r(80893),o=r(97552);async function l(e,t,r,l){let a=(0,i.Dl)(e),n=await(0,s.Pk)(a,o.A.from(t),r,l);return n.objectIds??function(e){if(e)return function(e){return!Array.isArray(e[0])}(e)?e:e.map(e=>JSON.stringify(e))}(n.uniqueIds)??[]}},99199(e,t,r){r.d(t,{e:()=>n,s:()=>a});var i=r(2272),s=r(80893),o=r(22671),l=r(97552);async function a(e,t,r,i){let s=await n(e,t,r,i);return o.A.fromJSON(s)}function n(e,t,r,o){let a=(0,i.Dl)(e),n={...r},u=l.A.from(t);return(0,s.eW)(a,u,u.sourceSpatialReference,n,o)}},63746(e,t,r){function i(e){return class{constructor(){for(let t of e)this[t]=null}}}function s(e,t=1){let{transform:r,hasZ:i,hasM:s}=e;if(null==r)return i&&1!==t?e=>{e[2]*=t}:null;let[o,l]=function(e,t,r,i){let{scale:s,translate:o,originPosition:l}=e;return"upperLeft"===l&&(s=s.map((e,t)=>1===t?-e:e)),t&&(s=s.map((e,t)=>2===t?e*i:e),o=o.map((e,t)=>2===t?e*i:e)),!t&&r&&(s=s.filter((e,t)=>2!==t),o=o.filter((e,t)=>2!==t)),[s,o]}(r,i,s,t),a=e.hasZ?3:2;return e=>{for(let t=0;t<e.length&&(t!==a||0!==e[t]);++t)e[t]=e[t]*o[t]+l[t]}}r.d(t,{M:()=>s,_:()=>i})},41366(e,t,r){var i=r(32198),s=r(66552),o=r(53966),l=r(91429),a=r(93223);const n=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",p="field";r.d(t,["K",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&p||r&&u||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===p||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,a.e)(n,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,n])},93470(e,t,r){const i=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,s,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])}}]);
|