@arcgis/core 4.31.0-next.20240912 → 4.31.0-next.20240913

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.
Files changed (61) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/052d38ba7c4979cc5732.js +1 -0
  3. package/assets/esri/core/workers/chunks/0e61bcda32cb9f181f85.js +1 -0
  4. package/assets/esri/core/workers/chunks/1c6bef0f95717a1ccc2c.js +1 -0
  5. package/assets/esri/core/workers/chunks/{31cd647d2408db92383f.js → 374ce09b4cc60b273978.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{9d9857d3182d77113e73.js → 38a5a11dbf6f57287977.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{d2194973bf5b6dd154e3.js → 65b22b9f643ee79b0742.js} +33 -33
  8. package/assets/esri/core/workers/chunks/{f1eedb03f405d5c888e1.js → 72daa8ab44fde82be86e.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{71b3e23720dbc864f872.js → 752c46fc21c390d5ed4a.js} +1 -1
  10. package/assets/esri/core/workers/chunks/84f86a07c6e9abb42535.js +1 -0
  11. package/assets/esri/core/workers/chunks/89e53d63f19db719e3b6.js +1 -0
  12. package/assets/esri/core/workers/chunks/{4d9338ad5853f204385b.js → 9f0e3cb120acac86d2d5.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{eda1aa00396fa09a0653.js → e04c35cdcb1f97e16abf.js} +1 -1
  14. package/assets/esri/core/workers/chunks/e89be6ba440f6d71bb94.js +1 -0
  15. package/assets/esri/core/workers/chunks/ea51a7c32f716f4f1a34.js +1 -0
  16. package/assets/esri/core/workers/chunks/{8b62996863a7069ff0c9.js → ff8d4d917755597dfc45.js} +1 -1
  17. package/assets/esri/core/workers/chunks/fff09e0648a901a758cb.js +1 -0
  18. package/assets/esri/geometry/support/pe-wasm.wasm +0 -0
  19. package/assets/esri/widgets/Editor/t9n/Editor.json +1 -1
  20. package/assets/esri/widgets/Editor/t9n/Editor_en.json +1 -1
  21. package/chunks/pe-wasm.js +1 -1
  22. package/chunks/pe.js +1 -1
  23. package/copyright.txt +196 -0
  24. package/interfaces.d.ts +348 -19
  25. package/layers/CatalogLayer.js +1 -1
  26. package/layers/KnowledgeGraphLayer.js +1 -1
  27. package/layers/LinkChartLayer.js +1 -1
  28. package/layers/SceneLayer.js +1 -1
  29. package/layers/VectorTileLayer.js +1 -1
  30. package/layers/catalog/CatalogDynamicGroupLayer.js +1 -1
  31. package/layers/graphics/sources/support/uploadAssets.js +1 -1
  32. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  33. package/layers/video/VideoController.js +1 -1
  34. package/package.json +1 -1
  35. package/portal/schemas/definitions.js +1 -1
  36. package/support/revision.js +1 -1
  37. package/symbols/cim/CIMSymbolRasterizer.js +1 -1
  38. package/symbols/cim/cimAnalyzer.js +1 -1
  39. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  40. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  41. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  42. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  43. package/widgets/Editor/Upload.js +1 -1
  44. package/widgets/Editor/components/FooterActions.js +1 -1
  45. package/widgets/Editor/components/Notices.js +1 -1
  46. package/widgets/Editor/components/Prompt.js +1 -1
  47. package/widgets/Editor/modelUploadUtils.js +1 -1
  48. package/widgets/Editor/workflowUtils.js +1 -1
  49. package/widgets/Editor.js +1 -1
  50. package/widgets/Legend/LegendViewModel.js +1 -1
  51. package/widgets/support/iconUtils.js +5 -0
  52. package/assets/esri/core/workers/chunks/17918199a8ad00266051.js +0 -1
  53. package/assets/esri/core/workers/chunks/3ad82888bd5e72014ae2.js +0 -1
  54. package/assets/esri/core/workers/chunks/48908d577fe522a2f481.js +0 -1
  55. package/assets/esri/core/workers/chunks/504fb57211c65a81c0fd.js +0 -1
  56. package/assets/esri/core/workers/chunks/bbeb973f4d31e32b2bea.js +0 -1
  57. package/assets/esri/core/workers/chunks/c6d3d8ac2f7d6d31f214.js +0 -1
  58. package/assets/esri/core/workers/chunks/d06b14e15f50e6196eed.js +0 -1
  59. package/assets/esri/core/workers/chunks/fa7a3a523a1e004f4e78.js +0 -1
  60. package/widgets/Editor/icons.js +0 -5
  61. package/widgets/GridControls/GridControlsViewModel.d.ts +0 -4
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8943],{9775:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(62788),n=s(95488);class i{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new n.I,this._items=new Set}get length(){return(0,r.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,r.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length;return this._items.forEach((t=>{e(t)||this._items.delete(t)})),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,r.gc)(this._observable),yield*this._items}}},75503:(e,t,s)=>{s.d(t,{E:()=>M,w:()=>o});var r=s(4576),n=(s(44208),s(3694)),i=s(11006);class o{constructor(e=9,t){this._compareMinX=u,this._compareMinY=h,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),w.prune(),I.prune(),v.prune(),T.prune()}all(e){a(this._data,e)}search(e,t){let s=this._data;const r=this._toBBox;if(_(e,s))for(w.clear();s;){for(let n=0,i=s.children.length;n<i;n++){const i=s.children[n],o=s.leaf?r(i):i;_(e,o)&&(s.leaf?t(i):g(e,o)?a(i,t):w.push(i))}s=w.pop()}}collides(e){let t=this._data;const s=this._toBBox;if(!_(e,t))return!1;for(w.clear();t;){for(let r=0,n=t.children.length;r<n;r++){const n=t.children[r],i=t.leaf?s(n):n;if(_(e,i)){if(t.leaf||g(e,i))return!0;w.push(n)}}t=w.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,s=e.length;t<s;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(e){if(!e)return this;let t,s=this._data,n=null,i=0,o=!1;const a=this._toBBox(e);for(v.clear(),T.clear();s||v.length>0;){if(s||(s=v.pop(),n=v.data[v.length-1],i=T.pop()??0,o=!0),s.leaf&&(t=(0,r.qh)(s.children,e,s.children.length,s.indexHint),-1!==t))return s.children.splice(t,1),v.push(s),this._condense(v),this;o||s.leaf||!g(s,a)?n?(i++,s=n.children[i],o=!1):s=null:(v.push(s),T.push(i),i=0,n=s,s=s.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,s,r){const n=s-t+1;let i=this._maxEntries;if(n<=i){const r=new A(e.slice(t,s+1));return l(r,this._toBBox),r}r||(r=Math.ceil(Math.log(n)/Math.log(i)),i=Math.ceil(n/i**(r-1)));const o=new x([]);o.height=r;const a=Math.ceil(n/i),d=a*Math.ceil(Math.sqrt(i));b(e,t,s,d,this._compareMinX);for(let n=t;n<=s;n+=d){const t=Math.min(n+d-1,s);b(e,n,t,a,this._compareMinY);for(let s=n;s<=t;s+=a){const n=Math.min(s+a-1,t);o.children.push(this._build(e,s,n,r-1))}}return l(o,this._toBBox),o}_insert(e,t,s){const r=this._toBBox,n=s?e:r(e);v.clear();const i=function(e,t,s,r){for(;r.push(t),!0!==t.leaf&&r.length-1!==s;){let s,r=1/0,n=1/0;for(let i=0,o=t.children.length;i<o;i++){const o=t.children[i],a=c(o),l=m(e,o)-a;l<n?(n=l,r=a<r?a:r,s=o):l===n&&a<r&&(r=a,s=o)}t=s||t.children[0]}return t}(n,this._data,t,v);for(i.children.push(e),p(i,n);t>=0&&v.data[t].children.length>this._maxEntries;)this._split(v,t),t--;!function(e,t,s){for(let r=s;r>=0;r--)p(t.data[r],e)}(n,v,t)}_split(e,t){const s=e.data[t],r=s.children.length,n=this._minEntries;this._chooseSplitAxis(s,n,r);const i=this._chooseSplitIndex(s,n,r);if(!i)return;const o=s.children.splice(i,s.children.length-i),a=s.leaf?new A(o):new x(o);a.height=s.height,l(s,this._toBBox),l(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(s,a)}_splitRoot(e,t){this._data=new x([e,t]),this._data.height=e.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(e,t,s){let r,n,i;r=n=1/0;for(let o=t;o<=s-t;o++){const t=d(e,0,o,this._toBBox),a=d(e,o,s,this._toBBox),l=f(t,a),p=c(t)+c(a);l<r?(r=l,i=o,n=p<n?p:n):l===r&&p<n&&(n=p,i=o)}return i}_chooseSplitAxis(e,t,s){const r=e.leaf?this._compareMinX:u,n=e.leaf?this._compareMinY:h;this._allDistMargin(e,t,s,r)<this._allDistMargin(e,t,s,n)&&e.children.sort(r)}_allDistMargin(e,t,s,r){e.children.sort(r);const n=this._toBBox,i=d(e,0,t,n),o=d(e,s-t,s,n);let a=y(i)+y(o);for(let r=t;r<s-t;r++){const t=e.children[r];p(i,e.leaf?n(t):t),a+=y(i)}for(let r=s-t-1;r>=t;r--){const t=e.children[r];p(o,e.leaf?n(t):t),a+=y(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const s=e.data[t];if(0===s.children.length)if(t>0){const n=e.data[t-1],i=n.children;i.splice((0,r.qh)(i,s,i.length,n.indexHint),1)}else this.clear();else l(s,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function a(e,t){let s=e;for(I.clear();s;){if(!0===s.leaf)for(const e of s.children)t(e);else I.pushArray(s.children);s=I.pop()??null}}function l(e,t){d(e,0,e.children.length,t,e)}function d(e,t,s,r,n){n||(n=new A([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let i,o=t;o<s;o++)i=e.children[o],p(n,e.leaf?r(i):i);return n}function p(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function u(e,t){return e.minX-t.minX}function h(e,t){return e.minY-t.minY}function c(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function y(e){return e.maxX-e.minX+(e.maxY-e.minY)}function m(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function f(e,t){const s=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),n=Math.min(e.maxX,t.maxX),i=Math.min(e.maxY,t.maxY);return Math.max(0,n-s)*Math.max(0,i-r)}function g(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function _(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function b(e,t,s,r,n){const o=[t,s];for(;o.length;){const t=o.pop(),s=o.pop();if(t-s<=r)continue;const a=s+Math.ceil((t-s)/r/2)*r;(0,i.q)(e,a,s,t,n),o.push(s,a,a,t)}}const w=new n.A,I=new n.A,v=new n.A,T=new n.A({deallocator:void 0});class M{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class E extends M{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class A extends E{constructor(e){super(),this.children=e,this.leaf=!0}}class x extends E{constructor(e){super(),this.children=e,this.leaf=!1}}},10382:(e,t,s)=>{s.d(t,{A:()=>d});var r=s(36563),n=(s(44208),s(74887)),i=s(9775),o=s(72457),a=s(52268),l=s(61322);class d{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new i.A}destroy(){this.close()}get closed(){return!this._clients?.length}open(e,t){return new Promise(((s,r)=>{let i=!0;const o=e=>{(0,n.Te)(t.signal),i&&(i=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let i=0;i<e.length;++i){const a=e[i];(0,n.$X)(a)?this._clientPromises[i]=a.then((e=>(this._clients[i]=new l.default(e,t,this._ongoingJobsQueue),o(s),this._clients[i])),(()=>(o(r),null))):(this._clients[i]=new l.default(a,t,this._ongoingJobsQueue),this._clientPromises[i]=Promise.resolve(this._clients[i]),o(s))}}))}broadcast(e,t,s){const r=new Array(this._clientPromises.length);for(let n=0;n<this._clientPromises.length;++n){const i=this._clientPromises[n];r[n]=i.then((r=>r?.invoke(e,t,s)))}return r}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then((e=>e?.close()));this._clients.length=0,this._clientPromises.length=0,this._inUseClients.length=0,(0,o.h)(this)}invoke(e,t,s){return this.apply(e,[t],s)}apply(e,t,s){const r=(0,n.Tw)();this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:s,resolver:r});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then((e=>e?.jobAdded()))}return r.promise}createInvokeProxy(e){return(0,a.L)(this,e)}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,r.vE)(this._clients.map((s=>s.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let s=t.length;for(let r=0;r<this._clientPromises.length;++r)this._clientPromises[r].then((n=>{n&&(t[r]=n.openPort()),0==--s&&e(t)}))}))}get test(){}}},72457:(e,t,s)=>{s.d(t,{h:()=>i,k:()=>n});const r=new FinalizationRegistry((e=>{e.close()}));function n(e,t){r.register(e,t,t)}function i(e){r.unregister(e)}},29953:(e,t,s)=>{s.d(t,{ho:()=>$});var r=s(49186),n=s(44208),i=s(74887),o=s(10382),a=s(72457),l=s(61322),d=s(53966),p=s(97768),u=s(78888),h=s(84952);const c={async request(e,t){const s=e.options,r=s.responseType;s.signal=t?.signal,s.responseType="native"===r||"native-request-init"===r?"native-request-init":r&&["blob","json","text"].includes(r)&&(0,h.sC)(e.url)?.after?r:"array-buffer";const n=await(0,u.A)(e.url,s),i={data:n.data,httpStatus:n.httpStatus,ssl:n.ssl};switch(n.requestOptions?.responseType){case"native-request-init":return delete i.data.signal,i;case"blob":i.data=await i.data.arrayBuffer();break;case"json":i.data=(new TextEncoder).encode(JSON.stringify(i.data)).buffer;break;case"text":i.data=(new TextEncoder).encode(i.data).buffer}return{result:i,transferList:[i.data]}}};var y=s(8341),m=s(2741),f=s(92602),g=(s(47566),s(70333));const _={};var b=s(26390);class w{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...s)=>e[t](...s)}))}}class I{constructor(){this._dispatcher=new w,this._workerPostMessage({type:y.Go.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,b.d)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,s){this._dispatcher.addEventListener(e,t,s)}removeEventListener(e,t,s){this._dispatcher.removeEventListener(e,t,s)}_workerPostMessage(e){(0,b.d)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,y.VI)(e);if(t&&t.type===y.Go.OPEN){const{modulePath:e,jobId:s}=t;let r=await l.default.loadWorker(e);r||(r=await import(e));const n=l.default.connect(r);this._workerPostMessage({type:y.Go.OPENED,jobId:s,data:n})}}}var v=s(73444),T=s(18357);const M=()=>d.A.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:E}=y.Go;let A,x;const k="Failed to create Worker. Fallback to execute module in main thread";async function S(e){return new Promise((t=>{function s(n){const i=(0,y.VI)(n);i&&i.type===E&&(e.removeEventListener("message",s),e.removeEventListener("error",r),t(e))}function r(t){t.preventDefault(),e.removeEventListener("message",s),e.removeEventListener("error",r),M().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new I).addEventListener("message",s),e.addEventListener("error",r)}e.addEventListener("message",s),e.addEventListener("error",r)}))}let N=0;const{ABORT:L,INVOKE:C,OPEN:R,OPENED:D,RESPONSE:B}=y.Go;class O{static async create(e){const t=await async function(){if(!(0,n.A)("esri-workers"))return S(new I);if(!A&&!x)try{const e='let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;let s=null;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})})).finally((()=>{t&&t.removeEventListener("abort",s)}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\nModules version: ${r}\nAssets version: ${n??s}\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let n;function t(e){const o=n.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split("{CONFIGURATION}").join(function(){let e;if(null!=f.A.default){const t={...f.A};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(f.A));e.assetsPath=(0,h.s2)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,h.s2)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,v.JK)(),e.has={"esri-csp-restrictions":(0,n.A)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,n.A)("esri-2d-update-debug"),"esri-2d-log-updating":(0,n.A)("esri-2d-log-updating"),"featurelayer-pbf":(0,n.A)("featurelayer-pbf"),"featurelayer-fast-triangulation-enabled":(0,n.A)("featurelayer-fast-triangulation-enabled"),"featurelayer-simplify-thresholds":(0,n.A)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,n.A)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,n.A)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,n.A)("featurelayer-query-max-depth"),"featurelayer-query-pausing-enabled":(0,n.A)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-enabled":(0,n.A)("featurelayer-snapshot-enabled"),"esri-atomics":(0,n.A)("esri-atomics"),"esri-shared-array-buffer":(0,n.A)("esri-shared-array-buffer"),"esri-tiles-debug":(0,n.A)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,n.A)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,n.A)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,h.s2)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,h.s2)(e.workers.workerPath):e.workers.workerPath=(0,h.s2)((0,m.s)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=f.A.workers.loaderConfig,s=function(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.slice()||[],paths:{..._.paths,...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=_.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,v.JK)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),r={buildDate:T.$,fullVersion:g.ol,revision:T.u};return JSON.stringify({esriConfig:e,loaderConfig:s,kernelInfo:r})}());A=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){x=e||{}}let e;if(A)try{e=new Worker(A,{name:"esri-worker-"+N++})}catch(t){M().warn(k,x),e=new I}else M().warn(k,x),e=new I;return S(e)}();return new O(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),d.A.getLogger("esri.core.workers.WorkerOwner").error(e)}))}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:s}=t,r=(0,y.Jc)();return new Promise(((t,n)=>{const o={resolve:t,reject:n,abortHandle:(0,i.NY)(s,(()=>{this._outJobs.delete(r),this._post({type:L,jobId:r})}))};this._outJobs.set(r,o),this._post({type:R,jobId:r,modulePath:e})}))}_onMessage(e){const t=(0,y.VI)(e);if(t)switch(t.type){case D:this._onOpenedMessage(t);break;case B:this._onResponseMessage(t);break;case L:this._onAbortMessage(t);break;case C:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,s=e.jobId,r=t.get(s);r&&(r.controller&&r.controller.abort(),t.delete(s))}_onInvokeMessage(e){const{methodName:t,jobId:s,data:r,abortable:n}=e,o=n?new AbortController:null,a=this._inJobs,l=c[t];let d;try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`);d=l.call(null,r,{signal:o?o.signal:null})}catch(e){return void this._post({type:B,jobId:s,error:(0,y.mF)(e)})}(0,i.$X)(d)?(a.set(s,{controller:o,promise:d}),d.then((e=>{a.has(s)&&(a.delete(s),this._post({type:B,jobId:s},e))}),(e=>{a.has(s)&&(a.delete(s),e||(e={message:"Error encountered at method"+t}),(0,i.zf)(e)||this._post({type:B,jobId:s,error:(0,y.mF)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:B,jobId:s},d)}_onOpenedMessage(e){const{jobId:t,data:s}=e,r=this._outJobs.get(t);r&&(this._outJobs.delete(t),(0,p.xt)(r.abortHandle),r.resolve(s))}_onResponseMessage(e){const{jobId:t,error:s,data:n}=e,i=this._outJobs.get(t);i&&(this._outJobs.delete(t),(0,p.xt)(i.abortHandle),s?i.reject(r.A.fromJSON(JSON.parse(s))):i.resolve(n))}_post(e,t,s){return(0,y.u1)(this.worker,e,t,s)}}const j=(0,n.A)("host-browser")?Math.min(navigator.hardwareConcurrency-1,(0,n.A)("workers-pool-size")??8):0;let F=(0,n.A)("esri-mobile")?Math.min(j,3):j;F||(F=(0,n.A)("safari")&&(0,n.A)("mac")?7:2);let P=0;const q=[];async function G(e,t){const s=new o.A,{registryTarget:r,...n}=t;return await s.open(e,n),r&&(0,a.k)(r,s),s}async function $(e,t={}){if("string"!=typeof e)throw new r.A("workers:undefined-module","modulePath is missing");let s=t.strategy||"distributed";if((0,n.A)("host-webworker")&&!(0,n.A)("esri-workers")&&(s="local"),"local"===s){let s=await l.default.loadWorker(e);s||(s=await import(e)),(0,i.Te)(t.signal);const r=t.client||s;return G([l.default.connect(s,t.schedule)],{...t,client:r})}if(await async function(){if(Y)return Y;Q=new AbortController;const e=[];for(let t=0;t<F;t++){const s=O.create(t).then((e=>(q[t]=e,e)));e.push(s)}return Y=Promise.all(e),Y}(),(0,i.Te)(t.signal),"dedicated"===s){const s=P++%F;return G([await q[s].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const s=Math.min(t.maxNumWorkers,F);if(s<F){const r=new Array(s);for(let n=0;n<s;++n){const s=P++%F;r[n]=q[s].open(e,t)}return G(r,t)}}return G(q.map((s=>s.open(e,t))),t)}let Q,Y=null},43334:(e,t,s)=>{s.d(t,{N3:()=>i,Om:()=>n});var r=s(92722);class n{constructor(e=null,t={},s,r){this.geometry=e,this.attributes=t,this.centroid=s,this.objectId=r,this.displayId=0,this.geohashX=0,this.geohashY=0}static fromJSON(e,t){const s=e.geometry?r.A.fromJSON(e.geometry):null,i=e.centroid?r.A.fromJSON(e.centroid):null,o=e.attributes[t];return new n(s,e.attributes,i,o)}weakClone(){const e=new n(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}clone(){const e=this.geometry?.clone(),t=new n(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function i(e){return!!e.geometry?.coords?.length}},58512:(e,t,s)=>{s.d(t,{A:()=>r});class r{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new r;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},92722:(e,t,s)=>{s.d(t,{A:()=>r});class r{constructor(e=[],t=[],s=!1){this.lengths=e??[],this.coords=t??[],this.hasIndeterminateRingOrder=s}static fromJSON(e){return new r(e.lengths,e.coords,e.hasIndeterminateRingOrder)}static fromRect(e){const[t,s,n,i]=e,o=n-t,a=i-s;return new r([5],[t,s,o,0,0,a,-o,0,0,-a])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let s=0;s<this.lengths.length;s++){const r=this.lengths[s];for(let s=0;s<r;s++)e(this.coords[2*(s+t)],this.coords[2*(s+t)+1]);t+=r}}deltaDecode(){const e=this.clone(),{coords:t,lengths:s}=e;let r=0;for(const e of s){for(let s=1;s<e;s++)t[2*(r+s)]+=t[2*(r+s)-2],t[2*(r+s)+1]+=t[2*(r+s)-1];r+=e}return e}clone(e){if(0===this.lengths.length)return new r([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce(((e,t)=>e+t))),s=this.coords.slice(0,t);return e?(e.set(s),new r(this.lengths,e,this.hasIndeterminateRingOrder)):new r(Array.from(this.lengths),Array.from(s),this.hasIndeterminateRingOrder)}}},6518:(e,t,s)=>{s.d(t,{F:()=>a});var r=s(44208),n=s(75503),i=s(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.w(9,(0,r.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach(((s,r)=>{e[t++]=r})),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((e=>this._idByBounds.has(e)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,i.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,s){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,s)}(this._index,e,(e=>t(this._idByBounds.get(e))))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221:(e,t,s)=>{s.d(t,{A:()=>y});var r=s(4576),n=s(49186),i=s(65529),o=s(53966),a=s(70328),l=s(19419),d=s(90708),p=s(6518),u=s(51441),h=s(37730);const c=(0,a.vt)();class y{constructor(e){this.geometryInfo=e,this._boundsStore=new p.F,this._featuresById=new Map,this._markedIds=new Set,this.events=new i.A,this.featureAdapter=h.T}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach((t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,s,r,n]=this.fullBounds;return{xmin:t,ymin:s,xmax:r,ymax:n,spatialReference:(0,u.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map((e=>this._upsert(e)));return this._emitChanged(),t.filter(r.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const s of e){const e=this._boundsStore.get(s.objectId);e&&t((0,a.Jt)(c,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach((t=>e(t)))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,(e=>{t(this._featuresById.get(e))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let e=!1;this._featuresById.forEach(((t,s)=>{this._markedIds.has(s)||(e=!0,this._remove(t))})),this._markedIds.clear(),e&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const s=this._featuresById.get(t);let r;if(this._markedIds.add(t),s?(e.displayId=s.displayId,r=this._boundsStore.get(t),this._boundsStore.delete(t)):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);r=(0,d.jQ)(null!=r?r:(0,l.vt)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=r&&this._boundsStore.set(t,r),this._featuresById.set(t,e)}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const s=this._featuresById.get(t);if(!s)return this._add(e),e;this._markedIds.add(t);const{geometry:r,attributes:i}=e;for(const e in i)s.attributes[e]=i[e];return r&&(s.geometry=r,this._boundsStore.set(t,(0,d.jQ)((0,l.vt)(),r,this.geometryInfo.hasZ,this.geometryInfo.hasM)??null)),s}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._markedIds.delete(t),this._boundsStore.delete(t),this._featuresById.delete(t),e}}},37730:(e,t,s)=>{s.d(t,{T:()=>o});var r=s(27647),n=s(43334),i=s(92722);const o={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new n.Om(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>(null==e.centroid&&(e.centroid=(0,r.Q)(new i.A,e.geometry,t.hasZ,t.hasM)),e.centroid)}},64714:(e,t,s)=>{s.d(t,{F0:()=>l,Vx:()=>u,e2:()=>c,f:()=>y});var r=s(44208),n=s(4718),i=s(99352),o=s(4071),a=s(93470);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?a.Cb:"esriGeometryPolyline"===e?a.yM:a.WR}}}const d=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let p=1;function u(e,t){if((0,r.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let s=`this${h(t)} = null;`;for(const t in e)s+=`this${h(t)} = ${JSON.stringify(e[t])};`;const r=new Function(`\n return class AttributesClass$${p++} {\n constructor() {\n ${s};\n }\n }\n `)();return()=>new r}catch(s){return()=>({[t]:null,...e})}}function h(e){return d.test(e)?`.${e}`:`["${e}"]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(e)}}]}function y(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryBins:o.$,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},80340:(e,t,s)=>{s.d(t,{P:()=>I});var r=s(90237),n=(s(59456),s(69622)),i=s(49186),o=s(53966),a=s(91869),l=s(39516),d=s(10107),p=(s(44208),s(87811),s(40608)),u=s(39829),h=s(57251),c=s(21325),y=s(85342),m=s(69860),f=s(45654),g=s(71402),_=s(42538),b=s(61956),w=s(5443);let I=class extends n.A{constructor(e){super(e),this._processingCacheUpdatesLookup=new Map,this.knowledgeGraph=null,this.inclusionModeDefinition={generateAllSublayers:!0,namedTypeDefinitions:new Map},this.entityTypeNames=new Set,this.relationshipTypeNames=new Set,this.geographicLookup=new Map,this.sublayerCaches=new Map,this.nodeConnectionsLookup=new Map,this.relationshipConnectionsLookup=new Map,this.memberIdTypeLookup=new Map;const t=new Map;e.knowledgeGraph.dataModel.entityTypes?.forEach((s=>{s.name&&(t.set(s.name,"entity"),this._processingCacheUpdatesLookup.set(s.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.entityTypeNames.add(s.name),s.properties?.forEach((e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(s.name,{name:e.name??"",geometryType:e.geometryType})})))})),e.knowledgeGraph.dataModel.relationshipTypes?.forEach((s=>{s.name&&(t.set(s.name,"relationship"),this._processingCacheUpdatesLookup.set(s.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.relationshipTypeNames.add(s.name),s.properties?.forEach((e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(s.name,{name:e.name??"",geometryType:e.geometryType})})))})),e.inclusionModeDefinition?.namedTypeDefinitions.forEach(((s,r)=>{if("entity"===t.get(r))this.entityTypeNames.add(r);else{if("relationship"!==t.get(r))return o.A.getLogger(this).warn(`A named type, ${r}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(r);this.relationshipTypeNames.add(r)}const n=new Map;s.members?.forEach((e=>{(0,a.tE)(this.memberIdTypeLookup,e.id,(()=>new Set)).add(r);const t=this.getById(e.id);t&&n.set(e.id,t)})),this.sublayerCaches.set(r,n)}))}addToLayer(e){e.forEach((({typeName:e,id:t})=>{if(!this.inclusionModeDefinition)throw new i.A("knowledge-graph:layer-data-manager","You cannot add to a layer's exclusion list if it was not created with an exclusion list originally");if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){const s=this.inclusionModeDefinition.namedTypeDefinitions.get(e);s.members||(s.members=new Map),s.members.set(t,{id:t}),(0,a.tE)(this.memberIdTypeLookup,t,(()=>new Set)).add(e)}}else{const s=new Map;s.set(t,{id:t}),this.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:s}),(0,a.tE)(this.memberIdTypeLookup,t,(()=>new Set)).add(e)}}))}getById(e){return m.A.getInstance().readFromStoreById(e)}async getData(e,t,s){if(t.objectType.name&&this.inclusionModeDefinition?.namedTypeDefinitions&&this.inclusionModeDefinition.namedTypeDefinitions.size>0&&!this.inclusionModeDefinition.namedTypeDefinitions.has(t.objectType.name))return[];let r;if(r=e||new b.A({where:"1=1",outFields:["*"]}),"link-chart"===t.parentCompositeLayer.type){const e=t.parentCompositeLayer,s=this._processingCacheUpdatesLookup.get(t.objectType.name??""),n=r.outFields;n&&1===n.length&&n[0]===y.dr&&"1=1"===r.where||await Promise.all(s??[]);const i=this.sublayerCaches.has(t.objectType.name??"")?Array.from(this.sublayerCaches.get(t.objectType.name)?.values()):[],o=[];return i.forEach((s=>{if(this.relationshipTypeNames.has(t.objectType.name)){s.geometry=e.relationshipLinkChartDiagramLookup.get(s.attributes[t.objectIdField]);const r=this.memberIdTypeLookup.get(s.attributes[y.Cz]),n=this.memberIdTypeLookup.get(s.attributes[y.KQ]),i=this._isEndEntitySpatial(r,s,y.Cz),o=this._isEndEntitySpatial(n,s,y.KQ);s.attributes[y.BL]=Number(i&&o)}else{s.geometry=e.entityLinkChartDiagramLookup.get(s.attributes[t.objectIdField]);const r=this.geographicLookup.get(t.objectType.name);r&&s.attributes[r.name]?s.attributes[y.BL]=1:s.attributes[y.BL]=0}s.attributes[y.T1]=s.geometry,o.push(s)})),o}return this.retrieveDataFromService(r,t,s)}async getConnectedRecordIds(e,t){const s=[];let r="";const n=[],i=new Map;if(e.forEach((e=>{if(this.memberIdTypeLookup.has(e))for(const t of this.memberIdTypeLookup.get(e)){if(!this.entityTypeNames.has(t))return;i.has(t)?i.get(t)?.push(e):i.set(t,[e])}})),t&&0!==t?.length){for(const e of t)r=r+e+"|";r=r.slice(0,-1)}const a={};let l="",d=-1;for(const[e,s]of i){d++,0!==d&&(l+=" UNION ");const n=`${e}_ids`;a[n]=s,l+=t&&0!==t?.length?`MATCH (n:${e}) WHERE id(n) IN $${n} WITH n MATCH (n)-[r:${r}]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`:`MATCH (n:${e}) WHERE id(n) IN $${n} WITH n MATCH (n)-[r]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`}const p=new Promise((e=>{(async()=>{const e=(await(0,g.executeQueryStreaming)(this.knowledgeGraph,new _.A({openCypherQuery:l,bindParameters:a}))).resultRowsStream.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;for(let e=0;e<r.length;e++){const t=r[e];s.push({id:t[0],typeName:t[1]}),s.push({id:t[2],typeName:t[3]})}}}catch(e){if("AbortError"!==e.name)throw e;o.A.getLogger(this).info("Request aborted as expected")}})().then((()=>{e()}))}));return n.push(p),this.refreshCacheContent(),await Promise.all(n),s}async getRelationshipsBetweenNodes(e,t){const s=[],r=(await(0,g.executeQueryStreaming)(this.knowledgeGraph,new _.A({openCypherQuery:"MATCH (n)-[r]->(m) WHERE id(n) IN $nodeIds AND id(m) in $nodeIds AND NOT id(r) IN $relationshipExclusionIds return id(r), type(r)",bindParameters:{nodeIds:e,relationshipExclusionIds:t}}))).resultRowsStream.getReader();try{for(;;){const{done:e,value:t}=await r.read();if(e)break;for(let e=0;e<t.length;e++){const r=t[e];s.push({id:r[0],typeName:r[1]})}}}catch(e){if("AbortError"!==e.name)throw e;o.A.getLogger(this).info("Request aborted as expected")}return s}async getRelationshipsFromNodes(e,t,s){const r=[],n=(await(0,g.executeQueryStreaming)(this.knowledgeGraph,new _.A({openCypherQuery:"MATCH (n)-[r]-(m) WHERE id(n) IN $targetEntityIds AND id(m) in $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds return id(r), type(r)",bindParameters:{targetEntityIds:e,possibleConnectionEntityIds:t,relationshipExclusionIds:s}}))).resultRowsStream.getReader();try{for(;;){const{done:e,value:t}=await n.read();if(e)break;for(let e=0;e<t.length;e++){const s=t[e];r.push({id:s[0],typeName:s[1]})}}}catch(e){if("AbortError"!==e.name)throw e;o.A.getLogger(this).info("Request aborted as expected")}return r}async refreshCacheContent(e,t,s,r=!0){const n=m.A.getInstance(),o=[],l=new Map,d=new Map;this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&d.set(e.name,e)})),this.knowledgeGraph.dataModel.relationshipTypes?.forEach((e=>{e.name&&d.set(e.name,e)})),e||this.inclusionModeDefinition?e?e.forEach((e=>{if(this.memberIdTypeLookup.has(e))for(const t of this.memberIdTypeLookup.get(e))l.has(t)?l.get(t)?.push(e):l.set(t,[e])})):this.inclusionModeDefinition?.namedTypeDefinitions?.forEach(((e,t)=>{e.useAllData?l.set(t,null):e.members&&e.members.forEach((e=>{l.has(t)&&null!==l.get(t)?l.get(t)?.push(e.id):l.set(t,[e.id])}))})):(this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&l.set(e.name,null)})),this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&l.set(e.name,null)})));for(const[e,p]of l){const l=new Promise((o=>{(async()=>{const o=new Set,l=[];let u,h="",c=!1;if(t||d.get(e)?.properties?.forEach((e=>{e.name&&o.add(e.name)})),s&&this.geographicLookup.has(e)){const t=this.geographicLookup.get(e)?.name;t&&o.add(t)}if(this.entityTypeNames.has(e))h=`MATCH (n:${e}) ${p?"WHERE id(n) IN $ids ":""}return ID(n)`,o.forEach((e=>{h+=`, n.${e}`,l.push(e)}));else{if(!this.relationshipTypeNames.has(e))throw new i.A("knowledge-graph:layer-data-manager",`The graph type of ${e} could not be determined. Was this type set in the KG data model and inclusion definition?`);c=!0,h=`MATCH ()-[n:${e}]->() ${p?"WHERE id(n) IN $ids ":""}return ID(n), id(startNode(n)), id(endNode(n))`,o.forEach((e=>{h+=`, n.${e}`,l.push(e)}))}u=new _.A(p?{openCypherQuery:h,bindParameters:{ids:p}}:{openCypherQuery:h});const m=(await(0,g.executeQueryStreaming)(this.knowledgeGraph,u)).resultRowsStream.getReader();for(;;){const{done:t,value:s}=await m.read();if(t)break;const i=[];for(let e=0;e<s.length;e++){const t=s[e];let r=0,n=0;const o={properties:{}};for(o.id=t[r],r++,n++,c&&(o.originId=t[r],r++,n++,o.destinationId=t[r],r++,n++,(0,a.tE)(this.nodeConnectionsLookup,o.originId,(()=>new Set)).add(o.id),(0,a.tE)(this.nodeConnectionsLookup,o.destinationId,(()=>new Set)).add(o.id),(0,a.tE)(this.relationshipConnectionsLookup,o.id,(()=>[o.originId,o.destinationId])));r<t.length;r++)o.properties[l[r-n]]=t[r];i.push(o)}const o=n.writeToStore(i,y.dr,this.geographicLookup.get(e)?.name);this.sublayerCaches.has(e)||this.sublayerCaches.set(e,new Map),r&&!this.inclusionModeDefinition?.namedTypeDefinitions.has(e)&&this.inclusionModeDefinition?.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),r&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members&&(this.inclusionModeDefinition.namedTypeDefinitions.get(e).members=new Map);const d=this.sublayerCaches.get(e);o.forEach((t=>{d?.set(t.attributes[y.dr],t),r&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.has(t.attributes[y.dr])&&(this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.set(t.attributes[y.dr],{id:t.attributes[y.dr]}),(0,a.tE)(this.memberIdTypeLookup,t.attributes[y.dr],(()=>new Set)).add(e))}))}})().then((()=>{o(null)}))}));o.push(l),this._processingCacheUpdatesLookup.get(e)?.push(l)}await Promise.all(o)}removeFromLayer(e){const t=new Set,s=new Set(e.map((e=>e.id)));for(const s of e)t.add(s.typeName),1===this.memberIdTypeLookup.get(s.id)?.size?this.memberIdTypeLookup.delete(s.id):this.memberIdTypeLookup.get(s.id)?.delete(s.typeName),this.inclusionModeDefinition?.namedTypeDefinitions.forEach(((e,t)=>{t===s.typeName&&e.members?.has(s.id)&&e.members.delete(s.id)}));t.forEach((e=>{this.sublayerCaches.get(e)?.forEach(((t,r)=>{s.has(r)&&this.sublayerCaches.get(e)?.delete(r)}))}))}async retrieveDataFromService(e,t,s){const r=m.A.getInstance(),n=new Set,o=[];let a,d="",p=[];const b="relationship"===t.graphType,I=this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData,v=t.parentCompositeLayer.sublayerIdsCache.get(t.objectType.name);let T=!I&&v?Array.from(v).sort():null;if(this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData)this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData&&null!=e.objectIds&&(T=e.objectIds);else if(null!=e.objectIds&&T&&T.length>0){const t=e.objectIds;e.objectIds=T.filter((e=>t.includes(e)))}else if(null!=e.objectIds)T=e.objectIds;else{if(this.inclusionModeDefinition?.namedTypeDefinitions.has(t.objectType.name)&&(!this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members||this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members?.size<1))return e.objectIds=[],[];e.objectIds=T}if(null!=e.outFields){const s=e.outFields;s.includes("*")?t.fields.forEach((e=>{n.add(e.name)})):s.forEach((e=>{e!==y.dr&&e!==t.geometryFieldName&&n.add(e)}))}if(null!=e.geometry){const s=e.geometry;let r;const p=t.parentCompositeLayer.dataManager.knowledgeGraph.serviceDefinition,y=p?.spatialReference,m=p?.serviceCapabilities?.geometryCapabilities;let g=m?.geometryMaxBoundingRectangleSizeX,I=m?.geometryMaxBoundingRectangleSizeY;if("point"===s.type){let e=s;e.spatialReference?.isWGS84||(await(0,h.initializeProjection)(e.spatialReference,c.KK),e=(0,h.project)(e,c.KK)),r=new w.A({spatialReference:c.KK,xmin:e.x-1e-4,ymin:e.y-1e-4,xmax:e.x+1e-4,ymax:e.y+1e-4})}else s?.extent?.spatialReference&&!s.spatialReference?.isWGS84?(await(0,h.initializeProjection)(s.extent.spatialReference,c.KK),r=(0,h.project)(s.extent,c.KK)):r=s.extent;if(g&&I&&y){if(4326!==y.wkid){const e=new w.A({spatialReference:y,xmax:g,ymax:I}),t=(0,h.project)(e,c.KK);g=t.xmax,I=t.ymax}if(r.xmax-r.xmin>g)throw new i.A("knowledge-graph:layer-data-manager",`Extent x bounds should be within ${g}° latitude, limit exceeded`);if(r.ymax-r.ymin>I)throw new i.A("knowledge-graph:layer-data-manager",`Extent y bounds should be within ${I}° longitude, limit exceeded`)}if(null!=e.where&&"1=1"!==e.where){const s=await(0,l.G)(e.where.toUpperCase(),t.fieldsIndex);t.fields.forEach((e=>{s.fieldNames.includes(e.name)&&n.add(e.name)}))}d=b?`Match ()-[n:${t.objectType.name}]->() WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n), id(startNode(r)), id(endNode(r))`:`Match (n:${t.objectType.name}) WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n)`,t.geometryFieldName&&n.add(t.geometryFieldName),n.forEach((e=>{d+=`, n.${e}`,o.push(e)})),a=new _.A({openCypherQuery:d,bindParameters:{param_filter_geom:new u.A({rings:(0,f.DX)(r)})}})}else{let s="";if(null!=e.where&&"1=1"!==e.where){const r=await(0,l.G)(e.where,t.fieldsIndex);t.fields.forEach((e=>{r.fieldNames.includes(e.name)&&n.add(e.name)}));const i=new Set(["column-reference","string","number","binary-expression"]),o=new Set(["=","<","<=","<>",">",">=","AND","OR","LIKE"]);let a=!1;const d=e=>{if("column-reference"===e.type)return`n.${e.column}`;if("string"===e.type)return`'${e.value}'`;if("number"===e.type)return`${e.value}`;if("binary-expression"===e.type&&i.has(e.left.type)&&i.has(e.right.type)&&o.has(e.operator))return`${d(e.left)} ${e.operator} ${d(e.right)}`;if("binary-expression"===e.type&&"LIKE"===e.operator){let t="";if("function"===e.left.type&&"column-reference"===e.left.args.value[0].type)t+=`lower(n.${e.left.args.value[0].column})`;else{if("column-reference"!==e.left.type)return a=!0,"";t+=`lower(n.${e.left.column})`}if(t+=" CONTAINS (","string"!==e.right.type)return a=!0,"";{let s=e.right.value;"%"===s.charAt(0)&&(s=s.slice(1)),"%"===s.charAt(s.length-1)&&(s=s.slice(0,-1)),t+=`'${s.toLowerCase()}')`}return t}return a=!0,""};s=d(r.parseTree),a&&(s="")}let r="";r=b?`Match ()-[n:${t.objectType.name}]->()`:`Match (n:${t.objectType.name})`;let i=!1;T&&(i=!0,r+=" WHERE ID(n) IN $ids"),s&&(r+=i?" AND":" WHERE",r+=` ${s}`),r+=" return ID(n)",b&&(r+=", id(startNode(n)), id(endNode(n))"),e.returnGeometry&&t.geometryFieldName&&n.add(t.geometryFieldName),n.forEach((e=>{r+=`, n.${e}`,o.push(e)})),a=new _.A(T?{openCypherQuery:r,bindParameters:{ids:T}}:{openCypherQuery:r})}const M=(await(0,g.executeQueryStreaming)(t.parentCompositeLayer.dataManager.knowledgeGraph,a,s)).resultRowsStream.getReader();for(;;){const{done:e,value:s}=await M.read();if(e)break;const n=[];for(let e=0;e<s.length;e++){const t=s[e];let r=0,i=0;const a={properties:{}};for(a.id=t[r],r++,i++,b&&(a.originId=t[r],r++,i++,a.destinationId=t[r],r++,i++);r<t.length;r++)a.properties[o[r-i]]=t[r];n.push(a)}p=p.concat(r.writeToStore(n,y.dr,t.parentCompositeLayer.dataManager.geographicLookup.get(t.objectType.name)?.name))}return p}_isEndEntitySpatial(e,t,s){for(const r of e??[])if(this.entityTypeNames.has(r)){const e=this.geographicLookup.get(r),n=e&&this.sublayerCaches.get(r)?.get(t.attributes[s]);if(e&&n?.attributes[e.name])return!0}return!1}};(0,r._)([(0,d.M)()],I.prototype,"knowledgeGraph",void 0),(0,r._)([(0,d.M)()],I.prototype,"inclusionModeDefinition",void 0),(0,r._)([(0,d.M)()],I.prototype,"entityTypeNames",void 0),(0,r._)([(0,d.M)()],I.prototype,"relationshipTypeNames",void 0),(0,r._)([(0,d.M)()],I.prototype,"geographicLookup",void 0),(0,r._)([(0,d.M)()],I.prototype,"sublayerCaches",void 0),(0,r._)([(0,d.M)()],I.prototype,"nodeConnectionsLookup",void 0),(0,r._)([(0,d.M)()],I.prototype,"relationshipConnectionsLookup",void 0),(0,r._)([(0,d.M)()],I.prototype,"memberIdTypeLookup",void 0),I=(0,r._)([(0,p.$)("esri.layers.knowledgeGraph.KnowledgeGraphLayerDataManager")],I)},70643:(e,t,s)=>{s.d(t,{A:()=>K});var r=s(90237),n=(s(59456),s(13874)),i=(s(86162),s(94409),s(65345),s(42980),s(20917),s(92438),s(96576),s(93618),s(65494)),o=s(15036),a=s(4718),l=s(92071),d=(s(29953),s(10107)),p=(s(44208),s(53966),s(40608)),u=s(43937),h=s(35666),c=s(57251),y=s(16930),m=s(21325),f=s(4146),g=s(83221),_=s(17970),b=s(64714);s(87811);const w=(0,s(17036).p)(),I=e=>{let t=class extends e{constructor(){super(...arguments),this.fields=[],this.fieldsIndex=null}};return(0,r._)([(0,d.M)(w.fields)],t.prototype,"fields",void 0),(0,r._)([(0,d.M)(w.fieldsIndex)],t.prototype,"fieldsIndex",void 0),t=(0,r._)([(0,p.$)("esri.layers.knowledgeGraph.KnowledgeGraphSublayerBase")],t),t};var v=s(85342),T=s(63074),M=s(87718),E=s(76294),A=s(32756),x=s(54310),k=s(25036),S=s(82935),N=s(10873),L=s(13213),C=s(20437),R=s(30524),D=s(81457),B=s(39383),O=s(96184),j=s(22671),F=s(61956),P=s(30291),q=s(61322),G=s(5443),$=s(39829),Q=s(82799),Y=s(86738),H=s(50498);function J(e){if(!e.json)return e;e.json.write=U(e.json.write);const t=e.json.origins;if(!t)return e;let s;for(s in t){const e=t[s];e&&(e.write=U(e.write))}return e}function U(e){return"object"==typeof e&&e?(!1!==e.enabled&&(e.overridePolicy=function(e){const{target:t,writer:s,overridePolicy:r,...n}=e;return function(e,t){const s=z.call(this,e,t);return s.enabled?{...n,...s}:s}}(e)),e):!0===e?X():e}function X(){return{overridePolicy:z}}function z(e,t){const s=!!this.geometryType;let r={enabled:s};return s&&(r={...r,...W.call(this,e,t)}),r}function W(e,t){return{ignoreOrigin:this.originIdOf(t)>h.Gr.DEFAULTS}}let V=class extends(I((0,E.J)((0,M.F)((0,T.dM)((0,A.f)((0,S.e)((0,k.j)((0,x.J)((0,l.P)(f.A)))))))))){constructor(e){super(e),this.blendMode="normal",this.capabilities=(0,b.f)(!1,!1),this.charts=null,this.definitionExpression=null,this.displayField="",this.effect=null,this.elevationInfo=null,this.featureEffect=null,this.graphType=null,this.labelsVisible=!0,this.labelingInfo=null,this.layerType=null,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.objectIdField=v.dr,this.objectType=null,this.opacity=1,this.orderBy=null,this.parentCompositeLayer=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.refreshInterval=0,this.source={openPorts:()=>this.load().then((()=>{const e=new MessageChannel;return new q.default(e.port1,{channel:e,client:{queryFeatures:(e,t={})=>{const s=F.A.fromJSON(e);return this.queryFeaturesJSON(s,t)}}}),[e.port2]}))},this.type="knowledge-graph-sublayer",this.useViewTime=!0,this.visible=!0}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}get fields(){const e=[];return this.objectType?.properties?.forEach((t=>{const s="esriFieldTypeOID"===t.fieldType?"esriFieldTypeInteger":t.fieldType;e.push(C.A.fromJSON({name:t.name,type:s,alias:t.alias,defaultValue:t.defaultValue,editable:t.editable,nullable:t.nullable}))})),e.push(C.A.fromJSON({name:this.objectIdField,type:"esriFieldTypeString",alias:this.objectIdField,editable:!1}),C.A.fromJSON({name:v.M1,type:"esriFieldTypeInteger",alias:v.M1,editable:!1}),C.A.fromJSON({name:v.BL,type:"esriFieldTypeInteger",alias:v.BL,editable:!1})),e}get geometryType(){if("link-chart"===this.parentCompositeLayer?.type)return"relationship"===this.graphType?"polyline":"point";const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.geometryType;return t&&"esriGeometryNull"!==t?H.g.fromJSON(t):null}get geometryFieldName(){if("link-chart"===this.parentCompositeLayer?.type)return v.T1;const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name);return e?.name??null}get graphTypeName(){return this.objectType?.name}get hasM(){const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.name,s=t?this.objectType?.properties?.[t]:null;return s?.hasM??!1}get hasZ(){const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.name,s=t?this.objectType?.properties?.[t]:null;return s?.hasZ??!1}set renderer(e){(0,R.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){return this._isOverridden("renderer")?this._get("renderer"):"link-chart"===this.parentCompositeLayer?.type?"relationship"===this.graphType?(0,i.r)((0,b.F0)(H.g.toJSON("polyline")).renderer):(0,i.r)((0,b.F0)(H.g.toJSON("point")).renderer):(0,i.r)((0,b.F0)(H.g.toJSON(this.geometryType)).renderer)}get spatialReference(){return this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel?.spatialReference??y.A.WGS84}set timeInfo(e){(this.fieldsIndex.has(e?.startField??"")||this.fieldsIndex.has(e?.endField??""))&&(0,R.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}get title(){return this._isOverridden("title")?this._get("title"):this.graphTypeName}set title(e){this._set("title",e)}writeTitle(e,t){t.title=e??"Layer"}createPopupTemplate(e){return(0,P.tn)(this,e)}createQuery(){return new F.A({where:"1=1",outFields:["*"]})}getField(e){for(let t=0;t<this.fields.length;t++)if(this.fields[t].name===e)return this.fields[t];return null}getFieldDomain(e,t){return null}async queryFeatures(e,t){const{resolvedQuery:s,queryEngine:r}=await this._setupQueryObjects(e),n=j.A.fromJSON(await r.executeQuery(s.toJSON(),t?.signal));return n.features.forEach((e=>{e.sourceLayer=this})),n}async queryFeaturesJSON(e,t){const{resolvedQuery:s,queryEngine:r}=await this._setupQueryObjects(e);return await r.executeQuery(s.toJSON(),t?.signal)}async queryFeatureCount(e,t){const{resolvedQuery:s,queryEngine:r}=await this._setupQueryObjects(e);return r.executeQueryForCount(s.toJSON(),t?.signal)}async queryExtent(e={},t){const s={...e,returnGeometry:!0},{resolvedQuery:r,queryEngine:n}=await this._setupQueryObjects(s),i=await n.executeQueryForExtent(r.toJSON(),t?.signal);let o;return o=null!=i.extent?.xmin&&null!=i.extent?.xmax&&null!=i.extent?.ymin&&null!=i.extent?.ymax?new G.A(i.extent):new G.A,{count:i.count,extent:o}}async queryObjectIds(e,t){const s=F.A.from(e);let r;if("link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)r=this._cachedQueryEngine;else{const e=await this.parentCompositeLayer.dataManager.getData(s,this,t);r=this.loadQueryEngine(e)}return r.executeQueryForIds(s.toJSON(),t?.signal)}loadQueryEngine(e){const t=new g.A({geometryType:H.g.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ}),s=new _.d({fieldsIndex:this.fieldsIndex.toJSON(),geometryType:H.g.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ,objectIdField:this.objectIdField,spatialReference:this.spatialReference.toJSON(),timeInfo:this.timeInfo?.toJSON(),featureStore:t});return s.featureStore.addMany(e),s}async refreshCachedQueryEngine(){const e=await this.parentCompositeLayer.dataManager.getData(new F.A({where:"1=1",outFields:[v.dr]}),this);this._cachedQueryEngine=this.loadQueryEngine(e)}async _setupQueryObjects(e,t){const s=F.A.from(e),r=s.geometry;let n;if(r&&!r.spatialReference?.isWGS84&&(await(0,c.initializeProjection)(r.spatialReference,m.KK),s.geometry=(0,c.project)(r instanceof $.A||r instanceof Q.A||r instanceof Y.A?r:r.extent,m.KK)),"link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)n=this._cachedQueryEngine;else{const e=await this.parentCompositeLayer.dataManager.getData(s,this,t);n=this.loadQueryEngine(e)}return{resolvedQuery:s,queryEngine:n}}};(0,r._)([(0,d.M)(J((0,a.o8)(T.sU)))],V.prototype,"blendMode",void 0),(0,r._)([(0,d.M)()],V.prototype,"capabilities",void 0),(0,r._)([(0,d.M)({json:{origins:{"web-scene":{write:!1}},write:X()}})],V.prototype,"charts",void 0),(0,r._)([(0,d.M)({readOnly:!0})],V.prototype,"defaultPopupTemplate",null),(0,r._)([(0,d.M)({type:String,json:{origins:{service:{read:!1}},name:"layerDefinition.definitionExpression",write:{ignoreOrigin:!0}}})],V.prototype,"definitionExpression",void 0),(0,r._)([(0,d.M)()],V.prototype,"displayField",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(T.LF)))],V.prototype,"effect",void 0),(0,r._)([(0,d.M)()],V.prototype,"elevationInfo",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(M.Y)))],V.prototype,"featureEffect",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(L.d)))],V.prototype,"featureReduction",null),(0,r._)([(0,d.M)()],V.prototype,"fields",null),(0,r._)([(0,d.M)()],V.prototype,"geometryType",null),(0,r._)([(0,d.M)()],V.prototype,"geometryFieldName",null),(0,r._)([(0,d.M)({type:["entity","relationship"],nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],V.prototype,"graphType",void 0),(0,r._)([(0,d.M)({type:String,nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],V.prototype,"graphTypeName",null),(0,r._)([(0,d.M)()],V.prototype,"hasM",null),(0,r._)([(0,d.M)()],V.prototype,"hasZ",null),(0,r._)([(0,d.M)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],V.prototype,"id",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(N.kF)))],V.prototype,"labelsVisible",void 0),(0,r._)([(0,d.M)({type:[D.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:B.w,write:X()}})],V.prototype,"labelingInfo",void 0),(0,r._)([(0,d.M)({readOnly:!0,json:{read:!1,write:{writer(e,t){switch(this.parentCompositeLayer.type){case"link-chart":t.layerType="LinkChartSubLayer";break;case"knowledge-graph":t.layerType=this.geometryType?"KnowledgeGraphSubLayer":"KnowledgeGraphSubTable"}},isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],V.prototype,"layerType",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(N.fV)))],V.prototype,"legendEnabled",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(N.hG)))],V.prototype,"maxScale",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(N.hn)))],V.prototype,"minScale",void 0),(0,r._)([(0,d.M)()],V.prototype,"objectIdField",void 0),(0,r._)([(0,d.M)()],V.prototype,"objectType",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(N.ke)))],V.prototype,"opacity",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(A.n)))],V.prototype,"orderBy",void 0),(0,r._)([(0,d.M)()],V.prototype,"parentCompositeLayer",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(N.M6)))],V.prototype,"popupEnabled",void 0),(0,r._)([(0,d.M)({type:n.A,json:{name:"popupInfo",write:{ignoreOrigin:!0}}})],V.prototype,"popupTemplate",void 0),(0,r._)([(0,d.M)({type:Number,json:{write:{overridePolicy:W}}})],V.prototype,"refreshInterval",void 0),(0,r._)([(0,d.M)({types:o.H,json:{name:"layerDefinition.drawingInfo.renderer",write:X()}})],V.prototype,"renderer",null),(0,r._)([(0,d.M)()],V.prototype,"source",void 0),(0,r._)([(0,d.M)()],V.prototype,"spatialReference",null),(0,r._)([(0,d.M)({type:O.A,json:{name:"layerDefinition.timeInfo",write:!0,origins:{"web-document":{name:"layerDefinition.timeInfo",read:!0,write:!0},"portal-item":{name:"layerDefinition.timeInfo",read:!0,write:!0}}}})],V.prototype,"timeInfo",null),(0,r._)([(0,d.M)({type:String,json:{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],V.prototype,"title",null),(0,r._)([(0,u.K)("title")],V.prototype,"writeTitle",null),(0,r._)([(0,d.M)({json:{read:!1}})],V.prototype,"type",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(S.B)))],V.prototype,"useViewTime",void 0),(0,r._)([(0,d.M)({type:Boolean,json:{name:"visibility",write:X()}})],V.prototype,"visible",void 0),V=(0,r._)([(0,p.$)("esri.layers.knowledgeGraph.KnowledgeGraphSublayer")],V);const K=V},69860:(e,t,s)=>{s.d(t,{A:()=>a}),s(59456);var r=s(90708),n=s(43334),i=s(85342),o=s(65864);class a{constructor(){this._featureLookup=new Map}static getInstance(){return a.instance||(a.instance=new a),a.instance}static resetInstance(){a.instance&&(a.instance=null)}deleteFromStore(e){e.forEach((e=>{this._featureLookup.delete(e)}))}readFromStoreByList(e){const t=[];return e.forEach((e=>{const s=this.readFromStoreById(e);s&&t.push(s)})),t}readFromStoreById(e){return this._featureLookup.get(e)??null}writeToStore(e,t,s){const a=[];return e.forEach((e=>{if(!e?.id)return;e.properties||(e.properties=[]);let l,d=null;if(s&&e.properties[s]&&(d=(0,r.Ux)(e.properties[s])),"originId"in e&&"destinationId"in e&&(e.properties[i.Cz]=e.originId,e.properties[i.KQ]=e.destinationId),e.properties[t]=e.id,e.id&&this._featureLookup.has(e.id)&&this._featureLookup.get(e.id).attributes){const r=this._featureLookup.get(e.id),i=JSON.parse(JSON.stringify(Object.assign(r.attributes,e.properties)));s&&e.properties[s]&&(i[s]=(0,o.rS)(e.properties[s])),l=new n.Om(d?JSON.parse(JSON.stringify(d)):r?.geometry?JSON.parse(JSON.stringify(r.geometry)):null,i,null,e.properties[t])}else l=new n.Om(d?JSON.parse(JSON.stringify(d)):null,e.properties,null,e.properties[t]);this._featureLookup.set(`${e.typeName?`${e.typeName}__${e.id}`:e.id}`,l),a.push(l)})),a}}},85342:(e,t,s)=>{s.d(t,{BL:()=>d,Cz:()=>i,KQ:()=>o,M1:()=>l,T1:()=>a,dr:()=>n,qN:()=>h});var r=s(71402);const n="ESRI__ID",i="ESRI__OriginID",o="ESRI__DestID",a="ESRI__LayoutGeometry",l="ESRI__AggregationCount",d="LC.ESRI__IsSpatial",p={initializeLayersFromClientData:async(e,t)=>{if(t||(t=[...e.layers,...e.tables].map((e=>e.graphTypeName))),0===t?.length)return;const s=new Map;for(const r of t)s.set(r,u(e,r));const n=await(0,r.fetchClientDataAtKeys)(e.dataManager.knowledgeGraph,Array.from(s.values()));for(const t of[...e.layers,...e.tables]){const s=t.objectType.name;if(null===s)continue;const r=n.get(u(e,s));if(r){const e=JSON.parse(r);null===e||"object"!=typeof e||e.hasOwnProperty("showLabels")||(e.showLabels=!1),t.read(e,{origin:"service"})}}}},u=(e,t)=>"knowledge-graph"===e.type?`${t}/Map`:`${t}/LinkChart/LinkChartSubLayer`;async function h(e,t){return p.initializeLayersFromClientData(e,t)}},45654:(e,t,s)=>{s.d(t,{DX:()=>_,_s:()=>w,aq:()=>b,fe:()=>I}),s(59456),s(52106);var r,n,i,o,a=s(78888),l=(s(61147),s(49186)),d=s(91869),p=(s(94194),s(90708),s(85342),s(69860),s(8460),s(71402)),u=s(42538);s(16930),(n=r||(r={})).ELEMENTUID="ELEMENTUID",n.TYPENAME="TYPENAME",r.ELEMENTUID,r.TYPENAME,function(e){e[e.ELEMENTUID=0]="ELEMENTUID",e[e.TYPENAME=1]="TYPENAME"}(i||(i={})),function(e){e[e.ELEMENTUID=0]="ELEMENTUID",e[e.TYPENAME=1]="TYPENAME",e[e.FROMUID=2]="FROMUID",e[e.TOUID=3]="TOUID"}(o||(o={}));var h,c,y,m,f,g=s(45724);function _(e){if(!e.spatialReference.isWGS84)throw new l.A("knowledge-graph:layer-support-utils","The extentToInBoundsRings function only supports WGS84 spatial references.");return e.clone().normalize().map((e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]))}async function b(e,t){const s=[],r=new Map,n=[];if(t.dataModel?.relationshipTypes)for(const e of t.dataModel.relationshipTypes)e.name&&r.set(e.name,[]);for(const t of e)r.has(t.typeName)&&r.get(t.typeName)?.push(t.id);for(const[e,i]of r){if(i.length<1)continue;const r=new u.A({openCypherQuery:`MATCH (n)-[r:${e}]->(m) WHERE id(r) in $ids RETURN id(n), labels(n)[0], id(m), labels(m)[0]`,bindParameters:{ids:i}});n.push((0,p.executeQueryStreaming)(t,r).then((async e=>{const t=e.resultRowsStream.getReader();for(;;){const{done:e,value:r}=await t.read();if(e)break;for(const e of r)s.push({id:e[0],typeName:e[1]}),s.push({id:e[2],typeName:e[3]})}})))}return await Promise.all(n),s}async function w(e,t){t??=!1;const s={generateAllSublayers:t,namedTypeDefinitions:new Map};return await async function(e){const t=await(0,a.A)(e,{responseType:"array-buffer"}),s=await t.data;return async function(e){const t=new((await(0,g.I)()).MapOfObjectIdentifierSetsDecoder),s=t.decode(new Uint8Array(e)),r=new Map;if(0!==s.error_code)throw new l.A("knowledge-graph:layer-support-utils",s.error_message);const n=t.get_map_of_identifier_sets(),i=n.keys,o=i.size();for(let e=0;e<o;e++){const t=i.get(e),s=n.query_identifier_set(t),o=[];if(s.id_array_type.value===m.GLOBALID_ARRAY){const e=s.get_globalid_array(),t=e.count();for(let s=0;s<t;s++)o.push(e.get_globalid_at(s))}else{if(s.id_array_type.value!==m.IDENTIFIER_ARRAY)throw new l.A("knowledge-graph:layer-support-utils","Tried to encode an unexpected ID Array type.");{const e=s.get_identifier_array(),t=e.count();for(let s=0;s<t;s++)o.push(e.get_identifier_at(s).toString())}}r.set(t,o)}return t.delete(),r}(new Uint8Array(s))}(e).then((e=>{!function(e,t){for(const[s,r]of e){const e=(0,d.tE)(t.namedTypeDefinitions,s,(()=>({useAllData:!1,members:new Map})));for(const t of r)e.members.has(t)||e.members.set(t,{id:t})}}(e,s)})),s}async function I(e){const t=await(0,g.I)(),s=new t.MapOfObjectIdentifierSets;!function(e,t,s){for(const[r,n]of s.namedTypeDefinitions){if(!n.members||n.useAllData)continue;const s=n.members.keys(),i=new t.GlobalIdArray,o=new t.ObjectIdentifierSet;for(const e of s)i.add_globalid(e);o.set_globalid_array(i),i.delete(),e.put_identifier_set(r,o),o.delete()}}(s,t,e);const r=new t.MapOfObjectIdentifierSetsEncoder;try{r.set_map_of_identifier_sets(s),r.encode();const e=r.get_encoding_result();if(0!==e.error.error_code)throw new l.A("knowledge-graph:layer-support-utils",e.error.error_message);const t=structuredClone(e.get_byte_buffer());return r.delete(),t}finally{s.delete()}}s(35448),(f=h||(h={}))[f.featureResult=0]="featureResult",f[f.countResult=1]="countResult",f[f.idsResult=2]="idsResult",function(e){e[e.upperLeft=0]="upperLeft",e[e.lowerLeft=1]="lowerLeft"}(c||(c={})),function(e){e[e.sqlTypeBigInt=0]="sqlTypeBigInt",e[e.sqlTypeBinary=1]="sqlTypeBinary",e[e.sqlTypeBit=2]="sqlTypeBit",e[e.sqlTypeChar=3]="sqlTypeChar",e[e.sqlTypeDate=4]="sqlTypeDate",e[e.sqlTypeDecimal=5]="sqlTypeDecimal",e[e.sqlTypeDouble=6]="sqlTypeDouble",e[e.sqlTypeFloat=7]="sqlTypeFloat",e[e.sqlTypeGeometry=8]="sqlTypeGeometry",e[e.sqlTypeGUID=9]="sqlTypeGUID",e[e.sqlTypeInteger=10]="sqlTypeInteger",e[e.sqlTypeLongNVarchar=11]="sqlTypeLongNVarchar",e[e.sqlTypeLongVarbinary=12]="sqlTypeLongVarbinary",e[e.sqlTypeLongVarchar=13]="sqlTypeLongVarchar",e[e.sqlTypeNChar=14]="sqlTypeNChar",e[e.sqlTypeNVarChar=15]="sqlTypeNVarChar",e[e.sqlTypeOther=16]="sqlTypeOther",e[e.sqlTypeReal=17]="sqlTypeReal",e[e.sqlTypeSmallInt=18]="sqlTypeSmallInt",e[e.sqlTypeSqlXml=19]="sqlTypeSqlXml",e[e.sqlTypeTime=20]="sqlTypeTime",e[e.sqlTypeTimestamp=21]="sqlTypeTimestamp",e[e.sqlTypeTimestamp2=22]="sqlTypeTimestamp2",e[e.sqlTypeTinyInt=23]="sqlTypeTinyInt",e[e.sqlTypeVarbinary=24]="sqlTypeVarbinary",e[e.sqlTypeVarchar=25]="sqlTypeVarchar"}(y||(y={})),function(e){e[e.OID_ARRAY=0]="OID_ARRAY",e[e.GLOBALID_ARRAY=1]="GLOBALID_ARRAY",e[e.STRING_ARRAY=2]="STRING_ARRAY",e[e.IDENTIFIER_ARRAY=3]="IDENTIFIER_ARRAY"}(m||(m={})),s(40863),s(82799),s(94985),s(39829),s(68249),s(86738)},32756:(e,t,s)=>{s.d(t,{f:()=>d,n:()=>l});var r=s(90237),n=s(93637),i=s(10107),o=(s(44208),s(53966),s(87811),s(40608)),a=s(91880);const l={type:[a.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:function(e,t,s){if(!e)return null;const r=e.find((e=>!!e.field));if(!r)return null;const n=new a.A;return n.read(r,s),[n]}},write:{writer:function(e,t,s,r){const i=e.find((e=>!!e.field));i&&(0,n.sM)(s,[i.toJSON()],t)}}}},d=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,r._)([(0,i.M)(l)],t.prototype,"orderBy",void 0),t=(0,r._)([(0,o.$)("esri.layers.mixins.OrderedLayer")],t),t}},91880:(e,t,s)=>{s.d(t,{A:()=>u});var r,n=s(90237),i=s(66552),o=s(25482),a=s(10107),l=(s(44208),s(53966),s(87811),s(40608));const d=new i.J({asc:"ascending",desc:"descending"});let p=r=class extends o.oY{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new r({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n._)([(0,a.M)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,n._)([(0,a.M)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,n._)([(0,a.M)({type:d.apiValues,json:{type:d.jsonValues,read:d.read,write:d.write}})],p.prototype,"order",void 0),p=r=(0,n._)([(0,l.$)("esri.layers.support.OrderByInfo")],p);const u=p},4071:(e,t,s)=>{s.d(t,{$:()=>r,P:()=>n});const r={supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportedStatistics:void 0},n={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsResize:!1},data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsAsyncApplyEdits:!1,zDefault:void 0},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryBins:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryBins:r,query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},8460:(e,t,s)=>{s.d(t,{$C:()=>m,Hh:()=>o,J:()=>l,Tu:()=>c,Wg:()=>y,Xq:()=>g,i6:()=>_,pM:()=>h,tx:()=>a,vJ:()=>f});var r=s(2741);let n,i=null;function o(){return n||(n=s.e(3666).then(s.bind(s,3666)).then((e=>e.l)).then((({default:e})=>e({locateFile:e=>(0,r.s)(`esri/libs/linkchartlayout/${e}`)}))).then((e=>{!function(e){i=e}(e)})),n)}var a,l,d,p,u,h,c,y,m,f,g,_,b,w;function I(e){const t=Object.keys(d).filter((e=>isNaN(parseInt(e,10)))).indexOf(e.timeDirection),s=Object.keys(p).filter((e=>isNaN(parseInt(e,10)))).indexOf(e.eventsTicksVisualization);return{timeDirection:{value:t>-1?t:d.right},timeBannerUTCOffsetInMinutes:e.timeBannerUTCOffsetInMinutes,eventsTicksVisualization:{value:s>-1?s:p.startAndEnd},showDurationLineForNonZeroDurationEntityEvents:e.showDurationLineForNonZeroDurationEntityEvents,durationLineWidth:e.durationLineWidth,entityPositionAtDurationRatio:e.entityPositionAtDurationRatio,showNonZeroDurationIntervalBounds:e.showNonZeroDurationIntervalBounds,separateTimeOverlaps:e.separateTimeOverlaps,separateTimelineOverlaps:e.separateTimelineOverlaps,moveFirstBends:e.moveFirstBends,secondBendRatio:e.secondBendRatio,lineSeparationMultiplier:e.lineSeparationMultiplier,spaceSeparatedLinesEvenly:e.spaceSeparatedLinesEvenly,useBezierCurves:e.useBezierCurves,separatedLineShapeRatio:e.separatedLineShapeRatio}}function v(e,t,s,r,n,o){const a=s.length,l=n.length,d=Float64Array.BYTES_PER_ELEMENT,p=Uint32Array.BYTES_PER_ELEMENT,u=Uint8Array.BYTES_PER_ELEMENT,h=16+a*(u+2*d)+l*(2*p),c=i._malloc(h);try{const u=c+16-c%16,h=u+a*d,y=h+a*d,m=y+l*p,f=m+l*p,g=()=>[i.HEAPF64.subarray(u>>3,(u>>3)+a),i.HEAPF64.subarray(h>>3,(h>>3)+a),i.HEAPU32.subarray(y>>2,(y>>2)+l),i.HEAPU32.subarray(m>>2,(m>>2)+l),i.HEAPU8.subarray(f,f+a)],[_,b,w,I,v]=g();_.set(s),b.set(r),w.set(n),I.set(o),v.set(t);let T=e(a,f,u,h,l,y,m),M=null,E=null;if(T){const e=i.getLayoutLinksTypes(),t=i.getLayoutLinksVerticesEndIndices(),s=i.getLayoutLinksVertices(),r=i.countLayoutLinksVertices();!l||e&&t?r&&!s?T=!1:(M={types:new Uint8Array(i.HEAPU8.subarray(e,e+l)),vertexEndIndex:new Uint32Array(i.HEAPU32.subarray(t>>2,(t>>2)+l)),vertices:new Float64Array(i.HEAPF64.subarray(s>>3,(s>>3)+2*r))},E=i.getAuxiliaryGraphicElements()):T=!1}const[A,x,k,S,N]=g();return s.set(A),r.set(x),n.set(k),o.set(S),t.set(N),{success:T,links:M,graphics:E}}finally{i._free(c),i.cleanupLayout()}}(u=a||(a={}))[u.None=0]="None",u[u.IsMovable=1]="IsMovable",u[u.IsGeographic=2]="IsGeographic",u[u.IsRoot=4]="IsRoot",u[u.IsOld=8]="IsOld",function(e){e[e.Regular=0]="Regular",e[e.Curved=1]="Curved",e[e.Recursive=2]="Recursive"}(l||(l={})),function(e){e[e.right=0]="right",e[e.left=1]="left",e[e.top=2]="top",e[e.bottom=3]="bottom"}(d||(d={})),function(e){e[e.none=0]="none",e[e.startOnly=1]="startOnly",e[e.startAndEnd=2]="startAndEnd"}(p||(p={})),function(e){e.getMinIdealEdgeLength=function(){return i.getMinIdealEdgeLength()},e.apply=function(e,t,s,r,n,o=2,a=1,l=-1){return v(((e,t,s,r,n,d,p)=>i.applyForceDirectedLayout(e,t,s,r,n,d,p,o,a,l)),e,t,s,r,n)}}(h||(h={})),function(e){e.apply=function(e,t,s,r,n,o=2,a=1,l=-1){return v(((e,t,s,r,n,d,p)=>i.applyCommunityLayout(e,t,s,r,n,d,p,o,a,l)),e,t,s,r,n)}}(c||(c={})),function(e){e.apply=function(e,t,s,r,n){return v(i.applySimpleLayout,e,t,s,r,n)}}(y||(y={})),function(e){e.apply=function(e,t,s,r,n){return v(i.applyHierarchicalLayout,e,t,s,r,n)}}(m||(m={})),function(e){e.apply=function(e,t,s,r,n){return v(i.applyRadialTreeLayout,e,t,s,r,n)}}(f||(f={})),function(e){e.apply=function(e,t,s,r,n){return v(i.applySmartTreeLayout,e,t,s,r,n)}}(g||(g={})),function(e){e.apply=function(e,t,s,r,n,o,a,l,u,h,c){const y={timeDirection:d.right,timeBannerUTCOffsetInMinutes:0,eventsTicksVisualization:p.startAndEnd,showDurationLineForNonZeroDurationEntityEvents:!0,durationLineWidth:5,entityPositionAtDurationRatio:1,showNonZeroDurationIntervalBounds:!1,separateTimeOverlaps:!0,separateTimelineOverlaps:!0,moveFirstBends:!0,secondBendRatio:.3,lineSeparationMultiplier:1,spaceSeparatedLinesEvenly:!1,useBezierCurves:!1,separatedLineShapeRatio:0};return v(((e,t,s,o,a,d,p)=>{if(r.length!==e)return!1;if(n.length!==e)return!1;if(l.length!==a)return!1;if(u.length!==a)return!1;const m=Float64Array.BYTES_PER_ELEMENT,f=16,g=i._malloc(f+e*m),_=i._malloc(f+e*m),b=i._malloc(f+a*m),w=i._malloc(f+a*m),v=g+f-g%f,T=_+f-_%f,M=b+f-b%f,E=w+f-w%f;try{i.HEAPF64.subarray(v>>3,(v>>3)+e).set(r),i.HEAPF64.subarray(T>>3,(T>>3)+e).set(n),i.HEAPF64.subarray(M>>3,(M>>3)+a).set(l),i.HEAPF64.subarray(E>>3,(E>>3)+a).set(u);const m=I(Object.assign(y,c));return i.applyChronologicalLayout(e,t,s,o,v,T,a,d,p,M,E,h,m)}finally{i._free(g),i._free(_),i._free(b),i._free(w)}}),e,t,s,o,a)}}(_||(_={})),function(e){e[e.Undirected=0]="Undirected",e[e.Directed=1]="Directed",e[e.Reversed=2]="Reversed"}(b||(b={})),function(e){e[e.ByCC_Raw=0]="ByCC_Raw",e[e.ByCC_NormalizeGlobally=1]="ByCC_NormalizeGlobally",e[e.ByCC_NormalizeByCC=2]="ByCC_NormalizeByCC"}(w||(w={}))},25927:(e,t,s)=>{s.d(t,{A:()=>d});var r=s(90237),n=(s(59456),s(10107)),i=(s(44208),s(53966),s(87811),s(40608)),o=s(54238),a=s(86738);let l=class extends o.A{constructor(e){super(e),this.layoutGeometry=null}};(0,r._)([(0,n.M)({type:a.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,r._)([(0,i.$)("esri.rest.knowledgeGraph.Entity")],l);const d=l},54238:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(90237),n=s(10107),i=(s(44208),s(53966),s(87811),s(40608)),o=s(77901);let a=class extends o.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,r._)([(0,n.M)({type:String,json:{write:!0}})],a.prototype,"typeName",void 0),(0,r._)([(0,n.M)({type:String,json:{write:!0}})],a.prototype,"id",void 0),a=(0,r._)([(0,i.$)("esri.rest.knowledgeGraph.GraphNamedObject")],a);const l=a},77901:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(90237),n=s(25482),i=s(10107),o=(s(44208),s(53966),s(87811),s(40608));let a=class extends n.oY{constructor(e){super(e),this.properties=null}};(0,r._)([(0,i.M)({json:{write:!0}})],a.prototype,"properties",void 0),a=(0,r._)([(0,o.$)("esri.rest.knowledgeGraph.GraphObject")],a);const l=a},42538:(e,t,s)=>{s.d(t,{A:()=>p});var r=s(90237),n=s(10107),i=(s(44208),s(53966),s(87811),s(40608)),o=s(69622);let a=class extends o.A{constructor(e){super(e),this.openCypherQuery=""}};(0,r._)([(0,n.M)()],a.prototype,"openCypherQuery",void 0),a=(0,r._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQuery")],a);const l=a;let d=class extends l{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,r._)([(0,n.M)()],d.prototype,"bindParameters",void 0),(0,r._)([(0,n.M)()],d.prototype,"bindGeometryQuantizationParameters",void 0),(0,r._)([(0,n.M)()],d.prototype,"outputQuantizationParameters",void 0),(0,r._)([(0,n.M)()],d.prototype,"outputSpatialReference",void 0),(0,r._)([(0,n.M)()],d.prototype,"provenanceBehavior",void 0),d=(0,r._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQueryStreaming")],d);const p=d},40662:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(90237),n=(s(53966),s(44208),s(87811),s(49186),s(40608)),i=s(77901);let o=class extends i.A{constructor(e){super(e)}};o=(0,r._)([(0,n.$)("esri.rest.knowledgeGraph.ObjectValue")],o);const a=o},42095:(e,t,s)=>{s.d(t,{A:()=>d});var r=s(90237),n=s(25482),i=s(10107),o=(s(44208),s(53966),s(87811),s(40608)),a=s(77901);let l=class extends n.oY{constructor(e){super(e),this.path=null}};(0,r._)([(0,i.M)({type:[a.A],json:{write:!0}})],l.prototype,"path",void 0),l=(0,r._)([(0,o.$)("esri.rest.knowledgeGraph.Path")],l);const d=l},23150:(e,t,s)=>{s.d(t,{A:()=>d});var r=s(90237),n=(s(59456),s(10107)),i=(s(44208),s(53966),s(87811),s(40608)),o=s(54238),a=s(82799);let l=class extends o.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,r._)([(0,n.M)({type:String,json:{write:!0}})],l.prototype,"originId",void 0),(0,r._)([(0,n.M)({type:String,json:{write:!0}})],l.prototype,"destinationId",void 0),(0,r._)([(0,n.M)({type:a.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,r._)([(0,i.$)("esri.rest.knowledgeGraph.Relationship")],l);const d=l}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8943],{9775:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(62788),n=s(95488);class i{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new n.I,this._items=new Set}get length(){return(0,r.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,r.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length;return this._items.forEach((t=>{e(t)||this._items.delete(t)})),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,r.gc)(this._observable),yield*this._items}}},75503:(e,t,s)=>{s.d(t,{E:()=>M,w:()=>o});var r=s(4576),n=(s(44208),s(3694)),i=s(11006);class o{constructor(e=9,t){this._compareMinX=u,this._compareMinY=h,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),w.prune(),I.prune(),v.prune(),T.prune()}all(e){a(this._data,e)}search(e,t){let s=this._data;const r=this._toBBox;if(_(e,s))for(w.clear();s;){for(let n=0,i=s.children.length;n<i;n++){const i=s.children[n],o=s.leaf?r(i):i;_(e,o)&&(s.leaf?t(i):g(e,o)?a(i,t):w.push(i))}s=w.pop()}}collides(e){let t=this._data;const s=this._toBBox;if(!_(e,t))return!1;for(w.clear();t;){for(let r=0,n=t.children.length;r<n;r++){const n=t.children[r],i=t.leaf?s(n):n;if(_(e,i)){if(t.leaf||g(e,i))return!0;w.push(n)}}t=w.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,s=e.length;t<s;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(e){if(!e)return this;let t,s=this._data,n=null,i=0,o=!1;const a=this._toBBox(e);for(v.clear(),T.clear();s||v.length>0;){if(s||(s=v.pop(),n=v.data[v.length-1],i=T.pop()??0,o=!0),s.leaf&&(t=(0,r.qh)(s.children,e,s.children.length,s.indexHint),-1!==t))return s.children.splice(t,1),v.push(s),this._condense(v),this;o||s.leaf||!g(s,a)?n?(i++,s=n.children[i],o=!1):s=null:(v.push(s),T.push(i),i=0,n=s,s=s.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,s,r){const n=s-t+1;let i=this._maxEntries;if(n<=i){const r=new A(e.slice(t,s+1));return l(r,this._toBBox),r}r||(r=Math.ceil(Math.log(n)/Math.log(i)),i=Math.ceil(n/i**(r-1)));const o=new x([]);o.height=r;const a=Math.ceil(n/i),d=a*Math.ceil(Math.sqrt(i));b(e,t,s,d,this._compareMinX);for(let n=t;n<=s;n+=d){const t=Math.min(n+d-1,s);b(e,n,t,a,this._compareMinY);for(let s=n;s<=t;s+=a){const n=Math.min(s+a-1,t);o.children.push(this._build(e,s,n,r-1))}}return l(o,this._toBBox),o}_insert(e,t,s){const r=this._toBBox,n=s?e:r(e);v.clear();const i=function(e,t,s,r){for(;r.push(t),!0!==t.leaf&&r.length-1!==s;){let s,r=1/0,n=1/0;for(let i=0,o=t.children.length;i<o;i++){const o=t.children[i],a=c(o),l=m(e,o)-a;l<n?(n=l,r=a<r?a:r,s=o):l===n&&a<r&&(r=a,s=o)}t=s||t.children[0]}return t}(n,this._data,t,v);for(i.children.push(e),p(i,n);t>=0&&v.data[t].children.length>this._maxEntries;)this._split(v,t),t--;!function(e,t,s){for(let r=s;r>=0;r--)p(t.data[r],e)}(n,v,t)}_split(e,t){const s=e.data[t],r=s.children.length,n=this._minEntries;this._chooseSplitAxis(s,n,r);const i=this._chooseSplitIndex(s,n,r);if(!i)return;const o=s.children.splice(i,s.children.length-i),a=s.leaf?new A(o):new x(o);a.height=s.height,l(s,this._toBBox),l(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(s,a)}_splitRoot(e,t){this._data=new x([e,t]),this._data.height=e.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(e,t,s){let r,n,i;r=n=1/0;for(let o=t;o<=s-t;o++){const t=d(e,0,o,this._toBBox),a=d(e,o,s,this._toBBox),l=f(t,a),p=c(t)+c(a);l<r?(r=l,i=o,n=p<n?p:n):l===r&&p<n&&(n=p,i=o)}return i}_chooseSplitAxis(e,t,s){const r=e.leaf?this._compareMinX:u,n=e.leaf?this._compareMinY:h;this._allDistMargin(e,t,s,r)<this._allDistMargin(e,t,s,n)&&e.children.sort(r)}_allDistMargin(e,t,s,r){e.children.sort(r);const n=this._toBBox,i=d(e,0,t,n),o=d(e,s-t,s,n);let a=y(i)+y(o);for(let r=t;r<s-t;r++){const t=e.children[r];p(i,e.leaf?n(t):t),a+=y(i)}for(let r=s-t-1;r>=t;r--){const t=e.children[r];p(o,e.leaf?n(t):t),a+=y(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const s=e.data[t];if(0===s.children.length)if(t>0){const n=e.data[t-1],i=n.children;i.splice((0,r.qh)(i,s,i.length,n.indexHint),1)}else this.clear();else l(s,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function a(e,t){let s=e;for(I.clear();s;){if(!0===s.leaf)for(const e of s.children)t(e);else I.pushArray(s.children);s=I.pop()??null}}function l(e,t){d(e,0,e.children.length,t,e)}function d(e,t,s,r,n){n||(n=new A([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let i,o=t;o<s;o++)i=e.children[o],p(n,e.leaf?r(i):i);return n}function p(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function u(e,t){return e.minX-t.minX}function h(e,t){return e.minY-t.minY}function c(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function y(e){return e.maxX-e.minX+(e.maxY-e.minY)}function m(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function f(e,t){const s=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),n=Math.min(e.maxX,t.maxX),i=Math.min(e.maxY,t.maxY);return Math.max(0,n-s)*Math.max(0,i-r)}function g(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function _(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function b(e,t,s,r,n){const o=[t,s];for(;o.length;){const t=o.pop(),s=o.pop();if(t-s<=r)continue;const a=s+Math.ceil((t-s)/r/2)*r;(0,i.q)(e,a,s,t,n),o.push(s,a,a,t)}}const w=new n.A,I=new n.A,v=new n.A,T=new n.A({deallocator:void 0});class M{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class E extends M{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class A extends E{constructor(e){super(),this.children=e,this.leaf=!0}}class x extends E{constructor(e){super(),this.children=e,this.leaf=!1}}},10382:(e,t,s)=>{s.d(t,{A:()=>d});var r=s(36563),n=(s(44208),s(74887)),i=s(9775),o=s(72457),a=s(52268),l=s(61322);class d{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new i.A}destroy(){this.close()}get closed(){return!this._clients?.length}open(e,t){return new Promise(((s,r)=>{let i=!0;const o=e=>{(0,n.Te)(t.signal),i&&(i=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let i=0;i<e.length;++i){const a=e[i];(0,n.$X)(a)?this._clientPromises[i]=a.then((e=>(this._clients[i]=new l.default(e,t,this._ongoingJobsQueue),o(s),this._clients[i])),(()=>(o(r),null))):(this._clients[i]=new l.default(a,t,this._ongoingJobsQueue),this._clientPromises[i]=Promise.resolve(this._clients[i]),o(s))}}))}broadcast(e,t,s){const r=new Array(this._clientPromises.length);for(let n=0;n<this._clientPromises.length;++n){const i=this._clientPromises[n];r[n]=i.then((r=>r?.invoke(e,t,s)))}return r}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then((e=>e?.close()));this._clients.length=0,this._clientPromises.length=0,this._inUseClients.length=0,(0,o.h)(this)}invoke(e,t,s){return this.apply(e,[t],s)}apply(e,t,s){const r=(0,n.Tw)();this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:s,resolver:r});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then((e=>e?.jobAdded()))}return r.promise}createInvokeProxy(e){return(0,a.L)(this,e)}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,r.vE)(this._clients.map((s=>s.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let s=t.length;for(let r=0;r<this._clientPromises.length;++r)this._clientPromises[r].then((n=>{n&&(t[r]=n.openPort()),0==--s&&e(t)}))}))}get test(){}}},72457:(e,t,s)=>{s.d(t,{h:()=>i,k:()=>n});const r=new FinalizationRegistry((e=>{e.close()}));function n(e,t){r.register(e,t,t)}function i(e){r.unregister(e)}},29953:(e,t,s)=>{s.d(t,{ho:()=>$});var r=s(49186),n=s(44208),i=s(74887),o=s(10382),a=s(72457),l=s(61322),d=s(53966),p=s(97768),u=s(78888),h=s(84952);const c={async request(e,t){const s=e.options,r=s.responseType;s.signal=t?.signal,s.responseType="native"===r||"native-request-init"===r?"native-request-init":r&&["blob","json","text"].includes(r)&&(0,h.sC)(e.url)?.after?r:"array-buffer";const n=await(0,u.A)(e.url,s),i={data:n.data,httpStatus:n.httpStatus,ssl:n.ssl};switch(n.requestOptions?.responseType){case"native-request-init":return delete i.data.signal,i;case"blob":i.data=await i.data.arrayBuffer();break;case"json":i.data=(new TextEncoder).encode(JSON.stringify(i.data)).buffer;break;case"text":i.data=(new TextEncoder).encode(i.data).buffer}return{result:i,transferList:[i.data]}}};var y=s(8341),m=s(2741),f=s(92602),g=(s(47566),s(70333));const _={};var b=s(26390);class w{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...s)=>e[t](...s)}))}}class I{constructor(){this._dispatcher=new w,this._workerPostMessage({type:y.Go.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,b.d)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,s){this._dispatcher.addEventListener(e,t,s)}removeEventListener(e,t,s){this._dispatcher.removeEventListener(e,t,s)}_workerPostMessage(e){(0,b.d)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,y.VI)(e);if(t&&t.type===y.Go.OPEN){const{modulePath:e,jobId:s}=t;let r=await l.default.loadWorker(e);r||(r=await import(e));const n=l.default.connect(r);this._workerPostMessage({type:y.Go.OPENED,jobId:s,data:n})}}}var v=s(73444),T=s(18357);const M=()=>d.A.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:E}=y.Go;let A,x;const k="Failed to create Worker. Fallback to execute module in main thread";async function S(e){return new Promise((t=>{function s(n){const i=(0,y.VI)(n);i&&i.type===E&&(e.removeEventListener("message",s),e.removeEventListener("error",r),t(e))}function r(t){t.preventDefault(),e.removeEventListener("message",s),e.removeEventListener("error",r),M().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new I).addEventListener("message",s),e.addEventListener("error",r)}e.addEventListener("message",s),e.addEventListener("error",r)}))}let N=0;const{ABORT:L,INVOKE:C,OPEN:R,OPENED:D,RESPONSE:B}=y.Go;class O{static async create(e){const t=await async function(){if(!(0,n.A)("esri-workers"))return S(new I);if(!A&&!x)try{const e='let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;let s=null;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})})).finally((()=>{t&&t.removeEventListener("abort",s)}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\nModules version: ${r}\nAssets version: ${n??s}\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let n;function t(e){const o=n.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split("{CONFIGURATION}").join(function(){let e;if(null!=f.A.default){const t={...f.A};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(f.A));e.assetsPath=(0,h.s2)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,h.s2)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,v.JK)(),e.has={"esri-csp-restrictions":(0,n.A)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,n.A)("esri-2d-update-debug"),"esri-2d-log-updating":(0,n.A)("esri-2d-log-updating"),"featurelayer-pbf":(0,n.A)("featurelayer-pbf"),"featurelayer-fast-triangulation-enabled":(0,n.A)("featurelayer-fast-triangulation-enabled"),"featurelayer-simplify-thresholds":(0,n.A)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,n.A)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,n.A)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,n.A)("featurelayer-query-max-depth"),"featurelayer-query-pausing-enabled":(0,n.A)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-enabled":(0,n.A)("featurelayer-snapshot-enabled"),"esri-atomics":(0,n.A)("esri-atomics"),"esri-shared-array-buffer":(0,n.A)("esri-shared-array-buffer"),"esri-tiles-debug":(0,n.A)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,n.A)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,n.A)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,h.s2)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,h.s2)(e.workers.workerPath):e.workers.workerPath=(0,h.s2)((0,m.s)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=f.A.workers.loaderConfig,s=function(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.slice()||[],paths:{..._.paths,...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=_.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,v.JK)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),r={buildDate:T.$,fullVersion:g.ol,revision:T.u};return JSON.stringify({esriConfig:e,loaderConfig:s,kernelInfo:r})}());A=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){x=e||{}}let e;if(A)try{e=new Worker(A,{name:"esri-worker-"+N++})}catch(t){M().warn(k,x),e=new I}else M().warn(k,x),e=new I;return S(e)}();return new O(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),d.A.getLogger("esri.core.workers.WorkerOwner").error(e)}))}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:s}=t,r=(0,y.Jc)();return new Promise(((t,n)=>{const o={resolve:t,reject:n,abortHandle:(0,i.NY)(s,(()=>{this._outJobs.delete(r),this._post({type:L,jobId:r})}))};this._outJobs.set(r,o),this._post({type:R,jobId:r,modulePath:e})}))}_onMessage(e){const t=(0,y.VI)(e);if(t)switch(t.type){case D:this._onOpenedMessage(t);break;case B:this._onResponseMessage(t);break;case L:this._onAbortMessage(t);break;case C:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,s=e.jobId,r=t.get(s);r&&(r.controller&&r.controller.abort(),t.delete(s))}_onInvokeMessage(e){const{methodName:t,jobId:s,data:r,abortable:n}=e,o=n?new AbortController:null,a=this._inJobs,l=c[t];let d;try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`);d=l.call(null,r,{signal:o?o.signal:null})}catch(e){return void this._post({type:B,jobId:s,error:(0,y.mF)(e)})}(0,i.$X)(d)?(a.set(s,{controller:o,promise:d}),d.then((e=>{a.has(s)&&(a.delete(s),this._post({type:B,jobId:s},e))}),(e=>{a.has(s)&&(a.delete(s),e||(e={message:"Error encountered at method"+t}),(0,i.zf)(e)||this._post({type:B,jobId:s,error:(0,y.mF)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:B,jobId:s},d)}_onOpenedMessage(e){const{jobId:t,data:s}=e,r=this._outJobs.get(t);r&&(this._outJobs.delete(t),(0,p.xt)(r.abortHandle),r.resolve(s))}_onResponseMessage(e){const{jobId:t,error:s,data:n}=e,i=this._outJobs.get(t);i&&(this._outJobs.delete(t),(0,p.xt)(i.abortHandle),s?i.reject(r.A.fromJSON(JSON.parse(s))):i.resolve(n))}_post(e,t,s){return(0,y.u1)(this.worker,e,t,s)}}const j=(0,n.A)("host-browser")?Math.min(navigator.hardwareConcurrency-1,(0,n.A)("workers-pool-size")??8):0;let F=(0,n.A)("esri-mobile")?Math.min(j,3):j;F||(F=(0,n.A)("safari")&&(0,n.A)("mac")?7:2);let P=0;const q=[];async function G(e,t){const s=new o.A,{registryTarget:r,...n}=t;return await s.open(e,n),r&&(0,a.k)(r,s),s}async function $(e,t={}){if("string"!=typeof e)throw new r.A("workers:undefined-module","modulePath is missing");let s=t.strategy||"distributed";if((0,n.A)("host-webworker")&&!(0,n.A)("esri-workers")&&(s="local"),"local"===s){let s=await l.default.loadWorker(e);s||(s=await import(e)),(0,i.Te)(t.signal);const r=t.client||s;return G([l.default.connect(s,t.schedule)],{...t,client:r})}if(await async function(){if(Y)return Y;Q=new AbortController;const e=[];for(let t=0;t<F;t++){const s=O.create(t).then((e=>(q[t]=e,e)));e.push(s)}return Y=Promise.all(e),Y}(),(0,i.Te)(t.signal),"dedicated"===s){const s=P++%F;return G([await q[s].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const s=Math.min(t.maxNumWorkers,F);if(s<F){const r=new Array(s);for(let n=0;n<s;++n){const s=P++%F;r[n]=q[s].open(e,t)}return G(r,t)}}return G(q.map((s=>s.open(e,t))),t)}let Q,Y=null},43334:(e,t,s)=>{s.d(t,{N3:()=>i,Om:()=>n});var r=s(92722);class n{constructor(e=null,t={},s,r){this.geometry=e,this.attributes=t,this.centroid=s,this.objectId=r,this.displayId=0,this.geohashX=0,this.geohashY=0}static fromJSON(e,t){const s=e.geometry?r.A.fromJSON(e.geometry):null,i=e.centroid?r.A.fromJSON(e.centroid):null,o=e.attributes[t];return new n(s,e.attributes,i,o)}weakClone(){const e=new n(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}clone(){const e=this.geometry?.clone(),t=new n(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function i(e){return!!e.geometry?.coords?.length}},58512:(e,t,s)=>{s.d(t,{A:()=>r});class r{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new r;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},92722:(e,t,s)=>{s.d(t,{A:()=>r});class r{constructor(e=[],t=[],s=!1){this.lengths=e??[],this.coords=t??[],this.hasIndeterminateRingOrder=s}static fromJSON(e){return new r(e.lengths,e.coords,e.hasIndeterminateRingOrder)}static fromRect(e){const[t,s,n,i]=e,o=n-t,a=i-s;return new r([5],[t,s,o,0,0,a,-o,0,0,-a])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let s=0;s<this.lengths.length;s++){const r=this.lengths[s];for(let s=0;s<r;s++)e(this.coords[2*(s+t)],this.coords[2*(s+t)+1]);t+=r}}deltaDecode(){const e=this.clone(),{coords:t,lengths:s}=e;let r=0;for(const e of s){for(let s=1;s<e;s++)t[2*(r+s)]+=t[2*(r+s)-2],t[2*(r+s)+1]+=t[2*(r+s)-1];r+=e}return e}clone(e){if(0===this.lengths.length)return new r([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce(((e,t)=>e+t))),s=this.coords.slice(0,t);return e?(e.set(s),new r(this.lengths,e,this.hasIndeterminateRingOrder)):new r(Array.from(this.lengths),Array.from(s),this.hasIndeterminateRingOrder)}}},6518:(e,t,s)=>{s.d(t,{F:()=>a});var r=s(44208),n=s(75503),i=s(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.w(9,(0,r.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach(((s,r)=>{e[t++]=r})),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((e=>this._idByBounds.has(e)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,i.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,s){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,s)}(this._index,e,(e=>t(this._idByBounds.get(e))))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221:(e,t,s)=>{s.d(t,{A:()=>y});var r=s(4576),n=s(49186),i=s(65529),o=s(53966),a=s(70328),l=s(19419),d=s(90708),p=s(6518),u=s(51441),h=s(37730);const c=(0,a.vt)();class y{constructor(e){this.geometryInfo=e,this._boundsStore=new p.F,this._featuresById=new Map,this._markedIds=new Set,this.events=new i.A,this.featureAdapter=h.T}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach((t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,s,r,n]=this.fullBounds;return{xmin:t,ymin:s,xmax:r,ymax:n,spatialReference:(0,u.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map((e=>this._upsert(e)));return this._emitChanged(),t.filter(r.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const s of e){const e=this._boundsStore.get(s.objectId);e&&t((0,a.Jt)(c,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach((t=>e(t)))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,(e=>{t(this._featuresById.get(e))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let e=!1;this._featuresById.forEach(((t,s)=>{this._markedIds.has(s)||(e=!0,this._remove(t))})),this._markedIds.clear(),e&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const s=this._featuresById.get(t);let r;if(this._markedIds.add(t),s?(e.displayId=s.displayId,r=this._boundsStore.get(t),this._boundsStore.delete(t)):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);r=(0,d.jQ)(null!=r?r:(0,l.vt)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=r&&this._boundsStore.set(t,r),this._featuresById.set(t,e)}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const s=this._featuresById.get(t);if(!s)return this._add(e),e;this._markedIds.add(t);const{geometry:r,attributes:i}=e;for(const e in i)s.attributes[e]=i[e];return r&&(s.geometry=r,this._boundsStore.set(t,(0,d.jQ)((0,l.vt)(),r,this.geometryInfo.hasZ,this.geometryInfo.hasM)??null)),s}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._markedIds.delete(t),this._boundsStore.delete(t),this._featuresById.delete(t),e}}},37730:(e,t,s)=>{s.d(t,{T:()=>o});var r=s(27647),n=s(43334),i=s(92722);const o={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new n.Om(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>(null==e.centroid&&(e.centroid=(0,r.Q)(new i.A,e.geometry,t.hasZ,t.hasM)),e.centroid)}},64714:(e,t,s)=>{s.d(t,{F0:()=>l,Vx:()=>u,e2:()=>c,f:()=>y});var r=s(44208),n=s(4718),i=s(99352),o=s(4071),a=s(93470);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?a.Cb:"esriGeometryPolyline"===e?a.yM:a.WR}}}const d=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let p=1;function u(e,t){if((0,r.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let s=`this${h(t)} = null;`;for(const t in e)s+=`this${h(t)} = ${JSON.stringify(e[t])};`;const r=new Function(`\n return class AttributesClass$${p++} {\n constructor() {\n ${s};\n }\n }\n `)();return()=>new r}catch(s){return()=>({[t]:null,...e})}}function h(e){return d.test(e)?`.${e}`:`["${e}"]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(e)}}]}function y(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryBins:o.$,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},80340:(e,t,s)=>{s.d(t,{P:()=>I});var r=s(90237),n=(s(59456),s(69622)),i=s(49186),o=s(53966),a=s(91869),l=s(39516),d=s(10107),p=(s(44208),s(87811),s(40608)),u=s(39829),h=s(57251),c=s(21325),y=s(85342),m=s(69860),f=s(45654),g=s(71402),_=s(42538),b=s(61956),w=s(5443);let I=class extends n.A{constructor(e){super(e),this._processingCacheUpdatesLookup=new Map,this.knowledgeGraph=null,this.inclusionModeDefinition={generateAllSublayers:!0,namedTypeDefinitions:new Map},this.entityTypeNames=new Set,this.relationshipTypeNames=new Set,this.geographicLookup=new Map,this.sublayerCaches=new Map,this.nodeConnectionsLookup=new Map,this.relationshipConnectionsLookup=new Map,this.memberIdTypeLookup=new Map;const t=new Map;e.knowledgeGraph.dataModel.entityTypes?.forEach((s=>{s.name&&(t.set(s.name,"entity"),this._processingCacheUpdatesLookup.set(s.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.entityTypeNames.add(s.name),s.properties?.forEach((e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(s.name,{name:e.name??"",geometryType:e.geometryType})})))})),e.knowledgeGraph.dataModel.relationshipTypes?.forEach((s=>{s.name&&(t.set(s.name,"relationship"),this._processingCacheUpdatesLookup.set(s.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.relationshipTypeNames.add(s.name),s.properties?.forEach((e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(s.name,{name:e.name??"",geometryType:e.geometryType})})))})),e.inclusionModeDefinition?.namedTypeDefinitions.forEach(((s,r)=>{if("entity"===t.get(r))this.entityTypeNames.add(r);else{if("relationship"!==t.get(r))return o.A.getLogger(this).warn(`A named type, ${r}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(r);this.relationshipTypeNames.add(r)}const n=new Map;s.members?.forEach((e=>{(0,a.tE)(this.memberIdTypeLookup,e.id,(()=>new Set)).add(r);const t=this.getById(e.id);t&&n.set(e.id,t)})),this.sublayerCaches.set(r,n)}))}addToLayer(e){e.forEach((({typeName:e,id:t})=>{if(!this.inclusionModeDefinition)throw new i.A("knowledge-graph:layer-data-manager","You cannot add to a layer's exclusion list if it was not created with an exclusion list originally");if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){const s=this.inclusionModeDefinition.namedTypeDefinitions.get(e);s.members||(s.members=new Map),s.members.set(t,{id:t}),(0,a.tE)(this.memberIdTypeLookup,t,(()=>new Set)).add(e)}}else{const s=new Map;s.set(t,{id:t}),this.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:s}),(0,a.tE)(this.memberIdTypeLookup,t,(()=>new Set)).add(e)}}))}getById(e){return m.A.getInstance().readFromStoreById(e)}async getData(e,t,s){if(t.objectType.name&&this.inclusionModeDefinition?.namedTypeDefinitions&&this.inclusionModeDefinition.namedTypeDefinitions.size>0&&!this.inclusionModeDefinition.namedTypeDefinitions.has(t.objectType.name))return[];let r;if(r=e||new b.A({where:"1=1",outFields:["*"]}),"link-chart"===t.parentCompositeLayer.type){const e=t.parentCompositeLayer,s=this._processingCacheUpdatesLookup.get(t.objectType.name??""),n=r.outFields;n&&1===n.length&&n[0]===y.dr&&"1=1"===r.where||await Promise.all(s??[]);const i=this.sublayerCaches.has(t.objectType.name??"")?Array.from(this.sublayerCaches.get(t.objectType.name)?.values()):[],o=[];return i.forEach((s=>{if(this.relationshipTypeNames.has(t.objectType.name)){s.geometry=e.relationshipLinkChartDiagramLookup.get(s.attributes[t.objectIdField]);const r=this.memberIdTypeLookup.get(s.attributes[y.Cz]),n=this.memberIdTypeLookup.get(s.attributes[y.KQ]),i=this._isEndEntitySpatial(r,s,y.Cz),o=this._isEndEntitySpatial(n,s,y.KQ);s.attributes[y.BL]=Number(i&&o)}else{s.geometry=e.entityLinkChartDiagramLookup.get(s.attributes[t.objectIdField]);const r=this.geographicLookup.get(t.objectType.name);r&&s.attributes[r.name]?s.attributes[y.BL]=1:s.attributes[y.BL]=0}s.attributes[y.T1]=s.geometry,o.push(s)})),o}return this.retrieveDataFromService(r,t,s)}async getConnectedRecordIds(e,t){const s=[];let r="";const n=[],i=new Map;if(e.forEach((e=>{if(this.memberIdTypeLookup.has(e))for(const t of this.memberIdTypeLookup.get(e)){if(!this.entityTypeNames.has(t))return;i.has(t)?i.get(t)?.push(e):i.set(t,[e])}})),t&&0!==t?.length){for(const e of t)r=r+e+"|";r=r.slice(0,-1)}const a={};let l="",d=-1;for(const[e,s]of i){d++,0!==d&&(l+=" UNION ");const n=`${e}_ids`;a[n]=s,l+=t&&0!==t?.length?`MATCH (n:${e}) WHERE id(n) IN $${n} WITH n MATCH (n)-[r:${r}]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`:`MATCH (n:${e}) WHERE id(n) IN $${n} WITH n MATCH (n)-[r]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`}const p=new Promise((e=>{(async()=>{const e=(await(0,g.executeQueryStreaming)(this.knowledgeGraph,new _.A({openCypherQuery:l,bindParameters:a}))).resultRowsStream.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;for(let e=0;e<r.length;e++){const t=r[e];s.push({id:t[0],typeName:t[1]}),s.push({id:t[2],typeName:t[3]})}}}catch(e){if("AbortError"!==e.name)throw e;o.A.getLogger(this).info("Request aborted as expected")}})().then((()=>{e()}))}));return n.push(p),this.refreshCacheContent(),await Promise.all(n),s}async getRelationshipsBetweenNodes(e,t){const s=[],r=(await(0,g.executeQueryStreaming)(this.knowledgeGraph,new _.A({openCypherQuery:"MATCH (n)-[r]->(m) WHERE id(n) IN $nodeIds AND id(m) in $nodeIds AND NOT id(r) IN $relationshipExclusionIds return id(r), type(r)",bindParameters:{nodeIds:e,relationshipExclusionIds:t}}))).resultRowsStream.getReader();try{for(;;){const{done:e,value:t}=await r.read();if(e)break;for(let e=0;e<t.length;e++){const r=t[e];s.push({id:r[0],typeName:r[1]})}}}catch(e){if("AbortError"!==e.name)throw e;o.A.getLogger(this).info("Request aborted as expected")}return s}async getRelationshipsFromNodes(e,t,s){const r=[],n=(await(0,g.executeQueryStreaming)(this.knowledgeGraph,new _.A({openCypherQuery:"MATCH (n)-[r]-(m) WHERE id(n) IN $targetEntityIds AND id(m) in $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds return id(r), type(r)",bindParameters:{targetEntityIds:e,possibleConnectionEntityIds:t,relationshipExclusionIds:s}}))).resultRowsStream.getReader();try{for(;;){const{done:e,value:t}=await n.read();if(e)break;for(let e=0;e<t.length;e++){const s=t[e];r.push({id:s[0],typeName:s[1]})}}}catch(e){if("AbortError"!==e.name)throw e;o.A.getLogger(this).info("Request aborted as expected")}return r}async refreshCacheContent(e,t,s,r=!0){const n=m.A.getInstance(),o=[],l=new Map,d=new Map;this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&d.set(e.name,e)})),this.knowledgeGraph.dataModel.relationshipTypes?.forEach((e=>{e.name&&d.set(e.name,e)})),e||this.inclusionModeDefinition?e?e.forEach((e=>{if(this.memberIdTypeLookup.has(e))for(const t of this.memberIdTypeLookup.get(e))l.has(t)?l.get(t)?.push(e):l.set(t,[e])})):this.inclusionModeDefinition?.namedTypeDefinitions?.forEach(((e,t)=>{e.useAllData?l.set(t,null):e.members&&e.members.forEach((e=>{l.has(t)&&null!==l.get(t)?l.get(t)?.push(e.id):l.set(t,[e.id])}))})):(this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&l.set(e.name,null)})),this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&l.set(e.name,null)})));for(const[e,p]of l){const l=new Promise((o=>{(async()=>{const o=new Set,l=[];let u,h="",c=!1;if(t||d.get(e)?.properties?.forEach((e=>{e.name&&o.add(e.name)})),s&&this.geographicLookup.has(e)){const t=this.geographicLookup.get(e)?.name;t&&o.add(t)}if(this.entityTypeNames.has(e))h=`MATCH (n:${e}) ${p?"WHERE id(n) IN $ids ":""}return ID(n)`,o.forEach((e=>{h+=`, n.${e}`,l.push(e)}));else{if(!this.relationshipTypeNames.has(e))throw new i.A("knowledge-graph:layer-data-manager",`The graph type of ${e} could not be determined. Was this type set in the KG data model and inclusion definition?`);c=!0,h=`MATCH ()-[n:${e}]->() ${p?"WHERE id(n) IN $ids ":""}return ID(n), id(startNode(n)), id(endNode(n))`,o.forEach((e=>{h+=`, n.${e}`,l.push(e)}))}u=new _.A(p?{openCypherQuery:h,bindParameters:{ids:p}}:{openCypherQuery:h});const m=(await(0,g.executeQueryStreaming)(this.knowledgeGraph,u)).resultRowsStream.getReader();for(;;){const{done:t,value:s}=await m.read();if(t)break;const i=[];for(let e=0;e<s.length;e++){const t=s[e];let r=0,n=0;const o={properties:{}};for(o.id=t[r],r++,n++,c&&(o.originId=t[r],r++,n++,o.destinationId=t[r],r++,n++,(0,a.tE)(this.nodeConnectionsLookup,o.originId,(()=>new Set)).add(o.id),(0,a.tE)(this.nodeConnectionsLookup,o.destinationId,(()=>new Set)).add(o.id),(0,a.tE)(this.relationshipConnectionsLookup,o.id,(()=>[o.originId,o.destinationId])));r<t.length;r++)o.properties[l[r-n]]=t[r];i.push(o)}const o=n.writeToStore(i,y.dr,this.geographicLookup.get(e)?.name);this.sublayerCaches.has(e)||this.sublayerCaches.set(e,new Map),r&&!this.inclusionModeDefinition?.namedTypeDefinitions.has(e)&&this.inclusionModeDefinition?.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),r&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members&&(this.inclusionModeDefinition.namedTypeDefinitions.get(e).members=new Map);const d=this.sublayerCaches.get(e);o.forEach((t=>{d?.set(t.attributes[y.dr],t),r&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.has(t.attributes[y.dr])&&(this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.set(t.attributes[y.dr],{id:t.attributes[y.dr]}),(0,a.tE)(this.memberIdTypeLookup,t.attributes[y.dr],(()=>new Set)).add(e))}))}})().then((()=>{o(null)}))}));o.push(l),this._processingCacheUpdatesLookup.get(e)?.push(l)}await Promise.all(o)}removeFromLayer(e){const t=new Set,s=new Set(e.map((e=>e.id)));for(const s of e)t.add(s.typeName),1===this.memberIdTypeLookup.get(s.id)?.size?this.memberIdTypeLookup.delete(s.id):this.memberIdTypeLookup.get(s.id)?.delete(s.typeName),this.inclusionModeDefinition?.namedTypeDefinitions.forEach(((e,t)=>{t===s.typeName&&e.members?.has(s.id)&&e.members.delete(s.id)}));t.forEach((e=>{this.sublayerCaches.get(e)?.forEach(((t,r)=>{s.has(r)&&this.sublayerCaches.get(e)?.delete(r)}))}))}async retrieveDataFromService(e,t,s){const r=m.A.getInstance(),n=new Set,o=[];let a,d="",p=[];const b="relationship"===t.graphType,I=this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData,v=t.parentCompositeLayer.sublayerIdsCache.get(t.objectType.name);let T=!I&&v?Array.from(v).sort():null;if(this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData)this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData&&null!=e.objectIds&&(T=e.objectIds);else if(null!=e.objectIds&&T&&T.length>0){const t=e.objectIds;e.objectIds=T.filter((e=>t.includes(e)))}else if(null!=e.objectIds)T=e.objectIds;else{if(this.inclusionModeDefinition?.namedTypeDefinitions.has(t.objectType.name)&&(!this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members||this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members?.size<1))return e.objectIds=[],[];e.objectIds=T}if(null!=e.outFields){const s=e.outFields;s.includes("*")?t.fields.forEach((e=>{n.add(e.name)})):s.forEach((e=>{e!==y.dr&&e!==t.geometryFieldName&&n.add(e)}))}if(null!=e.geometry){const s=e.geometry;let r;const p=t.parentCompositeLayer.dataManager.knowledgeGraph.serviceDefinition,y=p?.spatialReference,m=p?.serviceCapabilities?.geometryCapabilities;let g=m?.geometryMaxBoundingRectangleSizeX,I=m?.geometryMaxBoundingRectangleSizeY;if("point"===s.type){let e=s;e.spatialReference?.isWGS84||(await(0,h.initializeProjection)(e.spatialReference,c.KK),e=(0,h.project)(e,c.KK)),r=new w.A({spatialReference:c.KK,xmin:e.x-1e-4,ymin:e.y-1e-4,xmax:e.x+1e-4,ymax:e.y+1e-4})}else s?.extent?.spatialReference&&!s.spatialReference?.isWGS84?(await(0,h.initializeProjection)(s.extent.spatialReference,c.KK),r=(0,h.project)(s.extent,c.KK)):r=s.extent;if(g&&I&&y){if(4326!==y.wkid){const e=new w.A({spatialReference:y,xmax:g,ymax:I}),t=(0,h.project)(e,c.KK);g=t.xmax,I=t.ymax}if(r.xmax-r.xmin>g)throw new i.A("knowledge-graph:layer-data-manager",`Extent x bounds should be within ${g}° latitude, limit exceeded`);if(r.ymax-r.ymin>I)throw new i.A("knowledge-graph:layer-data-manager",`Extent y bounds should be within ${I}° longitude, limit exceeded`)}if(null!=e.where&&"1=1"!==e.where){const s=await(0,l.G)(e.where.toUpperCase(),t.fieldsIndex);t.fields.forEach((e=>{s.fieldNames.includes(e.name)&&n.add(e.name)}))}d=b?`Match ()-[n:${t.objectType.name}]->() WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n), id(startNode(r)), id(endNode(r))`:`Match (n:${t.objectType.name}) WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n)`,t.geometryFieldName&&n.add(t.geometryFieldName),n.forEach((e=>{d+=`, n.${e}`,o.push(e)})),a=new _.A({openCypherQuery:d,bindParameters:{param_filter_geom:new u.A({rings:(0,f.DX)(r)})}})}else{let s="";if(null!=e.where&&"1=1"!==e.where){const r=await(0,l.G)(e.where,t.fieldsIndex);t.fields.forEach((e=>{r.fieldNames.includes(e.name)&&n.add(e.name)}));const i=new Set(["column-reference","string","number","binary-expression"]),o=new Set(["=","<","<=","<>",">",">=","AND","OR","LIKE"]);let a=!1;const d=e=>{if("column-reference"===e.type)return`n.${e.column}`;if("string"===e.type)return`'${e.value}'`;if("number"===e.type)return`${e.value}`;if("binary-expression"===e.type&&i.has(e.left.type)&&i.has(e.right.type)&&o.has(e.operator))return`${d(e.left)} ${e.operator} ${d(e.right)}`;if("binary-expression"===e.type&&"LIKE"===e.operator){let t="";if("function"===e.left.type&&"column-reference"===e.left.args.value[0].type)t+=`lower(n.${e.left.args.value[0].column})`;else{if("column-reference"!==e.left.type)return a=!0,"";t+=`lower(n.${e.left.column})`}if(t+=" CONTAINS (","string"!==e.right.type)return a=!0,"";{let s=e.right.value;"%"===s.charAt(0)&&(s=s.slice(1)),"%"===s.charAt(s.length-1)&&(s=s.slice(0,-1)),t+=`'${s.toLowerCase()}')`}return t}return a=!0,""};s=d(r.parseTree),a&&(s="")}let r="";r=b?`Match ()-[n:${t.objectType.name}]->()`:`Match (n:${t.objectType.name})`;let i=!1;T&&(i=!0,r+=" WHERE ID(n) IN $ids"),s&&(r+=i?" AND":" WHERE",r+=` ${s}`),r+=" return ID(n)",b&&(r+=", id(startNode(n)), id(endNode(n))"),e.returnGeometry&&t.geometryFieldName&&n.add(t.geometryFieldName),n.forEach((e=>{r+=`, n.${e}`,o.push(e)})),a=new _.A(T?{openCypherQuery:r,bindParameters:{ids:T}}:{openCypherQuery:r})}const M=(await(0,g.executeQueryStreaming)(t.parentCompositeLayer.dataManager.knowledgeGraph,a,s)).resultRowsStream.getReader();for(;;){const{done:e,value:s}=await M.read();if(e)break;const n=[];for(let e=0;e<s.length;e++){const t=s[e];let r=0,i=0;const a={properties:{}};for(a.id=t[r],r++,i++,b&&(a.originId=t[r],r++,i++,a.destinationId=t[r],r++,i++);r<t.length;r++)a.properties[o[r-i]]=t[r];n.push(a)}p=p.concat(r.writeToStore(n,y.dr,t.parentCompositeLayer.dataManager.geographicLookup.get(t.objectType.name)?.name))}return p}_isEndEntitySpatial(e,t,s){for(const r of e??[])if(this.entityTypeNames.has(r)){const e=this.geographicLookup.get(r),n=e&&this.sublayerCaches.get(r)?.get(t.attributes[s]);if(e&&n?.attributes[e.name])return!0}return!1}};(0,r._)([(0,d.M)()],I.prototype,"knowledgeGraph",void 0),(0,r._)([(0,d.M)()],I.prototype,"inclusionModeDefinition",void 0),(0,r._)([(0,d.M)()],I.prototype,"entityTypeNames",void 0),(0,r._)([(0,d.M)()],I.prototype,"relationshipTypeNames",void 0),(0,r._)([(0,d.M)()],I.prototype,"geographicLookup",void 0),(0,r._)([(0,d.M)()],I.prototype,"sublayerCaches",void 0),(0,r._)([(0,d.M)()],I.prototype,"nodeConnectionsLookup",void 0),(0,r._)([(0,d.M)()],I.prototype,"relationshipConnectionsLookup",void 0),(0,r._)([(0,d.M)()],I.prototype,"memberIdTypeLookup",void 0),I=(0,r._)([(0,p.$)("esri.layers.knowledgeGraph.KnowledgeGraphLayerDataManager")],I)},70643:(e,t,s)=>{s.d(t,{A:()=>K});var r=s(90237),n=(s(59456),s(13874)),i=(s(86162),s(94409),s(65345),s(42980),s(20917),s(92438),s(96576),s(93618),s(65494)),o=s(15036),a=s(4718),l=s(92071),d=(s(29953),s(10107)),p=(s(44208),s(53966),s(40608)),u=s(43937),h=s(35666),c=s(57251),y=s(16930),m=s(21325),f=s(4146),g=s(83221),_=s(17970),b=s(64714);s(87811);const w=(0,s(17036).p)(),I=e=>{let t=class extends e{constructor(){super(...arguments),this.fields=[],this.fieldsIndex=null}};return(0,r._)([(0,d.M)(w.fields)],t.prototype,"fields",void 0),(0,r._)([(0,d.M)(w.fieldsIndex)],t.prototype,"fieldsIndex",void 0),t=(0,r._)([(0,p.$)("esri.layers.knowledgeGraph.KnowledgeGraphSublayerBase")],t),t};var v=s(85342),T=s(63074),M=s(87718),E=s(76294),A=s(32756),x=s(54310),k=s(25036),S=s(82935),N=s(10873),L=s(13213),C=s(20437),R=s(30524),D=s(81457),B=s(39383),O=s(96184),j=s(22671),F=s(61956),P=s(30291),q=s(61322),G=s(5443),$=s(39829),Q=s(82799),Y=s(86738),H=s(50498);function J(e){if(!e.json)return e;e.json.write=U(e.json.write);const t=e.json.origins;if(!t)return e;let s;for(s in t){const e=t[s];e&&(e.write=U(e.write))}return e}function U(e){return"object"==typeof e&&e?(!1!==e.enabled&&(e.overridePolicy=function(e){const{target:t,writer:s,overridePolicy:r,...n}=e;return function(e,t){const s=z.call(this,e,t);return s.enabled?{...n,...s}:s}}(e)),e):!0===e?X():e}function X(){return{overridePolicy:z}}function z(e,t){const s=!!this.geometryType;let r={enabled:s};return s&&(r={...r,...W.call(this,e,t)}),r}function W(e,t){return{ignoreOrigin:this.originIdOf(t)>h.Gr.DEFAULTS}}let V=class extends(I((0,E.J)((0,M.F)((0,T.dM)((0,A.f)((0,S.e)((0,k.j)((0,x.J)((0,l.P)(f.A)))))))))){constructor(e){super(e),this.blendMode="normal",this.capabilities=(0,b.f)(!1,!1),this.charts=null,this.definitionExpression=null,this.displayField="",this.effect=null,this.elevationInfo=null,this.featureEffect=null,this.graphType=null,this.labelsVisible=!0,this.labelingInfo=null,this.layerType=null,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.objectIdField=v.dr,this.objectType=null,this.opacity=1,this.orderBy=null,this.parent=null,this.parentCompositeLayer=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.refreshInterval=0,this.source={openPorts:()=>this.load().then((()=>{const e=new MessageChannel;return new q.default(e.port1,{channel:e,client:{queryFeatures:(e,t={})=>{const s=F.A.fromJSON(e);return this.queryFeaturesJSON(s,t)}}}),[e.port2]}))},this.type="knowledge-graph-sublayer",this.useViewTime=!0,this.visible=!0}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}get fields(){const e=[];return this.objectType?.properties?.forEach((t=>{const s="esriFieldTypeOID"===t.fieldType?"esriFieldTypeInteger":t.fieldType;e.push(C.A.fromJSON({name:t.name,type:s,alias:t.alias,defaultValue:t.defaultValue,editable:t.editable,nullable:t.nullable}))})),e.push(C.A.fromJSON({name:this.objectIdField,type:"esriFieldTypeString",alias:this.objectIdField,editable:!1}),C.A.fromJSON({name:v.M1,type:"esriFieldTypeInteger",alias:v.M1,editable:!1}),C.A.fromJSON({name:v.BL,type:"esriFieldTypeInteger",alias:v.BL,editable:!1})),e}get geometryType(){if("link-chart"===this.parentCompositeLayer?.type)return"relationship"===this.graphType?"polyline":"point";const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.geometryType;return t&&"esriGeometryNull"!==t?H.g.fromJSON(t):null}get geometryFieldName(){if("link-chart"===this.parentCompositeLayer?.type)return v.T1;const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name);return e?.name??null}get graphTypeName(){return this.objectType?.name}get hasM(){const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.name,s=t?this.objectType?.properties?.[t]:null;return s?.hasM??!1}get hasZ(){const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.name,s=t?this.objectType?.properties?.[t]:null;return s?.hasZ??!1}set renderer(e){(0,R.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){return this._isOverridden("renderer")?this._get("renderer"):"link-chart"===this.parentCompositeLayer?.type?"relationship"===this.graphType?(0,i.r)((0,b.F0)(H.g.toJSON("polyline")).renderer):(0,i.r)((0,b.F0)(H.g.toJSON("point")).renderer):(0,i.r)((0,b.F0)(H.g.toJSON(this.geometryType)).renderer)}get spatialReference(){return this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel?.spatialReference??y.A.WGS84}set timeInfo(e){(this.fieldsIndex.has(e?.startField??"")||this.fieldsIndex.has(e?.endField??""))&&(0,R.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}get title(){return this._isOverridden("title")?this._get("title"):this.graphTypeName}set title(e){this._set("title",e)}writeTitle(e,t){t.title=e??"Layer"}createPopupTemplate(e){return(0,P.tn)(this,e)}createQuery(){return new F.A({where:"1=1",outFields:["*"]})}getField(e){for(let t=0;t<this.fields.length;t++)if(this.fields[t].name===e)return this.fields[t];return null}getFieldDomain(e,t){return null}async queryFeatures(e,t){const{resolvedQuery:s,queryEngine:r}=await this._setupQueryObjects(e),n=j.A.fromJSON(await r.executeQuery(s.toJSON(),t?.signal));return n.features.forEach((e=>{e.sourceLayer=this})),n}async queryFeaturesJSON(e,t){const{resolvedQuery:s,queryEngine:r}=await this._setupQueryObjects(e);return await r.executeQuery(s.toJSON(),t?.signal)}async queryFeatureCount(e,t){const{resolvedQuery:s,queryEngine:r}=await this._setupQueryObjects(e);return r.executeQueryForCount(s.toJSON(),t?.signal)}async queryExtent(e={},t){const s={...e,returnGeometry:!0},{resolvedQuery:r,queryEngine:n}=await this._setupQueryObjects(s),i=await n.executeQueryForExtent(r.toJSON(),t?.signal);let o;return o=null!=i.extent?.xmin&&null!=i.extent?.xmax&&null!=i.extent?.ymin&&null!=i.extent?.ymax?new G.A(i.extent):new G.A,{count:i.count,extent:o}}async queryObjectIds(e,t){const s=F.A.from(e);let r;if("link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)r=this._cachedQueryEngine;else{const e=await this.parentCompositeLayer.dataManager.getData(s,this,t);r=this.loadQueryEngine(e)}return r.executeQueryForIds(s.toJSON(),t?.signal)}loadQueryEngine(e){const t=new g.A({geometryType:H.g.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ}),s=new _.d({fieldsIndex:this.fieldsIndex.toJSON(),geometryType:H.g.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ,objectIdField:this.objectIdField,spatialReference:this.spatialReference.toJSON(),timeInfo:this.timeInfo?.toJSON(),featureStore:t});return s.featureStore.addMany(e),s}async refreshCachedQueryEngine(){const e=await this.parentCompositeLayer.dataManager.getData(new F.A({where:"1=1",outFields:[v.dr]}),this);this._cachedQueryEngine=this.loadQueryEngine(e)}load(e){return this.addResolvingPromise(this.parent.load(e)),Promise.resolve(this)}async _setupQueryObjects(e,t){const s=F.A.from(e),r=s.geometry;let n;if(r&&!r.spatialReference?.isWGS84&&(await(0,c.initializeProjection)(r.spatialReference,m.KK),s.geometry=(0,c.project)(r instanceof $.A||r instanceof Q.A||r instanceof Y.A?r:r.extent,m.KK)),"link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)n=this._cachedQueryEngine;else{const e=await this.parentCompositeLayer.dataManager.getData(s,this,t);n=this.loadQueryEngine(e)}return{resolvedQuery:s,queryEngine:n}}};(0,r._)([(0,d.M)(J((0,a.o8)(T.sU)))],V.prototype,"blendMode",void 0),(0,r._)([(0,d.M)()],V.prototype,"capabilities",void 0),(0,r._)([(0,d.M)({json:{origins:{"web-scene":{write:!1}},write:X()}})],V.prototype,"charts",void 0),(0,r._)([(0,d.M)({readOnly:!0})],V.prototype,"defaultPopupTemplate",null),(0,r._)([(0,d.M)({type:String,json:{origins:{service:{read:!1}},name:"layerDefinition.definitionExpression",write:{ignoreOrigin:!0}}})],V.prototype,"definitionExpression",void 0),(0,r._)([(0,d.M)()],V.prototype,"displayField",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(T.LF)))],V.prototype,"effect",void 0),(0,r._)([(0,d.M)()],V.prototype,"elevationInfo",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(M.Y)))],V.prototype,"featureEffect",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(L.d)))],V.prototype,"featureReduction",null),(0,r._)([(0,d.M)()],V.prototype,"fields",null),(0,r._)([(0,d.M)()],V.prototype,"geometryType",null),(0,r._)([(0,d.M)()],V.prototype,"geometryFieldName",null),(0,r._)([(0,d.M)({type:["entity","relationship"],nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],V.prototype,"graphType",void 0),(0,r._)([(0,d.M)({type:String,nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],V.prototype,"graphTypeName",null),(0,r._)([(0,d.M)()],V.prototype,"hasM",null),(0,r._)([(0,d.M)()],V.prototype,"hasZ",null),(0,r._)([(0,d.M)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],V.prototype,"id",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(N.kF)))],V.prototype,"labelsVisible",void 0),(0,r._)([(0,d.M)({type:[D.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:B.w,write:X()}})],V.prototype,"labelingInfo",void 0),(0,r._)([(0,d.M)({readOnly:!0,json:{read:!1,write:{writer(e,t){switch(this.parentCompositeLayer.type){case"link-chart":t.layerType="LinkChartSubLayer";break;case"knowledge-graph":t.layerType=this.geometryType?"KnowledgeGraphSubLayer":"KnowledgeGraphSubTable"}},isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],V.prototype,"layerType",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(N.fV)))],V.prototype,"legendEnabled",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(N.hG)))],V.prototype,"maxScale",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(N.hn)))],V.prototype,"minScale",void 0),(0,r._)([(0,d.M)()],V.prototype,"objectIdField",void 0),(0,r._)([(0,d.M)()],V.prototype,"objectType",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(N.ke)))],V.prototype,"opacity",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(A.n)))],V.prototype,"orderBy",void 0),(0,r._)([(0,d.M)({clonable:!1})],V.prototype,"parent",void 0),(0,r._)([(0,d.M)()],V.prototype,"parentCompositeLayer",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(N.M6)))],V.prototype,"popupEnabled",void 0),(0,r._)([(0,d.M)({type:n.A,json:{name:"popupInfo",write:{ignoreOrigin:!0}}})],V.prototype,"popupTemplate",void 0),(0,r._)([(0,d.M)({type:Number,json:{write:{overridePolicy:W}}})],V.prototype,"refreshInterval",void 0),(0,r._)([(0,d.M)({types:o.H,json:{name:"layerDefinition.drawingInfo.renderer",write:X()}})],V.prototype,"renderer",null),(0,r._)([(0,d.M)()],V.prototype,"source",void 0),(0,r._)([(0,d.M)()],V.prototype,"spatialReference",null),(0,r._)([(0,d.M)({type:O.A,json:{name:"layerDefinition.timeInfo",write:!0,origins:{"web-document":{name:"layerDefinition.timeInfo",read:!0,write:!0},"portal-item":{name:"layerDefinition.timeInfo",read:!0,write:!0}}}})],V.prototype,"timeInfo",null),(0,r._)([(0,d.M)({type:String,json:{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],V.prototype,"title",null),(0,r._)([(0,u.K)("title")],V.prototype,"writeTitle",null),(0,r._)([(0,d.M)({json:{read:!1}})],V.prototype,"type",void 0),(0,r._)([(0,d.M)(J((0,a.o8)(S.B)))],V.prototype,"useViewTime",void 0),(0,r._)([(0,d.M)({type:Boolean,json:{name:"visibility",write:X()}})],V.prototype,"visible",void 0),V=(0,r._)([(0,p.$)("esri.layers.knowledgeGraph.KnowledgeGraphSublayer")],V);const K=V},69860:(e,t,s)=>{s.d(t,{A:()=>a}),s(59456);var r=s(90708),n=s(43334),i=s(85342),o=s(65864);class a{constructor(){this._featureLookup=new Map}static getInstance(){return a.instance||(a.instance=new a),a.instance}static resetInstance(){a.instance&&(a.instance=null)}deleteFromStore(e){e.forEach((e=>{this._featureLookup.delete(e)}))}readFromStoreByList(e){const t=[];return e.forEach((e=>{const s=this.readFromStoreById(e);s&&t.push(s)})),t}readFromStoreById(e){return this._featureLookup.get(e)??null}writeToStore(e,t,s){const a=[];return e.forEach((e=>{if(!e?.id)return;e.properties||(e.properties=[]);let l,d=null;if(s&&e.properties[s]&&(d=(0,r.Ux)(e.properties[s])),"originId"in e&&"destinationId"in e&&(e.properties[i.Cz]=e.originId,e.properties[i.KQ]=e.destinationId),e.properties[t]=e.id,e.id&&this._featureLookup.has(e.id)&&this._featureLookup.get(e.id).attributes){const r=this._featureLookup.get(e.id),i=JSON.parse(JSON.stringify(Object.assign(r.attributes,e.properties)));s&&e.properties[s]&&(i[s]=(0,o.rS)(e.properties[s])),l=new n.Om(d?JSON.parse(JSON.stringify(d)):r?.geometry?JSON.parse(JSON.stringify(r.geometry)):null,i,null,e.properties[t])}else l=new n.Om(d?JSON.parse(JSON.stringify(d)):null,e.properties,null,e.properties[t]);this._featureLookup.set(`${e.typeName?`${e.typeName}__${e.id}`:e.id}`,l),a.push(l)})),a}}},85342:(e,t,s)=>{s.d(t,{BL:()=>d,Cz:()=>i,KQ:()=>o,M1:()=>l,T1:()=>a,dr:()=>n,qN:()=>h});var r=s(71402);const n="ESRI__ID",i="ESRI__OriginID",o="ESRI__DestID",a="ESRI__LayoutGeometry",l="ESRI__AggregationCount",d="LC.ESRI__IsSpatial",p={initializeLayersFromClientData:async(e,t)=>{if(t||(t=[...e.layers,...e.tables].map((e=>e.graphTypeName))),0===t?.length)return;const s=new Map;for(const r of t)s.set(r,u(e,r));const n=await(0,r.fetchClientDataAtKeys)(e.dataManager.knowledgeGraph,Array.from(s.values()));for(const t of[...e.layers,...e.tables]){const s=t.objectType.name;if(null===s)continue;const r=n.get(u(e,s));if(r){const e=JSON.parse(r);null===e||"object"!=typeof e||e.hasOwnProperty("showLabels")||(e.showLabels=!1),t.read(e,{origin:"service"})}}}},u=(e,t)=>"knowledge-graph"===e.type?`${t}/Map`:`${t}/LinkChart/LinkChartSubLayer`;async function h(e,t){return p.initializeLayersFromClientData(e,t)}},45654:(e,t,s)=>{s.d(t,{DX:()=>_,_s:()=>w,aq:()=>b,fe:()=>I}),s(59456),s(52106);var r,n,i,o,a=s(78888),l=(s(61147),s(49186)),d=s(91869),p=(s(94194),s(90708),s(85342),s(69860),s(8460),s(71402)),u=s(42538);s(16930),(n=r||(r={})).ELEMENTUID="ELEMENTUID",n.TYPENAME="TYPENAME",r.ELEMENTUID,r.TYPENAME,function(e){e[e.ELEMENTUID=0]="ELEMENTUID",e[e.TYPENAME=1]="TYPENAME"}(i||(i={})),function(e){e[e.ELEMENTUID=0]="ELEMENTUID",e[e.TYPENAME=1]="TYPENAME",e[e.FROMUID=2]="FROMUID",e[e.TOUID=3]="TOUID"}(o||(o={}));var h,c,y,m,f,g=s(45724);function _(e){if(!e.spatialReference.isWGS84)throw new l.A("knowledge-graph:layer-support-utils","The extentToInBoundsRings function only supports WGS84 spatial references.");return e.clone().normalize().map((e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]))}async function b(e,t){const s=[],r=new Map,n=[];if(t.dataModel?.relationshipTypes)for(const e of t.dataModel.relationshipTypes)e.name&&r.set(e.name,[]);for(const t of e)r.has(t.typeName)&&r.get(t.typeName)?.push(t.id);for(const[e,i]of r){if(i.length<1)continue;const r=new u.A({openCypherQuery:`MATCH (n)-[r:${e}]->(m) WHERE id(r) in $ids RETURN id(n), labels(n)[0], id(m), labels(m)[0]`,bindParameters:{ids:i}});n.push((0,p.executeQueryStreaming)(t,r).then((async e=>{const t=e.resultRowsStream.getReader();for(;;){const{done:e,value:r}=await t.read();if(e)break;for(const e of r)s.push({id:e[0],typeName:e[1]}),s.push({id:e[2],typeName:e[3]})}})))}return await Promise.all(n),s}async function w(e,t){t??=!1;const s={generateAllSublayers:t,namedTypeDefinitions:new Map};return await async function(e){const t=await(0,a.A)(e,{responseType:"array-buffer"}),s=await t.data;return async function(e){const t=new((await(0,g.I)()).MapOfObjectIdentifierSetsDecoder),s=t.decode(new Uint8Array(e)),r=new Map;if(0!==s.error_code)throw new l.A("knowledge-graph:layer-support-utils",s.error_message);const n=t.get_map_of_identifier_sets(),i=n.keys,o=i.size();for(let e=0;e<o;e++){const t=i.get(e),s=n.query_identifier_set(t),o=[];if(s.id_array_type.value===m.GLOBALID_ARRAY){const e=s.get_globalid_array(),t=e.count();for(let s=0;s<t;s++)o.push(e.get_globalid_at(s))}else{if(s.id_array_type.value!==m.IDENTIFIER_ARRAY)throw new l.A("knowledge-graph:layer-support-utils","Tried to encode an unexpected ID Array type.");{const e=s.get_identifier_array(),t=e.count();for(let s=0;s<t;s++)o.push(e.get_identifier_at(s).toString())}}r.set(t,o)}return t.delete(),r}(new Uint8Array(s))}(e).then((e=>{!function(e,t){for(const[s,r]of e){const e=(0,d.tE)(t.namedTypeDefinitions,s,(()=>({useAllData:!1,members:new Map})));for(const t of r)e.members.has(t)||e.members.set(t,{id:t})}}(e,s)})),s}async function I(e){const t=await(0,g.I)(),s=new t.MapOfObjectIdentifierSets;!function(e,t,s){for(const[r,n]of s.namedTypeDefinitions){if(!n.members||n.useAllData)continue;const s=n.members.keys(),i=new t.GlobalIdArray,o=new t.ObjectIdentifierSet;for(const e of s)i.add_globalid(e);o.set_globalid_array(i),i.delete(),e.put_identifier_set(r,o),o.delete()}}(s,t,e);const r=new t.MapOfObjectIdentifierSetsEncoder;try{r.set_map_of_identifier_sets(s),r.encode();const e=r.get_encoding_result();if(0!==e.error.error_code)throw new l.A("knowledge-graph:layer-support-utils",e.error.error_message);const t=structuredClone(e.get_byte_buffer());return r.delete(),t}finally{s.delete()}}s(35448),(f=h||(h={}))[f.featureResult=0]="featureResult",f[f.countResult=1]="countResult",f[f.idsResult=2]="idsResult",function(e){e[e.upperLeft=0]="upperLeft",e[e.lowerLeft=1]="lowerLeft"}(c||(c={})),function(e){e[e.sqlTypeBigInt=0]="sqlTypeBigInt",e[e.sqlTypeBinary=1]="sqlTypeBinary",e[e.sqlTypeBit=2]="sqlTypeBit",e[e.sqlTypeChar=3]="sqlTypeChar",e[e.sqlTypeDate=4]="sqlTypeDate",e[e.sqlTypeDecimal=5]="sqlTypeDecimal",e[e.sqlTypeDouble=6]="sqlTypeDouble",e[e.sqlTypeFloat=7]="sqlTypeFloat",e[e.sqlTypeGeometry=8]="sqlTypeGeometry",e[e.sqlTypeGUID=9]="sqlTypeGUID",e[e.sqlTypeInteger=10]="sqlTypeInteger",e[e.sqlTypeLongNVarchar=11]="sqlTypeLongNVarchar",e[e.sqlTypeLongVarbinary=12]="sqlTypeLongVarbinary",e[e.sqlTypeLongVarchar=13]="sqlTypeLongVarchar",e[e.sqlTypeNChar=14]="sqlTypeNChar",e[e.sqlTypeNVarChar=15]="sqlTypeNVarChar",e[e.sqlTypeOther=16]="sqlTypeOther",e[e.sqlTypeReal=17]="sqlTypeReal",e[e.sqlTypeSmallInt=18]="sqlTypeSmallInt",e[e.sqlTypeSqlXml=19]="sqlTypeSqlXml",e[e.sqlTypeTime=20]="sqlTypeTime",e[e.sqlTypeTimestamp=21]="sqlTypeTimestamp",e[e.sqlTypeTimestamp2=22]="sqlTypeTimestamp2",e[e.sqlTypeTinyInt=23]="sqlTypeTinyInt",e[e.sqlTypeVarbinary=24]="sqlTypeVarbinary",e[e.sqlTypeVarchar=25]="sqlTypeVarchar"}(y||(y={})),function(e){e[e.OID_ARRAY=0]="OID_ARRAY",e[e.GLOBALID_ARRAY=1]="GLOBALID_ARRAY",e[e.STRING_ARRAY=2]="STRING_ARRAY",e[e.IDENTIFIER_ARRAY=3]="IDENTIFIER_ARRAY"}(m||(m={})),s(40863),s(82799),s(94985),s(39829),s(68249),s(86738)},32756:(e,t,s)=>{s.d(t,{f:()=>d,n:()=>l});var r=s(90237),n=s(93637),i=s(10107),o=(s(44208),s(53966),s(87811),s(40608)),a=s(91880);const l={type:[a.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:function(e,t,s){if(!e)return null;const r=e.find((e=>!!e.field));if(!r)return null;const n=new a.A;return n.read(r,s),[n]}},write:{writer:function(e,t,s,r){const i=e.find((e=>!!e.field));i&&(0,n.sM)(s,[i.toJSON()],t)}}}},d=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,r._)([(0,i.M)(l)],t.prototype,"orderBy",void 0),t=(0,r._)([(0,o.$)("esri.layers.mixins.OrderedLayer")],t),t}},91880:(e,t,s)=>{s.d(t,{A:()=>u});var r,n=s(90237),i=s(66552),o=s(25482),a=s(10107),l=(s(44208),s(53966),s(87811),s(40608));const d=new i.J({asc:"ascending",desc:"descending"});let p=r=class extends o.oY{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new r({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n._)([(0,a.M)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,n._)([(0,a.M)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,n._)([(0,a.M)({type:d.apiValues,json:{type:d.jsonValues,read:d.read,write:d.write}})],p.prototype,"order",void 0),p=r=(0,n._)([(0,l.$)("esri.layers.support.OrderByInfo")],p);const u=p},4071:(e,t,s)=>{s.d(t,{$:()=>r,P:()=>n});const r={supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportedStatistics:void 0},n={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsResize:!1},data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsAsyncApplyEdits:!1,zDefault:void 0},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryBins:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryBins:r,query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},8460:(e,t,s)=>{s.d(t,{$C:()=>m,Hh:()=>o,J:()=>l,Tu:()=>c,Wg:()=>y,Xq:()=>g,i6:()=>_,pM:()=>h,tx:()=>a,vJ:()=>f});var r=s(2741);let n,i=null;function o(){return n||(n=s.e(3666).then(s.bind(s,3666)).then((e=>e.l)).then((({default:e})=>e({locateFile:e=>(0,r.s)(`esri/libs/linkchartlayout/${e}`)}))).then((e=>{!function(e){i=e}(e)})),n)}var a,l,d,p,u,h,c,y,m,f,g,_,b,w;function I(e){const t=Object.keys(d).filter((e=>isNaN(parseInt(e,10)))).indexOf(e.timeDirection),s=Object.keys(p).filter((e=>isNaN(parseInt(e,10)))).indexOf(e.eventsTicksVisualization);return{timeDirection:{value:t>-1?t:d.right},timeBannerUTCOffsetInMinutes:e.timeBannerUTCOffsetInMinutes,eventsTicksVisualization:{value:s>-1?s:p.startAndEnd},showDurationLineForNonZeroDurationEntityEvents:e.showDurationLineForNonZeroDurationEntityEvents,durationLineWidth:e.durationLineWidth,entityPositionAtDurationRatio:e.entityPositionAtDurationRatio,showNonZeroDurationIntervalBounds:e.showNonZeroDurationIntervalBounds,separateTimeOverlaps:e.separateTimeOverlaps,separateTimelineOverlaps:e.separateTimelineOverlaps,moveFirstBends:e.moveFirstBends,secondBendRatio:e.secondBendRatio,lineSeparationMultiplier:e.lineSeparationMultiplier,spaceSeparatedLinesEvenly:e.spaceSeparatedLinesEvenly,useBezierCurves:e.useBezierCurves,separatedLineShapeRatio:e.separatedLineShapeRatio}}function v(e,t,s,r,n,o){const a=s.length,l=n.length,d=Float64Array.BYTES_PER_ELEMENT,p=Uint32Array.BYTES_PER_ELEMENT,u=Uint8Array.BYTES_PER_ELEMENT,h=16+a*(u+2*d)+l*(2*p),c=i._malloc(h);try{const u=c+16-c%16,h=u+a*d,y=h+a*d,m=y+l*p,f=m+l*p,g=()=>[i.HEAPF64.subarray(u>>3,(u>>3)+a),i.HEAPF64.subarray(h>>3,(h>>3)+a),i.HEAPU32.subarray(y>>2,(y>>2)+l),i.HEAPU32.subarray(m>>2,(m>>2)+l),i.HEAPU8.subarray(f,f+a)],[_,b,w,I,v]=g();_.set(s),b.set(r),w.set(n),I.set(o),v.set(t);let T=e(a,f,u,h,l,y,m),M=null,E=null;if(T){const e=i.getLayoutLinksTypes(),t=i.getLayoutLinksVerticesEndIndices(),s=i.getLayoutLinksVertices(),r=i.countLayoutLinksVertices();!l||e&&t?r&&!s?T=!1:(M={types:new Uint8Array(i.HEAPU8.subarray(e,e+l)),vertexEndIndex:new Uint32Array(i.HEAPU32.subarray(t>>2,(t>>2)+l)),vertices:new Float64Array(i.HEAPF64.subarray(s>>3,(s>>3)+2*r))},E=i.getAuxiliaryGraphicElements()):T=!1}const[A,x,k,S,N]=g();return s.set(A),r.set(x),n.set(k),o.set(S),t.set(N),{success:T,links:M,graphics:E}}finally{i._free(c),i.cleanupLayout()}}(u=a||(a={}))[u.None=0]="None",u[u.IsMovable=1]="IsMovable",u[u.IsGeographic=2]="IsGeographic",u[u.IsRoot=4]="IsRoot",u[u.IsOld=8]="IsOld",function(e){e[e.Regular=0]="Regular",e[e.Curved=1]="Curved",e[e.Recursive=2]="Recursive"}(l||(l={})),function(e){e[e.right=0]="right",e[e.left=1]="left",e[e.top=2]="top",e[e.bottom=3]="bottom"}(d||(d={})),function(e){e[e.none=0]="none",e[e.startOnly=1]="startOnly",e[e.startAndEnd=2]="startAndEnd"}(p||(p={})),function(e){e.getMinIdealEdgeLength=function(){return i.getMinIdealEdgeLength()},e.apply=function(e,t,s,r,n,o=2,a=1,l=-1){return v(((e,t,s,r,n,d,p)=>i.applyForceDirectedLayout(e,t,s,r,n,d,p,o,a,l)),e,t,s,r,n)}}(h||(h={})),function(e){e.apply=function(e,t,s,r,n,o=2,a=1,l=-1){return v(((e,t,s,r,n,d,p)=>i.applyCommunityLayout(e,t,s,r,n,d,p,o,a,l)),e,t,s,r,n)}}(c||(c={})),function(e){e.apply=function(e,t,s,r,n){return v(i.applySimpleLayout,e,t,s,r,n)}}(y||(y={})),function(e){e.apply=function(e,t,s,r,n){return v(i.applyHierarchicalLayout,e,t,s,r,n)}}(m||(m={})),function(e){e.apply=function(e,t,s,r,n){return v(i.applyRadialTreeLayout,e,t,s,r,n)}}(f||(f={})),function(e){e.apply=function(e,t,s,r,n){return v(i.applySmartTreeLayout,e,t,s,r,n)}}(g||(g={})),function(e){e.apply=function(e,t,s,r,n,o,a,l,u,h,c){const y={timeDirection:d.right,timeBannerUTCOffsetInMinutes:0,eventsTicksVisualization:p.startAndEnd,showDurationLineForNonZeroDurationEntityEvents:!0,durationLineWidth:5,entityPositionAtDurationRatio:1,showNonZeroDurationIntervalBounds:!1,separateTimeOverlaps:!0,separateTimelineOverlaps:!0,moveFirstBends:!0,secondBendRatio:.3,lineSeparationMultiplier:1,spaceSeparatedLinesEvenly:!1,useBezierCurves:!1,separatedLineShapeRatio:0};return v(((e,t,s,o,a,d,p)=>{if(r.length!==e)return!1;if(n.length!==e)return!1;if(l.length!==a)return!1;if(u.length!==a)return!1;const m=Float64Array.BYTES_PER_ELEMENT,f=16,g=i._malloc(f+e*m),_=i._malloc(f+e*m),b=i._malloc(f+a*m),w=i._malloc(f+a*m),v=g+f-g%f,T=_+f-_%f,M=b+f-b%f,E=w+f-w%f;try{i.HEAPF64.subarray(v>>3,(v>>3)+e).set(r),i.HEAPF64.subarray(T>>3,(T>>3)+e).set(n),i.HEAPF64.subarray(M>>3,(M>>3)+a).set(l),i.HEAPF64.subarray(E>>3,(E>>3)+a).set(u);const m=I(Object.assign(y,c));return i.applyChronologicalLayout(e,t,s,o,v,T,a,d,p,M,E,h,m)}finally{i._free(g),i._free(_),i._free(b),i._free(w)}}),e,t,s,o,a)}}(_||(_={})),function(e){e[e.Undirected=0]="Undirected",e[e.Directed=1]="Directed",e[e.Reversed=2]="Reversed"}(b||(b={})),function(e){e[e.ByCC_Raw=0]="ByCC_Raw",e[e.ByCC_NormalizeGlobally=1]="ByCC_NormalizeGlobally",e[e.ByCC_NormalizeByCC=2]="ByCC_NormalizeByCC"}(w||(w={}))},25927:(e,t,s)=>{s.d(t,{A:()=>d});var r=s(90237),n=(s(59456),s(10107)),i=(s(44208),s(53966),s(87811),s(40608)),o=s(54238),a=s(86738);let l=class extends o.A{constructor(e){super(e),this.layoutGeometry=null}};(0,r._)([(0,n.M)({type:a.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,r._)([(0,i.$)("esri.rest.knowledgeGraph.Entity")],l);const d=l},54238:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(90237),n=s(10107),i=(s(44208),s(53966),s(87811),s(40608)),o=s(77901);let a=class extends o.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,r._)([(0,n.M)({type:String,json:{write:!0}})],a.prototype,"typeName",void 0),(0,r._)([(0,n.M)({type:String,json:{write:!0}})],a.prototype,"id",void 0),a=(0,r._)([(0,i.$)("esri.rest.knowledgeGraph.GraphNamedObject")],a);const l=a},77901:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(90237),n=s(25482),i=s(10107),o=(s(44208),s(53966),s(87811),s(40608));let a=class extends n.oY{constructor(e){super(e),this.properties=null}};(0,r._)([(0,i.M)({json:{write:!0}})],a.prototype,"properties",void 0),a=(0,r._)([(0,o.$)("esri.rest.knowledgeGraph.GraphObject")],a);const l=a},42538:(e,t,s)=>{s.d(t,{A:()=>p});var r=s(90237),n=s(10107),i=(s(44208),s(53966),s(87811),s(40608)),o=s(69622);let a=class extends o.A{constructor(e){super(e),this.openCypherQuery=""}};(0,r._)([(0,n.M)()],a.prototype,"openCypherQuery",void 0),a=(0,r._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQuery")],a);const l=a;let d=class extends l{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,r._)([(0,n.M)()],d.prototype,"bindParameters",void 0),(0,r._)([(0,n.M)()],d.prototype,"bindGeometryQuantizationParameters",void 0),(0,r._)([(0,n.M)()],d.prototype,"outputQuantizationParameters",void 0),(0,r._)([(0,n.M)()],d.prototype,"outputSpatialReference",void 0),(0,r._)([(0,n.M)()],d.prototype,"provenanceBehavior",void 0),d=(0,r._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQueryStreaming")],d);const p=d},40662:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(90237),n=(s(53966),s(44208),s(87811),s(49186),s(40608)),i=s(77901);let o=class extends i.A{constructor(e){super(e)}};o=(0,r._)([(0,n.$)("esri.rest.knowledgeGraph.ObjectValue")],o);const a=o},42095:(e,t,s)=>{s.d(t,{A:()=>d});var r=s(90237),n=s(25482),i=s(10107),o=(s(44208),s(53966),s(87811),s(40608)),a=s(77901);let l=class extends n.oY{constructor(e){super(e),this.path=null}};(0,r._)([(0,i.M)({type:[a.A],json:{write:!0}})],l.prototype,"path",void 0),l=(0,r._)([(0,o.$)("esri.rest.knowledgeGraph.Path")],l);const d=l},23150:(e,t,s)=>{s.d(t,{A:()=>d});var r=s(90237),n=(s(59456),s(10107)),i=(s(44208),s(53966),s(87811),s(40608)),o=s(54238),a=s(82799);let l=class extends o.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,r._)([(0,n.M)({type:String,json:{write:!0}})],l.prototype,"originId",void 0),(0,r._)([(0,n.M)({type:String,json:{write:!0}})],l.prototype,"destinationId",void 0),(0,r._)([(0,n.M)({type:a.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,r._)([(0,i.$)("esri.rest.knowledgeGraph.Relationship")],l);const d=l}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6187,1053],{11053:(t,e,_)=>{_.d(e,{c:()=>r,g:()=>o});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},46187:(t,e,_)=>{_.r(e),_.d(e,{p:()=>s});var r,o,n,p=_(11053),i={exports:{}};r=i,o="undefined"!=typeof document?document.currentScript?.src:void 0,"undefined"!=typeof __filename&&(o=o||__filename),n=function(t={}){var e,_,r,n,p=t,i=new Promise(((t,r)=>{e=t,_=r})),c="object"==typeof window,s="function"==typeof importScripts,P="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,a=Object.assign({},p),g="./this.program",y="";if(P){var d=require("fs"),u=require("path");y=__dirname+"/",n=t=>(t=w(t)?new URL(t):u.normalize(t),d.readFileSync(t)),r=(t,e=!0)=>(t=w(t)?new URL(t):u.normalize(t),new Promise(((_,r)=>{d.readFile(t,e?void 0:"utf8",((t,o)=>{t?r(t):_(e?o.buffer:o)}))}))),!p.thisProgram&&process.argv.length>1&&(g=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2)}else(c||s)&&(s?y=self.location.href:"undefined"!=typeof document&&document.currentScript&&(y=document.currentScript.src),o&&(y=o),y=y.startsWith("blob:")?"":y.substr(0,y.replace(/[?#].*/,"").lastIndexOf("/")+1),s&&(n=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),r=t=>w(t)?new Promise(((e,_)=>{var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?e(r.response):_(r.status)},r.onerror=_,r.send(null)})):fetch(t,{credentials:"same-origin"}).then((t=>t.ok?t.arrayBuffer():Promise.reject(new Error(t.status+" : "+t.url)))));var b,f,E=console.log.bind(console),m=console.error.bind(console);Object.assign(p,a),a=null;var T,O,S,l,h,N,M,D=!1;function v(t,e){t||L(e)}function A(){var t=f.buffer;p.HEAP8=T=new Int8Array(t),p.HEAP16=S=new Int16Array(t),p.HEAPU8=O=new Uint8Array(t),p.HEAPU16=new Uint16Array(t),p.HEAP32=l=new Int32Array(t),p.HEAPU32=h=new Uint32Array(t),p.HEAPF32=N=new Float32Array(t),p.HEAPF64=M=new Float64Array(t)}var j=[],R=[],G=[],C=0,I=null;function L(t){m(t="Aborted("+t+")"),D=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw _(e),e}var U,F=t=>t.startsWith("data:application/octet-stream;base64,"),w=t=>t.startsWith("file://");function Y(t,e,_){return function(t){return r(t).then((t=>new Uint8Array(t)),(()=>function(t){if(t==U&&b)return new Uint8Array(b);if(n)return n(t);throw"both async and sync fetching of the wasm failed"}(t)))}(t).then((t=>WebAssembly.instantiate(t,e))).then(_,(t=>{m(`failed to asynchronously prepare wasm: ${t}`),L(t)}))}var x=t=>{for(;t.length>0;)t.shift()(p)},H="undefined"!=typeof TextDecoder?new TextDecoder:void 0,X=(t,e,_)=>{for(var r=e+_,o=e;t[o]&&!(o>=r);)++o;if(o-e>16&&t.buffer&&H)return H.decode(t.subarray(e,o));for(var n="";e<o;){var p=t[e++];if(128&p){var i=63&t[e++];if(192!=(224&p)){var c=63&t[e++];if((p=224==(240&p)?(15&p)<<12|i<<6|c:(7&p)<<18|i<<12|c<<6|63&t[e++])<65536)n+=String.fromCharCode(p);else{var s=p-65536;n+=String.fromCharCode(55296|s>>10,56320|1023&s)}}else n+=String.fromCharCode((31&p)<<6|i)}else n+=String.fromCharCode(p)}return n},z=(t,e)=>t?X(O,t,e):"",W=(t,e,_,r)=>{if(!(r>0))return 0;for(var o=_,n=_+r-1,p=0;p<t.length;++p){var i=t.charCodeAt(p);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&t.charCodeAt(++p)),i<=127){if(_>=n)break;e[_++]=i}else if(i<=2047){if(_+1>=n)break;e[_++]=192|i>>6,e[_++]=128|63&i}else if(i<=65535){if(_+2>=n)break;e[_++]=224|i>>12,e[_++]=128|i>>6&63,e[_++]=128|63&i}else{if(_+3>=n)break;e[_++]=240|i>>18,e[_++]=128|i>>12&63,e[_++]=128|i>>6&63,e[_++]=128|63&i}}return e[_]=0,_-o},Z=(t,e,_)=>W(t,O,e,_),q=[0,31,60,91,121,152,182,213,244,274,305,335],B=[0,31,59,90,120,151,181,212,243,273,304,334],K=(t,e)=>Math.ceil(t/e)*e,V=t=>{var e=(t-f.buffer.byteLength+65535)/65536;try{return f.grow(e),A(),1}catch(t){}},k={},$=()=>{if(!$.strings){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:g||"./this.program"};for(var e in k)void 0===k[e]?delete t[e]:t[e]=k[e];var _=[];for(var e in t)_.push(`${e}=${t[e]}`);$.strings=_}return $.strings},J=[null,[],[]],Q=(t,e)=>{var _=J[t];0===e||10===e?((1===t?E:m)(X(_,0)),_.length=0):_.push(e)},tt={c:function(t,e,_){return 0},q:(t,e,_)=>{},h:function(t,e,_){return 0},d:function(t,e,_,r){},o:t=>{},n:(t,e)=>{},p:(t,e,_)=>{},l:()=>{L("")},s:(t,e,_)=>O.copyWithin(t,e,e+_),j:function(t,e,_){var r=((t,e)=>e+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*e:NaN)(t,e),o=new Date(1e3*r);l[_>>2]=o.getSeconds(),l[_+4>>2]=o.getMinutes(),l[_+8>>2]=o.getHours(),l[_+12>>2]=o.getDate(),l[_+16>>2]=o.getMonth(),l[_+20>>2]=o.getFullYear()-1900,l[_+24>>2]=o.getDay();var n=0|(t=>((t=>t%4==0&&(t%100!=0||t%400==0))(t.getFullYear())?q:B)[t.getMonth()]+t.getDate()-1)(o);l[_+28>>2]=n,l[_+36>>2]=-60*o.getTimezoneOffset();var p=new Date(o.getFullYear(),0,1),i=new Date(o.getFullYear(),6,1).getTimezoneOffset(),c=p.getTimezoneOffset(),s=0|(i!=c&&o.getTimezoneOffset()==Math.min(c,i));l[_+32>>2]=s},r:(t,e,_,r)=>{var o=(new Date).getFullYear(),n=new Date(o,0,1),p=new Date(o,6,1),i=n.getTimezoneOffset(),c=p.getTimezoneOffset(),s=Math.max(i,c);h[t>>2]=60*s,l[e>>2]=Number(i!=c);var P=t=>{var e=t>=0?"-":"+",_=Math.abs(t);return`UTC${e}${String(Math.floor(_/60)).padStart(2,"0")}${String(_%60).padStart(2,"0")}`},a=P(i),g=P(c);c<i?(Z(a,_,17),Z(g,r,17)):(Z(a,r,17),Z(g,_,17))},i:()=>Date.now(),m:t=>{var e=O.length,_=2147483648;if((t>>>=0)>_)return!1;for(var r=1;r<=4;r*=2){var o=e*(1+.2/r);o=Math.min(o,t+100663296);var n=Math.min(_,K(Math.max(t,o),65536));if(V(n))return!0}return!1},e:(t,e)=>{var _=0;return $().forEach(((r,o)=>{var n=e+_;h[t+4*o>>2]=n,((t,e)=>{for(var _=0;_<t.length;++_)T[e++]=t.charCodeAt(_);T[e]=0})(r,n),_+=r.length+1})),0},f:(t,e)=>{var _=$();h[t>>2]=_.length;var r=0;return _.forEach((t=>r+=t.length+1)),h[e>>2]=r,0},a:t=>52,g:(t,e,_,r)=>52,k:function(t,e,_,r,o){return 70},b:(t,e,_,r)=>{for(var o=0,n=0;n<_;n++){var p=h[e>>2],i=h[e+4>>2];e+=8;for(var c=0;c<i;c++)Q(t,O[p+c]);o+=i}return h[r>>2]=o,0}},et=function(){var t={a:tt};return C++,U||(U=function(){var t="pe-wasm.wasm";return F(t)?t:function(t){return p.locateFile?p.locateFile(t,y):y+t}(t)}()),function(t,e,_,r){return"function"!=typeof WebAssembly.instantiateStreaming||F(e)||w(e)||P||"function"!=typeof fetch?Y(e,_,r):fetch(e,{credentials:"same-origin"}).then((t=>WebAssembly.instantiateStreaming(t,_).then(r,(function(t){return m(`wasm streaming compile failed: ${t}`),m("falling back to ArrayBuffer instantiation"),Y(e,_,r)}))))}(0,U,t,(function(t){!function(t){et=t.exports,f=et.t,A(),function(t){R.unshift(t)}(et.u),function(){if(0==--C&&I){var t=I;I=null,t()}}()}(t.instance)})).catch(_),{}}();p._webidl_free=t=>(p._webidl_free=et.v)(t),p._webidl_malloc=t=>(p._webidl_malloc=et.w)(t);var _t,rt=p._emscripten_bind_PeObject_getCode_0=t=>(rt=p._emscripten_bind_PeObject_getCode_0=et.x)(t),ot=p._emscripten_bind_PeObject_getName_1=(t,e)=>(ot=p._emscripten_bind_PeObject_getName_1=et.y)(t,e),nt=p._emscripten_bind_PeObject_getType_0=t=>(nt=p._emscripten_bind_PeObject_getType_0=et.z)(t),pt=p._emscripten_bind_PeCoordsys_isEqual_1=(t,e)=>(pt=p._emscripten_bind_PeCoordsys_isEqual_1=et.A)(t,e),it=p._emscripten_bind_PeCoordsys_getCode_0=t=>(it=p._emscripten_bind_PeCoordsys_getCode_0=et.B)(t),ct=p._emscripten_bind_PeCoordsys_getName_1=(t,e)=>(ct=p._emscripten_bind_PeCoordsys_getName_1=et.C)(t,e),st=p._emscripten_bind_PeCoordsys_getType_0=t=>(st=p._emscripten_bind_PeCoordsys_getType_0=et.D)(t),Pt=p._emscripten_bind_PeUnit_getUnitFactor_0=t=>(Pt=p._emscripten_bind_PeUnit_getUnitFactor_0=et.E)(t),at=p._emscripten_bind_PeUnit_getCode_0=t=>(at=p._emscripten_bind_PeUnit_getCode_0=et.F)(t),gt=p._emscripten_bind_PeUnit_getName_1=(t,e)=>(gt=p._emscripten_bind_PeUnit_getName_1=et.G)(t,e),yt=p._emscripten_bind_PeUnit_getType_0=t=>(yt=p._emscripten_bind_PeUnit_getType_0=et.H)(t),dt=p._emscripten_bind_VoidPtr___destroy___0=t=>(dt=p._emscripten_bind_VoidPtr___destroy___0=et.I)(t),ut=p._emscripten_bind_PeAngunit_getCode_0=t=>(ut=p._emscripten_bind_PeAngunit_getCode_0=et.J)(t),bt=p._emscripten_bind_PeAngunit_getName_1=(t,e)=>(bt=p._emscripten_bind_PeAngunit_getName_1=et.K)(t,e),ft=p._emscripten_bind_PeAngunit_getType_0=t=>(ft=p._emscripten_bind_PeAngunit_getType_0=et.L)(t),Et=p._emscripten_bind_PeAngunit_getUnitFactor_0=t=>(Et=p._emscripten_bind_PeAngunit_getUnitFactor_0=et.M)(t),mt=p._emscripten_bind_PeDatum_getSpheroid_0=t=>(mt=p._emscripten_bind_PeDatum_getSpheroid_0=et.N)(t),Tt=p._emscripten_bind_PeDatum_getCode_0=t=>(Tt=p._emscripten_bind_PeDatum_getCode_0=et.O)(t),Ot=p._emscripten_bind_PeDatum_getName_1=(t,e)=>(Ot=p._emscripten_bind_PeDatum_getName_1=et.P)(t,e),St=p._emscripten_bind_PeDatum_getType_0=t=>(St=p._emscripten_bind_PeDatum_getType_0=et.Q)(t),lt=p._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=t=>(lt=p._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=et.R)(t),ht=p._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=t=>(ht=p._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=et.S)(t),Nt=p._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=t=>(Nt=p._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=et.T)(t),Mt=p._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=t=>(Mt=p._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=et.U)(t),Dt=p._emscripten_bind_PeDefs_get_PE_DD_MAX_0=t=>(Dt=p._emscripten_bind_PeDefs_get_PE_DD_MAX_0=et.V)(t),vt=p._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=t=>(vt=p._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=et.W)(t),At=p._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=t=>(At=p._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=et.X)(t),jt=p._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=t=>(jt=p._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=et.Y)(t),Rt=p._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=t=>(Rt=p._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=et.Z)(t),Gt=p._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=t=>(Gt=p._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=et._)(t),Ct=p._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=t=>(Ct=p._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=et.$)(t),It=p._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=t=>(It=p._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=et.aa)(t),Lt=p._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=t=>(Lt=p._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=et.ba)(t),Ut=p._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=t=>(Ut=p._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=et.ca)(t),Ft=p._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=t=>(Ft=p._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=et.da)(t),wt=p._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=t=>(wt=p._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=et.ea)(t),Yt=p._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=t=>(Yt=p._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=et.fa)(t),xt=p._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=t=>(xt=p._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=et.ga)(t),Ht=p._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=t=>(Ht=p._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=et.ha)(t),Xt=p._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=t=>(Xt=p._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=et.ia)(t),zt=p._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=t=>(zt=p._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=et.ja)(t),Wt=p._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=t=>(Wt=p._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=et.ka)(t),Zt=p._emscripten_bind_PeDefs_get_PE_PARM_X0_0=t=>(Zt=p._emscripten_bind_PeDefs_get_PE_PARM_X0_0=et.la)(t),qt=p._emscripten_bind_PeDefs_get_PE_PARM_ND_0=t=>(qt=p._emscripten_bind_PeDefs_get_PE_PARM_ND_0=et.ma)(t),Bt=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=t=>(Bt=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=et.na)(t),Kt=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=t=>(Kt=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=et.oa)(t),Vt=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=t=>(Vt=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=et.pa)(t),kt=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=t=>(kt=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=et.qa)(t),$t=p._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=t=>($t=p._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=et.ra)(t),Jt=p._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=t=>(Jt=p._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=et.sa)(t),Qt=p._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=t=>(Qt=p._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=et.ta)(t),te=p._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=t=>(te=p._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=et.ua)(t),ee=p._emscripten_bind_PeDouble_PeDouble_1=t=>(ee=p._emscripten_bind_PeDouble_PeDouble_1=et.va)(t),_e=p._emscripten_bind_PeDouble_get_val_0=t=>(_e=p._emscripten_bind_PeDouble_get_val_0=et.wa)(t),re=p._emscripten_bind_PeDouble_set_val_1=(t,e)=>(re=p._emscripten_bind_PeDouble_set_val_1=et.xa)(t,e),oe=p._emscripten_bind_PeDouble___destroy___0=t=>(oe=p._emscripten_bind_PeDouble___destroy___0=et.ya)(t),ne=p._emscripten_bind_PeFactory_initialize_1=t=>(ne=p._emscripten_bind_PeFactory_initialize_1=et.za)(t),pe=p._emscripten_bind_PeFactory_factoryByType_2=(t,e)=>(pe=p._emscripten_bind_PeFactory_factoryByType_2=et.Aa)(t,e),ie=p._emscripten_bind_PeFactory_fromString_2=(t,e)=>(ie=p._emscripten_bind_PeFactory_fromString_2=et.Ba)(t,e),ce=p._emscripten_bind_PeFactory_getCode_1=t=>(ce=p._emscripten_bind_PeFactory_getCode_1=et.Ca)(t),se=p._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(t,e,_,r,o,n)=>(se=p._emscripten_bind_PeGCSExtent_PeGCSExtent_6=et.Da)(t,e,_,r,o,n),Pe=p._emscripten_bind_PeGCSExtent_getLLon_0=t=>(Pe=p._emscripten_bind_PeGCSExtent_getLLon_0=et.Ea)(t),ae=p._emscripten_bind_PeGCSExtent_getSLat_0=t=>(ae=p._emscripten_bind_PeGCSExtent_getSLat_0=et.Fa)(t),ge=p._emscripten_bind_PeGCSExtent_getRLon_0=t=>(ge=p._emscripten_bind_PeGCSExtent_getRLon_0=et.Ga)(t),ye=p._emscripten_bind_PeGCSExtent_getNLat_0=t=>(ye=p._emscripten_bind_PeGCSExtent_getNLat_0=et.Ha)(t),de=p._emscripten_bind_PeGCSExtent___destroy___0=t=>(de=p._emscripten_bind_PeGCSExtent___destroy___0=et.Ia)(t),ue=p._emscripten_bind_PeGeogcs_Delete_0=t=>(ue=p._emscripten_bind_PeGeogcs_Delete_0=et.Ja)(t),be=p._emscripten_bind_PeGeogcs_cloneAlterUnits_1=(t,e)=>(be=p._emscripten_bind_PeGeogcs_cloneAlterUnits_1=et.Ka)(t,e),fe=p._emscripten_bind_PeGeogcs_getDatum_0=t=>(fe=p._emscripten_bind_PeGeogcs_getDatum_0=et.La)(t),Ee=p._emscripten_bind_PeGeogcs_getPrimem_0=t=>(Ee=p._emscripten_bind_PeGeogcs_getPrimem_0=et.Ma)(t),me=p._emscripten_bind_PeGeogcs_getUnit_0=t=>(me=p._emscripten_bind_PeGeogcs_getUnit_0=et.Na)(t),Te=p._emscripten_bind_PeGeogcs_isEqual_1=(t,e)=>(Te=p._emscripten_bind_PeGeogcs_isEqual_1=et.Oa)(t,e),Oe=p._emscripten_bind_PeGeogcs_getCode_0=t=>(Oe=p._emscripten_bind_PeGeogcs_getCode_0=et.Pa)(t),Se=p._emscripten_bind_PeGeogcs_getName_1=(t,e)=>(Se=p._emscripten_bind_PeGeogcs_getName_1=et.Qa)(t,e),le=p._emscripten_bind_PeGeogcs_getType_0=t=>(le=p._emscripten_bind_PeGeogcs_getType_0=et.Ra)(t),he=p._emscripten_bind_PeGeogtran_isEqual_1=(t,e)=>(he=p._emscripten_bind_PeGeogtran_isEqual_1=et.Sa)(t,e),Ne=p._emscripten_bind_PeGeogtran_getGeogcs1_0=t=>(Ne=p._emscripten_bind_PeGeogtran_getGeogcs1_0=et.Ta)(t),Me=p._emscripten_bind_PeGeogtran_getGeogcs2_0=t=>(Me=p._emscripten_bind_PeGeogtran_getGeogcs2_0=et.Ua)(t),De=p._emscripten_bind_PeGeogtran_getParameters_0=t=>(De=p._emscripten_bind_PeGeogtran_getParameters_0=et.Va)(t),ve=p._emscripten_bind_PeGeogtran_loadConstants_0=t=>(ve=p._emscripten_bind_PeGeogtran_loadConstants_0=et.Wa)(t),Ae=p._emscripten_bind_PeGeogtran_getCode_0=t=>(Ae=p._emscripten_bind_PeGeogtran_getCode_0=et.Xa)(t),je=p._emscripten_bind_PeGeogtran_getName_1=(t,e)=>(je=p._emscripten_bind_PeGeogtran_getName_1=et.Ya)(t,e),Re=p._emscripten_bind_PeGeogtran_getType_0=t=>(Re=p._emscripten_bind_PeGeogtran_getType_0=et.Za)(t),Ge=p._emscripten_bind_PeGTlistExtended_getGTlist_6=(t,e,_,r,o,n)=>(Ge=p._emscripten_bind_PeGTlistExtended_getGTlist_6=et._a)(t,e,_,r,o,n),Ce=p._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=t=>(Ce=p._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=et.$a)(t),Ie=p._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=t=>(Ie=p._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=et.ab)(t),Le=p._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=t=>(Le=p._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=et.bb)(t),Ue=p._emscripten_bind_PeGTlistExtendedEntry_Delete_1=t=>(Ue=p._emscripten_bind_PeGTlistExtendedEntry_Delete_1=et.cb)(t),Fe=p._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=t=>(Fe=p._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=et.db)(t),we=p._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=t=>(we=p._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=et.eb)(t),Ye=p._emscripten_bind_PeHorizon_getNump_0=t=>(Ye=p._emscripten_bind_PeHorizon_getNump_0=et.fb)(t),xe=p._emscripten_bind_PeHorizon_getKind_0=t=>(xe=p._emscripten_bind_PeHorizon_getKind_0=et.gb)(t),He=p._emscripten_bind_PeHorizon_getInclusive_0=t=>(He=p._emscripten_bind_PeHorizon_getInclusive_0=et.hb)(t),Xe=p._emscripten_bind_PeHorizon_getSize_0=t=>(Xe=p._emscripten_bind_PeHorizon_getSize_0=et.ib)(t),ze=p._emscripten_bind_PeHorizon_getCoord_0=t=>(ze=p._emscripten_bind_PeHorizon_getCoord_0=et.jb)(t),We=p._emscripten_bind_PeInteger_PeInteger_1=t=>(We=p._emscripten_bind_PeInteger_PeInteger_1=et.kb)(t),Ze=p._emscripten_bind_PeInteger_get_val_0=t=>(Ze=p._emscripten_bind_PeInteger_get_val_0=et.lb)(t),qe=p._emscripten_bind_PeInteger_set_val_1=(t,e)=>(qe=p._emscripten_bind_PeInteger_set_val_1=et.mb)(t,e),Be=p._emscripten_bind_PeInteger___destroy___0=t=>(Be=p._emscripten_bind_PeInteger___destroy___0=et.nb)(t),Ke=p._emscripten_bind_PeLineType_geodetic_distance_10=(t,e,_,r,o,n,i,c,s,P)=>(Ke=p._emscripten_bind_PeLineType_geodetic_distance_10=et.ob)(t,e,_,r,o,n,i,c,s,P),Ve=p._emscripten_bind_PeLineType_geodetic_coordinate_9=(t,e,_,r,o,n,i,c,s)=>(Ve=p._emscripten_bind_PeLineType_geodetic_coordinate_9=et.pb)(t,e,_,r,o,n,i,c,s),ke=p._emscripten_bind_PeLineType_geodesic_coordinate_8=(t,e,_,r,o,n,i,c)=>(ke=p._emscripten_bind_PeLineType_geodesic_coordinate_8=et.qb)(t,e,_,r,o,n,i,c),$e=p._emscripten_bind_PeLineType_great_elliptic_distance_9=(t,e,_,r,o,n,i,c,s)=>($e=p._emscripten_bind_PeLineType_great_elliptic_distance_9=et.rb)(t,e,_,r,o,n,i,c,s),Je=p._emscripten_bind_PeMath_phi_to_eta_2=(t,e)=>(Je=p._emscripten_bind_PeMath_phi_to_eta_2=et.sb)(t,e),Qe=p._emscripten_bind_PeMath_eta_to_phi_2=(t,e)=>(Qe=p._emscripten_bind_PeMath_eta_to_phi_2=et.tb)(t,e),t_=p._emscripten_bind_PeMath_phi_to_phig_2=(t,e)=>(t_=p._emscripten_bind_PeMath_phi_to_phig_2=et.ub)(t,e),e_=p._emscripten_bind_PeMath_q_3=(t,e,_)=>(e_=p._emscripten_bind_PeMath_q_3=et.vb)(t,e,_),__=p._emscripten_bind_PeMath_q90_2=(t,e)=>(__=p._emscripten_bind_PeMath_q90_2=et.wb)(t,e),r_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=t=>(r_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=et.xb)(t),o_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=t=>(o_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=et.yb)(t),n_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=t=>(n_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=et.zb)(t),p_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=t=>(p_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=et.Ab)(t),i_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=t=>(i_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=et.Bb)(t),c_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=t=>(c_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=et.Cb)(t),s_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=t=>(s_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=et.Db)(t),P_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=t=>(P_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=et.Eb)(t),a_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=t=>(a_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=et.Fb)(t),g_=p._emscripten_bind_PeParameter_getValue_0=t=>(g_=p._emscripten_bind_PeParameter_getValue_0=et.Gb)(t),y_=p._emscripten_bind_PeParameter_getCode_0=t=>(y_=p._emscripten_bind_PeParameter_getCode_0=et.Hb)(t),d_=p._emscripten_bind_PeParameter_getName_1=(t,e)=>(d_=p._emscripten_bind_PeParameter_getName_1=et.Ib)(t,e),u_=p._emscripten_bind_PeParameter_getType_0=t=>(u_=p._emscripten_bind_PeParameter_getType_0=et.Jb)(t),b_=p._emscripten_bind_PePCSInfo_getCentralMeridian_0=t=>(b_=p._emscripten_bind_PePCSInfo_getCentralMeridian_0=et.Kb)(t),f_=p._emscripten_bind_PePCSInfo_getDomainMinx_0=t=>(f_=p._emscripten_bind_PePCSInfo_getDomainMinx_0=et.Lb)(t),E_=p._emscripten_bind_PePCSInfo_getDomainMiny_0=t=>(E_=p._emscripten_bind_PePCSInfo_getDomainMiny_0=et.Mb)(t),m_=p._emscripten_bind_PePCSInfo_getDomainMaxx_0=t=>(m_=p._emscripten_bind_PePCSInfo_getDomainMaxx_0=et.Nb)(t),T_=p._emscripten_bind_PePCSInfo_getDomainMaxy_0=t=>(T_=p._emscripten_bind_PePCSInfo_getDomainMaxy_0=et.Ob)(t),O_=p._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=t=>(O_=p._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=et.Pb)(t),S_=p._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=t=>(S_=p._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=et.Qb)(t),l_=p._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=t=>(l_=p._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=et.Rb)(t),h_=p._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=t=>(h_=p._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=et.Sb)(t),N_=p._emscripten_bind_PePCSInfo_isDensificationNeeded_0=t=>(N_=p._emscripten_bind_PePCSInfo_isDensificationNeeded_0=et.Tb)(t),M_=p._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=t=>(M_=p._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=et.Ub)(t),D_=p._emscripten_bind_PePCSInfo_isPannableRectangle_0=t=>(D_=p._emscripten_bind_PePCSInfo_isPannableRectangle_0=et.Vb)(t),v_=p._emscripten_bind_PePCSInfo_generate_2=(t,e)=>(v_=p._emscripten_bind_PePCSInfo_generate_2=et.Wb)(t,e),A_=p._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=t=>(A_=p._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=et.Xb)(t),j_=p._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=t=>(j_=p._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=et.Yb)(t),R_=p._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=t=>(R_=p._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=et.Zb)(t),G_=p._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=t=>(G_=p._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=et._b)(t),C_=p._emscripten_bind_PePrimem_getLongitude_0=t=>(C_=p._emscripten_bind_PePrimem_getLongitude_0=et.$b)(t),I_=p._emscripten_bind_PePrimem_getCode_0=t=>(I_=p._emscripten_bind_PePrimem_getCode_0=et.ac)(t),L_=p._emscripten_bind_PePrimem_getName_1=(t,e)=>(L_=p._emscripten_bind_PePrimem_getName_1=et.bc)(t,e),U_=p._emscripten_bind_PePrimem_getType_0=t=>(U_=p._emscripten_bind_PePrimem_getType_0=et.cc)(t),F_=p._emscripten_bind_PeProjcs_getGeogcs_0=t=>(F_=p._emscripten_bind_PeProjcs_getGeogcs_0=et.dc)(t),w_=p._emscripten_bind_PeProjcs_getProjection_0=t=>(w_=p._emscripten_bind_PeProjcs_getProjection_0=et.ec)(t),Y_=p._emscripten_bind_PeProjcs_getParameters_0=t=>(Y_=p._emscripten_bind_PeProjcs_getParameters_0=et.fc)(t),x_=p._emscripten_bind_PeProjcs_getUnit_0=t=>(x_=p._emscripten_bind_PeProjcs_getUnit_0=et.gc)(t),H_=p._emscripten_bind_PeProjcs_loadConstants_0=t=>(H_=p._emscripten_bind_PeProjcs_loadConstants_0=et.hc)(t),X_=p._emscripten_bind_PeProjcs_horizonGcsGenerate_0=t=>(X_=p._emscripten_bind_PeProjcs_horizonGcsGenerate_0=et.ic)(t),z_=p._emscripten_bind_PeProjcs_horizonPcsGenerate_0=t=>(z_=p._emscripten_bind_PeProjcs_horizonPcsGenerate_0=et.jc)(t),W_=p._emscripten_bind_PeProjcs_isEqual_1=(t,e)=>(W_=p._emscripten_bind_PeProjcs_isEqual_1=et.kc)(t,e),Z_=p._emscripten_bind_PeProjcs_getCode_0=t=>(Z_=p._emscripten_bind_PeProjcs_getCode_0=et.lc)(t),q_=p._emscripten_bind_PeProjcs_getName_1=(t,e)=>(q_=p._emscripten_bind_PeProjcs_getName_1=et.mc)(t,e),B_=p._emscripten_bind_PeProjcs_getType_0=t=>(B_=p._emscripten_bind_PeProjcs_getType_0=et.nc)(t),K_=p._emscripten_bind_PeSpheroid_getAxis_0=t=>(K_=p._emscripten_bind_PeSpheroid_getAxis_0=et.oc)(t),V_=p._emscripten_bind_PeSpheroid_getFlattening_0=t=>(V_=p._emscripten_bind_PeSpheroid_getFlattening_0=et.pc)(t),k_=p._emscripten_bind_PeSpheroid_getCode_0=t=>(k_=p._emscripten_bind_PeSpheroid_getCode_0=et.qc)(t),$_=p._emscripten_bind_PeSpheroid_getName_1=(t,e)=>($_=p._emscripten_bind_PeSpheroid_getName_1=et.rc)(t,e),J_=p._emscripten_bind_PeSpheroid_getType_0=t=>(J_=p._emscripten_bind_PeSpheroid_getType_0=et.sc)(t),Q_=p._emscripten_bind_PeVersion_version_string_0=t=>(Q_=p._emscripten_bind_PeVersion_version_string_0=et.tc)(t);function tr(){C>0||(x(j),C>0||_t||(_t=!0,p.calledRun=!0,D||(x(R),e(p),x(G))))}function er(){}function _r(t){return(t||er).__cache__}function rr(t,e){var _=_r(e),r=_[t];return r||((r=Object.create((e||er).prototype)).ptr=t,_[t]=r)}p._pe_getPeGTlistExtendedEntrySize=()=>(p._pe_getPeGTlistExtendedEntrySize=et.uc)(),p._pe_getPeGTlistExtendedGTsSize=()=>(p._pe_getPeGTlistExtendedGTsSize=et.vc)(),p._pe_getPeHorizonSize=()=>(p._pe_getPeHorizonSize=et.wc)(),p._pe_geog_to_geog=(t,e,_,r,o)=>(p._pe_geog_to_geog=et.yc)(t,e,_,r,o),p._pe_geog_to_proj=(t,e,_)=>(p._pe_geog_to_proj=et.zc)(t,e,_),p._pe_geog_to_dd=(t,e,_,r,o)=>(p._pe_geog_to_dd=et.Ac)(t,e,_,r,o),p._pe_dd_to_geog=(t,e,_,r)=>(p._pe_dd_to_geog=et.Bc)(t,e,_,r),p._pe_geog_to_ddm=(t,e,_,r,o)=>(p._pe_geog_to_ddm=et.Cc)(t,e,_,r,o),p._pe_ddm_to_geog=(t,e,_,r)=>(p._pe_ddm_to_geog=et.Dc)(t,e,_,r),p._pe_geog_to_dms=(t,e,_,r,o)=>(p._pe_geog_to_dms=et.Ec)(t,e,_,r,o),p._pe_dms_to_geog=(t,e,_,r)=>(p._pe_dms_to_geog=et.Fc)(t,e,_,r),p._pe_geog_to_mgrs_extended=(t,e,_,r,o,n,i)=>(p._pe_geog_to_mgrs_extended=et.Gc)(t,e,_,r,o,n,i),p._pe_mgrs_to_geog_extended=(t,e,_,r,o)=>(p._pe_mgrs_to_geog_extended=et.Hc)(t,e,_,r,o),p._pe_geog_to_usng=(t,e,_,r,o,n,i)=>(p._pe_geog_to_usng=et.Ic)(t,e,_,r,o,n,i),p._pe_usng_to_geog=(t,e,_,r)=>(p._pe_usng_to_geog=et.Jc)(t,e,_,r),p._pe_geog_to_utm=(t,e,_,r,o)=>(p._pe_geog_to_utm=et.Kc)(t,e,_,r,o),p._pe_utm_to_geog=(t,e,_,r,o)=>(p._pe_utm_to_geog=et.Lc)(t,e,_,r,o),p._pe_object_to_string_ext=(t,e,_)=>(p._pe_object_to_string_ext=et.Mc)(t,e,_),p._pe_proj_to_geog_center=(t,e,_,r)=>(p._pe_proj_to_geog_center=et.Nc)(t,e,_,r),p.getValue=function(t,e="i8"){switch(e.endsWith("*")&&(e="*"),e){case"i1":case"i8":return T[t];case"i16":return S[t>>1];case"i32":return l[t>>2];case"i64":L("to do getValue(i64) use WASM_BIGINT");case"float":return N[t>>2];case"double":return M[t>>3];case"*":return h[t>>2];default:L(`invalid type for getValue: ${e}`)}},p.UTF8ToString=z,I=function t(){_t||tr(),_t||(I=t)},tr(),er.prototype=Object.create(er.prototype),er.prototype.constructor=er,er.prototype.__class__=er,er.__cache__={},p.WrapperObject=er,p.getCache=_r,p.wrapPointer=rr,p.castObject=function(t,e){return rr(t.ptr,e)},p.NULL=rr(0),p.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete _r(t.__class__)[t.ptr]},p.compare=function(t,e){return t.ptr===e.ptr},p.getPointer=function(t){return t.ptr},p.getClass=function(t){return t.__class__};var or={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(or.needed){for(var t=0;t<or.temps.length;t++)p._webidl_free(or.temps[t]);or.temps.length=0,p._webidl_free(or.buffer),or.buffer=0,or.size+=or.needed,or.needed=0}or.buffer||(or.size+=128,or.buffer=p._webidl_malloc(or.size),v(or.buffer)),or.pos=0},alloc(t,e){v(or.buffer);var _,r=e.BYTES_PER_ELEMENT,o=t.length*r;return o=K(o,8),or.pos+o>=or.size?(v(o>0),or.needed+=o,_=p._webidl_malloc(o),or.temps.push(_)):(_=or.buffer+or.pos,or.pos+=o),_},copy(t,e,_){_/=e.BYTES_PER_ELEMENT;for(var r=0;r<t.length;r++)e[_+r]=t[r]}};function nr(t){if("string"==typeof t){var e=function(t){var e=(t=>{for(var e=0,_=0;_<t.length;++_){var r=t.charCodeAt(_);r<=127?e++:r<=2047?e+=2:r>=55296&&r<=57343?(e+=4,++_):e+=3}return e})(t)+1,_=new Array(e);return W(t,_,0,_.length),_}(t),_=or.alloc(e,T);return or.copy(e,T,_),_}return t}function pr(t){if("object"==typeof t){var e=or.alloc(t,T);return or.copy(t,T,e),e}return t}function ir(){throw"cannot construct a PeObject, no constructor in IDL"}function cr(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function sr(){throw"cannot construct a PeUnit, no constructor in IDL"}function Pr(){throw"cannot construct a VoidPtr, no constructor in IDL"}function ar(){throw"cannot construct a PeAngunit, no constructor in IDL"}function gr(){throw"cannot construct a PeDatum, no constructor in IDL"}function yr(){throw"cannot construct a PeDefs, no constructor in IDL"}function dr(t){t&&"object"==typeof t&&(t=t.ptr),this.ptr=ee(t),_r(dr)[this.ptr]=this}function ur(){throw"cannot construct a PeFactory, no constructor in IDL"}function br(t,e,_,r,o,n){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),this.ptr=se(t,e,_,r,o,n),_r(br)[this.ptr]=this}function fr(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function Er(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function mr(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function Tr(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function Or(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function Sr(){throw"cannot construct a PeHorizon, no constructor in IDL"}function lr(t){t&&"object"==typeof t&&(t=t.ptr),this.ptr=We(t),_r(lr)[this.ptr]=this}function hr(){throw"cannot construct a PeLineType, no constructor in IDL"}function Nr(){throw"cannot construct a PeMath, no constructor in IDL"}function Mr(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function Dr(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function vr(){throw"cannot construct a PeParameter, no constructor in IDL"}function Ar(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function jr(){throw"cannot construct a PePrimem, no constructor in IDL"}function Rr(){throw"cannot construct a PeProjcs, no constructor in IDL"}function Gr(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function Cr(){throw"cannot construct a PeVersion, no constructor in IDL"}return ir.prototype=Object.create(er.prototype),ir.prototype.constructor=ir,ir.prototype.__class__=ir,ir.__cache__={},p.PeObject=ir,ir.prototype.getCode=ir.prototype.getCode=function(){var t=this.ptr;return rt(t)},ir.prototype.getName=ir.prototype.getName=function(t){var e=this.ptr;return or.prepare(),"object"==typeof t&&(t=pr(t)),z(ot(e,t))},ir.prototype.getType=ir.prototype.getType=function(){var t=this.ptr;return nt(t)},cr.prototype=Object.create(ir.prototype),cr.prototype.constructor=cr,cr.prototype.__class__=cr,cr.__cache__={},p.PeCoordsys=cr,cr.prototype.isEqual=cr.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!pt(e,t)},cr.prototype.getCode=cr.prototype.getCode=function(){var t=this.ptr;return it(t)},cr.prototype.getName=cr.prototype.getName=function(t){var e=this.ptr;return or.prepare(),"object"==typeof t&&(t=pr(t)),z(ct(e,t))},cr.prototype.getType=cr.prototype.getType=function(){var t=this.ptr;return st(t)},sr.prototype=Object.create(ir.prototype),sr.prototype.constructor=sr,sr.prototype.__class__=sr,sr.__cache__={},p.PeUnit=sr,sr.prototype.getUnitFactor=sr.prototype.getUnitFactor=function(){var t=this.ptr;return Pt(t)},sr.prototype.getCode=sr.prototype.getCode=function(){var t=this.ptr;return at(t)},sr.prototype.getName=sr.prototype.getName=function(t){var e=this.ptr;return or.prepare(),"object"==typeof t&&(t=pr(t)),z(gt(e,t))},sr.prototype.getType=sr.prototype.getType=function(){var t=this.ptr;return yt(t)},Pr.prototype=Object.create(er.prototype),Pr.prototype.constructor=Pr,Pr.prototype.__class__=Pr,Pr.__cache__={},p.VoidPtr=Pr,Pr.prototype.__destroy__=Pr.prototype.__destroy__=function(){var t=this.ptr;dt(t)},ar.prototype=Object.create(sr.prototype),ar.prototype.constructor=ar,ar.prototype.__class__=ar,ar.__cache__={},p.PeAngunit=ar,ar.prototype.getCode=ar.prototype.getCode=function(){var t=this.ptr;return ut(t)},ar.prototype.getName=ar.prototype.getName=function(t){var e=this.ptr;return or.prepare(),"object"==typeof t&&(t=pr(t)),z(bt(e,t))},ar.prototype.getType=ar.prototype.getType=function(){var t=this.ptr;return ft(t)},ar.prototype.getUnitFactor=ar.prototype.getUnitFactor=function(){var t=this.ptr;return Et(t)},gr.prototype=Object.create(ir.prototype),gr.prototype.constructor=gr,gr.prototype.__class__=gr,gr.__cache__={},p.PeDatum=gr,gr.prototype.getSpheroid=gr.prototype.getSpheroid=function(){var t=this.ptr;return rr(mt(t),Gr)},gr.prototype.getCode=gr.prototype.getCode=function(){var t=this.ptr;return Tt(t)},gr.prototype.getName=gr.prototype.getName=function(t){var e=this.ptr;return or.prepare(),"object"==typeof t&&(t=pr(t)),z(Ot(e,t))},gr.prototype.getType=gr.prototype.getType=function(){var t=this.ptr;return St(t)},yr.prototype=Object.create(er.prototype),yr.prototype.constructor=yr,yr.prototype.__class__=yr,yr.__cache__={},p.PeDefs=yr,yr.prototype.get_PE_BUFFER_MAX=yr.prototype.get_PE_BUFFER_MAX=function(){var t=this.ptr;return lt(t)},Object.defineProperty(yr.prototype,"PE_BUFFER_MAX",{get:yr.prototype.get_PE_BUFFER_MAX}),yr.prototype.get_PE_NAME_MAX=yr.prototype.get_PE_NAME_MAX=function(){var t=this.ptr;return ht(t)},Object.defineProperty(yr.prototype,"PE_NAME_MAX",{get:yr.prototype.get_PE_NAME_MAX}),yr.prototype.get_PE_MGRS_MAX=yr.prototype.get_PE_MGRS_MAX=function(){var t=this.ptr;return Nt(t)},Object.defineProperty(yr.prototype,"PE_MGRS_MAX",{get:yr.prototype.get_PE_MGRS_MAX}),yr.prototype.get_PE_USNG_MAX=yr.prototype.get_PE_USNG_MAX=function(){var t=this.ptr;return Mt(t)},Object.defineProperty(yr.prototype,"PE_USNG_MAX",{get:yr.prototype.get_PE_USNG_MAX}),yr.prototype.get_PE_DD_MAX=yr.prototype.get_PE_DD_MAX=function(){var t=this.ptr;return Dt(t)},Object.defineProperty(yr.prototype,"PE_DD_MAX",{get:yr.prototype.get_PE_DD_MAX}),yr.prototype.get_PE_DMS_MAX=yr.prototype.get_PE_DMS_MAX=function(){var t=this.ptr;return vt(t)},Object.defineProperty(yr.prototype,"PE_DMS_MAX",{get:yr.prototype.get_PE_DMS_MAX}),yr.prototype.get_PE_DDM_MAX=yr.prototype.get_PE_DDM_MAX=function(){var t=this.ptr;return At(t)},Object.defineProperty(yr.prototype,"PE_DDM_MAX",{get:yr.prototype.get_PE_DDM_MAX}),yr.prototype.get_PE_UTM_MAX=yr.prototype.get_PE_UTM_MAX=function(){var t=this.ptr;return jt(t)},Object.defineProperty(yr.prototype,"PE_UTM_MAX",{get:yr.prototype.get_PE_UTM_MAX}),yr.prototype.get_PE_PARM_MAX=yr.prototype.get_PE_PARM_MAX=function(){var t=this.ptr;return Rt(t)},Object.defineProperty(yr.prototype,"PE_PARM_MAX",{get:yr.prototype.get_PE_PARM_MAX}),yr.prototype.get_PE_TYPE_NONE=yr.prototype.get_PE_TYPE_NONE=function(){var t=this.ptr;return Gt(t)},Object.defineProperty(yr.prototype,"PE_TYPE_NONE",{get:yr.prototype.get_PE_TYPE_NONE}),yr.prototype.get_PE_TYPE_GEOGCS=yr.prototype.get_PE_TYPE_GEOGCS=function(){var t=this.ptr;return Ct(t)},Object.defineProperty(yr.prototype,"PE_TYPE_GEOGCS",{get:yr.prototype.get_PE_TYPE_GEOGCS}),yr.prototype.get_PE_TYPE_PROJCS=yr.prototype.get_PE_TYPE_PROJCS=function(){var t=this.ptr;return It(t)},Object.defineProperty(yr.prototype,"PE_TYPE_PROJCS",{get:yr.prototype.get_PE_TYPE_PROJCS}),yr.prototype.get_PE_TYPE_GEOGTRAN=yr.prototype.get_PE_TYPE_GEOGTRAN=function(){var t=this.ptr;return Lt(t)},Object.defineProperty(yr.prototype,"PE_TYPE_GEOGTRAN",{get:yr.prototype.get_PE_TYPE_GEOGTRAN}),yr.prototype.get_PE_TYPE_COORDSYS=yr.prototype.get_PE_TYPE_COORDSYS=function(){var t=this.ptr;return Ut(t)},Object.defineProperty(yr.prototype,"PE_TYPE_COORDSYS",{get:yr.prototype.get_PE_TYPE_COORDSYS}),yr.prototype.get_PE_TYPE_UNIT=yr.prototype.get_PE_TYPE_UNIT=function(){var t=this.ptr;return Ft(t)},Object.defineProperty(yr.prototype,"PE_TYPE_UNIT",{get:yr.prototype.get_PE_TYPE_UNIT}),yr.prototype.get_PE_TYPE_LINUNIT=yr.prototype.get_PE_TYPE_LINUNIT=function(){var t=this.ptr;return wt(t)},Object.defineProperty(yr.prototype,"PE_TYPE_LINUNIT",{get:yr.prototype.get_PE_TYPE_LINUNIT}),yr.prototype.get_PE_STR_OPTS_NONE=yr.prototype.get_PE_STR_OPTS_NONE=function(){var t=this.ptr;return Yt(t)},Object.defineProperty(yr.prototype,"PE_STR_OPTS_NONE",{get:yr.prototype.get_PE_STR_OPTS_NONE}),yr.prototype.get_PE_STR_AUTH_NONE=yr.prototype.get_PE_STR_AUTH_NONE=function(){var t=this.ptr;return xt(t)},Object.defineProperty(yr.prototype,"PE_STR_AUTH_NONE",{get:yr.prototype.get_PE_STR_AUTH_NONE}),yr.prototype.get_PE_STR_AUTH_TOP=yr.prototype.get_PE_STR_AUTH_TOP=function(){var t=this.ptr;return Ht(t)},Object.defineProperty(yr.prototype,"PE_STR_AUTH_TOP",{get:yr.prototype.get_PE_STR_AUTH_TOP}),yr.prototype.get_PE_STR_NAME_CANON=yr.prototype.get_PE_STR_NAME_CANON=function(){var t=this.ptr;return Xt(t)},Object.defineProperty(yr.prototype,"PE_STR_NAME_CANON",{get:yr.prototype.get_PE_STR_NAME_CANON}),yr.prototype.get_PE_STR_FMT_WKT=yr.prototype.get_PE_STR_FMT_WKT=function(){var t=this.ptr;return zt(t)},Object.defineProperty(yr.prototype,"PE_STR_FMT_WKT",{get:yr.prototype.get_PE_STR_FMT_WKT}),yr.prototype.get_PE_STR_FMT_WKT2=yr.prototype.get_PE_STR_FMT_WKT2=function(){var t=this.ptr;return Wt(t)},Object.defineProperty(yr.prototype,"PE_STR_FMT_WKT2",{get:yr.prototype.get_PE_STR_FMT_WKT2}),yr.prototype.get_PE_PARM_X0=yr.prototype.get_PE_PARM_X0=function(){var t=this.ptr;return Zt(t)},Object.defineProperty(yr.prototype,"PE_PARM_X0",{get:yr.prototype.get_PE_PARM_X0}),yr.prototype.get_PE_PARM_ND=yr.prototype.get_PE_PARM_ND=function(){var t=this.ptr;return qt(t)},Object.defineProperty(yr.prototype,"PE_PARM_ND",{get:yr.prototype.get_PE_PARM_ND}),yr.prototype.get_PE_TRANSFORM_1_TO_2=yr.prototype.get_PE_TRANSFORM_1_TO_2=function(){var t=this.ptr;return Bt(t)},Object.defineProperty(yr.prototype,"PE_TRANSFORM_1_TO_2",{get:yr.prototype.get_PE_TRANSFORM_1_TO_2}),yr.prototype.get_PE_TRANSFORM_2_TO_1=yr.prototype.get_PE_TRANSFORM_2_TO_1=function(){var t=this.ptr;return Kt(t)},Object.defineProperty(yr.prototype,"PE_TRANSFORM_2_TO_1",{get:yr.prototype.get_PE_TRANSFORM_2_TO_1}),yr.prototype.get_PE_TRANSFORM_P_TO_G=yr.prototype.get_PE_TRANSFORM_P_TO_G=function(){var t=this.ptr;return Vt(t)},Object.defineProperty(yr.prototype,"PE_TRANSFORM_P_TO_G",{get:yr.prototype.get_PE_TRANSFORM_P_TO_G}),yr.prototype.get_PE_TRANSFORM_G_TO_P=yr.prototype.get_PE_TRANSFORM_G_TO_P=function(){var t=this.ptr;return kt(t)},Object.defineProperty(yr.prototype,"PE_TRANSFORM_G_TO_P",{get:yr.prototype.get_PE_TRANSFORM_G_TO_P}),yr.prototype.get_PE_HORIZON_RECT=yr.prototype.get_PE_HORIZON_RECT=function(){var t=this.ptr;return $t(t)},Object.defineProperty(yr.prototype,"PE_HORIZON_RECT",{get:yr.prototype.get_PE_HORIZON_RECT}),yr.prototype.get_PE_HORIZON_POLY=yr.prototype.get_PE_HORIZON_POLY=function(){var t=this.ptr;return Jt(t)},Object.defineProperty(yr.prototype,"PE_HORIZON_POLY",{get:yr.prototype.get_PE_HORIZON_POLY}),yr.prototype.get_PE_HORIZON_LINE=yr.prototype.get_PE_HORIZON_LINE=function(){var t=this.ptr;return Qt(t)},Object.defineProperty(yr.prototype,"PE_HORIZON_LINE",{get:yr.prototype.get_PE_HORIZON_LINE}),yr.prototype.get_PE_HORIZON_DELTA=yr.prototype.get_PE_HORIZON_DELTA=function(){var t=this.ptr;return te(t)},Object.defineProperty(yr.prototype,"PE_HORIZON_DELTA",{get:yr.prototype.get_PE_HORIZON_DELTA}),dr.prototype=Object.create(er.prototype),dr.prototype.constructor=dr,dr.prototype.__class__=dr,dr.__cache__={},p.PeDouble=dr,dr.prototype.get_val=dr.prototype.get_val=function(){var t=this.ptr;return _e(t)},dr.prototype.set_val=dr.prototype.set_val=function(t){var e=this.ptr;t&&"object"==typeof t&&(t=t.ptr),re(e,t)},Object.defineProperty(dr.prototype,"val",{get:dr.prototype.get_val,set:dr.prototype.set_val}),dr.prototype.__destroy__=dr.prototype.__destroy__=function(){var t=this.ptr;oe(t)},ur.prototype=Object.create(er.prototype),ur.prototype.constructor=ur,ur.prototype.__class__=ur,ur.__cache__={},p.PeFactory=ur,ur.prototype.initialize=ur.prototype.initialize=function(t){or.prepare(),t=t&&"object"==typeof t?t.ptr:nr(t),ne(t)},ur.prototype.factoryByType=ur.prototype.factoryByType=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),rr(pe(t,e),ir)},ur.prototype.fromString=ur.prototype.fromString=function(t,e){return or.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:nr(e),rr(ie(t,e),ir)},ur.prototype.getCode=ur.prototype.getCode=function(t){return t&&"object"==typeof t&&(t=t.ptr),ce(t)},br.prototype=Object.create(er.prototype),br.prototype.constructor=br,br.prototype.__class__=br,br.__cache__={},p.PeGCSExtent=br,br.prototype.getLLon=br.prototype.getLLon=function(){var t=this.ptr;return Pe(t)},br.prototype.getSLat=br.prototype.getSLat=function(){var t=this.ptr;return ae(t)},br.prototype.getRLon=br.prototype.getRLon=function(){var t=this.ptr;return ge(t)},br.prototype.getNLat=br.prototype.getNLat=function(){var t=this.ptr;return ye(t)},br.prototype.__destroy__=br.prototype.__destroy__=function(){var t=this.ptr;de(t)},fr.prototype=Object.create(cr.prototype),fr.prototype.constructor=fr,fr.prototype.__class__=fr,fr.__cache__={},p.PeGeogcs=fr,fr.prototype.Delete=fr.prototype.Delete=function(){var t=this.ptr;ue(t)},fr.prototype.cloneAlterUnits=fr.prototype.cloneAlterUnits=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),rr(be(e,t),fr)},fr.prototype.getDatum=fr.prototype.getDatum=function(){var t=this.ptr;return rr(fe(t),gr)},fr.prototype.getPrimem=fr.prototype.getPrimem=function(){var t=this.ptr;return rr(Ee(t),jr)},fr.prototype.getUnit=fr.prototype.getUnit=function(){var t=this.ptr;return rr(me(t),ar)},fr.prototype.isEqual=fr.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!Te(e,t)},fr.prototype.getCode=fr.prototype.getCode=function(){var t=this.ptr;return Oe(t)},fr.prototype.getName=fr.prototype.getName=function(t){var e=this.ptr;return or.prepare(),"object"==typeof t&&(t=pr(t)),z(Se(e,t))},fr.prototype.getType=fr.prototype.getType=function(){var t=this.ptr;return le(t)},Er.prototype=Object.create(ir.prototype),Er.prototype.constructor=Er,Er.prototype.__class__=Er,Er.__cache__={},p.PeGeogtran=Er,Er.prototype.isEqual=Er.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!he(e,t)},Er.prototype.getGeogcs1=Er.prototype.getGeogcs1=function(){var t=this.ptr;return rr(Ne(t),fr)},Er.prototype.getGeogcs2=Er.prototype.getGeogcs2=function(){var t=this.ptr;return rr(Me(t),fr)},Er.prototype.getParameters=Er.prototype.getParameters=function(){var t=this.ptr;return De(t)},Er.prototype.loadConstants=Er.prototype.loadConstants=function(){var t=this.ptr;return!!ve(t)},Er.prototype.getCode=Er.prototype.getCode=function(){var t=this.ptr;return Ae(t)},Er.prototype.getName=Er.prototype.getName=function(t){var e=this.ptr;return or.prepare(),"object"==typeof t&&(t=pr(t)),z(je(e,t))},Er.prototype.getType=Er.prototype.getType=function(){var t=this.ptr;return Re(t)},mr.prototype=Object.create(er.prototype),mr.prototype.constructor=mr,mr.prototype.__class__=mr,mr.__cache__={},p.PeGTlistExtended=mr,mr.prototype.getGTlist=mr.prototype.getGTlist=function(t,e,_,r,o,n){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),rr(Ge(t,e,_,r,o,n),Tr)},mr.prototype.get_PE_GTLIST_OPTS_COMMON=mr.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var t=this.ptr;return Ce(t)},Object.defineProperty(mr.prototype,"PE_GTLIST_OPTS_COMMON",{get:mr.prototype.get_PE_GTLIST_OPTS_COMMON}),Tr.prototype=Object.create(er.prototype),Tr.prototype.constructor=Tr,Tr.prototype.__class__=Tr,Tr.__cache__={},p.PeGTlistExtendedEntry=Tr,Tr.prototype.getEntries=Tr.prototype.getEntries=function(){var t=this.ptr;return rr(Ie(t),Or)},Tr.prototype.getSteps=Tr.prototype.getSteps=function(){var t=this.ptr;return Le(t)},Tr.prototype.Delete=Tr.prototype.Delete=function(t){t&&"object"==typeof t&&(t=t.ptr),Ue(t)},Or.prototype=Object.create(er.prototype),Or.prototype.constructor=Or,Or.prototype.__class__=Or,Or.__cache__={},p.PeGTlistExtendedGTs=Or,Or.prototype.getDirection=Or.prototype.getDirection=function(){var t=this.ptr;return Fe(t)},Or.prototype.getGeogtran=Or.prototype.getGeogtran=function(){var t=this.ptr;return rr(we(t),Er)},Sr.prototype=Object.create(er.prototype),Sr.prototype.constructor=Sr,Sr.prototype.__class__=Sr,Sr.__cache__={},p.PeHorizon=Sr,Sr.prototype.getNump=Sr.prototype.getNump=function(){var t=this.ptr;return Ye(t)},Sr.prototype.getKind=Sr.prototype.getKind=function(){var t=this.ptr;return xe(t)},Sr.prototype.getInclusive=Sr.prototype.getInclusive=function(){var t=this.ptr;return He(t)},Sr.prototype.getSize=Sr.prototype.getSize=function(){var t=this.ptr;return Xe(t)},Sr.prototype.getCoord=Sr.prototype.getCoord=function(){var t=this.ptr;return ze(t)},lr.prototype=Object.create(er.prototype),lr.prototype.constructor=lr,lr.prototype.__class__=lr,lr.__cache__={},p.PeInteger=lr,lr.prototype.get_val=lr.prototype.get_val=function(){var t=this.ptr;return Ze(t)},lr.prototype.set_val=lr.prototype.set_val=function(t){var e=this.ptr;t&&"object"==typeof t&&(t=t.ptr),qe(e,t)},Object.defineProperty(lr.prototype,"val",{get:lr.prototype.get_val,set:lr.prototype.set_val}),lr.prototype.__destroy__=lr.prototype.__destroy__=function(){var t=this.ptr;Be(t)},hr.prototype=Object.create(er.prototype),hr.prototype.constructor=hr,hr.prototype.__class__=hr,hr.__cache__={},p.PeLineType=hr,hr.prototype.geodetic_distance=hr.prototype.geodetic_distance=function(t,e,_,r,o,n,p,i,c,s){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),p&&"object"==typeof p&&(p=p.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),s&&"object"==typeof s&&(s=s.ptr),Ke(t,e,_,r,o,n,p,i,c,s)},hr.prototype.geodetic_coordinate=hr.prototype.geodetic_coordinate=function(t,e,_,r,o,n,p,i,c){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),p&&"object"==typeof p&&(p=p.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),Ve(t,e,_,r,o,n,p,i,c)},hr.prototype.geodesic_coordinate=hr.prototype.geodesic_coordinate=function(t,e,_,r,o,n,p,i){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),p&&"object"==typeof p&&(p=p.ptr),i&&"object"==typeof i&&(i=i.ptr),ke(t,e,_,r,o,n,p,i)},hr.prototype.great_elliptic_distance=hr.prototype.great_elliptic_distance=function(t,e,_,r,o,n,p,i,c){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),p&&"object"==typeof p&&(p=p.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),$e(t,e,_,r,o,n,p,i,c)},Nr.prototype=Object.create(er.prototype),Nr.prototype.constructor=Nr,Nr.prototype.__class__=Nr,Nr.__cache__={},p.PeMath=Nr,Nr.prototype.phi_to_eta=Nr.prototype.phi_to_eta=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Je(t,e)},Nr.prototype.eta_to_phi=Nr.prototype.eta_to_phi=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Qe(t,e)},Nr.prototype.phi_to_phig=Nr.prototype.phi_to_phig=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),t_(t,e)},Nr.prototype.q=Nr.prototype.q=function(t,e,_){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),_&&"object"==typeof _&&(_=_.ptr),e_(t,e,_)},Nr.prototype.q90=Nr.prototype.q90=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),__(t,e)},Mr.prototype=Object.create(er.prototype),Mr.prototype.constructor=Mr,Mr.prototype.__class__=Mr,Mr.__cache__={},p.PeNotationMgrs=Mr,Mr.prototype.get_PE_MGRS_STYLE_NEW=Mr.prototype.get_PE_MGRS_STYLE_NEW=function(){var t=this.ptr;return r_(t)},Object.defineProperty(Mr.prototype,"PE_MGRS_STYLE_NEW",{get:Mr.prototype.get_PE_MGRS_STYLE_NEW}),Mr.prototype.get_PE_MGRS_STYLE_OLD=Mr.prototype.get_PE_MGRS_STYLE_OLD=function(){var t=this.ptr;return o_(t)},Object.defineProperty(Mr.prototype,"PE_MGRS_STYLE_OLD",{get:Mr.prototype.get_PE_MGRS_STYLE_OLD}),Mr.prototype.get_PE_MGRS_STYLE_AUTO=Mr.prototype.get_PE_MGRS_STYLE_AUTO=function(){var t=this.ptr;return n_(t)},Object.defineProperty(Mr.prototype,"PE_MGRS_STYLE_AUTO",{get:Mr.prototype.get_PE_MGRS_STYLE_AUTO}),Mr.prototype.get_PE_MGRS_180_ZONE_1_PLUS=Mr.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var t=this.ptr;return p_(t)},Object.defineProperty(Mr.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:Mr.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),Mr.prototype.get_PE_MGRS_ADD_SPACES=Mr.prototype.get_PE_MGRS_ADD_SPACES=function(){var t=this.ptr;return i_(t)},Object.defineProperty(Mr.prototype,"PE_MGRS_ADD_SPACES",{get:Mr.prototype.get_PE_MGRS_ADD_SPACES}),Dr.prototype=Object.create(er.prototype),Dr.prototype.constructor=Dr,Dr.prototype.__class__=Dr,Dr.__cache__={},p.PeNotationUtm=Dr,Dr.prototype.get_PE_UTM_OPTS_NONE=Dr.prototype.get_PE_UTM_OPTS_NONE=function(){var t=this.ptr;return c_(t)},Object.defineProperty(Dr.prototype,"PE_UTM_OPTS_NONE",{get:Dr.prototype.get_PE_UTM_OPTS_NONE}),Dr.prototype.get_PE_UTM_OPTS_NS=Dr.prototype.get_PE_UTM_OPTS_NS=function(){var t=this.ptr;return s_(t)},Object.defineProperty(Dr.prototype,"PE_UTM_OPTS_NS",{get:Dr.prototype.get_PE_UTM_OPTS_NS}),Dr.prototype.get_PE_UTM_OPTS_NS_STRICT=Dr.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var t=this.ptr;return P_(t)},Object.defineProperty(Dr.prototype,"PE_UTM_OPTS_NS_STRICT",{get:Dr.prototype.get_PE_UTM_OPTS_NS_STRICT}),Dr.prototype.get_PE_UTM_OPTS_ADD_SPACES=Dr.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var t=this.ptr;return a_(t)},Object.defineProperty(Dr.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:Dr.prototype.get_PE_UTM_OPTS_ADD_SPACES}),vr.prototype=Object.create(ir.prototype),vr.prototype.constructor=vr,vr.prototype.__class__=vr,vr.__cache__={},p.PeParameter=vr,vr.prototype.getValue=vr.prototype.getValue=function(){var t=this.ptr;return g_(t)},vr.prototype.getCode=vr.prototype.getCode=function(){var t=this.ptr;return y_(t)},vr.prototype.getName=vr.prototype.getName=function(t){var e=this.ptr;return or.prepare(),"object"==typeof t&&(t=pr(t)),z(d_(e,t))},vr.prototype.getType=vr.prototype.getType=function(){var t=this.ptr;return u_(t)},Ar.prototype=Object.create(er.prototype),Ar.prototype.constructor=Ar,Ar.prototype.__class__=Ar,Ar.__cache__={},p.PePCSInfo=Ar,Ar.prototype.getCentralMeridian=Ar.prototype.getCentralMeridian=function(){var t=this.ptr;return b_(t)},Ar.prototype.getDomainMinx=Ar.prototype.getDomainMinx=function(){var t=this.ptr;return f_(t)},Ar.prototype.getDomainMiny=Ar.prototype.getDomainMiny=function(){var t=this.ptr;return E_(t)},Ar.prototype.getDomainMaxx=Ar.prototype.getDomainMaxx=function(){var t=this.ptr;return m_(t)},Ar.prototype.getDomainMaxy=Ar.prototype.getDomainMaxy=function(){var t=this.ptr;return T_(t)},Ar.prototype.getNorthPoleLocation=Ar.prototype.getNorthPoleLocation=function(){var t=this.ptr;return O_(t)},Ar.prototype.getNorthPoleGeometry=Ar.prototype.getNorthPoleGeometry=function(){var t=this.ptr;return S_(t)},Ar.prototype.getSouthPoleLocation=Ar.prototype.getSouthPoleLocation=function(){var t=this.ptr;return l_(t)},Ar.prototype.getSouthPoleGeometry=Ar.prototype.getSouthPoleGeometry=function(){var t=this.ptr;return h_(t)},Ar.prototype.isDensificationNeeded=Ar.prototype.isDensificationNeeded=function(){var t=this.ptr;return!!N_(t)},Ar.prototype.isGcsHorizonMultiOverlap=Ar.prototype.isGcsHorizonMultiOverlap=function(){var t=this.ptr;return!!M_(t)},Ar.prototype.isPannableRectangle=Ar.prototype.isPannableRectangle=function(){var t=this.ptr;return!!D_(t)},Ar.prototype.generate=Ar.prototype.generate=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),rr(v_(t,e),Ar)},Ar.prototype.get_PE_PCSINFO_OPTION_NONE=Ar.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var t=this.ptr;return A_(t)},Object.defineProperty(Ar.prototype,"PE_PCSINFO_OPTION_NONE",{get:Ar.prototype.get_PE_PCSINFO_OPTION_NONE}),Ar.prototype.get_PE_PCSINFO_OPTION_DOMAIN=Ar.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var t=this.ptr;return j_(t)},Object.defineProperty(Ar.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:Ar.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),Ar.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=Ar.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var t=this.ptr;return R_(t)},Object.defineProperty(Ar.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:Ar.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),Ar.prototype.get_PE_POLE_POINT=Ar.prototype.get_PE_POLE_POINT=function(){var t=this.ptr;return G_(t)},Object.defineProperty(Ar.prototype,"PE_POLE_POINT",{get:Ar.prototype.get_PE_POLE_POINT}),jr.prototype=Object.create(ir.prototype),jr.prototype.constructor=jr,jr.prototype.__class__=jr,jr.__cache__={},p.PePrimem=jr,jr.prototype.getLongitude=jr.prototype.getLongitude=function(){var t=this.ptr;return C_(t)},jr.prototype.getCode=jr.prototype.getCode=function(){var t=this.ptr;return I_(t)},jr.prototype.getName=jr.prototype.getName=function(t){var e=this.ptr;return or.prepare(),"object"==typeof t&&(t=pr(t)),z(L_(e,t))},jr.prototype.getType=jr.prototype.getType=function(){var t=this.ptr;return U_(t)},Rr.prototype=Object.create(cr.prototype),Rr.prototype.constructor=Rr,Rr.prototype.__class__=Rr,Rr.__cache__={},p.PeProjcs=Rr,Rr.prototype.getGeogcs=Rr.prototype.getGeogcs=function(){var t=this.ptr;return rr(F_(t),fr)},Rr.prototype.getProjection=Rr.prototype.getProjection=function(){var t=this.ptr;return rr(w_(t),ir)},Rr.prototype.getParameters=Rr.prototype.getParameters=function(){var t=this.ptr;return Y_(t)},Rr.prototype.getUnit=Rr.prototype.getUnit=function(){var t=this.ptr;return rr(x_(t),sr)},Rr.prototype.loadConstants=Rr.prototype.loadConstants=function(){var t=this.ptr;return!!H_(t)},Rr.prototype.horizonGcsGenerate=Rr.prototype.horizonGcsGenerate=function(){var t=this.ptr;return rr(X_(t),Sr)},Rr.prototype.horizonPcsGenerate=Rr.prototype.horizonPcsGenerate=function(){var t=this.ptr;return rr(z_(t),Sr)},Rr.prototype.isEqual=Rr.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!W_(e,t)},Rr.prototype.getCode=Rr.prototype.getCode=function(){var t=this.ptr;return Z_(t)},Rr.prototype.getName=Rr.prototype.getName=function(t){var e=this.ptr;return or.prepare(),"object"==typeof t&&(t=pr(t)),z(q_(e,t))},Rr.prototype.getType=Rr.prototype.getType=function(){var t=this.ptr;return B_(t)},Gr.prototype=Object.create(ir.prototype),Gr.prototype.constructor=Gr,Gr.prototype.__class__=Gr,Gr.__cache__={},p.PeSpheroid=Gr,Gr.prototype.getAxis=Gr.prototype.getAxis=function(){var t=this.ptr;return K_(t)},Gr.prototype.getFlattening=Gr.prototype.getFlattening=function(){var t=this.ptr;return V_(t)},Gr.prototype.getCode=Gr.prototype.getCode=function(){var t=this.ptr;return k_(t)},Gr.prototype.getName=Gr.prototype.getName=function(t){var e=this.ptr;return or.prepare(),"object"==typeof t&&(t=pr(t)),z($_(e,t))},Gr.prototype.getType=Gr.prototype.getType=function(){var t=this.ptr;return J_(t)},Cr.prototype=Object.create(er.prototype),Cr.prototype.constructor=Cr,Cr.prototype.__class__=Cr,Cr.__cache__={},p.PeVersion=Cr,Cr.prototype.version_string=Cr.prototype.version_string=function(){var t=this.ptr;return z(Q_(t))},p.ensureCache=or,p.ensureString=nr,p.ensureInt8=pr,p.ensureInt16=function(t){if("object"==typeof t){var e=or.alloc(t,S);return or.copy(t,S,e),e}return t},p.ensureInt32=function(t){if("object"==typeof t){var e=or.alloc(t,l);return or.copy(t,l,e),e}return t},p.ensureFloat32=function(t){if("object"==typeof t){var e=or.alloc(t,N);return or.copy(t,N,e),e}return t},p.ensureFloat64=function(t){if("object"==typeof t){var e=or.alloc(t,M);return or.copy(t,M,e),e}return t},i},r.exports=n;const c=(0,p.g)(i.exports),s=Object.freeze(Object.defineProperty({__proto__:null,default:c},Symbol.toStringTag,{value:"Module"}))}}]);