@arcgis/core 4.27.0-next.20230420 → 4.27.0-next.20230421
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/WebMap.js +1 -1
- package/WebScene.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{f64f95623d9296a91f95.js → 059ec6fd9b971de4b4c1.js} +1 -1
- package/assets/esri/core/workers/chunks/{1fe31a412479815e5e2d.js → 10770939900946feb20d.js} +1 -1
- package/assets/esri/core/workers/chunks/{5252f3cc244204edc299.js → 1216e939d363f96b6cc6.js} +1 -1
- package/assets/esri/core/workers/chunks/156dad2b7fed6749bae7.js +1 -0
- package/assets/esri/core/workers/chunks/15a97d3e42b00ac42984.js +1 -0
- package/assets/esri/core/workers/chunks/{d72c0c97cc4e30f1e4f2.js → 18704903814b9d73c708.js} +1 -1
- package/assets/esri/core/workers/chunks/{852b4a6c0f3feb57cf54.js → 1db5e4c8244dbc21590c.js} +1 -1
- package/assets/esri/core/workers/chunks/{f0953e41d1653e66ba57.js → 2a1a5a1969e80a10dcca.js} +1 -1
- package/assets/esri/core/workers/chunks/33b735faa582e6f39e9a.js +1 -0
- package/assets/esri/core/workers/chunks/34025ac04ca02531923a.js +1 -0
- package/assets/esri/core/workers/chunks/3e9f3479fd8558d9e3e3.js +1 -0
- package/assets/esri/core/workers/chunks/{d59274ac695dfcff1143.js → 46090b69e9161bc05141.js} +1 -1
- package/assets/esri/core/workers/chunks/{1b647446a6a27798c5cf.js → 47bf38d910e71ac39bb8.js} +1 -1
- package/assets/esri/core/workers/chunks/{3978f4f68ada540ee3a3.js → 4f8a09b61267e5e26712.js} +1 -1
- package/assets/esri/core/workers/chunks/5183ecab7eddae7b70e8.js +1 -0
- package/assets/esri/core/workers/chunks/{a5c33b24b7ee042cb473.js → 51a0d1dabe7415515c77.js} +2 -2
- package/assets/esri/core/workers/chunks/541e6efc3b491e507410.js +1 -0
- package/assets/esri/core/workers/chunks/5c64fd3bf057a1a5527f.js +1 -0
- package/assets/esri/core/workers/chunks/6047bdaf4855506f8fdb.js +1 -0
- package/assets/esri/core/workers/chunks/{b2358c2e27be7a5709cf.js → 6adb58f1bffc5d1c03bd.js} +1 -1
- package/assets/esri/core/workers/chunks/770940417e6ddbdbb9d6.js +1 -0
- package/assets/esri/core/workers/chunks/{1c1d8be85297c483a606.js → 77c98121223a144170e3.js} +1 -1
- package/assets/esri/core/workers/chunks/80117007d86be4eb3bc3.js +1 -0
- package/assets/esri/core/workers/chunks/838849b751805615833a.js +1 -0
- package/assets/esri/core/workers/chunks/{9ca395f7bc8d397b5240.js → 88197520501fcc20b6e8.js} +1 -1
- package/assets/esri/core/workers/chunks/{89e8ba4fc325838bf1a9.js → 88f9dededcf60fd011ef.js} +1 -1
- package/assets/esri/core/workers/chunks/88fdd288ef799a7ac48a.js +1 -0
- package/assets/esri/core/workers/chunks/{f11ec68ceb7c973cde74.js → 8ae7fea9f7fda38dd207.js} +1 -1
- package/assets/esri/core/workers/chunks/{0d080dd1ca6a71597409.js → 9265d4e9cfab2c7bbce5.js} +1 -1
- package/assets/esri/core/workers/chunks/{8d41305509fedb3603ac.js → 94041a9ced04aa281d40.js} +1 -1
- package/assets/esri/core/workers/chunks/98540791fcef86069e44.js +1 -0
- package/assets/esri/core/workers/chunks/9c1b2f82877ff79969f5.js +1 -0
- package/assets/esri/core/workers/chunks/a7b3cd537c9127b5e65e.js +1 -0
- package/assets/esri/core/workers/chunks/{3d1c697182237807ab49.js → abea316f2eac0f3086ab.js} +1 -1
- package/assets/esri/core/workers/chunks/ad85ade6a2cfb56cf328.js +1 -0
- package/assets/esri/core/workers/chunks/{25862269952c1bda910f.js → b833b4ea2973bb16792e.js} +1 -1
- package/assets/esri/core/workers/chunks/{e50d1afdc878258c437e.js → be4aa835a7abfc809126.js} +1 -1
- package/assets/esri/core/workers/chunks/{4fed7c08b5f4de23bb75.js → c2ec6e904f96173a7b83.js} +1 -1
- package/assets/esri/core/workers/chunks/{c25aa08b869f2777dc26.js → c4488a8d857c765da30e.js} +1 -1
- package/assets/esri/core/workers/chunks/c5c56b6d99db96a6755a.js +2 -0
- package/assets/esri/core/workers/chunks/{b28883e2a13f360310b3.js → c727d38f71e52bee17e1.js} +1 -1
- package/assets/esri/core/workers/chunks/cf315d255f0dc8d50f21.js +1 -0
- package/assets/esri/core/workers/chunks/cf7676fdc09ad4835680.js +1 -0
- package/assets/esri/core/workers/chunks/cfad34c949cbe8a31ef8.js +1 -0
- package/assets/esri/core/workers/chunks/{a2c9cb23f3e35e88da1d.js → d399b1b9cbf0737d1735.js} +1 -1
- package/assets/esri/core/workers/chunks/{df7dcd035997881cf2ef.js → d5c8119d6d34628d3126.js} +1 -1
- package/assets/esri/core/workers/chunks/d6b6bb8aecc85d2a3f6b.js +1 -0
- package/assets/esri/core/workers/chunks/{8dfa32cc8453f85faab0.js → dd1f8bade9c5c3b7929b.js} +1 -1
- package/assets/esri/core/workers/chunks/e11e60759821746259c6.js +1 -0
- package/assets/esri/core/workers/chunks/{e4b65c5a4575a5c1c49f.js → e356c576f9a7521a49b3.js} +1 -1
- package/assets/esri/core/workers/chunks/f02edf71645eb33bf92f.js +1 -0
- package/assets/esri/core/workers/chunks/{3dff550c29115dd625fa.js → f1a4165c2710ca90e5ea.js} +1 -1
- package/assets/esri/core/workers/chunks/f57a3ee17869ced3dd33.js +1 -0
- package/assets/esri/core/workers/chunks/fc07f6e103d7f69a9909.js +1 -0
- package/chunks/WaterSurface.glsl.js +35 -20
- package/chunks/index.js +1 -1
- package/core/Loadable.js +1 -1
- package/core/Promise.js +1 -1
- package/core/accessorSupport/ensureType.js +1 -1
- package/core/accessorSupport/watch.js +1 -1
- package/core/accessorSupport/write.js +1 -1
- package/core/promiseUtils.js +1 -1
- package/core/watchUtils.js +1 -1
- package/core/workers/Connection.js +1 -1
- package/core/workers/RemoteClient.js +1 -1
- package/geometry/support/geodesicUtils.js +1 -1
- package/intl/messages.js +1 -1
- package/layers/graphics/data/attributeSupport.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/mixins/ArcGISMapService.js +1 -1
- package/layers/support/PromiseQueue.js +1 -1
- package/layers/support/Sublayer.js +1 -1
- package/layers/support/TileKey.js +1 -1
- package/layers/support/rasterFormats/TiffDecoder.js +1 -1
- package/networks/Network.js +1 -1
- package/package.json +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/request.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/support/previewSymbol3D.js +1 -1
- package/symbols/support/styleUtils.js +1 -1
- package/symbols/support/symbolLayerUtils.js +1 -1
- package/symbols/support/utils.js +1 -1
- package/symbols/support/webStyleSymbolUtils.js +1 -1
- package/views/2d/engine/webgl/TextureManager.js +1 -1
- package/views/2d/layers/support/webStyleUtils.js +1 -1
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/interactive/manipulatorUtils.js +1 -1
- package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
- package/views/3d/layers/graphics/ElevationQuery.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/polygonUtils.js +1 -1
- package/views/3d/layers/graphics/symbolComplexity.js +1 -1
- package/views/3d/layers/graphics/webStyleUtils.js +5 -0
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
- package/views/LayerViewManager.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/ViewAnimation.js +1 -1
- package/views/input/BrowserEventSource.js +1 -1
- package/views/input/InputManager.js +1 -1
- package/views/interactive/coordinateHelper.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/support/QueueProcessor.js +1 -1
- package/views/ui/DefaultUI.js +1 -1
- package/views/ui/UI.js +1 -1
- package/widgets/BasemapGallery/support/PortalBasemapsSource.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/Upload.js +1 -1
- package/widgets/Editor/deprecationUtils.js +1 -1
- package/widgets/Editor/modelUploadUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
- package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +1 -1
- package/widgets/Popup.js +1 -1
- package/assets/esri/core/workers/chunks/0cec1c16b25406858ae6.js +0 -1
- package/assets/esri/core/workers/chunks/27353056c3e4e8d8b8d3.js +0 -1
- package/assets/esri/core/workers/chunks/337d59d624ef8a89aae5.js +0 -1
- package/assets/esri/core/workers/chunks/4b6a903d4aeeb4eeb615.js +0 -1
- package/assets/esri/core/workers/chunks/4bf9bc8b52d618f395c5.js +0 -1
- package/assets/esri/core/workers/chunks/5ec4fedbbcbb0053cf74.js +0 -2
- package/assets/esri/core/workers/chunks/60e29d172a2dcf45e8d0.js +0 -1
- package/assets/esri/core/workers/chunks/68a15cc7c51645d31572.js +0 -1
- package/assets/esri/core/workers/chunks/778ecf61f07dafc51bbc.js +0 -1
- package/assets/esri/core/workers/chunks/7e67e071789c6d264280.js +0 -1
- package/assets/esri/core/workers/chunks/80d335bec34d60b7bbdc.js +0 -1
- package/assets/esri/core/workers/chunks/810da30f13151b72a293.js +0 -1
- package/assets/esri/core/workers/chunks/81485a5056aed94b3d8d.js +0 -1
- package/assets/esri/core/workers/chunks/8ebda132068f6b962dd9.js +0 -1
- package/assets/esri/core/workers/chunks/914a0c78c80aa897b1a1.js +0 -1
- package/assets/esri/core/workers/chunks/979ea2e3b1b164334634.js +0 -1
- package/assets/esri/core/workers/chunks/a0e92dd27c8f6b642dbf.js +0 -1
- package/assets/esri/core/workers/chunks/a6240bf258b3886a6661.js +0 -1
- package/assets/esri/core/workers/chunks/b1a8024bf8cdd0cd3884.js +0 -1
- package/assets/esri/core/workers/chunks/b366e0db9b5f27dd53a3.js +0 -1
- package/assets/esri/core/workers/chunks/c564055cb906857c8641.js +0 -1
- package/assets/esri/core/workers/chunks/c646dc9da08b509e39d6.js +0 -1
- package/assets/esri/core/workers/chunks/db5598944b691e43f13e.js +0 -1
- package/assets/esri/core/workers/chunks/eb163a2ddeb27c690308.js +0 -1
- package/assets/esri/core/workers/chunks/f05634909c9449533193.js +0 -1
- package/assets/esri/core/workers/chunks/fcebd70b089dea833c75.js +0 -1
- /package/assets/esri/core/workers/chunks/{a5c33b24b7ee042cb473.js.LICENSE.txt → 51a0d1dabe7415515c77.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{5ec4fedbbcbb0053cf74.js.LICENSE.txt → c5c56b6d99db96a6755a.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9790],{6352:(t,e,o)=>{o.d(e,{a:()=>c});var r,s=o(43697),i=o(22303),l=o(96674),n=o(22974),a=o(5600),p=(o(75215),o(52011)),y=o(37308);let h=r=class extends l.wq{constructor(){super(...arguments),this.color=new i.Z("white")}clone(){return new r({color:(0,n.d9)(this.color)})}};(0,s._)([(0,a.Cb)(y.a)],h.prototype,"color",void 0),h=r=(0,s._)([(0,p.j)("esri.symbols.callouts.LineCallout3DBorder")],h);const c=h;Object.freeze(Object.defineProperty({__proto__:null,default:c},Symbol.toStringTag,{value:"Module"}))},70921:(t,e,o)=>{o.d(e,{R:()=>i,Z:()=>s});var r=o(46791);function s(t,e,o=r.Z){return e||(e=new o),e===t||(e.removeAll(),(s=t)&&(Array.isArray(s)||"items"in s&&Array.isArray(s.items))?e.addMany(t):t&&e.add(t)),e;var s}function i(t){return t}},9790:(t,e,o)=>{o.d(e,{se:()=>T,cT:()=>k,dU:()=>O,S9:()=>$,LB:()=>D,AH:()=>N,yK:()=>P,S6:()=>J,QT:()=>M,f_:()=>A});var r,s=o(75215),i=o(63213),l=o(17386),n=(o(38445),o(21218)),a=(o(95191),o(31134),o(50575),o(20825)),p=o(98587),y=(o(38128),o(40908),o(3456)),h=(o(17143),o(96742),o(43697)),c=o(22974),d=o(62357),u=o(5600),b=o(36030),m=o(52011),w=o(94075);let v=r=class extends n.Z{constructor(...t){super(...t),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(t,e,o,r){if(t&&"string"!=typeof t&&null==t.imageData)return t;const s={};return t&&(s.url=t),e&&(s.outline=e),null!=o&&(s.width=(0,d.t_)(o)),null!=r&&(s.height=(0,d.t_)(r)),s}clone(){const t=new r({color:(0,c.d9)(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 t._set("source",(0,c.d9)(this.source)),t}hash(){return`${super.hash()}.${this.color?.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`}};(0,h._)([(0,b.J)({esriPFS:"picture-fill"},{readOnly:!0})],v.prototype,"type",void 0),(0,h._)([(0,u.Cb)(w.KA)],v.prototype,"url",void 0),(0,h._)([(0,u.Cb)({type:Number,json:{write:!0}})],v.prototype,"xscale",void 0),(0,h._)([(0,u.Cb)({type:Number,json:{write:!0}})],v.prototype,"yscale",void 0),(0,h._)([(0,u.Cb)({type:Number,cast:d.t_,json:{write:!0}})],v.prototype,"width",void 0),(0,h._)([(0,u.Cb)({type:Number,cast:d.t_,json:{write:!0}})],v.prototype,"height",void 0),(0,h._)([(0,u.Cb)({type:Number,cast:d.t_,json:{write:!0}})],v.prototype,"xoffset",void 0),(0,h._)([(0,u.Cb)({type:Number,cast:d.t_,json:{write:!0}})],v.prototype,"yoffset",void 0),(0,h._)([(0,u.Cb)(w.Ds)],v.prototype,"source",void 0),v=r=(0,h._)([(0,m.j)("esri.symbols.PictureFillSymbol")],v);const g=v;var f=o(37898),_=o(42143),S=o(86114),C=o(20256),j=o(4095),Z=o(77987),x=o(89164),L=(o(87223),o(95868),o(78724)),z=(o(2283),o(44398),o(59390));function k(t){if(!t)return!1;switch(t.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 O(t){if(!t)return!1;switch(t.type){case"label-3d":case"line-3d":case"mesh-3d":case"point-3d":case"polygon-3d":return!0;default:return!1}}o(69496),o(6352);const D={base:x.Z,key:"type",typeMap:{"simple-fill":C.Z,"picture-fill":g,"picture-marker":f.Z,"simple-line":j.Z,"simple-marker":Z.Z,text:L.Z,"label-3d":a.Z,"line-3d":p.Z,"mesh-3d":y.Z,"point-3d":_.Z,"polygon-3d":S.Z,"web-style":z.Z,cim:l.Z},errorContext:"symbol"},N={base:x.Z,key:"type",typeMap:{"picture-marker":f.Z,"simple-marker":Z.Z,text:L.Z,"web-style":z.Z,cim:l.Z},errorContext:"symbol"},$=(0,i.d)({types:D}),M={base:x.Z,key:"type",typeMap:{"simple-fill":C.Z,"picture-fill":g,"picture-marker":f.Z,"simple-line":j.Z,"simple-marker":Z.Z,text:L.Z,"line-3d":p.Z,"mesh-3d":y.Z,"point-3d":_.Z,"polygon-3d":S.Z,"web-style":z.Z,cim:l.Z},errorContext:"symbol"},P={base:x.Z,key:"type",typeMap:{text:L.Z,"label-3d":a.Z},errorContext:"symbol"},A=(x.Z,a.Z,p.Z,y.Z,_.Z,S.Z,z.Z,{base:x.Z,key:"type",typeMap:{"line-3d":p.Z,"mesh-3d":y.Z,"point-3d":_.Z,"polygon-3d":S.Z,"web-style":z.Z,cim:l.Z},errorContext:"symbol"}),J={base:x.Z,key:"type",typeMap:{"label-3d":a.Z},errorContext:"symbol"},T=(0,s.N7)(D)},17386:(t,e,o)=>{o.d(e,{Z:()=>b});var r,s=o(43697),i=o(22974),l=o(19153),n=o(5600),a=(o(75215),o(36030)),p=o(71715),y=o(52011),h=o(30556),c=o(35671),d=o(89164);let u=r=class extends d.Z{constructor(t){super(t),this.data=null,this.type="cim"}readData(t,e){return e}writeData(t,e){Object.assign(e,t)}async collectRequiredFields(t,e){if("CIMSymbolReference"===this.data?.type){const o=this.data.primitiveOverrides;if(o){const r=o.map((o=>{const r=o.valueExpressionInfo;return(0,c.io)(t,e,r.expression)}));await Promise.all(r)}}}clone(){return new r({data:(0,i.d9)(this.data)})}hash(){return(0,l.hP)(JSON.stringify(this.data)).toString()}};(0,s._)([(0,n.Cb)({json:{write:!1}})],u.prototype,"color",void 0),(0,s._)([(0,n.Cb)({json:{write:!0}})],u.prototype,"data",void 0),(0,s._)([(0,p.r)("data",["symbol"])],u.prototype,"readData",null),(0,s._)([(0,h.c)("data",{})],u.prototype,"writeData",null),(0,s._)([(0,a.J)({CIMSymbolReference:"cim"},{readOnly:!0})],u.prototype,"type",void 0),u=r=(0,s._)([(0,y.j)("esri.symbols.CIMSymbol")],u);const b=u},38445:(t,e,o)=>{o.d(e,{Z:()=>c});var r,s=o(43697),i=o(5600),l=(o(75215),o(67676),o(80442),o(36030)),n=o(52011),a=o(95868),p=o(56332),y=o(52879);let h=r=class extends a.Z{constructor(t){super(t),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.J)({Extrude:"extrude"},{readOnly:!0})],h.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}},nonNullable:!0})],h.prototype,"size",void 0),(0,s._)([(0,i.Cb)({type:y.b,json:{write:!0}})],h.prototype,"material",void 0),(0,s._)([(0,i.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],h.prototype,"castShadows",void 0),(0,s._)([(0,i.Cb)(p.Z)],h.prototype,"edges",void 0),h=r=(0,s._)([(0,n.j)("esri.symbols.ExtrudeSymbol3DLayer")],h);const c=h},21218:(t,e,o)=>{o.d(e,{Z:()=>p});var r=o(43697),s=o(5600),i=(o(75215),o(67676),o(80442),o(52011)),l=o(4095),n=o(89164);let a=class extends n.Z{constructor(t){super(t),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline&&this.outline.hash()}`}};(0,r._)([(0,s.Cb)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":l.Z}},json:{default:null,write:!0}})],a.prototype,"outline",void 0),(0,r._)([(0,s.Cb)({type:["simple-fill","picture-fill"],readOnly:!0})],a.prototype,"type",void 0),a=(0,r._)([(0,i.j)("esri.symbols.FillSymbol")],a);const p=a},95191:(t,e,o)=>{o.d(e,{Z:()=>Z});var r,s=o(43697),i=o(5600),l=(o(75215),o(67676),o(80442),o(36030)),n=o(52011),a=o(95868),p=o(56332),y=o(4618),h=o(74721),c=o(17495),d=o(50178),u=(o(92604),o(20102),o(52879));let b=r=class extends u.b{constructor(t){super(t),this.colorMixMode=null}clone(){const t={color:null!=this.color?this.color.clone():null,colorMixMode:this.colorMixMode};return new r(t)}};(0,s._)([(0,l.J)({multiply:"multiply",replace:"replace",tint:"tint"})],b.prototype,"colorMixMode",void 0),b=r=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DFillMaterial")],b);var m,w=o(22303),v=o(96674),g=o(62357),f=o(37308),_=o(45119);let S=m=class extends v.wq{constructor(t){super(t),this.color=new w.Z([0,0,0,1]),this.size=(0,g.Wz)(1),this.pattern=null,this.patternCap="butt"}clone(){const t={color:null!=this.color?this.color.clone():null,size:this.size,pattern:null!=this.pattern?this.pattern.clone():null,patternCap:this.patternCap};return new m(t)}};var C;(0,s._)([(0,i.Cb)(f.a)],S.prototype,"color",void 0),(0,s._)([(0,i.Cb)(f.y)],S.prototype,"size",void 0),(0,s._)([(0,i.Cb)(c.D)],S.prototype,"pattern",void 0),(0,s._)([(0,i.Cb)({type:_.Hc,json:{default:"butt",write:{overridePolicy(){return{enabled:null!=this.pattern}}}}})],S.prototype,"patternCap",void 0),S=m=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DOutline")],S);let j=C=class extends a.Z{constructor(t){super(t),this.type="fill",this.material=null,this.pattern=null,this.castShadows=!0,this.outline=null,this.edges=null}clone(){const t={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 C(t)}static fromSimpleFillSymbol(t){const e=t.outline&&t.outline.style&&"inside-frame"!==t.outline.style&&"solid"!==t.outline.style?new y.Z({style:t.outline.style}):null,o={size:t.outline?.width??0,color:(t.outline?.color??d.ix).clone(),pattern:e};return e&&t.outline?.cap&&(o.patternCap=t.outline.cap),new C({material:new b({color:(t.color??d.l9).clone()}),pattern:t.style&&"solid"!==t.style?new h.Z({style:t.style}):null,outline:o})}};(0,s._)([(0,l.J)({Fill:"fill"},{readOnly:!0})],j.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:b,json:{write:!0}})],j.prototype,"material",void 0),(0,s._)([(0,i.Cb)(c.q)],j.prototype,"pattern",void 0),(0,s._)([(0,i.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],j.prototype,"castShadows",void 0),(0,s._)([(0,i.Cb)({type:S,json:{write:!0}})],j.prototype,"outline",void 0),(0,s._)([(0,i.Cb)(p.Z)],j.prototype,"edges",void 0),j=C=(0,s._)([(0,n.j)("esri.symbols.FillSymbol3DLayer")],j);const Z=j},31134:(t,e,o)=>{o.d(e,{Z:()=>c});var r,s=o(43697),i=o(96674),l=o(62357),n=o(5600),a=o(90578),p=(o(67676),o(80442),o(52011)),y=o(61565);let h=r=class extends i.wq{constructor(t){super(t),this.decoration="none",this.family="sans-serif",this.size=9,this.style="normal",this.weight="normal"}castSize(t){return(0,l.t_)(t)}clone(){return new r({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,s._)([(0,n.Cb)({type:y.JT,json:{default:"none",write:!0}})],h.prototype,"decoration",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"family",void 0),(0,s._)([(0,n.Cb)({type:Number,json:{write:{overridePolicy:(t,e,o)=>({enabled:!o||!o.textSymbol3D})}}})],h.prototype,"size",void 0),(0,s._)([(0,a.p)("size")],h.prototype,"castSize",null),(0,s._)([(0,n.Cb)({type:y.g6,json:{default:"normal",write:!0}})],h.prototype,"style",void 0),(0,s._)([(0,n.Cb)({type:y.vC,json:{default:"normal",write:!0}})],h.prototype,"weight",void 0),h=r=(0,s._)([(0,p.j)("esri.symbols.Font")],h);const c=h},50575:(t,e,o)=>{o.d(e,{Z:()=>P});var r,s=o(43697),i=o(92604),l=o(17452),n=o(5600),a=(o(75215),o(67676),o(80442),o(36030)),p=o(52011),y=o(95868),h=o(50178),c=o(35454),d=o(96674),u=o(71715),b=o(30556),m=o(25929);const w=(0,c.w)()({circle:"circle",square:"square",cross:"cross",x:"x",kite:"kite",triangle:"triangle"});let v=r=class extends d.wq{constructor(t){super(t)}readHref(t,e,o){return t?(0,m.f)(t,o):e.dataURI}writeHref(t,e,o,r){t&&((0,l.HK)(t)?e.dataURI=t:(e.href=(0,m.t)(t,r),(0,l.YP)(e.href)&&(e.href=(0,l.Fv)(e.href))))}clone(){return new r({href:this.href,primitive:this.primitive})}};(0,s._)([(0,n.Cb)({type:String,json:{write:!0,read:{source:["href","dataURI"]}}})],v.prototype,"href",void 0),(0,s._)([(0,u.r)("href")],v.prototype,"readHref",null),(0,s._)([(0,b.c)("href",{href:{type:String},dataURI:{type:String}})],v.prototype,"writeHref",null),(0,s._)([(0,a.J)(w)],v.prototype,"primitive",void 0),v=r=(0,s._)([(0,p.j)("esri.symbols.support.IconSymbol3DLayerResource")],v);var g,f=o(37308),_=o(15923);let S=g=class extends _.Z{constructor(){super(...arguments),this.x=0,this.y=0}clone(){return new g({x:this.x,y:this.y})}};(0,s._)([(0,n.Cb)({type:Number})],S.prototype,"x",void 0),(0,s._)([(0,n.Cb)({type:Number})],S.prototype,"y",void 0),S=g=(0,s._)([(0,p.j)("esri.symbols.support.Symbol3DAnchorPosition2D")],S);var C,j=o(22303),Z=o(62357);let x=C=class extends d.wq{constructor(t){super(t),this.color=new j.Z([0,0,0,1]),this.size=(0,Z.Wz)(1)}clone(){const t={color:null!=this.color?this.color.clone():null,size:this.size};return new C(t)}};(0,s._)([(0,n.Cb)(f.a)],x.prototype,"color",void 0),(0,s._)([(0,n.Cb)(f.y)],x.prototype,"size",void 0),x=C=(0,s._)([(0,p.j)("esri.symbols.support.Symbol3DIconOutline")],x);var L,z=o(52879);const k="esri.symbols.IconSymbol3DLayer";let O=L=class extends y.Z{constructor(t){super(t),this.material=null,this.resource=null,this.type="icon",this.size=12,this.anchor="center",this.anchorPosition=null,this.outline=null}clone(){return new L({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(t){const e=t.color||h.ix,o=D(t),r=t.outline&&t.outline.width>0?{size:t.outline.width,color:(t.outline.color||h.ix).clone()}:null;return new L({size:t.size,resource:{primitive:M(t.style)},material:{color:e},outline:r,anchor:o?"relative":void 0,anchorPosition:o})}static fromPictureMarkerSymbol(t){const e=!t.color||(0,h.rx)(t.color)?h.ix:t.color,o=D(t);return new L({size:t.width<=t.height?t.height:t.width,resource:{href:t.url},material:{color:e.clone()},anchor:o?"relative":void 0,anchorPosition:o})}static fromCIMSymbol(t){return new L({resource:{href:(0,l._l)({mediaType:"application/json",data:JSON.stringify(t.data)})}})}};function D(t){const e="width"in t?t.width:t.size,o="height"in t?t.height:t.size,r=N(t.xoffset),s=N(t.yoffset);return(r||s)&&e&&o?{x:-r/e,y:s/o}:null}function N(t){return isFinite(t)?t:0}(0,s._)([(0,n.Cb)({type:z.b,json:{write:!0}})],O.prototype,"material",void 0),(0,s._)([(0,n.Cb)({type:v,json:{write:!0}})],O.prototype,"resource",void 0),(0,s._)([(0,a.J)({Icon:"icon"},{readOnly:!0})],O.prototype,"type",void 0),(0,s._)([(0,n.Cb)(f.y)],O.prototype,"size",void 0),(0,s._)([(0,a.J)({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.Cb)({json:{default:"center"}})],O.prototype,"anchor",void 0),(0,s._)([(0,n.Cb)({type:S,json:{type:[Number],read:{reader:t=>new S({x:t[0],y:t[1]})},write:{writer:(t,e)=>{e.anchorPosition=[t.x,t.y]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],O.prototype,"anchorPosition",void 0),(0,s._)([(0,n.Cb)({type:x,json:{write:!0}})],O.prototype,"outline",void 0),O=L=(0,s._)([(0,p.j)(k)],O);const $={circle:"circle",cross:"cross",diamond:"kite",square:"square",x:"x",triangle:"triangle",path:null};function M(t){return $[t]||(i.Z.getLogger(k).warn(`${t} cannot be mapped to Icon symbol. Fallback to "circle"`),"circle")}const P=O},20825:(t,e,o)=>{o.d(e,{Z:()=>m});var r,s=o(43697),i=o(46791),l=o(22974),n=o(5600),a=(o(75215),o(36030)),p=o(52011),y=o(87223),h=o(2283),c=o(84275),d=o(7413);const u=i.Z.ofType({base:null,key:"type",typeMap:{text:h.Z}});let b=r=class extends y.Z{constructor(t){super(t),this.verticalOffset=null,this.callout=null,this.styleOrigin=null,this.symbolLayers=new u,this.type="label-3d"}supportsCallout(){return!0}hasVisibleCallout(){return(0,c.gv)(this)}hasVisibleVerticalOffset(){return(0,c.Uy)(this)}clone(){return new r({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail),callout:(0,l.d9)(this.callout),verticalOffset:(0,l.d9)(this.verticalOffset)})}static fromTextSymbol(t){return new r({symbolLayers:[h.Z.fromTextSymbol(t)]})}};(0,s._)([(0,n.Cb)({type:d.Z,json:{write:!0}})],b.prototype,"verticalOffset",void 0),(0,s._)([(0,n.Cb)(c.Y2)],b.prototype,"callout",void 0),(0,s._)([(0,n.Cb)({json:{read:!1,write:!1}})],b.prototype,"styleOrigin",void 0),(0,s._)([(0,n.Cb)({type:u})],b.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({LabelSymbol3D:"label-3d"},{readOnly:!0})],b.prototype,"type",void 0),b=r=(0,s._)([(0,p.j)("esri.symbols.LabelSymbol3D")],b);const m=b},98587:(t,e,o)=>{o.d(e,{Z:()=>m});var r,s=o(43697),i=o(46791),l=o(22974),n=o(5600),a=(o(75215),o(36030)),p=o(52011),y=o(38128),h=o(96742),c=o(87223);const d=i.Z.ofType({base:null,key:"type",typeMap:{line:y.Z,path:h.Z}}),u=i.Z.ofType({base:null,key:"type",typeMap:{line:y.Z,path:h.Z}});let b=r=class extends c.Z{constructor(t){super(t),this.symbolLayers=new d,this.type="line-3d"}clone(){return new r({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromSimpleLineSymbol(t){return new r({symbolLayers:[y.Z.fromSimpleLineSymbol(t)]})}};(0,s._)([(0,n.Cb)({type:d,json:{type:u}})],b.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({LineSymbol3D:"line-3d"},{readOnly:!0})],b.prototype,"type",void 0),b=r=(0,s._)([(0,p.j)("esri.symbols.LineSymbol3D")],b);const m=b},38128:(t,e,o)=>{o.d(e,{Z:()=>j});var r=o(43697),s=o(62357),i=o(5600),l=o(75215),n=(o(67676),o(80442),o(36030)),a=o(52011),p=o(22303),y=o(2368),h=o(96674),c=o(57742);let d=class extends((0,y.J)(h.wq)){constructor(t){super(t),this.type="style",this.placement="begin-end",this.style="arrow",this.color=null}equals(t){return null!=t&&t.placement===this.placement&&t.style===this.style&&(null==this.color&&null==t.color||null!=this.color&&null!=t.color&&this.color.toJSON()===t.color.toJSON())}};(0,r._)([(0,i.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],d.prototype,"type",void 0),(0,r._)([(0,i.Cb)({type:c.J,json:{default:"begin-end",write:!0}})],d.prototype,"placement",void 0),(0,r._)([(0,i.Cb)({type:c.k,json:{default:"arrow",write:!0}})],d.prototype,"style",void 0),(0,r._)([(0,i.Cb)({type:p.Z,json:{type:[l.z8],default:null,write:!0}})],d.prototype,"color",void 0),d=(0,r._)([(0,a.j)("esri.symbols.LineStyleMarker3D")],d);const u=d;var b,m=o(95868),w=o(4618),v=o(17495),g=o(50178),f=o(37308),_=o(52879),S=o(45119);let C=b=class extends m.Z{constructor(t){super(t),this.material=null,this.type="line",this.join="miter",this.cap="butt",this.size=(0,s.Wz)(1),this.pattern=null,this.marker=null}clone(){const t={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 b(t)}static fromSimpleLineSymbol(t){const e={enabled:!0,size:t.width??(0,s.Wz)(1),cap:t.cap||"butt",join:t.join||"miter",pattern:t.style&&"inside-frame"!==t.style?new w.Z({style:t.style}):null,material:new _.b({color:(t.color||g.ix).clone()}),marker:t.marker?new u({placement:t.marker.placement,style:t.marker.style,color:t.marker.color?.clone()??null}):null};return new b(e)}};(0,r._)([(0,i.Cb)({type:_.b,json:{write:!0}})],C.prototype,"material",void 0),(0,r._)([(0,n.J)({Line:"line"},{readOnly:!0})],C.prototype,"type",void 0),(0,r._)([(0,i.Cb)({type:S.w2,json:{write:!0,default:"miter"}})],C.prototype,"join",void 0),(0,r._)([(0,i.Cb)({type:S.Hc,json:{write:!0,default:"butt"}})],C.prototype,"cap",void 0),(0,r._)([(0,i.Cb)(f.y)],C.prototype,"size",void 0),(0,r._)([(0,i.Cb)(v.D)],C.prototype,"pattern",void 0),(0,r._)([(0,i.Cb)({types:{key:"type",base:u,typeMap:{style:u}},json:{write:!0}})],C.prototype,"marker",void 0),C=b=(0,r._)([(0,a.j)("esri.symbols.LineSymbol3DLayer")],C);const j=C},40908:(t,e,o)=>{o.d(e,{Z:()=>p});var r=o(43697),s=o(62357),i=o(5600),l=(o(75215),o(67676),o(80442),o(52011)),n=o(89164);let a=class extends n.Z{constructor(t){super(t),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,r._)([(0,i.Cb)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],a.prototype,"angle",void 0),(0,r._)([(0,i.Cb)({type:["simple-marker","picture-marker"],readOnly:!0})],a.prototype,"type",void 0),(0,r._)([(0,i.Cb)({type:Number,cast:s.t_,json:{write:!0}})],a.prototype,"xoffset",void 0),(0,r._)([(0,i.Cb)({type:Number,cast:s.t_,json:{write:!0}})],a.prototype,"yoffset",void 0),(0,r._)([(0,i.Cb)({type:Number,cast:t=>"auto"===t?t:(0,s.t_)(t),json:{write:!0}})],a.prototype,"size",void 0),a=(0,r._)([(0,l.j)("esri.symbols.MarkerSymbol")],a);const p=a},3456:(t,e,o)=>{o.d(e,{Z:()=>u});var r,s=o(43697),i=o(46791),l=o(22974),n=o(5600),a=(o(75215),o(36030)),p=o(52011),y=o(95191),h=o(87223);const c=i.Z.ofType({base:null,key:"type",typeMap:{fill:y.Z}});let d=r=class extends h.Z{constructor(t){super(t),this.symbolLayers=new c,this.type="mesh-3d"}clone(){return new r({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromSimpleFillSymbol(t){return new r({symbolLayers:[y.Z.fromSimpleFillSymbol(t)]})}};(0,s._)([(0,n.Cb)({type:c})],d.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({MeshSymbol3D:"mesh-3d"},{readOnly:!0})],d.prototype,"type",void 0),d=r=(0,s._)([(0,p.j)("esri.symbols.MeshSymbol3D")],d);const u=d},17143:(t,e,o)=>{o.d(e,{Z:()=>f});var r,s=o(43697),i=o(5600),l=(o(75215),o(67676),o(80442),o(36030)),n=o(52011),a=o(95868),p=o(35454),y=o(96674),h=o(25929);const c=(0,p.w)()({sphere:"sphere",cylinder:"cylinder",cube:"cube",cone:"cone",diamond:"diamond",tetrahedron:"tetrahedron",invertedCone:"inverted-cone"});let d=r=class extends y.wq{clone(){return new r({href:this.href,primitive:this.primitive})}};(0,s._)([(0,i.Cb)({type:String,json:{read:h.r,write:h.w}})],d.prototype,"href",void 0),(0,s._)([(0,l.J)(c)],d.prototype,"primitive",void 0),d=r=(0,s._)([(0,n.j)("esri.symbols.support.ObjectSymbol3DLayerResource")],d);var u,b=o(15923);let m=u=class extends b.Z{constructor(){super(...arguments),this.x=0,this.y=0,this.z=0}clone(){return new u({x:this.x,y:this.y,z:this.z})}};(0,s._)([(0,i.Cb)({type:Number})],m.prototype,"x",void 0),(0,s._)([(0,i.Cb)({type:Number})],m.prototype,"y",void 0),(0,s._)([(0,i.Cb)({type:Number})],m.prototype,"z",void 0),m=u=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DAnchorPosition3D")],m);var w,v=o(52879);let g=w=class extends a.Z{constructor(t){super(t),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&&this.anchorPosition.clone(),depth:this.depth,enabled:this.enabled,height:this.height,material:null!=this.material?this.material.clone():null,castShadows:this.castShadows,resource:this.resource&&this.resource.clone(),width:this.width})}get isPrimitive(){return!this.resource||"string"!=typeof this.resource.href}};(0,s._)([(0,i.Cb)({type:v.b,json:{write:!0}})],g.prototype,"material",void 0),(0,s._)([(0,i.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],g.prototype,"castShadows",void 0),(0,s._)([(0,i.Cb)({type:d,json:{write:!0}})],g.prototype,"resource",void 0),(0,s._)([(0,l.J)({Object:"object"},{readOnly:!0})],g.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],g.prototype,"width",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],g.prototype,"height",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],g.prototype,"depth",void 0),(0,s._)([(0,l.J)({center:"center",top:"top",bottom:"bottom",origin:"origin",relative:"relative"}),(0,i.Cb)({json:{default:"origin"}})],g.prototype,"anchor",void 0),(0,s._)([(0,i.Cb)({type:m,json:{type:[Number],read:{reader:t=>new m({x:t[0],y:t[1],z:t[2]})},write:{writer:(t,e)=>{e.anchorPosition=[t.x,t.y,t.z]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],g.prototype,"anchorPosition",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],g.prototype,"heading",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],g.prototype,"tilt",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],g.prototype,"roll",void 0),(0,s._)([(0,i.Cb)({readOnly:!0})],g.prototype,"isPrimitive",null),g=w=(0,s._)([(0,n.j)("esri.symbols.ObjectSymbol3DLayer")],g);const f=g},96742:(t,e,o)=>{o.d(e,{Z:()=>d});var r,s=o(43697),i=o(5600),l=(o(75215),o(67676),o(80442),o(36030)),n=o(71715),a=o(52011),p=o(95868),y=o(52879),h=o(45119);let c=r=class extends p.Z{constructor(t){super(t),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(t,e){return null!=t?t:null==e.height&&null!=e.size?e.size:void 0}readHeight(t,e){return null!=t?t:null==e.width&&null!=e.size?e.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.Cb)({type:y.b,json:{write:!0}})],c.prototype,"material",void 0),(0,s._)([(0,i.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],c.prototype,"castShadows",void 0),(0,s._)([(0,l.J)({Path:"path"},{readOnly:!0})],c.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:["circle","quad"],json:{write:!0,default:"circle"}})],c.prototype,"profile",void 0),(0,s._)([(0,i.Cb)({type:h.w2,json:{write:!0,default:"miter"}})],c.prototype,"join",void 0),(0,s._)([(0,i.Cb)({type:h.KW,json:{write:!0,default:"butt"}})],c.prototype,"cap",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:{enabled:!0,target:{width:{type:Number},size:{type:Number}}}}})],c.prototype,"width",void 0),(0,s._)([(0,n.r)("width",["width","size","height"])],c.prototype,"readWidth",null),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],c.prototype,"height",void 0),(0,s._)([(0,n.r)("height",["height","size","width"])],c.prototype,"readHeight",null),(0,s._)([(0,i.Cb)({type:["center","bottom","top"],json:{write:!0,default:"center"}})],c.prototype,"anchor",void 0),(0,s._)([(0,i.Cb)({type:["heading","all"],json:{write:!0,default:"all"}})],c.prototype,"profileRotation",void 0),c=r=(0,s._)([(0,a.j)("esri.symbols.PathSymbol3DLayer")],c);const d=c},37898:(t,e,o)=>{o.d(e,{Z:()=>u});var r,s=o(43697),i=o(22974),l=o(62357),n=o(5600),a=(o(75215),o(36030)),p=o(71715),y=o(52011),h=o(40908),c=o(94075);let d=r=class extends h.Z{constructor(...t){super(...t),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(t,e,o){if(t&&"string"!=typeof t&&null==t.imageData)return t;const r={};return t&&(r.url=t),null!=e&&(r.width=(0,l.t_)(e)),null!=o&&(r.height=(0,l.t_)(o)),r}readHeight(t,e){return e.size||t}readWidth(t,e){return e.size||t}clone(){const t=new r({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return t._set("source",(0,i.d9)(this.source)),t}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,s._)([(0,n.Cb)({json:{write:!1}})],d.prototype,"color",void 0),(0,s._)([(0,a.J)({esriPMS:"picture-marker"},{readOnly:!0})],d.prototype,"type",void 0),(0,s._)([(0,n.Cb)(c.KA)],d.prototype,"url",void 0),(0,s._)([(0,n.Cb)(c.Ds)],d.prototype,"source",void 0),(0,s._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],d.prototype,"height",void 0),(0,s._)([(0,p.r)("height",["height","size"])],d.prototype,"readHeight",null),(0,s._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],d.prototype,"width",void 0),(0,s._)([(0,n.Cb)({json:{write:!1}})],d.prototype,"size",void 0),d=r=(0,s._)([(0,y.j)("esri.symbols.PictureMarkerSymbol")],d);const u=d},42143:(t,e,o)=>{o.d(e,{Z:()=>v});var r,s=o(43697),i=o(46791),l=o(22974),n=o(5600),a=(o(75215),o(36030)),p=o(52011),y=o(50575),h=o(17143),c=o(87223),d=o(2283),u=o(84275),b=o(7413);const m=i.Z.ofType({base:null,key:"type",typeMap:{icon:y.Z,object:h.Z,text:d.Z}});let w=r=class extends c.Z{constructor(t){super(t),this.verticalOffset=null,this.callout=null,this.symbolLayers=new m,this.type="point-3d"}supportsCallout(){if((this.symbolLayers?this.symbolLayers.length:0)<1)return!1;for(const t of this.symbolLayers.items)switch(t.type){case"icon":case"text":case"object":continue;default:return!1}return!0}hasVisibleCallout(){return(0,u.gv)(this)}hasVisibleVerticalOffset(){return(0,u.Uy)(this)}clone(){return new r({verticalOffset:(0,l.d9)(this.verticalOffset),callout:(0,l.d9)(this.callout),styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromSimpleMarkerSymbol(t){return new r({symbolLayers:[y.Z.fromSimpleMarkerSymbol(t)]})}static fromPictureMarkerSymbol(t){return new r({symbolLayers:[y.Z.fromPictureMarkerSymbol(t)]})}static fromCIMSymbol(t){const e=t.data?.symbol?.type;if("CIMPointSymbol"!==e)return null;const o=t.data.symbol;return new r(o?.callout?{symbolLayers:[y.Z.fromCIMSymbol(t)],callout:{type:"line",size:.5,color:[0,0,0]},verticalOffset:{screenLength:40}}:{symbolLayers:[y.Z.fromCIMSymbol(t)]})}static fromTextSymbol(t){return new r({symbolLayers:[d.Z.fromTextSymbol(t)]})}};(0,s._)([(0,n.Cb)({type:b.Z,json:{write:!0}})],w.prototype,"verticalOffset",void 0),(0,s._)([(0,n.Cb)(u.Y2)],w.prototype,"callout",void 0),(0,s._)([(0,n.Cb)({type:m,json:{origins:{"web-scene":{write:!0}}}})],w.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({PointSymbol3D:"point-3d"},{readOnly:!0})],w.prototype,"type",void 0),w=r=(0,s._)([(0,p.j)("esri.symbols.PointSymbol3D")],w);const v=w},86114:(t,e,o)=>{o.d(e,{Z:()=>f});var r,s=o(43697),i=o(46791),l=o(22974),n=o(5600),a=(o(75215),o(36030)),p=o(52011),y=o(38445),h=o(95191),c=o(50575),d=o(38128),u=o(17143),b=o(87223),m=o(2283),w=o(44398);const v=i.Z.ofType({base:null,key:"type",typeMap:{extrude:y.Z,fill:h.Z,icon:c.Z,line:d.Z,object:u.Z,text:m.Z,water:w.Z}});let g=r=class extends b.Z{constructor(t){super(t),this.symbolLayers=new v,this.type="polygon-3d"}clone(){return new r({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromJSON(t){const e=new r;if(e.read(t),2===e.symbolLayers.length&&"fill"===e.symbolLayers.getItemAt(0).type&&"line"===e.symbolLayers.getItemAt(1).type){const o=e.symbolLayers.getItemAt(0),r=e.symbolLayers.getItemAt(1);!r.enabled||t.symbolLayers&&t.symbolLayers[1]&&!1===t.symbolLayers[1].enable||(o.outline={size:r.size,color:null!=r.material?r.material.color:null}),e.symbolLayers.removeAt(1)}return e}static fromSimpleFillSymbol(t){return new r({symbolLayers:[h.Z.fromSimpleFillSymbol(t)]})}};(0,s._)([(0,n.Cb)({type:v,json:{write:!0}})],g.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({PolygonSymbol3D:"polygon-3d"},{readOnly:!0})],g.prototype,"type",void 0),g=r=(0,s._)([(0,p.j)("esri.symbols.PolygonSymbol3D")],g);const f=g},20256:(t,e,o)=>{o.d(e,{Z:()=>b});var r,s=o(43697),i=o(22303),l=o(35454),n=o(22974),a=o(5600),p=(o(75215),o(36030)),y=o(52011),h=o(21218),c=o(4095);const d=new l.X({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let u=r=class extends h.Z{constructor(...t){super(...t),this.color=new i.Z([0,0,0,.25]),this.outline=new c.Z,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(t,e,o){if(t&&"string"!=typeof t)return t;const r={};return t&&(r.style=t),e&&(r.outline=e),o&&(r.color=o),r}clone(){return new r({color:(0,n.d9)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,s._)([(0,a.Cb)()],u.prototype,"color",void 0),(0,s._)([(0,a.Cb)()],u.prototype,"outline",void 0),(0,s._)([(0,p.J)({esriSFS:"simple-fill"},{readOnly:!0})],u.prototype,"type",void 0),(0,s._)([(0,a.Cb)({type:d.apiValues,json:{read:d.read,write:d.write}})],u.prototype,"style",void 0),u=r=(0,s._)([(0,y.j)("esri.symbols.SimpleFillSymbol")],u);const b=u},4095:(t,e,o)=>{o.d(e,{Z:()=>j});var r=o(43697),s=o(35454),i=o(22974),l=o(62357),n=o(5600),a=(o(75215),o(36030)),p=o(52011),y=(o(67676),o(80442),o(89164));let h=class extends y.Z{constructor(t){super(t),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};(0,r._)([(0,a.J)({esriSLS:"simple-line"},{readOnly:!0})],h.prototype,"type",void 0),(0,r._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],h.prototype,"width",void 0),h=(0,r._)([(0,p.j)("esri.symbols.LineSymbol")],h);const c=h;var d,u=o(22303),b=o(96674),m=o(71715),w=o(30556),v=o(57742);let g=d=class extends b.wq{constructor(t){super(t),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(t,e,o,r){e[o]="web-map"===r?.origin?"arrow":t}set color(t){this._set("color",t)}readColor(t){return t&&null!=t[0]?[t[0],t[1],t[2],t[3]/255]:t}writeColor(t,e,o,r){"web-map"===r?.origin||(e[o]=t)}clone(){return new d({color:(0,i.d9)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,r._)([(0,n.Cb)({type:["begin","end","begin-end"],json:{write:!0}})],g.prototype,"placement",void 0),(0,r._)([(0,a.J)({"line-marker":"line-marker"},{readOnly:!0}),(0,n.Cb)({json:{origins:{"web-map":{write:!1}}}})],g.prototype,"type",void 0),(0,r._)([(0,n.Cb)({type:v.k})],g.prototype,"style",void 0),(0,r._)([(0,w.c)("style")],g.prototype,"writeStyle",null),(0,r._)([(0,n.Cb)({type:u.Z,value:null,json:{write:{allowNull:!0}}})],g.prototype,"color",null),(0,r._)([(0,m.r)("color")],g.prototype,"readColor",null),(0,r._)([(0,w.c)("color")],g.prototype,"writeColor",null),g=d=(0,r._)([(0,p.j)("esri.symbols.LineSymbolMarker")],g);const f=g;var _;const S=new s.X({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSInsideFrame:"inside-frame",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let C=_=class extends c{constructor(...t){super(...t),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(t,e,o,r,s,i){if(t&&"string"!=typeof t)return t;const n={};return null!=t&&(n.style=t),null!=e&&(n.color=e),null!=o&&(n.width=(0,l.t_)(o)),null!=r&&(n.cap=r),null!=s&&(n.join=s),null!=i&&(n.miterLimit=(0,l.t_)(i)),n}clone(){return new _({color:(0,i.d9)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,r._)([(0,a.J)({esriSLS:"simple-line"},{readOnly:!0})],C.prototype,"type",void 0),(0,r._)([(0,n.Cb)({type:S.apiValues,json:{read:S.read,write:S.write}})],C.prototype,"style",void 0),(0,r._)([(0,n.Cb)({type:["butt","round","square"],json:{write:{overridePolicy:(t,e,o)=>({enabled:"round"!==t&&(null==o||null==o.origin)})}}})],C.prototype,"cap",void 0),(0,r._)([(0,n.Cb)({type:["miter","round","bevel"],json:{write:{overridePolicy:(t,e,o)=>({enabled:"round"!==t&&(null==o||null==o.origin)})}}})],C.prototype,"join",void 0),(0,r._)([(0,n.Cb)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":f}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],C.prototype,"marker",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{read:!1,write:!1}})],C.prototype,"miterLimit",void 0),C=_=(0,r._)([(0,p.j)("esri.symbols.SimpleLineSymbol")],C);const j=C},77987:(t,e,o)=>{o.d(e,{Z:()=>w});var r,s=o(43697),i=o(22303),l=o(35454),n=o(22974),a=o(62357),p=o(5600),y=(o(75215),o(36030)),h=o(52011),c=o(30556),d=o(40908),u=o(4095);const b=new l.X({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let m=r=class extends d.Z{constructor(...t){super(...t),this.color=new i.Z([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new u.Z}normalizeCtorArgs(t,e,o,r){if(t&&"string"!=typeof t)return t;const s={};return t&&(s.style=t),null!=e&&(s.size=(0,a.t_)(e)),o&&(s.outline=o),r&&(s.color=r),s}writeColor(t,e){t&&"x"!==this.style&&"cross"!==this.style&&(e.color=t.toJSON()),null===t&&(e.color=null)}set path(t){this.style="path",this._set("path",t)}clone(){return new r({angle:this.angle,color:(0,n.d9)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,s._)([(0,p.Cb)()],m.prototype,"color",void 0),(0,s._)([(0,c.c)("color")],m.prototype,"writeColor",null),(0,s._)([(0,y.J)({esriSMS:"simple-marker"},{readOnly:!0})],m.prototype,"type",void 0),(0,s._)([(0,p.Cb)()],m.prototype,"size",void 0),(0,s._)([(0,p.Cb)({type:b.apiValues,json:{read:b.read,write:b.write}})],m.prototype,"style",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],m.prototype,"path",null),(0,s._)([(0,p.Cb)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":u.Z}},json:{default:null,write:!0}})],m.prototype,"outline",void 0),m=r=(0,s._)([(0,h.j)("esri.symbols.SimpleMarkerSymbol")],m);const w=m},89164:(t,e,o)=>{o.d(e,{Z:()=>d});var r=o(43697),s=o(22303),i=o(35454),l=o(96674),n=o(5600),a=(o(75215),o(67676),o(80442),o(71715)),p=o(52011);const y=new i.X({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let h=0,c=class extends l.wq{constructor(t){super(t),this.id="sym"+h++,this.type=null,this.color=new s.Z([0,0,0,1])}readColor(t){return t&&null!=t[0]?[t[0],t[1],t[2],t[3]/255]:t}async collectRequiredFields(t,e){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,r._)([(0,n.Cb)({type:y.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:y.write}}})],c.prototype,"type",void 0),(0,r._)([(0,n.Cb)({type:s.Z,json:{write:{allowNull:!0}}})],c.prototype,"color",void 0),(0,r._)([(0,a.r)("color")],c.prototype,"readColor",null),c=(0,r._)([(0,p.j)("esri.symbols.Symbol")],c);const d=c},87223:(t,e,o)=>{o.d(e,{Z:()=>D});var r=o(43697),s=o(46791),i=o(70921),l=o(92604),n=o(17452),a=o(20941),p=o(5600),y=o(90578),h=(o(67676),o(80442),o(71715)),c=o(52011),d=o(30556),u=o(65587),b=o(25929),m=o(38445),w=o(95191),v=o(50575),g=o(38128),f=o(17143),_=o(96742),S=o(89164),C=o(95868),j=o(2283),Z=o(44398),x=o(71144),L=o(23203);const z={icon:v.Z,object:f.Z,line:g.Z,path:_.Z,fill:w.Z,extrude:m.Z,text:j.Z,water:Z.Z},k=s.Z.ofType({base:C.Z,key:"type",typeMap:z,errorContext:"symbol-layer"});let O=class extends S.Z{constructor(t){super(t),this.styleOrigin=null,this.thumbnail=null,this.type=null;const e=this.__accessor__&&this.__accessor__.metadatas&&this.__accessor__.metadatas.symbolLayers,o=e&&e.type||s.Z;this._set("symbolLayers",new o)}get color(){return null}set color(t){this.constructed&&l.Z.getLogger(this.declaredClass).error("Symbol3D does not support colors on the symbol level. Colors may be set on individual symbol layer materials instead.")}set symbolLayers(t){(0,i.Z)(t,this._get("symbolLayers"))}readStyleOrigin(t,e,o){if(t.styleUrl&&t.name){const e=(0,b.f)(t.styleUrl,o);return new x.Z({styleUrl:e,name:t.name})}if(t.styleName&&t.name)return new x.Z({portal:o&&o.portal||u.Z.getDefault(),styleName:t.styleName,name:t.name});o&&o.messages&&o.messages.push(new a.Z("symbol3d:incomplete-style-origin","Style origin requires either a 'styleUrl' or 'styleName' and a 'name' property",{context:o,definition:t}))}writeStyleOrigin(t,e,o,r){if(t.styleUrl&&t.name){let o=(0,b.t)(t.styleUrl,r);(0,n.YP)(o)&&(o=(0,n.Fv)(o)),e.styleOrigin={styleUrl:o,name:t.name}}else t.styleName&&t.name&&(t.portal&&r&&r.portal&&!(0,n.tm)(t.portal.restUrl,r.portal.restUrl)?r&&r.messages&&r.messages.push(new a.Z("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})):e.styleOrigin={styleName:t.styleName,name:t.name})}normalizeCtorArgs(t){return t instanceof C.Z||t&&z[t.type]?{symbolLayers:[t]}:Array.isArray(t)?{symbolLayers:t}:t}};(0,r._)([(0,p.Cb)({json:{read:!1,write:!1}})],O.prototype,"color",null),(0,r._)([(0,p.Cb)({type:k,nonNullable:!0,json:{write:!0}}),(0,y.p)(i.R)],O.prototype,"symbolLayers",null),(0,r._)([(0,p.Cb)({type:x.Z})],O.prototype,"styleOrigin",void 0),(0,r._)([(0,h.r)("styleOrigin")],O.prototype,"readStyleOrigin",null),(0,r._)([(0,d.c)("styleOrigin",{"styleOrigin.styleUrl":{type:String},"styleOrigin.styleName":{type:String},"styleOrigin.name":{type:String}})],O.prototype,"writeStyleOrigin",null),(0,r._)([(0,p.Cb)({type:L.p,json:{read:!1}})],O.prototype,"thumbnail",void 0),(0,r._)([(0,p.Cb)({type:["point-3d","line-3d","polygon-3d","mesh-3d","label-3d"],readOnly:!0})],O.prototype,"type",void 0),O=(0,r._)([(0,c.j)("esri.symbols.Symbol3D")],O);const D=O},95868:(t,e,o)=>{o.d(e,{Z:()=>p});var r=o(43697),s=o(96674),i=o(5600),l=(o(75215),o(67676),o(80442),o(52011)),n=o(30556);let a=class extends s.wq{constructor(t){super(t),this.enabled=!0,this.type=null,this.ignoreDrivers=!1}writeEnabled(t,e,o){t||(e[o]=t)}};(0,r._)([(0,i.Cb)({type:Boolean,json:{read:{source:"enable"},write:{target:"enable"}}})],a.prototype,"enabled",void 0),(0,r._)([(0,n.c)("enabled")],a.prototype,"writeEnabled",null),(0,r._)([(0,i.Cb)({type:["icon","object","line","path","fill","water","extrude","text"],readOnly:!0})],a.prototype,"type",void 0),a=(0,r._)([(0,l.j)("esri.symbols.Symbol3DLayer")],a);const p=a},78724:(t,e,o)=>{o.d(e,{Z:()=>w});var r,s=o(43697),i=o(22303),l=o(22974),n=o(62357),a=o(5600),p=o(90578),y=o(36030),h=o(52011),c=o(30556),d=o(31134),u=o(89164),b=o(61565);let m=r=class extends u.Z{constructor(...t){super(...t),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new d.Z,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.haloSize=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.xoffset=0,this.yoffset=0,this.angle=0,this.width=null,this.lineWidth=192,this.lineHeight=1}normalizeCtorArgs(t,e,o){if(t&&"string"!=typeof t)return t;const r={};return t&&(r.text=t),e&&(r.font=e),o&&(r.color=o),r}writeLineWidth(t,e,o,r){r&&"string"!=typeof r?r.origin:e[o]=t}castLineWidth(t){return(0,n.t_)(t)}writeLineHeight(t,e,o,r){r&&"string"!=typeof r?r.origin:e[o]=t}clone(){return new r({angle:this.angle,backgroundColor:(0,l.d9)(this.backgroundColor),borderLineColor:(0,l.d9)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,l.d9)(this.color),font:this.font&&this.font.clone(),haloColor:(0,l.d9)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor&&this.backgroundColor.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor&&this.haloColor.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,s._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],m.prototype,"backgroundColor",void 0),(0,s._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],m.prototype,"borderLineColor",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0},cast:n.t_})],m.prototype,"borderLineSize",void 0),(0,s._)([(0,a.Cb)({type:d.Z,json:{write:!0}})],m.prototype,"font",void 0),(0,s._)([(0,a.Cb)({...b.x0,json:{write:!0}})],m.prototype,"horizontalAlignment",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"kerning",void 0),(0,s._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],m.prototype,"haloColor",void 0),(0,s._)([(0,a.Cb)({type:Number,cast:n.t_,json:{write:!0}})],m.prototype,"haloSize",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"rightToLeft",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"rotated",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],m.prototype,"text",void 0),(0,s._)([(0,y.J)({esriTS:"text"},{readOnly:!0})],m.prototype,"type",void 0),(0,s._)([(0,a.Cb)({...b.Nj,json:{write:!0}})],m.prototype,"verticalAlignment",void 0),(0,s._)([(0,a.Cb)({type:Number,cast:n.t_,json:{write:!0}})],m.prototype,"xoffset",void 0),(0,s._)([(0,a.Cb)({type:Number,cast:n.t_,json:{write:!0}})],m.prototype,"yoffset",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],m.prototype,"angle",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],m.prototype,"width",void 0),(0,s._)([(0,a.Cb)({type:Number})],m.prototype,"lineWidth",void 0),(0,s._)([(0,c.c)("lineWidth")],m.prototype,"writeLineWidth",null),(0,s._)([(0,p.p)("lineWidth")],m.prototype,"castLineWidth",null),(0,s._)([(0,a.Cb)(b.Ck)],m.prototype,"lineHeight",void 0),(0,s._)([(0,c.c)("lineHeight")],m.prototype,"writeLineHeight",null),m=r=(0,s._)([(0,h.j)("esri.symbols.TextSymbol")],m);const w=m},2283:(t,e,o)=>{o.d(e,{Z:()=>C});var r,s=o(43697),i=o(22974),l=o(5600),n=(o(75215),o(36030)),a=o(52011),p=o(30556),y=o(31134),h=o(95868),c=o(37308),d=o(22303),u=o(96674);let b=r=class extends u.wq{constructor(){super(...arguments),this.color=new d.Z([0,0,0,1]),this.size=0}clone(){const t={color:(0,i.d9)(this.color),size:this.size};return new r(t)}};(0,s._)([(0,l.Cb)(c.a)],b.prototype,"color",void 0),(0,s._)([(0,l.Cb)(c.y)],b.prototype,"size",void 0),b=r=(0,s._)([(0,a.j)("esri.symbols.support.Symbol3DHalo")],b);var m=o(52879),w=o(2368);o(67676),o(80442);let v=class extends((0,w.J)(u.wq)){constructor(t){super(t),this.color=null}};(0,s._)([(0,l.Cb)(c.a)],v.prototype,"color",void 0),v=(0,s._)([(0,a.j)("esri.symbols.support.Symbol3DTextBackground")],v);var g,f=o(61565);let _=g=class extends h.Z{constructor(t){super(t),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(t){null!=t&&null!=this._userSize&&(t.size=this._userSize),this._set("font",t)}writeFont(t,e,o,r){const s={...r,textSymbol3D:!0};e.font=t.write({},s),delete e.font.size}get size(){return null!=this._userSize?this._userSize:null!=this.font&&null!=this.font.size?this.font.size:9}set size(t){this._userSize=t,null!=this.font&&(this.font.size=this._userSize),this.notifyChange("size")}clone(){const t=new g({enabled:this.enabled,font:this.font&&(0,i.d9)(this.font),halo:this.halo&&(0,i.d9)(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.d9)(this.background)});return t._userSize=this._userSize,t}static fromTextSymbol(t){return new g({font:null!=t.font?t.font.clone():new y.Z,halo:S(t.haloColor,t.haloSize),horizontalAlignment:t.horizontalAlignment,lineHeight:t.lineHeight,material:t.color?new m.b({color:t.color.clone()}):null,text:t.text,verticalAlignment:t.verticalAlignment,background:t.backgroundColor?new v({color:t.backgroundColor.clone()}):null})}};function S(t,e){return t&&null!=e&&e>0?new b({color:(0,i.d9)(t),size:e}):null}(0,s._)([(0,l.Cb)({type:y.Z,json:{write:!0}})],_.prototype,"font",null),(0,s._)([(0,p.c)("font")],_.prototype,"writeFont",null),(0,s._)([(0,l.Cb)({type:b,json:{write:!0}})],_.prototype,"halo",void 0),(0,s._)([(0,l.Cb)({...f.x0,json:{default:"center",write:!0}})],_.prototype,"horizontalAlignment",void 0),(0,s._)([(0,l.Cb)({...f.Ck,json:{default:1,write:!0}})],_.prototype,"lineHeight",void 0),(0,s._)([(0,l.Cb)({type:m.b,json:{write:!0}})],_.prototype,"material",void 0),(0,s._)([(0,l.Cb)({type:v,json:{write:!0}})],_.prototype,"background",void 0),(0,s._)([(0,l.Cb)(c.y)],_.prototype,"size",null),(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],_.prototype,"text",void 0),(0,s._)([(0,n.J)({Text:"text"},{readOnly:!0})],_.prototype,"type",void 0),(0,s._)([(0,l.Cb)({...f.Nj,json:{default:"baseline",write:!0}})],_.prototype,"verticalAlignment",void 0),_=g=(0,s._)([(0,a.j)("esri.symbols.TextSymbol3DLayer")],_);const C=_},44398:(t,e,o)=>{o.d(e,{Z:()=>u});var r,s=o(43697),i=o(22303),l=o(22974),n=o(5600),a=o(75215),p=o(36030),y=o(52011),h=o(95868);let c=r=class extends h.Z{constructor(t){super(t),this.color=d.clone(),this.type="water",this.waterbodySize="medium",this.waveDirection=null,this.waveStrength="moderate"}clone(){return new r({color:(0,l.d9)(this.color),waterbodySize:this.waterbodySize,waveDirection:this.waveDirection,waveStrength:this.waveStrength})}};(0,s._)([(0,n.Cb)({type:i.Z,nonNullable:!0,json:{type:[a.z8],write:(t,e,o)=>e[o]=t.toArray(i.Z.AlphaMode.UNLESS_OPAQUE),default:()=>d.clone(),defaultEquals:t=>t.toCss(!0)===d.toCss(!0)}})],c.prototype,"color",void 0),(0,s._)([(0,p.J)({Water:"water"},{readOnly:!0})],c.prototype,"type",void 0),(0,s._)([(0,n.Cb)({type:["small","medium","large"],json:{write:!0,default:"medium"}})],c.prototype,"waterbodySize",void 0),(0,s._)([(0,n.Cb)({type:Number,json:{write:!0,default:null}})],c.prototype,"waveDirection",void 0),(0,s._)([(0,n.Cb)({type:["calm","rippled","slight","moderate"],json:{write:!0,default:"moderate"}})],c.prototype,"waveStrength",void 0),c=r=(0,s._)([(0,y.j)("esri.symbols.WaterSymbol3DLayer")],c);const d=new i.Z([0,119,190]),u=c},59390:(t,e,o)=>{o.d(e,{Z:()=>b});var r,s=o(43697),i=o(92604),l=o(95330),n=o(5600),a=(o(75215),o(67676),o(80442),o(36030)),p=o(52011),y=o(65587),h=o(25929),c=o(89164),d=o(23203);let u=r=class extends c.Z{constructor(t){super(t),this.styleName=null,this.portal=null,this.styleUrl=null,this.thumbnail=null,this.name=null,this.type="web-style"}get _fetchCacheKey(){const t=null!=this.portal?this.portal:y.Z.getDefault(),e=t.user?t.user.username:null;return`${this.styleName}:${this.styleUrl}:${this.name}:${e}:${t.url}`}read(t,e){this.portal=e?.portal,super.read(t,e)}clone(){return new r({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}fetchSymbol(t){return this._fetchSymbol("webRef",t)}fetchCIMSymbol(t){return this._fetchSymbol("cimRef",t)}async _fetchSymbol(t,e){const r=null!=e?e.cache:null,s=r?this._fetchCacheKey:null;if(null!=r){const t=s&&r.get(s);if(t)return t.clone()}const n=await o.e(4499).then(o.bind(o,74499));(0,l.k_)(e);const a=n.resolveWebStyleSymbol(this,{portal:this.portal},t,e);a.catch((t=>{i.Z.getLogger(this.declaredClass).error("#fetchSymbol()","Failed to create symbol from style",t)}));const p=await a;return"webRef"===t&&"point-3d"===p.type||"cimRef"===t&&"cim"===p.type?(null!=r&&r.set(s,p.clone()),p):null}};(0,s._)([(0,n.Cb)({json:{write:!1}})],u.prototype,"color",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"styleName",void 0),(0,s._)([(0,n.Cb)({type:y.Z,json:{write:!1}})],u.prototype,"portal",void 0),(0,s._)([(0,n.Cb)({type:String,json:{read:h.r,write:h.w}})],u.prototype,"styleUrl",void 0),(0,s._)([(0,n.Cb)({type:d.p,json:{read:!1}})],u.prototype,"thumbnail",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,s._)([(0,a.J)({styleSymbolReference:"web-style"},{readOnly:!0})],u.prototype,"type",void 0),(0,s._)([(0,n.Cb)()],u.prototype,"_fetchCacheKey",null),u=r=(0,s._)([(0,p.j)("esri.symbols.WebStyleSymbol")],u);const b=u},27539:(t,e,o)=>{o.d(e,{Z:()=>a});var r=o(43697),s=o(96674),i=o(5600),l=(o(75215),o(67676),o(80442),o(52011));let n=class extends s.wq{constructor(t){super(t),this.visible=!0}clone(){}};(0,r._)([(0,i.Cb)({type:["line"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),(0,r._)([(0,i.Cb)({readOnly:!0})],n.prototype,"visible",void 0),n=(0,r._)([(0,l.j)("esri.symbols.callouts.Callout3D")],n);const a=n},69496:(t,e,o)=>{o.d(e,{Z:()=>b});var r,s=o(43697),i=o(22303),l=o(22974),n=o(62357),a=o(5600),p=(o(75215),o(36030)),y=o(52011),h=o(27539),c=o(6352),d=o(37308);let u=r=class extends h.Z{constructor(t){super(t),this.type="line",this.color=new i.Z([0,0,0,1]),this.size=(0,n.Wz)(1),this.border=null}get visible(){return this.size>0&&null!=this.color&&this.color.a>0}clone(){return new r({color:(0,l.d9)(this.color),size:this.size,border:(0,l.d9)(this.border)})}};(0,s._)([(0,p.J)({line:"line"},{readOnly:!0})],u.prototype,"type",void 0),(0,s._)([(0,a.Cb)(d.a)],u.prototype,"color",void 0),(0,s._)([(0,a.Cb)(d.y)],u.prototype,"size",void 0),(0,s._)([(0,a.Cb)({type:c.a,json:{write:!0}})],u.prototype,"border",void 0),(0,s._)([(0,a.Cb)({readOnly:!0})],u.prototype,"visible",null),u=r=(0,s._)([(0,y.j)("esri.symbols.callouts.LineCallout3D")],u);const b=u},84275:(t,e,o)=>{o.d(e,{Uy:()=>i,Y2:()=>n,gv:()=>l});var r=o(27539),s=o(69496);function i(t){if(!t)return!1;const e=t.verticalOffset;return!!e&&!(e.screenLength<=0||null!=e.maxWorldLength&&e.maxWorldLength<=0)}function l(t){if(!t)return!1;if(!t.supportsCallout||!t.supportsCallout())return!1;const e=t.callout;return!!e&&!!e.visible&&!!i(t)}const n={types:{key:"type",base:r.Z,typeMap:{line:s.Z}},json:{write:!0}}},56332:(t,e,o)=>{o.d(e,{Z:()=>g});var r=o(43697),s=o(22303),i=o(96674),l=o(22974),n=o(62357),a=o(5600),p=(o(75215),o(52011)),y=o(37308);let h=class extends i.wq{constructor(t){super(t),this.color=new s.Z([0,0,0,1]),this.extensionLength=0,this.size=(0,n.Wz)(1)}clone(){}cloneProperties(){return{color:(0,l.d9)(this.color),size:this.size,extensionLength:this.extensionLength}}};(0,r._)([(0,a.Cb)({type:["solid","sketch"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],h.prototype,"type",void 0),(0,r._)([(0,a.Cb)(y.a)],h.prototype,"color",void 0),(0,r._)([(0,a.Cb)({...y.y,json:{write:{overridePolicy:t=>({enabled:!!t})}}})],h.prototype,"extensionLength",void 0),(0,r._)([(0,a.Cb)(y.y)],h.prototype,"size",void 0),h=(0,r._)([(0,p.j)("esri.symbols.edges.Edges3D")],h);const c=h;o(92604),o(67676),o(80442),o(20102);var d,u=o(36030);let b=d=class extends c{constructor(t){super(t),this.type="sketch"}clone(){return new d(this.cloneProperties())}};(0,r._)([(0,u.J)({sketch:"sketch"},{readOnly:!0})],b.prototype,"type",void 0),b=d=(0,r._)([(0,p.j)("esri.symbols.edges.SketchEdges3D")],b);const m=b;var w;let v=w=class extends c{constructor(t){super(t),this.type="solid"}clone(){return new w(this.cloneProperties())}};(0,r._)([(0,u.J)({solid:"solid"},{readOnly:!0})],v.prototype,"type",void 0),v=w=(0,r._)([(0,p.j)("esri.symbols.support.SolidEdges3D")],v);const g={types:{key:"type",base:c,typeMap:{solid:v,sketch:m}},json:{write:!0}}},32626:(t,e,o)=>{o.d(e,{Z:()=>a});var r=o(43697),s=o(96674),i=o(5600),l=(o(75215),o(67676),o(80442),o(52011));let n=class extends s.wq{constructor(t){super(t)}clone(){}};(0,r._)([(0,i.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),n=(0,r._)([(0,l.j)("esri.symbols.patterns.LinePattern3D")],n);const a=n},4618:(t,e,o)=>{o.d(e,{Z:()=>c});var r,s=o(43697),i=o(35454),l=o(5600),n=(o(75215),o(67676),o(80442),o(36030)),a=o(52011),p=o(32626);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 h=r=class extends p.Z{constructor(t){super(t),this.type="style",this.style="solid"}clone(){const t={style:this.style};return new r(t)}};(0,s._)([(0,l.Cb)({type:["style"]})],h.prototype,"type",void 0),(0,s._)([(0,n.J)(y),(0,l.Cb)({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"]})],h.prototype,"style",void 0),h=r=(0,s._)([(0,a.j)("esri.symbols.patterns.LineStylePattern3D")],h);const c=h},41776:(t,e,o)=>{o.d(e,{Z:()=>a});var r=o(43697),s=o(96674),i=o(5600),l=(o(75215),o(67676),o(80442),o(52011));let n=class extends s.wq{constructor(t){super(t)}clone(){}};(0,r._)([(0,i.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),n=(0,r._)([(0,l.j)("esri.symbols.patterns.Pattern3D")],n);const a=n},74721:(t,e,o)=>{o.d(e,{Z:()=>p});var r,s=o(43697),i=o(5600),l=(o(75215),o(67676),o(80442),o(52011)),n=o(41776);let a=r=class extends n.Z{constructor(t){super(t),this.type="style",this.style="solid"}clone(){const t={style:this.style};return new r(t)}};(0,s._)([(0,i.Cb)({type:["style"]})],a.prototype,"type",void 0),(0,s._)([(0,i.Cb)({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.j)("esri.symbols.patterns.StylePattern3D")],a);const p=a},17495:(t,e,o)=>{o.d(e,{D:()=>a,q:()=>n});var r=o(32626),s=o(4618),i=o(41776),l=o(74721);const n={types:{key:"type",base:i.Z,typeMap:{style:l.Z}},json:{write:!0}},a={types:{key:"type",base:r.Z,typeMap:{style:s.Z}},json:{write:!0}}},71144:(t,e,o)=>{o.d(e,{Z:()=>y});var r,s=o(43697),i=o(15923),l=o(5600),n=(o(75215),o(67676),o(80442),o(52011)),a=o(65587);let p=r=class extends i.Z{constructor(t){super(t),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.Cb)({type:String})],p.prototype,"name",void 0),(0,s._)([(0,l.Cb)({type:String})],p.prototype,"styleUrl",void 0),(0,s._)([(0,l.Cb)({type:String})],p.prototype,"styleName",void 0),(0,s._)([(0,l.Cb)({type:a.Z})],p.prototype,"portal",void 0),p=r=(0,s._)([(0,n.j)("esri.symbols.support.StyleOrigin")],p);const y=p},52879:(t,e,o)=>{o.d(e,{b:()=>p});var r,s=o(43697),i=o(96674),l=o(5600),n=(o(75215),o(67676),o(80442),o(52011)),a=o(37308);let p=r=class extends i.wq{constructor(t){super(t),this.color=null}clone(){const t={color:null!=this.color?this.color.clone():null};return new r(t)}};(0,s._)([(0,l.Cb)(a.a)],p.prototype,"color",void 0),p=r=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DMaterial")],p)},7413:(t,e,o)=>{o.d(e,{Z:()=>y});var r,s=o(43697),i=o(96674),l=o(5600),n=(o(75215),o(67676),o(80442),o(52011)),a=o(37308);let p=r=class extends i.wq{constructor(t){super(t),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.Cb)(a.y)],p.prototype,"screenLength",void 0),(0,s._)([(0,l.Cb)({type:Number,nonNullable:!0,json:{write:!0,default:0}})],p.prototype,"minWorldLength",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],p.prototype,"maxWorldLength",void 0),p=r=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DVerticalOffset")],p);const y=p},23203:(t,e,o)=>{o.d(e,{p:()=>a});var r,s=o(43697),i=o(15923),l=o(5600),n=(o(75215),o(67676),o(80442),o(52011));let a=r=class extends i.Z{constructor(){super(...arguments),this.url=""}clone(){return new r({url:this.url})}};(0,s._)([(0,l.Cb)({type:String})],a.prototype,"url",void 0),a=r=(0,s._)([(0,n.j)("esri.symbols.support.Thumbnail")],a)},50178:(t,e,o)=>{o.d(e,{ix:()=>s,l9:()=>i,rx:()=>l});var r=o(22303);const s=new r.Z("white"),i=(new r.Z("black"),new r.Z([255,255,255,0]));function l(t){return 0===t.r&&0===t.g&&0===t.b}},57742:(t,e,o)=>{o.d(e,{J:()=>r,k:()=>s});const r=["begin","end","begin-end"],s=["arrow","circle","square","diamond","cross","x"]},37308:(t,e,o)=>{o.d(e,{a:()=>n,y:()=>a});var r=o(22303),s=o(62357),i=o(75215),l=o(65242);const n={type:r.Z,json:{type:[i.z8],default:null,read:{source:["color","transparency"],reader:function(t,e){const o=null!=e.transparency?(0,l.b)(e.transparency):1,s=e.color;return s&&Array.isArray(s)?new r.Z([s[0]||0,s[1]||0,s[2]||0,o]):null}},write:{target:{color:{type:[i.z8]},transparency:{type:i.z8}},writer:function(t,e){e.color=t.toJSON().slice(0,3);const o=(0,l.a)(t.a);0!==o&&(e.transparency=o)}}}},a={type:Number,cast:s.t_,json:{write:!0}}},45119:(t,e,o)=>{o.d(e,{$K:()=>i,Hc:()=>y,KW:()=>h,Uz:()=>p,w2:()=>c}),o(80442);var r=o(65617),s=o(60437);function i(t,{isPrimitive:e,width:o,depth:s,height:i}){const l=e?10:1;if(null==o&&null==i&&null==s)return[l*t[0],l*t[1],l*t[2]];const n=(0,r.f)(o,s,i);let a;for(let e=0;e<3;e++){const o=n[e];if(null!=o){a=o/t[e];break}}for(let e=0;e<3;e++)null==n[e]&&(n[e]=t[e]*a);return n}const l=(0,s.al)(-.5,-.5,-.5,.5,.5,.5),n=(0,s.al)(-.5,-.5,0,.5,.5,1),a=(0,s.al)(-.5,-.5,0,.5,.5,.5);function p(t){switch(t){case"sphere":case"cube":case"diamond":return l;case"cylinder":case"cone":case"inverted-cone":return n;case"tetrahedron":return a;default:return}}const y=["butt","square","round"],h=[...y,"none"],c=["miter","bevel","round"]},61565:(t,e,o)=>{o.d(e,{Ck:()=>a,JT:()=>i,Nj:()=>y,g6:()=>l,vC:()=>n,x0:()=>p});var r=o(22021),s=o(75215);const i=["none","underline","line-through"],l=["normal","italic","oblique"],n=["normal","lighter","bold","bolder"],a={type:Number,cast:t=>{const e=(0,s.q9)(t);return 0===e?1:(0,r.uZ)(e,.1,4)},nonNullable:!0},p={type:["left","right","center"],nonNullable:!0},y={type:["baseline","top","middle","bottom"],nonNullable:!0}},94075:(t,e,o)=>{o.d(e,{Ds:()=>n,KA:()=>l});var r=o(17452),s=o(25929);function i(t,e){return function(t){return!(null==t||"service"!==t.origin&&"portal-item"!==t.origin||"feature"!==t.layer?.type&&"stream"!==t.layer?.type)}(e)&&!(0,r.YP)(t)&&e?.layer?.parsedUrl?(0,r.v_)(e.layer.parsedUrl.path,"images",t):(0,s.f)(t,e)}const l={json:{read:{source:["imageData","url"],reader:function(t,e,o){return e.imageData?(0,r._l)({mediaType:e.contentType||"image/png",isBase64:!0,data:e.imageData}):i(e.url,o)}},write:{writer(t,e,o,i){!function(t,e,o,i){if((0,r.HK)(t)){const l=(0,r.sJ)(t);if(!l)return;e.contentType=l.mediaType,e.imageData=l.data,o&&o.imageData===e.imageData&&o.url&&(0,s.w)(o.url,e,"url",i)}else(0,s.w)(t,e,"url",i)}(t,e,this.source,i)}}}},n={readOnly:!0,json:{read:{source:["imageData","url"],reader(t,e,o){const r={};return e.imageData&&(r.imageData=e.imageData),e.contentType&&(r.contentType=e.contentType),e.url&&(r.url=i(e.url,o)),r}}}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5587],{83379:(t,e,r)=>{r.d(e,{Z:()=>m});var o=r(43697),s=r(20102),i=r(70586),l=r(609),n=r(95330),a=r(20941),u=r(5600),p=r(52011);const d="loaded",h=t=>{let e=class extends t{constructor(...t){super(...t),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise((t=>{const e=this.load.bind(this);this.load=r=>{const o=new Promise(((t,e)=>{const o=(0,n.$F)(r,e);this.destroyed&&e(new s.Z("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this._promiseProps.when(t,e).finally((()=>{o&&o.remove()}))}));if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const t=this._loadController=new AbortController;e({signal:t.signal}),(0,n.fu)(t.signal,(()=>{this._promiseProps.abort()}))}return t(),o}}))),this.when((()=>{this._set("loadStatus",d),this._loadController=null}),(t=>{this._set("loadStatus","failed"),this._set("loadError",t),this._loadController=null}))}destroy(){this._loadController=(0,i.IM)(this._loadController),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}load(){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new s.Z("load:cancelled","Cancelled")),this._loadController?.abort()),this}};return(0,o._)([(0,u.Cb)({readOnly:!0})],e.prototype,"loaded",null),(0,o._)([(0,u.Cb)({readOnly:!0})],e.prototype,"loadError",void 0),(0,o._)([(0,u.Cb)({clonable:!1})],e.prototype,"loadStatus",void 0),(0,o._)([(0,u.Cb)({type:[a.Z],readOnly:!0})],e.prototype,"loadWarnings",null),e=(0,o._)([(0,p.j)("esri.core.Loadable")],e),e};let c=class extends(h(l.D)){};var y;c=(0,o._)([(0,p.j)("esri.core.Loadable")],c),(y=c||(c={})).LoadableMixin=h,y.isLoadable=function(t){return!(!t||!t.load)};const m=c},609:(t,e,r)=>{r.d(e,{D:()=>h,v:()=>d});var o,s,i=r(43697),l=r(15923),n=r(70586),a=r(95330),u=r(52011);(s=o||(o={}))[s.PENDING=0]="PENDING",s[s.RESOLVED=1]="RESOLVED",s[s.REJECTED=2]="REJECTED";class p{constructor(t){this.instance=t,this._resolver=(0,a.dD)(),this._status=o.PENDING,this._resolvingPromises=[],this._resolver.promise.then((()=>{this._status=o.RESOLVED,this._cleanUp()}),(()=>{this._status=o.REJECTED,this._cleanUp()}))}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===o.RESOLVED}isRejected(){return this._status===o.REJECTED}isFulfilled(){return this._status!==o.PENDING}abort(){this._resolver.reject((0,a.zE)())}when(t,e){return this._resolver.promise.then(t,e)}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const t=(0,a.dD)(),e=[...this._resolvingPromises,(0,n.j0)(t.promise)],r=this._allPromise=Promise.all(e);r.then((()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve(this.instance)}),(t=>{this.isFulfilled()||this._allPromise!==r||(0,a.D_)(t)||this._resolver.reject(t)})),t.resolve()}}const d=t=>{let e=class extends t{constructor(...t){super(...t),this._promiseProps=new p(this),this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps?.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(t,e){return new Promise(((t,e)=>{this._promiseProps.when(t,e)})).then(t,e)}catch(t){return this.when(null,t)}addResolvingPromise(t){t&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in t?t.when():t)}};return e=(0,i._)([(0,u.j)("esri.core.Promise")],e),e};let h=class extends(d(l.Z)){};h=(0,i._)([(0,u.j)("esri.core.Promise")],h)},70171:(t,e,r)=>{let o;r.d(e,{Kd:()=>l,Ze:()=>p,qe:()=>a});const s=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;function i(){return s??globalThis.navigator?.language??"en"}function l(){return void 0===o&&(o=i()),o}const n=[];function a(t){return n.push(t),{remove(){n.splice(n.indexOf(t),1)}}}const u=[];function p(t){return u.push(t),{remove(){n.splice(u.indexOf(t),1)}}}globalThis.addEventListener?.("languagechange",(function(){const t=i();o!==t&&(o=t,[...u].forEach((e=>{e.call(null,t)})),[...n].forEach((e=>{e.call(null,t)})))}))},65587:(t,e,r)=>{r.d(e,{Z:()=>U});var o=r(43697),s=r(68773),i=r(40330),l=r(3172),n=r(20102),a=r(96674),u=r(83379),p=r(70586),d=r(95330),h=r(5600),c=r(75215),y=(r(67676),r(80442),r(71715)),m=r(52011),_=r(6570),v=r(70171),C=r(41253),b=r(15923);let f=class extends b.Z{constructor(t){super(t),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,o._)([(0,h.Cb)()],f.prototype,"nextQueryParams",void 0),(0,o._)([(0,h.Cb)()],f.prototype,"queryParams",void 0),(0,o._)([(0,h.Cb)()],f.prototype,"results",void 0),(0,o._)([(0,h.Cb)()],f.prototype,"total",void 0),f=(0,o._)([(0,m.j)("esri.portal.PortalQueryResult")],f);const g=f;var S,P=r(86082),O=r(71058);let w;const q={PortalGroup:()=>Promise.resolve().then(r.bind(r,68916)),PortalItem:()=>Promise.all([r.e(5235),r.e(9880)]).then(r.bind(r,15235)),PortalUser:()=>Promise.resolve().then(r.bind(r,86082))};let G=S=class extends((0,a.eC)(u.Z)){constructor(t){super(t),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=s.default.portalUrl,this.urlKey=null,this.user=null,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(t){return"string"==typeof t?{url:t}:t}destroy(){E.unregister(this),this.defaultBasemap=(0,p.SC)(this.defaultBasemap),this.defaultDevBasemap=(0,p.SC)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.SC)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.hw)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(t){if(t)for(const e of t)s.default.request.trustedServers.includes(e)||s.default.request.trustedServers.push(e);return t}readDefaultBasemap(t){return this._readBasemap(t)}readDefaultDevBasemap(t){return this._readBasemap(t)}readDefaultVectorBasemap(t){return this._readBasemap(t)}get extraQuery(){const t=!(this.user&&this.user.orgId)||this.canSearchPublic;return this.id&&!t?` AND orgid:${this.id}`:null}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get restUrl(){let t=this.url;if(t){const e=t.indexOf("/sharing");t=e>0?t.substring(0,e):this.url.replace(/\/+$/,""),t+="/sharing/rest"}return t}get thumbnailUrl(){const t=this.restUrl,e=this.thumbnail;return t&&e?this._normalizeSSL(t+"/portals/self/resources/"+e):null}readUrlKey(t){return t?t.toLowerCase():t}readUser(t){let e=null;return t&&(e=P.default.fromJSON(t),e.portal=this),e}load(t){const e=Promise.all([r.e(5235),r.e(3668)]).then(r.bind(r,93668)).then((({default:e})=>{(0,d.k_)(t),w=e})).then((()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,t))).then((t=>{if(i.id){const t=i.id;this.credential=t.findCredential(this.restUrl),this.credential||this.authMode!==S.AUTH_MODE_AUTO||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=t.on("credential-create",function(t){const e=i.id;return()=>{const r=t.deref();r&&e.findCredential(r.restUrl)&&r.signIn().catch((()=>{}))}}(new WeakRef(this))),E.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=t,this.read(t)}));return this.addResolvingPromise(e),Promise.resolve(this)}async createElevationLayers(){await this.load();const t=this._getHelperService("defaultElevationLayers"),e=(await Promise.all([r.e(163),r.e(4547),r.e(5235),r.e(9157),r.e(2763),r.e(9393)]).then(r.bind(r,65665))).default;return t?t.map((t=>new e({id:t.id,url:t.url}))):[]}fetchBasemaps(t,e){const r=new C.Z;return r.query=t||(s.default.apiKey&&(0,O.r)(this.url)?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0,this.queryGroups(r,e).then((t=>{if(r.num=100,r.query='type:"Web Map" -type:"Web Application"',t.total){const o=t.results[0];return r.sortField=o.sortField||"name",r.sortOrder=o.sortOrder||"desc",o.queryItems(r,e)}return null})).then((t=>{let e;return e=t&&t.total?t.results.filter((t=>"Web Map"===t.type)).map((t=>new w({portalItem:t}))):[],e}))}fetchCategorySchema(t){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",t).then((t=>t.categorySchema)):(0,d.Hc)(t)?Promise.reject((0,d.zE)()):Promise.resolve([])}fetchFeaturedGroups(t){const e=this.featuredGroups,r=new C.Z;if(r.num=100,r.sortField="title",e&&e.length){const o=[];for(const t of e)o.push(`(title:"${t.title}" AND owner:${t.owner})`);return r.query=o.join(" OR "),this.queryGroups(r,t).then((t=>t.results))}return(0,d.Hc)(t)?Promise.reject((0,d.zE)()):Promise.resolve([])}fetchRegions(t){const e=this.user?.culture||this.culture||(0,v.Kd)();return this.request(this.restUrl+"/portals/regions",{...t,query:{culture:e}})}fetchSettings(t){const e=this.user?.culture||this.culture||(0,v.Kd)();return this.request(this.restUrl+"/portals/self/settings",{...t,query:{culture:e}})}static getDefault(){return S._default&&!S._default.destroyed||(S._default=new S),S._default}queryGroups(t,e){return this.queryPortal("/community/groups",t,"PortalGroup",e)}queryItems(t,e){return this.queryPortal("/search",t,"PortalItem",e)}queryUsers(t,e){return t.sortField||(t.sortField="username"),this.queryPortal("/community/users",t,"PortalUser",e)}fetchSelf(t=this.authMode,e=!1,r){const o=this.restUrl+"/portals/self",s={authMode:t,query:{culture:(0,v.Kd)().toLowerCase()},...r};return"auto"===s.authMode&&(s.authMode="no-prompt"),e&&(s.query.default=!0),this.request(o,s)}queryPortal(t,e,r,o){const s=(0,c.se)(C.Z,e),i=e=>this.request(this.restUrl+t,{...s.toRequestOptions(this),...o}).then((t=>{const r=s.clone();return r.start=t.nextStart,new g({nextQueryParams:r,queryParams:s,total:t.total,results:S._resultsToTypedArray(e,{portal:this},t,o)})})).then((t=>Promise.all(t.results.map((e=>"function"==typeof e.when?e.when():t))).then((()=>t),(e=>((0,d.r9)(e),t)))));return r&&q[r]?q[r]().then((({default:t})=>((0,d.k_)(o),i(t)))):i()}signIn(){if(this.authMode===S.AUTH_MODE_ANONYMOUS)return Promise.reject(new n.Z("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const t=t=>Promise.resolve().then((()=>"not-loaded"===this.loadStatus?(t||(this.authMode="immediate"),this.load().then((()=>null))):"loading"===this.loadStatus?this.load().then((()=>this.credential?null:(this.credential=t,this.fetchSelf("immediate")))):this.user&&this.credential===t?null:(this.credential=t,this.fetchSelf("immediate")))).then((t=>{t&&(this.sourceJSON=t,this.read(t))}));return i.id?i.id.getCredential(this.restUrl).then((e=>t(e))):t(this.credential)}normalizeUrl(t){const e=this.credential&&this.credential.token;return this._normalizeSSL(e?t+(t.includes("?")?"&":"?")+"token="+e:t)}requestToTypedArray(t,e,r){return this.request(t,e).then((t=>{const e=S._resultsToTypedArray(r,{portal:this},t);return Promise.all(e.map((e=>"function"==typeof e.when?e.when():t))).then((()=>e),(()=>e))}))}request(t,e={}){const r={f:"json",...e.query},{authMode:o=(this.authMode===S.AUTH_MODE_ANONYMOUS?"anonymous":"auto"),body:s=null,cacheBust:i=!1,method:n="auto",responseType:a="json",signal:u}=e,p={authMode:o,body:s,cacheBust:i,method:n,query:r,responseType:a,timeout:0,signal:u};return(0,l.default)(this._normalizeSSL(t),p).then((t=>t.data))}toJSON(){throw new n.Z("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");return new S({sourceJSON:t})}_getHelperService(t){const e=this.helperServices&&this.helperServices[t];if(!e)throw new n.Z("portal:service-not-found",`The \`helperServices\` do not include an entry named "${t}"`);return e}_normalizeSSL(t){return t.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(t){if(t){const e=w.fromJSON(t);return e.portalItem={portal:this},e}return null}static _resultsToTypedArray(t,e,r,o){let s=[];if(r){const i=null!=o?o.signal:null;s=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(t||e)&&(s=s.map((r=>{const o=Object.assign(t?t.fromJSON(r):r,e);return"function"==typeof o.load&&o.load(i),o})))}else s=[];return s}};G.AUTH_MODE_ANONYMOUS="anonymous",G.AUTH_MODE_AUTO="auto",G.AUTH_MODE_IMMEDIATE="immediate",(0,o._)([(0,h.Cb)()],G.prototype,"access",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"allSSL",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"authMode",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"authorizedCrossOriginDomains",void 0),(0,o._)([(0,y.r)("authorizedCrossOriginDomains")],G.prototype,"readAuthorizedCrossOriginDomains",null),(0,o._)([(0,h.Cb)()],G.prototype,"basemapGalleryGroupQuery",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"bingKey",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"canListApps",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"canListData",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"canListPreProvisionedItems",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"canProvisionDirectPurchase",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"canSearchPublic",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"canShareBingPublic",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"canSharePublic",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"canSignInArcGIS",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"canSignInIDP",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"colorSetsGroupQuery",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"commentsEnabled",void 0),(0,o._)([(0,h.Cb)({type:Date})],G.prototype,"created",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"credential",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"culture",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"currentVersion",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"customBaseUrl",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"defaultBasemap",void 0),(0,o._)([(0,y.r)("defaultBasemap")],G.prototype,"readDefaultBasemap",null),(0,o._)([(0,h.Cb)()],G.prototype,"defaultDevBasemap",void 0),(0,o._)([(0,y.r)("defaultDevBasemap")],G.prototype,"readDefaultDevBasemap",null),(0,o._)([(0,h.Cb)({type:_.Z})],G.prototype,"defaultExtent",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"defaultVectorBasemap",void 0),(0,o._)([(0,y.r)("defaultVectorBasemap")],G.prototype,"readDefaultVectorBasemap",null),(0,o._)([(0,h.Cb)()],G.prototype,"description",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"devBasemapGalleryGroupQuery",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"eueiEnabled",void 0),(0,o._)([(0,h.Cb)({readOnly:!0})],G.prototype,"extraQuery",null),(0,o._)([(0,h.Cb)()],G.prototype,"featuredGroups",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"featuredItemsGroupQuery",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"galleryTemplatesGroupQuery",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"livingAtlasGroupQuery",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"hasCategorySchema",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"helpBase",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"helperServices",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"helpMap",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"homePageFeaturedContent",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"homePageFeaturedContentCount",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"httpPort",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"httpsPort",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"id",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"ipCntryCode",void 0),(0,o._)([(0,h.Cb)({readOnly:!0})],G.prototype,"isOrganization",null),(0,o._)([(0,h.Cb)()],G.prototype,"isPortal",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"isReadOnly",void 0),(0,o._)([(0,h.Cb)({readOnly:!0})],G.prototype,"itemPageUrl",null),(0,o._)([(0,h.Cb)()],G.prototype,"layerTemplatesGroupQuery",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"maxTokenExpirationMinutes",void 0),(0,o._)([(0,h.Cb)({type:Date})],G.prototype,"modified",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"name",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"portalHostname",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"portalMode",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"portalProperties",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"region",void 0),(0,o._)([(0,h.Cb)({readOnly:!0})],G.prototype,"restUrl",null),(0,o._)([(0,h.Cb)()],G.prototype,"rotatorPanels",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"showHomePageDescription",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"sourceJSON",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"staticImagesUrl",void 0),(0,o._)([(0,h.Cb)({json:{name:"2DStylesGroupQuery"}})],G.prototype,"stylesGroupQuery2d",void 0),(0,o._)([(0,h.Cb)({json:{name:"stylesGroupQuery"}})],G.prototype,"stylesGroupQuery3d",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"supportsHostedServices",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"symbolSetsGroupQuery",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"templatesGroupQuery",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"thumbnail",void 0),(0,o._)([(0,h.Cb)({readOnly:!0})],G.prototype,"thumbnailUrl",null),(0,o._)([(0,h.Cb)()],G.prototype,"units",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"url",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"urlKey",void 0),(0,o._)([(0,y.r)("urlKey")],G.prototype,"readUrlKey",null),(0,o._)([(0,h.Cb)()],G.prototype,"user",void 0),(0,o._)([(0,y.r)("user")],G.prototype,"readUser",null),(0,o._)([(0,h.Cb)()],G.prototype,"useStandardizedQuery",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"useVectorBasemaps",void 0),(0,o._)([(0,h.Cb)()],G.prototype,"vectorBasemapGalleryGroupQuery",void 0),G=S=(0,o._)([(0,m.j)("esri.portal.Portal")],G);const U=G,E=new FinalizationRegistry((t=>{t.remove()}))},68916:(t,e,r)=>{r.r(e),r.d(e,{default:()=>h});var o=r(43697),s=r(20102),i=r(96674),l=r(70586),n=r(5600),a=r(75215),u=(r(67676),r(80442),r(52011)),p=r(41253);let d=class extends i.wq{constructor(t){super(t),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.tags=null,this.title=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e&&this.portal?this.portal?.normalizeUrl(`${t}/info/${e}?f=json`):null}get url(){const t=this.get("portal.restUrl");return t?t+"/community/groups/"+this.id:null}fetchCategorySchema(t){return(0,l.s3)(this.portal).request(this.url+"/categorySchema",t).then((e=>{const r=e.categorySchema||[];return r.some((t=>"contentCategorySetsGroupQuery.LivingAtlas"===t.source))?this._fetchCategorySchemaSet("LivingAtlas",t):r}))}fetchMembers(t){return(0,l.s3)(this.portal).request(this.url+"/users",t)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}toJSON(){throw new s.Z("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}queryItems(t,e){let r=(0,a.se)(p.Z,t);const o=(0,l.s3)(this.portal);return parseFloat(o.currentVersion)>5?(r=r||new p.Z,o.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",e)):(r=r?r.clone():new p.Z,r.query="group:"+this.id+(r.query?" "+r.query:""),o.queryItems(r,e))}_fetchCategorySchemaSet(t,e){const r=(0,l.s3)(this.portal);return r.fetchSelf(r.authMode,!0,e).then((t=>{const o=t.contentCategorySetsGroupQuery;if(o){const t=new p.Z;return t.disableExtraQuery=!0,t.num=1,t.query=o,r.queryGroups(t,e)}throw new s.Z("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")})).then((r=>{if(r.total){const o=r.results[0],s=new p.Z;return s.num=1,s.query=`typekeywords:"${t}"`,o.queryItems(s,e)}throw new s.Z("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")})).then((t=>t.total?t.results[0].fetchData("json",e).then((t=>{const e=t&&t.categorySchema;return e&&e.length?e:[]})):[]))}};(0,o._)([(0,n.Cb)()],d.prototype,"access",void 0),(0,o._)([(0,n.Cb)({type:Date})],d.prototype,"created",void 0),(0,o._)([(0,n.Cb)()],d.prototype,"description",void 0),(0,o._)([(0,n.Cb)()],d.prototype,"id",void 0),(0,o._)([(0,n.Cb)()],d.prototype,"isInvitationOnly",void 0),(0,o._)([(0,n.Cb)({type:Date})],d.prototype,"modified",void 0),(0,o._)([(0,n.Cb)()],d.prototype,"owner",void 0),(0,o._)([(0,n.Cb)()],d.prototype,"portal",void 0),(0,o._)([(0,n.Cb)()],d.prototype,"snippet",void 0),(0,o._)([(0,n.Cb)()],d.prototype,"sortField",void 0),(0,o._)([(0,n.Cb)()],d.prototype,"sortOrder",void 0),(0,o._)([(0,n.Cb)()],d.prototype,"tags",void 0),(0,o._)([(0,n.Cb)()],d.prototype,"thumbnail",void 0),(0,o._)([(0,n.Cb)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,o._)([(0,n.Cb)()],d.prototype,"title",void 0),(0,o._)([(0,n.Cb)({readOnly:!0})],d.prototype,"url",null),d=(0,o._)([(0,u.j)("esri.portal.PortalGroup")],d);const h=d},41253:(t,e,r)=>{r.d(e,{Z:()=>m});var o,s=r(43697),i=r(15923),l=r(35454),n=r(22974),a=r(5600),u=(r(75215),r(52011)),p=r(6570),d=r(82971),h=r(40488);const c=new l.X({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let y=o=class extends i.Z{constructor(t){super(t),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(t){"asc"!==t&&"desc"!==t||this._set("sortOrder",t)}clone(){return new o({categories:this.categories?(0,n.d9)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(t,e){let r=[];this.categories&&(r=this.categories.map((t=>Array.isArray(t)?JSON.stringify(t):t)));let o="";if(this.extent){const t=(0,h.iV)(this.extent,d.Z.WGS84);null!=t&&(o=`${t.xmin},${t.ymin},${t.xmax},${t.ymax}`)}let s=this.query;!this.disableExtraQuery&&t.extraQuery&&(s="("+s+")"+t.extraQuery);const i={categories:r,bbox:o,q:s,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(i.sortField=this.sortField.split(",").map((t=>c.toJSON(t.trim()))).join(","),i.sortOrder=this.sortOrder),{query:{...e,...i}}}};(0,s._)([(0,a.Cb)()],y.prototype,"categories",void 0),(0,s._)([(0,a.Cb)()],y.prototype,"disableExtraQuery",void 0),(0,s._)([(0,a.Cb)({type:p.Z})],y.prototype,"extent",void 0),(0,s._)([(0,a.Cb)()],y.prototype,"filter",void 0),(0,s._)([(0,a.Cb)()],y.prototype,"num",void 0),(0,s._)([(0,a.Cb)()],y.prototype,"query",void 0),(0,s._)([(0,a.Cb)()],y.prototype,"sortField",void 0),(0,s._)([(0,a.Cb)()],y.prototype,"sortOrder",null),(0,s._)([(0,a.Cb)()],y.prototype,"start",void 0),y=o=(0,s._)([(0,u.j)("esri.portal.PortalQueryParams")],y);const m=y},86082:(t,e,r)=>{r.r(e),r.d(e,{default:()=>c});var o=r(43697),s=r(20102),i=r(96674),l=r(5600),n=(r(75215),r(67676),r(80442),r(52011));let a=class extends i.wq{constructor(t){super(t),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const t=this.get("portal.restUrl");return t?`${t}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new s.Z("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,o._)([(0,l.Cb)({type:Date})],a.prototype,"created",void 0),(0,o._)([(0,l.Cb)()],a.prototype,"id",void 0),(0,o._)([(0,l.Cb)()],a.prototype,"portal",void 0),(0,o._)([(0,l.Cb)()],a.prototype,"title",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],a.prototype,"url",null),(0,o._)([(0,l.Cb)()],a.prototype,"username",void 0),a=(0,o._)([(0,n.j)("esri.portal.PortalFolder")],a);const u=a;var p,d=r(68916);let h=p=class extends i.wq{constructor(...t){super(...t),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userType=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e?this.portal.normalizeUrl(`${t}/info/${e}?f=json`):null}get userContentUrl(){const t=this.get("portal.restUrl");return t?`${t}/content/users/${this.username}`:null}get url(){const t=this.get("portal.restUrl");return t?`${t}/community/users/${this.username}`:null}addItem(t){const e=t&&t.item,r=t&&t.data,o=t&&t.folder,s={method:"post"};e&&(s.query=e.createPostQuery(),null!=r&&("string"==typeof r?s.query.text=r:"object"==typeof r&&(s.query.text=JSON.stringify(r))));let i=this.userContentUrl;return o&&(i+="/"+("string"==typeof o?o:o.id)),this.portal.request(i+"/addItem",s).then((t=>(e.id=t.id,e.portal=this.portal,e.loaded?e.reload():e.load())))}deleteItem(t){let e=this.userContentUrl;return t.ownerFolder&&(e+="/"+t.ownerFolder),this.portal.request(e+`/items/${t.id}/delete`,{method:"post"}).then((()=>{t.id=null,t.portal=null}))}deleteItems(t){const e=this.userContentUrl+"/deleteItems",r=t.map((t=>t.id));if(r.length){const o={method:"post",query:{items:r.join(",")}};return this.portal.request(e,o).then((()=>{t.forEach((t=>{t.id=null,t.portal=null}))}))}return Promise.resolve(void 0)}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then((t=>{let e;return e=t&&t.folders?t.folders.map((t=>{const e=u.fromJSON(t);return e.portal=this.portal,e})):[],e}))}fetchGroups(){return this.portal.request(this.url??"").then((t=>{let e;return e=t&&t.groups?t.groups.map((t=>{const e=d.default.fromJSON(t);return e.portal=this.portal,e})):[],e}))}fetchItems(t){const e=t??{};let o,s=this.userContentUrl??"";return e.folder&&(s+="/"+e.folder.id),Promise.all([r.e(5235),r.e(9880)]).then(r.bind(r,15235)).then((({default:t})=>{o=t;const r={folders:!1,num:e.num||10,start:e.start||1,sortField:e.sortField||"created",sortOrder:e.sortOrder||"asc"};return this.portal.request(s,{query:r})})).then((t=>{let e;return t&&t.items?(e=t.items.map((t=>{const e=o.fromJSON(t);return e.portal=this.portal,e})),Promise.all(e.map((t=>t.load()))).catch((t=>t)).then((()=>({items:e,nextStart:t.nextStart,total:t.total})))):{items:[],nextStart:-1,total:0}}))}fetchTags(){return this.portal.request(this.url+"/tags").then((t=>t.tags))}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}queryFavorites(t){return this.favGroupId?(this._favGroup||(this._favGroup=new d.default({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(t)):Promise.reject(new s.Z("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}toJSON(){throw new s.Z("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new p;return e.sourceJSON=t,e.read(t),e}};(0,o._)([(0,l.Cb)()],h.prototype,"access",void 0),(0,o._)([(0,l.Cb)({type:Date})],h.prototype,"created",void 0),(0,o._)([(0,l.Cb)()],h.prototype,"culture",void 0),(0,o._)([(0,l.Cb)()],h.prototype,"description",void 0),(0,o._)([(0,l.Cb)()],h.prototype,"email",void 0),(0,o._)([(0,l.Cb)()],h.prototype,"favGroupId",void 0),(0,o._)([(0,l.Cb)()],h.prototype,"fullName",void 0),(0,o._)([(0,l.Cb)({type:Date})],h.prototype,"modified",void 0),(0,o._)([(0,l.Cb)()],h.prototype,"orgId",void 0),(0,o._)([(0,l.Cb)()],h.prototype,"portal",void 0),(0,o._)([(0,l.Cb)()],h.prototype,"preferredView",void 0),(0,o._)([(0,l.Cb)()],h.prototype,"privileges",void 0),(0,o._)([(0,l.Cb)()],h.prototype,"region",void 0),(0,o._)([(0,l.Cb)()],h.prototype,"role",void 0),(0,o._)([(0,l.Cb)()],h.prototype,"roleId",void 0),(0,o._)([(0,l.Cb)()],h.prototype,"sourceJSON",void 0),(0,o._)([(0,l.Cb)()],h.prototype,"thumbnail",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],h.prototype,"thumbnailUrl",null),(0,o._)([(0,l.Cb)()],h.prototype,"units",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],h.prototype,"userContentUrl",null),(0,o._)([(0,l.Cb)({readOnly:!0})],h.prototype,"url",null),(0,o._)([(0,l.Cb)()],h.prototype,"username",void 0),(0,o._)([(0,l.Cb)()],h.prototype,"userType",void 0),h=p=(0,o._)([(0,n.j)("esri.portal.PortalUser")],h);const c=h}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[24,8008,8062],{25929:(e,r,a)=>{a.d(r,{M:()=>f,a:()=>m,e:()=>p,f:()=>n,i:()=>u,p:()=>y,r:()=>l,t:()=>i,w:()=>s});var t=a(17452);function n(e,r){const a=r&&r.url&&r.url.path;if(e&&a&&(e=(0,t.hF)(e,a,{preserveProtocolRelative:!0}),r.portalItem&&r.readResourcePaths)){const a=(0,t.PF)(e,r.portalItem.itemUrl);null!=a&&c.test(a)&&r.readResourcePaths.push(r.portalItem.resourceFromPath(a).path)}return d(e,r&&r.portal)}function i(e,r,a=f.YES){if(null==e)return e;!(0,t.YP)(e)&&r&&r.blockedRelativeUrls&&r.blockedRelativeUrls.push(e);let n=(0,t.hF)(e);if(r){const a=r.verifyItemRelativeUrls&&r.verifyItemRelativeUrls.rootPath||r.url&&r.url.path;if(a){const i=d(a,r.portal),l=d(n,r.portal);n=(0,t.PF)(l,i,i),null!=n&&n!==l&&n!==e&&r.verifyItemRelativeUrls&&r.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=p(n,r?.portal),(0,t.YP)(n)&&(n=(0,t.Fv)(n)),r?.resources&&r?.portalItem&&!(0,t.YP)(n)&&!(0,t.HK)(n)&&a===f.YES&&r.resources.toKeep.push({resource:r.portalItem.resourceFromPath(n),compress:!1}),n}function l(e,r,a){return n(e,a)}function s(e,r,a,t){const n=i(e,t);void 0!==n&&(r[a]=n)}const o=/\/items\/([^\/]+)\/resources\/(.*)/,c=/^\.\/resources\//;function u(e){const r=e?.match(o)??null;return r?.[1]??null}function y(e){const r=e?.match(o)??null;if(null==r)return null;const a=r[2],n=a.lastIndexOf("/");if(-1===n){const{path:e,extension:r}=(0,t.fZ)(a);return{prefix:null,filename:e,extension:r}}const{path:i,extension:l}=(0,t.fZ)(a.slice(n+1));return{prefix:a.slice(0,n),filename:i,extension:l}}function p(e,r){return r&&!r.isPortal&&r.urlKey&&r.customBaseUrl?(0,t.Ie)(e,`${r.urlKey}.${r.customBaseUrl}`,r.portalHostname):e}function d(e,r){if(!r||r.isPortal||!r.urlKey||!r.customBaseUrl)return e;const a=`${r.urlKey}.${r.customBaseUrl}`,n=(0,t.TI)();return(0,t.D6)(n,`${n.scheme}://${a}`)?(0,t.Ie)(e,r.portalHostname,a):(0,t.Ie)(e,a,r.portalHostname)}var f,L;(L=f||(f={}))[L.YES=0]="YES",L[L.NO=1]="NO";const m=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return f},ensureMainOnlineDomain:p,fromJSON:n,itemIdFromResourceUrl:u,prefixAndFilenameFromResourceUrl:y,read:l,toJSON:i,write:s},Symbol.toStringTag,{value:"Module"}))},10699:(e,r,a)=>{a.d(r,{IG:()=>l,iv:()=>s});var t=a(43697),n=a(52011);let i=0;const l=e=>{let r=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+i++})}};return r=(0,t._)([(0,n.j)("esri.core.Identifiable")],r),r},s=e=>{let r=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:i++})}};return r=(0,t._)([(0,n.j)("esri.core.NumericIdentifiable")],r),r};let o=class extends(l(class{})){};o=(0,t._)([(0,n.j)("esri.core.Identifiable")],o)},87085:(e,r,a)=>{a.d(r,{Z:()=>h});var t=a(43697),n=(a(66577),a(3172)),i=a(20102),l=a(32448),s=a(10699),o=a(83379),c=a(92604),u=a(95330),y=a(17452),p=a(5600),d=(a(75215),a(67676),a(80442),a(52011)),f=a(68773),L=a(6570),m=a(82971);let S=0,b=class extends(l.Z.EventedMixin((0,s.IG)(o.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new L.Z(-180,-90,180,90,m.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+S++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const r="string"==typeof e?{url:e}:e;return(await a.e(3529).then(a.bind(a,63529))).fromUrl(r)}static fromPortalItem(e){return async function(e){const r="portalItem"in e?e:{portalItem:e},t=await a.e(8008).then(a.bind(a,28008));try{return await t.fromItem(r)}catch(e){const a=r&&r.portalItem,t=a&&a.id||"unset",n=a&&a.portal&&a.portal.url||f.default.portalUrl;throw c.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+t+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,u.D_)(e)||c.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,r=this.parent;"layers"in r&&r.layers.includes(e)?r.layers.remove(e):"tables"in r&&r.tables.includes(e)?r.tables.remove(e):"baseLayers"in r&&r.baseLayers.includes(e)?r.baseLayers.remove(e):"baseLayers"in r&&r.referenceLayers.includes(e)&&r.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,y.mN)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new i.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,t._)([(0,p.Cb)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,t._)([(0,p.Cb)({type:L.Z})],b.prototype,"fullExtent",void 0),(0,t._)([(0,p.Cb)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,t._)([(0,p.Cb)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,t._)([(0,p.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,t._)([(0,p.Cb)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,t._)([(0,p.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,t._)([(0,p.Cb)({clonable:!1})],b.prototype,"parent",void 0),(0,t._)([(0,p.Cb)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,t._)([(0,p.Cb)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,t._)([(0,p.Cb)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,t._)([(0,p.Cb)({type:m.Z})],b.prototype,"spatialReference",void 0),(0,t._)([(0,p.Cb)({type:String})],b.prototype,"title",void 0),(0,t._)([(0,p.Cb)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,t._)([(0,p.Cb)()],b.prototype,"url",void 0),(0,t._)([(0,p.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,t._)([(0,d.j)("esri.layers.Layer")],b);const h=b},66677:(e,r,a)=>{a.d(r,{B5:()=>u,DR:()=>p,G:()=>h,M8:()=>L,Nm:()=>m,Qc:()=>y,XG:()=>S,a7:()=>f,ld:()=>d,wH:()=>b});var t=a(17452),n=a(25929);const i={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer"},l=Object.values(i),s=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${l.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),o=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${l.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function u(e){return!!s.test(e)}function y(e){if(null==e)return null;const r=(0,t.mN)(e),a=r.path.match(s)||r.path.match(o);if(!a)return null;const[,n,l,c,u]=a,y=l.indexOf("/");return{title:d(-1!==y?l.slice(y+1):l),serverType:i[c.toLowerCase()],sublayer:null!=u&&""!==u?parseInt(u,10):null,url:{path:n}}}function p(e){const r=(0,t.mN)(e).path.match(c);return r?{serviceUrl:r[1],sublayerId:Number(r[2])}:null}function d(e){return(e=e.replace(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function f(e,r){const a=[];if(e){const r=y(e);null!=r&&r.title&&a.push(r.title)}if(r){const e=d(r);a.push(e)}if(2===a.length){if(a[0].toLowerCase().includes(a[1].toLowerCase()))return a[0];if(a[1].toLowerCase().includes(a[0].toLowerCase()))return a[1]}return a.join(" - ")}function L(e){if(!e)return!1;const r=(e=e.toLowerCase()).includes(".arcgis.com/"),a=e.includes("//services")||e.includes("//tiles")||e.includes("//features");return r&&a}function m(e,r){return e?(0,t.Qj)((0,t.Hu)(e,r)):e}function S(e){let{url:r}=e;if(!r)return{url:r};r=(0,t.Hu)(r,e.logger);const a=(0,t.mN)(r),n=y(a.path);let i;if(null!=n)null!=n.sublayer&&null==e.layer.layerId&&(i=n.sublayer),r=n.url.path;else if(e.nonStandardUrlAllowed){const e=p(a.path);null!=e&&(r=e.serviceUrl,i=e.sublayerId)}return{url:(0,t.Qj)(r),layerId:i}}function b(e,r,a,i,l){(0,n.w)(r,i,"url",l),i.url&&null!=e.layerId&&(i.url=(0,t.v_)(i.url,a,e.layerId.toString()))}function h(e){if(!e)return!1;const r=e.toLowerCase(),a=r.includes("/services/"),t=r.includes("/mapserver/wmsserver"),n=r.includes("/imageserver/wmsserver"),i=r.includes("/wmsserver");return a&&(t||n||i)}},52104:(e,r,a)=>{a.d(r,{V:()=>n});var t=a(96187);async function n(e,r){const a=await(0,t.T)(e,r);a.layers=a.layers.filter(i);const n={serviceJSON:a};if((a.currentVersion??0)<10.5)return n;const l=await(0,t.T)(e+"/layers",r);return n.layersJSON={layers:l.layers.filter(i),tables:l.tables},n}function i(e){return!e.type||"Feature Layer"===e.type}},70024:(e,r,a)=>{a.r(r),a.d(r,{populateOperationalLayers:()=>u});var t=a(46791),n=(a(80442),a(95330)),i=a(87344),l=a(15235);function s(e,r){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===r}var o=a(28008),c=a(40555);async function u(e,r,a){if(!r)return;const t=[];for(const e of r){const r=S(e,a);"GroupLayer"===e.layerType?t.push(I(r,e,a)):t.push(r)}const i=await(0,n.as)(t);for(const r of i)r.value&&e.add(r.value)}const y={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",PointCloudLayer:"PointCloudLayer",ArcGISSceneServiceLayer:"SceneLayer",IntegratedMeshLayer:"IntegratedMeshLayer",OGCFeatureLayer:"OGCFeatureLayer",BuildingSceneLayer:"BuildingSceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",GroupLayer:"GroupLayer",GeoJSON:"GeoJSONLayer",WebTiledLayer:"WebTileLayer",CSV:"CSVLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer",KML:"KMLLayer",RasterDataLayer:"UnsupportedLayer",Voxel:"VoxelLayer",LineOfSightLayer:"LineOfSightLayer"},p={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},d={ArcGISTiledMapServiceLayer:"TileLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",OpenStreetMap:"OpenStreetMapLayer",WebTiledLayer:"WebTileLayer",VectorTileLayer:"VectorTileLayer",ArcGISImageServiceLayer:"UnsupportedLayer",WMS:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",DefaultTileLayer:"TileLayer"},f={ArcGISAnnotationLayer:"UnsupportedLayer",ArcGISDimensionLayer:"UnsupportedLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoRSS:"GeoRSSLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},L={ArcGISFeatureLayer:"FeatureLayer"},m={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WebTiledLayer:"WebTileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer"};async function S(e,r){return async function(e,r,a){const t=new e;return t.read(r,a.context),"group"===t.type&&b(r)&&await async function(e,r,a){const t=i.T.FeatureLayer,n=await t(),l=r.featureCollection,s=l?.showLegend,o=l?.layers?.map(((t,i)=>{const l=new n;l.read(t,a);const o={...a,ignoreDefaults:!0};return l.read({id:`${e.id}-sublayer-${i}`,visibility:r.visibleLayers?.includes(i)??!0},o),null!=s&&l.read({showLegend:s},o),l}));e.layers.addMany(o??[])}(t,r,a.context),await(0,c.y)(t,a.context),t}(await async function(e,r){const a=r.context,t=w(a);let n=e.layerType||e.type;!n&&r&&r.defaultLayerType&&(n=r.defaultLayerType);const c=t[n];let u=c?i.T[c]:i.T.UnknownLayer;if(h(e)){const r=a?.portal;if(e.itemId){const a=new l.default({id:e.itemId,portal:r});await a.load();const t=(await(0,o.selectLayerClassPath)(a)).className||"UnknownLayer";u=i.T[t]}}else"ArcGISFeatureLayer"===n?function(e){return s(e,"notes")}(e)||function(e){return s(e,"markup")}(e)?u=i.T.MapNotesLayer:function(e){return s(e,"route")}(e)?u=i.T.RouteLayer:b(e)&&(u=i.T.GroupLayer):e.wmtsInfo&&e.wmtsInfo.url&&e.wmtsInfo.layerIdentifier?u=i.T.WMTSLayer:"WFS"===n&&"2.0.0"!==e.wfsInfo?.version&&(u=i.T.UnsupportedLayer);return u()}(e,r),e,r)}function b(e){return"ArcGISFeatureLayer"===e.layerType&&!h(e)&&(e.featureCollection?.layers?.length??0)>1}function h(e){return"Feature Collection"===e.type}function w(e){let r;if("web-scene"===e.origin)switch(e.layerContainerType){case"basemap":r=d;break;case"ground":r=p;break;default:r=y}else switch(e.layerContainerType){case"basemap":r=m;break;case"tables":r=L;break;default:r=f}return r}async function I(e,r,a){const n=new t.Z,i=u(n,Array.isArray(r.layers)?r.layers:[],a);try{const r=await e;try{if(await i,"group"===r.type)return r.layers.addMany(n),r}catch(e){r.destroy();for(const e of n)e.destroy();throw e}}catch(e){throw e}}},87344:(e,r,a)=>{a.d(r,{T:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(8153)]).then(a.bind(a,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(8244),a.e(1223),a.e(1423),a.e(4165),a.e(911),a.e(5546),a.e(9942),a.e(9238),a.e(5590),a.e(6935),a.e(632),a.e(223)]).then(a.bind(a,30223))).default,CSVLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(8244),a.e(1223),a.e(1423),a.e(4165),a.e(911),a.e(5546),a.e(9942),a.e(9238),a.e(9675)]).then(a.bind(a,45425))).default,DimensionLayer:async()=>(await Promise.all([a.e(163),a.e(9408),a.e(81)]).then(a.bind(a,40081))).default,ElevationLayer:async()=>(await Promise.all([a.e(163),a.e(9157),a.e(2763)]).then(a.bind(a,65665))).default,FeatureLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(8244),a.e(1223),a.e(1423),a.e(4165),a.e(911),a.e(5546),a.e(9942),a.e(9238),a.e(5159)]).then(a.bind(a,19238))).default,GeoJSONLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(8244),a.e(1223),a.e(1423),a.e(4165),a.e(911),a.e(5546),a.e(7202)]).then(a.bind(a,23477))).default,GeoRSSLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(9538)]).then(a.bind(a,3723))).default,GroupLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(7483)]).then(a.bind(a,89348))).default,ImageryLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(8244),a.e(1223),a.e(4165),a.e(4599),a.e(6610),a.e(7391),a.e(1194)]).then(a.bind(a,90444))).default,ImageryTileLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(8244),a.e(1223),a.e(9157),a.e(6610),a.e(7391),a.e(5604),a.e(3381)]).then(a.bind(a,74878))).default,IntegratedMeshLayer:async()=>(await Promise.all([a.e(163),a.e(6935),a.e(1537)]).then(a.bind(a,9310))).default,KMLLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(8244),a.e(1223),a.e(1423),a.e(739)]).then(a.bind(a,42756))).default,LineOfSightLayer:async()=>(await Promise.all([a.e(163),a.e(7316)]).then(a.bind(a,30690))).default,MapImageLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(8244),a.e(1223),a.e(1423),a.e(4165),a.e(911),a.e(4599),a.e(6368),a.e(7374)]).then(a.bind(a,27374))).default,MapNotesLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(8244),a.e(1223),a.e(1423),a.e(4165),a.e(911),a.e(5546),a.e(9942),a.e(9238),a.e(1227)]).then(a.bind(a,62128))).default,MediaLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4828)]).then(a.bind(a,57765))).default,OGCFeatureLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(8244),a.e(1223),a.e(1423),a.e(4165),a.e(911),a.e(5546),a.e(2855)]).then(a.bind(a,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9971),a.e(6237)]).then(a.bind(a,66237))).default,OrientedImageryLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(8244),a.e(1223),a.e(1423),a.e(4165),a.e(911),a.e(5546),a.e(9942),a.e(9238),a.e(5132)]).then(a.bind(a,76604))).default,PointCloudLayer:async()=>(await Promise.all([a.e(163),a.e(4729),a.e(8643),a.e(237)]).then(a.bind(a,10608))).default,RouteLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(8244),a.e(1223),a.e(1423),a.e(4286)]).then(a.bind(a,40153))).default,SceneLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(8244),a.e(1223),a.e(1423),a.e(4165),a.e(911),a.e(5546),a.e(9942),a.e(9238),a.e(5590),a.e(6935),a.e(632),a.e(7476)]).then(a.bind(a,57476))).default,StreamLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(8244),a.e(1223),a.e(1423),a.e(4165),a.e(911),a.e(5546),a.e(5004)]).then(a.bind(a,88387))).default,SubtypeGroupLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(8244),a.e(1223),a.e(1423),a.e(4165),a.e(911),a.e(9942),a.e(908)]).then(a.bind(a,30359))).default,TileLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(8244),a.e(1223),a.e(1423),a.e(4165),a.e(911),a.e(4599),a.e(9157),a.e(6368),a.e(8636)]).then(a.bind(a,98636))).default,UnknownLayer:async()=>(await a.e(4166).then(a.bind(a,44166))).default,UnsupportedLayer:async()=>(await a.e(9296).then(a.bind(a,39296))).default,VectorTileLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9157),a.e(4325),a.e(9805),a.e(5481)]).then(a.bind(a,94756))).default,VoxelLayer:async()=>(await Promise.all([a.e(163),a.e(4729),a.e(9408),a.e(8865)]).then(a.bind(a,28865))).default,WFSLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(8244),a.e(1223),a.e(1423),a.e(4165),a.e(911),a.e(5546),a.e(3974)]).then(a.bind(a,12653))).default,WMSLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4729),a.e(9790),a.e(2462)]).then(a.bind(a,25906))).default,WMTSLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9971),a.e(5853)]).then(a.bind(a,55853))).default,WebTileLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9971)]).then(a.bind(a,16199))).default}},33516:(e,r,a)=>{a.d(r,{Y:()=>l,h:()=>i});var t=a(17452),n=a(65587);function i(e){return{origin:"portal-item",url:(0,t.mN)(e.itemUrl),portal:e.portal||n.Z.getDefault(),portalItem:e,readResourcePaths:[]}}function l(e){return{origin:"portal-item",messages:[],writtenProperties:[],url:e.itemUrl?(0,t.mN)(e.itemUrl):null,portal:e.portal||n.Z.getDefault(),portalItem:e}}},18062:(e,r,a)=>{a.r(r),a.d(r,{getFirstLayerOrTableId:()=>h,getNumLayersAndTables:()=>w,getSubtypeGroupLayerIds:()=>I,load:()=>d,preprocessFSItemData:()=>b});var t=a(20102),n=a(87085),i=a(66677),l=a(52104),s=a(65587),o=a(15235),c=a(33516),u=a(14661),y=a(40555),p=a(96187);async function d(e,r){const a=e.instance.portalItem;if(a&&a.id)return await a.load(r),function(e){const r=e.instance.portalItem;if(!r?.type||!e.supportedTypes.includes(r.type))throw new t.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:r?.type,expectedType:e.supportedTypes.join(", ")})}(e),async function(e,r){const a=e.instance,n=a.portalItem;if(!n)return;const{url:i,title:s}=n,o=(0,c.h)(n);if("group"===a.type)return a.read({title:s},o),async function(e,r){let a;const{portalItem:n}=e;if(!n)return;const i=n.type,s=r.layerModuleTypeMap,o=(0,u._$)(n,"Oriented Imagery Layer")??!1;switch(i){case"Feature Service":a=o?s.OrientedImageryLayer:s.FeatureLayer;break;case"Stream Service":a=s.StreamLayer;break;case"Scene Service":a=s.SceneLayer;break;case"Feature Collection":a=s.FeatureLayer;break;default:throw new t.Z("portal:unsupported-item-type-as-group",`The item type '${i}' is not supported as a 'IGroupLayer'`)}let[c,y]=await Promise.all([a(),S(r)]),d=()=>c;if("Feature Service"===i){if(y=n.url?await b(y,n.url):{},I(y).length){const e=s.SubtypeGroupLayer,r=await e();d=e=>"SubtypeGroupLayer"===e.layerType?r:c}return L(e,d,y,await async function(e){const{layersJSON:r}=await(0,l.V)(e);if(!r)return null;const a=[...r.layers,...r.tables];return e=>a.find((r=>r.id===e.id))}(n.url))}return w(y)>0?L(e,d,y):async function(e,r){const{portalItem:a}=e;if(!a?.url)return;const t=await(0,p.T)(a.url);t&&L(e,r,{layers:t.layers?.map(f),tables:t.tables?.map(f)})}(e,d)}(a,e);i&&a.read({url:i},o);const d=await S(e,r);return d&&a.read(d,o),a.resourceReferences={portalItem:n,paths:o.readResourcePaths??[]},"subtype-group"!==a.type&&a.read({title:s},o),(0,y.y)(a,o)}(e,r)}function f(e){return{id:e.id,name:e.name}}function L(e,r,a,l){let s=a.layers||[];const c=a.tables||[];if("Feature Collection"===e.portalItem?.type&&(s.forEach((e=>{"Table"===e?.layerDefinition?.type&&c.push(e)})),s=s.filter((e=>"Table"!==e?.layerDefinition?.type))),"coverage"in a){const r=function(e){const{coverage:r}=e;if(!r)return null;const a=new URL(r);if(r.toLowerCase().includes("item.html")){const e=a.searchParams.get("id"),r=a.origin;return n.Z.fromPortalItem({portalItem:new o.default({id:e,url:r})})}if((0,i.B5)(r))return n.Z.fromArcGISServerUrl({url:r});throw new t.Z("portal:oriented-imagery-layer-coverage","the provided coverage url couldn't be loaded as a layer")}(a);r&&e.add(r)}s.reverse().forEach((t=>{const n=m(e,r(t),a,t,l?.(t));e.add(n)})),c.reverse().forEach((t=>{const n=m(e,r(t),a,t,l?.(t));e.tables.add(n)}))}function m(e,r,a,t,n){const i=e.portalItem,l=new r({portalItem:i.clone(),layerId:t.id});if("sourceJSON"in l&&(l.sourceJSON=n),"subtype-group"!==l.type&&(l.sublayerTitleMode="service-name"),"Feature Collection"===i.type){const e={origin:"portal-item",portal:i.portal||s.Z.getDefault()};l.read(t,e);const r=a.showLegend;null!=r&&l.read({showLegend:r},e)}return l}async function S(e,r){if(!1===e.supportsData)return;const a=e.instance,t=a.portalItem;if(!t)return;let n=null;try{n=await t.fetchData("json",r)}catch(e){}if(function(e){return"stream"!==e.type&&"oriented-imagery"!==e.type&&"layerId"in e}(a)){let e=null,r=!0;if(n&&w(n)>0){if(null==a.layerId){const e=I(n);a.layerId="subtype-group"===a.type?e?.[0]:h(n)}e=function(e,r){const{layerId:a}=r,t=e.layers?.find((e=>e.id===a))||e.tables?.find((e=>e.id===a));return t&&function(e,r){return!("feature"===r.type&&"layerType"in e&&"SubtypeGroupLayer"===e.layerType||"subtype-group"===r.type&&!("layerType"in e))}(t,r)?t:null}(n,a),e&&(1===w(n)&&(r=!1),null!=n.showLegend&&(e.showLegend=n.showLegend))}return r&&"sublayerTitleMode"in a&&"service-name"!==a.sublayerTitleMode&&(a.sublayerTitleMode="item-title-and-service-name"),e}return n}async function b(e,r){if(null==e?.layers||null==e?.tables){const a=await(0,p.T)(r);(e=e||{}).layers=e.layers||a?.layers,e.tables=e.tables||a?.tables}return e}function h(e){const r=e.layers;if(r&&r.length)return r[0].id;const a=e.tables;return a&&a.length?a[0].id:null}function w(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function I(e){const r=[];return e?.layers?.forEach((e=>{"SubtypeGroupLayer"===e.layerType&&r.push(e.id)})),r}},14661:(e,r,a)=>{a.d(r,{$o:()=>u,Fj:()=>o,Kz:()=>y,Ss:()=>p,_$:()=>s,ck:()=>c,qj:()=>l});var t=a(44547),n=a(82971),i=a(40488);function l(e,r){if(!s(e,r)){const a=e.typeKeywords;a?a.push(r):e.typeKeywords=[r]}}function s(e,r){return!!e.typeKeywords?.includes(r)}function o(e){return s(e,y.HOSTED_SERVICE)}function c(e,r){const a=e.typeKeywords;if(a){const e=a.indexOf(r);e>-1&&a.splice(e,1)}}async function u(e){const r=e.clone().normalize();let a;if(r.length>1)for(const e of r)a?e.width>a.width&&(a=e):a=e;else a=r[0];return async function(e){const r=e.spatialReference;if(r.isWGS84)return e.clone();if(r.isWebMercator)return(0,i.Sx)(e);const a=n.Z.WGS84;return await(0,t.iQ)(r,a),(0,t.iV)(e,a)}(a)}const y={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer",TABLE:"Table",HOSTED_SERVICE:"Hosted Service"};function p(e){const{portal:r,isOrgItem:a,itemControl:t}=e,n=r.user?.privileges;let i=!n||n.includes("features:user:edit"),l=!!a&&!!n?.includes("features:user:fullEdit");const s="update"===t||"admin"===t;return s?l=i=!0:l&&(i=!0),{features:{edit:i,fullEdit:l},content:{updateItem:s}}}},28008:(e,r,a)=>{a.r(r),a.d(r,{fromItem:()=>u,selectLayerClassPath:()=>y});var t=a(20102),n=a(84230),i=a(87344),l=a(15235),s=a(18062),o=a(14661),c=a(96187);async function u(e){!e.portalItem||e.portalItem instanceof l.default||(e={...e,portalItem:new l.default(e.portalItem)});const r=await async function(e){return await e.load(),async function(e){const r=e.className,a=i.T[r];return{constructor:await a(),properties:e.properties}}(await y(e))}(e.portalItem);return new(0,r.constructor)({portalItem:e.portalItem,...r.properties})}async function y(e){switch(e.type){case"Map Service":return async function(e){return await async function(e){return(await(0,c.T)(e.url)).tileInfo}(e)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e);case"Feature Service":return async function(e){if((0,o._$)(e,"Oriented Imagery Layer"))return async function(e){await e.load();const r=await e.fetchData();return r.coverage?{className:"GroupLayer"}:{className:"OrientedImageryLayer",properties:r}}(e);const r=await p(e);if("object"==typeof r){const e={};return null!=r.id&&(e.layerId=r.id),{className:r.className||"FeatureLayer",properties:e}}return{className:"GroupLayer"}}(e);case"Feature Collection":return async function(e){await e.load();const r=(0,o._$)(e,"Map Notes"),a=(0,o._$)(e,"Markup");if(r||a)return{className:"MapNotesLayer"};if((0,o._$)(e,"Route Layer"))return{className:"RouteLayer"};const t=await e.fetchData();return 1===(0,s.getNumLayersAndTables)(t)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Scene Service":return async function(e){const r=await p(e);if("object"==typeof r){const a={};let t;if(null!=r.id?(a.layerId=r.id,t=`${e.url}/layers/${r.id}`):t=e.url,e.typeKeywords?.length)for(const r of Object.keys(n.fb))if(e.typeKeywords.includes(r))return{className:n.fb[r]};const i=await(0,c.T)(t);return{className:n.fb[i?.layerType]||"SceneLayer",properties:a}}if(!1===r){const r=await(0,c.T)(e.url);return"Voxel"===r?.layerType?{className:"VoxelLayer"}:{className:"GroupLayer"}}return{className:"GroupLayer"}}(e);case"Image Service":return async function(e){await e.load();const r=e.typeKeywords?.map((e=>e.toLowerCase()))??[];if(r.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(r.includes("tiled imagery"))return{className:"ImageryTileLayer"};const a=await e.fetchData(),t=a?.layerType;if("ArcGISTiledImageServiceLayer"===t)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===t)return{className:"ImageryLayer"};const n=await(0,c.T)(e.url),i=n.cacheType?.toLowerCase(),l=n.capabilities?.toLowerCase().includes("tilesonly");return"map"===i||l?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e);case"Stream Service":case"Feed":return{className:"StreamLayer"};case"Vector Tile Service":return{className:"VectorTileLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"CSV":return{className:"CSVLayer"};case"KML":return{className:"KMLLayer"};case"WFS":return{className:"WFSLayer"};case"WMTS":return{className:"WMTSLayer"};case"WMS":return{className:"WMSLayer"};default:throw new t.Z("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function p(e){const r=e.url;if(!r||r.match(/\/\d+$/))return{};await e.load();const a=await e.fetchData();if("Feature Service"===e.type){const e=d(await(0,s.preprocessFSItemData)(a,r));if("object"==typeof e){const r=(0,s.getSubtypeGroupLayerIds)(a);e.className=null!=e.id&&r.includes(e.id)?"SubtypeGroupLayer":"FeatureLayer"}return e}return(0,s.getNumLayersAndTables)(a)>0?d(a):d(await(0,c.T)(r))}function d(e){return 1===(0,s.getNumLayersAndTables)(e)&&{id:(0,s.getFirstLayerOrTableId)(e)}}},40555:(e,r,a)=>{a.d(r,{y:()=>l});var t=a(66643),n=a(95330),i=a(20941);async function l(e,r,a){const l=e&&e.getAtOrigin&&e.getAtOrigin("renderer",r.origin);if(l&&"unique-value"===l.type&&l.styleOrigin){const s=await(0,t.q6)(l.populateFromStyle());if((0,n.k_)(a),!1===s.ok){const a=s.error;r&&r.messages&&r.messages.push(new i.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${a.message}`,{error:a,context:r})),e.clear("renderer",r?.origin)}}}},96187:(e,r,a)=>{a.d(r,{T:()=>n});var t=a(3172);async function n(e,r){const{data:a}=await(0,t.default)(e,{responseType:"json",query:{f:"json",...r?.customParameters,token:r?.apiKey}});return a}}}]);
|
|
File without changes
|
|
File without changes
|