@arcgis/core 4.30.0-next.20240321 → 4.30.0-next.20240323
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/arcade/Dictionary.js +1 -1
- package/arcade/Feature.js +1 -1
- package/arcade/featureset/actions/Adapted.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/arcade/featureset/support/sqlUtils.js +1 -1
- package/arcade/parser.js +1 -1
- package/arcade/validation/arcadeValidator.js +1 -1
- package/arcade/validation/languageKeywords.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{4e4ad7ac43a72a2f88a1.js → 0005267c754235ae6784.js} +1 -1
- package/assets/esri/core/workers/chunks/07fd6804c7eaa8d2ac3f.js +1 -0
- package/assets/esri/core/workers/chunks/{ff4151d794ec73064fac.js → 10b4fbdc0f8be85737f0.js} +1 -1
- package/assets/esri/core/workers/chunks/{8fc69ac4cce6d4dd5513.js → 18a9b472007d4f2b7bbb.js} +1 -1
- package/assets/esri/core/workers/chunks/{f484d2a3deb3c60d7038.js → 1ad1cdde4db5ab793623.js} +1 -1
- package/assets/esri/core/workers/chunks/36dfc55dc536b1831918.js +1 -0
- package/assets/esri/core/workers/chunks/{cee492b97e841a6d4678.js → 5b41ec1bd24314f6f153.js} +1 -1
- package/assets/esri/core/workers/chunks/{d518a0adc3d88700235c.js → 65680926c761bf53fd14.js} +1 -1
- package/assets/esri/core/workers/chunks/{9c78ccff1c7f8ae90b06.js → 671892e733d8976e48bb.js} +1 -1
- package/assets/esri/core/workers/chunks/{4be6d5660ec1c8ac7606.js → 70188e0aa47da1aa1a7f.js} +1 -1
- package/assets/esri/core/workers/chunks/7c212395100080cf122e.js +1 -0
- package/assets/esri/core/workers/chunks/8c07e1000522c3251ac0.js +1 -0
- package/assets/esri/core/workers/chunks/9d240e70a24520b2a810.js +1 -0
- package/assets/esri/core/workers/chunks/{ee1345b212cde1ff4755.js → a7ac2c5e701f44a67aa3.js} +1 -1
- package/assets/esri/core/workers/chunks/{5a747af5273646ab848c.js → c38c6cae22627fbf6f3b.js} +1 -1
- package/assets/esri/core/workers/chunks/c4d2ff515fc70b07cb5f.js +1 -0
- package/assets/esri/core/workers/chunks/{96fd6fd8cbb3a2ee088e.js → caa03837b9c173ea493f.js} +1 -1
- package/assets/esri/core/workers/chunks/{dd5a078b7919f749ba3e.js → d90ee005599c44bfb6ad.js} +1 -1
- package/assets/esri/core/workers/chunks/dc3a6ab23a13ec5deed7.js +1 -0
- package/assets/esri/core/workers/chunks/{eb3e82ed1653ecf348da.js → e1a2f7282d889e251809.js} +1 -1
- package/assets/esri/core/workers/chunks/{52274afa07468bc555aa.js → ec52127b5ada8410acf3.js} +13 -13
- package/assets/esri/core/workers/chunks/f8693321bbd8a93666c7.js +1 -0
- package/assets/esri/core/workers/chunks/{fe7dfb8546d0fc40843c.js → fec0d24e8841ba1994f0.js} +1 -1
- package/chunks/LineSeries.js +1 -1
- package/chunks/Theme.js +1 -1
- package/chunks/index.js +5 -0
- package/chunks/languageUtils.js +1 -1
- package/core/number.js +1 -1
- package/core/workers/loaderConfig.js +1 -1
- package/interfaces.d.ts +3 -3
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/support/rasterDatasets/WCSRaster.js +1 -1
- package/package.json +1 -1
- package/rest/knowledgeGraphService.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/undoredo/support/DataEditingContext.js +5 -0
- package/views/2d/constraints/ZoomConstraint.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/ComputedMarkerParams.js +1 -1
- package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
- package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
- package/views/2d/layers/features/schema/processor/symbols/utils.js +5 -0
- package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
- package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
- package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentIntersectionData.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/IntersectorInterfaces.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
- package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/LayerList.js +1 -1
- package/widgets/TableList.js +1 -1
- package/arcade/lib/arcade-parser.js +0 -5
- package/arcade/lib/assert.js +0 -5
- package/arcade/lib/character.js +0 -5
- package/arcade/lib/comment-handler.js +0 -5
- package/arcade/lib/error-handler.js +0 -5
- package/arcade/lib/parser.js +0 -5
- package/arcade/lib/scanner.js +0 -5
- package/arcade/lib/tokenizer.js +0 -5
- package/arcade/lib/types.js +0 -5
- package/assets/esri/core/workers/chunks/12b95408753cea053a40.js +0 -1
- package/assets/esri/core/workers/chunks/16397420fb6067b47b25.js +0 -1
- package/assets/esri/core/workers/chunks/1fdbeb110fae52b96bb3.js +0 -1
- package/assets/esri/core/workers/chunks/689a122c77b39e5c73eb.js +0 -1
- package/assets/esri/core/workers/chunks/7b07f3bc68a54974cd03.js +0 -1
- package/assets/esri/core/workers/chunks/ad95daa3f4ad7030bf24.js +0 -1
- package/assets/esri/core/workers/chunks/c2573c1cb7c714435acc.js +0 -1
- package/assets/esri/core/workers/chunks/df38774f63984be0a478.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4784],{54784:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(85978),a=n(87449),s=n(11221),i=n(89169),l=n(33325),u=n(14469);class o extends s.A{constructor(e){super(e),this._relation="",this._relationGeom=null,this._relationString="",this.declaredClass="esri.arcade.featureset.actions.SpatialFilter",this._relationString=e.relationString,this._parent=e.parentfeatureset,this._maxProcessing=40,this._relation=e.relation,this._relationGeom=e.relationGeom}async _getSet(e){if(null===this._wset){await this._ensureLoaded();const t=await this._parent._getFilteredSet("esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,null,null,e);return this._checkCancelled(e),this._wset=new i.A(t._candidates.slice(0),t._known.slice(0),t._ordered,this._clonePageDefinition(t.pagesDefinition)),this._wset}return this._wset}_isInFeatureSet(e){let t=this._parent._isInFeatureSet(e);return t===l.J6.NotInFeatureSet?t:(t=this._idstates[e],void 0===t?l.J6.Unknown:t)}_getFeature(e,t,n){return this._parent._getFeature(e,t,n)}_getFeatures(e,t,n,r){return this._parent._getFeatures(e,t,n,r)}_featureFromCache(e){return this._parent._featureFromCache(e)}async executeSpatialRelationTest(e){if(null===e.geometry)return!1;switch(this._relation){case"esriSpatialRelEnvelopeIntersects":return(0,u.HY)((0,l.Yc)(this._relationGeom),(0,l.Yc)(e.geometry));case"esriSpatialRelIntersects":return(0,u.HY)(this._relationGeom,e.geometry);case"esriSpatialRelContains":return(0,u.gR)(this._relationGeom,e.geometry);case"esriSpatialRelOverlaps":return(0,u.$f)(this._relationGeom,e.geometry);case"esriSpatialRelWithin":return(0,u.ux)(this._relationGeom,e.geometry);case"esriSpatialRelTouches":return(0,u.yI)(this._relationGeom,e.geometry);case"esriSpatialRelCrosses":return(0,u.NN)(this._relationGeom,e.geometry);case"esriSpatialRelRelation":return(0,u.c7)(this._relationGeom,e.geometry,this._relationString??"")}}async _fetchAndRefineFeatures(e,t,n){const r=new i.A([],e,!1,null),a=Math.min(t,e.length);await(this._parent?._getFeatures(r,-1,a,n)),this._checkCancelled(n);const s=[];for(let t=0;t<a;t++){const n=this._parent._featureFromCache(e[t]);s.push(await this.executeSpatialRelationTest(n))}for(let n=0;n<t;n++)!0===s[n]?this._idstates[e[n]]=l.J6.InFeatureSet:this._idstates[e[n]]=l.J6.NotInFeatureSet;return"success"}async _getFilteredSet(e,t,n,r,a){await this._ensureLoaded();const s=await this._parent._getFilteredSet("esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,n,r,a);let l;return this._checkCancelled(a),l=null!==t?new i.A(s._candidates.slice(0).concat(s._known.slice(0)),[],s._ordered,this._clonePageDefinition(s.pagesDefinition)):new i.A(s._candidates.slice(0),s._known.slice(0),s._ordered,this._clonePageDefinition(s.pagesDefinition)),l}async _stat(e,t,n,r,a,s,i){if(""!==n)return{calculated:!1};const l=await this._parent._stat(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,a,s,i);return!1===l.calculated?null===a&&""===n&&null===r?this._manualStat(e,t,s,i):{calculated:!1}:l}async _canDoAggregates(e,t,n,r,a){return""===n&&null===r&&null!==this._parent&&this._parent._canDoAggregates(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,a)}async _getAggregatePagesDataSourceDefinition(e,t,n,r,s,i,l){if(null===this._parent)throw new a.dr(a.D_.NeverReach);return this._parent._getAggregatePagesDataSourceDefinition(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,s,i,l)}static registerAction(){s.A._featuresetFunctions.intersects=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelIntersects",relationGeom:e})},s.A._featuresetFunctions.envelopeIntersects=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelEnvelopeIntersects",relationGeom:e})},s.A._featuresetFunctions.contains=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelContains",relationGeom:e})},s.A._featuresetFunctions.overlaps=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelOverlaps",relationGeom:e})},s.A._featuresetFunctions.within=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelWithin",relationGeom:e})},s.A._featuresetFunctions.touches=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelTouches",relationGeom:e})},s.A._featuresetFunctions.crosses=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelCrosses",relationGeom:e})},s.A._featuresetFunctions.relate=function(e,t){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelRelation",relationGeom:e,relationString:t})}}getFieldsIndex(){return this._parent.getFieldsIndex()}}},85978:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(87449),a=n(11221),s=n(89169),i=n(33325);class l extends a.A{constructor(e){super(e),this.declaredClass="esri.layers.featureset.sources.Empty",this._maxProcessing=1e3,this._wset=new s.A([],[],!1,null),this._parent=e.parentfeatureset,this._databaseType=i.zl.Standardised}async _getSet(){return this._wset}optimisePagingFeatureQueries(){}_isInFeatureSet(){return i.J6.NotInFeatureSet}async _getFeature(){throw new r.dr(r.D_.NeverReach)}async queryAttachments(){return[]}async _getFeatures(){return"success"}_featureFromCache(){return null}async _fetchAndRefineFeatures(){throw new r.dr(r.D_.NeverReach)}async _getFilteredSet(){return new s.A([],[],!1,null)}_stat(e,t,n,r,a,s,i){return this._manualStat(e,t,s,i)}async _canDoAggregates(){return!1}}},11221:(e,t,n)=>{n.d(t,{A:()=>_});var r=n(23732),a=n(87449),s=n(93833);class i{constructor(e,t){this._lastId=-1,this._progress=t,this._parent=e}reset(){this._lastId=-1}async nextBatchAsArcadeFeatures(e,t){const n=await this.nextBatch(e);return null===n?n:n.map((e=>s.A.createFromGraphicLikeObject(e.geometry,e.attributes,this._parent,t)))}nextBatch(e){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then((t=>this.nextBatch(e)),(t=>this.nextBatch(e)));const t={returnpromise:null,hasset:!1},n=[];return t.returnpromise=new Promise(((r,a)=>{this._parent._getSet(this._progress).then((s=>{const i=s._known;let l=i.length-1;if("GETPAGES"===i[i.length-1]&&(l-=1),this._lastId+e>l&&i.length>0&&"GETPAGES"===i[i.length-1])return void this._parent._expandPagedSet(s,this._parent._maxQueryRate(),0,0,this._progress).then((n=>{t.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(e).then(r,a)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)}));const u=s._candidates;if(l>=this._lastId+e||0===u.length){for(let t=0;t<e;t++){const e=t+this._lastId+1;if(e>=i.length)break;n[t]=i[e]}return this._lastId+=n.length,0===n.length&&(t.hasset=!0,this._parent._mainSetInUse=null,r([])),void this._parent._getFeatureBatch(n,this._progress).then((e=>{t.hasset=!0,this._parent._mainSetInUse=null,r(e)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)}))}this._parent._refineSetBlock(s,this._parent._maxProcessingRate(),this._progress).then((()=>{t.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(e).then(r,a)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)}))}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)}))})),!1===t.hasset&&(this._parent._mainSetInUse=t.returnpromise,t.hasset=!0),t.returnpromise}next(){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then((e=>this.next()),(e=>this.next()));const e={returnpromise:null,hasset:!1};return e.returnpromise=new Promise(((t,n)=>{this._parent._getSet(this._progress).then((r=>{const a=r._known;this._lastId<a.length-1?"GETPAGES"===a[this._lastId+1]?this._parent._expandPagedSet(r,this._parent._maxQueryRate(),0,0,this._progress).then((t=>(e.hasset=!0,this._parent._mainSetInUse=null,this.next()))).then(t,n):(this._lastId+=1,this._parent._getFeature(r,a[this._lastId],this._progress).then((n=>{e.hasset=!0,this._parent._mainSetInUse=null,t(n)}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)}))):r._candidates.length>0?this._parent._refineSetBlock(r,this._parent._maxProcessingRate(),this._progress).then((()=>{e.hasset=!0,this._parent._mainSetInUse=null,this.next().then(t,n)}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)})):(e.hasset=!0,this._parent._mainSetInUse=null,t(null))}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)}))})),!1===e.hasset&&(this._parent._mainSetInUse=e.returnpromise,e.hasset=!0),e.returnpromise}async count(){if(-1!==this._parent._totalCount)return this._parent._totalCount;const e=await this._parent._getSet(this._progress),t=await this._refineAllSets(e);return this._parent._totalCount=t._known.length,this._parent._totalCount}async _refineAllSets(e){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1])return await this._parent._expandPagedSet(e,this._parent._maxQueryRate(),0,1,this._progress),this._refineAllSets(e);if(e._candidates.length>0){if("GETPAGES"===e._known[e._candidates.length-1])return await this._parent._expandPagedSet(e,this._parent._maxQueryRate(),0,2,this._progress),this._refineAllSets(e);const t=await this._parent._refineSetBlock(e,this._parent._maxProcessingRate(),this._progress);return t._candidates.length>0?this._refineAllSets(t):t}return e}}var l=n(89169),u=n(33325),o=n(50145),c=n(74887),h=n(50835),d=n(14469),f=n(16930),p=n(95466);class _{constructor(e){this.recentlyUsedQueries=null,this.featureSetQueryInterceptor=null,this._idstates=[],this._parent=null,this._wset=null,this._mainSetInUse=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=u.zl.NotEvaluated,this._databaseTypeProbed=null,this.declaredRootClass="esri.arcade.featureset.support.FeatureSet",this._featureCache=[],this.typeIdField=null,this.types=null,this.subtypeField=null,this.subtypes=null,this.fields=null,this.geometryType="",this.objectIdField="",this.globalIdField="",this.spatialReference=null,this.hasM=!1,this.hasZ=!1,this._transparent=!1,this.loaded=!1,this._loadPromise=null,this._fieldsIndex=null,this.fsetInfo=null,e?.lrucache&&(this.recentlyUsedQueries=e.lrucache),e?.interceptor&&(this.featureSetQueryInterceptor=e.interceptor)}optimisePagingFeatureQueries(e){this._parent&&this._parent.optimisePagingFeatureQueries(e)}_hasMemorySource(){return!0}prop(e,t){return void 0===t?this[e]:(void 0!==this[e]&&(this[e]=t),this)}end(){return null!==this._parent&&!0===this._parent._transparent?this._parent.end():this._parent}_ensureLoaded(){return this.load()}load(){return null===this._loadPromise&&(this._loadPromise=this.loadImpl()),this._loadPromise}async loadImpl(){return!0===this._parent?.loaded?(this._initialiseFeatureSet(),this):(await(this._parent?.load()),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){null!==this._parent?(this.fields=this._parent.fields.slice(0),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.subtypeField=this._parent.subtypeField,this.subtypes=this._parent.subtypes):(this.fields=[],this.typeIdField="",this.subtypeField="",this.objectIdField="",this.globalIdField="",this.spatialReference=new f.A({wkid:4326}),this.geometryType=u.ik.point)}getField(e,t){let n;return(t=t||this.fields)&&(e=e.toLowerCase(),t.some((t=>(t&&t.name.toLowerCase()===e&&(n=t),!!n)))),n}getFieldsIndex(){return null===this._fieldsIndex&&(this._fieldsIndex=p.A.fromLayer({timeInfo:this.timeInfo,editFieldsInfo:this.editFieldsInfo,dateFieldsTimeZone:this.dateFieldsTimeZone,datesInUnknownTimezone:this.datesInUnknownTimezone,fields:this.fields})),this._fieldsIndex}_maxProcessingRate(){return null!==this._parent?Math.min(this._maxProcessing,this._parent._maxProcessingRate()):Math.min(this._maxProcessing,this._maxQueryRate())}_maxQueryRate(){return null!==this._parent?Math.max(this._maxQuery,this._parent._maxQueryRate()):this._maxQuery}_checkCancelled(e){if(null!=e&&e.aborted)throw new a.dr(a.D_.Cancelled)}nativeCapabilities(){return this._parent.nativeCapabilities()}async _canDoAggregates(e,t,n,r,a){return null!==this._parent&&this._parent._canDoAggregates(e,t,n,r,a)}async _getAggregatePagesDataSourceDefinition(e,t,n,r,s,i,l){if(null===this._parent)throw new a.dr(a.D_.NeverReach);return this._parent._getAggregatePagesDataSourceDefinition(e,t,n,r,s,i,l)}async _getAgregagtePhysicalPage(e,t,n){if(null===this._parent)throw new a.dr(a.D_.NeverReach);return this._parent._getAgregagtePhysicalPage(e,t,n)}async databaseType(){if(this._databaseType===u.zl.NotEvaluated){if(null!==r.A.applicationCache){const e=r.A.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());if(null!==e)return e}if(null!==this._databaseTypeProbed)return this._databaseTypeProbed;try{this._databaseTypeProbed=this._getDatabaseTypeImpl(),null!==r.A.applicationCache&&r.A.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(),this._databaseTypeProbed)}catch(e){throw null!==r.A.applicationCache&&r.A.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()),e}return this._databaseTypeProbed}return this._databaseType}async _getDatabaseTypeImpl(){const e=[{thetype:u.zl.SqlServer,testwhere:"(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0"},{thetype:u.zl.Oracle,testwhere:"(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0"},{thetype:u.zl.StandardisedNoInterval,testwhere:"(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0"}];for(const t of e)if(!0===await this._runDatabaseProbe(t.testwhere))return t.thetype;return u.zl.StandardisedNoInterval}_cacheableFeatureSetSourceKey(){return"MUSTBESET"}async _runDatabaseProbe(e){if(null!==this._parent)return this._parent._runDatabaseProbe(e);throw new a.dr(a.D_.NotImplemented)}isTable(){return this._parent?.isTable()??!1}_featureFromCache(e){if(void 0!==this._featureCache[e])return this._featureCache[e]}_isInFeatureSet(e){return u.J6.Unknown}_getSet(e){throw new a.dr(a.D_.NotImplemented)}async _getFeature(e,t,n){if(this._checkCancelled(n),void 0!==this._featureFromCache(t))return this._featureFromCache(t);if(await this._getFeatures(e,t,this._maxProcessingRate(),n),this._checkCancelled(n),void 0!==this._featureFromCache(t))return this._featureFromCache(t);throw new a.dr(a.D_.MissingFeatures)}async _getFeatureBatch(e,t){this._checkCancelled(t);const n=new l.A([],e,!1,null),r=[];await this._getFeatures(n,-1,e.length,t),this._checkCancelled(t);for(const t of e)void 0!==this._featureFromCache(t)&&r.push(this._featureFromCache(t));return r}async _getFeatures(e,t,n,r){return"success"}_getFilteredSet(e,t,n,r,s){throw new a.dr(a.D_.NotImplemented)}async _refineSetBlock(e,t,n){if(!0===this._checkIfNeedToExpandCandidatePage(e,this._maxQueryRate()))return await this._expandPagedSet(e,this._maxQueryRate(),0,0,n),this._refineSetBlock(e,t,n);this._checkCancelled(n);const r=e._candidates.length;this._refineKnowns(e,t);let a=r-e._candidates.length;if(0===e._candidates.length)return e;if(a>=t)return e;if(await this._refineIfParentKnown(e,t-a,n),this._checkCancelled(n),this._refineKnowns(e,t-a),a=r-e._candidates.length,a<t&&e._candidates.length>0){const r=t-a,s=this._prepareFetchAndRefineSet(e._candidates);return await this._fetchAndRefineFeatures(s,s.length>r?r:e._candidates.length,n),this._checkCancelled(n),this._refineKnowns(e,t-a),e}return e}_fetchAndRefineFeatures(e,t,n){return null}_prepareFetchAndRefineSet(e){const t=[];for(let n=0;n<e.length;n++)this._isPhysicalFeature(e[n])&&t.push(e[n]);return t}_isPhysicalFeature(e){return null===this._parent||this._parent._isPhysicalFeature(e)}_refineKnowns(e,t){let n=0,r=null;const a=[];t=this._maxQueryRate();for(let s=0;s<e._candidates.length&&"GETPAGES"!==e._candidates[s];s++){let i=!1;const l=this._candidateIdTransform(e._candidates[s]);l!==e._candidates[s]&&(i=!0);const o=this._isInFeatureSet(l);if(o===u.J6.InFeatureSet)!0===i?e._known.includes(l)||(e._known.push(l),n+=1):(e._known.push(e._candidates[s]),n+=1),null===r?r={start:s,end:s}:r.end===s-1?r.end=s:(a.push(r),r={start:s,end:s});else if(o===u.J6.NotInFeatureSet)null===r?r={start:s,end:s}:r.end===s-1?r.end=s:(a.push(r),r={start:s,end:s}),n+=1;else if(o===u.J6.Unknown&&(n+=1,!0===e._ordered))break;if(n>=t)break}null!==r&&a.push(r);for(let t=a.length-1;t>=0;t--)e._candidates.splice(a[t].start,a[t].end-a[t].start+1)}_refineIfParentKnown(e,t,n){const r=new l.A([],[],e._ordered,null);return r._candidates=e._candidates.slice(0),this._parent._refineSetBlock(r,t,n)}_candidateIdTransform(e){return this._parent._candidateIdTransform(e)}_checkIfNeedToExpandKnownPage(e,t){if(null===e.pagesDefinition)return!1;let n=0;for(let r=e._lastFetchedIndex;r<e._known.length;r++){if("GETPAGES"===e._known[r])return!0;if(void 0===this._featureCache[e._known[r]]&&(n+=1,n>=t))break}return!1}_checkIfNeedToExpandCandidatePage(e,t){if(null===e.pagesDefinition)return!1;let n=0;for(let r=0;r<e._candidates.length;r++){if("GETPAGES"===e._candidates[r])return!0;if(n+=1,n>=t)break}return!1}async _expandPagedSet(e,t,n,r,s){if(null===this._parent)throw new a.dr(a.D_.NotImplemented);return this._parent._expandPagedSet(e,t,n,r,s)}async _expandPagedSetFeatureSet(e,t,n,r,a){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1]&&(r=1),0===r&&e._candidates.length>0&&"GETPAGES"===e._candidates[e._candidates.length-1]&&(r=2),0===r)return"finished";const s=await this._getPage(e,r,a);return n+s<t?this._expandPagedSet(e,t,n+s,0,a):"success"}async _getPage(e,t,n){const r=1===t?e._known:e._candidates;if(e.pagesDefinition.internal.set.length>e.pagesDefinition.resultOffset||!0===e.pagesDefinition.internal.fullyResolved){r.length=r.length-1;let t=0;for(let n=0;n<e.pagesDefinition.resultRecordCount&&!(e.pagesDefinition.resultOffset+n>=e.pagesDefinition.internal.set.length);n++)r[r.length]=e.pagesDefinition.internal.set[e.pagesDefinition.resultOffset+n],t++;e.pagesDefinition.resultOffset+=t;let n=!1;return!0===e.pagesDefinition.internal.fullyResolved&&e.pagesDefinition.internal.set.length<=e.pagesDefinition.resultOffset&&(n=!0),!1===n&&r.push("GETPAGES"),t}return await this._getPhysicalPage(e,t,n),this._getPage(e,t,n)}_getPhysicalPage(e,t,n){return null}_clonePageDefinition(e){return null===this._parent?null:this._parent._clonePageDefinition(e)}_first(e){return this.iterator(e).next()}first(e){return this._first(e)}async calculateStatistic(e,t,n,r){await this._ensureLoaded();let a=await this._stat(e,t,"",null,null,n,r);return!1===a.calculated&&(a=await this._manualStat(e,t,n,r)),a.result}async _manualStat(e,t,n,r){let a=null;switch(e.toLowerCase()){case"count":return a=await(0,o.U9)(this,r),{calculated:!0,result:a};case"distinct":return a=await(0,o.dM)(this,t,n,r),{calculated:!0,result:a};case"avg":case"mean":return a=await(0,o.i2)(this,t,r),{calculated:!0,result:a};case"stdev":return a=await(0,o.b$)(this,t,r),{calculated:!0,result:a};case"variance":return a=await(0,o.GV)(this,t,r),{calculated:!0,result:a};case"sum":return a=await(0,o.cz)(this,t,r),{calculated:!0,result:a};case"min":return a=await(0,o.jk)(this,t,r),{calculated:!0,result:a};case"max":return a=await(0,o.T9)(this,t,r),{calculated:!0,result:a};default:return{calculated:!0,result:0}}}async _stat(e,t,n,r,a,s,i){const l=await this._parent._stat(e,t,n,r,a,s,i);return!1===l.calculated?null===a&&""===n&&null===r?this._manualStat(e,t,s,i):{calculated:!1}:l}_unionAllGeomSelf(e){const t=this.iterator(this._defaultTracker(e)),n=[];return new Promise(((e,r)=>{this._unionShapeInBatches(n,t,e,r)}))}_unionAllGeom(e){return new Promise(((t,n)=>{const r=this.iterator(this._defaultTracker(e));this._unionShapeInBatches([],r,t,n)}))}_unionShapeInBatches(e,t,n,r){t.next().then((a=>{try{null!==a&&null!==a.geometry&&e.push(a.geometry),e.length>30||null===a&&e.length>1?(0,d.KC)(e).then((s=>{try{null===a?n(s):(e=[s],this._unionShapeInBatches(e,t,n,r))}catch(e){r(e)}}),r):null===a?1===e.length?n(e[0]):n(null):this._unionShapeInBatches(e,t,n,r)}catch(e){r(e)}}),r)}iterator(e){return new i(this,e)}intersection(e,t=!1){return _._featuresetFunctions.intersection.bind(this)(e,t)}difference(e,t=!1,n=!0){return _._featuresetFunctions.difference.bind(this)(e,t,n)}symmetricDifference(e,t=!1,n=!0){return _._featuresetFunctions.symmetricDifference.bind(this)(e,t,n)}morphShape(e,t,n="unknown",r=null){return _._featuresetFunctions.morphShape.bind(this)(e,t,n,r)}morphShapeAndAttributes(e,t,n="unknown"){return _._featuresetFunctions.morphShapeAndAttributes.bind(this)(e,t,n)}union(e,t=!1){return _._featuresetFunctions.union.bind(this)(e,t)}intersects(e){return _._featuresetFunctions.intersects.bind(this)(e)}envelopeIntersects(e){return _._featuresetFunctions.envelopeIntersects.bind(this)(e)}contains(e){return _._featuresetFunctions.contains.bind(this)(e)}overlaps(e){return _._featuresetFunctions.overlaps.bind(this)(e)}relate(e,t){return _._featuresetFunctions.relate.bind(this)(e,t)}within(e){return _._featuresetFunctions.within.bind(this)(e)}touches(e){return _._featuresetFunctions.touches.bind(this)(e)}top(e){return _._featuresetFunctions.top.bind(this)(e)}crosses(e){return _._featuresetFunctions.crosses.bind(this)(e)}buffer(e,t,n,r=!0){return _._featuresetFunctions.buffer.bind(this)(e,t,n,r)}filter(e,t=null){return _._featuresetFunctions.filter.bind(this)(e,t)}orderBy(e){return _._featuresetFunctions.orderBy.bind(this)(e)}dissolve(e,t){return _._featuresetFunctions.dissolve.bind(this)(e,t)}groupby(e,t){return _._featuresetFunctions.groupby.bind(this)(e,t)}reduce(e,t=null,n){return new Promise(((r,a)=>{this._reduceImpl(this.iterator(this._defaultTracker(n)),e,t,0,r,a,0)}))}_reduceImpl(e,t,n,r,a,s,i){try{if(++i>1e3)return void setTimeout((()=>{i=0,this._reduceImpl(e,t,n,r,a,s,i)}));e.next().then((l=>{try{if(null===l)a(n);else{const u=t(n,l,r,this);(0,c.$X)(u)?u.then((n=>{this._reduceImpl(e,t,n,r+1,a,s,i)}),s):this._reduceImpl(e,t,u,r+1,a,s,i)}}catch(e){s(e)}}),s)}catch(e){s(e)}}removeField(e){return _._featuresetFunctions.removeField.bind(this)(e)}addField(e,t,n=null){return _._featuresetFunctions.addField.bind(this)(e,t,n)}sumArea(e,t=!1,n){const r=(0,u.uf)(e);return this.reduce(((e,n)=>null===n.geometry?0:t?(0,d.PW)(n.geometry,r).then((t=>e+t)):(0,d._2)(n.geometry,r).then((t=>e+t))),0,n)}sumLength(e,t=!1,n){const r=(0,u.SQ)(e);return this.reduce(((e,n)=>null===n.geometry?0:t?(0,d.mh)(n.geometry,r).then((t=>e+t)):(0,d.Zu)(n.geometry,r).then((t=>e+t))),0,n)}async distinct(e,t=1e3,n=null,r){await this.load();const a=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return g(a,n),this.calculateStatistic("distinct",a,t,this._defaultTracker(r))}async min(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return g(r,t),this.calculateStatistic("min",r,-1,this._defaultTracker(n))}async max(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return g(r,t),this.calculateStatistic("max",r,-1,this._defaultTracker(n))}async avg(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return g(r,t),this.calculateStatistic("avg",r,-1,this._defaultTracker(n))}async sum(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return g(r,t),this.calculateStatistic("sum",r,-1,this._defaultTracker(n))}async stdev(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return g(r,t),this.calculateStatistic("stdev",r,-1,this._defaultTracker(n))}async variance(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return g(r,t),this.calculateStatistic("variance",r,-1,this._defaultTracker(n))}async count(e){return await this.load(),this.calculateStatistic("count",h.WhereClause.create("1",this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC),-1,this._defaultTracker(e))}_defaultTracker(e){return e??{aborted:!1}}forEach(e,t){return new Promise(((n,r)=>{this._forEachImpl(this.iterator(this._defaultTracker(t)),e,this,n,r,0)}))}_forEachImpl(e,t,n,r,a,s){try{if(++s>1e3)return void setTimeout((()=>{s=0,this._forEachImpl(e,t,n,r,a,s)}),0);e.next().then((i=>{try{if(null===i)r(n);else{const l=t(i);null==l?this._forEachImpl(e,t,n,r,a,s):(0,c.$X)(l)?l.then((()=>{try{this._forEachImpl(e,t,n,r,a,s)}catch(e){a(e)}}),a):this._forEachImpl(e,t,n,r,a,s)}}catch(e){a(e)}}),a)}catch(e){a(e)}}convertToJSON(e){const t={layerDefinition:{geometryType:this.geometryType,fields:[]},featureSet:{features:[],geometryType:this.geometryType}};for(let e=0;e<this.fields.length;e++)t.layerDefinition.fields.push((0,u.nE)(this.fields[e]));return this.reduce(((e,n)=>{const r={geometry:n.geometry?.toJSON(),attributes:{}};for(const e in n.attributes)r.attributes[e]=n.attributes[e];return t.featureSet.features.push(r),1}),0,e).then((()=>t))}castToText(e=!1){return"object, FeatureSet"}queryAttachments(e,t,n,r,a){return this._parent.queryAttachments(e,t,n,r,a)}serviceUrl(){return this._parent.serviceUrl()}subtypeMetaData(){return this.subtypeField&&this.subtypes?{subtypeField:this.subtypeField,subtypes:this.subtypes?this.subtypes.map((e=>({name:e.name,code:e.code}))):[]}:this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map((e=>({name:e.name,code:e.id}))):[]}:null}relationshipMetaData(){return this._parent.relationshipMetaData()}get gdbVersion(){return this._parent?this._parent.gdbVersion:""}schema(){const e=[];for(const t of this.fields)e.push((0,u.nE)(t));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:void 0===u.yT[this.geometryType]?"esriGeometryNull":u.yT[this.geometryType],fields:e}}async convertToText(e,t){if("schema"===e)return await this._ensureLoaded(),JSON.stringify(this.schema());if("featureset"===e){await this._ensureLoaded();const e=[];await this.reduce(((t,n)=>{const r={geometry:n.geometry?n.geometry.toJSON():null,attributes:n.attributes};return null!==r.geometry&&r.geometry.spatialReference&&delete r.geometry.spatialReference,e.push(r),1}),0,t);const n=this.schema();return n.features=e,n.spatialReference=this.spatialReference.toJSON(),JSON.stringify(n)}return this.castToText()}getFeatureByObjectId(e,t){return this._parent.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return null!==this._parent?this._parent.getRootFeatureSet():this}getDataSourceFeatureSet(){return null!==this._parent?this._parent.getDataSourceFeatureSet():this}castAsJson(e=null){return"keeptype"===e?.featureset?this:"none"===e?.featureset?null:{type:"FeatureSet"}}async castAsJsonAsync(e=null,t=null){if("keeptype"===t?.featureset)return this;if("schema"===t?.featureset)return await this._ensureLoaded(),JSON.parse(JSON.stringify(this.schema()));if("none"===t?.featureset)return null;await this._ensureLoaded();const n=[];await this.reduce(((e,r)=>{const a={geometry:r.geometry?!0===t?.keepGeometryType?r.geometry:r.geometry.toJSON():null,attributes:r.attributes};return null!==a.geometry&&a.geometry.spatialReference&&!0!==t?.keepGeometryType&&delete a.geometry.spatialReference,n.push(a),1}),0,e);const r=this.schema();return r.features=n,r.spatialReference=!0===t?.keepGeometryType?this.spatialReference:this.spatialReference?.toJSON(),r}fieldTimeZone(e){return this.getFieldsIndex().getTimeZone(e)}get preferredTimeZone(){return this._parent?.preferredTimeZone??null}get dateFieldsTimeZone(){return this._parent?.dateFieldsTimeZone??null}get dateFieldsTimeZoneDefaultUTC(){if(this.datesInUnknownTimezone)return"unknown";const e=this.dateFieldsTimeZone??"UTC";return""===e?"UTC":e}get datesInUnknownTimezone(){return this._parent.datesInUnknownTimezone}get editFieldsInfo(){return this._parent?.editFieldsInfo??null}get timeInfo(){return this._parent?.timeInfo??null}set featureSetInfo(e){this.fsetInfo=e}async getFeatureSetInfo(){return this.fsetInfo??await(this._parent?.getFeatureSetInfo())??null}}function g(e,t){if(null!==t){const n={};for(const e in t)n[e.toLowerCase()]=t[e];e.parameters=n}}_._featuresetFunctions={}},89169:(e,t,n)=>{n.d(t,{A:()=>r});class r{constructor(e,t,n,r){this._lastFetchedIndex=0,this._ordered=!1,this.pagesDefinition=null,this._candidates=e,this._known=t,this._ordered=n,this.pagesDefinition=r}}},23732:(e,t,n)=>{n.d(t,{A:()=>r});class r{constructor(){this._databaseTypeMetaData={},this._layerInfo={}}clearDatabaseType(e){void 0===this._databaseTypeMetaData[e]&&delete this._databaseTypeMetaData[e]}getDatabaseType(e){return"MUSTBESET"===e||void 0===this._databaseTypeMetaData[e]?null:this._databaseTypeMetaData[e]}setDatabaseType(e,t){this._databaseTypeMetaData[e]=t}getLayerInfo(e){return void 0===this._layerInfo[e]?null:this._layerInfo[e]}setLayerInfo(e,t){this._layerInfo[e]=t}clearLayerInfo(e){void 0!==this._layerInfo[e]&&delete this._layerInfo[e]}}r.applicationCache=null},80609:(e,t,n)=>{n.d(t,{C6:()=>S,DA:()=>A,F1:()=>m,F6:()=>p,IY:()=>w,Ju:()=>b,Mi:()=>c,Nf:()=>g,R8:()=>_,YY:()=>o,bD:()=>h,bm:()=>y,kg:()=>d,oj:()=>v});var r=n(66131),a=n(87449),s=n(33325),i=n(15032),l=n(50835),u=n(96285);function o(e,t){return f(e?.parseTree,t,e?.parameters)}function c(e,t,n){return f(e,t,n)}function h(e,t,n,r){return l.WhereClause.create(f(e.parseTree,s.zl.Standardised,e.parameters,t,n),r,e.timeZone)}function d(e,t,n="AND"){return l.WhereClause.create("(("+o(e,s.zl.Standardised)+")"+n+"("+o(t,s.zl.Standardised)+"))",e.fieldsIndex,e.timeZone)}function f(e,t,n,r=null,i=null){let l,u,o,c;switch(e.type){case"interval":return v(f(e.value,t,n,r,i),e.qualifier,e.op);case"case-expression":{let a=" CASE ";"simple"===e.format&&(a+=f(e.operand,t,n,r,i));for(let s=0;s<e.clauses.length;s++)a+=" WHEN "+f(e.clauses[s].operand,t,n,r,i)+" THEN "+f(e.clauses[s].value,t,n,r,i);return null!==e.else&&(a+=" ELSE "+f(e.else,t,n,r,i)),a+=" END ",a}case"parameter":{const r=n[e.value.toLowerCase()];if("string"==typeof r)return"'"+n[e.value.toLowerCase()].toString().replaceAll("'","''")+"'";if((0,s.$P)(r))return y(r,t);if((0,s.Lk)(r))return y(r,t);if((0,s.eg)(r))return m(r,t);if((0,s.rX)(r))return _(r,t);if((0,s.f0)(r))return g(r,t);if(r instanceof Array){const e=[];for(let n=0;n<r.length;n++)"string"==typeof r[n]?e.push("'"+r[n].toString().replaceAll("'","''")+"'"):(0,s.$P)(r[n])||(0,s.Lk)(r[n])?e.push(y(r[n],t)):(0,s.eg)(r[n])?e.push(m(r[n],t)):(0,s.rX)(r[n])?e.push(_(r[n],t)):(0,s.f0)(r[n])?e.push(g(r[n],t)):e.push(r[n].toString());return e}return r.toString()}case"expression-list":u=[];for(const a of e.value)u.push(f(a,t,n,r,i));return u;case"unary-expression":return" ( NOT "+f(e.expr,t,n,r,i)+" ) ";case"binary-expression":switch(e.operator){case"AND":return" ("+f(e.left,t,n,r,i)+" AND "+f(e.right,t,n,r,i)+") ";case"OR":return" ("+f(e.left,t,n,r,i)+" OR "+f(e.right,t,n,r,i)+") ";case"IS":if("null"!==e.right.type)throw new a.L8(a.Z7.UnsupportedIsRhs);return" ("+f(e.left,t,n,r,i)+" IS NULL )";case"ISNOT":if("null"!==e.right.type)throw new a.L8(a.Z7.UnsupportedIsRhs);return" ("+f(e.left,t,n,r,i)+" IS NOT NULL )";case"IN":return l=[],"expression-list"===e.right.type?(l=f(e.right,t,n,r,i)," ("+f(e.left,t,n,r,i)+" IN ("+l.join(",")+")) "):(c=f(e.right,t,n,r,i),c instanceof Array?" ("+f(e.left,t,n,r,i)+" IN ("+c.join(",")+")) ":" ("+f(e.left,t,n,r,i)+" IN ("+c+")) ");case"NOT IN":return l=[],"expression-list"===e.right.type?(l=f(e.right,t,n,r,i)," ("+f(e.left,t,n,r,i)+" NOT IN ("+l.join(",")+")) "):(c=f(e.right,t,n,r,i),c instanceof Array?" ("+f(e.left,t,n,r,i)+" NOT IN ("+c.join(",")+")) ":" ("+f(e.left,t,n,r,i)+" NOT IN ("+c+")) ");case"BETWEEN":return o=f(e.right,t,n,r,i)," ("+f(e.left,t,n,r,i)+" BETWEEN "+o[0]+" AND "+o[1]+" ) ";case"NOTBETWEEN":return o=f(e.right,t,n,r,i)," ("+f(e.left,t,n,r,i)+" NOT BETWEEN "+o[0]+" AND "+o[1]+" ) ";case"LIKE":return""!==e.escape?" ("+f(e.left,t,n,r,i)+" LIKE "+f(e.right,t,n,r,i)+" ESCAPE '"+e.escape+"') ":" ("+f(e.left,t,n,r,i)+" LIKE "+f(e.right,t,n,r,i)+") ";case"NOT LIKE":return""!==e.escape?" ("+f(e.left,t,n,r,i)+" NOT LIKE "+f(e.right,t,n,r,i)+" ESCAPE '"+e.escape+"') ":" ("+f(e.left,t,n,r,i)+" NOT LIKE "+f(e.right,t,n,r,i)+") ";case"<>":case"<":case">":case">=":case"<=":case"=":case"*":case"-":case"+":case"/":return" ("+f(e.left,t,n,r,i)+" "+e.operator+" "+f(e.right,t,n,r,i)+") ";case"||":return" ("+f(e.left,t,n,r,i)+" "+(t===s.zl.SqlServer?"+":e.operator)+" "+f(e.right,t,n,r,i)+") "}throw new a.L8(a.Z7.UnsupportedOperator,{operator:e.operator});case"null":return"null";case"boolean":return!0===e.value?"1":"0";case"string":return"'"+e.value.toString().replaceAll("'","''")+"'";case"timestamp":return`timestamp '${e.value}'`;case"date":return`date '${e.value}'`;case"time":return`time '${e.value}'`;case"number":return e.value.toString();case"current-time":return S("date"===e.mode,t);case"column-reference":return r?r.toLowerCase()===e.column.toLowerCase()?"("+i+")":!0===e.delimited?`"${e.column.split('"').join('""')}"`:e.column:e.column;case"data-type":return e.value;case"function":{const a=f(e.args,t,n,r,i);return p(e.name,a,t)}}throw new a.L8(a.Z7.UnsupportedSyntax,{node:e.type})}function p(e,t,n){switch(e.toLowerCase().trim()){case"cos":case"sin":case"tan":case"cosh":case"tanh":case"sinh":case"acos":case"asin":case"atan":case"floor":case"log10":case"log":case"abs":if(1!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]})`;case"ceiling":case"ceil":if(1!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"ceiling"});switch(n){case s.zl.Standardised:case s.zl.StandardisedNoInterval:}return"CEILING("+t[0]+")";case"mod":case"power":case"nullif":if(2!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]},${t[1]})`;case"round":if(2===t.length)return"ROUND("+t[0]+","+t[1]+")";if(1===t.length)return"ROUND("+t[0]+")";throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"round"});case"truncate":if(t.length<1||t.length>2)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"truncate"});return n===s.zl.SqlServer?"ROUND("+t[0]+(1===t.length?"0":","+t[1])+",1)":"TRUNCATE("+t[0]+(1===t.length?")":","+t[1]+")");case"char_length":case"len":if(1!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"char_length"});switch(n){case s.zl.SqlServer:return"LEN("+t[0]+")";case s.zl.Oracle:return"LENGTH("+t[0]+")";default:return"CHAR_LENGTH("+t[0]+")"}case"coalesce":case"concat":{if(t.length<1)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:e.toLowerCase()});let n=e.toUpperCase().trim()+"(";for(let e=0;e<t.length;e++)0!==e&&(n+=","),n+=t[e];return n+=")",n}case"lower":case"lcase":if(1!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"lower"});return"LOWER("+t[0]+")";case"upper":case"ucase":if(1!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"upper"});return"UPPER("+t[0]+")";case"substring":{let e="";switch(n){case s.zl.Oracle:return e="SUBSTR("+t[0]+","+t[1],3===t.length&&(e+=","+t[2]),e+=")",e;case s.zl.SqlServer:return e=3===t.length?"SUBSTRING("+t[0]+","+t[1]+","+t[2]+")":"SUBSTRING("+t[0]+", "+t[1]+", LEN("+t[0]+") - "+t[1]+")",e;default:return e="SUBSTRING("+t[0]+" FROM "+t[1],3===t.length&&(e+=" FOR "+t[2]),e+=")",e}}case"extract":return"EXTRACT("+t[0].replaceAll("'","")+" FROM "+t[1]+")";case"cast":{let e="";switch(n){case s.zl.Oracle:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case s.zl.Postgres:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE PRECISION";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case s.zl.SqlServer:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="DATETIME";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;default:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`}}}throw new a.L8(a.Z7.InvalidFunctionParameters,{function:e})}function _(e,t){const n=e.toDateTime(),r=0===n.hour&&0===n.minute&&0===n.second&&0===n.millisecond;switch(t){case s.zl.FILEGDB:case s.zl.Standardised:case s.zl.StandardisedNoInterval:return r?`date '${n.toFormat("yyyy-LL-dd")}'`:`timestamp '${n.toFormat("yyyy-LL-dd HH:mm:ss")}'`;case s.zl.Oracle:return r?`TO_DATE('${n.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')`:`TO_DATE('${n.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;case s.zl.SqlServer:return`'${n.toFormat(r?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;case s.zl.PGDB:return`#${n.toFormat(r?"LL-dd-yyyy":"LL-dd-yyyy HH:mm:ss")}#`;case s.zl.Postgres:return`TIMESTAMP '${n.toFormat(r?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;default:return`timestamp '${n.toFormat("yyyy-LL-dd HH:mm:ss")}'`}}function g(e,t){switch(t){case s.zl.FILEGDB:case s.zl.Standardised:case s.zl.StandardisedNoInterval:return e.toSQLWithKeyword();case s.zl.Oracle:return`TO_DATE('${e.toFormat("Y-MM-DD")}'`;case s.zl.SqlServer:return`'${e.toFormat("Y-MM-DD")}'`;case s.zl.PGDB:return`#${e.toFormat("Y-MM-DD")}#`;case s.zl.Postgres:return`TIMESTAMP '${e.toFormat("Y-MM-DD")}'`;default:return e.toSQLWithKeyword()}}function m(e,t){switch(e instanceof i.k&&(e=e.toStorageString()),t){case s.zl.Oracle:return`TO_DATE('${e}', 'HH24:MI:SS')`;case s.zl.SqlServer:return`'${e}'`;case s.zl.FILEGDB:case s.zl.Standardised:case s.zl.StandardisedNoInterval:case s.zl.Postgres:default:return`time '${e}'`}}function y(e,t){return _(r.lY.dateTimeToArcadeDate((0,s.Lk)(e)?e:u.c9.fromJSDate(e)),t)}function S(e,t){switch(t){case s.zl.FILEGDB:case s.zl.Standardised:case s.zl.StandardisedNoInterval:case s.zl.Oracle:return e?"CURRENT_DATE":"CURRENT_TIMESTAMP";case s.zl.SqlServer:return e?"CAST(GETDATE() AS DATE)":"GETDATE()";case s.zl.PGDB:case s.zl.Postgres:default:return e?"CURRENT_DATE":"CURRENT_TIMESTAMP"}}function w(e,t,n={}){const r={},a={},s={esriFieldTypeSmallInteger:"integer",esriFieldTypeInteger:"integer",esriFieldTypeBigInteger:"integer",esriFieldTypeSingle:"double",esriFieldTypeDouble:"double",esriFieldTypeString:"string",esriFieldTypeTimeOnly:"time-only",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimestampOffset:"timestamp-offset",esriFieldTypeDate:"date",esriFieldTypeOID:"integer",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"guid",oid:"integer",long:"integer","small-integer":"integer",integer:"integer","big-integer":"integer",single:"double","time-only":"time-only","date-only":"date-only","timestamp-offset":"timestemp-offset",double:"double",date:"date",guid:"guid","global-id":"guid",string:"string"};for(const e of t){const t=e.type?s[e.type]:void 0;r[e.name.toLowerCase()]=void 0===t?"":t}for(const e in n){const t=s[n[e]];a[e.toLowerCase()]=void 0===t?"":t}switch(T(r,e.parseTree,e.parameters,a)){case"double":return"double";case"integer":return"integer";case"date":return"date";case"date-only":return"date-only";case"time-only":return"time-only";case"timestamp-offset":return"timestamp-offset";case"string":return"string";case"global-id":case"guid":return"guid"}return""}function T(e,t,n,r){let i;switch(t.type){case"interval":return"integer";case"case-expression":{const a=[];if("simple"===t.format){for(let s=0;s<t.clauses.length;s++)a.push(T(e,t.clauses[s].value,n,r));null!==t.else&&a.push(T(e,t.else,n,r))}else{for(let s=0;s<t.clauses.length;s++)a.push(T(e,t.else,n,r));null!==t.else&&a.push(T(e,t.else,n,r))}return F(a)}case"parameter":{const e=r[t.value.toLowerCase()];if(void 0===e&&n){const e=n[t.value.toLowerCase()];if(void 0===e)return"";if(null===e)return"";if("string"==typeof e||e instanceof String)return"string";if("boolean"==typeof e)return"boolean";if((0,s.$P)(e))return"date";if((0,s.rX)(e))return"date";if((0,s.f0)(e))return"date-only";if((0,s.eg)(e))return"time-only";if("number"==typeof e)return e%1==0?"integer":"double"}return void 0===e?"":e}case"expression-list":{const a=[];for(const s of t.value)a.push(T(e,s,n,r));return a}case"unary-expression":return"boolean";case"binary-expression":switch(t.operator){case"AND":case"OR":case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":case"LIKE":case"NOT LIKE":case"<>":case"<":case">":case">=":case"<=":case"=":return"boolean";case"IS":case"ISNOT":if("null"!==t.right.type)throw new a.L8(a.Z7.UnsupportedIsRhs);return"boolean";case"*":case"-":case"+":case"/":return F([T(e,t.left,n,r),T(e,t.right,n,r)]);case"||":return"string";default:throw new a.L8(a.Z7.UnsupportedOperator,{operator:t.operator})}case"null":return"";case"boolean":return"boolean";case"string":return"string";case"number":return null===t.value?"":t.value%1==0?"integer":"double";case"date":return"date";case"timestamp":return t.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"current-time":return"date";case"column-reference":{const n=e[t.column.toLowerCase()];return void 0===n?"":n}case"function":switch(t.name.toLowerCase()){case"cast":switch(t.args?.value[1]?.value.type??""){case"integer":case"smallint":return"integer";case"real":case"float":return"double";case"date":case"timestamp":return!0===t.args?.value[1]?.value?.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"varchar":return"string";default:return""}case"position":case"extract":case"char_length":case"mod":return"integer";case"round":if(i=T(e,t.args,n,r),i instanceof Array){if(i.length<=0)return"double";i=i[0]}return i;case"sign":return"integer";case"ceiling":case"floor":case"abs":return i=T(e,t.args,n,r),i instanceof Array&&(i=F(i)),"integer"===i||"double"===i?i:"double";case"area":case"length":case"log":case"log10":case"sin":case"cos":case"tan":case"asin":case"acos":case"atan":case"cosh":case"sinh":case"tanh":case"power":return"double";case"substring":case"trim":case"concat":case"lower":case"upper":return"string";case"truncate":return"double";case"nullif":case"coalesce":return i=T(e,t.args,n,r),i instanceof Array?i.length>0?i[0]:"":i}return""}throw new a.L8(a.Z7.UnsupportedSyntax,{node:t.type})}const I={boolean:1,string:2,integer:3,double:4,date:5};function F(e){if(e){let t="";for(const n of e)""!==n&&(t=""===t||I[t]<I[n]?n:t);return t}return""}function b(e,t){return D(e.parseTree,t)}function A(e){return"column-reference"===e?.parseTree.type}function D(e,t){if(null==e)return!1;switch(e.type){case"when-clause":return D(e.operand,t)||D(e.value,t);case"case-expression":for(const n of e.clauses)if(D(n,t))return!0;return!("simple"!==e.format||!D(e.operand,t))||!(null===e.else||!D(e.else,t));case"parameter":case"null":case"boolean":case"date":case"timestamp":case"time":case"string":case"number":return!1;case"expression-list":for(const n of e.value)if(D(n,t))return!0;return!1;case"unary-expression":return D(e.expr,t);case"binary-expression":return D(e.left,t)||D(e.right,t);case"column-reference":return t.toLowerCase()===e.column.toLowerCase();case"function":return D(e.args,t)}return!1}function E(e){let t="";return t+=e.period.toUpperCase(),t}function v(e,t,n){let r="";return r="interval-period"===t.type?E(t):E(t.start)+" TO "+E(t.end),"INTERVAL "+n+" "+e+" "+r}},50145:(e,t,n)=>{n.d(t,{Dp:()=>f,GV:()=>y,T9:()=>g,U9:()=>T,b$:()=>S,cz:()=>w,dM:()=>F,i2:()=>m,jk:()=>_,tQ:()=>p});var r=n(87449),a=n(33325),s=n(80609),i=n(44729),l=n(55612),u=n(15032);function o(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}function c(e){const t=o(e);let n=0;for(let r=0;r<e.length;r++)n+=(t-e[r])**2;return n/e.length}function h(e){const t=o(e);let n=0;for(let r=0;r<e.length;r++)n+=(t-e[r])**2;return n/(e.length-1)}function d(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t}function f(e){switch(e.toLowerCase()){case"distinct":return"distinct";case"avg":case"mean":return"avg";case"min":return"min";case"sum":return"sum";case"max":return"max";case"stdev":case"stddev":return"stddev";case"var":case"variance":return"var";case"count":return"count"}return""}function p(e,t,n=1e3){switch(e.toLowerCase()){case"distinct":return function(e,t){const n=[],r={},s=[];for(let i=0;i<e.length;i++){if(void 0!==e[i]&&null!==e[i]){const t=e[i];if((0,a.Et)(t)||(0,a.Kg)(t))void 0===r[t]&&(n.push(t),r[t]=1);else{let e=!1;for(let n=0;n<s.length;n++)!0===(0,a.Tf)(s[n],t)&&(e=!0);!1===e&&(s.push(t),n.push(t))}}if(n.length>=t&&-1!==t)return n}return n}(t,n);case"avg":case"mean":return o(t);case"min":return Math.min.apply(Math,t);case"sum":return d(t);case"max":return Math.max.apply(Math,t);case"stdev":case"stddev":return Math.sqrt(c(t));case"var":case"variance":return c(t);case"count":return t.length}return 0}async function _(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:Math.min.apply(Math,r)}async function g(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:Math.max.apply(Math,r)}async function m(e,t,n){let r="";t&&!(0,s.DA)(t)&&(r=(0,s.IY)(t,e.fields));const a=await I(e,t,n,!0);if(0===a.length)return null;const i=o(a);return null===i?i:"integer"===r?function(e){return e=+e,isFinite(e)?e-e%1||(e<0?-0:0===e?e:0):e}(i):i}async function y(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:h(r)}async function S(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:Math.sqrt(h(r))}async function w(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:d(r)}async function T(e,t){return e.iterator(t).count()}async function I(e,t,n,a=!1){const s=e.iterator(n),o=[],c={ticker:0};let h=await s.next();for(;null!==h;){if(c.ticker++,n.aborted)throw new r.dr(r.D_.Cancelled);c.ticker%100==0&&(c.ticker=0,await new Promise((e=>{setTimeout(e,0)})));const e=t?.calculateValue(h);null===e?!1===a&&(o[o.length]=e):o[o.length]=e instanceof i.n||e instanceof u.k?e.toNumber():e instanceof l.g?e.toMilliseconds():e,h=await s.next()}return o}async function F(e,t,n=1e3,a=null){const s=e.iterator(a),o=[],c={},h={ticker:0};let d=await s.next();for(;null!==d;){if(h.ticker++,a&&a.aborted)throw new r.dr(r.D_.Cancelled);h.ticker%100==0&&(h.ticker=0,await new Promise((e=>{setTimeout(e,0)})));const e=t?.calculateValue(d);let f=e;if(e instanceof i.n?f="!!DATEONLY!!-"+e.toString():e instanceof l.g?f="!!TSOFFSETONLY!!-"+e.toString():e instanceof u.k?f="!!TIMEONLY!!-"+e.toString():e instanceof Date&&(f="!!DATE!!-"+e.toString()),null!=e&&void 0===c[f]&&(o.push(e),c[f]=1),o.length>=n&&-1!==n)return o;d=await s.next()}return o}},14469:(e,t,n)=>{n.d(t,{$Q:()=>h,$f:()=>T,BT:()=>E,CR:()=>b,HF:()=>A,HY:()=>m,Io:()=>_,JT:()=>N,Jj:()=>d,KC:()=>C,NN:()=>p,Ow:()=>M,PW:()=>B,SE:()=>k,Zu:()=>z,_2:()=>G,aI:()=>g,c7:()=>I,cY:()=>R,e$:()=>P,fC:()=>x,gR:()=>f,iv:()=>D,jL:()=>U,mh:()=>$,nf:()=>w,pn:()=>F,px:()=>O,r:()=>L,ux:()=>S,y$:()=>v,yI:()=>y}),n(59456);var r=n(29953),a=n(86738),s=n(65864);function i(e){return Array.isArray(e)?e[0]?.spatialReference:e?.spatialReference}function l(e){return e?Array.isArray(e)?e.map(l):e.toJSON?e.toJSON():e:e}function u(e){return Array.isArray(e)?e.map((e=>(0,s.rS)(e))):(0,s.rS)(e)}let o;async function c(e,t){return(await async function(){return o||(o=(0,r.ho)("geometryEngineWorker",{strategy:"distributed"})),o}()).invoke("executeGEOperation",{operation:e,parameters:l(t)})}async function h(e,t){return u(await c("clip",[i(e),e,t]))}async function d(e,t){return u(await c("cut",[i(e),e,t]))}function f(e,t){return c("contains",[i(e),e,t])}function p(e,t){return c("crosses",[i(e),e,t])}function _(e,t,n){return c("distance",[i(e),e,t,n])}function g(e,t){return c("equals",[i(e),e,t])}function m(e,t){return c("intersects",[i(e),e,t])}function y(e,t){return c("touches",[i(e),e,t])}function S(e,t){return c("within",[i(e),e,t])}function w(e,t){return c("disjoint",[i(e),e,t])}function T(e,t){return c("overlaps",[i(e),e,t])}function I(e,t,n){return c("relate",[i(e),e,t,n])}function F(e){return c("isSimple",[i(e),e])}async function b(e){return u(await c("simplify",[i(e),e]))}async function A(e,t=!1){return u(await c("convexHull",[i(e),e,t]))}async function D(e,t){return u(await c("difference",[i(e),e,t]))}async function E(e,t){return u(await c("symmetricDifference",[i(e),e,t]))}async function v(e,t){return u(await c("intersect",[i(e),e,t]))}async function C(e,t=null){const n=function(e,t){let n;return Array.isArray(e)?n=e:(n=[],n.push(e),null!=t&&n.push(t)),n}(e,t);return u(await c("union",[i(n),n]))}async function R(e,t,n,r,a,s){return u(await c("offset",[i(e),e,t,n,r,a,s]))}async function L(e,t,n,r=!1){const a=[i(e),e,t,n,r];return u(await c("buffer",a))}async function k(e,t,n,r,a,s){const l=[i(e),e,t,n,r,a,s];return u(await c("geodesicBuffer",l))}async function x(e,t,n=!0){const r=await c("nearestCoordinate",[i(e),e,t,n]);return{...r,coordinate:a.A.fromJSON(r.coordinate)}}async function N(e,t){const n=await c("nearestVertex",[i(e),e,t]);return{...n,coordinate:a.A.fromJSON(n.coordinate)}}async function P(e,t,n){if(null==e)throw new Z;const r=e.spatialReference;if(null==(n=n??function(e){return"xmin"in e?e.center:"x"in e?e:e.extent?.center}(e)))throw new Z;const a=e.constructor.fromJSON(await c("rotate",[r,e,t,n]));return a.spatialReference=r,a}async function O(e,t,n,r){return u(await c("generalize",[i(e),e,t,n,r]))}async function U(e,t,n){return u(await c("densify",[i(e),e,t,n]))}async function M(e,t,n,r=0){return u(await c("geodesicDensify",[i(e),e,t,n,r]))}function G(e,t){return c("planarArea",[i(e),e,t])}function z(e,t){return c("planarLength",[i(e),e,t])}function B(e,t,n){return c("geodesicArea",[i(e),e,t,n])}function $(e,t,n){return c("geodesicLength",[i(e),e,t,n])}class Z extends Error{constructor(){super("Illegal Argument Exception")}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4784],{54784:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(85978),a=n(87449),s=n(11221),i=n(89169),l=n(33325),u=n(14469);class o extends s.A{constructor(e){super(e),this._relation="",this._relationGeom=null,this._relationString="",this.declaredClass="esri.arcade.featureset.actions.SpatialFilter",this._relationString=e.relationString,this._parent=e.parentfeatureset,this._maxProcessing=40,this._relation=e.relation,this._relationGeom=e.relationGeom}async _getSet(e){if(null===this._wset){await this._ensureLoaded();const t=await this._parent._getFilteredSet("esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,null,null,e);return this._checkCancelled(e),this._wset=new i.A(t._candidates.slice(0),t._known.slice(0),t._ordered,this._clonePageDefinition(t.pagesDefinition)),this._wset}return this._wset}_isInFeatureSet(e){let t=this._parent._isInFeatureSet(e);return t===l.J6.NotInFeatureSet?t:(t=this._idstates[e],void 0===t?l.J6.Unknown:t)}_getFeature(e,t,n){return this._parent._getFeature(e,t,n)}_getFeatures(e,t,n,r){return this._parent._getFeatures(e,t,n,r)}_featureFromCache(e){return this._parent._featureFromCache(e)}async executeSpatialRelationTest(e){if(null===e.geometry)return!1;switch(this._relation){case"esriSpatialRelEnvelopeIntersects":return(0,u.HY)((0,l.Yc)(this._relationGeom),(0,l.Yc)(e.geometry));case"esriSpatialRelIntersects":return(0,u.HY)(this._relationGeom,e.geometry);case"esriSpatialRelContains":return(0,u.gR)(this._relationGeom,e.geometry);case"esriSpatialRelOverlaps":return(0,u.$f)(this._relationGeom,e.geometry);case"esriSpatialRelWithin":return(0,u.ux)(this._relationGeom,e.geometry);case"esriSpatialRelTouches":return(0,u.yI)(this._relationGeom,e.geometry);case"esriSpatialRelCrosses":return(0,u.NN)(this._relationGeom,e.geometry);case"esriSpatialRelRelation":return(0,u.c7)(this._relationGeom,e.geometry,this._relationString??"")}}async _fetchAndRefineFeatures(e,t,n){const r=new i.A([],e,!1,null),a=Math.min(t,e.length);await(this._parent?._getFeatures(r,-1,a,n)),this._checkCancelled(n);const s=[];for(let t=0;t<a;t++){const n=this._parent._featureFromCache(e[t]);s.push(await this.executeSpatialRelationTest(n))}for(let n=0;n<t;n++)!0===s[n]?this._idstates[e[n]]=l.J6.InFeatureSet:this._idstates[e[n]]=l.J6.NotInFeatureSet;return"success"}async _getFilteredSet(e,t,n,r,a){await this._ensureLoaded();const s=await this._parent._getFilteredSet("esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,n,r,a);let l;return this._checkCancelled(a),l=null!==t?new i.A(s._candidates.slice(0).concat(s._known.slice(0)),[],s._ordered,this._clonePageDefinition(s.pagesDefinition)):new i.A(s._candidates.slice(0),s._known.slice(0),s._ordered,this._clonePageDefinition(s.pagesDefinition)),l}async _stat(e,t,n,r,a,s,i){if(""!==n)return{calculated:!1};const l=await this._parent._stat(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,a,s,i);return!1===l.calculated?null===a&&""===n&&null===r?this._manualStat(e,t,s,i):{calculated:!1}:l}async _canDoAggregates(e,t,n,r,a){return""===n&&null===r&&null!==this._parent&&this._parent._canDoAggregates(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,a)}async _getAggregatePagesDataSourceDefinition(e,t,n,r,s,i,l){if(null===this._parent)throw new a.dr(a.D_.NeverReach);return this._parent._getAggregatePagesDataSourceDefinition(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,s,i,l)}static registerAction(){s.A._featuresetFunctions.intersects=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelIntersects",relationGeom:e})},s.A._featuresetFunctions.envelopeIntersects=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelEnvelopeIntersects",relationGeom:e})},s.A._featuresetFunctions.contains=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelContains",relationGeom:e})},s.A._featuresetFunctions.overlaps=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelOverlaps",relationGeom:e})},s.A._featuresetFunctions.within=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelWithin",relationGeom:e})},s.A._featuresetFunctions.touches=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelTouches",relationGeom:e})},s.A._featuresetFunctions.crosses=function(e){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelCrosses",relationGeom:e})},s.A._featuresetFunctions.relate=function(e,t){return null==e?new r.A({parentfeatureset:this}):new o({parentfeatureset:this,relation:"esriSpatialRelRelation",relationGeom:e,relationString:t})}}getFieldsIndex(){return this._parent.getFieldsIndex()}}},85978:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(87449),a=n(11221),s=n(89169),i=n(33325);class l extends a.A{constructor(e){super(e),this.declaredClass="esri.layers.featureset.sources.Empty",this._maxProcessing=1e3,this._wset=new s.A([],[],!1,null),this._parent=e.parentfeatureset,this._databaseType=i.zl.Standardised}async _getSet(){return this._wset}optimisePagingFeatureQueries(){}_isInFeatureSet(){return i.J6.NotInFeatureSet}async _getFeature(){throw new r.dr(r.D_.NeverReach)}async queryAttachments(){return[]}async _getFeatures(){return"success"}_featureFromCache(){return null}async _fetchAndRefineFeatures(){throw new r.dr(r.D_.NeverReach)}async _getFilteredSet(){return new s.A([],[],!1,null)}_stat(e,t,n,r,a,s,i){return this._manualStat(e,t,s,i)}async _canDoAggregates(){return!1}}},11221:(e,t,n)=>{n.d(t,{A:()=>_});var r=n(23732),a=n(87449),s=n(93833);class i{constructor(e,t){this._lastId=-1,this._progress=t,this._parent=e}reset(){this._lastId=-1}async nextBatchAsArcadeFeatures(e,t){const n=await this.nextBatch(e);return null===n?n:n.map((e=>s.A.createFromGraphicLikeObject(e.geometry,e.attributes,this._parent,t)))}nextBatch(e){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then((t=>this.nextBatch(e)),(t=>this.nextBatch(e)));const t={returnpromise:null,hasset:!1},n=[];return t.returnpromise=new Promise(((r,a)=>{this._parent._getSet(this._progress).then((s=>{const i=s._known;let l=i.length-1;if("GETPAGES"===i[i.length-1]&&(l-=1),this._lastId+e>l&&i.length>0&&"GETPAGES"===i[i.length-1])return void this._parent._expandPagedSet(s,this._parent._maxQueryRate(),0,0,this._progress).then((n=>{t.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(e).then(r,a)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)}));const u=s._candidates;if(l>=this._lastId+e||0===u.length){for(let t=0;t<e;t++){const e=t+this._lastId+1;if(e>=i.length)break;n[t]=i[e]}return this._lastId+=n.length,0===n.length&&(t.hasset=!0,this._parent._mainSetInUse=null,r([])),void this._parent._getFeatureBatch(n,this._progress).then((e=>{t.hasset=!0,this._parent._mainSetInUse=null,r(e)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)}))}this._parent._refineSetBlock(s,this._parent._maxProcessingRate(),this._progress).then((()=>{t.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(e).then(r,a)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)}))}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)}))})),!1===t.hasset&&(this._parent._mainSetInUse=t.returnpromise,t.hasset=!0),t.returnpromise}next(){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then((e=>this.next()),(e=>this.next()));const e={returnpromise:null,hasset:!1};return e.returnpromise=new Promise(((t,n)=>{this._parent._getSet(this._progress).then((r=>{const a=r._known;this._lastId<a.length-1?"GETPAGES"===a[this._lastId+1]?this._parent._expandPagedSet(r,this._parent._maxQueryRate(),0,0,this._progress).then((t=>(e.hasset=!0,this._parent._mainSetInUse=null,this.next()))).then(t,n):(this._lastId+=1,this._parent._getFeature(r,a[this._lastId],this._progress).then((n=>{e.hasset=!0,this._parent._mainSetInUse=null,t(n)}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)}))):r._candidates.length>0?this._parent._refineSetBlock(r,this._parent._maxProcessingRate(),this._progress).then((()=>{e.hasset=!0,this._parent._mainSetInUse=null,this.next().then(t,n)}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)})):(e.hasset=!0,this._parent._mainSetInUse=null,t(null))}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)}))})),!1===e.hasset&&(this._parent._mainSetInUse=e.returnpromise,e.hasset=!0),e.returnpromise}async count(){if(-1!==this._parent._totalCount)return this._parent._totalCount;const e=await this._parent._getSet(this._progress),t=await this._refineAllSets(e);return this._parent._totalCount=t._known.length,this._parent._totalCount}async _refineAllSets(e){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1])return await this._parent._expandPagedSet(e,this._parent._maxQueryRate(),0,1,this._progress),this._refineAllSets(e);if(e._candidates.length>0){if("GETPAGES"===e._known[e._candidates.length-1])return await this._parent._expandPagedSet(e,this._parent._maxQueryRate(),0,2,this._progress),this._refineAllSets(e);const t=await this._parent._refineSetBlock(e,this._parent._maxProcessingRate(),this._progress);return t._candidates.length>0?this._refineAllSets(t):t}return e}}var l=n(89169),u=n(33325),o=n(50145),c=n(74887),h=n(50835),d=n(14469),f=n(16930),p=n(95466);class _{constructor(e){this.recentlyUsedQueries=null,this.featureSetQueryInterceptor=null,this._idstates=[],this._parent=null,this._wset=null,this._mainSetInUse=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=u.zl.NotEvaluated,this._databaseTypeProbed=null,this.declaredRootClass="esri.arcade.featureset.support.FeatureSet",this._featureCache=[],this.typeIdField=null,this.types=null,this.subtypeField=null,this.subtypes=null,this.fields=null,this.geometryType="",this.objectIdField="",this.globalIdField="",this.spatialReference=null,this.hasM=!1,this.hasZ=!1,this._transparent=!1,this.loaded=!1,this._loadPromise=null,this._fieldsIndex=null,this.fsetInfo=null,e?.lrucache&&(this.recentlyUsedQueries=e.lrucache),e?.interceptor&&(this.featureSetQueryInterceptor=e.interceptor)}optimisePagingFeatureQueries(e){this._parent&&this._parent.optimisePagingFeatureQueries(e)}_hasMemorySource(){return!0}prop(e,t){return void 0===t?this[e]:(void 0!==this[e]&&(this[e]=t),this)}end(){return null!==this._parent&&!0===this._parent._transparent?this._parent.end():this._parent}_ensureLoaded(){return this.load()}load(){return null===this._loadPromise&&(this._loadPromise=this.loadImpl()),this._loadPromise}async loadImpl(){return!0===this._parent?.loaded?(this._initialiseFeatureSet(),this):(await(this._parent?.load()),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){null!==this._parent?(this.fields=this._parent.fields.slice(0),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.subtypeField=this._parent.subtypeField,this.subtypes=this._parent.subtypes):(this.fields=[],this.typeIdField="",this.subtypeField="",this.objectIdField="",this.globalIdField="",this.spatialReference=new f.A({wkid:4326}),this.geometryType=u.ik.point)}getField(e,t){let n;return(t=t||this.fields)&&(e=e.toLowerCase(),t.some((t=>(t&&t.name.toLowerCase()===e&&(n=t),!!n)))),n}getFieldsIndex(){return null===this._fieldsIndex&&(this._fieldsIndex=p.A.fromLayer({timeInfo:this.timeInfo,editFieldsInfo:this.editFieldsInfo,dateFieldsTimeZone:this.dateFieldsTimeZone,datesInUnknownTimezone:this.datesInUnknownTimezone,fields:this.fields})),this._fieldsIndex}_maxProcessingRate(){return null!==this._parent?Math.min(this._maxProcessing,this._parent._maxProcessingRate()):Math.min(this._maxProcessing,this._maxQueryRate())}_maxQueryRate(){return null!==this._parent?Math.max(this._maxQuery,this._parent._maxQueryRate()):this._maxQuery}_checkCancelled(e){if(null!=e&&e.aborted)throw new a.dr(a.D_.Cancelled)}nativeCapabilities(){return this._parent.nativeCapabilities()}async _canDoAggregates(e,t,n,r,a){return null!==this._parent&&this._parent._canDoAggregates(e,t,n,r,a)}async _getAggregatePagesDataSourceDefinition(e,t,n,r,s,i,l){if(null===this._parent)throw new a.dr(a.D_.NeverReach);return this._parent._getAggregatePagesDataSourceDefinition(e,t,n,r,s,i,l)}async _getAgregagtePhysicalPage(e,t,n){if(null===this._parent)throw new a.dr(a.D_.NeverReach);return this._parent._getAgregagtePhysicalPage(e,t,n)}async databaseType(){if(this._databaseType===u.zl.NotEvaluated){if(null!==r.A.applicationCache){const e=r.A.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());if(null!==e)return e}if(null!==this._databaseTypeProbed)return this._databaseTypeProbed;try{this._databaseTypeProbed=this._getDatabaseTypeImpl(),null!==r.A.applicationCache&&r.A.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(),this._databaseTypeProbed)}catch(e){throw null!==r.A.applicationCache&&r.A.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()),e}return this._databaseTypeProbed}return this._databaseType}async _getDatabaseTypeImpl(){const e=[{thetype:u.zl.SqlServer,testwhere:"(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0"},{thetype:u.zl.Oracle,testwhere:"(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0"},{thetype:u.zl.StandardisedNoInterval,testwhere:"(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0"}];for(const t of e)if(!0===await this._runDatabaseProbe(t.testwhere))return t.thetype;return u.zl.StandardisedNoInterval}_cacheableFeatureSetSourceKey(){return"MUSTBESET"}async _runDatabaseProbe(e){if(null!==this._parent)return this._parent._runDatabaseProbe(e);throw new a.dr(a.D_.NotImplemented)}isTable(){return this._parent?.isTable()??!1}_featureFromCache(e){if(void 0!==this._featureCache[e])return this._featureCache[e]}_isInFeatureSet(e){return u.J6.Unknown}_getSet(e){throw new a.dr(a.D_.NotImplemented)}async _getFeature(e,t,n){if(this._checkCancelled(n),void 0!==this._featureFromCache(t))return this._featureFromCache(t);if(await this._getFeatures(e,t,this._maxProcessingRate(),n),this._checkCancelled(n),void 0!==this._featureFromCache(t))return this._featureFromCache(t);throw new a.dr(a.D_.MissingFeatures)}async _getFeatureBatch(e,t){this._checkCancelled(t);const n=new l.A([],e,!1,null),r=[];await this._getFeatures(n,-1,e.length,t),this._checkCancelled(t);for(const t of e)void 0!==this._featureFromCache(t)&&r.push(this._featureFromCache(t));return r}async _getFeatures(e,t,n,r){return"success"}_getFilteredSet(e,t,n,r,s){throw new a.dr(a.D_.NotImplemented)}async _refineSetBlock(e,t,n){if(!0===this._checkIfNeedToExpandCandidatePage(e,this._maxQueryRate()))return await this._expandPagedSet(e,this._maxQueryRate(),0,0,n),this._refineSetBlock(e,t,n);this._checkCancelled(n);const r=e._candidates.length;this._refineKnowns(e,t);let a=r-e._candidates.length;if(0===e._candidates.length)return e;if(a>=t)return e;if(await this._refineIfParentKnown(e,t-a,n),this._checkCancelled(n),this._refineKnowns(e,t-a),a=r-e._candidates.length,a<t&&e._candidates.length>0){const r=t-a,s=this._prepareFetchAndRefineSet(e._candidates);return await this._fetchAndRefineFeatures(s,s.length>r?r:e._candidates.length,n),this._checkCancelled(n),this._refineKnowns(e,t-a),e}return e}_fetchAndRefineFeatures(e,t,n){return null}_prepareFetchAndRefineSet(e){const t=[];for(let n=0;n<e.length;n++)this._isPhysicalFeature(e[n])&&t.push(e[n]);return t}_isPhysicalFeature(e){return null===this._parent||this._parent._isPhysicalFeature(e)}_refineKnowns(e,t){let n=0,r=null;const a=[];t=this._maxQueryRate();for(let s=0;s<e._candidates.length&&"GETPAGES"!==e._candidates[s];s++){let i=!1;const l=this._candidateIdTransform(e._candidates[s]);l!==e._candidates[s]&&(i=!0);const o=this._isInFeatureSet(l);if(o===u.J6.InFeatureSet)!0===i?e._known.includes(l)||(e._known.push(l),n+=1):(e._known.push(e._candidates[s]),n+=1),null===r?r={start:s,end:s}:r.end===s-1?r.end=s:(a.push(r),r={start:s,end:s});else if(o===u.J6.NotInFeatureSet)null===r?r={start:s,end:s}:r.end===s-1?r.end=s:(a.push(r),r={start:s,end:s}),n+=1;else if(o===u.J6.Unknown&&(n+=1,!0===e._ordered))break;if(n>=t)break}null!==r&&a.push(r);for(let t=a.length-1;t>=0;t--)e._candidates.splice(a[t].start,a[t].end-a[t].start+1)}_refineIfParentKnown(e,t,n){const r=new l.A([],[],e._ordered,null);return r._candidates=e._candidates.slice(0),this._parent._refineSetBlock(r,t,n)}_candidateIdTransform(e){return this._parent._candidateIdTransform(e)}_checkIfNeedToExpandKnownPage(e,t){if(null===e.pagesDefinition)return!1;let n=0;for(let r=e._lastFetchedIndex;r<e._known.length;r++){if("GETPAGES"===e._known[r])return!0;if(void 0===this._featureCache[e._known[r]]&&(n+=1,n>=t))break}return!1}_checkIfNeedToExpandCandidatePage(e,t){if(null===e.pagesDefinition)return!1;let n=0;for(let r=0;r<e._candidates.length;r++){if("GETPAGES"===e._candidates[r])return!0;if(n+=1,n>=t)break}return!1}async _expandPagedSet(e,t,n,r,s){if(null===this._parent)throw new a.dr(a.D_.NotImplemented);return this._parent._expandPagedSet(e,t,n,r,s)}async _expandPagedSetFeatureSet(e,t,n,r,a){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1]&&(r=1),0===r&&e._candidates.length>0&&"GETPAGES"===e._candidates[e._candidates.length-1]&&(r=2),0===r)return"finished";const s=await this._getPage(e,r,a);return n+s<t?this._expandPagedSet(e,t,n+s,0,a):"success"}async _getPage(e,t,n){const r=1===t?e._known:e._candidates;if(e.pagesDefinition.internal.set.length>e.pagesDefinition.resultOffset||!0===e.pagesDefinition.internal.fullyResolved){r.length=r.length-1;let t=0;for(let n=0;n<e.pagesDefinition.resultRecordCount&&!(e.pagesDefinition.resultOffset+n>=e.pagesDefinition.internal.set.length);n++)r[r.length]=e.pagesDefinition.internal.set[e.pagesDefinition.resultOffset+n],t++;e.pagesDefinition.resultOffset+=t;let n=!1;return!0===e.pagesDefinition.internal.fullyResolved&&e.pagesDefinition.internal.set.length<=e.pagesDefinition.resultOffset&&(n=!0),!1===n&&r.push("GETPAGES"),t}return await this._getPhysicalPage(e,t,n),this._getPage(e,t,n)}_getPhysicalPage(e,t,n){return null}_clonePageDefinition(e){return null===this._parent?null:this._parent._clonePageDefinition(e)}_first(e){return this.iterator(e).next()}first(e){return this._first(e)}async calculateStatistic(e,t,n,r){await this._ensureLoaded();let a=await this._stat(e,t,"",null,null,n,r);return!1===a.calculated&&(a=await this._manualStat(e,t,n,r)),a.result}async _manualStat(e,t,n,r){let a=null;switch(e.toLowerCase()){case"count":return a=await(0,o.U9)(this,r),{calculated:!0,result:a};case"distinct":return a=await(0,o.dM)(this,t,n,r),{calculated:!0,result:a};case"avg":case"mean":return a=await(0,o.i2)(this,t,r),{calculated:!0,result:a};case"stdev":return a=await(0,o.b$)(this,t,r),{calculated:!0,result:a};case"variance":return a=await(0,o.GV)(this,t,r),{calculated:!0,result:a};case"sum":return a=await(0,o.cz)(this,t,r),{calculated:!0,result:a};case"min":return a=await(0,o.jk)(this,t,r),{calculated:!0,result:a};case"max":return a=await(0,o.T9)(this,t,r),{calculated:!0,result:a};default:return{calculated:!0,result:0}}}async _stat(e,t,n,r,a,s,i){const l=await this._parent._stat(e,t,n,r,a,s,i);return!1===l.calculated?null===a&&""===n&&null===r?this._manualStat(e,t,s,i):{calculated:!1}:l}_unionAllGeomSelf(e){const t=this.iterator(this._defaultTracker(e)),n=[];return new Promise(((e,r)=>{this._unionShapeInBatches(n,t,e,r)}))}_unionAllGeom(e){return new Promise(((t,n)=>{const r=this.iterator(this._defaultTracker(e));this._unionShapeInBatches([],r,t,n)}))}_unionShapeInBatches(e,t,n,r){t.next().then((a=>{try{null!==a&&null!==a.geometry&&e.push(a.geometry),e.length>30||null===a&&e.length>1?(0,d.KC)(e).then((s=>{try{null===a?n(s):(e=[s],this._unionShapeInBatches(e,t,n,r))}catch(e){r(e)}}),r):null===a?1===e.length?n(e[0]):n(null):this._unionShapeInBatches(e,t,n,r)}catch(e){r(e)}}),r)}iterator(e){return new i(this,e)}intersection(e,t=!1){return _._featuresetFunctions.intersection.bind(this)(e,t)}difference(e,t=!1,n=!0){return _._featuresetFunctions.difference.bind(this)(e,t,n)}symmetricDifference(e,t=!1,n=!0){return _._featuresetFunctions.symmetricDifference.bind(this)(e,t,n)}morphShape(e,t,n="unknown",r=null){return _._featuresetFunctions.morphShape.bind(this)(e,t,n,r)}morphShapeAndAttributes(e,t,n="unknown"){return _._featuresetFunctions.morphShapeAndAttributes.bind(this)(e,t,n)}union(e,t=!1){return _._featuresetFunctions.union.bind(this)(e,t)}intersects(e){return _._featuresetFunctions.intersects.bind(this)(e)}envelopeIntersects(e){return _._featuresetFunctions.envelopeIntersects.bind(this)(e)}contains(e){return _._featuresetFunctions.contains.bind(this)(e)}overlaps(e){return _._featuresetFunctions.overlaps.bind(this)(e)}relate(e,t){return _._featuresetFunctions.relate.bind(this)(e,t)}within(e){return _._featuresetFunctions.within.bind(this)(e)}touches(e){return _._featuresetFunctions.touches.bind(this)(e)}top(e){return _._featuresetFunctions.top.bind(this)(e)}crosses(e){return _._featuresetFunctions.crosses.bind(this)(e)}buffer(e,t,n,r=!0){return _._featuresetFunctions.buffer.bind(this)(e,t,n,r)}filter(e,t=null){return _._featuresetFunctions.filter.bind(this)(e,t)}orderBy(e){return _._featuresetFunctions.orderBy.bind(this)(e)}dissolve(e,t){return _._featuresetFunctions.dissolve.bind(this)(e,t)}groupby(e,t){return _._featuresetFunctions.groupby.bind(this)(e,t)}reduce(e,t=null,n){return new Promise(((r,a)=>{this._reduceImpl(this.iterator(this._defaultTracker(n)),e,t,0,r,a,0)}))}_reduceImpl(e,t,n,r,a,s,i){try{if(++i>1e3)return void setTimeout((()=>{i=0,this._reduceImpl(e,t,n,r,a,s,i)}));e.next().then((l=>{try{if(null===l)a(n);else{const u=t(n,l,r,this);(0,c.$X)(u)?u.then((n=>{this._reduceImpl(e,t,n,r+1,a,s,i)}),s):this._reduceImpl(e,t,u,r+1,a,s,i)}}catch(e){s(e)}}),s)}catch(e){s(e)}}removeField(e){return _._featuresetFunctions.removeField.bind(this)(e)}addField(e,t,n=null){return _._featuresetFunctions.addField.bind(this)(e,t,n)}sumArea(e,t=!1,n){const r=(0,u.uf)(e);return this.reduce(((e,n)=>null===n.geometry?0:t?(0,d.PW)(n.geometry,r).then((t=>e+t)):(0,d._2)(n.geometry,r).then((t=>e+t))),0,n)}sumLength(e,t=!1,n){const r=(0,u.SQ)(e);return this.reduce(((e,n)=>null===n.geometry?0:t?(0,d.mh)(n.geometry,r).then((t=>e+t)):(0,d.Zu)(n.geometry,r).then((t=>e+t))),0,n)}async distinct(e,t=1e3,n=null,r){await this.load();const a=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return g(a,n),this.calculateStatistic("distinct",a,t,this._defaultTracker(r))}async min(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return g(r,t),this.calculateStatistic("min",r,-1,this._defaultTracker(n))}async max(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return g(r,t),this.calculateStatistic("max",r,-1,this._defaultTracker(n))}async avg(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return g(r,t),this.calculateStatistic("avg",r,-1,this._defaultTracker(n))}async sum(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return g(r,t),this.calculateStatistic("sum",r,-1,this._defaultTracker(n))}async stdev(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return g(r,t),this.calculateStatistic("stdev",r,-1,this._defaultTracker(n))}async variance(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC);return g(r,t),this.calculateStatistic("variance",r,-1,this._defaultTracker(n))}async count(e){return await this.load(),this.calculateStatistic("count",h.WhereClause.create("1",this.getFieldsIndex(),this.dateFieldsTimeZoneDefaultUTC),-1,this._defaultTracker(e))}_defaultTracker(e){return e??{aborted:!1}}forEach(e,t){return new Promise(((n,r)=>{this._forEachImpl(this.iterator(this._defaultTracker(t)),e,this,n,r,0)}))}_forEachImpl(e,t,n,r,a,s){try{if(++s>1e3)return void setTimeout((()=>{s=0,this._forEachImpl(e,t,n,r,a,s)}),0);e.next().then((i=>{try{if(null===i)r(n);else{const l=t(i);null==l?this._forEachImpl(e,t,n,r,a,s):(0,c.$X)(l)?l.then((()=>{try{this._forEachImpl(e,t,n,r,a,s)}catch(e){a(e)}}),a):this._forEachImpl(e,t,n,r,a,s)}}catch(e){a(e)}}),a)}catch(e){a(e)}}convertToJSON(e){const t={layerDefinition:{geometryType:this.geometryType,fields:[]},featureSet:{features:[],geometryType:this.geometryType}};for(let e=0;e<this.fields.length;e++)t.layerDefinition.fields.push((0,u.nE)(this.fields[e]));return this.reduce(((e,n)=>{const r={geometry:n.geometry?.toJSON(),attributes:{}};for(const e in n.attributes)r.attributes[e]=n.attributes[e];return t.featureSet.features.push(r),1}),0,e).then((()=>t))}castToText(e=!1){return"object, FeatureSet"}queryAttachments(e,t,n,r,a){return this._parent.queryAttachments(e,t,n,r,a)}serviceUrl(){return this._parent.serviceUrl()}subtypeMetaData(){return this.subtypeField&&this.subtypes?{subtypeField:this.subtypeField,subtypes:this.subtypes?this.subtypes.map((e=>({name:e.name,code:e.code}))):[]}:this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map((e=>({name:e.name,code:e.id}))):[]}:null}relationshipMetaData(){return this._parent.relationshipMetaData()}get gdbVersion(){return this._parent?this._parent.gdbVersion:""}schema(){const e=[];for(const t of this.fields)e.push((0,u.nE)(t));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:void 0===u.yT[this.geometryType]?"esriGeometryNull":u.yT[this.geometryType],fields:e}}async convertToText(e,t){if("schema"===e)return await this._ensureLoaded(),JSON.stringify(this.schema());if("featureset"===e){await this._ensureLoaded();const e=[];await this.reduce(((t,n)=>{const r={geometry:n.geometry?n.geometry.toJSON():null,attributes:n.attributes};return null!==r.geometry&&r.geometry.spatialReference&&delete r.geometry.spatialReference,e.push(r),1}),0,t);const n=this.schema();return n.features=e,n.spatialReference=this.spatialReference.toJSON(),JSON.stringify(n)}return this.castToText()}getFeatureByObjectId(e,t){return this._parent.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return null!==this._parent?this._parent.getRootFeatureSet():this}getDataSourceFeatureSet(){return null!==this._parent?this._parent.getDataSourceFeatureSet():this}castAsJson(e=null){return"keeptype"===e?.featureset?this:"none"===e?.featureset?null:{type:"FeatureSet"}}async castAsJsonAsync(e=null,t=null){if("keeptype"===t?.featureset)return this;if("schema"===t?.featureset)return await this._ensureLoaded(),JSON.parse(JSON.stringify(this.schema()));if("none"===t?.featureset)return null;await this._ensureLoaded();const n=[];await this.reduce(((e,r)=>{const a={geometry:r.geometry?!0===t?.keepGeometryType?r.geometry:r.geometry.toJSON():null,attributes:r.attributes};return null!==a.geometry&&a.geometry.spatialReference&&!0!==t?.keepGeometryType&&delete a.geometry.spatialReference,n.push(a),1}),0,e);const r=this.schema();return r.features=n,r.spatialReference=!0===t?.keepGeometryType?this.spatialReference:this.spatialReference?.toJSON(),r}fieldTimeZone(e){return this.getFieldsIndex().getTimeZone(e)}get preferredTimeZone(){return this._parent?.preferredTimeZone??null}get dateFieldsTimeZone(){return this._parent?.dateFieldsTimeZone??null}get dateFieldsTimeZoneDefaultUTC(){if(this.datesInUnknownTimezone)return"unknown";const e=this.dateFieldsTimeZone??"UTC";return""===e?"UTC":e}get datesInUnknownTimezone(){return this._parent.datesInUnknownTimezone}get editFieldsInfo(){return this._parent?.editFieldsInfo??null}get timeInfo(){return this._parent?.timeInfo??null}set featureSetInfo(e){this.fsetInfo=e}async getFeatureSetInfo(){return this.fsetInfo??await(this._parent?.getFeatureSetInfo())??null}}function g(e,t){if(null!==t){const n={};for(const e in t)n[e.toLowerCase()]=t[e];e.parameters=n}}_._featuresetFunctions={}},89169:(e,t,n)=>{n.d(t,{A:()=>r});class r{constructor(e,t,n,r){this._lastFetchedIndex=0,this._ordered=!1,this.pagesDefinition=null,this._candidates=e,this._known=t,this._ordered=n,this.pagesDefinition=r}}},23732:(e,t,n)=>{n.d(t,{A:()=>r});class r{constructor(){this._databaseTypeMetaData={},this._layerInfo={}}clearDatabaseType(e){void 0===this._databaseTypeMetaData[e]&&delete this._databaseTypeMetaData[e]}getDatabaseType(e){return"MUSTBESET"===e||void 0===this._databaseTypeMetaData[e]?null:this._databaseTypeMetaData[e]}setDatabaseType(e,t){this._databaseTypeMetaData[e]=t}getLayerInfo(e){return void 0===this._layerInfo[e]?null:this._layerInfo[e]}setLayerInfo(e,t){this._layerInfo[e]=t}clearLayerInfo(e){void 0!==this._layerInfo[e]&&delete this._layerInfo[e]}}r.applicationCache=null},80609:(e,t,n)=>{n.d(t,{C6:()=>S,DA:()=>A,F1:()=>m,F6:()=>p,IY:()=>w,Ju:()=>b,Mi:()=>c,Nf:()=>g,R8:()=>_,YY:()=>o,bD:()=>h,bm:()=>y,kg:()=>d,oj:()=>v});var r=n(66131),a=n(87449),s=n(33325),i=n(15032),l=n(50835),u=n(96285);function o(e,t){return f(e?.parseTree,t,e?.parameters)}function c(e,t,n){return f(e,t,n)}function h(e,t,n,r){return l.WhereClause.create(f(e.parseTree,s.zl.Standardised,e.parameters,t,n),r,e.timeZone)}function d(e,t,n="AND"){return l.WhereClause.create("(("+o(e,s.zl.Standardised)+")"+n+"("+o(t,s.zl.Standardised)+"))",e.fieldsIndex,e.timeZone)}function f(e,t,n,r=null,i=null){let l,u,o,c;switch(e.type){case"interval":return v(f(e.value,t,n,r,i),e.qualifier,e.op);case"case-expression":{let a=" CASE ";"simple"===e.format&&(a+=f(e.operand,t,n,r,i));for(let s=0;s<e.clauses.length;s++)a+=" WHEN "+f(e.clauses[s].operand,t,n,r,i)+" THEN "+f(e.clauses[s].value,t,n,r,i);return null!==e.else&&(a+=" ELSE "+f(e.else,t,n,r,i)),a+=" END ",a}case"parameter":{const r=n[e.value.toLowerCase()];if("string"==typeof r)return"'"+n[e.value.toLowerCase()].toString().replaceAll("'","''")+"'";if((0,s.$P)(r))return y(r,t);if((0,s.Lk)(r))return y(r,t);if((0,s.eg)(r))return m(r,t);if((0,s.rX)(r))return _(r,t);if((0,s.f0)(r))return g(r,t);if(Array.isArray(r)){const e=[];for(let n=0;n<r.length;n++)"string"==typeof r[n]?e.push("'"+r[n].toString().replaceAll("'","''")+"'"):(0,s.$P)(r[n])||(0,s.Lk)(r[n])?e.push(y(r[n],t)):(0,s.eg)(r[n])?e.push(m(r[n],t)):(0,s.rX)(r[n])?e.push(_(r[n],t)):(0,s.f0)(r[n])?e.push(g(r[n],t)):e.push(r[n].toString());return e}return r.toString()}case"expression-list":u=[];for(const a of e.value)u.push(f(a,t,n,r,i));return u;case"unary-expression":return" ( NOT "+f(e.expr,t,n,r,i)+" ) ";case"binary-expression":switch(e.operator){case"AND":return" ("+f(e.left,t,n,r,i)+" AND "+f(e.right,t,n,r,i)+") ";case"OR":return" ("+f(e.left,t,n,r,i)+" OR "+f(e.right,t,n,r,i)+") ";case"IS":if("null"!==e.right.type)throw new a.L8(a.Z7.UnsupportedIsRhs);return" ("+f(e.left,t,n,r,i)+" IS NULL )";case"ISNOT":if("null"!==e.right.type)throw new a.L8(a.Z7.UnsupportedIsRhs);return" ("+f(e.left,t,n,r,i)+" IS NOT NULL )";case"IN":return l=[],"expression-list"===e.right.type?(l=f(e.right,t,n,r,i)," ("+f(e.left,t,n,r,i)+" IN ("+l.join(",")+")) "):(c=f(e.right,t,n,r,i),Array.isArray(c)?" ("+f(e.left,t,n,r,i)+" IN ("+c.join(",")+")) ":" ("+f(e.left,t,n,r,i)+" IN ("+c+")) ");case"NOT IN":return l=[],"expression-list"===e.right.type?(l=f(e.right,t,n,r,i)," ("+f(e.left,t,n,r,i)+" NOT IN ("+l.join(",")+")) "):(c=f(e.right,t,n,r,i),Array.isArray(c)?" ("+f(e.left,t,n,r,i)+" NOT IN ("+c.join(",")+")) ":" ("+f(e.left,t,n,r,i)+" NOT IN ("+c+")) ");case"BETWEEN":return o=f(e.right,t,n,r,i)," ("+f(e.left,t,n,r,i)+" BETWEEN "+o[0]+" AND "+o[1]+" ) ";case"NOTBETWEEN":return o=f(e.right,t,n,r,i)," ("+f(e.left,t,n,r,i)+" NOT BETWEEN "+o[0]+" AND "+o[1]+" ) ";case"LIKE":return""!==e.escape?" ("+f(e.left,t,n,r,i)+" LIKE "+f(e.right,t,n,r,i)+" ESCAPE '"+e.escape+"') ":" ("+f(e.left,t,n,r,i)+" LIKE "+f(e.right,t,n,r,i)+") ";case"NOT LIKE":return""!==e.escape?" ("+f(e.left,t,n,r,i)+" NOT LIKE "+f(e.right,t,n,r,i)+" ESCAPE '"+e.escape+"') ":" ("+f(e.left,t,n,r,i)+" NOT LIKE "+f(e.right,t,n,r,i)+") ";case"<>":case"<":case">":case">=":case"<=":case"=":case"*":case"-":case"+":case"/":return" ("+f(e.left,t,n,r,i)+" "+e.operator+" "+f(e.right,t,n,r,i)+") ";case"||":return" ("+f(e.left,t,n,r,i)+" "+(t===s.zl.SqlServer?"+":e.operator)+" "+f(e.right,t,n,r,i)+") "}throw new a.L8(a.Z7.UnsupportedOperator,{operator:e.operator});case"null":return"null";case"boolean":return!0===e.value?"1":"0";case"string":return"'"+e.value.toString().replaceAll("'","''")+"'";case"timestamp":return`timestamp '${e.value}'`;case"date":return`date '${e.value}'`;case"time":return`time '${e.value}'`;case"number":return e.value.toString();case"current-time":return S("date"===e.mode,t);case"column-reference":return r?r.toLowerCase()===e.column.toLowerCase()?"("+i+")":!0===e.delimited?`"${e.column.split('"').join('""')}"`:e.column:e.column;case"data-type":return e.value;case"function":{const a=f(e.args,t,n,r,i);return p(e.name,a,t)}}throw new a.L8(a.Z7.UnsupportedSyntax,{node:e.type})}function p(e,t,n){switch(e.toLowerCase().trim()){case"cos":case"sin":case"tan":case"cosh":case"tanh":case"sinh":case"acos":case"asin":case"atan":case"floor":case"log10":case"log":case"abs":if(1!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]})`;case"ceiling":case"ceil":if(1!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"ceiling"});switch(n){case s.zl.Standardised:case s.zl.StandardisedNoInterval:}return"CEILING("+t[0]+")";case"mod":case"power":case"nullif":if(2!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]},${t[1]})`;case"round":if(2===t.length)return"ROUND("+t[0]+","+t[1]+")";if(1===t.length)return"ROUND("+t[0]+")";throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"round"});case"truncate":if(t.length<1||t.length>2)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"truncate"});return n===s.zl.SqlServer?"ROUND("+t[0]+(1===t.length?"0":","+t[1])+",1)":"TRUNCATE("+t[0]+(1===t.length?")":","+t[1]+")");case"char_length":case"len":if(1!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"char_length"});switch(n){case s.zl.SqlServer:return"LEN("+t[0]+")";case s.zl.Oracle:return"LENGTH("+t[0]+")";default:return"CHAR_LENGTH("+t[0]+")"}case"coalesce":case"concat":{if(t.length<1)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:e.toLowerCase()});let n=e.toUpperCase().trim()+"(";for(let e=0;e<t.length;e++)0!==e&&(n+=","),n+=t[e];return n+=")",n}case"lower":case"lcase":if(1!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"lower"});return"LOWER("+t[0]+")";case"upper":case"ucase":if(1!==t.length)throw new a.L8(a.Z7.InvalidFunctionParameters,{function:"upper"});return"UPPER("+t[0]+")";case"substring":{let e="";switch(n){case s.zl.Oracle:return e="SUBSTR("+t[0]+","+t[1],3===t.length&&(e+=","+t[2]),e+=")",e;case s.zl.SqlServer:return e=3===t.length?"SUBSTRING("+t[0]+","+t[1]+","+t[2]+")":"SUBSTRING("+t[0]+", "+t[1]+", LEN("+t[0]+") - "+t[1]+")",e;default:return e="SUBSTRING("+t[0]+" FROM "+t[1],3===t.length&&(e+=" FOR "+t[2]),e+=")",e}}case"extract":return"EXTRACT("+t[0].replaceAll("'","")+" FROM "+t[1]+")";case"cast":{let e="";switch(n){case s.zl.Oracle:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case s.zl.Postgres:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE PRECISION";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case s.zl.SqlServer:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="DATETIME";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;default:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`}}}throw new a.L8(a.Z7.InvalidFunctionParameters,{function:e})}function _(e,t){const n=e.toDateTime(),r=0===n.hour&&0===n.minute&&0===n.second&&0===n.millisecond;switch(t){case s.zl.FILEGDB:case s.zl.Standardised:case s.zl.StandardisedNoInterval:return r?`date '${n.toFormat("yyyy-LL-dd")}'`:`timestamp '${n.toFormat("yyyy-LL-dd HH:mm:ss")}'`;case s.zl.Oracle:return r?`TO_DATE('${n.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')`:`TO_DATE('${n.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;case s.zl.SqlServer:return`'${n.toFormat(r?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;case s.zl.PGDB:return`#${n.toFormat(r?"LL-dd-yyyy":"LL-dd-yyyy HH:mm:ss")}#`;case s.zl.Postgres:return`TIMESTAMP '${n.toFormat(r?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;default:return`timestamp '${n.toFormat("yyyy-LL-dd HH:mm:ss")}'`}}function g(e,t){switch(t){case s.zl.FILEGDB:case s.zl.Standardised:case s.zl.StandardisedNoInterval:return e.toSQLWithKeyword();case s.zl.Oracle:return`TO_DATE('${e.toFormat("Y-MM-DD")}'`;case s.zl.SqlServer:return`'${e.toFormat("Y-MM-DD")}'`;case s.zl.PGDB:return`#${e.toFormat("Y-MM-DD")}#`;case s.zl.Postgres:return`TIMESTAMP '${e.toFormat("Y-MM-DD")}'`;default:return e.toSQLWithKeyword()}}function m(e,t){switch(e instanceof i.k&&(e=e.toStorageString()),t){case s.zl.Oracle:return`TO_DATE('${e}', 'HH24:MI:SS')`;case s.zl.SqlServer:return`'${e}'`;case s.zl.FILEGDB:case s.zl.Standardised:case s.zl.StandardisedNoInterval:case s.zl.Postgres:default:return`time '${e}'`}}function y(e,t){return _(r.lY.dateTimeToArcadeDate((0,s.Lk)(e)?e:u.c9.fromJSDate(e)),t)}function S(e,t){switch(t){case s.zl.FILEGDB:case s.zl.Standardised:case s.zl.StandardisedNoInterval:case s.zl.Oracle:return e?"CURRENT_DATE":"CURRENT_TIMESTAMP";case s.zl.SqlServer:return e?"CAST(GETDATE() AS DATE)":"GETDATE()";case s.zl.PGDB:case s.zl.Postgres:default:return e?"CURRENT_DATE":"CURRENT_TIMESTAMP"}}function w(e,t,n={}){const r={},a={},s={esriFieldTypeSmallInteger:"integer",esriFieldTypeInteger:"integer",esriFieldTypeBigInteger:"integer",esriFieldTypeSingle:"double",esriFieldTypeDouble:"double",esriFieldTypeString:"string",esriFieldTypeTimeOnly:"time-only",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimestampOffset:"timestamp-offset",esriFieldTypeDate:"date",esriFieldTypeOID:"integer",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"guid",oid:"integer",long:"integer","small-integer":"integer",integer:"integer","big-integer":"integer",single:"double","time-only":"time-only","date-only":"date-only","timestamp-offset":"timestemp-offset",double:"double",date:"date",guid:"guid","global-id":"guid",string:"string"};for(const e of t){const t=e.type?s[e.type]:void 0;r[e.name.toLowerCase()]=void 0===t?"":t}for(const e in n){const t=s[n[e]];a[e.toLowerCase()]=void 0===t?"":t}switch(T(r,e.parseTree,e.parameters,a)){case"double":return"double";case"integer":return"integer";case"date":return"date";case"date-only":return"date-only";case"time-only":return"time-only";case"timestamp-offset":return"timestamp-offset";case"string":return"string";case"global-id":case"guid":return"guid"}return""}function T(e,t,n,r){let i;switch(t.type){case"interval":return"integer";case"case-expression":{const a=[];if("simple"===t.format){for(let s=0;s<t.clauses.length;s++)a.push(T(e,t.clauses[s].value,n,r));null!==t.else&&a.push(T(e,t.else,n,r))}else{for(let s=0;s<t.clauses.length;s++)a.push(T(e,t.else,n,r));null!==t.else&&a.push(T(e,t.else,n,r))}return F(a)}case"parameter":{const e=r[t.value.toLowerCase()];if(void 0===e&&n){const e=n[t.value.toLowerCase()];if(void 0===e)return"";if(null===e)return"";if("string"==typeof e||e instanceof String)return"string";if("boolean"==typeof e)return"boolean";if((0,s.$P)(e))return"date";if((0,s.rX)(e))return"date";if((0,s.f0)(e))return"date-only";if((0,s.eg)(e))return"time-only";if("number"==typeof e)return e%1==0?"integer":"double"}return void 0===e?"":e}case"expression-list":{const a=[];for(const s of t.value)a.push(T(e,s,n,r));return a}case"unary-expression":return"boolean";case"binary-expression":switch(t.operator){case"AND":case"OR":case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":case"LIKE":case"NOT LIKE":case"<>":case"<":case">":case">=":case"<=":case"=":return"boolean";case"IS":case"ISNOT":if("null"!==t.right.type)throw new a.L8(a.Z7.UnsupportedIsRhs);return"boolean";case"*":case"-":case"+":case"/":return F([T(e,t.left,n,r),T(e,t.right,n,r)]);case"||":return"string";default:throw new a.L8(a.Z7.UnsupportedOperator,{operator:t.operator})}case"null":return"";case"boolean":return"boolean";case"string":return"string";case"number":return null===t.value?"":t.value%1==0?"integer":"double";case"date":return"date";case"timestamp":return t.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"current-time":return"date";case"column-reference":{const n=e[t.column.toLowerCase()];return void 0===n?"":n}case"function":switch(t.name.toLowerCase()){case"cast":switch(t.args?.value[1]?.value.type??""){case"integer":case"smallint":return"integer";case"real":case"float":return"double";case"date":case"timestamp":return!0===t.args?.value[1]?.value?.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"varchar":return"string";default:return""}case"position":case"extract":case"char_length":case"mod":return"integer";case"round":if(i=T(e,t.args,n,r),Array.isArray(i)){if(i.length<=0)return"double";i=i[0]}return i;case"sign":return"integer";case"ceiling":case"floor":case"abs":return i=T(e,t.args,n,r),Array.isArray(i)&&(i=F(i)),"integer"===i||"double"===i?i:"double";case"area":case"length":case"log":case"log10":case"sin":case"cos":case"tan":case"asin":case"acos":case"atan":case"cosh":case"sinh":case"tanh":case"power":return"double";case"substring":case"trim":case"concat":case"lower":case"upper":return"string";case"truncate":return"double";case"nullif":case"coalesce":return i=T(e,t.args,n,r),Array.isArray(i)?i.length>0?i[0]:"":i}return""}throw new a.L8(a.Z7.UnsupportedSyntax,{node:t.type})}const I={boolean:1,string:2,integer:3,double:4,date:5};function F(e){if(e){let t="";for(const n of e)""!==n&&(t=""===t||I[t]<I[n]?n:t);return t}return""}function b(e,t){return D(e.parseTree,t)}function A(e){return"column-reference"===e?.parseTree.type}function D(e,t){if(null==e)return!1;switch(e.type){case"when-clause":return D(e.operand,t)||D(e.value,t);case"case-expression":for(const n of e.clauses)if(D(n,t))return!0;return!("simple"!==e.format||!D(e.operand,t))||!(null===e.else||!D(e.else,t));case"parameter":case"null":case"boolean":case"date":case"timestamp":case"time":case"string":case"number":return!1;case"expression-list":for(const n of e.value)if(D(n,t))return!0;return!1;case"unary-expression":return D(e.expr,t);case"binary-expression":return D(e.left,t)||D(e.right,t);case"column-reference":return t.toLowerCase()===e.column.toLowerCase();case"function":return D(e.args,t)}return!1}function E(e){let t="";return t+=e.period.toUpperCase(),t}function v(e,t,n){let r="";return r="interval-period"===t.type?E(t):E(t.start)+" TO "+E(t.end),"INTERVAL "+n+" "+e+" "+r}},50145:(e,t,n)=>{n.d(t,{Dp:()=>f,GV:()=>y,T9:()=>g,U9:()=>T,b$:()=>S,cz:()=>w,dM:()=>F,i2:()=>m,jk:()=>_,tQ:()=>p});var r=n(87449),a=n(33325),s=n(80609),i=n(44729),l=n(55612),u=n(15032);function o(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}function c(e){const t=o(e);let n=0;for(let r=0;r<e.length;r++)n+=(t-e[r])**2;return n/e.length}function h(e){const t=o(e);let n=0;for(let r=0;r<e.length;r++)n+=(t-e[r])**2;return n/(e.length-1)}function d(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t}function f(e){switch(e.toLowerCase()){case"distinct":return"distinct";case"avg":case"mean":return"avg";case"min":return"min";case"sum":return"sum";case"max":return"max";case"stdev":case"stddev":return"stddev";case"var":case"variance":return"var";case"count":return"count"}return""}function p(e,t,n=1e3){switch(e.toLowerCase()){case"distinct":return function(e,t){const n=[],r={},s=[];for(let i=0;i<e.length;i++){if(void 0!==e[i]&&null!==e[i]){const t=e[i];if((0,a.Et)(t)||(0,a.Kg)(t))void 0===r[t]&&(n.push(t),r[t]=1);else{let e=!1;for(let n=0;n<s.length;n++)!0===(0,a.Tf)(s[n],t)&&(e=!0);!1===e&&(s.push(t),n.push(t))}}if(n.length>=t&&-1!==t)return n}return n}(t,n);case"avg":case"mean":return o(t);case"min":return Math.min.apply(Math,t);case"sum":return d(t);case"max":return Math.max.apply(Math,t);case"stdev":case"stddev":return Math.sqrt(c(t));case"var":case"variance":return c(t);case"count":return t.length}return 0}async function _(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:Math.min.apply(Math,r)}async function g(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:Math.max.apply(Math,r)}async function m(e,t,n){let r="";t&&!(0,s.DA)(t)&&(r=(0,s.IY)(t,e.fields));const a=await I(e,t,n,!0);if(0===a.length)return null;const i=o(a);return null===i?i:"integer"===r?function(e){return e=+e,isFinite(e)?e-e%1||(e<0?-0:0===e?e:0):e}(i):i}async function y(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:h(r)}async function S(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:Math.sqrt(h(r))}async function w(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:d(r)}async function T(e,t){return e.iterator(t).count()}async function I(e,t,n,a=!1){const s=e.iterator(n),o=[],c={ticker:0};let h=await s.next();for(;null!==h;){if(c.ticker++,n.aborted)throw new r.dr(r.D_.Cancelled);c.ticker%100==0&&(c.ticker=0,await new Promise((e=>{setTimeout(e,0)})));const e=t?.calculateValue(h);null===e?!1===a&&(o[o.length]=e):o[o.length]=e instanceof i.n||e instanceof u.k?e.toNumber():e instanceof l.g?e.toMilliseconds():e,h=await s.next()}return o}async function F(e,t,n=1e3,a=null){const s=e.iterator(a),o=[],c={},h={ticker:0};let d=await s.next();for(;null!==d;){if(h.ticker++,a&&a.aborted)throw new r.dr(r.D_.Cancelled);h.ticker%100==0&&(h.ticker=0,await new Promise((e=>{setTimeout(e,0)})));const e=t?.calculateValue(d);let f=e;if(e instanceof i.n?f="!!DATEONLY!!-"+e.toString():e instanceof l.g?f="!!TSOFFSETONLY!!-"+e.toString():e instanceof u.k?f="!!TIMEONLY!!-"+e.toString():e instanceof Date&&(f="!!DATE!!-"+e.toString()),null!=e&&void 0===c[f]&&(o.push(e),c[f]=1),o.length>=n&&-1!==n)return o;d=await s.next()}return o}},14469:(e,t,n)=>{n.d(t,{$Q:()=>h,$f:()=>T,BT:()=>E,CR:()=>b,HF:()=>A,HY:()=>m,Io:()=>_,JT:()=>N,Jj:()=>d,KC:()=>C,NN:()=>p,Ow:()=>M,PW:()=>B,SE:()=>k,Zu:()=>z,_2:()=>G,aI:()=>g,c7:()=>I,cY:()=>R,e$:()=>P,fC:()=>x,gR:()=>f,iv:()=>D,jL:()=>U,mh:()=>$,nf:()=>w,pn:()=>F,px:()=>O,r:()=>L,ux:()=>S,y$:()=>v,yI:()=>y}),n(59456);var r=n(29953),a=n(86738),s=n(65864);function i(e){return Array.isArray(e)?e[0]?.spatialReference:e?.spatialReference}function l(e){return e?Array.isArray(e)?e.map(l):e.toJSON?e.toJSON():e:e}function u(e){return Array.isArray(e)?e.map((e=>(0,s.rS)(e))):(0,s.rS)(e)}let o;async function c(e,t){return(await async function(){return o||(o=(0,r.ho)("geometryEngineWorker",{strategy:"distributed"})),o}()).invoke("executeGEOperation",{operation:e,parameters:l(t)})}async function h(e,t){return u(await c("clip",[i(e),e,t]))}async function d(e,t){return u(await c("cut",[i(e),e,t]))}function f(e,t){return c("contains",[i(e),e,t])}function p(e,t){return c("crosses",[i(e),e,t])}function _(e,t,n){return c("distance",[i(e),e,t,n])}function g(e,t){return c("equals",[i(e),e,t])}function m(e,t){return c("intersects",[i(e),e,t])}function y(e,t){return c("touches",[i(e),e,t])}function S(e,t){return c("within",[i(e),e,t])}function w(e,t){return c("disjoint",[i(e),e,t])}function T(e,t){return c("overlaps",[i(e),e,t])}function I(e,t,n){return c("relate",[i(e),e,t,n])}function F(e){return c("isSimple",[i(e),e])}async function b(e){return u(await c("simplify",[i(e),e]))}async function A(e,t=!1){return u(await c("convexHull",[i(e),e,t]))}async function D(e,t){return u(await c("difference",[i(e),e,t]))}async function E(e,t){return u(await c("symmetricDifference",[i(e),e,t]))}async function v(e,t){return u(await c("intersect",[i(e),e,t]))}async function C(e,t=null){const n=function(e,t){let n;return Array.isArray(e)?n=e:(n=[],n.push(e),null!=t&&n.push(t)),n}(e,t);return u(await c("union",[i(n),n]))}async function R(e,t,n,r,a,s){return u(await c("offset",[i(e),e,t,n,r,a,s]))}async function L(e,t,n,r=!1){const a=[i(e),e,t,n,r];return u(await c("buffer",a))}async function k(e,t,n,r,a,s){const l=[i(e),e,t,n,r,a,s];return u(await c("geodesicBuffer",l))}async function x(e,t,n=!0){const r=await c("nearestCoordinate",[i(e),e,t,n]);return{...r,coordinate:a.A.fromJSON(r.coordinate)}}async function N(e,t){const n=await c("nearestVertex",[i(e),e,t]);return{...n,coordinate:a.A.fromJSON(n.coordinate)}}async function P(e,t,n){if(null==e)throw new Z;const r=e.spatialReference;if(null==(n=n??function(e){return"xmin"in e?e.center:"x"in e?e:e.extent?.center}(e)))throw new Z;const a=e.constructor.fromJSON(await c("rotate",[r,e,t,n]));return a.spatialReference=r,a}async function O(e,t,n,r){return u(await c("generalize",[i(e),e,t,n,r]))}async function U(e,t,n){return u(await c("densify",[i(e),e,t,n]))}async function M(e,t,n,r=0){return u(await c("geodesicDensify",[i(e),e,t,n,r]))}function G(e,t){return c("planarArea",[i(e),e,t])}function z(e,t){return c("planarLength",[i(e),e,t])}function B(e,t,n){return c("geodesicArea",[i(e),e,t,n])}function $(e,t,n){return c("geodesicLength",[i(e),e,t,n])}class Z extends Error{constructor(){super("Illegal Argument Exception")}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[833],{70668:(e,t,r)=>{r.d(t,{A:()=>p});var i=r(90237),n=r(69540),o=r(25482),s=r(88930),a=r(10107),l=(r(44208),r(53966),r(87811),r(93223)),u=r(40608),c=r(73133);let d=class extends((0,n.O)(o.oY)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.e)(c.j,{nonNullable:!0})],d.prototype,"unit",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,i._)([(0,u.$)("esri.TimeInterval")],d);const p=d},9775:(e,t,r)=>{r.d(t,{A:()=>o});var i=r(62788),n=r(95488);class o{constructor(e=(e=>e.values().next().value)){this._peeker=e,this._observable=new n.I,this._items=new Set}get length(){return(0,i.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,i.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length;return this._items.forEach((t=>{e(t)||this._items.delete(t)})),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,i.gc)(this._observable),yield*this._items}}},10382:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(36563),n=r(74887),o=r(9775),s=r(72457),a=r(52268),l=r(61322);class u{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new o.A}destroy(){this.close()}get closed(){return!this._clients?.length}open(e,t){return new Promise(((r,i)=>{let o=!0;const s=e=>{(0,n.Te)(t.signal),o&&(o=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let o=0;o<e.length;++o){const a=e[o];(0,n.$X)(a)?this._clientPromises[o]=a.then((e=>(this._clients[o]=new l.default(e,t,this._ongoingJobsQueue),s(r),this._clients[o])),(()=>(s(i),null))):(this._clients[o]=new l.default(a,t,this._ongoingJobsQueue),this._clientPromises[o]=Promise.resolve(this._clients[o]),s(r))}}))}broadcast(e,t,r){const i=new Array(this._clientPromises.length);for(let n=0;n<this._clientPromises.length;++n){const o=this._clientPromises[n];i[n]=o.then((i=>i?.invoke(e,t,r)))}return i}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then((e=>e?.close()));this._clients.length=0,this._clientPromises.length=0,this._inUseClients.length=0,(0,s.h)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const i=(0,n.Tw)();this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:r,resolver:i});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then((e=>e?.jobAdded()))}return i.promise}createInvokeProxy(e){return(0,a.L)(this,e)}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,i.vE)(this._clients.map((r=>r.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let r=t.length;for(let i=0;i<this._clientPromises.length;++i)this._clientPromises[i].then((n=>{n&&(t[i]=n.openPort()),0==--r&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},72457:(e,t,r)=>{r.d(t,{h:()=>o,k:()=>n});const i=new FinalizationRegistry((e=>{e.close()}));function n(e,t){i.register(e,t,t)}function o(e){i.unregister(e)}},29953:(e,t,r)=>{r.d(t,{ho:()=>O});var i=r(49186),n=r(44208),o=r(74887),s=r(10382),a=r(72457),l=r(61322),u=r(53966),c=r(97768),d=r(78888),p=r(84952);const m={async request(e,t){const r=e.options,i=r.responseType;r.signal=t?.signal,r.responseType="native"===i||"native-request-init"===i?"native-request-init":i&&["blob","json","text"].includes(i)&&(0,p.sC)(e.url)?.after?i:"array-buffer";const n=await(0,d.A)(e.url,r),o={data:n.data,httpStatus:n.httpStatus,ssl:n.ssl};switch(n.requestOptions?.responseType){case"native-request-init":return delete o.data.signal,o;case"blob":o.data=await o.data.arrayBuffer();break;case"json":o.data=(new TextEncoder).encode(JSON.stringify(o.data)).buffer;break;case"text":o.data=(new TextEncoder).encode(o.data).buffer}return{result:o,transferList:[o.data]}}};var h=r(8341),g=r(2741),y=r(92602),M=(r(47566),r(70333));const f={};var w=r(26390);class I{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...r)=>e[t](...r)}))}}class A{constructor(){this._dispatcher=new I,this._workerPostMessage({type:h.Go.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,w.d)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,w.d)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,h.VI)(e);if(t&&t.type===h.Go.OPEN){const{modulePath:e,jobId:r}=t;let i=await l.default.loadWorker(e);i||(i=await import(e));const n=l.default.connect(i);this._workerPostMessage({type:h.Go.OPENED,jobId:r,data:n})}}}var v=r(73444),b=r(18357);const D=()=>u.A.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:T}=h.Go;let S,N;const j="Failed to create Worker. Fallback to execute module in main thread";async function _(e){return new Promise((t=>{function r(n){const o=(0,h.VI)(n);o&&o.type===T&&(e.removeEventListener("message",r),e.removeEventListener("error",i),t(e))}function i(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",i),D().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new A).addEventListener("message",r),e.addEventListener("error",i)}e.addEventListener("message",r),e.addEventListener("error",i)}))}let C=0;const{ABORT:x,INVOKE:L,OPEN:Z,OPENED:k,RESPONSE:U}=h.Go;class z{static async create(e){const t=await async function(){if(!(0,n.A)("esri-workers"))return _(new A);if(!S&&!N)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,s)=>{if(t){if(t.aborted)return s(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:ABORT,jobId:n}),s(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:s}),self.postMessage({type:INVOKE,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\\nModules version: ${r}\\nAssets version: ${n??s}\\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case OPEN:let n;function t(e){const o=n.connect(e);self.postMessage({type:OPENED,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case RESPONSE:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split('"{CONFIGURATION}"').join(`'${function(){let e;if(null!=y.A.default){const t={...y.A};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(y.A));e.assetsPath=(0,p.s2)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,p.s2)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,v.JK)(),e.has={"esri-csp-restrictions":(0,n.A)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,n.A)("esri-2d-update-debug"),"esri-2d-log-updating":(0,n.A)("esri-2d-log-updating"),"featurelayer-pbf":(0,n.A)("featurelayer-pbf"),"featurelayer-fast-triangulation-enabled":(0,n.A)("featurelayer-fast-triangulation-enabled"),"featurelayer-simplify-thresholds":(0,n.A)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,n.A)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,n.A)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,n.A)("featurelayer-query-max-depth"),"featurelayer-query-pausing-enabled":(0,n.A)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-enabled":(0,n.A)("featurelayer-snapshot-enabled"),"esri-atomics":(0,n.A)("esri-atomics"),"esri-shared-array-buffer":(0,n.A)("esri-shared-array-buffer"),"esri-tiles-debug":(0,n.A)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,n.A)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,n.A)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,p.s2)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,p.s2)(e.workers.workerPath):e.workers.workerPath=(0,p.s2)((0,g.s)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=y.A.workers.loaderConfig,r=function(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.concat()||[],paths:{...f.paths,...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=f.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,v.JK)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),i={buildDate:b.$,fullVersion:M.ol,revision:b.u};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:i})}()}'`);S=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){N=e||{}}let e;if(S)try{e=new Worker(S,{name:"esri-worker-"+C++})}catch(t){D().warn(j,N),e=new A}else D().warn(j,N),e=new A;return _(e)}();return new z(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),u.A.getLogger("esri.core.workers.WorkerOwner").error(e)}))}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,i=(0,h.Jc)();return new Promise(((t,n)=>{const s={resolve:t,reject:n,abortHandle:(0,o.NY)(r,(()=>{this._outJobs.delete(i),this._post({type:x,jobId:i})}))};this._outJobs.set(i,s),this._post({type:Z,jobId:i,modulePath:e})}))}_onMessage(e){const t=(0,h.VI)(e);if(t)switch(t.type){case k:this._onOpenedMessage(t);break;case U:this._onResponseMessage(t);break;case x:this._onAbortMessage(t);break;case L:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,i=t.get(r);i&&(i.controller&&i.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:i,abortable:n}=e,s=n?new AbortController:null,a=this._inJobs,l=m[t];let u;try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`);u=l.call(null,i,{signal:s?s.signal:null})}catch(e){return void this._post({type:U,jobId:r,error:(0,h.mF)(e)})}(0,o.$X)(u)?(a.set(r,{controller:s,promise:u}),u.then((e=>{a.has(r)&&(a.delete(r),this._post({type:U,jobId:r},e))}),(e=>{a.has(r)&&(a.delete(r),e||(e={message:"Error encountered at method"+t}),(0,o.zf)(e)||this._post({type:U,jobId:r,error:(0,h.mF)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:U,jobId:r},u)}_onOpenedMessage(e){const{jobId:t,data:r}=e,i=this._outJobs.get(t);i&&(this._outJobs.delete(t),(0,c.xt)(i.abortHandle),i.resolve(r))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,o=this._outJobs.get(t);o&&(this._outJobs.delete(t),(0,c.xt)(o.abortHandle),r?o.reject(i.A.fromJSON(JSON.parse(r))):o.resolve(n))}_post(e,t,r){return(0,h.u1)(this.worker,e,t,r)}}const R=(0,n.A)("host-browser")?Math.min(navigator.hardwareConcurrency-1,(0,n.A)("workers-pool-size")):0;let B=(0,n.A)("esri-mobile")?Math.min(R,3):R;B||(B=(0,n.A)("safari")&&(0,n.A)("mac")?7:2);let E=0;const P=[];async function H(e,t){const r=new s.A,{registryTarget:i,...n}=t;return await r.open(e,n),i&&(0,a.k)(i,r),r}async function O(e,t={}){if("string"!=typeof e)throw new i.A("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if((0,n.A)("host-webworker")&&!(0,n.A)("esri-workers")&&(r="local"),"local"===r){let r=await l.default.loadWorker(e);r||(r=await import(e)),(0,o.Te)(t.signal);const i=t.client||r;return H([l.default.connect(r,t.schedule)],{...t,client:i})}if(await async function(){if(V)return V;F=new AbortController;const e=[];for(let t=0;t<B;t++){const r=z.create(t).then((e=>(P[t]=e,e)));e.push(r)}return V=Promise.all(e),V}(),(0,o.Te)(t.signal),"dedicated"===r){const r=E++%B;return H([await P[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,B);if(r<B){const i=new Array(r);for(let n=0;n<r;++n){const r=E++%B;i[n]=P[r].open(e,t)}return H(i,t)}}return H(P.map((r=>r.open(e,t))),t)}let F,V=null},70328:(e,t,r)=>{r.d(t,{BI:()=>y,Ej:()=>c,Hq:()=>u,Ie:()=>h,Jt:()=>g,Ne:()=>d,RF:()=>a,aI:()=>f,fA:()=>o,hZ:()=>m,iT:()=>l,is:()=>M,qv:()=>w,vI:()=>p,v_:()=>I,vt:()=>n,w1:()=>s});var i=r(5443);function n(e=I){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,i,o,s,a=n()){return a[0]=e,a[1]=t,a[2]=r,a[3]=i,a[4]=o,a[5]=s,a}function s(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function u(e,t,r=0,i=t.length/3){let n=e[0],o=e[1],s=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),o=Math.min(o,t[r+3*e+1]),s=Math.min(s,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=o,e[2]=s,e[3]=a,e[4]=l,e[5]=u}function c(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function d(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function p(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function h(e){return e?m(e,w):n(w)}function g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function y(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function M(e){return 6===e.length}function f(e,t,r){if(null==e||null==t)return e===t;if(!M(e)||!M(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(19419);const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],I=[0,0,0,0,0,0];n()},18768:(e,t,r)=>{r.d(t,{b:()=>l});var i=r(90237),n=r(53966),o=r(10107),s=(r(44208),r(87811),r(40608)),a=r(60694);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.qg)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,n.A.getLogger(this)))}};return(0,i._)([(0,o.MZ)()],t.prototype,"title",null),(0,i._)([(0,o.MZ)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,s.$)("esri.layers.mixins.ArcGISService")],t),t}},69208:(e,t,r)=>{r.d(t,{d:()=>s});var i=r(90237),n=r(10107),o=(r(44208),r(53966),r(87811),r(40608));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,o.$)("esri.layers.mixins.CustomParametersMixin")],t),t}},8303:(e,t,r)=>{r.d(t,{A:()=>v});var i=r(90237),n=r(92602),o=r(70333),s=r(78888),a=r(60999),l=r(49186),u=r(53966),c=r(97768),d=r(74887),p=r(84952),m=r(10107),h=(r(44208),r(87811),r(36005)),g=r(40608),y=r(43937),M=r(83531),f=r(20655),w=r(80812),I=r(41318),A=r(10407);const v=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new w.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await Promise.all([r.e(5356),r.e(8823)]).then(r.bind(r,41204));return(0,d.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,d.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,d.QP)(e),!0))))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,A.It)(r);let n,s;if(i)n=r.portal.url;else try{n=await(0,M.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!n||!(0,p.b8)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;s=await(o.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const a=!0,l=!1,u=!1;if(!s)return{features:{edit:a,fullEdit:l},content:{updateItem:u}};try{if(i?await r.reload():(r=new w.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,A.It)(r)}catch(e){(0,d.QP)(e)}return{features:{edit:a,fullEdit:l},content:{updateItem:u}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=o.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=f.A.getDefault();if(n&&n.loaded&&(0,p.S8)(n.restUrl)===(0,p.S8)(i))return n.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?I.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||f.A.getDefault());return r&&i&&!(0,p.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,m.MZ)({type:w.default})],t.prototype,"portalItem",null),(0,i._)([(0,h.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,y.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,m.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,m.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,m.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,m.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,g.$)("esri.layers.mixins.PortalLayer")],t),t},b={credential:null,user:null}},82935:(e,t,r)=>{r.d(t,{e:()=>p});var i=r(90237),n=r(60945),o=r(70668),s=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),l=r(40608),u=r(30524),c=r(96184),d=r(73133);const p=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=d.j.fromJSON(r.timeOffsetUnits);return i&&n?new o.A({value:i,unit:n}):null}set timeInfo(e){(0,u.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,s.MZ)({type:n.A,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,s.MZ)({type:o.A})],t.prototype,"timeOffset",void 0),(0,i._)([(0,a.w)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,s.MZ)({value:null,type:c.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,s.MZ)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,l.$)("esri.layers.mixins.TemporalLayer")],t),t}},45617:(e,t,r)=>{r.d(t,{A:()=>d});var i,n=r(90237),o=r(25482),s=r(4718),a=r(10107),l=r(56507),u=r(40608);let c=i=class extends o.oY{constructor(e){super(e),this.variableName=null,this.dimensionName=null,this.values=[],this.isSlice=!1}clone(){return new i({variableName:this.variableName,dimensionName:this.dimensionName,values:(0,s.o8)(this.values),isSlice:this.isSlice})}};(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"variableName",void 0),(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"dimensionName",void 0),(0,n._)([(0,a.MZ)({type:l.gK.array(l.gK.oneOf([l.gK.native(Number),l.gK.array(l.gK.native(Number))])),json:{write:!0}})],c.prototype,"values",void 0),(0,n._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"isSlice",void 0),c=i=(0,n._)([(0,u.$)("esri.layers.support.DimensionalDefinition")],c);const d=c},20437:(e,t,r)=>{r.d(t,{A:()=>y});var i,n=r(90237),o=r(66552),s=r(25482),a=r(10107),l=r(56507),u=(r(87811),r(44208),r(93223)),c=r(36005),d=r(40608),p=r(72088),m=r(98453);const h=new o.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let g=i=class extends s.oY{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?h.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"alias",void 0),(0,n._)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],g.prototype,"defaultValue",void 0),(0,n._)([(0,a.MZ)()],g.prototype,"description",void 0),(0,n._)([(0,c.w)("description")],g.prototype,"readDescription",null),(0,n._)([(0,a.MZ)({types:p.gK,json:{read:{reader:p.rS},write:!0}})],g.prototype,"domain",void 0),(0,n._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"editable",void 0),(0,n._)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],g.prototype,"length",void 0),(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"name",void 0),(0,n._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"nullable",void 0),(0,n._)([(0,u.e)(m.m)],g.prototype,"type",void 0),(0,n._)([(0,a.MZ)()],g.prototype,"valueType",void 0),(0,n._)([(0,c.w)("valueType",["description"])],g.prototype,"readValueType",null),(0,n._)([(0,a.MZ)({type:Boolean,json:{read:!1}})],g.prototype,"visible",void 0),g=i=(0,n._)([(0,d.$)("esri.layers.support.Field")],g);const y=g},85675:(e,t,r)=>{r.d(t,{A:()=>v});var i,n=r(90237),o=r(51447),s=r(66552),a=r(25482),l=r(4718),u=r(53966),c=r(10107),d=r(79901),p=r(36005),m=r(40608),h=r(43937),g=r(56507),y=r(86738),M=r(45617),f=r(22796);const w=(0,s.O)()({MT_FIRST:"first",MT_LAST:"last",MT_MIN:"min",MT_MAX:"max",MT_MEAN:"mean",MT_BLEND:"blend",MT_SUM:"sum"}),I=(0,s.O)()({esriMosaicNone:"none",esriMosaicCenter:"center",esriMosaicNadir:"nadir",esriMosaicViewpoint:"viewpoint",esriMosaicAttribute:"attribute",esriMosaicLockRaster:"lock-raster",esriMosaicNorthwest:"northwest",esriMosaicSeamline:"seamline"});let A=i=class extends a.oY{constructor(e){super(e),this.ascending=!0,this.itemRasterFunction=null,this.lockRasterIds=null,this.method=null,this.multidimensionalDefinition=null,this.objectIds=null,this.operation=null,this.sortField=null,this.sortValue=null,this.viewpoint=null,this.where=null}readAscending(e,t){return null!=t.ascending?t.ascending:null==t.sortAscending||t.sortAscending}get itemRenderingRule(){return(0,o.Lx)(u.A.getLogger(this),"itemRenderingRule",{replacement:"itemRasterFunction",version:"4.27",warnOnce:!0}),this._get("itemRasterFunction")}set itemRenderingRule(e){(0,o.Lx)(u.A.getLogger(this),"itemRenderingRule",{replacement:"itemRasterFunction",version:"4.27",warnOnce:!0}),this._set("itemRasterFunction",e)}readMethod(e,t){return function(e){let t;switch(e?e.toLowerCase().replace("esrimosaic",""):""){case"byattribute":case"attribute":t="esriMosaicAttribute";break;case"lockraster":t="esriMosaicLockRaster";break;case"center":t="esriMosaicCenter";break;case"northwest":t="esriMosaicNorthwest";break;case"nadir":t="esriMosaicNadir";break;case"viewpoint":t="esriMosaicViewpoint";break;case"seamline":t="esriMosaicSeamline";break;default:t="esriMosaicNone"}return I.fromJSON(t)}(t.mosaicMethod||t.defaultMosaicMethod)}writeMultidimensionalDefinition(e,t,r){null!=e&&(e=e.filter((({variableName:e,dimensionName:t})=>e&&"*"!==e||t))).length&&(t[r]=e.map((e=>e.toJSON())))}readOperation(e,t){const r=t.mosaicOperation,i=t.mosaicOperator?.toLowerCase(),n=r||(i?w.toJSON(i):null);return w.fromJSON(n)||"first"}castSortValue(e){return null==e||"string"==typeof e||"number"==typeof e?e:`${e}`}clone(){return new i({ascending:this.ascending,itemRasterFunction:(0,l.o8)(this.itemRasterFunction),lockRasterIds:(0,l.o8)(this.lockRasterIds),method:this.method,multidimensionalDefinition:(0,l.o8)(this.multidimensionalDefinition),objectIds:(0,l.o8)(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:(0,l.o8)(this.viewpoint),where:this.where})}};(0,n._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],A.prototype,"ascending",void 0),(0,n._)([(0,p.w)("ascending",["ascending","sortAscending"])],A.prototype,"readAscending",null),(0,n._)([(0,c.MZ)({type:f.A,json:{name:"itemRenderingRule",write:!0}})],A.prototype,"itemRasterFunction",void 0),(0,n._)([(0,c.MZ)({type:f.A})],A.prototype,"itemRenderingRule",null),(0,n._)([(0,c.MZ)({type:[g.jz],json:{write:{overridePolicy(){return{enabled:"lock-raster"===this.method}}}}})],A.prototype,"lockRasterIds",void 0),(0,n._)([(0,c.MZ)({type:String,json:{type:I.jsonValues,write:{target:"mosaicMethod",writer:I.write}}})],A.prototype,"method",void 0),(0,n._)([(0,p.w)("method",["mosaicMethod","defaultMosaicMethod"])],A.prototype,"readMethod",null),(0,n._)([(0,c.MZ)({type:[M.A],json:{write:!0}})],A.prototype,"multidimensionalDefinition",void 0),(0,n._)([(0,h.K)("multidimensionalDefinition")],A.prototype,"writeMultidimensionalDefinition",null),(0,n._)([(0,c.MZ)({type:[g.jz],json:{name:"fids",write:!0}})],A.prototype,"objectIds",void 0),(0,n._)([(0,c.MZ)({json:{type:w.jsonValues,read:{reader:w.read},write:{target:"mosaicOperation",writer:w.write}}})],A.prototype,"operation",void 0),(0,n._)([(0,p.w)("operation",["mosaicOperation","mosaicOperator"])],A.prototype,"readOperation",null),(0,n._)([(0,c.MZ)({type:String,json:{write:{overridePolicy(){return{enabled:"attribute"===this.method}}}}})],A.prototype,"sortField",void 0),(0,n._)([(0,c.MZ)({type:[String,Number],json:{write:{allowNull:!0,overridePolicy(){return{enabled:"attribute"===this.method,allowNull:!0}}}}})],A.prototype,"sortValue",void 0),(0,n._)([(0,d.w)("sortValue")],A.prototype,"castSortValue",null),(0,n._)([(0,c.MZ)({type:y.A,json:{write:!0}})],A.prototype,"viewpoint",void 0),(0,n._)([(0,c.MZ)({type:String,json:{write:!0}})],A.prototype,"where",void 0),A=i=(0,n._)([(0,m.$)("esri.layers.support.MosaicRule")],A);const v=A},43577:(e,t,r)=>{r.d(t,{A:()=>h});var i,n=r(90237),o=(r(59456),r(25482)),s=r(10107),a=(r(44208),r(53966),r(87811),r(40608)),l=r(5443),u=r(39829),c=r(65864),d=r(45617);const p={base:r(91075).A,key:"type",typeMap:{extent:l.A,polygon:u.A}};let m=i=class extends o.oY{constructor(e){super(e),this.areaOfInterest=null,this.subsetDefinitions=null}get dimensions(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Map;e.forEach((e=>{if(!e.dimensionName)return;let r,i;if(Array.isArray(e.values[0])){const t=e.values;r=t[0][0],i=t[e.values.length-1][1]}else{const t=e.values;r=t[0],i=t[e.values.length-1]}if(t.has(e.dimensionName)){const n=t.get(e.dimensionName);n[0]=Math.min(r,n[0]),n[1]=Math.max(i,n[1])}else t.set(e.dimensionName,[r,i])}));const r=[];for(const e of t)r.push({name:e[0],extent:e[1]});return r}get variables(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Set;return e.forEach((e=>{e.variableName&&t.add(e.variableName)})),[...t]}clone(){const e=this.subsetDefinitions?.map((e=>e.clone())),t=this.areaOfInterest?this.areaOfInterest.clone():this.areaOfInterest;return new i({areaOfInterest:t,subsetDefinitions:e})}};(0,n._)([(0,s.MZ)({types:p,json:{read:c.rS,write:!0}})],m.prototype,"areaOfInterest",void 0),(0,n._)([(0,s.MZ)({readOnly:!0})],m.prototype,"dimensions",null),(0,n._)([(0,s.MZ)({readOnly:!0})],m.prototype,"variables",null),(0,n._)([(0,s.MZ)({type:[d.A],json:{write:!0}})],m.prototype,"subsetDefinitions",void 0),m=i=(0,n._)([(0,a.$)("esri.layers.support.MultidimensionalSubset")],m);const h=m},22796:(e,t,r)=>{r.d(t,{A:()=>L});var i=r(90237),n=r(25482),o=r(4718),s=r(10107),a=(r(44208),r(53966),r(93223)),l=r(36005),u=r(40608),c=r(43937),d=r(66552),p=r(56507),m=(r(87811),r(13868));let h=class extends n.oY{constructor(){super(...arguments),this.pixelType="unknown"}};(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],h.prototype,"description",void 0),(0,i._)([(0,s.MZ)({type:p.jz,json:{type:p.jz,write:!0,name:"_object_id"}})],h.prototype,"id",void 0),(0,i._)([(0,s.MZ)({type:String,json:{type:m.e8.jsonValues,read:m.e8.read,write:m.e8.write}})],h.prototype,"pixelType",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],h.prototype,"type",void 0),h=(0,i._)([(0,u.$)("esri.layers.support.RasterFunctionInfo")],h);const g=h;let y=class extends n.oY{constructor(){super(...arguments),this.isDataset=!1,this.isPublic=!1,this.type="RasterFunctionVariable"}};(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,i._)([(0,s.MZ)({type:Number,json:{type:p.jz,write:!0,name:"_object_id"}})],y.prototype,"id",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"isDataset",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"isPublic",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],y.prototype,"value",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],y.prototype,"type",void 0),y=(0,i._)([(0,u.$)("esri.layers.support.RasterFunctionVariable")],y);const M={key:"type",base:null,typeMap:{RasterFunctionVariable:y}};let f=class extends n.oY{};(0,i._)([(0,s.MZ)({types:M,json:{types:M,name:"MatchVariable"}})],f.prototype,"matchVariable",void 0),(0,i._)([(0,s.MZ)({types:M,json:{types:M,name:"UnionDimension"}})],f.prototype,"unionDimension",void 0),(0,i._)([(0,s.MZ)({type:Number,json:{type:p.jz,write:!0,name:"_object_id"}})],f.prototype,"id",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"type",void 0),f=(0,i._)([(0,u.$)("esri.layers.support.RasterFunctionProperties")],f);const w=f,I=new d.J({0:"mosaic",1:"item",2:"item-group"},{useNumericKeys:!0});let A=class extends n.oY{constructor(){super(...arguments),this.functionType="mosaic",this.type="RasterFunctionTemplate"}};(0,i._)([(0,s.MZ)({type:[String],json:{write:!0}})],A.prototype,"aliases",void 0),(0,i._)([(0,s.MZ)({type:Object,json:{write:!0}})],A.prototype,"arguments",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"description",void 0),(0,i._)([(0,s.MZ)({type:g,json:{write:!0,name:"function"}})],A.prototype,"functionInfo",void 0),(0,i._)([(0,s.MZ)({type:I.apiValues,json:{type:[0,1,2],read:I.read,write:I.write}})],A.prototype,"functionType",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"group",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"help",void 0),(0,i._)([(0,s.MZ)({type:Number,json:{type:p.jz,write:!0,name:"_object_id"}})],A.prototype,"id",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"name",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0,name:"definition"}})],A.prototype,"queryDefinition",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"tag",void 0),(0,i._)([(0,s.MZ)({type:w,json:{write:!0}})],A.prototype,"properties",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"thumbnail",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"thumbnailEx",void 0),(0,i._)([(0,s.MZ)({json:{type:["RasterFunctionTemplate"],write:!0}})],A.prototype,"type",void 0),A=(0,i._)([(0,u.$)("esri.layers.support.RasterFunctionTemplate")],A);const v=A;var b;const D=new Set(["raster","raster2","dem","fillraster"]),T=new Set(["rasters"]),S=e=>e?.rasterFunction?x.fromJSON(e):e,N=e=>e&&e instanceof x?e.toJSON():e,j=e=>e?.functionName&&!e.declaredClass,_=e=>j(e)?new x(e):e,C={types:{key:"type",base:null,typeMap:{RasterFunctionTemplate:v}},json:{write:!0,name:"rasterFunctionDefinition"}};let x=b=class extends n.oY{constructor(e){super(e),this.functionName=null,this.outputPixelType="unknown",this.variableName=null,this.functionDefinition=null}set functionArguments(e){if(e){const t=Object.keys(e);if(t.some((t=>D.has(t.toLowerCase())&&j(e[t])))||t.some((t=>T.has(t.toLowerCase())&&Array.isArray(e[t])&&e[t].some((e=>j(e)))))){e=(0,o.o8)(e);for(const r of t)D.has(r.toLowerCase())?e[r]=_(e[r]):T.has(r.toLowerCase())&&Array.isArray(e[r])&&(e[r]=e[r].map((e=>_(e))))}}this._set("functionArguments",e)}readFunctionArguments(e){return(e=>{if(null==e)return null;e=(0,o.o8)(e);const t={};for(const r of Object.keys(e))D.has(r.toLowerCase())?t[r]=S(e[r]):T.has(r.toLowerCase())&&Array.isArray(e[r])?t[r]=e[r].map(S):t[r]=e[r];return t})(e)}writeFunctionArguments(e,t,r){const i={};for(const t of Object.keys(e))D.has(t.toLowerCase())?i[t]=N(e[t]):T.has(t.toLowerCase())&&Array.isArray(e[t])?i[t]=e[t].map(N):i[t]=N(e[t]);t[r]=i}readFunctionName(e,t){const r=t.rasterFunctionInfos;return t.name||(r?.length&&"None"!==r[0].name?r[0].name:t.rasterFunctionDefinition?t.rasterFunctionDefinition.name:t.rasterFunction)}get rasterFunctionDefinition(){return this.functionDefinition?.toJSON()}set rasterFunctionDefinition(e){this.functionDefinition=e?v.fromJSON(e):null}get hasClipFunction(){return this.rasterFunctionDefinition?JSON.stringify(this.rasterFunctionDefinition).includes('"type":"ClipFunction"'):JSON.stringify(this).includes('"rasterFunction":"Clip"')}clone(){return new b({functionName:this.functionName,functionArguments:(0,o.o8)(this.functionArguments),outputPixelType:this.outputPixelType,variableName:this.variableName,rasterFunctionDefinition:(0,o.o8)(this.rasterFunctionDefinition)})}};(0,i._)([(0,s.MZ)({json:{type:Object,name:"rasterFunctionArguments"}})],x.prototype,"functionArguments",null),(0,i._)([(0,l.w)("functionArguments")],x.prototype,"readFunctionArguments",null),(0,i._)([(0,c.K)("functionArguments")],x.prototype,"writeFunctionArguments",null),(0,i._)([(0,s.MZ)({json:{type:String,write:{target:"rasterFunction"}}})],x.prototype,"functionName",void 0),(0,i._)([(0,l.w)("functionName",["rasterFunction","rasterFunctionInfos","rasterFunctionDefinition"])],x.prototype,"readFunctionName",null),(0,i._)([(0,a.e)({C128:"c128",C64:"c64",F32:"f32",F64:"f64",S16:"s16",S32:"s32",S8:"s8",U1:"u1",U16:"u16",U2:"u2",U32:"u32",U4:"u4",U8:"u8",UNKNOWN:"unknown"},{ignoreUnknown:!1}),(0,s.MZ)({json:{default:"unknown"}})],x.prototype,"outputPixelType",void 0),(0,i._)([(0,s.MZ)({type:String,json:{read:!0,write:!0}})],x.prototype,"variableName",void 0),(0,i._)([(0,s.MZ)()],x.prototype,"rasterFunctionDefinition",null),(0,i._)([(0,s.MZ)(C)],x.prototype,"functionDefinition",void 0),(0,i._)([(0,s.MZ)()],x.prototype,"hasClipFunction",null),x=b=(0,i._)([(0,u.$)("esri.layers.support.RasterFunction")],x);const L=x},69409:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(49186),n=r(29953),o=r(14140);class s{constructor(){this._workerThread=null,this._destroyed=!1}async initialize(){const e=await(0,n.ho)("RasterWorker");this._destroyed?e.close():this._workerThread=e}destroy(){this._destroyed=!0,this._workerThread&&(this._workerThread.close(),this._workerThread=null)}async convertVectorFieldData(e,t){if(!this._workerThread)throw new i.A("raster-jobhandler:no-connection","no available worker connection");const r=await this._workerThread.invoke("convertVectorFieldData",{pixelBlock:e.pixelBlock.toJSON(),type:e.dataType},t);return r?new o.A(r):null}computeStatisticsHistograms(e,t){if(!this._workerThread)throw new i.A("raster-jobhandler:no-connection","no available worker connection");return this._workerThread.invoke("computeStatisticsHistograms",{pixelBlock:e.pixelBlock.toJSON()},t)}async decode(e,t){if(!this._workerThread)throw new i.A("raster-jobhandler:no-connection","no available worker connection");const r=await this._workerThread.invoke("decode",e,t);return r?new o.A(r):null}async symbolize(e,t){if(!this._workerThread)throw new i.A("raster-jobhandler:no-connection","no available worker connection");const r={extent:e.extent?.toJSON(),pixelBlock:e.pixelBlock?.toJSON(),simpleStretchParams:e.simpleStretchParams,bandIds:e.bandIds},n=await this._workerThread.invoke("symbolize",r,t);return n?new o.A(n):null}async updateSymbolizer(e,t){if(!this._workerThread)throw new i.A("raster-jobhandler:no-connection","no available worker connection");const r=e?.rendererJSON?.histograms;await Promise.all(this._workerThread.broadcast("updateSymbolizer",{symbolizerJSON:e.toJSON(),histograms:r},t))}async updateRasterFunction(e,t){if(!this._workerThread)throw new i.A("raster-jobhandler:no-connection","no available worker connection");await Promise.all(this._workerThread.broadcast("updateRasterFunction",{rasterFunctionJSON:e.toJSON()},t))}async process(e,t){if(!this._workerThread)throw new i.A("raster-jobhandler:no-connection","no available worker connection");const r=await this._workerThread.invoke("process",{extent:e.extent?.toJSON(),primaryPixelSizes:e.primaryPixelSizes?.map((e=>null!=e?e.toJSON():null)),primaryPixelBlocks:e.primaryPixelBlocks.map((e=>null!=e?e.toJSON():null)),primaryRasterIds:e.primaryRasterIds},t);return r?new o.A(r):null}async stretch(e,t){if(!this._workerThread)throw new i.A("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const r={srcPixelBlock:e.pixelBlock.toJSON(),stretchParams:e.stretchParams},n=await this._workerThread.invoke("stretch",r,t);return n?new o.A(n):null}async split(e,t){if(!this._workerThread)throw new i.A("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const r={srcPixelBlock:e.pixelBlock.toJSON(),tileSize:e.tileSize,maximumPyramidLevel:e.maximumPyramidLevel,useBilinear:e.useBilinear},n=await this._workerThread.invoke("split",r,t);return n&&n.forEach(((e,t)=>{n.set(t,e?o.A.fromJSON(e):null)})),n}async clipTile(e,t){if(!this._workerThread)throw new i.A("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const r={...e,pixelBlock:e.pixelBlock.toJSON()},n=await this._workerThread.invoke("clipTile",r,t);return n?o.A.fromJSON(n):null}async estimateStatisticsHistograms(e,t){if(!this._workerThread)throw new i.A("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const r={srcPixelBlock:e.pixelBlock.toJSON()};return await this._workerThread.invoke("estimateStatisticsHistograms",r,t)}async mosaicAndTransform(e,t){if(!this._workerThread)throw new i.A("raster-jobhandler:no-connection","no available worker connection");if(!e?.srcPixelBlocks?.length)return{pixelBlock:null};const r={...e,srcPixelBlocks:e.srcPixelBlocks.map((e=>null!=e?e.toJSON():null))},n=await this._workerThread.invoke("mosaicAndTransform",r,t);return{pixelBlock:n.pixelBlock?new o.A(n.pixelBlock):null,localNorthDirections:n.localNorthDirections}}async createFlowMesh(e,t){if(!this._workerThread)throw new i.A("raster-jobhandler:no-connection","no available worker connection");const r={buffer:e.flowData.data.buffer,maskBuffer:e.flowData.mask.buffer,width:e.flowData.width,height:e.flowData.height},{meshType:n,simulationSettings:o}=e,s=await this._workerThread.invoke("createFlowMesh",{meshType:n,flowData:r,simulationSettings:o},{...t,transferList:[r.buffer,r.maskBuffer]});return{vertexData:new Float32Array(s.vertexBuffer),indexData:new Uint32Array(s.indexBuffer)}}getProjectionOffsetGrid(e,t){if(!this._workerThread)throw new i.A("raster-jobhandler:no-connection","no available worker connection");const r=null!=e.datumTransformation?e.datumTransformation.steps.map((e=>({wkid:e.wkid,wkt:e.wkt,isInverse:e.isInverse}))):null,n=null!=e.rasterTransform?e.rasterTransform.toJSON():null,o={projectedExtent:e.projectedExtent.toJSON(),srcBufferExtent:e.srcBufferExtent.toJSON(),pixelSize:e.pixelSize,hasWrapAround:e.hasWrapAround,spacing:e.spacing,datumTransformationSteps:r,rasterTransform:n,isAdaptive:e.isAdaptive,includeGCSGrid:e.includeGCSGrid};return this._workerThread.invoke("getProjectionOffsetGrid",o,t)}}},96184:(e,t,r)=>{r.d(t,{A:()=>g});var i=r(90237),n=r(60945),o=r(70668),s=r(69540),a=r(25482),l=r(10107),u=(r(44208),r(53966),r(87811),r(36005)),c=r(40608),d=r(43937),p=r(56400);function m(e,t){return o.A.fromJSON({value:e,unit:t})}let h=class extends((0,s.O)(a.oY)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new n.A({start:r,end:i})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?m(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?m(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i._)([(0,l.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i._)([(0,l.MZ)({type:n.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i._)([(0,u.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i._)([(0,d.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i._)([(0,l.MZ)({type:o.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i._)([(0,u.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i._)([(0,d.K)("interval")],h.prototype,"writeInterval",null),(0,i._)([(0,l.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i._)([(0,l.MZ)((0,p.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i._)([(0,l.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i._)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),h=(0,i._)([(0,c.$)("esri.layers.support.TimeInfo")],h);const g=h},72088:(e,t,r)=>{r.d(t,{rS:()=>D,gK:()=>b}),r(44208);var i,n=r(90237),o=r(4718),s=r(10107),a=(r(53966),r(93223)),l=r(40608),u=r(25482);r(87811);let c=i=class extends u.oY{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,s.MZ)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=i=(0,n._)([(0,l.$)("esri.layers.support.CodedValue")],c);const d=new(r(66552).J)({inherited:"inherited",codedValue:"coded-value",range:"range"});let p=class extends u.oY{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,n._)([(0,a.e)(d)],p.prototype,"type",void 0),p=(0,n._)([(0,l.$)("esri.layers.support.Domain")],p);const m=p;var h;let g=h=class extends m{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new h({codedValues:(0,o.o8)(this.codedValues),name:this.name})}};(0,n._)([(0,s.MZ)({type:[c],json:{write:!0}})],g.prototype,"codedValues",void 0),(0,n._)([(0,a.e)({codedValue:"coded-value"})],g.prototype,"type",void 0),g=h=(0,n._)([(0,l.$)("esri.layers.support.CodedValueDomain")],g);const y=g;var M;r(49186);let f=M=class extends m{constructor(e){super(e),this.type="inherited"}clone(){return new M}};(0,n._)([(0,a.e)({inherited:"inherited"})],f.prototype,"type",void 0),f=M=(0,n._)([(0,l.$)("esri.layers.support.InheritedDomain")],f);const w=f;var I;let A=I=class extends m{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new I({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],A.prototype,"maxValue",void 0),(0,n._)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],A.prototype,"minValue",void 0),(0,n._)([(0,a.e)({range:"range"})],A.prototype,"type",void 0),A=I=(0,n._)([(0,l.$)("esri.layers.support.RangeDomain")],A);const v=A,b={key:"type",base:m,typeMap:{range:A,"coded-value":y,inherited:w}};function D(e){if(!e?.type)return null;switch(e.type){case"range":return v.fromJSON(e);case"codedValue":return y.fromJSON(e);case"inherited":return w.fromJSON(e)}return null}},98453:(e,t,r)=>{r.d(t,{m:()=>i});const i=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},77301:(e,t,r)=>{r.d(t,{DY:()=>y,NG:()=>I,QW:()=>s,Rp:()=>m,ct:()=>h,fy:()=>g,sx:()=>p,xx:()=>a,z2:()=>M});var i=r(4576),n=r(45617);function o(e,t,r){const i=t.shift();if(0===r.length){const e=[];r.push({sliceId:-1,multidimensionalDefinition:e})}const n=r.length;for(let t=0;t<n;t++){const t=r.shift().multidimensionalDefinition;i.values?.forEach((n=>{r.push({sliceId:-1,multidimensionalDefinition:[...t,{variableName:e,dimensionName:i.name,values:[n]}]})}))}t.length&&o(e,t,r)}function s(e,t){const r=[];let i=0;return(t?e.variables.filter((e=>e.name.toLowerCase()===t.toLowerCase())):[...e.variables].sort(((e,t)=>e.name>t.name?1:-1))).forEach((e=>{const t=[],n=[...e.dimensions].sort(((e,t)=>e.name>t.name?-1:1));o(e.name,n,t),t.forEach((e=>{r.push({...e,sliceId:i++})}))})),r}function a(e,t,r){let i=e;if(t&&(t=[...t].sort(((e,t)=>e.dimensionName<t.dimensionName?-1:1))).forEach((({dimensionName:e,values:t,isSlice:r})=>{t.length&&(i=i.filter((i=>{const n=i.multidimensionalDefinition.find((t=>t.dimensionName===e));if(null==n)return!1;const o=n.values[0];return"number"==typeof o?"number"==typeof t[0]?t.includes(o):t.some((e=>e[0]<=o&&e[1]>=o)):"number"==typeof t[0]?t.some((e=>o[0]<=e&&o[1]>=e)):r?t.some((e=>e[0]===o[0]&&e[0]===o[1])):t.some((e=>e[0]>=o[0]&&e[0]<=o[1]||e[1]>=o[0]&&e[1]<=o[1]||e[0]<o[0]&&e[1]>o[1]))})))})),i.length&&null!=r?.start&&null!=r.end){const e=r.start.getTime(),t=r.end.getTime(),n=i[0].multidimensionalDefinition.findIndex((e=>"StdTime"===e.dimensionName));n>-1&&(i=i.filter((r=>{const i=r.multidimensionalDefinition[n].values[0];return e<=i&&t>=i})))}return i.map((e=>e.sliceId))}function l(e,t){return Array.isArray(e)?t[0]===t[1]?e[0]===t[0]||e[1]===t[0]:e[0]>=t[0]&&e[0]<=t[1]&&e[1]>=t[0]&&e[1]<=t[1]:e>=t[0]&&e<=t[1]}function u(e,t){return e[0]<=t[0]&&e[1]>=t[0]||e[0]<=t[1]&&e[1]>=t[1]||e[0]>=t[0]&&e[1]<=t[1]}function c(e){return 1===e.length?[e[0],e[0]]:[e[0],e[e.length-1]]}function d(e,t,r){if(!t?.subsetDefinitions?.length)return e;let i;if(r){const{variables:n}=t;if(n.length&&!n.includes(r))return null;const o=t.subsetDefinitions.find((t=>t.dimensionName===e.name&&t.variableName===r));if(!o?.values?.length)return e;i=c(o.values)}else{const r=t.dimensions.find((({name:t})=>t===e.name));i=r?.extent}const n=i;if(!n?.length)return e;const o=e.values.filter((e=>l(e,n)));return{...e,extent:[...n],values:o}}function p(e,t,r){if(!t?.subsetDefinitions?.length)return!1;const{variables:i}=t;if(i.length&&e.some((({variableName:e})=>e&&!i.includes(e))))return!0;for(let i=0;i<e.length;i++){const n=e[i],o=t.subsetDefinitions.find((e=>(""===n.variableName||e.variableName===n.variableName)&&e.dimensionName===n.dimensionName));if(o?.values.length){const e=c(o.values);if(n.isSlice||2!==n.values.length||Array.isArray(n.values[0])||n.values[0]===n.values[1]||!r){if(n.values.some((t=>!l(t,e))))return!0}else if(!u(n.values,e))return!0}}return!1}function m(e,t){if(null==e)return{isOutside:!1};const{geometry:r,timeExtent:i,multidimensionalDefinition:o}=t;let s=null;if(null!=i&&(s=function(e,t){const r=e.dimensions.find((({name:e})=>"StdTime"===e));if(null==r||null==t.start&&null==t.end)return t;t=t.clone();const{start:i,end:o}=t.toJSON(),s=i===o?[i]:null!=i&&null!=o?[i,o]:[i??o];return 2===s.length&&r?.extent.length&&(s[0]=Math.max(s[0],r.extent[0]),s[1]=Math.min(s[1],r.extent[1]??r.extent[0]),s[1]<s[0])||p([new n.A({variableName:"",dimensionName:"StdTime",isSlice:1===s.length,values:s})],e,!0)?null:(t.start=new Date(s[0]),t.end=new Date(s[1]??s[0]),t)}(e,i),null==s))return{isOutside:!0};const{areaOfInterest:a}=e;if(a&&r){const e="point"===r.type?r:"extent"===r.type?r.center:"polygon"===r.type?r.centroid:null;if(e&&!a.contains(e))return{isOutside:!0}}return null!=o&&o.length&&p(o,e,!0)?{isOutside:!0}:{isOutside:!1,intersection:{geometry:r,timeExtent:s,multidimensionalDefinition:o}}}function h(e,t={}){const{multidimensionalInfo:r,keyProperties:i}=e;if(null==r)return null;const{variableName:n,multidimensionalSubset:o,multidimensionalDefinition:s}=t,a=null!=s?s[0]?.variableName:null,l=n||a||i?.DefaultVariable;let{variables:u}=r;return o?.variables?.length&&(u=u.filter((({name:e})=>o.variables.includes(e)))),l?u.find((({name:e})=>e===l))??u[0]:u[0]}function g(e,t={}){const r=h(e,t);if(!r)return null;const i=[],{dimensions:o,name:s}=r;if(0===o.length)return[new n.A({variableName:s,dimensionName:"",values:[],isSlice:!0})];for(let e=0;e<o.length;e++){const r=d(o[e],t.multidimensionalSubset,s);if(!r)return null;const{values:a,extent:l}=r;let u=a?.[0]??l[0];"stdz"===r.name.toLowerCase()&&!r.hasRanges&&Math.abs(l[1])<=Math.abs(l[0])&&(u=a?.length?a[a.length-1]:l[1]),i.push(new n.A({variableName:s,dimensionName:r.name,values:[u],isSlice:!t.useRangeForRangedDimensionInfo||!!r.hasRanges}))}return i}function y(e){return!!e?.length&&e.some((e=>{if(null==e.values)return!0;const t=e.values.length;return 0===t||t>1||!e.isSlice&&Array.isArray(e.values[0])}))}function M(e,t){if(null==t||null==e)return null;let r=t.variables.map((e=>({...e})));return e?.variables?.length&&(r=r.filter((({name:t})=>e.variables.includes(t))),r.forEach((t=>{t.dimensions=t.dimensions.map((r=>d(r,e,t.name))).filter(i.Ru)}))),r}function f(e,t){const{values:r}=t;if(r?.length){const t=Array.isArray(r[0]),i=Array.isArray(e);return t!==i?-1:t&&i?r.findIndex((t=>t[0]===e[0]&&t[1]===e[1])):r.indexOf(e)}const{extent:i}=t;if(Array.isArray(e)||e<i[0]||e>i[1])return-1;const n=t.interval||1;if("ISO8601"!==t.unit)return Math.round((e-i[0])/n);const o=i[0];let s=-1;switch(t.intervalUnit?.toLowerCase()||"seconds"){case"seconds":s=Math.round((e-o)/1e3/n);break;case"minutes":s=Math.round((e-o)/6e4/n);break;case"hours":s=Math.round((e-o)/36e5/n);break;case"days":s=Math.round((e-o)/864e5/n);break;case"months":{const t=new Date(e).getUTCFullYear()-new Date(o).getUTCFullYear(),r=new Date(o).getUTCMonth(),i=new Date(e).getUTCMonth();s=0===t?i-r:i+11-r+12*(t-1)}break;case"years":s=Math.round((new Date(e).getUTCFullYear()-new Date(o).getUTCFullYear())/n);break;case"decades":s=Math.round((new Date(e).getUTCFullYear()-new Date(o).getUTCFullYear())/10/n)}return s}function w(e){let t=e.values?.length;if(t)return t;const{extent:r,unit:i}=e,n=e.interval||1,o=r?r[1]-r[0]:0;if("ISO8601"!==i)return Math.round(o/n);switch(e.intervalUnit?.toLowerCase()??"seconds"){case"seconds":t=Math.round(o/1e3/n);break;case"minutes":t=Math.round(o/6e4/n);break;case"hours":t=Math.round(o/36e5/n);break;case"days":t=Math.round(o/864e5/n);break;case"months":{const e=new Date(r[1]).getUTCFullYear()-new Date(r[0]).getUTCFullYear(),i=new Date(r[0]).getUTCMonth(),n=new Date(r[1]).getUTCMonth();t=0===e?n-i+1:n+11-i+12*(e-1)+1}break;case"years":t=Math.round((new Date(r[1]).getUTCFullYear()-new Date(r[0]).getUTCFullYear())/n);break;case"decades":t=Math.round((new Date(r[1]).getUTCFullYear()-new Date(r[0]).getUTCFullYear())/10/n);break;default:t=0}return t}function I(e,t){let r=0;const i=e[0].variableName,n=[...t.variables].sort(((e,t)=>e.name>t.name?1:-1));for(let t=0;t<n.length;t++){const o=n[t],s=[...o.dimensions].sort(((e,t)=>e.name>t.name?-1:1));if(o.name!==i){r+=s.map((e=>w(e))).reduce(((e,t)=>e*t));continue}const a=s.map((e=>w(e))),l=s.length;for(let t=0;t<l;t++){const i=e.find((e=>e.dimensionName===s[t].name));if(null==i)return null;const n=f(i.values[0],s[t]);if(-1===n)return null;a.shift(),r+=t===l-1?n:n*a.reduce(((e,t)=>e*t))}break}return r}},13868:(e,t,r)=>{r.d(t,{SZ:()=>n,e8:()=>s,hm:()=>o});var i=r(66552);const n=(0,i.O)()({RSP_NearestNeighbor:"nearest",RSP_BilinearInterpolation:"bilinear",RSP_CubicConvolution:"cubic",RSP_Majority:"majority"}),o=(0,i.O)()({esriNoDataMatchAny:"any",esriNoDataMatchAll:"all"}),s=(0,i.O)()({U1:"u1",U2:"u2",U4:"u4",U8:"u8",S8:"s8",U16:"u16",S16:"s16",U32:"u32",S32:"s32",F32:"f32",F64:"f64",C64:"c64",C128:"c128",UNKNOWN:"unknown"})},73133:(e,t,r)=>{r.d(t,{j:()=>i});const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},68729:(e,t,r)=>{r.d(t,{Gj:()=>p,LF:()=>h,uy:()=>d});var i=r(67076),n=r(86162),o=r(67730),s=r(80498),a=r(46981),l=r(36280),u=r(93618),c=r(89968);const d={key:"type",base:null,typeMap:{"unique-value":u.A,"class-breaks":n.A,"raster-colormap":s.A,"raster-stretch":l.A,"vector-field":c.A,"raster-shaded-relief":a.A,flow:o.A}},p={...d,typeMap:{...d.typeMap}};delete p.typeMap["vector-field"],delete p.typeMap.flow;const m={uniqueValue:u.A,classBreaks:n.A,rasterStretch:l.A,rasterColormap:s.A,vectorField:c.A,rasterShadedRelief:a.A,flowRenderer:o.A};function h(e,t){if(!e)return null;if("classBreaks"===e.type&&e.classificationMethod){const t=e.authoringInfo||{classificationMethod:""};t.classificationMethod=e.classificationMethod,e.authoringInfo=t}"vectorField"===e.type&&e.visualVariables&&!Array.isArray(e.visualVariables)&&(e.visualVariables=[e.visualVariables]);const r=(n=e)&&m[n.type]||null;var n;if(r){const i=new r;return i.read(e,t),i}return t?.messages&&e&&t.messages.push(new i.A("renderer:unsupported","Renderers of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:t})),null}},67730:(e,t,r)=>{r.d(t,{A:()=>M});var i,n=r(90237),o=r(68197),s=r(66552),a=r(25482),l=r(90629),u=r(10107),c=(r(44208),r(53966),r(87811),r(93223)),d=r(40608),p=r(17719),m=r(30943),h=r(86768);const g=new s.J({flow_from:"flow-from",flow_to:"flow-to"});let y=i=class extends((0,p.h)(a.oY)){constructor(e){super(e),this.density=.8,this.color=new o.A([255,255,255,1]),this.maxPathLength=200,this.trailWidth=1.5,this.flowSpeed=10,this.trailLength=100,this.smoothing=0,this.flowRepresentation="flow-from",this.type="flow",this.authoringInfo=null,this.legendOptions=null,this.trailCap="butt",this.background="none"}clone(){const{density:e,maxPathLength:t,trailWidth:r,flowSpeed:n,trailLength:o,smoothing:s,flowRepresentation:a,trailCap:l,background:u}=this,c=this.color.clone(),d=(this.visualVariables||[]).map((e=>e.clone())),p=this.authoringInfo?.clone(),m=this.legendOptions?.clone();return new i({density:e,color:c,maxPathLength:t,trailWidth:r,flowSpeed:n,trailLength:o,trailCap:l,background:u,smoothing:s,flowRepresentation:a,visualVariables:d,authoringInfo:p,legendOptions:m})}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}};(0,n._)([(0,u.MZ)({type:Number,json:{write:!0}})],y.prototype,"density",void 0),(0,n._)([(0,u.MZ)({type:o.A,json:{write:{allowNull:!0}}})],y.prototype,"color",void 0),(0,n._)([(0,u.MZ)({type:Number,cast:l.cr,json:{write:!0}})],y.prototype,"maxPathLength",void 0),(0,n._)([(0,u.MZ)({type:Number,cast:l.cr,json:{write:!0}})],y.prototype,"trailWidth",void 0),(0,n._)([(0,u.MZ)({type:Number,json:{write:!0}})],y.prototype,"flowSpeed",void 0),(0,n._)([(0,u.MZ)({type:Number,json:{write:!0}})],y.prototype,"trailLength",void 0),(0,n._)([(0,u.MZ)({type:Number,cast:l.cr,json:{write:!1}})],y.prototype,"smoothing",void 0),(0,n._)([(0,u.MZ)({type:g.apiValues,json:{type:g.jsonValues,read:{reader:g.read},write:{writer:g.write}}})],y.prototype,"flowRepresentation",void 0),(0,n._)([(0,c.e)({flowRenderer:"flow"})],y.prototype,"type",void 0),(0,n._)([(0,u.MZ)({type:m.A,json:{write:!0}})],y.prototype,"authoringInfo",void 0),(0,n._)([(0,u.MZ)({type:h.q,json:{write:!0}})],y.prototype,"legendOptions",void 0),(0,n._)([(0,u.MZ)({type:String,json:{write:!0}})],y.prototype,"trailCap",void 0),(0,n._)([(0,u.MZ)({type:String,json:{write:!0}})],y.prototype,"background",void 0),y=i=(0,n._)([(0,d.$)("esri.renderers.FlowRenderer")],y);const M=y},80498:(e,t,r)=>{r.d(t,{A:()=>g});var i=r(90237),n=r(25482),o=r(10107),s=(r(44208),r(53966),r(87811),r(93223)),a=r(40608),l=r(68197),u=r(56507);let c=class extends n.oY{constructor(){super(...arguments),this.value=null,this.label=null,this.color=null}};(0,i._)([(0,o.MZ)({type:Number,json:{write:!0}})],c.prototype,"value",void 0),(0,i._)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,i._)([(0,o.MZ)({type:l.A,json:{type:[u.jz],write:!0}})],c.prototype,"color",void 0),c=(0,i._)([(0,a.$)("esri.renderers.support.ColormapInfo")],c);const d=c;var p,m=r(67369);let h=p=class extends n.oY{constructor(e){super(e),this.colormapInfos=null,this.type="raster-colormap"}static createFromColormap(e,t){if(!e)return null;const r=5===e[0].length,i=[...e].sort(((e,t)=>e[0]-t[0])).map((e=>d.fromJSON({value:e[0],color:r?e.slice(1,5):e.slice(1,4).concat([255]),label:t?t[e[0]]??"":e[0]})));return new p({colormapInfos:i})}static createFromColorramp(e){const t=(0,m.R8)(e);return p.createFromColormap(t)}clone(){return new p({colormapInfos:this.colormapInfos.map((e=>e.toJSON()))})}extractColormap(){return this.colormapInfos.map((({value:e,color:t})=>[e,t.r,t.g,t.b,t.a>1?t.a:255*t.a&255])).sort(((e,t)=>e[0]-t[0]))}};(0,i._)([(0,o.MZ)({type:[d],json:{write:!0}})],h.prototype,"colormapInfos",void 0),(0,i._)([(0,s.e)({rasterColormap:"raster-colormap"})],h.prototype,"type",void 0),h=p=(0,i._)([(0,a.$)("esri.renderers.RasterColormapRenderer")],h);const g=h},46981:(e,t,r)=>{r.d(t,{A:()=>m});var i,n=r(90237),o=r(25482),s=r(4718),a=r(10107),l=(r(44208),r(53966),r(93223)),u=r(36005),c=r(40608),d=r(95349);let p=i=class extends o.oY{constructor(e){super(e),this.altitude=45,this.azimuth=315,this.colorRamp=null,this.hillshadeType="traditional",this.pixelSizePower=.664,this.pixelSizeFactor=.024,this.scalingType="none",this.type="raster-shaded-relief",this.zFactor=1}readColorRamp(e){return(0,d.r)(e)}clone(){return new i({hillshadeType:this.hillshadeType,altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,scalingType:this.scalingType,pixelSizeFactor:this.pixelSizeFactor,pixelSizePower:this.pixelSizePower,colorRamp:(0,s.o8)(this.colorRamp)})}};(0,n._)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"altitude",void 0),(0,n._)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"azimuth",void 0),(0,n._)([(0,a.MZ)({types:d.g,json:{write:!0}})],p.prototype,"colorRamp",void 0),(0,n._)([(0,u.w)("colorRamp")],p.prototype,"readColorRamp",null),(0,n._)([(0,a.MZ)({type:["traditional","multi-directional"],json:{write:!0}})],p.prototype,"hillshadeType",void 0),(0,n._)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"pixelSizePower",void 0),(0,n._)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"pixelSizeFactor",void 0),(0,n._)([(0,a.MZ)({type:["none","adjusted"],json:{write:!0}})],p.prototype,"scalingType",void 0),(0,n._)([(0,l.e)({rasterShadedRelief:"raster-shaded-relief"})],p.prototype,"type",void 0),(0,n._)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"zFactor",void 0),p=i=(0,n._)([(0,c.$)("esri.renderers.RasterShadedReliefRenderer")],p);const m=p},36280:(e,t,r)=>{r.d(t,{A:()=>g});var i,n=r(90237),o=r(25482),s=r(4718),a=r(10107),l=(r(44208),r(53966),r(93223)),u=r(36005),c=r(40608),d=r(43937),p=r(70274),m=r(95349);let h=i=class extends o.oY{constructor(e){super(e),this.colorRamp=null,this.computeGamma=!1,this.dynamicRangeAdjustment=!1,this.gamma=[],this.maxPercent=null,this.minPercent=null,this.numberOfStandardDeviations=null,this.outputMax=null,this.outputMin=null,this.sigmoidStrengthLevel=null,this.statistics=[],this.histograms=null,this.useGamma=!1,this.stretchType="none",this.type="raster-stretch"}readColorRamp(e){if(e)return(0,m.r)(e)}writeStatistics(e,t,r){e?.length&&(Array.isArray(e[0])||(e=e.map((e=>[e.min,e.max,e.avg,e.stddev]))),t[r]=e)}readStretchType(e,t){let r=t.stretchType;return"number"==typeof r&&(r=p.x[r]),p.u.read(r)}clone(){return new i({stretchType:this.stretchType,outputMin:this.outputMin,outputMax:this.outputMax,useGamma:this.useGamma,computeGamma:this.computeGamma,statistics:(0,s.o8)(this.statistics),gamma:(0,s.o8)(this.gamma),sigmoidStrengthLevel:this.sigmoidStrengthLevel,numberOfStandardDeviations:this.numberOfStandardDeviations,minPercent:this.minPercent,maxPercent:this.maxPercent,colorRamp:(0,s.o8)(this.colorRamp),histograms:(0,s.o8)(this.histograms),dynamicRangeAdjustment:this.dynamicRangeAdjustment})}};(0,n._)([(0,a.MZ)({types:m.g,json:{write:!0}})],h.prototype,"colorRamp",void 0),(0,n._)([(0,u.w)("colorRamp")],h.prototype,"readColorRamp",null),(0,n._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"computeGamma",void 0),(0,n._)([(0,a.MZ)({type:Boolean,json:{write:{target:"dra"},read:{source:"dra"}}})],h.prototype,"dynamicRangeAdjustment",void 0),(0,n._)([(0,a.MZ)({type:[Number],json:{write:!0}})],h.prototype,"gamma",void 0),(0,n._)([(0,a.MZ)({type:Number,json:{write:!0}})],h.prototype,"maxPercent",void 0),(0,n._)([(0,a.MZ)({type:Number,json:{write:!0}})],h.prototype,"minPercent",void 0),(0,n._)([(0,a.MZ)({type:Number,json:{write:!0}})],h.prototype,"numberOfStandardDeviations",void 0),(0,n._)([(0,a.MZ)({type:Number,json:{read:{source:"max"},write:{target:"max"}}})],h.prototype,"outputMax",void 0),(0,n._)([(0,a.MZ)({type:Number,json:{read:{source:"min"},write:{target:"min"}}})],h.prototype,"outputMin",void 0),(0,n._)([(0,a.MZ)({type:Number,json:{write:!0}})],h.prototype,"sigmoidStrengthLevel",void 0),(0,n._)([(0,a.MZ)({json:{type:[[Number]],write:!0}})],h.prototype,"statistics",void 0),(0,n._)([(0,a.MZ)()],h.prototype,"histograms",void 0),(0,n._)([(0,d.K)("statistics")],h.prototype,"writeStatistics",null),(0,n._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"useGamma",void 0),(0,n._)([(0,a.MZ)({type:p.u.apiValues,json:{type:p.u.jsonValues,write:p.u.write}})],h.prototype,"stretchType",void 0),(0,n._)([(0,u.w)("stretchType",["stretchType"])],h.prototype,"readStretchType",null),(0,n._)([(0,l.e)({rasterStretch:"raster-stretch"})],h.prototype,"type",void 0),h=i=(0,n._)([(0,c.$)("esri.renderers.RasterStretchRenderer")],h);const g=h},89968:(e,t,r)=>{r.d(t,{A:()=>B});var i=r(90237),n=r(68197),o=(r(59456),r(52106)),s=r(61147),a=r(66552),l=r(25482),u=r(4718),c=r(10107),d=(r(44208),r(53966),r(93223)),p=r(36005),m=r(40608),h=r(17136),g=r(14636),y=r(86162),M=r(17719),f=r(88542),w=r(23461),I=r(496),A=r(29266),v=r(31593),b=r(53930),D=r(60999),T=r(51850);r(76369),r(93397),r(2741),r(78888);var S=r(55359);function N(e){for(const t of e)if("number"==typeof t)return t;return null}function j(e,t,r){for(let i=0;i<3;i++){const n=e[i];switch(n){case"symbol-value":{const e=r[i];return null!=e?e/t[i]:1}case"proportional":break;default:if(n&&t[i])return n/t[i]}}return 1}function _(e,t,r,i){switch(e){case"proportional":return r*i;case"symbol-value":return null!=t?t:r;default:return e}}async function C(e,t){if(e&&t)return(0,s.wk)(e)?async function(e,t){const i=e.symbolLayers;i&&await(0,D.jJ)(i,(async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){e.size="number"==typeof t[2]?t[2]:0}(e,t);break;case"icon":case"line":case"text":!function(e,t){const r=N(t);null!=r&&(e.size=r)}(e,t);break;case"path":!function(e,t){const r=j(t,T.Un,[e.width,void 0,e.height]);e.width=_(t[0],e.width,1,r),e.height=_(t[2],e.height,1,r)}(e,t);break;case"object":await async function(e,t){const{resourceSize:i,symbolSize:n}=await async function(e){const{computeObjectLayerResourceSize:t}=await r.e(5404).then(r.bind(r,95404)),i=await t(e,10),{width:n,height:o,depth:s}=e,a=[n,s,o];let l=1;for(let e=0;e<3;e++){const t=a[e];if(null!=t){l=t/i[e];break}}for(let e=0;e<3;e++)null==a[e]&&(a[e]=i[e]*l);return{resourceSize:i,symbolSize:a}}(e),o=j(t,i,n);e.width=_(t[0],n[0],i[0],o),e.depth=_(t[1],n[1],i[1],o),e.height=_(t[2],n[2],i[2],o)}(e,t)}}(e,t)))}(e,t):void((0,s.$y)(e)&&function(e,t){const r=N(t);if(null!=r)switch(e.type){case"simple-marker":e.size=r;break;case"picture-marker":{const t=e.width/e.height;t>1?(e.width=r,e.height=r*t):(e.width=r*t,e.height=r);break}case"simple-line":e.width=r;break;case"text":e.font.size=r}}(e,t))}new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new S.q(1e3),new n.A([128,128,128]),r(78504),new n.A("white");var x,L=r(86738),Z=r(58592);const k=new Set(["esriMetersPerSecond","esriKilometersPerHour","esriKnots","esriFeetPerSecond","esriMilesPerHour"]),U=new a.J({beaufort_ft:"beaufort-ft",beaufort_km:"beaufort-km",beaufort_kn:"beaufort-kn",beaufort_m:"beaufort-m",beaufort_mi:"beaufort-mi",classified_arrow:"classified-arrow",ocean_current_kn:"ocean-current-kn",ocean_current_m:"ocean-current-m",simple_scalar:"simple-scalar",single_arrow:"single-arrow",wind_speed:"wind-barb"}),z=new a.J({flow_from:"flow-from",flow_to:"flow-to"});let R=x=class extends((0,M.h)(l.oY)){constructor(e){super(e),this.attributeField="Magnitude",this.flowRepresentation="flow-from",this.rotationType="arithmetic",this.style="single-arrow",this.symbolTileSize=50,this.type="vector-field"}readInputUnit(e,t){return k.has(e)?g.MD.fromJSON(e):null}readOutputUnit(e,t){return k.has(e)?g.MD.fromJSON(e):null}get styleRenderer(){const e=this.style,t=this.attributeField,r=this._createStyleRenderer(e);return r.field=t,r}get sizeVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"size"===t.type&&e.push(t);if(0===e.length){const t=new I.A({field:"Magnitude",minSize:.2*this.symbolTileSize,maxSize:.8*this.symbolTileSize});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}get rotationVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"rotation"===t.type&&e.push(t);if(0===e.length){const t=new w.A({field:"Direction",rotationType:this.rotationType});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}clone(){return new x({attributeField:this.attributeField,flowRepresentation:this.flowRepresentation,rotationType:this.rotationType,symbolTileSize:this.symbolTileSize,style:this.style,visualVariables:(0,u.o8)(this.visualVariables),inputUnit:this.inputUnit,outputUnit:this.outputUnit})}async getGraphicsFromPixelData(e,t=!1,r=[]){const i=new Array,n=(0,g.KL)(this.inputUnit,this.outputUnit),s=this.rotationVariables[0]?.rotationType||this.rotationType,a=t?(0,g.FI)(e.pixelBlock,"vector-uv",s,n):(0,g.Rn)(e.pixelBlock,"vector-magdir",n);if(null==a)return i;const l=e.extent,u=null!=a.mask&&a.mask.length>0;let c=0;const d=(l.xmax-l.xmin)/a.width,p=(l.ymax-l.ymin)/a.height;for(let e=0;e<a.height;e++)for(let t=0;t<a.width;t++,c++){let n=new L.A({x:l.xmin+t*d+d/2,y:l.ymax-e*p-p/2,spatialReference:l.spatialReference});n=(await(0,h.el)(n))[0];const s=r.some((e=>e.intersects(n)));if((!u||a.mask[c])&&!s){const e={Magnitude:a.pixels[0][c],Direction:a.pixels[1][c]},t=new o.A({geometry:{type:"point",x:n.x,y:n.y,spatialReference:l.spatialReference},attributes:e});t.symbol=this._getVisualVariablesAppliedSymbol(t),i.push(t)}}return i}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getClassBreakInfos(){return this.styleRenderer?.classBreakInfos}getDefaultSymbol(){return this.styleRenderer?.defaultSymbol}_getDefaultSymbol(e){return new b.A({path:"M14,32 14,18 9,23 16,3 22,23 17,18 17,32 z",outline:new v.A({width:0}),size:20,color:e||new n.A([0,92,230])})}_getVisualVariablesAppliedSymbol(e){if(!e)return;const t=this.styleRenderer?.getSymbol(e)?.clone(),r=this.sizeVariables,i=this.rotationVariables;if(r&&r.length&&this.sizeVariables.forEach((r=>C(t,(0,A.Yz)([r],e)))),i&&i.length){const r="flow-to"===this.flowRepresentation==("ocean-current-kn"===this.style||"ocean-current-m"===this.style)?0:180;e.attributes.Direction=e.attributes.Direction+r,this.rotationVariables.forEach((r=>function(e,t,r){if(e&&null!=t)if((0,s.wk)(e)){const i=e.symbolLayers;i&&i.forEach((e=>{if(e&&"object"===e.type)switch(r){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}}))}else(0,s.$y)(e)&&("simple-marker"!==e.type&&"picture-marker"!==e.type&&"text"!==e.type||(e.angle+=t))}(t,(0,A.UT)(r,e),r.axis)))}return t}_createStyleRenderer(e){let t={defaultSymbol:this._getDefaultSymbol(),classBreakInfos:[]};switch(e){case"single-arrow":t=this._createSingleArrowRenderer();break;case"beaufort-kn":t=this._createBeaufortKnotsRenderer();break;case"beaufort-m":t=this._createBeaufortMeterRenderer();break;case"beaufort-ft":t=this._createBeaufortFeetRenderer();break;case"beaufort-mi":t=this._createBeaufortMilesRenderer();break;case"beaufort-km":t=this._createBeaufortKilometersRenderer();break;case"ocean-current-m":t=this._createCurrentMeterRenderer();break;case"ocean-current-kn":t=this._createCurrentKnotsRenderer();break;case"simple-scalar":t=this._createSimpleScalarRenderer();break;case"wind-barb":t=this._createWindBarbsRenderer();break;case"classified-arrow":t=this._createClassifiedArrowRenderer()}return new y.A(t)}_createSingleArrowRenderer(){return{defaultSymbol:this._getDefaultSymbol()}}_createBeaufortKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new n.A([214,47,39])),classBreakInfos:this._getClassBreaks([0,1,3,6,10,16,21,27,33,40,47,55,63],[[40,146,199],[89,162,186],[129,179,171],[160,194,155],[191,212,138],[218,230,119],[250,250,100],[252,213,83],[252,179,102],[250,141,52],[247,110,42],[240,71,29]])}}_createBeaufortMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new n.A([214,47,39])),classBreakInfos:this._getClassBreaks([0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7],[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortFeetRenderer(){const e=this._getDefaultSymbol(new n.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>3.28084*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortMilesRenderer(){const e=this._getDefaultSymbol(new n.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>2.23694*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortKilometersRenderer(){const e=this._getDefaultSymbol(new n.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>3.6*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createCurrentMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new n.A([177,177,177])),classBreakInfos:this._getClassBreaks([0,.5,1,1.5,2],[[78,26,153],[179,27,26],[202,128,26],[177,177,177]])}}_createCurrentKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new n.A([177,177,177])),classBreakInfos:this._getClassBreaks([0,.25,.5,1,1.5,2,2.5,3,3.5,4],[[0,0,0],[0,37,100],[78,26,153],[151,0,100],[179,27,26],[177,78,26],[202,128,26],[177,179,52],[177,177,177]])}}_createClassifiedArrowRenderer(){const e=this._getDefaultSymbol(new n.A([56,168,0]));let t=[0,1e-6,3.5,7,10.5,14];if(this.sizeVariables?.length){const e=this.sizeVariables[0].minDataValue,r=this.sizeVariables[0].maxDataValue;if(e&&r){const i=(r-e)/5;t=Array.from(Array(6).keys()).map((t=>e+i*t))}}return{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[56,168,0],[139,309,0],[255,255,0],[255,128,0],[255,0,0]])}}_createSimpleScalarRenderer(){return{defaultSymbol:Z.A.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAQAAABLVLlLAAAABGdBTUEAAYagMeiWXwAAAAJiS0dEAACqjSMyAAAACXBIWXMAAABIAAAASABGyWs+AAAC3ElEQVRIx9XXvW4cVRQH8N982btpsIREJECyiCXsxX4DKh6AliqGKCBBE2SlwlHgAbBD/AKmyEYUeQ1KahPZSZQvBCkQLTHZ7KGY8Xodz4w3a1NwbzVzz/znfJ//zbStVC5q3icKak9GAs2QIdDx3PtW/S011NW3p+M5Eomh11ipTIKe6+4LQzHaQ+G+63pIZNJJQXMpljwTwj1brpgx5w1zZlyx5Z4QnllEIm2xeeSUHBf0hV0bejo1Uh09G3aFvgXk7cCJFBc9EdaRVuHJJaOdKyTV2TVhYLMduNR0Q9gxL5GaaTDw8GzejrDRBpxWoGsySRW0dttKuattwNkIlFw2YXgzOdYq4Ox49PlM+JrKd5OusjTWhBuVxUfMX/KXXZ3WEmkuqa67wspR4BTbwtKr/5u4fFgStse/T7EifFPnnYl9zPq4vmUOPrRndgoHjDti1gOPqlyXoifcRNGQzUd31lDyfHmob1Gp35vSr+P6vilcQ5Egtyd8YF/ySg9NhPM+9M/IOaHwp5+PSZayXTvCogEUwlatC3J8LLwYtcWB8EuDXQVuCkV5/B4eNHb7wGBs87LBDS+xjdVSn09wq1G8dFM+9tSUhIGneLvUdniKxKpTYljCpu3j7rVWlHj/P23v4NPGUEyeCQnexe9lJjzEQqMjJs+EzNAX6B98dBZVRmroJx95x/A/6gln18EyfCUsl+qdXb/tjvfbw+mwforpUOBz4XLVoBwAn3aWnfeH246NyBXhrq7TTN5lNSP9RkU+puUJm3W2Tsdq0nZWM07srk7MwQrZSRysjjGWBLRJNsNbfj2JMR4AbxpU1XLAb9Mxfpsq5EjMuuiR8L0JiHOOBX3hiUvOmavN0nMueSzcceFk0BK4pMqLo7vDD1Z0qrtDx7Itt4Xwm9UqbMmk8S0Dtuzb2pvOU99Z1nLTOfleNmvfZfP2pYZmPfajwosKdDBNpacNpVGGsWX9CyDI8Xq/Sj6QAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE0LTExLTEwVDAzOjE3OjU4LTA1OjAwF+tHyQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNC0xMS0xMFQwMzoxNzo1OC0wNTowMGa2/3UAAAAASUVORK5CYII=",height:20,width:20,type:"esriPMS",angle:0})}}_createWindBarbsRenderer(){const e=Array.from(Array(31).keys()).map((e=>5*e)),t=[{range:"0-5",path:"M20 20 M5 20 A15 15 0 1 0 35 20 A15 15 0 1 0 5 20 M20 20 M10 20 A10 10 0 1 0 30 20 A10 10 0 1 0 10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTIwIDIwIE01IDIwIEExNSAxNSAwIDEgMCAzNSAyMCBBMTUgMTUgMCAxIDAgNSAyMCBNMjAgMjAgTTEwIDIwIEExMCAxMCAwIDEgMCAzMCAyMCBBMTAgMTAgMCAxIDAgMTAgMjAiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"5-10",path:"M25 0 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"10-15",path:"M25 0 L25 40 L10 45 L25 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"15-20",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjEyIDAgMTUgNDUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"20-25",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"25-30",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIEwyNSAzNSBNMjUgMzAgTDE3LjUgMzIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"30-35",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"35-40",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"40-45",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"45-50",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"50-55",path:"M25 0 L25 40 L10 40 L25 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"55-60",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxNy41IDMyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"60-65",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"65-70",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"70-75",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"75-80",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"80-85",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"85-90",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxNy41IDE3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"90-95",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"95-100",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20 L25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCBMMjUgMTUgTTI1IDEwIEwxNy41IDEyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"100-105",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"105-110",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDE3LjUgMjcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"110-115",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"115-120",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDE3LjUgMjIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"120-125",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"125-130",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDE3LjUgMTcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"130-135",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"135-140",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDE3LjUgMTIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"140-145",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"145-150",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IE0yNSAxMCBNMjUgNSBMMTcuNSA3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="}],r=Z.A.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACgAAAApCAQAAADtq6NDAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAEY0lEQVRIx5XXWWxWRRQH8N+d+31tUdGAVjGglYJABFEBY91jfDAg7piYaFTccA++uMQEFRcSXlATtxiXqMQt4G4iisYl0ai4sIQYtVFZ1KIFKdTS0l4f7vRCS5fPebozc+bM/2z/Mzcx0AgSiUxXnKfIdMn875FIhX53U2n/B/s+kKM4UINTjTBZImixxnrv+9a2iL6zEoUBXcoudrWj/OtHm3wt02lfU9Qao9OnHvIhgmww84MEl1qnxfNmGrqHxAizLdPpC6chGcAxKGGcL+30gOERf1BSpUqVslQSV8d5ReZFe8VQ9avufJn31cWwlJV7iafKStGOE/1qvfH9qUxxu8ydUdmuSKbGO8YUdT2inKLG69pM70tliktl5qIkCAJGmusDG7Vqsc0WjZa4UBlBiA5YZIcjYzB7qDtH5kaUJFLs7RGZTZ42W4PRRmtwvbdt1+wGiaS4drEtDttdZYIDNVuAclR3vA3+dI3qHqmVSy7U6Tv1MScCPvPR7nIpFlsdCy3FdTLPGhK92e2CUITjMJ9ocwKxnsZqc3O3JwMma3d6UVLnyVxB4aXemZqvPqLdpJhW3KVVbY4yYImPo6M5Urv50fj+0z/FG9YaEiENs8UtMfXUaTeTePNHlhXfA1UU+2lyD1Il3Gtt9+adfpNG7dNlpg2U/T3KYLZ2dUWFdTgp3/rQ4sK973qnInV5TIf40x3dhvrJPBiqyWUo4wAtLqhQYS71qK+QKOFRywmGK/kpikzV6WMKhh58vGWs4TIJNjiEYLIuP8Tt4/zmLyqk+AyrJSbF+Qq1DgqRUPMxyl+9q3IQhX/rMCJ6tEunriDs1oSyQZKlr9AkhT2ZIARbJfaJS1vtVbHB+Rgi0RK/y1q1BWsEEyLoz40xtGKcARPVWB1BTPO7f4LNtpkUl1aoMbViLyZo0GRjPD3BxnxjqXeLYlvhqYrzMMG3HoyJXa3JjfnGlbYYFlP7Jh3qKsKY4hQ7TY0nG+xwRL61n63mxHtqNHosigyMLmClNwvuecFnOZB88nNBDzNkzhxEZaKMBVoKapggMzvHHXBEpNSSFAvtcFRsVn0bW8LlMmcXs+c0Kne3gRR32+zg4uXwjC6zit6Wt4a8LXVfcp/MtQXHn2ynGbuCmb8GvvFeJLEE82ReU9/n6+dkq2x3buG9Wn94smcgAw631RPR7BTH+kbmHReZoEpOdEe7zWqZl40s0JWs9Hmv7hjBHqPDwsjGKVJnWWqjbdZp1KhJi0aPmxYZsIRhlttgeF+Jlke41QcOQKoqilSb6HJzSvNG3G/UoWnxwsmt+sVaYwd63dRbqdnMyCPVeyRPvpYgdavM22oGKoMUVRbJfOWMwidJ8Zzb1UvmWK/VVUXzHaTjjrVYh1897HT7xxYEVUaa5SWb/WO+YUWa9SrwvigzM8YlzlYv2GSdVCYxxlBtVnnFq5olwp5/BEk/OLsf5LUmG2+inRJdVvjZ97ZH9/zP34ug1O91pf4p+D+JYBpvrKxfbwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNC0xMS0xMFQwMzoxMjowOS0wNTowMB9ViV0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTQtMTEtMTBUMDM6MTI6MDktMDU6MDBuCDHhAAAAAElFTkSuQmCC",height:20,width:20,type:"esriPMS",angle:0}),i=e.map(((i,n)=>{let o;if(n!==e.length-1)if(0===n)o={minValue:i,maxValue:e[n+1],symbol:r};else{const r=Z.A.fromJSON({type:"esriPMS",imageData:t[n].imageData,contentType:"image/svg+xml",height:32,width:32,angle:0});o={minValue:i,maxValue:e[n+1],symbol:r}}return new f.A(o)}));return{defaultSymbol:r,classBreakInfos:i}}_getClassBreaks(e,t){return t.map(((t,r)=>new f.A({minValue:e[r],maxValue:e[r+1],symbol:this._getDefaultSymbol(new n.A(t))})))}};(0,i._)([(0,c.MZ)({type:String,json:{write:!0}})],R.prototype,"attributeField",void 0),(0,i._)([(0,c.MZ)({type:z.apiValues,json:{type:z.jsonValues,read:{reader:z.read},write:{writer:z.write}}})],R.prototype,"flowRepresentation",void 0),(0,i._)([(0,c.MZ)({type:["geographic","arithmetic"],json:{write:!0}})],R.prototype,"rotationType",void 0),(0,i._)([(0,c.MZ)({type:U.apiValues,json:{type:U.jsonValues,read:{reader:U.read},write:{writer:U.write}}})],R.prototype,"style",void 0),(0,i._)([(0,c.MZ)({json:{write:!0}})],R.prototype,"symbolTileSize",void 0),(0,i._)([(0,c.MZ)({type:g.MD.apiValues,json:{type:g.MD.jsonValues,write:{writer:g.MD.write}}})],R.prototype,"inputUnit",void 0),(0,i._)([(0,p.w)("inputUnit")],R.prototype,"readInputUnit",null),(0,i._)([(0,c.MZ)({type:g.MD.apiValues,json:{type:g.MD.jsonValues,read:{reader:g.MD.read},write:{writer:g.MD.write}}})],R.prototype,"outputUnit",void 0),(0,i._)([(0,p.w)("outputUnit")],R.prototype,"readOutputUnit",null),(0,i._)([(0,d.e)({vectorField:"vector-field"})],R.prototype,"type",void 0),(0,i._)([(0,c.MZ)({type:y.A})],R.prototype,"styleRenderer",null),(0,i._)([(0,c.MZ)({type:I.A})],R.prototype,"sizeVariables",null),(0,i._)([(0,c.MZ)({type:w.A})],R.prototype,"rotationVariables",null),R=x=(0,i._)([(0,m.$)("esri.renderers.VectorFieldRenderer")],R);const B=R},12711:(e,t,r)=>{r.d(t,{$P:()=>N,PD:()=>f,ci:()=>v,fp:()=>w,m7:()=>A,w6:()=>I});var i=r(68197),n=(r(68729),r(83047),r(20437)),o=(r(67730),r(30943)),s=(r(88542),r(67369)),a=r(88178),l=r(94833),u=(r(9760),r(84892),r(1626)),c=r(36280),d=r(93618),p=r(80498),m=(r(46981),r(86162),r(89968));const h=.25,g=u.A.fromJSON({type:"multipart",colorRamps:[{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]}),y=u.A.fromJSON(s.vj[0]),M=new Set(["scientific","standard-time","vector-uv","vector-magdir","vector-u","vector-v","vector-magnitude","vector-direction"]);function f(e,t){const{attributeTable:r,colormap:n}=e;if((0,a.rd)(e)){const t=function(e){if(!(0,a.rd)(e))return null;let t;if(null!=e.statistics&&e.statistics.length&&("vector-magdir"===e.dataType||"vector-uv"===e.dataType)){const{minMagnitude:r,maxMagnitude:i}=function(e,t){let r,i;if("vector-magdir"===e)r=t[0].min,i=t[0].max;else{const e=t[0].min,n=t[0].max,o=t[1].min,s=t[1].max;r=0,i=Math.max(Math.abs(e),Math.abs(o),Math.abs(n),Math.abs(s))}return{minMagnitude:r,maxMagnitude:i}}(e.dataType,e.statistics);t=[{type:"size",field:"Magnitude",minSize:10,maxSize:40,minDataValue:r,maxDataValue:i}]}const r=null!=e.multidimensionalInfo?T.get(e.multidimensionalInfo.variables[0].unit):null,i=new m.A({visualVariables:t,inputUnit:r,rotationType:"geographic"});return i.visualVariables=[...i.sizeVariables,...i.rotationVariables],i}(e);if(null!=t)return t}if(null!=n){const t=function(e){if(!(0,a.FA)(e))return null;let t;const{attributeTable:r,colormap:i}=e;if(null!=r){const e=D(r,"value"),i=b(r,null,!0);"string"===i.type&&(t={},r.features.forEach((r=>{const n=r.attributes;t[n[e.name]]=i?n[i.name]:n[e.name]})))}return p.A.createFromColormap(i,t)}(e);if(null!=t)return t}if(null!=r){const t=function(e,t,r,n){if(!(0,a.hu)(e,t))return null;const{attributeTable:u,statistics:c}=e,p=b(u,t),m=D(u,"red"),h=D(u,"green"),g=D(u,"blue"),M=new o.A,f=[],w=new Set,I=!!(m&&h&&g);if(null!=u)u.features.forEach((e=>{const t=e.attributes[p.name];if(!w.has(e.attributes[p.name])&&null!=t){w.add(t);const r=I&&("single"===m.type||"double"===m.type)&&("single"===h.type||"double"===h.type)&&("single"===g.type||"double"===g.type)&&!u.features.some((e=>e.attributes[m.name]>1||e.attributes[h.name]>1||e.attributes[g.name]>1)),n=r?255:1;f.push(new l.A({value:e.attributes[p.name],label:e.attributes[p.name]+"",symbol:{type:"simple-fill",style:"solid",outline:null,color:new i.A(I?[e.attributes[m.name]*n,e.attributes[h.name]*n,e.attributes[g.name]*n,1]:[0,0,0,0])}}))}}));else if(c?.[0])for(let e=c[0].min;e<=c[0].max;e++)f.push(new l.A({value:e,label:e.toString(),symbol:{type:"simple-fill",style:"solid",outline:null,color:new i.A([0,0,0,0])}}));if(f.sort(((e,t)=>e.value&&"string"==typeof e.value.valueOf()?0:e.value>t.value?1:-1)),!I){const e=(0,s.R8)(y,{numColors:f.length});f.forEach(((t,r)=>t.symbol.color=new i.A(e[r].slice(1,4)))),M.colorRamp=y}return new d.A({field:p.name,uniqueValueInfos:f,authoringInfo:M})}(e);if(null!=t)return t}return function(e,t){e=A(e,t?.variableName);const{bandCount:r}=e;let{bandIds:i,stretchType:n}=t||{};i?.some((e=>e>=r))&&(i=null);let o=e.statistics,s=e.histograms;r>1?(i=i?.length?i:v(e),o=null==o?null:i?.map((e=>o[e])),s=null==s?null:i?.map((e=>s[e]))):i=[0],null==n&&(n=function(e){let t="percent-clip";const{pixelType:r,dataType:i,histograms:n,statistics:o,multidimensionalInfo:s}=e,a=M.has(i)||"generic"===i&&null!=s;return"u8"!==r||"processed"!==i&&null!=n&&null!=o?"u8"===r||"elevation"===i||a?t="min-max":null!=n?t="percent-clip":null!=o&&(t="min-max"):t="none",t}(e));let a=!1;switch(n){case"none":a=!1;break;case"percent-clip":a=!s?.length;break;default:a=!o?.length}const{dataType:l}=e,u=1===i?.length&&M.has(l)?g:null,d=new c.A({stretchType:n,dynamicRangeAdjustment:a,colorRamp:u,outputMin:0,outputMax:255,gamma:1===i?.length?[1]:[1,1,1],useGamma:!1});return"percent-clip"===n?d.maxPercent=d.minPercent=h:"standard-deviation"===n&&(d.numberOfStandardDeviations=2),a||null==e.multidimensionalInfo&&!t?.includeStatisticsInStretch||("percent-clip"===n?d.histograms=s:"min-max"!==n&&"standard-deviation"!==n||(d.statistics=o)),d}(e,t)}function w(e,t=!1){const r=["raster-stretch"];return(0,a.FA)(e,t)&&r.push("raster-colormap"),(0,a.hu)(e)&&r.push("unique-value"),(0,a.xX)(e,t)&&r.push("class-breaks"),(0,a.iL)(e)&&r.push("raster-shaded-relief"),(0,a.rd)(e)&&r.push("vector-field"),(0,a.QJ)(e)&&r.push("flow"),r}function I(e,t,r){const i=["nearest","bilinear","cubic","majority"].find((e=>e===r?.toLowerCase()));return"Map"===t?i??"bilinear":"standard-time"===e.dataType?i??"nearest":"thematic"===e.dataType||e.attributeTable||e.colormap?"nearest"===i||"majority"===i?i:"nearest":i??"bilinear"}function A(e,t){const{multidimensionalInfo:r}=e;if(!t||!r)return e;const i=r.variables.find((e=>e.name===t));if(!i)return e;if(e=e.clone(),i){const{statistics:t,histograms:r}=i;t?.length&&(e.statistics=t.map((e=>({min:e.min,max:e.max,avg:e.avg,stddev:e.stddev})))),r?.length&&(e.histograms=r)}return e}function v(e){const t=e.bandCount;if(1===t)return null;if(2===t)return[0];const{bandInfos:r}=e;let i;if(r.length===t){const{red:e,green:t,blue:n,nir:o}=function(e){const t={};for(let r=0;r<e.length;r++){const i=e[r],n=i.name.toLowerCase();if("red"===n)t.red=r;else if("green"===n)t.green=r;else if("blue"===n)t.blue=r;else if("nearinfrared"===n||"nearinfrared_1"===n||"nir"===n)t.nir=r;else if(i.maxWavelength&&i.minWavelength){const e=i.minWavelength,n=i.maxWavelength;null==t.blue&&e>=410&&e<=480&&n>=480&&n<=540?t.blue=r:null==t.green&&e>=490&&e<=560&&n>=560&&n<=610?t.green=r:null==t.red&&e>=595&&e<=670&&n>=660&&n<=730?t.red=r:null==t.nir&&e>=700&&e<=860&&n>=800&&n<=950&&(t.nir=r)}}return t}(r);null!=e&&null!=t&&null!=n?i=[e,t,n]:null!=o&&null!=e&&null!=t&&(i=[o,e,t])}return!i&&t>=3&&(i=[0,1,2]),i}function b(e,t,r){let i;return null!=e?(i=t?e.fields.find((e=>t.toLowerCase()===e.name.toLowerCase())):function(e){let t;for(let r=0;r<e.length;r++){const i=e[r].name.toLowerCase();if("string"===e[r].type){if(i.startsWith("class")){t=e[r];break}null==t&&(i.endsWith("name")||i.endsWith("type"))&&(t=e[r])}}return t}(e.fields),i||(r||(i=e.fields.find((e=>"string"===e.type))),i||(i=D(e,"value")))):i=new n.A({name:"value"}),i}function D(e,t){return null==e?null:e.fields.find((e=>e.name.toLowerCase()===t))}const T=new Map([["m/s","meter-per-second"],["km/h","kilometer-per-hour"],["knots","knots"],["ft/s","feet-per-second"],["mph","mile-per-hour"]]);function S(e){return{color:e.symbolLayers[0].material?.color,type:"esriSFS",style:"esriSFSSolid"}}function N(e){if("uniqueValue"===e.type){const t=e.uniqueValueInfos,r=t?.[0].symbol;return r?.symbolLayers?.length&&(e.uniqueValueInfos=t?.map((e=>({value:e.value,label:e.label,symbol:e.symbol?S(e.symbol):null})))),e}if("classBreaks"===e.type){const t=e.classBreakInfos,r=t[0].symbol;return r?.symbolLayers?.length&&(e.classBreakInfos=t.map((e=>({classMinValue:e.classMinValue,classMaxValue:e.classMaxValue,label:e.label,symbol:e.symbol?S(e.symbol):null})))),e}return e}},82371:(e,t,r)=>{r.d(t,{E9:()=>m,Tw:()=>d,X6:()=>p});var i=r(78888),n=r(5443),o=r(86738),s=r(16930),a=r(87186),l=r(2272),u=r(22671);async function c(e,t,r){const c=(0,l.Dl)(e),{rasterFunction:d,sourceJSON:p}=t||{},m=d?JSON.stringify(d.rasterFunctionDefinition||d):null,h=(0,l.lF)({...c.query,renderingRule:m,f:"json"}),g=(0,l.jV)(h,r);e=c.path;const y=p||await(0,i.A)(e,g).then((e=>e.data)),M=y.hasRasterAttributeTable?(0,i.A)(`${e}/rasterAttributeTable`,g):null,f=y.hasColormap?(0,i.A)(`${e}/colormap`,g):null,w=y.hasHistograms?(0,i.A)(`${e}/histograms`,g):null,I=y.currentVersion>=10.3?(0,i.A)(`${e}/keyProperties`,g):null,A=y.hasMultidimensions?(0,i.A)(`${e}/multidimensionalInfo`,g):null,v=await Promise.allSettled([M,f,w,I,A]);let b=null;if(y.minValues&&y.minValues.length===y.bandCount){b=[];for(let e=0;e<y.minValues.length;e++)b.push({min:y.minValues[e],max:y.maxValues[e],avg:y.meanValues[e],stddev:y.stdvValues[e]})}const D=n.A.fromJSON(y.extent),T=Math.ceil(D.width/y.pixelSizeX-.1),S=Math.ceil(D.height/y.pixelSizeY-.1),N=s.A.fromJSON(y.spatialReference||y.extent.spatialReference),j="fulfilled"===v[0].status?v[0].value?.data:null,_=j?.features?.length?u.A.fromJSON(j):null,C="fulfilled"===v[1].status?v[1].value?.data.colormap:null,x=C?.length?C:null,L="fulfilled"===v[2].status?v[2].value?.data.histograms:null,Z=L?.[0]?.counts?.length?L:null,k="fulfilled"===v[3].status?v[3].value?.data??{}:{},U="fulfilled"===v[4].status?v[4].value?.data.multidimensionalInfo:null,z=U?.variables?.length?U:null;z&&z.variables.forEach((e=>{e.statistics?.length&&e.statistics.forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation}))}));const{defaultVariable:R,serviceDataType:B}=y;R&&R!==k.DefaultVariable&&(k.DefaultVariable=R),B?.includes("esriImageServiceDataTypeVector")&&!B.includes(k.DataType)&&(k.DataType=B.replace("esriImageServiceDataType",""));let E=y.noDataValue;return y.noDataValues?.length&&y.noDataValues.some((e=>e!==E))&&(E=y.noDataValues),new a.A({width:T,height:S,bandCount:y.bandCount,extent:n.A.fromJSON(y.extent),spatialReference:N,pixelSize:new o.A({x:y.pixelSizeX,y:y.pixelSizeY,spatialReference:N}),pixelType:y.pixelType.toLowerCase(),statistics:b,attributeTable:_,colormap:x,histograms:Z,keyProperties:k,noDataValue:E,multidimensionalInfo:z})}function d(e,t,r){return c(e,{sourceJSON:t},r)}function p(e,t,r){return c(e,{rasterFunction:t},r)}function m(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},22671:(e,t,r)=>{r.d(t,{A:()=>w});var i,n=r(90237),o=r(59456),s=r(52106),a=r(66552),l=r(25482),u=r(4718),c=r(10107),d=(r(44208),r(53966),r(36005)),p=r(40608),m=r(43937),h=r(16930),g=r(65864),y=r(20437);const M=new a.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let f=i=class extends l.oY{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=h.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const n=e[t],o=s.A.fromJSON(n),a=n.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=r);const l=n.aggregateGeometries,u=o.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],i=l[e],n=i?.spatialReference;null==t||n||(t.spatialReference=r)}i.push(o)}return i}writeGeometryType(e,t,r,i){if(e)return void M.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void M.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,g.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=h.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,u.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((n-e)/r)));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[o,s]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,(e=>e*o+i),(e=>n-e*s),a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,n;const o=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=r(a[1]);e===i&&s===n||(o.push([e-i,s-n]),i=e,n=s)}else i=t(a[0]),n=r(a[1]),o.push([i,n])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,g.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,o=i.length;e<o;e++){const o=i[e],s=this._quantizePoints(o,t,r);s&&n.push(s)}return n.length>0?((0,g.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,g.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,i=o.length;e<i;e++){const i=o[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(s+=n[0],a+=n[1]):(s=n[0],a=n[1]),n[0]=t(s),n[1]=r(a)}}if(i&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,a;for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(s+=i[0],a+=i[1]):(s=i[0],a=i[1]),i[0]=t(s),i[1]=r(a)}if(i&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}}:null}};(0,n._)([(0,c.MZ)({type:String,json:{write:!0}})],f.prototype,"displayFieldName",void 0),(0,n._)([(0,c.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],f.prototype,"exceededTransferLimit",void 0),(0,n._)([(0,c.MZ)({type:[s.A],json:{write:!0}})],f.prototype,"features",void 0),(0,n._)([(0,d.w)("features")],f.prototype,"readFeatures",null),(0,n._)([(0,c.MZ)({type:[y.A],json:{write:!0}})],f.prototype,"fields",void 0),(0,n._)([(0,c.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:M.read}}})],f.prototype,"geometryType",void 0),(0,n._)([(0,m.K)("geometryType")],f.prototype,"writeGeometryType",null),(0,n._)([(0,c.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],f.prototype,"hasM",void 0),(0,n._)([(0,c.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],f.prototype,"hasZ",void 0),(0,n._)([(0,c.MZ)({types:o.yR,json:{write:!0}})],f.prototype,"queryGeometry",void 0),(0,n._)([(0,d.w)("queryGeometry")],f.prototype,"readQueryGeometry",null),(0,n._)([(0,c.MZ)({type:h.A,json:{write:!0}})],f.prototype,"spatialReference",void 0),(0,n._)([(0,m.K)("spatialReference")],f.prototype,"writeSpatialReference",null),(0,n._)([(0,c.MZ)({json:{write:!0}})],f.prototype,"transform",void 0),f=i=(0,n._)([(0,p.$)("esri.rest.support.FeatureSet")],f),f.prototype.toJSON.isDefaultToJSON=!0;const w=f},22048:(e,t,r)=>{r.d(t,{A:()=>w});var i,n=r(90237),o=r(59456),s=r(60945),a=r(51447),l=r(25482),u=r(4718),c=r(53966),d=r(10107),p=(r(44208),r(40608)),m=r(43937),h=r(65864),g=r(85675),y=r(22796),M=r(86738);let f=i=class extends l.oY{constructor(){super(...arguments),this.geometry=null,this.mosaicRule=null,this.rasterFunction=null,this.pixelSize=null,this.raster=void 0,this.timeExtent=null}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,h.$B)(e),t[r]=e.toJSON())}get renderingRule(){return(0,a.Lx)(c.A.getLogger(this),"renderingRule",{replacement:"rasterFunction",version:"4.27",warnOnce:!0}),this._get("rasterFunction")}set renderingRule(e){(0,a.Lx)(c.A.getLogger(this),"renderingRule",{replacement:"rasterFunction",version:"4.27",warnOnce:!0}),this._set("rasterFunction",e)}clone(){return new i((0,u.o8)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,pixelSize:this.pixelSize,raster:this.raster,timeExtent:this.timeExtent}))}};(0,n._)([(0,d.MZ)({types:o.yR,json:{read:h.rS}})],f.prototype,"geometry",void 0),(0,n._)([(0,m.K)("geometry")],f.prototype,"writeGeometry",null),(0,n._)([(0,d.MZ)({type:g.A,json:{write:!0}})],f.prototype,"mosaicRule",void 0),(0,n._)([(0,d.MZ)({type:y.A})],f.prototype,"renderingRule",null),(0,n._)([(0,d.MZ)({type:y.A,json:{write:!0,name:"renderingRule"}})],f.prototype,"rasterFunction",void 0),(0,n._)([(0,d.MZ)({type:M.A,json:{write:!0}})],f.prototype,"pixelSize",void 0),(0,n._)([(0,d.MZ)({json:{write:!0}})],f.prototype,"raster",void 0),(0,n._)([(0,d.MZ)({type:s.A,json:{read:{source:"time"},write:{target:"time"}}})],f.prototype,"timeExtent",void 0),f=i=(0,n._)([(0,p.$)("esri.rest.support.ImageHistogramParameters")],f);const w=f},30291:(e,t,r)=>{r.d(t,{tn:()=>u});var i=r(13874),n=r(30524),o=r(28122),s=(r(84424),r(80737),r(96808),r(66159)),a=(r(67336),r(92094),r(23721),r(41227)),l=r(68780);function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:l,title:u},m){if(!r)return null;const g=function(e,t){const r=t?.visibleFieldNames;return function(e,t){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),e.sort(d),e}(e.fields??[],t?.ignoreFieldTypes||h).map((t=>new a.A({fieldName:t.name,isEditable:(0,n.R$)(t,e),label:t.alias,format:p(t),visible:c(t,{...e,visibleFieldNames:r})})))}({editFieldsInfo:t,fields:r,objectIdField:l},m);if(!g.length)return null;const y=function(e){const t=(0,n.mB)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:u,fields:r,displayField:e}),M=[new s.A,new o.A];return new i.A({title:y,content:M,fieldInfos:g})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.Bz)(e,t);function d(e,t){return"oid"===e.type?-1:"oid"===t.type?1:m(e)?-1:m(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function p(e){switch(e.type){case"small-integer":case"integer":case"single":return new l.A({digitSeparator:!0,places:0});case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,n.JL)(e.name)?new l.A({digitSeparator:!0,places:0}):null;default:return null}}function m(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const h=["geometry","blob","raster","guid","xml"]},92935:(e,t,r)=>{var i;r.d(t,{X:()=>i}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(i||(i={}))}}]);
|