@arcgis/core 4.29.4 → 4.29.6
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/{863d14c98737482f6788.js → 0700231efdaf7ce06d19.js} +1 -1
- package/assets/esri/core/workers/chunks/{9f0c5822e9f2761054ea.js → 07ef6a6c4f3fce7508eb.js} +1 -1
- package/assets/esri/core/workers/chunks/{2146f7e55911da806aec.js → 2ca0fc695c66640a57dd.js} +1 -1
- package/assets/esri/core/workers/chunks/{90b36361651839b1e3f0.js → 326aa2951f7e4da6d6b0.js} +1 -1
- package/assets/esri/core/workers/chunks/{1251638c842dcf895ffe.js → 37133cf60bc9039a7407.js} +1 -1
- package/assets/esri/core/workers/chunks/47504e296bf82357f6bb.js +1 -0
- package/assets/esri/core/workers/chunks/{de6d54df7ae32694fd70.js → 534abb4408b15ac778dd.js} +1 -1
- package/assets/esri/core/workers/chunks/a068f0c8c1c632e8b2cb.js +1 -0
- package/assets/esri/core/workers/chunks/{2621b755fa5403bd8a4c.js → e232f6fca5629ae66dcc.js} +1 -1
- package/assets/esri/core/workers/chunks/{0e56ff6978ba8d9cf0c0.js → f74eec62bcf3264e2d90.js} +1 -1
- package/assets/esri/core/workers/chunks/{8a9387483b19a5ec5b86.js → fc5ac713872766571e07.js} +1 -1
- package/assets/esri/themes/base/widgets/_LayerList.scss +2 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/core/workers/InvokeHandler.js +1 -1
- package/core/workers/RemoteClient.js +1 -1
- package/core/workers/utils.js +1 -1
- package/interfaces.d.ts +47 -35
- package/kernel.js +1 -1
- package/layers/support/Sublayer.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/symbols/support/urlUtils.js +1 -1
- package/views/2d/engine/Stage.js +1 -1
- package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/Technique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/TechniqueRegistry.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapResources.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/utils.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/StreamLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/PipelineConnectionHandlers.js +1 -1
- package/views/2d/layers/features/Processor.js +1 -1
- package/views/2d/layers/features/RenderState.js +1 -1
- package/views/2d/layers/features/processor/AProcessorStrategy.js +1 -1
- package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
- package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/AFetchLoadStrategy.js +1 -1
- package/views/2d/layers/support/handleNoEngineError.js +5 -0
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/MapView.js +1 -1
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
- package/widgets/LayerList/support/layerListUtils.js +1 -1
- package/widgets/LayerList.js +1 -1
- package/widgets/VersionManagement/VersionManagementViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/686a76adc741eef369ee.js +0 -1
- package/assets/esri/core/workers/chunks/a48201b109e9e9aab2d6.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9056],{13452:(e,t,r)=>{r.d(t,{c:()=>p});var i=r(41948),n=r(3856),s=r(40504),o=r(94360),a=r(1580),l=(r(9456),r(66360),r(72052),r(9968)),c=r(12552),u=r(4736);let d=class extends((0,n.q)(s.am)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.QJ)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.G)(u.e,{nonNullable:!0})],d.prototype,"unit",void 0),(0,i._)([(0,a.qq)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,i._)([(0,c.c)("esri.TimeInterval")],d);const p=d},54792:(e,t,r)=>{r.d(t,{c:()=>s});var i=r(67432),n=r(9592);class s{constructor(e=(e=>e.values().next().value)){this._peeker=e,this._observable=new n.n,this._items=new Set}get length(){return(0,i.am)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,i.am)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length;return this._items.forEach((t=>{e(t)||this._items.delete(t)})),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,i.am)(this._observable),yield*this._items}}},46448:(e,t,r)=>{r.d(t,{c:()=>c});var i=r(38912),n=r(10860),s=r(54792),o=r(13056),a=r(25512),l=r(38432);class c{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new s.c}destroy(){this.close()}get closed(){return!this._clients?.length}open(e,t){return new Promise(((r,i)=>{let s=!0;const o=e=>{(0,n.wp)(t.signal),s&&(s=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let s=0;s<e.length;++s){const a=e[s];(0,n.eW)(a)?this._clientPromises[s]=a.then((e=>(this._clients[s]=new l.default(e,t,this._ongoingJobsQueue),o(r),this._clients[s])),(()=>(o(i),null))):(this._clients[s]=new l.default(a,t,this._ongoingJobsQueue),this._clientPromises[s]=Promise.resolve(this._clients[s]),o(r))}}))}broadcast(e,t,r){const i=new Array(this._clientPromises.length);for(let n=0;n<this._clientPromises.length;++n){const s=this._clientPromises[n];i[n]=s.then((i=>i?.invoke(e,t,r)))}return i}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,n.Uh)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then((e=>e?.close()));this._clients.length=0,this._clientPromises.length=0,this._inUseClients.length=0,(0,o.S)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const i=(0,n.qG)();this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:r,resolver:i});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then((e=>e?.jobAdded()))}return i.promise}createInvokeProxy(e){return(0,a.Y)(this,e)}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,i.Ip)(this._clients.map((r=>r.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let r=t.length;for(let i=0;i<this._clientPromises.length;++i)this._clientPromises[i].then((n=>{n&&(t[i]=n.openPort()),0==--r&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},13056:(e,t,r)=>{r.d(t,{S:()=>s,s:()=>n});const i=new FinalizationRegistry((e=>{e.close()}));function n(e,t){i.register(e,t,t)}function s(e){i.unregister(e)}},35268:(e,t,r)=>{r.d(t,{eU:()=>Z});var i=r(20744),n=r(9456),s=r(10860),o=r(46448),a=r(13056),l=r(38432),c=r(66360),u=r(70680),d=r(2600),p=r(28176);const m={async request(e,t){const r=e.options,i=r.responseType;r.signal=t?.signal,r.responseType="native"===i||"native-request-init"===i?"native-request-init":i&&["blob","json","text"].includes(i)&&(0,p.OO)(e.url)?.after?i:"array-buffer";const n=await(0,d.c)(e.url,r),s={data:n.data,httpStatus:n.httpStatus,ssl:n.ssl};switch(n.requestOptions?.responseType){case"native-request-init":return delete s.data.signal,s;case"blob":s.data=await s.data.arrayBuffer();break;case"json":s.data=(new TextEncoder).encode(JSON.stringify(s.data)).buffer;break;case"text":s.data=(new TextEncoder).encode(s.data).buffer}return{result:s,transferList:[s.data]}}};var h=r(31056),g=r(24832),y=r(6220),f=(r(2016),r(47620));const w={};var M=r(52324);class I{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...r)=>e[t](...r)}))}}class v{constructor(){this._dispatcher=new I,this._workerPostMessage({type:h.MessageType.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,M.o)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,M.o)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,h.mO)(e);if(t&&t.type===h.MessageType.OPEN){const{modulePath:e,jobId:r}=t;let i=await l.default.loadWorker(e);i||(i=await import(e));const n=l.default.connect(i);this._workerPostMessage({type:h.MessageType.OPENED,jobId:r,data:n})}}}var b=r(89960),A=r(69880);const D=()=>c.c.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:T}=h.MessageType;let S,N;const j="Failed to create Worker. Fallback to execute module in main thread";async function C(e){return new Promise((t=>{function r(n){const s=(0,h.mO)(n);s&&s.type===T&&(e.removeEventListener("message",r),e.removeEventListener("error",i),t(e))}function i(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",i),D().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new v).addEventListener("message",r),e.addEventListener("error",i)}e.addEventListener("message",r),e.addEventListener("error",i)}))}let _=0;const{ABORT:x,INVOKE:L,OPEN:k,OPENED:q,RESPONSE:U}=h.MessageType;class E{static async create(e){const t=await async function(){if(!(0,n.c)("esri-workers"))return C(new v);if(!S&&!N)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,s)=>{if(t){if(t.aborted)return s(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:ABORT,jobId:n}),s(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:s}),self.postMessage({type:INVOKE,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\\nModules version: ${r}\\nAssets version: ${n??s}\\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case OPEN:let n;function t(e){const o=n.connect(e);self.postMessage({type:OPENED,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case RESPONSE:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split('"{CONFIGURATION}"').join(`'${function(){let e;if(null!=y.default.default){const t={...y.default};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(y.default));e.assetsPath=(0,p.WM)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,p.WM)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,b.a8)(),e.has={"esri-csp-restrictions":(0,n.c)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,n.c)("esri-2d-update-debug"),"esri-2d-log-updating":(0,n.c)("esri-2d-log-updating"),"featurelayer-pbf":(0,n.c)("featurelayer-pbf"),"featurelayer-fast-triangulation-enabled":(0,n.c)("featurelayer-fast-triangulation-enabled"),"featurelayer-simplify-thresholds":(0,n.c)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,n.c)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,n.c)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,n.c)("featurelayer-query-max-depth"),"featurelayer-query-pausing-enabled":(0,n.c)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-enabled":(0,n.c)("featurelayer-snapshot-enabled"),"esri-atomics":(0,n.c)("esri-atomics"),"esri-shared-array-buffer":(0,n.c)("esri-shared-array-buffer"),"esri-tiles-debug":(0,n.c)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,n.c)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,n.c)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,p.WM)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,p.WM)(e.workers.workerPath):e.workers.workerPath=(0,p.WM)((0,g.O)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=y.default.workers.loaderConfig,r=function(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=w.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,b.a8)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),i={buildDate:A.W,fullVersion:f.c1,revision:A.m};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:i})}()}'`);S=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){N=e||{}}let e;if(S)try{e=new Worker(S,{name:"esri-worker-"+_++})}catch(t){D().warn(j,N),e=new v}else D().warn(j,N),e=new v;return C(e)}();return new E(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),c.c.getLogger("esri.core.workers.WorkerOwner").error(e)}))}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,i=(0,h.EH)();return new Promise(((t,n)=>{const o={resolve:t,reject:n,abortHandle:(0,s.Ij)(r,(()=>{this._outJobs.delete(i),this._post({type:x,jobId:i})}))};this._outJobs.set(i,o),this._post({type:k,jobId:i,modulePath:e})}))}_onMessage(e){const t=(0,h.mO)(e);if(t)switch(t.type){case q:this._onOpenedMessage(t);break;case U:this._onResponseMessage(t);break;case x:this._onAbortMessage(t);break;case L:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,i=t.get(r);i&&(i.controller&&i.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:i,abortable:n}=e,o=n?new AbortController:null,a=this._inJobs,l=m[t];let c;try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`);c=l.call(null,i,{signal:o?o.signal:null})}catch(e){return void this._post({type:U,jobId:r,error:(0,h.O)(e)})}(0,s.eW)(c)?(a.set(r,{controller:o,promise:c}),c.then((e=>{a.has(r)&&(a.delete(r),this._post({type:U,jobId:r},e))}),(e=>{a.has(r)&&(a.delete(r),e||(e={message:"Error encountered at method"+t}),(0,s.mA)(e)||this._post({type:U,jobId:r,error:(0,h.O)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:U,jobId:r},c)}_onOpenedMessage(e){const{jobId:t,data:r}=e,i=this._outJobs.get(t);i&&(this._outJobs.delete(t),(0,u.oR)(i.abortHandle),i.resolve(r))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,u.oR)(s.abortHandle),r?s.reject(i.c.fromJSON(JSON.parse(r))):s.resolve(n))}_post(e,t,r){return(0,h.E9)(this.worker,e,t,r)}}const R=(0,n.c)("host-browser")?Math.min(navigator.hardwareConcurrency-1,(0,n.c)("workers-pool-size")):0;let z=(0,n.c)("esri-mobile")?Math.min(R,3):R;z||(z=(0,n.c)("safari")&&(0,n.c)("mac")?7:2);let B=0;const P=[];async function H(e,t){const r=new o.c,{registryTarget:i,...n}=t;return await r.open(e,n),i&&(0,a.s)(i,r),r}async function Z(e,t={}){if("string"!=typeof e)throw new i.c("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if((0,n.c)("host-webworker")&&!(0,n.c)("esri-workers")&&(r="local"),"local"===r){let r=await l.default.loadWorker(e);r||(r=await import(e)),(0,s.wp)(t.signal);const i=t.client||r;return H([l.default.connect(r)],{...t,client:i})}if(await async function(){if(F)return F;O=new AbortController;const e=[];for(let t=0;t<z;t++){const r=E.create(t).then((e=>(P[t]=e,e)));e.push(r)}return F=Promise.all(e),F}(),(0,s.wp)(t.signal),"dedicated"===r){const r=B++%z;return H([await P[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,z);if(r<z){const i=new Array(r);for(let n=0;n<r;++n){const r=B++%z;i[n]=P[r].open(e,t)}return H(i,t)}}return H(P.map((r=>r.open(e,t))),t)}let O,F=null},77048:(e,t,r)=>{r.d(t,{C6:()=>d,FZ:()=>h,K:()=>M,K8:()=>l,MZ:()=>a,Qv:()=>g,Su:()=>n,UN:()=>I,WK:()=>s,WO:()=>m,WU:()=>o,eC:()=>u,is:()=>f,mK:()=>p,qe:()=>c,qy:()=>y,yK:()=>w});var i=r(95247);function n(e=I){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,r,i,s,o,a=n()){return a[0]=e,a[1]=t,a[2]=r,a[3]=i,a[4]=s,a[5]=o,a}function o(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.c(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function c(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],o=e[2],a=e[3],l=e[4],c=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),o=Math.min(o,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),c=Math.max(c,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=c}function u(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function d(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function p(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function h(e){return e?m(e,M):n(M)}function g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function y(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function f(e){return 6===e.length}function w(e,t,r){if(null==e||null==t)return e===t;if(!f(e)||!f(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(83372);const M=[1/0,1/0,1/0,-1/0,-1/0,-1/0],I=[0,0,0,0,0,0];n()},16660:(e,t,r)=>{r.d(t,{u:()=>l});var i=r(41948),n=r(66360),s=r(1580),o=(r(9456),r(72052),r(12552)),a=r(48212);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.K0)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.oR)(e,n.c.getLogger(this)))}};return(0,i._)([(0,s.qq)()],t.prototype,"title",null),(0,i._)([(0,s.qq)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,o.c)("esri.layers.mixins.ArcGISService")],t),t}},28584:(e,t,r)=>{r.d(t,{G:()=>o});var i=r(41948),n=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,n.qq)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,s.c)("esri.layers.mixins.CustomParametersMixin")],t),t}},98768:(e,t,r)=>{r.d(t,{K:()=>b});var i=r(41948),n=r(6220),s=r(47620),o=r(2600),a=r(40196),l=r(20744),c=r(66360),u=r(70680),d=r(10860),p=r(28176),m=r(1580),h=(r(9456),r(72052),r(33600)),g=r(12552),y=r(18996),f=r(71068),w=r(54872),M=r(9764),I=r(53039),v=r(46940);const b=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.mG)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new M.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await Promise.all([r.e(8828),r.e(4132)]).then(r.bind(r,94132));return(0,d.wp)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,d.mA)(e)||c.c.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,d.CE)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,d.CE)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,v.CI)(r);let n,o;if(i)n=r.portal.url;else try{n=await(0,f.mK)(this.url,t)}catch(e){(0,d.CE)(e)}if(!n||!(0,p.Cs)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.CE)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new M.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,v.CI)(r)}catch(e){(0,d.CE)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.CE)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=A.credential===t?A.user:await this._fetchEditingUser(e);return A.credential=t,A.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=w.c.getDefault();if(n&&n.loaded&&(0,p.k7)(n.restUrl)===(0,p.k7)(i))return n.user;const l=`${i}/community/self`,c=null!=e?e.signal:null,u=await(0,a.aG)((0,o.c)(l,{authMode:"no-prompt",query:{f:"json"},signal:c}));return u.ok?I.c.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||w.c.getDefault());return r&&i&&!(0,p.kF)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.c("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,m.qq)({type:M.default})],t.prototype,"portalItem",null),(0,i._)([(0,h.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,y.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,m.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,m.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,m.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,m.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,g.c)("esri.layers.mixins.PortalLayer")],t),t},A={credential:null,user:null}},19560:(e,t,r)=>{r.d(t,{u:()=>p});var i=r(41948),n=r(25228),s=r(13452),o=r(1580),a=(r(9456),r(66360),r(72052),r(33600)),l=r(12552),c=r(564),u=r(99336),d=r(4736);const p=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=d.e.fromJSON(r.timeOffsetUnits);return i&&n?new s.c({value:i,unit:n}):null}set timeInfo(e){(0,c.Wc)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,o.qq)({type:n.c,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,o.qq)({type:s.c})],t.prototype,"timeOffset",void 0),(0,i._)([(0,a.E)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,o.qq)({value:null,type:u.c,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,o.qq)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,l.c)("esri.layers.mixins.TemporalLayer")],t),t}},91768:(e,t,r)=>{r.d(t,{c:()=>d});var i,n=r(41948),s=r(40504),o=r(62088),a=r(1580),l=r(53368),c=r(12552);let u=i=class extends s.am{constructor(e){super(e),this.variableName=null,this.dimensionName=null,this.values=[],this.isSlice=!1}clone(){return new i({variableName:this.variableName,dimensionName:this.dimensionName,values:(0,o.ct)(this.values),isSlice:this.isSlice})}};(0,n._)([(0,a.qq)({type:String,json:{write:!0}})],u.prototype,"variableName",void 0),(0,n._)([(0,a.qq)({type:String,json:{write:!0}})],u.prototype,"dimensionName",void 0),(0,n._)([(0,a.qq)({type:l.i2.array(l.i2.oneOf([l.i2.native(Number),l.i2.array(l.i2.native(Number))])),json:{write:!0}})],u.prototype,"values",void 0),(0,n._)([(0,a.qq)({type:Boolean,json:{write:!0}})],u.prototype,"isSlice",void 0),u=i=(0,n._)([(0,c.c)("esri.layers.support.DimensionalDefinition")],u);const d=u},600:(e,t,r)=>{r.d(t,{c:()=>y});var i,n=r(41948),s=r(14628),o=r(40504),a=r(1580),l=r(53368),c=(r(72052),r(9456),r(9968)),u=r(33600),d=r(12552),p=r(89812),m=r(36408);const h=new s.O({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let g=i=class extends o.am{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?h.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n._)([(0,a.qq)({type:String,json:{write:!0}})],g.prototype,"alias",void 0),(0,n._)([(0,a.qq)({type:[String,Number],json:{write:{allowNull:!0}}})],g.prototype,"defaultValue",void 0),(0,n._)([(0,a.qq)()],g.prototype,"description",void 0),(0,n._)([(0,u.E)("description")],g.prototype,"readDescription",null),(0,n._)([(0,a.qq)({types:p.i2,json:{read:{reader:p.h4},write:!0}})],g.prototype,"domain",void 0),(0,n._)([(0,a.qq)({type:Boolean,json:{write:!0}})],g.prototype,"editable",void 0),(0,n._)([(0,a.qq)({type:l.Ab,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],g.prototype,"length",void 0),(0,n._)([(0,a.qq)({type:String,json:{write:!0}})],g.prototype,"name",void 0),(0,n._)([(0,a.qq)({type:Boolean,json:{write:!0}})],g.prototype,"nullable",void 0),(0,n._)([(0,c.G)(m.M)],g.prototype,"type",void 0),(0,n._)([(0,a.qq)()],g.prototype,"valueType",void 0),(0,n._)([(0,u.E)("valueType",["description"])],g.prototype,"readValueType",null),(0,n._)([(0,a.qq)({type:Boolean,json:{read:!1}})],g.prototype,"visible",void 0),g=i=(0,n._)([(0,d.c)("esri.layers.support.Field")],g);const y=g},88392:(e,t,r)=>{r.d(t,{c:()=>b});var i,n=r(41948),s=r(26832),o=r(14628),a=r(40504),l=r(62088),c=r(66360),u=r(1580),d=r(33392),p=r(33600),m=r(12552),h=r(18996),g=r(53368),y=r(67776),f=r(91768),w=r(75e3);const M=(0,o.w)()({MT_FIRST:"first",MT_LAST:"last",MT_MIN:"min",MT_MAX:"max",MT_MEAN:"mean",MT_BLEND:"blend",MT_SUM:"sum"}),I=(0,o.w)()({esriMosaicNone:"none",esriMosaicCenter:"center",esriMosaicNadir:"nadir",esriMosaicViewpoint:"viewpoint",esriMosaicAttribute:"attribute",esriMosaicLockRaster:"lock-raster",esriMosaicNorthwest:"northwest",esriMosaicSeamline:"seamline"});let v=i=class extends a.am{constructor(e){super(e),this.ascending=!0,this.itemRasterFunction=null,this.lockRasterIds=null,this.method=null,this.multidimensionalDefinition=null,this.objectIds=null,this.operation=null,this.sortField=null,this.sortValue=null,this.viewpoint=null,this.where=null}readAscending(e,t){return null!=t.ascending?t.ascending:null==t.sortAscending||t.sortAscending}get itemRenderingRule(){return(0,s.y2)(c.c.getLogger(this),"itemRenderingRule",{replacement:"itemRasterFunction",version:"4.27",warnOnce:!0}),this._get("itemRasterFunction")}set itemRenderingRule(e){(0,s.y2)(c.c.getLogger(this),"itemRenderingRule",{replacement:"itemRasterFunction",version:"4.27",warnOnce:!0}),this._set("itemRasterFunction",e)}readMethod(e,t){return function(e){let t;switch(e?e.toLowerCase().replace("esrimosaic",""):""){case"byattribute":case"attribute":t="esriMosaicAttribute";break;case"lockraster":t="esriMosaicLockRaster";break;case"center":t="esriMosaicCenter";break;case"northwest":t="esriMosaicNorthwest";break;case"nadir":t="esriMosaicNadir";break;case"viewpoint":t="esriMosaicViewpoint";break;case"seamline":t="esriMosaicSeamline";break;default:t="esriMosaicNone"}return I.fromJSON(t)}(t.mosaicMethod||t.defaultMosaicMethod)}writeMultidimensionalDefinition(e,t,r){null!=e&&(e=e.filter((({variableName:e,dimensionName:t})=>e&&"*"!==e||t))).length&&(t[r]=e.map((e=>e.toJSON())))}readOperation(e,t){const r=t.mosaicOperation,i=t.mosaicOperator?.toLowerCase(),n=r||(i?M.toJSON(i):null);return M.fromJSON(n)||"first"}castSortValue(e){return null==e||"string"==typeof e||"number"==typeof e?e:`${e}`}clone(){return new i({ascending:this.ascending,itemRasterFunction:(0,l.ct)(this.itemRasterFunction),lockRasterIds:(0,l.ct)(this.lockRasterIds),method:this.method,multidimensionalDefinition:(0,l.ct)(this.multidimensionalDefinition),objectIds:(0,l.ct)(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:(0,l.ct)(this.viewpoint),where:this.where})}};(0,n._)([(0,u.qq)({type:Boolean,json:{write:!0}})],v.prototype,"ascending",void 0),(0,n._)([(0,p.E)("ascending",["ascending","sortAscending"])],v.prototype,"readAscending",null),(0,n._)([(0,u.qq)({type:w.c,json:{name:"itemRenderingRule",write:!0}})],v.prototype,"itemRasterFunction",void 0),(0,n._)([(0,u.qq)({type:w.c})],v.prototype,"itemRenderingRule",null),(0,n._)([(0,u.qq)({type:[g.Ab],json:{write:{overridePolicy(){return{enabled:"lock-raster"===this.method}}}}})],v.prototype,"lockRasterIds",void 0),(0,n._)([(0,u.qq)({type:String,json:{type:I.jsonValues,write:{target:"mosaicMethod",writer:I.write}}})],v.prototype,"method",void 0),(0,n._)([(0,p.E)("method",["mosaicMethod","defaultMosaicMethod"])],v.prototype,"readMethod",null),(0,n._)([(0,u.qq)({type:[f.c],json:{write:!0}})],v.prototype,"multidimensionalDefinition",void 0),(0,n._)([(0,h.G)("multidimensionalDefinition")],v.prototype,"writeMultidimensionalDefinition",null),(0,n._)([(0,u.qq)({type:[g.Ab],json:{name:"fids",write:!0}})],v.prototype,"objectIds",void 0),(0,n._)([(0,u.qq)({json:{type:M.jsonValues,read:{reader:M.read},write:{target:"mosaicOperation",writer:M.write}}})],v.prototype,"operation",void 0),(0,n._)([(0,p.E)("operation",["mosaicOperation","mosaicOperator"])],v.prototype,"readOperation",null),(0,n._)([(0,u.qq)({type:String,json:{write:{overridePolicy(){return{enabled:"attribute"===this.method}}}}})],v.prototype,"sortField",void 0),(0,n._)([(0,u.qq)({type:[String,Number],json:{write:{allowNull:!0,overridePolicy(){return{enabled:"attribute"===this.method,allowNull:!0}}}}})],v.prototype,"sortValue",void 0),(0,n._)([(0,d.W)("sortValue")],v.prototype,"castSortValue",null),(0,n._)([(0,u.qq)({type:y.c,json:{write:!0}})],v.prototype,"viewpoint",void 0),(0,n._)([(0,u.qq)({type:String,json:{write:!0}})],v.prototype,"where",void 0),v=i=(0,n._)([(0,m.c)("esri.layers.support.MosaicRule")],v);const b=v},72464:(e,t,r)=>{r.d(t,{c:()=>h});var i,n=r(41948),s=(r(60708),r(40504)),o=r(1580),a=(r(9456),r(66360),r(72052),r(12552)),l=r(95247),c=r(7488),u=r(6704),d=r(91768);const p={base:r(50853).c,key:"type",typeMap:{extent:l.c,polygon:c.c}};let m=i=class extends s.am{constructor(e){super(e),this.areaOfInterest=null,this.subsetDefinitions=null}get dimensions(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Map;e.forEach((e=>{if(!e.dimensionName)return;let r,i;if(Array.isArray(e.values[0])){const t=e.values;r=t[0][0],i=t[e.values.length-1][1]}else{const t=e.values;r=t[0],i=t[e.values.length-1]}if(t.has(e.dimensionName)){const n=t.get(e.dimensionName);n[0]=Math.min(r,n[0]),n[1]=Math.max(i,n[1])}else t.set(e.dimensionName,[r,i])}));const r=[];for(const e of t)r.push({name:e[0],extent:e[1]});return r}get variables(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Set;return e.forEach((e=>{e.variableName&&t.add(e.variableName)})),[...t]}clone(){const e=this.subsetDefinitions?.map((e=>e.clone())),t=this.areaOfInterest?this.areaOfInterest.clone():this.areaOfInterest;return new i({areaOfInterest:t,subsetDefinitions:e})}};(0,n._)([(0,o.qq)({types:p,json:{read:u.h4,write:!0}})],m.prototype,"areaOfInterest",void 0),(0,n._)([(0,o.qq)({readOnly:!0})],m.prototype,"dimensions",null),(0,n._)([(0,o.qq)({readOnly:!0})],m.prototype,"variables",null),(0,n._)([(0,o.qq)({type:[d.c],json:{write:!0}})],m.prototype,"subsetDefinitions",void 0),m=i=(0,n._)([(0,a.c)("esri.layers.support.MultidimensionalSubset")],m);const h=m},75e3:(e,t,r)=>{r.d(t,{c:()=>L});var i=r(41948),n=r(40504),s=r(62088),o=r(1580),a=(r(9456),r(66360),r(9968)),l=r(33600),c=r(12552),u=r(18996),d=r(14628),p=r(53368),m=(r(72052),r(59520));let h=class extends n.am{constructor(){super(...arguments),this.pixelType="unknown"}};(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],h.prototype,"description",void 0),(0,i._)([(0,o.qq)({type:p.Ab,json:{type:p.Ab,write:!0,name:"_object_id"}})],h.prototype,"id",void 0),(0,i._)([(0,o.qq)({type:String,json:{type:m.K0.jsonValues,read:m.K0.read,write:m.K0.write}})],h.prototype,"pixelType",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],h.prototype,"type",void 0),h=(0,i._)([(0,c.c)("esri.layers.support.RasterFunctionInfo")],h);const g=h;let y=class extends n.am{constructor(){super(...arguments),this.isDataset=!1,this.isPublic=!1,this.type="RasterFunctionVariable"}};(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,i._)([(0,o.qq)({type:Number,json:{type:p.Ab,write:!0,name:"_object_id"}})],y.prototype,"id",void 0),(0,i._)([(0,o.qq)({type:Boolean,json:{write:!0}})],y.prototype,"isDataset",void 0),(0,i._)([(0,o.qq)({type:Boolean,json:{write:!0}})],y.prototype,"isPublic",void 0),(0,i._)([(0,o.qq)({json:{write:!0}})],y.prototype,"value",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"type",void 0),y=(0,i._)([(0,c.c)("esri.layers.support.RasterFunctionVariable")],y);const f={key:"type",base:null,typeMap:{RasterFunctionVariable:y}};let w=class extends n.am{};(0,i._)([(0,o.qq)({types:f,json:{types:f,name:"MatchVariable"}})],w.prototype,"matchVariable",void 0),(0,i._)([(0,o.qq)({types:f,json:{types:f,name:"UnionDimension"}})],w.prototype,"unionDimension",void 0),(0,i._)([(0,o.qq)({type:Number,json:{type:p.Ab,write:!0,name:"_object_id"}})],w.prototype,"id",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],w.prototype,"type",void 0),w=(0,i._)([(0,c.c)("esri.layers.support.RasterFunctionProperties")],w);const M=w,I=new d.O({0:"mosaic",1:"item",2:"item-group"},{useNumericKeys:!0});let v=class extends n.am{constructor(){super(...arguments),this.functionType="mosaic",this.type="RasterFunctionTemplate"}};(0,i._)([(0,o.qq)({type:[String],json:{write:!0}})],v.prototype,"aliases",void 0),(0,i._)([(0,o.qq)({type:Object,json:{write:!0}})],v.prototype,"arguments",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],v.prototype,"description",void 0),(0,i._)([(0,o.qq)({type:g,json:{write:!0,name:"function"}})],v.prototype,"functionInfo",void 0),(0,i._)([(0,o.qq)({type:I.apiValues,json:{type:[0,1,2],read:I.read,write:I.write}})],v.prototype,"functionType",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],v.prototype,"group",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],v.prototype,"help",void 0),(0,i._)([(0,o.qq)({type:Number,json:{type:p.Ab,write:!0,name:"_object_id"}})],v.prototype,"id",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],v.prototype,"name",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0,name:"definition"}})],v.prototype,"queryDefinition",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],v.prototype,"tag",void 0),(0,i._)([(0,o.qq)({type:M,json:{write:!0}})],v.prototype,"properties",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],v.prototype,"thumbnail",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],v.prototype,"thumbnailEx",void 0),(0,i._)([(0,o.qq)({json:{type:["RasterFunctionTemplate"],write:!0}})],v.prototype,"type",void 0),v=(0,i._)([(0,c.c)("esri.layers.support.RasterFunctionTemplate")],v);const b=v;var A;const D=new Set(["raster","raster2","dem","fillraster"]),T=new Set(["rasters"]),S=e=>e?.rasterFunction?x.fromJSON(e):e,N=e=>e&&e instanceof x?e.toJSON():e,j=e=>e?.functionName&&!e.declaredClass,C=e=>j(e)?new x(e):e,_={types:{key:"type",base:null,typeMap:{RasterFunctionTemplate:b}},json:{write:!0,name:"rasterFunctionDefinition"}};let x=A=class extends n.am{constructor(e){super(e),this.functionName=null,this.outputPixelType="unknown",this.variableName=null,this.functionDefinition=null}set functionArguments(e){if(e){const t=Object.keys(e);if(t.some((t=>D.has(t.toLowerCase())&&j(e[t])))||t.some((t=>T.has(t.toLowerCase())&&Array.isArray(e[t])&&e[t].some((e=>j(e)))))){e=(0,s.ct)(e);for(const r of t)D.has(r.toLowerCase())?e[r]=C(e[r]):T.has(r.toLowerCase())&&Array.isArray(e[r])&&(e[r]=e[r].map((e=>C(e))))}}this._set("functionArguments",e)}readFunctionArguments(e){return(e=>{if(null==e)return null;e=(0,s.ct)(e);const t={};for(const r of Object.keys(e))D.has(r.toLowerCase())?t[r]=S(e[r]):T.has(r.toLowerCase())&&Array.isArray(e[r])?t[r]=e[r].map(S):t[r]=e[r];return t})(e)}writeFunctionArguments(e,t,r){const i={};for(const t of Object.keys(e))D.has(t.toLowerCase())?i[t]=N(e[t]):T.has(t.toLowerCase())&&Array.isArray(e[t])?i[t]=e[t].map(N):i[t]=N(e[t]);t[r]=i}readFunctionName(e,t){const r=t.rasterFunctionInfos;return t.name||(r?.length&&"None"!==r[0].name?r[0].name:t.rasterFunctionDefinition?t.rasterFunctionDefinition.name:t.rasterFunction)}get rasterFunctionDefinition(){return this.functionDefinition?.toJSON()}set rasterFunctionDefinition(e){this.functionDefinition=e?b.fromJSON(e):null}get hasClipFunction(){return this.rasterFunctionDefinition?JSON.stringify(this.rasterFunctionDefinition).includes('"type":"ClipFunction"'):JSON.stringify(this).includes('"rasterFunction":"Clip"')}clone(){return new A({functionName:this.functionName,functionArguments:(0,s.ct)(this.functionArguments),outputPixelType:this.outputPixelType,variableName:this.variableName,rasterFunctionDefinition:(0,s.ct)(this.rasterFunctionDefinition)})}};(0,i._)([(0,o.qq)({json:{type:Object,name:"rasterFunctionArguments"}})],x.prototype,"functionArguments",null),(0,i._)([(0,l.E)("functionArguments")],x.prototype,"readFunctionArguments",null),(0,i._)([(0,u.G)("functionArguments")],x.prototype,"writeFunctionArguments",null),(0,i._)([(0,o.qq)({json:{type:String,write:{target:"rasterFunction"}}})],x.prototype,"functionName",void 0),(0,i._)([(0,l.E)("functionName",["rasterFunction","rasterFunctionInfos","rasterFunctionDefinition"])],x.prototype,"readFunctionName",null),(0,i._)([(0,a.G)({C128:"c128",C64:"c64",F32:"f32",F64:"f64",S16:"s16",S32:"s32",S8:"s8",U1:"u1",U16:"u16",U2:"u2",U32:"u32",U4:"u4",U8:"u8",UNKNOWN:"unknown"},{ignoreUnknown:!1}),(0,o.qq)({json:{default:"unknown"}})],x.prototype,"outputPixelType",void 0),(0,i._)([(0,o.qq)({type:String,json:{read:!0,write:!0}})],x.prototype,"variableName",void 0),(0,i._)([(0,o.qq)()],x.prototype,"rasterFunctionDefinition",null),(0,i._)([(0,o.qq)(_)],x.prototype,"functionDefinition",void 0),(0,i._)([(0,o.qq)()],x.prototype,"hasClipFunction",null),x=A=(0,i._)([(0,c.c)("esri.layers.support.RasterFunction")],x);const L=x},7368:(e,t,r)=>{r.d(t,{c:()=>o});var i=r(20744),n=r(35268),s=r(66820);class o{constructor(){this._workerThread=null,this._destroyed=!1}async initialize(){const e=await(0,n.eU)("RasterWorker");this._destroyed?e.close():this._workerThread=e}destroy(){this._destroyed=!0,this._workerThread&&(this._workerThread.close(),this._workerThread=null)}async convertVectorFieldData(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");const r=await this._workerThread.invoke("convertVectorFieldData",{pixelBlock:e.pixelBlock.toJSON(),type:e.dataType},t);return r?new s.c(r):null}computeStatisticsHistograms(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");return this._workerThread.invoke("computeStatisticsHistograms",{pixelBlock:e.pixelBlock.toJSON()},t)}async decode(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");const r=await this._workerThread.invoke("decode",e,t);return r?new s.c(r):null}async symbolize(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");const r={extent:e.extent?.toJSON(),pixelBlock:e.pixelBlock?.toJSON(),simpleStretchParams:e.simpleStretchParams,bandIds:e.bandIds},n=await this._workerThread.invoke("symbolize",r,t);return n?new s.c(n):null}async updateSymbolizer(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");const r=e?.rendererJSON?.histograms;await Promise.all(this._workerThread.broadcast("updateSymbolizer",{symbolizerJSON:e.toJSON(),histograms:r},t))}async updateRasterFunction(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");await Promise.all(this._workerThread.broadcast("updateRasterFunction",{rasterFunctionJSON:e.toJSON()},t))}async process(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");const r=await this._workerThread.invoke("process",{extent:e.extent?.toJSON(),primaryPixelSizes:e.primaryPixelSizes?.map((e=>null!=e?e.toJSON():null)),primaryPixelBlocks:e.primaryPixelBlocks.map((e=>null!=e?e.toJSON():null)),primaryRasterIds:e.primaryRasterIds},t);return r?new s.c(r):null}async stretch(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const r={srcPixelBlock:e.pixelBlock.toJSON(),stretchParams:e.stretchParams},n=await this._workerThread.invoke("stretch",r,t);return n?new s.c(n):null}async split(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const r={srcPixelBlock:e.pixelBlock.toJSON(),tileSize:e.tileSize,maximumPyramidLevel:e.maximumPyramidLevel,useBilinear:e.useBilinear},n=await this._workerThread.invoke("split",r,t);return n&&n.forEach(((e,t)=>{n.set(t,e?s.c.fromJSON(e):null)})),n}async clipTile(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const r={...e,pixelBlock:e.pixelBlock.toJSON()},n=await this._workerThread.invoke("clipTile",r,t);return n?s.c.fromJSON(n):null}async estimateStatisticsHistograms(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const r={srcPixelBlock:e.pixelBlock.toJSON()};return await this._workerThread.invoke("estimateStatisticsHistograms",r,t)}async mosaicAndTransform(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");if(!e?.srcPixelBlocks?.length)return{pixelBlock:null};const r={...e,srcPixelBlocks:e.srcPixelBlocks.map((e=>null!=e?e.toJSON():null))},n=await this._workerThread.invoke("mosaicAndTransform",r,t);return{pixelBlock:n.pixelBlock?new s.c(n.pixelBlock):null,localNorthDirections:n.localNorthDirections}}async createFlowMesh(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");const r={buffer:e.flowData.data.buffer,maskBuffer:e.flowData.mask.buffer,width:e.flowData.width,height:e.flowData.height},{meshType:n,simulationSettings:s}=e,o=await this._workerThread.invoke("createFlowMesh",{meshType:n,flowData:r,simulationSettings:s},{...t,transferList:[r.buffer,r.maskBuffer]});return{vertexData:new Float32Array(o.vertexBuffer),indexData:new Uint32Array(o.indexBuffer)}}getProjectionOffsetGrid(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");const r=null!=e.datumTransformation?e.datumTransformation.steps.map((e=>({wkid:e.wkid,wkt:e.wkt,isInverse:e.isInverse}))):null,n=null!=e.rasterTransform?e.rasterTransform.toJSON():null,s={projectedExtent:e.projectedExtent.toJSON(),srcBufferExtent:e.srcBufferExtent.toJSON(),pixelSize:e.pixelSize,hasWrapAround:e.hasWrapAround,spacing:e.spacing,datumTransformationSteps:r,rasterTransform:n,isAdaptive:e.isAdaptive,includeGCSGrid:e.includeGCSGrid};return this._workerThread.invoke("getProjectionOffsetGrid",s,t)}}},99336:(e,t,r)=>{r.d(t,{c:()=>g});var i=r(41948),n=r(25228),s=r(13452),o=r(3856),a=r(40504),l=r(1580),c=(r(9456),r(66360),r(72052),r(33600)),u=r(12552),d=r(18996),p=r(28484);function m(e,t){return s.c.fromJSON({value:e,unit:t})}let h=class extends((0,o.q)(a.am)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new n.c({start:r,end:i})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?m(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?m(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.qq)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i._)([(0,l.qq)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i._)([(0,l.qq)({type:n.c,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i._)([(0,c.E)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i._)([(0,d.G)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.qq)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i._)([(0,l.qq)({type:s.c,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i._)([(0,c.E)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i._)([(0,d.G)("interval")],h.prototype,"writeInterval",null),(0,i._)([(0,l.qq)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i._)([(0,l.qq)((0,p.SM)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i._)([(0,l.qq)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),h=(0,i._)([(0,u.c)("esri.layers.support.TimeInfo")],h);const g=h},89812:(e,t,r)=>{r.d(t,{h4:()=>D,i2:()=>A}),r(9456);var i,n=r(41948),s=r(62088),o=r(1580),a=(r(66360),r(9968)),l=r(12552),c=r(40504);r(72052);let u=i=class extends c.am{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n._)([(0,o.qq)({type:[String,Number],json:{write:!0}})],u.prototype,"code",void 0),u=i=(0,n._)([(0,l.c)("esri.layers.support.CodedValue")],u);const d=new(r(14628).O)({inherited:"inherited",codedValue:"coded-value",range:"range"});let p=class extends c.am{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,n._)([(0,a.G)(d)],p.prototype,"type",void 0),p=(0,n._)([(0,l.c)("esri.layers.support.Domain")],p);const m=p;var h;let g=h=class extends m{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new h({codedValues:(0,s.ct)(this.codedValues),name:this.name})}};(0,n._)([(0,o.qq)({type:[u],json:{write:!0}})],g.prototype,"codedValues",void 0),(0,n._)([(0,a.G)({codedValue:"coded-value"})],g.prototype,"type",void 0),g=h=(0,n._)([(0,l.c)("esri.layers.support.CodedValueDomain")],g);const y=g;var f;r(20744);let w=f=class extends m{constructor(e){super(e),this.type="inherited"}clone(){return new f}};(0,n._)([(0,a.G)({inherited:"inherited"})],w.prototype,"type",void 0),w=f=(0,n._)([(0,l.c)("esri.layers.support.InheritedDomain")],w);const M=w;var I;let v=I=class extends m{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new I({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,o.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],v.prototype,"maxValue",void 0),(0,n._)([(0,o.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],v.prototype,"minValue",void 0),(0,n._)([(0,a.G)({range:"range"})],v.prototype,"type",void 0),v=I=(0,n._)([(0,l.c)("esri.layers.support.RangeDomain")],v);const b=v,A={key:"type",base:m,typeMap:{range:v,"coded-value":y,inherited:M}};function D(e){if(!e?.type)return null;switch(e.type){case"range":return b.fromJSON(e);case"codedValue":return y.fromJSON(e);case"inherited":return M.fromJSON(e)}return null}},36408:(e,t,r)=>{r.d(t,{M:()=>i});const i=new(r(14628).O)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},56660:(e,t,r)=>{r.d(t,{CI:()=>o,Dh:()=>h,Qz:()=>g,W0:()=>a,W8:()=>m,Yt:()=>I,aQ:()=>f,eY:()=>y,ec:()=>p});var i=r(92400),n=r(91768);function s(e,t,r){const i=t.shift();if(0===r.length){const e=[];r.push({sliceId:-1,multidimensionalDefinition:e})}const n=r.length;for(let t=0;t<n;t++){const t=r.shift().multidimensionalDefinition;i.values?.forEach((n=>{r.push({sliceId:-1,multidimensionalDefinition:[...t,{variableName:e,dimensionName:i.name,values:[n]}]})}))}t.length&&s(e,t,r)}function o(e,t){const r=[];let i=0;return(t?e.variables.filter((e=>e.name.toLowerCase()===t.toLowerCase())):[...e.variables].sort(((e,t)=>e.name>t.name?1:-1))).forEach((e=>{const t=[],n=[...e.dimensions].sort(((e,t)=>e.name>t.name?-1:1));s(e.name,n,t),t.forEach((e=>{r.push({...e,sliceId:i++})}))})),r}function a(e,t,r){let i=e;if(t&&(t=[...t].sort(((e,t)=>e.dimensionName<t.dimensionName?-1:1))).forEach((({dimensionName:e,values:t,isSlice:r})=>{t.length&&(i=i.filter((i=>{const n=i.multidimensionalDefinition.find((t=>t.dimensionName===e));if(null==n)return!1;const s=n.values[0];return"number"==typeof s?"number"==typeof t[0]?t.includes(s):t.some((e=>e[0]<=s&&e[1]>=s)):"number"==typeof t[0]?t.some((e=>s[0]<=e&&s[1]>=e)):r?t.some((e=>e[0]===s[0]&&e[0]===s[1])):t.some((e=>e[0]>=s[0]&&e[0]<=s[1]||e[1]>=s[0]&&e[1]<=s[1]||e[0]<s[0]&&e[1]>s[1]))})))})),i.length&&null!=r?.start&&null!=r.end){const e=r.start.getTime(),t=r.end.getTime(),n=i[0].multidimensionalDefinition.findIndex((e=>"StdTime"===e.dimensionName));n>-1&&(i=i.filter((r=>{const i=r.multidimensionalDefinition[n].values[0];return e<=i&&t>=i})))}return i.map((e=>e.sliceId))}function l(e,t){return Array.isArray(e)?t[0]===t[1]?e[0]===t[0]||e[1]===t[0]:e[0]>=t[0]&&e[0]<=t[1]&&e[1]>=t[0]&&e[1]<=t[1]:e>=t[0]&&e<=t[1]}function c(e,t){return e[0]<=t[0]&&e[1]>=t[0]||e[0]<=t[1]&&e[1]>=t[1]||e[0]>=t[0]&&e[1]<=t[1]}function u(e){return 1===e.length?[e[0],e[0]]:[e[0],e[e.length-1]]}function d(e,t,r){if(!t?.subsetDefinitions?.length)return e;let i;if(r){const{variables:n}=t;if(n.length&&!n.includes(r))return null;const s=t.subsetDefinitions.find((t=>t.dimensionName===e.name&&t.variableName===r));if(!s?.values?.length)return e;i=u(s.values)}else{const r=t.dimensions.find((({name:t})=>t===e.name));i=r?.extent}const n=i;if(!n?.length)return e;const s=e.values.filter((e=>l(e,n)));return{...e,extent:[...n],values:s}}function p(e,t,r){if(!t?.subsetDefinitions?.length)return!1;const{variables:i}=t;if(i.length&&e.some((({variableName:e})=>e&&!i.includes(e))))return!0;for(let i=0;i<e.length;i++){const n=e[i],s=t.subsetDefinitions.find((e=>(""===n.variableName||e.variableName===n.variableName)&&e.dimensionName===n.dimensionName));if(s?.values.length){const e=u(s.values);if(n.isSlice||2!==n.values.length||Array.isArray(n.values[0])||n.values[0]===n.values[1]||!r){if(n.values.some((t=>!l(t,e))))return!0}else if(!c(n.values,e))return!0}}return!1}function m(e,t){if(null==e)return{isOutside:!1};const{geometry:r,timeExtent:i,multidimensionalDefinition:s}=t;let o=null;if(null!=i&&(o=function(e,t){const r=e.dimensions.find((({name:e})=>"StdTime"===e));if(null==r||null==t.start&&null==t.end)return t;t=t.clone();const{start:i,end:s}=t.toJSON(),o=i===s?[i]:null!=i&&null!=s?[i,s]:[i??s];return 2===o.length&&r?.extent.length&&(o[0]=Math.max(o[0],r.extent[0]),o[1]=Math.min(o[1],r.extent[1]??r.extent[0]),o[1]<o[0])||p([new n.c({variableName:"",dimensionName:"StdTime",isSlice:1===o.length,values:o})],e,!0)?null:(t.start=new Date(o[0]),t.end=new Date(o[1]??o[0]),t)}(e,i),null==o))return{isOutside:!0};const{areaOfInterest:a}=e;if(a&&r){const e="point"===r.type?r:"extent"===r.type?r.center:"polygon"===r.type?r.centroid:null;if(e&&!a.contains(e))return{isOutside:!0}}return null!=s&&s.length&&p(s,e,!0)?{isOutside:!0}:{isOutside:!1,intersection:{geometry:r,timeExtent:o,multidimensionalDefinition:s}}}function h(e,t={}){const{multidimensionalInfo:r,keyProperties:i}=e;if(null==r)return null;const{variableName:n,multidimensionalSubset:s,multidimensionalDefinition:o}=t,a=null!=o?o[0]?.variableName:null,l=n||a||i?.DefaultVariable;let{variables:c}=r;return s?.variables?.length&&(c=c.filter((({name:e})=>s.variables.includes(e)))),l?c.find((({name:e})=>e===l))??c[0]:c[0]}function g(e,t={}){const r=h(e,t);if(!r)return null;const i=[],{dimensions:s,name:o}=r;if(0===s.length)return[new n.c({variableName:o,dimensionName:"",values:[],isSlice:!0})];for(let e=0;e<s.length;e++){const r=d(s[e],t.multidimensionalSubset,o);if(!r)return null;const{values:a,extent:l}=r;let c=a?.[0]??l[0];"stdz"===r.name.toLowerCase()&&!r.hasRanges&&Math.abs(l[1])<=Math.abs(l[0])&&(c=a?.length?a[a.length-1]:l[1]),i.push(new n.c({variableName:o,dimensionName:r.name,values:[c],isSlice:!t.useRangeForRangedDimensionInfo||!!r.hasRanges}))}return i}function y(e){return!!e?.length&&e.some((e=>{if(null==e.values)return!0;const t=e.values.length;return 0===t||t>1||!e.isSlice&&Array.isArray(e.values[0])}))}function f(e,t){if(null==t||null==e)return null;let r=t.variables.map((e=>({...e})));return e?.variables?.length&&(r=r.filter((({name:t})=>e.variables.includes(t))),r.forEach((t=>{t.dimensions=t.dimensions.map((r=>d(r,e,t.name))).filter(i.G6)}))),r}function w(e,t){const{values:r}=t;if(r?.length){const t=Array.isArray(r[0]),i=Array.isArray(e);return t!==i?-1:t&&i?r.findIndex((t=>t[0]===e[0]&&t[1]===e[1])):r.indexOf(e)}const{extent:i}=t;if(Array.isArray(e)||e<i[0]||e>i[1])return-1;const n=t.interval||1;if("ISO8601"!==t.unit)return Math.round((e-i[0])/n);const s=i[0];let o=-1;switch(t.intervalUnit?.toLowerCase()||"seconds"){case"seconds":o=Math.round((e-s)/1e3/n);break;case"minutes":o=Math.round((e-s)/6e4/n);break;case"hours":o=Math.round((e-s)/36e5/n);break;case"days":o=Math.round((e-s)/864e5/n);break;case"months":{const t=new Date(e).getUTCFullYear()-new Date(s).getUTCFullYear(),r=new Date(s).getUTCMonth(),i=new Date(e).getUTCMonth();o=0===t?i-r:i+11-r+12*(t-1)}break;case"years":o=Math.round((new Date(e).getUTCFullYear()-new Date(s).getUTCFullYear())/n);break;case"decades":o=Math.round((new Date(e).getUTCFullYear()-new Date(s).getUTCFullYear())/10/n)}return o}function M(e){let t=e.values?.length;if(t)return t;const{extent:r,unit:i}=e,n=e.interval||1,s=r?r[1]-r[0]:0;if("ISO8601"!==i)return Math.round(s/n);switch(e.intervalUnit?.toLowerCase()??"seconds"){case"seconds":t=Math.round(s/1e3/n);break;case"minutes":t=Math.round(s/6e4/n);break;case"hours":t=Math.round(s/36e5/n);break;case"days":t=Math.round(s/864e5/n);break;case"months":{const e=new Date(r[1]).getUTCFullYear()-new Date(r[0]).getUTCFullYear(),i=new Date(r[0]).getUTCMonth(),n=new Date(r[1]).getUTCMonth();t=0===e?n-i+1:n+11-i+12*(e-1)+1}break;case"years":t=Math.round((new Date(r[1]).getUTCFullYear()-new Date(r[0]).getUTCFullYear())/n);break;case"decades":t=Math.round((new Date(r[1]).getUTCFullYear()-new Date(r[0]).getUTCFullYear())/10/n);break;default:t=0}return t}function I(e,t){let r=0;const i=e[0].variableName,n=[...t.variables].sort(((e,t)=>e.name>t.name?1:-1));for(let t=0;t<n.length;t++){const s=n[t],o=[...s.dimensions].sort(((e,t)=>e.name>t.name?-1:1));if(s.name!==i){r+=o.map((e=>M(e))).reduce(((e,t)=>e*t));continue}const a=o.map((e=>M(e))),l=o.length;for(let t=0;t<l;t++){const i=e.find((e=>e.dimensionName===o[t].name));if(null==i)return null;const n=w(i.values[0],o[t]);if(-1===n)return null;a.shift(),r+=t===l-1?n:n*a.reduce(((e,t)=>e*t))}break}return r}},59520:(e,t,r)=>{r.d(t,{K0:()=>o,ec:()=>s,gh:()=>n});var i=r(14628);const n=(0,i.w)()({RSP_NearestNeighbor:"nearest",RSP_BilinearInterpolation:"bilinear",RSP_CubicConvolution:"cubic",RSP_Majority:"majority"}),s=(0,i.w)()({esriNoDataMatchAny:"any",esriNoDataMatchAll:"all"}),o=(0,i.w)()({U1:"u1",U2:"u2",U4:"u4",U8:"u8",S8:"s8",U16:"u16",S16:"s16",U32:"u32",S32:"s32",F32:"f32",F64:"f64",C64:"c64",C128:"c128",UNKNOWN:"unknown"})},4736:(e,t,r)=>{r.d(t,{e:()=>i});const i=(0,r(14628).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},87080:(e,t,r)=>{r.d(t,{_0:()=>d,gH:()=>h,qk:()=>p});var i=r(69504),n=r(99704),s=r(10708),o=r(10077),a=r(65392),l=r(58708),c=r(24948),u=r(49176);const d={key:"type",base:null,typeMap:{"unique-value":c.c,"class-breaks":n.c,"raster-colormap":o.c,"raster-stretch":l.c,"vector-field":u.c,"raster-shaded-relief":a.c,flow:s.c}},p={...d,typeMap:{...d.typeMap}};delete p.typeMap["vector-field"],delete p.typeMap.flow;const m={uniqueValue:c.c,classBreaks:n.c,rasterStretch:l.c,rasterColormap:o.c,vectorField:u.c,rasterShadedRelief:a.c,flowRenderer:s.c};function h(e,t){if(!e)return null;if("classBreaks"===e.type&&e.classificationMethod){const t=e.authoringInfo||{classificationMethod:""};t.classificationMethod=e.classificationMethod,e.authoringInfo=t}"vectorField"===e.type&&e.visualVariables&&!Array.isArray(e.visualVariables)&&(e.visualVariables=[e.visualVariables]);const r=(n=e)&&m[n.type]||null;var n;if(r){const i=new r;return i.read(e,t),i}return t?.messages&&e&&t.messages.push(new i.c("renderer:unsupported","Renderers of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:t})),null}},10708:(e,t,r)=>{r.d(t,{c:()=>f});var i,n=r(41948),s=r(44728),o=r(14628),a=r(40504),l=r(50144),c=r(1580),u=(r(9456),r(66360),r(72052),r(9968)),d=r(12552),p=r(63548),m=r(1124),h=r(89584);const g=new o.O({flow_from:"flow-from",flow_to:"flow-to"});let y=i=class extends((0,p.c)(a.am)){constructor(e){super(e),this.density=.8,this.color=new s.c([255,255,255,1]),this.maxPathLength=200,this.trailWidth=1.5,this.flowSpeed=10,this.trailLength=100,this.smoothing=0,this.flowRepresentation="flow-from",this.type="flow",this.authoringInfo=null,this.legendOptions=null,this.trailCap="butt",this.background="none"}clone(){const{density:e,maxPathLength:t,trailWidth:r,flowSpeed:n,trailLength:s,smoothing:o,flowRepresentation:a,trailCap:l,background:c}=this,u=this.color.clone(),d=(this.visualVariables||[]).map((e=>e.clone())),p=this.authoringInfo?.clone(),m=this.legendOptions?.clone();return new i({density:e,color:u,maxPathLength:t,trailWidth:r,flowSpeed:n,trailLength:s,trailCap:l,background:c,smoothing:o,flowRepresentation:a,visualVariables:d,authoringInfo:p,legendOptions:m})}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}};(0,n._)([(0,c.qq)({type:Number,json:{write:!0}})],y.prototype,"density",void 0),(0,n._)([(0,c.qq)({type:s.c,json:{write:{allowNull:!0}}})],y.prototype,"color",void 0),(0,n._)([(0,c.qq)({type:Number,cast:l.Qz,json:{write:!0}})],y.prototype,"maxPathLength",void 0),(0,n._)([(0,c.qq)({type:Number,cast:l.Qz,json:{write:!0}})],y.prototype,"trailWidth",void 0),(0,n._)([(0,c.qq)({type:Number,json:{write:!0}})],y.prototype,"flowSpeed",void 0),(0,n._)([(0,c.qq)({type:Number,json:{write:!0}})],y.prototype,"trailLength",void 0),(0,n._)([(0,c.qq)({type:Number,cast:l.Qz,json:{write:!1}})],y.prototype,"smoothing",void 0),(0,n._)([(0,c.qq)({type:g.apiValues,json:{type:g.jsonValues,read:{reader:g.read},write:{writer:g.write}}})],y.prototype,"flowRepresentation",void 0),(0,n._)([(0,u.G)({flowRenderer:"flow"})],y.prototype,"type",void 0),(0,n._)([(0,c.qq)({type:m.c,json:{write:!0}})],y.prototype,"authoringInfo",void 0),(0,n._)([(0,c.qq)({type:h.i,json:{write:!0}})],y.prototype,"legendOptions",void 0),(0,n._)([(0,c.qq)({type:String,json:{write:!0}})],y.prototype,"trailCap",void 0),(0,n._)([(0,c.qq)({type:String,json:{write:!0}})],y.prototype,"background",void 0),y=i=(0,n._)([(0,d.c)("esri.renderers.FlowRenderer")],y);const f=y},10077:(e,t,r)=>{r.d(t,{c:()=>g});var i=r(41948),n=r(40504),s=r(1580),o=(r(9456),r(66360),r(72052),r(9968)),a=r(12552),l=r(44728),c=r(53368);let u=class extends n.am{constructor(){super(...arguments),this.value=null,this.label=null,this.color=null}};(0,i._)([(0,s.qq)({type:Number,json:{write:!0}})],u.prototype,"value",void 0),(0,i._)([(0,s.qq)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,i._)([(0,s.qq)({type:l.c,json:{type:[c.Ab],write:!0}})],u.prototype,"color",void 0),u=(0,i._)([(0,a.c)("esri.renderers.support.ColormapInfo")],u);const d=u;var p,m=r(44748);let h=p=class extends n.am{constructor(e){super(e),this.colormapInfos=null,this.type="raster-colormap"}static createFromColormap(e,t){if(!e)return null;const r=5===e[0].length,i=[...e].sort(((e,t)=>e[0]-t[0])).map((e=>d.fromJSON({value:e[0],color:r?e.slice(1,5):e.slice(1,4).concat([255]),label:t?t[e[0]]??"":e[0]})));return new p({colormapInfos:i})}static createFromColorramp(e){const t=(0,m.Ky)(e);return p.createFromColormap(t)}clone(){return new p({colormapInfos:this.colormapInfos.map((e=>e.toJSON()))})}extractColormap(){return this.colormapInfos.map((({value:e,color:t})=>[e,t.r,t.g,t.b,t.a>1?t.a:255*t.a&255])).sort(((e,t)=>e[0]-t[0]))}};(0,i._)([(0,s.qq)({type:[d],json:{write:!0}})],h.prototype,"colormapInfos",void 0),(0,i._)([(0,o.G)({rasterColormap:"raster-colormap"})],h.prototype,"type",void 0),h=p=(0,i._)([(0,a.c)("esri.renderers.RasterColormapRenderer")],h);const g=h},65392:(e,t,r)=>{r.d(t,{c:()=>m});var i,n=r(41948),s=r(40504),o=r(62088),a=r(1580),l=(r(9456),r(66360),r(9968)),c=r(33600),u=r(12552),d=r(55952);let p=i=class extends s.am{constructor(e){super(e),this.altitude=45,this.azimuth=315,this.colorRamp=null,this.hillshadeType="traditional",this.pixelSizePower=.664,this.pixelSizeFactor=.024,this.scalingType="none",this.type="raster-shaded-relief",this.zFactor=1}readColorRamp(e){return(0,d.h)(e)}clone(){return new i({hillshadeType:this.hillshadeType,altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,scalingType:this.scalingType,pixelSizeFactor:this.pixelSizeFactor,pixelSizePower:this.pixelSizePower,colorRamp:(0,o.ct)(this.colorRamp)})}};(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],p.prototype,"altitude",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],p.prototype,"azimuth",void 0),(0,n._)([(0,a.qq)({types:d.i,json:{write:!0}})],p.prototype,"colorRamp",void 0),(0,n._)([(0,c.E)("colorRamp")],p.prototype,"readColorRamp",null),(0,n._)([(0,a.qq)({type:["traditional","multi-directional"],json:{write:!0}})],p.prototype,"hillshadeType",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],p.prototype,"pixelSizePower",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],p.prototype,"pixelSizeFactor",void 0),(0,n._)([(0,a.qq)({type:["none","adjusted"],json:{write:!0}})],p.prototype,"scalingType",void 0),(0,n._)([(0,l.G)({rasterShadedRelief:"raster-shaded-relief"})],p.prototype,"type",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],p.prototype,"zFactor",void 0),p=i=(0,n._)([(0,u.c)("esri.renderers.RasterShadedReliefRenderer")],p);const m=p},58708:(e,t,r)=>{r.d(t,{c:()=>g});var i,n=r(41948),s=r(40504),o=r(62088),a=r(1580),l=(r(9456),r(66360),r(9968)),c=r(33600),u=r(12552),d=r(18996),p=r(76688),m=r(55952);let h=i=class extends s.am{constructor(e){super(e),this.colorRamp=null,this.computeGamma=!1,this.dynamicRangeAdjustment=!1,this.gamma=[],this.maxPercent=null,this.minPercent=null,this.numberOfStandardDeviations=null,this.outputMax=null,this.outputMin=null,this.sigmoidStrengthLevel=null,this.statistics=[],this.histograms=null,this.useGamma=!1,this.stretchType="none",this.type="raster-stretch"}readColorRamp(e){if(e)return(0,m.h)(e)}writeStatistics(e,t,r){e?.length&&(Array.isArray(e[0])||(e=e.map((e=>[e.min,e.max,e.avg,e.stddev]))),t[r]=e)}readStretchType(e,t){let r=t.stretchType;return"number"==typeof r&&(r=p.A[r]),p.K.read(r)}clone(){return new i({stretchType:this.stretchType,outputMin:this.outputMin,outputMax:this.outputMax,useGamma:this.useGamma,computeGamma:this.computeGamma,statistics:(0,o.ct)(this.statistics),gamma:(0,o.ct)(this.gamma),sigmoidStrengthLevel:this.sigmoidStrengthLevel,numberOfStandardDeviations:this.numberOfStandardDeviations,minPercent:this.minPercent,maxPercent:this.maxPercent,colorRamp:(0,o.ct)(this.colorRamp),histograms:(0,o.ct)(this.histograms),dynamicRangeAdjustment:this.dynamicRangeAdjustment})}};(0,n._)([(0,a.qq)({types:m.i,json:{write:!0}})],h.prototype,"colorRamp",void 0),(0,n._)([(0,c.E)("colorRamp")],h.prototype,"readColorRamp",null),(0,n._)([(0,a.qq)({type:Boolean,json:{write:!0}})],h.prototype,"computeGamma",void 0),(0,n._)([(0,a.qq)({type:Boolean,json:{write:{target:"dra"},read:{source:"dra"}}})],h.prototype,"dynamicRangeAdjustment",void 0),(0,n._)([(0,a.qq)({type:[Number],json:{write:!0}})],h.prototype,"gamma",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],h.prototype,"maxPercent",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],h.prototype,"minPercent",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],h.prototype,"numberOfStandardDeviations",void 0),(0,n._)([(0,a.qq)({type:Number,json:{read:{source:"max"},write:{target:"max"}}})],h.prototype,"outputMax",void 0),(0,n._)([(0,a.qq)({type:Number,json:{read:{source:"min"},write:{target:"min"}}})],h.prototype,"outputMin",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],h.prototype,"sigmoidStrengthLevel",void 0),(0,n._)([(0,a.qq)({json:{type:[[Number]],write:!0}})],h.prototype,"statistics",void 0),(0,n._)([(0,a.qq)()],h.prototype,"histograms",void 0),(0,n._)([(0,d.G)("statistics")],h.prototype,"writeStatistics",null),(0,n._)([(0,a.qq)({type:Boolean,json:{write:!0}})],h.prototype,"useGamma",void 0),(0,n._)([(0,a.qq)({type:p.K.apiValues,json:{type:p.K.jsonValues,write:p.K.write}})],h.prototype,"stretchType",void 0),(0,n._)([(0,c.E)("stretchType",["stretchType"])],h.prototype,"readStretchType",null),(0,n._)([(0,l.G)({rasterStretch:"raster-stretch"})],h.prototype,"type",void 0),h=i=(0,n._)([(0,u.c)("esri.renderers.RasterStretchRenderer")],h);const g=h},49176:(e,t,r)=>{r.d(t,{c:()=>z});var i=r(41948),n=r(44728),s=(r(60708),r(6444)),o=r(17988),a=r(14628),l=r(40504),c=r(62088),u=r(1580),d=(r(9456),r(66360),r(9968)),p=r(33600),m=r(12552),h=r(20480),g=r(32876),y=r(99704),f=r(63548),w=r(74168),M=r(83268),I=r(91920),v=r(81432),b=r(7432),A=r(49736),D=r(40196),T=r(62484);r(24676),r(14624),r(24832),r(2600);var S=r(11004);function N(e){for(const t of e)if("number"==typeof t)return t;return null}function j(e,t,r){for(let i=0;i<3;i++){const n=e[i];switch(n){case"symbol-value":{const e=r[i];return null!=e?e/t[i]:1}case"proportional":break;default:if(n&&t[i])return n/t[i]}}return 1}function C(e,t,r,i){switch(e){case"proportional":return r*i;case"symbol-value":return null!=t?t:r;default:return e}}async function _(e,t){if(e&&t)return(0,o._8)(e)?async function(e,t){const i=e.symbolLayers;i&&await(0,D.Ar)(i,(async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){e.size="number"==typeof t[2]?t[2]:0}(e,t);break;case"icon":case"line":case"text":!function(e,t){const r=N(t);null!=r&&(e.size=r)}(e,t);break;case"path":!function(e,t){const r=j(t,T.Qw,[e.width,void 0,e.height]);e.width=C(t[0],e.width,1,r),e.height=C(t[2],e.height,1,r)}(e,t);break;case"object":await async function(e,t){const{resourceSize:i,symbolSize:n}=await async function(e){const{computeObjectLayerResourceSize:t}=await r.e(9240).then(r.bind(r,29240)),i=await t(e,10),{width:n,height:s,depth:o}=e,a=[n,o,s];let l=1;for(let e=0;e<3;e++){const t=a[e];if(null!=t){l=t/i[e];break}}for(let e=0;e<3;e++)null==a[e]&&(a[e]=i[e]*l);return{resourceSize:i,symbolSize:a}}(e),s=j(t,i,n);e.width=C(t[0],n[0],i[0],s),e.depth=C(t[1],n[1],i[1],s),e.height=C(t[2],n[2],i[2],s)}(e,t)}}(e,t)))}(e,t):void((0,o.QZ)(e)&&function(e,t){const r=N(t);if(null!=r)switch(e.type){case"simple-marker":e.size=r;break;case"picture-marker":{const t=e.width/e.height;t>1?(e.width=r,e.height=r*t):(e.width=r*t,e.height=r);break}case"simple-line":e.width=r;break;case"text":e.font.size=r}}(e,t))}new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new S.o(1e3),new n.c([128,128,128]),r(14392),new n.c("white");var x,L=r(67776),k=r(76060);const q=new Set(["esriMetersPerSecond","esriKilometersPerHour","esriKnots","esriFeetPerSecond","esriMilesPerHour"]),U=new a.O({beaufort_ft:"beaufort-ft",beaufort_km:"beaufort-km",beaufort_kn:"beaufort-kn",beaufort_m:"beaufort-m",beaufort_mi:"beaufort-mi",classified_arrow:"classified-arrow",ocean_current_kn:"ocean-current-kn",ocean_current_m:"ocean-current-m",simple_scalar:"simple-scalar",single_arrow:"single-arrow",wind_speed:"wind-barb"}),E=new a.O({flow_from:"flow-from",flow_to:"flow-to"});let R=x=class extends((0,f.c)(l.am)){constructor(e){super(e),this.attributeField="Magnitude",this.flowRepresentation="flow-from",this.rotationType="arithmetic",this.style="single-arrow",this.symbolTileSize=50,this.type="vector-field"}readInputUnit(e,t){return q.has(e)?g.ao.fromJSON(e):null}readOutputUnit(e,t){return q.has(e)?g.ao.fromJSON(e):null}get styleRenderer(){const e=this.style,t=this.attributeField,r=this._createStyleRenderer(e);return r.field=t,r}get sizeVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"size"===t.type&&e.push(t);if(0===e.length){const t=new I.c({field:"Magnitude",minSize:.2*this.symbolTileSize,maxSize:.8*this.symbolTileSize});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}get rotationVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"rotation"===t.type&&e.push(t);if(0===e.length){const t=new M.c({field:"Direction",rotationType:this.rotationType});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}clone(){return new x({attributeField:this.attributeField,flowRepresentation:this.flowRepresentation,rotationType:this.rotationType,symbolTileSize:this.symbolTileSize,style:this.style,visualVariables:(0,c.ct)(this.visualVariables),inputUnit:this.inputUnit,outputUnit:this.outputUnit})}async getGraphicsFromPixelData(e,t=!1,r=[]){const i=new Array,n=(0,g.Yb)(this.inputUnit,this.outputUnit),o=this.rotationVariables[0]?.rotationType||this.rotationType,a=t?(0,g.Ws)(e.pixelBlock,"vector-uv",o,n):(0,g.uI)(e.pixelBlock,"vector-magdir",n);if(null==a)return i;const l=e.extent,c=null!=a.mask&&a.mask.length>0;let u=0;const d=(l.xmax-l.xmin)/a.width,p=(l.ymax-l.ymin)/a.height;for(let e=0;e<a.height;e++)for(let t=0;t<a.width;t++,u++){let n=new L.c({x:l.xmin+t*d+d/2,y:l.ymax-e*p-p/2,spatialReference:l.spatialReference});n=(await(0,h.WW)(n))[0];const o=r.some((e=>e.intersects(n)));if((!c||a.mask[u])&&!o){const e={Magnitude:a.pixels[0][u],Direction:a.pixels[1][u]},t=new s.c({geometry:{type:"point",x:n.x,y:n.y,spatialReference:l.spatialReference},attributes:e});t.symbol=this._getVisualVariablesAppliedSymbol(t),i.push(t)}}return i}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getClassBreakInfos(){return this.styleRenderer?.classBreakInfos}getDefaultSymbol(){return this.styleRenderer?.defaultSymbol}_getDefaultSymbol(e){return new A.c({path:"M14,32 14,18 9,23 16,3 22,23 17,18 17,32 z",outline:new b.c({width:0}),size:20,color:e||new n.c([0,92,230])})}_getVisualVariablesAppliedSymbol(e){if(!e)return;const t=this.styleRenderer?.getSymbol(e)?.clone(),r=this.sizeVariables,i=this.rotationVariables;if(r&&r.length&&this.sizeVariables.forEach((r=>_(t,(0,v.ie)([r],e)))),i&&i.length){const r="flow-to"===this.flowRepresentation==("ocean-current-kn"===this.style||"ocean-current-m"===this.style)?0:180;e.attributes.Direction=e.attributes.Direction+r,this.rotationVariables.forEach((r=>function(e,t,r){if(e&&null!=t)if((0,o._8)(e)){const i=e.symbolLayers;i&&i.forEach((e=>{if(e&&"object"===e.type)switch(r){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}}))}else(0,o.QZ)(e)&&("simple-marker"!==e.type&&"picture-marker"!==e.type&&"text"!==e.type||(e.angle+=t))}(t,(0,v.KK)(r,e),r.axis)))}return t}_createStyleRenderer(e){let t={defaultSymbol:this._getDefaultSymbol(),classBreakInfos:[]};switch(e){case"single-arrow":t=this._createSingleArrowRenderer();break;case"beaufort-kn":t=this._createBeaufortKnotsRenderer();break;case"beaufort-m":t=this._createBeaufortMeterRenderer();break;case"beaufort-ft":t=this._createBeaufortFeetRenderer();break;case"beaufort-mi":t=this._createBeaufortMilesRenderer();break;case"beaufort-km":t=this._createBeaufortKilometersRenderer();break;case"ocean-current-m":t=this._createCurrentMeterRenderer();break;case"ocean-current-kn":t=this._createCurrentKnotsRenderer();break;case"simple-scalar":t=this._createSimpleScalarRenderer();break;case"wind-barb":t=this._createWindBarbsRenderer();break;case"classified-arrow":t=this._createClassifiedArrowRenderer()}return new y.c(t)}_createSingleArrowRenderer(){return{defaultSymbol:this._getDefaultSymbol()}}_createBeaufortKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new n.c([214,47,39])),classBreakInfos:this._getClassBreaks([0,1,3,6,10,16,21,27,33,40,47,55,63],[[40,146,199],[89,162,186],[129,179,171],[160,194,155],[191,212,138],[218,230,119],[250,250,100],[252,213,83],[252,179,102],[250,141,52],[247,110,42],[240,71,29]])}}_createBeaufortMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new n.c([214,47,39])),classBreakInfos:this._getClassBreaks([0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7],[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortFeetRenderer(){const e=this._getDefaultSymbol(new n.c([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>3.28084*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortMilesRenderer(){const e=this._getDefaultSymbol(new n.c([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>2.23694*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortKilometersRenderer(){const e=this._getDefaultSymbol(new n.c([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>3.6*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createCurrentMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new n.c([177,177,177])),classBreakInfos:this._getClassBreaks([0,.5,1,1.5,2],[[78,26,153],[179,27,26],[202,128,26],[177,177,177]])}}_createCurrentKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new n.c([177,177,177])),classBreakInfos:this._getClassBreaks([0,.25,.5,1,1.5,2,2.5,3,3.5,4],[[0,0,0],[0,37,100],[78,26,153],[151,0,100],[179,27,26],[177,78,26],[202,128,26],[177,179,52],[177,177,177]])}}_createClassifiedArrowRenderer(){const e=this._getDefaultSymbol(new n.c([56,168,0]));let t=[0,1e-6,3.5,7,10.5,14];if(this.sizeVariables?.length){const e=this.sizeVariables[0].minDataValue,r=this.sizeVariables[0].maxDataValue;if(e&&r){const i=(r-e)/5;t=Array.from(Array(6).keys()).map((t=>e+i*t))}}return{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[56,168,0],[139,309,0],[255,255,0],[255,128,0],[255,0,0]])}}_createSimpleScalarRenderer(){return{defaultSymbol:k.c.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAQAAABLVLlLAAAABGdBTUEAAYagMeiWXwAAAAJiS0dEAACqjSMyAAAACXBIWXMAAABIAAAASABGyWs+AAAC3ElEQVRIx9XXvW4cVRQH8N982btpsIREJECyiCXsxX4DKh6AliqGKCBBE2SlwlHgAbBD/AKmyEYUeQ1KahPZSZQvBCkQLTHZ7KGY8Xodz4w3a1NwbzVzz/znfJ//zbStVC5q3icKak9GAs2QIdDx3PtW/S011NW3p+M5Eomh11ipTIKe6+4LQzHaQ+G+63pIZNJJQXMpljwTwj1brpgx5w1zZlyx5Z4QnllEIm2xeeSUHBf0hV0bejo1Uh09G3aFvgXk7cCJFBc9EdaRVuHJJaOdKyTV2TVhYLMduNR0Q9gxL5GaaTDw8GzejrDRBpxWoGsySRW0dttKuattwNkIlFw2YXgzOdYq4Ox49PlM+JrKd5OusjTWhBuVxUfMX/KXXZ3WEmkuqa67wspR4BTbwtKr/5u4fFgStse/T7EifFPnnYl9zPq4vmUOPrRndgoHjDti1gOPqlyXoifcRNGQzUd31lDyfHmob1Gp35vSr+P6vilcQ5Egtyd8YF/ySg9NhPM+9M/IOaHwp5+PSZayXTvCogEUwlatC3J8LLwYtcWB8EuDXQVuCkV5/B4eNHb7wGBs87LBDS+xjdVSn09wq1G8dFM+9tSUhIGneLvUdniKxKpTYljCpu3j7rVWlHj/P23v4NPGUEyeCQnexe9lJjzEQqMjJs+EzNAX6B98dBZVRmroJx95x/A/6gln18EyfCUsl+qdXb/tjvfbw+mwforpUOBz4XLVoBwAn3aWnfeH246NyBXhrq7TTN5lNSP9RkU+puUJm3W2Tsdq0nZWM07srk7MwQrZSRysjjGWBLRJNsNbfj2JMR4AbxpU1XLAb9Mxfpsq5EjMuuiR8L0JiHOOBX3hiUvOmavN0nMueSzcceFk0BK4pMqLo7vDD1Z0qrtDx7Itt4Xwm9UqbMmk8S0Dtuzb2pvOU99Z1nLTOfleNmvfZfP2pYZmPfajwosKdDBNpacNpVGGsWX9CyDI8Xq/Sj6QAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE0LTExLTEwVDAzOjE3OjU4LTA1OjAwF+tHyQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNC0xMS0xMFQwMzoxNzo1OC0wNTowMGa2/3UAAAAASUVORK5CYII=",height:20,width:20,type:"esriPMS",angle:0})}}_createWindBarbsRenderer(){const e=Array.from(Array(31).keys()).map((e=>5*e)),t=[{range:"0-5",path:"M20 20 M5 20 A15 15 0 1 0 35 20 A15 15 0 1 0 5 20 M20 20 M10 20 A10 10 0 1 0 30 20 A10 10 0 1 0 10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTIwIDIwIE01IDIwIEExNSAxNSAwIDEgMCAzNSAyMCBBMTUgMTUgMCAxIDAgNSAyMCBNMjAgMjAgTTEwIDIwIEExMCAxMCAwIDEgMCAzMCAyMCBBMTAgMTAgMCAxIDAgMTAgMjAiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"5-10",path:"M25 0 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"10-15",path:"M25 0 L25 40 L10 45 L25 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"15-20",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjEyIDAgMTUgNDUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"20-25",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"25-30",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIEwyNSAzNSBNMjUgMzAgTDE3LjUgMzIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"30-35",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"35-40",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"40-45",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"45-50",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"50-55",path:"M25 0 L25 40 L10 40 L25 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"55-60",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxNy41IDMyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"60-65",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"65-70",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"70-75",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"75-80",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"80-85",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"85-90",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxNy41IDE3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"90-95",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"95-100",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20 L25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCBMMjUgMTUgTTI1IDEwIEwxNy41IDEyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"100-105",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"105-110",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDE3LjUgMjcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"110-115",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"115-120",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDE3LjUgMjIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"120-125",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"125-130",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDE3LjUgMTcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"130-135",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"135-140",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDE3LjUgMTIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"140-145",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"145-150",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IE0yNSAxMCBNMjUgNSBMMTcuNSA3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="}],r=k.c.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACgAAAApCAQAAADtq6NDAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAEY0lEQVRIx5XXWWxWRRQH8N+d+31tUdGAVjGglYJABFEBY91jfDAg7piYaFTccA++uMQEFRcSXlATtxiXqMQt4G4iisYl0ai4sIQYtVFZ1KIFKdTS0l4f7vRCS5fPebozc+bM/2z/Mzcx0AgSiUxXnKfIdMn875FIhX53U2n/B/s+kKM4UINTjTBZImixxnrv+9a2iL6zEoUBXcoudrWj/OtHm3wt02lfU9Qao9OnHvIhgmww84MEl1qnxfNmGrqHxAizLdPpC6chGcAxKGGcL+30gOERf1BSpUqVslQSV8d5ReZFe8VQ9avufJn31cWwlJV7iafKStGOE/1qvfH9qUxxu8ydUdmuSKbGO8YUdT2inKLG69pM70tliktl5qIkCAJGmusDG7Vqsc0WjZa4UBlBiA5YZIcjYzB7qDtH5kaUJFLs7RGZTZ42W4PRRmtwvbdt1+wGiaS4drEtDttdZYIDNVuAclR3vA3+dI3qHqmVSy7U6Tv1MScCPvPR7nIpFlsdCy3FdTLPGhK92e2CUITjMJ9ocwKxnsZqc3O3JwMma3d6UVLnyVxB4aXemZqvPqLdpJhW3KVVbY4yYImPo6M5Urv50fj+0z/FG9YaEiENs8UtMfXUaTeTePNHlhXfA1UU+2lyD1Il3Gtt9+adfpNG7dNlpg2U/T3KYLZ2dUWFdTgp3/rQ4sK973qnInV5TIf40x3dhvrJPBiqyWUo4wAtLqhQYS71qK+QKOFRywmGK/kpikzV6WMKhh58vGWs4TIJNjiEYLIuP8Tt4/zmLyqk+AyrJSbF+Qq1DgqRUPMxyl+9q3IQhX/rMCJ6tEunriDs1oSyQZKlr9AkhT2ZIARbJfaJS1vtVbHB+Rgi0RK/y1q1BWsEEyLoz40xtGKcARPVWB1BTPO7f4LNtpkUl1aoMbViLyZo0GRjPD3BxnxjqXeLYlvhqYrzMMG3HoyJXa3JjfnGlbYYFlP7Jh3qKsKY4hQ7TY0nG+xwRL61n63mxHtqNHosigyMLmClNwvuecFnOZB88nNBDzNkzhxEZaKMBVoKapggMzvHHXBEpNSSFAvtcFRsVn0bW8LlMmcXs+c0Kne3gRR32+zg4uXwjC6zit6Wt4a8LXVfcp/MtQXHn2ynGbuCmb8GvvFeJLEE82ReU9/n6+dkq2x3buG9Wn94smcgAw631RPR7BTH+kbmHReZoEpOdEe7zWqZl40s0JWs9Hmv7hjBHqPDwsjGKVJnWWqjbdZp1KhJi0aPmxYZsIRhlttgeF+Jlke41QcOQKoqilSb6HJzSvNG3G/UoWnxwsmt+sVaYwd63dRbqdnMyCPVeyRPvpYgdavM22oGKoMUVRbJfOWMwidJ8Zzb1UvmWK/VVUXzHaTjjrVYh1897HT7xxYEVUaa5SWb/WO+YUWa9SrwvigzM8YlzlYv2GSdVCYxxlBtVnnFq5olwp5/BEk/OLsf5LUmG2+inRJdVvjZ97ZH9/zP34ug1O91pf4p+D+JYBpvrKxfbwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNC0xMS0xMFQwMzoxMjowOS0wNTowMB9ViV0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTQtMTEtMTBUMDM6MTI6MDktMDU6MDBuCDHhAAAAAElFTkSuQmCC",height:20,width:20,type:"esriPMS",angle:0}),i=e.map(((i,n)=>{let s;if(n!==e.length-1)if(0===n)s={minValue:i,maxValue:e[n+1],symbol:r};else{const r=k.c.fromJSON({type:"esriPMS",imageData:t[n].imageData,contentType:"image/svg+xml",height:32,width:32,angle:0});s={minValue:i,maxValue:e[n+1],symbol:r}}return new w.c(s)}));return{defaultSymbol:r,classBreakInfos:i}}_getClassBreaks(e,t){return t.map(((t,r)=>new w.c({minValue:e[r],maxValue:e[r+1],symbol:this._getDefaultSymbol(new n.c(t))})))}};(0,i._)([(0,u.qq)({type:String,json:{write:!0}})],R.prototype,"attributeField",void 0),(0,i._)([(0,u.qq)({type:E.apiValues,json:{type:E.jsonValues,read:{reader:E.read},write:{writer:E.write}}})],R.prototype,"flowRepresentation",void 0),(0,i._)([(0,u.qq)({type:["geographic","arithmetic"],json:{write:!0}})],R.prototype,"rotationType",void 0),(0,i._)([(0,u.qq)({type:U.apiValues,json:{type:U.jsonValues,read:{reader:U.read},write:{writer:U.write}}})],R.prototype,"style",void 0),(0,i._)([(0,u.qq)({json:{write:!0}})],R.prototype,"symbolTileSize",void 0),(0,i._)([(0,u.qq)({type:g.ao.apiValues,json:{type:g.ao.jsonValues,write:{writer:g.ao.write}}})],R.prototype,"inputUnit",void 0),(0,i._)([(0,p.E)("inputUnit")],R.prototype,"readInputUnit",null),(0,i._)([(0,u.qq)({type:g.ao.apiValues,json:{type:g.ao.jsonValues,read:{reader:g.ao.read},write:{writer:g.ao.write}}})],R.prototype,"outputUnit",void 0),(0,i._)([(0,p.E)("outputUnit")],R.prototype,"readOutputUnit",null),(0,i._)([(0,d.G)({vectorField:"vector-field"})],R.prototype,"type",void 0),(0,i._)([(0,u.qq)({type:y.c})],R.prototype,"styleRenderer",null),(0,i._)([(0,u.qq)({type:I.c})],R.prototype,"sizeVariables",null),(0,i._)([(0,u.qq)({type:M.c})],R.prototype,"rotationVariables",null),R=x=(0,i._)([(0,m.c)("esri.renderers.VectorFieldRenderer")],R);const z=R},40996:(e,t,r)=>{r.d(t,{IF:()=>v,Mh:()=>I,RC:()=>M,i:()=>w,oh:()=>b,uw:()=>N});var i=r(44728),n=(r(87080),r(24296),r(600)),s=(r(10708),r(1124)),o=(r(74168),r(44748)),a=r(62996),l=r(69520),c=(r(88352),r(19184),r(70516)),u=r(58708),d=r(24948),p=r(10077),m=(r(65392),r(99704),r(49176));const h=.25,g=c.c.fromJSON({type:"multipart",colorRamps:[{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]}),y=c.c.fromJSON(o.AJ[0]),f=new Set(["scientific","standard-time","vector-uv","vector-magdir","vector-u","vector-v","vector-magnitude","vector-direction"]);function w(e,t){const{attributeTable:r,colormap:n}=e;if((0,a.k1)(e)){const t=function(e){if(!(0,a.k1)(e))return null;let t;if(null!=e.statistics&&e.statistics.length&&("vector-magdir"===e.dataType||"vector-uv"===e.dataType)){const{minMagnitude:r,maxMagnitude:i}=function(e,t){let r,i;if("vector-magdir"===e)r=t[0].min,i=t[0].max;else{const e=t[0].min,n=t[0].max,s=t[1].min,o=t[1].max;r=0,i=Math.max(Math.abs(e),Math.abs(s),Math.abs(n),Math.abs(o))}return{minMagnitude:r,maxMagnitude:i}}(e.dataType,e.statistics);t=[{type:"size",field:"Magnitude",minSize:10,maxSize:40,minDataValue:r,maxDataValue:i}]}const r=null!=e.multidimensionalInfo?T.get(e.multidimensionalInfo.variables[0].unit):null,i=new m.c({visualVariables:t,inputUnit:r,rotationType:"geographic"});return i.visualVariables=[...i.sizeVariables,...i.rotationVariables],i}(e);if(null!=t)return t}if(null!=n){const t=function(e){if(!(0,a.Wm)(e))return null;let t;const{attributeTable:r,colormap:i}=e;if(null!=r){const e=D(r,"value"),i=A(r,null,!0);"string"===i.type&&(t={},r.features.forEach((r=>{const n=r.attributes;t[n[e.name]]=i?n[i.name]:n[e.name]})))}return p.c.createFromColormap(i,t)}(e);if(null!=t)return t}if(null!=r){const t=function(e,t,r,n){if(!(0,a.ER)(e,t))return null;const{attributeTable:c,statistics:u}=e,p=A(c,t),m=D(c,"red"),h=D(c,"green"),g=D(c,"blue"),f=new s.c,w=[],M=new Set,I=!!(m&&h&&g);if(null!=c)c.features.forEach((e=>{const t=e.attributes[p.name];if(!M.has(e.attributes[p.name])&&null!=t){M.add(t);const r=I&&("single"===m.type||"double"===m.type)&&("single"===h.type||"double"===h.type)&&("single"===g.type||"double"===g.type)&&!c.features.some((e=>e.attributes[m.name]>1||e.attributes[h.name]>1||e.attributes[g.name]>1)),n=r?255:1;w.push(new l.c({value:e.attributes[p.name],label:e.attributes[p.name]+"",symbol:{type:"simple-fill",style:"solid",outline:null,color:new i.c(I?[e.attributes[m.name]*n,e.attributes[h.name]*n,e.attributes[g.name]*n,1]:[0,0,0,0])}}))}}));else if(u?.[0])for(let e=u[0].min;e<=u[0].max;e++)w.push(new l.c({value:e,label:e.toString(),symbol:{type:"simple-fill",style:"solid",outline:null,color:new i.c([0,0,0,0])}}));if(w.sort(((e,t)=>e.value&&"string"==typeof e.value.valueOf()?0:e.value>t.value?1:-1)),!I){const e=(0,o.Ky)(y,{numColors:w.length});w.forEach(((t,r)=>t.symbol.color=new i.c(e[r].slice(1,4)))),f.colorRamp=y}return new d.c({field:p.name,uniqueValueInfos:w,authoringInfo:f})}(e);if(null!=t)return t}return function(e,t){e=v(e,t?.variableName);const{bandCount:r}=e;let{bandIds:i,stretchType:n}=t||{};i?.some((e=>e>=r))&&(i=null);let s=e.statistics,o=e.histograms;r>1?(i=i?.length?i:b(e),s=null==s?null:i?.map((e=>s[e])),o=null==o?null:i?.map((e=>o[e]))):i=[0],null==n&&(n=function(e){let t="percent-clip";const{pixelType:r,dataType:i,histograms:n,statistics:s,multidimensionalInfo:o}=e,a=f.has(i)||"generic"===i&&null!=o;return"u8"!==r||"processed"!==i&&null!=n&&null!=s?"u8"===r||"elevation"===i||a?t="min-max":null!=n?t="percent-clip":null!=s&&(t="min-max"):t="none",t}(e));let a=!1;switch(n){case"none":a=!1;break;case"percent-clip":a=!o?.length;break;default:a=!s?.length}const{dataType:l}=e,c=1===i?.length&&f.has(l)?g:null,d=new u.c({stretchType:n,dynamicRangeAdjustment:a,colorRamp:c,outputMin:0,outputMax:255,gamma:1===i?.length?[1]:[1,1,1],useGamma:!1});return"percent-clip"===n?d.maxPercent=d.minPercent=h:"standard-deviation"===n&&(d.numberOfStandardDeviations=2),a||null==e.multidimensionalInfo&&!t?.includeStatisticsInStretch||("percent-clip"===n?d.histograms=o:"min-max"!==n&&"standard-deviation"!==n||(d.statistics=s)),d}(e,t)}function M(e,t=!1){const r=["raster-stretch"];return(0,a.Wm)(e,t)&&r.push("raster-colormap"),(0,a.ER)(e)&&r.push("unique-value"),(0,a.kR)(e,t)&&r.push("class-breaks"),(0,a.Yt)(e)&&r.push("raster-shaded-relief"),(0,a.k1)(e)&&r.push("vector-field"),(0,a.UV)(e)&&r.push("flow"),r}function I(e,t,r){const i=["nearest","bilinear","cubic","majority"].find((e=>e===r?.toLowerCase()));return"Map"===t?i??"bilinear":"standard-time"===e.dataType?i??"nearest":"thematic"===e.dataType||e.attributeTable||e.colormap?"nearest"===i||"majority"===i?i:"nearest":i??"bilinear"}function v(e,t){const{multidimensionalInfo:r}=e;if(!t||!r)return e;const i=r.variables.find((e=>e.name===t));if(!i)return e;if(e=e.clone(),i){const{statistics:t,histograms:r}=i;t?.length&&(e.statistics=t.map((e=>({min:e.min,max:e.max,avg:e.avg,stddev:e.stddev})))),r?.length&&(e.histograms=r)}return e}function b(e){const t=e.bandCount;if(1===t)return null;if(2===t)return[0];const{bandInfos:r}=e;let i;if(r.length===t){const{red:e,green:t,blue:n,nir:s}=function(e){const t={};for(let r=0;r<e.length;r++){const i=e[r],n=i.name.toLowerCase();if("red"===n)t.red=r;else if("green"===n)t.green=r;else if("blue"===n)t.blue=r;else if("nearinfrared"===n||"nearinfrared_1"===n||"nir"===n)t.nir=r;else if(i.maxWavelength&&i.minWavelength){const e=i.minWavelength,n=i.maxWavelength;null==t.blue&&e>=410&&e<=480&&n>=480&&n<=540?t.blue=r:null==t.green&&e>=490&&e<=560&&n>=560&&n<=610?t.green=r:null==t.red&&e>=595&&e<=670&&n>=660&&n<=730?t.red=r:null==t.nir&&e>=700&&e<=860&&n>=800&&n<=950&&(t.nir=r)}}return t}(r);null!=e&&null!=t&&null!=n?i=[e,t,n]:null!=s&&null!=e&&null!=t&&(i=[s,e,t])}return!i&&t>=3&&(i=[0,1,2]),i}function A(e,t,r){let i;return null!=e?(i=t?e.fields.find((e=>t.toLowerCase()===e.name.toLowerCase())):function(e){let t;for(let r=0;r<e.length;r++){const i=e[r].name.toLowerCase();if("string"===e[r].type){if(i.startsWith("class")){t=e[r];break}null==t&&(i.endsWith("name")||i.endsWith("type"))&&(t=e[r])}}return t}(e.fields),i||(r||(i=e.fields.find((e=>"string"===e.type))),i||(i=D(e,"value")))):i=new n.c({name:"value"}),i}function D(e,t){return null==e?null:e.fields.find((e=>e.name.toLowerCase()===t))}const T=new Map([["m/s","meter-per-second"],["km/h","kilometer-per-hour"],["knots","knots"],["ft/s","feet-per-second"],["mph","mile-per-hour"]]);function S(e){return{color:e.symbolLayers[0].material?.color,type:"esriSFS",style:"esriSFSSolid"}}function N(e){if("uniqueValue"===e.type){const t=e.uniqueValueInfos,r=t?.[0].symbol;return r?.symbolLayers?.length&&(e.uniqueValueInfos=t?.map((e=>({value:e.value,label:e.label,symbol:e.symbol?S(e.symbol):null})))),e}if("classBreaks"===e.type){const t=e.classBreakInfos,r=t[0].symbol;return r?.symbolLayers?.length&&(e.classBreakInfos=t.map((e=>({classMinValue:e.classMinValue,classMaxValue:e.classMaxValue,label:e.label,symbol:e.symbol?S(e.symbol):null})))),e}return e}},71599:(e,t,r)=>{r.d(t,{Rk:()=>d,cV:()=>p,sJ:()=>m});var i=r(2600),n=r(95247),s=r(67776),o=r(56156),a=r(64896),l=r(21980),c=r(59500);async function u(e,t,r){const u=(0,l.UX)(e),{rasterFunction:d,sourceJSON:p}=t||{},m=d?JSON.stringify(d.rasterFunctionDefinition||d):null,h=(0,l.OW)({...u.query,renderingRule:m,f:"json"}),g=(0,l.sR)(h,r);e=u.path;const y=p||await(0,i.c)(e,g).then((e=>e.data)),f=y.hasRasterAttributeTable?(0,i.c)(`${e}/rasterAttributeTable`,g):null,w=y.hasColormap?(0,i.c)(`${e}/colormap`,g):null,M=y.hasHistograms?(0,i.c)(`${e}/histograms`,g):null,I=y.currentVersion>=10.3?(0,i.c)(`${e}/keyProperties`,g):null,v=y.hasMultidimensions?(0,i.c)(`${e}/multidimensionalInfo`,g):null,b=await Promise.allSettled([f,w,M,I,v]);let A=null;if(y.minValues&&y.minValues.length===y.bandCount){A=[];for(let e=0;e<y.minValues.length;e++)A.push({min:y.minValues[e],max:y.maxValues[e],avg:y.meanValues[e],stddev:y.stdvValues[e]})}const D=n.c.fromJSON(y.extent),T=Math.ceil(D.width/y.pixelSizeX-.1),S=Math.ceil(D.height/y.pixelSizeY-.1),N=o.c.fromJSON(y.spatialReference||y.extent.spatialReference),j="fulfilled"===b[0].status?b[0].value?.data:null,C=j?.features?.length?c.c.fromJSON(j):null,_="fulfilled"===b[1].status?b[1].value?.data.colormap:null,x=_?.length?_:null,L="fulfilled"===b[2].status?b[2].value?.data.histograms:null,k=L?.[0]?.counts?.length?L:null,q="fulfilled"===b[3].status?b[3].value?.data??{}:{},U="fulfilled"===b[4].status?b[4].value?.data.multidimensionalInfo:null,E=U?.variables?.length?U:null;E&&E.variables.forEach((e=>{e.statistics?.length&&e.statistics.forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation}))}));const{defaultVariable:R,serviceDataType:z}=y;R&&R!==q.DefaultVariable&&(q.DefaultVariable=R),z?.includes("esriImageServiceDataTypeVector")&&!z.includes(q.DataType)&&(q.DataType=z.replace("esriImageServiceDataType",""));let B=y.noDataValue;return y.noDataValues?.length&&y.noDataValues.some((e=>e!==B))&&(B=y.noDataValues),new a.c({width:T,height:S,bandCount:y.bandCount,extent:n.c.fromJSON(y.extent),spatialReference:N,pixelSize:new s.c({x:y.pixelSizeX,y:y.pixelSizeY,spatialReference:N}),pixelType:y.pixelType.toLowerCase(),statistics:A,attributeTable:C,colormap:x,histograms:k,keyProperties:q,noDataValue:B,multidimensionalInfo:E})}function d(e,t,r){return u(e,{sourceJSON:t},r)}function p(e,t,r){return u(e,{rasterFunction:t},r)}function m(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},59500:(e,t,r)=>{r.d(t,{c:()=>M});var i,n=r(41948),s=r(60708),o=r(6444),a=r(14628),l=r(40504),c=r(62088),u=r(1580),d=(r(9456),r(66360),r(33600)),p=r(12552),m=r(18996),h=r(56156),g=r(6704),y=r(600);const f=new a.O({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=i=class extends l.am{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=h.c.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const n=e[t],s=o.c.fromJSON(n),a=n.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=r);const l=n.aggregateGeometries,c=s.aggregateGeometries;if(l&&null!=c)for(const e in c){const t=c[e],i=l[e],n=i?.spatialReference;null==t||n||(t.spatialReference=r)}i.push(s)}return i}writeGeometryType(e,t,r,i){if(e)return void f.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void f.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,g.h4)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=h.c.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,c.ct)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((n-e)/r)));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[s,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const c=this._getHydrationFunction(e,(e=>e*s+i),(e=>n-e*o),a,l);for(const{geometry:e}of t)null!=e&&c&&c(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,n;const s=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===i&&o===n||(s.push([e-i,o-n]),i=e,n=o)}else i=t(a[0]),n=r(a[1]),s.push([i,n])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,g.Cs)(e)?e.rings:e.paths,n=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,r);o&&n.push(o)}return n.length>0?((0,g.Cs)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,g.Cs)(e)?e.rings:e.paths;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(o+=n[0],a+=n[1]):(o=n[0],a=n[1]),n[0]=t(o),n[1]=r(a)}}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}}:null}};(0,n._)([(0,u.qq)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,n._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,n._)([(0,u.qq)({type:[o.c],json:{write:!0}})],w.prototype,"features",void 0),(0,n._)([(0,d.E)("features")],w.prototype,"readFeatures",null),(0,n._)([(0,u.qq)({type:[y.c],json:{write:!0}})],w.prototype,"fields",void 0),(0,n._)([(0,u.qq)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:f.read}}})],w.prototype,"geometryType",void 0),(0,n._)([(0,m.G)("geometryType")],w.prototype,"writeGeometryType",null),(0,n._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,n._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,n._)([(0,u.qq)({types:s.Su,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,n._)([(0,d.E)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,n._)([(0,u.qq)({type:h.c,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,n._)([(0,m.G)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,n._)([(0,u.qq)({json:{write:!0}})],w.prototype,"transform",void 0),w=i=(0,n._)([(0,p.c)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const M=w},65680:(e,t,r)=>{r.d(t,{c:()=>M});var i,n=r(41948),s=r(60708),o=r(25228),a=r(26832),l=r(40504),c=r(62088),u=r(66360),d=r(1580),p=(r(9456),r(12552)),m=r(18996),h=r(6704),g=r(88392),y=r(75e3),f=r(67776);let w=i=class extends l.am{constructor(){super(...arguments),this.geometry=null,this.mosaicRule=null,this.rasterFunction=null,this.pixelSize=null,this.raster=void 0,this.timeExtent=null}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,h.Ce)(e),t[r]=e.toJSON())}get renderingRule(){return(0,a.y2)(u.c.getLogger(this),"renderingRule",{replacement:"rasterFunction",version:"4.27",warnOnce:!0}),this._get("rasterFunction")}set renderingRule(e){(0,a.y2)(u.c.getLogger(this),"renderingRule",{replacement:"rasterFunction",version:"4.27",warnOnce:!0}),this._set("rasterFunction",e)}clone(){return new i((0,c.ct)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,pixelSize:this.pixelSize,raster:this.raster,timeExtent:this.timeExtent}))}};(0,n._)([(0,d.qq)({types:s.Su,json:{read:h.h4}})],w.prototype,"geometry",void 0),(0,n._)([(0,m.G)("geometry")],w.prototype,"writeGeometry",null),(0,n._)([(0,d.qq)({type:g.c,json:{write:!0}})],w.prototype,"mosaicRule",void 0),(0,n._)([(0,d.qq)({type:y.c})],w.prototype,"renderingRule",null),(0,n._)([(0,d.qq)({type:y.c,json:{write:!0,name:"renderingRule"}})],w.prototype,"rasterFunction",void 0),(0,n._)([(0,d.qq)({type:f.c,json:{write:!0}})],w.prototype,"pixelSize",void 0),(0,n._)([(0,d.qq)({json:{write:!0}})],w.prototype,"raster",void 0),(0,n._)([(0,d.qq)({type:o.c,json:{read:{source:"time"},write:{target:"time"}}})],w.prototype,"timeExtent",void 0),w=i=(0,n._)([(0,p.c)("esri.rest.support.ImageHistogramParameters")],w);const M=w},65548:(e,t,r)=>{r.d(t,{Ap:()=>c});var i=r(82692),n=r(564),s=r(3739),o=(r(73312),r(67300),r(18480),r(72944)),a=(r(53568),r(15024),r(63116),r(13428)),l=r(76992);function c({displayField:e,editFieldsInfo:t,fields:r,objectIdField:l,title:c},m){if(!r)return null;const g=function(e,t){const r=t?.visibleFieldNames;return function(e,t){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),e.sort(d),e}(e.fields??[],t?.ignoreFieldTypes||h).map((t=>new a.c({fieldName:t.name,isEditable:(0,n.Yn)(t,e),label:t.alias,format:p(t),visible:u(t,{...e,visibleFieldNames:r})})))}({editFieldsInfo:t,fields:r,objectIdField:l},m);if(!g.length)return null;const y=function(e){const t=(0,n.G2)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:c,fields:r,displayField:e}),f=[new o.c,new s.c];return new i.c({title:y,content:f,fieldInfos:g})}const u=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.iY)(e,t);function d(e,t){return"oid"===e.type?-1:"oid"===t.type?1:m(e)?-1:m(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function p(e){switch(e.type){case"small-integer":case"integer":case"single":return new l.c({digitSeparator:!0,places:0});case"double":return new l.c({digitSeparator:!0,places:2});case"string":return(0,n.Gm)(e.name)?new l.c({digitSeparator:!0,places:0}):null;default:return null}}function m(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const h=["geometry","blob","raster","guid","xml"]},8616:(e,t,r)=>{var i;r.d(t,{U:()=>i}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(i||(i={}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9056],{13452:(e,t,r)=>{r.d(t,{c:()=>p});var i=r(41948),n=r(3856),s=r(40504),o=r(94360),a=r(1580),l=(r(9456),r(66360),r(72052),r(9968)),c=r(12552),u=r(4736);let d=class extends((0,n.q)(s.am)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.QJ)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.G)(u.e,{nonNullable:!0})],d.prototype,"unit",void 0),(0,i._)([(0,a.qq)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,i._)([(0,c.c)("esri.TimeInterval")],d);const p=d},54792:(e,t,r)=>{r.d(t,{c:()=>s});var i=r(67432),n=r(9592);class s{constructor(e=(e=>e.values().next().value)){this._peeker=e,this._observable=new n.n,this._items=new Set}get length(){return(0,i.am)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,i.am)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length;return this._items.forEach((t=>{e(t)||this._items.delete(t)})),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,i.am)(this._observable),yield*this._items}}},46448:(e,t,r)=>{r.d(t,{c:()=>c});var i=r(38912),n=r(10860),s=r(54792),o=r(13056),a=r(25512),l=r(38432);class c{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new s.c}destroy(){this.close()}get closed(){return!this._clients?.length}open(e,t){return new Promise(((r,i)=>{let s=!0;const o=e=>{(0,n.wp)(t.signal),s&&(s=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let s=0;s<e.length;++s){const a=e[s];(0,n.eW)(a)?this._clientPromises[s]=a.then((e=>(this._clients[s]=new l.default(e,t,this._ongoingJobsQueue),o(r),this._clients[s])),(()=>(o(i),null))):(this._clients[s]=new l.default(a,t,this._ongoingJobsQueue),this._clientPromises[s]=Promise.resolve(this._clients[s]),o(r))}}))}broadcast(e,t,r){const i=new Array(this._clientPromises.length);for(let n=0;n<this._clientPromises.length;++n){const s=this._clientPromises[n];i[n]=s.then((i=>i?.invoke(e,t,r)))}return i}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,n.Uh)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then((e=>e?.close()));this._clients.length=0,this._clientPromises.length=0,this._inUseClients.length=0,(0,o.S)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const i=(0,n.qG)();this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:r,resolver:i});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then((e=>e?.jobAdded()))}return i.promise}createInvokeProxy(e){return(0,a.Y)(this,e)}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,i.Ip)(this._clients.map((r=>r.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let r=t.length;for(let i=0;i<this._clientPromises.length;++i)this._clientPromises[i].then((n=>{n&&(t[i]=n.openPort()),0==--r&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},13056:(e,t,r)=>{r.d(t,{S:()=>s,s:()=>n});const i=new FinalizationRegistry((e=>{e.close()}));function n(e,t){i.register(e,t,t)}function s(e){i.unregister(e)}},35268:(e,t,r)=>{r.d(t,{eU:()=>Z});var i=r(20744),n=r(9456),s=r(10860),o=r(46448),a=r(13056),l=r(38432),c=r(66360),u=r(70680),d=r(2600),p=r(28176);const m={async request(e,t){const r=e.options,i=r.responseType;r.signal=t?.signal,r.responseType="native"===i||"native-request-init"===i?"native-request-init":i&&["blob","json","text"].includes(i)&&(0,p.OO)(e.url)?.after?i:"array-buffer";const n=await(0,d.c)(e.url,r),s={data:n.data,httpStatus:n.httpStatus,ssl:n.ssl};switch(n.requestOptions?.responseType){case"native-request-init":return delete s.data.signal,s;case"blob":s.data=await s.data.arrayBuffer();break;case"json":s.data=(new TextEncoder).encode(JSON.stringify(s.data)).buffer;break;case"text":s.data=(new TextEncoder).encode(s.data).buffer}return{result:s,transferList:[s.data]}}};var h=r(31056),g=r(24832),y=r(6220),f=(r(2016),r(47620));const w={};var M=r(52324);class I{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...r)=>e[t](...r)}))}}class v{constructor(){this._dispatcher=new I,this._workerPostMessage({type:h.MessageType.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,M.o)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,M.o)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,h.mO)(e);if(t&&t.type===h.MessageType.OPEN){const{modulePath:e,jobId:r}=t;let i=await l.default.loadWorker(e);i||(i=await import(e));const n=l.default.connect(i);this._workerPostMessage({type:h.MessageType.OPENED,jobId:r,data:n})}}}var b=r(89960),A=r(69880);const D=()=>c.c.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:T}=h.MessageType;let S,N;const j="Failed to create Worker. Fallback to execute module in main thread";async function C(e){return new Promise((t=>{function r(n){const s=(0,h.mO)(n);s&&s.type===T&&(e.removeEventListener("message",r),e.removeEventListener("error",i),t(e))}function i(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",i),D().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new v).addEventListener("message",r),e.addEventListener("error",i)}e.addEventListener("message",r),e.addEventListener("error",i)}))}let _=0;const{ABORT:x,INVOKE:L,OPEN:k,OPENED:q,RESPONSE:U}=h.MessageType;class E{static async create(e){const t=await async function(){if(!(0,n.c)("esri-workers"))return C(new v);if(!S&&!N)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,s)=>{if(t){if(t.aborted)return s(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:ABORT,jobId:n}),s(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:s}),self.postMessage({type:INVOKE,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\\nModules version: ${r}\\nAssets version: ${n??s}\\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case OPEN:let n;function t(e){const o=n.connect(e);self.postMessage({type:OPENED,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case RESPONSE:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split('"{CONFIGURATION}"').join(`'${function(){let e;if(null!=y.default.default){const t={...y.default};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(y.default));e.assetsPath=(0,p.WM)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,p.WM)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,b.a8)(),e.has={"esri-csp-restrictions":(0,n.c)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,n.c)("esri-2d-update-debug"),"esri-2d-log-updating":(0,n.c)("esri-2d-log-updating"),"featurelayer-pbf":(0,n.c)("featurelayer-pbf"),"featurelayer-fast-triangulation-enabled":(0,n.c)("featurelayer-fast-triangulation-enabled"),"featurelayer-simplify-thresholds":(0,n.c)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,n.c)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,n.c)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,n.c)("featurelayer-query-max-depth"),"featurelayer-query-pausing-enabled":(0,n.c)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-enabled":(0,n.c)("featurelayer-snapshot-enabled"),"esri-atomics":(0,n.c)("esri-atomics"),"esri-shared-array-buffer":(0,n.c)("esri-shared-array-buffer"),"esri-tiles-debug":(0,n.c)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,n.c)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,n.c)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,p.WM)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,p.WM)(e.workers.workerPath):e.workers.workerPath=(0,p.WM)((0,g.O)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=y.default.workers.loaderConfig,r=function(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=w.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,b.a8)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),i={buildDate:A.W,fullVersion:f.c1,revision:A.m};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:i})}()}'`);S=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){N=e||{}}let e;if(S)try{e=new Worker(S,{name:"esri-worker-"+_++})}catch(t){D().warn(j,N),e=new v}else D().warn(j,N),e=new v;return C(e)}();return new E(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),c.c.getLogger("esri.core.workers.WorkerOwner").error(e)}))}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,i=(0,h.W4)();return new Promise(((t,n)=>{const o={resolve:t,reject:n,abortHandle:(0,s.Ij)(r,(()=>{this._outJobs.delete(i),this._post({type:x,jobId:i})}))};this._outJobs.set(i,o),this._post({type:k,jobId:i,modulePath:e})}))}_onMessage(e){const t=(0,h.mO)(e);if(t)switch(t.type){case q:this._onOpenedMessage(t);break;case U:this._onResponseMessage(t);break;case x:this._onAbortMessage(t);break;case L:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,i=t.get(r);i&&(i.controller&&i.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:i,abortable:n}=e,o=n?new AbortController:null,a=this._inJobs,l=m[t];let c;try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`);c=l.call(null,i,{signal:o?o.signal:null})}catch(e){return void this._post({type:U,jobId:r,error:(0,h.O)(e)})}(0,s.eW)(c)?(a.set(r,{controller:o,promise:c}),c.then((e=>{a.has(r)&&(a.delete(r),this._post({type:U,jobId:r},e))}),(e=>{a.has(r)&&(a.delete(r),e||(e={message:"Error encountered at method"+t}),(0,s.mA)(e)||this._post({type:U,jobId:r,error:(0,h.O)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:U,jobId:r},c)}_onOpenedMessage(e){const{jobId:t,data:r}=e,i=this._outJobs.get(t);i&&(this._outJobs.delete(t),(0,u.oR)(i.abortHandle),i.resolve(r))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,u.oR)(s.abortHandle),r?s.reject(i.c.fromJSON(JSON.parse(r))):s.resolve(n))}_post(e,t,r){return(0,h.E9)(this.worker,e,t,r)}}const R=(0,n.c)("host-browser")?Math.min(navigator.hardwareConcurrency-1,(0,n.c)("workers-pool-size")):0;let z=(0,n.c)("esri-mobile")?Math.min(R,3):R;z||(z=(0,n.c)("safari")&&(0,n.c)("mac")?7:2);let B=0;const P=[];async function H(e,t){const r=new o.c,{registryTarget:i,...n}=t;return await r.open(e,n),i&&(0,a.s)(i,r),r}async function Z(e,t={}){if("string"!=typeof e)throw new i.c("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if((0,n.c)("host-webworker")&&!(0,n.c)("esri-workers")&&(r="local"),"local"===r){let r=await l.default.loadWorker(e);r||(r=await import(e)),(0,s.wp)(t.signal);const i=t.client||r;return H([l.default.connect(r)],{...t,client:i})}if(await async function(){if(F)return F;O=new AbortController;const e=[];for(let t=0;t<z;t++){const r=E.create(t).then((e=>(P[t]=e,e)));e.push(r)}return F=Promise.all(e),F}(),(0,s.wp)(t.signal),"dedicated"===r){const r=B++%z;return H([await P[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,z);if(r<z){const i=new Array(r);for(let n=0;n<r;++n){const r=B++%z;i[n]=P[r].open(e,t)}return H(i,t)}}return H(P.map((r=>r.open(e,t))),t)}let O,F=null},77048:(e,t,r)=>{r.d(t,{C6:()=>d,FZ:()=>h,K:()=>M,K8:()=>l,MZ:()=>a,Qv:()=>g,Su:()=>n,UN:()=>I,WK:()=>s,WO:()=>m,WU:()=>o,eC:()=>u,is:()=>f,mK:()=>p,qe:()=>c,qy:()=>y,yK:()=>w});var i=r(95247);function n(e=I){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,r,i,s,o,a=n()){return a[0]=e,a[1]=t,a[2]=r,a[3]=i,a[4]=s,a[5]=o,a}function o(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.c(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function c(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],o=e[2],a=e[3],l=e[4],c=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),o=Math.min(o,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),c=Math.max(c,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=c}function u(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function d(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function p(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function h(e){return e?m(e,M):n(M)}function g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function y(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function f(e){return 6===e.length}function w(e,t,r){if(null==e||null==t)return e===t;if(!f(e)||!f(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(83372);const M=[1/0,1/0,1/0,-1/0,-1/0,-1/0],I=[0,0,0,0,0,0];n()},16660:(e,t,r)=>{r.d(t,{u:()=>l});var i=r(41948),n=r(66360),s=r(1580),o=(r(9456),r(72052),r(12552)),a=r(48212);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.K0)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.oR)(e,n.c.getLogger(this)))}};return(0,i._)([(0,s.qq)()],t.prototype,"title",null),(0,i._)([(0,s.qq)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,o.c)("esri.layers.mixins.ArcGISService")],t),t}},28584:(e,t,r)=>{r.d(t,{G:()=>o});var i=r(41948),n=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,n.qq)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,s.c)("esri.layers.mixins.CustomParametersMixin")],t),t}},98768:(e,t,r)=>{r.d(t,{K:()=>b});var i=r(41948),n=r(6220),s=r(47620),o=r(2600),a=r(40196),l=r(20744),c=r(66360),u=r(70680),d=r(10860),p=r(28176),m=r(1580),h=(r(9456),r(72052),r(33600)),g=r(12552),y=r(18996),f=r(71068),w=r(54872),M=r(9764),I=r(53039),v=r(46940);const b=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.mG)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new M.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await Promise.all([r.e(8828),r.e(4132)]).then(r.bind(r,94132));return(0,d.wp)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,d.mA)(e)||c.c.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,d.CE)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,d.CE)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,v.CI)(r);let n,o;if(i)n=r.portal.url;else try{n=await(0,f.mK)(this.url,t)}catch(e){(0,d.CE)(e)}if(!n||!(0,p.Cs)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.CE)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new M.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,v.CI)(r)}catch(e){(0,d.CE)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.CE)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=A.credential===t?A.user:await this._fetchEditingUser(e);return A.credential=t,A.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=w.c.getDefault();if(n&&n.loaded&&(0,p.k7)(n.restUrl)===(0,p.k7)(i))return n.user;const l=`${i}/community/self`,c=null!=e?e.signal:null,u=await(0,a.aG)((0,o.c)(l,{authMode:"no-prompt",query:{f:"json"},signal:c}));return u.ok?I.c.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||w.c.getDefault());return r&&i&&!(0,p.kF)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.c("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,m.qq)({type:M.default})],t.prototype,"portalItem",null),(0,i._)([(0,h.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,y.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,m.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,m.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,m.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,m.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,g.c)("esri.layers.mixins.PortalLayer")],t),t},A={credential:null,user:null}},19560:(e,t,r)=>{r.d(t,{u:()=>p});var i=r(41948),n=r(25228),s=r(13452),o=r(1580),a=(r(9456),r(66360),r(72052),r(33600)),l=r(12552),c=r(564),u=r(99336),d=r(4736);const p=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=d.e.fromJSON(r.timeOffsetUnits);return i&&n?new s.c({value:i,unit:n}):null}set timeInfo(e){(0,c.Wc)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,o.qq)({type:n.c,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,o.qq)({type:s.c})],t.prototype,"timeOffset",void 0),(0,i._)([(0,a.E)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,o.qq)({value:null,type:u.c,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,o.qq)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,l.c)("esri.layers.mixins.TemporalLayer")],t),t}},91768:(e,t,r)=>{r.d(t,{c:()=>d});var i,n=r(41948),s=r(40504),o=r(62088),a=r(1580),l=r(53368),c=r(12552);let u=i=class extends s.am{constructor(e){super(e),this.variableName=null,this.dimensionName=null,this.values=[],this.isSlice=!1}clone(){return new i({variableName:this.variableName,dimensionName:this.dimensionName,values:(0,o.ct)(this.values),isSlice:this.isSlice})}};(0,n._)([(0,a.qq)({type:String,json:{write:!0}})],u.prototype,"variableName",void 0),(0,n._)([(0,a.qq)({type:String,json:{write:!0}})],u.prototype,"dimensionName",void 0),(0,n._)([(0,a.qq)({type:l.i2.array(l.i2.oneOf([l.i2.native(Number),l.i2.array(l.i2.native(Number))])),json:{write:!0}})],u.prototype,"values",void 0),(0,n._)([(0,a.qq)({type:Boolean,json:{write:!0}})],u.prototype,"isSlice",void 0),u=i=(0,n._)([(0,c.c)("esri.layers.support.DimensionalDefinition")],u);const d=u},600:(e,t,r)=>{r.d(t,{c:()=>y});var i,n=r(41948),s=r(14628),o=r(40504),a=r(1580),l=r(53368),c=(r(72052),r(9456),r(9968)),u=r(33600),d=r(12552),p=r(89812),m=r(36408);const h=new s.O({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let g=i=class extends o.am{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?h.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n._)([(0,a.qq)({type:String,json:{write:!0}})],g.prototype,"alias",void 0),(0,n._)([(0,a.qq)({type:[String,Number],json:{write:{allowNull:!0}}})],g.prototype,"defaultValue",void 0),(0,n._)([(0,a.qq)()],g.prototype,"description",void 0),(0,n._)([(0,u.E)("description")],g.prototype,"readDescription",null),(0,n._)([(0,a.qq)({types:p.i2,json:{read:{reader:p.h4},write:!0}})],g.prototype,"domain",void 0),(0,n._)([(0,a.qq)({type:Boolean,json:{write:!0}})],g.prototype,"editable",void 0),(0,n._)([(0,a.qq)({type:l.Ab,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],g.prototype,"length",void 0),(0,n._)([(0,a.qq)({type:String,json:{write:!0}})],g.prototype,"name",void 0),(0,n._)([(0,a.qq)({type:Boolean,json:{write:!0}})],g.prototype,"nullable",void 0),(0,n._)([(0,c.G)(m.M)],g.prototype,"type",void 0),(0,n._)([(0,a.qq)()],g.prototype,"valueType",void 0),(0,n._)([(0,u.E)("valueType",["description"])],g.prototype,"readValueType",null),(0,n._)([(0,a.qq)({type:Boolean,json:{read:!1}})],g.prototype,"visible",void 0),g=i=(0,n._)([(0,d.c)("esri.layers.support.Field")],g);const y=g},88392:(e,t,r)=>{r.d(t,{c:()=>b});var i,n=r(41948),s=r(26832),o=r(14628),a=r(40504),l=r(62088),c=r(66360),u=r(1580),d=r(33392),p=r(33600),m=r(12552),h=r(18996),g=r(53368),y=r(67776),f=r(91768),w=r(75e3);const M=(0,o.w)()({MT_FIRST:"first",MT_LAST:"last",MT_MIN:"min",MT_MAX:"max",MT_MEAN:"mean",MT_BLEND:"blend",MT_SUM:"sum"}),I=(0,o.w)()({esriMosaicNone:"none",esriMosaicCenter:"center",esriMosaicNadir:"nadir",esriMosaicViewpoint:"viewpoint",esriMosaicAttribute:"attribute",esriMosaicLockRaster:"lock-raster",esriMosaicNorthwest:"northwest",esriMosaicSeamline:"seamline"});let v=i=class extends a.am{constructor(e){super(e),this.ascending=!0,this.itemRasterFunction=null,this.lockRasterIds=null,this.method=null,this.multidimensionalDefinition=null,this.objectIds=null,this.operation=null,this.sortField=null,this.sortValue=null,this.viewpoint=null,this.where=null}readAscending(e,t){return null!=t.ascending?t.ascending:null==t.sortAscending||t.sortAscending}get itemRenderingRule(){return(0,s.y2)(c.c.getLogger(this),"itemRenderingRule",{replacement:"itemRasterFunction",version:"4.27",warnOnce:!0}),this._get("itemRasterFunction")}set itemRenderingRule(e){(0,s.y2)(c.c.getLogger(this),"itemRenderingRule",{replacement:"itemRasterFunction",version:"4.27",warnOnce:!0}),this._set("itemRasterFunction",e)}readMethod(e,t){return function(e){let t;switch(e?e.toLowerCase().replace("esrimosaic",""):""){case"byattribute":case"attribute":t="esriMosaicAttribute";break;case"lockraster":t="esriMosaicLockRaster";break;case"center":t="esriMosaicCenter";break;case"northwest":t="esriMosaicNorthwest";break;case"nadir":t="esriMosaicNadir";break;case"viewpoint":t="esriMosaicViewpoint";break;case"seamline":t="esriMosaicSeamline";break;default:t="esriMosaicNone"}return I.fromJSON(t)}(t.mosaicMethod||t.defaultMosaicMethod)}writeMultidimensionalDefinition(e,t,r){null!=e&&(e=e.filter((({variableName:e,dimensionName:t})=>e&&"*"!==e||t))).length&&(t[r]=e.map((e=>e.toJSON())))}readOperation(e,t){const r=t.mosaicOperation,i=t.mosaicOperator?.toLowerCase(),n=r||(i?M.toJSON(i):null);return M.fromJSON(n)||"first"}castSortValue(e){return null==e||"string"==typeof e||"number"==typeof e?e:`${e}`}clone(){return new i({ascending:this.ascending,itemRasterFunction:(0,l.ct)(this.itemRasterFunction),lockRasterIds:(0,l.ct)(this.lockRasterIds),method:this.method,multidimensionalDefinition:(0,l.ct)(this.multidimensionalDefinition),objectIds:(0,l.ct)(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:(0,l.ct)(this.viewpoint),where:this.where})}};(0,n._)([(0,u.qq)({type:Boolean,json:{write:!0}})],v.prototype,"ascending",void 0),(0,n._)([(0,p.E)("ascending",["ascending","sortAscending"])],v.prototype,"readAscending",null),(0,n._)([(0,u.qq)({type:w.c,json:{name:"itemRenderingRule",write:!0}})],v.prototype,"itemRasterFunction",void 0),(0,n._)([(0,u.qq)({type:w.c})],v.prototype,"itemRenderingRule",null),(0,n._)([(0,u.qq)({type:[g.Ab],json:{write:{overridePolicy(){return{enabled:"lock-raster"===this.method}}}}})],v.prototype,"lockRasterIds",void 0),(0,n._)([(0,u.qq)({type:String,json:{type:I.jsonValues,write:{target:"mosaicMethod",writer:I.write}}})],v.prototype,"method",void 0),(0,n._)([(0,p.E)("method",["mosaicMethod","defaultMosaicMethod"])],v.prototype,"readMethod",null),(0,n._)([(0,u.qq)({type:[f.c],json:{write:!0}})],v.prototype,"multidimensionalDefinition",void 0),(0,n._)([(0,h.G)("multidimensionalDefinition")],v.prototype,"writeMultidimensionalDefinition",null),(0,n._)([(0,u.qq)({type:[g.Ab],json:{name:"fids",write:!0}})],v.prototype,"objectIds",void 0),(0,n._)([(0,u.qq)({json:{type:M.jsonValues,read:{reader:M.read},write:{target:"mosaicOperation",writer:M.write}}})],v.prototype,"operation",void 0),(0,n._)([(0,p.E)("operation",["mosaicOperation","mosaicOperator"])],v.prototype,"readOperation",null),(0,n._)([(0,u.qq)({type:String,json:{write:{overridePolicy(){return{enabled:"attribute"===this.method}}}}})],v.prototype,"sortField",void 0),(0,n._)([(0,u.qq)({type:[String,Number],json:{write:{allowNull:!0,overridePolicy(){return{enabled:"attribute"===this.method,allowNull:!0}}}}})],v.prototype,"sortValue",void 0),(0,n._)([(0,d.W)("sortValue")],v.prototype,"castSortValue",null),(0,n._)([(0,u.qq)({type:y.c,json:{write:!0}})],v.prototype,"viewpoint",void 0),(0,n._)([(0,u.qq)({type:String,json:{write:!0}})],v.prototype,"where",void 0),v=i=(0,n._)([(0,m.c)("esri.layers.support.MosaicRule")],v);const b=v},72464:(e,t,r)=>{r.d(t,{c:()=>h});var i,n=r(41948),s=(r(60708),r(40504)),o=r(1580),a=(r(9456),r(66360),r(72052),r(12552)),l=r(95247),c=r(7488),u=r(6704),d=r(91768);const p={base:r(50853).c,key:"type",typeMap:{extent:l.c,polygon:c.c}};let m=i=class extends s.am{constructor(e){super(e),this.areaOfInterest=null,this.subsetDefinitions=null}get dimensions(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Map;e.forEach((e=>{if(!e.dimensionName)return;let r,i;if(Array.isArray(e.values[0])){const t=e.values;r=t[0][0],i=t[e.values.length-1][1]}else{const t=e.values;r=t[0],i=t[e.values.length-1]}if(t.has(e.dimensionName)){const n=t.get(e.dimensionName);n[0]=Math.min(r,n[0]),n[1]=Math.max(i,n[1])}else t.set(e.dimensionName,[r,i])}));const r=[];for(const e of t)r.push({name:e[0],extent:e[1]});return r}get variables(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Set;return e.forEach((e=>{e.variableName&&t.add(e.variableName)})),[...t]}clone(){const e=this.subsetDefinitions?.map((e=>e.clone())),t=this.areaOfInterest?this.areaOfInterest.clone():this.areaOfInterest;return new i({areaOfInterest:t,subsetDefinitions:e})}};(0,n._)([(0,o.qq)({types:p,json:{read:u.h4,write:!0}})],m.prototype,"areaOfInterest",void 0),(0,n._)([(0,o.qq)({readOnly:!0})],m.prototype,"dimensions",null),(0,n._)([(0,o.qq)({readOnly:!0})],m.prototype,"variables",null),(0,n._)([(0,o.qq)({type:[d.c],json:{write:!0}})],m.prototype,"subsetDefinitions",void 0),m=i=(0,n._)([(0,a.c)("esri.layers.support.MultidimensionalSubset")],m);const h=m},75e3:(e,t,r)=>{r.d(t,{c:()=>L});var i=r(41948),n=r(40504),s=r(62088),o=r(1580),a=(r(9456),r(66360),r(9968)),l=r(33600),c=r(12552),u=r(18996),d=r(14628),p=r(53368),m=(r(72052),r(59520));let h=class extends n.am{constructor(){super(...arguments),this.pixelType="unknown"}};(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],h.prototype,"description",void 0),(0,i._)([(0,o.qq)({type:p.Ab,json:{type:p.Ab,write:!0,name:"_object_id"}})],h.prototype,"id",void 0),(0,i._)([(0,o.qq)({type:String,json:{type:m.K0.jsonValues,read:m.K0.read,write:m.K0.write}})],h.prototype,"pixelType",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],h.prototype,"type",void 0),h=(0,i._)([(0,c.c)("esri.layers.support.RasterFunctionInfo")],h);const g=h;let y=class extends n.am{constructor(){super(...arguments),this.isDataset=!1,this.isPublic=!1,this.type="RasterFunctionVariable"}};(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,i._)([(0,o.qq)({type:Number,json:{type:p.Ab,write:!0,name:"_object_id"}})],y.prototype,"id",void 0),(0,i._)([(0,o.qq)({type:Boolean,json:{write:!0}})],y.prototype,"isDataset",void 0),(0,i._)([(0,o.qq)({type:Boolean,json:{write:!0}})],y.prototype,"isPublic",void 0),(0,i._)([(0,o.qq)({json:{write:!0}})],y.prototype,"value",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"type",void 0),y=(0,i._)([(0,c.c)("esri.layers.support.RasterFunctionVariable")],y);const f={key:"type",base:null,typeMap:{RasterFunctionVariable:y}};let w=class extends n.am{};(0,i._)([(0,o.qq)({types:f,json:{types:f,name:"MatchVariable"}})],w.prototype,"matchVariable",void 0),(0,i._)([(0,o.qq)({types:f,json:{types:f,name:"UnionDimension"}})],w.prototype,"unionDimension",void 0),(0,i._)([(0,o.qq)({type:Number,json:{type:p.Ab,write:!0,name:"_object_id"}})],w.prototype,"id",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],w.prototype,"type",void 0),w=(0,i._)([(0,c.c)("esri.layers.support.RasterFunctionProperties")],w);const M=w,I=new d.O({0:"mosaic",1:"item",2:"item-group"},{useNumericKeys:!0});let v=class extends n.am{constructor(){super(...arguments),this.functionType="mosaic",this.type="RasterFunctionTemplate"}};(0,i._)([(0,o.qq)({type:[String],json:{write:!0}})],v.prototype,"aliases",void 0),(0,i._)([(0,o.qq)({type:Object,json:{write:!0}})],v.prototype,"arguments",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],v.prototype,"description",void 0),(0,i._)([(0,o.qq)({type:g,json:{write:!0,name:"function"}})],v.prototype,"functionInfo",void 0),(0,i._)([(0,o.qq)({type:I.apiValues,json:{type:[0,1,2],read:I.read,write:I.write}})],v.prototype,"functionType",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],v.prototype,"group",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],v.prototype,"help",void 0),(0,i._)([(0,o.qq)({type:Number,json:{type:p.Ab,write:!0,name:"_object_id"}})],v.prototype,"id",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],v.prototype,"name",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0,name:"definition"}})],v.prototype,"queryDefinition",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],v.prototype,"tag",void 0),(0,i._)([(0,o.qq)({type:M,json:{write:!0}})],v.prototype,"properties",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],v.prototype,"thumbnail",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],v.prototype,"thumbnailEx",void 0),(0,i._)([(0,o.qq)({json:{type:["RasterFunctionTemplate"],write:!0}})],v.prototype,"type",void 0),v=(0,i._)([(0,c.c)("esri.layers.support.RasterFunctionTemplate")],v);const b=v;var A;const D=new Set(["raster","raster2","dem","fillraster"]),T=new Set(["rasters"]),S=e=>e?.rasterFunction?x.fromJSON(e):e,N=e=>e&&e instanceof x?e.toJSON():e,j=e=>e?.functionName&&!e.declaredClass,C=e=>j(e)?new x(e):e,_={types:{key:"type",base:null,typeMap:{RasterFunctionTemplate:b}},json:{write:!0,name:"rasterFunctionDefinition"}};let x=A=class extends n.am{constructor(e){super(e),this.functionName=null,this.outputPixelType="unknown",this.variableName=null,this.functionDefinition=null}set functionArguments(e){if(e){const t=Object.keys(e);if(t.some((t=>D.has(t.toLowerCase())&&j(e[t])))||t.some((t=>T.has(t.toLowerCase())&&Array.isArray(e[t])&&e[t].some((e=>j(e)))))){e=(0,s.ct)(e);for(const r of t)D.has(r.toLowerCase())?e[r]=C(e[r]):T.has(r.toLowerCase())&&Array.isArray(e[r])&&(e[r]=e[r].map((e=>C(e))))}}this._set("functionArguments",e)}readFunctionArguments(e){return(e=>{if(null==e)return null;e=(0,s.ct)(e);const t={};for(const r of Object.keys(e))D.has(r.toLowerCase())?t[r]=S(e[r]):T.has(r.toLowerCase())&&Array.isArray(e[r])?t[r]=e[r].map(S):t[r]=e[r];return t})(e)}writeFunctionArguments(e,t,r){const i={};for(const t of Object.keys(e))D.has(t.toLowerCase())?i[t]=N(e[t]):T.has(t.toLowerCase())&&Array.isArray(e[t])?i[t]=e[t].map(N):i[t]=N(e[t]);t[r]=i}readFunctionName(e,t){const r=t.rasterFunctionInfos;return t.name||(r?.length&&"None"!==r[0].name?r[0].name:t.rasterFunctionDefinition?t.rasterFunctionDefinition.name:t.rasterFunction)}get rasterFunctionDefinition(){return this.functionDefinition?.toJSON()}set rasterFunctionDefinition(e){this.functionDefinition=e?b.fromJSON(e):null}get hasClipFunction(){return this.rasterFunctionDefinition?JSON.stringify(this.rasterFunctionDefinition).includes('"type":"ClipFunction"'):JSON.stringify(this).includes('"rasterFunction":"Clip"')}clone(){return new A({functionName:this.functionName,functionArguments:(0,s.ct)(this.functionArguments),outputPixelType:this.outputPixelType,variableName:this.variableName,rasterFunctionDefinition:(0,s.ct)(this.rasterFunctionDefinition)})}};(0,i._)([(0,o.qq)({json:{type:Object,name:"rasterFunctionArguments"}})],x.prototype,"functionArguments",null),(0,i._)([(0,l.E)("functionArguments")],x.prototype,"readFunctionArguments",null),(0,i._)([(0,u.G)("functionArguments")],x.prototype,"writeFunctionArguments",null),(0,i._)([(0,o.qq)({json:{type:String,write:{target:"rasterFunction"}}})],x.prototype,"functionName",void 0),(0,i._)([(0,l.E)("functionName",["rasterFunction","rasterFunctionInfos","rasterFunctionDefinition"])],x.prototype,"readFunctionName",null),(0,i._)([(0,a.G)({C128:"c128",C64:"c64",F32:"f32",F64:"f64",S16:"s16",S32:"s32",S8:"s8",U1:"u1",U16:"u16",U2:"u2",U32:"u32",U4:"u4",U8:"u8",UNKNOWN:"unknown"},{ignoreUnknown:!1}),(0,o.qq)({json:{default:"unknown"}})],x.prototype,"outputPixelType",void 0),(0,i._)([(0,o.qq)({type:String,json:{read:!0,write:!0}})],x.prototype,"variableName",void 0),(0,i._)([(0,o.qq)()],x.prototype,"rasterFunctionDefinition",null),(0,i._)([(0,o.qq)(_)],x.prototype,"functionDefinition",void 0),(0,i._)([(0,o.qq)()],x.prototype,"hasClipFunction",null),x=A=(0,i._)([(0,c.c)("esri.layers.support.RasterFunction")],x);const L=x},7368:(e,t,r)=>{r.d(t,{c:()=>o});var i=r(20744),n=r(35268),s=r(66820);class o{constructor(){this._workerThread=null,this._destroyed=!1}async initialize(){const e=await(0,n.eU)("RasterWorker");this._destroyed?e.close():this._workerThread=e}destroy(){this._destroyed=!0,this._workerThread&&(this._workerThread.close(),this._workerThread=null)}async convertVectorFieldData(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");const r=await this._workerThread.invoke("convertVectorFieldData",{pixelBlock:e.pixelBlock.toJSON(),type:e.dataType},t);return r?new s.c(r):null}computeStatisticsHistograms(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");return this._workerThread.invoke("computeStatisticsHistograms",{pixelBlock:e.pixelBlock.toJSON()},t)}async decode(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");const r=await this._workerThread.invoke("decode",e,t);return r?new s.c(r):null}async symbolize(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");const r={extent:e.extent?.toJSON(),pixelBlock:e.pixelBlock?.toJSON(),simpleStretchParams:e.simpleStretchParams,bandIds:e.bandIds},n=await this._workerThread.invoke("symbolize",r,t);return n?new s.c(n):null}async updateSymbolizer(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");const r=e?.rendererJSON?.histograms;await Promise.all(this._workerThread.broadcast("updateSymbolizer",{symbolizerJSON:e.toJSON(),histograms:r},t))}async updateRasterFunction(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");await Promise.all(this._workerThread.broadcast("updateRasterFunction",{rasterFunctionJSON:e.toJSON()},t))}async process(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");const r=await this._workerThread.invoke("process",{extent:e.extent?.toJSON(),primaryPixelSizes:e.primaryPixelSizes?.map((e=>null!=e?e.toJSON():null)),primaryPixelBlocks:e.primaryPixelBlocks.map((e=>null!=e?e.toJSON():null)),primaryRasterIds:e.primaryRasterIds},t);return r?new s.c(r):null}async stretch(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const r={srcPixelBlock:e.pixelBlock.toJSON(),stretchParams:e.stretchParams},n=await this._workerThread.invoke("stretch",r,t);return n?new s.c(n):null}async split(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const r={srcPixelBlock:e.pixelBlock.toJSON(),tileSize:e.tileSize,maximumPyramidLevel:e.maximumPyramidLevel,useBilinear:e.useBilinear},n=await this._workerThread.invoke("split",r,t);return n&&n.forEach(((e,t)=>{n.set(t,e?s.c.fromJSON(e):null)})),n}async clipTile(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const r={...e,pixelBlock:e.pixelBlock.toJSON()},n=await this._workerThread.invoke("clipTile",r,t);return n?s.c.fromJSON(n):null}async estimateStatisticsHistograms(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const r={srcPixelBlock:e.pixelBlock.toJSON()};return await this._workerThread.invoke("estimateStatisticsHistograms",r,t)}async mosaicAndTransform(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");if(!e?.srcPixelBlocks?.length)return{pixelBlock:null};const r={...e,srcPixelBlocks:e.srcPixelBlocks.map((e=>null!=e?e.toJSON():null))},n=await this._workerThread.invoke("mosaicAndTransform",r,t);return{pixelBlock:n.pixelBlock?new s.c(n.pixelBlock):null,localNorthDirections:n.localNorthDirections}}async createFlowMesh(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");const r={buffer:e.flowData.data.buffer,maskBuffer:e.flowData.mask.buffer,width:e.flowData.width,height:e.flowData.height},{meshType:n,simulationSettings:s}=e,o=await this._workerThread.invoke("createFlowMesh",{meshType:n,flowData:r,simulationSettings:s},{...t,transferList:[r.buffer,r.maskBuffer]});return{vertexData:new Float32Array(o.vertexBuffer),indexData:new Uint32Array(o.indexBuffer)}}getProjectionOffsetGrid(e,t){if(!this._workerThread)throw new i.c("raster-jobhandler:no-connection","no available worker connection");const r=null!=e.datumTransformation?e.datumTransformation.steps.map((e=>({wkid:e.wkid,wkt:e.wkt,isInverse:e.isInverse}))):null,n=null!=e.rasterTransform?e.rasterTransform.toJSON():null,s={projectedExtent:e.projectedExtent.toJSON(),srcBufferExtent:e.srcBufferExtent.toJSON(),pixelSize:e.pixelSize,hasWrapAround:e.hasWrapAround,spacing:e.spacing,datumTransformationSteps:r,rasterTransform:n,isAdaptive:e.isAdaptive,includeGCSGrid:e.includeGCSGrid};return this._workerThread.invoke("getProjectionOffsetGrid",s,t)}}},99336:(e,t,r)=>{r.d(t,{c:()=>g});var i=r(41948),n=r(25228),s=r(13452),o=r(3856),a=r(40504),l=r(1580),c=(r(9456),r(66360),r(72052),r(33600)),u=r(12552),d=r(18996),p=r(28484);function m(e,t){return s.c.fromJSON({value:e,unit:t})}let h=class extends((0,o.q)(a.am)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new n.c({start:r,end:i})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?m(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?m(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.qq)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i._)([(0,l.qq)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i._)([(0,l.qq)({type:n.c,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i._)([(0,c.E)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i._)([(0,d.G)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.qq)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i._)([(0,l.qq)({type:s.c,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i._)([(0,c.E)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i._)([(0,d.G)("interval")],h.prototype,"writeInterval",null),(0,i._)([(0,l.qq)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i._)([(0,l.qq)((0,p.SM)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i._)([(0,l.qq)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),h=(0,i._)([(0,u.c)("esri.layers.support.TimeInfo")],h);const g=h},89812:(e,t,r)=>{r.d(t,{h4:()=>D,i2:()=>A}),r(9456);var i,n=r(41948),s=r(62088),o=r(1580),a=(r(66360),r(9968)),l=r(12552),c=r(40504);r(72052);let u=i=class extends c.am{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n._)([(0,o.qq)({type:[String,Number],json:{write:!0}})],u.prototype,"code",void 0),u=i=(0,n._)([(0,l.c)("esri.layers.support.CodedValue")],u);const d=new(r(14628).O)({inherited:"inherited",codedValue:"coded-value",range:"range"});let p=class extends c.am{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,n._)([(0,a.G)(d)],p.prototype,"type",void 0),p=(0,n._)([(0,l.c)("esri.layers.support.Domain")],p);const m=p;var h;let g=h=class extends m{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new h({codedValues:(0,s.ct)(this.codedValues),name:this.name})}};(0,n._)([(0,o.qq)({type:[u],json:{write:!0}})],g.prototype,"codedValues",void 0),(0,n._)([(0,a.G)({codedValue:"coded-value"})],g.prototype,"type",void 0),g=h=(0,n._)([(0,l.c)("esri.layers.support.CodedValueDomain")],g);const y=g;var f;r(20744);let w=f=class extends m{constructor(e){super(e),this.type="inherited"}clone(){return new f}};(0,n._)([(0,a.G)({inherited:"inherited"})],w.prototype,"type",void 0),w=f=(0,n._)([(0,l.c)("esri.layers.support.InheritedDomain")],w);const M=w;var I;let v=I=class extends m{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new I({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,o.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],v.prototype,"maxValue",void 0),(0,n._)([(0,o.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],v.prototype,"minValue",void 0),(0,n._)([(0,a.G)({range:"range"})],v.prototype,"type",void 0),v=I=(0,n._)([(0,l.c)("esri.layers.support.RangeDomain")],v);const b=v,A={key:"type",base:m,typeMap:{range:v,"coded-value":y,inherited:M}};function D(e){if(!e?.type)return null;switch(e.type){case"range":return b.fromJSON(e);case"codedValue":return y.fromJSON(e);case"inherited":return M.fromJSON(e)}return null}},36408:(e,t,r)=>{r.d(t,{M:()=>i});const i=new(r(14628).O)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},56660:(e,t,r)=>{r.d(t,{CI:()=>o,Dh:()=>h,Qz:()=>g,W0:()=>a,W8:()=>m,Yt:()=>I,aQ:()=>f,eY:()=>y,ec:()=>p});var i=r(92400),n=r(91768);function s(e,t,r){const i=t.shift();if(0===r.length){const e=[];r.push({sliceId:-1,multidimensionalDefinition:e})}const n=r.length;for(let t=0;t<n;t++){const t=r.shift().multidimensionalDefinition;i.values?.forEach((n=>{r.push({sliceId:-1,multidimensionalDefinition:[...t,{variableName:e,dimensionName:i.name,values:[n]}]})}))}t.length&&s(e,t,r)}function o(e,t){const r=[];let i=0;return(t?e.variables.filter((e=>e.name.toLowerCase()===t.toLowerCase())):[...e.variables].sort(((e,t)=>e.name>t.name?1:-1))).forEach((e=>{const t=[],n=[...e.dimensions].sort(((e,t)=>e.name>t.name?-1:1));s(e.name,n,t),t.forEach((e=>{r.push({...e,sliceId:i++})}))})),r}function a(e,t,r){let i=e;if(t&&(t=[...t].sort(((e,t)=>e.dimensionName<t.dimensionName?-1:1))).forEach((({dimensionName:e,values:t,isSlice:r})=>{t.length&&(i=i.filter((i=>{const n=i.multidimensionalDefinition.find((t=>t.dimensionName===e));if(null==n)return!1;const s=n.values[0];return"number"==typeof s?"number"==typeof t[0]?t.includes(s):t.some((e=>e[0]<=s&&e[1]>=s)):"number"==typeof t[0]?t.some((e=>s[0]<=e&&s[1]>=e)):r?t.some((e=>e[0]===s[0]&&e[0]===s[1])):t.some((e=>e[0]>=s[0]&&e[0]<=s[1]||e[1]>=s[0]&&e[1]<=s[1]||e[0]<s[0]&&e[1]>s[1]))})))})),i.length&&null!=r?.start&&null!=r.end){const e=r.start.getTime(),t=r.end.getTime(),n=i[0].multidimensionalDefinition.findIndex((e=>"StdTime"===e.dimensionName));n>-1&&(i=i.filter((r=>{const i=r.multidimensionalDefinition[n].values[0];return e<=i&&t>=i})))}return i.map((e=>e.sliceId))}function l(e,t){return Array.isArray(e)?t[0]===t[1]?e[0]===t[0]||e[1]===t[0]:e[0]>=t[0]&&e[0]<=t[1]&&e[1]>=t[0]&&e[1]<=t[1]:e>=t[0]&&e<=t[1]}function c(e,t){return e[0]<=t[0]&&e[1]>=t[0]||e[0]<=t[1]&&e[1]>=t[1]||e[0]>=t[0]&&e[1]<=t[1]}function u(e){return 1===e.length?[e[0],e[0]]:[e[0],e[e.length-1]]}function d(e,t,r){if(!t?.subsetDefinitions?.length)return e;let i;if(r){const{variables:n}=t;if(n.length&&!n.includes(r))return null;const s=t.subsetDefinitions.find((t=>t.dimensionName===e.name&&t.variableName===r));if(!s?.values?.length)return e;i=u(s.values)}else{const r=t.dimensions.find((({name:t})=>t===e.name));i=r?.extent}const n=i;if(!n?.length)return e;const s=e.values.filter((e=>l(e,n)));return{...e,extent:[...n],values:s}}function p(e,t,r){if(!t?.subsetDefinitions?.length)return!1;const{variables:i}=t;if(i.length&&e.some((({variableName:e})=>e&&!i.includes(e))))return!0;for(let i=0;i<e.length;i++){const n=e[i],s=t.subsetDefinitions.find((e=>(""===n.variableName||e.variableName===n.variableName)&&e.dimensionName===n.dimensionName));if(s?.values.length){const e=u(s.values);if(n.isSlice||2!==n.values.length||Array.isArray(n.values[0])||n.values[0]===n.values[1]||!r){if(n.values.some((t=>!l(t,e))))return!0}else if(!c(n.values,e))return!0}}return!1}function m(e,t){if(null==e)return{isOutside:!1};const{geometry:r,timeExtent:i,multidimensionalDefinition:s}=t;let o=null;if(null!=i&&(o=function(e,t){const r=e.dimensions.find((({name:e})=>"StdTime"===e));if(null==r||null==t.start&&null==t.end)return t;t=t.clone();const{start:i,end:s}=t.toJSON(),o=i===s?[i]:null!=i&&null!=s?[i,s]:[i??s];return 2===o.length&&r?.extent.length&&(o[0]=Math.max(o[0],r.extent[0]),o[1]=Math.min(o[1],r.extent[1]??r.extent[0]),o[1]<o[0])||p([new n.c({variableName:"",dimensionName:"StdTime",isSlice:1===o.length,values:o})],e,!0)?null:(t.start=new Date(o[0]),t.end=new Date(o[1]??o[0]),t)}(e,i),null==o))return{isOutside:!0};const{areaOfInterest:a}=e;if(a&&r){const e="point"===r.type?r:"extent"===r.type?r.center:"polygon"===r.type?r.centroid:null;if(e&&!a.contains(e))return{isOutside:!0}}return null!=s&&s.length&&p(s,e,!0)?{isOutside:!0}:{isOutside:!1,intersection:{geometry:r,timeExtent:o,multidimensionalDefinition:s}}}function h(e,t={}){const{multidimensionalInfo:r,keyProperties:i}=e;if(null==r)return null;const{variableName:n,multidimensionalSubset:s,multidimensionalDefinition:o}=t,a=null!=o?o[0]?.variableName:null,l=n||a||i?.DefaultVariable;let{variables:c}=r;return s?.variables?.length&&(c=c.filter((({name:e})=>s.variables.includes(e)))),l?c.find((({name:e})=>e===l))??c[0]:c[0]}function g(e,t={}){const r=h(e,t);if(!r)return null;const i=[],{dimensions:s,name:o}=r;if(0===s.length)return[new n.c({variableName:o,dimensionName:"",values:[],isSlice:!0})];for(let e=0;e<s.length;e++){const r=d(s[e],t.multidimensionalSubset,o);if(!r)return null;const{values:a,extent:l}=r;let c=a?.[0]??l[0];"stdz"===r.name.toLowerCase()&&!r.hasRanges&&Math.abs(l[1])<=Math.abs(l[0])&&(c=a?.length?a[a.length-1]:l[1]),i.push(new n.c({variableName:o,dimensionName:r.name,values:[c],isSlice:!t.useRangeForRangedDimensionInfo||!!r.hasRanges}))}return i}function y(e){return!!e?.length&&e.some((e=>{if(null==e.values)return!0;const t=e.values.length;return 0===t||t>1||!e.isSlice&&Array.isArray(e.values[0])}))}function f(e,t){if(null==t||null==e)return null;let r=t.variables.map((e=>({...e})));return e?.variables?.length&&(r=r.filter((({name:t})=>e.variables.includes(t))),r.forEach((t=>{t.dimensions=t.dimensions.map((r=>d(r,e,t.name))).filter(i.G6)}))),r}function w(e,t){const{values:r}=t;if(r?.length){const t=Array.isArray(r[0]),i=Array.isArray(e);return t!==i?-1:t&&i?r.findIndex((t=>t[0]===e[0]&&t[1]===e[1])):r.indexOf(e)}const{extent:i}=t;if(Array.isArray(e)||e<i[0]||e>i[1])return-1;const n=t.interval||1;if("ISO8601"!==t.unit)return Math.round((e-i[0])/n);const s=i[0];let o=-1;switch(t.intervalUnit?.toLowerCase()||"seconds"){case"seconds":o=Math.round((e-s)/1e3/n);break;case"minutes":o=Math.round((e-s)/6e4/n);break;case"hours":o=Math.round((e-s)/36e5/n);break;case"days":o=Math.round((e-s)/864e5/n);break;case"months":{const t=new Date(e).getUTCFullYear()-new Date(s).getUTCFullYear(),r=new Date(s).getUTCMonth(),i=new Date(e).getUTCMonth();o=0===t?i-r:i+11-r+12*(t-1)}break;case"years":o=Math.round((new Date(e).getUTCFullYear()-new Date(s).getUTCFullYear())/n);break;case"decades":o=Math.round((new Date(e).getUTCFullYear()-new Date(s).getUTCFullYear())/10/n)}return o}function M(e){let t=e.values?.length;if(t)return t;const{extent:r,unit:i}=e,n=e.interval||1,s=r?r[1]-r[0]:0;if("ISO8601"!==i)return Math.round(s/n);switch(e.intervalUnit?.toLowerCase()??"seconds"){case"seconds":t=Math.round(s/1e3/n);break;case"minutes":t=Math.round(s/6e4/n);break;case"hours":t=Math.round(s/36e5/n);break;case"days":t=Math.round(s/864e5/n);break;case"months":{const e=new Date(r[1]).getUTCFullYear()-new Date(r[0]).getUTCFullYear(),i=new Date(r[0]).getUTCMonth(),n=new Date(r[1]).getUTCMonth();t=0===e?n-i+1:n+11-i+12*(e-1)+1}break;case"years":t=Math.round((new Date(r[1]).getUTCFullYear()-new Date(r[0]).getUTCFullYear())/n);break;case"decades":t=Math.round((new Date(r[1]).getUTCFullYear()-new Date(r[0]).getUTCFullYear())/10/n);break;default:t=0}return t}function I(e,t){let r=0;const i=e[0].variableName,n=[...t.variables].sort(((e,t)=>e.name>t.name?1:-1));for(let t=0;t<n.length;t++){const s=n[t],o=[...s.dimensions].sort(((e,t)=>e.name>t.name?-1:1));if(s.name!==i){r+=o.map((e=>M(e))).reduce(((e,t)=>e*t));continue}const a=o.map((e=>M(e))),l=o.length;for(let t=0;t<l;t++){const i=e.find((e=>e.dimensionName===o[t].name));if(null==i)return null;const n=w(i.values[0],o[t]);if(-1===n)return null;a.shift(),r+=t===l-1?n:n*a.reduce(((e,t)=>e*t))}break}return r}},59520:(e,t,r)=>{r.d(t,{K0:()=>o,ec:()=>s,gh:()=>n});var i=r(14628);const n=(0,i.w)()({RSP_NearestNeighbor:"nearest",RSP_BilinearInterpolation:"bilinear",RSP_CubicConvolution:"cubic",RSP_Majority:"majority"}),s=(0,i.w)()({esriNoDataMatchAny:"any",esriNoDataMatchAll:"all"}),o=(0,i.w)()({U1:"u1",U2:"u2",U4:"u4",U8:"u8",S8:"s8",U16:"u16",S16:"s16",U32:"u32",S32:"s32",F32:"f32",F64:"f64",C64:"c64",C128:"c128",UNKNOWN:"unknown"})},4736:(e,t,r)=>{r.d(t,{e:()=>i});const i=(0,r(14628).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},87080:(e,t,r)=>{r.d(t,{_0:()=>d,gH:()=>h,qk:()=>p});var i=r(69504),n=r(99704),s=r(10708),o=r(10077),a=r(65392),l=r(58708),c=r(24948),u=r(49176);const d={key:"type",base:null,typeMap:{"unique-value":c.c,"class-breaks":n.c,"raster-colormap":o.c,"raster-stretch":l.c,"vector-field":u.c,"raster-shaded-relief":a.c,flow:s.c}},p={...d,typeMap:{...d.typeMap}};delete p.typeMap["vector-field"],delete p.typeMap.flow;const m={uniqueValue:c.c,classBreaks:n.c,rasterStretch:l.c,rasterColormap:o.c,vectorField:u.c,rasterShadedRelief:a.c,flowRenderer:s.c};function h(e,t){if(!e)return null;if("classBreaks"===e.type&&e.classificationMethod){const t=e.authoringInfo||{classificationMethod:""};t.classificationMethod=e.classificationMethod,e.authoringInfo=t}"vectorField"===e.type&&e.visualVariables&&!Array.isArray(e.visualVariables)&&(e.visualVariables=[e.visualVariables]);const r=(n=e)&&m[n.type]||null;var n;if(r){const i=new r;return i.read(e,t),i}return t?.messages&&e&&t.messages.push(new i.c("renderer:unsupported","Renderers of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:t})),null}},10708:(e,t,r)=>{r.d(t,{c:()=>f});var i,n=r(41948),s=r(44728),o=r(14628),a=r(40504),l=r(50144),c=r(1580),u=(r(9456),r(66360),r(72052),r(9968)),d=r(12552),p=r(63548),m=r(1124),h=r(89584);const g=new o.O({flow_from:"flow-from",flow_to:"flow-to"});let y=i=class extends((0,p.c)(a.am)){constructor(e){super(e),this.density=.8,this.color=new s.c([255,255,255,1]),this.maxPathLength=200,this.trailWidth=1.5,this.flowSpeed=10,this.trailLength=100,this.smoothing=0,this.flowRepresentation="flow-from",this.type="flow",this.authoringInfo=null,this.legendOptions=null,this.trailCap="butt",this.background="none"}clone(){const{density:e,maxPathLength:t,trailWidth:r,flowSpeed:n,trailLength:s,smoothing:o,flowRepresentation:a,trailCap:l,background:c}=this,u=this.color.clone(),d=(this.visualVariables||[]).map((e=>e.clone())),p=this.authoringInfo?.clone(),m=this.legendOptions?.clone();return new i({density:e,color:u,maxPathLength:t,trailWidth:r,flowSpeed:n,trailLength:s,trailCap:l,background:c,smoothing:o,flowRepresentation:a,visualVariables:d,authoringInfo:p,legendOptions:m})}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}};(0,n._)([(0,c.qq)({type:Number,json:{write:!0}})],y.prototype,"density",void 0),(0,n._)([(0,c.qq)({type:s.c,json:{write:{allowNull:!0}}})],y.prototype,"color",void 0),(0,n._)([(0,c.qq)({type:Number,cast:l.Qz,json:{write:!0}})],y.prototype,"maxPathLength",void 0),(0,n._)([(0,c.qq)({type:Number,cast:l.Qz,json:{write:!0}})],y.prototype,"trailWidth",void 0),(0,n._)([(0,c.qq)({type:Number,json:{write:!0}})],y.prototype,"flowSpeed",void 0),(0,n._)([(0,c.qq)({type:Number,json:{write:!0}})],y.prototype,"trailLength",void 0),(0,n._)([(0,c.qq)({type:Number,cast:l.Qz,json:{write:!1}})],y.prototype,"smoothing",void 0),(0,n._)([(0,c.qq)({type:g.apiValues,json:{type:g.jsonValues,read:{reader:g.read},write:{writer:g.write}}})],y.prototype,"flowRepresentation",void 0),(0,n._)([(0,u.G)({flowRenderer:"flow"})],y.prototype,"type",void 0),(0,n._)([(0,c.qq)({type:m.c,json:{write:!0}})],y.prototype,"authoringInfo",void 0),(0,n._)([(0,c.qq)({type:h.i,json:{write:!0}})],y.prototype,"legendOptions",void 0),(0,n._)([(0,c.qq)({type:String,json:{write:!0}})],y.prototype,"trailCap",void 0),(0,n._)([(0,c.qq)({type:String,json:{write:!0}})],y.prototype,"background",void 0),y=i=(0,n._)([(0,d.c)("esri.renderers.FlowRenderer")],y);const f=y},10077:(e,t,r)=>{r.d(t,{c:()=>g});var i=r(41948),n=r(40504),s=r(1580),o=(r(9456),r(66360),r(72052),r(9968)),a=r(12552),l=r(44728),c=r(53368);let u=class extends n.am{constructor(){super(...arguments),this.value=null,this.label=null,this.color=null}};(0,i._)([(0,s.qq)({type:Number,json:{write:!0}})],u.prototype,"value",void 0),(0,i._)([(0,s.qq)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,i._)([(0,s.qq)({type:l.c,json:{type:[c.Ab],write:!0}})],u.prototype,"color",void 0),u=(0,i._)([(0,a.c)("esri.renderers.support.ColormapInfo")],u);const d=u;var p,m=r(44748);let h=p=class extends n.am{constructor(e){super(e),this.colormapInfos=null,this.type="raster-colormap"}static createFromColormap(e,t){if(!e)return null;const r=5===e[0].length,i=[...e].sort(((e,t)=>e[0]-t[0])).map((e=>d.fromJSON({value:e[0],color:r?e.slice(1,5):e.slice(1,4).concat([255]),label:t?t[e[0]]??"":e[0]})));return new p({colormapInfos:i})}static createFromColorramp(e){const t=(0,m.Ky)(e);return p.createFromColormap(t)}clone(){return new p({colormapInfos:this.colormapInfos.map((e=>e.toJSON()))})}extractColormap(){return this.colormapInfos.map((({value:e,color:t})=>[e,t.r,t.g,t.b,t.a>1?t.a:255*t.a&255])).sort(((e,t)=>e[0]-t[0]))}};(0,i._)([(0,s.qq)({type:[d],json:{write:!0}})],h.prototype,"colormapInfos",void 0),(0,i._)([(0,o.G)({rasterColormap:"raster-colormap"})],h.prototype,"type",void 0),h=p=(0,i._)([(0,a.c)("esri.renderers.RasterColormapRenderer")],h);const g=h},65392:(e,t,r)=>{r.d(t,{c:()=>m});var i,n=r(41948),s=r(40504),o=r(62088),a=r(1580),l=(r(9456),r(66360),r(9968)),c=r(33600),u=r(12552),d=r(55952);let p=i=class extends s.am{constructor(e){super(e),this.altitude=45,this.azimuth=315,this.colorRamp=null,this.hillshadeType="traditional",this.pixelSizePower=.664,this.pixelSizeFactor=.024,this.scalingType="none",this.type="raster-shaded-relief",this.zFactor=1}readColorRamp(e){return(0,d.h)(e)}clone(){return new i({hillshadeType:this.hillshadeType,altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,scalingType:this.scalingType,pixelSizeFactor:this.pixelSizeFactor,pixelSizePower:this.pixelSizePower,colorRamp:(0,o.ct)(this.colorRamp)})}};(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],p.prototype,"altitude",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],p.prototype,"azimuth",void 0),(0,n._)([(0,a.qq)({types:d.i,json:{write:!0}})],p.prototype,"colorRamp",void 0),(0,n._)([(0,c.E)("colorRamp")],p.prototype,"readColorRamp",null),(0,n._)([(0,a.qq)({type:["traditional","multi-directional"],json:{write:!0}})],p.prototype,"hillshadeType",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],p.prototype,"pixelSizePower",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],p.prototype,"pixelSizeFactor",void 0),(0,n._)([(0,a.qq)({type:["none","adjusted"],json:{write:!0}})],p.prototype,"scalingType",void 0),(0,n._)([(0,l.G)({rasterShadedRelief:"raster-shaded-relief"})],p.prototype,"type",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],p.prototype,"zFactor",void 0),p=i=(0,n._)([(0,u.c)("esri.renderers.RasterShadedReliefRenderer")],p);const m=p},58708:(e,t,r)=>{r.d(t,{c:()=>g});var i,n=r(41948),s=r(40504),o=r(62088),a=r(1580),l=(r(9456),r(66360),r(9968)),c=r(33600),u=r(12552),d=r(18996),p=r(76688),m=r(55952);let h=i=class extends s.am{constructor(e){super(e),this.colorRamp=null,this.computeGamma=!1,this.dynamicRangeAdjustment=!1,this.gamma=[],this.maxPercent=null,this.minPercent=null,this.numberOfStandardDeviations=null,this.outputMax=null,this.outputMin=null,this.sigmoidStrengthLevel=null,this.statistics=[],this.histograms=null,this.useGamma=!1,this.stretchType="none",this.type="raster-stretch"}readColorRamp(e){if(e)return(0,m.h)(e)}writeStatistics(e,t,r){e?.length&&(Array.isArray(e[0])||(e=e.map((e=>[e.min,e.max,e.avg,e.stddev]))),t[r]=e)}readStretchType(e,t){let r=t.stretchType;return"number"==typeof r&&(r=p.A[r]),p.K.read(r)}clone(){return new i({stretchType:this.stretchType,outputMin:this.outputMin,outputMax:this.outputMax,useGamma:this.useGamma,computeGamma:this.computeGamma,statistics:(0,o.ct)(this.statistics),gamma:(0,o.ct)(this.gamma),sigmoidStrengthLevel:this.sigmoidStrengthLevel,numberOfStandardDeviations:this.numberOfStandardDeviations,minPercent:this.minPercent,maxPercent:this.maxPercent,colorRamp:(0,o.ct)(this.colorRamp),histograms:(0,o.ct)(this.histograms),dynamicRangeAdjustment:this.dynamicRangeAdjustment})}};(0,n._)([(0,a.qq)({types:m.i,json:{write:!0}})],h.prototype,"colorRamp",void 0),(0,n._)([(0,c.E)("colorRamp")],h.prototype,"readColorRamp",null),(0,n._)([(0,a.qq)({type:Boolean,json:{write:!0}})],h.prototype,"computeGamma",void 0),(0,n._)([(0,a.qq)({type:Boolean,json:{write:{target:"dra"},read:{source:"dra"}}})],h.prototype,"dynamicRangeAdjustment",void 0),(0,n._)([(0,a.qq)({type:[Number],json:{write:!0}})],h.prototype,"gamma",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],h.prototype,"maxPercent",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],h.prototype,"minPercent",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],h.prototype,"numberOfStandardDeviations",void 0),(0,n._)([(0,a.qq)({type:Number,json:{read:{source:"max"},write:{target:"max"}}})],h.prototype,"outputMax",void 0),(0,n._)([(0,a.qq)({type:Number,json:{read:{source:"min"},write:{target:"min"}}})],h.prototype,"outputMin",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],h.prototype,"sigmoidStrengthLevel",void 0),(0,n._)([(0,a.qq)({json:{type:[[Number]],write:!0}})],h.prototype,"statistics",void 0),(0,n._)([(0,a.qq)()],h.prototype,"histograms",void 0),(0,n._)([(0,d.G)("statistics")],h.prototype,"writeStatistics",null),(0,n._)([(0,a.qq)({type:Boolean,json:{write:!0}})],h.prototype,"useGamma",void 0),(0,n._)([(0,a.qq)({type:p.K.apiValues,json:{type:p.K.jsonValues,write:p.K.write}})],h.prototype,"stretchType",void 0),(0,n._)([(0,c.E)("stretchType",["stretchType"])],h.prototype,"readStretchType",null),(0,n._)([(0,l.G)({rasterStretch:"raster-stretch"})],h.prototype,"type",void 0),h=i=(0,n._)([(0,u.c)("esri.renderers.RasterStretchRenderer")],h);const g=h},49176:(e,t,r)=>{r.d(t,{c:()=>z});var i=r(41948),n=r(44728),s=(r(60708),r(6444)),o=r(17988),a=r(14628),l=r(40504),c=r(62088),u=r(1580),d=(r(9456),r(66360),r(9968)),p=r(33600),m=r(12552),h=r(20480),g=r(32876),y=r(99704),f=r(63548),w=r(74168),M=r(83268),I=r(91920),v=r(81432),b=r(7432),A=r(49736),D=r(40196),T=r(62484);r(24676),r(14624),r(24832),r(2600);var S=r(11004);function N(e){for(const t of e)if("number"==typeof t)return t;return null}function j(e,t,r){for(let i=0;i<3;i++){const n=e[i];switch(n){case"symbol-value":{const e=r[i];return null!=e?e/t[i]:1}case"proportional":break;default:if(n&&t[i])return n/t[i]}}return 1}function C(e,t,r,i){switch(e){case"proportional":return r*i;case"symbol-value":return null!=t?t:r;default:return e}}async function _(e,t){if(e&&t)return(0,o._8)(e)?async function(e,t){const i=e.symbolLayers;i&&await(0,D.Ar)(i,(async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){e.size="number"==typeof t[2]?t[2]:0}(e,t);break;case"icon":case"line":case"text":!function(e,t){const r=N(t);null!=r&&(e.size=r)}(e,t);break;case"path":!function(e,t){const r=j(t,T.Qw,[e.width,void 0,e.height]);e.width=C(t[0],e.width,1,r),e.height=C(t[2],e.height,1,r)}(e,t);break;case"object":await async function(e,t){const{resourceSize:i,symbolSize:n}=await async function(e){const{computeObjectLayerResourceSize:t}=await r.e(9240).then(r.bind(r,29240)),i=await t(e,10),{width:n,height:s,depth:o}=e,a=[n,o,s];let l=1;for(let e=0;e<3;e++){const t=a[e];if(null!=t){l=t/i[e];break}}for(let e=0;e<3;e++)null==a[e]&&(a[e]=i[e]*l);return{resourceSize:i,symbolSize:a}}(e),s=j(t,i,n);e.width=C(t[0],n[0],i[0],s),e.depth=C(t[1],n[1],i[1],s),e.height=C(t[2],n[2],i[2],s)}(e,t)}}(e,t)))}(e,t):void((0,o.QZ)(e)&&function(e,t){const r=N(t);if(null!=r)switch(e.type){case"simple-marker":e.size=r;break;case"picture-marker":{const t=e.width/e.height;t>1?(e.width=r,e.height=r*t):(e.width=r*t,e.height=r);break}case"simple-line":e.width=r;break;case"text":e.font.size=r}}(e,t))}new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new S.o(1e3),new n.c([128,128,128]),r(14392),new n.c("white");var x,L=r(67776),k=r(76060);const q=new Set(["esriMetersPerSecond","esriKilometersPerHour","esriKnots","esriFeetPerSecond","esriMilesPerHour"]),U=new a.O({beaufort_ft:"beaufort-ft",beaufort_km:"beaufort-km",beaufort_kn:"beaufort-kn",beaufort_m:"beaufort-m",beaufort_mi:"beaufort-mi",classified_arrow:"classified-arrow",ocean_current_kn:"ocean-current-kn",ocean_current_m:"ocean-current-m",simple_scalar:"simple-scalar",single_arrow:"single-arrow",wind_speed:"wind-barb"}),E=new a.O({flow_from:"flow-from",flow_to:"flow-to"});let R=x=class extends((0,f.c)(l.am)){constructor(e){super(e),this.attributeField="Magnitude",this.flowRepresentation="flow-from",this.rotationType="arithmetic",this.style="single-arrow",this.symbolTileSize=50,this.type="vector-field"}readInputUnit(e,t){return q.has(e)?g.ao.fromJSON(e):null}readOutputUnit(e,t){return q.has(e)?g.ao.fromJSON(e):null}get styleRenderer(){const e=this.style,t=this.attributeField,r=this._createStyleRenderer(e);return r.field=t,r}get sizeVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"size"===t.type&&e.push(t);if(0===e.length){const t=new I.c({field:"Magnitude",minSize:.2*this.symbolTileSize,maxSize:.8*this.symbolTileSize});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}get rotationVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"rotation"===t.type&&e.push(t);if(0===e.length){const t=new M.c({field:"Direction",rotationType:this.rotationType});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}clone(){return new x({attributeField:this.attributeField,flowRepresentation:this.flowRepresentation,rotationType:this.rotationType,symbolTileSize:this.symbolTileSize,style:this.style,visualVariables:(0,c.ct)(this.visualVariables),inputUnit:this.inputUnit,outputUnit:this.outputUnit})}async getGraphicsFromPixelData(e,t=!1,r=[]){const i=new Array,n=(0,g.Yb)(this.inputUnit,this.outputUnit),o=this.rotationVariables[0]?.rotationType||this.rotationType,a=t?(0,g.Ws)(e.pixelBlock,"vector-uv",o,n):(0,g.uI)(e.pixelBlock,"vector-magdir",n);if(null==a)return i;const l=e.extent,c=null!=a.mask&&a.mask.length>0;let u=0;const d=(l.xmax-l.xmin)/a.width,p=(l.ymax-l.ymin)/a.height;for(let e=0;e<a.height;e++)for(let t=0;t<a.width;t++,u++){let n=new L.c({x:l.xmin+t*d+d/2,y:l.ymax-e*p-p/2,spatialReference:l.spatialReference});n=(await(0,h.WW)(n))[0];const o=r.some((e=>e.intersects(n)));if((!c||a.mask[u])&&!o){const e={Magnitude:a.pixels[0][u],Direction:a.pixels[1][u]},t=new s.c({geometry:{type:"point",x:n.x,y:n.y,spatialReference:l.spatialReference},attributes:e});t.symbol=this._getVisualVariablesAppliedSymbol(t),i.push(t)}}return i}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getClassBreakInfos(){return this.styleRenderer?.classBreakInfos}getDefaultSymbol(){return this.styleRenderer?.defaultSymbol}_getDefaultSymbol(e){return new A.c({path:"M14,32 14,18 9,23 16,3 22,23 17,18 17,32 z",outline:new b.c({width:0}),size:20,color:e||new n.c([0,92,230])})}_getVisualVariablesAppliedSymbol(e){if(!e)return;const t=this.styleRenderer?.getSymbol(e)?.clone(),r=this.sizeVariables,i=this.rotationVariables;if(r&&r.length&&this.sizeVariables.forEach((r=>_(t,(0,v.ie)([r],e)))),i&&i.length){const r="flow-to"===this.flowRepresentation==("ocean-current-kn"===this.style||"ocean-current-m"===this.style)?0:180;e.attributes.Direction=e.attributes.Direction+r,this.rotationVariables.forEach((r=>function(e,t,r){if(e&&null!=t)if((0,o._8)(e)){const i=e.symbolLayers;i&&i.forEach((e=>{if(e&&"object"===e.type)switch(r){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}}))}else(0,o.QZ)(e)&&("simple-marker"!==e.type&&"picture-marker"!==e.type&&"text"!==e.type||(e.angle+=t))}(t,(0,v.KK)(r,e),r.axis)))}return t}_createStyleRenderer(e){let t={defaultSymbol:this._getDefaultSymbol(),classBreakInfos:[]};switch(e){case"single-arrow":t=this._createSingleArrowRenderer();break;case"beaufort-kn":t=this._createBeaufortKnotsRenderer();break;case"beaufort-m":t=this._createBeaufortMeterRenderer();break;case"beaufort-ft":t=this._createBeaufortFeetRenderer();break;case"beaufort-mi":t=this._createBeaufortMilesRenderer();break;case"beaufort-km":t=this._createBeaufortKilometersRenderer();break;case"ocean-current-m":t=this._createCurrentMeterRenderer();break;case"ocean-current-kn":t=this._createCurrentKnotsRenderer();break;case"simple-scalar":t=this._createSimpleScalarRenderer();break;case"wind-barb":t=this._createWindBarbsRenderer();break;case"classified-arrow":t=this._createClassifiedArrowRenderer()}return new y.c(t)}_createSingleArrowRenderer(){return{defaultSymbol:this._getDefaultSymbol()}}_createBeaufortKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new n.c([214,47,39])),classBreakInfos:this._getClassBreaks([0,1,3,6,10,16,21,27,33,40,47,55,63],[[40,146,199],[89,162,186],[129,179,171],[160,194,155],[191,212,138],[218,230,119],[250,250,100],[252,213,83],[252,179,102],[250,141,52],[247,110,42],[240,71,29]])}}_createBeaufortMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new n.c([214,47,39])),classBreakInfos:this._getClassBreaks([0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7],[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortFeetRenderer(){const e=this._getDefaultSymbol(new n.c([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>3.28084*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortMilesRenderer(){const e=this._getDefaultSymbol(new n.c([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>2.23694*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortKilometersRenderer(){const e=this._getDefaultSymbol(new n.c([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>3.6*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createCurrentMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new n.c([177,177,177])),classBreakInfos:this._getClassBreaks([0,.5,1,1.5,2],[[78,26,153],[179,27,26],[202,128,26],[177,177,177]])}}_createCurrentKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new n.c([177,177,177])),classBreakInfos:this._getClassBreaks([0,.25,.5,1,1.5,2,2.5,3,3.5,4],[[0,0,0],[0,37,100],[78,26,153],[151,0,100],[179,27,26],[177,78,26],[202,128,26],[177,179,52],[177,177,177]])}}_createClassifiedArrowRenderer(){const e=this._getDefaultSymbol(new n.c([56,168,0]));let t=[0,1e-6,3.5,7,10.5,14];if(this.sizeVariables?.length){const e=this.sizeVariables[0].minDataValue,r=this.sizeVariables[0].maxDataValue;if(e&&r){const i=(r-e)/5;t=Array.from(Array(6).keys()).map((t=>e+i*t))}}return{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[56,168,0],[139,309,0],[255,255,0],[255,128,0],[255,0,0]])}}_createSimpleScalarRenderer(){return{defaultSymbol:k.c.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAQAAABLVLlLAAAABGdBTUEAAYagMeiWXwAAAAJiS0dEAACqjSMyAAAACXBIWXMAAABIAAAASABGyWs+AAAC3ElEQVRIx9XXvW4cVRQH8N982btpsIREJECyiCXsxX4DKh6AliqGKCBBE2SlwlHgAbBD/AKmyEYUeQ1KahPZSZQvBCkQLTHZ7KGY8Xodz4w3a1NwbzVzz/znfJ//zbStVC5q3icKak9GAs2QIdDx3PtW/S011NW3p+M5Eomh11ipTIKe6+4LQzHaQ+G+63pIZNJJQXMpljwTwj1brpgx5w1zZlyx5Z4QnllEIm2xeeSUHBf0hV0bejo1Uh09G3aFvgXk7cCJFBc9EdaRVuHJJaOdKyTV2TVhYLMduNR0Q9gxL5GaaTDw8GzejrDRBpxWoGsySRW0dttKuattwNkIlFw2YXgzOdYq4Ox49PlM+JrKd5OusjTWhBuVxUfMX/KXXZ3WEmkuqa67wspR4BTbwtKr/5u4fFgStse/T7EifFPnnYl9zPq4vmUOPrRndgoHjDti1gOPqlyXoifcRNGQzUd31lDyfHmob1Gp35vSr+P6vilcQ5Egtyd8YF/ySg9NhPM+9M/IOaHwp5+PSZayXTvCogEUwlatC3J8LLwYtcWB8EuDXQVuCkV5/B4eNHb7wGBs87LBDS+xjdVSn09wq1G8dFM+9tSUhIGneLvUdniKxKpTYljCpu3j7rVWlHj/P23v4NPGUEyeCQnexe9lJjzEQqMjJs+EzNAX6B98dBZVRmroJx95x/A/6gln18EyfCUsl+qdXb/tjvfbw+mwforpUOBz4XLVoBwAn3aWnfeH246NyBXhrq7TTN5lNSP9RkU+puUJm3W2Tsdq0nZWM07srk7MwQrZSRysjjGWBLRJNsNbfj2JMR4AbxpU1XLAb9Mxfpsq5EjMuuiR8L0JiHOOBX3hiUvOmavN0nMueSzcceFk0BK4pMqLo7vDD1Z0qrtDx7Itt4Xwm9UqbMmk8S0Dtuzb2pvOU99Z1nLTOfleNmvfZfP2pYZmPfajwosKdDBNpacNpVGGsWX9CyDI8Xq/Sj6QAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE0LTExLTEwVDAzOjE3OjU4LTA1OjAwF+tHyQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNC0xMS0xMFQwMzoxNzo1OC0wNTowMGa2/3UAAAAASUVORK5CYII=",height:20,width:20,type:"esriPMS",angle:0})}}_createWindBarbsRenderer(){const e=Array.from(Array(31).keys()).map((e=>5*e)),t=[{range:"0-5",path:"M20 20 M5 20 A15 15 0 1 0 35 20 A15 15 0 1 0 5 20 M20 20 M10 20 A10 10 0 1 0 30 20 A10 10 0 1 0 10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTIwIDIwIE01IDIwIEExNSAxNSAwIDEgMCAzNSAyMCBBMTUgMTUgMCAxIDAgNSAyMCBNMjAgMjAgTTEwIDIwIEExMCAxMCAwIDEgMCAzMCAyMCBBMTAgMTAgMCAxIDAgMTAgMjAiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"5-10",path:"M25 0 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"10-15",path:"M25 0 L25 40 L10 45 L25 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"15-20",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjEyIDAgMTUgNDUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"20-25",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"25-30",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIEwyNSAzNSBNMjUgMzAgTDE3LjUgMzIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"30-35",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"35-40",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"40-45",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"45-50",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"50-55",path:"M25 0 L25 40 L10 40 L25 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"55-60",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxNy41IDMyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"60-65",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"65-70",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"70-75",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"75-80",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"80-85",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"85-90",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxNy41IDE3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"90-95",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"95-100",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20 L25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCBMMjUgMTUgTTI1IDEwIEwxNy41IDEyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"100-105",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"105-110",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDE3LjUgMjcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"110-115",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"115-120",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDE3LjUgMjIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"120-125",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"125-130",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDE3LjUgMTcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"130-135",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"135-140",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDE3LjUgMTIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"140-145",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"145-150",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IE0yNSAxMCBNMjUgNSBMMTcuNSA3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="}],r=k.c.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACgAAAApCAQAAADtq6NDAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAEY0lEQVRIx5XXWWxWRRQH8N+d+31tUdGAVjGglYJABFEBY91jfDAg7piYaFTccA++uMQEFRcSXlATtxiXqMQt4G4iisYl0ai4sIQYtVFZ1KIFKdTS0l4f7vRCS5fPebozc+bM/2z/Mzcx0AgSiUxXnKfIdMn875FIhX53U2n/B/s+kKM4UINTjTBZImixxnrv+9a2iL6zEoUBXcoudrWj/OtHm3wt02lfU9Qao9OnHvIhgmww84MEl1qnxfNmGrqHxAizLdPpC6chGcAxKGGcL+30gOERf1BSpUqVslQSV8d5ReZFe8VQ9avufJn31cWwlJV7iafKStGOE/1qvfH9qUxxu8ydUdmuSKbGO8YUdT2inKLG69pM70tliktl5qIkCAJGmusDG7Vqsc0WjZa4UBlBiA5YZIcjYzB7qDtH5kaUJFLs7RGZTZ42W4PRRmtwvbdt1+wGiaS4drEtDttdZYIDNVuAclR3vA3+dI3qHqmVSy7U6Tv1MScCPvPR7nIpFlsdCy3FdTLPGhK92e2CUITjMJ9ocwKxnsZqc3O3JwMma3d6UVLnyVxB4aXemZqvPqLdpJhW3KVVbY4yYImPo6M5Urv50fj+0z/FG9YaEiENs8UtMfXUaTeTePNHlhXfA1UU+2lyD1Il3Gtt9+adfpNG7dNlpg2U/T3KYLZ2dUWFdTgp3/rQ4sK973qnInV5TIf40x3dhvrJPBiqyWUo4wAtLqhQYS71qK+QKOFRywmGK/kpikzV6WMKhh58vGWs4TIJNjiEYLIuP8Tt4/zmLyqk+AyrJSbF+Qq1DgqRUPMxyl+9q3IQhX/rMCJ6tEunriDs1oSyQZKlr9AkhT2ZIARbJfaJS1vtVbHB+Rgi0RK/y1q1BWsEEyLoz40xtGKcARPVWB1BTPO7f4LNtpkUl1aoMbViLyZo0GRjPD3BxnxjqXeLYlvhqYrzMMG3HoyJXa3JjfnGlbYYFlP7Jh3qKsKY4hQ7TY0nG+xwRL61n63mxHtqNHosigyMLmClNwvuecFnOZB88nNBDzNkzhxEZaKMBVoKapggMzvHHXBEpNSSFAvtcFRsVn0bW8LlMmcXs+c0Kne3gRR32+zg4uXwjC6zit6Wt4a8LXVfcp/MtQXHn2ynGbuCmb8GvvFeJLEE82ReU9/n6+dkq2x3buG9Wn94smcgAw631RPR7BTH+kbmHReZoEpOdEe7zWqZl40s0JWs9Hmv7hjBHqPDwsjGKVJnWWqjbdZp1KhJi0aPmxYZsIRhlttgeF+Jlke41QcOQKoqilSb6HJzSvNG3G/UoWnxwsmt+sVaYwd63dRbqdnMyCPVeyRPvpYgdavM22oGKoMUVRbJfOWMwidJ8Zzb1UvmWK/VVUXzHaTjjrVYh1897HT7xxYEVUaa5SWb/WO+YUWa9SrwvigzM8YlzlYv2GSdVCYxxlBtVnnFq5olwp5/BEk/OLsf5LUmG2+inRJdVvjZ97ZH9/zP34ug1O91pf4p+D+JYBpvrKxfbwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNC0xMS0xMFQwMzoxMjowOS0wNTowMB9ViV0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTQtMTEtMTBUMDM6MTI6MDktMDU6MDBuCDHhAAAAAElFTkSuQmCC",height:20,width:20,type:"esriPMS",angle:0}),i=e.map(((i,n)=>{let s;if(n!==e.length-1)if(0===n)s={minValue:i,maxValue:e[n+1],symbol:r};else{const r=k.c.fromJSON({type:"esriPMS",imageData:t[n].imageData,contentType:"image/svg+xml",height:32,width:32,angle:0});s={minValue:i,maxValue:e[n+1],symbol:r}}return new w.c(s)}));return{defaultSymbol:r,classBreakInfos:i}}_getClassBreaks(e,t){return t.map(((t,r)=>new w.c({minValue:e[r],maxValue:e[r+1],symbol:this._getDefaultSymbol(new n.c(t))})))}};(0,i._)([(0,u.qq)({type:String,json:{write:!0}})],R.prototype,"attributeField",void 0),(0,i._)([(0,u.qq)({type:E.apiValues,json:{type:E.jsonValues,read:{reader:E.read},write:{writer:E.write}}})],R.prototype,"flowRepresentation",void 0),(0,i._)([(0,u.qq)({type:["geographic","arithmetic"],json:{write:!0}})],R.prototype,"rotationType",void 0),(0,i._)([(0,u.qq)({type:U.apiValues,json:{type:U.jsonValues,read:{reader:U.read},write:{writer:U.write}}})],R.prototype,"style",void 0),(0,i._)([(0,u.qq)({json:{write:!0}})],R.prototype,"symbolTileSize",void 0),(0,i._)([(0,u.qq)({type:g.ao.apiValues,json:{type:g.ao.jsonValues,write:{writer:g.ao.write}}})],R.prototype,"inputUnit",void 0),(0,i._)([(0,p.E)("inputUnit")],R.prototype,"readInputUnit",null),(0,i._)([(0,u.qq)({type:g.ao.apiValues,json:{type:g.ao.jsonValues,read:{reader:g.ao.read},write:{writer:g.ao.write}}})],R.prototype,"outputUnit",void 0),(0,i._)([(0,p.E)("outputUnit")],R.prototype,"readOutputUnit",null),(0,i._)([(0,d.G)({vectorField:"vector-field"})],R.prototype,"type",void 0),(0,i._)([(0,u.qq)({type:y.c})],R.prototype,"styleRenderer",null),(0,i._)([(0,u.qq)({type:I.c})],R.prototype,"sizeVariables",null),(0,i._)([(0,u.qq)({type:M.c})],R.prototype,"rotationVariables",null),R=x=(0,i._)([(0,m.c)("esri.renderers.VectorFieldRenderer")],R);const z=R},40996:(e,t,r)=>{r.d(t,{IF:()=>v,Mh:()=>I,RC:()=>M,i:()=>w,oh:()=>b,uw:()=>N});var i=r(44728),n=(r(87080),r(24296),r(600)),s=(r(10708),r(1124)),o=(r(74168),r(44748)),a=r(62996),l=r(69520),c=(r(88352),r(19184),r(70516)),u=r(58708),d=r(24948),p=r(10077),m=(r(65392),r(99704),r(49176));const h=.25,g=c.c.fromJSON({type:"multipart",colorRamps:[{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]}),y=c.c.fromJSON(o.AJ[0]),f=new Set(["scientific","standard-time","vector-uv","vector-magdir","vector-u","vector-v","vector-magnitude","vector-direction"]);function w(e,t){const{attributeTable:r,colormap:n}=e;if((0,a.k1)(e)){const t=function(e){if(!(0,a.k1)(e))return null;let t;if(null!=e.statistics&&e.statistics.length&&("vector-magdir"===e.dataType||"vector-uv"===e.dataType)){const{minMagnitude:r,maxMagnitude:i}=function(e,t){let r,i;if("vector-magdir"===e)r=t[0].min,i=t[0].max;else{const e=t[0].min,n=t[0].max,s=t[1].min,o=t[1].max;r=0,i=Math.max(Math.abs(e),Math.abs(s),Math.abs(n),Math.abs(o))}return{minMagnitude:r,maxMagnitude:i}}(e.dataType,e.statistics);t=[{type:"size",field:"Magnitude",minSize:10,maxSize:40,minDataValue:r,maxDataValue:i}]}const r=null!=e.multidimensionalInfo?T.get(e.multidimensionalInfo.variables[0].unit):null,i=new m.c({visualVariables:t,inputUnit:r,rotationType:"geographic"});return i.visualVariables=[...i.sizeVariables,...i.rotationVariables],i}(e);if(null!=t)return t}if(null!=n){const t=function(e){if(!(0,a.Wm)(e))return null;let t;const{attributeTable:r,colormap:i}=e;if(null!=r){const e=D(r,"value"),i=A(r,null,!0);"string"===i.type&&(t={},r.features.forEach((r=>{const n=r.attributes;t[n[e.name]]=i?n[i.name]:n[e.name]})))}return p.c.createFromColormap(i,t)}(e);if(null!=t)return t}if(null!=r){const t=function(e,t,r,n){if(!(0,a.ER)(e,t))return null;const{attributeTable:c,statistics:u}=e,p=A(c,t),m=D(c,"red"),h=D(c,"green"),g=D(c,"blue"),f=new s.c,w=[],M=new Set,I=!!(m&&h&&g);if(null!=c)c.features.forEach((e=>{const t=e.attributes[p.name];if(!M.has(e.attributes[p.name])&&null!=t){M.add(t);const r=I&&("single"===m.type||"double"===m.type)&&("single"===h.type||"double"===h.type)&&("single"===g.type||"double"===g.type)&&!c.features.some((e=>e.attributes[m.name]>1||e.attributes[h.name]>1||e.attributes[g.name]>1)),n=r?255:1;w.push(new l.c({value:e.attributes[p.name],label:e.attributes[p.name]+"",symbol:{type:"simple-fill",style:"solid",outline:null,color:new i.c(I?[e.attributes[m.name]*n,e.attributes[h.name]*n,e.attributes[g.name]*n,1]:[0,0,0,0])}}))}}));else if(u?.[0])for(let e=u[0].min;e<=u[0].max;e++)w.push(new l.c({value:e,label:e.toString(),symbol:{type:"simple-fill",style:"solid",outline:null,color:new i.c([0,0,0,0])}}));if(w.sort(((e,t)=>e.value&&"string"==typeof e.value.valueOf()?0:e.value>t.value?1:-1)),!I){const e=(0,o.Ky)(y,{numColors:w.length});w.forEach(((t,r)=>t.symbol.color=new i.c(e[r].slice(1,4)))),f.colorRamp=y}return new d.c({field:p.name,uniqueValueInfos:w,authoringInfo:f})}(e);if(null!=t)return t}return function(e,t){e=v(e,t?.variableName);const{bandCount:r}=e;let{bandIds:i,stretchType:n}=t||{};i?.some((e=>e>=r))&&(i=null);let s=e.statistics,o=e.histograms;r>1?(i=i?.length?i:b(e),s=null==s?null:i?.map((e=>s[e])),o=null==o?null:i?.map((e=>o[e]))):i=[0],null==n&&(n=function(e){let t="percent-clip";const{pixelType:r,dataType:i,histograms:n,statistics:s,multidimensionalInfo:o}=e,a=f.has(i)||"generic"===i&&null!=o;return"u8"!==r||"processed"!==i&&null!=n&&null!=s?"u8"===r||"elevation"===i||a?t="min-max":null!=n?t="percent-clip":null!=s&&(t="min-max"):t="none",t}(e));let a=!1;switch(n){case"none":a=!1;break;case"percent-clip":a=!o?.length;break;default:a=!s?.length}const{dataType:l}=e,c=1===i?.length&&f.has(l)?g:null,d=new u.c({stretchType:n,dynamicRangeAdjustment:a,colorRamp:c,outputMin:0,outputMax:255,gamma:1===i?.length?[1]:[1,1,1],useGamma:!1});return"percent-clip"===n?d.maxPercent=d.minPercent=h:"standard-deviation"===n&&(d.numberOfStandardDeviations=2),a||null==e.multidimensionalInfo&&!t?.includeStatisticsInStretch||("percent-clip"===n?d.histograms=o:"min-max"!==n&&"standard-deviation"!==n||(d.statistics=s)),d}(e,t)}function M(e,t=!1){const r=["raster-stretch"];return(0,a.Wm)(e,t)&&r.push("raster-colormap"),(0,a.ER)(e)&&r.push("unique-value"),(0,a.kR)(e,t)&&r.push("class-breaks"),(0,a.Yt)(e)&&r.push("raster-shaded-relief"),(0,a.k1)(e)&&r.push("vector-field"),(0,a.UV)(e)&&r.push("flow"),r}function I(e,t,r){const i=["nearest","bilinear","cubic","majority"].find((e=>e===r?.toLowerCase()));return"Map"===t?i??"bilinear":"standard-time"===e.dataType?i??"nearest":"thematic"===e.dataType||e.attributeTable||e.colormap?"nearest"===i||"majority"===i?i:"nearest":i??"bilinear"}function v(e,t){const{multidimensionalInfo:r}=e;if(!t||!r)return e;const i=r.variables.find((e=>e.name===t));if(!i)return e;if(e=e.clone(),i){const{statistics:t,histograms:r}=i;t?.length&&(e.statistics=t.map((e=>({min:e.min,max:e.max,avg:e.avg,stddev:e.stddev})))),r?.length&&(e.histograms=r)}return e}function b(e){const t=e.bandCount;if(1===t)return null;if(2===t)return[0];const{bandInfos:r}=e;let i;if(r.length===t){const{red:e,green:t,blue:n,nir:s}=function(e){const t={};for(let r=0;r<e.length;r++){const i=e[r],n=i.name.toLowerCase();if("red"===n)t.red=r;else if("green"===n)t.green=r;else if("blue"===n)t.blue=r;else if("nearinfrared"===n||"nearinfrared_1"===n||"nir"===n)t.nir=r;else if(i.maxWavelength&&i.minWavelength){const e=i.minWavelength,n=i.maxWavelength;null==t.blue&&e>=410&&e<=480&&n>=480&&n<=540?t.blue=r:null==t.green&&e>=490&&e<=560&&n>=560&&n<=610?t.green=r:null==t.red&&e>=595&&e<=670&&n>=660&&n<=730?t.red=r:null==t.nir&&e>=700&&e<=860&&n>=800&&n<=950&&(t.nir=r)}}return t}(r);null!=e&&null!=t&&null!=n?i=[e,t,n]:null!=s&&null!=e&&null!=t&&(i=[s,e,t])}return!i&&t>=3&&(i=[0,1,2]),i}function A(e,t,r){let i;return null!=e?(i=t?e.fields.find((e=>t.toLowerCase()===e.name.toLowerCase())):function(e){let t;for(let r=0;r<e.length;r++){const i=e[r].name.toLowerCase();if("string"===e[r].type){if(i.startsWith("class")){t=e[r];break}null==t&&(i.endsWith("name")||i.endsWith("type"))&&(t=e[r])}}return t}(e.fields),i||(r||(i=e.fields.find((e=>"string"===e.type))),i||(i=D(e,"value")))):i=new n.c({name:"value"}),i}function D(e,t){return null==e?null:e.fields.find((e=>e.name.toLowerCase()===t))}const T=new Map([["m/s","meter-per-second"],["km/h","kilometer-per-hour"],["knots","knots"],["ft/s","feet-per-second"],["mph","mile-per-hour"]]);function S(e){return{color:e.symbolLayers[0].material?.color,type:"esriSFS",style:"esriSFSSolid"}}function N(e){if("uniqueValue"===e.type){const t=e.uniqueValueInfos,r=t?.[0].symbol;return r?.symbolLayers?.length&&(e.uniqueValueInfos=t?.map((e=>({value:e.value,label:e.label,symbol:e.symbol?S(e.symbol):null})))),e}if("classBreaks"===e.type){const t=e.classBreakInfos,r=t[0].symbol;return r?.symbolLayers?.length&&(e.classBreakInfos=t.map((e=>({classMinValue:e.classMinValue,classMaxValue:e.classMaxValue,label:e.label,symbol:e.symbol?S(e.symbol):null})))),e}return e}},71599:(e,t,r)=>{r.d(t,{Rk:()=>d,cV:()=>p,sJ:()=>m});var i=r(2600),n=r(95247),s=r(67776),o=r(56156),a=r(64896),l=r(21980),c=r(59500);async function u(e,t,r){const u=(0,l.UX)(e),{rasterFunction:d,sourceJSON:p}=t||{},m=d?JSON.stringify(d.rasterFunctionDefinition||d):null,h=(0,l.OW)({...u.query,renderingRule:m,f:"json"}),g=(0,l.sR)(h,r);e=u.path;const y=p||await(0,i.c)(e,g).then((e=>e.data)),f=y.hasRasterAttributeTable?(0,i.c)(`${e}/rasterAttributeTable`,g):null,w=y.hasColormap?(0,i.c)(`${e}/colormap`,g):null,M=y.hasHistograms?(0,i.c)(`${e}/histograms`,g):null,I=y.currentVersion>=10.3?(0,i.c)(`${e}/keyProperties`,g):null,v=y.hasMultidimensions?(0,i.c)(`${e}/multidimensionalInfo`,g):null,b=await Promise.allSettled([f,w,M,I,v]);let A=null;if(y.minValues&&y.minValues.length===y.bandCount){A=[];for(let e=0;e<y.minValues.length;e++)A.push({min:y.minValues[e],max:y.maxValues[e],avg:y.meanValues[e],stddev:y.stdvValues[e]})}const D=n.c.fromJSON(y.extent),T=Math.ceil(D.width/y.pixelSizeX-.1),S=Math.ceil(D.height/y.pixelSizeY-.1),N=o.c.fromJSON(y.spatialReference||y.extent.spatialReference),j="fulfilled"===b[0].status?b[0].value?.data:null,C=j?.features?.length?c.c.fromJSON(j):null,_="fulfilled"===b[1].status?b[1].value?.data.colormap:null,x=_?.length?_:null,L="fulfilled"===b[2].status?b[2].value?.data.histograms:null,k=L?.[0]?.counts?.length?L:null,q="fulfilled"===b[3].status?b[3].value?.data??{}:{},U="fulfilled"===b[4].status?b[4].value?.data.multidimensionalInfo:null,E=U?.variables?.length?U:null;E&&E.variables.forEach((e=>{e.statistics?.length&&e.statistics.forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation}))}));const{defaultVariable:R,serviceDataType:z}=y;R&&R!==q.DefaultVariable&&(q.DefaultVariable=R),z?.includes("esriImageServiceDataTypeVector")&&!z.includes(q.DataType)&&(q.DataType=z.replace("esriImageServiceDataType",""));let B=y.noDataValue;return y.noDataValues?.length&&y.noDataValues.some((e=>e!==B))&&(B=y.noDataValues),new a.c({width:T,height:S,bandCount:y.bandCount,extent:n.c.fromJSON(y.extent),spatialReference:N,pixelSize:new s.c({x:y.pixelSizeX,y:y.pixelSizeY,spatialReference:N}),pixelType:y.pixelType.toLowerCase(),statistics:A,attributeTable:C,colormap:x,histograms:k,keyProperties:q,noDataValue:B,multidimensionalInfo:E})}function d(e,t,r){return u(e,{sourceJSON:t},r)}function p(e,t,r){return u(e,{rasterFunction:t},r)}function m(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},59500:(e,t,r)=>{r.d(t,{c:()=>M});var i,n=r(41948),s=r(60708),o=r(6444),a=r(14628),l=r(40504),c=r(62088),u=r(1580),d=(r(9456),r(66360),r(33600)),p=r(12552),m=r(18996),h=r(56156),g=r(6704),y=r(600);const f=new a.O({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=i=class extends l.am{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=h.c.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const n=e[t],s=o.c.fromJSON(n),a=n.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=r);const l=n.aggregateGeometries,c=s.aggregateGeometries;if(l&&null!=c)for(const e in c){const t=c[e],i=l[e],n=i?.spatialReference;null==t||n||(t.spatialReference=r)}i.push(s)}return i}writeGeometryType(e,t,r,i){if(e)return void f.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void f.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,g.h4)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=h.c.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,c.ct)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((n-e)/r)));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[s,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const c=this._getHydrationFunction(e,(e=>e*s+i),(e=>n-e*o),a,l);for(const{geometry:e}of t)null!=e&&c&&c(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,n;const s=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===i&&o===n||(s.push([e-i,o-n]),i=e,n=o)}else i=t(a[0]),n=r(a[1]),s.push([i,n])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,g.Cs)(e)?e.rings:e.paths,n=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,r);o&&n.push(o)}return n.length>0?((0,g.Cs)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,g.Cs)(e)?e.rings:e.paths;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(o+=n[0],a+=n[1]):(o=n[0],a=n[1]),n[0]=t(o),n[1]=r(a)}}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}}:null}};(0,n._)([(0,u.qq)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,n._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,n._)([(0,u.qq)({type:[o.c],json:{write:!0}})],w.prototype,"features",void 0),(0,n._)([(0,d.E)("features")],w.prototype,"readFeatures",null),(0,n._)([(0,u.qq)({type:[y.c],json:{write:!0}})],w.prototype,"fields",void 0),(0,n._)([(0,u.qq)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:f.read}}})],w.prototype,"geometryType",void 0),(0,n._)([(0,m.G)("geometryType")],w.prototype,"writeGeometryType",null),(0,n._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,n._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,n._)([(0,u.qq)({types:s.Su,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,n._)([(0,d.E)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,n._)([(0,u.qq)({type:h.c,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,n._)([(0,m.G)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,n._)([(0,u.qq)({json:{write:!0}})],w.prototype,"transform",void 0),w=i=(0,n._)([(0,p.c)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const M=w},65680:(e,t,r)=>{r.d(t,{c:()=>M});var i,n=r(41948),s=r(60708),o=r(25228),a=r(26832),l=r(40504),c=r(62088),u=r(66360),d=r(1580),p=(r(9456),r(12552)),m=r(18996),h=r(6704),g=r(88392),y=r(75e3),f=r(67776);let w=i=class extends l.am{constructor(){super(...arguments),this.geometry=null,this.mosaicRule=null,this.rasterFunction=null,this.pixelSize=null,this.raster=void 0,this.timeExtent=null}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,h.Ce)(e),t[r]=e.toJSON())}get renderingRule(){return(0,a.y2)(u.c.getLogger(this),"renderingRule",{replacement:"rasterFunction",version:"4.27",warnOnce:!0}),this._get("rasterFunction")}set renderingRule(e){(0,a.y2)(u.c.getLogger(this),"renderingRule",{replacement:"rasterFunction",version:"4.27",warnOnce:!0}),this._set("rasterFunction",e)}clone(){return new i((0,c.ct)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,pixelSize:this.pixelSize,raster:this.raster,timeExtent:this.timeExtent}))}};(0,n._)([(0,d.qq)({types:s.Su,json:{read:h.h4}})],w.prototype,"geometry",void 0),(0,n._)([(0,m.G)("geometry")],w.prototype,"writeGeometry",null),(0,n._)([(0,d.qq)({type:g.c,json:{write:!0}})],w.prototype,"mosaicRule",void 0),(0,n._)([(0,d.qq)({type:y.c})],w.prototype,"renderingRule",null),(0,n._)([(0,d.qq)({type:y.c,json:{write:!0,name:"renderingRule"}})],w.prototype,"rasterFunction",void 0),(0,n._)([(0,d.qq)({type:f.c,json:{write:!0}})],w.prototype,"pixelSize",void 0),(0,n._)([(0,d.qq)({json:{write:!0}})],w.prototype,"raster",void 0),(0,n._)([(0,d.qq)({type:o.c,json:{read:{source:"time"},write:{target:"time"}}})],w.prototype,"timeExtent",void 0),w=i=(0,n._)([(0,p.c)("esri.rest.support.ImageHistogramParameters")],w);const M=w},65548:(e,t,r)=>{r.d(t,{Ap:()=>c});var i=r(82692),n=r(564),s=r(3739),o=(r(73312),r(67300),r(18480),r(72944)),a=(r(53568),r(15024),r(63116),r(13428)),l=r(76992);function c({displayField:e,editFieldsInfo:t,fields:r,objectIdField:l,title:c},m){if(!r)return null;const g=function(e,t){const r=t?.visibleFieldNames;return function(e,t){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),e.sort(d),e}(e.fields??[],t?.ignoreFieldTypes||h).map((t=>new a.c({fieldName:t.name,isEditable:(0,n.Yn)(t,e),label:t.alias,format:p(t),visible:u(t,{...e,visibleFieldNames:r})})))}({editFieldsInfo:t,fields:r,objectIdField:l},m);if(!g.length)return null;const y=function(e){const t=(0,n.G2)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:c,fields:r,displayField:e}),f=[new o.c,new s.c];return new i.c({title:y,content:f,fieldInfos:g})}const u=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.iY)(e,t);function d(e,t){return"oid"===e.type?-1:"oid"===t.type?1:m(e)?-1:m(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function p(e){switch(e.type){case"small-integer":case"integer":case"single":return new l.c({digitSeparator:!0,places:0});case"double":return new l.c({digitSeparator:!0,places:2});case"string":return(0,n.Gm)(e.name)?new l.c({digitSeparator:!0,places:0}):null;default:return null}}function m(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const h=["geometry","blob","raster","guid","xml"]},8616:(e,t,r)=>{var i;r.d(t,{U:()=>i}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(i||(i={}))}}]);
|