@arcgis/core 5.2.0 → 5.2.1

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.
@@ -1 +1 @@
1
- var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r(44208);var n=r(93637);const a={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&((0,n.$N)(a,globalThis.esriConfig,!0),delete a.has),!a.assetsPath&&(a.assetsPath="https://js.arcgis.com/5.2.0/@arcgis/core/assets",a.defaultAssetsPath=a.assetsPath),r.d(t,["A",0,a])},49186(e,t,r){r.d(t,{A:()=>i});var n=r(4718),a=r(53966),o=r(799);class i{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,o.V2)(t,r):"",this.details=r}toString(){let{name:e,message:t}=this;return`[${e}]: ${t}`}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch{return"[object]"}}))}}catch(e){throw a.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}},53966(e,t,r){r.d(t,{A:()=>s});var n=r(92602),a=r(51447),o=(r(44208),r(799));const i={info:0,warn:1,error:2,none:3};class s{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,s._loggers.set(this.module,this);let t=this.module.lastIndexOf(".");-1!==t&&(this._parent=s.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e="string"==typeof e?e:e.declaredClass,s._loggers.get(e)||new s({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!s._throttlingDisabled){let n=function(...e){return(0,o.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),a=this._loggedMessages[e].get(n);if("once"===t&&null!=a||"oncePerTick"===t&&a&&a>=s._tickCounter)return;this._loggedMessages[e].set(n,s._tickCounter),s._scheduleTickCounterIncrement()}for(let t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){let t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",c)}_matchLevel(e){let t=n.A.log.level||"warn";return i[this._parentWithMember("level",t)]<=i[e]}static _scheduleTickCounterIncrement(){s._tickCounterScheduled||(s._tickCounterScheduled=!0,Promise.resolve().then(()=>{s._tickCounter++,s._tickCounterScheduled=!1}))}}function c(e,t,...r){console[e](`[${(0,a.u3)(t)}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){let r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>o,HX:()=>u,Ho:()=>d,MJ:()=>i,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>c,Xj:()=>f,Xy:()=>m,aI:()=>s,iv:()=>l,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),a=r(87811);function o(e,t){if(t){let r=[];for(let n of e)r.some(e=>t(e,n))||r.push(n);return r}return Array.from(new Set(e))}function i(e,t,r,n,a,o,i){if(null==e&&null==n)return!0;t=Math.max(0,t),a=Math.max(0,a),r=Math.max(0,r<0?(e?.length??0)+r:r),o=Math.max(0,o<0?(n?.length??0)+o:o);let s=r-t;if(null==e||null==n||s!==o-a)return!1;if(i){for(let r=0;r<s;r++)if(!i(e[t+r],n[a+r]))return!1}else for(let r=0;r<s;r++)if(e[t+r]!==n[a+r])return!1;return!0}function s(e,t,r){return i(e,0,e?.length??0,t,0,t?.length??0,r)}function c(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function l(e,t,r){let n,a;if(r)n=t.filter(t=>!e.some(e=>r(e,t))),a=e.filter(e=>!t.some(t=>r(t,e)));else{let r=new Set(e),o=new Set(t);n=t.filter(e=>!r.has(e)),a=e.filter(e=>!o.has(e))}return{added:n,removed:a}}function f(e){return e&&"number"==typeof e.length}function d(e,t){let r=e.length;if(0===r)return[];let n=[];for(let a=0;a<r;a+=t)n.push(e.slice(a,a+t));return n}function u(e,t,r,n){e.length>r&&(e.length=r);let a=e.length,o=0,i=a;if(a===r){let r=n(e[a-1],t);if(r<=0||Number.isNaN(r))return}for(;o<i;){let r=o+i>>>1,a=n(e[r],t);a<=0||Number.isNaN(a)?o=r+1:i=r}a===r&&e.pop(),e.splice(o,0,t)}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n||=h;let a=Math.max(0,n.last-10);for(let o=a;o<r;++o)if(e[o]===t)return n.last=o,o;let o=Math.min(a,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,a){let o=r??e.length,i=p(e,(0,n.z)(t),o,a);if(-1!==i)return e[i]=e[o-1],r??e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,a,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);a||=h;let i=Math.max(0,a.last-10);for(let t=i;t<r;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<i;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function w(e){return e?(v.seed=e,()=>v.getFloat()):Math.random}const v=new a.A;function _(e,t){if(!e)return e;let r=w(t);for(let t=e.length-1;t>0;t--){let n=Math.floor(r()*(t+1)),a=e[t];e[t]=e[n],e[n]=a}return e}function k(e,t){let r=e.indexOf(t);return-1===r?null:(e.splice(r,1),t)}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>c,ck:()=>l,eF:()=>f,eO:()=>s,io:()=>d,u3:()=>u,uW:()=>i});var n=r(44208);const a=new WeakMap;function o(e,t,r=!1){let n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=a.get(e);o||(o=new Set,a.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function i(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&d(e,`Module: ${u(t)}`,r)}function s(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;d(e,"Function: "+(n?u(n)+"::":"")+t+"()",r)}}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;d(e,"Property: "+(n?u(n)+"::":"")+t,r)}}function l(e,t,r,a={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=a;d(e,`'${(n?u(n)+"::":"")+t}' value: ${r}`,a)}}function f(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&d(e,`Multiple argument constructor: ${t=u(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function d(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{replacement:n,version:a,see:i,warnOnce:s}=r,c=t;if(n&&(c+=`\n\t🛠️ Replacement: ${n}`),a&&(c+=`\n\t⚙️ Version: ${a}`),i)if(Array.isArray(i)){c+="\n\t🔗 See for more details:";for(let e of i)c+=`\n\t\t${e}`}else c+=`\n\t🔗 See ${i} for more details.`;o(e,c,s)}}function u(e){return e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e}},37955(e,t,r){r.d(t,{Oo:()=>s,on:()=>i,wb:()=>a});var n=r(36563);function a(e){return function(e){return"object"==typeof e&&!!e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return"object"==typeof e&&!!e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function i(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,a){if(Array.isArray(t)){let o=t.slice();for(let t of o)e.addEventListener(t,r,a);return(0,n.hA)(()=>{for(let t of o)e.removeEventListener(t,r,a)})}return e.addEventListener(t,r,a),(0,n.hA)(()=>e.removeEventListener(t,r,a))}(e,t,r):e.on(t,r)}function s(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=i(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{Bf:()=>s,hA:()=>a,rE:()=>i,vE:()=>o});const n={remove:()=>{}};function a(e){return e?{remove(){e&&=void e()}}:n}function o(e){return a(()=>function(e){e.forEach(e=>e?.remove())}(e))}function i(e){return a(()=>e?.abort())}function s(e){return{[Symbol.dispose](){e.remove()}}}},44208(e,t,r){r.d(t,{A:()=>o});const n=globalThis,a={...n.esriConfig?.has};function o(e){return"function"==typeof a[e]?a[e]=a[e](n):a[e]}o.add=(e,t,r,n)=>{(n||void 0===a[e])&&(a[e]=t),r&&o(e)},o.cache=a,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),o.add("dom",e),o("host-browser")){let e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){let e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(t.includes("Gecko")&&!o("wp")&&!o("khtml")&&!o("edge")&&o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(n.navigator){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in n),o.add("esri-temporal","Temporal"in n),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in n,t=!1===n.crossOriginIsolated;return e&&!t}),o.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))),o.add("esri-atomics","Atomics"in n),o.add("esri-workers","Worker"in n),o.add("web-feat:cache","caches"in n),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("min-workers-pool-size",2),o.add("max-workers-pool-size",o("esri-mobile")?3:8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-hybrid-tile-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",2e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",2e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-allow-editable",!1),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-pixel-buffering-enabled",!0),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-max-page-size",8e3),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("featurelayer-pbf-true-curves",!0),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("featurelayer-relative-time-queries-enabled",!0),o.add("featurelayer-relative-time-queries-bin-window-public",1),o.add("featurelayer-relative-time-queries-bin-window-private",60),o.add("parquetlayer-full-query-feature-count",5e5),o.add("parquetlayer-persistence-enabled",!0),o.add("parquetlayer-cache-enabled",!0),o.add("parquetlayer-legacy-field-overrides-enabled",!1),o.add("sketch-layer-enabled",!1),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("request-queue-concurrency-global",64),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",16),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),!o("host-webworker")&&o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{Function()}catch{return!0}return!1}),o.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>c,TU:()=>s,aI:()=>b,gh:()=>h,o8:()=>i,oy:()=>o});var n=r(4576),a=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;let t=u(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(f(e))throw Error("Trying to clone an unclonable Accessor instance");let r={};for(let t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function s(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let r=u(e);if(null!=r)return r;if(l(e)){let r=!0,n=e.map(e=>{let n=s(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(c(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(f(e))return null;let n=new(0,Object.getPrototypeOf(e).constructor);for(let t of Object.getOwnPropertyNames(e)){let r=e[t],a=s(r);if(null!=r&&null==a)return null;n[t]=a}return n}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,a.dz)(e)||(0,a.mg)(e)||(0,a.UR)(e)||(0,a.IY)(e)||(0,a.jq)(e)||(0,a._G)(e)||(0,a.XJ)(e)||(0,a.vZ)(e)||(0,a.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(i(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;let r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw Error(t??"value is None")}function a(e){return e&&!e.destroyed&&e.destroy(),null}function o(e){return e?.dispose(),null}function i(e){return e?.remove(),null}function s(e){return e?.abort(),null}function c(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null==r?e.equals(t):r(e,t):e===t}function f(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>l,DC:()=>s,Gz:()=>c,Lw:()=>n,Pb:()=>f,WD:()=>o,pR:()=>a,xt:()=>i})},93637(e,t,r){r.d(t,{$N:()=>a,a4:()=>d,i7:()=>f,i8:()=>s,sM:()=>i,wc:()=>o});var n=r(4718);function a(e,t,r=!1){return l(e,t,r)}function o(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function i(e,t,r){let n=e.split("."),a=n.pop(),o=c(n,!0,r);o&&a&&(o[a]=t)}function s(e,t){if(null==e&&null==t)return!1;if(null==e||null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){let r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(s(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(let r in e)if(s(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(let r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function l(e,t,r){return t?Object.keys(t).reduce((e,a)=>{if("__proto__"===a)return e;let o=e[a],i=t[a];return o===i?e:void 0===o?(e[a]=(0,n.o8)(i),e):(Array.isArray(i)||Array.isArray(e)?(o=e[a]=o?Array.isArray(o)?o.slice():[o]:[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach(e=>{o.includes(e)||o.push(e)}):e[a]=i.slice())):i&&"object"==typeof i?e[a]=l(o,i,r):(!e.hasOwnProperty(a)||t.hasOwnProperty(a))&&(e[a]=i),e)},e||{}):e}function f(e,t){for(let r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},17676(e,t,r){r.d(t,{$X:()=>k,G4:()=>l,Lx:()=>g,Mq:()=>c,NK:()=>i,NO:()=>S,NY:()=>b,Ol:()=>w,Pl:()=>v,QP:()=>f,QZ:()=>m,Te:()=>s,YL:()=>_,hn:()=>P,jH:()=>d,nA:()=>y,qr:()=>h,sg:()=>A,u7:()=>u,z7:()=>O,zf:()=>p});var n=r(49186),a=r(37955),o=(r(44208),r(53966),r(97768));function i(e="Aborted"){return new n.A("AbortError",e)}function s(e,t="Aborted"){if(l(e))throw i(t)}function c(e){return e instanceof AbortSignal?e:e?.signal??void 0}function l(e){let t=c(e);return null!=t&&t.aborted}function f(e){if(p(e))throw e}function d(e){if(!p(e))throw e}function u(e,t){let r=c(e);if(null!=r)return r.aborted?void t():(0,a.Oo)(r,"abort",()=>t())}function b(e,t){let r=c(e);if(null!=r)return s(r),(0,a.Oo)(r,"abort",()=>t(i()))}function h(e,t){return null==c(t)?e:new Promise((r,n)=>{let a=u(t,()=>n(i())),s=()=>{a=(0,o.xt)(a)};e.then(s,s),e.then(r,n)})}function p(e){return"object"==typeof e&&!!e&&"name"in e&&"AbortError"===e.name}async function m(e){try{return await e}catch(e){if(!p(e))throw e;return}}async function g(e){if(!e)return;if("function"!=typeof e.forEach){let t=Object.keys(e),r=await g(t.map(t=>e[t])),n={};return t.map((e,t)=>n[e]=r[t]),n}let t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{let n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function y(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function w(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function v(e,t=void 0,r){let n=new AbortController;return u(r,()=>n.abort()),new Promise((r,a)=>{let o=setTimeout(()=>{o=0,r(t)},e);u(n,()=>{o&&(clearTimeout(o),a(i()))})})}function _(e,t){let r=new AbortController,n=setTimeout(()=>r.abort(),t);return u(e,()=>{r.abort(),clearTimeout(n)}),{...e,signal:r.signal}}function k(e){return e&&"function"==typeof e.then}function O(e){return k(e)?e:Promise.resolve(e)}function A(e,t=-1){let r,n,a,o,s=null,c=(...l)=>{if(r){n=l,o&&o.reject(i()),o=Promise.withResolvers();let e=o.promise;if(s){let e=s;s=null,e.abort()}return e}if(a=o||Promise.withResolvers(),o=null,t>0){let n=new AbortController;r=O(e(...l,n.signal));let a=r;v(t).then(()=>{r===a&&(o?n.abort():s=n)})}else r=1,r=O(e(...l));let f=()=>{let e=n;n=a=r=s=null,null!=e&&c(...e)},d=r,u=a;return d.then(f,f),d.then(u.resolve,u.reject),u.promise};return c}function P(e,t){t.then(e.resolve,e.reject)}async function S(e){await Promise.resolve(),s(e)}},799(e,t,r){r.d(t,{Cj:()=>c,HC:()=>i,V2:()=>s,Wm:()=>l,_e:()=>u,xq:()=>f});var n=r(93637);const a=/\{([^}]+)\}/g;function o(e){return e??""}function i(e,t){return t?e.replaceAll(a,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function s(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function c(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function l(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function f(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t,a=0;a<e.length;a++)t=e.charCodeAt(a),r=Math.imul(r^t,2654435761),n=Math.imul(n^t,1597334677);return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)}let d;function u(e){return d??=new DOMParser,d.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function a(e){return"Int8Array"===e?.constructor?.name}function o(e){return"Uint8Array"===e?.constructor?.name}function i(e){return"Uint8ClampedArray"===e?.constructor?.name}function s(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}function p(e){return b(e)||u(e)||l(e)||s(e)||a(e)}function m(e){return b(e)||u(e)}function g(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:f(e)?4294967295:c(e)?65535:o(e)||i(e)?255:l(e)?2147483647:s(e)?y:a(e)?127:256}r.d(t,{IY:()=>s,JI:()=>p,LW:()=>d,UR:()=>i,XJ:()=>f,_G:()=>l,a3:()=>g,aI:()=>b,dk:()=>m,dz:()=>a,iu:()=>h,jq:()=>c,mg:()=>o,mw:()=>n,vZ:()=>u});const y=32767;r.d(t,["h2",0,-2147483648])},84952(e,t,r){r.d(t,{$1:()=>K,$z:()=>H,An:()=>A,BQ:()=>re,DB:()=>V,FL:()=>L,FX:()=>R,Hg:()=>Z,Il:()=>fe,Ln:()=>he,N9:()=>te,S8:()=>z,T1:()=>ue,UC:()=>de,V1:()=>F,Zo:()=>we,_0:()=>_e,a6:()=>ye,b8:()=>I,e7:()=>le,fj:()=>B,hf:()=>be,lJ:()=>Q,lM:()=>oe,m3:()=>ae,nM:()=>ce,oP:()=>D,oy:()=>W,r$:()=>Y,rs:()=>ge,s0:()=>v,s2:()=>J,sC:()=>q,s_:()=>x,tk:()=>ee,ut:()=>E,w8:()=>G,x0:()=>S,xw:()=>ve,yM:()=>M,zf:()=>P,zi:()=>me,zs:()=>N});var n=r(92602),a=r(4576),o=r(49186),i=r(53966),s=r(12195),c=r(39131),l=r(26306);const f=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(y);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(w),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let k=new v(n.A.applicationUrl);let O=function(){let e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null==k.port?"":`:${k.port}`}${t}`}();function A(e){if(!e)return null;let t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function P(e){let t=e.split("&"),r={};for(let e of t){if(!e)continue;let t,n,a=e.indexOf("=");a<0?(t=decodeURIComponent(e),n=""):(t=decodeURIComponent(e.slice(0,a)),n=decodeURIComponent(e.slice(a+1)));let o=r[t];"string"==typeof o&&(o=r[t]=[o]),Array.isArray(o)?o.push(n):r[t]=n}return r}function S(e,t){return e?t&&"function"==typeof t?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{let n=e[r];if(null==n)return"";let a=encodeURIComponent(r)+"=",o=t?.[r];return o?a+encodeURIComponent(o(n)):Array.isArray(n)?n.map(e=>(0,s.W)(e)?a+encodeURIComponent(JSON.stringify(e)):a+encodeURIComponent(e)).join("&"):(0,s.W)(n)?a+encodeURIComponent(JSON.stringify(n)):a+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function x(e=!1){let t,r=f.proxyUrl;if("string"==typeof e){t=ae(e);let n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw i.A.getLogger("esri.core.urlUtils").warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&ie()&&(r=oe(r)),A(r)}function M(e,t=!1){let r,n,a=N(e);if(a){let e=C(a.proxyUrl);r=e.path,n=e.query?P(e.query):null}else if(t){let t=x(e);r=t.path,n=t.query}if(r){let t=A(e);e=r+"?"+t.path;let a=S({...n,...t.query});a&&(e=`${e}?${a}`)}return e}const j={path:"",query:""};function C(e){let t=e.indexOf("?");return-1===t?(j.path=e,j.query=null):(j.path=e.slice(0,t),j.query=e.slice(t+1)),j}function $(e){return(e=se(e=fe(e=C(e).path),!0)).toLowerCase()}function W(e){let t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=f.proxyRules,n=t.urlPrefix,a=r.length;for(let e=0;e<r.length;e++){let t=r[e].urlPrefix;if(n.startsWith(t)){if(n.length===t.length)return-1;a=e;break}t.startsWith(n)&&(a=e+1)}return r.splice(a,0,t),a}function N(e){let t=f.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function I(e,t){if(!e||!t)return!1;e=T(e),t=T(t);let r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&R(e,t,!0)}function E(e,t){return e=T(e),t=T(t),se(e)===se(t)}function T(e){let t=(e=z(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function q(e,t=f.interceptors){let r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(let e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function R(e,t,r=!1){if(!e||!t)return!1;let n=pe(e),a=pe(t);return!(!r&&n.scheme!==a.scheme||null==n.host||null==a.host)&&n.host.toLowerCase()===a.host.toLowerCase()&&n.port===a.port}function L(e){if("string"==typeof e){if(!D(e))return!0;e=pe(e)}if(R(e,k))return!0;let t=f.trustedServers||[];for(let r=0;r<t.length;r++){let n=U(t[r]);for(let t=0;t<n.length;t++)if(R(e,n[t]))return!0}return!1}function U(e){return _[e]||(ne(e)||re(e)?_[e]=[new v(J(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function J(e,t=O,r){return re(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===H(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:B(e.startsWith("/")?function(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function F(e,t=O,r){if(null==e||!D(e))return e;let n=z(e),a=n.toLowerCase(),o=z(t).toLowerCase().replace(/\/+$/,""),i=r?z(r).toLowerCase().replace(/\/+$/,""):null;if(i&&!o.startsWith(i))return e;let s=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r,c=s(a,"/",a.indexOf("//")+2),l=-1;for(;a.slice(0,c+1)===o.slice(0,c)+"/"&&(l=c+1,c!==a.length);)c=s(a,"/",c+1);if(-1===l||i&&l<i.length)return e;e=n.slice(l);let f=o.slice(l-1).replaceAll(/[^/]+/g,"").length;if(f>0)for(let t=0;t<f;t++)e=`../${e}`;else e=`./${e}`;return e}function z(e){return function(e){let t=f.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.scheme&&re(e)}(e))return e;let r,n=e.indexOf("/",7);if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),m.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&r===k.authority&&!g.test(e)||(ie()&&r===k.authority||t&&t.some(e=>r===e||r.endsWith(`.${e}`))||ie()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){let t=C(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=J(e=e.trim()))))}function B(...e){let t=e.filter(a.Ru);if(!t?.length)return;let r=[];if(D(t[0])){let e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");let n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){let t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function H(e,t=!1){if(null==e||G(e)||V(e))return null;let r=e.indexOf("://");if(-1===r&&re(e))r=2;else{if(-1===r)return null;r+=3}let n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=se(e,!0)),e}function D(e){return re(e)||ne(e)}function G(e){return null!=e&&e.startsWith("blob:")}function V(e){return null!=e&&e.startsWith("data:")}function Q(e){let t=Y(e);return t?.isBase64?(0,l.M)(t.data):null}function K(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const X=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){let t=e.match(X);if(!t)return null;let[,r,n,a]=t;return{mediaType:r,isBase64:!!n,data:a}}function Z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ee(e){return(await fetch(e)).blob()}function te(e){let t=Q(e);if(!t)return null;let r=Y(e);return new Blob([t],{type:r.mediaType})}function re(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function ae(e){return null!=e&&h.test(e)||"https"===k.scheme&&re(e)}function oe(e){return re(e)?`https:${e}`:e.replace(b,"https:")}function ie(){return"https"===k.scheme}function se(e,t=!1){return re(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function ce(e){let t=0;if(D(e)){let r=e.indexOf("//");-1!==r&&(t=r+2)}let r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function le(e,t){if(!e)return"";let r=A(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;let a=RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(a,"")}function fe(e){return e.endsWith("/")?e:`${e}/`}function de(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&D(e)))return e;let n=e.indexOf("//"),a=e.indexOf("/",n+2),o=e.indexOf(":",n+2),i=Math.min(a<0?e.length:a,o<0?e.length:o);return e.slice(n+2,i).toLowerCase()===t.toLowerCase()?`${e.slice(0,n+2)}${r}${e.slice(i)}`:e}function be(e,t){let r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.toString()}function he(e){return new URL(e).host}function pe(e){return"string"==typeof e?new v(J(e)):(e.scheme||=k.scheme,e)}function me(e,t){let r=A(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function ge(e,t,r){let n=A(e),a=n.query||{};return a[t]=String(r),`${n.path}?${S(a)}`}function ye(e,t){if(!t)return e;let r=A(e),n=r.query||{};for(let[e,r]of Object.entries(t))null!=r&&(n[e]=r);let a=S(n);return a?`${r.path}?${a}`:r.path}function we(e){if(null==e)return null;let t=e.match(ke);return t?t[2]:null}function ve(e){if(null==e)return null;let t=e.match(ke);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?Y(e)??{data:e}:new Promise((t,r)=>{let n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(Y(n.result)),n.onerror=e=>r(e)})}const ke=/([^.]*)\.([^/]*)$/;r.d(t,["Xq",0,()=>k,"gd",0,()=>O])},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,a)=>(...r)=>{let a,o,i=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(i)&&(a=i.signal,o=i.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:a})}})}r.d(t,{L:()=>n})},50343(e,t,r){r.r(t),r.d(t,{default:()=>w});var n=r(70333),a=r(49186),o=r(37955),i=r(36563),s=r(97768),c=r(17676),l=r(52268),f=r(17333),d=r(8341);const{CLOSE:u,ABORT:b,INVOKE:h,RESPONSE:p,OPEN_PORT:m,ON:g}=d.Go;class y{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===b?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(let e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class w{static{this.kernelInfo={fullVersion:n.ol}}static{this.clients=new Map}static connect(e,t){let r,n=new MessageChannel;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;let a=new w(n.port1,{channel:n,client:r,schedule:t});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=a),w.clients.set(a,r),n.port2}static loadWorker(e){let t=f.u[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new y(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:u}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){let n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new a.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));let i=(0,d.Jc)();return new Promise((r,a)=>{if((0,c.G4)(n))return this._processWork(),void a((0,c.NK)());let l={resolve:r,reject:a,abortHandle:(0,c.u7)(n,()=>{let e=this._outJobs.get(i);e&&(this._outJobs.delete(i),this._processWork(),(0,s.xt)(e.abortHandle),this._post({type:b,jobId:i}),a((0,c.NK)()))}),debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,o)})}createInvokeProxy(e){return(0,l.L)(this,e)}on(e,t){let r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:g,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,i.hA)(()=>{r.port1.postMessage({type:u}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){let e=new MessageChannel;return this._post({type:m,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;let e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;let{methodName:t,data:r,invokeOptions:n,resolver:a}=e;this.apply(t,r,n).then(e=>a.resolve(e)).catch(e=>a.reject(e))}_close(){this._channel&&=void 0,this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,s.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null==this._schedule?this._processMessage(e,!1):this._schedule(()=>this._processMessage(e,!0))}_processMessage(e,t){let r=(0,d.VI)(e);if(r)switch(r.type){case p:this._onResponseMessage(r);break;case h:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case b:this._onAbortMessage(r);break;case u:this._onCloseMessage();break;case m:this._onOpenPortMessage(r);break;case g:this._onOnMessage(r)}}_onAbortMessage(e){let t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){let e=this._client;this._close(),e&&"destroy"in e&&w.clients.get(this)===e&&e.destroy(),w.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){let t,{methodName:r,jobId:n,data:a=[],abortable:o}=e,i=o?new AbortController:null,s=this._inJobs,l=this._client,f=l[r];try{if(!f&&r&&r.includes(".")){let e=r.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],f=l[e[t+1]]}if("function"!=typeof f)throw TypeError(`${r} is not a function`);a.push({client:this,signal:i?i.signal:null}),t=f.apply(l,a)}catch(e){return void this._post({type:p,jobId:n,error:(0,d.mF)(e)})}(0,c.$X)(t)?(s.set(n,{controller:i,promise:t}),t.then(e=>{s.has(n)&&(s.delete(n),this._post({type:p,jobId:n},e))},e=>{s.has(n)&&(s.delete(n),(0,c.zf)(e)||this._post({type:p,jobId:n,error:(0,d.mF)(e||{message:`Error encountered at method ${r}`})}))})):this._post({type:p,jobId:n},t)}_onOpenPortMessage(e){new w(e.port,{client:this._client})}_onOnMessage(e){let{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,o.on)(e.port,"message",e=>{(0,d.VI)(e)?.type===u&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){let{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;let i=o.get(t);o.delete(t),this._processWork(),(0,s.xt)(i.abortHandle),r?i.reject(a.A.fromJSON(JSON.parse(r))):i.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},17333(e,t,r){const n={CSVSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(1333)]).then(()=>r(25209)),EdgeProcessingWorker:()=>Promise.all([r.e(1843),r.e(161),r.e(433)]).then(()=>r(71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(2258),r.e(9038)]).then(()=>r(38419)),FeaturePipelineWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(5128),r.e(1722),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(893),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(5248),r.e(5228),r.e(7304),r.e(3027),r.e(1969),r.e(5899)]).then(()=>r(55459)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(893),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(9423)]).then(()=>r(20401)),FlowWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(7235)]).then(()=>r(49616)),GaussianSplatSortWorker:()=>r.e(5856).then(()=>r(35856)),GeospatialPDFLayerWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(599)]).then(()=>r(37728)),GeometryWorker:()=>Promise.all([r.e(9917),r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9367)]).then(()=>r(71246)),GeoJSONSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(3642)]).then(()=>r(71202)),GeoJSONVectorTileSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(359),r.e(9575),r.e(2170)]).then(()=>r(14289)),GlyphWorker:()=>Promise.all([r.e(2741),r.e(6892)]).then(()=>r(16892)),IntegratedMesh3DTilesLayerWorker:()=>Promise.all([r.e(1843),r.e(9554)]).then(()=>r(95938)),LercWorker:()=>r.e(7087).then(()=>r(57087)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(()=>r(72772)),MemorySourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(9616)]).then(()=>r(29432)),PBFDecoderWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9078)]).then(()=>r(39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9358),r.e(4314)]).then(()=>r(96982)),ParquetSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(3819),r.e(5248),r.e(3027),r.e(1484)]).then(()=>r(6557)),PointCloudWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(7005),r.e(7984),r.e(5992)]).then(()=>r(64798)),RasterWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(7074),r.e(9235),r.e(3518)]).then(()=>r(63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(1843),r.e(161),r.e(491)]).then(()=>r(70491)),SceneLayerWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(6707)]).then(()=>r(94715)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(()=>r(95902)),WFSSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(9315)]).then(()=>r(33771)),WorkerTileHandler:()=>Promise.all([r.e(7736),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(5228),r.e(7499),r.e(1969),r.e(4157)]).then(()=>r(36984)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(4862)]).then(()=>r(1123)),statsWorker:()=>Promise.all([r.e(7736),r.e(7865),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9575),r.e(3281),r.e(1737)]).then(()=>r(26412)),ImageMeasurementWorker:()=>r.e(1360).then(()=>r(41360))};r.d(t,["u",0,n])},8341(e,t,r){r.d(t,{Jc:()=>c,VI:()=>d,mF:()=>l,oV:()=>b,u1:()=>f});var n=r(44208),a=r(17676);const o="worker:port-closed",i={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let s=0;function c(){return s++}function l(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function f(e,t,r,n){if(t.type===i.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==i.INVOKE&&t.type!==i.RESPONSE)return void e.postMessage(t);let a;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(a=u(n),t.data=r):(a=u(r.transferList),t.data=r.result),a?e.postMessage(t,a):e.postMessage(t)}function d(e){if(!e)return null;let t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;let t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){let t=e?.name===o;if(!(0,a.zf)(e)&&!t)throw e;return}}r.d(t,["Go",0,i,"T",0,o])},70333(e,t,r){r.d(t,{Aq:()=>i,Y3:()=>s,id:()=>a,ol:()=>o}),r(44208);var n=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");let a,o="5.2";function i(e){a=e}function s(e){let t=a?.findCredential(e);return t?.token?(0,n.rs)(e,"token",t.token):e}o="5.2.0",globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}})},39131(e,t,r){r.d(t,{$E:()=>i,py:()=>o,qG:()=>s});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,a={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function o(e){let t=e?.match(n);if(!t)return null;let[,r,o,i]=t;if(!r)return null;let s=null,c=null,l=null,{devext:f,qaext:d,www:u}=a;if(o)if(s=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qa":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}else({customBaseUrl:c,portalHostname:l}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qaext":({customBaseUrl:c,portalHostname:l}=d);break;case"www":({customBaseUrl:c,portalHostname:l}=u);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:s}}function i(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function s(e){let t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function a(e){let t=new Uint8Array(e),r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>a})}};const t={};function r(n){const a=t[n];if(void 0!==a)return a.exports;const o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var a=t[n++],o=t[n++],i=0===o?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:o};r.o(e,a)||Object.defineProperty(e,a,i)}else for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.f={},r.e=e=>{const t=[];return r.f.i(e,t),Promise.all(t)},r.u=e=>"chunks/"+{7:"a2f0894218e665780a21",31:"67efdd296007a809586c",77:"e04fb83ab2634bc15cc7",86:"a85cdafbaf1848bb924b",100:"ebbf425af348e6ede814",118:"0f7455dbe8c2ee464194",146:"54b18559280a7d2a8d93",152:"9c33e67bb6f93f6529bb",161:"44f90e75c1dc3d726a95",167:"3321cb0d4cb68b2ec8bf",309:"e7aaf7579592b79d6dd7",349:"514cc15acb77dc85035c",353:"751a21288cf161b94a54",359:"3880d2c7fb14955d7f93",369:"66539ab0d88b47326ce9",382:"8483c50ed8f280fd74bb",390:"2ad69cc496235702bbf2",433:"5736feefa261589b6273",468:"bfb8fc6b940bd5510e29",491:"4db829a0238024736fe6",506:"ac69c0fd5867b493f1d2",514:"a65951f1d5702cfd996e",521:"25c3be410d1c03f8f39d",547:"aa5b42e44d2959fdacd3",563:"08fe248e412bb170210d",566:"bd812dd75d2a3d7d0441",599:"20ee2f36f0fd0ae01e15",692:"2671035cc08027185737",700:"d7cf32a8c6060a208f06",737:"3048e74e6246324ce6fc",756:"49e4fe8ea5a4366a9b45",787:"bc38def1983089514e4b",788:"6a294b6ed6f67c8a01c6",812:"80c234ee5276ea1645db",820:"35f8896b52adaf952657",837:"9cbde13e536676767900",892:"dfbe0efe453587ec5eb2",893:"60c79934799927114074",895:"369780276b2755361f7d",919:"4e3f651ac76fcd53df2b",926:"ccb55245fe49d844ec50",980:"cf1ec61eb2ad147bb931",1017:"a17673e691ced46a90d3",1088:"864194927d05ebc4cc31",1132:"eaddffcc7004101fc230",1137:"2d83ba260dd6bbe38206",1150:"edd36a1fc80b1d29907e",1204:"608be1172a908e92b9f1",1214:"eab53cc313ef38ec7c48",1273:"6ddc29a144640acb1192",1277:"38d852676677e5697864",1285:"116293b1ee788a89ce1e",1327:"47f0c717acc2c33ea670",1333:"9e0b0262dec496451762",1348:"c576bef77e34920af188",1360:"28a821de9dbf10324033",1384:"28ed020d9995b6577be5",1484:"7d2be06dfbd92c8b9484",1491:"06101f3da5e2fc708402",1504:"eaab787a5f2445be5e5a",1550:"7446d0dfebf93e86c098",1560:"4f4bc4f809b8936cd010",1577:"cca8bd07bcd1d267a2e8",1588:"b5eff28cf482d920b9ea",1666:"950d4578dc450467404c",1698:"0fda0d8b0eaeed2ab39d",1722:"606ea251075fe81a1206",1735:"d344c3fd9f6b113bbcd7",1737:"b71029a2ab7dbb3706f9",1763:"17c6d66b47aa690df0d4",1773:"72e6d594b7262430ae55",1797:"f8bc474434fd365ab174",1837:"3a8320a40916c755c031",1843:"aba42885c5d6b2b5fe7f",1894:"12a08d0ad0f5fea32642",1904:"7dfbc31f3b56728485a4",1938:"1a614bac5db42c6263f8",1948:"a51576d84edca88e41dd",1951:"50e8943d2c0b96fab2c1",1969:"bab1d010970d98c25470",2024:"67f15538c51838201fc7",2158:"4ba856605f711b615e4c",2170:"66867e523cc82f8fe35b",2174:"164e74d586297946a717",2186:"d53cc574a21031436c45",2223:"c4bbe4707e90b7cd0379",2258:"0b4481b57a611b15f65c",2343:"05b34302da58e8244da3",2346:"590fe0f56bc4c33a50e7",2372:"6202ba9d79567cbe2c48",2387:"377595b23379b0c8fe95",2390:"9d0ee6a816bb72068ab1",2409:"30e20461958951a31a5c",2423:"2479162ebc3a0b8d2b5e",2491:"2b6684d057d9ad17ac13",2558:"2b06e8507d71c4d9b5b5",2733:"5ec5a6cef9ee9a8cc400",2741:"094eb9677cdebfaa9e1b",2772:"e81173724e8de8c1e65b",2802:"ca204c110438f7315790",2827:"5f07f52bb8b7721f08d3",2889:"7dbf4c7480bf9c72820d",2958:"de3f140058aa0b907b65",2980:"897e44f97b933d70feee",2990:"2095f220dc2b8f8f62db",2994:"747461bb6a1bc2f0a64d",2997:"80df9ad016b46619c7b9",3027:"7697bbbaf3724f8c4445",3030:"f95a1f878c9c1146180e",3080:"7862abd24fb5c3b12e6b",3103:"2a570ce6b99dac6ee996",3116:"b7c4bb0f3f9662bac726",3193:"070684943698fa43c2b4",3276:"eb2652ec48faa78de3c5",3278:"4e6656a5f29e31902fca",3281:"72f716a841463e0ba23f",3299:"700b1d5bc67b7e1b3ff3",3309:"e630f3c56c077cb2bd8e",3318:"bec375ff37c25a49e080",3359:"10878932826ddb60fac4",3375:"5fbd7d8d8896a224fff3",3390:"ee6679ef9efa1504e7eb",3391:"fc0dbb588a4062615cb6",3394:"898359be6996fd9763b8",3456:"df7603ef7d2a7cbeaaa2",3518:"b1d5d236d5268fcbc74b",3527:"3636c2ac9b77950776d6",3543:"e000123703b86494c738",3561:"aa4f3751f0d830113bed",3642:"294276ed397023dcda44",3650:"fccfe3aa45a2fb286012",3666:"363142b7fb50227fcdca",3693:"1380cec385426673f294",3708:"47f0c717acc2c33ea670",3755:"3ec3589f6e74d7cb87cf",3796:"2e66c969bf4209c957b5",3813:"c8d178a0c82fffd7fed5",3819:"4e4f747de424941a0bfa",3902:"d56fdf5ce5ff53dc0e69",3910:"9432feca48ca3e5849bd",3932:"5a9b7eb26f936f03d02e",4038:"5b720d254ba61758b61a",4059:"5982c6a8459c1237b298",4064:"6ccf9535013fe672c93b",4085:"69627b2634da64dd885f",4123:"692f0093c444fcc752b5",4144:"365825c51fad1bb7f51f",4152:"042614bf65b7d63025cb",4157:"15e1117a706a98b17ad5",4314:"8e5903f1ed31e1185fc9",4403:"e3a742dc0c291b47ba56",4426:"c0b38f8c808d434af5f6",4548:"f9dc38761b314d33890f",4549:"d1d6154b4af1c9cc497b",4565:"ba38231193919e093917",4575:"62941dd81acfdb524cfe",4581:"18e7fa4d3e0b1a084cc6",4642:"ac24b4370dc7194a3107",4674:"561c48cb4d49b150765b",4690:"711cfb84659cb4437679",4708:"36c780a9527c75b36725",4729:"df375d1b0dab5ecbd1be",4790:"9cd3fcb5fca6f9dbbcd8",4791:"406f24ec13eb30d43405",4844:"822f83d7c09ef0a9bbdf",4862:"f63686735e4e52f5b54e",4934:"bc6fdd9faf8ed54be0cb",4943:"435ad7e6ed326da2b969",4945:"d51bb11baadc741c46bc",4988:"6268aadb24e0b7c8d207",5077:"67e533748435253aaba6",5087:"89cc1a5539b82fb46216",5128:"a7325ebb7edf3273bb34",5141:"56a24061589f4a968818",5165:"8293600f94553afc8c38",5181:"3de07326da4c47cd2aab",5223:"c9e7d4c277fbc82c4438",5227:"ca2adcbcf44454484fd5",5228:"fdbf6208df5c58746d9d",5248:"367b2f25cfe37847a48d",5356:"c45edd0a7d57263bb7d6",5360:"a02c3c23bd87e0470b8b",5367:"14ded73842154d91ef4e",5404:"3704b4e7efc3abc1a7b1",5443:"6e910342ada398c98e30",5508:"31640b41e0ecdff892fa",5566:"f8a83d447b7aef051876",5606:"509a74e9334f31b931d4",5613:"e9cdb0b0f074583edebd",5740:"d20dcd4ce4b0111d924f",5752:"46f0510846a309a390ca",5756:"5fbd7d8d8896a224fff3",5804:"85ec73dcba4b922f1948",5841:"4e17665dd9048c300d87",5856:"bca6b469940b7b954123",5879:"eeb068c265bd3a22a8c1",5899:"8d86b0cb0e004ad72040",5902:"18d47ab571b613fbe719",5954:"c80a3b039e510c118399",5977:"057f245d70e57a1bcb46",5992:"8f008eedb11685ee2048",6023:"5d42f0898bf30ae940ea",6027:"e2576c37cf13dc421f69",6033:"a025ee38d402504193df",6052:"47e250d471d0e55fa6be",6070:"178083d8ed7707b45ca2",6122:"0b6941781e35ce0f7274",6129:"6b646971cc15e33a9f33",6154:"d747c7a5252e3b1f466a",6185:"c046c4fc934bc6f54c69",6187:"dbaa88e46487efaad732",6198:"844eedda8f749972f707",6247:"6afe860f491905c72298",6361:"2226c20c38e20713bcb5",6440:"5982c6a8459c1237b298",6451:"66c2a28a851130b87c04",6475:"dc51dcaa4e2f9a90f5bd",6491:"067de1910190da228291",6553:"b6d71a4ab788a09714f3",6554:"fc44227c1756f65b95df",6556:"076e8d2e08ff2a013736",6558:"876f7633c15f1e31078d",6569:"6b04285726b803b82564",6650:"3415531224f8494d79ca",6671:"0320cbd825f9a4222042",6684:"084222c00d263a534952",6707:"f2cfee8a761ae91f7a3e",6713:"f5cc78291b53931b91e8",6742:"1eaaa896eea3f2ffe6a6",6744:"144bad0c2415c345736a",6810:"1f9d6180a96d557838e9",6870:"20f75cc777af13fa249b",6874:"a79cae328e866272754a",6875:"0590857215c547e63b51",6880:"c52466eb1f3c33ae1f5a",6884:"c88a70f68c8ce8c30e9b",6892:"150e7a7bd5df25693da7",6930:"d89fe41c71c9621c41ae",6936:"1188d0a136fffc009643",6956:"02d4f91652a79d2b637e",7005:"2d3e0e4442dbc6ec6def",7029:"aa8ab28e0c1ae3b55ac0",7074:"6f73e41e14817acfaead",7085:"0979a48905742486f222",7087:"bb9a1162384f59e9bc5e",7217:"4c389472b8cdb0c55154",7235:"216a239142dfe1306c6c",7269:"6eb5cc8ddf772c0062e6",7290:"8f74d92ac69714b9fd4e",7301:"67f54efc817b241f8746",7304:"bedaa5e64ed81803829a",7340:"735c1dffc3439bdba3cc",7374:"0d52e1b6d38f2670658c",7380:"b70885deebc6106597ad",7420:"379ef56f6b32494832a6",7444:"59295b99bdff4045a0e7",7499:"505227797bcf2a1d908d",7546:"17f99b130384c1ff2e01",7548:"86524ae8926228898d95",7552:"a6f969851d4278865cc5",7561:"2a8168e109caa87d596f",7568:"2d9a1f23ec6ce90723ac",7715:"3c881b1adc8a5dea9a90",7736:"a83815c028c9c80aa4c9",7745:"f9259dc1d78d762c6ac0",7772:"63b5418a1c3fe0a97a86",7790:"ab6506a3c16f8717fc00",7826:"5396b6e99a0546a25d19",7865:"2fcd7db1e192858a650e",7883:"aa1054834738aef48bda",7885:"c1cf3edce15f09648eb4",7982:"98d1efb6f2439c6344cf",7984:"8cc8d7ffe43f5947b04f",7992:"b01804aa6c47a220a603",8018:"20a698709c3c11ff2c16",8125:"ac69c0fd5867b493f1d2",8197:"f9c80e9fc349db4873e8",8241:"71a51795f715332fb4fe",8278:"266c90d8d56a2da42fcf",8298:"7aa9b61ca9b66f30449f",8305:"c570b90995c65bbb2e14",8307:"f8d2225f333524ce1d88",8344:"b976122bcd4e2170afaf",8377:"92b03de8a7686b164f60",8589:"8b8118ab56cc808b5a71",8595:"63c3a573dfe703056f8f",8613:"784d6c6949284ed6e10b",8628:"42330ad374904de4f78f",8679:"8e310e9cb9d84ac3ca2f",8692:"c7699edd14497d174445",8714:"765ecf6dff9a547d8e19",8740:"efc53007cd2e4991d7d4",8798:"7711ae5612f685078fc8",8826:"daae21cf77864f3293ef",8846:"a2196a49f89d57a0a1c7",8856:"a504a5e06cb89a620799",8879:"1819c45655c836b9a8d7",8885:"72399062767abdfb0bee",9013:"3dd49f910834a2fb2142",9038:"c249a91dd23104723fab",9074:"cb6fb04fe5c8d90d4196",9078:"4996869b9cbd8c8ddcfa",9110:"673c61c964524150d9bc",9117:"7851aef196eea5d6c94e",9126:"40748b846cf6923478c9",9134:"2a3fcc034cfbf540c5cc",9159:"4d7063c4152953afb859",9177:"849f446c718e892f39ce",9187:"1cc744ab5eee5ee3bed8",9192:"cc817c9d3f8e8f8c56e4",9235:"98760040f0c9d47c718d",9239:"f67b37253d6d05d1e339",9275:"26261b21d1edf476ea49",9279:"dba5f44c4e4a3f075df2",9301:"546f5f57c9249627bb89",9304:"bf4d913e523eae2fda28",9315:"caaf6306cc73f618d27d",9321:"ffde86162265b33e97e0",9358:"ace2e0a9d9013edd8624",9367:"7f5b887a753bb67c8486",9389:"aea44253c80493ef5755",9407:"1ab59a97ffa49e9e1659",9423:"2a2a4650dd9b953d317c",9447:"474015def9652ddf0640",9480:"5f1cb79aec9c4a9b7ddc",9512:"debe45e792212682b304",9521:"787c1a8bda7d745633f2",9554:"8ca2bb3c0551bb1898b6",9567:"3b0808ee3c4facfaca3d",9575:"ccd19c490ca24db6ffb1",9588:"58032aab28a20a327f6c",9616:"b0a612d8ffa5c46d7db4",9657:"afc3b2af20e9d1dfd260",9672:"3b552afffaa78bf4fe18",9692:"4bb1bb3ffb1b71bc43c8",9695:"5aeb5e18514644fe2cf9",9696:"f3fdf75843ade0ca591e",9716:"d4eb24c82087a74ae670",9722:"cd9aa950cb74b09008fe",9754:"2cb209bc51a19487692d",9789:"6de64abd9e2b51fa2872",9800:"712559f121f76c4e71ab",9820:"4024becaf4012c1f15a7",9821:"1c378d489c5402888f76",9838:"792d2b62356a1d953c88",9855:"4419732baf3459a80e6d",9894:"7572c2bc5062e66f6330",9917:"dd08dff19a2ffd36f284",9933:"257910cca66dc5df465e",9953:"3286cf2afeb7f48564d9",9958:"deb408bee61ca192b2ce"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{var e={76:1},t=t=>{let[n,o,i]=t;for(var s in o)r.o(o,s)&&(r.m[s]=o[s]);for(i&&i(r);n.length;)e[n.pop()]=1;a(t)};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var n=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],a=n.push.bind(n);n.forEach(t),n.push=t})(),r(66358);let n=r(50343);RemoteClient=n})();
1
+ var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r(44208);var n=r(93637);const a={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&((0,n.$N)(a,globalThis.esriConfig,!0),delete a.has),!a.assetsPath&&(a.assetsPath="https://js.arcgis.com/5.2.1/@arcgis/core/assets",a.defaultAssetsPath=a.assetsPath),r.d(t,["A",0,a])},49186(e,t,r){r.d(t,{A:()=>i});var n=r(4718),a=r(53966),o=r(799);class i{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,o.V2)(t,r):"",this.details=r}toString(){let{name:e,message:t}=this;return`[${e}]: ${t}`}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch{return"[object]"}}))}}catch(e){throw a.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}},53966(e,t,r){r.d(t,{A:()=>s});var n=r(92602),a=r(51447),o=(r(44208),r(799));const i={info:0,warn:1,error:2,none:3};class s{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,s._loggers.set(this.module,this);let t=this.module.lastIndexOf(".");-1!==t&&(this._parent=s.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e="string"==typeof e?e:e.declaredClass,s._loggers.get(e)||new s({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!s._throttlingDisabled){let n=function(...e){return(0,o.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),a=this._loggedMessages[e].get(n);if("once"===t&&null!=a||"oncePerTick"===t&&a&&a>=s._tickCounter)return;this._loggedMessages[e].set(n,s._tickCounter),s._scheduleTickCounterIncrement()}for(let t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){let t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",c)}_matchLevel(e){let t=n.A.log.level||"warn";return i[this._parentWithMember("level",t)]<=i[e]}static _scheduleTickCounterIncrement(){s._tickCounterScheduled||(s._tickCounterScheduled=!0,Promise.resolve().then(()=>{s._tickCounter++,s._tickCounterScheduled=!1}))}}function c(e,t,...r){console[e](`[${(0,a.u3)(t)}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){let r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>o,HX:()=>u,Ho:()=>d,MJ:()=>i,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>c,Xj:()=>f,Xy:()=>m,aI:()=>s,iv:()=>l,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),a=r(87811);function o(e,t){if(t){let r=[];for(let n of e)r.some(e=>t(e,n))||r.push(n);return r}return Array.from(new Set(e))}function i(e,t,r,n,a,o,i){if(null==e&&null==n)return!0;t=Math.max(0,t),a=Math.max(0,a),r=Math.max(0,r<0?(e?.length??0)+r:r),o=Math.max(0,o<0?(n?.length??0)+o:o);let s=r-t;if(null==e||null==n||s!==o-a)return!1;if(i){for(let r=0;r<s;r++)if(!i(e[t+r],n[a+r]))return!1}else for(let r=0;r<s;r++)if(e[t+r]!==n[a+r])return!1;return!0}function s(e,t,r){return i(e,0,e?.length??0,t,0,t?.length??0,r)}function c(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function l(e,t,r){let n,a;if(r)n=t.filter(t=>!e.some(e=>r(e,t))),a=e.filter(e=>!t.some(t=>r(t,e)));else{let r=new Set(e),o=new Set(t);n=t.filter(e=>!r.has(e)),a=e.filter(e=>!o.has(e))}return{added:n,removed:a}}function f(e){return e&&"number"==typeof e.length}function d(e,t){let r=e.length;if(0===r)return[];let n=[];for(let a=0;a<r;a+=t)n.push(e.slice(a,a+t));return n}function u(e,t,r,n){e.length>r&&(e.length=r);let a=e.length,o=0,i=a;if(a===r){let r=n(e[a-1],t);if(r<=0||Number.isNaN(r))return}for(;o<i;){let r=o+i>>>1,a=n(e[r],t);a<=0||Number.isNaN(a)?o=r+1:i=r}a===r&&e.pop(),e.splice(o,0,t)}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n||=h;let a=Math.max(0,n.last-10);for(let o=a;o<r;++o)if(e[o]===t)return n.last=o,o;let o=Math.min(a,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,a){let o=r??e.length,i=p(e,(0,n.z)(t),o,a);if(-1!==i)return e[i]=e[o-1],r??e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,a,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);a||=h;let i=Math.max(0,a.last-10);for(let t=i;t<r;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<i;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function w(e){return e?(v.seed=e,()=>v.getFloat()):Math.random}const v=new a.A;function _(e,t){if(!e)return e;let r=w(t);for(let t=e.length-1;t>0;t--){let n=Math.floor(r()*(t+1)),a=e[t];e[t]=e[n],e[n]=a}return e}function k(e,t){let r=e.indexOf(t);return-1===r?null:(e.splice(r,1),t)}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>c,ck:()=>l,eF:()=>f,eO:()=>s,io:()=>d,u3:()=>u,uW:()=>i});var n=r(44208);const a=new WeakMap;function o(e,t,r=!1){let n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=a.get(e);o||(o=new Set,a.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function i(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&d(e,`Module: ${u(t)}`,r)}function s(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;d(e,"Function: "+(n?u(n)+"::":"")+t+"()",r)}}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;d(e,"Property: "+(n?u(n)+"::":"")+t,r)}}function l(e,t,r,a={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=a;d(e,`'${(n?u(n)+"::":"")+t}' value: ${r}`,a)}}function f(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&d(e,`Multiple argument constructor: ${t=u(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function d(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{replacement:n,version:a,see:i,warnOnce:s}=r,c=t;if(n&&(c+=`\n\t🛠️ Replacement: ${n}`),a&&(c+=`\n\t⚙️ Version: ${a}`),i)if(Array.isArray(i)){c+="\n\t🔗 See for more details:";for(let e of i)c+=`\n\t\t${e}`}else c+=`\n\t🔗 See ${i} for more details.`;o(e,c,s)}}function u(e){return e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e}},37955(e,t,r){r.d(t,{Oo:()=>s,on:()=>i,wb:()=>a});var n=r(36563);function a(e){return function(e){return"object"==typeof e&&!!e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return"object"==typeof e&&!!e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function i(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,a){if(Array.isArray(t)){let o=t.slice();for(let t of o)e.addEventListener(t,r,a);return(0,n.hA)(()=>{for(let t of o)e.removeEventListener(t,r,a)})}return e.addEventListener(t,r,a),(0,n.hA)(()=>e.removeEventListener(t,r,a))}(e,t,r):e.on(t,r)}function s(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=i(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{Bf:()=>s,hA:()=>a,rE:()=>i,vE:()=>o});const n={remove:()=>{}};function a(e){return e?{remove(){e&&=void e()}}:n}function o(e){return a(()=>function(e){e.forEach(e=>e?.remove())}(e))}function i(e){return a(()=>e?.abort())}function s(e){return{[Symbol.dispose](){e.remove()}}}},44208(e,t,r){r.d(t,{A:()=>o});const n=globalThis,a={...n.esriConfig?.has};function o(e){return"function"==typeof a[e]?a[e]=a[e](n):a[e]}o.add=(e,t,r,n)=>{(n||void 0===a[e])&&(a[e]=t),r&&o(e)},o.cache=a,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),o.add("dom",e),o("host-browser")){let e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){let e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(t.includes("Gecko")&&!o("wp")&&!o("khtml")&&!o("edge")&&o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(n.navigator){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in n),o.add("esri-temporal","Temporal"in n),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in n,t=!1===n.crossOriginIsolated;return e&&!t}),o.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))),o.add("esri-atomics","Atomics"in n),o.add("esri-workers","Worker"in n),o.add("web-feat:cache","caches"in n),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("min-workers-pool-size",2),o.add("max-workers-pool-size",o("esri-mobile")?3:8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-hybrid-tile-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",2e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",2e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-allow-editable",!1),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-pixel-buffering-enabled",!0),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-max-page-size",8e3),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("featurelayer-pbf-true-curves",!0),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("featurelayer-relative-time-queries-enabled",!0),o.add("featurelayer-relative-time-queries-bin-window-public",1),o.add("featurelayer-relative-time-queries-bin-window-private",60),o.add("parquetlayer-full-query-feature-count",5e5),o.add("parquetlayer-persistence-enabled",!0),o.add("parquetlayer-cache-enabled",!0),o.add("parquetlayer-legacy-field-overrides-enabled",!1),o.add("sketch-layer-enabled",!1),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("request-queue-concurrency-global",64),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",16),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),!o("host-webworker")&&o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{Function()}catch{return!0}return!1}),o.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>c,TU:()=>s,aI:()=>b,gh:()=>h,o8:()=>i,oy:()=>o});var n=r(4576),a=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;let t=u(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(f(e))throw Error("Trying to clone an unclonable Accessor instance");let r={};for(let t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function s(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let r=u(e);if(null!=r)return r;if(l(e)){let r=!0,n=e.map(e=>{let n=s(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(c(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(f(e))return null;let n=new(0,Object.getPrototypeOf(e).constructor);for(let t of Object.getOwnPropertyNames(e)){let r=e[t],a=s(r);if(null!=r&&null==a)return null;n[t]=a}return n}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,a.dz)(e)||(0,a.mg)(e)||(0,a.UR)(e)||(0,a.IY)(e)||(0,a.jq)(e)||(0,a._G)(e)||(0,a.XJ)(e)||(0,a.vZ)(e)||(0,a.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(i(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;let r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw Error(t??"value is None")}function a(e){return e&&!e.destroyed&&e.destroy(),null}function o(e){return e?.dispose(),null}function i(e){return e?.remove(),null}function s(e){return e?.abort(),null}function c(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null==r?e.equals(t):r(e,t):e===t}function f(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>l,DC:()=>s,Gz:()=>c,Lw:()=>n,Pb:()=>f,WD:()=>o,pR:()=>a,xt:()=>i})},93637(e,t,r){r.d(t,{$N:()=>a,a4:()=>d,i7:()=>f,i8:()=>s,sM:()=>i,wc:()=>o});var n=r(4718);function a(e,t,r=!1){return l(e,t,r)}function o(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function i(e,t,r){let n=e.split("."),a=n.pop(),o=c(n,!0,r);o&&a&&(o[a]=t)}function s(e,t){if(null==e&&null==t)return!1;if(null==e||null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){let r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(s(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(let r in e)if(s(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(let r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function l(e,t,r){return t?Object.keys(t).reduce((e,a)=>{if("__proto__"===a)return e;let o=e[a],i=t[a];return o===i?e:void 0===o?(e[a]=(0,n.o8)(i),e):(Array.isArray(i)||Array.isArray(e)?(o=e[a]=o?Array.isArray(o)?o.slice():[o]:[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach(e=>{o.includes(e)||o.push(e)}):e[a]=i.slice())):i&&"object"==typeof i?e[a]=l(o,i,r):(!e.hasOwnProperty(a)||t.hasOwnProperty(a))&&(e[a]=i),e)},e||{}):e}function f(e,t){for(let r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},17676(e,t,r){r.d(t,{$X:()=>k,G4:()=>l,Lx:()=>g,Mq:()=>c,NK:()=>i,NO:()=>S,NY:()=>b,Ol:()=>w,Pl:()=>v,QP:()=>f,QZ:()=>m,Te:()=>s,YL:()=>_,hn:()=>P,jH:()=>d,nA:()=>y,qr:()=>h,sg:()=>A,u7:()=>u,z7:()=>O,zf:()=>p});var n=r(49186),a=r(37955),o=(r(44208),r(53966),r(97768));function i(e="Aborted"){return new n.A("AbortError",e)}function s(e,t="Aborted"){if(l(e))throw i(t)}function c(e){return e instanceof AbortSignal?e:e?.signal??void 0}function l(e){let t=c(e);return null!=t&&t.aborted}function f(e){if(p(e))throw e}function d(e){if(!p(e))throw e}function u(e,t){let r=c(e);if(null!=r)return r.aborted?void t():(0,a.Oo)(r,"abort",()=>t())}function b(e,t){let r=c(e);if(null!=r)return s(r),(0,a.Oo)(r,"abort",()=>t(i()))}function h(e,t){return null==c(t)?e:new Promise((r,n)=>{let a=u(t,()=>n(i())),s=()=>{a=(0,o.xt)(a)};e.then(s,s),e.then(r,n)})}function p(e){return"object"==typeof e&&!!e&&"name"in e&&"AbortError"===e.name}async function m(e){try{return await e}catch(e){if(!p(e))throw e;return}}async function g(e){if(!e)return;if("function"!=typeof e.forEach){let t=Object.keys(e),r=await g(t.map(t=>e[t])),n={};return t.map((e,t)=>n[e]=r[t]),n}let t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{let n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function y(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function w(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function v(e,t=void 0,r){let n=new AbortController;return u(r,()=>n.abort()),new Promise((r,a)=>{let o=setTimeout(()=>{o=0,r(t)},e);u(n,()=>{o&&(clearTimeout(o),a(i()))})})}function _(e,t){let r=new AbortController,n=setTimeout(()=>r.abort(),t);return u(e,()=>{r.abort(),clearTimeout(n)}),{...e,signal:r.signal}}function k(e){return e&&"function"==typeof e.then}function O(e){return k(e)?e:Promise.resolve(e)}function A(e,t=-1){let r,n,a,o,s=null,c=(...l)=>{if(r){n=l,o&&o.reject(i()),o=Promise.withResolvers();let e=o.promise;if(s){let e=s;s=null,e.abort()}return e}if(a=o||Promise.withResolvers(),o=null,t>0){let n=new AbortController;r=O(e(...l,n.signal));let a=r;v(t).then(()=>{r===a&&(o?n.abort():s=n)})}else r=1,r=O(e(...l));let f=()=>{let e=n;n=a=r=s=null,null!=e&&c(...e)},d=r,u=a;return d.then(f,f),d.then(u.resolve,u.reject),u.promise};return c}function P(e,t){t.then(e.resolve,e.reject)}async function S(e){await Promise.resolve(),s(e)}},799(e,t,r){r.d(t,{Cj:()=>c,HC:()=>i,V2:()=>s,Wm:()=>l,_e:()=>u,xq:()=>f});var n=r(93637);const a=/\{([^}]+)\}/g;function o(e){return e??""}function i(e,t){return t?e.replaceAll(a,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function s(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function c(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function l(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function f(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t,a=0;a<e.length;a++)t=e.charCodeAt(a),r=Math.imul(r^t,2654435761),n=Math.imul(n^t,1597334677);return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)}let d;function u(e){return d??=new DOMParser,d.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function a(e){return"Int8Array"===e?.constructor?.name}function o(e){return"Uint8Array"===e?.constructor?.name}function i(e){return"Uint8ClampedArray"===e?.constructor?.name}function s(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}function p(e){return b(e)||u(e)||l(e)||s(e)||a(e)}function m(e){return b(e)||u(e)}function g(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:f(e)?4294967295:c(e)?65535:o(e)||i(e)?255:l(e)?2147483647:s(e)?y:a(e)?127:256}r.d(t,{IY:()=>s,JI:()=>p,LW:()=>d,UR:()=>i,XJ:()=>f,_G:()=>l,a3:()=>g,aI:()=>b,dk:()=>m,dz:()=>a,iu:()=>h,jq:()=>c,mg:()=>o,mw:()=>n,vZ:()=>u});const y=32767;r.d(t,["h2",0,-2147483648])},84952(e,t,r){r.d(t,{$1:()=>K,$z:()=>H,An:()=>A,BQ:()=>re,DB:()=>V,FL:()=>L,FX:()=>R,Hg:()=>Z,Il:()=>fe,Ln:()=>he,N9:()=>te,S8:()=>z,T1:()=>ue,UC:()=>de,V1:()=>F,Zo:()=>we,_0:()=>_e,a6:()=>ye,b8:()=>I,e7:()=>le,fj:()=>B,hf:()=>be,lJ:()=>Q,lM:()=>oe,m3:()=>ae,nM:()=>ce,oP:()=>D,oy:()=>W,r$:()=>Y,rs:()=>ge,s0:()=>v,s2:()=>J,sC:()=>q,s_:()=>x,tk:()=>ee,ut:()=>E,w8:()=>G,x0:()=>S,xw:()=>ve,yM:()=>M,zf:()=>P,zi:()=>me,zs:()=>N});var n=r(92602),a=r(4576),o=r(49186),i=r(53966),s=r(12195),c=r(39131),l=r(26306);const f=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(y);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(w),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let k=new v(n.A.applicationUrl);let O=function(){let e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null==k.port?"":`:${k.port}`}${t}`}();function A(e){if(!e)return null;let t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function P(e){let t=e.split("&"),r={};for(let e of t){if(!e)continue;let t,n,a=e.indexOf("=");a<0?(t=decodeURIComponent(e),n=""):(t=decodeURIComponent(e.slice(0,a)),n=decodeURIComponent(e.slice(a+1)));let o=r[t];"string"==typeof o&&(o=r[t]=[o]),Array.isArray(o)?o.push(n):r[t]=n}return r}function S(e,t){return e?t&&"function"==typeof t?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{let n=e[r];if(null==n)return"";let a=encodeURIComponent(r)+"=",o=t?.[r];return o?a+encodeURIComponent(o(n)):Array.isArray(n)?n.map(e=>(0,s.W)(e)?a+encodeURIComponent(JSON.stringify(e)):a+encodeURIComponent(e)).join("&"):(0,s.W)(n)?a+encodeURIComponent(JSON.stringify(n)):a+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function x(e=!1){let t,r=f.proxyUrl;if("string"==typeof e){t=ae(e);let n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw i.A.getLogger("esri.core.urlUtils").warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&ie()&&(r=oe(r)),A(r)}function M(e,t=!1){let r,n,a=N(e);if(a){let e=C(a.proxyUrl);r=e.path,n=e.query?P(e.query):null}else if(t){let t=x(e);r=t.path,n=t.query}if(r){let t=A(e);e=r+"?"+t.path;let a=S({...n,...t.query});a&&(e=`${e}?${a}`)}return e}const j={path:"",query:""};function C(e){let t=e.indexOf("?");return-1===t?(j.path=e,j.query=null):(j.path=e.slice(0,t),j.query=e.slice(t+1)),j}function $(e){return(e=se(e=fe(e=C(e).path),!0)).toLowerCase()}function W(e){let t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=f.proxyRules,n=t.urlPrefix,a=r.length;for(let e=0;e<r.length;e++){let t=r[e].urlPrefix;if(n.startsWith(t)){if(n.length===t.length)return-1;a=e;break}t.startsWith(n)&&(a=e+1)}return r.splice(a,0,t),a}function N(e){let t=f.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function I(e,t){if(!e||!t)return!1;e=T(e),t=T(t);let r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&R(e,t,!0)}function E(e,t){return e=T(e),t=T(t),se(e)===se(t)}function T(e){let t=(e=z(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function q(e,t=f.interceptors){let r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(let e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function R(e,t,r=!1){if(!e||!t)return!1;let n=pe(e),a=pe(t);return!(!r&&n.scheme!==a.scheme||null==n.host||null==a.host)&&n.host.toLowerCase()===a.host.toLowerCase()&&n.port===a.port}function L(e){if("string"==typeof e){if(!D(e))return!0;e=pe(e)}if(R(e,k))return!0;let t=f.trustedServers||[];for(let r=0;r<t.length;r++){let n=U(t[r]);for(let t=0;t<n.length;t++)if(R(e,n[t]))return!0}return!1}function U(e){return _[e]||(ne(e)||re(e)?_[e]=[new v(J(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function J(e,t=O,r){return re(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===H(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:B(e.startsWith("/")?function(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function F(e,t=O,r){if(null==e||!D(e))return e;let n=z(e),a=n.toLowerCase(),o=z(t).toLowerCase().replace(/\/+$/,""),i=r?z(r).toLowerCase().replace(/\/+$/,""):null;if(i&&!o.startsWith(i))return e;let s=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r,c=s(a,"/",a.indexOf("//")+2),l=-1;for(;a.slice(0,c+1)===o.slice(0,c)+"/"&&(l=c+1,c!==a.length);)c=s(a,"/",c+1);if(-1===l||i&&l<i.length)return e;e=n.slice(l);let f=o.slice(l-1).replaceAll(/[^/]+/g,"").length;if(f>0)for(let t=0;t<f;t++)e=`../${e}`;else e=`./${e}`;return e}function z(e){return function(e){let t=f.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.scheme&&re(e)}(e))return e;let r,n=e.indexOf("/",7);if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),m.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&r===k.authority&&!g.test(e)||(ie()&&r===k.authority||t&&t.some(e=>r===e||r.endsWith(`.${e}`))||ie()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){let t=C(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=J(e=e.trim()))))}function B(...e){let t=e.filter(a.Ru);if(!t?.length)return;let r=[];if(D(t[0])){let e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");let n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){let t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function H(e,t=!1){if(null==e||G(e)||V(e))return null;let r=e.indexOf("://");if(-1===r&&re(e))r=2;else{if(-1===r)return null;r+=3}let n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=se(e,!0)),e}function D(e){return re(e)||ne(e)}function G(e){return null!=e&&e.startsWith("blob:")}function V(e){return null!=e&&e.startsWith("data:")}function Q(e){let t=Y(e);return t?.isBase64?(0,l.M)(t.data):null}function K(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const X=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){let t=e.match(X);if(!t)return null;let[,r,n,a]=t;return{mediaType:r,isBase64:!!n,data:a}}function Z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ee(e){return(await fetch(e)).blob()}function te(e){let t=Q(e);if(!t)return null;let r=Y(e);return new Blob([t],{type:r.mediaType})}function re(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function ae(e){return null!=e&&h.test(e)||"https"===k.scheme&&re(e)}function oe(e){return re(e)?`https:${e}`:e.replace(b,"https:")}function ie(){return"https"===k.scheme}function se(e,t=!1){return re(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function ce(e){let t=0;if(D(e)){let r=e.indexOf("//");-1!==r&&(t=r+2)}let r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function le(e,t){if(!e)return"";let r=A(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;let a=RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(a,"")}function fe(e){return e.endsWith("/")?e:`${e}/`}function de(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&D(e)))return e;let n=e.indexOf("//"),a=e.indexOf("/",n+2),o=e.indexOf(":",n+2),i=Math.min(a<0?e.length:a,o<0?e.length:o);return e.slice(n+2,i).toLowerCase()===t.toLowerCase()?`${e.slice(0,n+2)}${r}${e.slice(i)}`:e}function be(e,t){let r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.toString()}function he(e){return new URL(e).host}function pe(e){return"string"==typeof e?new v(J(e)):(e.scheme||=k.scheme,e)}function me(e,t){let r=A(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function ge(e,t,r){let n=A(e),a=n.query||{};return a[t]=String(r),`${n.path}?${S(a)}`}function ye(e,t){if(!t)return e;let r=A(e),n=r.query||{};for(let[e,r]of Object.entries(t))null!=r&&(n[e]=r);let a=S(n);return a?`${r.path}?${a}`:r.path}function we(e){if(null==e)return null;let t=e.match(ke);return t?t[2]:null}function ve(e){if(null==e)return null;let t=e.match(ke);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?Y(e)??{data:e}:new Promise((t,r)=>{let n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(Y(n.result)),n.onerror=e=>r(e)})}const ke=/([^.]*)\.([^/]*)$/;r.d(t,["Xq",0,()=>k,"gd",0,()=>O])},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,a)=>(...r)=>{let a,o,i=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(i)&&(a=i.signal,o=i.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:a})}})}r.d(t,{L:()=>n})},50343(e,t,r){r.r(t),r.d(t,{default:()=>w});var n=r(70333),a=r(49186),o=r(37955),i=r(36563),s=r(97768),c=r(17676),l=r(52268),f=r(17333),d=r(8341);const{CLOSE:u,ABORT:b,INVOKE:h,RESPONSE:p,OPEN_PORT:m,ON:g}=d.Go;class y{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===b?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(let e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class w{static{this.kernelInfo={fullVersion:n.ol}}static{this.clients=new Map}static connect(e,t){let r,n=new MessageChannel;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;let a=new w(n.port1,{channel:n,client:r,schedule:t});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=a),w.clients.set(a,r),n.port2}static loadWorker(e){let t=f.u[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new y(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:u}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){let n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new a.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));let i=(0,d.Jc)();return new Promise((r,a)=>{if((0,c.G4)(n))return this._processWork(),void a((0,c.NK)());let l={resolve:r,reject:a,abortHandle:(0,c.u7)(n,()=>{let e=this._outJobs.get(i);e&&(this._outJobs.delete(i),this._processWork(),(0,s.xt)(e.abortHandle),this._post({type:b,jobId:i}),a((0,c.NK)()))}),debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,o)})}createInvokeProxy(e){return(0,l.L)(this,e)}on(e,t){let r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:g,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,i.hA)(()=>{r.port1.postMessage({type:u}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){let e=new MessageChannel;return this._post({type:m,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;let e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;let{methodName:t,data:r,invokeOptions:n,resolver:a}=e;this.apply(t,r,n).then(e=>a.resolve(e)).catch(e=>a.reject(e))}_close(){this._channel&&=void 0,this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,s.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null==this._schedule?this._processMessage(e,!1):this._schedule(()=>this._processMessage(e,!0))}_processMessage(e,t){let r=(0,d.VI)(e);if(r)switch(r.type){case p:this._onResponseMessage(r);break;case h:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case b:this._onAbortMessage(r);break;case u:this._onCloseMessage();break;case m:this._onOpenPortMessage(r);break;case g:this._onOnMessage(r)}}_onAbortMessage(e){let t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){let e=this._client;this._close(),e&&"destroy"in e&&w.clients.get(this)===e&&e.destroy(),w.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){let t,{methodName:r,jobId:n,data:a=[],abortable:o}=e,i=o?new AbortController:null,s=this._inJobs,l=this._client,f=l[r];try{if(!f&&r&&r.includes(".")){let e=r.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],f=l[e[t+1]]}if("function"!=typeof f)throw TypeError(`${r} is not a function`);a.push({client:this,signal:i?i.signal:null}),t=f.apply(l,a)}catch(e){return void this._post({type:p,jobId:n,error:(0,d.mF)(e)})}(0,c.$X)(t)?(s.set(n,{controller:i,promise:t}),t.then(e=>{s.has(n)&&(s.delete(n),this._post({type:p,jobId:n},e))},e=>{s.has(n)&&(s.delete(n),(0,c.zf)(e)||this._post({type:p,jobId:n,error:(0,d.mF)(e||{message:`Error encountered at method ${r}`})}))})):this._post({type:p,jobId:n},t)}_onOpenPortMessage(e){new w(e.port,{client:this._client})}_onOnMessage(e){let{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,o.on)(e.port,"message",e=>{(0,d.VI)(e)?.type===u&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){let{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;let i=o.get(t);o.delete(t),this._processWork(),(0,s.xt)(i.abortHandle),r?i.reject(a.A.fromJSON(JSON.parse(r))):i.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},17333(e,t,r){const n={CSVSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(1333)]).then(()=>r(25209)),EdgeProcessingWorker:()=>Promise.all([r.e(1843),r.e(161),r.e(433)]).then(()=>r(71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(2258),r.e(9038)]).then(()=>r(38419)),FeaturePipelineWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(5128),r.e(1722),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(893),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(5248),r.e(5228),r.e(7304),r.e(3027),r.e(1969),r.e(5899)]).then(()=>r(55459)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(893),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(9423)]).then(()=>r(20401)),FlowWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(7235)]).then(()=>r(49616)),GaussianSplatSortWorker:()=>r.e(5856).then(()=>r(35856)),GeospatialPDFLayerWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(599)]).then(()=>r(37728)),GeometryWorker:()=>Promise.all([r.e(9917),r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9367)]).then(()=>r(71246)),GeoJSONSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(3642)]).then(()=>r(71202)),GeoJSONVectorTileSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(359),r.e(9575),r.e(2170)]).then(()=>r(14289)),GlyphWorker:()=>Promise.all([r.e(2741),r.e(6892)]).then(()=>r(16892)),IntegratedMesh3DTilesLayerWorker:()=>Promise.all([r.e(1843),r.e(9554)]).then(()=>r(95938)),LercWorker:()=>r.e(7087).then(()=>r(57087)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(()=>r(72772)),MemorySourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(9616)]).then(()=>r(29432)),PBFDecoderWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9078)]).then(()=>r(39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9358),r.e(4314)]).then(()=>r(96982)),ParquetSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(3819),r.e(5248),r.e(3027),r.e(1484)]).then(()=>r(6557)),PointCloudWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(7005),r.e(7984),r.e(5992)]).then(()=>r(64798)),RasterWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(7074),r.e(9235),r.e(3518)]).then(()=>r(63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(1843),r.e(161),r.e(491)]).then(()=>r(70491)),SceneLayerWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(6707)]).then(()=>r(94715)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(()=>r(95902)),WFSSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(9315)]).then(()=>r(33771)),WorkerTileHandler:()=>Promise.all([r.e(7736),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(5228),r.e(7499),r.e(1969),r.e(4157)]).then(()=>r(36984)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(4862)]).then(()=>r(1123)),statsWorker:()=>Promise.all([r.e(7736),r.e(7865),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9575),r.e(3281),r.e(1737)]).then(()=>r(26412)),ImageMeasurementWorker:()=>r.e(1360).then(()=>r(41360))};r.d(t,["u",0,n])},8341(e,t,r){r.d(t,{Jc:()=>c,VI:()=>d,mF:()=>l,oV:()=>b,u1:()=>f});var n=r(44208),a=r(17676);const o="worker:port-closed",i={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let s=0;function c(){return s++}function l(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function f(e,t,r,n){if(t.type===i.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==i.INVOKE&&t.type!==i.RESPONSE)return void e.postMessage(t);let a;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(a=u(n),t.data=r):(a=u(r.transferList),t.data=r.result),a?e.postMessage(t,a):e.postMessage(t)}function d(e){if(!e)return null;let t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;let t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){let t=e?.name===o;if(!(0,a.zf)(e)&&!t)throw e;return}}r.d(t,["Go",0,i,"T",0,o])},70333(e,t,r){r.d(t,{Aq:()=>i,Y3:()=>s,id:()=>a,ol:()=>o}),r(44208);var n=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");let a,o="5.2";function i(e){a=e}function s(e){let t=a?.findCredential(e);return t?.token?(0,n.rs)(e,"token",t.token):e}o="5.2.1",globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}})},39131(e,t,r){r.d(t,{$E:()=>i,py:()=>o,qG:()=>s});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,a={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function o(e){let t=e?.match(n);if(!t)return null;let[,r,o,i]=t;if(!r)return null;let s=null,c=null,l=null,{devext:f,qaext:d,www:u}=a;if(o)if(s=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qa":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}else({customBaseUrl:c,portalHostname:l}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qaext":({customBaseUrl:c,portalHostname:l}=d);break;case"www":({customBaseUrl:c,portalHostname:l}=u);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:s}}function i(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function s(e){let t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function a(e){let t=new Uint8Array(e),r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>a})}};const t={};function r(n){const a=t[n];if(void 0!==a)return a.exports;const o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var a=t[n++],o=t[n++],i=0===o?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:o};r.o(e,a)||Object.defineProperty(e,a,i)}else for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.f={},r.e=e=>{const t=[];return r.f.i(e,t),Promise.all(t)},r.u=e=>"chunks/"+{7:"a2f0894218e665780a21",31:"67efdd296007a809586c",77:"e04fb83ab2634bc15cc7",86:"a85cdafbaf1848bb924b",100:"ebbf425af348e6ede814",118:"0f7455dbe8c2ee464194",146:"54b18559280a7d2a8d93",152:"9c33e67bb6f93f6529bb",161:"44f90e75c1dc3d726a95",167:"3321cb0d4cb68b2ec8bf",309:"e7aaf7579592b79d6dd7",349:"514cc15acb77dc85035c",353:"751a21288cf161b94a54",359:"3880d2c7fb14955d7f93",369:"66539ab0d88b47326ce9",382:"8483c50ed8f280fd74bb",390:"2ad69cc496235702bbf2",433:"5736feefa261589b6273",468:"bfb8fc6b940bd5510e29",491:"4db829a0238024736fe6",506:"ac69c0fd5867b493f1d2",514:"a65951f1d5702cfd996e",521:"25c3be410d1c03f8f39d",547:"aa5b42e44d2959fdacd3",563:"08fe248e412bb170210d",566:"bd812dd75d2a3d7d0441",599:"20ee2f36f0fd0ae01e15",692:"2671035cc08027185737",700:"d7cf32a8c6060a208f06",737:"3048e74e6246324ce6fc",756:"49e4fe8ea5a4366a9b45",787:"bc38def1983089514e4b",788:"6a294b6ed6f67c8a01c6",812:"80c234ee5276ea1645db",820:"35f8896b52adaf952657",837:"9cbde13e536676767900",892:"dfbe0efe453587ec5eb2",893:"60c79934799927114074",895:"369780276b2755361f7d",919:"4e3f651ac76fcd53df2b",926:"ccb55245fe49d844ec50",980:"cf1ec61eb2ad147bb931",1017:"a17673e691ced46a90d3",1088:"864194927d05ebc4cc31",1132:"eaddffcc7004101fc230",1137:"2d83ba260dd6bbe38206",1150:"edd36a1fc80b1d29907e",1204:"608be1172a908e92b9f1",1214:"eab53cc313ef38ec7c48",1273:"6ddc29a144640acb1192",1277:"38d852676677e5697864",1285:"116293b1ee788a89ce1e",1327:"47f0c717acc2c33ea670",1333:"9e0b0262dec496451762",1348:"c576bef77e34920af188",1360:"28a821de9dbf10324033",1384:"28ed020d9995b6577be5",1484:"7d2be06dfbd92c8b9484",1491:"06101f3da5e2fc708402",1504:"eaab787a5f2445be5e5a",1550:"7446d0dfebf93e86c098",1560:"4f4bc4f809b8936cd010",1577:"cca8bd07bcd1d267a2e8",1588:"b5eff28cf482d920b9ea",1666:"950d4578dc450467404c",1698:"0fda0d8b0eaeed2ab39d",1722:"606ea251075fe81a1206",1735:"d344c3fd9f6b113bbcd7",1737:"b71029a2ab7dbb3706f9",1763:"17c6d66b47aa690df0d4",1773:"72e6d594b7262430ae55",1797:"f8bc474434fd365ab174",1837:"3a8320a40916c755c031",1843:"aba42885c5d6b2b5fe7f",1894:"12a08d0ad0f5fea32642",1904:"7dfbc31f3b56728485a4",1938:"1a614bac5db42c6263f8",1948:"a51576d84edca88e41dd",1951:"50e8943d2c0b96fab2c1",1969:"bab1d010970d98c25470",2024:"67f15538c51838201fc7",2158:"4ba856605f711b615e4c",2170:"66867e523cc82f8fe35b",2174:"164e74d586297946a717",2186:"d53cc574a21031436c45",2223:"c4bbe4707e90b7cd0379",2258:"0b4481b57a611b15f65c",2343:"05b34302da58e8244da3",2346:"590fe0f56bc4c33a50e7",2372:"6202ba9d79567cbe2c48",2387:"377595b23379b0c8fe95",2390:"9d0ee6a816bb72068ab1",2409:"30e20461958951a31a5c",2423:"2479162ebc3a0b8d2b5e",2491:"2b6684d057d9ad17ac13",2558:"2b06e8507d71c4d9b5b5",2733:"5ec5a6cef9ee9a8cc400",2741:"094eb9677cdebfaa9e1b",2772:"e81173724e8de8c1e65b",2802:"ca204c110438f7315790",2827:"5f07f52bb8b7721f08d3",2889:"7dbf4c7480bf9c72820d",2958:"de3f140058aa0b907b65",2980:"897e44f97b933d70feee",2990:"2095f220dc2b8f8f62db",2994:"747461bb6a1bc2f0a64d",2997:"80df9ad016b46619c7b9",3027:"7697bbbaf3724f8c4445",3030:"f95a1f878c9c1146180e",3080:"7862abd24fb5c3b12e6b",3103:"2a570ce6b99dac6ee996",3116:"b7c4bb0f3f9662bac726",3193:"070684943698fa43c2b4",3276:"eb2652ec48faa78de3c5",3278:"4e6656a5f29e31902fca",3281:"72f716a841463e0ba23f",3299:"700b1d5bc67b7e1b3ff3",3309:"e630f3c56c077cb2bd8e",3318:"bec375ff37c25a49e080",3359:"10878932826ddb60fac4",3375:"5fbd7d8d8896a224fff3",3390:"ee6679ef9efa1504e7eb",3391:"fc0dbb588a4062615cb6",3394:"898359be6996fd9763b8",3456:"df7603ef7d2a7cbeaaa2",3518:"b1d5d236d5268fcbc74b",3527:"3636c2ac9b77950776d6",3543:"e000123703b86494c738",3561:"aa4f3751f0d830113bed",3642:"294276ed397023dcda44",3650:"fccfe3aa45a2fb286012",3666:"363142b7fb50227fcdca",3693:"1380cec385426673f294",3708:"47f0c717acc2c33ea670",3755:"3ec3589f6e74d7cb87cf",3796:"2e66c969bf4209c957b5",3813:"c8d178a0c82fffd7fed5",3819:"4e4f747de424941a0bfa",3902:"d56fdf5ce5ff53dc0e69",3910:"9432feca48ca3e5849bd",3932:"5a9b7eb26f936f03d02e",4038:"5b720d254ba61758b61a",4059:"5982c6a8459c1237b298",4064:"6ccf9535013fe672c93b",4085:"69627b2634da64dd885f",4123:"692f0093c444fcc752b5",4144:"365825c51fad1bb7f51f",4152:"042614bf65b7d63025cb",4157:"15e1117a706a98b17ad5",4314:"8e5903f1ed31e1185fc9",4403:"e3a742dc0c291b47ba56",4426:"c0b38f8c808d434af5f6",4548:"f9dc38761b314d33890f",4549:"d1d6154b4af1c9cc497b",4565:"ba38231193919e093917",4575:"62941dd81acfdb524cfe",4581:"18e7fa4d3e0b1a084cc6",4642:"ac24b4370dc7194a3107",4674:"561c48cb4d49b150765b",4690:"711cfb84659cb4437679",4708:"36c780a9527c75b36725",4729:"df375d1b0dab5ecbd1be",4790:"9cd3fcb5fca6f9dbbcd8",4791:"406f24ec13eb30d43405",4844:"822f83d7c09ef0a9bbdf",4862:"f63686735e4e52f5b54e",4934:"bc6fdd9faf8ed54be0cb",4943:"435ad7e6ed326da2b969",4945:"d51bb11baadc741c46bc",4988:"6268aadb24e0b7c8d207",5077:"67e533748435253aaba6",5087:"89cc1a5539b82fb46216",5128:"a7325ebb7edf3273bb34",5141:"56a24061589f4a968818",5165:"8293600f94553afc8c38",5181:"3de07326da4c47cd2aab",5223:"c9e7d4c277fbc82c4438",5227:"ca2adcbcf44454484fd5",5228:"fdbf6208df5c58746d9d",5248:"367b2f25cfe37847a48d",5356:"c45edd0a7d57263bb7d6",5360:"a02c3c23bd87e0470b8b",5367:"14ded73842154d91ef4e",5404:"3704b4e7efc3abc1a7b1",5443:"6e910342ada398c98e30",5508:"31640b41e0ecdff892fa",5566:"f8a83d447b7aef051876",5606:"509a74e9334f31b931d4",5613:"e9cdb0b0f074583edebd",5740:"d20dcd4ce4b0111d924f",5752:"46f0510846a309a390ca",5756:"5fbd7d8d8896a224fff3",5804:"85ec73dcba4b922f1948",5841:"4e17665dd9048c300d87",5856:"bca6b469940b7b954123",5879:"eeb068c265bd3a22a8c1",5899:"8d86b0cb0e004ad72040",5902:"18d47ab571b613fbe719",5954:"c80a3b039e510c118399",5977:"057f245d70e57a1bcb46",5992:"8f008eedb11685ee2048",6023:"5d42f0898bf30ae940ea",6027:"e2576c37cf13dc421f69",6033:"a025ee38d402504193df",6052:"47e250d471d0e55fa6be",6070:"178083d8ed7707b45ca2",6122:"0b6941781e35ce0f7274",6129:"6b646971cc15e33a9f33",6154:"d747c7a5252e3b1f466a",6185:"c046c4fc934bc6f54c69",6187:"dbaa88e46487efaad732",6198:"844eedda8f749972f707",6247:"6afe860f491905c72298",6361:"2226c20c38e20713bcb5",6440:"5982c6a8459c1237b298",6451:"66c2a28a851130b87c04",6475:"dc51dcaa4e2f9a90f5bd",6491:"067de1910190da228291",6553:"b6d71a4ab788a09714f3",6554:"fc44227c1756f65b95df",6556:"076e8d2e08ff2a013736",6558:"876f7633c15f1e31078d",6569:"6b04285726b803b82564",6650:"3415531224f8494d79ca",6671:"0320cbd825f9a4222042",6684:"084222c00d263a534952",6707:"f2cfee8a761ae91f7a3e",6713:"f5cc78291b53931b91e8",6742:"1eaaa896eea3f2ffe6a6",6744:"144bad0c2415c345736a",6810:"1f9d6180a96d557838e9",6870:"20f75cc777af13fa249b",6874:"a79cae328e866272754a",6875:"0590857215c547e63b51",6880:"c52466eb1f3c33ae1f5a",6884:"c88a70f68c8ce8c30e9b",6892:"150e7a7bd5df25693da7",6930:"d89fe41c71c9621c41ae",6936:"1188d0a136fffc009643",6956:"02d4f91652a79d2b637e",7005:"2d3e0e4442dbc6ec6def",7029:"aa8ab28e0c1ae3b55ac0",7074:"6f73e41e14817acfaead",7085:"0979a48905742486f222",7087:"bb9a1162384f59e9bc5e",7217:"4c389472b8cdb0c55154",7235:"216a239142dfe1306c6c",7269:"6eb5cc8ddf772c0062e6",7290:"8f74d92ac69714b9fd4e",7301:"67f54efc817b241f8746",7304:"bedaa5e64ed81803829a",7340:"735c1dffc3439bdba3cc",7374:"0d52e1b6d38f2670658c",7380:"b70885deebc6106597ad",7420:"379ef56f6b32494832a6",7444:"59295b99bdff4045a0e7",7499:"505227797bcf2a1d908d",7546:"17f99b130384c1ff2e01",7548:"86524ae8926228898d95",7552:"a6f969851d4278865cc5",7561:"2a8168e109caa87d596f",7568:"2d9a1f23ec6ce90723ac",7715:"3c881b1adc8a5dea9a90",7736:"a83815c028c9c80aa4c9",7745:"f9259dc1d78d762c6ac0",7772:"63b5418a1c3fe0a97a86",7790:"ab6506a3c16f8717fc00",7826:"5396b6e99a0546a25d19",7865:"2fcd7db1e192858a650e",7883:"aa1054834738aef48bda",7885:"c1cf3edce15f09648eb4",7982:"98d1efb6f2439c6344cf",7984:"8cc8d7ffe43f5947b04f",7992:"b01804aa6c47a220a603",8018:"20a698709c3c11ff2c16",8125:"ac69c0fd5867b493f1d2",8197:"f9c80e9fc349db4873e8",8241:"71a51795f715332fb4fe",8278:"266c90d8d56a2da42fcf",8298:"7aa9b61ca9b66f30449f",8305:"c570b90995c65bbb2e14",8307:"f8d2225f333524ce1d88",8344:"b976122bcd4e2170afaf",8377:"92b03de8a7686b164f60",8589:"8b8118ab56cc808b5a71",8595:"63c3a573dfe703056f8f",8613:"784d6c6949284ed6e10b",8628:"42330ad374904de4f78f",8679:"8e310e9cb9d84ac3ca2f",8692:"c7699edd14497d174445",8714:"765ecf6dff9a547d8e19",8740:"efc53007cd2e4991d7d4",8798:"7711ae5612f685078fc8",8826:"daae21cf77864f3293ef",8846:"a2196a49f89d57a0a1c7",8856:"a504a5e06cb89a620799",8879:"1819c45655c836b9a8d7",8885:"72399062767abdfb0bee",9013:"3dd49f910834a2fb2142",9038:"c249a91dd23104723fab",9074:"cb6fb04fe5c8d90d4196",9078:"4996869b9cbd8c8ddcfa",9110:"673c61c964524150d9bc",9117:"7851aef196eea5d6c94e",9126:"40748b846cf6923478c9",9134:"2a3fcc034cfbf540c5cc",9159:"4d7063c4152953afb859",9177:"849f446c718e892f39ce",9187:"1cc744ab5eee5ee3bed8",9192:"cc817c9d3f8e8f8c56e4",9235:"98760040f0c9d47c718d",9239:"f67b37253d6d05d1e339",9275:"26261b21d1edf476ea49",9279:"dba5f44c4e4a3f075df2",9301:"546f5f57c9249627bb89",9304:"bf4d913e523eae2fda28",9315:"caaf6306cc73f618d27d",9321:"ffde86162265b33e97e0",9358:"ace2e0a9d9013edd8624",9367:"7f5b887a753bb67c8486",9389:"aea44253c80493ef5755",9407:"1ab59a97ffa49e9e1659",9423:"2a2a4650dd9b953d317c",9447:"474015def9652ddf0640",9480:"5f1cb79aec9c4a9b7ddc",9512:"debe45e792212682b304",9521:"787c1a8bda7d745633f2",9554:"8ca2bb3c0551bb1898b6",9567:"3b0808ee3c4facfaca3d",9575:"ccd19c490ca24db6ffb1",9588:"58032aab28a20a327f6c",9616:"b0a612d8ffa5c46d7db4",9657:"afc3b2af20e9d1dfd260",9672:"3b552afffaa78bf4fe18",9692:"4bb1bb3ffb1b71bc43c8",9695:"5aeb5e18514644fe2cf9",9696:"f3fdf75843ade0ca591e",9716:"d4eb24c82087a74ae670",9722:"cd9aa950cb74b09008fe",9754:"2cb209bc51a19487692d",9789:"6de64abd9e2b51fa2872",9800:"712559f121f76c4e71ab",9820:"4024becaf4012c1f15a7",9821:"1c378d489c5402888f76",9838:"792d2b62356a1d953c88",9855:"4419732baf3459a80e6d",9894:"7572c2bc5062e66f6330",9917:"dd08dff19a2ffd36f284",9933:"257910cca66dc5df465e",9953:"3286cf2afeb7f48564d9",9958:"deb408bee61ca192b2ce"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{var e={76:1},t=t=>{let[n,o,i]=t;for(var s in o)r.o(o,s)&&(r.m[s]=o[s]);for(i&&i(r);n.length;)e[n.pop()]=1;a(t)};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var n=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],a=n.push.bind(n);n.forEach(t),n.push=t})(),r(66358);let n=r(50343);RemoteClient=n})();
package/config.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"./core/has.js";import{deepMerge as e}from"./core/object.js";const t={apiKey:void 0,apiKeys:{scopes:[]},applicationName:``,applicationUrl:globalThis.location?.href,assetsPath:``,fontsUrl:`https://static.arcgis.com/fonts`,geometryServiceUrl:`https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer`,geoRSSServiceUrl:`https://utility.arcgis.com/sharing/rss`,kmlServiceUrl:`https://utility.arcgis.com/sharing/kml`,userPrivilegesApplied:!0,portalUrl:`https://www.arcgis.com`,respectPrefersReducedMotion:!0,routeServiceUrl:`https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World`,workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:[`arcgis.com`,`arcgisonline.com`,`esrikr.com`,`premiumservices.blackbridge.com`,`esripremium.accuweather.com`,`gbm.digitalglobe.com`,`firstlook.digitalglobe.com`,`msi.digitalglobe.com`],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:`high`,proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&(e(t,globalThis.esriConfig,!0),delete t.has),!t.assetsPath&&(t.assetsPath=`https://js.arcgis.com/5.2.0/@arcgis/core/assets`,t.defaultAssetsPath=t.assetsPath);export{t as default};
2
+ import"./core/has.js";import{deepMerge as e}from"./core/object.js";const t={apiKey:void 0,apiKeys:{scopes:[]},applicationName:``,applicationUrl:globalThis.location?.href,assetsPath:``,fontsUrl:`https://static.arcgis.com/fonts`,geometryServiceUrl:`https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer`,geoRSSServiceUrl:`https://utility.arcgis.com/sharing/rss`,kmlServiceUrl:`https://utility.arcgis.com/sharing/kml`,userPrivilegesApplied:!0,portalUrl:`https://www.arcgis.com`,respectPrefersReducedMotion:!0,routeServiceUrl:`https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World`,workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:[`arcgis.com`,`arcgisonline.com`,`esrikr.com`,`premiumservices.blackbridge.com`,`esripremium.accuweather.com`,`gbm.digitalglobe.com`,`firstlook.digitalglobe.com`,`msi.digitalglobe.com`],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:`high`,proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&(e(t,globalThis.esriConfig,!0),delete t.has),!t.assetsPath&&(t.assetsPath=`https://js.arcgis.com/5.2.1/@arcgis/core/assets`,t.defaultAssetsPath=t.assetsPath);export{t as default};
package/kernel.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"./core/has.js";import{addQueryParameter as e}from"./core/urlUtils.js";Symbol.dispose??=Symbol(`Symbol.dispose`),Symbol.asyncDispose??=Symbol(`Symbol.asyncDispose`);const t=`5.2`;let n=`5.2`;n=`5.2.0`;let r;function i(e){r=e}function a(t){let n=r?.findCredential(t);return n?.token?e(t,`token`,n.token):t}globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}});export{a as addTokenParameter,n as fullVersion,r as id,i as setId,t as version};
2
+ import"./core/has.js";import{addQueryParameter as e}from"./core/urlUtils.js";Symbol.dispose??=Symbol(`Symbol.dispose`),Symbol.asyncDispose??=Symbol(`Symbol.asyncDispose`);const t=`5.2`;let n=`5.2`;n=`5.2.1`;let r;function i(e){r=e}function a(t){let n=r?.findCredential(t);return n?.token?e(t,`token`,n.token):t}globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}});export{a as addTokenParameter,n as fullVersion,r as id,i as setId,t as version};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{isArrayLike as e}from"../../../core/arrayUtils.js";import{deg2rad as t}from"../../../core/mathUtils.js";import{clone as n,zeros as r}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import i from"../../../geometry/Point.js";import{rectifyMapPointPanoramic as a,rectifyMapPoint as o}from"./rectifyMapPoint.js";import{getWebMercatorScalingFactor as s,hasAngles as c,convertPixelToHeadingPitch as l,adjustHorizonAngles as u,reducerFn as d,scaleAndAddWithFactor as f,validatePixelsToTransform as p,validateRotationMatrix as m,computeFarplaneVertices as h,computeHFOVAndVFOV as g,vecToPoint as _,or as v,isUpdateElevationWithElevationSource as y,computeNewReferenceCoordinates as b,projectiveTransform as x}from"./utils.js";import{worldToImage as S}from"./worldToImage.js";import{viewingLimit as C}from"../../../widgets/OrientedImageryViewer/constants.js";async function w(e,t,n){let{verticalFieldOfView:r,imageBoundaries:i,scalingFactor:a,farPlaneVertices:o,cameraLocation:s,pixelsToTransform:c,vecToPoint:l,pixelDepths:u}=N(e,t),d=[];return await T(c,o,i,l,t,d,s,a,r,n,u),Array.isArray(e)?d:d[0]}async function T(e,t,n,r,a,s,c,l,u,d,f){let p=a.averageElevation,m=e.length;for(let h=0;h<m;h+=1){let m=e.at(h),g=k(t,n,m,r,a),_=f?.at(h);if(typeof _==`number`){let e=E(g,c,l),t=_*l,n=[c[0]+e[0]*t,c[1]+e[1]*t,c[2]+e[2]*_];s.push(new i(n,a.cameraLocation.spatialReference));continue}d&&v(`elevationSample`in d,y(d))&&(p=(await o(r(g),{x:m[0],y:m[1]},{...a,...d,farPlaneVertices:t.map(r)}))[2]),s.push(r(D(g,c,l,p,a.cameraPitch,u)))}}function E(e,t,n){let i=e[0]-t[0],a=e[1]-t[1],o=e[2]-t[2],s=Math.hypot(i,a)/n,c=Math.hypot(o,s)*n,l=r();return l[0]=i/c,l[1]=a/c,l[2]=o/c,l[2]*=n,l}function D(e,t,r,i,a,o){let s=n(e),c=E(e,t,r);if(O(e[2],i,a,o)){let e=Math.abs((t[2]-i)/-c[2])*r;s=f(t,c,e,r)}else s[2]=i;return s}function O(e,t,n,r){return e<t||n+r/2<C}function k(e,t,n,r,i){let a=null,o=0,s,c=e,l=t;for(;o<=9;){let e=j(n,l,c,i);if(s=e.error,a=e.transformedPoint,v(s<=1,o===9))break;c=b(c,s,n,t),l=A(c,r,i),o++}return a}function A(e,t,n){return S(e.map(t),n).map(({x:e,y:t})=>[e,t,1])}function j(e,t,n,r){let{cameraLocation:a}=r,o=x(e,t,n),{x:s,y:c}=S(new i(o,a.spatialReference),r);return{transformedPoint:o,error:M(e,[s,c,1])}}function M(e,t){return Math.abs(e[0]-t[0])+Math.abs(e[1]-t[1])}function N(t,n){let r=e(t)||`items`in t?t:[t],{cameraLocation:a,rotationMatrix:o}=n;if(p(r,a),m(o),o?.length!==9)throw Error(`Rotation matrix is not provided or is not a valid 3x3 matrix`);let c=s(a.y,a.spatialReference),l=h({...n,scalingFactor:c}),u=S(l.map(e=>new i(e,a.spatialReference)),n),{vfov:d}=g(n.horizontalFieldOfView,n.verticalFieldOfView,n.cameraRoll);return{cameraLocation:a.toArray(),imageBoundaries:u.map(({x:e,y:t})=>[e,t,1]),verticalFieldOfView:d,farPlaneVertices:l,scalingFactor:c,pixelsToTransform:r.map(e=>[e.x,e.y,1]),vecToPoint:_(a.spatialReference),pixelDepths:r.map(e=>P(e)?e.depth:void 0)}}function P(e){return`depth`in e&&typeof e.depth==`number`}async function F(e,n,r){let{cameraLocation:o,farDistance:f,imageHeight:p,imageWidth:m,verticalFieldOfView:h,horizonPitch:g,horizonRoll:_,horizonYaw:v}=n,y=s(o.y,o.spatialReference),b=f*y,x=[],[S,C,w]=o.toArray(),T=Array.isArray(e)?e:[e];for(let e of T){let s,T,E=P(e),O=E?e.depth*y:b;if(c(e))s=e.heading,T=e.pitch;else{let t=l({x:e.x,y:e.y},m,p),n=u(t.heading,t.pitch,[g,_,v],!0);s=n[0],T=n[1]}let k=Math.sin(t(s))*Math.sin(t(T)),A=Math.cos(t(s))*Math.sin(t(T)),j=-Math.cos(t(T)),M=[S+k*O,C+A*O,w+j*(E?e.depth:f)];if(E){x.push(new i(M,o.spatialReference));continue}let N=n.averageElevation,F;if(r&&T<90){let e=await a(new i(M,o.spatialReference),{heading:s,pitch:T},{...n,...r,farPlaneVertices:d(f,f).map(([e,t])=>new i([o.x+e,o.y+t],o.spatialReference))});F=e,N=e?.[2]??N}let I=(N-w)/(M[2]-w),L=T>=90||!!r&&!F||!Number.isFinite(I)||I<0;x.push(new i(L?[M[0],M[1],N]:D(M,o.toArray(),y,N,T,h),o.spatialReference))}return Array.isArray(e)?x:x[0]}export{w as imageToWorld,F as imageToWorldPanoramic};
2
+ import{isArrayLike as e}from"../../../core/arrayUtils.js";import{deg2rad as t}from"../../../core/mathUtils.js";import{clone as n,zeros as r}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import i from"../../../geometry/Point.js";import{isElevationSource as a}from"../core/ElevationSourceDefinitions.js";import{rectifyMapPointPanoramic as o,rectifyMapPoint as s}from"./rectifyMapPoint.js";import{getWebMercatorScalingFactor as c,hasAngles as l,convertPixelToHeadingPitch as u,adjustHorizonAngles as d,isElevationSampler as f,reducerFn as p,scaleAndAddWithFactor as m,validatePixelsToTransform as h,validateRotationMatrix as g,computeFarplaneVertices as _,computeHFOVAndVFOV as v,vecToPoint as y,or as b,isUpdateElevationWithElevationSource as x,computeNewReferenceCoordinates as S,projectiveTransform as C}from"./utils.js";import{worldToImage as w}from"./worldToImage.js";import{viewingLimit as T}from"../../../widgets/OrientedImageryViewer/constants.js";async function E(e,t,n){let{verticalFieldOfView:r,imageBoundaries:i,scalingFactor:a,farPlaneVertices:o,cameraLocation:s,pixelsToTransform:c,vecToPoint:l,pixelDepths:u}=F(e,t),d=[];return await D(c,o,i,l,t,d,s,a,r,n,u),Array.isArray(e)?d:d[0]}async function D(e,t,n,r,a,o,c,l,u,d,f){let p=a.averageElevation,m=e.length;for(let h=0;h<m;h+=1){let m=e.at(h),g=j(t,n,m,r,a),_=f?.at(h);if(typeof _==`number`){let e=O(g,c,l),t=_*l,n=[c[0]+e[0]*t,c[1]+e[1]*t,c[2]+e[2]*_];o.push(new i(n,a.cameraLocation.spatialReference));continue}d&&b(`elevationSample`in d,x(d))&&(p=(await s(r(g),{x:m[0],y:m[1]},{...a,...d,farPlaneVertices:t.map(r)}))[2]),o.push(r(k(g,c,l,p,a.cameraPitch,u)))}}function O(e,t,n){let i=e[0]-t[0],a=e[1]-t[1],o=e[2]-t[2],s=Math.hypot(i,a)/n,c=Math.hypot(o,s)*n,l=r();return l[0]=i/c,l[1]=a/c,l[2]=o/c,l[2]*=n,l}function k(e,t,r,i,a,o){let s=n(e),c=O(e,t,r);if(A(e[2],i,a,o)){let e=Math.abs((t[2]-i)/-c[2])*r;s=m(t,c,e,r)}else s[2]=i;return s}function A(e,t,n,r){return e<t||n+r/2<T}function j(e,t,n,r,i){let a=null,o=0,s,c=e,l=t;for(;o<=9;){let e=N(n,l,c,i);if(s=e.error,a=e.transformedPoint,b(s<=1,o===9))break;c=S(c,s,n,t),l=M(c,r,i),o++}return a}function M(e,t,n){return w(e.map(t),n).map(({x:e,y:t})=>[e,t,1])}function N(e,t,n,r){let{cameraLocation:a}=r,o=C(e,t,n),{x:s,y:c}=w(new i(o,a.spatialReference),r);return{transformedPoint:o,error:P(e,[s,c,1])}}function P(e,t){return Math.abs(e[0]-t[0])+Math.abs(e[1]-t[1])}function F(t,n){let r=e(t)||`items`in t?t:[t],{cameraLocation:a,rotationMatrix:o}=n;if(h(r,a),g(o),o?.length!==9)throw Error(`Rotation matrix is not provided or is not a valid 3x3 matrix`);let s=c(a.y,a.spatialReference),l=_({...n,scalingFactor:s}),u=w(l.map(e=>new i(e,a.spatialReference)),n),{vfov:d}=v(n.horizontalFieldOfView,n.verticalFieldOfView,n.cameraRoll);return{cameraLocation:a.toArray(),imageBoundaries:u.map(({x:e,y:t})=>[e,t,1]),verticalFieldOfView:d,farPlaneVertices:l,scalingFactor:s,pixelsToTransform:r.map(e=>[e.x,e.y,1]),vecToPoint:y(a.spatialReference),pixelDepths:r.map(e=>I(e)?e.depth:void 0)}}function I(e){return`depth`in e&&typeof e.depth==`number`}async function L(e,n,r){let{cameraLocation:s,farDistance:m,imageHeight:h,imageWidth:g,verticalFieldOfView:_,horizonPitch:v,horizonRoll:y,horizonYaw:b}=n,x=c(s.y,s.spatialReference),S=m*x,C=[],[w,T,E]=s.toArray(),D=Array.isArray(e)?e:[e];for(let e of D){let c,D,O=I(e),A=O?e.depth*x:S;if(l(e))c=e.heading,D=e.pitch;else{let t=u({x:e.x,y:e.y},g,h),n=d(t.heading,t.pitch,[v,y,b],!0);c=n[0],D=n[1]}let j=Math.sin(t(c))*Math.sin(t(D)),M=Math.cos(t(c))*Math.sin(t(D)),N=-Math.cos(t(D)),P=[w+j*A,T+M*A,E+N*(O?e.depth:m)];if(O){C.push(new i(P,s.spatialReference));continue}let F=n.averageElevation;r&&(a(r)||f(r.elevationSample))&&(F=(await o(new i(P,s.spatialReference),{heading:c,pitch:D},{...n,...r,farPlaneVertices:p(m,m).map(([e,t])=>new i([s.x+e,s.y+t],s.spatialReference))}))[2]),C.push(new i(k(P,s.toArray(),x,F,D,_),s.spatialReference))}return Array.isArray(e)?C:C[0]}export{E as imageToWorld,L as imageToWorldPanoramic};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"../../../core/RandomLCG.js";import"../../../core/Logger.js";import"../../../core/has.js";import{create as e}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import t from"../../../geometry/Point.js";import n from"../../../geometry/Polygon.js";import{fromArray as r,intersectRay as i,fromPoints as a,intersectLine as o}from"../../../geometry/support/plane.js";import{fromPoints as s}from"../../../geometry/support/ray.js";import c from"./updateElevation.js";import{pointToArray as l,or as u}from"./utils.js";import{worldToImagePanoramic as d,worldToImage as f}from"./worldToImage.js";import{normalizeDegrees as p}from"../../../widgets/OrientedImageryViewer/components/imageNavigationUtils.js";async function m(n,r,i,s=g){let{cameraLocation:c,farPlaneVertices:d}=i,f=l(c),p=[];await v(d,i,p);let m=a(p[0],p[1],p[2]),h=n.clone();for(let d=0;d<s;d++){let s=e();if(!o(m,f,l(n),s))break;let d=0,g=null;if({error:d,imagePoint:g,pointWithZ:h}=await y(r,new t(s,c.spatialReference),i),d<=1)break;let[v,b]=_(c.spatialReference,p);if(u(v<=1,b<=1))break;p.splice(0,p.length,...await S(v,b,new t(s,c.spatialReference),i)),m=a(p[0],p[1],p[2])}return l(h)}async function h(n,a,o,c=g){let{cameraLocation:d,farPlaneVertices:f}=o,p=l(d),m=s(p,l(n)),h=[];await v(f,o,h);let y=[0,0,0,0],x=r(y,h.flat(),!1),C=n.clone();for(let n=0;n<c;n++){let n=e();if(!i(y,m,n)||!x)return;let s=0,c;if({error:s,imagePoint:c,pointWithZ:C}=await b(a,new t(n,d.spatialReference),o),s<=1)return l(C);let[f,p]=_(d.spatialReference,h);if(u(f<=1,p<=1))break;h.splice(0,h.length,...await S(f,p,new t(n,d.spatialReference),o)),x=r(y,h.flat(),!1)}}const g=10;function _(e,t){let r=new n({spatialReference:e});return r.addRing(t),[r.extent?.width?r.extent.width/10:1,r.extent?.height?r.extent.height/10:1]}async function v(e,t,n){let r=e.map(e=>e.clone()),i=await c(r,t);n.push(...i.map(l))}async function y(e,t,n){let r=await c(t,n),i=f(r,n);return{error:x(i,e),imagePoint:i,pointWithZ:r}}async function b(e,t,n){let r=await c(t,n),i=d(r,n),a=p(i.heading+n.cameraHeading);return{error:Math.abs(a-e.heading)+Math.abs(i.pitch-e.pitch),imagePoint:i,pointWithZ:r}}const x=(e,t)=>Math.abs(e.x-t.x)+Math.abs(e.y-t.y);async function S(e,n,r,i){let a=[[-e,-n],[e,-n],[e,n],[-e,n]].map(([e,n])=>new t([r.x+e,r.y+n],r.spatialReference));return c(a,i).then(e=>e.map(e=>e.toArray()))}export{m as rectifyMapPoint,h as rectifyMapPointPanoramic};
2
+ import"../../../core/RandomLCG.js";import"../../../core/Logger.js";import"../../../core/has.js";import{create as e}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import t from"../../../geometry/Point.js";import n from"../../../geometry/Polygon.js";import{fromArray as r,intersectLine as i,fromPoints as a}from"../../../geometry/support/plane.js";import o from"./updateElevation.js";import{pointToArray as s,or as c}from"./utils.js";import{worldToImagePanoramic as l,worldToImage as u}from"./worldToImage.js";import{normalizeDegrees as d}from"../../../widgets/OrientedImageryViewer/components/imageNavigationUtils.js";async function f(n,r,o,l=m){let{cameraLocation:u,farPlaneVertices:d}=o,f=s(u),p=[];await g(d,o,p);let v=a(p[0],p[1],p[2]),y=n.clone();for(let d=0;d<l;d++){let l=e();if(!i(v,f,s(n),l))break;let d=0,m=null;if({error:d,imagePoint:m,pointWithZ:y}=await _(r,new t(l,u.spatialReference),o),d<=1)break;let[g,x]=h(u.spatialReference,p);if(c(g<=1,x<=1))break;p.splice(0,p.length,...await b(g,x,new t(l,u.spatialReference),o)),v=a(p[0],p[1],p[2])}return s(y)}async function p(n,a,o,l=m){let{cameraLocation:u,farPlaneVertices:d}=o,f=s(u),p=[];await g(d,o,p);let _=[0,0,0,0],y=r(_,p.flat(),!1),x=n.clone();for(let d=0;d<l;d++){let l=e();if(!i(_,f,s(n),l)||!y)break;let d=0,m;if({error:d,imagePoint:m,pointWithZ:x}=await v(a,new t(l,u.spatialReference),o),d<=1)break;let[g,S]=h(u.spatialReference,p);if(c(g<=1,S<=1))break;p.splice(0,p.length,...await b(g,S,new t(l,u.spatialReference),o)),y=r(_,p.flat(),!1)}return s(x)}const m=10;function h(e,t){let r=new n({spatialReference:e});return r.addRing(t),[r.extent?.width?r.extent.width/10:1,r.extent?.height?r.extent.height/10:1]}async function g(e,t,n){let r=e.map(e=>e.clone()),i=await o(r,t);n.push(...i.map(s))}async function _(e,t,n){let r=await o(t,n),i=u(r,n);return{error:y(i,e),imagePoint:i,pointWithZ:r}}async function v(e,t,n){let r=await o(t,n),i=l(r,n),a=d(i.heading+n.cameraHeading);return{error:Math.abs(a-e.heading)+Math.abs(i.pitch-e.pitch),imagePoint:i,pointWithZ:r}}const y=(e,t)=>Math.abs(e.x-t.x)+Math.abs(e.y-t.y);async function b(e,n,r,i){let a=[[-e,-n],[e,-n],[e,n],[-e,n]].map(([e,n])=>new t([r.x+e,r.y+n],r.spatialReference));return o(a,i).then(e=>e.map(e=>e.toArray()))}export{f as rectifyMapPoint,p as rectifyMapPointPanoramic};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{rad2deg as e,deg2rad as t}from"../../../core/mathUtils.js";import{create as n}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{create as r,fromValues as i}from"../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{zeros as a,create as o}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{fromArray as s}from"../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{transpose as c}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{invertOrIdentity as l,mul as u}from"../../../core/libs/gl-matrix-2/math/mat4.js";import{scale as d,sub as f,add as p}from"../../../core/libs/gl-matrix-2/math/vec3.js";import{isSerializable as m}from"../../../core/support/jsonUtils.js";import h from"../../../geometry/Point.js";import{projectAsync as g}from"../../../geometry/projectionUtils.js";import{earth as _}from"../../../geometry/support/Ellipsoid.js";import{isWebMercator as v}from"../../../geometry/support/spatialReferenceUtils.js";import{a as y}from"../../../chunks/vec3.js";import{isConstantElevation as b,ConstantElevation as x,isElevationSource as S}from"../core/ElevationSourceDefinitions.js";import{getMetersPerUnitOfSR as C}from"../core/utils.js";import{createRotationMatrix as w,defaultAxisRotationInfo as T,createRotationMatrixFromHPR as E}from"./rotationUtils.js";import{getElevationSampler as ee}from"./updateElevationUtils.js";import{isNumber as D}from"../../../support/guards.js";import{defaultImageSphereSize as O}from"../../../widgets/PanoramicViewer/constants.js";function k(e,t,n){let[i,a,o,s]=t,[c,d,f,p]=n;A(i,a,o,s);let m=A(c,d,f,p),h=j(i,a,o,s),g=j(c,d,f,p),_=l(r(),h),[v,y,b,x]=ne(e,u(r(),_,g));return[v/x,y/x,m?0:b/x]}function A(e,t,n,r){return e[2]===0&&t[2]===0&&n[2]===0&&r[2]===0&&(e[2]=t[2]=n[2]=r[2]=1,!0)}function te(e){return e===0?1:e}function ne(e,t){let[n,r,i]=e,a=[0,0,0,0];return a[0]=n*t[0]+r*t[1]+i*t[2]+t[3],a[1]=n*t[4]+r*t[5]+i*t[6]+t[7],a[2]=n*t[8]+r*t[9]+i*t[10]+t[11],a[3]=te(n*t[12]+r*t[13]+i*t[14]+t[15]),a}function j(e,t,n,a){let o=F(s([...a,1]),l(Array(16),i(e[0],t[0],n[0],0,e[1],t[1],n[1],0,e[2],t[2],n[2],0,1,1,1,1))),c=o[0],u=o[1],d=o[2],f=r();return f[0]=c*e[0],f[1]=u*t[0],f[2]=d*n[0],f[3]=0,f[4]=c*e[1],f[5]=u*t[1],f[6]=d*n[1],f[7]=0,f[8]=c*e[2],f[9]=u*t[2],f[10]=d*n[2],f[11]=0,f[12]=c,f[13]=u,f[14]=d,f[15]=1,f}function M(e,t,n,r,i=a()){return i[0]=e[0]+t[0]*n,i[1]=e[1]+t[1]*n,i[2]=e[2]+t[2]*(n/r),i}function N(e,t,n){let r=a();return r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*(t/n),r}function P(e,t){let[n,r,i]=e,o=a();return o[0]=n*t[0]+r*t[3]+i*t[6],o[1]=n*t[1]+r*t[4]+i*t[7],o[2]=n*t[2]+r*t[5]+i*t[8],o}function F(e,t){let[n,r,i,a]=e,o=[,,,,];return o[0]=n*t[0]+r*t[1]+i*t[2]+a*t[3],o[1]=n*t[4]+r*t[5]+i*t[6]+a*t[7],o[2]=n*t[8]+r*t[9]+i*t[10]+a*t[11],o[3]=n*t[12]+r*t[13]+i*t[14]+a*t[15],o}function I(e,t=!0){return w(e,T.OPK,t)}function re(e,n,r){let i=Math.sin(t(r)),a=Math.cos(t(r)),o=[[e,0],[e,n],[0,n]];o.forEach((e,t)=>{o[t]=[a*e[0]-i*e[1],i*e[0]+a*e[1]]});let s={xmin:Math.min(0,o[0][0],o[1][0],o[2][0]),xmax:Math.max(0,o[0][0],o[1][0],o[2][0]),ymin:Math.min(0,o[0][1],o[1][1],o[2][1]),ymax:Math.max(0,o[0][1],o[1][1],o[2][1])};return{hfov:Math.abs(s.xmax-s.xmin),vfov:Math.abs(s.ymax-s.ymin)}}function ie(n,r){let i=Number(n[0]),a=Number(n[1]),o=Number(n[2]),[s,c,l,u]=r,d=t(s),f=t(c),p=l/Math.sqrt(1-u*Math.sin(d)**2),m=i/p,h=a/p,g=o/p,_=Math.cos(d)-Math.sin(d)*h+Math.cos(d)*g,v=Math.sin(d)+Math.cos(d)*h+Math.sin(d)*g,y=Math.sqrt(_**2+m**2),b=u*p*Math.sin(d),x=(e,t=5)=>{if(t===0)return e;let n=x(e,t-1);return Math.atan(v/y-(b-u*(l/Math.sqrt(1-u*Math.sin(n)**2))*Math.sin(n))/(p*y))},S=x(d),C=Math.atan(i/(p*_))+f,w=e(S);return[e(C),w,i/(Math.cos(S)*Math.sin(C-f))-l/Math.sqrt(1-u*Math.sin(S)**2)]}function L(e,t,n){let r=360/t,i=180/n,a=e.x-t/2,o=e.y-n/2;return{heading:a*r,pitch:90-o*i}}function ae(e,t,n,r,i=O/2){let{heading:a,pitch:o}=z(e,i),s=r?$(a,o,r):[a,o];return{heading:a,pitch:o,...R(s[0],s[1],t,n)}}function R(e,t,n,r){let i=360/n,a=180/r,o=e%360,s=o<-180?o+360:o>180?o-360:o;return{x:n/2+s/i,y:r-t/a}}function z(t,n){let r=e(Math.acos(-t.z/n));return{heading:e(Math.atan2(t.x,t.y)),pitch:r}}function B(e,n){return[Math.sin(t(e))*Math.sin(t(n)),Math.cos(t(e))*Math.sin(t(n)),Math.cos(t(180-n))]}function V(e,t,n,r=O/2){let i=n?$(e,t,n,!0):[e,t];return d(o(),B(i[0],i[1]),r)}function oe(e,t,n,r,i=O/2){let{heading:a,pitch:o}=L(e,t,n);return V(a,o,r,i)}async function se(t,n,r){let i=await g(n,t.spatialReference,r),a=e(Math.atan2(i.y-t.y,i.x-t.x));return a=a>=0&&a<=90?90-a:a>90&&a<=180?360-a+90:90+Math.abs(a),a}function ce(e,t,n){let r=Math.cos(n),i=Math.sin(n),a=[1,0,0,1,0,0],o=a[0]*r+a[2]*i,s=a[1]*r+a[3]*i,c=-a[0]*i+a[2]*r,l=-a[1]*i+a[3]*r;return a[0]=o,a[1]=s,a[2]=c,a[3]=l,[e*a[0]+t*a[2]+a[4],e*a[1]+t*a[3]+a[5]]}const le=e=>e.toArray(),H=(...e)=>e.some(e=>e);function ue(e,t){if(H(e.length===0,e.some(({x:e,y:t})=>H(e==null,t==null)),!t.hasZ))throw Error(`Input pixels must have x, y and camera location must have z value`)}function de(e,t){if(e.some(e=>e.z==null)||t.z==null)throw Error(`Input points and camera location must have z value`)}function fe(e){if(e?.length!==9)throw Error(`Rotation matrix is not provided or is not a valid 3x3 matrix`)}function pe(e,t){return v(t)?1/Math.cos(Math.PI/2-2*Math.atan(Math.exp(-1*e/_.radius))):1}const me=e=>t=>new h({x:t[0],y:t[1],z:t[2],spatialReference:e});function he(e,t,n,r){return[[-t,-t],[+t,-t],[+t,+t],[-t,+t]].map(([t,i])=>k(y(a(),n,[t,i,0]),r,e))}function U({a0:e,a1:t,a2:n,b0:r,b1:i,b2:a},o,s,c){let l=[e??o/2-.5,t,n??0,r??s/2-.5,i??0,a].map(ge);return c!=null&&W(l)?{affines:l,focalLength:c}:{affines:[o/2-.5,1,0,s/2-.5,0,-1]}}function ge(e,t){if(e==null)return null;let n=parseFloat(`${e}`);return isNaN(n)?null:n}function W(e){return e[1]!=null&&e[5]!=null}function _e(e,t,n){let{cameraHeight:r,cameraPitch:i,cameraRoll:a,elevation:o,farDistance:s,horizontalFieldOfView:c,location:l,verticalFieldOfView:u}=Z(e,e.location.spatialReference),d=o??(l.z??0)-r;return{...G(e,t,n),averageElevation:d,cameraPitch:i,cameraRoll:a??0,farDistance:s,horizontalFieldOfView:c,verticalFieldOfView:u}}function ve(e,t,n,r){return Y(r)?I([r.omega,r.phi,r.kappa]):X(r)?E([r.heading,r.pitch,r.roll]):E([e,t,n??0])}function ye(e,t,n){let{cameraHeading:r,cameraHeight:i,farDistance:a,horizontalFieldOfView:o,location:s,verticalFieldOfView:c}=Z(e,e.location.spatialReference),l=(s.z??0)-i,u=-r,d=0,f=0;if(e?.matrix){let{matrix:t}=e;[d,f,u]=Q(t)}return{averageElevation:l,cameraLocation:s,cameraHeading:r,farDistance:a,horizontalFieldOfView:o,imageHeight:n,imageWidth:t,verticalFieldOfView:c,horizonYaw:u,horizonPitch:d,horizonRoll:f}}function G(e,t,n){let{a0:r,a1:i,a2:a,b0:o,b1:s,b2:c,cameraHeading:l,cameraOrientation:u,cameraPitch:d,cameraRoll:f,focalLength:p,horizontalFieldOfView:m,location:h,matrix:g,principalX:_,principalY:v,radial:y,tangential:b,verticalFieldOfView:x}=e,{affines:S,focalLength:C}=U({a0:r,a1:i,a2:a,b0:o,b1:s,b2:c},t,n,p),w=g??ve(l,d,f,u),T=_!=null&&v!=null?[_,v]:void 0;return{affineTransformations:u?.affineTransformations??S,cameraLocation:h.clone(),focalLength:u?.focalLength??C,horizontalFieldOfView:m,imageHeight:n,imageWidth:t,principalOffsetPoint:u?.principalOffsetPoint??T,radialDistortionCoefficients:u?.radialDistortionCoefficients??y,rotationMatrix:w,tangentialDistortionCoefficients:u?.tangentialDistortionCoefficients??b,verticalFieldOfView:x}}const K=e=>e!=null&&`elevationSample`in e&&e.elevationSample!=null,q=e=>S(e?.elevationSource)&&e?.extent!=null,J=e=>b(e?.elevationSource),be=async(e,t,n,r,i)=>{let a=C(e),o=t-n/a;return K(r)?r:J(r)?(r.elevationSource=new x({constantElevation:r.elevationSource.constantElevation/a}),r):q(r)?{elevationSample:await ee({...m(r.elevationSource)?r.elevationSource.toJSON():r.elevationSource,extent:r.extent},i),elevationSource:new x({constantElevation:o})}:{averageGroundElevation:o,spatialReference:e}},xe=e=>D(e?.heading)&&D(e?.pitch),Se=(e,t)=>[[-e,-t],[e,-t],[e,t],[-e,t]];function Ce(e){let{cameraLocation:r,farDistance:i,horizontalFieldOfView:o,rotationMatrix:s,scalingFactor:l,verticalFieldOfView:u}=e,d=n();c(d,s);let m=2*Math.tan(t(u)/2)*i*l,h=2*Math.tan(t(o)/2)*i*l,g=P([0,0,-1],d),_=M([r.x,r.y,r.z],g,e.farDistance*l,l),v=P([0,1,0],d),y=P([1,0,0],d),b=N(v,m/2,l),x=N(y,h/2,l),S=f(a(),b,x),C=p(a(),b,x);return[p(a(),_,S),p(a(),_,C),f(a(),_,S),f(a(),_,C)]}const Y=e=>e?.type===2,X=e=>e?.type===1;function Z(e,t,n=!0){let r=C(t),i=n?e.clone():e;return i.cameraHeight/=r,i.farDistance/=r,i.nearDistance/=r,b(i.elevationSource)&&(i.elevationSource.constantElevation/=r),i}function Q(t){return[e(Math.asin(-t[6])),e(Math.atan(t[7]/t[8])),e(Math.atan2(t[3],t[0]))]}function $(e,t,n,r=!1){return we(B(e,t),n,r)}function we(t,r,i=!1){let a=i?c(n(),w(r,T.YPR)):w(r,T.YPR),o=t[0]*a[0]+t[1]*a[1]+t[2]*a[2],s=t[0]*a[3]+t[1]*a[4]+t[2]*a[5],l=t[0]*a[6]+t[1]*a[7]+t[2]*a[8],u=e(Math.acos(-l));return[e(Math.atan2(o,s)),u]}export{$ as adjustHorizonAngles,we as adjustHorizonAnglesVec3,Ce as computeFarplaneVertices,re as computeHFOVAndVFOV,he as computeNewReferenceCoordinates,V as convertHeadingPitchToSphereVertex,R as convertOrientationToPixelLocation,oe as convertPixelLocationToSphereVertex,L as convertPixelToHeadingPitch,z as convertSphereVertexToOrientation,ae as convertSphereVertexToPixelLocation,Z as convertToSRUnits,B as createMeshSpaceVector,w as createRotationMatrix,E as createRotationMatrixFromHPR,I as createRotationMatrixFromOPK,Q as extractHorizonAngles,U as getAffinesAndFocalLength,ye as getImageToWorldPanoramicProperties,_e as getImageToWorldProperties,se as getInitialAngle,be as getUpdateElevationProps,pe as getWebMercatorScalingFactor,G as getWorldToImageProperties,xe as hasAngles,X as hasHeadingPitchRoll,Y as hasOmegaPhiKappa,K as isUpdateElevationWithElevationSampler,q as isUpdateElevationWithElevationSource,J as isUpdateUsingConstantElevation,W as isValidAffines,j as linearEquationSolve,ie as ltpToGeographic,H as or,le as pointToArray,k as projectiveTransform,Se as reducerFn,ce as rotatePixel,M as scaleAndAddWithFactor,N as scaleWithFactor,P as transformMat3,F as transformMat4,ue as validatePixelsToTransform,de as validatePointsToTransform,fe as validateRotationMatrix,me as vecToPoint};
2
+ import{rad2deg as e,deg2rad as t}from"../../../core/mathUtils.js";import{create as n}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{create as r,fromValues as i}from"../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{zeros as a,create as o}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{fromArray as s}from"../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{transpose as c}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{invertOrIdentity as l,mul as u}from"../../../core/libs/gl-matrix-2/math/mat4.js";import{scale as d,sub as f,add as p}from"../../../core/libs/gl-matrix-2/math/vec3.js";import{isSerializable as m}from"../../../core/support/jsonUtils.js";import h from"../../../geometry/Point.js";import{projectAsync as g}from"../../../geometry/projectionUtils.js";import{earth as _}from"../../../geometry/support/Ellipsoid.js";import{isWebMercator as v}from"../../../geometry/support/spatialReferenceUtils.js";import{a as y}from"../../../chunks/vec3.js";import{isConstantElevation as b,ConstantElevation as x,isElevationSource as S}from"../core/ElevationSourceDefinitions.js";import{getMetersPerUnitOfSR as C}from"../core/utils.js";import{createRotationMatrix as w,defaultAxisRotationInfo as T,createRotationMatrixFromHPR as E}from"./rotationUtils.js";import{getElevationSampler as ee}from"./updateElevationUtils.js";import{isNumber as D}from"../../../support/guards.js";import{defaultImageSphereSize as O}from"../../../widgets/PanoramicViewer/constants.js";function k(e,t,n){let[i,a,o,s]=t,[c,d,f,p]=n;A(i,a,o,s);let m=A(c,d,f,p),h=j(i,a,o,s),g=j(c,d,f,p),_=l(r(),h),[v,y,b,x]=ne(e,u(r(),_,g));return[v/x,y/x,m?0:b/x]}function A(e,t,n,r){return e[2]===0&&t[2]===0&&n[2]===0&&r[2]===0&&(e[2]=t[2]=n[2]=r[2]=1,!0)}function te(e){return e===0?1:e}function ne(e,t){let[n,r,i]=e,a=[0,0,0,0];return a[0]=n*t[0]+r*t[1]+i*t[2]+t[3],a[1]=n*t[4]+r*t[5]+i*t[6]+t[7],a[2]=n*t[8]+r*t[9]+i*t[10]+t[11],a[3]=te(n*t[12]+r*t[13]+i*t[14]+t[15]),a}function j(e,t,n,a){let o=F(s([...a,1]),l(Array(16),i(e[0],t[0],n[0],0,e[1],t[1],n[1],0,e[2],t[2],n[2],0,1,1,1,1))),c=o[0],u=o[1],d=o[2],f=r();return f[0]=c*e[0],f[1]=u*t[0],f[2]=d*n[0],f[3]=0,f[4]=c*e[1],f[5]=u*t[1],f[6]=d*n[1],f[7]=0,f[8]=c*e[2],f[9]=u*t[2],f[10]=d*n[2],f[11]=0,f[12]=c,f[13]=u,f[14]=d,f[15]=1,f}function M(e,t,n,r,i=a()){return i[0]=e[0]+t[0]*n,i[1]=e[1]+t[1]*n,i[2]=e[2]+t[2]*(n/r),i}function N(e,t,n){let r=a();return r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*(t/n),r}function P(e,t){let[n,r,i]=e,o=a();return o[0]=n*t[0]+r*t[3]+i*t[6],o[1]=n*t[1]+r*t[4]+i*t[7],o[2]=n*t[2]+r*t[5]+i*t[8],o}function F(e,t){let[n,r,i,a]=e,o=[,,,,];return o[0]=n*t[0]+r*t[1]+i*t[2]+a*t[3],o[1]=n*t[4]+r*t[5]+i*t[6]+a*t[7],o[2]=n*t[8]+r*t[9]+i*t[10]+a*t[11],o[3]=n*t[12]+r*t[13]+i*t[14]+a*t[15],o}function I(e,t=!0){return w(e,T.OPK,t)}function re(e,n,r){let i=Math.sin(t(r)),a=Math.cos(t(r)),o=[[e,0],[e,n],[0,n]];o.forEach((e,t)=>{o[t]=[a*e[0]-i*e[1],i*e[0]+a*e[1]]});let s={xmin:Math.min(0,o[0][0],o[1][0],o[2][0]),xmax:Math.max(0,o[0][0],o[1][0],o[2][0]),ymin:Math.min(0,o[0][1],o[1][1],o[2][1]),ymax:Math.max(0,o[0][1],o[1][1],o[2][1])};return{hfov:Math.abs(s.xmax-s.xmin),vfov:Math.abs(s.ymax-s.ymin)}}function ie(n,r){let i=Number(n[0]),a=Number(n[1]),o=Number(n[2]),[s,c,l,u]=r,d=t(s),f=t(c),p=l/Math.sqrt(1-u*Math.sin(d)**2),m=i/p,h=a/p,g=o/p,_=Math.cos(d)-Math.sin(d)*h+Math.cos(d)*g,v=Math.sin(d)+Math.cos(d)*h+Math.sin(d)*g,y=Math.sqrt(_**2+m**2),b=u*p*Math.sin(d),x=(e,t=5)=>{if(t===0)return e;let n=x(e,t-1);return Math.atan(v/y-(b-u*(l/Math.sqrt(1-u*Math.sin(n)**2))*Math.sin(n))/(p*y))},S=x(d),C=Math.atan(i/(p*_))+f,w=e(S);return[e(C),w,i/(Math.cos(S)*Math.sin(C-f))-l/Math.sqrt(1-u*Math.sin(S)**2)]}function L(e,t,n){let r=360/t,i=180/n,a=e.x-t/2,o=e.y-n/2;return{heading:a*r,pitch:90-o*i}}function ae(e,t,n,r,i=O/2){let{heading:a,pitch:o}=z(e,i),s=r?$(a,o,r):[a,o];return{heading:a,pitch:o,...R(s[0],s[1],t,n)}}function R(e,t,n,r){let i=360/n,a=180/r,o=e%360,s=o<-180?o+360:o>180?o-360:o;return{x:n/2+s/i,y:r-t/a}}function z(t,n){let r=e(Math.acos(-t.z/n));return{heading:e(Math.atan2(t.x,t.y)),pitch:r}}function B(e,n){return[Math.sin(t(e))*Math.sin(t(n)),Math.cos(t(e))*Math.sin(t(n)),Math.cos(t(180-n))]}function V(e,t,n,r=O/2){let i=n?$(e,t,n,!0):[e,t];return d(o(),B(i[0],i[1]),r)}function oe(e,t,n,r,i=O/2){let{heading:a,pitch:o}=L(e,t,n);return V(a,o,r,i)}async function se(t,n,r){let i=await g(n,t.spatialReference,r),a=e(Math.atan2(i.y-t.y,i.x-t.x));return a=a>=0&&a<=90?90-a:a>90&&a<=180?360-a+90:90+Math.abs(a),a}function ce(e,t,n){let r=Math.cos(n),i=Math.sin(n),a=[1,0,0,1,0,0],o=a[0]*r+a[2]*i,s=a[1]*r+a[3]*i,c=-a[0]*i+a[2]*r,l=-a[1]*i+a[3]*r;return a[0]=o,a[1]=s,a[2]=c,a[3]=l,[e*a[0]+t*a[2]+a[4],e*a[1]+t*a[3]+a[5]]}const le=e=>e.toArray(),H=(...e)=>e.some(e=>e);function ue(e,t){if(H(e.length===0,e.some(({x:e,y:t})=>H(e==null,t==null)),!t.hasZ))throw Error(`Input pixels must have x, y and camera location must have z value`)}function de(e,t){if(e.some(e=>e.z==null)||t.z==null)throw Error(`Input points and camera location must have z value`)}function fe(e){if(e?.length!==9)throw Error(`Rotation matrix is not provided or is not a valid 3x3 matrix`)}function pe(e,t){return v(t)?1/Math.cos(Math.PI/2-2*Math.atan(Math.exp(-1*e/_.radius))):1}const me=e=>t=>new h({x:t[0],y:t[1],z:t[2],spatialReference:e}),he=e=>e!=null&&`queryExtent`in e;function ge(e,t,n,r){return[[-t,-t],[+t,-t],[+t,+t],[-t,+t]].map(([t,i])=>k(y(a(),n,[t,i,0]),r,e))}function U({a0:e,a1:t,a2:n,b0:r,b1:i,b2:a},o,s,c){let l=[e??o/2-.5,t,n??0,r??s/2-.5,i??0,a].map(_e);return c!=null&&W(l)?{affines:l,focalLength:c}:{affines:[o/2-.5,1,0,s/2-.5,0,-1]}}function _e(e,t){if(e==null)return null;let n=parseFloat(`${e}`);return isNaN(n)?null:n}function W(e){return e[1]!=null&&e[5]!=null}function ve(e,t,n){let{cameraHeight:r,cameraPitch:i,cameraRoll:a,elevation:o,farDistance:s,horizontalFieldOfView:c,location:l,verticalFieldOfView:u}=Z(e,e.location.spatialReference),d=o??(l.z??0)-r;return{...G(e,t,n),averageElevation:d,cameraPitch:i,cameraRoll:a??0,farDistance:s,horizontalFieldOfView:c,verticalFieldOfView:u}}function ye(e,t,n,r){return Y(r)?I([r.omega,r.phi,r.kappa]):X(r)?E([r.heading,r.pitch,r.roll]):E([e,t,n??0])}function be(e,t,n){let{cameraHeading:r,cameraHeight:i,farDistance:a,horizontalFieldOfView:o,location:s,verticalFieldOfView:c}=Z(e,e.location.spatialReference),l=(s.z??0)-i,u=-r,d=0,f=0;if(e?.matrix){let{matrix:t}=e;[d,f,u]=Q(t)}return{averageElevation:l,cameraLocation:s,cameraHeading:r,farDistance:a,horizontalFieldOfView:o,imageHeight:n,imageWidth:t,verticalFieldOfView:c,horizonYaw:u,horizonPitch:d,horizonRoll:f}}function G(e,t,n){let{a0:r,a1:i,a2:a,b0:o,b1:s,b2:c,cameraHeading:l,cameraOrientation:u,cameraPitch:d,cameraRoll:f,focalLength:p,horizontalFieldOfView:m,location:h,matrix:g,principalX:_,principalY:v,radial:y,tangential:b,verticalFieldOfView:x}=e,{affines:S,focalLength:C}=U({a0:r,a1:i,a2:a,b0:o,b1:s,b2:c},t,n,p),w=g??ye(l,d,f,u),T=_!=null&&v!=null?[_,v]:void 0;return{affineTransformations:u?.affineTransformations??S,cameraLocation:h.clone(),focalLength:u?.focalLength??C,horizontalFieldOfView:m,imageHeight:n,imageWidth:t,principalOffsetPoint:u?.principalOffsetPoint??T,radialDistortionCoefficients:u?.radialDistortionCoefficients??y,rotationMatrix:w,tangentialDistortionCoefficients:u?.tangentialDistortionCoefficients??b,verticalFieldOfView:x}}const K=e=>e!=null&&`elevationSample`in e&&e.elevationSample!=null,q=e=>S(e?.elevationSource)&&e?.extent!=null,J=e=>b(e?.elevationSource),xe=async(e,t,n,r,i)=>{let a=C(e),o=t-n/a;return K(r)?r:J(r)?(r.elevationSource=new x({constantElevation:r.elevationSource.constantElevation/a}),r):q(r)?{elevationSample:await ee({...m(r.elevationSource)?r.elevationSource.toJSON():r.elevationSource,extent:r.extent},i),elevationSource:new x({constantElevation:o})}:{averageGroundElevation:o,spatialReference:e}},Se=e=>D(e?.heading)&&D(e?.pitch),Ce=(e,t)=>[[-e,-t],[e,-t],[e,t],[-e,t]];function we(e){let{cameraLocation:r,farDistance:i,horizontalFieldOfView:o,rotationMatrix:s,scalingFactor:l,verticalFieldOfView:u}=e,d=n();c(d,s);let m=2*Math.tan(t(u)/2)*i*l,h=2*Math.tan(t(o)/2)*i*l,g=P([0,0,-1],d),_=M([r.x,r.y,r.z],g,e.farDistance*l,l),v=P([0,1,0],d),y=P([1,0,0],d),b=N(v,m/2,l),x=N(y,h/2,l),S=f(a(),b,x),C=p(a(),b,x);return[p(a(),_,S),p(a(),_,C),f(a(),_,S),f(a(),_,C)]}const Y=e=>e?.type===2,X=e=>e?.type===1;function Z(e,t,n=!0){let r=C(t),i=n?e.clone():e;return i.cameraHeight/=r,i.farDistance/=r,i.nearDistance/=r,b(i.elevationSource)&&(i.elevationSource.constantElevation/=r),i}function Q(t){return[e(Math.asin(-t[6])),e(Math.atan(t[7]/t[8])),e(Math.atan2(t[3],t[0]))]}function $(e,t,n,r=!1){return Te(B(e,t),n,r)}function Te(t,r,i=!1){let a=i?c(n(),w(r,T.YPR)):w(r,T.YPR),o=t[0]*a[0]+t[1]*a[1]+t[2]*a[2],s=t[0]*a[3]+t[1]*a[4]+t[2]*a[5],l=t[0]*a[6]+t[1]*a[7]+t[2]*a[8],u=e(Math.acos(-l));return[e(Math.atan2(o,s)),u]}export{$ as adjustHorizonAngles,Te as adjustHorizonAnglesVec3,we as computeFarplaneVertices,re as computeHFOVAndVFOV,ge as computeNewReferenceCoordinates,V as convertHeadingPitchToSphereVertex,R as convertOrientationToPixelLocation,oe as convertPixelLocationToSphereVertex,L as convertPixelToHeadingPitch,z as convertSphereVertexToOrientation,ae as convertSphereVertexToPixelLocation,Z as convertToSRUnits,B as createMeshSpaceVector,w as createRotationMatrix,E as createRotationMatrixFromHPR,I as createRotationMatrixFromOPK,Q as extractHorizonAngles,U as getAffinesAndFocalLength,be as getImageToWorldPanoramicProperties,ve as getImageToWorldProperties,se as getInitialAngle,xe as getUpdateElevationProps,pe as getWebMercatorScalingFactor,G as getWorldToImageProperties,Se as hasAngles,X as hasHeadingPitchRoll,Y as hasOmegaPhiKappa,he as isElevationSampler,K as isUpdateElevationWithElevationSampler,q as isUpdateElevationWithElevationSource,J as isUpdateUsingConstantElevation,W as isValidAffines,j as linearEquationSolve,ie as ltpToGeographic,H as or,le as pointToArray,k as projectiveTransform,Ce as reducerFn,ce as rotatePixel,M as scaleAndAddWithFactor,N as scaleWithFactor,P as transformMat3,F as transformMat4,ue as validatePixelsToTransform,de as validatePointsToTransform,fe as validateRotationMatrix,me as vecToPoint};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/core",
3
- "version": "5.2.0",
3
+ "version": "5.2.1",
4
4
  "description": "ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -20,7 +20,7 @@
