@arcgis/core 5.2.0-next.162 → 5.2.0-next.164

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 (170) hide show
  1. package/PopupTemplate.js +1 -1
  2. package/analysis/LineOfSightAnalysis.d.ts +1 -1
  3. package/analysis/LineOfSightAnalysisObserver.d.ts +5 -4
  4. package/analysis/LineOfSightAnalysisTarget.d.ts +4 -4
  5. package/analysis/Viewshed.d.ts +4 -4
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/092e311cb7aea92a6a26.js +1 -0
  8. package/assets/esri/core/workers/chunks/{8e19629899a5becf8e19.js → 150e7a7bd5df25693da7.js} +1 -1
  9. package/assets/esri/core/workers/chunks/1e1c45f75020d5e05dc3.js +1 -0
  10. package/assets/esri/core/workers/chunks/{8e4a7027d171fb60e51e.js → 1f7f4f821d422b46cae7.js} +1 -1
  11. package/assets/esri/core/workers/chunks/1fe24ffcd88280d84fbe.js +1 -0
  12. package/assets/esri/core/workers/chunks/226f862bbeb33fc7c597.js +1 -0
  13. package/assets/esri/core/workers/chunks/25a3bd8bede2d07d3a54.js +1 -0
  14. package/assets/esri/core/workers/chunks/2ad69cc496235702bbf2.js +1 -0
  15. package/assets/esri/core/workers/chunks/3f46acfda693c70abbdd.js +1 -0
  16. package/assets/esri/core/workers/chunks/434a8ba841a59e0deab9.js +1 -0
  17. package/assets/esri/core/workers/chunks/45fd2b456a6997584ca1.js +1 -0
  18. package/assets/esri/core/workers/chunks/{2e096537a3a5555a4a93.js → 4cb751dc8d00bdaeb04c.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{85bba551057366cd00ae.js → 4db829a0238024736fe6.js} +1 -1
  20. package/assets/esri/core/workers/chunks/53ff68d4f9e365fc15cd.js +1 -0
  21. package/assets/esri/core/workers/chunks/542e5640ea1b80ef801a.js +1 -0
  22. package/assets/esri/core/workers/chunks/5a9b7eb26f936f03d02e.js +1 -0
  23. package/assets/esri/core/workers/chunks/5d76f4d97beee494bbbf.js +1 -0
  24. package/assets/esri/core/workers/chunks/5dc604e3691f36f03959.js +1 -0
  25. package/assets/esri/core/workers/chunks/5f07f52bb8b7721f08d3.js +1 -0
  26. package/assets/esri/core/workers/chunks/{5f4feca26102088ea565.js → 60737732ce495bbdd0fc.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{9ce8b9b80da146a5bbf5.js → 60c79934799927114074.js} +1 -1
  28. package/assets/esri/core/workers/chunks/67f54efc817b241f8746.js +1 -0
  29. package/assets/esri/core/workers/chunks/{8aa80b892fde552577e8.js → 700b1d5bc67b7e1b3ff3.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{f528ac5c648ca6a98582.js → 711cfb84659cb4437679.js} +1 -1
  31. package/assets/esri/core/workers/chunks/7159d9c36869cd82599e.js +29 -0
  32. package/assets/esri/core/workers/chunks/771dd92cb3e6a3427f66.js +1 -0
  33. package/assets/esri/core/workers/chunks/792d2b62356a1d953c88.js +1 -0
  34. package/assets/esri/core/workers/chunks/89c8b0f684c1f27d149e.js +1 -0
  35. package/assets/esri/core/workers/chunks/8ab57cb1bfd3dc8d3c2a.js +1 -0
  36. package/assets/esri/core/workers/chunks/95b82cbbe355266c65d7.js +1 -0
  37. package/assets/esri/core/workers/chunks/97b5f4302fb867c829f4.js +1 -0
  38. package/assets/esri/core/workers/chunks/9de5ad77bc37ec142218.js +1 -0
  39. package/assets/esri/core/workers/chunks/a65951f1d5702cfd996e.js +1 -0
  40. package/assets/esri/core/workers/chunks/aa4f3751f0d830113bed.js +1 -0
  41. package/assets/esri/core/workers/chunks/ad96132bc89671e595f3.js +1 -0
  42. package/assets/esri/core/workers/chunks/b1d989b72203113a06fe.js +1 -0
  43. package/assets/esri/core/workers/chunks/{fc73737b41e086f0ce0b.js → b59aaf30c7fe2c8d1aaa.js} +1 -1
  44. package/assets/esri/core/workers/chunks/b6d71a4ab788a09714f3.js +1 -0
  45. package/assets/esri/core/workers/chunks/b704f489d0f072a0bfcd.js +1 -0
  46. package/assets/esri/core/workers/chunks/b736046c6b4ede73ea46.js +1 -0
  47. package/assets/esri/core/workers/chunks/c070d2ddf290b4f92916.js +1 -0
  48. package/assets/esri/core/workers/chunks/{d6cd0039d6e9c40961e3.js → d1f98c5249c487eb96f1.js} +1 -1
  49. package/assets/esri/core/workers/chunks/d77c68e0fc3b259bf4f9.js +1 -0
  50. package/assets/esri/core/workers/chunks/e251921bc5367258c4d2.js +1 -0
  51. package/assets/esri/core/workers/chunks/ee08ae5b73439a1ff666.js +1 -0
  52. package/assets/esri/core/workers/chunks/{e0351753f6b4d1adf11e.js → fc0dbb588a4062615cb6.js} +1 -1
  53. package/assets/esri/core/workers/chunks/fcaf9450642fcef83286.js +1 -0
  54. package/assets/esri/core/workers/chunks/feb41abc03d677df6f73.js +1 -0
  55. package/chunks/GlobalIllumination.glsl.js +2 -17
  56. package/config.d.ts +11 -30
  57. package/config.js +1 -1
  58. package/core/workers/workerFactory.js +1 -1
  59. package/core/workers.d.ts +17 -0
  60. package/geometry/support/clipRay.js +1 -1
  61. package/geometry/support/plane.js +1 -1
  62. package/kernel.js +1 -1
  63. package/layers/FeatureLayer.d.ts +32 -14
  64. package/layers/GeoJSONLayer.d.ts +2 -107
  65. package/layers/MapImageLayer.d.ts +2 -1
  66. package/layers/SceneLayer.d.ts +40 -16
  67. package/layers/SubtypeGroupLayer.d.ts +63 -0
  68. package/layers/ViewshedLayer.d.ts +10 -4
  69. package/layers/WMSLayer.d.ts +2 -69
  70. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -1
  71. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  72. package/layers/graphics/sources/support/QueryTask.js +1 -1
  73. package/layers/mixins/TemporalLayer.d.ts +70 -48
  74. package/layers/mixins/TiledImagery.d.ts +0 -11
  75. package/layers/support/LabelClass.d.ts +20 -2
  76. package/layers/support/Sublayer.d.ts +32 -2
  77. package/layers/support/TimeInformation.js +2 -0
  78. package/package.json +2 -2
  79. package/popup/content.d.ts +38 -1
  80. package/popup/content.js +1 -1
  81. package/rest/layerSources/DynamicWorkspaceLayer.d.ts +10 -6
  82. package/rest/query/operations/queryUtils.js +1 -1
  83. package/rest/support/timeUtils.js +2 -0
  84. package/smartMapping/popup/support/clusterUtils.js +1 -1
  85. package/smartMapping/popup/support/utils.js +2 -2
  86. package/smartMapping/renderers/size.js +1 -1
  87. package/smartMapping/renderers/support/regenerateUtils.js +1 -1
  88. package/support/timeUtils.d.ts +11 -0
  89. package/symbols/TextSymbol.d.ts +27 -2
  90. package/symbols/cim/CIMCursor.js +1 -1
  91. package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
  92. package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
  93. package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
  94. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.js +1 -1
  95. package/views/2d/engine/webgl/GlyphWorker.js +1 -1
  96. package/views/2d/engine/webgl/animations/instructions.js +1 -1
  97. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  98. package/views/3d/GroundView3D.js +1 -1
  99. package/views/3d/environment/SunLighting.d.ts +16 -1
  100. package/views/3d/environment/SunLighting.js +1 -1
  101. package/views/3d/environment/VirtualLighting.d.ts +16 -1
  102. package/views/3d/environment/VirtualLighting.js +1 -1
  103. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  104. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  105. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +9 -4
  106. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  107. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  108. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  109. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  110. package/views/3d/webgl-engine/materials/internal/worldSizedRibbonLineIntersectionUtils.js +2 -0
  111. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  112. package/views/BasemapView.js +1 -1
  113. package/views/GroundView.d.ts +1 -1
  114. package/views/GroundView.js +1 -1
  115. package/views/SceneView.js +1 -1
  116. package/views/layers/LineOfSightLayerView.d.ts +2 -2
  117. package/views/layers/ViewshedLayerView.d.ts +2 -1
  118. package/views/support/ScheduledQueueProcessor.js +1 -1
  119. package/views/support/screenshotUtils.js +1 -1
  120. package/webscene/Slide.d.ts +1 -2
  121. package/widgets/Daylight/DaylightViewModel.js +1 -1
  122. package/widgets/DirectionalPad/VisibleElements.d.ts +5 -1
  123. package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
  124. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  125. package/widgets/OrientedImageryViewer.js +1 -1
  126. package/widgets/Search/SearchViewModel.js +1 -1
  127. package/widgets/Search/support/layerSearchUtils.js +1 -1
  128. package/widgets/Sketch/SketchViewModel.d.ts +61 -2
  129. package/widgets/Sketch/SketchViewModel.js +1 -1
  130. package/widgets/Sketch/support/PluginManager.js +1 -1
  131. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +3 -2
  132. package/widgets/TimeSlider.d.ts +5 -4
  133. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  134. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.d.ts +3 -3
  135. package/widgets/UtilityNetworkValidateTopology.d.ts +1 -1
  136. package/assets/esri/core/workers/chunks/0bd5012da287469b17d5.js +0 -1
  137. package/assets/esri/core/workers/chunks/0cb50bc2b2125c5fedf2.js +0 -1
  138. package/assets/esri/core/workers/chunks/112befb3b5b406f29298.js +0 -1
  139. package/assets/esri/core/workers/chunks/167b057ad50e6aef54de.js +0 -1
  140. package/assets/esri/core/workers/chunks/2d13a22f7b2427927fdc.js +0 -1
  141. package/assets/esri/core/workers/chunks/2f04b8679c9f15390517.js +0 -1
  142. package/assets/esri/core/workers/chunks/42045cf46497828cd3c0.js +0 -1
  143. package/assets/esri/core/workers/chunks/42fd2a7b22b03dacc6a7.js +0 -1
  144. package/assets/esri/core/workers/chunks/43cf862577bf37344ff4.js +0 -1
  145. package/assets/esri/core/workers/chunks/4be559c53fe5ac0d0d2e.js +0 -1
  146. package/assets/esri/core/workers/chunks/4e350d6c76957f5beb70.js +0 -1
  147. package/assets/esri/core/workers/chunks/4fe34da1c5d63e66ce98.js +0 -1
  148. package/assets/esri/core/workers/chunks/6c9266120d46e8c69dbf.js +0 -1
  149. package/assets/esri/core/workers/chunks/6c9acd9e4e201dc380e9.js +0 -1
  150. package/assets/esri/core/workers/chunks/6da7229433105a69eb3f.js +0 -1
  151. package/assets/esri/core/workers/chunks/74c866e0b66e61751861.js +0 -1
  152. package/assets/esri/core/workers/chunks/830ab9b8d000169da675.js +0 -1
  153. package/assets/esri/core/workers/chunks/849879c8aed16315194c.js +0 -1
  154. package/assets/esri/core/workers/chunks/8ff23ac0abeea0073b47.js +0 -1
  155. package/assets/esri/core/workers/chunks/939942b00ba380e2957e.js +0 -1
  156. package/assets/esri/core/workers/chunks/95dbbddac6581b9d671f.js +0 -1
  157. package/assets/esri/core/workers/chunks/a40b6d8b5c73e06e14d4.js +0 -1
  158. package/assets/esri/core/workers/chunks/aa1ac7954e4f0fefe15b.js +0 -1
  159. package/assets/esri/core/workers/chunks/b5df193c93e9c19f9700.js +0 -1
  160. package/assets/esri/core/workers/chunks/befa32b9e7b3fbdd431e.js +0 -1
  161. package/assets/esri/core/workers/chunks/c2c1f51a4668055c2838.js +0 -1
  162. package/assets/esri/core/workers/chunks/d0f5bee9db1ad51ae687.js +0 -1
  163. package/assets/esri/core/workers/chunks/d7429b58c90e015263ad.js +0 -1
  164. package/assets/esri/core/workers/chunks/d95d63e8d51244d71afb.js +0 -1
  165. package/assets/esri/core/workers/chunks/dfc81e66196c402f39b4.js +0 -29
  166. package/assets/esri/core/workers/chunks/dfd2dc5cdc97ffba8926.js +0 -1
  167. package/assets/esri/core/workers/chunks/e01fc1c31bc023dd0e33.js +0 -1
  168. package/assets/esri/core/workers/chunks/e1b7806ab3e1967b15f0.js +0 -1
  169. package/assets/esri/core/workers/chunks/e1f5d00878f27e1d413e.js +0 -1
  170. package/assets/esri/core/workers/chunks/ffbcb816b611049a6276.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3312,5077,8361],{52106(e,t,i){i.d(t,{A:()=>I});var r,o,l=i(32198),s=i(37838),n=i(69540),a=i(51447),u=i(25482),p=i(53966),d=i(36708),y=i(24326),c=i(91429),h=i(12195),g=i(65864),m=i(50498),f=i(55156),v=i(60950),b=i(54339),S=i(94128),M=i(33910);const T=Symbol("meshGeometryHandles");function C(e){if(null==e)return null;let t={};for(let i in e){let r=e[i];r&&(t[i]=r.toJSON())}return 0===Object.keys(t).length?null:t}let I=class extends((0,n.OU)(u.o)){static{r=S.Z}static{o=this}constructor(e){super(e),this[r]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,y.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,f.I)(this.origin);if(e)return(0,b.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){let e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:C(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let o={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(o.action=r),"attributes"===e&&(o.attributeName=r),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(T);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,d.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,d.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],T)}};(0,l.Cg)([(0,c.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let i in e){let r=(0,g.rS)(e[i]);r&&(t[i]=r)}return 0===Object.keys(t).length?null:t}}})],I.prototype,"aggregateGeometries",null),(0,l.Cg)([(0,c.MZ)({value:null})],I.prototype,"attributes",null),(0,l.Cg)([(0,c.MZ)({value:null,types:m.yR,json:{read:g.rS}})],I.prototype,"geometry",null),(0,l.Cg)([(0,c.MZ)()],I.prototype,"distance",void 0),(0,l.Cg)([(0,c.MZ)({type:Boolean})],I.prototype,"isAggregate",void 0),(0,l.Cg)([(0,c.MZ)({clonable:!1})],I.prototype,"layer",void 0),(0,l.Cg)([(0,c.MZ)({clonable:"reference"})],I.prototype,"origin",void 0),(0,l.Cg)([(0,c.MZ)({type:s.A,value:null})],I.prototype,"popupTemplate",null),(0,l.Cg)([(0,c.MZ)({clonable:"reference"})],I.prototype,"sourceLayer",void 0),(0,l.Cg)([(0,c.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],I.prototype,"statisticsAggregatedIds",void 0),(0,l.Cg)([(0,c.MZ)({value:null,types:M.Es})],I.prototype,"symbol",null),(0,l.Cg)([(0,c.MZ)({clonable:!1,json:{read:!1,write:!1}})],I.prototype,"_version",void 0),(0,l.Cg)([(0,c.MZ)({type:Boolean,value:!0})],I.prototype,"visible",null),I=o=(0,l.Cg)([(0,c.$K)("esri.Graphic")],I)},6797(e,t,i){i.d(t,{Ui:()=>y});var r=i(69622),o=i(7762),l=i(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function n(e){return e instanceof r.A}function a(e){return e instanceof o.A?Object.keys(e.items):n(e)?(0,l.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof o.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function d(e,t){let i=e.diff;if(i&&"function"==typeof i)return i(e,t);let r=a(e),o=a(t);if(0===r.length&&0===o.length)return;if(!r.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let l=o.filter(e=>!r.includes(e)),y=r.filter(e=>!o.includes(e)),c=r.filter(i=>o.includes(i)&&u(e,i)!==u(t,i)).concat(l,y).sort(),h=p(e);if(h&&s.has(h)&&c.length)return{type:"complete",oldValue:e,newValue:t};let g,m=n(e)&&n(t);for(let r of c){let o,l=u(e,r),s=u(t,r);if((m||"function"!=typeof l&&"function"!=typeof s)&&l!==s&&(null!=l||null!=s)){if(i&&i[r]&&"function"==typeof i[r])o=i[r]?.(l,s);else if(l instanceof Date&&s instanceof Date){if(l.getTime()===s.getTime())continue;o={type:"complete",oldValue:l,newValue:s}}else o="object"==typeof l&&"object"==typeof s&&p(l)===p(s)?d(l,s):{type:"complete",oldValue:l,newValue:s};null!=o&&(null==g?g={type:"partial",diff:{[r]:o}}:g.diff[r]=o)}}return g}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},13069(e,t,i){i.d(t,{AG:()=>n,lk:()=>o,vD:()=>s,yS:()=>l});const r="randomUUID"in crypto;function o(){if(r)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function l(){return`{${o().toUpperCase()}}`}function s(){return`{${o()}}`}function n(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},55156(e,t,i){i.d(t,{I:()=>o});const r=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},25077(e,t,i){i.r(t),i.d(t,{default:()=>J});var r=i(32198),o=i(37838),l=i(56507),s=i(69540),n=i(49186),a=i(36563),u=i(25728),p=i(17676),d=i(91429),y=i(16930),c=i(41910),h=i(55156),g=i(60950),m=i(89808),f=i(99959);const v=Symbol("isDimensionFeatureGraphicOrigin");var b;class S extends f.A{get[(b=v,g.ym)](){return this.layer}get[h.e](){return this.layer}get[m.Q](){return this.layer}get[c.e7](){return this.layer}constructor(e){super(),this[b]=!0,this.type="dimension-feature",this.layer=e}get id(){return this.layer.id}}var M=i(4146),T=i(52136),C=i(18768),I=i(63074),w=i(69208),A=i(40775),E=i(10086),x=i(34287),_=i(8303),F=i(54310),L=i(23502),Z=i(25036),D=i(82935),O=i(60694),j=i(10873),P=i(15426),N=i(17036),R=i(30524),G=i(91908),z=i(97552),q=i(30291),$=i(36005);const k="dimension-feature-layer",V=(0,N.p)();let K=class extends((0,L.Z)((0,A.I)((0,E.j)((0,I.dM)((0,D.e)((0,Z.j)((0,F.J)((0,C.b)((0,x.q)((0,_.A)((0,u.M)((0,w.d)((0,T.p)((0,s.OU)(M.A))))))))))))))){constructor(e){super(e),this.barrierWeight="high",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new S(this),this.operationalLayerType="ArcGISDimensionLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.referenceScale=0,this.source=null,this.styleCollection=null,this.sublayerTitleMode="item-title",this.supportedPortalItemTypes=["Feature Service"],this.supportedSourceTypes=new Set(["Dimension Layer"]),this.symbolFields=["STYLEID","BEGINX","BEGINY","ENDX","ENDY","DIMDISPLAY","EXTDISPLAY","MARKERDISPLAY","DIMX","DIMY","TEXTX","TEXTY","DIMLENGTH","DIMTYPE","EXTANGLE","TEXTANGLE","USECUSTOMLENGTH","CUSTOMLENGTH "],this.type="dimension-feature",this._debouncedSaveOperations=(0,p.sg)(async(e,t,r)=>{let{save:o,saveAs:l}=await i.e(5740).then(()=>i(33359));switch(e){case 0:return o(this,t);case 1:return l(this,r,t)}})}destroy(){this.source?.destroy()}load(e){let t=e?.signal,i=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(p.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){let e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url)throw new n.A(`${k}:missing-url`,"DimensionFeatureLayer must be created with a url");return Promise.all([this.loadDataElement(e).then(()=>{if(!this.styleCollection)throw new n.A(`${k}:missing-style-collection`,"Invalid service with no style collection")}),this.initLayerProperties(await this.createGraphicsSource(t))])}).then(()=>(0,P.VA)(this,"load",e));return this.addResolvingPromise(i),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readTitleFromService(e,t){let{url:i}=this,r=t.name||(0,O.qg)(i)?.title;switch(this.sublayerTitleMode){case"item-title":if(i)return(0,O.yG)(i,r);break;case"item-title-and-service-name":{let e=this.portalItem?.title;if(e&&e!==r)return e=(0,O.cr)(e),r?`${e} - ${(0,O.cr)(r)}`:e;break}}return r?(0,O.cr)(r):void 0}readTitleFromPortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}createPopupTemplate(e){return(0,q.tn)(this,e)}async createGraphicsSource(e){let t={stack:[],error:void 0,hasError:!1};try{let{default:o}=await(0,p.qr)(Promise.all([i.e(893),i.e(7),i.e(2827)]).then(()=>i(60845)),e),l=new o({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,r.mS)(t,(0,a.Bf)((0,p.u7)(e,()=>l.cancelLoad())??(0,a.hA)()),!1),await l.load({signal:e}),l}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}createQuery(){let e=(0,P.VZ)(this);return e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){return(0,P.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryFeatures(e,t){let i=await this.load(),r=await i.source.queryFeatures(z.A.from(e)??i.createQuery(),t),o=this.graphicOrigin;if(r?.features)for(let e of r.features)e.layer=e.sourceLayer=i,e.origin=o;return r}async queryObjectIds(e,t){let i=await this.load();return i.source.queryObjectIds(z.A.from(e)??i.createQuery(),t)}async queryFeatureCount(e,t){let i=await this.load();return i.source.queryFeatureCount(z.A.from(e)??i.createQuery(),t)}async queryExtent(e,t){let i=await this.load();return i.source.queryExtent(z.A.from(e)??i.createQuery(),t)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return this.loaded&&(0,G.D)(this,e)}async initLayerProperties(e){this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),(0,R.sv)(this.timeInfo,this.fieldsIndex)}async reloadFromService(e){let t=this.source;await Promise.all([t.reload({signal:e}),this.loadDataElement({signal:e})]),await this.initLayerProperties(t)}async hasDataChanged(){return(0,P.jp)(this)}_verifySource(){if(this.version&&this.version<10.8)throw new n.A(k+":unsupported-version","The feature service must be version 10.8 or above.");let e=["DIMLENGTH","BEGINX","BEGINY","ENDX","ENDY","DIMX","DIMY","TEXTX","TEXTY","DIMTYPE","EXTANGLE","STYLEID","USECUSTOMLENGTH","CUSTOMLENGTH","DIMDISPLAY","EXTDISPLAY","MARKERDISPLAY","TEXTANGLE"],t=e.filter(e=>!this.fieldsIndex.has(e));if(t.length)throw new n.A(k+":missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}_fetchFirstValidLayerId(e){return(0,l.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{let t=e.data;return t?(this.applyPreferredHost(t),[...t.layers||[],...t.tables||[]].find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id):void 0})}};(0,r.Cg)([(0,d.MZ)({type:y.A,json:{origins:{service:{read:{source:"sourceSpatialReference"}}}}})],K.prototype,"attributeSpatialReference",void 0),(0,r.Cg)([(0,d.MZ)(j.es)],K.prototype,"barrierWeight",void 0),(0,r.Cg)([(0,d.MZ)({nonNullable:!0,json:{name:"enableEditing",write:!0}})],K.prototype,"editingEnabled",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],K.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,d.MZ)({...V.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],K.prototype,"fields",void 0),(0,r.Cg)([(0,d.MZ)(V.fieldsIndex)],K.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,clonable:!1})],K.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,d.MZ)(j.id)],K.prototype,"id",void 0),(0,r.Cg)([(0,d.MZ)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],K.prototype,"listMode",void 0),(0,r.Cg)([(0,d.MZ)({type:["ArcGISDimensionLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}}}}})],K.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,d.MZ)(V.outFields)],K.prototype,"outFields",void 0),(0,r.Cg)([(0,d.MZ)(j.M6)],K.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:o.A,json:{name:"popupInfo",write:!0}})],K.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],K.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],K.prototype,"referenceScale",void 0),(0,r.Cg)([(0,d.MZ)({clonable:!1,readOnly:!0})],K.prototype,"source",void 0),(0,r.Cg)([(0,d.MZ)()],K.prototype,"styleCollection",void 0),(0,r.Cg)([(0,d.MZ)({type:String})],K.prototype,"sublayerTitleMode",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],K.prototype,"symbolFields",void 0),(0,r.Cg)([(0,$.w)("service","title",["name"])],K.prototype,"readTitleFromService",null),(0,r.Cg)([(0,$.w)("portal-item","title")],K.prototype,"readTitleFromPortalItem",null),(0,r.Cg)([(0,d.MZ)({json:{read:!1},value:"dimension-feature",readOnly:!0})],K.prototype,"type",void 0),K=(0,r.Cg)([(0,d.$K)("esri.layers.DimensionFeatureLayer")],K);const J=K},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let i=[];for(let r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function o(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>o})},52136(e,t,i){var r=i(32198),o=i(91429);i.d(t,["p",0,e=>{let t=e,i=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,r.Cg)([(0,o.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},40775(e,t,i){var r=i(32198),o=i(56507),l=i(49186),s=i(84952),n=i(91429),a=i(95250);function u(e,t){let i=e.indexOf(t);return-1===i?void 0:e[i+1]}function p(e,t){let i=u(e,t);return i&&"string"==typeof i?JSON.parse(i):null}function d(e){let t=u(e,"ReferenceScale")??0;return"string"==typeof t?parseFloat(t):t}function y(e){return p(e,"SymbolCollection")??void 0}function c(e){return p(e,"StyleCollection")??void 0}i.d(t,["I",0,e=>{let t=e,i=class extends t{async loadDataElement(e){if(!this.url||null==this.layerId)throw new l.A("fetchDataElement:missing-url-or-layerId","The layer must have a url and a layerId to fetch the data element.");let t=(0,s.fj)(this.url,"queryDataElements"),i={f:"json",layers:this.layerId},{data:r}=await(0,o.A)(t,{...e,responseType:"json",query:i}),n=r.layerDataElements.find(e=>e.layerId===this.layerId)?.dataElement;if(!n)throw new l.A("fetchDataElement:not-available","A data element for this layer could not be retrieved.");let u=n.extensionProperties?.propertySetItems??[],p=d(u),h=(0,a.S)(y(u)),g=(0,a.S)(c(u));this.read({referenceScale:p,symbolCollection:h,styleCollection:g},{origin:"service"})}};return i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.DataElementMixin")],i),i}])},28032(e,t,i){i.d(t,{A:()=>a});var r=i(32198),o=i(69540),l=i(25482),s=i(91429),n=i(56400);let a=class extends((0,o.OU)(l.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r.Cg)([(0,s.MZ)()],a.prototype,"creatorField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"creationDateField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"editorField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"editDateField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"realm",void 0),(0,r.Cg)([(0,s.MZ)((0,n.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,r.Cg)([(0,s.$K)("esri.layers.support.EditFieldsInfo")],a)},37352(e,t,i){i.d(t,{A:()=>a});var r,o=i(32198),l=i(7762),s=i(25482),n=i(91429);let a=r=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new l.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=r=(0,o.Cg)([(0,n.$K)("esri.layers.support.LayerFloorInfo")],a)},45067(e,t,i){i.d(t,{A:()=>p});var r=i(32198),o=i(69540),l=i(66552),s=i(25482),n=i(91429);const a=new l.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new l.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let p=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,r.Cg)([(0,n.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"cardinality",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"catalogID"}})],p.prototype,"catalogId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"composite",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"id",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyField",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyFieldInRelationshipTable",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"name",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"relatedTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"relationshipTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"role",void 0),p=(0,r.Cg)([(0,n.$K)("esri.layers.support.Relationship")],p)},32730(e,t,i){i.d(t,{BI:()=>d,D3:()=>u,XJ:()=>p,lc:()=>a,mX:()=>c,rU:()=>y,tH:()=>v,zA:()=>S});var r=i(799);const o=RegExp("__begin__","ig"),l=RegExp("__end__","ig"),s=RegExp("^__begin__","i"),n=RegExp("__end__$","i");function a(e){return e.replaceAll(RegExp("\\[","g"),"{").replaceAll(RegExp("\\]","g"),"}")}function u(e){return e.replaceAll(RegExp("\\{","g"),"[").replaceAll(RegExp("\\}","g"),"]")}function p(e){let t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=a(e.labelExpression),t.type="conventional"),t}function d(e){let t=p(e);if(!t)return null;switch(t.type){case"conventional":return c(t.expression);case"arcade":return t.expression}return null}function y(e){let t=p(e);if(!t)return null;switch(t.type){case"conventional":return function(e){return(e?.match(h))?.[1].trim()||null}(t.expression);case"arcade":return v(t.expression)}return null}function c(e){let t;return e?(t=(0,r.HC)(e,e=>'__begin__$feature["'+e+'"]__end__'),t=s.test(t)?t.replace(s,""):'"'+t,t=n.test(t)?t.replace(n,""):t+'"',t=t.replaceAll(o,'" + ').replaceAll(l,' + "')):t='""',t}const h=/^\s*\{([^}]+)\}\s*$/i,g=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,m=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,f=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function v(e){if(!e)return null;let t=g.exec(e)||m.exec(e);return t?t[1]||t[3]:(t=f.exec(e),t?t[2]:null)}const b=Symbol("LabelClassInstance");function S(e){return"object"==typeof e&&!!e&&b in e}i.d(t,["vK",0,b])},41366(e,t,i){var r=i(32198),o=i(66552),l=i(53966),s=i(91429),n=i(93223);const a=(0,o.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",p="field";i.d(t,["K",0,e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&p||i&&u||null,t&&i&&l.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===p||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,n.e)(a,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i},"Q",0,a])},95250(e,t,i){function r(e){return o(e,{CIMRGBColor:l,CIMCharacterMarker:s})}function o(e,t){if(null==e)return e;if(Array.isArray(e))return e.map(e=>o(e,t));if("object"==typeof e){if("type"in e&&"string"==typeof e.type&&t[e.type])return t[e.type](e);let i={};for(let[r,l]of Object.entries(e))i[r]=o(l,t);return i}return e}function l(e){let[t,i,r,o]=e.values;return[t,i,r,255*o/100]}function s(){return{type:"CIMVectorMarker",enable:!0,size:40,colorLocked:!1,anchorPointUnits:"Relative",frame:{xmin:-10,ymin:-10,xmax:10,ymax:10},markerGraphics:[{type:"CIMMarkerGraphic",textString:"■",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",underline:!1,blockProgression:"TTB",depth3D:0,extrapolateBaselines:!0,flipAngle:90,fontEffects:"Normal",fontEncoding:"Unicode",haloSize:0,height:8,hinting:"Default",horizontalAlignment:"Center",kerning:!0,letterSpacing:10,letterWidth:100,ligatures:!1,lineGapType:"ExtraLeading",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},symbol3DProperties:{type:"CIM3DSymbolProperties",dominantSizeAxis3D:"Z",rotationOrder3D:"XYZ",scaleZ:1,scaleY:1},textCase:"Normal",textDirection:"LTR",verticalAlignment:"Center",verticalGlyphOrientation:"Right",wordSpacing:100,billboardMode3D:"FaceNearPlane"}}],scaleSymbolsProportionally:!0,respectFrame:!0}}i.d(t,{S:()=>r})},93470(e,t,i){const r=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},l={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r};i.d(t,["Cb",0,o,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,r,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,l])}}]);
@@ -29,15 +29,6 @@ float idleOcclusionBlendProgress = clamp(accumulatedFrames / highQualityIdleOccl
29
29
  return mix(highQualityIdleOcclusionBlendStart, highQualityIdleOcclusionBlendEnd,
30
30
  pow(idleOcclusionBlendProgress, highQualityIdleOcclusionBlendExponent));
31
31
  }
32
- bool isEdgeDepth(float centerDepth, vec2 sampleUv) {
33
- vec2 texelSize = 1.0 / vec2(textureSize(depthMap, 0));
34
- float depthLeft = linearizeDepth(depthFromTexture(depthMap, sampleUv + vec2(-texelSize.x, 0.0)));
35
- float depthRight = linearizeDepth(depthFromTexture(depthMap, sampleUv + vec2(texelSize.x, 0.0)));
36
- float depthUp = linearizeDepth(depthFromTexture(depthMap, sampleUv + vec2(0.0, texelSize.y)));
37
- float depthDown = linearizeDepth(depthFromTexture(depthMap, sampleUv + vec2(0.0, -texelSize.y)));
38
- float maxDifference = max(max(abs(centerDepth - depthLeft), abs(centerDepth - depthRight)), max(abs(centerDepth - depthUp), abs(centerDepth - depthDown)));
39
- return abs(maxDifference / centerDepth) > 0.01;
40
- }
41
32
  vec3 sampleCosineHemisphere(vec2 u) {
42
33
  float phi = 6.28318530718 * u.x;
43
34
  float radius = sqrt(u.y);
@@ -117,17 +108,11 @@ return value * 2.0 - 1.0;
117
108
  float reprojectionDepthMismatch = abs((lastFrameDepthViewPos + reprojectedViewPos.z) / max(lastFrameDepthViewPos, reprojectedViewPos.z));
118
109
  bool hasReprojectionMismatch = reprojectionDepthMismatch > reprojectionMismatchThreshold;
119
110
  bool isScaledGlobalIllumination = resolutionScale < 1.0;
120
- bool isLowQualityEdgePixel = isScaledGlobalIllumination && isEdgeDepth(currentPixelDepth, uv);
121
111
 
122
112
  // Heuristic to determine blending weights and number of steps for occlusion and color
123
113
  if (hasReprojectionMismatch) {
124
- if (isLowQualityEdgePixel) {
125
- steps = 1;
126
- occlusionBlendWeight = lowQualityOcclusionBlendWeight;
127
- } else {
128
- steps = 6;
129
- occlusionBlendWeight = 1.0;
130
- }
114
+ steps = 6;
115
+ occlusionBlendWeight = 1.0;
131
116
  } else {
132
117
  steps = 1;
133
118
  if (historyOcclusionBlendWeight > weakHistoryOcclusionThreshold) {
package/config.d.ts CHANGED
@@ -235,27 +235,7 @@ export interface Config {
235
235
  /**
236
236
  * An object with properties that control various aspects of [the workers framework](https://developers.arcgis.com/javascript/latest/references/core/core/workers/).
237
237
  *
238
- * @example
239
- * // Load an ESM worker module and invoke its "getMaxNumber" function.
240
- *
241
- * const connection = await workers.open(new URL("./workersFolder/Calculator.js", import.meta.url).href, {
242
- * isESM: true
243
- * });
244
- *
245
- * try {
246
- * // Invoke the worker function and receive its result on the main thread.
247
- * const result = await connection.invoke("getMaxNumber", [0, 1, 2, 3, 4]);
248
- * console.log(result);
249
- * } finally {
250
- * connection.close();
251
- * }
252
- *
253
- * //*********************************************************
254
- * // module: workersFolder/Calculator.js
255
- * //*********************************************************
256
- * export function getMaxNumber(numbers) {
257
- * return Math.max(...numbers);
258
- * }
238
+ * @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead.
259
239
  */
260
240
  workers: WorkersConfig;
261
241
  }
@@ -284,11 +264,12 @@ export interface ApiKeysScopeConfig {
284
264
  urls: RegExp | string | Array<RegExp | string>;
285
265
  }
286
266
 
267
+ /** @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead. */
287
268
  export interface WorkersConfig {
288
269
  /**
289
270
  * The absolute URL to the AMD or SystemJS loader used in the worker. The AMD CDN build has a default value for when this property isn't set. This is required when using custom workers.
290
271
  *
291
- * @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [workers.open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead. See this [ESM sample](https://github.com/Esri/jsapi-resources/tree/main/templates/geometry-operator-worker).
272
+ * @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead. See this [ESM sample](https://github.com/Esri/jsapi-resources/tree/main/templates/geometry-operator-worker).
292
273
  */
293
274
  loaderUrl?: string;
294
275
  /**
@@ -297,13 +278,13 @@ export interface WorkersConfig {
297
278
  *
298
279
  * `RemoteClient` is the SDK’s internal worker-side runtime. It loads and instantiates the worker module, then manages communication with the main thread through the worker connection.
299
280
  *
300
- * @deprecated since version 5.2. Custom worker runtime paths are deprecated. Use the default worker runtime with ESM worker modules opened via [workers.open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open).
281
+ * @deprecated since version 5.2. Custom worker runtime paths are deprecated. Use the default worker runtime with ESM worker modules opened via [open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open).
301
282
  */
302
283
  workerPath?: string;
303
284
  /**
304
285
  * The AMD configuration object that is set in each worker.
305
286
  *
306
- * @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [workers.open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead.
287
+ * @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead.
307
288
  */
308
289
  loaderConfig?: WorkersLoaderConfig;
309
290
  }
@@ -311,37 +292,37 @@ export interface WorkersConfig {
311
292
  /**
312
293
  * Configuration for the legacy AMD worker loader.
313
294
  *
314
- * @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [workers.open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead.
295
+ * @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead.
315
296
  */
316
297
  export interface WorkersLoaderConfig {
317
298
  /**
318
299
  * The AMD loader loads all code relative to the baseUrl.
319
300
  *
320
- * @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [workers.open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead.
301
+ * @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead.
321
302
  */
322
303
  baseUrl?: string;
323
304
  /**
324
305
  * Determines if the specified feature capabilities are supported.
325
306
  *
326
- * @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [workers.open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead.
307
+ * @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead.
327
308
  */
328
309
  has?: Record<string, any>;
329
310
  /**
330
311
  * Map paths in module identifiers to different paths.
331
312
  *
332
- * @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [workers.open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead.
313
+ * @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead.
333
314
  */
334
315
  map?: Record<string, Record<string, string>>;
335
316
  /**
336
317
  * An array of objects which provide the package name and its location.
337
318
  *
338
- * @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [workers.open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead.
319
+ * @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead.
339
320
  */
340
321
  packages?: object[];
341
322
  /**
342
323
  * Map of module id fragments to file paths.
343
324
  *
344
- * @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [workers.open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead.
325
+ * @deprecated since version 5.2. AMD/SystemJS worker loading is deprecated. Use ESM worker modules with [open()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#open) instead.
345
326
  */
346
327
  paths?: Record<string, string>;
347
328
  }
package/config.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"./core/has.js";import{deepMerge as e}from"./core/object.js";const t={apiKey:void 0,apiKeys:{scopes:[]},applicationName:``,applicationUrl:globalThis.location?.href,assetsPath:``,fontsUrl:`https://static.arcgis.com/fonts`,geometryServiceUrl:`https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer`,geoRSSServiceUrl:`https://utility.arcgis.com/sharing/rss`,kmlServiceUrl:`https://utility.arcgis.com/sharing/kml`,userPrivilegesApplied:!0,portalUrl:`https://www.arcgis.com`,respectPrefersReducedMotion:!0,routeServiceUrl:`https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World`,workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:[`arcgis.com`,`arcgisonline.com`,`esrikr.com`,`premiumservices.blackbridge.com`,`esripremium.accuweather.com`,`gbm.digitalglobe.com`,`firstlook.digitalglobe.com`,`msi.digitalglobe.com`],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:`high`,proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&(e(t,globalThis.esriConfig,!0),delete t.has),!t.assetsPath&&(t.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@5.2.0-next.162/assets`,t.defaultAssetsPath=t.assetsPath);export{t as default};
2
+ import"./core/has.js";import{deepMerge as e}from"./core/object.js";const t={apiKey:void 0,apiKeys:{scopes:[]},applicationName:``,applicationUrl:globalThis.location?.href,assetsPath:``,fontsUrl:`https://static.arcgis.com/fonts`,geometryServiceUrl:`https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer`,geoRSSServiceUrl:`https://utility.arcgis.com/sharing/rss`,kmlServiceUrl:`https://utility.arcgis.com/sharing/kml`,userPrivilegesApplied:!0,portalUrl:`https://www.arcgis.com`,respectPrefersReducedMotion:!0,routeServiceUrl:`https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World`,workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:[`arcgis.com`,`arcgisonline.com`,`esrikr.com`,`premiumservices.blackbridge.com`,`esripremium.accuweather.com`,`gbm.digitalglobe.com`,`firstlook.digitalglobe.com`,`msi.digitalglobe.com`],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:`high`,proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&(e(t,globalThis.esriConfig,!0),delete t.has),!t.assetsPath&&(t.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@5.2.0-next.164/assets`,t.defaultAssetsPath=t.assetsPath);export{t as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{getAssetUrl as e}from"../../assets.js";import t from"../../config.js";import{getLocale as n}from"../../intl.js";import{fullVersion as r}from"../../kernel.js";import has from"../has.js";import i from"../Logger.js";import{makeAbsolute as a}from"../urlUtils.js";import{loaderConfig as o}from"./loaderConfig.js";import{receiveMessage as s,MessageType as c}from"./utils.js";import l from"./WorkerFallback.js";const u=()=>i.getLogger(`esri.core.workers.workerFactory`),{HANDSHAKE:d}=c;let f,p;const m=`Failed to create Worker. Fallback to execute module in main thread`;async function h(){if(!has(`esri-workers`))return g(new l);if(!f&&!p)try{let e='"use strict";let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}self.invokeStaticMessage=(e,o,r)=>{const t=r&&r.signal,n=globalId++;let s=null;return new Promise((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}).finally(()=>{t&&t.removeEventListener("abort",s)})};let workerVersionChecked=!1;function checkWorkerVersion(e){if(!workerVersionChecked&&e.kernelInfo){workerVersionChecked=!0;const{fullVersion:o}=configuration.kernelInfo,{fullVersion:r,version:t}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==r&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://esriurl.com/using-local-assets.\\nModules version: ${o}\\nAssets version: ${r??t}\\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let t;function n(e){const o=t.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],e=>{t=e.default||e,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||o.isESM&&import(o.modulePath)||new Promise(e=>{require([o.modulePath],e)})).then(n)}):"System"in self&&"function"==typeof System.import?System.import(workerPath).then(e=>(t=e.default,checkWorkerVersion(t),t.loadWorker(o.modulePath))).then(e=>e||o.isESM&&import(o.modulePath)||System.import(o.modulePath)).then(n):esriConfig.workers.useDynamicImport?import(workerPath).then(e=>{t=e.default||e,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||import(o.modulePath)).then(n)}):(self.RemoteClient||importScripts(workerPath),t=self.RemoteClient.default||self.RemoteClient,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||import(o.modulePath)).then(n));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split(`{CONFIGURATION}`).join(_());f=URL.createObjectURL(new Blob([e],{type:`text/javascript`}))}catch(e){p=e||{}}let e;if(!f)u().warn(m,p),e=new l;else try{e=new Worker(f,{name:`esri-worker-${v++}`})}catch{u().warn(m,p),e=new l}return g(e)}async function g(e){return new Promise(t=>{function n(i){let a=s(i);a&&a.type===d&&(e.removeEventListener(`message`,n),e.removeEventListener(`error`,r),t(e))}function r(t){t.preventDefault(),e.removeEventListener(`message`,n),e.removeEventListener(`error`,r),u().warn(`Failed to create Worker. Fallback to execute module in main thread`,t),e=new l,e.addEventListener(`message`,n),e.addEventListener(`error`,r)}e.addEventListener(`message`,n),e.addEventListener(`error`,r)})}function _(){let i;if(t.default!=null){let e={...t};delete e.default,i=JSON.parse(JSON.stringify(e))}else i=JSON.parse(JSON.stringify(t));i.assetsPath=a(i.assetsPath),i.defaultAssetsPath=i.defaultAssetsPath?a(i.defaultAssetsPath):void 0,i.request.interceptors=[],i.log.interceptors=[],i.locale=n(),i.has={"esri-csp-restrictions":has(`esri-csp-restrictions`),"esri-2d-debug":!1,"esri-2d-update-debug":has(`esri-2d-update-debug`),"esri-2d-annotation-dimension-debug":has(`esri-2d-annotation-dimension-debug`),"esri-2d-log-updating":!1,"esri-2d-complex-shaping":has(`esri-2d-complex-shaping`),"esri-2d-force-complex-shaping":has(`esri-2d-force-complex-shaping`),"esri-2d-stabilize-glyphs":has(`esri-2d-stabilize-glyphs`),"featurelayer-pbf":has(`featurelayer-pbf`),"featurelayer-simplify-thresholds":has(`featurelayer-simplify-thresholds`),"featurelayer-simplify-payload-size-factors":has(`featurelayer-simplify-payload-size-factors`),"featurelayer-simplify-mobile-factor":has(`featurelayer-simplify-mobile-factor`),"featurelayer-query-max-depth":has(`featurelayer-query-max-depth`),"featurelayer-query-max-page-size":has(`featurelayer-query-max-page-size`),"featurelayer-query-tile-max-features":has(`featurelayer-query-tile-max-features`),"featurelayer-query-tile-concurrency":has(`featurelayer-query-tile-concurrency`),"featurelayer-query-pausing-enabled":has(`featurelayer-query-pausing-enabled`),"featurelayer-snapshot-concurrency":has(`featurelayer-snapshot-concurrency`),"featurelayer-snapshot-enabled":has(`featurelayer-snapshot-enabled`),"featurelayer-pixel-buffering-enabled":has(`featurelayer-pixel-buffering-enabled`),"parquetlayer-full-query-feature-count":has(`parquetlayer-full-query-feature-count`),"parquetlayer-cache-enabled":has(`parquetlayer-cache-enabled`),"parquetlayer-legacy-field-overrides-enabled":has(`parquetlayer-legacy-field-overrides-enabled`),"esri-atomics":has(`esri-atomics`),"esri-shared-array-buffer":has(`esri-shared-array-buffer`),"esri-tiles-debug":has(`esri-tiles-debug`),"esri-workers-arraybuffer-transfer":has(`esri-workers-arraybuffer-transfer`),"feature-polyline-generalization-factor":has(`feature-polyline-generalization-factor`),"host-webworker":1},i.workers.loaderUrl&&(i.workers.loaderUrl=a(i.workers.loaderUrl)),i.workers.workerPath?i.workers.workerPath=a(i.workers.workerPath):i.workers.workerPath=a(e(`esri/core/workers/RemoteClient.js`)),i.workers.useDynamicImport=has(`esri-esbuild-build`);let s=t.workers.loaderConfig,c=o({baseUrl:s?.baseUrl,locale:n(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...s?.has},map:{...s?.map},paths:{...s?.paths},packages:s?.packages||[]});return JSON.stringify({esriConfig:i,loaderConfig:c,kernelInfo:{fullVersion:r}})}let v=0;export{h as createWorker};
2
+ import{getAssetUrl as e}from"../../assets.js";import t from"../../config.js";import{getLocale as n}from"../../intl.js";import{fullVersion as r}from"../../kernel.js";import{deprecatedProperty as i}from"../deprecate.js";import has from"../has.js";import a from"../Logger.js";import{notDeepEqual as o}from"../object.js";import{makeAbsolute as s}from"../urlUtils.js";import{loaderConfig as c}from"./loaderConfig.js";import{receiveMessage as l,MessageType as u}from"./utils.js";import d from"./WorkerFallback.js";const f=()=>a.getLogger(`esri.core.workers.workerFactory`),{HANDSHAKE:p}=u;let m,h;const g=`Failed to create Worker. Fallback to execute module in main thread`;async function _(){if(!has(`esri-workers`))return v(new d);if(!m&&!h)try{let e='"use strict";let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}self.invokeStaticMessage=(e,o,r)=>{const t=r&&r.signal,n=globalId++;let s=null;return new Promise((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}).finally(()=>{t&&t.removeEventListener("abort",s)})};let workerVersionChecked=!1;function checkWorkerVersion(e){if(!workerVersionChecked&&e.kernelInfo){workerVersionChecked=!0;const{fullVersion:o}=configuration.kernelInfo,{fullVersion:r,version:t}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==r&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://esriurl.com/using-local-assets.\\nModules version: ${o}\\nAssets version: ${r??t}\\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let t;function n(e){const o=t.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],e=>{t=e.default||e,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||o.isESM&&import(o.modulePath)||new Promise(e=>{require([o.modulePath],e)})).then(n)}):"System"in self&&"function"==typeof System.import?System.import(workerPath).then(e=>(t=e.default,checkWorkerVersion(t),t.loadWorker(o.modulePath))).then(e=>e||o.isESM&&import(o.modulePath)||System.import(o.modulePath)).then(n):esriConfig.workers.useDynamicImport?import(workerPath).then(e=>{t=e.default||e,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||import(o.modulePath)).then(n)}):(self.RemoteClient||importScripts(workerPath),t=self.RemoteClient.default||self.RemoteClient,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||import(o.modulePath)).then(n));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split(`{CONFIGURATION}`).join(y());m=URL.createObjectURL(new Blob([e],{type:`text/javascript`}))}catch(e){h=e||{}}let e;if(!m)f().warn(g,h),e=new d;else try{e=new Worker(m,{name:`esri-worker-${b++}`})}catch{f().warn(g,h),e=new d}return v(e)}async function v(e){return new Promise(t=>{function n(i){let a=l(i);a&&a.type===p&&(e.removeEventListener(`message`,n),e.removeEventListener(`error`,r),t(e))}function r(t){t.preventDefault(),e.removeEventListener(`message`,n),e.removeEventListener(`error`,r),f().warn(`Failed to create Worker. Fallback to execute module in main thread`,t),e=new d,e.addEventListener(`message`,n),e.addEventListener(`error`,r)}e.addEventListener(`message`,n),e.addEventListener(`error`,r)})}function y(){o(t.workers,{loaderConfig:{has:{},paths:{},map:{},packages:[]}})&&i(a.getLogger(`esri.config`),`workers`,{see:`https://developers.arcgis.com/javascript/latest/references/core/config/#Config-workers`,version:`5.2`,warnOnce:!0});let l;if(t.default!=null){let e={...t};delete e.default,l=JSON.parse(JSON.stringify(e))}else l=JSON.parse(JSON.stringify(t));l.assetsPath=s(l.assetsPath),l.defaultAssetsPath=l.defaultAssetsPath?s(l.defaultAssetsPath):void 0,l.request.interceptors=[],l.log.interceptors=[],l.locale=n(),l.has={"esri-csp-restrictions":has(`esri-csp-restrictions`),"esri-2d-debug":!1,"esri-2d-update-debug":has(`esri-2d-update-debug`),"esri-2d-annotation-dimension-debug":has(`esri-2d-annotation-dimension-debug`),"esri-2d-log-updating":!1,"esri-2d-complex-shaping":has(`esri-2d-complex-shaping`),"esri-2d-force-complex-shaping":has(`esri-2d-force-complex-shaping`),"esri-2d-stabilize-glyphs":has(`esri-2d-stabilize-glyphs`),"featurelayer-pbf":has(`featurelayer-pbf`),"featurelayer-simplify-thresholds":has(`featurelayer-simplify-thresholds`),"featurelayer-simplify-payload-size-factors":has(`featurelayer-simplify-payload-size-factors`),"featurelayer-simplify-mobile-factor":has(`featurelayer-simplify-mobile-factor`),"featurelayer-query-max-depth":has(`featurelayer-query-max-depth`),"featurelayer-query-max-page-size":has(`featurelayer-query-max-page-size`),"featurelayer-query-tile-max-features":has(`featurelayer-query-tile-max-features`),"featurelayer-query-tile-concurrency":has(`featurelayer-query-tile-concurrency`),"featurelayer-query-pausing-enabled":has(`featurelayer-query-pausing-enabled`),"featurelayer-snapshot-concurrency":has(`featurelayer-snapshot-concurrency`),"featurelayer-snapshot-enabled":has(`featurelayer-snapshot-enabled`),"featurelayer-pixel-buffering-enabled":has(`featurelayer-pixel-buffering-enabled`),"parquetlayer-full-query-feature-count":has(`parquetlayer-full-query-feature-count`),"parquetlayer-cache-enabled":has(`parquetlayer-cache-enabled`),"parquetlayer-legacy-field-overrides-enabled":has(`parquetlayer-legacy-field-overrides-enabled`),"esri-atomics":has(`esri-atomics`),"esri-shared-array-buffer":has(`esri-shared-array-buffer`),"esri-tiles-debug":has(`esri-tiles-debug`),"esri-workers-arraybuffer-transfer":has(`esri-workers-arraybuffer-transfer`),"feature-polyline-generalization-factor":has(`feature-polyline-generalization-factor`),"host-webworker":1},l.workers.loaderUrl&&(l.workers.loaderUrl=s(l.workers.loaderUrl)),l.workers.workerPath?l.workers.workerPath=s(l.workers.workerPath):l.workers.workerPath=s(e(`esri/core/workers/RemoteClient.js`)),l.workers.useDynamicImport=has(`esri-esbuild-build`);let u=t.workers.loaderConfig,d=c({baseUrl:u?.baseUrl,locale:n(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...u?.has},map:{...u?.map},paths:{...u?.paths},packages:u?.packages||[]});return JSON.stringify({esriConfig:l,loaderConfig:d,kernelInfo:{fullVersion:r}})}let b=0;export{_ as createWorker};
package/core/workers.d.ts CHANGED
@@ -65,6 +65,10 @@ export interface OpenOptions extends AbortOptions {
65
65
  /**
66
66
  * Opens a connection to workers and loads a script with the workers framework.
67
67
  *
68
+ * Custom ES module workers can load SDK modules using standard ES module imports
69
+ * in npm-based applications or `$arcgis.import()` in CDN applications.
70
+ * Only modules that do not depend on the DOM can be used within a worker.
71
+ *
68
72
  * @param modulePath - A fully qualified URL to a script to execute with the workers framework.
69
73
  * @param options - Worker options. See properties below for object specifications.
70
74
  * @returns Resolves to an instance of [Connection](https://developers.arcgis.com/javascript/latest/references/core/core/workers/Connection/).
@@ -119,5 +123,18 @@ export interface OpenOptions extends AbortOptions {
119
123
  * return `The time is ${time}`;
120
124
  * }
121
125
  * }
126
+ * @example
127
+ * // CustomWorker.js - load an SDK module inside a custom ES module worker in a CDN application.
128
+ * export async function createPoint(coordinates) {
129
+ * const Point = await $arcgis.import("@arcgis/core/geometry/Point.js");
130
+ *
131
+ * const point = new Point({
132
+ * longitude: coordinates.longitude,
133
+ * latitude: coordinates.latitude
134
+ * });
135
+ *
136
+ * // Return serializable data to the main thread.
137
+ * return point.toJSON();
138
+ * }
122
139
  */
123
140
  export function open(modulePath: string, options?: OpenOptions): Promise<Connection>;
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{ObjectStack as e}from"../../core/ObjectStack.js";import{length as t,add as n,scale as r}from"../../core/libs/gl-matrix-2/math/vec3.js";import{copy as i,fromValues as a,create as o}from"./ray.js";function s(e){return e?{ray:o(e.ray),c0:e.c0,c1:e.c1}:{ray:o(),c0:0,c1:Number.MAX_VALUE}}function c(e,t,n){let r=g.get();return r.ray=e,r.c0=t,r.c1=n,r}function l(e,t=s()){return u(e.ray,e.c0,e.c1,t)}function u(e,t,n,r=s()){return i(e,r.ray),r.c0=t,r.c1=n,r}function d(e,t=s()){return i(e,t.ray),t.c0=0,t.c1=Number.MAX_VALUE,t}function f(e,n,r=s()){let i=t(e.vector);return a(e.origin,n,r.ray),r.c0=0,r.c1=i,r}function p(e,t){return h(e,e.c0,t)}function m(e,t){return h(e,e.c1,t)}function h(e,t,i){return n(i,e.ray.origin,r(i,e.ray.direction,t))}const g=new e(()=>s());export{l as copy,s as create,f as fromLineSegmentAndDirection,d as fromRay,u as fromValues,h as getAt,m as getEnd,p as getStart,c as wrap};
2
+ import{ObjectStack as e}from"../../core/ObjectStack.js";import{length as t,add as n,scale as r}from"../../core/libs/gl-matrix-2/math/vec3.js";import{copy as i,fromValues as a,create as o}from"./ray.js";function s(e){return e?{ray:o(e.ray),c0:e.c0,c1:e.c1}:{ray:o(),c0:0,c1:Number.MAX_VALUE}}function c(e,t,n){let r=_.get();return r.ray=e,r.c0=t,r.c1=n,r}function l(e,t=s()){return u(e.ray,e.c0,e.c1,t)}function u(e,t,n,r=s()){return i(e,r.ray),r.c0=t,r.c1=n,r}function d(e,t=s()){return i(e,t.ray),t.c0=0,t.c1=Number.MAX_VALUE,t}function f(e,n,r=s()){let i=t(e.vector);return a(e.origin,n,r.ray),r.c0=0,r.c1=i,r}function p(e,t){return h(e,e.c0,t)}function m(e,t){return h(e,e.c1,t)}function h(e,t,i){return n(i,e.ray.origin,r(i,e.ray.direction,t))}function g(e,t,n,r){let i=r.ray.origin[e],a=r.ray.direction[e];if(Math.abs(a)<=2**-52)return r.c0<=r.c1&&i>=t&&i<=n;let o=(t-i)/a,s=(n-i)/a;return r.c0=Math.max(r.c0,Math.min(o,s)),r.c1=Math.min(r.c1,Math.max(o,s)),r.c0<=r.c1}const _=new e(()=>s());export{g as clipSlab,l as copy,s as create,f as fromLineSegmentAndDirection,d as fromRay,u as fromValues,h as getAt,m as getEnd,p as getStart,c as wrap};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{clamp as e}from"../../core/mathUtils.js";import{exactEquals as t,subtract as n,normalize as r,dot as i,lerp as a,copy as o,add as s,scale as c,cross as l,set as u,scaleAndAdd as d}from"../../core/libs/gl-matrix-2/math/vec3.js";import{create as f}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{equals as p,exactEquals as m}from"../../core/libs/gl-matrix-2/math/vec4.js";import{projectPointSignedLength as h}from"./vector.js";import{sv3d as g,sv4d as ee}from"./vectorStacks.js";import{tangentFrame as te}from"../../views/3d/support/mathUtils.js";function _(e=Z){return[e[0],e[1],e[2],e[3]]}const v=m,ne=p;function re(e=Z[0],t=Z[1],n=Z[2],r=Z[3]){return x(e,t,n,r,ee.get())}function y(e,t){return x(t[0],t[1],t[2],t[3],e)}function b(e){return e}function x(e,t,n,r,i=_()){return i[0]=e,i[1]=t,i[2]=n,i[3]=r,i}function S(e,t,n){return o(n,e),n[3]=t,n}function C(e,t,n){let r=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return n[0]=t[0]*i,n[1]=t[1]*i,n[2]=t[2]*i,n[3]=-(n[0]*e[0]+n[1]*e[1]+n[2]*e[2]),n}function w(e,t,n,r=_()){let i=n[0]-t[0],a=n[1]-t[1],o=n[2]-t[2],s=e[0]-t[0],c=e[1]-t[1],l=e[2]-t[2],u=a*l-o*c,d=o*s-i*l,f=i*c-a*s,p=u*u+d*d+f*f,m=Math.abs(p-1)>1e-5&&p>1e-12?1/Math.sqrt(p):1;return r[0]=u*m,r[1]=d*m,r[2]=f*m,r[3]=-(r[0]*e[0]+r[1]*e[1]+r[2]*e[2]),r}function T(e,a,o,s=0,c=Math.floor(1/3*o),l=Math.floor(2/3*o)){if(o<3)return!1;a(D,s);let u=c,d=!1;for(;u<o-1&&!d;)a(O,u),u++,d=!t(D,O);if(!d)return!1;for(u=Math.max(u,l),d=!1;u<o&&!d;)a(k,u),u++,n(A,D,O),r(A,A),n(j,O,k),r(j,j),d=!t(D,k)&&!t(O,k)&&Math.abs(i(A,j))<E;return d?(w(D,O,k,e),!0):s===0&&c===1&&l===2?!1:T(e,a,o,0,1,2)}function ie(e,t,n=!0){let r=t.length/3;return T(e,(e,n)=>u(e,t[n*3+0],t[n*3+1],t[n*3+2]),n?r-1:r)}const E=.99619469809,D=f(),O=f(),k=f(),A=f(),j=f();function ae(e,t,n){return t!==e&&y(e,t),e[3]=-i(b(e),n),e}function M(e,t){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}function oe(e,t,n,r){return l(k,t,e),C(n,k,r)}function N(e,t,r,i){return Y(X(e,t,n(g.get(),r,t),le,i))}function P(e,t,n){return t!=null&&Y(X(e,t.origin,t.direction,ue,n))}function F(e,t,n){return Y(X(e,t.origin,t.vector,0,n))}function I(e,t,n){return Y(X(e,t.origin,t.vector,1,n))}function L(e,t){return J(e,t)<=0}function R(e,t){return J(e,t)>=0}function z(e,t){return V(e,t.ray.origin,t.ray.direction,t,!1,!1,!0)}function B(e,t){return V(e,t.ray.origin,t.ray.direction,t,!1,!1,!1)}function V(e,t,n,r,a,o,s){let c=i(b(e),n),l=J(e,t);if(c>-1e-6&&c<1e-6)return H(l,a,o);let u=-l/c,d=H(c,a,!1);return s&&!d&&!H(l,a,o)?!1:(d?u>r.c0&&(r.c0=u):u<r.c1&&(r.c1=u),r.c0<=r.c1)}function H(e,t,n){return n?t?e>=0:e<=0:t?e>0:e<0}function U(e,t,n,r=!1){let i=t.at(-1),s=J(e,i),c=r?s>0:s<=0;for(let l=0;l<t.length;l++){let u=t.at(l),d=J(e,u),f=r?d>0:d<=0;c!==f&&a(n(),i,u,s/(s-d)),f&&o(n(),u),i=u,s=d,c=f}}function W(e,t,r,i,a,o=!1){return n(Q,r,t),$.c0=0,$.c1=1,V(e,t,Q,$,o,!o,!1)?(d(i,t,Q,$.c0),d(a,t,Q,$.c1),!0):!1}function G(e,t,r){let i=c(g.get(),b(e),-e[3]),a=q(e,n(g.get(),t,i),g.get());return s(r,a,i),r}function K(e,t,r,i){let a=b(e),o=g.get(),s=g.get();te(a,o,s);let c=n(g.get(),r,t),l=h(o,c),d=h(s,c),f=h(a,c);return u(i,l,d,f)}function q(e,t,r){let a=c(g.get(),b(e),i(b(e),t));return n(r,t,a),r}function se(e,t){return Math.abs(J(e,t))}function J(e,t){return i(b(e),t)+e[3]}function ce(e,t,n){for(let r=0;r<n;++r)if(L(e,t[r]))return!1;return!0}function Y(e){return e===0||e===1}function X(t,n,r,a,o){let l=i(b(t),r),u=J(t,n);if(l===0)return u>=0?2:3;let d=-u/l;return a&1&&(d=e(d,0,1)),!(a&4)&&d<0||!(a&8)&&d>1?u>=0?2:3:(s(o,n,c(o,r,d)),u>=0?0:1)}const Z=[0,0,1,0],le=12,ue=8,Q=f(),$={c0:0,c1:1};export{ce as areAllPointsOutside,z as clip,B as clipInfinite,W as clipLineSegment,U as clipPolygon,y as copy,_ as create,se as distance,ne as equals,v as exactEquals,ie as fromArray,T as fromManyPoints,S as fromNormalAndOffset,w as fromPoints,C as fromPositionAndNormal,x as fromValues,oe as fromVectorsAndPoint,b as getNormal,N as intersectLine,X as intersectLineOrRay,F as intersectLineSegment,I as intersectLineSegmentClamp,P as intersectRay,R as isPointInClosedPositiveHalfspace,L as isPointInside,M as negate,G as projectPoint,K as projectPointLocal,q as projectVector,ae as setOffsetFromPoint,J as signedDistance,Z as up,re as wrap};
2
+ import{clamp as e}from"../../core/mathUtils.js";import{exactEquals as t,subtract as n,normalize as r,dot as i,lerp as a,copy as o,add as s,scale as c,cross as l,set as u,scaleAndAdd as d}from"../../core/libs/gl-matrix-2/math/vec3.js";import{create as f}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{equals as p,exactEquals as m}from"../../core/libs/gl-matrix-2/math/vec4.js";import{projectPointSignedLength as h}from"./vector.js";import{sv3d as g,sv4d as _}from"./vectorStacks.js";import{tangentFrame as ee}from"../../views/3d/support/mathUtils.js";function v(e=Z){return[e[0],e[1],e[2],e[3]]}const te=m,ne=p;function re(e=Z[0],t=Z[1],n=Z[2],r=Z[3]){return x(e,t,n,r,_.get())}function y(e,t){return x(t[0],t[1],t[2],t[3],e)}function b(e){return e}function x(e,t,n,r,i=v()){return i[0]=e,i[1]=t,i[2]=n,i[3]=r,i}function S(e,t,n){return o(n,e),n[3]=t,n}function C(e,t,n){let r=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return n[0]=t[0]*i,n[1]=t[1]*i,n[2]=t[2]*i,n[3]=-(n[0]*e[0]+n[1]*e[1]+n[2]*e[2]),n}function w(e,t,n,r=v()){let i=n[0]-t[0],a=n[1]-t[1],o=n[2]-t[2],s=e[0]-t[0],c=e[1]-t[1],l=e[2]-t[2],u=a*l-o*c,d=o*s-i*l,f=i*c-a*s,p=u*u+d*d+f*f,m=Math.abs(p-1)>1e-5&&p>1e-12?1/Math.sqrt(p):1;return r[0]=u*m,r[1]=d*m,r[2]=f*m,r[3]=-(r[0]*e[0]+r[1]*e[1]+r[2]*e[2]),r}function T(e,a,o,s=0,c=Math.floor(1/3*o),l=Math.floor(2/3*o)){if(o<3)return!1;a(D,s);let u=c,d=!1;for(;u<o-1&&!d;)a(O,u),u++,d=!t(D,O);if(!d)return!1;for(u=Math.max(u,l),d=!1;u<o&&!d;)a(k,u),u++,n(A,D,O),r(A,A),n(j,O,k),r(j,j),d=!t(D,k)&&!t(O,k)&&Math.abs(i(A,j))<ie;return d?(w(D,O,k,e),!0):s===0&&c===1&&l===2?!1:T(e,a,o,0,1,2)}function E(e,t,n=!0){let r=t.length/3;return T(e,(e,n)=>u(e,t[n*3+0],t[n*3+1],t[n*3+2]),n?r-1:r)}const ie=.99619469809,D=f(),O=f(),k=f(),A=f(),j=f();function ae(e,t,n){return t!==e&&y(e,t),e[3]=-i(b(e),n),e}function oe(e,t){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}function se(e,t,n,r){return l(k,t,e),C(n,k,r)}function M(e,t,r,i){return Y(X(e,t,n(g.get(),r,t),ue,i))}function N(e,t,n){return t!=null&&Y(X(e,t.origin,t.direction,de,n))}function P(e,t,n){return Y(X(e,t.origin,t.vector,0,n))}function F(e,t,n){return Y(X(e,t.origin,t.vector,1,n))}function I(e,t){return q(e,t)<=0}function L(e,t){return q(e,t)>=0}function R(e,t){return V(e,t.ray.origin,t.ray.direction,t,!1,!1,!0,1e-6)}function z(e,t){return V(e,t.ray.origin,t.ray.direction,t,!1,!1,!1,1e-6)}function B(e,t){return t.c0<=t.c1&&V(e,t.ray.origin,t.ray.direction,t,!1,!0,!1,0)}function V(e,t,n,r,a,o,s,c){let l=i(b(e),n),u=q(e,t);if(l>=-c&&l<=c)return H(u,a,o);let d=-u/l,f=H(l,a,!1);return s&&!f&&!H(u,a,o)?!1:(f?d>r.c0&&(r.c0=d):d<r.c1&&(r.c1=d),r.c0<=r.c1)}function H(e,t,n){return n?t?e>=0:e<=0:t?e>0:e<0}function U(e,t,n,r=!1){let i=t.at(-1),s=q(e,i),c=r?s>0:s<=0;for(let l=0;l<t.length;l++){let u=t.at(l),d=q(e,u),f=r?d>0:d<=0;c!==f&&a(n(),i,u,s/(s-d)),f&&o(n(),u),i=u,s=d,c=f}}function W(e,t,r,i,a,o=!1){return n(Q,r,t),$.c0=0,$.c1=1,V(e,t,Q,$,o,!o,!1,1e-6)?(d(i,t,Q,$.c0),d(a,t,Q,$.c1),!0):!1}function G(e,t,r){let i=c(g.get(),b(e),-e[3]),a=K(e,n(g.get(),t,i),g.get());return s(r,a,i),r}function ce(e,t,r,i){let a=b(e),o=g.get(),s=g.get();ee(a,o,s);let c=n(g.get(),r,t),l=h(o,c),d=h(s,c),f=h(a,c);return u(i,l,d,f)}function K(e,t,r){let a=c(g.get(),b(e),i(b(e),t));return n(r,t,a),r}function le(e,t){return Math.abs(q(e,t))}function q(e,t){return i(b(e),t)+e[3]}function J(e,t,n){for(let r=0;r<n;++r)if(I(e,t[r]))return!1;return!0}function Y(e){return e===0||e===1}function X(t,n,r,a,o){let l=i(b(t),r),u=q(t,n);if(l===0)return u>=0?2:3;let d=-u/l;return a&1&&(d=e(d,0,1)),!(a&4)&&d<0||!(a&8)&&d>1?u>=0?2:3:(s(o,n,c(o,r,d)),u>=0?0:1)}const Z=[0,0,1,0],ue=12,de=8,Q=f(),$={c0:0,c1:1};export{J as areAllPointsOutside,R as clip,B as clipClosedNegativeHalfspace,z as clipInfinite,W as clipLineSegment,U as clipPolygon,y as copy,v as create,le as distance,ne as equals,te as exactEquals,E as fromArray,T as fromManyPoints,S as fromNormalAndOffset,w as fromPoints,C as fromPositionAndNormal,x as fromValues,se as fromVectorsAndPoint,b as getNormal,M as intersectLine,X as intersectLineOrRay,P as intersectLineSegment,F as intersectLineSegmentClamp,N as intersectRay,L as isPointInClosedPositiveHalfspace,I as isPointInside,oe as negate,G as projectPoint,ce as projectPointLocal,K as projectVector,ae as setOffsetFromPoint,q as signedDistance,Z as up,re as wrap};
package/kernel.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"./core/has.js";import{addQueryParameter as e}from"./core/urlUtils.js";Symbol.dispose??=Symbol(`Symbol.dispose`),Symbol.asyncDispose??=Symbol(`Symbol.asyncDispose`);const t=`5.2`;let n=`5.2`;n=`5.2.0-next.162`;let r;function i(e){r=e}function a(t){let n=r?.findCredential(t);return n?.token?e(t,`token`,n.token):t}globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}});export{a as addTokenParameter,n as fullVersion,r as id,i as setId,t as version};
2
+ import"./core/has.js";import{addQueryParameter as e}from"./core/urlUtils.js";Symbol.dispose??=Symbol(`Symbol.dispose`),Symbol.asyncDispose??=Symbol(`Symbol.asyncDispose`);const t=`5.2`;let n=`5.2`;n=`5.2.0-next.164`;let r;function i(e){r=e}function a(t){let n=r?.findCredential(t);return n?.token?e(t,`token`,n.token):t}globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}});export{a as addTokenParameter,n as fullVersion,r as id,i as setId,t as version};
@@ -85,13 +85,9 @@ export interface FeatureLayerProperties extends LayerProperties, APIKeyMixinProp
85
85
  */
86
86
  attributeTableTemplate?: AttributeTableTemplateProperties | null;
87
87
  /**
88
- * An object that allows you to create a dynamic layer with data
89
- * either from map service sublayers or data from a registered workspace.
90
- * See [DynamicMapLayer](https://developers.arcgis.com/javascript/latest/references/core/rest/layerSources/DynamicMapLayer/)
91
- * for creating dynamic layers from map service layers for on the fly
92
- * rendering, labeling, and filtering (definition expressions). To create
93
- * dynamic layers from other sources in registered workspaces such as tables and table joins,
94
- * see [DynamicDataLayer](https://developers.arcgis.com/javascript/latest/references/core/rest/layerSources/DynamicDataLayer/).
88
+ * An object that defines the data source for a dynamic layer in a map service. Use
89
+ * [DynamicDataLayer](https://developers.arcgis.com/javascript/latest/references/core/rest/layerSources/DynamicDataLayer/) for data such as tables and table joins in a registered workspace, or
90
+ * [DynamicWorkspaceLayer](https://developers.arcgis.com/javascript/latest/references/core/rest/layerSources/DynamicWorkspaceLayer/) for a pre-authored ArcGIS Pro layer file (`.lyrx`) in a registered workspace.
95
91
  *
96
92
  * If you already have a [Sublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Sublayer/) instance, you
97
93
  * can call the [Sublayer.createFeatureLayer()](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Sublayer/#createFeatureLayer)
@@ -152,6 +148,19 @@ export interface FeatureLayerProperties extends LayerProperties, APIKeyMixinProp
152
148
  * }
153
149
  * }
154
150
  * });
151
+ * @example
152
+ * Use a pre-authored layer file in a registered workspace as the dynamic data source.
153
+ *
154
+ * ```js
155
+ * const layer = new FeatureLayer({
156
+ * url: "<your-map-service-url>",
157
+ * dynamicDataSource: {
158
+ * type: "workspace-layer",
159
+ * workspaceId: "lyrx_folder",
160
+ * layerId: "WorldCities.lyrx"
161
+ * }
162
+ * });
163
+ * ```
155
164
  */
156
165
  dynamicDataSource?: (DynamicDataLayerProperties & { type: "data-layer" }) | (DynamicWorkspaceLayerProperties & { type: "workspace-layer" }) | null;
157
166
  /**
@@ -843,13 +852,9 @@ export abstract class __FeatureLayerSansType extends FeatureLayerSuperclass {
843
852
  */
844
853
  accessor charts: object[] | null | undefined;
845
854
  /**
846
- * An object that allows you to create a dynamic layer with data
847
- * either from map service sublayers or data from a registered workspace.
848
- * See [DynamicMapLayer](https://developers.arcgis.com/javascript/latest/references/core/rest/layerSources/DynamicMapLayer/)
849
- * for creating dynamic layers from map service layers for on the fly
850
- * rendering, labeling, and filtering (definition expressions). To create
851
- * dynamic layers from other sources in registered workspaces such as tables and table joins,
852
- * see [DynamicDataLayer](https://developers.arcgis.com/javascript/latest/references/core/rest/layerSources/DynamicDataLayer/).
855
+ * An object that defines the data source for a dynamic layer in a map service. Use
856
+ * [DynamicDataLayer](https://developers.arcgis.com/javascript/latest/references/core/rest/layerSources/DynamicDataLayer/) for data such as tables and table joins in a registered workspace, or
857
+ * [DynamicWorkspaceLayer](https://developers.arcgis.com/javascript/latest/references/core/rest/layerSources/DynamicWorkspaceLayer/) for a pre-authored ArcGIS Pro layer file (`.lyrx`) in a registered workspace.
853
858
  *
854
859
  * If you already have a [Sublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Sublayer/) instance, you
855
860
  * can call the [Sublayer.createFeatureLayer()](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Sublayer/#createFeatureLayer)
@@ -910,6 +915,19 @@ export abstract class __FeatureLayerSansType extends FeatureLayerSuperclass {
910
915
  * }
911
916
  * }
912
917
  * });
918
+ * @example
919
+ * Use a pre-authored layer file in a registered workspace as the dynamic data source.
920
+ *
921
+ * ```js
922
+ * const layer = new FeatureLayer({
923
+ * url: "<your-map-service-url>",
924
+ * dynamicDataSource: {
925
+ * type: "workspace-layer",
926
+ * workspaceId: "lyrx_folder",
927
+ * layerId: "WorldCities.lyrx"
928
+ * }
929
+ * });
930
+ * ```
913
931
  */
914
932
  get dynamicDataSource(): DynamicDataLayer | DynamicWorkspaceLayer | null;
915
933
  set dynamicDataSource(value: (DynamicDataLayerProperties & { type: "data-layer" }) | (DynamicWorkspaceLayerProperties & { type: "workspace-layer" }) | null);
@@ -6,7 +6,6 @@ import type FeatureTemplate from "./support/FeatureTemplate.js";
6
6
  import type Field from "./support/Field.js";
7
7
  import type FieldsIndex from "./support/FieldsIndex.js";
8
8
  import type LabelClass from "./support/LabelClass.js";
9
- import type TimeInfo from "./support/TimeInfo.js";
10
9
  import type PortalItem from "../portal/PortalItem.js";
11
10
  import type AttributeBinsFeatureSet from "../rest/support/AttributeBinsFeatureSet.js";
12
11
  import type FeatureSet from "../rest/support/FeatureSet.js";
@@ -43,7 +42,6 @@ import type { TimeZone } from "../time/types.js";
43
42
  import type { ObjectId } from "../views/types.js";
44
43
  import type { TimeExtentProperties } from "../time/TimeExtent.js";
45
44
  import type { TimeIntervalProperties } from "../time/TimeInterval.js";
46
- import type { TimeInfoProperties } from "./support/TimeInfo.js";
47
45
  import type { AttributeTableTemplateProperties } from "../tables/AttributeTableTemplate.js";
48
46
  import type { ElevationInfoProperties } from "../symbols/support/ElevationInfo.js";
49
47
  import type { FieldProperties } from "./support/Field.js";
@@ -400,58 +398,6 @@ export interface GeoJSONLayerProperties extends LayerProperties, PortalLayerProp
400
398
  * });
401
399
  */
402
400
  timeExtent?: TimeExtentProperties | null;
403
- /**
404
- * TimeInfo provides information such as date fields that store [start](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#startField)
405
- * and [end](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#endField) time
406
- * for each feature and the [TimeInfo.fullTimeExtent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent)
407
- * for the layer. The `timeInfo` property, along with its `startField` and `endField` properties, must be set at the
408
- * time of layer initialization if it is being set for a [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/).
409
- * The timeInfo parameters cannot be changed after the layer is [loaded](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/#loaded).
410
- * The [TimeInfo.fullTimeExtent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent) for `timeInfo` is
411
- * automatically calculated based on its `startField` and `endField` properties.
412
- *
413
- * @since 4.11
414
- * @example
415
- * // create geojson layer from usgs earthquakes geojson feed
416
- * const geojsonLayer = new GeoJSONLayer({
417
- * url: "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.geojson",
418
- * copyright: "USGS Earthquakes",
419
- * fields: [
420
- * { "name": "mag", "type": "double" },
421
- * { "name": "place", "type": "string" },
422
- * { "name": "time", "type": "date" }, // date field
423
- * { "name": "depth", "type": "double" }
424
- * ],
425
- * // timeInfo can be used to do temporal queries
426
- * // set the startField.
427
- * // timeExtent is automatically calculated from the start and end date fields
428
- * // The date values must be in milliseconds number from the UNIX epoch specified in UTC.
429
- * timeInfo: {
430
- * startField: "time"
431
- * }
432
- * });
433
- * @example
434
- * // create geojson layer from usgs earthquakes geojson feed
435
- * const geojsonLayer = new GeoJSONLayer({
436
- * url: "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.geojson",
437
- * copyright: "USGS Earthquakes",
438
- * fields: [
439
- * { "name": "mag", "type": "double" },
440
- * { "name": "place", "type": "string" },
441
- * { "name": "time", "type": "date" }, // date field
442
- * { "name": "depth", "type": "double" }
443
- * ],
444
- * // timeInfo can be used to do temporal queries
445
- * // set the startField and endField.
446
- * // timeExtent is automatically calculated from the
447
- * // the start and end date fields
448
- * // The date values must be in milliseconds number from the UNIX epoch specified in UTC.
449
- * timeInfo: {
450
- * startField: "time"
451
- * }
452
- * });
453
- */
454
- timeInfo?: TimeInfoProperties | null;
455
401
  /**
456
402
  * A temporary offset of the time data based on a certain [TimeInterval](https://developers.arcgis.com/javascript/latest/references/core/time/TimeInterval/). This allows
457
403
  * users to overlay features from two or more time-aware layers with different time extents.
@@ -484,6 +430,7 @@ export interface GeoJSONLayerProperties extends LayerProperties, PortalLayerProp
484
430
  * }
485
431
  * }
486
432
  * });
433
+ * @see [Sample - Time Bar with actions and layer timeOffset](https://developers.arcgis.com/javascript/latest/sample-code/time-bar-time-offset/)
487
434
  * @example
488
435
  * // Offset a CSV Layer containing hurricanes from 2015 so that they appear in 2019 (+4 years).
489
436
  * let layer = new CSVLayer({
@@ -1214,59 +1161,6 @@ export default class GeoJSONLayer extends GeoJSONLayerSuperclass {
1214
1161
  */
1215
1162
  get timeExtent(): TimeExtent | null | undefined;
1216
1163
  set timeExtent(value: TimeExtentProperties | null | undefined);
1217
- /**
1218
- * TimeInfo provides information such as date fields that store [start](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#startField)
1219
- * and [end](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#endField) time
1220
- * for each feature and the [TimeInfo.fullTimeExtent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent)
1221
- * for the layer. The `timeInfo` property, along with its `startField` and `endField` properties, must be set at the
1222
- * time of layer initialization if it is being set for a [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/).
1223
- * The timeInfo parameters cannot be changed after the layer is [loaded](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/#loaded).
1224
- * The [TimeInfo.fullTimeExtent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent) for `timeInfo` is
1225
- * automatically calculated based on its `startField` and `endField` properties.
1226
- *
1227
- * @since 4.11
1228
- * @example
1229
- * // create geojson layer from usgs earthquakes geojson feed
1230
- * const geojsonLayer = new GeoJSONLayer({
1231
- * url: "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.geojson",
1232
- * copyright: "USGS Earthquakes",
1233
- * fields: [
1234
- * { "name": "mag", "type": "double" },
1235
- * { "name": "place", "type": "string" },
1236
- * { "name": "time", "type": "date" }, // date field
1237
- * { "name": "depth", "type": "double" }
1238
- * ],
1239
- * // timeInfo can be used to do temporal queries
1240
- * // set the startField.
1241
- * // timeExtent is automatically calculated from the start and end date fields
1242
- * // The date values must be in milliseconds number from the UNIX epoch specified in UTC.
1243
- * timeInfo: {
1244
- * startField: "time"
1245
- * }
1246
- * });
1247
- * @example
1248
- * // create geojson layer from usgs earthquakes geojson feed
1249
- * const geojsonLayer = new GeoJSONLayer({
1250
- * url: "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.geojson",
1251
- * copyright: "USGS Earthquakes",
1252
- * fields: [
1253
- * { "name": "mag", "type": "double" },
1254
- * { "name": "place", "type": "string" },
1255
- * { "name": "time", "type": "date" }, // date field
1256
- * { "name": "depth", "type": "double" }
1257
- * ],
1258
- * // timeInfo can be used to do temporal queries
1259
- * // set the startField and endField.
1260
- * // timeExtent is automatically calculated from the
1261
- * // the start and end date fields
1262
- * // The date values must be in milliseconds number from the UNIX epoch specified in UTC.
1263
- * timeInfo: {
1264
- * startField: "time"
1265
- * }
1266
- * });
1267
- */
1268
- get timeInfo(): TimeInfo | null | undefined;
1269
- set timeInfo(value: TimeInfoProperties | null | undefined);
1270
1164
  /**
1271
1165
  * A temporary offset of the time data based on a certain [TimeInterval](https://developers.arcgis.com/javascript/latest/references/core/time/TimeInterval/). This allows
1272
1166
  * users to overlay features from two or more time-aware layers with different time extents.
@@ -1299,6 +1193,7 @@ export default class GeoJSONLayer extends GeoJSONLayerSuperclass {
1299
1193
  * }
1300
1194
  * }
1301
1195
  * });
1196
+ * @see [Sample - Time Bar with actions and layer timeOffset](https://developers.arcgis.com/javascript/latest/sample-code/time-bar-time-offset/)
1302
1197
  * @example
1303
1198
  * // Offset a CSV Layer containing hurricanes from 2015 so that they appear in 2019 (+4 years).
1304
1199
  * let layer = new CSVLayer({
@@ -264,7 +264,8 @@ export interface MapImageLayerEvents extends RefreshableLayerEvents, LayerEvents
264
264
  * [Dynamic workspace layers](https://developers.arcgis.com/javascript/latest/references/core/rest/layerSources/DynamicWorkspaceLayer/) allow you
265
265
  * to use pre-authored ArcGIS Pro layer files (`.lyrx`) stored in registered folders.
266
266
  * These layers support advanced renderers and cartographically enriched symbols
267
- * that are not supported by the map service's REST API specifications.
267
+ * that are not supported by the map service's REST API specifications. Set a sublayer's
268
+ * [source](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Sublayer/#source) to a DynamicWorkspaceLayer to use one in a MapImageLayer.
268
269
  *
269
270
  * > [!WARNING]
270
271
  * >