@arcgis/core 4.28.0-next.20231002 → 4.28.0-next.20231003
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/{4d967e98d229f18d61f5.js → 09e8babe75407c2e64c4.js} +1 -1
- package/assets/esri/core/workers/chunks/0d8ca51043c7784aed96.js +1 -0
- package/assets/esri/core/workers/chunks/3e6255ab48b561af131e.js +1 -0
- package/assets/esri/core/workers/chunks/{4e04242e707c0eb3aa4a.js → 5a3ccc0a19ac8fa9e524.js} +1 -1
- package/assets/esri/core/workers/chunks/{d5dfc03673aec8aa57e2.js → b04eb35e06b1c5759ad0.js} +1 -1
- package/assets/esri/core/workers/chunks/{b7ef554b1213307499fc.js → b6847d68c35e7dbf6004.js} +1 -1
- package/assets/esri/core/workers/chunks/{ef5772ca1848d6d01b88.js → eda86faa708cfe4c9f9a.js} +1 -1
- package/assets/esri/core/workers/chunks/{a0ea1d3e22d52b8a59a8.js → fa6103e3d4e857b0035b.js} +9 -9
- package/assets/esri/geometry/support/pe-wasm.wasm +0 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/pe-wasm.js +1 -1
- package/geometry/support/WKIDUnitConversion.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/interfaces.d.ts +37 -7
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/support/versionUtils.js +1 -1
- package/networks/UtilityNetwork.js +1 -1
- package/package.json +1 -1
- package/rest/print.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/interactive/editingTools/draw/DrawGraphicTool2D.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
- package/views/draw/DrawGraphicTool.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/draw/support/Box.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
- package/views/interactive/snapping/FeatureSnappingSourceInfo.js +5 -0
- package/views/interactive/snapping/SnappingContext.js +1 -1
- package/views/interactive/snapping/SnappingDragPipelineStep.js +1 -1
- package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorkerHandle.js +1 -1
- package/views/interactive/snapping/snappingUtils.js +1 -1
- package/widgets/Editor/Upload.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/ElevationProfile/support/chartUtils.js +1 -1
- package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
- package/widgets/FeatureForm/FieldInput.js +1 -1
- package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/FeatureTable/Grid/Column.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/ScaleRangeSlider.js +1 -1
- package/widgets/support/DatePicker.js +1 -1
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
- package/widgets/support/Selector2D/SelectionOperation2D.js +1 -1
- package/widgets/support/Selector2D.js +1 -1
- package/widgets/support/TimePicker.js +1 -1
- package/widgets/support/dateUtils.js +1 -1
- package/assets/esri/core/workers/chunks/0ebf58c927bfc4c9d4fe.js +0 -1
- package/assets/esri/core/workers/chunks/24b1bf1a5d80f43a6c9a.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7374],{84552:(e,t,r)=>{r.d(t,{Z:()=>y});var i=r(43697),s=r(2368),o=r(96674),n=r(35463),a=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),d=r(52011),u=r(78981);let p=class extends((0,s.J)(o.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,n.rJ)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.J)(u.v,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i._)([(0,d.j)("esri.TimeInterval")],p);const y=p},91040:(e,t,r)=>{r.d(t,{o2:()=>a,yZ:()=>n});var i=r(22021),s=r(67900);const o=96;function n(e,t){const r=t||e.extent,i=e.width,n=(0,s.c9)(r?.spatialReference);return r&&i?r.width/i*n*s.hd*o:0}function a(e,t,r){return function(e,t){return 0===t||(0,i.W8)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.W8)(e,t)||e>t}(e,r)}},27374:(e,t,r)=>{r.r(t),r.d(t,{default:()=>A});var i=r(43697),s=r(3172),o=r(92835),n=r(20102),a=r(68668),l=r(16453),d=r(95330),u=r(5600),p=r(75215),y=(r(67676),r(80442),r(71715)),m=r(52011),c=r(30556),f=r(31263),h=r(6570),b=r(91040),v=r(8744),g=r(87085),w=r(54295),_=r(7944),x=r(17287),S=r(71612),I=r(17017),T=r(38009),C=r(16859),O=r(34760),E=r(72965),L=r(10343),N=r(28294),U=r(21506),F=r(92036),j=r(42033);function Z(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter((e=>""!==e)).map((e=>`'${e}'`));return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var D=r(32073);const M={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let P=class extends F.Z{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map((e=>{const t=Z(this.floors,e);return e.toExportImageJSON(t)}));return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,D.FN)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",(()=>this.notifyChange("visibleSublayers"))),e.on("sublayer-update",(e=>this.notifyChange(M[e.propertyName])))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map((e=>e.id)).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter((t=>null!=t.definitionExpression||e&&null!=t.floorInfo));return t.length?JSON.stringify(t.reduce(((e,t)=>{const r=Z(this.floors,t),i=(0,j._)(r,t.definitionExpression);return null!=i&&(e[t.id]=i),e}),{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers"),this.commitProperty("timeExtent");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,i=t=>{t.visible&&(0===r||(0,b.o2)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(i):e.unshift(t))};t&&t.forEach(i);const s=this._get("visibleSublayers");return!s||s.length!==e.length||s.some(((t,r)=>e[r]!==t))?e:s}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"dynamicLayers",null),(0,i._)([(0,u.Cb)()],P.prototype,"floors",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"hasDynamicLayers",null),(0,i._)([(0,u.Cb)()],P.prototype,"layer",null),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"layers",null),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"layerDefs",null),(0,i._)([(0,u.Cb)({type:Number})],P.prototype,"scale",void 0),(0,i._)([(0,u.Cb)(U.qG)],P.prototype,"timeExtent",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"version",null),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"visibleSublayers",null),P=(0,i._)([(0,m.j)("esri.layers.mixins.ExportImageParameters")],P);var J=r(90082),R=r(49867),k=r(60199),V=r(25031);let q=class extends((0,S.h)((0,N.n)((0,E.M)((0,L.x)((0,_.O)((0,x.Y)((0,T.q)((0,C.I)((0,l.R)((0,O.Q)((0,w.V)((0,I.N)(g.Z))))))))))))){constructor(...e){super(...e),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(d.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const s=e.slice().reverse().flatten((({sublayers:e})=>e&&e.toArray().reverse())).toArray();let o=!1;if(this.capabilities&&this.capabilities.operations.supportsExportMap&&this.capabilities.exportMap?.supportsDynamicLayers){const e=(0,f.M9)(i.origin);if(e===f.s3.PORTAL_ITEM){const e=this.createSublayersForOrigin("service").sublayers;o=(0,D.QV)(s,e,f.s3.SERVICE)}else if(e>f.s3.PORTAL_ITEM){const e=this.createSublayersForOrigin("portal-item");o=(0,D.QV)(s,e.sublayers,(0,f.M9)(e.origin))}}const n=[],a={writeSublayerStructure:o,...i};let l=o;s.forEach((e=>{const t=e.write({},a);n.push(t),l=l||"user"===e.originOf("visible")})),n.some((e=>Object.keys(e).length>1))&&(t.layers=n),l&&(t.visibleLayers=s.filter((e=>e.visible)).map((e=>e.id)))}createExportImageParameters(e,t,r,i){const s=i?.pixelRatio||1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian());const o=new P({layer:this,floors:i?.floors,scale:(0,b.yZ)({extent:e,width:t})*s}),n=o.toJSON();o.destroy();const a=!i?.rotation||this.version<10.3?{}:{rotation:-i.rotation},l=e?.spatialReference,d=(0,v.B9)(l);n.dpi*=s;const u={};if(i?.timeExtent){const{start:e,end:t}=i.timeExtent.toJSON();u.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(u.time="null,null");return{bbox:e&&e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:d,imageSR:d,size:t+","+r,...n,...a,...u}}async fetchImage(e,t,r,i){const{data:s}=await this._fetchImage("image",e,t,r,i);return s}async fetchImageBitmap(e,t,r,i){const{data:s,url:o}=await this._fetchImage("blob",e,t,r,i);return(0,J.g)(s,o,i?.signal)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,s.Z)(this.url,t),{extent:i,fullExtent:n,timeExtent:a}=r,l=i||n;return{fullExtent:l&&h.Z.fromJSON(l),timeExtent:a&&o.Z.fromJSON({start:a[0],end:a[1]})}}loadAll(){return(0,a.G)(this,(e=>{e(this.allSublayers)}))}serviceSupportsSpatialReference(e){return(0,k.D)(this,e)}async _fetchImage(e,t,r,i,o){const a={responseType:e,signal:o?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,o),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=a.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new n.Z("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:a.query});try{const{data:e}=await(0,s.Z)(l,a);return{data:e,url:l}}catch(e){if((0,d.D_)(e))throw e;throw new n.Z("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,s.Z)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}};(0,i._)([(0,u.Cb)((0,V.mi)("dateFieldsTimeReference"))],q.prototype,"dateFieldsTimeZone",void 0),(0,i._)([(0,u.Cb)({type:Boolean})],q.prototype,"datesInUnknownTimezone",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"dpi",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"gdbVersion",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"imageFormat",void 0),(0,i._)([(0,y.r)("imageFormat",["supportedImageFormatTypes"])],q.prototype,"readImageFormat",null),(0,i._)([(0,u.Cb)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],q.prototype,"imageMaxHeight",void 0),(0,i._)([(0,u.Cb)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],q.prototype,"imageMaxWidth",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"imageTransparency",void 0),(0,i._)([(0,u.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],q.prototype,"isReference",void 0),(0,i._)([(0,u.Cb)({json:{read:!1,write:!1}})],q.prototype,"labelsVisible",void 0),(0,i._)([(0,u.Cb)({type:["ArcGISMapServiceLayer"]})],q.prototype,"operationalLayerType",void 0),(0,i._)([(0,u.Cb)({json:{read:!1,write:!1}})],q.prototype,"popupEnabled",void 0),(0,i._)([(0,u.Cb)((0,V.mi)("preferredTimeReference"))],q.prototype,"preferredTimeZone",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"sourceJSON",void 0),(0,i._)([(0,u.Cb)({json:{write:{ignoreOrigin:!0}}})],q.prototype,"sublayers",void 0),(0,i._)([(0,c.c)("sublayers",{layers:{type:[R.Z]},visibleLayers:{type:[p.z8]}})],q.prototype,"writeSublayers",null),(0,i._)([(0,u.Cb)({type:["show","hide","hide-children"]})],q.prototype,"listMode",void 0),(0,i._)([(0,u.Cb)({json:{read:!1},readOnly:!0,value:"map-image"})],q.prototype,"type",void 0),(0,i._)([(0,u.Cb)(U.HQ)],q.prototype,"url",void 0),q=(0,i._)([(0,m.j)("esri.layers.MapImageLayer")],q);const A=q},17287:(e,t,r)=>{r.d(t,{Y:()=>l});var i=r(43697),s=r(92604),o=r(5600),n=(r(75215),r(67676),r(80442),r(52011)),a=r(66677);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.Qc)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Nm)(e,s.Z.getLogger(this)))}};return(0,i._)([(0,o.Cb)()],t.prototype,"title",null),(0,i._)([(0,o.Cb)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,n.j)("esri.layers.mixins.ArcGISService")],t),t}},28294:(e,t,r)=>{r.d(t,{n:()=>y});var i=r(43697),s=r(92835),o=r(84552),n=r(5600),a=(r(75215),r(67676),r(80442),r(71715)),l=r(52011),d=r(35671),u=r(76259),p=r(78981);const y=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,s=p.v.fromJSON(r.timeOffsetUnits);return i&&s?new o.Z({value:i,unit:s}):null}set timeInfo(e){(0,d.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,n.Cb)({type:s.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,n.Cb)({type:o.Z})],t.prototype,"timeOffset",void 0),(0,i._)([(0,a.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,n.Cb)({value:null,type:u.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,n.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,l.j)("esri.layers.mixins.TemporalLayer")],t),t}},76259:(e,t,r)=>{r.d(t,{Z:()=>f});var i=r(43697),s=r(92835),o=r(84552),n=r(2368),a=r(96674),l=r(5600),d=(r(75215),r(67676),r(80442),r(71715)),u=r(52011),p=r(30556),y=r(25031);function m(e,t){return o.Z.fromJSON({value:e,unit:t})}let c=class extends((0,n.J)(a.wq)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new s.Z({start:r,end:i})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?m(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?m(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],c.prototype,"cumulative",void 0),(0,i._)([(0,l.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],c.prototype,"endField",void 0),(0,i._)([(0,l.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"fullTimeExtent",void 0),(0,i._)([(0,d.r)("fullTimeExtent",["timeExtent"])],c.prototype,"readFullTimeExtent",null),(0,i._)([(0,p.c)("fullTimeExtent")],c.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],c.prototype,"hasLiveData",void 0),(0,i._)([(0,l.Cb)({type:o.Z,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"interval",void 0),(0,i._)([(0,d.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],c.prototype,"readInterval",null),(0,i._)([(0,p.c)("interval")],c.prototype,"writeInterval",null),(0,i._)([(0,l.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],c.prototype,"startField",void 0),(0,i._)([(0,l.Cb)((0,y.mi)("timeReference",!0))],c.prototype,"timeZone",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"trackIdField",void 0),(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],c.prototype,"useTime",void 0),c=(0,i._)([(0,u.j)("esri.layers.support.TimeInfo")],c);const f=c},60199:(e,t,r)=>{r.d(t,{D:()=>o});var i=r(66677);const s=[];function o(e,t){if((0,i.M8)(e.url??""))return!0;const{wkid:r}=t;for(const t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}s.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102901;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}]),s.push([10.7,()=>{const e=new Set([8387,8391,8427,8545,8682,8685,8818,31370,104022,104024,104975]);for(let t=8065;t<=8068;t++)e.add(t);for(let t=8082;t<=8083;t++)e.add(t);for(let t=8379;t<=8385;t++)e.add(t);for(let t=8836;t<=8840;t++)e.add(t);for(let t=8857;t<=8860;t++)e.add(t);for(let t=53035;t<=53037;t++)e.add(t);for(let t=54090;t<=54091;t++)e.add(t);for(let t=102498;t<=102499;t++)e.add(t);return e}]),s.push([10.61,()=>new Set([102497])]),s.push([10.6,()=>{const e=new Set([7803,7805,7887,8086,8232,8237,8240,8246,8249,8252,8255,9019,9391]);for(let t=7755;t<=7787;t++)e.add(t);for(let t=7791;t<=7795;t++)e.add(t);for(let t=7799;t<=7801;t++)e.add(t);for(let t=7825;t<=7831;t++)e.add(t);for(let t=7877;t<=7878;t++)e.add(t);for(let t=7882;t<=7883;t++)e.add(t);for(let t=7991;t<=7992;t++)e.add(t);for(let t=8042;t<=8043;t++)e.add(t);for(let t=8058;t<=8059;t++)e.add(t);for(let t=8311;t<=8348;t++)e.add(t);for(let t=9060;t<=9067;t++)e.add(t);for(let t=102562;t<=102568;t++)e.add(t);for(let t=102799;t<=102900;t++)e.add(t);return e}]),s.push([10.51,()=>{const e=new Set([7683,7881,7886,7899,8888,9e3]);for(let t=8013;t<=8032;t++)e.add(t);for(let t=9053;t<=9057;t++)e.add(t);for(let t=104017;t<=104018;t++)e.add(t);for(let t=104971;t<=104974;t++)e.add(t);return e}]),s.push([10.5,()=>{const e=new Set([6962,7035,7037,7039,7041,7084,7086,7133,7798,102399]);for(let t=4087;t<=4088;t++)e.add(t);for(let t=5896;t<=5899;t++)e.add(t);for(let t=7005;t<=7007;t++)e.add(t);for(let t=7057;t<=7070;t++)e.add(t);for(let t=7073;t<=7082;t++)e.add(t);for(let t=7109;t<=7128;t++)e.add(t);for(let t=7844;t<=7859;t++)e.add(t);return e}])},78981:(e,t,r)=>{r.d(t,{v:()=>i});const i=(0,r(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7374],{84552:(e,t,r)=>{r.d(t,{Z:()=>y});var i=r(43697),s=r(2368),o=r(96674),n=r(35463),a=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),d=r(52011),u=r(78981);let p=class extends((0,s.J)(o.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,n.rJ)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.J)(u.v,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i._)([(0,d.j)("esri.TimeInterval")],p);const y=p},91040:(e,t,r)=>{r.d(t,{o2:()=>a,yZ:()=>n});var i=r(22021),s=r(67900);const o=96;function n(e,t){const r=t||e.extent,i=e.width,n=(0,s.c9)(r?.spatialReference);return r&&i?r.width/i*n*s.hd*o:0}function a(e,t,r){return function(e,t){return 0===t||(0,i.W8)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.W8)(e,t)||e>t}(e,r)}},27374:(e,t,r)=>{r.r(t),r.d(t,{default:()=>A});var i=r(43697),s=r(3172),o=r(92835),n=r(20102),a=r(68668),l=r(16453),d=r(95330),u=r(5600),p=r(75215),y=(r(67676),r(80442),r(71715)),m=r(52011),c=r(30556),h=r(31263),f=r(6570),b=r(91040),v=r(8744),g=r(87085),_=r(54295),w=r(7944),x=r(17287),S=r(71612),I=r(17017),T=r(38009),C=r(16859),O=r(34760),E=r(72965),L=r(10343),N=r(28294),U=r(21506),F=r(92036),j=r(42033);function Z(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter((e=>""!==e)).map((e=>`'${e}'`));return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var D=r(32073);const M={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let P=class extends F.Z{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map((e=>{const t=Z(this.floors,e);return e.toExportImageJSON(t)}));return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,D.FN)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",(()=>this.notifyChange("visibleSublayers"))),e.on("sublayer-update",(e=>this.notifyChange(M[e.propertyName])))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map((e=>e.id)).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter((t=>null!=t.definitionExpression||e&&null!=t.floorInfo));return t.length?JSON.stringify(t.reduce(((e,t)=>{const r=Z(this.floors,t),i=(0,j._)(r,t.definitionExpression);return null!=i&&(e[t.id]=i),e}),{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers"),this.commitProperty("timeExtent");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,i=t=>{t.visible&&(0===r||(0,b.o2)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(i):e.unshift(t))};t&&t.forEach(i);const s=this._get("visibleSublayers");return!s||s.length!==e.length||s.some(((t,r)=>e[r]!==t))?e:s}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"dynamicLayers",null),(0,i._)([(0,u.Cb)()],P.prototype,"floors",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"hasDynamicLayers",null),(0,i._)([(0,u.Cb)()],P.prototype,"layer",null),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"layers",null),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"layerDefs",null),(0,i._)([(0,u.Cb)({type:Number})],P.prototype,"scale",void 0),(0,i._)([(0,u.Cb)(U.qG)],P.prototype,"timeExtent",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"version",null),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"visibleSublayers",null),P=(0,i._)([(0,m.j)("esri.layers.mixins.ExportImageParameters")],P);var J=r(90082),R=r(49867),k=r(60199),V=r(25031);let q=class extends((0,S.h)((0,N.n)((0,E.M)((0,L.x)((0,w.O)((0,x.Y)((0,T.q)((0,C.I)((0,l.R)((0,O.Q)((0,_.V)((0,I.N)(g.Z))))))))))))){constructor(...e){super(...e),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(d.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const s=e.slice().reverse().flatten((({sublayers:e})=>e&&e.toArray().reverse())).toArray();let o=!1;if(this.capabilities&&this.capabilities.operations.supportsExportMap&&this.capabilities.exportMap?.supportsDynamicLayers){const e=(0,h.M9)(i.origin);if(e===h.s3.PORTAL_ITEM){const e=this.createSublayersForOrigin("service").sublayers;o=(0,D.QV)(s,e,h.s3.SERVICE)}else if(e>h.s3.PORTAL_ITEM){const e=this.createSublayersForOrigin("portal-item");o=(0,D.QV)(s,e.sublayers,(0,h.M9)(e.origin))}}const n=[],a={writeSublayerStructure:o,...i};let l=o;s.forEach((e=>{const t=e.write({},a);n.push(t),l=l||"user"===e.originOf("visible")})),n.some((e=>Object.keys(e).length>1))&&(t.layers=n),l&&(t.visibleLayers=s.filter((e=>e.visible)).map((e=>e.id)))}createExportImageParameters(e,t,r,i){const s=i?.pixelRatio||1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian());const o=new P({layer:this,floors:i?.floors,scale:(0,b.yZ)({extent:e,width:t})*s}),n=o.toJSON();o.destroy();const a=!i?.rotation||this.version<10.3?{}:{rotation:-i.rotation},l=e?.spatialReference,d=(0,v.B9)(l);n.dpi*=s;const u={};if(i?.timeExtent){const{start:e,end:t}=i.timeExtent.toJSON();u.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(u.time="null,null");return{bbox:e&&e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:d,imageSR:d,size:t+","+r,...n,...a,...u}}async fetchImage(e,t,r,i){const{data:s}=await this._fetchImage("image",e,t,r,i);return s}async fetchImageBitmap(e,t,r,i){const{data:s,url:o}=await this._fetchImage("blob",e,t,r,i);return(0,J.g)(s,o,i?.signal)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,s.Z)(this.url,t),{extent:i,fullExtent:n,timeExtent:a}=r,l=i||n;return{fullExtent:l&&f.Z.fromJSON(l),timeExtent:a&&o.Z.fromJSON({start:a[0],end:a[1]})}}loadAll(){return(0,a.G)(this,(e=>{e(this.allSublayers)}))}serviceSupportsSpatialReference(e){return(0,k.D)(this,e)}async _fetchImage(e,t,r,i,o){const a={responseType:e,signal:o?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,o),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=a.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new n.Z("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:a.query});try{const{data:e}=await(0,s.Z)(l,a);return{data:e,url:l}}catch(e){if((0,d.D_)(e))throw e;throw new n.Z("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,s.Z)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}};(0,i._)([(0,u.Cb)((0,V.mi)("dateFieldsTimeReference"))],q.prototype,"dateFieldsTimeZone",void 0),(0,i._)([(0,u.Cb)({type:Boolean})],q.prototype,"datesInUnknownTimezone",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"dpi",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"gdbVersion",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"imageFormat",void 0),(0,i._)([(0,y.r)("imageFormat",["supportedImageFormatTypes"])],q.prototype,"readImageFormat",null),(0,i._)([(0,u.Cb)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],q.prototype,"imageMaxHeight",void 0),(0,i._)([(0,u.Cb)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],q.prototype,"imageMaxWidth",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"imageTransparency",void 0),(0,i._)([(0,u.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],q.prototype,"isReference",void 0),(0,i._)([(0,u.Cb)({json:{read:!1,write:!1}})],q.prototype,"labelsVisible",void 0),(0,i._)([(0,u.Cb)({type:["ArcGISMapServiceLayer"]})],q.prototype,"operationalLayerType",void 0),(0,i._)([(0,u.Cb)({json:{read:!1,write:!1}})],q.prototype,"popupEnabled",void 0),(0,i._)([(0,u.Cb)((0,V.mi)("preferredTimeReference"))],q.prototype,"preferredTimeZone",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"sourceJSON",void 0),(0,i._)([(0,u.Cb)({json:{write:{ignoreOrigin:!0}}})],q.prototype,"sublayers",void 0),(0,i._)([(0,c.c)("sublayers",{layers:{type:[R.Z]},visibleLayers:{type:[p.z8]}})],q.prototype,"writeSublayers",null),(0,i._)([(0,u.Cb)({type:["show","hide","hide-children"]})],q.prototype,"listMode",void 0),(0,i._)([(0,u.Cb)({json:{read:!1},readOnly:!0,value:"map-image"})],q.prototype,"type",void 0),(0,i._)([(0,u.Cb)(U.HQ)],q.prototype,"url",void 0),q=(0,i._)([(0,m.j)("esri.layers.MapImageLayer")],q);const A=q},17287:(e,t,r)=>{r.d(t,{Y:()=>l});var i=r(43697),s=r(92604),o=r(5600),n=(r(75215),r(67676),r(80442),r(52011)),a=r(66677);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.Qc)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Nm)(e,s.Z.getLogger(this)))}};return(0,i._)([(0,o.Cb)()],t.prototype,"title",null),(0,i._)([(0,o.Cb)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,n.j)("esri.layers.mixins.ArcGISService")],t),t}},28294:(e,t,r)=>{r.d(t,{n:()=>y});var i=r(43697),s=r(92835),o=r(84552),n=r(5600),a=(r(75215),r(67676),r(80442),r(71715)),l=r(52011),d=r(35671),u=r(76259),p=r(78981);const y=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,s=p.v.fromJSON(r.timeOffsetUnits);return i&&s?new o.Z({value:i,unit:s}):null}set timeInfo(e){(0,d.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,n.Cb)({type:s.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,n.Cb)({type:o.Z})],t.prototype,"timeOffset",void 0),(0,i._)([(0,a.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,n.Cb)({value:null,type:u.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,n.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,l.j)("esri.layers.mixins.TemporalLayer")],t),t}},76259:(e,t,r)=>{r.d(t,{Z:()=>h});var i=r(43697),s=r(92835),o=r(84552),n=r(2368),a=r(96674),l=r(5600),d=(r(75215),r(67676),r(80442),r(71715)),u=r(52011),p=r(30556),y=r(25031);function m(e,t){return o.Z.fromJSON({value:e,unit:t})}let c=class extends((0,n.J)(a.wq)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new s.Z({start:r,end:i})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?m(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?m(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],c.prototype,"cumulative",void 0),(0,i._)([(0,l.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],c.prototype,"endField",void 0),(0,i._)([(0,l.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"fullTimeExtent",void 0),(0,i._)([(0,d.r)("fullTimeExtent",["timeExtent"])],c.prototype,"readFullTimeExtent",null),(0,i._)([(0,p.c)("fullTimeExtent")],c.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],c.prototype,"hasLiveData",void 0),(0,i._)([(0,l.Cb)({type:o.Z,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"interval",void 0),(0,i._)([(0,d.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],c.prototype,"readInterval",null),(0,i._)([(0,p.c)("interval")],c.prototype,"writeInterval",null),(0,i._)([(0,l.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],c.prototype,"startField",void 0),(0,i._)([(0,l.Cb)((0,y.mi)("timeReference",!0))],c.prototype,"timeZone",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"trackIdField",void 0),(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],c.prototype,"useTime",void 0),c=(0,i._)([(0,u.j)("esri.layers.support.TimeInfo")],c);const h=c},60199:(e,t,r)=>{r.d(t,{D:()=>o});var i=r(66677);const s=[];function o(e,t){if((0,i.M8)(e.url??""))return!0;const{wkid:r}=t;for(const t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}s.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}]),s.push([10.7,()=>{const e=new Set([8387,8391,8427,8545,8682,8685,8818,31370,104022,104024,104975]);for(let t=8065;t<=8068;t++)e.add(t);for(let t=8082;t<=8083;t++)e.add(t);for(let t=8379;t<=8385;t++)e.add(t);for(let t=8836;t<=8840;t++)e.add(t);for(let t=8857;t<=8860;t++)e.add(t);for(let t=53035;t<=53037;t++)e.add(t);for(let t=54090;t<=54091;t++)e.add(t);for(let t=102498;t<=102499;t++)e.add(t);return e}]),s.push([10.61,()=>new Set([102497])]),s.push([10.6,()=>{const e=new Set([7803,7805,7887,8086,8232,8237,8240,8246,8249,8252,8255,9019,9391]);for(let t=7755;t<=7787;t++)e.add(t);for(let t=7791;t<=7795;t++)e.add(t);for(let t=7799;t<=7801;t++)e.add(t);for(let t=7825;t<=7831;t++)e.add(t);for(let t=7877;t<=7878;t++)e.add(t);for(let t=7882;t<=7883;t++)e.add(t);for(let t=7991;t<=7992;t++)e.add(t);for(let t=8042;t<=8043;t++)e.add(t);for(let t=8058;t<=8059;t++)e.add(t);for(let t=8311;t<=8348;t++)e.add(t);for(let t=9060;t<=9067;t++)e.add(t);for(let t=102562;t<=102568;t++)e.add(t);for(let t=102799;t<=102900;t++)e.add(t);return e}])},78981:(e,t,r)=>{r.d(t,{v:()=>i});const i=(0,r(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6774,5732,2596],{5732:(e,t,_)=>{_.d(t,{c:()=>r,g:()=>o});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},66774:(e,t,_)=>{_.r(t),_.d(t,{p:()=>s});var r,o,n,p=_(5732),i={exports:{}};r=i,o="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(o=o||__filename),n=function(e={}){var t,_,r=e;r.ready=new Promise(((e,r)=>{t=e,_=r}));var n,p,i,c=Object.assign({},r),s="./this.program",P="object"==typeof window,a="function"==typeof importScripts,g="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,y="";if(g){var d=require("fs"),u=require("path");y=a?u.dirname(y)+"/":__dirname+"/",n=(e,t)=>(e=w(e)?new URL(e):u.normalize(e),d.readFileSync(e,t?void 0:"utf8")),i=e=>{var t=n(e,!0);return t.buffer||(t=new Uint8Array(t)),t},p=(e,t,_,r=!0)=>{e=w(e)?new URL(e):u.normalize(e),d.readFile(e,r?void 0:"utf8",((e,o)=>{e?_(e):t(r?o.buffer:o)}))},!r.thisProgram&&process.argv.length>1&&(s=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),r.inspect=()=>"[Emscripten Module object]"}else(P||a)&&(a?y=self.location.href:"undefined"!=typeof document&&document.currentScript&&(y=document.currentScript.src),o&&(y=o),y=0!==y.indexOf("blob:")?y.substr(0,y.replace(/[?#].*/,"").lastIndexOf("/")+1):"",n=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},a&&(i=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),p=(e,t,_)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?t(r.response):_()},r.onerror=_,r.send(null)});var f,E,b=console.log.bind(console),m=console.error.bind(console);Object.assign(r,c),c=null,"object"!=typeof WebAssembly&&U("no native wasm support detected");var T,O,S,N,h,l,M,v=!1;function D(e,t){e||U(t)}function R(){var e=E.buffer;r.HEAP8=T=new Int8Array(e),r.HEAP16=S=new Int16Array(e),r.HEAPU8=O=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAP32=N=new Int32Array(e),r.HEAPU32=h=new Uint32Array(e),r.HEAPF32=l=new Float32Array(e),r.HEAPF64=M=new Float64Array(e)}var A=[],G=[],C=[],I=0,j=null;function U(e){m(e="Aborted("+e+")"),v=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw _(t),t}var L;function F(e){return e.startsWith("data:application/octet-stream;base64,")}function w(e){return e.startsWith("file://")}function Y(e){if(e==L&&f)return new Uint8Array(f);if(i)return i(e);throw"both async and sync fetching of the wasm failed"}function x(e,t,_){return function(e){if(P||a){if("function"==typeof fetch&&!w(e))return fetch(e,{credentials:"same-origin"}).then((t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()})).catch((()=>Y(e)));if(p)return new Promise(((t,_)=>{p(e,(e=>t(new Uint8Array(e))),_)}))}return Promise.resolve().then((()=>Y(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then((e=>e)).then(_,(e=>{m(`failed to asynchronously prepare wasm: ${e}`),U(e)}))}F(L="pe-wasm.wasm")||(L=function(e){return r.locateFile?r.locateFile(e,y):y+e}(L));var H=e=>{for(;e.length>0;)e.shift()(r)},X="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,z=(e,t,_)=>{for(var r=t+_,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&X)return X.decode(e.subarray(t,o));for(var n="";t<o;){var p=e[t++];if(128&p){var i=63&e[t++];if(192!=(224&p)){var c=63&e[t++];if((p=224==(240&p)?(15&p)<<12|i<<6|c:(7&p)<<18|i<<12|c<<6|63&e[t++])<65536)n+=String.fromCharCode(p);else{var s=p-65536;n+=String.fromCharCode(55296|s>>10,56320|1023&s)}}else n+=String.fromCharCode((31&p)<<6|i)}else n+=String.fromCharCode(p)}return n},Z=(e,t)=>e?z(O,e,t):"",W=(e,t,_,r)=>{if(!(r>0))return 0;for(var o=_,n=_+r-1,p=0;p<e.length;++p){var i=e.charCodeAt(p);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++p)),i<=127){if(_>=n)break;t[_++]=i}else if(i<=2047){if(_+1>=n)break;t[_++]=192|i>>6,t[_++]=128|63&i}else if(i<=65535){if(_+2>=n)break;t[_++]=224|i>>12,t[_++]=128|i>>6&63,t[_++]=128|63&i}else{if(_+3>=n)break;t[_++]=240|i>>18,t[_++]=128|i>>12&63,t[_++]=128|i>>6&63,t[_++]=128|63&i}}return t[_]=0,_-o},B=[0,31,60,91,121,152,182,213,244,274,305,335],K=[0,31,59,90,120,151,181,212,243,273,304,334],V=e=>{for(var t=0,_=0;_<e.length;++_){var r=e.charCodeAt(_);r<=127?t++:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,++_):t+=3}return t},k=e=>{var t=V(e)+1,_=oe(t);return _&&((e,t,_)=>{W(e,O,t,_)})(e,_,t),_},q=e=>{var t=(e-E.buffer.byteLength+65535)/65536;try{return E.grow(t),R(),1}catch(e){}},J={},$=()=>{if(!$.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:s||"./this.program"};for(var t in J)void 0===J[t]?delete e[t]:e[t]=J[t];var _=[];for(var t in e)_.push(`${t}=${e[t]}`);$.strings=_}return $.strings},Q=[null,[],[]],ee=(e,t)=>{var _=Q[e];0===t||10===t?((1===e?b:m)(z(_,0)),_.length=0):_.push(t)},te={c:function(e,t,_){return 0},r:(e,t,_)=>{},h:function(e,t,_){return 0},d:function(e,t,_,r){},p:e=>{},o:(e,t)=>{},q:(e,t,_)=>{},j:function(e,t,_){var r=((e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN)(e,t),o=new Date(1e3*r);N[_>>2]=o.getSeconds(),N[_+4>>2]=o.getMinutes(),N[_+8>>2]=o.getHours(),N[_+12>>2]=o.getDate(),N[_+16>>2]=o.getMonth(),N[_+20>>2]=o.getFullYear()-1900,N[_+24>>2]=o.getDay();var n=0|(e=>((e=>e%4==0&&(e%100!=0||e%400==0))(e.getFullYear())?B:K)[e.getMonth()]+e.getDate()-1)(o);N[_+28>>2]=n,N[_+36>>2]=-60*o.getTimezoneOffset();var p=new Date(o.getFullYear(),0,1),i=new Date(o.getFullYear(),6,1).getTimezoneOffset(),c=p.getTimezoneOffset(),s=0|(i!=c&&o.getTimezoneOffset()==Math.min(c,i));N[_+32>>2]=s},n:(e,t,_)=>{var r=(new Date).getFullYear(),o=new Date(r,0,1),n=new Date(r,6,1),p=o.getTimezoneOffset(),i=n.getTimezoneOffset(),c=Math.max(p,i);function s(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}h[e>>2]=60*c,N[t>>2]=Number(p!=i);var P=s(o),a=s(n),g=k(P),y=k(a);i<p?(h[_>>2]=g,h[_+4>>2]=y):(h[_>>2]=y,h[_+4>>2]=g)},l:()=>{U("")},i:()=>Date.now(),s:(e,t,_)=>O.copyWithin(e,t,t+_),m:e=>{var t=O.length,_=2147483648;if((e>>>=0)>_)return!1;for(var r=(e,t)=>e+(t-e%t)%t,o=1;o<=4;o*=2){var n=t*(1+.2/o);n=Math.min(n,e+100663296);var p=Math.min(_,r(Math.max(e,n),65536));if(q(p))return!0}return!1},e:(e,t)=>{var _=0;return $().forEach(((r,o)=>{var n=t+_;h[e+4*o>>2]=n,((e,t)=>{for(var _=0;_<e.length;++_)T[t++>>0]=e.charCodeAt(_);T[t>>0]=0})(r,n),_+=r.length+1})),0},f:(e,t)=>{var _=$();h[e>>2]=_.length;var r=0;return _.forEach((e=>r+=e.length+1)),h[t>>2]=r,0},a:e=>52,g:(e,t,_,r)=>52,k:function(e,t,_,r,o){return 70},b:(e,t,_,r)=>{for(var o=0,n=0;n<_;n++){var p=h[t>>2],i=h[t+4>>2];t+=8;for(var c=0;c<i;c++)ee(e,O[p+c]);o+=i}return h[r>>2]=o,0}},_e=(I++,function(e,t,_,r){return e||"function"!=typeof WebAssembly.instantiateStreaming||F(t)||w(t)||g||"function"!=typeof fetch?x(t,_,r):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,_).then(r,(function(e){return m(`wasm streaming compile failed: ${e}`),m("falling back to ArrayBuffer instantiation"),x(t,_,r)}))))}(f,L,{a:te},(function(e){!function(e,t){_e=e.exports,E=_e.t,R(),function(e){G.unshift(e)}(_e.u),function(e){if(0==--I&&j){var t=j;j=null,t()}}()}(e.instance)})).catch(_),{});r._webidl_free=e=>(r._webidl_free=_e.v)(e),r._webidl_malloc=e=>(r._webidl_malloc=_e.w)(e);var re,oe=e=>(oe=_e.x)(e),ne=r._emscripten_bind_PeObject_getCode_0=e=>(ne=r._emscripten_bind_PeObject_getCode_0=_e.y)(e),pe=r._emscripten_bind_PeObject_getName_1=(e,t)=>(pe=r._emscripten_bind_PeObject_getName_1=_e.z)(e,t),ie=r._emscripten_bind_PeObject_getType_0=e=>(ie=r._emscripten_bind_PeObject_getType_0=_e.A)(e),ce=r._emscripten_bind_PeCoordsys_getCode_0=e=>(ce=r._emscripten_bind_PeCoordsys_getCode_0=_e.B)(e),se=r._emscripten_bind_PeCoordsys_getName_1=(e,t)=>(se=r._emscripten_bind_PeCoordsys_getName_1=_e.C)(e,t),Pe=r._emscripten_bind_PeCoordsys_getType_0=e=>(Pe=r._emscripten_bind_PeCoordsys_getType_0=_e.D)(e),ae=r._emscripten_bind_VoidPtr___destroy___0=e=>(ae=r._emscripten_bind_VoidPtr___destroy___0=_e.E)(e),ge=r._emscripten_bind_PeDatum_getSpheroid_0=e=>(ge=r._emscripten_bind_PeDatum_getSpheroid_0=_e.F)(e),ye=r._emscripten_bind_PeDatum_getCode_0=e=>(ye=r._emscripten_bind_PeDatum_getCode_0=_e.G)(e),de=r._emscripten_bind_PeDatum_getName_1=(e,t)=>(de=r._emscripten_bind_PeDatum_getName_1=_e.H)(e,t),ue=r._emscripten_bind_PeDatum_getType_0=e=>(ue=r._emscripten_bind_PeDatum_getType_0=_e.I)(e),fe=r._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=e=>(fe=r._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=_e.J)(e),Ee=r._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=e=>(Ee=r._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=_e.K)(e),be=r._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=e=>(be=r._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=_e.L)(e),me=r._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=e=>(me=r._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=_e.M)(e),Te=r._emscripten_bind_PeDefs_get_PE_DD_MAX_0=e=>(Te=r._emscripten_bind_PeDefs_get_PE_DD_MAX_0=_e.N)(e),Oe=r._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=e=>(Oe=r._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=_e.O)(e),Se=r._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=e=>(Se=r._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=_e.P)(e),Ne=r._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=e=>(Ne=r._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=_e.Q)(e),he=r._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=e=>(he=r._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=_e.R)(e),le=r._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=e=>(le=r._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=_e.S)(e),Me=r._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=e=>(Me=r._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=_e.T)(e),ve=r._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=e=>(ve=r._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=_e.U)(e),De=r._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=e=>(De=r._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=_e.V)(e),Re=r._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=e=>(Re=r._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=_e.W)(e),Ae=r._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=e=>(Ae=r._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=_e.X)(e),Ge=r._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=e=>(Ge=r._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=_e.Y)(e),Ce=r._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=e=>(Ce=r._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=_e.Z)(e),Ie=r._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=e=>(Ie=r._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=_e._)(e),je=r._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=e=>(je=r._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=_e.$)(e),Ue=r._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=e=>(Ue=r._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=_e.aa)(e),Le=r._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=e=>(Le=r._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=_e.ba)(e),Fe=r._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=e=>(Fe=r._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=_e.ca)(e),we=r._emscripten_bind_PeDefs_get_PE_PARM_X0_0=e=>(we=r._emscripten_bind_PeDefs_get_PE_PARM_X0_0=_e.da)(e),Ye=r._emscripten_bind_PeDefs_get_PE_PARM_ND_0=e=>(Ye=r._emscripten_bind_PeDefs_get_PE_PARM_ND_0=_e.ea)(e),xe=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=e=>(xe=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=_e.fa)(e),He=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=e=>(He=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=_e.ga)(e),Xe=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=e=>(Xe=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=_e.ha)(e),ze=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=e=>(ze=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=_e.ia)(e),Ze=r._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=e=>(Ze=r._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=_e.ja)(e),We=r._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=e=>(We=r._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=_e.ka)(e),Be=r._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=e=>(Be=r._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=_e.la)(e),Ke=r._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=e=>(Ke=r._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=_e.ma)(e),Ve=r._emscripten_bind_PeFactory_initialize_1=(e,t)=>(Ve=r._emscripten_bind_PeFactory_initialize_1=_e.na)(e,t),ke=r._emscripten_bind_PeFactory_factoryByType_2=(e,t,_)=>(ke=r._emscripten_bind_PeFactory_factoryByType_2=_e.oa)(e,t,_),qe=r._emscripten_bind_PeFactory_fromString_2=(e,t,_)=>(qe=r._emscripten_bind_PeFactory_fromString_2=_e.pa)(e,t,_),Je=r._emscripten_bind_PeFactory_getCode_1=(e,t)=>(Je=r._emscripten_bind_PeFactory_getCode_1=_e.qa)(e,t),$e=r._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(e,t,_,o,n,p)=>($e=r._emscripten_bind_PeGCSExtent_PeGCSExtent_6=_e.ra)(e,t,_,o,n,p),Qe=r._emscripten_bind_PeGCSExtent_getLLon_0=e=>(Qe=r._emscripten_bind_PeGCSExtent_getLLon_0=_e.sa)(e),et=r._emscripten_bind_PeGCSExtent_getSLat_0=e=>(et=r._emscripten_bind_PeGCSExtent_getSLat_0=_e.ta)(e),tt=r._emscripten_bind_PeGCSExtent_getRLon_0=e=>(tt=r._emscripten_bind_PeGCSExtent_getRLon_0=_e.ua)(e),_t=r._emscripten_bind_PeGCSExtent_getNLat_0=e=>(_t=r._emscripten_bind_PeGCSExtent_getNLat_0=_e.va)(e),rt=r._emscripten_bind_PeGCSExtent___destroy___0=e=>(rt=r._emscripten_bind_PeGCSExtent___destroy___0=_e.wa)(e),ot=r._emscripten_bind_PeGeogcs_getDatum_0=e=>(ot=r._emscripten_bind_PeGeogcs_getDatum_0=_e.xa)(e),nt=r._emscripten_bind_PeGeogcs_getPrimem_0=e=>(nt=r._emscripten_bind_PeGeogcs_getPrimem_0=_e.ya)(e),pt=r._emscripten_bind_PeGeogcs_getUnit_0=e=>(pt=r._emscripten_bind_PeGeogcs_getUnit_0=_e.za)(e),it=r._emscripten_bind_PeGeogcs_getCode_0=e=>(it=r._emscripten_bind_PeGeogcs_getCode_0=_e.Aa)(e),ct=r._emscripten_bind_PeGeogcs_getName_1=(e,t)=>(ct=r._emscripten_bind_PeGeogcs_getName_1=_e.Ba)(e,t),st=r._emscripten_bind_PeGeogcs_getType_0=e=>(st=r._emscripten_bind_PeGeogcs_getType_0=_e.Ca)(e),Pt=r._emscripten_bind_PeGeogtran_isEqual_1=(e,t)=>(Pt=r._emscripten_bind_PeGeogtran_isEqual_1=_e.Da)(e,t),at=r._emscripten_bind_PeGeogtran_getGeogcs1_0=e=>(at=r._emscripten_bind_PeGeogtran_getGeogcs1_0=_e.Ea)(e),gt=r._emscripten_bind_PeGeogtran_getGeogcs2_0=e=>(gt=r._emscripten_bind_PeGeogtran_getGeogcs2_0=_e.Fa)(e),yt=r._emscripten_bind_PeGeogtran_getParameters_0=e=>(yt=r._emscripten_bind_PeGeogtran_getParameters_0=_e.Ga)(e),dt=r._emscripten_bind_PeGeogtran_loadConstants_0=e=>(dt=r._emscripten_bind_PeGeogtran_loadConstants_0=_e.Ha)(e),ut=r._emscripten_bind_PeGeogtran_getCode_0=e=>(ut=r._emscripten_bind_PeGeogtran_getCode_0=_e.Ia)(e),ft=r._emscripten_bind_PeGeogtran_getName_1=(e,t)=>(ft=r._emscripten_bind_PeGeogtran_getName_1=_e.Ja)(e,t),Et=r._emscripten_bind_PeGeogtran_getType_0=e=>(Et=r._emscripten_bind_PeGeogtran_getType_0=_e.Ka)(e),bt=r._emscripten_bind_PeGTlistExtended_getGTlist_6=(e,t,_,o,n,p,i)=>(bt=r._emscripten_bind_PeGTlistExtended_getGTlist_6=_e.La)(e,t,_,o,n,p,i),mt=r._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=e=>(mt=r._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=_e.Ma)(e),Tt=r._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=e=>(Tt=r._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=_e.Na)(e),Ot=r._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=e=>(Ot=r._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=_e.Oa)(e),St=r._emscripten_bind_PeGTlistExtendedEntry_Delete_1=(e,t)=>(St=r._emscripten_bind_PeGTlistExtendedEntry_Delete_1=_e.Pa)(e,t),Nt=r._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=e=>(Nt=r._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=_e.Qa)(e),ht=r._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=e=>(ht=r._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=_e.Ra)(e),lt=r._emscripten_bind_PeHorizon_getNump_0=e=>(lt=r._emscripten_bind_PeHorizon_getNump_0=_e.Sa)(e),Mt=r._emscripten_bind_PeHorizon_getKind_0=e=>(Mt=r._emscripten_bind_PeHorizon_getKind_0=_e.Ta)(e),vt=r._emscripten_bind_PeHorizon_getInclusive_0=e=>(vt=r._emscripten_bind_PeHorizon_getInclusive_0=_e.Ua)(e),Dt=r._emscripten_bind_PeHorizon_getSize_0=e=>(Dt=r._emscripten_bind_PeHorizon_getSize_0=_e.Va)(e),Rt=r._emscripten_bind_PeHorizon_getCoord_0=e=>(Rt=r._emscripten_bind_PeHorizon_getCoord_0=_e.Wa)(e),At=r._emscripten_bind_PeInteger_PeInteger_1=e=>(At=r._emscripten_bind_PeInteger_PeInteger_1=_e.Xa)(e),Gt=r._emscripten_bind_PeInteger_get_val_0=e=>(Gt=r._emscripten_bind_PeInteger_get_val_0=_e.Ya)(e),Ct=r._emscripten_bind_PeInteger_set_val_1=(e,t)=>(Ct=r._emscripten_bind_PeInteger_set_val_1=_e.Za)(e,t),It=r._emscripten_bind_PeInteger___destroy___0=e=>(It=r._emscripten_bind_PeInteger___destroy___0=_e._a)(e),jt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=e=>(jt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=_e.$a)(e),Ut=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=e=>(Ut=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=_e.ab)(e),Lt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=e=>(Lt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=_e.bb)(e),Ft=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=e=>(Ft=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=_e.cb)(e),wt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=e=>(wt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=_e.db)(e),Yt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=e=>(Yt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=_e.eb)(e),xt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=e=>(xt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=_e.fb)(e),Ht=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=e=>(Ht=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=_e.gb)(e),Xt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=e=>(Xt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=_e.hb)(e),zt=r._emscripten_bind_PeParameter_getValue_0=e=>(zt=r._emscripten_bind_PeParameter_getValue_0=_e.ib)(e),Zt=r._emscripten_bind_PeParameter_getCode_0=e=>(Zt=r._emscripten_bind_PeParameter_getCode_0=_e.jb)(e),Wt=r._emscripten_bind_PeParameter_getName_1=(e,t)=>(Wt=r._emscripten_bind_PeParameter_getName_1=_e.kb)(e,t),Bt=r._emscripten_bind_PeParameter_getType_0=e=>(Bt=r._emscripten_bind_PeParameter_getType_0=_e.lb)(e),Kt=r._emscripten_bind_PePCSInfo_getCentralMeridian_0=e=>(Kt=r._emscripten_bind_PePCSInfo_getCentralMeridian_0=_e.mb)(e),Vt=r._emscripten_bind_PePCSInfo_getDomainMinx_0=e=>(Vt=r._emscripten_bind_PePCSInfo_getDomainMinx_0=_e.nb)(e),kt=r._emscripten_bind_PePCSInfo_getDomainMiny_0=e=>(kt=r._emscripten_bind_PePCSInfo_getDomainMiny_0=_e.ob)(e),qt=r._emscripten_bind_PePCSInfo_getDomainMaxx_0=e=>(qt=r._emscripten_bind_PePCSInfo_getDomainMaxx_0=_e.pb)(e),Jt=r._emscripten_bind_PePCSInfo_getDomainMaxy_0=e=>(Jt=r._emscripten_bind_PePCSInfo_getDomainMaxy_0=_e.qb)(e),$t=r._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=e=>($t=r._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=_e.rb)(e),Qt=r._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=e=>(Qt=r._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=_e.sb)(e),e_=r._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=e=>(e_=r._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=_e.tb)(e),t_=r._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=e=>(t_=r._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=_e.ub)(e),__=r._emscripten_bind_PePCSInfo_isDensificationNeeded_0=e=>(__=r._emscripten_bind_PePCSInfo_isDensificationNeeded_0=_e.vb)(e),r_=r._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=e=>(r_=r._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=_e.wb)(e),o_=r._emscripten_bind_PePCSInfo_isPannableRectangle_0=e=>(o_=r._emscripten_bind_PePCSInfo_isPannableRectangle_0=_e.xb)(e),n_=r._emscripten_bind_PePCSInfo_generate_2=(e,t,_)=>(n_=r._emscripten_bind_PePCSInfo_generate_2=_e.yb)(e,t,_),p_=r._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=e=>(p_=r._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=_e.zb)(e),i_=r._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=e=>(i_=r._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=_e.Ab)(e),c_=r._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=e=>(c_=r._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=_e.Bb)(e),s_=r._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=e=>(s_=r._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=_e.Cb)(e),P_=r._emscripten_bind_PePrimem_getLongitude_0=e=>(P_=r._emscripten_bind_PePrimem_getLongitude_0=_e.Db)(e),a_=r._emscripten_bind_PePrimem_getCode_0=e=>(a_=r._emscripten_bind_PePrimem_getCode_0=_e.Eb)(e),g_=r._emscripten_bind_PePrimem_getName_1=(e,t)=>(g_=r._emscripten_bind_PePrimem_getName_1=_e.Fb)(e,t),y_=r._emscripten_bind_PePrimem_getType_0=e=>(y_=r._emscripten_bind_PePrimem_getType_0=_e.Gb)(e),d_=r._emscripten_bind_PeProjcs_getGeogcs_0=e=>(d_=r._emscripten_bind_PeProjcs_getGeogcs_0=_e.Hb)(e),u_=r._emscripten_bind_PeProjcs_getParameters_0=e=>(u_=r._emscripten_bind_PeProjcs_getParameters_0=_e.Ib)(e),f_=r._emscripten_bind_PeProjcs_getUnit_0=e=>(f_=r._emscripten_bind_PeProjcs_getUnit_0=_e.Jb)(e),E_=r._emscripten_bind_PeProjcs_loadConstants_0=e=>(E_=r._emscripten_bind_PeProjcs_loadConstants_0=_e.Kb)(e),b_=r._emscripten_bind_PeProjcs_horizonGcsGenerate_0=e=>(b_=r._emscripten_bind_PeProjcs_horizonGcsGenerate_0=_e.Lb)(e),m_=r._emscripten_bind_PeProjcs_horizonPcsGenerate_0=e=>(m_=r._emscripten_bind_PeProjcs_horizonPcsGenerate_0=_e.Mb)(e),T_=r._emscripten_bind_PeProjcs_getCode_0=e=>(T_=r._emscripten_bind_PeProjcs_getCode_0=_e.Nb)(e),O_=r._emscripten_bind_PeProjcs_getName_1=(e,t)=>(O_=r._emscripten_bind_PeProjcs_getName_1=_e.Ob)(e,t),S_=r._emscripten_bind_PeProjcs_getType_0=e=>(S_=r._emscripten_bind_PeProjcs_getType_0=_e.Pb)(e),N_=r._emscripten_bind_PeSpheroid_getAxis_0=e=>(N_=r._emscripten_bind_PeSpheroid_getAxis_0=_e.Qb)(e),h_=r._emscripten_bind_PeSpheroid_getFlattening_0=e=>(h_=r._emscripten_bind_PeSpheroid_getFlattening_0=_e.Rb)(e),l_=r._emscripten_bind_PeSpheroid_getCode_0=e=>(l_=r._emscripten_bind_PeSpheroid_getCode_0=_e.Sb)(e),M_=r._emscripten_bind_PeSpheroid_getName_1=(e,t)=>(M_=r._emscripten_bind_PeSpheroid_getName_1=_e.Tb)(e,t),v_=r._emscripten_bind_PeSpheroid_getType_0=e=>(v_=r._emscripten_bind_PeSpheroid_getType_0=_e.Ub)(e),D_=r._emscripten_bind_PeUnit_getUnitFactor_0=e=>(D_=r._emscripten_bind_PeUnit_getUnitFactor_0=_e.Vb)(e),R_=r._emscripten_bind_PeUnit_getCode_0=e=>(R_=r._emscripten_bind_PeUnit_getCode_0=_e.Wb)(e),A_=r._emscripten_bind_PeUnit_getName_1=(e,t)=>(A_=r._emscripten_bind_PeUnit_getName_1=_e.Xb)(e,t),G_=r._emscripten_bind_PeUnit_getType_0=e=>(G_=r._emscripten_bind_PeUnit_getType_0=_e.Yb)(e),C_=r._emscripten_bind_PeVersion_version_string_0=e=>(C_=r._emscripten_bind_PeVersion_version_string_0=_e.Zb)(e);function I_(){I>0||(H(A),I>0||re||(re=!0,r.calledRun=!0,v||(H(G),t(r),H(C))))}function j_(){}function U_(e){return(e||j_).__cache__}function L_(e,t){var _=U_(t),r=_[e];return r||((r=Object.create((t||j_).prototype)).ptr=e,_[e]=r)}r._pe_getPeGTlistExtendedEntrySize=()=>(r._pe_getPeGTlistExtendedEntrySize=_e._b)(),r._pe_getPeGTlistExtendedGTsSize=()=>(r._pe_getPeGTlistExtendedGTsSize=_e.$b)(),r._pe_getPeHorizonSize=()=>(r._pe_getPeHorizonSize=_e.ac)(),r._pe_geog_to_geog=(e,t,_,o,n)=>(r._pe_geog_to_geog=_e.cc)(e,t,_,o,n),r._pe_geog_to_proj=(e,t,_)=>(r._pe_geog_to_proj=_e.dc)(e,t,_),r._pe_geog_to_dd=(e,t,_,o,n)=>(r._pe_geog_to_dd=_e.ec)(e,t,_,o,n),r._pe_dd_to_geog=(e,t,_,o)=>(r._pe_dd_to_geog=_e.fc)(e,t,_,o),r._pe_geog_to_ddm=(e,t,_,o,n)=>(r._pe_geog_to_ddm=_e.gc)(e,t,_,o,n),r._pe_ddm_to_geog=(e,t,_,o)=>(r._pe_ddm_to_geog=_e.hc)(e,t,_,o),r._pe_geog_to_dms=(e,t,_,o,n)=>(r._pe_geog_to_dms=_e.ic)(e,t,_,o,n),r._pe_dms_to_geog=(e,t,_,o)=>(r._pe_dms_to_geog=_e.jc)(e,t,_,o),r._pe_geog_to_mgrs_extended=(e,t,_,o,n,p,i)=>(r._pe_geog_to_mgrs_extended=_e.kc)(e,t,_,o,n,p,i),r._pe_mgrs_to_geog_extended=(e,t,_,o,n)=>(r._pe_mgrs_to_geog_extended=_e.lc)(e,t,_,o,n),r._pe_geog_to_usng=(e,t,_,o,n,p,i)=>(r._pe_geog_to_usng=_e.mc)(e,t,_,o,n,p,i),r._pe_usng_to_geog=(e,t,_,o)=>(r._pe_usng_to_geog=_e.nc)(e,t,_,o),r._pe_geog_to_utm=(e,t,_,o,n)=>(r._pe_geog_to_utm=_e.oc)(e,t,_,o,n),r._pe_utm_to_geog=(e,t,_,o,n)=>(r._pe_utm_to_geog=_e.pc)(e,t,_,o,n),r._pe_object_to_string_ext=(e,t,_)=>(r._pe_object_to_string_ext=_e.qc)(e,t,_),r._pe_proj_to_geog_center=(e,t,_,o)=>(r._pe_proj_to_geog_center=_e.rc)(e,t,_,o),r.___start_em_js=2033306,r.___stop_em_js=2033404,r.getValue=function(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return T[e>>0];case"i16":return S[e>>1];case"i32":return N[e>>2];case"i64":U("to do getValue(i64) use WASM_BIGINT");case"float":return l[e>>2];case"double":return M[e>>3];case"*":return h[e>>2];default:U(`invalid type for getValue: ${t}`)}},r.UTF8ToString=Z,j=function e(){re||I_(),re||(j=e)},I_(),j_.prototype=Object.create(j_.prototype),j_.prototype.constructor=j_,j_.prototype.__class__=j_,j_.__cache__={},r.WrapperObject=j_,r.getCache=U_,r.wrapPointer=L_,r.castObject=function(e,t){return L_(e.ptr,t)},r.NULL=L_(0),r.destroy=function(e){if(!e.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";e.__destroy__(),delete U_(e.__class__)[e.ptr]},r.compare=function(e,t){return e.ptr===t.ptr},r.getPointer=function(e){return e.ptr},r.getClass=function(e){return e.__class__};var F_={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(F_.needed){for(var e=0;e<F_.temps.length;e++)r._webidl_free(F_.temps[e]);F_.temps.length=0,r._webidl_free(F_.buffer),F_.buffer=0,F_.size+=F_.needed,F_.needed=0}F_.buffer||(F_.size+=128,F_.buffer=r._webidl_malloc(F_.size),D(F_.buffer)),F_.pos=0},alloc(e,t){D(F_.buffer);var _,o=t.BYTES_PER_ELEMENT,n=e.length*o;return n=n+7&-8,F_.pos+n>=F_.size?(D(n>0),F_.needed+=n,_=r._webidl_malloc(n),F_.temps.push(_)):(_=F_.buffer+F_.pos,F_.pos+=n),_},copy(e,t,_){switch(_>>>=0,t.BYTES_PER_ELEMENT){case 2:_>>>=1;break;case 4:_>>>=2;break;case 8:_>>>=3}for(var r=0;r<e.length;r++)t[_+r]=e[r]}};function w_(e){if("string"==typeof e){var t=function(e,t,_){var r=V(e)+1,o=new Array(r);W(e,o,0,o.length);return o}(e),_=F_.alloc(t,T);return F_.copy(t,T,_),_}return e}function Y_(e){if("object"==typeof e){var t=F_.alloc(e,T);return F_.copy(e,T,t),t}return e}function x_(){throw"cannot construct a PeObject, no constructor in IDL"}function H_(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function X_(){throw"cannot construct a VoidPtr, no constructor in IDL"}function z_(){throw"cannot construct a PeDatum, no constructor in IDL"}function Z_(){throw"cannot construct a PeDefs, no constructor in IDL"}function W_(){throw"cannot construct a PeFactory, no constructor in IDL"}function B_(e,t,_,r,o,n){e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),this.ptr=$e(e,t,_,r,o,n),U_(B_)[this.ptr]=this}function K_(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function V_(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function k_(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function q_(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function J_(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function $_(){throw"cannot construct a PeHorizon, no constructor in IDL"}function Q_(e){e&&"object"==typeof e&&(e=e.ptr),this.ptr=At(e),U_(Q_)[this.ptr]=this}function er(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function tr(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function _r(){throw"cannot construct a PeParameter, no constructor in IDL"}function rr(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function or(){throw"cannot construct a PePrimem, no constructor in IDL"}function nr(){throw"cannot construct a PeProjcs, no constructor in IDL"}function pr(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function ir(){throw"cannot construct a PeUnit, no constructor in IDL"}function cr(){throw"cannot construct a PeVersion, no constructor in IDL"}return x_.prototype=Object.create(j_.prototype),x_.prototype.constructor=x_,x_.prototype.__class__=x_,x_.__cache__={},r.PeObject=x_,x_.prototype.getCode=x_.prototype.getCode=function(){var e=this.ptr;return ne(e)},x_.prototype.getName=x_.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(pe(t,e))},x_.prototype.getType=x_.prototype.getType=function(){var e=this.ptr;return ie(e)},H_.prototype=Object.create(x_.prototype),H_.prototype.constructor=H_,H_.prototype.__class__=H_,H_.__cache__={},r.PeCoordsys=H_,H_.prototype.getCode=H_.prototype.getCode=function(){var e=this.ptr;return ce(e)},H_.prototype.getName=H_.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(se(t,e))},H_.prototype.getType=H_.prototype.getType=function(){var e=this.ptr;return Pe(e)},X_.prototype=Object.create(j_.prototype),X_.prototype.constructor=X_,X_.prototype.__class__=X_,X_.__cache__={},r.VoidPtr=X_,X_.prototype.__destroy__=X_.prototype.__destroy__=function(){var e=this.ptr;ae(e)},z_.prototype=Object.create(x_.prototype),z_.prototype.constructor=z_,z_.prototype.__class__=z_,z_.__cache__={},r.PeDatum=z_,z_.prototype.getSpheroid=z_.prototype.getSpheroid=function(){var e=this.ptr;return L_(ge(e),pr)},z_.prototype.getCode=z_.prototype.getCode=function(){var e=this.ptr;return ye(e)},z_.prototype.getName=z_.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(de(t,e))},z_.prototype.getType=z_.prototype.getType=function(){var e=this.ptr;return ue(e)},Z_.prototype=Object.create(j_.prototype),Z_.prototype.constructor=Z_,Z_.prototype.__class__=Z_,Z_.__cache__={},r.PeDefs=Z_,Z_.prototype.get_PE_BUFFER_MAX=Z_.prototype.get_PE_BUFFER_MAX=function(){var e=this.ptr;return fe(e)},Object.defineProperty(Z_.prototype,"PE_BUFFER_MAX",{get:Z_.prototype.get_PE_BUFFER_MAX}),Z_.prototype.get_PE_NAME_MAX=Z_.prototype.get_PE_NAME_MAX=function(){var e=this.ptr;return Ee(e)},Object.defineProperty(Z_.prototype,"PE_NAME_MAX",{get:Z_.prototype.get_PE_NAME_MAX}),Z_.prototype.get_PE_MGRS_MAX=Z_.prototype.get_PE_MGRS_MAX=function(){var e=this.ptr;return be(e)},Object.defineProperty(Z_.prototype,"PE_MGRS_MAX",{get:Z_.prototype.get_PE_MGRS_MAX}),Z_.prototype.get_PE_USNG_MAX=Z_.prototype.get_PE_USNG_MAX=function(){var e=this.ptr;return me(e)},Object.defineProperty(Z_.prototype,"PE_USNG_MAX",{get:Z_.prototype.get_PE_USNG_MAX}),Z_.prototype.get_PE_DD_MAX=Z_.prototype.get_PE_DD_MAX=function(){var e=this.ptr;return Te(e)},Object.defineProperty(Z_.prototype,"PE_DD_MAX",{get:Z_.prototype.get_PE_DD_MAX}),Z_.prototype.get_PE_DMS_MAX=Z_.prototype.get_PE_DMS_MAX=function(){var e=this.ptr;return Oe(e)},Object.defineProperty(Z_.prototype,"PE_DMS_MAX",{get:Z_.prototype.get_PE_DMS_MAX}),Z_.prototype.get_PE_DDM_MAX=Z_.prototype.get_PE_DDM_MAX=function(){var e=this.ptr;return Se(e)},Object.defineProperty(Z_.prototype,"PE_DDM_MAX",{get:Z_.prototype.get_PE_DDM_MAX}),Z_.prototype.get_PE_UTM_MAX=Z_.prototype.get_PE_UTM_MAX=function(){var e=this.ptr;return Ne(e)},Object.defineProperty(Z_.prototype,"PE_UTM_MAX",{get:Z_.prototype.get_PE_UTM_MAX}),Z_.prototype.get_PE_PARM_MAX=Z_.prototype.get_PE_PARM_MAX=function(){var e=this.ptr;return he(e)},Object.defineProperty(Z_.prototype,"PE_PARM_MAX",{get:Z_.prototype.get_PE_PARM_MAX}),Z_.prototype.get_PE_TYPE_NONE=Z_.prototype.get_PE_TYPE_NONE=function(){var e=this.ptr;return le(e)},Object.defineProperty(Z_.prototype,"PE_TYPE_NONE",{get:Z_.prototype.get_PE_TYPE_NONE}),Z_.prototype.get_PE_TYPE_GEOGCS=Z_.prototype.get_PE_TYPE_GEOGCS=function(){var e=this.ptr;return Me(e)},Object.defineProperty(Z_.prototype,"PE_TYPE_GEOGCS",{get:Z_.prototype.get_PE_TYPE_GEOGCS}),Z_.prototype.get_PE_TYPE_PROJCS=Z_.prototype.get_PE_TYPE_PROJCS=function(){var e=this.ptr;return ve(e)},Object.defineProperty(Z_.prototype,"PE_TYPE_PROJCS",{get:Z_.prototype.get_PE_TYPE_PROJCS}),Z_.prototype.get_PE_TYPE_GEOGTRAN=Z_.prototype.get_PE_TYPE_GEOGTRAN=function(){var e=this.ptr;return De(e)},Object.defineProperty(Z_.prototype,"PE_TYPE_GEOGTRAN",{get:Z_.prototype.get_PE_TYPE_GEOGTRAN}),Z_.prototype.get_PE_TYPE_COORDSYS=Z_.prototype.get_PE_TYPE_COORDSYS=function(){var e=this.ptr;return Re(e)},Object.defineProperty(Z_.prototype,"PE_TYPE_COORDSYS",{get:Z_.prototype.get_PE_TYPE_COORDSYS}),Z_.prototype.get_PE_TYPE_UNIT=Z_.prototype.get_PE_TYPE_UNIT=function(){var e=this.ptr;return Ae(e)},Object.defineProperty(Z_.prototype,"PE_TYPE_UNIT",{get:Z_.prototype.get_PE_TYPE_UNIT}),Z_.prototype.get_PE_TYPE_LINUNIT=Z_.prototype.get_PE_TYPE_LINUNIT=function(){var e=this.ptr;return Ge(e)},Object.defineProperty(Z_.prototype,"PE_TYPE_LINUNIT",{get:Z_.prototype.get_PE_TYPE_LINUNIT}),Z_.prototype.get_PE_STR_OPTS_NONE=Z_.prototype.get_PE_STR_OPTS_NONE=function(){var e=this.ptr;return Ce(e)},Object.defineProperty(Z_.prototype,"PE_STR_OPTS_NONE",{get:Z_.prototype.get_PE_STR_OPTS_NONE}),Z_.prototype.get_PE_STR_AUTH_NONE=Z_.prototype.get_PE_STR_AUTH_NONE=function(){var e=this.ptr;return Ie(e)},Object.defineProperty(Z_.prototype,"PE_STR_AUTH_NONE",{get:Z_.prototype.get_PE_STR_AUTH_NONE}),Z_.prototype.get_PE_STR_AUTH_TOP=Z_.prototype.get_PE_STR_AUTH_TOP=function(){var e=this.ptr;return je(e)},Object.defineProperty(Z_.prototype,"PE_STR_AUTH_TOP",{get:Z_.prototype.get_PE_STR_AUTH_TOP}),Z_.prototype.get_PE_STR_NAME_CANON=Z_.prototype.get_PE_STR_NAME_CANON=function(){var e=this.ptr;return Ue(e)},Object.defineProperty(Z_.prototype,"PE_STR_NAME_CANON",{get:Z_.prototype.get_PE_STR_NAME_CANON}),Z_.prototype.get_PE_STR_FMT_WKT=Z_.prototype.get_PE_STR_FMT_WKT=function(){var e=this.ptr;return Le(e)},Object.defineProperty(Z_.prototype,"PE_STR_FMT_WKT",{get:Z_.prototype.get_PE_STR_FMT_WKT}),Z_.prototype.get_PE_STR_FMT_WKT2=Z_.prototype.get_PE_STR_FMT_WKT2=function(){var e=this.ptr;return Fe(e)},Object.defineProperty(Z_.prototype,"PE_STR_FMT_WKT2",{get:Z_.prototype.get_PE_STR_FMT_WKT2}),Z_.prototype.get_PE_PARM_X0=Z_.prototype.get_PE_PARM_X0=function(){var e=this.ptr;return we(e)},Object.defineProperty(Z_.prototype,"PE_PARM_X0",{get:Z_.prototype.get_PE_PARM_X0}),Z_.prototype.get_PE_PARM_ND=Z_.prototype.get_PE_PARM_ND=function(){var e=this.ptr;return Ye(e)},Object.defineProperty(Z_.prototype,"PE_PARM_ND",{get:Z_.prototype.get_PE_PARM_ND}),Z_.prototype.get_PE_TRANSFORM_1_TO_2=Z_.prototype.get_PE_TRANSFORM_1_TO_2=function(){var e=this.ptr;return xe(e)},Object.defineProperty(Z_.prototype,"PE_TRANSFORM_1_TO_2",{get:Z_.prototype.get_PE_TRANSFORM_1_TO_2}),Z_.prototype.get_PE_TRANSFORM_2_TO_1=Z_.prototype.get_PE_TRANSFORM_2_TO_1=function(){var e=this.ptr;return He(e)},Object.defineProperty(Z_.prototype,"PE_TRANSFORM_2_TO_1",{get:Z_.prototype.get_PE_TRANSFORM_2_TO_1}),Z_.prototype.get_PE_TRANSFORM_P_TO_G=Z_.prototype.get_PE_TRANSFORM_P_TO_G=function(){var e=this.ptr;return Xe(e)},Object.defineProperty(Z_.prototype,"PE_TRANSFORM_P_TO_G",{get:Z_.prototype.get_PE_TRANSFORM_P_TO_G}),Z_.prototype.get_PE_TRANSFORM_G_TO_P=Z_.prototype.get_PE_TRANSFORM_G_TO_P=function(){var e=this.ptr;return ze(e)},Object.defineProperty(Z_.prototype,"PE_TRANSFORM_G_TO_P",{get:Z_.prototype.get_PE_TRANSFORM_G_TO_P}),Z_.prototype.get_PE_HORIZON_RECT=Z_.prototype.get_PE_HORIZON_RECT=function(){var e=this.ptr;return Ze(e)},Object.defineProperty(Z_.prototype,"PE_HORIZON_RECT",{get:Z_.prototype.get_PE_HORIZON_RECT}),Z_.prototype.get_PE_HORIZON_POLY=Z_.prototype.get_PE_HORIZON_POLY=function(){var e=this.ptr;return We(e)},Object.defineProperty(Z_.prototype,"PE_HORIZON_POLY",{get:Z_.prototype.get_PE_HORIZON_POLY}),Z_.prototype.get_PE_HORIZON_LINE=Z_.prototype.get_PE_HORIZON_LINE=function(){var e=this.ptr;return Be(e)},Object.defineProperty(Z_.prototype,"PE_HORIZON_LINE",{get:Z_.prototype.get_PE_HORIZON_LINE}),Z_.prototype.get_PE_HORIZON_DELTA=Z_.prototype.get_PE_HORIZON_DELTA=function(){var e=this.ptr;return Ke(e)},Object.defineProperty(Z_.prototype,"PE_HORIZON_DELTA",{get:Z_.prototype.get_PE_HORIZON_DELTA}),W_.prototype=Object.create(j_.prototype),W_.prototype.constructor=W_,W_.prototype.__class__=W_,W_.__cache__={},r.PeFactory=W_,W_.prototype.initialize=W_.prototype.initialize=function(e){var t=this.ptr;F_.prepare(),e=e&&"object"==typeof e?e.ptr:w_(e),Ve(t,e)},W_.prototype.factoryByType=W_.prototype.factoryByType=function(e,t){var _=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),L_(ke(_,e,t),x_)},W_.prototype.fromString=W_.prototype.fromString=function(e,t){var _=this.ptr;return F_.prepare(),e&&"object"==typeof e&&(e=e.ptr),t=t&&"object"==typeof t?t.ptr:w_(t),L_(qe(_,e,t),x_)},W_.prototype.getCode=W_.prototype.getCode=function(e){var t=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),Je(t,e)},B_.prototype=Object.create(j_.prototype),B_.prototype.constructor=B_,B_.prototype.__class__=B_,B_.__cache__={},r.PeGCSExtent=B_,B_.prototype.getLLon=B_.prototype.getLLon=function(){var e=this.ptr;return Qe(e)},B_.prototype.getSLat=B_.prototype.getSLat=function(){var e=this.ptr;return et(e)},B_.prototype.getRLon=B_.prototype.getRLon=function(){var e=this.ptr;return tt(e)},B_.prototype.getNLat=B_.prototype.getNLat=function(){var e=this.ptr;return _t(e)},B_.prototype.__destroy__=B_.prototype.__destroy__=function(){var e=this.ptr;rt(e)},K_.prototype=Object.create(H_.prototype),K_.prototype.constructor=K_,K_.prototype.__class__=K_,K_.__cache__={},r.PeGeogcs=K_,K_.prototype.getDatum=K_.prototype.getDatum=function(){var e=this.ptr;return L_(ot(e),z_)},K_.prototype.getPrimem=K_.prototype.getPrimem=function(){var e=this.ptr;return L_(nt(e),or)},K_.prototype.getUnit=K_.prototype.getUnit=function(){var e=this.ptr;return L_(pt(e),ir)},K_.prototype.getCode=K_.prototype.getCode=function(){var e=this.ptr;return it(e)},K_.prototype.getName=K_.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(ct(t,e))},K_.prototype.getType=K_.prototype.getType=function(){var e=this.ptr;return st(e)},V_.prototype=Object.create(x_.prototype),V_.prototype.constructor=V_,V_.prototype.__class__=V_,V_.__cache__={},r.PeGeogtran=V_,V_.prototype.isEqual=V_.prototype.isEqual=function(e){var t=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),!!Pt(t,e)},V_.prototype.getGeogcs1=V_.prototype.getGeogcs1=function(){var e=this.ptr;return L_(at(e),K_)},V_.prototype.getGeogcs2=V_.prototype.getGeogcs2=function(){var e=this.ptr;return L_(gt(e),K_)},V_.prototype.getParameters=V_.prototype.getParameters=function(){var e=this.ptr;return yt(e)},V_.prototype.loadConstants=V_.prototype.loadConstants=function(){var e=this.ptr;return!!dt(e)},V_.prototype.getCode=V_.prototype.getCode=function(){var e=this.ptr;return ut(e)},V_.prototype.getName=V_.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(ft(t,e))},V_.prototype.getType=V_.prototype.getType=function(){var e=this.ptr;return Et(e)},k_.prototype=Object.create(j_.prototype),k_.prototype.constructor=k_,k_.prototype.__class__=k_,k_.__cache__={},r.PeGTlistExtended=k_,k_.prototype.getGTlist=k_.prototype.getGTlist=function(e,t,_,r,o,n){var p=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),L_(bt(p,e,t,_,r,o,n),q_)},k_.prototype.get_PE_GTLIST_OPTS_COMMON=k_.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var e=this.ptr;return mt(e)},Object.defineProperty(k_.prototype,"PE_GTLIST_OPTS_COMMON",{get:k_.prototype.get_PE_GTLIST_OPTS_COMMON}),q_.prototype=Object.create(j_.prototype),q_.prototype.constructor=q_,q_.prototype.__class__=q_,q_.__cache__={},r.PeGTlistExtendedEntry=q_,q_.prototype.getEntries=q_.prototype.getEntries=function(){var e=this.ptr;return L_(Tt(e),J_)},q_.prototype.getSteps=q_.prototype.getSteps=function(){var e=this.ptr;return Ot(e)},q_.prototype.Delete=q_.prototype.Delete=function(e){var t=this.ptr;e&&"object"==typeof e&&(e=e.ptr),St(t,e)},J_.prototype=Object.create(j_.prototype),J_.prototype.constructor=J_,J_.prototype.__class__=J_,J_.__cache__={},r.PeGTlistExtendedGTs=J_,J_.prototype.getDirection=J_.prototype.getDirection=function(){var e=this.ptr;return Nt(e)},J_.prototype.getGeogtran=J_.prototype.getGeogtran=function(){var e=this.ptr;return L_(ht(e),V_)},$_.prototype=Object.create(j_.prototype),$_.prototype.constructor=$_,$_.prototype.__class__=$_,$_.__cache__={},r.PeHorizon=$_,$_.prototype.getNump=$_.prototype.getNump=function(){var e=this.ptr;return lt(e)},$_.prototype.getKind=$_.prototype.getKind=function(){var e=this.ptr;return Mt(e)},$_.prototype.getInclusive=$_.prototype.getInclusive=function(){var e=this.ptr;return vt(e)},$_.prototype.getSize=$_.prototype.getSize=function(){var e=this.ptr;return Dt(e)},$_.prototype.getCoord=$_.prototype.getCoord=function(){var e=this.ptr;return Rt(e)},Q_.prototype=Object.create(j_.prototype),Q_.prototype.constructor=Q_,Q_.prototype.__class__=Q_,Q_.__cache__={},r.PeInteger=Q_,Q_.prototype.get_val=Q_.prototype.get_val=function(){var e=this.ptr;return Gt(e)},Q_.prototype.set_val=Q_.prototype.set_val=function(e){var t=this.ptr;e&&"object"==typeof e&&(e=e.ptr),Ct(t,e)},Object.defineProperty(Q_.prototype,"val",{get:Q_.prototype.get_val,set:Q_.prototype.set_val}),Q_.prototype.__destroy__=Q_.prototype.__destroy__=function(){var e=this.ptr;It(e)},er.prototype=Object.create(j_.prototype),er.prototype.constructor=er,er.prototype.__class__=er,er.__cache__={},r.PeNotationMgrs=er,er.prototype.get_PE_MGRS_STYLE_NEW=er.prototype.get_PE_MGRS_STYLE_NEW=function(){var e=this.ptr;return jt(e)},Object.defineProperty(er.prototype,"PE_MGRS_STYLE_NEW",{get:er.prototype.get_PE_MGRS_STYLE_NEW}),er.prototype.get_PE_MGRS_STYLE_OLD=er.prototype.get_PE_MGRS_STYLE_OLD=function(){var e=this.ptr;return Ut(e)},Object.defineProperty(er.prototype,"PE_MGRS_STYLE_OLD",{get:er.prototype.get_PE_MGRS_STYLE_OLD}),er.prototype.get_PE_MGRS_STYLE_AUTO=er.prototype.get_PE_MGRS_STYLE_AUTO=function(){var e=this.ptr;return Lt(e)},Object.defineProperty(er.prototype,"PE_MGRS_STYLE_AUTO",{get:er.prototype.get_PE_MGRS_STYLE_AUTO}),er.prototype.get_PE_MGRS_180_ZONE_1_PLUS=er.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var e=this.ptr;return Ft(e)},Object.defineProperty(er.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:er.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),er.prototype.get_PE_MGRS_ADD_SPACES=er.prototype.get_PE_MGRS_ADD_SPACES=function(){var e=this.ptr;return wt(e)},Object.defineProperty(er.prototype,"PE_MGRS_ADD_SPACES",{get:er.prototype.get_PE_MGRS_ADD_SPACES}),tr.prototype=Object.create(j_.prototype),tr.prototype.constructor=tr,tr.prototype.__class__=tr,tr.__cache__={},r.PeNotationUtm=tr,tr.prototype.get_PE_UTM_OPTS_NONE=tr.prototype.get_PE_UTM_OPTS_NONE=function(){var e=this.ptr;return Yt(e)},Object.defineProperty(tr.prototype,"PE_UTM_OPTS_NONE",{get:tr.prototype.get_PE_UTM_OPTS_NONE}),tr.prototype.get_PE_UTM_OPTS_NS=tr.prototype.get_PE_UTM_OPTS_NS=function(){var e=this.ptr;return xt(e)},Object.defineProperty(tr.prototype,"PE_UTM_OPTS_NS",{get:tr.prototype.get_PE_UTM_OPTS_NS}),tr.prototype.get_PE_UTM_OPTS_NS_STRICT=tr.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var e=this.ptr;return Ht(e)},Object.defineProperty(tr.prototype,"PE_UTM_OPTS_NS_STRICT",{get:tr.prototype.get_PE_UTM_OPTS_NS_STRICT}),tr.prototype.get_PE_UTM_OPTS_ADD_SPACES=tr.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var e=this.ptr;return Xt(e)},Object.defineProperty(tr.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:tr.prototype.get_PE_UTM_OPTS_ADD_SPACES}),_r.prototype=Object.create(x_.prototype),_r.prototype.constructor=_r,_r.prototype.__class__=_r,_r.__cache__={},r.PeParameter=_r,_r.prototype.getValue=_r.prototype.getValue=function(){var e=this.ptr;return zt(e)},_r.prototype.getCode=_r.prototype.getCode=function(){var e=this.ptr;return Zt(e)},_r.prototype.getName=_r.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(Wt(t,e))},_r.prototype.getType=_r.prototype.getType=function(){var e=this.ptr;return Bt(e)},rr.prototype=Object.create(j_.prototype),rr.prototype.constructor=rr,rr.prototype.__class__=rr,rr.__cache__={},r.PePCSInfo=rr,rr.prototype.getCentralMeridian=rr.prototype.getCentralMeridian=function(){var e=this.ptr;return Kt(e)},rr.prototype.getDomainMinx=rr.prototype.getDomainMinx=function(){var e=this.ptr;return Vt(e)},rr.prototype.getDomainMiny=rr.prototype.getDomainMiny=function(){var e=this.ptr;return kt(e)},rr.prototype.getDomainMaxx=rr.prototype.getDomainMaxx=function(){var e=this.ptr;return qt(e)},rr.prototype.getDomainMaxy=rr.prototype.getDomainMaxy=function(){var e=this.ptr;return Jt(e)},rr.prototype.getNorthPoleLocation=rr.prototype.getNorthPoleLocation=function(){var e=this.ptr;return $t(e)},rr.prototype.getNorthPoleGeometry=rr.prototype.getNorthPoleGeometry=function(){var e=this.ptr;return Qt(e)},rr.prototype.getSouthPoleLocation=rr.prototype.getSouthPoleLocation=function(){var e=this.ptr;return e_(e)},rr.prototype.getSouthPoleGeometry=rr.prototype.getSouthPoleGeometry=function(){var e=this.ptr;return t_(e)},rr.prototype.isDensificationNeeded=rr.prototype.isDensificationNeeded=function(){var e=this.ptr;return!!__(e)},rr.prototype.isGcsHorizonMultiOverlap=rr.prototype.isGcsHorizonMultiOverlap=function(){var e=this.ptr;return!!r_(e)},rr.prototype.isPannableRectangle=rr.prototype.isPannableRectangle=function(){var e=this.ptr;return!!o_(e)},rr.prototype.generate=rr.prototype.generate=function(e,t){var _=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),L_(n_(_,e,t),rr)},rr.prototype.get_PE_PCSINFO_OPTION_NONE=rr.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var e=this.ptr;return p_(e)},Object.defineProperty(rr.prototype,"PE_PCSINFO_OPTION_NONE",{get:rr.prototype.get_PE_PCSINFO_OPTION_NONE}),rr.prototype.get_PE_PCSINFO_OPTION_DOMAIN=rr.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var e=this.ptr;return i_(e)},Object.defineProperty(rr.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:rr.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),rr.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=rr.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var e=this.ptr;return c_(e)},Object.defineProperty(rr.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:rr.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),rr.prototype.get_PE_POLE_POINT=rr.prototype.get_PE_POLE_POINT=function(){var e=this.ptr;return s_(e)},Object.defineProperty(rr.prototype,"PE_POLE_POINT",{get:rr.prototype.get_PE_POLE_POINT}),or.prototype=Object.create(x_.prototype),or.prototype.constructor=or,or.prototype.__class__=or,or.__cache__={},r.PePrimem=or,or.prototype.getLongitude=or.prototype.getLongitude=function(){var e=this.ptr;return P_(e)},or.prototype.getCode=or.prototype.getCode=function(){var e=this.ptr;return a_(e)},or.prototype.getName=or.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(g_(t,e))},or.prototype.getType=or.prototype.getType=function(){var e=this.ptr;return y_(e)},nr.prototype=Object.create(H_.prototype),nr.prototype.constructor=nr,nr.prototype.__class__=nr,nr.__cache__={},r.PeProjcs=nr,nr.prototype.getGeogcs=nr.prototype.getGeogcs=function(){var e=this.ptr;return L_(d_(e),K_)},nr.prototype.getParameters=nr.prototype.getParameters=function(){var e=this.ptr;return u_(e)},nr.prototype.getUnit=nr.prototype.getUnit=function(){var e=this.ptr;return L_(f_(e),ir)},nr.prototype.loadConstants=nr.prototype.loadConstants=function(){var e=this.ptr;return!!E_(e)},nr.prototype.horizonGcsGenerate=nr.prototype.horizonGcsGenerate=function(){var e=this.ptr;return L_(b_(e),$_)},nr.prototype.horizonPcsGenerate=nr.prototype.horizonPcsGenerate=function(){var e=this.ptr;return L_(m_(e),$_)},nr.prototype.getCode=nr.prototype.getCode=function(){var e=this.ptr;return T_(e)},nr.prototype.getName=nr.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(O_(t,e))},nr.prototype.getType=nr.prototype.getType=function(){var e=this.ptr;return S_(e)},pr.prototype=Object.create(x_.prototype),pr.prototype.constructor=pr,pr.prototype.__class__=pr,pr.__cache__={},r.PeSpheroid=pr,pr.prototype.getAxis=pr.prototype.getAxis=function(){var e=this.ptr;return N_(e)},pr.prototype.getFlattening=pr.prototype.getFlattening=function(){var e=this.ptr;return h_(e)},pr.prototype.getCode=pr.prototype.getCode=function(){var e=this.ptr;return l_(e)},pr.prototype.getName=pr.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(M_(t,e))},pr.prototype.getType=pr.prototype.getType=function(){var e=this.ptr;return v_(e)},ir.prototype=Object.create(x_.prototype),ir.prototype.constructor=ir,ir.prototype.__class__=ir,ir.__cache__={},r.PeUnit=ir,ir.prototype.getUnitFactor=ir.prototype.getUnitFactor=function(){var e=this.ptr;return D_(e)},ir.prototype.getCode=ir.prototype.getCode=function(){var e=this.ptr;return R_(e)},ir.prototype.getName=ir.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(A_(t,e))},ir.prototype.getType=ir.prototype.getType=function(){var e=this.ptr;return G_(e)},cr.prototype=Object.create(j_.prototype),cr.prototype.constructor=cr,cr.prototype.__class__=cr,cr.__cache__={},r.PeVersion=cr,cr.prototype.version_string=cr.prototype.version_string=function(){var e=this.ptr;return Z(C_(e))},r.ensureCache=F_,r.ensureString=w_,r.ensureInt8=Y_,r.ensureInt16=function(e){if("object"==typeof e){var t=F_.alloc(e,S);return F_.copy(e,S,t),t}return e},r.ensureInt32=function(e){if("object"==typeof e){var t=F_.alloc(e,N);return F_.copy(e,N,t),t}return e},r.ensureFloat32=function(e){if("object"==typeof e){var t=F_.alloc(e,l);return F_.copy(e,l,t),t}return e},r.ensureFloat64=function(e){if("object"==typeof e){var t=F_.alloc(e,M);return F_.copy(e,M,t),t}return e},e.ready},r.exports=n;var c=i.exports;const s=function(e,t){for(var _=0;_<t.length;_++){const r=t[_];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const _=Object.getOwnPropertyDescriptor(r,t);_&&Object.defineProperty(e,t,_.get?_:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,p.g)(c)},[c])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5286],{88764:(e,t,i)=>{i.d(t,{q:()=>o});var s,n,r,a=i(5732),l={exports:{}};s=l,n=function(){function e(i,s,n,r,a){for(;r>n;){if(r-n>600){var l=r-n+1,o=s-n+1,u=Math.log(l),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(l-c)/l)*(o-l/2<0?-1:1);e(i,s,Math.max(n,Math.floor(s-o*c/l+h)),Math.min(r,Math.floor(s+(l-o)*c/l+h)),a)}var d=i[s],f=n,m=r;for(t(i,n,s),a(i[r],d)>0&&t(i,n,r);f<m;){for(t(i,f,m),f++,m--;a(i[f],d)<0;)f++;for(;a(i[m],d)>0;)m--}0===a(i[n],d)?t(i,n,m):t(i,++m,r),m<=s&&(n=m+1),s<=m&&(r=m-1)}}function t(e,t,i){var s=e[t];e[t]=e[i],e[i]=s}function i(e,t){return e<t?-1:e>t?1:0}return function(t,s,n,r,a){e(t,s,n||0,r||t.length-1,a||i)}},void 0!==(r=n())&&(s.exports=r);const o=(0,a.g)(l.exports)},95528:(e,t,i)=>{i.d(t,{t:()=>l});var s=i(22974),n=i(58971),r=i(10661);class a{constructor(e,t){this._observable=new r.s,this._value=e,this._equalityFunction=t}get value(){return(0,n.it)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function l(e,t=s.y7){return new a(e,t)}},82397:(e,t,i)=>{i.d(t,{G6:()=>p,Ie:()=>m,J9:()=>d,RF:()=>h,U1:()=>f,vY:()=>a}),i(33955);const s=(e,t,i)=>[t,i],n=(e,t,i)=>[t,i,e[2]],r=(e,t,i)=>[t,i,e[2],e[3]];function a(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],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax]:[0,0]}:null}function l({scale:e,translate:t},i){return i*e[0]+t[0]}function o({scale:e,translate:t},i){return t[1]-i*e[1]}function u(e,t,i){const s=new Array(i.length);if(!i.length)return s;const[n,r]=e.scale;let a=l(e,i[0][0]),u=o(e,i[0][1]);s[0]=t(i[0],a,u);for(let e=1;e<i.length;e++){const l=i[e];a+=l[0]*n,u-=l[1]*r,s[e]=t(l,a,u)}return s}function c(e,t,i){const s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=u(e,t,i[n]);return s}function h(e,t,i,s,n){return t.x=function({scale:e,translate:t},i){return Math.round((i-t[0])/e[0])}(e,i.x),t.y=function({scale:e,translate:t},i){return Math.round((t[1]-i)/e[1])}(e,i.y),t!==i&&(s&&(t.z=i.z),n&&(t.m=i.m)),t}function d(e,t,i,a,l){return null!=i&&(t.points=function(e,t,i,a){return u(e,i?a?r:n:a?n:s,t)}(e,i.points,a,l)),t}function f(e,t,i,s,n){return null==i||(t.x=l(e,i.x),t.y=o(e,i.y),t!==i&&(s&&(t.z=i.z),n&&(t.m=i.m))),t}function m(e,t,i,a,l){return null!=i&&(t.rings=function(e,t,i,a){return c(e,i?a?r:n:a?n:s,t)}(e,i.rings,a,l)),t}function p(e,t,i,a,l){return null!=i&&(t.paths=function(e,t,i,a){return c(e,i?a?r:n:a?n:s,t)}(e,i.paths,a,l)),t}},11028:(e,t,i)=>{i.d(t,{q:()=>Me});var s=i(67676),n=i(20102),r=i(96674),a=i(22974),l=i(70586),o=i(69801),u=i(95330),c=i(67900),h=i(73615),d=i(60437),f=i(24470),m=i(20322),p=i(33955),g=i(16306),y=i(8744),_=i(98732),x=i(35454),T=i(13867),S=i(8968);const I=new class{constructor(e,t){this._cache=new T.z(e),this._invalidCache=new T.z(t)}get(e,t){const i=`${t.uid}:${e}`,s=this._cache.get(i);if(s)return s;if(void 0!==this._invalidCache.get(i))return null;try{const s=S.WhereClause.create(e,t);return this._cache.put(i,s),s}catch{return this._invalidCache.put(i,null),null}}}(50,500),E="feature-store:unsupported-query",R=" as ",F=new x.X({esriFieldTypeString:"string"}),b=new x.X({esriFieldTypeOID:"oid",esriFieldTypeSmallInteger:"small-integer",esriFieldTypeBigInteger:"big-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long"}),w=new x.X({esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),v=new x.X({esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id"}),A=new Set([...b.jsonValues,...w.jsonValues,...F.jsonValues,...v.jsonValues]),N=new Intl.ListFormat("en-US",{type:"conjunction"}).format([...b.apiValues,...w.apiValues,...F.apiValues,...v.apiValues]);function C(e,t,i={}){const s=k(e,t);if(!s)throw new n.Z(E,"invalid SQL expression",{expression:e});const r=i.expressionName||"expression";if(i.validateStandardized&&!s.isStandardized)throw new n.Z(E,`${r} is not standard`,{expression:e});if(i.validateAggregate&&!s.isAggregate)throw new n.Z(E,`${r} does not contain a valid aggregate function`,{expression:e});return s.fieldNames}function V(e,t,i,s){if(!t)return!0;const r="having",a=C(t,e,{validateAggregate:!0,expressionName:r});D(e,a,{expressionName:r,query:s}),P(e,a,{expressionName:r,query:s});const l=I.get(t,e),o=l?.getExpressions().every((t=>{const{aggregateType:s,field:n}=t,r=e.get(n)?.name;return i.some((t=>{const{onStatisticField:i,statisticType:n}=t,a=e.get(i)?.name;return a===r&&n.toLowerCase().trim()===s}))}));if(!o)throw new n.Z(E,"expressions in having should also exist in outStatistics",{having:t});return!0}function k(e,t){return e?I.get(e,t):null}function D(e,t,i={}){i.errorMessage||(i.errorMessage=i.expressionName?`${i.expressionName} contains invalid fields`:"Fields are invalid"),O(e,t,((e,t)=>t.has(e)),i)}function P(e,t,i={}){i.errorMessage||(i.errorMessage=i.expressionName?`${i.expressionName} only supports ${N} field types`:`Only ${N} field types are supported`),O(e,t,((e,t)=>!L(e,t)),i)}function O(e,t,i,s={}){const r=s.verifyExpression??!0,a=[];for(const n of t){const t=i(n,e);if("*"!==n&&!t)if(r){const t=M(n);try{O(e,C(t,e,{validateStandardized:!0}),i,s)}catch(e){const t=e?.details;if(t?.expression)throw e;t?.invalidFields?a.push(...t.invalidFields):a.push(n)}}else a.push(n)}if(a.length)throw new n.Z(E,s.errorMessage,{invalidFields:a,query:s.query})}function M(e){return/\((.*?)\)/.test(e)?e:e.split(R)[0]}function L(e,t,i=A){const s=t.get(e);return!!s&&!i.has(s.type)}var G=i(37427),z=i(61159),Q=i(35308),q=i(49600),U=i(82397),B=i(11490),Z=i(24452),j=i(59266);class Y{constructor(e,t,i){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues??!1,this.fieldsIndex=i,this.featureAdapter=t;const s=e.outFields;if(s&&!s.includes("*")){this.outFields=s;let e=0;for(const t of s){const s=M(t),n=this.fieldsIndex.get(s),r=n?null:k(s,i),a=n?n.name:t.split(R)[1]||"FIELD_EXP_"+e++;this._fieldDataCache.set(t,{alias:a,clause:r})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach((e=>this.getAttributes(e))),this._returnDistinctMap.size):e.length}getAttributes(e){const t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,i){const s=i?i.name:t;let n=null;return this._fieldDataCache.has(s)?n=this._fieldDataCache.get(s)?.clause:i||(n=k(t,this.fieldsIndex),this._fieldDataCache.set(s,{alias:s,clause:n})),i?this.featureAdapter.getAttribute(e,s):n?.calculateValue(e,this.featureAdapter)}getDataValues(e,t){const i=t.normalizationType,s=t.normalizationTotal,n=this.fieldsIndex.isDateField(t.field);return e.map((e=>{let r=t.field&&this.getFieldValue(e,t.field,this.fieldsIndex.get(t.field));if(t.field2?(r=`${(0,Z.wk)(r)}${t.fieldDelimiter}${(0,Z.wk)(this.getFieldValue(e,t.field2,this.fieldsIndex.get(t.field2)))}`,t.field3&&(r=`${r}${t.fieldDelimiter}${(0,Z.wk)(this.getFieldValue(e,t.field3,this.fieldsIndex.get(t.field3)))}`)):n&&"string"==typeof r&&(r=r?new Date(r).getTime():null),i&&Number.isFinite(r)){const n="field"===i&&t.normalizationField?this.getFieldValue(e,t.normalizationField,this.fieldsIndex.get(t.normalizationField)):null;r=(0,Z.fk)(r,i,n,s)}return r}))}async getExpressionValues(e,t,i,s,n){const{arcadeUtils:r}=await(0,j.LC)(),a=r.hasGeometryOperations(t);a&&await r.enableGeometryOperations();const l=r.createFunction(t),o=r.getViewInfo(i),u={fields:this.fieldsIndex.fields};return e.map((e=>{const t={attributes:this.featureAdapter.getAttributes(e),layer:u,geometry:a?{...(0,B.Op)(s.geometryType,s.hasZ,s.hasM,this.featureAdapter.getGeometry(e)),spatialReference:i?.spatialReference}:null},c=r.createExecContext(t,o,n);return r.executeFunction(l,c)}))}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:k(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testFeature(e,this.featureAdapter)??!1}validateItems(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:k(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testSet(e,this.featureAdapter)??!1}_processAttributesForOutFields(e){const t=this.outFields;if(!t?.length)return this.featureAdapter.getAttributes(e);const i={};for(const s of t){const{alias:t,clause:n}=this._fieldDataCache.get(s);i[t]=n?n.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,t)}return i}_processAttributesForDistinctValues(e){if(null==e||!this.returnDistinctValues)return e;const t=this.outFields,i=[];if(t)for(const s of t){const{alias:t}=this._fieldDataCache.get(s);i.push(e[t])}else for(const t in e)i.push(e[t]);const s=`${(t||["*"]).join(",")}=${i.join(",")}`;let n=this._returnDistinctMap.get(s)||0;return this._returnDistinctMap.set(s,++n),n>1?null:e}}function H(e,t,i){return{objectId:e,target:t,distance:i,type:"vertex"}}function $(e,t,i,s,n,r=!1){return{objectId:e,target:t,distance:i,type:"edge",start:s,end:n,draped:r}}var W=i(35671);class X{constructor(e,t,i){this.items=e,this.query=t,this.geometryType=i.geometryType,this.hasM=i.hasM,this.hasZ=i.hasZ,this.fieldsIndex=i.fieldsIndex,this.objectIdField=i.objectIdField,this.spatialReference=i.spatialReference,this.featureAdapter=i.featureAdapter}get size(){return this.items.length}createQueryResponseForCount(){const e=new Y(this.query,this.featureAdapter,this.fieldsIndex);if(!this.query.outStatistics)return e.countDistinctValues(this.items);const{groupByFieldsForStatistics:t,having:i,outStatistics:s}=this.query,n=t?.length;if(!n)return 1;const r=new Map,a=new Map,l=new Set;for(const n of s){const{statisticType:s}=n,o="exceedslimit"!==s?n.onStatisticField:void 0;if(!a.has(o)){const i=[];for(const s of t){const t=this._getAttributeValues(e,s,r);i.push(t)}a.set(o,this._calculateUniqueValues(i,e.returnDistinctValues))}const u=a.get(o);for(const t in u){const{data:s,items:n}=u[t],r=s.join(",");i&&!e.validateItems(n,i)||l.add(r)}}return l.size}async createQueryResponse(){let e;if(e=this.query.outStatistics?this.query.outStatistics.some((e=>"exceedslimit"===e.statisticType))?this._createExceedsLimitQueryResponse(this.query):await this._createStatisticsQueryResponse(this.query):this._createFeatureQueryResponse(this.query),this.query.returnQueryGeometry){const t=this.query.geometry;(0,y.JY)(this.query.outSR)&&!(0,y.fS)(t.spatialReference,this.query.outSR)?e.queryGeometry=(0,B.S2)({spatialReference:this.query.outSR,...(0,G.iV)(t,t.spatialReference,this.query.outSR)}):e.queryGeometry=(0,B.S2)({spatialReference:this.query.outSR,...t})}return e}createSnappingResponse(e,t){const i=this.featureAdapter,s=K(this.hasZ,this.hasM),{point:n,mode:r}=e,a="number"==typeof e.distance?e.distance:e.distance.x,l="number"==typeof e.distance?e.distance:e.distance.y,o={candidates:[]},u="esriGeometryPolygon"===this.geometryType,c=this._getPointCreator(r,this.spatialReference,t),h=new ee(null,0),d=new ee(null,0),f={x:0,y:0,z:0};for(const t of this.items){const r=i.getGeometry(t);if(null==r)continue;const{coords:m,lengths:p}=r;if(h.coords=m,d.coords=m,e.returnEdge){let e=0;for(let r=0;r<p.length;r++){const u=p[r];for(let r=0;r<u;r++,e+=s){const m=h;if(m.coordsIndex=e,r!==u-1){const r=d;r.coordsIndex=e+s;const u=f;J(f,n,m,r);const h=(n.x-u.x)/a,p=(n.y-u.y)/l,g=h*h+p*p;g<=1&&o.candidates.push($(i.getObjectId(t),c(u),Math.sqrt(g),c(m),c(r)))}}}}if("none"!==e.vertexMode){const r=u?m.length-s:m.length;if("all"===e.vertexMode)for(let e=0;e<r;e+=s){const s=h;s.coordsIndex=e;const r=(n.x-s.x)/a,u=(n.y-s.y)/l,d=r*r+u*u;d<=1&&o.candidates.push(H(i.getObjectId(t),c(s),Math.sqrt(d)))}else if("ends"===e.vertexMode){const e=[0];u||e.push(m.length-s);for(const s of e){const e=h;e.coordsIndex=s;const r=(n.x-e.x)/a,u=(n.y-e.y)/l,d=r*r+u*u;d<=1&&o.candidates.push(H(i.getObjectId(t),c(e),Math.sqrt(d)))}}}}return o.candidates.sort(((e,t)=>e.distance-t.distance)),o}_getPointCreator(e,t,i){const s=null==i||(0,y.fS)(t,i)?e=>e:e=>(0,G.iV)(e,t,i),{hasZ:n}=this;return"3d"===e?n?({x:e,y:t,z:i})=>s({x:e,y:t,z:i}):({x:e,y:t})=>s({x:e,y:t,z:0}):({x:e,y:t})=>s({x:e,y:t})}async createSummaryStatisticsResponse(e){const{field:t,valueExpression:i,normalizationField:s,normalizationType:n,normalizationTotal:r,minValue:a,maxValue:l,scale:o,timeZone:u}=e,c=this.fieldsIndex.isDateField(t),h=await this._getDataValues({field:t,valueExpression:i,normalizationField:s,normalizationType:n,normalizationTotal:r,scale:o,timeZone:u}),d=(0,Z.S5)({normalizationType:n,normalizationField:s,minValue:a,maxValue:l}),f=this.fieldsIndex.get(t),m={value:.5,fieldType:f?.type},p=(0,W.qN)(f)?(0,Z.H0)({values:h,supportsNullCount:d,percentileParams:m}):(0,Z.i5)({values:h,minValue:a,maxValue:l,useSampleStdDev:!n,supportsNullCount:d,percentileParams:m});return(0,Z.F_)(p,c)}async createUniqueValuesResponse(e){const{field:t,valueExpression:i,domains:s,returnAllCodedValues:n,scale:r,timeZone:a}=e,l=await this._getDataValues({field:t,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,valueExpression:i,scale:r,timeZone:a}),o=(0,Z.eT)(l);return(0,Z.Qm)(o,s,n,e.fieldDelimiter)}async createClassBreaksResponse(e){const{field:t,valueExpression:i,normalizationField:s,normalizationType:n,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:l,minValue:o,maxValue:u,numClasses:c,scale:h,timeZone:d}=e,f=await this._getDataValues({field:t,valueExpression:i,normalizationField:s,normalizationType:n,normalizationTotal:r,scale:h,timeZone:d}),m=(0,Z.G2)(f,{field:t,normalizationField:s,normalizationType:n,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:l,minValue:o,maxValue:u,numClasses:c});return(0,Z.DL)(m,a)}async createHistogramResponse(e){const{field:t,valueExpression:i,normalizationField:s,normalizationType:n,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:l,minValue:o,maxValue:u,numBins:c,scale:h,timeZone:d}=e,f=await this._getDataValues({field:t,valueExpression:i,normalizationField:s,normalizationType:n,normalizationTotal:r,scale:h,timeZone:d});return(0,Z.oF)(f,{field:t,normalizationField:s,normalizationType:n,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:l,minValue:o,maxValue:u,numBins:c})}_sortFeatures(e,t,i){if(e.length>1&&t?.length)for(const s of t.reverse()){const t=s.split(" "),n=t[0],r=this.fieldsIndex.get(n),a=!!t[1]&&"desc"===t[1].toLowerCase(),l=(0,Z.Lq)(r?.type,a);e.sort(((e,t)=>{const s=i(e,n,r),a=i(t,n,r);return l(s,a)}))}}_createFeatureQueryResponse(e){const t=this.items,{geometryType:i,hasM:s,hasZ:n,objectIdField:r,spatialReference:a}=this,{outFields:l,outSR:o,quantizationParameters:u,resultRecordCount:c,resultOffset:h,returnZ:d,returnM:f}=e,m=null!=c&&t.length>(h||0)+c,p=l&&(l.includes("*")?[...this.fieldsIndex.fields]:l.map((e=>this.fieldsIndex.get(e))));return{exceededTransferLimit:m,features:this._createFeatures(e,t),fields:p,geometryType:i,hasM:s&&f,hasZ:n&&d,objectIdFieldName:r,spatialReference:(0,B.S2)(o||a),transform:u&&(0,U.vY)(u)||null}}_createFeatures(e,t){const i=new Y(e,this.featureAdapter,this.fieldsIndex),{hasM:s,hasZ:n}=this,{orderByFields:r,quantizationParameters:a,returnGeometry:l,returnCentroid:o,maxAllowableOffset:u,resultOffset:c,resultRecordCount:h,returnZ:d=!1,returnM:f=!1}=e,m=n&&d,p=s&&f;let g=[],y=0;const _=[...t];if(this._sortFeatures(_,r,((e,t,s)=>i.getFieldValue(e,t,s))),l||o){const e=(0,U.vY)(a)??void 0;if(l&&!o)for(const t of _)g[y++]={attributes:i.getAttributes(t),geometry:(0,B.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),u,e,m,p)};else if(!l&&o)for(const t of _)g[y++]={attributes:i.getAttributes(t),centroid:(0,B.EG)(this,this.featureAdapter.getCentroid(t,this),e)};else for(const t of _)g[y++]={attributes:i.getAttributes(t),centroid:(0,B.EG)(this,this.featureAdapter.getCentroid(t,this),e),geometry:(0,B.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),u,e,m,p)}}else for(const e of _){const t=i.getAttributes(e);t&&(g[y++]={attributes:t})}const x=c||0;if(null!=h){const e=x+h;g=g.slice(x,Math.min(g.length,e))}return g}_createExceedsLimitQueryResponse(e){let t=!1,i=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;for(const t of e.outStatistics??[])if("exceedslimit"===t.statisticType){i=null!=t.maxPointCount?t.maxPointCount:Number.POSITIVE_INFINITY,s=null!=t.maxRecordCount?t.maxRecordCount:Number.POSITIVE_INFINITY,n=null!=t.maxVertexCount?t.maxVertexCount:Number.POSITIVE_INFINITY;break}if("esriGeometryPoint"===this.geometryType)t=this.items.length>i;else if(this.items.length>s)t=!0;else{const e=K(this.hasZ,this.hasM),i=this.featureAdapter;t=this.items.reduce(((e,t)=>{const s=i.getGeometry(t);return e+(null!=s&&s.coords.length||0)}),0)/e>n}return{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(t)}}]}}async _createStatisticsQueryResponse(e){const t={attributes:{}},i=[],s=new Map,n=new Map,r=new Map,a=new Map,l=new Y(e,this.featureAdapter,this.fieldsIndex),o=e.outStatistics,{groupByFieldsForStatistics:u,having:c,orderByFields:h}=e,d=u?.length,f=!!d,m=f?u[0]:null,p=f&&!this.fieldsIndex.get(m);for(const e of o??[]){const{outStatisticFieldName:o,statisticType:h}=e,g=e,y="exceedslimit"!==h?e.onStatisticField:void 0,_="percentile_disc"===h||"percentile_cont"===h,x="EnvelopeAggregate"===h||"CentroidAggregate"===h||"ConvexHullAggregate"===h,T=f&&1===d&&(y===m||p)&&"count"===h;if(f){if(!r.has(y)){const e=[];for(const t of u){const i=this._getAttributeValues(l,t,s);e.push(i)}r.set(y,this._calculateUniqueValues(e,!x&&l.returnDistinctValues))}const e=r.get(y);for(const t in e){const{count:i,data:n,items:r,itemPositions:h}=e[t],d=n.join(",");if(!c||l.validateItems(r,c)){const e=a.get(d)||{attributes:{}};if(x){e.aggregateGeometries||(e.aggregateGeometries={});const{aggregateGeometries:t,outStatisticFieldName:i}=await this._getAggregateGeometry(g,r);e.aggregateGeometries[i]=t}else{let t=null;if(T)t=i;else{const e=this._getAttributeValues(l,y,s),i=h.map((t=>e[t]));t=_&&"statisticParameters"in g?this._getPercentileValue(g,i):this._getStatisticValue(g,i,null,l.returnDistinctValues)}e.attributes[o]=t}let t=0;u.forEach(((i,s)=>e.attributes[this.fieldsIndex.get(i)?i:"EXPR_"+ ++t]=n[s])),a.set(d,e)}}}else if(x){t.aggregateGeometries||(t.aggregateGeometries={});const{aggregateGeometries:e,outStatisticFieldName:i}=await this._getAggregateGeometry(g,this.items);t.aggregateGeometries[i]=e}else{const e=this._getAttributeValues(l,y,s);t.attributes[o]=_&&"statisticParameters"in g?this._getPercentileValue(g,e):this._getStatisticValue(g,e,n,l.returnDistinctValues)}i.push({name:o,alias:o,type:"esriFieldTypeDouble"})}const g=f?Array.from(a.values()):[t];return this._sortFeatures(g,h,((e,t)=>e.attributes[t])),{fields:i,features:g}}async _getAggregateGeometry(e,t){const{convexHull:s,union:n}=await Promise.all([i.e(5837),i.e(247)]).then(i.bind(i,30247)),{statisticType:r,outStatisticFieldName:a}=e,{featureAdapter:l,spatialReference:o,geometryType:u,hasZ:c,hasM:h}=this,d=t.map((e=>(0,B.Op)(u,c,h,l.getGeometry(e)))),f=s(o,d,!0)[0],m={aggregateGeometries:null,outStatisticFieldName:null};if("EnvelopeAggregate"===r){const e=f?(0,q._w)(f):(0,q.aO)(n(o,d));m.aggregateGeometries={...e,spatialReference:o},m.outStatisticFieldName=a||"extent"}else if("CentroidAggregate"===r){const e=f?(0,Q.tO)(f):(0,Q.$G)((0,q.aO)(n(o,d)));m.aggregateGeometries={x:e[0],y:e[1],spatialReference:o},m.outStatisticFieldName=a||"centroid"}else"ConvexHullAggregate"===r&&(m.aggregateGeometries=f,m.outStatisticFieldName=a||"convexHull");return m}_getStatisticValue(e,t,i,s){const{onStatisticField:n,statisticType:r}=e;let a=null;return a=i?.has(n)?i.get(n):(0,W.qN)(this.fieldsIndex.get(n))?(0,Z.H0)({values:t,returnDistinct:s}):(0,Z.i5)({values:s?[...new Set(t)]:t,minValue:null,maxValue:null,useSampleStdDev:!0}),i&&i.set(n,a),a["var"===r?"variance":r]}_getPercentileValue(e,t){const{onStatisticField:i,statisticParameters:s,statisticType:n}=e,{value:r,orderBy:a}=s,l=this.fieldsIndex.get(i);return(0,Z.XL)(t,{value:r,orderBy:a,fieldType:l?.type,isDiscrete:"percentile_disc"===n})}_getAttributeValues(e,t,i){if(i.has(t))return i.get(t);const s=this.fieldsIndex.get(t),n=this.items.map((i=>e.getFieldValue(i,t,s)));return i.set(t,n),n}_calculateUniqueValues(e,t){const i={},s=this.items,n=s.length;for(let r=0;r<n;r++){const n=s[r],a=[];for(const t of e)a.push(t[r]);const l=a.join(",");null==i[l]?i[l]={count:1,data:a,items:[n],itemPositions:[r]}:(t||i[l].count++,i[l].items.push(n),i[l].itemPositions.push(r))}return i}async _getDataValues(e){const t=new Y(this.query,this.featureAdapter,this.fieldsIndex),{valueExpression:i,scale:s,timeZone:n}=e;return i?t.getExpressionValues(this.items,i,{viewingMode:"map",scale:s,spatialReference:this.query.outSR||this.spatialReference},{geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM},n):t.getDataValues(this.items,{field:e.field,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,normalizationField:e.normalizationField,normalizationType:e.normalizationType,normalizationTotal:e.normalizationTotal})}}function J(e,t,i,s){const n=s.x-i.x,r=s.y-i.y,a=n*n+r*r,l=(t.x-i.x)*n+(t.y-i.y)*r,o=Math.min(1,Math.max(0,l/a));e.x=i.x+n*o,e.y=i.y+r*o}function K(e,t){return e?t?4:3:t?3:2}class ee{constructor(e,t){this.coords=e,this.coordsIndex=t}get x(){return this.coords[this.coordsIndex]}get y(){return this.coords[this.coordsIndex+1]}get z(){return this.coords[this.coordsIndex+2]}}var te=i(10402),ie=i(17590),se=i(99514),ne=i(61247),re=(i(80442),i(92604)),ae=i(54790),le=i(44553),oe=i(17445),ue=i(95528),ce=i(76882);class he{constructor(){this._tasks=new Array,this._running=(0,ue.t)(!1)}get length(){return this._tasks.length}get running(){return this._running.value}destroy(){this.cancelAll()}runTask(e){for(;!e.done&&this._process(e);)e.madeProgress()}push(e,t,i){return this._running.value=!0,new Promise(((s,n)=>this._tasks.push(new de(s,n,e,t,i))))}unshift(e,t,i){return this._running.value=!0,new Promise(((s,n)=>this._tasks.unshift(new de(s,n,e,t,i))))}_process(e){if(0===this._tasks.length)return!1;const t=this._tasks.shift();try{const i=(0,u.Hc)(t.signal);if(i&&!t.abortCallback)t.reject((0,u.zE)());else{const s=i?t.abortCallback?.((0,u.zE)()):t.callback(e);(0,u.y8)(s)?s.then(t.resolve,t.reject):t.resolve(s)}}catch(e){t.reject(e)}return this._running.value=this._tasks.length>0,!0}cancelAll(){const e=(0,u.zE)();for(const t of this._tasks)if(t.abortCallback){const i=t.abortCallback(e);t.resolve(i)}else t.reject(e);this._tasks.length=0,this._running.value=!1}}class de{constructor(e,t,i,s=void 0,n=void 0){this.resolve=e,this.reject=t,this.callback=i,this.signal=s,this.abortCallback=n}}var fe=i(43697),me=i(92036),pe=i(5600),ge=(i(75215),i(52011));let ye=class extends me.Z{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,fe._)([(0,pe.Cb)()],ye.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,fe._)([(0,pe.Cb)()],ye.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),ye=(0,fe._)([(0,ge.j)("esri.views.support.DebugFlags")],ye);const _e=new ye;var xe,Te,Se,Ie=i(95720);(Se=xe||(xe={}))[Se.YIELD=1]="YIELD",function(e){e.RESOURCE_CONTROLLER_IMMEDIATE="immediate",e.RESOURCE_CONTROLLER="schedule",e.SLIDE="slide",e.STREAM_DATA_LOADER="stream loader",e.ELEVATION_QUERY="elevation query",e.TERRAIN_SURFACE="terrain",e.SURFACE_GEOMETRY_UPDATES="surface geometry updates",e.LOD_RENDERER="LoD renderer",e.GRAPHICS_CORE="Graphics3D",e.I3S_CONTROLLER="I3S",e.POINT_CLOUD_LAYER="point cloud",e.FEATURE_TILE_FETCHER="feature fetcher",e.OVERLAY="overlay",e.STAGE="stage",e.GRAPHICS_DECONFLICTOR="graphics deconflictor",e.FILTER_VISIBILITY="Graphics3D filter visibility",e.SCALE_VISIBILITY="Graphics3D scale visibility",e.FRUSTUM_VISIBILITY="Graphics3D frustum visibility",e.POINT_OF_INTEREST_FREQUENT="POI frequent",e.POINT_OF_INTEREST_INFREQUENT="POI infrequent",e.LABELER="labeler",e.FEATURE_QUERY_ENGINE="feature query",e.FEATURE_TILE_TREE="feature tile tree",e.FEATURE_TILE_TREE_ACTIVE="fast feature tile tree",e.ELEVATION_ALIGNMENT="elevation alignment",e.TEXT_TEXTURE_ATLAS="text texture atlas",e.TEXTURE_UNLOAD="texture unload",e.LINE_OF_SIGHT_TOOL="line of sight tool",e.LINE_OF_SIGHT_TOOL_INTERACTIVE="interactive line of sight tool",e.ELEVATION_PROFILE="elevation profile",e.SNAPPING="snapping",e.SHADOW_ACCUMULATOR="shadow accumulator",e.CLOUDS_GENERATOR="clouds generator",e[e.NONE=0]="NONE",e[e.TEST_PRIO=1]="TEST_PRIO"}(Te||(Te={}));const Ee=new Map([[Te.RESOURCE_CONTROLLER_IMMEDIATE,0],[Te.RESOURCE_CONTROLLER,4],[Te.SLIDE,0],[Te.STREAM_DATA_LOADER,0],[Te.ELEVATION_QUERY,0],[Te.TERRAIN_SURFACE,1],[Te.SURFACE_GEOMETRY_UPDATES,1],[Te.LOD_RENDERER,2],[Te.GRAPHICS_CORE,2],[Te.I3S_CONTROLLER,2],[Te.POINT_CLOUD_LAYER,2],[Te.FEATURE_TILE_FETCHER,2],[Te.OVERLAY,4],[Te.STAGE,4],[Te.GRAPHICS_DECONFLICTOR,4],[Te.FILTER_VISIBILITY,4],[Te.SCALE_VISIBILITY,4],[Te.FRUSTUM_VISIBILITY,4],[Te.CLOUDS_GENERATOR,4],[Te.POINT_OF_INTEREST_FREQUENT,6],[Te.POINT_OF_INTEREST_INFREQUENT,30],[Te.LABELER,8],[Te.FEATURE_QUERY_ENGINE,8],[Te.FEATURE_TILE_TREE,16],[Te.FEATURE_TILE_TREE_ACTIVE,0],[Te.ELEVATION_ALIGNMENT,12],[Te.TEXT_TEXTURE_ATLAS,12],[Te.TEXTURE_UNLOAD,12],[Te.LINE_OF_SIGHT_TOOL,16],[Te.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[Te.SNAPPING,0],[Te.SHADOW_ACCUMULATOR,30]]);function Re(e){return Ee.has(e)?Ee.get(e):"number"==typeof e?e:1}const Fe=(0,ce.HA)(6.5),be=(0,ce.HA)(1),we=(0,ce.HA)(30),ve=(0,ce.HA)(1e3/30),Ae=(0,ce.HA)(100);var Ne,Ce;!function(e){e.Scheduler=class{get updating(){return this._updating.value}_updatingChanged(){this._updating.value=this._tasks.some((e=>e.needsUpdate))}constructor(){this._updating=(0,ue.t)(!0),this._microTaskQueued=!1,this._frameNumber=0,this.performanceInfo={total:new ae.Z("total"),tasks:new Map},this._frameTaskTimes=new Map,this._budget=new i,this._state=Ie.n.INTERACTING,this._tasks=new le.Z,this._runQueue=new le.Z,this._load=0,this._idleStateCallbacks=new le.Z,this._idleUpdatesStartFired=!1,this._forceTask=!1,this._debug=!1,this._debugHandle=(0,oe.YP)((()=>_e.SCHEDULER_LOG_SLOW_TASKS),(e=>this._debug=e),oe.nn);for(const e of Object.keys(Te))this.performanceInfo.tasks.set(Te[e],new ae.Z(Te[e]));const e=this;this._test={FRAME_SAFETY_BUDGET:Fe,INTERACTING_BUDGET:ve,IDLE_BUDGET:Ae,get availableBudget(){return e._budget.budget},usedBudget:0,getBudget:()=>e._budget,setBudget:t=>e._budget=t,updateTask:e=>this._updateTask(e),getState:e=>this._getState(e),getRuntime:e=>this._getRuntime(e),frameTaskTimes:this._frameTaskTimes,resetRuntimes:()=>this._resetRuntimes(),getRunning:()=>this._getRunning()}}destroy(){this._tasks.toArray().forEach((e=>e.remove())),this._tasks.clear(),(0,l.hw)(this._debugHandle),this._microTaskQueued=!1,this._updatingChanged()}taskRunningChanged(e){this._updatingChanged(),e&&this._budget.remaining>0&&!this._microTaskQueued&&(this._microTaskQueued=!0,queueMicrotask((()=>{this._microTaskQueued&&(this._microTaskQueued=!1,this._budget.remaining>0&&this._schedule()&&this.frame())})))}registerTask(e,i){const s=Re(e),n=new t(this,e,i,s);return this._tasks.push(n),this._updatingChanged(),this.performanceInfo.tasks.has(e)||this.performanceInfo.tasks.set(e,new ae.Z(e)),n}registerIdleStateCallbacks(e,t){const i={idleBegin:e,idleEnd:t};this._idleStateCallbacks.push(i),this.state===Ie.n.IDLE&&this._idleUpdatesStartFired&&i.idleBegin();const s=this;return{remove:()=>this._removeIdleStateCallbacks(i),set idleBegin(e){s._idleUpdatesStartFired&&(i.idleEnd(),s._state===Ie.n.IDLE&&e()),i.idleBegin=e},set idleEnd(e){i.idleEnd=e}}}get load(){return this._load}set state(e){this._state!==e&&(this._state=e,this.state!==Ie.n.IDLE&&this._idleUpdatesStartFired&&(this._idleUpdatesStartFired=!1,this._idleStateCallbacks.forAll((e=>e.idleEnd()))))}get state(){return this._state}updateBudget(e){this._test.usedBudget=0,++this._frameNumber;let t=Fe,i=e.frameDuration,s=be;switch(this.state){case Ie.n.IDLE:t=(0,ce.HA)(0),i=(0,ce.HA)(Math.max(Ae,e.frameDuration)),s=we;break;case Ie.n.INTERACTING:i=(0,ce.HA)(Math.max(ve,e.frameDuration));case Ie.n.ANIMATING:}return i=(0,ce.HA)(i-e.elapsedFrameTime-t),this.state!==Ie.n.IDLE&&i<be&&!this._forceTask?(this._forceTask=!0,!1):(i=(0,ce.HA)(Math.max(i,s)),this._budget.reset(i,this.state),this._updateLoad(),this._schedule())}frame(){switch(this._forceTask=!1,this._microTaskQueued=!1,this.state){case Ie.n.IDLE:this._idleUpdatesStartFired||(this._idleUpdatesStartFired=!0,this._idleStateCallbacks.forAll((e=>e.idleBegin()))),this._runIdle();break;case Ie.n.INTERACTING:this._runInteracting();break;default:this._runAnimating()}this._test.usedBudget=this._budget.elapsed}stopFrame(){this._budget.reset((0,ce.HA)(0),this._state),this._budget.madeProgress()}_removeIdleStateCallbacks(e){this._idleUpdatesStartFired&&e.idleEnd(),this._idleStateCallbacks.removeUnordered(e)}removeTask(e){this._tasks.removeUnordered(e),this._runQueue.removeUnordered(e),this._updatingChanged()}_updateTask(e){this._tasks.forAll((t=>{t.name===e&&t.setPriority(e)}))}_getState(e){if(this._runQueue.some((t=>t.name===e)))return Ce.SCHEDULED;let t=Ce.IDLE;return this._tasks.forAll((i=>{i.name===e&&i.needsUpdate&&(i.schedulePriority<=1?t=Ce.READY:t!==Ce.READY&&(t=Ce.WAITING))})),t}_getRuntime(e){let t=0;return this._tasks.forAll((i=>{i.name===e&&(t+=i.runtime)})),t}_resetRuntimes(){this._tasks.forAll((e=>e.runtime=0))}_getRunning(){const e=new Map;if(this._tasks.forAll((t=>{t.needsUpdate&&e.set(t.name,(e.get(t.name)||0)+1)})),0===e.size)return null;let t="";return e.forEach(((e,i)=>{t+=e>1?` ${e}x ${i}`:` ${i}`})),t}_runIdle(){this._run()}_runInteracting(){this._run()}_runAnimating(){this._run()}_updateLoad(){const e=this._tasks.reduce(((e,t)=>t.needsUpdate?++e:e),0);this._load=.9*this._load+e*(1-.9)}_schedule(){for(this._runQueue.filterInPlace((e=>!!e.needsUpdate||(e.schedulePriority=e.basePriority,!1))),this._tasks.forAll((e=>{0===e.basePriority&&e.needsUpdate&&!this._runQueue.includes(e)&&e.blockFrame!==this._frameNumber&&this._runQueue.unshift(e)}));0===this._runQueue.length;){let e=!1,t=0;if(this._tasks.forAll((i=>{i.needsUpdate&&0!==i.schedulePriority&&0!==i.basePriority&&i.blockFrame!==this._frameNumber&&(e=!0,t=Math.max(t,i.basePriority),1===i.schedulePriority?(i.schedulePriority=0,this._runQueue.push(i)):--i.schedulePriority)})),!e)return this._updatingChanged(),!1}return this._updatingChanged(),!0}_run(){const e=this._budget.now();this._startFrameTaskTimes();do{for(;this._runQueue.length>0;){const t=this._budget.now(),i=this._runQueue.pop();this._budget.resetProgress();try{i.task.runTask(this._budget)===xe.YIELD&&(i.blockFrame=this._frameNumber)}catch(e){re.Z.getLogger("esri.views.support.Scheduler").error(`Exception in task "${i.name}"`,e),i.blockFrame=this._frameNumber}!this._budget.hasProgressed&&i.blockFrame!==this._frameNumber&&i.needsUpdate&&(i.name,Te.I3S_CONTROLLER,i.blockFrame=this._frameNumber),i.schedulePriority=i.basePriority;const s=this._budget.now()-t;if(i.runtime+=s,this._frameTaskTimes.set(i.priority,this._frameTaskTimes.get(i.priority)+s),this._debug&&s>2*this._budget.budget&&console.log("Task",i.name,"used",s,"of max",this._budget.budget,"ms"),this._budget.remaining<=0)return this._updatingChanged(),void this._recordFrameTaskTimes(this._budget.now()-e)}}while(this._schedule());this._updatingChanged(),this._recordFrameTaskTimes(this._budget.now()-e)}_startFrameTaskTimes(){for(const e of Object.keys(Te))this._frameTaskTimes.set(Te[e],0)}_recordFrameTaskTimes(e){this._frameTaskTimes.forEach(((e,t)=>this.performanceInfo.tasks.get(t).record(e))),this.performanceInfo.total.record(e)}get test(){return this._test}};class t{get task(){return this._task.value}get updating(){return this._queue.running}constructor(e,t,i,s){this._scheduler=e,this.name=t,this._basePriority=s,this.blockFrame=0,this.runtime=0,this._queue=new he,this._handles=new ne.Z,this.schedulePriority=this._basePriority,this._task=(0,ue.t)(null!=i?i:this._queue),this._handles.add((0,oe.gx)((()=>this.task.running),(t=>e.taskRunningChanged(t))))}remove(){this.processQueue(Ve),this._scheduler.removeTask(this),this.schedule=ke.schedule,this.reschedule=ke.reschedule,this._handles.destroy()}get basePriority(){return this._basePriority}setPriority(e){this.name=e;const t=Re(e);0!==this._basePriority&&0===this.schedulePriority||(this.schedulePriority=t),this._basePriority=t}get priority(){return this.name}set priority(e){this.setPriority(e)}get needsUpdate(){return this.updating||this.task.running}schedule(e,t,i){return this._queue.push(e,t,i)}reschedule(e,t,i){return this._queue.unshift(e,t,i)}processQueue(e){this._queue.runTask(e)}}class i{constructor(){this._begin="undefined"!=typeof performance?performance.now():0,this._budget=0,this._state=Ie.n.IDLE,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this.elapsed>=this._budget&&this._enabled,this._done}get state(){return this._state}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e,t){this._begin=this.now(),this._budget=e,this._state=t,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return performance.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}}e.Budget=i}(Ne||(Ne={})),function(e){e.SCHEDULED="s",e.READY="r",e.WAITING="w",e.IDLE="i"}(Ce||(Ce={}));const Ve=(()=>{const e=new Ne.Budget;return e.enabled=!1,e})(),ke=new class{remove(){}processQueue(){}schedule(e,t,i){try{if((0,u.Hc)(t)){const e=(0,u.zE)();return i?Promise.resolve(i(e)):Promise.reject(e)}return(0,u.gx)(e(Ve))}catch(e){return Promise.reject(e)}}reschedule(e,t,i){return this.schedule(e,t,i)}},De="feature-store:unsupported-query",Pe=new o.WJ(2e6);let Oe=0;class Me{constructor(e){this._geometryQueryCache=null,this._changeHandle=null,this.capabilities={query:z.g},this.geometryType=e.geometryType,this.hasM=!!e.hasM,this.hasZ=!!e.hasZ,this.objectIdField=e.objectIdField,this.spatialReference=e.spatialReference,this.definitionExpression=e.definitionExpression,this.featureStore=e.featureStore,this.aggregateAdapter=e.aggregateAdapter,this._changeHandle=this.featureStore.events.on("changed",(()=>this.clearCache())),this.timeInfo=e.timeInfo,e.cacheSpatialQueries&&(this._geometryQueryCache=new o.Xq(Oe+++"$$",Pe)),this.fieldsIndex=(0,r.AK)(e.fieldsIndex)?e.fieldsIndex:se.Z.fromJSON(e.fieldsIndex),e.scheduler&&e.priority&&(this._frameTask=e.scheduler.registerTask(e.priority))}destroy(){this._frameTask=(0,l.hw)(this._frameTask),this.clearCache(),(0,l.SC)(this._geometryQueryCache),this._changeHandle=(0,l.hw)(this._changeHandle)}get featureAdapter(){return this.featureStore.featureAdapter}clearCache(){this._geometryQueryCache?.clear(),this._allFeaturesPromise=null,this._timeExtentPromise=null,this._fullExtentPromise=null}async executeQuery(e,t){try{return(await this._executeQuery(e,{},t)).createQueryResponse()}catch(t){if(t!==B.Ti)throw t;return new X([],e,this).createQueryResponse()}}async executeQueryForCount(e={},t){try{return(await this._executeQuery(e,{returnGeometry:!1,returnCentroid:!1,outSR:null},t)).createQueryResponseForCount()}catch(e){if(e!==B.Ti)throw e;return 0}}async executeQueryForExtent(e,t){const i=e.outSR;try{const s=await this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null},t),n=s.size;return n?{count:n,extent:await this._getBounds(s.items,s.spatialReference,i||this.spatialReference)}:{count:0,extent:null}}catch(e){if(e===B.Ti)return{count:0,extent:null};throw e}}async executeQueryForIds(e,t){return this.executeQueryForIdSet(e,t).then((e=>Array.from(e)))}async executeQueryForIdSet(e,t){try{const i=await this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null},t),s=i.items,n=new Set;return await this._reschedule((()=>{for(const e of s)n.add(i.featureAdapter.getObjectId(e))}),t),n}catch(e){if(e===B.Ti)return new Set;throw e}}async executeQueryForSnapping(e,t){const{point:i,distance:s,returnEdge:n,vertexMode:r}=e;if(!n&&"none"===r)return{candidates:[]};let l=(0,a.d9)(e.query);l=await this._schedule((()=>(0,B.j6)(l,this.definitionExpression,this.spatialReference)),t),l=await this._reschedule((()=>this._checkQuerySupport(l)),t);const o=!(0,y.fS)(i.spatialReference,this.spatialReference);o&&await(0,G._W)(i.spatialReference,this.spatialReference);const u="number"==typeof s?s:s.x,c="number"==typeof s?s:s.y,h={xmin:i.x-u,xmax:i.x+u,ymin:i.y-c,ymax:i.y+c,spatialReference:i.spatialReference},d=o?(0,G.iV)(h,this.spatialReference):h;if(!d)return{candidates:[]};const f=(await(0,g.aX)((0,p.im)(i),null,{signal:t}))[0],m=(await(0,g.aX)((0,p.im)(d),null,{signal:t}))[0];if(null==f||null==m)return{candidates:[]};const _=new X(await this._reschedule((()=>this._searchFeatures(this._getQueryBBoxes(m.toJSON()))),t),l,this);await this._reschedule((()=>this._executeObjectIdsQuery(_)),t),await this._reschedule((()=>this._executeTimeQuery(_)),t),await this._reschedule((()=>this._executeAttributesQuery(_)),t),await this._reschedule((()=>this._executeGeometryQueryForSnapping(_,t)),t);const x=f.toJSON(),T=o?(0,G.iV)(x,this.spatialReference):x,S=o?Math.max(d.xmax-d.xmin,d.ymax-d.ymin)/2:s;return _.createSnappingResponse({...e,point:T,distance:S},i.spatialReference)}async executeQueryForLatestObservations(e,t){if(!this.timeInfo?.trackIdField)throw new n.Z(De,"Missing timeInfo or timeInfo.trackIdField",{query:e,timeInfo:this.timeInfo});try{const i=await this._executeQuery(e,{},t);return await this._reschedule((()=>this._filterLatest(i)),t),i.createQueryResponse()}catch(t){if(t!==B.Ti)throw t;return new X([],e,this).createQueryResponse()}}async executeQueryForSummaryStatistics(e={},t,i){const{field:s,normalizationField:n,valueExpression:r}=t;return(await this._getQueryEngineResultForStats(e,{field:s,normalizationField:n,valueExpression:r},i)).createSummaryStatisticsResponse(t)}async executeQueryForUniqueValues(e={},t,i){const{field:s,field2:n,field3:r,valueExpression:a}=t;return(await this._getQueryEngineResultForStats(e,{field:s,field2:n,field3:r,valueExpression:a},i)).createUniqueValuesResponse(t)}async executeQueryForClassBreaks(e={},t,i){const{field:s,normalizationField:n,valueExpression:r}=t;return(await this._getQueryEngineResultForStats(e,{field:s,normalizationField:n,valueExpression:r},i)).createClassBreaksResponse(t)}async executeQueryForHistogram(e={},t,i){const{field:s,normalizationField:n,valueExpression:r}=t;return(await this._getQueryEngineResultForStats(e,{field:s,normalizationField:n,valueExpression:r},i)).createHistogramResponse(t)}async fetchRecomputedExtents(e){this._timeExtentPromise||=(0,ie.R)(this.timeInfo,this.featureStore);const[t,i]=await Promise.all([this._getFullExtent(),this._timeExtentPromise]);return(0,u.k_)(e),{fullExtent:t,timeExtent:i}}async _getBounds(e,t,i){const s=(0,d.t8)((0,d.Ue)(),d.G_);await this.featureStore.forEachBounds(e,(e=>(0,d.TC)(s,e)));const n={xmin:s[0],ymin:s[1],xmax:s[3],ymax:s[4],spatialReference:(0,B.S2)(this.spatialReference)};this.hasZ&&isFinite(s[2])&&isFinite(s[5])&&(n.zmin=s[2],n.zmax=s[5]);const r=(0,G.iV)(n,t,i);if(r.spatialReference=(0,B.S2)(i),r.xmax-r.xmin==0){const e=(0,c.c9)(r.spatialReference);r.xmin-=e,r.xmax+=e}if(r.ymax-r.ymin==0){const e=(0,c.c9)(r.spatialReference);r.ymin-=e,r.ymax+=e}if(this.hasZ&&null!=r.zmin&&null!=r.zmax&&r.zmax-r.zmin==0){const e=(0,c.c9)(r.spatialReference);r.zmin-=e,r.zmax+=e}return r}_getFullExtent(){return this._fullExtentPromise||="getFullExtent"in this.featureStore&&this.featureStore.getFullExtent?Promise.resolve(this.featureStore.getFullExtent(this.spatialReference)):this._getAllFeatures().then((e=>this._getBounds(e,this.spatialReference,this.spatialReference))),this._fullExtentPromise}async _schedule(e,t){return null!=this._frameTask?this._frameTask.schedule(e,t):e(Ve)}async _reschedule(e,t){return null!=this._frameTask?this._frameTask.reschedule(e,t):e(Ve)}async _getAllFeaturesQueryEngineResult(e){return new X(await this._getAllFeatures(),e,this)}async _getAllFeatures(){if(null==this._allFeaturesPromise){const e=[];this._allFeaturesPromise=(async()=>{await this.featureStore.forEach((t=>e.push(t)))})().then((()=>e))}const e=this._allFeaturesPromise,t=await e;return e===this._allFeaturesPromise?t.slice():this._getAllFeatures()}async _executeQuery(e,t,i){e=(0,a.d9)(e),e=await this._schedule((()=>(0,B.Up)(e,this.definitionExpression,this.spatialReference)),i),e=await this._reschedule((()=>this._checkQuerySupport(e)),i),e={...e,...t};const s=await this._reschedule((()=>this._executeSceneFilterQuery(e,i)),i),n=await this._reschedule((()=>this._executeGeometryQuery(e,s,i)),i);return await this._reschedule((()=>this._executeAggregateIdsQuery(n)),i),await this._reschedule((()=>this._executeObjectIdsQuery(n)),i),await this._reschedule((()=>this._executeTimeQuery(n)),i),await this._reschedule((()=>this._executeAttributesQuery(n)),i),n}async _executeSceneFilterQuery(e,t){if(null==e.sceneFilter)return null;const{outSR:i,returnGeometry:s,returnCentroid:n}=e,r=this.featureStore.featureSpatialReference,a=e.sceneFilter.geometry,l=null==r||(0,y.fS)(r,a.spatialReference)?a:(0,G.iV)(a,r);if(!l)return null;const o=s||n,u=(0,y.JY)(i)&&!(0,y.fS)(this.spatialReference,i)&&o?async e=>this._project(e,i):e=>e,c=this.featureAdapter,h=await this._reschedule((()=>this._searchFeatures(this._getQueryBBoxes(l))),t);if("disjoint"===e.sceneFilter.spatialRelationship){if(!h.length)return null;const i=new Set;for(const e of h)i.add(c.getObjectId(e));const s=await this._reschedule((()=>this._getAllFeatures()),t),n=await this._reschedule((async()=>{const n=await(0,te.cW)("esriSpatialRelDisjoint",l,this.geometryType,this.hasZ,this.hasM),r=await this._runSpatialFilter(s,(e=>!i.has(c.getObjectId(e))||n(c.getGeometry(e))),t);return new X(r,e,this)}),t);return u(n)}if(!h.length)return new X([],e,this);if(this._canExecuteSinglePass(l,e))return u(new X(h,e,this));const d=await(0,te.cW)("esriSpatialRelContains",l,this.geometryType,this.hasZ,this.hasM),f=await this._runSpatialFilter(h,(e=>d(c.getGeometry(e))),t);return u(new X(f,e,this))}async _executeGeometryQuery(e,t,i){if(null!=t&&0===t.items.length)return t;e=null!=t?t.query:e;const{geometry:n,outSR:r,spatialRel:a,returnGeometry:l,returnCentroid:o}=e,u=this.featureStore.featureSpatialReference,c=!n||null==u||(0,y.fS)(u,n.spatialReference)?n:(0,G.iV)(n,u),h=l||o,d=(0,y.JY)(r)&&!(0,y.fS)(this.spatialReference,r),f=this._geometryQueryCache&&null==t?d&&h?JSON.stringify({originalFilterGeometry:n,spatialRelationship:a,outSpatialReference:r}):JSON.stringify({originalFilterGeometry:n,spatialRelationship:a}):null,m=f?this._geometryQueryCache.get(f):null;if(null!=m)return new X(m,e,this);const p=async e=>(d&&h&&await this._project(e,r),f&&this._geometryQueryCache.put(f,e.items,e.items.length+1),e);if(!c)return p(null!=t?t:await this._getAllFeaturesQueryEngineResult(e));const g=this.featureAdapter;let _=await this._reschedule((()=>this._searchFeatures(this._getQueryBBoxes(n))),i);if("esriSpatialRelDisjoint"===a){if(!_.length)return p(null!=t?t:await this._getAllFeaturesQueryEngineResult(e));const s=new Set;for(const e of _)s.add(g.getObjectId(e));const n=null!=t?t.items:await this._reschedule((()=>this._getAllFeatures()),i),r=await this._reschedule((async()=>{const t=await(0,te.cW)(a,c,this.geometryType,this.hasZ,this.hasM),r=await this._runSpatialFilter(n,(e=>!s.has(g.getObjectId(e))||t(g.getGeometry(e))),i);return new X(r,e,this)}),i);return p(r)}if(null!=t){const e=new s.SO;_=_.filter((i=>(0,s.cq)(t.items,i,t.items.length,e)>=0))}if(!_.length){const t=new X([],e,this);return f&&this._geometryQueryCache.put(f,t.items,1),t}if(this._canExecuteSinglePass(c,e))return p(new X(_,e,this));const x=await(0,te.cW)(a,c,this.geometryType,this.hasZ,this.hasM),T=await this._runSpatialFilter(_,(e=>x(g.getGeometry(e))),i);return p(new X(T,e,this))}async _executeGeometryQueryForSnapping(e,t){const{query:i}=e,{spatialRel:s}=i;if(!e?.items?.length||!i.geometry||!s)return;const n=await(0,te.cW)(s,i.geometry,this.geometryType,this.hasZ,this.hasM),r=await this._runSpatialFilter(e.items,(e=>n(e.geometry)),t);e.items=r}_executeAggregateIdsQuery(e){if(0===e.items.length||!e.query.aggregateIds?.length||null==this.aggregateAdapter)return;const t=new Set;for(const i of e.query.aggregateIds)this.aggregateAdapter.getFeatureObjectIds(i).forEach((e=>t.add(e)));const i=this.featureAdapter.getObjectId;e.items=e.items.filter((e=>t.has(i(e))))}_executeObjectIdsQuery(e){if(0===e.items.length||!e.query.objectIds?.length)return;const t=new Set(e.query.objectIds),i=this.featureAdapter.getObjectId;e.items=e.items.filter((e=>t.has(i(e))))}_executeTimeQuery(e){if(0===e.items.length)return;const t=(0,ie.y)(this.timeInfo,e.query.timeExtent,this.featureAdapter);null!=t&&(e.items=e.items.filter(t))}_executeAttributesQuery(e){if(0===e.items.length)return;const t=k(e.query.where,this.fieldsIndex);if(t){if(!t.isStandardized)throw new TypeError("Where clause is not standardized");e.items=e.items.filter((e=>t.testFeature(e,this.featureAdapter)))}}async _runSpatialFilter(e,t,i){if(!t)return e;if(null==this._frameTask)return e.filter((e=>t(e)));let s=0;const n=new Array,r=async a=>{for(;s<e.length;){const l=e[s++];t(l)&&(n.push(l),a.madeProgress()),a.done&&await this._reschedule((e=>r(e)),i)}};return this._reschedule((e=>r(e)),i).then((()=>n))}_filterLatest(e){const{trackIdField:t,startTimeField:i,endTimeField:s}=this.timeInfo,n=s||i,r=new Map,a=this.featureAdapter.getAttribute;for(const i of e.items){const e=a(i,t),s=a(i,n),l=r.get(e);(!l||s>a(l,n))&&r.set(e,i)}e.items=Array.from(r.values())}_canExecuteSinglePass(e,t){const{spatialRel:i}=t;return(0,te.hN)(e)&&("esriSpatialRelEnvelopeIntersects"===i||"esriGeometryPoint"===this.geometryType&&("esriSpatialRelIntersects"===i||"esriSpatialRelContains"===i))}async _project(e,t){if(!t||(0,y.fS)(this.spatialReference,t))return e;const i=this.featureAdapter;let s;try{const e=await this._getFullExtent();s=(0,h.getTransformation)(this.spatialReference,t,e)}catch{}const n=await(0,G.oj)(e.items.map((e=>(0,B.Op)(this.geometryType,this.hasZ,this.hasM,i.getGeometry(e)))),this.spatialReference,t,s);return e.items=n.map(((t,s)=>i.cloneWithGeometry(e.items[s],(0,_.GH)(t,this.hasZ,this.hasM)))),e}_getQueryBBoxes(e){if((0,te.hN)(e)){if((0,p.YX)(e))return[(0,f.al)(Math.min(e.xmin,e.xmax),Math.min(e.ymin,e.ymax),Math.max(e.xmin,e.xmax),Math.max(e.ymin,e.ymax))];if((0,p.oU)(e))return e.rings.map((e=>(0,f.al)(Math.min(e[0][0],e[2][0]),Math.min(e[0][1],e[2][1]),Math.max(e[0][0],e[2][0]),Math.max(e[0][1],e[2][1]))))}return[(0,m.$P)((0,f.Ue)(),e)]}async _searchFeatures(e){const t=new Set;await Promise.all(e.map((e=>this.featureStore.forEachInBounds(e,(e=>t.add(e))))));const i=Array.from(t.values());return t.clear(),i}async _checkStatisticsSupport(e,t){if((e.distance??0)<0||null!=e.geometryPrecision||e.multipatchOption||e.pixelSize||e.relationParam||e.text||e.outStatistics||e.groupByFieldsForStatistics||e.having||e.orderByFields)throw new n.Z(De,"Unsupported query options",{query:e});return this._checkAttributesQuerySupport(e),Promise.all([this._checkStatisticsParamsSupport(t,e),(0,te.P0)(e,this.geometryType,this.spatialReference),(0,G._W)(this.spatialReference,e.outSR)]).then((()=>e))}async _checkStatisticsParamsSupport(e,t){let i=[];if(e.valueExpression){const{arcadeUtils:t}=await(0,j.LC)();i=t.extractFieldNames(e.valueExpression)}if(e.field&&i.push(e.field),e.field2&&i.push(e.field2),e.field3&&i.push(e.field3),e.normalizationField&&i.push(e.normalizationField),!i.length&&!e.valueExpression)throw new n.Z(De,"field or valueExpression is required",{params:e});D(this.fieldsIndex,i,{errorMessage:"Cannot calculate statistics for missing fields",query:t}),P(this.fieldsIndex,i,{expressionName:"statistics",query:t})}async _checkQuerySupport(e){if((e.distance??0)<0||null!=e.geometryPrecision||e.multipatchOption||e.pixelSize||e.relationParam||e.text)throw new n.Z(De,"Unsupported query options",{query:e});return this._checkAttributesQuerySupport(e),this._checkStatisticsQuerySupport(e),Promise.all([(0,te.P0)(e,this.geometryType,this.spatialReference),(0,G._W)(this.spatialReference,e.outSR)]).then((()=>e))}_checkAttributesQuerySupport(e){const{outFields:t,orderByFields:i,returnDistinctValues:s,outStatistics:r}=e,a=r?r.map((e=>e.outStatisticFieldName&&e.outStatisticFieldName.toLowerCase())).filter(Boolean):[];if(i&&i.length>0){const t=" asc",s=" desc",n=i.map((e=>{const i=e.toLowerCase();return i.includes(t)?i.split(t)[0]:i.includes(s)?i.split(s)[0]:e})).filter((e=>!a.includes(e)));D(this.fieldsIndex,n,{expressionName:"orderByFields",query:e})}if(t&&t.length>0)D(this.fieldsIndex,t,{expressionName:"outFields",query:e});else if(s)throw new n.Z(De,"outFields should be specified for returnDistinctValues",{query:e});!function(e,t,i){if(!t)return!0;const s="where clause",n=C(t,e,{validateStandardized:!0,expressionName:s});D(e,n,{expressionName:s,query:i}),P(e,n,{expressionName:s,query:i})}(this.fieldsIndex,e.where,e)}_checkStatisticsQuerySupport(e){const{outStatistics:t,groupByFieldsForStatistics:i,having:s}=e,r=i?.length,a=t?.length;if(s){if(!r||!a)throw new n.Z(De,"outStatistics and groupByFieldsForStatistics should be specified with having",{query:e});V(this.fieldsIndex,s,t,e)}if(a){if(!function(e){return null!=e&&e.every((e=>"exceedslimit"!==e.statisticType))}(t))return;const s=t.map((e=>e.onStatisticField)).filter(Boolean);D(this.fieldsIndex,s,{expressionName:"onStatisticFields",query:e}),r&&D(this.fieldsIndex,i,{expressionName:"groupByFieldsForStatistics",query:e});const a=new Set([...b.jsonValues,...w.jsonValues]),l=new Intl.ListFormat("en-US",{type:"conjunction"}).format([...b.apiValues,...w.apiValues]);for(const i of t){const{onStatisticField:t,statisticType:s}=i;if("percentile_disc"!==s&&"percentile_cont"!==s||!("statisticParameters"in i)){if("count"!==s&&"min"!==s&&"max"!==s&&t&&L(t,this.fieldsIndex,a))throw new n.Z(De,`outStatistics with '${s}' statistic type, only supports ${l} field types`,{definition:i,query:e})}else{const{statisticParameters:t}=i;if(!t)throw new n.Z(De,"statisticParameters should be set for percentile type",{definition:i,query:e})}}}}async _getQueryEngineResultForStats(e,t,i){e=(0,a.d9)(e);try{e=await this._schedule((()=>(0,B.Up)(e,this.definitionExpression,this.spatialReference)),i),e=await this._reschedule((()=>this._checkStatisticsSupport(e,t)),i);const s=await this._reschedule((()=>this._executeSceneFilterQuery(e,i)),i),n=await this._reschedule((()=>this._executeGeometryQuery(e,s,i)),i);return await this._reschedule((()=>this._executeAggregateIdsQuery(n)),i),await this._reschedule((()=>this._executeObjectIdsQuery(n)),i),await this._reschedule((()=>this._executeTimeQuery(n)),i),await this._reschedule((()=>this._executeAttributesQuery(n)),i),n}catch(t){if(t!==B.Ti)throw t;return new X([],e,this)}}}},10402:(e,t,i)=>{i.d(t,{hN:()=>S,P0:()=>T,cW:()=>x});var s=i(20102),n=i(54102),r=i(87416),a=i(33955),l=i(8744);function o(e,t){return e?t?4:3:t?3:2}function u(e,t,i,s,n,r){const a=o(n,r),{coords:l,lengths:u}=s;if(!u)return!1;for(let s=0,n=0;s<u.length;s++,n+=a)if(!c(e,t,i,l[n],l[n+1]))return!1;return!0}function c(e,t,i,s,n){if(!e)return!1;const r=o(t,i),{coords:a,lengths:l}=e;let u=!1,c=0;for(const e of l)u=h(u,a,r,c,e,s,n),c+=e*r;return u}function h(e,t,i,s,n,r,a){let l=e,o=s;for(let e=s,u=s+n*i;e<u;e+=i){o=e+i,o===u&&(o=s);const n=t[e],c=t[e+1],h=t[o],d=t[o+1];(c<a&&d>=a||d<a&&c>=a)&&n+(a-c)/(d-c)*(h-n)<r&&(l=!l)}return l}var d=i(98732),f=i(5428),m=i(37427),p=i(11490);const g="feature-store:unsupported-query",y={esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"intersects",esriSpatialRelIndexIntersects:null,esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:null},_={spatialRelationship:{esriSpatialRelIntersects:!0,esriSpatialRelContains:!0,esriSpatialRelWithin:!0,esriSpatialRelCrosses:!0,esriSpatialRelDisjoint:!0,esriSpatialRelTouches:!0,esriSpatialRelOverlaps:!0,esriSpatialRelEnvelopeIntersects:!0,esriSpatialRelIndexIntersects:!1,esriSpatialRelRelation:!1},queryGeometry:{esriGeometryPoint:!0,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!0},layerGeometry:{esriGeometryPoint:!0,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!1}};function x(e,t,s,l,o){if((0,a.oU)(t)&&"esriGeometryPoint"===s&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e)){const e=(0,d.Uy)(new f.Z,t,!1,!1);return Promise.resolve((t=>function(e,t,i,s){return c(e,!1,!1,s.coords[0],s.coords[1])}(e,0,0,t)))}if((0,a.oU)(t)&&"esriGeometryMultipoint"===s){const i=(0,d.Uy)(new f.Z,t,!1,!1);if("esriSpatialRelContains"===e)return Promise.resolve((e=>u(i,!1,!1,e,l,o)))}if((0,a.YX)(t)&&"esriGeometryPoint"===s&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e))return Promise.resolve((e=>(0,n.aV)(t,(0,p.Op)(s,l,o,e))));if((0,a.YX)(t)&&"esriGeometryMultipoint"===s&&"esriSpatialRelContains"===e)return Promise.resolve((e=>(0,n.lQ)(t,(0,p.Op)(s,l,o,e))));if((0,a.YX)(t)&&"esriSpatialRelIntersects"===e){const e="mesh"===(h=s)?r.h_:(0,r.IY)(h);return Promise.resolve((i=>e(t,(0,p.Op)(s,l,o,i))))}var h;return Promise.all([i.e(5837),i.e(247)]).then(i.bind(i,30247)).then((i=>{const n=i[y[e]].bind(null,t.spatialReference,t);return e=>n((0,p.Op)(s,l,o,e))}))}async function T(e,t,i){const{spatialRel:n,geometry:r}=e;if(r){if(!function(e){return null!=e&&!0===_.spatialRelationship[e]}(n))throw new s.Z(g,"Unsupported query spatial relationship",{query:e});if((0,l.JY)(r.spatialReference)&&(0,l.JY)(i)){if(!function(e){return null!=e&&!0===_.queryGeometry[(0,a.Ji)(e)]}(r))throw new s.Z(g,"Unsupported query geometry type",{query:e});if(!function(e){return null!=e&&!0===_.layerGeometry[e]}(t))throw new s.Z(g,"Unsupported layer geometry type",{query:e});if(e.outSR)return(0,m._W)(e.geometry?.spatialReference,e.outSR)}}}function S(e){if((0,a.YX)(e))return!0;if((0,a.oU)(e)){for(const t of e.rings){if(5!==t.length)return!1;if(t[0][0]!==t[1][0]||t[0][0]!==t[4][0]||t[2][0]!==t[3][0]||t[0][1]!==t[3][1]||t[0][1]!==t[4][1]||t[1][1]!==t[2][1])return!1}return!0}return!1}},17590:(e,t,i)=>{async function s(e,t){if(!e)return null;const i=t.featureAdapter,{startTimeField:s,endTimeField:n}=e;let r=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;if(s&&n)await t.forEach((e=>{const t=i.getAttribute(e,s),l=i.getAttribute(e,n);null==t||isNaN(t)||(r=Math.min(r,t)),null==l||isNaN(l)||(a=Math.max(a,l))}));else{const e=s||n;await t.forEach((t=>{const s=i.getAttribute(t,e);null==s||isNaN(s)||(r=Math.min(r,s),a=Math.max(a,s))}))}return{start:r,end:a}}function n(e,t,i){if(!t||!e)return null;const{startTimeField:s,endTimeField:n}=e;if(!s&&!n)return null;const{start:r,end:a}=t;if(null===r&&null===a)return null;if(void 0===r&&void 0===a)return()=>!1;const l=i.getAttributeAsTimestamp?.bind(i)??i.getAttribute.bind(i);return s&&n?function(e,t,i,s,n){return null!=s&&null!=n?r=>{const a=e(r,t),l=e(r,i);return(null==a||a<=n)&&(null==l||l>=s)}:null!=s?t=>{const n=e(t,i);return null==n||n>=s}:null!=n?i=>{const s=e(i,t);return null==s||s<=n}:void 0}(l,s,n,r,a):function(e,t,i,s){return null!=i&&null!=s&&i===s?s=>e(s,t)===i:null!=i&&null!=s?n=>{const r=e(n,t);return null!=r&&r>=i&&r<=s}:null!=i?s=>{const n=e(s,t);return null!=n&&n>=i}:null!=s?i=>{const n=e(i,t);return null!=n&&n<=s}:void 0}(l,s||n,r,a)}i.d(t,{R:()=>s,y:()=>n})},11490:(e,t,i)=>{i.d(t,{EG:()=>x,Op:()=>T,S2:()=>R,Ti:()=>m,Up:()=>S,j6:()=>I});var s=i(35454),n=i(67900),r=i(73615),a=i(49600),l=i(33955),o=i(16306),u=i(8744),c=i(98732),h=i(5428),d=i(37427);const f=new s.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),m=Object.freeze({}),p=new h.Z,g=new h.Z,y=new h.Z,_={esriGeometryPoint:c.fQ,esriGeometryPolyline:c.J6,esriGeometryPolygon:c.eG,esriGeometryMultipoint:c.Iv};function x(e,t,i,s=e.hasZ,n=e.hasM){if(null==t)return null;const r=e.hasZ&&s,a=e.hasM&&n;if(i){const l=(0,c.Nh)(y,t,e.hasZ,e.hasM,"esriGeometryPoint",i,s,n);return(0,c.fQ)(l,r,a)}return(0,c.fQ)(t,r,a)}function T(e,t,i,s,n,r,a=t,l=i){const o=t&&a,u=i&&l,h=null!=s?"coords"in s?s:s.geometry:null;if(null==h)return null;if(n){let s=(0,c.zj)(g,h,t,i,e,n,a,l);return r&&(s=(0,c.Nh)(y,s,o,u,e,r)),_[e]?.(s,o,u)??null}if(r){const s=(0,c.Nh)(y,h,t,i,e,r,a,l);return _[e]?.(s,o,u)??null}return(0,c.hY)(p,h,t,i,a,l),_[e]?.(p,o,u)??null}async function S(e,t,i){const{outFields:s,orderByFields:n,groupByFieldsForStatistics:r,outStatistics:a}=e;if(s)for(let e=0;e<s.length;e++)s[e]=s[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(a)for(let e=0;e<a.length;e++)a[e].onStatisticField&&(a[e].onStatisticField=a[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),I(e,t,i)}async function I(e,t,s){if(!e)return null;let{where:r}=e;if(e.where=r=r?.trim(),(!r||/^1 *= *1$/.test(r)||t&&t===r)&&(e.where=null),!e.geometry)return e;let c=await async function(e){const{distance:t,units:s}=e,r=e.geometry;if(null==t||"vertexAttributes"in r)return r;const a=r.spatialReference,l=s?f.fromJSON(s):(0,n.qE)(a),o=a&&((0,u.sT)(a)||(0,u.sS)(a))?r:await(0,d._W)(a,u.Zn).then((()=>(0,d.iV)(r,u.Zn)));return(await async function(){return(await Promise.all([i.e(5837),i.e(247)]).then(i.bind(i,30247))).geodesicBuffer}())(o.spatialReference,o,t,l)}(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;c=(0,a.aO)(c),c.spatialReference=t}if(c){await(0,d._W)(c.spatialReference,s),c=function(e,t){const i=e.spatialReference;return E(e,t)&&(0,l.YX)(e)?{spatialReference:i,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]}:e}(c,s);const t=(await(0,o.aX)((0,l.im)(c)))[0];if(null==t)throw m;const i="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,n=i&&E(c,s)?{densificationStep:8*i}:void 0,r=t.toJSON(),a=(0,d.iV)(r,r.spatialReference,s,n);if(!a)throw m;a.spatialReference=s,e.geometry=a}return e}function E(e,t){if(!e)return!1;const i=e.spatialReference;return((0,l.YX)(e)||(0,l.oU)(e)||(0,l.l9)(e))&&!(0,u.fS)(i,t)&&!(0,r.canProjectWithoutEngine)(i,t)}function R(e){return e&&F in e?JSON.parse(JSON.stringify(e,b)):e}const F="_geVersion",b=(e,t)=>e!==F?t:void 0},10278:(e,t,i)=>{i.d(t,{Z:()=>d});var s=i(43697),n=i(35454),r=i(96674),a=i(5600),l=(i(75215),i(67676),i(80442),i(36030)),o=i(52011);const u=new n.X({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),c=new n.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let h=class extends r.wq{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,s._)([(0,l.J)({classBreaksDef:"class-breaks-definition"})],h.prototype,"type",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"breakCount",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"classificationField",void 0),(0,s._)([(0,a.Cb)({type:String,json:{read:u.read,write:u.write}})],h.prototype,"classificationMethod",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"normalizationField",void 0),(0,s._)([(0,a.Cb)({json:{read:c.read,write:c.write}})],h.prototype,"normalizationType",void 0),(0,s._)([(0,a.Cb)({value:null,json:{write:!0}})],h.prototype,"standardDeviationInterval",null),(0,s._)([(0,a.Cb)({value:null,json:{write:!0}})],h.prototype,"definedInterval",null),h=(0,s._)([(0,o.j)("esri.rest.support.ClassBreaksDefinition")],h);const d=h},622:(e,t,i)=>{i.d(t,{k:()=>r});const s=i(92604).Z.getLogger("esri.rest.support.generateRendererUtils");function n(e,t){return Number(e.toFixed(t))}function r(e){const{normalizationTotal:t}=e;return{classBreaks:a(e),normalizationTotal:t}}function a(e){const t=e.definition,{classificationMethod:i,normalizationType:s,definedInterval:r}=t,a=t.breakCount??1,u=[];let c=e.values;if(0===c.length)return[];c=c.sort(((e,t)=>e-t));const h=c[0],d=c[c.length-1];if("equal-interval"===i)if(c.length>=a){const e=(d-h)/a;let t=h;for(let i=1;i<a;i++){const r=n(h+i*e,6);u.push({minValue:t,maxValue:r,label:l(t,r,s)}),t=r}u.push({minValue:t,maxValue:d,label:l(t,d,s)})}else c.forEach((e=>{u.push({minValue:e,maxValue:e,label:l(e,e,s)})}));else if("natural-breaks"===i){const t=function(e){const t=[],i=[];let s=Number.MIN_VALUE,n=1,r=-1;for(let a=0;a<e.length;a++){const l=e[a];l===s?(n++,i[r]=n):null!==l&&(t.push(l),s=l,n=1,i.push(n),r++)}return{uniqueValues:t,valueFrequency:i}}(c),i=e.valueFrequency||t.valueFrequency,r=o(t.uniqueValues,i,a);let f=h;for(let e=1;e<a;e++)if(t.uniqueValues.length>e){const i=n(t.uniqueValues[r[e]],6);u.push({minValue:f,maxValue:i,label:l(f,i,s)}),f=i}u.push({minValue:f,maxValue:d,label:l(f,d,s)})}else if("quantile"===i)if(c.length>=a&&h!==d){let e=h,t=Math.ceil(c.length/a),i=0;for(let n=1;n<a;n++){let r=t+i-1;r>c.length&&(r=c.length-1),r<0&&(r=0),u.push({minValue:e,maxValue:c[r],label:l(e,c[r],s)}),e=c[r],i+=t,t=Math.ceil((c.length-i)/(a-n))}u.push({minValue:e,maxValue:d,label:l(e,d,s)})}else{let e=-1;for(let t=0;t<c.length;t++){const i=c[t];i!==e&&(e=i,u.push({minValue:e,maxValue:i,label:l(e,i,s)}),e=i)}}else if("standard-deviation"===i){const e=function(e){let t=0;for(let i=0;i<e.length;i++)t+=e[i];return t/=e.length,t}(c),t=function(e,t){let i=0;for(let s=0;s<e.length;s++){const n=e[s];i+=(n-t)*(n-t)}return i/=e.length,Math.sqrt(i)}(c,e);if(0===t)u.push({minValue:c[0],maxValue:c[0],label:l(c[0],c[0],s)});else{const i=function(e,t,i,s,n){let r=Math.max(s-e,t-s)/n/i;return r=r>=1?1:r>=.5?.5:.25,r}(h,d,a,e,t)*t;let r=0,o=h;for(let t=a;t>=1;t--){const a=n(e-(t-.5)*i,6);u.push({minValue:o,maxValue:a,label:l(o,a,s)}),o=a,r++}let c=n(e+.5*i,6);u.push({minValue:o,maxValue:c,label:l(o,c,s)}),o=c,r++;for(let t=1;t<=a;t++)c=r===2*a?d:n(e+(t+.5)*i,6),u.push({minValue:o,maxValue:c,label:l(o,c,s)}),o=c,r++}}else if("defined-interval"===i){if(!r)return u;const e=c[0],t=c[c.length-1],i=Math.ceil((t-e)/r);let a=e;for(let t=1;t<i;t++){const i=n(e+t*r,6);u.push({minValue:a,maxValue:i,label:l(a,i,s)}),a=i}u.push({minValue:a,maxValue:t,label:l(a,t,s)})}return u}function l(e,t,i){let s=null;return s=e===t?i&&"percent-of-total"===i?e+"%":e.toString():i&&"percent-of-total"===i?e+"% - "+t+"%":e+" - "+t,s}function o(e,t,i){const s=e.length,n=[];i>s&&(i=s);for(let e=0;e<i;e++)n.push(Math.round(e*s/i-1));n.push(s-1);let r=u(n,e,t,i);return function(e,t,i,s,n,r){let a=0,l=0,o=0,u=0,h=!0;for(let d=0;d<2&&h;d++){0===d&&(h=!1);for(let d=0;d<r-1;d++)for(;i[d+1]+1!==i[d+2];){i[d+1]=i[d+1]+1;const r=c(d,i,s,n);o=r.sbMean,a=r.sbSdcm;const f=c(d+1,i,s,n);if(u=f.sbMean,l=f.sbSdcm,!(a+l<t[d]+t[d+1])){i[d+1]=i[d+1]-1;break}t[d]=a,t[d+1]=l,e[d]=o,e[d+1]=u,h=!0}for(let d=r-1;d>0;d--)for(;i[d]!==i[d-1]+1;){i[d]=i[d]-1;const r=c(d-1,i,s,n);o=r.sbMean,a=r.sbSdcm;const f=c(d,i,s,n);if(u=f.sbMean,l=f.sbSdcm,!(a+l<t[d-1]+t[d])){i[d]=i[d]+1;break}t[d-1]=a,t[d]=l,e[d-1]=o,e[d]=u,h=!0}}return h}(r.mean,r.sdcm,n,e,t,i)&&(r=u(n,e,t,i)),n}function u(e,t,i,s){let n=[],r=[],a=[],l=0;const o=[],u=[];for(let n=0;n<s;n++){const s=c(n,e,t,i);o.push(s.sbMean),u.push(s.sbSdcm),l+=u[n]}let h,d=l,f=!0;for(;f||l<d;){f=!1,n=[];for(let t=0;t<s;t++)n.push(e[t]);for(let i=0;i<s;i++)for(let n=e[i]+1;n<=e[i+1];n++)if(h=t[n],i>0&&n!==e[i+1]&&Math.abs(h-o[i])>Math.abs(h-o[i-1]))e[i]=n;else if(i<s-1&&e[i]!==n-1&&Math.abs(h-o[i])>Math.abs(h-o[i+1])){e[i+1]=n-1;break}d=l,l=0,r=[],a=[];for(let n=0;n<s;n++){r.push(o[n]),a.push(u[n]);const s=c(n,e,t,i);o[n]=s.sbMean,u[n]=s.sbSdcm,l+=u[n]}}if(l>d){for(let t=0;t<s;t++)e[t]=n[t],o[t]=r[t],u[t]=a[t];l=d}return{mean:o,sdcm:u}}function c(e,t,i,n){let r=0,a=0;for(let s=t[e]+1;s<=t[e+1];s++){const e=n[s];r+=i[s]*e,a+=e}a<=0&&s.warn("Exception in Natural Breaks calculation");const l=r/a;let o=0;for(let s=t[e]+1;s<=t[e+1];s++)o+=n[s]*(i[s]-l)**2;return{sbMean:l,sbSdcm:o}}},24452:(e,t,i)=>{i.d(t,{DL:()=>A,F_:()=>I,G2:()=>w,H0:()=>p,Lq:()=>_,Qm:()=>F,S5:()=>m,XL:()=>y,eT:()=>E,fk:()=>b,i5:()=>g,oF:()=>N,wk:()=>f});var s=i(10278),n=i(622);const r="<Null>",a="equal-interval",l=1,o=5,u=10,c=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,h=new Set(["esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]),d=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function f(e){return null==e||"string"==typeof e&&!e?r:e}function m(e){const t=null!=e.normalizationField||null!=e.normalizationType,i=null!=e.minValue||null!=e.maxValue,s=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!i&&!s}function p(e){const t=e.returnDistinct?[...new Set(e.values)]:e.values,i=t.filter((e=>null!=e)).sort(),s=i.length,n={count:s,min:i[0],max:i[s-1]};return e.supportsNullCount&&(n.nullcount=t.length-s),e.percentileParams&&(n.median=y(t,e.percentileParams)),n}function g(e){const{values:t,useSampleStdDev:i,supportsNullCount:s}=e;let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,a=null,l=null,o=null,u=null,c=0;const h=null==e.minValue?-1/0:e.minValue,d=null==e.maxValue?1/0:e.maxValue;for(const e of t)Number.isFinite(e)?e>=h&&e<=d&&(a=null===a?e:a+e,n=Math.min(n,e),r=Math.max(r,e),c++):"string"==typeof e&&c++;if(c&&null!=a){l=a/c;let e=0;for(const i of t)Number.isFinite(i)&&i>=h&&i<=d&&(e+=(i-l)**2);u=i?c>1?e/(c-1):0:c>0?e/c:0,o=Math.sqrt(u)}else n=null,r=null;const f={avg:l,count:c,max:r,min:n,stddev:o,sum:a,variance:u};return s&&(f.nullcount=t.length-c),e.percentileParams&&(f.median=y(t,e.percentileParams)),f}function y(e,t){const{fieldType:i,value:s,orderBy:n,isDiscrete:r}=t,a=_(i,"desc"===n);if(0===(e=[...e].filter((e=>null!=e)).sort(((e,t)=>a(e,t)))).length)return null;if(s<=0)return e[0];if(s>=1)return e[e.length-1];const l=(e.length-1)*s,o=Math.floor(l),u=o+1,c=l%1,h=e[o],d=e[u];return u>=e.length||r||"string"==typeof h||"string"==typeof d?h:h*(1-c)+d*c}function _(e,t){const i=t?1:-1,s=function(e){return e?(e,t)=>{const i=x(e,t,!0);return null!=i?i:t-e}:(e,t)=>{const i=x(e,t,!1);return null!=i?i:e-t}}(t),n=T(t);if(!e||!["esriFieldTypeDate","esriFieldTypeString","esriFieldTypeGUID","esriFieldTypeGlobalID",...h].includes(e))return(e,t)=>"number"==typeof e&&"number"==typeof t?s(e,t):"string"==typeof e&&"string"==typeof t?n(e,t):i;if("esriFieldTypeDate"===e)return(e,t)=>{const n=new Date(e).getTime(),r=new Date(t).getTime();return isNaN(n)||isNaN(r)?i:s(n,r)};if(h.has(e))return(e,t)=>s(e,t);if("esriFieldTypeString"===e)return(e,t)=>n(e,t);if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e){const e=T(t);return(t,i)=>e(S(t),S(i))}return t?(e,t)=>1:(e,t)=>-1}function x(e,t,i){if(i){if(null==e)return null==t?0:1;if(null==t)return-1}else{if(null==e)return null==t?0:-1;if(null==t)return 1}return null}function T(e){return e?(e,t)=>{const i=x(e,t,!0);return null!=i?i:(e=e.toUpperCase())>(t=t.toUpperCase())?-1:e<t?1:0}:(e,t)=>{const i=x(e,t,!1);return null!=i?i:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}}function S(e){return e.substr(24,12)+e.substr(19,4)+e.substr(16,2)+e.substr(14,2)+e.substr(11,2)+e.substr(9,2)+e.substr(6,2)+e.substr(4,2)+e.substr(2,2)+e.substr(0,2)}function I(e,t){let i;for(i in e)d.includes(i)&&(Number.isFinite(e[i])||(e[i]=null));return t?(["avg","stddev","variance"].forEach((t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))})),e):e}function E(e){const t={};for(let i of e)(null==i||"string"==typeof i&&""===i.trim())&&(i=null),null==t[i]?t[i]={count:1,data:i}:t[i].count++;return{count:t}}function R(e){return"coded-value"!==e?.type?[]:e.codedValues.map((e=>e.code))}function F(e,t,i,s){const n=e.count,r=[];if(i&&t){const e=[],i=R(t[0]);for(const n of i)if(t[1]){const i=R(t[1]);for(const r of i)if(t[2]){const i=R(t[2]);for(const t of i)e.push(`${f(n)}${s}${f(r)}${s}${f(t)}`)}else e.push(`${f(n)}${s}${f(r)}`)}else e.push(n);for(const t of e)n.hasOwnProperty(t)||(n[t]={data:t,count:0})}for(const e in n){const t=n[e];r.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:r}}function b(e,t,i,s){let n=null;switch(t){case"log":0!==e&&(n=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(s)&&0!==s&&(n=e/s*100);break;case"field":Number.isFinite(i)&&0!==i&&(n=e/i);break;case"natural-log":e>0&&(n=Math.log(e));break;case"square-root":e>0&&(n=e**.5)}return n}function w(e,t){const i=v({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,breakCount:t.numClasses||o});return e=function(e,t,i){const s=t??-1/0,n=i??1/0;return e.filter((e=>Number.isFinite(e)&&e>=s&&e<=n))}(e,t.minValue,t.maxValue),(0,n.k)({definition:i,values:e,normalizationTotal:t.normalizationTotal})}function v(e){const{breakCount:t,field:i,normalizationField:n,normalizationType:r}=e,o=e.classificationMethod||a,u="standard-deviation"===o?e.standardDeviationInterval||l:void 0;return new s.Z({breakCount:t,classificationField:i,classificationMethod:o,normalizationField:"field"===r?n:void 0,normalizationType:r,standardDeviationInterval:u})}function A(e,t){let i=e.classBreaks;const s=i.length,n=i[0]?.minValue,r=i[s-1]?.maxValue,a="standard-deviation"===t,l=c;return i=i.map((e=>{const t=e.label,i={minValue:e.minValue,maxValue:e.maxValue,label:t};if(a&&t){const e=t.match(l),s=e?.map((e=>+e.trim()))??[];2===s.length?(i.minStdDev=s[0],i.maxStdDev=s[1],s[0]<0&&s[1]>0&&(i.hasAvg=!0)):1===s.length&&(t.includes("<")?(i.minStdDev=null,i.maxStdDev=s[0]):t.includes(">")&&(i.minStdDev=s[0],i.maxStdDev=null))}return i})),{minValue:n,maxValue:r,classBreakInfos:i,normalizationTotal:e.normalizationTotal}}function N(e,t){const i=C(e,t);if(null==i.min&&null==i.max)return{bins:[],minValue:i.min,maxValue:i.max,normalizationTotal:t.normalizationTotal};const s=i.intervals,n=i.min??0,r=i.max??0,a=s.map(((e,t)=>({minValue:s[t][0],maxValue:s[t][1],count:0})));for(const t of e)if(null!=t&&t>=n&&t<=r){const e=V(s,t);e>-1&&a[e].count++}return{bins:a,minValue:n,maxValue:r,normalizationTotal:t.normalizationTotal}}function C(e,t){const{field:i,classificationMethod:s,standardDeviationInterval:n,normalizationType:r,normalizationField:a,normalizationTotal:l,minValue:o,maxValue:c}=t,h=t.numBins||u;let d=null,f=null,p=null;if(s&&"equal-interval"!==s||r){const{classBreaks:t}=w(e,{field:i,normalizationType:r,normalizationField:a,normalizationTotal:l,classificationMethod:s,standardDeviationInterval:n,minValue:o,maxValue:c,numClasses:h});d=t[0].minValue,f=t[t.length-1].maxValue,p=t.map((e=>[e.minValue,e.maxValue]))}else{if(null!=o&&null!=c)d=o,f=c;else{const t=g({values:e,minValue:o,maxValue:c,useSampleStdDev:!r,supportsNullCount:m({normalizationType:r,normalizationField:a,minValue:o,maxValue:c})});d=t.min??null,f=t.max??null}p=function(e,t,i){const s=(t-e)/i,n=[];let r,a=e;for(let e=1;e<=i;e++)r=a+s,r=Number(r.toFixed(16)),n.push([a,e===i?t:r]),a=r;return n}(d??0,f??0,h)}return{min:d,max:f,intervals:p}}function V(e,t){let i=-1;for(let s=e.length-1;s>=0;s--)if(t>=e[s][0]){i=s;break}return i}},95720:(e,t,i)=>{var s;i.d(t,{n:()=>s}),function(e){e[e.ANIMATING=0]="ANIMATING",e[e.INTERACTING=1]="INTERACTING",e[e.IDLE=2]="IDLE"}(s||(s={}))}}]);
|