@arcgis/core 4.31.0-next.20240810 → 4.31.0-next.20240813

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 (70) hide show
  1. package/Graphic.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{861c24d1c27e5fd7dbb2.js → 28f047c68a678f397795.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{90914ca9c8ea0fc6dd0e.js → 5d036a4719b590ce8515.js} +2 -2
  5. package/assets/esri/core/workers/chunks/{c3bcdee189de0e3979be.js → 6b1ce80a91b26d89259c.js} +1 -1
  6. package/assets/esri/core/workers/chunks/78e8e09604e5eb2d8955.js +1 -0
  7. package/assets/esri/core/workers/chunks/86b97f2bb745bf01b801.js +1 -0
  8. package/assets/esri/core/workers/chunks/a79dc7819d95a4736e8c.js +1 -0
  9. package/assets/esri/core/workers/chunks/cd6526f762e7aa30a460.js +1 -0
  10. package/assets/esri/core/workers/chunks/d8f416440963b77595e3.js +1 -0
  11. package/assets/esri/themes/base/widgets/_BuildingLevelPicker.scss +7 -1
  12. package/assets/esri/themes/base/widgets/_Tooltip.scss +2 -1
  13. package/assets/esri/themes/dark/main.css +1 -1
  14. package/assets/esri/themes/light/main.css +1 -1
  15. package/assets/esri/themes/light/view.css +1 -1
  16. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable.json +1 -1
  17. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_en.json +1 -1
  18. package/chunks/LineSeries.js +1 -1
  19. package/chunks/Theme.js +1 -1
  20. package/chunks/pe.js +1 -1
  21. package/geometry/support/geodesicUtils.js +1 -1
  22. package/interfaces.d.ts +44 -0
  23. package/package.json +1 -1
  24. package/portal/Portal.js +1 -1
  25. package/portal/PortalItem.js +1 -1
  26. package/rest/print.js +1 -1
  27. package/rest/support/DateBinParameters.js +1 -1
  28. package/rest/support/printTaskUtils.js +1 -1
  29. package/support/revision.js +1 -1
  30. package/symbols/IconSymbol3DLayer.js +1 -1
  31. package/symbols/cim/CIMSymbolHelper.js +1 -1
  32. package/symbols/cim/Rasterizer.js +1 -1
  33. package/views/2d/engine/webgl/definitions.js +1 -1
  34. package/views/2d/layers/graphics/GraphicStoreItem.js +1 -1
  35. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  36. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
  37. package/views/3d/layers/graphics/pipeline/rendering/RenderCommandEncoder.js +5 -0
  38. package/views/3d/layers/graphics/pipeline/rendering/utils.js +1 -1
  39. package/views/3d/layers/graphics/pipeline/symbolization/TestSymbol.js +1 -1
  40. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  41. package/views/3d/terrain/PatchRenderData.js +1 -1
  42. package/views/3d/terrain/TextureFader.js +1 -1
  43. package/views/3d/webgl-engine/core/shaderLibrary/util/AlphaCutoff.js +1 -1
  44. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
  45. package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
  46. package/views/3d/webgl-engine/lib/WebGLLayer.js +1 -1
  47. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  48. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  49. package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
  50. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  51. package/views/interactive/snapping/allLayerSnapping.js +1 -1
  52. package/views/interactive/snapping/featureSources/FeatureCollectionSnappingSource.js +1 -1
  53. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  54. package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
  55. package/views/overlay/CrosshairOverlayItem.js +5 -0
  56. package/views/overlay/TextOverlayItem.js +1 -1
  57. package/views/support/geodesicMeasurementUtils.js +1 -1
  58. package/widgets/Feature/FeatureMedia/pieChart.js +1 -1
  59. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  60. package/widgets/FeatureTable/FieldColumn.js +1 -1
  61. package/widgets/FeatureTable/Grid/EditorColumn.js +1 -1
  62. package/widgets/FeatureTable/TableMenuVisibleElements.js +1 -1
  63. package/widgets/FeatureTable.js +1 -1
  64. package/widgets/support/exportUtils.js +5 -0
  65. package/assets/esri/core/workers/chunks/28128b24dc3c4072f978.js +0 -1
  66. package/assets/esri/core/workers/chunks/9f3c484d410f06c9bcbe.js +0 -1
  67. package/assets/esri/core/workers/chunks/c832669cf82493df4fe8.js +0 -1
  68. package/assets/esri/core/workers/chunks/e79f5570ab22081ae7fa.js +0 -1
  69. package/assets/esri/core/workers/chunks/ff3cda5fe13cd89bbfd1.js +0 -1
  70. package/views/3d/layers/graphics/pipeline/rendering/FeaturePipelineRendererCommandEncoder.js +0 -5
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6354],{69540:(e,t,r)=>{r.d(t,{O:()=>u,P:()=>d});var n=r(90237),i=r(69622),a=(r(44208),r(4718)),s=(r(53966),r(97768)),o=r(35666),l=r(88620),c=r(40608);const u=e=>{let t=class extends e{clone(){const e=(0,l.oY)(this);(0,s.Lw)(e,"unable to clone instance of non-accessor class");const t=e.metadata,r=e.store,n={},i=new Map;for(const e in t){const s=t[e],l=r?.originOf(e),c=s.clonable;if(s.readOnly||!1===c||l!==o.Gr.USER&&l!==o.Gr.DEFAULTS&&l!==o.Gr.WEB_MAP&&l!==o.Gr.WEB_SCENE)continue;const u=this[e];let d=null;d="function"==typeof c?c(u):"reference"===c?u:(0,a.TU)(u),null!=u&&null==d||(l===o.Gr.DEFAULTS?i.set(e,d):n[e]=d)}const c=new(0,Object.getPrototypeOf(this).constructor)(n);if(i.size){const e=(0,l.oY)(c)?.store;if(e)for(const[t,r]of i)e.set(t,r,o.Gr.DEFAULTS)}return c}};return t=(0,n._)([(0,c.$)("esri.core.Clonable")],t),t};let d=class extends(u(i.A)){};d=(0,n._)([(0,c.$)("esri.core.Clonable")],d)},95488:(e,t,r)=>{r.d(t,{I:()=>i});var n=r(11406);class i extends n.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},60999:(e,t,r)=>{r.d(t,{DZ:()=>p,Ke:()=>m,Tj:()=>u,UT:()=>f,jJ:()=>c});var n=r(90237),i=r(69622),a=r(97768),s=r(74887),o=r(10107),l=r(40608);function c(e,t,r){return(0,s.Lx)(e.map(((e,n)=>t.apply(r,[e,n]))))}async function u(e,t,r){return(await(0,s.Lx)(e.map(((e,n)=>t.apply(r,[e,n]))))).map((e=>e.value))}function d(e){return{ok:!0,value:e}}function h(e){return{ok:!1,error:e}}async function m(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return d(await e)}catch(e){return h(e)}}async function p(e){try{return d(await e)}catch(e){return(0,s.QP)(e),h(e)}}function f(e,t){return new g(e,t)}let g=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,a.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then((e=>{this._result=d(e),this._cleanup()}),(e=>{this._result=h(e),this._cleanup()})),this._abortHandle=(0,s.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,a.xt)(this._abortHandle),this._abortController=null}};(0,n._)([(0,o.MZ)()],g.prototype,"value",null),(0,n._)([(0,o.MZ)()],g.prototype,"error",null),(0,n._)([(0,o.MZ)()],g.prototype,"finished",null),(0,n._)([(0,o.MZ)()],g.prototype,"promise",void 0),(0,n._)([(0,o.MZ)()],g.prototype,"_result",void 0),g=(0,n._)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g)},51624:(e,t,r)=>{r.d(t,{A:()=>u});var n,i,a=r(44208),s=r(93687);(i=n||(n={}))[i.varint=0]="varint",i[i.fixed64=1]="fixed64",i[i.delimited=2]="delimited",i[i.fixed32=5]="fixed32",i[i.unknown=99]="unknown";const o=4294967296,l=new TextDecoder("utf-8"),c=(0,a.A)("safari")||(0,a.A)("ios")?6:(0,a.A)("ff")?12:32;class u{constructor(e,t,r=0,i=(e?e.byteLength:0)){this._tag=0,this._dataType=n.unknown,this._init(e,t,r,i)}_init(e,t,r,n){this._data=e,this._dataView=t,this._pos=r,this._end=n}asUnsafe(){return this}clone(){return new u(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),r}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,n){const i=this.getMessage(),a=e(i,t,r,n);return i.release(),a}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){const e=this._getLength(),t=u.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){u.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case n.varint:this._decodeVarint();break;case n.fixed64:this._skip(8);break;case n.delimited:this._skip(this._getLength());break;case n.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,r=0,n=0;if(this._end-t>=10)do{if(n=e[t++],r|=127&n,!(128&n))break;if(n=e[t++],r|=(127&n)<<7,!(128&n))break;if(n=e[t++],r|=(127&n)<<14,!(128&n))break;if(n=e[t++],r|=(127&n)<<21,!(128&n))break;if(n=e[t++],r+=268435456*(127&n),!(128&n))break;if(n=e[t++],r+=34359738368*(127&n),!(128&n))break;if(n=e[t++],r+=4398046511104*(127&n),!(128&n))break;if(n=e[t++],r+=562949953421312*(127&n),!(128&n))break;if(n=e[t++],r+=72057594037927940*(127&n),!(128&n))break;if(n=e[t++],r+=0x8000000000000000*(127&n),!(128&n))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;t!==this._end&&(n=e[t],128&n);)++t,r+=(127&n)*i,i*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=n*i}return this._pos=t,r}_decodeSVarint(){const e=this._data;let t,r=0,n=0;const i=1&e[this._pos];if(n=e[this._pos++],r|=127&n,!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<7,!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<14,!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<21,!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r+=268435456*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r+=34359738368*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r+=4398046511104*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(t=BigInt(r),n=e[this._pos++],t+=0x2000000000000n*BigInt(127&n),!(128&n))return Number(i?-(t+1n)/2n:t/2n);if(n=e[this._pos++],t+=0x100000000000000n*BigInt(127&n),!(128&n))return Number(i?-(t+1n)/2n:t/2n);if(n=e[this._pos++],t+=0x8000000000000000n*BigInt(127&n),!(128&n))return Number(i?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(this._dataType!==n.delimited)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>c){const n=e.subarray(t,r);return l.decode(n)}let n="",i="";for(let a=t;a<r;++a){const t=e[a];128&t?i+="%"+t.toString(16):(n+=decodeURIComponent(i)+String.fromCharCode(t),i="")}return i.length&&(n+=decodeURIComponent(i)),n}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}}u.pool=new s.A(u,void 0,(e=>{e._data=null,e._dataView=null}))},88930:(e,t,r)=>{r.d(t,{S1:()=>o,lL:()=>c,mi:()=>l,t:()=>u,vf:()=>s});var n=r(97770),i=r(56400),a=r(96285);const s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function o(e,t,r,s=i.qU){const o=new a.oh((0,n.wj)(s)),l=a.c9.fromJSDate(e,{zone:o}),c="decades"===r||"centuries"===r?"year":d(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),l.plus({[c]:t}).toJSDate()}function l(e,t,r="milliseconds"){const n=e.getTime(),i=u(t,r,"milliseconds");return new Date(n+i)}function c(e,t,r=i.qU){const s=new a.oh((0,n.wj)(r)),o=a.c9.fromJSDate(e,{zone:s});if("decades"===t||"centuries"===t){const e=o.startOf("year"),{year:r}=e,n=r-r%("decades"===t?10:100);return e.set({year:n}).toJSDate()}const l=d(t);return o.startOf(l).toJSDate()}function u(e,t,r){return 0===e?0:e*s[t]/s[r]}function d(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},59456:(e,t,r)=>{r.d(t,{yR:()=>u});var n=r(56507),i=r(5443),a=r(91075),s=r(48526),o=r(86738),l=r(39829),c=r(82799);r(16930),r(50498),r(65864);const u={base:a.A,key:"type",typeMap:{extent:i.A,multipoint:s.A,point:o.A,polyline:c.A,polygon:l.A}};(0,n.aq)(u)},65806:(e,t,r)=>{r.d(t,{g:()=>s});var n=r(51850),i=r(57251),a=r(9762);function s(e,t,r,n){if((0,i.canProjectWithoutEngine)(e.spatialReference,r)){o[0]=e.x,o[1]=e.y;const i=e.z;return o[2]=i??n??0,(0,a.projectBuffer)(o,e.spatialReference,0,t,r,0,1)}const s=(0,i.tryProjectWithZConversion)(e,r);return!!s&&(t[0]=s?.x,t[1]=s?.y,t[2]=s?.z??n??0,!0)}const o=(0,n.vt)()},27993:(e,t,r)=>{r.d(t,{F:()=>a}),r(57251);var n=r(16930),i=r(65806);function a(e,t,r,n,a){return!(null==t||null==n||e.length<2)&&(s.x=e[0],s.y=e[1],s.z=e[2],s.spatialReference=t,(0,i.g)(s,r,n,a))}const s=function(e,t,r,n){return{x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:n,type:"point"}}(0,0,0,n.A.WGS84)},65864:(e,t,r)=>{r.d(t,{$B:()=>f,Bi:()=>m,Rg:()=>h,U9:()=>u,ZC:()=>c,fT:()=>d,rS:()=>p,xD:()=>y});var n=r(5443),i=r(91075),a=r(48526),s=r(86738),o=r(39829),l=r(82799);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function u(e){return void 0!==e.points}function d(e){return void 0!==e.x&&void 0!==e.y}function h(e){return void 0!==e.paths}function m(e){return void 0!==e.rings}function p(e){return null==e?null:e instanceof i.A?e:d(e)?s.A.fromJSON(e):h(e)?l.A.fromJSON(e):m(e)?o.A.fromJSON(e):u(e)?a.A.fromJSON(e):c(e)?n.A.fromJSON(e):null}function f(e){return e?d(e)?"esriGeometryPoint":h(e)?"esriGeometryPolyline":m(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":u(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:s.A,esriGeometryPolyline:l.A,esriGeometryPolygon:o.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:a.A};function y(e){return e&&g[e]||null}},17136:(e,t,r)=>{r.d(t,{el:()=>_});var n=r(92602),i=r(49186),a=r(53966),s=r(39829),o=r(82799),l=r(80754),c=r(21325),u=r(28735),d=(r(59456),r(78888)),h=r(65864),m=r(2272),p=r(84952),f=r(92300);const g=()=>a.A.getLogger("esri.geometry.support.normalizeUtils");function y(e){return"polygon"===e[0].type}function T(e){return"polyline"===e[0].type}function S(e,t,r){if(t){const t=function(e,t){if(!(e instanceof o.A||e instanceof s.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw g().error(e),new i.A(e)}const r=(0,l.r8)(e),n=[];for(const e of r){const r=[];n.push(r),r.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const i=e[n][0],a=e[n][1],s=e[n+1][0],o=e[n+1][1],l=Math.sqrt((s-i)*(s-i)+(o-a)*(o-a)),c=(o-a)/l,u=(s-i)/l,d=l/t;if(d>1){for(let e=1;e<=d-1;e++){const n=e*t,s=u*n+i,o=c*n+a;r.push([s,o])}const e=(l+Math.floor(d-1)*t)/2,n=u*e+i,s=c*e+a;r.push([n,s])}r.push([s,o])}}return function(e){return"polygon"===e.type}(e)?new s.A({rings:n,spatialReference:e.spatialReference}):new o.A({paths:n,spatialReference:e.spatialReference})}(e,1e6);e=(0,u.ci)(t,!0)}return r&&(e=(0,l.kS)(e,r)),e}function A(e,t,r){if(Array.isArray(e)){const n=e[0];if(n>t){const r=(0,l.kd)(n,t);e[0]=n+r*(-2*t)}else if(n<r){const t=(0,l.kd)(n,r);e[0]=n+t*(-2*r)}}else{const n=e.x;if(n>t){const r=(0,l.kd)(n,t);e=e.clone().offset(r*(-2*t),0)}else if(n<r){const t=(0,l.kd)(n,r);e=e.clone().offset(t*(-2*r),0)}}return e}function b(e,t){let r=-1;for(let n=0;n<t.cutIndexes.length;n++){const i=t.cutIndexes[n],a=t.geometries[n],s=(0,l.r8)(a);for(let e=0;e<s.length;e++){const t=s[e];t.some((r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const n=t[e][0];r=n>r?n:r}r=Number(r.toFixed(9));const n=-360*(0,l.kd)(r,180);for(let r=0;r<t.length;r++){const t=a.getPoint(e,r);a.setPoint(e,r,t.clone().offset(n,0))}return!0}}))}if(i===r){if(y(e))for(const t of(0,l.r8)(a))e[i]=e[i].addRing(t);else if(T(e))for(const t of(0,l.r8)(a))e[i]=e[i].addPath(t)}else r=i,e[i]=a}return e}async function _(e,t,r){if(!Array.isArray(e))return _([e],t);t&&"string"!=typeof t&&g().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i="string"==typeof t?t:t?.url??n.A.geometryServiceUrl;let a,y,T,w,E,k,I,M,x=0;const O=[],v=[];for(const t of e)if(null!=t)if(a||(a=t.spatialReference,y=(0,c.Vp)(a),T=a.isWebMercator,k=T?102100:4326,w=l.j7[k].maxX,E=l.j7[k].minX,I=l.j7[k].plus180Line,M=l.j7[k].minus180Line),y)if("mesh"===t.type)v.push(t);else if("point"===t.type)v.push(A(t.clone(),w,E));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>A(e,w,E))),v.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,y);v.push(e.rings?new s.A(e):e)}else if(t.extent){const e=t.extent,r=(0,l.kd)(e.xmin,E)*(2*w);let n=0===r?t.clone():(0,l.kS)(t.clone(),r);e.offset(r,0);let{xmin:i,xmax:a}=e;i=Number(i.toFixed(9)),a=Number(a.toFixed(9)),e.intersects(I)&&a!==w?(x=a>x?a:x,n=S(n,T),O.push(n),v.push("cut")):e.intersects(M)&&i!==E?(x=a*(2*w)>x?a*(2*w):x,n=S(n,T,360),O.push(n),v.push("cut")):v.push(n)}else v.push(t.clone());else v.push(t);else v.push(t);let C=(0,l.kd)(x,w),R=-90;const N=C,F=new o.A;for(;C>0;){const e=360*C-180;F.addPath([[e,R],[e,-1*R]]),R*=-1,C--}if(O.length>0&&N>0){const t=b(O,await async function(e,t,r,n){const i=(0,m.Dl)(e),a=t[0].spatialReference,s={...n,responseType:"json",query:{...i.query,f:"json",sr:(0,c.YX)(a),target:JSON.stringify({geometryType:(0,h.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},o=await(0,d.A)(i.path+"/cut",s),{cutIndexes:l,geometries:u=[]}=o.data;return{cutIndexes:l,geometries:u.map((e=>{const t=(0,h.rS)(e);return t.spatialReference=a,t}))}}(i,O,F,r)),n=[],a=[];for(let r=0;r<v.length;r++){const i=v[r];if("cut"!==i)a.push(i);else{const i=t.shift(),s=e[r];null!=s&&"polygon"===s.type&&s.rings&&s.rings.length>1&&i.rings.length>=s.rings.length?(n.push(i),a.push("simplify")):a.push(T?(0,u.Gh)(i):i)}}if(!n.length)return a;const s=await async function(e,t,r){const n="string"==typeof e?(0,p.An)(e):e,i=t[0].spatialReference,a=(0,h.$B)(t[0]),s={...r,query:{...n.query,f:"json",sr:(0,c.YX)(i),geometries:JSON.stringify((0,f.X)(t))}},{data:o}=await(0,d.A)(n.path+"/simplify",s);return(0,f.V)(o.geometries,a,i)}(i,n,r),o=[];for(let e=0;e<a.length;e++){const t=a[e];"simplify"!==t?o.push(t):o.push(T?(0,u.Gh)(s.shift()):s.shift())}return o}const L=[];for(let e=0;e<v.length;e++){const t=v[e];if("cut"!==t)L.push(t);else{const e=O.shift();L.push(!0===T?(0,u.Gh)(e):e)}}return L}},80754:(e,t,r)=>{r.d(t,{j7:()=>s,kS:()=>l,kd:()=>o,r8:()=>c});var n=r(82799),i=r(16930),a=r(65864);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const r=c(e);for(const e of r)for(const r of e)r[0]+=t;return e}function c(e){return(0,a.Bi)(e)?e.rings:e.paths}},62577:(e,t,r)=>{function n(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]:[0,0,0,0]}:null}function i(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;const{originPosition:t,scale:r,translate:n}=e,i=r[0]??1,a=r[1]??1;return{originPosition:"lowerLeft",scale:[i,"lowerLeft"===t?a:-a,r[2]??1,r[3]??1],translate:[n[0]??0,n[1]??0,n[2]??0,n[3]??0]}}function a({scale:e,translate:t},r){return r*e[0]+t[0]}function s({scale:e,translate:t},r){return r*e[1]+t[1]}function o({scale:e,translate:t},r){return(r??0)*e[2]+t[2]}function l({scale:e,translate:t},r){return r?r*e[3]+t[3]:0}function c(e,t){return e&&t?m:e&&!t?d:!e&&t?h:u}r.d(t,{$X:()=>T,Gy:()=>f,P5:()=>S,Q1:()=>i,SW:()=>g,Tr:()=>y,VV:()=>n}),r(65864);const u=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let i=a(e,n[0]),o=s(e,n[1]);r[0]=[i,o];const{scale:l,originPosition:c}=e,u=l[0],d="lowerLeft"===c?l[1]:-l[1];for(let e=1;e<t.length;e++){const[n,a]=t[e];i+=u*n,o+=d*a,r[e]=[i,o]}return r},d=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let i=a(e,n[0]),l=s(e,n[1]);r[0]=[i,l,o(e,n[2])];const{scale:c,originPosition:u}=e,d=c[0],h="lowerLeft"===u?c[1]:-c[1];for(let n=1;n<t.length;n++){const[a,s,c]=t[n];i+=d*a,l+=h*s,r[n]=[i,l,o(e,c)]}return r},h=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let i=a(e,n[0]),o=s(e,n[1]);r[0]=[i,o,l(e,n[2])];const{scale:c,originPosition:u}=e,d=c[0],h="lowerLeft"===u?c[1]:-c[1];for(let n=1;n<t.length;n++){const[a,s,c]=t[n];i+=d*a,o+=h*s,r[n]=[i,o,l(e,c)]}return r},m=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let i=a(e,n[0]),c=s(e,n[1]);r[0]=[i,c,o(e,n[2]),l(e,n[3])];const{scale:u,originPosition:d}=e,h=u[0],m="lowerLeft"===d?u[1]:-u[1];for(let n=1;n<t.length;n++){const[a,s,u,d]=t[n];i+=h*a,c+=m*s,r[n]=[i,c,o(e,u),l(e,d)]}return r};function p(e,t,r){const n=new Array(r.length);for(let i=0;i<r.length;i++)n[i]=t(e,r[i]);return n}function f(e,t,r){const n=i(e);return t.x=function({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}(n,r.x),t.y=function({scale:e,translate:t},r){return Math.round((r-t[1])/e[1])}(n,r.y),null!=r.z&&(t.z=function({scale:e,translate:t},r){return Math.round(((r??0)-t[2])/e[2])}(n,r.z)),null!=r.m&&(t.m=function({scale:e,translate:t},r){return r?Math.round((r-t[3])/e[3]):0}(n,r.m)),t}function g(e,t,r,n=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const s=i(e);t.points=c(n,a)(s,r.points),t.hasZ=n,t.hasM=a}return t}function y(e,t,r,n=null!=r?.z,c=null!=r?.m){if(null==r)return t;const u=i(e);return t.x=a(u,r.x),t.y=s(u,r.y),n&&(t.z=o(u,r.z)),c&&(t.m=l(u,r.m)),t}function T(e,t,r,n=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const s=i(e);t.rings=p(s,c(n,a),r.rings),t.hasZ=n,t.hasM=a}return t}function S(e,t,r,n=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const s=i(e);t.paths=p(s,c(n,a),r.paths),t.hasZ=n,t.hasM=a}return t}},50498:(e,t,r)=>{r.d(t,{Y:()=>a,g:()=>i});var n=r(66552);const i=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),a=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},97770:(e,t,r)=>{r.d(t,{J2:()=>A,Yq:()=>b,_v:()=>g,wj:()=>_});var n=r(66552),i=r(73444),a=r(56400);r(96285),a.n$;const s={year:"numeric",month:"numeric",day:"numeric"},o={year:"numeric",month:"long",day:"numeric"},l={year:"numeric",month:"short",day:"numeric"},c={year:"numeric",month:"long",weekday:"long",day:"numeric"},u={hour:"numeric",minute:"numeric"},d={...u,second:"numeric"},h={hourCycle:"h23"},m={...u,...h},p={...d,...h},f={"short-date":s,"short-date-short-time":{...s,...u},"short-date-short-time-24":{...s,...m},"short-date-long-time":{...s,...d},"short-date-long-time-24":{...s,...p},"short-date-le":s,"short-date-le-short-time":{...s,...u},"short-date-le-short-time-24":{...s,...m},"short-date-le-long-time":{...s,...d},"short-date-le-long-time-24":{...s,...p},"long-month-day-year":o,"long-month-day-year-short-time":{...o,...u},"long-month-day-year-short-time-24":{...o,...m},"long-month-day-year-long-time":{...o,...d},"long-month-day-year-long-time-24":{...o,...p},"day-short-month-year":l,"day-short-month-year-short-time":{...l,...u},"day-short-month-year-short-time-24":{...l,...m},"day-short-month-year-long-time":{...l,...d},"day-short-month-year-long-time-24":{...l,...p},"long-date":c,"long-date-short-time":{...c,...u},"long-date-short-time-24":{...c,...m},"long-date-long-time":{...c,...d},"long-date-long-time-24":{...c,...p},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":u,"long-time":d},g=(0,n.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),y={ar:"ar-u-nu-latn-ca-gregory"};let T=new WeakMap;const S=f["short-date-short-time"];function A(e){return f[e]}function b(e,t=S){return function(e){let t=T.get(e);if(!t){const r=(0,i.JK)(),n=y[r]||r,s=_(e.timeZone??a.qU),o={...e,timeZone:s};t=new Intl.DateTimeFormat(n,o),T.set(e,t)}return t}(t).format(e)}function _(e){switch(e){case a.qU:return a.N5;case a.L5:return a.n$;default:return e}}(0,i.Ml)((()=>{T=new WeakMap}))},73444:(e,t,r)=>{r.d(t,{JK:()=>o,Ml:()=>h,Z0:()=>l,oQ:()=>u});var n=r(36563);let i;const a=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;function s(){return a??globalThis.navigator?.language??"en"}function o(){return void 0===i&&(i=s()),i}function l(e=o()){const t=/^([a-zA-Z]{2,3})(?:[_-][a-zA-Z0-9]+)*$/.exec(e);return t?.[1].toLowerCase()}const c=[];function u(e){return c.push(e),(0,n.hA)((()=>c.splice(c.indexOf(e),1)))}const d=[];function h(e){return d.push(e),(0,n.hA)((()=>d.splice(d.indexOf(e),1)))}globalThis.addEventListener?.("languagechange",(function(){const e=s();i!==e&&([...d].forEach((t=>t(e))),i=e,[...c].forEach((t=>t(e))))}))},43334:(e,t,r)=>{r.d(t,{N3:()=>a,Om:()=>i});var n=r(92722);class i{constructor(e=null,t={},r,n){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=n,this.displayId=0,this.geohashX=0,this.geohashY=0}static fromJSON(e,t){const r=e.geometry?n.A.fromJSON(e.geometry):null,a=e.centroid?n.A.fromJSON(e.centroid):null,s=e.attributes[t];return new i(r,e.attributes,a,s)}weakClone(){const e=new i(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 i(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function a(e){return!!e.geometry?.coords?.length}},58512:(e,t,r)=>{r.d(t,{A:()=>n});class n{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 n;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,r)=>{r.d(t,{A:()=>n});class n{constructor(e=[],t=[],r=!1){this.lengths=e??[],this.coords=t??[],this.hasIndeterminateRingOrder=r}static fromJSON(e){return new n(e.lengths,e.coords,e.hasIndeterminateRingOrder)}static fromRect(e){const[t,r,i,a]=e,s=i-t,o=a-r;return new n([5],[t,r,s,0,0,o,-s,0,0,-o])}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 r=0;r<this.lengths.length;r++){const n=this.lengths[r];for(let r=0;r<n;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=n}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let n=0;for(const e of r){for(let r=1;r<e;r++)t[2*(n+r)]+=t[2*(n+r)-2],t[2*(n+r)+1]+=t[2*(n+r)-1];n+=e}return e}clone(e){if(0===this.lengths.length)return new n([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce(((e,t)=>e+t))),r=this.coords.slice(0,t);return e?(e.set(r),new n(this.lengths,e,this.hasIndeterminateRingOrder)):new n(Array.from(this.lengths),Array.from(r),this.hasIndeterminateRingOrder)}}},20437:(e,t,r)=>{r.d(t,{A:()=>g});var n,i=r(90237),a=r(66552),s=r(25482),o=r(10107),l=r(56507),c=(r(87811),r(44208),r(93223)),u=r(36005),d=r(40608),h=r(72088),m=r(98453);const p=new a.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let f=n=class extends s.oY{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?p.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i._)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,i._)([(0,o.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,i._)([(0,o.MZ)()],f.prototype,"description",void 0),(0,i._)([(0,u.w)("description")],f.prototype,"readDescription",null),(0,i._)([(0,o.MZ)({types:h.gK,json:{read:{reader:h.rS},write:!0}})],f.prototype,"domain",void 0),(0,i._)([(0,o.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,i._)([(0,o.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,i._)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,i._)([(0,o.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,i._)([(0,c.e)(m.m)],f.prototype,"type",void 0),(0,i._)([(0,o.MZ)()],f.prototype,"valueType",void 0),(0,i._)([(0,u.w)("valueType",["description"])],f.prototype,"readValueType",null),(0,i._)([(0,o.MZ)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=n=(0,i._)([(0,d.$)("esri.layers.support.Field")],f);const g=f},72088:(e,t,r)=>{r.d(t,{rS:()=>E,gK:()=>w}),r(44208);var n,i=r(90237),a=r(4718),s=r(10107),o=(r(53966),r(93223)),l=r(40608),c=r(25482);r(87811);let u=n=class extends c.oY{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,i._)([(0,s.MZ)({type:[String,Number],json:{write:!0}})],u.prototype,"code",void 0),u=n=(0,i._)([(0,l.$)("esri.layers.support.CodedValue")],u);const d=new(r(66552).J)({inherited:"inherited",codedValue:"coded-value",range:"range"});let h=class extends c.oY{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,i._)([(0,o.e)(d)],h.prototype,"type",void 0),h=(0,i._)([(0,l.$)("esri.layers.support.Domain")],h);const m=h;var p;let f=p=class extends m{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new p({codedValues:(0,a.o8)(this.codedValues),name:this.name})}};(0,i._)([(0,s.MZ)({type:[u],json:{write:!0}})],f.prototype,"codedValues",void 0),(0,i._)([(0,o.e)({codedValue:"coded-value"})],f.prototype,"type",void 0),f=p=(0,i._)([(0,l.$)("esri.layers.support.CodedValueDomain")],f);const g=f;var y;r(49186);let T=y=class extends m{constructor(e){super(e),this.type="inherited"}clone(){return new y}};(0,i._)([(0,o.e)({inherited:"inherited"})],T.prototype,"type",void 0),T=y=(0,i._)([(0,l.$)("esri.layers.support.InheritedDomain")],T);const S=T;var A;let b=A=class extends m{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new A({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i._)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],b.prototype,"maxValue",void 0),(0,i._)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],b.prototype,"minValue",void 0),(0,i._)([(0,o.e)({range:"range"})],b.prototype,"type",void 0),b=A=(0,i._)([(0,l.$)("esri.layers.support.RangeDomain")],b);const _=b,w={key:"type",base:m,typeMap:{range:b,"coded-value":g,inherited:S}};function E(e){if(!e?.type)return null;switch(e.type){case"range":return _.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return S.fromJSON(e)}return null}},98453:(e,t,r)=>{r.d(t,{m:()=>n});const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},92300:(e,t,r)=>{r.d(t,{V:()=>a,X:()=>i});var n=r(65864);function i(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function a(e,t,r){const i=(0,n.xD)(t);return e.map((e=>{const t=i.fromJSON(e);return t.spatialReference=r,t}))}},10536:(e,t,r)=>{function n(e){const t={};for(const r in e){if("declaredClass"===r)continue;const i=e[r];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){t[r]=[];for(let e=0;e<i.length;e++)t[r][e]=n(i[e])}else"object"==typeof i?i.toJSON&&(t[r]=JSON.stringify(i)):t[r]=i}return t}r.d(t,{z:()=>n})},53655:(e,t,r)=>{r.d(t,{SH:()=>x,ae:()=>w,cn:()=>T});var n=r(49186),i=r(51624),a=r(92722),s=r(69418);const o=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],l=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],c=["upperLeft","lowerLeft"];function u(e){return e>=o.length?null:o[e]}function d(e){return e>=l.length?null:l[e]}function h(e){return e>=c.length?null:c[e]}function m(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function p(e,t,r){const n=e.asUnsafe(),i=t.createPointGeometry(r);for(;n.next();)switch(n.tag()){case 3:{const e=n.getUInt32(),r=n.pos()+e;let a=0;for(;n.pos()<r;)t.addCoordinatePoint(i,n.getSInt64(),a++);break}default:n.skip()}return i}function f(e,t,r){const n=e.asUnsafe(),i=t.createGeometry(r),a=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;n.next();)switch(n.tag()){case 2:{const e=n.getUInt32(),r=n.pos()+e;let a=0;for(;n.pos()<r;)t.addLength(i,n.getUInt32(),a++);break}case 3:{const e=n.getUInt32(),r=n.pos()+e;let s=0;for(t.allocateCoordinates(i);n.pos()<r;)t.addCoordinate(i,n.getSInt64(),s),s++,s===a&&(s=0);break}default:n.skip()}return i}function g(e){const t=e.asUnsafe(),r=new a.A;let n="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.coords.push(t.getSInt64());break}case 1:n=s.z[t.getEnum()];break;default:t.skip()}return{queryGeometry:r,queryGeometryType:n}}function y(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function T(e){const t=e.asUnsafe(),r={type:u(0)};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=u(t.getEnum());break;case 3:r.alias=t.getString();break;case 4:r.sqlType=d(t.getEnum());break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function S(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}function A(e,t,r,n){const i=t.createFeature(r);let a=0;for(;e.next();)switch(e.tag()){case 1:{const t=n[a++].name;i.attributes[t]=e.processMessage(y);break}case 2:i.geometry=e.processMessageWithArgs(f,t,r);break;case 4:i.centroid=e.processMessageWithArgs(p,t,r);break;default:e.skip()}return i}function b(e){const t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function _(e){const t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function w(e){const t={originPosition:h(0)},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=h(r.getEnum());break;case 2:t.scale=r.processMessage(b);break;case 3:t.translate=r.processMessage(_);break;default:r.skip()}return t}function E(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function k(e,t){const r=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:r.wkid=e.getUInt32();break;case 5:r.wkt=e.getString();break;case 2:r.latestWkid=e.getUInt32();break;case 3:r.vcsWkid=e.getUInt32();break;case 4:r.latestVcsWkid=e.getUInt32();break;default:e.skip()}return r}function I(e,t){const r=t.createFeatureResult(),n=e.asUnsafe();r.geometryType=m(t,0);let i=!1;for(;n.next();)switch(n.tag()){case 1:r.objectIdFieldName=n.getString();break;case 3:r.globalIdFieldName=n.getString();break;case 4:r.geohashFieldName=n.getString();break;case 5:r.geometryProperties=n.processMessage(E);break;case 7:r.geometryType=m(t,n.getEnum());break;case 8:r.spatialReference=n.processMessageWithArgs(k,t);break;case 10:r.hasZ=n.getBool();break;case 11:r.hasM=n.getBool();break;case 12:r.transform=n.processMessage(w);break;case 9:r.exceededTransferLimit=n.getBool();break;case 13:t.addField(r,n.processMessage(T));break;case 15:i||(t.prepareFeatures(r),i=!0),t.addFeature(r,n.processMessageWithArgs(A,t,r,r.fields));break;case 2:r.uniqueIdField=n.processMessage(S);break;default:n.skip()}return t.finishFeatureResult(r),r}function M(e,t){const r={};let n=null;for(;e.next();)switch(e.tag()){case 4:n=e.processMessageWithArgs(g);break;case 1:r.featureResult=e.processMessageWithArgs(I,t);break;default:e.skip()}return null!=n&&r.featureResult&&t.addQueryGeometry(r,n),r}function x(e,t){try{const r=2,n=new i.A(new Uint8Array(e),new DataView(e)),a={};for(;n.next();)n.tag()===r?a.queryResult=n.processMessageWithArgs(M,t):n.skip();return a}catch(e){throw new n.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},69418:(e,t,r)=>{r.d(t,{S:()=>c,z:()=>l});var n=r(83047),i=r(21325),a=r(43334),s=r(58512),o=r(92722);const l=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class c{constructor(e){this._options=e,this.geometryTypes=l,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new s.A}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e?.features||!e.hasZ||!this._options.sourceSpatialReference||!e.spatialReference||(0,i.aI)(e.spatialReference,this._options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,n.G9)(this._options.sourceSpatialReference)/(0,n.G9)(e.spatialReference);if(1!==t)for(const r of e.features){if(!(0,a.N3)(r))continue;const e=r.geometry.coords;for(let r=2;r<e.length;r+=3)e[r]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new a.Om}createSpatialReference(){return{wkid:0}}createGeometry(){return new o.A}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce(((e,t)=>e+t),0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new o.A}}},66208:(e,t,r)=>{r.d(t,{m:()=>i});var n=r(53655);function i(e,t){const r=(0,n.SH)(e,t),i=r.queryResult.featureResult,a=r.queryResult.queryGeometry,s=r.queryResult.queryGeometryType;if(i&&i.features&&i.features.length&&i.objectIdFieldName){const e=i.objectIdFieldName;for(const t of i.features)t.attributes&&(t.objectId=t.attributes[e])}return i&&(i.queryGeometry=a,i.queryGeometryType=s),i}},80893:(e,t,r)=>{r.d(t,{IJ:()=>p,Jf:()=>T,Pk:()=>g,eW:()=>m,gW:()=>y,kS:()=>f});var n=r(78888),i=r(84952),a=r(65864),s=r(17136),o=r(21325),l=r(10536),c=r(66208),u=r(58501);const d="Layer does not support extent calculation.";function h(e,t){const r=e.geometry,n=e.toJSON();delete n.compactGeometryEnabled,delete n.defaultSpatialReferenceEnabled;const i=n;let s,l,c;if(null!=r&&(l=r.spatialReference,c=(0,o.YX)(l),i.geometryType=(0,a.$B)(r),i.geometry=function(e,t){if(t&&"extent"===e.type)return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&"point"===e.type)return`${e.x},${e.y}`;const r=e.toJSON();return delete r.spatialReference,JSON.stringify(r)}(r,e.compactGeometryEnabled),i.inSR=c),n.groupByFieldsForStatistics&&(i.groupByFieldsForStatistics=n.groupByFieldsForStatistics.join(",")),n.objectIds&&(i.objectIds=n.objectIds.join(",")),n.orderByFields&&(i.orderByFields=n.orderByFields.join(",")),!n.outFields||!n.returnDistinctValues&&(t?.returnCountOnly||t?.returnExtentOnly||t?.returnIdsOnly)?delete i.outFields:n.outFields.includes("*")?i.outFields="*":i.outFields=n.outFields.join(","),n.outSR?(i.outSR=(0,o.YX)(n.outSR),s=e.outSpatialReference):r&&(n.returnGeometry||n.returnCentroid)&&(i.outSR=i.inSR,s=l),n.returnGeometry&&delete n.returnGeometry,n.outStatistics&&(i.outStatistics=JSON.stringify(n.outStatistics)),n.fullText&&(i.fullText=JSON.stringify(n.fullText)),n.pixelSize&&(i.pixelSize=JSON.stringify(n.pixelSize)),n.quantizationParameters&&(e.defaultSpatialReferenceEnabled&&null!=l&&null!=e.quantizationParameters?.extent&&l.equals(e.quantizationParameters.extent.spatialReference)&&delete n.quantizationParameters.extent.spatialReference,i.quantizationParameters=JSON.stringify(n.quantizationParameters)),n.parameterValues&&(i.parameterValues=JSON.stringify(n.parameterValues)),n.rangeValues&&(i.rangeValues=JSON.stringify(n.rangeValues)),n.dynamicDataSource&&(i.layer=JSON.stringify({source:n.dynamicDataSource}),delete n.dynamicDataSource),n.timeExtent){const e=n.timeExtent,{start:t,end:r}=e;null==t&&null==r||(i.time=t===r?t:`${t??"null"},${r??"null"}`),delete n.timeExtent}return e.defaultSpatialReferenceEnabled&&null!=l&&null!=s&&l.equals(s)&&(i.defaultSR=i.inSR,delete i.inSR,delete i.outSR),i}async function m(e,t,r,n){const i=null!=t.timeExtent&&t.timeExtent.isEmpty?{data:{features:[]}}:await S(e,t,"json",n);return(0,u.q)(t,r,i.data),i}async function p(e,t,r,n){if(null!=t.timeExtent&&t.timeExtent.isEmpty)return{data:r.createFeatureResult()};const i=await f(e,t,n),a=i;return a.data=(0,c.m)(i.data,r),a}function f(e,t,r){return S(e,t,"pbf",r)}function g(e,t,r){return null!=t.timeExtent&&t.timeExtent.isEmpty?Promise.resolve({data:{objectIds:[]}}):S(e,t,"json",r,{returnIdsOnly:!0})}function y(e,t,r){return null!=t.timeExtent&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):S(e,t,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}async function T(e,t,r){if(null!=t.timeExtent&&t.timeExtent.isEmpty)return{data:{count:0,extent:null}};const n=await S(e,t,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}),i=n.data;if(i.hasOwnProperty("extent"))return n;if(i.features)throw new Error(d);if(i.hasOwnProperty("count"))throw new Error(d);return n}async function S(e,t,r,a={},o={}){const c="string"==typeof e?(0,i.An)(e):e,u=t.geometry?[t.geometry]:[],d=await(0,s.el)(u,null,{signal:a.signal}),m=d?.[0];null!=m&&((t=t.clone()).geometry=m);const p=(0,l.z)({...c.query,f:r,...o,...h(t,o)});return(0,n.A)((0,i.fj)(c.path,(f=o,null==t.formatOf3DObjects||f.returnCountOnly||f.returnExtentOnly||f.returnIdsOnly?"query":"query3d")),{...a,responseType:"pbf"===r?"array-buffer":"json",query:{...p,...a.query}});var f}},58501:(e,t,r)=>{r.d(t,{q:()=>i});var n=r(62815);function i(e,t,r){if(!r?.features||!r.hasZ)return;const i=(0,n.N)(r.geometryType,t,e.outSpatialReference);if(null!=i)for(const e of r.features)i(e.geometry)}},2272:(e,t,r)=>{r.d(t,{Dl:()=>s,jV:()=>a,lF:()=>o}),r(92602),r(70333);var n=r(4718),i=r(84952);function a(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function s(e){return"string"==typeof e?(0,i.An)(e):(0,n.o8)(e)}function o(e,t,r){const n={};for(const i in e){if("declaredClass"===i)continue;const a=e[i];if(null!=a&&"function"!=typeof a)if(Array.isArray(a))n[i]=a.map((e=>o(e)));else if("object"==typeof a)if(a.toJSON){const e=a.toJSON(r?.[i]);n[i]=t?e:JSON.stringify(e)}else n[i]=t?a:JSON.stringify(a);else n[i]=a}return n}r(926)},79677:(e,t,r)=>{r.d(t,{A:()=>m});var n,i=r(90237),a=r(25482),s=r(88930),o=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),c=r(40608),u=r(43937),d=r(56400);let h=n=class extends a.oY{static get allTime(){return p}static get empty(){return f}static fromArray(e){return new n({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===n&&r===i}expandTo(e,t=d.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,s.lL)(r,e,t));let i=this.end;if(i){const r=(0,s.lL)(i,e,t);i=i.getTime()===r.getTime()?r:(0,s.S1)(r,1,e,t)}return new n({start:r,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,a=e.end?.getTime()??1/0;let s,o;return i>=t&&i<=r?s=i:t>=i&&t<=a&&(s=t),r>=i&&r<=a?o=r:a>=t&&a<=r&&(o=a),null==s||null==o||isNaN(s)||isNaN(o)?n.empty:new n({start:s===-1/0?null:new Date(s),end:o===1/0?null:new Date(o)})}offset(e,t,r=d.qU){if(this.isEmpty||this.isAllTime)return this.clone();const i=new n,{start:a,end:o}=this;return null!=a&&(i.start=(0,s.S1)(a,e,t,r)),null!=o&&(i.end=(0,s.S1)(o,e,t,r)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return p.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,i._)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,i._)([(0,l.w)("end")],h.prototype,"readEnd",null),(0,i._)([(0,u.K)("end")],h.prototype,"writeEnd",null),(0,i._)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,i._)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,i._)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,i._)([(0,l.w)("start")],h.prototype,"readStart",null),(0,i._)([(0,u.K)("start")],h.prototype,"writeStart",null),h=n=(0,i._)([(0,c.$)("esri.time.TimeExtent")],h);const m=h,p=new h,f=new h({start:void 0,end:void 0})},56400:(e,t,r)=>{r.d(t,{ZS:()=>u,wr:()=>d,qU:()=>a,N5:()=>l,P6:()=>c,L5:()=>s,n$:()=>o});const n=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var i=r(96285);const a="system",s="unknown",o="UTC",l=Intl.DateTimeFormat().resolvedOptions().timeZone;function c(e,t=!1){return{json:{read:{source:e,reader:(t,r)=>r[e]?u(r[e]):null},write:!!t&&{allowNull:!0,writer(t,r){r[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function u(e,t=a){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,t=a){if(!e||!n.has(e.timeZone))return t;const r=n.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?r:function(e){const t=i.c9.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===r?"Etc/UTC":`Etc/GMT${i.mQ.instance(-r).formatOffset(0,"narrow")}`}(r)}(e,t):t}function d(e){const t=new Set(["etc/utc","etc/gmt","gmt"]),r=new Set(Intl.supportedValuesOf("timeZone").map((e=>e.toLowerCase())));return e===a||e===s||t.has(e.toLowerCase())||r.has(e.toLowerCase())}},19874:(e,t,r)=>{r.r(t),r.d(t,{default:()=>R});var n=r(90237),i=(r(59456),r(69622)),a=r(60999),s=r(74887),o=(r(53966),r(44208),r(87811),r(49186)),l=r(40608),c=r(61956),u=r(19419),d=r(80893);class h{constructor(e,t){this.descriptor=e,this.pages=t}}var m=r(51624),p=r(62577),f=r(53655);class g{constructor(e){const t=new m.A(new Uint8Array(e),new DataView(e));this._index=function(e){for(;e.next();){if(2===e.tag())return y(e.getMessage());e.skip()}S()}(t),this._reader=t}get featureCount(){return this._index.featureIndices.length}get exceededTransferLimit(){return this._index.exceededTransferLimit}fieldIndex(e){return this._index.fields.find((t=>t.name===e))?.index??-1}readAttribute(e,t){const{featureCount:r,_index:n}=this;if(e<0||e>=r)return;const i=n.fields.length;if(e<0||t>=i)return;const a=n.attributeIndices[e*i+t],s=this._reader;return s.move(a),function(e){const t=e.getLength(),r=e.pos()+t;for(;e.pos()<r&&e.next();)switch(e.tag()){case 1:return e.getString();case 2:return e.getFloat();case 3:return e.getDouble();case 4:return e.getSInt32();case 5:return e.getUInt32();case 6:return e.getInt64();case 7:return e.getUInt64();case 8:return e.getSInt64();case 9:return e.getBool();default:return e.skip(),null}return null}(s)}readAllCoordinates(e,t=0){const r=this._reader,{transform:n}=this._index,{scale:i,translate:a}=n,[s,o,l]=i,[c,u,d]=a;for(const n of this._index.featureIndices){r.move(n);const i=r.getLength(),a=r.pos()+i;for(;r.pos()<a&&r.next();)switch(r.tag()){case 2:{const n=r.getLength(),i=r.pos()+n;for(;r.pos()<i&&r.next();)3===r.tag()?(r.getUInt32(),e[t++]=c+s*r.getSInt64(),e[t++]=u+o*r.getSInt64(),e[t++]=d+l*r.getSInt64()):r.skip();break}default:r.skip()}}return t}}function y(e){for(;e.next();){if(1===e.tag())return T(e.getMessage());e.skip()}S()}function T(e){let t,r=!1,n=!1,i=0;const a=new Array,s=new Array,o=new Array;for(;e.next();)switch(e.tag()){case 7:0!==e.getEnum()&&S();break;case 9:r=e.getBool()??!1;break;case 12:t=(0,p.Q1)(e.processMessage(f.ae));break;case 13:{const t=e.processMessage(f.cn);t.index=i++,a.push(t);break}case 15:{s.push(e.pos());const t=e.getUInt32(),r=e.pos()+t;for(;e.pos()<r&&e.next();)1===e.tag()?(o.push(e.pos()),e.skip()):e.skip();break}case 10:n=e.getBool()??!1;break;default:e.skip()}return null!=t&&n||S(),{transform:t,exceededTransferLimit:r,fields:a,featureIndices:s,attributeIndices:o}}function S(){const e=new o.A("pbf-parsing-failed","Error while parsing PBF",new Error);throw console.error(e),e}class A{constructor(e,t,r,n,i){this.spatialReference=e,this.url=r,this.objectIdField=n,this.capabilities=i;const{supportsMaxRecordCountFactor:a,maxRecordCount:s}=this.capabilities.query,o=s??8e3,l=(a?4:null)??1,c=o*l;this._pageSize=Math.min(8e3,c);const u=t.clone();u.cacheHint=!0,u.resultType="tile",u.outSpatialReference=e,u.returnGeometry=!0,u.returnZ=!0,u.maxRecordCountFactor=l,u.num=o,u.outFields=[n],this._baseQuery=u}async fetch(e,t){const{spatialReference:r}=this,n=(0,u.w1)(e.extent,r),i=this._baseQuery.clone();i.geometry=n;const a=new Array;let o=0,l=!1,c=1;for(;!l;){const e=[];for(let r=0;r<c;++r)e.push(this._fetchPage(i,o++,t));const r=await Promise.all(e);(0,s.Te)(t);for(const e of r){const t=0!==e.featureCount;l||=!e.exceededTransferLimit||!t,t&&a.push(e)}c=Math.min(c+1,4)}return new h(e,a)}async _fetchPage(e,t,r){const n=e.clone();n.start=t*this._pageSize;const i=(await(0,d.kS)(this.url,n,{signal:r})).data;return(0,s.Te)(r),new g(i)}}var b=r(51850),_=r(9762),w=r(27993);class E{constructor(e,t,r){this.objectIdField=e,this.spatialReference=t,this.renderSpatialReference=r}process(e){const{pages:t}=e;if(0===t.length)return null;const r=t.reduce(((e,{featureCount:t})=>e+t),0);if(0===r)return null;const n=this.objectIdField,i=this.spatialReference,a=this.renderSpatialReference,s=new Float64Array(3*r),o=new Uint32Array(r);let l=0;for(const e of t){l=e.readAllCoordinates(s,l);const t=e.fieldIndex(n);if(t<0)throw new Error("Failed to find object id field");for(let n=0;n<r;++n)o[n]=e.readAttribute(n,t)}const c=new Float64Array(s.length);if(!(0,_.projectBuffer)(s,i,0,c,a,0,r))throw new Error("Failed to project coordinates");const d=e.descriptor.extent,h=(0,u.gX)(d),m=(0,b.vt)();return(0,w.F)([h[0],h[1],0],i,m,a),{numFeatures:r,coordinates:c,objectIds:o,tileId:e.descriptor.id,localOrigin:m}}}class k{constructor(){this.counter=0}generate(e=""){return`${e}${this.counter++}`}}var I=r(46540);class M{constructor(){this.idGenerator=new k,this.commands=[],this.transferables=new Set}createMaterial(){const e=this.idGenerator.generate("material");return this.commands.push({id:"create-material",materialId:e}),e}createAttribute(e,t,r,n){return this.transferables.add(e.buffer),this.transferables.add(t.buffer),{data:e,indices:t,size:r,exclusive:n}}createRenderGeometry(e,t,r,n){this.commands.push({id:"create-rendergeometry",contentId:e,attributes:t,localOrigin:r,materialId:n})}destroyRenderGeometry(e){this.commands.push({id:"destroy-rendergeometry",contentId:e})}dispatch(){const e={commands:this.commands,transferList:Array.from(this.transferables)};return this._clearCommandBuffer(),e}_clearCommandBuffer(){this.commands=[],this.transferables.clear()}}let x=class extends i.A{constructor(){super(),this.materialId=null}async remove(e,t){t.destroyRenderGeometry(e)}async render(e,t){null==this.materialId&&(this.materialId=t.createMaterial());const r=e.numFeatures,n=new Float64Array([0,0,1]),i=new Float64Array([255,255,255,255]),a=new Float64Array([24,24]),s=new Float64Array([0,0,0,1]),o=new Float64Array([0,0]),l=new Float64Array([0]),c=new Uint32Array(r);for(let e=0;e<r;++e)c[e]=e;const u=new Uint32Array(r);for(let e=0;e<r;++e)u[e]=0;const d=[[I.r.POSITION,t.createAttribute(e.coordinates,c,3,!0)],[I.r.NORMAL,t.createAttribute(n,u,3,!0)],[I.r.UV0,t.createAttribute(o,u,2,!0)],[I.r.COLOR,t.createAttribute(i,u,4,!0)],[I.r.ROTATION,t.createAttribute(l,u,1,!0)],[I.r.SIZE,t.createAttribute(a,u,2,!0)],[I.r.CENTEROFFSETANDDISTANCE,t.createAttribute(s,u,4,!0)]];t.createRenderGeometry(e.tileId,d,e.localOrigin,this.materialId)}};x=(0,n._)([(0,l.$)("esri.views.3d.layers.graphics.pipeline.symbolization.TestSymbol")],x);class O{constructor(){this._testSymbol=new x}async remove(e,t){this._testSymbol.remove(e,t)}async symbolize(e,t){this._testSymbol.render(e,t)}}var v=r(16930);let C=class extends i.A{constructor(){super(...arguments),this.remoteClient=null,this._pendingTiles=new Map,this._loadedTiles=new Map,this._fetcher=null,this._processor=null,this._symbolizer=null,this._renderer=null}destroy(){for(const e of this._pendingTiles.values())e.abort();this._pendingTiles.clear(),this._loadedTiles.clear()}setup({spatialReference:e,renderSpatialReference:t,baseQuery:r,url:n,objectIdField:i,capabilities:a}){const s=v.A.fromJSON(e);this._fetcher=new A(s,c.A.fromJSON(r),n,i,a),this._processor=new E(i,s,v.A.fromJSON(t)),this._symbolizer=new O,this._renderer=new M}async onTileTreeChange(e){const{added:t,removed:r}=e;for(const e of r){this._loadedTiles.delete(e);const t=this._pendingTiles.get(e);t?.abort(),this._pendingTiles.delete(e)}for(const e of t){const t=this._pendingTiles.get(e.id);t?.abort(),this._pendingTiles.set(e.id,(0,a.UT)((t=>this._addTile(e,t))))}await this._removeTiles(r)}async _addTile(e,t){const r=await this._fetcher.fetch(e,t);(0,s.Te)(t);const n=this._processor.process(r);if(null==n)return void this._pendingTiles.delete(e.id);await this._symbolizer.symbolize(n,this._renderer);const{commands:i,transferList:a}=this._renderer.dispatch();await this.remoteClient.invoke("dispatchRenderCommands",i,{signal:t,transferList:a}),this._pendingTiles.delete(e.id),this._loadedTiles.set(e.id,r)}async _removeTiles(e){for(const t of e)await this._symbolizer.remove(t,this._renderer);const{commands:t,transferList:r}=this._renderer.dispatch();await this.remoteClient.invoke("dispatchRenderCommands",t,{transferList:r})}};C=(0,n._)([(0,l.$)("esri.views.3d.layers.graphics.pipeline.Feature3DPipelineWorker")],C);const R=C},46540:(e,t,r)=>{var n;r.d(t,{r:()=>n}),function(e){e.POSITION="position",e.NORMAL="normal",e.NORMALCOMPRESSED="normalCompressed",e.UV0="uv0",e.COLOR="color",e.SYMBOLCOLOR="symbolColor",e.SIZE="size",e.ROTATION="rotation",e.TANGENT="tangent",e.OFFSET="offset",e.PERSPECTIVEDIVIDE="perspectiveDivide",e.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",e.LENGTH="length",e.PREVPOSITION="prevPosition",e.NEXTPOSITION="nextPosition",e.SUBDIVISIONFACTOR="subdivisionFactor",e.COLORFEATUREATTRIBUTE="colorFeatureAttribute",e.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",e.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",e.DISTANCETOSTART="distanceToStart",e.UVMAPSPACE="uvMapSpace",e.BOUNDINGRECT="boundingRect",e.UVREGION="uvRegion",e.PROFILERIGHT="profileRight",e.PROFILEUP="profileUp",e.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",e.FEATUREVALUE="featureValue",e.INSTANCEMODELORIGINHI="instanceModelOriginHi",e.INSTANCEMODELORIGINLO="instanceModelOriginLo",e.INSTANCEMODEL="instanceModel",e.INSTANCEMODELNORMAL="instanceModelNormal",e.INSTANCECOLOR="instanceColor",e.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",e.LOCALTRANSFORM="localTransform",e.GLOBALTRANSFORM="globalTransform",e.BOUNDINGSPHERE="boundingSphere",e.MODELORIGIN="modelOrigin",e.MODELSCALEFACTORS="modelScaleFactors",e.FEATUREATTRIBUTE="featureAttribute",e.STATE="state",e.LODLEVEL="lodLevel",e.POSITION0="position0",e.POSITION1="position1",e.NORMAL2COMPRESSED="normal2Compressed",e.COMPONENTINDEX="componentIndex",e.VARIANTOFFSET="variantOffset",e.VARIANTSTROKE="variantStroke",e.VARIANTEXTENSION="variantExtension",e.SIDENESS="sideness",e.START="start",e.END="end",e.UP="up",e.EXTRUDE="extrude",e.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",e.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(n||(n={}))}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8571],{69540:(e,t,r)=>{r.d(t,{O:()=>d,P:()=>u});var n=r(90237),i=r(69622),a=(r(44208),r(4718)),s=(r(53966),r(97768)),o=r(35666),l=r(88620),c=r(40608);const d=e=>{let t=class extends e{clone(){const e=(0,l.oY)(this);(0,s.Lw)(e,"unable to clone instance of non-accessor class");const t=e.metadata,r=e.store,n={},i=new Map;for(const e in t){const s=t[e],l=r?.originOf(e),c=s.clonable;if(s.readOnly||!1===c||l!==o.Gr.USER&&l!==o.Gr.DEFAULTS&&l!==o.Gr.WEB_MAP&&l!==o.Gr.WEB_SCENE)continue;const d=this[e];let u=null;u="function"==typeof c?c(d):"reference"===c?d:(0,a.TU)(d),null!=d&&null==u||(l===o.Gr.DEFAULTS?i.set(e,u):n[e]=u)}const c=new(0,Object.getPrototypeOf(this).constructor)(n);if(i.size){const e=(0,l.oY)(c)?.store;if(e)for(const[t,r]of i)e.set(t,r,o.Gr.DEFAULTS)}return c}};return t=(0,n._)([(0,c.$)("esri.core.Clonable")],t),t};let u=class extends(d(i.A)){};u=(0,n._)([(0,c.$)("esri.core.Clonable")],u)},95488:(e,t,r)=>{r.d(t,{I:()=>i});var n=r(11406);class i extends n.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},60999:(e,t,r)=>{r.d(t,{DZ:()=>p,Ke:()=>m,Tj:()=>d,UT:()=>f,jJ:()=>c});var n=r(90237),i=r(69622),a=r(97768),s=r(74887),o=r(10107),l=r(40608);function c(e,t,r){return(0,s.Lx)(e.map(((e,n)=>t.apply(r,[e,n]))))}async function d(e,t,r){return(await(0,s.Lx)(e.map(((e,n)=>t.apply(r,[e,n]))))).map((e=>e.value))}function u(e){return{ok:!0,value:e}}function h(e){return{ok:!1,error:e}}async function m(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return u(await e)}catch(e){return h(e)}}async function p(e){try{return u(await e)}catch(e){return(0,s.QP)(e),h(e)}}function f(e,t){return new g(e,t)}let g=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,a.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then((e=>{this._result=u(e),this._cleanup()}),(e=>{this._result=h(e),this._cleanup()})),this._abortHandle=(0,s.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,a.xt)(this._abortHandle),this._abortController=null}};(0,n._)([(0,o.MZ)()],g.prototype,"value",null),(0,n._)([(0,o.MZ)()],g.prototype,"error",null),(0,n._)([(0,o.MZ)()],g.prototype,"finished",null),(0,n._)([(0,o.MZ)()],g.prototype,"promise",void 0),(0,n._)([(0,o.MZ)()],g.prototype,"_result",void 0),g=(0,n._)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g)},51624:(e,t,r)=>{r.d(t,{A:()=>d});var n,i,a=r(44208),s=r(93687);(i=n||(n={}))[i.varint=0]="varint",i[i.fixed64=1]="fixed64",i[i.delimited=2]="delimited",i[i.fixed32=5]="fixed32",i[i.unknown=99]="unknown";const o=4294967296,l=new TextDecoder("utf-8"),c=(0,a.A)("safari")||(0,a.A)("ios")?6:(0,a.A)("ff")?12:32;class d{constructor(e,t,r=0,i=(e?e.byteLength:0)){this._tag=0,this._dataType=n.unknown,this._init(e,t,r,i)}_init(e,t,r,n){this._data=e,this._dataView=t,this._pos=r,this._end=n}asUnsafe(){return this}clone(){return new d(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),r}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,n){const i=this.getMessage(),a=e(i,t,r,n);return i.release(),a}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){const e=this._getLength(),t=d.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){d.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case n.varint:this._decodeVarint();break;case n.fixed64:this._skip(8);break;case n.delimited:this._skip(this._getLength());break;case n.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,r=0,n=0;if(this._end-t>=10)do{if(n=e[t++],r|=127&n,!(128&n))break;if(n=e[t++],r|=(127&n)<<7,!(128&n))break;if(n=e[t++],r|=(127&n)<<14,!(128&n))break;if(n=e[t++],r|=(127&n)<<21,!(128&n))break;if(n=e[t++],r+=268435456*(127&n),!(128&n))break;if(n=e[t++],r+=34359738368*(127&n),!(128&n))break;if(n=e[t++],r+=4398046511104*(127&n),!(128&n))break;if(n=e[t++],r+=562949953421312*(127&n),!(128&n))break;if(n=e[t++],r+=72057594037927940*(127&n),!(128&n))break;if(n=e[t++],r+=0x8000000000000000*(127&n),!(128&n))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;t!==this._end&&(n=e[t],128&n);)++t,r+=(127&n)*i,i*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=n*i}return this._pos=t,r}_decodeSVarint(){const e=this._data;let t,r=0,n=0;const i=1&e[this._pos];if(n=e[this._pos++],r|=127&n,!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<7,!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<14,!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<21,!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r+=268435456*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r+=34359738368*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r+=4398046511104*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(t=BigInt(r),n=e[this._pos++],t+=0x2000000000000n*BigInt(127&n),!(128&n))return Number(i?-(t+1n)/2n:t/2n);if(n=e[this._pos++],t+=0x100000000000000n*BigInt(127&n),!(128&n))return Number(i?-(t+1n)/2n:t/2n);if(n=e[this._pos++],t+=0x8000000000000000n*BigInt(127&n),!(128&n))return Number(i?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(this._dataType!==n.delimited)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>c){const n=e.subarray(t,r);return l.decode(n)}let n="",i="";for(let a=t;a<r;++a){const t=e[a];128&t?i+="%"+t.toString(16):(n+=decodeURIComponent(i)+String.fromCharCode(t),i="")}return i.length&&(n+=decodeURIComponent(i)),n}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}}d.pool=new s.A(d,void 0,(e=>{e._data=null,e._dataView=null}))},88930:(e,t,r)=>{r.d(t,{S1:()=>o,lL:()=>c,mi:()=>l,t:()=>d,vf:()=>s});var n=r(97770),i=r(56400),a=r(96285);const s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function o(e,t,r,s=i.qU){const o=new a.oh((0,n.wj)(s)),l=a.c9.fromJSDate(e,{zone:o}),c="decades"===r||"centuries"===r?"year":u(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),l.plus({[c]:t}).toJSDate()}function l(e,t,r="milliseconds"){const n=e.getTime(),i=d(t,r,"milliseconds");return new Date(n+i)}function c(e,t,r=i.qU){const s=new a.oh((0,n.wj)(r)),o=a.c9.fromJSDate(e,{zone:s});if("decades"===t||"centuries"===t){const e=o.startOf("year"),{year:r}=e,n=r-r%("decades"===t?10:100);return e.set({year:n}).toJSDate()}const l=u(t);return o.startOf(l).toJSDate()}function d(e,t,r){return 0===e?0:e*s[t]/s[r]}function u(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},59456:(e,t,r)=>{r.d(t,{yR:()=>d});var n=r(56507),i=r(5443),a=r(91075),s=r(48526),o=r(86738),l=r(39829),c=r(82799);r(16930),r(50498),r(65864);const d={base:a.A,key:"type",typeMap:{extent:i.A,multipoint:s.A,point:o.A,polyline:c.A,polygon:l.A}};(0,n.aq)(d)},65806:(e,t,r)=>{r.d(t,{g:()=>s});var n=r(51850),i=r(57251),a=r(9762);function s(e,t,r,n){if((0,i.canProjectWithoutEngine)(e.spatialReference,r)){o[0]=e.x,o[1]=e.y;const i=e.z;return o[2]=i??n??0,(0,a.projectBuffer)(o,e.spatialReference,0,t,r,0,1)}const s=(0,i.tryProjectWithZConversion)(e,r);return!!s&&(t[0]=s?.x,t[1]=s?.y,t[2]=s?.z??n??0,!0)}const o=(0,n.vt)()},27993:(e,t,r)=>{r.d(t,{F:()=>a}),r(57251);var n=r(16930),i=r(65806);function a(e,t,r,n,a){return!(null==t||null==n||e.length<2)&&(s.x=e[0],s.y=e[1],s.z=e[2],s.spatialReference=t,(0,i.g)(s,r,n,a))}const s=function(e,t,r,n){return{x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:n,type:"point"}}(0,0,0,n.A.WGS84)},65864:(e,t,r)=>{r.d(t,{$B:()=>f,Bi:()=>m,Rg:()=>h,U9:()=>d,ZC:()=>c,fT:()=>u,rS:()=>p,xD:()=>y});var n=r(5443),i=r(91075),a=r(48526),s=r(86738),o=r(39829),l=r(82799);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function d(e){return void 0!==e.points}function u(e){return void 0!==e.x&&void 0!==e.y}function h(e){return void 0!==e.paths}function m(e){return void 0!==e.rings}function p(e){return null==e?null:e instanceof i.A?e:u(e)?s.A.fromJSON(e):h(e)?l.A.fromJSON(e):m(e)?o.A.fromJSON(e):d(e)?a.A.fromJSON(e):c(e)?n.A.fromJSON(e):null}function f(e){return e?u(e)?"esriGeometryPoint":h(e)?"esriGeometryPolyline":m(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":d(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:s.A,esriGeometryPolyline:l.A,esriGeometryPolygon:o.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:a.A};function y(e){return e&&g[e]||null}},17136:(e,t,r)=>{r.d(t,{el:()=>b});var n=r(92602),i=r(49186),a=r(53966),s=r(39829),o=r(82799),l=r(80754),c=r(21325),d=r(28735),u=(r(59456),r(78888)),h=r(65864),m=r(2272),p=r(84952),f=r(92300);const g=()=>a.A.getLogger("esri.geometry.support.normalizeUtils");function y(e){return"polygon"===e[0].type}function T(e){return"polyline"===e[0].type}function S(e,t,r){if(t){const t=function(e,t){if(!(e instanceof o.A||e instanceof s.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw g().error(e),new i.A(e)}const r=(0,l.r8)(e),n=[];for(const e of r){const r=[];n.push(r),r.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const i=e[n][0],a=e[n][1],s=e[n+1][0],o=e[n+1][1],l=Math.sqrt((s-i)*(s-i)+(o-a)*(o-a)),c=(o-a)/l,d=(s-i)/l,u=l/t;if(u>1){for(let e=1;e<=u-1;e++){const n=e*t,s=d*n+i,o=c*n+a;r.push([s,o])}const e=(l+Math.floor(u-1)*t)/2,n=d*e+i,s=c*e+a;r.push([n,s])}r.push([s,o])}}return function(e){return"polygon"===e.type}(e)?new s.A({rings:n,spatialReference:e.spatialReference}):new o.A({paths:n,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.ci)(t,!0)}return r&&(e=(0,l.kS)(e,r)),e}function A(e,t,r){if(Array.isArray(e)){const n=e[0];if(n>t){const r=(0,l.kd)(n,t);e[0]=n+r*(-2*t)}else if(n<r){const t=(0,l.kd)(n,r);e[0]=n+t*(-2*r)}}else{const n=e.x;if(n>t){const r=(0,l.kd)(n,t);e=e.clone().offset(r*(-2*t),0)}else if(n<r){const t=(0,l.kd)(n,r);e=e.clone().offset(t*(-2*r),0)}}return e}function _(e,t){let r=-1;for(let n=0;n<t.cutIndexes.length;n++){const i=t.cutIndexes[n],a=t.geometries[n],s=(0,l.r8)(a);for(let e=0;e<s.length;e++){const t=s[e];t.some((r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const n=t[e][0];r=n>r?n:r}r=Number(r.toFixed(9));const n=-360*(0,l.kd)(r,180);for(let r=0;r<t.length;r++){const t=a.getPoint(e,r);a.setPoint(e,r,t.clone().offset(n,0))}return!0}}))}if(i===r){if(y(e))for(const t of(0,l.r8)(a))e[i]=e[i].addRing(t);else if(T(e))for(const t of(0,l.r8)(a))e[i]=e[i].addPath(t)}else r=i,e[i]=a}return e}async function b(e,t,r){if(!Array.isArray(e))return b([e],t);t&&"string"!=typeof t&&g().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i="string"==typeof t?t:t?.url??n.A.geometryServiceUrl;let a,y,T,w,E,k,I,M,x=0;const O=[],v=[];for(const t of e)if(null!=t)if(a||(a=t.spatialReference,y=(0,c.Vp)(a),T=a.isWebMercator,k=T?102100:4326,w=l.j7[k].maxX,E=l.j7[k].minX,I=l.j7[k].plus180Line,M=l.j7[k].minus180Line),y)if("mesh"===t.type)v.push(t);else if("point"===t.type)v.push(A(t.clone(),w,E));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>A(e,w,E))),v.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,y);v.push(e.rings?new s.A(e):e)}else if(t.extent){const e=t.extent,r=(0,l.kd)(e.xmin,E)*(2*w);let n=0===r?t.clone():(0,l.kS)(t.clone(),r);e.offset(r,0);let{xmin:i,xmax:a}=e;i=Number(i.toFixed(9)),a=Number(a.toFixed(9)),e.intersects(I)&&a!==w?(x=a>x?a:x,n=S(n,T),O.push(n),v.push("cut")):e.intersects(M)&&i!==E?(x=a*(2*w)>x?a*(2*w):x,n=S(n,T,360),O.push(n),v.push("cut")):v.push(n)}else v.push(t.clone());else v.push(t);else v.push(t);let C=(0,l.kd)(x,w),R=-90;const N=C,F=new o.A;for(;C>0;){const e=360*C-180;F.addPath([[e,R],[e,-1*R]]),R*=-1,C--}if(O.length>0&&N>0){const t=_(O,await async function(e,t,r,n){const i=(0,m.Dl)(e),a=t[0].spatialReference,s={...n,responseType:"json",query:{...i.query,f:"json",sr:(0,c.YX)(a),target:JSON.stringify({geometryType:(0,h.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},o=await(0,u.A)(i.path+"/cut",s),{cutIndexes:l,geometries:d=[]}=o.data;return{cutIndexes:l,geometries:d.map((e=>{const t=(0,h.rS)(e);return t.spatialReference=a,t}))}}(i,O,F,r)),n=[],a=[];for(let r=0;r<v.length;r++){const i=v[r];if("cut"!==i)a.push(i);else{const i=t.shift(),s=e[r];null!=s&&"polygon"===s.type&&s.rings&&s.rings.length>1&&i.rings.length>=s.rings.length?(n.push(i),a.push("simplify")):a.push(T?(0,d.Gh)(i):i)}}if(!n.length)return a;const s=await async function(e,t,r){const n="string"==typeof e?(0,p.An)(e):e,i=t[0].spatialReference,a=(0,h.$B)(t[0]),s={...r,query:{...n.query,f:"json",sr:(0,c.YX)(i),geometries:JSON.stringify((0,f.X)(t))}},{data:o}=await(0,u.A)(n.path+"/simplify",s);return(0,f.V)(o.geometries,a,i)}(i,n,r),o=[];for(let e=0;e<a.length;e++){const t=a[e];"simplify"!==t?o.push(t):o.push(T?(0,d.Gh)(s.shift()):s.shift())}return o}const L=[];for(let e=0;e<v.length;e++){const t=v[e];if("cut"!==t)L.push(t);else{const e=O.shift();L.push(!0===T?(0,d.Gh)(e):e)}}return L}},80754:(e,t,r)=>{r.d(t,{j7:()=>s,kS:()=>l,kd:()=>o,r8:()=>c});var n=r(82799),i=r(16930),a=r(65864);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const r=c(e);for(const e of r)for(const r of e)r[0]+=t;return e}function c(e){return(0,a.Bi)(e)?e.rings:e.paths}},62577:(e,t,r)=>{function n(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]:[0,0,0,0]}:null}function i(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;const{originPosition:t,scale:r,translate:n}=e,i=r[0]??1,a=r[1]??1;return{originPosition:"lowerLeft",scale:[i,"lowerLeft"===t?a:-a,r[2]??1,r[3]??1],translate:[n[0]??0,n[1]??0,n[2]??0,n[3]??0]}}function a({scale:e,translate:t},r){return r*e[0]+t[0]}function s({scale:e,translate:t},r){return r*e[1]+t[1]}function o({scale:e,translate:t},r){return(r??0)*e[2]+t[2]}function l({scale:e,translate:t},r){return r?r*e[3]+t[3]:0}function c(e,t){return e&&t?m:e&&!t?u:!e&&t?h:d}r.d(t,{$X:()=>T,Gy:()=>f,P5:()=>S,Q1:()=>i,SW:()=>g,Tr:()=>y,VV:()=>n}),r(65864);const d=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let i=a(e,n[0]),o=s(e,n[1]);r[0]=[i,o];const{scale:l,originPosition:c}=e,d=l[0],u="lowerLeft"===c?l[1]:-l[1];for(let e=1;e<t.length;e++){const[n,a]=t[e];i+=d*n,o+=u*a,r[e]=[i,o]}return r},u=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let i=a(e,n[0]),l=s(e,n[1]);r[0]=[i,l,o(e,n[2])];const{scale:c,originPosition:d}=e,u=c[0],h="lowerLeft"===d?c[1]:-c[1];for(let n=1;n<t.length;n++){const[a,s,c]=t[n];i+=u*a,l+=h*s,r[n]=[i,l,o(e,c)]}return r},h=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let i=a(e,n[0]),o=s(e,n[1]);r[0]=[i,o,l(e,n[2])];const{scale:c,originPosition:d}=e,u=c[0],h="lowerLeft"===d?c[1]:-c[1];for(let n=1;n<t.length;n++){const[a,s,c]=t[n];i+=u*a,o+=h*s,r[n]=[i,o,l(e,c)]}return r},m=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let i=a(e,n[0]),c=s(e,n[1]);r[0]=[i,c,o(e,n[2]),l(e,n[3])];const{scale:d,originPosition:u}=e,h=d[0],m="lowerLeft"===u?d[1]:-d[1];for(let n=1;n<t.length;n++){const[a,s,d,u]=t[n];i+=h*a,c+=m*s,r[n]=[i,c,o(e,d),l(e,u)]}return r};function p(e,t,r){const n=new Array(r.length);for(let i=0;i<r.length;i++)n[i]=t(e,r[i]);return n}function f(e,t,r){const n=i(e);return t.x=function({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}(n,r.x),t.y=function({scale:e,translate:t},r){return Math.round((r-t[1])/e[1])}(n,r.y),null!=r.z&&(t.z=function({scale:e,translate:t},r){return Math.round(((r??0)-t[2])/e[2])}(n,r.z)),null!=r.m&&(t.m=function({scale:e,translate:t},r){return r?Math.round((r-t[3])/e[3]):0}(n,r.m)),t}function g(e,t,r,n=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const s=i(e);t.points=c(n,a)(s,r.points),t.hasZ=n,t.hasM=a}return t}function y(e,t,r,n=null!=r?.z,c=null!=r?.m){if(null==r)return t;const d=i(e);return t.x=a(d,r.x),t.y=s(d,r.y),n&&(t.z=o(d,r.z)),c&&(t.m=l(d,r.m)),t}function T(e,t,r,n=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const s=i(e);t.rings=p(s,c(n,a),r.rings),t.hasZ=n,t.hasM=a}return t}function S(e,t,r,n=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const s=i(e);t.paths=p(s,c(n,a),r.paths),t.hasZ=n,t.hasM=a}return t}},50498:(e,t,r)=>{r.d(t,{Y:()=>a,g:()=>i});var n=r(66552);const i=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),a=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},97770:(e,t,r)=>{r.d(t,{J2:()=>A,Yq:()=>_,_v:()=>g,wj:()=>b});var n=r(66552),i=r(73444),a=r(56400);r(96285),a.n$;const s={year:"numeric",month:"numeric",day:"numeric"},o={year:"numeric",month:"long",day:"numeric"},l={year:"numeric",month:"short",day:"numeric"},c={year:"numeric",month:"long",weekday:"long",day:"numeric"},d={hour:"numeric",minute:"numeric"},u={...d,second:"numeric"},h={hourCycle:"h23"},m={...d,...h},p={...u,...h},f={"short-date":s,"short-date-short-time":{...s,...d},"short-date-short-time-24":{...s,...m},"short-date-long-time":{...s,...u},"short-date-long-time-24":{...s,...p},"short-date-le":s,"short-date-le-short-time":{...s,...d},"short-date-le-short-time-24":{...s,...m},"short-date-le-long-time":{...s,...u},"short-date-le-long-time-24":{...s,...p},"long-month-day-year":o,"long-month-day-year-short-time":{...o,...d},"long-month-day-year-short-time-24":{...o,...m},"long-month-day-year-long-time":{...o,...u},"long-month-day-year-long-time-24":{...o,...p},"day-short-month-year":l,"day-short-month-year-short-time":{...l,...d},"day-short-month-year-short-time-24":{...l,...m},"day-short-month-year-long-time":{...l,...u},"day-short-month-year-long-time-24":{...l,...p},"long-date":c,"long-date-short-time":{...c,...d},"long-date-short-time-24":{...c,...m},"long-date-long-time":{...c,...u},"long-date-long-time-24":{...c,...p},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":d,"long-time":u},g=(0,n.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),y={ar:"ar-u-nu-latn-ca-gregory"};let T=new WeakMap;const S=f["short-date-short-time"];function A(e){return f[e]}function _(e,t=S){return function(e){let t=T.get(e);if(!t){const r=(0,i.JK)(),n=y[r]||r,s=b(e.timeZone??a.qU),o={...e,timeZone:s};t=new Intl.DateTimeFormat(n,o),T.set(e,t)}return t}(t).format(e)}function b(e){switch(e){case a.qU:return a.N5;case a.L5:return a.n$;default:return e}}(0,i.Ml)((()=>{T=new WeakMap}))},73444:(e,t,r)=>{r.d(t,{JK:()=>o,Ml:()=>h,Z0:()=>l,oQ:()=>d});var n=r(36563);let i;const a=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;function s(){return a??globalThis.navigator?.language??"en"}function o(){return void 0===i&&(i=s()),i}function l(e=o()){const t=/^([a-zA-Z]{2,3})(?:[_-][a-zA-Z0-9]+)*$/.exec(e);return t?.[1].toLowerCase()}const c=[];function d(e){return c.push(e),(0,n.hA)((()=>c.splice(c.indexOf(e),1)))}const u=[];function h(e){return u.push(e),(0,n.hA)((()=>u.splice(u.indexOf(e),1)))}globalThis.addEventListener?.("languagechange",(function(){const e=s();i!==e&&([...u].forEach((t=>t(e))),i=e,[...c].forEach((t=>t(e))))}))},43334:(e,t,r)=>{r.d(t,{N3:()=>a,Om:()=>i});var n=r(92722);class i{constructor(e=null,t={},r,n){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=n,this.displayId=0,this.geohashX=0,this.geohashY=0}static fromJSON(e,t){const r=e.geometry?n.A.fromJSON(e.geometry):null,a=e.centroid?n.A.fromJSON(e.centroid):null,s=e.attributes[t];return new i(r,e.attributes,a,s)}weakClone(){const e=new i(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 i(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function a(e){return!!e.geometry?.coords?.length}},58512:(e,t,r)=>{r.d(t,{A:()=>n});class n{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 n;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,r)=>{r.d(t,{A:()=>n});class n{constructor(e=[],t=[],r=!1){this.lengths=e??[],this.coords=t??[],this.hasIndeterminateRingOrder=r}static fromJSON(e){return new n(e.lengths,e.coords,e.hasIndeterminateRingOrder)}static fromRect(e){const[t,r,i,a]=e,s=i-t,o=a-r;return new n([5],[t,r,s,0,0,o,-s,0,0,-o])}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 r=0;r<this.lengths.length;r++){const n=this.lengths[r];for(let r=0;r<n;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=n}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let n=0;for(const e of r){for(let r=1;r<e;r++)t[2*(n+r)]+=t[2*(n+r)-2],t[2*(n+r)+1]+=t[2*(n+r)-1];n+=e}return e}clone(e){if(0===this.lengths.length)return new n([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce(((e,t)=>e+t))),r=this.coords.slice(0,t);return e?(e.set(r),new n(this.lengths,e,this.hasIndeterminateRingOrder)):new n(Array.from(this.lengths),Array.from(r),this.hasIndeterminateRingOrder)}}},20437:(e,t,r)=>{r.d(t,{A:()=>g});var n,i=r(90237),a=r(66552),s=r(25482),o=r(10107),l=r(56507),c=(r(87811),r(44208),r(93223)),d=r(36005),u=r(40608),h=r(72088),m=r(98453);const p=new a.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let f=n=class extends s.oY{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?p.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i._)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,i._)([(0,o.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,i._)([(0,o.MZ)()],f.prototype,"description",void 0),(0,i._)([(0,d.w)("description")],f.prototype,"readDescription",null),(0,i._)([(0,o.MZ)({types:h.gK,json:{read:{reader:h.rS},write:!0}})],f.prototype,"domain",void 0),(0,i._)([(0,o.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,i._)([(0,o.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,i._)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,i._)([(0,o.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,i._)([(0,c.e)(m.m)],f.prototype,"type",void 0),(0,i._)([(0,o.MZ)()],f.prototype,"valueType",void 0),(0,i._)([(0,d.w)("valueType",["description"])],f.prototype,"readValueType",null),(0,i._)([(0,o.MZ)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=n=(0,i._)([(0,u.$)("esri.layers.support.Field")],f);const g=f},72088:(e,t,r)=>{r.d(t,{rS:()=>E,gK:()=>w}),r(44208);var n,i=r(90237),a=r(4718),s=r(10107),o=(r(53966),r(93223)),l=r(40608),c=r(25482);r(87811);let d=n=class extends c.oY{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,i._)([(0,s.MZ)({type:[String,Number],json:{write:!0}})],d.prototype,"code",void 0),d=n=(0,i._)([(0,l.$)("esri.layers.support.CodedValue")],d);const u=new(r(66552).J)({inherited:"inherited",codedValue:"coded-value",range:"range"});let h=class extends c.oY{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,i._)([(0,o.e)(u)],h.prototype,"type",void 0),h=(0,i._)([(0,l.$)("esri.layers.support.Domain")],h);const m=h;var p;let f=p=class extends m{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new p({codedValues:(0,a.o8)(this.codedValues),name:this.name})}};(0,i._)([(0,s.MZ)({type:[d],json:{write:!0}})],f.prototype,"codedValues",void 0),(0,i._)([(0,o.e)({codedValue:"coded-value"})],f.prototype,"type",void 0),f=p=(0,i._)([(0,l.$)("esri.layers.support.CodedValueDomain")],f);const g=f;var y;r(49186);let T=y=class extends m{constructor(e){super(e),this.type="inherited"}clone(){return new y}};(0,i._)([(0,o.e)({inherited:"inherited"})],T.prototype,"type",void 0),T=y=(0,i._)([(0,l.$)("esri.layers.support.InheritedDomain")],T);const S=T;var A;let _=A=class extends m{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new A({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i._)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],_.prototype,"maxValue",void 0),(0,i._)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],_.prototype,"minValue",void 0),(0,i._)([(0,o.e)({range:"range"})],_.prototype,"type",void 0),_=A=(0,i._)([(0,l.$)("esri.layers.support.RangeDomain")],_);const b=_,w={key:"type",base:m,typeMap:{range:_,"coded-value":g,inherited:S}};function E(e){if(!e?.type)return null;switch(e.type){case"range":return b.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return S.fromJSON(e)}return null}},98453:(e,t,r)=>{r.d(t,{m:()=>n});const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},92300:(e,t,r)=>{r.d(t,{V:()=>a,X:()=>i});var n=r(65864);function i(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function a(e,t,r){const i=(0,n.xD)(t);return e.map((e=>{const t=i.fromJSON(e);return t.spatialReference=r,t}))}},10536:(e,t,r)=>{function n(e){const t={};for(const r in e){if("declaredClass"===r)continue;const i=e[r];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){t[r]=[];for(let e=0;e<i.length;e++)t[r][e]=n(i[e])}else"object"==typeof i?i.toJSON&&(t[r]=JSON.stringify(i)):t[r]=i}return t}r.d(t,{z:()=>n})},53655:(e,t,r)=>{r.d(t,{SH:()=>x,ae:()=>w,cn:()=>T});var n=r(49186),i=r(51624),a=r(92722),s=r(69418);const o=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],l=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],c=["upperLeft","lowerLeft"];function d(e){return e>=o.length?null:o[e]}function u(e){return e>=l.length?null:l[e]}function h(e){return e>=c.length?null:c[e]}function m(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function p(e,t,r){const n=e.asUnsafe(),i=t.createPointGeometry(r);for(;n.next();)switch(n.tag()){case 3:{const e=n.getUInt32(),r=n.pos()+e;let a=0;for(;n.pos()<r;)t.addCoordinatePoint(i,n.getSInt64(),a++);break}default:n.skip()}return i}function f(e,t,r){const n=e.asUnsafe(),i=t.createGeometry(r),a=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;n.next();)switch(n.tag()){case 2:{const e=n.getUInt32(),r=n.pos()+e;let a=0;for(;n.pos()<r;)t.addLength(i,n.getUInt32(),a++);break}case 3:{const e=n.getUInt32(),r=n.pos()+e;let s=0;for(t.allocateCoordinates(i);n.pos()<r;)t.addCoordinate(i,n.getSInt64(),s),s++,s===a&&(s=0);break}default:n.skip()}return i}function g(e){const t=e.asUnsafe(),r=new a.A;let n="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.coords.push(t.getSInt64());break}case 1:n=s.z[t.getEnum()];break;default:t.skip()}return{queryGeometry:r,queryGeometryType:n}}function y(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function T(e){const t=e.asUnsafe(),r={type:d(0)};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=d(t.getEnum());break;case 3:r.alias=t.getString();break;case 4:r.sqlType=u(t.getEnum());break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function S(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}function A(e,t,r,n){const i=t.createFeature(r);let a=0;for(;e.next();)switch(e.tag()){case 1:{const t=n[a++].name;i.attributes[t]=e.processMessage(y);break}case 2:i.geometry=e.processMessageWithArgs(f,t,r);break;case 4:i.centroid=e.processMessageWithArgs(p,t,r);break;default:e.skip()}return i}function _(e){const t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function b(e){const t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function w(e){const t={originPosition:h(0)},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=h(r.getEnum());break;case 2:t.scale=r.processMessage(_);break;case 3:t.translate=r.processMessage(b);break;default:r.skip()}return t}function E(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function k(e,t){const r=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:r.wkid=e.getUInt32();break;case 5:r.wkt=e.getString();break;case 2:r.latestWkid=e.getUInt32();break;case 3:r.vcsWkid=e.getUInt32();break;case 4:r.latestVcsWkid=e.getUInt32();break;default:e.skip()}return r}function I(e,t){const r=t.createFeatureResult(),n=e.asUnsafe();r.geometryType=m(t,0);let i=!1;for(;n.next();)switch(n.tag()){case 1:r.objectIdFieldName=n.getString();break;case 3:r.globalIdFieldName=n.getString();break;case 4:r.geohashFieldName=n.getString();break;case 5:r.geometryProperties=n.processMessage(E);break;case 7:r.geometryType=m(t,n.getEnum());break;case 8:r.spatialReference=n.processMessageWithArgs(k,t);break;case 10:r.hasZ=n.getBool();break;case 11:r.hasM=n.getBool();break;case 12:r.transform=n.processMessage(w);break;case 9:r.exceededTransferLimit=n.getBool();break;case 13:t.addField(r,n.processMessage(T));break;case 15:i||(t.prepareFeatures(r),i=!0),t.addFeature(r,n.processMessageWithArgs(A,t,r,r.fields));break;case 2:r.uniqueIdField=n.processMessage(S);break;default:n.skip()}return t.finishFeatureResult(r),r}function M(e,t){const r={};let n=null;for(;e.next();)switch(e.tag()){case 4:n=e.processMessageWithArgs(g);break;case 1:r.featureResult=e.processMessageWithArgs(I,t);break;default:e.skip()}return null!=n&&r.featureResult&&t.addQueryGeometry(r,n),r}function x(e,t){try{const r=2,n=new i.A(new Uint8Array(e),new DataView(e)),a={};for(;n.next();)n.tag()===r?a.queryResult=n.processMessageWithArgs(M,t):n.skip();return a}catch(e){throw new n.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},69418:(e,t,r)=>{r.d(t,{S:()=>c,z:()=>l});var n=r(83047),i=r(21325),a=r(43334),s=r(58512),o=r(92722);const l=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class c{constructor(e){this._options=e,this.geometryTypes=l,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new s.A}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e?.features||!e.hasZ||!this._options.sourceSpatialReference||!e.spatialReference||(0,i.aI)(e.spatialReference,this._options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,n.G9)(this._options.sourceSpatialReference)/(0,n.G9)(e.spatialReference);if(1!==t)for(const r of e.features){if(!(0,a.N3)(r))continue;const e=r.geometry.coords;for(let r=2;r<e.length;r+=3)e[r]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new a.Om}createSpatialReference(){return{wkid:0}}createGeometry(){return new o.A}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce(((e,t)=>e+t),0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new o.A}}},66208:(e,t,r)=>{r.d(t,{m:()=>i});var n=r(53655);function i(e,t){const r=(0,n.SH)(e,t),i=r.queryResult.featureResult,a=r.queryResult.queryGeometry,s=r.queryResult.queryGeometryType;if(i&&i.features&&i.features.length&&i.objectIdFieldName){const e=i.objectIdFieldName;for(const t of i.features)t.attributes&&(t.objectId=t.attributes[e])}return i&&(i.queryGeometry=a,i.queryGeometryType=s),i}},80893:(e,t,r)=>{r.d(t,{IJ:()=>p,Jf:()=>T,Pk:()=>g,eW:()=>m,gW:()=>y,kS:()=>f});var n=r(78888),i=r(84952),a=r(65864),s=r(17136),o=r(21325),l=r(10536),c=r(66208),d=r(58501);const u="Layer does not support extent calculation.";function h(e,t){const r=e.geometry,n=e.toJSON();delete n.compactGeometryEnabled,delete n.defaultSpatialReferenceEnabled;const i=n;let s,l,c;if(null!=r&&(l=r.spatialReference,c=(0,o.YX)(l),i.geometryType=(0,a.$B)(r),i.geometry=function(e,t){if(t&&"extent"===e.type)return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&"point"===e.type)return`${e.x},${e.y}`;const r=e.toJSON();return delete r.spatialReference,JSON.stringify(r)}(r,e.compactGeometryEnabled),i.inSR=c),n.groupByFieldsForStatistics&&(i.groupByFieldsForStatistics=n.groupByFieldsForStatistics.join(",")),n.objectIds&&(i.objectIds=n.objectIds.join(",")),n.orderByFields&&(i.orderByFields=n.orderByFields.join(",")),!n.outFields||!n.returnDistinctValues&&(t?.returnCountOnly||t?.returnExtentOnly||t?.returnIdsOnly)?delete i.outFields:n.outFields.includes("*")?i.outFields="*":i.outFields=n.outFields.join(","),n.outSR?(i.outSR=(0,o.YX)(n.outSR),s=e.outSpatialReference):r&&(n.returnGeometry||n.returnCentroid)&&(i.outSR=i.inSR,s=l),n.returnGeometry&&delete n.returnGeometry,n.outStatistics&&(i.outStatistics=JSON.stringify(n.outStatistics)),n.fullText&&(i.fullText=JSON.stringify(n.fullText)),n.pixelSize&&(i.pixelSize=JSON.stringify(n.pixelSize)),n.quantizationParameters&&(e.defaultSpatialReferenceEnabled&&null!=l&&null!=e.quantizationParameters?.extent&&l.equals(e.quantizationParameters.extent.spatialReference)&&delete n.quantizationParameters.extent.spatialReference,i.quantizationParameters=JSON.stringify(n.quantizationParameters)),n.parameterValues&&(i.parameterValues=JSON.stringify(n.parameterValues)),n.rangeValues&&(i.rangeValues=JSON.stringify(n.rangeValues)),n.dynamicDataSource&&(i.layer=JSON.stringify({source:n.dynamicDataSource}),delete n.dynamicDataSource),n.timeExtent){const e=n.timeExtent,{start:t,end:r}=e;null==t&&null==r||(i.time=t===r?t:`${t??"null"},${r??"null"}`),delete n.timeExtent}return e.defaultSpatialReferenceEnabled&&null!=l&&null!=s&&l.equals(s)&&(i.defaultSR=i.inSR,delete i.inSR,delete i.outSR),i}async function m(e,t,r,n){const i=null!=t.timeExtent&&t.timeExtent.isEmpty?{data:{features:[]}}:await S(e,t,"json",n);return(0,d.q)(t,r,i.data),i}async function p(e,t,r,n){if(null!=t.timeExtent&&t.timeExtent.isEmpty)return{data:r.createFeatureResult()};const i=await f(e,t,n),a=i;return a.data=(0,c.m)(i.data,r),a}function f(e,t,r){return S(e,t,"pbf",r)}function g(e,t,r){return null!=t.timeExtent&&t.timeExtent.isEmpty?Promise.resolve({data:{objectIds:[]}}):S(e,t,"json",r,{returnIdsOnly:!0})}function y(e,t,r){return null!=t.timeExtent&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):S(e,t,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}async function T(e,t,r){if(null!=t.timeExtent&&t.timeExtent.isEmpty)return{data:{count:0,extent:null}};const n=await S(e,t,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}),i=n.data;if(i.hasOwnProperty("extent"))return n;if(i.features)throw new Error(u);if(i.hasOwnProperty("count"))throw new Error(u);return n}async function S(e,t,r,a={},o={}){const c="string"==typeof e?(0,i.An)(e):e,d=t.geometry?[t.geometry]:[],u=await(0,s.el)(d,null,{signal:a.signal}),m=u?.[0];null!=m&&((t=t.clone()).geometry=m);const p=(0,l.z)({...c.query,f:r,...o,...h(t,o)});return(0,n.A)((0,i.fj)(c.path,(f=o,null==t.formatOf3DObjects||f.returnCountOnly||f.returnExtentOnly||f.returnIdsOnly?"query":"query3d")),{...a,responseType:"pbf"===r?"array-buffer":"json",query:{...p,...a.query}});var f}},58501:(e,t,r)=>{r.d(t,{q:()=>i});var n=r(62815);function i(e,t,r){if(!r?.features||!r.hasZ)return;const i=(0,n.N)(r.geometryType,t,e.outSpatialReference);if(null!=i)for(const e of r.features)i(e.geometry)}},2272:(e,t,r)=>{r.d(t,{Dl:()=>s,jV:()=>a,lF:()=>o}),r(92602),r(70333);var n=r(4718),i=r(84952);function a(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function s(e){return"string"==typeof e?(0,i.An)(e):(0,n.o8)(e)}function o(e,t,r){const n={};for(const i in e){if("declaredClass"===i)continue;const a=e[i];if(null!=a&&"function"!=typeof a)if(Array.isArray(a))n[i]=a.map((e=>o(e)));else if("object"==typeof a)if(a.toJSON){const e=a.toJSON(r?.[i]);n[i]=t?e:JSON.stringify(e)}else n[i]=t?a:JSON.stringify(a);else n[i]=a}return n}r(926)},79677:(e,t,r)=>{r.d(t,{A:()=>m});var n,i=r(90237),a=r(25482),s=r(88930),o=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),c=r(40608),d=r(43937),u=r(56400);let h=n=class extends a.oY{static get allTime(){return p}static get empty(){return f}static fromArray(e){return new n({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===n&&r===i}expandTo(e,t=u.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,s.lL)(r,e,t));let i=this.end;if(i){const r=(0,s.lL)(i,e,t);i=i.getTime()===r.getTime()?r:(0,s.S1)(r,1,e,t)}return new n({start:r,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,a=e.end?.getTime()??1/0;let s,o;return i>=t&&i<=r?s=i:t>=i&&t<=a&&(s=t),r>=i&&r<=a?o=r:a>=t&&a<=r&&(o=a),null==s||null==o||isNaN(s)||isNaN(o)?n.empty:new n({start:s===-1/0?null:new Date(s),end:o===1/0?null:new Date(o)})}offset(e,t,r=u.qU){if(this.isEmpty||this.isAllTime)return this.clone();const i=new n,{start:a,end:o}=this;return null!=a&&(i.start=(0,s.S1)(a,e,t,r)),null!=o&&(i.end=(0,s.S1)(o,e,t,r)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return p.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,i._)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,i._)([(0,l.w)("end")],h.prototype,"readEnd",null),(0,i._)([(0,d.K)("end")],h.prototype,"writeEnd",null),(0,i._)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,i._)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,i._)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,i._)([(0,l.w)("start")],h.prototype,"readStart",null),(0,i._)([(0,d.K)("start")],h.prototype,"writeStart",null),h=n=(0,i._)([(0,c.$)("esri.time.TimeExtent")],h);const m=h,p=new h,f=new h({start:void 0,end:void 0})},56400:(e,t,r)=>{r.d(t,{ZS:()=>d,wr:()=>u,qU:()=>a,N5:()=>l,P6:()=>c,L5:()=>s,n$:()=>o});const n=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var i=r(96285);const a="system",s="unknown",o="UTC",l=Intl.DateTimeFormat().resolvedOptions().timeZone;function c(e,t=!1){return{json:{read:{source:e,reader:(t,r)=>r[e]?d(r[e]):null},write:!!t&&{allowNull:!0,writer(t,r){r[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function d(e,t=a){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,t=a){if(!e||!n.has(e.timeZone))return t;const r=n.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?r:function(e){const t=i.c9.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===r?"Etc/UTC":`Etc/GMT${i.mQ.instance(-r).formatOffset(0,"narrow")}`}(r)}(e,t):t}function u(e){const t=new Set(["etc/utc","etc/gmt","gmt"]),r=new Set(Intl.supportedValuesOf("timeZone").map((e=>e.toLowerCase())));return e===a||e===s||t.has(e.toLowerCase())||r.has(e.toLowerCase())}},44363:(e,t,r)=>{r.r(t),r.d(t,{default:()=>N});var n=r(90237),i=(r(59456),r(69622)),a=r(60999),s=r(74887),o=(r(53966),r(44208),r(87811),r(49186)),l=r(40608),c=r(61956),d=r(19419),u=r(80893);class h{constructor(e,t){this.descriptor=e,this.pages=t}}var m=r(51624),p=r(62577),f=r(53655);class g{constructor(e){const t=new m.A(new Uint8Array(e),new DataView(e));this._index=function(e){for(;e.next();){if(2===e.tag())return y(e.getMessage());e.skip()}S()}(t),this._reader=t}get featureCount(){return this._index.featureIndices.length}get exceededTransferLimit(){return this._index.exceededTransferLimit}fieldIndex(e){return this._index.fields.find((t=>t.name===e))?.index??-1}readAttribute(e,t){const{featureCount:r,_index:n}=this;if(e<0||e>=r)return;const i=n.fields.length;if(e<0||t>=i)return;const a=n.attributeIndices[e*i+t],s=this._reader;return s.move(a),function(e){const t=e.getLength(),r=e.pos()+t;for(;e.pos()<r&&e.next();)switch(e.tag()){case 1:return e.getString();case 2:return e.getFloat();case 3:return e.getDouble();case 4:return e.getSInt32();case 5:return e.getUInt32();case 6:return e.getInt64();case 7:return e.getUInt64();case 8:return e.getSInt64();case 9:return e.getBool();default:return e.skip(),null}return null}(s)}readAllCoordinates(e,t=0){const r=this._reader,{transform:n}=this._index,{scale:i,translate:a}=n,[s,o,l]=i,[c,d,u]=a;for(const n of this._index.featureIndices){r.move(n);const i=r.getLength(),a=r.pos()+i;for(;r.pos()<a&&r.next();)switch(r.tag()){case 2:{const n=r.getLength(),i=r.pos()+n;for(;r.pos()<i&&r.next();)3===r.tag()?(r.getUInt32(),e[t++]=c+s*r.getSInt64(),e[t++]=d+o*r.getSInt64(),e[t++]=u+l*r.getSInt64()):r.skip();break}default:r.skip()}}return t}}function y(e){for(;e.next();){if(1===e.tag())return T(e.getMessage());e.skip()}S()}function T(e){let t,r=!1,n=!1,i=0;const a=new Array,s=new Array,o=new Array;for(;e.next();)switch(e.tag()){case 7:0!==e.getEnum()&&S();break;case 9:r=e.getBool()??!1;break;case 12:t=(0,p.Q1)(e.processMessage(f.ae));break;case 13:{const t=e.processMessage(f.cn);t.index=i++,a.push(t);break}case 15:{s.push(e.pos());const t=e.getUInt32(),r=e.pos()+t;for(;e.pos()<r&&e.next();)1===e.tag()?(o.push(e.pos()),e.skip()):e.skip();break}case 10:n=e.getBool()??!1;break;default:e.skip()}return null!=t&&n||S(),{transform:t,exceededTransferLimit:r,fields:a,featureIndices:s,attributeIndices:o}}function S(){const e=new o.A("pbf-parsing-failed","Error while parsing PBF",new Error);throw console.error(e),e}class A{constructor(e,t,r,n,i){this.spatialReference=e,this.url=r,this.objectIdField=n,this.capabilities=i;const{supportsMaxRecordCountFactor:a,maxRecordCount:s}=this.capabilities.query,o=s??8e3,l=(a?4:null)??1,c=o*l;this._pageSize=Math.min(8e3,c);const d=t.clone();d.cacheHint=!0,d.resultType="tile",d.outSpatialReference=e,d.returnGeometry=!0,d.returnZ=!0,d.maxRecordCountFactor=l,d.num=o,d.outFields=[n],this._baseQuery=d}async fetch(e,t){const{spatialReference:r}=this,n=(0,d.w1)(e.extent,r),i=this._baseQuery.clone();i.geometry=n;const a=new Array;let o=0,l=!1,c=1;for(;!l;){const e=[];for(let r=0;r<c;++r)e.push(this._fetchPage(i,o++,t));const r=await Promise.all(e);(0,s.Te)(t);for(const e of r){const t=0!==e.featureCount;l||=!e.exceededTransferLimit||!t,t&&a.push(e)}c=Math.min(c+1,4)}return new h(e,a)}async _fetchPage(e,t,r){const n=e.clone();n.start=t*this._pageSize;const i=(await(0,u.kS)(this.url,n,{signal:r})).data;return(0,s.Te)(r),new g(i)}}var _=r(51850),b=r(9762),w=r(27993);class E{constructor(e,t,r){this.objectIdField=e,this.spatialReference=t,this.renderSpatialReference=r}process(e){const{pages:t}=e;if(0===t.length)return null;const r=t.reduce(((e,{featureCount:t})=>e+t),0);if(0===r)return null;const n=this.objectIdField,i=this.spatialReference,a=this.renderSpatialReference,s=new Float64Array(3*r),o=new Uint32Array(r);let l=0;for(const e of t){l=e.readAllCoordinates(s,l);const t=e.fieldIndex(n);if(t<0)throw new Error("Failed to find object id field");for(let n=0;n<r;++n)o[n]=e.readAttribute(n,t)}const c=new Float64Array(s.length);if(!(0,b.projectBuffer)(s,i,0,c,a,0,r))throw new Error("Failed to project coordinates");const u=e.descriptor.extent,h=(0,d.gX)(u),m=(0,_.vt)();return(0,w.F)([h[0],h[1],0],i,m,a),{numFeatures:r,coordinates:c,objectIds:o,tileId:e.descriptor.id,localOrigin:m}}}var k=r(46540);class I{constructor(e){this._idGenerator=e,this._commands=[],this._transferables=new Set}createMaterial(){const e=this._idGenerator.generate("material");return this._commands.push({id:"create-material",materialId:e}),e}createRenderGeometry(e,t,r,n){this._commands.push({id:"create-rendergeometry",contentId:e,attributes:t,localOrigin:r,materialId:n});for(const[e,r]of t)this._transferables.add(r.data.buffer),this._transferables.add(r.indices.buffer)}destroyRenderGeometry(e){this._commands.push({id:"destroy-rendergeometry",contentId:e})}dispatch(){const e={commands:this._commands,transferList:Array.from(this._transferables)};return this._clearCommandBuffer(),e}_clearCommandBuffer(){this._commands=[],this._transferables.clear()}}class M{constructor(){this.counter=0}generate(e=""){return`${e}${this.counter++}`}}function x(e,t,r,n){return{data:e,indices:t,size:r,exclusive:n}}let O=class extends i.A{constructor(){super(),this.materialId=null}async remove(e,t){t.destroyRenderGeometry(e)}async render(e,t){null==this.materialId&&(this.materialId=t.createMaterial());const r=e.numFeatures,n=new Float64Array([0,0,1]),i=new Float64Array([255,255,255,255]),a=new Float64Array([24,24]),s=new Float64Array([0,0,0,1]),o=new Float64Array([0,0]),l=new Float64Array([0]),c=new Uint32Array(r);for(let e=0;e<r;++e)c[e]=e;const d=new Uint32Array(r);for(let e=0;e<r;++e)d[e]=0;const u=[[k.r.POSITION,x(e.coordinates,c,3,!0)],[k.r.NORMAL,x(n,d,3,!0)],[k.r.UV0,x(o,d,2,!0)],[k.r.COLOR,x(i,d,4,!0)],[k.r.ROTATION,x(l,d,1,!0)],[k.r.SIZE,x(a,d,2,!0)],[k.r.CENTEROFFSETANDDISTANCE,x(s,d,4,!0)]];t.createRenderGeometry(e.tileId,u,e.localOrigin,this.materialId)}};O=(0,n._)([(0,l.$)("esri.views.3d.layers.graphics.pipeline.symbolization.TestSymbol")],O);class v{constructor(){this._testSymbol=new O}async remove(e,t){this._testSymbol.remove(e,t)}async symbolize(e,t){this._testSymbol.render(e,t)}}var C=r(16930);let R=class extends i.A{constructor(){super(...arguments),this.remoteClient=null,this._pendingTiles=new Map,this._loadedTiles=new Map,this._idGenerator=new M,this._fetcher=null,this._processor=null,this._symbolizer=null}destroy(){for(const e of this._pendingTiles.values())e.abort();this._pendingTiles.clear(),this._loadedTiles.clear()}setup({spatialReference:e,renderSpatialReference:t,baseQuery:r,url:n,objectIdField:i,capabilities:a}){const s=C.A.fromJSON(e);this._fetcher=new A(s,c.A.fromJSON(r),n,i,a),this._processor=new E(i,s,C.A.fromJSON(t)),this._symbolizer=new v}async onTileTreeChange(e){const{added:t,removed:r}=e;for(const e of r){this._loadedTiles.delete(e);const t=this._pendingTiles.get(e);t?.abort(),this._pendingTiles.delete(e)}for(const e of t){const t=this._pendingTiles.get(e.id);t?.abort(),this._pendingTiles.set(e.id,(0,a.UT)((t=>this._addTile(e,t))))}await this._removeTiles(r)}async _addTile(e,t){const r=await this._fetcher.fetch(e,t);(0,s.Te)(t);const n=this._processor.process(r);if(null==n)return void this._pendingTiles.delete(e.id);const i=new I(this._idGenerator);await this._symbolizer.symbolize(n,i);const{commands:a,transferList:o}=i.dispatch();await this.remoteClient.invoke("dispatchRenderCommands",a,{signal:t,transferList:o}),this._pendingTiles.delete(e.id),this._loadedTiles.set(e.id,r)}async _removeTiles(e){const t=new I(this._idGenerator);for(const r of e)await this._symbolizer.remove(r,t);const{commands:r,transferList:n}=t.dispatch();await this.remoteClient.invoke("dispatchRenderCommands",r,{transferList:n})}};R=(0,n._)([(0,l.$)("esri.views.3d.layers.graphics.pipeline.Feature3DPipelineWorker")],R);const N=R},46540:(e,t,r)=>{var n;r.d(t,{r:()=>n}),function(e){e.POSITION="position",e.NORMAL="normal",e.NORMALCOMPRESSED="normalCompressed",e.UV0="uv0",e.COLOR="color",e.SYMBOLCOLOR="symbolColor",e.SIZE="size",e.ROTATION="rotation",e.TANGENT="tangent",e.OFFSET="offset",e.PERSPECTIVEDIVIDE="perspectiveDivide",e.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",e.LENGTH="length",e.PREVPOSITION="prevPosition",e.NEXTPOSITION="nextPosition",e.SUBDIVISIONFACTOR="subdivisionFactor",e.COLORFEATUREATTRIBUTE="colorFeatureAttribute",e.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",e.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",e.DISTANCETOSTART="distanceToStart",e.UVMAPSPACE="uvMapSpace",e.BOUNDINGRECT="boundingRect",e.UVREGION="uvRegion",e.PROFILERIGHT="profileRight",e.PROFILEUP="profileUp",e.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",e.FEATUREVALUE="featureValue",e.INSTANCEMODELORIGINHI="instanceModelOriginHi",e.INSTANCEMODELORIGINLO="instanceModelOriginLo",e.INSTANCEMODEL="instanceModel",e.INSTANCEMODELNORMAL="instanceModelNormal",e.INSTANCECOLOR="instanceColor",e.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",e.LOCALTRANSFORM="localTransform",e.GLOBALTRANSFORM="globalTransform",e.BOUNDINGSPHERE="boundingSphere",e.MODELORIGIN="modelOrigin",e.MODELSCALEFACTORS="modelScaleFactors",e.FEATUREATTRIBUTE="featureAttribute",e.STATE="state",e.LODLEVEL="lodLevel",e.POSITION0="position0",e.POSITION1="position1",e.NORMAL2COMPRESSED="normal2Compressed",e.COMPONENTINDEX="componentIndex",e.VARIANTOFFSET="variantOffset",e.VARIANTSTROKE="variantStroke",e.VARIANTEXTENSION="variantExtension",e.SIDENESS="sideness",e.START="start",e.END="end",e.UP="up",e.EXTRUDE="extrude",e.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",e.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(n||(n={}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1132],{52106:(e,t,i)=>{i.d(t,{A:()=>g});var s,r=i(90237),l=i(59456),n=i(13874),o=i(61147),a=i(69540),u=i(51447),p=i(25482),c=i(53966),h=i(36708),d=i(24326),y=i(10107),m=(i(44208),i(87811),i(40608)),f=i(65864);function b(e){if(null==e)return null;const t={};for(const i in e){const s=e[i];s&&(t[i]=s.toJSON())}return 0!==Object.keys(t).length?t:null}let v=s=class extends((0,a.O)(p.oY)){constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.popupTemplate=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,u.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const i of[t,this.sourceLayer,this.layer])if(i){if("popupTemplate"in i&&i.popupTemplate)return i.popupTemplate;if(e&&"defaultPopupTemplate"in i&&null!=i.defaultPopupTemplate)return i.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:b(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,p.Wj)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,s){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(r.action=s),"attributes"===e&&(r.attributeName=s),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,h.z7)((()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0),(({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())})),(0,h.z7)((()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0),(()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)}),{equals:(e,t)=>e===t,sync:!0})])}};(0,r._)([(0,y.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const s=(0,f.rS)(e[i]);s&&(t[i]=s)}return 0!==Object.keys(t).length?t:null}}})],v.prototype,"aggregateGeometries",null),(0,r._)([(0,y.MZ)({value:null})],v.prototype,"attributes",null),(0,r._)([(0,y.MZ)({value:null,types:l.yR,json:{read:f.rS}})],v.prototype,"geometry",null),(0,r._)([(0,y.MZ)({type:Boolean})],v.prototype,"isAggregate",void 0),(0,r._)([(0,y.MZ)({clonable:"reference"})],v.prototype,"layer",void 0),(0,r._)([(0,y.MZ)({clonable:"reference"})],v.prototype,"origin",void 0),(0,r._)([(0,y.MZ)({type:n.A})],v.prototype,"popupTemplate",void 0),(0,r._)([(0,y.MZ)({clonable:"reference"})],v.prototype,"sourceLayer",void 0),(0,r._)([(0,y.MZ)({value:null,types:o.Es})],v.prototype,"symbol",null),(0,r._)([(0,y.MZ)({clonable:!1,json:{read:!1,write:!1}})],v.prototype,"_version",void 0),(0,r._)([(0,y.MZ)({type:Boolean,value:!0})],v.prototype,"visible",null),v=s=(0,r._)([(0,m.$)("esri.Graphic")],v);const g=v},85334:(e,t,i)=>{function s(e){return"r"in e&&"g"in e&&"b"in e}function r(e){return"h"in e&&"s"in e&&"v"in e}function l(e){return"l"in e&&"a"in e&&"b"in e}function n(e){return"l"in e&&"c"in e&&"h"in e}i.d(t,{$:()=>y,IB:()=>s,N2:()=>m,RH:()=>b,ZD:()=>f}),i(68197),i(87317),i(91829);const o=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],a=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function u(e,t){const i=[];let s,r;if(e[0].length!==t.length)throw new Error("dimensions do not match");const l=e.length,n=e[0].length;let o=0;for(s=0;s<l;s++){for(o=0,r=0;r<n;r++)o+=e[s][r]*t[r];i.push(o)}return i}function p(e){const t=[e.r/255,e.g/255,e.b/255].map((e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4)),i=u(o,t);return{x:100*i[0],y:100*i[1],z:100*i[2]}}function c(e){const t=u(a,[e.x/100,e.y/100,e.z/100]).map((e=>{const t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))}));return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function h(e){const t=[e.x/95.047,e.y/100,e.z/108.883].map((e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29));return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function d(e){const t=e.l,i=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map((e=>e>6/29?e**3:3*(6/29)**2*(e-4/29)));return{x:95.047*i[0],y:100*i[1],z:108.883*i[2]}}function y(e){return s(e)?e:n(e)?function(e){return c(d(function(e){const t=e.l,i=e.c,s=e.h;return{l:t,a:i*Math.cos(s),b:i*Math.sin(s)}}(e)))}(e):l(e)?function(e){return c(d(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?c(e):r(e)?function(e){const t=(e.h+360)%360/60,i=e.s/100,s=e.v/100*255,r=s*i,l=r*(1-Math.abs(t%2-1));let n;switch(Math.floor(t)){case 0:n={r,g:l,b:0};break;case 1:n={r:l,g:r,b:0};break;case 2:n={r:0,g:r,b:l};break;case 3:n={r:0,g:l,b:r};break;case 4:n={r:l,g:0,b:r};break;case 5:case 6:n={r,g:0,b:l};break;default:n={r:0,g:0,b:0}}return n.r=Math.round(n.r+s-r),n.g=Math.round(n.g+s-r),n.b=Math.round(n.b+s-r),n}(e):e}function m(e){return r(e)?e:function(e){const t=e.r,i=e.g,s=e.b,r=Math.max(t,i,s),l=r-Math.min(t,i,s);let n=r,o=0===l?0:r===t?(i-s)/l%6:r===i?(s-t)/l+2:(t-i)/l+4,a=0===l?0:l/n;return o<0&&(o+=6),o*=60,a*=100,n*=100/255,{h:o,s:a,v:n}}(y(e))}function f(e){return l(e)?e:function(e){return h(p(e))}(y(e))}function b(e){return n(e)?e:function(e){return function(e){const t=e.l,i=e.a,s=e.b,r=Math.sqrt(i*i+s*s);let l=Math.atan2(s,i);return l=l>0?l:l+2*Math.PI,{l:t,c:r,h:l}}(h(p(e)))}(y(e))}var v,g;(g=v||(v={}))[g.Low=160]="Low",g[g.High=225]="High"},21818:(e,t,i)=>{function s(e){}i.d(t,{Xb:()=>s}),i(44208)},86162:(e,t,i)=>{i.d(t,{A:()=>A});var s,r=i(90237),l=i(61147),n=i(66552),o=i(4718),a=i(53966),u=i(10107),p=i(79901),c=i(93223),h=i(36005),d=i(40608),y=i(43937),m=i(56507),f=i(30524),b=i(92438),v=i(39886),g=i(88542),w=i(49849),_=i(86768),V=i(71386);const S="percent-of-total",x="field",M=new n.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:S,esriNormalizeByField:x}),z=(0,m.dp)(g.A);let I=s=class extends((0,v.h)(b.A)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,i){if(!Array.isArray(e))return;let s=t.minValue;return e.map((e=>{const t=new g.A;return t.read(e,i),null==t.minValue&&(t.minValue=s),null==t.maxValue&&(t.maxValue=t.minValue),s=t.maxValue,t}))}writeClassBreakInfos(e,t,i,s){const r=e.map((e=>e.write({},s)));this._areClassBreaksConsecutive()&&r.forEach((e=>delete e.classMinValue)),t[i]=r}castField(e){return null==e?e:"function"==typeof e?(a.A.getLogger(this).error(".field: field must be a string value"),null):(0,m.GX)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&x||i&&S||null,t&&i&&a.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==x&&e!==S||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new g.A({minValue:e,maxValue:t,symbol:(0,l.dp)(i)}):z((0,o.o8)(e)),this.classBreakInfos.push(s),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const i=this.classBreakInfos.length;for(let s=0;s<i;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]===e&&i[1]===t){this.classBreakInfos.splice(s,1);break}}}getBreakIndex(e,t){return this.valueExpression&&null==t?.arcade&&a.A.getLogger(this).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,V.lw)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void a.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this.getBreakIndex(e,t);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==t?.arcade){const e=await(0,V.lw)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this.getBreakIndex(e,i);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}getSymbols(){const e=[];return this.classBreakInfos.forEach((t=>{t.symbol&&e.push(t.symbol)})),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables?.reduce(((e,t)=>e+t.getAttributeHash()),"")??""}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${i}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new s({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol?.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol?.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,o.o8)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,o.o8)(this.visualVariables),legendOptions:(0,o.o8)(this.legendOptions),authoringInfo:(0,o.o8)(this.authoringInfo)})}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,f.Dx)(e,t,this.valueExpression)];(0,f.rq)(e,t,this.field),(0,f.rq)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l,timeZone:n}=t??{},{valueExpression:o}=this;let a=this._compiledValueExpression.valueExpression===o?this._compiledValueExpression.compiledFunction:null;const u=l.arcadeUtils;if(!a){const e=u.createSyntaxTree(o);a=u.createFunction(e),this._compiledValueExpression.compiledFunction=a}this._compiledValueExpression.valueExpression=o;const p=u.executeFunction(a,u.createExecContext(e,u.getViewInfo({viewingMode:i,scale:s,spatialReference:r}),n));return this._getBreakIndexfromInfos(p)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let r=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?i[this.normalizationField]:void 0);if("log"===s)r=Math.log(r)*Math.LOG10E;else if(s!==S||null==e||isNaN(e)){if(s===x&&!isNaN(t)){if(isNaN(r)||isNaN(t))return-1;r/=t}}else r=r/e*100}return this._getBreakIndexfromInfos(r)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let i=0;i<this.classBreakInfos.length;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]<=e&&(t?e<=s[1]:e<s[1]))return i}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let i=1;i<t;i++)if(e[i-1].maxValue!==e[i].minValue)return!1;return!0}};(0,r._)([(0,u.MZ)(w.As)],I.prototype,"backgroundFillSymbol",void 0),(0,r._)([(0,u.MZ)({type:[g.A]})],I.prototype,"classBreakInfos",void 0),(0,r._)([(0,h.w)("classBreakInfos")],I.prototype,"readClassBreakInfos",null),(0,r._)([(0,y.K)("classBreakInfos")],I.prototype,"writeClassBreakInfos",null),(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"defaultLabel",void 0),(0,r._)([(0,u.MZ)(w.z4)],I.prototype,"defaultSymbol",void 0),(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"field",void 0),(0,r._)([(0,p.w)("field")],I.prototype,"castField",null),(0,r._)([(0,u.MZ)({type:Boolean})],I.prototype,"isMaxInclusive",void 0),(0,r._)([(0,u.MZ)({type:_.q,json:{write:!0}})],I.prototype,"legendOptions",void 0),(0,r._)([(0,u.MZ)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],I.prototype,"minValue",null),(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"normalizationField",void 0),(0,r._)([(0,u.MZ)({type:Number,cast:e=>(0,m.GB)(e),json:{write:!0}})],I.prototype,"normalizationTotal",void 0),(0,r._)([(0,u.MZ)({type:M.apiValues,value:null,json:{type:M.jsonValues,read:M.read,write:M.write}})],I.prototype,"normalizationType",null),(0,r._)([(0,c.e)({classBreaks:"class-breaks"})],I.prototype,"type",void 0),(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"valueExpression",void 0),(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"valueExpressionTitle",void 0),I=s=(0,r._)([(0,d.$)("esri.renderers.ClassBreaksRenderer")],I);const A=I},92438:(e,t,i)=>{i.d(t,{A:()=>c});var s=i(90237),r=i(66552),l=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(30943);const u=new r.J({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let p=class extends l.oY{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,s._)([(0,n.MZ)({type:a.A,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,s._)([(0,n.MZ)({type:u.apiValues,readOnly:!0,json:{type:u.jsonValues,read:!1,write:{writer:u.write,ignoreOrigin:!0}}})],p.prototype,"type",void 0),p=(0,s._)([(0,o.$)("esri.renderers.Renderer")],p);const c=p},93618:(e,t,i)=>{i.d(t,{A:()=>G});var s=i(90237),r=i(61147),l=i(49186),n=i(4718),o=i(53966),a=i(93637),u=i(36708),p=i(10107),c=i(79901),h=i(93223),d=i(36005),y=i(40608),m=i(43937),f=i(6797),b=i(56507),v=i(30524),g=i(20655),w=i(92438),_=i(39886),V=i(49849),S=i(86768),x=i(69540),M=i(25482);i(44208),i(87811);let z=class extends((0,x.O)(M.oY)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,s._)([(0,p.MZ)(V.Ug)],z.prototype,"value",void 0),(0,s._)([(0,p.MZ)(V.Ug)],z.prototype,"value2",void 0),(0,s._)([(0,p.MZ)(V.Ug)],z.prototype,"value3",void 0),z=(0,s._)([(0,y.$)("esri.renderers.support.UniqueValue")],z);const I=z;var A=i(4576);let j=class extends((0,x.O)(M.oY)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.values=null}castValues(e){if(null==e)return null;const t=typeof(e=Array.isArray(e)?e:[e])[0];return"string"===t||"number"===t?e.map((e=>new I({value:e}))):"object"===t?e[0]instanceof I?e:e.map((e=>new I(e))):null}};(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],j.prototype,"description",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],j.prototype,"label",void 0),(0,s._)([(0,p.MZ)(V.z4)],j.prototype,"symbol",void 0),(0,s._)([(0,p.MZ)({type:[I],json:{type:[[String]],read:{reader:e=>e?e.map((e=>new I({value:e[0],value2:e[1],value3:e[2]}))):null},write:{writer:(e,t)=>{const i=[];for(const t of e){const e=[t.value,t.value2,t.value3].filter(A.Ru).map((e=>e.toString()));i.push(e)}t.values=i}}}})],j.prototype,"values",void 0),(0,s._)([(0,c.w)("values")],j.prototype,"castValues",null),j=(0,s._)([(0,y.$)("esri.renderers.support.UniqueValueClass")],j);const Z=j;let F=class extends((0,x.O)(M.oY)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],F.prototype,"heading",void 0),(0,s._)([(0,p.MZ)({type:[Z],json:{write:!0}})],F.prototype,"classes",void 0),F=(0,s._)([(0,y.$)("esri.renderers.support.UniqueValueGroup")],F);const q=F;var E,k=i(94833),T=i(71386),O=i(97159),U=i(94141),C=i(37757);const D="esri.renderers.UniqueValueRenderer",N=()=>o.A.getLogger(D),$="uvInfos-watcher",R="uvGroups-watcher",B=(0,b.dp)(k.A);let L=E=class extends((0,_.h)(w.A)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.orderByClassesEnabled=!1,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let r=0;r<t.length;r++){const l=e.find((e=>e.value===t[r].value));l?(0,f.Ui)(l,t[r])?(s.changed.push({type:"complete",oldValue:l,newValue:t[r]}),i=!0):s.unchanged.push({oldValue:l,newValue:t[r]}):(s.added.push(t[r]),i=!0)}for(let r=0;r<e.length;r++)t.find((t=>t.value===e[r].value))||(s.removed.push(e[r]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return null==e||"function"==typeof e?e:(0,b.GX)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s?.messages?s.messages.push(new l.A("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):N().error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,i){return i.portal||g.A.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,O.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,O.t)(e.styleUrl,s))}set uniqueValueGroups(e){this.styleOrigin?N().error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?N().error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void N().error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?B(e):new k.A({value:e,symbol:(0,r.dp)(t)}),this.uniqueValueInfos?.push(i),this._valueInfoMap[i.value]=i,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void N().error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");const t=this.uniqueValueInfos;if(t)for(let i=0;i<t.length;i++){const s=t[i];if(String(s.value)===String(e)){delete this._valueInfoMap[e],t.splice(i,1);break}}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let i=t;return this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,T.lw)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void N().error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return i?.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==i?.arcade){const e=await(0,T.lw)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return s?.symbol||this.defaultSymbol}getSymbols(){const e=[];for(const t of this.uniqueValueInfos??[])t.symbol&&e.push(t.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables?.reduce(((e,t)=>e+t.getAttributeHash()),"")??""}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=this.uniqueValueInfos?.reduce(((e,t)=>e+t.getMeshHash()),"");return`${e}.${t}.${i}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new E({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,n.o8)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,n.o8)(this.visualVariables),legendOptions:(0,n.o8)(this.legendOptions),authoringInfo:(0,n.o8)(this.authoringInfo),backgroundFillSymbol:(0,n.o8)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,n.o8)(this.uniqueValueInfos),i=(0,n.o8)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,n.o8)(this.styleOrigin))),Object.freeze(t),Object.freeze(i)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",i),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,v.Dx)(e,t,this.valueExpression)];(0,v.rq)(e,t,this.field),(0,v.rq)(e,t,this.field2),(0,v.rq)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,U.cF)(this.styleOrigin,{portal:this.portal}).then((e=>{const t=[];return this._valueInfoMap={},e?.data&&Array.isArray(e.data.items)&&e.data.items.forEach((i=>{const s=new C.A({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const r=new k.A({value:i.name,symbol:s});t.push(r),this._valueInfoMap[i.name]=r})),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this}))}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const{uniqueValueInfos:e}=this;if(e)for(const t of e)this._valueInfoMap[t.value+""]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles($);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const i of e)t.push((0,u.wB)((()=>({symbol:i.symbol,value:i.value,label:i.label,description:i.description})),((e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)}),{sync:!0}));this.addHandles(t,$)}}_watchUniqueValueGroups(){this.removeHandles(R);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const i of e){t.push((0,u.wB)((()=>({classes:i.classes})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}));for(const e of i.classes??[])t.push((0,u.wB)((()=>({symbol:e.symbol,values:e.values,label:e.label,description:e.description})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}))}this.addHandles(t,R)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:i,field3:s,fieldDelimiter:r,uniqueValueGroups:l,valueExpression:n}=this;if(!t&&!n)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const o=!(!t||!i);for(const t of l)for(const l of t.classes??[]){const{symbol:t,label:n,values:a,description:u}=l;for(const l of a??[]){const{value:a,value2:p,value3:c}=l,h=[a];i&&h.push(p),s&&h.push(c);const d=o?h.join(r||""):h[0]??void 0;e.push(new k.A({symbol:t,label:n,value:d,description:u}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();const{field:t,field2:i,valueExpression:s,fieldDelimiter:r,uniqueValueInfos:l}=this;if(!t&&!s||!l.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const n=!(!t||!i),o=l.map((e=>{const{symbol:t,label:i,value:s,description:l}=e,[o,a,u]=n?s?.toString()?.split(r||"")||[]:[s];return new Z({symbol:t,label:i,description:l,values:[new I({value:o,value2:a,value3:u})]})})),a=[new q({classes:o})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l,timeZone:n}=t??{};let o=this._cache.compiledFunc;const a=l.arcadeUtils;if(!o){const e=a.createSyntaxTree(this.valueExpression);o=a.createFunction(e),this._cache.compiledFunc=o}const u=a.executeFunction(o,a.createExecContext(e,a.getViewInfo({viewingMode:i,scale:s,spatialReference:r}),n));return this._valueInfoMap[u+""]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if(this.field2){const e=this.field2,r=this.field3,l=[];t&&l.push(i[t]),e&&l.push(i[e]),r&&l.push(i[r]),s=l.join(this.fieldDelimiter||"")}else t&&(s=i[t]);return this._valueInfoMap[s+""]}static fromPortalStyle(e,t){const i=new E(t?.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t?.portal||g.A.getDefault());const s=i.populateFromStyle();return s.catch((t=>{N().error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)})),s}static fromStyleUrl(e,t){const i=new E(t?.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const s=i.populateFromStyle();return s.catch((t=>{N().error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)})),s}};(0,s._)([(0,p.MZ)({readOnly:!0})],L.prototype,"_cache",null),(0,s._)([(0,h.e)({uniqueValue:"unique-value"})],L.prototype,"type",void 0),(0,s._)([(0,p.MZ)(V.As)],L.prototype,"backgroundFillSymbol",void 0),(0,s._)([(0,p.MZ)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],L.prototype,"field",null),(0,s._)([(0,c.w)("field")],L.prototype,"castField",null),(0,s._)([(0,m.K)("field")],L.prototype,"writeField",null),(0,s._)([(0,p.MZ)({type:String,value:null,json:{write:!0}})],L.prototype,"field2",null),(0,s._)([(0,p.MZ)({type:String,value:null,json:{write:!0}})],L.prototype,"field3",null),(0,s._)([(0,p.MZ)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],L.prototype,"orderByClassesEnabled",void 0),(0,s._)([(0,p.MZ)({type:String,value:null,json:{write:!0}})],L.prototype,"valueExpression",null),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],L.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,p.MZ)({type:S.q,json:{write:!0}})],L.prototype,"legendOptions",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],L.prototype,"defaultLabel",void 0),(0,s._)([(0,p.MZ)((0,a.$N)({...V.z4},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],L.prototype,"defaultSymbol",null),(0,s._)([(0,p.MZ)({type:String,value:null,json:{write:!0}})],L.prototype,"fieldDelimiter",null),(0,s._)([(0,p.MZ)({type:g.A,readOnly:!0})],L.prototype,"portal",void 0),(0,s._)([(0,d.w)("portal",["styleName"])],L.prototype,"readPortal",null),(0,s._)([(0,p.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],L.prototype,"styleOrigin",void 0),(0,s._)([(0,d.w)("styleOrigin",["styleName","styleUrl"])],L.prototype,"readStyleOrigin",null),(0,s._)([(0,m.K)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],L.prototype,"writeStyleOrigin",null),(0,s._)([(0,p.MZ)({type:[q],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,i)=>(t.uniqueValueGroups||function(e){const{field1:t,field2:i,field3:s,fieldDelimiter:r,uniqueValueInfos:l,valueExpression:n}=e,o=!(!t||!i);return[{classes:(l??[]).map((e=>{const{symbol:l,label:a,value:u,description:p}=e,[c,h,d]=o?u?.toString()?.split(r||"")||[]:[u],y=[];return(t||n)&&y.push(c),i&&y.push(h),s&&y.push(d),{symbol:l,label:a,values:[y],description:p}}))}]}(t)).map((e=>q.fromJSON(e,i)))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],L.prototype,"uniqueValueGroups",null),(0,s._)([(0,p.MZ)({type:[k.A],json:{read:!1,write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],L.prototype,"uniqueValueInfos",null),L=E=(0,s._)([(0,y.$)(D)],L);const G=L},39886:(e,t,i)=>{i.d(t,{h:()=>M});var s=i(90237),r=i(10107),l=(i(44208),i(53966)),n=(i(87811),i(36005)),o=i(40608),a=i(43937),u=i(30524);const p=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/;var c=i(2024),h=i(62724),d=i(23461),y=i(48940),m=i(2795),f=i(69622),b=i(66552),v=i(67076);const g={color:c.A,size:y.A,opacity:h.A,rotation:d.A},w=new b.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),_=/^\[([^\]]+)\]$/i;let V=class extends f.A{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),e=e?.filter((e=>!!e)),e?.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some((e=>!!e.target))&&e.sort(((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i}));for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:r}=t,n=s?.match(_),o=n?.[1];if(o&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:r,field:o})),e)return e.map((e=>{const t=w.read(e.type),s=g[t];s||(l.A.getLogger(this).warn(`Unknown variable type: ${t}`),i?.messages&&i.messages.push(new v.A("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const r=new s;return r.read(e,i),r}))}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,s._)([(0,r.MZ)()],V.prototype,"visualVariables",null),V=(0,s._)([(0,o.$)("esri.renderers.visualVariables.VisualVariableFactory")],V);const S=V,x={base:m.A,key:"type",typeMap:{opacity:h.A,color:c.A,rotation:d.A,size:y.A}},M=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new S}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,i){return this._vvFactory.readVariables(e,t,i)}writeVisualVariables(e,t,i,s){t[i]=this._vvFactory.writeVariables(e,s)}get arcadeRequiredForVisualVariables(){if(!this.visualVariables)return!1;for(const e of this.visualVariables)if(e.arcadeRequired)return!0;return!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){const i=this.visualVariables;return i?i.filter((i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))):[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(const s of i)s&&(s.field&&(0,u.rq)(e,t,s.field),s.normalizationField&&(0,u.rq)(e,t,s.normalizationField),s.valueExpression&&(z(s.valueExpression,e,t)||await(0,u.Dx)(e,t,s.valueExpression)))}};return(0,s._)([(0,r.MZ)({types:[x],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,s._)([(0,n.w)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,s._)([(0,a.K)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,s._)([(0,o.$)("esri.renderers.mixins.VisualVariablesMixin")],t),t};function z(e,t,i){const s=(r=e,r.match(p)?.[1]?.replace(/\\'/g,"'")??null);var r;return null!=s&&((0,u.rq)(t,i,s),!0)}},30943:(e,t,i)=>{i.d(t,{A:()=>T});var s,r=i(90237),l=i(66552),n=i(25482),o=i(4718),a=i(10107),u=i(56507),p=i(36005),c=i(40608);i(44208),i(53966),i(87811);let h=s=class extends n.oY{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};var d;(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],h.prototype,"minValue",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],h.prototype,"maxValue",void 0),h=s=(0,r._)([(0,c.$)("esri.renderers.support.AuthoringInfoClassBreakInfo")],h);let y=d=class extends n.oY{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=new Array}clone(){return new d({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.o8)(this.classBreakInfos)})}};(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,r._)([(0,a.MZ)({type:[h],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=d=(0,r._)([(0,c.$)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var m,f=i(79901);let b=m=class extends n.oY{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new m({label:this.label,value:this.value,size:this.size})}};(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],b.prototype,"label",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"size",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"value",void 0),b=m=(0,r._)([(0,c.$)("esri.renderers.support.AuthoringInfoSizeStop")],b);const v=b;var g;const w=new l.J({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),_=new l.J({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),V={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},S=["high-to-low","above-and-below","centered-on","extremes"],x=[...new Set(["high-to-low","above-and-below","centered-on","extremes","above","below","high-to-low","above-and-below","above","below","reference-size"])],M=["seconds","minutes","hours","days","months","years"];let z=g=class extends n.oY{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}get normalizationField(){return"reference-size"===this.theme?this._get("normalizationField"):null}set normalizationField(e){this._set("normalizationField",e)}get referenceSizeScale(){return"reference-size"===this.theme?this._get("referenceSizeScale"):null}set referenceSizeScale(e){this._set("referenceSizeScale",e)}get referenceSizeSymbolStyle(){return"reference-size"===this.theme?this._get("referenceSizeSymbolStyle"):null}set referenceSizeSymbolStyle(e){this._set("referenceSizeSymbolStyle",e)}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get sizeStops(){return"reference-size"===this.theme?this._get("sizeStops"):null}set sizeStops(e){this._set("sizeStops",e)}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new g({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,normalizationField:this.normalizationField,referenceSizeScale:this.referenceSizeScale,referenceSizeSymbolStyle:this.referenceSizeSymbolStyle,sizeStops:(0,o.o8)(this.sizeStops),startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,r._)([(0,a.MZ)({types:V,json:{write:!0}})],z.prototype,"endTime",void 0),(0,r._)([(0,f.w)("endTime")],z.prototype,"castEndTime",null),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],z.prototype,"field",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],z.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],z.prototype,"minSliderValue",void 0),(0,r._)([(0,a.MZ)({type:String,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"normalizationField",null),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"referenceSizeScale",null),(0,r._)([(0,a.MZ)({type:["circle","diamond","hexagon-flat","hexagon-pointy","square"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"referenceSizeSymbolStyle",null),(0,r._)([(0,a.MZ)({types:V,json:{write:!0}})],z.prototype,"startTime",void 0),(0,r._)([(0,f.w)("startTime")],z.prototype,"castStartTime",null),(0,r._)([(0,a.MZ)({type:[v],json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"sizeStops",null),(0,r._)([(0,a.MZ)({type:w.apiValues,value:null,json:{type:w.jsonValues,read:w.read,write:w.write}})],z.prototype,"style",null),(0,r._)([(0,a.MZ)({type:x,value:null,json:{type:x,origins:{"web-scene":{type:S,write:{writer:(e,t)=>{S.includes(e)&&(t.theme=e)}}}},write:!0}})],z.prototype,"theme",null),(0,r._)([(0,a.MZ)({type:_.apiValues,json:{type:_.jsonValues,read:_.read,write:_.write}})],z.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:M,json:{type:M,write:!0}})],z.prototype,"units",void 0),z=g=(0,r._)([(0,c.$)("esri.renderers.support.AuthoringInfoVisualVariable")],z);const I=z;var A,j=i(95349);const Z=new l.J({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),F=new l.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),q=new l.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),E=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let k=A=class extends n.oY{constructor(e){super(e),this.colorRamp=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){return e?(0,j.r)(e):void 0}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new A({classificationMethod:this.classificationMethod,colorRamp:(0,o.o8)(this.colorRamp),fadeRatio:(0,o.o8)(this.fadeRatio),fields:this.fields?.slice(),field1:(0,o.o8)(this.field1),field2:(0,o.o8)(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map((e=>e.clone())),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,r._)([(0,a.MZ)({type:Z.apiValues,value:null,json:{type:Z.jsonValues,read:Z.read,write:Z.write,origins:{"web-document":{default:"manual",type:Z.jsonValues,read:Z.read,write:Z.write}}}})],k.prototype,"classificationMethod",null),(0,r._)([(0,a.MZ)({types:j.g,json:{write:!0}})],k.prototype,"colorRamp",void 0),(0,r._)([(0,p.w)("colorRamp")],k.prototype,"readColorRamp",null),(0,r._)([(0,a.MZ)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"fadeRatio",void 0),(0,r._)([(0,a.MZ)({type:[String],value:null,json:{write:!0}})],k.prototype,"fields",null),(0,r._)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],k.prototype,"field1",null),(0,r._)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],k.prototype,"field2",null),(0,r._)([(0,a.MZ)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],k.prototype,"flowTheme",null),(0,r._)([(0,a.MZ)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],k.prototype,"focus",null),(0,r._)([(0,a.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],k.prototype,"isAutoGenerated",void 0),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{type:u.jz,write:!0}})],k.prototype,"numClasses",null),(0,r._)([(0,a.MZ)({type:E,json:{type:E,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],k.prototype,"lengthUnit",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"minSliderValue",void 0),(0,r._)([(0,a.MZ)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"statistics",null),(0,r._)([(0,a.MZ)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],k.prototype,"standardDeviationInterval",null),(0,r._)([(0,a.MZ)({type:F.apiValues,value:null,json:{type:F.jsonValues,read:F.read,write:F.write,origins:{"web-scene":{type:q.jsonValues,write:{writer:q.write,overridePolicy:e=>({enabled:"flow"!==e})}}}}})],k.prototype,"type",null),(0,r._)([(0,a.MZ)({type:[I],json:{write:!0}})],k.prototype,"visualVariables",void 0),(0,r._)([(0,a.MZ)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],k.prototype,"univariateSymbolStyle",null),(0,r._)([(0,a.MZ)({type:["high-to-low","above-and-below","above","below"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],k.prototype,"univariateTheme",null),k=A=(0,r._)([(0,c.$)("esri.renderers.support.AuthoringInfo")],k);const T=k},88542:(e,t,i)=>{i.d(t,{A:()=>p});var s,r=i(90237),l=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(49849);let u=s=class extends l.oY{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new s({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?.clone()??null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,n.MZ)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,r._)([(0,n.MZ)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,r._)([(0,n.MZ)(a.Wp)],u.prototype,"symbol",void 0),u=s=(0,r._)([(0,o.$)("esri.renderers.support.ClassBreakInfo")],u);const p=u},86768:(e,t,i)=>{i.d(t,{q:()=>a});var s,r=i(90237),l=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608));let a=s=class extends l.oY{constructor(){super(...arguments),this.title=null}clone(){return new s({title:this.title})}};(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=s=(0,r._)([(0,o.$)("esri.renderers.support.LegendOptions")],a)},94833:(e,t,i)=>{i.d(t,{A:()=>p});var s,r=i(90237),l=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(49849);let u=s=class extends l.oY{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new s({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol?.toJSON());return`${this.value}.${e}`}};(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,n.MZ)(a.Wp)],u.prototype,"symbol",void 0),(0,r._)([(0,n.MZ)(a.Ug)],u.prototype,"value",void 0),u=s=(0,r._)([(0,o.$)("esri.renderers.support.UniqueValueInfo")],u);const p=u},49849:(e,t,i)=>{i.d(t,{As:()=>c,Ug:()=>h,Wp:()=>p,z4:()=>u});var s=i(61147),r=i(93637),l=i(90360),n=i(73838),o=i(20378),a=i(65365);const u={types:s.xK,json:{write:{writer:n.M9},origins:{"web-scene":{types:s.On,write:{writer:n.M9},read:{reader:(0,l.C)({types:s.On})}}}}},p=(0,r.$N)({json:{origins:{"web-scene":{write:{isRequired:!0}}}}},u),c={types:{base:o.A,key:"type",typeMap:{"simple-fill":s.Es.typeMap["simple-fill"],"picture-fill":s.Es.typeMap["picture-fill"],"polygon-3d":s.Es.typeMap["polygon-3d"]}},json:{write:{writer:n.M9},origins:{"web-scene":{type:a.A,write:{writer:n.M9}}}}},h={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}}},2024:(e,t,i)=>{i.d(t,{A:()=>p});var s,r=i(90237),l=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),o=i(2795),a=i(72500);let u=s=class extends o.A{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new s({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions?.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,l.MZ)({readOnly:!0})],u.prototype,"cache",null),(0,r._)([(0,l.MZ)({type:["color"],json:{type:["colorInfo"]}})],u.prototype,"type",void 0),(0,r._)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"normalizationField",void 0),(0,r._)([(0,l.MZ)({type:[a.A],json:{write:!0}})],u.prototype,"stops",null),u=s=(0,r._)([(0,n.$)("esri.renderers.visualVariables.ColorVariable")],u);const p=u},62724:(e,t,i)=>{i.d(t,{A:()=>b});var s,r=i(90237),l=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),o=i(2795),a=i(25482),u=i(56507),p=i(36005),c=i(43937),h=i(78553);let d=s=class extends a.oY{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,h.D)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,h.p)(e)}clone(){return new s({label:this.label,opacity:this.opacity,value:this.value})}};(0,r._)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,r._)([(0,l.MZ)({type:Number,json:{type:u.jz,write:{target:"transparency"}}})],d.prototype,"opacity",void 0),(0,r._)([(0,p.w)("opacity",["transparency"])],d.prototype,"readOpacity",null),(0,r._)([(0,c.K)("opacity")],d.prototype,"writeOpacity",null),(0,r._)([(0,l.MZ)({type:Number,json:{write:!0}})],d.prototype,"value",void 0),d=s=(0,r._)([(0,n.$)("esri.renderers.visualVariables.support.OpacityStop")],d);const y=d;var m;let f=m=class extends o.A{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new m({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions?.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,l.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,r._)([(0,l.MZ)({type:["opacity"],json:{type:["transparencyInfo"]}})],f.prototype,"type",void 0),(0,r._)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"normalizationField",void 0),(0,r._)([(0,l.MZ)({type:[y],json:{write:!0}})],f.prototype,"stops",null),f=m=(0,r._)([(0,n.$)("esri.renderers.visualVariables.OpacityVariable")],f);const b=f},23461:(e,t,i)=>{i.d(t,{A:()=>c});var s,r=i(90237),l=i(49186),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(43937),u=i(2795);let p=s=class extends u.A{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic",this.valueExpressionTitle=null}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}writeValueExpressionTitleWebScene(e,t,i,s){if(s?.messages){const e=`visualVariables[${this.index}]`;s.messages.push(new l.A("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:e+".valueExpressionTitle",context:s}))}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions?.clone()})}};(0,r._)([(0,n.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,r._)([(0,n.MZ)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],p.prototype,"axis",void 0),(0,r._)([(0,n.MZ)({type:["rotation"],json:{type:["rotationInfo"]}})],p.prototype,"type",void 0),(0,r._)([(0,n.MZ)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],p.prototype,"rotationType",void 0),(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"valueExpressionTitle",void 0),(0,r._)([(0,a.K)("web-scene","valueExpressionTitle")],p.prototype,"writeValueExpressionTitleWebScene",null),p=s=(0,r._)([(0,o.$)("esri.renderers.visualVariables.RotationVariable")],p);const c=p},48940:(e,t,i)=>{i.d(t,{A:()=>I});var s,r=i(90237),l=i(49186),n=i(66552),o=i(53966),a=i(10107),u=i(79901),p=i(36005),c=i(40608),h=i(43937),d=i(2795),y=i(90629),m=i(12330),f=(i(44208),i(87811),i(41078));let b=s=class extends f.A{constructor(){super(...arguments),this.customValues=null}clone(){return new s({title:this.title,showLegend:this.showLegend,customValues:this.customValues?.slice()})}};(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],b.prototype,"customValues",void 0),b=s=(0,r._)([(0,c.$)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],b);const v=b;var g,w=i(98205),_=i(29266);const V=new n.J({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new n.J({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});function x(e){if(null!=e)return"string"==typeof e||"number"==typeof e?function(e){return(0,y.cr)(e)}(e):"size"===e.type?(0,w.of)(e)?e:(delete(e={...e}).type,new z(e)):void 0}function M(e,t,i){if("object"!=typeof e)return e;const s=new z;return s.read(e,i),s}let z=g=class extends d.A{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&_.RV.test(this.valueExpression)}}set index(e){(0,w.of)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,w.of)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,w.eh)(this)}set maxDataValue(e){e&&this.stops&&(o.A.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(o.A.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return x(e)}readMaxSize(e,t,i){return M(e,0,i)}set minDataValue(e){e&&this.stops&&(o.A.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(o.A.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return x(e)}readMinSize(e,t,i){return M(e,0,i)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)):e&&(o.A.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,w.KZ)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if("$view.scale"===e){if(s?.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;s.messages.push(new l.A("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:s}))}}else t[i]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new g({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,w.of)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,w.of)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops?.map((e=>e.clone())),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions?.clone()})}flipSizes(){if(this.transformationType===w._w.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===w._w.Stops){const e=this.stops;if(!e)return this;const t=e.map((e=>e.size)).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops?.map((e=>e.value||0))}};(0,r._)([(0,a.MZ)({readOnly:!0})],z.prototype,"cache",null),(0,r._)([(0,a.MZ)({type:V.apiValues,json:{type:V.jsonValues,origins:{"web-map":{read:!1}},read:V.read,write:V.write}})],z.prototype,"axis",void 0),(0,r._)([(0,a.MZ)()],z.prototype,"index",null),(0,r._)([(0,a.MZ)({type:String,readOnly:!0})],z.prototype,"inputValueType",null),(0,r._)([(0,a.MZ)({type:v,json:{write:!0}})],z.prototype,"legendOptions",void 0),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{write:!0}})],z.prototype,"maxDataValue",null),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{write:!0}})],z.prototype,"maxSize",null),(0,r._)([(0,u.w)("maxSize")],z.prototype,"castMaxSize",null),(0,r._)([(0,p.w)("maxSize")],z.prototype,"readMaxSize",null),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{write:!0}})],z.prototype,"minDataValue",null),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{write:!0}})],z.prototype,"minSize",null),(0,r._)([(0,u.w)("minSize")],z.prototype,"castMinSize",null),(0,r._)([(0,p.w)("minSize")],z.prototype,"readMinSize",null),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],z.prototype,"normalizationField",void 0),(0,r._)([(0,a.MZ)({readOnly:!0})],z.prototype,"arcadeRequired",null),(0,r._)([(0,a.MZ)({type:String})],z.prototype,"scaleBy",void 0),(0,r._)([(0,a.MZ)({type:[m.A],value:null,json:{write:!0}})],z.prototype,"stops",null),(0,r._)([(0,a.MZ)({type:["outline"],json:{write:!0}})],z.prototype,"target",void 0),(0,r._)([(0,a.MZ)({type:String,readOnly:!0})],z.prototype,"transformationType",null),(0,r._)([(0,a.MZ)({type:["size"],json:{type:["sizeInfo"]}})],z.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],z.prototype,"useSymbolValue",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],z.prototype,"valueExpression",void 0),(0,r._)([(0,p.w)("valueExpression",["valueExpression","expression"])],z.prototype,"readValueExpression",null),(0,r._)([(0,h.K)("web-scene","valueExpression")],z.prototype,"writeValueExpressionWebScene",null),(0,r._)([(0,a.MZ)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],z.prototype,"valueRepresentation",void 0),(0,r._)([(0,a.MZ)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],z.prototype,"valueUnit",void 0),(0,r._)([(0,p.w)("valueUnit")],z.prototype,"readValueUnit",null),z=g=(0,r._)([(0,c.$)("esri.renderers.visualVariables.SizeVariable")],z);const I=z},2795:(e,t,i)=>{i.d(t,{A:()=>y});var s=i(90237),r=i(66552),l=i(25482),n=i(53966),o=i(10107),a=i(79901),u=i(40608),p=i(56507),c=i(41078);const h=new r.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let d=class extends l.oY{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(n.A.getLogger(this).error(".field: field must be a string value"),null):(0,p.GX)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s._)([(0,o.MZ)()],d.prototype,"index",void 0),(0,s._)([(0,o.MZ)({type:h.apiValues,readOnly:!0,json:{read:h.read,write:h.write}})],d.prototype,"type",void 0),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,s._)([(0,a.w)("field")],d.prototype,"castField",null),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"valueExpression",void 0),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,o.MZ)({readOnly:!0})],d.prototype,"arcadeRequired",null),(0,s._)([(0,o.MZ)({type:c.A,json:{write:!0}})],d.prototype,"legendOptions",void 0),d=(0,s._)([(0,u.$)("esri.renderers.visualVariables.VisualVariable")],d);const y=d},72500:(e,t,i)=>{i.d(t,{A:()=>h});var s,r=i(90237),l=i(68197),n=i(25482),o=i(10107),a=i(56507),u=(i(87811),i(44208),i(40608)),p=i(43937);let c=s=class extends n.oY{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=e??0}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,r._)([(0,o.MZ)({type:l.A,json:{type:[a.jz],write:!0}})],c.prototype,"color",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,r._)([(0,o.MZ)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"value",void 0),(0,r._)([(0,p.K)("value")],c.prototype,"writeValue",null),c=s=(0,r._)([(0,u.$)("esri.renderers.visualVariables.support.ColorStop")],c);const h=c},12330:(e,t,i)=>{i.d(t,{A:()=>p});var s,r=i(90237),l=i(25482),n=i(90629),o=i(10107),a=(i(44208),i(53966),i(87811),i(40608));let u=s=class extends l.oY{constructor(e){super(e),this.label=null,this.size=null,this.value=null,this.useMinValue=null,this.useMaxValue=null}clone(){return new s({label:this.label,size:this.size,value:this.value,useMaxValue:this.useMaxValue,useMinValue:this.useMinValue})}};(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,o.MZ)({type:Number,cast:n.cr,json:{write:!0}})],u.prototype,"size",void 0),(0,r._)([(0,o.MZ)({type:Number,json:{write:!0}})],u.prototype,"value",void 0),(0,r._)([(0,o.MZ)({type:Boolean,json:{write:!1}})],u.prototype,"useMinValue",void 0),(0,r._)([(0,o.MZ)({type:Boolean,json:{write:!1}})],u.prototype,"useMaxValue",void 0),u=s=(0,r._)([(0,a.$)("esri.renderers.visualVariables.support.SizeStop")],u);const p=u},41078:(e,t,i)=>{i.d(t,{A:()=>u});var s,r=i(90237),l=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),o=i(86768);let a=s=class extends o.q{constructor(){super(...arguments),this.showLegend=null}clone(){return new s({title:this.title,showLegend:this.showLegend})}};(0,r._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),a=s=(0,r._)([(0,n.$)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},98205:(e,t,i)=>{var s,r;function l(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?s.Expression:e.field&&"string"==typeof e.field?s.Field:s.Unknown}function a(e,t){const i=t||o(e),l=e.valueUnit||"unknown";return i===s.Unknown?r.Constant:e.stops?r.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?r.ClampedLinear:"unknown"===l?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?r.Proportional:r.Additive:r.Identity:r.RealWorldSize}i.d(t,{KZ:()=>a,Yf:()=>s,_w:()=>r,eh:()=>o,gf:()=>n,of:()=>l}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(s||(s={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(r||(r={}))},29266:(e,t,i)=>{i.d(t,{RV:()=>h,UT:()=>d,Yz:()=>b}),i(68197);var s=i(52106),r=i(21818),l=i(53966),n=i(31756),o=i(98205);const a=()=>l.A.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=e=>a().warn(`The visualVariable should be an instance of esri.renderers.visualVariables.${e}`),p=()=>a().error("Use of arcade expressions requires an arcade context"),c=(new s.A,Math.PI),h=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function d(e,t,i){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"rotation"===e.type)):e;if(!s)return;if("esri.renderers.visualVariables.RotationVariable"!==s.declaredClass)return void u("RotationVariable");const r=s.axis||"heading",l="heading"===r&&"arithmetic"===s.rotationType?90:0,n="heading"===r&&"arithmetic"===s.rotationType?-1:1,o="number"==typeof t?null:t,a=o?.attributes,c=s.field,{hasExpression:h}=s.cache;let d=s.cache.compiledFunc,y=0;if(!c&&!h)return y;if(h){if(null==i?.arcade)return void p();const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,r=t.getViewInfo(e),l=t.createExecContext(o,r,i.timeZone);if(!d){const e=t.createSyntaxTree(s.valueExpression);d=t.createFunction(e),s.cache.compiledFunc=d}y=t.executeFunction(d,l)}else a&&(y=a[c]||0);return y="number"!=typeof y||isNaN(y)?null:l+n*y,y}function y(e,t,i){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"size"===e.type)):e;if(!s)return;if("esri.renderers.visualVariables.SizeVariable"!==s.declaredClass)return void u("SizeVariable");const r=function(e,t,i,s,r){switch(t.transformationType){case o._w.Additive:return function(e,t,i,s){return e+((m(t.minSize,i,s)||t.minDataValue)??0)}(e,t,i,s);case o._w.Constant:return function(e,t,i){const s=e.stops;let r=s?.length&&s[0].size;return null==r&&(r=e.minSize),m(r,t,i)}(t,i,s);case o._w.ClampedLinear:return function(e,t,i,s){const r=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),l=m(t.minSize,i,s),n=m(t.maxSize,i,s),o=null!=s?s.shape:void 0;if(e<=t.minDataValue)return l;if(e>=t.maxDataValue)return n;if(null==l||null==n)return null;if("area"===t.scaleBy&&o){const e="circle"===o,t=e?c*(l/2)**2:l*l,i=t+r*((e?c*(n/2)**2:n*n)-t);return e?2*Math.sqrt(i/c):Math.sqrt(i)}return l+r*(n-l)}(e,t,i,s);case o._w.Proportional:return function(e,t,i,s){const r=null!=s?s.shape:void 0,l=e/t.minDataValue,n=m(t.minSize,i,s),o=m(t.maxSize,i,s);let a=null;return a="circle"===r?2*Math.sqrt(l*(n/2)**2):"square"===r||"diamond"===r||"image"===r?Math.sqrt(l*n**2):l*n,f(a,n,o)}(e,t,i,s);case o._w.Stops:return function(e,t,i,s,r){const[l,n,o]=function(e,t){if(!t)return;let i=0,s=t.length-1;return t.some(((t,r)=>e<t?(s=r,!0):(i=r,!1))),[i,s,(e-t[i])/(t[s]-t[i])]}(e,r);if(l===n)return m(t.stops?.[l].size,i,s);{const e=m(t.stops?.[l].size,i,s);return e+(m(t.stops?.[n].size,i,s)-e)*o}}(e,t,i,s,r);case o._w.RealWorldSize:return function(e,t,i,s){const r=(s?.resolution??1)*n.j[t.valueUnit],l=m(t.minSize,i,s),o=m(t.maxSize,i,s),{valueRepresentation:a}=t;let u=null;return u="area"===a?2*Math.sqrt(e/c)/r:"radius"===a||"distance"===a?2*e/r:e/r,f(u,l,o)}(e,t,i,s);case o._w.Identity:return e;case o._w.Unknown:return null}}(function(e,t,i){const s="number"==typeof t,r=s?null:t,l=r?.attributes;let n=s?t:null;const{isScaleDriven:a}=e.cache;let u=e.cache.compiledFunc;if(a){const t=null!=i?i.scale:void 0,s=null!=i?i.view:void 0;n=null==t||"3d"===s?function(e){let t=null,i=null;const s=e.stops;return s?(t=s[0].value,i=s[s.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!s)switch(e.inputValueType){case o.Yf.Expression:{if(null==i?.arcade)return void p();const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},s=i.arcade.arcadeUtils,l=s.getViewInfo(t),o=s.createExecContext(r,l,i.timeZone);if(!u){const t=s.createSyntaxTree(e.valueExpression);u=s.createFunction(t),e.cache.compiledFunc=u}n=s.executeFunction(u,o);break}case o.Yf.Field:l&&(n=l[e.field]);break;case o.Yf.Unknown:n=null}if(!(0,o.gf)(n))return null;if(s||!e.normalizationField)return n;const c=l?parseFloat(l[e.normalizationField]):null;return(0,o.gf)(c)&&0!==c?n/c:null}(s,t,i),s,t,i,s.cache.ipData);return null==r||isNaN(r)?0:r}function m(e,t,i){return null==e?null:(0,o.of)(e)?y(e,t,i):(0,o.gf)(e)?e:null}function f(e,t,i){return(0,o.gf)(i)&&e>i?i:(0,o.gf)(t)&&e<t?t:e}function b(e,t,i){const s=["proportional","proportional","proportional"];for(const l of e){const e=l.useSymbolValue?"symbol-value":y(l,t,i);switch(l.axis){case"width":s[0]=e;break;case"depth":s[1]=e;break;case"height":s[2]=e;break;case"width-and-depth":s[0]=e,s[1]=e;break;case"all":case void 0:case null:s[0]=e,s[1]=e,s[2]=e;break;default:(0,r.Xb)(l.axis)}}return s}},2485:(e,t,i)=>{i.d(t,{A:()=>d});var s,r=i(90237),l=i(68197),n=i(4718),o=i(10107),a=i(56507),u=i(93223),p=i(40608),c=i(72606);let h=s=class extends c.A{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new s({fromColor:(0,n.o8)(this.fromColor),toColor:(0,n.o8)(this.toColor),algorithm:this.algorithm})}};(0,r._)([(0,u.e)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],h.prototype,"algorithm",void 0),(0,r._)([(0,o.MZ)({type:l.A,json:{type:[a.jz],write:!0}})],h.prototype,"fromColor",void 0),(0,r._)([(0,o.MZ)({type:l.A,json:{type:[a.jz],write:!0}})],h.prototype,"toColor",void 0),(0,r._)([(0,o.MZ)({type:["algorithmic"]})],h.prototype,"type",void 0),h=s=(0,r._)([(0,p.$)("esri.rest.support.AlgorithmicColorRamp")],h);const d=h},72606:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(90237),r=i(25482),l=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let o=class extends r.oY{constructor(e){super(e),this.type=null}};(0,s._)([(0,l.MZ)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s._)([(0,n.$)("esri.rest.support.ColorRamp")],o);const a=o},1626:(e,t,i)=>{i.d(t,{A:()=>c});var s,r=i(90237),l=i(4718),n=i(10107),o=(i(44208),i(53966),i(40608)),a=i(2485),u=i(72606);let p=s=class extends u.A{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new s({colorRamps:(0,l.o8)(this.colorRamps)})}};(0,r._)([(0,n.MZ)({type:[a.A],json:{write:!0}})],p.prototype,"colorRamps",void 0),(0,r._)([(0,n.MZ)({type:["multipart"]})],p.prototype,"type",void 0),p=s=(0,r._)([(0,o.$)("esri.rest.support.MultipartColorRamp")],p);const c=p},95349:(e,t,i)=>{i.d(t,{g:()=>n,r:()=>o});var s=i(2485),r=i(72606),l=i(1626);const n={key:"type",base:r.A,typeMap:{algorithmic:s.A,multipart:l.A}};function o(e){return e?.type?"algorithmic"===e.type?s.A.fromJSON(e):"multipart"===e.type?l.A.fromJSON(e):null:null}},73838:(e,t,i)=>{i.d(t,{rS:()=>E,M9:()=>j,oO:()=>Z});var s=i(61147),r=i(49186),l=i(83531),n=i(58185),o=i(68197),a=i(5503),u=(i(44208),i(90629)),p=i(27845),c=i(97887),h=i(68548),d=i(75981),y=i(65365),m=i(39065),f=i(59868),b=i(93470),v=i(11506);d.A.fromSimpleMarkerSymbol(f.UK),c.A.fromSimpleLineSymbol(f.A7),y.A.fromSimpleFillSymbol(f.Cx),new h.A({symbolLayers:new a.A([new p.A({material:{color:b.fT},edges:new m.A({size:(0,u.PN)(1),color:new o.A(b.JR)})})])});const g=new c.A({symbolLayers:new a.A([new v.A({material:{color:new o.A([0,0,0])},size:(0,u.PN)(1)})])}),w=new y.A({symbolLayers:new a.A([new p.A({outline:{color:new o.A([0,0,0]),size:(0,u.PN)(1)}})])});var _=i(37757),V=i(31593),S=i(53930),x=i(58592),M=i(94985),z=i(68249),I=i(13313);const A={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function j(e,t,i,s){const r=q(e,{},{context:s,isLabelSymbol:!1});null!=r&&(t[i]=r)}function Z(e,t,i,s){const r=q(e,{},{context:s,isLabelSymbol:!0});null!=r&&(t[i]=r)}function F(e){return e instanceof n.A||e instanceof _.A}function q(e,t,i){if(null==e)return null;const{context:n,isLabelSymbol:o}=i,a=n?.origin,u=n?.messages;if("web-scene"===a&&!F(e)){const i=function(e,t=A){if(!e)return{symbol:null};const{retainId:i=A.retainId,ignoreDrivers:l=A.ignoreDrivers,hasLabelingContext:n=A.hasLabelingContext,retainCIM:o=A.retainCIM,cimFallbackEnabled:a=A.cimFallbackEnabled}=t;let u=null;if((0,s.wk)(e)||e instanceof _.A)u=e.clone();else if("cim"===e.type){const i=e.data?.symbol?.type;switch(i){case"CIMPointSymbol":u=o?e.clone():d.A.fromCIMSymbol(e);break;case"CIMLineSymbol":a&&(u=g.clone(),t?.logWarning?.("Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":a&&(u=w.clone(),t?.logWarning?.("Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!u)return{error:new r.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${i||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof V.A)u=c.A.fromSimpleLineSymbol(e);else if(e instanceof S.A)u=d.A.fromSimpleMarkerSymbol(e);else if(e instanceof x.A)u=d.A.fromPictureMarkerSymbol(e);else if(e instanceof M.A)u=t.geometryType&&"mesh"===t.geometryType?h.A.fromSimpleFillSymbol(e):y.A.fromSimpleFillSymbol(e);else{if(!(e instanceof z.A))return{error:new r.A("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};u=n?I.A.fromTextSymbol(e):d.A.fromTextSymbol(e)}return i&&u&&"cim"!==u.type&&(u.id=e.id),l&&(0,s.wk)(u)&&u.symbolLayers.forEach((e=>e.ignoreDrivers=!0)),{symbol:u}}(e,{retainCIM:!0,hasLabelingContext:o});return null!=i.symbol?i.symbol.write(t,n):(u?.push(new r.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:n,error:i.error})),null)}return("web-map"===a||"portal-item"===a&&!(0,l.TU)(n?.layer))&&F(e)?(u?.push(new r.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:e,context:n})),null):e.write(t,n)}function E(e,t){return(0,s.Bu)(e,null,t)}},94141:(e,t,i)=>{i.d(t,{jg:()=>v,cF:()=>h,bo:()=>d,yA:()=>m,o5:()=>y});var s=i(78888),r=i(49186),l=i(74887),n=i(84952),o=i(20655),a=i(16405),u=i(44208);const p=()=>!!(0,u.A)("enable-feature:force-wosr"),c=new Map;function h(e,t,i){return null!=e?.styleUrl?async function(e,t){try{return{data:(await m(e,t)).data,baseUrl:(0,n.nM)(e),styleUrl:e}}catch(e){return(0,l.QP)(e),null}}(e.styleUrl,i):null!=e?.styleName?function(e,t,i){const s=null!=t.portal?t.portal:o.A.getDefault();let l;const n=`${s.url} - ${s.user?.username} - ${e}`,u=c.get(n);if(u)return u;const p=function(e,t,i){return t.load(i).then((()=>{const s=new a.A({disableExtraQuery:!0,query:`owner:${f} AND type:${b} AND typekeywords:"${e}"`});return t.queryItems(s,i)})).then((({results:t})=>{let s=null;const l=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t){const t=e.typeKeywords?.some((e=>e.toLowerCase()===l));if(t&&e.type===b&&e.owner===f){s=e;break}}if(!s)throw new r.A("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return s.load(i)}))}(e,s,i).then((e=>(l=e,e.fetchData()))).then((t=>({data:t,baseUrl:l.itemUrl??"",styleName:e})));return c.set(n,p),p}(e.styleName,t,i):Promise.reject(new r.A("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function d(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function y(e,t,i=["gltf"]){if("cimRef"===t)return encodeURI(e.cimRef);if(e.formatInfos&&!p())for(const t of i){const i=e.formatInfos.find((e=>e.type===t));if(i)return i.href}return encodeURI(e.webRef)}function m(e,t){const i={responseType:"json",query:{f:"json"},...t};return(0,s.A)((0,n.S8)(e),i)}const f="esri_en",b="Style",v="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"}}]);