@arcgis/core 5.2.0-next.30 → 5.2.0-next.31

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 (157) hide show
  1. package/WebDocument2D.js +1 -1
  2. package/WebScene.js +1 -1
  3. package/arcade/ArcadePortal.js +1 -1
  4. package/arcade/Attachment.js +1 -1
  5. package/arcade/Dictionary.js +1 -1
  6. package/arcade/Feature.js +1 -1
  7. package/arcade/arcadeAsyncRuntime.js +1 -1
  8. package/arcade/arcadeCompiler.js +1 -1
  9. package/arcade/arcadeRuntime.js +1 -1
  10. package/arcade/containerUtils.js +1 -1
  11. package/arcade/debug.js +1 -1
  12. package/arcade/deepClone.js +1 -1
  13. package/arcade/featureSetUtils.js +1 -1
  14. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  15. package/arcade/featureset/support/shared.js +1 -1
  16. package/arcade/functions/convertdirection.js +1 -1
  17. package/arcade/functions/date.js +1 -1
  18. package/arcade/functions/feature.js +1 -1
  19. package/arcade/functions/featuresetbase.js +1 -1
  20. package/arcade/functions/featuresetgeom.js +1 -1
  21. package/arcade/functions/featuresetstats.js +1 -1
  22. package/arcade/functions/featuresetstring.js +1 -1
  23. package/arcade/functions/geomasync.js +1 -1
  24. package/arcade/functions/geometry.js +1 -1
  25. package/arcade/functions/geomsync.js +1 -1
  26. package/arcade/functions/knowledgegraph.js +1 -1
  27. package/arcade/functions/maths.js +1 -1
  28. package/arcade/functions/stats.js +1 -1
  29. package/arcade/functions/string.js +1 -1
  30. package/arcade/geometry/constructors.js +1 -1
  31. package/arcade/geometry/functions.js +1 -1
  32. package/arcade/languageUtils.js +1 -1
  33. package/assets/esri/core/workers/RemoteClient.js +1 -1
  34. package/assets/esri/core/workers/chunks/{e5d2fab228d54b18a8a8.js → 08405116b5feb2d00101.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{774615303c1cc9a77e20.js → 11af659688cf963ea6cd.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{2665337e1b665e7e2b70.js → 15081b361fc42f40b865.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{bcb2092c87d8d21c6458.js → 197b9f8483fad2258650.js} +1 -1
  38. package/assets/esri/core/workers/chunks/1cd8dff4373494b01ad4.js +1 -0
  39. package/assets/esri/core/workers/chunks/1d92da90fbbc3f98b201.js +1 -0
  40. package/assets/esri/core/workers/chunks/210ffc448c73a7bf63aa.js +1 -0
  41. package/assets/esri/core/workers/chunks/{a14e5607c5c091c77e3d.js → 2540beb53f1443a070d7.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{689673173ca1c0e098fe.js → 25932fa010f9a32475c1.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{e2d500ac1a264d09c857.js → 32b5d2537feefe6e94a3.js} +1 -1
  44. package/assets/esri/core/workers/chunks/34a024eda22d228e1fbe.js +1 -0
  45. package/assets/esri/core/workers/chunks/3f63b14b53b5ca716e3a.js +1 -0
  46. package/assets/esri/core/workers/chunks/{6df54132299b9e8f6dad.js → 456b77b8f13933a75b68.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{3c342e662c13a05f4caf.js → 49713dfa4c8b788079d1.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{45e4b9069263adeae394.js → 49a45083a9a155614c1c.js} +1 -1
  49. package/assets/esri/core/workers/chunks/4be31fcc5482a2526d2b.js +1 -0
  50. package/assets/esri/core/workers/chunks/{31d92ba9089617aa59ab.js → 57c003c6745d450558a7.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{8104ac2eee69d79ada86.js → 6048c89fc4dcd2e9988d.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{1b9c68e8431bb4608209.js → 6162f6735ea4622e54d8.js} +1 -1
  53. package/assets/esri/core/workers/chunks/684c9b4bd9590d2db12f.js +1 -0
  54. package/assets/esri/core/workers/chunks/684d3cb4fb233180b2d0.js +1 -0
  55. package/assets/esri/core/workers/chunks/{fe6385115d76e16e8da0.js → 75baf6dff6e7658b17b3.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{166a0df6e37627e18976.js → 7a2dfa42610fe8414ed7.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{43847d66726fd0bcbbb7.js → 83ae56c7fa8d84865605.js} +1 -1
  58. package/assets/esri/core/workers/chunks/8722e2790272e90a1897.js +1 -0
  59. package/assets/esri/core/workers/chunks/{1282598516cd0e3056b7.js → 977e6f589bd266d6067d.js} +2 -2
  60. package/assets/esri/core/workers/chunks/9f3d37e5f42bf1529673.js +1 -0
  61. package/assets/esri/core/workers/chunks/a833fc9250635eb4152f.js +1 -0
  62. package/assets/esri/core/workers/chunks/{47290f27375c76bcc9c7.js → b0253fe7b3529bc22270.js} +1 -1
  63. package/assets/esri/core/workers/chunks/b324bdb9c74fc3f956db.js +1 -0
  64. package/assets/esri/core/workers/chunks/{1bd7b7f4ee7ea6cb7ef9.js → b60f24a6c777301803f4.js} +1 -1
  65. package/assets/esri/core/workers/chunks/bd155794e9bc16dd0474.js +1 -0
  66. package/assets/esri/core/workers/chunks/{906f4c0fa8135e6c2f03.js → c660a5a1086870a3a6b9.js} +1 -1
  67. package/assets/esri/core/workers/chunks/cb58aff1ff186fa18345.js +1 -0
  68. package/assets/esri/core/workers/chunks/{17b98787a0698f584882.js → e7cb1b72f0b54e845741.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{21122f3f3e19a7fd7d33.js → f69d3ff8a69c1985bca3.js} +1 -1
  70. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  71. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  72. package/chunks/ShadowCastVisualize.glsl.js +4 -10
  73. package/chunks/aiServices.js +1 -1
  74. package/chunks/array.js +1 -1
  75. package/chunks/languageUtils.js +1 -1
  76. package/chunks/lyr3DMain.js +1 -1
  77. package/config.js +1 -1
  78. package/core/has.js +1 -1
  79. package/graphic/AnnotationFeatureGraphicOrigin.d.ts +3 -3
  80. package/graphic/AnnotationFeatureGraphicOrigin.js +1 -1
  81. package/intl/messages.d.ts +12 -2
  82. package/intl/t9n.d.ts +8 -1
  83. package/intl.d.ts +4 -0
  84. package/kernel.js +1 -1
  85. package/layers/AnnotationFeatureLayer.d.ts +1 -4
  86. package/layers/AnnotationFeatureLayer.js +1 -1
  87. package/layers/DimensionFeatureLayer.js +1 -1
  88. package/layers/VoxelWasmPerSceneView.js +1 -1
  89. package/layers/mixins/DataElementMixin.js +2 -0
  90. package/layers/support/AnnotationFeatureSublayer.js +1 -1
  91. package/layers/support/parquetUtils.js +1 -1
  92. package/package.json +1 -1
  93. package/support/ArcadeExpression.js +1 -1
  94. package/support/arcadeUtils.js +1 -1
  95. package/support/revision.js +1 -1
  96. package/symbols/cim/supportUtils.js +2 -0
  97. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  98. package/views/2d/engine/webgl/util/DimensionMatcher.js +1 -1
  99. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  100. package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
  101. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  102. package/views/2d/layers/support/annodime/annotationSchema.js +1 -1
  103. package/views/2d/layers/support/annodime/dimensionSchema.js +1 -1
  104. package/views/2d/layers/support/annodime/utils.js +1 -1
  105. package/views/2d/layers/support/annodime/virtualFields.js +1 -1
  106. package/views/3d/camera/constraintUtils.js +1 -1
  107. package/views/3d/state/ConstraintsManager.js +1 -1
  108. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  109. package/views/3d/terrain/PatchRenderData.js +1 -1
  110. package/views/3d/terrain/PatchRenderDataWaterproofness.js +2 -0
  111. package/views/3d/terrain/PlanarPatch.js +1 -1
  112. package/views/3d/terrain/SphericalPatch.js +1 -1
  113. package/views/3d/terrain/TileRenderer.js +1 -1
  114. package/views/3d/webgl-engine/effects/OpaqueEnvironment.js +1 -1
  115. package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
  116. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  117. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMask.js +1 -1
  118. package/views/3d/webgl-engine/effects/geometry/ObjectAndLayerID.js +1 -1
  119. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  120. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  121. package/views/3d/webgl-engine/effects/highlight/ShadowHighlightBuffer.js +1 -1
  122. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  123. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  124. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  125. package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
  126. package/views/3d/webgl-engine/effects/stars/StarsTechnique.js +1 -1
  127. package/views/3d/webgl-engine/lib/CutFillComputation.js +1 -1
  128. package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
  129. package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
  130. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  131. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  132. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  133. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  134. package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
  135. package/views/3d/webgl.js +1 -1
  136. package/views/PopupView.js +1 -1
  137. package/views/layers/FeatureLikeLayerView.js +1 -1
  138. package/views/popupAdapter.js +1 -1
  139. package/webdoc/support/thumbnailUtils.js +1 -1
  140. package/webdoc/support/webdocSaveUtils.js +1 -1
  141. package/widgets/support/widget.d.ts +1 -0
  142. package/assets/esri/core/workers/chunks/125edba5c618c6257cb8.js +0 -1
  143. package/assets/esri/core/workers/chunks/168be2eac0fa3c67ae27.js +0 -1
  144. package/assets/esri/core/workers/chunks/32740b075d7a890d7888.js +0 -1
  145. package/assets/esri/core/workers/chunks/5189413a83faf3480e29.js +0 -1
  146. package/assets/esri/core/workers/chunks/a2be8784f2cfdbb42681.js +0 -1
  147. package/assets/esri/core/workers/chunks/a9db775210ebeee41738.js +0 -1
  148. package/assets/esri/core/workers/chunks/bca6abc185dedec0f41b.js +0 -1
  149. package/assets/esri/core/workers/chunks/bee56a6ac99312f03109.js +0 -1
  150. package/assets/esri/core/workers/chunks/d1d135a54233092ad637.js +0 -1
  151. package/assets/esri/core/workers/chunks/d750e4abeb777caa8c36.js +0 -1
  152. package/assets/esri/core/workers/chunks/daf539e9f88fc9e101e4.js +0 -1
  153. package/assets/esri/core/workers/chunks/e774303efefee31952d0.js +0 -1
  154. package/assets/esri/core/workers/chunks/e8546ab510fc9515bd23.js +0 -1
  155. package/assets/esri/core/workers/chunks/fc9664d3282b052ef40f.js +0 -1
  156. package/views/2d/layers/support/annodime/DimensionMatcherSchema.js +0 -2
  157. package/views/2d/layers/support/annodime/unsupported.js +0 -2
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4428,5077],{68197(e,t,n){n.d(t,{A:()=>u});var i=n(40876),r=n(4576),s=n(34727),o=n(56507);function l(e){return(0,s.qE)((0,o.Vr)(e),0,255)}function a(e,t){const n=e.toString(16).padStart(2,"0");return t?n.slice(0,1):n}class u{static blendColors(e,t,n,i=new u){return i.r=Math.round(e.r+(t.r-e.r)*n),i.g=Math.round(e.g+(t.g-e.g)*n),i.b=Math.round(e.b+(t.b-e.b)*n),i.a=e.a+(t.a-e.a)*n,i._sanitize()}static fromRgb(e,t){const n=(0,i.lT)(e);return n?u.fromArray(n,t):null}static fromHex(e,t=new u){const n=(0,i.oW)(e);return n?u.fromArray(n,t):null}static fromArray(e,t=new u){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const n=(0,i.Eq)(e);return n?u.fromArray(n,t):null}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)u.fromString(e,this);else if((0,r.yc)(e))u.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,n=e?.digits??6,i=3===n||4===n,r=4===n||8===n,s=`#${a(this.r,i)}${a(this.g,i)}${a(this.b,i)}${r?a(Math.round(255*this.a),i):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=l(this.r),n=l(this.g),i=l(this.b);return 0===e||1!==this.a?[t,n,i,l(255*this.a)]:[t,n,i]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(e,t,n,i){this.r=e,this.g=t,this.b=n,this.a=i}}u.prototype.declaredClass="esri.Color"},52106(e,t,n){n.d(t,{A:()=>_});var i,r,s=n(5482),o=n(37838),l=n(69540),a=n(51447),u=n(25482),c=n(53966),h=n(36708),p=n(24326),d=n(91429),f=n(12195),g=n(65864),m=n(50498),y=n(55156),b=n(60950),M=n(54339),v=n(94128),w=n(33910);function I(e){if(null==e)return null;const t={};for(const n in e){const i=e[n];i&&(t[n]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let _=class extends((0,l.OU)(u.o)){static{i=v.Z}static{r=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.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 popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new r({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,y.I)(this.origin);if(e)return(0,M.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,M.r)(this,t):null}getGlobalId(){const e=(0,y.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:I(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,f.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(r.action=i),"attributes"===e&&(r.attributeName=i),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,s.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const i=(0,g.rS)(e[n]);i&&(t[n]=i)}return 0!==Object.keys(t).length?t:null}}})],_.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,d.MZ)({value:null})],_.prototype,"attributes",null),(0,s.Cg)([(0,d.MZ)({value:null,types:m.yR,json:{read:g.rS}})],_.prototype,"geometry",null),(0,s.Cg)([(0,d.MZ)()],_.prototype,"distance",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],_.prototype,"isAggregate",void 0),(0,s.Cg)([(0,d.MZ)({clonable:!1})],_.prototype,"layer",void 0),(0,s.Cg)([(0,d.MZ)({clonable:"reference"})],_.prototype,"origin",void 0),(0,s.Cg)([(0,d.MZ)({type:o.A,value:null})],_.prototype,"popupTemplate",null),(0,s.Cg)([(0,d.MZ)({clonable:"reference"})],_.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,d.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],_.prototype,"statisticsAggregatedIds",void 0),(0,s.Cg)([(0,d.MZ)({value:null,types:w.Es})],_.prototype,"symbol",null),(0,s.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],_.prototype,"_version",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,value:!0})],_.prototype,"visible",null),_=r=(0,s.Cg)([(0,d.$K)("esri.Graphic")],_)},40876(e,t,n){n.d(t,{Eq:()=>d,G1:()=>g,TS:()=>s,Tf:()=>b,V6:()=>r,Vm:()=>f,ay:()=>a,c1:()=>m,c4:()=>o,iw:()=>M,j5:()=>u,lT:()=>h,oW:()=>c,xV:()=>v});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function r(e){return!!i[e]||!!i[e.toLowerCase()]}function s(e){return i[e]??i[e.toLowerCase()]}function o(e){return[...s(e)]}function l(e,t,n){n<0&&++n,n>1&&--n;const i=6*n;return i<1?e+(t-e)*i:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function a(e,t,n,i=1){const r=(e%360+360)%360/360,s=n<=.5?n*(t+1):n+t-n*t,o=2*n-s;return[Math.round(255*l(o,s,r+1/3)),Math.round(255*l(o,s,r)),Math.round(255*l(o,s,r-1/3)),i]}function u(e){const t=e.length>5,n=t?8:4,i=(1<<n)-1,r=t?1:17,s=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const l=[0,0,0,1];let a;return s&&(a=o&i,o>>=n,l[3]=r*a/255),a=o&i,o>>=n,l[2]=r*a,a=o&i,o>>=n,l[1]=r*a,a=o&i,o>>=n,l[0]=r*a,l}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),r=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,i+16*i,(r+16*r)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function h(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),p(t)}return p(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return a(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function p(e){return e[0]=m(e[0]),e[1]=m(e[1]),e[2]=m(e[2]),e[3]=4===e.length?g(e[3]):1,e}function d(e){let t=r(e)?s(e):null;return t??=h(e),t??=c(e),t}function f(e){const t=d(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function g(e){return y(e,0,1)}function m(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const b=2.2,M=1/b;function v(e){return e**M}},66344(e,t,n){n.d(t,{q:()=>l});const i=!!(0,n(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){const n=this._db.get(e.id+t);return n?.size??0}put(e,t,n,r,o){t=e.id+t;const l=this._db.get(t);if(l&&(this._size-=l.size,e.size-=l.size,this._db.delete(t),l.entry!==n&&this._notifyRemove(t,l.entry,l.size,0)),r>this._maxSize)return void this._notifyRemove(t,n,r,0);if(void 0===n)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return i||console.warn(`Refusing to cache entry with size ${r} for key ${t}`),void this._notifyRemove(t,n,0,0);const a=1+Math.max(o,-4)- -3;this._db.set(t,new s(n,r,a)),this._size+=r,e.size+=r,this._checkSize()}updateSize(e,t){t=e.id+t;const n=this._db.get(t);if(!n)return;this._size-=n.size,e.size-=n.size;let i=n.entry.usedMemory;for(;i>this._maxSize;){const e=this._notifyRemove(t,n.entry,i,1);if(!(null!=e&&e>0))return void this._db.delete(t);i=e}n.size=i,this._size+=i,e.size+=i,this._checkSize()}pop(e,t){t=e.id+t;const n=this._db.get(t);if(n)return this._size-=n.size,e.size-=n.size,this._db.delete(t),++this._hit,n.entry;++this._miss}get(e,t){t=e.id+t;const n=this._db.get(t);if(void 0!==n)return this._db.delete(t),n.lives=n.lifetime,this._db.set(t,n),++this._hit,n.entry;++this._miss}peek(e,t){const n=this._db.get(e.id+t);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},n=new Array;this._db.forEach((e,i)=>{const r=e.lifetime;n[r]=(n[r]||0)+e.size,this._clients.forEach(n=>{const{id:r,name:s}=n;if(i.startsWith(r)){const n=t[s]||0;t[s]=n+e.size}})});const i={};this._clients.forEach(e=>{const n=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const r=t[n]||0;t[n]=r,i[n]=Math.round(100*e.hitRate)+"%"}else i[n]="0%"});const r=Object.keys(t);r.sort((e,n)=>t[n]-t[e]),r.forEach(n=>e[n]=Math.round(t[n]/2**20)+"MB / "+i[n]);for(let t=n.length-1;t>=0;--t){const i=n[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,n)=>{n.startsWith(t)&&(this._size-=e.size,this._db.delete(n),this._notifyRemove(n,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,n]of this._db)t.startsWith(e.id)&&(yield n.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,n,i){const r=this._clients.get(e.split(o)[0])?.removeFunc,s=r?.(t,i,n);return"number"==typeof s?s:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const n=t??this;if(n.size<=e)return;const i=t?.id;let r=!0;for(;r;){r=!1;for(const[s,l]of this._db)if(0===l.lifetime&&(!i||s.startsWith(i))){const i=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,l,i),n.size<=.9*e)return;r||=this._db.has(s)}}for(const[r,s]of this._db)if(!i||r.startsWith(i)){const i=t??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,s,i),n.size<=.9*e)return}}_purgeItem(e,t,n){if(this._db.delete(e),t.lives<=1){this._size-=t.size,n&&(n.size-=t.size);const i=this._notifyRemove(e,t.entry,t.size,1);null!=i&&i>0&&(this._size+=i,n&&(n.size+=i),t.lives=t.lifetime,t.size=i,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new r(0);class s{constructor(e,t,n){this.entry=e,this.size=t,this.lifetime=n,this.lives=n}}const o=":";class l{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new r(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,n=1){this._storage.put(this,e,t,n,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},6797(e,t,n){n.d(t,{Ui:()=>p});var i=n(69622),r=n(7762),s=n(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function a(e){return e instanceof r.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof r.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function h(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const i=a(e),r=a(t);if(0===i.length&&0===r.length)return;if(!i.length||!r.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=r.filter(e=>!i.includes(e)),p=i.filter(e=>!r.includes(e)),d=i.filter(n=>r.includes(n)&&u(e,n)!==u(t,n)).concat(s,p).sort(),f=c(e);if(f&&o.has(f)&&d.length)return{type:"complete",oldValue:e,newValue:t};let g;const m=l(e)&&l(t);for(const i of d){const r=u(e,i),s=u(t,i);let o;if((m||"function"!=typeof r&&"function"!=typeof s)&&r!==s&&(null!=r||null!=s)){if(n&&n[i]&&"function"==typeof n[i])o=n[i]?.(r,s);else if(r instanceof Date&&s instanceof Date){if(r.getTime()===s.getTime())continue;o={type:"complete",oldValue:r,newValue:s}}else o="object"==typeof r&&"object"==typeof s&&c(r)===c(s)?h(r,s):{type:"complete",oldValue:r,newValue:s};null!=o&&(null!=g?g.diff[i]=o:g={type:"partial",diff:{[i]:o}})}}return g}function p(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:h(e,t)}},9093(e,t,n){function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>r,vt:()=>i,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:i,fromValues:function(e,t,n,i,r,s,o,l,a,u,c,h,p,d,f,g){return[e,t,n,i,r,s,o,l,a,u,c,h,p,d,f,g]}},Symbol.toStringTag,{value:"Module"}))},35522(e,t,n){n.d(t,{$A:()=>x,Bw:()=>s,C:()=>o,Cc:()=>A,DI:()=>I,Il:()=>G,Io:()=>b,Ln:()=>y,Om:()=>S,Qr:()=>h,Re:()=>u,S8:()=>_,T9:()=>g,WQ:()=>a,Z0:()=>T,_S:()=>d,aI:()=>L,ei:()=>C,fw:()=>E,g7:()=>R,gL:()=>z,hG:()=>M,hZ:()=>l,hs:()=>m,jb:()=>N,jk:()=>f,lo:()=>q,lw:()=>c,m3:()=>v,oW:()=>k,t2:()=>O,tn:()=>p,uE:()=>$,xg:()=>D,ze:()=>w});var i=n(51850),r=n(34304);function s(e){const t=e[0],n=e[1],i=e[2];return Math.sqrt(t*t+n*n+i*i)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function l(e,t,n,i){return e[0]=t,e[1]=n,e[2]=i,e}function a(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function h(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function p(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function d(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function f(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function g(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function m(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e[2]=t[2]+n[2]*i,e}function b(e,t){const n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(n*n+i*i+r*r)}function M(e,t){const n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2];return n*n+i*i+r*r}function v(e){const t=e[0],n=e[1],i=e[2];return t*t+n*n+i*i}function w(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function I(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function _(e,t){const n=t[0],i=t[1],r=t[2];let s=n*n+i*i+r*r;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function S(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function x(e,t,n){const i=t[0],r=t[1],s=t[2],o=n[0],l=n[1],a=n[2];return e[0]=r*a-s*l,e[1]=s*o-i*a,e[2]=i*l-r*o,e}function A(e,t,n,i){const r=t[0],s=t[1],o=t[2];return e[0]=r+i*(n[0]-r),e[1]=s+i*(n[1]-s),e[2]=o+i*(n[2]-o),e}function T(e,t,n){const i=t[0],r=t[1],s=t[2];return e[0]=n[0]*i+n[4]*r+n[8]*s+n[12],e[1]=n[1]*i+n[5]*r+n[9]*s+n[13],e[2]=n[2]*i+n[6]*r+n[10]*s+n[14],e}function C(e,t,n){const i=t[0],r=t[1],s=t[2];return e[0]=i*n[0]+r*n[3]+s*n[6],e[1]=i*n[1]+r*n[4]+s*n[7],e[2]=i*n[2]+r*n[5]+s*n[8],e}function z(e,t,n){return E(e,t,n[0],n[1],n[2],n[3])}function E(e,t,n,i,r,s){const o=t[0],l=t[1],a=t[2],u=i*a-r*l,c=r*o-n*a,h=n*l-i*o,p=i*h-r*c,d=r*u-n*h,f=n*c-i*u,g=2*s;return e[0]=o+u*g+2*p,e[1]=l+c*g+2*d,e[2]=a+h*g+2*f,e}function R(e,t){_(j,e),_(F,t);const n=S(j,F);return n>1?0:n<-1?Math.PI:Math.acos(n)}const j=(0,i.vt)(),F=(0,i.vt)();function O(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function L(e,t){if(e===t)return!0;const n=e[0],i=e[1],s=e[2],o=t[0],l=t[1],a=t[2],u=(0,r.FD)();return Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-l)<=u*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(s-a)<=u*Math.max(1,Math.abs(s),Math.abs(a))}function k(e,t,n){const i=n[0]-t[0],r=n[1]-t[1],s=n[2]-t[2];let o=i*i+r*r+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=i*o,e[1]=r*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const N=u,Z=c,P=h,D=b,q=M,G=s,$=v;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:a,angle:R,bezier:function(e,t,n,i,r,s){const o=1-s,l=o*o,a=s*s,u=l*o,c=3*s*l,h=3*a*o,p=a*s;return e[0]=t[0]*u+n[0]*c+i[0]*h+r[0]*p,e[1]=t[1]*u+n[1]*c+i[1]*h+r[1]*p,e[2]=t[2]*u+n[2]*c+i[2]*h+r[2]*p,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:o,cross:x,crossAndNormalize:function(e,t,n){const i=t[0],r=t[1],s=t[2],o=n[0],l=n[1],a=n[2],u=r*a-s*l,c=s*o-i*a,h=i*l-r*o,p=Math.sqrt(u*u+c*c+h*h);return e[0]=u/p,e[1]=c/p,e[2]=h/p,e},direction:k,dist:D,distance:b,div:P,divide:h,dot:S,equals:L,exactEquals:O,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,i,r,s){const o=s*s,l=o*(2*s-3)+1,a=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*l+n[0]*a+i[0]*u+r[0]*c,e[1]=t[1]*l+n[1]*a+i[1]*u+r[1]*c,e[2]=t[2]*l+n[2]*a+i[2]*u+r[2]*c,e},inverse:I,len:G,length:s,lerp:A,max:g,min:f,mul:Z,multiply:c,negate:w,normalize:_,random:function(e,t=1){const n=r.Ov,i=2*n()*Math.PI,s=2*n()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(i)*o,e[1]=Math.sin(i)*o,e[2]=s*t,e},rotateX:function(e,t,n,i){const r=[],s=[];return r[0]=t[0]-n[0],r[1]=t[1]-n[1],r[2]=t[2]-n[2],s[0]=r[0],s[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),s[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateY:function(e,t,n,i){const r=[],s=[];return r[0]=t[0]-n[0],r[1]=t[1]-n[1],r[2]=t[2]-n[2],s[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),s[1]=r[1],s[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateZ:function(e,t,n,i){const r=[],s=[];return r[0]=t[0]-n[0],r[1]=t[1]-n[1],r[2]=t[2]-n[2],s[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),s[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),s[2]=r[2],e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:m,scaleAndAdd:y,set:l,sign:d,sqrDist:q,sqrLen:$,squaredDistance:M,squaredLength:v,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:N,subtract:u,transformMat3:C,transformMat4:T,transformQuat:z,transformQuatValues:E},Symbol.toStringTag,{value:"Module"}))},90629(e,t,n){n.d(t,{Lz:()=>r,PN:()=>s,cr:()=>o,gs:()=>a,r_:()=>u,tc:()=>l}),n(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function r(e){return e?e/72*96:0}function s(e){return e?72*e/96:0}function o(e){if("string"==typeof e){const t=e.match(i);if(t){const n=Number(t[1]),i=t[3]&&t[3].toLowerCase(),r=e.startsWith("-"),o="px"===i?s(n):n;return r?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function l(e=0,t=0){return{x:e,y:t}}function a(e=0,t=0){return[e,t]}function u(e=0,t=0,n=0){return[e,t,n]}},13069(e,t,n){n.d(t,{AG:()=>l,lk:()=>r,vD:()=>o,yS:()=>s});const i="randomUUID"in crypto;function r(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${r().toUpperCase()}}`}function o(){return`{${r()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},159(e,t,n){n.d(t,{A:()=>u});var i,r=n(5482),s=n(69540),o=n(25482),l=n(91429),a=n(99157);let u=i=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,r.Cg)([(0,l.MZ)({type:[a.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=i=(0,r.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,n){n.d(t,{A:()=>a});var i,r=n(5482),s=n(69540),o=n(25482),l=n(91429);let a=i=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,r.Cg)([(0,l.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,n)=>{t[n]=!e}}})],a.prototype,"isInverse",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkt",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkid",void 0),a=i=(0,r.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)},9762(e,t,n){n.r(t),n.d(t,{projectBuffer:()=>r});var i=n(49208);function r(e,t,n,r,s,o,l=Math.floor(e.length/3)){const a=(0,i.jd)(t,s);if(null==a)return!1;if(a===i.pO){if(e===r&&n===o)return!0;const t=n+3*l;for(let i=n,s=o;i<t;i++,s++)r[s]=e[i]??0;return!0}const u=n+3*l;for(let t=n,i=o;t<u;t+=3,i+=3)a(e,t,r,i);return!0}},49208(e,t,n){n.d(t,{Tp:()=>h,jd:()=>c,pO:()=>d,w5:()=>u});var i=n(34727),r=n(86211),s=n(73941),o=n(79258),l=n(34403),a=n(21325);const u={2:{5:d,7:null,9:null,10:d,1:w,6:null,8:null,0:null,3:g,11:m,2:d,4:A},5:{5:d,7:null,9:null,10:d,1:w,6:null,8:null,0:null,3:g,11:m,2:d,4:A},7:{5:null,7:d,9:null,10:d,1:null,6:v,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:M,0:null,3:null,11:null,2:null,4:null},3:{5:f,7:null,9:null,10:f,1:function(e,t,n,i){const r=e[t]/j,s=R-2*Math.atan(Math.exp(-e[t+1]/j)),o=j+(e[t+2]??0),l=Math.cos(s)*o;n[i]=Math.cos(r)*l,n[i+1]=Math.sin(r)*l,n[i+2]=Math.sin(s)*o},6:null,8:null,0:null,3:d,11:function(e,t,n,i){f(e,t,n,i),m(n,i,n,i)},2:f,4:function(e,t,n,i){f(e,t,n,i),A(n,i,n,i)}},4:{5:T,7:null,9:null,10:T,1:function(e,t,n,i){T(e,t,n,i),w(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){T(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){T(e,t,n,i),m(n,i,n,i)},2:T,4:d},1:{5:x,7:null,9:null,10:x,1:d,6:null,8:null,0:null,3:function(e,t,n,i){x(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){x(e,t,n,i),m(n,i,n,i)},2:x,4:function(e,t,n,i){x(e,t,n,i),A(n,i,n,i)}},6:{5:null,7:S,9:null,10:S,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:_,10:_,1:null,6:null,8:d,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:w,6:v,8:M,0:null,3:g,11:m,2:d,4:A},11:{5:y,7:null,9:null,10:y,1:function(e,t,n,i){y(e,t,n,i),w(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){y(e,t,n,i),g(n,i,n,i)},11:d,2:y,4:function(e,t,n,i){y(e,t,n,i),A(n,i,n,i)}}};function c(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(C.source.spatialReference===e&&C.dest.spatialReference===t)return C;const n=p(e,C.source),i=p(t,C.dest);return 0===n&&0===i?(0,a.aI)(e,t)?C.projector=d:C.projector=null:C.projector=u[n][i],C}function p(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,a.oT)(e)?t.spatialReferenceId=2:(0,a.K8)(e)?t.spatialReferenceId=3:(0,a.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,s.q8)(e)?t.spatialReferenceId=7:(0,s.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function d(e,t,n,i){e!==n&&(n[i++]=e[t++],n[i++]=e[t++],n[i]=e[t]??0)}function f(e,t,n,i){n[i]=E*(e[t]/j),n[i+1]=E*(R-2*Math.atan(Math.exp(-e[t+1]/j))),n[i+2]=e[t+2]??0}function g(e,t,n,r){!function(e,t,n,r,s){const o=.4999999*Math.PI,l=(0,i.qE)(z*e[t+1],-o,o),a=Math.sin(l);n[r++]=z*e[t]*s.radius,n[r++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[r]=e[t+2]??0}(e,t,n,r,o.$O)}function m(e,t,n,i){n[i]=e[t]*F,n[i+1]=e[t+1]*F,n[i+2]=e[t+2]??0}function y(e,t,n,i){n[i]=e[t]*O,n[i+1]=e[t+1]*O,n[i+2]=e[t+2]??0}function b(e,t,n,i,r){const s=r+(e[t+2]??0),o=z*e[t],l=z*e[t+1],a=Math.cos(l)*s;n[i]=Math.cos(o)*a,n[i+1]=Math.sin(o)*a,n[i+2]=Math.sin(l)*s}function M(e,t,n,i){b(e,t,n,i,o.Sw.radius)}function v(e,t,n,i){b(e,t,n,i,o.sH.radius)}function w(e,t,n,i){b(e,t,n,i,o.$O.radius)}function I(e,t,n,r,s){const o=e[t],l=e[t+1],a=e[t+2]??0,u=Math.sqrt(o*o+l*l+a*a),c=(0,i.YN)(a/(0===u?1:u)),h=Math.atan2(l,o);n[r++]=E*h,n[r++]=E*c,n[r]=u-s}function _(e,t,n,i){I(e,t,n,i,o.Sw.radius)}function S(e,t,n,i){I(e,t,n,i,o.sH.radius)}function x(e,t,n,i){I(e,t,n,i,o.$O.radius)}function A(e,t,n,i){!function(e,t,n,i,r){const s=z*e[t],o=z*e[t+1],l=e[t+2]??0,a=Math.sin(o),u=Math.cos(o),c=r.radius/Math.sqrt(1-r.eccentricitySquared*a*a);n[i++]=(c+l)*u*Math.cos(s),n[i++]=(c+l)*u*Math.sin(s),n[i++]=(c*(1-r.eccentricitySquared)+l)*a}(e,t,n,i,o.$O)}function T(e,t,n,i){const r=l.TP,s=e[t],a=e[t+1],u=e[t+2]??0;let c,h,p,d,f,g,m,y,b,M,v,w,I,_,S,x,A,T,C,z,R;c=Math.abs(u),h=s*s+a*a,p=Math.sqrt(h),d=h+u*u,f=Math.sqrt(d),z=Math.atan2(a,s),g=u*u/d,m=h/d,_=r.a2/f,S=r.a3-r.a4/f,m>.3?(y=c/f*(1+m*(r.a1+_+g*S)/f),C=Math.asin(y),M=y*y,b=Math.sqrt(1-M)):(b=p/f*(1-g*(r.a5-_-m*S)/f),C=Math.acos(b),M=1-b*b,y=Math.sqrt(M)),v=1-o.$O.eccentricitySquared*M,w=o.$O.radius/Math.sqrt(v),I=r.a6*w,_=p-w*b,S=c-I*y,A=b*_+y*S,x=b*S-y*_,T=x/(I/v+A),C+=T,R=A+x*T/2,u<0&&(C=-C),n[i++]=E*z,n[i++]=E*C,n[i]=R}const C={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},z=(0,i.kU)(1),E=(0,i.KJ)(1),R=.5*Math.PI,j=o.$O.radius,F=j*Math.PI/180,O=180/(j*Math.PI)},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>K,initializeProjection:()=>B,isEqualBaseGCS:()=>Y,isLoaded:()=>j,isLoadedOrLoad:()=>F,isLoadedOrLoadFor:()=>O,load:()=>k,project:()=>N,projectAsync:()=>V,projectExtent:()=>re,projectMany:()=>Z,projectMultipoint:()=>X,projectOrLoad:()=>D,projectOrLoadMany:()=>q,projectPoint:()=>H,projectPolygon:()=>ne,projectPolyline:()=>ee,projectWithoutEngine:()=>J,requiresLoad:()=>L,test:()=>U,tryProject:()=>P,unload:()=>$});var i=n(49186),r=n(17676),s=n(62788),o=n(95488),l=n(51850),a=n(21276),u=n(73941),c=n(5443),h=n(91075),p=n(48526),d=n(86738),f=n(39829),g=n(82799),m=n(16930),y=n(98764),b=n(159),M=n(9762),v=n(49208);function w(e,t,n,i,r,s){return I[0]=e,I[1]=t,I[2]=n,(0,M.projectBuffer)(I,i,0,r,s,0)}const I=(0,l.vt)();var _=n(60408),S=n(21325),x=n(52006);let A=null,T=null,C=null,z=null,E={};const R=new o.I;function j(){return!!(T?.isLoaded()&&C?.isLoaded()&&z?.isLoaded())}function F(){return!!j()||((0,s.gc)(R),k(),!1)}function O(e,t){return!e||!t||K(e,t)||F()}function L(e,t){return!K(e,t)&&!j()}async function k(e){null==A&&(A=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(T=e,T.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(C=e,C.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(z=e,z.load()))])),await A,(0,r.Te)(e),R.notify()}function N(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),Z(e,e[0].spatialReference,t,n)):((0,a.f)(e),Z([e],e.spatialReference,t,n)[0])}function Z(e,t,n,i){if(null==t||null==n)return e;if(K(t,n,i))return e.map(e=>J(e,t,n));if(null==i?.geographicTransformation&&(0,u.jA)(t))return Z(e.map(e=>J(e,t,m.A.WGS84)),m.A.WGS84,n,{zConversionDisabled:i?.zConversionDisabled});if(null==i?.geographicTransformation&&(0,u.jA)(n))return Z(e,t,m.A.WGS84).map(e=>J(e,m.A.WGS84,n));if(!j())throw new G;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:z.getTransformation(t,n,i.areaOfInterestExtent)||new b.A};else if(!i?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let r=E[e];r||(r=z.getTransformation(t,n)||new b.A,E[e]=r),i={geographicTransformation:r,zConversionDisabled:i?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof h.A?T.executeMany(e,n,i):C.executeMany(e,n,i)}function P(e,t,n){try{return N(e,t,n)}catch(e){return null}}function D(e,t){const n=q([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function q(e,t,n){if(!j())for(const n of e)if(null!=n&&!(0,S.aI)(n.spatialReference,t)&&(0,S.fn)(n.spatialReference)&&(0,S.fn)(t)&&!K(n.spatialReference,t))return(0,s.gc)(R),{pending:k(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,S.aI)(e.spatialReference,t)?e:(0,S.fn)(e.spatialReference)&&(0,S.fn)(t)?N(e,t,n):null)}}class G extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function $(){A=null,T=null,C=null,z=null,E={}}const U={get loadPromise(){return A}};async function V(e,t,n){if((0,r.Te)(n),!e)return e;const i=q(Array.isArray(e)?e:[e],t,n);if(i.pending)return await i.pending,(0,r.Te)(n),V(e,t,n);const s=i.geometries??[];return Array.isArray(e)?s:s[0]}function K(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,S.aI)(e,t)||(0,S.fn)(e)&&(0,S.fn)(t)&&!!(0,v.jd)(e,t))}function Y(e,t){if((0,S.aI)(e,t))return!0;if(!(0,S.fn)(e)||!(0,S.fn)(t))return!1;const n=(0,S.oT)(e)||(0,S.K8)(e)||(0,S.x1)(e),i=(0,S.oT)(t)||(0,S.K8)(t)||(0,S.x1)(t);return n&&i}async function B(e,t,n,i){if(j())return(0,r.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:n,options:r}of e)if(t&&n&&!K(t,n,r))return k(i)}else if(e&&t&&!K(e,t,n))return k(i);return(0,r.NO)(i)}function J(e,t,n){return e?(0,_.fT)(e)?W(e,t,new d.A,n,0):(0,_.ZC)(e)?se(e,t,new c.A,n,0):(0,_.Bi)(e)?ie(e,t,new f.A,n,0):(0,_.Rg)(e)?te(e,t,new g.A,n,0):(0,_.U9)(e)?Q(e,t,new p.A,n,0):null:null}function H(e,t,n=t.spatialReference,i=0){return null!=n&&null!=e.spatialReference&&null!=W(e,e.spatialReference,t,n,i)}function W(e,t,n,i,r){ue[0]=e.x,ue[1]=e.y;const s=e.z;return ue[2]=void 0!==s?s:r,(0,M.projectBuffer)(ue,t,0,ue,i,0)?(n.x=ue[0],n.y=ue[1],n.spatialReference=i,void 0!==s||(0,u.xP)(i)?(n.z=ue[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function X(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=Q(e,e.spatialReference,t,n,i)}function Q(e,t,n,i,r){const{points:s,hasZ:o,hasM:l}=e,a=[],u=s.length,c=[];for(const e of s)c.push(e[0],e[1],o?e[2]:r);if(!(0,M.projectBuffer)(c,t,0,c,i,0,u))return null;const h=ae(o,i);for(let e=0;e<u;++e){const t=3*e,n=c[t],i=c[t+1];h&&l?a.push([n,i,c[t+2],s[e][3]]):h?a.push([n,i,c[t+2]]):l?a.push([n,i,s[e][2]]):a.push([n,i])}return n.points=a,n.spatialReference=i,n.hasZ=o,n.hasM=l,n}function ee(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,i)}function te(e,t,n,i,r){const{curvePaths:s,paths:o,hasZ:l,hasM:a}=e;if(!(s?le(s,l??!1,a??!1,t,n.curvePaths=[],i,r):oe(o,l??!1,a??!1,t,n.paths,i,r)))return null;const u=ae(l,i);return n.spatialReference=i,n.hasZ=u,n.hasM=a,n}function ne(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,i)}function ie(e,t,n,i,r){const{curveRings:s,rings:o,hasZ:l,hasM:a}=e;return(s?le(s,l??!1,a??!1,t,n.curveRings=[],i,r):oe(o,l??!1,a??!1,t,n.rings,i,r))?(n.spatialReference=i,n.hasZ=ae(l,i),n.hasM=a,n):null}function re(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=se(e,e.spatialReference,t,n,i)}function se(e,t,n,i,r){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:u,hasM:c}=e;if(!w(s,o,u?e.zmin:r,t,ue,i))return null;const h=ae(u,i);return n.xmin=ue[0],n.ymin=ue[1],h&&(n.zmin=ue[2]),w(l,a,u?e.zmax:r,t,ue,i)?(n.xmax=ue[0],n.ymax=ue[1],h&&(n.zmax=ue[2]),c&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=i,n):null}function oe(e,t,n,i,r,s,o=0){const l=new Array;for(const n of e)for(const e of n)l.push(e[0],e[1],t?e[2]:o);if(!(0,M.projectBuffer)(l,i,0,l,s,0))return!1;let a=0;r.length=0;const u=t?3:2,c=ae(t,s);for(const t of e){const e=new Array;for(const i of t){const t=l.slice(a,a+=3);c||t.pop(),n&&t.push(i[u]),e.push(t)}r.push(e)}return!0}function le(e,t,n,i,r,s,o=0){const l=new Array;for(const n of e)for(const e of n){if((0,x.FG)(e))return!1;if((0,x.aO)(e)){const[n,i]=e.c;l.push(n[0],n[1],t?n[2]:o,i[0],i[1],o);continue}if((0,x.n1)(e)){const[n,i,r]=e.b;l.push(n[0],n[1],t?n[2]:o,i[0],i[1],o,r[0],r[1],o);continue}const n=e;l.push(n[0],n[1],t?n[2]:o)}if(!(0,M.projectBuffer)(l,i,0,l,s,0))return!1;let a=0;r.length=0;const u=t?3:2,c=ae(t,s);for(const t of e){const e=new Array;for(const i of t){const t=l.slice(a,a+=3);if(c||t.pop(),n&&t.push((0,x.yP)(i)[u]),(0,x.FG)(i))return!1;if((0,x.aO)(i)){const n=l[a++],i=l[a++];++a,e.push({c:[t,[n,i]]});continue}if((0,x.n1)(i)){const n=l[a++],i=l[a++];++a;const r=l[a++],s=l[a++];++a,e.push({b:[t,[n,i],[r,s]]});continue}e.push(t)}r.push(e)}return!0}function ae(e,t){return e||(0,u.xP)(t)||(0,S.aI)(t,y.Y0)}const ue=(0,l.vt)()},98764(e,t,n){n.d(t,{GD:()=>o,Y0:()=>u,lO:()=>c});var i=n(73941),r=n(16930),s=n(21325);const o=new r.A(i.fv),l=new r.A(i.FY),a=new r.A(i.LJ),u=new r.A(i.Ro);function c(e){const t=h.get(e);if(t)return t;let n=o;if(e)if(e===l)n=l;else if(e===a)n=a;else{const t=e.wkid,i=e.latestWkid;if(null!=t||null!=i)(0,s.tl)(t)||(0,s.tl)(i)?n=l:((0,s.ZL)(t)||(0,s.ZL)(i))&&(n=a);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===p?n=l:e===d&&(n=a)}}}return h.set(e,n),n}const h=new Map,p=l.wkt.toUpperCase(),d=a.wkt.toUpperCase()},4197(e,t,n){n.d(t,{Vj:()=>c,cj:()=>u,jh:()=>s,l5:()=>l,yH:()=>a});var i=n(34275),r=n(9093);function s(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function l(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e,t){if(0===t.length)return o(e);if(0===e.length)return o(t);const n=s(e.length+t.length);for(let t=0;t<e.length;++t)n[t]=e[t];for(let i=0;i<t.length;++i)n[e.length+i]=t[i];return n}function u(e){return[...e]}function c(e){const t=(0,r.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},70328(e,t,n){n.d(t,{BI:()=>M,DC:()=>h,Ej:()=>d,Ie:()=>y,Jt:()=>b,Ne:()=>f,RF:()=>c,aI:()=>w,fA:()=>o,gE:()=>a,hZ:()=>m,iT:()=>p,is:()=>v,qv:()=>I,vI:()=>g,vY:()=>l,v_:()=>_,vt:()=>s,w1:()=>u}),n(35522);var i=n(5443),r=(n(19419),n(4197));function s(e=_){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,n,i,r,o,l=s()){return l[0]=e,l[1]=t,l[2]=n,l[3]=i,l[4]=r,l[5]=o,l}function l(e,t=s()){return function(e,t,n,i=s()){return m(i,I),function(e,t,n=0,i=t.length/3){let r=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<i;e++)r=Math.min(r,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),l=Math.max(l,t[n+3*e]),a=Math.max(a,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(i,e,t,n),i}(e,0,e.length/3,t)}function a(e,t=(0,r.jh)(24)){const[n,i,s,o,l,a]=e;return t[0]=n,t[1]=i,t[2]=s,t[3]=n,t[4]=i,t[5]=a,t[6]=n,t[7]=l,t[8]=s,t[9]=n,t[10]=l,t[11]=a,t[12]=o,t[13]=i,t[14]=s,t[15]=o,t[16]=i,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new i.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function h(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function d(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function f(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function g(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function y(e){return e?m(e,I):s(I)}function b(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function M(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function v(e){return 6===e.length}function w(e,t,n){if(null==e||null==t)return e===t;if(!v(e)||!v(t))return!1;if(n){for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const I=[1/0,1/0,1/0,-1/0,-1/0,-1/0],_=[0,0,0,0,0,0];s()},34403(e,t,n){n.d(t,{TP:()=>o});var i=n(79258);Math.PI;const r=i.$O.radius,s=i.$O.eccentricitySquared,o={a1:r*s,a2:r*s*r*s,a3:r*s*s/2,a4:r*s*r*s*2.5,a5:r*s+r*s*s/2,a6:1-s};i.$O.radius,i.$O.flattening,i.Sw.radius,i.Sw.flattening,i.sH.radius,i.sH.flattening,i.sH.radius},50498(e,t,n){n.d(t,{Ye:()=>h,gy:()=>c,iI:()=>d,yR:()=>p});var i=n(66552),r=n(5443),s=n(91075),o=n(48526),l=n(86738),a=n(39829),u=n(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}},d=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},55156(e,t,n){n.d(t,{I:()=>r,e:()=>i});const i=Symbol("idFieldsProviderSymbol");function r(e){return(t=e)&&i in t?e[i]:void 0;var t}},25077(e,t,n){n.r(t),n.d(t,{default:()=>U});var i=n(5482),r=n(37838),s=n(11254),o=n(69540),l=n(49186),a=n(36563),u=n(25728),c=n(17676),h=n(84952),p=n(91429),d=n(16930),f=n(55156),g=n(60950),m=n(89808),y=n(99959);const b=Symbol("isDimensionFeatureGraphicOrigin");var M;class v extends y.A{get[(M=b,g.ym)](){return this.layer}get[f.e](){return this.layer}get[m.Q](){return this.layer}constructor(e){super(),this[M]=!0,this.type="dimension-feature",this.layer=e}get id(){return this.layer.id}}var w=n(4146),I=n(52136),_=n(18768),S=n(63074),x=n(69208),A=n(10086),T=n(34287),C=n(8303),z=n(54310),E=n(25036),R=n(82935),j=n(60694),F=n(10873),O=n(15426),L=n(17036),k=n(30524),N=n(91908),Z=n(97552),P=n(30291),D=n(36005);const q="dimension-feature-layer",G=(0,L.p)();let $=class extends((0,A.j)((0,S.dM)((0,R.e)((0,E.j)((0,z.J)((0,_.b)((0,T.q)((0,C.A)((0,u.M)((0,x.d)((0,I.p)((0,o.OU)(w.A))))))))))))){constructor(e){super(e),this.barrierWeight="high",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new v(this),this.operationalLayerType="ArcGISDimensionLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.source=null,this.sublayerTitleMode="item-title",this.supportedSourceTypes=new Set(["Dimension Layer"]),this.symbolFields=["STYLEID","BEGINX","BEGINY","ENDX","ENDY","DIMDISPLAY","EXTDISPLAY","MARKERDISPLAY","DIMX","DIMY","TEXTX","TEXTY","DIMLENGTH","DIMTYPE","EXTANGLE","TEXTANGLE","USECUSTOMLENGTH","CUSTOMLENGTH "],this.type="dimension-feature",this._dataElementPromise=null}destroy(){this.source?.destroy()}load(e){const t=e?.signal,n=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(c.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url)throw new l.A(`${q}:missing-url`,"DimensionFeatureLayer must be created with a url");return this.initLayerProperties(await this.createGraphicsSource(t))}).then(()=>(0,O.VA)(this,"load",e));return this.addResolvingPromise(n),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readTitleFromService(e,t){const{url:n}=this,i=t.name||(0,j.qg)(n)?.title;switch(this.sublayerTitleMode){case"item-title":if(n)return(0,j.yG)(n,i);break;case"item-title-and-service-name":{let e=this.portalItem?.title;if(e&&e!==i)return e=(0,j.cr)(e),i?`${e} - ${(0,j.cr)(i)}`:e;break}}return i?(0,j.cr)(i):void 0}readTitleFromPortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}createPopupTemplate(e){return(0,P.tn)(this,e)}async createGraphicsSource(e){const t={stack:[],error:void 0,hasError:!1};try{const{default:r}=await(0,c.qr)(Promise.all([n.e(893),n.e(3636),n.e(3467)]).then(n.bind(n,65515)),e),s=new r({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,i.mS)(t,(0,a.Bf)((0,c.u7)(e,()=>s.cancelLoad())??(0,a.hA)()),!1),await s.load({signal:e}),s}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}createQuery(){const e=(0,O.VZ)(this);return e.where=this.definitionExpression||"1=1",e}async fetchDataElement(e){if(this._dataElementPromise)return this._dataElementPromise;if(!this.url)throw new Error("InternalError: A URL is required to retrieve the data element for this layer.");const t=(0,h.fj)(this.url,"queryDataElements"),n={f:"json",layers:this.layerId};return this._dataElementPromise=(0,s.A)(t,{...e,responseType:"json",query:n}).then(e=>{const t=e.data.layerDataElements,n=this.layerId,i=t.find(e=>e.layerId===n);if(!i)throw new l.A("fetchDataElement:not-available","A data element for this layer could not be retrieved.");return i.dataElement}),this._dataElementPromise}getFieldDomain(e,t){return(0,O.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryFeatures(e,t){const n=await this.load(),i=await n.source.queryFeatures(Z.A.from(e)??n.createQuery(),t),r=this.graphicOrigin;if(i?.features)for(const e of i.features)e.layer=e.sourceLayer=n,e.origin=r;return i}async queryObjectIds(e,t){const n=await this.load();return n.source.queryObjectIds(Z.A.from(e)??n.createQuery(),t)}async queryFeatureCount(e,t){const n=await this.load();return n.source.queryFeatureCount(Z.A.from(e)??n.createQuery(),t)}async queryExtent(e,t){const n=await this.load();return n.source.queryExtent(Z.A.from(e)??n.createQuery(),t)}serviceSupportsSpatialReference(e){return this.loaded&&(0,N.D)(this,e)}async initLayerProperties(e){this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),(0,k.sv)(this.timeInfo,this.fieldsIndex)}async hasDataChanged(){return(0,O.jp)(this)}_verifySource(){if(this.version&&this.version<10.8)throw new l.A(q+":unsupported-version","The feature service must be version 10.8 or above.");const e=["DIMLENGTH","BEGINX","BEGINY","ENDX","ENDY","DIMX","DIMY","TEXTX","TEXTY","DIMTYPE","EXTANGLE","STYLEID","USECUSTOMLENGTH","CUSTOMLENGTH","DIMDISPLAY","EXTDISPLAY","MARKERDISPLAY","TEXTANGLE"],t=e.filter(e=>!this.fieldsIndex.has(e));if(t.length)throw new l.A(q+":missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}_fetchFirstValidLayerId(e){return(0,s.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{const t=e.data;if(!t)return;this.applyPreferredHost(t);const n=[...t.layers||[],...t.tables||[]];return n.find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id})}};(0,i.Cg)([(0,p.MZ)({type:d.A,json:{origins:{service:{read:{source:"sourceSpatialReference"}}}}})],$.prototype,"attributeSpatialReference",void 0),(0,i.Cg)([(0,p.MZ)(F.es)],$.prototype,"barrierWeight",void 0),(0,i.Cg)([(0,p.MZ)({json:{write:!0}})],$.prototype,"editingEnabled",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],$.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)({...G.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],$.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)(G.fieldsIndex)],$.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0,clonable:!1})],$.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,p.MZ)(F.id)],$.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:["ArcGISDimensionLayer"]})],$.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,p.MZ)(G.outFields)],$.prototype,"outFields",void 0),(0,i.Cg)([(0,p.MZ)(F.M6)],$.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:r.A,json:{name:"popupInfo",write:!0}})],$.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],$.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,p.MZ)({clonable:!1,readOnly:!0})],$.prototype,"source",void 0),(0,i.Cg)([(0,p.MZ)({type:String})],$.prototype,"sublayerTitleMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],$.prototype,"symbolFields",void 0),(0,i.Cg)([(0,D.w)("service","title",["name"])],$.prototype,"readTitleFromService",null),(0,i.Cg)([(0,D.w)("portal-item","title")],$.prototype,"readTitleFromPortalItem",null),(0,i.Cg)([(0,p.MZ)({json:{read:!1},value:"dimension-feature",readOnly:!0})],$.prototype,"type",void 0),$=(0,i.Cg)([(0,p.$K)("esri.layers.DimensionFeatureLayer")],$);const U=$},54339(e,t,n){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const i of t.fieldNames)n.push(e.attributes[i]??null);return JSON.stringify(n)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>i,r:()=>r})},52136(e,t,n){n.d(t,{p:()=>s});var i=n(5482),r=n(91429);const s=e=>{const t=e;let n=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,r.MZ)({type:String})],n.prototype,"apiKey",null),n=(0,i.Cg)([(0,r.$K)("esri.layers.mixins.APIKeyMixin")],n),n}},82935(e,t,n){n.d(t,{B:()=>p,e:()=>d});var i=n(5482),r=n(91429),s=n(89317),o=n(30524),l=n(96184),a=n(73133),u=n(79677),c=n(10184),h=n(36005);const p={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}},d=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const n=t.timeInfo.exportOptions;if(!n)return null;const i=n.timeOffset,r=a.j.fromJSON(n.timeOffsetUnits);return i&&r?new c.A({value:i,unit:r}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,o.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,r.MZ)({type:u.A,json:{write:!1}})],n.prototype,"timeExtent",void 0),(0,i.Cg)([(0,r.MZ)({type:c.A})],n.prototype,"timeOffset",void 0),(0,i.Cg)([(0,h.w)("service","timeOffset",["timeInfo.exportOptions"])],n.prototype,"readOffset",null),(0,i.Cg)([(0,r.MZ)({value:null,type:l.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],n.prototype,"timeInfo",null),(0,i.Cg)([(0,r.MZ)(p)],n.prototype,"useViewTime",void 0),n=(0,i.Cg)([(0,r.$K)("esri.layers.mixins.TemporalLayer")],n),n}},28032(e,t,n){n.d(t,{A:()=>a});var i=n(5482),r=n(69540),s=n(25482),o=n(91429),l=n(56400);let a=class extends((0,r.OU)(s.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,o.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,o.MZ)((0,l.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,o.$K)("esri.layers.support.EditFieldsInfo")],a)},37352(e,t,n){n.d(t,{A:()=>a});var i,r=n(5482),s=n(7762),o=n(25482),l=n(91429);let a=i=class extends o.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new s.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,r.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],a)},45067(e,t,n){n.d(t,{A:()=>c});var i=n(5482),r=n(69540),s=n(66552),o=n(25482),l=n(91429);const a=new s.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new s.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let c=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],c.prototype,"cardinality",void 0),(0,i.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],c.prototype,"catalogId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"composite",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyField",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"role",void 0),c=(0,i.Cg)([(0,l.$K)("esri.layers.support.Relationship")],c)},96184(e,t,n){n.d(t,{A:()=>d});var i=n(5482),r=n(69540),s=n(25482),o=n(91429),l=n(79677),a=n(10184),u=n(56400),c=n(36005),h=n(43937);function p(e,t){return a.A.fromJSON({value:e,unit:t})}let d=class extends((0,r.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?l.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?p(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?p(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],d.prototype,"cumulative",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],d.prototype,"endField",void 0),(0,i.Cg)([(0,o.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],d.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,c.w)("fullTimeExtent",["timeExtent"])],d.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,h.K)("fullTimeExtent")],d.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,o.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],d.prototype,"interval",void 0),(0,i.Cg)([(0,c.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],d.prototype,"readInterval",null),(0,i.Cg)([(0,h.K)("interval")],d.prototype,"writeInterval",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],d.prototype,"startField",void 0),(0,i.Cg)([(0,o.MZ)((0,u.P6)("timeReference",!0))],d.prototype,"timeZone",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],d.prototype,"trackIdField",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],d.prototype,"useTime",void 0),(0,i.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],d.prototype,"stops",void 0),d=(0,i.Cg)([(0,o.$K)("esri.layers.support.TimeInfo")],d)},17036(e,t,n){n.d(t,{p:()=>a});var i=n(44208),r=n(53966),s=n(20437),o=n(95466),l=n(30524);function a(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");r.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const n=this.fieldsIndex?.has(t);n||r.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},32730(e,t,n){n.d(t,{BI:()=>d,D3:()=>h,XJ:()=>p,lc:()=>c,mX:()=>g,rU:()=>f,tH:()=>v,vK:()=>w,zA:()=>I});var i=n(799);const r="__begin__",s="__end__",o=new RegExp(r,"ig"),l=new RegExp(s,"ig"),a=new RegExp("^"+r,"i"),u=new RegExp(s+"$","i");function c(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function p(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=c(e.labelExpression),t.type="conventional"),t}function d(e){const t=p(e);if(!t)return null;switch(t.type){case"conventional":return g(t.expression);case"arcade":return t.expression}return null}function f(e){const t=p(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(m);return t?.[1].trim()||null}(t.expression);case"arcade":return v(t.expression)}return null}function g(e){let t;return e?(t=(0,i.HC)(e,e=>r+'$feature["'+e+'"]'+s),t=a.test(t)?t.replace(a,""):'"'+t,t=u.test(t)?t.replace(u,""):t+'"',t=t.replaceAll(o,'" + ').replaceAll(l,' + "')):t='""',t}const m=/^\s*\{([^}]+)\}\s*$/i,y=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,M=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function v(e){if(!e)return null;let t=y.exec(e)||b.exec(e);return t?t[1]||t[3]:(t=M.exec(e),t?t[2]:null)}const w=Symbol("LabelClassInstance");function I(e){return null!=e&&"object"==typeof e&&w in e}},5757(e,t,n){n.d(t,{B:()=>r,P:()=>i});const i=Symbol("PopupTemplateInstance");function r(e){return null!=e&&"object"==typeof e&&i in e}},98205(e,t,n){n.d(t,{KZ:()=>l,eh:()=>o,gf:()=>s,of:()=>r,uY:()=>i});const i=Symbol("SizeVariableInstance");function r(e){return null!=e&&"object"==typeof e&&i in e}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function l(e,t){const n=t||o(e),i=e.valueUnit||"unknown";return"unknown"===n?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}},41366(e,t,n){n.d(t,{K:()=>h,Q:()=>a});var i=n(5482),r=n(66552),s=n(53966),o=n(91429),l=n(93223);const a=(0,r.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",h=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,n=null!=this.normalizationTotal;return t||n?(e=t&&c||n&&u||null,t&&n&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],n.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],n.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],n.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],n.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.e)(a,{name:"parameters.normalizationType"})],n.prototype,"normalizationType",null),n=(0,i.Cg)([(0,o.$K)("esri.rest.support.NormalizationBinParametersMixin")],n),n}},93470(e,t,n){n.d(t,{Cb:()=>s,HW:()=>c,JR:()=>r,JZ:()=>a,WR:()=>l,b6:()=>h,fT:()=>i,nC:()=>u,yM:()=>o});const i=[252,146,31,255],r=[153,153,153,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},l={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},u={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},c={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},h={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4428,5077],{68197(e,t,n){n.d(t,{A:()=>u});var i=n(40876),r=n(4576),s=n(34727),o=n(56507);function l(e){return(0,s.qE)((0,o.Vr)(e),0,255)}function a(e,t){const n=e.toString(16).padStart(2,"0");return t?n.slice(0,1):n}class u{static blendColors(e,t,n,i=new u){return i.r=Math.round(e.r+(t.r-e.r)*n),i.g=Math.round(e.g+(t.g-e.g)*n),i.b=Math.round(e.b+(t.b-e.b)*n),i.a=e.a+(t.a-e.a)*n,i._sanitize()}static fromRgb(e,t){const n=(0,i.lT)(e);return n?u.fromArray(n,t):null}static fromHex(e,t=new u){const n=(0,i.oW)(e);return n?u.fromArray(n,t):null}static fromArray(e,t=new u){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const n=(0,i.Eq)(e);return n?u.fromArray(n,t):null}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)u.fromString(e,this);else if((0,r.yc)(e))u.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,n=e?.digits??6,i=3===n||4===n,r=4===n||8===n,s=`#${a(this.r,i)}${a(this.g,i)}${a(this.b,i)}${r?a(Math.round(255*this.a),i):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=l(this.r),n=l(this.g),i=l(this.b);return 0===e||1!==this.a?[t,n,i,l(255*this.a)]:[t,n,i]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(e,t,n,i){this.r=e,this.g=t,this.b=n,this.a=i}}u.prototype.declaredClass="esri.Color"},52106(e,t,n){n.d(t,{A:()=>S});var i,r,s=n(5482),o=n(37838),l=n(69540),a=n(51447),u=n(25482),c=n(53966),h=n(36708),p=n(24326),d=n(91429),f=n(12195),g=n(65864),m=n(50498),y=n(55156),b=n(60950),M=n(54339),v=n(94128),w=n(33910);function I(e){if(null==e)return null;const t={};for(const n in e){const i=e[n];i&&(t[n]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let S=class extends((0,l.OU)(u.o)){static{i=v.Z}static{r=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.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 popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new r({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,y.I)(this.origin);if(e)return(0,M.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,M.r)(this,t):null}getGlobalId(){const e=(0,y.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:I(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,f.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(r.action=i),"attributes"===e&&(r.attributeName=i),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,s.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const i=(0,g.rS)(e[n]);i&&(t[n]=i)}return 0!==Object.keys(t).length?t:null}}})],S.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,d.MZ)({value:null})],S.prototype,"attributes",null),(0,s.Cg)([(0,d.MZ)({value:null,types:m.yR,json:{read:g.rS}})],S.prototype,"geometry",null),(0,s.Cg)([(0,d.MZ)()],S.prototype,"distance",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],S.prototype,"isAggregate",void 0),(0,s.Cg)([(0,d.MZ)({clonable:!1})],S.prototype,"layer",void 0),(0,s.Cg)([(0,d.MZ)({clonable:"reference"})],S.prototype,"origin",void 0),(0,s.Cg)([(0,d.MZ)({type:o.A,value:null})],S.prototype,"popupTemplate",null),(0,s.Cg)([(0,d.MZ)({clonable:"reference"})],S.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,d.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],S.prototype,"statisticsAggregatedIds",void 0),(0,s.Cg)([(0,d.MZ)({value:null,types:w.Es})],S.prototype,"symbol",null),(0,s.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],S.prototype,"_version",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,value:!0})],S.prototype,"visible",null),S=r=(0,s.Cg)([(0,d.$K)("esri.Graphic")],S)},40876(e,t,n){n.d(t,{Eq:()=>d,G1:()=>g,TS:()=>s,Tf:()=>b,V6:()=>r,Vm:()=>f,ay:()=>a,c1:()=>m,c4:()=>o,iw:()=>M,j5:()=>u,lT:()=>h,oW:()=>c,xV:()=>v});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function r(e){return!!i[e]||!!i[e.toLowerCase()]}function s(e){return i[e]??i[e.toLowerCase()]}function o(e){return[...s(e)]}function l(e,t,n){n<0&&++n,n>1&&--n;const i=6*n;return i<1?e+(t-e)*i:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function a(e,t,n,i=1){const r=(e%360+360)%360/360,s=n<=.5?n*(t+1):n+t-n*t,o=2*n-s;return[Math.round(255*l(o,s,r+1/3)),Math.round(255*l(o,s,r)),Math.round(255*l(o,s,r-1/3)),i]}function u(e){const t=e.length>5,n=t?8:4,i=(1<<n)-1,r=t?1:17,s=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const l=[0,0,0,1];let a;return s&&(a=o&i,o>>=n,l[3]=r*a/255),a=o&i,o>>=n,l[2]=r*a,a=o&i,o>>=n,l[1]=r*a,a=o&i,o>>=n,l[0]=r*a,l}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),r=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,i+16*i,(r+16*r)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function h(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),p(t)}return p(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return a(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function p(e){return e[0]=m(e[0]),e[1]=m(e[1]),e[2]=m(e[2]),e[3]=4===e.length?g(e[3]):1,e}function d(e){let t=r(e)?s(e):null;return t??=h(e),t??=c(e),t}function f(e){const t=d(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function g(e){return y(e,0,1)}function m(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const b=2.2,M=1/b;function v(e){return e**M}},66344(e,t,n){n.d(t,{q:()=>l});const i=!!(0,n(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){const n=this._db.get(e.id+t);return n?.size??0}put(e,t,n,r,o){t=e.id+t;const l=this._db.get(t);if(l&&(this._size-=l.size,e.size-=l.size,this._db.delete(t),l.entry!==n&&this._notifyRemove(t,l.entry,l.size,0)),r>this._maxSize)return void this._notifyRemove(t,n,r,0);if(void 0===n)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return i||console.warn(`Refusing to cache entry with size ${r} for key ${t}`),void this._notifyRemove(t,n,0,0);const a=1+Math.max(o,-4)- -3;this._db.set(t,new s(n,r,a)),this._size+=r,e.size+=r,this._checkSize()}updateSize(e,t){t=e.id+t;const n=this._db.get(t);if(!n)return;this._size-=n.size,e.size-=n.size;let i=n.entry.usedMemory;for(;i>this._maxSize;){const e=this._notifyRemove(t,n.entry,i,1);if(!(null!=e&&e>0))return void this._db.delete(t);i=e}n.size=i,this._size+=i,e.size+=i,this._checkSize()}pop(e,t){t=e.id+t;const n=this._db.get(t);if(n)return this._size-=n.size,e.size-=n.size,this._db.delete(t),++this._hit,n.entry;++this._miss}get(e,t){t=e.id+t;const n=this._db.get(t);if(void 0!==n)return this._db.delete(t),n.lives=n.lifetime,this._db.set(t,n),++this._hit,n.entry;++this._miss}peek(e,t){const n=this._db.get(e.id+t);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},n=new Array;this._db.forEach((e,i)=>{const r=e.lifetime;n[r]=(n[r]||0)+e.size,this._clients.forEach(n=>{const{id:r,name:s}=n;if(i.startsWith(r)){const n=t[s]||0;t[s]=n+e.size}})});const i={};this._clients.forEach(e=>{const n=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const r=t[n]||0;t[n]=r,i[n]=Math.round(100*e.hitRate)+"%"}else i[n]="0%"});const r=Object.keys(t);r.sort((e,n)=>t[n]-t[e]),r.forEach(n=>e[n]=Math.round(t[n]/2**20)+"MB / "+i[n]);for(let t=n.length-1;t>=0;--t){const i=n[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,n)=>{n.startsWith(t)&&(this._size-=e.size,this._db.delete(n),this._notifyRemove(n,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,n]of this._db)t.startsWith(e.id)&&(yield n.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,n,i){const r=this._clients.get(e.split(o)[0])?.removeFunc,s=r?.(t,i,n);return"number"==typeof s?s:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const n=t??this;if(n.size<=e)return;const i=t?.id;let r=!0;for(;r;){r=!1;for(const[s,l]of this._db)if(0===l.lifetime&&(!i||s.startsWith(i))){const i=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,l,i),n.size<=.9*e)return;r||=this._db.has(s)}}for(const[r,s]of this._db)if(!i||r.startsWith(i)){const i=t??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,s,i),n.size<=.9*e)return}}_purgeItem(e,t,n){if(this._db.delete(e),t.lives<=1){this._size-=t.size,n&&(n.size-=t.size);const i=this._notifyRemove(e,t.entry,t.size,1);null!=i&&i>0&&(this._size+=i,n&&(n.size+=i),t.lives=t.lifetime,t.size=i,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new r(0);class s{constructor(e,t,n){this.entry=e,this.size=t,this.lifetime=n,this.lives=n}}const o=":";class l{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new r(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,n=1){this._storage.put(this,e,t,n,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},6797(e,t,n){n.d(t,{Ui:()=>p});var i=n(69622),r=n(7762),s=n(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function a(e){return e instanceof r.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof r.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function h(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const i=a(e),r=a(t);if(0===i.length&&0===r.length)return;if(!i.length||!r.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=r.filter(e=>!i.includes(e)),p=i.filter(e=>!r.includes(e)),d=i.filter(n=>r.includes(n)&&u(e,n)!==u(t,n)).concat(s,p).sort(),f=c(e);if(f&&o.has(f)&&d.length)return{type:"complete",oldValue:e,newValue:t};let g;const m=l(e)&&l(t);for(const i of d){const r=u(e,i),s=u(t,i);let o;if((m||"function"!=typeof r&&"function"!=typeof s)&&r!==s&&(null!=r||null!=s)){if(n&&n[i]&&"function"==typeof n[i])o=n[i]?.(r,s);else if(r instanceof Date&&s instanceof Date){if(r.getTime()===s.getTime())continue;o={type:"complete",oldValue:r,newValue:s}}else o="object"==typeof r&&"object"==typeof s&&c(r)===c(s)?h(r,s):{type:"complete",oldValue:r,newValue:s};null!=o&&(null!=g?g.diff[i]=o:g={type:"partial",diff:{[i]:o}})}}return g}function p(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:h(e,t)}},9093(e,t,n){function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>r,vt:()=>i,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:i,fromValues:function(e,t,n,i,r,s,o,l,a,u,c,h,p,d,f,g){return[e,t,n,i,r,s,o,l,a,u,c,h,p,d,f,g]}},Symbol.toStringTag,{value:"Module"}))},35522(e,t,n){n.d(t,{$A:()=>_,Bw:()=>s,C:()=>o,Cc:()=>A,DI:()=>I,Il:()=>q,Io:()=>b,Ln:()=>y,Om:()=>x,Qr:()=>h,Re:()=>u,S8:()=>S,T9:()=>g,WQ:()=>a,Z0:()=>T,_S:()=>d,aI:()=>L,ei:()=>C,fw:()=>E,g7:()=>R,gL:()=>z,hG:()=>M,hZ:()=>l,hs:()=>m,jb:()=>N,jk:()=>f,lo:()=>G,lw:()=>c,m3:()=>v,oW:()=>k,t2:()=>O,tn:()=>p,uE:()=>$,xg:()=>D,ze:()=>w});var i=n(51850),r=n(34304);function s(e){const t=e[0],n=e[1],i=e[2];return Math.sqrt(t*t+n*n+i*i)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function l(e,t,n,i){return e[0]=t,e[1]=n,e[2]=i,e}function a(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function h(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function p(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function d(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function f(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function g(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function m(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e[2]=t[2]+n[2]*i,e}function b(e,t){const n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(n*n+i*i+r*r)}function M(e,t){const n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2];return n*n+i*i+r*r}function v(e){const t=e[0],n=e[1],i=e[2];return t*t+n*n+i*i}function w(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function I(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function S(e,t){const n=t[0],i=t[1],r=t[2];let s=n*n+i*i+r*r;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function x(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function _(e,t,n){const i=t[0],r=t[1],s=t[2],o=n[0],l=n[1],a=n[2];return e[0]=r*a-s*l,e[1]=s*o-i*a,e[2]=i*l-r*o,e}function A(e,t,n,i){const r=t[0],s=t[1],o=t[2];return e[0]=r+i*(n[0]-r),e[1]=s+i*(n[1]-s),e[2]=o+i*(n[2]-o),e}function T(e,t,n){const i=t[0],r=t[1],s=t[2];return e[0]=n[0]*i+n[4]*r+n[8]*s+n[12],e[1]=n[1]*i+n[5]*r+n[9]*s+n[13],e[2]=n[2]*i+n[6]*r+n[10]*s+n[14],e}function C(e,t,n){const i=t[0],r=t[1],s=t[2];return e[0]=i*n[0]+r*n[3]+s*n[6],e[1]=i*n[1]+r*n[4]+s*n[7],e[2]=i*n[2]+r*n[5]+s*n[8],e}function z(e,t,n){return E(e,t,n[0],n[1],n[2],n[3])}function E(e,t,n,i,r,s){const o=t[0],l=t[1],a=t[2],u=i*a-r*l,c=r*o-n*a,h=n*l-i*o,p=i*h-r*c,d=r*u-n*h,f=n*c-i*u,g=2*s;return e[0]=o+u*g+2*p,e[1]=l+c*g+2*d,e[2]=a+h*g+2*f,e}function R(e,t){S(j,e),S(F,t);const n=x(j,F);return n>1?0:n<-1?Math.PI:Math.acos(n)}const j=(0,i.vt)(),F=(0,i.vt)();function O(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function L(e,t){if(e===t)return!0;const n=e[0],i=e[1],s=e[2],o=t[0],l=t[1],a=t[2],u=(0,r.FD)();return Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-l)<=u*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(s-a)<=u*Math.max(1,Math.abs(s),Math.abs(a))}function k(e,t,n){const i=n[0]-t[0],r=n[1]-t[1],s=n[2]-t[2];let o=i*i+r*r+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=i*o,e[1]=r*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const N=u,Z=c,P=h,D=b,G=M,q=s,$=v;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:a,angle:R,bezier:function(e,t,n,i,r,s){const o=1-s,l=o*o,a=s*s,u=l*o,c=3*s*l,h=3*a*o,p=a*s;return e[0]=t[0]*u+n[0]*c+i[0]*h+r[0]*p,e[1]=t[1]*u+n[1]*c+i[1]*h+r[1]*p,e[2]=t[2]*u+n[2]*c+i[2]*h+r[2]*p,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:o,cross:_,crossAndNormalize:function(e,t,n){const i=t[0],r=t[1],s=t[2],o=n[0],l=n[1],a=n[2],u=r*a-s*l,c=s*o-i*a,h=i*l-r*o,p=Math.sqrt(u*u+c*c+h*h);return e[0]=u/p,e[1]=c/p,e[2]=h/p,e},direction:k,dist:D,distance:b,div:P,divide:h,dot:x,equals:L,exactEquals:O,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,i,r,s){const o=s*s,l=o*(2*s-3)+1,a=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*l+n[0]*a+i[0]*u+r[0]*c,e[1]=t[1]*l+n[1]*a+i[1]*u+r[1]*c,e[2]=t[2]*l+n[2]*a+i[2]*u+r[2]*c,e},inverse:I,len:q,length:s,lerp:A,max:g,min:f,mul:Z,multiply:c,negate:w,normalize:S,random:function(e,t=1){const n=r.Ov,i=2*n()*Math.PI,s=2*n()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(i)*o,e[1]=Math.sin(i)*o,e[2]=s*t,e},rotateX:function(e,t,n,i){const r=[],s=[];return r[0]=t[0]-n[0],r[1]=t[1]-n[1],r[2]=t[2]-n[2],s[0]=r[0],s[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),s[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateY:function(e,t,n,i){const r=[],s=[];return r[0]=t[0]-n[0],r[1]=t[1]-n[1],r[2]=t[2]-n[2],s[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),s[1]=r[1],s[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateZ:function(e,t,n,i){const r=[],s=[];return r[0]=t[0]-n[0],r[1]=t[1]-n[1],r[2]=t[2]-n[2],s[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),s[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),s[2]=r[2],e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:m,scaleAndAdd:y,set:l,sign:d,sqrDist:G,sqrLen:$,squaredDistance:M,squaredLength:v,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:N,subtract:u,transformMat3:C,transformMat4:T,transformQuat:z,transformQuatValues:E},Symbol.toStringTag,{value:"Module"}))},90629(e,t,n){n.d(t,{Lz:()=>r,PN:()=>s,cr:()=>o,gs:()=>a,r_:()=>u,tc:()=>l}),n(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function r(e){return e?e/72*96:0}function s(e){return e?72*e/96:0}function o(e){if("string"==typeof e){const t=e.match(i);if(t){const n=Number(t[1]),i=t[3]&&t[3].toLowerCase(),r=e.startsWith("-"),o="px"===i?s(n):n;return r?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function l(e=0,t=0){return{x:e,y:t}}function a(e=0,t=0){return[e,t]}function u(e=0,t=0,n=0){return[e,t,n]}},13069(e,t,n){n.d(t,{AG:()=>l,lk:()=>r,vD:()=>o,yS:()=>s});const i="randomUUID"in crypto;function r(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${r().toUpperCase()}}`}function o(){return`{${r()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},159(e,t,n){n.d(t,{A:()=>u});var i,r=n(5482),s=n(69540),o=n(25482),l=n(91429),a=n(99157);let u=i=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,r.Cg)([(0,l.MZ)({type:[a.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=i=(0,r.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,n){n.d(t,{A:()=>a});var i,r=n(5482),s=n(69540),o=n(25482),l=n(91429);let a=i=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,r.Cg)([(0,l.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,n)=>{t[n]=!e}}})],a.prototype,"isInverse",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkt",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkid",void 0),a=i=(0,r.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)},9762(e,t,n){n.r(t),n.d(t,{projectBuffer:()=>r});var i=n(49208);function r(e,t,n,r,s,o,l=Math.floor(e.length/3)){const a=(0,i.jd)(t,s);if(null==a)return!1;if(a===i.pO){if(e===r&&n===o)return!0;const t=n+3*l;for(let i=n,s=o;i<t;i++,s++)r[s]=e[i]??0;return!0}const u=n+3*l;for(let t=n,i=o;t<u;t+=3,i+=3)a(e,t,r,i);return!0}},49208(e,t,n){n.d(t,{Tp:()=>h,jd:()=>c,pO:()=>d,w5:()=>u});var i=n(34727),r=n(86211),s=n(73941),o=n(79258),l=n(34403),a=n(21325);const u={2:{5:d,7:null,9:null,10:d,1:w,6:null,8:null,0:null,3:g,11:m,2:d,4:A},5:{5:d,7:null,9:null,10:d,1:w,6:null,8:null,0:null,3:g,11:m,2:d,4:A},7:{5:null,7:d,9:null,10:d,1:null,6:v,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:M,0:null,3:null,11:null,2:null,4:null},3:{5:f,7:null,9:null,10:f,1:function(e,t,n,i){const r=e[t]/j,s=R-2*Math.atan(Math.exp(-e[t+1]/j)),o=j+(e[t+2]??0),l=Math.cos(s)*o;n[i]=Math.cos(r)*l,n[i+1]=Math.sin(r)*l,n[i+2]=Math.sin(s)*o},6:null,8:null,0:null,3:d,11:function(e,t,n,i){f(e,t,n,i),m(n,i,n,i)},2:f,4:function(e,t,n,i){f(e,t,n,i),A(n,i,n,i)}},4:{5:T,7:null,9:null,10:T,1:function(e,t,n,i){T(e,t,n,i),w(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){T(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){T(e,t,n,i),m(n,i,n,i)},2:T,4:d},1:{5:_,7:null,9:null,10:_,1:d,6:null,8:null,0:null,3:function(e,t,n,i){_(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){_(e,t,n,i),m(n,i,n,i)},2:_,4:function(e,t,n,i){_(e,t,n,i),A(n,i,n,i)}},6:{5:null,7:x,9:null,10:x,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:S,10:S,1:null,6:null,8:d,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:w,6:v,8:M,0:null,3:g,11:m,2:d,4:A},11:{5:y,7:null,9:null,10:y,1:function(e,t,n,i){y(e,t,n,i),w(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){y(e,t,n,i),g(n,i,n,i)},11:d,2:y,4:function(e,t,n,i){y(e,t,n,i),A(n,i,n,i)}}};function c(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(C.source.spatialReference===e&&C.dest.spatialReference===t)return C;const n=p(e,C.source),i=p(t,C.dest);return 0===n&&0===i?(0,a.aI)(e,t)?C.projector=d:C.projector=null:C.projector=u[n][i],C}function p(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,a.oT)(e)?t.spatialReferenceId=2:(0,a.K8)(e)?t.spatialReferenceId=3:(0,a.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,s.q8)(e)?t.spatialReferenceId=7:(0,s.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function d(e,t,n,i){e!==n&&(n[i++]=e[t++],n[i++]=e[t++],n[i]=e[t]??0)}function f(e,t,n,i){n[i]=E*(e[t]/j),n[i+1]=E*(R-2*Math.atan(Math.exp(-e[t+1]/j))),n[i+2]=e[t+2]??0}function g(e,t,n,r){!function(e,t,n,r,s){const o=.4999999*Math.PI,l=(0,i.qE)(z*e[t+1],-o,o),a=Math.sin(l);n[r++]=z*e[t]*s.radius,n[r++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[r]=e[t+2]??0}(e,t,n,r,o.$O)}function m(e,t,n,i){n[i]=e[t]*F,n[i+1]=e[t+1]*F,n[i+2]=e[t+2]??0}function y(e,t,n,i){n[i]=e[t]*O,n[i+1]=e[t+1]*O,n[i+2]=e[t+2]??0}function b(e,t,n,i,r){const s=r+(e[t+2]??0),o=z*e[t],l=z*e[t+1],a=Math.cos(l)*s;n[i]=Math.cos(o)*a,n[i+1]=Math.sin(o)*a,n[i+2]=Math.sin(l)*s}function M(e,t,n,i){b(e,t,n,i,o.Sw.radius)}function v(e,t,n,i){b(e,t,n,i,o.sH.radius)}function w(e,t,n,i){b(e,t,n,i,o.$O.radius)}function I(e,t,n,r,s){const o=e[t],l=e[t+1],a=e[t+2]??0,u=Math.sqrt(o*o+l*l+a*a),c=(0,i.YN)(a/(0===u?1:u)),h=Math.atan2(l,o);n[r++]=E*h,n[r++]=E*c,n[r]=u-s}function S(e,t,n,i){I(e,t,n,i,o.Sw.radius)}function x(e,t,n,i){I(e,t,n,i,o.sH.radius)}function _(e,t,n,i){I(e,t,n,i,o.$O.radius)}function A(e,t,n,i){!function(e,t,n,i,r){const s=z*e[t],o=z*e[t+1],l=e[t+2]??0,a=Math.sin(o),u=Math.cos(o),c=r.radius/Math.sqrt(1-r.eccentricitySquared*a*a);n[i++]=(c+l)*u*Math.cos(s),n[i++]=(c+l)*u*Math.sin(s),n[i++]=(c*(1-r.eccentricitySquared)+l)*a}(e,t,n,i,o.$O)}function T(e,t,n,i){const r=l.TP,s=e[t],a=e[t+1],u=e[t+2]??0;let c,h,p,d,f,g,m,y,b,M,v,w,I,S,x,_,A,T,C,z,R;c=Math.abs(u),h=s*s+a*a,p=Math.sqrt(h),d=h+u*u,f=Math.sqrt(d),z=Math.atan2(a,s),g=u*u/d,m=h/d,S=r.a2/f,x=r.a3-r.a4/f,m>.3?(y=c/f*(1+m*(r.a1+S+g*x)/f),C=Math.asin(y),M=y*y,b=Math.sqrt(1-M)):(b=p/f*(1-g*(r.a5-S-m*x)/f),C=Math.acos(b),M=1-b*b,y=Math.sqrt(M)),v=1-o.$O.eccentricitySquared*M,w=o.$O.radius/Math.sqrt(v),I=r.a6*w,S=p-w*b,x=c-I*y,A=b*S+y*x,_=b*x-y*S,T=_/(I/v+A),C+=T,R=A+_*T/2,u<0&&(C=-C),n[i++]=E*z,n[i++]=E*C,n[i]=R}const C={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},z=(0,i.kU)(1),E=(0,i.KJ)(1),R=.5*Math.PI,j=o.$O.radius,F=j*Math.PI/180,O=180/(j*Math.PI)},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>K,initializeProjection:()=>Y,isEqualBaseGCS:()=>B,isLoaded:()=>j,isLoadedOrLoad:()=>F,isLoadedOrLoadFor:()=>O,load:()=>k,project:()=>N,projectAsync:()=>V,projectExtent:()=>re,projectMany:()=>Z,projectMultipoint:()=>X,projectOrLoad:()=>D,projectOrLoadMany:()=>G,projectPoint:()=>W,projectPolygon:()=>ne,projectPolyline:()=>ee,projectWithoutEngine:()=>J,requiresLoad:()=>L,test:()=>U,tryProject:()=>P,unload:()=>$});var i=n(49186),r=n(17676),s=n(62788),o=n(95488),l=n(51850),a=n(21276),u=n(73941),c=n(5443),h=n(91075),p=n(48526),d=n(86738),f=n(39829),g=n(82799),m=n(16930),y=n(98764),b=n(159),M=n(9762),v=n(49208);function w(e,t,n,i,r,s){return I[0]=e,I[1]=t,I[2]=n,(0,M.projectBuffer)(I,i,0,r,s,0)}const I=(0,l.vt)();var S=n(60408),x=n(21325),_=n(52006);let A=null,T=null,C=null,z=null,E={};const R=new o.I;function j(){return!!(T?.isLoaded()&&C?.isLoaded()&&z?.isLoaded())}function F(){return!!j()||((0,s.gc)(R),k(),!1)}function O(e,t){return!e||!t||K(e,t)||F()}function L(e,t){return!K(e,t)&&!j()}async function k(e){null==A&&(A=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(T=e,T.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(C=e,C.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(z=e,z.load()))])),await A,(0,r.Te)(e),R.notify()}function N(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),Z(e,e[0].spatialReference,t,n)):((0,a.f)(e),Z([e],e.spatialReference,t,n)[0])}function Z(e,t,n,i){if(null==t||null==n)return e;if(K(t,n,i))return e.map(e=>J(e,t,n));if(null==i?.geographicTransformation&&(0,u.jA)(t))return Z(e.map(e=>J(e,t,m.A.WGS84)),m.A.WGS84,n,{zConversionDisabled:i?.zConversionDisabled});if(null==i?.geographicTransformation&&(0,u.jA)(n))return Z(e,t,m.A.WGS84).map(e=>J(e,m.A.WGS84,n));if(!j())throw new q;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:z.getTransformation(t,n,i.areaOfInterestExtent)||new b.A};else if(!i?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let r=E[e];r||(r=z.getTransformation(t,n)||new b.A,E[e]=r),i={geographicTransformation:r,zConversionDisabled:i?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof h.A?T.executeMany(e,n,i):C.executeMany(e,n,i)}function P(e,t,n){try{return N(e,t,n)}catch(e){return null}}function D(e,t){const n=G([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function G(e,t,n){if(!j())for(const n of e)if(null!=n&&!(0,x.aI)(n.spatialReference,t)&&(0,x.fn)(n.spatialReference)&&(0,x.fn)(t)&&!K(n.spatialReference,t))return(0,s.gc)(R),{pending:k(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,x.aI)(e.spatialReference,t)?e:(0,x.fn)(e.spatialReference)&&(0,x.fn)(t)?N(e,t,n):null)}}class q extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function $(){A=null,T=null,C=null,z=null,E={}}const U={get loadPromise(){return A}};async function V(e,t,n){if((0,r.Te)(n),!e)return e;const i=G(Array.isArray(e)?e:[e],t,n);if(i.pending)return await i.pending,(0,r.Te)(n),V(e,t,n);const s=i.geometries??[];return Array.isArray(e)?s:s[0]}function K(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,x.aI)(e,t)||(0,x.fn)(e)&&(0,x.fn)(t)&&!!(0,v.jd)(e,t))}function B(e,t){if((0,x.aI)(e,t))return!0;if(!(0,x.fn)(e)||!(0,x.fn)(t))return!1;const n=(0,x.oT)(e)||(0,x.K8)(e)||(0,x.x1)(e),i=(0,x.oT)(t)||(0,x.K8)(t)||(0,x.x1)(t);return n&&i}async function Y(e,t,n,i){if(j())return(0,r.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:n,options:r}of e)if(t&&n&&!K(t,n,r))return k(i)}else if(e&&t&&!K(e,t,n))return k(i);return(0,r.NO)(i)}function J(e,t,n){return e?(0,S.fT)(e)?H(e,t,new d.A,n,0):(0,S.ZC)(e)?se(e,t,new c.A,n,0):(0,S.Bi)(e)?ie(e,t,new f.A,n,0):(0,S.Rg)(e)?te(e,t,new g.A,n,0):(0,S.U9)(e)?Q(e,t,new p.A,n,0):null:null}function W(e,t,n=t.spatialReference,i=0){return null!=n&&null!=e.spatialReference&&null!=H(e,e.spatialReference,t,n,i)}function H(e,t,n,i,r){ue[0]=e.x,ue[1]=e.y;const s=e.z;return ue[2]=void 0!==s?s:r,(0,M.projectBuffer)(ue,t,0,ue,i,0)?(n.x=ue[0],n.y=ue[1],n.spatialReference=i,void 0!==s||(0,u.xP)(i)?(n.z=ue[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function X(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=Q(e,e.spatialReference,t,n,i)}function Q(e,t,n,i,r){const{points:s,hasZ:o,hasM:l}=e,a=[],u=s.length,c=[];for(const e of s)c.push(e[0],e[1],o?e[2]:r);if(!(0,M.projectBuffer)(c,t,0,c,i,0,u))return null;const h=ae(o,i);for(let e=0;e<u;++e){const t=3*e,n=c[t],i=c[t+1];h&&l?a.push([n,i,c[t+2],s[e][3]]):h?a.push([n,i,c[t+2]]):l?a.push([n,i,s[e][2]]):a.push([n,i])}return n.points=a,n.spatialReference=i,n.hasZ=o,n.hasM=l,n}function ee(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,i)}function te(e,t,n,i,r){const{curvePaths:s,paths:o,hasZ:l,hasM:a}=e;if(!(s?le(s,l??!1,a??!1,t,n.curvePaths=[],i,r):oe(o,l??!1,a??!1,t,n.paths,i,r)))return null;const u=ae(l,i);return n.spatialReference=i,n.hasZ=u,n.hasM=a,n}function ne(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,i)}function ie(e,t,n,i,r){const{curveRings:s,rings:o,hasZ:l,hasM:a}=e;return(s?le(s,l??!1,a??!1,t,n.curveRings=[],i,r):oe(o,l??!1,a??!1,t,n.rings,i,r))?(n.spatialReference=i,n.hasZ=ae(l,i),n.hasM=a,n):null}function re(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=se(e,e.spatialReference,t,n,i)}function se(e,t,n,i,r){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:u,hasM:c}=e;if(!w(s,o,u?e.zmin:r,t,ue,i))return null;const h=ae(u,i);return n.xmin=ue[0],n.ymin=ue[1],h&&(n.zmin=ue[2]),w(l,a,u?e.zmax:r,t,ue,i)?(n.xmax=ue[0],n.ymax=ue[1],h&&(n.zmax=ue[2]),c&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=i,n):null}function oe(e,t,n,i,r,s,o=0){const l=new Array;for(const n of e)for(const e of n)l.push(e[0],e[1],t?e[2]:o);if(!(0,M.projectBuffer)(l,i,0,l,s,0))return!1;let a=0;r.length=0;const u=t?3:2,c=ae(t,s);for(const t of e){const e=new Array;for(const i of t){const t=l.slice(a,a+=3);c||t.pop(),n&&t.push(i[u]),e.push(t)}r.push(e)}return!0}function le(e,t,n,i,r,s,o=0){const l=new Array;for(const n of e)for(const e of n){if((0,_.FG)(e))return!1;if((0,_.aO)(e)){const[n,i]=e.c;l.push(n[0],n[1],t?n[2]:o,i[0],i[1],o);continue}if((0,_.n1)(e)){const[n,i,r]=e.b;l.push(n[0],n[1],t?n[2]:o,i[0],i[1],o,r[0],r[1],o);continue}const n=e;l.push(n[0],n[1],t?n[2]:o)}if(!(0,M.projectBuffer)(l,i,0,l,s,0))return!1;let a=0;r.length=0;const u=t?3:2,c=ae(t,s);for(const t of e){const e=new Array;for(const i of t){const t=l.slice(a,a+=3);if(c||t.pop(),n&&t.push((0,_.yP)(i)[u]),(0,_.FG)(i))return!1;if((0,_.aO)(i)){const n=l[a++],i=l[a++];++a,e.push({c:[t,[n,i]]});continue}if((0,_.n1)(i)){const n=l[a++],i=l[a++];++a;const r=l[a++],s=l[a++];++a,e.push({b:[t,[n,i],[r,s]]});continue}e.push(t)}r.push(e)}return!0}function ae(e,t){return e||(0,u.xP)(t)||(0,x.aI)(t,y.Y0)}const ue=(0,l.vt)()},98764(e,t,n){n.d(t,{GD:()=>o,Y0:()=>u,lO:()=>c});var i=n(73941),r=n(16930),s=n(21325);const o=new r.A(i.fv),l=new r.A(i.FY),a=new r.A(i.LJ),u=new r.A(i.Ro);function c(e){const t=h.get(e);if(t)return t;let n=o;if(e)if(e===l)n=l;else if(e===a)n=a;else{const t=e.wkid,i=e.latestWkid;if(null!=t||null!=i)(0,s.tl)(t)||(0,s.tl)(i)?n=l:((0,s.ZL)(t)||(0,s.ZL)(i))&&(n=a);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===p?n=l:e===d&&(n=a)}}}return h.set(e,n),n}const h=new Map,p=l.wkt.toUpperCase(),d=a.wkt.toUpperCase()},4197(e,t,n){n.d(t,{Vj:()=>c,cj:()=>u,jh:()=>s,l5:()=>l,yH:()=>a});var i=n(34275),r=n(9093);function s(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function l(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e,t){if(0===t.length)return o(e);if(0===e.length)return o(t);const n=s(e.length+t.length);for(let t=0;t<e.length;++t)n[t]=e[t];for(let i=0;i<t.length;++i)n[e.length+i]=t[i];return n}function u(e){return[...e]}function c(e){const t=(0,r.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},70328(e,t,n){n.d(t,{BI:()=>M,DC:()=>h,Ej:()=>d,Ie:()=>y,Jt:()=>b,Ne:()=>f,RF:()=>c,aI:()=>w,fA:()=>o,gE:()=>a,hZ:()=>m,iT:()=>p,is:()=>v,qv:()=>I,vI:()=>g,vY:()=>l,v_:()=>S,vt:()=>s,w1:()=>u}),n(35522);var i=n(5443),r=(n(19419),n(4197));function s(e=S){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,n,i,r,o,l=s()){return l[0]=e,l[1]=t,l[2]=n,l[3]=i,l[4]=r,l[5]=o,l}function l(e,t=s()){return function(e,t,n,i=s()){return m(i,I),function(e,t,n=0,i=t.length/3){let r=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<i;e++)r=Math.min(r,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),l=Math.max(l,t[n+3*e]),a=Math.max(a,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(i,e,t,n),i}(e,0,e.length/3,t)}function a(e,t=(0,r.jh)(24)){const[n,i,s,o,l,a]=e;return t[0]=n,t[1]=i,t[2]=s,t[3]=n,t[4]=i,t[5]=a,t[6]=n,t[7]=l,t[8]=s,t[9]=n,t[10]=l,t[11]=a,t[12]=o,t[13]=i,t[14]=s,t[15]=o,t[16]=i,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new i.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function h(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function d(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function f(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function g(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function y(e){return e?m(e,I):s(I)}function b(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function M(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function v(e){return 6===e.length}function w(e,t,n){if(null==e||null==t)return e===t;if(!v(e)||!v(t))return!1;if(n){for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const I=[1/0,1/0,1/0,-1/0,-1/0,-1/0],S=[0,0,0,0,0,0];s()},34403(e,t,n){n.d(t,{TP:()=>o});var i=n(79258);Math.PI;const r=i.$O.radius,s=i.$O.eccentricitySquared,o={a1:r*s,a2:r*s*r*s,a3:r*s*s/2,a4:r*s*r*s*2.5,a5:r*s+r*s*s/2,a6:1-s};i.$O.radius,i.$O.flattening,i.Sw.radius,i.Sw.flattening,i.sH.radius,i.sH.flattening,i.sH.radius},50498(e,t,n){n.d(t,{Ye:()=>h,gy:()=>c,iI:()=>d,yR:()=>p});var i=n(66552),r=n(5443),s=n(91075),o=n(48526),l=n(86738),a=n(39829),u=n(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}},d=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},55156(e,t,n){n.d(t,{I:()=>r,e:()=>i});const i=Symbol("idFieldsProviderSymbol");function r(e){return(t=e)&&i in t?e[i]:void 0;var t}},25077(e,t,n){n.r(t),n.d(t,{default:()=>U});var i=n(5482),r=n(37838),s=n(11254),o=n(69540),l=n(49186),a=n(36563),u=n(25728),c=n(17676),h=n(91429),p=n(16930),d=n(55156),f=n(60950),g=n(89808),m=n(99959);const y=Symbol("isDimensionFeatureGraphicOrigin");var b;class M extends m.A{get[(b=y,f.ym)](){return this.layer}get[d.e](){return this.layer}get[g.Q](){return this.layer}constructor(e){super(),this[b]=!0,this.type="dimension-feature",this.layer=e}get id(){return this.layer.id}}var v=n(4146),w=n(52136),I=n(18768),S=n(63074),x=n(69208),_=n(40775),A=n(10086),T=n(34287),C=n(8303),z=n(54310),E=n(25036),R=n(82935),j=n(60694),F=n(10873),O=n(15426),L=n(17036),k=n(30524),N=n(91908),Z=n(97552),P=n(30291),D=n(36005);const G="dimension-feature-layer",q=(0,L.p)();let $=class extends((0,_.I)((0,A.j)((0,S.dM)((0,R.e)((0,E.j)((0,z.J)((0,I.b)((0,T.q)((0,C.A)((0,u.M)((0,x.d)((0,w.p)((0,o.OU)(v.A)))))))))))))){constructor(e){super(e),this.barrierWeight="high",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new M(this),this.operationalLayerType="ArcGISDimensionLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.referenceScale=0,this.source=null,this.styleCollection=null,this.sublayerTitleMode="item-title",this.supportedSourceTypes=new Set(["Dimension Layer"]),this.symbolFields=["STYLEID","BEGINX","BEGINY","ENDX","ENDY","DIMDISPLAY","EXTDISPLAY","MARKERDISPLAY","DIMX","DIMY","TEXTX","TEXTY","DIMLENGTH","DIMTYPE","EXTANGLE","TEXTANGLE","USECUSTOMLENGTH","CUSTOMLENGTH "],this.type="dimension-feature"}destroy(){this.source?.destroy()}load(e){const t=e?.signal,n=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(c.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url)throw new l.A(`${G}:missing-url`,"DimensionFeatureLayer must be created with a url");return Promise.all([this.loadDataElement(e).then(()=>{if(!this.styleCollection)throw new l.A(`${G}:missing-style-collection`,"Invalid service with no style collection")}),this.initLayerProperties(await this.createGraphicsSource(t))])}).then(()=>(0,O.VA)(this,"load",e));return this.addResolvingPromise(n),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readTitleFromService(e,t){const{url:n}=this,i=t.name||(0,j.qg)(n)?.title;switch(this.sublayerTitleMode){case"item-title":if(n)return(0,j.yG)(n,i);break;case"item-title-and-service-name":{let e=this.portalItem?.title;if(e&&e!==i)return e=(0,j.cr)(e),i?`${e} - ${(0,j.cr)(i)}`:e;break}}return i?(0,j.cr)(i):void 0}readTitleFromPortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}createPopupTemplate(e){return(0,P.tn)(this,e)}async createGraphicsSource(e){const t={stack:[],error:void 0,hasError:!1};try{const{default:r}=await(0,c.qr)(Promise.all([n.e(893),n.e(3636),n.e(3467)]).then(n.bind(n,65515)),e),s=new r({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,i.mS)(t,(0,a.Bf)((0,c.u7)(e,()=>s.cancelLoad())??(0,a.hA)()),!1),await s.load({signal:e}),s}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}createQuery(){const e=(0,O.VZ)(this);return e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){return(0,O.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryFeatures(e,t){const n=await this.load(),i=await n.source.queryFeatures(Z.A.from(e)??n.createQuery(),t),r=this.graphicOrigin;if(i?.features)for(const e of i.features)e.layer=e.sourceLayer=n,e.origin=r;return i}async queryObjectIds(e,t){const n=await this.load();return n.source.queryObjectIds(Z.A.from(e)??n.createQuery(),t)}async queryFeatureCount(e,t){const n=await this.load();return n.source.queryFeatureCount(Z.A.from(e)??n.createQuery(),t)}async queryExtent(e,t){const n=await this.load();return n.source.queryExtent(Z.A.from(e)??n.createQuery(),t)}serviceSupportsSpatialReference(e){return this.loaded&&(0,N.D)(this,e)}async initLayerProperties(e){this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),(0,k.sv)(this.timeInfo,this.fieldsIndex)}async hasDataChanged(){return(0,O.jp)(this)}_verifySource(){if(this.version&&this.version<10.8)throw new l.A(G+":unsupported-version","The feature service must be version 10.8 or above.");const e=["DIMLENGTH","BEGINX","BEGINY","ENDX","ENDY","DIMX","DIMY","TEXTX","TEXTY","DIMTYPE","EXTANGLE","STYLEID","USECUSTOMLENGTH","CUSTOMLENGTH","DIMDISPLAY","EXTDISPLAY","MARKERDISPLAY","TEXTANGLE"],t=e.filter(e=>!this.fieldsIndex.has(e));if(t.length)throw new l.A(G+":missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}_fetchFirstValidLayerId(e){return(0,s.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{const t=e.data;if(!t)return;this.applyPreferredHost(t);const n=[...t.layers||[],...t.tables||[]];return n.find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id})}};(0,i.Cg)([(0,h.MZ)({type:p.A,json:{origins:{service:{read:{source:"sourceSpatialReference"}}}}})],$.prototype,"attributeSpatialReference",void 0),(0,i.Cg)([(0,h.MZ)(F.es)],$.prototype,"barrierWeight",void 0),(0,i.Cg)([(0,h.MZ)({json:{write:!0}})],$.prototype,"editingEnabled",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],$.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,h.MZ)({...q.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],$.prototype,"fields",void 0),(0,i.Cg)([(0,h.MZ)(q.fieldsIndex)],$.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,clonable:!1})],$.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,h.MZ)(F.id)],$.prototype,"id",void 0),(0,i.Cg)([(0,h.MZ)({type:["ArcGISDimensionLayer"]})],$.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,h.MZ)(q.outFields)],$.prototype,"outFields",void 0),(0,i.Cg)([(0,h.MZ)(F.M6)],$.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:r.A,json:{name:"popupInfo",write:!0}})],$.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],$.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],$.prototype,"referenceScale",void 0),(0,i.Cg)([(0,h.MZ)({clonable:!1,readOnly:!0})],$.prototype,"source",void 0),(0,i.Cg)([(0,h.MZ)()],$.prototype,"styleCollection",void 0),(0,i.Cg)([(0,h.MZ)({type:String})],$.prototype,"sublayerTitleMode",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],$.prototype,"symbolFields",void 0),(0,i.Cg)([(0,D.w)("service","title",["name"])],$.prototype,"readTitleFromService",null),(0,i.Cg)([(0,D.w)("portal-item","title")],$.prototype,"readTitleFromPortalItem",null),(0,i.Cg)([(0,h.MZ)({json:{read:!1},value:"dimension-feature",readOnly:!0})],$.prototype,"type",void 0),$=(0,i.Cg)([(0,h.$K)("esri.layers.DimensionFeatureLayer")],$);const U=$},54339(e,t,n){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const i of t.fieldNames)n.push(e.attributes[i]??null);return JSON.stringify(n)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>i,r:()=>r})},52136(e,t,n){n.d(t,{p:()=>s});var i=n(5482),r=n(91429);const s=e=>{const t=e;let n=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,r.MZ)({type:String})],n.prototype,"apiKey",null),n=(0,i.Cg)([(0,r.$K)("esri.layers.mixins.APIKeyMixin")],n),n}},40775(e,t,n){n.d(t,{I:()=>u});var i=n(5482),r=n(11254),s=n(49186),o=n(84952),l=n(91429),a=n(95250);const u=e=>{const t=e;let n=class extends t{async loadDataElement(e){if(!this.url||null==this.layerId)throw new s.A("fetchDataElement:missing-url-or-layerId","The layer must have a url and a layerId to fetch the data element.");const t=(0,o.fj)(this.url,"queryDataElements"),n={f:"json",layers:this.layerId},{data:i}=await(0,r.A)(t,{...e,responseType:"json",query:n}),l=i.layerDataElements.find(e=>e.layerId===this.layerId)?.dataElement;if(!l)throw new s.A("fetchDataElement:not-available","A data element for this layer could not be retrieved.");const u=l.extensionProperties?.propertySetItems??[],c=p(u),h=(0,a.S)(d(u)),g=(0,a.S)(f(u));this.read({referenceScale:c,symbolCollection:h,styleCollection:g},{origin:"service"})}};return n=(0,i.Cg)([(0,l.$K)("esri.layers.mixins.DataElementMixin")],n),n};function c(e,t){const n=e.indexOf(t);if(-1!==n)return e[n+1]}function h(e,t){const n=c(e,t);return n&&"string"==typeof n?JSON.parse(n):null}function p(e){const t=c(e,"ReferenceScale")??0;return"string"!=typeof t?t:parseFloat(t)}function d(e){return h(e,"SymbolCollection")??void 0}function f(e){return h(e,"StyleCollection")??void 0}},82935(e,t,n){n.d(t,{B:()=>p,e:()=>d});var i=n(5482),r=n(91429),s=n(89317),o=n(30524),l=n(96184),a=n(73133),u=n(79677),c=n(10184),h=n(36005);const p={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}},d=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const n=t.timeInfo.exportOptions;if(!n)return null;const i=n.timeOffset,r=a.j.fromJSON(n.timeOffsetUnits);return i&&r?new c.A({value:i,unit:r}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,o.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,r.MZ)({type:u.A,json:{write:!1}})],n.prototype,"timeExtent",void 0),(0,i.Cg)([(0,r.MZ)({type:c.A})],n.prototype,"timeOffset",void 0),(0,i.Cg)([(0,h.w)("service","timeOffset",["timeInfo.exportOptions"])],n.prototype,"readOffset",null),(0,i.Cg)([(0,r.MZ)({value:null,type:l.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],n.prototype,"timeInfo",null),(0,i.Cg)([(0,r.MZ)(p)],n.prototype,"useViewTime",void 0),n=(0,i.Cg)([(0,r.$K)("esri.layers.mixins.TemporalLayer")],n),n}},28032(e,t,n){n.d(t,{A:()=>a});var i=n(5482),r=n(69540),s=n(25482),o=n(91429),l=n(56400);let a=class extends((0,r.OU)(s.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,o.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,o.MZ)((0,l.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,o.$K)("esri.layers.support.EditFieldsInfo")],a)},37352(e,t,n){n.d(t,{A:()=>a});var i,r=n(5482),s=n(7762),o=n(25482),l=n(91429);let a=i=class extends o.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new s.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,r.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],a)},45067(e,t,n){n.d(t,{A:()=>c});var i=n(5482),r=n(69540),s=n(66552),o=n(25482),l=n(91429);const a=new s.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new s.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let c=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],c.prototype,"cardinality",void 0),(0,i.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],c.prototype,"catalogId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"composite",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyField",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"role",void 0),c=(0,i.Cg)([(0,l.$K)("esri.layers.support.Relationship")],c)},96184(e,t,n){n.d(t,{A:()=>d});var i=n(5482),r=n(69540),s=n(25482),o=n(91429),l=n(79677),a=n(10184),u=n(56400),c=n(36005),h=n(43937);function p(e,t){return a.A.fromJSON({value:e,unit:t})}let d=class extends((0,r.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?l.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?p(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?p(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],d.prototype,"cumulative",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],d.prototype,"endField",void 0),(0,i.Cg)([(0,o.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],d.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,c.w)("fullTimeExtent",["timeExtent"])],d.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,h.K)("fullTimeExtent")],d.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,o.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],d.prototype,"interval",void 0),(0,i.Cg)([(0,c.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],d.prototype,"readInterval",null),(0,i.Cg)([(0,h.K)("interval")],d.prototype,"writeInterval",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],d.prototype,"startField",void 0),(0,i.Cg)([(0,o.MZ)((0,u.P6)("timeReference",!0))],d.prototype,"timeZone",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],d.prototype,"trackIdField",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],d.prototype,"useTime",void 0),(0,i.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],d.prototype,"stops",void 0),d=(0,i.Cg)([(0,o.$K)("esri.layers.support.TimeInfo")],d)},17036(e,t,n){n.d(t,{p:()=>a});var i=n(44208),r=n(53966),s=n(20437),o=n(95466),l=n(30524);function a(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");r.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const n=this.fieldsIndex?.has(t);n||r.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},32730(e,t,n){n.d(t,{BI:()=>d,D3:()=>h,XJ:()=>p,lc:()=>c,mX:()=>g,rU:()=>f,tH:()=>v,vK:()=>w,zA:()=>I});var i=n(799);const r="__begin__",s="__end__",o=new RegExp(r,"ig"),l=new RegExp(s,"ig"),a=new RegExp("^"+r,"i"),u=new RegExp(s+"$","i");function c(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function p(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=c(e.labelExpression),t.type="conventional"),t}function d(e){const t=p(e);if(!t)return null;switch(t.type){case"conventional":return g(t.expression);case"arcade":return t.expression}return null}function f(e){const t=p(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(m);return t?.[1].trim()||null}(t.expression);case"arcade":return v(t.expression)}return null}function g(e){let t;return e?(t=(0,i.HC)(e,e=>r+'$feature["'+e+'"]'+s),t=a.test(t)?t.replace(a,""):'"'+t,t=u.test(t)?t.replace(u,""):t+'"',t=t.replaceAll(o,'" + ').replaceAll(l,' + "')):t='""',t}const m=/^\s*\{([^}]+)\}\s*$/i,y=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,M=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function v(e){if(!e)return null;let t=y.exec(e)||b.exec(e);return t?t[1]||t[3]:(t=M.exec(e),t?t[2]:null)}const w=Symbol("LabelClassInstance");function I(e){return null!=e&&"object"==typeof e&&w in e}},5757(e,t,n){n.d(t,{B:()=>r,P:()=>i});const i=Symbol("PopupTemplateInstance");function r(e){return null!=e&&"object"==typeof e&&i in e}},98205(e,t,n){n.d(t,{KZ:()=>l,eh:()=>o,gf:()=>s,of:()=>r,uY:()=>i});const i=Symbol("SizeVariableInstance");function r(e){return null!=e&&"object"==typeof e&&i in e}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function l(e,t){const n=t||o(e),i=e.valueUnit||"unknown";return"unknown"===n?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}},41366(e,t,n){n.d(t,{K:()=>h,Q:()=>a});var i=n(5482),r=n(66552),s=n(53966),o=n(91429),l=n(93223);const a=(0,r.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",h=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,n=null!=this.normalizationTotal;return t||n?(e=t&&c||n&&u||null,t&&n&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],n.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],n.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],n.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],n.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.e)(a,{name:"parameters.normalizationType"})],n.prototype,"normalizationType",null),n=(0,i.Cg)([(0,o.$K)("esri.rest.support.NormalizationBinParametersMixin")],n),n}},95250(e,t,n){function i(e){return r(e,{CIMRGBColor:s,CIMCharacterMarker:o})}function r(e,t){if(null==e)return e;if(Array.isArray(e))return e.map(e=>r(e,t));if("object"==typeof e){if("type"in e&&"string"==typeof e.type&&t[e.type])return t[e.type](e);const n={};for(const[i,s]of Object.entries(e))n[i]=r(s,t);return n}return e}function s(e){const[t,n,i,r]=e.values;return[t,n,i,255*r/100]}function o(){return{type:"CIMVectorMarker",enable:!0,size:40,colorLocked:!1,anchorPointUnits:"Relative",frame:{xmin:-10,ymin:-10,xmax:10,ymax:10},markerGraphics:[{type:"CIMMarkerGraphic",textString:"■",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",underline:!1,blockProgression:"TTB",depth3D:0,extrapolateBaselines:!0,flipAngle:90,fontEffects:"Normal",fontEncoding:"Unicode",haloSize:0,height:8,hinting:"Default",horizontalAlignment:"Center",kerning:!0,letterSpacing:10,letterWidth:100,ligatures:!1,lineGapType:"ExtraLeading",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},symbol3DProperties:{type:"CIM3DSymbolProperties",dominantSizeAxis3D:"Z",rotationOrder3D:"XYZ",scaleZ:1,scaleY:1},textCase:"Normal",textDirection:"LTR",verticalAlignment:"Center",verticalGlyphOrientation:"Right",wordSpacing:100,billboardMode3D:"FaceNearPlane"}}],scaleSymbolsProportionally:!0,respectFrame:!0}}n.d(t,{S:()=>i})},93470(e,t,n){n.d(t,{Cb:()=>s,HW:()=>c,JR:()=>r,JZ:()=>a,WR:()=>l,b6:()=>h,fT:()=>i,nC:()=>u,yM:()=>o});const i=[252,146,31,255],r=[153,153,153,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},l={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},u={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},c={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},h={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);