@arcgis/core 5.2.0-next.82 → 5.2.0-next.83

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.
Files changed (126) hide show
  1. package/assets/components/assets/icon/deleteAndReplaceFeatures16.json +1 -0
  2. package/assets/components/assets/icon/deleteAndReplaceFeatures24.json +1 -0
  3. package/assets/components/assets/icon/deleteAndReplaceFeatures32.json +1 -0
  4. package/assets/components/assets/icon/moveAndRotate16.json +1 -0
  5. package/assets/components/assets/icon/moveAndRotate24.json +1 -0
  6. package/assets/components/assets/icon/moveAndRotate32.json +1 -0
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/028bee58f7bc19e5e39e.js +1 -0
  9. package/assets/esri/core/workers/chunks/{a2fd945659ce052f99d2.js → 03895d49fbd34ccb3ead.js} +1 -1
  10. package/assets/esri/core/workers/chunks/0775d1e3034d5e7ef7bc.js +1 -0
  11. package/assets/esri/core/workers/chunks/{95ff342e5c29bf91a765.js → 13a43c87d7952facbed4.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{e59101f1d060d0a30a65.js → 14def8f47ae7265dd71b.js} +1 -1
  13. package/assets/esri/core/workers/chunks/1b00789511c9b27da4a7.js +1 -0
  14. package/assets/esri/core/workers/chunks/1b277311a4beb4243bf8.js +2 -0
  15. package/assets/esri/core/workers/chunks/1d03db4df18524cf391c.js +1 -0
  16. package/assets/esri/core/workers/chunks/24bfe759c8848143361e.js +1 -0
  17. package/assets/esri/core/workers/chunks/30dade7bf6032be32599.js +2 -0
  18. package/assets/esri/core/workers/chunks/{865f9adc591056458b6b.js → 33dc93d82407052fafe1.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{0d982abff7c9496f7890.js → 3a6990058f1003bd2812.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{0fd7590e545864f5fff4.js → 3ca0d503ce733088a6c2.js} +1 -1
  21. package/assets/esri/core/workers/chunks/46b3d6814ba4c0a71111.js +1 -0
  22. package/assets/esri/core/workers/chunks/49784f8e8e5fac0cc5a9.js +1 -0
  23. package/assets/esri/core/workers/chunks/{563a4d6788ad66b676e4.js → 5156d94f01b4fbbf8cde.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{cdd4aeaa3f30bc4ea93a.js → 5568448e7f51508ffdf5.js} +1 -1
  25. package/assets/esri/core/workers/chunks/58e4aecabca047f1d229.js +1 -0
  26. package/assets/esri/core/workers/chunks/{218ddad849745d652a28.js → 5a3c1fe24814a345ab39.js} +1 -1
  27. package/assets/esri/core/workers/chunks/5b292831127bf981c1c5.js +1 -0
  28. package/assets/esri/core/workers/chunks/{bd1c870694edd25bf8aa.js → 5f13ade03500b39c1720.js} +1 -1
  29. package/assets/esri/core/workers/chunks/6154f4d39f9e53fe56cc.js +1 -0
  30. package/assets/esri/core/workers/chunks/62b116307483d5f0e37d.js +2 -0
  31. package/assets/esri/core/workers/chunks/6433a623af765b7e53ab.js +1 -0
  32. package/assets/esri/core/workers/chunks/65eff0ae773505495f21.js +1 -0
  33. package/assets/esri/core/workers/chunks/6d11b922898a8039dbe7.js +1 -0
  34. package/assets/esri/core/workers/chunks/7188559a685e0ba30c4f.js +1 -0
  35. package/assets/esri/core/workers/chunks/{faf14281a74a06fa1f30.js → 724b2631c9ced80a1661.js} +1 -1
  36. package/assets/esri/core/workers/chunks/7493ce5d02224c07a6d5.js +1 -0
  37. package/assets/esri/core/workers/chunks/7ad70c8a56f2481adc82.js +1 -0
  38. package/assets/esri/core/workers/chunks/7ca188f824956a5cac35.js +2 -0
  39. package/assets/esri/core/workers/chunks/852649460d664b0a1a1d.js +1 -0
  40. package/assets/esri/core/workers/chunks/{ab10388dcc17a665ac3b.js → 8e1b913067b8e88ff365.js} +2 -2
  41. package/assets/esri/core/workers/chunks/{e3eab61815ef1c521a6c.js → 9568932bafe689c38f63.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{c8d83f71326222b98608.js → 996ac351e2322298a17d.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{34f6093d2c00e3584037.js → 9be05d32528b395a7d34.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{552d6aecc7d88d16227b.js → 9d41c02601d0bb75b525.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{64a1ffc221e5b63b43fb.js → a4bb0951e1389e7b803c.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{b09e9ac5fd928e69b053.js → aabffe53508730e504ec.js} +1 -1
  47. package/assets/esri/core/workers/chunks/b61c30cdf698b4d1573a.js +1 -0
  48. package/assets/esri/core/workers/chunks/bbb97c38d8670329d07e.js +2 -0
  49. package/assets/esri/core/workers/chunks/bd8b483e70acf0fc601e.js +1 -0
  50. package/assets/esri/core/workers/chunks/bef32acf368b4d5aba37.js +1 -0
  51. package/assets/esri/core/workers/chunks/c90dfdf2302b7db1f6f7.js +1 -0
  52. package/assets/esri/core/workers/chunks/{8a36b999cbd65dd2f16c.js → d8c3bdc3c6be8ba7c5e6.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{40b842d055b87e442156.js → f20b88f5a6d3b988a055.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{f248131df4eaa5291623.js → f6ae0c483579e227a2f2.js} +1 -1
  55. package/config.js +1 -1
  56. package/geometry/support/spatialReferenceUtils.js +1 -1
  57. package/kernel.js +1 -1
  58. package/package.json +2 -2
  59. package/renderers/UniqueValueRenderer.js +1 -1
  60. package/support/revision.js +1 -1
  61. package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
  62. package/views/2d/engine/vectorTiles/style/GeoJSONLabelUtils.js +2 -0
  63. package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
  64. package/views/2d/engine/vectorTiles/style/StyleRepository.js +1 -1
  65. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
  66. package/views/3d/GroundView3D.js +1 -1
  67. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +1 -1
  68. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  69. package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +1 -1
  70. package/views/3d/analysis/LineOfSight/LineOfSightPlacementLeafPlugin.js +1 -1
  71. package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +1 -1
  72. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
  73. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  74. package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
  75. package/views/3d/input/SceneInputManager.js +1 -1
  76. package/views/3d/input/handlers/PinchAndPanNavigation.js +1 -1
  77. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  78. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  79. package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
  80. package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
  81. package/views/3d/state/controllers/ZoomControllerGlobal.js +1 -1
  82. package/views/3d/state/utils/navigationUtils.js +1 -1
  83. package/views/3d/support/GroundAndIMSurface.js +2 -0
  84. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  85. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  86. package/views/3d/support/pointsOfInterest/PointOfInterest.js +1 -1
  87. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  88. package/views/3d/terrain/OverlayManager.js +1 -1
  89. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  90. package/views/3d/webgl-engine/materials/renderers/PerBufferData.js +1 -1
  91. package/views/SceneView.js +1 -1
  92. package/views/draw/support/PluginContext.js +1 -1
  93. package/views/draw/support/types.d.ts +6 -0
  94. package/views/interactive/interactiveToolUtils.js +1 -1
  95. package/widgets/Widget.js +1 -1
  96. package/widgets/support/jsxWidgetSupport.js +1 -1
  97. package/assets/esri/core/workers/chunks/0dcfd82a2669df6eb5a0.js +0 -1
  98. package/assets/esri/core/workers/chunks/1352b5c6767e5421bc02.js +0 -1
  99. package/assets/esri/core/workers/chunks/14469f664fd5ede469fc.js +0 -1
  100. package/assets/esri/core/workers/chunks/177c3b23c1cbd4737049.js +0 -1
  101. package/assets/esri/core/workers/chunks/21f763694a41968ac21a.js +0 -1
  102. package/assets/esri/core/workers/chunks/230925079cee040a8d77.js +0 -1
  103. package/assets/esri/core/workers/chunks/25696c194457e42b3bdc.js +0 -1
  104. package/assets/esri/core/workers/chunks/469e72ab6cd44272f474.js +0 -1
  105. package/assets/esri/core/workers/chunks/4f36596280142be1c666.js +0 -1
  106. package/assets/esri/core/workers/chunks/53d80202b5f43542d45b.js +0 -1
  107. package/assets/esri/core/workers/chunks/6c389e9646a48c26da20.js +0 -2
  108. package/assets/esri/core/workers/chunks/6f08c8a1e8e3ffd0a96a.js +0 -1
  109. package/assets/esri/core/workers/chunks/71ee7c51d2c60a180f1e.js +0 -1
  110. package/assets/esri/core/workers/chunks/927582ec15bff2acbb49.js +0 -1
  111. package/assets/esri/core/workers/chunks/98739b6e7904045edbab.js +0 -1
  112. package/assets/esri/core/workers/chunks/a69c10bfd632a5546b34.js +0 -1
  113. package/assets/esri/core/workers/chunks/ac9a3dfd02160e43fc8a.js +0 -2
  114. package/assets/esri/core/workers/chunks/c456abf5ee2a1ad5cc5b.js +0 -1
  115. package/assets/esri/core/workers/chunks/c61e94806b37ca3dd549.js +0 -2
  116. package/assets/esri/core/workers/chunks/c899457f19b749516275.js +0 -1
  117. package/assets/esri/core/workers/chunks/d0c8630177d3a4e316f1.js +0 -2
  118. package/assets/esri/core/workers/chunks/da0ef984509057ec8507.js +0 -1
  119. package/assets/esri/core/workers/chunks/ead4143d811aab610e00.js +0 -2
  120. package/assets/esri/core/workers/chunks/ffe2cbfea38b92a231d6.js +0 -1
  121. /package/assets/esri/core/workers/chunks/{d0c8630177d3a4e316f1.js.LICENSE.txt → 1b277311a4beb4243bf8.js.LICENSE.txt} +0 -0
  122. /package/assets/esri/core/workers/chunks/{ead4143d811aab610e00.js.LICENSE.txt → 30dade7bf6032be32599.js.LICENSE.txt} +0 -0
  123. /package/assets/esri/core/workers/chunks/{ac9a3dfd02160e43fc8a.js.LICENSE.txt → 62b116307483d5f0e37d.js.LICENSE.txt} +0 -0
  124. /package/assets/esri/core/workers/chunks/{6c389e9646a48c26da20.js.LICENSE.txt → 7ca188f824956a5cac35.js.LICENSE.txt} +0 -0
  125. /package/assets/esri/core/workers/chunks/{ab10388dcc17a665ac3b.js.LICENSE.txt → 8e1b913067b8e88ff365.js.LICENSE.txt} +0 -0
  126. /package/assets/esri/core/workers/chunks/{c61e94806b37ca3dd549.js.LICENSE.txt → bbb97c38d8670329d07e.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[124,9036],{56512(e,t,r){function i(e){let t,r,i=[],s=!1;return function(...n){return s&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}(n,i)||(r=e.apply(this,n),t=this,i=n,s=!0),r}}r.d(t,{B:()=>i})},69397(e,t,r){r.d(t,{Qf:()=>o,Qh:()=>n,lM:()=>s});var i=r(34275);function s(e){if(!e)return 0;let t=u;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r],!1));return t}function n(e){if(!e)return 0;if("number"==typeof e[0])return o(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=c;for(let i=0;i<t;i++)r+=a(e[i]);return r}(e);let t=u;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?n(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...e){return e.reduce((e,t)=>e+(t?(0,i.iu)(t)?t.byteLength+p:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return c+e.length*t}const u=32,c=16,p=145},5359(e,t,r){r.d(t,{Z:()=>s});const i=Symbol("isImageryTileGraphicOrigin");function s(e){return!!e&&i in e}r.d(t,["H",0,i])},90124(e,t,r){r.r(t),r.d(t,{default:()=>X});var i,s=r(5482),n=r(37838),a=r(69540),o=r(49186),l=r(53966),u=r(97768),c=r(25728),p=r(17676),d=r(36708),h=r(91429),f=r(56507),m=r(60950),y=r(89808),g=r(99959),v=r(5359);class w extends g.A{get[(i=v.H,m.ym)](){return this.layer}get[y.Q](){return this.layer}constructor(e){super(),this[i]=!0,this.type="imagery-tile",this.layer=e}get id(){return this.layer.id}}var b=r(4146),R=r(18768),S=r(63074),C=r(69208),A=r(34287),I=r(8303),O=r(72545),M=r(56551),_=r(54310),x=r(25036),F=r(82935),P=r(82806),N=r(7548),T=r(23636),J=r(1003),Z=r(99235),j=r(10873),D=r(20437),V=r(74797),k=r(22796),L=r(69409);const $={instance:null,refCount:0,connectionPromise:null};async function E(){if($.refCount++,$.instance)return $.instance;if(!$.connectionPromise){const e=new L.A;$.connectionPromise=e.initialize().then(()=>{$.instance=e})}return await $.connectionPromise,$.instance}function W(){$.refCount--,$.refCount>0||($.instance?.destroy(),$.instance=null,$.connectionPromise=null,$.refCount=0)}var H=r(87045),z=r(24212),q=r(30291),B=r(88625),U=r(59923);let G=class extends((0,S.dM)((0,x.j)((0,A.q)((0,I.A)((0,M.H)((0,C.d)((0,P.b)((0,O.G)((0,F.e)((0,R.b)((0,_.J)((0,c.M)((0,a.OU)(b.A)))))))))))))){constructor(...e){super(...e),this._primaryRasters=[],this.charts=null,this.graphicOrigin=new w(this),this.legendEnabled=!0,this.isReference=null,this.listMode="show",this.sourceJSON=null,this.version=null,this.type="imagery-tile",this.operationalLayerType="ArcGISTiledImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.fields=null,this.source=void 0,this._debouncedSaveOperations=(0,p.sg)(async(e,t,i)=>{const{save:s,saveAs:n}=await r.e(9838).then(r.bind(r,59838));switch(e){case 0:return s(this,t);case 1:return n(this,i,t)}})}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:["Image Service"]},e).catch(p.QP).then(()=>this._openRaster(t))),Promise.resolve(this)}destroy(){super.destroy(),this._releaseWorkerHandle=(0,u.xt)(this._releaseWorkerHandle)}set elevationInfo(e){"relative-to-scene"!==e?.mode&&this._set("elevationInfo",e),this._validateElevationInfo(e)}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){const e=[(0,V.rZ)("Pixel Value"),(0,V.dy)("Raw Pixel Value")],t=this.raster?.rasterInfo??this.serviceRasterInfo,r=t?.attributeTable;if(r){const t=(0,V.jC)(r);e.push(...t)}const i=t?.dataType,s=t?.multidimensionalInfo;if(("vector-magdir"===i||"vector-uv"===i)&&null!=s){const t=s.variables[0].unit?.trim(),r=(0,V.DV)(t),i=(0,V.y6)();e.push(r,i)}if(s){const t=(0,V.AL)(s);e.push(...t)}return e}get renderer(){return super.renderer}set renderer(e){super.renderer=e}createPopupTemplate(e){const{rasterFields:t}=this,r=e?.visibleFieldNames??new Set(t.map(({name:e})=>e).filter(e=>e!==V.F_.rawServicePixelValue)),i=(0,q.tn)({fields:t,title:this.title},{...e,visibleFieldNames:r}),{rasterInfo:s}=this.raster;return i?.fieldInfos&&s&&(0,V.h4)(i.fieldInfos,s),i}async generateRasterInfo(e,t){const r=(0,f.PZ)(k.A,e);if(await this.load(),!r||"none"===r.functionName?.toLowerCase())return this.serviceRasterInfo;try{const{rasterInfo:e}=await this._openFunctionRaster(r,t);return e}catch(e){if(e instanceof o.A)throw e;throw new o.A("imagery-tile-layer","the given raster function is not supported")}}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}supportsExportMapTiles(){const e=this._primaryRasters[0]??this.raster,t="RasterTileServer"===e?.datasetFormat,r=!!this.sourceJSON?.exportTilesAllowed,i=this.sourceJSON?.datasetFormat?.toLowerCase(),s=!/\/tiledimageservices[^.]*\.arcgis\.com/i.test(this.url)&&"Raster"===e?.tileType&&("cache/jpegplus"===i||"cache/jpegpng"===i);return t&&r&&("Map"===e?.tileType||s)}supportsWrite(){const e=this._primaryRasters[0]??this.raster;return!!(this.loaded?"RasterTileServer"===e.datasetFormat&&("Raster"===e.tileType||"Map"===e.tileType):this.url&&/\/ImageServer(\/|\/?$)/i.test(this.url))}write(e,t){return this.supportsWrite()?super.write(e,t):((0,U.U4)(t,this),null)}async hasDataChanged(){try{const e=this._primaryRasters[0]??this.raster,{dataChanged:t,updates:r}=await e.refresh();return t&&(this.serviceRasterInfo!==e.rasterInfo&&this._set("serviceRasterInfo",e.rasterInfo),e.sourceJSON&&this.sourceJSON!==e.sourceJSON&&(this.sourceJSON=e.sourceJSON),r&&this.read(r,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0})),t}catch{return!1}}async _openRaster(e){let t=!1;if(this.raster)await this._openFromRaster(this.raster,e),t=(0,N.qg)(this.raster),!t&&this.rasterFunction&&(this._primaryRasters=[this.raster],await this._initializeWithFunctionRaster(this.rasterFunction));else{const{url:t,rasterFunction:r,source:i}=this;if(!t&&!i)throw new o.A("imagery-tile-layer:open","missing url or source parameter");i?await this._openFromSource(i,e):r?await this._openFromUrlWithRasterFunction(t,r,e):await this._openFromUrl(t,e)}const r=this.raster.rasterInfo;if(!r)throw new o.A("imagery-tile-layer:load","cannot load resources on "+this.url);if(this._set("serviceRasterInfo",t?r:this._primaryRasters[0].rasterInfo),this._set("spatialReference",r.spatialReference),this.sourceJSON=this.sourceJSON||this.raster.sourceJSON,null!=this.sourceJSON){const e="Map"===this.raster.tileType&&null!=this.sourceJSON.minLOD&&null!=this.sourceJSON.maxLOD?this.sourceJSON:{...this.sourceJSON,minScale:0,maxScale:0};this.read(e,{origin:"service"})}else this.read({tileInfo:this.serviceRasterInfo?.storageInfo.tileInfo.toJSON()},{origin:"service"});this.title||(this.title=this.raster.datasetName),"Map"===this.raster.tileType&&(this.popupEnabled=!1),this._configDefaultSettings(),this.addHandles((0,d.wB)(()=>this.customParameters,e=>{this.raster&&(this.raster.ioConfig.customFetchParameters=e)}))}async _openFromRaster(e,t){e.rasterInfo||await e.open({signal:t}),this._primaryRasters=(0,N.pb)(e),this.url||(this.url=this._primaryRasters[0].url)}async _openFromUrlWithRasterFunction(e,t,r){const i=[e];let s;t&&(0,Z.UD)(t.toJSON(),i),i.some(e=>K(e))&&(s=await E(),this._releaseWorkerHandle={remove:()=>W()});const n=await Promise.all(i.map(e=>J.default.open({url:e,sourceJSON:this.sourceJSON,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},rasterJobHandler:s,signal:r}))),a=n.findIndex(e=>null==e);if(a>-1)throw new o.A("imagery-tile-layer:open",`cannot open raster: ${i[a]}`);return this._primaryRasters=n,this._initializeWithFunctionRaster(t)}async _openFromUrl(e,t){let r;K(e)&&(r=await E(),this._releaseWorkerHandle={remove:()=>W()});const i=await J.default.open({url:e,sourceJSON:this.sourceJSON,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},rasterJobHandler:r,signal:t});if(null==i)throw new o.A("imagery-tile-layer:open",`cannot open raster: ${e}`);this._primaryRasters=[i],this.raster=i}async _openFromSource(e,t){const r="the tiled imagery data source is not supported",i="coverage"===e.type?.toLowerCase()?"CovJSON":e.extent&&e.pixelBlock?"MEMORY":null;if(!i)throw new o.A("imagery-tile-layer:open",r);"MEMORY"===i&&(e={...e,pixelBlock:void 0,pixelBlocks:[e.pixelBlock]});const s=await J.default.open({url:"",source:e,datasetFormat:i,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},signal:t});if(null==s)throw new o.A("imagery-tile-layer:open",r);this._primaryRasters=[s],this.rasterFunction?await this._initializeWithFunctionRaster(this.rasterFunction):this.raster=s}async _openFunctionRaster(e,t){const r={raster:this._primaryRasters[0]};this._primaryRasters.length>1&&this._primaryRasters.forEach(e=>r[e.url]=e);const i=(0,Z.vt)(e.functionDefinition?.toJSON()??e.toJSON(),r),s=new T.A({rasterFunction:i});return await s.open(t),s}async _initializeWithFunctionRaster(e,t){try{this.raster=await this._openFunctionRaster(e,t)}catch(e){e instanceof o.A&&l.A.getLogger(this).error("imagery-tile-layer:open",e.message),l.A.getLogger(this).warn("imagery-tile-layer:open","the raster function cannot be applied and is removed"),this._set("rasterFunction",null),this.raster=this._primaryRasters[0]}}_validateElevationInfo(e){(0,z.XF)(l.A.getLogger(this),(0,z.$7)("ImageryTile layers","relative-to-scene",e)),(0,z.XF)(l.A.getLogger(this),(0,z.tW)("ImageryTile layers",e))}};(0,s.Cg)([(0,h.MZ)({clonable:!1})],G.prototype,"_primaryRasters",void 0),(0,s.Cg)([(0,h.MZ)({clonable:!1})],G.prototype,"_releaseWorkerHandle",void 0),(0,s.Cg)([(0,h.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],G.prototype,"charts",void 0),(0,s.Cg)([(0,h.MZ)({type:B.A,value:null,json:{name:"layerDefinition.elevationInfo",write:!0,origins:{"portal-item":{read:!1,write:!1},"web-map":{read:!1,write:!1}}}})],G.prototype,"elevationInfo",null),(0,s.Cg)([(0,h.MZ)({type:H.A})],G.prototype,"tileInfo",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,clonable:!1})],G.prototype,"graphicOrigin",void 0),(0,s.Cg)([(0,h.MZ)(j.fV)],G.prototype,"legendEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],G.prototype,"isReference",void 0),(0,s.Cg)([(0,h.MZ)({type:["show","hide"]})],G.prototype,"listMode",void 0),(0,s.Cg)([(0,h.MZ)({json:{read:!0,write:!0}})],G.prototype,"blendMode",void 0),(0,s.Cg)([(0,h.MZ)({type:k.A,json:{name:"renderingRule",write:!0}})],G.prototype,"rasterFunction",void 0),(0,s.Cg)([(0,h.MZ)()],G.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,json:{origins:{service:{read:{source:"currentVersion"}}}}})],G.prototype,"version",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],G.prototype,"type",void 0),(0,s.Cg)([(0,h.MZ)({type:["ArcGISTiledImageServiceLayer"]})],G.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(e,t)=>!t.disablePopup},write:{target:"disablePopup",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}},writer(e,t,r){t[r]=!e}}}})],G.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:n.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}}}}})],G.prototype,"popupTemplate",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],G.prototype,"defaultPopupTemplate",null),(0,s.Cg)([(0,h.MZ)(j.PY)],G.prototype,"screenSizePerspectiveEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,type:[D.A]})],G.prototype,"fields",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,type:[D.A]})],G.prototype,"rasterFields",null),(0,s.Cg)([(0,h.MZ)({constructOnly:!0})],G.prototype,"source",void 0),G=(0,s.Cg)([(0,h.$K)("esri.layers.ImageryTileLayer")],G);const X=G;function K(e){return/\.(jpe?g|png)$/i.test(e)}},18768(e,t,r){var i=r(5482),s=r(53966),n=r(91429),a=r(60694);r.d(t,["b",0,e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,s.A.getLogger(this)))}};return(0,i.Cg)([(0,n.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],r),r}])},56551(e,t,r){r.d(t,{H:()=>p});var i=r(5482),s=r(91429),n=r(69540),a=r(25482),o=r(56507),l=r(94359),u=r(93223);let c=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.name=void 0,this.method="none",this.value=void 0,this.bandIds=void 0,this.renderer=void 0}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({type:["raster-function-template","variable","none"],json:{write:{isRequired:!0}}}),(0,u.e)({rasterFunctionTemplate:"raster-function-template",variable:"variable",none:"none"})],c.prototype,"method",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"value",void 0),(0,i.Cg)([(0,s.MZ)({type:[o.jz],json:{write:{isRequired:!0}}})],c.prototype,"bandIds",void 0),(0,i.Cg)([(0,s.MZ)({types:l.uy,json:{write:!0,origins:{"web-scene":{types:l.Gj,write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],c.prototype,"renderer",void 0),c=(0,i.Cg)([(0,s.$K)("esri.renderers.support.RasterPresetRenderer")],c);const p=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.activePresetRendererName=null,this.presetRenderers=null}};return(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"layerDefinition.activePresetRendererName",write:{allowNull:!0}}})],r.prototype,"activePresetRendererName",void 0),(0,i.Cg)([(0,s.MZ)({type:[c],json:{name:"layerDefinition.presetRenderers",write:!0}})],r.prototype,"presetRenderers",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.RasterPresetRendererMixin")],r),r}},82371(e,t,r){r.d(t,{E9:()=>f,Tw:()=>d,X6:()=>h});var i=r(11254),s=r(5443),n=r(86738),a=r(16930),o=r(87186),l=r(20223),u=r(2272),c=r(22671);async function p(e,t,r){const p=(0,u.Dl)(e),{rasterFunction:d,sourceJSON:h}=t||{},f=d?JSON.stringify(d.rasterFunctionDefinition||d):null,m=(0,u.lF)({...p.query,renderingRule:f,f:"json"}),y=(0,u.jV)(m,r);e=p.path;const g=h||await(0,i.A)(e,y).then(e=>e.data),v=g.hasRasterAttributeTable?(0,i.A)(`${e}/rasterAttributeTable`,y):null,w=g.hasColormap?(0,i.A)(`${e}/colormap`,y):null,b=g.hasHistograms?(0,i.A)(`${e}/histograms`,y):null,R=g.currentVersion>=10.3?(0,i.A)(`${e}/keyProperties`,y):null,S=g.hasMultidimensions?(0,i.A)(`${e}/multidimensionalInfo`,y):null,C=g.currentVersion>=10.81?(0,i.A)(`${e}/statistics`,y):null,A=await Promise.allSettled([v,w,b,R,S,C]),I=s.A.fromJSON(g.extent),O=Math.ceil(I.width/g.pixelSizeX-.1),M=Math.ceil(I.height/g.pixelSizeY-.1),_=a.A.fromJSON(g.spatialReference||g.extent.spatialReference),x="fulfilled"===A[0].status?A[0].value?.data:null,F=x?.features?.length?c.A.fromJSON(x):null,P="fulfilled"===A[1].status?A[1].value?.data.colormap:null,N=P?.length?P:null,T="fulfilled"===A[2].status?A[2].value?.data.histograms:null,J=T?.[0]?.counts?.length?T:null,Z="fulfilled"===A[3].status?A[3].value?.data??{}:{},j="fulfilled"===A[4].status?A[4].value?.data.multidimensionalInfo:null,D=j?.variables?.length?j:null;D&&D.variables.forEach(e=>{e.statistics?.length&&e.statistics.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),e.dimensions?.forEach(e=>{"StdTime"!==e.name||e.recurring||e.unit||(e.unit="ISO8601")})});let V=null;const k="fulfilled"===A[5].status?A[5].value?.data.statistics:null;if(k&&k.length===g.bandCount)V=k.map(e=>({avg:e.mean,count:e.count,max:e.max,median:e.median,min:e.min,mode:e.mode,stddev:e.standardDeviation,sum:e.sum}));else if(g.minValues&&g.minValues.length===g.bandCount){V=[];for(let e=0;e<g.minValues.length;e++)V.push({min:g.minValues[e],max:g.maxValues[e],avg:g.meanValues[e],stddev:g.stdvValues[e]})}const{defaultVariable:L,serviceDataType:$}=g;L&&L!==Z.DefaultVariable&&(Z.DefaultVariable=L),$?.includes("esriImageServiceDataTypeVector")&&!$.includes(Z.DataType)&&(Z.DataType=$.replace("esriImageServiceDataType",""));let E=g.noDataValue;g.noDataValues?.length&&g.noDataValues.some(e=>e!==E)&&(E=g.noDataValues);const W=g.transposeInfo?new l.A({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new n.A({x:g.extent.xmin,y:g.extent.ymax,spatialReference:_}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(O,M))/Math.LN2-8)),transposeInfo:g.transposeInfo}):void 0;return new o.A({width:O,height:M,bandCount:g.bandCount,extent:s.A.fromJSON(g.extent),spatialReference:_,pixelSize:new n.A({x:g.pixelSizeX,y:g.pixelSizeY,spatialReference:_}),pixelType:g.pixelType.toLowerCase(),statistics:V,attributeTable:F,colormap:N,histograms:J,keyProperties:Z,noDataValue:E,multidimensionalInfo:D,storageInfo:W})}function d(e,t,r){return p(e,{sourceJSON:t},r)}function h(e,t,r){return p(e,{rasterFunction:t},r)}function f(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>p,jV:()=>l,lF:()=>c});var i=r(92602),s=r(70333),n=r(4718),a=r(84952),o=r(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,a.An)(e):(0,n.o8)(e)}function c(e,t,r){const i={};for(const s in e){if("declaredClass"===s)continue;const n=e[s];if(null!=n&&"function"!=typeof n)if(Array.isArray(n))i[s]=n.map(e=>c(e));else if("object"==typeof n)if(n.toJSON){const e=n.toJSON(r?.[s]);i[s]=t?e:JSON.stringify(e)}else i[s]=t?n:JSON.stringify(n);else i[s]=n}return i}async function p(e,t,n){const a=function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??s.id?.findCredential(e)?.token:null}(e,t);if(a)return a;!s.id&&i.A.request.useIdentity&&await Promise.all([r.e(7632),r.e(2584),r.e(148)]).then(r.bind(r,50148));const l=await s.id.getCredential(e,n);return l?.token}},24212(e,t,r){r.d(t,{$7:()=>l,B:()=>o,M7:()=>p,XF:()=>c,tW:()=>u,w7:()=>a});var i=r(56512),s=r(86211),n=r(16271);function a(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?d:h}(e).mode}(null==e||(e.hasZ??!1),t)}function o(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function l(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function u(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function c(e,t){t&&e.warn(".elevationInfo=",t)}function p(e){return(e?.offset??0)*(0,n.Ao)(e?.unit)}(0,i.B)((e,t,r)=>{if(!e)return 0;if("decimal-degrees"===t)return 0;const i="unknown"!==t&&t?t:"meters",n=(0,s.mq)(r);return n?(0,s.oU)(e,i,n):0});const d={mode:"absolute-height",offset:0},h={mode:"on-the-ground",offset:null}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[124,9036],{56512(e,t,r){function i(e){let t,r,i=[],s=!1;return function(...n){return s&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}(n,i)||(r=e.apply(this,n),t=this,i=n,s=!0),r}}r.d(t,{B:()=>i})},69397(e,t,r){r.d(t,{Qf:()=>o,Qh:()=>n,lM:()=>s});var i=r(34275);function s(e){if(!e)return 0;let t=u;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r],!1));return t}function n(e){if(!e)return 0;if("number"==typeof e[0])return o(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=c;for(let i=0;i<t;i++)r+=a(e[i]);return r}(e);let t=u;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?n(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...e){return e.reduce((e,t)=>e+(t?(0,i.iu)(t)?t.byteLength+p:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return c+e.length*t}const u=32,c=16,p=145},5359(e,t,r){r.d(t,{Z:()=>s});const i=Symbol("isImageryTileGraphicOrigin");function s(e){return!!e&&i in e}r.d(t,["H",0,i])},90124(e,t,r){r.r(t),r.d(t,{default:()=>X});var i,s=r(5482),n=r(37838),a=r(69540),o=r(49186),l=r(53966),u=r(97768),c=r(25728),p=r(17676),d=r(36708),h=r(91429),f=r(56507),m=r(60950),y=r(89808),g=r(99959),v=r(5359);class w extends g.A{get[(i=v.H,m.ym)](){return this.layer}get[y.Q](){return this.layer}constructor(e){super(),this[i]=!0,this.type="imagery-tile",this.layer=e}get id(){return this.layer.id}}var b=r(4146),R=r(18768),S=r(63074),C=r(69208),A=r(34287),I=r(8303),O=r(72545),M=r(56551),_=r(54310),x=r(25036),F=r(82935),P=r(82806),N=r(7548),T=r(23636),J=r(1003),Z=r(99235),j=r(10873),D=r(20437),V=r(74797),k=r(22796),L=r(69409);const $={instance:null,refCount:0,connectionPromise:null};async function E(){if($.refCount++,$.instance)return $.instance;if(!$.connectionPromise){const e=new L.A;$.connectionPromise=e.initialize().then(()=>{$.instance=e})}return await $.connectionPromise,$.instance}function W(){$.refCount--,$.refCount>0||($.instance?.destroy(),$.instance=null,$.connectionPromise=null,$.refCount=0)}var H=r(87045),z=r(24212),q=r(30291),B=r(88625),U=r(59923);let G=class extends((0,S.dM)((0,x.j)((0,A.q)((0,I.A)((0,M.H)((0,C.d)((0,P.b)((0,O.G)((0,F.e)((0,R.b)((0,_.J)((0,c.M)((0,a.OU)(b.A)))))))))))))){constructor(...e){super(...e),this._primaryRasters=[],this.charts=null,this.graphicOrigin=new w(this),this.legendEnabled=!0,this.isReference=null,this.listMode="show",this.sourceJSON=null,this.version=null,this.type="imagery-tile",this.operationalLayerType="ArcGISTiledImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.fields=null,this.source=void 0,this._debouncedSaveOperations=(0,p.sg)(async(e,t,i)=>{const{save:s,saveAs:n}=await r.e(9838).then(r.bind(r,59838));switch(e){case 0:return s(this,t);case 1:return n(this,i,t)}})}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:["Image Service"]},e).catch(p.QP).then(()=>this._openRaster(t))),Promise.resolve(this)}destroy(){super.destroy(),this._releaseWorkerHandle=(0,u.xt)(this._releaseWorkerHandle)}set elevationInfo(e){"relative-to-scene"!==e?.mode&&this._set("elevationInfo",e),this._validateElevationInfo(e)}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){const e=[(0,V.rZ)("Pixel Value"),(0,V.dy)("Raw Pixel Value")],t=this.raster?.rasterInfo??this.serviceRasterInfo,r=t?.attributeTable;if(r){const t=(0,V.jC)(r);e.push(...t)}const i=t?.dataType,s=t?.multidimensionalInfo;if(("vector-magdir"===i||"vector-uv"===i)&&null!=s){const t=s.variables[0].unit?.trim(),r=(0,V.DV)(t),i=(0,V.y6)();e.push(r,i)}if(s){const t=(0,V.AL)(s);e.push(...t)}return e}get renderer(){return super.renderer}set renderer(e){super.renderer=e}createPopupTemplate(e){const{rasterFields:t}=this,r=e?.visibleFieldNames??new Set(t.map(({name:e})=>e).filter(e=>e!==V.F_.rawServicePixelValue)),i=(0,q.tn)({fields:t,title:this.title},{...e,visibleFieldNames:r}),{rasterInfo:s}=this.raster;return i?.fieldInfos&&s&&(0,V.h4)(i.fieldInfos,s),i}async generateRasterInfo(e,t){const r=(0,f.PZ)(k.A,e);if(await this.load(),!r||"none"===r.functionName?.toLowerCase())return this.serviceRasterInfo;try{const{rasterInfo:e}=await this._openFunctionRaster(r,t);return e}catch(e){if(e instanceof o.A)throw e;throw new o.A("imagery-tile-layer","the given raster function is not supported")}}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}supportsExportMapTiles(){const e=this._primaryRasters[0]??this.raster,t="RasterTileServer"===e?.datasetFormat,r=!!this.sourceJSON?.exportTilesAllowed,i=this.sourceJSON?.datasetFormat?.toLowerCase(),s=!/\/tiledimageservices[^.]*\.arcgis\.com/i.test(this.url)&&"Raster"===e?.tileType&&("cache/jpegplus"===i||"cache/jpegpng"===i);return t&&r&&("Map"===e?.tileType||s)}supportsWrite(){const e=this._primaryRasters[0]??this.raster;return!!(this.loaded?"RasterTileServer"===e.datasetFormat&&("Raster"===e.tileType||"Map"===e.tileType):this.url&&/\/ImageServer(\/|\/?$)/i.test(this.url))}write(e,t){return this.supportsWrite()?super.write(e,t):((0,U.U4)(t,this),null)}async hasDataChanged(){try{const e=this._primaryRasters[0]??this.raster,{dataChanged:t,updates:r}=await e.refresh();return t&&(this.serviceRasterInfo!==e.rasterInfo&&this._set("serviceRasterInfo",e.rasterInfo),e.sourceJSON&&this.sourceJSON!==e.sourceJSON&&(this.sourceJSON=e.sourceJSON),r&&this.read(r,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0})),t}catch{return!1}}async _openRaster(e){let t=!1;if(this.raster)await this._openFromRaster(this.raster,e),t=(0,N.qg)(this.raster),!t&&this.rasterFunction&&(this._primaryRasters=[this.raster],await this._initializeWithFunctionRaster(this.rasterFunction));else{const{url:t,rasterFunction:r,source:i}=this;if(!t&&!i)throw new o.A("imagery-tile-layer:open","missing url or source parameter");i?await this._openFromSource(i,e):r?await this._openFromUrlWithRasterFunction(t,r,e):await this._openFromUrl(t,e)}const r=this.raster.rasterInfo;if(!r)throw new o.A("imagery-tile-layer:load","cannot load resources on "+this.url);if(this._set("serviceRasterInfo",t?r:this._primaryRasters[0].rasterInfo),this._set("spatialReference",r.spatialReference),this.sourceJSON=this.sourceJSON||this.raster.sourceJSON,null!=this.sourceJSON){const e="Map"===this.raster.tileType&&null!=this.sourceJSON.minLOD&&null!=this.sourceJSON.maxLOD?this.sourceJSON:{...this.sourceJSON,minScale:0,maxScale:0};this.read(e,{origin:"service"})}else this.read({tileInfo:this.serviceRasterInfo?.storageInfo.tileInfo.toJSON()},{origin:"service"});this.title||(this.title=this.raster.datasetName),"Map"===this.raster.tileType&&(this.popupEnabled=!1),this._configDefaultSettings(),this.addHandles((0,d.wB)(()=>this.customParameters,e=>{this.raster&&(this.raster.ioConfig.customFetchParameters=e)}))}async _openFromRaster(e,t){e.rasterInfo||await e.open({signal:t}),this._primaryRasters=(0,N.pb)(e),this.url||(this.url=this._primaryRasters[0].url)}async _openFromUrlWithRasterFunction(e,t,r){const i=[e];let s;t&&(0,Z.UD)(t.toJSON(),i),i.some(e=>K(e))&&(s=await E(),this._releaseWorkerHandle={remove:()=>W()});const n=await Promise.all(i.map(e=>J.default.open({url:e,sourceJSON:this.sourceJSON,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},rasterJobHandler:s,signal:r}))),a=n.findIndex(e=>null==e);if(a>-1)throw new o.A("imagery-tile-layer:open",`cannot open raster: ${i[a]}`);return this._primaryRasters=n,this._initializeWithFunctionRaster(t)}async _openFromUrl(e,t){let r;K(e)&&(r=await E(),this._releaseWorkerHandle={remove:()=>W()});const i=await J.default.open({url:e,sourceJSON:this.sourceJSON,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},rasterJobHandler:r,signal:t});if(null==i)throw new o.A("imagery-tile-layer:open",`cannot open raster: ${e}`);this._primaryRasters=[i],this.raster=i}async _openFromSource(e,t){const r="the tiled imagery data source is not supported",i="coverage"===e.type?.toLowerCase()?"CovJSON":e.extent&&e.pixelBlock?"MEMORY":null;if(!i)throw new o.A("imagery-tile-layer:open",r);"MEMORY"===i&&(e={...e,pixelBlock:void 0,pixelBlocks:[e.pixelBlock]});const s=await J.default.open({url:"",source:e,datasetFormat:i,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},signal:t});if(null==s)throw new o.A("imagery-tile-layer:open",r);this._primaryRasters=[s],this.rasterFunction?await this._initializeWithFunctionRaster(this.rasterFunction):this.raster=s}async _openFunctionRaster(e,t){const r={raster:this._primaryRasters[0]};this._primaryRasters.length>1&&this._primaryRasters.forEach(e=>r[e.url]=e);const i=(0,Z.vt)(e.functionDefinition?.toJSON()??e.toJSON(),r),s=new T.A({rasterFunction:i});return await s.open(t),s}async _initializeWithFunctionRaster(e,t){try{this.raster=await this._openFunctionRaster(e,t)}catch(e){e instanceof o.A&&l.A.getLogger(this).error("imagery-tile-layer:open",e.message),l.A.getLogger(this).warn("imagery-tile-layer:open","the raster function cannot be applied and is removed"),this._set("rasterFunction",null),this.raster=this._primaryRasters[0]}}_validateElevationInfo(e){(0,z.XF)(l.A.getLogger(this),(0,z.$7)("ImageryTile layers","relative-to-scene",e)),(0,z.XF)(l.A.getLogger(this),(0,z.tW)("ImageryTile layers",e))}};(0,s.Cg)([(0,h.MZ)({clonable:!1})],G.prototype,"_primaryRasters",void 0),(0,s.Cg)([(0,h.MZ)({clonable:!1})],G.prototype,"_releaseWorkerHandle",void 0),(0,s.Cg)([(0,h.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],G.prototype,"charts",void 0),(0,s.Cg)([(0,h.MZ)({type:B.A,value:null,json:{name:"layerDefinition.elevationInfo",write:!0,origins:{"portal-item":{read:!1,write:!1},"web-map":{read:!1,write:!1}}}})],G.prototype,"elevationInfo",null),(0,s.Cg)([(0,h.MZ)({type:H.A})],G.prototype,"tileInfo",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,clonable:!1})],G.prototype,"graphicOrigin",void 0),(0,s.Cg)([(0,h.MZ)(j.fV)],G.prototype,"legendEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],G.prototype,"isReference",void 0),(0,s.Cg)([(0,h.MZ)({type:["show","hide"]})],G.prototype,"listMode",void 0),(0,s.Cg)([(0,h.MZ)({json:{read:!0,write:!0}})],G.prototype,"blendMode",void 0),(0,s.Cg)([(0,h.MZ)({type:k.A,json:{name:"renderingRule",write:!0}})],G.prototype,"rasterFunction",void 0),(0,s.Cg)([(0,h.MZ)()],G.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,json:{origins:{service:{read:{source:"currentVersion"}}}}})],G.prototype,"version",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],G.prototype,"type",void 0),(0,s.Cg)([(0,h.MZ)({type:["ArcGISTiledImageServiceLayer"]})],G.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(e,t)=>!t.disablePopup},write:{target:"disablePopup",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}},writer(e,t,r){t[r]=!e}}}})],G.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:n.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}}}}})],G.prototype,"popupTemplate",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],G.prototype,"defaultPopupTemplate",null),(0,s.Cg)([(0,h.MZ)(j.PY)],G.prototype,"screenSizePerspectiveEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,type:[D.A]})],G.prototype,"fields",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,type:[D.A]})],G.prototype,"rasterFields",null),(0,s.Cg)([(0,h.MZ)({constructOnly:!0})],G.prototype,"source",void 0),G=(0,s.Cg)([(0,h.$K)("esri.layers.ImageryTileLayer")],G);const X=G;function K(e){return/\.(jpe?g|png)$/i.test(e)}},18768(e,t,r){var i=r(5482),s=r(53966),n=r(91429),a=r(60694);r.d(t,["b",0,e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,s.A.getLogger(this)))}};return(0,i.Cg)([(0,n.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],r),r}])},56551(e,t,r){r.d(t,{H:()=>p});var i=r(5482),s=r(91429),n=r(69540),a=r(25482),o=r(56507),l=r(94359),u=r(93223);let c=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.name=void 0,this.method="none",this.value=void 0,this.bandIds=void 0,this.renderer=void 0}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({type:["raster-function-template","variable","none"],json:{write:{isRequired:!0}}}),(0,u.e)({rasterFunctionTemplate:"raster-function-template",variable:"variable",none:"none"})],c.prototype,"method",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"value",void 0),(0,i.Cg)([(0,s.MZ)({type:[o.jz],json:{write:{isRequired:!0}}})],c.prototype,"bandIds",void 0),(0,i.Cg)([(0,s.MZ)({types:l.uy,json:{write:!0,origins:{"web-scene":{types:l.Gj,write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],c.prototype,"renderer",void 0),c=(0,i.Cg)([(0,s.$K)("esri.renderers.support.RasterPresetRenderer")],c);const p=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.activePresetRendererName=null,this.presetRenderers=null}};return(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"layerDefinition.activePresetRendererName",write:{allowNull:!0}}})],r.prototype,"activePresetRendererName",void 0),(0,i.Cg)([(0,s.MZ)({type:[c],json:{name:"layerDefinition.presetRenderers",write:!0}})],r.prototype,"presetRenderers",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.RasterPresetRendererMixin")],r),r}},82371(e,t,r){r.d(t,{E9:()=>f,Tw:()=>d,X6:()=>h});var i=r(11254),s=r(5443),n=r(86738),a=r(16930),o=r(87186),l=r(20223),u=r(2272),c=r(22671);async function p(e,t,r){const p=(0,u.Dl)(e),{rasterFunction:d,sourceJSON:h}=t||{},f=d?JSON.stringify(d.rasterFunctionDefinition||d):null,m=(0,u.lF)({...p.query,renderingRule:f,f:"json"}),y=(0,u.jV)(m,r);e=p.path;const g=h||await(0,i.A)(e,y).then(e=>e.data),v=g.hasRasterAttributeTable?(0,i.A)(`${e}/rasterAttributeTable`,y):null,w=g.hasColormap?(0,i.A)(`${e}/colormap`,y):null,b=g.hasHistograms?(0,i.A)(`${e}/histograms`,y):null,R=g.currentVersion>=10.3?(0,i.A)(`${e}/keyProperties`,y):null,S=g.hasMultidimensions?(0,i.A)(`${e}/multidimensionalInfo`,y):null,C=g.currentVersion>=10.81?(0,i.A)(`${e}/statistics`,y):null,A=await Promise.allSettled([v,w,b,R,S,C]),I=s.A.fromJSON(g.extent),O=Math.ceil(I.width/g.pixelSizeX-.1),M=Math.ceil(I.height/g.pixelSizeY-.1),_=a.A.fromJSON(g.spatialReference||g.extent.spatialReference),x="fulfilled"===A[0].status?A[0].value?.data:null,F=x?.features?.length?c.A.fromJSON(x):null,P="fulfilled"===A[1].status?A[1].value?.data.colormap:null,N=P?.length?P:null,T="fulfilled"===A[2].status?A[2].value?.data.histograms:null,J=T?.[0]?.counts?.length?T:null,Z="fulfilled"===A[3].status?A[3].value?.data??{}:{},j="fulfilled"===A[4].status?A[4].value?.data.multidimensionalInfo:null,D=j?.variables?.length?j:null;D&&D.variables.forEach(e=>{e.statistics?.length&&e.statistics.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),e.dimensions?.forEach(e=>{"StdTime"!==e.name||e.recurring||e.unit||(e.unit="ISO8601")})});let V=null;const k="fulfilled"===A[5].status?A[5].value?.data.statistics:null;if(k&&k.length===g.bandCount)V=k.map(e=>({avg:e.mean,count:e.count,max:e.max,median:e.median,min:e.min,mode:e.mode,stddev:e.standardDeviation,sum:e.sum}));else if(g.minValues&&g.minValues.length===g.bandCount){V=[];for(let e=0;e<g.minValues.length;e++)V.push({min:g.minValues[e],max:g.maxValues[e],avg:g.meanValues[e],stddev:g.stdvValues[e]})}const{defaultVariable:L,serviceDataType:$}=g;L&&L!==Z.DefaultVariable&&(Z.DefaultVariable=L),$?.includes("esriImageServiceDataTypeVector")&&!$.includes(Z.DataType)&&(Z.DataType=$.replace("esriImageServiceDataType",""));let E=g.noDataValue;g.noDataValues?.length&&g.noDataValues.some(e=>e!==E)&&(E=g.noDataValues);const W=g.transposeInfo?new l.A({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new n.A({x:g.extent.xmin,y:g.extent.ymax,spatialReference:_}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(O,M))/Math.LN2-8)),transposeInfo:g.transposeInfo}):void 0;return new o.A({width:O,height:M,bandCount:g.bandCount,extent:s.A.fromJSON(g.extent),spatialReference:_,pixelSize:new n.A({x:g.pixelSizeX,y:g.pixelSizeY,spatialReference:_}),pixelType:g.pixelType.toLowerCase(),statistics:V,attributeTable:F,colormap:N,histograms:J,keyProperties:Z,noDataValue:E,multidimensionalInfo:D,storageInfo:W})}function d(e,t,r){return p(e,{sourceJSON:t},r)}function h(e,t,r){return p(e,{rasterFunction:t},r)}function f(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>p,jV:()=>l,lF:()=>c});var i=r(92602),s=r(70333),n=r(4718),a=r(84952),o=r(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,a.An)(e):(0,n.o8)(e)}function c(e,t,r){const i={};for(const s in e){if("declaredClass"===s)continue;const n=e[s];if(null!=n&&"function"!=typeof n)if(Array.isArray(n))i[s]=n.map(e=>c(e));else if("object"==typeof n)if(n.toJSON){const e=n.toJSON(r?.[s]);i[s]=t?e:JSON.stringify(e)}else i[s]=t?n:JSON.stringify(n);else i[s]=n}return i}async function p(e,t,n){const a=function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??s.id?.findCredential(e)?.token:null}(e,t);if(a)return a;!s.id&&i.A.request.useIdentity&&await Promise.all([r.e(7632),r.e(7510),r.e(148)]).then(r.bind(r,50148));const l=await s.id.getCredential(e,n);return l?.token}},24212(e,t,r){r.d(t,{$7:()=>l,B:()=>o,M7:()=>p,XF:()=>c,tW:()=>u,w7:()=>a});var i=r(56512),s=r(86211),n=r(16271);function a(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?d:h}(e).mode}(null==e||(e.hasZ??!1),t)}function o(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function l(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function u(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function c(e,t){t&&e.warn(".elevationInfo=",t)}function p(e){return(e?.offset??0)*(0,n.Ao)(e?.unit)}(0,i.B)((e,t,r)=>{if(!e)return 0;if("decimal-degrees"===t)return 0;const i="unknown"!==t&&t?t:"meters",n=(0,s.mq)(r);return n?(0,s.oU)(e,i,n):0});const d={mode:"absolute-height",offset:0},h={mode:"on-the-ground",offset:null}}}]);