@arcgis/core 4.31.0-next.20240921 → 4.31.0-next.20240922
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/1810cb638ca1d52de7b2.js +1 -0
- package/assets/esri/core/workers/chunks/{69f6f35b04c722aba8cf.js → 238897e72fedd6754af7.js} +1 -1
- package/assets/esri/core/workers/chunks/2807eb7bfe4868fe840f.js +1 -0
- package/assets/esri/core/workers/chunks/{6c07116c8f7361780803.js → 2b04d2f8466d16a24a80.js} +1 -1
- package/assets/esri/core/workers/chunks/{83649583139b818d4dfa.js → 356f6cc122287412b888.js} +1 -1
- package/assets/esri/core/workers/chunks/36a1de3752ff13d77b4d.js +1 -0
- package/assets/esri/core/workers/chunks/{f14cefc311a21116d21b.js → 4c0d37b799edae391ab2.js} +1 -1
- package/assets/esri/core/workers/chunks/{16eda85f728423c4ed02.js → 4ea08495271f6d291b05.js} +1 -1
- package/assets/esri/core/workers/chunks/{cf147f34032a8d07f322.js → 53becb5fe10f7f38311f.js} +1 -1
- package/assets/esri/core/workers/chunks/{24d45530fe47b3114daf.js → 5652ff08dcc5afd3d739.js} +1 -1
- package/assets/esri/core/workers/chunks/5fe1f8881959df0e61ce.js +1 -0
- package/assets/esri/core/workers/chunks/62f4eda8a9f4de481dcb.js +1 -0
- package/assets/esri/core/workers/chunks/{3fa3e1e6595668ca0e18.js → 686613864dd54d1cae3c.js} +1 -1
- package/assets/esri/core/workers/chunks/{5d0d36230a5b8309c9e4.js → 75bf6dff29056a5a1242.js} +1 -1
- package/assets/esri/core/workers/chunks/{a7bd5bb21a7f3030ee13.js → 783d66397f16899dd0e9.js} +1 -1
- package/assets/esri/core/workers/chunks/{2658205b1ab2502c0bc7.js → 856c82a20027435fd306.js} +1 -1
- package/assets/esri/core/workers/chunks/{99944b05d3142903511c.js → 93fb720bbfb3628f9c71.js} +1 -1
- package/assets/esri/core/workers/chunks/{14f77efbfba0ca9efb6c.js → 9dce33a9bcfb852a74d3.js} +1 -1
- package/assets/esri/core/workers/chunks/abdb6f02351250a776ff.js +1 -0
- package/assets/esri/core/workers/chunks/{de7e197223471c7b66a7.js → afb35deb035c9c9225c9.js} +1 -1
- package/assets/esri/core/workers/chunks/{5f9beed2a9599b9ce649.js → bc37c0dc14ea54f1b9e8.js} +1 -1
- package/assets/esri/core/workers/chunks/{35f92652df2561845d47.js → c9aa8df2f62e6d40b771.js} +1 -1
- package/assets/esri/core/workers/chunks/d8435cc010bd2260feec.js +1 -0
- package/assets/esri/core/workers/chunks/e5a8ab8d02a616469f1d.js +1 -0
- package/assets/esri/core/workers/chunks/f1446e56c35e59b904e1.js +1 -0
- package/assets/esri/core/workers/chunks/{6508ff21b0a5725629eb.js → fa3f9691a9bd1bbb25d3.js} +1 -1
- package/assets/esri/core/workers/chunks/{008f290833724454160d.js → fab59ee41f96b2378768.js} +1 -1
- package/assets/esri/core/workers/chunks/{67ea066a903f5ad31155.js → fe709db8238127f91e59.js} +1 -1
- package/layers/FeatureLayer.js +1 -1
- package/layers/SubtypeGroupLayer.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/layers/support/featureLayerUtils.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/0eb789af3c26fecdf3be.js +0 -1
- package/assets/esri/core/workers/chunks/41a3c7d286a050002d20.js +0 -1
- package/assets/esri/core/workers/chunks/59e4731d246203e94a96.js +0 -1
- package/assets/esri/core/workers/chunks/69c09478c899cd5e5013.js +0 -1
- package/assets/esri/core/workers/chunks/7088f771163fda53d196.js +0 -1
- package/assets/esri/core/workers/chunks/79ed119c70ce6ea02f71.js +0 -1
- package/assets/esri/core/workers/chunks/eeacd5fa9fb9b1dee5f7.js +0 -1
- package/assets/esri/core/workers/chunks/f7c96d34c70ed36da7c2.js +0 -1
- package/assets/esri/core/workers/chunks/f9e90a2fda559ca68848.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2931],{38961:(e,t,r)=>{r.d(t,{A:()=>p});var i=r(90237),s=r(5503),o=(r(60999),r(49186),r(53966),r(14012),r(80559)),n=r(10107),l=r(40608);let a=class extends s.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,o.fm)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new s.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i._)([(0,n.M)()],a.prototype,"getCollections",void 0),(0,i._)([(0,n.M)()],a.prototype,"getChildrenFunction",void 0),(0,i._)([(0,n.M)()],a.prototype,"itemFilterFunction",void 0),a=(0,i._)([(0,l.$)("esri.core.CollectionFlattener")],a);const p=a},88303:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Xe});var i=r(90237),s=r(5503),o=r(38961),n=r(49186),l=r(4718),a=r(81583),p=r(53966),y=r(92071),u=r(74887),d=r(84952),c=r(10107),h=(r(44208),r(36005)),f=r(40608),g=r(16930),m=r(4146),v=r(52106),_=r(13874),b=(r(86162),r(94409),r(65345),r(42980),r(20917),r(92438),r(96576),r(93618),r(65494),r(15036)),w=r(78888),M=r(66552),S=r(92474),x=r(61893),F=(r(87811),r(93223)),A=r(5443),O=r(13600),j=r(4902),T=r(56507),L=r(10873);let I=class extends((0,j.sA)(y.L)){constructor(e){super(e),this.title="",this.id=-1,this.modelName=null,this.isEmpty=null,this.legendEnabled=!0,this.visible=!0,this.opacity=1}readTitle(e,t){return"string"==typeof t.alias?t.alias:"string"==typeof t.name?t.name:""}readIdOnlyOnce(e){return-1!==this.id?this.id:"number"==typeof e?e:-1}};(0,i._)([(0,c.M)({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],I.prototype,"title",void 0),(0,i._)([(0,h.w)("service","title",["alias","name"])],I.prototype,"readTitle",null),(0,i._)([(0,c.M)()],I.prototype,"layer",void 0),(0,i._)([(0,c.M)({type:T.jz,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],I.prototype,"id",void 0),(0,i._)([(0,h.w)("service","id")],I.prototype,"readIdOnlyOnce",null),(0,i._)([(0,c.M)((0,L.Qo)(String))],I.prototype,"modelName",void 0),(0,i._)([(0,c.M)((0,L.Qo)(Boolean))],I.prototype,"isEmpty",void 0),(0,i._)([(0,c.M)({type:Boolean,nonNullable:!0})],I.prototype,"legendEnabled",void 0),(0,i._)([(0,c.M)({type:Boolean,json:{name:"visibility",write:!0}})],I.prototype,"visible",void 0),(0,i._)([(0,c.M)({type:Number,json:{write:!0}})],I.prototype,"opacity",void 0),I=(0,i._)([(0,f.$)("esri.layers.buildingSublayers.BuildingSublayer")],I);const R=I;var P=r(4071),B=r(17036),q=r(95466),N=r(30524),E=r(83898),C=r(50805),k=r(61956),$=r(30291),Q=r(88625),z=r(74664),D=r(45671);const G=(0,B.p)();let J=class extends(S.A.LoadableMixin((0,x.g)(R))){constructor(e){super(e),this.type="building-component",this.nodePages=null,this.materialDefinitions=[],this.textureSetDefinitions=[],this.geometryDefinitions=[],this.indexInfo=null,this.serviceUpdateTimeStamp=null,this.store=null,this.attributeStorageInfo=[],this.fields=[],this.associatedLayer=null,this.outFields=null,this.listMode="show",this.renderer=null,this.definitionExpression=null,this.popupEnabled=!0,this.popupTemplate=null,this.layerType="3d-object"}get parsedUrl(){return this.layer?{path:`${this.layer.parsedUrl?.path}/sublayers/${this.id}`,query:this.layer.parsedUrl?.query}:{path:""}}get fieldsIndex(){return new q.A(this.fields)}readAssociatedLayer(e,t){const r=this.layer.associatedFeatureServiceItem,i=t.associatedLayerID;return null!=r&&"number"==typeof i?new O.default({portalItem:r,customParameters:this.customParameters,layerId:i}):null}get objectIdField(){if(null!=this.fields)for(const e of this.fields)if("oid"===e.type)return e.name;return null}get displayField(){return null!=this.associatedLayer?this.associatedLayer.displayField:void 0}get apiKey(){return this.layer.apiKey}get customParameters(){return this.layer.customParameters}get fullExtent(){return this.layer.fullExtent}get spatialReference(){return this.layer.spatialReference}get version(){return this.layer.version}get elevationInfo(){return this.layer.elevationInfo}get minScale(){return this.layer.minScale}get maxScale(){return this.layer.maxScale}get effectiveScaleRange(){return this.layer.effectiveScaleRange}get defaultPopupTemplate(){return this.createPopupTemplate()}load(e){const t=null!=e?e.signal:null,r=this._fetchService(t).then((()=>{this.indexInfo=(0,E.F)(this.parsedUrl.path,this.rootNode,this.nodePages,this.customParameters,this.apiKey,p.A.getLogger(this),t)}));return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){return(0,$.tn)(this,e)}async _fetchService(e){const t=(await(0,w.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service",url:this.parsedUrl})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getFeatureType(t?.feature)?.domains?.[e];return r&&"inherited"!==r.type?r:this.getField(e)?.domain??null}getFeatureType(e){return e&&null!=this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return null!=this.associatedLayer?this.associatedLayer.types??[]:[]}get typeIdField(){return null!=this.associatedLayer?this.associatedLayer.typeIdField:null}get geometryType(){return"3d-object"===this.layerType?"mesh":"point"}get profile(){return"3d-object"===this.layerType?"mesh-pyramids":"points"}get capabilities(){const e=null!=this.associatedLayer&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:P.P,{query:t,data:{supportsZ:r,supportsM:i,isVersioned:s}}=e;return{query:t,data:{supportsZ:r,supportsM:i,isVersioned:s}}}createQuery(){const e=new k.A;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryExtent(e||this.createQuery(),t)))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatureCount(e||this.createQuery(),t)))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatures(e||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=this.layer,t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryObjectIds(e||this.createQuery(),t)))}async queryCachedAttributes(e,t){const r=(0,N.hL)(this.fieldsIndex,await(0,D.TO)(this,(0,D.D8)(this)));return(0,z.s1)(this.parsedUrl.path,this.attributeStorageInfo,e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new n.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");return new v.A({attributes:r[0],layer:this,sourceLayer:this})}getFieldUsageInfo(e){return this.fieldsIndex.has(e)?{supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1}:{supportsLabelingInfo:!1,supportsRenderer:!0,supportsPopupTemplate:!0,supportsLayerQuery:null!=this.associatedLayer}}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return null!=e&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),null==this.associatedLayer)throw new n.A("buildingscenelayer:query-not-available","BuildingSceneLayer component layer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new n.A("buildingscenelayer:query-not-available","BuildingSceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}};(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"parsedUrl",null),(0,i._)([(0,c.M)({type:C.W4,readOnly:!0})],J.prototype,"nodePages",void 0),(0,i._)([(0,c.M)({type:[C.uV],readOnly:!0})],J.prototype,"materialDefinitions",void 0),(0,i._)([(0,c.M)({type:[C.Ot],readOnly:!0})],J.prototype,"textureSetDefinitions",void 0),(0,i._)([(0,c.M)({type:[C.L0],readOnly:!0})],J.prototype,"geometryDefinitions",void 0),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"serviceUpdateTimeStamp",void 0),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"store",void 0),(0,i._)([(0,c.M)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],J.prototype,"rootNode",void 0),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,c.M)(G.fields)],J.prototype,"fields",void 0),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"fieldsIndex",null),(0,i._)([(0,c.M)({readOnly:!0,type:O.default})],J.prototype,"associatedLayer",void 0),(0,i._)([(0,h.w)("service","associatedLayer",["associatedLayerID"])],J.prototype,"readAssociatedLayer",null),(0,i._)([(0,c.M)(G.outFields)],J.prototype,"outFields",void 0),(0,i._)([(0,c.M)({type:String,readOnly:!0})],J.prototype,"objectIdField",null),(0,i._)([(0,c.M)({readOnly:!0,type:String,json:{read:!1}})],J.prototype,"displayField",null),(0,i._)([(0,c.M)({readOnly:!0,type:String})],J.prototype,"apiKey",null),(0,i._)([(0,c.M)({readOnly:!0,type:String})],J.prototype,"customParameters",null),(0,i._)([(0,c.M)({readOnly:!0,type:A.A})],J.prototype,"fullExtent",null),(0,i._)([(0,c.M)({readOnly:!0,type:g.A})],J.prototype,"spatialReference",null),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"version",null),(0,i._)([(0,c.M)({readOnly:!0,type:Q.A})],J.prototype,"elevationInfo",null),(0,i._)([(0,c.M)({readOnly:!0,type:Number})],J.prototype,"minScale",null),(0,i._)([(0,c.M)({readOnly:!0,type:Number})],J.prototype,"maxScale",null),(0,i._)([(0,c.M)({readOnly:!0,type:Number})],J.prototype,"effectiveScaleRange",null),(0,i._)([(0,c.M)({type:["hide","show"],json:{write:!0}})],J.prototype,"listMode",void 0),(0,i._)([(0,c.M)({types:b.X,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],J.prototype,"renderer",void 0),(0,i._)([(0,c.M)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],J.prototype,"definitionExpression",void 0),(0,i._)([(0,c.M)(L.M6)],J.prototype,"popupEnabled",void 0),(0,i._)([(0,c.M)({type:_.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],J.prototype,"popupTemplate",void 0),(0,i._)([(0,c.M)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],J.prototype,"normalReferenceFrame",void 0),(0,i._)([(0,c.M)({readOnly:!0,json:{read:!1}})],J.prototype,"defaultPopupTemplate",null),(0,i._)([(0,c.M)()],J.prototype,"types",null),(0,i._)([(0,c.M)()],J.prototype,"typeIdField",null),(0,i._)([(0,c.M)({json:{write:!1}}),(0,F.e)(new M.J({"3DObject":"3d-object",Point:"point"}))],J.prototype,"layerType",void 0),(0,i._)([(0,c.M)()],J.prototype,"geometryType",null),(0,i._)([(0,c.M)()],J.prototype,"profile",null),(0,i._)([(0,c.M)({readOnly:!0,json:{read:!1}})],J.prototype,"capabilities",null),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"statisticsInfo",void 0),J=(0,i._)([(0,f.$)("esri.layers.buildingSublayers.BuildingComponentSublayer")],J);const K=J;var U,V=r(67076);const Y={type:s.A,readOnly:!0,json:{origins:{service:{read:{source:"sublayers",reader:Z}}},read:!1}};function Z(e,t,r){if(e&&Array.isArray(e))return new s.A(e.map((e=>{const t=function(e){return"group"===e.layerType?H:K}(e);if(t){const i=new t;return i.read(e,r),i}return r?.messages&&e&&r.messages.push(new V.A("building-scene-layer:unsupported-sublayer-type","Building scene sublayer of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:r})),null})))}let H=U=class extends R{constructor(e){super(e),this.type="building-group",this.listMode="show",this.sublayers=null}loadAll(){return(0,a.L)(this,(e=>U.forEachSublayer(this.sublayers,(t=>{"building-group"!==t.type&&e(t)}))))}};var X;(0,i._)([(0,c.M)({type:["hide","show","hide-children"],json:{write:!0}})],H.prototype,"listMode",void 0),(0,i._)([(0,c.M)(Y)],H.prototype,"sublayers",void 0),H=U=(0,i._)([(0,f.$)("esri.layers.buildingSublayers.BuildingGroupSublayer")],H),(X=H||(H={})).sublayersProperty=Y,X.readSublayers=Z,X.forEachSublayer=function e(t,r){t.forEach((t=>{r(t),"building-group"===t.type&&e(t.sublayers,r)}))};const W=H;var ee=r(52136),te=r(18768),re=r(69208),ie=r(16131),se=r(8303),oe=r(25036),ne=r(58947),le=r(92009),ae=r(25482),pe=r(13069);let ye=class extends ae.oY{constructor(){super(...arguments),this.type=null}};(0,i._)([(0,c.M)({type:String,readOnly:!0,json:{write:!0}})],ye.prototype,"type",void 0),ye=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterAuthoringInfo")],ye);const ue=ye;var de;let ce=de=class extends ae.oY{constructor(){super(...arguments),this.filterType=null,this.filterValues=null}clone(){return new de({filterType:this.filterType,filterValues:(0,l.o8)(this.filterValues)})}};(0,i._)([(0,c.M)({type:String,json:{write:!0}})],ce.prototype,"filterType",void 0),(0,i._)([(0,c.M)({type:[String],json:{write:!0}})],ce.prototype,"filterValues",void 0),ce=de=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterAuthoringInfoType")],ce);const he=ce;var fe;const ge=s.A.ofType(he);let me=fe=class extends ae.oY{clone(){return new fe({filterTypes:(0,l.o8)(this.filterTypes)})}};(0,i._)([(0,c.M)({type:ge,json:{write:!0}})],me.prototype,"filterTypes",void 0),me=fe=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterAuthoringInfoBlock")],me);const ve=me;var _e;const be=s.A.ofType(ve);let we=_e=class extends ue{constructor(){super(...arguments),this.type="checkbox"}clone(){return new _e({filterBlocks:(0,l.o8)(this.filterBlocks)})}};(0,i._)([(0,c.M)({type:["checkbox"]})],we.prototype,"type",void 0),(0,i._)([(0,c.M)({type:be,json:{write:!0}})],we.prototype,"filterBlocks",void 0),we=_e=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterAuthoringInfoCheckbox")],we);const Me=we;let Se=class extends ae.oY{};(0,i._)([(0,c.M)({readOnly:!0,json:{read:!1}})],Se.prototype,"type",void 0),Se=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterMode")],Se);const xe=Se;var Fe;let Ae=Fe=class extends xe{constructor(){super(...arguments),this.type="solid"}clone(){return new Fe}};(0,i._)([(0,c.M)({type:["solid"],readOnly:!0,json:{write:!0}})],Ae.prototype,"type",void 0),Ae=Fe=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterModeSolid")],Ae);const Oe=Ae;var je,Te=r(51734);let Le=je=class extends xe{constructor(){super(...arguments),this.type="wire-frame",this.edges=null}clone(){return new je({edges:(0,l.o8)(this.edges)})}};(0,i._)([(0,F.e)({wireFrame:"wire-frame"})],Le.prototype,"type",void 0),(0,i._)([(0,c.M)(Te.J)],Le.prototype,"edges",void 0),Le=je=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterModeWireFrame")],Le);const Ie=Le;var Re;let Pe=Re=class extends xe{constructor(){super(...arguments),this.type="x-ray"}clone(){return new Re}};(0,i._)([(0,c.M)({type:["x-ray"],readOnly:!0,json:{write:!0}})],Pe.prototype,"type",void 0),Pe=Re=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterModeXRay")],Pe);const Be=Pe;var qe;const Ne={nonNullable:!0,types:{key:"type",base:xe,typeMap:{solid:Oe,"wire-frame":Ie,"x-ray":Be}},json:{read:e=>{switch(e?.type){case"solid":return Oe.fromJSON(e);case"wireFrame":return Ie.fromJSON(e);case"x-ray":return Be.fromJSON(e);default:return}},write:{enabled:!0,isRequired:!0}}};let Ee=qe=class extends ae.oY{constructor(){super(...arguments),this.filterExpression=null,this.filterMode=new Oe,this.title=""}clone(){return new qe({filterExpression:this.filterExpression,filterMode:(0,l.o8)(this.filterMode),title:this.title})}};(0,i._)([(0,c.M)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Ee.prototype,"filterExpression",void 0),(0,i._)([(0,c.M)(Ne)],Ee.prototype,"filterMode",void 0),(0,i._)([(0,c.M)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Ee.prototype,"title",void 0),Ee=qe=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterBlock")],Ee);const Ce=Ee;var ke;const $e=s.A.ofType(Ce);let Qe=ke=class extends ae.oY{constructor(){super(...arguments),this.description=null,this.filterBlocks=null,this.id=(0,pe.lk)(),this.name=null}clone(){return new ke({description:this.description,filterBlocks:(0,l.o8)(this.filterBlocks),id:this.id,name:this.name,filterAuthoringInfo:(0,l.o8)(this.filterAuthoringInfo)})}};(0,i._)([(0,c.M)({type:String,json:{write:!0}})],Qe.prototype,"description",void 0),(0,i._)([(0,c.M)({type:$e,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"filterBlocks",void 0),(0,i._)([(0,c.M)({types:{key:"type",base:ue,typeMap:{checkbox:Me}},json:{read:e=>"checkbox"===e?.type?Me.fromJSON(e):null,write:!0}})],Qe.prototype,"filterAuthoringInfo",void 0),(0,i._)([(0,c.M)({type:String,constructOnly:!0,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"id",void 0),(0,i._)([(0,c.M)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"name",void 0),Qe=ke=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilter")],Qe);const ze=Qe;let De=class extends ae.oY{constructor(){super(...arguments),this.fieldName=null,this.modelName=null,this.label=null,this.min=null,this.max=null,this.mostFrequentValues=null,this.subLayerIds=null}};(0,i._)([(0,c.M)({type:String})],De.prototype,"fieldName",void 0),(0,i._)([(0,c.M)({type:String})],De.prototype,"modelName",void 0),(0,i._)([(0,c.M)({type:String})],De.prototype,"label",void 0),(0,i._)([(0,c.M)({type:Number})],De.prototype,"min",void 0),(0,i._)([(0,c.M)({type:Number})],De.prototype,"max",void 0),(0,i._)([(0,c.M)({json:{read:e=>Array.isArray(e)&&(e.every((e=>"string"==typeof e))||e.every((e=>"number"==typeof e)))?e.slice():null}})],De.prototype,"mostFrequentValues",void 0),(0,i._)([(0,c.M)({type:[Number]})],De.prototype,"subLayerIds",void 0),De=(0,i._)([(0,f.$)("esri.layers.support.BuildingSummaryStatistics.BuildingFieldStatistics")],De);let Ge=class extends(S.A.LoadableMixin((0,x.g)(ae.oY))){constructor(){super(...arguments),this.url=null}get fields(){return this.loaded||"loading"===this.loadStatus?this._get("fields"):(p.A.getLogger(this).error("building summary statistics are not loaded"),null)}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._fetchService(t)),Promise.resolve(this)}async _fetchService(e){const t=(await(0,w.A)(this.url,{query:{f:"json"},responseType:"json",signal:e})).data;this.read(t,{origin:"service"})}};(0,i._)([(0,c.M)({constructOnly:!0,type:String})],Ge.prototype,"url",void 0),(0,i._)([(0,c.M)({readOnly:!0,type:[De],json:{read:{source:"summary"}}})],Ge.prototype,"fields",null),Ge=(0,i._)([(0,f.$)("esri.layers.support.BuildingSummaryStatistics")],Ge);const Je=Ge;var Ke=r(24212);const Ue=s.A.ofType(ze),Ve=(0,l.o8)(W.sublayersProperty),Ye=Ve.json?.origins;Ye&&(Ye["web-scene"]={type:[K],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}},Ye["portal-item"]={type:[K],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}});let Ze=class extends((0,ne.w6)((0,te.b)((0,ie.q)((0,se.A)((0,oe.j)((0,y.P)((0,re.d)((0,ee.p)(m.A))))))))){constructor(e){super(e),this.operationalLayerType="BuildingSceneLayer",this.allSublayers=new o.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>"building-group"===e.type?e.sublayers:null}),this.sublayers=null,this._allSublayerOverrides=null,this.filters=new Ue,this.activeFilterId=null,this.summaryStatistics=null,this.outFields=null,this.legendEnabled=!0,this.type="building-scene"}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e??{}}destroy(){this.allSublayers.destroy()}readSublayers(e,t,r){const i=W.readSublayers(e,t,r);return W.forEachSublayer(i,(e=>e.layer=this)),this._allSublayerOverrides&&(function(e,t){t.forEach((t=>He(e,t)))}(i,this._allSublayerOverrides),this._allSublayerOverrides=null),i}write(e,t){return e=super.write(e,t),!t||"web-scene"!==t.origin&&"portal-item"!==t.origin||(this.sublayers?function(e,t,r){const i=[];W.forEachSublayer(e,(e=>{const t=e.write({},r);Object.keys(t).length>1&&i.push(t)})),i.length>0&&(t.sublayers=i)}(this.sublayers,e,t):this._allSublayerOverrides&&function(e,t,r){const i=r?.origin&&e.get(r.origin);i&&(t.sublayers=[],i.overrides.forEach((e=>{t.sublayers.push((0,l.o8)(e))})))}(this._allSublayerOverrides,e,t)),e}read(e,t){if(super.read(e,t),("web-scene"===t?.origin||"portal-item"===t?.origin)&&Array.isArray(e?.sublayers)){const r=function(e,t){const r=new Map;for(const i of e)null!=i&&"object"==typeof i&&"number"==typeof i.id?r.set(i.id,i):t.messages?.push(new n.A("building-scene-layer:invalid-sublayer-override","Invalid value for sublayer override. Not an object or no id specified.",{value:i}));return{overrides:r,context:t}}(e.sublayers,t);this.sublayers?He(this.sublayers,r):(this._allSublayerOverrides??=new Map,this._allSublayerOverrides.set(t.origin,r))}}readSummaryStatistics(e,t){if("string"==typeof t.statisticsHRef){const e=(0,d.fj)(this.parsedUrl?.path,t.statisticsHRef);return new Je({url:e})}return null}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.QP).then((()=>this._fetchService(t))).then((()=>this._fetchAssociatedFeatureService(t)));return this.addResolvingPromise(r),Promise.resolve(this)}loadAll(){return(0,a.g)(this,(e=>{W.forEachSublayer(this.sublayers,(t=>{"building-group"!==t.type&&e(t)})),this.summaryStatistics&&e(this.summaryStatistics)}))}async saveAs(e,t){return this._debouncedSaveOperations(ne.Xh.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"};return this._debouncedSaveOperations(ne.Xh.SAVE,e)}validateLayer(e){if(!e.layerType||"Building"!==e.layerType)throw new n.A("buildingscenelayer:layer-type-not-supported","BuildingSceneLayer does not support this layer type",{layerType:e.layerType})}_getTypeKeywords(){return["Building"]}async _fetchAssociatedFeatureService(e){try{const{portalItem:t}=await(0,le.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e});this.associatedFeatureServiceItem=t}catch(e){p.A.getLogger(this).warn("Associated feature service item could not be loaded",e)}}_validateElevationInfo(){const e=this.elevationInfo,t="Building scene layers";(0,Ke.XF)(p.A.getLogger(this),(0,Ke.B)(t,"absolute-height",e)),(0,Ke.XF)(p.A.getLogger(this),(0,Ke.tW)(t,e))}};function He(e,t){const{overrides:r,context:i}=t;W.forEachSublayer(e,(e=>e.read(r.get(e.id),i)))}(0,i._)([(0,c.M)({type:["BuildingSceneLayer"]})],Ze.prototype,"operationalLayerType",void 0),(0,i._)([(0,c.M)({readOnly:!0})],Ze.prototype,"allSublayers",void 0),(0,i._)([(0,c.M)(Ve)],Ze.prototype,"sublayers",void 0),(0,i._)([(0,h.w)("service","sublayers")],Ze.prototype,"readSublayers",null),(0,i._)([(0,c.M)({type:Ue,nonNullable:!0,json:{write:!0}})],Ze.prototype,"filters",void 0),(0,i._)([(0,c.M)({type:String,json:{write:!0}})],Ze.prototype,"activeFilterId",void 0),(0,i._)([(0,c.M)({readOnly:!0,type:Je})],Ze.prototype,"summaryStatistics",void 0),(0,i._)([(0,h.w)("summaryStatistics",["statisticsHRef"])],Ze.prototype,"readSummaryStatistics",null),(0,i._)([(0,c.M)({type:[String],json:{read:!1}})],Ze.prototype,"outFields",void 0),(0,i._)([(0,c.M)(L.Fm)],Ze.prototype,"fullExtent",void 0),(0,i._)([(0,c.M)(L.fV)],Ze.prototype,"legendEnabled",void 0),(0,i._)([(0,c.M)({type:["show","hide","hide-children"]})],Ze.prototype,"listMode",void 0),(0,i._)([(0,c.M)((0,L.Qo)(g.A))],Ze.prototype,"spatialReference",void 0),(0,i._)([(0,c.M)(L.Yj)],Ze.prototype,"elevationInfo",null),(0,i._)([(0,c.M)({json:{read:!1},readOnly:!0})],Ze.prototype,"type",void 0),(0,i._)([(0,c.M)()],Ze.prototype,"associatedFeatureServiceItem",void 0),Ze=(0,i._)([(0,f.$)("esri.layers.BuildingSceneLayer")],Ze);const Xe=Ze},33143:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(90237),s=r(69540),o=r(25482),n=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),a=r(40608),p=r(43937),y=r(72088),u=r(29005);let d=class extends((0,s.O)(o.oY)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,y.rS)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i._)([(0,n.M)({json:{write:!0}})],d.prototype,"id",void 0),(0,i._)([(0,n.M)({json:{write:!0}})],d.prototype,"name",void 0),(0,i._)([(0,n.M)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i._)([(0,l.w)("domains")],d.prototype,"readDomains",null),(0,i._)([(0,p.K)("domains")],d.prototype,"writeDomains",null),(0,i._)([(0,n.M)({type:[u.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i._)([(0,a.$)("esri.layers.support.FeatureType")],d);const c=d},58501:(e,t,r)=>{r.d(t,{q:()=>s});var i=r(62815);function s(e,t,r){if(!r?.features||!r.hasZ)return;const s=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(null!=s)for(const e of r.features)s(e.geometry)}},22671:(e,t,r)=>{r.d(t,{A:()=>_});var i,s=r(90237),o=r(59456),n=r(52106),l=r(66552),a=r(25482),p=r(4718),y=r(10107),u=(r(44208),r(53966),r(36005)),d=r(40608),c=r(43937),h=r(16930),f=r(65864),g=r(20437);const m=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends a.oY{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=h.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const s=e[t],o=n.A.fromJSON(s),l=s.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=r);const a=s.aggregateGeometries,p=o.aggregateGeometries;if(a&&null!=p)for(const e in p){const t=p[e],i=a[e],s=i?.spatialReference;null==t||s||(t.spatialReference=r)}i.push(o)}return i}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);const{features:s}=this;if(s)for(const e of s)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,f.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=h.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,p.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,s]}=e,o=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((s-e)/r)));for(let e=0,t=o.length;e<t;e++)n?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,s],scale:[o,n]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,(e=>e*o+i),(e=>s-e*n),l,a);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,s;const o=[];for(let n=0,l=e.length;n<l;n++){const l=e[n];if(n>0){const e=t(l[0]),n=r(l[1]);e===i&&n===s||(o.push([e-i,n-s]),i=e,s=n)}else i=t(l[0]),s=r(l[1]),o.push([i,s])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,f.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,o=i.length;e<o;e++){const o=i[e],n=this._quantizePoints(o,t,r);n&&s.push(n)}return s.length>0?((0,f.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,s){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,f.Bi)(e)?e.rings:e.paths;let n,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];for(let e=0,s=i.length;e<s;e++){const s=i[e];e>0?(n+=s[0],l+=s[1]):(n=s[0],l=s[1]),s[0]=t(n),s[1]=r(l)}}if(i&&s)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=s(r[3])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let n,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(n+=i[0],l+=i[1]):(n=i[0],l=i[1]),i[0]=t(n),i[1]=r(l)}if(i&&s)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2]),t[3]=s(t[3])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=s(t[2])}}:null}};(0,s._)([(0,y.M)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,s._)([(0,y.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,y.M)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,s._)([(0,u.w)("features")],v.prototype,"readFeatures",null),(0,s._)([(0,y.M)({type:[g.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,s._)([(0,y.M)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,s._)([(0,c.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,s._)([(0,y.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,s._)([(0,y.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,s._)([(0,y.M)({types:o.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,s._)([(0,u.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,s._)([(0,y.M)({type:h.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,s._)([(0,c.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,s._)([(0,y.M)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,s._)([(0,d.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const _=v}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2931],{38961:(e,t,r)=>{r.d(t,{A:()=>p});var i=r(90237),s=r(5503),o=(r(60999),r(49186),r(53966),r(14012),r(80559)),n=r(10107),l=r(40608);let a=class extends s.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,o.fm)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new s.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i._)([(0,n.M)()],a.prototype,"getCollections",void 0),(0,i._)([(0,n.M)()],a.prototype,"getChildrenFunction",void 0),(0,i._)([(0,n.M)()],a.prototype,"itemFilterFunction",void 0),a=(0,i._)([(0,l.$)("esri.core.CollectionFlattener")],a);const p=a},88303:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Xe});var i=r(90237),s=r(5503),o=r(38961),n=r(49186),l=r(4718),a=r(81583),p=r(53966),y=r(92071),u=r(74887),d=r(84952),c=r(10107),h=(r(44208),r(36005)),f=r(40608),g=r(16930),m=r(4146),v=r(52106),_=r(13874),b=(r(86162),r(94409),r(65345),r(42980),r(20917),r(92438),r(96576),r(93618),r(65494),r(15036)),w=r(78888),M=r(66552),S=r(92474),x=r(61893),F=(r(87811),r(93223)),A=r(5443),O=r(13600),j=r(4902),T=r(56507),L=r(10873);let I=class extends((0,j.sA)(y.L)){constructor(e){super(e),this.title="",this.id=-1,this.modelName=null,this.isEmpty=null,this.legendEnabled=!0,this.visible=!0,this.opacity=1}readTitle(e,t){return"string"==typeof t.alias?t.alias:"string"==typeof t.name?t.name:""}readIdOnlyOnce(e){return-1!==this.id?this.id:"number"==typeof e?e:-1}};(0,i._)([(0,c.M)({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],I.prototype,"title",void 0),(0,i._)([(0,h.w)("service","title",["alias","name"])],I.prototype,"readTitle",null),(0,i._)([(0,c.M)()],I.prototype,"layer",void 0),(0,i._)([(0,c.M)({type:T.jz,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],I.prototype,"id",void 0),(0,i._)([(0,h.w)("service","id")],I.prototype,"readIdOnlyOnce",null),(0,i._)([(0,c.M)((0,L.Qo)(String))],I.prototype,"modelName",void 0),(0,i._)([(0,c.M)((0,L.Qo)(Boolean))],I.prototype,"isEmpty",void 0),(0,i._)([(0,c.M)({type:Boolean,nonNullable:!0})],I.prototype,"legendEnabled",void 0),(0,i._)([(0,c.M)({type:Boolean,json:{name:"visibility",write:!0}})],I.prototype,"visible",void 0),(0,i._)([(0,c.M)({type:Number,json:{write:!0}})],I.prototype,"opacity",void 0),I=(0,i._)([(0,f.$)("esri.layers.buildingSublayers.BuildingSublayer")],I);const R=I;var P=r(4071),B=r(17036),q=r(95466),N=r(30524),E=r(83898),C=r(50805),k=r(61956),$=r(30291),Q=r(88625),z=r(74664),D=r(45671);const G=(0,B.p)();let J=class extends(S.A.LoadableMixin((0,x.g)(R))){constructor(e){super(e),this.type="building-component",this.nodePages=null,this.materialDefinitions=[],this.textureSetDefinitions=[],this.geometryDefinitions=[],this.indexInfo=null,this.serviceUpdateTimeStamp=null,this.store=null,this.attributeStorageInfo=[],this.fields=[],this.associatedLayer=null,this.outFields=null,this.listMode="show",this.renderer=null,this.definitionExpression=null,this.popupEnabled=!0,this.popupTemplate=null,this.layerType="3d-object"}get parsedUrl(){return this.layer?{path:`${this.layer.parsedUrl?.path}/sublayers/${this.id}`,query:this.layer.parsedUrl?.query}:{path:""}}get fieldsIndex(){return new q.A(this.fields)}readAssociatedLayer(e,t){const r=this.layer.associatedFeatureServiceItem,i=t.associatedLayerID;return null!=r&&"number"==typeof i?new O.default({portalItem:r,customParameters:this.customParameters,layerId:i}):null}get objectIdField(){if(null!=this.fields)for(const e of this.fields)if("oid"===e.type)return e.name;return null}get displayField(){return null!=this.associatedLayer?this.associatedLayer.displayField:void 0}get apiKey(){return this.layer.apiKey}get customParameters(){return this.layer.customParameters}get fullExtent(){return this.layer.fullExtent}get spatialReference(){return this.layer.spatialReference}get version(){return this.layer.version}get elevationInfo(){return this.layer.elevationInfo}get minScale(){return this.layer.minScale}get maxScale(){return this.layer.maxScale}get effectiveScaleRange(){return this.layer.effectiveScaleRange}get defaultPopupTemplate(){return this.createPopupTemplate()}load(e){const t=null!=e?e.signal:null,r=this._fetchService(t).then((()=>{this.indexInfo=(0,E.F)(this.parsedUrl.path,this.rootNode,this.nodePages,this.customParameters,this.apiKey,p.A.getLogger(this),t)}));return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){return(0,$.tn)(this,e)}async _fetchService(e){const t=(await(0,w.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service",url:this.parsedUrl})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getFeatureType(t?.feature)?.domains?.[e];return r&&"inherited"!==r.type?r:this.getField(e)?.domain??null}getFeatureType(e){return e&&null!=this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return null!=this.associatedLayer?this.associatedLayer.types??[]:[]}get typeIdField(){return null!=this.associatedLayer?this.associatedLayer.typeIdField:null}get geometryType(){return"3d-object"===this.layerType?"mesh":"point"}get profile(){return"3d-object"===this.layerType?"mesh-pyramids":"points"}get capabilities(){const e=null!=this.associatedLayer&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:P.P,{query:t,data:{supportsZ:r,supportsM:i,isVersioned:s}}=e;return{query:t,data:{supportsZ:r,supportsM:i,isVersioned:s}}}createQuery(){const e=new k.A;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryExtent(e||this.createQuery(),t)))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatureCount(e||this.createQuery(),t)))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatures(e||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=this.layer,t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryObjectIds(e||this.createQuery(),t)))}async queryCachedAttributes(e,t){const r=(0,N.hL)(this.fieldsIndex,await(0,D.TO)(this,(0,D.D8)(this)));return(0,z.s1)(this.parsedUrl.path,this.attributeStorageInfo,e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new n.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");return new v.A({attributes:r[0],layer:this,sourceLayer:this})}getFieldUsageInfo(e){return this.fieldsIndex.has(e)?{supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1}:{supportsLabelingInfo:!1,supportsRenderer:!0,supportsPopupTemplate:!0,supportsLayerQuery:null!=this.associatedLayer}}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return null!=e&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),null==this.associatedLayer)throw new n.A("buildingscenelayer:query-not-available","BuildingSceneLayer component layer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new n.A("buildingscenelayer:query-not-available","BuildingSceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}};(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"parsedUrl",null),(0,i._)([(0,c.M)({type:C.W4,readOnly:!0})],J.prototype,"nodePages",void 0),(0,i._)([(0,c.M)({type:[C.uV],readOnly:!0})],J.prototype,"materialDefinitions",void 0),(0,i._)([(0,c.M)({type:[C.Ot],readOnly:!0})],J.prototype,"textureSetDefinitions",void 0),(0,i._)([(0,c.M)({type:[C.L0],readOnly:!0})],J.prototype,"geometryDefinitions",void 0),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"serviceUpdateTimeStamp",void 0),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"store",void 0),(0,i._)([(0,c.M)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],J.prototype,"rootNode",void 0),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,c.M)(G.fields)],J.prototype,"fields",void 0),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"fieldsIndex",null),(0,i._)([(0,c.M)({readOnly:!0,type:O.default})],J.prototype,"associatedLayer",void 0),(0,i._)([(0,h.w)("service","associatedLayer",["associatedLayerID"])],J.prototype,"readAssociatedLayer",null),(0,i._)([(0,c.M)(G.outFields)],J.prototype,"outFields",void 0),(0,i._)([(0,c.M)({type:String,readOnly:!0})],J.prototype,"objectIdField",null),(0,i._)([(0,c.M)({readOnly:!0,type:String,json:{read:!1}})],J.prototype,"displayField",null),(0,i._)([(0,c.M)({readOnly:!0,type:String})],J.prototype,"apiKey",null),(0,i._)([(0,c.M)({readOnly:!0,type:String})],J.prototype,"customParameters",null),(0,i._)([(0,c.M)({readOnly:!0,type:A.A})],J.prototype,"fullExtent",null),(0,i._)([(0,c.M)({readOnly:!0,type:g.A})],J.prototype,"spatialReference",null),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"version",null),(0,i._)([(0,c.M)({readOnly:!0,type:Q.A})],J.prototype,"elevationInfo",null),(0,i._)([(0,c.M)({readOnly:!0,type:Number})],J.prototype,"minScale",null),(0,i._)([(0,c.M)({readOnly:!0,type:Number})],J.prototype,"maxScale",null),(0,i._)([(0,c.M)({readOnly:!0,type:Number})],J.prototype,"effectiveScaleRange",null),(0,i._)([(0,c.M)({type:["hide","show"],json:{write:!0}})],J.prototype,"listMode",void 0),(0,i._)([(0,c.M)({types:b.X,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],J.prototype,"renderer",void 0),(0,i._)([(0,c.M)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],J.prototype,"definitionExpression",void 0),(0,i._)([(0,c.M)(L.M6)],J.prototype,"popupEnabled",void 0),(0,i._)([(0,c.M)({type:_.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],J.prototype,"popupTemplate",void 0),(0,i._)([(0,c.M)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],J.prototype,"normalReferenceFrame",void 0),(0,i._)([(0,c.M)({readOnly:!0,json:{read:!1}})],J.prototype,"defaultPopupTemplate",null),(0,i._)([(0,c.M)()],J.prototype,"types",null),(0,i._)([(0,c.M)()],J.prototype,"typeIdField",null),(0,i._)([(0,c.M)({json:{write:!1}}),(0,F.e)(new M.J({"3DObject":"3d-object",Point:"point"}))],J.prototype,"layerType",void 0),(0,i._)([(0,c.M)()],J.prototype,"geometryType",null),(0,i._)([(0,c.M)()],J.prototype,"profile",null),(0,i._)([(0,c.M)({readOnly:!0,json:{read:!1}})],J.prototype,"capabilities",null),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"statisticsInfo",void 0),J=(0,i._)([(0,f.$)("esri.layers.buildingSublayers.BuildingComponentSublayer")],J);const K=J;var U,V=r(67076);const Y={type:s.A,readOnly:!0,json:{origins:{service:{read:{source:"sublayers",reader:Z}}},read:!1}};function Z(e,t,r){if(e&&Array.isArray(e))return new s.A(e.map((e=>{const t=function(e){return"group"===e.layerType?H:K}(e);if(t){const i=new t;return i.read(e,r),i}return r?.messages&&e&&r.messages.push(new V.A("building-scene-layer:unsupported-sublayer-type","Building scene sublayer of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:r})),null})))}let H=U=class extends R{constructor(e){super(e),this.type="building-group",this.listMode="show",this.sublayers=null}loadAll(){return(0,a.L)(this,(e=>U.forEachSublayer(this.sublayers,(t=>{"building-group"!==t.type&&e(t)}))))}};var X;(0,i._)([(0,c.M)({type:["hide","show","hide-children"],json:{write:!0}})],H.prototype,"listMode",void 0),(0,i._)([(0,c.M)(Y)],H.prototype,"sublayers",void 0),H=U=(0,i._)([(0,f.$)("esri.layers.buildingSublayers.BuildingGroupSublayer")],H),(X=H||(H={})).sublayersProperty=Y,X.readSublayers=Z,X.forEachSublayer=function e(t,r){t.forEach((t=>{r(t),"building-group"===t.type&&e(t.sublayers,r)}))};const W=H;var ee=r(52136),te=r(18768),re=r(69208),ie=r(16131),se=r(8303),oe=r(25036),ne=r(58947),le=r(92009),ae=r(25482),pe=r(13069);let ye=class extends ae.oY{constructor(){super(...arguments),this.type=null}};(0,i._)([(0,c.M)({type:String,readOnly:!0,json:{write:!0}})],ye.prototype,"type",void 0),ye=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterAuthoringInfo")],ye);const ue=ye;var de;let ce=de=class extends ae.oY{constructor(){super(...arguments),this.filterType=null,this.filterValues=null}clone(){return new de({filterType:this.filterType,filterValues:(0,l.o8)(this.filterValues)})}};(0,i._)([(0,c.M)({type:String,json:{write:!0}})],ce.prototype,"filterType",void 0),(0,i._)([(0,c.M)({type:[String],json:{write:!0}})],ce.prototype,"filterValues",void 0),ce=de=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterAuthoringInfoType")],ce);const he=ce;var fe;const ge=s.A.ofType(he);let me=fe=class extends ae.oY{clone(){return new fe({filterTypes:(0,l.o8)(this.filterTypes)})}};(0,i._)([(0,c.M)({type:ge,json:{write:!0}})],me.prototype,"filterTypes",void 0),me=fe=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterAuthoringInfoBlock")],me);const ve=me;var _e;const be=s.A.ofType(ve);let we=_e=class extends ue{constructor(){super(...arguments),this.type="checkbox"}clone(){return new _e({filterBlocks:(0,l.o8)(this.filterBlocks)})}};(0,i._)([(0,c.M)({type:["checkbox"]})],we.prototype,"type",void 0),(0,i._)([(0,c.M)({type:be,json:{write:!0}})],we.prototype,"filterBlocks",void 0),we=_e=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterAuthoringInfoCheckbox")],we);const Me=we;let Se=class extends ae.oY{};(0,i._)([(0,c.M)({readOnly:!0,json:{read:!1}})],Se.prototype,"type",void 0),Se=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterMode")],Se);const xe=Se;var Fe;let Ae=Fe=class extends xe{constructor(){super(...arguments),this.type="solid"}clone(){return new Fe}};(0,i._)([(0,c.M)({type:["solid"],readOnly:!0,json:{write:!0}})],Ae.prototype,"type",void 0),Ae=Fe=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterModeSolid")],Ae);const Oe=Ae;var je,Te=r(51734);let Le=je=class extends xe{constructor(){super(...arguments),this.type="wire-frame",this.edges=null}clone(){return new je({edges:(0,l.o8)(this.edges)})}};(0,i._)([(0,F.e)({wireFrame:"wire-frame"})],Le.prototype,"type",void 0),(0,i._)([(0,c.M)(Te.J)],Le.prototype,"edges",void 0),Le=je=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterModeWireFrame")],Le);const Ie=Le;var Re;let Pe=Re=class extends xe{constructor(){super(...arguments),this.type="x-ray"}clone(){return new Re}};(0,i._)([(0,c.M)({type:["x-ray"],readOnly:!0,json:{write:!0}})],Pe.prototype,"type",void 0),Pe=Re=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterModeXRay")],Pe);const Be=Pe;var qe;const Ne={nonNullable:!0,types:{key:"type",base:xe,typeMap:{solid:Oe,"wire-frame":Ie,"x-ray":Be}},json:{read:e=>{switch(e?.type){case"solid":return Oe.fromJSON(e);case"wireFrame":return Ie.fromJSON(e);case"x-ray":return Be.fromJSON(e);default:return}},write:{enabled:!0,isRequired:!0}}};let Ee=qe=class extends ae.oY{constructor(){super(...arguments),this.filterExpression=null,this.filterMode=new Oe,this.title=""}clone(){return new qe({filterExpression:this.filterExpression,filterMode:(0,l.o8)(this.filterMode),title:this.title})}};(0,i._)([(0,c.M)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Ee.prototype,"filterExpression",void 0),(0,i._)([(0,c.M)(Ne)],Ee.prototype,"filterMode",void 0),(0,i._)([(0,c.M)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Ee.prototype,"title",void 0),Ee=qe=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterBlock")],Ee);const Ce=Ee;var ke;const $e=s.A.ofType(Ce);let Qe=ke=class extends ae.oY{constructor(){super(...arguments),this.description=null,this.filterBlocks=null,this.id=(0,pe.lk)(),this.name=null}clone(){return new ke({description:this.description,filterBlocks:(0,l.o8)(this.filterBlocks),id:this.id,name:this.name,filterAuthoringInfo:(0,l.o8)(this.filterAuthoringInfo)})}};(0,i._)([(0,c.M)({type:String,json:{write:!0}})],Qe.prototype,"description",void 0),(0,i._)([(0,c.M)({type:$e,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"filterBlocks",void 0),(0,i._)([(0,c.M)({types:{key:"type",base:ue,typeMap:{checkbox:Me}},json:{read:e=>"checkbox"===e?.type?Me.fromJSON(e):null,write:!0}})],Qe.prototype,"filterAuthoringInfo",void 0),(0,i._)([(0,c.M)({type:String,constructOnly:!0,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"id",void 0),(0,i._)([(0,c.M)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"name",void 0),Qe=ke=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilter")],Qe);const ze=Qe;let De=class extends ae.oY{constructor(){super(...arguments),this.fieldName=null,this.modelName=null,this.label=null,this.min=null,this.max=null,this.mostFrequentValues=null,this.subLayerIds=null}};(0,i._)([(0,c.M)({type:String})],De.prototype,"fieldName",void 0),(0,i._)([(0,c.M)({type:String})],De.prototype,"modelName",void 0),(0,i._)([(0,c.M)({type:String})],De.prototype,"label",void 0),(0,i._)([(0,c.M)({type:Number})],De.prototype,"min",void 0),(0,i._)([(0,c.M)({type:Number})],De.prototype,"max",void 0),(0,i._)([(0,c.M)({json:{read:e=>Array.isArray(e)&&(e.every((e=>"string"==typeof e))||e.every((e=>"number"==typeof e)))?e.slice():null}})],De.prototype,"mostFrequentValues",void 0),(0,i._)([(0,c.M)({type:[Number]})],De.prototype,"subLayerIds",void 0),De=(0,i._)([(0,f.$)("esri.layers.support.BuildingSummaryStatistics.BuildingFieldStatistics")],De);let Ge=class extends(S.A.LoadableMixin((0,x.g)(ae.oY))){constructor(){super(...arguments),this.url=null}get fields(){return this.loaded||"loading"===this.loadStatus?this._get("fields"):(p.A.getLogger(this).error("building summary statistics are not loaded"),null)}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._fetchService(t)),Promise.resolve(this)}async _fetchService(e){const t=(await(0,w.A)(this.url,{query:{f:"json"},responseType:"json",signal:e})).data;this.read(t,{origin:"service"})}};(0,i._)([(0,c.M)({constructOnly:!0,type:String})],Ge.prototype,"url",void 0),(0,i._)([(0,c.M)({readOnly:!0,type:[De],json:{read:{source:"summary"}}})],Ge.prototype,"fields",null),Ge=(0,i._)([(0,f.$)("esri.layers.support.BuildingSummaryStatistics")],Ge);const Je=Ge;var Ke=r(24212);const Ue=s.A.ofType(ze),Ve=(0,l.o8)(W.sublayersProperty),Ye=Ve.json?.origins;Ye&&(Ye["web-scene"]={type:[K],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}},Ye["portal-item"]={type:[K],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}});let Ze=class extends((0,ne.w6)((0,te.b)((0,ie.q)((0,se.A)((0,oe.j)((0,y.P)((0,re.d)((0,ee.p)(m.A))))))))){constructor(e){super(e),this.operationalLayerType="BuildingSceneLayer",this.allSublayers=new o.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>"building-group"===e.type?e.sublayers:null}),this.sublayers=null,this._allSublayerOverrides=null,this.filters=new Ue,this.activeFilterId=null,this.summaryStatistics=null,this.outFields=null,this.legendEnabled=!0,this.type="building-scene"}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e??{}}destroy(){this.allSublayers.destroy()}readSublayers(e,t,r){const i=W.readSublayers(e,t,r);return W.forEachSublayer(i,(e=>e.layer=this)),this._allSublayerOverrides&&(function(e,t){t.forEach((t=>He(e,t)))}(i,this._allSublayerOverrides),this._allSublayerOverrides=null),i}write(e,t){return e=super.write(e,t),!t||"web-scene"!==t.origin&&"portal-item"!==t.origin||(this.sublayers?function(e,t,r){const i=[];W.forEachSublayer(e,(e=>{const t=e.write({},r);Object.keys(t).length>1&&i.push(t)})),i.length>0&&(t.sublayers=i)}(this.sublayers,e,t):this._allSublayerOverrides&&function(e,t,r){const i=r?.origin&&e.get(r.origin);i&&(t.sublayers=[],i.overrides.forEach((e=>{t.sublayers.push((0,l.o8)(e))})))}(this._allSublayerOverrides,e,t)),e}read(e,t){if(super.read(e,t),("web-scene"===t?.origin||"portal-item"===t?.origin)&&Array.isArray(e?.sublayers)){const r=function(e,t){const r=new Map;for(const i of e)null!=i&&"object"==typeof i&&"number"==typeof i.id?r.set(i.id,i):t.messages?.push(new n.A("building-scene-layer:invalid-sublayer-override","Invalid value for sublayer override. Not an object or no id specified.",{value:i}));return{overrides:r,context:t}}(e.sublayers,t);this.sublayers?He(this.sublayers,r):(this._allSublayerOverrides??=new Map,this._allSublayerOverrides.set(t.origin,r))}}readSummaryStatistics(e,t){if("string"==typeof t.statisticsHRef){const e=(0,d.fj)(this.parsedUrl?.path,t.statisticsHRef);return new Je({url:e})}return null}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.QP).then((()=>this._fetchService(t))).then((()=>this._fetchAssociatedFeatureService(t)));return this.addResolvingPromise(r),Promise.resolve(this)}loadAll(){return(0,a.g)(this,(e=>{W.forEachSublayer(this.sublayers,(t=>{"building-group"!==t.type&&e(t)})),this.summaryStatistics&&e(this.summaryStatistics)}))}async saveAs(e,t){return this._debouncedSaveOperations(ne.Xh.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"};return this._debouncedSaveOperations(ne.Xh.SAVE,e)}validateLayer(e){if(!e.layerType||"Building"!==e.layerType)throw new n.A("buildingscenelayer:layer-type-not-supported","BuildingSceneLayer does not support this layer type",{layerType:e.layerType})}_getTypeKeywords(){return["Building"]}async _fetchAssociatedFeatureService(e){try{const{portalItem:t}=await(0,le.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e});this.associatedFeatureServiceItem=t}catch(e){p.A.getLogger(this).warn("Associated feature service item could not be loaded",e)}}_validateElevationInfo(){const e=this.elevationInfo,t="Building scene layers";(0,Ke.XF)(p.A.getLogger(this),(0,Ke.B)(t,"absolute-height",e)),(0,Ke.XF)(p.A.getLogger(this),(0,Ke.tW)(t,e))}};function He(e,t){const{overrides:r,context:i}=t;W.forEachSublayer(e,(e=>e.read(r.get(e.id),i)))}(0,i._)([(0,c.M)({type:["BuildingSceneLayer"]})],Ze.prototype,"operationalLayerType",void 0),(0,i._)([(0,c.M)({readOnly:!0})],Ze.prototype,"allSublayers",void 0),(0,i._)([(0,c.M)(Ve)],Ze.prototype,"sublayers",void 0),(0,i._)([(0,h.w)("service","sublayers")],Ze.prototype,"readSublayers",null),(0,i._)([(0,c.M)({type:Ue,nonNullable:!0,json:{write:!0}})],Ze.prototype,"filters",void 0),(0,i._)([(0,c.M)({type:String,json:{write:!0}})],Ze.prototype,"activeFilterId",void 0),(0,i._)([(0,c.M)({readOnly:!0,type:Je})],Ze.prototype,"summaryStatistics",void 0),(0,i._)([(0,h.w)("summaryStatistics",["statisticsHRef"])],Ze.prototype,"readSummaryStatistics",null),(0,i._)([(0,c.M)({type:[String],json:{read:!1}})],Ze.prototype,"outFields",void 0),(0,i._)([(0,c.M)(L.Fm)],Ze.prototype,"fullExtent",void 0),(0,i._)([(0,c.M)(L.fV)],Ze.prototype,"legendEnabled",void 0),(0,i._)([(0,c.M)({type:["show","hide","hide-children"]})],Ze.prototype,"listMode",void 0),(0,i._)([(0,c.M)((0,L.Qo)(g.A))],Ze.prototype,"spatialReference",void 0),(0,i._)([(0,c.M)(L.Yj)],Ze.prototype,"elevationInfo",null),(0,i._)([(0,c.M)({json:{read:!1},readOnly:!0})],Ze.prototype,"type",void 0),(0,i._)([(0,c.M)()],Ze.prototype,"associatedFeatureServiceItem",void 0),Ze=(0,i._)([(0,f.$)("esri.layers.BuildingSceneLayer")],Ze);const Xe=Ze},33143:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(90237),s=r(69540),o=r(25482),n=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),a=r(40608),p=r(43937),y=r(80451),u=r(29005);let d=class extends((0,s.O)(o.oY)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,y.rS)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i._)([(0,n.M)({json:{write:!0}})],d.prototype,"id",void 0),(0,i._)([(0,n.M)({json:{write:!0}})],d.prototype,"name",void 0),(0,i._)([(0,n.M)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i._)([(0,l.w)("domains")],d.prototype,"readDomains",null),(0,i._)([(0,p.K)("domains")],d.prototype,"writeDomains",null),(0,i._)([(0,n.M)({type:[u.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i._)([(0,a.$)("esri.layers.support.FeatureType")],d);const c=d},58501:(e,t,r)=>{r.d(t,{q:()=>s});var i=r(62815);function s(e,t,r){if(!r?.features||!r.hasZ)return;const s=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(null!=s)for(const e of r.features)s(e.geometry)}},22671:(e,t,r)=>{r.d(t,{A:()=>_});var i,s=r(90237),o=r(59456),n=r(52106),l=r(66552),a=r(25482),p=r(4718),y=r(10107),u=(r(44208),r(53966),r(36005)),d=r(40608),c=r(43937),h=r(16930),f=r(65864),g=r(20437);const m=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends a.oY{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=h.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const s=e[t],o=n.A.fromJSON(s),l=s.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=r);const a=s.aggregateGeometries,p=o.aggregateGeometries;if(a&&null!=p)for(const e in p){const t=p[e],i=a[e],s=i?.spatialReference;null==t||s||(t.spatialReference=r)}i.push(o)}return i}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);const{features:s}=this;if(s)for(const e of s)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,f.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=h.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,p.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,s]}=e,o=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((s-e)/r)));for(let e=0,t=o.length;e<t;e++)n?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,s],scale:[o,n]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,(e=>e*o+i),(e=>s-e*n),l,a);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,s;const o=[];for(let n=0,l=e.length;n<l;n++){const l=e[n];if(n>0){const e=t(l[0]),n=r(l[1]);e===i&&n===s||(o.push([e-i,n-s]),i=e,s=n)}else i=t(l[0]),s=r(l[1]),o.push([i,s])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,f.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,o=i.length;e<o;e++){const o=i[e],n=this._quantizePoints(o,t,r);n&&s.push(n)}return s.length>0?((0,f.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,s){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,f.Bi)(e)?e.rings:e.paths;let n,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];for(let e=0,s=i.length;e<s;e++){const s=i[e];e>0?(n+=s[0],l+=s[1]):(n=s[0],l=s[1]),s[0]=t(n),s[1]=r(l)}}if(i&&s)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=s(r[3])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let n,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(n+=i[0],l+=i[1]):(n=i[0],l=i[1]),i[0]=t(n),i[1]=r(l)}if(i&&s)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2]),t[3]=s(t[3])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=s(t[2])}}:null}};(0,s._)([(0,y.M)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,s._)([(0,y.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,y.M)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,s._)([(0,u.w)("features")],v.prototype,"readFeatures",null),(0,s._)([(0,y.M)({type:[g.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,s._)([(0,y.M)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,s._)([(0,c.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,s._)([(0,y.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,s._)([(0,y.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,s._)([(0,y.M)({types:o.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,s._)([(0,u.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,s._)([(0,y.M)({type:h.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,s._)([(0,c.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,s._)([(0,y.M)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,s._)([(0,d.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const _=v}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9748],{21818:(e,t,r)=>{function n(e){}r.d(t,{Xb:()=>n}),r(44208)},51624:(e,t,r)=>{r.d(t,{A:()=>c});var n,s,o=r(44208),i=r(93687);(s=n||(n={}))[s.varint=0]="varint",s[s.fixed64=1]="fixed64",s[s.delimited=2]="delimited",s[s.fixed32=5]="fixed32",s[s.unknown=99]="unknown";const a=4294967296,l=new TextDecoder("utf-8"),u=(0,o.A)("safari")||(0,o.A)("ios")?6:(0,o.A)("ff")?12:32;class c{constructor(e,t,r=0,s=(e?e.byteLength:0)){this._tag=0,this._dataType=n.unknown,this._init(e,t,r,s)}_init(e,t,r,n){this._data=e,this._dataView=t,this._pos=r,this._end=n}asUnsafe(){return this}clone(){return new c(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*a;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*a;return this._skip(8),r}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,n){const s=this.getMessage(),o=e(s,t,r,n);return s.release(),o}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){const e=this._getLength(),t=c.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){c.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case n.varint:this._decodeVarint();break;case n.fixed64:this._skip(8);break;case n.delimited:this._skip(this._getLength());break;case n.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,r=0,n=0;if(this._end-t>=10)do{if(n=e[t++],r|=127&n,!(128&n))break;if(n=e[t++],r|=(127&n)<<7,!(128&n))break;if(n=e[t++],r|=(127&n)<<14,!(128&n))break;if(n=e[t++],r|=(127&n)<<21,!(128&n))break;if(n=e[t++],r+=268435456*(127&n),!(128&n))break;if(n=e[t++],r+=34359738368*(127&n),!(128&n))break;if(n=e[t++],r+=4398046511104*(127&n),!(128&n))break;if(n=e[t++],r+=562949953421312*(127&n),!(128&n))break;if(n=e[t++],r+=72057594037927940*(127&n),!(128&n))break;if(n=e[t++],r+=0x8000000000000000*(127&n),!(128&n))break;throw new Error("Varint too long!")}while(0);else{let s=1;for(;t!==this._end&&(n=e[t],128&n);)++t,r+=(127&n)*s,s*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=n*s}return this._pos=t,r}_decodeSVarint(){const e=this._data;let t,r=0,n=0;const s=1&e[this._pos];if(n=e[this._pos++],r|=127&n,!(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<7,!(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<14,!(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<21,!(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r+=268435456*(127&n),!(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r+=34359738368*(127&n),!(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r+=4398046511104*(127&n),!(128&n))return s?-(r+1)/2:r/2;if(t=BigInt(r),n=e[this._pos++],t+=0x2000000000000n*BigInt(127&n),!(128&n))return Number(s?-(t+1n)/2n:t/2n);if(n=e[this._pos++],t+=0x100000000000000n*BigInt(127&n),!(128&n))return Number(s?-(t+1n)/2n:t/2n);if(n=e[this._pos++],t+=0x8000000000000000n*BigInt(127&n),!(128&n))return Number(s?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(this._dataType!==n.delimited)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>u){const n=e.subarray(t,r);return l.decode(n)}let n="",s="";for(let o=t;o<r;++o){const t=e[o];128&t?s+="%"+t.toString(16):(n+=decodeURIComponent(s)+String.fromCharCode(t),s="")}return s.length&&(n+=decodeURIComponent(s)),n}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}}c.pool=new i.A(c,void 0,(e=>{e._data=null,e._dataView=null}))},70328:(e,t,r)=>{r.d(t,{BI:()=>T,Ej:()=>g,Hq:()=>u,Ie:()=>b,Jt:()=>w,Ne:()=>y,RF:()=>a,_F:()=>f,aI:()=>I,fA:()=>o,gX:()=>p,hZ:()=>_,iT:()=>l,is:()=>k,qv:()=>M,vI:()=>m,v_:()=>x,vt:()=>s,w1:()=>i});var n=r(5443);function s(e=x){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,n,o,i,a=s()){return a[0]=e,a[1]=t,a[2]=r,a[3]=n,a[4]=o,a[5]=i,a}function i(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new n.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function u(e,t,r=0,n=t.length/3){let s=e[0],o=e[1],i=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)s=Math.min(s,t[r+3*e]),o=Math.min(o,t[r+3*e+1]),i=Math.min(i,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=s,e[1]=o,e[2]=i,e[3]=a,e[4]=l,e[5]=u}function c(e){return e[0]>=e[3]?0:e[3]-e[0]}function h(e){return e[1]>=e[4]?0:e[4]-e[1]}function d(e){return e[2]>=e[5]?0:e[5]-e[2]}function f(e){const t=c(e),r=d(e),n=h(e);return Math.sqrt(t*t+r*r+n*n)}function p(e,t=[0,0,0]){return t[0]=e[0]+c(e)/2,t[1]=e[1]+h(e)/2,t[2]=e[2]+d(e)/2,t}function g(e,t=[0,0,0]){return t[0]=c(e),t[1]=h(e),t[2]=d(e),t}function y(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function m(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function _(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function b(e){return e?_(e,M):s(M)}function w(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function T(e,t,r,n,s){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function k(e){return 6===e.length}function I(e,t,r){if(null==e||null==t)return e===t;if(!k(e)||!k(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(19419);const M=[1/0,1/0,1/0,-1/0,-1/0,-1/0],x=[0,0,0,0,0,0];s()},65864:(e,t,r)=>{r.d(t,{$B:()=>g,Bi:()=>f,Rg:()=>d,U9:()=>c,ZC:()=>u,fT:()=>h,rS:()=>p,xD:()=>m});var n=r(5443),s=r(91075),o=r(48526),i=r(86738),a=r(39829),l=r(82799);function u(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function c(e){return void 0!==e.points}function h(e){return void 0!==e.x&&void 0!==e.y}function d(e){return void 0!==e.paths}function f(e){return void 0!==e.rings}function p(e){return null==e?null:e instanceof s.A?e:h(e)?i.A.fromJSON(e):d(e)?l.A.fromJSON(e):f(e)?a.A.fromJSON(e):c(e)?o.A.fromJSON(e):u(e)?n.A.fromJSON(e):null}function g(e){return e?h(e)?"esriGeometryPoint":d(e)?"esriGeometryPolyline":f(e)?"esriGeometryPolygon":u(e)?"esriGeometryEnvelope":c(e)?"esriGeometryMultipoint":null:null}const y={esriGeometryPoint:i.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:o.A};function m(e){return e&&y[e]||null}},62577:(e,t,r)=>{function n(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]:[0,0,0,0]}:null}function s(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;const{originPosition:t,scale:r,translate:n}=e,s=r[0]??1,o=r[1]??1;return{originPosition:"lowerLeft",scale:[s,"lowerLeft"===t?o:-o,r[2]??1,r[3]??1],translate:[n[0]??0,n[1]??0,n[2]??0,n[3]??0]}}function o({scale:e,translate:t},r){return r*e[0]+t[0]}function i({scale:e,translate:t},r){return r*e[1]+t[1]}function a({scale:e,translate:t},r){return(r??0)*e[2]+t[2]}function l({scale:e,translate:t},r){return r?r*e[3]+t[3]:0}function u(e,t){return e&&t?f:e&&!t?h:!e&&t?d:c}r.d(t,{$X:()=>_,Gy:()=>g,P5:()=>b,Q1:()=>s,SW:()=>y,Tr:()=>m,VV:()=>n}),r(65864);const c=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let s=o(e,n[0]),a=i(e,n[1]);r[0]=[s,a];const{scale:l,originPosition:u}=e,c=l[0],h="lowerLeft"===u?l[1]:-l[1];for(let e=1;e<t.length;e++){const[n,o]=t[e];s+=c*n,a+=h*o,r[e]=[s,a]}return r},h=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let s=o(e,n[0]),l=i(e,n[1]);r[0]=[s,l,a(e,n[2])];const{scale:u,originPosition:c}=e,h=u[0],d="lowerLeft"===c?u[1]:-u[1];for(let n=1;n<t.length;n++){const[o,i,u]=t[n];s+=h*o,l+=d*i,r[n]=[s,l,a(e,u)]}return r},d=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let s=o(e,n[0]),a=i(e,n[1]);r[0]=[s,a,l(e,n[2])];const{scale:u,originPosition:c}=e,h=u[0],d="lowerLeft"===c?u[1]:-u[1];for(let n=1;n<t.length;n++){const[o,i,u]=t[n];s+=h*o,a+=d*i,r[n]=[s,a,l(e,u)]}return r},f=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let s=o(e,n[0]),u=i(e,n[1]);r[0]=[s,u,a(e,n[2]),l(e,n[3])];const{scale:c,originPosition:h}=e,d=c[0],f="lowerLeft"===h?c[1]:-c[1];for(let n=1;n<t.length;n++){const[o,i,c,h]=t[n];s+=d*o,u+=f*i,r[n]=[s,u,a(e,c),l(e,h)]}return r};function p(e,t,r){const n=new Array(r.length);for(let s=0;s<r.length;s++)n[s]=t(e,r[s]);return n}function g(e,t,r){const n=s(e);return t.x=function({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}(n,r.x),t.y=function({scale:e,translate:t},r){return Math.round((r-t[1])/e[1])}(n,r.y),null!=r.z&&(t.z=function({scale:e,translate:t},r){return Math.round(((r??0)-t[2])/e[2])}(n,r.z)),null!=r.m&&(t.m=function({scale:e,translate:t},r){return r?Math.round((r-t[3])/e[3]):0}(n,r.m)),t}function y(e,t,r,n=r?.hasZ??!1,o=r?.hasM??!1){if(null!=r){const i=s(e);t.points=u(n,o)(i,r.points),t.hasZ=n,t.hasM=o}return t}function m(e,t,r,n=null!=r?.z,u=null!=r?.m){if(null==r)return t;const c=s(e);return t.x=o(c,r.x),t.y=i(c,r.y),n&&(t.z=a(c,r.z)),u&&(t.m=l(c,r.m)),t}function _(e,t,r,n=r?.hasZ??!1,o=r?.hasM??!1){if(null!=r){const i=s(e);t.rings=p(i,u(n,o),r.rings),t.hasZ=n,t.hasM=o}return t}function b(e,t,r,n=r?.hasZ??!1,o=r?.hasM??!1){if(null!=r){const i=s(e);t.paths=p(i,u(n,o),r.paths),t.hasZ=n,t.hasM=o}return t}},50498:(e,t,r)=>{r.d(t,{Y:()=>o,g:()=>s});var n=r(66552);const s=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),o=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},62815:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(83047),s=r(73941),o=r(21325);function i(e,t,r){if(null==t||null==r||r.vcsWkid||(0,o.aI)(t,r)||(0,s.xP)(t)||(0,s.xP)(r))return null;const i=(0,n.G9)(t)/(0,n.G9)(r);if(1===i)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,i);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return null}}},43334:(e,t,r)=>{r.d(t,{N3:()=>o,Om:()=>s});var n=r(92722);class s{constructor(e=null,t={},r,n){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=n,this.displayId=0,this.geohashX=0,this.geohashY=0}static fromJSON(e,t){const r=e.geometry?n.A.fromJSON(e.geometry):null,o=e.centroid?n.A.fromJSON(e.centroid):null,i=e.attributes[t];return new s(r,e.attributes,o,i)}weakClone(){const e=new s(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}clone(){const e=this.geometry?.clone(),t=new s(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function o(e){return!!e.geometry?.coords?.length}},58512:(e,t,r)=>{r.d(t,{A:()=>n});class n{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new n;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},92722:(e,t,r)=>{r.d(t,{A:()=>n});class n{constructor(e=[],t=[]){this.lengths=e??[],this.coords=t??[]}static fromJSON(e){return new n(e.lengths,e.coords)}static fromRect(e){const[t,r,s,o]=e,i=s-t,a=o-r;return new n([5],[t,r,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const n=this.lengths[r];for(let r=0;r<n;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=n}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let n=0;for(const e of r){for(let r=1;r<e;r++)t[2*(n+r)]+=t[2*(n+r)-2],t[2*(n+r)+1]+=t[2*(n+r)-1];n+=e}return e}clone(e){if(0===this.lengths.length)return new n([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce(((e,t)=>e+t))),r=this.coords.slice(0,t);return e?(e.set(r),new n(this.lengths,e)):new n(Array.from(this.lengths),Array.from(r))}}},90708:(e,t,r)=>{r.d(t,{B2:()=>T,BW:()=>C,Ch:()=>ne,DF:()=>I,Di:()=>B,E2:()=>j,IE:()=>w,Nl:()=>H,Q4:()=>se,Rk:()=>ie,Ux:()=>z,Ye:()=>D,ZF:()=>W,eY:()=>$,jH:()=>Q,jQ:()=>re,kz:()=>K,oN:()=>E,q3:()=>X,qK:()=>q,qN:()=>V,z5:()=>U,zv:()=>J});var n=r(49186),s=r(53966),o=r(97768),i=r(70328),a=r(19419),l=r(65864),u=r(43334),c=r(58512),h=r(92722);function d(e,t){return e?t?4:3:t?3:2}const f=()=>s.A.getLogger("esri.layers.graphics.featureConversionUtils"),p={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryEnvelope:0},g=(e,t,r,n,s,o)=>{e[r]=s,e[r+1]=o},y=(e,t,r,n,s,o)=>{e[r]=s,e[r+1]=o,e[r+2]=t[n+2]},m=(e,t,r,n,s,o)=>{e[r]=s,e[r+1]=o,e[r+2]=t[n+3]},_=(e,t,r,n,s,o)=>{e[r]=s,e[r+1]=o,e[r+2]=t[n+2],e[r+3]=t[n+3]};function b(e,t,r,n){if(e){if(r)return t&&n?_:y;if(t&&n)return m}else if(t&&n)return y;return g}function w({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function T({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function k({scale:e,translate:t},r,n){return r*e[n]+t[n]}function I(e,t,r){return e?t?r?N(e):v(e):r?G(e):M(e):null}function M(e){const t=e.coords;return{x:t[0],y:t[1]}}function x(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function v(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function F(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function G(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function P(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function N(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function A(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function S(e,t){return e&&t?A:e?F:t?P:x}function V(e,t,r=S(null!=t.z,null!=t.m)){return r(e,t)}function q(e,t,r){if(null==e)return null;const n=d(t,r),s=[];for(let t=0;t<e.coords.length;t+=n){const r=[];for(let s=0;s<n;s++)r.push(e.coords[t+s]);s.push(r)}return t?r?{points:s,hasZ:t,hasM:r}:{points:s,hasZ:t}:r?{points:s,hasM:r}:{points:s}}function R(e,t,r=d(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const n=e.coords;let s=0;for(const e of t.points)for(let t=0;t<r;t++)n[s++]=e[t];return e}function C(e,t,r){if(!e)return null;const n=d(t,r),{coords:s,lengths:o}=e,i=[];let a=0;for(const e of o){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(s[a++]);t.push(e)}i.push(t)}return t?r?{paths:i,hasZ:t,hasM:r}:{paths:i,hasZ:t}:r?{paths:i,hasM:r}:{paths:i}}function L(e,t,r=d(t.hasZ,t.hasM)){const{lengths:n,coords:s}=e;let o=0;for(const e of t.paths){for(const t of e)for(let e=0;e<r;e++)s[o++]=t[e];n.push(e.length)}return e}function U(e,t,r){if(!e)return null;const n=d(t,r),{coords:s,lengths:o}=e,i=[];let a=0;for(const e of o){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(s[a++]);t.push(e)}i.push(t)}return t?r?{rings:i,hasZ:t,hasM:r}:{rings:i,hasZ:t}:r?{rings:i,hasM:r}:{rings:i}}function D(e,t,r=t.hasZ,n=t.hasM){return function(e,t,r,n){const s=d(r,n),{lengths:o,coords:i}=e;let a=0;ae(e);for(const e of t){for(const t of e)for(let e=0;e<s;e++)i[a++]=t[e];o.push(e.length)}return e}(e,t.rings,r,n)}const O=[],Z=[];function j(e,t,r,n,s){O[0]=e;const[o]=B(Z,O,t,r,n,s);return le(O),le(Z),o}function B(e,t,r,s,o,i){if(le(e),!r){for(const r of t){const t=i?r.attributes[i]:void 0;e.push(new u.Om(null,r.attributes,null,t))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,n,s){const o=S(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?o(new h.A,r):null;e.push(new u.Om(t,n,null,s?n[s]:void 0))}return e}(e,t,s,o,i);case"esriGeometryMultipoint":return function(e,t,r,n,s){const o=d(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?R(new h.A,r,o):null;e.push(new u.Om(t,n,null,s?n[s]:void 0))}return e}(e,t,s,o,i);case"esriGeometryPolyline":return function(e,t,r,n,s){const o=d(r,n);for(const{geometry:r,attributes:n,centroid:i}of t){const t=null!=r?L(new h.A,r,o):null,a=null!=i?V(new h.A,i):null;e.push(new u.Om(t,n,a,s?n[s]:void 0))}return e}(e,t,s,o,i);case"esriGeometryPolygon":return function(e,t,r,n,s){for(const{geometry:o,centroid:i,attributes:a}of t){const t=null!=o?D(new h.A,o,r,n):null,l=s?a[s]:void 0;null!=i?e.push(new u.Om(t,a,x(new h.A,i),l)):e.push(new u.Om(t,a,null,l))}return e}(e,t,s,o,i);default:f().error("convertToFeatureSet:unknown-geometry",new n.A(`Unable to parse unknown geometry type '${r}'`)),le(e)}return e}function E(e,t,r,n){Z[0]=e,Y(O,Z,t,r,n);const s=O[0];return le(O),le(Z),s}function z(e,t,r){if(null==e)return null;const s=new h.A;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==r&&(r=e.hasM),(0,l.fT)(e)?S(null!=t?t:null!=e.z,null!=r?r:null!=e.m)(s,e):(0,l.Bi)(e)?D(s,e,t,r):(0,l.Rg)(e)?L(s,e,d(t,r)):(0,l.U9)(e)?R(s,e,d(t,r)):void f().error("convertFromGeometry:unknown-geometry",new n.A(`Unable to parse unknown geometry type '${e}'`))}function J(e,t,r,s){const o=e&&("coords"in e?e:e.geometry);if(null==o)return null;switch(t){case"esriGeometryPoint":{let e=M;return r&&s?e=N:r?e=v:s&&(e=G),e(o)}case"esriGeometryMultipoint":return q(o,r,s);case"esriGeometryPolyline":return C(o,r,s);case"esriGeometryPolygon":return U(o,r,s);default:return f().error("convertToGeometry:unknown-geometry",new n.A(`Unable to parse unknown geometry type '${t}'`)),null}}function Y(e,t,r,s,o){if(le(e),null==r)return function(e,t){for(const r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,n){let s=M;r&&n?s=N:r?s=v:n&&(s=G);for(const r of t){const{geometry:t,attributes:n}=r,o=null!=t?s(t):null;e.push({attributes:n,geometry:o})}return e}(e,t,s,o);case"esriGeometryMultipoint":return function(e,t,r,n){for(const{geometry:s,attributes:o}of t)e.push({attributes:o,geometry:null!=s?q(s,r,n):null});return e}(e,t,s,o);case"esriGeometryPolyline":return function(e,t,r,n){for(const{geometry:s,attributes:o}of t)e.push({attributes:o,geometry:null!=s?C(s,r,n):null});return e}(e,t,s,o);case"esriGeometryPolygon":return function(e,t,r,n){for(const{geometry:s,attributes:o,centroid:i}of t){const t=null!=s?U(s,r,n):null;if(null!=i){const r=M(i);e.push({attributes:o,centroid:r,geometry:t})}else e.push({attributes:o,geometry:t})}return e}(e,t,s,o);default:f().error("convertToFeatureSet:unknown-geometry",new n.A(`Unable to parse unknown geometry type '${r}'`))}return e}function W(e){const{objectIdFieldName:t,spatialReference:r,transform:n,fields:s,hasM:o,hasZ:i,features:a,geometryType:l,exceededTransferLimit:u,uniqueIdField:c,queryGeometry:h,queryGeometryType:d}=e,f={features:Y([],a,l,i,o),fields:s,geometryType:l,objectIdFieldName:t,spatialReference:r,uniqueIdField:c,queryGeometry:J(h,d,!1,!1)};return n&&(f.transform=n),u&&(f.exceededTransferLimit=u),o&&(f.hasM=o),i&&(f.hasZ=i),f}function X(e,t){const r=new c.A,{hasM:s,hasZ:o,features:i,objectIdFieldName:a,spatialReference:l,geometryType:u,exceededTransferLimit:h,transform:d,fields:p}=e;return p&&(r.fields=p),r.geometryType=u??null,r.objectIdFieldName=a??t??null,r.spatialReference=l??null,r.objectIdFieldName?(i&&B(r.features,i,u,o,s,r.objectIdFieldName),h&&(r.exceededTransferLimit=h),s&&(r.hasM=s),o&&(r.hasZ=o),d&&(r.transform=d),r):(f().error(new n.A("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),r)}function $(e){const{transform:t,features:r,hasM:n,hasZ:s}=e;if(!t)return e;for(const e of r)null!=e.geometry&&ne(e.geometry,e.geometry,n,s,t),null!=e.centroid&&ne(e.centroid,e.centroid,n,s,t);return e.transform=null,e}function Q(e,t){const{geometryType:r,features:n,hasM:s,hasZ:o}=t;if(!e)return t;for(let t=0;t<n.length;t++){const i=n[t],a=i.weakClone();a.geometry=new h.A,H(a.geometry,i.geometry,s,o,r,e),i.centroid&&(a.centroid=new h.A,H(a.centroid,i.centroid,s,o,"esriGeometryPoint",e)),n[t]=a}return t.transform=e,t}function H(e,t,r,n,s,o,i=r,a=n){if(ae(e),!t?.coords.length)return null;const l=p[s],{coords:u,lengths:c}=t,h=d(r,n),f=d(r&&i,n&&a),g=b(r,n,i,a);if(!c.length)return g(e.coords,u,0,0,w(o,u[0]),T(o,u[1])),ae(e,h,0),e;let y,m,_,k,I=0,M=0,x=M;for(const t of c){if(t<l)continue;let r=0;M=x,_=y=w(o,u[I]),k=m=T(o,u[I+1]),g(e.coords,u,M,I,_,k),r++,I+=h,M+=f;for(let n=1;n<t;n++,I+=h)_=w(o,u[I]),k=T(o,u[I+1]),_===y&&k===m||(g(e.coords,u,M,I,_-y,k-m),M+=f,r++,y=_,m=k);r>=l&&(e.lengths.push(r),x=M)}return le(e.coords,x),e.coords.length?e:null}function K(e,t,r,n,s,o,i=r,a=n){if(ae(e),!t?.coords.length)return null;const l=p[s],{coords:u,lengths:c}=t,h=d(r,n),f=d(r&&i,n&&a),g=b(r,n,i,a);if(!c.length)return g(e.coords,u,0,0,u[0],u[1]),ae(e,h,0),e;let y=0;const m=o*o;for(const t of c){if(t<l){y+=t*h;continue}const r=e.coords.length/f,n=y,s=y+(t-1)*h;g(e.coords,u,e.coords.length,n,u[n],u[n+1]),te(e.coords,u,h,m,g,n,s),g(e.coords,u,e.coords.length,s,u[s],u[s+1]);const o=e.coords.length/f-r;o>=l?e.lengths.push(o):le(e.coords,r*f),y+=t*h}return e.coords.length?e:null}function ee(e,t,r,n){const s=e[t],o=e[t+1],i=e[r],a=e[r+1],l=e[n],u=e[n+1];let c=i,h=a,d=l-c,f=u-h;if(0!==d||0!==f){const e=((s-c)*d+(o-h)*f)/(d*d+f*f);e>1?(c=l,h=u):e>0&&(c+=d*e,h+=f*e)}return d=s-c,f=o-h,d*d+f*f}function te(e,t,r,n,s,o,i){let a,l=n,u=0;for(let e=o+r;e<i;e+=r)a=ee(t,e,o,i),a>l&&(u=e,l=a);l>n&&(u-o>r&&te(e,t,r,n,s,o,u),s(e,t,e.length,u,t[u],t[u+1]),i-u>r&&te(e,t,r,n,s,u,i))}function re(e,t,r,n){if(!t?.coords?.length)return null;const s=d(r,n);let o=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY,c=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=s){const r=e[t],n=e[t+1];o=Math.min(o,r),u=Math.max(u,r),l=Math.min(l,n),c=Math.max(c,n)}}return(0,i.is)(e)?(0,i.BI)(e,o,l,u,c):(0,a.fA)(o,l,u,c,e),e}function ne(e,t,r,n,s){const{coords:i,lengths:a}=t,l=d(r,n);if(!i.length)return e!==t&&ae(e),e;(0,o.Lw)(s);const{originPosition:u,scale:c,translate:h}=s,f=ue;f.originPosition=u;const p=f.scale;p[0]=c[0]??1,p[1]=-(c[1]??1),p[2]=c[2]??1,p[3]=c[3]??1;const g=f.translate;if(g[0]=h[0]??0,g[1]=h[1]??0,g[2]=h[2]??0,g[3]=h[3]??0,!a.length){for(let t=0;t<l;++t)e.coords[t]=k(f,i[t],t);return e!==t&&ae(e,l,0),e}let y=0;for(let t=0;t<a.length;t++){const r=a[t];e.lengths[t]=r;for(let t=0;t<l;++t)e.coords[y+t]=k(f,i[y+t],t);let n=e.coords[y],s=e.coords[y+1];y+=l;for(let t=1;t<r;t++,y+=l){n+=i[y]*p[0],s+=i[y+1]*p[1],e.coords[y]=n,e.coords[y+1]=s;for(let t=2;t<l;++t)e.coords[y+t]=k(f,i[y+t],t)}}return e!==t&&ae(e,i.length,a.length),e}function se(e,t,r,n,s,o){if(ae(e),e.lengths.push(...t.lengths),r===s&&n===o)for(let r=0;r<t.coords.length;r++)e.coords.push(t.coords[r]);else{const i=d(r,n),a=b(r,n,s,o),l=t.coords;for(let t=0;t<l.length;t+=i)a(e.coords,l,e.coords.length,t,l[t],l[t+1])}return e}function oe(e,t,r,n){let s=0,o=e[n*t],i=e[n*(t+1)];for(let a=1;a<r;a++){const r=o+e[n*(t+a)],l=i+e[n*(t+a)+1],u=(r-o)*(l+i);o=r,i=l,s+=u}return.5*s}function ie(e,t){const{coords:r,lengths:n}=e;let s=0,o=0;for(let e=0;e<n.length;e++){const i=n[e];o+=oe(r,s,i,t),s+=i}return Math.abs(o)}function ae(e,t=0,r=0){le(e.lengths,r),le(e.coords,t)}function le(e,t=0){e.length!==t&&(e.length=t)}const ue={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},20437:(e,t,r)=>{r.d(t,{A:()=>y});var n,s=r(90237),o=r(66552),i=r(25482),a=r(10107),l=r(56507),u=(r(87811),r(44208),r(93223)),c=r(36005),h=r(40608),d=r(72088),f=r(98453);const p=new o.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let g=n=class extends i.oY{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?p.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,s._)([(0,a.M)({type:String,json:{write:!0}})],g.prototype,"alias",void 0),(0,s._)([(0,a.M)({type:[String,Number],json:{write:{allowNull:!0}}})],g.prototype,"defaultValue",void 0),(0,s._)([(0,a.M)()],g.prototype,"description",void 0),(0,s._)([(0,c.w)("description")],g.prototype,"readDescription",null),(0,s._)([(0,a.M)({types:d.gK,json:{read:{reader:d.rS},write:!0}})],g.prototype,"domain",void 0),(0,s._)([(0,a.M)({type:Boolean,json:{write:!0}})],g.prototype,"editable",void 0),(0,s._)([(0,a.M)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],g.prototype,"length",void 0),(0,s._)([(0,a.M)({type:String,json:{write:!0}})],g.prototype,"name",void 0),(0,s._)([(0,a.M)({type:Boolean,json:{write:!0}})],g.prototype,"nullable",void 0),(0,s._)([(0,u.e)(f.m)],g.prototype,"type",void 0),(0,s._)([(0,a.M)()],g.prototype,"valueType",void 0),(0,s._)([(0,c.w)("valueType",["description"])],g.prototype,"readValueType",null),(0,s._)([(0,a.M)({type:Boolean,json:{read:!1}})],g.prototype,"visible",void 0),g=n=(0,s._)([(0,h.$)("esri.layers.support.Field")],g);const y=g},72088:(e,t,r)=>{r.d(t,{rS:()=>M,gK:()=>I}),r(44208);var n,s=r(90237),o=r(4718),i=r(10107),a=(r(53966),r(93223)),l=r(40608),u=r(25482);r(87811);let c=n=class extends u.oY{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,s._)([(0,i.M)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,s._)([(0,i.M)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=n=(0,s._)([(0,l.$)("esri.layers.support.CodedValue")],c);const h=new(r(66552).J)({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends u.oY{constructor(e){super(e),this.name=null,this.type=null}};(0,s._)([(0,i.M)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,s._)([(0,a.e)(h)],d.prototype,"type",void 0),d=(0,s._)([(0,l.$)("esri.layers.support.Domain")],d);const f=d;var p;let g=p=class extends f{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new p({codedValues:(0,o.o8)(this.codedValues),name:this.name})}};(0,s._)([(0,i.M)({type:[c],json:{write:!0}})],g.prototype,"codedValues",void 0),(0,s._)([(0,a.e)({codedValue:"coded-value"})],g.prototype,"type",void 0),g=p=(0,s._)([(0,l.$)("esri.layers.support.CodedValueDomain")],g);const y=g;var m;r(49186);let _=m=class extends f{constructor(e){super(e),this.type="inherited"}clone(){return new m}};(0,s._)([(0,a.e)({inherited:"inherited"})],_.prototype,"type",void 0),_=m=(0,s._)([(0,l.$)("esri.layers.support.InheritedDomain")],_);const b=_;var w;let T=w=class extends f{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new w({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,s._)([(0,i.M)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],T.prototype,"maxValue",void 0),(0,s._)([(0,i.M)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],T.prototype,"minValue",void 0),(0,s._)([(0,a.e)({range:"range"})],T.prototype,"type",void 0),T=w=(0,s._)([(0,l.$)("esri.layers.support.RangeDomain")],T);const k=T,I={key:"type",base:f,typeMap:{range:T,"coded-value":y,inherited:b}};function M(e){if(!e?.type)return null;switch(e.type){case"range":return k.fromJSON(e);case"codedValue":return y.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},98453:(e,t,r)=>{r.d(t,{m:()=>n});const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},53655:(e,t,r)=>{r.d(t,{SH:()=>G,ae:()=>I,cn:()=>_});var n=r(49186),s=r(51624),o=r(92722),i=r(69418);const a=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],l=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],u=["upperLeft","lowerLeft"];function c(e){return e>=a.length?null:a[e]}function h(e){return e>=l.length?null:l[e]}function d(e){return e>=u.length?null:u[e]}function f(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function p(e,t,r){const n=e.asUnsafe(),s=t.createPointGeometry(r);for(;n.next();)switch(n.tag()){case 3:{const e=n.getUInt32(),r=n.pos()+e;let o=0;for(;n.pos()<r;)t.addCoordinatePoint(s,n.getSInt64(),o++);break}default:n.skip()}return s}function g(e,t,r){const n=e.asUnsafe(),s=t.createGeometry(r),o=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;n.next();)switch(n.tag()){case 2:{const e=n.getUInt32(),r=n.pos()+e;let o=0;for(;n.pos()<r;)t.addLength(s,n.getUInt32(),o++);break}case 3:{const e=n.getUInt32(),r=n.pos()+e;let i=0;for(t.allocateCoordinates(s);n.pos()<r;)t.addCoordinate(s,n.getSInt64(),i),i++,i===o&&(i=0);break}default:n.skip()}return s}function y(e){const t=e.asUnsafe(),r=new o.A;let n="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.coords.push(t.getSInt64());break}case 1:n=i.z[t.getEnum()];break;default:t.skip()}return{queryGeometry:r,queryGeometryType:n}}function m(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function _(e){const t=e.asUnsafe(),r={type:c(0)};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=c(t.getEnum());break;case 3:r.alias=t.getString();break;case 4:r.sqlType=h(t.getEnum());break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function b(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}function w(e,t,r,n){const s=t.createFeature(r);let o=0;for(;e.next();)switch(e.tag()){case 1:{const t=n[o++].name;s.attributes[t]=e.processMessage(m);break}case 2:s.geometry=e.processMessageWithArgs(g,t,r);break;case 4:s.centroid=e.processMessageWithArgs(p,t,r);break;default:e.skip()}return s}function T(e){const t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function k(e){const t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function I(e){const t={originPosition:d(0)},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=d(r.getEnum());break;case 2:t.scale=r.processMessage(T);break;case 3:t.translate=r.processMessage(k);break;default:r.skip()}return t}function M(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function x(e,t){const r=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:r.wkid=e.getUInt32();break;case 5:r.wkt=e.getString();break;case 2:r.latestWkid=e.getUInt32();break;case 3:r.vcsWkid=e.getUInt32();break;case 4:r.latestVcsWkid=e.getUInt32();break;default:e.skip()}return r}function v(e,t){const r=t.createFeatureResult(),n=e.asUnsafe();r.geometryType=f(t,0);let s=!1;for(;n.next();)switch(n.tag()){case 1:r.objectIdFieldName=n.getString();break;case 3:r.globalIdFieldName=n.getString();break;case 4:r.geohashFieldName=n.getString();break;case 5:r.geometryProperties=n.processMessage(M);break;case 7:r.geometryType=f(t,n.getEnum());break;case 8:r.spatialReference=n.processMessageWithArgs(x,t);break;case 10:r.hasZ=n.getBool();break;case 11:r.hasM=n.getBool();break;case 12:r.transform=n.processMessage(I);break;case 9:r.exceededTransferLimit=n.getBool();break;case 13:t.addField(r,n.processMessage(_));break;case 15:s||(t.prepareFeatures(r),s=!0),t.addFeature(r,n.processMessageWithArgs(w,t,r,r.fields));break;case 2:r.uniqueIdField=n.processMessage(b);break;default:n.skip()}return t.finishFeatureResult(r),r}function F(e,t){const r={};let n=null;for(;e.next();)switch(e.tag()){case 4:n=e.processMessageWithArgs(y);break;case 1:r.featureResult=e.processMessageWithArgs(v,t);break;default:e.skip()}return null!=n&&r.featureResult&&t.addQueryGeometry(r,n),r}function G(e,t){try{const r=2,n=new s.A(new Uint8Array(e),new DataView(e)),o={};for(;n.next();)n.tag()===r?o.queryResult=n.processMessageWithArgs(F,t):n.skip();return o}catch(e){throw new n.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},69418:(e,t,r)=>{r.d(t,{S:()=>u,z:()=>l});var n=r(83047),s=r(21325),o=r(43334),i=r(58512),a=r(92722);const l=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class u{constructor(e){this._options=e,this.geometryTypes=l,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new i.A}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e?.features||!e.hasZ||!this._options.sourceSpatialReference||!e.spatialReference||(0,s.aI)(e.spatialReference,this._options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,n.G9)(this._options.sourceSpatialReference)/(0,n.G9)(e.spatialReference);if(1!==t)for(const r of e.features){if(!(0,o.N3)(r))continue;const e=r.geometry.coords;for(let r=2;r<e.length;r+=3)e[r]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new o.Om}createSpatialReference(){return{wkid:0}}createGeometry(){return new a.A}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce(((e,t)=>e+t),0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new a.A}}},66208:(e,t,r)=>{r.d(t,{m:()=>s});var n=r(53655);function s(e,t){const r=(0,n.SH)(e,t),s=r.queryResult.featureResult,o=r.queryResult.queryGeometry,i=r.queryResult.queryGeometryType;if(s&&s.features&&s.features.length&&s.objectIdFieldName){const e=s.objectIdFieldName;for(const t of s.features)t.attributes&&(t.objectId=t.attributes[e])}return s&&(s.queryGeometry=o,s.queryGeometryType=i),s}},97367:(e,t,r)=>{r.r(t),r.d(t,{default:()=>w});var n=r(21818),s=r(24326),o=r(16930),i=r(62815),a=(r(44208),r(34275),r(70328),r(19419),r(62577),r(50498),r(20437));r(34727),r(21325);class l{constructor(e,t,r){this.uid=e,this.geometry=t,this.attributes=r,this.visible=!0,this.objectId=null,this.centroid=null}}class u{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null}}var c=r(90708);function h(e,t){return t}function d(e,t,r,n){switch(r){case 0:return y(e,t+n,0);case 1:return"lowerLeft"===e.originPosition?y(e,t+n,1):function({translate:e,scale:t},r,n){return e[n]-r*t[n]}(e,t+n,1)}}function f(e,t,r,n){return 2===r?y(e,t,2):d(e,t,r,n)}function p(e,t,r,n){return 2===r?y(e,t,3):d(e,t,r,n)}function g(e,t,r,n){return 3===r?y(e,t,3):f(e,t,r,n)}function y({translate:e,scale:t},r,n){return e[n]+r*t[n]}class m{constructor(e){this._options=e,this.geometryTypes=["point","multipoint","polyline","polygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=h,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{},this._missingAttributes=[]}get missingAttributes(){return this._missingAttributes}createFeatureResult(){return new u}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,i.N)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return new o.A}addField(e,t){e.fields.push(a.A.fromJSON(t));const r=e.fields.map((e=>e.name));this._attributesConstructor=function(){for(const e of r)this[e]=null}}addFeature(e,t){const r=this._options.maxStringAttributeLength,n=this._options.maxStringAttributeFields;(function(e,t,r,n){if(t?.size&&null!=r&&e)for(const s in e){if(!t.has(s))continue;const o=e[s];"string"==typeof o&&o.length>r&&(n(s),e[s]="")}})(t.attributes,n,r,(r=>{const n=t.attributes[e.objectIdFieldName];null!=n&&this._missingAttributes.push({objectId:n,attribute:r})})),e.features.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:n}=t,s=(0,c.Ch)(r.clone(),r,!1,!1,this._transform),o=(0,c.zv)(s,n,!1,!1);let i=null;switch(n){case"esriGeometryPoint":i="point";break;case"esriGeometryPolygon":i="polygon";break;case"esriGeometryPolyline":i="polyline";break;case"esriGeometryMultipoint":i="multipoint"}o.type=i,e.queryGeometryType=n,e.queryGeometry=o}prepareFeatures(e){switch(this._transform=e.transform??null,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++,e.geometryType){case"point":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"polygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"polyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"multipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e);break;case"mesh":case"extent":break;default:(0,n.Xb)(e.geometryType)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,new l((0,s.c)(),null,new this._attributesConstructor)}allocateCoordinates(){const e=this._lengths.reduce(((e,t)=>e+t),0);this._coordinateBuffer=new Float64Array(e*this._vertexDimension),this._coordinateBufferPtr=0}addLength(e,t){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}createPointGeometry(e){const t={type:"point",x:0,y:0,spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM};return t.hasZ&&(t.z=0),t.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const n=this._transform?this._applyTransform(this._transform,t,r,0):t;if(null!=n)switch(r){case 0:e.x=n;break;case 1:e.y=n;break;case 2:e.hasZ?e.z=n:e.m=n;break;case 3:e.m=n}}_transformPathLikeValue(e,t){let r=0;return t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e),this._transform?this._applyTransform(this._transform,e,t,r):e}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const n=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(n)}_createPolygonGeometry(e){return{type:"polygon",rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{type:"polyline",paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{type:"multipoint",points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const n=this._transformPathLikeValue(t,r),s=e[e.length-1],o=this._coordinateBuffer;if(o){if(0===r){const e=this._coordinateBufferPtr*Float64Array.BYTES_PER_ELEMENT;s.push(new Float64Array(o.buffer,e,this._vertexDimension))}o[this._coordinateBufferPtr++]=n}}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?g:t?f:r?p:d}}var _=r(66208);class b{_parseFeatureQuery(e){const t=new m(e.options),r=(0,_.m)(e.buffer,t),n={...r,spatialReference:r.spatialReference?.toJSON(),fields:r.fields?r.fields.map((e=>e.toJSON())):void 0,missingAttributes:t.missingAttributes};return Promise.resolve(n)}}function w(){return new b}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9748],{21818:(e,t,r)=>{function n(e){}r.d(t,{Xb:()=>n}),r(44208)},51624:(e,t,r)=>{r.d(t,{A:()=>c});var n,s,o=r(44208),i=r(93687);(s=n||(n={}))[s.varint=0]="varint",s[s.fixed64=1]="fixed64",s[s.delimited=2]="delimited",s[s.fixed32=5]="fixed32",s[s.unknown=99]="unknown";const a=4294967296,l=new TextDecoder("utf-8"),u=(0,o.A)("safari")||(0,o.A)("ios")?6:(0,o.A)("ff")?12:32;class c{constructor(e,t,r=0,s=(e?e.byteLength:0)){this._tag=0,this._dataType=n.unknown,this._init(e,t,r,s)}_init(e,t,r,n){this._data=e,this._dataView=t,this._pos=r,this._end=n}asUnsafe(){return this}clone(){return new c(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*a;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*a;return this._skip(8),r}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,n){const s=this.getMessage(),o=e(s,t,r,n);return s.release(),o}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){const e=this._getLength(),t=c.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){c.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case n.varint:this._decodeVarint();break;case n.fixed64:this._skip(8);break;case n.delimited:this._skip(this._getLength());break;case n.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,r=0,n=0;if(this._end-t>=10)do{if(n=e[t++],r|=127&n,!(128&n))break;if(n=e[t++],r|=(127&n)<<7,!(128&n))break;if(n=e[t++],r|=(127&n)<<14,!(128&n))break;if(n=e[t++],r|=(127&n)<<21,!(128&n))break;if(n=e[t++],r+=268435456*(127&n),!(128&n))break;if(n=e[t++],r+=34359738368*(127&n),!(128&n))break;if(n=e[t++],r+=4398046511104*(127&n),!(128&n))break;if(n=e[t++],r+=562949953421312*(127&n),!(128&n))break;if(n=e[t++],r+=72057594037927940*(127&n),!(128&n))break;if(n=e[t++],r+=0x8000000000000000*(127&n),!(128&n))break;throw new Error("Varint too long!")}while(0);else{let s=1;for(;t!==this._end&&(n=e[t],128&n);)++t,r+=(127&n)*s,s*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=n*s}return this._pos=t,r}_decodeSVarint(){const e=this._data;let t,r=0,n=0;const s=1&e[this._pos];if(n=e[this._pos++],r|=127&n,!(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<7,!(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<14,!(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<21,!(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r+=268435456*(127&n),!(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r+=34359738368*(127&n),!(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r+=4398046511104*(127&n),!(128&n))return s?-(r+1)/2:r/2;if(t=BigInt(r),n=e[this._pos++],t+=0x2000000000000n*BigInt(127&n),!(128&n))return Number(s?-(t+1n)/2n:t/2n);if(n=e[this._pos++],t+=0x100000000000000n*BigInt(127&n),!(128&n))return Number(s?-(t+1n)/2n:t/2n);if(n=e[this._pos++],t+=0x8000000000000000n*BigInt(127&n),!(128&n))return Number(s?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(this._dataType!==n.delimited)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>u){const n=e.subarray(t,r);return l.decode(n)}let n="",s="";for(let o=t;o<r;++o){const t=e[o];128&t?s+="%"+t.toString(16):(n+=decodeURIComponent(s)+String.fromCharCode(t),s="")}return s.length&&(n+=decodeURIComponent(s)),n}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}}c.pool=new i.A(c,void 0,(e=>{e._data=null,e._dataView=null}))},70328:(e,t,r)=>{r.d(t,{BI:()=>T,Ej:()=>g,Hq:()=>u,Ie:()=>b,Jt:()=>w,Ne:()=>y,RF:()=>a,_F:()=>f,aI:()=>I,fA:()=>o,gX:()=>p,hZ:()=>_,iT:()=>l,is:()=>k,qv:()=>M,vI:()=>m,v_:()=>x,vt:()=>s,w1:()=>i});var n=r(5443);function s(e=x){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,n,o,i,a=s()){return a[0]=e,a[1]=t,a[2]=r,a[3]=n,a[4]=o,a[5]=i,a}function i(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new n.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function u(e,t,r=0,n=t.length/3){let s=e[0],o=e[1],i=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)s=Math.min(s,t[r+3*e]),o=Math.min(o,t[r+3*e+1]),i=Math.min(i,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=s,e[1]=o,e[2]=i,e[3]=a,e[4]=l,e[5]=u}function c(e){return e[0]>=e[3]?0:e[3]-e[0]}function h(e){return e[1]>=e[4]?0:e[4]-e[1]}function d(e){return e[2]>=e[5]?0:e[5]-e[2]}function f(e){const t=c(e),r=d(e),n=h(e);return Math.sqrt(t*t+r*r+n*n)}function p(e,t=[0,0,0]){return t[0]=e[0]+c(e)/2,t[1]=e[1]+h(e)/2,t[2]=e[2]+d(e)/2,t}function g(e,t=[0,0,0]){return t[0]=c(e),t[1]=h(e),t[2]=d(e),t}function y(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function m(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function _(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function b(e){return e?_(e,M):s(M)}function w(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function T(e,t,r,n,s){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function k(e){return 6===e.length}function I(e,t,r){if(null==e||null==t)return e===t;if(!k(e)||!k(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(19419);const M=[1/0,1/0,1/0,-1/0,-1/0,-1/0],x=[0,0,0,0,0,0];s()},65864:(e,t,r)=>{r.d(t,{$B:()=>g,Bi:()=>f,Rg:()=>d,U9:()=>c,ZC:()=>u,fT:()=>h,rS:()=>p,xD:()=>m});var n=r(5443),s=r(91075),o=r(48526),i=r(86738),a=r(39829),l=r(82799);function u(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function c(e){return void 0!==e.points}function h(e){return void 0!==e.x&&void 0!==e.y}function d(e){return void 0!==e.paths}function f(e){return void 0!==e.rings}function p(e){return null==e?null:e instanceof s.A?e:h(e)?i.A.fromJSON(e):d(e)?l.A.fromJSON(e):f(e)?a.A.fromJSON(e):c(e)?o.A.fromJSON(e):u(e)?n.A.fromJSON(e):null}function g(e){return e?h(e)?"esriGeometryPoint":d(e)?"esriGeometryPolyline":f(e)?"esriGeometryPolygon":u(e)?"esriGeometryEnvelope":c(e)?"esriGeometryMultipoint":null:null}const y={esriGeometryPoint:i.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:o.A};function m(e){return e&&y[e]||null}},62577:(e,t,r)=>{function n(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]:[0,0,0,0]}:null}function s(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;const{originPosition:t,scale:r,translate:n}=e,s=r[0]??1,o=r[1]??1;return{originPosition:"lowerLeft",scale:[s,"lowerLeft"===t?o:-o,r[2]??1,r[3]??1],translate:[n[0]??0,n[1]??0,n[2]??0,n[3]??0]}}function o({scale:e,translate:t},r){return r*e[0]+t[0]}function i({scale:e,translate:t},r){return r*e[1]+t[1]}function a({scale:e,translate:t},r){return(r??0)*e[2]+t[2]}function l({scale:e,translate:t},r){return r?r*e[3]+t[3]:0}function u(e,t){return e&&t?f:e&&!t?h:!e&&t?d:c}r.d(t,{$X:()=>_,Gy:()=>g,P5:()=>b,Q1:()=>s,SW:()=>y,Tr:()=>m,VV:()=>n}),r(65864);const c=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let s=o(e,n[0]),a=i(e,n[1]);r[0]=[s,a];const{scale:l,originPosition:u}=e,c=l[0],h="lowerLeft"===u?l[1]:-l[1];for(let e=1;e<t.length;e++){const[n,o]=t[e];s+=c*n,a+=h*o,r[e]=[s,a]}return r},h=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let s=o(e,n[0]),l=i(e,n[1]);r[0]=[s,l,a(e,n[2])];const{scale:u,originPosition:c}=e,h=u[0],d="lowerLeft"===c?u[1]:-u[1];for(let n=1;n<t.length;n++){const[o,i,u]=t[n];s+=h*o,l+=d*i,r[n]=[s,l,a(e,u)]}return r},d=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let s=o(e,n[0]),a=i(e,n[1]);r[0]=[s,a,l(e,n[2])];const{scale:u,originPosition:c}=e,h=u[0],d="lowerLeft"===c?u[1]:-u[1];for(let n=1;n<t.length;n++){const[o,i,u]=t[n];s+=h*o,a+=d*i,r[n]=[s,a,l(e,u)]}return r},f=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let s=o(e,n[0]),u=i(e,n[1]);r[0]=[s,u,a(e,n[2]),l(e,n[3])];const{scale:c,originPosition:h}=e,d=c[0],f="lowerLeft"===h?c[1]:-c[1];for(let n=1;n<t.length;n++){const[o,i,c,h]=t[n];s+=d*o,u+=f*i,r[n]=[s,u,a(e,c),l(e,h)]}return r};function p(e,t,r){const n=new Array(r.length);for(let s=0;s<r.length;s++)n[s]=t(e,r[s]);return n}function g(e,t,r){const n=s(e);return t.x=function({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}(n,r.x),t.y=function({scale:e,translate:t},r){return Math.round((r-t[1])/e[1])}(n,r.y),null!=r.z&&(t.z=function({scale:e,translate:t},r){return Math.round(((r??0)-t[2])/e[2])}(n,r.z)),null!=r.m&&(t.m=function({scale:e,translate:t},r){return r?Math.round((r-t[3])/e[3]):0}(n,r.m)),t}function y(e,t,r,n=r?.hasZ??!1,o=r?.hasM??!1){if(null!=r){const i=s(e);t.points=u(n,o)(i,r.points),t.hasZ=n,t.hasM=o}return t}function m(e,t,r,n=null!=r?.z,u=null!=r?.m){if(null==r)return t;const c=s(e);return t.x=o(c,r.x),t.y=i(c,r.y),n&&(t.z=a(c,r.z)),u&&(t.m=l(c,r.m)),t}function _(e,t,r,n=r?.hasZ??!1,o=r?.hasM??!1){if(null!=r){const i=s(e);t.rings=p(i,u(n,o),r.rings),t.hasZ=n,t.hasM=o}return t}function b(e,t,r,n=r?.hasZ??!1,o=r?.hasM??!1){if(null!=r){const i=s(e);t.paths=p(i,u(n,o),r.paths),t.hasZ=n,t.hasM=o}return t}},50498:(e,t,r)=>{r.d(t,{Y:()=>o,g:()=>s});var n=r(66552);const s=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),o=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},62815:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(83047),s=r(73941),o=r(21325);function i(e,t,r){if(null==t||null==r||r.vcsWkid||(0,o.aI)(t,r)||(0,s.xP)(t)||(0,s.xP)(r))return null;const i=(0,n.G9)(t)/(0,n.G9)(r);if(1===i)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,i);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return null}}},43334:(e,t,r)=>{r.d(t,{N3:()=>o,Om:()=>s});var n=r(92722);class s{constructor(e=null,t={},r,n){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=n,this.displayId=0,this.geohashX=0,this.geohashY=0}static fromJSON(e,t){const r=e.geometry?n.A.fromJSON(e.geometry):null,o=e.centroid?n.A.fromJSON(e.centroid):null,i=e.attributes[t];return new s(r,e.attributes,o,i)}weakClone(){const e=new s(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}clone(){const e=this.geometry?.clone(),t=new s(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function o(e){return!!e.geometry?.coords?.length}},58512:(e,t,r)=>{r.d(t,{A:()=>n});class n{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new n;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},92722:(e,t,r)=>{r.d(t,{A:()=>n});class n{constructor(e=[],t=[]){this.lengths=e??[],this.coords=t??[]}static fromJSON(e){return new n(e.lengths,e.coords)}static fromRect(e){const[t,r,s,o]=e,i=s-t,a=o-r;return new n([5],[t,r,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const n=this.lengths[r];for(let r=0;r<n;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=n}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let n=0;for(const e of r){for(let r=1;r<e;r++)t[2*(n+r)]+=t[2*(n+r)-2],t[2*(n+r)+1]+=t[2*(n+r)-1];n+=e}return e}clone(e){if(0===this.lengths.length)return new n([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce(((e,t)=>e+t))),r=this.coords.slice(0,t);return e?(e.set(r),new n(this.lengths,e)):new n(Array.from(this.lengths),Array.from(r))}}},90708:(e,t,r)=>{r.d(t,{B2:()=>T,BW:()=>C,Ch:()=>ne,DF:()=>I,Di:()=>B,E2:()=>j,IE:()=>w,Nl:()=>H,Q4:()=>se,Rk:()=>ie,Ux:()=>z,Ye:()=>D,ZF:()=>W,eY:()=>$,jH:()=>Q,jQ:()=>re,kz:()=>K,oN:()=>E,q3:()=>X,qK:()=>q,qN:()=>V,z5:()=>U,zv:()=>J});var n=r(49186),s=r(53966),o=r(97768),i=r(70328),a=r(19419),l=r(65864),u=r(43334),c=r(58512),h=r(92722);function d(e,t){return e?t?4:3:t?3:2}const f=()=>s.A.getLogger("esri.layers.graphics.featureConversionUtils"),p={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryEnvelope:0},g=(e,t,r,n,s,o)=>{e[r]=s,e[r+1]=o},y=(e,t,r,n,s,o)=>{e[r]=s,e[r+1]=o,e[r+2]=t[n+2]},m=(e,t,r,n,s,o)=>{e[r]=s,e[r+1]=o,e[r+2]=t[n+3]},_=(e,t,r,n,s,o)=>{e[r]=s,e[r+1]=o,e[r+2]=t[n+2],e[r+3]=t[n+3]};function b(e,t,r,n){if(e){if(r)return t&&n?_:y;if(t&&n)return m}else if(t&&n)return y;return g}function w({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function T({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function k({scale:e,translate:t},r,n){return r*e[n]+t[n]}function I(e,t,r){return e?t?r?A(e):v(e):r?G(e):M(e):null}function M(e){const t=e.coords;return{x:t[0],y:t[1]}}function x(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function v(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function F(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function G(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function P(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function A(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function N(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function S(e,t){return e&&t?N:e?F:t?P:x}function V(e,t,r=S(null!=t.z,null!=t.m)){return r(e,t)}function q(e,t,r){if(null==e)return null;const n=d(t,r),s=[];for(let t=0;t<e.coords.length;t+=n){const r=[];for(let s=0;s<n;s++)r.push(e.coords[t+s]);s.push(r)}return t?r?{points:s,hasZ:t,hasM:r}:{points:s,hasZ:t}:r?{points:s,hasM:r}:{points:s}}function R(e,t,r=d(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const n=e.coords;let s=0;for(const e of t.points)for(let t=0;t<r;t++)n[s++]=e[t];return e}function C(e,t,r){if(!e)return null;const n=d(t,r),{coords:s,lengths:o}=e,i=[];let a=0;for(const e of o){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(s[a++]);t.push(e)}i.push(t)}return t?r?{paths:i,hasZ:t,hasM:r}:{paths:i,hasZ:t}:r?{paths:i,hasM:r}:{paths:i}}function L(e,t,r=d(t.hasZ,t.hasM)){const{lengths:n,coords:s}=e;let o=0;for(const e of t.paths){for(const t of e)for(let e=0;e<r;e++)s[o++]=t[e];n.push(e.length)}return e}function U(e,t,r){if(!e)return null;const n=d(t,r),{coords:s,lengths:o}=e,i=[];let a=0;for(const e of o){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(s[a++]);t.push(e)}i.push(t)}return t?r?{rings:i,hasZ:t,hasM:r}:{rings:i,hasZ:t}:r?{rings:i,hasM:r}:{rings:i}}function D(e,t,r=t.hasZ,n=t.hasM){return function(e,t,r,n){const s=d(r,n),{lengths:o,coords:i}=e;let a=0;ae(e);for(const e of t){for(const t of e)for(let e=0;e<s;e++)i[a++]=t[e];o.push(e.length)}return e}(e,t.rings,r,n)}const O=[],Z=[];function j(e,t,r,n,s){O[0]=e;const[o]=B(Z,O,t,r,n,s);return le(O),le(Z),o}function B(e,t,r,s,o,i){if(le(e),!r){for(const r of t){const t=i?r.attributes[i]:void 0;e.push(new u.Om(null,r.attributes,null,t))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,n,s){const o=S(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?o(new h.A,r):null;e.push(new u.Om(t,n,null,s?n[s]:void 0))}return e}(e,t,s,o,i);case"esriGeometryMultipoint":return function(e,t,r,n,s){const o=d(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?R(new h.A,r,o):null;e.push(new u.Om(t,n,null,s?n[s]:void 0))}return e}(e,t,s,o,i);case"esriGeometryPolyline":return function(e,t,r,n,s){const o=d(r,n);for(const{geometry:r,attributes:n,centroid:i}of t){const t=null!=r?L(new h.A,r,o):null,a=null!=i?V(new h.A,i):null;e.push(new u.Om(t,n,a,s?n[s]:void 0))}return e}(e,t,s,o,i);case"esriGeometryPolygon":return function(e,t,r,n,s){for(const{geometry:o,centroid:i,attributes:a}of t){const t=null!=o?D(new h.A,o,r,n):null,l=s?a[s]:void 0;null!=i?e.push(new u.Om(t,a,x(new h.A,i),l)):e.push(new u.Om(t,a,null,l))}return e}(e,t,s,o,i);default:f().error("convertToFeatureSet:unknown-geometry",new n.A(`Unable to parse unknown geometry type '${r}'`)),le(e)}return e}function E(e,t,r,n){Z[0]=e,Y(O,Z,t,r,n);const s=O[0];return le(O),le(Z),s}function z(e,t,r){if(null==e)return null;const s=new h.A;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==r&&(r=e.hasM),(0,l.fT)(e)?S(null!=t?t:null!=e.z,null!=r?r:null!=e.m)(s,e):(0,l.Bi)(e)?D(s,e,t,r):(0,l.Rg)(e)?L(s,e,d(t,r)):(0,l.U9)(e)?R(s,e,d(t,r)):void f().error("convertFromGeometry:unknown-geometry",new n.A(`Unable to parse unknown geometry type '${e}'`))}function J(e,t,r,s){const o=e&&("coords"in e?e:e.geometry);if(null==o)return null;switch(t){case"esriGeometryPoint":{let e=M;return r&&s?e=A:r?e=v:s&&(e=G),e(o)}case"esriGeometryMultipoint":return q(o,r,s);case"esriGeometryPolyline":return C(o,r,s);case"esriGeometryPolygon":return U(o,r,s);default:return f().error("convertToGeometry:unknown-geometry",new n.A(`Unable to parse unknown geometry type '${t}'`)),null}}function Y(e,t,r,s,o){if(le(e),null==r)return function(e,t){for(const r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,n){let s=M;r&&n?s=A:r?s=v:n&&(s=G);for(const r of t){const{geometry:t,attributes:n}=r,o=null!=t?s(t):null;e.push({attributes:n,geometry:o})}return e}(e,t,s,o);case"esriGeometryMultipoint":return function(e,t,r,n){for(const{geometry:s,attributes:o}of t)e.push({attributes:o,geometry:null!=s?q(s,r,n):null});return e}(e,t,s,o);case"esriGeometryPolyline":return function(e,t,r,n){for(const{geometry:s,attributes:o}of t)e.push({attributes:o,geometry:null!=s?C(s,r,n):null});return e}(e,t,s,o);case"esriGeometryPolygon":return function(e,t,r,n){for(const{geometry:s,attributes:o,centroid:i}of t){const t=null!=s?U(s,r,n):null;if(null!=i){const r=M(i);e.push({attributes:o,centroid:r,geometry:t})}else e.push({attributes:o,geometry:t})}return e}(e,t,s,o);default:f().error("convertToFeatureSet:unknown-geometry",new n.A(`Unable to parse unknown geometry type '${r}'`))}return e}function W(e){const{objectIdFieldName:t,spatialReference:r,transform:n,fields:s,hasM:o,hasZ:i,features:a,geometryType:l,exceededTransferLimit:u,uniqueIdField:c,queryGeometry:h,queryGeometryType:d}=e,f={features:Y([],a,l,i,o),fields:s,geometryType:l,objectIdFieldName:t,spatialReference:r,uniqueIdField:c,queryGeometry:J(h,d,!1,!1)};return n&&(f.transform=n),u&&(f.exceededTransferLimit=u),o&&(f.hasM=o),i&&(f.hasZ=i),f}function X(e,t){const r=new c.A,{hasM:s,hasZ:o,features:i,objectIdFieldName:a,spatialReference:l,geometryType:u,exceededTransferLimit:h,transform:d,fields:p}=e;return p&&(r.fields=p),r.geometryType=u??null,r.objectIdFieldName=a??t??null,r.spatialReference=l??null,r.objectIdFieldName?(i&&B(r.features,i,u,o,s,r.objectIdFieldName),h&&(r.exceededTransferLimit=h),s&&(r.hasM=s),o&&(r.hasZ=o),d&&(r.transform=d),r):(f().error(new n.A("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),r)}function $(e){const{transform:t,features:r,hasM:n,hasZ:s}=e;if(!t)return e;for(const e of r)null!=e.geometry&&ne(e.geometry,e.geometry,n,s,t),null!=e.centroid&&ne(e.centroid,e.centroid,n,s,t);return e.transform=null,e}function Q(e,t){const{geometryType:r,features:n,hasM:s,hasZ:o}=t;if(!e)return t;for(let t=0;t<n.length;t++){const i=n[t],a=i.weakClone();a.geometry=new h.A,H(a.geometry,i.geometry,s,o,r,e),i.centroid&&(a.centroid=new h.A,H(a.centroid,i.centroid,s,o,"esriGeometryPoint",e)),n[t]=a}return t.transform=e,t}function H(e,t,r,n,s,o,i=r,a=n){if(ae(e),!t?.coords.length)return null;const l=p[s],{coords:u,lengths:c}=t,h=d(r,n),f=d(r&&i,n&&a),g=b(r,n,i,a);if(!c.length)return g(e.coords,u,0,0,w(o,u[0]),T(o,u[1])),ae(e,h,0),e;let y,m,_,k,I=0,M=0,x=M;for(const t of c){if(t<l)continue;let r=0;M=x,_=y=w(o,u[I]),k=m=T(o,u[I+1]),g(e.coords,u,M,I,_,k),r++,I+=h,M+=f;for(let n=1;n<t;n++,I+=h)_=w(o,u[I]),k=T(o,u[I+1]),_===y&&k===m||(g(e.coords,u,M,I,_-y,k-m),M+=f,r++,y=_,m=k);r>=l&&(e.lengths.push(r),x=M)}return le(e.coords,x),e.coords.length?e:null}function K(e,t,r,n,s,o,i=r,a=n){if(ae(e),!t?.coords.length)return null;const l=p[s],{coords:u,lengths:c}=t,h=d(r,n),f=d(r&&i,n&&a),g=b(r,n,i,a);if(!c.length)return g(e.coords,u,0,0,u[0],u[1]),ae(e,h,0),e;let y=0;const m=o*o;for(const t of c){if(t<l){y+=t*h;continue}const r=e.coords.length/f,n=y,s=y+(t-1)*h;g(e.coords,u,e.coords.length,n,u[n],u[n+1]),te(e.coords,u,h,m,g,n,s),g(e.coords,u,e.coords.length,s,u[s],u[s+1]);const o=e.coords.length/f-r;o>=l?e.lengths.push(o):le(e.coords,r*f),y+=t*h}return e.coords.length?e:null}function ee(e,t,r,n){const s=e[t],o=e[t+1],i=e[r],a=e[r+1],l=e[n],u=e[n+1];let c=i,h=a,d=l-c,f=u-h;if(0!==d||0!==f){const e=((s-c)*d+(o-h)*f)/(d*d+f*f);e>1?(c=l,h=u):e>0&&(c+=d*e,h+=f*e)}return d=s-c,f=o-h,d*d+f*f}function te(e,t,r,n,s,o,i){let a,l=n,u=0;for(let e=o+r;e<i;e+=r)a=ee(t,e,o,i),a>l&&(u=e,l=a);l>n&&(u-o>r&&te(e,t,r,n,s,o,u),s(e,t,e.length,u,t[u],t[u+1]),i-u>r&&te(e,t,r,n,s,u,i))}function re(e,t,r,n){if(!t?.coords?.length)return null;const s=d(r,n);let o=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY,c=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=s){const r=e[t],n=e[t+1];o=Math.min(o,r),u=Math.max(u,r),l=Math.min(l,n),c=Math.max(c,n)}}return(0,i.is)(e)?(0,i.BI)(e,o,l,u,c):(0,a.fA)(o,l,u,c,e),e}function ne(e,t,r,n,s){const{coords:i,lengths:a}=t,l=d(r,n);if(!i.length)return e!==t&&ae(e),e;(0,o.Lw)(s);const{originPosition:u,scale:c,translate:h}=s,f=ue;f.originPosition=u;const p=f.scale;p[0]=c[0]??1,p[1]=-(c[1]??1),p[2]=c[2]??1,p[3]=c[3]??1;const g=f.translate;if(g[0]=h[0]??0,g[1]=h[1]??0,g[2]=h[2]??0,g[3]=h[3]??0,!a.length){for(let t=0;t<l;++t)e.coords[t]=k(f,i[t],t);return e!==t&&ae(e,l,0),e}let y=0;for(let t=0;t<a.length;t++){const r=a[t];e.lengths[t]=r;for(let t=0;t<l;++t)e.coords[y+t]=k(f,i[y+t],t);let n=e.coords[y],s=e.coords[y+1];y+=l;for(let t=1;t<r;t++,y+=l){n+=i[y]*p[0],s+=i[y+1]*p[1],e.coords[y]=n,e.coords[y+1]=s;for(let t=2;t<l;++t)e.coords[y+t]=k(f,i[y+t],t)}}return e!==t&&ae(e,i.length,a.length),e}function se(e,t,r,n,s,o){if(ae(e),e.lengths.push(...t.lengths),r===s&&n===o)for(let r=0;r<t.coords.length;r++)e.coords.push(t.coords[r]);else{const i=d(r,n),a=b(r,n,s,o),l=t.coords;for(let t=0;t<l.length;t+=i)a(e.coords,l,e.coords.length,t,l[t],l[t+1])}return e}function oe(e,t,r,n){let s=0,o=e[n*t],i=e[n*(t+1)];for(let a=1;a<r;a++){const r=o+e[n*(t+a)],l=i+e[n*(t+a)+1],u=(r-o)*(l+i);o=r,i=l,s+=u}return.5*s}function ie(e,t){const{coords:r,lengths:n}=e;let s=0,o=0;for(let e=0;e<n.length;e++){const i=n[e];o+=oe(r,s,i,t),s+=i}return Math.abs(o)}function ae(e,t=0,r=0){le(e.lengths,r),le(e.coords,t)}function le(e,t=0){e.length!==t&&(e.length=t)}const ue={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},39357:(e,t,r)=>{r.d(t,{H:()=>l});var n,s=r(90237),o=r(25482),i=r(10107),a=(r(44208),r(53966),r(87811),r(40608));let l=n=class extends o.oY{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,s._)([(0,i.M)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,s._)([(0,i.M)({type:[String,Number],json:{write:!0}})],l.prototype,"code",void 0),l=n=(0,s._)([(0,a.$)("esri.layers.support.CodedValue")],l)},53177:(e,t,r)=>{r.d(t,{A:()=>d});var n,s=r(90237),o=r(4718),i=r(10107),a=(r(44208),r(53966),r(93223)),l=r(40608),u=r(39357),c=r(76357);let h=n=class extends c.A{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new n({codedValues:(0,o.o8)(this.codedValues),name:this.name})}};(0,s._)([(0,i.M)({type:[u.H],json:{write:!0}})],h.prototype,"codedValues",void 0),(0,s._)([(0,a.e)({codedValue:"coded-value"})],h.prototype,"type",void 0),h=n=(0,s._)([(0,l.$)("esri.layers.support.CodedValueDomain")],h);const d=h},76357:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(90237),s=r(66552),o=r(25482),i=r(10107),a=(r(44208),r(53966),r(87811),r(93223)),l=r(40608);const u=new s.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends o.oY{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,i.M)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,a.e)(u)],c.prototype,"type",void 0),c=(0,n._)([(0,l.$)("esri.layers.support.Domain")],c);const h=c},20437:(e,t,r)=>{r.d(t,{A:()=>y});var n,s=r(90237),o=r(66552),i=r(25482),a=r(10107),l=r(56507),u=(r(87811),r(44208),r(93223)),c=r(36005),h=r(40608),d=r(80451),f=r(98453);const p=new o.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let g=n=class extends i.oY{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?p.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,s._)([(0,a.M)({type:String,json:{write:!0}})],g.prototype,"alias",void 0),(0,s._)([(0,a.M)({type:[String,Number],json:{write:{allowNull:!0}}})],g.prototype,"defaultValue",void 0),(0,s._)([(0,a.M)()],g.prototype,"description",void 0),(0,s._)([(0,c.w)("description")],g.prototype,"readDescription",null),(0,s._)([(0,a.M)({types:d.gK,json:{read:{reader:d.rS},write:!0}})],g.prototype,"domain",void 0),(0,s._)([(0,a.M)({type:Boolean,json:{write:!0}})],g.prototype,"editable",void 0),(0,s._)([(0,a.M)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],g.prototype,"length",void 0),(0,s._)([(0,a.M)({type:String,json:{write:!0}})],g.prototype,"name",void 0),(0,s._)([(0,a.M)({type:Boolean,json:{write:!0}})],g.prototype,"nullable",void 0),(0,s._)([(0,u.e)(f.m)],g.prototype,"type",void 0),(0,s._)([(0,a.M)()],g.prototype,"valueType",void 0),(0,s._)([(0,c.w)("valueType",["description"])],g.prototype,"readValueType",null),(0,s._)([(0,a.M)({type:Boolean,json:{read:!1}})],g.prototype,"visible",void 0),g=n=(0,s._)([(0,h.$)("esri.layers.support.Field")],g);const y=g},80451:(e,t,r)=>{r.d(t,{rS:()=>y,gK:()=>g}),r(44208);var n,s=r(53177),o=r(76357),i=r(90237),a=(r(53966),r(87811),r(49186),r(93223)),l=r(40608);let u=n=class extends o.A{constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,i._)([(0,a.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=n=(0,i._)([(0,l.$)("esri.layers.support.InheritedDomain")],u);const c=u;var h,d=r(10107);let f=h=class extends o.A{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new h({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i._)([(0,d.M)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],f.prototype,"maxValue",void 0),(0,i._)([(0,d.M)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],f.prototype,"minValue",void 0),(0,i._)([(0,a.e)({range:"range"})],f.prototype,"type",void 0),f=h=(0,i._)([(0,l.$)("esri.layers.support.RangeDomain")],f);const p=f,g={key:"type",base:o.A,typeMap:{range:p,"coded-value":s.A,inherited:c}};function y(e){if(!e?.type)return null;switch(e.type){case"range":return p.fromJSON(e);case"codedValue":return s.A.fromJSON(e);case"inherited":return c.fromJSON(e)}return null}},98453:(e,t,r)=>{r.d(t,{m:()=>n});const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},53655:(e,t,r)=>{r.d(t,{SH:()=>G,ae:()=>I,cn:()=>_});var n=r(49186),s=r(51624),o=r(92722),i=r(69418);const a=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],l=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],u=["upperLeft","lowerLeft"];function c(e){return e>=a.length?null:a[e]}function h(e){return e>=l.length?null:l[e]}function d(e){return e>=u.length?null:u[e]}function f(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function p(e,t,r){const n=e.asUnsafe(),s=t.createPointGeometry(r);for(;n.next();)switch(n.tag()){case 3:{const e=n.getUInt32(),r=n.pos()+e;let o=0;for(;n.pos()<r;)t.addCoordinatePoint(s,n.getSInt64(),o++);break}default:n.skip()}return s}function g(e,t,r){const n=e.asUnsafe(),s=t.createGeometry(r),o=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;n.next();)switch(n.tag()){case 2:{const e=n.getUInt32(),r=n.pos()+e;let o=0;for(;n.pos()<r;)t.addLength(s,n.getUInt32(),o++);break}case 3:{const e=n.getUInt32(),r=n.pos()+e;let i=0;for(t.allocateCoordinates(s);n.pos()<r;)t.addCoordinate(s,n.getSInt64(),i),i++,i===o&&(i=0);break}default:n.skip()}return s}function y(e){const t=e.asUnsafe(),r=new o.A;let n="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.coords.push(t.getSInt64());break}case 1:n=i.z[t.getEnum()];break;default:t.skip()}return{queryGeometry:r,queryGeometryType:n}}function m(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function _(e){const t=e.asUnsafe(),r={type:c(0)};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=c(t.getEnum());break;case 3:r.alias=t.getString();break;case 4:r.sqlType=h(t.getEnum());break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function b(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}function w(e,t,r,n){const s=t.createFeature(r);let o=0;for(;e.next();)switch(e.tag()){case 1:{const t=n[o++].name;s.attributes[t]=e.processMessage(m);break}case 2:s.geometry=e.processMessageWithArgs(g,t,r);break;case 4:s.centroid=e.processMessageWithArgs(p,t,r);break;default:e.skip()}return s}function T(e){const t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function k(e){const t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function I(e){const t={originPosition:d(0)},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=d(r.getEnum());break;case 2:t.scale=r.processMessage(T);break;case 3:t.translate=r.processMessage(k);break;default:r.skip()}return t}function M(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function x(e,t){const r=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:r.wkid=e.getUInt32();break;case 5:r.wkt=e.getString();break;case 2:r.latestWkid=e.getUInt32();break;case 3:r.vcsWkid=e.getUInt32();break;case 4:r.latestVcsWkid=e.getUInt32();break;default:e.skip()}return r}function v(e,t){const r=t.createFeatureResult(),n=e.asUnsafe();r.geometryType=f(t,0);let s=!1;for(;n.next();)switch(n.tag()){case 1:r.objectIdFieldName=n.getString();break;case 3:r.globalIdFieldName=n.getString();break;case 4:r.geohashFieldName=n.getString();break;case 5:r.geometryProperties=n.processMessage(M);break;case 7:r.geometryType=f(t,n.getEnum());break;case 8:r.spatialReference=n.processMessageWithArgs(x,t);break;case 10:r.hasZ=n.getBool();break;case 11:r.hasM=n.getBool();break;case 12:r.transform=n.processMessage(I);break;case 9:r.exceededTransferLimit=n.getBool();break;case 13:t.addField(r,n.processMessage(_));break;case 15:s||(t.prepareFeatures(r),s=!0),t.addFeature(r,n.processMessageWithArgs(w,t,r,r.fields));break;case 2:r.uniqueIdField=n.processMessage(b);break;default:n.skip()}return t.finishFeatureResult(r),r}function F(e,t){const r={};let n=null;for(;e.next();)switch(e.tag()){case 4:n=e.processMessageWithArgs(y);break;case 1:r.featureResult=e.processMessageWithArgs(v,t);break;default:e.skip()}return null!=n&&r.featureResult&&t.addQueryGeometry(r,n),r}function G(e,t){try{const r=2,n=new s.A(new Uint8Array(e),new DataView(e)),o={};for(;n.next();)n.tag()===r?o.queryResult=n.processMessageWithArgs(F,t):n.skip();return o}catch(e){throw new n.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},69418:(e,t,r)=>{r.d(t,{S:()=>u,z:()=>l});var n=r(83047),s=r(21325),o=r(43334),i=r(58512),a=r(92722);const l=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class u{constructor(e){this._options=e,this.geometryTypes=l,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new i.A}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e?.features||!e.hasZ||!this._options.sourceSpatialReference||!e.spatialReference||(0,s.aI)(e.spatialReference,this._options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,n.G9)(this._options.sourceSpatialReference)/(0,n.G9)(e.spatialReference);if(1!==t)for(const r of e.features){if(!(0,o.N3)(r))continue;const e=r.geometry.coords;for(let r=2;r<e.length;r+=3)e[r]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new o.Om}createSpatialReference(){return{wkid:0}}createGeometry(){return new a.A}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce(((e,t)=>e+t),0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new a.A}}},66208:(e,t,r)=>{r.d(t,{m:()=>s});var n=r(53655);function s(e,t){const r=(0,n.SH)(e,t),s=r.queryResult.featureResult,o=r.queryResult.queryGeometry,i=r.queryResult.queryGeometryType;if(s&&s.features&&s.features.length&&s.objectIdFieldName){const e=s.objectIdFieldName;for(const t of s.features)t.attributes&&(t.objectId=t.attributes[e])}return s&&(s.queryGeometry=o,s.queryGeometryType=i),s}},97367:(e,t,r)=>{r.r(t),r.d(t,{default:()=>w});var n=r(21818),s=r(24326),o=r(16930),i=r(62815),a=(r(44208),r(34275),r(70328),r(19419),r(62577),r(50498),r(20437));r(34727),r(21325);class l{constructor(e,t,r){this.uid=e,this.geometry=t,this.attributes=r,this.visible=!0,this.objectId=null,this.centroid=null}}class u{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null}}var c=r(90708);function h(e,t){return t}function d(e,t,r,n){switch(r){case 0:return y(e,t+n,0);case 1:return"lowerLeft"===e.originPosition?y(e,t+n,1):function({translate:e,scale:t},r,n){return e[n]-r*t[n]}(e,t+n,1)}}function f(e,t,r,n){return 2===r?y(e,t,2):d(e,t,r,n)}function p(e,t,r,n){return 2===r?y(e,t,3):d(e,t,r,n)}function g(e,t,r,n){return 3===r?y(e,t,3):f(e,t,r,n)}function y({translate:e,scale:t},r,n){return e[n]+r*t[n]}class m{constructor(e){this._options=e,this.geometryTypes=["point","multipoint","polyline","polygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=h,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{},this._missingAttributes=[]}get missingAttributes(){return this._missingAttributes}createFeatureResult(){return new u}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,i.N)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return new o.A}addField(e,t){e.fields.push(a.A.fromJSON(t));const r=e.fields.map((e=>e.name));this._attributesConstructor=function(){for(const e of r)this[e]=null}}addFeature(e,t){const r=this._options.maxStringAttributeLength,n=this._options.maxStringAttributeFields;(function(e,t,r,n){if(t?.size&&null!=r&&e)for(const s in e){if(!t.has(s))continue;const o=e[s];"string"==typeof o&&o.length>r&&(n(s),e[s]="")}})(t.attributes,n,r,(r=>{const n=t.attributes[e.objectIdFieldName];null!=n&&this._missingAttributes.push({objectId:n,attribute:r})})),e.features.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:n}=t,s=(0,c.Ch)(r.clone(),r,!1,!1,this._transform),o=(0,c.zv)(s,n,!1,!1);let i=null;switch(n){case"esriGeometryPoint":i="point";break;case"esriGeometryPolygon":i="polygon";break;case"esriGeometryPolyline":i="polyline";break;case"esriGeometryMultipoint":i="multipoint"}o.type=i,e.queryGeometryType=n,e.queryGeometry=o}prepareFeatures(e){switch(this._transform=e.transform??null,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++,e.geometryType){case"point":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"polygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"polyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"multipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e);break;case"mesh":case"extent":break;default:(0,n.Xb)(e.geometryType)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,new l((0,s.c)(),null,new this._attributesConstructor)}allocateCoordinates(){const e=this._lengths.reduce(((e,t)=>e+t),0);this._coordinateBuffer=new Float64Array(e*this._vertexDimension),this._coordinateBufferPtr=0}addLength(e,t){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}createPointGeometry(e){const t={type:"point",x:0,y:0,spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM};return t.hasZ&&(t.z=0),t.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const n=this._transform?this._applyTransform(this._transform,t,r,0):t;if(null!=n)switch(r){case 0:e.x=n;break;case 1:e.y=n;break;case 2:e.hasZ?e.z=n:e.m=n;break;case 3:e.m=n}}_transformPathLikeValue(e,t){let r=0;return t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e),this._transform?this._applyTransform(this._transform,e,t,r):e}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const n=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(n)}_createPolygonGeometry(e){return{type:"polygon",rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{type:"polyline",paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{type:"multipoint",points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const n=this._transformPathLikeValue(t,r),s=e[e.length-1],o=this._coordinateBuffer;if(o){if(0===r){const e=this._coordinateBufferPtr*Float64Array.BYTES_PER_ELEMENT;s.push(new Float64Array(o.buffer,e,this._vertexDimension))}o[this._coordinateBufferPtr++]=n}}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?g:t?f:r?p:d}}var _=r(66208);class b{_parseFeatureQuery(e){const t=new m(e.options),r=(0,_.m)(e.buffer,t),n={...r,spatialReference:r.spatialReference?.toJSON(),fields:r.fields?r.fields.map((e=>e.toJSON())):void 0,missingAttributes:t.missingAttributes};return Promise.resolve(n)}}function w(){return new b}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7679,9377,3069],{39516:(e,t,i)=>{async function n(e,t){const{WhereClause:n}=await Promise.all([i.e(835),i.e(4800)]).then(i.bind(i,50835));return n.create(e,{fieldsIndex:t})}function r(e,t){return"1=1"===e?t??e:"1=1"===t?e??t:null!=e&&""!==e?null!=t&&""!==t?`(${e}) AND (${t})`:e:t}i.d(t,{G:()=>n,m:()=>r})},3330:(e,t,i)=>{i.d(t,{GB:()=>r,Qo:()=>s,Y4:()=>o});var n=i(96285);class r{}function o(e){return e instanceof n.bo?e===r.instance:"unknown"===e?.toString().toLowerCase()}function s(e){return o(e)?r.instance:e}r.instance=new n.oh("Etc/UTC")},13069:(e,t,i)=>{i.d(t,{lk:()=>r,vD:()=>s,yS:()=>o});const n="randomUUID"in crypto;function r(){if(n)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${r().toUpperCase()}}`}function s(){return`{${r()}}`}},70328:(e,t,i)=>{i.d(t,{BI:()=>M,Ej:()=>f,Hq:()=>p,Ie:()=>_,Jt:()=>w,Ne:()=>h,RF:()=>a,_F:()=>y,aI:()=>N,fA:()=>o,gX:()=>m,hZ:()=>v,iT:()=>l,is:()=>x,qv:()=>b,vI:()=>g,v_:()=>j,vt:()=>r,w1:()=>s});var n=i(5443);function r(e=j){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,i,n,o,s,a=r()){return a[0]=e,a[1]=t,a[2]=i,a[3]=n,a[4]=o,a[5]=s,a}function s(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new n.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function p(e,t,i=0,n=t.length/3){let r=e[0],o=e[1],s=e[2],a=e[3],l=e[4],p=e[5];for(let e=0;e<n;e++)r=Math.min(r,t[i+3*e]),o=Math.min(o,t[i+3*e+1]),s=Math.min(s,t[i+3*e+2]),a=Math.max(a,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),p=Math.max(p,t[i+3*e+2]);e[0]=r,e[1]=o,e[2]=s,e[3]=a,e[4]=l,e[5]=p}function u(e){return e[0]>=e[3]?0:e[3]-e[0]}function d(e){return e[1]>=e[4]?0:e[4]-e[1]}function c(e){return e[2]>=e[5]?0:e[5]-e[2]}function y(e){const t=u(e),i=c(e),n=d(e);return Math.sqrt(t*t+i*i+n*n)}function m(e,t=[0,0,0]){return t[0]=e[0]+u(e)/2,t[1]=e[1]+d(e)/2,t[2]=e[2]+c(e)/2,t}function f(e,t=[0,0,0]){return t[0]=u(e),t[1]=d(e),t[2]=c(e),t}function h(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function g(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function _(e){return e?v(e,b):r(b)}function w(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function M(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function x(e){return 6===e.length}function N(e,t,i){if(null==e||null==t)return e===t;if(!x(e)||!x(t))return!1;if(i){for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}i(19419);const b=[1/0,1/0,1/0,-1/0,-1/0,-1/0],j=[0,0,0,0,0,0];r()},11987:(e,t,i)=>{i.r(t),i.d(t,{default:()=>L});var n=i(90237),r=i(51447),o=i(53966),s=i(79677);(0,r.uW)(o.A.getLogger("esri.TimeExtent"),"esri.TimeExtent",{replacement:"esri.time.TimeExtent",version:"4.31",warnOnce:!0});var a=i(49186),l=i(66552),p=i(4718),u=i(93637),d=i(10107),c=(i(44208),i(40608)),y=i(13600),m=i(82935),f=i(69540),h=i(25482),g=(i(87811),i(69622)),v=i(21325);let _=class extends g.A{set horizontalWKID(e){e?(0,v.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,v.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:n,tangentialDistortionCoefficients:r}=this;return e?.length>1&&!Number.isNaN(t)&&i?.length>1&&n?.length>1&&r?.length>1}};(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"affineTransformations",void 0),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"focalLength",void 0),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"principalOffsetPoint",void 0),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"radialDistortionCoefficients",void 0),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"tangentialDistortionCoefficients",void 0),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"horizontalWKID",null),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"verticalWKID",null),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"x",void 0),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"y",void 0),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"z",void 0),(0,n._)([(0,d.M)({json:{write:!0}})],_.prototype,"type",void 0),_=(0,n._)([(0,c.$)("esri.layers.orientedImagery.core.CameraOrientation")],_);const w=_;let M=class extends((0,f.O)((0,h.Te)(w))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,heading:s,pitch:a,roll:l,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:c,tangentialDistortionCoefficients:y}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(p?.forEach((e=>m.push(e))),m.push(u),d?.forEach((e=>m.push(e))),c?.forEach((e=>m.push(e))),y?.forEach((e=>m.push(e)))),m.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,n._)([(0,d.M)({json:{write:!0}})],M.prototype,"type",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],M.prototype,"affineTransformations",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],M.prototype,"focalLength",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],M.prototype,"principalOffsetPoint",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],M.prototype,"radialDistortionCoefficients",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],M.prototype,"tangentialDistortionCoefficients",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],M.prototype,"heading",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],M.prototype,"pitch",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],M.prototype,"roll",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],M.prototype,"x",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],M.prototype,"y",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],M.prototype,"z",void 0),M=(0,n._)([(0,c.$)("esri.layers.orientedImagery.core.CameraOrientationHPR")],M);const x=M;let N=class extends((0,f.O)((0,h.Te)(w))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,omega:s,phi:a,kappa:l,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:c,tangentialDistortionCoefficients:y}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(p?.forEach((e=>m.push(e))),m.push(u),d?.forEach((e=>m.push(e))),c?.forEach((e=>m.push(e))),y?.forEach((e=>m.push(e)))),m.map((e=>isNaN(e)?"":e)).join("|")}};(0,n._)([(0,d.M)({json:{write:!0}})],N.prototype,"type",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],N.prototype,"affineTransformations",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],N.prototype,"focalLength",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],N.prototype,"principalOffsetPoint",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],N.prototype,"radialDistortionCoefficients",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],N.prototype,"tangentialDistortionCoefficients",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],N.prototype,"omega",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],N.prototype,"phi",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],N.prototype,"kappa",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],N.prototype,"x",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],N.prototype,"y",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],N.prototype,"z",void 0),N=(0,n._)([(0,c.$)("esri.layers.orientedImagery.core.CameraOrientationOPK")],N);const b=N;let j=class extends((0,f.O)((0,h.Te)(w))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:n,tangentialDistortionCoefficients:r}=this;return e?.length>1||!Number.isNaN(t)||i?.length>1||n?.length>1||r?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,yaw:s,pitch:a,roll:l,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:c,tangentialDistortionCoefficients:y}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(p?.forEach((e=>m.push(e))),m.push(u),d?.forEach((e=>m.push(e))),d?.forEach((e=>m.push(e))),c?.forEach((e=>m.push(e))),y?.forEach((e=>m.push(e)))),m.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,n._)([(0,d.M)({json:{write:!0}})],j.prototype,"type",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],j.prototype,"affineTransformations",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],j.prototype,"focalLength",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],j.prototype,"principalOffsetPoint",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],j.prototype,"radialDistortionCoefficients",void 0),(0,n._)([(0,d.M)({type:[Number],json:{write:!0}})],j.prototype,"tangentialDistortionCoefficients",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],j.prototype,"yaw",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],j.prototype,"pitch",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],j.prototype,"roll",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],j.prototype,"x",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],j.prototype,"y",void 0),(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],j.prototype,"z",void 0),j=(0,n._)([(0,c.$)("esri.layers.orientedImagery.core.CameraOrientationYPR")],j);const T=j;i(24183);let S=class extends((0,f.O)(h.oY)){constructor(){super(...arguments),this.url=null}};(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],S.prototype,"lod",void 0),(0,n._)([(0,d.M)({type:String,json:{write:!0}})],S.prototype,"rasterFunction",void 0),(0,n._)([(0,d.M)({type:String,json:{write:!0}})],S.prototype,"url",void 0),S=(0,n._)([(0,c.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],S);let P=class extends((0,f.O)(h.oY)){constructor(){super(...arguments),this.constantElevation=null}};var F;(0,n._)([(0,d.M)({type:Number,json:{write:!0}})],P.prototype,"constantElevation",void 0),P=(0,n._)([(0,c.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],P),function(e){e[e.HPR=1]="HPR",e[e.OPK=2]="OPK",e[e.YPR=3]="YPR",e[e.LTP=4]="LTP"}(F||(F={}));var I=i(58769);const D=new l.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),O=new l.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique","":null}),E=new Map;E.set(`${F.OPK}`,{desc:"Using Omega Phi Kappa",constructor:b}),E.set(`${F.HPR}`,{desc:"Using Heading, Pitch and Roll",constructor:x}),E.set(`${F.YPR}`,{desc:"Using Yaw, Pitch and Roll",constructor:T});const R=new Map;R.set(`${F.HPR}`,(function(e){const[t,i,n,r,o,s,a,l,p,u,d,c,y,m,f,h,g,v,_,w,M,x]=e.slice(1),N=[p,u,d,c,y,m].map((e=>Number(e))),b=[h,g].map((e=>Number(e))),j=[v,_,w],T=[M,x];return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,heading:s,pitch:a,roll:l,affineTransformations:6===N.filter(I.E).length?N:null,focalLength:f,principalOffsetPoint:2!==b.filter(I.E).length?null:b,radialDistortionCoefficients:3!==j.filter(I.E).length?null:j,tangentialDistortionCoefficients:2!==T.filter(I.E).length?null:T}})),R.set(`${F.YPR}`,(function(e){const[t,i,n,r,o,s,a,l,p,u,d,c,y,m,f,h,g,v,_,w,M,x]=e.slice(1),N=[p,u,d,c,y,m].map((e=>Number(e))),b=[h,g].map((e=>Number(e))),j=[v,_,w],T=[M,x];return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,yaw:s,pitch:a,roll:l,affineTransformations:6===N.filter(I.E).length?N:null,focalLength:f,principalOffsetPoint:2!==b.filter(I.E).length?null:b,radialDistortionCoefficients:3!==j.filter(I.E).length?null:j,tangentialDistortionCoefficients:2!==T.filter(I.E).length?null:T}})),R.set(`${F.OPK}`,(function(e){const[t,i,n,r,o,s,a,l,p,u,d,c,y,m,f,h,g,v,_,w,M,x]=e.slice(1),N=[p,u,d,c,y,m].map((e=>Number(e))),b=[h,g].map((e=>Number(e))),j=[v,_,w].map((e=>Number(e))),T=[M,x].map((e=>Number(e)));return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,omega:s,phi:a,kappa:l,affineTransformations:6===N.filter(I.E).length?N:null,focalLength:f,principalOffsetPoint:2!==b.filter(I.E).length?null:b,radialDistortionCoefficients:3!==j.filter(I.E).length?[0,0,0]:j,tangentialDistortionCoefficients:2!==T.filter(I.E).length?[0,0]:T}})),R.set(`${F.LTP}`,(function(e){const[t,i,n,r,o,...s]=e.slice(1),a=R.get(o);return a?{latitude:t,longitude:i,ellipsoidRadius:n,squaredEccentricity:r,properties:a([o,"",...s])}:null}));const z=new Set(["demPathPrefix","demPathSuffix","depthImagePathPrefix","depthImagePathSuffix","elevationSource","horizontalMeasurementUnit","verticalMeasurementUnit","videoPathPrefix","videoPathSuffix","timeAnimation","visibilityTimeExtent"]),A=(e,t)=>!z.has(t)&&e;function $(e,t,i,n){const{name:r,write:o,read:s}=((e,t,i)=>{const n=`orientedImageryProperties.${e}`;return{name:n,write:t?{ignoreOrigin:!0,target:n,writer:t}:{ignoreOrigin:!0},read:i?{ignoreOrigin:!0,source:n,reader:i}:{ignoreOrigin:!0}}})(e,t,i),a={name:r,write:o,read:s,origins:{service:{name:`orientedImageryInfo.${r}`,write:t,read:i},"web-scene":{name:r,write:A(o,e),read:A(s,e)},"web-map":{name:r,write:o,read:s}}};return n&&a.origins?(a.type=n,a.origins["web-map"].type=n,a.origins["web-scene"].type=n,a):a}let V=class extends y.default{constructor(){super(...arguments),this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),this.type="oriented-imagery",this.timeIntervalUnit="days",this.useViewTime=!0,this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.videoPathPrefix=null,this.videoPathSuffix=null,this.visibilityTimeExtent=null}get effectiveElevationSource(){const{elevationSource:e,demPathPrefix:t,demPathSuffix:i}=this;return function(e,t,i){return e?(e=>null!=e&&"number"==typeof e.constantElevation)(e)?new P(e):function(e,t,i){let{url:n}=e;return n?(n=function(e,t,i){return t&&(e=`${t}${e}`),i&&(e+=`${i}`),e}(n,t,i),new S({...e,url:n})):null}(e,t,i):e}(e,t,i)}findFirstValidLayerId(e){return e.layers?.find((e=>this.supportedSourceTypes.has(e.type)))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new a.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};var C;(0,n._)([(0,d.M)({type:Number,json:$("cameraHeading")})],V.prototype,"cameraHeading",void 0),(0,n._)([(0,d.M)({type:Number,json:$("cameraHeight")})],V.prototype,"cameraHeight",void 0),(0,n._)([(0,d.M)({type:Number,json:$("cameraPitch")})],V.prototype,"cameraPitch",void 0),(0,n._)([(0,d.M)({type:Number,json:$("cameraRoll")})],V.prototype,"cameraRoll",void 0),(0,n._)([(0,d.M)({type:Number,json:$("coveragePercent")})],V.prototype,"coveragePercent",void 0),(0,n._)([(0,d.M)({type:String,json:$("demPathPrefix")})],V.prototype,"demPathPrefix",void 0),(0,n._)([(0,d.M)({type:String,json:$("demPathSuffix")})],V.prototype,"demPathSuffix",void 0),(0,n._)([(0,d.M)({type:String,json:$("depthImagePathPrefix")})],V.prototype,"depthImagePathPrefix",void 0),(0,n._)([(0,d.M)({type:String,json:$("depthImagePathSuffix")})],V.prototype,"depthImagePathSuffix",void 0),(0,n._)([(0,d.M)({type:Object,json:$("elevationSource")})],V.prototype,"elevationSource",void 0),(0,n._)([(0,d.M)()],V.prototype,"effectiveElevationSource",null),(0,n._)([(0,d.M)({type:Number,json:$("farDistance")})],V.prototype,"farDistance",void 0),(0,n._)([(0,d.M)()],V.prototype,"geometryType",void 0),(0,n._)([(0,d.M)({type:Number,json:$("horizontalFieldOfView")})],V.prototype,"horizontalFieldOfView",void 0),(0,n._)([(0,d.M)({type:String,json:$("horizontalMeasurementUnit")})],V.prototype,"horizontalMeasurementUnit",void 0),(0,n._)([(0,d.M)({type:String,json:$("imagePathPrefix")})],V.prototype,"imagePathPrefix",void 0),(0,n._)([(0,d.M)({type:String,json:$("imagePathSuffix")})],V.prototype,"imagePathSuffix",void 0),(0,n._)([(0,d.M)({type:Number,json:$("imageRotation")})],V.prototype,"imageRotation",void 0),(0,n._)([(0,d.M)({type:Number,json:$("maximumDistance")})],V.prototype,"maximumDistance",void 0),(0,n._)([(0,d.M)({type:Number,json:$("nearDistance")})],V.prototype,"nearDistance",void 0),(0,n._)([(0,d.M)({type:["OrientedImageryLayer"]})],V.prototype,"operationalLayerType",void 0),(0,n._)([(0,d.M)({json:{...$("orientationAccuracy",((e,t,i)=>{(0,u.sM)(i,e.join(";"),t)}),(e=>{const t=e?.split(";")?.map(Number);return function(e){return Array.isArray(e)&&9===e?.length&&!e.some(isNaN)}(t)?t:[0,0,0,0,0,0,0,0,0]}),String)}})],V.prototype,"orientationAccuracy",void 0),(0,n._)([(0,d.M)({json:{...$("orientedImageryType",O.write,O.read,O.jsonValues.slice(1))}})],V.prototype,"orientedImageryType",void 0),(0,n._)([(0,d.M)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],V.prototype,"type",void 0),(0,n._)([(0,d.M)({json:{...$("timeIntervalUnit",D.write,D.read,D.jsonValues),type:D.apiValues}})],V.prototype,"timeIntervalUnit",void 0),(0,n._)([(0,d.M)((C=(0,p.o8)(m.B),C.json?(C.json.origins=C.json.origins??{},C.json.origins["web-scene"]={write:!1,read:!1},C):C))],V.prototype,"useViewTime",void 0),(0,n._)([(0,d.M)({type:Number,json:$("verticalFieldOfView")})],V.prototype,"verticalFieldOfView",void 0),(0,n._)([(0,d.M)({json:{...$("verticalMeasurementUnit"),type:new l.J({Feet:"feet",Meter:"meter"}).apiValues}})],V.prototype,"verticalMeasurementUnit",void 0),(0,n._)([(0,d.M)({type:String,json:$("videoPathPrefix")})],V.prototype,"videoPathPrefix",void 0),(0,n._)([(0,d.M)({type:String,json:$("videoPathSuffix")})],V.prototype,"videoPathSuffix",void 0),(0,n._)([(0,d.M)({type:s.A,json:{origins:{"web-scene":{write:!1,read:!1}}}})],V.prototype,"visibilityTimeExtent",void 0),V=(0,n._)([(0,c.$)("esri.layers.OrientedImageryLayer")],V);const L=V},39357:(e,t,i)=>{i.d(t,{H:()=>l});var n,r=i(90237),o=i(25482),s=i(10107),a=(i(44208),i(53966),i(87811),i(40608));let l=n=class extends o.oY{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,r._)([(0,s.M)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,r._)([(0,s.M)({type:[String,Number],json:{write:!0}})],l.prototype,"code",void 0),l=n=(0,r._)([(0,a.$)("esri.layers.support.CodedValue")],l)},53177:(e,t,i)=>{i.d(t,{A:()=>c});var n,r=i(90237),o=i(4718),s=i(10107),a=(i(44208),i(53966),i(93223)),l=i(40608),p=i(39357),u=i(76357);let d=n=class extends u.A{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const i=String(e);this.codedValues.some((e=>(String(e.code)===i&&(t=e.name),!!t)))}return t}clone(){return new n({codedValues:(0,o.o8)(this.codedValues),name:this.name})}};(0,r._)([(0,s.M)({type:[p.H],json:{write:!0}})],d.prototype,"codedValues",void 0),(0,r._)([(0,a.e)({codedValue:"coded-value"})],d.prototype,"type",void 0),d=n=(0,r._)([(0,l.$)("esri.layers.support.CodedValueDomain")],d);const c=d},76357:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(90237),r=i(66552),o=i(25482),s=i(10107),a=(i(44208),i(53966),i(87811),i(93223)),l=i(40608);const p=new r.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends o.oY{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,s.M)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n._)([(0,a.e)(p)],u.prototype,"type",void 0),u=(0,n._)([(0,l.$)("esri.layers.support.Domain")],u);const d=u},33143:(e,t,i)=>{i.d(t,{A:()=>y});var n=i(90237),r=i(69540),o=i(25482),s=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),l=i(40608),p=i(43937),u=i(80451),d=i(29005);let c=class extends((0,r.O)(o.oY)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const i of Object.keys(e))t[i]=(0,u.rS)(e[i]);return t}writeDomains(e,t){const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,n._)([(0,s.M)({json:{write:!0}})],c.prototype,"id",void 0),(0,n._)([(0,s.M)({json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,s.M)({json:{write:!0}})],c.prototype,"domains",void 0),(0,n._)([(0,a.w)("domains")],c.prototype,"readDomains",null),(0,n._)([(0,p.K)("domains")],c.prototype,"writeDomains",null),(0,n._)([(0,s.M)({type:[d.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,n._)([(0,l.$)("esri.layers.support.FeatureType")],c);const y=c},20437:(e,t,i)=>{i.d(t,{A:()=>h});var n,r=i(90237),o=i(66552),s=i(25482),a=i(10107),l=i(56507),p=(i(87811),i(44208),i(93223)),u=i(36005),d=i(40608),c=i(80451),y=i(98453);const m=new o.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let f=n=class extends s.oY{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?.value??null}readValueType(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?m.fromJSON(i.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,r._)([(0,a.M)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,r._)([(0,a.M)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,r._)([(0,a.M)()],f.prototype,"description",void 0),(0,r._)([(0,u.w)("description")],f.prototype,"readDescription",null),(0,r._)([(0,a.M)({types:c.gK,json:{read:{reader:c.rS},write:!0}})],f.prototype,"domain",void 0),(0,r._)([(0,a.M)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,r._)([(0,a.M)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,r._)([(0,a.M)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,r._)([(0,a.M)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,r._)([(0,p.e)(y.m)],f.prototype,"type",void 0),(0,r._)([(0,a.M)()],f.prototype,"valueType",void 0),(0,r._)([(0,u.w)("valueType",["description"])],f.prototype,"readValueType",null),(0,r._)([(0,a.M)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=n=(0,r._)([(0,d.$)("esri.layers.support.Field")],f);const h=f},95466:(e,t,i)=>{i.d(t,{A:()=>c});var n=i(49186),r=i(25482),o=i(53966),s=i(91869),a=i(3330),l=i(30524),p=i(56400),u=i(96285);const d=new Map;class c{static fromJSON(e){return new c(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new c(e.fields??[],h(e))}static fromLayerJSON(e){return new c(e.fields??[],h(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,n=m(t);if(t&&n){const r=y(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(n,e),i.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.te)(e)||(0,l.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,l.te)(e)||(0,l.Xz)(e)||e.nullable||void 0!==(0,l.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(y(e))??this._normalizedFieldsMap.get(m(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(o.A.getLogger("esri.layers.support.FieldsIndex").error(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),p.n$):f.has(t.type)?p.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===p.L5?a.GB.instance:t===p.n$?u.mQ.utcInstance:(0,s.tE)(d,t,(()=>u.oh.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,r.Wj)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function y(e){return e.trim().toLowerCase()}function m(e){return(0,l.rS)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function h(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:r}=e,o=(n?"startField"in n?n.startField:n.startTimeField:"")??"",s=(n?"endField"in n?n.endField:n.endTimeField:"")??"",a=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,p.ZS)(e.dateFieldsTimeReference):null,l=r?function(e){return"timeZone"in e}(r)?r.timeZone??a:r.dateFieldsTimeReference?(0,p.ZS)(r.dateFieldsTimeReference):a??p.n$:null,u=n?function(e){return"timeZone"in e}(n)?n.timeZone??a:n.timeReference?(0,p.ZS)(n.timeReference):a:null,d=new Map([[y(r?.creationDateField??""),l],[y(r?.editDateField??""),l],[y(o),u],[y(s),u]]);for(const{name:n,type:r}of e.fields)if(f.has(r))t.set(n,p.L5);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(n,null);else if(i)t.set(n,p.L5);else{const e=d.get(y(n??""))??a;t.set(n,e)}return t}},80451:(e,t,i)=>{i.d(t,{rS:()=>h,gK:()=>f}),i(44208);var n,r=i(53177),o=i(76357),s=i(90237),a=(i(53966),i(87811),i(49186),i(93223)),l=i(40608);let p=n=class extends o.A{constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,s._)([(0,a.e)({inherited:"inherited"})],p.prototype,"type",void 0),p=n=(0,s._)([(0,l.$)("esri.layers.support.InheritedDomain")],p);const u=p;var d,c=i(10107);let y=d=class extends o.A{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new d({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,s._)([(0,c.M)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,i){t[i]=[this.minValue||0,e]}}}})],y.prototype,"maxValue",void 0),(0,s._)([(0,c.M)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,i){t[i]=[e,this.maxValue||0]}}}})],y.prototype,"minValue",void 0),(0,s._)([(0,a.e)({range:"range"})],y.prototype,"type",void 0),y=d=(0,s._)([(0,l.$)("esri.layers.support.RangeDomain")],y);const m=y,f={key:"type",base:o.A,typeMap:{range:m,"coded-value":r.A,inherited:u}};function h(e){if(!e?.type)return null;switch(e.type){case"range":return m.fromJSON(e);case"codedValue":return r.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453:(e,t,i)=>{i.d(t,{m:()=>n});const n=new(i(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},32730:(e,t,i)=>{i.d(t,{BI:()=>h,D3:()=>m,XJ:()=>f,lc:()=>y,mX:()=>v,rU:()=>g,tH:()=>N});var n=i(799);const r="__begin__",o="__end__",s=new RegExp(r,"ig"),a=new RegExp(o,"ig"),l=new RegExp("^"+r,"i"),p=new RegExp(o+"$","i"),u='"',d=u+" + ",c=" + "+u;function y(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function m(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=y(e.labelExpression),t.type="conventional"),t}function h(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return v(t.expression);case"arcade":return t.expression}return null}function g(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(_);return t?.[1].trim()||null}(t.expression);case"arcade":return N(t.expression)}return null}function v(e){let t;return e?(t=(0,n.HC)(e,(e=>r+'$feature["'+e+'"]'+o)),t=l.test(t)?t.replace(l,""):u+t,t=p.test(t)?t.replace(p,""):t+u,t=t.replaceAll(s,d).replaceAll(a,c)):t='""',t}const _=/^\s*\{([^}]+)\}\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,M=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,x=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function N(e){if(!e)return null;let t=w.exec(e)||M.exec(e);return t?t[1]||t[3]:(t=x.exec(e),t?t[2]:null)}},58501:(e,t,i)=>{i.d(t,{q:()=>r});var n=i(62815);function r(e,t,i){if(!i?.features||!i.hasZ)return;const r=(0,n.N)(i.geometryType,t,e.outSpatialReference);if(null!=r)for(const e of i.features)r(e.geometry)}},22671:(e,t,i)=>{i.d(t,{A:()=>_});var n,r=i(90237),o=i(59456),s=i(52106),a=i(66552),l=i(25482),p=i(4718),u=i(10107),d=(i(44208),i(53966),i(36005)),c=i(40608),y=i(43937),m=i(16930),f=i(65864),h=i(20437);const g=new a.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=n=class extends l.oY{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const i=m.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const r=e[t],o=s.A.fromJSON(r),a=r.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=i);const l=r.aggregateGeometries,p=o.aggregateGeometries;if(l&&null!=p)for(const e in p){const t=p[e],n=l[e],r=n?.spatialReference;null==t||r||(t.spatialReference=i)}n.push(o)}return n}writeGeometryType(e,t,i,n){if(e)return void g.write(e,t,i,n);const{features:r}=this;if(r)for(const e of r)if(null!=e?.geometry)return void g.write(e.geometry.type,t,i,n)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,n=(0,f.rS)(e);return n&&!i&&t.spatialReference&&(n.spatialReference=m.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,p.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){const n=t.features[i];if(n.geometry){const t=e?.[i];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,i],translate:[n,r]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((r-e)/i)));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[n,r],scale:[o,s]}=i;let a=null,l=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;a=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;l=i=>null==i?i:i*t+e}const p=this._getHydrationFunction(e,(e=>e*o+n),(e=>r-e*s),a,l);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}_quantizePoints(e,t,i){let n,r;const o=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=i(a[1]);e===n&&s===r||(o.push([e-n,s-r]),n=e,r=s)}else n=t(a[0]),r=i(a[1]),o.push([n,r])}return o.length>0?o:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,f.Bi)(e)?e.rings:e.paths,r=[];for(let e=0,o=n.length;e<o;e++){const o=n[e],s=this._quantizePoints(o,t,i);s&&r.push(s)}return r.length>0?((0,f.Bi)(e)?e.rings=r:e.paths=r,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,i);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,n,r){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,f.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,n=o.length;e<n;e++){const n=o[e];for(let e=0,r=n.length;e<r;e++){const r=n[e];e>0?(s+=r[0],a+=r[1]):(s=r[0],a=r[1]),r[0]=t(s),r[1]=i(a)}}if(n&&r)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2]),i[3]=r(i[3])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2])}}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),r&&null!=e.mmax&&null!=e.mmin&&(e.mmax=r(e.mmax),e.mmin=r(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,a;for(let e=0,n=o.length;e<n;e++){const n=o[e];e>0?(s+=n[0],a+=n[1]):(s=n[0],a=n[1]),n[0]=t(s),n[1]=i(a)}if(n&&r)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2]),t[3]=r(t[3])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2])}}:null}};(0,r._)([(0,u.M)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,r._)([(0,u.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,r._)([(0,u.M)({type:[s.A],json:{write:!0}})],v.prototype,"features",void 0),(0,r._)([(0,d.w)("features")],v.prototype,"readFeatures",null),(0,r._)([(0,u.M)({type:[h.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,r._)([(0,u.M)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,r._)([(0,y.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,r._)([(0,u.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,r._)([(0,u.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,r._)([(0,u.M)({types:o.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,r._)([(0,d.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,r._)([(0,u.M)({type:m.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,r._)([(0,y.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,r._)([(0,u.M)({json:{write:!0}})],v.prototype,"transform",void 0),v=n=(0,r._)([(0,c.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const _=v}}]);
|