@arcgis/core 5.0.0-next.23 → 5.0.0-next.24
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/01b8e680befff83e7d3e.js +1 -0
- package/assets/esri/core/workers/chunks/0ef9641069433fef3826.js +1 -0
- package/assets/esri/core/workers/chunks/155d74b9c0ef31dc2316.js +1 -0
- package/assets/esri/core/workers/chunks/19820cddba13a3585c0b.js +1 -0
- package/assets/esri/core/workers/chunks/{02cd03ffd024d3ac1aa7.js → 27ec791318e81285c222.js} +1 -1
- package/assets/esri/core/workers/chunks/2921f05a40fda12f9f81.js +1 -0
- package/assets/esri/core/workers/chunks/31b5747a254d13acc58e.js +1 -0
- package/assets/esri/core/workers/chunks/3777b41b4fa2f1418402.js +1 -0
- package/assets/esri/core/workers/chunks/3bacd904cd93c8013f6a.js +1 -0
- package/assets/esri/core/workers/chunks/41a00c77e6f7ce61e476.js +1 -0
- package/assets/esri/core/workers/chunks/45729d006db6a569715f.js +1 -0
- package/assets/esri/core/workers/chunks/58bbc8bc886c071b8ff3.js +1 -0
- package/assets/esri/core/workers/chunks/592afe1a41bed3b0cc31.js +1 -0
- package/assets/esri/core/workers/chunks/5aeda8a1f2ccabfdf40f.js +1 -0
- package/assets/esri/core/workers/chunks/{1e5efacbbc8960f13472.js → 748ab87a25f23d94b662.js} +1 -1
- package/assets/esri/core/workers/chunks/7e6fae3660e7a6a0fa16.js +1 -0
- package/assets/esri/core/workers/chunks/7ffef8a19166f6b564d8.js +1 -0
- package/assets/esri/core/workers/chunks/83aa39fbb1fad3b9d143.js +1 -0
- package/assets/esri/core/workers/chunks/8e9a5d38da40702def80.js +1 -0
- package/assets/esri/core/workers/chunks/aac313257a8b1ae75b75.js +1 -0
- package/assets/esri/core/workers/chunks/b48bb38e5d60fc7a9097.js +1 -0
- package/assets/esri/core/workers/chunks/b4c0a53c46ce4671d4c3.js +1 -0
- package/assets/esri/core/workers/chunks/bd58c027408dc858f23c.js +1 -0
- package/assets/esri/core/workers/chunks/be06c8a58c217a17451b.js +1 -0
- package/assets/esri/core/workers/chunks/ccde4f65377228b017a8.js +1 -0
- package/assets/esri/core/workers/chunks/d56548a994753b08403c.js +1 -0
- package/assets/esri/core/workers/chunks/{6e9c88f66bcfc3476b44.js → db0f9267fbda893de043.js} +1 -1
- package/assets/esri/core/workers/chunks/e08a1934d98e7324776d.js +1 -0
- package/assets/esri/core/workers/chunks/e0b70652da4a7f672cfc.js +1 -0
- package/assets/esri/core/workers/chunks/{bfc171f630da9314d860.js → e5baa30944061418cb13.js} +1 -1
- package/assets/esri/core/workers/chunks/e689a4849f5af3f2f641.js +1 -0
- package/assets/esri/core/workers/chunks/e6df4327ac1d9b65b80d.js +1 -0
- package/assets/esri/core/workers/chunks/f4919950a9a3703d9da3.js +1 -0
- package/assets/esri/core/workers/chunks/f4eb5de69ad9b7763582.js +1 -0
- package/assets/esri/core/workers/chunks/f6ce485c082d0d640b01.js +1 -0
- package/assets/esri/core/workers/chunks/fd9ef4b8c969962cf72b.js +1 -0
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
- package/assets/esri/themes/base/widgets/_FeatureTable.scss +0 -1
- 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/assets/esri/widgets/support/GridControls/t9n/GridControls.json +1 -1
- package/assets/esri/widgets/support/GridControls/t9n/GridControls_en.json +1 -1
- package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
- package/chunks/arcgis-knowledge-client-core.js +1 -1
- package/config.js +1 -1
- package/kernel.js +1 -1
- package/layers/BaseDynamicLayer.js +1 -1
- package/layers/BaseElevationLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/graphics/sources/support/QueryTask.js +1 -1
- package/layers/support/PublishingInfo.js +1 -1
- package/layers/support/RasterBandInfo.js +1 -1
- package/layers/support/RasterSensorInfo.js +1 -1
- package/layers/support/vectorTileLayerLoader.js +1 -1
- package/layers/voxel/VoxelVariable.js +1 -1
- package/package.json +1 -1
- package/rest/support/FindImagesResult.js +1 -1
- package/rest/support/ImageAreaResult.js +1 -1
- package/rest/support/ImageBoundaryResult.js +1 -1
- package/rest/support/ImageDistanceResult.js +1 -1
- package/rest/support/ImageGPSInfoResult.js +1 -1
- package/rest/support/ImageHeightResult.js +1 -1
- package/rest/support/ImageIdentifyResult.js +1 -1
- package/rest/support/ImagePixelLocationResult.js +1 -1
- package/rest/support/ImagePointResult.js +1 -1
- package/rest/support/ImageSampleResult.js +1 -1
- package/rest/support/ImageUrlResult.js +1 -1
- package/rest/support/ImageVolumeResult.js +1 -1
- package/rest/support/MeasureAreaFromImageResult.js +1 -1
- package/rest/support/MeasureLengthFromImageResult.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMEffects.js +1 -1
- package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/symbols/cim/placements/PlacementAtMeasuredUnits.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/LinkChartView.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/input/Input.js +1 -1
- package/views/layers/BuildingComponentSublayerView.js +1 -1
- package/views/layers/SceneLayerView.js +1 -1
- package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
- package/widgets/ScaleRangeSlider/ScaleRanges.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch/support/ResponsiveToolbar/ResponsiveToolbar.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/VideoPlayer/VideoPlayerViewModel.js +1 -1
- package/widgets/support/GridControls.js +1 -1
- package/widgets/support/SelectionToolbar.js +1 -1
- package/assets/esri/core/workers/chunks/038eba6d3a6bcf8ccd67.js +0 -1
- package/assets/esri/core/workers/chunks/11fdcb8a74a80e9a47a3.js +0 -1
- package/assets/esri/core/workers/chunks/13b47c217d1e9b61bcbf.js +0 -1
- package/assets/esri/core/workers/chunks/174972870db79189200b.js +0 -1
- package/assets/esri/core/workers/chunks/1b9f93ab226232c5019a.js +0 -1
- package/assets/esri/core/workers/chunks/221691ad0b2912827e14.js +0 -1
- package/assets/esri/core/workers/chunks/2719865e28d577da7b2a.js +0 -1
- package/assets/esri/core/workers/chunks/42747a028fc404ac55f4.js +0 -1
- package/assets/esri/core/workers/chunks/443931ac4b4ee5ccb932.js +0 -1
- package/assets/esri/core/workers/chunks/48ca09958c3d50de48dc.js +0 -1
- package/assets/esri/core/workers/chunks/5cc023e1066641f9f20c.js +0 -1
- package/assets/esri/core/workers/chunks/6b8a923fe5f800f703e3.js +0 -1
- package/assets/esri/core/workers/chunks/7749801f30a99b60753e.js +0 -1
- package/assets/esri/core/workers/chunks/7d9773c87650856f2d9e.js +0 -1
- package/assets/esri/core/workers/chunks/800c282a7335b2e6c7cd.js +0 -1
- package/assets/esri/core/workers/chunks/8a8192e6a9fd7a6d8060.js +0 -1
- package/assets/esri/core/workers/chunks/8af47cc9cee2f3031162.js +0 -1
- package/assets/esri/core/workers/chunks/8f0c53feead87457b7eb.js +0 -1
- package/assets/esri/core/workers/chunks/9f6d82ce8f680abb79bb.js +0 -1
- package/assets/esri/core/workers/chunks/9f9e20321ee44675e107.js +0 -1
- package/assets/esri/core/workers/chunks/a02ffa7916cf9da55608.js +0 -1
- package/assets/esri/core/workers/chunks/a7dc1928d46dd6b69868.js +0 -1
- package/assets/esri/core/workers/chunks/b6d21a2b5c1be8bee57c.js +0 -1
- package/assets/esri/core/workers/chunks/c35a22becf5c470ff6a2.js +0 -1
- package/assets/esri/core/workers/chunks/cd1d9f638af5b63a1292.js +0 -1
- package/assets/esri/core/workers/chunks/dcd6ee9e00ebd519c4a7.js +0 -1
- package/assets/esri/core/workers/chunks/e2d2a55aedd3ce9cb47b.js +0 -1
- package/assets/esri/core/workers/chunks/e3c8fac5fe638d548e34.js +0 -1
- package/assets/esri/core/workers/chunks/e45940d342b18983a5ef.js +0 -1
- package/assets/esri/core/workers/chunks/e5208898910c1222b7e6.js +0 -1
- package/assets/esri/core/workers/chunks/fa4f788abfbfd3dee882.js +0 -1
- package/assets/esri/core/workers/chunks/fbbf25629e0dab486887.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9013],{11053:(a,r,t)=>{t.d(r,{c:()=>e,g:()=>n});var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}},29013:(a,r,t)=>{t.d(r,{a:()=>s});var e,n=t(11053),o={exports:{}};const i=(0,n.g)(function(){return e||(e=1,a=o,r=globalThis.document?.currentScript?.src,t=async function(a={}){var t,e=a,n="./this.program",o="";try{o=new URL(".",r).href}catch{}t=async a=>{if((a=await fetch(a,{credentials:"same-origin"})).ok)return a.arrayBuffer();throw Error(a.status+" : "+a.url)};var i,s,u,f,l,h,c,w,d,p,v,m,b,y,g,$=console.log.bind(console),A=console.error.bind(console),C=!1,k=!1;function E(){var a=Zr.buffer;l=new Int8Array(a),c=new Int16Array(a),h=new Uint8Array(a),w=new Uint16Array(a),d=new Int32Array(a),p=new Uint32Array(a),v=new Float32Array(a),m=new Float64Array(a),b=new BigInt64Array(a),y=new BigUint64Array(a)}function x(a){throw e.onAbort?.(a),A(a="Aborted("+a+")"),C=!0,a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info."),f?.(a),a}async function O(a){if(!i)try{var r=await t(a);return new Uint8Array(r)}catch{}if(a!=g||!i)throw"both async and sync fetching of the wasm failed";return new Uint8Array(i)}class T{name="ExitStatus";constructor(a){this.message=`Program terminated with exit(${a})`,this.status=a}}var S=a=>{for(;0<a.length;)a.shift()(e)},P=[],j=[],D=()=>{var a=e.preRun.shift();j.push(a)},R=!0;class q{constructor(a){this.ra=a-24}}var I={},B=a=>{for(;a.length;){var r=a.pop();a.pop()(r)}};function M(a){return this.sa(p[a>>2])}var z={},U={},N={},F=class extends Error{constructor(a){super(a),this.name="InternalError"}},L=(a,r,t)=>{function e(r){if((r=t(r)).length!==a.length)throw new F("Mismatched type converter count");for(var e=0;e<a.length;++e)H(a[e],r[e])}a.forEach(a=>N[a]=r);var n=Array(r.length),o=[],i=0;r.forEach((a,r)=>{U.hasOwnProperty(a)?n[r]=U[a]:(o.push(a),z.hasOwnProperty(a)||(z[a]=[]),z[a].push(()=>{n[r]=U[a],++i===o.length&&e(n)}))}),0===o.length&&e(n)},W=a=>{for(var r="";;){var t=h[a++];if(!t)return r;r+=String.fromCharCode(t)}},_=class extends Error{constructor(a){super(a),this.name="BindingError"}};function H(a,r,t={}){return function(a,r,t={}){var e=r.name;if(!a)throw new _(`type "${e}" must have a positive integer typeid pointer`);if(U.hasOwnProperty(a)){if(t.Mb)return;throw new _(`Cannot register type '${e}' twice`)}U[a]=r,delete N[a],z.hasOwnProperty(a)&&(r=z[a],delete z[a],r.forEach(a=>a()))}(a,r,t)}var G=(a,r,t)=>{switch(r){case 1:return t?a=>l[a]:a=>h[a];case 2:return t?a=>c[a>>1]:a=>w[a>>1];case 4:return t?a=>d[a>>2]:a=>p[a>>2];case 8:return t?a=>b[a>>3]:a=>y[a>>3];default:throw new TypeError(`invalid integer width (${r}): ${a}`)}},J=a=>{throw new _(a.ma.ta.na.name+" instance already deleted")},K=!1,V=()=>{},Q=a=>globalThis.FinalizationRegistry?(K=new FinalizationRegistry(a=>{--(a=a.ma).count.value,0===a.count.value&&(a.xa?a.Ba.Ha(a.xa):a.ta.na.Ha(a.ra))}),V=a=>{K.unregister(a)},(Q=a=>{var r=a.ma;return r.xa&&K.register(a,{ma:r},a),a})(a)):(Q=a=>a,a);function Y(){}var X=(a,r)=>Object.defineProperty(r,"name",{value:a}),Z={},aa=(a,r,t)=>{if(void 0===a[r].ua){var e=a[r];a[r]=function(...e){if(!a[r].ua.hasOwnProperty(e.length))throw new _(`Function '${t}' called with an invalid number of arguments (${e.length}) - expects one of (${a[r].ua})!`);return a[r].ua[e.length].apply(this,e)},a[r].ua=[],a[r].ua[e.Ma]=e}},ra=(a,r,t)=>{if(e.hasOwnProperty(a)){if(void 0===t||void 0!==e[a].ua&&void 0!==e[a].ua[t])throw new _(`Cannot register public name '${a}' twice`);if(aa(e,a,a),e[a].ua.hasOwnProperty(t))throw new _(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`);e[a].ua[t]=r}else e[a]=r,e[a].Ma=t};function ta(a,r,t,e,n,o,i,s){this.name=a,this.constructor=r,this.La=t,this.Ha=e,this.ya=n,this.Hb=o,this.Xa=i,this.Fb=s,this.Sb=[]}var ea=(a,r,t)=>{for(;r!==t;){if(!r.Xa)throw new _(`Expected null or instance of ${t.name}, got an instance of ${r.name}`);a=r.Xa(a),r=r.ya}return a},na=a=>{if(null===a)return"null";var r=typeof a;return"object"===r||"array"===r||"function"===r?a.toString():""+a};function oa(a,r){if(null===r){if(this.lb)throw new _(`null is not a valid ${this.name}`);return 0}if(!r.ma)throw new _(`Cannot pass "${na(r)}" as a ${this.name}`);if(!r.ma.ra)throw new _(`Cannot pass deleted object as a pointer of type ${this.name}`);return ea(r.ma.ra,r.ma.ta.na,this.na)}function ia(a,r){if(null===r){if(this.lb)throw new _(`null is not a valid ${this.name}`);if(this.ab){var t=this.nb();return null!==a&&a.push(this.Ha,t),t}return 0}if(!r||!r.ma)throw new _(`Cannot pass "${na(r)}" as a ${this.name}`);if(!r.ma.ra)throw new _(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.$a&&r.ma.ta.$a)throw new _(`Cannot convert argument of type ${r.ma.Ba?r.ma.Ba.name:r.ma.ta.name} to parameter type ${this.name}`);if(t=ea(r.ma.ra,r.ma.ta.na,this.na),this.ab){if(void 0===r.ma.xa)throw new _("Passing raw pointer to smart pointer is illegal");switch(this.Xb){case 0:if(r.ma.Ba!==this)throw new _(`Cannot convert argument of type ${r.ma.Ba?r.ma.Ba.name:r.ma.ta.name} to parameter type ${this.name}`);t=r.ma.xa;break;case 1:t=r.ma.xa;break;case 2:if(r.ma.Ba===this)t=r.ma.xa;else{var e=r.clone();t=this.Tb(t,xa(()=>e.delete())),null!==a&&a.push(this.Ha,t)}break;default:throw new _("Unsupporting sharing policy")}}return t}function sa(a,r){if(null===r){if(this.lb)throw new _(`null is not a valid ${this.name}`);return 0}if(!r.ma)throw new _(`Cannot pass "${na(r)}" as a ${this.name}`);if(!r.ma.ra)throw new _(`Cannot pass deleted object as a pointer of type ${this.name}`);if(r.ma.ta.$a)throw new _(`Cannot convert argument of type ${r.ma.ta.name} to parameter type ${this.name}`);return ea(r.ma.ra,r.ma.ta.na,this.na)}var ua=(a,r,t)=>r===t?a:void 0===t.ya||null===(a=ua(a,r,t.ya))?null:t.Fb(a),fa={},la=(a,r)=>{if(!r.ta||!r.ra)throw new F("makeClassHandle requires ptr and ptrType");if(!!r.Ba!=!!r.xa)throw new F("Both smartPtrType and smartPtr must be specified");return r.count={value:1},Q(Object.create(a,{ma:{value:r,writable:!0}}))};function ha(a,r,t,e,n,o,i,s,u,f,l){this.name=a,this.na=r,this.lb=t,this.$a=e,this.ab=n,this.Rb=o,this.Xb=i,this.yb=s,this.nb=u,this.Tb=f,this.Ha=l,n||void 0!==r.ya?this.wa=ia:(this.wa=e?oa:sa,this.Aa=null)}var ca=(a,r,t)=>{if(!e.hasOwnProperty(a))throw new F("Replacing nonexistent public symbol");void 0!==e[a].ua&&void 0!==t?e[a].ua[t]=r:(e[a]=r,e[a].Ma=t)},wa=[],da=(a,r)=>{var t;if(a=W(a),(t=wa[r])||(wa[r]=t=at.get(r)),"function"!=typeof t)throw new _(`unknown function pointer with signature ${a}: ${r}`);return t};class pa extends Error{}var va=a=>{a=Kr(a);var r=W(a);return Qr(a),r},ma=(a,r)=>{var t=[],e={};throw r.forEach(function a(r){e[r]||U[r]||(N[r]?N[r].forEach(a):(t.push(r),e[r]=!0))}),new pa(`${a}: `+t.map(va).join([", "]))};function ba(a,r,t,e,n){var o=r.length;if(2>o)throw new _("argTypes array size mismatch! Must at least get return value and 'this' types!");var i=null!==r[1]&&null!==t,s=function(a){for(var r=1;r<a.length;++r)if(null!==a[r]&&void 0===a[r].Aa)return!0;return!1}(r),u=!r[0].Nb,f=o-2,l=Array(f),h=[],c=[];return X(a,function(...a){if(c.length=0,h.length=i?2:1,h[0]=n,i){var t=r[1].wa(c,this);h[1]=t}for(var o=0;o<f;++o)l[o]=r[o+2].wa(c,a[o]),h.push(l[o]);if(a=e(...h),s)B(c);else for(o=i?1:2;o<r.length;o++){var w=1===o?t:l[o-2];null!==r[o].Aa&&r[o].Aa(w)}return u?r[0].sa(a):void 0})}var ya=(a,r)=>{for(var t=[],e=0;e<a;e++)t.push(p[r+4*e>>2]);return t},ga=a=>{const r=(a=a.trim()).indexOf("(");return-1===r?a:a.slice(0,r)},$a=(a,r,t)=>{if(!(a instanceof Object))throw new _(`${t} with invalid "this": ${a}`);if(!(a instanceof r.na.constructor))throw new _(`${t} incompatible with "this" of type ${a.constructor.name}`);if(!a.ma.ra)throw new _(`cannot call emscripten binding method ${t} on deleted object`);return ea(a.ma.ra,a.ma.ta.na,r.na)},Aa=[],Ca=[0,1,,1,null,1,!0,1,!1,1],ka=a=>{9<a&&0===--Ca[a+1]&&(Ca[a]=void 0,Aa.push(a))},Ea=a=>{if(!a)throw new _(`Cannot use deleted val. handle = ${a}`);return Ca[a]},xa=a=>{switch(a){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const r=Aa.pop()||Ca.length;return Ca[r]=a,Ca[r+1]=1,r}},Oa={name:"emscripten::val",sa:a=>{var r=Ea(a);return ka(a),r},wa:(a,r)=>xa(r),Ea:M,Aa:null},Ta=(a,r,t)=>{switch(r){case 1:return t?function(a){return this.sa(l[a])}:function(a){return this.sa(h[a])};case 2:return t?function(a){return this.sa(c[a>>1])}:function(a){return this.sa(w[a>>1])};case 4:return t?function(a){return this.sa(d[a>>2])}:function(a){return this.sa(p[a>>2])};default:throw new TypeError(`invalid integer width (${r}): ${a}`)}},Sa=(a,r)=>{var t=U[a];if(void 0===t)throw a=`${r} has unknown type ${va(a)}`,new _(a);return t},Pa=(a,r)=>{switch(r){case 4:return function(a){return this.sa(v[a>>2])};case 8:return function(a){return this.sa(m[a>>3])};default:throw new TypeError(`invalid float width (${r}): ${a}`)}},ja=Object.assign({optional:!0},Oa),Da=(a,r,t,e)=>{if(!(0<e))return 0;var n=t;e=t+e-1;for(var o=0;o<a.length;++o){var i=a.codePointAt(o);if(127>=i){if(t>=e)break;r[t++]=i}else if(2047>=i){if(t+1>=e)break;r[t++]=192|i>>6,r[t++]=128|63&i}else if(65535>=i){if(t+2>=e)break;r[t++]=224|i>>12,r[t++]=128|i>>6&63,r[t++]=128|63&i}else{if(t+3>=e)break;r[t++]=240|i>>18,r[t++]=128|i>>12&63,r[t++]=128|i>>6&63,r[t++]=128|63&i,o++}}return r[t]=0,t-n},Ra=a=>{for(var r=0,t=0;t<a.length;++t){var e=a.charCodeAt(t);127>=e?r++:2047>=e?r+=2:55296<=e&&57343>=e?(r+=4,++t):r+=3}return r},qa=globalThis.TextDecoder&&new TextDecoder,Ia=(a,r,t,e)=>{if(t=r+t,e)return t;for(;a[r]&&!(r>=t);)++r;return r},Ba=(a,r=0,t,e)=>{if(16<(t=Ia(a,r,t,e))-r&&a.buffer&&qa)return qa.decode(a.subarray(r,t));for(e="";r<t;){var n=a[r++];if(128&n){var o=63&a[r++];if(192==(224&n))e+=String.fromCharCode((31&n)<<6|o);else{var i=63&a[r++];65536>(n=224==(240&n)?(15&n)<<12|o<<6|i:(7&n)<<18|o<<12|i<<6|63&a[r++])?e+=String.fromCharCode(n):(n-=65536,e+=String.fromCharCode(55296|n>>10,56320|1023&n))}}else e+=String.fromCharCode(n)}return e},Ma=globalThis.TextDecoder?new TextDecoder("utf-16le"):void 0,za=(a,r,t)=>{if(16<(r=Ia(w,a>>=1,r/2,t))-a&&Ma)return Ma.decode(w.subarray(a,r));for(t="";a<r;++a)t+=String.fromCharCode(w[a]);return t},Ua=(a,r,t)=>{if(t??=2147483647,2>t)return 0;var e=r;t=(t-=2)<2*a.length?t/2:a.length;for(var n=0;n<t;++n)c[r>>1]=a.charCodeAt(n),r+=2;return c[r>>1]=0,r-e},Na=a=>2*a.length,Fa=(a,r,t)=>{var e="";a>>=2;for(var n=0;!(n>=r/4);n++){var o=p[a+n];if(!o&&!t)break;e+=String.fromCodePoint(o)}return e},La=(a,r,t)=>{if(t??=2147483647,4>t)return 0;var e=r;t=e+t-4;for(var n=0;n<a.length;++n){var o=a.codePointAt(n);if(65535<o&&n++,d[r>>2]=o,(r+=4)+4>t)break}return d[r>>2]=0,r-e},Wa=a=>{for(var r=0,t=0;t<a.length;++t)65535<a.codePointAt(t)&&t++,r+=4;return r},_a=0,Ha=[],Ga={},Ja=a=>{var r=Ga[a];return void 0===r?W(a):r},Ka=(a,r,t,e,n)=>Ha[a](r,t,e,n),Va=(a,r)=>{for(var t=0,e=a.length-1;0<=e;e--){var n=a[e];"."===n?a.splice(e,1):".."===n?(a.splice(e,1),t++):t&&(a.splice(e,1),t--)}if(r)for(;t;t--)a.unshift("..");return a},Qa=a=>{var r="/"===a.charAt(0),t="/"===a.slice(-1);return(a=Va(a.split("/").filter(a=>!!a),!r).join("/"))||r||(a="."),a&&t&&(a+="/"),(r?"/":"")+a},Ya=a=>{var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);return a=r[0],r=r[1],a||r?(r&&=r.slice(0,-1),a+r):"."},Xa=a=>{(Xa=a=>crypto.getRandomValues(a))(a)},Za=[],ar=[];function rr(a,r){ar[a]={input:[],output:[],Ra:r},Or(a,tr)}var tr={open(a){var r=ar[a.node.fb];if(!r)throw new dr(43);a.Ca=r,a.seekable=!1},close(a){a.Ca.Ra.Za(a.Ca)},Za(a){a.Ca.Ra.Za(a.Ca)},read(a,r,t,e){if(!a.Ca||!a.Ca.Ra.sb)throw new dr(60);for(var n=0,o=0;o<e;o++){try{var i=a.Ca.Ra.sb(a.Ca)}catch(a){throw new dr(29)}if(void 0===i&&0===n)throw new dr(6);if(null==i)break;n++,r[t+o]=i}return n&&(a.node.Na=Date.now()),n},write(a,r,t,e){if(!a.Ca||!a.Ca.Ra.mb)throw new dr(60);try{for(var n=0;n<e;n++)a.Ca.Ra.mb(a.Ca,r[t+n])}catch(a){throw new dr(29)}return e&&(a.node.Da=a.node.za=Date.now()),n}},er={sb(){a:{if(!Za.length){var a=null;if(globalThis.window?.prompt&&null!==(a=window.prompt("Input: "))&&(a+="\n"),!a){var r=null;break a}r=Array(Ra(a)+1),a=Da(a,r,0,r.length),r.length=a,Za=r}r=Za.shift()}return r},mb(a,r){null===r||10===r?($(Ba(a.output)),a.output=[]):0!=r&&a.output.push(r)},Za(a){0<a.output?.length&&($(Ba(a.output)),a.output=[])},lc:()=>({cc:25856,ec:5,bc:191,dc:35387,ac:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),mc:()=>0,nc:()=>[24,80]},nr={mb(a,r){null===r||10===r?(A(Ba(a.output)),a.output=[]):0!=r&&a.output.push(r)},Za(a){0<a.output?.length&&(A(Ba(a.output)),a.output=[])}},or={Ga:null,Ja:()=>or.createNode(null,"/",16895,0),createNode(a,r,t,e){if(24576==(61440&t)||4096==(61440&t))throw new dr(63);return or.Ga||(or.Ga={dir:{node:{Ka:or.pa.Ka,Ia:or.pa.Ia,Ua:or.pa.Ua,cb:or.pa.cb,zb:or.pa.zb,Cb:or.pa.Cb,Bb:or.pa.Bb,ob:or.pa.ob,gb:or.pa.gb},stream:{Fa:or.qa.Fa}},file:{node:{Ka:or.pa.Ka,Ia:or.pa.Ia},stream:{Fa:or.qa.Fa,read:or.qa.read,write:or.qa.write,vb:or.qa.vb,xb:or.qa.xb}},link:{node:{Ka:or.pa.Ka,Ia:or.pa.Ia,Wa:or.pa.Wa},stream:{}},pb:{node:{Ka:or.pa.Ka,Ia:or.pa.Ia},stream:xr}}),16384==(61440&(t=gr(a,r,t,e)).mode)?(t.pa=or.Ga.dir.node,t.qa=or.Ga.dir.stream,t.oa={}):32768==(61440&t.mode)?(t.pa=or.Ga.file.node,t.qa=or.Ga.file.stream,t.va=0,t.oa=null):40960==(61440&t.mode)?(t.pa=or.Ga.link.node,t.qa=or.Ga.link.stream):8192==(61440&t.mode)&&(t.pa=or.Ga.pb.node,t.qa=or.Ga.pb.stream),t.Na=t.Da=t.za=Date.now(),a&&(a.oa[r]=t,a.Na=a.Da=a.za=t.Na),t},ic:a=>a.oa?a.oa.subarray?a.oa.subarray(0,a.va):new Uint8Array(a.oa):new Uint8Array(0),pa:{Ka(a){var r={};return r.fc=8192==(61440&a.mode)?a.id:1,r.kc=a.id,r.mode=a.mode,r.oc=1,r.uid=0,r.jc=0,r.fb=a.fb,16384==(61440&a.mode)?r.size=4096:32768==(61440&a.mode)?r.size=a.va:40960==(61440&a.mode)?r.size=a.link.length:r.size=0,r.Na=new Date(a.Na),r.Da=new Date(a.Da),r.za=new Date(a.za),r.Db=4096,r.$b=Math.ceil(r.size/r.Db),r},Ia(a,r){for(var t of["mode","atime","mtime","ctime"])null!=r[t]&&(a[t]=r[t]);void 0!==r.size&&(r=r.size,a.va!=r&&(0==r?(a.oa=null,a.va=0):(t=a.oa,a.oa=new Uint8Array(r),t&&a.oa.set(t.subarray(0,Math.min(r,a.va))),a.va=r)))},Ua(){throw or.hb||(or.hb=new dr(44),or.hb.stack="<generic error, no stack>"),or.hb},cb:(a,r,t,e)=>or.createNode(a,r,t,e),zb(a,r,t){try{var e=yr(r,t)}catch(a){}if(e){if(16384==(61440&a.mode))for(var n in e.oa)throw new dr(55);if(n=br(e.parent.id,e.name),lr[n]===e)lr[n]=e.Qa;else for(n=lr[n];n;){if(n.Qa===e){n.Qa=e.Qa;break}n=n.Qa}}delete a.parent.oa[a.name],r.oa[t]=a,a.name=t,r.za=r.Da=a.parent.za=a.parent.Da=Date.now()},Cb(a,r){delete a.oa[r],a.za=a.Da=Date.now()},Bb(a,r){var t,e=yr(a,r);for(t in e.oa)throw new dr(55);delete a.oa[r],a.za=a.Da=Date.now()},ob:a=>[".","..",...Object.keys(a.oa)],gb:(a,r,t)=>((a=or.createNode(a,r,41471,0)).link=t,a),Wa(a){if(40960!=(61440&a.mode))throw new dr(28);return a.link}},qa:{read(a,r,t,e,n){var o=a.node.oa;if(n>=a.node.va)return 0;if(8<(a=Math.min(a.node.va-n,e))&&o.subarray)r.set(o.subarray(n,n+a),t);else for(e=0;e<a;e++)r[t+e]=o[n+e];return a},write(a,r,t,e,n,o){if(r.buffer===l.buffer&&(o=!1),!e)return 0;if((a=a.node).Da=a.za=Date.now(),r.subarray&&(!a.oa||a.oa.subarray)){if(o)return a.oa=r.subarray(t,t+e),a.va=e;if(0===a.va&&0===n)return a.oa=r.slice(t,t+e),a.va=e;if(n+e<=a.va)return a.oa.set(r.subarray(t,t+e),n),e}o=n+e;var i=a.oa?a.oa.length:0;if(i>=o||(o=Math.max(o,i*(1048576>i?2:1.125)>>>0),0!=i&&(o=Math.max(o,256)),i=a.oa,a.oa=new Uint8Array(o),0<a.va&&a.oa.set(i.subarray(0,a.va),0)),a.oa.subarray&&r.subarray)a.oa.set(r.subarray(t,t+e),n);else for(o=0;o<e;o++)a.oa[n+o]=r[t+o];return a.va=Math.max(a.va,n+e),e},Fa(a,r,t){if(1===t?r+=a.position:2===t&&32768==(61440&a.node.mode)&&(r+=a.node.va),0>r)throw new dr(28);return r},vb(a,r,t,e,n){if(32768!=(61440&a.node.mode))throw new dr(43);if(a=a.node.oa,2&n||!a||a.buffer!==l.buffer){n=!0,e=65536*Math.ceil(r/65536);var o=Yr(65536,e);if(o&&h.fill(0,o,o+e),!(e=o))throw new dr(48);a&&((0<t||t+r<a.length)&&(a=a.subarray?a.subarray(t,t+r):Array.prototype.slice.call(a,t,t+r)),l.set(a,e))}else n=!1,e=a.byteOffset;return{ra:e,Zb:n}},xb:(a,r,t,e)=>(or.qa.write(a,r,0,e,t,!1),0)}},ir=null,sr={},ur=[],fr=1,lr=null,hr=!1,cr=!0,wr={},dr=class{name="ErrnoError";constructor(a){this.Ta=a}},pr=class{bb={};node=null;get flags(){return this.bb.flags}set flags(a){this.bb.flags=a}get position(){return this.bb.position}set position(a){this.bb.position=a}},vr=class{pa={};qa={};eb=null;constructor(a,r,t,e){a||=this,this.parent=a,this.Ja=a.Ja,this.id=fr++,this.name=r,this.mode=t,this.fb=e,this.Na=this.Da=this.za=Date.now()}get read(){return!(365&~this.mode)}set read(a){a?this.mode|=365:this.mode&=-366}get write(){return!(146&~this.mode)}set write(a){a?this.mode|=146:this.mode&=-147}};function mr(a,r={}){if(!a)throw new dr(44);r.jb??(r.jb=!0),"/"===a.charAt(0)||(a="//"+a);var t=0;a:for(;40>t;t++){a=a.split("/").filter(a=>!!a);for(var e=ir,n="/",o=0;o<a.length;o++){var i=o===a.length-1;if(i&&r.parent)break;if("."!==a[o])if(".."===a[o]){if(n=Ya(n),e===e.parent){a=n+"/"+a.slice(o+1).join("/"),t--;continue a}e=e.parent}else{n=Qa(n+"/"+a[o]);try{e=yr(e,a[o])}catch(a){if(44===a?.Ta&&i&&r.Qb)return{path:n};throw a}if(!e.eb||i&&!r.jb||(e=e.eb.root),40960==(61440&e.mode)&&(!i||r.ib)){if(!e.pa.Wa)throw new dr(52);"/"===(e=e.pa.Wa(e)).charAt(0)||(e=Ya(n)+"/"+e),a=e+"/"+a.slice(o+1).join("/");continue a}}}return{path:n,node:e}}throw new dr(32)}function br(a,r){for(var t=0,e=0;e<r.length;e++)t=(t<<5)-t+r.charCodeAt(e)|0;return(a+t>>>0)%lr.length}function yr(a,r){var t=16384==(61440&a.mode)?(t=Ar(a,"x"))?t:a.pa.Ua?0:2:54;if(t)throw new dr(t);for(t=lr[br(a.id,r)];t;t=t.Qa){var e=t.name;if(t.parent.id===a.id&&e===r)return t}return a.pa.Ua(a,r)}function gr(a,r,t,e){return r=br((a=new vr(a,r,t,e)).parent.id,a.name),a.Qa=lr[r],lr[r]=a}function $r(a){var r=["r","w","rw"][3&a];return 512&a&&(r+="w"),r}function Ar(a,r){return cr?0:!r.includes("r")||292&a.mode?r.includes("w")&&!(146&a.mode)||r.includes("x")&&!(73&a.mode)?2:0:2}function Cr(a,r){if(16384!=(61440&a.mode))return 54;try{return yr(a,r),20}catch(a){}return Ar(a,"wx")}function kr(a){if(!(a=ur[a]))throw new dr(8);return a}function Er(a,r){var t=void 0,e=t?null:a;if(t??=a.pa.Ia,!t)throw new dr(63);t(e,r)}var xr={open(a){a.qa=sr[a.node.fb].qa,a.qa.open?.(a)},Fa(){throw new dr(70)}};function Or(a,r){sr[a]={qa:r}}function Tr(a,r){var t="/"===r;if(t&&ir)throw new dr(10);if(!t&&r){var e=mr(r,{jb:!1});if(r=e.path,(e=e.node).eb)throw new dr(10);if(16384!=(61440&e.mode))throw new dr(54)}r={type:a,pc:{},wb:r,Pb:[]},(a=a.Ja(r)).Ja=r,r.root=a,t?ir=a:e&&(e.eb=r,e.Ja&&e.Ja.Pb.push(r))}function Sr(a,r,t){var e=mr(a,{parent:!0}).node;if(!(a=a&&a.match(/([^\/]+|\/)\/*$/)[1]))throw new dr(28);if("."===a||".."===a)throw new dr(20);var n=Cr(e,a);if(n)throw new dr(n);if(!e.pa.cb)throw new dr(63);return e.pa.cb(e,a,r,t)}function Pr(a){return Sr(a,16895,0)}function jr(a,r,t){void 0===t&&(t=r,r=438),Sr(a,8192|r,t)}function Dr(a,r){if(!((...a)=>{for(var r="",t=!1,e=a.length-1;-1<=e&&!t;e--){if("string"!=typeof(t=0<=e?a[e]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";r=t+"/"+r,t="/"===t.charAt(0)}return(t?"/":"")+(r=Va(r.split("/").filter(a=>!!a),!t).join("/"))||"."})(a))throw new dr(44);var t=mr(r,{parent:!0}).node;if(!t)throw new dr(44);var e=Cr(t,r=r&&r.match(/([^\/]+|\/)\/*$/)[1]);if(e)throw new dr(e);if(!t.pa.gb)throw new dr(63);t.pa.gb(t,r,a)}function Rr(a,r){if(""===a)throw new dr(44);if("string"==typeof r){var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===t)throw Error(`Unknown file open mode: ${r}`);r=t}if(t=64&r?33206:0,"object"==typeof a)var n=a;else{var o=a.endsWith("/");n=(a=mr(a,{ib:!(131072&r),Qb:!0})).node,a=a.path}var i=!1;if(64&r)if(n){if(128&r)throw new dr(20)}else{if(o)throw new dr(31);n=Sr(a,511|t,0),i=!0}if(!n)throw new dr(44);if(8192==(61440&n.mode)&&(r&=-513),65536&r&&16384!=(61440&n.mode))throw new dr(54);if(!i&&(o=n?40960==(61440&n.mode)?32:16384==(61440&n.mode)&&("r"!==$r(r)||576&r)?31:Ar(n,$r(r)):44))throw new dr(o);if(512&r&&!i){if(16384==(61440&(o="string"==typeof(o=n)?mr(o,{ib:!0}).node:o).mode))throw new dr(31);if(32768!=(61440&o.mode))throw new dr(28);var s=Ar(o,"w");if(s)throw new dr(s);Er(o,{size:0,timestamp:Date.now()})}r&=-131713;a:for(o=n;;){if(o===o.parent){o=o.Ja.wb;var u=u?"/"!==o[o.length-1]?`${o}/${u}`:o+u:o;break a}u=u?`${o.name}/${u}`:o.name,o=o.parent}if(u={node:n,path:u,flags:r,seekable:!0,position:0,qa:n.qa,Yb:[],error:!1},o=-1,u=Object.assign(new pr,u),-1==o)a:{for(o=0;4096>=o;o++)if(!ur[o])break a;throw new dr(33)}u.Pa=o,ur[o]=u,u.qa.open&&u.qa.open(u),i&&(t&=511,Er(n="string"==typeof n?mr(n,{ib:!0}).node:n,{mode:4095&t|-4096&n.mode,za:Date.now(),hc:void 0})),!e.logReadFiles||1&r||a in wr||(wr[a]=1)}function qr(a,r,t){if(null===a.Pa)throw new dr(8);if(!a.seekable||!a.qa.Fa)throw new dr(70);if(0!=t&&1!=t&&2!=t)throw new dr(28);a.position=a.qa.Fa(a,r,t),a.Yb=[]}function Ir(a,r,t){a=Qa("/dev/"+a);var e=((a,r)=>{var t=0;return a&&(t|=365),r&&(t|=146),t})(!!r,!!t);Ir.ub??(Ir.ub=64);var n=Ir.ub++<<8;Or(n,{open(a){a.seekable=!1},close(){t?.buffer?.length&&t(10)},read(a,t,e,n){for(var o=0,i=0;i<n;i++){try{var s=r()}catch(a){throw new dr(29)}if(void 0===s&&0===o)throw new dr(6);if(null==s)break;o++,t[e+i]=s}return o&&(a.node.Na=Date.now()),o},write(a,r,e,n){for(var o=0;o<n;o++)try{t(r[e+o])}catch(a){throw new dr(29)}return n&&(a.node.Da=a.node.za=Date.now()),o}}),jr(a,e,n)}var Br,Mr={},zr={},Ur=a=>{if(!(a instanceof T||"unwind"==a))throw a},Nr=a=>{throw s=a,R||0<_a||(e.onExit?.(a),C=!0),new T(a)},Fr=[],Lr={},Wr=a=>{var r;return(r=/\bwasm-function\[\d+\]:(0x[0-9a-f]+)/.exec(a))?+r[1]:(r=/:(\d+):\d+(?:\)|$)/.exec(a))?2147483648|+r[1]:0},_r=a=>{for(var r of a)(a=Wr(r))&&(Lr[a]=r)},Hr=a=>{if(!(a=Lr[a]))return 0;var r;if(r=/^\s+at .*\.wasm\.(.*) \(.*\)$/.exec(a))r=r[1];else if(r=/^\s+at (.*) \(.*\)$/.exec(a))r=r[1];else{if(!(r=/^(.+?)@/.exec(a)))return 0;r=r[1]}Qr(Hr.Ab??0),a=Hr;var t=Ra(r)+1,e=Vr(t);return e&&Da(r,h,e,t),a.Ab=e,Hr.Ab},Gr={},Jr=()=>{if(!Br){var a,r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:n||"./this.program"};for(a in Gr)void 0===Gr[a]?delete r[a]:r[a]=Gr[a];var t=[];for(a in r)t.push(`${a}=${r[a]}`);Br=t}return Br};if((()=>{let a=Y.prototype;Object.assign(a,{isAliasOf:function(a){if(!(this instanceof Y&&a instanceof Y))return!1;var r=this.ma.ta.na,t=this.ma.ra;a.ma=a.ma;var e=a.ma.ta.na;for(a=a.ma.ra;r.ya;)t=r.Xa(t),r=r.ya;for(;e.ya;)a=e.Xa(a),e=e.ya;return r===e&&t===a},clone:function(){if(this.ma.ra||J(this),this.ma.Va)return this.ma.count.value+=1,this;var a=Q,r=Object,t=r.create,e=Object.getPrototypeOf(this),n=this.ma;return(a=a(t.call(r,e,{ma:{value:{count:n.count,Sa:n.Sa,Va:n.Va,ra:n.ra,ta:n.ta,xa:n.xa,Ba:n.Ba}}}))).ma.count.value+=1,a.ma.Sa=!1,a},delete(){if(this.ma.ra||J(this),this.ma.Sa&&!this.ma.Va)throw new _("Object already scheduled for deletion");V(this);var a=this.ma;--a.count.value,0===a.count.value&&(a.xa?a.Ba.Ha(a.xa):a.ta.na.Ha(a.ra)),this.ma.Va||(this.ma.xa=void 0,this.ma.ra=void 0)},isDeleted:function(){return!this.ma.ra},deleteLater:function(){if(this.ma.ra||J(this),this.ma.Sa&&!this.ma.Va)throw new _("Object already scheduled for deletion");return this.ma.Sa=!0,this}});const r=Symbol.dispose;r&&(a[r]=a.delete)})(),Object.assign(ha.prototype,{Ib(a){return this.yb&&(a=this.yb(a)),a},qb(a){this.Ha?.(a)},Ea:M,sa:function(a){function r(){return this.ab?la(this.na.La,{ta:this.Rb,ra:t,Ba:this,xa:a}):la(this.na.La,{ta:this,ra:a})}var t=this.Ib(a);if(!t)return this.qb(a),null;var e=((a,r)=>{if(void 0===r)throw new _("ptr should not be undefined");for(;a.ya;)r=a.Xa(r),a=a.ya;return fa[r]})(this.na,t);if(void 0!==e)return 0===e.ma.count.value?(e.ma.ra=t,e.ma.xa=a,e.clone()):(e=e.clone(),this.qb(a),e);if(e=this.na.Hb(t),!(e=Z[e]))return r.call(this);e=this.$a?e.Eb:e.pointerType;var n=ua(t,this.na,e.na);return null===n?r.call(this):this.ab?la(e.na.La,{ta:e,ra:n,Ba:this,xa:a}):la(e.na.La,{ta:e,ra:n})}}),lr=Array(4096),Tr(or,"/"),Pr("/tmp"),Pr("/home"),Pr("/home/web_user"),function(){Pr("/dev"),Or(259,{read:()=>0,write:(a,r,t,e)=>e,Fa:()=>0}),jr("/dev/null",259),rr(1280,er),rr(1536,nr),jr("/dev/tty",1280),jr("/dev/tty1",1536);var a=new Uint8Array(1024),r=0,t=()=>(0===r&&(Xa(a),r=a.byteLength),a[--r]);Ir("random",t),Ir("urandom",t),Pr("/dev/shm"),Pr("/dev/shm/tmp")}(),function(){Pr("/proc");var a=Pr("/proc/self");Pr("/proc/self/fd"),Tr({Ja(){var r=gr(a,"fd",16895,73);return r.qa={Fa:or.qa.Fa},r.pa={Ua(a,r){var t=kr(a=+r);return(a={parent:null,Ja:{wb:"fake"},pa:{Wa:()=>t.path},id:a+1}).parent=a},ob:()=>Array.from(ur.entries()).filter(([,a])=>a).map(([a])=>a.toString())},r}},"/proc/self/fd")}(),e.noExitRuntime&&(R=e.noExitRuntime),e.print&&($=e.print),e.printErr&&(A=e.printErr),e.wasmBinary&&(i=e.wasmBinary),e.thisProgram&&(n=e.thisProgram),e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.shift()();var Kr,Vr,Qr,Yr,Xr,Zr,at,rt,tt={208764:()=>"undefined"!=typeof wasmOffsetConverter},et={U:function(){return"undefined"!=typeof wasmOffsetConverter},n:(a,r,t)=>{var e=new q(a);throw p[e.ra+16>>2]=0,p[e.ra+4>>2]=r,p[e.ra+8>>2]=t,a},Q:()=>x(""),r:a=>{var r=I[a];delete I[a];var t=r.nb,e=r.Ha,n=r.rb,o=n.map(a=>a.Lb).concat(n.map(a=>a.Vb));L([a],o,a=>{var o={};return n.forEach((r,t)=>{var e=a[t],i=r.Jb,s=r.Kb,u=a[t+n.length],f=r.Ub,l=r.Wb;o[r.Gb]={read:a=>e.sa(i(s,a)),write:(a,r)=>{var t=[];f(l,a,u.wa(t,r)),B(t)},optional:a[t].optional}}),[{name:r.name,sa:a=>{var r,t={};for(r in o)t[r]=o[r].read(a);return e(a),t},wa:(a,r)=>{for(var n in o)if(!(n in r)&&!o[n].optional)throw new TypeError(`Missing field: "${n}"`);var i=t();for(n in o)o[n].write(i,r[n]);return null!==a&&a.push(e,i),i},Ea:M,Aa:e}]})},E:(a,r,t,e,n)=>{r=W(r);let o=a=>a;if(e=0n===e){const a=8*t;o=r=>BigInt.asUintN(a,r),n=o(n)}H(a,{name:r,sa:o,wa:(a,r)=>("number"==typeof r&&(r=BigInt(r)),r),Ea:G(r,t,!e),Aa:null})},ba:(a,r,t,e)=>{H(a,{name:r=W(r),sa:function(a){return!!a},wa:function(a,r){return r?t:e},Ea:function(a){return this.sa(h[a])},Aa:null})},e:(a,r,t,e,n,o,i,s,u,f,l,h,c)=>{l=W(l),o=da(n,o),s&&=da(i,s),f&&=da(u,f),c=da(h,c);var w=(a=>{var r=(a=a.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=r&&57>=r?`_${a}`:a})(l);ra(w,function(){ma(`Cannot construct ${l} due to unbound types`,[e])}),L([a,r,t],e?[e]:[],r=>{if(r=r[0],e)var t=r.na,n=t.La;else n=Y.prototype;r=X(l,function(...a){if(Object.getPrototypeOf(this)!==i)throw new _(`Use 'new' to construct ${l}`);if(void 0===h.Oa)throw new _(`${l} has no accessible constructor`);var r=h.Oa[a.length];if(void 0===r)throw new _(`Tried to invoke ctor of ${l} with invalid number of parameters (${a.length}) - expected (${Object.keys(h.Oa).toString()}) parameters instead!`);return r.apply(this,a)});var i=Object.create(n,{constructor:{value:r}});r.prototype=i;var u,h=new ta(l,r,i,c,t,o,s,f);return h.ya&&((u=h.ya).Ya??(u.Ya=[]),h.ya.Ya.push(h)),t=new ha(l,h,!0,!1,!1),u=new ha(l+"*",h,!1,!1,!1),n=new ha(l+" const*",h,!1,!0,!1),Z[a]={pointerType:u,Eb:n},ca(w,r),[t,u,n]})},v:(a,r,t,e,n,o,i)=>{var s=ya(t,e);r=W(r),r=ga(r),o=da(n,o),L([],[a],a=>{function e(){ma(`Cannot call ${n} due to unbound types`,s)}var n=`${(a=a[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]);var u=a.na.constructor;return void 0===u[r]?(e.Ma=t-1,u[r]=e):(aa(u,r,n),u[r].ua[t-1]=e),L([],s,e=>{if(e=ba(n,[e[0],null].concat(e.slice(1)),null,o,i),void 0===u[r].ua?(e.Ma=t-1,u[r]=e):u[r].ua[t-1]=e,a.na.Ya)for(const t of a.na.Ya)t.constructor.hasOwnProperty(r)||(t.constructor[r]=e);return[]}),[]})},j:(a,r,t,e,n,o)=>{var i=ya(r,t);n=da(e,n),L([],[a],a=>{var t=`constructor ${(a=a[0]).name}`;if(void 0===a.na.Oa&&(a.na.Oa=[]),void 0!==a.na.Oa[r-1])throw new _(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${a.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return a.na.Oa[r-1]=()=>{ma(`Cannot construct ${a.name} due to unbound types`,i)},L([],i,e=>(e.splice(1,0,null),a.na.Oa[r-1]=ba(t,e,null,n,o),[])),[]})},a:(a,r,t,e,n,o,i,s)=>{var u=ya(t,e);r=W(r),r=ga(r),o=da(n,o),L([],[a],a=>{function e(){ma(`Cannot call ${n} due to unbound types`,u)}var n=`${(a=a[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&a.na.Sb.push(r);var f=a.na.La,l=f[r];return void 0===l||void 0===l.ua&&l.className!==a.name&&l.Ma===t-2?(e.Ma=t-2,e.className=a.name,f[r]=e):(aa(f,r,n),f[r].ua[t-2]=e),L([],u,e=>(e=ba(n,e,a,o,i),void 0===f[r].ua?(e.Ma=t-2,f[r]=e):f[r].ua[t-2]=e,[])),[]})},c:(a,r,t,e,n,o,i,s,u,f)=>{r=W(r),n=da(e,n),L([],[a],a=>{var e=`${(a=a[0]).name}.${r}`,l={get(){ma(`Cannot access ${e} due to unbound types`,[t,i])},enumerable:!0,configurable:!0};return l.set=u?()=>ma(`Cannot access ${e} due to unbound types`,[t,i]):()=>{throw new _(e+" is a read-only property")},Object.defineProperty(a.na.La,r,l),L([],u?[t,i]:[t],t=>{var i=t[0],l={get(){var r=$a(this,a,e+" getter");return i.sa(n(o,r))},enumerable:!0};if(u){u=da(s,u);var h=t[1];l.set=function(r){var t=$a(this,a,e+" setter"),n=[];u(f,t,h.wa(n,r)),B(n)}}return Object.defineProperty(a.na.La,r,l),[]}),[]})},_:a=>H(a,Oa),m:(a,r,t,e)=>{function n(){}r=W(r),n.values={},H(a,{name:r,constructor:n,sa:function(a){return this.constructor.values[a]},wa:(a,r)=>r.value,Ea:Ta(r,t,e),Aa:null}),ra(r,n)},d:(a,r,t)=>{var e=Sa(a,"enum");r=W(r),a=e.constructor,e=Object.create(e.constructor.prototype,{value:{value:t},constructor:{value:X(`${e.name}_${r}`,function(){})}}),a.values[t]=e,a[r]=e},D:(a,r,t)=>{H(a,{name:r=W(r),sa:a=>a,wa:(a,r)=>r,Ea:Pa(r,t),Aa:null})},da:(a,r,t,e,n,o)=>{var i=ya(r,t);a=W(a),a=ga(a),n=da(e,n),ra(a,function(){ma(`Cannot call ${a} due to unbound types`,i)},r-1),L([],i,t=>(ca(a,ba(a,[t[0],null].concat(t.slice(1)),null,n,o),r-1),[]))},w:(a,r,t,e,n)=>{r=W(r);let o=a=>a;if(0===e){var i=32-8*t;o=a=>a<<i>>>i,n=o(n)}H(a,{name:r,sa:o,wa:(a,r)=>r,Ea:G(r,t,0!==e),Aa:null})},o:(a,r,t)=>{function e(a){return new n(l.buffer,p[a+4>>2],p[a>>2])}var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][r];H(a,{name:t=W(t),sa:e,Ea:e},{Mb:!0})},t:a=>{H(a,ja)},k:(a,r,t,e,n,o,i,s,u,f,l,h)=>{t=W(t),o=da(n,o),s=da(i,s),f=da(u,f),h=da(l,h),L([a],[r],a=>(a=a[0],[new ha(t,a.na,!1,!1,!0,a,e,o,s,f,h)]))},aa:(a,r)=>{H(a,{name:r=W(r),sa(a){var r=(r=a+4)?Ba(h,r,p[a>>2],!0):"";return Qr(a),r},wa(a,r){r instanceof ArrayBuffer&&(r=new Uint8Array(r));var t="string"==typeof r;if(!(t||ArrayBuffer.isView(r)&&1==r.BYTES_PER_ELEMENT))throw new _("Cannot pass non-string to std::string");var e=t?Ra(r):r.length,n=Vr(4+e+1),o=n+4;return p[n>>2]=e,t?Da(r,h,o,e+1):h.set(r,o),null!==a&&a.push(Qr,n),n},Ea:M,Aa(a){Qr(a)}})},A:(a,r,t)=>{if(t=W(t),2===r)var e=za,n=Ua,o=Na;else e=Fa,n=La,o=Wa;H(a,{name:t,sa:a=>{var t=e(a+4,p[a>>2]*r,!0);return Qr(a),t},wa:(a,e)=>{if("string"!=typeof e)throw new _(`Cannot pass non-string to C++ string type ${t}`);var i=o(e),s=Vr(4+i+r);return p[s>>2]=i/r,n(e,s+4,i+r),null!==a&&a.push(Qr,s),s},Ea:M,Aa(a){Qr(a)}})},s:(a,r,t,e,n,o)=>{I[a]={name:W(r),nb:da(t,e),Ha:da(n,o),rb:[]}},l:(a,r,t,e,n,o,i,s,u,f)=>{I[a].rb.push({Gb:W(r),Lb:t,Jb:da(e,n),Kb:o,Vb:i,Ub:da(s,u),Wb:f})},ca:(a,r)=>{H(a,{Nb:!0,name:r=W(r),sa:()=>{},wa:()=>{}})},I:()=>{R=!1,_a=0},h:(a,r,t)=>{var[e,...n]=((a,r)=>{for(var t=Array(a),e=0;e<a;++e)t[e]=Sa(p[r+4*e>>2],`parameter ${e}`);return t})(a,r),o=e.wa.bind(e),i=n.map(a=>a.Ea.bind(a));a--;var s=Array(a);return r=`methodCaller<(${n.map(a=>a.name)}) => ${e.name}>`,(a=>{var r=Ha.length;return Ha.push(a),r})(X(r,(r,e,n,u)=>{for(var f=0,l=0;l<a;++l)s[l]=i[l](u+f),f+=8;switch(t){case 0:var h=Ea(r).apply(null,s);break;case 2:h=Reflect.construct(Ea(r),s);break;case 3:h=s[0];break;case 1:h=Ea(r)[Ja(e)](...s)}return h=o(r=[],h),r.length&&(p[n>>2]=xa(r)),h}))},b:ka,W:a=>a?(a=Ja(a),xa(globalThis[a])):xa(globalThis),q:(a,r)=>(a=Ea(a),r=Ea(r),xa(a[r])),f:a=>{9<a&&(Ca[a+1]+=1)},$:(a,r)=>(a=Ea(a))instanceof Ea(r),i:Ka,Z:Ka,u:a=>"number"==typeof(a=Ea(a)),x:a=>"string"==typeof(a=Ea(a)),F:()=>xa([]),p:a=>xa(Ja(a)),g:a=>{var r=Ea(a);B(r),ka(a)},z:a=>(a=Ea(a),xa(typeof a)),G:(a,r)=>{if(zr[a]&&(clearTimeout(zr[a].id),delete zr[a]),!r)return 0;var t=setTimeout(()=>{delete zr[a],(a=>{if(!C)try{if(a(),!(R||0<_a))try{s=a=s,Nr(a)}catch(a){Ur(a)}}catch(a){Ur(a)}})(()=>Xr(a,performance.now()))},r);return zr[a]={id:t,qc:r},0},S:(a,r,t,e)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1).getTimezoneOffset();n=new Date(n,6,1).getTimezoneOffset(),p[a>>2]=60*Math.max(o,n),d[r>>2]=Number(o!=n),a=(r=a=>{var r=Math.abs(a);return`UTC${0<=a?"-":"+"}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`})(o),r=r(n),n<o?(Da(a,h,t,17),Da(r,h,e,17)):(Da(a,h,e,17),Da(r,h,t,17))},P:function(a,r,t){return 0<=a&&3>=a?(b[t>>3]=BigInt(Math.round(1e6*(0===a?Date.now():performance.now()))),0):28},Y:(a,r,t)=>{Fr.length=0;for(var e;e=h[r++];){var n=105!=e;t+=(n&=112!=e)&&t%8?4:0,Fr.push(112==e?p[t>>2]:106==e?b[t>>3]:105==e?d[t>>2]:m[t>>3]),t+=n?8:4}return tt[a](...Fr)},C:(a,r)=>A(a?Ba(h,a,r):""),y:()=>performance.now(),T:Hr,H:a=>{var r=h.length;if(2147483648<(a>>>=0))return!1;for(var t=1;4>=t;t*=2){var e=r*(1+.2/t);e=Math.min(e,a+100663296);a:{e=(Math.min(2147483648,65536*Math.ceil(Math.max(a,e)/65536))-Zr.buffer.byteLength+65535)/65536|0;try{Zr.grow(e),E();var n=1;break a}catch(a){}n=void 0}if(n)return!0}return!1},X:()=>{var a=Error().stack.toString().split("\n");return"Error"==a[0]&&a.shift(),_r(a),Lr.tb=Wr(a[3]),Lr.Ob=a,Lr.tb},V:(a,r,t)=>{if(Lr.tb==a)var e=Lr.Ob;else"Error"==(e=Error().stack.toString().split("\n"))[0]&&e.shift(),_r(e);for(var n=3;e[n]&&Wr(e[n])!=a;)++n;for(a=0;a<t&&e[a+n];++a)d[r+4*a>>2]=Wr(e[a+n]);return a},K:(a,r)=>{var t,e=0,n=0;for(t of Jr()){var o=r+e;p[a+n>>2]=o,e+=Da(t,h,o,1/0)+1,n+=4}return 0},L:(a,r)=>{var t=Jr();for(var e of(p[a>>2]=t.length,a=0,t))a+=Ra(e)+1;return p[r>>2]=a,0},B:a=>{s=a,Nr(a)},O:function(a){try{var r=kr(a);if(null===r.Pa)throw new dr(8);r.kb&&(r.kb=null);try{r.qa.close&&r.qa.close(r)}catch(a){throw a}finally{ur[r.Pa]=null}return r.Pa=null,0}catch(a){if(void 0===Mr||"ErrnoError"!==a.name)throw a;return a.Ta}},N:function(a,r,t,e){try{a:{var n=kr(a);a=r;for(var o,i=r=0;i<t;i++){var s=p[a>>2],u=p[a+4>>2];a+=8;var f=n,h=s,c=u,w=o,d=l;if(0>c||0>w)throw new dr(28);if(null===f.Pa)throw new dr(8);if(1==(2097155&f.flags))throw new dr(8);if(16384==(61440&f.node.mode))throw new dr(31);if(!f.qa.read)throw new dr(28);var v=void 0!==w;if(v){if(!f.seekable)throw new dr(70)}else w=f.position;var m=f.qa.read(f,d,h,c,w);v||(f.position+=m);var b=m;if(0>b){var y=-1;break a}if(r+=b,b<u)break;void 0!==o&&(o+=b)}y=r}return p[e>>2]=y,0}catch(a){if(void 0===Mr||"ErrnoError"!==a.name)throw a;return a.Ta}},J:function(a,r,t,e){r=-9007199254740992>r||9007199254740992<r?NaN:Number(r);try{if(isNaN(r))return 61;var n=kr(a);return qr(n,r,t),b[e>>3]=BigInt(n.position),n.kb&&0===r&&0===t&&(n.kb=null),0}catch(a){if(void 0===Mr||"ErrnoError"!==a.name)throw a;return a.Ta}},M:function(a,r,t,e){try{a:{var n=kr(a);a=r;for(var o,i=r=0;i<t;i++){var s=p[a>>2],u=p[a+4>>2];a+=8;var f=n,h=s,c=u,w=o,d=l;if(0>c||0>w)throw new dr(28);if(null===f.Pa)throw new dr(8);if(!(2097155&f.flags))throw new dr(8);if(16384==(61440&f.node.mode))throw new dr(31);if(!f.qa.write)throw new dr(28);f.seekable&&1024&f.flags&&qr(f,0,2);var v=void 0!==w;if(v){if(!f.seekable)throw new dr(70)}else w=f.position;var m=f.qa.write(f,d,h,c,w,void 0);v||(f.position+=m);var b=m;if(0>b){var y=-1;break a}if(r+=b,b<u)break;void 0!==o&&(o+=b)}y=r}return p[e>>2]=y,0}catch(a){if(void 0===Mr||"ErrnoError"!==a.name)throw a;return a.Ta}},R:Nr};return rt=await async function(){function a(a){return a=rt=a.exports,Kr=a.ga,Vr=a.ha,Qr=a.ia,Yr=a.ka,Xr=a.la,Zr=a.ea,at=a.ja,E(),rt}var r={a:et};return e.instantiateWasm?new Promise(t=>{e.instantiateWasm(r,(r,e)=>{t(a(r))})}):(g??=e.locateFile?e.locateFile("arcgis-knowledge-client-core.wasm",o):o+"arcgis-knowledge-client-core.wasm",a((await async function(a){var r=g;if(!i)try{var t=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(t,a)}catch(a){A(`wasm streaming compile failed: ${a}`),A("falling back to ArrayBuffer instantiation")}return async function(a,r){try{var t=await O(a);return await WebAssembly.instantiate(t,r)}catch(a){A(`failed to asynchronously prepare wasm: ${a}`),x(a)}}(r,a)}(r)).instance))}(),function(){function a(){if(e.calledRun=!0,!C){var a,r;if(k=!0,e.noFSInit||hr||(hr=!0,a??=e.stdin,r??=e.stdout,t??=e.stderr,a?Ir("stdin",a):Dr("/dev/tty","/dev/stdin"),r?Ir("stdout",null,r):Dr("/dev/tty","/dev/stdout"),t?Ir("stderr",null,t):Dr("/dev/tty1","/dev/stderr"),Rr("/dev/stdin",0),Rr("/dev/stdout",1),Rr("/dev/stderr",1)),rt.fa(),cr=!1,u?.(e),e.onRuntimeInitialized?.(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var t=e.postRun.shift();P.push(t)}S(P)}}if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)D();S(j),e.setStatus?(e.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>e.setStatus(""),1),a()},1)):a()}(),k?e:new Promise((a,r)=>{u=a,f=r})},a.exports=t,a.exports.default=t),o.exports;var a,r,t}()),s=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8654],{8947:(e,t,i)=>{i.d(t,{L:()=>n});var r=i(60999),s=i(74887),o=i(67076);async function n(e,t,i){const n=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(n&&"unique-value"===n.type&&n.styleOrigin){const a=await(0,r.Ke)(n.populateFromStyle());if((0,s.Te)(i),!1===a.ok){const i=a.error;t?.messages&&t.messages.push(new o.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${i.message}`,{error:i,context:t})),e.clear("renderer",t?.origin)}}}},63396:(e,t,i)=>{i.d(t,{d:()=>T});var r=i(31635),s=i(91429),o=i(60950),n=i(99959);class a extends n.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[o.ym](){return this.trackInfoProvider.trackInfo}}var l=i(37838),u=i(69540),d=i(25482),p=i(93637),y=i(50820),c=i(10873),h=i(46499),f=i(41214);let g=class extends((0,u.OU)(d.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,r.Cg)([(0,s.MZ)({type:[h.A],json:{write:!0}})],g.prototype,"labelingInfo",void 0),(0,r.Cg)([(0,s.MZ)(c.kF)],g.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,s.MZ)({types:f.Hg,json:{write:!0}})],g.prototype,"renderer",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"visible",void 0),g=(0,r.Cg)([(0,s.$K)("esri.layers.support.TrackPartInfo")],g);var m=i(96576),b=i(59868),w=i(10184),v=i(43937);let C=class extends((0,u.OU)(d.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new g({renderer:new m.A({symbol:b.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new g({renderer:new m.A({symbol:b.UK.clone()})}),this.trackLines=new g({renderer:new m.A({symbol:b.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,i){const r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,p.sM)(i,r,t)}};(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],C.prototype,"enabled",void 0),(0,r.Cg)([(0,s.MZ)({type:[y.A],json:{write:!0}})],C.prototype,"fields",void 0),(0,r.Cg)([(0,v.K)("fields")],C.prototype,"writeFields",null),(0,r.Cg)([(0,s.MZ)({type:g,json:{write:!0}})],C.prototype,"latestObservations",void 0),(0,r.Cg)([(0,s.MZ)({type:w.A,json:{write:!0}})],C.prototype,"maxDisplayDuration",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],C.prototype,"maxDisplayObservationsPerTrack",void 0),(0,r.Cg)([(0,s.MZ)(c.M6)],C.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,s.MZ)({type:l.A,json:{name:"popupInfo",write:!0}})],C.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,s.MZ)({type:g,json:{write:!0}})],C.prototype,"previousObservations",void 0),(0,r.Cg)([(0,s.MZ)({type:g,json:{write:!0}})],C.prototype,"trackLines",void 0),(0,r.Cg)([(0,s.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],C.prototype,"timeField",void 0),C=(0,r.Cg)([(0,s.$K)("esri.layers.support.TrackInfo")],C);const T=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,r.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],i.prototype,"trackGraphicOrigin",void 0),(0,r.Cg)([(0,s.MZ)({type:C})],i.prototype,"trackInfo",void 0),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.TrackableLayer")],i),i}},68654:(e,t,i)=>{i.r(t),i.d(t,{default:()=>Ve});var r=i(31635),s=i(37838),o=i(11254),n=i(69540),a=i(7762),l=i(49186),u=i(4718),d=i(53966),p=i(97768),y=i(25728),c=i(93637),h=i(74887),f=i(39516),g=i(91429),m=i(89317),b=i(965),w=i(16930),v=i(55156),C=i(60950),T=i(89808),F=i(99959);const M=Symbol("isFeatureGraphicOrigin");var I;class S extends F.A{get[(I=M,C.ym)](){return this.layer}get[v.e](){return this.layer}get[T.Q](){return this.layer}constructor(e){super(),this[I]=!0,this.type="feature",this.layer=e}get id(){return this.layer.id}}var _=i(4146),E=i(52106),O=i(44208),A=i(92474),Z=i(61893),j=i(83027),q=i(56507),D=i(5443),P=i(39829),x=i(50498),L=i(96520),R=i(58501),G=i(22671),k=i(7695);let N=0,J=class extends((0,A.WV)((0,Z.g)(a.A))){constructor(e){super(e),this._idToClientGeometry=null,this.type="memory"}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}get _workerGeometryType(){const e=this.layer?.geometryType;return e?this._geometryTypeRequiresClientGraphicMapping(e)?"polygon":e:null}applyEdits(e){return this.load().then(()=>this._applyEdits(e))}openPorts(){return this.load().then(()=>this._connection.openPorts())}async queryFeatures(e,t={}){await this.load(t);const i=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);(0,R.q)(e,this.layer.spatialReference,i);const r=G.A.fromJSON(i);if(!this._requiresClientGraphicMapping()||!this._idToClientGeometry)return r;const s=this.layer.objectIdField;for(const e of r.features){const t=e.attributes[s],i=this._idToClientGeometry.get(t);void 0!==i&&(e.geometry=i)}return r.geometryType=this.layer.geometryType,r}async queryFeaturesJSON(e,t={}){if(this._requiresClientGraphicMapping())throw new l.A("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");await this.load(t);const i=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);return(0,R.q)(e,this.layer.spatialReference,i),i}queryFeatureCount(e,t={}){return this.load(t).then(()=>this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t))}queryObjectIds(e,t={}){return this.load(t).then(()=>this._connection.invoke("queryObjectIds",e?e.toJSON():null,t))}queryExtent(e,t={}){return this.load(t).then(()=>this._connection.invoke("queryExtent",e?e.toJSON():null,t)).then(e=>({count:e.count,extent:D.A.fromJSON(e.extent)}))}querySnapping(e,t={}){return this.load(t).then(()=>this._connection.invoke("querySnapping",e,t))}async queryAttributeBins(e,t={}){return await this.load(),this._connection.invoke("queryAttributeBins",e?.toJSON(),t)}async _applyEdits(e){if(!this._connection)throw new l.A("feature-layer-source:edit-failure","Memory source not loaded");const t=this.layer.objectIdField;let i=null;const r=[],s=[];await Promise.all([this._prepareClientMapping(e.addFeatures,null),this._prepareClientMapping(e.updateFeatures,null)]);const o=e=>"objectId"in e&&null!=e.objectId?e.objectId:"attributes"in e&&null!=e.attributes[t]?e.attributes[t]:null;if(e.addFeatures&&(i=this._prepareAddFeatures(e.addFeatures)),e.deleteFeatures)for(const t of e.deleteFeatures){const e=o(t);null!=e&&r.push(e)}const n=e.updateFeatures&&this._idToClientGeometry?new Map:null;if(e.updateFeatures)for(const t of e.updateFeatures)if(s.push(this._serializeFeature(t)),n&&null!=t.geometry){const e=o(t);null!=e&&n.set(e,t)}(0,L.u)(i?i.features:null,s,this.layer.spatialReference);const{fullExtent:a,featureEditResults:u}=await this._connection.invoke("applyEdits",{adds:i?i.features:[],updates:s,deletes:r});return this.fullExtent=a,i&&i.finish(u.uidToObjectId),this._updateIdToClientGeometries(n,u),this._createEditsResult(u)}async _prepareClientMapping(e,t){if("mesh"!==this._layerOrSourceGeometryType||null==e)return;const i=[];for(const{geometry:r}of e)null==r||"mesh"!==r.type||r.hasExtent||r.loaded||i.push(r.load({signal:t}));i.length&&await Promise.all(i)}_updateIdToClientGeometries(e,t){if(this._idToClientGeometry){if(e)for(const i of t.updateResults){if(!i.success)continue;const t=e.get(i.objectId);null!=t&&this._addIdToClientGeometry(t)}for(const e of t.deleteResults)e.success&&this._idToClientGeometry.delete(e.objectId)}}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:""};return{objectId:e.objectId,globalId:e.globalId,error:t?new l.A("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_prepareAddFeatures(e){const t=new Map,i=new Array(e.length);let r=null;for(let s=0;s<e.length;s++){const o=e[s],n=this._serializeFeature(o);r||null==o.geometry||(r=o.geometry.type),i[s]=n,t.set(`${n.uid}`,o)}const s=this;return{features:i,inferredGeometryType:r,finish(e){const i=s.sourceJSON.objectIdField;for(const r in e){const o=e[r],n=t.get(r);n&&(n.attributes||(n.attributes={}),-1===o?delete n.attributes[i]:n.attributes[i]=o,s._addIdToClientGeometry(n))}}}}_addIdToClientGeometry(e){if(!this._idToClientGeometry)return;const t=this.sourceJSON.objectIdField,i=e.attributes?.[t];null!=i&&this._idToClientGeometry.set(i,e.geometry??null)}get _layerOrSourceGeometryType(){return this.layer?.geometryType??this.sourceJSON?.geometryType}_requiresClientGraphicMapping(){return this._geometryTypeRequiresClientGraphicMapping(this._layerOrSourceGeometryType)}_geometryRequiresClientGraphicMapping(e){return this._geometryTypeRequiresClientGraphicMapping(e.type)}_geometryTypeRequiresClientGraphicMapping(e){return"mesh"===e||"multipatch"===e||"extent"===e}_serializeFeature(e){const{attributes:t}=e,i=this._geometryForSerialization(e),r=(N++).toString();return i?{uid:r,geometry:i.toJSON(),attributes:t}:{uid:r,attributes:t}}_geometryForSerialization(e){const{geometry:t}=e;return null==t?null:this._geometryRequiresClientGraphicMapping(t)?t.extent?P.A.fromExtent(t.extent):null:t}async _startWorker(e){this._connection=await(0,j.h)("MemorySourceWorker",{strategy:(0,O.A)("feature-layers-workers")?"dedicated":"local",signal:e,registryTarget:this});const{fields:t,spatialReference:i,objectIdField:r,hasM:s,hasZ:o,timeInfo:n,dateFieldsTimeZone:a}=this.layer,l="defaults"===this.layer.originOf("spatialReference");await this._prepareClientMapping(this.items,e);const u=this._prepareAddFeatures(this.items);this.addHandles(this.on("before-changes",e=>{d.A.getLogger(this).error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead"),e.preventDefault()}));const p={features:u.features,fields:t?.map(e=>e.toJSON()),geometryType:x.Ye.toJSON(this._workerGeometryType),hasM:"mesh"!==this._layerOrSourceGeometryType&&s,hasZ:"mesh"===this._layerOrSourceGeometryType||o,objectIdField:r,spatialReference:l?null:i&&i.toJSON(),timeInfo:n?.toJSON()??null,dateFieldsTimeZone:a},y=await this._connection.invoke("load",p,{signal:e});for(const e of y.warnings)d.A.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});y.featureErrors.length&&d.A.getLogger(this.layer).warn("#load()",`Encountered ${y.featureErrors.length} validation errors while loading features. (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{errors:y.featureErrors});const c=y.layerDefinition;this._geometryTypeRequiresClientGraphicMapping(u.inferredGeometryType)&&(c.geometryType=x.Ye.toJSON(u.inferredGeometryType)),this.sourceJSON=c,this._requiresClientGraphicMapping()&&(this._idToClientGeometry=new Map),u.finish(y.assignedObjectIds)}};(0,r.Cg)([(0,k.u)({Type:E.A,ensureType:(0,q.dp)(E.A)})],J.prototype,"itemType",void 0),(0,r.Cg)([(0,g.MZ)()],J.prototype,"type",void 0),(0,r.Cg)([(0,g.MZ)({constructOnly:!0})],J.prototype,"layer",void 0),(0,r.Cg)([(0,g.MZ)({readOnly:!0})],J.prototype,"_workerGeometryType",null),(0,r.Cg)([(0,g.MZ)()],J.prototype,"sourceJSON",void 0),J=(0,r.Cg)([(0,g.$K)("esri.layers.graphics.sources.MemorySource")],J);var $=i(52136),K=i(18768),V=i(63074),Q=i(69208),W=i(6455),z=i(47685),B=i(87718),H=i(87796),U=i(56658),Y=i(16131),X=i(32756),ee=i(8303),te=i(69622);let ie=class extends te.A{constructor(e){super(e),this.updating=!1,this.status="unknown"}};(0,r.Cg)([(0,g.MZ)()],ie.prototype,"updating",void 0),(0,r.Cg)([(0,g.MZ)()],ie.prototype,"status",void 0),ie=(0,r.Cg)([(0,g.$K)("esri.layers.support.PublishingInfo")],ie);const re=Symbol(),se=e=>{var t;const i=e;let s=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=re}get publishingInfo(){if(this.destroyed)return null;const e=this._get("publishingInfo");if(e)return e;const t=new ie;return this._checkPublishingStatus(t),t}_checkPublishingStatus(e){let t=0;const i=async s=>{let o;e.updating=!0;try{o=await this.fetchPublishingStatus()}catch(e){o="unavailable"}"published"!==o&&"unavailable"!==o||("publishing"===e.status&&this.refresh(),r.remove()),e.status=o,e.updating=!1,r.removed||(t=setTimeout(i,s,s+125))},r={removed:!1,remove(){this.removed=!0,clearTimeout(t)}};this.when().catch(()=>r.remove()),i(250),this.addHandles(r)}};return(0,r.Cg)([(0,g.MZ)({readOnly:!0,clonable:!1})],s.prototype,"publishingInfo",null),s=(0,r.Cg)([(0,g.$K)("esri.layers.mixins.PublishableLayer")],s),s};var oe=i(54310),ne=i(25036),ae=i(82935),le=i(63396),ue=i(60694),de=i(10873),pe=i(15426),ye=i(29005),ce=i(33143),he=i(25482),fe=i(10107),ge=i(64108),me=i(39663);let be=class extends((0,n.OU)(he.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,r.Cg)([(0,fe.MZ)({type:String,json:{write:!0}})],be.prototype,"alias",void 0),(0,r.Cg)([(0,fe.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],be.prototype,"name",void 0),(0,r.Cg)([(0,fe.MZ)({types:me.fg,json:{write:!0}})],be.prototype,"fieldFormat",void 0),be=(0,r.Cg)([(0,ge.$)("esri.layers.support.FieldConfiguration")],be);var we=i(30524),ve=i(41227);function Ce(e,t){const{name:i,alias:r,fieldFormat:s}=t,o=e.fieldsIndex.get(i);if(!o||!r&&!s)return;const n=r||o.alias,a=(0,me.qH)(o)&&s?(0,me.PK)(s,o):null;return new ve.A({fieldName:o.name,label:n,format:a,visible:!1,isEditable:(0,we.R$)(o,e)})}var Te=i(17036),Fe=i(46499),Me=i(39383),Ie=i(22453),Se=i(96184),_e=i(17311),Ee=i(91908),Oe=i(27733),Ae=i(65494),Ze=i(8947),je=i(41214),qe=i(61956),De=i(54218),Pe=i(30291),xe=i(33910),Le=i(78553),Re=i(36005),Ge=i(43937);const ke="FeatureLayer";function Ne(e,t){return new l.A("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}function Je(e){return e&&e instanceof a.A}const $e=(0,Te.p)();function Ke(e,t,i){const r=!!i?.writeLayerSchema;return{enabled:r,ignoreOrigin:r}}let Ve=class extends((0,H.j)((0,U.J)((0,B.F)(se((0,z.w6)((0,W.FJ)((0,V.dM)((0,X.fY)((0,ae.e)((0,le.d)((0,ne.j)((0,oe.J)((0,K.b)((0,Y.q)((0,ee.A)((0,y.P)((0,Q.d)((0,$.p)((0,n.OU)(_.A)))))))))))))))))))){constructor(...e){super(...e),this.attributeTableTemplate=null,this.charts=null,this.copyright=null,this.displayField=null,this.dynamicDataSource=null,this.fields=null,this.fieldsIndex=null,this.formTemplate=null,this.fullExtent=null,this.geometryType=null,this.graphicOrigin=new S(this),this.hasM=void 0,this.hasZ=void 0,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="ArcGISFeatureLayer",this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.resourceInfo=null,this.screenSizePerspectiveEnabled=!0,this.spatialReference=w.A.WGS84,this.subtypeCode=null,this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.templates=null,this.timeInfo=null,this.title=null,this.sublayerTitleMode="item-title",this.type="feature",this.typeIdField=null,this.types=null,this.visible=!0,this._debouncedSaveOperations=(0,h.sg)(async(e,t,r)=>{const{save:s,saveAs:o}=await i.e(3359).then(i.bind(i,33359));switch(e){case 0:return s(this,t);case 1:return o(this,r,t)}})}destroy(){this.source?.destroy()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;if(this.portalItem?.loaded&&this.source)return this.addResolvingPromise(this.createGraphicsSource(t).then(e=>this.initLayerProperties(e))),Promise.resolve(this);const i=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Scene Service"]},e).catch(h.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url&&!this._hasMemorySource())throw new l.A("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return this.initLayerProperties(await this.createGraphicsSource(t))}).then(()=>(0,pe.VA)(this,"load",e));return this.addResolvingPromise(i),Promise.resolve(this)}get _titleCreator(){const e=this._get("_titleCreator");return(0,p.pR)(e),new _e.A({fieldsIndex:this.fieldsIndex,objectIdField:this.objectIdField,fields:this.fields,displayField:this.displayField,effectivePopupTemplate:this.popupTemplate??this.defaultPopupTemplate})}readCapabilities(e,t){return t=t.layerDefinition||t,(0,Ie.S)(t,this.url)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return!(this.loaded&&!this.capabilities?.operations.supportsEditing)&&(this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}readEditingEnabled(e,t){return this._readEditingEnabled(t,!1)}readEditingEnabledFromWebMap(e,t,i){return this._readEditingEnabled(t,!0,i)}writeEditingEnabled(e,t){this._writeEditingEnabled(e,t,!1)}writeEditingEnabledToWebMap(e,t,i,r){this._writeEditingEnabled(e,t,!0,r)}get effectiveEditingEnabled(){return(0,pe.C$)(this)}get featureTitleFields(){return[...this._titleCreator.requiredFields]}set fieldConfigurations(e){if(this._hasMemorySource())return;if(this._override("fieldConfigurations",e),!this.loaded)return;const t=function(e,t){const{popupTemplate:i,fieldsIndex:r}=e;if(!i||!r)return;const s=function(e,t,i){t??=[],i=(0,u.o8)(i)??[];let r=!1;const s=new Map;for(const i of t){const t=e.fieldsIndex.get(i.name);t&&s.set(t.name,i)}for(const t of i){const i=e.fieldsIndex.get(t.fieldName);if(!i)continue;const o=s.get(i.name);t.label=o?.alias||i.alias,t.format=(0,me.qH)(i)&&o?.fieldFormat?(0,me.PK)(o.fieldFormat,i):null,r=!0,s.delete(i.name)}for(const t of s.values()){const s=Ce(e,t);s&&(i.push(s),r=!0)}return r?i:null}(e,t,i.fieldInfos);if(!s)return;const o=i.clone();return o.fieldInfos=s,o}(this,e);t&&this._set("popupTemplate",t)}get fieldConfigurations(){if(!this._hasMemorySource())return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):function(e){const{popupTemplate:t,fieldsIndex:i}=e,r=t?.fieldInfos;if(!r?.length||!i)return;const s=[];for(const e of r){const{fieldName:t,label:r}=e,o=i.get(t);if(!o)continue;const n=r&&r!==o.alias?r:null,a=(0,me.iu)(e,o);(n||a)&&s.push(new be({name:o.name,alias:n,fieldFormat:a}))}return s.length?s:null}(this)||null}readIsTable(e,t){return"Table"===(t=t?.layerDefinition??t).type||!t.geometryType}writeIsTable(e,t,i,r){r?.writeLayerSchema&&(0,c.sM)(i,e?"Table":"Feature Layer",t)}readGlobalIdField(e,t){return(0,pe.jD)(t.layerDefinition||t)}readObjectIdField(e,t){return(0,pe.Zm)(t.layerDefinition||t)}writePopupTemplate(e,t,i,r){e&&(t[i]=e.toJSON({...r,writeFieldFormat:!r?.writeLayerSchema}))}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,we.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,i){t=t.layerDefinition||t;const r=t.drawingInfo?.renderer;if(r){const e=(0,Ae.L)(r,t,i)??void 0;return e||d.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:i}),e}return(0,pe.PD)(t,i)}set source(e){const t=this._get("source");t!==e&&(Je(t)&&this._resetMemorySource(t),Je(e)&&this._initMemorySource(e),this._set("source",e))}castSource(e){return e?Array.isArray(e)||e instanceof a.A?new J({layer:this,items:e}):e:null}readSource(e,t){const i=G.A.fromJSON(t.featureSet);return new J({layer:this,items:i?.features??[]})}readTemplates(e,t){const i=t.editFieldsInfo,r=i?.creatorField,s=i?.editorField;return e=e?.map(e=>ye.A.fromJSON(e)),this._fixTemplates(e,r),this._fixTemplates(e,s),e}readTitle(e,t){const i=t.layerDefinition?.name??t.name,r=t.title||t.layerDefinition?.title;if(i){const e=this.portalItem?.title;if("item-title"===this.sublayerTitleMode)return this.url?(0,ue.yG)(this.url,i):i;let t=i;if(!t&&this.url){const e=(0,ue.qg)(this.url);null!=e&&(t=e.title)}if(!t)return;return"item-title-and-service-name"===this.sublayerTitleMode&&e&&e!==t&&(t=e+" - "+t),(0,ue.cr)(t)}if("item-title"===this.sublayerTitleMode&&r)return r}readTitleFromWebMap(e,t){return t.title||t.layerDefinition?.name}readTypeIdField(e,t){let i=(t=t.layerDefinition||t).typeIdField;if(i&&t.fields){i=i.toLowerCase();const e=t.fields.find(e=>e.name.toLowerCase()===i);e&&(i=e.name)}return i}readTypes(e,t){e=(t=t.layerDefinition||t).types;const i=t.editFieldsInfo,r=i?.creatorField,s=i?.editorField;return e?.map(e=>(e=ce.A.fromJSON(e),this._fixTemplates(e.templates,r),this._fixTemplates(e.templates,s),e))}readVisible(e,t){return null!=t.layerDefinition?.defaultVisibility?!!t.layerDefinition.defaultVisibility:null!=t.visibility?!!t.visibility:void 0}async addAttachment(e,t){const i=await(0,pe.Xl)(this,e,t,ke);return this.lastEditsEventDate=new Date,i}async updateAttachment(e,t,i){const r=await(0,pe.bt)(this,e,t,i,ke);return this.lastEditsEventDate=new Date,r}async applyEdits(e,t){return(0,pe.ct)(this,e,t)}async uploadAssets(e,t){return(0,pe.rn)(this,e,t)}createFieldConfigurations(){return function(e){const{fields:t}=e;if(!t?.length)return;const i=[];for(const e of t){const t=(0,me.qH)(e)?(0,me.$P)(e):null;t&&i.push(new be({name:e.name,fieldFormat:t}))}return i.length?i:null}(this)}createPopupTemplate(e){return(0,Pe.tn)(this,e)}async createGraphicsSource(e){if(this._hasMemorySource()&&this.source)return this.source.load({signal:e});const{default:t}=await(0,h.qr)(Promise.all([i.e(708),i.e(893),i.e(8628),i.e(2593)]).then(i.bind(i,72593)),e);return new t({layer:this,supportedSourceTypes:this.supportedSourceTypes}).load({signal:e})}createQuery(){const e=(0,pe.VZ)(this);e.dynamicDataSource=this.dynamicDataSource;const t=null!=this.subtypeCode?`${this.subtypeField} = ${this.subtypeCode}`:null,i=(0,f.mA)(this.definitionExpression,t);return e.where=i||"1=1",e}async deleteAttachments(e,t){const i=await(0,pe.mm)(this,e,t,ke);return this.lastEditsEventDate=new Date,i}async fetchRecomputedExtents(e){return(0,pe.WP)(this,e,ke)}async getFeatureTitle(e,t){return this._titleCreator.getTitle(this,e,t)}async getFeatureTitles(e,t){return this._titleCreator.getTitles(this,e,t)}getFeatureType(e){return(0,pe.xd)(this.types,this.typeIdField,e)}getFieldAlias(e){const t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}getFieldDomain(e,t){return(0,pe.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryAttachments(e,t){return(0,pe.lV)(this,e,t,ke)}async queryFeatures(e,t){const i=await this.load(),r=await i.source.queryFeatures(qe.A.from(e)??i.createQuery(),t),s=this.graphicOrigin;if(r?.features)for(const e of r.features)e.layer=e.sourceLayer=i,e.origin=s;return r}async queryObjectIds(e,t){return await(0,pe.sg)(this,e,t,ke)}async queryFeatureCount(e,t){return(0,pe.Ye)(this,e,t,ke)}async queryExtent(e,t){return(0,pe.B5)(this,e,t,ke)}async queryRelatedFeatures(e,t){return(0,pe.hM)(this,e,t,ke)}async queryRelatedFeaturesCount(e,t){return(0,pe.S2)(this,e,t,ke)}async queryPivot(e,t){const{source:r,capabilities:s}=await this.load();if(!r.queryPivot||!s?.operations?.supportsQueryPivot)throw new l.A(ke,"Layer source does not support queryPivot capability");const o=await i.e(9958).then(i.bind(i,29958)),n=await r.queryPivot(o.default.from(e),t);if(n?.features)for(const e of n.features)e.layer=e.sourceLayer=this;return n}async queryTopFeatures(e,t){const{source:r,capabilities:s}=await this.load();if(!r.queryTopFeatures||!s?.query?.supportsTopFeaturesQuery)throw new l.A(ke,"Layer source does not support queryTopFeatures capability");const o=await i.e(7561).then(i.bind(i,57561)),n=await r.queryTopFeatures(o.default.from(e),t);if(n?.features)for(const e of n.features)e.layer=e.sourceLayer=this;return n}async queryAttributeBins(e,t){const{source:r,capabilities:s}=await this.load();if(!r.queryAttributeBins)throw new l.A(ke,"Layer source does not support queryAttributeBins capability");(0,pe.ZJ)(e,s,ke);const o=await i.e(4575).then(i.bind(i,14575)),n=await r.queryAttributeBins(o.default.from(e),t);if(n.features)for(const e of n.features)e.layer=e.sourceLayer=this;return n}async queryTopObjectIds(e,t){const{source:r,capabilities:s}=await this.load();if(!r.queryTopObjectIds||!s?.query.supportsTopFeaturesQuery)throw new l.A(ke,"Layer source does not support queryTopObjectIds capability");const o=await i.e(7561).then(i.bind(i,57561));return(await r.queryTopObjectIds(o.default.from(e),t)).filter(De.Et)}async queryTopFeaturesExtent(e,t){const{source:r,capabilities:s}=await this.load();if(!r.queryTopExtents||!s?.query?.supportsTopFeaturesQuery)throw new l.A(ke,"Layer source does not support queryTopExtents capability");const o=await i.e(7561).then(i.bind(i,57561));return r.queryTopExtents(o.default.from(e),t)}async queryTopFeatureCount(e,t){const{source:r,capabilities:s}=await this.load();if(!r.queryTopCount||!s?.query?.supportsTopFeaturesQuery)throw new l.A(ke,"Layer source does not support queryFeatureCount capability");const o=await i.e(7561).then(i.bind(i,57561));return r.queryTopCount(o.default.from(e),t)}read(e,t){const i=e.featureCollection;if((i||"Feature Collection"===e.type)&&(this.resourceInfo=e),i){const{layers:e,showLegend:r}=i;1===e?.length&&(super.read(e[0],t),null!=r&&super.read({showLegend:r},t))}super.read(e,t),t&&"service"===t.origin&&(this.revert(["objectIdField","fields","timeInfo","dateFieldsTimeZone"],"service"),this.spatialReference||this.revert(["spatialReference"],"service"))}write(e,t){t={...t,origin:t?.origin??void 0,writeLayerSchema:t?.writeLayerSchema??this._hasMemorySource()};const{origin:i,layerContainerType:r,messages:s}=t;if(this.dynamicDataSource)return s?.push(Ne(this,"using a dynamic data source cannot be written to web scenes, web maps and feature service items")),null;if(this.isTable){if(("web-map"===i||"web-scene"===i)&&"tables"!==r)return s?.push(Ne(this,`a table source can only be written to tables, not ${r}`)),null;if(this._hasMemorySource())return s?.push(Ne(this,"using an in-memory table source cannot be written to web scenes and web maps")),null}else if(this.loaded&&("web-map"===i||"web-scene"===i)&&"tables"===r)return s?.push(Ne(this,"using a non-table source cannot be written to tables in web maps or web scenes")),null;return super.write(e,t)}clone(){if(this._hasMemorySource())throw new l.A(ke,`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(e){return!!this.loaded&&("memory"===this.source?.type||(0,Ee.D)(this,e))}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}_readEditingEnabled(e,t,i){let r=e.layerDefinition?.capabilities;return r?this._hasEditingCapability(r):(r=e.capabilities,t&&"web-map"===i?.origin&&!this._hasMemorySource()&&r?this._hasEditingCapability(r):void 0)}_hasEditingCapability(e){return e.toLowerCase().split(",").map(e=>e.trim()).includes("editing")}_writeEditingEnabled(e,t,i,r){if(!e){const e=this.capabilities?.operations?.supportsSync?"Query,Sync":"Query";(0,c.sM)("layerDefinition.capabilities",e,t),i&&!r?.writeLayerSchema&&(t.capabilities=e)}}_fetchFirstValidLayerId(e){return(0,o.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{const t=e.data;if(t)return this.applyPreferredHost(t),this.findFirstValidLayerId(t)})}async initLayerProperties(e){return this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),this._verifyFields(),(0,we.yp)(this.renderer,this.fieldsIndex),(0,we.sv)(this.timeInfo,this.fieldsIndex),this._hasMemorySource()&&"mesh"===this.geometryType&&(this.capabilities.query.supportsReturnMesh=!0),(0,Ze.L)(this,{origin:"service"})}async hasDataChanged(){return(0,pe.jp)(this)}async fetchPublishingStatus(){const e=this.source;return e?.fetchPublishingStatus?e.fetchPublishingStatus():"unavailable"}_verifyFields(){const e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||this._hasMemorySource()||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some(e=>"geometry"===e.type)||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_fixTemplates(e,t){e&&e.forEach(e=>{const i=e.prototype?.attributes;i&&t&&delete i[t]})}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new l.A("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url")}else if(!this.url)throw new l.A("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source")}_initMemorySource(e){e.forEach(e=>{e.layer=this,e.sourceLayer=this}),this.addHandles([e.on("after-add",e=>{e.item.layer=this,e.item.sourceLayer=this}),e.on("after-remove",e=>{e.item.layer=null,e.item.sourceLayer=null})],"fl-source")}_resetMemorySource(e){e.forEach(e=>{e.layer=null,e.sourceLayer=null}),this.removeHandles("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}findFirstValidLayerId(e){return Array.isArray(e.layers)&&e.layers.length>0?e.layers[0].id:Array.isArray(e.tables)&&e.tables.length>0?e.tables[0].id:void 0}};(0,r.Cg)([(0,g.MZ)({clonable:!1,readOnly:!0})],Ve.prototype,"_titleCreator",null),(0,r.Cg)([(0,g.MZ)(de.zQ)],Ve.prototype,"attributeTableTemplate",void 0),(0,r.Cg)([(0,Re.w)("service","capabilities")],Ve.prototype,"readCapabilities",null),(0,r.Cg)([(0,g.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],Ve.prototype,"charts",void 0),(0,r.Cg)([(0,g.MZ)({readOnly:!0})],Ve.prototype,"createQueryVersion",null),(0,r.Cg)([(0,g.MZ)({json:{read:{source:"layerDefinition.copyrightText"}}})],Ve.prototype,"copyright",void 0),(0,r.Cg)([(0,g.MZ)({json:{read:{source:"layerDefinition.displayField"}}})],Ve.prototype,"displayField",void 0),(0,r.Cg)([(0,g.MZ)({types:xe.Es,readOnly:!0})],Ve.prototype,"defaultSymbol",void 0),(0,r.Cg)([(0,g.MZ)({type:Oe.L})],Ve.prototype,"dynamicDataSource",void 0),(0,r.Cg)([(0,g.MZ)({type:Boolean})],Ve.prototype,"editingEnabled",null),(0,r.Cg)([(0,Re.w)(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],Ve.prototype,"readEditingEnabled",null),(0,r.Cg)([(0,Re.w)("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],Ve.prototype,"readEditingEnabledFromWebMap",null),(0,r.Cg)([(0,Ge.K)(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],Ve.prototype,"writeEditingEnabled",null),(0,r.Cg)([(0,Ge.K)("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],Ve.prototype,"writeEditingEnabledToWebMap",null),(0,r.Cg)([(0,g.MZ)({readOnly:!0})],Ve.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,g.MZ)({clonable:!1,readOnly:!0})],Ve.prototype,"featureTitleFields",null),(0,r.Cg)([(0,g.MZ)({type:[be],json:{name:"layerDefinition.fieldConfigurations",write:{overridePolicy(e,t,i){return{enabled:!i?.writeLayerSchema,ignoreOrigin:1===this.originIdOf(t)}}}}})],Ve.prototype,"fieldConfigurations",null),(0,r.Cg)([(0,g.MZ)({...$e.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:Ke}}}}})],Ve.prototype,"fields",void 0),(0,r.Cg)([(0,g.MZ)($e.fieldsIndex)],Ve.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,g.MZ)({type:b.A,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],Ve.prototype,"formTemplate",void 0),(0,r.Cg)([(0,g.MZ)({json:{read:{source:"layerDefinition.extent"}}})],Ve.prototype,"fullExtent",void 0),(0,r.Cg)([(0,g.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:Ke,writer(e,t,i){const r=e?pe.iX.toJSON(e):null;r&&(0,c.sM)(i,r,t)}}}},read:{source:"layerDefinition.geometryType",reader:pe.iX.read}}})],Ve.prototype,"geometryType",void 0),(0,r.Cg)([(0,g.MZ)({readOnly:!0,clonable:!1})],Ve.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,g.MZ)({json:{read:{source:"layerDefinition.hasM"}}})],Ve.prototype,"hasM",void 0),(0,r.Cg)([(0,g.MZ)({json:{read:{source:"layerDefinition.hasZ"}}})],Ve.prototype,"hasZ",void 0),(0,r.Cg)([(0,g.MZ)(de.id)],Ve.prototype,"id",void 0),(0,r.Cg)([(0,g.MZ)({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],Ve.prototype,"infoFor3D",void 0),(0,r.Cg)([(0,g.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],Ve.prototype,"isTable",void 0),(0,r.Cg)([(0,Re.w)("service","isTable",["type","geometryType"]),(0,Re.w)("isTable",["layerDefinition.type","layerDefinition.geometryType"])],Ve.prototype,"readIsTable",null),(0,r.Cg)([(0,Ge.K)("web-map","isTable")],Ve.prototype,"writeIsTable",null),(0,r.Cg)([(0,g.MZ)(de.kF)],Ve.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,g.MZ)({type:[Fe.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:Me.w,write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:Me.w,write:{layerContainerTypes:m.K}}})],Ve.prototype,"labelingInfo",void 0),(0,r.Cg)([(0,g.MZ)((()=>{const e=(0,u.o8)(de.Ih);return e.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",writer(e,t,i){(0,c.sM)(i,(0,Le.p)(e),t)}}},e})())],Ve.prototype,"opacity",void 0),(0,r.Cg)([(0,g.MZ)(de.fV)],Ve.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,g.MZ)({type:["show","hide"],json:(()=>{const e=(0,u.o8)(de.C1.json);return e.origins["portal-item"]={read:!1,write:!1},e})()})],Ve.prototype,"listMode",void 0),(0,r.Cg)([(0,Re.w)("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],Ve.prototype,"readGlobalIdField",null),(0,r.Cg)([(0,g.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:Ke}}}}})],Ve.prototype,"objectIdField",void 0),(0,r.Cg)([(0,Re.w)("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],Ve.prototype,"readObjectIdField",null),(0,r.Cg)([(0,g.MZ)({type:["ArcGISFeatureLayer"],json:{write:{target:"layerType",ignoreOrigin:!0,layerContainerTypes:m.K}}})],Ve.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,g.MZ)($e.outFields)],Ve.prototype,"outFields",void 0),(0,r.Cg)([(0,g.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Ve.prototype,"path",void 0),(0,r.Cg)([(0,g.MZ)(de.M6)],Ve.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,g.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],Ve.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,Ge.K)("popupTemplate")],Ve.prototype,"writePopupTemplate",null),(0,r.Cg)([(0,g.MZ)({readOnly:!0})],Ve.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,g.MZ)({types:je.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:je.XJ,name:"layerDefinition.drawingInfo.renderer",write:{layerContainerTypes:m.K,overridePolicy:(e,t,i)=>({ignoreOrigin:i?.writeLayerSchema,layerContainerTypes:m.K})}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy:(e,t,i)=>({ignoreOrigin:i?.writeLayerSchema,layerContainerTypes:m.K})}}})],Ve.prototype,"renderer",null),(0,r.Cg)([(0,Re.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,Re.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],Ve.prototype,"readRenderer",null),(0,r.Cg)([(0,g.MZ)()],Ve.prototype,"resourceInfo",void 0),(0,r.Cg)([(0,g.MZ)((()=>{const e=(0,u.o8)(de.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],Ve.prototype,"screenSizePerspectiveEnabled",void 0),(0,r.Cg)([(0,g.MZ)({clonable:!1})],Ve.prototype,"source",null),(0,r.Cg)([(0,g.wg)("source")],Ve.prototype,"castSource",null),(0,r.Cg)([(0,Re.w)("portal-item","source",["featureSet"]),(0,Re.w)("web-map","source",["featureSet"])],Ve.prototype,"readSource",null),(0,r.Cg)([(0,g.MZ)({json:{read:{source:"layerDefinition.extent.spatialReference"}}})],Ve.prototype,"spatialReference",void 0),(0,r.Cg)([(0,g.MZ)({type:Number})],Ve.prototype,"subtypeCode",void 0),(0,r.Cg)([(0,g.MZ)({type:[ye.A]})],Ve.prototype,"templates",void 0),(0,r.Cg)([(0,Re.w)("templates",["editFieldsInfo","creatorField","editorField","templates"])],Ve.prototype,"readTemplates",null),(0,r.Cg)([(0,g.MZ)({type:Se.A})],Ve.prototype,"timeInfo",void 0),(0,r.Cg)([(0,g.MZ)()],Ve.prototype,"title",void 0),(0,r.Cg)([(0,Re.w)("service","title",["name"]),(0,Re.w)("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],Ve.prototype,"readTitle",null),(0,r.Cg)([(0,Re.w)("web-map","title",["layerDefinition.name","title"])],Ve.prototype,"readTitleFromWebMap",null),(0,r.Cg)([(0,g.MZ)({type:String})],Ve.prototype,"sublayerTitleMode",void 0),(0,r.Cg)([(0,g.MZ)({json:{read:!1}})],Ve.prototype,"type",void 0),(0,r.Cg)([(0,g.MZ)({type:String})],Ve.prototype,"typeIdField",void 0),(0,r.Cg)([(0,Re.w)("service","typeIdField"),(0,Re.w)("typeIdField",["layerDefinition.typeIdField"])],Ve.prototype,"readTypeIdField",null),(0,r.Cg)([(0,g.MZ)({type:[ce.A]})],Ve.prototype,"types",void 0),(0,r.Cg)([(0,Re.w)("service","types",["types"]),(0,Re.w)("types",["layerDefinition.types"])],Ve.prototype,"readTypes",null),(0,r.Cg)([(0,g.MZ)({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility",layerContainerTypes:m.K}}}}})],Ve.prototype,"visible",void 0),(0,r.Cg)([(0,Re.w)("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],Ve.prototype,"readVisible",null),Ve=(0,r.Cg)([(0,g.$K)("esri.layers.FeatureLayer")],Ve)},83027:(e,t,i)=>{i.d(t,{h:()=>r});const r=i(29953).ho},96520:(e,t,i)=>{i.d(t,{u:()=>n});var r=i(86211),s=i(21325);function o(e,t,i){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=i)}function n(e,t,i){if(!e&&!t||!i)return;const s=(0,r.G9)(i);a(e,i,s),a(t,i,s)}function a(e,t,i){if(e)for(const r of e)l(r.geometry,t,i)}function l(e,t,i){if(!e?.spatialReference||(0,s.aI)(e.spatialReference,t))return;const n=(0,r.G9)(e.spatialReference)/i;if(1!==n)if("x"in e)null!=e.z&&(e.z*=n);else if("rings"in e)o(e,e.rings,n);else if("paths"in e)o(e,e.paths,n);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=n)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3169,5913,8125],{5913:(e,t,n)=>{n.d(t,{e:()=>s,l:()=>a});var r=n(54945),o=n(78125);function s(e){return(0,o.toPoint)((0,r.g7)((0,o.fromGeometry)(e)),(0,o.getSpatialReference)(e))}const i=(0,r.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:s,executeMany:function(e){const t=e.map(o.fromGeometry),n=(0,o.getSpatialReference)(e);return(0,r.zo)(t).map(e=>(0,o.toPoint)(e,n))},supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},15546:(e,t,n)=>{n.d(t,{a:()=>i,c:()=>s});var r=n(55537),o=n(83661);function s(e,t){if(!e.isEmpty())switch(e.getGeometryType()){case r.G.enumPolygon:return a(e);case r.G.enumPolyline:return m(e.getImpl());case r.G.enumLine:case r.G.enumBezier:case r.G.enumEllipticArc:return function(e){const t=e.calculateLength2D();return 0===t?e.getStartXY():e.calculateWeightedCentroid2D().mul(1/t)}(e);case r.G.enumMultiPoint:return function(e){const t=new o.K(0),n=new o.K(0),r=e.getImpl(),s=r.getAttributeStreamRef(0),i=r.getPointCount(),a=new o.P;for(let e=0;e<i;e++)s.queryPoint2D(2*e,a),t.add(a.x),n.add(a.y);const u=new o.P;return u.setCoords(t.getResult(),n.getResult()),u.divThis(i)}(e);case r.G.enumEnvelope:return e.getCenterXY();case r.G.enumPoint:return e.getXY();default:return o.P.construct(Number.NaN,Number.NaN)}return o.P.construct(Number.NaN,Number.NaN)}function i(e,t){return a(e,t)}function a(e,t=-1){const n=new o.K(0),r=new o.K(0),s=e.getImpl();let i;const a=s.hasNonLinearSegments();let m;const g=s.getXY(0);if(-1===t){if(m=s.calculateArea2D(),0===m)return l(e);a&&(i=s.querySegmentIterator());for(let e=0,t=s.getPathCount();e<t;e++)u(g,s,e,n,r),a&&c(g,i,n,r)}else{if(m=s.calculateRingArea2D(t),0===m)return l(e,t);a&&(i=s.querySegmentIterator(),i.resetToPath(t)),u(g,s,t,n,r),a&&c(g,i,n,r)}const h=new o.P,f=new o.P;return h.setCoords(n.getResult(),r.getResult()),f.assign(h.mul(1/m).add(g)),f}function u(e,t,n,r,s){const i=t.getPathStart(n),a=t.getPathEnd(n);if(a-i<3)return;const u=t.getAttributeStreamRef(0),c=u.readPoint2D(2*i),l=u.readPoint2D(2*(i+1));l.subThis(c);const m=new o.K(0),g=t.hasNonLinearSegments(),h=1/3,f=new o.P;for(let e=i+2;e<a;e++){u.queryPoint2D(2*e,f),f.subThis(c);const t=.5*f.crossProduct(l);g&&m.add(t);const n=h*t;r.add((l.x+f.x)*n),s.add((l.y+f.y)*n),l.setCoordsPoint2D(f)}const P=g?m.getResult():t.calculateRingArea2D(n),d=c.sub(e).mul(P);r.add(d.x),s.add(d.y)}function c(e,t,n,o){let s;for(t.nextPath()||(0,r.d)("centroid");null!==(s=t.nextCurve());){const t=s.calculateWeightedAreaCentroid2D(e);n.add(t.x),o.add(t.y)}}function l(e,t=-1){return m(e.getImpl(),t)}function m(e,t=-1){const n=-1===t?e.calculateLength2D():e.calculatePathLength2D(t);if(0===n)return function(e,t=-1){if(-1!==t)return e.getXY(e.getPathStart(t));const n=new o.K(0),r=new o.K(0);for(let t=0;t<e.getPathCount();++t){const o=e.getXY(e.getPathStart(t));n.add(o.x),r.add(o.y)}return o.P.construct(n.getResult(),r.getResult()).mul(1/e.getPathCount())}(e,t);const r=new o.K(0),s=new o.K(0),i=e.querySegmentIterator();for(-1!==t&&i.resetToPath(t);i.nextPath();){const n=i.getPathIndex(),o=e.getXY(e.getPathStart(n));for(;i.hasNextSegment();){const e=i.nextSegment(),t=e.calculateLength2D();if(0===t)continue;const n=e.calculateWeightedCentroid2D().sub(o.mul(t));r.add(n.x),s.add(n.y)}const a=o.mul(e.calculatePathLength2D(n));if(r.add(a.x),s.add(a.y),-1!==t)break}const a=new o.P;return a.setCoords(r.getResult(),s.getResult()),a.mul(1/n)}},36633:(e,t,n)=>{n.d(t,{O:()=>g});var r=n(55537),o=n(79187),s=n(83661),i=n(39117);function a(){return u(new s.P,-1,Number.NaN)}function u(e,t,n){return{m_coordinate:e.clone(),m_vertexIndex:t,m_geometryIndex:0,m_distance:n,m_bRightSide:!1,isEmpty:c}}function c(){return Number.isNaN(this.m_distance)}function l(e,t,n=-1,a=-1){if(e.isEmpty())return 3;const u=e.getGeometryType();if((0,r.f)(u))return function(e,t,n,o){if(n>=0||o>=0)return(0,r.a)("");if(e.isDegenerate(0))return e.getStartXY().equals(t)?2:3;if(!e.isCurve()){const n=s.P.orientationRobust(t,e.getStartXY(),e.getEndXY());return n<0?1:n>0?0:2}const i=e.getClosestCoordinate(t,!1),a=e.getTangent(i),u=e.getCoord2D(i),c=s.P.orientationRobust(t,u,u.add(a));return c<0?1:c>0?0:2}(e,t,n,a);if(u===r.G.enumPolygon)return function(e,t,n,s){(n>=0||s>=0)&&(0,r.a)("");const a=new o.Envelope2D;e.queryEnvelope(a);const u=(0,i.H)(e,t,0);return 0===u?0:1===u?1:2}(e,t,n,a);if(u===r.G.enumPolyline)return function(e,t,n,o){(n<0&&o>=0||n>=0&&o<0)&&(0,r.a)("");const i=e.querySegmentIterator();if(n<0){let e=Number.MAX_VALUE,r=0;for(;i.nextPath();)for(;i.hasNextSegment();){const a=i.nextSegment(),u=a.getClosestCoordinate(t,!1),c=a.getCoord2D(u),l=s.P.sqrDistance(c,t);l<e?(r=1,n=i.getStartPointIndex(),o=i.getPathIndex(),e=l):l===e&&r++}if(0===r)return 3;if(1===r)return i.resetToVertex(n,o),l(i.nextSegment(),t)}const a=function(e,t,n,r){const o={i1:-1,i2:-1,bRight1:!1,bRight2:!1};if(o.i1=function(e,t,n){for(e.resetToVertex(t,n);e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();for(e.resetToVertex(t,n);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,n,r),-1!==o.i1){t.resetToVertex(o.i1,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r),a=s.P.sqrDistance(i,e);{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),o.bRight1=t.crossProduct(r)<0}if(o.i2=function(e,t){for(e.resetToVertex(t,-1),e.nextSegment();e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,o.i1),-1!==o.i2){t.resetToVertex(o.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if(s.P.sqrDistance(i,e)>a)o.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),o.bRight2=t.crossProduct(r)<0}}if(-1===o.i2&&(o.i2=function(e,t){for(e.resetToVertex(t,-1);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,o.i1),-1!==o.i2)){t.resetToVertex(o.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if(s.P.sqrDistance(i,e)>a)o.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),o.bRight2=t.crossProduct(r)<0;const s=o.i1;o.i1=o.i2,o.i2=s;const a=o.bRight1;o.bRight1=o.bRight2,o.bRight2=a}}}return o}(t,i,n,o);if(-1!==a.i1&&-1===a.i2)return a.bRight1?1:0;if(-1!==a.i1&&-1!==a.i2){if(a.bRight1===a.bRight2)return a.bRight1?1:0;{i.resetToVertex(a.i1,-1);const e=i.nextSegment().getTangent(1);i.resetToVertex(a.i2,-1);const t=i.nextSegment().getTangent(0);return e.crossProduct(t)>=0?1:0}}return i.resetToVertex(n,o),l(i.nextSegment(),t)}(e,t,n,a);if(u===r.G.enumEnvelope){const n=new o.Envelope2D;return e.queryEnvelope(n),n.contains(t)?n.containsExclusive(t)?1:2:0}return 3}var m=n(95213);class g{getOperatorType(){return 10500}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}getNearestCoordinate(e,t,n,o){if(t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(e,t);case r.G.enumMultiPoint:return this.multiVertexGetNearestVertex(e,t);case r.G.enumPolyline:case r.G.enumPolygon:return this.multiPathGetNearestCoordinate(e,t,n,o);default:(0,r.t)("")}}getNearestVertex(e,t){if(t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(e,t);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertex(e,t);default:(0,r.t)("")}}getNearestVertices(e,t,n,o){if(0===o&&(0,r.a)(""),t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return[];switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertices(e,t,n,o);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertices(e,t,n,o);default:(0,r.t)("")}}multiPathGetNearestCoordinate(e,t,n,a){if(e.getGeometryType()===r.G.enumPolygon&&n){const n=new o.Envelope2D;e.queryEnvelope(n);const r=(0,m.a)(null,n,!1);let s;if(s=(0,i.H)(e,t,a?0:r),0!==s){const e=u(t,-1,0);return a&&(e.m_bRightSide=!0),e}}const c=e.querySegmentIterator(),g=new s.P;let h=-1,f=-1,P=Number.MAX_VALUE,d=0;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment(),n=e.getClosestCoordinate(t,!1),r=e.getCoord2D(n),o=s.P.sqrDistance(r,t);o<P?(d=1,g.assign(r),h=c.getStartPointIndex(),f=c.getPathIndex(),P=o):o===P&&d++}-1===h&&(0,r.a)("");const y=u(g,h,Math.sqrt(P));if(a)if(e.getGeometryType()!==r.G.enumPolygon){let n=!1;if(d>1){const r=l(e,t,h,f);n=0!==r&&3!==r}else c.resetToVertex(h,f),n=0!==l(c.nextSegment(),t);y.m_bRightSide=n}else n||0!==(0,i.H)(e,t,0)&&(y.m_bRightSide=!0);return y}pointGetNearestVertex(e,t){const n=e.getXY();return u(n,0,s.P.distance(n,t))}multiVertexGetNearestVertex(e,t){const n=e.getAttributeStreamRef(0),r=e.getPointCount();let o=-1;const i=new s.P;let a=Number.MAX_VALUE;const c=new s.P;for(let e=0;e<r;e++){n.queryPoint2D(2*e,c);const r=s.P.sqrDistance(c,t);r<a&&(i.assign(c),o=e,a=r)}return u(i,o,Math.sqrt(a))}pointGetNearestVertices(e,t,n,r){const o=[];if(0!==r){const r=n*n,i=e.getXY(),a=s.P.sqrDistance(i,t);a<=r&&o.push(u(i,0,Math.sqrt(a)))}return o}multiVertexGetNearestVertices(e,t,n,r){const o=[];if(0!==r){const i=e.getAttributeStreamRef(0),a=e.getPointCount();o.length=r+1;const c=n*n;for(let e=0;e<a;e++){const n=i.read(2*e),r=i.read(2*e+1),a=t.x-n,l=t.y-r,m=a*a+l*l;m<=c&&o.push(u(s.P.construct(n,r),e,Math.sqrt(m)))}o.sort((e,t)=>e.m_distance-t.m_distance)}return o.slice(0,r)}}},54945:(e,t,n)=>{n.d(t,{fz:()=>d,g7:()=>f,zo:()=>P});var r=n(76061),o=n(55537),s=n(95213),i=n(88885),a=n(79187),u=n(83661),c=n(39117),l=n(15546),m=n(36633);class g extends r.G{progress_(){}tock(){return!0}getRank(){return 1}constructor(e,t){super(),this.m_index=-1,this.m_progressCounter=0,this.m_progressTracker=t,this.m_inputGeoms=e}next(){const e=this.m_inputGeoms.next();return e?((0,o.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.labelPoint(e)):null}getGeometryID(){return this.m_index}labelPoint(e){if(null===e&&(0,o.a)("null pointer is not allowed"),e.getGeometryType()===o.G.enumPoint)return e;if(e.isEmpty())return new s.P({vd:e.getDescription()});switch(e.getGeometryType()){case o.G.enumPolygon:return this.labelPointPolygon(e);case o.G.enumPolyline:return this.labelPointPolyline(e);case o.G.enumMultiPoint:return this.labelPointMultiPoint(e);case o.G.enumEnvelope:return this.labelPointEnvelope(e);default:(0,o.a)("geometry is not supported")}}labelPointPolygon(e){const t=new a.Envelope2D;e.queryEnvelope(t);const n=(0,s.c)(null,t,!0).total();let r=null,g=e;if(e.hasNonLinearSegments()){const t=new i.a({copy:e}),s=(0,c.aJ)(t,.25*n,n);(0,o.g)(s!==e),r=s,g=r}let h=0,f=0;for(let e=0,t=g.getPathCount();e<t;++e){const t=Math.abs(g.calculateRingArea2D(e));t>f&&(f=t,h=e)}const P=new u.P;if(Math.abs(f)<=2*n*n?P.setNAN():P.assign((0,l.a)(g,h)),Number.isNaN(P.x)){const e=new a.Envelope2D;return g.queryPathEnvelope(h,e),new s.P({pt:e.getCenter()})}if(g.getPointCount()<4)return new s.P({x:P.x,y:P.y});const d=u.P.getNAN(),y=[d.clone(),d.clone(),d.clone(),d.clone()],x=[Number.NaN,Number.NaN,Number.NaN,Number.NaN],p=[Number.NaN,Number.NaN,Number.NaN,Number.NaN];let N=!1,C=(new m.O).getNearestCoordinate(g,P,!0,!1);if(0===C.m_distance&&(N=!0,y[0]=P,C=(new m.O).getNearestCoordinate(g,P,!1,!1),C.m_distance>.25*t.minDimension()*1.66666666))return new s.P({x:P.x,y:P.y});x[0]=C.m_distance,p[0]=0;const G=new u.P;let w=!1,b=.25,S=-1;const D=new a.Envelope2D;g.queryPathEnvelope(h,D);do{let e=Number.NaN;if(y[1]=this.calculateParacentroid_(g,(0,u.q)(D.xmin,D.xmax,b),n),y[1].isNAN()||(C=(new m.O).getNearestCoordinate(g,y[1],!1,!1),e=C.m_distance),e>n&&1===(0,c.H)(g,y[1],n))w=!0,x[1]=e,p[1]=u.P.sqrDistance(y[1],P);else if(e>S&&(S=e,G.setCoordsPoint2D(y[1])),b-=.01,b<.1){if(!(S>=0))break;w=!0,x[1]=S,y[1]=G,p[1]=u.P.sqrDistance(y[1],P)}}while(!w);w=!1,b=.5,S=-1;let V=.01,v=1;do{let e=Number.NaN;if(y[2]=this.calculateParacentroid_(g,(0,u.q)(D.xmin,D.xmax,b),n),y[2].isNAN()||(C=(new m.O).getNearestCoordinate(g,y[2],!1,!1),e=C.m_distance),e>n&&1===(0,c.H)(g,y[2],n))w=!0,x[2]=e,p[2]=u.P.sqrDistance(y[2],P);else if(e>S&&(S=e,G.setCoordsPoint2D(y[2])),b=.5+V*v,V+=.01,v*=-1,b<.3||b>.7){if(!(S>=0))break;w=!0,x[2]=S,y[2]=G,p[2]=u.P.sqrDistance(y[2],P)}}while(!w);w=!1,b=.75,S=-1;do{let e=Number.NaN;if(y[3]=this.calculateParacentroid_(g,(0,u.q)(D.xmin,D.xmax,b),n),y[3].isNAN()||(C=(new m.O).getNearestCoordinate(g,y[3],!1,!1),e=C.m_distance),e>n&&1===(0,c.H)(g,y[3],n))w=!0,x[3]=e,p[3]=u.P.sqrDistance(y[3],P);else if(e>S&&(S=e,G.setCoordsPoint2D(y[3])),b+=.01,b>.9){if(!(S>=0))break;w=!0,x[3]=S,y[3]=G,p[3]=u.P.sqrDistance(y[3],P)}}while(!w);const E=[0,1,2,3],R=N?0:1;for(let e=R;e<4;e++)for(let e=R;e<3;e++){const t=p[e],n=p[e+1];if((0,u.r)(t,n)>0){const r=E[e];E[e]=E[e+1],E[e+1]=r,p[e]=n,p[e+1]=t}}let _=R,A=0,M=0;for(let e=R;e<4;e++){switch(e){case 0:M=2*x[E[e]];break;case 1:M=1.66666666*x[E[e]];break;case 2:M=1.33333333*x[E[e]];break;case 3:M=x[E[e]]}M>A&&(A=M,_=E[e])}return(0,o.g)(!y[_].isNAN()),new s.P({x:y[_].x,y:y[_].y})}labelPointPolyline(e){const t=new u.P;if(e.getPointCount()>2*e.getPathCount()){let n=-1,r=-Number.MAX_VALUE;for(let t=0,o=e.getPathCount();t<o;t++)if(e.getPathSize(t)>2){const o=e.calculatePathLength2D(t);o>r&&(r=o,n=t)}const o=e.getPathStart(n),s=e.getPathEnd(n),i=Math.trunc((o+s)/2);t.assign(e.getXY(i))}else{let n=-Number.MAX_VALUE;const r=e.querySegmentIterator();for(;r.nextPath();)if(r.hasNextSegment()){const e=r.nextSegment(),o=e.calculateLength2D();o>n&&(n=o,t.assign(e.getCoord2D(e.lengthToT(.5*o))))}}return new s.P({x:t.x,y:t.y})}labelPointMultiPoint(e){const t=new a.Envelope2D;e.queryEnvelope(t);const n=t.getCenter(),r=(new m.O).getNearestCoordinate(e,n,!1,!1).m_coordinate;return new s.P({x:r.x,y:r.y})}labelPointEnvelope(e){const t=e.getCenterXY();return new s.P({x:t.x,y:t.y})}calculateParacentroid_(e,t,n){const r=new a.Envelope2D;e.queryEnvelope(r);const s=new u.P(t,0);let c=Number.MAX_VALUE,l=Number.MAX_VALUE,m=!1,g=!1;const h=new i.L;h.setStartXYCoords(s.x,r.ymin-1),h.setEndXYCoords(s.x,r.ymax+1);const f=new a.Envelope2D,P=new u.P,d=new u.P,y=(0,u.m)(u.P,2),x=e.querySegmentIterator();for(;x.nextPath();)for(;x.hasNextSegment();){const e=x.nextSegment();if(e.queryEnvelope(f),(0,o.g)(e.isMonotoneQuickAndDirty()),P.setCoordsPoint2D(h.getStartXY()),d.setCoordsPoint2D(h.getEndXY()),0===f.clipLine(P,d))continue;if(1!==h.intersect(e,y,null,null,n))continue;const t=y[0].y;c>l?t<c&&(c=t,m=!0):t<l&&(l=t,g=!0)}return m&&g?s.y=(c+l)/2:s.setNAN(),s}}const h=new class{getOperatorType(){return 10203}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,t){return new g(e,t)}execute(e,t){return new g(null,t).labelPoint(e)}};function f(e){return h.execute(e,null)}function P(e){const t=h.executeMany(new r.S(e),null);return Array.from(t)}function d(){return h.supportsCurves()}},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>o});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class o extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>p,fromGeometry:()=>x,fromMultipoint:()=>N,fromPoint:()=>C,fromPolygon:()=>G,fromPolyline:()=>w,fromSpatialReference:()=>b,getSpatialReference:()=>y,toExtent:()=>D,toGeometry:()=>S,toMultipoint:()=>V,toPoint:()=>v,toPolygon:()=>E,toPolyline:()=>R});var r=n(83661),o=(n(79187),n(55537)),s=n(95213),i=n(88885),a=n(39117),u=n(5443),c=n(48526),l=n(86738),m=n(39829),g=n(82799),h=(n(90293),n(83299));const f="_gxVersion",P=2,d=1;function y(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function x(e){switch(e.type){case"point":return C(e);case"multipoint":return N(e);case"polyline":return w(e);case"polygon":return G(e);case"extent":return p(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function p(e){if(!e.getCacheValue(f)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(P,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(d,0,e.zmin,e.zmax),e.setCacheValue(f,t)}return e.getCacheValue(f)}function N(e){if(!e.getCacheValue(f)){const t=new i.M,n=new s.P,r=e.points,o=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,s=r.length;e<s;e++){const s=r[e];n.setXYCoords(s[0],s[1]),a&&n.setZ(s[2]??0),o&&n.setM(s[u]??NaN),t.add(n)}e.setCacheValue(f,t)}return e.getCacheValue(f)}function C(e){if(!e.getCacheValue(f)){const t=new s.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(f,t)}return e.getCacheValue(f)}function G(e){if(!e.getCacheValue(f)){const{curveRings:t,hasM:n,hasZ:r,rings:o}=e,s=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:o});e.setCacheValue(f,s)}return e.getCacheValue(f)}function w(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,s=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(f,s)}return e.getCacheValue(f)}function b(e){if(e.wkid)return(0,a.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,a.b)(t):null}function S(e,t){if(e)switch(e.getGeometryType()){case o.G.enumPoint:return v(e,t);case o.G.enumEnvelope:return D(e,t);case o.G.enumMultiPoint:return V(e,t);case o.G.enumPolyline:return R(e,t);case o.G.enumPolygon:return E(e,t)}return null}function D(e,t){if(e.isEmpty())return null;const n=new u.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(P,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(d,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(f,e),n}function V(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),o=n.hasZ(),i=[],a=new s.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];o&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const u=new c.A({hasM:r,hasZ:o,points:i,spatialReference:t});return u.setCacheValue(f,e),u}function v(e,t){if(e instanceof r.P)return new l.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new l.A({x:e.getX(),y:e.getY(),spatialReference:t}),o=e.getDescription();return o.hasM()&&(n.m=e.getM()),o.hasZ()&&(n.z=e.getZ()),n.setCacheValue(f,e),n}function E(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(f,e),n}function R(e,t){if(e.isEmpty())return null;const n=g.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(f,e),n}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8125],{78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>M,fromGeometry:()=>x,fromMultipoint:()=>V,fromPoint:()=>w,fromPolygon:()=>P,fromPolyline:()=>G,fromSpatialReference:()=>Z,getSpatialReference:()=>C,toExtent:()=>R,toGeometry:()=>v,toMultipoint:()=>d,toPoint:()=>E,toPolygon:()=>k,toPolyline:()=>A});var r=n(83661),a=(n(79187),n(55537)),s=n(95213),o=n(88885),u=n(39117),i=n(5443),c=n(48526),l=n(86738),m=n(39829),f=n(82799),h=(n(90293),n(83299));const p="_gxVersion",g=2,y=1;function C(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function x(e){switch(e.type){case"point":return w(e);case"multipoint":return V(e);case"polyline":return G(e);case"polygon":return P(e);case"extent":return M(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function M(e){if(!e.getCacheValue(p)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(g,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(y,0,e.zmin,e.zmax),e.setCacheValue(p,t)}return e.getCacheValue(p)}function V(e){if(!e.getCacheValue(p)){const t=new o.M,n=new s.P,r=e.points,a=e.hasM,u=e.hasZ,i=u?3:2;for(let e=0,s=r.length;e<s;e++){const s=r[e];n.setXYCoords(s[0],s[1]),u&&n.setZ(s[2]??0),a&&n.setM(s[i]??NaN),t.add(n)}e.setCacheValue(p,t)}return e.getCacheValue(p)}function w(e){if(!e.getCacheValue(p)){const t=new s.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(p,t)}return e.getCacheValue(p)}function P(e){if(!e.getCacheValue(p)){const{curveRings:t,hasM:n,hasZ:r,rings:a}=e,s=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:a});e.setCacheValue(p,s)}return e.getCacheValue(p)}function G(e){if(!e.getCacheValue(p)){const{curvePaths:t,hasM:n,hasZ:r,paths:a}=e,s=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:a});e.setCacheValue(p,s)}return e.getCacheValue(p)}function Z(e){if(e.wkid)return(0,u.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,u.b)(t):null}function v(e,t){if(e)switch(e.getGeometryType()){case a.G.enumPoint:return E(e,t);case a.G.enumEnvelope:return R(e,t);case a.G.enumMultiPoint:return d(e,t);case a.G.enumPolyline:return A(e,t);case a.G.enumPolygon:return k(e,t)}return null}function R(e,t){if(e.isEmpty())return null;const n=new i.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(g,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(y,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(p,e),n}function d(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),a=n.hasZ(),o=[],u=new s.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,u);const n=[u.getX(),u.getY()];a&&n.push(u.getZ()),r&&n.push(u.getM()),o.push(n)}const i=new c.A({hasM:r,hasZ:a,points:o,spatialReference:t});return i.setCacheValue(p,e),i}function E(e,t){if(e instanceof r.P)return new l.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new l.A({x:e.getX(),y:e.getY(),spatialReference:t}),a=e.getDescription();return a.hasM()&&(n.m=e.getM()),a.hasZ()&&(n.z=e.getZ()),n.setCacheValue(p,e),n}function k(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}function A(e,t){if(e.isEmpty())return null;const n=f.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4971],{18768:(e,t,i)=>{i.d(t,{b:()=>a});var r=i(31635),s=i(53966),n=i(91429),o=i(60694);const a=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.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,o.Jf)(e,s.A.getLogger(this)))}};return(0,r.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,r.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],i),i}},20615:(e,t,i)=>{i.d(t,{I:()=>o});var r=i(2272),s=i(80893),n=i(61956);function o(e,t,i,o){return(0,s.gW)((0,r.Dl)(e),n.A.from(t),i,o)}},27647:(e,t,i)=>{i.d(t,{Q:()=>n});var r=i(92722);function s(e,t){return e?t?4:3:t?3:2}function n(e){if(null==e)return null;if(!e?.lengths.length)return null;const{lengths:t,coords:i,stride:s,hasZ:n,hasM:l}=e,u=new r.A([],[],n,!1),p=u.coords,c=[],m=n?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];let d=0;for(const e of t){const t=o(m,i,d,e,n,l);t&&c.push(t),d+=e*s}if(c.sort((e,t)=>{let i=e[2]-t[2];return 0===i&&n&&(i=e[4]-t[4]),i}),c.length){let e=6*c[0][2];p[0]=c[0][0]/e,p[1]=c[0][1]/e,n&&(e=6*c[0][4],p[2]=0!==e?c[0][3]/e:0),(p[0]<m[0]||p[0]>m[1]||p[1]<m[2]||p[1]>m[3]||n&&(p[2]<m[4]||p[2]>m[5]))&&(p.length=0)}if(!p.length){const r=e.lengths[0]?a(i,0,t[0],n,l):null;if(!r)return null;p[0]=r[0],p[1]=r[1],n&&(p[2]=r[2]??0)}return u}function o(e,t,i,r,n,o){const a=s(n,o);let l=i,u=i+a,p=0,c=0,m=0,d=0,h=0;for(let i=0,s=r-1;i<s;i++,l+=a,u+=a){const i=t[l],r=t[l+1],s=t[l+2],o=t[u],a=t[u+1],y=t[u+2];let g=i*a-o*r;d+=g,p+=(i+o)*g,c+=(r+a)*g,n&&(g=i*y-o*s,m+=(s+y)*g,h+=g),i<e[0]&&(e[0]=i),i>e[1]&&(e[1]=i),r<e[2]&&(e[2]=r),r>e[3]&&(e[3]=r),n&&(s<e[4]&&(e[4]=s),s>e[5]&&(e[5]=s))}if(d>0&&(d*=-1),h>0&&(h*=-1),!d)return null;const y=[p,c,.5*d];return n&&(y[3]=m,y[4]=.5*h),y}function a(e,t,i,r,n){const o=s(r,n);let a=t,m=t+o,d=0,h=0,y=0,g=0;for(let t=0,s=i-1;t<s;t++,a+=o,m+=o){const t=e[a],i=e[a+1],s=e[a+2],n=e[m],o=e[m+1],f=e[m+2],w=r?u(t,i,s,n,o,f):l(t,i,n,o);if(w)if(d+=w,r){const e=c(t,i,s,n,o,f);h+=w*e[0],y+=w*e[1],g+=w*e[2]}else{const e=p(t,i,n,o);h+=w*e[0],y+=w*e[1]}}return d>0?r?[h/d,y/d,g/d]:[h/d,y/d]:i>0?r?[e[t],e[t+1],e[t+2]]:[e[t],e[t+1]]:null}function l(e,t,i,r){const s=i-e,n=r-t;return Math.sqrt(s*s+n*n)}function u(e,t,i,r,s,n){const o=r-e,a=s-t,l=n-i;return Math.sqrt(o*o+a*a+l*l)}function p(e,t,i,r){return[e+.5*(i-e),t+.5*(r-t)]}function c(e,t,i,r,s,n){return[e+.5*(r-e),t+.5*(s-t),i+.5*(n-i)]}},33446:(e,t,i)=>{i.d(t,{C:()=>o,m:()=>n});var r=i(49186),s=i(74887);async function n(e,t,i){let n;try{n=await createImageBitmap(e)}catch(e){throw new r.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,s.Te)(i),n}async function o(e,t,i,n,o){let a;try{a=await createImageBitmap(e)}catch(e){throw new r.A("request:server",`Unable to load tile ${t}/${i}/${n}`,{error:e,level:t,row:i,col:n})}return(0,s.Te)(o),a}},43334:(e,t,i)=>{i.d(t,{N3:()=>a,Om:()=>o});var r=i(69397),s=i(27647),n=i(92722);class o{constructor(e=null,t={},i,r,s=0){this.geometry=e,this.attributes=t,this.centroid=i,this.objectId=r,this.displayId=s}static fromJSON(e){const t=e.geometry?n.A.fromJSON(e.geometry):null,i=e.centroid?n.A.fromJSON(e.centroid):null,r=e.objectId;return new o(t,e.attributes,i,r)}weakClone(){const e=new o(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e}clone(){const e=this.geometry?.clone(),t=new o(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t}ensureCentroid(e){return this.centroid??=(0,s.Q)(this.geometry),this.centroid}get usedMemory(){return 128+(0,r.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function a(e){return!!e.geometry?.coords?.length}},56551:(e,t,i)=>{i.d(t,{H:()=>c});var r=i(31635),s=i(91429),n=i(69540),o=i(25482),a=i(56507),l=i(94359),u=i(93223);let p=class extends((0,n.OU)(o.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,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],p.prototype,"name",void 0),(0,r.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"})],p.prototype,"method",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],p.prototype,"value",void 0),(0,r.Cg)([(0,s.MZ)({type:[a.jz],json:{write:{isRequired:!0}}})],p.prototype,"bandIds",void 0),(0,r.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})}}}}})],p.prototype,"renderer",void 0),p=(0,r.Cg)([(0,s.$K)("esri.renderers.support.RasterPresetRenderer")],p);const c=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.activePresetRendererName=null,this.presetRenderers=null}};return(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"layerDefinition.activePresetRendererName",write:{allowNull:!0}}})],i.prototype,"activePresetRendererName",void 0),(0,r.Cg)([(0,s.MZ)({type:[p],json:{name:"layerDefinition.presetRenderers",write:!0}})],i.prototype,"presetRenderers",void 0),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.RasterPresetRendererMixin")],i),i}},58501:(e,t,i)=>{i.d(t,{q:()=>s});var r=i(62815);function s(e,t,i){if(!i?.features||!i.hasZ)return;const s=(0,r.N)(i.geometryType,t,e.outSpatialReference);if(s)for(const e of i.features)s(e.geometry)}},58512:(e,t,i)=>{i.d(t,{A:()=>r});class r{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new r;return e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},69397:(e,t,i)=>{i.d(t,{$B:()=>s,Qf:()=>u,Qh:()=>a,RS:()=>n,ez:()=>m,lM:()=>o,qK:()=>c});var r=i(34275);function s(e){return 32+e.length}const n=16;function o(e){if(!e)return 0;let t=c;for(const i in e)e.hasOwnProperty(i)&&(t+=l(e[i],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return u(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return p(e,8);let i=m;for(let r=0;r<t;r++)i+=l(e[r]);return i}(e);let t=c;for(const i in e)e.hasOwnProperty(i)&&(t+=l(e[i]));return t}function l(e,t=!0){switch(typeof e){case"object":return t?a(e):c;case"string":return s(e);case"number":return n;case"boolean":return 4;default:return 8}}function u(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+d:Array.isArray(t)?p(t,n):0:0),0)}function p(e,t){return m+e.length*t}const c=32,m=16,d=145},74379:(e,t,i)=>{i.d(t,{V:()=>r,t:()=>s});const r=Symbol("isImageryGraphicOrigin");function s(e){return!!e&&r in e}},78286:(e,t,i)=>{i.d(t,{V:()=>o});var r=i(2272),s=i(80893),n=i(61956);async function o(e,t,i,o){const a=(0,r.Dl)(e),l=await(0,s.Pk)(a,n.A.from(t),i,o);return l.objectIds??function(e){if(e)return function(e){return!Array.isArray(e[0])}(e)?e:e.map(e=>JSON.stringify(e))}(l.uniqueIds)??[]}},82371:(e,t,i)=>{i.d(t,{E9:()=>h,Tw:()=>m,X6:()=>d});var r=i(11254),s=i(5443),n=i(86738),o=i(16930),a=i(87186),l=i(20223),u=i(2272),p=i(22671);async function c(e,t,i){const c=(0,u.Dl)(e),{rasterFunction:m,sourceJSON:d}=t||{},h=m?JSON.stringify(m.rasterFunctionDefinition||m):null,y=(0,u.lF)({...c.query,renderingRule:h,f:"json"}),g=(0,u.jV)(y,i);e=c.path;const f=d||await(0,r.A)(e,g).then(e=>e.data),w=f.hasRasterAttributeTable?(0,r.A)(`${e}/rasterAttributeTable`,g):null,v=f.hasColormap?(0,r.A)(`${e}/colormap`,g):null,R=f.hasHistograms?(0,r.A)(`${e}/histograms`,g):null,C=f.currentVersion>=10.3?(0,r.A)(`${e}/keyProperties`,g):null,b=f.hasMultidimensions?(0,r.A)(`${e}/multidimensionalInfo`,g):null,S=await Promise.allSettled([w,v,R,C,b]);let I=null;if(f.minValues&&f.minValues.length===f.bandCount){I=[];for(let e=0;e<f.minValues.length;e++)I.push({min:f.minValues[e],max:f.maxValues[e],avg:f.meanValues[e],stddev:f.stdvValues[e]})}const F=s.A.fromJSON(f.extent),M=Math.ceil(F.width/f.pixelSizeX-.1),x=Math.ceil(F.height/f.pixelSizeY-.1),A=o.A.fromJSON(f.spatialReference||f.extent.spatialReference),D="fulfilled"===S[0].status?S[0].value?.data:null,T=D?.features?.length?p.A.fromJSON(D):null,N="fulfilled"===S[1].status?S[1].value?.data.colormap:null,P=N?.length?N:null,Z="fulfilled"===S[2].status?S[2].value?.data.histograms:null,O=Z?.[0]?.counts?.length?Z:null,j="fulfilled"===S[3].status?S[3].value?.data??{}:{},_="fulfilled"===S[4].status?S[4].value?.data.multidimensionalInfo:null,V=_?.variables?.length?_:null;V&&V.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")})});const{defaultVariable:q,serviceDataType:E}=f;q&&q!==j.DefaultVariable&&(j.DefaultVariable=q),E?.includes("esriImageServiceDataTypeVector")&&!E.includes(j.DataType)&&(j.DataType=E.replace("esriImageServiceDataType",""));let J=f.noDataValue;f.noDataValues?.length&&f.noDataValues.some(e=>e!==J)&&(J=f.noDataValues);const G=f.transposeInfo?new l.A({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new n.A({x:f.extent.xmin,y:f.extent.ymax,spatialReference:A}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(M,x))/Math.LN2-8)),transposeInfo:f.transposeInfo}):void 0;return new a.A({width:M,height:x,bandCount:f.bandCount,extent:s.A.fromJSON(f.extent),spatialReference:A,pixelSize:new n.A({x:f.pixelSizeX,y:f.pixelSizeY,spatialReference:A}),pixelType:f.pixelType.toLowerCase(),statistics:I,attributeTable:T,colormap:P,histograms:O,keyProperties:j,noDataValue:J,multidimensionalInfo:V,storageInfo:G})}function m(e,t,i){return c(e,{sourceJSON:t},i)}function d(e,t,i){return c(e,{rasterFunction:t},i)}function h(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},84123:(e,t,i)=>{i.r(t),i.d(t,{default:()=>li});var r,s=i(31635),n=i(37838),o=i(69540),a=i(49186),l=i(53966),u=i(25728),p=i(74887),c=i(91429),m=i(89808),d=i(99959),h=i(74379);class y extends d.A{get[(r=h.V,m.Q)](){return this.layer}constructor(e){super(),this[r]=!0,this.type="imagery",this.layer=e}get id(){return this.layer.id}}var g=i(4146),f=i(52106),w=i(11254),v=i(4718),R=i(36708),C=i(84952),b=i(56507),S=i(5443),I=i(39829),F=i(16930),M=i(21325),x=i(10873),A=i(45617),D=i(25482),T=i(22796),N=i(16019);const P={StretchFunction:{arguments:{ComputeGamma:{isDataset:!1,isPublic:!1,name:"ComputeGamma",type:"RasterFunctionVariable",value:!1},DRA:{isDataset:!1,isPublic:!1,name:"DRA",type:"RasterFunctionVariable",value:!1},EstimateStatsHistogram:{isDataset:!1,isPublic:!1,name:"EstimateStatsHistogram",type:"RasterFunctionVariable",value:!1},Gamma:{displayName:"Gamma",isDataset:!1,isPublic:!1,name:"Gamma",type:"RasterFunctionVariable"},Histograms:{isDataset:!1,isPublic:!1,name:"Histograms",type:"RasterFunctionVariable"},Max:{isDataset:!1,isPublic:!1,name:"Max",type:"RasterFunctionVariable",value:255},MaxPercent:{isDataset:!1,isPublic:!1,name:"MaxPercent",type:"RasterFunctionVariable",value:.5},Min:{isDataset:!1,isPublic:!1,name:"Min",type:"RasterFunctionVariable",value:0},MinPercent:{isDataset:!1,isPublic:!1,name:"MinPercent",type:"RasterFunctionVariable",value:.25},NumberOfStandardDeviations:{isDataset:!1,isPublic:!1,name:"NumberOfStandardDeviation",type:"RasterFunctionVariable",value:2},Raster:{isDataset:!0,isPublic:!1,name:"Raster",type:"RasterFunctionVariable"},SigmoidStrengthLevel:{isDataset:!1,isPublic:!1,name:"SigmoidStrengthLevel",type:"RasterFunctionVariable",value:2},Statistics:{isDataset:!1,isPublic:!1,name:"Statistics",type:"RasterFunctionVariable"},StretchType:{isDataset:!1,isPublic:!1,name:"StretchType",type:"RasterFunctionVariable",value:0},type:"StretchFunctionArguments",UseGamma:{isDataset:!1,isPublic:!1,name:"UseGamma",type:"RasterFunctionVariable",value:!1}},description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",function:{description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",name:"Stretch",pixelType:"UNKNOWN",type:"StretchFunction"},functionType:0,name:"Stretch",thumbnail:""},RemapFunction:{name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table.",function:{type:"RemapFunction",pixelType:"UNKNOWN",name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},UseTable:{name:"UseTable",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},InputRanges:{name:"InputRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Input Ranges"},OutputValues:{name:"OutputValues",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Output Values"},NoDataRanges:{name:"NoDataRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"NoData Ranges"},Table:{name:"Table",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputField:{name:"InputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},OutputField:{name:"OutputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputMaxField:{name:"InputMaxField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},RemapTableType:{name:"RemapTableType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},AllowUnmatched:{name:"AllowUnmatched",isPublic:!1,isDataset:!1,value:!0,type:"RasterFunctionVariable"},type:"RemapFunctionArguments"},functionType:0,thumbnail:""},ColormapFunction:{name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp.",function:{type:"ColormapFunction",pixelType:"UNKNOWN",name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},ColormapName:{name:"ColormapName",isPublic:!1,isDataset:!1,value:"Gray",type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},type:"ColormapFunctionArguments"},functionType:0,thumbnail:""},ShadedReliefFunction:{name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image.",function:{type:"ShadedReliefFunction",pixelType:"UNKNOWN",name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"ShadedReliefFunctionArguments"},functionType:0,thumbnail:""},HillshadeFunction:{name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image",function:{type:"HillshadeFunction",pixelType:"UNKNOWN",name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image"},arguments:{DEM:{name:"DEM",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"HillshadeFunctionArguments"},functionType:0,thumbnail:""},ResampleFunction:{name:"Resample",description:"Changes the cell size of a raster.",function:{type:"ResampleFunction",pixelType:"UNKNOWN",name:"Resample",description:"Changes the cell size of a raster."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ResamplingType:{name:"ResamplingType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},InputCellSize:{name:"InputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},OutputCellSize:{name:"OutputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},type:"ResampleFunctionArguments"},functionType:0,thumbnail:""}};var Z=i(67369),O=i(70274),j=i(48940);const _=new Set(["u1","u2","u4","u8","s8","u16","s16"]),V={simple_scalar:"Simple Scalar",wind_barb:"Wind Barb",single_arrow:"Single Arrow",beaufort_kn:"Beaufort Wind (Knots)",beaufort_m:"Beaufort Wind (MetersPerSecond)",ocean_current_m:"Ocean Current (MetersPerSecond)",ocean_current_kn:"Ocean Current (Knots)"},q=new Set(["raster-stretch","unique-value","class-breaks","raster-shaded-relief","vector-field","raster-colormap"]);function E(e){return q.has(e.type)}function J(e,t){if(!e||!t)return(0,v.o8)(e||t);const i=(0,v.o8)(e);if(i.functionDefinition&&t.rasterFunctionDefinition){const e=t.rasterFunctionDefinition;(e.thumbnail||e.thumbnailEx)&&(e.thumbnail=e.thumbnailEx=void 0),G(i.functionDefinition.arguments,t),i.rasterFunctionDefinition=i.functionDefinition.toJSON()}else"none"!==t.functionName?.toLowerCase()&&(L(i.functionArguments).Raster=t);return i}function G(e,t){for(const i in e)"raster"===i.toLowerCase()&&("RasterFunctionVariable"===e[i].type?(e[i]=t.rasterFunctionDefinition,e[i].type="RasterFunctionTemplate"):"RasterFunctionTemplate"===e[i].type&&G(e[i].arguments,t))}function z(e){const t=(0,v.o8)(P[e.functionName+"Function"]),i=e.functionArguments;for(const e in i)"raster"===e.toLowerCase()?(t.arguments[e]=z(i[e]),t.arguments[e].type="RasterFunctionTemplate"):"colormap"===e.toLowerCase()?(t.arguments[e].value=Q(i[e]),t.arguments.ColorSchemeType.value=0):t.arguments[e].value=i[e];return t}function L(e){const t=e?.Raster??e?.raster;return t&&"esri.layers.support.RasterFunction"===t.declaredClass?L(t.functionArguments):e}const $={none:0,standardDeviation:3,histogramEqualization:4,minMax:5,percentClip:6,sigmoid:9};function U(e,t){const i=_.has(t)?(0,N.hP)(t):null;return i&&e.push([Math.floor(i[0]-1),0,0,0],[Math.ceil(i[1]+1),0,0,0]),e}function B(e){if(null==e)return;const{fields:t}=e,i=t?.find(e=>e?.name&&"value"===e.name.toLowerCase());return i?.name}function K(e){return"polygon-3d"===e.symbol?.type?e.symbol.symbolLayers?.find(e=>"fill"===e.type)?.material?.color:e.symbol?.color}function Q(e){const t=[],i=[];return e.forEach(e=>{t.push(e[0]),i.push((0,Z.vL)([...e.slice(1),255]))}),{type:"RasterColormap",values:t,colors:i}}var k=i(85675),H=i(13868),W=i(43937);let Y=class extends D.o{constructor(){super(...arguments),this.layer=null,this.requestRawData=!1,this.compression=void 0,this.lercVersion=2}get adjustAspectRatio(){return this.layer.adjustAspectRatio}writeAdjustAspectRatio(e,t,i){this.layer.version<10.3||(t[i]=e)}get bandIds(){return this.layer.bandIds}get compressionQuality(){return this.layer.compressionQuality}writeCompressionQuality(e,t,i){this.format&&this.format.toLowerCase().includes("jpg")&&null!=e&&(t[i]=e)}get compressionTolerance(){return this.layer.compressionTolerance}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}get format(){return this.requestRawData||"vector-field"===this.layer.renderer?.type?"lerc":this.layer.format}get interpolation(){return this.layer.interpolation}get noData(){return this.layer.noData}get noDataInterpretation(){return this.layer.noDataInterpretation}get pixelType(){const{layer:e}=this;return e.pixelType!==e.serviceRasterInfo.pixelType?e.pixelType:void 0}writeLercVersion(e,t,i){"lerc"===this.format&&this.layer.version>=10.5&&(t[i]=e)}get version(){const e=this.layer;return e.commitProperty("bandIds"),e.commitProperty("format"),e.commitProperty("compressionQuality"),e.commitProperty("compressionTolerance"),e.commitProperty("interpolation"),e.commitProperty("noData"),e.commitProperty("noDataInterpretation"),e.commitProperty("mosaicRule"),e.commitProperty("rasterFunction"),e.commitProperty("adjustAspectRatio"),e.commitProperty("pixelFilter"),e.commitProperty("pixelType"),e.commitProperty("definitionExpression"),e.commitProperty("multidimensionalSubset"),(this._get("version")||0)+1}set version(e){this._set("version",e)}get mosaicRule(){const e=this.layer;let t=e.mosaicRule;const i=e.definitionExpression;return t?i&&i!==t.where&&(t=t.clone(),t.where=i):i&&(t=new k.A({where:i})),t}get rasterFunction(){const e=this.layer;let{rasterFunction:t}=e;const i=e.pixelFilter,r=!e.format||e.format.includes("jpg")||e.format.includes("png");this.requestRawData||(t=this._addResampleRasterFunction(t));const s=e.multidimensionalSubset?.areaOfInterest;return s&&(t=function(e,t){return J(new T.A({functionName:"Clip",functionArguments:{ClippingGeometry:t.toJSON(),ClippingType:1}}),e)}(t,s)),this.requestRawData||!r||i||"vector-field"===e.renderer?.type||(t=this.combineRendererWithRenderingRule(t)),t}combineRendererWithRenderingRule(e){const t=this.layer,{rasterInfo:i,renderer:r}=t;return e=e||t.rasterFunction,r&&E(r)?J(function(e,t){switch(t=t||{},e.type){case"raster-stretch":return function(e,t){const i=t.convertToRFT,r=new T.A;r.functionName="Stretch";const s=$[O.u.toJSON(e.stretchType)],n="u8",o=e.customStatistics?.map(e=>[e.min,e.max,e.avg??0,e.stddev??1]),a={StretchType:s,Statistics:o,DRA:e.dynamicRangeAdjustment,UseGamma:e.useGamma,Gamma:e.gamma,ComputeGamma:e.computeGamma};if(null!=e.outputMin&&(a.Min=e.outputMin),null!=e.outputMax&&(a.Max=e.outputMax),s===$.standardDeviation?(a.NumberOfStandardDeviations=e.numberOfStandardDeviations,r.outputPixelType=n):s===$.percentClip?(a.MinPercent=e.minPercent,a.MaxPercent=e.maxPercent,r.outputPixelType=n):s===$.minMax?r.outputPixelType=n:s===$.sigmoid&&(a.SigmoidStrengthLevel=e.sigmoidStrengthLevel),r.functionArguments=a,r.variableName="Raster",e.colorRamp){const s=e.colorRamp,n=new T.A;if(i)n.functionArguments={ColorRamp:(0,Z.hf)(s)};else{const i=(0,Z.hs)(s,!0);if(i)n.functionArguments={colorRampName:i};else if(!t.convertColorRampToColormap||"algorithmic"!==s.type&&"multipart"!==s.type){const t=e.colorRamp.toJSON();"algorithmic"===t.type?t.algorithm=t.algorithm||"esriCIELabAlgorithm":"multipart"===t.type&&t.colorRamps?.length&&t.colorRamps.forEach(e=>e.algorithm=e.algorithm||"esriCIELabAlgorithm"),n.functionArguments={colorRamp:t}}else n.functionArguments={Colormap:(0,Z.R8)(s)}}return n.variableName="Raster",n.functionName="Colormap",n.functionArguments.Raster=r,i?new T.A({rasterFunctionDefinition:z(n)}):n}return i?new T.A({rasterFunctionDefinition:z(r)}):r}(e,t);case"class-breaks":return function(e,t){const i=[],r=[],s=[],n=[],o=1e-4,{pixelType:a,rasterAttributeTable:l}=t,u=null==l?null:l.features,p=B(l);if(p&&u&&Array.isArray(u)&&e.classBreakInfos){e.classBreakInfos.forEach((t,i)=>{const r=t.symbol?.color;let s;r?.a&&null!=t.minValue&&null!=t.maxValue&&u.forEach(o=>{null!=t.minValue&&null!=t.maxValue&&(s=o.attributes[e.field],(s>=t.minValue&&s<t.maxValue||i===e.classBreakInfos.length-1&&s>=t.minValue)&&n.push([o.attributes[p],r.r,r.g,r.b]))})});const i=a?U(n,a):n,r=new T.A;return r.functionName="Colormap",r.functionArguments={},r.functionArguments.Colormap=i,r.variableName="Raster",t.convertToRFT?new T.A({rasterFunctionDefinition:z(r)}):r}e.classBreakInfos.forEach((e,t)=>{if(null==e.minValue||null==e.maxValue)return;const a=e.symbol&&e.symbol.color;a?.a?(0===t?i.push(e.minValue,e.maxValue+o):i.push(e.minValue+o,e.maxValue+o),r.push(t),n.push([t,a.r,a.g,a.b])):s.push(e.minValue,e.maxValue)});const c=a?U(n,a):n,m=new T.A;m.functionName="Remap",m.functionArguments={InputRanges:i,OutputValues:r,NoDataRanges:s},m.variableName="Raster";const d=new T.A;return d.functionName="Colormap",d.functionArguments={Colormap:c,Raster:m},t.convertToRFT?new T.A({rasterFunctionDefinition:z(d)}):d}(e,t);case"unique-value":return function(e,t){const i=[],{pixelType:r,rasterAttributeTable:s}=t,n=null==s?null:s.features,o=B(s),a=e.defaultSymbol?.color?.toRgb(),l=e.uniqueValueInfos;if(l)if(n){if(o){const t=new Map;l.forEach(e=>{const i=e.value,r=K(e);null!=i&&r?.a&&t.set(String(i),r.toRgb())});const r=e.field;r&&n.forEach(({attributes:e})=>{const s=String(e[r]),n=e[o],l=t.get(s);l?i.push([n,...l]):a&&i.push([n,...a])})}}else for(let e=0;e<l.length;e++){const t=l[e],r=K(t),s=+t.value;if(r?.a){if(isNaN(s))return null;i.push([s,r.r,r.g,r.b])}}const u=r?U(i,r):i,p=new T.A;return p.functionName="Colormap",p.functionArguments={},p.functionArguments.Colormap=u,p.variableName="Raster",t.convertToRFT?new T.A({rasterFunctionDefinition:z(p)}):p}(e,t);case"raster-colormap":return function(e,t){const i=e.extractColormap();if(!i||0===i.length)return null;const{pixelType:r}=t,s=r?U(i,r):i,n=new T.A;return n.functionName="Colormap",n.functionArguments={},n.functionArguments.Colormap=s,t.convertToRFT?new T.A({rasterFunctionDefinition:z(n)}):n}(e,t);case"vector-field":return function(e,t){const i=new T.A;i.functionName="VectorFieldRenderer";const{dataType:r,bandNames:s}=t,n="vector-uv"===r;let o,a;if(s&&2===s.length){const e=s.map(e=>e.toLowerCase());o=e.indexOf("magnitude"),a=e.indexOf("direction")}-1!==o&&null!==o||(o=0,a=1);const l="arithmetic"===e.rotationType?1:2,u="flow-from"===e.flowRepresentation?0:1,p=e.visualVariables?e.visualVariables.find(e=>"Magnitude"===e.field):new j.A,c={magnitudeBandID:o,directionBandID:a,isUVComponents:n,referenceSystem:l,massFlowAngleRepresentation:u,symbolTileSize:50,symbolTileSizeUnits:100,calculationMethod:"Vector Average",symbologyName:V[e.style.toLowerCase().replace("-","_")],minimumMagnitude:p.minDataValue,maximumMagnitude:p.maxDataValue,minimumSymbolSize:p.minSize,maximumSymbolSize:p.maxSize};i.functionArguments=c;const m=z(i);return t.convertToRFT?T.A.fromJSON({rasterFunctionDefinition:m}):i}(e,t);case"raster-shaded-relief":return function(e,t){const i=t.convertToRFT;if("elevation"!==t.dataType&&("generic"!==t.dataType||1!==t.bandCount||"s16"!==t.pixelType&&"s32"!==t.pixelType&&"f32"!==t.pixelType&&"f64"!==t.pixelType))return new T.A;const r=new T.A;r.functionName="Hillshade";const s="traditional"===e.hillshadeType?0:1,n="none"===e.scalingType?1:3,o={HillshadeType:s,SlopeType:n,ZFactor:e.zFactor};return 0===s&&(o.Azimuth=e.azimuth,o.Altitude=e.altitude),3===n&&(o.PSPower=e.pixelSizePower,o.PSZFactor=e.pixelSizeFactor),r.functionArguments=o,r.variableName="Raster",e.colorRamp&&(r.functionName="ShadedRelief",i?o.ColorRamp=(0,Z.hf)(e.colorRamp):o.Colormap=(0,Z.R8)(e.colorRamp)),i?new T.A({rasterFunctionDefinition:z(r)}):r}(e,t);case"flow":throw new Error("Unsupported rendering rule.")}}(r,{rasterAttributeTable:i.attributeTable,pixelType:i.pixelType,dataType:i.dataType,bandNames:i.bandInfos.map(({name:e})=>e),convertColorRampToColormap:t.version<10.6,convertToRFT:!!e?.rasterFunctionDefinition,bandCount:i.bandCount}),e):e}_addResampleRasterFunction(e){if("vector-field"!==this.layer.renderer?.type||"Resample"===e?.functionName)return e;const t="esriImageServiceDataTypeVector-UV"===this.layer.serviceDataType?7:10,i=this.layer.serviceRasterInfo.pixelSize;let r=new T.A({functionName:"Resample",functionArguments:{ResamplingType:t,InputCellSize:i}});return r=e?.rasterFunctionDefinition?new T.A({rasterFunctionDefinition:z(r)}):r,J(r,e)}};(0,s.Cg)([(0,c.MZ)()],Y.prototype,"layer",void 0),(0,s.Cg)([(0,c.MZ)()],Y.prototype,"requestRawData",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Y.prototype,"adjustAspectRatio",null),(0,s.Cg)([(0,W.K)("adjustAspectRatio")],Y.prototype,"writeAdjustAspectRatio",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Y.prototype,"bandIds",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Y.prototype,"compression",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Y.prototype,"compressionQuality",null),(0,s.Cg)([(0,W.K)("compressionQuality")],Y.prototype,"writeCompressionQuality",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Y.prototype,"compressionTolerance",null),(0,s.Cg)([(0,W.K)("compressionTolerance")],Y.prototype,"writeCompressionTolerance",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Y.prototype,"format",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:{reader:H.SZ.read},write:{writer:H.SZ.write}}})],Y.prototype,"interpolation",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Y.prototype,"noData",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:{reader:H.hm.read},write:{writer:H.hm.write}}})],Y.prototype,"noDataInterpretation",null),(0,s.Cg)([(0,c.MZ)({type:H.e8.apiValues,json:{read:H.e8.read,write:H.e8.write}})],Y.prototype,"pixelType",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Y.prototype,"lercVersion",void 0),(0,s.Cg)([(0,W.K)("lercVersion")],Y.prototype,"writeLercVersion",null),(0,s.Cg)([(0,c.MZ)({type:Number})],Y.prototype,"version",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Y.prototype,"mosaicRule",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0,name:"renderingRule"}})],Y.prototype,"rasterFunction",null),Y=(0,s.Cg)([(0,c.$K)("esri.layers.support.ExportImageServiceParameters")],Y);var X=i(20437),ee=i(95466),te=i(33446),ie=i(43577),re=i(14140),se=i(74797),ne=i(87186),oe=i(77301),ae=i(77649),le=i(28435),ue=i(14636),pe=i(12711),ce=i(85676),me=i(94359),de=i(65864),he=i(17136),ye=i(2272),ge=i(86738);let fe=class extends((0,o.OU)(D.o)){constructor(e){super(e),this.fromGeometry=null,this.toGeometry=null,this.objectIds=null,this.where=null,this.maxCount=null}};(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0}})],fe.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0,write:!0}})],fe.prototype,"toGeometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],fe.prototype,"objectIds",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],fe.prototype,"where",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],fe.prototype,"maxCount",void 0),fe=(0,s.Cg)([(0,c.$K)("esri.rest.support.FindImagesParameters")],fe);const we=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.make=null,this.model=null,this.focalLength=null,this.pixelSize=null,this.rows=null,this.cols=null}};return(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],i.prototype,"make",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],i.prototype,"model",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],i.prototype,"focalLength",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],i.prototype,"pixelSize",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],i.prototype,"rows",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],i.prototype,"cols",void 0),i=(0,s.Cg)([(0,c.$K)("esri.rest.support.CameraInfoMixin")],i),i};let ve=class extends(we(D.o)){constructor(){super(...arguments),this.id=null,this.referenceUri=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.perspectiveCenter=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],ve.prototype,"id",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"uri",write:!0}})],ve.prototype,"referenceUri",void 0),(0,s.Cg)([(0,c.MZ)({type:Date,json:{write:!0}})],ve.prototype,"acquisitionDate",void 0),(0,s.Cg)([(0,W.K)("acquisitionDate")],ve.prototype,"writeAcquisitionDate",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],ve.prototype,"cameraID",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],ve.prototype,"center",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],ve.prototype,"perspectiveCenter",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],ve.prototype,"orientation",void 0),ve=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageInspectionInfo")],ve);const Re=ve;let Ce=class extends D.o{constructor(e){super(e),this.images=null}};var be;(0,s.Cg)([(0,c.MZ)({type:[Re],json:{write:!0}})],Ce.prototype,"images",void 0),Ce=(0,s.Cg)([(0,c.$K)("esri.rest.support.FindImagesResult")],Ce);let Se=be=class extends D.o{constructor(e){super(e),this.angleNames=null,this.point=null,this.spatialReference=null,this.rasterId=null}clone(){return new be((0,v.o8)({angleNames:this.angleNames,point:this.point,spatialReference:this.spatialReference,rasterId:this.rasterId}))}};(0,s.Cg)([(0,c.MZ)({type:[String],json:{name:"angleName",write:!0}})],Se.prototype,"angleNames",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],Se.prototype,"point",void 0),(0,s.Cg)([(0,c.MZ)({type:F.A,json:{write:!0}})],Se.prototype,"spatialReference",void 0),(0,s.Cg)([(0,c.MZ)({type:b.jz,json:{write:!0}})],Se.prototype,"rasterId",void 0),Se=be=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageAngleParameters")],Se);let Ie=class extends D.o{constructor(e){super(e),this.north=null,this.up=null,this.spatialReference=null}};(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Ie.prototype,"north",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Ie.prototype,"up",void 0),(0,s.Cg)([(0,c.MZ)({type:F.A,json:{write:!0}})],Ie.prototype,"spatialReference",void 0),Ie=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageAngleResult")],Ie);var Fe=i(86211),Me=i(50498),xe=i(66552);const Ae=new xe.J({esriMensurationPoint:"point",esriMensurationCentroid:"centroid",esriMensurationDistanceAndAngle:"distance-and-angle",esriMensurationAreaAndPerimeter:"area-and-perimeter",esriMensurationHeightFromBaseAndTop:"base-and-top",esriMensurationHeightFromBaseAndTopShadow:"base-and-top-shadow",esriMensurationHeightFromTopAndTopShadow:"top-and-top-shadow",esriMensurationPoint3D:"point-3D",esriMensurationCentroid3D:"centroid-3D",esriMensurationDistanceAndAngle3D:"distance-and-angle-3D",esriMensurationAreaAndPerimeter3D:"area-and-perimeter-3D"});let De=class extends D.o{constructor(e){super(e),this.type=null,this.measureOperation=null,this.mosaicRule=null,this.pixelSize=null,this.raster=void 0}};var Te;(0,s.Cg)([(0,c.MZ)()],De.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:Ae.apiValues,json:{read:Ae.read,write:Ae.write}})],De.prototype,"measureOperation",void 0),(0,s.Cg)([(0,c.MZ)({type:k.A,json:{write:!0}})],De.prototype,"mosaicRule",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],De.prototype,"pixelSize",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],De.prototype,"raster",void 0),De=(0,s.Cg)([(0,c.$K)("esri.rest.support.BaseImageMeasureParameters")],De);let Ne=Te=class extends De{constructor(e){super(e),this.type="area-perimeter",this.geometry=null,this.is3D=!1,this.linearUnit="meters",this.areaUnit="square-meters"}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,de.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.is3D?"area-and-perimeter-3D":"area-and-perimeter"}clone(){return new Te((0,v.o8)({geometry:this.geometry,is3D:this.is3D,linearUnit:this.linearUnit,areaUnit:this.areaUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,c.MZ)({types:Me.yR,json:{name:"fromGeometry",read:!0,write:!0}})],Ne.prototype,"geometry",void 0),(0,s.Cg)([(0,W.K)("geometry")],Ne.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({type:Ae.apiValues,json:{write:Ae.write}})],Ne.prototype,"measureOperation",null),(0,s.Cg)([(0,c.MZ)({json:{read:!0}})],Ne.prototype,"is3D",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Fe.Sk.read,write:Fe.Sk.write}})],Ne.prototype,"linearUnit",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Fe.dk.read,write:Fe.dk.write}})],Ne.prototype,"areaUnit",void 0),Ne=Te=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageAreaParameters")],Ne);let Pe=class extends D.o{constructor(e){super(e),this.name=null,this.sensorName=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{read:!0,write:!0}})],Pe.prototype,"name",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:!0,write:!0}})],Pe.prototype,"sensorName",void 0),Pe=(0,s.Cg)([(0,c.$K)("esri.rest.support.BaseImageMeasureResult")],Pe);var Ze=i(64108);let Oe=class extends D.o{constructor(){super(...arguments),this.value=null,this.displayValue=null,this.uncertainty=null}};(0,s.Cg)([(0,c.MZ)({type:Number,json:{read:!0,write:!0}})],Oe.prototype,"value",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:!0,write:!0}})],Oe.prototype,"displayValue",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{read:!0,write:!0}})],Oe.prototype,"uncertainty",void 0),Oe=(0,s.Cg)([(0,c.$K)("esri.rest.support.BaseImageMeasureResultValue")],Oe);let je=class extends Oe{constructor(){super(...arguments),this.unit=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Fe.dk.read,write:Fe.dk.write}})],je.prototype,"unit",void 0),je=(0,s.Cg)([(0,Ze.$)("esri.rest.support.ImageMeasureResultAreaValue")],je);let _e=class extends Oe{constructor(){super(...arguments),this.unit=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Fe.Sk.read,write:Fe.Sk.write}})],_e.prototype,"unit",void 0),_e=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageMeasureResultLengthValue")],_e);let Ve=class extends Pe{constructor(e){super(e),this.area=null,this.perimeter=null}};(0,s.Cg)([(0,c.MZ)({type:je,json:{read:!0,write:!0}})],Ve.prototype,"area",void 0),(0,s.Cg)([(0,c.MZ)({type:_e,json:{read:!0,write:!0}})],Ve.prototype,"perimeter",void 0),Ve=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageAreaResult")],Ve);let qe=class extends((0,o.OU)(D.o)){constructor(e){super(e),this.outSpatialReference=null}};(0,s.Cg)([(0,c.MZ)({type:F.A,json:{name:"outSR",write:!0}})],qe.prototype,"outSpatialReference",void 0),qe=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageBoundaryParameters")],qe);var Ee=i(36005);let Je=class extends D.o{constructor(e){super(e),this.area=null,this.geometry=null}readGeometry(e,t){return null==e?null:e.rings?I.A.fromJSON(e):S.A.fromJSON(e)}};var Ge;(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Je.prototype,"area",void 0),(0,s.Cg)([(0,c.MZ)({types:Me.yR,json:{name:"shape",write:!0}})],Je.prototype,"geometry",void 0),(0,s.Cg)([(0,Ee.w)("geometry")],Je.prototype,"readGeometry",null),Je=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageBoundaryResult")],Je);let ze=Ge=class extends De{constructor(e){super(e),this.type="distance-angle",this.fromGeometry=null,this.toGeometry=null,this.is3D=!1,this.linearUnit="meters",this.angularUnit="degrees"}writeFromGeometry(e,t,i){null!=e&&(t.geometryType=(0,de.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.is3D?"distance-and-angle-3D":"distance-and-angle"}clone(){return new Ge((0,v.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,is3D:this.is3D,linearUnit:this.linearUnit,angularUnit:this.angularUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0,write:!0}})],ze.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,W.K)("fromGeometry")],ze.prototype,"writeFromGeometry",null),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0,write:!0}})],ze.prototype,"toGeometry",void 0),(0,s.Cg)([(0,c.MZ)({type:Ae.apiValues,json:{write:Ae.write}})],ze.prototype,"measureOperation",null),(0,s.Cg)([(0,c.MZ)({json:{read:!0}})],ze.prototype,"is3D",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Fe.Sk.read,write:Fe.Sk.write}})],ze.prototype,"linearUnit",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Fe.b$.read,write:Fe.b$.write}})],ze.prototype,"angularUnit",void 0),ze=Ge=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageDistanceParameters")],ze);let Le=class extends Oe{constructor(){super(...arguments),this.unit=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Fe.b$.read,write:Fe.b$.write}})],Le.prototype,"unit",void 0),Le=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageMeasureResultAngleValue")],Le);let $e=class extends Pe{constructor(e){super(e),this.distance=null,this.azimuthAngle=null,this.elevationAngle=null}};(0,s.Cg)([(0,c.MZ)({type:_e,json:{read:!0,write:!0}})],$e.prototype,"distance",void 0),(0,s.Cg)([(0,c.MZ)({type:Le,json:{read:!0,write:!0}})],$e.prototype,"azimuthAngle",void 0),(0,s.Cg)([(0,c.MZ)({type:Le,json:{read:!0,write:!0}})],$e.prototype,"elevationAngle",void 0),$e=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageDistanceResult")],$e);var Ue=i(58174),Be=i(79677),Ke=i(93223);let Qe=class extends((0,o.OU)(D.o)){constructor(e){super(e),this.geometry=null,this.objectIds=null,this.spatialRelationship="intersects",this.timeExtent=null,this.where=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,de.$B)(e),t[i]=JSON.stringify(e.toJSON()))}};(0,s.Cg)([(0,c.MZ)({types:Me.yR,json:{read:de.rS,write:!0}})],Qe.prototype,"geometry",void 0),(0,s.Cg)([(0,W.K)("geometry")],Qe.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Qe.prototype,"objectIds",void 0),(0,s.Cg)([(0,Ke.e)(Ue.x,{ignoreUnknown:!1,name:"spatialRel"})],Qe.prototype,"spatialRelationship",void 0),(0,s.Cg)([(0,c.MZ)({type:Be.A,json:{name:"time",write:!0}})],Qe.prototype,"timeExtent",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Qe.prototype,"where",void 0),Qe=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageGPSInfoParameters")],Qe);let ke=class extends(we(D.o)){constructor(){super(...arguments),this.id=null}};(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],ke.prototype,"id",void 0),ke=(0,s.Cg)([(0,c.$K)("esri.rest.support.CameraInfo")],ke);const He=ke;let We=class extends D.o{constructor(){super(...arguments),this.id=null,this.name=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.gps=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],We.prototype,"id",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],We.prototype,"name",void 0),(0,s.Cg)([(0,c.MZ)({type:Date,json:{write:!0}})],We.prototype,"acquisitionDate",void 0),(0,s.Cg)([(0,W.K)("acquisitionDate")],We.prototype,"writeAcquisitionDate",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],We.prototype,"cameraID",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],We.prototype,"center",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],We.prototype,"gps",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],We.prototype,"orientation",void 0),We=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageGPSInfo")],We);const Ye=We;let Xe=class extends D.o{constructor(e){super(e),this.images=null,this.cameras=null}};var et;(0,s.Cg)([(0,c.MZ)({type:[Ye],json:{write:!0}})],Xe.prototype,"images",void 0),(0,s.Cg)([(0,c.MZ)({type:[He],json:{write:!0}})],Xe.prototype,"cameras",void 0),Xe=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageGPSInfoResult")],Xe);let tt=et=class extends De{constructor(e){super(e),this.type="height",this.fromGeometry=null,this.toGeometry=null,this.operationType="base-and-top",this.linearUnit="meters"}writeFromGeometry(e,t,i){null!=e&&(t.geometryType=(0,de.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.operationType}clone(){return new et((0,v.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,operationType:this.operationType,linearUnit:this.linearUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0}})],tt.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,W.K)("fromGeometry")],tt.prototype,"writeFromGeometry",null),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{read:!0,write:!0}})],tt.prototype,"toGeometry",void 0),(0,s.Cg)([(0,c.MZ)({type:Ae.apiValues,json:{write:Ae.write}})],tt.prototype,"measureOperation",null),(0,s.Cg)([(0,c.MZ)({json:{read:!0}})],tt.prototype,"operationType",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Fe.Sk.read,write:Fe.Sk.write}})],tt.prototype,"linearUnit",void 0),tt=et=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageHeightParameters")],tt);let it=class extends Pe{constructor(e){super(e),this.height=null}};(0,s.Cg)([(0,c.MZ)({type:_e,json:{read:!0,write:!0}})],it.prototype,"height",void 0),it=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageHeightResult")],it);var rt,st=i(22048);let nt=rt=class extends D.o{constructor(e){super(e),this.geometry=null,this.rasterFunctions=null,this.pixelSize=null,this.returnGeometry=!0,this.returnCatalogItems=!0,this.returnPixelValues=!0,this.maxItemCount=null,this.timeExtent=null,this.raster=void 0,this.viewId=void 0,this.processAsMultidimensional=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,de.$B)(e),t[i]=JSON.stringify(e.toJSON()))}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=k.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}writeMosaicRule(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON()))}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=T.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}writeRasterFunction(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON())),e.rasterFunctionDefinition&&(t[i]=JSON.stringify(e.rasterFunctionDefinition))}writeRasterFunctions(e,t,i){null!=e&&(t[i]=JSON.stringify(e.map(e=>e.rasterFunctionDefinition||e.toJSON())))}writePixelSize(e,t,i){null!=e&&(t[i]=JSON.stringify(e))}writeTimeExtent(e,t,i){if(null!=e){const r=null!=e.start?e.start.getTime():null,s=null!=e.end?e.end.getTime():null;t[i]=null!=r?null!=s?`${r},${s}`:`${r}`:null}}clone(){return new rt((0,v.o8)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,rasterFunctions:this.rasterFunctions,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,processAsMultidimensional:this.processAsMultidimensional,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};(0,s.Cg)([(0,c.MZ)({types:Me.yR,json:{write:!0}})],nt.prototype,"geometry",void 0),(0,s.Cg)([(0,W.K)("geometry")],nt.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({type:k.A,json:{write:!0}})],nt.prototype,"mosaicRule",null),(0,s.Cg)([(0,W.K)("mosaicRule")],nt.prototype,"writeMosaicRule",null),(0,s.Cg)([(0,c.MZ)({type:T.A,json:{write:!0,name:"renderingRule"}})],nt.prototype,"rasterFunction",null),(0,s.Cg)([(0,W.K)("rasterFunction")],nt.prototype,"writeRasterFunction",null),(0,s.Cg)([(0,c.MZ)({type:[T.A],json:{write:!0,name:"renderingRules"}})],nt.prototype,"rasterFunctions",void 0),(0,s.Cg)([(0,W.K)("rasterFunctions")],nt.prototype,"writeRasterFunctions",null),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],nt.prototype,"pixelSize",void 0),(0,s.Cg)([(0,W.K)("pixelSize")],nt.prototype,"writePixelSize",null),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],nt.prototype,"returnGeometry",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],nt.prototype,"returnCatalogItems",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],nt.prototype,"returnPixelValues",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],nt.prototype,"maxItemCount",void 0),(0,s.Cg)([(0,c.MZ)({type:Be.A,json:{write:{target:"time"}}})],nt.prototype,"timeExtent",void 0),(0,s.Cg)([(0,W.K)("timeExtent")],nt.prototype,"writeTimeExtent",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],nt.prototype,"raster",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],nt.prototype,"viewId",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],nt.prototype,"processAsMultidimensional",void 0),nt=rt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageIdentifyParameters")],nt);var ot=i(22671);let at=class extends D.o{constructor(e){super(e),this.catalogItemVisibilities=null,this.catalogItems=null,this.location=null,this.name=null,this.objectId=null,this.processedValues=null,this.properties=null,this.value=null}};var lt;(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],at.prototype,"catalogItemVisibilities",void 0),(0,s.Cg)([(0,c.MZ)({type:ot.A,json:{write:!0}})],at.prototype,"catalogItems",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],at.prototype,"location",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],at.prototype,"name",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],at.prototype,"objectId",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],at.prototype,"processedValues",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],at.prototype,"properties",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],at.prototype,"value",void 0),at=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageIdentifyResult")],at);let ut=lt=class extends D.o{constructor(e){super(e),this.geometries=null,this.rasterId=null}writeGeometry(e,t,i){t.geometries={geometryType:"esriGeometryPoint",geometries:e.map(e=>e.toJSON())}}clone(){return new lt({geometries:this.geometries?.map(e=>e.clone())??[],rasterId:this.rasterId})}};(0,s.Cg)([(0,c.MZ)({type:[ge.A],json:{write:!0}})],ut.prototype,"geometries",void 0),(0,s.Cg)([(0,W.K)("geometries")],ut.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({type:b.jz,json:{write:!0}})],ut.prototype,"rasterId",void 0),ut=lt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImagePixelLocationParameters")],ut);let pt=class extends D.o{constructor(e){super(e),this.geometries=null}};var ct;(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],pt.prototype,"geometries",void 0),pt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImagePixelLocationResult")],pt);let mt=ct=class extends De{constructor(e){super(e),this.type="point",this.geometry=null,this.is3D=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,de.$B)(e),t[i]=e.toJSON())}get measureOperation(){const{is3D:e,geometry:t}=this;return"point"===t.type?e?"point-3D":"point":e?"centroid-3D":"centroid"}clone(){return new ct((0,v.o8)({geometry:this.geometry,is3D:this.is3D,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,c.MZ)({types:Me.yR,json:{name:"fromGeometry",read:de.rS}})],mt.prototype,"geometry",void 0),(0,s.Cg)([(0,W.K)("geometry")],mt.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({type:Ae.apiValues,json:{read:Ae.read,write:Ae.write}})],mt.prototype,"measureOperation",null),(0,s.Cg)([(0,c.MZ)({json:{read:!0}})],mt.prototype,"is3D",void 0),mt=ct=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImagePointParameters")],mt);let dt=class extends Pe{constructor(e){super(e),this.point=null}};(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{name:"point.value",read:!0,write:!0}})],dt.prototype,"point",void 0),dt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImagePointResult")],dt);var ht=i(34606),yt=i(51508);let gt=class extends((0,o.OU)(D.o)){constructor(e){super(e),this.geometries=[],this.rasterIds=null,this.outSpatialReference=null}writeGeometries(e,t,i){t.geometries=e?.length?{geometryType:(0,de.$B)(e[0]),geometries:e.map(e=>({...e.toJSON(),spatialReference:void 0}))}:null}};(0,s.Cg)([(0,c.MZ)({types:[Me.yR]})],gt.prototype,"geometries",void 0),(0,s.Cg)([(0,W.K)("geometries")],gt.prototype,"writeGeometries",null),(0,s.Cg)([(0,c.MZ)({type:[b.jz],json:{write:!0}})],gt.prototype,"rasterIds",void 0),(0,s.Cg)([(0,c.MZ)({type:F.A,json:{name:"outSR",write:!0}})],gt.prototype,"outSpatialReference",void 0),gt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageToMapMultirayParameters")],gt);let ft=class extends((0,o.OU)(D.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.outSpatialReference=null,this.depthOffset=0,this.adjust=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,de.$B)(e),t[i]={...e.toJSON(),spatialReference:void 0})}};(0,s.Cg)([(0,c.MZ)({types:Me.yR,json:{read:de.rS,write:!0}})],ft.prototype,"geometry",void 0),(0,s.Cg)([(0,W.K)("geometry")],ft.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],ft.prototype,"rasterId",void 0),(0,s.Cg)([(0,c.MZ)({type:F.A,json:{name:"outSR",write:!0}})],ft.prototype,"outSpatialReference",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"options.DOff",write:!0}})],ft.prototype,"depthOffset",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"options.Adjust",write:!0}})],ft.prototype,"adjust",void 0),ft=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageToMapParameters")],ft);let wt=class extends((0,o.OU)(D.o)){constructor(e){super(e),this.referenceUri=null,this.rasterId=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{name:"uri",write:!0}})],wt.prototype,"referenceUri",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],wt.prototype,"rasterId",void 0),wt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageUrlParameters")],wt);let vt=class extends D.o{constructor(e){super(e),this.url=null}};(0,s.Cg)([(0,c.MZ)({json:{name:"imageURL",write:!0}})],vt.prototype,"url",void 0),vt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageUrlResult")],vt);const Rt=new xe.J({0:"constant",1:"plane",2:"minimum",3:"maximum",4:"average"},{useNumericKeys:!0});let Ct=class extends((0,o.OU)(D.o)){constructor(){super(...arguments),this.geometries=[],this.mosaicRule=null,this.pixelSize=null,this.constantZ=null,this.baseType="plane"}writeGeometries(e,t,i){e?.length&&(t.geometryType=(0,de.$B)(e[0]),t.geometries=e.map(e=>e.toJSON()))}};(0,s.Cg)([(0,c.MZ)({types:[Me.yR]})],Ct.prototype,"geometries",void 0),(0,s.Cg)([(0,W.K)("geometries")],Ct.prototype,"writeGeometries",null),(0,s.Cg)([(0,c.MZ)({type:k.A,json:{write:!0}})],Ct.prototype,"mosaicRule",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{write:!0}})],Ct.prototype,"pixelSize",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Ct.prototype,"constantZ",void 0),(0,s.Cg)([(0,c.MZ)({type:Rt.apiValues,json:{read:Rt.read,write:Rt.write}})],Ct.prototype,"baseType",void 0),Ct=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageVolumeParameters")],Ct);let bt=class extends D.o{constructor(){super(...arguments),this.area=null,this.cut=null,this.fill=null,this.maxZ=null,this.minZ=null,this.meanZ=null,this.cutCellCount=null,this.fillCellCount=null}};(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],bt.prototype,"area",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],bt.prototype,"cut",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],bt.prototype,"fill",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"maxz",write:!0}})],bt.prototype,"maxZ",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"minz",write:!0}})],bt.prototype,"minZ",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"meanz",write:!0}})],bt.prototype,"meanZ",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],bt.prototype,"cutCellCount",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],bt.prototype,"fillCellCount",void 0),bt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageVolume")],bt);const St=bt;let It=class extends D.o{constructor(e){super(e),this.volumes=[]}};(0,s.Cg)([(0,c.MZ)({type:[St],json:{write:!0}})],It.prototype,"volumes",void 0),It=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageVolumeResult")],It);let Ft=class extends((0,o.OU)(D.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.visibleOnly=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,de.$B)(e),t[i]=JSON.stringify(e))}};(0,s.Cg)([(0,c.MZ)({types:Me.yR,json:{read:de.rS,write:!0}})],Ft.prototype,"geometry",void 0),(0,s.Cg)([(0,W.K)("geometry")],Ft.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Ft.prototype,"rasterId",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"options.VisibleOnly",write:!0}})],Ft.prototype,"visibleOnly",void 0),Ft=(0,s.Cg)([(0,c.$K)("esri.rest.support.MapToImageParameters")],Ft);let Mt=class extends D.o{constructor(e){super(e),this.geometry=null,this.length=null,this.area=null,this.center=null}readCenter(e,t){return e.spatialReference||(e={...e,spatialReference:t.Shape.spatialReference}),ge.A.fromJSON(e)}};var xt;(0,s.Cg)([(0,c.MZ)({types:Me.yR,json:{name:"Shape",read:de.rS,write:!0}})],Mt.prototype,"geometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"Length",write:!0}})],Mt.prototype,"length",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"Area",write:!0}})],Mt.prototype,"area",void 0),(0,s.Cg)([(0,c.MZ)({type:ge.A,json:{name:"Center",write:!0}})],Mt.prototype,"center",void 0),(0,s.Cg)([(0,Ee.w)("center")],Mt.prototype,"readCenter",null),Mt=(0,s.Cg)([(0,c.$K)("esri.rest.support.MeasureAreaFromImageResult")],Mt);let At=xt=class extends D.o{constructor(e){super(e),this.geometry=null,this.rasterId=void 0}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,de.$B)(e),t[i]={...e.toJSON(),spatialReference:void 0})}clone(){const e=(0,v.o8)({geometry:this.geometry,rasterId:this.rasterId});return new xt(e)}};(0,s.Cg)([(0,c.MZ)({types:Me.yR,json:{name:"fromGeometry",read:de.rS,write:!0}})],At.prototype,"geometry",void 0),(0,s.Cg)([(0,W.K)("geometry")],At.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],At.prototype,"rasterId",void 0),At=xt=(0,s.Cg)([(0,c.$K)("esri.rest.support.MeasureFromImageParameters")],At);let Dt=class extends D.o{constructor(e){super(e),this.geometry=null,this.length=null}};function Tt(e){const t=e?.time;if(t&&(null!=t.start||null!=t.end)){const i=[];null!=t.start&&i.push(t.start),null==t.end||i.includes(t.end)||i.push(t.end),e.time=i.join(",")}}async function Nt(e,t,i){t=(0,b.PZ)(st.A,t);const r=(0,ye.Dl)(e),s=t.geometry?[t.geometry]:[],n=await(0,he.el)(s),o=t.toJSON();Tt(o);const a=n?.[0];null!=a&&(o.geometry=jt(a));const l=(0,ye.lF)({...r.query,f:"json",...o});return(0,ye.jV)(l,i)}async function Pt(e,t,i){t=(0,b.PZ)(nt,t);const r=(0,ye.Dl)(e),s=t.geometry?[t.geometry]:[];return(0,he.el)(s).then(e=>{const s=t.toJSON(),n=e?.[0];null!=n&&(s.geometry=JSON.stringify(jt(n)));const o=(0,ye.lF)({...r.query,f:"json",...s}),a=(0,ye.jV)(o,i);return(0,w.A)(r.path+"/identify",a)}).then(e=>at.fromJSON(e.data))}async function Zt(e,t,i,r){const s=(0,ye.Dl)(e),n=await(0,he.el)(i),o=t.toJSON();null!=n[0]&&(o.fromGeometry=JSON.stringify(jt(n[0]))),null!=n[1]&&(o.toGeometry=JSON.stringify(jt(n[1])));const a=(0,ye.lF)({...s.query,f:"json",...o}),l=(0,ye.jV)(a,r),{data:u}=await(0,w.A)(s.path+"/measure",l);return u}async function Ot(e,t,i){t=(0,b.PZ)(At,t);const r=(0,ye.Dl)(e),s=t.toJSON(),n=(0,ye.lF)({...r.query,f:"json",...s}),o=(0,ye.jV)(n,i),{data:a}=await(0,w.A)(r.path+"/measureFromImage",o);return a}function jt(e){const t=e.toJSON();return e.spatialReference?.imageCoordinateSystem&&(t.spatialReference=_t(e.spatialReference)),t}function _t(e){const{imageCoordinateSystem:t}=e;if(t){const{id:e,referenceServiceName:i}=t;return null!=e?i?{icsid:e,icsns:i}:{icsid:e}:{ics:t}}return e.toJSON()}function Vt(e,t){if(!e.imageCoordinateSystem)return(0,M.YX)(e);const i=_t(e),{icsid:r,icsns:s}=i;return null==r||null!=s&&!t?.toLowerCase().includes("/"+s.toLowerCase()+"/")?JSON.stringify(i):`0:${r}`}(0,s.Cg)([(0,c.MZ)({types:Me.yR,json:{name:"Shape",read:de.rS,write:!0}})],Dt.prototype,"geometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"Length",write:!0}})],Dt.prototype,"length",void 0),Dt=(0,s.Cg)([(0,c.$K)("esri.rest.support.MeasureLengthFromImageResult")],Dt);var qt=i(82371),Et=i(20223),Jt=i(20615),Gt=i(78286),zt=i(99199),Lt=i(61956);const $t=new Set(["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"]),Ut=(0,b.Qp)(b.GB,{min:0,max:255}),Bt=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this._functionRasterInfos={},this._serviceSupportsMosaicRule=null,this.adjustAspectRatio=null,this.bandIds=void 0,this.capabilities=null,this.compressionQuality=void 0,this.compressionTolerance=.01,this.copyright=null,this.defaultMosaicRule=null,this.definitionExpression=null,this.exportImageServiceParameters=null,this.rasterInfo=null,this.fields=null,this.fullExtent=null,this.hasMultidimensions=!1,this.imageMaxHeight=4100,this.imageMaxWidth=4100,this.interpolation=void 0,this.minScale=0,this.maxScale=0,this.multidimensionalInfo=null,this.multidimensionalSubset=null,this.noData=null,this.noDataInterpretation=void 0,this.objectIdField=null,this.geometryType="polygon",this.typeIdField=null,this.types=[],this.pixelFilter=null,this.raster=void 0,this.sourceType=null,this.viewId=void 0,this.symbolizer=null,this.rasterFunctionInfos=null,this.serviceDataType=null,this.spatialReference=null,this.pixelType=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.url=null,this.version=void 0}initialize(){this._set("exportImageServiceParameters",new Y({layer:this}))}readServiceSupportsMosaicRule(e,t){return this._isMosaicRuleSupported(t)}get _rasterFunctionNamesIndex(){const e=new Map;return!this.rasterFunctionInfos||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.length<1||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.forEach(t=>{e.set(t.name.toLowerCase().replaceAll(/ /gi,"_"),t.name)}),e}readBandIds(e,t){if(Array.isArray(e)&&e.length>0&&e.every(e=>"number"==typeof e))return e}readCapabilities(e,t){return this._readCapabilities(t)}writeCompressionQuality(e,t,i){null!=e&&"lerc"!==this.format&&(t[i]=e)}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}readDefaultMosaicRule(e,t){return this._serviceSupportsMosaicRule?k.A.fromJSON(t):null}get fieldsIndex(){return this.fields?new ee.A(this.fields):null}set format(e){e&&$t.has(e.toLowerCase())&&this._set("format",e.toLowerCase())}readFormat(e,t){return"esriImageServiceDataTypeVector-UV"===t.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===t.serviceDataType||null!=this.pixelFilter?"lerc":"jpgpng"}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=k.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}readMosaicRule(e,t){const i=e||t.mosaicRule;return i?k.A.fromJSON(i):this._isMosaicRuleSupported(t)?k.A.fromJSON(t):null}writeMosaicRule(e,t,i){const{mosaicRule:r}=this;this._isValidCustomizedMosaicRule(r)&&(t[i]=r.toJSON())}writeNoData(e,t,i){null!=e&&"number"==typeof e&&(t[i]=Ut(e))}readObjectIdField(e,t){if(!e){const i=t.fields.find(e=>"esriFieldTypeOID"===e.type||"oid"===e.type);e=i?.name}return e}get parsedUrl(){return(0,C.An)(this.url)}readSourceType(e,t){return this._isMosaicDataset(t)?"mosaic-dataset":"raster-dataset"}get renderer(){const{activePresetRendererName:e,presetRenderers:t}=this;if(e){const i=t?.find(({name:t})=>t===e);return i?.renderer.clone()}return this.internalRenderer}set renderer(e){this.activePresetRendererName=null,this.internalRenderer=e}set internalRenderer(e){this.loaded&&(e=this._configRenderer(e)),this._set("internalRenderer",e)}readRenderer(e,t,i){const r=t?.layerDefinition?.drawingInfo?.renderer,s=(0,me.LF)(r,i);return null==s?null:("vector-field"===s.type&&t.symbolTileSize&&!r.symbolTileSize&&(s.symbolTileSize=t.symbolTileSize),E(s)||l.A.getLogger(this).warn("ArcGISImageService","Imagery layer doesn't support given renderer type."),s)}writeRenderer(e,t,i){t.layerDefinition=t.layerDefinition||{},t.layerDefinition.drawingInfo=t.layerDefinition.drawingInfo||{},t.layerDefinition.drawingInfo.renderer=e.toJSON(),"vector-field"===e.type&&(t.symbolTileSize=e.symbolTileSize)}get rasterFields(){const e=this.fields?.map(e=>e.clone())??[];e.push((0,se.rZ)()),"mosaic-dataset"===this.sourceType&&this.fields?.length&&e.push((0,se.Nd)()),this.version>=10.4&&null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.some(({name:e})=>"none"===e.toLowerCase())&&e.push((0,se.dy)()),null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.filter(({name:e})=>"none"!==e.toLowerCase()).forEach(({name:t})=>e.push((0,se.nq)(t)));const{rasterInfo:t}=this;if(this._isVectorDataSet()){const i=t?.multidimensionalInfo?.variables[0].unit?.trim(),r=(0,se.DV)(i),s=(0,se.y6)();e.push(r,s)}if(t?.multidimensionalInfo&&"raster-dataset"===this.sourceType){const i=(0,se.AL)(t.multidimensionalInfo);e.push(...i)}const i=t?.attributeTable;if(null!=i){const t=(0,se.jC)(i);e.push(...t)}return e}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=T.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}readRasterFunction(e,t){const i=t.rasterFunctionInfos;return t.renderingRule||i?.length&&"None"!==i[0].name?this._isRFTJson(t.renderingRule)?T.A.fromJSON({rasterFunctionDefinition:t.renderingRule}):T.A.fromJSON(t.renderingRule||{rasterFunctionInfos:t.rasterFunctionInfos}):null}readSpatialReference(e,t){const i=e||t.extent.spatialReference;return i?F.A.fromJSON(i):null}writePixelType(e,t,i){null!=this.serviceRasterInfo&&this.pixelType===this.serviceRasterInfo.pixelType||(t[i]=H.e8.toJSON(e))}readVersion(e,t){let i=t.currentVersion;return i||(i=t.hasOwnProperty("fields")||t.hasOwnProperty("timeInfo")?10:9.3),i}applyFilter(e){let t=e;return this.pixelFilter&&(t=this._clonePixelData(e),this.pixelFilter(t)),t}async applyRenderer(e,t){let i=e,{renderer:r,symbolizer:s,pixelFilter:n}=this;const{isRawData:o}=e;if(o&&"lerc"!==this.format&&(r??=(0,pe.PD)(this.rasterInfo,{bandIds:this.bandIds,variableName:this.rasterFunction?null:this.mosaicRule?.multidimensionalDefinition?.[0].variableName}),s||(this.symbolizer=new ce.A({rendererJSON:r.toJSON(),rasterInfo:this.rasterInfo}),s=this.symbolizer)),(o||!this._isPicture())&&r&&s&&!n){await this._updateSymbolizer(s,r);const{bandIds:n}=this;i=await this._symbolize({pixelData:e,bandIds:n,symbolizer:s},t)}return i}async highlightPixels(e,t){const i=e.highlightOptions.map(e=>{const t={...e},{bandId:i}=t;if(null==i)t.bandId=0;else{const e=this.bandIds?.length?this.bandIds.indexOf(i):i;if(e<0||e>2)return;t.bandId=e}return t}).filter(e=>null!=e),r=this._rasterJobHandler;r?await r.highlightPixels({...e,highlightOptions:i},t):(0,le._F)(e.pixelBlock,e.renderedPixelBlock,i)}destroy(){this._shutdownJobHandler()}async calculateVolume(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsCalculateVolume)throw new a.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return e=(0,v.o8)(e),this.mosaicRule&&null==e.mosaicRule&&(e.mosaicRule=this.mosaicRule),async function(e,t,i){const r=(t=(0,b.PZ)(Ct,t)).toJSON();r.geometries=JSON.stringify(r.geometries);const s=(0,ye.Dl)(e),n=(0,ye.lF)({...s.query,f:"json",...r}),o=(0,ye.jV)(n,i),{data:a}=await(0,w.A)(`${s.path}/calculateVolume`,o);return It.fromJSON({volumes:a.results})}(this.url,e,this._getRequestOptions(t))}async computeAngles(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeAngles)throw new a.A("imagery-layer:compute-angles","this operation is not supported on the input image service");return async function(e,t,i){const r=(0,b.PZ)(Se,t),s=r.toJSON();null!=s.angleName&&(s.angleName=s.angleName.join(",")),r?.point?.spatialReference?.imageCoordinateSystem&&(s.point.spatialReference=_t(r.point.spatialReference)),r?.spatialReference?.imageCoordinateSystem&&(s.spatialReference=Vt(r.spatialReference));const n=(0,ye.Dl)(e),o=(0,ye.lF)({...n.query,f:"json",...s}),a=(0,ye.jV)(o,i),{data:l}=await(0,w.A)(`${n.path}/computeAngles`,a);return l.spatialReference=l.spatialReference?null!=l.spatialReference.geodataXform?new F.A({wkid:0,imageCoordinateSystem:l.spatialReference}):F.A.fromJSON(l.spatialReference):null,"NaN"===l.north&&(l.north=null),"NaN"===l.up&&(l.up=null),new Ie(l)}(this.url,e,this._getRequestOptions(t))}async computePixelSpaceLocations(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputePixelLocation)throw new a.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,b.PZ)(ut,t)).toJSON(),{geometries:s}=t;if(s)for(let e=0;e<s.length;e++)s[e].spatialReference?.imageCoordinateSystem&&(r.geometries.geometries[e].spatialReference=_t(s[e].spatialReference));const n=(0,ye.Dl)(e),o=(0,ye.lF)({...n.query,f:"json",...r}),a=(0,ye.jV)(o,i),{data:l}=await(0,w.A)(`${n.path}/computePixelLocation`,a);return pt.fromJSON(l)}(this.url,e,this._getRequestOptions(t))}async computeHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeHistograms)throw new a.A("imagery-layer:compute-histograms","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,i){const r=await Nt(e,t,i),s=(0,ye.Dl)(e),{data:n}=await(0,w.A)(`${s.path}/computeHistograms`,r);return{histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async computeStatisticsHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeStatisticsHistograms)throw new a.A("imagery-layer:compute-statistics-histograms","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,i){const r=await Nt(e,t,i),s=(0,ye.Dl)(e),{data:n}=await(0,w.A)(`${s.path}/computeStatisticsHistograms`,r),{statistics:o}=n;return o?.length&&o.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),{statistics:o,histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async measureHeight(e,t){const i=await this._fetchCapabilities(t?.signal);if(!("base-and-top"===e.operationType?i.mensuration.supportsHeightFromBaseAndTop:"base-and-top-shadow"===e.operationType?i.mensuration.supportsHeightFromBaseAndTopShadow:i.mensuration.supportsHeightFromTopAndTopShadow))throw new a.A("imagery-layer:measure-height","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicRule(e),async function(e,t,i){const r=(0,b.PZ)(tt,t),s=await Zt(e,r,[r.fromGeometry,r.toGeometry],i);return it.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureAreaAndPerimeter(e,t){const i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsAreaAndPerimeter||e.is3D&&!i.mensuration.supports3D)throw new a.A("imagery-layer:measure-area-and-perimeter","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicRule(e),async function(e,t,i){const r=(0,b.PZ)(Ne,t),s=await Zt(e,r,[r.geometry],i);return Ve.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureDistanceAndAngle(e,t){const i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsDistanceAndAngle||e.is3D&&!i.mensuration.supports3D)throw new a.A("imagery-layer:measure-distance-and-angle","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicRule(e),async function(e,t,i){const r=(0,b.PZ)(ze,t),s=await Zt(e,r,[r.fromGeometry,r.toGeometry],i);return $e.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measurePointOrCentroid(e,t){const i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsPointOrCentroid||e.is3D&&!i.mensuration.supports3D)throw new a.A("imagery-layer:measure-point-or-centroid","this operation is not supported on the input image service");return e=(0,v.o8)(e),this._applyMosaicRule(e),async function(e,t,i){const r=(0,b.PZ)(mt,t),s=await Zt(e,r,[r.geometry],i);return dt.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureLengthFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new a.A("imagery-layer:measure-length-from-image","this operation is not supported on the input image service");if("polyline"!==e.geometry.type)throw new a.A("imagery-layer:measure-length-from-image","this input geometry must be a polyline");return async function(e,t,i){const r=await Ot(e,t,i);return Dt.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}async measureAreaFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new a.A("imagery-layer:measure-area-from-image","this operation is not supported on the input image service");if("polygon"!==e.geometry.type)throw new a.A("imagery-layer:measure-area-from-image","this input geometry must be a polygon");return async function(e,t,i){const r=await Ot(e,t,i);return Mt.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}getField(e){const{fieldsIndex:t}=this;return null!=t?t.get(e):void 0}getFieldDomain(e,t){const i=this.getField(e);return i?i.domain:null}async internalFetchImage(e,t,i,s={}){await this._updateCurrentRasterInfo();const{exportImageServiceParameters:n}=this;let o=!1;s.requestRawData&&(await this._initJobHandler(),n.requestRawData||"lerc"===this.format||(o=!0,n.requestRawData=!0));const a=this.getExportImageServiceParameters(e,t,i,s.timeExtent);if(o&&(n.requestRawData=!1),null==a){if(s.requestAsImageElement&&this._canRequestImageElement(this.format)){const e=document.createElement("canvas");return e.width=t,e.height=i,s.returnImageBitmap?{imageBitmap:await(0,te.m)(e,`${r(this.parsedUrl)}/exportImage`,s.signal)}:{imageOrCanvasElement:e}}const{bandIds:n,rasterInfo:o}=this,a=(n?.length||o.bandCount)??0,l=t*i,u=o.pixelType,p=[];for(let e=0;e<a;e++)p.push(re.A.createEmptyBand(u,l));return{pixelData:{pixelBlock:new re.A({width:t,height:i,pixels:p,mask:new Uint8Array(l),pixelType:u}),extent:e}}}const l=!!s.requestAsImageElement&&!this.pixelFilter,u=l&&!!s.returnImageBitmap,p={imageServiceParameters:a,imageProps:{extent:e,width:t,height:i,format:this.format},requestAsImageElement:l,returnImageBitmap:u,signal:s.signal};return this._requestArrayBuffer(p)}async fetchPixels(e,t,i,r={}){await this._initJobHandler(),r.applyRendering&&this._updateCurrentRasterInfo();const s=r.applyRendering?void 0:new Y({layer:this,requestRawData:!0,interpolation:r.interpolation??"nearest",bandIds:r.bandIds??[]}),n=this.getExportImageServiceParameters(e,t,i,r.timeExtent,s);if(null==n)return{extent:e,pixelBlock:null};delete n.pixelType,r.bandIds||delete n.bandIds,delete n.compressionQuality;const o={imageServiceParameters:n,imageProps:{extent:e,width:t,height:i,format:this.format},requestAsImageElement:!1,returnImageBitmap:!1,signal:r.signal},{pixelData:a}=await this._requestArrayBuffer(o);return a??{extent:e,pixelBlock:null}}fetchKeyProperties(e){return(0,w.A)(r(this.parsedUrl)+"/keyProperties",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>e.data)}fetchRasterAttributeTable(e){return this.version<10.1?Promise.reject(new a.A("#fetchRasterAttributeTable()","Failed to get rasterAttributeTable")):(0,w.A)(r(this.parsedUrl)+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>ot.A.fromJSON(e.data))}getCatalogItemRasterInfo(e,t){const i={...t,query:this._getQueryParams()};return async function(e,t,i){const r=(0,ye.Dl)(e),s=(0,ye.lF)({...r?.query,f:"json"}),n=(0,ye.jV)(s,i),o=`${r?.path}/${t}/info`,a=(0,w.A)(`${o}`,n),l=(0,w.A)(`${o}/keyProperties`,n),u=await Promise.allSettled([a,l]),p="fulfilled"===u[0].status?u[0].value.data:null,c="fulfilled"===u[1].status?u[1].value.data:null;let m=null;p.statistics?.length&&(m=p.statistics.map(e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]})));const d=S.A.fromJSON(p.extent),h=Math.ceil(d.width/p.pixelSizeX-.1),y=Math.ceil(d.height/p.pixelSizeY-.1),g=d.spatialReference,f=new ge.A({x:p.pixelSizeX,y:p.pixelSizeY,spatialReference:g}),v=p.histograms?.length?p.histograms:null,R=new Et.A({origin:p.origin,blockWidth:p.blockWidth,blockHeight:p.blockHeight,firstPyramidLevel:p.firstPyramidLevel,maximumPyramidLevel:p.maxPyramidLevel});return new ne.A({width:h,height:y,bandCount:p.bandCount,extent:d,spatialReference:g,pixelSize:f,pixelType:p.pixelType.toLowerCase(),statistics:m,histograms:v,keyProperties:c,storageInfo:R})}(r(this.parsedUrl),e,i)}async getCatalogItemICSInfo(e,t){const{data:i}=await(0,w.A)(r(this.parsedUrl)+"/"+e+"/info/ics",{query:this._getQueryParams(),...t}),s=i?.ics;if(!s)return;let n=null;try{n=(await(0,w.A)(r(this.parsedUrl)+"/"+e+"/info",{query:this._getQueryParams(),...t})).data.extent}catch{}if(!n?.spatialReference)return{ics:s,icsToPixelTransform:null,icsExtent:null,northDirection:null};const o=this.version>=10.7?(0,w.A)(r(this.parsedUrl)+"/"+e+"/info/icstopixel",{query:this._getQueryParams(),...t}).then(e=>e.data).catch(()=>({})):{},a=n.spatialReference,l={geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[n]}),inSR:(0,M.YX)(a),outSR:"0:"+e},u=(0,w.A)(r(this.parsedUrl)+"/project",{query:this._getQueryParams(l),...t}).then(e=>e.data).catch(()=>({})),p=(n.xmin+n.xmax)/2,c=(n.ymax-n.ymin)/6,m=n.ymin+c,d=[];for(let e=0;e<5;e++)d.push({x:p,y:m+c*e});const h={geometries:JSON.stringify({geometryType:"esriGeometryPoint",geometries:d}),inSR:(0,M.YX)(a),outSR:"0:"+e},y=(0,w.A)(r(this.parsedUrl)+"/project",{query:this._getQueryParams(h),...t}).then(e=>e.data).catch(()=>({})),g=await Promise.all([o,u,y]);let f=g[0].ipxf;if(null==f){const e=s.geodataXform?.xf_0;"topup"===e?.name?.toLowerCase()&&6===e?.coefficients?.length&&(f={affine:{name:"ics [sensor: Frame] to pixel (column, row) transformation",coefficients:e.coefficients,cellsizeRatio:0,type:"GeometricXform"}})}const v=S.A.fromJSON(g[1]?.geometries?.[0]);v&&(v.spatialReference=new F.A({wkid:0,imageCoordinateSystem:s}));const R=g[2].geometries?g[2].geometries.filter(e=>null!=e?.x&&null!=e.y&&"NaN"!==e.x&&"NaN"!==e.y):[],C=R.length;if(C<3)return{ics:s,icsToPixelTransform:f,icsExtent:v,northDirection:null};let b=0,I=0,x=0,A=0;for(let e=0;e<C;e++)b+=R[e].x,I+=R[e].y,x+=R[e].x*R[e].x,A+=R[e].x*R[e].y;const D=(C*A-b*I)/(C*x-b*b);let T=0;const N=R[4].x>R[0].x,P=R[4].y>R[0].y;return D===1/0?T=P?90:270:0===D?T=N?0:180:D>0?T=N?180*Math.atan(D)/Math.PI:180*Math.atan(D)/Math.PI+180:D<0&&(T=P?180+180*Math.atan(D)/Math.PI:360+180*Math.atan(D)/Math.PI),{ics:s,icsToPixelTransform:f,icsExtent:v,northDirection:T}}async generateRasterInfo(e,t){e=(0,b.PZ)(T.A,e);const i={...t,query:this._getQueryParams()};if(!e||"none"===e.functionName?.toLowerCase()||this._isVectorFieldResampleFunction(e))return this.serviceRasterInfo??(0,qt.Tw)(r(this.parsedUrl),this.sourceJSON,i);const s=function(e){const t=JSON.stringify(e),i=t.includes('"rasterFunctionDefinition":{'),r=i?t.match(/"type":"(.*?FunctionArguments")/gi):t.match(/"rasterFunction":"(.*?")/gi),s=r?.map(e=>i?e.slice(8,-18):e.slice(18,-1));return s?s.join("/"):null}(e);if(!s)throw new a.A("imagery-layer:generate-raster-info","the rendering rule is not supported");if(this._functionRasterInfos[s])return this._functionRasterInfos[s];const n=(0,qt.X6)(r(this.parsedUrl),e,i);this._functionRasterInfos[s]=n;try{return await n}catch(e){throw this._functionRasterInfos[s]=null,e}}getExportImageServiceParameters(e,t,i,s,n){const o=Vt((e=e.clone().shiftCentralMeridian()).spatialReference,r(this.parsedUrl));n??=this.exportImageServiceParameters;const a=n.toJSON(),{bandIds:l,noData:u}=a;let{renderingRule:p}=a;const c=this.rasterFunction?.rasterFunctionDefinition,m=this.renderer?.type,d=!m||"raster-stretch"===m||"raster-colormap"===m||"unique-value"===m||"class-breaks"===m||"raster-shaded-relief"===m;if(l?.length&&this._hasRasterFunction(this.rasterFunction)&&!c&&d){const e={rasterFunction:"ExtractBand",rasterFunctionArguments:{BandIds:l}};if("Stretch"===p.rasterFunction)e.rasterFunctionArguments.Raster=p.rasterFunctionArguments.Raster,p.rasterFunctionArguments.Raster=e;else if("Colormap"===p.rasterFunction){const t=p.rasterFunctionArguments.Raster;"Stretch"===t?.rasterFunction?(e.rasterFunctionArguments.Raster=t.rasterFunctionArguments.Raster,t.rasterFunctionArguments.Raster=e):(e.rasterFunctionArguments.Raster=t,p.rasterFunctionArguments.Raster=e)}else e.rasterFunctionArguments.Raster=p,p=e;a.bandIds=void 0}else a.bandIds=l?.join(",");Array.isArray(u)&&u.length>0&&(a.noData=u.join(","));const h=this._processMultidimensionalIntersection(null,s,n.mosaicRule);if(h.isOutSide)return null;a.mosaicRule=null!=h.mosaicRule?JSON.stringify(h.mosaicRule):null,s=h.timeExtent,a.renderingRule=this._getRenderingRuleString(T.A.fromJSON(p));const y={};if(null!=s){const{start:e,end:t}=s.toJSON();e&&t&&e===t?y.time=""+e:null==e&&null==t||(y.time=`${e??"null"},${t??"null"}`)}return{bbox:e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:o,imageSR:o,size:t+","+i,...a,...y}}async getSamples(e,t){const i=await this._fetchCapabilities(t?.signal);if(!i?.operations.supportsGetSamples)throw new a.A("imagery-layer:get-samples","getSamples operation is not supported on the input image service");e=(0,v.o8)(e);const{raster:r}=this;return r&&null==e.raster&&(e.raster=r),async function(e,t,i){const r=(t=(0,b.PZ)(ht.A,t)).toJSON();Tt(r),r.outFields?.length&&(r.outFields=r.outFields.join(","));const s=await(0,he.el)(t.geometry),n=s?.[0];null!=n&&(r.geometry=jt(n));const o=(0,ye.Dl)(e),a=(0,ye.lF)({...o.query,f:"json",...r}),l=(0,ye.jV)(a,i),{data:u}=await(0,w.A)(`${o.path}/getSamples`,l),p=u.samples.map(e=>{const t="NaN"===e.value||""===e.value?null:e.value.split(" ").map(e=>Number(e));return{...e,pixelValue:t}});return yt.A.fromJSON({samples:p})}(this.url,e,this._getRequestOptions(t))}async identify(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsIdentify)throw new a.A("imagery-layer:identify","identify operation is not supported on the input image service");e=(0,v.o8)(e),this.version<10.91&&"extent"===e.geometry?.type&&(e.geometry=I.A.fromExtent(e.geometry));const i=this._processMultidimensionalIntersection(e.geometry,e.timeExtent,e.mosaicRule||this.mosaicRule);if(i.isOutSide)throw new a.A("imagery-layer:identify","the request cannot be fulfilled when falling outside of the multidimensional subset");e.timeExtent=i.timeExtent,e.mosaicRule=i.mosaicRule;const{raster:r,rasterFunction:s}=this;return s&&null==e.rasterFunction&&(e.rasterFunction=s),r&&null==e.raster&&(e.raster=r),Pt(this.url,e,this._getRequestOptions(t))}async imageToMap(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMap)throw new a.A("imagery-layer:image-to-map","imageToMap operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,b.PZ)(ft,t)).toJSON();t.geometry.spatialReference.imageCoordinateSystem&&(r.geometry=jt(t.geometry)),t.depthOffset&&t.adjust||delete r.options;const s=(0,ye.Dl)(e),n=(0,ye.lF)({...s.query,f:"json",...r}),o=(0,ye.jV)(n,i),{data:a}=await(0,w.A)(`${s.path}/imageToMap`,o);return(0,de.rS)(a)}(r(this.parsedUrl),e,this._getRequestOptions(t))}async imageToMapMultiray(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMapMultiray)throw new a.A("imagery-layer:image-to-map-multiray","imageToMapMultiray operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,b.PZ)(gt,t)).toJSON();t.rasterIds?.length&&(r.rasterIds=t.rasterIds.join(","));const s=(0,ye.Dl)(e),n=(0,ye.lF)({...s.query,f:"json",...r}),o=(0,ye.jV)(n,i),{data:a}=await(0,w.A)(`${s.path}/imageToMapMultiray`,o);return(0,de.rS)(a)}(r(this.parsedUrl),e,this._getRequestOptions(t))}async mapToImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMapToImage)throw new a.A("imagery-layer:map-to-image","mapToImage operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,b.PZ)(Ft,t)).toJSON(),s=await(0,he.el)(t.geometry),n=s?.[0];null!=n&&(r.geometry=jt(n)),t.visibleOnly||delete r.options;const o=n?.spatialReference??t.geometry?.spatialReference;o&&(r.inSR=Vt(o));const a=(0,ye.Dl)(e),l=(0,ye.lF)({...a.query,f:"json",...r}),u=(0,ye.jV)(l,i),{data:p}=await(0,w.A)(`${a.path}/mapToImage`,u);return(0,de.rS)(p)}(r(this.parsedUrl),e,this._getRequestOptions(t))}async findImages(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsFindImages)throw new a.A("imagery-layer:find-images","findImages operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,b.PZ)(fe,t)).toJSON(),s=await(0,he.el)([t.fromGeometry,t.toGeometry]);null!=s[0]&&(r.fromGeometry=jt(s[0]),s[0].spatialReference&&(r.inSR=Vt(s[0].spatialReference))),null!=s[1]&&(r.toGeometry=jt(s[1])),t.objectIds?.length&&(r.objectIds=r.objectIds.join(","));const n=(0,ye.Dl)(e),o=(0,ye.lF)({...n.query,f:"json",...r}),a=(0,ye.jV)(o,i),{data:l}=await(0,w.A)(`${n.path}/find`,a);return Ce.fromJSON(l)}(r(this.parsedUrl),e,this._getRequestOptions(t))}async getImageUrl(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsGetImageUrl)throw new a.A("imagery-layer:get-image-url","getImageUrl operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,b.PZ)(wt,t)).toJSON(),s=(0,ye.Dl)(e),n=(0,ye.lF)({...s.query,f:"json",...r}),o=(0,ye.jV)(n,i),{data:a}=await(0,w.A)(`${s.path}/getImageUrl`,o);return vt.fromJSON(a)}(r(this.parsedUrl),e,this._getRequestOptions(t))}createQuery(){return new Lt.A({outFields:["*"],returnGeometry:!0,where:this.definitionExpression||"1=1"})}async queryBoundary(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryBoundary)throw new a.A("imagery-layer:query-boundary","queryBoundary operation is not supported on the input image service");return e=e??{outSpatialReference:this.spatialReference},async function(e,t,i){t=(0,b.PZ)(qe,t);const r=(0,ye.Dl)(e),s=t.toJSON();t.outSpatialReference&&(s.outSR=Vt(t.outSpatialReference));const n=(0,ye.lF)({...r.query,f:"json",...s}),o=(0,ye.jV)(n,i),{data:a}=await(0,w.A)(r.path+"/queryBoundary",o);return Je.fromJSON(a)}(r(this.parsedUrl),e,this._getRequestOptions(t))}async queryRasters(e,t){({query:e,requestOptions:t}=await this._prepareForQuery(e,t));const i=await(0,zt.s)(this.url,e,t),r=this.graphicOrigin;return i.features.forEach(e=>{e.layer=this,e.origin=r}),i}async queryObjectIds(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Gt.V)(this.url,e,t)}async queryGPSInfo(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryGPSInfo)throw new a.A("imagery-layer:query-gps-info","queryGPSInfo operation is not supported on the input image service");return e=e??{where:"1=1"},async function(e,t,i){const r=(t=(0,b.PZ)(Qe,t)).toJSON();Tt(r),r.objectIds?.length&&(r.objectIds=r.objectIds.join(",")),r.geometry||r.objectIds||r.time||r.where||(r.where="1=1");const s=await(0,he.el)(t.geometry),n=s?.[0];null!=n&&(r.geometry=jt(n));const o=n?.spatialReference??t.geometry?.spatialReference;o&&(r.inSR=Vt(o));const a=(0,ye.Dl)(e),l=(0,ye.lF)({...a.query,f:"json",...r}),u=(0,ye.jV)(l,i),{data:p}=await(0,w.A)(`${a.path}/queryGPSInfo`,u);return Xe.fromJSON(p)}(r(this.parsedUrl),e,this._getRequestOptions(t))}async queryRasterCount(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Jt.I)(this.url,e,t)}async queryVisibleRasters(e,t){if(!e)throw new a.A("imagery-layer: query-visible-rasters","missing query parameter");await this.load();const{pixelSize:i,returnDomainValues:r,returnTopmostRaster:s,showNoDataRecords:n}=t||{pixelSize:null,returnDomainValues:!1,returnTopmostRaster:!1,showNoDataRecords:!1};let o=!1,l=null,u=null;const p=se.F_.servicePixelValue.toLowerCase(),c=this._rasterFunctionNamesIndex;if(null!=e.outFields&&(o=e.outFields.some(e=>!e.toLowerCase().startsWith(p)),this.version>=10.4)){const t=e.outFields.filter(e=>e.toLowerCase().startsWith(p)&&e.length>p.length).map(e=>{const t=e.slice(p.length+1);return[this._updateRenderingRulesFunctionName(t,c),t]});l=t.map(e=>new T.A({functionName:e[0]})),u=t.map(e=>e[1]);const{rasterFunction:i}=this;0===l.length?i?.functionName?(l.push(i),u.push(i.functionName)):l=null:i?.functionName&&!l.some(e=>e.functionName===i.functionName)&&(l.push(i),u.push(i.functionName))}const m=null==e.outSpatialReference||e.outSpatialReference.equals(this.spatialReference),{multidimensionalSubset:d}=this;let h=e.timeExtent||this.timeExtent;if(d){const{isOutside:t,intersection:i}=(0,oe.Rp)(d,{geometry:e.geometry,timeExtent:e.timeExtent,multidimensionalDefinition:this.exportImageServiceParameters.mosaicRule?.multidimensionalDefinition});if(t)throw new a.A("imagery-layer:query-visible-rasters","the request cannot be fulfilled when falling outside of the multidimensional subset");null!=i?.timeExtent&&(h=i.timeExtent)}const y=this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,h);let g=e.geometry;this.version<10.91&&"extent"===g?.type&&(g=I.A.fromExtent(g));const f=this._getQueryParams({geometry:g,timeExtent:h,mosaicRule:y,rasterFunction:this.version<10.4?this.rasterFunction:null,rasterFunctions:l,pixelSize:i,returnCatalogItems:o,returnGeometry:m,raster:this.raster,maxItemCount:s?1:null});delete f.f;const w=new nt(f);try{await this._generateRasterInfo(this.rasterFunction);const i=await Pt(this.url,w,{signal:t?.signal,query:{...this.customParameters}}),s=e.outFields,a=null!=i.value&&i.value.toLowerCase().includes("nodata"),l=o&&!m&&i?.catalogItems?.features.length&&(n||!a),p=this.multidimensionalInfo&&"raster-dataset"===this.sourceType?(0,oe.XU)({rasterInfo:this.rasterInfo,multidimensionalDefinition:y?.multidimensionalDefinition,timeExtent:h,multidimensionalSubset:this.multidimensionalSubset}):null;if(!l)return this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:u,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p});const c=this.objectIdField||"ObjectId",d=i.catalogItems?.features??[],g=d.map(e=>e.attributes?.[c]),f=new Lt.A({objectIds:g,returnGeometry:!0,outSpatialReference:e.outSpatialReference,outFields:[c]}),v=await this.queryRasters(f);return v?.features?.length&&v.features.forEach(t=>{d.forEach(i=>{i.attributes[c]===t.attributes[c]&&t.geometry&&(i.geometry=t.geometry.clone(),null!=e.outSpatialReference&&(i.geometry.spatialReference=e.outSpatialReference))})}),this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:u,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p})}catch{throw new a.A("imagery-layer:query-visible-rasters","encountered error when querying visible rasters")}}async fetchVariableStatisticsHistograms(e,t){const i=(0,w.A)(r(this.parsedUrl)+"/statistics",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.statistics),s=(0,w.A)(r(this.parsedUrl)+"/histograms",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.histograms),n=await Promise.all([i,s]);return n[0]&&n[0].forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),{statistics:n[0]||null,histograms:n[1]||null}}getMultidimensionalSubsetVariables(e){const t=e??this.serviceRasterInfo.multidimensionalInfo;return(0,oe.z2)(this.multidimensionalSubset,t)}async _fetchService(e){await this._fetchServiceInfo(e),this.rasterInfo||(this.rasterInfo=this.serviceRasterInfo);const t=this.sourceJSON,i=null!=this.serviceRasterInfo?Promise.resolve(this.serviceRasterInfo):(0,qt.Tw)(r(this.parsedUrl),t,{signal:e,query:this._getQueryParams()}).then(e=>(this._set("serviceRasterInfo",e),this._set("multidimensionalInfo",e.multidimensionalInfo),(0,qt.E9)(e,t),e)),s=this._hasRasterFunction(this.rasterFunction)?this._generateRasterInfo(this.rasterFunction,{signal:e}):null,n=this._getRasterFunctionInfos();return Promise.all([i,s,n]).then(e=>{e[1]?this._set("rasterInfo",e[1]):this._set("rasterInfo",e[0]),e[2]&&this._set("rasterFunctionInfos",e[2]),this.internalRenderer&&!this._isSupportedRenderer(this.internalRenderer)&&(this._set("internalRenderer",null),l.A.getLogger(this).warn("ArcGISImageService","Switching to the default renderer. Renderer applied is not valid for this Imagery Layer")),this._set("internalRenderer",this._configRenderer(this.renderer)),this.addHandles([(0,R.wB)(()=>this.rasterFunction,e=>{(this.renderer||this.symbolizer||this.popupEnabled&&this.popupTemplate)&&this._generateRasterInfo(e).then(e=>{e&&(this.rasterInfo=e)})})]);const{serviceRasterInfo:t}=this;null!=t.multidimensionalInfo&&this._updateMultidimensionalDefinition(t)})}_combineMosaicRuleWithTimeExtent(e,t){const i=this.timeInfo,{multidimensionalInfo:r}=this.serviceRasterInfo;if(null==e||null==r||null==t||null==i?.startField)return e;const{startField:s}=i,n=r.variables.some(e=>e.dimensions.some(e=>e.name===s))?s:"StdTime";if(e=e.clone(),"mosaic-dataset"===this.sourceType)return e.multidimensionalDefinition=e.multidimensionalDefinition?.filter(e=>e.dimensionName!==n),this._cleanupMultidimensionalDefinition(e);e.multidimensionalDefinition=e.multidimensionalDefinition||[];const o=e.multidimensionalDefinition.filter(e=>e.dimensionName===n),a=null!=t.start?t.start.getTime():null,l=null!=t.end?t.end.getTime():null,u=null==a||null==l||a===l,p=u?[a||l]:[[a,l]],c=this.version>=10.8;if(o.length)o.forEach(e=>{e.dimensionName===n&&(c?(e.dimensionName=null,e.isSlice=!1,e.values=[]):(e.isSlice=u,e.values=p))});else if(!c){const t=e.multidimensionalDefinition.filter(e=>null!=e.variableName&&null==e.dimensionName);t.length?t.forEach(e=>{e.dimensionName=n,e.isSlice=u,e.values=p}):e.multidimensionalDefinition.push(new A.A({variableName:"",dimensionName:n,isSlice:u,values:p}))}return this._cleanupMultidimensionalDefinition(e)}_cleanupMultidimensionalDefinition(e){return null==e?null:(e.multidimensionalDefinition&&(e.multidimensionalDefinition=e.multidimensionalDefinition.filter(e=>!(!e.variableName&&!e.dimensionName)),0===e.multidimensionalDefinition.length&&(e.multidimensionalDefinition=null)),"mosaic-dataset"!==this.sourceType&&null==e.multidimensionalDefinition?null:e)}async _prepareForQuery(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQuery)throw new a.A("imagery-layer:query-rasters","query operation is not supported on the input image service");const i=null!=e?(0,b.PZ)(Lt.A,e):this.createQuery();return t=this._getRequestOptions(t),this.raster&&(t.query={...t.query,raster:this.raster}),{query:i,requestOptions:t}}_isSupportedRenderer(e){const{rasterInfo:t,rasterFunction:i}=this;return"unique-value"===e.type&&this._hasRasterFunction(i)&&1===t?.bandCount&&["u8","s8"].includes(t.pixelType)||null!=t&&null!=e&&(0,pe.fp)(t).includes(e.type)}async _fetchCapabilities(e){return this.capabilities||await this._fetchServiceInfo(e),this.capabilities}async _fetchServiceInfo(e){let t=this.sourceJSON;if(!t){const{data:i,ssl:s}=await(0,w.A)(r(this.parsedUrl),{query:this._getQueryParams(),signal:e});t=i,this.sourceJSON=t,s&&(this.url=this.url.replace(/^http:/i,"https:"))}if(t.capabilities?.toLowerCase().split(",").map(e=>e.trim()).indexOf("tilesonly")>-1)throw new a.A("imagery-layer:fetch-service-info","use ImageryTileLayer to open tiles-only image services");this.read(t,{origin:"service",url:this.parsedUrl})}_isMosaicDataset(e){return e.serviceSourceType?"esriImageServiceSourceTypeMosaicDataset"===e.serviceSourceType:e.fields?.length>0}_isMosaicRuleSupported(e){if(!e)return!1;const t=this._isMosaicDataset(e),i=e.currentVersion>=10.71&&e.hasMultidimensions&&!(e.fields?.length>1);return t||i}_isVectorFieldResampleFunction(e){if(null==e)return!1;const{functionName:t,functionArguments:i}=e,r="resample"===t?.toLowerCase(),s=i?.ResampleType||i?.resampleType;return r&&(7===s||10===s)}_isPicture(){return!this.format||this.format.includes("jpg")||this.format.includes("png")}_configRenderer(e){const t=this._isPicture(),{rasterInfo:i}=this;if(!t&&!this.pixelFilter||this._isVectorDataSet()){const t=this.mosaicRule?.multidimensionalDefinition?.[0].variableName,r=(0,pe.I8)({variableName:t,rasterFunctionName:this.rasterFunction?.functionName,presetRenderers:this.presetRenderers});if(!this.bandIds&&i.bandCount>=3){const e=r?.bandIds??(0,pe.ci)(i);!e||3===i.bandCount&&0===e[0]&&1===e[1]&&2===e[2]||(this.bandIds=e)}e||(e=r?.renderer??(0,pe.PD)(i,{bandIds:this.bandIds,variableName:this.rasterFunction?null:t}));const s=(0,pe.$P)(e.toJSON());this.symbolizer?(this.symbolizer.rendererJSON=s,this.symbolizer.rasterInfo=i):this.symbolizer=new ce.A({rendererJSON:s,rasterInfo:i}),this.symbolizer.bind().success||(this.symbolizer=null)}return e}_clonePixelData(e){return null==e?e:{extent:e.extent&&e.extent.clone(),pixelBlock:null!=e.pixelBlock?e.pixelBlock.clone():null}}_getQueryParams(e){null!=e?.renderingRule&&"string"!=typeof e.renderingRule&&(e.renderingRule=this._getRenderingRuleString(e.renderingRule));const{raster:t,viewId:i}=this;return{raster:t,viewId:i,f:"json",...e,...this.customParameters}}_getRequestOptions(e){return{...e,query:{...e?.query,...this.customParameters}}}_decodePixelBlock(e,t,i){return this._rasterJobHandler?this._rasterJobHandler.decode({data:e,options:t}):(0,ae.D)(e,t,i)}async _getRasterFunctionInfos(e){const t=this.sourceJSON.rasterFunctionInfos;if(this.loaded)return t;if(t&&this.version>=10.3){if(1===t.length&&"none"===t[0].name.toLowerCase())return t;const i=await(0,w.A)(r(this.parsedUrl)+"/rasterFunctionInfos",{query:this._getQueryParams(),signal:e});return i.data?.rasterFunctionInfos}return null}_canRequestImageElement(e){return!this.pixelFilter&&(!e||e.includes("png"))}async _requestArrayBuffer(e){const{imageProps:t,requestAsImageElement:i,returnImageBitmap:s,signal:n}=e;if(i&&this._canRequestImageElement(t.format)){const i=`${r(this.parsedUrl)}/exportImage`,{data:o}=await(0,w.A)(i,{responseType:s?"blob":"image",query:this._getQueryParams({f:"image",...this.refreshParameters,...e.imageServiceParameters}),signal:n});return o instanceof Blob?{imageBitmap:await(0,te.m)(o,i,n),params:t}:{imageOrCanvasElement:o,params:t}}const o=this._initJobHandler(),l=(0,w.A)(r(this.parsedUrl)+"/exportImage",{responseType:"array-buffer",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:n}),u=(await Promise.all([l,o]))[0].data,p=t.format||"jpgpng";let c=p;if("bsq"!==c&&"bip"!==c&&(c=(0,ae.g)(u)),!c)throw new a.A("imagery-layer:fetch-image","unsupported format signature "+String.fromCharCode.apply(null,new Uint8Array(u)));const m={signal:n},d="gif"===p||"bmp"===p||p.includes("png")&&("png"===c||"jpg"===c)?(0,ae.D)(u,{useCanvas:!0,...t},m):this._decodePixelBlock(u,{width:t.width,height:t.height,planes:null,pixelType:null,noDataValue:null,format:p},m);return{pixelData:{pixelBlock:await d,extent:t.extent},params:t}}_generateRasterInfo(e,t){return this.generateRasterInfo(e,t).catch(()=>null)}_isValidCustomizedMosaicRule(e){return e&&JSON.stringify(e.toJSON())!==JSON.stringify(this.defaultMosaicRule?.toJSON())}_updateMultidimensionalDefinition(e){if(this._isValidCustomizedMosaicRule(this.mosaicRule))return;let t=(0,oe.fy)(e,{multidimensionalSubset:this.multidimensionalSubset});if(null!=t&&t.length>0){this.mosaicRule=this.mosaicRule||new k.A;const e=this.mosaicRule.multidimensionalDefinition;!this.sourceJSON.defaultVariableName&&this.rasterFunction&&"none"!==this.rasterFunction.functionName?.toLowerCase()&&t.forEach(e=>e.variableName=""),t=t.filter(({variableName:e,dimensionName:t})=>e&&"*"!==e||t),!e?.length&&t.length&&(this.mosaicRule.multidimensionalDefinition=t)}}_processVisibleRastersResponse(e,t){t=t||{};const i=e.value,{templateRRFunctionNames:r,showNoDataRecords:s,returnDomainValues:n,templateFields:o}=t,a=e.processedValues;let l=e.catalogItems?.features,u=e.properties?.Values?.map(e=>e.replaceAll(/ /gi,", "))||[];const p=this.objectIdField||"ObjectId",c="string"==typeof i&&i.toLowerCase().includes("nodata"),m=[];if(i&&!l&&(!c||s)){const e={};e[p]=0,u=[i],l=[new f.A({geometry:this.fullExtent,attributes:e})],this.multidimensionalInfo&&"raster-dataset"===this.sourceType&&(0,se.eS)(this.rasterFields,e,t.effectiveMultidimensionalDefinition)}if(!l)return[];this._updateResponseFieldNames(l,o),c&&!s&&(l=[]);const{itemPixelValue:d,servicePixelValue:h}=se.F_,y=this.rasterFields.some(e=>e.name===d),g=this.graphicOrigin;for(let e=0;e<l.length;e++){const t=l[e];if(null!=i){const n=u[e],o=this.rasterFunction&&a&&a.length>0&&r&&r.length>0&&r.includes(this.rasterFunction.functionName)?a[r.indexOf(this.rasterFunction.functionName)]:i;if("nodata"===n.toLowerCase()&&!s)continue;y&&(t.attributes[d]=n),t.attributes[h]=o,this._updateFeatureWithMagDirValues(t,n);const l=this.fields&&this.fields.length>0;let p=this.rasterFunction&&null!=this.serviceRasterInfo.attributeTable?l?n:i:o;this.rasterFunction||(p=l?n:i),this._updateFeatureWithRasterAttributeTableValues(t,p)}if(t.sourceLayer=t.layer=this,t.origin=g,n&&this._updateFeatureWithDomainValues(t),r&&a&&r.length===a.length)for(let e=0;e<r.length;e++){const i=`${se.F_.servicePixelValue}.${r[e]}`;t.attributes[i]=a[e]}m.push(l[e])}return m}_processMultidimensionalIntersection(e,t,i){const{multidimensionalSubset:r}=this;if(!r)return{isOutSide:!1,timeExtent:t,mosaicRule:i=this._combineMosaicRuleWithTimeExtent(i,t)};if(r){const{isOutside:i,intersection:s}=(0,oe.Rp)(r,{geometry:e,timeExtent:t});if(i)return{isOutSide:!0,timeExtent:null,mosaicRule:null};null!=s?.timeExtent&&(t=s.timeExtent)}if(i=this._combineMosaicRuleWithTimeExtent(i,t),i?.multidimensionalDefinition){const{isOutside:e}=(0,oe.Rp)(r,{multidimensionalDefinition:i.multidimensionalDefinition});if(e)return{isOutSide:!0,timeExtent:null,mosaicRule:null}}return{isOutSide:!1,timeExtent:t,mosaicRule:i}}_updateFeatureWithRasterAttributeTableValues(e,t){const i=this.rasterInfo.attributeTable||this.serviceRasterInfo.attributeTable;if(null==i)return;const{features:r,fields:s}=i,n=s.map(e=>e.name).find(e=>"value"===e.toLowerCase());if(!n)return;const o=r.filter(e=>e.attributes[n]===(null!=t?parseInt(t,10):null));o&&o[0]&&s.forEach(t=>{const i=se.ER+t.name;e.attributes[i]=o[0].attributes[t.name]})}_updateFeatureWithMagDirValues(e,t){if(!this._isVectorDataSet())return;const i=t.split(/,\s*/).map(e=>parseFloat(e)),r=i.map(e=>[e]),s=i.map(e=>({minValue:e,maxValue:e,noDataValue:null})),n=new re.A({height:1,width:1,pixelType:"f32",pixels:r,statistics:s});null!=this.pixelFilter&&this.pixelFilter({pixelBlock:n,extent:new S.A(0,0,0,0,this.spatialReference)});const o="esriImageServiceDataTypeVector-MagDir"===this.serviceDataType?[n.pixels[0][0],n.pixels[1][0]]:(0,ue.Lu)([n.pixels[0][0],n.pixels[1][0]]);e.attributes[se.F_.magnitude]=o[0],e.attributes[se.F_.direction]=o[1]}_updateFeatureWithDomainValues(e){const t=this.fields&&this.fields.filter(e=>e.domain&&"coded-value"===e.domain.type);null!=t&&t.forEach(t=>{const i=e.attributes[t.name];if(null!=i){const r=t.domain.codedValues.find(e=>e.code===i);r&&(e.attributes[t.name]=r.name)}})}_updateResponseFieldNames(e,t){if(!t||t.length<1)return;const i=this.fieldsIndex;null!=i&&e.forEach(e=>{if(e?.attributes)for(const r of t){const t=i.get(r)?.name;t&&t!==r&&(e.attributes[r]=e.attributes[t],delete e.attributes[t])}})}_getRenderingRuleString(e){if(e){let t=e.toJSON();return t=t.rasterFunctionDefinition??t,(t.thumbnail||t.thumbnailEx)&&(t.thumbnail=t.thumbnailEx=null),JSON.stringify(t)}return null}_hasRasterFunction(e){return null!=e?.functionName&&"none"!==e.functionName.toLowerCase()}_updateRenderingRulesFunctionName(e,t){if(!e||e.length<1)return;if("Raw"===e)return e.replace("Raw","None");const i=e.toLowerCase().replaceAll(/ /gi,"_");return t.has(i)?t.get(i):e}_isRFTJson(e){return e?.name&&e.arguments&&e.function&&e.hasOwnProperty("functionType")}_isVectorDataSet(){return"esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType}_applyMosaicAndRenderingRules(e){const{raster:t,mosaicRule:i,rasterFunction:r}=this;r&&null==e.rasterFunction&&(e.rasterFunction=r),i&&null==e.mosaicRule&&(e.mosaicRule=i),t&&null==e.raster&&(e.raster=t)}async _updateCurrentRasterInfo(e){if(this.renderer||this.symbolizer){const t=await this._generateRasterInfo(this.rasterFunction,{signal:e});t&&(this.rasterInfo=t)}}_applyMosaicRule(e){const{raster:t,mosaicRule:i}=this;i&&null==e.mosaicRule&&(e.mosaicRule=i),t&&null==e.raster&&(e.raster=t)}_readCapabilities(e){const t=e.capabilities?e.capabilities.toLowerCase().split(",").map(e=>e.trim()):["image","catalog"],{currentVersion:i,maxRecordCount:r}=e,s=t.includes("image"),n="esriImageServiceDataTypeElevation"===e.serviceDataType,o=!(!e.spatialReference&&!e.extent?.spatialReference),a=t.includes("edit"),l=t.includes("mensuration")&&o,u=null==e.mensurationCapabilities?[]:e.mensurationCapabilities.toLowerCase().split(",").map(e=>e.trim()),p=l&&u.includes("basic"),c=this._isMosaicDataset(e)&&t.includes("catalog"),m=t.includes("download"),d=i>=10.7&&n||i>=11.4&&(n||l&&u.includes("3d")),h=c&&e.fields&&e.fields.length>0,y=h&&e.supportsAdvancedQueries?e.advancedQueryCapabilities:void 0;return{data:{supportsAttachment:!1},operations:{supportsComputeHistograms:s,supportsExportImage:s,supportsIdentify:s,supportsImageToMap:i>=11.2&&c,supportsImageToMapMultiray:i>=11.2&&c,supportsMapToImage:i>=11.2&&c,supportsFindImages:i>=11.2&&c,supportsGetImageUrl:i>=11.3&&m,supportsMeasure:l,supportsMeasureFromImage:i>=11.2,supportsDownload:m,supportsQuery:h,supportsGetSamples:i>=10.2&&s,supportsProject:i>=10.3&&s,supportsComputeStatisticsHistograms:i>=10.4&&s,supportsQueryBoundary:i>=10.6&&s,supportsCalculateVolume:d,supportsComputePixelLocation:i>=10.7&&c,supportsComputeAngles:i>=10.91,supportsQueryGPSInfo:i>=11.2&&c,supportsAdd:a,supportsDelete:a,supportsEditing:a,supportsUpdate:a,supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsChangeTracking:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsExceedsLimitStatistics:!1,supportsQueryAnalytics:!1,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryTopFeatures:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:r,maxRecordCountFactor:void 0,maxUniqueIDCount:void 0,supportsStatistics:!!y?.supportsStatistics,supportsOrderBy:!!y?.supportsOrderBy,supportsDistinct:!!y?.supportsDistinct,supportsPagination:!!y?.supportsPagination,supportsPaginationOnAggregatedQueries:!!y?.supportsPaginationOnAggregatedQueries,supportsStandardizedQueriesOnly:!!y?.useStandardizedQueries,supportsPercentileStatistics:!!y?.supportsPercentileStatistics,supportsCentroid:!!y?.supportsReturningGeometryCentroid,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!!y?.supportsQueryWithDistance,supportsExtent:!!y?.supportsReturningQueryExtent,supportsGeometryProperties:!!y?.supportsReturningGeometryProperties,supportsHavingClause:!!y?.supportsHavingClause,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsMaxRecordCountFactor:!1,supportsSqlExpression:y?.supportsSqlExpression??!!y,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!1,supportsCacheHint:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!!y?.supportsDefaultSR,supportsFullTextSearch:!1,supportsCompactGeometry:!1,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},mensuration:{supportsDistanceAndAngle:p,supportsAreaAndPerimeter:p,supportsPointOrCentroid:p,supportsHeightFromBaseAndTop:l&&u.includes("base-top height"),supportsHeightFromBaseAndTopShadow:l&&u.includes("base-top shadow height"),supportsHeightFromTopAndTopShadow:l&&u.includes("top-top shadow height"),supports3D:l&&u.includes("3d")}}}};function r(e){return e?.path??""}return(0,s.Cg)([(0,c.MZ)({clonable:!1})],i.prototype,"_functionRasterInfos",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"_serviceSupportsMosaicRule",void 0),(0,s.Cg)([(0,Ee.w)("_serviceSupportsMosaicRule",["currentVersion","fields"])],i.prototype,"readServiceSupportsMosaicRule",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"_rasterFunctionNamesIndex",null),(0,s.Cg)([(0,c.MZ)()],i.prototype,"adjustAspectRatio",void 0),(0,s.Cg)([(0,c.MZ)({type:[b.jz],json:{write:!0}})],i.prototype,"bandIds",void 0),(0,s.Cg)([(0,Ee.w)("bandIds")],i.prototype,"readBandIds",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],i.prototype,"capabilities",void 0),(0,s.Cg)([(0,Ee.w)("service","capabilities",["capabilities","currentVersion","serviceDataType"])],i.prototype,"readCapabilities",null),(0,s.Cg)([(0,c.MZ)({type:Number})],i.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,W.K)("compressionQuality")],i.prototype,"writeCompressionQuality",null),(0,s.Cg)([(0,c.MZ)({type:Number})],i.prototype,"compressionTolerance",void 0),(0,s.Cg)([(0,W.K)("compressionTolerance")],i.prototype,"writeCompressionTolerance",null),(0,s.Cg)([(0,c.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,dependsOn:["_serviceSupportsMosaicRule"]})],i.prototype,"defaultMosaicRule",void 0),(0,s.Cg)([(0,Ee.w)("defaultMosaicRule",["defaultMosaicMethod"])],i.prototype,"readDefaultMosaicRule",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],i.prototype,"definitionExpression",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,constructOnly:!0})],i.prototype,"exportImageServiceParameters",void 0),(0,s.Cg)([(0,c.MZ)()],i.prototype,"rasterInfo",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,type:[X.A]})],i.prototype,"fields",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"fieldsIndex",null),(0,s.Cg)([(0,c.MZ)({type:["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff","bip","bsq"],json:{write:!0}})],i.prototype,"format",null),(0,s.Cg)([(0,Ee.w)("service","format",["serviceDataType"])],i.prototype,"readFormat",null),(0,s.Cg)([(0,c.MZ)({type:S.A})],i.prototype,"fullExtent",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"hasMultidimensions",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:{source:"maxImageHeight"}}})],i.prototype,"imageMaxHeight",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:{source:"maxImageWidth"}}})],i.prototype,"imageMaxWidth",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{type:H.SZ.jsonValues,read:H.SZ.read,write:H.SZ.write}})],i.prototype,"interpolation",void 0),(0,s.Cg)([(0,c.MZ)()],i.prototype,"minScale",void 0),(0,s.Cg)([(0,Ee.w)("service","minScale")],i.prototype,"readMinScale",null),(0,s.Cg)([(0,c.MZ)()],i.prototype,"maxScale",void 0),(0,s.Cg)([(0,Ee.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,s.Cg)([(0,c.MZ)({type:k.A})],i.prototype,"mosaicRule",null),(0,s.Cg)([(0,Ee.w)("mosaicRule",["mosaicRule","defaultMosaicMethod"])],i.prototype,"readMosaicRule",null),(0,s.Cg)([(0,W.K)("mosaicRule")],i.prototype,"writeMosaicRule",null),(0,s.Cg)([(0,c.MZ)()],i.prototype,"multidimensionalInfo",void 0),(0,s.Cg)([(0,c.MZ)({type:ie.A,json:{write:!0}})],i.prototype,"multidimensionalSubset",void 0),(0,s.Cg)([(0,c.MZ)({json:{type:b.jz}})],i.prototype,"noData",void 0),(0,s.Cg)([(0,W.K)("noData")],i.prototype,"writeNoData",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{type:H.hm.jsonValues,read:H.hm.read,write:H.hm.write}})],i.prototype,"noDataInterpretation",void 0),(0,s.Cg)([(0,c.MZ)({type:String,readOnly:!0,json:{read:{source:["fields"]}}})],i.prototype,"objectIdField",void 0),(0,s.Cg)([(0,Ee.w)("objectIdField")],i.prototype,"readObjectIdField",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"geometryType",void 0),(0,s.Cg)([(0,c.MZ)({})],i.prototype,"typeIdField",void 0),(0,s.Cg)([(0,c.MZ)({})],i.prototype,"types",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"parsedUrl",null),(0,s.Cg)([(0,c.MZ)({type:Function})],i.prototype,"pixelFilter",void 0),(0,s.Cg)([(0,c.MZ)()],i.prototype,"raster",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"sourceType",void 0),(0,s.Cg)([(0,Ee.w)("sourceType",["serviceSourceType","fields"])],i.prototype,"readSourceType",null),(0,s.Cg)([(0,c.MZ)()],i.prototype,"viewId",void 0),(0,s.Cg)([(0,c.MZ)()],i.prototype,"renderer",null),(0,s.Cg)([(0,c.MZ)({types:me.uy,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:me.Gj,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],i.prototype,"internalRenderer",null),(0,s.Cg)([(0,Ee.w)("internalRenderer")],i.prototype,"readRenderer",null),(0,s.Cg)([(0,W.K)("internalRenderer")],i.prototype,"writeRenderer",null),(0,s.Cg)([(0,c.MZ)({clonable:!1})],i.prototype,"symbolizer",void 0),(0,s.Cg)([(0,c.MZ)(x.ke)],i.prototype,"opacity",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"rasterFields",null),(0,s.Cg)([(0,c.MZ)({constructOnly:!0})],i.prototype,"rasterFunctionInfos",void 0),(0,s.Cg)([(0,c.MZ)({type:T.A,json:{name:"renderingRule"}})],i.prototype,"rasterFunction",null),(0,s.Cg)([(0,Ee.w)("rasterFunction",["renderingRule","rasterFunctionInfos"])],i.prototype,"readRasterFunction",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"serviceDataType",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,type:F.A})],i.prototype,"spatialReference",void 0),(0,s.Cg)([(0,Ee.w)("spatialReference",["spatialReference","extent"])],i.prototype,"readSpatialReference",null),(0,s.Cg)([(0,c.MZ)({type:H.e8.apiValues,json:{read:H.e8.read,type:H.e8.jsonValues}})],i.prototype,"pixelType",void 0),(0,s.Cg)([(0,W.K)("pixelType")],i.prototype,"writePixelType",null),(0,s.Cg)([(0,c.MZ)({constructOnly:!0,type:ne.A})],i.prototype,"serviceRasterInfo",void 0),(0,s.Cg)([(0,c.MZ)()],i.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,c.MZ)(x.OZ)],i.prototype,"url",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"version",void 0),(0,s.Cg)([(0,Ee.w)("version",["currentVersion","fields","timeInfo"])],i.prototype,"readVersion",null),i=(0,s.Cg)([(0,c.$K)("esri.layers.mixins.ArcGISImageService")],i),i};var Kt=i(18768),Qt=i(63074),kt=i(69208),Ht=i(16131),Wt=i(8303),Yt=i(63660),Xt=i(56551),ei=i(54310),ti=i(25036),ii=i(82935),ri=i(91908),si=i(56776),ni=i(30291),oi=i(88625);let ai=class extends((0,Qt.dM)((0,ii.e)((0,ti.j)((0,Ht.q)((0,Wt.A)((0,Xt.H)(Bt((0,Yt.G)((0,ei.J)((0,kt.d)((0,Kt.b)((0,u.P)((0,o.OU)(g.A)))))))))))))){constructor(...e){super(...e),this.graphicOrigin=new y(this),this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.type="imagery",this._debouncedSaveOperations=(0,p.sg)(async(e,t,r)=>{const{save:s,saveAs:n}=await i.e(9838).then(i.bind(i,59838));switch(e){case 0:return s(this,t);case 1:return n(this,r,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._fetchService(t))),Promise.resolve(this)}set elevationInfo(e){"relative-to-scene"!==e?.mode&&this._set("elevationInfo",e),this._validateElevationInfo(e)}get legendEnabled(){return!this._isPreviewLayer&&(this._get("legendEnabled")??!0)}set legendEnabled(e){this._set("legendEnabled",e)}get listMode(){return this._isPreviewLayer?"hide":this._get("listMode")}set listMode(e){this._set("listMode",e)}writeOperationalLayerType(e,t,i){const r="vector-field"===this.renderer?.type;t[i]=r?"ArcGISImageServiceVectorLayer":"ArcGISImageServiceLayer"}get defaultPopupTemplate(){return this.createPopupTemplate()}get _isPreviewLayer(){return!(!this.raster||!this.url?.toLowerCase().includes("/rasterrendering/imageserver"))}createPopupTemplate(e){const{rasterFields:t}=this,i=new Set,r=se.F_.itemPixelValue.toLowerCase(),s="raster-dataset"===this.sourceType,n=se.Oo.toLowerCase(),o=`${se.F_.servicePixelValue.toLowerCase()}.`;for(const e of t){const t=e.name.toLowerCase();t===r||t.startsWith(o)||s&&t.startsWith(n)||i.add(e.name)}const a=(0,ni.tn)({fields:t,title:this.title},{...e,visibleFieldNames:i}),{rasterInfo:l}=this;return a?.fieldInfos&&l&&(0,se.h4)(a.fieldInfos,l),a}queryFeatures(e,t){return this.queryRasters(e,t).then(e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}queryFeatureCount(e,t){return this.queryRasterCount(e,t)}redraw(){this.emit("redraw")}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,ri.D)(this,e)}write(e,t){if(!this._isPreviewLayer)return super.write(e,t);if(t?.messages){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t.messages.push(new a.A("layer:unsupported",`Imagery preview layer (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this}))}return null}_validateElevationInfo(e){(0,si.XF)(l.A.getLogger(this),(0,si.$7)("Imagery layers","relative-to-scene",e)),(0,si.XF)(l.A.getLogger(this),(0,si.tW)("Imagery layers",e))}};(0,s.Cg)([(0,c.MZ)({type:oi.A,value:null,json:{name:"layerDefinition.elevationInfo",write:!0,origins:{"portal-item":{read:!1,write:!1},"web-map":{read:!1,write:!1}}}})],ai.prototype,"elevationInfo",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0,clonable:!1})],ai.prototype,"graphicOrigin",void 0),(0,s.Cg)([(0,c.MZ)(x.fV)],ai.prototype,"legendEnabled",null),(0,s.Cg)([(0,c.MZ)({type:["show","hide"]})],ai.prototype,"listMode",null),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],ai.prototype,"isReference",void 0),(0,s.Cg)([(0,c.MZ)({type:["ArcGISImageServiceLayer"],json:{origins:{"web-map":{type:["ArcGISImageServiceLayer","ArcGISImageServiceVectorLayer"],read:!1,write:{target:"layerType",ignoreOrigin:!0}}}}})],ai.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,W.K)("web-map","operationalLayerType")],ai.prototype,"writeOperationalLayerType",null),(0,s.Cg)([(0,c.MZ)(x.M6)],ai.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,c.MZ)({type:n.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],ai.prototype,"popupTemplate",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],ai.prototype,"defaultPopupTemplate",null),(0,s.Cg)([(0,c.MZ)(x.PY)],ai.prototype,"screenSizePerspectiveEnabled",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],ai.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],ai.prototype,"_isPreviewLayer",null),ai=(0,s.Cg)([(0,c.$K)("esri.layers.ImageryLayer")],ai);const li=ai},91908:(e,t,i)=>{i.d(t,{D:()=>n});var r=i(60694);const s=[];function n(e,t){if((0,r.Wo)(e.url??""))return!0;const{wkid:i}=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(i))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}])},92722:(e,t,i)=>{i.d(t,{A:()=>s});var r=i(69397);class s{constructor(e=[],t=[],i=!1,r=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=i,this.hasM=r}static fromJSON({lengths:e,coords:t,hasZ:i,hasM:r}){return new s(e,t,i||!1,r||!1)}static fromRect([e,t,i,r]){const n=i-e,o=r-t;return new s([5],[e,t,n,0,0,o,-n,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const i of this.lengths){if(i<3)continue;const{stride:r}=this;let s=this.coords[r*t],n=this.coords[r*t+1];for(let o=1;o<i;o+=1){const i=r*(t+o),a=this.coords[i],l=this.coords[i+1];e+=-.5*(a-s)*(l+n),s=a,n=l}t+=i}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:i}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=i*(t+s);e(this.coords[r],this.coords[r+1])}t+=r}}deltaDecode(){const e=this.clone(),{coords:t,lengths:i}=e;let r=0;const{stride:s}=this;for(const e of i){for(let i=1;i<e;i++){const e=s*(r+i);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}r+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const{stride:t,size:i}=this,r=i*t,n=this.coords.slice(0,r);return e?(e.set(n),new s(this.lengths,e)):new s(Array.from(this.lengths),Array.from(n),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const i=new Array(t*e);for(let t=0,r=0;t<i.length;t+=e)i[r++]=this.coords[t],i[r++]=this.coords[t+1];return new s(this.lengths,i,!1,!1)}}},95466:(e,t,i)=>{i.d(t,{A:()=>d});var r=i(49186),s=i(53966),n=i(91869),o=i(3330),a=i(12195),l=i(30524),u=i(98623),p=i(56400),c=i(28097);const m=new Map;class d{static fromJSON(e){return new d(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new d(e.fields??[],f(e))}static fromLayerJSON(e){return new d(e.fields??[],f(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,r=y(t);if(t&&r){const s=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(s,e),this._normalizedFieldsMap.set(r,e),i.push(`${s}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.te)(e)||(0,l.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,l.te)(e)||(0,l.Xz)(e)||e.nullable||void 0!==(0,l.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(s.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):g.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?c.mQ.utcInstance:(0,n.tE)(m,t,()=>c.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,a.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function y(e){return(0,l.rS)(e)?.toLowerCase()??""}const g=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function f(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:s}=e,n=(r?"startField"in r?r.startField:r.startTimeField:"")??"",o=(r?"endField"in r?r.endField:r.endTimeField:"")??"",a=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,p.ZS)(e.dateFieldsTimeReference):null,l=s?function(e){return"timeZone"in e}(s)?s.timeZone??a:s.dateFieldsTimeReference?(0,p.ZS)(s.dateFieldsTimeReference):a??u.n$:null,c=r?function(e){return"timeZone"in e}(r)?r.timeZone??a:r.timeReference?(0,p.ZS)(r.timeReference):a:null,m=new Map([[h(s?.creationDateField??""),l],[h(s?.editDateField??""),l],[h(n),c],[h(o),c]]);for(const{name:r,type:s}of e.fields)if(g.has(s))t.set(r,u.L5);else if("date"!==s&&"esriFieldTypeDate"!==s)t.set(r,null);else if(i)t.set(r,u.L5);else{const e=m.get(h(r??""))??a;t.set(r,e)}return t}},99199:(e,t,i)=>{i.d(t,{e:()=>l,s:()=>a});var r=i(2272),s=i(80893),n=i(22671),o=i(61956);async function a(e,t,i,r){const s=await l(e,t,i,r);return n.A.fromJSON(s)}function l(e,t,i,n){const a=(0,r.Dl)(e),l={...i},u=o.A.from(t);return(0,s.eW)(a,u,u.sourceSpatialReference,l,n)}}}]);
|