@arcgis/core 4.33.0-next.20250226 → 4.33.0-next.20250228

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 (139) hide show
  1. package/WebLinkChart.js +1 -1
  2. package/applications/KnowledgeStudio/generalSharedKgUtils.d.ts +2 -0
  3. package/applications/KnowledgeStudio/generalSharedKgUtils.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/{3170552a6310725d7730.js → 05b7c739115be0490583.js} +1 -1
  6. package/assets/esri/core/workers/chunks/2c227d97d00b3849f441.js +1 -0
  7. package/assets/esri/core/workers/chunks/2ce80c764cca9e6a20cd.js +1 -0
  8. package/assets/esri/core/workers/chunks/{2716394f121804d93b4e.js → 4253438dd3045566892d.js} +1 -1
  9. package/assets/esri/core/workers/chunks/6f9bfa6ed34ef6efcc6f.js +1 -0
  10. package/assets/esri/core/workers/chunks/8abd2235aa702d8b239f.js +1 -0
  11. package/assets/esri/core/workers/chunks/a288c2474ef193f9fbd3.js +1 -0
  12. package/assets/esri/core/workers/chunks/{e118245566be994a53da.js → a901c445d36f1a9e7df8.js} +1 -1
  13. package/assets/esri/core/workers/chunks/a91f2d1deb950f46ad09.js +1 -0
  14. package/assets/esri/core/workers/chunks/ae25c6108918d37e61bf.js +1 -0
  15. package/assets/esri/core/workers/chunks/{feb656f172ec9fe64752.js → af005704f23088db3ded.js} +1 -1
  16. package/assets/esri/core/workers/chunks/b8416f2560710258c239.js +1 -0
  17. package/assets/esri/core/workers/chunks/{dea40706ca4e37d5c6e2.js → d4d011eea16a89a5aad9.js} +1 -1
  18. package/assets/esri/core/workers/chunks/f45ef721d21388846101.js +1 -0
  19. package/assets/esri/core/workers/chunks/{2d4bfd747580ed3b6f4d.js → fdab6921d007929ab288.js} +1 -1
  20. package/assets/esri/themes/base/widgets/_Sketch.scss +4 -4
  21. package/assets/esri/themes/dark/main.css +1 -1
  22. package/assets/esri/themes/light/main.css +1 -1
  23. package/assets/esri/themes/light/view.css +1 -1
  24. package/chunks/chartUtilsAm5.js +1 -1
  25. package/core/sql/StandardizedFunctions.js +1 -1
  26. package/core/sql/WhereClause.js +1 -1
  27. package/core/sql/sqlCompareUtils.js +1 -1
  28. package/geometry/SpatialReference.js +1 -1
  29. package/interfaces.d.ts +17 -15
  30. package/intl/duration.js +1 -1
  31. package/intl/locale.js +1 -1
  32. package/intl/messages.js +1 -1
  33. package/layers/BingMapsLayer.js +1 -1
  34. package/layers/LinkChartLayer.js +1 -1
  35. package/layers/SubtypeGroupLayer.js +1 -1
  36. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  37. package/layers/mixins/SublayersOwner.js +1 -1
  38. package/layers/support/rasterDatasets/covJSONParser.js +1 -1
  39. package/package.json +1 -1
  40. package/support/popupUtils.js +1 -1
  41. package/support/revision.js +1 -1
  42. package/symbols/cim/animationUtils.js +1 -1
  43. package/symbols/support/previewSymbol2D.js +1 -1
  44. package/views/2d/engine/webgl/animations/utils.js +1 -1
  45. package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
  46. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
  47. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
  48. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPolygonShader.js +1 -1
  49. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  50. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitmapShader.js +1 -1
  51. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js +1 -1
  52. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexFillShader.js +1 -1
  53. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexOutlineFillShader.js +1 -1
  54. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
  55. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientFillShader.js +1 -1
  56. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
  57. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GridShader.js +1 -1
  58. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
  59. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapResolveShader.js +1 -1
  60. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
  61. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js +1 -1
  62. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OpacityShader.js +1 -1
  63. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
  64. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OverlayShader.js +1 -1
  65. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternFillShader.js +1 -1
  66. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternOutlineFillShader.js +1 -1
  67. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TestShader.js +1 -1
  68. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TexturedLineShader.js +1 -1
  69. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerLUTShader.js +1 -1
  70. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerShadedReliefShader.js +1 -1
  71. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerStretchShader.js +1 -1
  72. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/AspectShader.js +1 -1
  73. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/BandArithmeticShader.js +1 -1
  74. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ColormapToRGBShader.js +1 -1
  75. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/CompositeBandShader.js +1 -1
  76. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ComputeChangeShader.js +1 -1
  77. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ContrastBrightnessShader.js +1 -1
  78. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ConvolutionShader.js +1 -1
  79. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/CurvatureShader.js +1 -1
  80. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ExtractBandShader.js +1 -1
  81. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/FocalStatisticsShader.js +1 -1
  82. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/GrayscaleShader.js +1 -1
  83. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/HillshadeShader.js +1 -1
  84. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/LocalShader.js +1 -1
  85. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/MaskShader.js +1 -1
  86. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/NDVIShader.js +1 -1
  87. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/RemapShader.js +1 -1
  88. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ReprojectShader.js +1 -1
  89. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ShadedReliefShader.js +1 -1
  90. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/SlopeShader.js +1 -1
  91. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/StretchShader.js +1 -1
  92. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  93. package/views/3d/environment/CloudsRenderer.js +1 -1
  94. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  95. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  96. package/views/3d/layers/support/FeatureTileFetcher3DContext.js +1 -1
  97. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +11 -11
  98. package/views/3d/webgl-engine/core/shaderLibrary/util/LookupCubemapFromTextureArray.glsl.js +39 -0
  99. package/views/3d/webgl-engine/core/shaderModules/Texture2DArrayBindUniform.js +5 -0
  100. package/views/3d/webgl-engine/lib/ComponentUtils.js +1 -1
  101. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  102. package/views/View.js +1 -1
  103. package/views/webgl/FramebufferObject.js +1 -1
  104. package/views/webgl/ShaderBuilder.js +1 -1
  105. package/views/webgl/capabilities.js +1 -1
  106. package/webdoc/support/webdocSaveUtils.js +1 -1
  107. package/webdoc/support/writeUtils.js +1 -1
  108. package/widgets/Feature/FeatureRelationship.js +1 -1
  109. package/widgets/Feature/FeatureUtilityNetworkAssociationList.js +1 -1
  110. package/widgets/Feature/FeatureUtilityNetworkAssociations.js +1 -1
  111. package/widgets/Feature.js +1 -1
  112. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js +1 -1
  113. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
  114. package/widgets/FeatureTable.js +1 -1
  115. package/widgets/Features/FeaturesDrillIn.js +1 -1
  116. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  117. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  118. package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
  119. package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
  120. package/widgets/OrientedImageryViewer/dataCaptureUtils.js +1 -1
  121. package/widgets/OrientedImageryViewer/symbols.js +1 -1
  122. package/widgets/OrientedImageryViewer.js +1 -1
  123. package/widgets/Print/PrintViewModel.js +1 -1
  124. package/widgets/ScaleRangeSlider/scalePreviewUtils.js +1 -1
  125. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
  126. package/widgets/support/SelectionToolbar.js +1 -1
  127. package/widgets/support/Selector2D/SelectionOperation.js +1 -1
  128. package/widgets/support/Selector2D/selectorUtils.js +1 -1
  129. package/widgets/support/UtilityNetworkAssociations/utilityNetworkUtils.js +1 -1
  130. package/widgets/support/chartUtilsAm5.js +1 -1
  131. package/assets/esri/core/workers/chunks/22e7db720724f2426d74.js +0 -1
  132. package/assets/esri/core/workers/chunks/2515ace848cf078c6263.js +0 -1
  133. package/assets/esri/core/workers/chunks/2c348d0e8131f08391cb.js +0 -1
  134. package/assets/esri/core/workers/chunks/380128e2cb74798478c1.js +0 -1
  135. package/assets/esri/core/workers/chunks/66338f008ff0992ffca2.js +0 -1
  136. package/assets/esri/core/workers/chunks/68ac336f7384bbca85ab.js +0 -1
  137. package/assets/esri/core/workers/chunks/84e50d3ff298b7b66070.js +0 -1
  138. package/assets/esri/core/workers/chunks/aa98a6c38e82d384403c.js +0 -1
  139. package/assets/esri/core/workers/chunks/d5ebe6b7cd9c8e40b386.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8417],{7562:(e,t,r)=>{r.d(t,{A:()=>p});var i,a=r(90237),n=r(66552),o=r(25482),s=r(4718),l=r(10107),d=(r(44208),r(53966),r(40608)),u=r(43937);const c=new n.J({count:"count",sum:"sum",min:"min",max:"max",avg:"avg",stddev:"stddev",var:"var",exceedslimit:"exceedslimit",percentile_cont:"percentile-continuous",percentile_disc:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate"});let m=i=class extends o.A{constructor(e){super(e),this.maxPointCount=void 0,this.maxRecordCount=void 0,this.maxVertexCount=void 0,this.onStatisticField=null,this.outStatisticFieldName=null,this.statisticType=null,this.statisticParameters=null}writeStatisticParameters(e,t){"percentile-continuous"!==this.statisticType&&"percentile-discrete"!==this.statisticType||(t.statisticParameters=(0,s.o8)(e))}clone(){return new i({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,statisticType:this.statisticType,statisticParameters:(0,s.o8)(this.statisticParameters)})}};(0,a._)([(0,l.MZ)({type:Number,json:{write:!0}})],m.prototype,"maxPointCount",void 0),(0,a._)([(0,l.MZ)({type:Number,json:{write:!0}})],m.prototype,"maxRecordCount",void 0),(0,a._)([(0,l.MZ)({type:Number,json:{write:!0}})],m.prototype,"maxVertexCount",void 0),(0,a._)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"onStatisticField",void 0),(0,a._)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"outStatisticFieldName",void 0),(0,a._)([(0,l.MZ)({type:String,json:{read:{source:"statisticType",reader:c.read},write:{target:"statisticType",writer:c.write}}})],m.prototype,"statisticType",void 0),(0,a._)([(0,l.MZ)({type:Object})],m.prototype,"statisticParameters",void 0),(0,a._)([(0,u.K)("statisticParameters")],m.prototype,"writeStatisticParameters",null),m=i=(0,a._)([(0,d.$)("esri.rest.support.StatisticDefinition")],m);const p=m},10838:(e,t,r)=>{r.d(t,{ao:()=>p,ud:()=>y,xO:()=>h});var i=r(49186),a=r(36563),n=r(74887),o=r(73444);const s=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,l={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function d(e){if(function(e){return e in l}(e)){const t=l[e];return!0===t?e:t}return null}const u=[],c=new Map;function m(e){for(const t of c.keys())g(e.pattern,t)&&c.delete(t)}function p(e){return u.includes(e)||(m(e),u.unshift(e)),(0,a.hA)((()=>{const t=u.indexOf(e);t>-1&&(u.splice(t,1),m(e))}))}async function y(e){const t=(0,o.JK)();c.has(e)||c.set(e,async function(e,t){const r=[];for(const i of u)if(g(i.pattern,e))try{return await i.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new i.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new i.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=c.get(e);return r&&await T.add(r),r}function h(e){if(!s.test(e))return null;const t=s.exec(e);if(null===t)return null;const[,r,i]=t;return d(r+(i?"-"+i.toUpperCase():""))??d(r)}function g(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,o.Ml)((()=>{c.clear()}));const T=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,n.Tw)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},20437:(e,t,r)=>{r.d(t,{A:()=>g});var i,a=r(90237),n=r(66552),o=r(25482),s=r(10107),l=r(56507),d=(r(44208),r(87811),r(93223)),u=r(36005),c=r(40608),m=r(80451),p=r(98453);const y=new n.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let h=class extends o.A{static{i=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?y.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],h.prototype,"alias",void 0),(0,a._)([(0,s.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],h.prototype,"defaultValue",void 0),(0,a._)([(0,s.MZ)()],h.prototype,"description",void 0),(0,a._)([(0,u.w)("description")],h.prototype,"readDescription",null),(0,a._)([(0,s.MZ)({types:m.gK,json:{read:{reader:m.rS},write:!0}})],h.prototype,"domain",void 0),(0,a._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"editable",void 0),(0,a._)([(0,s.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],h.prototype,"length",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,a._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"nullable",void 0),(0,a._)([(0,d.e)(p.m)],h.prototype,"type",void 0),(0,a._)([(0,s.MZ)()],h.prototype,"valueType",void 0),(0,a._)([(0,u.w)("valueType",["description"])],h.prototype,"readValueType",null),(0,a._)([(0,s.MZ)({type:Boolean,json:{read:!1}})],h.prototype,"visible",void 0),h=i=(0,a._)([(0,c.$)("esri.layers.support.Field")],h);const g=h},27348:(e,t,r)=>{r.d(t,{A:()=>p});var i,a=r(90237),n=r(66552),o=r(25482),s=r(4718),l=r(10107),d=(r(44208),r(53966),r(40608)),u=r(5443);const c=new n.J({upperLeft:"upper-left",lowerLeft:"lower-left"});let m=i=class extends o.A{constructor(e){super(e),this.extent=null,this.mode="view",this.originPosition="upper-left",this.tolerance=1}clone(){return new i((0,s.o8)({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))}};(0,a._)([(0,l.MZ)({type:u.A,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],m.prototype,"extent",void 0),(0,a._)([(0,l.MZ)({type:["view","edit"],json:{write:!0}})],m.prototype,"mode",void 0),(0,a._)([(0,l.MZ)({type:String,json:{read:c.read,write:c.write}})],m.prototype,"originPosition",void 0),(0,a._)([(0,l.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],m.prototype,"tolerance",void 0),m=i=(0,a._)([(0,d.$)("esri.rest.support.QuantizationParameters")],m);const p=m},27733:(e,t,r)=>{r.d(t,{L:()=>R});var i,a=r(90237),n=r(66552),o=r(25482),s=r(10107),l=r(79901),d=r(93223),u=r(36005),c=r(40608),m=r(56507),p=r(90360),y=r(20437),h=r(49053),g=(r(44208),r(53966),r(87811),r(16930)),T=r(50498);let S=i=class extends o.A{constructor(e){super(e),this.type="query-table"}clone(){const{workspaceId:e,query:t,oidFields:r,spatialReference:a,geometryType:n}=this,o={workspaceId:e,query:t,oidFields:r,spatialReference:a?.clone()??void 0,geometryType:n};return new i(o)}};var f;(0,a._)([(0,d.e)({queryTable:"query-table"}),(0,s.MZ)({json:{write:{isRequired:!0}}})],S.prototype,"type",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],S.prototype,"workspaceId",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],S.prototype,"query",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],S.prototype,"oidFields",void 0),(0,a._)([(0,s.MZ)({type:g.A,json:{write:!0}})],S.prototype,"spatialReference",void 0),(0,a._)([(0,d.e)(T.gy)],S.prototype,"geometryType",void 0),S=i=(0,a._)([(0,c.$)("esri.layers.support.source.QueryTableDataSource")],S);let w=f=class extends o.A{constructor(e){super(e),this.type="raster"}clone(){const{workspaceId:e,dataSourceName:t}=this;return new f({workspaceId:e,dataSourceName:t})}};var v;(0,a._)([(0,d.e)({raster:"raster"}),(0,s.MZ)({json:{write:{isRequired:!0}}})],w.prototype,"type",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],w.prototype,"dataSourceName",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],w.prototype,"workspaceId",void 0),w=f=(0,a._)([(0,c.$)("esri.layers.support.source.RasterDataSource")],w);let A=v=class extends o.A{constructor(e){super(e),this.type="table"}clone(){const{workspaceId:e,gdbVersion:t,dataSourceName:r}=this;return new v({workspaceId:e,gdbVersion:t,dataSourceName:r})}};var M,b;(0,a._)([(0,d.e)({table:"table"}),(0,s.MZ)({json:{write:{isRequired:!0}}})],A.prototype,"type",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"workspaceId",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"gdbVersion",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"dataSourceName",void 0),A=v=(0,a._)([(0,c.$)("esri.layers.support.source.TableDataSource")],A);const _=(0,n.O)()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"});let Z=M=class extends o.A{constructor(e){super(e),this.type="join-table"}readLeftTableSource(e,t,r){return C()(e,t,r)}castLeftTableSource(e){return(0,m.aq)(k(),e)}readRightTableSource(e,t,r){return C()(e,t,r)}castRightTableSource(e){return(0,m.aq)(k(),e)}clone(){const{leftTableKey:e,rightTableKey:t,leftTableSource:r,rightTableSource:i,joinType:a}=this,n={leftTableKey:e,rightTableKey:t,leftTableSource:r?.clone()??void 0,rightTableSource:i?.clone()??void 0,joinType:a};return new M(n)}};(0,a._)([(0,d.e)({joinTable:"join-table"}),(0,s.MZ)({json:{write:{isRequired:!0}}})],Z.prototype,"type",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],Z.prototype,"leftTableKey",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],Z.prototype,"rightTableKey",void 0),(0,a._)([(0,s.MZ)({json:{write:!0}})],Z.prototype,"leftTableSource",void 0),(0,a._)([(0,u.w)("leftTableSource")],Z.prototype,"readLeftTableSource",null),(0,a._)([(0,l.w)("leftTableSource")],Z.prototype,"castLeftTableSource",null),(0,a._)([(0,s.MZ)({json:{write:!0}})],Z.prototype,"rightTableSource",void 0),(0,a._)([(0,u.w)("rightTableSource")],Z.prototype,"readRightTableSource",null),(0,a._)([(0,l.w)("rightTableSource")],Z.prototype,"castRightTableSource",null),(0,a._)([(0,d.e)(_)],Z.prototype,"joinType",void 0),Z=M=(0,a._)([(0,c.$)("esri.layers.support.source.JoinTableDataSource")],Z);let j=null;function C(){return j||(j=(0,p.C)({types:k()})),j}let E=null;function k(){return E||(E={key:"type",base:null,typeMap:{"data-layer":R,"map-layer":h.f}}),E}const x={key:"type",base:null,typeMap:{"join-table":Z,"query-table":S,raster:w,table:A}};let R=class extends o.A{static{b=this}constructor(e){super(e),this.type="data-layer"}clone(){const{fields:e,dataSource:t}=this;return new b({fields:e,dataSource:t})}};(0,a._)([(0,d.e)({dataLayer:"data-layer"}),(0,s.MZ)({json:{write:{isRequired:!0}}})],R.prototype,"type",void 0),(0,a._)([(0,s.MZ)({type:[y.A],json:{write:!0}})],R.prototype,"fields",void 0),(0,a._)([(0,s.MZ)({types:x,json:{write:!0}})],R.prototype,"dataSource",void 0),R=b=(0,a._)([(0,c.$)("esri.layers.support.source.DataLayerSource")],R),R.from=(0,m.dp)(R)},39357:(e,t,r)=>{r.d(t,{H:()=>l});var i,a=r(90237),n=r(25482),o=r(10107),s=(r(44208),r(53966),r(87811),r(40608));let l=i=class extends n.A{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,a._)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,a._)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],l.prototype,"code",void 0),l=i=(0,a._)([(0,s.$)("esri.layers.support.CodedValue")],l)},40876:(e,t,r)=>{r.d(t,{TS:()=>n,Tf:()=>u,V6:()=>a,c4:()=>o,qh:()=>d,z$:()=>l});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 a(e){return!!i[e]||!!i[e.toLowerCase()]}function n(e){return i[e]??i[e.toLowerCase()]}function o(e){return[...n(e)]}function s(e,t,r){r<0&&++r,r>1&&--r;const i=6*r;return i<1?e+(t-e)*i:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,i=1){const a=(e%360+360)%360/360,n=r<=.5?r*(t+1):r+t-r*t,o=2*r-n;return[Math.round(255*s(o,n,a+1/3)),Math.round(255*s(o,n,a)),Math.round(255*s(o,n,a-1/3)),i]}function d(e){const t=e.length>5,r=t?8:4,i=(1<<r)-1,a=t?1:17,n=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const s=[0,0,0,1];let l;return n&&(l=o&i,o>>=r,s[3]=a*l/255),l=o&i,o>>=r,s[2]=a*l,l=o&i,o>>=r,s[1]=a*l,l=o&i,o>>=r,s[0]=a*l,s}const u=2.2},49053:(e,t,r)=>{r.d(t,{f:()=>u});var i,a=r(90237),n=r(25482),o=r(10107),s=r(56507),l=(r(44208),r(87811),r(93223)),d=r(40608);let u=i=class extends n.A{constructor(e){super(e),this.type="map-layer"}clone(){const{mapLayerId:e,gdbVersion:t}=this;return new i({mapLayerId:e,gdbVersion:t})}};(0,a._)([(0,l.e)({mapLayer:"map-layer"}),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),(0,a._)([(0,o.MZ)({type:s.jz,json:{write:{isRequired:!0}}})],u.prototype,"mapLayerId",void 0),(0,a._)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"gdbVersion",void 0),u=i=(0,a._)([(0,d.$)("esri.layers.support.source.MapLayerSource")],u)},50498:(e,t,r)=>{r.d(t,{Ye:()=>c,gy:()=>u,yR:()=>m});var i=r(66552),a=r(5443),n=r(91075),o=r(48526),s=r(86738),l=r(39829),d=r(82799);const u=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),m={base:n.A,key:"type",typeMap:{extent:a.A,multipoint:o.A,point:s.A,polyline:d.A,polygon:l.A}}},53177:(e,t,r)=>{r.d(t,{A:()=>m});var i,a=r(90237),n=r(4718),o=r(10107),s=(r(44208),r(53966),r(93223)),l=r(40608),d=r(39357),u=r(76357);let c=class extends u.A{static{i=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new i({codedValues:(0,n.o8)(this.codedValues),name:this.name})}};(0,a._)([(0,o.MZ)({type:[d.H],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,a._)([(0,s.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=i=(0,a._)([(0,l.$)("esri.layers.support.CodedValueDomain")],c);const m=c},56400:(e,t,r)=>{r.d(t,{ZS:()=>c,hv:()=>m,wr:()=>p,qU:()=>n,N5:()=>l,P6:()=>u,L5:()=>o,n$:()=>s});const i=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var a=r(96285);const n="system",o="unknown",s="UTC",l=Intl.DateTimeFormat().resolvedOptions().timeZone,d="shortOffset";function u(e,t=!1){return{json:{read:{source:e,reader:(t,r)=>r[e]?c(r[e]):null},write:!!t&&{allowNull:!0,writer(t,r){r[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function c(e,t=n){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,t=n){if(!e||!i.has(e.timeZone))return t;const r=i.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?r:function(e){const t=a.c9.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===r?"Etc/UTC":`Etc/GMT${a.mQ.instance(-r).formatOffset(0,"narrow")}`}(r)}(e,t):t}function m(e,t,r,i,a){if(t&&"date"===a)return{timeZone:s,timeZoneName:void 0};const n=i.timeStyle||i.hour,l=r===o;return{timeZone:l?"timestamp-offset"===a?void 0:e??s:r,timeZoneName:l&&n?d:void 0}}function p(e){const t=new Set(["etc/utc","etc/gmt","gmt"]),r=new Set(Intl.supportedValuesOf("timeZone").map((e=>e.toLowerCase())));return e===n||e===o||t.has(e.toLowerCase())||r.has(e.toLowerCase())}},58174:(e,t,r)=>{r.d(t,{x:()=>i});const i=new(r(66552).J)({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"})},61956:(e,t,r)=>{r.d(t,{A:()=>C});var i=r(90237),a=r(66552),n=r(25482),o=r(4718),s=r(10107),l=r(79901),d=r(93223),u=r(40608),c=r(43937),m=r(56507),p=r(86738),y=r(16930),h=r(65864),g=r(50498),T=r(27733),S=r(69540);r(44208),r(53966),r(87811);let f=class extends(S.A.ClonableMixin(n.A)){constructor(e){super(e),this.onFields=null,this.operator=null,this.searchTerm=null,this.searchType=null}};(0,i._)([(0,s.MZ)({type:[String],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.onFields&&this.onFields.length>0}}}}})],f.prototype,"onFields",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"operator",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"searchTerm",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"searchType",void 0),f=(0,i._)([(0,u.$)("esri.rest.support.FullTextSearch")],f);const w=f;var v,A=r(27348),M=r(58174),b=r(7562),_=r(79677);const Z=new a.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let j=class extends n.A{static{v=this}static from(e){return(0,m.PZ)(v,e)}constructor(e){super(e),this.aggregateIds=null,this.cacheHint=void 0,this.compactGeometryEnabled=!1,this.datumTransformation=null,this.defaultSpatialReferenceEnabled=!1,this.distance=void 0,this.dynamicDataSource=void 0,this.formatOf3DObjects=null,this.fullText=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=void 0,this.groupByFieldsForStatistics=null,this.having=null,this.historicMoment=null,this.maxAllowableOffset=void 0,this.maxRecordCountFactor=1,this.multipatchOption=null,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.parameterValues=null,this.pixelSize=null,this.quantizationParameters=null,this.rangeValues=null,this.relationParameter=null,this.resultType=null,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnGeometry=!1,this.returnQueryGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.sqlFormat=null,this.text=null,this.timeExtent=null,this.timeReferenceUnknownClient=!1,this.units=null,this.where=null}castDatumTransformation(e){return"number"==typeof e||"object"==typeof e?e:null}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeParameterValues(e,t){if(e){const r={};for(const t in e){const i=e[t];Array.isArray(i)?r[t]=i.map((e=>e instanceof Date?e.getTime():e)):i instanceof Date?r[t]=i.getTime():r[t]=i}t.parameterValues=r}}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,t.where="1=1"}writeWhere(e,t){t.where=e||"1=1"}clone(){return new v((0,o.o8)({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,compactGeometryEnabled:this.compactGeometryEnabled,datumTransformation:this.datumTransformation,defaultSpatialReferenceEnabled:this.defaultSpatialReferenceEnabled,distance:this.distance,fullText:this.fullText,formatOf3DObjects:this.formatOf3DObjects,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:null!=this.historicMoment?new Date(this.historicMoment.getTime()):null,maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,where:this.where}))}static{this.MAX_MAX_RECORD_COUNT_FACTOR=5}};(0,i._)([(0,s.MZ)({json:{write:!0}})],j.prototype,"aggregateIds",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],j.prototype,"cacheHint",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{default:!1,write:!0}})],j.prototype,"compactGeometryEnabled",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],j.prototype,"datumTransformation",void 0),(0,i._)([(0,l.w)("datumTransformation")],j.prototype,"castDatumTransformation",null),(0,i._)([(0,s.MZ)({type:Boolean,json:{default:!1,write:!0}})],j.prototype,"defaultSpatialReferenceEnabled",void 0),(0,i._)([(0,s.MZ)({type:Number,json:{write:!0}})],j.prototype,"distance",void 0),(0,i._)([(0,s.MZ)({type:T.L,json:{write:!0}})],j.prototype,"dynamicDataSource",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],j.prototype,"formatOf3DObjects",void 0),(0,i._)([(0,s.MZ)({type:[w],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.fullText&&this.fullText.length>0}}}}})],j.prototype,"fullText",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],j.prototype,"gdbVersion",void 0),(0,i._)([(0,s.MZ)({types:g.yR,json:{read:h.rS,write:!0}})],j.prototype,"geometry",void 0),(0,i._)([(0,s.MZ)({type:Number,json:{write:!0}})],j.prototype,"geometryPrecision",void 0),(0,i._)([(0,s.MZ)({type:[String],json:{write:!0}})],j.prototype,"groupByFieldsForStatistics",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],j.prototype,"having",void 0),(0,i._)([(0,s.MZ)({type:Date})],j.prototype,"historicMoment",void 0),(0,i._)([(0,c.K)("historicMoment")],j.prototype,"writeHistoricMoment",null),(0,i._)([(0,s.MZ)({type:Number,json:{write:!0}})],j.prototype,"maxAllowableOffset",void 0),(0,i._)([(0,s.MZ)({type:Number,cast:e=>e<1?1:e>j.MAX_MAX_RECORD_COUNT_FACTOR?j.MAX_MAX_RECORD_COUNT_FACTOR:e,json:{write:{overridePolicy:e=>({enabled:e>1})}}})],j.prototype,"maxRecordCountFactor",void 0),(0,i._)([(0,s.MZ)({type:["xyFootprint"],json:{write:!0}})],j.prototype,"multipatchOption",void 0),(0,i._)([(0,s.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],j.prototype,"num",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],j.prototype,"objectIds",void 0),(0,i._)([(0,s.MZ)({type:[String],json:{write:!0}})],j.prototype,"orderByFields",void 0),(0,i._)([(0,s.MZ)({type:[String],json:{write:!0}})],j.prototype,"outFields",void 0),(0,i._)([(0,s.MZ)({type:y.A,json:{name:"outSR",write:!0}})],j.prototype,"outSpatialReference",void 0),(0,i._)([(0,s.MZ)({type:[b.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],j.prototype,"outStatistics",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],j.prototype,"parameterValues",void 0),(0,i._)([(0,c.K)("parameterValues")],j.prototype,"writeParameterValues",null),(0,i._)([(0,s.MZ)({type:p.A,json:{write:!0}})],j.prototype,"pixelSize",void 0),(0,i._)([(0,s.MZ)({type:A.A,json:{write:!0}})],j.prototype,"quantizationParameters",void 0),(0,i._)([(0,s.MZ)({type:[Object],json:{write:!0}})],j.prototype,"rangeValues",void 0),(0,i._)([(0,s.MZ)({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],j.prototype,"relationParameter",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],j.prototype,"resultType",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{default:!1,write:!0}})],j.prototype,"returnCentroid",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{default:!1,write:!0}})],j.prototype,"returnDistinctValues",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{default:!0,write:!0}})],j.prototype,"returnExceededLimitFeatures",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],j.prototype,"returnGeometry",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{default:!1,write:!0}})],j.prototype,"returnQueryGeometry",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{default:!1,write:!0}})],j.prototype,"returnM",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],j.prototype,"returnZ",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],j.prototype,"returnTrueCurves",void 0),(0,i._)([(0,s.MZ)({type:y.A,json:{write:!0}})],j.prototype,"sourceSpatialReference",void 0),(0,i._)([(0,d.e)(M.x,{ignoreUnknown:!1,name:"spatialRel"})],j.prototype,"spatialRelationship",void 0),(0,i._)([(0,s.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],j.prototype,"start",void 0),(0,i._)([(0,c.K)("start"),(0,c.K)("num")],j.prototype,"writeStart",null),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],j.prototype,"sqlFormat",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],j.prototype,"text",void 0),(0,i._)([(0,s.MZ)({type:_.A,json:{write:!0}})],j.prototype,"timeExtent",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{default:!1,write:!0}})],j.prototype,"timeReferenceUnknownClient",void 0),(0,i._)([(0,d.e)(Z,{ignoreUnknown:!1}),(0,s.MZ)({json:{write:{overridePolicy(e){return{enabled:!!e&&null!=this.distance}}}}})],j.prototype,"units",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:{overridePolicy(e){return{enabled:null!=e||null!=this.start&&this.start>0}}}}})],j.prototype,"where",void 0),(0,i._)([(0,c.K)("where")],j.prototype,"writeWhere",null),j=v=(0,i._)([(0,u.$)("esri.rest.support.Query")],j);const C=j},65864:(e,t,r)=>{r.d(t,{$B:()=>h,Bi:()=>p,Rg:()=>m,U9:()=>u,ZC:()=>d,fT:()=>c,rS:()=>y,xD:()=>T});var i=r(5443),a=r(91075),n=r(48526),o=r(86738),s=r(39829),l=r(82799);function d(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function u(e){return void 0!==e.points}function c(e){return void 0!==e.x&&void 0!==e.y}function m(e){return void 0!==e.paths||void 0!==e.curvePaths}function p(e){return void 0!==e.rings||void 0!==e.curveRings}function y(e){return null==e?null:e instanceof a.A?e:c(e)?o.A.fromJSON(e):m(e)?l.A.fromJSON(e):p(e)?s.A.fromJSON(e):u(e)?n.A.fromJSON(e):d(e)?i.A.fromJSON(e):null}function h(e){return e?c(e)?"esriGeometryPoint":m(e)?"esriGeometryPolyline":p(e)?"esriGeometryPolygon":d(e)?"esriGeometryEnvelope":u(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:s.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:n.A,esriGeometryMultiPatch:s.A};function T(e){return e&&g[e]||null}},69540:(e,t,r)=>{r.d(t,{A:()=>m});var i=r(90237),a=r(69622),n=(r(44208),r(4718)),o=(r(53966),r(97768)),s=r(35666),l=r(88620),d=r(40608);const u=e=>{let t=class extends e{clone(){const e=(0,l.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const t=e.metadata,r=e.store,i={},a=new Map;for(const e in t){const o=t[e],l=r?.originOf(e),d=o.clonable;if(o.readOnly||!1===d||l!==s.Gr.USER&&l!==s.Gr.DEFAULTS&&l!==s.Gr.WEB_MAP&&l!==s.Gr.WEB_SCENE)continue;const u=this[e];let c=null;c="function"==typeof d?d(u):"reference"===d?u:(0,n.TU)(u),null!=u&&null==c||(l===s.Gr.DEFAULTS?a.set(e,c):i[e]=c)}const d=new(0,Object.getPrototypeOf(this).constructor)(i);if(a.size){const e=(0,l.oY)(d)?.store;if(e)for(const[t,r]of a)e.set(t,r,s.Gr.DEFAULTS)}return d}};return t=(0,i._)([(0,d.$)("esri.core.Clonable")],t),t};let c=class extends(u(a.A)){};c=(0,i._)([(0,d.$)("esri.core.Clonable")],c),(c||(c={})).ClonableMixin=u;const m=c},73444:(e,t,r)=>{r.d(t,{JK:()=>l,Ml:()=>p,Z0:()=>d,oQ:()=>c});var i=r(36563);let a;const n=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,o=globalThis.document?.documentElement;function s(){const e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return n??e??t??"en"}function l(){return void 0===a&&(a=s()),a}function d(e=l()){const t=/^([a-zA-Z]{2,3})(?:[_-][a-zA-Z0-9]+)*$/.exec(e);return t?.[1].toLowerCase()}const u=[];function c(e){return u.push(e),(0,i.hA)((()=>u.splice(u.indexOf(e),1)))}const m=[];function p(e){return m.push(e),(0,i.hA)((()=>m.splice(m.indexOf(e),1)))}function y(){const e=s();a!==e&&([...m].forEach((t=>t(e))),a=e,[...u].forEach((t=>t(e))))}globalThis.addEventListener?.("languagechange",y),o&&new MutationObserver((()=>{y()})).observe(o,{attributeFilter:["lang"]})},76357:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(90237),a=r(66552),n=r(25482),o=r(10107),s=(r(44208),r(53966),r(87811),r(93223)),l=r(40608);const d=new a.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends n.A{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,i._)([(0,s.e)(d),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,i._)([(0,l.$)("esri.layers.support.Domain")],u);const c=u},79677:(e,t,r)=>{r.d(t,{A:()=>p});var i,a=r(90237),n=r(25482),o=r(88930),s=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),d=r(40608),u=r(43937),c=r(56400);let m=class extends n.A{static{i=this}static get allTime(){return y}static get empty(){return h}static fromArray(e){return new i({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,a=e.end?.getTime()??e.end;return t===i&&r===a}expandTo(e,t=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.lL)(r,e,t));let a=this.end;if(a){const r=(0,o.lL)(a,e,t);a=a.getTime()===r.getTime()?r:(0,o.S1)(r,1,e,t)}return new i({start:r,end:a})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,a=e.start?.getTime()??-1/0,n=e.end?.getTime()??1/0;let o,s;return a>=t&&a<=r?o=a:t>=a&&t<=n&&(o=t),r>=a&&r<=n?s=r:n>=t&&n<=r&&(s=n),null==o||null==s||isNaN(o)||isNaN(s)?i.empty:new i({start:o===-1/0?null:new Date(o),end:s===1/0?null:new Date(s)})}offset(e,t,r=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const a=new i,{start:n,end:s}=this;return null!=n&&(a.start=(0,o.S1)(n,e,t,r)),null!=s&&(a.end=(0,o.S1)(s,e,t,r)),a}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return y.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,a._)([(0,s.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"end",void 0),(0,a._)([(0,l.w)("end")],m.prototype,"readEnd",null),(0,a._)([(0,u.K)("end")],m.prototype,"writeEnd",null),(0,a._)([(0,s.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isAllTime",null),(0,a._)([(0,s.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isEmpty",null),(0,a._)([(0,s.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"start",void 0),(0,a._)([(0,l.w)("start")],m.prototype,"readStart",null),(0,a._)([(0,u.K)("start")],m.prototype,"writeStart",null),m=i=(0,a._)([(0,d.$)("esri.time.TimeExtent")],m);const p=m,y=new m,h=new m({start:void 0,end:void 0})},80451:(e,t,r)=>{r.d(t,{rS:()=>g,gK:()=>h}),r(44208);var i,a=r(53177),n=r(76357),o=r(90237),s=(r(53966),r(87811),r(49186),r(93223)),l=r(40608);let d=class extends n.A{static{i=this}constructor(e){super(e),this.type="inherited"}clone(){return new i}};(0,o._)([(0,s.e)({inherited:"inherited"})],d.prototype,"type",void 0),d=i=(0,o._)([(0,l.$)("esri.layers.support.InheritedDomain")],d);const u=d;var c,m=r(10107);let p=class extends n.A{static{c=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new c({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,m.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],p.prototype,"maxValue",void 0),(0,o._)([(0,m.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],p.prototype,"minValue",void 0),(0,o._)([(0,s.e)({range:"range"})],p.prototype,"type",void 0),p=c=(0,o._)([(0,l.$)("esri.layers.support.RangeDomain")],p);const y=p,h={key:"type",base:n.A,typeMap:{range:y,"coded-value":a.A,inherited:u}};function g(e){if(!e?.type)return null;switch(e.type){case"range":return y.fromJSON(e);case"codedValue":return a.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},88930:(e,t,r)=>{r.d(t,{S1:()=>s,lL:()=>d,mi:()=>l,t:()=>u,vf:()=>o});var i=r(97770),a=r(56400),n=r(96285);const o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function s(e,t,r,o=a.qU){const s=new n.oh((0,i.wj)(o)),l=n.c9.fromJSDate(e,{zone:s}),d="decades"===r||"centuries"===r?"year":c(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),l.plus({[d]:t}).toJSDate()}function l(e,t,r="milliseconds"){const i=e.getTime(),a=u(t,r,"milliseconds");return new Date(i+a)}function d(e,t,r=a.qU){const o=new n.oh((0,i.wj)(r)),s=n.c9.fromJSDate(e,{zone:o});if("decades"===t||"centuries"===t){const e=s.startOf("year"),{year:r}=e,i=r-r%("decades"===t?10:100);return e.set({year:i}).toJSDate()}const l=c(t);return s.startOf(l).toJSDate()}function u(e,t,r){return 0===e?0:e*o[t]/o[r]}function c(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},91829:(e,t,r)=>{function i(){return[0,0,0,0]}function a(e,t,r,i){return[e,t,r,i]}function n(e,t,r,i){return[e,t,r,i]}function o(e,t=[0,0,0,0]){const r=Math.min(4,e.length);for(let i=0;i<r;++i)t[i]=e[i];return t}function s(){return a(1,1,1,1)}function l(){return a(1,0,0,0)}function d(){return a(0,1,0,0)}function u(){return a(0,0,1,0)}function c(){return a(0,0,0,1)}r.d(t,{CN:()=>n,Un:()=>p,ci:()=>o,fA:()=>a,uY:()=>m,vt:()=>i});const m=[0,0,0,0],p=s(),y=l(),h=d(),g=u(),T=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_W:T,UNIT_X:y,UNIT_Y:h,UNIT_Z:g,ZEROS:m,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:i,freeze:n,fromArray:o,fromValues:a,ones:s,unitW:c,unitX:l,unitY:d,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},93223:(e,t,r)=>{r.d(t,{e:()=>n});var i=r(66552),a=r(10107);function n(e,t={}){const r=e instanceof i.J?e:new i.J(e,t),{alwaysWriteDefaults:n,default:o,ignoreUnknown:s=!0,name:l,nonNullable:d,readOnly:u=!1}=t;return(0,a.MZ)({type:s?r.apiValues:String,json:{type:r.jsonValues,default:o,name:l,read:!u&&{reader:r.read},write:{writer:r.write,alwaysWriteDefaults:n}},nonNullable:d,readOnly:u})}},95488:(e,t,r)=>{r.d(t,{I:()=>a});var i=r(11406);class a extends i.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},97770:(e,t,r)=>{r.d(t,{Ey:()=>C,F8:()=>j,J2:()=>b,Yq:()=>_,_v:()=>w,iS:()=>Z,wj:()=>E});var i=r(66552),a=r(73444),n=r(56400),o=r(96285);const s={year:void 0,month:void 0,day:void 0,weekday:void 0},l={hour:void 0,minute:void 0,second:void 0},d={timeZone:n.n$},u={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},m={year:"numeric",month:"short",day:"numeric"},p={year:"numeric",month:"long",weekday:"long",day:"numeric"},y={hour:"numeric",minute:"numeric"},h={...y,second:"numeric"},g={hourCycle:"h23"},T={...y,...g},S={...h,...g},f={"short-date":u,"short-date-short-time":{...u,...y},"short-date-short-time-24":{...u,...T},"short-date-long-time":{...u,...h},"short-date-long-time-24":{...u,...S},"short-date-le":u,"short-date-le-short-time":{...u,...y},"short-date-le-short-time-24":{...u,...T},"short-date-le-long-time":{...u,...h},"short-date-le-long-time-24":{...u,...S},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...y},"long-month-day-year-short-time-24":{...c,...T},"long-month-day-year-long-time":{...c,...h},"long-month-day-year-long-time-24":{...c,...S},"day-short-month-year":m,"day-short-month-year-short-time":{...m,...y},"day-short-month-year-short-time-24":{...m,...T},"day-short-month-year-long-time":{...m,...h},"day-short-month-year-long-time-24":{...m,...S},"long-date":p,"long-date-short-time":{...p,...y},"long-date-short-time-24":{...p,...T},"long-date-long-time":{...p,...h},"long-date-long-time-24":{...p,...S},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":y,"long-time":h},w=(0,i.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),v={ar:"ar-u-nu-latn-ca-gregory"};let A=new WeakMap;const M=f["short-date-short-time"];function b(e){return f[e]}function _(e,t=M){return function(e){let t=A.get(e);if(!t){const r=(0,a.JK)(),i=v[r]||r,o=E(e.timeZone??n.qU),s={...e,timeZone:o};t=new Intl.DateTimeFormat(i,s),A.set(e,t)}return t}(t).format(e)}function Z(e,t=M){return _(new Date(e),{...t,...d,...l})}function j(e,t=M){return _(new Date(`1970-01-01T${e}Z`),{...t,...d,...s})}function C(e,t=M){if(t.timeZone)return _(new Date(e),t);const r=o.c9.fromISO(e,{setZone:!0}),i=(0,a.JK)(),s=v[i]??i,l=0===r.offset?n.n$:t.timeZone,d={...t,timeZone:l};return r.toLocaleString(d,{locale:s})}function E(e){switch(e){case n.qU:return n.N5;case n.L5:return n.n$;default:return e}}(0,a.Ml)((()=>{A=new WeakMap}))},98453:(e,t,r)=>{r.d(t,{m:()=>i});const i=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1815],{4902:(e,t,i)=>{i.d(t,{A:()=>u});var r=i(90237),o=i(40608);let s=0;const n=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return t=(0,r._)([(0,o.$)("esri.core.Identifiable")],t),t};let l=class extends(n(class{})){};var a;l=(0,r._)([(0,o.$)("esri.core.Identifiable")],l),(a=l||(l={})).IdentifiableMixin=n,a.NumericIdentifiableMixin=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return t=(0,r._)([(0,o.$)("esri.core.Identifiable.NumericIdentifiable")],t),t};const u=l},17029:(e,t,i)=>{i.r(t),i.d(t,{default:()=>z});var r,o=i(90237),s=i(78888),n=i(49186),l=i(66552),a=i(92071),u=i(10107),c=(i(44208),i(53966),i(87811),i(40608)),p=i(86738),d=i(16930),h=i(5443),g=i(19419),y=i(4146),v=i(63074),f=i(54310),w=i(25036),b=i(33446),m=i(87045);const M=new(i(72802).U)("0/0/0",0,0,0,void 0);let A=r=class extends((0,v.dM)((0,w.j)((0,f.J)(y.A)))){constructor(){super(...arguments),this.tileInfo=m.A.create({spatialReference:d.A.WebMercator,size:256}),this.type="base-tile",this.fullExtent=new h.A(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,d.A.WebMercator),this.spatialReference=d.A.WebMercator}addResolvingPromise(e){super.addResolvingPromise(e)}getTileBounds(e,t,i,r){const o=r||(0,g.vt)();return M.level=e,M.row=t,M.col=i,M.extent=o,this.tileInfo.updateTileInfo(M),M.extent=void 0,o}fetchTile(e,t,i,r={}){const{signal:o}=r,n=this.getTileUrl(e,t,i),l={responseType:"image",signal:o,query:{...this.refreshParameters}};return(0,s.A)(n??"",l).then((e=>e.data))}async fetchImageBitmapTile(e,t,i,o={}){const{signal:n}=o;if(this.fetchTile!==r.prototype.fetchTile){const r=await this.fetchTile(e,t,i,o);return(0,b.C)(r,e,t,i,n)}const l=this.getTileUrl(e,t,i)??"",a={responseType:"blob",signal:n,query:{...this.refreshParameters}},{data:u}=await(0,s.A)(l,a);return(0,b.C)(u,e,t,i,n)}getTileUrl(){throw new n.A("basetilelayer:gettileurl-not-implemented","getTileUrl() is not implemented")}};(0,o._)([(0,u.MZ)({type:m.A})],A.prototype,"tileInfo",void 0),(0,o._)([(0,u.MZ)({type:["show","hide"]})],A.prototype,"listMode",void 0),(0,o._)([(0,u.MZ)({readOnly:!0,value:"base-tile"})],A.prototype,"type",void 0),(0,o._)([(0,u.MZ)({nonNullable:!0})],A.prototype,"fullExtent",void 0),(0,o._)([(0,u.MZ)()],A.prototype,"spatialReference",void 0),A=r=(0,o._)([(0,c.$)("esri.layers.BaseTileLayer")],A);const _=A;var x=i(16131),R=i(91806);const T=new l.J({BingMapsAerial:"aerial",BingMapsRoad:"road",BingMapsHybrid:"hybrid"});let j=class extends((0,v.dM)((0,x.q)((0,a.P)(_)))){constructor(e){super(e),this.type="bing-maps",this.tileInfo=new m.A({size:[256,256],dpi:96,origin:new p.A({x:-20037508.342787,y:20037508.342787,spatialReference:d.A.WebMercator}),spatialReference:d.A.WebMercator,lods:[new R.A({level:1,resolution:78271.5169639999,scale:295828763.795777}),new R.A({level:2,resolution:39135.7584820001,scale:147914381.897889}),new R.A({level:3,resolution:19567.8792409999,scale:73957190.948944}),new R.A({level:4,resolution:9783.93962049996,scale:36978595.474472}),new R.A({level:5,resolution:4891.96981024998,scale:18489297.737236}),new R.A({level:6,resolution:2445.98490512499,scale:9244648.868618}),new R.A({level:7,resolution:1222.99245256249,scale:4622324.434309}),new R.A({level:8,resolution:611.49622628138,scale:2311162.217155}),new R.A({level:9,resolution:305.748113140558,scale:1155581.108577}),new R.A({level:10,resolution:152.874056570411,scale:577790.554289}),new R.A({level:11,resolution:76.4370282850732,scale:288895.277144}),new R.A({level:12,resolution:38.2185141425366,scale:144447.638572}),new R.A({level:13,resolution:19.1092570712683,scale:72223.819286}),new R.A({level:14,resolution:9.55462853563415,scale:36111.909643}),new R.A({level:15,resolution:4.77731426794937,scale:18055.954822}),new R.A({level:16,resolution:2.38865713397468,scale:9027.977411}),new R.A({level:17,resolution:1.19432856685505,scale:4513.988705}),new R.A({level:18,resolution:.597164283559817,scale:2256.994353}),new R.A({level:19,resolution:.298582141647617,scale:1128.497176}),new R.A({level:20,resolution:.1492910708238085,scale:564.248588})]}),this.key=null,this.style="road",this.culture="en-US",this.region=null,this.portalUrl=null,this.hasAttributionData=!0}get bingMetadata(){return this._get("bingMetadata")}set bingMetadata(e){this._set("bingMetadata",e)}get copyright(){return null!=this.bingMetadata?this.bingMetadata.copyright:null}get operationalLayerType(){return T.toJSON(this.style)}get bingLogo(){return null!=this.bingMetadata?this.bingMetadata.brandLogoUri:null}load(e){return this.key?this.addResolvingPromise(this._getMetadata()):this.portalUrl?this.addResolvingPromise(this._getPortalBingKey().then((()=>this._getMetadata()))):this.addResolvingPromise(Promise.reject(new n.A("bingmapslayer:load","Bing layer must have bing key."))),Promise.resolve(this)}getTileUrl(e,t,i){if(!this.loaded||null==this.bingMetadata)return null;const r=this.bingMetadata.resourceSets[0].resources[0],o=r.imageUrlSubdomains[t%r.imageUrlSubdomains.length],s=this._getQuadKey(e,t,i);return r.imageUrl.replace("{subdomain}",o).replace("{quadkey}",s)}async fetchAttributionData(){return this.load().then((()=>null==this.bingMetadata?null:{contributors:this.bingMetadata.resourceSets[0].resources[0].imageryProviders.map((e=>({attribution:e.attribution,coverageAreas:e.coverageAreas.map((e=>({zoomMin:e.zoomMin,zoomMax:e.zoomMax,score:1,bbox:[e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]]})))})))}))}_getMetadata(){const e={road:"roadOnDemand",aerial:"aerial",hybrid:"aerialWithLabelsOnDemand"}[this.style];return(0,s.A)(`https://dev.virtualearth.net/REST/v1/Imagery/Metadata/${e}`,{responseType:"json",query:{include:"ImageryProviders",uriScheme:"https",key:this.key,suppressStatus:!0,output:"json",culture:this.culture,userRegion:this.region}}).then((e=>{const t=e.data;if(200!==t.statusCode)throw new n.A("bingmapslayer:getmetadata",t.statusDescription);if(this.bingMetadata=t,0===this.bingMetadata.resourceSets.length)throw new n.A("bingmapslayer:getmetadata","no bing resourcesets");if(0===this.bingMetadata.resourceSets[0].resources.length)throw new n.A("bingmapslayer:getmetadata","no bing resources")})).catch((e=>{throw new n.A("bingmapslayer:getmetadata",e.message)}))}_getPortalBingKey(){return(0,s.A)(this.portalUrl??"",{responseType:"json",authMode:"no-prompt",query:{f:"json"}}).then((e=>{if(!e.data.bingKey)throw new n.A("bingmapslayer:getportalbingkey","The referenced Portal does not contain a valid bing key");this.key=e.data.bingKey})).catch((e=>{throw new n.A("bingmapslayer:getportalbingkey",e.message)}))}_getQuadKey(e,t,i){let r="";for(let o=e;o>0;o--){let e=0;const s=1<<o-1;i&s&&(e+=1),t&s&&(e+=2),r+=e.toString()}return r}};(0,o._)([(0,u.MZ)({json:{read:!1,write:!1},value:null})],j.prototype,"bingMetadata",null),(0,o._)([(0,u.MZ)({json:{read:!1,write:!1},value:"bing-maps",readOnly:!0})],j.prototype,"type",void 0),(0,o._)([(0,u.MZ)({type:m.A})],j.prototype,"tileInfo",void 0),(0,o._)([(0,u.MZ)({type:String,readOnly:!0,json:{read:!1,write:!1}})],j.prototype,"copyright",null),(0,o._)([(0,u.MZ)({type:String,json:{write:!1,read:!1}})],j.prototype,"key",void 0),(0,o._)([(0,u.MZ)({type:T.apiValues,nonNullable:!0,json:{read:{source:"layerType",reader:T.read}}})],j.prototype,"style",void 0),(0,o._)([(0,u.MZ)({type:["BingMapsAerial","BingMapsHybrid","BingMapsRoad"]})],j.prototype,"operationalLayerType",null),(0,o._)([(0,u.MZ)({type:String,json:{write:!1,read:!1}})],j.prototype,"culture",void 0),(0,o._)([(0,u.MZ)({type:String,json:{write:!1,read:!1}})],j.prototype,"region",void 0),(0,o._)([(0,u.MZ)({type:String,json:{write:!0,read:!0}})],j.prototype,"portalUrl",void 0),(0,o._)([(0,u.MZ)({type:Boolean,json:{write:!1,read:!1}})],j.prototype,"hasAttributionData",void 0),(0,o._)([(0,u.MZ)({type:String,readOnly:!0})],j.prototype,"bingLogo",null),j=(0,o._)([(0,c.$)("esri.layers.BingMapsLayer")],j);const z=j},33446:(e,t,i)=>{i.d(t,{C:()=>n,m:()=>s});var r=i(49186),o=i(74887);async function s(e,t,i){let s;try{s=await createImageBitmap(e)}catch(e){throw new r.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,o.Te)(i),s}async function n(e,t,i,s,n){let l;try{l=await createImageBitmap(e)}catch(e){throw new r.A("request:server",`Unable to load tile ${t}/${i}/${s}`,{error:e,level:t,row:i,col:s})}return(0,o.Te)(n),l}},36708:(e,t,i)=>{i.d(t,{C_:()=>d,OH:()=>y,Vh:()=>v,on:()=>p,pc:()=>f,wB:()=>a,z7:()=>u});var r=i(37955),o=i(36563),s=i(97768),n=i(74887),l=i(14012);function a(e,t,i={}){return c(e,t,i,h)}function u(e,t,i={}){return c(e,t,i,g)}function c(e,t,i={},r){let o=null;const n=i.once?(e,i)=>{r(e)&&((0,s.xt)(o),t(e,i))}:(e,i)=>{r(e)&&t(e,i)};if(o=(0,l.Cn)(e,n,i.sync,i.equals),i.initial){const t=e();n(t,t)}return o}function p(e,t,i,n={}){let l=null,u=null,c=null;function p(){l&&u&&(u.remove(),n.onListenerRemove?.(l),l=null,u=null)}function d(e){n.once&&n.once&&(0,s.xt)(c),i(e)}const h=a(e,((e,i)=>{p(),(0,r.wb)(e)&&(l=e,u=(0,r.on)(e,t,d),n.onListenerAdd?.(e))}),{sync:n.sync,initial:!0});return c=(0,o.hA)((()=>{h.remove(),p()})),c}function d(e,t){return function(e,t,i){if((0,n.G4)(i))return Promise.reject((0,n.NK)());const r=e();if(t?.(r))return Promise.resolve(r);let l=null;function a(){l=(0,s.xt)(l)}return new Promise(((r,s)=>{l=(0,o.vE)([(0,n.u7)(i,(()=>{a(),s((0,n.NK)())})),c(e,(e=>{a(),r(e)}),{sync:!1,once:!0},t??h)])}))}(e,g,t)}function h(e){return!0}function g(e){return!!e}i(80559);const y={sync:!0},v={initial:!0},f={sync:!0,initial:!0}},72802:(e,t,i)=>{i.d(t,{U:()=>r});class r{constructor(e,t,i,r,o=void 0){this.id=e,this.level=t,this.row=i,this.col=r,this.extent=o}}},78553:(e,t,i)=>{i.d(t,{D:()=>s,p:()=>o});var r=i(56507);function o(e){const t=(0,r.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function s(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},87045:(e,t,i)=>{i.d(t,{A:()=>x});var r,o=i(90237),s=i(66552),n=i(25482),l=i(83047),a=i(10107),u=i(56507),c=(i(44208),i(87811),i(36005)),p=i(40608),d=i(43937),h=i(86738),g=i(16930),y=i(19419),v=i(21325),f=i(28735),w=i(91806),b=i(72802);const m=new s.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let M=class extends n.A{static{r=this}static create(e={}){const{resolutionFactor:t=1,scales:i,size:o=256,spatialReference:s=g.A.WebMercator,numLODs:n=24}=e;if(!(0,v.fn)(s)){const e=[];if(i)for(let t=0;t<i.length;t++){const r=i[t];e.push(new w.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let i=n-1;i>=0;i--)e.unshift(new w.A({level:i,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new h.A(0,0,s),size:[o,o],spatialReference:s})}const a=(0,v.Vp)(s),u=e.origin?new h.A({x:e.origin.x,y:e.origin.y,spatialReference:s}):new h.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:s}:{x:0,y:0,spatialReference:s}),c=1/(39.37*(0,l.GA)(s)*96),p=[];if(i)for(let e=0;e<i.length;e++){const t=i[e],r=t*c;p.push(new w.A({level:e,scale:t,resolution:r}))}else{let e=(0,v.EA)(s)?512/o*591657527.5917094:256/o*591657527.591555;const i=Math.ceil(n/t);p.push(new w.A({level:0,scale:e,resolution:e*c}));for(let r=1;r<i;r++){const i=e/2**t,o=i*c;p.push(new w.A({level:r,scale:i,resolution:o})),e=i}}return new r({dpi:96,lods:p,origin:u,size:[o,o],spatialReference:s})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const i=(0,v.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return h.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0;const r=[],o=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach((e=>{r.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,o[e.level]=e}))),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const i=Math.floor(e),r=i+1;return t[i]/(t[i]/t[r])**(e-i)}scaleToZoom(e){const t=this.scales,i=t.length-1;let r=0;for(;r<i;r++){const i=t[r],o=t[r+1];if(i<=e)return r;if(o===e)return r+1;if(i>e&&o<e)return r+Math.log(i/e)/Math.log(i/o)}return r}tileAt(e,t,i,r){const o=this.lodAt(e);if(!o)return null;let s,n;if("number"==typeof t)s=t,n=i;else if((0,v.aI)(t.spatialReference,this.spatialReference))s=t.x,n=t.y,r=i;else{const e=(0,f.Cv)(t,this.spatialReference);if(null==e)return null;s=e.x,n=e.y,r=i}const l=o.resolution*this.size[0],a=o.resolution*this.size[1];return r||(r=new b.U(null,0,0,0,(0,y.vt)())),r.level=e,r.row=Math.floor((this.origin.y-n)/a+.001),r.col=Math.floor((s-this.origin.x)/l+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=r.ExtrapolateOptions.NONE){let i=this.lodAt(e.level);if(!i&&t===r.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return;const o=e.level-i.level,s=i.resolution*this.size[0]/2**o,n=i.resolution*this.size[1]/2**o;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,y.vt)()),e.extent[0]=this.origin.x+e.col*s,e.extent[1]=this.origin.y-(e.row+1)*n,e.extent[2]=e.extent[0]+s,e.extent[3]=e.extent[1]+n}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const i=this.lodAt(t.level);if(null==i)return null;const{resolution:r}=i,o=r*this.size[0],s=r*this.size[1];return e[0]=this.origin.x+t.col*o,e[1]=this.origin.y-(t.row+1)*s,e[2]=e[0]+o,e[3]=e[1]+s,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const i=[],o=this.lods.length-t;for(let e=0;e<o;e++){const r=e+t,{scale:o,resolution:s}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new w.A({level:e,scale:o,resolution:s}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){const r=e[i];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};var A,_;(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],M.prototype,"compressionQuality",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],M.prototype,"dpi",void 0),(0,o._)([(0,a.MZ)({type:String,json:{read:m.read,write:m.write,origins:{"web-scene":{read:!1,write:!1}}}})],M.prototype,"format",void 0),(0,o._)([(0,a.MZ)({readOnly:!0})],M.prototype,"isWrappable",null),(0,o._)([(0,a.MZ)({type:h.A,json:{write:!0}})],M.prototype,"origin",void 0),(0,o._)([(0,c.w)("origin")],M.prototype,"readOrigin",null),(0,o._)([(0,a.MZ)({type:[w.A],value:null,json:{write:!0}})],M.prototype,"lods",null),(0,o._)([(0,a.MZ)({readOnly:!0})],M.prototype,"scales",void 0),(0,o._)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],M.prototype,"size",void 0),(0,o._)([(0,c.w)("size",["rows","cols"])],M.prototype,"readSize",null),(0,o._)([(0,d.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],M.prototype,"writeSize",null),(0,o._)([(0,a.MZ)({type:g.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),M=r=(0,o._)([(0,p.$)("esri.layers.support.TileInfo")],M),(_=(A=M||(M={})).ExtrapolateOptions||(A.ExtrapolateOptions={}))[_.NONE=0]="NONE",_[_.POWER_OF_TWO=1]="POWER_OF_TWO";const x=M},91806:(e,t,i)=>{i.d(t,{A:()=>c});var r,o=i(90237),s=i(25482),n=i(10107),l=i(56507),a=(i(44208),i(87811),i(40608));let u=class extends s.A{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,o._)([(0,n.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"cols",void 0),(0,o._)([(0,n.MZ)({type:l.jz,json:{write:!0}})],u.prototype,"level",void 0),(0,o._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"levelValue",void 0),(0,o._)([(0,n.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"origin",void 0),(0,o._)([(0,n.MZ)({type:Number,json:{write:!0}})],u.prototype,"resolution",void 0),(0,o._)([(0,n.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"rows",void 0),(0,o._)([(0,n.MZ)({type:Number,json:{write:!0}})],u.prototype,"scale",void 0),u=r=(0,o._)([(0,a.$)("esri.layers.support.LOD")],u);const c=u}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2165],{751:(e,t,r)=>{r.d(t,{CJ:()=>p});var a=r(49186),n=r(4718),i=r(93637),s=r(67124),o=r(83531);const l=new Set(["bing-maps","imagery","imagery-tile","map-image","open-street-map","tile","unknown","unsupported","vector-tile","web-tile","wcs","wms","wmts"]),c=new Set(["catalog","csv","feature","geo-rss","geojson","group","imagery","imagery-tile","kml","knowledge-graph","map-image","map-notes","media","ogc-feature","oriented-imagery","route","stream","subtype-group","tile","unknown","unsupported","vector-tile","web-tile","wcs","wfs","wms","wmts"]);function u(e,t){if(t.restrictedWebMapWriting){const r=function(e){return"basemap"===e.layerContainerType?l:"operational-layers"===e.layerContainerType?c:null}(t);return null==r||r.has(e.type)&&!(0,o.Ov)(e)}return!0}function y(e,t){"maxScale"in e&&(t.maxScale=(0,s.B)(e.maxScale)??void 0),"minScale"in e&&(t.minScale=(0,s.B)(e.minScale)??void 0)}function p(e,t,r){if(!e.persistenceEnabled)return null;if(!("write"in e)||!e.write)return r?.messages&&r.messages.push(new a.A("layer:unsupported",`Layers (${e.title}, ${e.id}) of type '${e.declaredClass}' cannot be persisted`,{layer:e})),null;if((0,o.Ov)(e)&&!e.isTable)t=e.resourceInfo;else if(u(e,r)){const t={};return e.write(t,r)?t:null}return null!=t&&function(e,t){if(function(e,t){if(t)if((0,o.Ov)(e)){const r=(0,i.wc)("featureCollection.layers",t),a=r?.[0]?.layerDefinition;a&&y(e,a)}else"group"!==e.type&&y(e,t)}(e,t),t&&(t.id=e.id,"blendMode"in e&&(t.blendMode=e.blendMode,"normal"===t.blendMode&&delete t.blendMode),t.opacity=(0,s.B)(e.opacity)??void 0,t.title=e.title||"Layer",t.visibility=e.visible,"legendEnabled"in e&&"wmts"!==e.type))if((0,o.Ov)(e)){const r=t.featureCollection;r&&(r.showLegend=e.legendEnabled)}else t.showLegend=e.legendEnabled}(e,t=(0,n.o8)(t)),t}},8303:(e,t,r)=>{r.d(t,{A:()=>S});var a=r(90237),n=r(92602),i=r(70333),s=r(78888),o=r(60999),l=r(49186),c=r(53966),u=r(97768),y=r(74887),p=r(84952),d=r(10107),f=(r(44208),r(87811),r(36005)),h=r(40608),m=r(43937),g=r(83531),v=r(20655),L=r(80812),b=r(41318),w=r(10407);const S=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new L.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:a}=await r.e(1204).then(r.bind(r,41204));return(0,y.Te)(t),await a({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,y.zf)(e)||c.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,y.QP)(e),!0))))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:a},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",a),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,y.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const a=!i.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,a);let s,o;if(n)s=r.portal.url;else try{s=await(0,g.wI)(this.url,t)}catch(e){(0,y.QP)(e)}if(!s||!(0,p.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(i.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,y.QP)(e)}const l=!0,c=!1,u=!1;if(!o)return{features:{edit:l,fullEdit:c},content:{updateItem:u}};try{if(n?await r.reload():(r=new L.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,a)}catch(e){(0,y.QP)(e)}return{features:{edit:l,fullEdit:c},content:{updateItem:u}}}_getUserPrivileges(e,t){const r=(0,w.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,y.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?i.id?.findCredential(this.url):null;if(!t)return!0;const r=I.credential===t?I.user:await this._fetchEditingUser(e);return I.credential=t,I.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=i.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const a=`${r.owningSystemUrl}/sharing/rest`,n=v.A.getDefault();if(n&&n.loaded&&(0,p.S8)(n.restUrl)===(0,p.S8)(a))return n.user;const l=`${a}/community/self`,c=null!=e?e.signal:null,u=await(0,o.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:c}));return u.ok?b.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,a=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&a&&!(0,p.ut)(a.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,a._)([(0,d.MZ)({type:L.default})],t.prototype,"portalItem",null),(0,a._)([(0,f.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,a._)([(0,m.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,a._)([(0,d.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,a._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,a._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,a._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,a._)([(0,h.$)("esri.layers.mixins.PortalLayer")],t),t},I={credential:null,user:null}},8947:(e,t,r)=>{r.d(t,{L:()=>s});var a=r(60999),n=r(74887),i=r(67076);async function s(e,t,r){const s=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(s&&"unique-value"===s.type&&s.styleOrigin){const o=await(0,a.Ke)(s.populateFromStyle());if((0,n.Te)(r),!1===o.ok){const r=o.error;t?.messages&&t.messages.push(new i.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},22429:(e,t,r)=>{r.d(t,{v:()=>n});var a=r(24183);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,t){const r=this._serviceMetadatas.get(e);if(r)return r;const n=await(0,a.V)(e,t);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:t}=e;if(!t)return null;const{_itemDatas:r}=this;if(r.has(t))return r.get(t);const a=await e.fetchData();return r.set(t,a),a}async fetchCustomParameters(e,t){const r=await this.fetchItemData(e);return r&&"object"==typeof r&&(t?t(r):r.customParameters)||null}}},25036:(e,t,r)=>{r.d(t,{j:()=>s});var a=r(90237),n=r(10107),i=(r(44208),r(53966),r(87811),r(40608));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,a._)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,a._)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,a._)([(0,n.MZ)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,a._)([(0,i.$)("esri.layers.mixins.ScaleRangeLayer")],t),t}},26121:(e,t,r)=>{r.d(t,{c:()=>s,d:()=>n});var a=r(49186);async function n(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}const i=new Set(["layer:unsupported","property:unsupported","symbol:unsupported","symbol-layer:unsupported","url:unsupported"]);function s(e,t,r){let n=(e.messages??[]).filter((({type:e})=>"error"===e)).map((({name:e,message:t,details:r})=>new a.A(e,t,r)));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map((e=>new a.A("url:unsupported",`Relative url '${e}' is not supported`))))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:a}=r;e&&(n=n.filter((({name:e})=>!(i.has(e)||t.includes(e))))),a&&(n=n.filter((e=>"web-document-write:property-required"!==e.name)))}if(n.length>0)throw new a.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}},36708:(e,t,r)=>{r.d(t,{C_:()=>p,OH:()=>h,Vh:()=>m,on:()=>y,pc:()=>g,wB:()=>l,z7:()=>c});var a=r(37955),n=r(36563),i=r(97768),s=r(74887),o=r(14012);function l(e,t,r={}){return u(e,t,r,d)}function c(e,t,r={}){return u(e,t,r,f)}function u(e,t,r={},a){let n=null;const s=r.once?(e,r)=>{a(e)&&((0,i.xt)(n),t(e,r))}:(e,r)=>{a(e)&&t(e,r)};if(n=(0,o.Cn)(e,s,r.sync,r.equals),r.initial){const t=e();s(t,t)}return n}function y(e,t,r,s={}){let o=null,c=null,u=null;function y(){o&&c&&(c.remove(),s.onListenerRemove?.(o),o=null,c=null)}function p(e){s.once&&s.once&&(0,i.xt)(u),r(e)}const d=l(e,((e,r)=>{y(),(0,a.wb)(e)&&(o=e,c=(0,a.on)(e,t,p),s.onListenerAdd?.(e))}),{sync:s.sync,initial:!0});return u=(0,n.hA)((()=>{d.remove(),y()})),u}function p(e,t){return function(e,t,r){if((0,s.G4)(r))return Promise.reject((0,s.NK)());const a=e();if(t?.(a))return Promise.resolve(a);let o=null;function l(){o=(0,i.xt)(o)}return new Promise(((a,i)=>{o=(0,n.vE)([(0,s.u7)(r,(()=>{l(),i((0,s.NK)())})),u(e,(e=>{l(),a(e)}),{sync:!1,once:!0},t??d)])}))}(e,f,t)}function d(e){return!0}function f(e){return!!e}r(80559);const h={sync:!0},m={initial:!0},g={sync:!0,initial:!0}},38961:(e,t,r)=>{r.d(t,{A:()=>u});var a=r(90237),n=r(5503),i=r(36708),s=r(10107),o=r(40608),l=r(80559);let c=class extends n.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,l.fm)((()=>this._refresh()),i.OH))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new n.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const a of t)if(a){if(r(a)){const t=this.indexOf(a,e);t>=0?t!==e&&this.reorder(a,e):this.add(a,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(a);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,a._)([(0,s.MZ)()],c.prototype,"getCollections",void 0),(0,a._)([(0,s.MZ)()],c.prototype,"getChildrenFunction",void 0),(0,a._)([(0,s.MZ)()],c.prototype,"itemFilterFunction",void 0),c=(0,a._)([(0,o.$)("esri.core.CollectionFlattener")],c);const u=c},45613:(e,t,r)=>{r.d(t,{fromItem:()=>p,n:()=>d});var a=r(49186),n=r(92009),i=r(23154),s=r(22429),o=r(83531),l=r(4513),c=r(80812),u=r(66964),y=r(10407);async function p(e){let{portalItem:t}=e;!t||t instanceof c.default||(t=new c.default(t));const r=await async function(e){await e.load();const t=new s.v;return async function(e){const t=e.className,r=l.S[t];return{constructor:await r(),properties:e.properties}}(await d(e,t))}(t);return new(0,r.constructor)({portalItem:t,...r.properties})}async function d(e,t){switch(e.type){case"3DTiles Service":return e.typeKeywords.includes("3DObject")?{className:"UnsupportedLayer"}:{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const t=(0,y.Y)(e,"Map Notes"),r=(0,y.Y)(e,"Markup");if(t||r)return{className:"MapNotesLayer"};if((0,y.Y)(e,"Route Layer"))return{className:"RouteLayer"};const a=await e.fetchData();return 1===(0,u.XH)(a)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,t){const r=await f(e,t);if("object"==typeof r){const{sourceJSON:e,className:t}=r,a={sourceJSON:e};return null!=r.id&&(a.layerId=r.id),{className:t||"FeatureLayer",properties:a}}return{className:"GroupLayer"}}(e,t);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,t){await e.load();const r=e.typeKeywords?.map((e=>e.toLowerCase()))??[];if(r.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(r.includes("tiled imagery"))return{className:"ImageryTileLayer"};const a=await t.fetchItemData(e),n=a?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const i=await t.fetchServiceMetadata(e.url,{customParameters:await t.fetchCustomParameters(e)}),s=i.cacheType?.toLowerCase(),o=i.capabilities?.toLowerCase().includes("tilesonly"),l=i.tileInfo?.format?.toLowerCase()??"",c=null==s&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(l);return"map"===s||c||o?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,t);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,t){return await async function(e,t){const{tileInfo:r}=await t.fetchServiceMetadata(e.url,{customParameters:await t.fetchCustomParameters(e)});return r}(e,t)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,t);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,t){const r=await f(e,t,(async()=>{try{if(!e.url)return[];const{serverUrl:r}=await(0,n.L)(e.url,{sceneLayerItem:e}),a=await t.fetchServiceMetadata(r);return a?.tables??[]}catch{return[]}}));if("object"==typeof r){const a={};let n;if(null!=r.id?(a.layerId=r.id,n=`${e.url}/layers/${r.id}`):n=e.url,e.typeKeywords?.length)for(const t of Object.keys(o.XX))if(e.typeKeywords.includes(t))return{className:o.XX[t]};const i=await t.fetchServiceMetadata(n,{customParameters:await t.fetchCustomParameters(e,(e=>(0,u.pJ)(e)?.customParameters))});return{className:o.XX[i?.layerType]||"SceneLayer",properties:a}}if(!1===r){const r=await t.fetchServiceMetadata(e.url);if("Voxel"===r?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,t);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new a.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function f(e,t,r){const{url:a,type:n}=e,s="Feature Service"===n;if(!a)return{};if(/\/\d+$/.test(a)){if(s){const r=await t.fetchServiceMetadata(a,{customParameters:await t.fetchCustomParameters(e,(e=>(0,u.pJ)(e)?.customParameters))});return{id:r.id,className:(0,i.K)(r.type),sourceJSON:r}}return{}}await e.load();let o=await t.fetchItemData(e);if(s){const e=await(0,u.bO)(o,a,t),r=h(e);if("object"==typeof r){const t=(0,u.rc)(e,r.id);r.className=(0,u.K8)(t?.layerType)}return r}if("Scene Service"===n&&(o=await(0,u.nu)(e,o,t)),(0,u.XH)(o)>0)return h(o);const l=await t.fetchServiceMetadata(a);return r&&(l.tables=await r()),h(l)}function h(e){return 1===(0,u.XH)(e)&&{id:(0,u.pJ)(e)?.id}}},62885:(e,t,r)=>{r.d(t,{H:()=>i,V:()=>n});var a=r(5503);function n(e,t,r=a.A){return t||(t=new r),t===e||(t.removeAll(),(n=e)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?t.addMany(e):e&&t.add(e)),t;var n}function i(e){return e}},63074:(e,t,r)=>{r.d(t,{LF:()=>u,dM:()=>y,sU:()=>l});var a=r(90237),n=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),s=r(89317),o=r(76369);const l={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:s.K}},"portal-item":{read:!0,write:{layerContainerTypes:s.K}}}}},c={read:{reader:o.LF},write:{allowNull:!0,writer:o.M9,layerContainerTypes:s.K}},u={json:{read:!1,write:!1,origins:{"web-map":c,"portal-item":c}}},y=e=>{let t=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,a._)([(0,n.MZ)(l)],t.prototype,"blendMode",void 0),(0,a._)([(0,n.MZ)(u)],t.prototype,"effect",void 0),t=(0,a._)([(0,i.$)("esri.layers.mixins.BlendLayer")],t),t}},66964:(e,t,r)=>{r.d(t,{Ju:()=>c,K8:()=>p,XH:()=>u,_r:()=>i,bO:()=>s,l:()=>y,nu:()=>d,pJ:()=>o,rc:()=>l});var a=r(92009),n=r(23154);function i(e){const t={id:e.id,name:e.name},r=(0,n.K)(e.type);return"FeatureLayer"!==r&&(t.layerType=r),t}async function s(e,t,r){if(null==e?.layers||null==e?.tables){const a=await r.fetchServiceMetadata(t,{customParameters:o(e)?.customParameters});(e=e||{}).layers=e.layers||a?.layers?.map(i),e.tables=e.tables||a?.tables?.map(i)}return e}function o(e){if(!e)return null;const{layers:t,tables:r}=e;return t?.length?t[0]:r?.length?r[0]:null}function l(e,t){return null==t?null:[...e.layers||[],...e.tables||[]].find((e=>e.id===t))}function c(e,t){return[...e.layers||[],...e.tables||[]].filter((({layerType:e})=>e?t.includes(e):t.includes("ArcGISFeatureLayer")))}function u(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function y(e){switch(e){case"catalog":return["CatalogLayer"];case"feature":return["ArcGISFeatureLayer"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function p(e){switch(e){case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return"FeatureLayer"}async function d(e,t,r){if(!e?.url)return t??{};if(t??={},!t.layers){const a=await r.fetchServiceMetadata(e.url);t.layers=a.layers?.map(i)}const{serverUrl:n,portalItem:s}=await(0,a.L)(e.url,{sceneLayerItem:e,customParameters:o(t)?.customParameters}).catch((()=>({serverUrl:null,portalItem:null})));if(null==n)return t.tables=[],t;if(!t.tables&&s){const e=await s.fetchData().catch((()=>null));if(e?.tables)t.tables=e.tables.map(i);else{const a=await r.fetchServiceMetadata(n,{customParameters:o(e)?.customParameters}).catch((()=>null));t.tables=a?.tables?.map(i)}}if(t.tables)for(const e of t.tables)e.url=`${n}/${e.id}`;return t}},75356:(e,t,r)=>{r.d(t,{N:()=>M,populateOperationalLayers:()=>u});var a=r(5503),n=(r(44208),r(22429)),i=r(4513),s=r(80812);function o(e,t){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===t}var l=r(45613),c=r(8947);async function u(e,t,r){if(!t)return;const a=t.map((e=>async function(e,t){return async function(e,t,r){const a=new e;return a.read(t,r.context),"group"===a.type&&("GroupLayer"===t.layerType?await M(a,t,r):I(t)?function(e,t,r){t.itemId&&(e.portalItem=new s.default({id:t.itemId,portal:r?.portal}),e.when((()=>{const a=a=>{const n=a.layerId;C(a,e,t,n,r);const i=t.featureCollection?.layers?.[n];i&&a.read(i,r)};e.layers?.forEach(a),e.tables?.forEach(a)})))}(a,t,r.context):S(t)&&await async function(e,t,r){const a=i.S.FeatureLayer,n=await a(),s=t.featureCollection,o=s?.showLegend,l=s?.layers?.map(((a,i)=>{const s=new n;s.read(a,r);const l={...r,ignoreDefaults:!0};return C(s,e,t,i,l),null!=o&&s.read({showLegend:o},l),s}));e.layers.addMany(l??[])}(a,t,r.context)),await(0,c.L)(a,r.context),a}(await w(e,t),e,t)}(e,r))),n=await Promise.allSettled(a);for(const t of n)"rejected"===t.status||t.value&&e.add(t.value)}const y={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",Object3DTilesLayer:"UnsupportedLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},p={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},d={ArcGISFeatureLayer:"FeatureLayer"},f={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",DefaultTileLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},h={ArcGISAnnotationLayer:"UnsupportedLayer",ArcGISDimensionLayer:"UnsupportedLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},m={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},g={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",DefaultTileLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},v={...h,LinkChartLayer:"LinkChartLayer"},L={...m},b={...g};async function w(e,t){const r=t.context,a=A(r);let c=e.layerType||e.type;!c&&t?.defaultLayerType&&(c=t.defaultLayerType);const u=a[c];let y=u?i.S[u]:i.S.UnknownLayer;if(I(e)){const t=r?.portal;if(e.itemId){const r=new s.default({id:e.itemId,portal:t});await r.load();const a=(await(0,l.n)(r,new n.v)).className||"UnknownLayer";y=i.S[a]}}else"ArcGISFeatureLayer"===c?function(e){return o(e,"notes")}(e)||function(e){return o(e,"markup")}(e)?y=i.S.MapNotesLayer:function(e){return o(e,"route")}(e)?y=i.S.RouteLayer:S(e)&&(y=i.S.GroupLayer):e.wmtsInfo?.url&&e.wmtsInfo.layerIdentifier?y=i.S.WMTSLayer:"WFS"===c&&"2.0.0"!==e.wfsInfo?.version&&(y=i.S.UnsupportedLayer);return y()}function S(e){return"ArcGISFeatureLayer"===e.layerType&&!I(e)&&(e.featureCollection?.layers?.length??0)>1}function I(e){return"Feature Collection"===e.type}function A(e){let t;switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap":t=f;break;case"ground":t=p;break;case"tables":t=d;break;default:t=y}break;case"link-chart":switch(e.layerContainerType){case"basemap":t=b;break;case"tables":t=L;break;default:t=v}break;default:switch(e.layerContainerType){case"basemap":t=g;break;case"tables":t=m;break;default:t=h}}return t}async function M(e,t,r){const n=new a.A,i=u(n,Array.isArray(t.layers)?t.layers:[],r);try{try{if(await i,"group"===e.type)return e.layers.addMany(n),e}catch(t){e.destroy();for(const e of n)e.destroy();throw t}}catch(e){throw e}}function C(e,t,r,a,n){e.read({id:`${t.id}-sublayer-${a}`,visibility:r.visibleLayers?.includes(a)??!0},n)}},76369:(e,t,r)=>{r.d(t,{LF:()=>I,M9:()=>A});var a=r(49186),n=r(93637),i=r(40876),s=r(59247),o=r(27865);function l(e,t,r,a){var n=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(n,l.prototype),n.expected=t,n.found=r,n.location=a,n.name="SyntaxError",n}function c(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}function u(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=y(e);return t&&0!==t.length?t:null}const t=e.map((e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new a.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:y(e.value)}}));t.sort(((e,t)=>t.effects.length-e.effects.length));for(let e=0;e<t.length-1;e++){if(!(0,o.mj)(t[e].effects,t[e+1].effects))throw new a.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,o.O9)(t[e].effects,t[e+1].effects)}return t.sort(((e,t)=>t.scale-e.scale)),t}function y(e){let t;if(!e)return[];try{t=function(e,t){var r,a={},n=(t=void 0!==t?t:{}).grammarSource,i={start:Be},s=Be,o="none",c=")",u=",",y="(",p="%",d="px",f="cm",h="mm",m="in",g="pt",v="pc",L="deg",b="rad",w="grad",S="turn",I="#",A=".",M="e",C=/^[ \t\n\r]/,T=/^[a-z\-]/,x=/^[0-9a-fA-F]/,_=/^[+\-]/,G=/^[0-9]/,F=We("none"),P=ke("none",!1),O=ke(")",!1),N=ke(",",!1),$=We("whitespace"),E=Re([" ","\t","\n","\r"],!1,!1),U=We("function"),V=ke("(",!1),k=We("identifier"),R=Re([["a","z"],"-"],!1,!1),W=We("percentage"),D=ke("%",!1),j=We("length"),H=ke("px",!1),B=ke("cm",!1),K=ke("mm",!1),Z=ke("in",!1),J=ke("pt",!1),X=ke("pc",!1),q=We("angle"),z=ke("deg",!1),Q=ke("rad",!1),Y=ke("grad",!1),ee=ke("turn",!1),te=We("number"),re=We("color"),ae=ke("#",!1),ne=Re([["0","9"],["a","f"],["A","F"]],!1,!1),ie=Re(["+","-"],!1,!1),se=Re([["0","9"]],!1,!1),oe=ke(".",!1),le=ke("e",!1),ce=function(){return[]},ue=function(e,t){return{type:"function",name:e,parameters:t||[]}},ye=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map((function(e){return e[3]}))}(t))}(e,t):[e]},pe=function(e){return{type:"quantity",value:e.value,unit:e.unit}},de=function(e){return{type:"color",colorType:e.type,value:e.value}},fe=function(e){return e},he=function(){return Ve()},me=function(e){return{value:e,unit:"%"}},ge=function(e){return{value:e,unit:"px"}},ve=function(e){return{value:e,unit:"cm"}},Le=function(e){return{value:e,unit:"mm"}},be=function(e){return{value:e,unit:"in"}},we=function(e){return{value:e,unit:"pt"}},Se=function(e){return{value:e,unit:"pc"}},Ie=function(e){return{value:e,unit:"deg"}},Ae=function(e){return{value:e,unit:"rad"}},Me=function(e){return{value:e,unit:"grad"}},Ce=function(e){return{value:e,unit:"turn"}},Te=function(e){return{value:e,unit:null}},xe=function(){return{type:"hex",value:Ve()}},_e=function(e){return{type:"function",value:e}},Ge=function(){return{type:"named",value:Ve()}},Fe=function(){return parseFloat(Ve())},Pe=0|t.peg$currPos,Oe=Pe,Ne=[{line:1,column:1}],$e=Pe,Ee=t.peg$maxFailExpected||[],Ue=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');s=i[t.startRule]}function Ve(){return e.substring(Oe,Pe)}function ke(e,t){return{type:"literal",text:e,ignoreCase:t}}function Re(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function We(e){return{type:"other",description:e}}function De(t){var r,a=Ne[t];if(a)return a;if(t>=Ne.length)r=Ne.length-1;else for(r=t;!Ne[--r];);for(a={line:(a=Ne[r]).line,column:a.column};r<t;)10===e.charCodeAt(r)?(a.line++,a.column=1):a.column++,r++;return Ne[t]=a,a}function je(e,t,r){var a=De(e),i=De(t);return{source:n,start:{offset:e,line:a.line,column:a.column},end:{offset:t,line:i.line,column:i.column}}}function He(e){Pe<$e||(Pe>$e&&($e=Pe,Ee=[]),Ee.push(e))}function Be(){var e;return(e=Ke())===a&&(e=function(){var e,t;if(e=[],(t=Ze())!==a)for(;t!==a;)e.push(t),t=Ze();else e=a;return e}()),e}function Ke(){var t,r;return Ue++,t=Pe,Xe(),e.substr(Pe,4)===o?(r=o,Pe+=4):(r=a,0===Ue&&He(P)),r!==a?(Xe(),Oe=t,t=ce()):(Pe=t,t=a),Ue--,t===a&&0===Ue&&He(F),t}function Ze(){var t,r,n,i;return t=Pe,Xe(),(r=function(){var t,r,n;return Ue++,t=Pe,(r=qe())!==a?(40===e.charCodeAt(Pe)?(n=y,Pe++):(n=a,0===Ue&&He(V)),n!==a?(Oe=t,t=fe(r)):(Pe=t,t=a)):(Pe=t,t=a),Ue--,t===a&&(r=a,0===Ue&&He(U)),t}())!==a?(Xe(),(n=function(){var t,r,n,i,s,o,l,c;if(t=Pe,(r=Je())!==a){for(n=[],i=Pe,s=Xe(),44===e.charCodeAt(Pe)?(o=u,Pe++):(o=a,0===Ue&&He(N)),o===a&&(o=null),l=Xe(),(c=Je())!==a?i=s=[s,o,l,c]:(Pe=i,i=a);i!==a;)n.push(i),i=Pe,s=Xe(),44===e.charCodeAt(Pe)?(o=u,Pe++):(o=a,0===Ue&&He(N)),o===a&&(o=null),l=Xe(),(c=Je())!==a?i=s=[s,o,l,c]:(Pe=i,i=a);Oe=t,t=ye(r,n)}else Pe=t,t=a;return t}())===a&&(n=null),Xe(),41===e.charCodeAt(Pe)?(i=c,Pe++):(i=a,0===Ue&&He(O)),i!==a?(Xe(),Oe=t,t=ue(r,n)):(Pe=t,t=a)):(Pe=t,t=a),t}function Je(){var e,t;return e=Pe,(t=ze())===a&&(t=Qe())===a&&(t=Ye())===a&&(t=function(){var e,t;return Ue++,e=Pe,Xe(),(t=tt())!==a?(Oe=e,e=Te(t)):(Pe=e,e=a),Ue--,e===a&&0===Ue&&He(te),e}()),t!==a&&(Oe=e,t=pe(t)),(e=t)===a&&(e=Pe,(t=et())!==a&&(Oe=e,t=de(t)),e=t),e}function Xe(){var t,r;for(Ue++,t=[],r=e.charAt(Pe),C.test(r)?Pe++:(r=a,0===Ue&&He(E));r!==a;)t.push(r),r=e.charAt(Pe),C.test(r)?Pe++:(r=a,0===Ue&&He(E));return Ue--,r=a,0===Ue&&He($),t}function qe(){var t,r,n;if(Ue++,t=Pe,r=[],n=e.charAt(Pe),T.test(n)?Pe++:(n=a,0===Ue&&He(R)),n!==a)for(;n!==a;)r.push(n),n=e.charAt(Pe),T.test(n)?Pe++:(n=a,0===Ue&&He(R));else r=a;return r!==a&&(Oe=t,r=he()),Ue--,(t=r)===a&&(r=a,0===Ue&&He(k)),t}function ze(){var t,r,n;return Ue++,t=Pe,Xe(),(r=tt())!==a?(37===e.charCodeAt(Pe)?(n=p,Pe++):(n=a,0===Ue&&He(D)),n!==a?(Oe=t,t=me(r)):(Pe=t,t=a)):(Pe=t,t=a),Ue--,t===a&&0===Ue&&He(W),t}function Qe(){var t,r,n;return Ue++,t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===d?(n=d,Pe+=2):(n=a,0===Ue&&He(H)),n!==a?(Oe=t,t=ge(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===f?(n=f,Pe+=2):(n=a,0===Ue&&He(B)),n!==a?(Oe=t,t=ve(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===h?(n=h,Pe+=2):(n=a,0===Ue&&He(K)),n!==a?(Oe=t,t=Le(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===m?(n=m,Pe+=2):(n=a,0===Ue&&He(Z)),n!==a?(Oe=t,t=be(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===g?(n=g,Pe+=2):(n=a,0===Ue&&He(J)),n!==a?(Oe=t,t=we(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===v?(n=v,Pe+=2):(n=a,0===Ue&&He(X)),n!==a?(Oe=t,t=Se(r)):(Pe=t,t=a)):(Pe=t,t=a)))))),Ue--,t===a&&0===Ue&&He(j),t}function Ye(){var t,r,n;return Ue++,t=Pe,(r=tt())!==a?(e.substr(Pe,3)===L?(n=L,Pe+=3):(n=a,0===Ue&&He(z)),n!==a?(Oe=t,t=Ie(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,(r=tt())!==a?(e.substr(Pe,3)===b?(n=b,Pe+=3):(n=a,0===Ue&&He(Q)),n!==a?(Oe=t,t=Ae(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,(r=tt())!==a?(e.substr(Pe,4)===w?(n=w,Pe+=4):(n=a,0===Ue&&He(Y)),n!==a?(Oe=t,t=Me(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,(r=tt())!==a?(e.substr(Pe,4)===S?(n=S,Pe+=4):(n=a,0===Ue&&He(ee)),n!==a?(Oe=t,t=Ce(r)):(Pe=t,t=a)):(Pe=t,t=a)))),Ue--,t===a&&(r=a,0===Ue&&He(q)),t}function et(){var t,r,n,i;if(Ue++,t=Pe,35===e.charCodeAt(Pe)?(r=I,Pe++):(r=a,0===Ue&&He(ae)),r!==a){if(n=[],i=e.charAt(Pe),x.test(i)?Pe++:(i=a,0===Ue&&He(ne)),i!==a)for(;i!==a;)n.push(i),i=e.charAt(Pe),x.test(i)?Pe++:(i=a,0===Ue&&He(ne));else n=a;n!==a?(Oe=t,t=xe()):(Pe=t,t=a)}else Pe=t,t=a;return t===a&&(t=Pe,(r=Ze())!==a&&(Oe=t,r=_e(r)),(t=r)===a&&(t=Pe,(r=qe())!==a&&(Oe=t,r=Ge()),t=r)),Ue--,t===a&&(r=a,0===Ue&&He(re)),t}function tt(){var t,r,n,i,s,o,l,c;for(t=Pe,r=e.charAt(Pe),_.test(r)?Pe++:(r=a,0===Ue&&He(ie)),r===a&&(r=null),n=Pe,i=[],s=e.charAt(Pe),G.test(s)?Pe++:(s=a,0===Ue&&He(se));s!==a;)i.push(s),s=e.charAt(Pe),G.test(s)?Pe++:(s=a,0===Ue&&He(se));if(46===e.charCodeAt(Pe)?(s=A,Pe++):(s=a,0===Ue&&He(oe)),s!==a){if(o=[],l=e.charAt(Pe),G.test(l)?Pe++:(l=a,0===Ue&&He(se)),l!==a)for(;l!==a;)o.push(l),l=e.charAt(Pe),G.test(l)?Pe++:(l=a,0===Ue&&He(se));else o=a;o!==a?n=i=[i,s,o]:(Pe=n,n=a)}else Pe=n,n=a;if(n===a)if(n=[],i=e.charAt(Pe),G.test(i)?Pe++:(i=a,0===Ue&&He(se)),i!==a)for(;i!==a;)n.push(i),i=e.charAt(Pe),G.test(i)?Pe++:(i=a,0===Ue&&He(se));else n=a;if(n!==a){if(i=Pe,101===e.charCodeAt(Pe)?(s=M,Pe++):(s=a,0===Ue&&He(le)),s!==a){if(o=e.charAt(Pe),_.test(o)?Pe++:(o=a,0===Ue&&He(ie)),o===a&&(o=null),l=[],c=e.charAt(Pe),G.test(c)?Pe++:(c=a,0===Ue&&He(se)),c!==a)for(;c!==a;)l.push(c),c=e.charAt(Pe),G.test(c)?Pe++:(c=a,0===Ue&&He(se));else l=a;l!==a?i=s=[s,o,l]:(Pe=i,i=a)}else Pe=i,i=a;i===a&&(i=null),Oe=t,t=Fe()}else Pe=t,t=a;return t}if(r=s(),t.peg$library)return{peg$result:r,peg$currPos:Pe,peg$FAILED:a,peg$maxFailExpected:Ee,peg$maxFailPos:$e};if(r!==a&&Pe===e.length)return r;throw r!==a&&Pe<e.length&&He({type:"end"}),function(e,t,r){return new l(l.buildMessage(e,t),e,t,r)}(Ee,$e<e.length?e.charAt($e):null,$e<e.length?je($e,$e+1):je($e,$e))}(e)}catch(t){throw new a.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map((e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return p(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0])),new s.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return p(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0])),new s.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return p(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=h[e.unit]))throw new a.A("effect:type-error",`Expected <angle>, Actual: ${d(e)}`,{term:e})}(e),e.value*h[e.unit]||0}(e.parameters[0])),new s.Nd(t)}(e);case"blur":return function(e){let t=0;return p(e.parameters,1),1===e.parameters.length&&(t=v(e.parameters[0]),f(t,e.parameters[0])),new s.Fk(t)}(e);case"drop-shadow":return function(e){const t=[];let r=null;for(const n of e.parameters)if("color"===n.type){if(t.length&&Object.freeze(t),r)throw new a.A("effect:type-error","Accepts only one color",{});r=L(n)}else{const e=v(n);if(Object.isFrozen(t))throw new a.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&f(e,n)}if(t.length<2||t.length>3)throw new a.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new s.$b(t[0],t[1],t[2]||0,r||b("black"))}(e);case"bloom":return function(e){let t=1,r=0,a=0;return p(e.parameters,3),e.parameters[0]&&(t=g(e.parameters[0])),e.parameters[1]&&(r=v(e.parameters[1]),f(r,e.parameters[1])),e.parameters[2]&&(a=g(e.parameters[2])),new s.bv(t,r,a)}(e)}}catch(t){throw t.details.filter=e,t}throw new a.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e)))}function p(e,t){if(e.length>t)throw new a.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function d(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in m)return"<length>";if(e.unit in h)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function f(e,t){if(e<0)throw new a.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}(function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r})(l,Error),l.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var r,a=null;for(r=0;r<e.length;r++)if(e[r].source===this.location.source){a=e[r].text.split(/\r\n|\n|\r/g);break}var n=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(n):n,s=this.location.source+":"+i.line+":"+i.column;if(a){var o=this.location.end,l=c("",i.line.toString().length," "),u=a[n.line-1],y=(n.line===o.line?o.column:u.length+1)-n.column||1;t+="\n --\x3e "+s+"\n"+l+" |\n"+i.line+" | "+u+"\n"+l+" | "+c("",n.column-1," ")+c("",y,"^")}else t+="\n at "+s}return t},l.buildMessage=function(e,t){var r={literal:function(e){return'"'+n(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e)}));return"["+(e.inverted?"^":"")+t.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function a(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+a(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+a(e)}))}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+a(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+a(e)}))}function s(e){return r[e.type](e)}return"Expected "+function(e){var t,r,a=e.map(s);if(a.sort(),a.length>0){for(t=1,r=1;t<a.length;t++)a[t-1]!==a[t]&&(a[r]=a[t],r++);a.length=r}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(e)+" but "+function(e){return e?'"'+n(e)+'"':"end of input"}(t)+" found."};const h={deg:1,grad:.9,rad:180/Math.PI,turn:360},m={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new a.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${d(e)}`,{term:e})}(e);const t=e.value;return f(t,e),"%"===e.unit?.01*t:t}function v(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=m[e.unit]))throw new a.A("effect:type-error",`Expected <length>, Actual: ${d(e)}`,{term:e})}(e),e.value*m[e.unit]||0}function L(e){switch(e.colorType){case"hex":return(0,i.qh)(e.value);case"named":return b(e.value);case"function":return function(e){if(p(e.parameters,4),w.test(e.name))return[g(e.parameters[0]),g(e.parameters[1]),g(e.parameters[2]),e.parameters[3]?g(e.parameters[3]):1];if(S.test(e.name))return(0,i.z$)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new a.A("effect:type-error",`Expected <double>, Actual: ${d(e)}`,{term:e})}(e),f(e.value,e),e.value}(e.parameters[0]),g(e.parameters[1]),g(e.parameters[2]),e.parameters[3]?g(e.parameters[3]):1);throw new a.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function b(e){if(!(0,i.V6)(e))throw new a.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,i.c4)(e)}const w=/^rgba?/i,S=/^hsla?/i;function I(e,t,r){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:M(r.value)});return t}return M(e)}(e)}catch(e){r?.messages?.push(e)}return null}function A(e,t,r,a){try{const a=function(e){const t=u(e);return t?(0,o.dw)(t)?t.map((e=>e.toJSON())):t.map((({scale:e,effects:t})=>({scale:e,value:t.map((e=>e.toJSON()))}))):null}(e);(0,n.sM)(r,a,t)}catch(e){a.messages&&a.messages.push(e)}}function M(e){if(!e?.length)return"";const t=[];for(const r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[C(r,"amount")];break;case"blur":e=[C(r,"radius","pt")];break;case"hue-rotate":e=[C(r,"angle","deg")];break;case"drop-shadow":e=[C(r,"xoffset","pt"),C(r,"yoffset","pt"),C(r,"blurRadius","pt"),T(r,"color")];break;case"bloom":e=[C(r,"strength"),C(r,"radius","pt"),C(r,"threshold")]}const a=`${r.type}(${e.filter(Boolean).join(" ")})`;u(a),t.push(a)}return t.join(" ")}function C(e,t,r){if(null==e[t])throw new a.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function T(e,t){if(null==e[t])throw new a.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},78553:(e,t,r)=>{r.d(t,{D:()=>i,p:()=>n});var a=r(56507);function n(e){const t=(0,a.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function i(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},81583:(e,t,r)=>{r.d(t,{L:()=>o,g:()=>s});var a=r(60999),n=r(5503),i=r(92474);async function s(e,t){return await e.load(),o(e,t)}async function o(e,t){const r=[],s=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?s(...t):n.A.isCollection(t)?t.forEach((e=>s(e))):i.A.isLoadable(t)&&r.push(t))};t(s);let o=null;if(await(0,a.Tj)(r,(async e=>{const t=await(0,a.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||o||(o=t)})),o)throw o.error;return e}},85989:(e,t,r)=>{r.r(t),r.d(t,{default:()=>E});var a=r(90237),n=r(38961),i=r(81583),s=r(53966),o=r(92071),l=r(74887),c=r(36708),u=r(10107),y=(r(44208),r(87811),r(88620)),p=r(36005),d=r(40608),f=r(43937),h=r(35666),m=r(4146),g=r(63074),v=r(16131),L=r(8303),b=r(25036),w=r(75356),S=r(4513),I=r(80812),A=r(5503),M=r(62885);function C(e,t,r){let a,n;if(e)for(let i=0,s=e.length;i<s;i++){if(a=e.at(i),a?.[t]===r)return a;if("group"===a?.type&&(n=C(a.layers,t,r),n))return n}}const T=e=>{let t=class extends e{constructor(...e){super(...e),this.layers=new A.A;const t=e=>{e.parent=this,this.layerAdded(e),"elevation"!==e.type&&"base-elevation"!==e.type||s.A.getLogger(this).error(`Layer 'title:${e.title}, id:${e.id}' of type '${e.type}' is not supported as an operational layer and will therefore be ignored.`)},r=e=>{e.parent=null,this.layerRemoved(e)};this.addHandles([this.layers.on("before-add",(e=>{if(e.item===this)return e.preventDefault(),void s.A.getLogger(this).error("#add()","Cannot add layer to itself.");(e=>{e.parent&&"remove"in e.parent&&e.parent.remove(e)})(e.item)})),this.layers.on("after-add",(e=>t(e.item))),this.layers.on("after-remove",(e=>r(e.item)))])}destroy(){const e=this.layers.toArray();for(const t of e)t.destroy();this.layers.destroy()}set layers(e){this._set("layers",(0,M.V)(e,this._get("layers")))}add(e,t){const r=this.layers;if(t=r.getNextIndex(t),e instanceof m.A){const a=e;a.parent===this?this.reorder(a,t):r.add(a,t)}else(0,l.$X)(e)?e.then((e=>{this.destroyed||this.add(e,t)})):s.A.getLogger(this).error("#add()","The item being added is not a Layer or a Promise that resolves to a Layer.")}addMany(e,t){const r=this.layers;let a=r.getNextIndex(t);e.slice().forEach((e=>{e.parent!==this?(r.add(e,a),a+=1):this.reorder(e,a)}))}findLayerById(e){return C(this.layers,"id",e)}findLayerByUid(e){return C(this.layers,"uid",e)}remove(e){return this.layers.remove(e)}removeMany(e){return this.layers.removeMany(e)}removeAll(){return this.layers.removeAll()}reorder(e,t){return this.layers.reorder(e,t)}layerAdded(e){}layerRemoved(e){}};return(0,a._)([(0,u.MZ)()],t.prototype,"layers",null),t=(0,a._)([(0,d.$)("esri.support.LayersMixin")],t),t},x=new Set(["feature","subtype-group"]);function _(e,t,r){if(e)for(let a=0,n=e.length;a<n;a++){const n=e.at(a);if(n[t]===r)return n;if("group"===n?.type){const e=_(n.tables,t,r);if(e)return e}}}const G=e=>{let t=class extends e{constructor(...e){super(...e),this.tables=new A.A,this.addHandles([this.tables.on("after-add",(e=>{const t=e.item;t.parent&&t.parent!==this&&"tables"in t.parent&&t.parent.tables.remove(t),t.parent=this,x.has(t.type)||s.A.getLogger(this).error(`Layer 'title:${t.title}, id:${t.id}' of type '${t.type}' is not supported as a table and will therefore be ignored.`)})),this.tables.on("after-remove",(e=>{e.item.parent=null}))])}destroy(){const e=this.tables.toArray();for(const t of e)t.destroy();this.tables.destroy()}set tables(e){this._set("tables",(0,M.V)(e,this._get("tables")))}findTableById(e){return _(this.tables,"id",e)}findTableByUid(e){return _(this.tables,"uid",e)}};return(0,a._)([(0,u.MZ)()],t.prototype,"tables",null),t=(0,a._)([(0,d.$)("esri.support.TablesMixin")],t),t},F=Symbol("WebScene");var P=r(92935),O=r(26121),N=r(751);let $=class extends((0,g.dM)((0,b.j)((0,v.q)((0,L.A)(G(T((0,o.P)(m.A)))))))){constructor(e){var t;super(e),this.allLayers=new n.A({getCollections:()=>[this.layers],getChildrenFunction:e=>"layers"in e?e.layers:null}),this.allTables=(t=this,new n.A({getCollections:()=>[t.tables,t.layers],getChildrenFunction:e=>{const t=[];return"tables"in e&&t.push(e.tables),"layers"in e&&t.push(e.layers),t},itemFilterFunction:e=>{const t=e.parent;return!!t&&"tables"in t&&t.tables.includes(e)}})),this.fullExtent=void 0,this.operationalLayerType="GroupLayer",this.spatialReference=void 0,this.type="group",this._debouncedSaveOperations=(0,l.sg)((async(e,t,a)=>{const{save:n,saveAs:i}=await r.e(2958).then(r.bind(r,32958));switch(e){case P.X.SAVE:return n(this,t);case P.X.SAVE_AS:return i(this,a,t)}}))}initialize(){this._enforceVisibility(this.visibilityMode,this.visible),this.addHandles([(0,c.wB)((()=>{let e=this.parent;for(;e&&"parent"in e&&e.parent;)e=e.parent;return e&&F in e}),(e=>{const t="prevent-adding-tables";this.removeHandles(t),e&&(this.tables.removeAll(),this.addHandles((0,c.on)((()=>this.tables),"before-add",(e=>{e.preventDefault(),s.A.getLogger(this).errorOnce("tables","tables in group layers in a webscene are not supported. Please move the tables from the group layer to the webscene if you want to persist them.")})),t))}),c.pc),(0,c.wB)((()=>this.visible),this._onVisibilityChange.bind(this),c.OH)])}destroy(){this.allLayers.destroy(),this.allTables.destroy()}get sourceIsPortalItem(){return this.portalItem&&this.originIdOf("portalItem")===h.Gr.USER}_writeLayers(e,t,r,a){const n=[];if(!e)return n;e.forEach((e=>{const t=(0,N.CJ)(e,a.webmap?a.webmap.getLayerJSONFromResourceInfo(e):null,a);t?.layerType&&n.push(t)})),t.layers=n}set portalItem(e){this._set("portalItem",e)}readPortalItem(e,t,r){const{itemId:a,layerType:n}=t;if("GroupLayer"===n&&a)return new I.default({id:a,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}set visibilityMode(e){const t=this._get("visibilityMode")!==e;this._set("visibilityMode",e),t&&this._enforceVisibility(e,this.visible)}async beforeSave(){return(0,O.d)(this)}load(e){const t=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Group Layer","Scene Service"],layerModuleTypeMap:S.S,populateGroupLayer:w.N},e).catch((e=>{if((0,l.QP)(e),this.sourceIsPortalItem)throw e}));return this.addResolvingPromise(t),Promise.resolve(this)}async loadAll(){return(0,i.g)(this,(e=>{e(this.layers,this.tables)}))}async save(e){return this._debouncedSaveOperations(P.X.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(P.X.SAVE_AS,t,e)}layerAdded(e){e.visible&&"exclusive"===this.visibilityMode?this._turnOffOtherLayers(e):"inherited"===this.visibilityMode&&(e.visible=this.visible),this.hasHandles(e.uid)?console.error(`Layer read to Grouplayer: uid=${e.uid}`):this.addHandles((0,c.wB)((()=>e.visible),(t=>this._onChildVisibilityChange(e,t)),c.OH),e.uid)}layerRemoved(e){this.removeHandles(e.uid),this._enforceVisibility(this.visibilityMode,this.visible)}_turnOffOtherLayers(e){this.layers.forEach((t=>{t!==e&&(t.visible=!1)}))}_enforceVisibility(e,t){if(!(0,y.oY)(this).initialized)return;const r=this.layers;let a=r.find((e=>e.visible));switch(e){case"exclusive":r.length&&!a&&(a=r.at(0),a.visible=!0),this._turnOffOtherLayers(a);break;case"inherited":r.forEach((e=>{e.visible=t}))}}_onVisibilityChange(e){"inherited"===this.visibilityMode&&this.layers.forEach((t=>{t.visible=e}))}_onChildVisibilityChange(e,t){switch(this.visibilityMode){case"exclusive":t?this._turnOffOtherLayers(e):this._isAnyLayerVisible()||(e.visible=!0);break;case"inherited":e.visible=this.visible}}_isAnyLayerVisible(){return this.layers.some((e=>e.visible))}};(0,a._)([(0,u.MZ)({readOnly:!0,dependsOn:[]})],$.prototype,"allLayers",void 0),(0,a._)([(0,u.MZ)({readOnly:!0})],$.prototype,"allTables",void 0),(0,a._)([(0,u.MZ)({json:{read:!0,write:!0}})],$.prototype,"blendMode",void 0),(0,a._)([(0,u.MZ)()],$.prototype,"fullExtent",void 0),(0,a._)([(0,u.MZ)({readOnly:!0})],$.prototype,"sourceIsPortalItem",null),(0,a._)([(0,u.MZ)({json:{read:!1,write:{ignoreOrigin:!0}}})],$.prototype,"layers",void 0),(0,a._)([(0,f.K)("layers")],$.prototype,"_writeLayers",null),(0,a._)([(0,u.MZ)({type:["GroupLayer"]})],$.prototype,"operationalLayerType",void 0),(0,a._)([(0,u.MZ)({json:{origins:{"web-map":{read:!1,write:{overridePolicy(e,t,r){return{enabled:"Group Layer"===e?.type&&r?.initiator!==this}}}},"web-scene":{read:!1,write:!1}}}})],$.prototype,"portalItem",null),(0,a._)([(0,p.w)("web-map","portalItem",["itemId"])],$.prototype,"readPortalItem",null),(0,a._)([(0,f.K)("web-map","portalItem",{itemId:{type:String}})],$.prototype,"writePortalItem",null),(0,a._)([(0,u.MZ)()],$.prototype,"spatialReference",void 0),(0,a._)([(0,u.MZ)({json:{read:!1},readOnly:!0,value:"group"})],$.prototype,"type",void 0),(0,a._)([(0,u.MZ)({type:["independent","inherited","exclusive"],value:"independent",json:{write:!0,origins:{"web-map":{type:["independent","exclusive"],write:(e,t,r)=>{"inherited"!==e&&(t[r]=e)}}}}})],$.prototype,"visibilityMode",null),$=(0,a._)([(0,d.$)("esri.layers.GroupLayer")],$);const E=$},92935:(e,t,r)=>{var a;r.d(t,{X:()=>a}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(a||(a={}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3116],{751:(e,t,r)=>{r.d(t,{CJ:()=>d});var a=r(49186),n=r(4718),s=r(93637),i=r(67124),o=r(83531);const l=new Set(["bing-maps","imagery","imagery-tile","map-image","open-street-map","tile","unknown","unsupported","vector-tile","web-tile","wcs","wms","wmts"]),c=new Set(["catalog","csv","feature","geo-rss","geojson","group","imagery","imagery-tile","kml","knowledge-graph","map-image","map-notes","media","ogc-feature","oriented-imagery","route","stream","subtype-group","tile","unknown","unsupported","vector-tile","web-tile","wcs","wfs","wms","wmts"]);function u(e,t){if(t.restrictedWebMapWriting){const r=function(e){return"basemap"===e.layerContainerType?l:"operational-layers"===e.layerContainerType?c:null}(t);return null==r||r.has(e.type)&&!(0,o.Ov)(e)}return!0}function p(e,t){"maxScale"in e&&(t.maxScale=(0,i.B)(e.maxScale)??void 0),"minScale"in e&&(t.minScale=(0,i.B)(e.minScale)??void 0)}function d(e,t,r){if(!e.persistenceEnabled)return null;if(!("write"in e)||!e.write)return r?.messages&&r.messages.push(new a.A("layer:unsupported",`Layers (${e.title}, ${e.id}) of type '${e.declaredClass}' cannot be persisted`,{layer:e})),null;if((0,o.Ov)(e)&&!e.isTable)t=e.resourceInfo;else if(u(e,r)){const t={};return e.write(t,r)?t:null}return null!=t&&function(e,t){if(function(e,t){if(t)if((0,o.Ov)(e)){const r=(0,s.wc)("featureCollection.layers",t),a=r?.[0]?.layerDefinition;a&&p(e,a)}else"group"!==e.type&&p(e,t)}(e,t),t&&(t.id=e.id,"blendMode"in e&&(t.blendMode=e.blendMode,"normal"===t.blendMode&&delete t.blendMode),t.opacity=(0,i.B)(e.opacity)??void 0,t.title=e.title||"Layer",t.visibility=e.visible,"legendEnabled"in e&&"wmts"!==e.type))if((0,o.Ov)(e)){const r=t.featureCollection;r&&(r.showLegend=e.legendEnabled)}else t.showLegend=e.legendEnabled}(e,t=(0,n.o8)(t)),t}},18047:(e,t,r)=>{r.d(t,{ZV:()=>l,yx:()=>o});var a=r(73444);const n={ar:"ar-u-nu-latn"};let s=new WeakMap,i={};function o(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function l(e,t){return Object.is(e,-0)&&(e=0),function(e){const t=e||i;if(!s.has(t)){const r=(0,a.JK)(),i=n[(0,a.JK)()]||r;s.set(t,new Intl.NumberFormat(i,e))}return s.get(t)}(t).format(e)}(0,a.Ml)((()=>{s=new WeakMap,i={}})),new Map},47566:(e,t,r)=>{r(97770),r(18047),r(71754),r(73444);var a=r(10838),n=r(78888),s=r(49186);async function i(e){if(null!=o.fetchBundleAsset)return o.fetchBundleAsset(e);const t=await(0,n.A)(e,{responseType:"text"});return JSON.parse(t.data)}const o={};var l,c=r(2741);(0,a.ao)((l={pattern:"esri/",location:c.s},new class{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let a;a="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=a,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,n){const o=t.exec(r);if(!o)throw new s.A("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const l=o[1]?`${o[1]}/`:"",c=o[2],u=(0,a.xO)(n),p=`${l}${c}.json`,d=u?`${l}${c}_${u}.json`:p;let y;try{y=await i(e(d))}catch(t){if(d===p)throw new s.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:t});try{y=await i(e(p))}catch(e){throw new s.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}}return y}(this.getAssetUrl,this.matcher,e,t)}}(l)))},60999:(e,t,r)=>{r.d(t,{DZ:()=>f,Ke:()=>y,Tj:()=>u,UT:()=>h,jJ:()=>c});var a=r(90237),n=r(69622),s=r(97768),i=r(74887),o=r(10107),l=r(40608);function c(e,t,r){return(0,i.Lx)(e.map(((e,a)=>t.apply(r,[e,a]))))}async function u(e,t,r){return(await(0,i.Lx)(e.map(((e,a)=>t.apply(r,[e,a]))))).map((e=>e.value))}function p(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function y(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return d(e)}}async function f(e){try{return p(await e)}catch(e){return(0,i.QP)(e),d(e)}}function h(e,t){return new m(e,t)}let m=class extends n.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then((e=>{this._result=p(e),this._cleanup()}),(e=>{this._result=d(e),this._cleanup()})),this._abortHandle=(0,i.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,a._)([(0,o.MZ)()],m.prototype,"value",null),(0,a._)([(0,o.MZ)()],m.prototype,"error",null),(0,a._)([(0,o.MZ)()],m.prototype,"finished",null),(0,a._)([(0,o.MZ)()],m.prototype,"promise",void 0),(0,a._)([(0,o.MZ)()],m.prototype,"_result",void 0),m=(0,a._)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],m)},62885:(e,t,r)=>{r.d(t,{H:()=>s,V:()=>n});var a=r(5503);function n(e,t,r=a.A){return t||(t=new r),t===e||(t.removeAll(),(n=e)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?t.addMany(e):e&&t.add(e)),t;var n}function s(e){return e}},71754:(e,t,r)=>{r.d(t,{V:()=>c});var a=r(53966),n=r(93637),s=r(799),i=r(97770),o=r(18047);const l=()=>a.A.getLogger("esri.intl.substitute");function c(e,t,r={}){const{format:a={}}=r;return(0,s.HC)(e,(e=>function(e,t,r){let a,s;const i=e.indexOf(":");if(-1===i?a=e.trim():(a=e.slice(0,i).trim(),s=e.slice(i+1).trim()),!a)return"";const o=(0,n.wc)(a,t);if(null==o)return"";const l=(s?r?.[s]:null)??r?.[a];return l?u(o,l):s?p(o,s):d(o)}(e,t,a)))}function u(e,t){switch(t.type){case"date":return(0,i.Yq)(e,t.intlOptions);case"number":return(0,o.ZV)(e,t.intlOptions);default:return l().warn("missing format descriptor for key {key}"),d(e)}}function p(e,t){switch(t.toLowerCase()){case"dateformat":return(0,i.Yq)(e);case"numberformat":return(0,o.ZV)(e);default:return l().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,i.Yq)(e):/^numberformat/i.test(t)?(0,o.ZV)(e):d(e)}}function d(e){switch(typeof e){case"string":return e;case"number":return(0,o.ZV)(e);case"boolean":return""+e;default:return e instanceof Date?(0,i.Yq)(e):""}}},81583:(e,t,r)=>{r.d(t,{L:()=>o,g:()=>i});var a=r(60999),n=r(5503),s=r(92474);async function i(e,t){return await e.load(),o(e,t)}async function o(e,t){const r=[],i=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?i(...t):n.A.isCollection(t)?t.forEach((e=>i(e))):s.A.isLoadable(t)&&r.push(t))};t(i);let o=null;if(await(0,a.Tj)(r,(async e=>{const t=await(0,a.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||o||(o=t)})),o)throw o.error;return e}},83116:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Z});var a=r(90237),n=r(78888),s=r(5503),i=r(62885),o=r(25482),l=r(4718),c=r(92474),u=r(81583),p=r(53966),d=r(97768),y=r(74887),f=r(84952),h=r(10107),m=(r(44208),r(40608)),b=r(43937),w=r(16930),g=r(20655),v=r(80812),L=r(43281),_=(r(47566),r(69622)),A=(r(87811),r(73444)),I=r(10838);let M=class extends _.A{constructor(e){super(e),this.apiKey=null,this.id=null,this.language=null,this.places=null,this.serviceUrl="https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2",this.worldview=null}get languageParameter(){const e=this.language;let t="local"===e||"global"===e?e:(0,I.xO)(e??(0,A.JK)())??"global";return t="no"===t?"nb":t,t}};(0,a._)([(0,h.MZ)()],M.prototype,"apiKey",void 0),(0,a._)([(0,h.MZ)()],M.prototype,"id",void 0),(0,a._)([(0,h.MZ)()],M.prototype,"language",void 0),(0,a._)([(0,h.MZ)()],M.prototype,"places",void 0),(0,a._)([(0,h.MZ)()],M.prototype,"serviceUrl",void 0),(0,a._)([(0,h.MZ)()],M.prototype,"worldview",void 0),M=(0,a._)([(0,m.$)("esri.support.BasemapStyle")],M);const S=M;var x,C=r(751);let $=0,k=x=class extends(o.A.JSONSupportMixin(c.A)){constructor(e){super(e),this.id=null,this.portalItem=null,this.spatialReference=null,this.style=null,this.thumbnailUrl=null,this.title="Basemap",this.id=Date.now().toString(16)+"-basemap-"+$++,this.baseLayers=new s.A,this.referenceLayers=new s.A;const t=e=>{e.parent&&e.parent!==this&&"remove"in e.parent&&e.parent.remove(e),e.parent=this,"elevation"===e.type&&p.A.getLogger(this).error(`Layer '${e.title}, id:${e.id}' of type '${e.type}' is not supported as a basemap layer and will therefore be ignored.`)},r=e=>{e.parent=null};this.addHandles([this.baseLayers.on("after-add",(e=>t(e.item))),this.referenceLayers.on("after-add",(e=>t(e.item))),this.baseLayers.on("after-remove",(e=>r(e.item))),this.referenceLayers.on("after-remove",(e=>r(e.item)))])}initialize(){this.when().catch((e=>{p.A.getLogger(this).error("#load()",`Failed to load basemap (title: '${this.title}', id: '${this.id}')`,e)})),this.resourceInfo&&this.read(this.resourceInfo.data,this.resourceInfo.context)}destroy(){const e=this.baseLayers.toArray();for(const t of e)t.destroy();const t=this.referenceLayers.toArray();for(const e of t)e.destroy();this.baseLayers.destroy(),this.referenceLayers.destroy(),this.portalItem=(0,d.pR)(this.portalItem)}normalizeCtorArgs(e){return e&&"resourceInfo"in e&&(this._set("resourceInfo",e.resourceInfo),delete(e={...e}).resourceInfo),e}set baseLayers(e){this._set("baseLayers",(0,i.V)(e,this._get("baseLayers")))}_writeBaseLayers(e,t,r){const a=[];e?(r={...r,layerContainerType:"basemap"},this.baseLayers.forEach((e=>{const t=(0,C.CJ)(e,r.webmap?r.webmap.getLayerJSONFromResourceInfo(e):null,r);null!=t&&a.push(t)})),this.referenceLayers.forEach((e=>{const t=(0,C.CJ)(e,r.webmap?r.webmap.getLayerJSONFromResourceInfo(e):null,r);null!=t&&("scene"!==e.type&&(t.isReference=!0),a.push(t))})),t.baseMapLayers=a):t.baseMapLayers=a}set referenceLayers(e){this._set("referenceLayers",(0,i.V)(e,this._get("referenceLayers")))}writeTitle(e,t){t.title=e||"Basemap"}load(e){return this.addResolvingPromise(this._loadFromSource(e)),Promise.resolve(this)}loadAll(){return(0,u.g)(this,(e=>{e(this.baseLayers,this.referenceLayers)}))}clone(){const e={id:this.id,title:this.title,portalItem:this.portalItem,baseLayers:this.baseLayers.map((e=>(0,l.Nb)(e)?e.clone():e)),referenceLayers:this.referenceLayers.map((e=>(0,l.Nb)(e)?e.clone():e))};return this.loaded&&(e.loadStatus="loaded"),new x({resourceInfo:this.resourceInfo}).set(e)}read(e,t){this.resourceInfo||this._set("resourceInfo",{data:e,context:t}),super.read(e,t)}write(e,t){return e=e||{},t?.origin||(t={origin:"web-map",...t}),super.write(e,t),!this.loaded&&this.resourceInfo?.data.baseMapLayers&&(e.baseMapLayers=this.resourceInfo.data.baseMapLayers.map((e=>{const t=(0,l.o8)(e);return t.url&&(0,f.BQ)(t.url)&&(t.url=`https:${t.url}`),t.templateUrl&&(0,f.BQ)(t.templateUrl)&&(t.templateUrl=`https:${t.templateUrl}`),t}))),e}async _loadFromSource(e){const{resourceInfo:t,portalItem:r,style:a}=this;(0,y.Te)(e);const n=[];if(t){const r=t.context?t.context.url:null;if(n.push(this._loadLayersFromJSON(t.data,r,e)),t.data.id&&!t.data.title){const e=t.data.id;n.push((0,L.q)(e).then((e=>{e&&this.read({title:e},t.context)})))}}else r?n.push(this._loadFromItem(r,e)):a&&n.push(this._loadFromStylesService(a,e));await Promise.all(n)}async _loadLayersFromJSON(e,t,a){const n=this.resourceInfo?.context,s=this.portalItem?.portal||n?.portal||null,i=O[n?.origin||""]??"web-map",{populateOperationalLayers:o}=await Promise.all([r.e(7251),r.e(5356)]).then(r.bind(r,75356)),l=[];if((0,y.Te)(a),e.baseMapLayers&&Array.isArray(e.baseMapLayers)){const r={context:{...n,origin:i,url:t,portal:s,layerContainerType:"basemap"},defaultLayerType:"DefaultTileLayer"},a=e=>"web-scene"===i&&"ArcGISSceneServiceLayer"===e.layerType||e.isReference,c=o(this.baseLayers,e.baseMapLayers.filter((e=>!a(e))),r);l.push(c);const u=o(this.referenceLayers,e.baseMapLayers.filter(a),r);l.push(u)}await Promise.allSettled(l)}async _loadFromItem(e,t){const r=await e.load(t),a=await r.fetchData("json",t),n=(0,f.An)(e.itemUrl??"");return this._set("resourceInfo",{data:a.baseMap??{},context:{origin:U[e.type||""]??"web-map",portal:e.portal||g.A.getDefault(),url:n}}),this.read(this.resourceInfo.data,this.resourceInfo.context),this.read({spatialReference:a.spatialReference},this.resourceInfo.context),this.read({title:e.title,thumbnailUrl:e.thumbnailUrl},{origin:"portal-item",portal:e.portal||g.A.getDefault(),url:n}),this._loadLayersFromJSON(this.resourceInfo.data,n,t)}async _loadFromStylesService(e,t){const r=e.serviceUrl.endsWith("/webmaps")?e.serviceUrl.slice(0,-8):e.serviceUrl,a=`${r}/styles/${e.id}/self`,s=`${r}/webmaps/${e.id}`,[i,o]=await Promise.all([(await(0,n.A)(a,{query:{token:e.apiKey},signal:t?.signal})).data,(await(0,n.A)(s,{query:{language:e.languageParameter,places:e.places,worldview:e.worldview,token:e.apiKey},signal:t?.signal})).data]);this.thumbnailUrl??=i.thumbnailUrl;const l=(0,f.An)(s);if(this._set("resourceInfo",{data:o.baseMap??{},context:{origin:"web-map",url:l}}),this.read(this.resourceInfo.data,this.resourceInfo.context),this.read({spatialReference:o.spatialReference},this.resourceInfo.context),await this._loadLayersFromJSON(this.resourceInfo.data,l,t),e.apiKey)for(const t of[...this.baseLayers,...this.referenceLayers])"apiKey"in t&&(t.apiKey=e.apiKey)}static fromId(e){const t=L.H[e];return t?t.itemId?new x({portalItem:{id:t.itemId,portal:{url:"https://www.arcgis.com"}}}):x.fromJSON(t,{origin:t.is3d?"web-scene":"web-map"}):null}};(0,a._)([(0,h.MZ)({json:{write:{ignoreOrigin:!0,target:"baseMapLayers",writer(e,t,r,a){this._writeBaseLayers(e,t,a)}},origins:{"web-scene":{write:{ignoreOrigin:!0,target:{baseMapLayers:{type:s.A}},writer(e,t,r,a){this._writeBaseLayers(e,t,a)}}}}}})],k.prototype,"baseLayers",null),(0,a._)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{write:!0}}}})],k.prototype,"id",void 0),(0,a._)([(0,h.MZ)({type:v.default})],k.prototype,"portalItem",void 0),(0,a._)([(0,h.MZ)()],k.prototype,"referenceLayers",null),(0,a._)([(0,h.MZ)({readOnly:!0})],k.prototype,"resourceInfo",void 0),(0,a._)([(0,h.MZ)({type:w.A})],k.prototype,"spatialReference",void 0),(0,a._)([(0,h.MZ)({type:S})],k.prototype,"style",void 0),(0,a._)([(0,h.MZ)()],k.prototype,"thumbnailUrl",void 0),(0,a._)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{write:{isRequired:!0}}}}})],k.prototype,"title",void 0),(0,a._)([(0,b.K)("title")],k.prototype,"writeTitle",null),k=x=(0,a._)([(0,m.$)("esri.Basemap")],k);const U={"Web Scene":"web-scene","Web Map":"web-map","Link Chart":"link-chart"},O={"web-scene":"web-scene","web-map":"web-map","link-chart":"link-chart"},Z=k},83531:(e,t,r)=>{r.d(t,{BR:()=>u,Ov:()=>o,TU:()=>i,W_:()=>l,XX:()=>s,tk:()=>p,wI:()=>c});var a=r(70333),n=r(78888);const s={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function i(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function o(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function l(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t)&&"feature-layer"===e?.source?.type}async function c(e,t){const r=a.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const s=e.toLowerCase().indexOf("/rest/services");if(-1===s)return null;const i=`${e.slice(0,s)}/rest/info`,o=null!=t?t.signal:null,{data:l}=await(0,n.A)(i,{query:{f:"json"},responseType:"json",signal:o});return l?.owningSystemUrl||null}function u(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function p(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}}}]);