20
20
  "license": "SEE LICENSE IN LICENSE.md",
21
21
  "dependencies": {
22
22
  "@amcharts/amcharts5": "~5.20.8",
23
- "@arcgis/toolkit": "5.2.0",
23
+ "@arcgis/toolkit": "5.2.1",
24
24
  "@esri/arcgis-html-sanitizer": "~4.2.0-next.2",
25
25
  "@esri/calcite-components": "^5.2.0",
26
26
  "@vaadin/grid": "~25.3.2",
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{isSome as e}from"../core/arrayUtils.js";import{clone as t}from"../core/lang.js";import{offsetDate as n}from"../core/timeUtils.js";import r from"../time/TimeExtent.js";import{isWebMap as i}from"../webmap/utils.js";import{isWebScene as a}from"../webscene/utils.js";function o(e){return e.timeInfo!==void 0}async function s(e,t){return e.widgets?.timeSlider?.fullTimeExtent??u(e.allLayers,t)}function c(e){let t=e.numThumbs??2,n=e.currentTimeExtent;if(n){let{start:e,end:r}=n;return e!=null&&r!=null&&e.getTime()===r.getTime()?`instant`:t===2?`time-window`:e==null||e.getTime()===0?`cumulative-from-start`:`cumulative-from-end`}return t===2?`time-window`:`cumulative-from-start`}function l(e){let{numStops:n,stopInterval:r,stops:i}=e;return i?{dates:t(i)}:r?{interval:r.clone()}:{count:n??5}}async function u(t,n){if(t.length===0)return r.allTime;await Promise.all(t.map(e=>e.load({signal:n})));let i=t.filter(o),a=t.filter(e=>!o(e)&&e.visibilityTimeExtent!=null);if(i.length===0&&a.length===0)return r.allTime;let s=[],c=[];for(let e of i)(e?.type===`feature`||e?.type===`map-image`)&&e.timeInfo?.hasLiveData?s.push(e):c.push(e);let l=e=>e==null||e.isAllTime,u=[...c.map(e=>{let t=e.timeInfo?.fullTimeExtent,{visibilityTimeExtent:n}=e;return t?.intersection(n)??n}),...a.map(e=>e.visibilityTimeExtent)];if(u.some(l))return r.allTime;let d=s.map(async e=>{let t=(await e.fetchRecomputedExtents({signal:n}))?.timeExtent??e.timeInfo?.fullTimeExtent,{visibilityTimeExtent:r}=e;return t?.intersection(r)??r}),f=(await Promise.allSettled(d)).map(e=>e.status===`fulfilled`?e.value:null);if(f.some(l))return r.allTime;let p=[...f,...u].filter(e);return p.length===0?r.allTime:p.reduce((e,t)=>e.union(t))}function d(e,t){let n=e.currentTimeExtent;if(!n)return null;let{start:i,end:a}=n,o=i??a??null;switch(t){case`time-window`:return new r({start:i,end:a});case`cumulative-from-start`:return new r({start:null,end:o});case`cumulative-from-end`:return new r({start:o,end:null});case`instant`:return new r({start:o,end:o})}}async function f(e,t){if(!(i(e)||a(e)))return null;await e.load({signal:t});let n=e?.widgets?.timeSlider;if(!n)return null;let r=await s(e,t),{loop:o}=n,u=c(n);return{fullTimeExtent:r,loop:o,mode:u,playRate:n.stopDelay??2e3,stops:l(n),timeExtent:d(n,u)}}function p(e){if(!e)return e;let{start:t,end:i}=e;return new r({start:t==null?t:n(t,-t.getTimezoneOffset(),`minutes`),end:i==null?i:n(i,-i.getTimezoneOffset(),`minutes`)})}function m(e){if(!e)return e;let{start:t,end:i}=e;return new r({start:t==null?t:n(t,t.getTimezoneOffset(),`minutes`),end:i==null?i:n(i,i.getTimezoneOffset(),`minutes`)})}export{u as getTimeExtentFromLayers,f as getTimeSliderSettingsFromWebDocument,m as toLocalTimeExtent,p as toUTCTimeExtent};
2
+ import{isSome as e}from"../core/arrayUtils.js";import{clone as t}from"../core/lang.js";import{offsetDate as n}from"../core/timeUtils.js";import r from"../rest/support/StatisticDefinition.js";import i from"../time/TimeExtent.js";import{isWebMap as a}from"../webmap/utils.js";import{isWebScene as o}from"../webscene/utils.js";function s(e){return e.timeInfo!==void 0}async function c(t,n){if(!t.timeInfo||!t.timeInfo.startField&&!t.timeInfo.endField)return null;let{startField:a,endField:o}=t.timeInfo,s=t.createQuery();s.outStatistics=[],a&&s.outStatistics.push(new r({onStatisticField:a,outStatisticFieldName:`minStart`,statisticType:`min`}),new r({onStatisticField:a,outStatisticFieldName:`maxStart`,statisticType:`max`})),o&&s.outStatistics.push(new r({onStatisticField:o,outStatisticFieldName:`minEnd`,statisticType:`min`}),new r({onStatisticField:o,outStatisticFieldName:`maxEnd`,statisticType:`max`}));let{features:c}=await t.queryFeatures(s,{signal:n}),l=c.at(0),u=[l?.getAttribute(`minStart`),l?.getAttribute(`maxStart`),l?.getAttribute(`minEnd`),l?.getAttribute(`maxEnd`)].filter(e).map(e=>typeof e==`string`?Date.parse(e):e);if(!u.length)return null;let d=new Date(Math.min(...u)),f=new Date(Math.max(...u)),p=new i({start:d,end:f}),{visibilityTimeExtent:m}=t;return p?.intersection(m)??m}async function l(e,t){return e.widgets?.timeSlider?.fullTimeExtent??f(e.allLayers,t)}function u(e){let t=e.numThumbs??2,n=e.currentTimeExtent;if(n){let{start:e,end:r}=n;return e!=null&&r!=null&&e.getTime()===r.getTime()?`instant`:t===2?`time-window`:e==null||e.getTime()===0?`cumulative-from-start`:`cumulative-from-end`}return t===2?`time-window`:`cumulative-from-start`}function d(e){let{numStops:n,stopInterval:r,stops:i}=e;return i?{dates:t(i)}:r?{interval:r.clone()}:{count:n??5}}async function f(t,n){if(t.length===0)return i.allTime;await Promise.all(t.map(e=>e.load({signal:n})));let r=t.filter(s),a=t.filter(e=>!s(e)&&e.visibilityTimeExtent!=null);if(r.length===0&&a.length===0)return i.allTime;let o=[],l=[],u=[];for(let e of r)e.type===`feature`&&h(e)?o.push(e):(e.type===`feature`||e.type===`map-image`)&&e.timeInfo?.hasLiveData?l.push(e):u.push(e);let d=e=>e==null||e.isAllTime,f=[...u.map(e=>{let t=e.timeInfo?.fullTimeExtent,{visibilityTimeExtent:n}=e;return t?.intersection(n)??n}),...a.map(e=>e.visibilityTimeExtent)];if(f.some(d))return i.allTime;let p=l.map(async e=>{let t=(await e.fetchRecomputedExtents({signal:n}))?.timeExtent??e.timeInfo?.fullTimeExtent,{visibilityTimeExtent:r}=e;return t?.intersection(r)??r}),m=(await Promise.allSettled(p)).map(e=>e.status===`fulfilled`?e.value:null);if(m.some(d))return i.allTime;let g=o.map(e=>c(e,n)),_=(await Promise.allSettled(g)).filter(e=>e.status===`fulfilled`).map(e=>e.value),v=[...m,...f,..._].filter(e);return v.length===0?i.allTime:v.reduce((e,t)=>e.union(t))}function p(e,t){let n=e.currentTimeExtent;if(!n)return null;let{start:r,end:a}=n,o=r??a??null;switch(t){case`time-window`:return new i({start:r,end:a});case`cumulative-from-start`:return new i({start:null,end:o});case`cumulative-from-end`:return new i({start:o,end:null});case`instant`:return new i({start:o,end:o})}}async function m(e,t){if(!(a(e)||o(e)))return null;await e.load({signal:t});let n=e?.widgets?.timeSlider;if(!n)return null;let r=await l(e,t),{loop:i}=n,s=u(n);return{fullTimeExtent:r,loop:i,mode:s,playRate:n.stopDelay??2e3,stops:d(n),timeExtent:p(n,s)}}function h(e){if(!e.url)return!1;let t=e.timeInfo,n=e.getAtOrigin(`timeInfo`,`service`);return n?!(!t||t===n||(t.startField===n.startField||!t.startField&&!n.startField)&&(t.endField===n.endField||!t.endField&&!n.endField)):!!t}function g(e){if(!e)return e;let{start:t,end:r}=e;return new i({start:t==null?t:n(t,-t.getTimezoneOffset(),`minutes`),end:r==null?r:n(r,-r.getTimezoneOffset(),`minutes`)})}function _(e){if(!e)return e;let{start:t,end:r}=e;return new i({start:t==null?t:n(t,t.getTimezoneOffset(),`minutes`),end:r==null?r:n(r,r.getTimezoneOffset(),`minutes`)})}export{c as fetchTimeExtent,f as getTimeExtentFromLayers,m as getTimeSliderSettingsFromWebDocument,h as requireFetchTimeExtent,_ as toLocalTimeExtent,g as toUTCTimeExtent};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"../../../../Color.js";import{getContrast as t,multiplyOpacityToUnitRGBA as n}from"../../../../core/colorUtils.js";class r{constructor(){this.glowWidth=8,this.innerWidth=.75}}const i=new r;function a(e){let n=e.accentColor;return{glowColor:n,innerColor:t(n),globalAlpha:n.a*.75}}class o{constructor(){this.size=.5}}const s=new o;function c(e){return n(e.accentColor,.75)}function l(e){return n(e.accentColor,.75)}const u={line:1,manipulator:2};class d{constructor(){this.size=.5,this.visibleColor=new e([3,252,111,.75]),this.occludedColor=new e([252,3,69,.75]),this.undefinedColor=new e([127,127,127,.75])}}const f=new d;class p{constructor(){this.innerWidth=2,this.outerWidth=8,this.visibleInnerColor=new e([3,252,111,1]),this.visibleOuterColor=new e([3,252,111,.15]),this.occludedInnerColor=new e([252,3,69,1]),this.occludedOuterColor=new e([252,3,69,.1]),this.undefinedInnerColor=new e([255,255,255,1]),this.undefinedOuterColor=new e([127,127,127,.2])}}const m=new p;export{l as getInteractiveTargetRGBA,a as getLaserLineColors,c as getObserverRGBA,i as laserLineConfiguration,m as lineOfSightConfiguration,u as lineOfSightTransparentRenderOrder,s as observerConfiguration,f as targetConfiguration};
2
+ import e from"../../../../Color.js";import{getContrast as t,multiplyOpacityToUnitRGBA as n}from"../../../../core/colorUtils.js";class r{constructor(){this.glowWidth=8,this.innerWidth=.75}}const i=new r;function a(e){let n=e.accentColor;return{glowColor:n,innerColor:t(n),globalAlpha:n.a*.75}}class o{constructor(){this.radius=5}}const s=new o;function c(e){return n(e.accentColor,.75)}function l(e){return n(e.accentColor,.75)}const u={line:1,manipulator:2};class d{constructor(){this.radius=5,this.visibleColor=new e([3,252,111,.75]),this.occludedColor=new e([252,3,69,.75]),this.undefinedColor=new e([127,127,127,.75])}}const f=new d;class p{constructor(){this.innerWidth=2,this.outerWidth=8,this.visibleInnerColor=new e([3,252,111,1]),this.visibleOuterColor=new e([3,252,111,.15]),this.occludedInnerColor=new e([252,3,69,1]),this.occludedOuterColor=new e([252,3,69,.1]),this.undefinedInnerColor=new e([255,255,255,1]),this.undefinedOuterColor=new e([127,127,127,.2])}}const m=new p;export{l as getInteractiveTargetRGBA,a as getLaserLineColors,c as getObserverRGBA,i as laserLineConfiguration,m as lineOfSightConfiguration,u as lineOfSightTransparentRenderOrder,s as observerConfiguration,f as targetConfiguration};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../../../../core/Accessor.js";import{watch as n,syncAndInitial as r}from"../../../../core/reactiveUtils.js";import{property as i,subclass as a}from"../../../../core/accessorSupport/decorators.js";import{snapshotLineOfSightTargetState as o,restoreLineOfSightTargetState as s}from"./LineOfSightAuthoringUtils.js";import{LineOfSightItemManipulatedObject3D as c}from"./LineOfSightItemManipulatedObject3D.js";import{LineOfSightItemTool as l}from"./LineOfSightItemTool.js";import{discRadiusSmall as u}from"../../interactive/editingTools/manipulations/config.js";import{MoveTool3D as d}from"../../interactive/editingTools/move/MoveTool3D.js";import{bindViewToolOptions as f}from"../../../interactive/options/bindViewToolOptions.js";import p from"../../../interactive/options/InteractiveToolOptions.js";import{makeTooltip as m}from"../../../interactive/tooltip/tooltipCommonUtils.js";const h=Symbol(`inactiveMoveManipulatorDisplay`);let g=class extends t{get visible(){return this._get(`visible`)??!0}set visible(e){this._set(`visible`,e),this._itemTool.visible=e,this._moveTool.visible=e}get manipulatorsInteractive(){return this._get(`manipulatorsInteractive`)??!0}set manipulatorsInteractive(e){this._set(`manipulatorsInteractive`,e),this._itemTool.manipulatorsInteractive=e}constructor(e){super(e),this._selectedItem=null,this._objectByItem=new Map,this._undoStack=[],this._redoStack=[];let t=new p;this._tooltip=m(()=>({view:e.view,options:t.tooltips})),this._moveTool=new d({enableVisualElements:!1,manipulatorRadius:u,snappingManager:e.snappingManager,toolOptions:t,tooltip:this._tooltip,view:e.view}),this._itemTool=new l({analysisViewData:e.analysisViewData,snappingManager:e.snappingManager,tooltip:this._tooltip,view:e.view})}initialize(){this.view.tools.add(this._itemTool),this.view.tools.add(this._moveTool),this._itemTool.visible=this.visible,this._moveTool.visible=this.visible,this._itemTool.manipulatorsInteractive=this.manipulatorsInteractive;let e=e=>{let t=e.at(0);t!=null&&this._itemTool.showInteractionVisuals(t)},t=()=>this._itemTool.hideInteractionVisuals();this.addHandles([f(this._moveTool.toolOptions,()=>this.view.options),n(()=>({observer:this.analysis.observer,targets:this.analysis.targets.toArray()}),({observer:e,targets:t})=>this._syncObjects(e,t),r),this._itemTool.events.on(`select-item`,({item:e})=>this._setSelectedItem(e)),this._itemTool.events.on(`selection-cleared`,()=>{if(this._moveTool.hasFocusedManipulators){let e=this._selectedItem==null?null:this._objectByItem.get(this._selectedItem);this._itemTool.selectObject(e)}else this._setSelectedItem(null)}),this._itemTool.events.on(`delete-item`,({target:e})=>this._deleteTarget(e)),this._itemTool.events.on(`record-undo`,({record:e})=>this._recordHistory(_([e]))),this._moveTool.events.on(`record-undo`,({updates:e})=>this._recordHistory(_(e))),this._moveTool.events.on(`hold`,({objects:t})=>e(t)),this._moveTool.events.on(`move-start`,({objects:t})=>{this._itemTool.endDrag(),e(t)}),this._moveTool.events.on(`move-stop`,t),n(()=>({sphereGrabbed:this._itemTool.hasGrabbedManipulators,manipulators:this._moveTool.manipulators.toArray()}),({sphereGrabbed:e})=>{let t=[];e&&this._moveTool.manipulators.forEach(({manipulator:e})=>{t.push(e.disableDisplay())}),this.removeHandles(h),this.addHandles(t,h)},r),n(()=>this._moveTool.firstGrabbedManipulator,e=>{e??t()})])}destroy(){this.removeHandles(h),this.stop(),this.view.tools.remove(this._itemTool),this.view.tools.remove(this._moveTool),this._itemTool.destroy(),this._moveTool.destroy(),this._tooltip.destroy();for(let e of this._objectByItem.values())this.removeHandles(e),e.destroy();this._objectByItem.clear(),this._undoStack.length=0,this._redoStack.length=0}get active(){return this._itemTool.active||this._moveTool.active}get canRedo(){return this._redoStack.length>0}get canUndo(){return this._undoStack.length>0}get hasSelection(){return this._selectedItem!=null}get selectedItem(){return this._selectedItem}get updating(){return this._itemTool.updating||this._moveTool.updating}get laserLineVisualElement(){return this._itemTool.laserLineVisualElement}get verticalLineVisualElement(){return this._itemTool.verticalLineVisualElement}selectItem(e){return this._objectByItem.has(e)?(this._setSelectedItem(e),!0):!1}clearSelection(){return this.hasSelection?(this._setSelectedItem(null),!0):!1}deleteSelectedItem(){let e=this._selectedItem;if(e==null)return!1;let t=this.analysis.targets.find(t=>t===e);return t!=null&&this._deleteTarget(t)}getObserverManipulator(){let e=this.analysis.observer,t=e==null?null:this._itemTool.getManipulator(e);return t!=null&&v(t)?t:null}getTargetManipulator(e){let t=this._itemTool.getManipulator(e);return t!=null&&y(t)?t:null}hasManipulatorAt(e,t){return this._itemTool.hasManipulatorAt(e,t)}redo(){let e=this._redoStack.pop();e!=null&&(e.redo()?(this._undoStack.push(e),this._notifyHistoryChanged()):this._redoStack.push(e))}setEditableFlag(e,t){this._itemTool.setEditableFlag(e,t),this._moveTool.setEditableFlag(e,t)}stop(){(this.view.activeTool===this._itemTool||this.view.activeTool===this._moveTool)&&(this.view.activeTool=null),this._itemTool.hideInteractionVisuals(),this.snappingManager.doneSnapping(),this.clearSelection()}undo(){let e=this._undoStack.pop();e!=null&&(e.undo(),this._redoStack.push(e),this._notifyHistoryChanged())}_syncObjects(e,t){let n=new Set(e==null?t:[e,...t]);for(let[e,t]of this._objectByItem)n.has(e)||(this._selectedItem===e&&this._setSelectedItem(null),this.removeHandles(t),this._itemTool.removeObject(t),this._objectByItem.delete(e),t.destroy());e!=null&&this._ensureObject(e);for(let e of t)this._ensureObject(e);this._setSelectedItem(this._selectedItem)}_ensureObject(e){if(this._objectByItem.has(e))return;let t=new c({analysisViewData:this.analysisViewData,intersector:this.intersector,item:e,view:this.view});this._objectByItem.set(e,t),this._itemTool.addObject(t),this.addHandles(t.on(`modified-externally`,()=>{this._selectedItem===e&&this._setSelectedItem(e)}),t)}_setSelectedItem(e){let t=e==null?null:this._objectByItem.get(e);this._selectedItem=t==null?null:e,this._itemTool.selectObject(t),this._moveTool.objects.removeAll(),t!=null&&this._moveTool.objects.add(t),this._itemTool.interacting=this._selectedItem!=null}_deleteTarget(e){if(this.analysis.targets.length<=1)return!1;let t=this.analysis.targets.indexOf(e);if(t<0)return!1;let n=o(e),r=this._selectedItem===e;return this.analysis.targets.remove(e),this._recordHistory({undo:()=>{s(n,e),this.analysis.targets.add(e,Math.min(t,this.analysis.targets.length)),r&&this._setSelectedItem(e)},redo:()=>this.analysis.targets.includes(e)&&this.analysis.targets.length<=1?!1:(this.analysis.targets.remove(e),this._selectedItem===e&&this._setSelectedItem(null),!0)}),!0}_recordHistory(e){this._undoStack.push(e),this._redoStack.length=0,this._notifyHistoryChanged()}_notifyHistoryChanged(){this.notifyChange(`canUndo`),this.notifyChange(`canRedo`)}get testInfo(){return{moveTooltip:this._tooltip}}};e([i({constructOnly:!0})],g.prototype,`analysisViewData`,void 0),e([i({constructOnly:!0})],g.prototype,`analysis`,void 0),e([i({constructOnly:!0})],g.prototype,`intersector`,void 0),e([i({constructOnly:!0})],g.prototype,`snappingManager`,void 0),e([i({constructOnly:!0})],g.prototype,`view`,void 0),e([i()],g.prototype,`visible`,null),e([i()],g.prototype,`manipulatorsInteractive`,null),e([i()],g.prototype,`_selectedItem`,void 0),e([i()],g.prototype,`active`,null),e([i()],g.prototype,`canRedo`,null),e([i()],g.prototype,`canUndo`,null),e([i()],g.prototype,`selectedItem`,null),e([i()],g.prototype,`updating`,null),g=e([a(`esri.views.3d.analysis.LineOfSight.LineOfSightEditTool`)],g);function _(e){return{undo:()=>{for(let t=e.length-1;t>=0;t--)e[t].undo(null)},redo:()=>{for(let t of e)t.redo(null);return!0}}}function v(e){return e.metadata.type===`observer`}function y(e){return e.metadata.type===`target`}export{g as LineOfSightEditTool};
2
+ import{__decorate as e}from"tslib";import t from"../../../../core/Accessor.js";import{watch as n,syncAndInitial as r}from"../../../../core/reactiveUtils.js";import{property as i,subclass as a}from"../../../../core/accessorSupport/decorators.js";import{snapshotLineOfSightTargetState as o,restoreLineOfSightTargetState as s}from"./LineOfSightAuthoringUtils.js";import{LineOfSightItemManipulatedObject3D as c}from"./LineOfSightItemManipulatedObject3D.js";import{LineOfSightItemTool as l}from"./LineOfSightItemTool.js";import{discRadiusSmall as u}from"../../interactive/editingTools/manipulations/config.js";import{MoveTool3D as d}from"../../interactive/editingTools/move/MoveTool3D.js";import{bindViewToolOptions as f}from"../../../interactive/options/bindViewToolOptions.js";import p from"../../../interactive/options/InteractiveToolOptions.js";import{makeTooltip as m}from"../../../interactive/tooltip/tooltipCommonUtils.js";const h=Symbol(`inactiveMoveManipulatorDisplay`);let g=class extends t{get visible(){return this._get(`visible`)??!0}set visible(e){this._set(`visible`,e),this._itemTool.visible=e,this._moveTool.visible=e}get manipulatorsInteractive(){return this._get(`manipulatorsInteractive`)??!0}set manipulatorsInteractive(e){this._set(`manipulatorsInteractive`,e),this._itemTool.manipulatorsInteractive=e}constructor(e){super(e),this._selectedItem=null,this._objectByItem=new Map,this._undoStack=[],this._redoStack=[];let t=new p;this._tooltip=m(()=>({view:e.view,options:t.tooltips})),this._moveTool=new d({enableVisualElements:!1,manipulatorRadius:u,snappingManager:e.snappingManager,toolOptions:t,tooltip:this._tooltip,view:e.view}),this._itemTool=new l({analysisViewData:e.analysisViewData,moveTool:this._moveTool,snappingManager:e.snappingManager,tooltip:this._tooltip,view:e.view})}initialize(){this.view.tools.add(this._itemTool),this.view.tools.add(this._moveTool),this._itemTool.visible=this.visible,this._moveTool.visible=this.visible,this._itemTool.manipulatorsInteractive=this.manipulatorsInteractive;let e=e=>{let t=e.at(0);t!=null&&this._itemTool.showInteractionVisuals(t)},t=()=>this._itemTool.hideInteractionVisuals();this.addHandles([f(this._moveTool.toolOptions,()=>this.view.options),n(()=>({observer:this.analysis.observer,targets:this.analysis.targets.toArray()}),({observer:e,targets:t})=>this._syncObjects(e,t),r),this._itemTool.events.on(`select-item`,({item:e})=>this._setSelectedItem(e)),this._itemTool.events.on(`deselect-item`,()=>this.clearSelection()),this._itemTool.events.on(`delete-item`,({target:e})=>this._deleteTarget(e)),this._itemTool.events.on(`record-undo`,({record:e})=>this._recordHistory(_([e]))),this._moveTool.events.on(`record-undo`,({updates:e})=>this._recordHistory(_(e))),this._moveTool.events.on(`hold`,({objects:t})=>e(t)),this._moveTool.events.on(`move-start`,({objects:t})=>{this._itemTool.endDrag(),e(t)}),this._moveTool.events.on(`move-stop`,t),n(()=>({sphereGrabbed:this._itemTool.hasGrabbedManipulators,manipulators:this._moveTool.manipulators.toArray()}),({sphereGrabbed:e})=>{let t=[];e&&this._moveTool.manipulators.forEach(({manipulator:e})=>{t.push(e.disableDisplay())}),this.removeHandles(h),this.addHandles(t,h)},r),n(()=>this._moveTool.firstGrabbedManipulator,e=>{e??t()})])}destroy(){this.removeHandles(h),this.stop(),this.view.tools.remove(this._itemTool),this.view.tools.remove(this._moveTool),this._itemTool.destroy(),this._moveTool.destroy(),this._tooltip.destroy();for(let e of this._objectByItem.values())this.removeHandles(e),e.destroy();this._objectByItem.clear(),this._undoStack.length=0,this._redoStack.length=0}get active(){return this._itemTool.active||this._moveTool.active}get canRedo(){return this._redoStack.length>0}get canUndo(){return this._undoStack.length>0}get hasSelection(){return this._selectedItem!=null}get selectedItem(){return this._selectedItem}get updating(){return this._itemTool.updating||this._moveTool.updating}get laserLineVisualElement(){return this._itemTool.laserLineVisualElement}get verticalLineVisualElement(){return this._itemTool.verticalLineVisualElement}selectItem(e){return this._objectByItem.has(e)?(this._setSelectedItem(e),!0):!1}clearSelection(){return this.hasSelection?(this._setSelectedItem(null),!0):!1}deleteSelectedItem(){let e=this._selectedItem;if(e==null)return!1;let t=this.analysis.targets.find(t=>t===e);return t!=null&&this._deleteTarget(t)}getObserverManipulator(){let e=this.analysis.observer,t=e==null?null:this._itemTool.getManipulator(e);return t!=null&&v(t)?t:null}getTargetManipulator(e){let t=this._itemTool.getManipulator(e);return t!=null&&y(t)?t:null}hasManipulatorAt(e,t){return this._itemTool.hasManipulatorAt(e,t)}redo(){let e=this._redoStack.pop();e!=null&&(e.redo()?(this._undoStack.push(e),this._notifyHistoryChanged()):this._redoStack.push(e))}setEditableFlag(e,t){this._itemTool.setEditableFlag(e,t),this._moveTool.setEditableFlag(e,t)}stop(){(this.view.activeTool===this._itemTool||this.view.activeTool===this._moveTool)&&(this.view.activeTool=null),this._itemTool.hideInteractionVisuals(),this.snappingManager.doneSnapping(),this.clearSelection()}undo(){let e=this._undoStack.pop();e!=null&&(e.undo(),this._redoStack.push(e),this._notifyHistoryChanged())}_syncObjects(e,t){let n=new Set(e==null?t:[e,...t]);for(let[e,t]of this._objectByItem)n.has(e)||(this._selectedItem===e&&this._setSelectedItem(null),this.removeHandles(t),this._itemTool.removeObject(t),this._objectByItem.delete(e),t.destroy());e!=null&&this._ensureObject(e);for(let e of t)this._ensureObject(e);this._setSelectedItem(this._selectedItem)}_ensureObject(e){if(this._objectByItem.has(e))return;let t=new c({analysisViewData:this.analysisViewData,intersector:this.intersector,item:e,view:this.view});this._objectByItem.set(e,t),this._itemTool.addObject(t),this.addHandles(t.on(`modified-externally`,()=>{this._selectedItem===e&&this._setSelectedItem(e)}),t)}_setSelectedItem(e){let t=e==null?null:this._objectByItem.get(e);this._selectedItem=t==null?null:e,this._itemTool.selectObject(t),this._moveTool.objects.removeAll(),t!=null&&this._moveTool.objects.add(t),this._itemTool.interacting=this._selectedItem!=null}_deleteTarget(e){if(this.analysis.targets.length<=1)return!1;let t=this.analysis.targets.indexOf(e);if(t<0)return!1;let n=o(e),r=this._selectedItem===e;return this.analysis.targets.remove(e),this._recordHistory({undo:()=>{s(n,e),this.analysis.targets.add(e,Math.min(t,this.analysis.targets.length)),r&&this._setSelectedItem(e)},redo:()=>this.analysis.targets.includes(e)&&this.analysis.targets.length<=1?!1:(this.analysis.targets.remove(e),this._selectedItem===e&&this._setSelectedItem(null),!0)}),!0}_recordHistory(e){this._undoStack.push(e),this._redoStack.length=0,this._notifyHistoryChanged()}_notifyHistoryChanged(){this.notifyChange(`canUndo`),this.notifyChange(`canRedo`)}get testInfo(){return{moveTooltip:this._tooltip}}};e([i({constructOnly:!0})],g.prototype,`analysisViewData`,void 0),e([i({constructOnly:!0})],g.prototype,`analysis`,void 0),e([i({constructOnly:!0})],g.prototype,`intersector`,void 0),e([i({constructOnly:!0})],g.prototype,`snappingManager`,void 0),e([i({constructOnly:!0})],g.prototype,`view`,void 0),e([i()],g.prototype,`visible`,null),e([i()],g.prototype,`manipulatorsInteractive`,null),e([i()],g.prototype,`_selectedItem`,void 0),e([i()],g.prototype,`active`,null),e([i()],g.prototype,`canRedo`,null),e([i()],g.prototype,`canUndo`,null),e([i()],g.prototype,`selectedItem`,null),e([i()],g.prototype,`updating`,null),g=e([a(`esri.views.3d.analysis.LineOfSight.LineOfSightEditTool`)],g);function _(e){return{undo:()=>{for(let t=e.length-1;t>=0;t--)e[t].undo(null)},redo:()=>{for(let t of e)t.redo(null);return!0}}}function v(e){return e.metadata.type===`observer`}function y(e){return e.metadata.type===`target`}export{g as LineOfSightEditTool};