@arcgis/core 4.27.0-next.20230420 → 4.27.0-next.20230421
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/WebMap.js +1 -1
- package/WebScene.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{f64f95623d9296a91f95.js → 059ec6fd9b971de4b4c1.js} +1 -1
- package/assets/esri/core/workers/chunks/{1fe31a412479815e5e2d.js → 10770939900946feb20d.js} +1 -1
- package/assets/esri/core/workers/chunks/{5252f3cc244204edc299.js → 1216e939d363f96b6cc6.js} +1 -1
- package/assets/esri/core/workers/chunks/156dad2b7fed6749bae7.js +1 -0
- package/assets/esri/core/workers/chunks/15a97d3e42b00ac42984.js +1 -0
- package/assets/esri/core/workers/chunks/{d72c0c97cc4e30f1e4f2.js → 18704903814b9d73c708.js} +1 -1
- package/assets/esri/core/workers/chunks/{852b4a6c0f3feb57cf54.js → 1db5e4c8244dbc21590c.js} +1 -1
- package/assets/esri/core/workers/chunks/{f0953e41d1653e66ba57.js → 2a1a5a1969e80a10dcca.js} +1 -1
- package/assets/esri/core/workers/chunks/33b735faa582e6f39e9a.js +1 -0
- package/assets/esri/core/workers/chunks/34025ac04ca02531923a.js +1 -0
- package/assets/esri/core/workers/chunks/3e9f3479fd8558d9e3e3.js +1 -0
- package/assets/esri/core/workers/chunks/{d59274ac695dfcff1143.js → 46090b69e9161bc05141.js} +1 -1
- package/assets/esri/core/workers/chunks/{1b647446a6a27798c5cf.js → 47bf38d910e71ac39bb8.js} +1 -1
- package/assets/esri/core/workers/chunks/{3978f4f68ada540ee3a3.js → 4f8a09b61267e5e26712.js} +1 -1
- package/assets/esri/core/workers/chunks/5183ecab7eddae7b70e8.js +1 -0
- package/assets/esri/core/workers/chunks/{a5c33b24b7ee042cb473.js → 51a0d1dabe7415515c77.js} +2 -2
- package/assets/esri/core/workers/chunks/541e6efc3b491e507410.js +1 -0
- package/assets/esri/core/workers/chunks/5c64fd3bf057a1a5527f.js +1 -0
- package/assets/esri/core/workers/chunks/6047bdaf4855506f8fdb.js +1 -0
- package/assets/esri/core/workers/chunks/{b2358c2e27be7a5709cf.js → 6adb58f1bffc5d1c03bd.js} +1 -1
- package/assets/esri/core/workers/chunks/770940417e6ddbdbb9d6.js +1 -0
- package/assets/esri/core/workers/chunks/{1c1d8be85297c483a606.js → 77c98121223a144170e3.js} +1 -1
- package/assets/esri/core/workers/chunks/80117007d86be4eb3bc3.js +1 -0
- package/assets/esri/core/workers/chunks/838849b751805615833a.js +1 -0
- package/assets/esri/core/workers/chunks/{9ca395f7bc8d397b5240.js → 88197520501fcc20b6e8.js} +1 -1
- package/assets/esri/core/workers/chunks/{89e8ba4fc325838bf1a9.js → 88f9dededcf60fd011ef.js} +1 -1
- package/assets/esri/core/workers/chunks/88fdd288ef799a7ac48a.js +1 -0
- package/assets/esri/core/workers/chunks/{f11ec68ceb7c973cde74.js → 8ae7fea9f7fda38dd207.js} +1 -1
- package/assets/esri/core/workers/chunks/{0d080dd1ca6a71597409.js → 9265d4e9cfab2c7bbce5.js} +1 -1
- package/assets/esri/core/workers/chunks/{8d41305509fedb3603ac.js → 94041a9ced04aa281d40.js} +1 -1
- package/assets/esri/core/workers/chunks/98540791fcef86069e44.js +1 -0
- package/assets/esri/core/workers/chunks/9c1b2f82877ff79969f5.js +1 -0
- package/assets/esri/core/workers/chunks/a7b3cd537c9127b5e65e.js +1 -0
- package/assets/esri/core/workers/chunks/{3d1c697182237807ab49.js → abea316f2eac0f3086ab.js} +1 -1
- package/assets/esri/core/workers/chunks/ad85ade6a2cfb56cf328.js +1 -0
- package/assets/esri/core/workers/chunks/{25862269952c1bda910f.js → b833b4ea2973bb16792e.js} +1 -1
- package/assets/esri/core/workers/chunks/{e50d1afdc878258c437e.js → be4aa835a7abfc809126.js} +1 -1
- package/assets/esri/core/workers/chunks/{4fed7c08b5f4de23bb75.js → c2ec6e904f96173a7b83.js} +1 -1
- package/assets/esri/core/workers/chunks/{c25aa08b869f2777dc26.js → c4488a8d857c765da30e.js} +1 -1
- package/assets/esri/core/workers/chunks/c5c56b6d99db96a6755a.js +2 -0
- package/assets/esri/core/workers/chunks/{b28883e2a13f360310b3.js → c727d38f71e52bee17e1.js} +1 -1
- package/assets/esri/core/workers/chunks/cf315d255f0dc8d50f21.js +1 -0
- package/assets/esri/core/workers/chunks/cf7676fdc09ad4835680.js +1 -0
- package/assets/esri/core/workers/chunks/cfad34c949cbe8a31ef8.js +1 -0
- package/assets/esri/core/workers/chunks/{a2c9cb23f3e35e88da1d.js → d399b1b9cbf0737d1735.js} +1 -1
- package/assets/esri/core/workers/chunks/{df7dcd035997881cf2ef.js → d5c8119d6d34628d3126.js} +1 -1
- package/assets/esri/core/workers/chunks/d6b6bb8aecc85d2a3f6b.js +1 -0
- package/assets/esri/core/workers/chunks/{8dfa32cc8453f85faab0.js → dd1f8bade9c5c3b7929b.js} +1 -1
- package/assets/esri/core/workers/chunks/e11e60759821746259c6.js +1 -0
- package/assets/esri/core/workers/chunks/{e4b65c5a4575a5c1c49f.js → e356c576f9a7521a49b3.js} +1 -1
- package/assets/esri/core/workers/chunks/f02edf71645eb33bf92f.js +1 -0
- package/assets/esri/core/workers/chunks/{3dff550c29115dd625fa.js → f1a4165c2710ca90e5ea.js} +1 -1
- package/assets/esri/core/workers/chunks/f57a3ee17869ced3dd33.js +1 -0
- package/assets/esri/core/workers/chunks/fc07f6e103d7f69a9909.js +1 -0
- package/chunks/WaterSurface.glsl.js +35 -20
- package/chunks/index.js +1 -1
- package/core/Loadable.js +1 -1
- package/core/Promise.js +1 -1
- package/core/accessorSupport/ensureType.js +1 -1
- package/core/accessorSupport/watch.js +1 -1
- package/core/accessorSupport/write.js +1 -1
- package/core/promiseUtils.js +1 -1
- package/core/watchUtils.js +1 -1
- package/core/workers/Connection.js +1 -1
- package/core/workers/RemoteClient.js +1 -1
- package/geometry/support/geodesicUtils.js +1 -1
- package/intl/messages.js +1 -1
- package/layers/graphics/data/attributeSupport.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/mixins/ArcGISMapService.js +1 -1
- package/layers/support/PromiseQueue.js +1 -1
- package/layers/support/Sublayer.js +1 -1
- package/layers/support/TileKey.js +1 -1
- package/layers/support/rasterFormats/TiffDecoder.js +1 -1
- package/networks/Network.js +1 -1
- package/package.json +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/request.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/support/previewSymbol3D.js +1 -1
- package/symbols/support/styleUtils.js +1 -1
- package/symbols/support/symbolLayerUtils.js +1 -1
- package/symbols/support/utils.js +1 -1
- package/symbols/support/webStyleSymbolUtils.js +1 -1
- package/views/2d/engine/webgl/TextureManager.js +1 -1
- package/views/2d/layers/support/webStyleUtils.js +1 -1
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/interactive/manipulatorUtils.js +1 -1
- package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
- package/views/3d/layers/graphics/ElevationQuery.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/polygonUtils.js +1 -1
- package/views/3d/layers/graphics/symbolComplexity.js +1 -1
- package/views/3d/layers/graphics/webStyleUtils.js +5 -0
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
- package/views/LayerViewManager.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/ViewAnimation.js +1 -1
- package/views/input/BrowserEventSource.js +1 -1
- package/views/input/InputManager.js +1 -1
- package/views/interactive/coordinateHelper.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/support/QueueProcessor.js +1 -1
- package/views/ui/DefaultUI.js +1 -1
- package/views/ui/UI.js +1 -1
- package/widgets/BasemapGallery/support/PortalBasemapsSource.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/Upload.js +1 -1
- package/widgets/Editor/deprecationUtils.js +1 -1
- package/widgets/Editor/modelUploadUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
- package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +1 -1
- package/widgets/Popup.js +1 -1
- package/assets/esri/core/workers/chunks/0cec1c16b25406858ae6.js +0 -1
- package/assets/esri/core/workers/chunks/27353056c3e4e8d8b8d3.js +0 -1
- package/assets/esri/core/workers/chunks/337d59d624ef8a89aae5.js +0 -1
- package/assets/esri/core/workers/chunks/4b6a903d4aeeb4eeb615.js +0 -1
- package/assets/esri/core/workers/chunks/4bf9bc8b52d618f395c5.js +0 -1
- package/assets/esri/core/workers/chunks/5ec4fedbbcbb0053cf74.js +0 -2
- package/assets/esri/core/workers/chunks/60e29d172a2dcf45e8d0.js +0 -1
- package/assets/esri/core/workers/chunks/68a15cc7c51645d31572.js +0 -1
- package/assets/esri/core/workers/chunks/778ecf61f07dafc51bbc.js +0 -1
- package/assets/esri/core/workers/chunks/7e67e071789c6d264280.js +0 -1
- package/assets/esri/core/workers/chunks/80d335bec34d60b7bbdc.js +0 -1
- package/assets/esri/core/workers/chunks/810da30f13151b72a293.js +0 -1
- package/assets/esri/core/workers/chunks/81485a5056aed94b3d8d.js +0 -1
- package/assets/esri/core/workers/chunks/8ebda132068f6b962dd9.js +0 -1
- package/assets/esri/core/workers/chunks/914a0c78c80aa897b1a1.js +0 -1
- package/assets/esri/core/workers/chunks/979ea2e3b1b164334634.js +0 -1
- package/assets/esri/core/workers/chunks/a0e92dd27c8f6b642dbf.js +0 -1
- package/assets/esri/core/workers/chunks/a6240bf258b3886a6661.js +0 -1
- package/assets/esri/core/workers/chunks/b1a8024bf8cdd0cd3884.js +0 -1
- package/assets/esri/core/workers/chunks/b366e0db9b5f27dd53a3.js +0 -1
- package/assets/esri/core/workers/chunks/c564055cb906857c8641.js +0 -1
- package/assets/esri/core/workers/chunks/c646dc9da08b509e39d6.js +0 -1
- package/assets/esri/core/workers/chunks/db5598944b691e43f13e.js +0 -1
- package/assets/esri/core/workers/chunks/eb163a2ddeb27c690308.js +0 -1
- package/assets/esri/core/workers/chunks/f05634909c9449533193.js +0 -1
- package/assets/esri/core/workers/chunks/fcebd70b089dea833c75.js +0 -1
- /package/assets/esri/core/workers/chunks/{a5c33b24b7ee042cb473.js.LICENSE.txt → 51a0d1dabe7415515c77.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{5ec4fedbbcbb0053cf74.js.LICENSE.txt → c5c56b6d99db96a6755a.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8244],{38171:(e,t,s)=>{s.d(t,{Z:()=>m});var i=s(43697),l=s(66577),r=s(51773),n=s(9790),o=s(2368),a=s(96674),u=s(99001),p=s(5600),c=(s(75215),s(67676),s(80442),s(52011)),d=s(33955);function h(e){if(null==e)return null;const t={};for(const s in e){const i=e[s];i&&(t[s]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let y=class extends((0,o.J)(a.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,u.D)(),configurable:!0})}normalizeCtorArgs(e,t,s,i){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:s,popupTemplate:i}}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const s=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",s,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:h(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(){null!=this.geometry&&"mesh"===this.geometry.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform)}_notifyLayer(e,t,s,i){if(!this.layer||!("graphicChanged"in this.layer))return;const l={graphic:this,property:e,oldValue:t,newValue:s};"attributes"===e&&(l.attributeName=i),this.layer.graphicChanged(l)}};(0,i._)([(0,p.Cb)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const s in e){const i=(0,d.im)(e[s]);i&&(t[s]=i)}return 0!==Object.keys(t).length?t:null}}})],y.prototype,"aggregateGeometries",null),(0,i._)([(0,p.Cb)({value:null})],y.prototype,"attributes",null),(0,i._)([(0,p.Cb)({value:null,types:l.qM,json:{read:d.im}})],y.prototype,"geometry",null),(0,i._)([(0,p.Cb)({type:Boolean})],y.prototype,"isAggregate",void 0),(0,i._)([(0,p.Cb)({clonable:"reference"})],y.prototype,"layer",void 0),(0,i._)([(0,p.Cb)({type:r.Z})],y.prototype,"popupTemplate",void 0),(0,i._)([(0,p.Cb)({clonable:"reference"})],y.prototype,"sourceLayer",void 0),(0,i._)([(0,p.Cb)({value:null,types:n.LB})],y.prototype,"symbol",null),(0,i._)([(0,p.Cb)({type:Boolean,value:!0})],y.prototype,"visible",null),y=(0,i._)([(0,c.j)("esri.Graphic")],y),(y||(y={})).generateUID=u.D;const m=y},74085:(e,t,s)=>{function i(e){}s.d(t,{Bg:()=>i}),s(80442)},16050:(e,t,s)=>{s.d(t,{Z:()=>z});var i,l=s(43697),r=s(9790),n=s(35454),o=s(22974),a=s(92604),u=s(5600),p=s(90578),c=s(36030),d=s(71715),h=s(52011),y=s(30556),m=s(75215),f=s(35671),b=s(5499),v=s(41733),g=s(32984),w=s(9833),_=s(66338),V=s(59266);const S="percent-of-total",x="field",C=new n.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:S,esriNormalizeByField:x}),I=(0,m.se)(g.Z);let j=i=class extends((0,v.W)(b.Z)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,s){if(!Array.isArray(e))return;let i=t.minValue;return e.map((e=>{const t=new g.Z;return t.read(e,s),null==t.minValue&&(t.minValue=i),null==t.maxValue&&(t.maxValue=t.minValue),i=t.maxValue,t}))}writeClassBreakInfos(e,t,s,i){const l=e.map((e=>e.write({},i)));this._areClassBreaksConsecutive()&&l.forEach((e=>delete e.classMinValue)),t[s]=l}castField(e){return null==e?e:"function"==typeof e?(a.Z.getLogger(this.declaredClass).error(".field: field must be a string value"),null):(0,m.Zs)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,s=null!=this.normalizationTotal;return t||s?(e=t&&x||s&&S||null,t&&s&&a.Z.getLogger(this.declaredClass).warn("warning: both normalizationField and normalizationTotal are set!")):e!==x&&e!==S||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,s){let i=null;i="number"==typeof e?new g.Z({minValue:e,maxValue:t,symbol:(0,r.se)(s)}):I((0,o.d9)(e)),this.classBreakInfos.push(i),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const s=this.classBreakInfos.length;for(let i=0;i<s;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]===e&&s[1]===t){this.classBreakInfos.splice(i,1);break}}}getBreakIndex(e,t){return!this.valueExpression||null!=t&&null!=t.arcade||a.Z.getLogger(this.declaredClass).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let s=t;!this.valueExpression||null!=t&&null!=t.arcade||(s={...s,arcade:await(0,V.LC)()});const i=this.getBreakIndex(e,s);return-1!==i?this.classBreakInfos[i]:null}getSymbol(e,t){if(this.valueExpression&&(null==t||null==t.arcade))return void a.Z.getLogger(this.declaredClass).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const s=this.getBreakIndex(e,t);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let s=t;if(this.valueExpression&&(null==t||null==t.arcade)){const e=await(0,V.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),s={...s,arcade:e}}const i=this.getBreakIndex(e,s);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}getSymbols(){const e=[];return this.classBreakInfos.forEach((t=>{t.symbol&&e.push(t.symbol)})),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),s=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${s}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new i({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol&&this.backgroundFillSymbol.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol&&this.defaultSymbol.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,o.d9)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,o.d9)(this.visualVariables),legendOptions:(0,o.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}async collectRequiredFields(e,t){const s=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(s)}async collectSymbolFields(e,t){const s=[...this.getSymbols().map((s=>s.collectRequiredFields(e,t))),(0,f.io)(e,t,this.valueExpression)];(0,f.AB)(e,t,this.field),(0,f.AB)(e,t,this.normalizationField),await Promise.all(s)}_getBreakIndexForExpression(e,t){const{viewingMode:s,scale:i,spatialReference:l,arcade:r}=t??{},{valueExpression:n}=this;let o=this._compiledValueExpression.valueExpression===n?this._compiledValueExpression.compiledFunction:null;const a=r.arcadeUtils;if(!o){const e=a.createSyntaxTree(n);o=a.createFunction(e),this._compiledValueExpression.compiledFunction=o}this._compiledValueExpression.valueExpression=n;const u=a.executeFunction(o,a.createExecContext(e,a.getViewInfo({viewingMode:s,scale:i,spatialReference:l})));return this._getBreakIndexfromInfos(u)}_getBreakIndexForField(e){const t=this.field,s=e.attributes,i=this.normalizationType;let l=parseFloat(s[t]);if(i){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?s[this.normalizationField]:void 0);if("log"===i)l=Math.log(l)*Math.LOG10E;else if(i!==S||null==e||isNaN(e)){if(i===x&&!isNaN(t)){if(isNaN(l)||isNaN(t))return-1;l/=t}}else l=l/e*100}return this._getBreakIndexfromInfos(l)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let s=0;s<this.classBreakInfos.length;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]<=e&&(t?e<=i[1]:e<i[1]))return s}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let s=1;s<t;s++)if(e[s-1].maxValue!==e[s].minValue)return!1;return!0}};(0,l._)([(0,u.Cb)(w.KK)],j.prototype,"backgroundFillSymbol",void 0),(0,l._)([(0,u.Cb)({type:[g.Z]})],j.prototype,"classBreakInfos",void 0),(0,l._)([(0,d.r)("classBreakInfos")],j.prototype,"readClassBreakInfos",null),(0,l._)([(0,y.c)("classBreakInfos")],j.prototype,"writeClassBreakInfos",null),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"defaultLabel",void 0),(0,l._)([(0,u.Cb)(w.Gn)],j.prototype,"defaultSymbol",void 0),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"field",void 0),(0,l._)([(0,p.p)("field")],j.prototype,"castField",null),(0,l._)([(0,u.Cb)({type:Boolean})],j.prototype,"isMaxInclusive",void 0),(0,l._)([(0,u.Cb)({type:_.I,json:{write:!0}})],j.prototype,"legendOptions",void 0),(0,l._)([(0,u.Cb)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],j.prototype,"minValue",null),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"normalizationField",void 0),(0,l._)([(0,u.Cb)({type:Number,cast:e=>(0,m.q9)(e),json:{write:!0}})],j.prototype,"normalizationTotal",void 0),(0,l._)([(0,u.Cb)({type:C.apiValues,value:null,json:{type:C.jsonValues,read:C.read,write:C.write}})],j.prototype,"normalizationType",null),(0,l._)([(0,c.J)({classBreaks:"class-breaks"})],j.prototype,"type",void 0),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"valueExpression",void 0),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"valueExpressionTitle",void 0),j=i=(0,l._)([(0,h.j)("esri.renderers.ClassBreaksRenderer")],j);const z=j},5499:(e,t,s)=>{s.d(t,{Z:()=>c});var i=s(43697),l=s(35454),r=s(96674),n=s(5600),o=(s(75215),s(67676),s(80442),s(52011)),a=s(69237);const u=new l.X({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let p=class extends r.wq{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,i._)([(0,n.Cb)({type:a.Z,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,i._)([(0,n.Cb)({type:u.apiValues,readOnly:!0,json:{type:u.jsonValues,read:!1,write:{writer:u.write,ignoreOrigin:!0}}})],p.prototype,"type",void 0),p=(0,i._)([(0,o.j)("esri.renderers.Renderer")],p);const c=p},81571:(e,t,s)=>{s.d(t,{Z:()=>$});var i=s(43697),l=s(9790),r=s(20102),n=s(22974),o=s(92604),a=s(78286),u=s(17445),p=s(5600),c=s(90578),d=s(36030),h=s(71715),y=s(52011),m=s(30556),f=s(22862),b=s(75215),v=s(35671),g=s(65587),w=s(5499),_=s(41733),V=s(9833),S=s(66338),x=s(2368),C=s(96674),I=s(67676);s(80442);let j=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,i._)([(0,p.Cb)(V.GY)],j.prototype,"value",void 0),(0,i._)([(0,p.Cb)(V.GY)],j.prototype,"value2",void 0),(0,i._)([(0,p.Cb)(V.GY)],j.prototype,"value3",void 0),j=(0,i._)([(0,y.j)("esri.renderers.support.UniqueValue")],j);const z=j;let q=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.values=null}castValues(e){if(null==e)return null;const t=typeof(e=Array.isArray(e)?e:[e])[0];return"string"===t||"number"===t?e.map((e=>new z({value:e}))):"object"===t?e[0]instanceof z?e:e.map((e=>new z(e))):null}};(0,i._)([(0,p.Cb)({type:String,json:{write:!0}})],q.prototype,"description",void 0),(0,i._)([(0,p.Cb)({type:String,json:{write:!0}})],q.prototype,"label",void 0),(0,i._)([(0,p.Cb)(V.Gn)],q.prototype,"symbol",void 0),(0,i._)([(0,p.Cb)({type:[z],json:{type:[[String]],read:{reader:e=>e?e.map((e=>new z({value:e[0],value2:e[1],value3:e[2]}))):null},write:{writer:(e,t)=>{const s=[];for(const t of e){const e=[t.value,t.value2,t.value3].filter(I.pC).map((e=>e.toString()));s.push(e)}t.values=s}}}})],q.prototype,"values",void 0),(0,i._)([(0,c.p)("values")],q.prototype,"castValues",null),q=(0,i._)([(0,y.j)("esri.renderers.support.UniqueValueClass")],q);const F=q;let E=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,i._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"heading",void 0),(0,i._)([(0,p.Cb)({type:[F],json:{write:!0}})],E.prototype,"classes",void 0),E=(0,i._)([(0,y.j)("esri.renderers.support.UniqueValueGroup")],E);const T=E;var k,Z=s(44262),O=s(59266),D=s(25929),U=s(27883),B=s(59390);const L="esri.renderers.UniqueValueRenderer",M=o.Z.getLogger(L),N="uvInfos-watcher",R="uvGroups-watcher",A=(0,b.se)(Z.Z);let G=k=class extends((0,_.W)(w.Z)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.orderByClassesEnabled=!1,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let s=!1;const i={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let l=0;l<t.length;l++){const r=e.find((e=>e.value===t[l].value));r?(0,f.Hg)(r,t[l])?(i.changed.push({type:"complete",oldValue:r,newValue:t[l]}),s=!0):i.unchanged.push({oldValue:r,newValue:t[l]}):(i.added.push(t[l]),s=!0)}for(let l=0;l<e.length;l++)t.find((t=>t.value===e[l].value))||(i.removed.push(e[l]),s=!0);return s?i:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return null==e||"function"==typeof e?e:(0,b.Zs)(e)}writeField(e,t,s,i){"string"==typeof e?t[s]=e:i&&i.messages?i.messages.push(new r.Z("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):M.error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,s){return s.portal||g.Z.getDefault()}readStyleOrigin(e,t,s){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,D.f)(t.styleUrl,s);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,s,i){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,D.t)(e.styleUrl,i))}set uniqueValueGroups(e){this.styleOrigin?M.error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?M.error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void M.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let s;s="object"==typeof e?A(e):new Z.Z({value:e,symbol:(0,l.se)(t)}),this.uniqueValueInfos?.push(s),this._valueInfoMap[s.value]=s,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void M.error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");const t=this.uniqueValueInfos;if(t)for(let s=0;s<t.length;s++)if(t[s].value===e+""){delete this._valueInfoMap[e],t.splice(s,1);break}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let s=t;return!this.valueExpression||null!=t&&null!=t.arcade||(s={...s,arcade:await(0,O.LC)()}),this._getUniqueValueInfo(e,s)}getSymbol(e,t){if(this.valueExpression&&(null==t||null==t.arcade))return void M.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const s=this._getUniqueValueInfo(e,t);return s&&s.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let s=t;if(this.valueExpression&&(null==s||null==s.arcade)){const e=await(0,O.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),s={...s,arcade:e}}const i=this._getUniqueValueInfo(e,s);return i&&i.symbol||this.defaultSymbol}getSymbols(){const e=[];for(const t of this.uniqueValueInfos??[])t.symbol&&e.push(t.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),s=this.uniqueValueInfos?.reduce(((e,t)=>e+t.getMeshHash()),"");return`${e}.${t}.${s}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new k({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,n.d9)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,n.d9)(this.visualVariables),legendOptions:(0,n.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),backgroundFillSymbol:(0,n.d9)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,n.d9)(this.uniqueValueInfos),s=(0,n.d9)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,n.d9)(this.styleOrigin))),Object.freeze(t),Object.freeze(s)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",s),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const s=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(s)}async collectSymbolFields(e,t){const s=[...this.getSymbols().map((s=>s.collectRequiredFields(e,t))),(0,v.io)(e,t,this.valueExpression)];(0,v.AB)(e,t,this.field),(0,v.AB)(e,t,this.field2),(0,v.AB)(e,t,this.field3),await Promise.all(s)}populateFromStyle(){return(0,U.n2)(this.styleOrigin,{portal:this.portal}).then((e=>{const t=[];return this._valueInfoMap={},e&&e.data&&Array.isArray(e.data.items)&&e.data.items.forEach((s=>{const i=new B.Z({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:s.name});this.defaultSymbol||s.name!==e.data.defaultItem||(this.defaultSymbol=i,this._isDefaultSymbolDerived=!0);const l=new Z.Z({value:s.name,symbol:i});t.push(l),this._valueInfoMap[s.name]=l})),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this}))}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const{uniqueValueInfos:e}=this;if(e)for(const t of e)this._valueInfoMap[t.value+""]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles(N);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const s of e)t.push((0,u.YP)((()=>({symbol:s.symbol,value:s.value,label:s.label,description:s.description})),((e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)}),{sync:!0}));this.addHandles(t,N)}}_watchUniqueValueGroups(){this.removeHandles(R);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const s of e){t.push((0,u.YP)((()=>({classes:s.classes})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}));for(const e of s.classes??[])t.push((0,u.YP)((()=>({symbol:e.symbol,values:e.values,label:e.label,description:e.description})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}))}this.addHandles(t,R)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:s,field3:i,fieldDelimiter:l,uniqueValueGroups:r,valueExpression:n}=this;if(!t&&!n)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const o=!(!t||!s);for(const t of r)for(const r of t.classes??[]){const{symbol:t,label:n,values:a,description:u}=r;for(const r of a??[]){const{value:a,value2:p,value3:c}=r,d=[a];s&&d.push(p),i&&d.push(c);const h=o?d.join(l||""):d[0];e.push(new Z.Z({symbol:t,label:n,value:h,description:u}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();const{field:t,field2:s,valueExpression:i,fieldDelimiter:l,uniqueValueInfos:r}=this;if(!t&&!i||!r.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const n=!(!t||!s),o=r.map((e=>{const{symbol:t,label:s,value:i,description:r}=e,[o,a,u]=n?i?.toString()?.split(l||"")||[]:[i];return new F({symbol:t,label:s,description:r,values:[new z({value:o,value2:a,value3:u})]})})),a=[new T({classes:o})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:s,scale:i,spatialReference:l,arcade:r}=t??{};let n=this._cache.compiledFunc;const o=r.arcadeUtils;if(!n){const e=o.createSyntaxTree(this.valueExpression);n=o.createFunction(e),this._cache.compiledFunc=n}const a=o.executeFunction(n,o.createExecContext(e,o.getViewInfo({viewingMode:s,scale:i,spatialReference:l})));return this._valueInfoMap[a+""]}_getUnqiueValueInfoForFields(e){const t=this.field,s=e.attributes;let i;if("function"!=typeof t&&this.field2){const e=this.field2,l=this.field3,r=[];t&&r.push(s[t]),e&&r.push(s[e]),l&&r.push(s[l]),i=r.join(this.fieldDelimiter||"")}else"function"==typeof t?i=t(e):t&&(i=s[t]);return this._valueInfoMap[i+""]}static fromPortalStyle(e,t){const s=new k(t&&t.properties);s._set("styleOrigin",Object.freeze({styleName:e})),s._set("portal",t&&t.portal||g.Z.getDefault());const i=s.populateFromStyle();return i.catch((t=>{M.error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)})),i}static fromStyleUrl(e,t){const s=new k(t&&t.properties);s._set("styleOrigin",Object.freeze({styleUrl:e}));const i=s.populateFromStyle();return i.catch((t=>{M.error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)})),i}};(0,i._)([(0,p.Cb)({readOnly:!0})],G.prototype,"_cache",null),(0,i._)([(0,d.J)({uniqueValue:"unique-value"})],G.prototype,"type",void 0),(0,i._)([(0,p.Cb)(V.KK)],G.prototype,"backgroundFillSymbol",void 0),(0,i._)([(0,p.Cb)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],G.prototype,"field",null),(0,i._)([(0,c.p)("field")],G.prototype,"castField",null),(0,i._)([(0,m.c)("field")],G.prototype,"writeField",null),(0,i._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],G.prototype,"field2",null),(0,i._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],G.prototype,"field3",null),(0,i._)([(0,p.Cb)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],G.prototype,"orderByClassesEnabled",void 0),(0,i._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],G.prototype,"valueExpression",null),(0,i._)([(0,p.Cb)({type:String,json:{write:!0}})],G.prototype,"valueExpressionTitle",void 0),(0,i._)([(0,p.Cb)({type:S.I,json:{write:!0}})],G.prototype,"legendOptions",void 0),(0,i._)([(0,p.Cb)({type:String,json:{write:!0}})],G.prototype,"defaultLabel",void 0),(0,i._)([(0,p.Cb)((0,a.RH)({...V.Gn},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],G.prototype,"defaultSymbol",null),(0,i._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],G.prototype,"fieldDelimiter",null),(0,i._)([(0,p.Cb)({type:g.Z,readOnly:!0})],G.prototype,"portal",void 0),(0,i._)([(0,h.r)("portal",["styleName"])],G.prototype,"readPortal",null),(0,i._)([(0,p.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],G.prototype,"styleOrigin",void 0),(0,i._)([(0,h.r)("styleOrigin",["styleName","styleUrl"])],G.prototype,"readStyleOrigin",null),(0,i._)([(0,m.c)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],G.prototype,"writeStyleOrigin",null),(0,i._)([(0,p.Cb)({type:[T],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,s)=>(t.uniqueValueGroups||function(e){const{field1:t,field2:s,field3:i,fieldDelimiter:l,uniqueValueInfos:r,valueExpression:n}=e,o=!(!t||!s);return[{classes:(r??[]).map((e=>{const{symbol:r,label:a,value:u,description:p}=e,[c,d,h]=o?u?.toString()?.split(l||"")||[]:[u],y=[];return(t||n)&&y.push(c),s&&y.push(d),i&&y.push(h),{symbol:r,label:a,values:[y],description:p}}))}]}(t)).map((e=>T.fromJSON(e,s)))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],G.prototype,"uniqueValueGroups",null),(0,i._)([(0,p.Cb)({type:[Z.Z],json:{read:!1,write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],G.prototype,"uniqueValueInfos",null),G=k=(0,i._)([(0,y.j)(L)],G);const $=G},41733:(e,t,s)=>{s.d(t,{W:()=>D});var i=s(43697),l=s(5600),r=s(75215),n=(s(67676),s(80442),s(71715)),o=s(52011),a=s(30556),u=s(35671);const p=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/;var c,d=s(77997),h=s(21849);let y=c=class extends d.Z{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new c({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,i._)([(0,l.Cb)({readOnly:!0})],y.prototype,"cache",null),(0,i._)([(0,l.Cb)({type:["color"],json:{type:["colorInfo"]}})],y.prototype,"type",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,i._)([(0,l.Cb)({type:[h.Z],json:{write:!0}})],y.prototype,"stops",null),y=c=(0,i._)([(0,o.j)("esri.renderers.visualVariables.ColorVariable")],y);const m=y;var f,b=s(96674),v=s(65242);let g=f=class extends b.wq{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,v.b)(t.transparency)}writeOpacity(e,t,s){t[s]=(0,v.a)(e)}clone(){return new f({label:this.label,opacity:this.opacity,value:this.value})}};(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],g.prototype,"label",void 0),(0,i._)([(0,l.Cb)({type:Number,json:{type:r.z8,write:{target:"transparency"}}})],g.prototype,"opacity",void 0),(0,i._)([(0,n.r)("opacity",["transparency"])],g.prototype,"readOpacity",null),(0,i._)([(0,a.c)("opacity")],g.prototype,"writeOpacity",null),(0,i._)([(0,l.Cb)({type:Number,json:{write:!0}})],g.prototype,"value",void 0),g=f=(0,i._)([(0,o.j)("esri.renderers.visualVariables.support.OpacityStop")],g);const w=g;var _;let V=_=class extends d.Z{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new _({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,i._)([(0,l.Cb)({readOnly:!0})],V.prototype,"cache",null),(0,i._)([(0,l.Cb)({type:["opacity"],json:{type:["transparencyInfo"]}})],V.prototype,"type",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],V.prototype,"normalizationField",void 0),(0,i._)([(0,l.Cb)({type:[w],json:{write:!0}})],V.prototype,"stops",null),V=_=(0,i._)([(0,o.j)("esri.renderers.visualVariables.OpacityVariable")],V);const S=V;var x=s(89513),C=s(23847),I=s(15923),j=s(35454),z=s(92604),q=s(20941);const F={color:m,size:C.Z,opacity:S,rotation:x.Z},E=new j.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),T=/^\[([^\]]+)\]$/i;let k=class extends I.Z{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),(e=e&&e.filter((e=>!!e)))&&e.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some((e=>!!e.target))&&e.sort(((e,t)=>{let s=null;return s=e.target===t.target?0:e.target?1:-1,s}));for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,s){const{rotationExpression:i,rotationType:l}=t,r=i&&i.match(T),n=r&&r[1];if(n&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:l,field:n})),e)return e.map((e=>{const t=E.read(e.type),i=F[t];i||(z.Z.getLogger(this.declaredClass).warn(`Unknown variable type: ${t}`),s&&s.messages&&s.messages.push(new q.Z("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:s})));const l=new i;return l.read(e,s),l}))}writeVariables(e,t){const s=[];for(const i of e){const e=i.toJSON(t);e&&s.push(e)}return s}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,i._)([(0,l.Cb)()],k.prototype,"visualVariables",null),k=(0,i._)([(0,o.j)("esri.renderers.visualVariables.VisualVariableFactory")],k);const Z=k,O={base:d.Z,key:"type",typeMap:{opacity:S,color:m,rotation:x.Z,size:C.Z}},D=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new Z}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,s){return this._vvFactory.readVariables(e,t,s)}writeVisualVariables(e,t,s,i){t[s]=this._vvFactory.writeVariables(e,i)}get arcadeRequiredForVisualVariables(){if(!this.visualVariables)return!1;for(const e of this.visualVariables)if(e.arcadeRequired)return!0;return!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){const s=this.visualVariables;return s?s.filter((s=>s.type===e&&("string"==typeof t?s.target===t:!1!==t||!s.target))):[]}async collectVVRequiredFields(e,t){let s=[];this.visualVariables&&(s=s.concat(this.visualVariables));for(const i of s)i&&(i.field&&(0,u.AB)(e,t,i.field),i.normalizationField&&(0,u.AB)(e,t,i.normalizationField),i.valueExpression&&(U(i.valueExpression,e,t)||await(0,u.io)(e,t,i.valueExpression)))}};return(0,i._)([(0,l.Cb)({types:[O],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,i._)([(0,n.r)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,i._)([(0,a.c)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,i._)([(0,o.j)("esri.renderers.mixins.VisualVariablesMixin")],t),t};function U(e,t,s){const i=(l=e,l.match(p)?.[1]?.replace(/\\'/g,"'")??null);var l;return null!=i&&((0,u.AB)(t,s,i),!0)}},69237:(e,t,s)=>{s.d(t,{Z:()=>T});var i,l=s(43697),r=s(35454),n=s(96674),o=s(22974),a=s(5600),u=s(75215),p=s(71715),c=s(52011);s(67676),s(80442);let d=i=class extends n.wq{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new i({minValue:this.minValue,maxValue:this.maxValue})}};var h;(0,l._)([(0,a.Cb)({type:Number,json:{write:!0}})],d.prototype,"minValue",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0}})],d.prototype,"maxValue",void 0),d=i=(0,l._)([(0,c.j)("esri.renderer.support.AuthoringInfoClassBreakInfo")],d);let y=h=class extends n.wq{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new h({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.d9)(this.classBreakInfos)})}};(0,l._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,l._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,l._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,l._)([(0,a.Cb)({type:[d],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=h=(0,l._)([(0,c.j)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var m,f=s(90578);const b=new r.X({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),v=new r.X({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),g={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},w=["high-to-low","above-and-below","centered-on","extremes"],_=[...new Set(["high-to-low","above-and-below","centered-on","extremes","90-10","above","below","high-to-low","above-and-below","90-10","above","below"])],V=["seconds","minutes","hours","days","months","years"];let S=m=class extends n.wq{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new m({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,l._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"endTime",void 0),(0,l._)([(0,f.p)("endTime")],S.prototype,"castEndTime",null),(0,l._)([(0,a.Cb)({type:String,json:{write:!0}})],S.prototype,"field",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"maxSliderValue",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"minSliderValue",void 0),(0,l._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"startTime",void 0),(0,l._)([(0,f.p)("startTime")],S.prototype,"castStartTime",null),(0,l._)([(0,a.Cb)({type:b.apiValues,value:null,json:{type:b.jsonValues,read:b.read,write:b.write}})],S.prototype,"style",null),(0,l._)([(0,a.Cb)({type:_,value:null,json:{type:_,origins:{"web-scene":{type:w,write:{writer:(e,t)=>{w.includes(e)&&(t.theme=e)}}}},write:!0}})],S.prototype,"theme",null),(0,l._)([(0,a.Cb)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],S.prototype,"type",void 0),(0,l._)([(0,a.Cb)({type:V,json:{type:V,write:!0}})],S.prototype,"units",void 0),S=m=(0,l._)([(0,c.j)("esri.renderers.support.AuthoringInfoVisualVariable")],S);const x=S;var C,I=s(94593);const j=new r.X({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),z=new r.X({pieChart:"pie-chart",classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),q=new r.X({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),F=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let E=C=class extends n.wq{constructor(e){super(e),this.colorRamp=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){return e?(0,I.i)(e):void 0}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new C({classificationMethod:this.classificationMethod,colorRamp:(0,o.d9)(this.colorRamp),fadeRatio:(0,o.d9)(this.fadeRatio),fields:this.fields&&this.fields.slice(0),field1:(0,o.d9)(this.field1),field2:(0,o.d9)(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map((e=>e.clone())),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,l._)([(0,a.Cb)({type:j.apiValues,value:null,json:{type:j.jsonValues,read:j.read,write:j.write,origins:{"web-document":{default:"manual",type:j.jsonValues,read:j.read,write:j.write}}}})],E.prototype,"classificationMethod",null),(0,l._)([(0,a.Cb)({types:I.V,json:{write:!0}})],E.prototype,"colorRamp",void 0),(0,l._)([(0,p.r)("colorRamp")],E.prototype,"readColorRamp",null),(0,l._)([(0,a.Cb)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"fadeRatio",void 0),(0,l._)([(0,a.Cb)({type:[String],value:null,json:{write:!0}})],E.prototype,"fields",null),(0,l._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],E.prototype,"field1",null),(0,l._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],E.prototype,"field2",null),(0,l._)([(0,a.Cb)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"flowTheme",null),(0,l._)([(0,a.Cb)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],E.prototype,"focus",null),(0,l._)([(0,a.Cb)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],E.prototype,"isAutoGenerated",void 0),(0,l._)([(0,a.Cb)({type:Number,value:null,json:{type:u.z8,write:!0}})],E.prototype,"numClasses",null),(0,l._)([(0,a.Cb)({type:F,json:{type:F,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],E.prototype,"lengthUnit",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"maxSliderValue",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"minSliderValue",void 0),(0,l._)([(0,a.Cb)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"statistics",null),(0,l._)([(0,a.Cb)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],E.prototype,"standardDeviationInterval",null),(0,l._)([(0,a.Cb)({type:z.apiValues,value:null,json:{type:z.jsonValues,read:z.read,write:z.write,origins:{"web-scene":{type:q.jsonValues,write:{writer:q.write,overridePolicy:e=>({enabled:"flow"!==e})}}}}})],E.prototype,"type",null),(0,l._)([(0,a.Cb)({type:[x],json:{write:!0}})],E.prototype,"visualVariables",void 0),(0,l._)([(0,a.Cb)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateSymbolStyle",null),(0,l._)([(0,a.Cb)({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateTheme",null),E=C=(0,l._)([(0,c.j)("esri.renderers.support.AuthoringInfo")],E);const T=E},32984:(e,t,s)=>{s.d(t,{Z:()=>p});var i,l=s(43697),r=s(96674),n=s(5600),o=(s(75215),s(67676),s(80442),s(52011)),a=s(9833);let u=i=class extends r.wq{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new i({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,n.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,l._)([(0,n.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,l._)([(0,n.Cb)(a.Gn)],u.prototype,"symbol",void 0),u=i=(0,l._)([(0,o.j)("esri.renderers.support.ClassBreakInfo")],u);const p=u},66338:(e,t,s)=>{s.d(t,{I:()=>a});var i,l=s(43697),r=s(96674),n=s(5600),o=(s(75215),s(67676),s(80442),s(52011));let a=i=class extends r.wq{constructor(){super(...arguments),this.title=null}clone(){return new i({title:this.title})}};(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=i=(0,l._)([(0,o.j)("esri.renderers.support.LegendOptions")],a)},44262:(e,t,s)=>{s.d(t,{Z:()=>p});var i,l=s(43697),r=s(96674),n=s(5600),o=(s(75215),s(67676),s(80442),s(52011)),a=s(9833);let u=i=class extends r.wq{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new i({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol&&this.symbol.toJSON());return`${this.value}.${e}`}};(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,n.Cb)(a.Gn)],u.prototype,"symbol",void 0),(0,l._)([(0,n.Cb)(a.GY)],u.prototype,"value",void 0),u=i=(0,l._)([(0,o.j)("esri.renderers.support.UniqueValueInfo")],u);const p=u},9833:(e,t,s)=>{s.d(t,{GY:()=>p,Gn:()=>a,KK:()=>u});var i=s(9790),l=s(63213),r=s(21878),n=s(89164),o=s(86114);const a={types:i.QT,json:{write:{writer:r.cW},origins:{"web-scene":{types:i.f_,write:{writer:r.cW},read:{reader:(0,l.d)({types:i.f_})}}}}},u={types:{base:n.Z,key:"type",typeMap:{"simple-fill":i.LB.typeMap["simple-fill"],"picture-fill":i.LB.typeMap["picture-fill"],"polygon-3d":i.LB.typeMap["polygon-3d"]}},json:{write:{writer:r.cW},origins:{"web-scene":{type:o.Z,write:{writer:r.cW}}}}},p={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}}},89513:(e,t,s)=>{s.d(t,{Z:()=>c});var i,l=s(43697),r=s(20102),n=s(5600),o=(s(75215),s(67676),s(80442),s(52011)),a=s(30556),u=s(77997);let p=i=class extends u.Z{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic",this.valueExpressionTitle=null}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}writeValueExpressionTitleWebScene(e,t,s,i){if(i&&i.messages){const e=`visualVariables[${this.index}]`;i.messages.push(new r.Z("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:e+".valueExpressionTitle",context:i}))}}clone(){return new i({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions&&this.legendOptions.clone()})}};(0,l._)([(0,n.Cb)({readOnly:!0})],p.prototype,"cache",null),(0,l._)([(0,n.Cb)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],p.prototype,"axis",void 0),(0,l._)([(0,n.Cb)({type:["rotation"],json:{type:["rotationInfo"]}})],p.prototype,"type",void 0),(0,l._)([(0,n.Cb)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],p.prototype,"rotationType",void 0),(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"valueExpressionTitle",void 0),(0,l._)([(0,a.c)("web-scene","valueExpressionTitle")],p.prototype,"writeValueExpressionTitleWebScene",null),p=i=(0,l._)([(0,o.j)("esri.renderers.visualVariables.RotationVariable")],p);const c=p},23847:(e,t,s)=>{s.d(t,{Z:()=>j});var i,l=s(43697),r=s(20102),n=s(35454),o=s(92604),a=s(62357),u=s(5600),p=s(90578),c=s(71715),d=s(52011),h=s(30556),y=s(77997),m=s(30856),f=(s(75215),s(67676),s(80442),s(58439));let b=i=class extends f.Z{constructor(){super(...arguments),this.customValues=null}clone(){return new i({title:this.title,showLegend:this.showLegend,customValues:this.customValues&&this.customValues.slice(0)})}};(0,l._)([(0,u.Cb)({type:[Number],json:{write:!0}})],b.prototype,"customValues",void 0),b=i=(0,l._)([(0,d.j)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],b);const v=b;var g,w=s(51706),_=s(28101);const V=new n.X({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new n.X({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});function x(e){if(null!=e)return"string"==typeof e||"number"==typeof e?(0,a.t_)(e):"size"===e.type?(0,w.iY)(e)?e:(delete(e={...e}).type,new I(e)):void 0}function C(e,t,s){if("object"!=typeof e)return e;const i=new I;return i.read(e,s),i}let I=g=class extends y.Z{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&_.B3.test(this.valueExpression)}}set expression(e){o.Z.getLogger(this.declaredClass).warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'."),"view.scale"===e?(this.valueExpression="$view.scale",this._set("expression",e)):this._set("expression",null)}set index(e){(0,w.iY)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,w.iY)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,w.PS)(this)}set maxDataValue(e){e&&this.stops&&(o.Z.getLogger(this.declaredClass).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(o.Z.getLogger(this.declaredClass).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return x(e)}readMaxSize(e,t,s){return C(e,0,s)}set minDataValue(e){e&&this.stops&&(o.Z.getLogger(this.declaredClass).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(o.Z.getLogger(this.declaredClass).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return x(e)}readMinSize(e,t,s){return C(e,0,s)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)):e&&(o.Z.getLogger(this.declaredClass).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,w.QW)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,s,i){if("$view.scale"===e){if(i&&i.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;i.messages.push(new r.Z("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:i}))}}else t[s]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new g({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,w.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,w.iY)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map((e=>e.clone())),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone()})}flipSizes(){if(this.transformationType===w.hL.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===w.hL.Stops){const e=this.stops;if(!e)return this;const t=e.map((e=>e.size)).reverse(),s=e.length;for(let i=0;i<s;i++)e[i].size=t[i];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,l._)([(0,u.Cb)({readOnly:!0})],I.prototype,"cache",null),(0,l._)([(0,u.Cb)({type:V.apiValues,json:{type:V.jsonValues,origins:{"web-map":{read:!1}},read:V.read,write:V.write}})],I.prototype,"axis",void 0),(0,l._)([(0,u.Cb)({type:String,value:null,json:{read:!1}})],I.prototype,"expression",null),(0,l._)([(0,u.Cb)()],I.prototype,"index",null),(0,l._)([(0,u.Cb)({type:String,readOnly:!0})],I.prototype,"inputValueType",null),(0,l._)([(0,u.Cb)({type:v,json:{write:!0}})],I.prototype,"legendOptions",void 0),(0,l._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"maxDataValue",null),(0,l._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"maxSize",null),(0,l._)([(0,p.p)("maxSize")],I.prototype,"castMaxSize",null),(0,l._)([(0,c.r)("maxSize")],I.prototype,"readMaxSize",null),(0,l._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"minDataValue",null),(0,l._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"minSize",null),(0,l._)([(0,p.p)("minSize")],I.prototype,"castMinSize",null),(0,l._)([(0,c.r)("minSize")],I.prototype,"readMinSize",null),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],I.prototype,"normalizationField",void 0),(0,l._)([(0,u.Cb)({readOnly:!0})],I.prototype,"arcadeRequired",null),(0,l._)([(0,u.Cb)({type:String})],I.prototype,"scaleBy",void 0),(0,l._)([(0,u.Cb)({type:[m.Z],value:null,json:{write:!0}})],I.prototype,"stops",null),(0,l._)([(0,u.Cb)({type:["outline"],json:{write:!0}})],I.prototype,"target",void 0),(0,l._)([(0,u.Cb)({type:String,readOnly:!0})],I.prototype,"transformationType",null),(0,l._)([(0,u.Cb)({type:["size"],json:{type:["sizeInfo"]}})],I.prototype,"type",void 0),(0,l._)([(0,u.Cb)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],I.prototype,"useSymbolValue",void 0),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],I.prototype,"valueExpression",void 0),(0,l._)([(0,c.r)("valueExpression",["valueExpression","expression"])],I.prototype,"readValueExpression",null),(0,l._)([(0,h.c)("web-scene","valueExpression")],I.prototype,"writeValueExpressionWebScene",null),(0,l._)([(0,u.Cb)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],I.prototype,"valueRepresentation",void 0),(0,l._)([(0,u.Cb)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],I.prototype,"valueUnit",void 0),(0,l._)([(0,c.r)("valueUnit")],I.prototype,"readValueUnit",null),I=g=(0,l._)([(0,d.j)("esri.renderers.visualVariables.SizeVariable")],I);const j=I},77997:(e,t,s)=>{s.d(t,{Z:()=>y});var i=s(43697),l=s(35454),r=s(96674),n=s(92604),o=s(5600),a=s(90578),u=s(52011),p=s(75215),c=s(58439);const d=new l.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let h=class extends r.wq{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(n.Z.getLogger(this.declaredClass).error(".field: field must be a string value"),null):(0,p.Zs)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,i._)([(0,o.Cb)()],h.prototype,"index",void 0),(0,i._)([(0,o.Cb)({type:d.apiValues,readOnly:!0,json:{read:d.read,write:d.write}})],h.prototype,"type",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"field",void 0),(0,i._)([(0,a.p)("field")],h.prototype,"castField",null),(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"valueExpression",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"valueExpressionTitle",void 0),(0,i._)([(0,o.Cb)({readOnly:!0})],h.prototype,"arcadeRequired",null),(0,i._)([(0,o.Cb)({type:c.Z,json:{write:!0}})],h.prototype,"legendOptions",void 0),h=(0,i._)([(0,u.j)("esri.renderers.visualVariables.VisualVariable")],h);const y=h},21849:(e,t,s)=>{s.d(t,{Z:()=>d});var i,l=s(43697),r=s(22303),n=s(96674),o=s(5600),a=s(75215),u=(s(67676),s(80442),s(52011)),p=s(30556);let c=i=class extends n.wq{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,s){t[s]=e??0}clone(){return new i({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,l._)([(0,o.Cb)({type:r.Z,json:{type:[a.z8],write:!0}})],c.prototype,"color",void 0),(0,l._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,l._)([(0,o.Cb)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"value",void 0),(0,l._)([(0,p.c)("value")],c.prototype,"writeValue",null),c=i=(0,l._)([(0,u.j)("esri.renderers.visualVariables.support.ColorStop")],c);const d=c},30856:(e,t,s)=>{s.d(t,{Z:()=>p});var i,l=s(43697),r=s(96674),n=s(62357),o=s(5600),a=(s(75215),s(67676),s(80442),s(52011));let u=i=class extends r.wq{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new i({label:this.label,size:this.size,value:this.value})}};(0,l._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,o.Cb)({type:Number,cast:n.t_,json:{write:!0}})],u.prototype,"size",void 0),(0,l._)([(0,o.Cb)({type:Number,json:{write:!0}})],u.prototype,"value",void 0),u=i=(0,l._)([(0,a.j)("esri.renderers.visualVariables.support.SizeStop")],u);const p=u},58439:(e,t,s)=>{s.d(t,{Z:()=>u});var i,l=s(43697),r=s(5600),n=(s(75215),s(67676),s(80442),s(52011)),o=s(66338);let a=i=class extends o.I{constructor(){super(...arguments),this.showLegend=null}clone(){return new i({title:this.title,showLegend:this.showLegend})}};(0,l._)([(0,r.Cb)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),a=i=(0,l._)([(0,n.j)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},28101:(e,t,s)=>{s.d(t,{B3:()=>p,PR:()=>m,cM:()=>c}),s(22303);var i=s(38171),l=s(74085),r=s(92604),n=s(99282),o=s(51706);const a=r.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=(new i.Z,Math.PI),p=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function c(e,t,s){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"rotation"===e.type)):e;if(!i)return;if("esri.renderers.visualVariables.RotationVariable"!==i.declaredClass)return void a.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const l=i.axis||"heading",r="heading"===l&&"arithmetic"===i.rotationType?90:0,n="heading"===l&&"arithmetic"===i.rotationType?-1:1,o="number"==typeof t?null:t,u=o&&o.attributes,p=i.field,{hasExpression:c}=i.cache;let d=i.cache.compiledFunc,h=0;if(!p&&!c)return h;if(c){if(null==s||null==s.arcade)return void a.error("Use of arcade expressions requires an arcade context");const e={viewingMode:s.viewingMode,scale:s.scale,spatialReference:s.spatialReference},t=s.arcade.arcadeUtils,l=t.getViewInfo(e),r=t.createExecContext(o,l);if(!d){const e=t.createSyntaxTree(i.valueExpression);d=t.createFunction(e),i.cache.compiledFunc=d}h=t.executeFunction(d,r)}else u&&(h=u[p]||0);return h="number"!=typeof h||isNaN(h)?null:r+n*h,h}function d(e,t,s){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"size"===e.type)):e;if(!i)return;if("esri.renderers.visualVariables.SizeVariable"!==i.declaredClass)return void a.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const l=function(e,t,s,i,l){switch(t.transformationType){case o.hL.Additive:return function(e,t,s,i){return e+((h(t.minSize,s,i)||t.minDataValue)??0)}(e,t,s,i);case o.hL.Constant:return function(e,t,s){const i=e.stops;let l=i&&i.length&&i[0].size;return null==l&&(l=e.minSize),h(l,t,s)}(t,s,i);case o.hL.ClampedLinear:return function(e,t,s,i){const l=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),r=h(t.minSize,s,i),n=h(t.maxSize,s,i),o=null!=i?i.shape:void 0;if(e<=t.minDataValue)return r;if(e>=t.maxDataValue)return n;if(null==r||null==n)return null;if("area"===t.scaleBy&&o){const e="circle"===o,t=e?u*(r/2)**2:r*r,s=t+l*((e?u*(n/2)**2:n*n)-t);return e?2*Math.sqrt(s/u):Math.sqrt(s)}return r+l*(n-r)}(e,t,s,i);case o.hL.Proportional:return function(e,t,s,i){const l=null!=i?i.shape:void 0,r=e/t.minDataValue,n=h(t.minSize,s,i),o=h(t.maxSize,s,i);let a=null;return a="circle"===l?2*Math.sqrt(r*(n/2)**2):"square"===l||"diamond"===l||"image"===l?Math.sqrt(r*n**2):r*n,y(a,n,o)}(e,t,s,i);case o.hL.Stops:return function(e,t,s,i,l){const[r,n,o]=function(e,t){if(!t)return;let s=0,i=t.length-1;return t.some(((t,l)=>e<t?(i=l,!0):(s=l,!1))),[s,i,(e-t[s])/(t[i]-t[s])]}(e,l);if(r===n)return h(t.stops?.[r].size,s,i);{const e=h(t.stops?.[r].size,s,i);return e+(h(t.stops?.[n].size,s,i)-e)*o}}(e,t,s,i,l);case o.hL.RealWorldSize:return function(e,t,s,i){const l=(null!=i&&i.resolution?i.resolution:1)*n.a[t.valueUnit],r=h(t.minSize,s,i),o=h(t.maxSize,s,i),{valueRepresentation:a}=t;let p=null;return p="area"===a?2*Math.sqrt(e/u)/l:"radius"===a||"distance"===a?2*e/l:e/l,y(p,r,o)}(e,t,s,i);case o.hL.Identity:return e;case o.hL.Unknown:return null}}(function(e,t,s){const i="number"==typeof t,l=i?null:t,r=l&&l.attributes;let n=i?t:null;const{isScaleDriven:u}=e.cache;let p=e.cache.compiledFunc;if(u){const t=null!=s?s.scale:void 0,i=null!=s?s.view:void 0;n=null==t||"3d"===i?function(e){let t=null,s=null;const i=e.stops;return i?(t=i[0].value,s=i[i.length-1].value):(t=e.minDataValue||0,s=e.maxDataValue||0),(t+s)/2}(e):t}else if(!i)switch(e.inputValueType){case o.RY.Expression:{if(null==s||null==s.arcade)return void a.error("Use of arcade expressions requires an arcade context");const t={viewingMode:s.viewingMode,scale:s.scale,spatialReference:s.spatialReference},i=s.arcade.arcadeUtils,r=i.getViewInfo(t),o=i.createExecContext(l,r);if(!p){const t=i.createSyntaxTree(e.valueExpression);p=i.createFunction(t),e.cache.compiledFunc=p}n=i.executeFunction(p,o);break}case o.RY.Field:r&&(n=r[e.field]);break;case o.RY.Unknown:n=null}if(!(0,o.qh)(n))return null;if(i||!e.normalizationField)return n;const c=r?parseFloat(r[e.normalizationField]):null;return(0,o.qh)(c)&&0!==c?n/c:null}(i,t,s),i,t,s,i.cache.ipData);return null==l||isNaN(l)?0:l}function h(e,t,s){return null==e?null:(0,o.iY)(e)?d(e,t,s):(0,o.qh)(e)?e:null}function y(e,t,s){return(0,o.qh)(s)&&e>s?s:(0,o.qh)(t)&&e<t?t:e}function m(e,t,s){const i=["proportional","proportional","proportional"];for(const r of e){const e=r.useSymbolValue?"symbol-value":d(r,t,s);switch(r.axis){case"width":i[0]=e;break;case"depth":i[1]=e;break;case"height":i[2]=e;break;case"width-and-depth":i[0]=e,i[1]=e;break;case"all":case void 0:case null:i[0]=e,i[1]=e,i[2]=e;break;default:(0,l.Bg)(r.axis)}}return i}},98046:(e,t,s)=>{s.d(t,{Z:()=>h});var i,l=s(43697),r=s(22303),n=s(22974),o=s(5600),a=s(75215),u=s(36030),p=s(52011),c=s(899);let d=i=class extends c.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new i({fromColor:(0,n.d9)(this.fromColor),toColor:(0,n.d9)(this.toColor),algorithm:this.algorithm})}};(0,l._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],d.prototype,"algorithm",void 0),(0,l._)([(0,o.Cb)({type:r.Z,json:{type:[a.z8],write:!0}})],d.prototype,"fromColor",void 0),(0,l._)([(0,o.Cb)({type:r.Z,json:{type:[a.z8],write:!0}})],d.prototype,"toColor",void 0),(0,l._)([(0,o.Cb)({type:["algorithmic"]})],d.prototype,"type",void 0),d=i=(0,l._)([(0,p.j)("esri.rest.support.AlgorithmicColorRamp")],d);const h=d},899:(e,t,s)=>{s.d(t,{Z:()=>a});var i=s(43697),l=s(96674),r=s(5600),n=(s(75215),s(67676),s(80442),s(52011));let o=class extends l.wq{constructor(e){super(e),this.type=null}};(0,i._)([(0,r.Cb)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,i._)([(0,n.j)("esri.rest.support.ColorRamp")],o);const a=o},1515:(e,t,s)=>{s.d(t,{Z:()=>c});var i,l=s(43697),r=s(22974),n=s(5600),o=(s(75215),s(52011)),a=s(98046),u=s(899);let p=i=class extends u.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new i({colorRamps:(0,r.d9)(this.colorRamps)})}};(0,l._)([(0,n.Cb)({type:[a.Z],json:{write:!0}})],p.prototype,"colorRamps",void 0),(0,l._)([(0,n.Cb)({type:["multipart"]})],p.prototype,"type",void 0),p=i=(0,l._)([(0,o.j)("esri.rest.support.MultipartColorRamp")],p);const c=p},94593:(e,t,s)=>{s.d(t,{V:()=>n,i:()=>o});var i=s(98046),l=s(899),r=s(1515);const n={key:"type",base:l.Z,typeMap:{algorithmic:i.Z,multipart:r.Z}};function o(e){return e&&e.type?"algorithmic"===e.type?i.Z.fromJSON(e):"multipart"===e.type?r.Z.fromJSON(e):null:null}},72245:(e,t,s)=>{s.d(t,{K3:()=>l,Rx:()=>r});var i=s(80442);const l=()=>!!(0,i.Z)("enable-feature:force-wosr"),r=()=>!!(0,i.Z)("enable-feature:SceneLayer-editing");((e="i3s-patching")=>{switch(i.Z.add("enable-i3s-patching",!1,!0,!0),i.Z.add("enable-feature:direct-3d-object-feature-layer-display",!1,!0,!0),i.Z.add("enable-feature:SceneLayer-editing",!0,!0,!0),e){case"feature-layer-view":i.Z.add("enable-feature:direct-3d-object-feature-layer-display",!0,!0,!0);break;case"i3s-patching":i.Z.add("enable-i3s-patching",!0,!0,!0)}})("i3s-patching")},21878:(e,t,s)=>{s.d(t,{im:()=>x,cW:()=>w,vX:()=>_});var i=s(9790),l=s(20102),r=s(84230),n=s(87223),o=s(59390),a=s(42143),u=s(4095),p=s(98587),c=s(77987),d=s(37898),h=s(20256),y=s(3456),m=s(86114),f=s(78724),b=s(20825);const v={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function g(e,t=v){if(!e)return{symbol:null};const{retainId:s=v.retainId,ignoreDrivers:r=v.ignoreDrivers,hasLabelingContext:n=v.hasLabelingContext,retainCIM:g=v.retainCIM}=t;let w=null;if((0,i.dU)(e)||e instanceof o.Z)w=e.clone();else if("cim"===e.type){const t=e.data?.symbol?.type;if("CIMPointSymbol"!==t)return{error:new l.Z("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${t||"unknown"}' is unsupported in 3D`,{symbol:e})};w=g?e.clone():a.Z.fromCIMSymbol(e)}else if(e instanceof u.Z)w=p.Z.fromSimpleLineSymbol(e);else if(e instanceof c.Z)w=a.Z.fromSimpleMarkerSymbol(e);else if(e instanceof d.Z)w=a.Z.fromPictureMarkerSymbol(e);else if(e instanceof h.Z)w=t.geometryType&&"mesh"===t.geometryType?y.Z.fromSimpleFillSymbol(e):m.Z.fromSimpleFillSymbol(e);else{if(!(e instanceof f.Z))return{error:new l.Z("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};w=n?b.Z.fromTextSymbol(e):a.Z.fromTextSymbol(e)}return s&&w&&"cim"!==w.type&&(w.id=e.id),r&&(0,i.dU)(w)&&w.symbolLayers.forEach((e=>e.ignoreDrivers=!0)),{symbol:w}}function w(e,t,s,i){const l=S(e,{},{context:i,isLabelSymbol:!1});null!=l&&(t[s]=l)}function _(e,t,s,i){const l=S(e,{},{context:i,isLabelSymbol:!0});null!=l&&(t[s]=l)}function V(e){return e instanceof n.Z||e instanceof o.Z}function S(e,t,s){if(null==e)return null;const{context:i,isLabelSymbol:n}=s,o=i?.origin,a=i?.messages;if("web-scene"===o&&!V(e)){const s=g(e,{retainCIM:!0,hasLabelingContext:n});return null!=s.symbol?s.symbol.write(t,i):(a?.push(new l.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:i,error:s.error})),null)}return("web-map"===o||"portal-item"===o&&!(0,r.A2)(i?.layer))&&V(e)?(a?.push(new l.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:e,context:i})),null):e.write(t,i)}function x(e,t){return(0,i.S9)(e,null,t)}},27883:(e,t,s)=>{s.d(t,{EJ:()=>y,KV:()=>d,n2:()=>c,v9:()=>h,wm:()=>b});var i=s(3172),l=s(20102),r=s(95330),n=s(17452),o=s(65587),a=s(41253),u=s(72245);let p={};function c(e,t,s){return e&&null!=e.styleUrl?async function(e,t){try{return{data:(await y(e,t)).data,baseUrl:(0,n.Yd)(e),styleUrl:e}}catch(e){return(0,r.r9)(e),null}}(e.styleUrl,s):e&&null!=e.styleName?function(e,t,s){const i=null!=t.portal?t.portal:o.Z.getDefault();let r;const n=`${i.url} - ${i.user&&i.user.username} - ${e}`;return p[n]||(p[n]=function(e,t,s){return t.load(s).then((()=>{const i=new a.Z({disableExtraQuery:!0,query:`owner:${m} AND type:${f} AND typekeywords:"${e}"`});return t.queryItems(i,s)})).then((({results:t})=>{let i=null;const r=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t){const t=e.typeKeywords?.some((e=>e.toLowerCase()===r));if(t&&e.type===f&&e.owner===m){i=e;break}}if(!i)throw new l.Z("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return i.load(s)}))}(e,i,s).then((e=>(r=e,e.fetchData()))).then((t=>({data:t,baseUrl:r.itemUrl??"",styleName:e})))),p[n]}(e.styleName,t,s):Promise.reject(new l.Z("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function d(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function h(e,t){if("cimRef"===t)return e.cimRef;if(e.formatInfos&&!(0,u.K3)())for(const t of e.formatInfos)if("gltf"===t.type)return t.href;return e.webRef}function y(e,t){const s={responseType:"json",query:{f:"json"},...t};return(0,i.default)((0,n.Fv)(e),s)}const m="esri_en",f="Style",b="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8244],{38171:(e,t,s)=>{s.d(t,{Z:()=>m});var i=s(43697),l=s(66577),r=s(51773),n=s(9790),o=s(2368),a=s(96674),u=s(99001),p=s(5600),c=(s(75215),s(67676),s(80442),s(52011)),d=s(33955);function h(e){if(null==e)return null;const t={};for(const s in e){const i=e[s];i&&(t[s]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let y=class extends((0,o.J)(a.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,u.D)(),configurable:!0})}normalizeCtorArgs(e,t,s,i){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:s,popupTemplate:i}}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const s=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",s,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:h(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(){null!=this.geometry&&"mesh"===this.geometry.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform)}_notifyLayer(e,t,s,i){if(!this.layer||!("graphicChanged"in this.layer))return;const l={graphic:this,property:e,oldValue:t,newValue:s};"attributes"===e&&(l.attributeName=i),this.layer.graphicChanged(l)}};(0,i._)([(0,p.Cb)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const s in e){const i=(0,d.im)(e[s]);i&&(t[s]=i)}return 0!==Object.keys(t).length?t:null}}})],y.prototype,"aggregateGeometries",null),(0,i._)([(0,p.Cb)({value:null})],y.prototype,"attributes",null),(0,i._)([(0,p.Cb)({value:null,types:l.qM,json:{read:d.im}})],y.prototype,"geometry",null),(0,i._)([(0,p.Cb)({type:Boolean})],y.prototype,"isAggregate",void 0),(0,i._)([(0,p.Cb)({clonable:"reference"})],y.prototype,"layer",void 0),(0,i._)([(0,p.Cb)({type:r.Z})],y.prototype,"popupTemplate",void 0),(0,i._)([(0,p.Cb)({clonable:"reference"})],y.prototype,"sourceLayer",void 0),(0,i._)([(0,p.Cb)({value:null,types:n.LB})],y.prototype,"symbol",null),(0,i._)([(0,p.Cb)({type:Boolean,value:!0})],y.prototype,"visible",null),y=(0,i._)([(0,c.j)("esri.Graphic")],y),(y||(y={})).generateUID=u.D;const m=y},74085:(e,t,s)=>{function i(e){}s.d(t,{Bg:()=>i}),s(80442)},16050:(e,t,s)=>{s.d(t,{Z:()=>z});var i,l=s(43697),r=s(9790),n=s(35454),o=s(22974),a=s(92604),u=s(5600),p=s(90578),c=s(36030),d=s(71715),h=s(52011),y=s(30556),m=s(75215),f=s(35671),b=s(5499),v=s(41733),g=s(32984),w=s(9833),_=s(66338),V=s(59266);const S="percent-of-total",x="field",C=new n.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:S,esriNormalizeByField:x}),I=(0,m.se)(g.Z);let j=i=class extends((0,v.W)(b.Z)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,s){if(!Array.isArray(e))return;let i=t.minValue;return e.map((e=>{const t=new g.Z;return t.read(e,s),null==t.minValue&&(t.minValue=i),null==t.maxValue&&(t.maxValue=t.minValue),i=t.maxValue,t}))}writeClassBreakInfos(e,t,s,i){const l=e.map((e=>e.write({},i)));this._areClassBreaksConsecutive()&&l.forEach((e=>delete e.classMinValue)),t[s]=l}castField(e){return null==e?e:"function"==typeof e?(a.Z.getLogger(this.declaredClass).error(".field: field must be a string value"),null):(0,m.Zs)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,s=null!=this.normalizationTotal;return t||s?(e=t&&x||s&&S||null,t&&s&&a.Z.getLogger(this.declaredClass).warn("warning: both normalizationField and normalizationTotal are set!")):e!==x&&e!==S||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,s){let i=null;i="number"==typeof e?new g.Z({minValue:e,maxValue:t,symbol:(0,r.se)(s)}):I((0,o.d9)(e)),this.classBreakInfos.push(i),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const s=this.classBreakInfos.length;for(let i=0;i<s;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]===e&&s[1]===t){this.classBreakInfos.splice(i,1);break}}}getBreakIndex(e,t){return!this.valueExpression||null!=t&&null!=t.arcade||a.Z.getLogger(this.declaredClass).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let s=t;!this.valueExpression||null!=t&&null!=t.arcade||(s={...s,arcade:await(0,V.LC)()});const i=this.getBreakIndex(e,s);return-1!==i?this.classBreakInfos[i]:null}getSymbol(e,t){if(this.valueExpression&&(null==t||null==t.arcade))return void a.Z.getLogger(this.declaredClass).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const s=this.getBreakIndex(e,t);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let s=t;if(this.valueExpression&&(null==t||null==t.arcade)){const e=await(0,V.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),s={...s,arcade:e}}const i=this.getBreakIndex(e,s);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}getSymbols(){const e=[];return this.classBreakInfos.forEach((t=>{t.symbol&&e.push(t.symbol)})),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),s=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${s}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new i({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol&&this.backgroundFillSymbol.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol&&this.defaultSymbol.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,o.d9)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,o.d9)(this.visualVariables),legendOptions:(0,o.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}async collectRequiredFields(e,t){const s=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(s)}async collectSymbolFields(e,t){const s=[...this.getSymbols().map((s=>s.collectRequiredFields(e,t))),(0,f.io)(e,t,this.valueExpression)];(0,f.AB)(e,t,this.field),(0,f.AB)(e,t,this.normalizationField),await Promise.all(s)}_getBreakIndexForExpression(e,t){const{viewingMode:s,scale:i,spatialReference:l,arcade:r}=t??{},{valueExpression:n}=this;let o=this._compiledValueExpression.valueExpression===n?this._compiledValueExpression.compiledFunction:null;const a=r.arcadeUtils;if(!o){const e=a.createSyntaxTree(n);o=a.createFunction(e),this._compiledValueExpression.compiledFunction=o}this._compiledValueExpression.valueExpression=n;const u=a.executeFunction(o,a.createExecContext(e,a.getViewInfo({viewingMode:s,scale:i,spatialReference:l})));return this._getBreakIndexfromInfos(u)}_getBreakIndexForField(e){const t=this.field,s=e.attributes,i=this.normalizationType;let l=parseFloat(s[t]);if(i){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?s[this.normalizationField]:void 0);if("log"===i)l=Math.log(l)*Math.LOG10E;else if(i!==S||null==e||isNaN(e)){if(i===x&&!isNaN(t)){if(isNaN(l)||isNaN(t))return-1;l/=t}}else l=l/e*100}return this._getBreakIndexfromInfos(l)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let s=0;s<this.classBreakInfos.length;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]<=e&&(t?e<=i[1]:e<i[1]))return s}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let s=1;s<t;s++)if(e[s-1].maxValue!==e[s].minValue)return!1;return!0}};(0,l._)([(0,u.Cb)(w.KK)],j.prototype,"backgroundFillSymbol",void 0),(0,l._)([(0,u.Cb)({type:[g.Z]})],j.prototype,"classBreakInfos",void 0),(0,l._)([(0,d.r)("classBreakInfos")],j.prototype,"readClassBreakInfos",null),(0,l._)([(0,y.c)("classBreakInfos")],j.prototype,"writeClassBreakInfos",null),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"defaultLabel",void 0),(0,l._)([(0,u.Cb)(w.Gn)],j.prototype,"defaultSymbol",void 0),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"field",void 0),(0,l._)([(0,p.p)("field")],j.prototype,"castField",null),(0,l._)([(0,u.Cb)({type:Boolean})],j.prototype,"isMaxInclusive",void 0),(0,l._)([(0,u.Cb)({type:_.I,json:{write:!0}})],j.prototype,"legendOptions",void 0),(0,l._)([(0,u.Cb)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],j.prototype,"minValue",null),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"normalizationField",void 0),(0,l._)([(0,u.Cb)({type:Number,cast:e=>(0,m.q9)(e),json:{write:!0}})],j.prototype,"normalizationTotal",void 0),(0,l._)([(0,u.Cb)({type:C.apiValues,value:null,json:{type:C.jsonValues,read:C.read,write:C.write}})],j.prototype,"normalizationType",null),(0,l._)([(0,c.J)({classBreaks:"class-breaks"})],j.prototype,"type",void 0),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"valueExpression",void 0),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"valueExpressionTitle",void 0),j=i=(0,l._)([(0,h.j)("esri.renderers.ClassBreaksRenderer")],j);const z=j},5499:(e,t,s)=>{s.d(t,{Z:()=>c});var i=s(43697),l=s(35454),r=s(96674),n=s(5600),o=(s(75215),s(67676),s(80442),s(52011)),a=s(69237);const u=new l.X({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let p=class extends r.wq{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,i._)([(0,n.Cb)({type:a.Z,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,i._)([(0,n.Cb)({type:u.apiValues,readOnly:!0,json:{type:u.jsonValues,read:!1,write:{writer:u.write,ignoreOrigin:!0}}})],p.prototype,"type",void 0),p=(0,i._)([(0,o.j)("esri.renderers.Renderer")],p);const c=p},81571:(e,t,s)=>{s.d(t,{Z:()=>$});var i=s(43697),l=s(9790),r=s(20102),n=s(22974),o=s(92604),a=s(78286),u=s(17445),p=s(5600),c=s(90578),d=s(36030),h=s(71715),y=s(52011),m=s(30556),f=s(22862),b=s(75215),v=s(35671),g=s(65587),w=s(5499),_=s(41733),V=s(9833),S=s(66338),x=s(2368),C=s(96674),I=s(67676);s(80442);let j=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,i._)([(0,p.Cb)(V.GY)],j.prototype,"value",void 0),(0,i._)([(0,p.Cb)(V.GY)],j.prototype,"value2",void 0),(0,i._)([(0,p.Cb)(V.GY)],j.prototype,"value3",void 0),j=(0,i._)([(0,y.j)("esri.renderers.support.UniqueValue")],j);const z=j;let q=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.values=null}castValues(e){if(null==e)return null;const t=typeof(e=Array.isArray(e)?e:[e])[0];return"string"===t||"number"===t?e.map((e=>new z({value:e}))):"object"===t?e[0]instanceof z?e:e.map((e=>new z(e))):null}};(0,i._)([(0,p.Cb)({type:String,json:{write:!0}})],q.prototype,"description",void 0),(0,i._)([(0,p.Cb)({type:String,json:{write:!0}})],q.prototype,"label",void 0),(0,i._)([(0,p.Cb)(V.Gn)],q.prototype,"symbol",void 0),(0,i._)([(0,p.Cb)({type:[z],json:{type:[[String]],read:{reader:e=>e?e.map((e=>new z({value:e[0],value2:e[1],value3:e[2]}))):null},write:{writer:(e,t)=>{const s=[];for(const t of e){const e=[t.value,t.value2,t.value3].filter(I.pC).map((e=>e.toString()));s.push(e)}t.values=s}}}})],q.prototype,"values",void 0),(0,i._)([(0,c.p)("values")],q.prototype,"castValues",null),q=(0,i._)([(0,y.j)("esri.renderers.support.UniqueValueClass")],q);const F=q;let E=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,i._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"heading",void 0),(0,i._)([(0,p.Cb)({type:[F],json:{write:!0}})],E.prototype,"classes",void 0),E=(0,i._)([(0,y.j)("esri.renderers.support.UniqueValueGroup")],E);const T=E;var k,Z=s(44262),O=s(59266),D=s(25929),U=s(27883),B=s(59390);const L="esri.renderers.UniqueValueRenderer",M=o.Z.getLogger(L),N="uvInfos-watcher",R="uvGroups-watcher",A=(0,b.se)(Z.Z);let G=k=class extends((0,_.W)(w.Z)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.orderByClassesEnabled=!1,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let s=!1;const i={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let l=0;l<t.length;l++){const r=e.find((e=>e.value===t[l].value));r?(0,f.Hg)(r,t[l])?(i.changed.push({type:"complete",oldValue:r,newValue:t[l]}),s=!0):i.unchanged.push({oldValue:r,newValue:t[l]}):(i.added.push(t[l]),s=!0)}for(let l=0;l<e.length;l++)t.find((t=>t.value===e[l].value))||(i.removed.push(e[l]),s=!0);return s?i:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return null==e||"function"==typeof e?e:(0,b.Zs)(e)}writeField(e,t,s,i){"string"==typeof e?t[s]=e:i&&i.messages?i.messages.push(new r.Z("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):M.error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,s){return s.portal||g.Z.getDefault()}readStyleOrigin(e,t,s){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,D.f)(t.styleUrl,s);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,s,i){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,D.t)(e.styleUrl,i))}set uniqueValueGroups(e){this.styleOrigin?M.error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?M.error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void M.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let s;s="object"==typeof e?A(e):new Z.Z({value:e,symbol:(0,l.se)(t)}),this.uniqueValueInfos?.push(s),this._valueInfoMap[s.value]=s,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void M.error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");const t=this.uniqueValueInfos;if(t)for(let s=0;s<t.length;s++)if(t[s].value===e+""){delete this._valueInfoMap[e],t.splice(s,1);break}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let s=t;return!this.valueExpression||null!=t&&null!=t.arcade||(s={...s,arcade:await(0,O.LC)()}),this._getUniqueValueInfo(e,s)}getSymbol(e,t){if(this.valueExpression&&(null==t||null==t.arcade))return void M.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const s=this._getUniqueValueInfo(e,t);return s&&s.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let s=t;if(this.valueExpression&&(null==s||null==s.arcade)){const e=await(0,O.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),s={...s,arcade:e}}const i=this._getUniqueValueInfo(e,s);return i&&i.symbol||this.defaultSymbol}getSymbols(){const e=[];for(const t of this.uniqueValueInfos??[])t.symbol&&e.push(t.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),s=this.uniqueValueInfos?.reduce(((e,t)=>e+t.getMeshHash()),"");return`${e}.${t}.${s}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new k({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,n.d9)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,n.d9)(this.visualVariables),legendOptions:(0,n.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),backgroundFillSymbol:(0,n.d9)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,n.d9)(this.uniqueValueInfos),s=(0,n.d9)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,n.d9)(this.styleOrigin))),Object.freeze(t),Object.freeze(s)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",s),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const s=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(s)}async collectSymbolFields(e,t){const s=[...this.getSymbols().map((s=>s.collectRequiredFields(e,t))),(0,v.io)(e,t,this.valueExpression)];(0,v.AB)(e,t,this.field),(0,v.AB)(e,t,this.field2),(0,v.AB)(e,t,this.field3),await Promise.all(s)}populateFromStyle(){return(0,U.n2)(this.styleOrigin,{portal:this.portal}).then((e=>{const t=[];return this._valueInfoMap={},e&&e.data&&Array.isArray(e.data.items)&&e.data.items.forEach((s=>{const i=new B.Z({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:s.name});this.defaultSymbol||s.name!==e.data.defaultItem||(this.defaultSymbol=i,this._isDefaultSymbolDerived=!0);const l=new Z.Z({value:s.name,symbol:i});t.push(l),this._valueInfoMap[s.name]=l})),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this}))}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const{uniqueValueInfos:e}=this;if(e)for(const t of e)this._valueInfoMap[t.value+""]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles(N);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const s of e)t.push((0,u.YP)((()=>({symbol:s.symbol,value:s.value,label:s.label,description:s.description})),((e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)}),{sync:!0}));this.addHandles(t,N)}}_watchUniqueValueGroups(){this.removeHandles(R);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const s of e){t.push((0,u.YP)((()=>({classes:s.classes})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}));for(const e of s.classes??[])t.push((0,u.YP)((()=>({symbol:e.symbol,values:e.values,label:e.label,description:e.description})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}))}this.addHandles(t,R)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:s,field3:i,fieldDelimiter:l,uniqueValueGroups:r,valueExpression:n}=this;if(!t&&!n)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const o=!(!t||!s);for(const t of r)for(const r of t.classes??[]){const{symbol:t,label:n,values:a,description:u}=r;for(const r of a??[]){const{value:a,value2:p,value3:c}=r,d=[a];s&&d.push(p),i&&d.push(c);const h=o?d.join(l||""):d[0];e.push(new Z.Z({symbol:t,label:n,value:h,description:u}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();const{field:t,field2:s,valueExpression:i,fieldDelimiter:l,uniqueValueInfos:r}=this;if(!t&&!i||!r.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const n=!(!t||!s),o=r.map((e=>{const{symbol:t,label:s,value:i,description:r}=e,[o,a,u]=n?i?.toString()?.split(l||"")||[]:[i];return new F({symbol:t,label:s,description:r,values:[new z({value:o,value2:a,value3:u})]})})),a=[new T({classes:o})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:s,scale:i,spatialReference:l,arcade:r}=t??{};let n=this._cache.compiledFunc;const o=r.arcadeUtils;if(!n){const e=o.createSyntaxTree(this.valueExpression);n=o.createFunction(e),this._cache.compiledFunc=n}const a=o.executeFunction(n,o.createExecContext(e,o.getViewInfo({viewingMode:s,scale:i,spatialReference:l})));return this._valueInfoMap[a+""]}_getUnqiueValueInfoForFields(e){const t=this.field,s=e.attributes;let i;if("function"!=typeof t&&this.field2){const e=this.field2,l=this.field3,r=[];t&&r.push(s[t]),e&&r.push(s[e]),l&&r.push(s[l]),i=r.join(this.fieldDelimiter||"")}else"function"==typeof t?i=t(e):t&&(i=s[t]);return this._valueInfoMap[i+""]}static fromPortalStyle(e,t){const s=new k(t&&t.properties);s._set("styleOrigin",Object.freeze({styleName:e})),s._set("portal",t&&t.portal||g.Z.getDefault());const i=s.populateFromStyle();return i.catch((t=>{M.error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)})),i}static fromStyleUrl(e,t){const s=new k(t&&t.properties);s._set("styleOrigin",Object.freeze({styleUrl:e}));const i=s.populateFromStyle();return i.catch((t=>{M.error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)})),i}};(0,i._)([(0,p.Cb)({readOnly:!0})],G.prototype,"_cache",null),(0,i._)([(0,d.J)({uniqueValue:"unique-value"})],G.prototype,"type",void 0),(0,i._)([(0,p.Cb)(V.KK)],G.prototype,"backgroundFillSymbol",void 0),(0,i._)([(0,p.Cb)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],G.prototype,"field",null),(0,i._)([(0,c.p)("field")],G.prototype,"castField",null),(0,i._)([(0,m.c)("field")],G.prototype,"writeField",null),(0,i._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],G.prototype,"field2",null),(0,i._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],G.prototype,"field3",null),(0,i._)([(0,p.Cb)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],G.prototype,"orderByClassesEnabled",void 0),(0,i._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],G.prototype,"valueExpression",null),(0,i._)([(0,p.Cb)({type:String,json:{write:!0}})],G.prototype,"valueExpressionTitle",void 0),(0,i._)([(0,p.Cb)({type:S.I,json:{write:!0}})],G.prototype,"legendOptions",void 0),(0,i._)([(0,p.Cb)({type:String,json:{write:!0}})],G.prototype,"defaultLabel",void 0),(0,i._)([(0,p.Cb)((0,a.RH)({...V.Gn},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],G.prototype,"defaultSymbol",null),(0,i._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],G.prototype,"fieldDelimiter",null),(0,i._)([(0,p.Cb)({type:g.Z,readOnly:!0})],G.prototype,"portal",void 0),(0,i._)([(0,h.r)("portal",["styleName"])],G.prototype,"readPortal",null),(0,i._)([(0,p.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],G.prototype,"styleOrigin",void 0),(0,i._)([(0,h.r)("styleOrigin",["styleName","styleUrl"])],G.prototype,"readStyleOrigin",null),(0,i._)([(0,m.c)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],G.prototype,"writeStyleOrigin",null),(0,i._)([(0,p.Cb)({type:[T],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,s)=>(t.uniqueValueGroups||function(e){const{field1:t,field2:s,field3:i,fieldDelimiter:l,uniqueValueInfos:r,valueExpression:n}=e,o=!(!t||!s);return[{classes:(r??[]).map((e=>{const{symbol:r,label:a,value:u,description:p}=e,[c,d,h]=o?u?.toString()?.split(l||"")||[]:[u],y=[];return(t||n)&&y.push(c),s&&y.push(d),i&&y.push(h),{symbol:r,label:a,values:[y],description:p}}))}]}(t)).map((e=>T.fromJSON(e,s)))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],G.prototype,"uniqueValueGroups",null),(0,i._)([(0,p.Cb)({type:[Z.Z],json:{read:!1,write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],G.prototype,"uniqueValueInfos",null),G=k=(0,i._)([(0,y.j)(L)],G);const $=G},41733:(e,t,s)=>{s.d(t,{W:()=>D});var i=s(43697),l=s(5600),r=s(75215),n=(s(67676),s(80442),s(71715)),o=s(52011),a=s(30556),u=s(35671);const p=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/;var c,d=s(77997),h=s(21849);let y=c=class extends d.Z{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new c({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,i._)([(0,l.Cb)({readOnly:!0})],y.prototype,"cache",null),(0,i._)([(0,l.Cb)({type:["color"],json:{type:["colorInfo"]}})],y.prototype,"type",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,i._)([(0,l.Cb)({type:[h.Z],json:{write:!0}})],y.prototype,"stops",null),y=c=(0,i._)([(0,o.j)("esri.renderers.visualVariables.ColorVariable")],y);const m=y;var f,b=s(96674),v=s(65242);let g=f=class extends b.wq{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,v.b)(t.transparency)}writeOpacity(e,t,s){t[s]=(0,v.a)(e)}clone(){return new f({label:this.label,opacity:this.opacity,value:this.value})}};(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],g.prototype,"label",void 0),(0,i._)([(0,l.Cb)({type:Number,json:{type:r.z8,write:{target:"transparency"}}})],g.prototype,"opacity",void 0),(0,i._)([(0,n.r)("opacity",["transparency"])],g.prototype,"readOpacity",null),(0,i._)([(0,a.c)("opacity")],g.prototype,"writeOpacity",null),(0,i._)([(0,l.Cb)({type:Number,json:{write:!0}})],g.prototype,"value",void 0),g=f=(0,i._)([(0,o.j)("esri.renderers.visualVariables.support.OpacityStop")],g);const w=g;var _;let V=_=class extends d.Z{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new _({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,i._)([(0,l.Cb)({readOnly:!0})],V.prototype,"cache",null),(0,i._)([(0,l.Cb)({type:["opacity"],json:{type:["transparencyInfo"]}})],V.prototype,"type",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],V.prototype,"normalizationField",void 0),(0,i._)([(0,l.Cb)({type:[w],json:{write:!0}})],V.prototype,"stops",null),V=_=(0,i._)([(0,o.j)("esri.renderers.visualVariables.OpacityVariable")],V);const S=V;var x=s(89513),C=s(23847),I=s(15923),j=s(35454),z=s(92604),q=s(20941);const F={color:m,size:C.Z,opacity:S,rotation:x.Z},E=new j.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),T=/^\[([^\]]+)\]$/i;let k=class extends I.Z{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),(e=e&&e.filter((e=>!!e)))&&e.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some((e=>!!e.target))&&e.sort(((e,t)=>{let s=null;return s=e.target===t.target?0:e.target?1:-1,s}));for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,s){const{rotationExpression:i,rotationType:l}=t,r=i&&i.match(T),n=r&&r[1];if(n&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:l,field:n})),e)return e.map((e=>{const t=E.read(e.type),i=F[t];i||(z.Z.getLogger(this.declaredClass).warn(`Unknown variable type: ${t}`),s&&s.messages&&s.messages.push(new q.Z("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:s})));const l=new i;return l.read(e,s),l}))}writeVariables(e,t){const s=[];for(const i of e){const e=i.toJSON(t);e&&s.push(e)}return s}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,i._)([(0,l.Cb)()],k.prototype,"visualVariables",null),k=(0,i._)([(0,o.j)("esri.renderers.visualVariables.VisualVariableFactory")],k);const Z=k,O={base:d.Z,key:"type",typeMap:{opacity:S,color:m,rotation:x.Z,size:C.Z}},D=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new Z}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,s){return this._vvFactory.readVariables(e,t,s)}writeVisualVariables(e,t,s,i){t[s]=this._vvFactory.writeVariables(e,i)}get arcadeRequiredForVisualVariables(){if(!this.visualVariables)return!1;for(const e of this.visualVariables)if(e.arcadeRequired)return!0;return!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){const s=this.visualVariables;return s?s.filter((s=>s.type===e&&("string"==typeof t?s.target===t:!1!==t||!s.target))):[]}async collectVVRequiredFields(e,t){let s=[];this.visualVariables&&(s=s.concat(this.visualVariables));for(const i of s)i&&(i.field&&(0,u.AB)(e,t,i.field),i.normalizationField&&(0,u.AB)(e,t,i.normalizationField),i.valueExpression&&(U(i.valueExpression,e,t)||await(0,u.io)(e,t,i.valueExpression)))}};return(0,i._)([(0,l.Cb)({types:[O],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,i._)([(0,n.r)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,i._)([(0,a.c)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,i._)([(0,o.j)("esri.renderers.mixins.VisualVariablesMixin")],t),t};function U(e,t,s){const i=(l=e,l.match(p)?.[1]?.replace(/\\'/g,"'")??null);var l;return null!=i&&((0,u.AB)(t,s,i),!0)}},69237:(e,t,s)=>{s.d(t,{Z:()=>T});var i,l=s(43697),r=s(35454),n=s(96674),o=s(22974),a=s(5600),u=s(75215),p=s(71715),c=s(52011);s(67676),s(80442);let d=i=class extends n.wq{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new i({minValue:this.minValue,maxValue:this.maxValue})}};var h;(0,l._)([(0,a.Cb)({type:Number,json:{write:!0}})],d.prototype,"minValue",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0}})],d.prototype,"maxValue",void 0),d=i=(0,l._)([(0,c.j)("esri.renderer.support.AuthoringInfoClassBreakInfo")],d);let y=h=class extends n.wq{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new h({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.d9)(this.classBreakInfos)})}};(0,l._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,l._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,l._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,l._)([(0,a.Cb)({type:[d],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=h=(0,l._)([(0,c.j)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var m,f=s(90578);const b=new r.X({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),v=new r.X({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),g={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},w=["high-to-low","above-and-below","centered-on","extremes"],_=[...new Set(["high-to-low","above-and-below","centered-on","extremes","90-10","above","below","high-to-low","above-and-below","90-10","above","below"])],V=["seconds","minutes","hours","days","months","years"];let S=m=class extends n.wq{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new m({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,l._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"endTime",void 0),(0,l._)([(0,f.p)("endTime")],S.prototype,"castEndTime",null),(0,l._)([(0,a.Cb)({type:String,json:{write:!0}})],S.prototype,"field",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"maxSliderValue",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"minSliderValue",void 0),(0,l._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"startTime",void 0),(0,l._)([(0,f.p)("startTime")],S.prototype,"castStartTime",null),(0,l._)([(0,a.Cb)({type:b.apiValues,value:null,json:{type:b.jsonValues,read:b.read,write:b.write}})],S.prototype,"style",null),(0,l._)([(0,a.Cb)({type:_,value:null,json:{type:_,origins:{"web-scene":{type:w,write:{writer:(e,t)=>{w.includes(e)&&(t.theme=e)}}}},write:!0}})],S.prototype,"theme",null),(0,l._)([(0,a.Cb)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],S.prototype,"type",void 0),(0,l._)([(0,a.Cb)({type:V,json:{type:V,write:!0}})],S.prototype,"units",void 0),S=m=(0,l._)([(0,c.j)("esri.renderers.support.AuthoringInfoVisualVariable")],S);const x=S;var C,I=s(94593);const j=new r.X({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),z=new r.X({pieChart:"pie-chart",classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),q=new r.X({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),F=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let E=C=class extends n.wq{constructor(e){super(e),this.colorRamp=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){return e?(0,I.i)(e):void 0}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new C({classificationMethod:this.classificationMethod,colorRamp:(0,o.d9)(this.colorRamp),fadeRatio:(0,o.d9)(this.fadeRatio),fields:this.fields&&this.fields.slice(0),field1:(0,o.d9)(this.field1),field2:(0,o.d9)(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map((e=>e.clone())),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,l._)([(0,a.Cb)({type:j.apiValues,value:null,json:{type:j.jsonValues,read:j.read,write:j.write,origins:{"web-document":{default:"manual",type:j.jsonValues,read:j.read,write:j.write}}}})],E.prototype,"classificationMethod",null),(0,l._)([(0,a.Cb)({types:I.V,json:{write:!0}})],E.prototype,"colorRamp",void 0),(0,l._)([(0,p.r)("colorRamp")],E.prototype,"readColorRamp",null),(0,l._)([(0,a.Cb)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"fadeRatio",void 0),(0,l._)([(0,a.Cb)({type:[String],value:null,json:{write:!0}})],E.prototype,"fields",null),(0,l._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],E.prototype,"field1",null),(0,l._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],E.prototype,"field2",null),(0,l._)([(0,a.Cb)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"flowTheme",null),(0,l._)([(0,a.Cb)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],E.prototype,"focus",null),(0,l._)([(0,a.Cb)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],E.prototype,"isAutoGenerated",void 0),(0,l._)([(0,a.Cb)({type:Number,value:null,json:{type:u.z8,write:!0}})],E.prototype,"numClasses",null),(0,l._)([(0,a.Cb)({type:F,json:{type:F,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],E.prototype,"lengthUnit",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"maxSliderValue",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"minSliderValue",void 0),(0,l._)([(0,a.Cb)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"statistics",null),(0,l._)([(0,a.Cb)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],E.prototype,"standardDeviationInterval",null),(0,l._)([(0,a.Cb)({type:z.apiValues,value:null,json:{type:z.jsonValues,read:z.read,write:z.write,origins:{"web-scene":{type:q.jsonValues,write:{writer:q.write,overridePolicy:e=>({enabled:"flow"!==e})}}}}})],E.prototype,"type",null),(0,l._)([(0,a.Cb)({type:[x],json:{write:!0}})],E.prototype,"visualVariables",void 0),(0,l._)([(0,a.Cb)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateSymbolStyle",null),(0,l._)([(0,a.Cb)({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateTheme",null),E=C=(0,l._)([(0,c.j)("esri.renderers.support.AuthoringInfo")],E);const T=E},32984:(e,t,s)=>{s.d(t,{Z:()=>p});var i,l=s(43697),r=s(96674),n=s(5600),o=(s(75215),s(67676),s(80442),s(52011)),a=s(9833);let u=i=class extends r.wq{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new i({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,n.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,l._)([(0,n.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,l._)([(0,n.Cb)(a.Gn)],u.prototype,"symbol",void 0),u=i=(0,l._)([(0,o.j)("esri.renderers.support.ClassBreakInfo")],u);const p=u},66338:(e,t,s)=>{s.d(t,{I:()=>a});var i,l=s(43697),r=s(96674),n=s(5600),o=(s(75215),s(67676),s(80442),s(52011));let a=i=class extends r.wq{constructor(){super(...arguments),this.title=null}clone(){return new i({title:this.title})}};(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=i=(0,l._)([(0,o.j)("esri.renderers.support.LegendOptions")],a)},44262:(e,t,s)=>{s.d(t,{Z:()=>p});var i,l=s(43697),r=s(96674),n=s(5600),o=(s(75215),s(67676),s(80442),s(52011)),a=s(9833);let u=i=class extends r.wq{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new i({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol&&this.symbol.toJSON());return`${this.value}.${e}`}};(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,n.Cb)(a.Gn)],u.prototype,"symbol",void 0),(0,l._)([(0,n.Cb)(a.GY)],u.prototype,"value",void 0),u=i=(0,l._)([(0,o.j)("esri.renderers.support.UniqueValueInfo")],u);const p=u},9833:(e,t,s)=>{s.d(t,{GY:()=>p,Gn:()=>a,KK:()=>u});var i=s(9790),l=s(63213),r=s(21878),n=s(89164),o=s(86114);const a={types:i.QT,json:{write:{writer:r.cW},origins:{"web-scene":{types:i.f_,write:{writer:r.cW},read:{reader:(0,l.d)({types:i.f_})}}}}},u={types:{base:n.Z,key:"type",typeMap:{"simple-fill":i.LB.typeMap["simple-fill"],"picture-fill":i.LB.typeMap["picture-fill"],"polygon-3d":i.LB.typeMap["polygon-3d"]}},json:{write:{writer:r.cW},origins:{"web-scene":{type:o.Z,write:{writer:r.cW}}}}},p={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}}},89513:(e,t,s)=>{s.d(t,{Z:()=>c});var i,l=s(43697),r=s(20102),n=s(5600),o=(s(75215),s(67676),s(80442),s(52011)),a=s(30556),u=s(77997);let p=i=class extends u.Z{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic",this.valueExpressionTitle=null}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}writeValueExpressionTitleWebScene(e,t,s,i){if(i&&i.messages){const e=`visualVariables[${this.index}]`;i.messages.push(new r.Z("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:e+".valueExpressionTitle",context:i}))}}clone(){return new i({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions&&this.legendOptions.clone()})}};(0,l._)([(0,n.Cb)({readOnly:!0})],p.prototype,"cache",null),(0,l._)([(0,n.Cb)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],p.prototype,"axis",void 0),(0,l._)([(0,n.Cb)({type:["rotation"],json:{type:["rotationInfo"]}})],p.prototype,"type",void 0),(0,l._)([(0,n.Cb)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],p.prototype,"rotationType",void 0),(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"valueExpressionTitle",void 0),(0,l._)([(0,a.c)("web-scene","valueExpressionTitle")],p.prototype,"writeValueExpressionTitleWebScene",null),p=i=(0,l._)([(0,o.j)("esri.renderers.visualVariables.RotationVariable")],p);const c=p},23847:(e,t,s)=>{s.d(t,{Z:()=>j});var i,l=s(43697),r=s(20102),n=s(35454),o=s(92604),a=s(62357),u=s(5600),p=s(90578),c=s(71715),d=s(52011),h=s(30556),y=s(77997),m=s(30856),f=(s(75215),s(67676),s(80442),s(58439));let b=i=class extends f.Z{constructor(){super(...arguments),this.customValues=null}clone(){return new i({title:this.title,showLegend:this.showLegend,customValues:this.customValues&&this.customValues.slice(0)})}};(0,l._)([(0,u.Cb)({type:[Number],json:{write:!0}})],b.prototype,"customValues",void 0),b=i=(0,l._)([(0,d.j)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],b);const v=b;var g,w=s(51706),_=s(28101);const V=new n.X({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new n.X({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});function x(e){if(null!=e)return"string"==typeof e||"number"==typeof e?(0,a.t_)(e):"size"===e.type?(0,w.iY)(e)?e:(delete(e={...e}).type,new I(e)):void 0}function C(e,t,s){if("object"!=typeof e)return e;const i=new I;return i.read(e,s),i}let I=g=class extends y.Z{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&_.B3.test(this.valueExpression)}}set expression(e){o.Z.getLogger(this.declaredClass).warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'."),"view.scale"===e?(this.valueExpression="$view.scale",this._set("expression",e)):this._set("expression",null)}set index(e){(0,w.iY)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,w.iY)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,w.PS)(this)}set maxDataValue(e){e&&this.stops&&(o.Z.getLogger(this.declaredClass).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(o.Z.getLogger(this.declaredClass).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return x(e)}readMaxSize(e,t,s){return C(e,0,s)}set minDataValue(e){e&&this.stops&&(o.Z.getLogger(this.declaredClass).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(o.Z.getLogger(this.declaredClass).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return x(e)}readMinSize(e,t,s){return C(e,0,s)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)):e&&(o.Z.getLogger(this.declaredClass).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,w.QW)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,s,i){if("$view.scale"===e){if(i&&i.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;i.messages.push(new r.Z("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:i}))}}else t[s]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new g({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,w.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,w.iY)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map((e=>e.clone())),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone()})}flipSizes(){if(this.transformationType===w.hL.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===w.hL.Stops){const e=this.stops;if(!e)return this;const t=e.map((e=>e.size)).reverse(),s=e.length;for(let i=0;i<s;i++)e[i].size=t[i];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,l._)([(0,u.Cb)({readOnly:!0})],I.prototype,"cache",null),(0,l._)([(0,u.Cb)({type:V.apiValues,json:{type:V.jsonValues,origins:{"web-map":{read:!1}},read:V.read,write:V.write}})],I.prototype,"axis",void 0),(0,l._)([(0,u.Cb)({type:String,value:null,json:{read:!1}})],I.prototype,"expression",null),(0,l._)([(0,u.Cb)()],I.prototype,"index",null),(0,l._)([(0,u.Cb)({type:String,readOnly:!0})],I.prototype,"inputValueType",null),(0,l._)([(0,u.Cb)({type:v,json:{write:!0}})],I.prototype,"legendOptions",void 0),(0,l._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"maxDataValue",null),(0,l._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"maxSize",null),(0,l._)([(0,p.p)("maxSize")],I.prototype,"castMaxSize",null),(0,l._)([(0,c.r)("maxSize")],I.prototype,"readMaxSize",null),(0,l._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"minDataValue",null),(0,l._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"minSize",null),(0,l._)([(0,p.p)("minSize")],I.prototype,"castMinSize",null),(0,l._)([(0,c.r)("minSize")],I.prototype,"readMinSize",null),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],I.prototype,"normalizationField",void 0),(0,l._)([(0,u.Cb)({readOnly:!0})],I.prototype,"arcadeRequired",null),(0,l._)([(0,u.Cb)({type:String})],I.prototype,"scaleBy",void 0),(0,l._)([(0,u.Cb)({type:[m.Z],value:null,json:{write:!0}})],I.prototype,"stops",null),(0,l._)([(0,u.Cb)({type:["outline"],json:{write:!0}})],I.prototype,"target",void 0),(0,l._)([(0,u.Cb)({type:String,readOnly:!0})],I.prototype,"transformationType",null),(0,l._)([(0,u.Cb)({type:["size"],json:{type:["sizeInfo"]}})],I.prototype,"type",void 0),(0,l._)([(0,u.Cb)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],I.prototype,"useSymbolValue",void 0),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],I.prototype,"valueExpression",void 0),(0,l._)([(0,c.r)("valueExpression",["valueExpression","expression"])],I.prototype,"readValueExpression",null),(0,l._)([(0,h.c)("web-scene","valueExpression")],I.prototype,"writeValueExpressionWebScene",null),(0,l._)([(0,u.Cb)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],I.prototype,"valueRepresentation",void 0),(0,l._)([(0,u.Cb)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],I.prototype,"valueUnit",void 0),(0,l._)([(0,c.r)("valueUnit")],I.prototype,"readValueUnit",null),I=g=(0,l._)([(0,d.j)("esri.renderers.visualVariables.SizeVariable")],I);const j=I},77997:(e,t,s)=>{s.d(t,{Z:()=>y});var i=s(43697),l=s(35454),r=s(96674),n=s(92604),o=s(5600),a=s(90578),u=s(52011),p=s(75215),c=s(58439);const d=new l.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let h=class extends r.wq{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(n.Z.getLogger(this.declaredClass).error(".field: field must be a string value"),null):(0,p.Zs)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,i._)([(0,o.Cb)()],h.prototype,"index",void 0),(0,i._)([(0,o.Cb)({type:d.apiValues,readOnly:!0,json:{read:d.read,write:d.write}})],h.prototype,"type",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"field",void 0),(0,i._)([(0,a.p)("field")],h.prototype,"castField",null),(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"valueExpression",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"valueExpressionTitle",void 0),(0,i._)([(0,o.Cb)({readOnly:!0})],h.prototype,"arcadeRequired",null),(0,i._)([(0,o.Cb)({type:c.Z,json:{write:!0}})],h.prototype,"legendOptions",void 0),h=(0,i._)([(0,u.j)("esri.renderers.visualVariables.VisualVariable")],h);const y=h},21849:(e,t,s)=>{s.d(t,{Z:()=>d});var i,l=s(43697),r=s(22303),n=s(96674),o=s(5600),a=s(75215),u=(s(67676),s(80442),s(52011)),p=s(30556);let c=i=class extends n.wq{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,s){t[s]=e??0}clone(){return new i({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,l._)([(0,o.Cb)({type:r.Z,json:{type:[a.z8],write:!0}})],c.prototype,"color",void 0),(0,l._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,l._)([(0,o.Cb)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"value",void 0),(0,l._)([(0,p.c)("value")],c.prototype,"writeValue",null),c=i=(0,l._)([(0,u.j)("esri.renderers.visualVariables.support.ColorStop")],c);const d=c},30856:(e,t,s)=>{s.d(t,{Z:()=>p});var i,l=s(43697),r=s(96674),n=s(62357),o=s(5600),a=(s(75215),s(67676),s(80442),s(52011));let u=i=class extends r.wq{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new i({label:this.label,size:this.size,value:this.value})}};(0,l._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,o.Cb)({type:Number,cast:n.t_,json:{write:!0}})],u.prototype,"size",void 0),(0,l._)([(0,o.Cb)({type:Number,json:{write:!0}})],u.prototype,"value",void 0),u=i=(0,l._)([(0,a.j)("esri.renderers.visualVariables.support.SizeStop")],u);const p=u},58439:(e,t,s)=>{s.d(t,{Z:()=>u});var i,l=s(43697),r=s(5600),n=(s(75215),s(67676),s(80442),s(52011)),o=s(66338);let a=i=class extends o.I{constructor(){super(...arguments),this.showLegend=null}clone(){return new i({title:this.title,showLegend:this.showLegend})}};(0,l._)([(0,r.Cb)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),a=i=(0,l._)([(0,n.j)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},28101:(e,t,s)=>{s.d(t,{B3:()=>p,PR:()=>m,cM:()=>c}),s(22303);var i=s(38171),l=s(74085),r=s(92604),n=s(99282),o=s(51706);const a=r.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=(new i.Z,Math.PI),p=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function c(e,t,s){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"rotation"===e.type)):e;if(!i)return;if("esri.renderers.visualVariables.RotationVariable"!==i.declaredClass)return void a.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const l=i.axis||"heading",r="heading"===l&&"arithmetic"===i.rotationType?90:0,n="heading"===l&&"arithmetic"===i.rotationType?-1:1,o="number"==typeof t?null:t,u=o&&o.attributes,p=i.field,{hasExpression:c}=i.cache;let d=i.cache.compiledFunc,h=0;if(!p&&!c)return h;if(c){if(null==s||null==s.arcade)return void a.error("Use of arcade expressions requires an arcade context");const e={viewingMode:s.viewingMode,scale:s.scale,spatialReference:s.spatialReference},t=s.arcade.arcadeUtils,l=t.getViewInfo(e),r=t.createExecContext(o,l);if(!d){const e=t.createSyntaxTree(i.valueExpression);d=t.createFunction(e),i.cache.compiledFunc=d}h=t.executeFunction(d,r)}else u&&(h=u[p]||0);return h="number"!=typeof h||isNaN(h)?null:r+n*h,h}function d(e,t,s){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"size"===e.type)):e;if(!i)return;if("esri.renderers.visualVariables.SizeVariable"!==i.declaredClass)return void a.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const l=function(e,t,s,i,l){switch(t.transformationType){case o.hL.Additive:return function(e,t,s,i){return e+((h(t.minSize,s,i)||t.minDataValue)??0)}(e,t,s,i);case o.hL.Constant:return function(e,t,s){const i=e.stops;let l=i&&i.length&&i[0].size;return null==l&&(l=e.minSize),h(l,t,s)}(t,s,i);case o.hL.ClampedLinear:return function(e,t,s,i){const l=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),r=h(t.minSize,s,i),n=h(t.maxSize,s,i),o=null!=i?i.shape:void 0;if(e<=t.minDataValue)return r;if(e>=t.maxDataValue)return n;if(null==r||null==n)return null;if("area"===t.scaleBy&&o){const e="circle"===o,t=e?u*(r/2)**2:r*r,s=t+l*((e?u*(n/2)**2:n*n)-t);return e?2*Math.sqrt(s/u):Math.sqrt(s)}return r+l*(n-r)}(e,t,s,i);case o.hL.Proportional:return function(e,t,s,i){const l=null!=i?i.shape:void 0,r=e/t.minDataValue,n=h(t.minSize,s,i),o=h(t.maxSize,s,i);let a=null;return a="circle"===l?2*Math.sqrt(r*(n/2)**2):"square"===l||"diamond"===l||"image"===l?Math.sqrt(r*n**2):r*n,y(a,n,o)}(e,t,s,i);case o.hL.Stops:return function(e,t,s,i,l){const[r,n,o]=function(e,t){if(!t)return;let s=0,i=t.length-1;return t.some(((t,l)=>e<t?(i=l,!0):(s=l,!1))),[s,i,(e-t[s])/(t[i]-t[s])]}(e,l);if(r===n)return h(t.stops?.[r].size,s,i);{const e=h(t.stops?.[r].size,s,i);return e+(h(t.stops?.[n].size,s,i)-e)*o}}(e,t,s,i,l);case o.hL.RealWorldSize:return function(e,t,s,i){const l=(null!=i&&i.resolution?i.resolution:1)*n.a[t.valueUnit],r=h(t.minSize,s,i),o=h(t.maxSize,s,i),{valueRepresentation:a}=t;let p=null;return p="area"===a?2*Math.sqrt(e/u)/l:"radius"===a||"distance"===a?2*e/l:e/l,y(p,r,o)}(e,t,s,i);case o.hL.Identity:return e;case o.hL.Unknown:return null}}(function(e,t,s){const i="number"==typeof t,l=i?null:t,r=l&&l.attributes;let n=i?t:null;const{isScaleDriven:u}=e.cache;let p=e.cache.compiledFunc;if(u){const t=null!=s?s.scale:void 0,i=null!=s?s.view:void 0;n=null==t||"3d"===i?function(e){let t=null,s=null;const i=e.stops;return i?(t=i[0].value,s=i[i.length-1].value):(t=e.minDataValue||0,s=e.maxDataValue||0),(t+s)/2}(e):t}else if(!i)switch(e.inputValueType){case o.RY.Expression:{if(null==s||null==s.arcade)return void a.error("Use of arcade expressions requires an arcade context");const t={viewingMode:s.viewingMode,scale:s.scale,spatialReference:s.spatialReference},i=s.arcade.arcadeUtils,r=i.getViewInfo(t),o=i.createExecContext(l,r);if(!p){const t=i.createSyntaxTree(e.valueExpression);p=i.createFunction(t),e.cache.compiledFunc=p}n=i.executeFunction(p,o);break}case o.RY.Field:r&&(n=r[e.field]);break;case o.RY.Unknown:n=null}if(!(0,o.qh)(n))return null;if(i||!e.normalizationField)return n;const c=r?parseFloat(r[e.normalizationField]):null;return(0,o.qh)(c)&&0!==c?n/c:null}(i,t,s),i,t,s,i.cache.ipData);return null==l||isNaN(l)?0:l}function h(e,t,s){return null==e?null:(0,o.iY)(e)?d(e,t,s):(0,o.qh)(e)?e:null}function y(e,t,s){return(0,o.qh)(s)&&e>s?s:(0,o.qh)(t)&&e<t?t:e}function m(e,t,s){const i=["proportional","proportional","proportional"];for(const r of e){const e=r.useSymbolValue?"symbol-value":d(r,t,s);switch(r.axis){case"width":i[0]=e;break;case"depth":i[1]=e;break;case"height":i[2]=e;break;case"width-and-depth":i[0]=e,i[1]=e;break;case"all":case void 0:case null:i[0]=e,i[1]=e,i[2]=e;break;default:(0,l.Bg)(r.axis)}}return i}},98046:(e,t,s)=>{s.d(t,{Z:()=>h});var i,l=s(43697),r=s(22303),n=s(22974),o=s(5600),a=s(75215),u=s(36030),p=s(52011),c=s(899);let d=i=class extends c.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new i({fromColor:(0,n.d9)(this.fromColor),toColor:(0,n.d9)(this.toColor),algorithm:this.algorithm})}};(0,l._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],d.prototype,"algorithm",void 0),(0,l._)([(0,o.Cb)({type:r.Z,json:{type:[a.z8],write:!0}})],d.prototype,"fromColor",void 0),(0,l._)([(0,o.Cb)({type:r.Z,json:{type:[a.z8],write:!0}})],d.prototype,"toColor",void 0),(0,l._)([(0,o.Cb)({type:["algorithmic"]})],d.prototype,"type",void 0),d=i=(0,l._)([(0,p.j)("esri.rest.support.AlgorithmicColorRamp")],d);const h=d},899:(e,t,s)=>{s.d(t,{Z:()=>a});var i=s(43697),l=s(96674),r=s(5600),n=(s(75215),s(67676),s(80442),s(52011));let o=class extends l.wq{constructor(e){super(e),this.type=null}};(0,i._)([(0,r.Cb)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,i._)([(0,n.j)("esri.rest.support.ColorRamp")],o);const a=o},1515:(e,t,s)=>{s.d(t,{Z:()=>c});var i,l=s(43697),r=s(22974),n=s(5600),o=(s(75215),s(52011)),a=s(98046),u=s(899);let p=i=class extends u.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new i({colorRamps:(0,r.d9)(this.colorRamps)})}};(0,l._)([(0,n.Cb)({type:[a.Z],json:{write:!0}})],p.prototype,"colorRamps",void 0),(0,l._)([(0,n.Cb)({type:["multipart"]})],p.prototype,"type",void 0),p=i=(0,l._)([(0,o.j)("esri.rest.support.MultipartColorRamp")],p);const c=p},94593:(e,t,s)=>{s.d(t,{V:()=>n,i:()=>o});var i=s(98046),l=s(899),r=s(1515);const n={key:"type",base:l.Z,typeMap:{algorithmic:i.Z,multipart:r.Z}};function o(e){return e&&e.type?"algorithmic"===e.type?i.Z.fromJSON(e):"multipart"===e.type?r.Z.fromJSON(e):null:null}},72245:(e,t,s)=>{s.d(t,{K3:()=>l,Rx:()=>r});var i=s(80442);const l=()=>!!(0,i.Z)("enable-feature:force-wosr"),r=()=>!!(0,i.Z)("enable-feature:SceneLayer-editing");((e="i3s-patching")=>{switch(i.Z.add("enable-i3s-patching",!1,!0,!0),i.Z.add("enable-feature:direct-3d-object-feature-layer-display",!1,!0,!0),i.Z.add("enable-feature:SceneLayer-editing",!0,!0,!0),e){case"feature-layer-view":i.Z.add("enable-feature:direct-3d-object-feature-layer-display",!0,!0,!0);break;case"i3s-patching":i.Z.add("enable-i3s-patching",!0,!0,!0)}})("i3s-patching")},21878:(e,t,s)=>{s.d(t,{im:()=>x,cW:()=>w,vX:()=>_});var i=s(9790),l=s(20102),r=s(84230),n=s(87223),o=s(59390),a=s(42143),u=s(4095),p=s(98587),c=s(77987),d=s(37898),h=s(20256),y=s(3456),m=s(86114),f=s(78724),b=s(20825);const v={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function g(e,t=v){if(!e)return{symbol:null};const{retainId:s=v.retainId,ignoreDrivers:r=v.ignoreDrivers,hasLabelingContext:n=v.hasLabelingContext,retainCIM:g=v.retainCIM}=t;let w=null;if((0,i.dU)(e)||e instanceof o.Z)w=e.clone();else if("cim"===e.type){const t=e.data?.symbol?.type;if("CIMPointSymbol"!==t)return{error:new l.Z("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${t||"unknown"}' is unsupported in 3D`,{symbol:e})};w=g?e.clone():a.Z.fromCIMSymbol(e)}else if(e instanceof u.Z)w=p.Z.fromSimpleLineSymbol(e);else if(e instanceof c.Z)w=a.Z.fromSimpleMarkerSymbol(e);else if(e instanceof d.Z)w=a.Z.fromPictureMarkerSymbol(e);else if(e instanceof h.Z)w=t.geometryType&&"mesh"===t.geometryType?y.Z.fromSimpleFillSymbol(e):m.Z.fromSimpleFillSymbol(e);else{if(!(e instanceof f.Z))return{error:new l.Z("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};w=n?b.Z.fromTextSymbol(e):a.Z.fromTextSymbol(e)}return s&&w&&"cim"!==w.type&&(w.id=e.id),r&&(0,i.dU)(w)&&w.symbolLayers.forEach((e=>e.ignoreDrivers=!0)),{symbol:w}}function w(e,t,s,i){const l=S(e,{},{context:i,isLabelSymbol:!1});null!=l&&(t[s]=l)}function _(e,t,s,i){const l=S(e,{},{context:i,isLabelSymbol:!0});null!=l&&(t[s]=l)}function V(e){return e instanceof n.Z||e instanceof o.Z}function S(e,t,s){if(null==e)return null;const{context:i,isLabelSymbol:n}=s,o=i?.origin,a=i?.messages;if("web-scene"===o&&!V(e)){const s=g(e,{retainCIM:!0,hasLabelingContext:n});return null!=s.symbol?s.symbol.write(t,i):(a?.push(new l.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:i,error:s.error})),null)}return("web-map"===o||"portal-item"===o&&!(0,r.A2)(i?.layer))&&V(e)?(a?.push(new l.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:e,context:i})),null):e.write(t,i)}function x(e,t){return(0,i.S9)(e,null,t)}},27883:(e,t,s)=>{s.d(t,{EJ:()=>y,KV:()=>d,n2:()=>c,v9:()=>h,wm:()=>b});var i=s(3172),l=s(20102),r=s(95330),n=s(17452),o=s(65587),a=s(41253),u=s(72245);let p={};function c(e,t,s){return e&&null!=e.styleUrl?async function(e,t){try{return{data:(await y(e,t)).data,baseUrl:(0,n.Yd)(e),styleUrl:e}}catch(e){return(0,r.r9)(e),null}}(e.styleUrl,s):e&&null!=e.styleName?function(e,t,s){const i=null!=t.portal?t.portal:o.Z.getDefault();let r;const n=`${i.url} - ${i.user&&i.user.username} - ${e}`;return p[n]||(p[n]=function(e,t,s){return t.load(s).then((()=>{const i=new a.Z({disableExtraQuery:!0,query:`owner:${m} AND type:${f} AND typekeywords:"${e}"`});return t.queryItems(i,s)})).then((({results:t})=>{let i=null;const r=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t){const t=e.typeKeywords?.some((e=>e.toLowerCase()===r));if(t&&e.type===f&&e.owner===m){i=e;break}}if(!i)throw new l.Z("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return i.load(s)}))}(e,i,s).then((e=>(r=e,e.fetchData()))).then((t=>({data:t,baseUrl:r.itemUrl??"",styleName:e})))),p[n]}(e.styleName,t,s):Promise.reject(new l.Z("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function d(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function h(e,t,s=["gltf"]){if("cimRef"===t)return e.cimRef;if(e.formatInfos&&!(0,u.K3)())for(const t of s){const s=e.formatInfos.find((e=>e.type===t));if(s)return s.href}return e.webRef}function y(e,t){const s={responseType:"json",query:{f:"json"},...t};return(0,i.default)((0,n.Fv)(e),s)}const m="esri_en",f="Style",b="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"}}]);
|