@arcgis/core 5.2.0-next.41 → 5.2.0-next.42

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 (129) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/321dbc60f44819c2b4de.js +1 -0
  3. package/assets/esri/core/workers/chunks/399e23d777a043efa9f1.js +1 -0
  4. package/assets/esri/core/workers/chunks/5133083222588799493f.js +1 -0
  5. package/assets/esri/core/workers/chunks/{2b8909a488cf3b231eec.js → 590e977f8eeb379b86c8.js} +8 -8
  6. package/assets/esri/core/workers/chunks/{7ea65aa6d3e684e12082.js → 67468c50ecb1fbedda87.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{b45a013039bbd2614525.js → 7684f0c771d312e05bb4.js} +7 -7
  8. package/assets/esri/core/workers/chunks/{dd65c32ae55fcf1282fe.js → 934044f2ef6ce199b399.js} +1 -1
  9. package/assets/esri/core/workers/chunks/c1845682cc9a5aac8703.js +261 -0
  10. package/assets/esri/core/workers/chunks/{4056659d5c7698265129.js → d66d58ed5d66520ab1bf.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{aa0fb77c62a2d4eb20a5.js → e6b5c015205d38abe037.js} +1 -1
  12. package/assets/esri/core/workers/chunks/f4eda59ec1e816ecc827.js +1 -0
  13. package/assets/esri/core/workers/chunks/f8f0de841be17cd05c8f.js +1 -0
  14. package/assets/esri/themes/base/_core.scss +0 -6
  15. package/assets/esri/themes/dark/main.css +1 -1
  16. package/assets/esri/themes/light/main.css +1 -1
  17. package/assets/esri/themes/light/view.css +1 -1
  18. package/chunks/CutFillMinMaxDepth.glsl.js +2 -0
  19. package/chunks/CutFillTotalDepth.glsl.js +2 -0
  20. package/chunks/EdgeShader.glsl.js +9 -9
  21. package/chunks/GaussianSplat.glsl.js +1 -1
  22. package/chunks/cameraUtilsSpherical.js +1 -1
  23. package/config.js +1 -1
  24. package/editing/geometry/coordUtils.js +1 -1
  25. package/geohash/geohashUtils.js +1 -1
  26. package/geometry/support/aaBoundingRect.js +1 -1
  27. package/geometry/support/quantizationUtils.js +1 -1
  28. package/intl/date.js +1 -1
  29. package/kernel.js +1 -1
  30. package/layers/graphics/featureConversionUtils.js +1 -1
  31. package/layers/graphics/sources/support/sourceUtils.js +1 -1
  32. package/layers/raster/formats/Lerc.js +1 -1
  33. package/layers/support/fieldUtils.js +1 -1
  34. package/package.json +1 -1
  35. package/support/revision.js +1 -1
  36. package/views/2d/engine/vectorTiles/GeometryUtils.js +1 -1
  37. package/views/2d/engine/webgl/Painter.js +1 -1
  38. package/views/2d/engine/webgl/effects/FeatureEffect.js +1 -1
  39. package/views/2d/engine/webgl/effects/HighlightEffect.js +1 -1
  40. package/views/2d/engine/webgl/effects/highlight/HighlightGradient.js +1 -1
  41. package/views/2d/engine/webgl/mesh/templates/segmentUtils.js +1 -1
  42. package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
  43. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitBlitShader.js +2 -0
  44. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/DebugOverlayShader.js +2 -0
  45. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HighlightShader.js +2 -0
  46. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/WorldExtentStencilShader.js +2 -0
  47. package/views/2d/engine/webgl/shaderGraph/techniques/utility/BitBlitTechnique.js +2 -0
  48. package/views/2d/engine/webgl/shaderGraph/techniques/utility/DebugOverlayTechnique.js +2 -0
  49. package/views/2d/engine/webgl/shaderGraph/techniques/utility/HighlightTechnique.js +2 -0
  50. package/views/2d/engine/webgl/shaderGraph/techniques/utility/WorldExtentClipTechnique.js +2 -0
  51. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  52. package/views/2d/layers/support/DebugOverlay.js +1 -1
  53. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  54. package/views/3d/layers/i3s/I3SNode.js +1 -1
  55. package/views/3d/layers/i3s/SphereCone.js +1 -1
  56. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  57. package/views/3d/support/cameraUtilsSpherical.js +1 -1
  58. package/views/3d/terrain/OverlayRenderer.js +1 -1
  59. package/views/3d/webgl/RenderCamera.js +1 -1
  60. package/views/3d/webgl-engine/core/shaderLibrary/Laserline.glsl.js +2 -2
  61. package/views/3d/webgl-engine/core/shaderLibrary/util/emissionFilter.glsl.js +1 -1
  62. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  63. package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
  64. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  65. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  66. package/views/3d/webgl-engine/lib/CutFillComputation.js +1 -1
  67. package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
  68. package/views/3d/webgl-engine/lib/IntersectorInterfaces.js +1 -1
  69. package/views/3d/webgl-engine/lib/PolygonIntersections2D.js +2 -0
  70. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  71. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  72. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  73. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/AdjustProjectedPosition.glsl.js +1 -1
  74. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/DiscardNonSilhouetteEdges.glsl.js +1 -1
  75. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  76. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShader.glsl.js +1 -1
  77. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/EdgeUtil.glsl.js +1 -1
  78. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/LineAmplitude.glsl.js +1 -1
  79. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/LineOffset.glsl.js +1 -1
  80. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/UnpackAttributes.glsl.js +1 -1
  81. package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
  82. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  83. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  84. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  85. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  86. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  87. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  88. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  89. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  90. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  91. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  92. package/views/3d/webgl-engine/materials/TriangleMaterial.js +1 -1
  93. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  94. package/views/3d/webgl-engine/shaders/CutFillMinMaxDepth.glsl.js +2 -0
  95. package/views/3d/webgl-engine/shaders/CutFillMinMaxDepthTechnique.js +2 -0
  96. package/views/3d/webgl-engine/shaders/{CutFillDepth.glsl.js → CutFillTotalDepth.glsl.js} +1 -1
  97. package/views/3d/webgl-engine/shaders/CutFillTotalDepthTechnique.js +2 -0
  98. package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +1 -1
  99. package/views/input/BrowserEventSource.js +1 -1
  100. package/views/input/InputManager.js +1 -1
  101. package/views/interactive/snapping/snappingUtils.js +1 -1
  102. package/views/support/euclideanLengthMeasurementUtils.js +1 -1
  103. package/views/webgl/VertexAttributeLayouts.js +1 -1
  104. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  105. package/widgets/BatchAttributeForm/inputs/support/multipleChoiceInputUtils.js +1 -1
  106. package/widgets/Legend/support/relationshipRampUtils.js +1 -1
  107. package/widgets/OrientedImageryViewer/utils.js +1 -1
  108. package/assets/esri/core/workers/chunks/002356e675769d20e5c0.js +0 -1
  109. package/assets/esri/core/workers/chunks/06e71d52773eb656a4bf.js +0 -261
  110. package/assets/esri/core/workers/chunks/352d144d7651da8a29c9.js +0 -1
  111. package/assets/esri/core/workers/chunks/4f2a61dfae6ca8ed1ec8.js +0 -1
  112. package/assets/esri/core/workers/chunks/ea8f224da4c5c95a3547.js +0 -1
  113. package/assets/esri/core/workers/chunks/f30578843f4faefd53b4.js +0 -1
  114. package/assets/esri/themes/base/_colorVariables.scss +0 -1
  115. package/assets/esri/themes/base/widgets/_DatePicker.scss +0 -170
  116. package/assets/esri/themes/base/widgets/_FeatureUtilityNetworkAssociationList.scss +0 -13
  117. package/assets/esri/themes/base/widgets/_TimePicker.scss +0 -15
  118. package/chunks/CutFillDepth.glsl.js +0 -2
  119. package/core/PLRUCache.js +0 -2
  120. package/views/2d/engine/webgl/BitBlitRenderer.js +0 -2
  121. package/views/2d/engine/webgl/WorldExtentClipRenderer.js +0 -2
  122. package/views/2d/engine/webgl/effects/highlight/HighlightRenderer.js +0 -2
  123. package/views/2d/engine/webgl/shaders/BitBlitPrograms.js +0 -2
  124. package/views/2d/engine/webgl/shaders/HighlightPrograms.js +0 -2
  125. package/views/2d/engine/webgl/shaders/StencilPrograms.js +0 -2
  126. package/views/3d/webgl-engine/shaders/CutFillDepthTechnique.js +0 -2
  127. package/views/3d/webgl-engine/shaders/CutFillDepthTechniqueConfiguration.js +0 -2
  128. package/views/support/euclideanAreaMeasurementUtils.js +0 -2
  129. package/widgets/ShadowCast/ShadowVisualizationType.js +0 -2
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[926,9144],{69540(e,t,i){var s=i(5482),n=i(69622),r=(i(44208),i(4718)),o=(i(53966),i(97768)),a=i(88620),l=i(64108);const u=Symbol("ClonableMixin"),d=e=>{var t;const i=e;let n=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const i=t.metadata,s=t.store,n={},l=new Map;for(const t in i){const o=i[t],a=s?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const d=this[t];let h=null;if("function"==typeof u)h=u(d,e);else if("reference"===u)h=d;else if(h=(0,r.TU)(d,e),null!=d&&null==h)continue;0===a?l.set(t,h):n[t]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,i]of l)e.set(t,i,0)}return u}};return n=(0,s.Cg)([(0,l.$)("esri.core.Clonable")],n),n},h=d(n.A);i.d(t,["OU",0,d,"Pw",0,h])},67482(e,t,i){function s(e){return null!==n(e)}function n(e){return function(e){const t=r.exec(e);if(!t?.groups)return null;const i=t.groups,s=+i.year,n=+i.month-1,o=+i.day,a=+(i.hours??"0"),l=+(i.minutes??"0"),u=+(i.seconds??"0");if(a>23)return null;if(l>59)return null;if(u>59)return null;const d=i.ms??"0",h=d?+d.padEnd(3,"0").slice(0,3):0;let c;if(i.isUTC||!i.offsetSign)c=Date.UTC(s,n,o,a,l,u,h);else{const e=+i.offsetHours,t=+i.offsetMinutes;c=6e4*("+"===i.offsetSign?-1:1)*(60*e+t)+Date.UTC(s,n,o,a,l,u,h)}return Number.isNaN(c)?null:c}(e)??function(e){const t=new Date(e),i=t.getTime();return Number.isNaN(i)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?i:null}(e)??function(e){if(!o.test(e))return null;const t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}i.d(t,{C:()=>s,_:()=>n});const r=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},75503(e,t,i){i.d(t,{wq:()=>a});var s=i(4576),n=i(21818),r=(i(44208),i(15142)),o=i(11006);class a{constructor(e=9,t){this._compareMinX=c,this._compareMinY=p,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),b.prune(),v.prune(),A.prune(),M.prune()}all(e){l(this._data,e)}search(e,t){let i=this._data;const s=this._toBBox;if(I(e,i))for(b.clear();i;){for(let n=0,r=i.children.length;n<r;n++){const r=i.children[n],o=i.leaf?s(r):r;I(e,o)&&(i.leaf?t(r):_(e,o)?l(r,t):b.push(r))}i=b.pop()}}collides(e){let t=this._data;const i=this._toBBox;if(!I(e,t))return!1;for(b.clear();t;){for(let s=0,n=t.children.length;s<n;s++){const n=t.children[s],r=t.leaf?i(n):n;if(I(e,r)){if(t.leaf||_(e,r))return!0;b.push(n)}}t=b.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new F([]),this}remove(e){if(!e)return this;let t,i=this._data,r=null,o=0,a=!1;const l=this._toBBox(e);for(A.clear(),M.clear();i||A.length>0;){if(i||(i=A.pop(),r=A.data[A.length-1],o=M.pop()??0,a=!0),i.leaf&&(t=(0,s.qh)(i.children,(0,n.z)(e),i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),A.push(i),this._condense(A),this;a||i.leaf||!_(i,l)?r?(o++,i=r.children[o],a=!1):i=null:(A.push(i),M.push(o),o=0,r=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,i,s){const n=i-t+1;let r=this._maxEntries;if(n<=r){const s=new F(e.slice(t,i+1));return u(s,this._toBBox),s}s||(s=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(s-1)));const o=new w([]);o.height=s;const a=Math.ceil(n/r),l=a*Math.ceil(Math.sqrt(r));x(e,t,i,l,this._compareMinX);for(let n=t;n<=i;n+=l){const t=Math.min(n+l-1,i);x(e,n,t,a,this._compareMinY);for(let i=n;i<=t;i+=a){const n=Math.min(i+a-1,t);o.children.push(this._build(e,i,n,s-1))}}return u(o,this._toBBox),o}_insert(e,t,i){const s=this._toBBox,n=i?e:s(e);A.clear();const r=function(e,t,i,s){for(;s.push(t),!0!==t.leaf&&s.length-1!==i;){let i,s=1/0,n=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=f(o),l=m(e,o)-a;l<n?(n=l,s=a<s?a:s,i=o):l===n&&a<s&&(s=a,i=o)}t=i||t.children[0]}return t}(n,this._data,t,A);for(r.children.push(e),h(r,n);t>=0&&A.data[t].children.length>this._maxEntries;)this._split(A,t),t--;!function(e,t,i){for(let s=i;s>=0;s--)h(t.data[s],e)}(n,A,t)}_split(e,t){const i=e.data[t],s=i.children.length,n=this._minEntries;this._chooseSplitAxis(i,n,s);const r=this._chooseSplitIndex(i,n,s);if(!r)return;const o=i.children.splice(r,i.children.length-r),a=i.leaf?new F(o):new w(o);a.height=i.height,u(i,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this._data=new w([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,i){let s,n,r;s=n=1/0;for(let o=t;o<=i-t;o++){const t=d(e,0,o,this._toBBox),a=d(e,o,i,this._toBBox),l=g(t,a),u=f(t)+f(a);l<s?(s=l,r=o,n=u<n?u:n):l===s&&u<n&&(n=u,r=o)}return r}_chooseSplitAxis(e,t,i){const s=e.leaf?this._compareMinX:c,n=e.leaf?this._compareMinY:p;this._allDistMargin(e,t,i,s)<this._allDistMargin(e,t,i,n)&&e.children.sort(s)}_allDistMargin(e,t,i,s){e.children.sort(s);const n=this._toBBox,r=d(e,0,t,n),o=d(e,i-t,i,n);let a=y(r)+y(o);for(let s=t;s<i-t;s++){const t=e.children[s];h(r,e.leaf?n(t):t),a+=y(r)}for(let s=i-t-1;s>=t;s--){const t=e.children[s];h(o,e.leaf?n(t):t),a+=y(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const i=e.data[t];if(0===i.children.length)if(t>0){const n=e.data[t-1],r=n.children;r.splice((0,s.qh)(r,i,r.length,n.indexHint),1)}else this.clear();else u(i,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let i=e;for(v.clear();i;){if(!0===i.leaf)for(const e of i.children)t((0,n.z)(e));else v.pushArray(i.children);i=v.pop()??null}}function u(e,t){d(e,0,e.children.length,t,e)}function d(e,t,i,s,n){n||(n=new F([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=t;o<i;o++)r=e.children[o],h(n,e.leaf?s(r):r);return n}function h(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function c(e,t){return e.minX-t.minX}function p(e,t){return e.minY-t.minY}function f(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function y(e){return e.maxX-e.minX+(e.maxY-e.minY)}function m(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const i=Math.max(e.minX,t.minX),s=Math.max(e.minY,t.minY),n=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,n-i)*Math.max(0,r-s)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function I(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function x(e,t,i,s,n){const r=[t,i];for(;r.length;){const t=r.pop(),i=r.pop();if(t-i<=s)continue;const a=i+Math.ceil((t-i)/s/2)*s;(0,o.q)(e,a,i,t,n),r.push(i,a,a,t)}}const b=new r.A,v=new r.A,A=new r.A,M=new r.A({deallocator:void 0});class S{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class B extends S{constructor(){super(...arguments),this.height=1,this.indexHint=new s.vW}}class F extends B{constructor(e){super(),this.children=e,this.leaf=!0}}class w extends B{constructor(e){super(),this.children=e,this.leaf=!1}}},36708(e,t,i){i.d(t,{C_:()=>c,on:()=>h,wB:()=>l,z7:()=>u});var s=i(37955),n=i(36563),r=i(97768),o=i(17676),a=i(14012);function l(e,t,i={}){return d(e,t,i,p)}function u(e,t,i={}){return d(e,t,i,f)}function d(e,t,i={},s){let n=null;const o=i.once?(e,i)=>{s(e)&&((0,r.xt)(n),t(e,i))}:(e,i)=>{s(e)&&t(e,i)};if(n=(0,a.Cn)(e,o,i.sync,i.equals),i.initial){const t=e();o(t,t)}return n}function h(e,t,i,o={}){let a=null,u=null,d=null;function h(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function c(e){o.once&&o.once&&(0,r.xt)(d),i(e)}const p=l(e,(e,i)=>{h(),(0,s.wb)(e)&&(a=e,u=(0,s.on)(e,t,c),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return d=(0,n.hA)(()=>{p.remove(),h()}),d}function c(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());const s=e();if(t?.(s))return Promise.resolve(s);let a=null;function l(){a=(0,r.xt)(a)}return new Promise((s,r)=>{a=(0,n.vE)([(0,o.u7)(i,()=>{l(),r((0,o.NK)())}),d(e,e=>{l(),s(e)},{sync:!1,once:!0},t??p)])})}(e,f,t)}function p(e){return!0}function f(e){return!!e}i(80559),i.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},48526(e,t,i){i.d(t,{A:()=>m});var s,n=i(5482),r=i(4576),o=i(4718),a=i(91429),l=i(5443),u=i(91075),d=i(86738),h=i(16930),c=i(90634),p=i(47610),f=i(56993),y=i(43937);let m=s=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:i,hasZ:s,spatialReference:n}=e;switch(t??=[],t?.at(0)?.length){case 4:s??=!0,i??=!0;break;case 3:s??=!0!==i,i??=!s;break;default:s??=!1,i??=!1}return n??=h.A.WGS84,{...e,hasM:i,hasZ:s,points:t,spatialReference:n}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,c.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:i,hasZ:n}=this;return new s({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:i,hasZ:n})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,i=e.spatialReference;return null!=t==(null!=i)&&!(null!=t&&null!=i&&!t.equals(i))&&(0,r.aI)(this.points,e.points,p.v6)}addPoint(e){return(0,f.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],i={x:t[0],y:t[1],spatialReference:this.spatialReference};let s=2;return this.hasZ&&(i.z=t[2],s=3),this.hasM&&(i.m=t[s]),new d.A(i)}removePoint(e){if(!this._validateInputs(e))return null;const t=new d.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,f.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,n.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,n.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,n.Cg)([(0,y.K)("points")],m.prototype,"writePoints",null),m=s=(0,n.Cg)([(0,a.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,i){i.d(t,{A:()=>f});var s,n=i(5482),r=i(4718),o=i(91429),a=i(5443),l=i(91075),u=i(86738),d=i(16930),h=i(90634),c=i(56993),p=i(43937);let f=s=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:i,hasZ:s,spatialReference:n}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:s??=!0,i??=!0;break;case 3:s??=!0!==i,i??=!s;break;default:s??=!1,i??=!1}return n??=d.A.WGS84,{...e,hasM:i,hasZ:s,paths:t,spatialReference:n}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,r.o8)(e)}get extent(){const e=(0,h.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,r.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,i=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const s=[];for(let t=0,i=e.length;t<i;t++)s[t]=e[t].toArray();t[i]=s}else t[i]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new s;return e.spatialReference=this.spatialReference,e.paths=(0,r.o8)(this.paths),e.curvePaths=(0,r.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const i=this.paths[e][t],s=this.hasZ,n=this.hasM;return s&&!n?new u.A(i[0],i[1],i[2],void 0,this.spatialReference):n&&!s?new u.A(i[0],i[1],void 0,i[2],this.spatialReference):s&&n?new u.A(i[0],i[1],i[2],i[3],this.spatialReference):new u.A(i[0],i[1],this.spatialReference)}insertPoint(e,t,i){return this._validateInputs(e,t,!0)?((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e].splice(t,0,i),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],i=this.spatialReference,s=t.map(e=>new u.A(e,i));return this.notifyChange("paths"),s}removePoint(e,t){if(!this._validateInputs(e,t))return null;const i=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),i}setPoint(e,t,i){return this._validateInputs(e,t)?((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e][t]=i,this.notifyChange("paths"),this):this}_validateInputs(e,t,i=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const s=this.paths[e];if(i&&(t<0||t>s.length))return!1;if(!i&&(t<0||t>=s.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,n.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],f.prototype,"curvePaths",void 0),(0,n.Cg)([(0,p.K)("curvePaths")],f.prototype,"writeCurvePaths",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,n.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"paths",void 0),(0,n.Cg)([(0,p.K)("paths")],f.prototype,"writePaths",null),f=s=(0,n.Cg)([(0,o.$K)("esri.geometry.Polyline")],f),f.prototype.toJSON.isDefaultToJSON=!0},60408(e,t,i){function s(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function r(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?r(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":s(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function d(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}i.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>d,Rg:()=>o,U9:()=>n,W0:()=>h,ZC:()=>s,fT:()=>r,uW:()=>l})},65864(e,t,i){i.d(t,{rS:()=>d,xD:()=>c});var s=i(5443),n=i(91075),r=i(48526),o=i(86738),a=i(39829),l=i(82799),u=i(60408);function d(e){return null==e?null:e instanceof n.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?r.A.fromJSON(e):(0,u.ZC)(e)?s.A.fromJSON(e):null}const h={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:s.A,esriGeometryMultipoint:r.A,esriGeometryMultiPatch:a.A};function c(e){return e&&h[e]||null}},6518(e,t,i){i.d(t,{F:()=>a});var s=i(44208),n=i(75503),r=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.wq(9,(0,s.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((i,s)=>{e[t++]=s}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,r.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,i)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,i){i.d(t,{A:()=>f});var s=i(4576),n=i(49186),r=i(65529),o=i(53966),a=i(70328),l=i(19419),u=i(90708),d=i(6518),h=i(51441),c=i(37730);const p=(0,a.vt)();class f{constructor(e){this.geometryInfo=e,this._boundsStore=new d.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.bk,this.featureAdapter=c.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,i,s,n]=this.fullBounds;return{xmin:t,ymin:i,xmax:s,ymax:n,spatialReference:(0,h.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(s.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const i of e){const e=this._boundsStore.get(i.objectId);e&&t((0,a.Jt)(p,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const i=this._featuresById.get(t);let s;if(i?(e.displayId=i.displayId,s=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);s=(0,u.jQ)(null!=s?s:(0,l.vt)(),e.geometry),null!=s&&this._boundsStore.set(t,s),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const i=this._featuresById.get(t);if(!i)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;const{geometry:s,attributes:r}=e;for(const e in r)i.attributes[e]=r[e];return s&&(i.geometry=s,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),s)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,i){var s=i(43334);const n={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,i)=>new s.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};i.d(t,["T",0,n])},33032(e,t,i){function s(e,t){let i=0;for(const s of t){const t=s.attributes?.[e];"number"==typeof t&&isFinite(t)&&(i=Math.max(i,t))}return i}i.d(t,{H:()=>s})},29432(e,t,i){i.r(t),i.d(t,{default:()=>A});var s=i(4576),n=i(49186),r=i(60408),o=i(21325),a=i(90708),l=i(33032),u=i(83221),d=i(31464),h=i(75752),c=i(64714),p=i(82832),f=i(95466),y=i(98453),m=i(30524);i(98623);const g=o.KK,_={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:o.KK},I={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsQueryAttachmentsCountOnly:!1,supportsQueryAttachmentOrderByFields:!1,supportsQueryAttachmentWithTypeWildcard:!1,supportsQueryBins:!0,supportsQueryPivot:!1,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:["EnvelopeAggregate","CentroidAggregate","ConvexHullAggregate"],supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0,supportsQueryWithCacheHint:!0},queryBinsCapabilities:p.PC};function x(e){return(0,r.fT)(e)?null!=e.z:!!e.hasZ}function b(e){return(0,r.fT)(e)?null!=e.m:!!e.hasM}function v(e,t){let i;const s=[];if("unique-id-composite"===t.type){const n=[];for(const i of t.fieldNames)e.attributes[i]?n.push(e.attributes[i]):s.push(i);i=0===s.length?JSON.stringify(n):null}else i=e.attributes[t.fieldName],i||s.push(t.fieldName);return{objectId:i,missingFields:s}}class A{constructor(){this._uniqueIdInfo=null,this._queryEngine=null,this._nextObjectId=null}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e){const t=[],{features:i}=e,s=this._inferLayerProperties(i,e.fields),r=e.fields||[],o=null!=e.hasM?e.hasM:!!s.hasM,a=null!=e.hasZ?e.hasZ:!!s.hasZ,p=!e.spatialReference&&!s.spatialReference,x=p?g:e.spatialReference||s.spatialReference,b=p?_:null,v=e.geometryType||s.geometryType,A=!v,M=e.uniqueIdInfo;let S=e.objectIdField??s.objectIdField,B=e.timeInfo;const F=new f.A(r);if(!A&&(p&&t.push({name:"feature-layer:spatial-reference-not-found",message:"Spatial reference not provided or found in features. Defaults to WGS84"}),!v))throw new n.A("feature-layer:missing-property","geometryType not set and couldn't be inferred from the provided features");if(M){const e=new Set(r.map(({name:e})=>e));if(!M.fields.every(t=>e.has(t))){const t=M.fields.filter(t=>!e.has(t));throw new n.A("feature-layer:missing-property","UniqueIdFields not set and couldn't be found in the provided fields. Fields: "+t+" are mssing.")}S=null}else if(!S)throw new n.A("feature-layer:missing-property","objectIdField not set and uniqueIdInfo not provided.");if(s.objectIdField&&S!==s.objectIdField&&(t.push({name:"feature-layer:duplicated-oid-field",message:`Provided objectIdField "${S}" doesn't match the field name "${s.objectIdField}", found in the provided fields`}),S=s.objectIdField),S&&!s.objectIdField){const e=F.get(S);e?(S=e.name,e.type="esriFieldTypeOID",e.editable=!1,e.nullable=!1):r.unshift({alias:S,name:S,type:"esriFieldTypeOID",editable:!1,nullable:!1})}for(const e of r){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),!e.name)throw new n.A("feature-layer:invalid-field-name","field name is missing",{field:e});if(e.name===S&&(e.type="esriFieldTypeOID"),!y.m.jsonValues.includes(e.type))throw new n.A("feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});null==e.length&&(e.length=(0,m._b)(e))}const w={};for(const e of r)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){const t=(0,m.lD)(e);void 0!==t&&(w[e.name]=t)}if(B){if(B.startTimeField){const e=F.get(B.startTimeField);e?(B.startTimeField=e.name,e.type="esriFieldTypeDate"):B.startTimeField=null}if(B.endTimeField){const e=F.get(B.endTimeField);e?(B.endTimeField=e.name,e.type="esriFieldTypeDate"):B.endTimeField=null}if(B.trackIdField){const e=F.get(B.trackIdField);e?B.trackIdField=e.name:(B.trackIdField=null,t.push({name:"feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:B}}))}B.startTimeField||B.endTimeField||(t.push({name:"feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing or invalid",details:{timeInfo:B}}),B=null)}const T=F.dateFields.length?{timeZoneIANA:e.dateFieldsTimeZone??"UTC"}:null;this._createDefaultAttributes=(0,c.Vx)(w,S),this._uniqueIdInfo=e.uniqueIdInfo??void 0;const C={warnings:t,featureErrors:[],layerDefinition:{...I,drawingInfo:(0,c.F0)(v),templates:(0,c.e2)(w),extent:b,geometryType:v,objectIdField:S,fields:r,hasZ:a,hasM:o,timeInfo:B,dateFieldsTimeReference:T,uniqueIdInfo:this._uniqueIdInfo??void 0},assignedObjectIds:{}},R=this._uniqueIdInfo?.OIDFieldContainsHashValue?"simple"===this._uniqueIdInfo.type?{type:"unique-id-simple",fieldName:this._uniqueIdInfo.fields[0]}:{type:"unique-id-composite",fieldNames:this._uniqueIdInfo.fields}:{type:"object-id",fieldName:S};if(this._queryEngine=new h.do({fieldsIndex:f.A.fromLayerJSON({fields:r,timeInfo:B,dateFieldsTimeReference:T}),geometryType:v,hasM:o,hasZ:a,featureIdInfo:R,spatialReference:x,featureStore:new u.A({geometryType:v,hasM:o,hasZ:a}),timeInfo:B}),!i?.length)return this._nextObjectId=1,C;if(S){const e=(0,l.H)(S,i);this._nextObjectId=e+1}return await(0,d.Nk)(i,x),this._loadInitialFeatures(C,i)}async applyEdits(e){const{spatialReference:t,geometryType:i}=this._queryEngine;return await Promise.all([(0,p.$1)(t,i),(0,d.Nk)(e.adds,t),(0,d.Nk)(e.updates,t)]),this._applyEdits(e)}queryFeatures(e,t={}){return this._queryEngine.executeQuery(e,t.signal)}queryFeatureCount(e,t={}){return this._queryEngine.executeQueryForCount(e,t.signal)}queryObjectIds(e,t={}){return this._queryEngine.executeQueryForIds(e,t.signal)}queryExtent(e,t={}){return this._queryEngine.executeQueryForExtent(e,t.signal)}querySnapping(e,t={}){return this._queryEngine.executeQueryForSnapping(e,t.signal)}queryAttributeBins(e,t={}){return this._queryEngine.executeAttributeBinsQuery(e,t.signal)}_inferLayerProperties(e,t){let i,s,n=null,o=null,a=null;for(const t of e){const e=t.geometry;if(null!=e&&(n||(n=(0,r.$B)(e)),o||(o=e.spatialReference),null==i&&(i=x(e)),null==s&&(s=b(e)),n&&o&&null!=i&&null!=s))break}if(t&&t.length){let e=null;t.some(t=>{const i="esriFieldTypeOID"===t.type,s=!t.type&&t.name&&"objectid"===t.name.toLowerCase();return e=t,i||s})&&(a=e.name)}return{geometryType:n,spatialReference:o,objectIdField:a,hasM:s,hasZ:i}}async _loadInitialFeatures(e,t){const{geometryType:i,hasM:s,hasZ:n,spatialReference:o,featureStore:l,fieldsIndex:u,featureIdInfo:h}=this._queryEngine,c=[];for(const s of t){if(null!=s.uid&&(e.assignedObjectIds[s.uid]=-1),s.geometry&&i!==(0,r.$B)(s.geometry)){e.featureErrors.push((0,p.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),n=(0,p.MB)(u,t,s.attributes,!0);n?e.featureErrors.push(n):(this._assignObjectId(t,s.attributes,!0),s.attributes=t,s.uid&&(e.assignedObjectIds[s.uid]=v(s,h).objectId),null!=s.geometry&&(s.geometry=(0,d.Cv)(s.geometry,s.geometry.spatialReference,o)),c.push(s))}l.addMany((0,a.Di)([],c,i,n,s,h));const{fullExtent:f,timeExtent:y}=await this._queryEngine.fetchRecomputedExtents();if(e.layerDefinition.extent=f,y){const{start:t,end:i}=y;e.layerDefinition.timeInfo.timeExtent=[t,i]}return e}async _applyEdits(e){const{adds:t,updates:i,deletes:s}=e,n={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(n,t),i?.length&&this._applyUpdateEdits(n,i),s?.length){for(const e of s)n.deleteResults.push((0,p.bP)(e));this._queryEngine.featureStore.removeManyById(s)}const{fullExtent:r,timeExtent:o}=await this._queryEngine.fetchRecomputedExtents();return{extent:r,timeExtent:o,featureEditResults:n}}_applyAddEdits(e,t){const{addResults:i,updateResults:n}=e,{geometryType:o,hasM:l,hasZ:u,spatialReference:h,featureStore:c,featureIdInfo:f,fieldsIndex:y}=this._queryEngine,m=[],g=new Map;for(const a of t){if(a.geometry&&o!==(0,r.$B)(a.geometry)){i.push((0,p.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),l=(0,p.MB)(y,t,a.attributes);if(l){i.push(l);continue}this._assignObjectId(t,a.attributes),a.attributes=t;const{objectId:u,missingFields:_}=v(a,f);if(u){if(null!=a.uid&&(e.uidToObjectId[a.uid]=u),null!=a.geometry){const e=a.geometry.spatialReference??h;a.geometry=(0,d.Cv)((0,p.CR)(a.geometry,e),e,h)}m.push(a);const t=(0,p.bP)(u);g.has(u)?(0,s.TF)(m,g.get(u)):c.has(u)?n.push(t):i.push(t),g.set(u,a)}else i.push((0,p.Yx)(`Missing unique id field value for fields: ${_.join()}`))}c.addMany((0,a.Di)([],m,o,u,l,f))}_applyUpdateEdits({updateResults:e},t){const{geometryType:i,hasM:s,hasZ:n,spatialReference:o,featureStore:l,fieldsIndex:u,featureIdInfo:h}=this._queryEngine;for(const c of t){const{attributes:t,geometry:f}=c,{objectId:y,missingFields:m}=v(c,h);if(null==y){const t="unique-id-composite"===h.type?m:h.fieldName;e.push((0,p.Yx)(`Identifier fields: ${t} missing`));continue}if(!l.has(y)){e.push((0,p.Yx)(`Feature with object id ${y} missing`));continue}const g=(0,a.oN)(l.getFeature(y),i,n,s);if(null!=f){if(i!==(0,r.$B)(f)){e.push((0,p.Yx)("Incorrect geometry type."));continue}const t=f.spatialReference??o;g.geometry=(0,d.Cv)((0,p.CR)(f,t),t,o)}if(t){const i=(0,p.MB)(u,g.attributes,t);if(i){e.push(i);continue}}l.add((0,a.E2)(g,i,n,s,h)),e.push((0,p.bP)(y))}}_assignObjectId(e,t,i=!1){if("object-id"===this._queryEngine.featureIdInfo.type){const s=this._queryEngine.featureIdInfo.fieldName;i&&t&&isFinite(t[s])?e[s]=t[s]:e[s]=this._nextObjectId++}}}},64714(e,t,i){i.d(t,{F0:()=>a,Vx:()=>d,e2:()=>c,f:()=>p});var s=i(44208),n=i(4718),r=i(99352),o=i(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function d(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let i="";t&&(i+=`this${h(t)} = null;`);for(const t in e)i+=`this${h(t)} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${i};\n }\n }\n `)();return()=>new s}catch(i){return()=>t?{[t]:null,...e}:{...e}}}function h(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(e)}}]}function p(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},82832(e,t,i){i.d(t,{$1:()=>m,CR:()=>y,MB:()=>c,Yx:()=>l,bP:()=>d});var s=i(67482),n=i(21325),r=i(30524);class o{constructor(e){this.description=e,this.code=null}}class a{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new o(e)}}function l(e){return new a(e)}class u{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function d(e){return new u(e)}const h=new Set;function c(e,t,i,s=!1){h.clear();for(const n in i){const o=e.get(n);if(!o)continue;const a=p(o,i[n]);if(h.add(o.name),o&&(s||o.editable)){const e=(0,r.CJ)(o,a);if(e)return l((0,r.uo)(e,o,a));t[o.name]=a}}for(const t of e.requiredFields??[])if(!h.has(t.name))return l(`missing required field "${t.name}"`);return null}function p(e,t){let i=t;return(0,r.WA)(e)&&"string"==typeof t?i=parseFloat(t):(0,r.yM)(e)&&null!=t&&"string"!=typeof t?i=String(t):(0,r.vE)(e)&&"string"==typeof t&&(i=(0,s._)(t)),(0,r.WX)(i)}let f;function y(e,t){if(!e||!(0,n.fn)(t))return e;if("rings"in e||"paths"in e){if(null==f)throw new TypeError("geometry engine not loaded");return f.simplify(t,e)}return e}async function m(e,t){!(0,n.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==f&&(f=await i.e(1023).then(i.bind(i,81023))),f}()}i.d(t,["PC",0,{supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}])},98453(e,t,i){const s=new(i(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});i.d(t,["m",0,s])},2272(e,t,i){i.d(t,{Dl:()=>u,gf:()=>h,jV:()=>l,lF:()=>d});var s=i(92602),n=i(70333),r=i(4718),o=i(84952),a=i(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,r.o8)(e)}function d(e,t,i){const s={};for(const n in e){if("declaredClass"===n)continue;const r=e[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r))s[n]=r.map(e=>d(e));else if("object"==typeof r)if(r.toJSON){const e=r.toJSON(i?.[n]);s[n]=t?e:JSON.stringify(e)}else s[n]=t?r:JSON.stringify(r);else s[n]=r}return s}async function h(e,t,r){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??n.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!n.id&&s.A.request.useIdentity&&await Promise.all([i.e(7632),i.e(864),i.e(148)]).then(i.bind(i,50148));const l=await n.id.getCredential(e,r);return l?.token}},926(e,t,i){i.d(t,{Dd:()=>c,Jn:()=>p,Qc:()=>f,getApiKey:()=>d,getSessionToken:()=>h});var s=i(92602),n=i(11254),r=i(84952);const o=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,a=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),l=new Map;let u=null;function d(e){if(!f(e))return null;const t=t=>t instanceof RegExp?t.test(e):"string"==typeof t&&e.startsWith(t),i=s.A.apiKeys;if(Array.isArray(i.scopes))for(const e of i.scopes)if(Array.isArray(e.urls)){if(e.urls.some(t))return e.token}else if(t(e.urls))return e.token;return i.basemapStyles&&o.test(e)?i.basemapStyles:s.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(e)?s.A.apiKey:null}async function h(e){if(!s.A.sessions?.basemap?.enabled||!o.test(e))return null;const t=d(e);if(!t)return null;u&&await u;const{styleFamily:i="arcgis",autoRefresh:r,duration:a=43200}=s.A.sessions.basemap,h=`${t}:${i}`,c=l.get(h);if(c&&(!r||c.endTime>Date.now()))return c.sessionToken;let p;u=(0,n.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:a,styleFamily:i,token:t}});try{p=(await u).data,p.endTime-=5e3,l.set(h,p)}finally{u=null}return p.sessionToken}function c(){return null!=s.A.apiKey||null!=s.A.apiKeys.basemapStyles}function p(e,t){return t?f(e):null!=d(e)}function f(e){const t=(0,r.$z)(e,!0);return!!t&&!a.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},93470(e,t,i){const s=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:s,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},r={type:"esriSLS",style:"esriSLSSolid",width:.75,color:s};i.d(t,["Cb",0,n,"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,s,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,r])}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[926,9144],{69540(e,t,i){var s=i(5482),n=i(69622),r=(i(44208),i(4718)),o=(i(53966),i(97768)),a=i(88620),u=i(64108);const l=Symbol("ClonableMixin"),d=e=>{var t;const i=e;let n=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=l}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const i=t.metadata,s=t.store,n={},u=new Map;for(const t in i){const o=i[t],a=s?.originOf(t),l=o.clonable;if(o.readOnly||!1===l||7!==a&&0!==a&&5!==a&&4!==a)continue;const d=this[t];let h=null;if("function"==typeof l)h=l(d,e);else if("reference"===l)h=d;else if(h=(0,r.TU)(d,e),null!=d&&null==h)continue;0===a?u.set(t,h):n[t]=h}const l=new(0,Object.getPrototypeOf(this).constructor)(n);if(u.size){const e=(0,a.oY)(l)?.store;if(e)for(const[t,i]of u)e.set(t,i,0)}return l}};return n=(0,s.Cg)([(0,u.$)("esri.core.Clonable")],n),n},h=d(n.A);i.d(t,["OU",0,d,"Pw",0,h])},67482(e,t,i){function s(e){return null!==n(e)}function n(e){return function(e){const t=r.exec(e);if(!t?.groups)return null;const i=t.groups,s=+i.year,n=+i.month-1,o=+i.day,a=+(i.hours??"0"),u=+(i.minutes??"0"),l=+(i.seconds??"0");if(a>23)return null;if(u>59)return null;if(l>59)return null;const d=i.ms??"0",h=d?+d.padEnd(3,"0").slice(0,3):0;let c;if(i.isUTC||!i.offsetSign)c=Date.UTC(s,n,o,a,u,l,h);else{const e=+i.offsetHours,t=+i.offsetMinutes;c=6e4*("+"===i.offsetSign?-1:1)*(60*e+t)+Date.UTC(s,n,o,a,u,l,h)}return Number.isNaN(c)?null:c}(e)??function(e){const t=new Date(e),i=t.getTime();return Number.isNaN(i)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?i:null}(e)??function(e){if(!o.test(e))return null;const t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}i.d(t,{C:()=>s,_:()=>n});const r=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},75503(e,t,i){i.d(t,{wq:()=>a});var s=i(4576),n=i(21818),r=(i(44208),i(15142)),o=i(11006);class a{constructor(e=9,t){this._compareMinX=c,this._compareMinY=p,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),b.prune(),v.prune(),A.prune(),M.prune()}all(e){u(this._data,e)}search(e,t){let i=this._data;const s=this._toBBox;if(I(e,i))for(b.clear();i;){for(let n=0,r=i.children.length;n<r;n++){const r=i.children[n],o=i.leaf?s(r):r;I(e,o)&&(i.leaf?t(r):_(e,o)?u(r,t):b.push(r))}i=b.pop()}}collides(e){let t=this._data;const i=this._toBBox;if(!I(e,t))return!1;for(b.clear();t;){for(let s=0,n=t.children.length;s<n;s++){const n=t.children[s],r=t.leaf?i(n):n;if(I(e,r)){if(t.leaf||_(e,r))return!0;b.push(n)}}t=b.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new F([]),this}remove(e){if(!e)return this;let t,i=this._data,r=null,o=0,a=!1;const u=this._toBBox(e);for(A.clear(),M.clear();i||A.length>0;){if(i||(i=A.pop(),r=A.data[A.length-1],o=M.pop()??0,a=!0),i.leaf&&(t=(0,s.qh)(i.children,(0,n.z)(e),i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),A.push(i),this._condense(A),this;a||i.leaf||!_(i,u)?r?(o++,i=r.children[o],a=!1):i=null:(A.push(i),M.push(o),o=0,r=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,i,s){const n=i-t+1;let r=this._maxEntries;if(n<=r){const s=new F(e.slice(t,i+1));return l(s,this._toBBox),s}s||(s=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(s-1)));const o=new w([]);o.height=s;const a=Math.ceil(n/r),u=a*Math.ceil(Math.sqrt(r));x(e,t,i,u,this._compareMinX);for(let n=t;n<=i;n+=u){const t=Math.min(n+u-1,i);x(e,n,t,a,this._compareMinY);for(let i=n;i<=t;i+=a){const n=Math.min(i+a-1,t);o.children.push(this._build(e,i,n,s-1))}}return l(o,this._toBBox),o}_insert(e,t,i){const s=this._toBBox,n=i?e:s(e);A.clear();const r=function(e,t,i,s){for(;s.push(t),!0!==t.leaf&&s.length-1!==i;){let i,s=1/0,n=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=f(o),u=m(e,o)-a;u<n?(n=u,s=a<s?a:s,i=o):u===n&&a<s&&(s=a,i=o)}t=i||t.children[0]}return t}(n,this._data,t,A);for(r.children.push(e),h(r,n);t>=0&&A.data[t].children.length>this._maxEntries;)this._split(A,t),t--;!function(e,t,i){for(let s=i;s>=0;s--)h(t.data[s],e)}(n,A,t)}_split(e,t){const i=e.data[t],s=i.children.length,n=this._minEntries;this._chooseSplitAxis(i,n,s);const r=this._chooseSplitIndex(i,n,s);if(!r)return;const o=i.children.splice(r,i.children.length-r),a=i.leaf?new F(o):new w(o);a.height=i.height,l(i,this._toBBox),l(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this._data=new w([e,t]),this._data.height=e.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(e,t,i){let s,n,r;s=n=1/0;for(let o=t;o<=i-t;o++){const t=d(e,0,o,this._toBBox),a=d(e,o,i,this._toBBox),u=g(t,a),l=f(t)+f(a);u<s?(s=u,r=o,n=l<n?l:n):u===s&&l<n&&(n=l,r=o)}return r}_chooseSplitAxis(e,t,i){const s=e.leaf?this._compareMinX:c,n=e.leaf?this._compareMinY:p;this._allDistMargin(e,t,i,s)<this._allDistMargin(e,t,i,n)&&e.children.sort(s)}_allDistMargin(e,t,i,s){e.children.sort(s);const n=this._toBBox,r=d(e,0,t,n),o=d(e,i-t,i,n);let a=y(r)+y(o);for(let s=t;s<i-t;s++){const t=e.children[s];h(r,e.leaf?n(t):t),a+=y(r)}for(let s=i-t-1;s>=t;s--){const t=e.children[s];h(o,e.leaf?n(t):t),a+=y(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const i=e.data[t];if(0===i.children.length)if(t>0){const n=e.data[t-1],r=n.children;r.splice((0,s.qh)(r,i,r.length,n.indexHint),1)}else this.clear();else l(i,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function u(e,t){let i=e;for(v.clear();i;){if(!0===i.leaf)for(const e of i.children)t((0,n.z)(e));else v.pushArray(i.children);i=v.pop()??null}}function l(e,t){d(e,0,e.children.length,t,e)}function d(e,t,i,s,n){n||(n=new F([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=t;o<i;o++)r=e.children[o],h(n,e.leaf?s(r):r);return n}function h(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function c(e,t){return e.minX-t.minX}function p(e,t){return e.minY-t.minY}function f(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function y(e){return e.maxX-e.minX+(e.maxY-e.minY)}function m(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const i=Math.max(e.minX,t.minX),s=Math.max(e.minY,t.minY),n=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,n-i)*Math.max(0,r-s)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function I(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function x(e,t,i,s,n){const r=[t,i];for(;r.length;){const t=r.pop(),i=r.pop();if(t-i<=s)continue;const a=i+Math.ceil((t-i)/s/2)*s;(0,o.q)(e,a,i,t,n),r.push(i,a,a,t)}}const b=new r.A,v=new r.A,A=new r.A,M=new r.A({deallocator:void 0});class S{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class B extends S{constructor(){super(...arguments),this.height=1,this.indexHint=new s.vW}}class F extends B{constructor(e){super(),this.children=e,this.leaf=!0}}class w extends B{constructor(e){super(),this.children=e,this.leaf=!1}}},36708(e,t,i){i.d(t,{C_:()=>c,on:()=>h,wB:()=>u,z7:()=>l});var s=i(37955),n=i(36563),r=i(97768),o=i(17676),a=i(14012);function u(e,t,i={}){return d(e,t,i,p)}function l(e,t,i={}){return d(e,t,i,f)}function d(e,t,i={},s){let n=null;const o=i.once?(e,i)=>{s(e)&&((0,r.xt)(n),t(e,i))}:(e,i)=>{s(e)&&t(e,i)};if(n=(0,a.Cn)(e,o,i.sync,i.equals),i.initial){const t=e();o(t,t)}return n}function h(e,t,i,o={}){let a=null,l=null,d=null;function h(){a&&l&&(l.remove(),o.onListenerRemove?.(a),a=null,l=null)}function c(e){o.once&&o.once&&(0,r.xt)(d),i(e)}const p=u(e,(e,i)=>{h(),(0,s.wb)(e)&&(a=e,l=(0,s.on)(e,t,c),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return d=(0,n.hA)(()=>{p.remove(),h()}),d}function c(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());const s=e();if(t?.(s))return Promise.resolve(s);let a=null;function u(){a=(0,r.xt)(a)}return new Promise((s,r)=>{a=(0,n.vE)([(0,o.u7)(i,()=>{u(),r((0,o.NK)())}),d(e,e=>{u(),s(e)},{sync:!1,once:!0},t??p)])})}(e,f,t)}function p(e){return!0}function f(e){return!!e}i(80559),i.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},48526(e,t,i){i.d(t,{A:()=>m});var s,n=i(5482),r=i(4576),o=i(4718),a=i(91429),u=i(5443),l=i(91075),d=i(86738),h=i(16930),c=i(90634),p=i(47610),f=i(56993),y=i(43937);let m=s=class extends l.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:i,hasZ:s,spatialReference:n}=e;switch(t??=[],t?.at(0)?.length){case 4:s??=!0,i??=!0;break;case 3:s??=!0!==i,i??=!s;break;default:s??=!1,i??=!1}return n??=h.A.WGS84,{...e,hasM:i,hasZ:s,points:t,spatialReference:n}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,c.ge)(this);return e?new u.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:i,hasZ:n}=this;return new s({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:i,hasZ:n})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,i=e.spatialReference;return null!=t==(null!=i)&&!(null!=t&&null!=i&&!t.equals(i))&&(0,r.aI)(this.points,e.points,p.v6)}addPoint(e){return(0,f.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],i={x:t[0],y:t[1],spatialReference:this.spatialReference};let s=2;return this.hasZ&&(i.z=t[2],s=3),this.hasM&&(i.m=t[s]),new d.A(i)}removePoint(e){if(!this._validateInputs(e))return null;const t=new d.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,f.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,n.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,n.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,n.Cg)([(0,y.K)("points")],m.prototype,"writePoints",null),m=s=(0,n.Cg)([(0,a.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,i){i.d(t,{A:()=>f});var s,n=i(5482),r=i(4718),o=i(91429),a=i(5443),u=i(91075),l=i(86738),d=i(16930),h=i(90634),c=i(56993),p=i(43937);let f=s=class extends u.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:i,hasZ:s,spatialReference:n}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:s??=!0,i??=!0;break;case 3:s??=!0!==i,i??=!s;break;default:s??=!1,i??=!1}return n??=d.A.WGS84,{...e,hasM:i,hasZ:s,paths:t,spatialReference:n}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,r.o8)(e)}get extent(){const e=(0,h.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,r.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,i=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const s=[];for(let t=0,i=e.length;t<i;t++)s[t]=e[t].toArray();t[i]=s}else t[i]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new s;return e.spatialReference=this.spatialReference,e.paths=(0,r.o8)(this.paths),e.curvePaths=(0,r.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const i=this.paths[e][t],s=this.hasZ,n=this.hasM;return s&&!n?new l.A(i[0],i[1],i[2],void 0,this.spatialReference):n&&!s?new l.A(i[0],i[1],void 0,i[2],this.spatialReference):s&&n?new l.A(i[0],i[1],i[2],i[3],this.spatialReference):new l.A(i[0],i[1],this.spatialReference)}insertPoint(e,t,i){return this._validateInputs(e,t,!0)?((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e].splice(t,0,i),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],i=this.spatialReference,s=t.map(e=>new l.A(e,i));return this.notifyChange("paths"),s}removePoint(e,t){if(!this._validateInputs(e,t))return null;const i=new l.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),i}setPoint(e,t,i){return this._validateInputs(e,t)?((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e][t]=i,this.notifyChange("paths"),this):this}_validateInputs(e,t,i=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const s=this.paths[e];if(i&&(t<0||t>s.length))return!1;if(!i&&(t<0||t>=s.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,n.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],f.prototype,"curvePaths",void 0),(0,n.Cg)([(0,p.K)("curvePaths")],f.prototype,"writeCurvePaths",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,n.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"paths",void 0),(0,n.Cg)([(0,p.K)("paths")],f.prototype,"writePaths",null),f=s=(0,n.Cg)([(0,o.$K)("esri.geometry.Polyline")],f),f.prototype.toJSON.isDefaultToJSON=!0},60408(e,t,i){function s(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function r(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function u(e){return"object"==typeof e&&"vertexAttributes"in e}function l(e){return e?r(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":s(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function d(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}i.d(t,{$B:()=>l,Bi:()=>a,Pv:()=>d,Rg:()=>o,U9:()=>n,W0:()=>h,ZC:()=>s,fT:()=>r,uW:()=>u})},65864(e,t,i){i.d(t,{rS:()=>d,xD:()=>c});var s=i(5443),n=i(91075),r=i(48526),o=i(86738),a=i(39829),u=i(82799),l=i(60408);function d(e){return null==e?null:e instanceof n.A?e:(0,l.fT)(e)?o.A.fromJSON(e):(0,l.Rg)(e)?u.A.fromJSON(e):(0,l.Bi)(e)?a.A.fromJSON(e):(0,l.U9)(e)?r.A.fromJSON(e):(0,l.ZC)(e)?s.A.fromJSON(e):null}const h={esriGeometryPoint:o.A,esriGeometryPolyline:u.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:s.A,esriGeometryMultipoint:r.A,esriGeometryMultiPatch:a.A};function c(e){return e&&h[e]||null}},6518(e,t,i){i.d(t,{F:()=>a});var s=i(44208),n=i(75503),r=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.wq(9,(0,s.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((i,s)=>{e[t++]=s}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,r.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,i)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,i){i.d(t,{A:()=>f});var s=i(4576),n=i(49186),r=i(65529),o=i(53966),a=i(70328),u=i(19419),l=i(90708),d=i(6518),h=i(51441),c=i(37730);const p=(0,a.vt)();class f{constructor(e){this.geometryInfo=e,this._boundsStore=new d.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.bk,this.featureAdapter=c.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,i,s,n]=this.fullBounds;return{xmin:t,ymin:i,xmax:s,ymax:n,spatialReference:(0,h.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(s.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const i of e){const e=this._boundsStore.get(i.objectId);e&&t((0,a.Jt)(p,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const i=this._featuresById.get(t);let s;if(i?(e.displayId=i.displayId,s=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);s=(0,l.jQ)(null!=s?s:(0,u.vt)(),e.geometry),null!=s&&this._boundsStore.set(t,s),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const i=this._featuresById.get(t);if(!i)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;const{geometry:s,attributes:r}=e;for(const e in r)i.attributes[e]=r[e];return s&&(i.geometry=s,this._boundsStore.set(t,(0,l.jQ)((0,u.vt)(),s)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,i){var s=i(43334);const n={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,i)=>new s.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};i.d(t,["T",0,n])},33032(e,t,i){function s(e,t){let i=0;for(const s of t){const t=s.attributes?.[e];"number"==typeof t&&isFinite(t)&&(i=Math.max(i,t))}return i}i.d(t,{H:()=>s})},29432(e,t,i){i.r(t),i.d(t,{default:()=>A});var s=i(4576),n=i(49186),r=i(60408),o=i(21325),a=i(90708),u=i(33032),l=i(83221),d=i(31464),h=i(75752),c=i(64714),p=i(82832),f=i(95466),y=i(98453),m=i(30524);i(98623);const g=o.KK,_={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:o.KK},I={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsQueryAttachmentsCountOnly:!1,supportsQueryAttachmentOrderByFields:!1,supportsQueryAttachmentWithTypeWildcard:!1,supportsQueryBins:!0,supportsQueryPivot:!1,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:["EnvelopeAggregate","CentroidAggregate","ConvexHullAggregate"],supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0,supportsQueryWithCacheHint:!0},queryBinsCapabilities:p.PC};function x(e){return(0,r.fT)(e)?null!=e.z:!!e.hasZ}function b(e){return(0,r.fT)(e)?null!=e.m:!!e.hasM}function v(e,t){let i;const s=[];if("unique-id-composite"===t.type){const n=[];for(const i of t.fieldNames)e.attributes[i]?n.push(e.attributes[i]):s.push(i);i=0===s.length?JSON.stringify(n):null}else i=e.attributes[t.fieldName],i||s.push(t.fieldName);return{objectId:i,missingFields:s}}class A{constructor(){this._uniqueIdInfo=null,this._queryEngine=null,this._nextObjectId=null}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e){const t=[],{features:i}=e,s=this._inferLayerProperties(i,e.fields),r=e.fields||[],o=null!=e.hasM?e.hasM:!!s.hasM,a=null!=e.hasZ?e.hasZ:!!s.hasZ,p=!e.spatialReference&&!s.spatialReference,x=p?g:e.spatialReference||s.spatialReference,b=p?_:null,v=e.geometryType||s.geometryType,A=!v,M=e.uniqueIdInfo;let S=e.objectIdField??s.objectIdField,B=e.timeInfo;const F=new f.A(r);if(!A&&(p&&t.push({name:"feature-layer:spatial-reference-not-found",message:"Spatial reference not provided or found in features. Defaults to WGS84"}),!v))throw new n.A("feature-layer:missing-property","geometryType not set and couldn't be inferred from the provided features");if(M){const e=new Set(r.map(({name:e})=>e));if(!M.fields.every(t=>e.has(t))){const t=M.fields.filter(t=>!e.has(t));throw new n.A("feature-layer:missing-property","UniqueIdFields not set and couldn't be found in the provided fields. Fields: "+t+" are mssing.")}S=null}else if(!S)throw new n.A("feature-layer:missing-property","objectIdField not set and uniqueIdInfo not provided.");if(s.objectIdField&&S!==s.objectIdField&&(t.push({name:"feature-layer:duplicated-oid-field",message:`Provided objectIdField "${S}" doesn't match the field name "${s.objectIdField}", found in the provided fields`}),S=s.objectIdField),S&&!s.objectIdField){const e=F.get(S);e?(S=e.name,e.type="esriFieldTypeOID",e.editable=!1,e.nullable=!1):r.unshift({alias:S,name:S,type:"esriFieldTypeOID",editable:!1,nullable:!1})}for(const e of r){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),!e.name)throw new n.A("feature-layer:invalid-field-name","field name is missing",{field:e});if(e.name===S&&(e.type="esriFieldTypeOID"),!y.m.jsonValues.includes(e.type))throw new n.A("feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});null==e.length&&(e.length=(0,m._b)(e))}const w={};for(const e of r)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){const t=(0,m.lD)(e);void 0!==t&&(w[e.name]=t)}if(B){if(B.startTimeField){const e=F.get(B.startTimeField);e?(B.startTimeField=e.name,e.type="esriFieldTypeDate"):B.startTimeField=null}if(B.endTimeField){const e=F.get(B.endTimeField);e?(B.endTimeField=e.name,e.type="esriFieldTypeDate"):B.endTimeField=null}if(B.trackIdField){const e=F.get(B.trackIdField);e?B.trackIdField=e.name:(B.trackIdField=null,t.push({name:"feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:B}}))}B.startTimeField||B.endTimeField||(t.push({name:"feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing or invalid",details:{timeInfo:B}}),B=null)}const T=F.dateFields.length?{timeZoneIANA:e.dateFieldsTimeZone??"UTC"}:null;this._createDefaultAttributes=(0,c.Vx)(w,S),this._uniqueIdInfo=e.uniqueIdInfo??void 0;const C={warnings:t,featureErrors:[],layerDefinition:{...I,drawingInfo:(0,c.F0)(v),templates:(0,c.e2)(w),extent:b,geometryType:v,objectIdField:S,fields:r,hasZ:a,hasM:o,timeInfo:B,dateFieldsTimeReference:T,uniqueIdInfo:this._uniqueIdInfo??void 0},assignedObjectIds:{}},R=this._uniqueIdInfo?.OIDFieldContainsHashValue?"simple"===this._uniqueIdInfo.type?{type:"unique-id-simple",fieldName:this._uniqueIdInfo.fields[0]}:{type:"unique-id-composite",fieldNames:this._uniqueIdInfo.fields}:{type:"object-id",fieldName:S};if(this._queryEngine=new h.do({fieldsIndex:f.A.fromLayerJSON({fields:r,timeInfo:B,dateFieldsTimeReference:T}),geometryType:v,hasM:o,hasZ:a,featureIdInfo:R,spatialReference:x,featureStore:new l.A({geometryType:v,hasM:o,hasZ:a}),timeInfo:B}),!i?.length)return this._nextObjectId=1,C;if(S){const e=(0,u.H)(S,i);this._nextObjectId=e+1}return await(0,d.Nk)(i,x),this._loadInitialFeatures(C,i)}async applyEdits(e){const{spatialReference:t,geometryType:i}=this._queryEngine;return await Promise.all([(0,p.$1)(t,i),(0,d.Nk)(e.adds,t),(0,d.Nk)(e.updates,t)]),this._applyEdits(e)}queryFeatures(e,t={}){return this._queryEngine.executeQuery(e,t.signal)}queryFeatureCount(e,t={}){return this._queryEngine.executeQueryForCount(e,t.signal)}queryObjectIds(e,t={}){return this._queryEngine.executeQueryForIds(e,t.signal)}queryExtent(e,t={}){return this._queryEngine.executeQueryForExtent(e,t.signal)}querySnapping(e,t={}){return this._queryEngine.executeQueryForSnapping(e,t.signal)}queryAttributeBins(e,t={}){return this._queryEngine.executeAttributeBinsQuery(e,t.signal)}_inferLayerProperties(e,t){let i,s,n=null,o=null,a=null;for(const t of e){const e=t.geometry;if(null!=e&&(n||(n=(0,r.$B)(e)),o||(o=e.spatialReference),null==i&&(i=x(e)),null==s&&(s=b(e)),n&&o&&null!=i&&null!=s))break}if(t&&t.length){let e=null;t.some(t=>{const i="esriFieldTypeOID"===t.type,s=!t.type&&t.name&&"objectid"===t.name.toLowerCase();return e=t,i||s})&&(a=e.name)}return{geometryType:n,spatialReference:o,objectIdField:a,hasM:s,hasZ:i}}async _loadInitialFeatures(e,t){const{geometryType:i,hasM:s,hasZ:n,spatialReference:o,featureStore:u,fieldsIndex:l,featureIdInfo:h}=this._queryEngine,c=[];for(const s of t){if(null!=s.uid&&(e.assignedObjectIds[s.uid]=-1),s.geometry&&i!==(0,r.$B)(s.geometry)){e.featureErrors.push((0,p.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),n=(0,p.MB)(l,t,s.attributes,!0);n?e.featureErrors.push(n):(this._assignObjectId(t,s.attributes,!0),s.attributes=t,s.uid&&(e.assignedObjectIds[s.uid]=v(s,h).objectId),null!=s.geometry&&(s.geometry=(0,d.Cv)(s.geometry,s.geometry.spatialReference,o)),c.push(s))}u.addMany((0,a.Di)([],c,i,n,s,h));const{fullExtent:f,timeExtent:y}=await this._queryEngine.fetchRecomputedExtents();if(e.layerDefinition.extent=f,y){const{start:t,end:i}=y;e.layerDefinition.timeInfo.timeExtent=[t,i]}return e}async _applyEdits(e){const{adds:t,updates:i,deletes:s}=e,n={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(n,t),i?.length&&this._applyUpdateEdits(n,i),s?.length){for(const e of s)n.deleteResults.push((0,p.bP)(e));this._queryEngine.featureStore.removeManyById(s)}const{fullExtent:r,timeExtent:o}=await this._queryEngine.fetchRecomputedExtents();return{extent:r,timeExtent:o,featureEditResults:n}}_applyAddEdits(e,t){const{addResults:i,updateResults:n}=e,{geometryType:o,hasM:u,hasZ:l,spatialReference:h,featureStore:c,featureIdInfo:f,fieldsIndex:y}=this._queryEngine,m=[],g=new Map;for(const a of t){if(a.geometry&&o!==(0,r.$B)(a.geometry)){i.push((0,p.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),u=(0,p.MB)(y,t,a.attributes);if(u){i.push(u);continue}this._assignObjectId(t,a.attributes),a.attributes=t;const{objectId:l,missingFields:_}=v(a,f);if(l){if(null!=a.uid&&(e.uidToObjectId[a.uid]=l),null!=a.geometry){const e=a.geometry.spatialReference??h;a.geometry=(0,d.Cv)((0,p.CR)(a.geometry,e),e,h)}m.push(a);const t=(0,p.bP)(l);g.has(l)?(0,s.TF)(m,g.get(l)):c.has(l)?n.push(t):i.push(t),g.set(l,a)}else i.push((0,p.Yx)(`Missing unique id field value for fields: ${_.join()}`))}c.addMany((0,a.Di)([],m,o,l,u,f))}_applyUpdateEdits({updateResults:e},t){const{geometryType:i,hasM:s,hasZ:n,spatialReference:o,featureStore:u,fieldsIndex:l,featureIdInfo:h}=this._queryEngine;for(const c of t){const{attributes:t,geometry:f}=c,{objectId:y,missingFields:m}=v(c,h);if(null==y){const t="unique-id-composite"===h.type?m:h.fieldName;e.push((0,p.Yx)(`Identifier fields: ${t} missing`));continue}if(!u.has(y)){e.push((0,p.Yx)(`Feature with object id ${y} missing`));continue}const g=(0,a.oN)(u.getFeature(y),i,n,s);if(null!=f){if(i!==(0,r.$B)(f)){e.push((0,p.Yx)("Incorrect geometry type."));continue}const t=f.spatialReference??o;g.geometry=(0,d.Cv)((0,p.CR)(f,t),t,o)}if(t){const i=(0,p.MB)(l,g.attributes,t);if(i){e.push(i);continue}}u.add((0,a.E2)(g,i,n,s,h)),e.push((0,p.bP)(y))}}_assignObjectId(e,t,i=!1){if("object-id"===this._queryEngine.featureIdInfo.type){const s=this._queryEngine.featureIdInfo.fieldName;i&&t&&isFinite(t[s])?e[s]=t[s]:e[s]=this._nextObjectId++}}}},64714(e,t,i){i.d(t,{F0:()=>a,Vx:()=>d,e2:()=>c,f:()=>p});var s=i(44208),n=i(4718),r=i(99352),o=i(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function d(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let i="";t&&(i+=`this${h(t)} = null;`);for(const t in e)i+=`this${h(t)} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${i};\n }\n }\n `)();return()=>new s}catch(i){return()=>t?{[t]:null,...e}:{...e}}}function h(e){return u.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(e)}}]}function p(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},82832(e,t,i){i.d(t,{$1:()=>m,CR:()=>y,MB:()=>c,Yx:()=>u,bP:()=>d});var s=i(67482),n=i(21325),r=i(30524);class o{constructor(e){this.description=e,this.code=null}}class a{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new o(e)}}function u(e){return new a(e)}class l{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function d(e){return new l(e)}const h=new Set;function c(e,t,i,s=!1){h.clear();for(const n in i){const o=e.get(n);if(!o)continue;const a=p(o,i[n]);if(h.add(o.name),o&&(s||o.editable)){const e=(0,r.CJ)(o,a);if(e)return u((0,r.uo)(e,o,a));t[o.name]=a}}for(const t of e.requiredFields??[])if(!h.has(t.name))return u(`missing required field "${t.name}"`);return null}function p(e,t){let i=t;return(0,r.WA)(e)&&"string"==typeof t?i=(0,r.XT)(t):(0,r.yM)(e)&&null!=t&&"string"!=typeof t?i=String(t):(0,r.vE)(e)&&"string"==typeof t&&(i=(0,s._)(t)),(0,r.WX)(i)}let f;function y(e,t){if(!e||!(0,n.fn)(t))return e;if("rings"in e||"paths"in e){if(null==f)throw new TypeError("geometry engine not loaded");return f.simplify(t,e)}return e}async function m(e,t){!(0,n.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==f&&(f=await i.e(1023).then(i.bind(i,81023))),f}()}i.d(t,["PC",0,{supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}])},98453(e,t,i){const s=new(i(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});i.d(t,["m",0,s])},2272(e,t,i){i.d(t,{Dl:()=>l,gf:()=>h,jV:()=>u,lF:()=>d});var s=i(92602),n=i(70333),r=i(4718),o=i(84952),a=i(926);function u(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function l(e){return"string"==typeof e?(0,o.An)(e):(0,r.o8)(e)}function d(e,t,i){const s={};for(const n in e){if("declaredClass"===n)continue;const r=e[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r))s[n]=r.map(e=>d(e));else if("object"==typeof r)if(r.toJSON){const e=r.toJSON(i?.[n]);s[n]=t?e:JSON.stringify(e)}else s[n]=t?r:JSON.stringify(r);else s[n]=r}return s}async function h(e,t,r){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??n.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!n.id&&s.A.request.useIdentity&&await Promise.all([i.e(7632),i.e(864),i.e(148)]).then(i.bind(i,50148));const u=await n.id.getCredential(e,r);return u?.token}},926(e,t,i){i.d(t,{Dd:()=>c,Jn:()=>p,Qc:()=>f,getApiKey:()=>d,getSessionToken:()=>h});var s=i(92602),n=i(11254),r=i(84952);const o=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,a=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),u=new Map;let l=null;function d(e){if(!f(e))return null;const t=t=>t instanceof RegExp?t.test(e):"string"==typeof t&&e.startsWith(t),i=s.A.apiKeys;if(Array.isArray(i.scopes))for(const e of i.scopes)if(Array.isArray(e.urls)){if(e.urls.some(t))return e.token}else if(t(e.urls))return e.token;return i.basemapStyles&&o.test(e)?i.basemapStyles:s.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(e)?s.A.apiKey:null}async function h(e){if(!s.A.sessions?.basemap?.enabled||!o.test(e))return null;const t=d(e);if(!t)return null;l&&await l;const{styleFamily:i="arcgis",autoRefresh:r,duration:a=43200}=s.A.sessions.basemap,h=`${t}:${i}`,c=u.get(h);if(c&&(!r||c.endTime>Date.now()))return c.sessionToken;let p;l=(0,n.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:a,styleFamily:i,token:t}});try{p=(await l).data,p.endTime-=5e3,u.set(h,p)}finally{l=null}return p.sessionToken}function c(){return null!=s.A.apiKey||null!=s.A.apiKeys.basemapStyles}function p(e,t){return t?f(e):null!=d(e)}function f(e){const t=(0,r.$z)(e,!0);return!!t&&!a.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},93470(e,t,i){const s=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:s,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},r={type:"esriSLS",style:"esriSLSSolid",width:.75,color:s};i.d(t,["Cb",0,n,"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,s,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,r])}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9419],{5443(t,e,n){n.d(e,{A:()=>y});var i,r=n(5482),s=n(799),a=n(91429),o=n(91075),h=n(86738),m=n(16930),l=n(94078),u=n(12176),c=n(21325),x=n(28735);function f(t,e,n){return null==e?n:null==n?e:t(e,n)}let y=i=class extends o.A{constructor(...t){super(...t),this.type="extent",this.xmin=0,this.ymin=0,this.mmin=void 0,this.zmin=void 0,this.xmax=0,this.ymax=0,this.mmax=void 0,this.zmax=void 0}normalizeCtorArgs(t,e,n,i,r){return function(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}(t)?{spatialReference:t,xmin:0,ymin:0,xmax:0,ymax:0}:"object"==typeof t?(t.spatialReference=null==t.spatialReference?m.A.WGS84:t.spatialReference,t):{xmin:t,ymin:e,xmax:n,ymax:i,spatialReference:r??m.A.WGS84}}static fromPoint(t){return new i({xmin:t.x,ymin:t.y,zmin:t.z,xmax:t.x,ymax:t.y,zmax:t.z,spatialReference:t.spatialReference})}get cache(){return this.commitProperty("xmin"),this.commitProperty("ymin"),this.commitProperty("zmin"),this.commitProperty("mmin"),this.commitProperty("xmax"),this.commitProperty("ymax"),this.commitProperty("zmax"),this.commitProperty("mmax"),this.commitProperty("spatialReference"),{}}get center(){const t=new h.A({x:.5*(this.xmin+this.xmax),y:.5*(this.ymin+this.ymax),spatialReference:this.spatialReference});return this.hasZ&&(t.z=.5*(this.zmin+this.zmax)),this.hasM&&(t.m=.5*(this.mmin+this.mmax)),t}get extent(){return this.clone()}get hasM(){return null!=this.mmin&&null!=this.mmax}get hasZ(){return null!=this.zmin&&null!=this.zmax}get height(){return Math.abs(this.ymax-this.ymin)}get width(){return Math.abs(this.xmax-this.xmin)}centerAt(t){const e=this.center;return null!=t.z&&this.hasZ?this.offset(t.x-e.x,t.y-e.y,t.z-e.z):this.offset(t.x-e.x,t.y-e.y)}clone(){const t=new i;return t.xmin=this.xmin,t.ymin=this.ymin,t.xmax=this.xmax,t.ymax=this.ymax,t.spatialReference=this.spatialReference,null!=this.zmin&&(t.zmin=this.zmin,t.zmax=this.zmax),null!=this.mmin&&(t.mmin=this.mmin,t.mmax=this.mmax),t}contains(t){if(!t)return!1;const e=this.spatialReference,n=t.spatialReference;return e&&n&&!e.equals(n)&&(0,x.y7)(e,n)&&(t=e.isWebMercator?(0,x.Gh)(t):(0,x.ci)(t,!0)),"point"===t.type?(0,l.qz)(this,t):"extent"===t.type&&(0,l.gH)(this,t)}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,n=t.spatialReference;return e&&n&&!e.equals(n)&&(0,x.y7)(e,n)&&(t=e.isWebMercator?(0,x.Gh)(t):(0,x.ci)(t,!0)),this.xmin===t.xmin&&this.ymin===t.ymin&&this.zmin===t.zmin&&this.mmin===t.mmin&&this.xmax===t.xmax&&this.ymax===t.ymax&&this.zmax===t.zmax&&this.mmax===t.mmax}expand(t){const e=.5*(1-t),n=this.width*e,i=this.height*e;if(this.xmin+=n,this.ymin+=i,this.xmax-=n,this.ymax-=i,this.hasZ){const t=(this.zmax-this.zmin)*e;this.zmin+=t,this.zmax-=t}if(this.hasM){const t=(this.mmax-this.mmin)*e;this.mmin+=t,this.mmax-=t}return this}intersects(t){if(null==t)return!1;"mesh"===t.type&&(t=t.extent);const e=this.spatialReference,n=t.spatialReference;return e&&n&&!(0,c.aI)(e,n)&&(0,x.y7)(e,n)&&(t=e.isWebMercator?(0,x.Gh)(t):(0,x.ci)(t,!0)),(0,u.xK)(t.type)(this,t)}normalize(){const t=this._normalize(!1,!0);return Array.isArray(t)?t:[t]}offset(t,e,n){return this.xmin+=t,this.ymin+=e,this.xmax+=t,this.ymax+=e,null!=n&&(this.zmin+=n,this.zmax+=n),this}shiftCentralMeridian(){return this._normalize(!0)}union(t){return this===t||(this.xmin=Math.min(this.xmin,t.xmin),this.ymin=Math.min(this.ymin,t.ymin),this.xmax=Math.max(this.xmax,t.xmax),this.ymax=Math.max(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=f(Math.min,this.zmin,t.zmin),this.zmax=f(Math.max,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=f(Math.min,this.mmin,t.mmin),this.mmax=f(Math.max,this.mmax,t.mmax))),this}intersection(t){return this===t?this:null!=t&&this.intersects(t)?(this.xmin=Math.max(this.xmin,t.xmin),this.ymin=Math.max(this.ymin,t.ymin),this.xmax=Math.min(this.xmax,t.xmax),this.ymax=Math.min(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=f(Math.max,this.zmin,t.zmin),this.zmax=f(Math.min,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=f(Math.max,this.mmin,t.mmin),this.mmax=f(Math.min,this.mmax,t.mmax)),this):null}toJSON(t){return this.write({},t)}_shiftCM(t=(0,c.Vp)(this.spatialReference)){if(!t||!this.spatialReference)return this;const e=this.spatialReference,n=this._getCM(t);if(n){const i=e.isWebMercator?(0,x.ci)(n):n;this.xmin-=n.x,this.xmax-=n.x,e.isWebMercator||(i.x=p(i.x,t).x),this.spatialReference=new m.A((0,s.HC)((e.isWGS84?t.altTemplate:null)??t.wkTemplate,{Central_Meridian:i.x}))}return this}_getCM(t){let e=null;const[n,i]=t.valid,r=this.xmin,s=this.xmax;return r>=n&&r<=i&&s>=n&&s<=i||(e=this.center),e}_normalize(t,e,n){const i=this.spatialReference;if(!i)return this;const r=n??(0,c.Vp)(i);if(null==r)return this;const s=this._getParts(r).map(t=>t.extent);if(s.length<2)return s[0]||this;if(s.length>2)return t?this._shiftCM(r):this.set({xmin:r.valid[0],xmax:r.valid[1]});if(t)return this._shiftCM(r);if(e)return s;let a=!0,o=!0;return s.forEach(t=>{t.hasZ||(a=!1),t.hasM||(o=!1)}),{rings:s.map(t=>{const e=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(a){const n=(t.zmax-t.zmin)/2;for(let t=0;t<e.length;t++)e[t].push(n)}if(o){const n=(t.mmax-t.mmin)/2;for(let t=0;t<e.length;t++)e[t].push(n)}return e}),hasZ:a,hasM:o,spatialReference:i}}_getParts(t){let e=this.cache._parts;if(!e){e=[];const{ymin:n,ymax:r,spatialReference:s}=this,a=this.width,o=this.xmin,h=this.xmax;let m;t=t||(0,c.Vp)(s);const[l,u]=t.valid;m=p(this.xmin,t);const x=m.x,f=m.frameId;m=p(this.xmax,t);const y=m.x,d=m.frameId,g=x===y&&a>0;if(a>2*u){const t=new i(o<h?x:y,n,u,r,s),a=new i(l,n,o<h?y:x,r,s),m=new i(0,n,u,r,s),c=new i(l,n,0,r,s),p=[],g=[];t.contains(m)&&p.push(f),t.contains(c)&&g.push(f),a.contains(m)&&p.push(d),a.contains(c)&&g.push(d);for(let t=f+1;t<d;t++)p.push(t),g.push(t);e.push({extent:t,frameIds:[f]},{extent:a,frameIds:[d]},{extent:m,frameIds:p},{extent:c,frameIds:g})}else x>y||g?e.push({extent:new i(x,n,u,r,s),frameIds:[f]},{extent:new i(l,n,y,r,s),frameIds:[d]}):e.push({extent:new i(x,n,y,r,s),frameIds:[f]});this.cache._parts=e}const n=this.hasZ,r=this.hasM;if(n||r){const t={};n&&(t.zmin=this.zmin,t.zmax=this.zmax),r&&(t.mmin=this.mmin,t.mmax=this.mmax);for(let n=0;n<e.length;n++)e[n].extent.set(t)}return e}};function p(t,e){const[n,i]=e.valid,r=2*i;let s,a=0;return t>i?(s=Math.ceil(Math.abs(t-i)/r),t-=s*r,a=s):t<n&&(s=Math.ceil(Math.abs(t-n)/r),t+=s*r,a=-s),{x:t,frameId:a}}(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"center",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],y.prototype,"hasM",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],y.prototype,"hasZ",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"height",null),(0,r.Cg)([(0,a.MZ)({type:m.A,json:{write:!0},value:m.A.WGS84})],y.prototype,"spatialReference",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"width",null),(0,r.Cg)([(0,a.MZ)({type:Number,json:{type:[Number,String],write:{enabled:!0,allowNull:!0}}})],y.prototype,"xmin",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"ymin",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},read:t=>t??void 0,write:{overridePolicy(){return{enabled:this.hasM}}}}})],y.prototype,"mmin",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],y.prototype,"zmin",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"xmax",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"ymax",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},read:t=>t??void 0,write:{overridePolicy(){return{enabled:this.hasM}}}}})],y.prototype,"mmax",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],y.prototype,"zmax",void 0),y=i=(0,r.Cg)([(0,a.$K)("esri.geometry.Extent")],y),y.prototype.toJSON.isDefaultToJSON=!0},91075(t,e,n){n.d(e,{A:()=>h});var i=n(5482),r=n(25482),s=n(91429),a=n(16930),o=n(36005);let h=class extends r.o{constructor(...t){super(...t),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=a.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(t,e){if(t instanceof a.A)return t;if(null!=t){const n=new a.A;return n.read(t,e),n}return t}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(t){return this.cache[t]}setCacheValue(t,e){this.cache[t]=e}};(0,i.Cg)([(0,s.MZ)()],h.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],h.prototype,"cache",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],h.prototype,"extent",null),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],h.prototype,"hasM",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],h.prototype,"hasZ",void 0),(0,i.Cg)([(0,s.MZ)({type:a.A,json:{write:!0},value:a.A.WGS84})],h.prototype,"spatialReference",void 0),(0,i.Cg)([(0,o.w)("spatialReference")],h.prototype,"readSpatialReference",null),h=(0,i.Cg)([(0,s.$K)("esri.geometry.Geometry")],h)},86738(t,e,n){n.d(e,{A:()=>M});var i=n(5482),r=n(69622),s=n(53966),a=n(91429),o=n(56507),h=n(91075),m=n(16930),l=n(21325),u=n(28735);function c({x:t,y:e,spatialReference:n},i=[0,0]){if(n){if((0,l.K8)(n))return(0,u.tD)(t,e,i);if((0,l.EA)(n))return i[0]=t,i[1]=e,i}return null}const x=[0,0];var f,y=n(43937),p=n(36005);const d=[0,0];function g(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}let M=f=class extends h.A{static copy(t,e){e._set("x",t._get("x")),e._set("y",t._get("y")),e._set("z",t._get("z")),e._set("m",t._get("m"));const n=t._get("spatialReference");e._set("spatialReference",r.A.isFrozen(n)?n:n.clone())}constructor(...t){super(...t),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(t,e,n,i,r){let a;if(Array.isArray(t))a=t,r=e,t=a[0],e=a[1],n=a[2],i=a[3];else if(t&&"object"==typeof t){if(a=t,t=null!=a.x?a.x:a.longitude,e=null!=a.y?a.y:a.latitude,n=a.z,i=a.m,(r=a.spatialReference)&&"esri.geometry.SpatialReference"!==r.declaredClass&&(r=new m.A(r)),null!=a.longitude||null!=a.latitude)if(null==a.longitude)s.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==a.latitude)s.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!a.declaredClass&&r?.isWebMercator){const n=(0,u.je)(a.longitude,a.latitude,d);t=n[0],e=n[1]}}else g(n)?(r=n,n=null):g(i)&&(r=i,i=null);const o={x:t,y:e};return null==o.x&&null!=o.y?s.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==o.y&&null!=o.x&&s.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=r&&(o.spatialReference=r),null!=n&&(o.z=n),null!=i&&(o.m=i),o}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(t){t!==(void 0!==this._get("m"))&&(this._set("m",t?0:void 0),this._set("hasM",t))}get hasZ(){return void 0!==this.z}set hasZ(t){t!==(void 0!==this._get("z"))&&(this._set("z",t?0:void 0),this._set("hasZ",t))}get latitude(){return c(this,x)?.[1]??null}set latitude(t){const{spatialReference:e,x:n}=this;null!=t&&e&&(e.isWebMercator?this._set("y",(0,u.je)(n,t,d)[1]):e.isGeographic&&this._set("y",t),this._set("latitude",t))}get longitude(){return c(this,x)?.[0]??null}set longitude(t){const{y:e,spatialReference:n}=this;null!=t&&n&&(n.isWebMercator?this._set("x",(0,u.je)(t,e,d)[0]):n.isGeographic&&this._set("x",t),this._set("longitude",t))}writeX(t,e,n){e[n]=isNaN(t)?"NaN":t}readX(t){return"string"==typeof t?NaN:t}clone(){const t=new f;return t.x=this.x,t.y=this.y,t.z=this.z,t.m=this.m,t.spatialReference=this.spatialReference,t}copy(t){return f.copy(t,this),this}equals(t){if(null==t)return!1;const{x:e,y:n,z:i,m:r,spatialReference:s}=this,{z:a,m:o}=t;let{x:h,y:m,spatialReference:l}=t;if(!s.equals(l))if(s.isWebMercator&&l.isWGS84)[h,m]=(0,u.je)(h,m),l=s;else{if(!s.isWGS84||!l.isWebMercator)return!1;[h,m]=(0,u.tD)(h,m),l=s}return e===h&&n===m&&i===a&&r===o&&s.wkid===l.wkid}offset(t,e,n){return this.x+=t,this.y+=e,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const t=(0,l.Vp)(this.spatialReference);if(!t)return this;let e=this.x;const[n,i]=t.valid,r=2*i;let s;return e>i?(s=Math.ceil(Math.abs(e-i)/r),e-=s*r):e<n&&(s=Math.ceil(Math.abs(e-n)/r),e+=s*r),this._set("x",e),this}distance(t){return function(t,e){const n=t.x-e.x,i=t.y-e.y,r=null!=t.z&&null!=e.z?t.z-e.z:0;return Math.sqrt(n*n+i*i+r*r)}(this,t)}toArray(){const t=this.hasZ,e=this.hasM;return t&&e?[this.x,this.y,this.z,this.m]:t?[this.x,this.y,this.z]:e?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],M.prototype,"hasM",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],M.prototype,"hasZ",null),(0,i.Cg)([(0,a.MZ)({type:Number})],M.prototype,"latitude",null),(0,i.Cg)([(0,a.MZ)({type:Number})],M.prototype,"longitude",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,a.wg)(t=>isNaN(t)?t:(0,o.GB)(t))],M.prototype,"x",void 0),(0,i.Cg)([(0,y.K)("x")],M.prototype,"writeX",null),(0,i.Cg)([(0,p.w)("x")],M.prototype,"readX",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],M.prototype,"y",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],M.prototype,"z",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],M.prototype,"m",void 0),M=f=(0,i.Cg)([(0,a.$K)("esri.geometry.Point")],M),M.prototype.toJSON.isDefaultToJSON=!0},21276(t,e,n){n.d(e,{H:()=>s,f:()=>r});var i=n(49186);function r(t){if(t&&"object"==typeof t&&"type"in t&&"mesh"===t.type)throw new i.A("internal:mesh","Mesh geometries are not supported for this operation")}function s(t){t.forEach(r)}},19419(t,e,n){n.d(e,{$9:()=>b,C:()=>a,DC:()=>y,HY:()=>v,IO:()=>c,Ie:()=>A,Rj:()=>C,Uc:()=>w,VL:()=>p,VY:()=>h,Wc:()=>g,aI:()=>_,bx:()=>x,cY:()=>Z,fA:()=>o,fT:()=>f,gR:()=>R,gX:()=>M,ib:()=>z,nw:()=>u,o8:()=>s,tK:()=>l,uJ:()=>d,vt:()=>r,w1:()=>m}),n(34727);var i=n(5443);function r(t=j){return[t[0],t[1],t[2],t[3]]}function s(t){return[t[0],t[1],t[2],t[3]]}function a(t,e){return t!==e&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]),t}function o(t,e,n,i,s=r()){return s[0]=t,s[1]=e,s[2]=n,s[3]=i,s}function h(t,e=r()){return e[0]=t.xmin,e[1]=t.ymin,e[2]=t.xmax,e[3]=t.ymax,e}function m(t,e,n=new i.A){return n.xmin=t[0],n.ymin=t[1],n.xmax=t[2],n.ymax=t[3],n.spatialReference=e,n}function l(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function u(t,e){e<t[0]&&(t[0]=e),e>t[2]&&(t[2]=e)}function c(t,e){e<t[1]&&(t[1]=e),e>t[3]&&(t[3]=e)}function x(t,{xmin:e,ymin:n,xmax:i,ymax:r}){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],i),t[3]=Math.max(t[3],r)}function f(t,e,n){if(null!=e)if("length"in e)P(e)?(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[2]),n[3]=Math.max(t[3],e[3])):2!==e.length&&3!==e.length||(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[0]),n[3]=Math.max(t[3],e[1]));else switch(e.type){case"extent":n[0]=Math.min(t[0],e.xmin),n[1]=Math.min(t[1],e.ymin),n[2]=Math.max(t[2],e.xmax),n[3]=Math.max(t[3],e.ymax);break;case"point":n[0]=Math.min(t[0],e.x),n[1]=Math.min(t[1],e.y),n[2]=Math.max(t[2],e.x),n[3]=Math.max(t[3],e.y)}else a(n,t)}function y(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3])}function p(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}function d(t){return null==t||t[1]>=t[3]?0:t[3]-t[1]}function g(t){return p(t)*d(t)}function M(t,e=[0,0]){return e[0]=(t[0]+t[2])/2,e[1]=(t[1]+t[3])/2,e}function z(t){const e=p(t),n=d(t);return Math.sqrt(e*e+n*n)}function w(t,e){return C(t,e[0],e[1])}function C(t,e,n){return e>=t[0]&&n>=t[1]&&e<=t[2]&&n<=t[3]}function v(t,e){return Math.max(e[0],t[0])<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])<=Math.min(e[3],t[3])}function b(t,e,n){return Math.max(e[0],t[0])-n<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])-n<=Math.min(e[3],t[3])}function R(t,e){return e[0]>=t[0]&&e[2]<=t[2]&&e[1]>=t[1]&&e[3]<=t[3]}function Z(t,e,n,i){return i??=t,i[0]=t[0]+e,i[1]=t[1]+n,i[2]=t[2]+e,i[3]=t[3]+n,i}function A(t){return t?a(t,N):r(N)}function P(t){return null!=t&&4===t.length}function _(t,e){return P(t)&&P(e)?t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]:t===e}const N=[1/0,1/0,-1/0,-1/0],j=[0,0,0,0];n.d(e,["qv",0,N])},94078(t,e,n){n.d(e,{CW:()=>o,F8:()=>h,gH:()=>a,m3:()=>l,qz:()=>r,rL:()=>s,t1:()=>u});const i=[0,0];function r(t,e){return null!=e&&m(t,e.x,e.y,e.z)}function s(t,e){if(!e.points?.length)return!1;for(const n of e.points)if(!o(t,n))return!1;return!0}function a(t,e){const{xmin:n,ymin:i,zmin:r,xmax:s,ymax:a,zmax:o}=e;return t.hasZ&&e.hasZ?m(t,n,i,r)&&m(t,n,a,r)&&m(t,s,a,r)&&m(t,s,i,r)&&m(t,n,i,o)&&m(t,n,a,o)&&m(t,s,a,o)&&m(t,s,i,o):m(t,n,i)&&m(t,n,a)&&m(t,s,a)&&m(t,s,i)}function o(t,e){return m(t,e[0],e[1])}function h(t,e){return m(t,e[0],e[1],e[2])}function m(t,e,n,i){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax&&(null==i||!t.hasZ||i>=t.zmin&&i<=t.zmax)}function l(t,e){return i[1]=e.y,i[0]=e.x,function(t,e){return u(t.rings,e)}(t,i)}function u(t,e){if(!t||t.length<1)return!1;if(function(t){return!Array.isArray(t[0][0])}(t))return c(!1,t,e);let n=!1;for(let i=0,r=t.length;i<r;i++)n=c(n,t[i],e);return n}function c(t,e,n){const[i,r]=n;let s=t,a=0;for(let t=0,n=e.length;t<n;t++){a++,a===n&&(a=0);const[o,h]=e[t],[m,l]=e[a];(h<r&&l>=r||l<r&&h>=r)&&o+(r-h)/(l-h)*(m-o)<i&&(s=!s)}return s}},12176(t,e,n){n.d(e,{M5:()=>z,Ql:()=>p,VK:()=>d,fA:()=>x,s3:()=>M,xB:()=>s,xK:()=>w});var i=n(94078);function r(t,e){return(0,i.qz)(t,e)}function s(t,e){const n=t.hasZ&&e.hasZ;let i,r,s;if(t.xmin<=e.xmin){if(i=e.xmin,t.xmax<i)return!1}else if(i=t.xmin,e.xmax<i)return!1;if(t.ymin<=e.ymin){if(r=e.ymin,t.ymax<r)return!1}else if(r=t.ymin,e.ymax<r)return!1;if(n&&e.hasZ)if(t.zmin<=e.zmin){if(s=e.zmin,t.zmax<s)return!1}else if(s=t.zmin,e.zmax<s)return!1;return!0}function a(t,e){const{points:n,hasZ:r}=e,s=r?i.F8:i.CW;for(const e of n)if(s(t,e))return!0;return!1}const o=[0,0],h=[0,0],m=[0,0],l=[0,0],u=[o,h,m,l],c=[[m,o],[o,h],[h,l],[l,m]];function x(t,e){return function(t,e){o[0]=t.xmin,o[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,m[0]=t.xmin,m[1]=t.ymin,l[0]=t.xmax,l[1]=t.ymin;for(const t of u)if((0,i.t1)(e,t))return!0;for(const n of e){if(!n.length)continue;let e=n[0];if((0,i.CW)(t,e))return!0;for(let r=1;r<n.length;r++){const s=n[r];if((0,i.CW)(t,s)||y(e,s,c))return!0;e=s}}return!1}(t,e.rings)}function f(t,e){o[0]=t.xmin,o[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,m[0]=t.xmin,m[1]=t.ymin,l[0]=t.xmax,l[1]=t.ymin;const n=e.paths;for(const e of n){if(!n.length)continue;let r=e[0];if((0,i.CW)(t,r))return!0;for(let n=1;n<e.length;n++){const s=e[n];if((0,i.CW)(t,s)||y(r,s,c))return!0;r=s}}return!1}function y(t,e,n){for(let i=0;i<n.length;i++)if(p(t,e,n[i][0],n[i][1]))return!0;return!1}function p(t,e,n,i,r){const[s,a]=t,[o,h]=e,[m,l]=n,[u,c]=i,x=u-m,f=s-m,y=o-s,p=c-l,d=a-l,g=h-a,M=p*y-x*g;if(0===M)return!1;const z=(x*d-p*f)/M,w=(y*d-g*f)/M;return z>=0&&z<=1&&w>=0&&w<=1&&(r&&(r[0]=s+z*(o-s),r[1]=a+z*(h-a)),!0)}function d(t,e,n){for(const i of e){const e=i.length;for(let r=1;r<e;r++){const e=i[r-1],s=i[r];let a=(s[0]-e[0])*(s[0]-e[0])+(s[1]-e[1])*(s[1]-e[1]);if(0===a)continue;a=Math.sqrt(a);const o=((s[0]-e[0])*(t[1]-e[1])-(s[1]-e[1])*(t[0]-e[0]))/a;if(Math.abs(o)<n){const i=((s[0]-e[0])*(t[0]-e[0])+(s[1]-e[1])*(t[1]-e[1]))/a;if(i>-n&&i<a+n)return!0}}}return!1}function g(t){const e=1e-6,n=t[0],i=t[t.length-1];return Math.abs(n[0]-i[0])<=e&&Math.abs(n[1]-i[1])<=e}function M(t,e){let n=0;for(const i of e){const e=i.length;for(let r=1;r<e;r++){const e=i[r-1],s=i[r];e[1]>t[1]!=s[1]>t[1]&&((s[0]-e[0])*(t[1]-e[1])-(s[1]-e[1])*(t[0]-e[0])>0?n++:n--)}}return 0!==n}function z(t,e){t.length>1&&!g(t)&&(t=[...t,t[0]]);for(let n=0;n<e.length;n++){const i=e[n],r=i.length;for(const e of i)if(M(e,[t]))return!0;if(g(i))for(const n of t)if(M(n,e))return!0;for(let e=1;e<r;e++){const n=i[e-1],r=i[e];for(let e=0;e<t.length;e++)if(p(n,r,t[e],t[(e+1)%t.length]))return!0}}return!1}function w(t){switch(t){case"esriGeometryEnvelope":case"extent":return s;case"esriGeometryMultipoint":case"multipoint":return a;case"esriGeometryPoint":case"point":return r;case"esriGeometryMultiPatch":case"multipatch":case"esriGeometryPolygon":case"polygon":return x;case"esriGeometryPolyline":case"polyline":return f}}},28735(t,e,n){n.d(e,{Cv:()=>y,Gh:()=>g,ci:()=>M,je:()=>p,jg:()=>l,tD:()=>d,y7:()=>f});var i=n(4718),r=n(21276),s=n(16930),a=n(79258),o=n(21325);function h(t){return 57.29577951308232*t}function m(t){return.017453292519943*t}function l(t){return Math.PI/2-2*Math.atan(Math.exp(-t/a.$O.radius))}function u(t){return null!=t.wkid||null!=t.wkt}const c=[0,0];function x(t,e,n,i,r){const s=t,a=r;if(a.spatialReference=n,"x"in s&&"x"in a)[a.x,a.y]=e(s.x,s.y,c,i);else if("xmin"in s&&"xmin"in a)[a.xmin,a.ymin]=e(s.xmin,s.ymin,c,i),[a.xmax,a.ymax]=e(s.xmax,s.ymax,c,i);else if("paths"in s&&"paths"in a||"rings"in s&&"rings"in a){const t="paths"in s?s.paths:s.rings,n=[];let r;for(let s=0;s<t.length;s++){const a=t[s];r=[],n.push(r);for(let t=0;t<a.length;t++)r.push(e(a[t][0],a[t][1],[0,0],i)),a[t].length>2&&r[t].push(a[t][2]),a[t].length>3&&r[t].push(a[t][3])}"paths"in a?a.paths=n:a.rings=n}else if("points"in s&&"points"in a){const t=s.points,n=[];for(let r=0;r<t.length;r++)n[r]=e(t[r][0],t[r][1],[0,0],i),t[r].length>2&&n[r].push(t[r][2]),t[r].length>3&&n[r].push(t[r][3]);a.points=n}return r}function f(t,e){const n=t&&(u(t)?t:t.spatialReference),i=e&&(u(e)?e:e.spatialReference);return!(t&&"type"in t&&"mesh"===t.type||e&&"type"in e&&"mesh"===e.type||!n||!i)&&(!!(0,o.aI)(i,n)||(0,o.K8)(i)&&(0,o.oT)(n)||(0,o.K8)(n)&&(0,o.oT)(i))}function y(t,e){if(null==t)return null;const n=t.spatialReference,r=e&&(u(e)?e:e.spatialReference);return f(n,r)?(0,o.aI)(n,r)?(0,i.o8)(t):(0,o.K8)(r)?x(t,p,s.A.WebMercator,!1,(0,i.o8)(t)):(0,o.oT)(r)?x(t,d,s.A.WGS84,!1,(0,i.o8)(t)):null:null}function p(t,e,n=[0,0]){e>89.99999?e=89.99999:e<-89.99999&&(e=-89.99999);const i=m(e);return n[0]=m(t)*a.$O.radius,n[1]=a.$O.halfSemiMajorAxis*Math.log((1+Math.sin(i))/(1-Math.sin(i))),n}function d(t,e,n=[0,0],i=!1){if(t===o.Mc[0])n[0]=-180;else if(t===o.Mc[1])n[0]=180;else{const e=h(t/a.$O.radius);n[0]=i?e:e-360*Math.floor((e+180)/360)}return n[1]=h(Math.PI/2-2*Math.atan(Math.exp(-e/a.$O.radius))),n}function g(t,e=!1,n=(0,i.o8)(t)){return(0,r.f)(t),(0,r.f)(n),x(t,p,s.A.WebMercator,e,n)}function M(t,e=!1,n=(0,i.o8)(t)){return(0,r.f)(t),(0,r.f)(n),x(t,d,s.A.WGS84,e,n)}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9419],{5443(t,e,n){n.d(e,{A:()=>y});var i,r=n(5482),s=n(799),a=n(91429),o=n(91075),h=n(86738),m=n(16930),l=n(94078),u=n(12176),c=n(21325),x=n(28735);function f(t,e,n){return null==e?n:null==n?e:t(e,n)}let y=i=class extends o.A{constructor(...t){super(...t),this.type="extent",this.xmin=0,this.ymin=0,this.mmin=void 0,this.zmin=void 0,this.xmax=0,this.ymax=0,this.mmax=void 0,this.zmax=void 0}normalizeCtorArgs(t,e,n,i,r){return function(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}(t)?{spatialReference:t,xmin:0,ymin:0,xmax:0,ymax:0}:"object"==typeof t?(t.spatialReference=null==t.spatialReference?m.A.WGS84:t.spatialReference,t):{xmin:t,ymin:e,xmax:n,ymax:i,spatialReference:r??m.A.WGS84}}static fromPoint(t){return new i({xmin:t.x,ymin:t.y,zmin:t.z,xmax:t.x,ymax:t.y,zmax:t.z,spatialReference:t.spatialReference})}get cache(){return this.commitProperty("xmin"),this.commitProperty("ymin"),this.commitProperty("zmin"),this.commitProperty("mmin"),this.commitProperty("xmax"),this.commitProperty("ymax"),this.commitProperty("zmax"),this.commitProperty("mmax"),this.commitProperty("spatialReference"),{}}get center(){const t=new h.A({x:.5*(this.xmin+this.xmax),y:.5*(this.ymin+this.ymax),spatialReference:this.spatialReference});return this.hasZ&&(t.z=.5*(this.zmin+this.zmax)),this.hasM&&(t.m=.5*(this.mmin+this.mmax)),t}get extent(){return this.clone()}get hasM(){return null!=this.mmin&&null!=this.mmax}get hasZ(){return null!=this.zmin&&null!=this.zmax}get height(){return Math.abs(this.ymax-this.ymin)}get width(){return Math.abs(this.xmax-this.xmin)}centerAt(t){const e=this.center;return null!=t.z&&this.hasZ?this.offset(t.x-e.x,t.y-e.y,t.z-e.z):this.offset(t.x-e.x,t.y-e.y)}clone(){const t=new i;return t.xmin=this.xmin,t.ymin=this.ymin,t.xmax=this.xmax,t.ymax=this.ymax,t.spatialReference=this.spatialReference,null!=this.zmin&&(t.zmin=this.zmin,t.zmax=this.zmax),null!=this.mmin&&(t.mmin=this.mmin,t.mmax=this.mmax),t}contains(t){if(!t)return!1;const e=this.spatialReference,n=t.spatialReference;return e&&n&&!e.equals(n)&&(0,x.y7)(e,n)&&(t=e.isWebMercator?(0,x.Gh)(t):(0,x.ci)(t,!0)),"point"===t.type?(0,l.qz)(this,t):"extent"===t.type&&(0,l.gH)(this,t)}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,n=t.spatialReference;return e&&n&&!e.equals(n)&&(0,x.y7)(e,n)&&(t=e.isWebMercator?(0,x.Gh)(t):(0,x.ci)(t,!0)),this.xmin===t.xmin&&this.ymin===t.ymin&&this.zmin===t.zmin&&this.mmin===t.mmin&&this.xmax===t.xmax&&this.ymax===t.ymax&&this.zmax===t.zmax&&this.mmax===t.mmax}expand(t){const e=.5*(1-t),n=this.width*e,i=this.height*e;if(this.xmin+=n,this.ymin+=i,this.xmax-=n,this.ymax-=i,this.hasZ){const t=(this.zmax-this.zmin)*e;this.zmin+=t,this.zmax-=t}if(this.hasM){const t=(this.mmax-this.mmin)*e;this.mmin+=t,this.mmax-=t}return this}intersects(t){if(null==t)return!1;"mesh"===t.type&&(t=t.extent);const e=this.spatialReference,n=t.spatialReference;return e&&n&&!(0,c.aI)(e,n)&&(0,x.y7)(e,n)&&(t=e.isWebMercator?(0,x.Gh)(t):(0,x.ci)(t,!0)),(0,u.xK)(t.type)(this,t)}normalize(){const t=this._normalize(!1,!0);return Array.isArray(t)?t:[t]}offset(t,e,n){return this.xmin+=t,this.ymin+=e,this.xmax+=t,this.ymax+=e,null!=n&&(this.zmin+=n,this.zmax+=n),this}shiftCentralMeridian(){return this._normalize(!0)}union(t){return this===t||(this.xmin=Math.min(this.xmin,t.xmin),this.ymin=Math.min(this.ymin,t.ymin),this.xmax=Math.max(this.xmax,t.xmax),this.ymax=Math.max(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=f(Math.min,this.zmin,t.zmin),this.zmax=f(Math.max,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=f(Math.min,this.mmin,t.mmin),this.mmax=f(Math.max,this.mmax,t.mmax))),this}intersection(t){return this===t?this:null!=t&&this.intersects(t)?(this.xmin=Math.max(this.xmin,t.xmin),this.ymin=Math.max(this.ymin,t.ymin),this.xmax=Math.min(this.xmax,t.xmax),this.ymax=Math.min(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=f(Math.max,this.zmin,t.zmin),this.zmax=f(Math.min,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=f(Math.max,this.mmin,t.mmin),this.mmax=f(Math.min,this.mmax,t.mmax)),this):null}toJSON(t){return this.write({},t)}_shiftCM(t=(0,c.Vp)(this.spatialReference)){if(!t||!this.spatialReference)return this;const e=this.spatialReference,n=this._getCM(t);if(n){const i=e.isWebMercator?(0,x.ci)(n):n;this.xmin-=n.x,this.xmax-=n.x,e.isWebMercator||(i.x=p(i.x,t).x),this.spatialReference=new m.A((0,s.HC)((e.isWGS84?t.altTemplate:null)??t.wkTemplate,{Central_Meridian:i.x}))}return this}_getCM(t){let e=null;const[n,i]=t.valid,r=this.xmin,s=this.xmax;return r>=n&&r<=i&&s>=n&&s<=i||(e=this.center),e}_normalize(t,e,n){const i=this.spatialReference;if(!i)return this;const r=n??(0,c.Vp)(i);if(null==r)return this;const s=this._getParts(r).map(t=>t.extent);if(s.length<2)return s[0]||this;if(s.length>2)return t?this._shiftCM(r):this.set({xmin:r.valid[0],xmax:r.valid[1]});if(t)return this._shiftCM(r);if(e)return s;let a=!0,o=!0;return s.forEach(t=>{t.hasZ||(a=!1),t.hasM||(o=!1)}),{rings:s.map(t=>{const e=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(a){const n=(t.zmax-t.zmin)/2;for(let t=0;t<e.length;t++)e[t].push(n)}if(o){const n=(t.mmax-t.mmin)/2;for(let t=0;t<e.length;t++)e[t].push(n)}return e}),hasZ:a,hasM:o,spatialReference:i}}_getParts(t){let e=this.cache._parts;if(!e){e=[];const{ymin:n,ymax:r,spatialReference:s}=this,a=this.width,o=this.xmin,h=this.xmax;let m;t=t||(0,c.Vp)(s);const[l,u]=t.valid;m=p(this.xmin,t);const x=m.x,f=m.frameId;m=p(this.xmax,t);const y=m.x,d=m.frameId,g=x===y&&a>0;if(a>2*u){const t=new i(o<h?x:y,n,u,r,s),a=new i(l,n,o<h?y:x,r,s),m=new i(0,n,u,r,s),c=new i(l,n,0,r,s),p=[],g=[];t.contains(m)&&p.push(f),t.contains(c)&&g.push(f),a.contains(m)&&p.push(d),a.contains(c)&&g.push(d);for(let t=f+1;t<d;t++)p.push(t),g.push(t);e.push({extent:t,frameIds:[f]},{extent:a,frameIds:[d]},{extent:m,frameIds:p},{extent:c,frameIds:g})}else x>y||g?e.push({extent:new i(x,n,u,r,s),frameIds:[f]},{extent:new i(l,n,y,r,s),frameIds:[d]}):e.push({extent:new i(x,n,y,r,s),frameIds:[f]});this.cache._parts=e}const n=this.hasZ,r=this.hasM;if(n||r){const t={};n&&(t.zmin=this.zmin,t.zmax=this.zmax),r&&(t.mmin=this.mmin,t.mmax=this.mmax);for(let n=0;n<e.length;n++)e[n].extent.set(t)}return e}};function p(t,e){const[n,i]=e.valid,r=2*i;let s,a=0;return t>i?(s=Math.ceil(Math.abs(t-i)/r),t-=s*r,a=s):t<n&&(s=Math.ceil(Math.abs(t-n)/r),t+=s*r,a=-s),{x:t,frameId:a}}(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"center",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],y.prototype,"hasM",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],y.prototype,"hasZ",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"height",null),(0,r.Cg)([(0,a.MZ)({type:m.A,json:{write:!0},value:m.A.WGS84})],y.prototype,"spatialReference",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"width",null),(0,r.Cg)([(0,a.MZ)({type:Number,json:{type:[Number,String],write:{enabled:!0,allowNull:!0}}})],y.prototype,"xmin",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"ymin",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},read:t=>t??void 0,write:{overridePolicy(){return{enabled:this.hasM}}}}})],y.prototype,"mmin",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],y.prototype,"zmin",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"xmax",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"ymax",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},read:t=>t??void 0,write:{overridePolicy(){return{enabled:this.hasM}}}}})],y.prototype,"mmax",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],y.prototype,"zmax",void 0),y=i=(0,r.Cg)([(0,a.$K)("esri.geometry.Extent")],y),y.prototype.toJSON.isDefaultToJSON=!0},91075(t,e,n){n.d(e,{A:()=>h});var i=n(5482),r=n(25482),s=n(91429),a=n(16930),o=n(36005);let h=class extends r.o{constructor(...t){super(...t),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=a.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(t,e){if(t instanceof a.A)return t;if(null!=t){const n=new a.A;return n.read(t,e),n}return t}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(t){return this.cache[t]}setCacheValue(t,e){this.cache[t]=e}};(0,i.Cg)([(0,s.MZ)()],h.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],h.prototype,"cache",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],h.prototype,"extent",null),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],h.prototype,"hasM",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],h.prototype,"hasZ",void 0),(0,i.Cg)([(0,s.MZ)({type:a.A,json:{write:!0},value:a.A.WGS84})],h.prototype,"spatialReference",void 0),(0,i.Cg)([(0,o.w)("spatialReference")],h.prototype,"readSpatialReference",null),h=(0,i.Cg)([(0,s.$K)("esri.geometry.Geometry")],h)},86738(t,e,n){n.d(e,{A:()=>M});var i=n(5482),r=n(69622),s=n(53966),a=n(91429),o=n(56507),h=n(91075),m=n(16930),l=n(21325),u=n(28735);function c({x:t,y:e,spatialReference:n},i=[0,0]){if(n){if((0,l.K8)(n))return(0,u.tD)(t,e,i);if((0,l.EA)(n))return i[0]=t,i[1]=e,i}return null}const x=[0,0];var f,y=n(43937),p=n(36005);const d=[0,0];function g(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}let M=f=class extends h.A{static copy(t,e){e._set("x",t._get("x")),e._set("y",t._get("y")),e._set("z",t._get("z")),e._set("m",t._get("m"));const n=t._get("spatialReference");e._set("spatialReference",r.A.isFrozen(n)?n:n.clone())}constructor(...t){super(...t),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(t,e,n,i,r){let a;if(Array.isArray(t))a=t,r=e,t=a[0],e=a[1],n=a[2],i=a[3];else if(t&&"object"==typeof t){if(a=t,t=null!=a.x?a.x:a.longitude,e=null!=a.y?a.y:a.latitude,n=a.z,i=a.m,(r=a.spatialReference)&&"esri.geometry.SpatialReference"!==r.declaredClass&&(r=new m.A(r)),null!=a.longitude||null!=a.latitude)if(null==a.longitude)s.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==a.latitude)s.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!a.declaredClass&&r?.isWebMercator){const n=(0,u.je)(a.longitude,a.latitude,d);t=n[0],e=n[1]}}else g(n)?(r=n,n=null):g(i)&&(r=i,i=null);const o={x:t,y:e};return null==o.x&&null!=o.y?s.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==o.y&&null!=o.x&&s.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=r&&(o.spatialReference=r),null!=n&&(o.z=n),null!=i&&(o.m=i),o}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(t){t!==(void 0!==this._get("m"))&&(this._set("m",t?0:void 0),this._set("hasM",t))}get hasZ(){return void 0!==this.z}set hasZ(t){t!==(void 0!==this._get("z"))&&(this._set("z",t?0:void 0),this._set("hasZ",t))}get latitude(){return c(this,x)?.[1]??null}set latitude(t){const{spatialReference:e,x:n}=this;null!=t&&e&&(e.isWebMercator?this._set("y",(0,u.je)(n,t,d)[1]):e.isGeographic&&this._set("y",t),this._set("latitude",t))}get longitude(){return c(this,x)?.[0]??null}set longitude(t){const{y:e,spatialReference:n}=this;null!=t&&n&&(n.isWebMercator?this._set("x",(0,u.je)(t,e,d)[0]):n.isGeographic&&this._set("x",t),this._set("longitude",t))}writeX(t,e,n){e[n]=isNaN(t)?"NaN":t}readX(t){return"string"==typeof t?NaN:t}clone(){const t=new f;return t.x=this.x,t.y=this.y,t.z=this.z,t.m=this.m,t.spatialReference=this.spatialReference,t}copy(t){return f.copy(t,this),this}equals(t){if(null==t)return!1;const{x:e,y:n,z:i,m:r,spatialReference:s}=this,{z:a,m:o}=t;let{x:h,y:m,spatialReference:l}=t;if(!s.equals(l))if(s.isWebMercator&&l.isWGS84)[h,m]=(0,u.je)(h,m),l=s;else{if(!s.isWGS84||!l.isWebMercator)return!1;[h,m]=(0,u.tD)(h,m),l=s}return e===h&&n===m&&i===a&&r===o&&s.wkid===l.wkid}offset(t,e,n){return this.x+=t,this.y+=e,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const t=(0,l.Vp)(this.spatialReference);if(!t)return this;let e=this.x;const[n,i]=t.valid,r=2*i;let s;return e>i?(s=Math.ceil(Math.abs(e-i)/r),e-=s*r):e<n&&(s=Math.ceil(Math.abs(e-n)/r),e+=s*r),this._set("x",e),this}distance(t){return function(t,e){const n=t.x-e.x,i=t.y-e.y,r=null!=t.z&&null!=e.z?t.z-e.z:0;return Math.sqrt(n*n+i*i+r*r)}(this,t)}toArray(){const t=this.hasZ,e=this.hasM;return t&&e?[this.x,this.y,this.z,this.m]:t?[this.x,this.y,this.z]:e?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],M.prototype,"hasM",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],M.prototype,"hasZ",null),(0,i.Cg)([(0,a.MZ)({type:Number})],M.prototype,"latitude",null),(0,i.Cg)([(0,a.MZ)({type:Number})],M.prototype,"longitude",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,a.wg)(t=>isNaN(t)?t:(0,o.GB)(t))],M.prototype,"x",void 0),(0,i.Cg)([(0,y.K)("x")],M.prototype,"writeX",null),(0,i.Cg)([(0,p.w)("x")],M.prototype,"readX",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],M.prototype,"y",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],M.prototype,"z",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],M.prototype,"m",void 0),M=f=(0,i.Cg)([(0,a.$K)("esri.geometry.Point")],M),M.prototype.toJSON.isDefaultToJSON=!0},21276(t,e,n){n.d(e,{H:()=>s,f:()=>r});var i=n(49186);function r(t){if(t&&"object"==typeof t&&"type"in t&&"mesh"===t.type)throw new i.A("internal:mesh","Mesh geometries are not supported for this operation")}function s(t){t.forEach(r)}},19419(t,e,n){n.d(e,{$9:()=>b,C:()=>a,DC:()=>y,HY:()=>v,IO:()=>c,Ie:()=>A,Rj:()=>C,Uc:()=>w,VL:()=>p,VY:()=>h,Wc:()=>g,aI:()=>_,bx:()=>x,cY:()=>Z,fA:()=>o,fT:()=>f,gR:()=>R,gX:()=>M,ib:()=>z,nw:()=>u,o8:()=>s,pJ:()=>N,tK:()=>l,uJ:()=>d,vt:()=>r,w1:()=>m}),n(34727);var i=n(5443);function r(t=W){return[t[0],t[1],t[2],t[3]]}function s(t){return[t[0],t[1],t[2],t[3]]}function a(t,e){return t!==e&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]),t}function o(t,e,n,i,s=r()){return s[0]=t,s[1]=e,s[2]=n,s[3]=i,s}function h(t,e=r()){return e[0]=t.xmin,e[1]=t.ymin,e[2]=t.xmax,e[3]=t.ymax,e}function m(t,e,n=new i.A){return n.xmin=t[0],n.ymin=t[1],n.xmax=t[2],n.ymax=t[3],n.spatialReference=e,n}function l(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function u(t,e){e<t[0]&&(t[0]=e),e>t[2]&&(t[2]=e)}function c(t,e){e<t[1]&&(t[1]=e),e>t[3]&&(t[3]=e)}function x(t,{xmin:e,ymin:n,xmax:i,ymax:r}){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],i),t[3]=Math.max(t[3],r)}function f(t,e,n){if(null!=e)if("length"in e)P(e)?(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[2]),n[3]=Math.max(t[3],e[3])):2!==e.length&&3!==e.length||(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[0]),n[3]=Math.max(t[3],e[1]));else switch(e.type){case"extent":n[0]=Math.min(t[0],e.xmin),n[1]=Math.min(t[1],e.ymin),n[2]=Math.max(t[2],e.xmax),n[3]=Math.max(t[3],e.ymax);break;case"point":n[0]=Math.min(t[0],e.x),n[1]=Math.min(t[1],e.y),n[2]=Math.max(t[2],e.x),n[3]=Math.max(t[3],e.y)}else a(n,t)}function y(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3])}function p(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}function d(t){return null==t||t[1]>=t[3]?0:t[3]-t[1]}function g(t){return p(t)*d(t)}function M(t,e=[0,0]){return e[0]=(t[0]+t[2])/2,e[1]=(t[1]+t[3])/2,e}function z(t){const e=p(t),n=d(t);return Math.sqrt(e*e+n*n)}function w(t,e){return C(t,e[0],e[1])}function C(t,e,n){return e>=t[0]&&n>=t[1]&&e<=t[2]&&n<=t[3]}function v(t,e){return Math.max(e[0],t[0])<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])<=Math.min(e[3],t[3])}function b(t,e,n){return Math.max(e[0],t[0])-n<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])-n<=Math.min(e[3],t[3])}function R(t,e){return e[0]>=t[0]&&e[2]<=t[2]&&e[1]>=t[1]&&e[3]<=t[3]}function Z(t,e,n,i){return i??=t,i[0]=t[0]+e,i[1]=t[1]+n,i[2]=t[2]+e,i[3]=t[3]+n,i}function A(t){return t?a(t,j):r(j)}function P(t){return null!=t&&4===t.length}function _(t,e){return P(t)&&P(e)?t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]:t===e}function N(t,e){if(4!==e.length||t[0]===t[2]||t[1]===t[3])return!1;for(let n=0;n<e.length;n++){const i=e[n],r=e[(n+1)%e.length];if(i[0]!==t[0]&&i[0]!==t[2]||i[1]!==t[1]&&i[1]!==t[3])return!1;const s=i[1]===r[1]&&i[0]!==r[0],a=i[0]===r[0]&&i[1]!==r[1];if(!s&&!a)return!1}return!0}const j=[1/0,1/0,-1/0,-1/0],W=[0,0,0,0];n.d(e,["qv",0,j])},94078(t,e,n){n.d(e,{CW:()=>o,F8:()=>h,gH:()=>a,m3:()=>l,qz:()=>r,rL:()=>s,t1:()=>u});const i=[0,0];function r(t,e){return null!=e&&m(t,e.x,e.y,e.z)}function s(t,e){if(!e.points?.length)return!1;for(const n of e.points)if(!o(t,n))return!1;return!0}function a(t,e){const{xmin:n,ymin:i,zmin:r,xmax:s,ymax:a,zmax:o}=e;return t.hasZ&&e.hasZ?m(t,n,i,r)&&m(t,n,a,r)&&m(t,s,a,r)&&m(t,s,i,r)&&m(t,n,i,o)&&m(t,n,a,o)&&m(t,s,a,o)&&m(t,s,i,o):m(t,n,i)&&m(t,n,a)&&m(t,s,a)&&m(t,s,i)}function o(t,e){return m(t,e[0],e[1])}function h(t,e){return m(t,e[0],e[1],e[2])}function m(t,e,n,i){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax&&(null==i||!t.hasZ||i>=t.zmin&&i<=t.zmax)}function l(t,e){return i[1]=e.y,i[0]=e.x,function(t,e){return u(t.rings,e)}(t,i)}function u(t,e){if(!t||t.length<1)return!1;if(function(t){return!Array.isArray(t[0][0])}(t))return c(!1,t,e);let n=!1;for(let i=0,r=t.length;i<r;i++)n=c(n,t[i],e);return n}function c(t,e,n){const[i,r]=n;let s=t,a=0;for(let t=0,n=e.length;t<n;t++){a++,a===n&&(a=0);const[o,h]=e[t],[m,l]=e[a];(h<r&&l>=r||l<r&&h>=r)&&o+(r-h)/(l-h)*(m-o)<i&&(s=!s)}return s}},12176(t,e,n){n.d(e,{M5:()=>z,Ql:()=>p,VK:()=>d,fA:()=>x,s3:()=>M,xB:()=>s,xK:()=>w});var i=n(94078);function r(t,e){return(0,i.qz)(t,e)}function s(t,e){const n=t.hasZ&&e.hasZ;let i,r,s;if(t.xmin<=e.xmin){if(i=e.xmin,t.xmax<i)return!1}else if(i=t.xmin,e.xmax<i)return!1;if(t.ymin<=e.ymin){if(r=e.ymin,t.ymax<r)return!1}else if(r=t.ymin,e.ymax<r)return!1;if(n&&e.hasZ)if(t.zmin<=e.zmin){if(s=e.zmin,t.zmax<s)return!1}else if(s=t.zmin,e.zmax<s)return!1;return!0}function a(t,e){const{points:n,hasZ:r}=e,s=r?i.F8:i.CW;for(const e of n)if(s(t,e))return!0;return!1}const o=[0,0],h=[0,0],m=[0,0],l=[0,0],u=[o,h,m,l],c=[[m,o],[o,h],[h,l],[l,m]];function x(t,e){return function(t,e){o[0]=t.xmin,o[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,m[0]=t.xmin,m[1]=t.ymin,l[0]=t.xmax,l[1]=t.ymin;for(const t of u)if((0,i.t1)(e,t))return!0;for(const n of e){if(!n.length)continue;let e=n[0];if((0,i.CW)(t,e))return!0;for(let r=1;r<n.length;r++){const s=n[r];if((0,i.CW)(t,s)||y(e,s,c))return!0;e=s}}return!1}(t,e.rings)}function f(t,e){o[0]=t.xmin,o[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,m[0]=t.xmin,m[1]=t.ymin,l[0]=t.xmax,l[1]=t.ymin;const n=e.paths;for(const e of n){if(!n.length)continue;let r=e[0];if((0,i.CW)(t,r))return!0;for(let n=1;n<e.length;n++){const s=e[n];if((0,i.CW)(t,s)||y(r,s,c))return!0;r=s}}return!1}function y(t,e,n){for(let i=0;i<n.length;i++)if(p(t,e,n[i][0],n[i][1]))return!0;return!1}function p(t,e,n,i,r){const[s,a]=t,[o,h]=e,[m,l]=n,[u,c]=i,x=u-m,f=s-m,y=o-s,p=c-l,d=a-l,g=h-a,M=p*y-x*g;if(0===M)return!1;const z=(x*d-p*f)/M,w=(y*d-g*f)/M;return z>=0&&z<=1&&w>=0&&w<=1&&(r&&(r[0]=s+z*(o-s),r[1]=a+z*(h-a)),!0)}function d(t,e,n){for(const i of e){const e=i.length;for(let r=1;r<e;r++){const e=i[r-1],s=i[r];let a=(s[0]-e[0])*(s[0]-e[0])+(s[1]-e[1])*(s[1]-e[1]);if(0===a)continue;a=Math.sqrt(a);const o=((s[0]-e[0])*(t[1]-e[1])-(s[1]-e[1])*(t[0]-e[0]))/a;if(Math.abs(o)<n){const i=((s[0]-e[0])*(t[0]-e[0])+(s[1]-e[1])*(t[1]-e[1]))/a;if(i>-n&&i<a+n)return!0}}}return!1}function g(t){const e=1e-6,n=t[0],i=t[t.length-1];return Math.abs(n[0]-i[0])<=e&&Math.abs(n[1]-i[1])<=e}function M(t,e){let n=0;for(const i of e){const e=i.length;for(let r=1;r<e;r++){const e=i[r-1],s=i[r];e[1]>t[1]!=s[1]>t[1]&&((s[0]-e[0])*(t[1]-e[1])-(s[1]-e[1])*(t[0]-e[0])>0?n++:n--)}}return 0!==n}function z(t,e){t.length>1&&!g(t)&&(t=[...t,t[0]]);for(let n=0;n<e.length;n++){const i=e[n],r=i.length;for(const e of i)if(M(e,[t]))return!0;if(g(i))for(const n of t)if(M(n,e))return!0;for(let e=1;e<r;e++){const n=i[e-1],r=i[e];for(let e=0;e<t.length;e++)if(p(n,r,t[e],t[(e+1)%t.length]))return!0}}return!1}function w(t){switch(t){case"esriGeometryEnvelope":case"extent":return s;case"esriGeometryMultipoint":case"multipoint":return a;case"esriGeometryPoint":case"point":return r;case"esriGeometryMultiPatch":case"multipatch":case"esriGeometryPolygon":case"polygon":return x;case"esriGeometryPolyline":case"polyline":return f}}},28735(t,e,n){n.d(e,{Cv:()=>y,Gh:()=>g,ci:()=>M,je:()=>p,jg:()=>l,tD:()=>d,y7:()=>f});var i=n(4718),r=n(21276),s=n(16930),a=n(79258),o=n(21325);function h(t){return 57.29577951308232*t}function m(t){return.017453292519943*t}function l(t){return Math.PI/2-2*Math.atan(Math.exp(-t/a.$O.radius))}function u(t){return null!=t.wkid||null!=t.wkt}const c=[0,0];function x(t,e,n,i,r){const s=t,a=r;if(a.spatialReference=n,"x"in s&&"x"in a)[a.x,a.y]=e(s.x,s.y,c,i);else if("xmin"in s&&"xmin"in a)[a.xmin,a.ymin]=e(s.xmin,s.ymin,c,i),[a.xmax,a.ymax]=e(s.xmax,s.ymax,c,i);else if("paths"in s&&"paths"in a||"rings"in s&&"rings"in a){const t="paths"in s?s.paths:s.rings,n=[];let r;for(let s=0;s<t.length;s++){const a=t[s];r=[],n.push(r);for(let t=0;t<a.length;t++)r.push(e(a[t][0],a[t][1],[0,0],i)),a[t].length>2&&r[t].push(a[t][2]),a[t].length>3&&r[t].push(a[t][3])}"paths"in a?a.paths=n:a.rings=n}else if("points"in s&&"points"in a){const t=s.points,n=[];for(let r=0;r<t.length;r++)n[r]=e(t[r][0],t[r][1],[0,0],i),t[r].length>2&&n[r].push(t[r][2]),t[r].length>3&&n[r].push(t[r][3]);a.points=n}return r}function f(t,e){const n=t&&(u(t)?t:t.spatialReference),i=e&&(u(e)?e:e.spatialReference);return!(t&&"type"in t&&"mesh"===t.type||e&&"type"in e&&"mesh"===e.type||!n||!i)&&(!!(0,o.aI)(i,n)||(0,o.K8)(i)&&(0,o.oT)(n)||(0,o.K8)(n)&&(0,o.oT)(i))}function y(t,e){if(null==t)return null;const n=t.spatialReference,r=e&&(u(e)?e:e.spatialReference);return f(n,r)?(0,o.aI)(n,r)?(0,i.o8)(t):(0,o.K8)(r)?x(t,p,s.A.WebMercator,!1,(0,i.o8)(t)):(0,o.oT)(r)?x(t,d,s.A.WGS84,!1,(0,i.o8)(t)):null:null}function p(t,e,n=[0,0]){e>89.99999?e=89.99999:e<-89.99999&&(e=-89.99999);const i=m(e);return n[0]=m(t)*a.$O.radius,n[1]=a.$O.halfSemiMajorAxis*Math.log((1+Math.sin(i))/(1-Math.sin(i))),n}function d(t,e,n=[0,0],i=!1){if(t===o.Mc[0])n[0]=-180;else if(t===o.Mc[1])n[0]=180;else{const e=h(t/a.$O.radius);n[0]=i?e:e-360*Math.floor((e+180)/360)}return n[1]=h(Math.PI/2-2*Math.atan(Math.exp(-e/a.$O.radius))),n}function g(t,e=!1,n=(0,i.o8)(t)){return(0,r.f)(t),(0,r.f)(n),x(t,p,s.A.WebMercator,e,n)}function M(t,e=!1,n=(0,i.o8)(t)){return(0,r.f)(t),(0,r.f)(n),x(t,d,s.A.WGS84,e,n)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8050],{65529(t,e,o){var n=o(69622),r=o(36563);const a=t=>{const e=t;return class extends e{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(t,e){let o=this._listenersMap?.get(t);if(!o)return!1;let n=!1;for(const t of o.slice()){const o="deref"in t?t.deref():t;o?o?.call(this,e):n=!0}return n&&(o=o.filter(t=>!("deref"in t)||null!=t.deref()),this._listenersMap.set(t,o)),o.length>0}on(t,e){if(Array.isArray(t)){const o=t.map(t=>this.on(t,e));return(0,r.vE)(o)}if(t.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const o=this._listenersMap.get(t)||[];return o.push(e),this._listenersMap.set(t,o),(0,r.hA)(()=>{const o=this._listenersMap?.get(t),n=o?.indexOf(e)??-1;n>=0&&o.splice(n,1)})}once(t,e){const o=this.on(t,t=>{o.remove();const n="deref"in e?e.deref():e;n?.call(null,t)});return o}hasEventListener(t){const e=this._listenersMap?.get(t);return null!=e&&e.length>0}}},i=a(class{}),s=i,h=a(n.A);o.d(e,["Zt",0,a,"a$",0,i,"bk",0,s,"nJ",0,h])},97770(t,e,o){o.d(e,{Ey:()=>A,F8:()=>k,J2:()=>b,Yq:()=>Z,_m:()=>Y,iS:()=>_,wj:()=>x});var n=o(66552),r=o(73444),a=o(98623),i=o(92647);const s={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},h={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},l={timeZone:"UTC"},m={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},g={year:"numeric",month:"short",day:"numeric"},u={year:"numeric",month:"long",weekday:"long",day:"numeric"},c={hour:"numeric",minute:"numeric"},y={...c,second:"numeric"},f={hourCycle:"h23"},p={...c,...f},T={...y,...f},v={"short-date":m,"short-date-short-time":{...m,...c},"short-date-short-time-24":{...m,...p},"short-date-long-time":{...m,...y},"short-date-long-time-24":{...m,...T},"short-date-le":m,"short-date-le-short-time":{...m,...c},"short-date-le-short-time-24":{...m,...p},"short-date-le-long-time":{...m,...y},"short-date-le-long-time-24":{...m,...T},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...c},"long-month-day-year-short-time-24":{...d,...p},"long-month-day-year-long-time":{...d,...y},"long-month-day-year-long-time-24":{...d,...T},"day-short-month-year":g,"day-short-month-year-short-time":{...g,...c},"day-short-month-year-short-time-24":{...g,...p},"day-short-month-year-long-time":{...g,...y},"day-short-month-year-long-time-24":{...g,...T},"long-date":u,"long-date-short-time":{...u,...c},"long-date-short-time-24":{...u,...p},"long-date-long-time":{...u,...y},"long-date-long-time-24":{...u,...T},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":c,"long-time":y},M=(0,n.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),D={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},S=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),w=S.find(({type:t})=>"month"===t)?.value.toLowerCase();function L(){const t=(0,r.lR)();return(t&&D[t])??(0,r.QC)()}"mart"!==w&&(D.bs="sr-Latn-CS");let E=new WeakMap;const C=v["short-date-short-time"];function b(t){return v[t]}function Y(t){const{dateStyle:e,timeStyle:o,hour12:n,year:r,month:a}=t,i={};return e?i.dateStyle=e:r&&(i.year=r,i.month=a||void 0),o&&!i.year&&(i.timeStyle=o,i.hour12="auto"===n?void 0:"always"===n),i}function Z(t,e=C){return function(t){let e=E.get(t);if(!e){const o=L(),n=x(t.timeZone??"system"),r={...t,timeZone:n};e=new Intl.DateTimeFormat(o,r),E.set(t,e)}return e}(e).format(t)}function _(t,e=C){return Z(new Date(t),{...e,...l,...h})}function k(t,e=C){return Z(new Date(`1970-01-01T${t}Z`),{...e,...l,...s})}function A(t,e=C){const o=i.c9.fromISO(t,{setZone:!0});if(!o.isValid)return t;if(e.timeZone)return Z(o.toJSDate(),e);const n=0===o.offset?"UTC":e.timeZone,r={...e,timeZone:n};return o.toLocaleString(r,{locale:L()})}function x(t){switch(t){case"system":return a.N;case a.L:return"UTC";default:return t}}(0,r.Ml)(()=>{E=new WeakMap}),o.d(e,["_v",0,M])},73444(t,e,o){o.d(e,{JK:()=>h,Ml:()=>f,QC:()=>d,lR:()=>m,oQ:()=>c});var n=o(36563);let r;o(44208);const a=globalThis.esriConfig?.locale,i=globalThis.document?.documentElement;function s(){const t=i?.getAttribute("lang"),e=globalThis.navigator?.language;return a??t??e??"en"}function h(){return void 0===r&&(r=s()),r}const l=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function m(t=h()){return g(t)?.language}function d(t=h()){const e=g(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function g(t=h()){return l.exec(t)?.groups}const u=[];function c(t){return u.push(t),(0,n.hA)(()=>{u.splice(u.indexOf(t),1)})}new Map;const y=[];function f(t){return y.push(t),(0,n.hA)(()=>y.splice(y.indexOf(t),1))}function p(){const t=s();r!==t&&([...y].forEach(e=>e(t)),r=t,[...u].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",p),i&&new MutationObserver(()=>{p()}).observe(i,{attributeFilter:["lang"]})},98623(t,e,o){const n=Intl.DateTimeFormat().resolvedOptions().timeZone;o.d(e,["L",0,"unknown","N",0,n])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3586],{73354(t,e,n){n.d(e,{a:()=>s,b:()=>i,c:()=>o,d:()=>a,e:()=>f,f:()=>c,l:()=>u,n:()=>d,t:()=>h}),n(44208);var r=n(72727);function o(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,o=3,s=o){const a=(0,r.k)(t.length,o,3),i=(0,r.k)(e.length,s,3),l=Math.min(a,i),u=n[0],c=n[1],h=n[2],f=n[4],d=n[5],p=n[6],m=n[8],y=n[9],g=n[10],M=n[12],b=n[13],R=n[14];let _=0,w=0;for(let n=0;n<l;n++){const n=e[_],r=e[_+1],a=e[_+2];t[w]=u*n+f*r+m*a+M,t[w+1]=c*n+d*r+y*a+b,t[w+2]=h*n+p*r+g*a+R,_+=s,w+=o}return t}function a(t,e,n){i(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function i(t,e,n,o=3,s=o){const a=(0,r.k)(t.length,o,3),i=(0,r.k)(e.length,s,3),l=Math.min(a,i),u=n[0],c=n[1],h=n[2],f=n[3],d=n[4],p=n[5],m=n[6],y=n[7],g=n[8];let M=0,b=0;for(let n=0;n<l;n++){const n=e[M],r=e[M+1],a=e[M+2];t[b]=u*n+f*r+m*a,t[b+1]=c*n+d*r+y*a,t[b+2]=h*n+p*r+g*a,M+=s,b+=o}}function l(t,e,n,r=3,o=r){const s=Math.min(t.length/r,e.length/o);let a=0,i=0;for(let l=0;l<s;l++)t[i]=n*e[a],t[i+1]=n*e[a+1],t[i+2]=n*e[a+2],a+=o,i+=r;return t}function u(t,e,n,r){c(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function c(t,e,n,r,o=3,s=o){const a=Math.min(t.length/o,e.length/s);let i=0,l=0;const u=1/2.2;for(let c=0;c<a;c++)t[l]=r*(n*e[i])**u,t[l+1]=r*(n*e[i+1])**u,t[l+2]=r*(n*e[i+2])**u,i+=s,l+=o}function h(t,e,n,o=3,s=o){const a=(0,r.k)(t.length,o,3),i=(0,r.k)(e.length,s,3),l=Math.min(a,i);let u=0,c=0;for(let r=0;r<l;r++)t[c]=e[u]+n[0],t[c+1]=e[u+1]+n[1],t[c+2]=e[u+2]+n[2],u+=s,c+=o;return t}function f(t,e){d(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function d(t,e,n=3,r=n){const o=Math.min(t.length/n,e.length/r);let s=0,a=0;for(let i=0;i<o;i++){const o=e[s],i=e[s+1],l=e[s+2],u=o*o+i*i+l*l;if(u>0){const e=1/Math.sqrt(u);t[a]=e*o,t[a+1]=e*i,t[a+2]=e*l}s+=r,a+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:d,normalizeView:f,scale:l,scaleView:function(t,e,n){l(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),o=t.typedBuffer,s=t.typedBufferStride,a=e.typedBuffer,i=e.typedBufferStride;let l=0,u=0;for(let t=0;t<r;t++)o[u]=a[l]>>n,o[u+1]=a[l+1]>>n,o[u+2]=a[l+2]>>n,l+=i,u+=s},transformMat3:i,transformMat3View:a,transformMat4:s,transformMat4View:o,translate:h},Symbol.toStringTag,{value:"Module"}))},69540(t,e,n){var r=n(5482),o=n(69622),s=(n(44208),n(4718)),a=(n(53966),n(97768)),i=n(88620),l=n(64108);const u=Symbol("ClonableMixin"),c=t=>{var e;const n=t;let o=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=u}clone(t){const e=(0,i.oY)(this);(0,a.Lw)(e,"unable to clone instance of non-accessor class");const n=e.metadata,r=e.store,o={},l=new Map;for(const e in n){const a=n[e],i=r?.originOf(e),u=a.clonable;if(a.readOnly||!1===u||7!==i&&0!==i&&5!==i&&4!==i)continue;const c=this[e];let h=null;if("function"==typeof u)h=u(c,t);else if("reference"===u)h=c;else if(h=(0,s.TU)(c,t),null!=c&&null==h)continue;0===i?l.set(e,h):o[e]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(o);if(l.size){const t=(0,i.oY)(u)?.store;if(t)for(const[e,n]of l)t.set(e,n,0)}return u}};return o=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],o),o},h=c(o.A);n.d(e,["OU",0,c,"Pw",0,h])},95488(t,e,n){n.d(e,{I:()=>o});var r=n(11406);class o extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>o,vt:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,fromValues:function(t,e,n,r,o,s,a,i,l,u,c,h,f,d,p,m){return[t,e,n,r,o,s,a,i,l,u,c,h,f,d,p,m]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,s])},51850(t,e,n){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function s(t,e,n){return[t,e,n]}function a(t,e,n){return[t,e,n]}function i(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function l(){return[0,0,0]}function u(){return s(1,1,1)}function c(){return s(1,0,0)}function h(){return s(0,1,0)}function f(){return s(0,0,1)}n.d(e,{CN:()=>a,S:()=>u,Ul:()=>l,ci:()=>i,fA:()=>s,o8:()=>o,vt:()=>r});const d=[0,0,0],p=u(),m=c(),y=h(),g=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_X:m,UNIT_Y:y,UNIT_Z:g,ZEROS:d,clone:o,create:r,freeze:a,fromArray:i,fromValues:s,ones:u,unitX:c,unitY:h,unitZ:f,zeros:l},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,g,"Cw",0,m,"JP",0,y,"Un",0,p,"uY",0,d])},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>I,B8:()=>c,C:()=>s,D_:()=>i,N9:()=>b,O7:()=>T,Qw:()=>u,Tl:()=>f,X_:()=>A,e$:()=>p,eL:()=>m,hM:()=>M,hZ:()=>a,hs:()=>d,kN:()=>y,l:()=>v,lw:()=>h,mg:()=>l,o1:()=>S,sC:()=>w,t2:()=>P,t5:()=>O,tZ:()=>x,ut:()=>N,v3:()=>E});var r=n(51850),o=n(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function a(t,e,n,r,o,s,a,i,l,u,c,h,f,d,p,m,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=a,t[6]=i,t[7]=l,t[8]=u,t[9]=c,t[10]=h,t[11]=f,t[12]=d,t[13]=p,t[14]=m,t[15]=y,t}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function l(t,e){if(t===e){const n=e[1],r=e[2],o=e[3],s=e[6],a=e[7],i=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=s,t[11]=e[14],t[12]=o,t[13]=a,t[14]=i}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function u(t,e){return c(t,e)||i(t),t}function c(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],a=e[4],i=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],m=e[13],y=e[14],g=e[15],M=n*i-r*a,b=n*l-o*a,R=n*u-s*a,_=r*l-o*i,w=r*u-s*i,A=o*u-s*l,v=c*m-h*p,S=c*y-f*p,T=c*g-d*p,I=h*y-f*m,E=h*g-d*m,O=f*g-d*y;let C=M*O-b*E+R*I+_*T-w*S+A*v;return C?(C=1/C,t[0]=(i*O-l*E+u*I)*C,t[1]=(o*E-r*O-s*I)*C,t[2]=(m*A-y*w+g*_)*C,t[3]=(f*w-h*A-d*_)*C,t[4]=(l*T-a*O-u*S)*C,t[5]=(n*O-o*T+s*S)*C,t[6]=(y*R-p*A-g*b)*C,t[7]=(c*A-f*R+d*b)*C,t[8]=(a*E-i*T+u*v)*C,t[9]=(r*T-n*E-s*v)*C,t[10]=(p*w-m*R+g*M)*C,t[11]=(h*R-c*w-d*M)*C,t[12]=(i*S-a*I-l*v)*C,t[13]=(n*I-r*S+o*v)*C,t[14]=(m*b-p*_-y*M)*C,t[15]=(c*_-h*b+f*M)*C,t):null}function h(t,e,n){const r=e[0],o=e[1],s=e[2],a=e[3],i=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],m=e[12],y=e[13],g=e[14],M=e[15];let b=n[0],R=n[1],_=n[2],w=n[3];return t[0]=b*r+R*i+_*h+w*m,t[1]=b*o+R*l+_*f+w*y,t[2]=b*s+R*u+_*d+w*g,t[3]=b*a+R*c+_*p+w*M,b=n[4],R=n[5],_=n[6],w=n[7],t[4]=b*r+R*i+_*h+w*m,t[5]=b*o+R*l+_*f+w*y,t[6]=b*s+R*u+_*d+w*g,t[7]=b*a+R*c+_*p+w*M,b=n[8],R=n[9],_=n[10],w=n[11],t[8]=b*r+R*i+_*h+w*m,t[9]=b*o+R*l+_*f+w*y,t[10]=b*s+R*u+_*d+w*g,t[11]=b*a+R*c+_*p+w*M,b=n[12],R=n[13],_=n[14],w=n[15],t[12]=b*r+R*i+_*h+w*m,t[13]=b*o+R*l+_*f+w*y,t[14]=b*s+R*u+_*d+w*g,t[15]=b*a+R*c+_*p+w*M,t}function f(t,e,n){const r=n[0],o=n[1],s=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*s+e[12],t[13]=e[1]*r+e[5]*o+e[9]*s+e[13],t[14]=e[2]*r+e[6]*o+e[10]*s+e[14],t[15]=e[3]*r+e[7]*o+e[11]*s+e[15];else{const n=e[0],a=e[1],i=e[2],l=e[3],u=e[4],c=e[5],h=e[6],f=e[7],d=e[8],p=e[9],m=e[10],y=e[11];t[0]=n,t[1]=a,t[2]=i,t[3]=l,t[4]=u,t[5]=c,t[6]=h,t[7]=f,t[8]=d,t[9]=p,t[10]=m,t[11]=y,t[12]=n*r+u*o+d*s+e[12],t[13]=a*r+c*o+p*s+e[13],t[14]=i*r+h*o+m*s+e[14],t[15]=l*r+f*o+y*s+e[15]}return t}function d(t,e,n){const r=n[0],o=n[1],s=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function p(t,e,n,r){let a=r[0],i=r[1],l=r[2],u=Math.sqrt(a*a+i*i+l*l);if(u<=(0,o.FD)())return void s(t,e);u=1/u,a*=u,i*=u,l*=u;const c=Math.sin(n),h=Math.cos(n),f=1-h,d=e[0],p=e[1],m=e[2],y=e[3],g=e[4],M=e[5],b=e[6],R=e[7],_=e[8],w=e[9],A=e[10],v=e[11],S=a*a*f+h,T=i*a*f+l*c,I=l*a*f-i*c,E=a*i*f-l*c,O=i*i*f+h,C=l*i*f+a*c,P=a*l*f+i*c,N=i*l*f-a*c,x=l*l*f+h;t[0]=d*S+g*T+_*I,t[1]=p*S+M*T+w*I,t[2]=m*S+b*T+A*I,t[3]=y*S+R*T+v*I,t[4]=d*E+g*O+_*C,t[5]=p*E+M*O+w*C,t[6]=m*E+b*O+A*C,t[7]=y*E+R*O+v*C,t[8]=d*P+g*N+_*x,t[9]=p*P+M*N+w*x,t[10]=m*P+b*N+A*x,t[11]=y*P+R*N+v*x,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function m(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[4],a=e[5],i=e[6],l=e[7],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*o+u*r,t[5]=a*o+c*r,t[6]=i*o+h*r,t[7]=l*o+f*r,t[8]=u*o-s*r,t[9]=c*o-a*r,t[10]=h*o-i*r,t[11]=f*o-l*r,t}function y(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function g(t,e,n){if(0===e)return i(t);let r=n[0],s=n[1],a=n[2],l=Math.sqrt(r*r+s*s+a*a);if(l<=(0,o.FD)())return null;l=1/l,r*=l,s*=l,a*=l;const u=Math.sin(e),c=Math.cos(e),h=1-c;return t[0]=r*r*h+c,t[1]=s*r*h+a*u,t[2]=a*r*h-s*u,t[3]=0,t[4]=r*s*h-a*u,t[5]=s*s*h+c,t[6]=a*s*h+r*u,t[7]=0,t[8]=r*a*h+s*u,t[9]=s*a*h-r*u,t[10]=a*a*h+c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function R(t,e,n){const r=e[0],o=e[1],s=e[2],a=e[3],i=r+r,l=o+o,u=s+s,c=r*i,h=r*l,f=r*u,d=o*l,p=o*u,m=s*u,y=a*i,g=a*l,M=a*u;return t[0]=1-(d+m),t[1]=h+M,t[2]=f-g,t[3]=0,t[4]=h-M,t[5]=1-(c+m),t[6]=p+y,t[7]=0,t[8]=f+g,t[9]=p-y,t[10]=1-(c+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const _=(0,r.vt)();function w(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function A(t,e){const n=e[0],r=e[1],o=e[2],s=e[4],a=e[5],i=e[6],l=e[8],u=e[9],c=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(s*s+a*a+i*i),t[2]=Math.sqrt(l*l+u*u+c*c),t}function v(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function S(t,e,n,r){const o=e[0],s=e[1],a=e[2],i=e[3],l=o+o,u=s+s,c=a+a,h=o*l,f=o*u,d=o*c,p=s*u,m=s*c,y=a*c,g=i*l,M=i*u,b=i*c,R=r[0],_=r[1],w=r[2];return t[0]=(1-(p+y))*R,t[1]=(f+b)*R,t[2]=(d-M)*R,t[3]=0,t[4]=(f-b)*_,t[5]=(1-(h+y))*_,t[6]=(m+g)*_,t[7]=0,t[8]=(d+M)*w,t[9]=(m-g)*w,t[10]=(1-(h+p))*w,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function T(t,e,n,r,o){const s=e[0],a=e[1],i=e[2],l=e[3],u=s+s,c=a+a,h=i+i,f=s*u,d=s*c,p=s*h,m=a*c,y=a*h,g=i*h,M=l*u,b=l*c,R=l*h,_=r[0],w=r[1],A=r[2],v=o[0],S=o[1],T=o[2],I=(1-(m+g))*_,E=(d+R)*_,O=(p-b)*_,C=(d-R)*w,P=(1-(f+g))*w,N=(y+M)*w,x=(p+b)*A,D=(y-M)*A,G=(1-(f+m))*A;return t[0]=I,t[1]=E,t[2]=O,t[3]=0,t[4]=C,t[5]=P,t[6]=N,t[7]=0,t[8]=x,t[9]=D,t[10]=G,t[11]=0,t[12]=n[0]+v-(I*v+C*S+x*T),t[13]=n[1]+S-(E*v+P*S+D*T),t[14]=n[2]+T-(O*v+N*S+G*T),t[15]=1,t}function I(t,e,n,r,o,s,a){const i=1/(n-e),l=1/(o-r),u=1/(s-a);return t[0]=2*s*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*l,t[6]=0,t[7]=0,t[8]=(n+e)*i,t[9]=(o+r)*l,t[10]=(a+s)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*s*2*u,t[15]=0,t}function E(t,e,n,r,o,s,a){const i=1/(e-n),l=1/(r-o),u=1/(s-a);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*i,t[13]=(o+r)*l,t[14]=(a+s)*u,t[15]=1,t}function O(t,e,n,r){const s=e[0],a=e[1],l=e[2];let u=s-n[0],c=a-n[1],h=l-n[2];const f=(0,o.FD)();if(Math.abs(u)<f&&Math.abs(c)<f&&Math.abs(h)<f)return void i(t);let d=1/Math.sqrt(u*u+c*c+h*h);u*=d,c*=d,h*=d;const p=r[0],m=r[1],y=r[2];let g=m*h-y*c,M=y*u-p*h,b=p*c-m*u;d=Math.sqrt(g*g+M*M+b*b),d?(d=1/d,g*=d,M*=d,b*=d):(g=0,M=0,b=0);let R=c*b-h*M,_=h*g-u*b,w=u*M-c*g;d=Math.sqrt(R*R+_*_+w*w),d?(d=1/d,R*=d,_*=d,w*=d):(R=0,_=0,w=0),t[0]=g,t[1]=R,t[2]=u,t[3]=0,t[4]=M,t[5]=_,t[6]=c,t[7]=0,t[8]=b,t[9]=w,t[10]=h,t[11]=0,t[12]=-(g*s+M*a+b*l),t[13]=-(R*s+_*a+w*l),t[14]=-(u*s+c*a+h*l),t[15]=1}function C(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function N(t){const e=(0,o.FD)(),n=t[0],r=t[1],s=t[2],a=t[4],i=t[5],l=t[6],u=t[8],c=t[9],h=t[10];return Math.abs(1-(n*n+a*a+u*u))<=e&&Math.abs(1-(r*r+i*i+c*c))<=e&&Math.abs(1-(s*s+l*l+h*h))<=e}function x(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const D=h,G=C;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],a=e[4],i=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],m=e[13],y=e[14],g=e[15];return t[0]=i*(f*g-d*y)-h*(l*g-u*y)+m*(l*d-u*f),t[1]=-(r*(f*g-d*y)-h*(o*g-s*y)+m*(o*d-s*f)),t[2]=r*(l*g-u*y)-i*(o*g-s*y)+m*(o*u-s*l),t[3]=-(r*(l*d-u*f)-i*(o*d-s*f)+h*(o*u-s*l)),t[4]=-(a*(f*g-d*y)-c*(l*g-u*y)+p*(l*d-u*f)),t[5]=n*(f*g-d*y)-c*(o*g-s*y)+p*(o*d-s*f),t[6]=-(n*(l*g-u*y)-a*(o*g-s*y)+p*(o*u-s*l)),t[7]=n*(l*d-u*f)-a*(o*d-s*f)+c*(o*u-s*l),t[8]=a*(h*g-d*m)-c*(i*g-u*m)+p*(i*d-u*h),t[9]=-(n*(h*g-d*m)-c*(r*g-s*m)+p*(r*d-s*h)),t[10]=n*(i*g-u*m)-a*(r*g-s*m)+p*(r*u-s*i),t[11]=-(n*(i*d-u*h)-a*(r*d-s*h)+c*(r*u-s*i)),t[12]=-(a*(h*y-f*m)-c*(i*y-l*m)+p*(i*f-l*h)),t[13]=n*(h*y-f*m)-c*(r*y-o*m)+p*(r*f-o*h),t[14]=-(n*(i*y-l*m)-a*(r*y-o*m)+p*(r*l-o*i)),t[15]=n*(i*f-l*h)-a*(r*f-o*h)+c*(r*l-o*i),t},copy:s,determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],i=t[6],l=t[7],u=t[8],c=t[9],h=t[10],f=t[11],d=t[12],p=t[13],m=t[14],y=t[15];return(e*a-n*s)*(h*y-f*m)-(e*i-r*s)*(c*y-f*p)+(e*l-o*s)*(c*m-h*p)+(n*i-r*a)*(u*y-f*d)-(n*l-o*a)*(u*m-h*d)+(r*l-o*i)*(u*p-c*d)},equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],a=t[3],i=t[4],l=t[5],u=t[6],c=t[7],h=t[8],f=t[9],d=t[10],p=t[11],m=t[12],y=t[13],g=t[14],M=t[15],b=e[0],R=e[1],_=e[2],w=e[3],A=e[4],v=e[5],S=e[6],T=e[7],I=e[8],E=e[9],O=e[10],C=e[11],P=e[12],N=e[13],x=e[14],D=e[15],G=(0,o.FD)();return Math.abs(n-b)<=G*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(r-R)<=G*Math.max(1,Math.abs(r),Math.abs(R))&&Math.abs(s-_)<=G*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(a-w)<=G*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(i-A)<=G*Math.max(1,Math.abs(i),Math.abs(A))&&Math.abs(l-v)<=G*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(u-S)<=G*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(c-T)<=G*Math.max(1,Math.abs(c),Math.abs(T))&&Math.abs(h-I)<=G*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(f-E)<=G*Math.max(1,Math.abs(f),Math.abs(E))&&Math.abs(d-O)<=G*Math.max(1,Math.abs(d),Math.abs(O))&&Math.abs(p-C)<=G*Math.max(1,Math.abs(p),Math.abs(C))&&Math.abs(m-P)<=G*Math.max(1,Math.abs(m),Math.abs(P))&&Math.abs(y-N)<=G*Math.max(1,Math.abs(y),Math.abs(N))&&Math.abs(g-x)<=G*Math.max(1,Math.abs(g),Math.abs(x))&&Math.abs(M-D)<=G*Math.max(1,Math.abs(M),Math.abs(D))},exactEquals:P,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],a=n+n,i=r+r,l=o+o,u=n*a,c=r*a,h=r*i,f=o*a,d=o*i,p=o*l,m=s*a,y=s*i,g=s*l;return t[0]=1-h-p,t[1]=c+g,t[2]=f-y,t[3]=0,t[4]=c-g,t[5]=1-u-p,t[6]=d+m,t[7]=0,t[8]=f+y,t[9]=d-m,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=_,r=-e[0],o=-e[1],s=-e[2],a=e[3],i=e[4],l=e[5],u=e[6],c=e[7],h=r*r+o*o+s*s+a*a;return h>0?(n[0]=2*(i*a+c*r+l*s-u*o)/h,n[1]=2*(l*a+c*o+u*r-i*s)/h,n[2]=2*(u*a+c*s+i*o-l*r)/h):(n[0]=2*(i*a+c*r+l*s-u*o),n[1]=2*(l*a+c*o+u*r-i*s),n[2]=2*(u*a+c*s+i*o-l*r)),R(t,e,n),t},fromRotation:g,fromRotationTranslation:R,fromRotationTranslationScale:S,fromRotationTranslationScaleOrigin:T,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:y,fromXRotation:M,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:b,frustum:I,getRotation:v,getScale:A,getTranslation:w,hasIdentityRotation:x,identity:i,invert:c,invertOrIdentity:u,isOrthoNormal:N,lookAt:O,mul:D,multiply:h,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:E,perspective:function(t,e,n,r,o){const s=1/Math.tan(e/2);let a;return t[0]=s/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(a=1/(r-o),t[10]=(o+r)*a,t[14]=2*o*r*a):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const o=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),i=Math.tan(e.rightDegrees*Math.PI/180),l=2/(a+i),u=2/(o+s);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(a-i)*l*.5,t[9]=(o-s)*u*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:p,rotateX:m,rotateY:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],a=e[1],i=e[2],l=e[3],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o-u*r,t[1]=a*o-c*r,t[2]=i*o-h*r,t[3]=l*o-f*r,t[8]=s*r+u*o,t[9]=a*r+c*o,t[10]=i*r+h*o,t[11]=l*r+f*o,t},rotateZ:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],a=e[1],i=e[2],l=e[3],u=e[4],c=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o+u*r,t[1]=a*o+c*r,t[2]=i*o+h*r,t[3]=l*o+f*r,t[4]=u*o-s*r,t[5]=c*o-a*r,t[6]=h*o-i*r,t[7]=f*o-l*r,t},scale:d,set:a,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:G,subtract:C,targetTo:function(t,e,n,r){const o=e[0],s=e[1],a=e[2],i=r[0],l=r[1],u=r[2];let c=o-n[0],h=s-n[1],f=a-n[2],d=c*c+h*h+f*f;d>0&&(d=1/Math.sqrt(d),c*=d,h*=d,f*=d);let p=l*f-u*h,m=u*c-i*f,y=i*h-l*c;return d=p*p+m*m+y*y,d>0&&(d=1/Math.sqrt(d),p*=d,m*=d,y*=d),t[0]=p,t[1]=m,t[2]=y,t[3]=0,t[4]=h*y-f*m,t[5]=f*p-c*y,t[6]=c*m-h*p,t[7]=0,t[8]=c,t[9]=h,t[10]=f,t[11]=0,t[12]=o,t[13]=s,t[14]=a,t[15]=1,t},translate:f,transpose:l},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>S,Bw:()=>s,C:()=>a,Cc:()=>T,DI:()=>w,Io:()=>M,Ln:()=>g,Om:()=>v,Qr:()=>h,Re:()=>u,S8:()=>A,T9:()=>m,WQ:()=>l,Z0:()=>I,_S:()=>d,aI:()=>G,ei:()=>E,fw:()=>C,g7:()=>P,gL:()=>O,hG:()=>b,hZ:()=>i,hs:()=>y,jk:()=>p,lw:()=>c,m3:()=>R,oW:()=>L,t2:()=>D,tn:()=>f,ze:()=>_});var r=n(51850),o=n(34304);function s(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function p(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function b(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function R(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function _(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function w(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function A(t,e){const n=e[0],r=e[1],o=e[2];let s=n*n+r*r+o*o;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function v(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function S(t,e,n){const r=e[0],o=e[1],s=e[2],a=n[0],i=n[1],l=n[2];return t[0]=o*l-s*i,t[1]=s*a-r*l,t[2]=r*i-o*a,t}function T(t,e,n,r){const o=e[0],s=e[1],a=e[2];return t[0]=o+r*(n[0]-o),t[1]=s+r*(n[1]-s),t[2]=a+r*(n[2]-a),t}function I(t,e,n){const r=e[0],o=e[1],s=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*s+n[12],t[1]=n[1]*r+n[5]*o+n[9]*s+n[13],t[2]=n[2]*r+n[6]*o+n[10]*s+n[14],t}function E(t,e,n){const r=e[0],o=e[1],s=e[2];return t[0]=r*n[0]+o*n[3]+s*n[6],t[1]=r*n[1]+o*n[4]+s*n[7],t[2]=r*n[2]+o*n[5]+s*n[8],t}function O(t,e,n){return C(t,e,n[0],n[1],n[2],n[3])}function C(t,e,n,r,o,s){const a=e[0],i=e[1],l=e[2],u=r*l-o*i,c=o*a-n*l,h=n*i-r*a,f=r*h-o*c,d=o*u-n*h,p=n*c-r*u,m=2*s;return t[0]=a+u*m+2*f,t[1]=i+c*m+2*d,t[2]=l+h*m+2*p,t}function P(t,e){A(N,t),A(x,e);const n=v(N,x);return n>1?0:n<-1?Math.PI:Math.acos(n)}const N=(0,r.vt)(),x=(0,r.vt)();function D(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function G(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],a=e[0],i=e[1],l=e[2],u=(0,o.FD)();return Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-i)<=u*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function L(t,e,n){const r=n[0]-e[0],o=n[1]-e[1],s=n[2]-e[2];let a=r*r+o*o+s*s;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=o*a,t[2]=s*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const B=u,U=c,j=h,F=M,k=b,Z=s,q=R;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:l,angle:P,bezier:function(t,e,n,r,o,s){const a=1-s,i=a*a,l=s*s,u=i*a,c=3*s*i,h=3*l*a,f=l*s;return t[0]=e[0]*u+n[0]*c+r[0]*h+o[0]*f,t[1]=e[1]*u+n[1]*c+r[1]*h+o[1]*f,t[2]=e[2]*u+n[2]*c+r[2]*h+o[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:a,cross:S,crossAndNormalize:function(t,e,n){const r=e[0],o=e[1],s=e[2],a=n[0],i=n[1],l=n[2],u=o*l-s*i,c=s*a-r*l,h=r*i-o*a,f=Math.sqrt(u*u+c*c+h*h);return t[0]=u/f,t[1]=c/f,t[2]=h/f,t},direction:L,dist:F,distance:M,div:j,divide:h,dot:v,equals:G,exactEquals:D,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,o,s){const a=s*s,i=a*(2*s-3)+1,l=a*(s-2)+s,u=a*(s-1),c=a*(3-2*s);return t[0]=e[0]*i+n[0]*l+r[0]*u+o[0]*c,t[1]=e[1]*i+n[1]*l+r[1]*u+o[1]*c,t[2]=e[2]*i+n[2]*l+r[2]*u+o[2]*c,t},inverse:w,len:Z,length:s,lerp:T,max:m,min:p,mul:U,multiply:c,negate:_,normalize:A,random:function(t,e=1){const n=o.Ov,r=2*n()*Math.PI,s=2*n()-1,a=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=s*e,t},rotateX:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[0],s[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),s[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateY:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),s[1]=o[1],s[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateZ:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),s[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),s[2]=o[2],t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:y,scaleAndAdd:g,set:i,sign:d,sqrDist:k,sqrLen:q,squaredDistance:b,squaredLength:R,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:B,subtract:u,transformMat3:E,transformMat4:I,transformQuat:O,transformQuatValues:C},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,Z,"jb",0,B,"lo",0,k,"uE",0,q,"xg",0,F])},83027(t,e,n){const r=n(29953).ho;n.d(e,["h",0,r])},35982(t,e,n){n.d(e,{B:()=>c});var r=n(4576),o=n(71511),s=n(36563),a=n(53966),i=n(97768),l=n(17676),u=n(83027);class c{constructor(t,e,n,r,o={}){this._mainMethod=e,this._transferLists=n,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,u.h)(t,{...o,schedule:r}).then(t=>{null!=this._thread||this._destroyed?t.close():(this._thread=t,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(t=>{o.hasInitialize&&t.invoke("initialize",{}).catch(()=>{});for(const e of this._listeners)this._connectListenerToClient(e,t);this._onClientConnected(t)}))}),this._promise.catch(e=>a.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${t} worker: ${e}`))}on(t,e){const n=new h(t,e);return this._listeners.push(n),this._connectListener(n),(0,s.hA)(()=>{(0,r.TF)(this._listeners,n),n.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,i.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const t of this._listeners)t.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(t,e,n){return this.invokeMethod(this._mainMethod,t,e,n)}invokeMethod(t,e,n,r){if(this._thread){const o=this._transferLists[t],s=o?o(e):[];return this._thread.invoke(t,e,{transferList:s,signal:n,jobPriority:r})}return this._promise?this._promise.then(()=>((0,l.Te)(n),this.invokeMethod(t,e,n))):Promise.reject((0,l.NK)())}broadcast(t,e){return this._thread?Promise.all(this._thread.broadcast(e,t)).then(f):this._promise?this._promise.then(()=>this.broadcast(t,e)):Promise.reject((0,l.NK)())}get promise(){return this._promise}_onClientConnected(t){}_connectListener(t){this._thread&&t.add(this._thread.on(t.eventName,t.callback))}_connectListenerToClient(t,e){t.add(e.on(t.eventName,t.callback))}}class h{constructor(t,e){this.eventName=t,this.callback=e,this._handles=new o.A}add(t){this._handles.add(t)}destroy(){this._handles.destroy()}}function f(){}},48526(t,e,n){n.d(e,{A:()=>y});var r,o=n(5482),s=n(4576),a=n(4718),i=n(91429),l=n(5443),u=n(91075),c=n(86738),h=n(16930),f=n(90634),d=n(47610),p=n(56993),m=n(43937);let y=r=class extends u.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:o}=t;switch(e??=[],e?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return o??=h.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:o}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new l.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,a.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:n,hasZ:o}=this;return new r({points:(0,a.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:o})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,n=t.spatialReference;return null!=e==(null!=n)&&!(null!=e&&null!=n&&!e.equals(n))&&(0,s.aI)(this.points,t.points,d.v6)}addPoint(t){return(0,p.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],n={x:e[0],y:e[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(n.z=e[2],r=3),this.hasM&&(n.m=e[r]),new c.A(n)}removePoint(t){if(!this._validateInputs(t))return null;const e=new c.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,p.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,o.Cg)([(0,i.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,o.Cg)([(0,i.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,o.Cg)([(0,i.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,o.Cg)([(0,m.K)("points")],y.prototype,"writePoints",null),y=r=(0,o.Cg)([(0,i.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>p});var r,o=n(5482),s=n(4718),a=n(91429),i=n(5443),l=n(91075),u=n(86738),c=n(16930),h=n(90634),f=n(56993),d=n(43937);let p=r=class extends l.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:o}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return o??=c.A.WGS84,{...t,hasM:n,hasZ:r,paths:e,spatialReference:o}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,s.o8)(t)}get extent(){const t=(0,h.Z3)(this),{spatialReference:e}=this;return t?new i.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,n=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e].toArray();e[n]=r}else e[n]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const n=this.paths[t][e],r=this.hasZ,o=this.hasM;return r&&!o?new u.A(n[0],n[1],n[2],void 0,this.spatialReference):o&&!r?new u.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&o?new u.A(n[0],n[1],n[2],n[3],this.spatialReference):new u.A(n[0],n[1],this.spatialReference)}insertPoint(t,e,n){return this._validateInputs(t,e,!0)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t].splice(e,0,n),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],n=this.spatialReference,r=e.map(t=>new u.A(t,n));return this.notifyChange("paths"),r}removePoint(t,e){if(!this._validateInputs(t,e))return null;const n=new u.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(t,e,n){return this._validateInputs(t,e)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t][e]=n,this.notifyChange("paths"),this):this}_validateInputs(t,e,n=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const r=this.paths[t];if(n&&(e<0||e>r.length))return!1;if(!n&&(e<0||e>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,o.Cg)([(0,a.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],p.prototype,"curvePaths",void 0),(0,o.Cg)([(0,d.K)("curvePaths")],p.prototype,"writeCurvePaths",null),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],p.prototype,"extent",null),(0,o.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],p.prototype,"paths",void 0),(0,o.Cg)([(0,d.K)("paths")],p.prototype,"writePaths",null),p=r=(0,o.Cg)([(0,a.$K)("esri.geometry.Polyline")],p),p.prototype.toJSON.isDefaultToJSON=!0},159(t,e,n){n.d(e,{A:()=>u});var r,o=n(5482),s=n(69540),a=n(25482),i=n(91429),l=n(99157);let u=r=class extends((0,s.OU)(a.o)){constructor(t){super(t),this.steps=[]}getInverse(){const t=new r;for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}};(0,o.Cg)([(0,i.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,o.Cg)([(0,i.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(t,e,n){n.d(e,{A:()=>l});var r,o=n(5482),s=n(69540),a=n(25482),i=n(91429);let l=r=class extends((0,s.OU)(a.o)){constructor(t){super(t),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,o.Cg)([(0,i.MZ)({json:{name:"transformForward",read:t=>!t,write:(t,e,n)=>{e[n]=!t}}})],l.prototype,"isInverse",void 0),(0,o.Cg)([(0,i.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,o.Cg)([(0,i.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=r=(0,o.Cg)([(0,i.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(t,e,n){n.r(e),n.d(e,{projectBuffer:()=>o});var r=n(49208);function o(t,e,n,o,s,a,i=Math.floor(t.length/3)){const l=(0,r.jd)(e,s);if(null==l)return!1;if(l===r.pO){if(t===o&&n===a)return!0;const e=n+3*i;for(let r=n,s=a;r<e;r++,s++)o[s]=t[r]??0;return!0}const u=n+3*i;for(let e=n,r=a;e<u;e+=3,r+=3)l(t,e,o,r);return!0}},65806(t,e,n){n.d(e,{g:()=>a});var r=n(51850),o=n(91218),s=n(9762);function a(t,e,n,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,n))return i[0]=t.x,i[1]=t.y,i[2]=t.z??0,(0,s.projectBuffer)(i,t.spatialReference,0,e,n,0);const a=(0,o.tryProject)(t,n,r);return!!a&&(e[0]=a.x,e[1]=a.y,e[2]=a.z??0,!0)}const i=(0,r.vt)()},27993(t,e,n){n.d(e,{F:()=>i});var r=n(91218),o=n(16930),s=n(9762),a=n(65806);function i(t,e,n,o){return!(null==e||null==o||t.length<2)&&((0,r.canProjectWithoutEngine)(e,o)?(0,s.projectBuffer)(t,e,0,n,o,0,1):(l.x=t[0],l.y=t[1],l.z=t[2],l.spatialReference=e,(0,a.g)(l,n,o)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:o.A.WGS84,type:"point"}},49208(t,e,n){n.d(e,{Tp:()=>h,jd:()=>c,pO:()=>d});var r=n(34727),o=n(86211),s=n(73941),a=n(79258),i=n(34403),l=n(21325);const u={2:{5:d,7:null,9:null,10:d,1:_,6:null,8:null,0:null,3:m,11:y,2:d,4:T},5:{5:d,7:null,9:null,10:d,1:_,6:null,8:null,0:null,3:m,11:y,2:d,4:T},7:{5:null,7:d,9:null,10:d,1:null,6:R,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:b,0:null,3:null,11:null,2:null,4:null},3:{5:p,7:null,9:null,10:p,1:function(t,e,n,r){const o=t[e]/N,s=P-2*Math.atan(Math.exp(-t[e+1]/N)),a=N+(t[e+2]??0),i=Math.cos(s)*a;n[r]=Math.cos(o)*i,n[r+1]=Math.sin(o)*i,n[r+2]=Math.sin(s)*a},6:null,8:null,0:null,3:d,11:function(t,e,n,r){p(t,e,n,r),y(n,r,n,r)},2:p,4:function(t,e,n,r){p(t,e,n,r),T(n,r,n,r)}},4:{5:I,7:null,9:null,10:I,1:function(t,e,n,r){I(t,e,n,r),_(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){I(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){I(t,e,n,r),y(n,r,n,r)},2:I,4:d},1:{5:S,7:null,9:null,10:S,1:d,6:null,8:null,0:null,3:function(t,e,n,r){S(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){S(t,e,n,r),y(n,r,n,r)},2:S,4:function(t,e,n,r){S(t,e,n,r),T(n,r,n,r)}},6:{5:null,7:v,9:null,10:v,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:A,10:A,1:null,6:null,8:d,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:_,6:R,8:b,0:null,3:m,11:y,2:d,4:T},11:{5:g,7:null,9:null,10:g,1:function(t,e,n,r){g(t,e,n,r),_(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){g(t,e,n,r),m(n,r,n,r)},11:d,2:g,4:function(t,e,n,r){g(t,e,n,r),T(n,r,n,r)}}};function c(t,e){return h(t,e)?.projector}function h(t,e){if(null==t||null==e)return null;if(E.source.spatialReference===t&&E.dest.spatialReference===e)return E;const n=f(t,E.source),r=f(e,E.dest);return 0===n&&0===r?(0,l.aI)(t,e)?E.projector=d:E.projector=null:E.projector=u[n][r],E}function f(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,o.GA)(t,1)),(0,s.jA)(t)?e.spatialReferenceId=1:(0,l.oT)(t)?e.spatialReferenceId=2:(0,l.K8)(t)?e.spatialReferenceId=3:(0,l.r1)(t)?e.spatialReferenceId=11:t.wkt===s.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===s.FY.wkt?e.spatialReferenceId=6:t.wkt===s.LJ.wkt?e.spatialReferenceId=8:(0,s.q8)(t)?e.spatialReferenceId=7:(0,s.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function d(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e]??0)}function p(t,e,n,r){n[r]=C*(t[e]/N),n[r+1]=C*(P-2*Math.atan(Math.exp(-t[e+1]/N))),n[r+2]=t[e+2]??0}function m(t,e,n,o){!function(t,e,n,o,s){const a=.4999999*Math.PI,i=(0,r.qE)(O*t[e+1],-a,a),l=Math.sin(i);n[o++]=O*t[e]*s.radius,n[o++]=s.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[o]=t[e+2]??0}(t,e,n,o,a.$O)}function y(t,e,n,r){n[r]=t[e]*x,n[r+1]=t[e+1]*x,n[r+2]=t[e+2]??0}function g(t,e,n,r){n[r]=t[e]*D,n[r+1]=t[e+1]*D,n[r+2]=t[e+2]??0}function M(t,e,n,r,o){const s=o+(t[e+2]??0),a=O*t[e],i=O*t[e+1],l=Math.cos(i)*s;n[r]=Math.cos(a)*l,n[r+1]=Math.sin(a)*l,n[r+2]=Math.sin(i)*s}function b(t,e,n,r){M(t,e,n,r,a.Sw.radius)}function R(t,e,n,r){M(t,e,n,r,a.sH.radius)}function _(t,e,n,r){M(t,e,n,r,a.$O.radius)}function w(t,e,n,o,s){const a=t[e],i=t[e+1],l=t[e+2]??0,u=Math.sqrt(a*a+i*i+l*l),c=(0,r.YN)(l/(0===u?1:u)),h=Math.atan2(i,a);n[o++]=C*h,n[o++]=C*c,n[o]=u-s}function A(t,e,n,r){w(t,e,n,r,a.Sw.radius)}function v(t,e,n,r){w(t,e,n,r,a.sH.radius)}function S(t,e,n,r){w(t,e,n,r,a.$O.radius)}function T(t,e,n,r){!function(t,e,n,r,o){const s=O*t[e],a=O*t[e+1],i=t[e+2]??0,l=Math.sin(a),u=Math.cos(a),c=o.radius/Math.sqrt(1-o.eccentricitySquared*l*l);n[r++]=(c+i)*u*Math.cos(s),n[r++]=(c+i)*u*Math.sin(s),n[r++]=(c*(1-o.eccentricitySquared)+i)*l}(t,e,n,r,a.$O)}function I(t,e,n,r){const o=i.TP,s=t[e],l=t[e+1],u=t[e+2]??0;let c,h,f,d,p,m,y,g,M,b,R,_,w,A,v,S,T,I,E,O,P;c=Math.abs(u),h=s*s+l*l,f=Math.sqrt(h),d=h+u*u,p=Math.sqrt(d),O=Math.atan2(l,s),m=u*u/d,y=h/d,A=o.a2/p,v=o.a3-o.a4/p,y>.3?(g=c/p*(1+y*(o.a1+A+m*v)/p),E=Math.asin(g),b=g*g,M=Math.sqrt(1-b)):(M=f/p*(1-m*(o.a5-A-y*v)/p),E=Math.acos(M),b=1-M*M,g=Math.sqrt(b)),R=1-a.$O.eccentricitySquared*b,_=a.$O.radius/Math.sqrt(R),w=o.a6*_,A=f-_*M,v=c-w*g,T=M*A+g*v,S=M*v-g*A,I=S/(w/R+T),E+=I,P=T+S*I/2,u<0&&(E=-E),n[r++]=C*O,n[r++]=C*E,n[r]=P}const E={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},O=(0,r.kU)(1),C=(0,r.KJ)(1),P=.5*Math.PI,N=a.$O.radius,x=N*Math.PI/180,D=180/(N*Math.PI);n.d(e,["w5",0,u])},91218(t,e,n){n.r(e),n.d(e,{canProjectWithoutEngine:()=>Y,initializeProjection:()=>V,isEqualBaseGCS:()=>$,isLoaded:()=>N,isLoadedOrLoad:()=>x,isLoadedOrLoadFor:()=>D,load:()=>L,project:()=>B,projectAsync:()=>z,projectExtent:()=>ot,projectMany:()=>U,projectMultipoint:()=>X,projectOrLoad:()=>F,projectOrLoadMany:()=>k,projectPoint:()=>K,projectPolygon:()=>nt,projectPolyline:()=>tt,projectWithoutEngine:()=>W,requiresLoad:()=>G,test:()=>H,tryProject:()=>j,unload:()=>q});var r=n(49186),o=n(17676),s=n(62788),a=n(95488),i=n(51850),l=n(21276),u=n(73941),c=n(5443),h=n(91075),f=n(48526),d=n(86738),p=n(39829),m=n(82799),y=n(16930),g=n(98764),M=n(159),b=n(9762),R=n(49208);function _(t,e,n,r,o,s){return w[0]=t,w[1]=e,w[2]=n,(0,b.projectBuffer)(w,r,0,o,s,0)}const w=(0,i.vt)();var A=n(60408),v=n(21325),S=n(52006);let T=null,I=null,E=null,O=null,C={};const P=new a.I;function N(){return!!(I?.isLoaded()&&E?.isLoaded()&&O?.isLoaded())}function x(){return!!N()||((0,s.gc)(P),L(),!1)}function D(t,e){return!t||!e||Y(t,e)||x()}function G(t,e){return!Y(t,e)&&!N()}async function L(t){null==T&&(T=Promise.all([n.e(3276).then(n.bind(n,83276)).then(t=>(I=t,I.load())),n.e(8377).then(n.bind(n,8377)).then(t=>(E=t,E.load())),n.e(2158).then(n.bind(n,12158)).then(t=>(O=t,O.load()))])),await T,(0,o.Te)(t),P.notify()}function B(t,e,n){return Array.isArray(t)?0===t.length?[]:((0,l.H)(t),U(t,t[0].spatialReference,e,n)):((0,l.f)(t),U([t],t.spatialReference,e,n)[0])}function U(t,e,n,r){if(null==e||null==n)return t;if(Y(e,n,r))return t.map(t=>W(t,e,n));if(null==r?.geographicTransformation&&(0,u.jA)(e))return U(t.map(t=>W(t,e,y.A.WGS84)),y.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(n))return U(t,e,y.A.WGS84).map(t=>W(t,y.A.WGS84,n));if(!N())throw new Z;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:O.getTransformation(e,n,r.areaOfInterestExtent)||new M.A};else if(!r?.areaOfInterestExtent){const t=function(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}(e,n);let o=C[t];o||(o=O.getTransformation(e,n)||new M.A,C[t]=o),r={geographicTransformation:o,zConversionDisabled:r?.zConversionDisabled}}return t[0].spatialReference||(t[0].spatialReference=e),t[0]instanceof h.A?I.executeMany(t,n,r):E.executeMany(t,n,r)}function j(t,e,n){try{return B(t,e,n)}catch(t){return null}}function F(t,e){const n=k([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function k(t,e,n){if(!N())for(const n of t)if(null!=n&&!(0,v.aI)(n.spatialReference,e)&&(0,v.fn)(n.spatialReference)&&(0,v.fn)(e)&&!Y(n.spatialReference,e))return(0,s.gc)(P),{pending:L(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,v.aI)(t.spatialReference,e)?t:(0,v.fn)(t.spatialReference)&&(0,v.fn)(e)?B(t,e,n):null)}}class Z extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function q(){T=null,I=null,E=null,O=null,C={}}const H={get loadPromise(){return T}};async function z(t,e,n){if((0,o.Te)(n),!t)return t;const r=k(Array.isArray(t)?t:[t],e,n);if(r.pending)return await r.pending,(0,o.Te)(n),z(t,e,n);const s=r.geometries??[];return Array.isArray(t)?s:s[0]}function Y(t,e,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,v.aI)(t,e)||(0,v.fn)(t)&&(0,v.fn)(e)&&!!(0,R.jd)(t,e))}function $(t,e){if((0,v.aI)(t,e))return!0;if(!(0,v.fn)(t)||!(0,v.fn)(e))return!1;const n=(0,v.oT)(t)||(0,v.K8)(t)||(0,v.x1)(t),r=(0,v.oT)(e)||(0,v.K8)(e)||(0,v.x1)(e);return n&&r}async function V(t,e,n,r){if(N())return(0,o.NO)(r);if(Array.isArray(t)){for(const{source:e,dest:n,options:o}of t)if(e&&n&&!Y(e,n,o))return L(r)}else if(t&&e&&!Y(t,e,n))return L(r);return(0,o.NO)(r)}function W(t,e,n){return t?(0,A.fT)(t)?J(t,e,new d.A,n,0):(0,A.ZC)(t)?st(t,e,new c.A,n,0):(0,A.Bi)(t)?rt(t,e,new p.A,n,0):(0,A.Rg)(t)?et(t,e,new m.A,n,0):(0,A.U9)(t)?Q(t,e,new f.A,n,0):null:null}function K(t,e,n=e.spatialReference,r=0){return null!=n&&null!=t.spatialReference&&null!=J(t,t.spatialReference,e,n,r)}function J(t,e,n,r,o){ut[0]=t.x,ut[1]=t.y;const s=t.z;return ut[2]=void 0!==s?s:o,(0,b.projectBuffer)(ut,e,0,ut,r,0)?(n.x=ut[0],n.y=ut[1],n.spatialReference=r,void 0!==s||(0,u.xP)(r)?(n.z=ut[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}function X(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=Q(t,t.spatialReference,e,n,r)}function Q(t,e,n,r,o){const{points:s,hasZ:a,hasM:i}=t,l=[],u=s.length,c=[];for(const t of s)c.push(t[0],t[1],a?t[2]:o);if(!(0,b.projectBuffer)(c,e,0,c,r,0,u))return null;const h=lt(a,r);for(let t=0;t<u;++t){const e=3*t,n=c[e],r=c[e+1];h&&i?l.push([n,r,c[e+2],s[t][3]]):h?l.push([n,r,c[e+2]]):i?l.push([n,r,s[t][2]]):l.push([n,r])}return n.points=l,n.spatialReference=r,n.hasZ=a,n.hasM=i,n}function tt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=et(t,t.spatialReference,e,n,r)}function et(t,e,n,r,o){const{curvePaths:s,paths:a,hasZ:i,hasM:l}=t;if(!(s?it(s,i??!1,l??!1,e,n.curvePaths=[],r,o):at(a,i??!1,l??!1,e,n.paths,r,o)))return null;const u=lt(i,r);return n.spatialReference=r,n.hasZ=u,n.hasM=l,n}function nt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=rt(t,t.spatialReference,e,n,r)}function rt(t,e,n,r,o){const{curveRings:s,rings:a,hasZ:i,hasM:l}=t;return(s?it(s,i??!1,l??!1,e,n.curveRings=[],r,o):at(a,i??!1,l??!1,e,n.rings,r,o))?(n.spatialReference=r,n.hasZ=lt(i,r),n.hasM=l,n):null}function ot(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=st(t,t.spatialReference,e,n,r)}function st(t,e,n,r,o){const{xmin:s,ymin:a,xmax:i,ymax:l,hasZ:u,hasM:c}=t;if(!_(s,a,u?t.zmin:o,e,ut,r))return null;const h=lt(u,r);return n.xmin=ut[0],n.ymin=ut[1],h&&(n.zmin=ut[2]),_(i,l,u?t.zmax:o,e,ut,r)?(n.xmax=ut[0],n.ymax=ut[1],h&&(n.zmax=ut[2]),c&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=r,n):null}function at(t,e,n,r,o,s,a=0){const i=new Array;for(const n of t)for(const t of n)i.push(t[0],t[1],e?t[2]:a);if(!(0,b.projectBuffer)(i,r,0,i,s,0))return!1;let l=0;o.length=0;const u=e?3:2,c=lt(e,s);for(const e of t){const t=new Array;for(const r of e){const e=i.slice(l,l+=3);c||e.pop(),n&&e.push(r[u]),t.push(e)}o.push(t)}return!0}function it(t,e,n,r,o,s,a=0){const i=new Array;for(const n of t)for(const t of n){if((0,S.FG)(t))return!1;if((0,S.aO)(t)){const[n,r]=t.c;i.push(n[0],n[1],e?n[2]:a,r[0],r[1],a);continue}if((0,S.n1)(t)){const[n,r,o]=t.b;i.push(n[0],n[1],e?n[2]:a,r[0],r[1],a,o[0],o[1],a);continue}const n=t;i.push(n[0],n[1],e?n[2]:a)}if(!(0,b.projectBuffer)(i,r,0,i,s,0))return!1;let l=0;o.length=0;const u=e?3:2,c=lt(e,s);for(const e of t){const t=new Array;for(const r of e){const e=i.slice(l,l+=3);if(c||e.pop(),n&&e.push((0,S.yP)(r)[u]),(0,S.FG)(r))return!1;if((0,S.aO)(r)){const n=i[l++],r=i[l++];++l,t.push({c:[e,[n,r]]});continue}if((0,S.n1)(r)){const n=i[l++],r=i[l++];++l;const o=i[l++],s=i[l++];++l,t.push({b:[e,[n,r],[o,s]]});continue}t.push(e)}o.push(t)}return!0}function lt(t,e){return t||(0,u.xP)(e)||(0,v.aI)(e,g.Y0)}const ut=(0,i.vt)()},98764(t,e,n){n.d(e,{lO:()=>c});var r=n(73941),o=n(16930),s=n(21325);const a=new o.A(r.fv),i=new o.A(r.FY),l=new o.A(r.LJ),u=new o.A(r.Ro);function c(t){const e=h.get(t);if(e)return e;let n=a;if(t)if(t===i)n=i;else if(t===l)n=l;else{const e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,s.tl)(e)||(0,s.tl)(r)?n=i:((0,s.ZL)(e)||(0,s.ZL)(r))&&(n=l);else{const e=t.wkt2??t.wkt;if(e){const t=e.toUpperCase();t===f?n=i:t===d&&(n=l)}}}return h.set(t,n),n}const h=new Map,f=i.wkt.toUpperCase(),d=l.wkt.toUpperCase();n.d(e,["GD",0,a,"Y0",0,u])},4197(t,e,n){n.d(e,{Vj:()=>c,cj:()=>u,jh:()=>s,l5:()=>i,yH:()=>l});var r=n(34275),o=n(9093);function s(t){return t<=1024?new Array(t).fill(0):new Float64Array(t)}function a(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function i(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function l(t,e){if(0===e.length)return a(t);if(0===t.length)return a(e);const n=s(t.length+e.length);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}function u(t){return[...t]}function c(t){const e=(0,o.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},95696(t,e,n){n.d(e,{A:()=>u});var r,o=n(5482),s=n(69540),a=n(25482),i=n(91429),l=n(93223);let u=class extends((0,s.OU)(a.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,o.Cg)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,o.Cg)([(0,i.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=r=(0,o.Cg)([(0,i.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(t,e,n){n.d(e,{A:()=>u});var r=n(5482),o=n(69540),s=n(25482),a=n(91429),i=n(51850),l=n(93223);let u=class extends((0,o.OU)(s.o)){constructor(t){super(t),this.type="local",this.origin=(0,i.vt)()}};(0,r.Cg)([(0,l.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r.Cg)([(0,a.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;const r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},34403(t,e,n){var r=n(79258);Math.PI;const o=r.$O.radius,s=r.$O.eccentricitySquared,a={a1:o*s,a2:o*s*o*s,a3:o*s*s/2,a4:o*s*o*s*2.5,a5:o*s+o*s*s/2,a6:1-s};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius,n.d(e,["TP",0,a])},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function o(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function a(t){return void 0!==t.paths||void 0!==t.curvePaths}function i(t){return void 0!==t.rings||void 0!==t.curveRings}function l(t){return"object"==typeof t&&"vertexAttributes"in t}function u(t){return t?s(t)?"esriGeometryPoint":a(t)?"esriGeometryPolyline":i(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":o(t)?"esriGeometryMultipoint":null:null}function c(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function h(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>u,Bi:()=>i,Pv:()=>c,Rg:()=>a,U9:()=>o,W0:()=>h,ZC:()=>r,fT:()=>s,uW:()=>l})},97770(t,e,n){n.d(e,{Ey:()=>N,F8:()=>P,J2:()=>I,Yq:()=>O,_m:()=>E,iS:()=>C,wj:()=>x});var r=n(66552),o=n(73444),s=n(98623),a=n(92647);const i={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},h={year:"numeric",month:"long",day:"numeric"},f={year:"numeric",month:"short",day:"numeric"},d={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},m={...p,second:"numeric"},y={hourCycle:"h23"},g={...p,...y},M={...m,...y},b={"short-date":c,"short-date-short-time":{...c,...p},"short-date-short-time-24":{...c,...g},"short-date-long-time":{...c,...m},"short-date-long-time-24":{...c,...M},"short-date-le":c,"short-date-le-short-time":{...c,...p},"short-date-le-short-time-24":{...c,...g},"short-date-le-long-time":{...c,...m},"short-date-le-long-time-24":{...c,...M},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...p},"long-month-day-year-short-time-24":{...h,...g},"long-month-day-year-long-time":{...h,...m},"long-month-day-year-long-time-24":{...h,...M},"day-short-month-year":f,"day-short-month-year-short-time":{...f,...p},"day-short-month-year-short-time-24":{...f,...g},"day-short-month-year-long-time":{...f,...m},"day-short-month-year-long-time-24":{...f,...M},"long-date":d,"long-date-short-time":{...d,...p},"long-date-short-time-24":{...d,...g},"long-date-long-time":{...d,...m},"long-date-long-time-24":{...d,...M},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":m},R=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),_={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},w=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),A=w.find(({type:t})=>"month"===t)?.value.toLowerCase();function v(){const t=(0,o.lR)();return(t&&_[t])??(0,o.QC)()}"mart"!==A&&(_.bs="sr-Latn-CS");let S=new WeakMap;const T=b["short-date-short-time"];function I(t){return b[t]}function E(t){const{dateStyle:e,timeStyle:n,hour12:r,year:o,month:s}=t,a={};return e?a.dateStyle=e:o&&(a.year=o,a.month=s||void 0),n&&!a.year&&(a.timeStyle=n,a.hour12="auto"===r?void 0:"always"===r),a}function O(t,e=T){return function(t){let e=S.get(t);if(!e){const n=v(),r=x(t.timeZone??"system"),o={...t,timeZone:r};e=new Intl.DateTimeFormat(n,o),S.set(t,e)}return e}(e).format(t)}function C(t,e=T){return O(new Date(t),{...e,...u,...l})}function P(t,e=T){return O(new Date(`1970-01-01T${t}Z`),{...e,...u,...i})}function N(t,e=T){const n=a.c9.fromISO(t,{setZone:!0});if(!n.isValid)return t;if(e.timeZone)return O(n.toJSDate(),e);const r=0===n.offset?"UTC":e.timeZone,o={...e,timeZone:r};return n.toLocaleString(o,{locale:v()})}function x(t){switch(t){case"system":return s.N;case s.L:return"UTC";default:return t}}(0,o.Ml)(()=>{S=new WeakMap}),n.d(e,["_v",0,R])},73444(t,e,n){n.d(e,{JK:()=>l,Ml:()=>y,QC:()=>h,lR:()=>c,oQ:()=>p});var r=n(36563);let o;n(44208);const s=globalThis.esriConfig?.locale,a=globalThis.document?.documentElement;function i(){const t=a?.getAttribute("lang"),e=globalThis.navigator?.language;return s??t??e??"en"}function l(){return void 0===o&&(o=i()),o}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(t=l()){return f(t)?.language}function h(t=l()){const e=f(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function f(t=l()){return u.exec(t)?.groups}const d=[];function p(t){return d.push(t),(0,r.hA)(()=>{d.splice(d.indexOf(t),1)})}new Map;const m=[];function y(t){return m.push(t),(0,r.hA)(()=>m.splice(m.indexOf(t),1))}function g(){const t=i();o!==t&&([...m].forEach(e=>e(t)),o=t,[...d].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",g),a&&new MutationObserver(()=>{g()}).observe(a,{attributeFilter:["lang"]})},98623(t,e,n){const r=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(e,["L",0,"unknown","N",0,r])},89606(t,e,n){n.d(e,{GN:()=>h,MU:()=>c,yf:()=>d});var r=n(35522),o=n(51850),s=n(10614),a=n(63907),i=n(74038);class l{constructor(t,e){this.data=t,this.indices=e}}class u{constructor(t,e,n,r,o){this.indices=t,this.packedNormals=e,this.appendedVertexToOriginal=n,this.outputVertexCount=r,this.appendedVertexCount=o}}function c(t,e,n,u,c){return!u||n.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,e,n,a){const i=new l(t.slice().buffer,e);if(!a)return i;const u=n[0].stride,c=i.data.byteLength/u;for(const t of n)if("normalCompressed"===t.name){const{offset:e}=t,n=new Int16Array(i.data),l=(0,o.vt)();for(let t=0;t<c;++t)(0,s.Tz)(l,n,t,u/2,e/2),(0,r.ei)(l,l,a),(0,s.aT)(n,t,l[0],l[1],l[2],u/2,e/2)}else if("normal"===t.name){const{offset:e}=t,n=new Float32Array(i.data),s=(0,o.vt)();for(let t=0;t<c;++t){const o=(t*u+e)/4;s[0]=n[o],s[1]=n[o+1],s[2]=n[o+2],(0,r.ei)(s,s,a),n[o]=s[0],n[o+1]=s[1],n[o+2]=s[2]}}return i}(t,e,n,c):function(t,e,n,r){const o=n[0].stride,s=o/4,l=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),u=t.byteLength/o,c=o+4;n.forEach(t=>t.stride=c),n.push(new i._("normalCompressed",2,a.pe.SHORT,o,c,!0));const d=h(e,l,s,r);return f(l,u,o,c,d)}(t,e,n,c)}function h(t,e,n,r){const o=t.length/3,s=e.length/n,{faceNormals:a,faceAreas:i,faceEdges:l,edgeFaces:u,vertexFaces:c,vertexFaceCountAndOffset:h}=function(t,e,n,r,o,s){const a=new Float32Array(3*o),i=new Float32Array(o),l=new Uint32Array(3*o),u=new Int32Array(3*o*2),c=3*o,h=new Uint32Array(c),f=new Uint32Array(2*n);for(let t=0;t<o;++t){const e=3*t;for(let t=0;t<3;++t)++f[2*r[e+t]]}{let t=0;for(let e=0;e<n;++e){const n=2*e;f[n+1]=t,t+=f[n]}for(let t=0;t<o;++t){const e=3*t;for(let n=0;n<3;++n)h[f[2*r[e+n]+1]++]=t}for(let t=0;t<n;++t)f[2*t+1]-=f[2*t]}let d=0;const p=new Uint32Array(2*c*2),m=new Uint32Array(2*n);for(let t=0;t<n;++t){const e=2*t,n=4*f[e+1];m[e]=n,m[e+1]=n}function y(t,e,n){const r=Math.min(t,e),o=Math.max(t,e),s=t<e?0:1,a=2*r,i=m[a],l=m[a+1];let c=-1;for(let t=i;t<l;t+=2)if(p[t]===o){c=p[t+1];break}return-1===c&&(c=d++,p[l]=o,p[l+1]=c,m[a+1]=l+2,u[2*c+(1-s)]=-1),u[2*c+s]=n,c}for(let n=0;n<r.length;n+=3){const o=r[n],u=o*e,c=t[u],h=t[u+1],f=t[u+2],d=r[n+1],p=d*e,m=t[p],g=t[p+1],M=t[p+2],b=r[n+2],R=b*e,_=c-m,w=h-g,A=f-M,v=c-t[R],S=h-t[R+1],T=f-t[R+2],I=w*T-A*S,E=A*v-_*T,O=_*S-w*v,C=Math.sqrt(I*I+E*E+O*O)||1,P=n/3;i[P]=.5*C;const N=1/C;if(s){const t=s[0]*I+s[3]*E+s[6]*O,e=s[1]*I+s[4]*E+s[7]*O,n=s[2]*I+s[5]*E+s[8]*O;a[3*P]=t*N,a[3*P+1]=e*N,a[3*P+2]=n*N}else a[3*P]=I*N,a[3*P+1]=E*N,a[3*P+2]=O*N;const x=y(o,d,P),D=y(d,b,P),G=y(b,o,P);l[3*P]=x,l[3*P+1]=D,l[3*P+2]=G}return{faceNormals:a,faceAreas:i,faceEdges:l,vertexFaces:h,vertexFaceCountAndOffset:f,edgeFaces:u}}(e,n,s,t,o,r);return function(t,e,n,r,o,s){const a=new Uint8Array(e),i=new Uint32Array(e),l=new Uint32Array(3*e);let u=0;const c=new Uint32Array(e);let h=0;for(let e=0;e<t.length;e+=3){const t=e/3;if(1===a[t])continue;a[t]=1;const f=n[3*t],d=n[3*t+1],p=n[3*t+2];for(h=0,c[h++]=t,l[0]=o[3*t],l[1]=o[3*t+1],l[2]=o[3*t+2],u=3,i[t]=t+1;u>0;){const e=l[--u];for(let r=0;r<2;++r){const y=s[2*e+r];if(-1===y||i[y]===t+1)continue;i[y]=t+1;const g=n[3*y],M=n[3*y+1],b=n[3*y+2];if(Math.abs(1-(f*g+d*M+p*b))<m){c[h++]=y,a[y]=1;for(let t=0;t<3;++t){const n=o[3*y+t];n!==e&&(l[u++]=n)}}}}if(h>1){let t=0,e=0,o=0,s=0;for(let a=0;a<h;++a){const i=c[a],l=r[i];t+=l,e+=n[3*i]*l,o+=n[3*i+1]*l,s+=n[3*i+2]*l}const a=Math.sqrt(e*e+o*o+s*s)||1;e/=a,o/=a,s/=a;for(let a=0;a<h;++a){const i=c[a];n[3*i]=e,n[3*i+1]=o,n[3*i+2]=s,r[i]=t}}}}(t,o,a,i,l,u),p(o,s,t,a,i,c,h)}function f(t,e,n,r,o){const s=n/4,a=r/4,i=o.outputVertexCount,u=new Float32Array(i*a),c=new Uint32Array(u.buffer),h=s,f=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,e,n,r,o,s,a){for(let i=0;i<s;++i){const s=i*o,l=i*e;for(let e=0;e<o;++e)t[l+e]=r[s+e];t[l+n]=a[i]}}(c,a,h,f,s,e,o.packedNormals),d(c,a,h,f,s,e,i,o.appendedVertexToOriginal,o.packedNormals),new l(u.buffer,o.indices)}function d(t,e,n,r,o,s,a,i,l){for(let u=s;u<a;++u){const a=i[u-s]*o,c=u*e;for(let e=0;e<o;++e)t[c+e]=r[a+e];t[c+n]=l[u]}}function p(t,e,n,r,o,s,a){const i=3*t,l=new(i<256?Uint8Array:i<65536?Uint16Array:Uint32Array)(n);let c=e;const h=new(e<256?Uint8Array:e<65536?Uint16Array:Uint32Array)(i-e),f=new ArrayBuffer(4*i),d=new Int16Array(f),p=new Uint32Array(f);let m=0,g=0;const M=new Uint32Array(t);let b=0;const R=1-y;for(let t=0;t<e;++t){m=a[2*t+1],g=m+a[2*t];let n=t;for(;m<g;){{const t=s[--g],e=3*t,a=r[e],i=r[e+1],l=r[e+2];b=0,M[b++]=t;let u=m;for(;u<g;){const t=s[u],e=3*t;if(a*r[e]+i*r[e+1]+l*r[e+2]>R){M[b++]=t;const e=--g;if(u<e){s[u]=s[e];continue}}++u}let c=0,h=0,f=0;if(1===b)c=a,h=i,f=l;else{for(let t=0;t<b;++t){const e=M[t],n=o[e],s=3*e;c+=r[s]*n,h+=r[s+1]*n,f+=r[s+2]*n}const t=Math.sqrt(c*c+h*h+f*f)||1;c/=t,h/=t,f/=t}{const t=1/(Math.abs(c)+Math.abs(h)+Math.abs(f)),e=c*t,r=h*t;let o=e,s=r;f<=0&&(o=(e>=0?1:-1)*(1-Math.abs(r)),s=(r>=0?1:-1)*(1-Math.abs(e)));const a=2*n,i=Math.round(32767*o),l=Math.round(32767*s);d[a]=i<-32767?-32767:i>32767?32767:i,d[a+1]=l<-32767?-32767:l>32767?32767:l}}if(n!==t)for(let e=0;e<b;++e){const r=3*M[e];l[r]===t&&(l[r]=n),l[r+1]===t&&(l[r+1]=n),l[r+2]===t&&(l[r+2]=n)}if(m>=g)break;n=c++,h[n-e]=t}}return new u(l,p,h,c,c-e)}const m=.04,y=.8},94715(t,e,n){n.r(e),n.d(e,{destroyContext:()=>v,dracoDecompressPointCloudData:()=>M,filterObbsForModifications:()=>b,filterObbsForModificationsSync:()=>C,initialize:()=>x,interpretObbModificationResults:()=>O,process:()=>g,project:()=>w,setLegacySchema:()=>_,setModifications:()=>R,setModificationsSync:()=>I,test:()=>G,transformNormals:()=>A});var r=n(34727),o=n(77690),s=n(29242),a=n(58083),i=n(9093),l=n(16930),u=n(4197),c=n(95696),h=n(18251),f=n(73354),d=n(2741);let p;var m=n(89606),y=n(98697);async function g(t){T=await D();const e=[t.geometryBuffer];return{result:E(T,t,e),transferList:e}}async function M(t){T=await D();const e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,o=T._malloc(r),s=new Uint8Array(T.HEAPU8.buffer,o,r);s.set(new Uint8Array(n));const a=T.dracoDecompressPointCloudData(o,s.byteLength);if(T._free(o),a.error.length>0)throw new Error(`i3s.wasm: ${a.error}`);const i=a.featureIds?.length>0?a.featureIds.slice():null,l=a.positions.slice();return i&&e.push(i.buffer),e.push(l.buffer),{result:{positions:l,featureIds:i},transferList:e}}async function b(t){await D(),C(t);const e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function R(t){await D(),I(t)}async function _(t){T=await D(),T.setLegacySchema(t.context,t.jsonSchema)}async function w(t){const{localMatrix:e,origin:r,positions:o,vertexSpace:s}=t,a=l.A.fromJSON(t.inSpatialReference),i=l.A.fromJSON(t.outSpatialReference),f=e?(0,u.Vj)(e):void 0,d=(0,u.cj)(r);let p;const[{projectBuffer:m},{initializeProjection:y}]=await Promise.all([Promise.resolve().then(n.bind(n,9762)),Promise.resolve().then(n.bind(n,91218))]);await y(a,i);const g=[0,0,0];if(!m(d,a,0,g,i,0))throw new Error("Failed to project");if("georeferenced"===s.type&&null==s.origin){if(p=new Float64Array(o.length),!m(o,a,0,p,i,0,p.length/3))throw new Error("Failed to project")}else{const t="georeferenced"===s.type?c.A.fromJSON(s):h.A.fromJSON(s),{projectMeshVertexPositions:e}=await n.e(4594).then(n.bind(n,74594)),r=e({vertexAttributes:{position:o},transform:f?{localMatrix:f}:void 0,vertexSpace:t,spatialReference:a},i);if(!r)throw new Error("Failed to project");p=r}const M=p.length,[b,R,_]=g;for(let t=0;t<M;t+=3)p[t]-=b,p[t+1]-=R,p[t+2]-=_;return{result:{projected:p,original:o,projectedOrigin:g},transferList:[p.buffer,o.buffer]}}async function A({normalMatrix:t,normals:e}){const n=new Float32Array(e.length);return(0,f.b)(n,e,t),(0,r.or)(t)&&(0,f.n)(n,n),{result:{transformed:n,original:e},transferList:[n.buffer,e.buffer]}}function v(t){P(t)}let S,T;function I(t){if(!T)return;const e=t.modifications,n=T._malloc(8*e.length),r=new Float64Array(T.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];T.setModifications(t.context,n,e.length,t.isGeodetic),T._free(n)}function E(t,e,n){const{context:r,globalTrafo:l,geometryElevationOffset:u,mbs:c,obbData:h,layouts:f,needNormals:d,computeNormals:p,elevationOffset:g,planetRadiusInGlobalMode:M,geometryBuffer:b,geometryDescriptor:R,geometryData:_,indexToVertexProjector:w,vertexToRenderProjector:A,normalReferenceFrame:v}=e,S=t._malloc(b.byteLength),T=t._malloc(33*Float64Array.BYTES_PER_ELEMENT),I=new Uint8Array(t.HEAPU8.buffer,S,b.byteLength);I.set(new Uint8Array(b));const E=new Float64Array(t.HEAPU8.buffer,T,33);N(E,[NaN,NaN,NaN],0);let O=3;N(E,l,O),O+=16,N(E,c.center,O),O+=3,E[O++]=c.radius,h&&N(E,h,O++);const C={isDraco:!1,isLegacy:!1,color:f.some(t=>t.some(t=>"color"===t.name)),normal:d&&f.some(t=>t.some(t=>"normalCompressed"===t.name)),uv0:f.some(t=>t.some(t=>"uv0"===t.name)),uvRegion:f.some(t=>t.some(t=>"uvRegion"===t.name)),featureIndex:R.featureIndex},P=t.process(r,!!h,S,I.byteLength,R,C,T,g,w,A,v);if(t._free(T),t._free(S),P.error.length>0)throw new Error(`i3s.wasm: ${P.error}`);if(P.discarded)return null;const x=P.componentOffsets.length>0?P.componentOffsets.slice():null,D=P.featureIds.length>0?P.featureIds.slice():null,G=P.anchorIds.length>0?Array.from(P.anchorIds):null,L=P.anchors.length>0?Array.from(P.anchors):null,B=1===P.indicesType?new Uint16Array(P.indices.buffer,P.indices.byteOffset,P.indices.byteLength/2).slice():new Uint32Array(P.indices.buffer,P.indices.byteOffset,P.indices.byteLength/4).slice(),U=f[0].slice(),j=(0,o.z0)((0,s.vt)(),l),F=(0,m.MU)(P.interleavedVertedData,B,U,p&&!C.normal,j),k=P.positions.slice(),Z=function(t,e,n,r,o){const s=n?(0,i.o8)(n):(0,i.vt)();(0,a.lw)(s,e,s);const l=s[0],u=s[1],c=s[2],h=s[4],f=s[5],d=s[6],p=s[8],m=s[9],y=s[10],g=s[12],M=s[13],b=s[14];let R=1/0,_=-1/0;for(let e=0;e<t.length;e+=3){const n=t[e],s=t[e+1],a=t[e+2],i=n*c+s*d+a*y+b;let w=0;if(r>0){const t=n*l+s*h+a*p+g,e=n*u+s*f+a*m+M;w=Math.sqrt(t*t+e*e+i*i)-r}else w=i;w-=o,R=Math.min(R,w),_=Math.max(_,w)}return{minElevation:R,maxElevation:_}}(k,l,_?.geometries[0]?.transformation,M,u),{buffer:q,byteOffset:H,byteLength:z}=P.positionIndices,Y=1===P.positionIndicesType?new Uint16Array(q,H,z/2).slice():new Uint32Array(q,H,z/4).slice(),$=new y._b(U,F.data,F.indices,P.hasColors,P.hasModifications,{data:k,indices:Y});return D&&n.push(D.buffer),x&&n.push(x.buffer),n.push(F.data),n.push(F.indices.buffer),n.push(k.buffer),n.push(Y.buffer),new y.sQ(x,D,G,L,$,l,P.obb,Z.minElevation,Z.maxElevation)}function O(t){return 0===t?0:1===t?1:2===t?2:3}function C(t){if(!T)return;const{context:e,buffer:n}=t,r=T._malloc(n.byteLength),o=n.byteLength/Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(T.HEAPU8.buffer,r,o),a=new Float64Array(n);s.set(a),T.filterOBBs(e,r,o),a.set(s),T._free(r)}function P(t){0===T?.destroy(t)&&(T=null,S=null,p=null)}function N(t,e,n){for(let r=0;r<e.length;++r)t[r+n]=e[r]}async function x(){T||await D()}async function D(){return T||(T=await(S??=(p??=(async()=>{const t=await n.e(2980).then(n.bind(n,82980));return await t.default({locateFile:t=>(0,d.s)(`esri/libs/i3s/${t}`)})})(),p))),T}const G={transform:(t,e)=>T&&E(T,t,e),destroy:P}},98697(t,e,n){n.d(e,{H1:()=>p,Ir:()=>d,_b:()=>u,sQ:()=>c});var r=n(53966),o=n(15142),s=n(51850),a=n(35982),i=n(91218),l=n(27993);class u{constructor(t,e,n,r,o,s){this.layout=t,this.interleavedVertexData=e,this.indices=n,this.hasColors=r,this.hasModifications=o,this.positionData=s}}class c{constructor(t,e,n,r,o,s,a,i,l){this.componentOffsets=t,this.featureIds=e,this.anchorIds=n,this.anchors=r,this.transformedGeometry=o,this.globalTrafo=s,this.obb=a,this.geometryMinElevation=i,this.geometryMaxElevation=l}}a.B;const h=new o.A({deallocator:null}),f=(0,s.vt)();function d(t,e,n){h.clear();let o=1/0,s=1/0,a=-1/0,u=-1/0,c=!1;for(const t of e){const e="clip"===t.type?2:"mask"===t.type?1:0,d=t.geometry;let p=t=>t;if(d.spatialReference){if(!(0,i.canProjectWithoutEngine)(d.spatialReference,n)){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:d});continue}p=t=>((0,l.F)(t,d.spatialReference,f,n),f)}c=c||1===e;const m=d.rings.length,y=d.rings.some(t=>t.length<3);if(0===m||y)r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (no rings or rings with less than 3 vertices).",{polygon:d});else{h.push(e),h.push(m);for(const t of d.rings){h.push(t.length);for(const e of t){const t=p(e);h.push(t[0]),h.push(t[1]),h.push(t[2]??0),o=Math.min(o,t[0]),s=Math.min(s,t[1]),a=Math.max(a,t[0]),u=Math.max(u,t[1])}}}}if(null!=t)if(c){const e=1e-4;h.push(2),h.push(2),h.push(4),h.push(o-e),h.push(s-e),h.push(0),h.push(a+e),h.push(s-e),h.push(0),h.push(a+e),h.push(u+e),h.push(0),h.push(o-e),h.push(u+e),h.push(0),h.push(4),h.push(t[0]),h.push(t[1]),h.push(0),h.push(t[2]),h.push(t[1]),h.push(0),h.push(t[2]),h.push(t[3]),h.push(0),h.push(t[0]),h.push(t[3]),h.push(0)}else h.push(1),h.push(1),h.push(4),h.push(t[0]),h.push(t[1]),h.push(0),h.push(t[2]),h.push(t[1]),h.push(0),h.push(t[2]),h.push(t[3]),h.push(0),h.push(t[0]),h.push(t[3]),h.push(0);h.push(3);const d=new Float64Array(h.length);for(let t=0;t<h.length;++t)d[t]=h.at(t);return d}function p(t,e){let n=0;for(const r of e){const e=r.geometry,o=e.rings.length,s=e.rings.some(t=>t.length<3);if(0!==o&&!s){n+=1,n+=1;for(let r=0;r<e.rings.length;++r){const o=e.rings[r];n+=1;for(let s=0;s<o.length;++s){const o=[t[n+0],t[n+1],t[n+2]];n+=3,e.setPoint(r,s,o)}}}}}},10614(t,e,n){n.d(e,{Tz:()=>a,aT:()=>s});var r=n(34727),o=n(35522);function s(t,e,n,r,o,s=2,a=0){const l=1/(Math.abs(n)+Math.abs(r)+Math.abs(o)),u=n*l,c=r*l,h=o<=0?(u>=0?1:-1)*(1-Math.abs(c)):u,f=o<=0?(c>=0?1:-1)*(1-Math.abs(u)):c,d=e*s+a;t[d]=i(h),t[d+1]=i(f)}function a(t,e,n,r=2,s=0){const a=n*r+s,i=l(e[a]),u=l(e[a+1]),c=1-Math.abs(i)-Math.abs(u);return t[2]=c,c<0?(t[0]=(i>=0?1:-1)*(1-Math.abs(u)),t[1]=(u>=0?1:-1)*(1-Math.abs(i))):(t[0]=i,t[1]=u),(0,o.S8)(t,t)}function i(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function l(t){return(0,r.qE)(t/32767,-1,1)}n(51850)},74038(t,e,n){n.d(e,{_:()=>r});class r{constructor(t,e,n,r,o,s=!1,a=0,i=!1){this.name=t,this.count=e,this.type=n,this.offset=r,this.stride=o,this.normalized=s,this.divisor=a,this.integer=i}}},63907(t,e,n){const r={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},o={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},s=Object.values(o),a={FLOAT:r.FLOAT,UNSIGNED_BYTE:r.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:r.BYTE,UNSIGNED_SHORT:r.UNSIGNED_SHORT,SHORT:r.SHORT,UNSIGNED_INT:r.UNSIGNED_INT,INT:r.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};n.d(e,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,o,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,s,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,a,"pe",0,r,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);
@@ -27,7 +27,6 @@ $include_ColorSizeSlider: $include_widgets !default;
27
27
  $include_ColorSlider: $include_widgets !default;
28
28
  $include_Compass: $include_widgets !default;
29
29
  $include_CoordinateConversion: $include_widgets !default;
30
- $include_DatePicker: $include_widgets !default;
31
30
  $include_Daylight: $include_widgets !default;
32
31
  $include_DirectionalPad: $include_widgets !default;
33
32
  $include_Directions: $include_widgets !default;
@@ -46,7 +45,6 @@ $include_FeatureMedia: $include_widgets !default;
46
45
  $include_Features: $include_widgets !default;
47
46
  $include_FeatureTable: $include_widgets !default;
48
47
  $include_FeatureTemplates: $include_widgets !default;
49
- $include_FeatureUtilityNetworkAssociationList: $include_widgets !default;
50
48
  $include_FeatureUtilityNetworkAssociations: $include_widgets !default;
51
49
  $include_FilterBuilder: $include_widgets !default;
52
50
  $include_FilterCondition: $include_widgets !default;
@@ -89,7 +87,6 @@ $include_SnappingControls: $include_widgets !default;
89
87
  $include_Spinner: $include_widgets !default;
90
88
  $include_Swipe: $include_widgets !default;
91
89
  $include_TableList: $include_widgets !default;
92
- $include_TimePicker: $include_widgets !default;
93
90
  $include_TimeSlider: $include_widgets !default;
94
91
  $include_TimeZoneLabel: $include_widgets !default;
95
92
  $include_TimezonePicker: $include_widgets !default;
@@ -140,7 +137,6 @@ $calcite-fonts-path: "../base/fonts/fonts/" !default;
140
137
  @import "widgets/ColorSlider";
141
138
  @import "widgets/Compass";
142
139
  @import "widgets/CoordinateConversion";
143
- @import "widgets/DatePicker";
144
140
  @import "widgets/Daylight";
145
141
  @import "widgets/DirectionalPad";
146
142
  @import "widgets/Directions";
@@ -159,7 +155,6 @@ $calcite-fonts-path: "../base/fonts/fonts/" !default;
159
155
  @import "widgets/Features";
160
156
  @import "widgets/FeatureTable";
161
157
  @import "widgets/FeatureTemplates";
162
- @import "widgets/FeatureUtilityNetworkAssociationList";
163
158
  @import "widgets/FeatureUtilityNetworkAssociations";
164
159
  @import "widgets/FilterBuilder";
165
160
  @import "widgets/FilterCondition";
@@ -203,7 +198,6 @@ $calcite-fonts-path: "../base/fonts/fonts/" !default;
203
198
  @import "widgets/Spinner";
204
199
  @import "widgets/Swipe";
205
200
  @import "widgets/TableList";
206
- @import "widgets/TimePicker";
207
201
  @import "widgets/TimeSlider";
208
202
  @import "widgets/TimeZoneLabel";
209
203
  @import "widgets/TimezonePicker";