@arcgis/core 4.29.3 → 4.29.5
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{9f0c5822e9f2761054ea.js → 07ef6a6c4f3fce7508eb.js} +1 -1
- package/assets/esri/core/workers/chunks/47504e296bf82357f6bb.js +1 -0
- package/assets/esri/core/workers/chunks/5db9739e00f15613d1ea.js +1 -0
- package/assets/esri/core/workers/chunks/{b125ab84b7761e761734.js → 6ee0e9e56b80296570cb.js} +1 -1
- package/assets/esri/core/workers/chunks/994ca341d8711a4dd473.js +1 -0
- package/assets/esri/core/workers/chunks/{246cba9cd5cadba6be08.js → 9a8ab968ebb18480481d.js} +1 -1
- package/assets/esri/core/workers/chunks/ad9740559e8e45526796.js +1 -0
- package/assets/esri/core/workers/chunks/bd4cb6b02ed52b82ba56.js +1 -0
- package/assets/esri/core/workers/chunks/{712b5cabf4ea3dc8bf33.js → c34ec99627e7645fd218.js} +1 -1
- package/assets/esri/core/workers/chunks/c442480601f9a36e29b9.js +1 -0
- package/assets/esri/core/workers/chunks/c8ecaac448fddd120421.js +1 -0
- package/interfaces.d.ts +38 -50
- package/kernel.js +1 -1
- package/layers/support/Sublayer.js +1 -1
- package/package.json +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToFeatureFactories.js +1 -1
- package/rest/print.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/support/urlUtils.js +1 -1
- package/views/2d/engine/Stage.js +1 -1
- package/views/2d/engine/webgl/FeatureTile.js +1 -1
- package/views/2d/engine/webgl/ReshufflePlan.js +1 -1
- package/views/2d/engine/webgl/cpuMapped/Buffer.js +1 -1
- package/views/2d/engine/webgl/cpuMapped/MappedMesh.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/Technique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/TechniqueRegistry.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapResources.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/StreamLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/Processor.js +1 -1
- package/views/2d/layers/features/ProcessorTileMessageQueue.js +5 -0
- package/views/2d/layers/features/RenderState.js +1 -1
- package/views/2d/layers/features/aggregation/GridCell.js +1 -1
- package/views/2d/layers/features/processor/AProcessorStrategy.js +1 -1
- package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
- package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
- package/views/2d/layers/features/sources/FeatureSource.js +1 -1
- package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
- package/views/2d/layers/features/sources/strategies/AFetchLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/ComputedExpression.js +1 -1
- package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
- package/views/2d/layers/features/support/FeatureSetCache.js +5 -0
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
- package/views/2d/layers/support/handleNoEngineError.js +5 -0
- package/views/MapView.js +1 -1
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
- package/widgets/LayerList/support/layerListUtils.js +1 -1
- package/widgets/LayerList.js +1 -1
- package/assets/esri/core/workers/chunks/7427d03e693f32a81377.js +0 -1
- package/assets/esri/core/workers/chunks/7a8bba91769ee18cc39f.js +0 -1
- package/assets/esri/core/workers/chunks/8044f34d295ec36aa3f1.js +0 -1
- package/assets/esri/core/workers/chunks/94d72650d556fd0eecc3.js +0 -1
- package/assets/esri/core/workers/chunks/a48201b109e9e9aab2d6.js +0 -1
- package/assets/esri/core/workers/chunks/ef3e6209e6ac6a56960b.js +0 -1
- package/assets/esri/core/workers/chunks/ff14214611e1e070235e.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7988],{17988:(e,t,o)=>{o.d(t,{ey:()=>A,QZ:()=>k,_8:()=>D,GM:()=>C,Wk:()=>N,Qw:()=>M,kH:()=>W,uE:()=>U,IX:()=>P,Gw:()=>G});var r,s=o(53368),i=o(64408),l=o(76172),n=(o(18784),o(31376)),a=(o(87860),o(73771),o(56144),o(86896)),c=o(79756),y=(o(7380),o(74483),o(52032)),p=(o(28664),o(75619),o(41948)),h=o(62088),u=o(50144),d=o(1580),m=(o(9456),o(66360),o(9968)),b=o(12552),w=o(99804);let q=r=class extends n.c{constructor(...e){super(...e),this.type="picture-fill",this.url=null,this.xscale=1,this.yscale=1,this.width=12,this.height=12,this.xoffset=0,this.yoffset=0,this.source=null}normalizeCtorArgs(e,t,o,r){if(e&&"string"!=typeof e&&null==e.imageData)return e;const s={};return e&&(s.url=e),t&&(s.outline=t),null!=o&&(s.width=(0,u.Qz)(o)),null!=r&&(s.height=(0,u.Qz)(r)),s}clone(){const e=new r({color:(0,h.ct)(this.color),height:this.height,outline:this.outline&&this.outline.clone(),url:this.url,width:this.width,xoffset:this.xoffset,xscale:this.xscale,yoffset:this.yoffset,yscale:this.yscale});return e._set("source",(0,h.ct)(this.source)),e}hash(){return`${super.hash()}.${this.color?.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`}};(0,p._)([(0,m.G)({esriPFS:"picture-fill"},{readOnly:!0})],q.prototype,"type",void 0),(0,p._)([(0,d.qq)(w.Ck)],q.prototype,"url",void 0),(0,p._)([(0,d.qq)({type:Number,json:{write:!0}})],q.prototype,"xscale",void 0),(0,p._)([(0,d.qq)({type:Number,json:{write:!0}})],q.prototype,"yscale",void 0),(0,p._)([(0,d.qq)({type:Number,cast:u.Qz,json:{write:!0}})],q.prototype,"width",void 0),(0,p._)([(0,d.qq)({type:Number,cast:u.Qz,json:{write:!0}})],q.prototype,"height",void 0),(0,p._)([(0,d.qq)({type:Number,cast:u.Qz,json:{write:!0}})],q.prototype,"xoffset",void 0),(0,p._)([(0,d.qq)({type:Number,cast:u.Qz,json:{write:!0}})],q.prototype,"yoffset",void 0),(0,p._)([(0,d.qq)(w.qW)],q.prototype,"source",void 0),q=r=(0,p._)([(0,b.c)("esri.symbols.PictureFillSymbol")],q);const v=q;var g=o(76060),f=o(57908),_=o(22148),S=o(47472),x=o(7432),j=o(49736),L=o(71996),z=(o(41528),o(48939),o(28652)),O=(o(14212),o(36536),o(91744));function k(e){if(!e)return!1;switch(e.type){case"picture-fill":case"picture-marker":case"simple-fill":case"simple-line":case"simple-marker":case"text":case"cim":return!0;default:return!1}}function D(e){if(!e)return!1;switch(e.type){case"label-3d":case"line-3d":case"mesh-3d":case"point-3d":case"polygon-3d":return!0;default:return!1}}o(86404),o(68204);const N={base:L.c,key:"type",typeMap:{"simple-fill":S.c,"picture-fill":v,"picture-marker":g.c,"simple-line":x.c,"simple-marker":j.c,text:z.c,"label-3d":a.c,"line-3d":c.c,"mesh-3d":y.c,"point-3d":f.c,"polygon-3d":_.c,"web-style":O.c,cim:l.c},errorContext:"symbol"},M={base:L.c,key:"type",typeMap:{"picture-marker":g.c,"simple-marker":j.c,text:z.c,"web-style":O.c,cim:l.c},errorContext:"symbol"},C=(0,i.g)({types:N}),P={base:L.c,key:"type",typeMap:{"simple-fill":S.c,"picture-fill":v,"picture-marker":g.c,"simple-line":x.c,"simple-marker":j.c,text:z.c,"line-3d":c.c,"mesh-3d":y.c,"point-3d":f.c,"polygon-3d":_.c,"web-style":O.c,cim:l.c},errorContext:"symbol"},W={base:L.c,key:"type",typeMap:{text:z.c,"label-3d":a.c},errorContext:"symbol"},G=(L.c,a.c,c.c,y.c,f.c,_.c,O.c,{base:L.c,key:"type",typeMap:{"line-3d":c.c,"mesh-3d":y.c,"point-3d":f.c,"polygon-3d":_.c,"web-style":O.c,cim:l.c},errorContext:"symbol"}),U={base:L.c,key:"type",typeMap:{"label-3d":a.c},errorContext:"symbol"},A=(0,s.S2)(N)},76172:(e,t,o)=>{o.d(t,{c:()=>m});var r,s=o(41948),i=o(62088),l=o(88264),n=o(1580),a=(o(9456),o(66360),o(9968)),c=o(33600),y=o(12552),p=o(18996),h=o(564),u=o(71996);let d=r=class extends u.c{constructor(e){super(e),this.data=null,this.type="cim"}readData(e,t){return t}writeData(e,t){Object.assign(t,e)}async collectRequiredFields(e,t){if("CIMSymbolReference"===this.data?.type){const o=this.data.primitiveOverrides;if(o){const r=o.map((o=>{const r=o.valueExpressionInfo;return r?(0,h.AN)(e,t,r.expression):null}));await Promise.all(r)}}}clone(){return new r({data:(0,i.ct)(this.data)})}hash(){return(0,l.sV)(JSON.stringify(this.data)).toString()}};(0,s._)([(0,n.qq)({json:{write:!1}})],d.prototype,"color",void 0),(0,s._)([(0,n.qq)({json:{write:!0}})],d.prototype,"data",void 0),(0,s._)([(0,c.E)("data",["symbol"])],d.prototype,"readData",null),(0,s._)([(0,p.G)("data",{})],d.prototype,"writeData",null),(0,s._)([(0,a.G)({CIMSymbolReference:"cim"},{readOnly:!0})],d.prototype,"type",void 0),d=r=(0,s._)([(0,y.c)("esri.symbols.CIMSymbol")],d);const m=d},18784:(e,t,o)=>{o.d(t,{c:()=>h});var r,s=o(41948),i=o(1580),l=(o(9456),o(66360),o(72052),o(9968)),n=o(12552),a=o(48939),c=o(37904),y=o(14392);let p=r=class extends a.c{constructor(e){super(e),this.type="extrude",this.size=1,this.material=null,this.castShadows=!0,this.edges=null}clone(){return new r({edges:this.edges&&this.edges.clone(),enabled:this.enabled,material:null!=this.material?this.material.clone():null,castShadows:this.castShadows,size:this.size})}};(0,s._)([(0,l.G)({Extrude:"extrude"},{readOnly:!0})],p.prototype,"type",void 0),(0,s._)([(0,i.qq)({type:Number,json:{write:{enabled:!0,isRequired:!0}},nonNullable:!0})],p.prototype,"size",void 0),(0,s._)([(0,i.qq)({type:y.e,json:{write:!0}})],p.prototype,"material",void 0),(0,s._)([(0,i.qq)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],p.prototype,"castShadows",void 0),(0,s._)([(0,i.qq)(c.I)],p.prototype,"edges",void 0),p=r=(0,s._)([(0,n.c)("esri.symbols.ExtrudeSymbol3DLayer")],p);const h=p},87860:(e,t,o)=>{o.d(t,{c:()=>j});var r,s=o(41948),i=o(1580),l=(o(9456),o(66360),o(72052),o(9968)),n=o(12552),a=o(48939),c=o(37904),y=o(9600),p=o(47788),h=o(51696),u=o(98008),d=(o(20744),o(14392));let m=r=class extends d.e{constructor(e){super(e),this.colorMixMode=null}clone(){const e={color:null!=this.color?this.color.clone():null,colorMixMode:this.colorMixMode};return new r(e)}};(0,s._)([(0,l.G)({multiply:"multiply",replace:"replace",tint:"tint"})],m.prototype,"colorMixMode",void 0),m=r=(0,s._)([(0,n.c)("esri.symbols.support.Symbol3DFillMaterial")],m);var b,w=o(44728),q=o(40504),v=o(50144),g=o(67552),f=o(16100);let _=b=class extends q.am{constructor(e){super(e),this.color=new w.c([0,0,0,1]),this.size=(0,v.WM)(1),this.pattern=null,this.patternCap="butt"}clone(){const e={color:null!=this.color?this.color.clone():null,size:this.size,pattern:null!=this.pattern?this.pattern.clone():null,patternCap:this.patternCap};return new b(e)}};var S;(0,s._)([(0,i.qq)(g.Q)],_.prototype,"color",void 0),(0,s._)([(0,i.qq)(g.k)],_.prototype,"size",void 0),(0,s._)([(0,i.qq)(h.Q)],_.prototype,"pattern",void 0),(0,s._)([(0,i.qq)({type:f.ox,json:{default:"butt",write:{overridePolicy(){return{enabled:null!=this.pattern}}}}})],_.prototype,"patternCap",void 0),_=b=(0,s._)([(0,n.c)("esri.symbols.support.Symbol3DOutline")],_);let x=S=class extends a.c{constructor(e){super(e),this.type="fill",this.material=null,this.pattern=null,this.castShadows=!0,this.outline=null,this.edges=null}clone(){const e={edges:null!=this.edges?this.edges.clone():null,enabled:this.enabled,material:null!=this.material?this.material.clone():null,pattern:null!=this.pattern?this.pattern.clone():null,castShadows:this.castShadows,outline:null!=this.outline?this.outline.clone():null};return new S(e)}static fromSimpleFillSymbol(e){const t=e.outline&&e.outline.style&&"inside-frame"!==e.outline.style&&"solid"!==e.outline.style?new y.c({style:e.outline.style}):null,o={size:e.outline?.width??0,color:(e.outline?.color??u.WK).clone(),pattern:t};return t&&e.outline?.cap&&(o.patternCap=e.outline.cap),new S({material:new m({color:(e.color??u.Ky).clone()}),pattern:e.style&&"solid"!==e.style?new p.c({style:e.style}):null,outline:o})}};(0,s._)([(0,l.G)({Fill:"fill"},{readOnly:!0})],x.prototype,"type",void 0),(0,s._)([(0,i.qq)({type:m,json:{write:!0}})],x.prototype,"material",void 0),(0,s._)([(0,i.qq)(h.x)],x.prototype,"pattern",void 0),(0,s._)([(0,i.qq)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],x.prototype,"castShadows",void 0),(0,s._)([(0,i.qq)({type:_,json:{write:!0}})],x.prototype,"outline",void 0),(0,s._)([(0,i.qq)(c.I)],x.prototype,"edges",void 0),x=S=(0,s._)([(0,n.c)("esri.symbols.FillSymbol3DLayer")],x);const j=x},56144:(e,t,o)=>{o.d(t,{c:()=>W});var r,s=o(41948),i=o(66360),l=o(28176),n=o(1580),a=(o(9456),o(72052),o(9968)),c=o(12552),y=o(48939),p=o(98008),h=o(14628),u=o(40504),d=o(33600),m=o(18996),b=o(91952);const w=(0,h.w)()({circle:"circle",square:"square",cross:"cross",x:"x",kite:"kite",triangle:"triangle"});let q=r=class extends u.am{constructor(e){super(e)}readHref(e,t,o){return e?(0,b.f)(e,o):t.dataURI}writeHref(e,t,o,r){e&&((0,l.o9)(e)?t.dataURI=e:(t.href=(0,b.t)(e,r),(0,l.ic)(t.href)&&(t.href=(0,l.k7)(t.href))))}clone(){return new r({href:this.href,primitive:this.primitive})}};(0,s._)([(0,n.qq)({type:String,json:{write:!0,read:{source:["href","dataURI"]}}})],q.prototype,"href",void 0),(0,s._)([(0,d.E)("href")],q.prototype,"readHref",null),(0,s._)([(0,m.G)("href",{href:{type:String},dataURI:{type:String}})],q.prototype,"writeHref",null),(0,s._)([(0,a.G)(w)],q.prototype,"primitive",void 0),q=r=(0,s._)([(0,c.c)("esri.symbols.support.IconSymbol3DLayerResource")],q);var v,g=o(67552),f=o(43780);let _=v=class extends f.c{constructor(){super(...arguments),this.x=0,this.y=0}clone(){return new v({x:this.x,y:this.y})}};(0,s._)([(0,n.qq)({type:Number})],_.prototype,"x",void 0),(0,s._)([(0,n.qq)({type:Number})],_.prototype,"y",void 0),_=v=(0,s._)([(0,c.c)("esri.symbols.support.Symbol3DAnchorPosition2D")],_);var S,x=o(44728),j=o(50144);let L=S=class extends u.am{constructor(e){super(e),this.color=new x.c([0,0,0,1]),this.size=(0,j.WM)(1)}clone(){const e={color:null!=this.color?this.color.clone():null,size:this.size};return new S(e)}};(0,s._)([(0,n.qq)(g.Q)],L.prototype,"color",void 0),(0,s._)([(0,n.qq)(g.k)],L.prototype,"size",void 0),L=S=(0,s._)([(0,c.c)("esri.symbols.support.Symbol3DIconOutline")],L);var z,O=o(14392);const k="esri.symbols.IconSymbol3DLayer";let D=z=class extends y.c{constructor(e){super(e),this.material=null,this.resource=null,this.type="icon",this.size=12,this.anchor="center",this.anchorPosition=null,this.outline=null}clone(){return new z({anchor:this.anchor,anchorPosition:this.anchorPosition&&this.anchorPosition.clone(),enabled:this.enabled,material:null!=this.material?this.material.clone():null,outline:null!=this.outline?this.outline.clone():null,resource:this.resource&&this.resource.clone(),size:this.size})}static fromSimpleMarkerSymbol(e){const t=e.color||p.WK,o=N(e),r=e.outline&&e.outline.width>0?{size:e.outline.width,color:(e.outline.color||p.WK).clone()}:null;return new z({size:e.size,resource:{primitive:P(e.style)},material:{color:t},outline:r,anchor:o?"relative":void 0,anchorPosition:o})}static fromPictureMarkerSymbol(e){const t=!e.color||(0,p.CO)(e.color)?p.WK:e.color,o=N(e);return new z({size:e.width<=e.height?e.height:e.width,resource:{href:e.url},material:{color:t.clone()},anchor:o?"relative":void 0,anchorPosition:o})}static fromCIMSymbol(e){return new z({resource:{href:(0,l.Gg)({mediaType:"application/json",data:JSON.stringify(e.data)})}})}};function N(e){const t="width"in e?e.width:e.size,o="height"in e?e.height:e.size,r=M(e.xoffset),s=M(e.yoffset);return(r||s)&&t&&o?{x:-r/t,y:s/o}:null}function M(e){return isFinite(e)?e:0}(0,s._)([(0,n.qq)({type:O.e,json:{write:!0}})],D.prototype,"material",void 0),(0,s._)([(0,n.qq)({type:q,json:{write:!0}})],D.prototype,"resource",void 0),(0,s._)([(0,a.G)({Icon:"icon"},{readOnly:!0})],D.prototype,"type",void 0),(0,s._)([(0,n.qq)(g.k)],D.prototype,"size",void 0),(0,s._)([(0,a.G)({center:"center",left:"left",right:"right",top:"top",bottom:"bottom",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",relative:"relative"}),(0,n.qq)({json:{default:"center"}})],D.prototype,"anchor",void 0),(0,s._)([(0,n.qq)({type:_,json:{type:[Number],read:{reader:e=>new _({x:e[0],y:e[1]})},write:{writer:(e,t)=>{t.anchorPosition=[e.x,e.y]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],D.prototype,"anchorPosition",void 0),(0,s._)([(0,n.qq)({type:L,json:{write:!0}})],D.prototype,"outline",void 0),D=z=(0,s._)([(0,c.c)(k)],D);const C={circle:"circle",cross:"cross",diamond:"kite",square:"square",x:"x",triangle:"triangle",path:null};function P(e){return C[e]||(i.c.getLogger(k).warn(`${e} cannot be mapped to Icon symbol. Fallback to "circle"`),"circle")}const W=D},86896:(e,t,o)=>{o.d(t,{c:()=>b});var r,s=o(41948),i=o(2952),l=o(62088),n=o(1580),a=(o(9456),o(66360),o(9968)),c=o(12552),y=o(41528),p=o(14212),h=o(79376),u=o(53e3);const d=i.c.ofType({base:null,key:"type",typeMap:{text:p.c}});let m=r=class extends y.c{constructor(e){super(e),this.verticalOffset=null,this.callout=null,this.styleOrigin=null,this.symbolLayers=new d,this.type="label-3d"}supportsCallout(){return!0}hasVisibleCallout(){return(0,h.SU)(this)}hasVisibleVerticalOffset(){return(0,h.Ku)(this)}clone(){return new r({styleOrigin:(0,l.ct)(this.styleOrigin),symbolLayers:(0,l.ct)(this.symbolLayers),thumbnail:(0,l.ct)(this.thumbnail),callout:(0,l.ct)(this.callout),verticalOffset:(0,l.ct)(this.verticalOffset)})}static fromTextSymbol(e){return new r({symbolLayers:new i.c([p.c.fromTextSymbol(e)])})}};(0,s._)([(0,n.qq)({type:u.c,json:{write:!0}})],m.prototype,"verticalOffset",void 0),(0,s._)([(0,n.qq)(h.K6)],m.prototype,"callout",void 0),(0,s._)([(0,n.qq)({json:{read:!1,write:!1}})],m.prototype,"styleOrigin",void 0),(0,s._)([(0,n.qq)({type:d})],m.prototype,"symbolLayers",void 0),(0,s._)([(0,a.G)({LabelSymbol3D:"label-3d"},{readOnly:!0})],m.prototype,"type",void 0),m=r=(0,s._)([(0,c.c)("esri.symbols.LabelSymbol3D")],m);const b=m},79756:(e,t,o)=>{o.d(t,{c:()=>b});var r,s=o(41948),i=o(2952),l=o(62088),n=o(1580),a=(o(9456),o(66360),o(9968)),c=o(12552),y=o(7380),p=o(75619),h=o(41528);const u=i.c.ofType({base:null,key:"type",typeMap:{line:y.c,path:p.c}}),d=i.c.ofType({base:null,key:"type",typeMap:{line:y.c,path:p.c}});let m=r=class extends h.c{constructor(e){super(e),this.symbolLayers=new u,this.type="line-3d"}clone(){return new r({styleOrigin:(0,l.ct)(this.styleOrigin),symbolLayers:(0,l.ct)(this.symbolLayers),thumbnail:(0,l.ct)(this.thumbnail)})}static fromSimpleLineSymbol(e){return new r({symbolLayers:new i.c([y.c.fromSimpleLineSymbol(e)])})}};(0,s._)([(0,n.qq)({type:u,json:{type:d}})],m.prototype,"symbolLayers",void 0),(0,s._)([(0,a.G)({LineSymbol3D:"line-3d"},{readOnly:!0})],m.prototype,"type",void 0),m=r=(0,s._)([(0,c.c)("esri.symbols.LineSymbol3D")],m);const b=m},7380:(e,t,o)=>{o.d(t,{c:()=>x});var r=o(41948),s=o(50144),i=o(1580),l=(o(9456),o(66360),o(72052),o(9968)),n=o(12552),a=o(44728),c=o(3856),y=o(40504),p=o(53368),h=o(97556);let u=class extends((0,c.q)(y.am)){constructor(e){super(e),this.type="style",this.placement="begin-end",this.style="arrow",this.color=null}equals(e){return null!=e&&e.placement===this.placement&&e.style===this.style&&(null==this.color&&null==e.color||null!=this.color&&null!=e.color&&this.color.toJSON()===e.color.toJSON())}};(0,r._)([(0,i.qq)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],u.prototype,"type",void 0),(0,r._)([(0,i.qq)({type:h.w,json:{default:"begin-end",write:!0}})],u.prototype,"placement",void 0),(0,r._)([(0,i.qq)({type:h.U,json:{default:"arrow",write:!0}})],u.prototype,"style",void 0),(0,r._)([(0,i.qq)({type:a.c,json:{type:[p.Ab],default:null,write:!0}})],u.prototype,"color",void 0),u=(0,r._)([(0,n.c)("esri.symbols.LineStyleMarker3D")],u);const d=u;var m,b=o(48939),w=o(9600),q=o(51696),v=o(98008),g=o(67552),f=o(14392),_=o(16100);let S=m=class extends b.c{constructor(e){super(e),this.material=null,this.type="line",this.join="miter",this.cap="butt",this.size=(0,s.WM)(1),this.pattern=null,this.marker=null}clone(){const e={enabled:this.enabled,material:null!=this.material?this.material.clone():null,size:this.size,join:this.join,cap:this.cap,pattern:null!=this.pattern?this.pattern.clone():null,marker:null!=this.marker?this.marker.clone():null};return new m(e)}static fromSimpleLineSymbol(e){const t={enabled:!0,size:e.width??(0,s.WM)(1),cap:e.cap||"butt",join:e.join||"miter",pattern:e.style&&"inside-frame"!==e.style?new w.c({style:e.style}):null,material:new f.e({color:(e.color||v.WK).clone()}),marker:e.marker?new d({placement:e.marker.placement,style:e.marker.style,color:e.marker.color?.clone()??null}):null};return new m(t)}};(0,r._)([(0,i.qq)({type:f.e,json:{write:!0}})],S.prototype,"material",void 0),(0,r._)([(0,l.G)({Line:"line"},{readOnly:!0})],S.prototype,"type",void 0),(0,r._)([(0,i.qq)({type:_.s9,json:{write:!0,default:"miter"}})],S.prototype,"join",void 0),(0,r._)([(0,i.qq)({type:_.ox,json:{write:!0,default:"butt"}})],S.prototype,"cap",void 0),(0,r._)([(0,i.qq)(g.k)],S.prototype,"size",void 0),(0,r._)([(0,i.qq)(q.Q)],S.prototype,"pattern",void 0),(0,r._)([(0,i.qq)({types:{key:"type",base:d,typeMap:{style:d}},json:{write:!0}})],S.prototype,"marker",void 0),S=m=(0,r._)([(0,n.c)("esri.symbols.LineSymbol3DLayer")],S);const x=S},52032:(e,t,o)=>{o.d(t,{c:()=>d});var r,s=o(41948),i=o(2952),l=o(62088),n=o(1580),a=(o(9456),o(66360),o(9968)),c=o(12552),y=o(87860),p=o(41528);const h=i.c.ofType({base:null,key:"type",typeMap:{fill:y.c}});let u=r=class extends p.c{constructor(e){super(e),this.symbolLayers=new h,this.type="mesh-3d"}clone(){return new r({styleOrigin:(0,l.ct)(this.styleOrigin),symbolLayers:(0,l.ct)(this.symbolLayers),thumbnail:(0,l.ct)(this.thumbnail)})}static fromSimpleFillSymbol(e){return new r({symbolLayers:new i.c([y.c.fromSimpleFillSymbol(e)])})}};(0,s._)([(0,n.qq)({type:h})],u.prototype,"symbolLayers",void 0),(0,s._)([(0,a.G)({MeshSymbol3D:"mesh-3d"},{readOnly:!0})],u.prototype,"type",void 0),u=r=(0,s._)([(0,c.c)("esri.symbols.MeshSymbol3D")],u);const d=u},28664:(e,t,o)=>{o.d(t,{c:()=>g});var r,s=o(41948),i=o(1580),l=(o(9456),o(66360),o(72052),o(9968)),n=o(12552),a=o(48939),c=o(14628),y=o(40504),p=o(91952);const h=(0,c.w)()({sphere:"sphere",cylinder:"cylinder",cube:"cube",cone:"cone",diamond:"diamond",tetrahedron:"tetrahedron",invertedCone:"inverted-cone"});let u=r=class extends y.am{clone(){return new r({href:this.href,primitive:this.primitive})}};(0,s._)([(0,i.qq)({type:String,json:{read:p.r,write:p.w}})],u.prototype,"href",void 0),(0,s._)([(0,l.G)(h)],u.prototype,"primitive",void 0),u=r=(0,s._)([(0,n.c)("esri.symbols.support.ObjectSymbol3DLayerResource")],u);var d,m=o(43780);let b=d=class extends m.c{constructor(){super(...arguments),this.x=0,this.y=0,this.z=0}clone(){return new d({x:this.x,y:this.y,z:this.z})}};(0,s._)([(0,i.qq)({type:Number})],b.prototype,"x",void 0),(0,s._)([(0,i.qq)({type:Number})],b.prototype,"y",void 0),(0,s._)([(0,i.qq)({type:Number})],b.prototype,"z",void 0),b=d=(0,s._)([(0,n.c)("esri.symbols.support.Symbol3DAnchorPosition3D")],b);var w,q=o(14392);let v=w=class extends a.c{constructor(e){super(e),this.material=null,this.castShadows=!0,this.resource=null,this.type="object",this.width=void 0,this.height=void 0,this.depth=void 0,this.anchor=void 0,this.anchorPosition=void 0,this.heading=void 0,this.tilt=void 0,this.roll=void 0}clone(){return new w({heading:this.heading,tilt:this.tilt,roll:this.roll,anchor:this.anchor,anchorPosition:this.anchorPosition?.clone(),depth:this.depth,enabled:this.enabled,height:this.height,material:this.material?.clone()??null,castShadows:this.castShadows,resource:this.resource?.clone(),width:this.width})}get isPrimitive(){return!this.resource||"string"!=typeof this.resource.href}};(0,s._)([(0,i.qq)({type:q.e,json:{write:!0}})],v.prototype,"material",void 0),(0,s._)([(0,i.qq)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],v.prototype,"castShadows",void 0),(0,s._)([(0,i.qq)({type:u,json:{write:!0}})],v.prototype,"resource",void 0),(0,s._)([(0,l.G)({Object:"object"},{readOnly:!0})],v.prototype,"type",void 0),(0,s._)([(0,i.qq)({type:Number,json:{write:!0}})],v.prototype,"width",void 0),(0,s._)([(0,i.qq)({type:Number,json:{write:!0}})],v.prototype,"height",void 0),(0,s._)([(0,i.qq)({type:Number,json:{write:!0}})],v.prototype,"depth",void 0),(0,s._)([(0,l.G)({center:"center",top:"top",bottom:"bottom",origin:"origin",relative:"relative"}),(0,i.qq)({json:{default:"origin"}})],v.prototype,"anchor",void 0),(0,s._)([(0,i.qq)({type:b,json:{type:[Number],read:{reader:e=>new b({x:e[0],y:e[1],z:e[2]})},write:{writer:(e,t)=>{t.anchorPosition=[e.x,e.y,e.z]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],v.prototype,"anchorPosition",void 0),(0,s._)([(0,i.qq)({type:Number,json:{write:!0}})],v.prototype,"heading",void 0),(0,s._)([(0,i.qq)({type:Number,json:{write:!0}})],v.prototype,"tilt",void 0),(0,s._)([(0,i.qq)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,s._)([(0,i.qq)({readOnly:!0})],v.prototype,"isPrimitive",null),v=w=(0,s._)([(0,n.c)("esri.symbols.ObjectSymbol3DLayer")],v);const g=v},75619:(e,t,o)=>{o.d(t,{c:()=>u});var r,s=o(41948),i=o(1580),l=(o(9456),o(66360),o(72052),o(9968)),n=o(33600),a=o(12552),c=o(48939),y=o(14392),p=o(16100);let h=r=class extends c.c{constructor(e){super(e),this.material=null,this.castShadows=!0,this.type="path",this.profile="circle",this.join="miter",this.cap="butt",this.width=void 0,this.height=void 0,this.anchor="center",this.profileRotation="all"}readWidth(e,t){return null!=e?e:null==t.height&&null!=t.size?t.size:void 0}readHeight(e,t){return null!=e?e:null==t.width&&null!=t.size?t.size:void 0}clone(){return new r({enabled:this.enabled,material:null!=this.material?this.material.clone():null,castShadows:this.castShadows,profile:this.profile,join:this.join,cap:this.cap,width:this.width,height:this.height,profileRotation:this.profileRotation,anchor:this.anchor})}};(0,s._)([(0,i.qq)({type:y.e,json:{write:!0}})],h.prototype,"material",void 0),(0,s._)([(0,i.qq)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],h.prototype,"castShadows",void 0),(0,s._)([(0,l.G)({Path:"path"},{readOnly:!0})],h.prototype,"type",void 0),(0,s._)([(0,i.qq)({type:["circle","quad"],json:{write:!0,default:"circle"}})],h.prototype,"profile",void 0),(0,s._)([(0,i.qq)({type:p.s9,json:{write:!0,default:"miter"}})],h.prototype,"join",void 0),(0,s._)([(0,i.qq)({type:p.cP,json:{write:!0,default:"butt"}})],h.prototype,"cap",void 0),(0,s._)([(0,i.qq)({type:Number,json:{write:{enabled:!0,target:{width:{type:Number},size:{type:Number}}}}})],h.prototype,"width",void 0),(0,s._)([(0,n.E)("width",["width","size","height"])],h.prototype,"readWidth",null),(0,s._)([(0,i.qq)({type:Number,json:{write:!0}})],h.prototype,"height",void 0),(0,s._)([(0,n.E)("height",["height","size","width"])],h.prototype,"readHeight",null),(0,s._)([(0,i.qq)({type:["center","bottom","top"],json:{write:!0,default:"center"}})],h.prototype,"anchor",void 0),(0,s._)([(0,i.qq)({type:["heading","all"],json:{write:!0,default:"all"}})],h.prototype,"profileRotation",void 0),h=r=(0,s._)([(0,a.c)("esri.symbols.PathSymbol3DLayer")],h);const u=h},76060:(e,t,o)=>{o.d(t,{c:()=>d});var r,s=o(41948),i=o(62088),l=o(50144),n=o(1580),a=(o(9456),o(66360),o(9968)),c=o(33600),y=o(12552),p=o(74483),h=o(99804);let u=r=class extends p.c{constructor(...e){super(...e),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(e,t,o){if(e&&"string"!=typeof e&&null==e.imageData)return e;const r={};return e&&(r.url=e),null!=t&&(r.width=(0,l.Qz)(t)),null!=o&&(r.height=(0,l.Qz)(o)),r}readHeight(e,t){return t.size||e}readWidth(e,t){return t.size||e}clone(){const e=new r({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return e._set("source",(0,i.ct)(this.source)),e}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,s._)([(0,n.qq)({json:{write:!1}})],u.prototype,"color",void 0),(0,s._)([(0,a.G)({esriPMS:"picture-marker"},{readOnly:!0})],u.prototype,"type",void 0),(0,s._)([(0,n.qq)(h.Ck)],u.prototype,"url",void 0),(0,s._)([(0,n.qq)(h.qW)],u.prototype,"source",void 0),(0,s._)([(0,n.qq)({type:Number,cast:l.Qz,json:{write:!0}})],u.prototype,"height",void 0),(0,s._)([(0,c.E)("height",["height","size"])],u.prototype,"readHeight",null),(0,s._)([(0,n.qq)({type:Number,cast:l.Qz,json:{write:!0}})],u.prototype,"width",void 0),(0,s._)([(0,n.qq)({json:{write:!1}})],u.prototype,"size",void 0),u=r=(0,s._)([(0,y.c)("esri.symbols.PictureMarkerSymbol")],u);const d=u},57908:(e,t,o)=>{o.d(t,{c:()=>g});var r,s=o(41948),i=o(44728),l=o(2952),n=o(62088),a=o(1580),c=(o(9456),o(66360),o(9968)),y=o(12552),p=o(56144),h=o(28664),u=o(41528),d=o(14212),m=o(79376),b=o(86404),w=o(53e3);const q=l.c.ofType({base:null,key:"type",typeMap:{icon:p.c,object:h.c,text:d.c}});let v=r=class extends u.c{constructor(e){super(e),this.verticalOffset=null,this.callout=null,this.symbolLayers=new q,this.type="point-3d"}supportsCallout(){if((this.symbolLayers?this.symbolLayers.length:0)<1)return!1;for(const e of this.symbolLayers.items)switch(e.type){case"icon":case"text":case"object":continue;default:return!1}return!0}hasVisibleCallout(){return(0,m.SU)(this)}hasVisibleVerticalOffset(){return(0,m.Ku)(this)}clone(){return new r({verticalOffset:(0,n.ct)(this.verticalOffset),callout:(0,n.ct)(this.callout),styleOrigin:(0,n.ct)(this.styleOrigin),symbolLayers:(0,n.ct)(this.symbolLayers),thumbnail:(0,n.ct)(this.thumbnail)})}static fromSimpleMarkerSymbol(e){return new r({symbolLayers:new l.c([p.c.fromSimpleMarkerSymbol(e)])})}static fromPictureMarkerSymbol(e){return new r({symbolLayers:new l.c([p.c.fromPictureMarkerSymbol(e)])})}static fromCIMSymbol(e){const t=e.data?.symbol?.type;if("CIMPointSymbol"!==t)return null;const o=e.data.symbol;return new r(o?.callout?{symbolLayers:new l.c([p.c.fromCIMSymbol(e)]),callout:new b.c({size:.5,color:new i.c([0,0,0])}),verticalOffset:new w.c({screenLength:40})}:{symbolLayers:new l.c([p.c.fromCIMSymbol(e)])})}static fromTextSymbol(e){return new r({symbolLayers:new l.c([d.c.fromTextSymbol(e)])})}};(0,s._)([(0,a.qq)({type:w.c,json:{write:!0}})],v.prototype,"verticalOffset",void 0),(0,s._)([(0,a.qq)(m.K6)],v.prototype,"callout",void 0),(0,s._)([(0,a.qq)({type:q,json:{origins:{"web-scene":{write:!0}}}})],v.prototype,"symbolLayers",void 0),(0,s._)([(0,c.G)({PointSymbol3D:"point-3d"},{readOnly:!0})],v.prototype,"type",void 0),v=r=(0,s._)([(0,y.c)("esri.symbols.PointSymbol3D")],v);const g=v},22148:(e,t,o)=>{o.d(t,{c:()=>S});var r,s=o(41948),i=o(2952),l=o(26832),n=o(62088),a=o(66360),c=o(57896),y=o(1580),p=(o(9456),o(9968)),h=o(12552),u=o(18784),d=o(87860),m=o(56144),b=o(7380),w=o(28664),q=o(41528),v=o(14212),g=o(36536);const f=i.c.ofType({base:null,key:"type",typeMap:{extrude:u.c,fill:d.c,icon:m.c,line:b.c,object:w.c,text:v.c,water:g.c}});let _=r=class extends q.c{constructor(e){super(e),this.symbolLayers=new f,this.type="polygon-3d"}initialize(){const e=e=>{"line"===e.type&&(0,l.O2)(a.c.getLogger(this),"LineSymbol3DLayer can not be used as a SymbolLayer with a PolygonSymbol3D symbol anymore.",{replacement:"Use FillSymbol3DLayer.outline instead.",version:"4.28"}),"text"===e.type&&(0,l.O2)(a.c.getLogger(this),"TextSymbol3DLayer can not be used as a SymbolLayer with a PolygonSymbol3D symbol anymore.",{replacement:"Use Labels instead.",version:"4.28"})};for(const t of this.symbolLayers)e(t);this.addHandles((0,c.on)((()=>this.symbolLayers),"after-add",(({item:t})=>e(t)),c.du))}clone(){return new r({styleOrigin:(0,n.ct)(this.styleOrigin),symbolLayers:(0,n.ct)(this.symbolLayers),thumbnail:(0,n.ct)(this.thumbnail)})}static fromJSON(e){const t=new r;if(t.read(e),2===t.symbolLayers.length&&"fill"===t.symbolLayers.at(0).type&&"line"===t.symbolLayers.at(1).type){const o=t.symbolLayers.at(0),r=t.symbolLayers.at(1);!r.enabled||e.symbolLayers?.[1]&&!1===e.symbolLayers[1].enable||(o.outline={size:r.size,color:null!=r.material?r.material.color:null}),t.symbolLayers.removeAt(1)}return t}static fromSimpleFillSymbol(e){return new r({symbolLayers:new i.c([d.c.fromSimpleFillSymbol(e)])})}};(0,s._)([(0,y.qq)({type:f,json:{write:!0}})],_.prototype,"symbolLayers",void 0),(0,s._)([(0,p.G)({PolygonSymbol3D:"polygon-3d"},{readOnly:!0})],_.prototype,"type",void 0),_=r=(0,s._)([(0,h.c)("esri.symbols.PolygonSymbol3D")],_);const S=_},41528:(e,t,o)=>{o.d(t,{c:()=>N});var r=o(41948),s=o(2952),i=o(30604),l=o(66360),n=o(28176),a=o(69504),c=o(1580),y=o(33392),p=(o(72052),o(9456),o(33600)),h=o(12552),u=o(18996),d=o(54872),m=o(91952),b=o(18784),w=o(87860),q=o(56144),v=o(7380),g=o(28664),f=o(75619),_=o(71996),S=o(48939),x=o(14212),j=o(36536),L=o(33560),z=o(95944);const O={icon:q.c,object:g.c,line:v.c,path:f.c,fill:w.c,extrude:b.c,text:x.c,water:j.c},k=s.c.ofType({base:S.c,key:"type",typeMap:O,errorContext:"symbol-layer"});let D=class extends _.c{constructor(e){super(e),this.styleOrigin=null,this.thumbnail=null,this.type=null;const t=this.__accessor__&&this.__accessor__.metadata&&this.__accessor__.metadata.symbolLayers,o=t?.type,r=o||s.c;this._set("symbolLayers",new r)}get color(){return null}set color(e){this.constructed&&l.c.getLogger(this).error("Symbol3D does not support colors on the symbol level. Colors may be set on individual symbol layer materials instead.")}set symbolLayers(e){(0,i.q)(e,this._get("symbolLayers"))}readStyleOrigin(e,t,o){if(e.styleUrl&&e.name){const t=(0,m.f)(e.styleUrl,o);return new L.c({styleUrl:t,name:e.name})}if(e.styleName&&e.name)return new L.c({portal:o?.portal||d.c.getDefault(),styleName:e.styleName,name:e.name});o?.messages&&o.messages.push(new a.c("symbol3d:incomplete-style-origin","Style origin requires either a 'styleUrl' or 'styleName' and a 'name' property",{context:o,definition:e}))}writeStyleOrigin(e,t,o,r){if(e.styleUrl&&e.name){let o=(0,m.t)(e.styleUrl,r);(0,n.ic)(o)&&(o=(0,n.k7)(o)),t.styleOrigin={styleUrl:o,name:e.name}}else e.styleName&&e.name&&(e.portal&&r?.portal&&!(0,n.kF)(e.portal.restUrl,r.portal.restUrl)?r?.messages&&r.messages.push(new a.c("symbol:cross-portal","The symbol style origin cannot be persisted because it refers to an item on a different portal than the one being saved to.",{symbol:this})):t.styleOrigin={styleName:e.styleName,name:e.name})}normalizeCtorArgs(e){return e instanceof S.c||e&&O[e.type]?{symbolLayers:[e]}:Array.isArray(e)?{symbolLayers:e}:e}};(0,r._)([(0,c.qq)({json:{read:!1,write:!1}})],D.prototype,"color",null),(0,r._)([(0,c.qq)({type:k,nonNullable:!0,json:{write:!0}}),(0,y.W)(i.W)],D.prototype,"symbolLayers",null),(0,r._)([(0,c.qq)({type:L.c})],D.prototype,"styleOrigin",void 0),(0,r._)([(0,p.E)("styleOrigin")],D.prototype,"readStyleOrigin",null),(0,r._)([(0,u.G)("styleOrigin",{"styleOrigin.styleUrl":{type:String},"styleOrigin.styleName":{type:String},"styleOrigin.name":{type:String}})],D.prototype,"writeStyleOrigin",null),(0,r._)([(0,c.qq)({type:z.u,json:{read:!1}})],D.prototype,"thumbnail",void 0),(0,r._)([(0,c.qq)({type:["point-3d","line-3d","polygon-3d","mesh-3d","label-3d"],readOnly:!0})],D.prototype,"type",void 0),D=(0,r._)([(0,h.c)("esri.symbols.Symbol3D")],D);const N=D},48939:(e,t,o)=>{o.d(t,{c:()=>c});var r=o(41948),s=o(40504),i=o(1580),l=(o(9456),o(66360),o(72052),o(12552)),n=o(18996);let a=class extends s.am{constructor(e){super(e),this.enabled=!0,this.type=null,this.ignoreDrivers=!1}writeEnabled(e,t,o){e||(t[o]=e)}};(0,r._)([(0,i.qq)({type:Boolean,json:{read:{source:"enable"},write:{target:"enable"}}})],a.prototype,"enabled",void 0),(0,r._)([(0,n.G)("enabled")],a.prototype,"writeEnabled",null),(0,r._)([(0,i.qq)({type:["icon","object","line","path","fill","water","extrude","text"],readOnly:!0})],a.prototype,"type",void 0),a=(0,r._)([(0,l.c)("esri.symbols.Symbol3DLayer")],a);const c=a},14212:(e,t,o)=>{o.d(t,{c:()=>S});var r,s=o(41948),i=o(62088),l=o(1580),n=(o(9456),o(66360),o(9968)),a=o(12552),c=o(18996),y=o(73771),p=o(48939),h=o(67552),u=o(44728),d=o(40504);let m=r=class extends d.am{constructor(){super(...arguments),this.color=new u.c([0,0,0,1]),this.size=0}clone(){const e={color:(0,i.ct)(this.color),size:this.size};return new r(e)}};(0,s._)([(0,l.qq)(h.Q)],m.prototype,"color",void 0),(0,s._)([(0,l.qq)(h.k)],m.prototype,"size",void 0),m=r=(0,s._)([(0,a.c)("esri.symbols.support.Symbol3DHalo")],m);var b=o(14392),w=o(3856);o(72052);let q=class extends((0,w.q)(d.am)){constructor(e){super(e),this.color=null}};(0,s._)([(0,l.qq)(h.Q)],q.prototype,"color",void 0),q=(0,s._)([(0,a.c)("esri.symbols.support.Symbol3DTextBackground")],q);var v,g=o(39056);let f=v=class extends p.c{constructor(e){super(e),this._userSize=void 0,this.halo=null,this.horizontalAlignment="center",this.lineHeight=1,this.material=null,this.background=null,this.text=null,this.type="text",this.verticalAlignment="baseline"}get font(){return this._get("font")||null}set font(e){null!=e&&null!=this._userSize&&(e.size=this._userSize),this._set("font",e)}writeFont(e,t,o,r){const s={...r,textSymbol3D:!0};t.font=e.write({},s),delete t.font.size}get size(){return null!=this._userSize?this._userSize:null!=this.font?.size?this.font.size:9}set size(e){this._userSize=e,null!=this.font&&(this.font.size=this._userSize),this.notifyChange("size")}clone(){const e=new v({enabled:this.enabled,font:this.font&&(0,i.ct)(this.font),halo:this.halo&&(0,i.ct)(this.halo),horizontalAlignment:this.horizontalAlignment,lineHeight:this.lineHeight,material:null!=this.material?this.material.clone():null,text:this.text,verticalAlignment:this.verticalAlignment,background:(0,i.ct)(this.background)});return e._userSize=this._userSize,e}static fromTextSymbol(e){return new v({font:null!=e.font?e.font.clone():new y.c,halo:_(e.haloColor,e.haloSize),horizontalAlignment:e.horizontalAlignment,lineHeight:e.lineHeight,material:e.color?new b.e({color:e.color.clone()}):null,text:e.text,verticalAlignment:e.verticalAlignment,background:e.backgroundColor?new q({color:e.backgroundColor.clone()}):null})}};function _(e,t){return e&&null!=t&&t>0?new m({color:(0,i.ct)(e),size:t}):null}(0,s._)([(0,l.qq)({type:y.c,json:{write:!0}})],f.prototype,"font",null),(0,s._)([(0,c.G)("font")],f.prototype,"writeFont",null),(0,s._)([(0,l.qq)({type:m,json:{write:!0}})],f.prototype,"halo",void 0),(0,s._)([(0,l.qq)({...g.qK,json:{default:"center",write:!0}})],f.prototype,"horizontalAlignment",void 0),(0,s._)([(0,l.qq)({...g.KO,json:{default:1,write:!0}})],f.prototype,"lineHeight",void 0),(0,s._)([(0,l.qq)({type:b.e,json:{write:!0}})],f.prototype,"material",void 0),(0,s._)([(0,l.qq)({type:q,json:{write:!0}})],f.prototype,"background",void 0),(0,s._)([(0,l.qq)(h.k)],f.prototype,"size",null),(0,s._)([(0,l.qq)({type:String,json:{write:!0}})],f.prototype,"text",void 0),(0,s._)([(0,n.G)({Text:"text"},{readOnly:!0})],f.prototype,"type",void 0),(0,s._)([(0,l.qq)({...g.sB,json:{default:"baseline",write:!0}})],f.prototype,"verticalAlignment",void 0),f=v=(0,s._)([(0,a.c)("esri.symbols.TextSymbol3DLayer")],f);const S=f},36536:(e,t,o)=>{o.d(t,{c:()=>d});var r,s=o(41948),i=o(44728),l=o(62088),n=o(1580),a=o(53368),c=o(9968),y=o(12552),p=o(48939);let h=r=class extends p.c{constructor(e){super(e),this.color=u.clone(),this.type="water",this.waterbodySize="medium",this.waveDirection=null,this.waveStrength="moderate"}clone(){return new r({color:(0,l.ct)(this.color),waterbodySize:this.waterbodySize,waveDirection:this.waveDirection,waveStrength:this.waveStrength})}};(0,s._)([(0,n.qq)({type:i.c,nonNullable:!0,json:{type:[a.Ab],write:(e,t,o)=>t[o]=e.toArray(i.c.AlphaMode.UNLESS_OPAQUE),default:()=>u.clone(),defaultEquals:e=>e.toCss(!0)===u.toCss(!0)}})],h.prototype,"color",void 0),(0,s._)([(0,c.G)({Water:"water"},{readOnly:!0})],h.prototype,"type",void 0),(0,s._)([(0,n.qq)({type:["small","medium","large"],json:{write:!0,default:"medium"}})],h.prototype,"waterbodySize",void 0),(0,s._)([(0,n.qq)({type:Number,json:{write:!0,default:null}})],h.prototype,"waveDirection",void 0),(0,s._)([(0,n.qq)({type:["calm","rippled","slight","moderate"],json:{write:!0,default:"moderate"}})],h.prototype,"waveStrength",void 0),h=r=(0,s._)([(0,y.c)("esri.symbols.WaterSymbol3DLayer")],h);const u=new i.c([0,119,190]),d=h},91744:(e,t,o)=>{o.d(t,{c:()=>m});var r,s=o(41948),i=o(66360),l=o(10860),n=o(1580),a=(o(9456),o(72052),o(9968)),c=o(12552),y=o(54872),p=o(91952),h=o(71996),u=o(95944);let d=r=class extends h.c{constructor(e){super(e),this.color=null,this.styleName=null,this.portal=null,this.styleUrl=null,this.thumbnail=null,this.name=null,this.type="web-style"}get _fetchCacheKey(){const e=null!=this.portal?this.portal:y.c.getDefault(),t=e.user?e.user.username:null;return`${this.styleName}:${this.styleUrl}:${this.name}:${t}:${e.url}`}read(e,t){this.portal=t?.portal,super.read(e,t)}clone(){return new r({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}fetchSymbol(e){return this._fetchSymbol("webRef",e)}fetchCIMSymbol(e){return this._fetchSymbol("cimRef",e)}async _fetchSymbol(e,t){const r=null!=t?t.cache:null,s=r?this._fetchCacheKey:null;if(null!=r){const e=s&&r.get(s);if(e)return e.clone()}const{resolveWebStyleSymbol:n}=await o.e(3652).then(o.bind(o,63652));(0,l.wp)(t);const a=n(this,{portal:this.portal},e,t);a.catch((e=>{i.c.getLogger(this).error("#fetchSymbol()","Failed to create symbol from style",e)}));const c=await a;return"webRef"===e&&"point-3d"===c.type||"cimRef"===e&&"cim"===c.type?(null!=r&&r.set(s,c.clone()),c):null}};(0,s._)([(0,n.qq)({json:{write:!1}})],d.prototype,"color",void 0),(0,s._)([(0,n.qq)({type:String,json:{write:!0}})],d.prototype,"styleName",void 0),(0,s._)([(0,n.qq)({type:y.c,json:{write:!1}})],d.prototype,"portal",void 0),(0,s._)([(0,n.qq)({type:String,json:{read:p.r,write:p.w}})],d.prototype,"styleUrl",void 0),(0,s._)([(0,n.qq)({type:u.u,json:{read:!1}})],d.prototype,"thumbnail",void 0),(0,s._)([(0,n.qq)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,s._)([(0,a.G)({styleSymbolReference:"web-style"},{readOnly:!0})],d.prototype,"type",void 0),(0,s._)([(0,n.qq)()],d.prototype,"_fetchCacheKey",null),d=r=(0,s._)([(0,c.c)("esri.symbols.WebStyleSymbol")],d);const m=d},2304:(e,t,o)=>{o.d(t,{c:()=>a});var r=o(41948),s=o(40504),i=o(1580),l=(o(9456),o(66360),o(72052),o(12552));let n=class extends s.am{constructor(e){super(e),this.visible=!0}clone(){}};(0,r._)([(0,i.qq)({type:["line"],constructOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),(0,r._)([(0,i.qq)({readOnly:!0})],n.prototype,"visible",void 0),n=(0,r._)([(0,l.c)("esri.symbols.callouts.Callout3D")],n);const a=n},86404:(e,t,o)=>{o.d(t,{c:()=>m});var r,s=o(41948),i=o(44728),l=o(62088),n=o(50144),a=o(1580),c=(o(9456),o(66360),o(9968)),y=o(12552),p=o(2304),h=o(68204),u=o(67552);let d=r=class extends p.c{constructor(e){super(e),this.type="line",this.color=new i.c([0,0,0,1]),this.size=(0,n.WM)(1),this.border=null}get visible(){return this.size>0&&null!=this.color&&this.color.a>0}clone(){return new r({color:(0,l.ct)(this.color),size:this.size,border:(0,l.ct)(this.border)})}};(0,s._)([(0,c.G)({line:"line"})],d.prototype,"type",void 0),(0,s._)([(0,a.qq)(u.Q)],d.prototype,"color",void 0),(0,s._)([(0,a.qq)(u.k)],d.prototype,"size",void 0),(0,s._)([(0,a.qq)({type:h.c,json:{write:!0}})],d.prototype,"border",void 0),(0,s._)([(0,a.qq)({readOnly:!0})],d.prototype,"visible",null),d=r=(0,s._)([(0,y.c)("esri.symbols.callouts.LineCallout3D")],d);const m=d},68204:(e,t,o)=>{o.d(t,{c:()=>h});var r,s=o(41948),i=o(44728),l=o(40504),n=o(62088),a=o(1580),c=(o(9456),o(66360),o(12552)),y=o(67552);let p=r=class extends l.am{constructor(e){super(e),this.color=new i.c("white")}clone(){return new r({color:(0,n.ct)(this.color)})}};(0,s._)([(0,a.qq)(y.Q)],p.prototype,"color",void 0),p=r=(0,s._)([(0,c.c)("esri.symbols.callouts.LineCallout3DBorder")],p);const h=p},79376:(e,t,o)=>{o.d(t,{K6:()=>n,Ku:()=>i,SU:()=>l});var r=o(2304),s=o(86404);function i(e){if(!e)return!1;const t=e.verticalOffset;return!!t&&!(t.screenLength<=0||null!=t.maxWorldLength&&t.maxWorldLength<=0)}function l(e){if(!e)return!1;if(!e.supportsCallout||!e.supportsCallout())return!1;const t=e.callout;return!!t&&!!t.visible&&!!i(e)}const n={types:{key:"type",base:r.c,typeMap:{line:s.c}},json:{write:!0}}},37904:(e,t,o)=>{o.d(t,{I:()=>v});var r=o(41948),s=o(44728),i=o(40504),l=o(62088),n=o(50144),a=o(1580),c=(o(9456),o(66360),o(12552)),y=o(67552);let p=class extends i.am{constructor(e){super(e),this.color=new s.c([0,0,0,1]),this.extensionLength=0,this.size=(0,n.WM)(1)}clone(){}cloneProperties(){return{color:(0,l.ct)(this.color),size:this.size,extensionLength:this.extensionLength}}};(0,r._)([(0,a.qq)({type:["solid","sketch"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],p.prototype,"type",void 0),(0,r._)([(0,a.qq)(y.Q)],p.prototype,"color",void 0),(0,r._)([(0,a.qq)({...y.k,json:{write:{overridePolicy:e=>({enabled:!!e})}}})],p.prototype,"extensionLength",void 0),(0,r._)([(0,a.qq)(y.k)],p.prototype,"size",void 0),p=(0,r._)([(0,c.c)("esri.symbols.edges.Edges3D")],p);const h=p;o(72052),o(20744);var u,d=o(9968);let m=u=class extends h{constructor(e){super(e),this.type="sketch"}clone(){return new u(this.cloneProperties())}};(0,r._)([(0,d.G)({sketch:"sketch"},{readOnly:!0})],m.prototype,"type",void 0),m=u=(0,r._)([(0,c.c)("esri.symbols.edges.SketchEdges3D")],m);const b=m;var w;let q=w=class extends h{constructor(e){super(e),this.type="solid"}clone(){return new w(this.cloneProperties())}};(0,r._)([(0,d.G)({solid:"solid"},{readOnly:!0})],q.prototype,"type",void 0),q=w=(0,r._)([(0,c.c)("esri.symbols.support.SolidEdges3D")],q);const v={types:{key:"type",base:h,typeMap:{solid:q,sketch:b}},json:{write:!0}}},20912:(e,t,o)=>{o.d(t,{c:()=>a});var r=o(41948),s=o(40504),i=o(1580),l=(o(9456),o(66360),o(72052),o(12552));let n=class extends s.am{constructor(e){super(e)}clone(){}};(0,r._)([(0,i.qq)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),n=(0,r._)([(0,l.c)("esri.symbols.patterns.LinePattern3D")],n);const a=n},9600:(e,t,o)=>{o.d(t,{c:()=>h});var r,s=o(41948),i=o(14628),l=o(1580),n=(o(9456),o(66360),o(72052),o(9968)),a=o(12552),c=o(20912);const y=(0,i.w)()({dash:"dash","dash-dot":"dash-dot","dash-dot-dot":"long-dash-dot-dot",dot:"dot","long-dash":"long-dash","long-dash-dot":"long-dash-dot",null:"none","short-dash":"short-dash","short-dash-dot":"short-dash-dot","short-dash-dot-dot":"short-dash-dot-dot","short-dot":"short-dot",solid:"solid"});let p=r=class extends c.c{constructor(e){super(e),this.type="style",this.style="solid"}clone(){const e={style:this.style};return new r(e)}};(0,s._)([(0,l.qq)({type:["style"]})],p.prototype,"type",void 0),(0,s._)([(0,n.G)(y),(0,l.qq)({type:["dash","dash-dot","dot","long-dash","long-dash-dot","long-dash-dot-dot","none","short-dash","short-dash-dot","short-dash-dot-dot","short-dot","solid"]})],p.prototype,"style",void 0),p=r=(0,s._)([(0,a.c)("esri.symbols.patterns.LineStylePattern3D")],p);const h=p},72940:(e,t,o)=>{o.d(t,{c:()=>a});var r=o(41948),s=o(40504),i=o(1580),l=(o(9456),o(66360),o(72052),o(12552));let n=class extends s.am{constructor(e){super(e)}clone(){}};(0,r._)([(0,i.qq)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),n=(0,r._)([(0,l.c)("esri.symbols.patterns.Pattern3D")],n);const a=n},47788:(e,t,o)=>{o.d(t,{c:()=>c});var r,s=o(41948),i=o(1580),l=(o(9456),o(66360),o(72052),o(12552)),n=o(72940);let a=r=class extends n.c{constructor(e){super(e),this.type="style",this.style="solid"}clone(){const e={style:this.style};return new r(e)}};(0,s._)([(0,i.qq)({type:["style"]})],a.prototype,"type",void 0),(0,s._)([(0,i.qq)({type:["backward-diagonal","cross","diagonal-cross","forward-diagonal","horizontal","none","solid","vertical"],json:{read:!0,write:!0}})],a.prototype,"style",void 0),a=r=(0,s._)([(0,l.c)("esri.symbols.patterns.StylePattern3D")],a);const c=a},51696:(e,t,o)=>{o.d(t,{Q:()=>a,x:()=>n});var r=o(20912),s=o(9600),i=o(72940),l=o(47788);const n={types:{key:"type",base:i.c,typeMap:{style:l.c}},json:{write:!0}},a={types:{key:"type",base:r.c,typeMap:{style:s.c}},json:{write:!0}}},33560:(e,t,o)=>{o.d(t,{c:()=>y});var r,s=o(41948),i=o(43780),l=o(1580),n=(o(9456),o(66360),o(72052),o(12552)),a=o(54872);let c=r=class extends i.c{constructor(e){super(e),this.name=null,this.styleUrl=null,this.styleName=null,this.portal=null}clone(){return new r({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}};(0,s._)([(0,l.qq)({type:String})],c.prototype,"name",void 0),(0,s._)([(0,l.qq)({type:String})],c.prototype,"styleUrl",void 0),(0,s._)([(0,l.qq)({type:String})],c.prototype,"styleName",void 0),(0,s._)([(0,l.qq)({type:a.c})],c.prototype,"portal",void 0),c=r=(0,s._)([(0,n.c)("esri.symbols.support.StyleOrigin")],c);const y=c},14392:(e,t,o)=>{o.d(t,{e:()=>c});var r,s=o(41948),i=o(40504),l=o(1580),n=(o(9456),o(66360),o(72052),o(12552)),a=o(67552);let c=r=class extends i.am{constructor(e){super(e),this.color=null}clone(){const e={color:null!=this.color?this.color.clone():null};return new r(e)}};(0,s._)([(0,l.qq)(a.Q)],c.prototype,"color",void 0),c=r=(0,s._)([(0,n.c)("esri.symbols.support.Symbol3DMaterial")],c)},53e3:(e,t,o)=>{o.d(t,{c:()=>y});var r,s=o(41948),i=o(40504),l=o(1580),n=(o(9456),o(66360),o(72052),o(12552)),a=o(67552);let c=r=class extends i.am{constructor(e){super(e),this.screenLength=0,this.minWorldLength=0,this.maxWorldLength=null}clone(){return new r({screenLength:this.screenLength,minWorldLength:this.minWorldLength,maxWorldLength:this.maxWorldLength})}};(0,s._)([(0,l.qq)(a.k)],c.prototype,"screenLength",void 0),(0,s._)([(0,l.qq)({type:Number,nonNullable:!0,json:{write:!0,default:0}})],c.prototype,"minWorldLength",void 0),(0,s._)([(0,l.qq)({type:Number,json:{write:!0}})],c.prototype,"maxWorldLength",void 0),c=r=(0,s._)([(0,n.c)("esri.symbols.support.Symbol3DVerticalOffset")],c);const y=c},95944:(e,t,o)=>{o.d(t,{u:()=>a});var r,s=o(41948),i=o(43780),l=o(1580),n=(o(9456),o(66360),o(72052),o(12552));let a=r=class extends i.c{constructor(){super(...arguments),this.url=""}clone(){return new r({url:this.url})}};(0,s._)([(0,l.qq)({type:String})],a.prototype,"url",void 0),a=r=(0,s._)([(0,n.c)("esri.symbols.support.Thumbnail")],a)},98008:(e,t,o)=>{o.d(t,{CO:()=>l,Ky:()=>i,WK:()=>s});var r=o(44728);const s=new r.c("white"),i=(new r.c("black"),new r.c([255,255,255,0]));function l(e){return 0===e.r&&0===e.g&&0===e.b}},67552:(e,t,o)=>{o.d(t,{Q:()=>n,k:()=>a});var r=o(44728),s=o(50144),i=o(53368),l=o(9332);const n={type:r.c,json:{type:[i.Ab],default:null,read:{source:["color","transparency"],reader:function(e,t){const o=null!=t.transparency?(0,l.u)(t.transparency):1,s=t.color;return s&&Array.isArray(s)?new r.c([s[0]||0,s[1]||0,s[2]||0,o]):null}},write:{target:{color:{type:[i.Ab]},transparency:{type:i.Ab}},writer:function(e,t){t.color=e.toJSON().slice(0,3);const o=(0,l.g)(e.a);0!==o&&(t.transparency=o)}}}},a={type:Number,cast:s.Qz,json:{write:!0}}},16100:(e,t,o)=>{o.d(t,{cP:()=>c,ox:()=>a,qU:()=>n,s9:()=>y}),o(9456),o(62484);var r=o(77048);const s=(0,r.WK)(-.5,-.5,-.5,.5,.5,.5),i=(0,r.WK)(-.5,-.5,0,.5,.5,1),l=(0,r.WK)(-.5,-.5,0,.5,.5,.5);function n(e){switch(e){case"sphere":case"cube":case"diamond":return s;case"cylinder":case"cone":case"inverted-cone":return i;case"tetrahedron":return l;default:return}}const a=["butt","square","round"],c=[...a,"none"],y=["miter","bevel","round"]},99804:(e,t,o)=>{o.d(t,{Ck:()=>l,qW:()=>n});var r=o(28176),s=o(91952);function i(e,t){return function(e){return!(null==e||"service"!==e.origin&&"portal-item"!==e.origin||"feature"!==e.layer?.type&&"stream"!==e.layer?.type)}(t)&&!(0,r.ic)(e)&&t?.layer?.parsedUrl?(0,r.kn)(t.layer.parsedUrl.path,"images",e):(0,s.f)(e,t)}const l={json:{read:{source:["imageData","url"],reader:function(e,t,o){return t.imageData?(0,r.Gg)({mediaType:t.contentType||"image/png",isBase64:!0,data:t.imageData}):i(t.url,o)}},write:{writer(e,t,o,i){!function(e,t,o,i){if((0,r.o9)(e)){const l=(0,r.nV)(e);if(!l)return;t.contentType=l.mediaType,t.imageData=l.data,o&&o.imageData===t.imageData&&o.url&&(0,s.w)(o.url,t,"url",i)}else(0,s.w)(e,t,"url",i)}(e,t,this.source,i)}}}},n={readOnly:!0,json:{read:{source:["imageData","url"],reader(e,t,o){const r={};return t.imageData&&(r.imageData=t.imageData),t.contentType&&(r.contentType=t.contentType),t.url&&(r.url=i(t.url,o)),r}}}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7988],{17988:(e,t,o)=>{o.d(t,{ey:()=>A,QZ:()=>k,_8:()=>D,GM:()=>C,Wk:()=>N,Qw:()=>M,kH:()=>W,uE:()=>U,IX:()=>P,Gw:()=>G});var r,s=o(53368),i=o(64408),l=o(76172),n=(o(18784),o(31376)),a=(o(87860),o(73771),o(56144),o(86896)),c=o(79756),y=(o(7380),o(74483),o(52032)),p=(o(28664),o(75619),o(41948)),h=o(62088),u=o(50144),d=o(1580),m=(o(9456),o(66360),o(9968)),b=o(12552),w=o(99804);let q=r=class extends n.c{constructor(...e){super(...e),this.type="picture-fill",this.url=null,this.xscale=1,this.yscale=1,this.width=12,this.height=12,this.xoffset=0,this.yoffset=0,this.source=null}normalizeCtorArgs(e,t,o,r){if(e&&"string"!=typeof e&&null==e.imageData)return e;const s={};return e&&(s.url=e),t&&(s.outline=t),null!=o&&(s.width=(0,u.Qz)(o)),null!=r&&(s.height=(0,u.Qz)(r)),s}clone(){const e=new r({color:(0,h.ct)(this.color),height:this.height,outline:this.outline&&this.outline.clone(),url:this.url,width:this.width,xoffset:this.xoffset,xscale:this.xscale,yoffset:this.yoffset,yscale:this.yscale});return e._set("source",(0,h.ct)(this.source)),e}hash(){return`${super.hash()}.${this.color?.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`}};(0,p._)([(0,m.G)({esriPFS:"picture-fill"},{readOnly:!0})],q.prototype,"type",void 0),(0,p._)([(0,d.qq)(w.Ck)],q.prototype,"url",void 0),(0,p._)([(0,d.qq)({type:Number,json:{write:!0}})],q.prototype,"xscale",void 0),(0,p._)([(0,d.qq)({type:Number,json:{write:!0}})],q.prototype,"yscale",void 0),(0,p._)([(0,d.qq)({type:Number,cast:u.Qz,json:{write:!0}})],q.prototype,"width",void 0),(0,p._)([(0,d.qq)({type:Number,cast:u.Qz,json:{write:!0}})],q.prototype,"height",void 0),(0,p._)([(0,d.qq)({type:Number,cast:u.Qz,json:{write:!0}})],q.prototype,"xoffset",void 0),(0,p._)([(0,d.qq)({type:Number,cast:u.Qz,json:{write:!0}})],q.prototype,"yoffset",void 0),(0,p._)([(0,d.qq)(w.qW)],q.prototype,"source",void 0),q=r=(0,p._)([(0,b.c)("esri.symbols.PictureFillSymbol")],q);const v=q;var f=o(76060),g=o(57908),_=o(22148),S=o(47472),x=o(7432),j=o(49736),L=o(71996),z=(o(41528),o(48939),o(28652)),O=(o(14212),o(36536),o(91744));function k(e){if(!e)return!1;switch(e.type){case"picture-fill":case"picture-marker":case"simple-fill":case"simple-line":case"simple-marker":case"text":case"cim":return!0;default:return!1}}function D(e){if(!e)return!1;switch(e.type){case"label-3d":case"line-3d":case"mesh-3d":case"point-3d":case"polygon-3d":return!0;default:return!1}}o(86404),o(68204);const N={base:L.c,key:"type",typeMap:{"simple-fill":S.c,"picture-fill":v,"picture-marker":f.c,"simple-line":x.c,"simple-marker":j.c,text:z.c,"label-3d":a.c,"line-3d":c.c,"mesh-3d":y.c,"point-3d":g.c,"polygon-3d":_.c,"web-style":O.c,cim:l.c},errorContext:"symbol"},M={base:L.c,key:"type",typeMap:{"picture-marker":f.c,"simple-marker":j.c,text:z.c,"web-style":O.c,cim:l.c},errorContext:"symbol"},C=(0,i.g)({types:N}),P={base:L.c,key:"type",typeMap:{"simple-fill":S.c,"picture-fill":v,"picture-marker":f.c,"simple-line":x.c,"simple-marker":j.c,text:z.c,"line-3d":c.c,"mesh-3d":y.c,"point-3d":g.c,"polygon-3d":_.c,"web-style":O.c,cim:l.c},errorContext:"symbol"},W={base:L.c,key:"type",typeMap:{text:z.c,"label-3d":a.c},errorContext:"symbol"},G=(L.c,a.c,c.c,y.c,g.c,_.c,O.c,{base:L.c,key:"type",typeMap:{"line-3d":c.c,"mesh-3d":y.c,"point-3d":g.c,"polygon-3d":_.c,"web-style":O.c,cim:l.c},errorContext:"symbol"}),U={base:L.c,key:"type",typeMap:{"label-3d":a.c},errorContext:"symbol"},A=(0,s.S2)(N)},76172:(e,t,o)=>{o.d(t,{c:()=>m});var r,s=o(41948),i=o(62088),l=o(88264),n=o(1580),a=(o(9456),o(66360),o(9968)),c=o(33600),y=o(12552),p=o(18996),h=o(564),u=o(71996);let d=r=class extends u.c{constructor(e){super(e),this.data=null,this.type="cim"}readData(e,t){return t}writeData(e,t){Object.assign(t,e)}async collectRequiredFields(e,t){if("CIMSymbolReference"===this.data?.type){const o=this.data.primitiveOverrides;if(o){const r=o.map((o=>{const r=o.valueExpressionInfo;return r?(0,h.AN)(e,t,r.expression):null}));await Promise.all(r)}}}clone(){return new r({data:(0,i.ct)(this.data)})}hash(){return(0,l.sV)(JSON.stringify(this.data)).toString()}};(0,s._)([(0,n.qq)({json:{write:!1}})],d.prototype,"color",void 0),(0,s._)([(0,n.qq)({json:{write:!0}})],d.prototype,"data",void 0),(0,s._)([(0,c.E)("data",["symbol"])],d.prototype,"readData",null),(0,s._)([(0,p.G)("data",{})],d.prototype,"writeData",null),(0,s._)([(0,a.G)({CIMSymbolReference:"cim"},{readOnly:!0})],d.prototype,"type",void 0),d=r=(0,s._)([(0,y.c)("esri.symbols.CIMSymbol")],d);const m=d},18784:(e,t,o)=>{o.d(t,{c:()=>h});var r,s=o(41948),i=o(1580),l=(o(9456),o(66360),o(72052),o(9968)),n=o(12552),a=o(48939),c=o(37904),y=o(14392);let p=r=class extends a.c{constructor(e){super(e),this.type="extrude",this.size=1,this.material=null,this.castShadows=!0,this.edges=null}clone(){return new r({edges:this.edges&&this.edges.clone(),enabled:this.enabled,material:null!=this.material?this.material.clone():null,castShadows:this.castShadows,size:this.size})}};(0,s._)([(0,l.G)({Extrude:"extrude"},{readOnly:!0})],p.prototype,"type",void 0),(0,s._)([(0,i.qq)({type:Number,json:{write:{enabled:!0,isRequired:!0}},nonNullable:!0})],p.prototype,"size",void 0),(0,s._)([(0,i.qq)({type:y.e,json:{write:!0}})],p.prototype,"material",void 0),(0,s._)([(0,i.qq)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],p.prototype,"castShadows",void 0),(0,s._)([(0,i.qq)(c.I)],p.prototype,"edges",void 0),p=r=(0,s._)([(0,n.c)("esri.symbols.ExtrudeSymbol3DLayer")],p);const h=p},87860:(e,t,o)=>{o.d(t,{c:()=>j});var r,s=o(41948),i=o(1580),l=(o(9456),o(66360),o(72052),o(9968)),n=o(12552),a=o(48939),c=o(37904),y=o(9600),p=o(47788),h=o(51696),u=o(98008),d=(o(20744),o(14392));let m=r=class extends d.e{constructor(e){super(e),this.colorMixMode=null}clone(){const e={color:null!=this.color?this.color.clone():null,colorMixMode:this.colorMixMode};return new r(e)}};(0,s._)([(0,l.G)({multiply:"multiply",replace:"replace",tint:"tint"})],m.prototype,"colorMixMode",void 0),m=r=(0,s._)([(0,n.c)("esri.symbols.support.Symbol3DFillMaterial")],m);var b,w=o(44728),q=o(40504),v=o(50144),f=o(67552),g=o(16100);let _=b=class extends q.am{constructor(e){super(e),this.color=new w.c([0,0,0,1]),this.size=(0,v.WM)(1),this.pattern=null,this.patternCap="butt"}clone(){const e={color:null!=this.color?this.color.clone():null,size:this.size,pattern:null!=this.pattern?this.pattern.clone():null,patternCap:this.patternCap};return new b(e)}};var S;(0,s._)([(0,i.qq)(f.Q)],_.prototype,"color",void 0),(0,s._)([(0,i.qq)(f.k)],_.prototype,"size",void 0),(0,s._)([(0,i.qq)(h.Q)],_.prototype,"pattern",void 0),(0,s._)([(0,i.qq)({type:g.ox,json:{default:"butt",write:{overridePolicy(){return{enabled:null!=this.pattern}}}}})],_.prototype,"patternCap",void 0),_=b=(0,s._)([(0,n.c)("esri.symbols.support.Symbol3DOutline")],_);let x=S=class extends a.c{constructor(e){super(e),this.type="fill",this.material=null,this.pattern=null,this.castShadows=!0,this.outline=null,this.edges=null}clone(){const e={edges:null!=this.edges?this.edges.clone():null,enabled:this.enabled,material:null!=this.material?this.material.clone():null,pattern:null!=this.pattern?this.pattern.clone():null,castShadows:this.castShadows,outline:null!=this.outline?this.outline.clone():null};return new S(e)}static fromSimpleFillSymbol(e){const t=e.outline&&e.outline.style&&"inside-frame"!==e.outline.style&&"solid"!==e.outline.style?new y.c({style:e.outline.style}):null,o={size:e.outline?.width??0,color:(e.outline?.color??u.WK).clone(),pattern:t};return t&&e.outline?.cap&&(o.patternCap=e.outline.cap),new S({material:new m({color:(e.color??u.Ky).clone()}),pattern:e.style&&"solid"!==e.style?new p.c({style:e.style}):null,outline:o})}};(0,s._)([(0,l.G)({Fill:"fill"},{readOnly:!0})],x.prototype,"type",void 0),(0,s._)([(0,i.qq)({type:m,json:{write:!0}})],x.prototype,"material",void 0),(0,s._)([(0,i.qq)(h.x)],x.prototype,"pattern",void 0),(0,s._)([(0,i.qq)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],x.prototype,"castShadows",void 0),(0,s._)([(0,i.qq)({type:_,json:{write:!0}})],x.prototype,"outline",void 0),(0,s._)([(0,i.qq)(c.I)],x.prototype,"edges",void 0),x=S=(0,s._)([(0,n.c)("esri.symbols.FillSymbol3DLayer")],x);const j=x},56144:(e,t,o)=>{o.d(t,{c:()=>W});var r,s=o(41948),i=o(66360),l=o(28176),n=o(1580),a=(o(9456),o(72052),o(9968)),c=o(12552),y=o(48939),p=o(98008),h=o(14628),u=o(40504),d=o(33600),m=o(18996),b=o(91952);const w=(0,h.w)()({circle:"circle",square:"square",cross:"cross",x:"x",kite:"kite",triangle:"triangle"});let q=r=class extends u.am{constructor(e){super(e)}readHref(e,t,o){return e?(0,b.f)(e,o):t.dataURI}writeHref(e,t,o,r){e&&((0,l.o9)(e)?t.dataURI=e:(t.href=(0,b.t)(e,r),(0,l.ic)(t.href)&&(t.href=(0,l.k7)(t.href))))}clone(){return new r({href:this.href,primitive:this.primitive})}};(0,s._)([(0,n.qq)({type:String,json:{write:!0,read:{source:["href","dataURI"]}}})],q.prototype,"href",void 0),(0,s._)([(0,d.E)("href")],q.prototype,"readHref",null),(0,s._)([(0,m.G)("href",{href:{type:String},dataURI:{type:String}})],q.prototype,"writeHref",null),(0,s._)([(0,a.G)(w)],q.prototype,"primitive",void 0),q=r=(0,s._)([(0,c.c)("esri.symbols.support.IconSymbol3DLayerResource")],q);var v,f=o(67552),g=o(43780);let _=v=class extends g.c{constructor(){super(...arguments),this.x=0,this.y=0}clone(){return new v({x:this.x,y:this.y})}};(0,s._)([(0,n.qq)({type:Number})],_.prototype,"x",void 0),(0,s._)([(0,n.qq)({type:Number})],_.prototype,"y",void 0),_=v=(0,s._)([(0,c.c)("esri.symbols.support.Symbol3DAnchorPosition2D")],_);var S,x=o(44728),j=o(50144);let L=S=class extends u.am{constructor(e){super(e),this.color=new x.c([0,0,0,1]),this.size=(0,j.WM)(1)}clone(){const e={color:null!=this.color?this.color.clone():null,size:this.size};return new S(e)}};(0,s._)([(0,n.qq)(f.Q)],L.prototype,"color",void 0),(0,s._)([(0,n.qq)(f.k)],L.prototype,"size",void 0),L=S=(0,s._)([(0,c.c)("esri.symbols.support.Symbol3DIconOutline")],L);var z,O=o(14392);const k="esri.symbols.IconSymbol3DLayer";let D=z=class extends y.c{constructor(e){super(e),this.material=null,this.resource=null,this.type="icon",this.size=12,this.anchor="center",this.anchorPosition=null,this.outline=null}clone(){return new z({anchor:this.anchor,anchorPosition:this.anchorPosition&&this.anchorPosition.clone(),enabled:this.enabled,material:null!=this.material?this.material.clone():null,outline:null!=this.outline?this.outline.clone():null,resource:this.resource&&this.resource.clone(),size:this.size})}static fromSimpleMarkerSymbol(e){const t=e.color||p.WK,o=N(e),r=e.outline&&e.outline.width>0?{size:e.outline.width,color:(e.outline.color||p.WK).clone()}:null;return new z({size:e.size,resource:{primitive:P(e.style)},material:{color:t},outline:r,anchor:o?"relative":void 0,anchorPosition:o})}static fromPictureMarkerSymbol(e){const t=!e.color||(0,p.CO)(e.color)?p.WK:e.color,o=N(e);return new z({size:e.width<=e.height?e.height:e.width,resource:{href:e.url},material:{color:t.clone()},anchor:o?"relative":void 0,anchorPosition:o})}static fromCIMSymbol(e){return new z({resource:{href:(0,l.Gg)({mediaType:"application/json",data:JSON.stringify(e.data)})}})}};function N(e){const t="width"in e?e.width:e.size,o="height"in e?e.height:e.size,r=M(e.xoffset),s=M(e.yoffset);return(r||s)&&t&&o?{x:-r/t,y:s/o}:null}function M(e){return isFinite(e)?e:0}(0,s._)([(0,n.qq)({type:O.e,json:{write:!0}})],D.prototype,"material",void 0),(0,s._)([(0,n.qq)({type:q,json:{write:!0}})],D.prototype,"resource",void 0),(0,s._)([(0,a.G)({Icon:"icon"},{readOnly:!0})],D.prototype,"type",void 0),(0,s._)([(0,n.qq)(f.k)],D.prototype,"size",void 0),(0,s._)([(0,a.G)({center:"center",left:"left",right:"right",top:"top",bottom:"bottom",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",relative:"relative"}),(0,n.qq)({json:{default:"center"}})],D.prototype,"anchor",void 0),(0,s._)([(0,n.qq)({type:_,json:{type:[Number],read:{reader:e=>new _({x:e[0],y:e[1]})},write:{writer:(e,t)=>{t.anchorPosition=[e.x,e.y]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],D.prototype,"anchorPosition",void 0),(0,s._)([(0,n.qq)({type:L,json:{write:!0}})],D.prototype,"outline",void 0),D=z=(0,s._)([(0,c.c)(k)],D);const C={circle:"circle",cross:"cross",diamond:"kite",square:"square",x:"x",triangle:"triangle",path:null};function P(e){return C[e]||(i.c.getLogger(k).warn(`${e} cannot be mapped to Icon symbol. Fallback to "circle"`),"circle")}const W=D},86896:(e,t,o)=>{o.d(t,{c:()=>b});var r,s=o(41948),i=o(2952),l=o(62088),n=o(1580),a=(o(9456),o(66360),o(9968)),c=o(12552),y=o(41528),p=o(14212),h=o(79376),u=o(53e3);const d=i.c.ofType({base:null,key:"type",typeMap:{text:p.c}});let m=r=class extends y.c{constructor(e){super(e),this.verticalOffset=null,this.callout=null,this.styleOrigin=null,this.symbolLayers=new d,this.type="label-3d"}supportsCallout(){return!0}hasVisibleCallout(){return(0,h.SU)(this)}hasVisibleVerticalOffset(){return(0,h.Ku)(this)}clone(){return new r({styleOrigin:(0,l.ct)(this.styleOrigin),symbolLayers:(0,l.ct)(this.symbolLayers),thumbnail:(0,l.ct)(this.thumbnail),callout:(0,l.ct)(this.callout),verticalOffset:(0,l.ct)(this.verticalOffset)})}static fromTextSymbol(e){return new r({symbolLayers:new i.c([p.c.fromTextSymbol(e)])})}};(0,s._)([(0,n.qq)({type:u.c,json:{write:!0}})],m.prototype,"verticalOffset",void 0),(0,s._)([(0,n.qq)(h.K6)],m.prototype,"callout",void 0),(0,s._)([(0,n.qq)({json:{read:!1,write:!1}})],m.prototype,"styleOrigin",void 0),(0,s._)([(0,n.qq)({type:d})],m.prototype,"symbolLayers",void 0),(0,s._)([(0,a.G)({LabelSymbol3D:"label-3d"},{readOnly:!0})],m.prototype,"type",void 0),m=r=(0,s._)([(0,c.c)("esri.symbols.LabelSymbol3D")],m);const b=m},79756:(e,t,o)=>{o.d(t,{c:()=>b});var r,s=o(41948),i=o(2952),l=o(62088),n=o(1580),a=(o(9456),o(66360),o(9968)),c=o(12552),y=o(7380),p=o(75619),h=o(41528);const u=i.c.ofType({base:null,key:"type",typeMap:{line:y.c,path:p.c}}),d=i.c.ofType({base:null,key:"type",typeMap:{line:y.c,path:p.c}});let m=r=class extends h.c{constructor(e){super(e),this.symbolLayers=new u,this.type="line-3d"}clone(){return new r({styleOrigin:(0,l.ct)(this.styleOrigin),symbolLayers:(0,l.ct)(this.symbolLayers),thumbnail:(0,l.ct)(this.thumbnail)})}static fromSimpleLineSymbol(e){return new r({symbolLayers:new i.c([y.c.fromSimpleLineSymbol(e)])})}};(0,s._)([(0,n.qq)({type:u,json:{type:d}})],m.prototype,"symbolLayers",void 0),(0,s._)([(0,a.G)({LineSymbol3D:"line-3d"},{readOnly:!0})],m.prototype,"type",void 0),m=r=(0,s._)([(0,c.c)("esri.symbols.LineSymbol3D")],m);const b=m},7380:(e,t,o)=>{o.d(t,{c:()=>x});var r=o(41948),s=o(50144),i=o(1580),l=(o(9456),o(66360),o(72052),o(9968)),n=o(12552),a=o(44728),c=o(3856),y=o(40504),p=o(53368),h=o(97556);let u=class extends((0,c.q)(y.am)){constructor(e){super(e),this.type="style",this.placement="begin-end",this.style="arrow",this.color=null}equals(e){return null!=e&&e.placement===this.placement&&e.style===this.style&&(null==this.color&&null==e.color||null!=this.color&&null!=e.color&&this.color.toJSON()===e.color.toJSON())}};(0,r._)([(0,i.qq)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],u.prototype,"type",void 0),(0,r._)([(0,i.qq)({type:h.w,json:{default:"begin-end",write:!0}})],u.prototype,"placement",void 0),(0,r._)([(0,i.qq)({type:h.U,json:{default:"arrow",write:!0}})],u.prototype,"style",void 0),(0,r._)([(0,i.qq)({type:a.c,json:{type:[p.Ab],default:null,write:!0}})],u.prototype,"color",void 0),u=(0,r._)([(0,n.c)("esri.symbols.LineStyleMarker3D")],u);const d=u;var m,b=o(48939),w=o(9600),q=o(51696),v=o(98008),f=o(67552),g=o(14392),_=o(16100);let S=m=class extends b.c{constructor(e){super(e),this.material=null,this.type="line",this.join="miter",this.cap="butt",this.size=(0,s.WM)(1),this.pattern=null,this.marker=null}clone(){const e={enabled:this.enabled,material:null!=this.material?this.material.clone():null,size:this.size,join:this.join,cap:this.cap,pattern:null!=this.pattern?this.pattern.clone():null,marker:null!=this.marker?this.marker.clone():null};return new m(e)}static fromSimpleLineSymbol(e){const t={enabled:!0,size:e.width??(0,s.WM)(1),cap:e.cap||"butt",join:e.join||"miter",pattern:e.style&&"inside-frame"!==e.style?new w.c({style:e.style}):null,material:new g.e({color:(e.color||v.WK).clone()}),marker:e.marker?new d({placement:e.marker.placement,style:e.marker.style,color:e.marker.color?.clone()??null}):null};return new m(t)}};(0,r._)([(0,i.qq)({type:g.e,json:{write:!0}})],S.prototype,"material",void 0),(0,r._)([(0,l.G)({Line:"line"},{readOnly:!0})],S.prototype,"type",void 0),(0,r._)([(0,i.qq)({type:_.s9,json:{write:!0,default:"miter"}})],S.prototype,"join",void 0),(0,r._)([(0,i.qq)({type:_.ox,json:{write:!0,default:"butt"}})],S.prototype,"cap",void 0),(0,r._)([(0,i.qq)(f.k)],S.prototype,"size",void 0),(0,r._)([(0,i.qq)(q.Q)],S.prototype,"pattern",void 0),(0,r._)([(0,i.qq)({types:{key:"type",base:d,typeMap:{style:d}},json:{write:!0}})],S.prototype,"marker",void 0),S=m=(0,r._)([(0,n.c)("esri.symbols.LineSymbol3DLayer")],S);const x=S},52032:(e,t,o)=>{o.d(t,{c:()=>d});var r,s=o(41948),i=o(2952),l=o(62088),n=o(1580),a=(o(9456),o(66360),o(9968)),c=o(12552),y=o(87860),p=o(41528);const h=i.c.ofType({base:null,key:"type",typeMap:{fill:y.c}});let u=r=class extends p.c{constructor(e){super(e),this.symbolLayers=new h,this.type="mesh-3d"}clone(){return new r({styleOrigin:(0,l.ct)(this.styleOrigin),symbolLayers:(0,l.ct)(this.symbolLayers),thumbnail:(0,l.ct)(this.thumbnail)})}static fromSimpleFillSymbol(e){return new r({symbolLayers:new i.c([y.c.fromSimpleFillSymbol(e)])})}};(0,s._)([(0,n.qq)({type:h})],u.prototype,"symbolLayers",void 0),(0,s._)([(0,a.G)({MeshSymbol3D:"mesh-3d"},{readOnly:!0})],u.prototype,"type",void 0),u=r=(0,s._)([(0,c.c)("esri.symbols.MeshSymbol3D")],u);const d=u},28664:(e,t,o)=>{o.d(t,{c:()=>f});var r,s=o(41948),i=o(1580),l=(o(9456),o(66360),o(72052),o(9968)),n=o(12552),a=o(48939),c=o(14628),y=o(40504),p=o(91952);const h=(0,c.w)()({sphere:"sphere",cylinder:"cylinder",cube:"cube",cone:"cone",diamond:"diamond",tetrahedron:"tetrahedron",invertedCone:"inverted-cone"});let u=r=class extends y.am{clone(){return new r({href:this.href,primitive:this.primitive})}};(0,s._)([(0,i.qq)({type:String,json:{read:p.r,write:p.w}})],u.prototype,"href",void 0),(0,s._)([(0,l.G)(h)],u.prototype,"primitive",void 0),u=r=(0,s._)([(0,n.c)("esri.symbols.support.ObjectSymbol3DLayerResource")],u);var d,m=o(43780);let b=d=class extends m.c{constructor(){super(...arguments),this.x=0,this.y=0,this.z=0}clone(){return new d({x:this.x,y:this.y,z:this.z})}};(0,s._)([(0,i.qq)({type:Number})],b.prototype,"x",void 0),(0,s._)([(0,i.qq)({type:Number})],b.prototype,"y",void 0),(0,s._)([(0,i.qq)({type:Number})],b.prototype,"z",void 0),b=d=(0,s._)([(0,n.c)("esri.symbols.support.Symbol3DAnchorPosition3D")],b);var w,q=o(14392);let v=w=class extends a.c{constructor(e){super(e),this.material=null,this.castShadows=!0,this.resource=null,this.type="object",this.width=void 0,this.height=void 0,this.depth=void 0,this.anchor=void 0,this.anchorPosition=void 0,this.heading=void 0,this.tilt=void 0,this.roll=void 0}clone(){return new w({heading:this.heading,tilt:this.tilt,roll:this.roll,anchor:this.anchor,anchorPosition:this.anchorPosition?.clone(),depth:this.depth,enabled:this.enabled,height:this.height,material:this.material?.clone()??null,castShadows:this.castShadows,resource:this.resource?.clone(),width:this.width})}get isPrimitive(){return!this.resource||"string"!=typeof this.resource.href}};(0,s._)([(0,i.qq)({type:q.e,json:{write:!0}})],v.prototype,"material",void 0),(0,s._)([(0,i.qq)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],v.prototype,"castShadows",void 0),(0,s._)([(0,i.qq)({type:u,json:{write:!0}})],v.prototype,"resource",void 0),(0,s._)([(0,l.G)({Object:"object"},{readOnly:!0})],v.prototype,"type",void 0),(0,s._)([(0,i.qq)({type:Number,json:{write:!0}})],v.prototype,"width",void 0),(0,s._)([(0,i.qq)({type:Number,json:{write:!0}})],v.prototype,"height",void 0),(0,s._)([(0,i.qq)({type:Number,json:{write:!0}})],v.prototype,"depth",void 0),(0,s._)([(0,l.G)({center:"center",top:"top",bottom:"bottom",origin:"origin",relative:"relative"}),(0,i.qq)({json:{default:"origin"}})],v.prototype,"anchor",void 0),(0,s._)([(0,i.qq)({type:b,json:{type:[Number],read:{reader:e=>new b({x:e[0],y:e[1],z:e[2]})},write:{writer:(e,t)=>{t.anchorPosition=[e.x,e.y,e.z]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],v.prototype,"anchorPosition",void 0),(0,s._)([(0,i.qq)({type:Number,json:{write:!0}})],v.prototype,"heading",void 0),(0,s._)([(0,i.qq)({type:Number,json:{write:!0}})],v.prototype,"tilt",void 0),(0,s._)([(0,i.qq)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,s._)([(0,i.qq)({readOnly:!0})],v.prototype,"isPrimitive",null),v=w=(0,s._)([(0,n.c)("esri.symbols.ObjectSymbol3DLayer")],v);const f=v},75619:(e,t,o)=>{o.d(t,{c:()=>u});var r,s=o(41948),i=o(1580),l=(o(9456),o(66360),o(72052),o(9968)),n=o(33600),a=o(12552),c=o(48939),y=o(14392),p=o(16100);let h=r=class extends c.c{constructor(e){super(e),this.material=null,this.castShadows=!0,this.type="path",this.profile="circle",this.join="miter",this.cap="butt",this.width=void 0,this.height=void 0,this.anchor="center",this.profileRotation="all"}readWidth(e,t){return null!=e?e:null==t.height&&null!=t.size?t.size:void 0}readHeight(e,t){return null!=e?e:null==t.width&&null!=t.size?t.size:void 0}clone(){return new r({enabled:this.enabled,material:null!=this.material?this.material.clone():null,castShadows:this.castShadows,profile:this.profile,join:this.join,cap:this.cap,width:this.width,height:this.height,profileRotation:this.profileRotation,anchor:this.anchor})}};(0,s._)([(0,i.qq)({type:y.e,json:{write:!0}})],h.prototype,"material",void 0),(0,s._)([(0,i.qq)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],h.prototype,"castShadows",void 0),(0,s._)([(0,l.G)({Path:"path"},{readOnly:!0})],h.prototype,"type",void 0),(0,s._)([(0,i.qq)({type:["circle","quad"],json:{write:!0,default:"circle"}})],h.prototype,"profile",void 0),(0,s._)([(0,i.qq)({type:p.s9,json:{write:!0,default:"miter"}})],h.prototype,"join",void 0),(0,s._)([(0,i.qq)({type:p.cP,json:{write:!0,default:"butt"}})],h.prototype,"cap",void 0),(0,s._)([(0,i.qq)({type:Number,json:{write:{enabled:!0,target:{width:{type:Number},size:{type:Number}}}}})],h.prototype,"width",void 0),(0,s._)([(0,n.E)("width",["width","size","height"])],h.prototype,"readWidth",null),(0,s._)([(0,i.qq)({type:Number,json:{write:!0}})],h.prototype,"height",void 0),(0,s._)([(0,n.E)("height",["height","size","width"])],h.prototype,"readHeight",null),(0,s._)([(0,i.qq)({type:["center","bottom","top"],json:{write:!0,default:"center"}})],h.prototype,"anchor",void 0),(0,s._)([(0,i.qq)({type:["heading","all"],json:{write:!0,default:"all"}})],h.prototype,"profileRotation",void 0),h=r=(0,s._)([(0,a.c)("esri.symbols.PathSymbol3DLayer")],h);const u=h},76060:(e,t,o)=>{o.d(t,{c:()=>d});var r,s=o(41948),i=o(62088),l=o(50144),n=o(1580),a=(o(9456),o(66360),o(9968)),c=o(33600),y=o(12552),p=o(74483),h=o(99804);let u=r=class extends p.c{constructor(...e){super(...e),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(e,t,o){if(e&&"string"!=typeof e&&null==e.imageData)return e;const r={};return e&&(r.url=e),null!=t&&(r.width=(0,l.Qz)(t)),null!=o&&(r.height=(0,l.Qz)(o)),r}readHeight(e,t){return t.size||e}readWidth(e,t){return t.size||e}clone(){const e=new r({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return e._set("source",(0,i.ct)(this.source)),e}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,s._)([(0,n.qq)({json:{write:!1}})],u.prototype,"color",void 0),(0,s._)([(0,a.G)({esriPMS:"picture-marker"},{readOnly:!0})],u.prototype,"type",void 0),(0,s._)([(0,n.qq)(h.Ck)],u.prototype,"url",void 0),(0,s._)([(0,n.qq)(h.qW)],u.prototype,"source",void 0),(0,s._)([(0,n.qq)({type:Number,cast:l.Qz,json:{write:!0}})],u.prototype,"height",void 0),(0,s._)([(0,c.E)("height",["height","size"])],u.prototype,"readHeight",null),(0,s._)([(0,n.qq)({type:Number,cast:l.Qz,json:{write:!0}})],u.prototype,"width",void 0),(0,s._)([(0,n.qq)({json:{write:!1}})],u.prototype,"size",void 0),u=r=(0,s._)([(0,y.c)("esri.symbols.PictureMarkerSymbol")],u);const d=u},57908:(e,t,o)=>{o.d(t,{c:()=>f});var r,s=o(41948),i=o(44728),l=o(2952),n=o(62088),a=o(1580),c=(o(9456),o(66360),o(9968)),y=o(12552),p=o(56144),h=o(28664),u=o(41528),d=o(14212),m=o(79376),b=o(86404),w=o(53e3);const q=l.c.ofType({base:null,key:"type",typeMap:{icon:p.c,object:h.c,text:d.c}});let v=r=class extends u.c{constructor(e){super(e),this.verticalOffset=null,this.callout=null,this.symbolLayers=new q,this.type="point-3d"}supportsCallout(){if((this.symbolLayers?this.symbolLayers.length:0)<1)return!1;for(const e of this.symbolLayers.items)switch(e.type){case"icon":case"text":case"object":continue;default:return!1}return!0}hasVisibleCallout(){return(0,m.SU)(this)}hasVisibleVerticalOffset(){return(0,m.Ku)(this)}clone(){return new r({verticalOffset:(0,n.ct)(this.verticalOffset),callout:(0,n.ct)(this.callout),styleOrigin:(0,n.ct)(this.styleOrigin),symbolLayers:(0,n.ct)(this.symbolLayers),thumbnail:(0,n.ct)(this.thumbnail)})}static fromSimpleMarkerSymbol(e){return new r({symbolLayers:new l.c([p.c.fromSimpleMarkerSymbol(e)])})}static fromPictureMarkerSymbol(e){return new r({symbolLayers:new l.c([p.c.fromPictureMarkerSymbol(e)])})}static fromCIMSymbol(e){const t=e.data?.symbol?.type;if("CIMPointSymbol"!==t)return null;const o=e.data.symbol;return new r(o?.callout?{symbolLayers:new l.c([p.c.fromCIMSymbol(e)]),callout:new b.c({size:.5,color:new i.c([0,0,0])}),verticalOffset:new w.c({screenLength:40})}:{symbolLayers:new l.c([p.c.fromCIMSymbol(e)])})}static fromTextSymbol(e){return new r({symbolLayers:new l.c([d.c.fromTextSymbol(e)])})}};(0,s._)([(0,a.qq)({type:w.c,json:{write:!0}})],v.prototype,"verticalOffset",void 0),(0,s._)([(0,a.qq)(m.K6)],v.prototype,"callout",void 0),(0,s._)([(0,a.qq)({type:q,json:{origins:{"web-scene":{write:!0}}}})],v.prototype,"symbolLayers",void 0),(0,s._)([(0,c.G)({PointSymbol3D:"point-3d"},{readOnly:!0})],v.prototype,"type",void 0),v=r=(0,s._)([(0,y.c)("esri.symbols.PointSymbol3D")],v);const f=v},22148:(e,t,o)=>{o.d(t,{c:()=>S});var r,s=o(41948),i=o(2952),l=o(26832),n=o(62088),a=o(66360),c=o(57896),y=o(1580),p=(o(9456),o(9968)),h=o(12552),u=o(18784),d=o(87860),m=o(56144),b=o(7380),w=o(28664),q=o(41528),v=o(14212),f=o(36536);const g=i.c.ofType({base:null,key:"type",typeMap:{extrude:u.c,fill:d.c,icon:m.c,line:b.c,object:w.c,text:v.c,water:f.c}});let _=r=class extends q.c{constructor(e){super(e),this.symbolLayers=new g,this.type="polygon-3d"}initialize(){const e=e=>{"line"===e.type&&(0,l.O2)(a.c.getLogger(this),"LineSymbol3DLayer can not be used as a SymbolLayer with a PolygonSymbol3D symbol anymore.",{replacement:"Use FillSymbol3DLayer.outline instead.",version:"4.28"}),"text"===e.type&&(0,l.O2)(a.c.getLogger(this),"TextSymbol3DLayer can not be used as a SymbolLayer with a PolygonSymbol3D symbol anymore.",{replacement:"Use Labels instead.",version:"4.28"})};for(const t of this.symbolLayers)e(t);this.addHandles((0,c.on)((()=>this.symbolLayers),"after-add",(({item:t})=>e(t)),c.du))}clone(){return new r({styleOrigin:(0,n.ct)(this.styleOrigin),symbolLayers:(0,n.ct)(this.symbolLayers),thumbnail:(0,n.ct)(this.thumbnail)})}static fromJSON(e){const t=new r;if(t.read(e),2===t.symbolLayers.length&&"fill"===t.symbolLayers.at(0).type&&"line"===t.symbolLayers.at(1).type){const o=t.symbolLayers.at(0),r=t.symbolLayers.at(1);!r.enabled||e.symbolLayers?.[1]&&!1===e.symbolLayers[1].enable||(o.outline={size:r.size,color:null!=r.material?r.material.color:null}),t.symbolLayers.removeAt(1)}return t}static fromSimpleFillSymbol(e){return new r({symbolLayers:new i.c([d.c.fromSimpleFillSymbol(e)])})}};(0,s._)([(0,y.qq)({type:g,json:{write:!0}})],_.prototype,"symbolLayers",void 0),(0,s._)([(0,p.G)({PolygonSymbol3D:"polygon-3d"},{readOnly:!0})],_.prototype,"type",void 0),_=r=(0,s._)([(0,h.c)("esri.symbols.PolygonSymbol3D")],_);const S=_},41528:(e,t,o)=>{o.d(t,{c:()=>N});var r=o(41948),s=o(2952),i=o(30604),l=o(66360),n=o(28176),a=o(69504),c=o(1580),y=o(33392),p=(o(72052),o(9456),o(33600)),h=o(12552),u=o(18996),d=o(54872),m=o(91952),b=o(18784),w=o(87860),q=o(56144),v=o(7380),f=o(28664),g=o(75619),_=o(71996),S=o(48939),x=o(14212),j=o(36536),L=o(33560),z=o(95944);const O={icon:q.c,object:f.c,line:v.c,path:g.c,fill:w.c,extrude:b.c,text:x.c,water:j.c},k=s.c.ofType({base:S.c,key:"type",typeMap:O,errorContext:"symbol-layer"});let D=class extends _.c{constructor(e){super(e),this.styleOrigin=null,this.thumbnail=null,this.type=null;const t=this.__accessor__&&this.__accessor__.metadata&&this.__accessor__.metadata.symbolLayers,o=t?.type,r=o||s.c;this._set("symbolLayers",new r)}get color(){return null}set color(e){this.constructed&&l.c.getLogger(this).error("Symbol3D does not support colors on the symbol level. Colors may be set on individual symbol layer materials instead.")}set symbolLayers(e){(0,i.q)(e,this._get("symbolLayers"))}readStyleOrigin(e,t,o){if(e.styleUrl&&e.name){const t=(0,m.f)(e.styleUrl,o);return new L.c({styleUrl:t,name:e.name})}if(e.styleName&&e.name)return new L.c({portal:o?.portal||d.c.getDefault(),styleName:e.styleName,name:e.name});o?.messages&&o.messages.push(new a.c("symbol3d:incomplete-style-origin","Style origin requires either a 'styleUrl' or 'styleName' and a 'name' property",{context:o,definition:e}))}writeStyleOrigin(e,t,o,r){if(e.styleUrl&&e.name){let o=(0,m.t)(e.styleUrl,r);(0,n.ic)(o)&&(o=(0,n.k7)(o)),t.styleOrigin={styleUrl:o,name:e.name}}else e.styleName&&e.name&&(e.portal&&r?.portal&&!(0,n.kF)(e.portal.restUrl,r.portal.restUrl)?r?.messages&&r.messages.push(new a.c("symbol:cross-portal","The symbol style origin cannot be persisted because it refers to an item on a different portal than the one being saved to.",{symbol:this})):t.styleOrigin={styleName:e.styleName,name:e.name})}normalizeCtorArgs(e){return e instanceof S.c||e&&O[e.type]?{symbolLayers:[e]}:Array.isArray(e)?{symbolLayers:e}:e}};(0,r._)([(0,c.qq)({json:{read:!1,write:!1}})],D.prototype,"color",null),(0,r._)([(0,c.qq)({type:k,nonNullable:!0,json:{write:!0}}),(0,y.W)(i.W)],D.prototype,"symbolLayers",null),(0,r._)([(0,c.qq)({type:L.c})],D.prototype,"styleOrigin",void 0),(0,r._)([(0,p.E)("styleOrigin")],D.prototype,"readStyleOrigin",null),(0,r._)([(0,u.G)("styleOrigin",{"styleOrigin.styleUrl":{type:String},"styleOrigin.styleName":{type:String},"styleOrigin.name":{type:String}})],D.prototype,"writeStyleOrigin",null),(0,r._)([(0,c.qq)({type:z.u,json:{read:!1}})],D.prototype,"thumbnail",void 0),(0,r._)([(0,c.qq)({type:["point-3d","line-3d","polygon-3d","mesh-3d","label-3d"],readOnly:!0})],D.prototype,"type",void 0),D=(0,r._)([(0,h.c)("esri.symbols.Symbol3D")],D);const N=D},48939:(e,t,o)=>{o.d(t,{c:()=>c});var r=o(41948),s=o(40504),i=o(1580),l=(o(9456),o(66360),o(72052),o(12552)),n=o(18996);let a=class extends s.am{constructor(e){super(e),this.enabled=!0,this.type=null,this.ignoreDrivers=!1}writeEnabled(e,t,o){e||(t[o]=e)}};(0,r._)([(0,i.qq)({type:Boolean,json:{read:{source:"enable"},write:{target:"enable"}}})],a.prototype,"enabled",void 0),(0,r._)([(0,n.G)("enabled")],a.prototype,"writeEnabled",null),(0,r._)([(0,i.qq)({type:["icon","object","line","path","fill","water","extrude","text"],readOnly:!0})],a.prototype,"type",void 0),a=(0,r._)([(0,l.c)("esri.symbols.Symbol3DLayer")],a);const c=a},14212:(e,t,o)=>{o.d(t,{c:()=>S});var r,s=o(41948),i=o(62088),l=o(1580),n=(o(9456),o(66360),o(9968)),a=o(12552),c=o(18996),y=o(73771),p=o(48939),h=o(67552),u=o(44728),d=o(40504);let m=r=class extends d.am{constructor(){super(...arguments),this.color=new u.c([0,0,0,1]),this.size=0}clone(){const e={color:(0,i.ct)(this.color),size:this.size};return new r(e)}};(0,s._)([(0,l.qq)(h.Q)],m.prototype,"color",void 0),(0,s._)([(0,l.qq)(h.k)],m.prototype,"size",void 0),m=r=(0,s._)([(0,a.c)("esri.symbols.support.Symbol3DHalo")],m);var b=o(14392),w=o(3856);o(72052);let q=class extends((0,w.q)(d.am)){constructor(e){super(e),this.color=null}};(0,s._)([(0,l.qq)(h.Q)],q.prototype,"color",void 0),q=(0,s._)([(0,a.c)("esri.symbols.support.Symbol3DTextBackground")],q);var v,f=o(39056);let g=v=class extends p.c{constructor(e){super(e),this._userSize=void 0,this.halo=null,this.horizontalAlignment="center",this.lineHeight=1,this.material=null,this.background=null,this.text=null,this.type="text",this.verticalAlignment="baseline"}get font(){return this._get("font")||null}set font(e){null!=e&&null!=this._userSize&&(e.size=this._userSize),this._set("font",e)}writeFont(e,t,o,r){const s={...r,textSymbol3D:!0};t.font=e.write({},s),delete t.font.size}get size(){return null!=this._userSize?this._userSize:null!=this.font?.size?this.font.size:9}set size(e){this._userSize=e,null!=this.font&&(this.font.size=this._userSize),this.notifyChange("size")}clone(){const e=new v({enabled:this.enabled,font:this.font&&(0,i.ct)(this.font),halo:this.halo&&(0,i.ct)(this.halo),horizontalAlignment:this.horizontalAlignment,lineHeight:this.lineHeight,material:null!=this.material?this.material.clone():null,text:this.text,verticalAlignment:this.verticalAlignment,background:(0,i.ct)(this.background)});return e._userSize=this._userSize,e}static fromTextSymbol(e){return new v({font:null!=e.font?e.font.clone():new y.c,halo:_(e.haloColor,e.haloSize),horizontalAlignment:e.horizontalAlignment,lineHeight:e.lineHeight,material:e.color?new b.e({color:e.color.clone()}):null,text:e.text,verticalAlignment:e.verticalAlignment,background:e.backgroundColor?new q({color:e.backgroundColor.clone()}):null})}};function _(e,t){return e&&null!=t&&t>0?new m({color:(0,i.ct)(e),size:t}):null}(0,s._)([(0,l.qq)({type:y.c,json:{write:!0}})],g.prototype,"font",null),(0,s._)([(0,c.G)("font")],g.prototype,"writeFont",null),(0,s._)([(0,l.qq)({type:m,json:{write:!0}})],g.prototype,"halo",void 0),(0,s._)([(0,l.qq)({...f.qK,json:{default:"center",write:!0}})],g.prototype,"horizontalAlignment",void 0),(0,s._)([(0,l.qq)({...f.KO,json:{default:1,write:!0}})],g.prototype,"lineHeight",void 0),(0,s._)([(0,l.qq)({type:b.e,json:{write:!0}})],g.prototype,"material",void 0),(0,s._)([(0,l.qq)({type:q,json:{write:!0}})],g.prototype,"background",void 0),(0,s._)([(0,l.qq)(h.k)],g.prototype,"size",null),(0,s._)([(0,l.qq)({type:String,json:{write:!0}})],g.prototype,"text",void 0),(0,s._)([(0,n.G)({Text:"text"},{readOnly:!0})],g.prototype,"type",void 0),(0,s._)([(0,l.qq)({...f.sB,json:{default:"baseline",write:!0}})],g.prototype,"verticalAlignment",void 0),g=v=(0,s._)([(0,a.c)("esri.symbols.TextSymbol3DLayer")],g);const S=g},36536:(e,t,o)=>{o.d(t,{c:()=>d});var r,s=o(41948),i=o(44728),l=o(62088),n=o(1580),a=o(53368),c=o(9968),y=o(12552),p=o(48939);let h=r=class extends p.c{constructor(e){super(e),this.color=u.clone(),this.type="water",this.waterbodySize="medium",this.waveDirection=null,this.waveStrength="moderate"}clone(){return new r({color:(0,l.ct)(this.color),waterbodySize:this.waterbodySize,waveDirection:this.waveDirection,waveStrength:this.waveStrength})}};(0,s._)([(0,n.qq)({type:i.c,nonNullable:!0,json:{type:[a.Ab],write:(e,t,o)=>t[o]=e.toArray(i.c.AlphaMode.UNLESS_OPAQUE),default:()=>u.clone(),defaultEquals:e=>e.toCss(!0)===u.toCss(!0)}})],h.prototype,"color",void 0),(0,s._)([(0,c.G)({Water:"water"},{readOnly:!0})],h.prototype,"type",void 0),(0,s._)([(0,n.qq)({type:["small","medium","large"],json:{write:!0,default:"medium"}})],h.prototype,"waterbodySize",void 0),(0,s._)([(0,n.qq)({type:Number,json:{write:!0,default:null}})],h.prototype,"waveDirection",void 0),(0,s._)([(0,n.qq)({type:["calm","rippled","slight","moderate"],json:{write:!0,default:"moderate"}})],h.prototype,"waveStrength",void 0),h=r=(0,s._)([(0,y.c)("esri.symbols.WaterSymbol3DLayer")],h);const u=new i.c([0,119,190]),d=h},91744:(e,t,o)=>{o.d(t,{c:()=>m});var r,s=o(41948),i=o(66360),l=o(10860),n=o(1580),a=(o(9456),o(72052),o(9968)),c=o(12552),y=o(54872),p=o(91952),h=o(71996),u=o(95944);let d=r=class extends h.c{constructor(e){super(e),this.color=null,this.styleName=null,this.portal=null,this.styleUrl=null,this.thumbnail=null,this.name=null,this.type="web-style"}get _fetchCacheKey(){const e=null!=this.portal?this.portal:y.c.getDefault(),t=e.user?e.user.username:null;return`${this.styleName}:${this.styleUrl}:${this.name}:${t}:${e.url}`}read(e,t){this.portal=t?.portal,super.read(e,t)}clone(){return new r({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}fetchSymbol(e){return this._fetchSymbol("webRef",e)}fetchCIMSymbol(e){return this._fetchSymbol("cimRef",e)}async _fetchSymbol(e,t){const r=null!=t?t.cache:null,s=r?this._fetchCacheKey:null;if(null!=r){const e=s&&r.get(s);if(e)return e.clone()}const{resolveWebStyleSymbol:n}=await o.e(3652).then(o.bind(o,63652));(0,l.wp)(t);const a=n(this,{portal:this.portal},e,t);a.catch((e=>{i.c.getLogger(this).error("#fetchSymbol()","Failed to create symbol from style",e)}));const c=await a;return"webRef"===e&&"point-3d"===c.type||"cimRef"===e&&"cim"===c.type?(null!=r&&r.set(s,c.clone()),c):null}};(0,s._)([(0,n.qq)({json:{write:!1}})],d.prototype,"color",void 0),(0,s._)([(0,n.qq)({type:String,json:{write:!0}})],d.prototype,"styleName",void 0),(0,s._)([(0,n.qq)({type:y.c,json:{write:!1}})],d.prototype,"portal",void 0),(0,s._)([(0,n.qq)({type:String,json:{read:p.r,write:p.w}})],d.prototype,"styleUrl",void 0),(0,s._)([(0,n.qq)({type:u.u,json:{read:!1}})],d.prototype,"thumbnail",void 0),(0,s._)([(0,n.qq)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,s._)([(0,a.G)({styleSymbolReference:"web-style"},{readOnly:!0})],d.prototype,"type",void 0),(0,s._)([(0,n.qq)()],d.prototype,"_fetchCacheKey",null),d=r=(0,s._)([(0,c.c)("esri.symbols.WebStyleSymbol")],d);const m=d},2304:(e,t,o)=>{o.d(t,{c:()=>a});var r=o(41948),s=o(40504),i=o(1580),l=(o(9456),o(66360),o(72052),o(12552));let n=class extends s.am{constructor(e){super(e),this.visible=!0}clone(){}};(0,r._)([(0,i.qq)({type:["line"],constructOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),(0,r._)([(0,i.qq)({readOnly:!0})],n.prototype,"visible",void 0),n=(0,r._)([(0,l.c)("esri.symbols.callouts.Callout3D")],n);const a=n},86404:(e,t,o)=>{o.d(t,{c:()=>m});var r,s=o(41948),i=o(44728),l=o(62088),n=o(50144),a=o(1580),c=(o(9456),o(66360),o(9968)),y=o(12552),p=o(2304),h=o(68204),u=o(67552);let d=r=class extends p.c{constructor(e){super(e),this.type="line",this.color=new i.c([0,0,0,1]),this.size=(0,n.WM)(1),this.border=null}get visible(){return this.size>0&&null!=this.color&&this.color.a>0}clone(){return new r({color:(0,l.ct)(this.color),size:this.size,border:(0,l.ct)(this.border)})}};(0,s._)([(0,c.G)({line:"line"})],d.prototype,"type",void 0),(0,s._)([(0,a.qq)(u.Q)],d.prototype,"color",void 0),(0,s._)([(0,a.qq)(u.k)],d.prototype,"size",void 0),(0,s._)([(0,a.qq)({type:h.c,json:{write:!0}})],d.prototype,"border",void 0),(0,s._)([(0,a.qq)({readOnly:!0})],d.prototype,"visible",null),d=r=(0,s._)([(0,y.c)("esri.symbols.callouts.LineCallout3D")],d);const m=d},68204:(e,t,o)=>{o.d(t,{c:()=>h});var r,s=o(41948),i=o(44728),l=o(40504),n=o(62088),a=o(1580),c=(o(9456),o(66360),o(12552)),y=o(67552);let p=r=class extends l.am{constructor(e){super(e),this.color=new i.c("white")}clone(){return new r({color:(0,n.ct)(this.color)})}};(0,s._)([(0,a.qq)(y.Q)],p.prototype,"color",void 0),p=r=(0,s._)([(0,c.c)("esri.symbols.callouts.LineCallout3DBorder")],p);const h=p},79376:(e,t,o)=>{o.d(t,{K6:()=>n,Ku:()=>i,SU:()=>l});var r=o(2304),s=o(86404);function i(e){if(!e)return!1;const t=e.verticalOffset;return!!t&&!(t.screenLength<=0||null!=t.maxWorldLength&&t.maxWorldLength<=0)}function l(e){if(!e)return!1;if(!e.supportsCallout||!e.supportsCallout())return!1;const t=e.callout;return!!t&&!!t.visible&&!!i(e)}const n={types:{key:"type",base:r.c,typeMap:{line:s.c}},json:{write:!0}}},37904:(e,t,o)=>{o.d(t,{I:()=>v});var r=o(41948),s=o(44728),i=o(40504),l=o(62088),n=o(50144),a=o(1580),c=(o(9456),o(66360),o(12552)),y=o(67552);let p=class extends i.am{constructor(e){super(e),this.color=new s.c([0,0,0,1]),this.extensionLength=0,this.size=(0,n.WM)(1)}clone(){}cloneProperties(){return{color:(0,l.ct)(this.color),size:this.size,extensionLength:this.extensionLength}}};(0,r._)([(0,a.qq)({type:["solid","sketch"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],p.prototype,"type",void 0),(0,r._)([(0,a.qq)(y.Q)],p.prototype,"color",void 0),(0,r._)([(0,a.qq)({...y.k,json:{write:{overridePolicy:e=>({enabled:!!e})}}})],p.prototype,"extensionLength",void 0),(0,r._)([(0,a.qq)(y.k)],p.prototype,"size",void 0),p=(0,r._)([(0,c.c)("esri.symbols.edges.Edges3D")],p);const h=p;o(72052),o(20744);var u,d=o(9968);let m=u=class extends h{constructor(e){super(e),this.type="sketch"}clone(){return new u(this.cloneProperties())}};(0,r._)([(0,d.G)({sketch:"sketch"},{readOnly:!0})],m.prototype,"type",void 0),m=u=(0,r._)([(0,c.c)("esri.symbols.edges.SketchEdges3D")],m);const b=m;var w;let q=w=class extends h{constructor(e){super(e),this.type="solid"}clone(){return new w(this.cloneProperties())}};(0,r._)([(0,d.G)({solid:"solid"},{readOnly:!0})],q.prototype,"type",void 0),q=w=(0,r._)([(0,c.c)("esri.symbols.support.SolidEdges3D")],q);const v={types:{key:"type",base:h,typeMap:{solid:q,sketch:b}},json:{write:!0}}},20912:(e,t,o)=>{o.d(t,{c:()=>a});var r=o(41948),s=o(40504),i=o(1580),l=(o(9456),o(66360),o(72052),o(12552));let n=class extends s.am{constructor(e){super(e)}clone(){}};(0,r._)([(0,i.qq)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),n=(0,r._)([(0,l.c)("esri.symbols.patterns.LinePattern3D")],n);const a=n},9600:(e,t,o)=>{o.d(t,{c:()=>h});var r,s=o(41948),i=o(14628),l=o(1580),n=(o(9456),o(66360),o(72052),o(9968)),a=o(12552),c=o(20912);const y=(0,i.w)()({dash:"dash","dash-dot":"dash-dot","dash-dot-dot":"long-dash-dot-dot",dot:"dot","long-dash":"long-dash","long-dash-dot":"long-dash-dot",null:"none","short-dash":"short-dash","short-dash-dot":"short-dash-dot","short-dash-dot-dot":"short-dash-dot-dot","short-dot":"short-dot",solid:"solid"});let p=r=class extends c.c{constructor(e){super(e),this.type="style",this.style="solid"}clone(){const e={style:this.style};return new r(e)}};(0,s._)([(0,l.qq)({type:["style"]})],p.prototype,"type",void 0),(0,s._)([(0,n.G)(y),(0,l.qq)({type:["dash","dash-dot","dot","long-dash","long-dash-dot","long-dash-dot-dot","none","short-dash","short-dash-dot","short-dash-dot-dot","short-dot","solid"]})],p.prototype,"style",void 0),p=r=(0,s._)([(0,a.c)("esri.symbols.patterns.LineStylePattern3D")],p);const h=p},72940:(e,t,o)=>{o.d(t,{c:()=>a});var r=o(41948),s=o(40504),i=o(1580),l=(o(9456),o(66360),o(72052),o(12552));let n=class extends s.am{constructor(e){super(e)}clone(){}};(0,r._)([(0,i.qq)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),n=(0,r._)([(0,l.c)("esri.symbols.patterns.Pattern3D")],n);const a=n},47788:(e,t,o)=>{o.d(t,{c:()=>c});var r,s=o(41948),i=o(1580),l=(o(9456),o(66360),o(72052),o(12552)),n=o(72940);let a=r=class extends n.c{constructor(e){super(e),this.type="style",this.style="solid"}clone(){const e={style:this.style};return new r(e)}};(0,s._)([(0,i.qq)({type:["style"]})],a.prototype,"type",void 0),(0,s._)([(0,i.qq)({type:["backward-diagonal","cross","diagonal-cross","forward-diagonal","horizontal","none","solid","vertical"],json:{read:!0,write:!0}})],a.prototype,"style",void 0),a=r=(0,s._)([(0,l.c)("esri.symbols.patterns.StylePattern3D")],a);const c=a},51696:(e,t,o)=>{o.d(t,{Q:()=>a,x:()=>n});var r=o(20912),s=o(9600),i=o(72940),l=o(47788);const n={types:{key:"type",base:i.c,typeMap:{style:l.c}},json:{write:!0}},a={types:{key:"type",base:r.c,typeMap:{style:s.c}},json:{write:!0}}},33560:(e,t,o)=>{o.d(t,{c:()=>y});var r,s=o(41948),i=o(43780),l=o(1580),n=(o(9456),o(66360),o(72052),o(12552)),a=o(54872);let c=r=class extends i.c{constructor(e){super(e),this.name=null,this.styleUrl=null,this.styleName=null,this.portal=null}clone(){return new r({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}};(0,s._)([(0,l.qq)({type:String})],c.prototype,"name",void 0),(0,s._)([(0,l.qq)({type:String})],c.prototype,"styleUrl",void 0),(0,s._)([(0,l.qq)({type:String})],c.prototype,"styleName",void 0),(0,s._)([(0,l.qq)({type:a.c})],c.prototype,"portal",void 0),c=r=(0,s._)([(0,n.c)("esri.symbols.support.StyleOrigin")],c);const y=c},14392:(e,t,o)=>{o.d(t,{e:()=>c});var r,s=o(41948),i=o(40504),l=o(1580),n=(o(9456),o(66360),o(72052),o(12552)),a=o(67552);let c=r=class extends i.am{constructor(e){super(e),this.color=null}clone(){const e={color:null!=this.color?this.color.clone():null};return new r(e)}};(0,s._)([(0,l.qq)(a.Q)],c.prototype,"color",void 0),c=r=(0,s._)([(0,n.c)("esri.symbols.support.Symbol3DMaterial")],c)},53e3:(e,t,o)=>{o.d(t,{c:()=>y});var r,s=o(41948),i=o(40504),l=o(1580),n=(o(9456),o(66360),o(72052),o(12552)),a=o(67552);let c=r=class extends i.am{constructor(e){super(e),this.screenLength=0,this.minWorldLength=0,this.maxWorldLength=null}clone(){return new r({screenLength:this.screenLength,minWorldLength:this.minWorldLength,maxWorldLength:this.maxWorldLength})}};(0,s._)([(0,l.qq)(a.k)],c.prototype,"screenLength",void 0),(0,s._)([(0,l.qq)({type:Number,nonNullable:!0,json:{write:!0,default:0}})],c.prototype,"minWorldLength",void 0),(0,s._)([(0,l.qq)({type:Number,json:{write:!0}})],c.prototype,"maxWorldLength",void 0),c=r=(0,s._)([(0,n.c)("esri.symbols.support.Symbol3DVerticalOffset")],c);const y=c},95944:(e,t,o)=>{o.d(t,{u:()=>a});var r,s=o(41948),i=o(43780),l=o(1580),n=(o(9456),o(66360),o(72052),o(12552));let a=r=class extends i.c{constructor(){super(...arguments),this.url=""}clone(){return new r({url:this.url})}};(0,s._)([(0,l.qq)({type:String})],a.prototype,"url",void 0),a=r=(0,s._)([(0,n.c)("esri.symbols.support.Thumbnail")],a)},98008:(e,t,o)=>{o.d(t,{CO:()=>l,Ky:()=>i,WK:()=>s});var r=o(44728);const s=new r.c("white"),i=(new r.c("black"),new r.c([255,255,255,0]));function l(e){return 0===e.r&&0===e.g&&0===e.b}},67552:(e,t,o)=>{o.d(t,{Q:()=>n,k:()=>a});var r=o(44728),s=o(50144),i=o(53368),l=o(9332);const n={type:r.c,json:{type:[i.Ab],default:null,read:{source:["color","transparency"],reader:function(e,t){const o=null!=t.transparency?(0,l.u)(t.transparency):1,s=t.color;return s&&Array.isArray(s)?new r.c([s[0]||0,s[1]||0,s[2]||0,o]):null}},write:{target:{color:{type:[i.Ab]},transparency:{type:i.Ab}},writer:function(e,t){t.color=e.toJSON().slice(0,3);const o=(0,l.g)(e.a);0!==o&&(t.transparency=o)}}}},a={type:Number,cast:s.Qz,json:{write:!0}}},16100:(e,t,o)=>{o.d(t,{cP:()=>c,ox:()=>a,qU:()=>n,s9:()=>y}),o(9456),o(62484);var r=o(77048);const s=(0,r.WK)(-.5,-.5,-.5,.5,.5,.5),i=(0,r.WK)(-.5,-.5,0,.5,.5,1),l=(0,r.WK)(-.5,-.5,0,.5,.5,.5);function n(e){switch(e){case"sphere":case"cube":case"diamond":return s;case"cylinder":case"cone":case"inverted-cone":return i;case"tetrahedron":return l;default:return}}const a=["butt","square","round"],c=[...a,"none"],y=["miter","bevel","round"]},99804:(e,t,o)=>{o.d(t,{Ck:()=>l,qW:()=>n});var r=o(28176),s=o(91952);function i(e,t){if(!(0,r.ic)(e)){const o=function(e){if(!e)return null;const{origin:t,layer:o}=e;if("service"!==t&&"portal-item"!==t)return null;const r=o?.type;return"feature"===r||"stream"===r?o.parsedUrl?.path:"map-image"===r||"tile"===r?e.url?.path:null}(t);if(o)return(0,r.kn)(o,"images",e)}return(0,s.f)(e,t)}const l={json:{read:{source:["imageData","url"],reader:function(e,t,o){return t.imageData?(0,r.Gg)({mediaType:t.contentType||"image/png",isBase64:!0,data:t.imageData}):i(t.url,o)}},write:{writer(e,t,o,i){!function(e,t,o,i){if((0,r.o9)(e)){const l=(0,r.nV)(e);if(!l)return;t.contentType=l.mediaType,t.imageData=l.data,o&&o.imageData===t.imageData&&o.url&&(0,s.w)(o.url,t,"url",i)}else(0,s.w)(e,t,"url",i)}(e,t,this.source,i)}}}},n={readOnly:!0,json:{read:{source:["imageData","url"],reader(e,t,o){const r={};return t.imageData&&(r.imageData=t.imageData),t.contentType&&(r.contentType=t.contentType),t.url&&(r.url=i(t.url,o)),r}}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1248],{83536:(e,t,r)=>{r.d(t,{c:()=>u});var i=r(41948),s=r(2952),n=(r(40196),r(20744),r(66360),r(37176),r(41168)),o=r(1580),a=r(12552);let l=class extends s.c{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,n.ox)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new s.c(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i._)([(0,o.qq)()],l.prototype,"getCollections",void 0),(0,i._)([(0,o.qq)()],l.prototype,"getChildrenFunction",void 0),(0,i._)([(0,o.qq)()],l.prototype,"itemFilterFunction",void 0),l=(0,i._)([(0,a.c)("esri.core.CollectionFlattener")],l);const u=l},44247:(e,t,r)=>{async function i(e,t){const{WhereClause:i}=await Promise.all([r.e(3220),r.e(988)]).then(r.bind(r,63220));return i.create(e,t)}function s(e,t){return null!=e&&""!==e?null!=t&&""!==t?`(${e}) AND (${t})`:e:t}r.d(t,{_:()=>s,u:()=>i})},75824:(e,t,r)=>{r.d(t,{Md:()=>n,m0:()=>o,qG:()=>s});var i=r(39452);class s{}function n(e){return e instanceof i.C?e===s.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return n(e)?s.instance:e}s.instance=new i._C("Etc/UTC")},77048:(e,t,r)=>{r.d(t,{C6:()=>d,FZ:()=>h,K:()=>S,K8:()=>l,MZ:()=>a,Qv:()=>f,Su:()=>s,UN:()=>v,WK:()=>n,WO:()=>y,WU:()=>o,eC:()=>p,is:()=>g,mK:()=>c,qe:()=>u,qy:()=>m,yK:()=>b});var i=r(95247);function s(e=v){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function n(e,t,r,i,n,o,a=s()){return a[0]=e,a[1]=t,a[2]=r,a[3]=i,a[4]=n,a[5]=o,a}function o(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.c(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function u(e,t,r=0,i=t.length/3){let s=e[0],n=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)s=Math.min(s,t[r+3*e]),n=Math.min(n,t[r+3*e+1]),o=Math.min(o,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=s,e[1]=n,e[2]=o,e[3]=a,e[4]=l,e[5]=u}function p(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function d(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function c(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function h(e){return e?y(e,S):s(S)}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function m(e,t,r,i,s){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function g(e){return 6===e.length}function b(e,t,r){if(null==e||null==t)return e===t;if(!g(e)||!g(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(83372);const S=[1/0,1/0,1/0,-1/0,-1/0,-1/0],v=[0,0,0,0,0,0];s()},38724:(e,t,r)=>{r.d(t,{C:()=>o});var i=r(41948),s=r(1580),n=(r(9456),r(66360),r(72052),r(12552));const o=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i._)([(0,s.qq)({type:String})],t.prototype,"apiKey",null),t=(0,i._)([(0,n.c)("esri.layers.mixins.APIKeyMixin")],t),t}},50864:(e,t,r)=>{r.d(t,{I:()=>b});var i=r(41948),s=r(2600),n=r(86916),o=r(10860),a=r(28176),l=r(95728),u=r(1580),p=(r(9456),r(66360),r(72052),r(33600)),d=r(12552),c=r(71448),y=r(95247),h=r(56156),f=r(48212),m=r(21488),g=r(46940);const b=e=>{let t=class extends e{constructor(){super(...arguments),this.capabilities=void 0,this.copyright=null,this.fullExtent=null,this.legendEnabled=!0,this.spatialReference=null,this.version=void 0,this._allLayersAndTablesMap=null}readCapabilities(e,t){const r=t.capabilities&&t.capabilities.split(",").map((e=>e.toLowerCase().trim()));if(!r)return{operations:{supportsExportMap:!1,supportsExportTiles:!1,supportsIdentify:!1,supportsQuery:!1,supportsTileMap:!1},exportMap:null,exportTiles:null};const i=this.type,s="tile"!==i&&!!t.supportsDynamicLayers,n=r.includes("query"),o=r.includes("map"),a=!!t.exportTilesAllowed,u=r.includes("tilemap"),p=r.includes("data"),d="tile"!==i&&(!t.tileInfo||s),c="tile"!==i&&(!t.tileInfo||s),y="tile"!==i,h=t.cimVersion&&l.a.parse(t.cimVersion),f=h?.since(1,4)??!1,m=h?.since(2,0)??!1;return{operations:{supportsExportMap:o,supportsExportTiles:a,supportsIdentify:n,supportsQuery:p,supportsTileMap:u},exportMap:o?{supportsArcadeExpressionForLabeling:f,supportsSublayersChanges:y,supportsDynamicLayers:s,supportsSublayerVisibility:d,supportsSublayerDefinitionExpression:c,supportsCIMSymbols:m}:null,exportTiles:a?{maxExportTilesCount:+t.maxExportTilesCount}:null}}readVersion(e,t){let r=t.currentVersion;return r||(r=t.hasOwnProperty("capabilities")||t.hasOwnProperty("tables")?10:t.hasOwnProperty("supportedImageFormatTypes")?9.31:9.3),r}async fetchRelatedService(e){const t=this.portalItem;if(!t||!(0,g.mU)(t))return null;this._relatedFeatureServicePromise||(this._relatedFeatureServicePromise=t.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},e).then((e=>e.find((e=>"Feature Service"===e.type))??null),(()=>null)));const r=await this._relatedFeatureServicePromise;return(0,o.wp)(e),r?{itemId:r.id,url:r.url}:null}async fetchSublayerInfo(e,t){const{source:r}=e;if(this?.portalItem&&"tile"===this.type&&"map-layer"===r?.type&&(0,g.mU)(this.portalItem)&&e.originIdOf("url")<c.sT.SERVICE){const i=await this.fetchRelatedService(t);i&&(e.url=(0,a.kn)(i.url,r.mapLayerId.toString()),e.layerItemId=i.itemId)}const{url:i}=e;let n;if("data-layer"===r.type)n=(await(0,s.c)(i,{responseType:"json",query:{f:"json",...this.customParameters,token:this.apiKey},...t})).data;else if(i&&e.originIdOf("url")>c.sT.SERVICE)try{const e=await this._fetchAllLayersAndTablesFromService(i),t=(0,f.K0)(i)?.sublayer??r.mapLayerId;n=e.get(t)}catch{}else{let i=e.id;"map-layer"===r?.type&&(i=r.mapLayerId);try{n=(await this.fetchAllLayersAndTables(t)).get(i)}catch{}}return n}async fetchAllLayersAndTables(e){return this._fetchAllLayersAndTablesFromService(this.parsedUrl?.path,e)}async _fetchAllLayersAndTablesFromService(e,t){await this.load(t),this._allLayersAndTablesMap||=new Map;const r=(0,f.K0)(e),i=(0,n.wJ)(this._allLayersAndTablesMap,r?.url.path,(()=>(0,s.c)((0,a.kn)(r?.url.path,"/layers"),{responseType:"json",query:{f:"json",...this.customParameters,token:this.apiKey}}).then((e=>{const t=new Map;for(const r of e.data.layers)t.set(r.id,r);return{result:t}}),(e=>({error:e}))))),l=await i;if((0,o.wp)(t),"result"in l)return l.result;throw l.error}};return(0,i._)([(0,u.qq)({readOnly:!0})],t.prototype,"capabilities",void 0),(0,i._)([(0,p.E)("service","capabilities",["capabilities","exportTilesAllowed","maxExportTilesCount","supportsDynamicLayers","tileInfo"])],t.prototype,"readCapabilities",null),(0,i._)([(0,u.qq)({json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),(0,i._)([(0,u.qq)({type:y.c})],t.prototype,"fullExtent",void 0),(0,i._)([(0,u.qq)(m.id)],t.prototype,"id",void 0),(0,i._)([(0,u.qq)({type:Boolean,json:{origins:{service:{read:{enabled:!1}}},read:{source:"showLegend"},write:{target:"showLegend"}}})],t.prototype,"legendEnabled",void 0),(0,i._)([(0,u.qq)(m.Ou)],t.prototype,"popupEnabled",void 0),(0,i._)([(0,u.qq)({type:h.c})],t.prototype,"spatialReference",void 0),(0,i._)([(0,u.qq)({readOnly:!0})],t.prototype,"version",void 0),(0,i._)([(0,p.E)("version",["currentVersion","capabilities","tables","supportedImageFormatTypes"])],t.prototype,"readVersion",null),t=(0,i._)([(0,d.c)("esri.layers.mixins.ArcGISMapService")],t),t}},49664:(e,t,r)=>{r.d(t,{s:()=>g});var i=r(41948),s=r(2952),n=r(83536),o=r(20744),a=r(66360),l=r(57896),u=r(1580),p=(r(9456),r(72052),r(20916)),d=r(12552),c=r(71448),y=r(84632),h=r(11856);const f=s.c.ofType(y.c);function m(e,t){e&&e.forEach((e=>{t(e),e.sublayers&&e.sublayers.length&&m(e.sublayers,t)}))}const g=e=>{let t=class extends e{constructor(...e){super(...e),this.allSublayers=new n.c({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.sublayersSourceJSON={[c.sT.SERVICE]:{},[c.sT.PORTAL_ITEM]:{},[c.sT.WEB_SCENE]:{},[c.sT.WEB_MAP]:{}},this.addHandles((0,l.aE)((()=>this.sublayers),((e,t)=>this._handleSublayersChange(e,t)),l.du))}destroy(){this.allSublayers.destroy()}readSublayers(e,t){if(!t||!e)return;const{sublayersSourceJSON:r}=this,i=(0,c.CQ)(t.origin);if(i<c.sT.SERVICE)return;if(r[i]={context:t,visibleLayers:e.visibleLayers||r[i].visibleLayers,layers:e.layers||r[i].layers},i>c.sT.SERVICE)return;this._set("serviceSublayers",this.createSublayersForOrigin("service").sublayers);const{sublayers:s,origin:n}=this.createSublayersForOrigin("web-document"),o=(0,p.m6)(this);o.setDefaultOrigin(n),this._set("sublayers",new f(s)),o.setDefaultOrigin("user")}findSublayerById(e){return this.allSublayers.find((t=>t.id===e))}createServiceSublayers(){return this.createSublayersForOrigin("service").sublayers}createSublayersForOrigin(e){const t=(0,c.CQ)("web-document"===e?"web-map":e);let r=c.sT.SERVICE,i=this.sublayersSourceJSON[c.sT.SERVICE].layers,s=this.sublayersSourceJSON[c.sT.SERVICE].context,n=null;const o=[c.sT.PORTAL_ITEM,c.sT.WEB_SCENE,c.sT.WEB_MAP].filter((e=>e<=t));for(const e of o){const t=this.sublayersSourceJSON[e];(0,h.gH)(t.layers)&&(r=e,i=t.layers,s=t.context,t.visibleLayers&&(n={visibleLayers:t.visibleLayers,context:t.context}))}const a=[c.sT.PORTAL_ITEM,c.sT.WEB_SCENE,c.sT.WEB_MAP].filter((e=>e>r&&e<=t));let l=null;for(const e of a){const{layers:t,visibleLayers:r,context:i}=this.sublayersSourceJSON[e];t&&(l={layers:t,context:i}),r&&(n={visibleLayers:r,context:i})}const u=function(e,t){const r=[],i={};return e?(e.forEach((e=>{const s=new y.c;if(s.read(e,t),i[s.id]=s,null!=e.parentLayerId&&-1!==e.parentLayerId){const t=i[e.parentLayerId];t.sublayers||(t.sublayers=[]),t.sublayers.unshift(s)}else r.unshift(s)})),r):r}(i,s),p=new Map,d=new Set;if(l)for(const e of l.layers)p.set(e.id,e);if(n?.visibleLayers)for(const e of n.visibleLayers)d.add(e);return m(u,(e=>{l&&e.read(p.get(e.id),l.context),n&&e.read({defaultVisibility:d.has(e.id)},n.context)})),{origin:(0,c.Qz)(r),sublayers:new f({items:u})}}read(e,t){super.read(e,t),this.readSublayers(e,t)}_handleSublayersChange(e,t){t&&(t.forEach((e=>{e.parent=null,e.layer=null})),this.removeHandles("sublayers-owner")),e&&(e.forEach((e=>{e.parent=this,e.layer=this})),this.addHandles([e.on("after-add",(({item:e})=>{e.parent=this,e.layer=this})),e.on("after-remove",(({item:e})=>{e.parent=null,e.layer=null}))],"sublayers-owner"),"tile"===this.type&&this.addHandles(e.on("before-changes",(e=>{a.c.getLogger("esri.layers.TileLayer").error(new o.c("tilelayer:sublayers-non-modifiable","ISublayer can't be added, moved, or removed from the layer's sublayers",{layer:this})),e.preventDefault()})),"sublayers-owner"))}};return(0,i._)([(0,u.qq)({readOnly:!0})],t.prototype,"allSublayers",void 0),(0,i._)([(0,u.qq)({readOnly:!0,type:s.c.ofType(y.c)})],t.prototype,"serviceSublayers",void 0),(0,i._)([(0,u.qq)({value:null,type:f,json:{read:!1,write:{allowNull:!0,ignoreOrigin:!0}}})],t.prototype,"sublayers",void 0),(0,i._)([(0,u.qq)({readOnly:!0})],t.prototype,"sublayersSourceJSON",void 0),t=(0,i._)([(0,d.c)("esri.layers.mixins.SublayersOwner")],t),t}},87352:(e,t,r)=>{r.d(t,{c:()=>d});var i=r(41948),s=r(3856),n=r(14628),o=r(40504),a=r(1580),l=(r(9456),r(66360),r(72052),r(12552));const u=new n.O({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,s.q)(o.am)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i._)([(0,a.qq)({json:{write:!0}})],p.prototype,"name",void 0),(0,i._)([(0,a.qq)({json:{write:!0}})],p.prototype,"description",void 0),(0,i._)([(0,a.qq)({json:{read:u.read,write:u.write}})],p.prototype,"drawingTool",void 0),(0,i._)([(0,a.qq)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,i._)([(0,a.qq)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,i._)([(0,l.c)("esri.layers.support.FeatureTemplate")],p);const d=p},79648:(e,t,r)=>{r.d(t,{c:()=>y});var i=r(41948),s=r(3856),n=r(40504),o=r(1580),a=(r(9456),r(66360),r(72052),r(33600)),l=r(12552),u=r(18996),p=r(89812),d=r(87352);let c=class extends((0,s.q)(n.am)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,p.h4)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i._)([(0,o.qq)({json:{write:!0}})],c.prototype,"id",void 0),(0,i._)([(0,o.qq)({json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,o.qq)({json:{write:!0}})],c.prototype,"domains",void 0),(0,i._)([(0,a.E)("domains")],c.prototype,"readDomains",null),(0,i._)([(0,u.G)("domains")],c.prototype,"writeDomains",null),(0,i._)([(0,o.qq)({type:[d.c],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,i._)([(0,l.c)("esri.layers.support.FeatureType")],c);const y=c},600:(e,t,r)=>{r.d(t,{c:()=>m});var i,s=r(41948),n=r(14628),o=r(40504),a=r(1580),l=r(53368),u=(r(72052),r(9456),r(9968)),p=r(33600),d=r(12552),c=r(89812),y=r(36408);const h=new n.O({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let f=i=class extends o.am{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?h.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,s._)([(0,a.qq)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,s._)([(0,a.qq)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,s._)([(0,a.qq)()],f.prototype,"description",void 0),(0,s._)([(0,p.E)("description")],f.prototype,"readDescription",null),(0,s._)([(0,a.qq)({types:c.i2,json:{read:{reader:c.h4},write:!0}})],f.prototype,"domain",void 0),(0,s._)([(0,a.qq)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,s._)([(0,a.qq)({type:l.Ab,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,s._)([(0,a.qq)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,s._)([(0,a.qq)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,s._)([(0,u.G)(y.M)],f.prototype,"type",void 0),(0,s._)([(0,a.qq)()],f.prototype,"valueType",void 0),(0,s._)([(0,p.E)("valueType",["description"])],f.prototype,"readValueType",null),(0,s._)([(0,a.qq)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=i=(0,s._)([(0,d.c)("esri.layers.support.Field")],f);const m=f},16424:(e,t,r)=>{r.d(t,{c:()=>c});var i=r(20744),s=r(40504),n=r(66360),o=r(86916),a=r(75824),l=r(564),u=r(28484),p=r(39452);const d=new Map;class c{static fromJSON(e){return new c(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new c(e.fields??[],m(e))}static fromLayerJSON(e){return new c(e.fields??[],m(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,i=h(t);if(t&&i){const s=y(t);this._fieldsMap.set(t,e),this._fieldsMap.set(s,e),this._normalizedFieldsMap.set(i,e),r.push(`${s}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.gp)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.iW)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.Mz)(e)||(0,l.w1)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,l.Mz)(e)||(0,l.w1)(e)||e.nullable||void 0!==(0,l.gB)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(y(e))??this._normalizedFieldsMap.get(h(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.c.getLogger("esri.layers.support.FieldsIndex").error(new i.c("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.Gw):f.has(t.type)?u.OI:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.OI?a.qG.instance:t===u.Gw?p.Kq.utcInstance:(0,o.wJ)(d,t,(()=>p._C.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.eM)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,s.wt)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function y(e){return e.trim().toLowerCase()}function h(e){return(0,l.gP)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function m(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:s}=e,n=(i?"startField"in i?i.startField:i.startTimeField:"")??"",o=(i?"endField"in i?i.endField:i.endTimeField:"")??"",a=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,u.Mt)(e.dateFieldsTimeReference):null,l=s?function(e){return"timeZone"in e}(s)?s.timeZone??a:s.dateFieldsTimeReference?(0,u.Mt)(s.dateFieldsTimeReference):a??u.Gw:null,p=i?function(e){return"timeZone"in e}(i)?i.timeZone??a:i.timeReference?(0,u.Mt)(i.timeReference):a:null,d=new Map([[y(s?.creationDateField??""),l],[y(s?.editDateField??""),l],[y(n),p],[y(o),p]]);for(const{name:i,type:s}of e.fields)if(f.has(s))t.set(i,u.OI);else if("date"!==s&&"esriFieldTypeDate"!==s)t.set(i,null);else if(r)t.set(i,u.OI);else{const e=d.get(y(i??""))??a;t.set(i,e)}return t}},24144:(e,t,r)=>{r.d(t,{c:()=>p});var i,s=r(41948),n=r(2952),o=r(40504),a=r(1580),l=(r(9456),r(66360),r(72052),r(12552));let u=i=class extends o.am{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.c}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s._)([(0,a.qq)({type:String,json:{write:!0}})],u.prototype,"floorField",void 0),(0,s._)([(0,a.qq)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,s._)([(0,a.qq)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=i=(0,s._)([(0,l.c)("esri.layers.support.LayerFloorInfo")],u);const p=u},84632:(e,t,r)=>{r.d(t,{c:()=>H});var i,s=r(41948),n=(r(60708),r(82692)),o=(r(99704),r(73868),r(90200),r(12836),r(63718),r(2360),r(64624),r(24948),r(70236),r(37284)),a=r(2600),l=r(17988),u=r(2952),p=r(20744),d=r(9456),c=r(22156),y=r(62088),h=r(95800),f=r(66360),m=r(26496),g=r(44247),b=r(28176),S=r(1580),v=r(33392),w=r(33600),_=r(12552),q=r(18996),I=r(53368),T=r(71448),F=r(20916),x=r(95468),E=r(79648),O=r(600),A=r(16424),C=r(6168),L=r(34880),M=r(24144),D=r(54712),R=r(88204),N=r(75384),P=r(21980),V=r(19212),j=r(95776),Q=r(65548),G=r(95247),U=r(97492);function z(e){return null!=e&&"esriSMS"===e.type}function B(e,t,r){const i=this.originIdOf(t)>=(0,T.CQ)(r.origin);return{ignoreOrigin:!0,allowNull:i,enabled:!!r&&"map-image"===r.layer?.type&&(r.writeSublayerStructure||i)}}function J(e,t,r){return{enabled:!!r&&"tile"===r.layer?.type&&(r.origin&&this.originIdOf(t)>=(0,T.CQ)(r.origin)||this._isOverridden(t))}}function k(e,t,r){return{ignoreOrigin:!0,enabled:r&&r.writeSublayerStructure||!1}}function $(e,t,r){return{ignoreOrigin:!0,enabled:!!r&&(r.writeSublayerStructure||this.originIdOf(t)>=(0,T.CQ)(r.origin))}}let Z=0;const K=new Set;K.add("layer"),K.add("parent"),K.add("loaded"),K.add("loadStatus"),K.add("loadError"),K.add("loadWarnings");let W=i=class extends((0,m.U)((0,c.MR)(h.c))){constructor(e){super(e),this.capabilities=void 0,this.maxScaleRange={minScale:0,maxScale:0},this.fields=null,this.fullExtent=null,this.geometryType=null,this.globalIdField=null,this.legendEnabled=!0,this.objectIdField=null,this.parent=null,this.popupEnabled=!0,this.popupTemplate=null,this.sourceJSON=null,this.title=null,this.typeIdField=null,this.type="sublayer",this.types=null,this._lastParsedUrl=null}async load(e){return this.addResolvingPromise((async()=>{const{layer:t,url:r}=this;if(!t&&!r)throw new p.c("sublayer:missing-layer","Sublayer can't be loaded without being part of a layer",{sublayer:this});const i=t?await t.fetchSublayerInfo(this,e):(await(0,a.c)(r,{responseType:"json",query:{f:"json"},...e})).data;i&&(this.sourceJSON=i,this.read({layerDefinition:i},{origin:"service",layer:t,url:(0,P.UX)(r)}))})()),this}readCapabilities(e,t){t=t.layerDefinition||t;const{operations:{supportsQuery:r,supportsQueryAttachments:i},query:{supportsFormatPBF:s},data:{supportsAttachment:n},queryRelated:o}=(0,D.S)(t,this.url);return{exportMap:{supportsModification:!!t.canModifyLayer},operations:{supportsQuery:r,supportsQueryAttachments:i},data:{supportsAttachment:n},query:{supportsFormatPBF:s},queryRelated:o}}get defaultPopupTemplate(){return this.createPopupTemplate()}set definitionExpression(e){this._setAndNotifyLayer("definitionExpression",e)}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}readMaxScaleRange(e,t){return{minScale:(t=t.layerDefinition||t).minScale??0,maxScale:t.maxScale??0}}get fieldsIndex(){return new A.c(this.fields||[])}set floorInfo(e){this._setAndNotifyLayer("floorInfo",e)}readGlobalIdFieldFromService(e,t){if((t=t.layerDefinition||t).globalIdField)return t.globalIdField;if(t.fields)for(const e of t.fields)if("esriFieldTypeGlobalID"===e.type)return e.name}get id(){return this._get("id")??Z++}set id(e){this._get("id")!==e&&(!1!==this.layer?.capabilities?.exportMap?.supportsDynamicLayers?this._set("id",e):this._logLockedError("id","capability not available 'layer.capabilities.exportMap.supportsDynamicLayers'"))}set labelingInfo(e){this._setAndNotifyLayer("labelingInfo",e)}writeLabelingInfo(e,t,r,i){e&&e.length&&(t.layerDefinition={drawingInfo:{labelingInfo:e.map((e=>e.write({},i)))}})}set labelsVisible(e){this._setAndNotifyLayer("labelsVisible",e)}set layer(e){this._set("layer",e),this.sublayers&&this.sublayers.forEach((t=>t.layer=e))}set listMode(e){this._set("listMode",e)}set minScale(e){this._setAndNotifyLayer("minScale",e)}readMinScale(e,t){return t.minScale||t.layerDefinition?.minScale||0}set maxScale(e){this._setAndNotifyLayer("maxScale",e)}readMaxScale(e,t){return t.maxScale||t.layerDefinition?.maxScale||0}readObjectIdFieldFromService(e,t){if((t=t.layerDefinition||t).objectIdField)return t.objectIdField;if(t.fields)for(const e of t.fields)if("esriFieldTypeOID"===e.type)return e.name}set opacity(e){this._setAndNotifyLayer("opacity",e)}readOpacity(e,t){const r=t.layerDefinition;return 1-.01*((null!=r?.transparency?r.transparency:r?.drawingInfo?.transparency)??0)}writeOpacity(e,t,r,i){t.layerDefinition={drawingInfo:{transparency:100-100*e}}}writeParent(e,t){this.parent&&this.parent!==this.layer?t.parentLayerId=(0,I.Wu)(this.parent.id):t.parentLayerId=-1}get queryTask(){if(!this.layer)return null;const{spatialReference:e}=this.layer,t="gdbVersion"in this.layer?this.layer.gdbVersion:void 0,{capabilities:r,fieldsIndex:i}=this,s=(0,d.c)("featurelayer-pbf")&&r?.query.supportsFormatPBF,n=r?.operations?.supportsQueryAttachments??!1;return new x.c({url:this.url,pbfSupported:s,fieldsIndex:i,gdbVersion:t,sourceSpatialReference:e,queryAttachmentsSupported:n})}set renderer(e){if(e)for(const t of e.getSymbols())if((0,l._8)(t)){f.c.getLogger(this).warn("Sublayer renderer should use 2D symbols");break}this._setAndNotifyLayer("renderer",e)}get source(){return this._get("source")||new N.E({mapLayerId:this.id})}set source(e){this._setAndNotifyLayer("source",e)}set sublayers(e){this._handleSublayersChange(e,this._get("sublayers")),this._set("sublayers",e)}castSublayers(e){return(0,I.ey)(u.c.ofType(i),e)}writeSublayers(e,t,r){this.sublayers?.length&&(t[r]=this.sublayers.map((e=>e.id)).toArray().reverse())}readTitle(e,t){return t.layerDefinition?.name??t.name}readTypeIdField(e,t){let r=(t=t.layerDefinition||t).typeIdField;if(r&&t.fields){r=r.toLowerCase();const e=t.fields.find((e=>e.name.toLowerCase()===r));e&&(r=e.name)}return r}get url(){const e=this.layer?.parsedUrl??this._lastParsedUrl,t=this.source;if(!e)return null;if(this._lastParsedUrl=e,"map-layer"===t?.type)return`${e.path}/${t.mapLayerId}`;const r={layer:JSON.stringify({source:this.source})};return`${e.path}/dynamicLayer?${(0,b.GK)(r)}`}set url(e){this._overrideIfSome("url",e)}set visible(e){this._setAndNotifyLayer("visible",e)}writeVisible(e,t,r,i){t[r]=this.getAtOrigin("defaultVisibility","service")||e}clone(){const{store:e}=(0,F.m6)(this),t=new i;return(0,F.m6)(t).store=e.clone(K),this.commitProperty("url"),t._lastParsedUrl=this._lastParsedUrl,t}createPopupTemplate(e){return(0,Q.Ap)(this,e)}createQuery(){return new j.c({returnGeometry:!0,where:this.definitionExpression||"1=1"})}async createFeatureLayer(){if(this.hasOwnProperty("sublayers"))return null;const e=(await Promise.all([r.e(9512),r.e(2664),r.e(6556),r.e(672)]).then(r.bind(r,672))).default,{layer:t,url:i}=this;let s;if(i&&this.originIdOf("url")>T.sT.SERVICE)s=new e({url:i});else{if(!t?.parsedUrl)throw new p.c("createFeatureLayer:missing-information","Cannot create a FeatureLayer without a url or a parent layer");{const r=t.parsedUrl;s=new e({url:r.path}),r&&this.source&&("map-layer"===this.source.type?s.layerId=this.source.mapLayerId:s.dynamicDataSource=this.source)}}return null!=t?.refreshInterval&&(s.refreshInterval=t.refreshInterval),this.definitionExpression&&(s.definitionExpression=this.definitionExpression),this.floorInfo&&(s.floorInfo=(0,y.ct)(this.floorInfo)),this.originIdOf("labelingInfo")>T.sT.SERVICE&&(s.labelingInfo=(0,y.ct)(this.labelingInfo)),this.originIdOf("labelsVisible")>T.sT.DEFAULTS&&(s.labelsVisible=this.labelsVisible),this.originIdOf("legendEnabled")>T.sT.DEFAULTS&&(s.legendEnabled=this.legendEnabled),this.originIdOf("visible")>T.sT.DEFAULTS&&(s.visible=this.visible),this.originIdOf("minScale")>T.sT.DEFAULTS&&(s.minScale=this.minScale),this.originIdOf("maxScale")>T.sT.DEFAULTS&&(s.maxScale=this.maxScale),this.originIdOf("opacity")>T.sT.DEFAULTS&&(s.opacity=this.opacity),this.originIdOf("popupTemplate")>T.sT.DEFAULTS&&(s.popupTemplate=(0,y.ct)(this.popupTemplate)),this.originIdOf("renderer")>T.sT.SERVICE&&(s.renderer=(0,y.ct)(this.renderer)),"data-layer"===this.source?.type&&(s.dynamicDataSource=this.source.clone()),this.originIdOf("title")>T.sT.DEFAULTS&&(s.title=this.title),"map-image"===t?.type&&t.originIdOf("customParameters")>T.sT.DEFAULTS&&(s.customParameters=t.customParameters),"tile"===t?.type&&t.originIdOf("customParameters")>T.sT.DEFAULTS&&(s.customParameters=t.customParameters),s}getField(e){return this.fieldsIndex.get(e)}getFeatureType(e){const{typeIdField:t,types:r}=this;if(!t||!e)return null;const i=e.attributes?e.attributes[t]:void 0;if(null==i)return null;let s=null;return r?.some((e=>{const{id:t}=e;return null!=t&&(t.toString()===i.toString()&&(s=e),!!s)})),s}getFieldDomain(e,t){const r=t?.feature,i=this.getFeatureType(r);if(i){const t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this._getLayerDomain(e)}async queryAttachments(e,t){await this.load(),e=V.c.from(e);const r=this.capabilities;if(!r?.data?.supportsAttachment)throw new p.c("queryAttachments:not-supported","this layer doesn't support attachments");const{attachmentTypes:i,objectIds:s,globalIds:n,num:o,size:a,start:l,where:u}=e;if(!r?.operations?.supportsQueryAttachments&&(i?.length>0||n?.length>0||a?.length>0||o||l||u))throw new p.c("queryAttachments:option-not-supported","when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",e);if(!(s?.length||n?.length||u))throw new p.c("queryAttachments:invalid-query","'objectIds', 'globalIds', or 'where' are required to perform attachment query",e);return this.queryTask.executeAttachmentQuery(e,t)}async queryFeatures(e=this.createQuery(),t){if(await this.load(),!this.capabilities.operations.supportsQuery)throw new p.c("queryFeatures:not-supported","this layer doesn't support queries.");if(!this.url)throw new p.c("queryFeatures:not-supported","this layer has no url.");const r=await this.queryTask.execute(e,{...t,query:{...this.layer?.customParameters,token:this.layer?.apiKey}});if(r?.features)for(const e of r.features)e.sourceLayer=this;return r}toExportImageJSON(e){const t={id:this.id,source:this.source?.toJSON()||{mapLayerId:this.id,type:"mapLayer"}},r=(0,g._)(e,this.definitionExpression);null!=r&&(t.definitionExpression=r);const i=["renderer","labelingInfo","opacity","labelsVisible"].reduce(((e,t)=>(e[t]=this.originIdOf(t),e)),{}),s=Object.keys(i).some((e=>i[e]>T.sT.SERVICE));if(s){const e=t.drawingInfo={};if(i.renderer>T.sT.SERVICE&&(e.renderer=this.renderer?this.renderer.toJSON():null),i.labelsVisible>T.sT.SERVICE&&(e.showLabels=this.labelsVisible),this.labelsVisible&&i.labelingInfo>T.sT.SERVICE)if(this.labelingInfo){!this.loaded&&this.labelingInfo?.some((e=>!e.labelPlacement))&&f.c.getLogger(this).warnOnce(`A Sublayer (title: ${this.title}, id: ${this.id}) has an undefined 'labelPlacement' and so labels cannot be displayed. Either define a valid 'labelPlacement' or call Sublayer.load() to use a default value based on geometry type.`,{sublayer:this});let t=this.labelingInfo;null!=this.geometryType&&(t=(0,L.M)(this.labelingInfo,U.U.toJSON(this.geometryType))),e.showLabels=!0,e.labelingInfo=t.filter((e=>e.labelPlacement)).map((e=>e.toJSON({origin:"service",layer:this.layer})))}else e.showLabels=!1;i.opacity>T.sT.SERVICE&&(e.transparency=100-100*this.opacity),this._assignDefaultSymbolColors(e.renderer)}return t}_assignDefaultSymbolColors(e){this._forEachSimpleMarkerSymbols(e,(e=>{e.color||"esriSMSX"!==e.style&&"esriSMSCross"!==e.style||(e.outline?.color?e.color=e.outline.color:e.color=[0,0,0,0])}))}_forEachSimpleMarkerSymbols(e,t){if(e){const r=("uniqueValueInfos"in e?e.uniqueValueInfos:"classBreakInfos"in e?e.classBreakInfos:null)??[];for(const e of r)z(e.symbol)&&t(e.symbol);"symbol"in e&&z(e.symbol)&&t(e.symbol),"defaultSymbol"in e&&z(e.defaultSymbol)&&t(e.defaultSymbol)}}_setAndNotifyLayer(e,t){const r=this.layer,i=this._get(e);let s,n;switch(e){case"definitionExpression":case"floorInfo":s="supportsSublayerDefinitionExpression";break;case"minScale":case"maxScale":case"visible":s="supportsSublayerVisibility";break;case"labelingInfo":case"labelsVisible":case"opacity":case"renderer":case"source":s="supportsDynamicLayers",n="supportsModification"}const o=(0,F.m6)(this).getDefaultOrigin();if("service"!==o){if(s&&!1===this.layer?.capabilities?.exportMap?.[s])return void this._logLockedError(e,`capability not available 'layer.capabilities.exportMap.${s}'`);if(n&&!1===this.capabilities?.exportMap[n])return void this._logLockedError(e,`capability not available 'capabilities.exportMap.${n}'`)}"source"!==e||"not-loaded"===this.loadStatus?(this._set(e,t),"service"!==o&&i!==t&&r&&r.emit&&r.emit("sublayer-update",{propertyName:e,target:this})):this._logLockedError(e,"'source' can't be changed after calling sublayer.load()")}_handleSublayersChange(e,t){t&&(t.forEach((e=>{e.parent=null,e.layer=null})),this.removeAllHandles()),e&&(e.forEach((e=>{e.parent=this,e.layer=this.layer})),this.addHandles([e.on("after-add",(({item:e})=>{e.parent=this,e.layer=this.layer})),e.on("after-remove",(({item:e})=>{e.parent=null,e.layer=null})),e.on("before-changes",(e=>{const t=this.layer?.capabilities?.exportMap?.supportsSublayersChanges;null==t||t||(f.c.getLogger(this).error(new p.c("sublayer:sublayers-non-modifiable","Sublayer can't be added, moved, or removed from the layer's sublayers",{sublayer:this,layer:this.layer})),e.preventDefault())}))]))}_logLockedError(e,t){const{layer:r,declaredClass:i}=this;f.c.getLogger(i).error(new p.c("sublayer:locked",`Property '${String(e)}' can't be changed on Sublayer from the layer '${r?.id}'`,{reason:t,sublayer:this,layer:r}))}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}};W.test={isMapImageLayerOverridePolicy:e=>e===k||e===B,isTileImageLayerOverridePolicy:e=>e===J},(0,s._)([(0,S.qq)({readOnly:!0})],W.prototype,"capabilities",void 0),(0,s._)([(0,w.E)("service","capabilities",["layerDefinition.canModifyLayer","layerDefinition.capabilities"])],W.prototype,"readCapabilities",null),(0,s._)([(0,S.qq)()],W.prototype,"defaultPopupTemplate",null),(0,s._)([(0,S.qq)({type:String,value:null,json:{name:"layerDefinition.definitionExpression",write:{allowNull:!0,overridePolicy:B}}})],W.prototype,"definitionExpression",null),(0,s._)([(0,S.qq)({readOnly:!0})],W.prototype,"effectiveScaleRange",null),(0,s._)([(0,w.E)("service","maxScaleRange",["minScale","maxScale"])],W.prototype,"readMaxScaleRange",null),(0,s._)([(0,S.qq)({type:[O.c],json:{origins:{service:{read:{source:"layerDefinition.fields"}}}}})],W.prototype,"fields",void 0),(0,s._)([(0,S.qq)({readOnly:!0})],W.prototype,"fieldsIndex",null),(0,s._)([(0,S.qq)({type:M.c,value:null,json:{name:"layerDefinition.floorInfo",read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo",overridePolicy:B},origins:{"web-scene":{read:!1,write:!1}}}})],W.prototype,"floorInfo",null),(0,s._)([(0,S.qq)({type:G.c,json:{read:{source:"layerDefinition.extent"}}})],W.prototype,"fullExtent",void 0),(0,s._)([(0,S.qq)({type:U.U.apiValues,json:{origins:{service:{name:"layerDefinition.geometryType",read:{reader:U.U.read}}}}})],W.prototype,"geometryType",void 0),(0,s._)([(0,S.qq)({type:String})],W.prototype,"globalIdField",void 0),(0,s._)([(0,w.E)("service","globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],W.prototype,"readGlobalIdFieldFromService",null),(0,s._)([(0,S.qq)({type:I.Ab,json:{write:{ignoreOrigin:!0}}})],W.prototype,"id",null),(0,s._)([(0,S.qq)({value:null,type:[C.c],json:{read:{source:"layerDefinition.drawingInfo.labelingInfo"},write:{target:"layerDefinition.drawingInfo.labelingInfo",overridePolicy:k}}})],W.prototype,"labelingInfo",null),(0,s._)([(0,q.G)("labelingInfo")],W.prototype,"writeLabelingInfo",null),(0,s._)([(0,S.qq)({type:Boolean,value:!0,json:{read:{source:"layerDefinition.drawingInfo.showLabels"},write:{target:"layerDefinition.drawingInfo.showLabels",overridePolicy:k}}})],W.prototype,"labelsVisible",null),(0,s._)([(0,S.qq)({value:null})],W.prototype,"layer",null),(0,s._)([(0,S.qq)({type:String,json:{write:{overridePolicy:J}}})],W.prototype,"layerItemId",void 0),(0,s._)([(0,S.qq)({type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},read:{source:"showLegend"},write:{target:"showLegend",overridePolicy:$}}})],W.prototype,"legendEnabled",void 0),(0,s._)([(0,S.qq)({type:["show","hide","hide-children"],value:"show",json:{read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],W.prototype,"listMode",null),(0,s._)([(0,S.qq)({type:Number,value:0,json:{write:{overridePolicy:k}}})],W.prototype,"minScale",null),(0,s._)([(0,w.E)("minScale",["minScale","layerDefinition.minScale"])],W.prototype,"readMinScale",null),(0,s._)([(0,S.qq)({type:Number,value:0,json:{write:{overridePolicy:k}}})],W.prototype,"maxScale",null),(0,s._)([(0,w.E)("maxScale",["maxScale","layerDefinition.maxScale"])],W.prototype,"readMaxScale",null),(0,s._)([(0,S.qq)({type:String})],W.prototype,"objectIdField",void 0),(0,s._)([(0,w.E)("service","objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],W.prototype,"readObjectIdFieldFromService",null),(0,s._)([(0,S.qq)({type:Number,value:1,json:{write:{target:"layerDefinition.drawingInfo.transparency",overridePolicy:k}}})],W.prototype,"opacity",null),(0,s._)([(0,w.E)("opacity",["layerDefinition.drawingInfo.transparency","layerDefinition.transparency"])],W.prototype,"readOpacity",null),(0,s._)([(0,q.G)("opacity")],W.prototype,"writeOpacity",null),(0,s._)([(0,S.qq)({json:{type:I.Ab,write:{target:"parentLayerId",writerEnsuresNonNull:!0,overridePolicy:k}}})],W.prototype,"parent",void 0),(0,s._)([(0,q.G)("parent")],W.prototype,"writeParent",null),(0,s._)([(0,S.qq)({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(e,t)=>!t.disablePopup},write:{target:"disablePopup",overridePolicy:$,writer(e,t,r){t[r]=!e}}}})],W.prototype,"popupEnabled",void 0),(0,s._)([(0,S.qq)({type:n.c,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy:$}}})],W.prototype,"popupTemplate",void 0),(0,s._)([(0,S.qq)({readOnly:!0})],W.prototype,"queryTask",null),(0,s._)([(0,S.qq)({types:o.U,value:null,json:{name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:k},origins:{"web-scene":{types:o.Q,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:k}}}}})],W.prototype,"renderer",null),(0,s._)([(0,S.qq)({types:{key:"type",base:null,typeMap:{"data-layer":R.U,"map-layer":N.E}},cast(e){if(e){if("mapLayerId"in e)return(0,I.uY)(N.E,e);if("dataSource"in e)return(0,I.uY)(R.U,e)}return e},json:{name:"layerDefinition.source",write:{overridePolicy:k}}})],W.prototype,"source",null),(0,s._)([(0,S.qq)()],W.prototype,"sourceJSON",void 0),(0,s._)([(0,S.qq)({value:null,json:{type:[I.Ab],write:{target:"subLayerIds",allowNull:!0,overridePolicy:k}}})],W.prototype,"sublayers",null),(0,s._)([(0,v.W)("sublayers")],W.prototype,"castSublayers",null),(0,s._)([(0,q.G)("sublayers")],W.prototype,"writeSublayers",null),(0,s._)([(0,S.qq)({type:String,json:{name:"name",write:{overridePolicy:$}}})],W.prototype,"title",void 0),(0,s._)([(0,w.E)("service","title",["name","layerDefinition.name"])],W.prototype,"readTitle",null),(0,s._)([(0,S.qq)({type:String})],W.prototype,"typeIdField",void 0),(0,s._)([(0,S.qq)({json:{read:!1},readOnly:!0,value:"sublayer"})],W.prototype,"type",void 0),(0,s._)([(0,w.E)("typeIdField",["layerDefinition.typeIdField"])],W.prototype,"readTypeIdField",null),(0,s._)([(0,S.qq)({type:[E.c],json:{origins:{service:{read:{source:"layerDefinition.types"}}}}})],W.prototype,"types",void 0),(0,s._)([(0,S.qq)({type:String,json:{name:"layerUrl",write:{overridePolicy:J}}})],W.prototype,"url",null),(0,s._)([(0,S.qq)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"},write:{target:"defaultVisibility",overridePolicy:k}}})],W.prototype,"visible",null),(0,s._)([(0,q.G)("visible")],W.prototype,"writeVisible",null),W=i=(0,s._)([(0,_.c)("esri.layers.support.Sublayer")],W);const H=W},89812:(e,t,r)=>{r.d(t,{h4:()=>I,i2:()=>q}),r(9456);var i,s=r(41948),n=r(62088),o=r(1580),a=(r(66360),r(9968)),l=r(12552),u=r(40504);r(72052);let p=i=class extends u.am{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,s._)([(0,o.qq)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,s._)([(0,o.qq)({type:[String,Number],json:{write:!0}})],p.prototype,"code",void 0),p=i=(0,s._)([(0,l.c)("esri.layers.support.CodedValue")],p);const d=new(r(14628).O)({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends u.am{constructor(e){super(e),this.name=null,this.type=null}};(0,s._)([(0,o.qq)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,s._)([(0,a.G)(d)],c.prototype,"type",void 0),c=(0,s._)([(0,l.c)("esri.layers.support.Domain")],c);const y=c;var h;let f=h=class extends y{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new h({codedValues:(0,n.ct)(this.codedValues),name:this.name})}};(0,s._)([(0,o.qq)({type:[p],json:{write:!0}})],f.prototype,"codedValues",void 0),(0,s._)([(0,a.G)({codedValue:"coded-value"})],f.prototype,"type",void 0),f=h=(0,s._)([(0,l.c)("esri.layers.support.CodedValueDomain")],f);const m=f;var g;r(20744);let b=g=class extends y{constructor(e){super(e),this.type="inherited"}clone(){return new g}};(0,s._)([(0,a.G)({inherited:"inherited"})],b.prototype,"type",void 0),b=g=(0,s._)([(0,l.c)("esri.layers.support.InheritedDomain")],b);const S=b;var v;let w=v=class extends y{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new v({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,s._)([(0,o.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],w.prototype,"maxValue",void 0),(0,s._)([(0,o.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],w.prototype,"minValue",void 0),(0,s._)([(0,a.G)({range:"range"})],w.prototype,"type",void 0),w=v=(0,s._)([(0,l.c)("esri.layers.support.RangeDomain")],w);const _=w,q={key:"type",base:y,typeMap:{range:w,"coded-value":m,inherited:S}};function I(e){if(!e?.type)return null;switch(e.type){case"range":return _.fromJSON(e);case"codedValue":return m.fromJSON(e);case"inherited":return S.fromJSON(e)}return null}},36408:(e,t,r)=>{r.d(t,{M:()=>i});const i=new(r(14628).O)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},80428:(e,t,r)=>{r.d(t,{E:()=>n,G:()=>o});var i=r(20744),s=r(10860);async function n(e,t,r){let n;try{n=await createImageBitmap(e)}catch(e){throw new i.c("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,s.wp)(r),n}async function o(e,t,r,n,o){let a;try{a=await createImageBitmap(e)}catch(e){throw new i.c("request:server",`Unable to load tile ${t}/${r}/${n}`,{error:e,level:t,row:r,col:n})}return(0,s.wp)(o),a}},4144:(e,t,r)=>{r.d(t,{GC:()=>q,I5:()=>f,Wi:()=>g,Y$:()=>h,cF:()=>m,wf:()=>b,y6:()=>y});var i=r(88264);const s="__begin__",n="__end__",o=new RegExp(s,"ig"),a=new RegExp(n,"ig"),l=new RegExp("^"+s,"i"),u=new RegExp(n+"$","i"),p='"',d=p+" + ",c=" + "+p;function y(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=y(e.labelExpression),t.type="conventional"),t}function m(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return b(t.expression);case"arcade":return t.expression}return null}function g(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(S);return t?.[1].trim()||null}(t.expression);case"arcade":return q(t.expression)}return null}function b(e){let t;return e?(t=(0,i.qq)(e,(e=>s+'$feature["'+e+'"]'+n)),t=l.test(t)?t.replace(l,""):p+t,t=u.test(t)?t.replace(u,""):t+p,t=t.replaceAll(o,d).replaceAll(a,c)):t='""',t}const S=/^\s*\{([^}]+)\}\s*$/i,v=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,_=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i;function q(e){if(!e)return null;let t=v.exec(e)||w.exec(e);return t?t[1]||t[3]:(t=_.exec(e),t?t[2]:null)}},54712:(e,t,r)=>{r.d(t,{S:()=>d});var i=r(9456),s=r(48212);function n(e,t,r){return!!a(e,t,r)}function o(e,t,r){return a(e,t,r)}function a(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}const l={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function u(e){const t=e?.supportedSpatialAggregationStatistics?.map((e=>e.toLowerCase()));return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function p(e,t){const r=e?.supportedOperationsWithCacheHint?.map((e=>e.toLowerCase()));return!!r?.includes(t.toLowerCase())}function d(e,t){return{analytics:c(e),attachment:y(e),data:h(e),metadata:f(e),operations:m(e.capabilities,e,t),query:g(e,t),queryRelated:b(e),queryTopFeatures:S(e),editing:v(e)}}function c(e){return{supportsCacheHint:p(e.advancedQueryCapabilities,"queryAnalytics")}}function y(e){const t=e.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:p(e.advancedQueryCapabilities,"queryAttachments"),supportsResize:n(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach((e=>{const t=l[e.name];t&&(r[t]=!!e.isEnabled)})),r}function h(e){return{isVersioned:n(e,"isDataVersioned",!1),supportsAttachment:n(e,"hasAttachments",!1),supportsM:n(e,"hasM",!1),supportsZ:n(e,"hasZ",!1)}}function f(e){return{supportsAdvancedFieldProperties:n(e,"supportsFieldDescriptionProperty",!1)}}function m(e,t,r){const i=e?e.toLowerCase().split(",").map((e=>e.trim())):[],o=r?(0,s.K0)(r):null,a=i.includes(null!=o&&"MapServer"===o.serverType?"data":"query"),l=i.includes("editing")&&!t.datesInUnknownTimezone;let u=l&&i.includes("create"),p=l&&i.includes("delete"),d=l&&i.includes("update");const c=i.includes("changetracking"),y=t.advancedQueryCapabilities;return l&&!(u||p||d)&&(u=p=d=!0),{supportsCalculate:n(t,"supportsCalculate",!1),supportsTruncate:n(t,"supportsTruncate",!1),supportsValidateSql:n(t,"supportsValidateSql",!1),supportsAdd:u,supportsDelete:p,supportsEditing:l,supportsChangeTracking:c,supportsQuery:a,supportsQueryAnalytics:n(y,"supportsQueryAnalytic",!1),supportsQueryAttachments:n(y,"supportsQueryAttachments",!1),supportsQueryTopFeatures:n(y,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:n(t,"supportsAttachmentsResizing",!1),supportsSync:i.includes("sync"),supportsUpdate:d,supportsExceedsLimitStatistics:n(t,"supportsExceedsLimitStatistics",!1),supportsAsyncConvert3D:n(t,"supportsAsyncConvert3D",!1)}}function g(e,t){const r=e.advancedQueryCapabilities,a=e.ownershipBasedAccessControlForFeatures,l=e.archivingInfo,d=e.currentVersion,c=t?.includes("MapServer"),y=!c||d>=(0,i.c)("mapserver-pbf-version-support"),h=(0,s.Wq)(t),f=new Set((e.supportedQueryFormats??"").split(",").map((e=>e.toLowerCase().trim())));return{supportsStatistics:n(r,"supportsStatistics",e.supportsStatistics),supportsPercentileStatistics:n(r,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:n(r,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:u(r),supportsCentroid:n(r,"supportsReturningGeometryCentroid",!1),supportsDistance:n(r,"supportsQueryWithDistance",!1),supportsDistinct:n(r,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:n(r,"supportsReturningQueryExtent",!1),supportsGeometryProperties:n(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:n(r,"supportsHavingClause",!1),supportsOrderBy:n(r,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:n(r,"supportsPagination",!1),supportsQuantization:n(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:n(e,"supportsQuantizationEditMode",!1),supportsQueryGeometry:n(e,"supportsReturningQueryGeometry",!1),supportsResultType:n(r,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:n(r,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:n(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:n(e,"useStandardizedQueries",!1),supportsTopFeaturesQuery:n(r,"supportsTopFeaturesQuery",!1),supportsQueryByAnonymous:n(a,"allowAnonymousToQuery",!0),supportsQueryByOthers:n(a,"allowOthersToQuery",!0),supportsHistoricMoment:n(l,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:y&&f.has("pbf"),supportsDisjointSpatialRelationship:n(r,"supportsDisjointSpatialRel",!1),supportsCacheHint:n(r,"supportsQueryWithCacheHint",!1)||p(r,"query"),supportsDefaultSpatialReference:n(r,"supportsDefaultSR",!1),supportsCompactGeometry:h,supportsFullTextSearch:n(r,"supportsFullTextSearch",!1),maxRecordCountFactor:o(e,"maxRecordCountFactor",void 0),maxRecordCount:o(e,"maxRecordCount",void 0),standardMaxRecordCount:o(e,"standardMaxRecordCount",void 0),tileMaxRecordCount:o(e,"tileMaxRecordCount",void 0)}}function b(e){const t=e.advancedQueryCapabilities,r=n(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:n(t,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:p(t,"queryRelated")}}function S(e){return{supportsCacheHint:p(e.advancedQueryCapabilities,"queryTopFilter")}}function v(e){const t=e.ownershipBasedAccessControlForFeatures,r=e?e.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:n(e,"allowGeometryUpdates",!0),supportsGlobalId:n(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:n(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:n(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:n(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:n(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:n(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:n(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:n(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:n(t,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:n(r,"supportsAsyncApplyEdits",!1),zDefault:o(e,"zDefault",void 0)}}},11856:(e,t,r)=>{r.d(t,{I$:()=>n,gH:()=>a,oR:()=>s});var i=r(71448);function s(e,t,r){const i=t.flatten((({sublayers:e})=>e)).length;return i!==e.length||!!e.some((e=>e.originIdOf("minScale")>r||e.originIdOf("maxScale")>r||e.originIdOf("renderer")>r||e.originIdOf("labelingInfo")>r||e.originIdOf("opacity")>r||e.originIdOf("labelsVisible")>r||e.originIdOf("source")>r))||!o(e,t)}function n(e,t,r){return!!e.some((e=>{const t=e.source;return!(!t||"map-layer"===t.type&&t.mapLayerId===e.id&&(null==t.gdbVersion||t.gdbVersion===r))||e.originIdOf("renderer")>i.sT.SERVICE||e.originIdOf("labelingInfo")>i.sT.SERVICE||e.originIdOf("opacity")>i.sT.SERVICE||e.originIdOf("labelsVisible")>i.sT.SERVICE}))||!o(e,t)}function o(e,t){if(!e?.length||null==t)return!0;const r=t.slice().reverse().flatten((({sublayers:e})=>e&&e.toArray().reverse())).map((e=>e.id)).toArray();if(e.length>r.length)return!1;let i=0;const s=r.length;for(const{id:t}of e){for(;i<s&&r[i]!==t;)i++;if(i>=s)return!1}return!0}function a(e){return!!e&&e.some((e=>null!=e.minScale||null!=e.layerDefinition?.minScale))}},21012:(e,t,r)=>{r.d(t,{M:()=>s});var i=r(37924);function s(e,t,r){if(!r?.features||!r.hasZ)return;const s=(0,i.O)(r.geometryType,t,e.outSpatialReference);if(null!=s)for(const e of r.features)s(e.geometry)}},59500:(e,t,r)=>{r.d(t,{c:()=>S});var i,s=r(41948),n=r(60708),o=r(6444),a=r(14628),l=r(40504),u=r(62088),p=r(1580),d=(r(9456),r(66360),r(33600)),c=r(12552),y=r(18996),h=r(56156),f=r(6704),m=r(600);const g=new a.O({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=i=class extends l.am{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=h.c.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const s=e[t],n=o.c.fromJSON(s),a=s.geometry?.spatialReference;null==n.geometry||a||(n.geometry.spatialReference=r);const l=s.aggregateGeometries,u=n.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],i=l[e],s=i?.spatialReference;null==t||s||(t.spatialReference=r)}i.push(n)}return i}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:s}=this;if(s)for(const e of s)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,f.h4)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=h.c.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,u.ct)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,s]}=e,n=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((s-e)/r)));for(let e=0,t=n.length;e<t;e++)o?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,s],scale:[n,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,(e=>e*n+i),(e=>s-e*o),a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,s;const n=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===i&&o===s||(n.push([e-i,o-s]),i=e,s=o)}else i=t(a[0]),s=r(a[1]),n.push([i,s])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,f.Cs)(e)?e.rings:e.paths,s=[];for(let e=0,n=i.length;e<n;e++){const n=i[e],o=this._quantizePoints(n,t,r);o&&s.push(o)}return s.length>0?((0,f.Cs)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,s){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,f.Cs)(e)?e.rings:e.paths;let o,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];for(let e=0,s=i.length;e<s;e++){const s=i[e];e>0?(o+=s[0],a+=s[1]):(o=s[0],a=s[1]),s[0]=t(o),s[1]=r(a)}}if(i&&s)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=s(r[3])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let o,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}if(i&&s)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2]),t[3]=s(t[3])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=s(t[2])}}:null}};(0,s._)([(0,p.qq)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,s._)([(0,p.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,p.qq)({type:[o.c],json:{write:!0}})],b.prototype,"features",void 0),(0,s._)([(0,d.E)("features")],b.prototype,"readFeatures",null),(0,s._)([(0,p.qq)({type:[m.c],json:{write:!0}})],b.prototype,"fields",void 0),(0,s._)([(0,p.qq)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],b.prototype,"geometryType",void 0),(0,s._)([(0,y.G)("geometryType")],b.prototype,"writeGeometryType",null),(0,s._)([(0,p.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,s._)([(0,p.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,s._)([(0,p.qq)({types:n.Su,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,s._)([(0,d.E)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,s._)([(0,p.qq)({type:h.c,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,s._)([(0,y.G)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,s._)([(0,p.qq)({json:{write:!0}})],b.prototype,"transform",void 0),b=i=(0,s._)([(0,c.c)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0;const S=b},45704:(e,t,r)=>{r.d(t,{Sg:()=>p,Uj:()=>u,Uz:()=>l,YP:()=>d}),r(9456);var i=r(47472),s=r(7432),n=r(49736),o=r(28652),a=r(9504);const l=n.c.fromJSON(a.qe),u=s.c.fromJSON(a.MZ),p=i.c.fromJSON(a.yq),d=o.c.fromJSON(a.gF);n.c.fromJSON(a.gP),s.c.fromJSON(a.aV),i.c.fromJSON(a.wp)},9504:(e,t,r)=>{r.d(t,{MZ:()=>n,aV:()=>u,gF:()=>a,gP:()=>l,qe:()=>s,wp:()=>p,yq:()=>o});const i=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},p={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|