@arcgis/core 4.32.0-next.20241220 → 4.32.0-next.20241221
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/WebLinkChart.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/127c82cdb229434883b6.js +1 -0
- package/assets/esri/core/workers/chunks/16530347bd78dc6c2fcd.js +1 -0
- package/assets/esri/core/workers/chunks/{5119811063bfc97fb725.js → 1a713cc601c6fcd97d2f.js} +1 -1
- package/assets/esri/core/workers/chunks/{48f6eb3b63fec1d3312d.js → 2d908c115ea18e813b95.js} +1 -1
- package/assets/esri/core/workers/chunks/{11052103efe3d53a784e.js → 31d9f0a37a5d0a1c450b.js} +1 -1
- package/assets/esri/core/workers/chunks/{e7c3199813070ff30a3d.js → 3bb94da29dac3367ecc6.js} +1 -1
- package/assets/esri/core/workers/chunks/3ed7c8138231de3a3b96.js +1 -0
- package/assets/esri/core/workers/chunks/{9cc9bac6e02ab241e852.js → 4746b7afa90ea3641e60.js} +1 -1
- package/assets/esri/core/workers/chunks/{ce33d2b5f22a5c566661.js → 4b5dbdcad438cb2dd4bf.js} +1 -1
- package/assets/esri/core/workers/chunks/{ee1ddf56549bb169509c.js → 6332da54159d72a6ce66.js} +1 -1
- package/assets/esri/core/workers/chunks/648d7d8fa19a2e772c89.js +1 -0
- package/assets/esri/core/workers/chunks/66b411119b8ffb99b9dc.js +1 -0
- package/assets/esri/core/workers/chunks/88c68881cbdf4e911832.js +1 -0
- package/assets/esri/core/workers/chunks/8e60de347b209a753c73.js +1 -0
- package/assets/esri/core/workers/chunks/{770d233254419b741616.js → 9ad7d095e614e7e8d7f5.js} +1 -1
- package/assets/esri/core/workers/chunks/9dd167db3f2e68b71cea.js +1 -0
- package/assets/esri/core/workers/chunks/{b15894bff153e0793ef4.js → 9f495ad57cdbfa90c5b8.js} +1 -1
- package/assets/esri/core/workers/chunks/{d7b76bc7bff34abc2253.js → a0b3d70a1b0360084593.js} +1 -1
- package/assets/esri/core/workers/chunks/{95af4dee29eb196b8ada.js → a90611cdc86190799560.js} +1 -1
- package/assets/esri/core/workers/chunks/{e213f4a1c95a33f80cdc.js → aedff36d3fec86abb9fb.js} +1 -1
- package/assets/esri/core/workers/chunks/{194013d377e7dd00845f.js → b611f46835edcd6eefcc.js} +1 -1
- package/assets/esri/core/workers/chunks/c1c216b0aebe86311fae.js +1 -0
- package/assets/esri/core/workers/chunks/{f2b195d04414417682d4.js → cbf57abb537e86c1dd7f.js} +1 -1
- package/assets/esri/core/workers/chunks/f9af0473878d960a02f2.js +1 -0
- package/assets/esri/core/workers/chunks/fa1c68f2ffcdff7986b6.js +1 -0
- package/assets/esri/core/workers/chunks/{0f1a7aeec18db5323365.js → fdd8a5eb07466541f1f9.js} +1 -1
- package/form/elements/GroupElement.js +1 -1
- package/form/elements/UtilityNetworkAssociationsElement.d.ts +4 -0
- package/form/elements/{UtilityNetworkAssociationElement.js → UtilityNetworkAssociationsElement.js} +1 -1
- package/form/elements.js +1 -1
- package/form/support/formUtils.js +1 -1
- package/interfaces.d.ts +178 -67
- package/layers/LinkChartLayer.js +1 -1
- package/layers/knowledgeGraph/supportUtils.js +1 -1
- package/layers/support/VideoElement.js +1 -1
- package/linkChart/OrganicLayoutSettings.js +1 -1
- package/package.json +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/rest/knowledgeGraphService.js +1 -1
- package/rest/support/fileFormat.js +1 -1
- package/support/revision.js +1 -1
- package/views/3d/terrain/TileTexture.js +1 -1
- package/views/3d/webgl-engine/collections/Component/RenderSubmitSystem.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/lib/TextureCompressionWorker.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/support/TextureCompressionHelper.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/webscene/Slide.js +1 -1
- package/webscene/SlideLegend.d.ts +4 -0
- package/webscene/SlideLegend.js +5 -0
- package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/Print/PrintViewModel.js +1 -1
- package/widgets/Print/TemplateOptions.js +1 -1
- package/widgets/Print.js +1 -1
- package/assets/esri/core/workers/chunks/0e9bd990a8d0691fb9c8.js +0 -1
- package/assets/esri/core/workers/chunks/27933d6ffeebb5c13ab7.js +0 -1
- package/assets/esri/core/workers/chunks/2c084c0c324e3af56424.js +0 -1
- package/assets/esri/core/workers/chunks/48266c87363e7dcaefb3.js +0 -1
- package/assets/esri/core/workers/chunks/668679baf519ada9ae28.js +0 -1
- package/assets/esri/core/workers/chunks/737f381f2cfeddb96d15.js +0 -1
- package/assets/esri/core/workers/chunks/a68068b3151a14c4a0ad.js +0 -1
- package/assets/esri/core/workers/chunks/ad99308fb9678cdce917.js +0 -1
- package/assets/esri/core/workers/chunks/cc427e8f1b17744b6ea4.js +0 -1
- package/assets/esri/core/workers/chunks/dd4bd96dfb7f9921b774.js +0 -1
- package/assets/esri/core/workers/chunks/e1a03231e24293e66418.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3600],{9775:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(62788),s=r(95488);class n{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new s.I,this._items=new Set}get length(){return(0,i.gc)(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.gc)(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.gc)(this._observable),yield*this._items}}},10382:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(36563),s=(r(44208),r(74887)),n=r(9775),o=r(72457),a=r(52268),l=r(61322);class u{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new n.A}destroy(){this.close()}get closed(){return!this._clients?.length}open(e,t){return new Promise(((r,i)=>{let n=!0;const o=e=>{(0,s.Te)(t.signal),n&&(n=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let n=0;n<e.length;++n){const a=e[n];(0,s.$X)(a)?this._clientPromises[n]=a.then((e=>(this._clients[n]=new l.default(e,t,this._ongoingJobsQueue),o(r),this._clients[n])),(()=>(o(i),null))):(this._clients[n]=new l.default(a,t,this._ongoingJobsQueue),this._clientPromises[n]=Promise.resolve(this._clients[n]),o(r))}}))}broadcast(e,t,r){const i=new Array(this._clientPromises.length);for(let s=0;s<this._clientPromises.length;++s){const n=this._clientPromises[s];i[s]=n.then((i=>i?.invoke(e,t,r)))}return i}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,s.NK)(`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.h)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const i=(0,s.Tw)();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.L)(this,e)}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,i.vE)(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((s=>{s&&(t[i]=s.openPort()),0==--r&&e(t)}))}))}get test(){}}},72457:(e,t,r)=>{r.d(t,{h:()=>n,k:()=>s});const i=new FinalizationRegistry((e=>{e.close()}));function s(e,t){i.register(e,t,t)}function n(e){i.unregister(e)}},29953:(e,t,r)=>{r.d(t,{ho:()=>G});var i=r(49186),s=r(44208),n=r(74887),o=r(10382),a=r(72457),l=r(61322),u=r(53966),d=r(97768),c=r(78888),p=r(84952);const h={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.sC)(e.url)?.after?i:"array-buffer";const s=await(0,c.A)(e.url,r),n={data:s.data,httpStatus:s.httpStatus,ssl:s.ssl};switch(s.requestOptions?.responseType){case"native-request-init":return delete n.data.signal,n;case"blob":n.data=await n.data.arrayBuffer();break;case"json":n.data=(new TextEncoder).encode(JSON.stringify(n.data)).buffer;break;case"text":n.data=(new TextEncoder).encode(n.data).buffer}return{result:n,transferList:[n.data]}}};var y=r(8341),f=r(2741),m=r(92602),g=(r(47566),r(70333));const b={};var w=r(26390);class _{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...r)=>e[t](...r)}))}}class v{constructor(){this._dispatcher=new _,this._workerPostMessage({type:y.Go.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,w.d)((()=>{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,w.d)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,y.VI)(e);if(t&&t.type===y.Go.OPEN){const{modulePath:e,jobId:r}=t;let i=await l.default.loadWorker(e);i||(i=await import(e));const s=l.default.connect(i);this._workerPostMessage({type:y.Go.OPENED,jobId:r,data:s})}}}var S=r(73444),E=r(18357);const I=()=>u.A.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:A}=y.Go;let M,T;const F="Failed to create Worker. Fallback to execute module in main thread";async function k(e){return new Promise((t=>{function r(s){const n=(0,y.VI)(s);n&&n.type===A&&(e.removeEventListener("message",r),e.removeEventListener("error",i),t(e))}function i(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",i),I().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 P=0;const{ABORT:O,INVOKE:C,OPEN:j,OPENED:D,RESPONSE:L}=y.Go;class q{static async create(e){const t=await async function(){if(!(0,s.A)("esri-workers"))return k(new v);if(!M&&!T)try{const e='let globalId=0;const outgoing=new Map,configuration={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++;let s=null;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})})).finally((()=>{t&&t.removeEventListener("abort",s)}))}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 1:let n;function t(e){const o=n.connect(e);self.postMessage({type:2,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 3: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!=m.A.default){const t={...m.A};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(m.A));e.assetsPath=(0,p.s2)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,p.s2)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,S.JK)(),e.has={"esri-csp-restrictions":(0,s.A)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,s.A)("esri-2d-update-debug"),"esri-2d-log-updating":(0,s.A)("esri-2d-log-updating"),"featurelayer-pbf":(0,s.A)("featurelayer-pbf"),"featurelayer-fast-triangulation-enabled":(0,s.A)("featurelayer-fast-triangulation-enabled"),"featurelayer-simplify-thresholds":(0,s.A)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,s.A)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,s.A)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,s.A)("featurelayer-query-max-depth"),"featurelayer-query-pausing-enabled":(0,s.A)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-enabled":(0,s.A)("featurelayer-snapshot-enabled"),"esri-atomics":(0,s.A)("esri-atomics"),"esri-shared-array-buffer":(0,s.A)("esri-shared-array-buffer"),"esri-tiles-debug":(0,s.A)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,s.A)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,s.A)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,p.s2)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,p.s2)(e.workers.workerPath):e.workers.workerPath=(0,p.s2)((0,f.s)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=m.A.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?.slice()||[],paths:{...b.paths,...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=b.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,S.JK)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),i={buildDate:E.$,fullVersion:g.ol,revision:E.u};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:i})}());M=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){T=e||{}}let e;if(M)try{e=new Worker(M,{name:"esri-worker-"+P++})}catch(t){I().warn(F,T),e=new v}else I().warn(F,T),e=new v;return k(e)}();return new q(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(),u.A.getLogger("esri.core.workers.WorkerOwner").error(e)}))}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,i=(0,y.Jc)();return new Promise(((t,s)=>{const o={resolve:t,reject:s,abortHandle:(0,n.NY)(r,(()=>{this._outJobs.delete(i),this._post({type:O,jobId:i})}))};this._outJobs.set(i,o),this._post({type:j,jobId:i,modulePath:e})}))}_onMessage(e){const t=(0,y.VI)(e);if(t)switch(t.type){case D:this._onOpenedMessage(t);break;case L:this._onResponseMessage(t);break;case O:this._onAbortMessage(t);break;case C: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:s}=e,o=s?new AbortController:null,a=this._inJobs,l=h[t];let u;try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`);u=l.call(null,i,{signal:o?o.signal:null})}catch(e){return void this._post({type:L,jobId:r,error:(0,y.mF)(e)})}(0,n.$X)(u)?(a.set(r,{controller:o,promise:u}),u.then((e=>{a.has(r)&&(a.delete(r),this._post({type:L,jobId:r},e))}),(e=>{a.has(r)&&(a.delete(r),e||(e={message:"Error encountered at method"+t}),(0,n.zf)(e)||this._post({type:L,jobId:r,error:(0,y.mF)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:L,jobId:r},u)}_onOpenedMessage(e){const{jobId:t,data:r}=e,i=this._outJobs.get(t);i&&(this._outJobs.delete(t),(0,d.xt)(i.abortHandle),i.resolve(r))}_onResponseMessage(e){const{jobId:t,error:r,data:s}=e,n=this._outJobs.get(t);n&&(this._outJobs.delete(t),(0,d.xt)(n.abortHandle),r?n.reject(i.A.fromJSON(JSON.parse(r))):n.resolve(s))}_post(e,t,r){return(0,y.u1)(this.worker,e,t,r)}}const R=(0,s.A)("host-browser")?Math.min(navigator.hardwareConcurrency-1,(0,s.A)("workers-pool-size")??8):0;let x=(0,s.A)("esri-mobile")?Math.min(R,3):R;x||(x=(0,s.A)("safari")&&(0,s.A)("mac")?7:2);let N=0;const Z=[];async function J(e,t){const r=new o.A,{registryTarget:i,...s}=t;return await r.open(e,s),i&&(0,a.k)(i,r),r}async function G(e,t={}){if("string"!=typeof e)throw new i.A("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if((0,s.A)("host-webworker")&&!(0,s.A)("esri-workers")&&(r="local"),"local"===r){let r=await l.default.loadWorker(e);r||(r=await import(e)),(0,n.Te)(t.signal);const i=t.client||r;return J([l.default.connect(r,t.schedule)],{...t,client:i})}if(await async function(){if($)return $;V=new AbortController;const e=[];for(let t=0;t<x;t++){const r=q.create(t).then((e=>(Z[t]=e,e)));e.push(r)}return $=Promise.all(e),$}(),(0,n.Te)(t.signal),"dedicated"===r){const r=N++%x;return J([await Z[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,x);if(r<x){const i=new Array(r);for(let s=0;s<r;++s){const r=N++%x;i[s]=Z[r].open(e,t)}return J(i,t)}}return J(Z.map((r=>r.open(e,t))),t)}let V,$=null},13600:(e,t,r)=>{r.r(t),r.d(t,{default:()=>De});var i=r(90237),s=r(13874),n=(r(86162),r(52464),r(65345),r(42980),r(20917),r(92438),r(96576),r(93618),r(65494)),o=r(15036),a=r(78888),l=r(61147),u=r(69540),d=r(5503),c=r(49186),p=r(4718),h=r(53966),y=r(92071),f=r(93637),m=r(74887),g=r(39516),b=r(84952),w=r(67076),_=r(10107),v=r(79901),S=r(36005),E=r(40608),I=r(43937),A=r(89317),M=r(24070),T=r(16930),F=r(4146),k=(r(59456),r(52106)),P=r(44208),O=r(92474),C=r(61893),j=r(29953),D=r(56507),L=(r(87811),r(7695)),q=r(96520),R=r(58501),x=r(22671),N=r(5443),Z=r(39829),J=r(50498);let G=0,V=class extends(O.A.LoadableMixin(C.A.EsriPromiseMixin(d.A))){constructor(e){super(e),this._idToClientGraphic=null,this.type="memory"}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}get _workerGeometryType(){const e=this.layer?.geometryType;return e?this._geometryTypeRequiresClientGraphicMapping(e)?"polygon":e:null}applyEdits(e){return this.load().then((()=>this._applyEdits(e)))}openPorts(){return this.load().then((()=>this._connection.openPorts()))}async queryFeatures(e,t={}){await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);(0,R.q)(e,this.layer.spatialReference,r);const i=x.A.fromJSON(r);if(!this._requiresClientGraphicMapping())return i;const s=this.layer.objectIdField;for(const e of i.features){const t=e.attributes[s],r=this._idToClientGraphic.get(t);r&&(e.geometry=r.geometry)}return i.geometryType=this.layer.geometryType,i}async queryFeaturesJSON(e,t={}){if(this._requiresClientGraphicMapping())throw new c.A("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);return(0,R.q)(e,this.layer.spatialReference,r),r}queryFeatureCount(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)))}queryObjectIds(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)))}queryExtent(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryExtent",e?e.toJSON():null,t))).then((e=>({count:e.count,extent:N.A.fromJSON(e.extent)})))}querySnapping(e,t={}){return this.load(t).then((()=>this._connection.invoke("querySnapping",e,t)))}async queryAttributeBins(e,t={}){return await this.load(),this._connection.invoke("queryAttributeBins",e?.toJSON(),t)}async _applyEdits(e){if(!this._connection)throw new c.A("feature-layer-source:edit-failure","Memory source not loaded");const t=this.layer.objectIdField;let r=null;const i=[],s=[];await Promise.all([this._prepareClientMapping(e.addFeatures,null),this._prepareClientMapping(e.updateFeatures,null)]);const n=e=>"objectId"in e&&null!=e.objectId?e.objectId:"attributes"in e&&null!=e.attributes[t]?e.attributes[t]:null;if(e.addFeatures&&(r=this._prepareAddFeatures(e.addFeatures)),e.deleteFeatures)for(const t of e.deleteFeatures){const e=n(t);null!=e&&i.push(e)}const o=e.updateFeatures&&this._idToClientGraphic?new Map:null;if(e.updateFeatures)for(const t of e.updateFeatures)if(s.push(this._serializeFeature(t)),o){const e=n(t);null!=e&&o.set(e,t)}(0,q.u)(r?r.features:null,s,this.layer.spatialReference);const{fullExtent:a,featureEditResults:l}=await this._connection.invoke("applyEdits",{adds:r?r.features:[],updates:s,deletes:i});return this.fullExtent=a,r&&r.finish(l.uidToObjectId),this._updateClientGraphicIds(o,l),this._createEditsResult(l)}async _prepareClientMapping(e,t){if("mesh"!==this._layerOrSourceGeometryType||null==e)return;const r=[];for(const{geometry:i}of e)null==i||"mesh"!==i.type||i.hasExtent||i.loaded||r.push(i.load({signal:t}));r.length&&await Promise.all(r)}_updateClientGraphicIds(e,t){if(this._idToClientGraphic){if(e)for(const r of t.updateResults){if(!r.success)continue;const t=e.get(r.objectId);null!=t&&this._addIdToClientGraphic(t)}for(const e of t.deleteResults)e.success&&this._idToClientGraphic.delete(e.objectId)}}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new c.A("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_prepareAddFeatures(e){const t=new Map,r=new Array(e.length);let i=null;for(let s=0;s<e.length;s++){const n=e[s],o=this._serializeFeature(n);i||null==n.geometry||(i=n.geometry.type),r[s]=o,t.set(`${o.uid}`,n)}const s=this;return{features:r,inferredGeometryType:i,finish(e){const r=s.sourceJSON.objectIdField;for(const i in e){const n=e[i],o=t.get(i);o&&(o.attributes||(o.attributes={}),-1===n?delete o.attributes[r]:o.attributes[r]=n,s._addIdToClientGraphic(o))}}}}_addIdToClientGraphic(e){if(!this._idToClientGraphic)return;const t=this.sourceJSON.objectIdField,r=e.attributes?.[t];null!=r&&this._idToClientGraphic.set(r,e)}get _layerOrSourceGeometryType(){return this.layer?.geometryType??this.sourceJSON?.geometryType}_requiresClientGraphicMapping(){return this._geometryTypeRequiresClientGraphicMapping(this._layerOrSourceGeometryType)}_geometryRequiresClientGraphicMapping(e){return this._geometryTypeRequiresClientGraphicMapping(e.type)}_geometryTypeRequiresClientGraphicMapping(e){return"mesh"===e||"multipatch"===e||"extent"===e}_serializeFeature(e){const{attributes:t}=e,r=this._geometryForSerialization(e),i=(G++).toString();return r?{uid:i,geometry:r.toJSON(),attributes:t}:{uid:i,attributes:t}}_geometryForSerialization(e){const{geometry:t}=e;return null==t?null:this._geometryRequiresClientGraphicMapping(t)?t.extent?Z.A.fromExtent(t.extent):null:t}async _startWorker(e){this._connection=await(0,j.ho)("MemorySourceWorker",{strategy:(0,P.A)("feature-layers-workers")?"dedicated":"local",signal:e,registryTarget:this});const{fields:t,spatialReference:r,objectIdField:i,hasM:s,hasZ:n,timeInfo:o,dateFieldsTimeZone:a}=this.layer,l="defaults"===this.layer.originOf("spatialReference");await this._prepareClientMapping(this.items,e);const u=this._prepareAddFeatures(this.items);this.addHandles(this.on("before-changes",(e=>{h.A.getLogger(this).error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead"),e.preventDefault()})));const d={features:u.features,fields:t?.map((e=>e.toJSON())),geometryType:J.Y.toJSON(this._workerGeometryType),hasM:"mesh"!==this._layerOrSourceGeometryType&&s,hasZ:"mesh"===this._layerOrSourceGeometryType||n,objectIdField:i,spatialReference:l?null:r&&r.toJSON(),timeInfo:o?.toJSON()??null,dateFieldsTimeZone:a},c=await this._connection.invoke("load",d,{signal:e});for(const e of c.warnings)h.A.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});c.featureErrors.length&&h.A.getLogger(this.layer).warn("#load()",`Encountered ${c.featureErrors.length} validation errors while loading features. (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{errors:c.featureErrors});const p=c.layerDefinition;this._geometryTypeRequiresClientGraphicMapping(u.inferredGeometryType)&&(p.geometryType=J.Y.toJSON(u.inferredGeometryType)),this.sourceJSON=p,this._requiresClientGraphicMapping()&&(this._idToClientGraphic=new Map),u.finish(c.assignedObjectIds)}};(0,i._)([(0,L.u)({Type:k.A,ensureType:(0,D.dp)(k.A)})],V.prototype,"itemType",void 0),(0,i._)([(0,_.MZ)()],V.prototype,"type",void 0),(0,i._)([(0,_.MZ)({constructOnly:!0})],V.prototype,"layer",void 0),(0,i._)([(0,_.MZ)({readOnly:!0})],V.prototype,"_workerGeometryType",null),(0,i._)([(0,_.MZ)()],V.prototype,"sourceJSON",void 0),V=(0,i._)([(0,E.$)("esri.layers.graphics.sources.MemorySource")],V);var $=r(52136),H=r(18768),W=r(63074),U=r(69208),Q=r(47685),z=r(87718),K=r(87796),B=r(76294),X=r(16131),Y=r(32756),ee=r(8303),te=r(69622);let re=class extends te.A{constructor(){super(...arguments),this.updating=!1,this.status="unknown"}};(0,i._)([(0,_.MZ)()],re.prototype,"updating",void 0),(0,i._)([(0,_.MZ)()],re.prototype,"status",void 0),re=(0,i._)([(0,E.$)("esri.layers.support.PublishingInfo")],re);const ie=re,se=Symbol(),ne=e=>{var t;let r=class extends e{constructor(){super(...arguments),this[t]=!0}get publishingInfo(){if(this.destroyed)return null;const e=this._get("publishingInfo");if(e)return e;const t=new ie;return this._checkPublishingStatus(t),t}_checkPublishingStatus(e){let t=0;const r=async s=>{let n;e.updating=!0;try{n=await this.fetchPublishingStatus()}catch(e){n="unavailable"}"published"!==n&&"unavailable"!==n||("publishing"===e.status&&this.refresh(),i.remove()),e.status=n,e.updating=!1,i.removed||(t=setTimeout(r,s,s+125))},i={removed:!1,remove(){this.removed=!0,clearTimeout(t)}};this.when().catch((()=>i.remove())),r(250),this.addHandles(i)}};return t=se,(0,i._)([(0,_.MZ)({readOnly:!0,clonable:!1})],r.prototype,"publishingInfo",null),r=(0,i._)([(0,E.$)("esri.layers.mixins.PublishableLayer")],r),r};var oe=r(54310),ae=r(25036),le=r(82935),ue=r(60694),de=r(10873),ce=r(15426),pe=r(29005),he=r(33143),ye=r(17036),fe=r(30524),me=r(81457),ge=r(39383),be=r(22453),we=r(96184),_e=r(91908),ve=r(27733),Se=r(8947),Ee=r(61956),Ie=r(30291),Ae=r(35093),Me=r(92935),Te=r(78553);const Fe="FeatureLayer";function ke(e,t){return new c.A("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}function Pe(e){return e&&e instanceof d.A}const Oe=(0,ye.p)();function Ce(e,t,r){const i=!!r?.writeLayerSchema;return{enabled:i,ignoreOrigin:i}}let je=class extends((0,K.j)((0,B.J)((0,z.F)(ne((0,Q.w6)((0,W.dM)((0,Y.fY)((0,le.e)((0,ae.j)((0,oe.J)((0,H.b)((0,X.q)((0,ee.A)((0,y.P)((0,U.d)((0,$.p)(u.A.ClonableMixin(F.A)))))))))))))))))){constructor(...e){super(...e),this.attributeTableTemplate=null,this.charts=null,this.copyright=null,this.displayField=null,this.dynamicDataSource=null,this.fields=null,this.fieldsIndex=null,this.formTemplate=null,this.fullExtent=null,this.geometryType=null,this.hasM=void 0,this.hasZ=void 0,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.resourceInfo=null,this.screenSizePerspectiveEnabled=!0,this.spatialReference=T.A.WGS84,this.subtypeCode=null,this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.templates=null,this.timeInfo=null,this.title=null,this.sublayerTitleMode="item-title",this.type="feature",this.typeIdField=null,this.types=null,this.visible=!0,this._debouncedSaveOperations=(0,m.sg)((async(e,t,i)=>{const{save:s,saveAs:n}=await r.e(3359).then(r.bind(r,33359));switch(e){case Me.X.SAVE:return s(this,t);case Me.X.SAVE_AS:return n(this,i,t)}}))}destroy(){this.source?.destroy()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;if(this.portalItem?.loaded&&this.source)return this.addResolvingPromise(this.createGraphicsSource(t).then((e=>this.initLayerProperties(e)))),Promise.resolve(this);const r=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Scene Service"]},e).catch(m.QP).then((async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url&&!this._hasMemorySource())throw new c.A("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return this.initLayerProperties(await this.createGraphicsSource(t))})).then((()=>(0,ce.VA)(this,"load",e)));return this.addResolvingPromise(r),Promise.resolve(this)}warnInvisibleDrapedSymbols(){"on-the-ground"===this.elevationInfo?.mode&&"simple"===this.renderer?.type&&"polygon-3d"===this.renderer.symbol?.type&&this.renderer.symbol.symbolLayers.some((e=>"fill"===e.type&&null!=e.material&&(!e.material.color||e.material.color.a*this.opacity<Ae.Q)&&(this.loadWarnings.push(new w.A("feature-layer:invisible-draped-symbols","FeatureLayer has fully transparent symbols which will no longer render or highlight",{layer:this})),!0)))}readCapabilities(e,t){return t=t.layerDefinition||t,(0,be.S)(t,this.url)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return!(this.loaded&&!this.capabilities?.operations.supportsEditing)&&(this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}readEditingEnabled(e,t){return this._readEditingEnabled(t,!1)}readEditingEnabledFromWebMap(e,t,r){return this._readEditingEnabled(t,!0,r)}writeEditingEnabled(e,t){this._writeEditingEnabled(e,t,!1)}writeEditingEnabledToWebMap(e,t,r,i){this._writeEditingEnabled(e,t,!0,i)}get effectiveEditingEnabled(){return(0,ce.C$)(this)}readIsTable(e,t){return"Table"===(t=t?.layerDefinition??t).type||!t.geometryType}writeIsTable(e,t,r,i){i?.writeLayerSchema&&(0,f.sM)(r,e?"Table":"Feature Layer",t)}readGlobalIdField(e,t){return(0,ce.jD)(t.layerDefinition||t)}readObjectIdField(e,t){return(0,ce.Zm)(t.layerDefinition||t)}get parsedUrl(){const e=(0,b.An)(this.url);return null!=e&&(null!=this.dynamicDataSource?e.path=(0,b.fj)(e.path,"dynamicLayer"):null!=this.layerId&&(e.path=(0,b.fj)(e.path,this.layerId.toString()))),e}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,fe.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,r){t=t.layerDefinition||t;const i=t.drawingInfo?.renderer;if(i){const e=(0,n.L)(i,t,r)??void 0;return e||h.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:r}),e}return(0,ce.PD)(t,r)}set source(e){const t=this._get("source");t!==e&&(Pe(t)&&this._resetMemorySource(t),Pe(e)&&this._initMemorySource(e),this._set("source",e))}castSource(e){return e?Array.isArray(e)||e instanceof d.A?new V({layer:this,items:e}):e:null}readSource(e,t){const r=x.A.fromJSON(t.featureSet);return new V({layer:this,items:r?.features??[]})}readTemplates(e,t){const r=t.editFieldsInfo,i=r?.creatorField,s=r?.editorField;return e=e?.map((e=>pe.A.fromJSON(e))),this._fixTemplates(e,i),this._fixTemplates(e,s),e}readTitle(e,t){const r=t.layerDefinition?.name??t.name,i=t.title||t.layerDefinition?.title;if(r){const e=this.portalItem?.title;if("item-title"===this.sublayerTitleMode)return this.url?(0,ue.yG)(this.url,r):r;let t=r;if(!t&&this.url){const e=(0,ue.qg)(this.url);null!=e&&(t=e.title)}if(!t)return;return"item-title-and-service-name"===this.sublayerTitleMode&&e&&e!==t&&(t=e+" - "+t),(0,ue.cr)(t)}if("item-title"===this.sublayerTitleMode&&i)return i}readTitleFromWebMap(e,t){return t.title||t.layerDefinition?.name}readTypeIdField(e,t){let r=(t=t.layerDefinition||t).typeIdField;if(r&&t.fields){r=r.toLowerCase();const e=t.fields.find((e=>e.name.toLowerCase()===r));e&&(r=e.name)}return r}readTypes(e,t){e=(t=t.layerDefinition||t).types;const r=t.editFieldsInfo,i=r?.creatorField,s=r?.editorField;return e?.map((e=>(e=he.A.fromJSON(e),this._fixTemplates(e.templates,i),this._fixTemplates(e.templates,s),e)))}readVisible(e,t){return null!=t.layerDefinition?.defaultVisibility?!!t.layerDefinition.defaultVisibility:null!=t.visibility?!!t.visibility:void 0}async addAttachment(e,t){const r=await(0,ce.Xl)(this,e,t,Fe);return this.lastEditsEventDate=new Date,r}async updateAttachment(e,t,r){const i=await(0,ce.bt)(this,e,t,r,Fe);return this.lastEditsEventDate=new Date,i}async applyEdits(e,t){return(0,ce.ct)(this,e,t)}async uploadAssets(e,t){return(0,ce.rn)(this,e,t)}on(e,t){return super.on(e,t)}createPopupTemplate(e){return(0,Ie.tn)(this,e)}async createGraphicsSource(e){if(this._hasMemorySource()&&this.source)return this.source.load({signal:e});const{default:t}=await(0,m.qr)(Promise.all([r.e(893),r.e(2593)]).then(r.bind(r,72593)),e);return new t({layer:this,supportedSourceTypes:this.supportedSourceTypes}).load({signal:e})}createQuery(){const e=(0,ce.VZ)(this);e.dynamicDataSource=this.dynamicDataSource;const t=null!=this.subtypeCode?`${this.subtypeField} = ${this.subtypeCode}`:null,r=(0,g.m)(this.definitionExpression,t);return e.where=r||"1=1",e}async deleteAttachments(e,t){const r=await(0,ce.mm)(this,e,t,Fe);return this.lastEditsEventDate=new Date,r}async fetchRecomputedExtents(e){return(0,ce.WP)(this,e,Fe)}getFeatureType(e){return(0,ce.xd)(this.types,this.typeIdField,e)}getFieldDomain(e,t){const r=t?.feature,i=!!this.subtypes?.length;if(i&&!t?.excludeImpliedDomains){const t=(0,ce.pc)(this,e);if(t)return t}const s=i&&(0,ce.Nv)(this,r);if(s){const t=s?.domains?.[e];return"inherited"===t?.type?this._getLayerDomain(e):t}const n=this.getFeatureType(r),o=this._getLayerDomain(e);if(n){const t=n.domains&&n.domains[e];if(t&&"inherited"!==t?.type)return t}if(o)return o;if(!t?.excludeImpliedDomains){const t=(0,ce.hx)(this,e);if(t)return t}return null}getField(e){return this.fieldsIndex.get(e)}async queryAttachments(e,t){return(0,ce.lV)(this,e,t,Fe)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(Ee.A.from(e)??r.createQuery(),t);if(i?.features)for(const e of i.features)e.layer=e.sourceLayer=r;return i}async queryObjectIds(e,t){return(0,ce.sg)(this,e,t,Fe)}async queryFeatureCount(e,t){return(0,ce.Ye)(this,e,t,Fe)}async queryExtent(e,t){return(0,ce.B5)(this,e,t,Fe)}async queryRelatedFeatures(e,t){return(0,ce.hM)(this,e,t,Fe)}async queryRelatedFeaturesCount(e,t){return(0,ce.S2)(this,e,t,Fe)}async queryTopFeatures(e,t){const{source:i,capabilities:s}=await this.load();if(!i.queryTopFeatures||!s?.query?.supportsTopFeaturesQuery)throw new c.A(Fe,"Layer source does not support queryTopFeatures capability");const n=await r.e(7561).then(r.bind(r,57561)),o=await i.queryTopFeatures(n.default.from(e),t);if(o?.features)for(const e of o.features)e.layer=e.sourceLayer=this;return o}async queryAttributeBins(e,t){const{source:i,capabilities:s}=await this.load();if(!i.queryAttributeBins||!s?.operations?.supportsQueryBins)throw new c.A(Fe,"Layer source does not support queryAttributeBins capability");(0,ce.ZJ)(e,s,Fe);const n=await Promise.all([r.e(4575),r.e(7136)]).then(r.bind(r,14575)),o=await i.queryAttributeBins(n.default.from(e),t);if(o.features)for(const e of o.features)e.layer=e.sourceLayer=this;return o}async queryTopObjectIds(e,t){const{source:i,capabilities:s}=await this.load();if(!i.queryTopObjectIds||!s?.query.supportsTopFeaturesQuery)throw new c.A(Fe,"Layer source does not support queryTopObjectIds capability");const n=await r.e(7561).then(r.bind(r,57561));return i.queryTopObjectIds(n.default.from(e),t)}async queryTopFeaturesExtent(e,t){const{source:i,capabilities:s}=await this.load();if(!i.queryTopExtents||!s?.query?.supportsTopFeaturesQuery)throw new c.A(Fe,"Layer source does not support queryTopExtents capability");const n=await r.e(7561).then(r.bind(r,57561));return i.queryTopExtents(n.default.from(e),t)}async queryTopFeatureCount(e,t){const{source:i,capabilities:s}=await this.load();if(!i.queryTopCount||!s?.query?.supportsTopFeaturesQuery)throw new c.A(Fe,"Layer source does not support queryFeatureCount capability");const n=await r.e(7561).then(r.bind(r,57561));return i.queryTopCount(n.default.from(e),t)}read(e,t){const r=e.featureCollection;if((r||"Feature Collection"===e.type)&&(this.resourceInfo=e),r){const e=r.layers;e&&1===e.length&&(super.read(e[0],t),null!=r.showLegend&&super.read({showLegend:r.showLegend},t))}super.read(e,t),t&&"service"===t.origin&&(this.revert(["objectIdField","fields","timeInfo","dateFieldsTimeZone"],"service"),this.spatialReference||this.revert(["spatialReference"],"service"))}write(e,t){t={...t,origin:t?.origin??void 0,writeLayerSchema:t?.writeLayerSchema??this._hasMemorySource()};const{origin:r,layerContainerType:i,messages:s}=t;if(this.dynamicDataSource)return s?.push(ke(this,"using a dynamic data source cannot be written to web scenes, web maps and feature service items")),null;if(this.isTable){if(("web-map"===r||"web-scene"===r)&&"tables"!==i)return s?.push(ke(this,`a table source can only be written to tables, not ${i}`)),null;if(this._hasMemorySource())return s?.push(ke(this,"using an in-memory table source cannot be written to web scenes and web maps")),null}else if(this.loaded&&("web-map"===r||"web-scene"===r)&&"tables"===i)return s?.push(ke(this,"using a non-table source cannot be written to tables in web maps or web scenes")),null;return super.write(e,t)}clone(){if(this._hasMemorySource())throw new c.A(Fe,`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(e){return!!this.loaded&&("memory"===this.source?.type||(0,_e.D)(this,e))}async save(e){return this._debouncedSaveOperations(Me.X.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(Me.X.SAVE_AS,t,e)}_readEditingEnabled(e,t,r){let i=e.layerDefinition?.capabilities;return i?this._hasEditingCapability(i):(i=e.capabilities,t&&"web-map"===r?.origin&&!this._hasMemorySource()&&i?this._hasEditingCapability(i):void 0)}_hasEditingCapability(e){return e.toLowerCase().split(",").map((e=>e.trim())).includes("editing")}_writeEditingEnabled(e,t,r,i){if(!e){const e=this.capabilities?.operations?.supportsSync?"Query,Sync":"Query";(0,f.sM)("layerDefinition.capabilities",e,t),r&&!i?.writeLayerSchema&&(t.capabilities=e)}}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}_fetchFirstValidLayerId(e){return(0,a.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then((e=>{const t=e.data;if(t)return this.findFirstValidLayerId(t)}))}async initLayerProperties(e){return this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),this._verifyFields(),(0,fe.yp)(this.renderer,this.fieldsIndex),(0,fe.sv)(this.timeInfo,this.fieldsIndex),this._hasMemorySource()&&"mesh"===this.geometryType&&(this.capabilities.query.supportsReturnMesh=!0),(0,Se.L)(this,{origin:"service"})}async hasDataChanged(){return(0,ce.jp)(this)}async fetchPublishingStatus(){const e=this.source;return e?.fetchPublishingStatus?e.fetchPublishingStatus():"unavailable"}_verifyFields(){const e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||this._hasMemorySource()||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some((e=>"geometry"===e.type))||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_fixTemplates(e,t){e&&e.forEach((e=>{const r=e.prototype?.attributes;r&&t&&delete r[t]}))}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new c.A("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url")}else if(!this.url)throw new c.A("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source")}_initMemorySource(e){e.forEach((e=>{e.layer=this,e.sourceLayer=this})),this.addHandles([e.on("after-add",(e=>{e.item.layer=this,e.item.sourceLayer=this})),e.on("after-remove",(e=>{e.item.layer=null,e.item.sourceLayer=null}))],"fl-source")}_resetMemorySource(e){e.forEach((e=>{e.layer=null,e.sourceLayer=null})),this.removeHandles("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}findFirstValidLayerId(e){return Array.isArray(e.layers)&&e.layers.length>0?e.layers[0].id:Array.isArray(e.tables)&&e.tables.length>0?e.tables[0].id:void 0}};(0,i._)([(0,_.MZ)(de.zQ)],je.prototype,"attributeTableTemplate",void 0),(0,i._)([(0,S.w)("service","capabilities")],je.prototype,"readCapabilities",null),(0,i._)([(0,_.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],je.prototype,"charts",void 0),(0,i._)([(0,_.MZ)({readOnly:!0})],je.prototype,"createQueryVersion",null),(0,i._)([(0,_.MZ)({json:{read:{source:"layerDefinition.copyrightText"}}})],je.prototype,"copyright",void 0),(0,i._)([(0,_.MZ)({json:{read:{source:"layerDefinition.displayField"}}})],je.prototype,"displayField",void 0),(0,i._)([(0,_.MZ)({types:l.Es,readOnly:!0})],je.prototype,"defaultSymbol",void 0),(0,i._)([(0,_.MZ)({type:ve.L})],je.prototype,"dynamicDataSource",void 0),(0,i._)([(0,_.MZ)({type:Boolean})],je.prototype,"editingEnabled",null),(0,i._)([(0,S.w)(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],je.prototype,"readEditingEnabled",null),(0,i._)([(0,S.w)("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],je.prototype,"readEditingEnabledFromWebMap",null),(0,i._)([(0,I.K)(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],je.prototype,"writeEditingEnabled",null),(0,i._)([(0,I.K)("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],je.prototype,"writeEditingEnabledToWebMap",null),(0,i._)([(0,_.MZ)({readOnly:!0})],je.prototype,"effectiveEditingEnabled",null),(0,i._)([(0,_.MZ)({...Oe.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:Ce}}}}})],je.prototype,"fields",void 0),(0,i._)([(0,_.MZ)(Oe.fieldsIndex)],je.prototype,"fieldsIndex",void 0),(0,i._)([(0,_.MZ)({type:M.A,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],je.prototype,"formTemplate",void 0),(0,i._)([(0,_.MZ)({json:{read:{source:"layerDefinition.extent"}}})],je.prototype,"fullExtent",void 0),(0,i._)([(0,_.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:Ce,writer(e,t,r){const i=e?ce.iX.toJSON(e):null;i&&(0,f.sM)(r,i,t)}}}},read:{source:"layerDefinition.geometryType",reader:ce.iX.read}}})],je.prototype,"geometryType",void 0),(0,i._)([(0,_.MZ)({json:{read:{source:"layerDefinition.hasM"}}})],je.prototype,"hasM",void 0),(0,i._)([(0,_.MZ)({json:{read:{source:"layerDefinition.hasZ"}}})],je.prototype,"hasZ",void 0),(0,i._)([(0,_.MZ)(de.id)],je.prototype,"id",void 0),(0,i._)([(0,_.MZ)({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],je.prototype,"infoFor3D",void 0),(0,i._)([(0,_.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],je.prototype,"isTable",void 0),(0,i._)([(0,S.w)("service","isTable",["type","geometryType"]),(0,S.w)("isTable",["layerDefinition.type","layerDefinition.geometryType"])],je.prototype,"readIsTable",null),(0,i._)([(0,I.K)("web-map","isTable")],je.prototype,"writeIsTable",null),(0,i._)([(0,_.MZ)(de.kF)],je.prototype,"labelsVisible",void 0),(0,i._)([(0,_.MZ)({type:[me.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:ge.w,write:!1},"web-scene":{name:"layerDefinition.drawingInfo.labelingInfo",read:ge.w,write:{enabled:!0,layerContainerTypes:A.K}}},name:"layerDefinition.drawingInfo.labelingInfo",read:ge.w,write:!0}})],je.prototype,"labelingInfo",void 0),(0,i._)([(0,_.MZ)((()=>{const e=(0,p.o8)(de.Ih);return e.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",writer(e,t,r){(0,f.sM)(r,(0,Te.p)(e),t)}}},e})())],je.prototype,"opacity",void 0),(0,i._)([(0,_.MZ)(de.fV)],je.prototype,"legendEnabled",void 0),(0,i._)([(0,_.MZ)({type:["show","hide"],json:(()=>{const e=(0,p.o8)(de.C1.json);return e.origins["portal-item"]={read:!1,write:!1},e})()})],je.prototype,"listMode",void 0),(0,i._)([(0,S.w)("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],je.prototype,"readGlobalIdField",null),(0,i._)([(0,_.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:Ce}}}}})],je.prototype,"objectIdField",void 0),(0,i._)([(0,S.w)("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],je.prototype,"readObjectIdField",null),(0,i._)([(0,_.MZ)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],je.prototype,"operationalLayerType",void 0),(0,i._)([(0,_.MZ)(Oe.outFields)],je.prototype,"outFields",void 0),(0,i._)([(0,_.MZ)({readOnly:!0})],je.prototype,"parsedUrl",null),(0,i._)([(0,_.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],je.prototype,"path",void 0),(0,i._)([(0,_.MZ)(de.M6)],je.prototype,"popupEnabled",void 0),(0,i._)([(0,_.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],je.prototype,"popupTemplate",void 0),(0,i._)([(0,_.MZ)({readOnly:!0})],je.prototype,"defaultPopupTemplate",null),(0,i._)([(0,_.MZ)({types:o.H,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:o.X,name:"layerDefinition.drawingInfo.renderer",write:{layerContainerTypes:A.K,overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema})}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema})}}})],je.prototype,"renderer",null),(0,i._)([(0,S.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,S.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],je.prototype,"readRenderer",null),(0,i._)([(0,_.MZ)()],je.prototype,"resourceInfo",void 0),(0,i._)([(0,_.MZ)((()=>{const e=(0,p.o8)(de.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],je.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,_.MZ)({clonable:!1})],je.prototype,"source",null),(0,i._)([(0,v.w)("source")],je.prototype,"castSource",null),(0,i._)([(0,S.w)("portal-item","source",["featureSet"]),(0,S.w)("web-map","source",["featureSet"])],je.prototype,"readSource",null),(0,i._)([(0,_.MZ)({json:{read:{source:"layerDefinition.extent.spatialReference"}}})],je.prototype,"spatialReference",void 0),(0,i._)([(0,_.MZ)({type:Number})],je.prototype,"subtypeCode",void 0),(0,i._)([(0,_.MZ)({type:[pe.A]})],je.prototype,"templates",void 0),(0,i._)([(0,S.w)("templates",["editFieldsInfo","creatorField","editorField","templates"])],je.prototype,"readTemplates",null),(0,i._)([(0,_.MZ)({type:we.A})],je.prototype,"timeInfo",void 0),(0,i._)([(0,_.MZ)()],je.prototype,"title",void 0),(0,i._)([(0,S.w)("service","title",["name"]),(0,S.w)("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],je.prototype,"readTitle",null),(0,i._)([(0,S.w)("web-map","title",["layerDefinition.name","title"])],je.prototype,"readTitleFromWebMap",null),(0,i._)([(0,_.MZ)({type:String})],je.prototype,"sublayerTitleMode",void 0),(0,i._)([(0,_.MZ)({json:{read:!1}})],je.prototype,"type",void 0),(0,i._)([(0,_.MZ)({type:String})],je.prototype,"typeIdField",void 0),(0,i._)([(0,S.w)("service","typeIdField"),(0,S.w)("typeIdField",["layerDefinition.typeIdField"])],je.prototype,"readTypeIdField",null),(0,i._)([(0,_.MZ)({type:[he.A]})],je.prototype,"types",void 0),(0,i._)([(0,S.w)("service","types",["types"]),(0,S.w)("types",["layerDefinition.types"])],je.prototype,"readTypes",null),(0,i._)([(0,_.MZ)({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility"}}}}})],je.prototype,"visible",void 0),(0,i._)([(0,S.w)("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],je.prototype,"readVisible",null),je=(0,i._)([(0,E.$)("esri.layers.FeatureLayer")],je);const De=je},8947:(e,t,r)=>{r.d(t,{L:()=>o});var i=r(60999),s=r(74887),n=r(67076);async function o(e,t,r){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const a=await(0,i.Ke)(o.populateFromStyle());if((0,s.Te)(r),!1===a.ok){const r=a.error;t?.messages&&t.messages.push(new n.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},96520:(e,t,r)=>{r.d(t,{u:()=>o});var i=r(83047),s=r(21325);function n(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=r)}function o(e,t,r){if(!e&&!t||!r)return;const s=(0,i.G9)(r);a(e,r,s),a(t,r,s)}function a(e,t,r){if(e)for(const i of e)l(i.geometry,t,r)}function l(e,t,r){if(!e?.spatialReference||(0,s.aI)(e.spatialReference,t))return;const o=(0,i.G9)(e.spatialReference)/r;if(1!==o)if("x"in e)null!=e.z&&(e.z*=o);else if("rings"in e)n(e,e.rings,o);else if("paths"in e)n(e,e.paths,o);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=o)}},35093:(e,t,r)=>{r.d(t,{Q:()=>i});const i=1/255.5}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3600],{9775:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(62788),s=r(95488);class n{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new s.I,this._items=new Set}get length(){return(0,i.gc)(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.gc)(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.gc)(this._observable),yield*this._items}}},10382:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(36563),s=(r(44208),r(74887)),n=r(9775),o=r(72457),a=r(52268),l=r(61322);class u{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new n.A}destroy(){this.close()}get closed(){return!this._clients?.length}open(e,t){return new Promise(((r,i)=>{let n=!0;const o=e=>{(0,s.Te)(t.signal),n&&(n=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let n=0;n<e.length;++n){const a=e[n];(0,s.$X)(a)?this._clientPromises[n]=a.then((e=>(this._clients[n]=new l.default(e,t,this._ongoingJobsQueue),o(r),this._clients[n])),(()=>(o(i),null))):(this._clients[n]=new l.default(a,t,this._ongoingJobsQueue),this._clientPromises[n]=Promise.resolve(this._clients[n]),o(r))}}))}broadcast(e,t,r){const i=new Array(this._clientPromises.length);for(let s=0;s<this._clientPromises.length;++s){const n=this._clientPromises[s];i[s]=n.then((i=>i?.invoke(e,t,r)))}return i}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,s.NK)(`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.h)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const i=(0,s.Tw)();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.L)(this,e)}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,i.vE)(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((s=>{s&&(t[i]=s.openPort()),0==--r&&e(t)}))}))}get test(){}}},72457:(e,t,r)=>{r.d(t,{h:()=>n,k:()=>s});const i=new FinalizationRegistry((e=>{e.close()}));function s(e,t){i.register(e,t,t)}function n(e){i.unregister(e)}},29953:(e,t,r)=>{r.d(t,{ho:()=>G});var i=r(49186),s=r(44208),n=r(74887),o=r(10382),a=r(72457),l=r(61322),u=r(53966),d=r(97768),c=r(78888),p=r(84952);const h={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.sC)(e.url)?.after?i:"array-buffer";const s=await(0,c.A)(e.url,r),n={data:s.data,httpStatus:s.httpStatus,ssl:s.ssl};switch(s.requestOptions?.responseType){case"native-request-init":return delete n.data.signal,n;case"blob":n.data=await n.data.arrayBuffer();break;case"json":n.data=(new TextEncoder).encode(JSON.stringify(n.data)).buffer;break;case"text":n.data=(new TextEncoder).encode(n.data).buffer}return{result:n,transferList:[n.data]}}};var y=r(8341),f=r(2741),m=r(92602),g=(r(47566),r(70333));const b={};var w=r(26390);class _{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...r)=>e[t](...r)}))}}class v{constructor(){this._dispatcher=new _,this._workerPostMessage({type:y.Go.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,w.d)((()=>{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,w.d)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,y.VI)(e);if(t&&t.type===y.Go.OPEN){const{modulePath:e,jobId:r}=t;let i=await l.default.loadWorker(e);i||(i=await import(e));const s=l.default.connect(i);this._workerPostMessage({type:y.Go.OPENED,jobId:r,data:s})}}}var S=r(73444),E=r(18357);const I=()=>u.A.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:A}=y.Go;let M,T;const F="Failed to create Worker. Fallback to execute module in main thread";async function k(e){return new Promise((t=>{function r(s){const n=(0,y.VI)(s);n&&n.type===A&&(e.removeEventListener("message",r),e.removeEventListener("error",i),t(e))}function i(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",i),I().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 P=0;const{ABORT:O,INVOKE:C,OPEN:j,OPENED:D,RESPONSE:L}=y.Go;class q{static async create(e){const t=await async function(){if(!(0,s.A)("esri-workers"))return k(new v);if(!M&&!T)try{const e='let globalId=0;const outgoing=new Map,configuration={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++;let s=null;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})})).finally((()=>{t&&t.removeEventListener("abort",s)}))}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 1:let n;function t(e){const o=n.connect(e);self.postMessage({type:2,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 3: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!=m.A.default){const t={...m.A};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(m.A));e.assetsPath=(0,p.s2)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,p.s2)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,S.JK)(),e.has={"esri-csp-restrictions":(0,s.A)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,s.A)("esri-2d-update-debug"),"esri-2d-log-updating":(0,s.A)("esri-2d-log-updating"),"featurelayer-pbf":(0,s.A)("featurelayer-pbf"),"featurelayer-fast-triangulation-enabled":(0,s.A)("featurelayer-fast-triangulation-enabled"),"featurelayer-simplify-thresholds":(0,s.A)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,s.A)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,s.A)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,s.A)("featurelayer-query-max-depth"),"featurelayer-query-pausing-enabled":(0,s.A)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-enabled":(0,s.A)("featurelayer-snapshot-enabled"),"esri-atomics":(0,s.A)("esri-atomics"),"esri-shared-array-buffer":(0,s.A)("esri-shared-array-buffer"),"esri-tiles-debug":(0,s.A)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,s.A)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,s.A)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,p.s2)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,p.s2)(e.workers.workerPath):e.workers.workerPath=(0,p.s2)((0,f.s)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=m.A.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?.slice()||[],paths:{...b.paths,...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=b.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,S.JK)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),i={buildDate:E.$,fullVersion:g.ol,revision:E.u};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:i})}());M=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){T=e||{}}let e;if(M)try{e=new Worker(M,{name:"esri-worker-"+P++})}catch(t){I().warn(F,T),e=new v}else I().warn(F,T),e=new v;return k(e)}();return new q(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(),u.A.getLogger("esri.core.workers.WorkerOwner").error(e)}))}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,i=(0,y.Jc)();return new Promise(((t,s)=>{const o={resolve:t,reject:s,abortHandle:(0,n.NY)(r,(()=>{this._outJobs.delete(i),this._post({type:O,jobId:i})}))};this._outJobs.set(i,o),this._post({type:j,jobId:i,modulePath:e})}))}_onMessage(e){const t=(0,y.VI)(e);if(t)switch(t.type){case D:this._onOpenedMessage(t);break;case L:this._onResponseMessage(t);break;case O:this._onAbortMessage(t);break;case C: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:s}=e,o=s?new AbortController:null,a=this._inJobs,l=h[t];let u;try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`);u=l.call(null,i,{signal:o?o.signal:null})}catch(e){return void this._post({type:L,jobId:r,error:(0,y.mF)(e)})}(0,n.$X)(u)?(a.set(r,{controller:o,promise:u}),u.then((e=>{a.has(r)&&(a.delete(r),this._post({type:L,jobId:r},e))}),(e=>{a.has(r)&&(a.delete(r),e||(e={message:"Error encountered at method"+t}),(0,n.zf)(e)||this._post({type:L,jobId:r,error:(0,y.mF)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:L,jobId:r},u)}_onOpenedMessage(e){const{jobId:t,data:r}=e,i=this._outJobs.get(t);i&&(this._outJobs.delete(t),(0,d.xt)(i.abortHandle),i.resolve(r))}_onResponseMessage(e){const{jobId:t,error:r,data:s}=e,n=this._outJobs.get(t);n&&(this._outJobs.delete(t),(0,d.xt)(n.abortHandle),r?n.reject(i.A.fromJSON(JSON.parse(r))):n.resolve(s))}_post(e,t,r){return(0,y.u1)(this.worker,e,t,r)}}const R=(0,s.A)("host-browser")?Math.min(navigator.hardwareConcurrency-1,(0,s.A)("workers-pool-size")??8):0;let x=(0,s.A)("esri-mobile")?Math.min(R,3):R;x||(x=(0,s.A)("safari")&&(0,s.A)("mac")?7:2);let N=0;const Z=[];async function J(e,t){const r=new o.A,{registryTarget:i,...s}=t;return await r.open(e,s),i&&(0,a.k)(i,r),r}async function G(e,t={}){if("string"!=typeof e)throw new i.A("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if((0,s.A)("host-webworker")&&!(0,s.A)("esri-workers")&&(r="local"),"local"===r){let r=await l.default.loadWorker(e);r||(r=await import(e)),(0,n.Te)(t.signal);const i=t.client||r;return J([l.default.connect(r,t.schedule)],{...t,client:i})}if(await async function(){if($)return $;V=new AbortController;const e=[];for(let t=0;t<x;t++){const r=q.create(t).then((e=>(Z[t]=e,e)));e.push(r)}return $=Promise.all(e),$}(),(0,n.Te)(t.signal),"dedicated"===r){const r=N++%x;return J([await Z[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,x);if(r<x){const i=new Array(r);for(let s=0;s<r;++s){const r=N++%x;i[s]=Z[r].open(e,t)}return J(i,t)}}return J(Z.map((r=>r.open(e,t))),t)}let V,$=null},13600:(e,t,r)=>{r.r(t),r.d(t,{default:()=>De});var i=r(90237),s=r(13874),n=(r(86162),r(52464),r(65345),r(42980),r(20917),r(92438),r(96576),r(93618),r(65494)),o=r(15036),a=r(78888),l=r(61147),u=r(69540),d=r(5503),c=r(49186),p=r(4718),h=r(53966),y=r(92071),f=r(93637),m=r(74887),g=r(39516),b=r(84952),w=r(67076),_=r(10107),v=r(79901),S=r(36005),E=r(40608),I=r(43937),A=r(89317),M=r(38141),T=r(16930),F=r(4146),k=(r(59456),r(52106)),P=r(44208),O=r(92474),C=r(61893),j=r(29953),D=r(56507),L=(r(87811),r(7695)),q=r(96520),R=r(58501),x=r(22671),N=r(5443),Z=r(39829),J=r(50498);let G=0,V=class extends(O.A.LoadableMixin(C.A.EsriPromiseMixin(d.A))){constructor(e){super(e),this._idToClientGraphic=null,this.type="memory"}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}get _workerGeometryType(){const e=this.layer?.geometryType;return e?this._geometryTypeRequiresClientGraphicMapping(e)?"polygon":e:null}applyEdits(e){return this.load().then((()=>this._applyEdits(e)))}openPorts(){return this.load().then((()=>this._connection.openPorts()))}async queryFeatures(e,t={}){await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);(0,R.q)(e,this.layer.spatialReference,r);const i=x.A.fromJSON(r);if(!this._requiresClientGraphicMapping())return i;const s=this.layer.objectIdField;for(const e of i.features){const t=e.attributes[s],r=this._idToClientGraphic.get(t);r&&(e.geometry=r.geometry)}return i.geometryType=this.layer.geometryType,i}async queryFeaturesJSON(e,t={}){if(this._requiresClientGraphicMapping())throw new c.A("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);return(0,R.q)(e,this.layer.spatialReference,r),r}queryFeatureCount(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)))}queryObjectIds(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)))}queryExtent(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryExtent",e?e.toJSON():null,t))).then((e=>({count:e.count,extent:N.A.fromJSON(e.extent)})))}querySnapping(e,t={}){return this.load(t).then((()=>this._connection.invoke("querySnapping",e,t)))}async queryAttributeBins(e,t={}){return await this.load(),this._connection.invoke("queryAttributeBins",e?.toJSON(),t)}async _applyEdits(e){if(!this._connection)throw new c.A("feature-layer-source:edit-failure","Memory source not loaded");const t=this.layer.objectIdField;let r=null;const i=[],s=[];await Promise.all([this._prepareClientMapping(e.addFeatures,null),this._prepareClientMapping(e.updateFeatures,null)]);const n=e=>"objectId"in e&&null!=e.objectId?e.objectId:"attributes"in e&&null!=e.attributes[t]?e.attributes[t]:null;if(e.addFeatures&&(r=this._prepareAddFeatures(e.addFeatures)),e.deleteFeatures)for(const t of e.deleteFeatures){const e=n(t);null!=e&&i.push(e)}const o=e.updateFeatures&&this._idToClientGraphic?new Map:null;if(e.updateFeatures)for(const t of e.updateFeatures)if(s.push(this._serializeFeature(t)),o){const e=n(t);null!=e&&o.set(e,t)}(0,q.u)(r?r.features:null,s,this.layer.spatialReference);const{fullExtent:a,featureEditResults:l}=await this._connection.invoke("applyEdits",{adds:r?r.features:[],updates:s,deletes:i});return this.fullExtent=a,r&&r.finish(l.uidToObjectId),this._updateClientGraphicIds(o,l),this._createEditsResult(l)}async _prepareClientMapping(e,t){if("mesh"!==this._layerOrSourceGeometryType||null==e)return;const r=[];for(const{geometry:i}of e)null==i||"mesh"!==i.type||i.hasExtent||i.loaded||r.push(i.load({signal:t}));r.length&&await Promise.all(r)}_updateClientGraphicIds(e,t){if(this._idToClientGraphic){if(e)for(const r of t.updateResults){if(!r.success)continue;const t=e.get(r.objectId);null!=t&&this._addIdToClientGraphic(t)}for(const e of t.deleteResults)e.success&&this._idToClientGraphic.delete(e.objectId)}}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new c.A("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_prepareAddFeatures(e){const t=new Map,r=new Array(e.length);let i=null;for(let s=0;s<e.length;s++){const n=e[s],o=this._serializeFeature(n);i||null==n.geometry||(i=n.geometry.type),r[s]=o,t.set(`${o.uid}`,n)}const s=this;return{features:r,inferredGeometryType:i,finish(e){const r=s.sourceJSON.objectIdField;for(const i in e){const n=e[i],o=t.get(i);o&&(o.attributes||(o.attributes={}),-1===n?delete o.attributes[r]:o.attributes[r]=n,s._addIdToClientGraphic(o))}}}}_addIdToClientGraphic(e){if(!this._idToClientGraphic)return;const t=this.sourceJSON.objectIdField,r=e.attributes?.[t];null!=r&&this._idToClientGraphic.set(r,e)}get _layerOrSourceGeometryType(){return this.layer?.geometryType??this.sourceJSON?.geometryType}_requiresClientGraphicMapping(){return this._geometryTypeRequiresClientGraphicMapping(this._layerOrSourceGeometryType)}_geometryRequiresClientGraphicMapping(e){return this._geometryTypeRequiresClientGraphicMapping(e.type)}_geometryTypeRequiresClientGraphicMapping(e){return"mesh"===e||"multipatch"===e||"extent"===e}_serializeFeature(e){const{attributes:t}=e,r=this._geometryForSerialization(e),i=(G++).toString();return r?{uid:i,geometry:r.toJSON(),attributes:t}:{uid:i,attributes:t}}_geometryForSerialization(e){const{geometry:t}=e;return null==t?null:this._geometryRequiresClientGraphicMapping(t)?t.extent?Z.A.fromExtent(t.extent):null:t}async _startWorker(e){this._connection=await(0,j.ho)("MemorySourceWorker",{strategy:(0,P.A)("feature-layers-workers")?"dedicated":"local",signal:e,registryTarget:this});const{fields:t,spatialReference:r,objectIdField:i,hasM:s,hasZ:n,timeInfo:o,dateFieldsTimeZone:a}=this.layer,l="defaults"===this.layer.originOf("spatialReference");await this._prepareClientMapping(this.items,e);const u=this._prepareAddFeatures(this.items);this.addHandles(this.on("before-changes",(e=>{h.A.getLogger(this).error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead"),e.preventDefault()})));const d={features:u.features,fields:t?.map((e=>e.toJSON())),geometryType:J.Y.toJSON(this._workerGeometryType),hasM:"mesh"!==this._layerOrSourceGeometryType&&s,hasZ:"mesh"===this._layerOrSourceGeometryType||n,objectIdField:i,spatialReference:l?null:r&&r.toJSON(),timeInfo:o?.toJSON()??null,dateFieldsTimeZone:a},c=await this._connection.invoke("load",d,{signal:e});for(const e of c.warnings)h.A.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});c.featureErrors.length&&h.A.getLogger(this.layer).warn("#load()",`Encountered ${c.featureErrors.length} validation errors while loading features. (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{errors:c.featureErrors});const p=c.layerDefinition;this._geometryTypeRequiresClientGraphicMapping(u.inferredGeometryType)&&(p.geometryType=J.Y.toJSON(u.inferredGeometryType)),this.sourceJSON=p,this._requiresClientGraphicMapping()&&(this._idToClientGraphic=new Map),u.finish(c.assignedObjectIds)}};(0,i._)([(0,L.u)({Type:k.A,ensureType:(0,D.dp)(k.A)})],V.prototype,"itemType",void 0),(0,i._)([(0,_.MZ)()],V.prototype,"type",void 0),(0,i._)([(0,_.MZ)({constructOnly:!0})],V.prototype,"layer",void 0),(0,i._)([(0,_.MZ)({readOnly:!0})],V.prototype,"_workerGeometryType",null),(0,i._)([(0,_.MZ)()],V.prototype,"sourceJSON",void 0),V=(0,i._)([(0,E.$)("esri.layers.graphics.sources.MemorySource")],V);var $=r(52136),H=r(18768),W=r(63074),U=r(69208),Q=r(47685),z=r(87718),K=r(87796),B=r(76294),X=r(16131),Y=r(32756),ee=r(8303),te=r(69622);let re=class extends te.A{constructor(){super(...arguments),this.updating=!1,this.status="unknown"}};(0,i._)([(0,_.MZ)()],re.prototype,"updating",void 0),(0,i._)([(0,_.MZ)()],re.prototype,"status",void 0),re=(0,i._)([(0,E.$)("esri.layers.support.PublishingInfo")],re);const ie=re,se=Symbol(),ne=e=>{var t;let r=class extends e{constructor(){super(...arguments),this[t]=!0}get publishingInfo(){if(this.destroyed)return null;const e=this._get("publishingInfo");if(e)return e;const t=new ie;return this._checkPublishingStatus(t),t}_checkPublishingStatus(e){let t=0;const r=async s=>{let n;e.updating=!0;try{n=await this.fetchPublishingStatus()}catch(e){n="unavailable"}"published"!==n&&"unavailable"!==n||("publishing"===e.status&&this.refresh(),i.remove()),e.status=n,e.updating=!1,i.removed||(t=setTimeout(r,s,s+125))},i={removed:!1,remove(){this.removed=!0,clearTimeout(t)}};this.when().catch((()=>i.remove())),r(250),this.addHandles(i)}};return t=se,(0,i._)([(0,_.MZ)({readOnly:!0,clonable:!1})],r.prototype,"publishingInfo",null),r=(0,i._)([(0,E.$)("esri.layers.mixins.PublishableLayer")],r),r};var oe=r(54310),ae=r(25036),le=r(82935),ue=r(60694),de=r(10873),ce=r(15426),pe=r(29005),he=r(33143),ye=r(17036),fe=r(30524),me=r(81457),ge=r(39383),be=r(22453),we=r(96184),_e=r(91908),ve=r(27733),Se=r(8947),Ee=r(61956),Ie=r(30291),Ae=r(35093),Me=r(92935),Te=r(78553);const Fe="FeatureLayer";function ke(e,t){return new c.A("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}function Pe(e){return e&&e instanceof d.A}const Oe=(0,ye.p)();function Ce(e,t,r){const i=!!r?.writeLayerSchema;return{enabled:i,ignoreOrigin:i}}let je=class extends((0,K.j)((0,B.J)((0,z.F)(ne((0,Q.w6)((0,W.dM)((0,Y.fY)((0,le.e)((0,ae.j)((0,oe.J)((0,H.b)((0,X.q)((0,ee.A)((0,y.P)((0,U.d)((0,$.p)(u.A.ClonableMixin(F.A)))))))))))))))))){constructor(...e){super(...e),this.attributeTableTemplate=null,this.charts=null,this.copyright=null,this.displayField=null,this.dynamicDataSource=null,this.fields=null,this.fieldsIndex=null,this.formTemplate=null,this.fullExtent=null,this.geometryType=null,this.hasM=void 0,this.hasZ=void 0,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.resourceInfo=null,this.screenSizePerspectiveEnabled=!0,this.spatialReference=T.A.WGS84,this.subtypeCode=null,this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.templates=null,this.timeInfo=null,this.title=null,this.sublayerTitleMode="item-title",this.type="feature",this.typeIdField=null,this.types=null,this.visible=!0,this._debouncedSaveOperations=(0,m.sg)((async(e,t,i)=>{const{save:s,saveAs:n}=await r.e(3359).then(r.bind(r,33359));switch(e){case Me.X.SAVE:return s(this,t);case Me.X.SAVE_AS:return n(this,i,t)}}))}destroy(){this.source?.destroy()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;if(this.portalItem?.loaded&&this.source)return this.addResolvingPromise(this.createGraphicsSource(t).then((e=>this.initLayerProperties(e)))),Promise.resolve(this);const r=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Scene Service"]},e).catch(m.QP).then((async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url&&!this._hasMemorySource())throw new c.A("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return this.initLayerProperties(await this.createGraphicsSource(t))})).then((()=>(0,ce.VA)(this,"load",e)));return this.addResolvingPromise(r),Promise.resolve(this)}warnInvisibleDrapedSymbols(){"on-the-ground"===this.elevationInfo?.mode&&"simple"===this.renderer?.type&&"polygon-3d"===this.renderer.symbol?.type&&this.renderer.symbol.symbolLayers.some((e=>"fill"===e.type&&null!=e.material&&(!e.material.color||e.material.color.a*this.opacity<Ae.Q)&&(this.loadWarnings.push(new w.A("feature-layer:invisible-draped-symbols","FeatureLayer has fully transparent symbols which will no longer render or highlight",{layer:this})),!0)))}readCapabilities(e,t){return t=t.layerDefinition||t,(0,be.S)(t,this.url)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return!(this.loaded&&!this.capabilities?.operations.supportsEditing)&&(this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}readEditingEnabled(e,t){return this._readEditingEnabled(t,!1)}readEditingEnabledFromWebMap(e,t,r){return this._readEditingEnabled(t,!0,r)}writeEditingEnabled(e,t){this._writeEditingEnabled(e,t,!1)}writeEditingEnabledToWebMap(e,t,r,i){this._writeEditingEnabled(e,t,!0,i)}get effectiveEditingEnabled(){return(0,ce.C$)(this)}readIsTable(e,t){return"Table"===(t=t?.layerDefinition??t).type||!t.geometryType}writeIsTable(e,t,r,i){i?.writeLayerSchema&&(0,f.sM)(r,e?"Table":"Feature Layer",t)}readGlobalIdField(e,t){return(0,ce.jD)(t.layerDefinition||t)}readObjectIdField(e,t){return(0,ce.Zm)(t.layerDefinition||t)}get parsedUrl(){const e=(0,b.An)(this.url);return null!=e&&(null!=this.dynamicDataSource?e.path=(0,b.fj)(e.path,"dynamicLayer"):null!=this.layerId&&(e.path=(0,b.fj)(e.path,this.layerId.toString()))),e}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,fe.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,r){t=t.layerDefinition||t;const i=t.drawingInfo?.renderer;if(i){const e=(0,n.L)(i,t,r)??void 0;return e||h.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:r}),e}return(0,ce.PD)(t,r)}set source(e){const t=this._get("source");t!==e&&(Pe(t)&&this._resetMemorySource(t),Pe(e)&&this._initMemorySource(e),this._set("source",e))}castSource(e){return e?Array.isArray(e)||e instanceof d.A?new V({layer:this,items:e}):e:null}readSource(e,t){const r=x.A.fromJSON(t.featureSet);return new V({layer:this,items:r?.features??[]})}readTemplates(e,t){const r=t.editFieldsInfo,i=r?.creatorField,s=r?.editorField;return e=e?.map((e=>pe.A.fromJSON(e))),this._fixTemplates(e,i),this._fixTemplates(e,s),e}readTitle(e,t){const r=t.layerDefinition?.name??t.name,i=t.title||t.layerDefinition?.title;if(r){const e=this.portalItem?.title;if("item-title"===this.sublayerTitleMode)return this.url?(0,ue.yG)(this.url,r):r;let t=r;if(!t&&this.url){const e=(0,ue.qg)(this.url);null!=e&&(t=e.title)}if(!t)return;return"item-title-and-service-name"===this.sublayerTitleMode&&e&&e!==t&&(t=e+" - "+t),(0,ue.cr)(t)}if("item-title"===this.sublayerTitleMode&&i)return i}readTitleFromWebMap(e,t){return t.title||t.layerDefinition?.name}readTypeIdField(e,t){let r=(t=t.layerDefinition||t).typeIdField;if(r&&t.fields){r=r.toLowerCase();const e=t.fields.find((e=>e.name.toLowerCase()===r));e&&(r=e.name)}return r}readTypes(e,t){e=(t=t.layerDefinition||t).types;const r=t.editFieldsInfo,i=r?.creatorField,s=r?.editorField;return e?.map((e=>(e=he.A.fromJSON(e),this._fixTemplates(e.templates,i),this._fixTemplates(e.templates,s),e)))}readVisible(e,t){return null!=t.layerDefinition?.defaultVisibility?!!t.layerDefinition.defaultVisibility:null!=t.visibility?!!t.visibility:void 0}async addAttachment(e,t){const r=await(0,ce.Xl)(this,e,t,Fe);return this.lastEditsEventDate=new Date,r}async updateAttachment(e,t,r){const i=await(0,ce.bt)(this,e,t,r,Fe);return this.lastEditsEventDate=new Date,i}async applyEdits(e,t){return(0,ce.ct)(this,e,t)}async uploadAssets(e,t){return(0,ce.rn)(this,e,t)}on(e,t){return super.on(e,t)}createPopupTemplate(e){return(0,Ie.tn)(this,e)}async createGraphicsSource(e){if(this._hasMemorySource()&&this.source)return this.source.load({signal:e});const{default:t}=await(0,m.qr)(Promise.all([r.e(893),r.e(2593)]).then(r.bind(r,72593)),e);return new t({layer:this,supportedSourceTypes:this.supportedSourceTypes}).load({signal:e})}createQuery(){const e=(0,ce.VZ)(this);e.dynamicDataSource=this.dynamicDataSource;const t=null!=this.subtypeCode?`${this.subtypeField} = ${this.subtypeCode}`:null,r=(0,g.m)(this.definitionExpression,t);return e.where=r||"1=1",e}async deleteAttachments(e,t){const r=await(0,ce.mm)(this,e,t,Fe);return this.lastEditsEventDate=new Date,r}async fetchRecomputedExtents(e){return(0,ce.WP)(this,e,Fe)}getFeatureType(e){return(0,ce.xd)(this.types,this.typeIdField,e)}getFieldDomain(e,t){const r=t?.feature,i=!!this.subtypes?.length;if(i&&!t?.excludeImpliedDomains){const t=(0,ce.pc)(this,e);if(t)return t}const s=i&&(0,ce.Nv)(this,r);if(s){const t=s?.domains?.[e];return"inherited"===t?.type?this._getLayerDomain(e):t}const n=this.getFeatureType(r),o=this._getLayerDomain(e);if(n){const t=n.domains&&n.domains[e];if(t&&"inherited"!==t?.type)return t}if(o)return o;if(!t?.excludeImpliedDomains){const t=(0,ce.hx)(this,e);if(t)return t}return null}getField(e){return this.fieldsIndex.get(e)}async queryAttachments(e,t){return(0,ce.lV)(this,e,t,Fe)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(Ee.A.from(e)??r.createQuery(),t);if(i?.features)for(const e of i.features)e.layer=e.sourceLayer=r;return i}async queryObjectIds(e,t){return(0,ce.sg)(this,e,t,Fe)}async queryFeatureCount(e,t){return(0,ce.Ye)(this,e,t,Fe)}async queryExtent(e,t){return(0,ce.B5)(this,e,t,Fe)}async queryRelatedFeatures(e,t){return(0,ce.hM)(this,e,t,Fe)}async queryRelatedFeaturesCount(e,t){return(0,ce.S2)(this,e,t,Fe)}async queryTopFeatures(e,t){const{source:i,capabilities:s}=await this.load();if(!i.queryTopFeatures||!s?.query?.supportsTopFeaturesQuery)throw new c.A(Fe,"Layer source does not support queryTopFeatures capability");const n=await r.e(7561).then(r.bind(r,57561)),o=await i.queryTopFeatures(n.default.from(e),t);if(o?.features)for(const e of o.features)e.layer=e.sourceLayer=this;return o}async queryAttributeBins(e,t){const{source:i,capabilities:s}=await this.load();if(!i.queryAttributeBins||!s?.operations?.supportsQueryBins)throw new c.A(Fe,"Layer source does not support queryAttributeBins capability");(0,ce.ZJ)(e,s,Fe);const n=await Promise.all([r.e(4575),r.e(7136)]).then(r.bind(r,14575)),o=await i.queryAttributeBins(n.default.from(e),t);if(o.features)for(const e of o.features)e.layer=e.sourceLayer=this;return o}async queryTopObjectIds(e,t){const{source:i,capabilities:s}=await this.load();if(!i.queryTopObjectIds||!s?.query.supportsTopFeaturesQuery)throw new c.A(Fe,"Layer source does not support queryTopObjectIds capability");const n=await r.e(7561).then(r.bind(r,57561));return i.queryTopObjectIds(n.default.from(e),t)}async queryTopFeaturesExtent(e,t){const{source:i,capabilities:s}=await this.load();if(!i.queryTopExtents||!s?.query?.supportsTopFeaturesQuery)throw new c.A(Fe,"Layer source does not support queryTopExtents capability");const n=await r.e(7561).then(r.bind(r,57561));return i.queryTopExtents(n.default.from(e),t)}async queryTopFeatureCount(e,t){const{source:i,capabilities:s}=await this.load();if(!i.queryTopCount||!s?.query?.supportsTopFeaturesQuery)throw new c.A(Fe,"Layer source does not support queryFeatureCount capability");const n=await r.e(7561).then(r.bind(r,57561));return i.queryTopCount(n.default.from(e),t)}read(e,t){const r=e.featureCollection;if((r||"Feature Collection"===e.type)&&(this.resourceInfo=e),r){const e=r.layers;e&&1===e.length&&(super.read(e[0],t),null!=r.showLegend&&super.read({showLegend:r.showLegend},t))}super.read(e,t),t&&"service"===t.origin&&(this.revert(["objectIdField","fields","timeInfo","dateFieldsTimeZone"],"service"),this.spatialReference||this.revert(["spatialReference"],"service"))}write(e,t){t={...t,origin:t?.origin??void 0,writeLayerSchema:t?.writeLayerSchema??this._hasMemorySource()};const{origin:r,layerContainerType:i,messages:s}=t;if(this.dynamicDataSource)return s?.push(ke(this,"using a dynamic data source cannot be written to web scenes, web maps and feature service items")),null;if(this.isTable){if(("web-map"===r||"web-scene"===r)&&"tables"!==i)return s?.push(ke(this,`a table source can only be written to tables, not ${i}`)),null;if(this._hasMemorySource())return s?.push(ke(this,"using an in-memory table source cannot be written to web scenes and web maps")),null}else if(this.loaded&&("web-map"===r||"web-scene"===r)&&"tables"===i)return s?.push(ke(this,"using a non-table source cannot be written to tables in web maps or web scenes")),null;return super.write(e,t)}clone(){if(this._hasMemorySource())throw new c.A(Fe,`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(e){return!!this.loaded&&("memory"===this.source?.type||(0,_e.D)(this,e))}async save(e){return this._debouncedSaveOperations(Me.X.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(Me.X.SAVE_AS,t,e)}_readEditingEnabled(e,t,r){let i=e.layerDefinition?.capabilities;return i?this._hasEditingCapability(i):(i=e.capabilities,t&&"web-map"===r?.origin&&!this._hasMemorySource()&&i?this._hasEditingCapability(i):void 0)}_hasEditingCapability(e){return e.toLowerCase().split(",").map((e=>e.trim())).includes("editing")}_writeEditingEnabled(e,t,r,i){if(!e){const e=this.capabilities?.operations?.supportsSync?"Query,Sync":"Query";(0,f.sM)("layerDefinition.capabilities",e,t),r&&!i?.writeLayerSchema&&(t.capabilities=e)}}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}_fetchFirstValidLayerId(e){return(0,a.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then((e=>{const t=e.data;if(t)return this.findFirstValidLayerId(t)}))}async initLayerProperties(e){return this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),this._verifyFields(),(0,fe.yp)(this.renderer,this.fieldsIndex),(0,fe.sv)(this.timeInfo,this.fieldsIndex),this._hasMemorySource()&&"mesh"===this.geometryType&&(this.capabilities.query.supportsReturnMesh=!0),(0,Se.L)(this,{origin:"service"})}async hasDataChanged(){return(0,ce.jp)(this)}async fetchPublishingStatus(){const e=this.source;return e?.fetchPublishingStatus?e.fetchPublishingStatus():"unavailable"}_verifyFields(){const e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||this._hasMemorySource()||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some((e=>"geometry"===e.type))||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_fixTemplates(e,t){e&&e.forEach((e=>{const r=e.prototype?.attributes;r&&t&&delete r[t]}))}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new c.A("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url")}else if(!this.url)throw new c.A("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source")}_initMemorySource(e){e.forEach((e=>{e.layer=this,e.sourceLayer=this})),this.addHandles([e.on("after-add",(e=>{e.item.layer=this,e.item.sourceLayer=this})),e.on("after-remove",(e=>{e.item.layer=null,e.item.sourceLayer=null}))],"fl-source")}_resetMemorySource(e){e.forEach((e=>{e.layer=null,e.sourceLayer=null})),this.removeHandles("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}findFirstValidLayerId(e){return Array.isArray(e.layers)&&e.layers.length>0?e.layers[0].id:Array.isArray(e.tables)&&e.tables.length>0?e.tables[0].id:void 0}};(0,i._)([(0,_.MZ)(de.zQ)],je.prototype,"attributeTableTemplate",void 0),(0,i._)([(0,S.w)("service","capabilities")],je.prototype,"readCapabilities",null),(0,i._)([(0,_.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],je.prototype,"charts",void 0),(0,i._)([(0,_.MZ)({readOnly:!0})],je.prototype,"createQueryVersion",null),(0,i._)([(0,_.MZ)({json:{read:{source:"layerDefinition.copyrightText"}}})],je.prototype,"copyright",void 0),(0,i._)([(0,_.MZ)({json:{read:{source:"layerDefinition.displayField"}}})],je.prototype,"displayField",void 0),(0,i._)([(0,_.MZ)({types:l.Es,readOnly:!0})],je.prototype,"defaultSymbol",void 0),(0,i._)([(0,_.MZ)({type:ve.L})],je.prototype,"dynamicDataSource",void 0),(0,i._)([(0,_.MZ)({type:Boolean})],je.prototype,"editingEnabled",null),(0,i._)([(0,S.w)(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],je.prototype,"readEditingEnabled",null),(0,i._)([(0,S.w)("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],je.prototype,"readEditingEnabledFromWebMap",null),(0,i._)([(0,I.K)(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],je.prototype,"writeEditingEnabled",null),(0,i._)([(0,I.K)("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],je.prototype,"writeEditingEnabledToWebMap",null),(0,i._)([(0,_.MZ)({readOnly:!0})],je.prototype,"effectiveEditingEnabled",null),(0,i._)([(0,_.MZ)({...Oe.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:Ce}}}}})],je.prototype,"fields",void 0),(0,i._)([(0,_.MZ)(Oe.fieldsIndex)],je.prototype,"fieldsIndex",void 0),(0,i._)([(0,_.MZ)({type:M.A,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],je.prototype,"formTemplate",void 0),(0,i._)([(0,_.MZ)({json:{read:{source:"layerDefinition.extent"}}})],je.prototype,"fullExtent",void 0),(0,i._)([(0,_.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:Ce,writer(e,t,r){const i=e?ce.iX.toJSON(e):null;i&&(0,f.sM)(r,i,t)}}}},read:{source:"layerDefinition.geometryType",reader:ce.iX.read}}})],je.prototype,"geometryType",void 0),(0,i._)([(0,_.MZ)({json:{read:{source:"layerDefinition.hasM"}}})],je.prototype,"hasM",void 0),(0,i._)([(0,_.MZ)({json:{read:{source:"layerDefinition.hasZ"}}})],je.prototype,"hasZ",void 0),(0,i._)([(0,_.MZ)(de.id)],je.prototype,"id",void 0),(0,i._)([(0,_.MZ)({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],je.prototype,"infoFor3D",void 0),(0,i._)([(0,_.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],je.prototype,"isTable",void 0),(0,i._)([(0,S.w)("service","isTable",["type","geometryType"]),(0,S.w)("isTable",["layerDefinition.type","layerDefinition.geometryType"])],je.prototype,"readIsTable",null),(0,i._)([(0,I.K)("web-map","isTable")],je.prototype,"writeIsTable",null),(0,i._)([(0,_.MZ)(de.kF)],je.prototype,"labelsVisible",void 0),(0,i._)([(0,_.MZ)({type:[me.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:ge.w,write:!1},"web-scene":{name:"layerDefinition.drawingInfo.labelingInfo",read:ge.w,write:{enabled:!0,layerContainerTypes:A.K}}},name:"layerDefinition.drawingInfo.labelingInfo",read:ge.w,write:!0}})],je.prototype,"labelingInfo",void 0),(0,i._)([(0,_.MZ)((()=>{const e=(0,p.o8)(de.Ih);return e.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",writer(e,t,r){(0,f.sM)(r,(0,Te.p)(e),t)}}},e})())],je.prototype,"opacity",void 0),(0,i._)([(0,_.MZ)(de.fV)],je.prototype,"legendEnabled",void 0),(0,i._)([(0,_.MZ)({type:["show","hide"],json:(()=>{const e=(0,p.o8)(de.C1.json);return e.origins["portal-item"]={read:!1,write:!1},e})()})],je.prototype,"listMode",void 0),(0,i._)([(0,S.w)("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],je.prototype,"readGlobalIdField",null),(0,i._)([(0,_.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:Ce}}}}})],je.prototype,"objectIdField",void 0),(0,i._)([(0,S.w)("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],je.prototype,"readObjectIdField",null),(0,i._)([(0,_.MZ)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],je.prototype,"operationalLayerType",void 0),(0,i._)([(0,_.MZ)(Oe.outFields)],je.prototype,"outFields",void 0),(0,i._)([(0,_.MZ)({readOnly:!0})],je.prototype,"parsedUrl",null),(0,i._)([(0,_.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],je.prototype,"path",void 0),(0,i._)([(0,_.MZ)(de.M6)],je.prototype,"popupEnabled",void 0),(0,i._)([(0,_.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],je.prototype,"popupTemplate",void 0),(0,i._)([(0,_.MZ)({readOnly:!0})],je.prototype,"defaultPopupTemplate",null),(0,i._)([(0,_.MZ)({types:o.H,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:o.X,name:"layerDefinition.drawingInfo.renderer",write:{layerContainerTypes:A.K,overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema})}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema})}}})],je.prototype,"renderer",null),(0,i._)([(0,S.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,S.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],je.prototype,"readRenderer",null),(0,i._)([(0,_.MZ)()],je.prototype,"resourceInfo",void 0),(0,i._)([(0,_.MZ)((()=>{const e=(0,p.o8)(de.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],je.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,_.MZ)({clonable:!1})],je.prototype,"source",null),(0,i._)([(0,v.w)("source")],je.prototype,"castSource",null),(0,i._)([(0,S.w)("portal-item","source",["featureSet"]),(0,S.w)("web-map","source",["featureSet"])],je.prototype,"readSource",null),(0,i._)([(0,_.MZ)({json:{read:{source:"layerDefinition.extent.spatialReference"}}})],je.prototype,"spatialReference",void 0),(0,i._)([(0,_.MZ)({type:Number})],je.prototype,"subtypeCode",void 0),(0,i._)([(0,_.MZ)({type:[pe.A]})],je.prototype,"templates",void 0),(0,i._)([(0,S.w)("templates",["editFieldsInfo","creatorField","editorField","templates"])],je.prototype,"readTemplates",null),(0,i._)([(0,_.MZ)({type:we.A})],je.prototype,"timeInfo",void 0),(0,i._)([(0,_.MZ)()],je.prototype,"title",void 0),(0,i._)([(0,S.w)("service","title",["name"]),(0,S.w)("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],je.prototype,"readTitle",null),(0,i._)([(0,S.w)("web-map","title",["layerDefinition.name","title"])],je.prototype,"readTitleFromWebMap",null),(0,i._)([(0,_.MZ)({type:String})],je.prototype,"sublayerTitleMode",void 0),(0,i._)([(0,_.MZ)({json:{read:!1}})],je.prototype,"type",void 0),(0,i._)([(0,_.MZ)({type:String})],je.prototype,"typeIdField",void 0),(0,i._)([(0,S.w)("service","typeIdField"),(0,S.w)("typeIdField",["layerDefinition.typeIdField"])],je.prototype,"readTypeIdField",null),(0,i._)([(0,_.MZ)({type:[he.A]})],je.prototype,"types",void 0),(0,i._)([(0,S.w)("service","types",["types"]),(0,S.w)("types",["layerDefinition.types"])],je.prototype,"readTypes",null),(0,i._)([(0,_.MZ)({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility"}}}}})],je.prototype,"visible",void 0),(0,i._)([(0,S.w)("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],je.prototype,"readVisible",null),je=(0,i._)([(0,E.$)("esri.layers.FeatureLayer")],je);const De=je},8947:(e,t,r)=>{r.d(t,{L:()=>o});var i=r(60999),s=r(74887),n=r(67076);async function o(e,t,r){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const a=await(0,i.Ke)(o.populateFromStyle());if((0,s.Te)(r),!1===a.ok){const r=a.error;t?.messages&&t.messages.push(new n.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},96520:(e,t,r)=>{r.d(t,{u:()=>o});var i=r(83047),s=r(21325);function n(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=r)}function o(e,t,r){if(!e&&!t||!r)return;const s=(0,i.G9)(r);a(e,r,s),a(t,r,s)}function a(e,t,r){if(e)for(const i of e)l(i.geometry,t,r)}function l(e,t,r){if(!e?.spatialReference||(0,s.aI)(e.spatialReference,t))return;const o=(0,i.G9)(e.spatialReference)/r;if(1!==o)if("x"in e)null!=e.z&&(e.z*=o);else if("rings"in e)n(e,e.rings,o);else if("paths"in e)n(e,e.paths,o);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=o)}},35093:(e,t,r)=>{r.d(t,{Q:()=>i});const i=1/255.5}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3874],{13874:(t,e,i)=>{i.d(e,{A:()=>it});var o=i(90237),s=i(69540),r=i(5503),n=i(25482),p=i(4718),l=i(53966),a=i(74887),d=i(10107),c=i(79901),y=i(36005),u=i(40608),h=i(43937),f=i(56507),v=i(30524),_=i(28122),m=i(84424),w=i(80737),A=i(96808),x=i(66159),M=i(67336),I=i(92094),Z=i(23721),g=i(70696);const j={base:null,key:"type",typeMap:{attachment:_.A,media:M.A,text:Z.A,expression:A.A,field:x.A,relationship:I.A,utilityNetworkAssociations:g.A}},F={base:null,key:"type",typeMap:{attachment:_.A,media:M.A,text:Z.A,expression:A.A,field:x.A,relationship:I.A}};var b,N=i(93705),R=i(41227);i(44208),i(87811);let S=b=class extends n.A{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new b({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,o._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"returnTopmostRaster",void 0),(0,o._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"showNoDataRecords",void 0),S=b=(0,o._)([(0,u.$)("esri.popup.LayerOptions")],S);const C=S;var T,O=i(49852);let $=T=class extends n.A{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new T({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,p.o8)(this.orderByFields):null})}};(0,o._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],$.prototype,"showRelatedRecords",void 0),(0,o._)([(0,d.MZ)({type:[O.A],json:{write:!0}})],$.prototype,"orderByFields",void 0),$=T=(0,o._)([(0,u.$)("esri.popup.RelatedRecordsInfo")],$);const E=$;var B,k=i(58280),J=i(69622),q=i(4902);let L=B=class extends(q.A.IdentifiableMixin(J.A)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new B({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,o._)([(0,d.MZ)()],L.prototype,"active",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"className",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"disabled",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"icon",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"id",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"indicator",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"title",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"type",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"visible",void 0),L=B=(0,o._)([(0,u.$)("esri.support.actions.ActionBase")],L);const U=L;var z;let P=z=class extends U{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new z({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,o._)([(0,d.MZ)()],P.prototype,"image",void 0),P=z=(0,o._)([(0,u.$)("esri.support.actions.ActionButton")],P);const K=P;var W;let D=W=class extends U{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new W({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,o._)([(0,d.MZ)()],D.prototype,"image",void 0),(0,o._)([(0,d.MZ)()],D.prototype,"value",void 0),D=W=(0,o._)([(0,u.$)("esri.support.actions.ActionToggle")],D);const V=D,G="relationships/",H="expression/",X=r.A.ofType({key:"type",defaultKeyValue:"button",base:U,typeMap:{button:K,toggle:V}}),Q={base:m.A,key:"type",typeMap:{media:M.A,custom:w.A,text:Z.A,attachments:_.A,fields:x.A,expression:A.A,relationship:I.A,utilityNetworkAssociations:g.A}},Y=new Set(["attachments","fields","media","text","expression","relationship"]),tt=new Set([...Y,"utility-network-associations"]);let et=class extends(s.A.ClonableMixin(n.A)){constructor(){super(...arguments),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map((t=>(0,f.aq)(Q,t))):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,a.$X)(t)?t:(l.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:i}=e;return Array.isArray(i)&&i.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,i):this._readPopupInfo(e)}writeWebSceneContent(t,e,i,o){this._writePopupTemplateContent(t,e,o)}writeWebMapContent(t,e,i,o){this._writePopupTemplateContent(t,e,o)}writeFieldInfos(t,e,i,o){const{content:s}=this,r=Array.isArray(s)?s:null;if(t){const i=r?r.filter((t=>"fields"===t.type)):[],s=i.length&&i.every((t=>t.fieldInfos?.length));e.fieldInfos=t.filter(Boolean).map((t=>{const e=t.toJSON(o);return s&&(e.visible=!1),e}))}if(r)for(const t of r)"fields"===t.type&&this._writeFieldsContent(t,e)}writeLayerOptions(t,e,i,o){e[i]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(o)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e){const i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,v._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t){const e=new Set;return await this.collectRequiredFields(e,t),[...e].sort()}_writePopupTemplateContent(t,e,i){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter((t=>"web-scene"===i?.origin?Y.has(t.type):tt.has(t.type))).map((t=>t?.toJSON(i))),e.popupElements.forEach((t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)}))):e.description=t}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const i=(0,p.o8)(t.fieldInfos);Array.isArray(e.fieldInfos)?i.forEach((t=>{const i=e.fieldInfos.find((e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase()));i?i.visible=!0:e.fieldInfos.push(t)})):e.fieldInfos=i}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const i=t.orderByFields?.map((e=>this._toFieldOrderJSON(e,t.relationshipId)))||[],o=[...e.relatedRecordsInfo?.orderByFields||[],...i];e.relatedRecordsInfo={showRelatedRecords:!0,...o?.length&&{orderByFields:o}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const i=(0,p.o8)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...i]:e.mediaInfos=i}_readPopupInfoElements(t,e,i){const o={description:!1,mediaInfos:!1};return i.map((i=>"media"===i.type?(i.mediaInfos||!e||o.mediaInfos||(i.mediaInfos=e,o.mediaInfos=!0),M.A.fromJSON(i)):"text"===i.type?(i.text||!t||o.description||(i.text=t,o.description=!0),Z.A.fromJSON(i)):"attachments"===i.type?_.A.fromJSON(i):"fields"===i.type?x.A.fromJSON(i):"expression"===i.type?A.A.fromJSON(i):"relationship"===i.type?I.A.fromJSON(i):"utilityNetworkAssociations"===i.type?g.A.fromJSON(i):void 0)).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:i}=t;if(!e?.startsWith(G))return null;const o=e.replace(G,"").split("/");if(2!==o.length)return null;const s=parseInt(o[0],10),r=o[1];return"number"==typeof s&&r?I.A.fromJSON({relationshipId:s,orderByFields:[{field:r,order:i}]}):null}_toFieldOrderJSON(t,e){const{order:i,field:o}=t;return{field:`${G}${e}/${o}`,order:i}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:i,relatedRecordsInfo:o={showRelatedRecords:!1}}){const s=[];t?s.push(new Z.A({text:t})):s.push(new x.A),Array.isArray(e)&&e.length&&s.push(M.A.fromJSON({mediaInfos:e})),i&&s.push(_.A.fromJSON({displayType:"auto"}));const{showRelatedRecords:r,orderByFields:n}=o;return r&&n?.length&&n.forEach((t=>{const e=this._toRelationshipContent(t);e&&s.push(e)})),s.length?s:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce(((t,e)=>[...t,...this._getMediaInfoFields(e)]),[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){const{caption:e,title:i,value:o}=t,s=o||{},{fields:r,normalizeField:n,tooltipField:p,sourceURL:l,linkURL:a}=s,d=[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(a),...r??[]];return n&&d.push(n),p&&d.push(p),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce(((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]]),e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce(((t,e)=>[...t,...this._getContentElementFields(e)]),[]):[]}async _collectExpressionInfoFields(t,e,i){i&&await Promise.all(i.map((i=>(0,v.Dx)(t,e,i.expression))))}_getFieldInfoFields(t){return t?t.filter((({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(G)||t.startsWith(H)))).map((t=>t.fieldName)):[]}_getActionsFields(t){return t?t.toArray().reduce(((t,e)=>[...t,...this._getActionFields(e)]),[]):[]}_getActionFields(t){const{className:e,title:i,type:o}=t,s="button"===o||"toggle"===o?t.image:"";return[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(s)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,v.nw)(t).filter((t=>!(0===t.indexOf(G)||0===t.indexOf(H))))}};(0,o._)([(0,d.MZ)({type:X})],et.prototype,"actions",void 0),(0,o._)([(0,d.MZ)()],et.prototype,"content",void 0),(0,o._)([(0,c.w)("content")],et.prototype,"castContent",null),(0,o._)([(0,y.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],et.prototype,"readContent",null),(0,o._)([(0,h.K)("web-scene","content",{popupElements:{type:r.A.ofType(F)},showAttachments:{type:Boolean},mediaInfos:{type:r.A.ofType(k.g)},description:{type:String},relatedRecordsInfo:{type:E}})],et.prototype,"writeWebSceneContent",null),(0,o._)([(0,h.K)("content",{popupElements:{type:r.A.ofType(j)},showAttachments:{type:Boolean},mediaInfos:{type:r.A.ofType(k.g)},description:{type:String},relatedRecordsInfo:{type:E}})],et.prototype,"writeWebMapContent",null),(0,o._)([(0,d.MZ)({type:[N.A],json:{write:!0}})],et.prototype,"expressionInfos",void 0),(0,o._)([(0,d.MZ)({type:[R.A]})],et.prototype,"fieldInfos",void 0),(0,o._)([(0,h.K)("fieldInfos")],et.prototype,"writeFieldInfos",null),(0,o._)([(0,d.MZ)({type:C})],et.prototype,"layerOptions",void 0),(0,o._)([(0,h.K)("layerOptions")],et.prototype,"writeLayerOptions",null),(0,o._)([(0,d.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],et.prototype,"lastEditInfoEnabled",void 0),(0,o._)([(0,d.MZ)()],et.prototype,"outFields",void 0),(0,o._)([(0,d.MZ)()],et.prototype,"overwriteActions",void 0),(0,o._)([(0,d.MZ)()],et.prototype,"returnGeometry",void 0),(0,o._)([(0,d.MZ)({json:{type:String}})],et.prototype,"title",void 0),(0,o._)([(0,h.K)("title")],et.prototype,"writeTitle",null),et=(0,o._)([(0,u.$)("esri.PopupTemplate")],et);const it=et},93705:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(90237),r=i(25482),n=i(10107),p=(i(44208),i(53966),i(87811),i(40608));let l=o=class extends r.A{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new o({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,s._)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],l.prototype,"returnType",void 0),l=o=(0,s._)([(0,p.$)("esri.popup.ExpressionInfo")],l);const a=l},41227:(t,e,i)=>{i.d(e,{A:()=>y});var o,s=i(90237),r=i(66552),n=i(25482),p=i(10107),l=(i(44208),i(53966),i(87811),i(93223)),a=i(40608),d=i(68780);let c=o=class extends n.A{constructor(t){super(t),this.fieldName=null,this.format=void 0,this.isEditable=!0,this.label=null,this.stringFieldOption="text-box",this.statisticType=null,this.tooltip=null,this.visible=!0}clone(){return new o({fieldName:this.fieldName,format:this.format?.clone(),isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0),(0,s._)([(0,p.MZ)({type:d.A,json:{write:!0}})],c.prototype,"format",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],c.prototype,"isEditable",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,s._)([(0,l.e)(new r.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",void 0),(0,s._)([(0,p.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],c.prototype,"statisticType",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0),c=o=(0,s._)([(0,a.$)("esri.popup.FieldInfo")],c);const y=c},28122:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(84424);let l=o=class extends p.A{constructor(t){super(t),this.description=null,this.displayType="auto",this.title=null,this.type="attachments"}clone(){return new o({description:this.description,displayType:this.displayType,title:this.title})}};(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"description",void 0),(0,s._)([(0,r.MZ)({type:["auto","preview","list"],json:{write:!0}})],l.prototype,"displayType",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,s._)([(0,r.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],l.prototype,"type",void 0),l=o=(0,s._)([(0,n.$)("esri.popup.content.AttachmentsContent")],l);const a=l},71468:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(39740),l=i(38152);let a=o=class extends p.A{constructor(t){super(t),this.type="bar-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:l.U.write,isRequired:!0}}})],a.prototype,"type",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.BarChartMediaInfo")],a);const d=a},81663:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(39740),l=i(38152);let a=o=class extends p.A{constructor(t){super(t),this.type="column-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:l.U.write,isRequired:!0}}})],a.prototype,"type",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.ColumnChartMediaInfo")],a);const d=a},84424:(t,e,i)=>{i.d(e,{A:()=>l});var o=i(90237),s=i(25482),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let p=class extends s.A{constructor(t){super(t),this.type=null}};(0,o._)([(0,r.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],p.prototype,"type",void 0),p=(0,o._)([(0,n.$)("esri.popup.content.Content")],p);const l=p},80737:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(4718),n=i(10107),p=(i(44208),i(53966),i(40608)),l=i(84424);let a=o=class extends l.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new o({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,r.o8)(this.outFields):null})}};(0,s._)([(0,n.MZ)()],a.prototype,"creator",void 0),(0,s._)([(0,n.MZ)()],a.prototype,"destroyer",void 0),(0,s._)([(0,n.MZ)()],a.prototype,"outFields",void 0),(0,s._)([(0,n.MZ)({type:["custom"],readOnly:!0})],a.prototype,"type",void 0),a=o=(0,s._)([(0,p.$)("esri.popup.content.CustomContent")],a);const d=a},96808:(t,e,i)=>{i.d(e,{A:()=>u});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(25482);let l=o=class extends p.A{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new o({title:this.title,expression:this.expression})}};(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,s._)([(0,r.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"returnType",void 0),l=o=(0,s._)([(0,n.$)("esri.popup.ElementExpressionInfo")],l);const a=l;var d,c=i(84424);let y=d=class extends c.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new d({expressionInfo:this.expressionInfo?.clone()})}};(0,s._)([(0,r.MZ)({type:a,json:{write:!0}})],y.prototype,"expressionInfo",void 0),(0,s._)([(0,r.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],y.prototype,"type",void 0),y=d=(0,s._)([(0,n.$)("esri.popup.content.ExpressionContent")],y);const u=y},66159:(t,e,i)=>{i.d(e,{A:()=>y});var o,s=i(90237),r=i(4718),n=i(10107),p=(i(44208),i(53966),i(40608)),l=i(43937),a=i(41227),d=i(84424);let c=o=class extends d.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}writeFieldInfos(t,e){e.fieldInfos=t&&t.map((t=>t.toJSON()))}clone(){return new o((0,r.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,s._)([(0,n.MZ)({type:Object,json:{write:!0}})],c.prototype,"attributes",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,s._)([(0,n.MZ)({type:[a.A]})],c.prototype,"fieldInfos",void 0),(0,s._)([(0,l.K)("fieldInfos")],c.prototype,"writeFieldInfos",null),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,s._)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],c.prototype,"type",void 0),c=o=(0,s._)([(0,p.$)("esri.popup.content.FieldsContent")],c);const y=c},96922:(t,e,i)=>{i.d(e,{A:()=>u});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(22756),l=i(25482);let a=o=class extends l.A{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new o({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],a.prototype,"linkURL",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"sourceURL",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.support.ImageMediaInfoValue")],a);const d=a;var c;let y=c=class extends p.A{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new c({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:Number,json:{write:!0}})],y.prototype,"refreshInterval",void 0),(0,s._)([(0,r.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],y.prototype,"type",void 0),(0,s._)([(0,r.MZ)({type:d,json:{write:{isRequired:!0}}})],y.prototype,"value",void 0),y=c=(0,s._)([(0,n.$)("esri.popup.content.ImageMediaInfo")],y);const u=y},92799:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(39740),l=i(38152);let a=o=class extends p.A{constructor(t){super(t),this.type="line-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:l.U.write,isRequired:!0}}})],a.prototype,"type",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.LineChartMediaInfo")],a);const d=a},67336:(t,e,i)=>{i.d(e,{A:()=>m});var o,s=i(90237),r=i(4718),n=i(10107),p=(i(44208),i(53966),i(36005)),l=i(40608),a=i(43937),d=i(71468),c=i(81663),y=i(84424),u=i(96922),h=i(92799),f=i(53535),v=i(58280);let _=o=class extends y.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map((t=>"image"===t.type?u.A.fromJSON(t):"barchart"===t.type?d.A.fromJSON(t):"columnchart"===t.type?c.A.fromJSON(t):"linechart"===t.type?h.A.fromJSON(t):"piechart"===t.type?f.A.fromJSON(t):void 0)).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map((t=>t.toJSON()))}clone(){return new o((0,r.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,s._)([(0,n.MZ)()],_.prototype,"activeMediaInfoIndex",void 0),(0,s._)([(0,n.MZ)({type:Object,json:{write:!0}})],_.prototype,"attributes",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],_.prototype,"description",void 0),(0,s._)([(0,n.MZ)({types:[v.g]})],_.prototype,"mediaInfos",void 0),(0,s._)([(0,p.w)("mediaInfos")],_.prototype,"readMediaInfos",null),(0,s._)([(0,a.K)("mediaInfos")],_.prototype,"writeMediaInfos",null),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],_.prototype,"title",void 0),(0,s._)([(0,n.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],_.prototype,"type",void 0),_=o=(0,s._)([(0,l.$)("esri.popup.content.MediaContent")],_);const m=_},53535:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(39740),l=i(38152);let a=o=class extends p.A{constructor(t){super(t),this.type="pie-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:l.U.write,isRequired:!0}}})],a.prototype,"type",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.PieChartMediaInfo")],a);const d=a},92094:(t,e,i)=>{i.d(e,{A:()=>c});var o=i(90237),s=i(69540),r=i(10107),n=i(56507),p=(i(87811),i(44208),i(40608)),l=i(84424),a=i(49852);let d=class extends(s.A.ClonableMixin(l.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,o._)([(0,r.MZ)({type:Number,json:{type:n.jz,write:!0}})],d.prototype,"displayCount",void 0),(0,o._)([(0,r.MZ)({type:["list"],json:{write:{isRequired:!0}}})],d.prototype,"displayType",void 0),(0,o._)([(0,r.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"orderByFields",void 0),(0,o._)([(0,r.MZ)({type:Number,json:{type:n.jz,write:{isRequired:!0}}})],d.prototype,"relationshipId",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,o._)([(0,r.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],d.prototype,"type",void 0),d=(0,o._)([(0,p.$)("esri.popup.content.RelationshipContent")],d);const c=d},23721:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(84424);let l=o=class extends p.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new o({text:this.text})}};(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"text",void 0),(0,s._)([(0,r.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],l.prototype,"type",void 0),l=o=(0,s._)([(0,n.$)("esri.popup.content.TextContent")],l);const a=l},70696:(t,e,i)=>{i.d(e,{A:()=>h});var o=i(90237),s=i(69540),r=i(10107),n=i(56507),p=(i(87811),i(44208),i(93223)),l=i(40608),a=i(84424),d=i(25482);let c=class extends(s.A.ClonableMixin(d.A)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.open=!1,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,o._)([(0,r.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],c.prototype,"type",void 0),(0,o._)([(0,r.MZ)({type:Boolean,json:{read:!1}})],c.prototype,"open",void 0),(0,o._)([(0,r.MZ)({type:Number,json:{type:n.jz,write:!0}})],c.prototype,"associatedNetworkSourceId",void 0),(0,o._)([(0,r.MZ)({type:Number,json:{type:n.jz,write:!0}})],c.prototype,"associatedAssetGroup",void 0),(0,o._)([(0,r.MZ)({type:Number,json:{type:n.jz,write:!0}})],c.prototype,"associatedAssetType",void 0),c=(0,o._)([(0,l.$)("esri.popup.support.UtilityNetworkAssociationType")],c);const y=c;let u=class extends(s.A.ClonableMixin(a.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,o._)([(0,r.MZ)({type:Number,json:{type:n.jz,write:!0}})],u.prototype,"displayCount",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],u.prototype,"title",void 0),(0,o._)([(0,r.MZ)({type:[y],json:{write:!0}})],u.prototype,"associationTypes",void 0),(0,o._)([(0,p.e)({utilityNetworkAssociations:"utility-network-associations"})],u.prototype,"type",void 0),u=(0,o._)([(0,l.$)("esri.popup.content.UtilityNetworkAssociationsContent")],u);const h=u},39740:(t,e,i)=>{i.d(e,{A:()=>w});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(22756),l=i(68197),a=i(25482),d=i(4718),c=i(56507),y=i(69622);let u=o=class extends y.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new o({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,s._)([(0,r.MZ)()],u.prototype,"color",void 0),(0,s._)([(0,r.MZ)()],u.prototype,"fieldName",void 0),(0,s._)([(0,r.MZ)()],u.prototype,"tooltip",void 0),(0,s._)([(0,r.MZ)()],u.prototype,"value",void 0),u=o=(0,s._)([(0,n.$)("esri.popup.content.support.ChartMediaInfoValueSeries")],u);const h=u;var f;let v=f=class extends a.A{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new f({colors:(0,d.o8)(this.colors),fields:(0,d.o8)(this.fields),normalizeField:this.normalizeField,series:(0,d.o8)(this.series),tooltipField:this.tooltipField})}};(0,s._)([(0,r.MZ)({type:[l.A],json:{type:[[c.jz]],write:!0}})],v.prototype,"colors",void 0),(0,s._)([(0,r.MZ)({type:[String],json:{write:{isRequired:!0}}})],v.prototype,"fields",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],v.prototype,"normalizeField",void 0),(0,s._)([(0,r.MZ)({type:[h],json:{read:!1}})],v.prototype,"series",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],v.prototype,"tooltipField",void 0),v=f=(0,s._)([(0,n.$)("esri.popup.content.support.ChartMediaInfoValue")],v);const _=v;let m=class extends p.A{constructor(t){super(t),this.type=null,this.value=void 0}};(0,s._)([(0,r.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],m.prototype,"type",void 0),(0,s._)([(0,r.MZ)({type:_,json:{write:{isRequired:!0}}})],m.prototype,"value",void 0),m=(0,s._)([(0,n.$)("esri.popup.content.mixins.ChartMediaInfo")],m);const w=m},22756:(t,e,i)=>{i.d(e,{A:()=>l});var o=i(90237),s=i(25482),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let p=class extends s.A{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],p.prototype,"altText",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],p.prototype,"caption",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],p.prototype,"title",void 0),(0,o._)([(0,r.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],p.prototype,"type",void 0),p=(0,o._)([(0,n.$)("esri.popup.content.mixins.MediaInfo")],p);const l=p},38152:(t,e,i)=>{i.d(e,{U:()=>o});const o=(0,i(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"})},58280:(t,e,i)=>{i.d(e,{g:()=>l});var o=i(71468),s=i(81663),r=i(96922),n=i(92799),p=i(53535);const l={base:i(22756).A,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":o.A,"column-chart":s.A,"line-chart":n.A,"pie-chart":p.A,image:r.A}}},68780:(t,e,i)=>{i.d(e,{A:()=>y});var o=i(90237),s=i(69540),r=i(25482),n=i(10107),p=i(56507),l=(i(87811),i(44208),i(93223)),a=i(40608),d=i(97770);let c=class extends(s.A.ClonableMixin(r.A)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,o._)([(0,l.e)(d._v)],c.prototype,"dateFormat",void 0),(0,o._)([(0,n.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"digitSeparator",void 0),(0,o._)([(0,n.MZ)({type:p.jz,json:{write:!0}})],c.prototype,"places",void 0),c=(0,o._)([(0,a.$)("esri.popup.support.FieldInfoFormat")],c);const y=c},49852:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(90237),r=i(25482),n=i(10107),p=(i(44208),i(53966),i(87811),i(40608));let l=o=class extends r.A{constructor(t){super(t),this.field=null,this.order=null}clone(){return new o({field:this.field,order:this.order})}};(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"field",void 0),(0,s._)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],l.prototype,"order",void 0),l=o=(0,s._)([(0,p.$)("esri.popup.support.RelatedRecordsInfoFieldOrder")],l);const a=l}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3874],{13874:(t,e,i)=>{i.d(e,{A:()=>it});var o=i(90237),s=i(69540),r=i(5503),n=i(25482),p=i(4718),l=i(53966),a=i(74887),d=i(10107),c=i(79901),y=i(36005),u=i(40608),h=i(43937),f=i(56507),v=i(30524),_=i(28122),m=i(84424),w=i(80737),A=i(96808),x=i(66159),M=i(67336),I=i(92094),Z=i(23721),g=i(47582);const j={base:null,key:"type",typeMap:{attachment:_.A,media:M.A,text:Z.A,expression:A.A,field:x.A,relationship:I.A,utilityNetworkAssociations:g.A}},F={base:null,key:"type",typeMap:{attachment:_.A,media:M.A,text:Z.A,expression:A.A,field:x.A,relationship:I.A}};var b,N=i(93705),R=i(41227);i(44208),i(87811);let S=b=class extends n.A{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new b({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,o._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"returnTopmostRaster",void 0),(0,o._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"showNoDataRecords",void 0),S=b=(0,o._)([(0,u.$)("esri.popup.LayerOptions")],S);const C=S;var T,O=i(49852);let $=T=class extends n.A{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new T({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,p.o8)(this.orderByFields):null})}};(0,o._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],$.prototype,"showRelatedRecords",void 0),(0,o._)([(0,d.MZ)({type:[O.A],json:{write:!0}})],$.prototype,"orderByFields",void 0),$=T=(0,o._)([(0,u.$)("esri.popup.RelatedRecordsInfo")],$);const E=$;var B,k=i(58280),J=i(69622),q=i(4902);let L=B=class extends(q.A.IdentifiableMixin(J.A)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new B({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,o._)([(0,d.MZ)()],L.prototype,"active",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"className",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"disabled",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"icon",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"id",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"indicator",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"title",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"type",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"visible",void 0),L=B=(0,o._)([(0,u.$)("esri.support.actions.ActionBase")],L);const U=L;var z;let P=z=class extends U{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new z({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,o._)([(0,d.MZ)()],P.prototype,"image",void 0),P=z=(0,o._)([(0,u.$)("esri.support.actions.ActionButton")],P);const K=P;var W;let D=W=class extends U{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new W({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,o._)([(0,d.MZ)()],D.prototype,"image",void 0),(0,o._)([(0,d.MZ)()],D.prototype,"value",void 0),D=W=(0,o._)([(0,u.$)("esri.support.actions.ActionToggle")],D);const V=D,G="relationships/",H="expression/",X=r.A.ofType({key:"type",defaultKeyValue:"button",base:U,typeMap:{button:K,toggle:V}}),Q={base:m.A,key:"type",typeMap:{media:M.A,custom:w.A,text:Z.A,attachments:_.A,fields:x.A,expression:A.A,relationship:I.A,utilityNetworkAssociations:g.A}},Y=new Set(["attachments","fields","media","text","expression","relationship"]),tt=new Set([...Y,"utility-network-associations"]);let et=class extends(s.A.ClonableMixin(n.A)){constructor(){super(...arguments),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map((t=>(0,f.aq)(Q,t))):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,a.$X)(t)?t:(l.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:i}=e;return Array.isArray(i)&&i.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,i):this._readPopupInfo(e)}writeWebSceneContent(t,e,i,o){this._writePopupTemplateContent(t,e,o)}writeWebMapContent(t,e,i,o){this._writePopupTemplateContent(t,e,o)}writeFieldInfos(t,e,i,o){const{content:s}=this,r=Array.isArray(s)?s:null;if(t){const i=r?r.filter((t=>"fields"===t.type)):[],s=i.length&&i.every((t=>t.fieldInfos?.length));e.fieldInfos=t.filter(Boolean).map((t=>{const e=t.toJSON(o);return s&&(e.visible=!1),e}))}if(r)for(const t of r)"fields"===t.type&&this._writeFieldsContent(t,e)}writeLayerOptions(t,e,i,o){e[i]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(o)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e){const i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,v._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t){const e=new Set;return await this.collectRequiredFields(e,t),[...e].sort()}_writePopupTemplateContent(t,e,i){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter((t=>"web-scene"===i?.origin?Y.has(t.type):tt.has(t.type))).map((t=>t?.toJSON(i))),e.popupElements.forEach((t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)}))):e.description=t}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const i=(0,p.o8)(t.fieldInfos);Array.isArray(e.fieldInfos)?i.forEach((t=>{const i=e.fieldInfos.find((e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase()));i?i.visible=!0:e.fieldInfos.push(t)})):e.fieldInfos=i}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const i=t.orderByFields?.map((e=>this._toFieldOrderJSON(e,t.relationshipId)))||[],o=[...e.relatedRecordsInfo?.orderByFields||[],...i];e.relatedRecordsInfo={showRelatedRecords:!0,...o?.length&&{orderByFields:o}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const i=(0,p.o8)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...i]:e.mediaInfos=i}_readPopupInfoElements(t,e,i){const o={description:!1,mediaInfos:!1};return i.map((i=>"media"===i.type?(i.mediaInfos||!e||o.mediaInfos||(i.mediaInfos=e,o.mediaInfos=!0),M.A.fromJSON(i)):"text"===i.type?(i.text||!t||o.description||(i.text=t,o.description=!0),Z.A.fromJSON(i)):"attachments"===i.type?_.A.fromJSON(i):"fields"===i.type?x.A.fromJSON(i):"expression"===i.type?A.A.fromJSON(i):"relationship"===i.type?I.A.fromJSON(i):"utilityNetworkAssociations"===i.type?g.A.fromJSON(i):void 0)).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:i}=t;if(!e?.startsWith(G))return null;const o=e.replace(G,"").split("/");if(2!==o.length)return null;const s=parseInt(o[0],10),r=o[1];return"number"==typeof s&&r?I.A.fromJSON({relationshipId:s,orderByFields:[{field:r,order:i}]}):null}_toFieldOrderJSON(t,e){const{order:i,field:o}=t;return{field:`${G}${e}/${o}`,order:i}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:i,relatedRecordsInfo:o={showRelatedRecords:!1}}){const s=[];t?s.push(new Z.A({text:t})):s.push(new x.A),Array.isArray(e)&&e.length&&s.push(M.A.fromJSON({mediaInfos:e})),i&&s.push(_.A.fromJSON({displayType:"auto"}));const{showRelatedRecords:r,orderByFields:n}=o;return r&&n?.length&&n.forEach((t=>{const e=this._toRelationshipContent(t);e&&s.push(e)})),s.length?s:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce(((t,e)=>[...t,...this._getMediaInfoFields(e)]),[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){const{caption:e,title:i,value:o}=t,s=o||{},{fields:r,normalizeField:n,tooltipField:p,sourceURL:l,linkURL:a}=s,d=[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(a),...r??[]];return n&&d.push(n),p&&d.push(p),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce(((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]]),e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce(((t,e)=>[...t,...this._getContentElementFields(e)]),[]):[]}async _collectExpressionInfoFields(t,e,i){i&&await Promise.all(i.map((i=>(0,v.Dx)(t,e,i.expression))))}_getFieldInfoFields(t){return t?t.filter((({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(G)||t.startsWith(H)))).map((t=>t.fieldName)):[]}_getActionsFields(t){return t?t.toArray().reduce(((t,e)=>[...t,...this._getActionFields(e)]),[]):[]}_getActionFields(t){const{className:e,title:i,type:o}=t,s="button"===o||"toggle"===o?t.image:"";return[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(s)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,v.nw)(t).filter((t=>!(0===t.indexOf(G)||0===t.indexOf(H))))}};(0,o._)([(0,d.MZ)({type:X})],et.prototype,"actions",void 0),(0,o._)([(0,d.MZ)()],et.prototype,"content",void 0),(0,o._)([(0,c.w)("content")],et.prototype,"castContent",null),(0,o._)([(0,y.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],et.prototype,"readContent",null),(0,o._)([(0,h.K)("web-scene","content",{popupElements:{type:r.A.ofType(F)},showAttachments:{type:Boolean},mediaInfos:{type:r.A.ofType(k.g)},description:{type:String},relatedRecordsInfo:{type:E}})],et.prototype,"writeWebSceneContent",null),(0,o._)([(0,h.K)("content",{popupElements:{type:r.A.ofType(j)},showAttachments:{type:Boolean},mediaInfos:{type:r.A.ofType(k.g)},description:{type:String},relatedRecordsInfo:{type:E}})],et.prototype,"writeWebMapContent",null),(0,o._)([(0,d.MZ)({type:[N.A],json:{write:!0}})],et.prototype,"expressionInfos",void 0),(0,o._)([(0,d.MZ)({type:[R.A]})],et.prototype,"fieldInfos",void 0),(0,o._)([(0,h.K)("fieldInfos")],et.prototype,"writeFieldInfos",null),(0,o._)([(0,d.MZ)({type:C})],et.prototype,"layerOptions",void 0),(0,o._)([(0,h.K)("layerOptions")],et.prototype,"writeLayerOptions",null),(0,o._)([(0,d.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],et.prototype,"lastEditInfoEnabled",void 0),(0,o._)([(0,d.MZ)()],et.prototype,"outFields",void 0),(0,o._)([(0,d.MZ)()],et.prototype,"overwriteActions",void 0),(0,o._)([(0,d.MZ)()],et.prototype,"returnGeometry",void 0),(0,o._)([(0,d.MZ)({json:{type:String}})],et.prototype,"title",void 0),(0,o._)([(0,h.K)("title")],et.prototype,"writeTitle",null),et=(0,o._)([(0,u.$)("esri.PopupTemplate")],et);const it=et},93705:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(90237),r=i(25482),n=i(10107),p=(i(44208),i(53966),i(87811),i(40608));let l=o=class extends r.A{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new o({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,s._)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],l.prototype,"returnType",void 0),l=o=(0,s._)([(0,p.$)("esri.popup.ExpressionInfo")],l);const a=l},41227:(t,e,i)=>{i.d(e,{A:()=>y});var o,s=i(90237),r=i(66552),n=i(25482),p=i(10107),l=(i(44208),i(53966),i(87811),i(93223)),a=i(40608),d=i(68780);let c=o=class extends n.A{constructor(t){super(t),this.fieldName=null,this.format=void 0,this.isEditable=!0,this.label=null,this.stringFieldOption="text-box",this.statisticType=null,this.tooltip=null,this.visible=!0}clone(){return new o({fieldName:this.fieldName,format:this.format?.clone(),isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0),(0,s._)([(0,p.MZ)({type:d.A,json:{write:!0}})],c.prototype,"format",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],c.prototype,"isEditable",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,s._)([(0,l.e)(new r.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",void 0),(0,s._)([(0,p.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],c.prototype,"statisticType",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0),c=o=(0,s._)([(0,a.$)("esri.popup.FieldInfo")],c);const y=c},28122:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(84424);let l=o=class extends p.A{constructor(t){super(t),this.description=null,this.displayType="auto",this.title=null,this.type="attachments"}clone(){return new o({description:this.description,displayType:this.displayType,title:this.title})}};(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"description",void 0),(0,s._)([(0,r.MZ)({type:["auto","preview","list"],json:{write:!0}})],l.prototype,"displayType",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,s._)([(0,r.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],l.prototype,"type",void 0),l=o=(0,s._)([(0,n.$)("esri.popup.content.AttachmentsContent")],l);const a=l},71468:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(39740),l=i(38152);let a=o=class extends p.A{constructor(t){super(t),this.type="bar-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:l.U.write,isRequired:!0}}})],a.prototype,"type",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.BarChartMediaInfo")],a);const d=a},81663:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(39740),l=i(38152);let a=o=class extends p.A{constructor(t){super(t),this.type="column-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:l.U.write,isRequired:!0}}})],a.prototype,"type",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.ColumnChartMediaInfo")],a);const d=a},84424:(t,e,i)=>{i.d(e,{A:()=>l});var o=i(90237),s=i(25482),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let p=class extends s.A{constructor(t){super(t),this.type=null}};(0,o._)([(0,r.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],p.prototype,"type",void 0),p=(0,o._)([(0,n.$)("esri.popup.content.Content")],p);const l=p},80737:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(4718),n=i(10107),p=(i(44208),i(53966),i(40608)),l=i(84424);let a=o=class extends l.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new o({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,r.o8)(this.outFields):null})}};(0,s._)([(0,n.MZ)()],a.prototype,"creator",void 0),(0,s._)([(0,n.MZ)()],a.prototype,"destroyer",void 0),(0,s._)([(0,n.MZ)()],a.prototype,"outFields",void 0),(0,s._)([(0,n.MZ)({type:["custom"],readOnly:!0})],a.prototype,"type",void 0),a=o=(0,s._)([(0,p.$)("esri.popup.content.CustomContent")],a);const d=a},96808:(t,e,i)=>{i.d(e,{A:()=>u});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(25482);let l=o=class extends p.A{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new o({title:this.title,expression:this.expression})}};(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,s._)([(0,r.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"returnType",void 0),l=o=(0,s._)([(0,n.$)("esri.popup.ElementExpressionInfo")],l);const a=l;var d,c=i(84424);let y=d=class extends c.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new d({expressionInfo:this.expressionInfo?.clone()})}};(0,s._)([(0,r.MZ)({type:a,json:{write:!0}})],y.prototype,"expressionInfo",void 0),(0,s._)([(0,r.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],y.prototype,"type",void 0),y=d=(0,s._)([(0,n.$)("esri.popup.content.ExpressionContent")],y);const u=y},66159:(t,e,i)=>{i.d(e,{A:()=>y});var o,s=i(90237),r=i(4718),n=i(10107),p=(i(44208),i(53966),i(40608)),l=i(43937),a=i(41227),d=i(84424);let c=o=class extends d.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}writeFieldInfos(t,e){e.fieldInfos=t&&t.map((t=>t.toJSON()))}clone(){return new o((0,r.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,s._)([(0,n.MZ)({type:Object,json:{write:!0}})],c.prototype,"attributes",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,s._)([(0,n.MZ)({type:[a.A]})],c.prototype,"fieldInfos",void 0),(0,s._)([(0,l.K)("fieldInfos")],c.prototype,"writeFieldInfos",null),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,s._)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],c.prototype,"type",void 0),c=o=(0,s._)([(0,p.$)("esri.popup.content.FieldsContent")],c);const y=c},96922:(t,e,i)=>{i.d(e,{A:()=>u});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(22756),l=i(25482);let a=o=class extends l.A{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new o({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],a.prototype,"linkURL",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"sourceURL",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.support.ImageMediaInfoValue")],a);const d=a;var c;let y=c=class extends p.A{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new c({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:Number,json:{write:!0}})],y.prototype,"refreshInterval",void 0),(0,s._)([(0,r.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],y.prototype,"type",void 0),(0,s._)([(0,r.MZ)({type:d,json:{write:{isRequired:!0}}})],y.prototype,"value",void 0),y=c=(0,s._)([(0,n.$)("esri.popup.content.ImageMediaInfo")],y);const u=y},92799:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(39740),l=i(38152);let a=o=class extends p.A{constructor(t){super(t),this.type="line-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:l.U.write,isRequired:!0}}})],a.prototype,"type",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.LineChartMediaInfo")],a);const d=a},67336:(t,e,i)=>{i.d(e,{A:()=>m});var o,s=i(90237),r=i(4718),n=i(10107),p=(i(44208),i(53966),i(36005)),l=i(40608),a=i(43937),d=i(71468),c=i(81663),y=i(84424),u=i(96922),h=i(92799),f=i(53535),v=i(58280);let _=o=class extends y.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map((t=>"image"===t.type?u.A.fromJSON(t):"barchart"===t.type?d.A.fromJSON(t):"columnchart"===t.type?c.A.fromJSON(t):"linechart"===t.type?h.A.fromJSON(t):"piechart"===t.type?f.A.fromJSON(t):void 0)).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map((t=>t.toJSON()))}clone(){return new o((0,r.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,s._)([(0,n.MZ)()],_.prototype,"activeMediaInfoIndex",void 0),(0,s._)([(0,n.MZ)({type:Object,json:{write:!0}})],_.prototype,"attributes",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],_.prototype,"description",void 0),(0,s._)([(0,n.MZ)({types:[v.g]})],_.prototype,"mediaInfos",void 0),(0,s._)([(0,p.w)("mediaInfos")],_.prototype,"readMediaInfos",null),(0,s._)([(0,a.K)("mediaInfos")],_.prototype,"writeMediaInfos",null),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],_.prototype,"title",void 0),(0,s._)([(0,n.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],_.prototype,"type",void 0),_=o=(0,s._)([(0,l.$)("esri.popup.content.MediaContent")],_);const m=_},53535:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(39740),l=i(38152);let a=o=class extends p.A{constructor(t){super(t),this.type="pie-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:l.U.write,isRequired:!0}}})],a.prototype,"type",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.PieChartMediaInfo")],a);const d=a},92094:(t,e,i)=>{i.d(e,{A:()=>c});var o=i(90237),s=i(69540),r=i(10107),n=i(56507),p=(i(87811),i(44208),i(40608)),l=i(84424),a=i(49852);let d=class extends(s.A.ClonableMixin(l.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,o._)([(0,r.MZ)({type:Number,json:{type:n.jz,write:!0}})],d.prototype,"displayCount",void 0),(0,o._)([(0,r.MZ)({type:["list"],json:{write:{isRequired:!0}}})],d.prototype,"displayType",void 0),(0,o._)([(0,r.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"orderByFields",void 0),(0,o._)([(0,r.MZ)({type:Number,json:{type:n.jz,write:{isRequired:!0}}})],d.prototype,"relationshipId",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,o._)([(0,r.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],d.prototype,"type",void 0),d=(0,o._)([(0,p.$)("esri.popup.content.RelationshipContent")],d);const c=d},23721:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(84424);let l=o=class extends p.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new o({text:this.text})}};(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"text",void 0),(0,s._)([(0,r.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],l.prototype,"type",void 0),l=o=(0,s._)([(0,n.$)("esri.popup.content.TextContent")],l);const a=l},47582:(t,e,i)=>{i.d(e,{A:()=>y});var o=i(90237),s=i(69540),r=i(10107),n=i(56507),p=(i(87811),i(44208),i(93223)),l=i(40608),a=i(84424),d=i(83342);let c=class extends(s.A.ClonableMixin(a.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,o._)([(0,r.MZ)({type:Number,json:{type:n.jz,write:!0}})],c.prototype,"displayCount",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,o._)([(0,r.MZ)({type:[d.A],json:{write:!0}})],c.prototype,"associationTypes",void 0),(0,o._)([(0,p.e)({utilityNetworkAssociations:"utility-network-associations"})],c.prototype,"type",void 0),c=(0,o._)([(0,l.$)("esri.popup.content.UtilityNetworkAssociationsContent")],c);const y=c},39740:(t,e,i)=>{i.d(e,{A:()=>w});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(22756),l=i(68197),a=i(25482),d=i(4718),c=i(56507),y=i(69622);let u=o=class extends y.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new o({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,s._)([(0,r.MZ)()],u.prototype,"color",void 0),(0,s._)([(0,r.MZ)()],u.prototype,"fieldName",void 0),(0,s._)([(0,r.MZ)()],u.prototype,"tooltip",void 0),(0,s._)([(0,r.MZ)()],u.prototype,"value",void 0),u=o=(0,s._)([(0,n.$)("esri.popup.content.support.ChartMediaInfoValueSeries")],u);const h=u;var f;let v=f=class extends a.A{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new f({colors:(0,d.o8)(this.colors),fields:(0,d.o8)(this.fields),normalizeField:this.normalizeField,series:(0,d.o8)(this.series),tooltipField:this.tooltipField})}};(0,s._)([(0,r.MZ)({type:[l.A],json:{type:[[c.jz]],write:!0}})],v.prototype,"colors",void 0),(0,s._)([(0,r.MZ)({type:[String],json:{write:{isRequired:!0}}})],v.prototype,"fields",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],v.prototype,"normalizeField",void 0),(0,s._)([(0,r.MZ)({type:[h],json:{read:!1}})],v.prototype,"series",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],v.prototype,"tooltipField",void 0),v=f=(0,s._)([(0,n.$)("esri.popup.content.support.ChartMediaInfoValue")],v);const _=v;let m=class extends p.A{constructor(t){super(t),this.type=null,this.value=void 0}};(0,s._)([(0,r.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],m.prototype,"type",void 0),(0,s._)([(0,r.MZ)({type:_,json:{write:{isRequired:!0}}})],m.prototype,"value",void 0),m=(0,s._)([(0,n.$)("esri.popup.content.mixins.ChartMediaInfo")],m);const w=m},22756:(t,e,i)=>{i.d(e,{A:()=>l});var o=i(90237),s=i(25482),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let p=class extends s.A{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],p.prototype,"altText",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],p.prototype,"caption",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],p.prototype,"title",void 0),(0,o._)([(0,r.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],p.prototype,"type",void 0),p=(0,o._)([(0,n.$)("esri.popup.content.mixins.MediaInfo")],p);const l=p},38152:(t,e,i)=>{i.d(e,{U:()=>o});const o=(0,i(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"})},58280:(t,e,i)=>{i.d(e,{g:()=>l});var o=i(71468),s=i(81663),r=i(96922),n=i(92799),p=i(53535);const l={base:i(22756).A,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":o.A,"column-chart":s.A,"line-chart":n.A,"pie-chart":p.A,image:r.A}}},68780:(t,e,i)=>{i.d(e,{A:()=>y});var o=i(90237),s=i(69540),r=i(25482),n=i(10107),p=i(56507),l=(i(87811),i(44208),i(93223)),a=i(40608),d=i(97770);let c=class extends(s.A.ClonableMixin(r.A)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,o._)([(0,l.e)(d._v)],c.prototype,"dateFormat",void 0),(0,o._)([(0,n.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"digitSeparator",void 0),(0,o._)([(0,n.MZ)({type:p.jz,json:{write:!0}})],c.prototype,"places",void 0),c=(0,o._)([(0,a.$)("esri.popup.support.FieldInfoFormat")],c);const y=c},49852:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(90237),r=i(25482),n=i(10107),p=(i(44208),i(53966),i(87811),i(40608));let l=o=class extends r.A{constructor(t){super(t),this.field=null,this.order=null}clone(){return new o({field:this.field,order:this.order})}};(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"field",void 0),(0,s._)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],l.prototype,"order",void 0),l=o=(0,s._)([(0,p.$)("esri.popup.support.RelatedRecordsInfoFieldOrder")],l);const a=l},83342:(t,e,i)=>{i.d(e,{A:()=>d});var o=i(90237),s=i(69540),r=i(25482),n=i(10107),p=i(56507),l=(i(87811),i(44208),i(40608));let a=class extends(s.A.ClonableMixin(r.A)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.open=!1,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,o._)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,o._)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,o._)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],a.prototype,"type",void 0),(0,o._)([(0,n.MZ)({type:Boolean,json:{read:!1}})],a.prototype,"open",void 0),(0,o._)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedNetworkSourceId",void 0),(0,o._)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedAssetGroup",void 0),(0,o._)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedAssetType",void 0),a=(0,o._)([(0,l.$)("esri.popup.support.UtilityNetworkAssociationType")],a);const d=a}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3308],{2741:(e,t,r)=>{r.d(t,{s:()=>T});var _=r(92602),E=(r(78888),r(49186)),n=r(53966),s=r(84952);function T(e){if(!_.A.assetsPath)throw n.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new E.A("assets:path-not-set","config.assetsPath is not set");return(0,s.fj)(_.A.assetsPath,e)}},92993:(e,t,r)=>{var _;r.d(t,{n:()=>_}),function(e){e[e.ETC1_RGB=0]="ETC1_RGB",e[e.ETC2_RGBA=1]="ETC2_RGBA",e[e.BC1_RGB=2]="BC1_RGB",e[e.BC3_RGBA=3]="BC3_RGBA",e[e.BC4_R=4]="BC4_R",e[e.BC5_RG=5]="BC5_RG",e[e.BC7_M6_RGB=6]="BC7_M6_RGB",e[e.BC7_M5_RGBA=7]="BC7_M5_RGBA",e[e.PVRTC1_4_RGB=8]="PVRTC1_4_RGB",e[e.PVRTC1_4_RGBA=9]="PVRTC1_4_RGBA",e[e.ASTC_4x4_RGBA=10]="ASTC_4x4_RGBA",e[e.ATC_RGB=11]="ATC_RGB",e[e.ATC_RGBA=12]="ATC_RGBA",e[e.FXT1_RGB=17]="FXT1_RGB",e[e.PVRTC2_4_RGB=18]="PVRTC2_4_RGB",e[e.PVRTC2_4_RGBA=19]="PVRTC2_4_RGBA",e[e.ETC2_EAC_R11=20]="ETC2_EAC_R11",e[e.ETC2_EAC_RG11=21]="ETC2_EAC_RG11",e[e.RGBA32=13]="RGBA32",e[e.RGB565=14]="RGB565",e[e.BGR565=15]="BGR565",e[e.RGBA4444=16]="RGBA4444"}(_||(_={}))},78888:(e,t,r)=>{r.d(t,{A:()=>C});var _=r(92602),E=r(70333),n=r(49186),s=r(44208),T=r(4718),R=r(74887),o=r(84952),A=r(39131),a=r(926),i=r(56058);async function C(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=(0,o.zf)(t.query.toString().replaceAll("+"," ")));const n=(0,o.DB)(e),T=(0,o.w8)(e);T||n||(e=(0,o.S8)(e));const A={url:e,requestOptions:{...t}},C=e=>({data:e,getAllHeaders:I,getHeader:I,httpStatus:200,requestOptions:A.requestOptions,url:A.url}),c=(0,o.sC)(e,S.internalInterceptors);if(c){const e=await B(c,A);if(null!=e)return C(e)}let u=(0,o.sC)(e);if(u){const e=await B(u,A);if(null!=e)return C(e);u.after||u.error||(u=null)}if(e=A.url,"image"===(t=A.requestOptions).responseType&&((0,s.A)("host-webworker")||(0,s.A)("host-node")))throw G("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),A);if("head"===t.method){if(t.body)throw G("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),A);if(n||T)throw G("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),A)}if(await async function(){(0,s.A)("host-webworker")&&!N&&(N=await r.e(369).then(r.bind(r,40369)))}(),N)return N.execute(e,t);const l=new AbortController,L=(0,R.u7)(t,(()=>l.abort())),d={controller:l,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:u,params:A,redoRequest:!1,useIdentity:S.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},U=await async function(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,n=e.controller.signal,s=r.body;let T=null,o=null;if(O&&"HTMLFormElement"in globalThis&&(s instanceof FormData?T=s:s instanceof HTMLFormElement&&(T=new FormData(s))),"string"==typeof s&&(o=s),e.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:S.priority,redirect:"follow",signal:n},(T||o)&&(e.fetchOptions.body=T||o),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||T?.get("token")),!e.hasToken&&(0,a.Jn)(t)&&(r.query||(r.query={}),r.query.token=_.A.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!M(t)&&!(0,R.G4)(n)){let _;"immediate"===r.authMode?(await D(),_=await E.id.getCredential(t,{signal:n}),e.credential=_):"no-prompt"===r.authMode?(await D(),_=await E.id.getCredential(t,{prompt:!1,signal:n}).catch((()=>{})),e.credential=_):E.id&&(_=E.id.findCredential(t)),_&&(e.credentialToken=_.token,e.useSSL=!!_.ssl)}}(e);try{do{[t,r]=await P(e)}while(!await f(e,t,r))}catch(r){const _=G("request:server",r,e.params,t);throw _.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(_),_}const n=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,o.FL)(n)){const e=(0,o.$z)(n,!0);e&&S.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,i.tz)(r.authorizedCrossOriginNoCorsDomains)}const s=e.credential;if(s&&E.id){const e=E.id.findServerInfo(s.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=E.id.findCredential(t,s.userId);e&&-1===E.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getAllHeaders:t?()=>Array.from(t.headers):I,getHeader:t?e=>t.headers.get(e):I,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(d).finally((()=>L?.remove()));return u?.after?.(U),U}let N;const S=_.A.request,O="FormData"in globalThis,c=new Set([499,498,403,401]),u=new Set(["COM_0056","COM_0057","SB_0008"]),l=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],I=()=>null,L=Symbol();function d(e){const t=(0,o.$z)(e);return!t||t.endsWith(".arcgis.com")||C._corsServers.includes(t)||(0,o.FL)(t)}function G(e,t,r,_){let E="Error";const s={url:r.url,requestOptions:r.requestOptions,getAllHeaders:I,getHeader:I,ssl:!1};if(t instanceof n.A)return t.details?(t.details=(0,T.o8)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=s,t;if(t){const e=_&&(()=>Array.from(_.headers)),r=_&&(e=>_.headers.get(e)),n=_?.status,T=t.message;T&&(E=T),e&&r&&(s.getAllHeaders=e,s.getHeader=r),s.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||n||0,s.subCode=t.subcode,s.messageCode=t.messageCode,"string"==typeof t.details?s.messages=[t.details]:s.messages=t.details,s.raw=L in t?t[L]:t}return(0,R.zf)(t)?(0,R.NK)():new n.A(e,E,s)}async function D(){E.id||await Promise.all([r.e(6285),r.e(7292),r.e(7112)]).then(r.bind(r,67112))}function M(e){return l.some((t=>t.test(e)))}async function P(e){let t=e.params.url;const r=e.params.requestOptions,_=e.fetchOptions??{},n=(0,o.w8)(t)||(0,o.DB)(t),T=r.responseType||"json",a=n?0:null!=r.timeout?r.timeout:S.timeout;let N=!1;if(!n){e.useSSL&&(t=(0,o.lM)(t));let n={...r.query};e.credentialToken&&(n.token=e.credentialToken);let T=(0,o.x0)(n);(0,s.A)("esri-url-encodes-apostrophe")&&(T=T.replaceAll("'","%27"));const R=t.length+1+T.length;let a;N="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||R>S.maxUrlLength;const C=r.useProxy||!!(0,o.zs)(t);if(C){const e=(0,o.s_)(t);a=e.path,!N&&a.length+1+R>S.maxUrlLength&&(N=!0),e.query&&(n={...e.query,...n})}if("HEAD"===_.method&&(N||C)){if(N){if(R>S.maxUrlLength)throw G("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw G("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(C)throw G("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(N?(_.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,o.a6)(t,n):(_.body=(0,o.x0)(n),_.headers||(_.headers={}),_.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,o.a6)(t,n),C&&(e.useProxy=!0,t=`${a}?${t}`),n.token&&O&&_.body instanceof FormData&&!(0,A.$E)(t)&&_.body.set("token",n.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,o.FX)(t,(0,o.Xq)()))if((0,o.FL)(t))e.withCredentials=!0;else if(E.id){const r=E.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(_.credentials="include",(0,i.xW)(t)&&await(0,i.m3)(N?(0,o.a6)(t,n):t))}let c,u,l=0,I=!1;a>0&&(l=setTimeout((()=>{I=!0,e.controller.abort()}),a));try{if("native-request-init"===r.responseType)u=_,u.url=t,r.signal?u.signal=r.signal:delete u.signal;else if("image"!==r.responseType||"default"!==_.cache||"GET"!==_.method||N||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!n&&!e.useProxy&&S.proxyUrl&&!d(t)){if(C._beforeFetch&&await C._beforeFetch(t,_),c=await fetch(t,_),C._afterFetch&&await C._afterFetch(c),e.useProxy||function(e){const t=(0,o.$z)(e);t&&!C._corsServers.includes(t)&&C._corsServers.push(t)}(t),"native"===r.responseType)u=c;else if("HEAD"!==_.method)if(c.ok){switch(T){case"array-buffer":u=await c.arrayBuffer();break;case"blob":case"image":u=await c.blob();break;default:u=await c.text()}if(l&&(clearTimeout(l),l=0),"json"===T||"xml"===T||"document"===T)if(u)switch(T){case"json":u=JSON.parse(u);break;case"xml":u=U(u,"application/xml");break;case"document":u=U(u,"text/html")}else u=null;if(u){if("array-buffer"===T||"blob"===T){const e=c.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&u["blob"===T?"size":"byteLength"]<=750)try{const e=await new Response(u).json();e.error&&(u=e)}catch{}}"image"===T&&u instanceof Blob&&(u=await h(URL.createObjectURL(u),e,!0))}}else{u=await c.text();try{u=JSON.parse(u)}catch{}}}else u=await h(t,e)}catch(_){if("AbortError"===_.name){if(I)throw(0,i.ql)();throw(0,R.NK)("Request canceled")}if(!(!c&&_ instanceof TypeError&&S.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||d(t))throw _;e.redoRequest=!0,(0,o.oy)({proxyUrl:S.proxyUrl,urlPrefix:(0,o.$z)(t)??""})}finally{l&&clearTimeout(l)}return[c,u]}async function B(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,_;try{_=await e.before(t)}catch(e){r=G("request:interceptor",e,t)}if((_ instanceof Error||_ instanceof n.A)&&(r=G("request:interceptor",_,t)),r)throw e.error&&e.error(r),r;return _}}function U(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function f(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const _=e.params.requestOptions;if(!t||"native"===_.responseType||"native-request-init"===_.responseType)return!0;let n,s;if(r&&(r.error&&"object"==typeof r.error?n=r.error:"error"===r.status&&Array.isArray(r.messages)&&(n={...r},n[L]=r,n.details=r.messages)),!n&&!t.ok)throw n=new Error(`Unable to load ${t.url} status: ${t.status}`),n[L]=r,n;let T,R=null;n&&(s=Number(n.code),R=n.hasOwnProperty("subcode")?Number(n.subcode):null,T=n.messageCode,T=T?.toUpperCase());const o=_.authMode;if(403===s&&(4===R||n.message?.toLowerCase().includes("ssl")&&!n.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==o||498===s)&&void 0!==s&&c.has(s)&&!M(e.params.url)&&(403!==s||(!T||!u.has(T))&&(null==R||2===R&&e.credentialToken))){await D();try{const t=await E.id.getCredential(e.params.url,{error:G("request:server",n,e.params),prompt:"no-prompt"!==o,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===o)return e.credential=void 0,e.credentialToken=void 0,!1;n=t}}if(n)throw n;return!0}function h(e,t,r=!1){const _=t.controller.signal,E=new Image;return t.withCredentials?E.crossOrigin="use-credentials":E.crossOrigin="anonymous",E.alt="",E.fetchPriority=S.priority,E.src=e,(0,i.Sx)(E,e,r,_)}C._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],C._beforeFetch=void 0,C._afterFetch=void 0},926:(e,t,r)=>{r.d(t,{Jn:()=>T});var _=r(92602),E=r(84952);const n=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]);function s(e){const t=(0,E.$z)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!n.has(t)&&!e.endsWith("/sharing/rest/generateToken")}function T(e,t){return!(!t&&!_.A.apiKey||!s(e))}},56058:(e,t,r)=>{r.d(t,{Sx:()=>T,c8:()=>a,m3:()=>N,ql:()=>A,tz:()=>i,xW:()=>C});var _=r(92602),E=r(44208),n=r(74887),s=r(84952);function T(e,t,r=!1,_){return new Promise(((s,T)=>{if((0,n.G4)(_))return void T(R());let o=()=>{i(),T(new Error(`Unable to load ${t}`))},A=()=>{const t=e;i(),s(t)},a=()=>{if(!e)return;const t=e;i(),t.src="",T(R())};const i=()=>{(0,E.A)("esri-image-decode")||(e.removeEventListener("error",o),e.removeEventListener("load",A)),o=null,A=null,e=null,null!=_&&_.removeEventListener("abort",a),a=null,r&&URL.revokeObjectURL(t)};null!=_&&_.addEventListener("abort",a),(0,E.A)("esri-image-decode")?e.decode().then(A,o):(e.addEventListener("error",o),e.addEventListener("load",A))}))}function R(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}const o="Timeout exceeded";function A(){return new Error(o)}function a(e){return"object"==typeof e&&!!e&&"message"in e&&e.message===o}function i(e){_.A.request.crossOriginNoCorsDomains||(_.A.request.crossOriginNoCorsDomains={});const t=_.A.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,s.$z)(r)??""]=0:(t[(0,s.$z)("http://"+r)??""]=0,t[(0,s.$z)("https://"+r)??""]=0)}function C(e){const t=_.A.request.crossOriginNoCorsDomains;if(t){let r=(0,s.$z)(e);if(r)return r=r.toLowerCase(),!(0,s.FX)(r,(0,s.Xq)())&&t[r]<Date.now()-36e5}return!1}async function N(e){const t=(0,s.An)(e);e=t.path,"json"===t.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}const r=_.A.request.crossOriginNoCorsDomains,E=(0,s.$z)(e);r&&E&&(r[E.toLowerCase()]=Date.now())}},13308:(e,t,r)=>{r.r(t),r.d(t,{TextureCompressionWorkerOutput:()=>A,compress:()=>a,compressRGBADataToKTX2:()=>C,createTextureDataKTX2:()=>N,loadBasisEncoder:()=>i});var _=r(2741);function E(){return n??=(async()=>{const e=await r.e(2372).then(r.bind(r,62372)),t=await e.default({locateFile:e=>(0,_.s)(`esri/libs/basisu/${e}`)});return t.initializeBasis(),t})(),n}let n;var s=r(92993),T=r(63907);let R=null,o=null;class A{constructor(e,t){this.internalFormat=e,this.compressedTexture=t}}async function a(e){await i();const t=await C(e.data,e.width,e.height,e.hasMipmap),r=t?await N(t,e.hasETC,e.hasS3TC):null;return{result:new A(r?.internalFormat??null,r?.compressedTexture??null)}}async function i(){return null==o&&(o=E(),R=await E()),o}async function C(e,t,r,_,E=255,n=0,s=!1,T=!1){null==R&&(R=await i());const o=new R.BasisEncoder;o.setUASTC(!1),o.setHDR(!1),o.setPerceptual(!T),o.setCheckForAlpha(!0),o.setForceAlpha(!1),o.setRenormalize(T),o.setMipGen(_),o.setMipSRGB(!T),o.setCreateKTX2File(!0),o.setKTX2UASTCSupercompression(!1),o.setKTX2SRGBTransferFunc(!T),o.setQualityLevel(E),o.setCompressionLevel(n);const A=new Uint8Array(25165824);o.setSliceSourceImage(0,new Uint8Array(e),t,r,s);const a=o.encode(A),C=new Uint8Array(A.buffer,0,a),N=new R.KTX2File(new Uint8Array(C));return N.isValid()?(o.delete(),C):(N.close(),N.delete(),o.delete(),null)}async function N(e,t,r){null==R&&(R=await i());const _=new R.KTX2File(new Uint8Array(e));_.startTranscoding();const[E,n]=t?_.getHasAlpha()?[s.n.ETC2_RGBA,T.CQ.COMPRESSED_RGBA8_ETC2_EAC]:[s.n.ETC1_RGB,T.CQ.COMPRESSED_RGB8_ETC2]:r?_.getHasAlpha()?[s.n.BC3_RGBA,T.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT]:[s.n.BC1_RGB,T.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT]:[s.n.RGBA32,T.Ab.RGBA],o=_.getLevels(),A=[];for(let e=0;e<o;e++)A.push(new Uint8Array(_.getImageTranscodedSizeInBytes(e,0,0,E))),_.transcodeImage(A[e],e,0,0,E,0,-1,-1);return _.close(),_.delete(),{internalFormat:n,compressedTexture:{type:"compressed",levels:A}}}},63907:(e,t,r)=>{var _,E,n,s,T,R,o,A,a,i,C,N,S,O,c,u,l,I,L,d,G,D,M;r.d(t,{Ab:()=>O,Ac:()=>o,Ap:()=>S,CQ:()=>B,Cj:()=>C,Co:()=>L,H0:()=>c,Hr:()=>M,MT:()=>a,NV:()=>_,NZ:()=>T,Nm:()=>D,R:()=>d,Tb:()=>s,WR:()=>E,Y7:()=>R,_U:()=>I,dn:()=>n,eA:()=>i,ld:()=>u,nI:()=>P,pF:()=>N,pe:()=>A,vt:()=>G,yQ:()=>l}),function(e){e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e[e.COLOR=16384]="COLOR"}(_||(_={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(E||(E={})),function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(n||(n={})),function(e){e[e.ADD=32774]="ADD",e[e.MIN=32775]="MIN",e[e.MAX=32776]="MAX",e[e.SUBTRACT=32778]="SUBTRACT",e[e.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(s||(s={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",e[e.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER"}(T||(T={})),function(e){e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(R||(R={})),function(e){e[e.CW=2304]="CW",e[e.CCW=2305]="CCW"}(o||(o={})),function(e){e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT",e[e.HALF_FLOAT=5131]="HALF_FLOAT"}(A||(A={})),function(e){e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS"}(a||(a={})),function(e){e[e.ZERO=0]="ZERO",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP"}(i||(i={})),function(e){e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(C||(C={})),function(e){e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(N||(N={})),function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(S||(S={})),function(e){e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.RED=6403]="RED",e[e.RG=33319]="RG",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER"}(O||(O={})),function(e){e[e.RGBA4=32854]="RGBA4",e[e.R16F=33325]="R16F",e[e.RG16F=33327]="RG16F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.R32F=33326]="R32F",e[e.RG32F=33328]="RG32F",e[e.RGBA32F=34836]="RGBA32F",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB5_A1=32855]="RGB5_A1",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.RGB16F=34843]="RGB16F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.RGB565=36194]="RGB565",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2=32857]="RGB10_A2",e[e.RGB10_A2UI=36975]="RGB10_A2UI"}(c||(c={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.INT=5124]="INT",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(u||(u={})),function(e){e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(l||(l={})),function(e){e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_READ=35045]="STATIC_READ",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.STREAM_COPY=35042]="STREAM_COPY"}(I||(I={})),function(e){e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER"}(L||(L={})),function(e){e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(d||(d={})),function(e){e[e.Texture=0]="Texture",e[e.BufferObject=1]="BufferObject",e[e.VertexArrayObject=2]="VertexArrayObject",e[e.Shader=3]="Shader",e[e.Program=4]="Program",e[e.FramebufferObject=5]="FramebufferObject",e[e.Renderbuffer=6]="Renderbuffer",e[e.TransformFeedback=7]="TransformFeedback",e[e.Sync=8]="Sync",e[e.UNCOUNTED=9]="UNCOUNTED",e[e.LinesOfCode=9]="LinesOfCode",e[e.Uniform=10]="Uniform",e[e.COUNT=11]="COUNT"}(G||(G={})),function(e){e[e.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",e[e.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",e[e.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",e[e.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",e[e.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",e[e.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",e[e.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",e[e.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",e[e.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",e[e.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",e[e.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",e[e.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",e[e.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",e[e.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",e[e.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",e[e.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(D||(D={})),function(e){e[e.NONE=0]="NONE",e[e.BACK=1029]="BACK"}(M||(M={}));const P=33306;var B,U,f,h,F,p,m;!function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(B||(B={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT=5124]="INT",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(U||(U={})),function(e){e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS"}(f||(f={})),function(e){e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED"}(h||(h={})),function(e){e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED"}(F||(F={})),function(e){e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(p||(p={})),function(e){e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(m||(m={}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3308],{2741:(e,t,r)=>{r.d(t,{s:()=>T});var _=r(92602),E=(r(78888),r(49186)),n=r(53966),s=r(84952);function T(e){if(!_.A.assetsPath)throw n.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new E.A("assets:path-not-set","config.assetsPath is not set");return(0,s.fj)(_.A.assetsPath,e)}},92993:(e,t,r)=>{var _;r.d(t,{n:()=>_}),function(e){e[e.ETC1_RGB=0]="ETC1_RGB",e[e.ETC2_RGBA=1]="ETC2_RGBA",e[e.BC1_RGB=2]="BC1_RGB",e[e.BC3_RGBA=3]="BC3_RGBA",e[e.BC4_R=4]="BC4_R",e[e.BC5_RG=5]="BC5_RG",e[e.BC7_M6_RGB=6]="BC7_M6_RGB",e[e.BC7_M5_RGBA=7]="BC7_M5_RGBA",e[e.PVRTC1_4_RGB=8]="PVRTC1_4_RGB",e[e.PVRTC1_4_RGBA=9]="PVRTC1_4_RGBA",e[e.ASTC_4x4_RGBA=10]="ASTC_4x4_RGBA",e[e.ATC_RGB=11]="ATC_RGB",e[e.ATC_RGBA=12]="ATC_RGBA",e[e.FXT1_RGB=17]="FXT1_RGB",e[e.PVRTC2_4_RGB=18]="PVRTC2_4_RGB",e[e.PVRTC2_4_RGBA=19]="PVRTC2_4_RGBA",e[e.ETC2_EAC_R11=20]="ETC2_EAC_R11",e[e.ETC2_EAC_RG11=21]="ETC2_EAC_RG11",e[e.RGBA32=13]="RGBA32",e[e.RGB565=14]="RGB565",e[e.BGR565=15]="BGR565",e[e.RGBA4444=16]="RGBA4444"}(_||(_={}))},78888:(e,t,r)=>{r.d(t,{A:()=>C});var _=r(92602),E=r(70333),n=r(49186),s=r(44208),T=r(4718),R=r(74887),o=r(84952),A=r(39131),a=r(926),i=r(56058);async function C(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=(0,o.zf)(t.query.toString().replaceAll("+"," ")));const n=(0,o.DB)(e),T=(0,o.w8)(e);T||n||(e=(0,o.S8)(e));const A={url:e,requestOptions:{...t}},C=e=>({data:e,getAllHeaders:I,getHeader:I,httpStatus:200,requestOptions:A.requestOptions,url:A.url}),c=(0,o.sC)(e,S.internalInterceptors);if(c){const e=await B(c,A);if(null!=e)return C(e)}let u=(0,o.sC)(e);if(u){const e=await B(u,A);if(null!=e)return C(e);u.after||u.error||(u=null)}if(e=A.url,"image"===(t=A.requestOptions).responseType&&((0,s.A)("host-webworker")||(0,s.A)("host-node")))throw G("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),A);if("head"===t.method){if(t.body)throw G("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),A);if(n||T)throw G("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),A)}if(await async function(){(0,s.A)("host-webworker")&&!N&&(N=await r.e(369).then(r.bind(r,40369)))}(),N)return N.execute(e,t);const l=new AbortController,L=(0,R.u7)(t,(()=>l.abort())),d={controller:l,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:u,params:A,redoRequest:!1,useIdentity:S.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},U=await async function(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,n=e.controller.signal,s=r.body;let T=null,o=null;if(O&&"HTMLFormElement"in globalThis&&(s instanceof FormData?T=s:s instanceof HTMLFormElement&&(T=new FormData(s))),"string"==typeof s&&(o=s),e.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:S.priority,redirect:"follow",signal:n},(T||o)&&(e.fetchOptions.body=T||o),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||T?.get("token")),!e.hasToken&&(0,a.Jn)(t)&&(r.query||(r.query={}),r.query.token=_.A.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!M(t)&&!(0,R.G4)(n)){let _;"immediate"===r.authMode?(await D(),_=await E.id.getCredential(t,{signal:n}),e.credential=_):"no-prompt"===r.authMode?(await D(),_=await E.id.getCredential(t,{prompt:!1,signal:n}).catch((()=>{})),e.credential=_):E.id&&(_=E.id.findCredential(t)),_&&(e.credentialToken=_.token,e.useSSL=!!_.ssl)}}(e);try{do{[t,r]=await P(e)}while(!await f(e,t,r))}catch(r){const _=G("request:server",r,e.params,t);throw _.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(_),_}const n=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,o.FL)(n)){const e=(0,o.$z)(n,!0);e&&S.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,i.tz)(r.authorizedCrossOriginNoCorsDomains)}const s=e.credential;if(s&&E.id){const e=E.id.findServerInfo(s.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=E.id.findCredential(t,s.userId);e&&-1===E.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getAllHeaders:t?()=>Array.from(t.headers):I,getHeader:t?e=>t.headers.get(e):I,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(d).finally((()=>L?.remove()));return u?.after?.(U),U}let N;const S=_.A.request,O="FormData"in globalThis,c=new Set([499,498,403,401]),u=new Set(["COM_0056","COM_0057","SB_0008"]),l=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],I=()=>null,L=Symbol();function d(e){const t=(0,o.$z)(e);return!t||t.endsWith(".arcgis.com")||C._corsServers.includes(t)||(0,o.FL)(t)}function G(e,t,r,_){let E="Error";const s={url:r.url,requestOptions:r.requestOptions,getAllHeaders:I,getHeader:I,ssl:!1};if(t instanceof n.A)return t.details?(t.details=(0,T.o8)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=s,t;if(t){const e=_&&(()=>Array.from(_.headers)),r=_&&(e=>_.headers.get(e)),n=_?.status,T=t.message;T&&(E=T),e&&r&&(s.getAllHeaders=e,s.getHeader=r),s.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||n||0,s.subCode=t.subcode,s.messageCode=t.messageCode,"string"==typeof t.details?s.messages=[t.details]:s.messages=t.details,s.raw=L in t?t[L]:t}return(0,R.zf)(t)?(0,R.NK)():new n.A(e,E,s)}async function D(){E.id||await Promise.all([r.e(6285),r.e(7292),r.e(7112)]).then(r.bind(r,67112))}function M(e){return l.some((t=>t.test(e)))}async function P(e){let t=e.params.url;const r=e.params.requestOptions,_=e.fetchOptions??{},n=(0,o.w8)(t)||(0,o.DB)(t),T=r.responseType||"json",a=n?0:null!=r.timeout?r.timeout:S.timeout;let N=!1;if(!n){e.useSSL&&(t=(0,o.lM)(t));let n={...r.query};e.credentialToken&&(n.token=e.credentialToken);let T=(0,o.x0)(n);(0,s.A)("esri-url-encodes-apostrophe")&&(T=T.replaceAll("'","%27"));const R=t.length+1+T.length;let a;N="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||R>S.maxUrlLength;const C=r.useProxy||!!(0,o.zs)(t);if(C){const e=(0,o.s_)(t);a=e.path,!N&&a.length+1+R>S.maxUrlLength&&(N=!0),e.query&&(n={...e.query,...n})}if("HEAD"===_.method&&(N||C)){if(N){if(R>S.maxUrlLength)throw G("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw G("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(C)throw G("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(N?(_.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,o.a6)(t,n):(_.body=(0,o.x0)(n),_.headers||(_.headers={}),_.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,o.a6)(t,n),C&&(e.useProxy=!0,t=`${a}?${t}`),n.token&&O&&_.body instanceof FormData&&!(0,A.$E)(t)&&_.body.set("token",n.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,o.FX)(t,(0,o.Xq)()))if((0,o.FL)(t))e.withCredentials=!0;else if(E.id){const r=E.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(_.credentials="include",(0,i.xW)(t)&&await(0,i.m3)(N?(0,o.a6)(t,n):t))}let c,u,l=0,I=!1;a>0&&(l=setTimeout((()=>{I=!0,e.controller.abort()}),a));try{if("native-request-init"===r.responseType)u=_,u.url=t,r.signal?u.signal=r.signal:delete u.signal;else if("image"!==r.responseType||"default"!==_.cache||"GET"!==_.method||N||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!n&&!e.useProxy&&S.proxyUrl&&!d(t)){if(C._beforeFetch&&await C._beforeFetch(t,_),c=await fetch(t,_),C._afterFetch&&await C._afterFetch(c),e.useProxy||function(e){const t=(0,o.$z)(e);t&&!C._corsServers.includes(t)&&C._corsServers.push(t)}(t),"native"===r.responseType)u=c;else if("HEAD"!==_.method)if(c.ok){switch(T){case"array-buffer":u=await c.arrayBuffer();break;case"blob":case"image":u=await c.blob();break;default:u=await c.text()}if(l&&(clearTimeout(l),l=0),"json"===T||"xml"===T||"document"===T)if(u)switch(T){case"json":u=JSON.parse(u);break;case"xml":u=U(u,"application/xml");break;case"document":u=U(u,"text/html")}else u=null;if(u){if("array-buffer"===T||"blob"===T){const e=c.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&u["blob"===T?"size":"byteLength"]<=750)try{const e=await new Response(u).json();e.error&&(u=e)}catch{}}"image"===T&&u instanceof Blob&&(u=await h(URL.createObjectURL(u),e,!0))}}else{u=await c.text();try{u=JSON.parse(u)}catch{}}}else u=await h(t,e)}catch(_){if("AbortError"===_.name){if(I)throw(0,i.ql)();throw(0,R.NK)("Request canceled")}if(!(!c&&_ instanceof TypeError&&S.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||d(t))throw _;e.redoRequest=!0,(0,o.oy)({proxyUrl:S.proxyUrl,urlPrefix:(0,o.$z)(t)??""})}finally{l&&clearTimeout(l)}return[c,u]}async function B(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,_;try{_=await e.before(t)}catch(e){r=G("request:interceptor",e,t)}if((_ instanceof Error||_ instanceof n.A)&&(r=G("request:interceptor",_,t)),r)throw e.error&&e.error(r),r;return _}}function U(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function f(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const _=e.params.requestOptions;if(!t||"native"===_.responseType||"native-request-init"===_.responseType)return!0;let n,s;if(r&&(r.error&&"object"==typeof r.error?n=r.error:"error"===r.status&&Array.isArray(r.messages)&&(n={...r},n[L]=r,n.details=r.messages)),!n&&!t.ok)throw n=new Error(`Unable to load ${t.url} status: ${t.status}`),n[L]=r,n;let T,R=null;n&&(s=Number(n.code),R=n.hasOwnProperty("subcode")?Number(n.subcode):null,T=n.messageCode,T=T?.toUpperCase());const o=_.authMode;if(403===s&&(4===R||n.message?.toLowerCase().includes("ssl")&&!n.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==o||498===s)&&void 0!==s&&c.has(s)&&!M(e.params.url)&&(403!==s||(!T||!u.has(T))&&(null==R||2===R&&e.credentialToken))){await D();try{const t=await E.id.getCredential(e.params.url,{error:G("request:server",n,e.params),prompt:"no-prompt"!==o,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===o)return e.credential=void 0,e.credentialToken=void 0,!1;n=t}}if(n)throw n;return!0}function h(e,t,r=!1){const _=t.controller.signal,E=new Image;return t.withCredentials?E.crossOrigin="use-credentials":E.crossOrigin="anonymous",E.alt="",E.fetchPriority=S.priority,E.src=e,(0,i.Sx)(E,e,r,_)}C._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],C._beforeFetch=void 0,C._afterFetch=void 0},926:(e,t,r)=>{r.d(t,{Jn:()=>T});var _=r(92602),E=r(84952);const n=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]);function s(e){const t=(0,E.$z)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!n.has(t)&&!e.endsWith("/sharing/rest/generateToken")}function T(e,t){return!(!t&&!_.A.apiKey||!s(e))}},56058:(e,t,r)=>{r.d(t,{Sx:()=>T,c8:()=>a,m3:()=>N,ql:()=>A,tz:()=>i,xW:()=>C});var _=r(92602),E=r(44208),n=r(74887),s=r(84952);function T(e,t,r=!1,_){return new Promise(((s,T)=>{if((0,n.G4)(_))return void T(R());let o=()=>{i(),T(new Error(`Unable to load ${t}`))},A=()=>{const t=e;i(),s(t)},a=()=>{if(!e)return;const t=e;i(),t.src="",T(R())};const i=()=>{(0,E.A)("esri-image-decode")||(e.removeEventListener("error",o),e.removeEventListener("load",A)),o=null,A=null,e=null,null!=_&&_.removeEventListener("abort",a),a=null,r&&URL.revokeObjectURL(t)};null!=_&&_.addEventListener("abort",a),(0,E.A)("esri-image-decode")?e.decode().then(A,o):(e.addEventListener("error",o),e.addEventListener("load",A))}))}function R(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}const o="Timeout exceeded";function A(){return new Error(o)}function a(e){return"object"==typeof e&&!!e&&"message"in e&&e.message===o}function i(e){_.A.request.crossOriginNoCorsDomains||(_.A.request.crossOriginNoCorsDomains={});const t=_.A.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,s.$z)(r)??""]=0:(t[(0,s.$z)("http://"+r)??""]=0,t[(0,s.$z)("https://"+r)??""]=0)}function C(e){const t=_.A.request.crossOriginNoCorsDomains;if(t){let r=(0,s.$z)(e);if(r)return r=r.toLowerCase(),!(0,s.FX)(r,(0,s.Xq)())&&t[r]<Date.now()-36e5}return!1}async function N(e){const t=(0,s.An)(e);e=t.path,"json"===t.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}const r=_.A.request.crossOriginNoCorsDomains,E=(0,s.$z)(e);r&&E&&(r[E.toLowerCase()]=Date.now())}},13308:(e,t,r)=>{r.r(t),r.d(t,{TextureCompressionWorkerOutput:()=>A,compress:()=>a,compressRGBADataToKTX2:()=>C,createTextureDataKTX2:()=>N,loadBasisEncoder:()=>i});var _=r(2741);function E(){return n??=(async()=>{const e=await r.e(2372).then(r.bind(r,62372)),t=await e.default({locateFile:e=>(0,_.s)(`esri/libs/basisu/${e}`)});return t.initializeBasis(),t})(),n}let n;var s=r(92993),T=r(63907);let R=null,o=null;class A{constructor(e,t){this.internalFormat=e,this.compressedTexture=t}}async function a(e){await i();const t=function(e,t=!1){const r=new OffscreenCanvas(e.width,e.height),_=r.getContext("2d");return t&&(_.translate(0,r.height),_.scale(1,-1)),_.drawImage(e,0,0),_.getImageData(0,0,r.width,r.height).data}(e.data,e.flipped),r=await C(t,e.width,e.height,e.hasMipmap),_=r?await N(r,e.hasETC,e.hasS3TC):null;return{result:new A(_?.internalFormat??null,_?.compressedTexture??null)}}async function i(){return null==o&&(o=E(),R=await E()),o}async function C(e,t,r,_,E=255,n=0,s=!1,T=!1){null==R&&(R=await i());const o=new R.BasisEncoder;o.setUASTC(!1),o.setHDR(!1),o.setPerceptual(!T),o.setCheckForAlpha(!0),o.setForceAlpha(!1),o.setRenormalize(T),o.setMipGen(_),o.setMipSRGB(!T),o.setCreateKTX2File(!0),o.setKTX2UASTCSupercompression(!1),o.setKTX2SRGBTransferFunc(!T),o.setQualityLevel(E),o.setCompressionLevel(n);const A=new Uint8Array(25165824);o.setSliceSourceImage(0,new Uint8Array(e),t,r,s);const a=o.encode(A),C=new Uint8Array(A.buffer,0,a),N=new R.KTX2File(new Uint8Array(C));return N.isValid()?(o.delete(),C):(N.close(),N.delete(),o.delete(),null)}async function N(e,t,r){null==R&&(R=await i());const _=new R.KTX2File(new Uint8Array(e));_.startTranscoding();const[E,n]=t?_.getHasAlpha()?[s.n.ETC2_RGBA,T.CQ.COMPRESSED_RGBA8_ETC2_EAC]:[s.n.ETC1_RGB,T.CQ.COMPRESSED_RGB8_ETC2]:r?_.getHasAlpha()?[s.n.BC3_RGBA,T.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT]:[s.n.BC1_RGB,T.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT]:[s.n.RGBA32,T.Ab.RGBA],o=_.getLevels(),A=[];for(let e=0;e<o;e++)A.push(new Uint8Array(_.getImageTranscodedSizeInBytes(e,0,0,E))),_.transcodeImage(A[e],e,0,0,E,0,-1,-1);return _.close(),_.delete(),{internalFormat:n,compressedTexture:{type:"compressed",levels:A}}}},63907:(e,t,r)=>{var _,E,n,s,T,R,o,A,a,i,C,N,S,O,c,u,l,I,L,d,G,D,M;r.d(t,{Ab:()=>O,Ac:()=>o,Ap:()=>S,CQ:()=>B,Cj:()=>C,Co:()=>L,H0:()=>c,Hr:()=>M,MT:()=>a,NV:()=>_,NZ:()=>T,Nm:()=>D,R:()=>d,Tb:()=>s,WR:()=>E,Y7:()=>R,_U:()=>I,dn:()=>n,eA:()=>i,ld:()=>u,nI:()=>P,pF:()=>N,pe:()=>A,vt:()=>G,yQ:()=>l}),function(e){e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e[e.COLOR=16384]="COLOR"}(_||(_={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(E||(E={})),function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(n||(n={})),function(e){e[e.ADD=32774]="ADD",e[e.MIN=32775]="MIN",e[e.MAX=32776]="MAX",e[e.SUBTRACT=32778]="SUBTRACT",e[e.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(s||(s={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",e[e.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER"}(T||(T={})),function(e){e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(R||(R={})),function(e){e[e.CW=2304]="CW",e[e.CCW=2305]="CCW"}(o||(o={})),function(e){e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT",e[e.HALF_FLOAT=5131]="HALF_FLOAT"}(A||(A={})),function(e){e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS"}(a||(a={})),function(e){e[e.ZERO=0]="ZERO",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP"}(i||(i={})),function(e){e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(C||(C={})),function(e){e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(N||(N={})),function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(S||(S={})),function(e){e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.RED=6403]="RED",e[e.RG=33319]="RG",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER"}(O||(O={})),function(e){e[e.RGBA4=32854]="RGBA4",e[e.R16F=33325]="R16F",e[e.RG16F=33327]="RG16F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.R32F=33326]="R32F",e[e.RG32F=33328]="RG32F",e[e.RGBA32F=34836]="RGBA32F",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB5_A1=32855]="RGB5_A1",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.RGB16F=34843]="RGB16F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.RGB565=36194]="RGB565",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2=32857]="RGB10_A2",e[e.RGB10_A2UI=36975]="RGB10_A2UI"}(c||(c={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.INT=5124]="INT",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(u||(u={})),function(e){e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(l||(l={})),function(e){e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_READ=35045]="STATIC_READ",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.STREAM_COPY=35042]="STREAM_COPY"}(I||(I={})),function(e){e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER"}(L||(L={})),function(e){e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(d||(d={})),function(e){e[e.Texture=0]="Texture",e[e.BufferObject=1]="BufferObject",e[e.VertexArrayObject=2]="VertexArrayObject",e[e.Shader=3]="Shader",e[e.Program=4]="Program",e[e.FramebufferObject=5]="FramebufferObject",e[e.Renderbuffer=6]="Renderbuffer",e[e.TransformFeedback=7]="TransformFeedback",e[e.Sync=8]="Sync",e[e.UNCOUNTED=9]="UNCOUNTED",e[e.LinesOfCode=9]="LinesOfCode",e[e.Uniform=10]="Uniform",e[e.COUNT=11]="COUNT"}(G||(G={})),function(e){e[e.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",e[e.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",e[e.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",e[e.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",e[e.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",e[e.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",e[e.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",e[e.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",e[e.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",e[e.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",e[e.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",e[e.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",e[e.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",e[e.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",e[e.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",e[e.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(D||(D={})),function(e){e[e.NONE=0]="NONE",e[e.BACK=1029]="BACK"}(M||(M={}));const P=33306;var B,U,f,h,F,p,m;!function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(B||(B={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT=5124]="INT",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(U||(U={})),function(e){e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS"}(f||(f={})),function(e){e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED"}(h||(h={})),function(e){e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED"}(F||(F={})),function(e){e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(p||(p={})),function(e){e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(m||(m={}))}}]);
|