@arcgis/core 4.34.0-next.76 → 4.34.0-next.78
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/Basemap.js +1 -1
- package/Ground.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/025f1d78dfa5ec93178b.js +1 -0
- package/assets/esri/core/workers/chunks/050429f516149ce3b517.js +1 -0
- package/assets/esri/core/workers/chunks/0652d7e525d99e39c957.js +1 -0
- package/assets/esri/core/workers/chunks/0668eee42b3169e1bf66.js +1 -0
- package/assets/esri/core/workers/chunks/07a355a9c95154971aab.js +1 -0
- package/assets/esri/core/workers/chunks/0dd6b8b3e634bb5f0ca7.js +1 -0
- package/assets/esri/core/workers/chunks/124f8757ea18bfd158ec.js +1 -0
- package/assets/esri/core/workers/chunks/1990162dcf73601d54f7.js +1 -0
- package/assets/esri/core/workers/chunks/20850b0fdb55fb17bc90.js +1 -0
- package/assets/esri/core/workers/chunks/{6a1b652ccbf58ac44658.js → 23e17b745adf71a5efc7.js} +1 -1
- package/assets/esri/core/workers/chunks/2605062e44f2d4e73f14.js +1 -0
- package/assets/esri/core/workers/chunks/29a86d51407310bb7745.js +1 -0
- package/assets/esri/core/workers/chunks/2a2a925c45d5fd58628b.js +1 -0
- package/assets/esri/core/workers/chunks/2fe96bf7dedef11a3b63.js +1 -0
- package/assets/esri/core/workers/chunks/3452ba299f6ce0582f09.js +1 -0
- package/assets/esri/core/workers/chunks/36a006c55766f9540bfc.js +1 -0
- package/assets/esri/core/workers/chunks/{18641332bee3e9b9c44a.js → 388482cea4b9fdeaf06e.js} +1 -1
- package/assets/esri/core/workers/chunks/3b23c37e5bc552dc81d4.js +1 -0
- package/assets/esri/core/workers/chunks/{9325000c87295c473291.js → 3b2ef975831eb75b40fb.js} +1 -1
- package/assets/esri/core/workers/chunks/3ff3e1507220d3869c76.js +1 -0
- package/assets/esri/core/workers/chunks/43818bf53dd5445a7bdb.js +1 -0
- package/assets/esri/core/workers/chunks/4823e4522bd7379d858e.js +1 -0
- package/assets/esri/core/workers/chunks/49e6202da7a20f06c661.js +353 -0
- package/assets/esri/core/workers/chunks/{b818b5e392d5eb7c7e70.js → 4e6e8dda6c12f6fbed8e.js} +1 -1
- package/assets/esri/core/workers/chunks/5019f1b8186a65a0313b.js +1 -0
- package/assets/esri/core/workers/chunks/512dcd6e34e217029391.js +1 -0
- package/assets/esri/core/workers/chunks/5248581d23ada240c78d.js +1 -0
- package/assets/esri/core/workers/chunks/614a00a3179f8fe23f45.js +1 -0
- package/assets/esri/core/workers/chunks/{5477ff0ce432c9e5b3ab.js → 6201356f7f91e5c06425.js} +1 -1
- package/assets/esri/core/workers/chunks/6271a706ac3fcba91432.js +1 -0
- package/assets/esri/core/workers/chunks/6593b419339e7598b760.js +1 -0
- package/assets/esri/core/workers/chunks/{51ddda291bbbf5db9905.js → 65e279516170ddbd4a65.js} +1 -1
- package/assets/esri/core/workers/chunks/67fdc8074cdcf374af9a.js +1 -0
- package/assets/esri/core/workers/chunks/6dafb2b95bae552c1cc2.js +1 -0
- package/assets/esri/core/workers/chunks/7680d4d739f7aa3f7ae1.js +1 -0
- package/assets/esri/core/workers/chunks/7889a909394c61a9d3e0.js +1 -0
- package/assets/esri/core/workers/chunks/79e965e8f7cf822b4f45.js +1 -0
- package/assets/esri/core/workers/chunks/804e3b3df375177e6c86.js +1 -0
- package/assets/esri/core/workers/chunks/81a8addcb858086ff9ee.js +1 -0
- package/assets/esri/core/workers/chunks/83065bef261314f9b2c5.js +1 -0
- package/assets/esri/core/workers/chunks/8a5e40f48a8265fd1b42.js +1 -0
- package/assets/esri/core/workers/chunks/8bd6c27a93a697a7fa3d.js +1 -0
- package/assets/esri/core/workers/chunks/8c94448a44fb27054a22.js +1 -0
- package/assets/esri/core/workers/chunks/92d0e0155563c6355079.js +1 -0
- package/assets/esri/core/workers/chunks/{c86f5bb199cf046b8952.js → 930322c9790572bd0c49.js} +1 -1
- package/assets/esri/core/workers/chunks/96a14689815bec741308.js +1 -0
- package/assets/esri/core/workers/chunks/97d71459ad72b4b780a3.js +1 -0
- package/assets/esri/core/workers/chunks/9835c579edfc08125d31.js +1 -0
- package/assets/esri/core/workers/chunks/9971de3f38a55735cec9.js +1 -0
- package/assets/esri/core/workers/chunks/99ac292a858bbedc6a89.js +1 -0
- package/assets/esri/core/workers/chunks/9ce599dc1d385e6893c1.js +1 -0
- package/assets/esri/core/workers/chunks/{fec572f03f9514244972.js → a05a7df07b74e1957538.js} +1 -1
- package/assets/esri/core/workers/chunks/a7e649b3b02e664ada80.js +1 -0
- package/assets/esri/core/workers/chunks/a8a79a5c804ef715aa94.js +1 -0
- package/assets/esri/core/workers/chunks/acb49f3d2b783e81a215.js +1 -0
- package/assets/esri/core/workers/chunks/adc61d88c3c6936ad75a.js +1 -0
- package/assets/esri/core/workers/chunks/afa3ca2bd2648774f133.js +1 -0
- package/assets/esri/core/workers/chunks/afb76f9d6abedef771df.js +1 -0
- package/assets/esri/core/workers/chunks/b168b6ffc16cd509d316.js +1 -0
- package/assets/esri/core/workers/chunks/b19d723d09f5bea9ca27.js +1 -0
- package/assets/esri/core/workers/chunks/b246ed6d86c2c8df56fb.js +1 -0
- package/assets/esri/core/workers/chunks/b4a053063e6022080d31.js +1 -0
- package/assets/esri/core/workers/chunks/b4ba7f8ea81522ad1e2e.js +1 -0
- package/assets/esri/core/workers/chunks/b97f224972f1b1abaee8.js +1 -0
- package/assets/esri/core/workers/chunks/b9e725d2b5a7d0132663.js +1 -0
- package/assets/esri/core/workers/chunks/bbb3b32affde9ea78534.js +1 -0
- package/assets/esri/core/workers/chunks/bbb585f0b484ab5eabb3.js +1 -0
- package/assets/esri/core/workers/chunks/bc83bcfe123525d21884.js +1 -0
- package/assets/esri/core/workers/chunks/c799f1c03cb22ef52f5f.js +1 -0
- package/assets/esri/core/workers/chunks/cac5732f9dfece4bf2c5.js +1 -0
- package/assets/esri/core/workers/chunks/cafc19bf2caaf7a8c2e8.js +1 -0
- package/assets/esri/core/workers/chunks/cc7423413747566f56e2.js +1 -0
- package/assets/esri/core/workers/chunks/ccd157ede169b93eea65.js +1 -0
- package/assets/esri/core/workers/chunks/ce0bf0d0cd9e9a90093b.js +1 -0
- package/assets/esri/core/workers/chunks/ce49ff6bf20cff349726.js +1 -0
- package/assets/esri/core/workers/chunks/d1657a29321adb259166.js +1 -0
- package/assets/esri/core/workers/chunks/d2b69f91eb85b561fe01.js +1 -0
- package/assets/esri/core/workers/chunks/d51e8eeb1e1eb0605cc9.js +1 -0
- package/assets/esri/core/workers/chunks/d69bd6b5d781a6c527d1.js +1 -0
- package/assets/esri/core/workers/chunks/d7fc8ea2ff527a09f4b9.js +1 -0
- package/assets/esri/core/workers/chunks/d8494617cebc68e50d35.js +1 -0
- package/assets/esri/core/workers/chunks/d89832617bac4890893e.js +1 -0
- package/assets/esri/core/workers/chunks/{d55c55d39a253630d228.js → db2396bf062468ee8b60.js} +1 -1
- package/assets/esri/core/workers/chunks/e4833b718a813a8d125b.js +1 -0
- package/assets/esri/core/workers/chunks/{d1f181f91b36351f1d3b.js → e7af5caab9aa9b6a12e3.js} +1 -1
- package/assets/esri/core/workers/chunks/e81386199a6db9a50fd3.js +1 -0
- package/assets/esri/core/workers/chunks/f45c343527709f6f91c2.js +1 -0
- package/assets/esri/core/workers/chunks/f5710ced8d38f9a90fc5.js +1 -0
- package/assets/esri/core/workers/chunks/f592c4e5e1746d4619db.js +1 -0
- package/assets/esri/core/workers/chunks/f8d2c52cc51d5f1bbce2.js +1 -0
- package/assets/esri/core/workers/chunks/feed74ed275f21a68a1b.js +1 -0
- package/assets/esri/core/workers/chunks/ffee8cc83d703c1dc0c0.js +1 -0
- package/config.js +1 -1
- package/kernel.js +1 -1
- package/layers/Layer.js +1 -1
- package/layers/catalog/catalogUtils.js +1 -1
- package/layers/mixins/ScaleRangeLayer.js +1 -1
- package/package.json +1 -1
- package/support/LayersMixin.js +1 -1
- package/support/TablesMixin.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/support/symbolUtils.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
- package/assets/esri/core/workers/chunks/03fac1122eb73bb14d2d.js +0 -1
- package/assets/esri/core/workers/chunks/0434a490326c0de47c22.js +0 -1
- package/assets/esri/core/workers/chunks/0618ea8bf9da93d713b1.js +0 -1
- package/assets/esri/core/workers/chunks/06b65105b15abf4d0fbf.js +0 -1
- package/assets/esri/core/workers/chunks/0b71100fa1e7ca706dbb.js +0 -1
- package/assets/esri/core/workers/chunks/13de06e614adf92239fe.js +0 -1
- package/assets/esri/core/workers/chunks/14a22d1a0eefa970efa1.js +0 -1
- package/assets/esri/core/workers/chunks/181b3564a0e3939020bc.js +0 -1
- package/assets/esri/core/workers/chunks/199a17b0a0f75cbaed16.js +0 -1
- package/assets/esri/core/workers/chunks/19c1f1431c0b2f4525a2.js +0 -1
- package/assets/esri/core/workers/chunks/21bfad7283620766d9cd.js +0 -1
- package/assets/esri/core/workers/chunks/28a2f74d4a449386d082.js +0 -1
- package/assets/esri/core/workers/chunks/2afafaf40293d5ab1d8e.js +0 -1
- package/assets/esri/core/workers/chunks/2c399991e8627baa51b3.js +0 -1
- package/assets/esri/core/workers/chunks/2f44848916051f5501eb.js +0 -1
- package/assets/esri/core/workers/chunks/3064320d54a9b48bd697.js +0 -1
- package/assets/esri/core/workers/chunks/38e7d1c6987aaa9b520b.js +0 -1
- package/assets/esri/core/workers/chunks/3a5f0c759dd2f4638343.js +0 -1
- package/assets/esri/core/workers/chunks/3bf99037befdedd75cb4.js +0 -1
- package/assets/esri/core/workers/chunks/3e9c3e7c5cf7c0afbc80.js +0 -1
- package/assets/esri/core/workers/chunks/3fecfe4f8ca2a5fd7360.js +0 -1
- package/assets/esri/core/workers/chunks/43095bed5456251940b9.js +0 -1
- package/assets/esri/core/workers/chunks/433c4dc666a6b2c99063.js +0 -353
- package/assets/esri/core/workers/chunks/451761c7bd2da530e1d0.js +0 -1
- package/assets/esri/core/workers/chunks/4832faefd3b7edc17c84.js +0 -1
- package/assets/esri/core/workers/chunks/48449abe795cb7a831eb.js +0 -1
- package/assets/esri/core/workers/chunks/4bc091770bab38874848.js +0 -1
- package/assets/esri/core/workers/chunks/52286d4135b8395a3400.js +0 -1
- package/assets/esri/core/workers/chunks/540506802776f77e47f3.js +0 -1
- package/assets/esri/core/workers/chunks/56f54d007b0da0d908aa.js +0 -1
- package/assets/esri/core/workers/chunks/5879cebb22157b0b4998.js +0 -1
- package/assets/esri/core/workers/chunks/58cc06ed86301f4cee75.js +0 -1
- package/assets/esri/core/workers/chunks/61896e64e9ef49b4bb1b.js +0 -1
- package/assets/esri/core/workers/chunks/6531f33d6710960079e9.js +0 -1
- package/assets/esri/core/workers/chunks/6e59ba2afd444eb4be18.js +0 -1
- package/assets/esri/core/workers/chunks/70367da4ba916376f40c.js +0 -1
- package/assets/esri/core/workers/chunks/7430c462c350fdd26349.js +0 -1
- package/assets/esri/core/workers/chunks/7aaa6b318195d7342e6c.js +0 -1
- package/assets/esri/core/workers/chunks/7b73a808922b52755abd.js +0 -1
- package/assets/esri/core/workers/chunks/7e746427375e83fc4351.js +0 -1
- package/assets/esri/core/workers/chunks/810e4c16c6eae420508b.js +0 -1
- package/assets/esri/core/workers/chunks/8b587affaaa0b1e4368c.js +0 -1
- package/assets/esri/core/workers/chunks/8bc8caa384b24af12411.js +0 -1
- package/assets/esri/core/workers/chunks/8fc13e0e1a5a8f3e4798.js +0 -1
- package/assets/esri/core/workers/chunks/90540fdfb0c5f68aa959.js +0 -1
- package/assets/esri/core/workers/chunks/92d5b0559e128d62fbda.js +0 -1
- package/assets/esri/core/workers/chunks/9304c3cdf732745577fd.js +0 -1
- package/assets/esri/core/workers/chunks/9421389888d4d9e4e809.js +0 -1
- package/assets/esri/core/workers/chunks/98c94a99e2e04d5ae65f.js +0 -1
- package/assets/esri/core/workers/chunks/9c35860439948638cb8f.js +0 -1
- package/assets/esri/core/workers/chunks/a0a519f498e9ea7623ff.js +0 -1
- package/assets/esri/core/workers/chunks/a2baeb9fa805c3537049.js +0 -1
- package/assets/esri/core/workers/chunks/a33e1a031ba9f028023d.js +0 -1
- package/assets/esri/core/workers/chunks/a9f6054d86982b9e5a7c.js +0 -1
- package/assets/esri/core/workers/chunks/ad3ebd4f05cc673140f3.js +0 -1
- package/assets/esri/core/workers/chunks/b6c6f82df3b60c2f831f.js +0 -1
- package/assets/esri/core/workers/chunks/b70d71144a060f7eeeeb.js +0 -1
- package/assets/esri/core/workers/chunks/b7f5a26ff3a73c64552d.js +0 -1
- package/assets/esri/core/workers/chunks/bd2dc1282c49125ede89.js +0 -1
- package/assets/esri/core/workers/chunks/bd4e64d6e73cd4db9695.js +0 -1
- package/assets/esri/core/workers/chunks/bfbbf180c2c8fdbb6731.js +0 -1
- package/assets/esri/core/workers/chunks/c07507a42def2bd2a222.js +0 -1
- package/assets/esri/core/workers/chunks/c34a164a8ece4cb33e81.js +0 -1
- package/assets/esri/core/workers/chunks/c6fecf2bbd2a711f15d3.js +0 -1
- package/assets/esri/core/workers/chunks/d95554f43694b4769675.js +0 -1
- package/assets/esri/core/workers/chunks/dd587d51dad2d82708d1.js +0 -1
- package/assets/esri/core/workers/chunks/e086b835a98b71a46825.js +0 -1
- package/assets/esri/core/workers/chunks/e3f2cdf5d71a7040894b.js +0 -1
- package/assets/esri/core/workers/chunks/e54df2128039425a9090.js +0 -1
- package/assets/esri/core/workers/chunks/e58c5c8639aa837c84d1.js +0 -1
- package/assets/esri/core/workers/chunks/e92d9e0ac789bcf1cdf4.js +0 -1
- package/assets/esri/core/workers/chunks/eb0a5d592f5805836203.js +0 -1
- package/assets/esri/core/workers/chunks/eccb4550edc4752cf41a.js +0 -1
- package/assets/esri/core/workers/chunks/f3ef59991c577ff5e825.js +0 -1
- package/assets/esri/core/workers/chunks/f749e2a89a14ab89ae59.js +0 -1
- package/assets/esri/core/workers/chunks/f7f5c4f30e5a0ddbf9a4.js +0 -1
- package/assets/esri/core/workers/chunks/fb0f729eff2f2911d6c3.js +0 -1
- package/assets/esri/core/workers/chunks/fdf2b980e8a8aa47ce91.js +0 -1
- package/assets/esri/core/workers/chunks/fe24c6d61a50898549a5.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5950,7694,9211,9692],{4197:(e,t,n)=>{n.d(t,{Vj:()=>u,cj:()=>a,jh:()=>o,l5:()=>l,xm:()=>s});var r=n(34275),i=n(9093);function o(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function s(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function l(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e){return[...e]}function u(e){const t=(0,i.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},6797:(e,t,n)=>{n.d(t,{Mj:()=>d,Ui:()=>h,w2:()=>f});var r=n(65008),i=n(7762),o=n(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof r.A}function a(e){return e instanceof i.A?Object.keys(e.items):l(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof i.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const r=a(e),i=a(t);if(0===r.length&&0===i.length)return;if(!r.length||!i.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=i.filter(e=>!r.includes(e)),d=r.filter(e=>!i.includes(e)),f=r.filter(n=>i.includes(n)&&u(e,n)!==u(t,n)).concat(o,d).sort(),h=c(e);if(h&&s.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let y;const m=l(e)&&l(t);for(const r of f){const i=u(e,r),o=u(t,r);let s;if((m||"function"!=typeof i&&"function"!=typeof o)&&i!==o&&(null!=i||null!=o)){if(n&&n[r]&&"function"==typeof n[r])s=n[r]?.(i,o);else if(i instanceof Date&&o instanceof Date){if(i.getTime()===o.getTime())continue;s={type:"complete",oldValue:i,newValue:o}}else s="object"==typeof i&&"object"==typeof o&&c(i)===c(o)?p(i,o):{type:"complete",oldValue:i,newValue:o};null!=s&&(null!=y?y.diff[r]=s:y={type:"partial",diff:{[r]:s}})}}return y}function d(e,t){return function(e,t){if(null==e)return!1;const n=t.split(".");let r=e;for(const e of n){if("complete"===r.type)return!0;if("partial"!==r.type)return!1;{const t=r.diff[e];if(!t)return!1;r=t}}return!0}(e,t)}function f(e,t){if(!e)return!1;if("partial"===e.type){const n=Object.keys(e.diff);return 1===n.length&&n[0]===t}return!1}function h(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},9093:(e,t,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>i,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(e,t,n,r,i,o,s,l,a,u,c,p,d,f,h,y){return[e,t,n,r,i,o,s,l,a,u,c,p,d,f,h,y]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>i});var r=n(37539);function i(e,t,n,i,o,s,l=Math.floor(e.length/3)){const a=(0,r.jd)(t,o);if(null==a)return!1;if(a===r.pO){if(e===i&&n===s)return!0;const t=n+3*l;for(let r=n,o=s;r<t;r++,o++)i[o]=e[r];return!0}const u=n+3*l;for(let t=n,r=s;t<u;t+=3,r+=3)a(e,t,i,r);return!0}},13069:(e,t,n)=>{n.d(t,{AG:()=>l,lk:()=>i,vD:()=>s,yS:()=>o});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},17311:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(31635),i=n(65008),o=n(4576),s=n(60999),l=n(7762),a=n(10107),u=(n(44208),n(53966),n(40608)),c=n(30524),p=n(43668);let d=class extends i.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,s.UT)(()=>(0,p.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??n.e(9926).then(n.bind(n,29926)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new l.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const n=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(n.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:n,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(n,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const n=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of n){const n=t.split("."),r=this.fieldsIndex.get(n.at(-1)??"");r&&e.add(r.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const n of t){const t=this.fieldsIndex.get(n);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,n){const r=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],n)).get(r)??""}async getTitles(e,t,n){const r=new Map,i=n?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:o}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);n?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:s,workingTitle:l}=this,a=l&&s;t.forEach(t=>{const n=t.getObjectId()??t.attributes[e.objectIdField],u=a?o({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:s,globalAttributes:this._createFormattedAttributes(e,t,i).global,layer:e,text:l}):"";r.set(n,u)})}catch{}return r}async _checkAndReQueryGraphics(e,t){const n=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(o.Ru);if(n.length!==t.length)return t;if(t.some(e=>!(0,c.Kl)(e,this.requiredFields))){const r=e.createQuery();r.where="1=1",r.outFields=[...this.requiredFields],r.objectIds=n;const i=await e.queryFeatures(r);if(i?.features.length===t.length)return i.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const n of e){if(!n.fieldName)continue;const e=this.fieldsIndex.get(n.fieldName),r=e?.name??n.fieldName;n.fieldName=r,t.set(r.toLowerCase(),n)}return t}_createFormattedAttributes(e,t,n="system"){const r=this.effectivePopupTemplate?.fieldInfos??[],i={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const n=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{i[`expression/${e.name}`]=e.func({vars:{$feature:n}})}catch{}}const o={...t.attributes,...i};return{global:this._featureUtils.formatAttributes({fieldInfos:r,attributes:o,graphic:t,timeZone:n,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,c.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,r.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"_arcadeTask",null),(0,r.Cg)([(0,a.MZ)()],d.prototype,"_featureUtils",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"featureUtilsPromise",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"calculatedExpressions",null),(0,r.Cg)([(0,a.MZ)()],d.prototype,"displayField",void 0),(0,r.Cg)([(0,a.MZ)()],d.prototype,"effectivePopupTemplate",void 0),(0,r.Cg)([(0,a.MZ)()],d.prototype,"expressionsUsedInTitle",null),(0,r.Cg)([(0,a.MZ)()],d.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,a.MZ)()],d.prototype,"fieldInfoMap",null),(0,r.Cg)([(0,a.MZ)()],d.prototype,"fields",void 0),(0,r.Cg)([(0,a.MZ)()],d.prototype,"objectIdField",void 0),(0,r.Cg)([(0,a.MZ)()],d.prototype,"requiredFields",null),d=(0,r.Cg)([(0,u.$)("esri.layers.support.TitleCreator")],d)},29005:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(31635),i=n(69540),o=n(66552),s=n(25482),l=n(10107),a=(n(44208),n(53966),n(87811),n(40608));const u=new o.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let c=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],c.prototype,"description",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"drawingTool",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],c.prototype,"prototype",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],c.prototype,"thumbnail",void 0),c=(0,r.Cg)([(0,a.$)("esri.layers.support.FeatureTemplate")],c)},32730:(e,t,n)=>{n.d(t,{BI:()=>m,D3:()=>h,XJ:()=>y,lc:()=>f,mX:()=>b,rU:()=>g,tH:()=>I});var r=n(799);const i="__begin__",o="__end__",s=new RegExp(i,"ig"),l=new RegExp(o,"ig"),a=new RegExp("^"+i,"i"),u=new RegExp(o+"$","i"),c='"',p=c+" + ",d=" + "+c;function f(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function y(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=f(e.labelExpression),t.type="conventional"),t}function m(e){const t=y(e);if(!t)return null;switch(t.type){case"conventional":return b(t.expression);case"arcade":return t.expression}return null}function g(e){const t=y(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(w);return t?.[1].trim()||null}(t.expression);case"arcade":return I(t.expression)}return null}function b(e){let t;return e?(t=(0,r.HC)(e,e=>i+'$feature["'+e+'"]'+o),t=a.test(t)?t.replace(a,""):c+t,t=u.test(t)?t.replace(u,""):t+c,t=t.replaceAll(s,p).replaceAll(l,d)):t='""',t}const w=/^\s*\{([^}]+)\}\s*$/i,M=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,v=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,F=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function I(e){if(!e)return null;let t=M.exec(e)||v.exec(e);return t?t[1]||t[3]:(t=F.exec(e),t?t[2]:null)}},37352:(e,t,n)=>{n.d(t,{A:()=>u});var r,i=n(31635),o=n(7762),s=n(25482),l=n(10107),a=(n(44208),n(53966),n(87811),n(40608));let u=r=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],u.prototype,"floorField",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=r=(0,i.Cg)([(0,a.$)("esri.layers.support.LayerFloorInfo")],u)},37531:(e,t,n)=>{n.d(t,{dt:()=>d,GG:()=>g,UQ:()=>m,Sx:()=>c});var r=n(68197),i=n(60999),o=(n(44208),n(51850)),s=(n(76369),n(62046)),l=(n(2741),n(78888),n(66344));new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new l.q(1e3),new r.A([128,128,128]);var a=n(28975),u=n(33910);function c(e,t){if(!e)return null;let n=null;return(0,u.wk)(e)?n=function(e){const t=e.symbolLayers;if(!t)return null;let n=null;return t.forEach(e=>{"object"===e.type&&e.resource?.href||(n="water"===e.type?e.color:e.material?e.material.color:null)}),n?new r.A(n):null}(e):(0,u.$y)(e)&&(n="cim"===e.type?(0,s.Nk)(e):e.color?new r.A(e.color):null),n?p(n,t):null}function p(e,t){if(null==t||null==e)return e;const n=e.toRgba();return n[3]=n[3]*t,new r.A(n)}function d(e,t,n){e&&(t||null!=n)&&(t&&(t=new r.A(t)),(0,u.wk)(e)?function(e,t,n){const i=e.symbolLayers;if(!i)return;const o=(e,i=!1)=>{let o=t??e??null;return null!=n?.override&&(!o&&i&&(o=new r.A([255,255,255])),o&&(o.a=n.override)),p(o,n?.add)};i.forEach(e=>{if("water"===e.type)return void(e.color=p(e.color,n?.add));const t=null!=e.material?e.material.color:null,r=o(t,"icon"===e.type&&null!=e.resource?.href);null==e.material?e.material=new a.N({color:r}):e.material.color=r,"outline"in e&&e.outline?.color&&null!=n?.add&&(e.outline.color=p(e.outline.color,n.add)),"marker"in e&&null!=e.marker&&(e.marker.color=o(e.marker.color))})}(e,t,n):(0,u.$y)(e)&&function(e,t,n){t=t??e.color,null!=n?.override&&t&&(t.a=n.override),t&&(e.color=p(t,n?.add)),"outline"in e&&e.outline?.color&&(e.outline.color=p(e.outline.color,n?.add))}(e,t,n))}function f(e){for(const t of e)if("number"==typeof t)return t;return null}function h(e,t,n){for(let r=0;r<3;r++){const i=e[r];switch(i){case"symbol-value":{const e=n[r];return null!=e?e/t[r]:1}case"proportional":break;default:if(i&&t[r])return i/t[r]}}return null}function y(e,t,n,r){switch(e){case"proportional":return n*r;case"symbol-value":return null!=t?t:n;default:return e}}async function m(e,t){if(e&&t)return(0,u.wk)(e)?async function(e,t){const r=e.symbolLayers;r&&await(0,i.jJ)(r,async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){const n=t[2];"number"==typeof n&&(e.size=n)}(e,t);break;case"icon":case"line":case"text":!function(e,t){const n=f(t);null!=n&&(e.size=n)}(e,t);break;case"path":!function(e,t){const n=h(t,o.Un,[e.width,void 0,e.height]);null!=n&&(e.width=y(t[0],e.width,1,n),e.height=y(t[2],e.height,1,n))}(e,t);break;case"object":await async function(e,t){const{resourceSize:r,symbolSize:i}=await async function(e){const{computeObjectLayerResourceSize:t}=await n.e(5404).then(n.bind(n,95404)),r=await t(e,10),{width:i,height:o,depth:s}=e,l=[i,s,o];let a=1;for(let e=0;e<3;e++){const t=l[e];if(null!=t){a=t/r[e];break}}for(let e=0;e<3;e++)null==l[e]&&(l[e]=r[e]*a);return{resourceSize:r,symbolSize:l}}(e),o=h(t,r,i);null!=o&&(e.width=y(t[0],i[0],r[0],o),e.depth=y(t[1],i[1],r[1],o),e.height=y(t[2],i[2],r[2],o))}(e,t)}}(e,t))}(e,t):void((0,u.$y)(e)&&function(e,t){const n=f(t);if(null!=n)switch(e.type){case"simple-marker":e.size=n;break;case"picture-marker":{const t=e.width/e.height;t>1?(e.width=n,e.height=n*t):(e.width=n*t,e.height=n);break}case"simple-line":e.width=n;break;case"text":e.font.size=n}}(e,t))}function g(e,t,n){if(e&&null!=t)if((0,u.wk)(e)){const r=e.symbolLayers;r&&r.forEach(e=>{if("object"===e.type)switch(n){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)})}else(0,u.$y)(e)&&("simple-marker"!==e.type&&"picture-marker"!==e.type&&"text"!==e.type||(e.angle+=t))}},37539:(e,t,n)=>{n.d(t,{pO:()=>y,jd:()=>d,Tp:()=>f,w5:()=>p});var r=n(34727),i=n(83047),o=n(73941),s=n(79258);Math.PI;const l=s.$O.radius,a=s.$O.eccentricitySquared,u={a1:l*a,a2:l*a*l*a,a3:l*a*a/2,a4:l*a*l*a*2.5,a5:l*a+l*a*a/2,a6:1-a};s.$O.radius,s.$O.flattening,s.Sw.radius,s.Sw.flattening,s.sH.radius,s.sH.flattening,s.sH.radius;var c=n(21325);const p={2:{5:y,7:null,9:null,10:y,1:I,6:null,8:null,0:null,3:g,11:b,2:y,4:_},5:{5:y,7:null,9:null,10:y,1:I,6:null,8:null,0:null,3:g,11:b,2:y,4:_},7:{5:null,7:y,9:null,10:y,1:null,6:F,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:y,10:y,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:m,7:null,9:null,10:m,1:function(e,t,n,r){const i=e[t]/R,o=O-2*Math.atan(Math.exp(-e[t+1]/R)),s=R+e[t+2],l=Math.cos(o)*s;n[r]=Math.cos(i)*l,n[r+1]=Math.sin(i)*l,n[r+2]=Math.sin(o)*s},6:null,8:null,0:null,3:y,11:function(e,t,n,r){m(e,t,n,r),b(n,r,n,r)},2:m,4:function(e,t,n,r){m(e,t,n,r),_(n,r,n,r)}},4:{5:S,7:null,9:null,10:S,1:function(e,t,n,r){S(e,t,n,r),I(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){S(e,t,n,r),g(n,r,n,r)},11:function(e,t,n,r){S(e,t,n,r),b(n,r,n,r)},2:S,4:y},1:{5:A,7:null,9:null,10:A,1:y,6:null,8:null,0:null,3:function(e,t,n,r){A(e,t,n,r),g(n,r,n,r)},11:function(e,t,n,r){A(e,t,n,r),b(n,r,n,r)},2:A,4:function(e,t,n,r){A(e,t,n,r),_(n,r,n,r)}},6:{5:null,7:x,9:null,10:x,1:null,6:y,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:T,10:T,1:null,6:null,8:y,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:y,3:null,11:null,2:null,4:null},10:{5:y,7:y,9:y,10:y,1:I,6:F,8:v,0:null,3:g,11:b,2:y,4:_},11:{5:w,7:null,9:null,10:w,1:function(e,t,n,r){w(e,t,n,r),I(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){w(e,t,n,r),g(n,r,n,r)},11:y,2:w,4:function(e,t,n,r){w(e,t,n,r),_(n,r,n,r)}}};function d(e,t){return f(e,t)?.projector}function f(e,t){if(null==e||null==t)return null;if(j.source.spatialReference===e&&j.dest.spatialReference===t)return j;const n=h(e,j.source),r=h(t,j.dest);return 0===n&&0===r?(0,c.aI)(e,t)?j.projector=y:j.projector=null:j.projector=p[n][r],j}function h(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,o.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===o.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===o.FY.wkt?t.spatialReferenceId=6:e.wkt===o.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function y(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t])}function m(e,t,n,r){n[r]=Z*(e[t]/R),n[r+1]=Z*(O-2*Math.atan(Math.exp(-e[t+1]/R))),n[r+2]=e[t+2]}function g(e,t,n,i){!function(e,t,n,i,o){const s=.4999999*Math.PI,l=(0,r.qE)(k*e[t+1],-s,s),a=Math.sin(l);n[i++]=k*e[t]*o.radius,n[i++]=o.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[i]=e[t+2]}(e,t,n,i,s.$O)}function b(e,t,n,r){n[r]=e[t]*E,n[r+1]=e[t+1]*E,n[r+2]=e[t+2]}function w(e,t,n,r){n[r]=e[t]*P,n[r+1]=e[t+1]*P,n[r+2]=e[t+2]}function M(e,t,n,r,i){const o=i+e[t+2],s=k*e[t+1],l=k*e[t],a=Math.cos(s)*o;n[r]=Math.cos(l)*a,n[r+1]=Math.sin(l)*a,n[r+2]=Math.sin(s)*o}function v(e,t,n,r){M(e,t,n,r,s.Sw.radius)}function F(e,t,n,r){M(e,t,n,r,s.sH.radius)}function I(e,t,n,r){M(e,t,n,r,s.$O.radius)}function C(e,t,n,i,o){const s=e[t],l=e[t+1],a=e[t+2],u=Math.sqrt(s*s+l*l+a*a),c=(0,r.YN)(a/(0===u?1:u)),p=Math.atan2(l,s);n[i++]=Z*p,n[i++]=Z*c,n[i]=u-o}function T(e,t,n,r){C(e,t,n,r,s.Sw.radius)}function x(e,t,n,r){C(e,t,n,r,s.sH.radius)}function A(e,t,n,r){C(e,t,n,r,s.$O.radius)}function _(e,t,n,r){!function(e,t,n,r,i){const o=k*e[t],s=k*e[t+1],l=e[t+2],a=Math.sin(s),u=Math.cos(s),c=i.radius/Math.sqrt(1-i.eccentricitySquared*a*a);n[r++]=(c+l)*u*Math.cos(o),n[r++]=(c+l)*u*Math.sin(o),n[r++]=(c*(1-i.eccentricitySquared)+l)*a}(e,t,n,r,s.$O)}function S(e,t,n,r){const i=u,o=e[t],l=e[t+1],a=e[t+2];let c,p,d,f,h,y,m,g,b,w,M,v,F,I,C,T,x,A,_,S,j;c=Math.abs(a),p=o*o+l*l,d=Math.sqrt(p),f=p+a*a,h=Math.sqrt(f),S=Math.atan2(l,o),y=a*a/f,m=p/f,I=i.a2/h,C=i.a3-i.a4/h,m>.3?(g=c/h*(1+m*(i.a1+I+y*C)/h),_=Math.asin(g),w=g*g,b=Math.sqrt(1-w)):(b=d/h*(1-y*(i.a5-I-m*C)/h),_=Math.acos(b),w=1-b*b,g=Math.sqrt(w)),M=1-s.$O.eccentricitySquared*w,v=s.$O.radius/Math.sqrt(M),F=i.a6*v,I=d-v*b,C=c-F*g,x=b*I+g*C,T=b*C-g*I,A=T/(F/M+x),_+=A,j=x+T*A/2,a<0&&(_=-_),n[r++]=Z*S,n[r++]=Z*_,n[r]=j}const j={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:y},k=(0,r.kU)(1),Z=(0,r.KJ)(1),O=.5*Math.PI,R=s.$O.radius,E=R*Math.PI/180,P=180/(R*Math.PI)},41366:(e,t,n)=>{n.d(t,{K:()=>d,Q:()=>u});var r=n(31635),i=n(66552),o=n(53966),s=n(10107),l=(n(44208),n(87811),n(93223)),a=n(40608);const u=(0,i.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),c="percent-of-total",p="field",d=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,n=null!=this.normalizationTotal;return t||n?(e=t&&p||n&&c||null,t&&n&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==p&&e!==c||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],n.prototype,"normalizationField",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],n.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],n.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],n.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,l.e)(u,{name:"parameters.normalizationType"})],n.prototype,"normalizationType",null),n=(0,r.Cg)([(0,a.$)("esri.rest.support.NormalizationBinParametersMixin")],n),n}},41560:(e,t,n)=>{n.d(t,{Ch:()=>s,mW:()=>o});var r=n(34727),i=n(39516);function o(e,t){return{...t,filterMode:e.mode}}function s(e,t,n){const o=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:r}of e.filters)t[0]=Math.max(t[0],c(n)),t[1]=Math.min(t[1],p(r));return t}(e);if(o&&((0,r.gg)(t,o[0])||(0,r.ZH)(n,o[1])))return"";const s=Array.from(l(e,t,n)),a=function(e,t,n){if(0===e.length)return!0;const i=c(e.at(0)?.minScale),o=p(e.at(-1)?.maxScale);if((0,r.ZH)(i,t)||(0,r.gg)(o,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],i=e[t+1];if((0,r.ZH)(c(i.minScale),p(n.maxScale)))return!0}return!1}(s,t,n)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,i.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,n){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const r of e.filters)a(r.minScale,r.maxScale,t,n)&&(yield r)}}function a(e,t,n,i){return e=c(e),n=c(n),t=p(t),!(!(0,r.Sp)(n,e)&&(i??n)>e||(0,r.Hx)(t,n)||void 0!==i&&(0,r.Sp)(i,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function p(e){return e||0}},45067:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(31635),i=n(69540),o=n(66552),s=n(25482),l=n(10107),a=(n(44208),n(53966),n(87811),n(40608));const u=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),c=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let p=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,r.Cg)([(0,l.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"cardinality",void 0),(0,r.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],p.prototype,"catalogId",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"composite",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"id",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyField",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyFieldInRelationshipTable",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"name",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"relatedTableId",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"relationshipTableId",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:c.read,write:c.write}})],p.prototype,"role",void 0),p=(0,r.Cg)([(0,a.$)("esri.layers.support.Relationship")],p)},50498:(e,t,n)=>{n.d(t,{Ye:()=>p,gy:()=>c,yR:()=>d});var r=n(66552),i=n(5443),o=n(91075),s=n(48526),l=n(86738),a=n(39829),u=n(82799);const c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:o.A,key:"type",typeMap:{extent:i.A,multipoint:s.A,point:l.A,polyline:u.A,polygon:a.A}}},52106:(e,t,n)=>{n.d(t,{A:()=>F});var r,i=n(31635),o=n(37838),s=n(69540),l=n(51447),a=n(25482),u=n(53966),c=n(36708),p=n(24326),d=n(10107),f=(n(44208),n(87811),n(40608)),h=n(12195),y=n(65864),m=n(50498),g=n(55156),b=n(60950),w=n(54339),M=n(33910);function v(e){if(null==e)return null;const t={};for(const n in e){const r=e[n];r&&(t[n]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let F=class extends((0,s.OU)(a.o)){static{r=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new r({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,w.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,w.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:v(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(i.action=r),"attributes"===e&&(i.attributeName=r),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,c.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,i.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const r=(0,y.rS)(e[n]);r&&(t[n]=r)}return 0!==Object.keys(t).length?t:null}}})],F.prototype,"aggregateGeometries",null),(0,i.Cg)([(0,d.MZ)({value:null})],F.prototype,"attributes",null),(0,i.Cg)([(0,d.MZ)({value:null,types:m.yR,json:{read:y.rS}})],F.prototype,"geometry",null),(0,i.Cg)([(0,d.MZ)({type:Boolean})],F.prototype,"isAggregate",void 0),(0,i.Cg)([(0,d.MZ)({clonable:!1})],F.prototype,"layer",void 0),(0,i.Cg)([(0,d.MZ)({clonable:"reference"})],F.prototype,"origin",void 0),(0,i.Cg)([(0,d.MZ)({type:o.A,value:null})],F.prototype,"popupTemplate",null),(0,i.Cg)([(0,d.MZ)({clonable:"reference"})],F.prototype,"sourceLayer",void 0),(0,i.Cg)([(0,d.MZ)({value:null,types:M.Es})],F.prototype,"symbol",null),(0,i.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],F.prototype,"_version",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,value:!0})],F.prototype,"visible",null),F=r=(0,i.Cg)([(0,f.$)("esri.Graphic")],F)},52136:(e,t,n)=>{n.d(t,{p:()=>s});var r=n(31635),i=n(10107),o=(n(44208),n(53966),n(87811),n(40608));const s=e=>{const t=e;let n=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,r.Cg)([(0,i.MZ)({type:String})],n.prototype,"apiKey",null),n=(0,r.Cg)([(0,o.$)("esri.layers.mixins.APIKeyMixin")],n),n}},54339:(e,t,n)=>{function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const r of t.fieldNames)n.push(e.attributes[r]??null);return JSON.stringify(n)}}}function i(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>r,r:()=>i})},55156:(e,t,n)=>{n.d(t,{I:()=>i,e:()=>r});const r=Symbol("idFieldsProviderSymbol");function i(e){return(t=e)&&r in t?e[r]:void 0;var t}},62046:(e,t,n)=>{n.d(t,{Fe:()=>c,Nk:()=>o});var r=n(68197),i=n(93397);function o(e){const t=[];return s((0,i.lW)(e),t),t.length?new r.A((0,i.e6)(t[0])):null}function s(e,t){if(!e)return;let n;n="CIMTextSymbol"===e.type?e.symbol:e;const r="CIMPolygonSymbol"===e.type;if(n?.symbolLayers)for(const e of n.symbolLayers)if(!(e.colorLocked||r&&((0,i.mA)(e)||(0,i.MM)(e)&&e.markerPlacement&&(0,i.zr)(e.markerPlacement))))switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor&&l(t,e.tintColor);break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{s(e.symbol,t)});break;case"CIMSolidStroke":case"CIMSolidFill":l(t,e.color);break;case"CIMGradientFill":a(t,e);break;case"CIMHatchFill":s(e.lineSymbol,t)}}function l(e,t){for(const n of e)if(n.join(".")===t.join("."))return;e.push(t)}function a(e,t){const n=t.colorRamp?.type;switch(n){case"CIMMultipartColorRamp":t.colorRamp.colorRamps?.forEach(t=>{"CIMLinearContinuousColorRamp"===t.type&&u(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":u(e,t.colorRamp)}}function u(e,t){t&&(t.fromColor&&l(e,t.fromColor),t.toColor&&l(e,t.toColor))}function c(e,t,n){t instanceof r.A||(t=new r.A(t));const o=(0,i.lW)(e);o&&p(o,t,n)}function p(e,t,n){if(!e)return;let r;r="CIMTextSymbol"===e.type?e.symbol:e;const o="CIMPolygonSymbol"===r?.type;if(r?.symbolLayers)for(const e of r.symbolLayers){if(e.colorLocked)continue;if(o)if(n){const{layersToColor:t}=n;if(((0,i.mA)(e)||(0,i.MM)(e)&&e.markerPlacement&&(0,i.zr)(e.markerPlacement))&&"fill"===t||(0,i.jn)(e)&&"outline"===t)continue}else if((0,i.mA)(e)||(0,i.MM)(e)&&e.markerPlacement&&(0,i.zr)(e.markerPlacement))continue;const r=t.toArray();switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor=r;break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{p(e.symbol,t,n)});break;case"CIMSolidStroke":case"CIMSolidFill":e.color=r;break;case"CIMGradientFill":d(e,t);break;case"CIMHatchFill":p(e.lineSymbol,t,n)}}}function d(e,t){const n=e.colorRamp?.type;switch(n){case"CIMMultipartColorRamp":e.colorRamp.colorRamps?.forEach(e=>{"CIMLinearContinuousColorRamp"===e.type&&f(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":f(e.colorRamp,t)}}function f(e,t){if(e&&(e.fromColor&&(e.fromColor=t.toArray()),e.toColor)){const n=t.clone();n.a=0,e.toColor=n.toArray()}}},62815:(e,t,n)=>{n.d(t,{N:()=>s});var r=n(83047),i=n(73941),o=n(21325);function s(e,t,n){if(null==t||null==n||n.vcsWkid||(0,o.aI)(t,n)||(0,i.xP)(t)||(0,i.xP)(n))return null;const s=(0,r.G9)(t)/(0,r.G9)(n);if(1===s)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,s);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}(e,s);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}(e,s);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,s);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,s);default:return null}}},70328:(e,t,n)=>{n.d(t,{BI:()=>w,DC:()=>p,Ej:()=>f,Ie:()=>g,Jt:()=>b,Ne:()=>h,RF:()=>c,aI:()=>v,fA:()=>s,gE:()=>a,hZ:()=>m,iT:()=>d,is:()=>M,qv:()=>F,vI:()=>y,vY:()=>l,v_:()=>I,vt:()=>o,w1:()=>u});var r=n(5443),i=(n(19419),n(4197));function o(e=I){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,n,r,i,s,l=o()){return l[0]=e,l[1]=t,l[2]=n,l[3]=r,l[4]=i,l[5]=s,l}function l(e,t=o()){return function(e,t,n,r=o()){return m(r,F),function(e,t,n=0,r=t.length/3){let i=e[0],o=e[1],s=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<r;e++)i=Math.min(i,t[n+3*e]),o=Math.min(o,t[n+3*e+1]),s=Math.min(s,t[n+3*e+2]),l=Math.max(l,t[n+3*e]),a=Math.max(a,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=i,e[1]=o,e[2]=s,e[3]=l,e[4]=a,e[5]=u}(r,e,t,n),r}(e,0,e.length/3,t)}function a(e,t=(0,i.jh)(24)){const[n,r,o,s,l,a]=e;return t[0]=n,t[1]=r,t[2]=o,t[3]=n,t[4]=r,t[5]=a,t[6]=n,t[7]=l,t[8]=o,t[9]=n,t[10]=l,t[11]=a,t[12]=s,t[13]=r,t[14]=o,t[15]=s,t[16]=r,t[17]=a,t[18]=s,t[19]=l,t[20]=o,t[21]=s,t[22]=l,t[23]=a,t}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function y(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?m(e,F):o(F)}function b(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function w(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function M(e){return 6===e.length}function v(e,t,n){if(null==e||null==t)return e===t;if(!M(e)||!M(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const F=[1/0,1/0,1/0,-1/0,-1/0,-1/0],I=[0,0,0,0,0,0];o()},81583:(e,t,n)=>{n.d(t,{L:()=>l,g:()=>s});var r=n(60999),i=n(7762),o=n(92474);async function s(e,t){return await e.load(),l(e,t)}async function l(e,t){const n=[],s=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?s(...t):i.A.isCollection(t)?t.forEach(e=>s(e)):(0,o.Zm)(t)&&n.push(t))};t(s);let l=null;if(await(0,r.Tj)(n,async e=>{const t=await(0,r.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||l||(l=t)}),l)throw l.error;return e}},85334:(e,t,n)=>{n.d(t,{$:()=>g,IB:()=>s,Iy:()=>v,N2:()=>b,RH:()=>M,ZD:()=>w});var r=n(68197),i=n(4576),o=n(4718);function s(e){return"r"in e&&"g"in e&&"b"in e}function l(e){return"h"in e&&"s"in e&&"v"in e}function a(e){return"l"in e&&"a"in e&&"b"in e}function u(e){return"l"in e&&"c"in e&&"h"in e}n(34727),n(87317),n(91829);const c=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],p=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function d(e,t){const n=[];let r,i;if(e[0].length!==t.length)throw new Error("dimensions do not match");const o=e.length,s=e[0].length;let l=0;for(r=0;r<o;r++){for(l=0,i=0;i<s;i++)l+=e[r][i]*t[i];n.push(l)}return n}function f(e){const t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),n=d(c,t);return{x:100*n[0],y:100*n[1],z:100*n[2]}}function h(e){const t=d(p,[e.x/100,e.y/100,e.z/100]).map(e=>{const t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function y(e){const t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function m(e){const t=e.l,n=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*n[0],y:100*n[1],z:108.883*n[2]}}function g(e){return s(e)?e:u(e)?function(e){return h(m(function(e){const t=e.l,n=e.c,r=e.h;return{l:t,a:n*Math.cos(r),b:n*Math.sin(r)}}(e)))}(e):a(e)?function(e){return h(m(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?h(e):l(e)?function(e){const t=(e.h+360)%360/60,n=e.s/100,r=e.v/100*255,i=r*n,o=i*(1-Math.abs(t%2-1));let s;switch(Math.floor(t)){case 0:s={r:i,g:o,b:0};break;case 1:s={r:o,g:i,b:0};break;case 2:s={r:0,g:i,b:o};break;case 3:s={r:0,g:o,b:i};break;case 4:s={r:o,g:0,b:i};break;case 5:case 6:s={r:i,g:0,b:o};break;default:s={r:0,g:0,b:0}}return s.r=Math.round(s.r+r-i),s.g=Math.round(s.g+r-i),s.b=Math.round(s.b+r-i),s}(e):e}function b(e){return l(e)?e:function(e){const t=e.r,n=e.g,r=e.b,i=Math.max(t,n,r),o=i-Math.min(t,n,r);let s=i,l=0===o?0:i===t?(n-r)/o%6:i===n?(r-t)/o+2:(t-n)/o+4,a=0===o?0:o/s;return l<0&&(l+=6),l*=60,a*=100,s*=100/255,{h:l,s:a,v:s}}(g(e))}function w(e){return a(e)?e:function(e){return y(f(e))}(g(e))}function M(e){return u(e)?e:function(e){return function(e){const t=e.l,n=e.a,r=e.b,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o=o>0?o:o+2*Math.PI,{l:t,c:i,h:o}}(y(f(e)))}(g(e))}function v(e,t,n={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new r.A(e):e)).length||1===t){const n=[],r=e[0];for(let e=0;e<t;e++)n.push(r.clone());return n}if(n.shuffle&&(e=(0,i.k4)((0,o.o8)(e),n.seed)),e.length>=t){const n=[],r=(e.length-1)/(t-1);for(let i=0;i<t;i++){const t=Math.round(i*r);n.push(e[t].clone())}return n}return function(e,t,n={}){const r=[],o=e.length-1,s=Math.ceil((t-e.length)/o);e:for(let i=0;i<o;i++){const o=e[i],l=e[i+1];for(let i=1;i<=s;i++){const a=i/(s+1);if(r.push(I(o,l,a,n)),r.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,i.k4)(r,n.seed??1)]}(e,t,n)}const F=(e,t)=>{const n=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+n))};function I(e,t,n,o={}){const s=e.r,l=e.g,a=e.b,u=t.r,c=t.g,p=t.b,d=Math.round(s+(u-s)*n),f=Math.round(l+(c-l)*n),h=Math.round(a+(p-a)*n);if(!o.offset)return new r.A([d,f,h]);const y=(0,i.Mo)(o.seed);return new r.A([F(d,y),F(f,y),F(h,y)])}},95466:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(49186),i=n(53966),o=n(91869),s=n(3330),l=n(12195),a=n(30524),u=n(98623),c=n(56400),p=n(96285);const d=new Map;class f{static fromJSON(e){return new f(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new f(e.fields??[],g(e))}static fromLayerJSON(e){return new f(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const n=[];for(const e of this.fields){const t=e?.name,r=y(t);if(t&&r){const i=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(r,e),n.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(i.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):m.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?s.GB.instance:t===u.n$?p.mQ.utcInstance:(0,o.tE)(d,t,()=>p.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,l.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function y(e){return(0,a.rS)(e)?.toLowerCase()??""}const m=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:i}=e,o=(r?"startField"in r?r.startField:r.startTimeField:"")??"",s=(r?"endField"in r?r.endField:r.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.dateFieldsTimeReference?(0,c.ZS)(i.dateFieldsTimeReference):l??u.n$:null,p=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.timeReference?(0,c.ZS)(r.timeReference):l:null,d=new Map([[h(i?.creationDateField??""),a],[h(i?.editDateField??""),a],[h(o),p],[h(s),p]]);for(const{name:r,type:i}of e.fields)if(m.has(i))t.set(r,u.L5);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(r,null);else if(n)t.set(r,u.L5);else{const e=d.get(h(r??""))??l;t.set(r,e)}return t}},97483:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Pe});var r=n(31635),i=n(69540),o=n(7762),s=n(49186),l=n(81583),a=n(91869),u=n(92071),c=n(74887),p=n(36708),d=n(39516),f=n(10107),h=(n(44208),n(53966)),y=(n(87811),n(36005)),m=n(40608),g=n(4146),b=n(52136),w=n(18768),M=n(63074),v=n(69208),F=n(6455),I=n(47685),C=n(87796),T=n(16131),x=n(8303),A=n(54310),_=n(25036),S=n(82935),j=n(60694),k=n(10873),Z=n(15426),O=n(17036),R=n(30524),E=n(85334),P=n(90360),L=n(86162),N=n(92438),G=n(96576),q=n(93618),z=n(62046),$=n(37531);const U={key:"type",base:N.A,errorContext:"renderer",typeMap:{simple:G.A,"unique-value":q.A,"class-breaks":L.A}},D=(0,P.C)({types:U}),V=["#ed5151","#149ece","#a7c636","#9e559c","#fc921f","#ffde3e","#f789d8","#b7814a","#3caf99","#6b6bd6","#b54779","#7f7f7f"];var B=n(37838),K=n(4902),J=n(4718),H=n(92474),W=n(97768),Q=n(93637),Y=n(43937),X=n(89317),ee=n(38141),te=n(16930),ne=n(55156),re=n(60950),ie=n(89808),oe=n(99959);const se=Symbol("isSubtypeGroupGraphicOriginSymbol");var le;class ae extends oe.A{get[(le=se,re.ym)](){return this.sublayer}get[ne.e](){return this.sublayer}get[ie.Q](){return this.layer}constructor(e){super(),this[le]=!0,this.type="subtype-group",this.sublayer=e}get layer(){return this.sublayer.parent}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var ue=n(29005),ce=n(46499),pe=n(39383),de=n(17311),fe=n(61956),he=n(30291),ye=n(59868),me=n(43440);const ge=(0,O.p)();let be=0;function we(e,t){let n=e.json.write;return"object"!=typeof n&&(n=e.json.write={}),n.ignoreOrigin=!0,t?.spatialOnly&&(n.layerContainerTypes=X.K),e}function Me(e){const t={write:{ignoreOrigin:!0}};return e?.name&&(t.name=e.name),"object"==typeof t.write&&(e?.spatialOnly&&(t.write.layerContainerTypes=X.K),e?.target&&(t.write.target=e.target)),t}function ve(e){switch(e){case"point":case"multipoint":return ye.UK.clone();case"polyline":return ye.A7.clone();case"polygon":case"multipatch":return ye.Cx.clone();default:return null}}function Fe(e,t){return null==e?null:t.subtypes?.find(t=>t.code===e)}function Ie(e,t){let n=null;switch(t.geometryType){case"esriGeometryPoint":case"esriGeometryMultipoint":n="point";break;case"esriGeometryPolyline":n="line";break;case"esriGeometryPolygon":case"esriGeometryMultiPatch":n="polygon";break;default:t.type,n=null}const r={},i=Fe(e,t);if(null!=i){const{defaultValues:e}=i;for(const t in e)r[t]=e[t]}return r[t.subtypeField]=e,new ue.A({name:"New Feature",drawingTool:n,prototype:{attributes:r}})}let Ce=class extends((0,u.P)((0,i.OU)((0,K.sA)(H.x_)))){constructor(e){super(e),this.attributeTableTemplate=null,this.charts=null,this.editingEnabled=!0,this.fieldOverrides=null,this.fieldsIndex=null,this.formTemplate=null,this.graphicOrigin=new ae(this),this.id=`${Date.now().toString(16)}-subtype-sublayer-${be++}`,this.type="subtype-sublayer",this.labelsVisible=!0,this.labelingInfo=null,this.layerType="ArcGISFeatureLayer",this.legendEnabled=!0,this.listMode="show",this.minScale=0,this.maxScale=0,this.opacity=1,this.parent=null,this.popupEnabled=!0,this.popupTemplate=null,this.subtypeCode=null,this.templates=null,this.title=null,this.visible=!0}load(e){return(0,R.yp)(this.renderer,this.fieldsIndex),Promise.resolve(this)}get _titleCreator(){const e=this._get("_titleCreator");return(0,W.pR)(e),new de.A({fieldsIndex:this.fieldsIndex,objectIdField:this.objectIdField,displayField:this.parent?.displayField??"",fields:this.fields,effectivePopupTemplate:this.popupTemplate??this.defaultPopupTemplate})}get capabilities(){return this.parent?.capabilities}get effectiveCapabilities(){return this.parent?.effectiveCapabilities}get effectiveEditingEnabled(){const{parent:e}=this;return e?e.effectiveEditingEnabled&&this.editingEnabled:this.editingEnabled}get elevationInfo(){return this.parent?.elevationInfo}get featureTitleFields(){return[...this._titleCreator.requiredFields]}writeFieldOverrides(e,t,n){const{fields:r,parent:i}=this;let o;if(r){o=[];let e=0;r.forEach(({name:t,alias:n,editable:r,visible:s})=>{if(!s)return;const l=i?.fields?.find(e=>e.name===t);if(!l)return;const a={name:t};let u=!1;n!==l.alias&&(a.alias=n,u=!0),r!==l.editable&&(a.editable=r,u=!0),o.push(a),u&&e++}),0===e&&o.length===r.length&&(o=null)}else o=(0,J.o8)(e);o?.length&&(0,Q.sM)(n,o,t)}get fields(){const{parent:e,fieldOverrides:t,subtypeCode:n}=this,r=e?.fields;if(!e||!r?.length)return null;const{subtypes:i,subtypeField:o}=e,s=i?.find(e=>e.code===n),l=s?.defaultValues,a=s?.domains,u=[];for(const e of r){const r=e.clone(),{name:i}=r,s=t?.find(e=>e.name===i);if(r.visible=!t?.length||!!s,s){const{alias:e,editable:t}=s;e&&(r.alias=e),!1===t&&(r.editable=!1)}const c=l?.[i]??null;r.defaultValue=i===o?n:c;const p=a?.[i]??null;r.domain=i===o?null:p?"inherited"===p.type?r.domain:p.clone():null,u.push(r)}return u}get floorInfo(){return this.parent?.floorInfo}get isTable(){return!!this.parent?.isTable}get geometryType(){return this.parent?.geometryType}get globalIdField(){return this.parent?this.parent.globalIdField:(h.A.getLogger(this).error(Ae("globalIdField")),null)}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}get objectIdField(){return this.parent||h.A.getLogger(this).error(Ae("objectIdField")),this.parent?.objectIdField}get defaultPopupTemplate(){return this.createPopupTemplate()}get relationships(){return this.parent?.relationships}set renderer(e){(0,R.yp)(e,this.fieldsIndex),this._override("renderer",e)}get renderer(){if(this._isOverridden("renderer"))return this._get("renderer");const{parent:e}=this;return e&&!e.isTable&&"mesh"!==e.geometryType?function(e){return new G.A({symbol:ve(e)})}(e.geometryType):null}readRendererFromService(e,t,n){if("Table"===t.type)return null;const r=t.drawingInfo?.renderer,i=D(r,t,n);let o;const{subtypeCode:s}=this;if(null!=s&&function(e,t){return!(!t||"unique-value"!==e?.type||null==e.field||e.field.toLowerCase()!==t.toLowerCase()||e.field2||e.field3||e.valueExpression)}(i,t.subtypeField)){const e=i.uniqueValueInfos?.find(({value:e})=>(e="number"==typeof e?String(e):e)===String(s));e&&(o=new G.A({symbol:e.symbol}))}else"simple"!==i?.type||i.visualVariables?.length||(o=i);return o}readRenderer(e,t,n){const r=t?.layerDefinition?.drawingInfo?.renderer;if(!r)return;const i=r.visualVariables?.some(e=>"rotationInfo"!==e.type);return i?void 0:D(r,t,n)||void 0}get spatialReference(){return this.parent?.spatialReference??te.A.WGS84}get subtypeField(){return this.parent?.subtypeField}readTemplatesFromService(e,t){return[Ie(this.subtypeCode,t)]}readTitleFromService(e,t){const n=Fe(this.subtypeCode,t);return null!=n?n.name:null}get url(){return this.parent?.url}get userHasUpdateItemPrivileges(){return!!this.parent?.userHasUpdateItemPrivileges}async addAttachment(e,t){const{parent:n}=this;if(!n)throw Ae("addAttachment");if(e.getAttribute(n.subtypeField)!==this.subtypeCode)throw new s.A("subtype-sublayer:addAttachment","The feature provided does not belong to this SubtypeSublayer");return n.addAttachment(e,t)}async updateAttachment(e,t,n){const{parent:r}=this;if(!r)throw Ae("updateAttachment");if(e.getAttribute(r.subtypeField)!==this.subtypeCode)throw new s.A("subtype-sublayer:updateAttachment","The feature provided does not belong to this SubtypeSublayer");return r.updateAttachment(e,t,n)}async deleteAttachments(e,t){const{parent:n}=this;if(!n)throw Ae("deleteAttachments");if(e.getAttribute(n.subtypeField)!==this.subtypeCode)throw new s.A("subtype-sublayer:deleteAttachments","The feature provided does not belong to this SubtypeSublayer");return n.deleteAttachments(e,t)}async applyEdits(e,t){if(!this.parent)throw Ae("applyEdits");return this.parent.applyEdits(e,t)}createPopupTemplate(e){let t=this;const{parent:n,fields:r,title:i}=this;if(n){const{displayField:e,editFieldsInfo:o,objectIdField:s}=n;t={displayField:e,editFieldsInfo:o,fields:r,objectIdField:s,title:i}}return(0,he.tn)(t,e)}createQuery(){if(!this.parent)throw Ae("createQuery");const e=(0,Z.VZ)(this.parent),t=`${this.parent.subtypeField}=${this.subtypeCode}`;return e.where=(0,d.mA)(t,this.parent.definitionExpression),e}getFeatureTitle(e,t){return this._titleCreator.getTitle(this,e,t)}getFeatureTitles(e,t){return this._titleCreator.getTitles(this,e,t)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){if(!t?.excludeImpliedDomains&&this.parent){const t=(0,Z.pc)(this.parent,e);if(t)return t}return this._getLayerDomain(e)}async queryAttachments(e,t){const n=await this.load();if(!n.parent)throw Ae("queryAttachments");const r=e.clone();return r.where=xe(r.where,n.parent.subtypeField,n.subtypeCode),n.parent.queryAttachments(e,t)}async queryFeatureCount(e,t){const n=await this.load();if(!n.parent)throw Ae("queryFeatureCount");return n.parent.queryFeatureCount(Te(n.parent,n,e),t)}async queryFeatures(e,t){const n=await this.load();if(!n.parent)throw Ae("queryFeatures");return n.parent.queryFeatures(Te(n.parent,n,e),t)}async queryObjectIds(e,t){const n=await this.load();if(!n.parent)throw Ae("queryObjectIds");return n.parent.queryObjectIds(Te(n.parent,n,e),t)}async queryRelatedFeatures(e,t){const n=await this.load();if(!n.parent)throw Ae("queryRelatedFeatures");return n.parent.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){const n=await this.load();if(!n.parent)throw Ae("queryRelatedFeaturesCount");return n.parent.queryRelatedFeaturesCount(e,t)}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}};(0,r.Cg)([(0,f.MZ)({clonable:!1,readOnly:!0})],Ce.prototype,"_titleCreator",null),(0,r.Cg)([(0,f.MZ)({type:me.A,json:Me({name:"attributeTableInfo"})})],Ce.prototype,"attributeTableTemplate",void 0),(0,r.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ce.prototype,"capabilities",null),(0,r.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ce.prototype,"effectiveCapabilities",null),(0,r.Cg)([(0,f.MZ)({json:Me()})],Ce.prototype,"charts",void 0),(0,r.Cg)([(0,f.MZ)({type:Boolean,nonNullable:!0,json:Me({name:"enableEditing"})})],Ce.prototype,"editingEnabled",void 0),(0,r.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],Ce.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ce.prototype,"elevationInfo",null),(0,r.Cg)([(0,f.MZ)({clonable:!1,readOnly:!0})],Ce.prototype,"featureTitleFields",null),(0,r.Cg)([(0,f.MZ)({json:{name:"layerDefinition.fieldOverrides",origins:{service:{read:!1}},write:{ignoreOrigin:!0,allowNull:!0}}})],Ce.prototype,"fieldOverrides",void 0),(0,r.Cg)([(0,Y.K)("fieldOverrides")],Ce.prototype,"writeFieldOverrides",null),(0,r.Cg)([(0,f.MZ)({...ge.fields,readOnly:!0,json:{read:!1}})],Ce.prototype,"fields",null),(0,r.Cg)([(0,f.MZ)(ge.fieldsIndex)],Ce.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ce.prototype,"floorInfo",null),(0,r.Cg)([(0,f.MZ)({type:ee.A,json:Me({name:"formInfo"})})],Ce.prototype,"formTemplate",void 0),(0,r.Cg)([(0,f.MZ)({readOnly:!0,clonable:!1})],Ce.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,f.MZ)({type:String,clonable:!1,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],Ce.prototype,"id",void 0),(0,r.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ce.prototype,"isTable",null),(0,r.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ce.prototype,"geometryType",null),(0,r.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ce.prototype,"globalIdField",null),(0,r.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ce.prototype,"type",void 0),(0,r.Cg)([(0,f.MZ)(we((0,J.o8)(k.kF)))],Ce.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,f.MZ)({type:[ce.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",origins:{service:{read:!1}},read:{reader:pe.w},write:{ignoreOrigin:!0,layerContainerTypes:X.K}}})],Ce.prototype,"labelingInfo",void 0),(0,r.Cg)([(0,f.MZ)({type:["ArcGISFeatureLayer"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,layerContainerTypes:X.K}}})],Ce.prototype,"layerType",void 0),(0,r.Cg)([(0,f.MZ)(we((0,J.o8)(k.fV)))],Ce.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,f.MZ)({type:["show","hide"]})],Ce.prototype,"listMode",void 0),(0,r.Cg)([(0,f.MZ)((()=>{const e=(0,J.o8)(k.hn);return e.json.origins.service.read=!1,we(e,{spatialOnly:!0})})())],Ce.prototype,"minScale",void 0),(0,r.Cg)([(0,f.MZ)((()=>{const e=(0,J.o8)(k.hG);return e.json.origins.service.read=!1,we(e,{spatialOnly:!0})})())],Ce.prototype,"maxScale",void 0),(0,r.Cg)([(0,f.MZ)({readOnly:!0})],Ce.prototype,"effectiveScaleRange",null),(0,r.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ce.prototype,"objectIdField",null),(0,r.Cg)([(0,f.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0,json:Me({spatialOnly:!0})})],Ce.prototype,"opacity",void 0),(0,r.Cg)([(0,f.MZ)({clonable:!1})],Ce.prototype,"parent",void 0),(0,r.Cg)([(0,f.MZ)(we((0,J.o8)(k.M6)))],Ce.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,f.MZ)({type:B.A,json:Me({name:"popupInfo"})})],Ce.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,f.MZ)({readOnly:!0})],Ce.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ce.prototype,"relationships",null),(0,r.Cg)([(0,f.MZ)({types:U,json:Me({target:"layerDefinition.drawingInfo.renderer",spatialOnly:!0})})],Ce.prototype,"renderer",null),(0,r.Cg)([(0,y.w)("service","renderer",["drawingInfo.renderer","subtypeField","type"])],Ce.prototype,"readRendererFromService",null),(0,r.Cg)([(0,y.w)("renderer",["layerDefinition.drawingInfo.renderer"])],Ce.prototype,"readRenderer",null),(0,r.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ce.prototype,"spatialReference",null),(0,r.Cg)([(0,f.MZ)({type:Number,json:{origins:{service:{read:!1}},write:{ignoreOrigin:!0}}})],Ce.prototype,"subtypeCode",void 0),(0,r.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ce.prototype,"subtypeField",null),(0,r.Cg)([(0,f.MZ)({type:[ue.A],json:Me({name:"layerDefinition.templates"})})],Ce.prototype,"templates",void 0),(0,r.Cg)([(0,y.w)("service","templates",["geometryType","subtypeField","subtypes","type"])],Ce.prototype,"readTemplatesFromService",null),(0,r.Cg)([(0,f.MZ)({type:String,json:Me()})],Ce.prototype,"title",void 0),(0,r.Cg)([(0,y.w)("service","title",["subtypes"])],Ce.prototype,"readTitleFromService",null),(0,r.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ce.prototype,"url",null),(0,r.Cg)([(0,f.MZ)({readOnly:!0})],Ce.prototype,"userHasUpdateItemPrivileges",null),(0,r.Cg)([(0,f.MZ)({type:Boolean,nonNullable:!0,json:Me({name:"visibility",spatialOnly:!0})})],Ce.prototype,"visible",void 0),Ce=(0,r.Cg)([(0,m.$)("esri.layers.support.SubtypeSublayer")],Ce);const Te=(e,t,n)=>{if(!n)return t.createQuery();const r=fe.A.from(n);return r.where=xe(r.where,e.subtypeField,t.subtypeCode),r},xe=(e,t,n)=>{const r=new RegExp(`${t}\\s*=\\s*\\d+`),i=`${t}=${n}`,o=e??"";return r.test(o)?o.replace(r,i):(0,d.mA)(i,o)},Ae=e=>new s.A("subtype-sublayer:parent-missing",`This sublayer must have a parent SubtypeGroupLayer in order to use ${e}`);var _e=n(96184),Se=n(91908),je=n(54218);const ke="SubtypeGroupLayer";function Ze(e,t){return new s.A("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}function Oe(e,t){const n=[];for(const r of e){const e=new Ce;e.read(r,t),n.push(e)}return n}const Re=(0,O.p)();let Ee=class extends((0,C.j)((0,F.FJ)((0,I.w6)((0,M.dM)((0,S.e)((0,_.j)((0,A.J)((0,w.b)((0,T.q)((0,x.A)((0,u.P)((0,v.d)((0,b.p)((0,i.OU)(g.A))))))))))))))){constructor(...e){super(...e),this._sublayerLookup=new Map,this.fields=null,this.fieldsIndex=null,this.outFields=null,this.sublayers=new(o.A.ofType(Ce)),this.useUniqueColorsForSublayers=!0,this.supportedSourceTypes=new Set(["Feature Layer","Table"]),this.timeInfo=null,this.title="Layer",this.type="subtype-group",this._debouncedSaveOperations=(0,c.sg)(async(e,t,r)=>{const{save:i,saveAs:o}=await n.e(5740).then(n.bind(n,33359));switch(e){case 0:return i(this,t);case 1:return o(this,r,t)}}),this.addHandles((0,p.wB)(()=>this.sublayers,(e,t)=>this._handleSublayersChange(e,t),p.OH))}destroy(){this.source?.destroy()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null,n=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(c.QP).then(async()=>{if(!this.url)throw new s.A("subtype-grouplayer:missing-url-or-source","SubtypeGroupLayer must be created with either a url or a portal item");if(null==this.layerId)throw new s.A("subtype-grouplayer:missing-layerid","layerId is required for a SubtypeGroupLayer created with url");this._initLayerProperties(await this.createGraphicsSource(t))}).then(()=>(0,Z.VA)(this,"load",e));return this.addResolvingPromise(n),Promise.resolve(this)}get createQueryVersion(){return this.commitProperty("definitionExpression"),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&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}get effectiveEditingEnabled(){return(0,Z.C$)(this)}get operationalLayerType(){return this.isTable?"SubtypeGroupTable":"SubtypeGroupLayer"}set source(e){this._get("source")!==e&&this._set("source",e)}readTitleFromService(e,{name:t}){return this.url?(0,j.yG)(this.url,t):t}async addAttachment(e,t){const n=await(0,Z.Xl)(this,e,t,ke);return this.lastEditsEventDate=new Date,n}async updateAttachment(e,t,n){const r=await(0,Z.bt)(this,e,t,n,ke);return this.lastEditsEventDate=new Date,r}async applyEdits(e,t){return(0,Z.ct)(this,e,t)}async createGraphicsSource(e){const{default:t}=await(0,c.qr)(Promise.all([n.e(708),n.e(364),n.e(8628),n.e(2593),n.e(9062)]).then(n.bind(n,72593)),e);return new t({layer:this,supportedSourceTypes:this.supportedSourceTypes}).load({signal:e})}createQuery(){const e=(0,Z.VZ)(this),t=this.sublayers.map(e=>e.subtypeCode);return e.where=(0,d.mA)(`${this.subtypeField} IN (${t.join(",")})`,this.definitionExpression),e}async deleteAttachments(e,t){const n=await(0,Z.mm)(this,e,t,ke);return this.lastEditsEventDate=new Date,n}async fetchRecomputedExtents(e){return(0,Z.WP)(this,e,ke)}findSublayerForFeature(e){const t=this.fieldsIndex.get(this.subtypeField),n=e.attributes[t.name];return this.findSublayerForSubtypeCode(n)}findSublayerForSubtypeCode(e){return this._sublayerLookup.get(e)}getFieldDomain(e,t){if(!t?.excludeImpliedDomains){const t=(0,Z.pc)(this,e);if(t)return t}const n=(0,Z.Nv)(this,t?.feature);if(n){const t=n.domains?.[e];return"inherited"===t?.type?this._getLayerDomain(e):t}return this._getLayerDomain(e)}loadAll(){return(0,l.g)(this,e=>{e(this.sublayers)})}async queryAttachments(e,t){return(0,Z.lV)(this,e,t,ke)}async queryFeatures(e,t){const n=await this.load(),r=fe.A.from(e)??n.createQuery(),i=r.outFields??[];i.includes(this.subtypeField)||(i.push(this.subtypeField),r.outFields=i);const o=await n.source.queryFeatures(r,t);if(o?.features)for(const e of o.features){const t=this.findSublayerForFeature(e);e.origin=t?.graphicOrigin,e.layer=e.sourceLayer=this.findSublayerForFeature(e)}return o}async queryObjectIds(e,t){return(await(0,Z.sg)(this,e,t,ke)).filter(je.Et)}async queryFeatureCount(e,t){return(0,Z.Ye)(this,e,t,ke)}async queryExtent(e,t){return(0,Z.B5)(this,e,t,ke)}async queryRelatedFeatures(e,t){return(0,Z.hM)(this,e,t,ke)}async queryRelatedFeaturesCount(e,t){return(0,Z.S2)(this,e,t,ke)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}write(e,t){const{origin:n,layerContainerType:r,messages:i}=t;if(this.isTable){if("web-scene"===n||"web-map"===n&&"tables"!==r)return i?.push(Ze(this,"using a table source cannot be written to web scenes and web maps")),null}else if(this.loaded&&"web-map"===n&&"tables"===r)return i?.push(Ze(this,"using a non-table source cannot be written to tables in web maps")),null;return this.sublayers?.length?super.write(e,t):(i?.push(new s.A("web-document-write:invalid-property",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' has invalid value for 'sublayers' property. 'sublayers' collection should contain at least one sublayer`,{layer:this})),null)}serviceSupportsSpatialReference(e){return!!this.loaded&&(0,Se.D)(this,e)}async getFeatureTitle(e,t){const n=this.findSublayerForFeature(e);return n?await n.getFeatureTitle(e,t):this._getFeatureTitleForUnknownSublayer(e)}async getFeatureTitles(e,t){const n=new Map,r=new Map,i=[r];e.forEach(e=>{const t=this.findSublayerForFeature(e);if(t)(0,a.tE)(n,t,()=>[]).push(e);else{const t=e.getObjectId()??e.attributes[this.objectIdField];r.set(t,this._getFeatureTitleForUnknownSublayer(e))}});const o=await Promise.all(Array.from(n).map(([e,n])=>e.getFeatureTitles(n,t)));return o.forEach(e=>i.push(e)),new Map(i.flatMap(e=>[...e]))}get featureTitleFields(){const e=new Set;for(const t of this.sublayers){const n=t.featureTitleFields;for(const t of n)e.add(t)}return[...e]}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}_initLayerProperties(e){this._set("source",e);const{sourceJSON:t}=e;if(t&&(this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})),!this.subtypes?.length)throw new s.A("subtype-grouplayer:missing-subtypes","SubtypeGroupLayer must be created using a layer with subtypes");this._verifyFields(),(0,R.sv)(this.timeInfo,this.fieldsIndex)}async hasDataChanged(){return(0,Z.jp)(this)}_verifyFields(){const e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("SubtypeGroupLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some(e=>"geometry"===e.type)||console.log("SubtypeGroupLayer: 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+")")}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner"),this._sublayerLookup.clear()),e&&(e.forEach(e=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),e.on("after-remove",({item:e})=>{e.parent=null,this._sublayerLookup.delete(e.subtypeCode)})],"sublayers-owner"))}_getFeatureTitleForUnknownSublayer(e){const{displayField:t,fieldsIndex:n,objectIdField:r}=this;if(t&&n.has(t))return e.attributes[n.get(t).name]??"";const i=e.getObjectId();return null!=i?i.toString():r&&n.has(r)?e.attributes[n.get(r).name]??"":""}};(0,r.Cg)([(0,f.MZ)({readOnly:!0})],Ee.prototype,"createQueryVersion",null),(0,r.Cg)([(0,f.MZ)({readOnly:!0})],Ee.prototype,"editingEnabled",null),(0,r.Cg)([(0,f.MZ)({readOnly:!0})],Ee.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,f.MZ)({...Re.fields,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],Ee.prototype,"fields",void 0),(0,r.Cg)([(0,f.MZ)(Re.fieldsIndex)],Ee.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,f.MZ)(k.id)],Ee.prototype,"id",void 0),(0,r.Cg)([(0,f.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],Ee.prototype,"listMode",void 0),(0,r.Cg)([(0,f.MZ)({type:["SubtypeGroupLayer","SubtypeGroupTable"],json:{name:"layerType",read:{enabled:!0},write:{enabled:!0,ignoreOrigin:!0,isRequired:!0},origins:{"web-document":{name:"layerType",read:{enabled:!0},write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}},"portal-item":{name:"layerType",read:{enabled:!0},write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}}}}})],Ee.prototype,"operationalLayerType",null),(0,r.Cg)([(0,f.MZ)(Re.outFields)],Ee.prototype,"outFields",void 0),(0,r.Cg)([(0,f.MZ)({clonable:!1})],Ee.prototype,"source",null),(0,r.Cg)([(0,f.MZ)({type:o.A.ofType(Ce),json:{origins:{service:{read:{source:"subtypes",reader(e,t,n){let r=null;if(this.useUniqueColorsForSublayers){const i=function(e,t){const n=e.drawingInfo?.renderer,r=n?D(n,e,t):null;if("simple"===r?.type)return(0,$.Sx)(r.symbol,null)?r.symbol.clone():null}(t,n);r=i?function(e,t){return(0,E.Iy)(V,e,{offset:!0,shuffle:!0}).reverse().map(e=>{const n=t.clone();return"cim"===n.type?(0,z.Fe)(n,e):(0,$.dt)(n,e),new G.A({symbol:n})})}(e.length,i):null}const i=e.map(({code:e},i)=>{const o=new Ce({subtypeCode:e});o.read(t,n);const s=r?.[i];return s&&o.read({drawingInfo:{renderer:s.toJSON()}},n),o});return new(o.A.ofType(Ce))(i)}}}},read:{source:["layers","tables"],reader(e,t,n){let r;return"SubtypeGroupLayer"===t.layerType&&t.layers?.length?r=Oe(t.layers,n):"SubtypeGroupTable"===t.layerType&&t.tables?.length&&(r=Oe(t.tables,n)),new(o.A.ofType(Ce))(r)}},write:{ignoreOrigin:!0,writer(e,t,n,r){const i=[];for(const t of e){const e=t.write({},r);i.push(e)}this.isTable?t.tables=i:t.layers=i}}}})],Ee.prototype,"sublayers",void 0),(0,r.Cg)([(0,f.MZ)()],Ee.prototype,"useUniqueColorsForSublayers",void 0),(0,r.Cg)([(0,f.MZ)({type:_e.A})],Ee.prototype,"timeInfo",void 0),(0,r.Cg)([(0,f.MZ)({json:{origins:{"portal-item":{write:{enabled:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}}}})],Ee.prototype,"title",void 0),(0,r.Cg)([(0,y.w)("service","title",["name"])],Ee.prototype,"readTitleFromService",null),(0,r.Cg)([(0,f.MZ)({json:{read:!1}})],Ee.prototype,"type",void 0),(0,r.Cg)([(0,f.MZ)({clonable:!1,readOnly:!0})],Ee.prototype,"featureTitleFields",null),Ee=(0,r.Cg)([(0,m.$)("esri.layers.SubtypeGroupLayer")],Ee);const Pe=Ee},98988:(e,t,n)=>{n.r(t),n.d(t,{canProjectWithoutEngine:()=>K,getTransformation:()=>q,getTransformations:()=>z,initializeProjection:()=>H,isEqualBaseGCS:()=>J,isLoaded:()=>k,isLoadedOrLoad:()=>Z,isLoadedOrLoadFor:()=>O,load:()=>E,project:()=>P,projectExtent:()=>oe,projectMany:()=>L,projectMultipoint:()=>X,projectOrLoad:()=>N,projectOrLoadMany:()=>G,projectPoint:()=>Q,projectPolygon:()=>re,projectPolyline:()=>te,projectWithZConversion:()=>B,projectWithoutEngine:()=>W,requiresLoad:()=>R,test:()=>D,tryProjectWithZConversion:()=>V,unload:()=>U});var r=n(49186),i=n(74887),o=n(62788),s=n(95488),l=n(51850),a=n(21276),u=n(73941),c=n(5443),p=n(48526),d=n(83290),f=n(86738),h=n(39829),y=n(82799),m=n(16930),g=n(9762),b=n(37539);function w(e,t,n,r,i,o){return M[0]=e,M[1]=t,M[2]=n,(0,g.projectBuffer)(M,r,0,i,o,0)}const M=(0,l.vt)();let v=0;class F{static fromGE(e){const t=new F;return t._wkt=e.wkt,t._wkid=e.wkid,t._isInverse=e.isInverse,t}constructor(e){this.uid=v++,e?(this._wkt=null!=e.wkt?e.wkt:null,this._wkid=null!=e.wkid?e.wkid:-1,this._isInverse=null!=e.isInverse&&!0===e.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(e){this._wkt=e,this.uid=v++}get wkid(){return this._wkid}set wkid(e){this._wkid=e,this.uid=v++}get isInverse(){return this._isInverse}set isInverse(e){this._isInverse=e,this.uid=v++}getInverse(){const e=new F;return e._wkt=this.wkt,e._wkid=this._wkid,e._isInverse=!this.isInverse,e}}class I{static cacheKey(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}static fromGE(e){const t=new I;let n="";for(const r of e.steps){const e=F.fromGE(r);t.steps.push(e),n+=e.uid.toString()+","}return t._cachedProjection={},t._gtlistentry=null,t._chain=n,t}constructor(e){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,e?.steps)for(const t of e.steps)t instanceof F?this.steps.push(t):this.steps.push(new F({wkid:t.wkid,wkt:t.wkt,isInverse:t.isInverse}))}getInverse(){const e=new I;e.steps=[];for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}getGTListEntry(){let e="";for(const t of this.steps)e+=t.uid.toString()+",";return e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e),this._gtlistentry}assignCachedGe(e,t,n){this._cachedProjection[I.cacheKey(e,t)]=n}getCachedGeTransformation(e,t){let n="";for(const e of this.steps)n+=e.uid.toString()+",";n!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=n);const r=this._cachedProjection[I.cacheKey(e,t)];return void 0===r?null:r}}var C=n(21325),T=n(62815);let x=null,A=null,_=null,S={};const j=new s.I;function k(){return!!x&&(0,d.i)()}function Z(){return!!k()||((0,o.gc)(j),E(),!1)}function O(e,t){return!e||!t||K(e,t)||Z()}function R(e,t){return!K(e,t)&&!k()}function E(e){return null==_&&(_=Promise.all([(0,d.l)(),n.e(9930).then(n.bind(n,49930)).then(e=>e.g),n.e(2731).then(n.bind(n,12731))])),_.then(([,t,{hydratedAdapter:n}])=>{(0,i.Te)(e),A=n,x=t.default,x._enableProjection(d.p),j.notify()})}function P(e,t,n=null,r=null){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),L(A,e,e[0].spatialReference,t,n,r)):((0,a.f)(e),L(A,[e],e.spatialReference,t,n,r)[0])}function L(e,t,n,r,i=null,o=null){if(null==n||null==r)return t;if(K(n,r,i))return t.map(e=>W(e,n,r));if(null==i&&(0,u.jA)(n))return t.map(e=>W(e,n,m.A.WGS84)).map(e=>V(e,r));if(null==i&&(0,u.jA)(r))return t.map(e=>V(e,m.A.WGS84)).map(e=>W(e,m.A.WGS84,r));if(null==i){const e=I.cacheKey(n,r);void 0!==S[e]?i=S[e]:(null==(i=q(n,r,void 0))&&(i=new I),S[e]=i)}if(null==x||null==e)throw new $;return null!=o?x._project(e,t,n,r,i,o):x._project(e,t,n,r,i)}function N(e,t){const n=G([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function G(e,t){if(!k())for(const n of e)if(null!=n&&!(0,C.aI)(n.spatialReference,t)&&(0,C.fn)(n.spatialReference)&&(0,C.fn)(t)&&!K(n.spatialReference,t))return(0,o.gc)(j),{pending:E(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,C.aI)(e.spatialReference,t)?e:(0,C.fn)(e.spatialReference)&&(0,C.fn)(t)?V(e,t):null)}}function q(e,t,n=null){if(null==e||null==t)return null;if(null==x||null==A)throw new $;const r=x._getTransformation(A,e,t,n,n?.spatialReference);return null!==r?I.fromGE(r):null}function z(e,t,n=null){if(null==x||null==A)throw new $;const r=x._getTransformationBySuitability(A,e,t,n,n?.spatialReference);if(null!==r){const e=[];for(const t of r)e.push(I.fromGE(t));return e}return[]}class $ extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function U(){x=null,A=null,_=null,S={}}const D={get loadPromise(){return _}};function V(e,t){try{const n=P(e,t);if(null==n)return null;"xmin"in e&&"xmin"in n&&(n.zmin=e.zmin,n.zmax=e.zmax);const r=(0,T.N)(n.type,e.spatialReference,t);return null!=r&&r(n),n}catch(e){if(!(e instanceof $))throw e;return null}}async function B(e,t,n){const r=e.spatialReference;return null!=r&&null!=t&&await H(r,t,null,n),V(e,t)}function K(e,t,n){return!n&&(!!(0,C.aI)(e,t)||(0,C.fn)(e)&&(0,C.fn)(t)&&!!(0,b.jd)(e,t))}function J(e,t){if((0,C.aI)(e,t))return!0;if(!(0,C.fn)(e)||!(0,C.fn)(t))return!1;const n=(0,C.oT)(e)||(0,C.K8)(e)||(0,C.x1)(e),r=(0,C.oT)(t)||(0,C.K8)(t)||(0,C.x1)(t);return n&&r}async function H(e,t,n,r){if(k())return(0,i.NO)(r);if(Array.isArray(e)){for(const{source:t,dest:n,geographicTransformation:i}of e)if(t&&n&&!K(t,n,i))return E(r)}else if(e&&t&&!K(e,t,n))return E(r);return(0,i.NO)(r)}function W(e,t,n){return e?"x"in e?Y(e,t,new f.A,n,0):"xmin"in e?se(e,t,new c.A,n,0):"rings"in e?ie(e,t,new h.A,n,0):"paths"in e?ne(e,t,new y.A,n,0):"points"in e?ee(e,t,new p.A,n,0):null:null}function Q(e,t,n=t.spatialReference,r=0){return null!=n&&null!=e.spatialReference&&null!=Y(e,e.spatialReference,t,n,r)}function Y(e,t,n,r,i){ae[0]=e.x,ae[1]=e.y;const o=e.z;return ae[2]=void 0!==o?o:i,(0,g.projectBuffer)(ae,t,0,ae,r,0)?(n.x=ae[0],n.y=ae[1],n.spatialReference=r,void 0!==o||(0,u.xP)(r)?(n.z=ae[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function X(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=ee(e,e.spatialReference,t,n,r)}function ee(e,t,n,r,i){const{points:o,hasZ:s,hasM:l}=e,a=[],c=o.length,p=[];for(const e of o)p.push(e[0],e[1],s?e[2]:i);if(!(0,g.projectBuffer)(p,t,0,p,r,0,c))return null;const d=s||(0,u.xP)(r);for(let e=0;e<c;++e){const t=3*e,n=p[t],r=p[t+1];d&&l?a.push([n,r,p[t+2],o[e][3]]):d?a.push([n,r,p[t+2]]):l?a.push([n,r,o[e][2]]):a.push([n,r])}return n.points=a,n.spatialReference=r,n.hasZ=s,n.hasM=l,n}function te(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=ne(e,e.spatialReference,t,n,r)}function ne(e,t,n,r,i){const{paths:o,hasZ:s,hasM:l}=e,a=[];if(!le(o,s??!1,l??!1,t,a,r,i))return null;const c=s||(0,u.xP)(r);return n.paths=a,n.spatialReference=r,n.hasZ=c,n.hasM=l,n}function re(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,r)}function ie(e,t,n,r,i){const{rings:o,hasZ:s,hasM:l}=e,a=[];if(!le(o,s??!1,l??!1,t,a,r,i))return null;const c=s||(0,u.xP)(r);return n.rings=a,n.spatialReference=r,n.hasZ=c,n.hasM=l,n}function oe(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=se(e,e.spatialReference,t,n,r)}function se(e,t,n,r,i){const{xmin:o,ymin:s,xmax:l,ymax:a,hasZ:c,hasM:p}=e;if(!w(o,s,c?e.zmin:i,t,ae,r))return null;const d=c||(0,u.xP)(r);return n.xmin=ae[0],n.ymin=ae[1],d&&(n.zmin=ae[2]),w(l,a,c?e.zmax:i,t,ae,r)?(n.xmax=ae[0],n.ymax=ae[1],d&&(n.zmax=ae[2]),p&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null}function le(e,t,n,r,i,o,s=0){const l=new Array;for(const n of e)for(const e of n)l.push(e[0],e[1],t?e[2]:s);if(!(0,g.projectBuffer)(l,r,0,l,o,0))return!1;let a=0;i.length=0;const c=t||(0,u.xP)(o);for(const t of e){const e=new Array;for(const r of t)c&&n?e.push([l[a++],l[a++],l[a++],r[3]]):c?e.push([l[a++],l[a++],l[a++]]):n?(e.push([l[a++],l[a++],r[2]]),a++):(e.push([l[a++],l[a++]]),a++);i.push(e)}return!0}const ae=(0,l.vt)()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[588,7548,8207],{4146:(e,t,i)=>{i.d(t,{A:()=>_});var r=i(31635),s=i(78888),n=i(49186),a=i(65529),l=i(4902),o=i(92474),h=i(53966),u=i(74887),c=i(84952),d=i(10107),p=(i(44208),i(87811),i(40608)),f=i(5443),y=i(16930),g=i(92602),m=i(79677);let v=0,_=class extends((0,a.Zt)((0,l.sA)(o.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.A(-180,-90,180,90,y.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([i.e(812),i.e(7982)]).then(i.bind(i,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:r}=await Promise.all([i.e(812),i.e(5613),i.e(5710)]).then(i.bind(i,45613));try{return await r(t)}catch(e){const i=t?.portalItem,r=i?.id||"unset",s=i?.portal?.url||g.A.portalUrl;throw h.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+r+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,u.zf)(e)||h.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(e,t){return Promise.reject(new n.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r.Cg)([(0,d.MZ)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],_.prototype,"effectiveVisible",null),(0,r.Cg)([(0,d.MZ)({type:f.A})],_.prototype,"fullExtent",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,r.Cg)([(0,d.MZ)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,r.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,r.Cg)([(0,d.MZ)({clonable:!1})],_.prototype,"parent",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,r.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],_.prototype,"persistenceEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,r.Cg)([(0,d.MZ)({type:y.A})],_.prototype,"spatialReference",void 0),(0,r.Cg)([(0,d.MZ)({type:String})],_.prototype,"title",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,r.Cg)([(0,d.MZ)()],_.prototype,"url",void 0),(0,r.Cg)([(0,d.MZ)({type:m.A})],_.prototype,"visibilityTimeExtent",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,r.Cg)([(0,p.$)("esri.layers.Layer")],_)},4902:(e,t,i)=>{i.d(t,{PH:()=>l,sA:()=>a});var r=i(31635),s=i(40608);let n=0;const a=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return i=(0,r.Cg)([(0,s.$)("esri.core.Identifiable")],i),i},l=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:n++})}};return i=(0,r.Cg)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],i),i};a(class{})},8303:(e,t,i)=>{i.d(t,{A:()=>C});var r=i(31635),s=i(92602),n=i(70333),a=i(78888),l=i(60999),o=i(49186),h=i(53966),u=i(97768),c=i(74887),d=i(84952),p=i(10107),f=(i(44208),i(87811),i(36005)),y=i(40608),g=i(43937),m=i(77548),v=i(20655),_=i(80812),w=i(41318),b=i(10407);const C=e=>{const t=e;let C=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new _.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,c.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||h.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!n.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,r);let a,l;if(s)a=i.portal.url;else try{a=await(0,m.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!a||!(0,d.b8)(a,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(n.id?.getCredential(`${a}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const o=!0,h=!1,u=!1;if(!l)return{features:{edit:o,fullEdit:h},content:{updateItem:u}};try{if(s?await i.reload():(i=new _.default({id:e,portal:{url:a}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,c.QP)(e)}return{features:{edit:o,fullEdit:h},content:{updateItem:u}}}_getUserPrivileges(e,t){const i=(0,b.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const i=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=n.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,s=v.A.getDefault();if(s&&s.loaded&&(0,d.S8)(s.restUrl)===(0,d.S8)(r))return s.user;const o=`${r}/community/self`,h=null!=e?e.signal:null,u=await(0,l.Ke)((0,a.A)(o,{authMode:"no-prompt",query:{f:"json"},signal:h}));return u.ok?w.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return i&&r&&!(0,d.ut)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new o.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r.Cg)([(0,p.MZ)({type:_.default})],C.prototype,"portalItem",null),(0,r.Cg)([(0,f.w)("web-document","portalItem",["itemId"])],C.prototype,"readPortalItem",null),(0,r.Cg)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],C.prototype,"writePortalItem",null),(0,r.Cg)([(0,p.MZ)({clonable:!1})],C.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasUpdateItemPrivileges",void 0),C=(0,r.Cg)([(0,y.$)("esri.layers.mixins.PortalLayer")],C),C},M={credential:null,user:null}},10407:(e,t,i)=>{i.d(t,{It:()=>p,LG:()=>a,OM:()=>h,Sm:()=>u,Y:()=>l,bK:()=>o,mm:()=>d,sQ:()=>c});var r=i(98988),s=i(16930),n=i(28735);function a(e,t){if(!l(e,t)){const i=e.typeKeywords;i?i.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function o(e){return l(e,d.HOSTED_SERVICE)}function h(e,t){const i=e.typeKeywords;if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}function u(e,t,i){i?a(e,t):h(e,t)}async function c(e){const t=e.clone().normalize();let i;if(t.length>1)for(const e of t)i?e.width>i.width&&(i=e):i=e;else i=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,n.ci)(e);const i=s.A.WGS84;return await(0,r.initializeProjection)(t,i),(0,r.project)(e,i)}(i)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function p(e){const{portal:t,isOrgItem:i,itemControl:r}=e,s=t.user?.privileges;let n=!s||s.includes("features:user:edit"),a=!!i&&!!s?.includes("features:user:fullEdit");const l="update"===r||"admin"===r;return l?a=n=!0:a&&(n=!0),{features:{edit:n,fullEdit:a},content:{updateItem:l}}}},18768:(e,t,i)=>{i.d(t,{b:()=>o});var r=i(31635),s=i(53966),n=i(10107),a=(i(44208),i(87811),i(40608)),l=i(60694);const o=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Jf)(e,s.A.getLogger(this)))}};return(0,r.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,r.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,r.Cg)([(0,a.$)("esri.layers.mixins.ArcGISService")],i),i}},25943:(e,t,i)=>{i.d(t,{d:()=>S});var r,s=i(31635),n=i(78888),a=i(65008),l=i(49186),o=i(36563),h=(i(44208),i(66344)),u=i(15142),c=i(74887),d=i(36708),p=i(96211),f=i(84952),y=i(10107),g=(i(53966),i(87811),i(40608)),m=i(72802),v=i(4718),_=i(69397),w=i(34275);class b{constructor(e){!function(e){if(!e?.location)throw new l.A("tilemap:missing-location","Location missing from tilemap response");if(!1===e.valid)throw new l.A("tilemap:invalid","Tilemap response was marked as invalid");if(!e.data)throw new l.A("tilemap:missing-data","Data missing from tilemap response");if(!Array.isArray(e.data))throw new l.A("tilemap:data-mismatch","Data must be an array of numbers");if(e.data.length!==e.location.width*e.location.height)throw new l.A("tilemap:data-mismatch","Number of data items does not match width/height of tilemap")}(e);const{location:t,data:i}=e;this.location=Object.freeze((0,v.o8)(t));const r=this.location.width,s=this.location.height;let n=!0,a=!0;const o=function(e,t=!1){return e<=w.y9?t?new Array(e).fill(0):new Array(e):new Uint32Array(e)}(Math.ceil(r*s/32));let h=0;for(let e=0;e<i.length;e++){const t=e%32;i[e]?(a=!1,o[h]|=1<<t):n=!1,31===t&&++h}a?(this._availability="unavailable",this.byteSize=40):n?(this._availability="available",this.byteSize=40):(this._availability=o,this.byteSize=40+(0,_.Qf)(o))}getAvailability(e,t){if("unavailable"===this._availability||"available"===this._availability)return this._availability;const i=(e-this.location.top)*this.location.width+(t-this.location.left),r=i%32,s=i>>5,n=this._availability;return s<0||s>n.length?"unknown":n[s]&1<<r?"available":"unavailable"}static fromDefinition(e,t){const i=e.service.request||n.A,{row:r,col:s,width:a,height:o}=e,h={query:{f:"json"}};return t=t?{...h,...t}:h,i(function(e){let t;if(e.service.tileServers?.length){const i=e.service.tileServers;t=`${i&&i.length?i[e.row%i.length]:e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}else t=`${e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`;const i=e.service.query;return i&&(t=`${t}?${i}`),t}(e),t).then(e=>e.data).catch(e=>{if(422===e?.details?.httpStatus)return{location:{top:r,left:s,width:a,height:o},valid:!0,data:new Array(a*o).fill(0)};throw e}).then(e=>{if(e.location&&(e.location.top!==r||e.location.left!==s||e.location.width!==a||e.location.height!==o))throw new l.A("tilemap:location-mismatch","Tilemap response for different location than requested",{response:e,definition:{top:r,left:s,width:a,height:o}});return b.fromJSON(e)})}static fromJSON(e){return Object.freeze(new b(e))}}function C(e){return`${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}function M(e,t,i){return new l.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i})}let S=class extends a.A{static{r=this}constructor(e){super(e),this._pendingTilemapRequests={},this.request=n.A,this.size=32,this._prefetchingEnabled=!0}initialize(){this._tilemapCache=new h.q(2097152),this.addHandles((0,d.wB)(()=>{const{layer:e}=this;return[e?.parsedUrl,e?.tileServers,e?.apiKey,e?.customParameters]},()=>this._initializeTilemapDefinition(),d.Vh))}get effectiveMinLOD(){return this.minLOD??this.layer.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.layer.tileInfo.lods[this.layer.tileInfo.lods.length-1].level}getAvailability(e,t,i){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return"unavailable";const r=this._tilemapFromCache(e,t,i,this._tmpTilemapDefinition);return r?r.getAvailability(t,i):"unknown"}fetchAvailability(e,t,i,r){return!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD?Promise.reject(M(e,t,i)):this._fetchTilemap(e,t,i,r).catch(e=>e).then(r=>{if(r instanceof b){const s=r.getAvailability(t,i);if("unavailable"===s)throw M(e,t,i);return s}if((0,c.zf)(r))throw r;return"unknown"})}fetchAvailabilityUpsample(e,t,i,r,s){r.level=e,r.row=t,r.col=i;const n=this.layer.tileInfo;n.updateTileInfo(r);const a=this.fetchAvailability(e,t,i,s).catch(e=>{if((0,c.zf)(e))throw e;if(n.upsampleTile(r))return this.fetchAvailabilityUpsample(r.level,r.row,r.col,r,s);throw e});return this._fetchAvailabilityUpsamplePrefetch(r.id,e,t,i,s,a),a}async _fetchAvailabilityUpsamplePrefetch(e,t,i,s,n,a){if(!this._prefetchingEnabled||null==e)return;const l=`prefetch-${e}`;if(this.hasHandles(l))return;const h=new AbortController;a.then(()=>h.abort(),()=>h.abort());let u=!1;const d=(0,o.hA)(()=>{u||(u=!0,h.abort())});if(this.addHandles(d,l),await(0,p.md)(10,h.signal).catch(()=>{}),u||(u=!0,this.removeHandles(l)),(0,c.G4)(h))return;const f=new m.U(e,t,i,s),y={...n,signal:h.signal},g=this.layer.tileInfo;for(let e=0;r._prefetches.length<r._maxPrefetch&&g.upsampleTile(f);++e){const e=this.fetchAvailability(f.level,f.row,f.col,y);r._prefetches.push(e);const t=()=>{r._prefetches.removeUnordered(e)};e.then(t,t)}}static{this._maxPrefetch=4}static{this._prefetches=new u.A({initialSize:r._maxPrefetch})}static cleanupTilemapCache(){this._prefetches.prune()}_fetchTilemap(e,t,i,r){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return Promise.reject(new l.A("tilemap-cache:level-unavailable",`Level ${e} is unavailable in the service`));const s=this._tmpTilemapDefinition,n=this._tilemapFromCache(e,t,i,s);if(n)return Promise.resolve(n);const a=r?.signal;return r={...r,signal:null},new Promise((e,t)=>{(0,c.u7)(a,()=>t((0,c.NK)()));const i=C(s);let n=this._pendingTilemapRequests[i];if(!n){n=b.fromDefinition(s,r).then(e=>(this._tilemapCache.put(i,e,e.byteSize),e));const e=()=>{delete this._pendingTilemapRequests[i]};this._pendingTilemapRequests[i]=n,n.then(e,e)}n.then(e,t)})}_initializeTilemapDefinition(){if(!this.layer.parsedUrl)return;const{parsedUrl:e,apiKey:t,customParameters:i}=this.layer;this._tilemapCache.clear(),this._tmpTilemapDefinition={service:{url:e.path,query:(0,f.x0)({...e.query,...i,token:t??e.query?.token}),tileServers:this.layer.tileServers,request:this.request},width:this.size,height:this.size,level:0,row:0,col:0}}_tilemapFromCache(e,t,i,r){r.level=e,r.row=t-t%this.size,r.col=i-i%this.size;const s=C(r);return this._tilemapCache.get(s)}get test(){}};(0,s.Cg)([(0,y.MZ)({constructOnly:!0})],S.prototype,"layer",void 0),(0,s.Cg)([(0,y.MZ)({constructOnly:!0})],S.prototype,"minLOD",void 0),(0,s.Cg)([(0,y.MZ)({constructOnly:!0})],S.prototype,"maxLOD",void 0),(0,s.Cg)([(0,y.MZ)({constructOnly:!0})],S.prototype,"request",void 0),(0,s.Cg)([(0,y.MZ)({constructOnly:!0})],S.prototype,"size",void 0),S=r=(0,s.Cg)([(0,g.$)("esri.layers.support.TilemapCache")],S)},35982:(e,t,i)=>{i.d(t,{B:()=>o});var r=i(4576),s=i(36563),n=i(53966),a=i(74887),l=i(29953);class o{constructor(e,t,i,r,s={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._promise=(0,l.ho)(e,{...s,schedule:r}).then(e=>{if(void 0===this._thread){this._thread=e,this._promise=null,s.hasInitialize&&this.broadcast({},"initialize");for(const e of this._listeners)this._connectListener(e)}else e.close()}),this._promise.catch(t=>n.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const i={removed:!1,eventName:e,callback:t,threadHandle:null};return this._listeners.push(i),this._connectListener(i),(0,s.hA)(()=>{i.removed=!0,(0,r.TF)(this._listeners,i),this._thread&&null!=i.threadHandle&&i.threadHandle.remove()})}destroy(){this._thread&&(this._thread.close(),this._thread=null),this._promise=null,this._listeners.length=0,this._transferLists={}}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,r){if(this._thread){const s=this._transferLists[e],n=s?s(t):[];return this._thread.invoke(e,t,{transferList:n,signal:i,priority:r})}return this._promise?this._promise.then(()=>((0,a.Te)(i),this.invokeMethod(e,t,i))):Promise.reject(null)}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(h):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject()}get promise(){return this._promise}_connectListener(e){this._thread&&this._thread.on(e.eventName,e.callback).then(t=>{e.removed||(e.threadHandle=t)})}}function h(){}},36708:(e,t,i)=>{i.d(t,{C_:()=>d,OH:()=>y,Vh:()=>g,on:()=>c,pc:()=>m,wB:()=>o,z7:()=>h});var r=i(37955),s=i(36563),n=i(97768),a=i(74887),l=i(14012);function o(e,t,i={}){return u(e,t,i,p)}function h(e,t,i={}){return u(e,t,i,f)}function u(e,t,i={},r){let s=null;const a=i.once?(e,i)=>{r(e)&&((0,n.xt)(s),t(e,i))}:(e,i)=>{r(e)&&t(e,i)};if(s=(0,l.Cn)(e,a,i.sync,i.equals),i.initial){const t=e();a(t,t)}return s}function c(e,t,i,a={}){let l=null,h=null,u=null;function c(){l&&h&&(h.remove(),a.onListenerRemove?.(l),l=null,h=null)}function d(e){a.once&&a.once&&(0,n.xt)(u),i(e)}const p=o(e,(e,i)=>{c(),(0,r.wb)(e)&&(l=e,h=(0,r.on)(e,t,d),a.onListenerAdd?.(e))},{sync:a.sync,initial:!0});return u=(0,s.hA)(()=>{p.remove(),c()}),u}function d(e,t){return function(e,t,i){if((0,a.G4)(i))return Promise.reject((0,a.NK)());const r=e();if(t?.(r))return Promise.resolve(r);let l=null;function o(){l=(0,n.xt)(l)}return new Promise((r,n)=>{l=(0,s.vE)([(0,a.u7)(i,()=>{o(),n((0,a.NK)())}),u(e,e=>{o(),r(e)},{sync:!1,once:!0},t??p)])})}(e,f,t)}function p(e){return!0}function f(e){return!!e}i(80559);const y={sync:!0},g={initial:!0},m={sync:!0,initial:!0}},54239:(e,t,i)=>{i.d(t,{A:()=>m});var r,s=i(31635),n=i(4576),a=i(66552),l=i(25482),o=i(83047),h=i(67076),u=i(10107),c=(i(44208),i(53966),i(36005)),d=i(40608),p=i(43937);const f=(0,a.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),y=f.jsonValues.slice();(0,n.Xy)(y,"orthometric");const g=(0,a.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=r=class extends l.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return f.write(e,t,i)}readHeightModel(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(function(e,t){return new h.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,o.LA)(e)||g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,o.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new h.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s.Cg)([(0,u.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y,default:"ellipsoidal",write:{isRequired:!0}}}}})],m.prototype,"heightModel",void 0),(0,s.Cg)([(0,p.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,s.Cg)([(0,c.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,s.Cg)([(0,u.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,s.Cg)([(0,c.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,s.Cg)([(0,c.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,s.Cg)([(0,u.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,s.Cg)([(0,c.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=r=(0,s.Cg)([(0,d.$)("esri.geometry.HeightModelInfo")],m)},60999:(e,t,i)=>{i.d(t,{DZ:()=>f,Ke:()=>p,Tj:()=>u,UT:()=>y,jJ:()=>h});var r=i(31635),s=i(65008),n=i(97768),a=i(74887),l=i(10107),o=i(40608);function h(e,t,i){return(0,a.Lx)(e.map((e,r)=>t.apply(i,[e,r])))}async function u(e,t,i){return(await(0,a.Lx)(e.map((e,r)=>t.apply(i,[e,r])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return c(await e)}catch(e){return d(e)}}async function f(e){try{return c(await e)}catch(e){return(0,a.QP)(e),d(e)}}function y(e,t){return new g(e,t)}let g=class extends s.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,n.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,a.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,l.MZ)()],g.prototype,"value",null),(0,r.Cg)([(0,l.MZ)()],g.prototype,"error",null),(0,r.Cg)([(0,l.MZ)()],g.prototype,"finished",null),(0,r.Cg)([(0,l.MZ)()],g.prototype,"promise",void 0),(0,r.Cg)([(0,l.MZ)()],g.prototype,"_result",void 0),g=(0,r.Cg)([(0,o.$)("esri.core.asyncUtils.ReactiveTask")],g)},66344:(e,t,i)=>{i.d(t,{q:()=>l});const r=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class s{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear(),this._db=null}register(e){this._users.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._users.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,t){const i=this._db.get(e.id+t);return i?.size??0}put(e,t,i,s,a){t=e.id+t;const l=this._db.get(t);if(l&&(this._size-=l.size,e.size-=l.size,this._db.delete(t),l.entry!==i&&this._notifyRemove(t,l.entry,l.size,0)),s>this._maxSize)return void this._notifyRemove(t,i,s,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return r||console.warn(`Refusing to cache entry with size ${s} for key ${t}`),void this._notifyRemove(t,i,0,0);const o=1+Math.max(a,-4)- -3;this._db.set(t,new n(i,s,o)),this._size+=s,e.size+=s,this._checkSize()}updateSize(e,t){t=e.id+t;const i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let r=i.entry.usedMemory;for(;r>this._maxSize;){const e=this._notifyRemove(t,i.entry,r,1);if(!(null!=e&&e>0))return void this._db.delete(t);r=e}i.size=r,this._size+=r,e.size+=r,this._checkSize()}pop(e,t){t=e.id+t;const i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;const i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=new Array;this._db.forEach((e,r)=>{const s=e.lifetime;i[s]=(i[s]||0)+e.size,this._users.forEach(i=>{const{id:s,name:n}=i;if(r.startsWith(s)){const i=t[n]||0;t[n]=i+e.size}})});const r={};this._users.forEach(e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const s=t[i]||0;t[i]=s,r[i]=Math.round(100*e.hitRate)+"%"}else r[i]="0%"});const s=Object.keys(t);s.sort((e,i)=>t[i]-t[e]),s.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+r[i]);for(let t=i.length-1;t>=0;--t){const r=i[t];r&&(e["Priority "+(t+-3-1)]=Math.round(r/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._users.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,r){const s=this._users.get(e.split(a)[0])?.removeFunc,n=s?.(t,r,i);return"number"==typeof n?n:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._checkSizeLimits(this.maxSize)}setMaxSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const i=t??this;if(i.size<=e)return;const r=t?.id;let s=!0;for(;s;){s=!1;for(const[n,l]of this._db)if(0===l.lifetime&&(!r||n.startsWith(r))){const r=t??this._users.get(n.split(a)[0]);if(this._purgeItem(n,l,r),i.size<=.9*e)return;s||=this._db.has(n)}}for(const[s,n]of this._db)if(!r||s.startsWith(r)){const r=t??this._users.get(s.split(a)[0]);if(this._purgeItem(s,n,r),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);const r=this._notifyRemove(e,t.entry,t.size,1);null!=r&&r>0&&(this._size+=r,i&&(i.size+=r),t.lives=t.lifetime,t.size=r,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new s(0);class n{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const a=":";class l{constructor(e,t){this.removeFunc=t,this._storage=new s,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy(),this._storage=null}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},68611:(e,t,i)=>{i.r(t),i.d(t,{default:()=>T});var r=i(31635),s=i(78888),n=i(49186),a=i(97768),l=i(92071),o=i(74887),h=i(84952),u=i(10107),c=(i(44208),i(53966),i(87811),i(36005)),d=i(40608),p=i(54239),f=i(4146),y=i(89186),g=i(18768),m=i(16131),v=i(8303),_=i(10873);class w{constructor(e,t,i,r){this._hasNoDataValues=null,this._minValue=null,this._maxValue=null,"pixelData"in e?(this.values=e.pixelData,this.width=e.width,this.height=e.height,this.noDataValue=e.noDataValue):(this.values=e,this.width=t,this.height=i,this.noDataValue=r)}get hasNoDataValues(){if(null==this._hasNoDataValues){const e=this.noDataValue;this._hasNoDataValues=this.values.includes(e)}return this._hasNoDataValues}get minValue(){return this._ensureBounds(),this._minValue}get maxValue(){return this._ensureBounds(),this._maxValue}get usedMemory(){return this.values.byteLength+256}_ensureBounds(){if(null!=this._minValue)return;const{noDataValue:e,values:t}=this;let i=1/0,r=-1/0,s=!0;for(const n of t)n===e?this._hasNoDataValues=!0:(i=n<i?n:i,r=n>r?n:r,s=!1);s?(this._minValue=0,this._maxValue=0):(this._minValue=i,this._maxValue=r>-3e38?r:0)}}var b=i(35982);class C extends b.B{constructor(e=null){super("LercWorker","_decode",{_decode:e=>[e.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,i){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},i):Promise.resolve(null)}release(){--this.ref<=0&&(M.forEach((e,t)=>{e===this&&M.delete(t)}),this.destroy())}}const M=new Map;let S=class extends((0,y.f)((0,g.b)((0,m.q)((0,v.A)((0,l.P)(f.A)))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=M.get(e);return t||(null!=e?(t=new C(t=>e.immediate.schedule(t)),M.set(e,t)):(t=new C,M.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,a.Gz)(this._lercDecoder)}readCapabilities(e,t){const i=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());return i?{operations:{supportsTileMap:i.includes("tilemap")}}:{operations:{supportsTileMap:!1}}}readVersion(e,t){let i=t.currentVersion;return i||(i=9.3),i}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new n.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(o.QP).then(()=>this._fetchImageService(t))),Promise.resolve(this)}fetchTile(e,t,i,r){const n=r?.signal,a={responseType:"array-buffer",signal:n},l={noDataValue:r?.noDataValue,returnFileInfo:!0};return this.load().then(()=>this._fetchTileAvailability(e,t,i,r)).then(()=>(0,s.A)(this.getTileUrl(e,t,i),a)).then(e=>this._lercDecoder.decode(e.data,l,n)).then(e=>new w(e))}getTileUrl(e,t,i){const r=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,s=(0,h.x0)({...this.parsedUrl.query,blankTile:!r&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${i}${s?"?"+s:""}`}async queryElevation(e,t){const{ElevationQuery:r}=await i.e(2095).then(i.bind(i,64476));return(0,o.Te)(t),(new r).query(this,e,t)}async createElevationSampler(e,t){const{ElevationQuery:r}=await i.e(2095).then(i.bind(i,64476));return(0,o.Te)(t),(new r).createSampler(this,e,t)}_fetchTileAvailability(e,t,i,r){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,i,r):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},i=await(0,s.A)(this.parsedUrl.path,t);i.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=i.data,this.read(i.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[A]}};(0,r.Cg)([(0,u.MZ)({readOnly:!0})],S.prototype,"capabilities",void 0),(0,r.Cg)([(0,c.w)("service","capabilities",["capabilities"])],S.prototype,"readCapabilities",null),(0,r.Cg)([(0,u.MZ)({json:{read:{source:"copyrightText"}}})],S.prototype,"copyright",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0,type:p.A})],S.prototype,"heightModelInfo",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],S.prototype,"path",void 0),(0,r.Cg)([(0,u.MZ)({type:["show","hide"]})],S.prototype,"listMode",void 0),(0,r.Cg)([(0,u.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],S.prototype,"minScale",void 0),(0,r.Cg)([(0,u.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],S.prototype,"maxScale",void 0),(0,r.Cg)([(0,u.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],S.prototype,"opacity",void 0),(0,r.Cg)([(0,u.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],S.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,u.MZ)()],S.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,u.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],S.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)(_.OZ)],S.prototype,"url",void 0),(0,r.Cg)([(0,u.MZ)()],S.prototype,"version",void 0),(0,r.Cg)([(0,c.w)("version",["currentVersion"])],S.prototype,"readVersion",null),S=(0,r.Cg)([(0,d.$)("esri.layers.ElevationLayer")],S);const A=Symbol("default-fetch-tile");S.prototype.fetchTile[A]=!0;const T=S},69397:(e,t,i)=>{i.d(t,{$B:()=>s,Qf:()=>h,Qh:()=>l,RS:()=>n,ez:()=>d,lM:()=>a,qK:()=>c});var r=i(34275);function s(e){return 32+e.length}const n=16;function a(e){if(!e)return 0;let t=c;for(const i in e)e.hasOwnProperty(i)&&(t+=o(e[i],!1));return t}function l(e){if(!e)return 0;if("number"==typeof e[0])return h(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let i=d;for(let r=0;r<t;r++)i+=o(e[r]);return i}(e);let t=c;for(const i in e)e.hasOwnProperty(i)&&(t+=o(e[i]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?l(e):c;case"string":return s(e);case"number":return n;case"boolean":return 4;default:return 8}}function h(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+p:Array.isArray(t)?u(t,n):0:0),0)}function u(e,t){return d+e.length*t}const c=32,d=16,p=145},69540:(e,t,i)=>{i.d(t,{OU:()=>u,Pw:()=>c});var r=i(31635),s=i(65008),n=(i(44208),i(4718)),a=(i(53966),i(97768)),l=i(88620),o=i(40608);const h=Symbol("ClonableMixin"),u=e=>{var t;const i=e;let s=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=h}clone(e){const t=(0,l.oY)(this);(0,a.Lw)(t,"unable to clone instance of non-accessor class");const i=t.metadata,r=t.store,s={},o=new Map;for(const t in i){const a=i[t],l=r?.originOf(t),h=a.clonable;if(a.readOnly||!1===h||7!==l&&0!==l&&5!==l&&4!==l)continue;const u=this[t];let c=null;if("function"==typeof h)c=h(u,e);else if("reference"===h)c=u;else if(c=(0,n.TU)(u,e),null!=u&&null==c)continue;0===l?o.set(t,c):s[t]=c}const h=new(0,Object.getPrototypeOf(this).constructor)(s);if(o.size){const e=(0,l.oY)(h)?.store;if(e)for(const[t,i]of o)e.set(t,i,0)}return h}};return s=(0,r.Cg)([(0,o.$)("esri.core.Clonable")],s),s},c=u(s.A)},77548:(e,t,i)=>{i.d(t,{Gh:()=>y,tk:()=>c,BR:()=>u,wI:()=>h,G$:()=>p,$x:()=>d,Ov:()=>l,W_:()=>o,OP:()=>f,TU:()=>a,XX:()=>n});var r=i(70333),s=i(78888);i(7762),i(84952),i(36563),i(36708),i(4146),new WeakMap;const n={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function a(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function l(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function o(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t)&&"feature-layer"===e?.source?.type}async function h(e,t){const i=r.id?.findServerInfo(e);if(null!=i?.currentVersion)return i.owningSystemUrl||null;const n=e.toLowerCase().indexOf("/rest/services");if(-1===n)return null;const a=`${e.slice(0,n)}/rest/info`,l=null!=t?t.signal:null,{data:o}=await(0,s.A)(a,{query:{f:"json"},responseType:"json",signal:l});return o?.owningSystemUrl||null}function u(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function c(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function d(e,t){return null}function p(e){return null}function f(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function y(e,t){if(!t||!f(e))return;const i=(e.url,null);i&&(e.url=i)}},78553:(e,t,i)=>{i.d(t,{D:()=>n,p:()=>s});var r=i(56507);function s(e){const t=(0,r.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function n(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},79677:(e,t,i)=>{i.d(t,{A:()=>d});var r,s=i(31635),n=i(25482),a=i(88930),l=i(10107),o=(i(44208),i(53966),i(87811),i(36005)),h=i(40608),u=i(43937),c=i(98623);let d=class extends n.o{static{r=this}static get allTime(){return p}static get empty(){return f}static fromArray(e){return new r({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,s=e.end?.getTime()??e.end;return t===r&&i===s}expandTo(e,t=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let i=this.start;i&&(i=(0,a.lL)(i,e,t));let s=this.end;if(s){const i=(0,a.lL)(s,e,t);s=s.getTime()===i.getTime()?i:(0,a.S1)(i,1,e,t)}return new r({start:i,end:s})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,s=e.start?.getTime()??-1/0,n=e.end?.getTime()??1/0;let a,l;return s>=t&&s<=i?a=s:t>=s&&t<=n&&(a=t),i>=s&&i<=n?l=i:n>=t&&n<=i&&(l=n),null==a||null==l||isNaN(a)||isNaN(l)?r.empty:new r({start:a===-1/0?null:new Date(a),end:l===1/0?null:new Date(l)})}offset(e,t,i=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const s=new r,{start:n,end:l}=this;return null!=n&&(s.start=(0,a.S1)(n,e,t,i)),null!=l&&(s.end=(0,a.S1)(l,e,t,i)),s}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return p.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:i})}};(0,s.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,s.Cg)([(0,o.w)("end")],d.prototype,"readEnd",null),(0,s.Cg)([(0,u.K)("end")],d.prototype,"writeEnd",null),(0,s.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,s.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,s.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,s.Cg)([(0,o.w)("start")],d.prototype,"readStart",null),(0,s.Cg)([(0,u.K)("start")],d.prototype,"writeStart",null),d=r=(0,s.Cg)([(0,h.$)("esri.time.TimeExtent")],d);const p=new d,f=new d({start:void 0,end:void 0})},89186:(e,t,i)=>{i.d(t,{f:()=>c});var r=i(31635),s=i(10107),n=(i(44208),i(53966),i(87811),i(36005)),a=i(40608),l=i(16930),o=i(87045),h=i(65509),u=i(25943);const c=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,i){const r=t.capabilities?.includes("Tilemap");let{minLOD:s,maxLOD:n,minScale:a,maxScale:l}=t;if(null==s&&null==n&&(0!==a||0!==l)){const e=e=>Math.round(1e4*e)/1e4;a=e(a||t.tileInfo.lods[0].scale),l=e(l||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(const i of t.tileInfo.lods){const t=e(i.scale);s=t>=a?i.level:s,n=t>=l?i.level:n}}if(r)return new u.d({layer:this,minLOD:s,maxLOD:n});if(t.tileInfo){const e=new o.A;return e.read(t.tileInfo,i),new h.A(e,s,n)}return null}};return(0,r.Cg)([(0,s.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,r.Cg)([(0,s.MZ)()],i.prototype,"minScale",void 0),(0,r.Cg)([(0,n.w)("service","minScale")],i.prototype,"readMinScale",null),(0,r.Cg)([(0,s.MZ)()],i.prototype,"maxScale",void 0),(0,r.Cg)([(0,n.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,r.Cg)([(0,s.MZ)({type:l.A})],i.prototype,"spatialReference",void 0),(0,r.Cg)([(0,s.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,r.Cg)([(0,s.MZ)({type:o.A})],i.prototype,"tileInfo",void 0),(0,r.Cg)([(0,s.MZ)()],i.prototype,"tilemapCache",void 0),(0,r.Cg)([(0,n.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,r.Cg)([(0,s.MZ)()],i.prototype,"version",void 0),i=(0,r.Cg)([(0,a.$)("esri.layers.mixins.ArcGISCachedService")],i),i}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3813],{9762:(t,n,e)=>{e.r(n),e.d(n,{projectBuffer:()=>r});var i=e(37539);function r(t,n,e,r,s,l,o=Math.floor(t.length/3)){const a=(0,i.jd)(n,s);if(null==a)return!1;if(a===i.pO){if(t===r&&e===l)return!0;const n=e+3*o;for(let i=e,s=l;i<n;i++,s++)r[s]=t[i];return!0}const u=e+3*o;for(let n=e,i=l;n<u;n+=3,i+=3)a(t,n,r,i);return!0}},37539:(t,n,e)=>{e.d(n,{pO:()=>y,jd:()=>p,Tp:()=>f,w5:()=>h});var i=e(34727),r=e(83047),s=e(73941),l=e(79258);Math.PI;const o=l.$O.radius,a=l.$O.eccentricitySquared,u={a1:o*a,a2:o*a*o*a,a3:o*a*a/2,a4:o*a*o*a*2.5,a5:o*a+o*a*a/2,a6:1-a};l.$O.radius,l.$O.flattening,l.Sw.radius,l.Sw.flattening,l.sH.radius,l.sH.flattening,l.sH.radius;var c=e(21325);const h={2:{5:y,7:null,9:null,10:y,1:b,6:null,8:null,0:null,3:m,11:w,2:y,4:k},5:{5:y,7:null,9:null,10:y,1:b,6:null,8:null,0:null,3:m,11:w,2:y,4:k},7:{5:null,7:y,9:null,10:y,1:null,6:x,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:y,10:y,1:null,6:null,8:R,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(t,n,e,i){const r=t[n]/O,s=z-2*Math.atan(Math.exp(-t[n+1]/O)),l=O+t[n+2],o=Math.cos(s)*l;e[i]=Math.cos(r)*o,e[i+1]=Math.sin(r)*o,e[i+2]=Math.sin(s)*l},6:null,8:null,0:null,3:y,11:function(t,n,e,i){g(t,n,e,i),w(e,i,e,i)},2:g,4:function(t,n,e,i){g(t,n,e,i),k(e,i,e,i)}},4:{5:_,7:null,9:null,10:_,1:function(t,n,e,i){_(t,n,e,i),b(e,i,e,i)},6:null,8:null,0:null,3:function(t,n,e,i){_(t,n,e,i),m(e,i,e,i)},11:function(t,n,e,i){_(t,n,e,i),w(e,i,e,i)},2:_,4:y},1:{5:j,7:null,9:null,10:j,1:y,6:null,8:null,0:null,3:function(t,n,e,i){j(t,n,e,i),m(e,i,e,i)},11:function(t,n,e,i){j(t,n,e,i),w(e,i,e,i)},2:j,4:function(t,n,e,i){j(t,n,e,i),k(e,i,e,i)}},6:{5:null,7:A,9:null,10:A,1:null,6:y,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:P,10:P,1:null,6:null,8:y,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:y,3:null,11:null,2:null,4:null},10:{5:y,7:y,9:y,10:y,1:b,6:x,8:R,0:null,3:m,11:w,2:y,4:k},11:{5:M,7:null,9:null,10:M,1:function(t,n,e,i){M(t,n,e,i),b(e,i,e,i)},6:null,8:null,0:null,3:function(t,n,e,i){M(t,n,e,i),m(e,i,e,i)},11:y,2:M,4:function(t,n,e,i){M(t,n,e,i),k(e,i,e,i)}}};function p(t,n){return f(t,n)?.projector}function f(t,n){if(null==t||null==n)return null;if(I.source.spatialReference===t&&I.dest.spatialReference===n)return I;const e=d(t,I.source),i=d(n,I.dest);return 0===e&&0===i?(0,c.aI)(t,n)?I.projector=y:I.projector=null:I.projector=h[e][i],I}function d(t,n){return t?n.spatialReference===t?n.spatialReferenceId:(n.spatialReference=t,"metersPerUnit"in n&&(n.metersPerUnit=(0,r.GA)(t,1)),(0,s.jA)(t)?n.spatialReferenceId=1:(0,c.oT)(t)?n.spatialReferenceId=2:(0,c.K8)(t)?n.spatialReferenceId=3:(0,c.r1)(t)?n.spatialReferenceId=11:t.wkt===s.Ro.wkt?n.spatialReferenceId=4:4490===t.wkid?n.spatialReferenceId=5:t.wkt===s.FY.wkt?n.spatialReferenceId=6:t.wkt===s.LJ.wkt?n.spatialReferenceId=8:(0,c.q8)(t)?n.spatialReferenceId=7:(0,c.KQ)(t)?n.spatialReferenceId=9:n.spatialReferenceId=0):0}function y(t,n,e,i){t!==e&&(e[i++]=t[n++],e[i++]=t[n++],e[i]=t[n])}function g(t,n,e,i){e[i]=q*(t[n]/O),e[i+1]=q*(z-2*Math.atan(Math.exp(-t[n+1]/O))),e[i+2]=t[n+2]}function m(t,n,e,r){!function(t,n,e,r,s){const l=.4999999*Math.PI,o=(0,i.qE)(S*t[n+1],-l,l),a=Math.sin(o);e[r++]=S*t[n]*s.radius,e[r++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),e[r]=t[n+2]}(t,n,e,r,l.$O)}function w(t,n,e,i){e[i]=t[n]*Z,e[i+1]=t[n+1]*Z,e[i+2]=t[n+2]}function M(t,n,e,i){e[i]=t[n]*N,e[i+1]=t[n+1]*N,e[i+2]=t[n+2]}function v(t,n,e,i,r){const s=r+t[n+2],l=S*t[n+1],o=S*t[n],a=Math.cos(l)*s;e[i]=Math.cos(o)*a,e[i+1]=Math.sin(o)*a,e[i+2]=Math.sin(l)*s}function R(t,n,e,i){v(t,n,e,i,l.Sw.radius)}function x(t,n,e,i){v(t,n,e,i,l.sH.radius)}function b(t,n,e,i){v(t,n,e,i,l.$O.radius)}function C(t,n,e,r,s){const l=t[n],o=t[n+1],a=t[n+2],u=Math.sqrt(l*l+o*o+a*a),c=(0,i.YN)(a/(0===u?1:u)),h=Math.atan2(o,l);e[r++]=q*h,e[r++]=q*c,e[r]=u-s}function P(t,n,e,i){C(t,n,e,i,l.Sw.radius)}function A(t,n,e,i){C(t,n,e,i,l.sH.radius)}function j(t,n,e,i){C(t,n,e,i,l.$O.radius)}function k(t,n,e,i){!function(t,n,e,i,r){const s=S*t[n],l=S*t[n+1],o=t[n+2],a=Math.sin(l),u=Math.cos(l),c=r.radius/Math.sqrt(1-r.eccentricitySquared*a*a);e[i++]=(c+o)*u*Math.cos(s),e[i++]=(c+o)*u*Math.sin(s),e[i++]=(c*(1-r.eccentricitySquared)+o)*a}(t,n,e,i,l.$O)}function _(t,n,e,i){const r=u,s=t[n],o=t[n+1],a=t[n+2];let c,h,p,f,d,y,g,m,w,M,v,R,x,b,C,P,A,j,k,_,I;c=Math.abs(a),h=s*s+o*o,p=Math.sqrt(h),f=h+a*a,d=Math.sqrt(f),_=Math.atan2(o,s),y=a*a/f,g=h/f,b=r.a2/d,C=r.a3-r.a4/d,g>.3?(m=c/d*(1+g*(r.a1+b+y*C)/d),k=Math.asin(m),M=m*m,w=Math.sqrt(1-M)):(w=p/d*(1-y*(r.a5-b-g*C)/d),k=Math.acos(w),M=1-w*w,m=Math.sqrt(M)),v=1-l.$O.eccentricitySquared*M,R=l.$O.radius/Math.sqrt(v),x=r.a6*R,b=p-R*w,C=c-x*m,A=w*b+m*C,P=w*C-m*b,j=P/(x/v+A),k+=j,I=A+P*j/2,a<0&&(k=-k),e[i++]=q*_,e[i++]=q*k,e[i]=I}const I={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:y},S=(0,i.kU)(1),q=(0,i.KJ)(1),z=.5*Math.PI,O=l.$O.radius,Z=O*Math.PI/180,N=180/(O*Math.PI)},62815:(t,n,e)=>{e.d(n,{N:()=>l});var i=e(83047),r=e(73941),s=e(21325);function l(t,n,e){if(null==n||null==e||e.vcsWkid||(0,s.aI)(n,e)||(0,r.xP)(n)||(0,r.xP)(e))return null;const l=(0,i.G9)(n)/(0,i.G9)(e);if(1===l)return null;switch(t){case"point":case"esriGeometryPoint":return t=>function(t,n){null!=t?.z&&(t.z*=n)}(t,l);case"polyline":case"esriGeometryPolyline":return t=>function(t,n){if(t)for(const e of t.paths)for(const t of e)t.length>2&&(t[2]*=n)}(t,l);case"polygon":case"esriGeometryPolygon":return t=>function(t,n){if(t)for(const e of t.rings)for(const t of e)t.length>2&&(t[2]*=n)}(t,l);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,n){if(t)for(const e of t.points)e.length>2&&(e[2]*=n)}(t,l);case"extent":case"esriGeometryEnvelope":return t=>function(t,n){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=n,t.zmax*=n)}(t,l);default:return null}}},62885:(t,n,e)=>{e.d(n,{H:()=>s,V:()=>r});var i=e(7762);function r(t,n,e=i.A){return n||(n=new e),n===t||n.destroyed||(n.removeAll(),(r=t)&&(Array.isArray(r)||"items"in r&&Array.isArray(r.items))?n.addMany(t):t&&n.add(t)),n;var r}function s(t){return t}},68197:(t,n,e)=>{e.d(n,{A:()=>a});var i=e(40876),r=e(34727),s=e(56507);function l(t){return(0,r.qE)((0,s.Vr)(t),0,255)}function o(t,n){const e=t.toString(16).padStart(2,"0");return n?e.slice(0,1):e}class a{static blendColors(t,n,e,i=new a){return i.r=Math.round(t.r+(n.r-t.r)*e),i.g=Math.round(t.g+(n.g-t.g)*e),i.b=Math.round(t.b+(n.b-t.b)*e),i.a=t.a+(n.a-t.a)*e,i._sanitize()}static fromRgb(t,n){const e=(0,i.lT)(t);return e?a.fromArray(e,n):null}static fromHex(t,n=new a){const e=(0,i.oW)(t);return e?a.fromArray(e,n):null}static fromArray(t,n=new a){return n._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(n.a)&&(n.a=1),n._sanitize()}static fromString(t,n){const e=(0,i.Eq)(t);return e?a.fromArray(e,n):null}static fromJSON(t){return null!=t?new a([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?a.fromString(t,this):Array.isArray(t)?a.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof a||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const n=t?.capitalize??!1,e=t?.digits??6,i=3===e||4===e,r=4===e||8===e,s=`#${o(this.r,i)}${o(this.g,i)}${o(this.b,i)}${r?o(Math.round(255*this.a),i):""}`;return n?s.toUpperCase():s}toCss(t=!1){const n=this.r+", "+this.g+", "+this.b;return t?`rgba(${n}, ${this.a})`:`rgb(${n})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const n=l(this.r),e=l(this.g),i=l(this.b);return 0===t||1!==this.a?[n,e,i,l(255*this.a)]:[n,e,i]}clone(){return new a(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(t,n,e,i){this.r=t,this.g=n,this.b=e,this.a=i}}a.prototype.declaredClass="esri.Color"},69052:(t,n,e)=>{e.d(n,{hr:()=>r,ie:()=>a,uC:()=>o});var i=e(34727);class r{constructor(t,n){this.min=t,this.max=n,this.range=n-t}normalize(t,n=0,e=!1){return s(this.range,this.min,this.max,t,n,e)}clamp(t,n=0){return(0,i.qE)(t-n,this.min,this.max)+n}monotonic(t,n,e){return t<n?n:n+l(this.range,t-n,e)}minimalMonotonic(t,n,e){return s(this.range,t,t+this.range,n,e)}center(t,n,e){return n=this.monotonic(t,n,e),this.normalize((t+n)/2,e)}diff(t,n,e){return this.monotonic(t,n,e)-t}shortestSignedDiff(t,n){t=this.normalize(t);const e=(n=this.normalize(n))-t,i=n<t?this.minimalMonotonic(t,n)-t:n-this.minimalMonotonic(n,t);return Math.abs(e)<Math.abs(i)?e:i}contains(t,n,e){return n=this.minimalMonotonic(t,n),(e=this.minimalMonotonic(t,e))>t&&e<n}}function s(t,n,e,i,r=0,s=!1){return(i-=r)<n?i+=l(t,n-i):i>e&&(i-=l(t,i-e)),s&&i===e&&(i=n),i+r}function l(t,n,e=0){return Math.ceil((n-e)/t)*t+e}const o=new r(0,2*Math.PI),a=(new r(-Math.PI,Math.PI),new r(0,360))},69540:(t,n,e)=>{e.d(n,{OU:()=>c,Pw:()=>h});var i=e(31635),r=e(65008),s=(e(44208),e(4718)),l=(e(53966),e(97768)),o=e(88620),a=e(40608);const u=Symbol("ClonableMixin"),c=t=>{var n;const e=t;let r=class extends e{constructor(){super(...arguments),this[n]=!0}static{n=u}clone(t){const n=(0,o.oY)(this);(0,l.Lw)(n,"unable to clone instance of non-accessor class");const e=n.metadata,i=n.store,r={},a=new Map;for(const n in e){const l=e[n],o=i?.originOf(n),u=l.clonable;if(l.readOnly||!1===u||7!==o&&0!==o&&5!==o&&4!==o)continue;const c=this[n];let h=null;if("function"==typeof u)h=u(c,t);else if("reference"===u)h=c;else if(h=(0,s.TU)(c,t),null!=c&&null==h)continue;0===o?a.set(n,h):r[n]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(a.size){const t=(0,o.oY)(u)?.store;if(t)for(const[n,e]of a)t.set(n,e,0)}return u}};return r=(0,i.Cg)([(0,a.$)("esri.core.Clonable")],r),r},h=c(r.A)},71493:(t,n,e)=>{e.r(n),e.d(n,{default:()=>S});var i=e(31635),r=e(79608),s=e(68197),l=e(69540),o=e(25482),a=e(90629),u=e(10107),c=e(56507),h=(e(44208),e(87811),e(40608));let p=class extends((0,o.T)(l.Pw)){constructor(t){super(t),this.type="simple",this.color=new s.A("black"),this.lineSize=2,this.fontSize=10,this.textColor=new s.A("black"),this.textBackgroundColor=new s.A([255,255,255,.6])}equals(t){return this===t||this.color.equals(t.color)&&this.lineSize===t.lineSize&&this.fontSize===t.fontSize&&this.textColor.equals(t.textColor)&&this.textBackgroundColor.equals(t.textBackgroundColor)}};(0,i.Cg)([(0,u.MZ)({type:["simple"],readOnly:!0,json:{write:{isRequired:!0}}})],p.prototype,"type",void 0),(0,i.Cg)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[c.jz],write:{isRequired:!0}}})],p.prototype,"color",void 0),(0,i.Cg)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,range:{min:(0,a.PN)(1)},json:{write:{isRequired:!0}}})],p.prototype,"lineSize",void 0),(0,i.Cg)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,json:{write:{isRequired:!0}}})],p.prototype,"fontSize",void 0),(0,i.Cg)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[c.jz],write:{isRequired:!0}}})],p.prototype,"textColor",void 0),(0,i.Cg)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[c.jz],write:{isRequired:!0}}})],p.prototype,"textBackgroundColor",void 0),p=(0,i.Cg)([(0,h.$)("esri.analysis.DimensionSimpleStyle")],p);var f=e(69052),d=e(97768),y=e(79901),g=e(86738);let m=class extends((0,o.T)(l.Pw)){constructor(t){super(t),this.type="length",this.startPoint=null,this.endPoint=null,this.measureType="direct",this.offset=0,this.orientation=0}get valid(){return null!=this.startPoint&&null!=this.endPoint}equals(t){return this===t||(0,d.CM)(this.startPoint,t.startPoint)&&(0,d.CM)(this.endPoint,t.endPoint)&&this.measureType===t.measureType&&this.offset===t.offset&&this.orientation===t.orientation}};(0,i.Cg)([(0,u.MZ)({type:["length"],json:{write:{isRequired:!0}}})],m.prototype,"type",void 0),(0,i.Cg)([(0,u.MZ)({type:g.A,json:{write:{isRequired:!0}}})],m.prototype,"startPoint",void 0),(0,i.Cg)([(0,u.MZ)({type:g.A,json:{write:{isRequired:!0}}})],m.prototype,"endPoint",void 0),(0,i.Cg)([(0,u.MZ)({type:["horizontal","vertical","direct"],nonNullable:!0,json:{write:{isRequired:!0}}})],m.prototype,"measureType",void 0),(0,i.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],m.prototype,"offset",void 0),(0,i.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),(0,y.w)(t=>f.ie.normalize((0,c.GB)(t),0,!0))],m.prototype,"orientation",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],m.prototype,"valid",null),m=(0,i.Cg)([(0,h.$)("esri.analysis.LengthDimension")],m);var w=e(4576),M=e(7762),v=e(62885),R=e(36708),x=(e(53966),e(5443)),b=e(98988);const C=M.A.ofType(m);let P=class extends r.A{constructor(t){super(t),this.type="dimension",this.style=new p,this.extent=null}initialize(){this.addHandles((0,R.wB)(()=>this._computeExtent(),t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)},R.pc))}get dimensions(){return this._get("dimensions")||new C}set dimensions(t){this._set("dimensions",(0,v.V)(t,this.dimensions,C))}get spatialReference(){for(const t of this.dimensions){if(null!=t.startPoint)return t.startPoint.spatialReference;if(null!=t.endPoint)return t.endPoint.spatialReference}return null}get valid(){return this.dimensions.every(t=>t.valid)}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==t)return{pending:null,extent:null};const n=[];for(const t of this.dimensions)null!=t.startPoint&&n.push(t.startPoint),null!=t.endPoint&&n.push(t.endPoint);const e=(0,b.projectOrLoadMany)(n,t);if(null!=e.pending)return{pending:e.pending,extent:null};let i=null;return null!=e.geometries&&(i=e.geometries.reduce((t,n)=>null==t?null!=n?x.A.fromPoint(n):null:null!=n?t.union(x.A.fromPoint(n)):t,null)),{pending:null,extent:i}}clear(){this.dimensions.removeAll()}equals(t){return this===t||super.equals(t)&&this.style.equals(t.style)&&(0,w.aI)(this.dimensions.toArray(),t.dimensions.toArray(),(t,n)=>t.equals(n))}};(0,i.Cg)([(0,u.MZ)({type:["dimension"]})],P.prototype,"type",void 0),(0,i.Cg)([(0,u.MZ)({cast:v.H,type:C,nonNullable:!0})],P.prototype,"dimensions",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],P.prototype,"spatialReference",null),(0,i.Cg)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:p}},nonNullable:!0})],P.prototype,"style",void 0),(0,i.Cg)([(0,u.MZ)({value:null,readOnly:!0})],P.prototype,"extent",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],P.prototype,"valid",null),P=(0,i.Cg)([(0,h.$)("esri.analysis.DimensionAnalysis")],P);var A=e(92071),j=e(43937),k=e(4146),_=e(16131);let I=class extends((0,_.q)((0,A.P)(k.A))){constructor(t){if(super(t),this.type="dimension",this.operationalLayerType="ArcGISDimensionLayer",this.source=new P,this.opacity=1,t){const{source:n,style:e}=t;n&&e&&(n.style=e)}}initialize(){this.addHandles([(0,R.wB)(()=>this.source,(t,n)=>{null!=n&&n.parent===this&&(n.parent=null),null!=t&&(t.parent=this)},R.pc)])}async load(){return this.addResolvingPromise(this.source.waitComputeExtent()),this}get spatialReference(){return this.source.spatialReference}get style(){return this.source.style}set style(t){this.source.style=t}get fullExtent(){return this.source.extent}releaseAnalysis(t){this.source===t&&(this.source=new P)}get analysis(){return this.source}set analysis(t){this.source=t}get dimensions(){return this.source.dimensions}set dimensions(t){this.source.dimensions=t}writeDimensions(t,n,e,i){n.dimensions=t.filter(({startPoint:t,endPoint:n})=>null!=t&&null!=n).toJSON(i)}};(0,i.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0})],I.prototype,"type",void 0),(0,i.Cg)([(0,u.MZ)({type:["ArcGISDimensionLayer"]})],I.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,u.MZ)({nonNullable:!0})],I.prototype,"source",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],I.prototype,"spatialReference",null),(0,i.Cg)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:p}},json:{write:{ignoreOrigin:!0}}})],I.prototype,"style",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],I.prototype,"fullExtent",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],I.prototype,"opacity",void 0),(0,i.Cg)([(0,u.MZ)({type:["show","hide"]})],I.prototype,"listMode",void 0),(0,i.Cg)([(0,u.MZ)({type:M.A.ofType(m),json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{ignoreOrigin:!0}}}}})],I.prototype,"dimensions",null),(0,i.Cg)([(0,j.K)("web-scene","dimensions")],I.prototype,"writeDimensions",null),I=(0,i.Cg)([(0,h.$)("esri.layers.DimensionLayer")],I);const S=I},78553:(t,n,e)=>{e.d(n,{D:()=>s,p:()=>r});var i=e(56507);function r(t){const n=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(n,100))}function s(t){const n=1-t/100;return Math.max(0,Math.min(n,1))}},79608:(t,n,e)=>{e.d(n,{A:()=>f});var i=e(31635),r=e(69540),s=e(10107),l=(e(44208),e(53966),e(87811),e(40608));let o=class extends r.Pw{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,i.Cg)([(0,s.MZ)()],o.prototype,"type",void 0),o=(0,i.Cg)([(0,l.$)("esri.analysis.support.AnalysisOriginWebScene")],o);const a=o;var u=e(65008),c=e(4902),h=e(25482);let p=0,f=class extends((0,h.T)((0,r.OU)((0,c.sA)(u.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${p++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){const n=this.parent;if(null!=n)switch(n.type){case"line-of-sight":case"dimension":case"viewshed":n.releaseAnalysis(this);break;case"2d":case"3d":n.analyses.includes(this)&&n.analyses.remove(this)}this._set("parent",t)}equals(t){return!0}};(0,i.Cg)([(0,s.MZ)({type:String,constructOnly:!0,clonable:!1})],f.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({clonable:!1,value:null})],f.prototype,"parent",null),(0,i.Cg)([(0,s.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":a}}})],f.prototype,"origin",void 0),f=(0,i.Cg)([(0,l.$)("esri.analysis.Analysis")],f)},98988:(t,n,e)=>{e.r(n),e.d(n,{canProjectWithoutEngine:()=>W,getTransformation:()=>E,getTransformations:()=>L,initializeProjection:()=>V,isEqualBaseGCS:()=>J,isLoaded:()=>S,isLoadedOrLoad:()=>q,isLoadedOrLoadFor:()=>z,load:()=>Z,project:()=>N,projectExtent:()=>st,projectMany:()=>$,projectMultipoint:()=>X,projectOrLoad:()=>G,projectOrLoadMany:()=>T,projectPoint:()=>F,projectPolygon:()=>it,projectPolyline:()=>nt,projectWithZConversion:()=>K,projectWithoutEngine:()=>Y,requiresLoad:()=>O,test:()=>D,tryProjectWithZConversion:()=>U,unload:()=>H});var i=e(49186),r=e(74887),s=e(62788),l=e(95488),o=e(51850),a=e(21276),u=e(73941),c=e(5443),h=e(48526),p=e(83290),f=e(86738),d=e(39829),y=e(82799),g=e(16930),m=e(9762),w=e(37539);function M(t,n,e,i,r,s){return v[0]=t,v[1]=n,v[2]=e,(0,m.projectBuffer)(v,i,0,r,s,0)}const v=(0,o.vt)();let R=0;class x{static fromGE(t){const n=new x;return n._wkt=t.wkt,n._wkid=t.wkid,n._isInverse=t.isInverse,n}constructor(t){this.uid=R++,t?(this._wkt=null!=t.wkt?t.wkt:null,this._wkid=null!=t.wkid?t.wkid:-1,this._isInverse=null!=t.isInverse&&!0===t.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(t){this._wkt=t,this.uid=R++}get wkid(){return this._wkid}set wkid(t){this._wkid=t,this.uid=R++}get isInverse(){return this._isInverse}set isInverse(t){this._isInverse=t,this.uid=R++}getInverse(){const t=new x;return t._wkt=this.wkt,t._wkid=this._wkid,t._isInverse=!this.isInverse,t}}class b{static cacheKey(t,n){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??""].join()}static fromGE(t){const n=new b;let e="";for(const i of t.steps){const t=x.fromGE(i);n.steps.push(t),e+=t.uid.toString()+","}return n._cachedProjection={},n._gtlistentry=null,n._chain=e,n}constructor(t){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,t?.steps)for(const n of t.steps)n instanceof x?this.steps.push(n):this.steps.push(new x({wkid:n.wkid,wkt:n.wkt,isInverse:n.isInverse}))}getInverse(){const t=new b;t.steps=[];for(let n=this.steps.length-1;n>=0;n--){const e=this.steps[n];t.steps.push(e.getInverse())}return t}getGTListEntry(){let t="";for(const n of this.steps)t+=n.uid.toString()+",";return t!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=t),this._gtlistentry}assignCachedGe(t,n,e){this._cachedProjection[b.cacheKey(t,n)]=e}getCachedGeTransformation(t,n){let e="";for(const t of this.steps)e+=t.uid.toString()+",";e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e);const i=this._cachedProjection[b.cacheKey(t,n)];return void 0===i?null:i}}var C=e(21325),P=e(62815);let A=null,j=null,k=null,_={};const I=new l.I;function S(){return!!A&&(0,p.i)()}function q(){return!!S()||((0,s.gc)(I),Z(),!1)}function z(t,n){return!t||!n||W(t,n)||q()}function O(t,n){return!W(t,n)&&!S()}function Z(t){return null==k&&(k=Promise.all([(0,p.l)(),e.e(9930).then(e.bind(e,49930)).then(t=>t.g),e.e(2731).then(e.bind(e,12731))])),k.then(([,n,{hydratedAdapter:e}])=>{(0,r.Te)(t),j=e,A=n.default,A._enableProjection(p.p),I.notify()})}function N(t,n,e=null,i=null){return Array.isArray(t)?0===t.length?[]:((0,a.H)(t),$(j,t,t[0].spatialReference,n,e,i)):((0,a.f)(t),$(j,[t],t.spatialReference,n,e,i)[0])}function $(t,n,e,i,r=null,s=null){if(null==e||null==i)return n;if(W(e,i,r))return n.map(t=>Y(t,e,i));if(null==r&&(0,u.jA)(e))return n.map(t=>Y(t,e,g.A.WGS84)).map(t=>U(t,i));if(null==r&&(0,u.jA)(i))return n.map(t=>U(t,g.A.WGS84)).map(t=>Y(t,g.A.WGS84,i));if(null==r){const t=b.cacheKey(e,i);void 0!==_[t]?r=_[t]:(null==(r=E(e,i,void 0))&&(r=new b),_[t]=r)}if(null==A||null==t)throw new B;return null!=s?A._project(t,n,e,i,r,s):A._project(t,n,e,i,r)}function G(t,n){const e=T([t],n);return null!=e.pending?{pending:e.pending,geometry:null}:null!=e.geometries?{pending:null,geometry:e.geometries[0]}:{pending:null,geometry:null}}function T(t,n){if(!S())for(const e of t)if(null!=e&&!(0,C.aI)(e.spatialReference,n)&&(0,C.fn)(e.spatialReference)&&(0,C.fn)(n)&&!W(e.spatialReference,n))return(0,s.gc)(I),{pending:Z(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,C.aI)(t.spatialReference,n)?t:(0,C.fn)(t.spatialReference)&&(0,C.fn)(n)?U(t,n):null)}}function E(t,n,e=null){if(null==t||null==n)return null;if(null==A||null==j)throw new B;const i=A._getTransformation(j,t,n,e,e?.spatialReference);return null!==i?b.fromGE(i):null}function L(t,n,e=null){if(null==A||null==j)throw new B;const i=A._getTransformationBySuitability(j,t,n,e,e?.spatialReference);if(null!==i){const t=[];for(const n of i)t.push(b.fromGE(n));return t}return[]}class B extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function H(){A=null,j=null,k=null,_={}}const D={get loadPromise(){return k}};function U(t,n){try{const e=N(t,n);if(null==e)return null;"xmin"in t&&"xmin"in e&&(e.zmin=t.zmin,e.zmax=t.zmax);const i=(0,P.N)(e.type,t.spatialReference,n);return null!=i&&i(e),e}catch(t){if(!(t instanceof B))throw t;return null}}async function K(t,n,e){const i=t.spatialReference;return null!=i&&null!=n&&await V(i,n,null,e),U(t,n)}function W(t,n,e){return!e&&(!!(0,C.aI)(t,n)||(0,C.fn)(t)&&(0,C.fn)(n)&&!!(0,w.jd)(t,n))}function J(t,n){if((0,C.aI)(t,n))return!0;if(!(0,C.fn)(t)||!(0,C.fn)(n))return!1;const e=(0,C.oT)(t)||(0,C.K8)(t)||(0,C.x1)(t),i=(0,C.oT)(n)||(0,C.K8)(n)||(0,C.x1)(n);return e&&i}async function V(t,n,e,i){if(S())return(0,r.NO)(i);if(Array.isArray(t)){for(const{source:n,dest:e,geographicTransformation:r}of t)if(n&&e&&!W(n,e,r))return Z(i)}else if(t&&n&&!W(t,n,e))return Z(i);return(0,r.NO)(i)}function Y(t,n,e){return t?"x"in t?Q(t,n,new f.A,e,0):"xmin"in t?lt(t,n,new c.A,e,0):"rings"in t?rt(t,n,new d.A,e,0):"paths"in t?et(t,n,new y.A,e,0):"points"in t?tt(t,n,new h.A,e,0):null:null}function F(t,n,e=n.spatialReference,i=0){return null!=e&&null!=t.spatialReference&&null!=Q(t,t.spatialReference,n,e,i)}function Q(t,n,e,i,r){at[0]=t.x,at[1]=t.y;const s=t.z;return at[2]=void 0!==s?s:r,(0,m.projectBuffer)(at,n,0,at,i,0)?(e.x=at[0],e.y=at[1],e.spatialReference=i,void 0!==s||(0,u.xP)(i)?(e.z=at[2],e.hasZ=!0):(e.z=void 0,e.hasZ=!1),void 0===t.m?(e.m=void 0,e.hasM=!1):(e.m=t.m,e.hasM=!0),e):null}function X(t,n,e=n.spatialReference,i=0){return null!=t.spatialReference&&null!=e&&null!=tt(t,t.spatialReference,n,e,i)}function tt(t,n,e,i,r){const{points:s,hasZ:l,hasM:o}=t,a=[],c=s.length,h=[];for(const t of s)h.push(t[0],t[1],l?t[2]:r);if(!(0,m.projectBuffer)(h,n,0,h,i,0,c))return null;const p=l||(0,u.xP)(i);for(let t=0;t<c;++t){const n=3*t,e=h[n],i=h[n+1];p&&o?a.push([e,i,h[n+2],s[t][3]]):p?a.push([e,i,h[n+2]]):o?a.push([e,i,s[t][2]]):a.push([e,i])}return e.points=a,e.spatialReference=i,e.hasZ=l,e.hasM=o,e}function nt(t,n,e=n.spatialReference,i=0){return null!=t.spatialReference&&null!=e&&null!=et(t,t.spatialReference,n,e,i)}function et(t,n,e,i,r){const{paths:s,hasZ:l,hasM:o}=t,a=[];if(!ot(s,l??!1,o??!1,n,a,i,r))return null;const c=l||(0,u.xP)(i);return e.paths=a,e.spatialReference=i,e.hasZ=c,e.hasM=o,e}function it(t,n,e=n.spatialReference,i=0){return null!=t.spatialReference&&null!=e&&null!=rt(t,t.spatialReference,n,e,i)}function rt(t,n,e,i,r){const{rings:s,hasZ:l,hasM:o}=t,a=[];if(!ot(s,l??!1,o??!1,n,a,i,r))return null;const c=l||(0,u.xP)(i);return e.rings=a,e.spatialReference=i,e.hasZ=c,e.hasM=o,e}function st(t,n,e=n.spatialReference,i=0){return null!=t.spatialReference&&null!=e&&null!=lt(t,t.spatialReference,n,e,i)}function lt(t,n,e,i,r){const{xmin:s,ymin:l,xmax:o,ymax:a,hasZ:c,hasM:h}=t;if(!M(s,l,c?t.zmin:r,n,at,i))return null;const p=c||(0,u.xP)(i);return e.xmin=at[0],e.ymin=at[1],p&&(e.zmin=at[2]),M(o,a,c?t.zmax:r,n,at,i)?(e.xmax=at[0],e.ymax=at[1],p&&(e.zmax=at[2]),h&&(e.mmin=t.mmin,e.mmax=t.mmax),e.spatialReference=i,e):null}function ot(t,n,e,i,r,s,l=0){const o=new Array;for(const e of t)for(const t of e)o.push(t[0],t[1],n?t[2]:l);if(!(0,m.projectBuffer)(o,i,0,o,s,0))return!1;let a=0;r.length=0;const c=n||(0,u.xP)(s);for(const n of t){const t=new Array;for(const i of n)c&&e?t.push([o[a++],o[a++],o[a++],i[3]]):c?t.push([o[a++],o[a++],o[a++]]):e?(t.push([o[a++],o[a++],i[2]]),a++):(t.push([o[a++],o[a++]]),a++);r.push(t)}return!0}const at=(0,o.vt)()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5165,7546],{8303:(t,e,n)=>{n.d(e,{A:()=>M});var r=n(31635),i=n(92602),s=n(70333),l=n(78888),o=n(60999),a=n(49186),u=n(53966),c=n(97768),f=n(74887),p=n(84952),h=n(10107),d=(n(44208),n(87811),n(36005)),g=n(40608),y=n(43937),m=n(77548),_=n(20655),w=n(80812),v=n(41318),I=n(10407);const M=t=>{const e=t;let M=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,n){if(e.itemId)return new w.default({id:e.itemId,portal:n?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:r}=await n.e(1204).then(n.bind(n,41204));return(0,f.Te)(e),await r({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,f.zf)(t)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,f.QP)(t),!0)))}async setUserPrivileges(t,e){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:n,fullEdit:r},content:{updateItem:i}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",i)}catch(t){(0,f.QP)(t)}}async _fetchUserPrivileges(t,e){let n=this.portalItem;if(!t||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(e);const r=!s.id?.findCredential(this.url),i=t===n.id;if(i&&n.portal.user)return this._getUserPrivileges(n,r);let l,o;if(i)l=n.portal.url;else try{l=await(0,m.wI)(this.url,e)}catch(t){(0,f.QP)(t)}if(!l||!(0,p.b8)(l,n.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;o=await(s.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,f.QP)(t)}const a=!0,u=!1,c=!1;if(!o)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(i?await n.reload():(n=new w.default({id:t,portal:{url:l}}),await n.load(e)),n.portal.user)return this._getUserPrivileges(n,r)}catch(t){(0,f.QP)(t)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(t,e){const n=(0,I.It)(t);return e&&(n.features.edit=!0),n}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,f.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?s.id?.findCredential(this.url):null;if(!e)return!0;const n=P.credential===e?P.user:await this._fetchEditingUser(t);return P.credential=e,P.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const n=s.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const r=`${n.owningSystemUrl}/sharing/rest`,i=_.A.getDefault();if(i&&i.loaded&&(0,p.S8)(i.restUrl)===(0,p.S8)(r))return i.user;const a=`${r}/community/self`,u=null!=t?t.signal:null,c=await(0,o.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?v.A.fromJSON(c.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const n=e?.portal,r=this.portalItem?.id&&(this.portalItem.portal||_.A.getDefault());return n&&r&&!(0,p.ut)(r.restUrl,n.restUrl)?(e.messages&&e.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,r.Cg)([(0,h.MZ)({type:w.default})],M.prototype,"portalItem",null),(0,r.Cg)([(0,d.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,r.Cg)([(0,y.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,r.Cg)([(0,h.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,r.Cg)([(0,g.$)("esri.layers.mixins.PortalLayer")],M),M},P={credential:null,user:null}},9762:(t,e,n)=>{n.r(e),n.d(e,{projectBuffer:()=>i});var r=n(37539);function i(t,e,n,i,s,l,o=Math.floor(t.length/3)){const a=(0,r.jd)(e,s);if(null==a)return!1;if(a===r.pO){if(t===i&&n===l)return!0;const e=n+3*o;for(let r=n,s=l;r<e;r++,s++)i[s]=t[r];return!0}const u=n+3*o;for(let e=n,r=l;e<u;e+=3,r+=3)a(t,e,i,r);return!0}},10407:(t,e,n)=>{n.d(e,{It:()=>h,LG:()=>l,OM:()=>u,Sm:()=>c,Y:()=>o,bK:()=>a,mm:()=>p,sQ:()=>f});var r=n(98988),i=n(16930),s=n(28735);function l(t,e){if(!o(t,e)){const n=t.typeKeywords;n?n.push(e):t.typeKeywords=[e]}}function o(t,e){return!!t.typeKeywords?.includes(e)}function a(t){return o(t,p.HOSTED_SERVICE)}function u(t,e){const n=t.typeKeywords;if(n){const t=n.indexOf(e);t>-1&&n.splice(t,1)}}function c(t,e,n){n?l(t,e):u(t,e)}async function f(t){const e=t.clone().normalize();let n;if(e.length>1)for(const t of e)n?t.width>n.width&&(n=t):n=t;else n=e[0];return async function(t){const e=t.spatialReference;if(e.isWGS84)return t.clone();if(e.isWebMercator)return(0,s.ci)(t);const n=i.A.WGS84;return await(0,r.initializeProjection)(e,n),(0,r.project)(t,n)}(n)}const p={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function h(t){const{portal:e,isOrgItem:n,itemControl:r}=t,i=e.user?.privileges;let s=!i||i.includes("features:user:edit"),l=!!n&&!!i?.includes("features:user:fullEdit");const o="update"===r||"admin"===r;return o?l=s=!0:l&&(s=!0),{features:{edit:s,fullEdit:l},content:{updateItem:o}}}},37539:(t,e,n)=>{n.d(e,{pO:()=>g,jd:()=>p,Tp:()=>h,w5:()=>f});var r=n(34727),i=n(83047),s=n(73941),l=n(79258);Math.PI;const o=l.$O.radius,a=l.$O.eccentricitySquared,u={a1:o*a,a2:o*a*o*a,a3:o*a*a/2,a4:o*a*o*a*2.5,a5:o*a+o*a*a/2,a6:1-a};l.$O.radius,l.$O.flattening,l.Sw.radius,l.Sw.flattening,l.sH.radius,l.sH.flattening,l.sH.radius;var c=n(21325);const f={2:{5:g,7:null,9:null,10:g,1:P,6:null,8:null,0:null,3:m,11:_,2:g,4:A},5:{5:g,7:null,9:null,10:g,1:P,6:null,8:null,0:null,3:m,11:_,2:g,4:A},7:{5:null,7:g,9:null,10:g,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:g,10:g,1:null,6:null,8:I,0:null,3:null,11:null,2:null,4:null},3:{5:y,7:null,9:null,10:y,1:function(t,e,n,r){const i=t[e]/L,s=b-2*Math.atan(Math.exp(-t[e+1]/L)),l=L+t[e+2],o=Math.cos(s)*l;n[r]=Math.cos(i)*o,n[r+1]=Math.sin(i)*o,n[r+2]=Math.sin(s)*l},6:null,8:null,0:null,3:g,11:function(t,e,n,r){y(t,e,n,r),_(n,r,n,r)},2:y,4:function(t,e,n,r){y(t,e,n,r),A(n,r,n,r)}},4:{5:k,7:null,9:null,10:k,1:function(t,e,n,r){k(t,e,n,r),P(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){k(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){k(t,e,n,r),_(n,r,n,r)},2:k,4:g},1:{5:E,7:null,9:null,10:E,1:g,6:null,8:null,0:null,3:function(t,e,n,r){E(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){E(t,e,n,r),_(n,r,n,r)},2:E,4:function(t,e,n,r){E(t,e,n,r),A(n,r,n,r)}},6:{5:null,7:S,9:null,10:S,1:null,6:g,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:O,10:O,1:null,6:null,8:g,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:g,3:null,11:null,2:null,4:null},10:{5:g,7:g,9:g,10:g,1:P,6:M,8:I,0:null,3:m,11:_,2:g,4:A},11:{5:w,7:null,9:null,10:w,1:function(t,e,n,r){w(t,e,n,r),P(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){w(t,e,n,r),m(n,r,n,r)},11:g,2:w,4:function(t,e,n,r){w(t,e,n,r),A(n,r,n,r)}}};function p(t,e){return h(t,e)?.projector}function h(t,e){if(null==t||null==e)return null;if(j.source.spatialReference===t&&j.dest.spatialReference===e)return j;const n=d(t,j.source),r=d(e,j.dest);return 0===n&&0===r?(0,c.aI)(t,e)?j.projector=g:j.projector=null:j.projector=f[n][r],j}function d(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,i.GA)(t,1)),(0,s.jA)(t)?e.spatialReferenceId=1:(0,c.oT)(t)?e.spatialReferenceId=2:(0,c.K8)(t)?e.spatialReferenceId=3:(0,c.r1)(t)?e.spatialReferenceId=11:t.wkt===s.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===s.FY.wkt?e.spatialReferenceId=6:t.wkt===s.LJ.wkt?e.spatialReferenceId=8:(0,c.q8)(t)?e.spatialReferenceId=7:(0,c.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function g(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e])}function y(t,e,n,r){n[r]=x*(t[e]/L),n[r+1]=x*(b-2*Math.atan(Math.exp(-t[e+1]/L))),n[r+2]=t[e+2]}function m(t,e,n,i){!function(t,e,n,i,s){const l=.4999999*Math.PI,o=(0,r.qE)(C*t[e+1],-l,l),a=Math.sin(o);n[i++]=C*t[e]*s.radius,n[i++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[i]=t[e+2]}(t,e,n,i,l.$O)}function _(t,e,n,r){n[r]=t[e]*U,n[r+1]=t[e+1]*U,n[r+2]=t[e+2]}function w(t,e,n,r){n[r]=t[e]*T,n[r+1]=t[e+1]*T,n[r+2]=t[e+2]}function v(t,e,n,r,i){const s=i+t[e+2],l=C*t[e+1],o=C*t[e],a=Math.cos(l)*s;n[r]=Math.cos(o)*a,n[r+1]=Math.sin(o)*a,n[r+2]=Math.sin(l)*s}function I(t,e,n,r){v(t,e,n,r,l.Sw.radius)}function M(t,e,n,r){v(t,e,n,r,l.sH.radius)}function P(t,e,n,r){v(t,e,n,r,l.$O.radius)}function R(t,e,n,i,s){const l=t[e],o=t[e+1],a=t[e+2],u=Math.sqrt(l*l+o*o+a*a),c=(0,r.YN)(a/(0===u?1:u)),f=Math.atan2(o,l);n[i++]=x*f,n[i++]=x*c,n[i]=u-s}function O(t,e,n,r){R(t,e,n,r,l.Sw.radius)}function S(t,e,n,r){R(t,e,n,r,l.sH.radius)}function E(t,e,n,r){R(t,e,n,r,l.$O.radius)}function A(t,e,n,r){!function(t,e,n,r,i){const s=C*t[e],l=C*t[e+1],o=t[e+2],a=Math.sin(l),u=Math.cos(l),c=i.radius/Math.sqrt(1-i.eccentricitySquared*a*a);n[r++]=(c+o)*u*Math.cos(s),n[r++]=(c+o)*u*Math.sin(s),n[r++]=(c*(1-i.eccentricitySquared)+o)*a}(t,e,n,r,l.$O)}function k(t,e,n,r){const i=u,s=t[e],o=t[e+1],a=t[e+2];let c,f,p,h,d,g,y,m,_,w,v,I,M,P,R,O,S,E,A,k,j;c=Math.abs(a),f=s*s+o*o,p=Math.sqrt(f),h=f+a*a,d=Math.sqrt(h),k=Math.atan2(o,s),g=a*a/h,y=f/h,P=i.a2/d,R=i.a3-i.a4/d,y>.3?(m=c/d*(1+y*(i.a1+P+g*R)/d),A=Math.asin(m),w=m*m,_=Math.sqrt(1-w)):(_=p/d*(1-g*(i.a5-P-y*R)/d),A=Math.acos(_),w=1-_*_,m=Math.sqrt(w)),v=1-l.$O.eccentricitySquared*w,I=l.$O.radius/Math.sqrt(v),M=i.a6*I,P=p-I*_,R=c-M*m,S=_*P+m*R,O=_*R-m*P,E=O/(M/v+S),A+=E,j=S+O*E/2,a<0&&(A=-A),n[r++]=x*k,n[r++]=x*A,n[r]=j}const j={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:g},C=(0,r.kU)(1),x=(0,r.KJ)(1),b=.5*Math.PI,L=l.$O.radius,U=L*Math.PI/180,T=180/(L*Math.PI)},45165:(t,e,n)=>{n.r(e),n.d(e,{default:()=>p});var r=n(31635),i=n(49186),s=n(92071),l=n(96211),o=n(10107),a=(n(44208),n(53966),n(87811),n(40608)),u=n(4146),c=n(8303);let f=class extends((0,c.A)((0,s.P)(u.A))){constructor(t){super(t),this.resourceInfo=null,this.persistenceEnabled=!0,this.type="unsupported"}initialize(){this.addResolvingPromise(new Promise((t,e)=>{(0,l._)(()=>{const t=this.resourceInfo&&(this.resourceInfo.layerType||this.resourceInfo.type);let n="Unsupported layer type";t&&(n+=" "+t),e(new i.A("layer:unsupported-layer-type",n,{layerType:t}))})}))}read(t,e){const n={resourceInfo:t};null!=t.id&&(n.id=t.id),null!=t.title&&(n.title=t.title),super.read(n,e)}write(t,e){return Object.assign(t||{},this.resourceInfo,{id:this.id})}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"resourceInfo",void 0),(0,r.Cg)([(0,o.MZ)({type:["show","hide"]})],f.prototype,"listMode",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean,readOnly:!1})],f.prototype,"persistenceEnabled",void 0),(0,r.Cg)([(0,o.MZ)({json:{read:!1},readOnly:!0,value:"unsupported"})],f.prototype,"type",void 0),f=(0,r.Cg)([(0,a.$)("esri.layers.UnsupportedLayer")],f);const p=f},60999:(t,e,n)=>{n.d(e,{DZ:()=>d,Ke:()=>h,Tj:()=>c,UT:()=>g,jJ:()=>u});var r=n(31635),i=n(65008),s=n(97768),l=n(74887),o=n(10107),a=n(40608);function u(t,e,n){return(0,l.Lx)(t.map((t,r)=>e.apply(n,[t,r])))}async function c(t,e,n){return(await(0,l.Lx)(t.map((t,r)=>e.apply(n,[t,r])))).map(t=>t.value)}function f(t){return{ok:!0,value:t}}function p(t){return{ok:!1,error:t}}async function h(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return f(await t)}catch(t){return p(t)}}async function d(t){try{return f(await t)}catch(t){return(0,l.QP)(t),p(t)}}function g(t,e){return new y(t,e)}let y=class extends i.A{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=t(n),this.promise.then(t=>{this._result=f(t),this._cleanup()},t=>{this._result=p(t),this._cleanup()}),this._abortHandle=(0,l.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,o.MZ)()],y.prototype,"value",null),(0,r.Cg)([(0,o.MZ)()],y.prototype,"error",null),(0,r.Cg)([(0,o.MZ)()],y.prototype,"finished",null),(0,r.Cg)([(0,o.MZ)()],y.prototype,"promise",void 0),(0,r.Cg)([(0,o.MZ)()],y.prototype,"_result",void 0),y=(0,r.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],y)},62815:(t,e,n)=>{n.d(e,{N:()=>l});var r=n(83047),i=n(73941),s=n(21325);function l(t,e,n){if(null==e||null==n||n.vcsWkid||(0,s.aI)(e,n)||(0,i.xP)(e)||(0,i.xP)(n))return null;const l=(0,r.G9)(e)/(0,r.G9)(n);if(1===l)return null;switch(t){case"point":case"esriGeometryPoint":return t=>function(t,e){null!=t?.z&&(t.z*=e)}(t,l);case"polyline":case"esriGeometryPolyline":return t=>function(t,e){if(t)for(const n of t.paths)for(const t of n)t.length>2&&(t[2]*=e)}(t,l);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t)for(const n of t.rings)for(const t of n)t.length>2&&(t[2]*=e)}(t,l);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(const n of t.points)n.length>2&&(n[2]*=e)}(t,l);case"extent":case"esriGeometryEnvelope":return t=>function(t,e){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=e,t.zmax*=e)}(t,l);default:return null}}},92071:(t,e,n)=>{n.d(e,{P:()=>_,L:()=>w});var r=n(31635),i=n(65008),s=n(76953),l=n(4718),o=n(35666);class a{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(o.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new a,n=this._originStores[0];n&&n.forEach((t,n)=>{e.set(n,(0,l.o8)(t),0)});for(let n=2;n<o.AU;n++){const r=this._originStores[n];r&&r.forEach((r,i)=>{t&&t.has(i)||e.set(i,(0,l.o8)(r),n)})}return e}get(t,e){const n=void 0===e?this._values:this._originStores[e];return n?n.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,n=7){let r=this._originStores[n];if(r||(r=new Map,this._originStores[n]=r),r.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=n){const r=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,n),r!==e}return!1}delete(t,e=7){const n=this._originStores[e];if(!n)return;const r=n.get(t);if(n.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let n=e-1;n>=0;n--){const e=this._originStores[n];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,n);break}}}return r}has(t,e){const n=void 0===e?this._values:this._originStores[e];return!!n&&n.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const n=this._originStores[e],r=n?.get(t),i=this._values.get(t);return this._values.set(t,r),this._propertyOriginMap.set(t,e),i!==r}originOf(t){return this._propertyOriginMap.get(t)||0}isAtOrigin(t,e){return this.has(t,e)&&this.originOf(t)===e}isBelowOrigin(t,e){return!this.has(t)||this.originOf(t)<e}forEach(t){this._values.forEach(t)}}var u=n(45917),c=n(88620),f=n(40608);const p=t=>{const e=t;let n=class extends e{constructor(...t){super(...t);const e=(0,c.oY)(this),n=e.store,r=new a;e.store=r,(0,s.k)(e,n,r)}read(t,e){(0,u.L)(this,t,e)}getAtOrigin(t,e){const n=h(this),r=(0,o.aB)(e);if("string"==typeof t)return n.get(t,r);const i={};return t.forEach(t=>{i[t]=n.get(t,r)}),i}originOf(t){return(0,o.OL)(this.originIdOf(t))}originIdOf(t){return h(this).originOf(t)}revert(t,e){const n=h(this),r=(0,o.aB)(e),i=(0,c.oY)(this);let s;s="string"==typeof t?"*"===t?n.keys(r):[t]:t,s.forEach(t=>{i.invalidate(t),n.revert(t,r),i.commit(t)})}};return n=(0,r.Cg)([(0,f.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],n),n};function h(t){return(0,c.oY)(t).store}p(i.A);var d=n(16649),g=n(49422);const y=t=>{const e=t;let n=class extends e{constructor(...t){super(...t)}clear(t,e="user"){(0,c.oY)(this).clearOrigin(t,(0,o.aB)(e))}write(t,e){return(0,g.M)(this,t=t||{},e),t}setAtOrigin(t,e,n){(0,c.oY)(this).setAtOrigin(t,e,(0,o.aB)(n))}removeOrigin(t){const e=m(this),n=(0,o.aB)(t),r=e.keys(n);for(const t of r)e.originOf(t)===n&&e.set(t,e.get(t,n),7)}updateOrigin(t,e){const n=m(this),r=(0,o.aB)(e),i=(0,d.Jt)(this,t);for(let e=r+1;e<o.AU;++e)n.delete(t,e);n.set(t,i,r)}toJSON(t){return this.write({},t)}};return n=(0,r.Cg)([(0,f.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],n),n.prototype.toJSON.isDefaultToJSON=!0,n};function m(t){return(0,c.oY)(t).store}const _=t=>{const e=y(p(t));let n=class extends e{};return n=(0,r.Cg)([(0,f.$)("esri.core.MultiOriginJSONSupport")],n),n},w=_(i.A)},98988:(t,e,n)=>{n.r(e),n.d(e,{canProjectWithoutEngine:()=>D,getTransformation:()=>$,getTransformations:()=>B,initializeProjection:()=>W,isEqualBaseGCS:()=>J,isLoaded:()=>C,isLoadedOrLoad:()=>x,isLoadedOrLoadFor:()=>b,load:()=>U,project:()=>T,projectExtent:()=>st,projectMany:()=>G,projectMultipoint:()=>X,projectOrLoad:()=>H,projectOrLoadMany:()=>Z,projectPoint:()=>Q,projectPolygon:()=>rt,projectPolyline:()=>et,projectWithZConversion:()=>q,projectWithoutEngine:()=>F,requiresLoad:()=>L,test:()=>K,tryProjectWithZConversion:()=>N,unload:()=>Y});var r=n(49186),i=n(74887),s=n(62788),l=n(95488),o=n(51850),a=n(21276),u=n(73941),c=n(5443),f=n(48526),p=n(83290),h=n(86738),d=n(39829),g=n(82799),y=n(16930),m=n(9762),_=n(37539);function w(t,e,n,r,i,s){return v[0]=t,v[1]=e,v[2]=n,(0,m.projectBuffer)(v,r,0,i,s,0)}const v=(0,o.vt)();let I=0;class M{static fromGE(t){const e=new M;return e._wkt=t.wkt,e._wkid=t.wkid,e._isInverse=t.isInverse,e}constructor(t){this.uid=I++,t?(this._wkt=null!=t.wkt?t.wkt:null,this._wkid=null!=t.wkid?t.wkid:-1,this._isInverse=null!=t.isInverse&&!0===t.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(t){this._wkt=t,this.uid=I++}get wkid(){return this._wkid}set wkid(t){this._wkid=t,this.uid=I++}get isInverse(){return this._isInverse}set isInverse(t){this._isInverse=t,this.uid=I++}getInverse(){const t=new M;return t._wkt=this.wkt,t._wkid=this._wkid,t._isInverse=!this.isInverse,t}}class P{static cacheKey(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}static fromGE(t){const e=new P;let n="";for(const r of t.steps){const t=M.fromGE(r);e.steps.push(t),n+=t.uid.toString()+","}return e._cachedProjection={},e._gtlistentry=null,e._chain=n,e}constructor(t){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,t?.steps)for(const e of t.steps)e instanceof M?this.steps.push(e):this.steps.push(new M({wkid:e.wkid,wkt:e.wkt,isInverse:e.isInverse}))}getInverse(){const t=new P;t.steps=[];for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}getGTListEntry(){let t="";for(const e of this.steps)t+=e.uid.toString()+",";return t!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=t),this._gtlistentry}assignCachedGe(t,e,n){this._cachedProjection[P.cacheKey(t,e)]=n}getCachedGeTransformation(t,e){let n="";for(const t of this.steps)n+=t.uid.toString()+",";n!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=n);const r=this._cachedProjection[P.cacheKey(t,e)];return void 0===r?null:r}}var R=n(21325),O=n(62815);let S=null,E=null,A=null,k={};const j=new l.I;function C(){return!!S&&(0,p.i)()}function x(){return!!C()||((0,s.gc)(j),U(),!1)}function b(t,e){return!t||!e||D(t,e)||x()}function L(t,e){return!D(t,e)&&!C()}function U(t){return null==A&&(A=Promise.all([(0,p.l)(),n.e(9930).then(n.bind(n,49930)).then(t=>t.g),n.e(2731).then(n.bind(n,12731))])),A.then(([,e,{hydratedAdapter:n}])=>{(0,i.Te)(t),E=n,S=e.default,S._enableProjection(p.p),j.notify()})}function T(t,e,n=null,r=null){return Array.isArray(t)?0===t.length?[]:((0,a.H)(t),G(E,t,t[0].spatialReference,e,n,r)):((0,a.f)(t),G(E,[t],t.spatialReference,e,n,r)[0])}function G(t,e,n,r,i=null,s=null){if(null==n||null==r)return e;if(D(n,r,i))return e.map(t=>F(t,n,r));if(null==i&&(0,u.jA)(n))return e.map(t=>F(t,n,y.A.WGS84)).map(t=>N(t,r));if(null==i&&(0,u.jA)(r))return e.map(t=>N(t,y.A.WGS84)).map(t=>F(t,y.A.WGS84,r));if(null==i){const t=P.cacheKey(n,r);void 0!==k[t]?i=k[t]:(null==(i=$(n,r,void 0))&&(i=new P),k[t]=i)}if(null==S||null==t)throw new z;return null!=s?S._project(t,e,n,r,i,s):S._project(t,e,n,r,i)}function H(t,e){const n=Z([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function Z(t,e){if(!C())for(const n of t)if(null!=n&&!(0,R.aI)(n.spatialReference,e)&&(0,R.fn)(n.spatialReference)&&(0,R.fn)(e)&&!D(n.spatialReference,e))return(0,s.gc)(j),{pending:U(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,R.aI)(t.spatialReference,e)?t:(0,R.fn)(t.spatialReference)&&(0,R.fn)(e)?N(t,e):null)}}function $(t,e,n=null){if(null==t||null==e)return null;if(null==S||null==E)throw new z;const r=S._getTransformation(E,t,e,n,n?.spatialReference);return null!==r?P.fromGE(r):null}function B(t,e,n=null){if(null==S||null==E)throw new z;const r=S._getTransformationBySuitability(E,t,e,n,n?.spatialReference);if(null!==r){const t=[];for(const e of r)t.push(P.fromGE(e));return t}return[]}class z extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function Y(){S=null,E=null,A=null,k={}}const K={get loadPromise(){return A}};function N(t,e){try{const n=T(t,e);if(null==n)return null;"xmin"in t&&"xmin"in n&&(n.zmin=t.zmin,n.zmax=t.zmax);const r=(0,O.N)(n.type,t.spatialReference,e);return null!=r&&r(n),n}catch(t){if(!(t instanceof z))throw t;return null}}async function q(t,e,n){const r=t.spatialReference;return null!=r&&null!=e&&await W(r,e,null,n),N(t,e)}function D(t,e,n){return!n&&(!!(0,R.aI)(t,e)||(0,R.fn)(t)&&(0,R.fn)(e)&&!!(0,_.jd)(t,e))}function J(t,e){if((0,R.aI)(t,e))return!0;if(!(0,R.fn)(t)||!(0,R.fn)(e))return!1;const n=(0,R.oT)(t)||(0,R.K8)(t)||(0,R.x1)(t),r=(0,R.oT)(e)||(0,R.K8)(e)||(0,R.x1)(e);return n&&r}async function W(t,e,n,r){if(C())return(0,i.NO)(r);if(Array.isArray(t)){for(const{source:e,dest:n,geographicTransformation:i}of t)if(e&&n&&!D(e,n,i))return U(r)}else if(t&&e&&!D(t,e,n))return U(r);return(0,i.NO)(r)}function F(t,e,n){return t?"x"in t?V(t,e,new h.A,n,0):"xmin"in t?lt(t,e,new c.A,n,0):"rings"in t?it(t,e,new d.A,n,0):"paths"in t?nt(t,e,new g.A,n,0):"points"in t?tt(t,e,new f.A,n,0):null:null}function Q(t,e,n=e.spatialReference,r=0){return null!=n&&null!=t.spatialReference&&null!=V(t,t.spatialReference,e,n,r)}function V(t,e,n,r,i){at[0]=t.x,at[1]=t.y;const s=t.z;return at[2]=void 0!==s?s:i,(0,m.projectBuffer)(at,e,0,at,r,0)?(n.x=at[0],n.y=at[1],n.spatialReference=r,void 0!==s||(0,u.xP)(r)?(n.z=at[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}function X(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=tt(t,t.spatialReference,e,n,r)}function tt(t,e,n,r,i){const{points:s,hasZ:l,hasM:o}=t,a=[],c=s.length,f=[];for(const t of s)f.push(t[0],t[1],l?t[2]:i);if(!(0,m.projectBuffer)(f,e,0,f,r,0,c))return null;const p=l||(0,u.xP)(r);for(let t=0;t<c;++t){const e=3*t,n=f[e],r=f[e+1];p&&o?a.push([n,r,f[e+2],s[t][3]]):p?a.push([n,r,f[e+2]]):o?a.push([n,r,s[t][2]]):a.push([n,r])}return n.points=a,n.spatialReference=r,n.hasZ=l,n.hasM=o,n}function et(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=nt(t,t.spatialReference,e,n,r)}function nt(t,e,n,r,i){const{paths:s,hasZ:l,hasM:o}=t,a=[];if(!ot(s,l??!1,o??!1,e,a,r,i))return null;const c=l||(0,u.xP)(r);return n.paths=a,n.spatialReference=r,n.hasZ=c,n.hasM=o,n}function rt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=it(t,t.spatialReference,e,n,r)}function it(t,e,n,r,i){const{rings:s,hasZ:l,hasM:o}=t,a=[];if(!ot(s,l??!1,o??!1,e,a,r,i))return null;const c=l||(0,u.xP)(r);return n.rings=a,n.spatialReference=r,n.hasZ=c,n.hasM=o,n}function st(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=lt(t,t.spatialReference,e,n,r)}function lt(t,e,n,r,i){const{xmin:s,ymin:l,xmax:o,ymax:a,hasZ:c,hasM:f}=t;if(!w(s,l,c?t.zmin:i,e,at,r))return null;const p=c||(0,u.xP)(r);return n.xmin=at[0],n.ymin=at[1],p&&(n.zmin=at[2]),w(o,a,c?t.zmax:i,e,at,r)?(n.xmax=at[0],n.ymax=at[1],p&&(n.zmax=at[2]),f&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=r,n):null}function ot(t,e,n,r,i,s,l=0){const o=new Array;for(const n of t)for(const t of n)o.push(t[0],t[1],e?t[2]:l);if(!(0,m.projectBuffer)(o,r,0,o,s,0))return!1;let a=0;i.length=0;const c=e||(0,u.xP)(s);for(const e of t){const t=new Array;for(const r of e)c&&n?t.push([o[a++],o[a++],o[a++],r[3]]):c?t.push([o[a++],o[a++],o[a++]]):n?(t.push([o[a++],o[a++],r[2]]),a++):(t.push([o[a++],o[a++]]),a++);i.push(t)}return!0}const at=(0,o.vt)()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3310,4660],{9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>i});var l=n(37539);function i(e,t,n,i,s,r,o=Math.floor(e.length/3)){const a=(0,l.jd)(t,s);if(null==a)return!1;if(a===l.pO){if(e===i&&n===r)return!0;const t=n+3*o;for(let l=n,s=r;l<t;l++,s++)i[s]=e[l];return!0}const u=n+3*o;for(let t=n,l=r;t<u;t+=3,l+=3)a(e,t,i,l);return!0}},37539:(e,t,n)=>{n.d(t,{pO:()=>g,jd:()=>h,Tp:()=>p,w5:()=>f});var l=n(34727),i=n(83047),s=n(73941),r=n(79258);Math.PI;const o=r.$O.radius,a=r.$O.eccentricitySquared,u={a1:o*a,a2:o*a*o*a,a3:o*a*a/2,a4:o*a*o*a*2.5,a5:o*a+o*a*a/2,a6:1-a};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius;var c=n(21325);const f={2:{5:g,7:null,9:null,10:g,1:j,6:null,8:null,0:null,3:m,11:v,2:g,4:z},5:{5:g,7:null,9:null,10:g,1:j,6:null,8:null,0:null,3:m,11:v,2:g,4:z},7:{5:null,7:g,9:null,10:g,1:null,6:x,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:g,10:g,1:null,6:null,8:R,0:null,3:null,11:null,2:null,4:null},3:{5:w,7:null,9:null,10:w,1:function(e,t,n,l){const i=e[t]/C,s=S-2*Math.atan(Math.exp(-e[t+1]/C)),r=C+e[t+2],o=Math.cos(s)*r;n[l]=Math.cos(i)*o,n[l+1]=Math.sin(i)*o,n[l+2]=Math.sin(s)*r},6:null,8:null,0:null,3:g,11:function(e,t,n,l){w(e,t,n,l),v(n,l,n,l)},2:w,4:function(e,t,n,l){w(e,t,n,l),z(n,l,n,l)}},4:{5:P,7:null,9:null,10:P,1:function(e,t,n,l){P(e,t,n,l),j(n,l,n,l)},6:null,8:null,0:null,3:function(e,t,n,l){P(e,t,n,l),m(n,l,n,l)},11:function(e,t,n,l){P(e,t,n,l),v(n,l,n,l)},2:P,4:g},1:{5:k,7:null,9:null,10:k,1:g,6:null,8:null,0:null,3:function(e,t,n,l){k(e,t,n,l),m(n,l,n,l)},11:function(e,t,n,l){k(e,t,n,l),v(n,l,n,l)},2:k,4:function(e,t,n,l){k(e,t,n,l),z(n,l,n,l)}},6:{5:null,7:_,9:null,10:_,1:null,6:g,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:A,10:A,1:null,6:null,8:g,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:g,3:null,11:null,2:null,4:null},10:{5:g,7:g,9:g,10:g,1:j,6:x,8:R,0:null,3:m,11:v,2:g,4:z},11:{5:y,7:null,9:null,10:y,1:function(e,t,n,l){y(e,t,n,l),j(n,l,n,l)},6:null,8:null,0:null,3:function(e,t,n,l){y(e,t,n,l),m(n,l,n,l)},11:g,2:y,4:function(e,t,n,l){y(e,t,n,l),z(n,l,n,l)}}};function h(e,t){return p(e,t)?.projector}function p(e,t){if(null==e||null==t)return null;if(O.source.spatialReference===e&&O.dest.spatialReference===t)return O;const n=d(e,O.source),l=d(t,O.dest);return 0===n&&0===l?(0,c.aI)(e,t)?O.projector=g:O.projector=null:O.projector=f[n][l],O}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function g(e,t,n,l){e!==n&&(n[l++]=e[t++],n[l++]=e[t++],n[l]=e[t])}function w(e,t,n,l){n[l]=L*(e[t]/C),n[l+1]=L*(S-2*Math.atan(Math.exp(-e[t+1]/C))),n[l+2]=e[t+2]}function m(e,t,n,i){!function(e,t,n,i,s){const r=.4999999*Math.PI,o=(0,l.qE)(b*e[t+1],-r,r),a=Math.sin(o);n[i++]=b*e[t]*s.radius,n[i++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[i]=e[t+2]}(e,t,n,i,r.$O)}function v(e,t,n,l){n[l]=e[t]*G,n[l+1]=e[t+1]*G,n[l+2]=e[t+2]}function y(e,t,n,l){n[l]=e[t]*Z,n[l+1]=e[t+1]*Z,n[l+2]=e[t+2]}function M(e,t,n,l,i){const s=i+e[t+2],r=b*e[t+1],o=b*e[t],a=Math.cos(r)*s;n[l]=Math.cos(o)*a,n[l+1]=Math.sin(o)*a,n[l+2]=Math.sin(r)*s}function R(e,t,n,l){M(e,t,n,l,r.Sw.radius)}function x(e,t,n,l){M(e,t,n,l,r.sH.radius)}function j(e,t,n,l){M(e,t,n,l,r.$O.radius)}function I(e,t,n,i,s){const r=e[t],o=e[t+1],a=e[t+2],u=Math.sqrt(r*r+o*o+a*a),c=(0,l.YN)(a/(0===u?1:u)),f=Math.atan2(o,r);n[i++]=L*f,n[i++]=L*c,n[i]=u-s}function A(e,t,n,l){I(e,t,n,l,r.Sw.radius)}function _(e,t,n,l){I(e,t,n,l,r.sH.radius)}function k(e,t,n,l){I(e,t,n,l,r.$O.radius)}function z(e,t,n,l){!function(e,t,n,l,i){const s=b*e[t],r=b*e[t+1],o=e[t+2],a=Math.sin(r),u=Math.cos(r),c=i.radius/Math.sqrt(1-i.eccentricitySquared*a*a);n[l++]=(c+o)*u*Math.cos(s),n[l++]=(c+o)*u*Math.sin(s),n[l++]=(c*(1-i.eccentricitySquared)+o)*a}(e,t,n,l,r.$O)}function P(e,t,n,l){const i=u,s=e[t],o=e[t+1],a=e[t+2];let c,f,h,p,d,g,w,m,v,y,M,R,x,j,I,A,_,k,z,P,O;c=Math.abs(a),f=s*s+o*o,h=Math.sqrt(f),p=f+a*a,d=Math.sqrt(p),P=Math.atan2(o,s),g=a*a/p,w=f/p,j=i.a2/d,I=i.a3-i.a4/d,w>.3?(m=c/d*(1+w*(i.a1+j+g*I)/d),z=Math.asin(m),y=m*m,v=Math.sqrt(1-y)):(v=h/d*(1-g*(i.a5-j-w*I)/d),z=Math.acos(v),y=1-v*v,m=Math.sqrt(y)),M=1-r.$O.eccentricitySquared*y,R=r.$O.radius/Math.sqrt(M),x=i.a6*R,j=h-R*v,I=c-x*m,_=v*j+m*I,A=v*I-m*j,k=A/(x/M+_),z+=k,O=_+A*k/2,a<0&&(z=-z),n[l++]=L*P,n[l++]=L*z,n[l]=O}const O={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:g},b=(0,l.kU)(1),L=(0,l.KJ)(1),S=.5*Math.PI,C=r.$O.radius,G=C*Math.PI/180,Z=180/(C*Math.PI)},62815:(e,t,n)=>{n.d(t,{N:()=>r});var l=n(83047),i=n(73941),s=n(21325);function r(e,t,n){if(null==t||null==n||n.vcsWkid||(0,s.aI)(t,n)||(0,i.xP)(t)||(0,i.xP)(n))return null;const r=(0,l.G9)(t)/(0,l.G9)(n);if(1===r)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,r);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}(e,r);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}(e,r);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,r);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,r);default:return null}}},65509:(e,t,n)=>{n.d(t,{A:()=>s});var l=n(49186),i=n(74887);class s{constructor(e,t=0,n=e.lods[e.lods.length-1].level){this.tileInfo=e,this.minLOD=t,this.maxLOD=n,e.lodAt(t)||(this.minLOD=e.lods[0].level),e.lodAt(n)||(this.maxLOD=e.lods[e.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,n){const l=this.tileInfo?.lodAt(e);return!l||e<this.minLOD||e>this.maxLOD?"unavailable":l.cols&&l.rows?n>=l.cols[0]&&n<=l.cols[1]&&t>=l.rows[0]&&t<=l.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,n,s){await(0,i.NO)(s);const r=this.getAvailability(e,t,n);if("unavailable"===r)throw new l.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:n});return r}async fetchAvailabilityUpsample(e,t,n,l,s){await(0,i.NO)(s),l.level=e,l.row=t,l.col=n;const r=this.tileInfo;return r.updateTileInfo(l),this.fetchAvailability(e,t,n,s).catch(e=>{if((0,i.zf)(e))throw e;if(r.upsampleTile(l))return this.fetchAvailabilityUpsample(l.level,l.row,l.col,l,s);throw e})}}},72802:(e,t,n)=>{n.d(t,{U:()=>l});class l{constructor(e,t,n,l,i=void 0){this.id=e,this.level=t,this.row=n,this.col=l,this.extent=i}}},87045:(e,t,n)=>{n.d(t,{A:()=>R});var l,i=n(31635),s=n(66552),r=n(25482),o=n(83047),a=n(10107),u=n(56507),c=(n(44208),n(87811),n(36005)),f=n(40608),h=n(43937),p=n(86738),d=n(16930),g=n(19419),w=n(21325),m=n(28735),v=n(91806),y=n(72802);const M=new s.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let R=class extends r.o{static{l=this}static create(e={}){const{resolutionFactor:t=1,scales:n,size:i=256,spatialReference:s=d.A.WebMercator,numLODs:r=24}=e;if(!(0,w.fn)(s)){const e=[];if(n)for(let t=0;t<n.length;t++){const l=n[t];e.push(new v.A({level:t,scale:l,resolution:l}))}else{let t=5e-4;for(let n=r-1;n>=0;n--)e.unshift(new v.A({level:n,scale:t,resolution:t})),t*=2}return new l({dpi:96,lods:e,origin:new p.A(0,0,s),size:[i,i],spatialReference:s})}const a=(0,w.Vp)(s),u=e.origin?new p.A({x:e.origin.x,y:e.origin.y,spatialReference:s}):new p.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:s}:{x:0,y:0,spatialReference:s}),c=1/(39.37*(0,o.GA)(s)*96),f=[];if(n)for(let e=0;e<n.length;e++){const t=n[e],l=t*c;f.push(new v.A({level:e,scale:t,resolution:l}))}else{let e=(0,w.EA)(s)?512/i*591657527.5917094:256/i*591657527.591555;const n=Math.ceil(r/t);f.push(new v.A({level:0,scale:e,resolution:e*c}));for(let l=1;l<n;l++){const n=e/2**t,i=n*c;f.push(new v.A({level:l,scale:n,resolution:i})),e=n}}return new l({dpi:96,lods:f,origin:u,size:[i,i],spatialReference:s})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const n=(0,w.Vp)(e);return e.isWrappable&&!!n&&Math.abs(n.origin[0]-t.x)<=n.dx}return!1}readOrigin(e,t){return p.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,n=0;const l=[],i=this._levelToLOD={};e&&(t=-1/0,n=1/0,e.forEach(e=>{l.push(e.scale),t=e.scale>t?e.scale:t,n=e.scale<n?e.scale:n,i[e.level]=e})),this._set("scales",l),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const n=Math.floor(e),l=n+1;return t[n]/(t[n]/t[l])**(e-n)}scaleToZoom(e){const t=this.scales,n=t.length-1;let l=0;for(;l<n;l++){const n=t[l],i=t[l+1];if(n<=e)return l;if(i===e)return l+1;if(n>e&&i<e)return l+Math.log(n/e)/Math.log(n/i)}return l}tileAt(e,t,n,l){const i=this.lodAt(e);if(!i)return null;let s,r;if("number"==typeof t)s=t,r=n;else if((0,w.aI)(t.spatialReference,this.spatialReference))s=t.x,r=t.y,l=n;else{const e=(0,m.Cv)(t,this.spatialReference);if(null==e)return null;s=e.x,r=e.y,l=n}const o=i.resolution*this.size[0],a=i.resolution*this.size[1];return l||(l=new y.U(null,0,0,0,(0,g.vt)())),l.level=e,l.row=Math.floor((this.origin.y-r)/a+.001),l.col=Math.floor((s-this.origin.x)/o+.001),this.updateTileInfo(l),l}updateTileInfo(e,t=0){let n=this.lodAt(e.level);if(!n&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(n=t)}if(!n)return;const l=e.level-n.level,i=n.resolution*this.size[0]/2**l,s=n.resolution*this.size[1]/2**l;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,g.vt)()),e.extent[0]=this.origin.x+e.col*i,e.extent[1]=this.origin.y-(e.row+1)*s,e.extent[2]=e.extent[0]+i,e.extent[3]=e.extent[1]+s}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const n=this.lodAt(t.level);if(null==n)return null;const{resolution:l}=n,i=l*this.size[0],s=l*this.size[1];return e[0]=this.origin.x+t.col*i,e[1]=this.origin.y-(t.row+1)*s,e[2]=e[0]+i,e[3]=e[1]+s,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return l.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const n=[],i=this.lods.length-t;for(let e=0;e<i;e++){const l=e+t,{scale:i,resolution:s}=l>=0?this.lods[l]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};n.push(new v.A({level:e,scale:i,resolution:s}))}return new l({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:n})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let n=0;n<e.length;n++){const l=e[n];this._upsampleLevels[l.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/l.resolution:0},t=l}}};(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],R.prototype,"compressionQuality",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],R.prototype,"dpi",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:M.read,write:M.write,origins:{"web-scene":{read:!1,write:!1}}}})],R.prototype,"format",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],R.prototype,"isWrappable",null),(0,i.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],R.prototype,"origin",void 0),(0,i.Cg)([(0,c.w)("origin")],R.prototype,"readOrigin",null),(0,i.Cg)([(0,a.MZ)({type:[v.A],value:null,json:{write:!0}})],R.prototype,"lods",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],R.prototype,"scales",void 0),(0,i.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],R.prototype,"size",void 0),(0,i.Cg)([(0,c.w)("size",["rows","cols"])],R.prototype,"readSize",null),(0,i.Cg)([(0,h.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],R.prototype,"writeSize",null),(0,i.Cg)([(0,a.MZ)({type:d.A,json:{write:!0}})],R.prototype,"spatialReference",void 0),R=l=(0,i.Cg)([(0,f.$)("esri.layers.support.TileInfo")],R)},91806:(e,t,n)=>{n.d(t,{A:()=>u});var l,i=n(31635),s=n(25482),r=n(10107),o=n(56507),a=(n(44208),n(87811),n(40608));let u=class extends s.o{static{l=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new l({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,i.Cg)([(0,r.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"cols",void 0),(0,i.Cg)([(0,r.MZ)({type:o.jz,json:{write:!0}})],u.prototype,"level",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],u.prototype,"levelValue",void 0),(0,i.Cg)([(0,r.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"origin",void 0),(0,i.Cg)([(0,r.MZ)({type:Number,json:{write:!0}})],u.prototype,"resolution",void 0),(0,i.Cg)([(0,r.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"rows",void 0),(0,i.Cg)([(0,r.MZ)({type:Number,json:{write:!0}})],u.prototype,"scale",void 0),u=l=(0,i.Cg)([(0,a.$)("esri.layers.support.LOD")],u)},98988:(e,t,n)=>{n.r(t),n.d(t,{canProjectWithoutEngine:()=>F,getTransformation:()=>N,getTransformations:()=>$,initializeProjection:()=>J,isEqualBaseGCS:()=>V,isLoaded:()=>b,isLoadedOrLoad:()=>L,isLoadedOrLoadFor:()=>S,load:()=>G,project:()=>Z,projectExtent:()=>se,projectMany:()=>T,projectMultipoint:()=>X,projectOrLoad:()=>E,projectOrLoadMany:()=>D,projectPoint:()=>Q,projectPolygon:()=>le,projectPolyline:()=>te,projectWithZConversion:()=>B,projectWithoutEngine:()=>H,requiresLoad:()=>C,test:()=>U,tryProjectWithZConversion:()=>K,unload:()=>W});var l=n(49186),i=n(74887),s=n(62788),r=n(95488),o=n(51850),a=n(21276),u=n(73941),c=n(5443),f=n(48526),h=n(83290),p=n(86738),d=n(39829),g=n(82799),w=n(16930),m=n(9762),v=n(37539);function y(e,t,n,l,i,s){return M[0]=e,M[1]=t,M[2]=n,(0,m.projectBuffer)(M,l,0,i,s,0)}const M=(0,o.vt)();let R=0;class x{static fromGE(e){const t=new x;return t._wkt=e.wkt,t._wkid=e.wkid,t._isInverse=e.isInverse,t}constructor(e){this.uid=R++,e?(this._wkt=null!=e.wkt?e.wkt:null,this._wkid=null!=e.wkid?e.wkid:-1,this._isInverse=null!=e.isInverse&&!0===e.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(e){this._wkt=e,this.uid=R++}get wkid(){return this._wkid}set wkid(e){this._wkid=e,this.uid=R++}get isInverse(){return this._isInverse}set isInverse(e){this._isInverse=e,this.uid=R++}getInverse(){const e=new x;return e._wkt=this.wkt,e._wkid=this._wkid,e._isInverse=!this.isInverse,e}}class j{static cacheKey(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}static fromGE(e){const t=new j;let n="";for(const l of e.steps){const e=x.fromGE(l);t.steps.push(e),n+=e.uid.toString()+","}return t._cachedProjection={},t._gtlistentry=null,t._chain=n,t}constructor(e){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,e?.steps)for(const t of e.steps)t instanceof x?this.steps.push(t):this.steps.push(new x({wkid:t.wkid,wkt:t.wkt,isInverse:t.isInverse}))}getInverse(){const e=new j;e.steps=[];for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}getGTListEntry(){let e="";for(const t of this.steps)e+=t.uid.toString()+",";return e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e),this._gtlistentry}assignCachedGe(e,t,n){this._cachedProjection[j.cacheKey(e,t)]=n}getCachedGeTransformation(e,t){let n="";for(const e of this.steps)n+=e.uid.toString()+",";n!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=n);const l=this._cachedProjection[j.cacheKey(e,t)];return void 0===l?null:l}}var I=n(21325),A=n(62815);let _=null,k=null,z=null,P={};const O=new r.I;function b(){return!!_&&(0,h.i)()}function L(){return!!b()||((0,s.gc)(O),G(),!1)}function S(e,t){return!e||!t||F(e,t)||L()}function C(e,t){return!F(e,t)&&!b()}function G(e){return null==z&&(z=Promise.all([(0,h.l)(),n.e(9930).then(n.bind(n,49930)).then(e=>e.g),n.e(2731).then(n.bind(n,12731))])),z.then(([,t,{hydratedAdapter:n}])=>{(0,i.Te)(e),k=n,_=t.default,_._enableProjection(h.p),O.notify()})}function Z(e,t,n=null,l=null){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),T(k,e,e[0].spatialReference,t,n,l)):((0,a.f)(e),T(k,[e],e.spatialReference,t,n,l)[0])}function T(e,t,n,l,i=null,s=null){if(null==n||null==l)return t;if(F(n,l,i))return t.map(e=>H(e,n,l));if(null==i&&(0,u.jA)(n))return t.map(e=>H(e,n,w.A.WGS84)).map(e=>K(e,l));if(null==i&&(0,u.jA)(l))return t.map(e=>K(e,w.A.WGS84)).map(e=>H(e,w.A.WGS84,l));if(null==i){const e=j.cacheKey(n,l);void 0!==P[e]?i=P[e]:(null==(i=N(n,l,void 0))&&(i=new j),P[e]=i)}if(null==_||null==e)throw new q;return null!=s?_._project(e,t,n,l,i,s):_._project(e,t,n,l,i)}function E(e,t){const n=D([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function D(e,t){if(!b())for(const n of e)if(null!=n&&!(0,I.aI)(n.spatialReference,t)&&(0,I.fn)(n.spatialReference)&&(0,I.fn)(t)&&!F(n.spatialReference,t))return(0,s.gc)(O),{pending:G(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,I.aI)(e.spatialReference,t)?e:(0,I.fn)(e.spatialReference)&&(0,I.fn)(t)?K(e,t):null)}}function N(e,t,n=null){if(null==e||null==t)return null;if(null==_||null==k)throw new q;const l=_._getTransformation(k,e,t,n,n?.spatialReference);return null!==l?j.fromGE(l):null}function $(e,t,n=null){if(null==_||null==k)throw new q;const l=_._getTransformationBySuitability(k,e,t,n,n?.spatialReference);if(null!==l){const e=[];for(const t of l)e.push(j.fromGE(t));return e}return[]}class q extends l.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function W(){_=null,k=null,z=null,P={}}const U={get loadPromise(){return z}};function K(e,t){try{const n=Z(e,t);if(null==n)return null;"xmin"in e&&"xmin"in n&&(n.zmin=e.zmin,n.zmax=e.zmax);const l=(0,A.N)(n.type,e.spatialReference,t);return null!=l&&l(n),n}catch(e){if(!(e instanceof q))throw e;return null}}async function B(e,t,n){const l=e.spatialReference;return null!=l&&null!=t&&await J(l,t,null,n),K(e,t)}function F(e,t,n){return!n&&(!!(0,I.aI)(e,t)||(0,I.fn)(e)&&(0,I.fn)(t)&&!!(0,v.jd)(e,t))}function V(e,t){if((0,I.aI)(e,t))return!0;if(!(0,I.fn)(e)||!(0,I.fn)(t))return!1;const n=(0,I.oT)(e)||(0,I.K8)(e)||(0,I.x1)(e),l=(0,I.oT)(t)||(0,I.K8)(t)||(0,I.x1)(t);return n&&l}async function J(e,t,n,l){if(b())return(0,i.NO)(l);if(Array.isArray(e)){for(const{source:t,dest:n,geographicTransformation:i}of e)if(t&&n&&!F(t,n,i))return G(l)}else if(e&&t&&!F(e,t,n))return G(l);return(0,i.NO)(l)}function H(e,t,n){return e?"x"in e?Y(e,t,new p.A,n,0):"xmin"in e?re(e,t,new c.A,n,0):"rings"in e?ie(e,t,new d.A,n,0):"paths"in e?ne(e,t,new g.A,n,0):"points"in e?ee(e,t,new f.A,n,0):null:null}function Q(e,t,n=t.spatialReference,l=0){return null!=n&&null!=e.spatialReference&&null!=Y(e,e.spatialReference,t,n,l)}function Y(e,t,n,l,i){ae[0]=e.x,ae[1]=e.y;const s=e.z;return ae[2]=void 0!==s?s:i,(0,m.projectBuffer)(ae,t,0,ae,l,0)?(n.x=ae[0],n.y=ae[1],n.spatialReference=l,void 0!==s||(0,u.xP)(l)?(n.z=ae[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function X(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=ee(e,e.spatialReference,t,n,l)}function ee(e,t,n,l,i){const{points:s,hasZ:r,hasM:o}=e,a=[],c=s.length,f=[];for(const e of s)f.push(e[0],e[1],r?e[2]:i);if(!(0,m.projectBuffer)(f,t,0,f,l,0,c))return null;const h=r||(0,u.xP)(l);for(let e=0;e<c;++e){const t=3*e,n=f[t],l=f[t+1];h&&o?a.push([n,l,f[t+2],s[e][3]]):h?a.push([n,l,f[t+2]]):o?a.push([n,l,s[e][2]]):a.push([n,l])}return n.points=a,n.spatialReference=l,n.hasZ=r,n.hasM=o,n}function te(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=ne(e,e.spatialReference,t,n,l)}function ne(e,t,n,l,i){const{paths:s,hasZ:r,hasM:o}=e,a=[];if(!oe(s,r??!1,o??!1,t,a,l,i))return null;const c=r||(0,u.xP)(l);return n.paths=a,n.spatialReference=l,n.hasZ=c,n.hasM=o,n}function le(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,l)}function ie(e,t,n,l,i){const{rings:s,hasZ:r,hasM:o}=e,a=[];if(!oe(s,r??!1,o??!1,t,a,l,i))return null;const c=r||(0,u.xP)(l);return n.rings=a,n.spatialReference=l,n.hasZ=c,n.hasM=o,n}function se(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=re(e,e.spatialReference,t,n,l)}function re(e,t,n,l,i){const{xmin:s,ymin:r,xmax:o,ymax:a,hasZ:c,hasM:f}=e;if(!y(s,r,c?e.zmin:i,t,ae,l))return null;const h=c||(0,u.xP)(l);return n.xmin=ae[0],n.ymin=ae[1],h&&(n.zmin=ae[2]),y(o,a,c?e.zmax:i,t,ae,l)?(n.xmax=ae[0],n.ymax=ae[1],h&&(n.zmax=ae[2]),f&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=l,n):null}function oe(e,t,n,l,i,s,r=0){const o=new Array;for(const n of e)for(const e of n)o.push(e[0],e[1],t?e[2]:r);if(!(0,m.projectBuffer)(o,l,0,o,s,0))return!1;let a=0;i.length=0;const c=t||(0,u.xP)(s);for(const t of e){const e=new Array;for(const l of t)c&&n?e.push([o[a++],o[a++],o[a++],l[3]]):c?e.push([o[a++],o[a++],o[a++]]):n?(e.push([o[a++],o[a++],l[2]]),a++):(e.push([o[a++],o[a++]]),a++);i.push(e)}return!0}const ae=(0,o.vt)()}}]);
|