@arcgis/core 4.32.0-next.20250105 → 4.32.0-next.20250107

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 (167) hide show
  1. package/AttributeBinsGraphic.js +5 -0
  2. package/README.md +1 -1
  3. package/applications/MapViewer/templateUtils.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/000771f8eefcd6af0fda.js +1 -0
  6. package/assets/esri/core/workers/chunks/{9372d08ba8bf3342c48f.js → 011ccfd3acee83e7dc68.js} +1 -1
  7. package/assets/esri/core/workers/chunks/03af4a51043677ffcd0f.js +1 -0
  8. package/assets/esri/core/workers/chunks/{d07da8b63d83af179a2c.js → 05943caacfd28c383810.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{9f495ad57cdbfa90c5b8.js → 095aeb19e2207c8361ca.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{67c7bdc0c91a8f803ea8.js → 11cb25dfab7c8467897a.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{42aa697b4718b75b8cb2.js → 1abeba63bf623a746d5c.js} +2 -2
  12. package/assets/esri/core/workers/chunks/{42aa697b4718b75b8cb2.js.LICENSE.txt → 1abeba63bf623a746d5c.js.LICENSE.txt} +1 -1
  13. package/assets/esri/core/workers/chunks/{a57cead317eb2fc9afd8.js → 206194cf069ad4bcc3ad.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{0673d811c496143fc3d4.js → 2779cf112299b612a73a.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{bd37c9cc720587665fd3.js → 304b88ade7551130ad3a.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{aedff36d3fec86abb9fb.js → 30a84ddf0384bb52fdbe.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{367af4aa7e170c8553e3.js → 33a13544b9e5f4f20bce.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{dce55e7f76adecc055c3.js → 35d9457109d0631a1ca8.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{00c0fbe19c12691cf2c3.js → 368a36be515e60e35154.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{3a90163b76b0bc7f21d2.js → 3767defbd9c4b2e86886.js} +1 -1
  21. package/assets/esri/core/workers/chunks/3a3e9701e5d7b05f41b7.js +1 -0
  22. package/assets/esri/core/workers/chunks/{9a498f2c007f4d78d4dd.js → 4234539a9721104acafb.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{76fa5c7c87831ad25cde.js → 435c037ccba71f1e22d3.js} +1 -1
  24. package/assets/esri/core/workers/chunks/4387c47ae1b36d770f1d.js +1 -0
  25. package/assets/esri/core/workers/chunks/{88c68881cbdf4e911832.js → 4423aac6e44c3dbf184e.js} +1 -1
  26. package/assets/esri/core/workers/chunks/44ec3c77339b9765aaa4.js +1 -0
  27. package/assets/esri/core/workers/chunks/4b77c8d994498899631a.js +1 -0
  28. package/assets/esri/core/workers/chunks/62f8949a2d9076f3c1ea.js +2 -0
  29. package/assets/esri/core/workers/chunks/{c8cd6ba5600d8ff8db0b.js.LICENSE.txt → 62f8949a2d9076f3c1ea.js.LICENSE.txt} +1 -1
  30. package/assets/esri/core/workers/chunks/{664aa401887b59abd7b7.js → 6400f39a965900f66ce7.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{ddce265c46e4dfeb6c6d.js → 66d40a486aa3caa76106.js} +1 -1
  32. package/assets/esri/core/workers/chunks/6b3ee691646fbc39445c.js +1 -0
  33. package/assets/esri/core/workers/chunks/{533a7fd64b17bb294545.js → 6c58f792e2ae3736f662.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{370b230fd2d7703d0698.js → 6efb36bc2205203ff44d.js} +2 -2
  35. package/assets/esri/core/workers/chunks/{370b230fd2d7703d0698.js.LICENSE.txt → 6efb36bc2205203ff44d.js.LICENSE.txt} +1 -1
  36. package/assets/esri/core/workers/chunks/{a90611cdc86190799560.js → 7a43fda8984549a084b8.js} +1 -1
  37. package/assets/esri/core/workers/chunks/7b753da3b8a6d75abf20.js +1 -0
  38. package/assets/esri/core/workers/chunks/{9b020c47ca9ff5de9bb8.js → 7db356976198c4df76c1.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{4c56698cf1c669371865.js → 81816410cb1453938593.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{4ffaa2c5ab47a599ee9f.js → 82266ca8002554198208.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{f19d3c855f6e93544918.js → 8be0151a24c9af76a976.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{d9e396adf3354ee68339.js → 8f2b2d2dc9935b0d2039.js} +1 -1
  43. package/assets/esri/core/workers/chunks/907a91266e25cc4b9d42.js +1 -0
  44. package/assets/esri/core/workers/chunks/{a77aa86896bbb0e088df.js → 9857491cafa0278d9ae6.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{993db7646a8fc60179eb.js → 98da074899c82f0ded0b.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{3bb94da29dac3367ecc6.js → a1edd3f68e691ea39594.js} +1 -1
  47. package/assets/esri/core/workers/chunks/b07710e01494a6cda097.js +1 -0
  48. package/assets/esri/core/workers/chunks/{6a4305eb1e52b80ecb5c.js → b8ea84adff5619040494.js} +3 -3
  49. package/assets/esri/core/workers/chunks/{005727711cca0614c2ab.js → c05e0bd145a1c27d6857.js} +2 -2
  50. package/assets/esri/core/workers/chunks/{005727711cca0614c2ab.js.LICENSE.txt → c05e0bd145a1c27d6857.js.LICENSE.txt} +1 -1
  51. package/assets/esri/core/workers/chunks/c4374b6bc5c8dc6435c7.js +1 -0
  52. package/assets/esri/core/workers/chunks/c49707b577f3805f0142.js +1 -0
  53. package/assets/esri/core/workers/chunks/c5a928dcff7dc8a8cc9f.js +2 -0
  54. package/assets/esri/core/workers/chunks/{f4e3db71d1adae717535.js.LICENSE.txt → c5a928dcff7dc8a8cc9f.js.LICENSE.txt} +1 -1
  55. package/assets/esri/core/workers/chunks/cac79b64a7dade8bf486.js +2 -0
  56. package/assets/esri/core/workers/chunks/{bf0a0ca7fdac98f06a89.js.LICENSE.txt → cac79b64a7dade8bf486.js.LICENSE.txt} +1 -1
  57. package/assets/esri/core/workers/chunks/{2cccaf50134c65944e0a.js → d0876eed5249b029f9f0.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{178f606c8896ae5f39de.js → d1dbbab4a4c6072c182f.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{8e42fb623f56942958d8.js → d74b5dc60f02892d03e7.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{9ad7d095e614e7e8d7f5.js → dca0eb66116e4b5403fc.js} +1 -1
  61. package/assets/esri/core/workers/chunks/e27b8674a3492db51f2e.js +1 -0
  62. package/assets/esri/core/workers/chunks/{756c2f7c8659deab6c96.js → e2d987c39a6ef318511c.js} +2 -2
  63. package/assets/esri/core/workers/chunks/{756c2f7c8659deab6c96.js.LICENSE.txt → e2d987c39a6ef318511c.js.LICENSE.txt} +1 -1
  64. package/assets/esri/core/workers/chunks/{943428cf643e87ccfaad.js → e7e26b71f9eb28421936.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{f0adabf6d71a27f3183b.js → e80b0646a7e0e466ea65.js} +1 -1
  66. package/assets/esri/core/workers/chunks/e9c21907fabcedbd32ae.js +1 -0
  67. package/assets/esri/core/workers/chunks/{f9af0473878d960a02f2.js → f6d6bc43ac1c13892d44.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{3ed7c8138231de3a3b96.js → f8c960df1dabab120c70.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{fdd8a5eb07466541f1f9.js → fd95b19f02d8dfef2baf.js} +1 -1
  70. package/assets/esri/widgets/support/GridControls/t9n/GridControls_ja.json +1 -1
  71. package/chunks/bufferOperator.js +1 -1
  72. package/chunks/geodesicBufferOperator.js +1 -1
  73. package/chunks/terrainUtilsPlanar.js +1 -1
  74. package/chunks/terrainUtilsSpherical.js +1 -1
  75. package/core/MemCachePool.js +1 -1
  76. package/geometry/operators/graphicBufferOperator.js +1 -1
  77. package/geometry/support/meshVertexSpaceUtils.js +1 -1
  78. package/interfaces.d.ts +101 -5
  79. package/layers/graphics/data/QueryEngineResult.js +1 -1
  80. package/layers/graphics/data/queryUtils.js +1 -1
  81. package/layers/graphics/data/queryValidationUtils.js +1 -1
  82. package/layers/graphics/sources/WFSSource.js +1 -1
  83. package/layers/support/capabilities.js +1 -1
  84. package/layers/support/featureLayerUtils.js +1 -1
  85. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  86. package/package.json +2 -2
  87. package/renderers/RasterStretchRenderer.js +1 -1
  88. package/rest/query/executeAttributeBinsQuery.js +1 -1
  89. package/rest/support/AttributeBinsFeatureSet.js +5 -0
  90. package/rest/support/AttributeBinsQuery.js +1 -1
  91. package/rest/support/BinParametersAttributes.js +1 -1
  92. package/rest/support/BinParametersBase.js +1 -1
  93. package/rest/support/DateBinParameters.js +1 -1
  94. package/rest/support/FeatureSet.js +1 -1
  95. package/rest/support/NormalizationBinParametersMixin.js +1 -1
  96. package/rest/support/Query.js +1 -1
  97. package/rest/support/TopFeaturesQuery.js +1 -1
  98. package/smartMapping/renderers/dotDensity.js +1 -1
  99. package/smartMapping/renderers/pieChart.js +1 -1
  100. package/smartMapping/statistics/summaryStatisticsForAttributes.js +1 -1
  101. package/support/revision.js +1 -1
  102. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  103. package/symbols/cim/cimAnalyzer.js +1 -1
  104. package/views/2d/engine/Bitmap.js +1 -1
  105. package/views/2d/engine/BitmapContainer.js +1 -1
  106. package/views/2d/engine/BitmapTileContainer.js +1 -1
  107. package/views/2d/engine/webgl/shaderGraph/techniques/bitmap/BitmapTechnique.js +1 -1
  108. package/views/2d/input/MapViewInputManager.js +1 -1
  109. package/views/2d/input/handlers/DragPan.js +1 -1
  110. package/views/2d/input/handlers/DragRotate.js +1 -1
  111. package/views/2d/input/handlers/MouseWheelZoom.js +1 -1
  112. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  113. package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
  114. package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
  115. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  116. package/views/3d/input/SceneInputManager.js +1 -1
  117. package/views/3d/input/handlers/DragRotate.js +1 -1
  118. package/views/3d/input/handlers/DragZoom.js +1 -1
  119. package/views/3d/input/handlers/MouseWheelZoom.js +1 -1
  120. package/views/3d/input/handlers/PinchAndPanNavigation.js +1 -1
  121. package/views/3d/layerViewModuleImportUtils.js +1 -1
  122. package/views/3d/layers/GroupLayerView3D.js +5 -0
  123. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  124. package/views/3d/state/NearFarHeuristic.js +1 -1
  125. package/views/3d/terrain/OverlayManager.js +1 -1
  126. package/views/3d/terrain/TerrainRenderer.js +1 -1
  127. package/views/3d/terrain/TerrainSurface.js +1 -1
  128. package/views/3d/terrain/terrainUtilsPlanar.js +1 -1
  129. package/views/3d/terrain/terrainUtilsSpherical.js +1 -1
  130. package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
  131. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  132. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  133. package/views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js +4 -4
  134. package/views/View2D.js +1 -1
  135. package/views/draw/support/HighlightHelper.js +1 -1
  136. package/views/input/handlers/support.js +1 -1
  137. package/views/layers/DimensionLayerView.js +1 -1
  138. package/views/navigation/Navigation.js +1 -1
  139. package/views/navigation/NavigationActionMap.d.ts +4 -0
  140. package/views/navigation/NavigationActionMap.js +5 -0
  141. package/views/webgl/Texture.js +1 -1
  142. package/views/webgl/textureUtils.js +5 -0
  143. package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
  144. package/widgets/Editor/UpdateWorkflow.js +1 -1
  145. package/widgets/ElevationProfile/ElevationProfileLineView.js +1 -1
  146. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  147. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  148. package/widgets/FeatureTable/support/tableUtils.js +1 -1
  149. package/widgets/NavigationToggle/NavigationToggleViewModel.js +1 -1
  150. package/widgets/support/ColorPicker.js +1 -1
  151. package/assets/esri/core/workers/chunks/0a3bf1b74cce1b6b7ed8.js +0 -1
  152. package/assets/esri/core/workers/chunks/0d2411a941c42acb8cc2.js +0 -1
  153. package/assets/esri/core/workers/chunks/13720b1d97fb7d80e972.js +0 -1
  154. package/assets/esri/core/workers/chunks/14b87f3dd9942e6b19d0.js +0 -1
  155. package/assets/esri/core/workers/chunks/16530347bd78dc6c2fcd.js +0 -1
  156. package/assets/esri/core/workers/chunks/1a713cc601c6fcd97d2f.js +0 -1
  157. package/assets/esri/core/workers/chunks/3029354194f1a3030c5c.js +0 -1
  158. package/assets/esri/core/workers/chunks/318a39b56851e707edad.js +0 -1
  159. package/assets/esri/core/workers/chunks/53cd990b2c988518de6d.js +0 -1
  160. package/assets/esri/core/workers/chunks/5a0eb9dfe668cf290462.js +0 -1
  161. package/assets/esri/core/workers/chunks/9f0ebeae8a3ba360284b.js +0 -1
  162. package/assets/esri/core/workers/chunks/a3cef3837f4df9ab022e.js +0 -1
  163. package/assets/esri/core/workers/chunks/bf0a0ca7fdac98f06a89.js +0 -2
  164. package/assets/esri/core/workers/chunks/c8cd6ba5600d8ff8db0b.js +0 -2
  165. package/assets/esri/core/workers/chunks/ea250d66089967976c05.js +0 -1
  166. package/assets/esri/core/workers/chunks/ecf317c6c790b3cc83bf.js +0 -1
  167. package/assets/esri/core/workers/chunks/f4e3db71d1adae717535.js +0 -2
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8469],{98469:(e,t,n)=>{n.r(t),n.d(t,{area:()=>re,buffer:()=>Ee,centroid:()=>Ve,clip:()=>Be,contains:()=>Fe,convexHull:()=>$e,crosses:()=>tt,cut:()=>mt,densify:()=>lt,difference:()=>gt,disjoint:()=>dt,distance:()=>bt,equals:()=>St,generalize:()=>Mt,geodesicBuffer:()=>P,geodeticArea:()=>E,geodeticDensify:()=>B,geodeticLength:()=>Q,intersection:()=>It,intersects:()=>At,length:()=>qt,loadAll:()=>Dn,offset:()=>Ut,overlaps:()=>Jt,proximity:()=>rn,relate:()=>an,rotate:()=>Sn,simplify:()=>cn,symmetricDifference:()=>_n,touches:()=>yn,union:()=>bn,within:()=>Gn});var r=n(4576),s=n(76061),i=n(55537);class o extends s.G{constructor(e,t,n){super(),this.m_index=-1,this.m_transformation=t.clone(),this.m_inputGeometryCursor=e}next(){let e;if(e=this.m_inputGeometryCursor.next()){(0,i.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID();const t=e.clone();return t.applyTransformation(this.m_transformation),t}return null}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}}const a=new class{getOperatorType(){return 10303}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n){return new o(e,t,n)}execute(e,t,n){const r=e.clone();return r.applyTransformation(t),r}};var m=n(78125);a.supportsCurves();var u=n(83047),c=n(24988),l=n(5808);let h,f,g,_,p;function d(){return!!h&&(0,c.s1)()}async function y(){if(!d()){const[e]=await Promise.all([Promise.resolve().then(n.bind(n,78125)),(0,c.Hh)()]);h=e.fromGeometry,f=e.fromSpatialReference,g=e.getSpatialReference,_=e.toPolygon,p=(0,c.fz)()}}const P=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t,n={}){let{curveType:r="geodesic",maxDeviation:s=NaN,unit:i}=n;i&&(t=(0,u.oU)(t,i,"meters"),s&&(s=(0,u.oU)(s,i,"meters")));const o=g(e);return _((0,c.g7)(h(e),f(o),l.O[r],t,s),o)},executeMany:function(e,t,n={}){let{curveType:s="geodesic",maxDeviation:i=NaN,union:o=!1,unit:a}=n;a&&(t=t.map((e=>(0,u.oU)(e,a,"meters"))),i&&(i=(0,u.oU)(i,a,"meters")));const m=e.map(h),p=g(e);return(0,c.zo)(m,f(p),l.O[s],t,i,o).map((e=>_(e,p))).filter(r.Ru)},isLoaded:d,load:y,get supportsCurves(){return p}},Symbol.toStringTag,{value:"Module"}));var x=n(83290);let b,C,v,G,S;function D(){return!!b&&(0,x.i)()}async function w(){if(!D()){const[e,t]=await Promise.all([n.e(7066).then(n.bind(n,37066)),Promise.resolve().then(n.bind(n,9192)).then((e=>e.a8)).then((({injectPe:e})=>e)),(0,x.l)()]);b=new e.OperatorGeodeticArea,t(x.p)}}function M(){return!!C&&D()}async function T(){if(!M()){const[e]=await Promise.all([Promise.resolve().then(n.bind(n,78125)),w()]);C=e.fromGeometry,v=e.fromSpatialReference,G=e.getSpatialReference,S=b.supportsCurves()}}const E=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t={}){const{curveType:n="geodesic",unit:r}=t,s=G(e);let i=function(e,t,n){return b.execute(e,t,n,null)}(C(e),v(s),l.O[n]);return i&&r&&(i=(0,u.oU)(i,"square-meters",r)),i},isLoaded:M,load:T,get supportsCurves(){return S}},Symbol.toStringTag,{value:"Module"}));let I,N,R,A,q,O;function k(){return!!I&&(0,x.i)()}async function V(){if(!k()){const[e,t]=await Promise.all([n.e(1088).then(n.bind(n,31088)),Promise.resolve().then(n.bind(n,9192)).then((e=>e.a8)).then((({injectPe:e})=>e)),(0,x.l)()]);I=new e.OperatorGeodeticDensifyByLength,t(x.p)}}function Y(){return!!N&&k()}async function X(){if(!Y()){const[e]=await Promise.all([Promise.resolve().then(n.bind(n,78125)),V()]);N=e.fromGeometry,R=e.fromSpatialReference,A=e.getSpatialReference,q=e.toGeometry,O=I.supportsCurves()}}const B=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t,n={}){const{curveType:r="geodesic",unit:s}=n;s&&(t=(0,u.oU)(t,s,"meters"));const i=A(e);return q(function(e,t,n,r){return I.execute(e,t,n,r,null)}(N(e),t,R(i),l.O[r]),i)},executeMany:function(e,t,n={}){const{curveType:r="geodesic",unit:i}=n;i&&(t=(0,u.oU)(t,i,"meters"));const o=e.map(N),a=A(e);return function(e,t,n,r){const i=I.executeMany(new s.S(e),t,n,r,null);return Array.from(i)}(o,t,R(a),l.O[r]).map((e=>q(e,a)))},isLoaded:Y,load:X,get supportsCurves(){return O}},Symbol.toStringTag,{value:"Module"}));let j,z,L,F,U;function Z(){return!!j&&(0,x.i)()}async function W(){if(!Z()){const[e,t]=await Promise.all([n.e(8879).then(n.bind(n,28879)),Promise.resolve().then(n.bind(n,9192)).then((e=>e.a8)).then((({injectPe:e})=>e)),(0,x.l)()]);j=new e.OperatorGeodeticLength,t(x.p)}}function J(){return!!z&&Z()}async function K(){if(!J()){const[e]=await Promise.all([Promise.resolve().then(n.bind(n,78125)),W()]);z=e.fromGeometry,L=e.fromSpatialReference,F=e.getSpatialReference,U=j.supportsCurves()}}const Q=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t={}){const{curveType:n="geodesic",unit:r}=t,s=F(e);let i=function(e,t,n){return j.execute(e,t,n,null)}(z(e),L(s),l.O[n]);return i&&r&&(i=(0,u.oU)(i,"meters",r)),i},isLoaded:J,load:K,get supportsCurves(){return U}},Symbol.toStringTag,{value:"Module"}));var $=n(11878),H=n(34727);const ee={uniform:0,conformal:1,rigid:2,"rigid-motion":3,general:4},te=e=>e.map((e=>new $.P(e.x,e.y)));class ne{constructor(){this.transform=new $.T}calculateErrors(e,t){const n=e.length,r=t.length;if(n!==r)throw new Error(`The input length (${n}) is not the same as output length (${r})`);const s=[];return{rms:this.transform.calculateErrors(n,te(e),te(t),s),errorsOut:s}}flipX(e,t){return this.transform.flipX(e,t),this}flipY(e,t){return this.transform.flipY(e,t),this}initializeFromControlPoints(e,t,n,r){const s=t.length,i=n.length;if(s!==i)throw new Error(`The input length (${s}) is not the same as output length (${i})`);this.transform.initializeFromControlPoints(ee[e],s,te(t),te(n),r?.transform)}isIdentity(){return this.transform.isIdentity()}rotate(e,t,n){const r=(0,H.kU)(e);return null!=t&&null!=n?this.transform.rotateAngleAbout(r,new $.P(t,n)):this.transform.rotateAngle(r),this}scale(e,t){return this.transform.scale(e,t),this}setIdentity(){this.transform.setIdentity()}setSwapCoordinates(){return this.transform.setSwapCoordinates(),this}shear(e,t){return this.transform.shear(e,t),this}shift(e,t){return this.transform.shiftCoords(e,t),this}}const re=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t={}){const{unit:n}=t;let r=(0,m.fromGeometry)(e).calculateArea2D();if(r&&n){const t=(0,m.getSpatialReference)(e);if(t.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const s=(0,u.B5)(t);s!==n&&(s?r=(0,u.oU)(r,s,n):(r=Math.sqrt(r),r*=(0,u.GA)(t),r**=2,r=(0,u.oU)(r,"square-meters",n)))}return r},supportsCurves:!0},Symbol.toStringTag,{value:"Module"}));var se,ie,oe=n(96546),ae=n(35368),me=n(90237),ue=n(80407),ce=n(32406),le=n(5247);class he{getOperatorType(){return 10204}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r){return new fe(e,t,n,r)}execute(e,t,n,r){return e||(0,i.t)("null param is not allowed."),new fe(null,t,n,r).generalize(e)}}class fe extends s.G{constructor(e,t,n,r){super(),this.m_pline=null,this.m_point=new ae.P,this.m_stack=[],this.m_resultstack=[],this.m_callCount=0,this.m_progressTracker=r,this.m_geoms=e,this.m_maxDeviation=t,this.m_bRemoveDegenerateParts=n}tock(){return!0}getRank(){return 1}next(){const e=this.m_geoms.next();return null===e?null:((0,i.c)(e),this.generalize(e))}getGeometryID(){return this.m_geoms.getGeometryID()}generalize(e){const t=e.getGeometryType();if((0,i.h)(t))return e;if(t===i.G.enumEnvelope){const t=new ae.h({vd:e.getDescription()});return t.addEnvelope(e,!1),this.generalize(t)}if((0,i.e)(t)){const t=new ae.i({vd:e.getDescription()});return t.addSegment(e,!0),this.generalize(t)}if((0,i.f)(t)||(0,i.a)(""),e.isEmpty()||this.m_maxDeviation<=0)return e;const n=(new le.O).execute(e,0,.05*this.m_maxDeviation,0,this.m_progressTracker);e.hasNonLinearSegments()&&(this.m_maxDeviation*=.95);const r=n,s=e.createInstance();s.getGeometryType()===i.G.enumPolygon&&s.setFillRule(e.getFillRule()),this.m_xy=r.getAttributeStreamRef(0);{const e={stack:[],error:void 0,hasError:!1};try{const t=new ae.L;this.m_pline=t,(0,me.b)(e,(0,$.f)((()=>{this.m_pline=null}),!1),!1);for(let e=0,t=r.getPathCount();e<t;e++)this.generalizePath(r.getImpl(),e,s.getImpl())}catch(t){e.error=t,e.hasError=!0}finally{(0,me.c)(e)}}return this.m_resultstack.length=0,this.m_stack.length=0,s}generalizePath(e,t,n){if(e.getPathSize(t)<2)return;this.m_resultstack.length=0,this.m_stack.length=0;const r=e.getPathStart(t),s=e.getPathEnd(t)-1,i=e.isClosedPath(t),o=e.isClosedPathInXYPlane(t);let a=0,m=-1;this.m_stack.push(i?r:s),this.m_stack.push(r);let u=!1,c=!1;for(!this.m_bRemoveDegenerateParts&&o&&(u=!0,c=!0);this.m_stack.length>1;){const t=this.m_stack.at(-1);this.m_stack.pop();const n=this.m_stack.at(-1);let r=e.getXY(t);this.m_pline.setStartXY(r),r=e.getXY(n),this.m_pline.setEndXY(r);const i=[0];let o=this.findGreatestDistance(t,n,s,i);o>=0&&(u?u=!1:(c&&i[0]>a&&(a=i[0],m=o),i[0]<=this.m_maxDeviation&&(o=-1))),o>=0?(this.m_stack.push(o),this.m_stack.push(t)):this.m_resultstack.push(t)}i||this.m_resultstack.push(this.m_stack[0]);const l=this.m_resultstack.length;if(l===e.getPathSize(t)&&l===this.m_stack.length)n.addPath(e,t,!0);else if(this.m_resultstack.length>0){if(this.m_bRemoveDegenerateParts&&this.m_resultstack.length<=2){if(i||1===this.m_resultstack.length)return;if($.P.distance(e.getXY(this.m_resultstack[0]),e.getXY(this.m_resultstack[1]))<=this.m_maxDeviation)return}if(c&&m>=0&&a<=this.m_maxDeviation){const e=this.m_resultstack.at(-1)>m;this.m_resultstack.push(m),e&&(this.m_resultstack[this.m_resultstack.length-2]=(0,$.b)(this.m_resultstack[this.m_resultstack.length-1],this.m_resultstack[this.m_resultstack.length-1]=this.m_resultstack[this.m_resultstack.length-2]))}for(let t=0,r=this.m_resultstack.length;t<r;t++)e.getPointByVal(this.m_resultstack[t],this.m_point),0===t?n.startPathPoint(this.m_point):n.lineToPoint(this.m_point);if(i){for(let e=this.m_resultstack.length;e<3;e++)n.lineToPoint(this.m_point);n.closePathWithLine()}}}findGreatestDistance(e,t,n,r){let s=t-1;t<=e&&(s=n);let i=-1,o=0;const a=new $.P;for(let t=e+1;t<=s;t++){this.m_xy.queryPoint2D(2*t,a);const e=a.x,n=a.y,r=this.m_pline.getClosestCoordinate(a,!1);a.assign(this.m_pline.getCoord2D(r)),a.x-=e,a.y-=n;const s=a.length();s>o&&(i=t,o=s),this.m_callCount++}return r[0]=o,i}}class ge{getOperatorType(){return 10104}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}isSimple(e,t,n,r,s){return 5===(0,ce.k)(e,t,n,r,s)}executeMany(e,t,n,r){return new _e(e,t,n,r)}execute(e,t,n,r){const o=new s.S([e]),a=this.executeMany(o,t,n,r).next();return a||(0,i.b)("null output"),a}}class _e extends s.G{constructor(e,t,n,r){super(),e||(0,i.t)(""),this.m_progressTracker=r,this.m_bForceSimplify=n,this.m_index=-1,this.m_inputGeometryCursor=e,this.m_spatialReference=t}next(){const e=this.m_inputGeometryCursor.next();return e?((0,i.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),this.simplify(e)):null}getGeometryID(){return this.m_index}tock(){return!1}getRank(){return 1}simplify(e){return e||(0,i.t)(""),(0,ce.l)(e,this.m_spatialReference,this.m_bForceSimplify,this.m_progressTracker)}}function pe(e,t,n,r,s,i){return{m_from:e.clone(),m_to:t.clone(),m_center:n.clone(),m_next:s,m_type:r}}function de(e,t,n,r,s){return{m_from:e.clone(),m_to:t.clone(),m_next:n,m_type:4,m_center:new $.P}}(ie=se||(se={}))[ie.enumDummy=256]="enumDummy",ie[ie.enumLine=1]="enumLine",ie[ie.enumArc=2]="enumArc",ie[ie.enumMiter=8]="enumMiter",ie[ie.enumBevel=16]="enumBevel",ie[ie.enumJoinMask=26]="enumJoinMask",ie[ie.enumConnectionMask=27]="enumConnectionMask";class ye extends s.G{constructor(e,t,n,r,s,i,o,a,m,u){super(),this.m_index=0,this.m_bufferedPolygon=null,this.m_x=0,this.m_y=0,this.m_progressTracker=u,this.m_parent=e,this.m_mp=t,this.m_distance=n,this.m_spatialReference=r,this.m_densifyDist=a,this.m_maxVertexInCompleteCircle=m,this.m_joins=s,this.m_caps=i,this.m_miterLimit=o}next(){const e=new ae.P;for(;;){if(this.m_index===this.m_mp.getPointCount())return null;if(1===this.m_caps)return this.m_index=this.m_mp.getPointCount(),new ae.h({vd:this.m_mp.getDescription()});if(this.m_mp.getPointByVal(this.m_index,e),this.m_index++,!e.isEmpty())break}let t,n=!1;if(null===this.m_bufferedPolygon&&(this.m_x=e.getX(),this.m_y=e.getY(),this.m_bufferedPolygon=this.m_parent.buffer(e,this.m_distance,this.m_spatialReference,this.m_joins,this.m_caps,this.m_miterLimit,this.m_densifyDist,this.m_maxVertexInCompleteCircle),n=!0),t=this.m_index<this.m_mp.getPointCount()?this.m_bufferedPolygon.clone():this.m_bufferedPolygon,!n){const n=new $.T,r=e.getX()-this.m_x,s=e.getY()-this.m_y;n.setShiftCoords(r,s),t.applyTransformation(n)}return(0,ae.N)(t,0),t}getGeometryID(){return 0}getRank(){return 1}tock(){return!0}}class Pe extends s.G{constructor(e){super(),this.m_currentPathIndex=0,this.m_polyline=e}next(){if(!this.m_polyline)return null;const e=this.m_polyline.getImpl(),t=e.getPathCount();if(this.m_currentPathIndex<t){const t=this.m_currentPathIndex;if(this.m_currentPathIndex++,!e.isClosedPathInXYPlane(t)){let n=e.getXY(e.getPathEnd(t)-1);for(;this.m_currentPathIndex<e.getPathCount();){const t=e.getXY(e.getPathStart(this.m_currentPathIndex));if(e.isClosedPathInXYPlane(this.m_currentPathIndex))break;if(!t.equals(n))break;n=e.getXY(e.getPathEnd(this.m_currentPathIndex)-1),this.m_currentPathIndex++}}if(0===t&&this.m_currentPathIndex===this.m_polyline.getPathCount()){const e=this.m_polyline;return this.m_polyline=null,e}const n=new ae.i({vd:this.m_polyline.getDescription()});n.addPath(this.m_polyline,t,!0);for(let r=t+1;r<this.m_currentPathIndex;r++)n.addSegmentsFromPath(this.m_polyline,r,0,e.getSegmentCountPath(r),!1);return this.m_currentPathIndex===this.m_polyline.getPathCount()&&(this.m_polyline=null),n}return null}getGeometryID(){return 0}getRank(){return 1}tock(){return!0}}class xe extends s.G{constructor(e,t,n){super(),this.m_geometry=null,this.m_index=0,this.m_bufferer=e,this.m_geoms=t,this.m_index=0,this.m_bFilter=n}next(){if(null===this.m_geometry&&(this.m_index=0,this.m_geometry=this.m_geoms.next(),!this.m_geometry))return null;const e=this.m_geometry.getImpl();if(this.m_index<e.getPathCount()){const e=this.m_index;return this.m_index++,this.m_bufferer.bufferPolylinePath(this.m_geometry,e,this.m_bFilter)}return this.m_geometry=null,this.next()}getGeometryID(){return 0}getRank(){return 1}tock(){return!0}}class be extends s.G{constructor(e){super(),this.m_index=0,this.m_bufferer=e}next(){const e=this.m_bufferer.m_geometry;if(this.m_index<e.getPathCount()){const t=this.m_index,n=e.calculateRingArea2D(this.m_index);for((0,i.g)(n>0),this.m_index++;this.m_index<e.getPathCount()&&!(e.calculateRingArea2D(this.m_index)>0);)this.m_index++;let r;return r=0===t&&this.m_index===e.getPathCount()?this.m_bufferer.bufferPolygonImpl(e,0,e.getPathCount()):this.m_bufferer.bufferPolygonImpl(e,t,this.m_index),r}return null}getGeometryID(){return 0}getRank(){return 1}tock(){return!0}}class Ce{constructor(e){this.m_geometry=null,this.m_bufferCommands=[],this.m_originalGeomType=i.G.enumUnknown,this.m_maxVertexInCompleteCircle=-1,this.m_circleTemplateSize=-1,this.m_oldCircleTemplateSize=0,this.m_spatialReference=null,this.m_tolerance=new ae.C(0,0),this.m_smallTolerance=new ae.C(0,0),this.m_filterTolerance=0,this.m_densifyDist=-1,this.m_distance=Number.NaN,this.m_absDistance=0,this.m_absDistanceReversed=0,this.m_dA=-1,this.m_miterLimit=4,this.m_joins=0,this.m_caps=0,this.m_bRoundBuffer=!0,this.m_bOutputLoops=!0,this.m_bFilter=!0,this.m_circleTemplate=[],this.m_leftStack=[],this.m_middleStack=[],this.m_helperLine1=new ae.L,this.m_helperLine2=new ae.L,this.m_helperArray=[],this.m_progressCounter=0,this.m_densificator=ae.D.constructDefault(e),this.m_progressTracker=e}buffer(e,t,n,r,s,o,a,m){if(e||(0,i.t)("Geometry.Bufferer.Impl.Buffer"),a<0&&(0,i.t)("Geometry.Bufferer.Impl.Buffer"),(0,i.q)(e.getGeometryType())&&(0,i.a)("Unsupported geometry type."),e.isEmpty())return new ae.h({vd:e.getDescription()});if(this.m_joins=r,this.m_caps=s,this.m_bRoundBuffer=!1,this.m_miterLimit=o,this.m_originalGeomType=e.getGeometryType(),(0,i.r)(this.m_originalGeomType)?this.m_bRoundBuffer=0===this.m_joins:(0,i.h)(this.m_originalGeomType)?this.m_bRoundBuffer=0===this.m_caps:(0,i.s)(this.m_originalGeomType)&&(this.m_bRoundBuffer=0===this.m_joins&&0===this.m_caps),this.m_bFilter=this.m_bRoundBuffer,this.m_geometry=(0,ue.c)(e),this.m_geometry.isEmpty())return new ae.h({vd:e.getDescription()});const u=new ae.a;this.m_geometry.queryLooseEnvelope(u),t>0&&u.inflateCoords(t,t),this.m_tolerance=(0,ae.b)(n,u,!0),this.m_smallTolerance=(0,ae.b)(null,u,!0),m<=0&&(m=96),this.m_spatialReference=n,this.m_distance=t,this.m_absDistance=Math.abs(this.m_distance),this.m_absDistanceReversed=0!==this.m_absDistance?1/this.m_absDistance:0,Number.isNaN(a)||0===a?a=1e-5*this.m_absDistance:a>.5*this.m_absDistance&&(a=.5*this.m_absDistance),m<12&&(m=12);const c=Math.abs(t)*(1-Math.cos(Math.PI/m));if(c>a)a=c;else if(0!==t){const e=Math.PI/Math.acos(1-a/Math.abs(t));e<m-1&&(m=Math.trunc(e))<12&&(m=12,a=Math.abs(t)*(1-Math.cos(Math.PI/m)))}this.m_densifyDist=a,this.m_maxVertexInCompleteCircle=m,this.m_filterTolerance=this.m_bRoundBuffer?Math.min(this.m_smallTolerance.total(),.25*this.m_densifyDist):0,this.m_circleTemplateSize=this.calcN(),this.m_circleTemplateSize!==this.m_oldCircleTemplateSize&&(this.m_circleTemplate.length=0,this.m_oldCircleTemplateSize=this.m_circleTemplateSize),this.m_densifyDist>0&&(0,i.n)(this.m_geometry)&&(this.m_geometry=this.m_densificator.densifyEx(this.m_geometry,0,this.m_densifyDist,0,0!==this.m_joins,(0,$.o)()));const l=this.bufferImpl();return this.m_geometry=null,l}generateCircleTemplate(){if(this.m_circleTemplate.length)return;const e=this.m_circleTemplateSize,t=Math.trunc((e+3)/4),n=.5*Math.PI/t;this.m_dA=n,this.m_circleTemplate.length=4*t;const r=Math.cos(n),s=Math.sin(n),i=$.P.construct(0,1);for(let e=0;e<t;e++)this.m_circleTemplate[e+0*t]=$.P.construct(i.y,-i.x),this.m_circleTemplate[e+1*t]=$.P.construct(-i.x,-i.y),this.m_circleTemplate[e+2*t]=$.P.construct(-i.y,i.x),this.m_circleTemplate[e+3*t]=i.clone(),i.rotateReverse(r,s)}bufferImpl(){const e=this.m_geometry.getGeometryType();if((0,i.e)(e)){const e=new ae.i({vd:this.m_geometry.getDescription()});return e.addSegment(this.m_geometry,!0),this.m_geometry=e,this.bufferImpl()}if(this.m_distance<=this.m_tolerance.total()){if(!(0,i.r)(e))return new ae.h({vd:this.m_geometry.getDescription()});if(this.m_distance<0){const e=new ae.a;if(this.m_geometry.queryEnvelope(e),e.width()<=2*this.m_absDistance||e.height()<=2*this.m_absDistance)return new ae.h({vd:this.m_geometry.getDescription()})}}switch(this.m_geometry.getGeometryType()){case i.G.enumPoint:return this.bufferPoint();case i.G.enumMultiPoint:return this.bufferMultiPoint();case i.G.enumPolyline:return this.bufferPolyline();case i.G.enumPolygon:return this.bufferPolygon();case i.G.enumEnvelope:return this.bufferEnvelope();default:(0,i.b)("")}}bufferPolyline(){if(this.isDegenerateGeometry(this.m_geometry)){const e=new ae.P;this.m_geometry.getPointByVal(0,e);const t=new ae.a;return this.m_geometry.queryEnvelope(t),e.setXY(t.getCenter()),this.bufferDegeneratePath(e,!0)}const e=this.m_geometry,t=this.m_geometry.getDescription();this.m_geometry=null;const n=new Pe(e);let r,s;r=0===this.m_joins?(new he).executeMany(n,.25*this.m_densifyDist,!1,this.m_progressTracker):n,s=this.m_bRoundBuffer?(new ge).executeMany(r,null,!0,this.m_progressTracker):r;const i=new xe(this,s,this.m_bFilter),o=(new oe.O).executeMany(i,this.m_spatialReference,this.m_progressTracker,2),a=(new ce.O).executeMany(o,this.m_spatialReference,!1,this.m_progressTracker).next();return null!==a?a:new ae.h({vd:t})}bufferPolygon(){if(0===this.m_distance)return this.m_geometry;this.generateCircleTemplate();const e=(new ce.O).execute(this.m_geometry,null,!1,this.m_progressTracker);if(this.m_distance<0){if(this.m_geometry=e,this.m_geometry.isEmpty())return this.m_geometry;const t=this.m_geometry,n=this.bufferPolygonImpl(t,0,t.getPathCount());return(new ce.O).execute(n,this.m_spatialReference,!1,this.m_progressTracker)}{if(this.m_geometry=e,this.isDegenerateGeometry(this.m_geometry)){const e=new ae.P;this.m_geometry.getPointByVal(0,e);const t=new ae.a;return this.m_geometry.queryEnvelope(t),e.setXY(t.getCenter()),this.bufferDegeneratePath(e,!0)}const t=new be(this),n=(new oe.O).executeMany(t,this.m_spatialReference,this.m_progressTracker,2),r=(new ce.O).executeMany(n,this.m_spatialReference,!1,this.m_progressTracker).next();return null!==r?r:new ae.h({vd:this.m_geometry.getDescription()})}}bufferPolygonImpl(e,t,n){const r=e,s=r.getImpl();let i=new ae.h({vd:e.getDescription()});for(let o=t;o<n;o++){if(s.getPathSize(o)<1)continue;const t=s.calculateRingArea2D(o),n=new ae.a;if(s.queryPathEnvelope(o,n),this.m_distance>0)if(t>0)if(this.isDegeneratePath(s,o)){const e=new ae.P;s.getPointByVal(s.getPathStart(o),e),e.setXY(n.getCenter()),i.add(this.bufferDegeneratePath(e,!0),!1)}else{const t=new ae.i({vd:e.getDescription()}),n=t.getImpl();if((0,ae.U)(this.m_geometry,o)){const e=this.bufferConvexPath(r,o);i.add(e,!1)}else{this.bufferClosedPath(this.m_geometry,o,n,this.m_bRoundBuffer,1);const e=this.bufferCleanup(t);i.add(e,!1)}}else{if(n.width()+this.m_tolerance.total()<=2*this.m_absDistance||n.height()+this.m_tolerance.total()<=2*this.m_absDistance)continue;const t=new ae.i({vd:e.getDescription()}),r=t.getImpl();if(this.bufferClosedPath(this.m_geometry,o,r,this.m_bRoundBuffer,1),!t.isEmpty()){const e=n,s=Math.max(1,this.m_absDistance),o=e.clone();o.inflateCoords(s,s),r.addEnvelope(o,!1);const a=this.bufferCleanup(t);i.reserve(i.getPointCount()+a.getPointCount()-4),De(a,i,o,!0)}}else if(t>0){if(n.width()+this.m_tolerance.total()<=2*this.m_absDistance||n.height()+this.m_tolerance.total()<=2*this.m_absDistance)continue;const t=new ae.i({vd:e.getDescription()}),r=t.getImpl();if(this.bufferClosedPath(this.m_geometry,o,r,this.m_bRoundBuffer,-1),!t.isEmpty()){const e=new ae.a;r.queryLooseEnvelope(e);const n=Math.max(1,this.m_absDistance),s=e.clone();s.inflateCoords(n,n),r.addEnvelope(s,!1),De(this.bufferCleanup(t),i,s,!0)}}else{const t=new ae.i({vd:e.getDescription()}),n=t.getImpl();this.bufferClosedPath(this.m_geometry,o,n,this.m_bRoundBuffer,-1);const r=this.bufferCleanup(t);for(let e=0,t=r.getPathCount();e<t;e++)i.addPath(r,e,!0)}}if(this.m_distance>0)return i.getPathCount()>1?this.bufferCleanup(i):ve(i);{const e=new ae.a;if(i.queryLooseEnvelope(e),i.isEmpty())return ve(i);{const t=Math.max(1,this.m_absDistance),n=e.clone();n.inflateCoords(t,t),i.addEnvelope(n,!1);const r=this.bufferCleanup(i);i=new ae.h;const s=new ae.h({vd:r.getDescription()});return De(r,s,n,!1),ve(s)}}}bufferPoint(){return this.bufferPointImpl(this.m_geometry)}bufferPointImpl(e){const t=new ae.h({vd:e.getDescription()});return 0===this.m_caps?(this.addCircle(t.getImpl(),e),this.setStrongSimple(t)):2===this.m_caps?(this.addSquare(t.getImpl(),e),this.setStrongSimple(t)):t}bufferDegeneratePath(e,t){const n=new ae.h({vd:e.getDescription()});return t&&0===this.m_joins||!t&&0===this.m_caps?(this.addCircle(n.getImpl(),e),this.setStrongSimple(n)):t||2!==this.m_caps?n:(this.addSquare(n.getImpl(),e),this.setStrongSimple(n))}bufferMultiPoint(){const e=new ye(this,this.m_geometry,this.m_distance,this.m_spatialReference,this.m_joins,this.m_caps,this.m_miterLimit,this.m_densifyDist,this.m_maxVertexInCompleteCircle,this.m_progressTracker);return(new oe.O).executeMany(e,this.m_spatialReference,this.m_progressTracker,2).next()}bufferEnvelope(){let e=new ae.h({vd:this.m_geometry.getDescription()});if(this.m_distance<=0){if(0===this.m_distance)e.addEnvelope(this.m_geometry,!1),Ge(this.m_geometry,this.m_tolerance.total())&&(e=this.setStrongSimple(e));else{const t=new ae.E;this.m_geometry.queryEnvelope(t),t.inflateCoords(this.m_distance,this.m_distance),e.addEnvelope(t,!1),Ge(t,this.m_tolerance.total())&&(e=this.setStrongSimple(e))}return e}if(1===this.m_joins){const t=new ae.E({copy:this.m_geometry});return t.inflateCoords(this.m_absDistance,this.m_absDistance),e.addEnvelope(t,!1),e}const t=this.m_geometry.clone();if(0===t.width()||0===t.height()){if(0===t.width()&&0===t.height()){const e=new ae.P({vd:this.m_geometry.getDescription()});return t.queryCornerByVal(0,e),this.m_geometry=e,this.bufferImpl()}const e=new ae.i({vd:this.m_geometry.getDescription()}),n=new ae.P;return t.queryCornerByVal(0,n),e.startPathPoint(n),t.queryCornerByVal(2,n),e.lineToPoint(n),this.m_geometry=e,this.bufferImpl()}return e.addEnvelope(this.m_geometry,!1),this.m_geometry=e,this.bufferConvexPath(e,0)}bufferConvexPath(e,t){this.generateCircleTemplate();const n=e.hasAttribute(10),r=new ae.h({vd:e.getDescription()}),s=r.getImpl();r.reserve((this.m_circleTemplate.length/10+4)*e.getPathSize(t));const o=new $.P,a=new $.P,m=new $.P,u=new $.P(0,0),c=new $.P,l=new $.P,h=e.getImpl(),f=e.getPathSize(t),g=e.getPathStart(t);for(let r=0,_=e.getPathSize(t);r<_;r++){const e=h.getXY(g+r),t=h.getXY(g+(r+1)%f),_=h.getXY(g+(r+2)%f);c.setSub(t,e),0===c.length()&&(0,i.b)("");const p=n&&!!(1&h.getAttributeAsInt(10,(r+1)%f,0));c.normalize();const d=c.clone();c.leftPerpendicularThis(),c.scale(this.m_absDistance),o.setAdd(c,e),a.setAdd(c,t),0===r?s.startPath(o):s.lineTo(o),s.lineTo(a),l.setSub(_,t),0===l.length()&&(0,i.b)(""),l.normalize();const y=l.clone();l.leftPerpendicularThis(),l.scale(this.m_absDistance),m.setAdd(l,t);let P=se.enumArc;const x=p?0:this.m_joins;if(2===x)P=se.enumBevel;else if(1===x){const e=-d.crossProduct(y);u.setSub(d,y),u.scale(this.m_absDistance/e),u.length()<this.m_miterLimit*this.m_absDistance?(u.addThis(t),P=se.enumMiter):P=se.enumBevel}else u.assign(t);this.addJoin(P,s,u,a,m,!1,!1)}return ve(r)}bufferPolylinePath(e,t,n){this.generateCircleTemplate();const r=e,s=r.getImpl();if(s.getPathSize(t)<1)return null;let i;if(i=this.m_bRoundBuffer?s.isClosedPathInXYPlane(t):s.isClosedPath(t),this.isDegeneratePath(s,t)&&this.m_distance>0){const e=new ae.P;s.getPointByVal(s.getPathStart(t),e);const n=new ae.a;return s.queryPathEnvelope(t,n),e.setXY(n.getCenter()),this.bufferDegeneratePath(e,i)}const o=new ae.i({vd:e.getDescription()});o.reserve((Math.trunc(this.m_circleTemplate.length/10)+4)*s.getPathSize(t));const a=o.getImpl();return i?2!==this.bufferClosedPath(r,t,a,n,1)&&this.bufferClosedPath(r,t,a,n,-1):this.bufferOpenPath(r,t,a,n),this.bufferCleanup(o)}progress_(){}bufferCleanup(e,t=!1){const n=t?this.m_tolerance:this.m_smallTolerance;return(0,ce.p)(e,n,!0,!t,-1,this.m_progressTracker,0,!1)}calcN(){if(0===this.m_densifyDist)return this.m_maxVertexInCompleteCircle;const e=1-this.m_densifyDist*Math.abs(this.m_absDistanceReversed);let t=4;return t=e<-1?4:2*Math.PI/Math.acos(e)+.5,t<4?t=4:t>this.m_maxVertexInCompleteCircle&&(t=this.m_maxVertexInCompleteCircle),Math.trunc(t)}addJoin(e,t,n,r,s,i,o){if(this.generateCircleTemplate(),i&&(t.startPath(r),i=!1),e===se.enumBevel)return void(o&&t.lineTo(s));if(e===se.enumMiter){const e=n.clone();return t.lineTo(e),void(o&&t.lineTo(s))}const a=new $.P;a.setSub(r,n),a.scale(this.m_absDistanceReversed);const m=new $.P;m.setSub(s,n),m.scale(this.m_absDistanceReversed);let u=Math.atan2(a.y,a.x)/this.m_dA;u<0&&(u=this.m_circleTemplate.length+u),u=this.m_circleTemplate.length-u;let c=Math.atan2(m.y,m.x)/this.m_dA;c<0&&(c=this.m_circleTemplate.length+c),c=this.m_circleTemplate.length-c,c<u&&(c+=this.m_circleTemplate.length);let l=Math.trunc(c),h=Math.ceil(u),f=this.m_circleTemplate[h%this.m_circleTemplate.length].clone();f.scaleAddThis(this.m_absDistance,n);const g=10*this.m_tolerance.total();f.sub(r).length()<g&&(h+=1),f=this.m_circleTemplate[l%this.m_circleTemplate.length].clone(),f.scaleAddThis(this.m_absDistance,n),f.sub(s).length()<g&&(l-=1);let _=l-h;_++;for(let e=0,r=h%this.m_circleTemplate.length;e<_;e++,r=(r+1)%this.m_circleTemplate.length)f=this.m_circleTemplate[r].clone(),f.scaleAddThis(this.m_absDistance,n),t.lineTo(f),this.progress_();o&&t.lineTo(s)}bufferClosedPath(e,t,n,r,s){const i=new ae.d,o=i.addPathFromMultiPath(e,t,!0);return this.bufferClosedPathImpl(i,o,n,r,s)}bufferClosedPathImpl(e,t,n,r,s){const o=e.getFirstVertex(e.getFirstPath(t)),a=new ae.P;if(e.queryPoint(o,a),e.filterClosePoints(this.m_filterTolerance,!1,!1,!1,-1),e.getPointCount(t)<2)return s<0?0:(this.m_bRoundBuffer&&this.addCircle(n,a),2);(0,i.g)(e.getFirstPath(t)!==ae.n),(0,i.g)(e.getFirstVertex(e.getFirstPath(t))!==ae.n);const m=e.getXY(e.getFirstVertex(e.getFirstPath(t))),u=new $.T;if(u.setShift(m.negate()),e.applyTransformation(u),r){const r=function(e,t,n,r,s,i,o){return function(e,t,n,r,s,i,o){const a={stack:[],error:void 0,hasError:!1};try{const r=e.getFirstPath(t),m=e.createUserIndex();(0,me.b)(a,(0,$.f)((()=>{e.removeUserIndex(m)}),!1),!1),function(e,t,n,r){let s=-1;const i=new $.P,o=new $.P,a=new $.P;for(let n=0,m=e.getPathSize(r),u=e.getFirstVertex(r);n<m;++n){-1===s&&(e.queryXY(u,o),s=e.getPrevVertex(u),-1!==s&&(e.queryXY(s,i),a.setSub(o,i),a.normalize()));const n=e.getNextVertex(u);if(-1===n)break;const r=e.getXY(n),m=r.sub(o);m.normalize(),-1!==s&&m.dotProduct(a)<-.99&&Math.abs(m.crossProduct(a))<1e-7&&e.setUserIndex(u,t,1),s=u,u=n,i.assign(o),o.assign(r),a.assign(m)}}(e,m,0,r);for(let t=0;t<100;++t){if(0===e.getPathSize(r))return 1;let t=e.getFirstVertex(r),i=e.getPathSize(r);if(i<3)return 1;e.isClosedPath(r)||(i-=1);const a=64;let u=0,c=!1;for(let r=0;r<i&&t!==ae.n;r++){let l=0,h=t;for(let u=1,c=Math.min(a,i-r);u<c;u++)if(h=e.getNextVertexEx(h,n),u>1){const r=Se(e,m,t,h,n,s,o,a);if(-1===r)break;l+=r,i-=r}if(u+=l,c=l>0,c){const r=e.getPrevVertexEx(t,n);if(-1!==r){t=r,i++;continue}}t=e.getNextVertexEx(t,n)}if(0===u)break}return e.filterClosePoints(i,!1,!1,!1,-1),1}catch(e){a.error=e,a.hasError=!0}finally{(0,me.c)(a)}}(e,t,n,0,s,i,o)}(e,t,s,0,this.m_absDistance,this.m_filterTolerance,this.m_densifyDist);if((0,i.g)(1===r),e.getPointCount(t)<2)return s<0?0:(this.addCircle(n,a),2)}const c=0!==this.m_joins&&e.getVertexDescription().hasAttribute(10);this.m_bufferCommands.length=0;const l=e.getFirstPath(t);let h=e.getFirstVertex(l),f=1===s?e.getPrevVertex(h):e.getNextVertex(h),g=1===s?e.getNextVertex(h):e.getPrevVertex(h),_=!0;const p=new $.P,d=new $.P,y=new $.P,P=new $.P,x=new $.P,b=new $.P,C=new $.P,v=new $.P,G=this.m_absDistance,S=e.getPathSize(l),D=new $.P(0,0);for(let t=0;t<S;t++){d.assign(e.getXY(g)),_&&(p.assign(e.getXY(h)),y.assign(e.getXY(f)),b.setSub(p,y),b.normalize(),v.leftPerpendicularOther(b),v.scale(G),P.setAdd(v,p));const t=c&&!!(1&e.getAttributeAsDbl(10,h,0));x.setSub(d,p),x.normalize(),C.leftPerpendicularOther(x),C.scale(G);const n=new $.P;n.setAdd(p,C);const r=b.crossProduct(x),i=b.dotProduct(x);if(r<0||i<0&&r<Math.abs(i)*Number.EPSILON*8){let e=!1;const s=t?0:this.m_joins;if(1===s){const t=-r;D.setSub(b,x),D.scale(this.m_absDistance/t),D.length()<this.m_miterLimit*this.m_absDistance&&(D.addThis(p),e=!0),this.m_bufferCommands.push(pe(P,n,D,e?se.enumMiter:se.enumBevel,this.m_bufferCommands.length+1))}else this.m_bufferCommands.push(pe(P,n,p,0===s?se.enumArc:se.enumBevel,this.m_bufferCommands.length+1))}else P.equals(n)||(this.m_bufferCommands.push(de(P,p,this.m_bufferCommands.length+1)),this.m_bufferCommands.push(de(p,n,this.m_bufferCommands.length+1)));const o=new $.P;o.setAdd(d,C),this.m_bufferCommands.push(pe(n,o,p,se.enumLine,this.m_bufferCommands.length+1)),P.setCoordsPoint2D(o),v.setCoordsPoint2D(C),y.setCoordsPoint2D(p),p.setCoordsPoint2D(d),b.setCoordsPoint2D(x),f=h,h=g,_=!1,g=1===s?e.getNextVertex(h):e.getPrevVertex(h)}return this.m_bufferCommands.at(-1).m_next=0,this.processBufferCommands(n),u.setShift(m),n.applyTransformationToPath(u,n.getPathCount()-1),1}bufferOpenPath(e,t,n,r){if(this.m_bRoundBuffer){const s=new ae.i({vd:e.getDescription()});return s.addPath(e,t,!1),s.addSegmentsFromPath(e,t,0,e.getSegmentCountPath(t),!1),this.bufferClosedPath(s,0,n,r,1)}let s=0;const o=new ae.i({vd:e.getDescription()}),a=new $.P(0,0);{const r=new ae.d,i=r.addPathFromMultiPath(e,t,!1),m=r.getFirstVertex(r.getFirstPath(i)),u=new ae.P;if(r.queryPoint(m,u),a.assign(u.getXY()),r.filterClosePoints(0,!1,!1,!1,-1),r.getPointCount(i)<2)return this.m_bRoundBuffer&&this.addCircle(n,u),2;const c=r.getGeometry(r.getFirstGeometry());o.addPath(c,0,!1),s=o.getPointCount()-1,o.addSegmentsFromPath(c,0,0,c.getSegmentCountPath(0)-1,!1)}const m=new ae.d,u=m.addPathFromMultiPath(o,0,!0);(0,i.g)(m.getFirstPath(u)!==ae.n),(0,i.g)(m.getFirstVertex(m.getFirstPath(u))!==ae.n);const c=new $.T;c.setShift(a.negate()),m.applyTransformation(c),this.m_bufferCommands.length=0;const l=m.getFirstPath(u),h=0!==this.m_joins&&m.getVertexDescription().hasAttribute(10);let f=m.getFirstVertex(l),g=m.getPrevVertex(f),_=m.getNextVertex(f),p=!0;const d=new $.P,y=new $.P,P=new $.P,x=new $.P,b=new $.P,C=new $.P,v=new $.P,G=new $.P,S=this.m_absDistance,D=m.getPathSize(l),w=new $.P(0,0);for(let e=0;e<D;e++){let t=!1;0!==e&&e!==s||(t=!0),y.assign(m.getXY(_)),p&&(d.assign(m.getXY(f)),P.assign(m.getXY(g)),C.setSub(d,P),C.normalize(),G.leftPerpendicularOther(C),G.scale(S),x.setAdd(G,d));const n=h&&!!(1&m.getAttributeAsDbl(10,f,0));b.setSub(y,d),b.normalize(),v.leftPerpendicularOther(b),v.scale(S);const r=new $.P;r.setAdd(d,v);const i=C.crossProduct(b),o=C.dotProduct(b);if(i<0||o<0&&i<Math.abs(o)*Number.EPSILON*8)if(t)if(0===this.m_caps)this.m_bufferCommands.push(pe(x,r,d,se.enumArc,this.m_bufferCommands.length+1));else if(1===this.m_caps)this.m_bufferCommands.push(pe(x,r,d,se.enumLine,this.m_bufferCommands.length+1));else{const e=b.mul(this.m_absDistance).negate(),t=e.clone();e.addThis(x),t.addThis(r),this.m_bufferCommands.push(pe(x,e,d,se.enumLine,this.m_bufferCommands.length+1)),this.m_bufferCommands.push(pe(e,t,d,se.enumLine,this.m_bufferCommands.length+1)),this.m_bufferCommands.push(pe(t,r,d,se.enumLine,this.m_bufferCommands.length+1))}else{let e=!1;const t=n?0:this.m_joins;if(1===t){const t=-i;w.setSub(C,b),w.scale(this.m_absDistance/t),w.length()<this.m_miterLimit*this.m_absDistance&&(w.addThis(d),e=!0),this.m_bufferCommands.push(pe(x,r,w,e?se.enumMiter:se.enumBevel,this.m_bufferCommands.length+1))}else this.m_bufferCommands.push(pe(x,r,d,0===t?se.enumArc:se.enumBevel,this.m_bufferCommands.length+1))}else x.equals(r)||(this.m_bufferCommands.push(de(x,d,this.m_bufferCommands.length+1)),this.m_bufferCommands.push(de(d,r,this.m_bufferCommands.length+1)));const a=new $.P;a.setAdd(y,v),this.m_bufferCommands.push(pe(r,a,d,se.enumLine,this.m_bufferCommands.length+1)),x.setCoordsPoint2D(a),G.setCoordsPoint2D(v),P.setCoordsPoint2D(d),d.setCoordsPoint2D(y),C.setCoordsPoint2D(b),g=f,f=_,p=!1,_=m.getNextVertex(f)}return this.m_bufferCommands.at(-1).m_next=0,this.processBufferCommands(n),c.setShift(a),n.applyTransformationToPath(c,n.getPathCount()-1),1}processBufferCommands(e){const t=this.cleanupBufferCommands();let n=!0,r=t+1;for(let s=t;r!==t;s=r){const t=this.m_bufferCommands[s];r=-1!==t.m_next?t.m_next:(s+1)%this.m_bufferCommands.length,t.m_type&&(n&&(e.startPath(t.m_from),n=!1),t.m_type&se.enumJoinMask?this.addJoin(t.m_type,e,t.m_center,t.m_from,t.m_to,!1,!0):e.lineTo(t.m_to))}}cleanupBufferCommands(){this.m_helperArray=(0,$.m)($.P,9);let e=0;for(let t=0,n=this.m_bufferCommands.length;t<n;){const n=this.m_bufferCommands[t];if(n.m_type&se.enumConnectionMask){e=t;break}t=n.m_next}let t=e+1;for(let n=e;t!==e;n=t){const e=this.m_bufferCommands[n];t=e.m_next;let r=1,s=null;for(;t!==n&&(s=this.m_bufferCommands[t],!(s.m_type&se.enumConnectionMask));)t=s.m_next,r++;1!==r&&(e.m_type&s.m_type)===se.enumLine&&(this.m_helperLine1.setStartXY(e.m_from),this.m_helperLine1.setEndXY(e.m_to),this.m_helperLine2.setStartXY(s.m_from),this.m_helperLine2.setEndXY(s.m_to),1===this.m_helperLine1.intersect(this.m_helperLine2,this.m_helperArray,null,null,this.m_smallTolerance.total())&&(e.m_to.assign(this.m_helperArray[0]),s.m_from.assign(this.m_helperArray[0]),e.m_next=t))}return e}isDegeneratePath(e,t){if(1===e.getPathSize(t))return!0;if(0===this.m_joins&&0===this.m_caps){const n=new ae.a;if(e.queryPathEnvelope(t,n),Math.max(n.width(),n.height())<.5*this.m_densifyDist)return!0}return!1}isDegenerateGeometry(e){if(0===this.m_joins&&0===this.m_caps){const t=new ae.a;if(e.queryEnvelope(t),Math.max(t.width(),t.height())<.5*this.m_densifyDist)return!0}return!1}addCircle(e,t){const n=t.getXY();if(0!==this.m_circleTemplate.length){let t=this.m_circleTemplate[0].clone();t.scaleAddThis(this.m_absDistance,n),e.startPath(t);for(let r=1,s=this.m_circleTemplate.length;r<s;r++)t=this.m_circleTemplate[r].clone(),t.scaleAddThis(this.m_absDistance,n),e.lineTo(t);return}const r=this.m_circleTemplateSize,s=Math.trunc((r+3)/4),i=.5*Math.PI/s;e.reserve(4*s);const o=Math.cos(i),a=Math.sin(i);for(let t=3;t>=0;t--){const r=$.P.construct(0,this.m_absDistance);switch(t){case 0:for(let t=0;t<s;t++)e.lineToCoords(r.x+n.x,r.y+n.y),r.rotateReverse(o,a);break;case 1:for(let t=0;t<s;t++)e.lineToCoords(-r.y+n.x,r.x+n.y),r.rotateReverse(o,a);break;case 2:for(let t=0;t<s;t++)e.lineToCoords(-r.x+n.x,-r.y+n.y),r.rotateReverse(o,a);break;default:e.startPathCoords(r.y+n.x,-r.x+n.y);for(let t=1;t<s;t++)r.rotateReverse(o,a),e.lineToCoords(r.y+n.x,-r.x+n.y)}this.progress_()}}addSquare(e,t){const n=new ae.E({vd:t.getDescription()});n.setCoords(t.getX(),t.getY(),t.getX(),t.getY()),n.inflateCoords(this.m_absDistance,this.m_absDistance),e.addEnvelope(n,!1)}setStrongSimple(e){return e.getImpl().setIsSimple(4,this.m_tolerance.total()),e.getImpl().updateOGCFlagsProtected(),e}}function ve(e){return(0,ae.N)(e,0),e}function Ge(e,t){return!!e.isEmpty()||Math.min(e.width(),e.height())>t}function Se(e,t,n,r,s,o,a,m){const u=e.getXY(n),c=e.getXY(r);if(u.equals(c))return-1;const l=.25*a,h=.25*a,f=new $.P;f.setSub(c,u);const g=f.length(),_=g*g*.25,p=o*o-_;if(p<=_)return-1;const d=Math.sqrt(p);f.normalize();const y=f.clone();y.rightPerpendicularThis();const P=_/d,x=P<=h,b=$.P.lerp(c,u,.5),C=y.clone(),v=P-l;C.scaleAddThis(Math.max(0,v),b),y.negate().scaleAddThis(d,b);const G=3.61*(0,$.e)(o-h),S=C.sub(u),D=C.sub(c);let w=!1,M=0;const T=(0,$.a)(64,0);(0,i.g)(m===T.length);{for(let i=e.getPrevVertexEx(r,s);i!==n;){if(1===e.getUserIndex(i,t))return-1;if(!e.getXY(i).equals(c))break;{const t=e.getPrevVertexEx(i,s);e.removeVertex(i,!1),i=t}}const o=new $.P,a=u.clone();T[M++]=1;for(let i=e.getNextVertexEx(n,s);i!==r;){if(1===e.getUserIndex(i,t))return-1;const n=e.getXY(i);if(n.equals(a)){const t=e.getNextVertexEx(i,s);e.removeVertex(i,!1),i=t;continue}T[M++]=0;const r=new $.P;if(r.setSub(n,u),r.dotProduct(y)<0)return 0;($.P.sqrDistance(n,u)>G||$.P.sqrDistance(n,c)>G)&&(w=!0);let m=0;if(n.sub(u).crossProduct(S)>=0&&(m=1),n.sub(c).crossProduct(D)<=0&&(m|=2),0===m)return 0;T[M-1]=m,o.assign(a),a.assign(n),i=e.getNextVertexEx(i,s)}if(1===M)return 0;(0,i.g)(M<T.length),T[M++]=2}let E=!0;for(let e=1,t=0;e<M;e++)if(T[e]!==T[e-1]&&(t++,E=t<3&&(1===t&&3===T[e]||2===t&&2===T[e]),!E))return 0;if(M>2&&E&&(3===M||!w)){let t=0,i=e.getNextVertexEx(n,s);for(x||(e.setXY(i,C),i=e.getNextVertexEx(i,s));i!==r;){const n=e.getNextVertexEx(i,s);e.removeVertex(i,!1),i=n,++t}return t}if((0,i.g)(3!==M),w&&M>3)return 0;const I=u.clone();let N=n;const R=u.clone();let A=1,q=-1,O=N,k=0;for(M=1;O!==r;){O=e.getNextVertexEx(O,s);const t=T[M++];if(0===t){if(O===r)break;continue}const n=e.getXY(O);if(-1!==q){if(q&A&t&3){e.removeVertex(N,!0),k++,N=O,R.setCoordsPoint2D(n),A=t;continue}if(3===A&&0!==q&&0!==t){if(R.setCoordsPoint2D(C),x||R.equals(I)){e.removeVertex(N,!0),k++,N=O,R.setCoordsPoint2D(n),A=t;continue}e.setXY(N,R)}}q=A,I.setCoordsPoint2D(R),N=O,A=t,R.setCoordsPoint2D(n)}return k}function De(e,t,n,r){for(let s=0,i=e.getPathCount();s<i;s++){const i=e.getXY(e.getPathStart(s));i.x!==n.xmin&&i.x!==n.xmax&&t.addPath(e,s,r)}}class we extends s.G{constructor(e,t,n,r,s,i,o){super(),this.m_currentUnionEnvelope2D=new ae.a,this.m_index=-1,this.m_dindex=-1,this.m_progressTracker=o,this.m_bufferer=new Ce(o),this.m_inputGeoms=e,this.m_spatialReference=t,this.m_distances=n,this.m_maxDeviation=r,this.m_maxVerticesInFullCircle=s}tock(){return!0}getRank(){return 1}next(){{let e;for(;e=this.m_inputGeoms.next();)return(0,i.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.buffer(e,this.m_distances[this.m_dindex]);return null}}getGeometryID(){return this.m_index}buffer(e,t){return this.m_bufferer.buffer(e,t,this.m_spatialReference,0,0,4,this.m_maxDeviation,this.m_maxVerticesInFullCircle)}}const Me=new class{getOperatorType(){return 10004}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r,s){return this.executeManyEx(e,t,n,Number.NaN,96,r,s)}execute(e,t,n,r){Number.isFinite(n)||(0,i.t)("Invalid distance for buffer operation");const o=new s.S([e]),a=[n],m=this.executeMany(o,t,a,!1,r).next();return m||(0,i.b)("null buffer output"),m}executeManyEx(e,t,n,r,s,o,a){if(void 0!==n.find((e=>!Number.isFinite(e)))&&(0,i.t)("Invalid distance for buffer operation"),o){const i=new we(e,t,n,r,s,!1,a);return(new oe.O).executeMany(i,t,a,2)}return new we(e,t,n,r,s,!1,a)}},Te=Me.supportsCurves(),Ee=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t,n={}){const{unit:r}=n,s=(0,m.getSpatialReference)(e);return r&&(t=(0,u.UW)(t,r,s)),(0,m.toPolygon)(function(e,t,n){return Me.execute(e,t,n,null)}((0,m.fromGeometry)(e),(0,m.fromSpatialReference)(s),t),s)},executeMany:function(e,t,n={}){let{maxDeviation:i=NaN,maxVerticesInFullCircle:o=96,union:a=!1,unit:c}=n;const l=(0,m.getSpatialReference)(e);return c&&(t=t.map((e=>(0,u.UW)(e,c,l))),i&&(i=(0,u.UW)(i,c,l))),function(e,t,n,r,i,o){const a=Me.executeManyEx(new s.S(e),t,n,r,i,o,null);return Array.from(a)}(e.map(m.fromGeometry),(0,m.fromSpatialReference)(l),t,i,o,a).map((e=>(0,m.toPolygon)(e,l))).filter(r.Ru)},supportsCurves:Te},Symbol.toStringTag,{value:"Module"}));function Ie(e,t){if(!e.isEmpty())switch(e.getGeometryType()){case i.G.enumPolygon:return function(e,t=-1){const n=new $.K(0),r=new $.K(0),s=e.getImpl();let i;const o=s.hasNonLinearSegments();let a;const m=s.getXY(0);if(-1===t){if(a=s.calculateArea2D(),0===a)return Ae(e);o&&(i=s.querySegmentIterator());for(let e=0,t=s.getPathCount();e<t;e++)Ne(m,s,e,n,r),o&&Re(m,i,n,r)}else{if(a=s.calculateRingArea2D(t),0===a)return Ae(e,t);o&&(i=s.querySegmentIterator(),i.resetToPath(t)),Ne(m,s,t,n,r),o&&Re(m,i,n,r)}const u=new $.P,c=new $.P;return u.setCoords(n.getResult(),r.getResult()),c.assign(u.mul(1/a).add(m)),c}(e);case i.G.enumPolyline:return qe(e.getImpl());case i.G.enumLine:case i.G.enumBezier:case i.G.enumEllipticArc:return function(e){const t=e.calculateLength2D();return 0===t?e.getStartXY():e.calculateWeightedCentroid2D().mul(1/t)}(e);case i.G.enumMultiPoint:return function(e){const t=new $.K(0),n=new $.K(0),r=e.getImpl(),s=r.getAttributeStreamRef(0),i=r.getPointCount(),o=new $.P;for(let e=0;e<i;e++)s.queryPoint2D(2*e,o),t.add(o.x),n.add(o.y);const a=new $.P;return a.setCoords(t.getResult(),n.getResult()),a.divThis(i)}(e);case i.G.enumEnvelope:return e.getCenterXY();case i.G.enumPoint:return e.getXY();default:return $.P.construct(Number.NaN,Number.NaN)}return $.P.construct(Number.NaN,Number.NaN)}function Ne(e,t,n,r,s){const i=t.getPathStart(n),o=t.getPathEnd(n);if(o-i<3)return;const a=t.getAttributeStreamRef(0),m=a.readPoint2D(2*i),u=a.readPoint2D(2*(i+1));u.subThis(m);const c=new $.K(0),l=t.hasNonLinearSegments(),h=1/3,f=new $.P;for(let e=i+2;e<o;e++){a.queryPoint2D(2*e,f),f.subThis(m);const t=.5*f.crossProduct(u);l&&c.add(t);const n=h*t;r.add((u.x+f.x)*n),s.add((u.y+f.y)*n),u.setCoordsPoint2D(f)}const g=l?c.getResult():t.calculateRingArea2D(n),_=m.sub(e).mul(g);r.add(_.x),s.add(_.y)}function Re(e,t,n,r){let s;for(t.nextPath()||(0,i.b)("centroid");null!==(s=t.nextCurve());){const t=s.calculateWeightedAreaCentroid2D(e);n.add(t.x),r.add(t.y)}}function Ae(e,t=-1){return qe(e.getImpl(),t)}function qe(e,t=-1){const n=-1===t?e.calculateLength2D():e.calculatePathLength2D(t);if(0===n)return function(e,t=-1){if(-1!==t)return e.getXY(e.getPathStart(t));const n=new $.K(0),r=new $.K(0);for(let t=0;t<e.getPathCount();++t){const s=e.getXY(e.getPathStart(t));n.add(s.x),r.add(s.y)}return $.P.construct(n.getResult(),r.getResult()).mul(1/e.getPathCount())}(e,t);const r=new $.K(0),s=new $.K(0),i=e.querySegmentIterator();for(-1!==t&&i.resetToPath(t);i.nextPath();){const n=i.getPathIndex(),o=e.getXY(e.getPathStart(n));for(;i.hasNextSegment();){const e=i.nextSegment(),t=e.calculateLength2D();if(0===t)continue;const n=e.calculateWeightedCentroid2D().sub(o.mul(t));r.add(n.x),s.add(n.y)}const a=o.mul(e.calculatePathLength2D(n));if(r.add(a.x),s.add(a.y),-1!==t)break}const o=new $.P;return o.setCoords(r.getResult(),s.getResult()),o.mul(1/n)}const Oe=new class{getOperatorType(){return 10205}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t){return Ie(e)}},ke=Oe.supportsCurves(),Ve=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e){const t=Oe.execute((0,m.fromGeometry)(e),null);return(0,m.toPoint)(t,(0,m.getSpatialReference)(e))},supportsCurves:ke},Symbol.toStringTag,{value:"Module"})),Ye=new(n(31139).O),Xe=Ye.supportsCurves(),Be=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t){const n=(0,m.getSpatialReference)(e),r=(0,m.fromExtent)(t).asEnvelope2D();return(0,m.toGeometry)(function(e,t,n){return Ye.execute(e,t,n,null)}((0,m.fromGeometry)(e),r,(0,m.fromSpatialReference)(n)),n)},executeMany:function(e,t){const n=e.map(m.fromGeometry),r=(0,m.getSpatialReference)(e);return function(e,t,n){const r=Ye.executeMany(new s.S(e),t,n,null);return Array.from(r)}(n,(0,m.fromExtent)(t).asEnvelope2D(),(0,m.fromSpatialReference)(r)).map((e=>(0,m.toGeometry)(e,r)))},supportsCurves:Xe},Symbol.toStringTag,{value:"Module"}));var je=n(9192);const ze=new je.O,Le=ze.supportsCurves(),Fe=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,m.getSpatialReference)(e);return ze.accelerateGeometry((0,m.fromGeometry)(e),(0,m.fromSpatialReference)(t),1)},execute:function(e,t){return ze.execute((0,m.fromGeometry)(e),(0,m.fromGeometry)(t),(0,m.fromSpatialReference)(e.spatialReference),null)},supportsCurves:Le},Symbol.toStringTag,{value:"Module"}));class Ue extends s.G{constructor(e,t,n){super(),t||(0,i.t)(""),this.m_progressTracker=n,this.m_index=-1,this.m_bMerge=e,this.m_bDone=!1,this.m_inputGeometryCursor=t}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}next(){if(this.m_bMerge){if(!this.m_bDone){const e=Ze(this.m_inputGeometryCursor);return this.m_bDone=!0,e}return null}if(!this.m_bDone){const e=this.m_inputGeometryCursor.next();if(null!==e)return(0,i.p)(e),(0,i.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),We(e);this.m_bDone=!0}return null}}function Ze(e,t){const n=new ae.X;let r;for(;r=e.next();)(0,i.p)(r),(0,i.c)(r),n.addGeometry(r);return n.getBoundingGeometry()}function We(e,t){if(e||(0,i.t)(""),(0,i.p)(e),(0,i.c)(e),e.isEmpty())return e.createInstance();const n=e.getGeometryType();if((0,i.e)(n)){const t=e;if(t.getStartXY().equals(t.getEndXY())){const e=new ae.P;return t.queryStart(e),e}{const n=new ae.P,r=new ae.i({vd:e.getDescription()});return t.queryStart(n),r.startPathPoint(n),t.queryEnd(n),r.lineToPoint(n),r}}if(n===i.G.enumEnvelope){const t=e,n=new ae.a;if(t.queryEnvelope(n),n.xmin===n.xmax&&n.ymin===n.ymax){const e=new ae.P;return t.queryCornerByVal(0,e),e}if(n.xmin===n.xmax||n.ymin===n.ymax){const n=new ae.P,r=new ae.i({vd:e.getDescription()});return t.queryCornerByVal(0,n),r.startPathPoint(n),t.queryCornerByVal(1,n),r.lineToPoint(n),r}{const n=new ae.h({vd:e.getDescription()});return n.addEnvelope(t,!1),n}}if(n===i.G.enumGeometryCollection)return Ze((0,ae.q)(e,-1));if(Je(e)){if(n===i.G.enumMultiPoint){const t=e,n=new ae.P;return t.getPointByVal(0,n),n}return e}return(0,ae.Y)(e)}function Je(e,t){if((0,i.p)(e),(0,i.c)(e),e.isEmpty())return!0;const n=e.getGeometryType();if(n===i.G.enumPoint)return!0;if(n===i.G.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if((0,i.e)(n)){const t=e;return!t.getStartXY().equals(t.getEndXY())}if(n===i.G.enumMultiPoint)return 1===e.getPointCount();if(n===i.G.enumPolyline){const t=e;return 1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(n===i.G.enumGeometryCollection){const t=e;return 1===t.getGeometryCount()&&Je(t.getGeometry(0))}const r=e;return!(1!==r.getPathCount()||r.getPointCount()<3)&&(0,ae.U)(r,0)}const Ke=new class{getOperatorType(){return 10102}supportsCurves(){return!1}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n){return new Ue(t,e,n)}execute(e,t){return We(e)}isConvex(e,t){if((0,i.p)(e),(0,i.c)(e),e.isEmpty())return!0;const n=e.getGeometryType();if(n===i.G.enumPoint)return!0;if(n===i.G.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if((0,i.e)(n)){const t=e;return!t.getStartXY().equals(t.getEndXY())}if(n===i.G.enumMultiPoint)return 1===e.getPointCount();if(n===i.G.enumPolyline){const t=e;return 1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(n===i.G.enumGeometryCollection){const n=e;return 1===n.getGeometryCount()&&this.isConvex(n.getGeometry(0),t)}const r=e;return!(1!==r.getPathCount()||r.getPointCount()<3)&&(0,ae.U)(r,0)}constructOrientedMinimumBoundingBox(e,t,n,r,s){(0,ae.W)(e,t,n,r,s)}},Qe=Ke.supportsCurves(),$e=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e){const t=(0,m.getSpatialReference)(e);return(0,m.toGeometry)((n=(0,m.fromGeometry)(e),Ke.execute(n,null)),t);var n},executeMany:function(e,t={}){const{merge:n=!1}=t,r=e.map(m.fromGeometry),i=(0,m.getSpatialReference)(e);return function(e,t){const n=Ke.executeMany(new s.S(e),t,null);return Array.from(n)}(r,n).map((e=>(0,m.toGeometry)(e,i)))},isConvex:function(e){return t=(0,m.fromGeometry)(e),Ke.isConvex(t,null);var t},supportsCurves:Qe},Symbol.toStringTag,{value:"Module"})),He=new(n(29821).O),et=He.supportsCurves(),tt=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,m.getSpatialReference)(e);return He.accelerateGeometry((0,m.fromGeometry)(e),(0,m.fromSpatialReference)(t),1)},execute:function(e,t){return He.execute((0,m.fromGeometry)(e),(0,m.fromGeometry)(t),(0,m.fromSpatialReference)(e.spatialReference),null)},supportsCurves:et},Symbol.toStringTag,{value:"Module"}));var nt=n(77592),rt=nt.C;function st(e,t){return{m_geometry:e,m_side:t}}class it extends s.G{constructor(e,t,n,r,s){super(),this.m_cutIndex=-1,this.m_cuts=[],this.m_progressTracker=s,this.m_cuttee=t.clone(),this.m_cutter=new ae.i({copy:n}),this.m_bConsiderTouch=e;const i=(0,ae.H)(t,n);this.m_tolerance=(0,ae.b)(r,i,!0)}next(){return-1===this.m_cutIndex&&this.generateCuts(),++this.m_cutIndex<this.m_cuts.length?this.m_cuts[this.m_cutIndex]:null}getGeometryID(){return 0}tock(){return!0}getRank(){return 1}generateCuts(){switch(this.m_cuttee.getGeometryType()){case i.G.enumPolyline:this.generatePolylineCuts();break;case i.G.enumPolygon:this.generatePolygonCuts()}}generatePolylineCuts(){const e=new ae.i,t=new ae.i,n=new ae.i;this.m_cuts.length=0,this.m_cuts.push(e),this.m_cuts.push(t);const r=[];!function(e,t,n,r,s,i){if(t.isEmpty()){const e=st(t,0);return void s.push(e)}if(n.isEmpty()){const e=st(t,0);return void s.push(e)}const o=[],a=new ae.d;{const m=a.createGeometryUserIndex(),u=a.addGeometry(t),c=a.addGeometry(n),l=new ce.T(i);let h=0,f=null;if(a.hasCurves()){f=new rt;const e=a.getEnvelope2D(i);h=(0,nt.s)(r.total());const t=(0,nt.d)(r.total(),e);(0,nt.b)(a,t,r.total(),12e3,f,null,i)}a.dbgVerifyCurves(),l.setEditShapeCrackAndCluster(a,r),l.cut(e,m,u,c,o);for(const e of o){null!==f&&f.stitchCurves(a,e,h,!1);const t=st(a.getGeometry(e),(0,ce.s)(a.getGeometryUserIndex(e,m)));s.push(t)}null!==f&&f.clearStitcher(a)}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let s=0;s<r.length;s++){const o=r[s];1===o.m_side?e.add(o.m_geometry,!1):2===o.m_side||4===o.m_side?t.add(o.m_geometry,!1):3===o.m_side?this.m_cuts.push(o.m_geometry):0===o.m_side?n.add(o.m_geometry,!1):(0,i.b)("")}n.isEmpty()||e.isEmpty()&&t.isEmpty()&&!(this.m_cuts.length>=3)||this.m_cuts.push(n),e.isEmpty()&&t.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}generatePolygonCuts(){const e=new ae.h,t=new ae.h,n=new ae.h;this.m_cuts.length=0,this.m_cuts.push(e),this.m_cuts.push(t);const r=[];!function(e,t,n,r,s,i){if(t.isEmpty()){const e=st(t,0);return void s.push(e)}if(n.isEmpty()){const e=st(t,0);return void s.push(e)}const o=[],a=new ae.d;{const e=a.createGeometryUserIndex(),m=a.addGeometry(t),u=a.addGeometry(n),c=new ce.T(i);let l=0,h=null;if(a.hasCurves()){h=new rt;const e=a.getEnvelope2D(i);l=(0,nt.s)(r.total());const t=(0,nt.d)(r.total(),e);(0,nt.b)(a,t,r.total(),12e3,h,null,i)}a.dbgVerifyCurves(),c.setEditShapeCrackAndCluster(a,r),c.cut(!1,e,m,u,o),null!==h&&h.stitchCurves(a,ae.n,l,!0);let f=a.getGeometry(m);const g=new ae.h,_=new ae.h,p=[];for(let t=0;t<o.length;t++){let n=null;{const s=new ae.d,m=s.addGeometry(f),u=s.addGeometry(a.getGeometry(o[t]));if(s.hasCurves()){const e=s.getEnvelope2D(i);l=(0,nt.s)(r.total());const t=(0,nt.d)(r.total(),e);(0,nt.b)(s,t,r.total(),12e3,h,null,i)}c.setEditShapeCrackAndCluster(s,r);const d=c.intersection(m,u);if(null!==h&&h.stitchCurves(s,ae.n,l,!0),n=s.getGeometry(d),n.isEmpty())continue;const y=a.getGeometryUserIndex(o[t],e);2===y?g.add(n,!1):1===y?_.add(n,!1):p.push(n)}{const e=new ae.d,n=e.addGeometry(f),s=e.addGeometry(a.getGeometry(o[t]));if(e.hasCurves()){const t=e.getEnvelope2D(i);l=(0,nt.s)(r.total());const n=(0,nt.d)(r.total(),t);(0,nt.b)(e,n,r.total(),12e3,h,null,i)}c.setEditShapeCrackAndCluster(e,r);const m=c.difference(n,s);null!==h&&h.stitchCurves(e,ae.n,l,!0),f=e.getGeometry(m)}}if(!f.isEmpty()&&o.length>0&&p.push(f),g.isEmpty()&&_.isEmpty())return;if(!g.isEmpty()){const e=st(g,1);s.push(e)}if(!_.isEmpty()){const e=st(_,2);s.push(e)}for(let e=0,t=p.length;e<t;++e){const t=st(p[e],3);s.push(t)}}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let s=0;s<r.length;s++){const o=r[s];1===o.m_side?e.add(o.m_geometry,!1):2===o.m_side?t.add(o.m_geometry,!1):3===o.m_side?this.m_cuts.push(o.m_geometry):0===o.m_side?n.add(o.m_geometry,!1):(0,i.b)("")}(0,i.g)(n.isEmpty()||1===r.length),e.isEmpty()&&t.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}}const ot=new class{getOperatorType(){return 10005}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t,n,r,s){return new it(e,t,n,r,s)}},at=ot.supportsCurves(),mt=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t){const n=(0,m.getSpatialReference)(e);return function(e,t,n){const r=ot.execute(!0,e,t,n,null);return Array.from(r)}((0,m.fromGeometry)(e),(0,m.fromPolyline)(t),(0,m.fromSpatialReference)(n)).map((e=>(0,m.toGeometry)(e,n))).filter(r.Ru)},supportsCurves:at},Symbol.toStringTag,{value:"Module"})),ut=new le.O,ct=ut.supportsCurves(),lt=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t,n={}){let{maxAngleInDegrees:r=0,maxDeviation:s=0,unit:i}=n;const o=(0,m.getSpatialReference)(e);return i&&(t=(0,u.UW)(t,i,o),s&&(s=(0,u.UW)(s,i,o))),(0,m.toGeometry)(function(e,t,n,r){return ut.execute(e,t,n,r,null)}((0,m.fromGeometry)(e),t,s,(0,H.kU)(r)),o)},executeMany:function(e,t,n={}){let{maxAngleInDegrees:i=0,maxDeviation:o=0,unit:a}=n;const c=e.map(m.fromGeometry),l=(0,m.getSpatialReference)(e);return a&&(t=(0,u.UW)(t,a,l),o&&(o=(0,u.UW)(o,a,l))),function(e,t,n,r){const i=ut.executeMany(new s.S(e),t,n,r,null);return Array.from(i)}(c,t,o,(0,H.kU)(i)).map((e=>(0,m.toGeometry)(e,l))).filter(r.Ru)},supportsCurves:ct},Symbol.toStringTag,{value:"Module"})),ht=new(n(31085).O),ft=ht.supportsCurves(),gt=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t){const n=(0,m.getSpatialReference)(e);return(0,m.toGeometry)(function(e,t,n){return ht.execute(e,t,n,null)}((0,m.fromGeometry)(e),(0,m.fromGeometry)(t),(0,m.fromSpatialReference)(n)),n)},executeMany:function(e,t){const n=e.map(m.fromGeometry),r=(0,m.getSpatialReference)(e);return function(e,t,n){const r=ht.executeMany(new s.S(e),new s.S([t]),n,null);return Array.from(r)}(n,(0,m.fromGeometry)(t),(0,m.fromSpatialReference)(r)).map((e=>(0,m.toGeometry)(e,r)))},supportsCurves:ft},Symbol.toStringTag,{value:"Module"})),_t=new je.a,pt=_t.supportsCurves(),dt=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,m.getSpatialReference)(e);return _t.accelerateGeometry((0,m.fromGeometry)(e),(0,m.fromSpatialReference)(t),1)},execute:function(e,t){return _t.execute((0,m.fromGeometry)(e),(0,m.fromGeometry)(t),(0,m.fromSpatialReference)(e.spatialReference))},supportsCurves:pt},Symbol.toStringTag,{value:"Module"}));var yt=n(22194);const Pt=new class{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){return this.executeEx(e,t,n,null,null,Number.NaN)}executeEx(e,t,n,r,s,o){if(e.isEmpty()||t.isEmpty())return Number.NaN;(0,i.c)(e),(0,i.c)(t);const a=e,m=t;Number.isNaN(o)&&(o=Number.POSITIVE_INFINITY);const u=new yt.D(o,n).calculate(a,m,r,s);return Number.isFinite(u)?u:Number.NaN}},xt=Pt.supportsCurves(),bt=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t,n={}){const{unit:r}=n;let s=Pt.execute((0,m.fromGeometry)(e),(0,m.fromGeometry)(t),null);if(s&&r){const t=(0,m.getSpatialReference)(e);s=(0,u.PQ)(s,t,r)}return s},supportsCurves:xt},Symbol.toStringTag,{value:"Module"}));class Ct extends je.d{getOperatorType(){return 2}execute(e,t,n,r){return(0,je.r)(e,t,n,3,r)}}const vt=new Ct,Gt=vt.supportsCurves(),St=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,m.getSpatialReference)(e);return vt.accelerateGeometry((0,m.fromGeometry)(e),(0,m.fromSpatialReference)(t),1)},execute:function(e,t){return vt.execute((0,m.fromGeometry)(e),(0,m.fromGeometry)(t),(0,m.fromSpatialReference)(e.spatialReference),null)},supportsCurves:Gt},Symbol.toStringTag,{value:"Module"})),Dt=new he,wt=Dt.supportsCurves(),Mt=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t,n={}){const{removeDegenerateParts:r=!1,unit:s}=n,i=(0,m.getSpatialReference)(e);return s&&(t=(0,u.UW)(t,s,i)),(0,m.toGeometry)(function(e,t,n){return Dt.execute(e,t,n,null)}((0,m.fromGeometry)(e),t,r),i)},executeMany:function(e,t,n={}){const{removeDegenerateParts:i=!1,unit:o}=n,a=e.map(m.fromGeometry),c=(0,m.getSpatialReference)(e);return o&&(t=(0,u.UW)(t,o,c)),function(e,t,n){const r=Dt.executeMany(new s.S(e),t,n,null);return Array.from(r)}(a,t,i).map((e=>(0,m.toGeometry)(e,c))).filter(r.Ru)},supportsCurves:wt},Symbol.toStringTag,{value:"Module"})),Tt=new(n(32932).O),Et=Tt.supportsCurves(),It=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,m.getSpatialReference)(e);return function(e,t){return Tt.accelerateGeometry(e,t,1)}((0,m.fromGeometry)(e),(0,m.fromSpatialReference)(t))},execute:function(e,t){const n=(0,m.getSpatialReference)(e);return(0,m.toGeometry)(function(e,t,n){return Tt.execute(e,t,n,null)}((0,m.fromGeometry)(e),(0,m.fromGeometry)(t),(0,m.fromSpatialReference)(n)),n)},executeMany:function(e,t){const n=e.map(m.fromGeometry),i=(0,m.getSpatialReference)(e);return function(e,t,n){const r=Tt.executeMany(new s.S(e),new s.S([t]),n,null,7);return Array.from(r)}(n,(0,m.fromGeometry)(t),(0,m.fromSpatialReference)(i)).map((e=>(0,m.toGeometry)(e,i))).filter(r.Ru)},supportsCurves:Et},Symbol.toStringTag,{value:"Module"})),Nt=new(n(70031).O),Rt=Nt.supportsCurves(),At=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,m.getSpatialReference)(e);return Nt.accelerateGeometry((0,m.fromGeometry)(e),(0,m.fromSpatialReference)(t),1)},execute:function(e,t){return Nt.execute((0,m.fromGeometry)(e),(0,m.fromGeometry)(t),(0,m.fromSpatialReference)(e.spatialReference),null)},supportsCurves:Rt},Symbol.toStringTag,{value:"Module"})),qt=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t={}){const{unit:n}=t;let r=(0,m.fromGeometry)(e).calculateLength2D();if(r&&n){const t=(0,m.getSpatialReference)(e);r=(0,u.PQ)(r,t,n)}return r},supportsCurves:!0},Symbol.toStringTag,{value:"Module"})),Ot=1.4142135623730951,kt=.017453292519943295,Vt=256,Yt=1024;class Xt{static construct(e,t,n){const r=new Xt;return r.x=e.x,r.y=e.y,r.m_next=-1,r.m_prev=-1,r.z=t,r.m=n,r.type=0,r}clone(){const e=new Xt;return e.x=this.x,e.y=this.y,e.m_next=this.m_next,e.m_prev=this.m_prev,e.z=this.z,e.m=this.m,e.type=this.type,e}asPoint2D(){return new $.P(this.x,this.y)}}class Bt{constructor(e){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=e}constructOffset(){const e=this.m_inputGeometry.getGeometryType();if(e===i.G.enumLine)return this.offsetLine();if(e===i.G.enumEnvelope)return this.offsetEnvelope();if((0,i.e)(e)){const e=new ae.i;return e.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=e,this.constructOffset()}if(e===i.G.enumPolyline){const e=new ae.i;return this.offsetMultiPath(e),e}if(e===i.G.enumPolygon){const e=new ae.h;return this.offsetMultiPath(e),e}(0,i.a)("")}offsetLine(){const e=this.m_inputGeometry,t=e.getStartXY(),n=e.getEndXY(),r=new $.P;r.setSub(n,t),r.normalize(),r.leftPerpendicularThis(),r.scale(this.m_distance),t.addThis(r),n.addThis(r);const s=e.clone();return s.setStartXY(t),s.setEndXY(n),s}offsetEnvelope(){const e=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const t=new ae.h;return t.addEnvelope(e,!1),this.m_inputGeometry=t,this.constructOffset()}const t=e.clone();return t.inflateCoords(this.m_distance,this.m_distance),t}progress(){}static buildPoint(e,t,n,r){r.x=e.x+t*Math.cos(n),r.y=e.y+t*Math.sin(n),r.type=e.type,r.z=e.z,r.m=e.m,r.m_next=-1,r.m_prev=-1}addPoint(e){this.m_offsetPts.push(e.clone()),this.m_offsetPtCount++}addPointEx(e,t){if(0===this.m_offsetPtCount)return void this.addPoint(e);const n=this.m_srcPtCount,r=this.m_srcPts[0===t?n-1:t-1],s=this.m_srcPts[t],i=Bt.dotSign(r,s,this.m_offsetPts[this.m_offsetPtCount-1],e);if(i>0)this.addPoint(e);else if(i<0)if(Bt.dotSign(r,s,s,this.m_offsetPts[this.m_offsetPtCount-1])>0){const s=new Xt;let i;i=0===t?n-2:1===t?n-1:t-2;const o=this.m_srcPts[i],a=Math.atan2(r.y-o.y,r.x-o.x);if(Bt.buildPoint(r,this.m_distance,a-$.q,s),this.m_offsetPts[this.m_offsetPtCount-1]=s,1===this.m_joins||2===this.m_joins){s.x=.5*(s.x+r.x),s.y=.5*(s.y+r.y),this.addPoint(s),Bt.buildPoint(r,this.m_distance,this.m_a1+$.q,s);const e=s.clone();e.x=.5*(e.x+r.x),e.y=.5*(e.y+r.y),e.type|=Vt,this.addPoint(e),this.addPoint(s)}else Bt.buildPoint(r,this.m_distance,this.m_a1+$.q,s),s.type|=Vt,this.addPoint(s);this.addPointEx(e,t)}else{const e=new Xt;if(Bt.buildPoint(s,this.m_distance,this.m_a1+$.q,e),this.addPoint(e),1===this.m_joins||2===this.m_joins){e.x=.5*(e.x+s.x),e.y=.5*(e.y+s.y),this.addPoint(e),Bt.buildPoint(s,this.m_distance,this.m_a2-$.q,e);const t=e.clone();t.x=.5*(t.x+s.x),t.y=.5*(t.y+s.y),t.type|=Vt,this.addPoint(t),this.addPoint(e)}else Bt.buildPoint(s,this.m_distance,this.m_a2-$.q,e),e.type|=Vt,this.addPoint(e)}}buildOffset(){const e=new Xt,t=this.m_srcPtCount;this.m_offsetPtCount=0;const n=.5*this.m_tolerance;let r=0,s=0;for(let i=0;i<t;i++){const o=this.m_srcPts[i],a=0===i?this.m_srcPts[t-1]:this.m_srcPts[i-1],m=i===t-1?this.m_srcPts[0]:this.m_srcPts[i+1];let u,c,l=0;{const e=a.x-o.x,t=a.y-o.y,n=m.x-o.x,h=m.y-o.y;u=Math.atan2(t,e),c=Math.atan2(h,n),this.m_a1=u,this.m_a2=c,0===i&&(r=u,s=c),l=$.P.orientationRobust(o.asPoint2D(),a.asPoint2D(),m.asPoint2D())}const h=c;if(c<u&&(c+=$.p),l*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){Bt.buildPoint(o,this.m_distance,u+$.q,e),this.addPoint(e);const t=.001;e.x=o.x+(e.x-o.x)*t,e.y=o.y+(e.y-o.y)*t,this.addPoint(e),Bt.buildPoint(o,this.m_distance,c-$.q,e);const n=e.clone();n.x=o.x+(n.x-o.x)*t,n.y=o.y+(n.y-o.y)*t,n.type|=Vt,this.addPoint(n),this.addPoint(e)}else{const t=.5*(c-u),n=0===t?this.m_distance:this.m_distance/Math.abs(Math.sin(t));Bt.buildPoint(o,n,.5*(u+c),e),this.addPointEx(e,i)}else if(512&o.type){const t=1-n/Math.abs(this.m_distance);let r=1,s=this.m_distance<0?-Math.PI:Math.PI;if(t>-1&&t<1){let e=2*Math.acos(t);e<kt&&(e=kt),r=Math.trunc(Math.PI/e+1.5),r>1&&(s/=r)}r<=1&&(r=2,s/=2);let a=u+$.q;Bt.buildPoint(o,this.m_distance,a,e),0===i&&(e.type|=Yt),this.addPointEx(e,i);const m=this.m_distance/Math.cos(s/2);for(a+=s/2,Bt.buildPoint(o,m,a,e),e.type|=Yt,this.addPoint(e);--r>0;)a+=s,Bt.buildPoint(o,m,a,e),e.type|=Yt,this.addPoint(e);Bt.buildPoint(o,this.m_distance,c-$.q,e),e.type|=Yt,this.addPoint(e)}else if(1!==this.m_joins)if(0!==this.m_joins)if(2!==this.m_joins){let t;if(c=h,this.m_distance>0?(c>u&&(c-=$.p),t=u-c<$.q):(c<u&&(c+=$.p),t=c-u<$.q),t){const t=this.m_distance*Ot;let n;n=t<0?u+.25*Math.PI:u+3*Math.PI*.25,Bt.buildPoint(o,t,n,e),this.addPointEx(e,i),n=t<0?c-.25*Math.PI:c-3*Math.PI*.25,Bt.buildPoint(o,t,n,e),this.addPoint(e)}else{const t=.5*(c-u),n=this.m_distance/Math.abs(Math.sin(t));c<u&&(c+=$.p),Bt.buildPoint(o,n,(u+c)/2,e),this.addPointEx(e,i)}}else{const t=a.x-o.x,n=a.y-o.y,r=m.x-o.x,s=m.y-o.y,l=(t*r+n*s)/Math.sqrt(t*t+n*n)/Math.sqrt(r*r+s*s);if(l>1-1e-8){Bt.buildPoint(o,Ot*this.m_distance,c-.25*Math.PI,e),this.addPointEx(e,i),Bt.buildPoint(o,Ot*this.m_distance,c+.25*Math.PI,e),this.addPoint(e);continue}const h=Math.abs(this.m_distance/Math.sin(.5*Math.acos(l))),f=Math.abs(this.m_miterLimit*this.m_distance);if(h>f){const t=.5*(c-u),n=this.m_distance/Math.abs(Math.sin(t));Bt.buildPoint(o,n,.5*(u+c),e);const r=$.P.construct(e.x,e.y),s=$.P.construct(o.x,o.y),a=new $.P;a.setSub(r,s);const m=new $.P;m.setScaleAdd(f/a.length(),a,s);const l=Math.sqrt(h*h-this.m_distance*this.m_distance),g=(h-f)*Math.abs(this.m_distance)/l;this.m_distance>0?a.leftPerpendicularThis():a.rightPerpendicularThis(),a.scale(g/a.length());const _=new $.P;_.setAdd(m,a);const p=new $.P;p.setSub(m,a),e.x=_.x,e.y=_.y,this.addPointEx(e,i),e.x=p.x,e.y=p.y,this.addPoint(e);continue}const g=.5*(c-u),_=this.m_distance/Math.abs(Math.sin(g));Bt.buildPoint(o,_,.5*(u+c),e),this.addPointEx(e,i)}else{const t=1-n/Math.abs(this.m_distance);let r=1,s=c-$.q-(u+$.q);if(t>-1&&t<1){let e=2*Math.acos(t);e<kt&&(e=kt),r=Math.trunc(Math.abs(s)/e+1.5),r>1&&(s/=r)}const a=this.m_distance/Math.cos(.5*s);let m=u+$.q+.5*s;for(Bt.buildPoint(o,a,m,e),this.addPointEx(e,i);--r>0;)m+=s,Bt.buildPoint(o,a,m,e),this.addPoint(e)}else Bt.buildPoint(o,this.m_distance,u+$.q,e),this.addPointEx(e,i),Bt.buildPoint(o,this.m_distance,c-$.q,e),this.addPoint(e)}return this.m_a1=r,this.m_a2=s,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){let e=!1;for(let e=0;e<this.m_offsetPtCount;e++){const t=this.m_offsetPts[e];t.m_next=e+1,t.m_prev=e-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let t=0;for(let n=0;n<this.m_offsetPtCount;n++)if(this.m_offsetPts[t].type&Vt){const n=this.deleteClosedSeg(t);if(-1===n){e=!0;break}t=n}else t=this.m_offsetPts[t].m_next;return!e&&(this.compressOffsetArray(t),!0)}deleteClosedSeg(e){const t=this.m_offsetPtCount-1;let n,r,s=e;for(let i=1;i<=t-2;i++){s=this.m_offsetPts[s].m_next,n=s,r=e;for(let e=1;e<=i;e++){if(r=this.m_offsetPts[r].m_prev,!(this.m_offsetPts[r].type&Vt||this.m_offsetPts[n].type&Vt)){const e=this.handleClosedIntersection(r,n);if(-1!==e)return e}n=this.m_offsetPts[n].m_prev}}return-1}handleClosedIntersection(e,t){const n=this.m_offsetPts[this.m_offsetPts[e].m_prev],r=this.m_offsetPts[e],s=this.m_offsetPts[this.m_offsetPts[t].m_prev],i=this.m_offsetPts[t];if(!this.sectGraphicRect(n,r,s,i))return-1;const o={pt:new Xt,bAtExistingPt:!1};if(((r.x-n.x)*(i.y-s.y)-(r.y-n.y)*(i.x-s.x))*this.m_distance<0&&this.findIntersection(n,r,s,i,o)&&!o.bAtExistingPt){const a=1e-8,m=Math.sqrt((r.x-n.x)*(r.x-n.x)+(r.y-n.y)*(r.y-n.y)),u=(r.x-n.x)/m,c=(r.y-n.y)/m,l=Math.sqrt((i.x-s.x)*(i.x-s.x)+(i.y-s.y)*(i.y-s.y)),h=(i.x-s.x)/l,f=(i.y-s.y)/l;let g=!1;const _=o.pt.clone();_.x+=(u+h)*a,_.y+=(c+f)*a;let p=s,d=o.pt,y=this.m_offsetPts[e].m_prev;for(;d.y>_.y!=p.y>_.y&&_.x<(p.x-d.x)*(_.y-d.y)/(p.y-d.y)+d.x&&(g=!g),p=d,y=this.m_offsetPts[y].m_next,y!==t;)d=this.m_offsetPts[y];if(g)return-1;const P=this.m_offsetPts[e].m_prev;return o.pt.type=r.type,o.pt.m_next=t,o.pt.m_prev=P,this.m_offsetPts[e]=o.pt,this.m_offsetPts[t].m_prev=e,t}return-1}sectGraphicRect(e,t,n,r){return Math.max(e.x,t.x)>=Math.min(n.x,r.x)&&Math.max(n.x,r.x)>=Math.min(e.x,t.x)&&Math.max(e.y,t.y)>=Math.min(n.y,r.y)&&Math.max(n.y,r.y)>=Math.min(e.y,t.y)}findIntersection(e,t,n,r,s){let i,o,a,m;return s.bAtExistingPt=!1,i=(t.y-e.y)*(r.x-n.x)-(t.x-e.x)*(r.y-n.y),o=(n.y-e.y)*(t.x-e.x)-(n.x-e.x)*(t.y-e.y),a=0===i?2:o/i,a>=0&&a<=1&&(m=a,i=(r.y-n.y)*(t.x-e.x)-(r.x-n.x)*(t.y-e.y),o=(e.y-n.y)*(r.x-n.x)-(e.x-n.x)*(r.y-n.y),a=0===i?2:o/i,a>=0&&a<=1)&&(s.pt.x=e.x+a*(t.x-e.x),s.pt.y=e.y+a*(t.y-e.y),this.m_bUseZ&&(s.pt.z=n.z+m*(r.z-n.z)),this.m_bUseM&&(s.pt.m=n.m+m*(r.m-n.m)),0!==m&&1!==m||0!==a&&1!==a||(s.bAtExistingPt=!0),!((0===m||1===m)&&a>0&&a<1||(0===a||1===a)&&m>0&&m<1))}compressOffsetArray(e){for(;this.m_offsetPts[e].m_prev<e;)e=this.m_offsetPts[e].m_prev;let t=0,n=e;do{const e=this.m_offsetPts[n].clone();this.m_offsetPts[t]=e,n=e.m_next,t++}while(n!==e);this.m_offsetPts[t]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=t+1}addPart(e,t){if(!(t<2))for(let n=0;n<t;n++){const t=this.m_offsetPts[e+n];if(n?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(t.x,t.y,t.z):this.m_resultPath.lineToCoords(t.x,t.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(t.x,t.y,t.z):this.m_resultPath.startPathCoords(t.x,t.y),this.m_bUseM){const e=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,e,0,t.m)}}}offsetMultiPath(e){const t=(0,ae.e)(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),n=t.querySegmentIterator();n.resetToFirstPath();let r=-1;for(;n.nextPath();)r++,this.offsetPath(t,r,e)}offsetPath(e,t,n){let r=e.getPathStart(t),s=e.getPathEnd(t);if(this.m_resultPath=n,e.isClosedPath(t)){const t=e.getXY(r);for(;s>r&&e.getXY(s-1).equals(t);)s--;if(s-r>=2){this.m_srcPtCount=s-r,this.m_srcPts.length=this.m_srcPtCount;for(let t=r;t<s;t++)this.progress(),this.m_srcPts[t-r]=Xt.construct(e.getXY(t),this.m_bUseZ?e.getAttributeAsDbl(1,t,0):0,this.m_bUseM?e.getAttributeAsDbl(2,t,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1)}}else{const t=e.getXY(r);for(;r<s-1&&e.getXY(r+1).equals(t);)r++;const n=e.getXY(s-1);for(;r<s-1&&e.getXY(s-2).equals(n);)s--;if(s-r>=2){this.m_srcPtCount=2*(s-r)-2,this.m_srcPts.length=this.m_srcPtCount;let n=Xt.construct(t,this.m_bUseZ?e.getAttributeAsDbl(1,r,0):0,this.m_bUseM?e.getAttributeAsDbl(2,r,0):0);n.type|=1536,this.m_srcPts[0]=n;let i=1,o=this.m_srcPtCount-1;for(let t=r+1;t<s-1;t++,i++,o--)this.progress(),n=Xt.construct(e.getXY(t),this.m_bUseZ?e.getAttributeAsDbl(1,t,0):0,this.m_bUseM?e.getAttributeAsDbl(2,t,0):0),this.m_srcPts[i]=n.clone(),n.type|=Yt,this.m_srcPts[o]=n.clone();if(n=Xt.construct(e.getXY(s-1),this.m_bUseZ?e.getAttributeAsDbl(1,s-1,0):0,this.m_bUseM?e.getAttributeAsDbl(2,s-1,0):0),n.type|=512,this.m_srcPts[i]=n.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let e=-1,t=-1,n=!!(this.m_offsetPts[this.m_offsetPtCount-1].type&Yt);n||(e=0);for(let r=1;r<this.m_offsetPtCount;r++){this.progress();const s=!!(this.m_offsetPts[r].type&Yt);s?n||(t=r-1,t-e+1>1&&this.addPart(e,t-e+1)):n&&(e=r-1),n=s}n||(t=this.m_offsetPtCount-1,t-e+1>1&&this.addPart(e,t-e+1))}else{const e=0,t=this.m_offsetPtCount-1;t-e>=1&&this.addPart(e,t-e+1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(e,t,n,r){const s=t.x-e.x,i=t.y-e.y,o=r.x-n.x,a=r.y-n.y,m=(0,$.u)(s,i,o,a);return(0,$.s)(m)}}class jt extends s.G{constructor(e,t,n,r,s,i,o){super(),this.m_progressTracker=o,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=t,this.m_distance=n,this.m_joins=r,this.m_miterLimit=s,this.m_flattenError=i}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let e;for(;e=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(e);return null}getGeometryID(){return this.m_index}offset(e){let t;return(0,i.c)(e),t=this.m_flattenError<=0?(0,ae.u)(this.m_spatialReference,e,!0).total():this.m_flattenError,function(e,t,n,r,s,o){if(null===e&&(0,i.t)(""),e.getDimension()<1&&(0,i.t)(""),s>0||(0,i.t)(""),(0,i.c)(e),0===t||e.isEmpty())return e;const a=new Bt(o);return a.m_bUseZ=e.hasAttribute(1),a.m_bUseM=e.hasAttribute(2),a.m_inputGeometry=e,a.m_distance=t,a.m_tolerance=s,a.m_joins=n,a.m_miterLimit=r>1?r:1,a.m_progressCounter=0,a.constructOffset()}(e,this.m_distance,this.m_joins,this.m_miterLimit,t,this.m_progressTracker)}}const zt=new class{getOperatorType(){return 10108}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,t,n,r,s,i,o){return new jt(e,t,n,r,s,i,o)}execute(e,t,n,r,s,i,o){return new jt(null,t,n,r,s,i,o).offset(e)}},Lt={round:0,bevel:1,miter:2,square:3},Ft=zt.supportsCurves(),Ut=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t,n={}){const{miterLimit:r=10,flattenError:s=0,joins:i="round",unit:o}=n,a=(0,m.getSpatialReference)(e);return o&&(t=(0,u.UW)(t,o,a)),(0,m.toGeometry)(function(e,t,n,r,s,i){return zt.execute(e,t,n,r,s,i,null)}((0,m.fromGeometry)(e),(0,m.fromSpatialReference)(a),t,Lt[i],r,s),a)},executeMany:function(e,t,n={}){const{miterLimit:i=10,flattenError:o=0,joins:a="round",unit:c}=n,l=(0,m.getSpatialReference)(e);return c&&(t=(0,u.UW)(t,c,l)),function(e,t,n,r,i,o){const a=zt.executeMany(new s.S(e),t,n,r,i,o,null);return Array.from(a)}(e.map(m.fromGeometry),(0,m.fromSpatialReference)(l),t,Lt[a],i,o).map((e=>(0,m.toGeometry)(e,l))).filter(r.Ru)},supportsCurves:Ft},Symbol.toStringTag,{value:"Module"})),Zt=new(n(85181).O),Wt=Zt.supportsCurves(),Jt=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,m.getSpatialReference)(e);return Zt.accelerateGeometry((0,m.fromGeometry)(e),(0,m.fromSpatialReference)(t),1)},execute:function(e,t){return Zt.execute((0,m.fromGeometry)(e),(0,m.fromGeometry)(t),(0,m.fromSpatialReference)(e.spatialReference),null)},supportsCurves:Wt},Symbol.toStringTag,{value:"Module"}));function Kt(){return Qt(new $.P,-1,Number.NaN)}function Qt(e,t,n){return{m_coordinate:e.clone(),m_vertexIndex:t,m_geometryIndex:0,m_distance:n,m_bRightSide:!1,isEmpty:$t}}function $t(){return Number.isNaN(this.m_distance)}function Ht(e,t,n=-1,r=-1){if(e.isEmpty())return 3;const s=e.getGeometryType();if((0,i.e)(s))return function(e,t,n,r){if(n>=0||r>=0)return(0,i.t)("");if(e.isDegenerate(0))return e.getStartXY().equals(t)?2:3;if(!e.isCurve()){const n=$.P.orientationRobust(t,e.getStartXY(),e.getEndXY());return n<0?1:n>0?0:2}const s=e.getClosestCoordinate(t,!1),o=e.getTangent(s),a=e.getCoord2D(s),m=$.P.orientationRobust(t,a,a.add(o));return m<0?1:m>0?0:2}(e,t,n,r);if(s===i.G.enumPolygon)return function(e,t,n,r){(n>=0||r>=0)&&(0,i.t)("");const s=new ae.a;e.queryEnvelope(s);const o=(0,nt.i)(e,t,0);return 0===o?0:1===o?1:2}(e,t,n,r);if(s===i.G.enumPolyline)return function(e,t,n,r){(n<0&&r>=0||n>=0&&r<0)&&(0,i.t)("");const s=e.querySegmentIterator();if(n<0){let e=Number.MAX_VALUE,i=0;for(;s.nextPath();)for(;s.hasNextSegment();){const o=s.nextSegment(),a=o.getClosestCoordinate(t,!1),m=o.getCoord2D(a),u=$.P.sqrDistance(m,t);u<e?(i=1,n=s.getStartPointIndex(),r=s.getPathIndex(),e=u):u===e&&i++}if(0===i)return 3;if(1===i)return s.resetToVertex(n,r),Ht(s.nextSegment(),t)}const o=function(e,t,n,r){const s={i1:-1,i2:-1,bRight1:!1,bRight2:!1};if(s.i1=function(e,t,n){for(e.resetToVertex(t,n);e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();for(e.resetToVertex(t,n);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,n,r),-1!==s.i1){t.resetToVertex(s.i1,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r),o=$.P.sqrDistance(i,e);{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),s.bRight1=t.crossProduct(r)<0}if(s.i2=function(e,t){for(e.resetToVertex(t,-1),e.nextSegment();e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,s.i1),-1!==s.i2){t.resetToVertex(s.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if($.P.sqrDistance(i,e)>o)s.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),s.bRight2=t.crossProduct(r)<0}}if(-1===s.i2&&(s.i2=function(e,t){for(e.resetToVertex(t,-1);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,s.i1),-1!==s.i2)){t.resetToVertex(s.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if($.P.sqrDistance(i,e)>o)s.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),s.bRight2=t.crossProduct(r)<0;const o=s.i1;s.i1=s.i2,s.i2=o;const a=s.bRight1;s.bRight1=s.bRight2,s.bRight2=a}}}return s}(t,s,n,r);if(-1!==o.i1&&-1===o.i2)return o.bRight1?1:0;if(-1!==o.i1&&-1!==o.i2){if(o.bRight1===o.bRight2)return o.bRight1?1:0;{s.resetToVertex(o.i1,-1);const e=s.nextSegment().getTangent(1);s.resetToVertex(o.i2,-1);const t=s.nextSegment().getTangent(0);return e.crossProduct(t)>=0?1:0}}return s.resetToVertex(n,r),Ht(s.nextSegment(),t)}(e,t,n,r);if(s===i.G.enumEnvelope){const n=new ae.a;return e.queryEnvelope(n),n.contains(t)?n.containsExclusive(t)?1:2:0}return 3}function en(e,t,n=!1){const r=(0,m.toPoint)(e.m_coordinate,(0,m.getSpatialReference)(t)),s=e.m_distance,i=e.isEmpty(),o=e.m_bRightSide;return{coordinate:r,distance:s,isEmpty:i,...n&&{isRightSide:o},vertexIndex:e.m_vertexIndex}}const tn=new class{getOperatorType(){return 10500}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}getNearestCoordinate(e,t,n,r){if(t.isNAN()&&(0,i.t)("NAN xy coordinates are not allowed"),e.isEmpty())return Kt();switch(e.getGeometryType()){case i.G.enumPoint:return this.pointGetNearestVertex(e,t);case i.G.enumMultiPoint:return this.multiVertexGetNearestVertex(e,t);case i.G.enumPolyline:case i.G.enumPolygon:return this.multiPathGetNearestCoordinate(e,t,n,r);default:(0,i.a)("")}}getNearestVertex(e,t){if(t.isNAN()&&(0,i.t)("NAN xy coordinates are not allowed"),e.isEmpty())return Kt();switch(e.getGeometryType()){case i.G.enumPoint:return this.pointGetNearestVertex(e,t);case i.G.enumMultiPoint:case i.G.enumPolyline:case i.G.enumPolygon:return this.multiVertexGetNearestVertex(e,t);default:(0,i.a)("")}}getNearestVertices(e,t,n,r){if(0===r&&(0,i.t)(""),t.isNAN()&&(0,i.t)("NAN xy coordinates are not allowed"),e.isEmpty())return[];switch(e.getGeometryType()){case i.G.enumPoint:return this.pointGetNearestVertices(e,t,n,r);case i.G.enumMultiPoint:case i.G.enumPolyline:case i.G.enumPolygon:return this.multiVertexGetNearestVertices(e,t,n,r);default:(0,i.a)("")}}multiPathGetNearestCoordinate(e,t,n,r){if(e.getGeometryType()===i.G.enumPolygon&&n){const n=new ae.a;e.queryEnvelope(n);const s=(0,ae.c)(null,n,!1);let i;if(i=(0,nt.i)(e,t,r?0:s),0!==i){const e=Qt(t,-1,0);return r&&(e.m_bRightSide=!0),e}}const s=e.querySegmentIterator(),o=new $.P;let a=-1,m=-1,u=Number.MAX_VALUE,c=0;for(;s.nextPath();)for(;s.hasNextSegment();){const e=s.nextSegment(),n=e.getClosestCoordinate(t,!1),r=e.getCoord2D(n),i=$.P.sqrDistance(r,t);i<u?(c=1,o.assign(r),a=s.getStartPointIndex(),m=s.getPathIndex(),u=i):i===u&&c++}-1===a&&(0,i.t)("");const l=Qt(o,a,Math.sqrt(u));if(r)if(e.getGeometryType()!==i.G.enumPolygon){let n=!1;if(c>1){const r=Ht(e,t,a,m);n=0!==r&&3!==r}else s.resetToVertex(a,m),n=0!==Ht(s.nextSegment(),t);l.m_bRightSide=n}else n||0!==(0,nt.i)(e,t,0)&&(l.m_bRightSide=!0);return l}pointGetNearestVertex(e,t){const n=e.getXY();return Qt(n,0,$.P.distance(n,t))}multiVertexGetNearestVertex(e,t){const n=e.getAttributeStreamRef(0),r=e.getPointCount();let s=-1;const i=new $.P;let o=Number.MAX_VALUE;const a=new $.P;for(let e=0;e<r;e++){n.queryPoint2D(2*e,a);const r=$.P.sqrDistance(a,t);r<o&&(i.assign(a),s=e,o=r)}return Qt(i,s,Math.sqrt(o))}pointGetNearestVertices(e,t,n,r){const s=[];if(0!==r){const r=n*n,i=e.getXY(),o=$.P.sqrDistance(i,t);o<=r&&s.push(Qt(i,0,Math.sqrt(o)))}return s}multiVertexGetNearestVertices(e,t,n,r){const s=[];if(0!==r){const i=e.getAttributeStreamRef(0),o=e.getPointCount();s.length=r+1;const a=n*n;for(let e=0;e<o;e++){const n=i.read(2*e),r=i.read(2*e+1),o=t.x-n,m=t.y-r,u=o*o+m*m;u<=a&&s.push(Qt($.P.construct(n,r),e,Math.sqrt(u)))}s.sort(((e,t)=>e.m_distance-t.m_distance))}return s.slice(0,r)}},nn=tn.supportsCurves(),rn=Object.freeze(Object.defineProperty({__proto__:null,getNearestCoordinate:function(e,t,n={}){const{calculateLeftRightSide:r=!1,testPolygonInterior:s=!0,unit:i}=n,o=tn.getNearestCoordinate((0,m.fromGeometry)(e),(0,m.fromPoint)(t).getXY(),s,r);if(i&&o.m_distance){const t=(0,m.getSpatialReference)(e);o.m_distance=(0,u.PQ)(o.m_distance,t,i)}return en(o,e,r)},getNearestVertex:function(e,t,n={}){const{unit:r}=n,s=tn.getNearestVertex((0,m.fromGeometry)(e),(0,m.fromPoint)(t).getXY());if(r&&s.m_distance){const t=(0,m.getSpatialReference)(e);s.m_distance=(0,u.PQ)(s.m_distance,t,r)}return en(s,e)},getNearestVertices:function(e,t,n,r,s={}){const{unit:i}=s,o=(0,m.getSpatialReference)(e);return i&&n&&(n=(0,u.UW)(n,i,o)),tn.getNearestVertices((0,m.fromGeometry)(e),(0,m.fromPoint)(t).getXY(),n,r).map((t=>(i&&t.m_distance&&(t.m_distance=(0,u.PQ)(t.m_distance,o,i)),en(t,e))))},supportsCurves:nn},Symbol.toStringTag,{value:"Module"})),sn=new class{supportsCurves(){return!0}getOperatorType(){return 1}execute(e,t,n,r,s){return(0,je.V)(e,t,n,r,s)}isValidDE9IM(e){return 0===(0,je.W)(e)}accelerateGeometry(e,t,n){return(0,je.X)(e,t,n)}canAccelerateGeometry(e){return(0,je.Y)(e)}},on=sn.supportsCurves(),an=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,m.getSpatialReference)(e);return sn.accelerateGeometry((0,m.fromGeometry)(e),(0,m.fromSpatialReference)(t),1)},execute:function(e,t,n){return sn.execute((0,m.fromGeometry)(e),(0,m.fromGeometry)(t),(0,m.fromSpatialReference)(e.spatialReference),n,null)},isValidDE9IM:function(e){return sn.isValidDE9IM(e)},supportsCurves:on},Symbol.toStringTag,{value:"Module"})),mn=new ce.O,un=mn.supportsCurves(),cn=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e){const t=(0,m.getSpatialReference)(e);return(0,m.toGeometry)((n=(0,m.fromGeometry)(e),r=(0,m.fromSpatialReference)(t),mn.execute(n,r,!1,null)),t);var n,r},executeMany:function(e){const t=e.map(m.fromGeometry),n=(0,m.getSpatialReference)(e);return function(e,t){const n=mn.executeMany(new s.S(e),t,!1,null);return Array.from(n)}(t,(0,m.fromSpatialReference)(n)).map((e=>(0,m.toGeometry)(e,n)))},isSimple:function(e){return t=(0,m.fromGeometry)(e),n=(0,m.fromSpatialReference)((0,m.getSpatialReference)(e)),mn.isSimpleAsFeature(t,n,!1,null,null);var t,n},supportsCurves:un},Symbol.toStringTag,{value:"Module"}));function ln(e,t,n,r){const s=e.getImpl().getAttributeStreamRef(0),i=e.getPointCount(),o=t.getXY(),a=e.createInstance(),m=(0,ae.l)(n),u=new ae.a;if(e.queryEnvelope(u),u.inflateCoords(m,m),u.contains(o)){const n=m*m;let r=!1;const u=(0,$.a)(i,!1);for(let e=0;e<i;e++){const t=s.read(2*e),i=s.read(2*e+1),a=t-o.x,m=i-o.y;a*a+m*m<=n&&(r=!0,u[e]=!0)}if(r)for(let t=0;t<i;t++)u[t]||a.addPoints(e,t,t+1);else a.addPoints(e,0,i),a.add(t)}else a.addPoints(e,0,i),a.add(t);return a}class hn extends s.G{constructor(e,t,n,r){super(),this.m_progressTracker=r,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=n,this.m_rightGeom=t.next(),this.m_bEmpty=!this.m_rightGeom,(0,i.c)(this.m_rightGeom)}tock(){return!0}getRank(){return 1}next(){if(this.m_bEmpty)return null;const e=this.m_inputGeoms.next();return e?((0,i.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),function(e,t,n,r){const s=e.getDimension(),o=t.getDimension();if(s!==o)return s>o?e:t;if(e.isEmpty())return t;if(t.isEmpty())return e;const a=new ae.a,m=new ae.a,u=new ae.a;e.queryEnvelope(a),t.queryEnvelope(m),u.setCoords({env2D:a}),u.mergeEnvelope2D(m);const c=(0,ae.b)(n,u,!0),l=e.getGeometryType(),h=t.getGeometryType();return l===i.G.enumPoint&&h===i.G.enumPoint?function(e,t,n){const r=(0,ae.l)(n),s=r*r,i=e.getXY(),o=t.getXY(),a=new ae.M({vd:e.getDescription()});return $.P.sqrDistance(i,o)>s&&(a.add(e),a.add(t)),a}(e,t,c):l===i.G.enumPoint&&h===i.G.enumMultiPoint?ln(t,e,c):l===i.G.enumMultiPoint&&h===i.G.enumPoint?ln(e,t,c):(0,ce.j)(e,t,n,r)}(e,this.m_rightGeom,this.m_spatialReference,this.m_progressTracker)):null}getGeometryID(){return this.m_index}}const fn=new class{getOperatorType(){return 10003}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r){return new hn(e,t,n,r)}execute(e,t,n,r){const o=new s.S([e]),a=new s.S([t]),m=this.executeMany(o,a,n,r).next();return m||(0,i.b)("null output"),m}},gn=fn.supportsCurves(),_n=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t){const n=(0,m.getSpatialReference)(e);return(0,m.toGeometry)(function(e,t,n){return fn.execute(e,t,n,null)}((0,m.fromGeometry)(e),(0,m.fromGeometry)(t),(0,m.fromSpatialReference)(n)),n)},executeMany:function(e,t){const n=e.map(m.fromGeometry),i=(0,m.getSpatialReference)(e);return function(e,t,n){const r=fn.executeMany(new s.S(e),new s.S([t]),n,null);return Array.from(r)}(n,(0,m.fromGeometry)(t),(0,m.fromSpatialReference)(i)).map((e=>(0,m.toGeometry)(e,i))).filter(r.Ru)},supportsCurves:gn},Symbol.toStringTag,{value:"Module"})),pn=new(n(46810).O),dn=pn.supportsCurves(),yn=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,m.getSpatialReference)(e);return pn.accelerateGeometry((0,m.fromGeometry)(e),(0,m.fromSpatialReference)(t),1)},execute:function(e,t){return pn.execute((0,m.fromGeometry)(e),(0,m.fromGeometry)(t),(0,m.fromSpatialReference)(e.spatialReference),null)},supportsCurves:dn},Symbol.toStringTag,{value:"Module"})),Pn=new oe.O,xn=Pn.supportsCurves(),bn=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t){const n=(0,m.getSpatialReference)(e);return(0,m.toGeometry)(function(e,t,n){return Pn.execute(e,t,n,null)}((0,m.fromGeometry)(e),(0,m.fromGeometry)(t),(0,m.fromSpatialReference)(n)),n)},executeMany:function(e){const t=e.map(m.fromGeometry),n=(0,m.getSpatialReference)(e);return(0,m.toGeometry)(function(e,t){return Pn.executeMany(new s.S(e),t,null).next()}(t,(0,m.fromSpatialReference)(n)),n)},supportsCurves:xn},Symbol.toStringTag,{value:"Module"})),Cn=new(n(22802).O),vn=Cn.supportsCurves(),Gn=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,m.getSpatialReference)(e);return Cn.accelerateGeometry((0,m.fromGeometry)(e),(0,m.fromSpatialReference)(t),1)},execute:function(e,t){return Cn.execute((0,m.fromGeometry)(e),(0,m.fromGeometry)(t),(0,m.fromSpatialReference)(e.spatialReference),null)},supportsCurves:vn},Symbol.toStringTag,{value:"Module"}));function Sn(e,t,n,r){return function(e,t){const n=(0,m.getSpatialReference)(e);return(0,m.toGeometry)(function(e,t){return a.execute(e,t,null)}((0,m.fromGeometry)(e),t.transform),n)}(e,(new ne).rotate(t,n,r))}async function Dn(){await Promise.all([T(),y(),X(),K()])}},22194:(e,t,n)=>{n.d(t,{D:()=>y,m:()=>m,s:()=>_,w:()=>g});var r=n(90237),s=n(55537),i=n(35368),o=n(77592),a=n(11878);function m(){return{outPoint:new a.P,index:-1,t:Number.NaN}}function u(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function c(e,t,n,r){e.outPoint.assign(t),e.index=n,e.t=r}function l(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function h(e,t,n,r){e.index=n,e.t=r,t.queryCoord2D(e.t,e.outPoint)}function f(e,t){const n=m();l(n,e),l(e,t),l(t,n)}function g(e,t,n,r,i,a){if(e.getGeometryType()===s.G.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){const t=r.nextSegment();if(0!==(0,o.i)(e,t.getEndXY(),0))return c(i,t.getEndXY(),-1,Number.NaN),c(a,t.getEndXY(),-1,Number.NaN),!0}r.resetToFirstPath()}if(t.getGeometryType()===s.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const e=n.nextSegment();if(0!==(0,o.i)(t,e.getEndXY(),0))return c(i,e.getEndXY(),-1,Number.NaN),c(a,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function _(e){const t=e.getPathCount(),n=new Array(e.getSegmentCount());let r=0;for(let s=0;s<t;++s){const t=r+e.getSegmentCountPath(s);for(let i=r,o=e.getPathStart(s);i<t;++i,++o)n[i]=o;r=t}return(0,i.J)(e.getPointCount(),n),n}function p(e,t){return!!Number.isNaN(t)||e<=t}function d(e){const t=new i.h;return t.addEnvelope(e,!1),t}class y{constructor(e,t){if(this.m_env2DgeometryA=null,this.m_env2DgeometryB=null,this.m_progressCounter=0,this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,r){if((e.getGeometryType()!==i.P.type||t.getGeometryType()!==i.P.type)&&(this.m_env2DgeometryA=new i.a,this.m_env2DgeometryB=new i.a,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!p(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const s=u(new a.P,(0,a.j)(),Number.NaN),o=u(new a.P,(0,a.j)(),Number.NaN),m=this._ExecuteBruteForce(e,t,s,o);return p(m,this.m_maxDistance)?(null!==n&&l(n,s),null!==r&&l(r,o),m):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==i.P.type&&e.getGeometryType()!==i.E.type||t.getGeometryType()!==i.P.type&&t.getGeometryType()!==i.E.type||(n=!1),n){if(this.m_env2DgeometryA=new i.a,this.m_env2DgeometryB=new i.a,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const r=u(new a.P,(0,a.j)(),Number.NaN),s=u(new a.P,(0,a.j)(),Number.NaN);return this._ExecuteBruteForce(e,t,r,s)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,n,r){switch(e.getGeometryType()){case s.G.enumPoint:return this.distancePointGeometry(e,t,n,r);case s.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathGeometry(e,t,n,r);default:return Number.NaN}}distancePointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointPoint(e,t,n,r);case s.G.enumMultiPoint:return this.distancePointMultipoint(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distancePointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distancePointEnvelope(e,t,n,r);default:return Number.NaN}}distancePointPoint(e,t,n,r){const s=e.getXY(),i=t.getXY();return c(n,s,0,0),c(r,i,0,0),Math.sqrt(a.P.sqrDistance(s,i))}distancePointMultipoint(e,t,n,r){const s=e.getXY();let i=this.m_maxSqrDistance,o=i,m=!1;const u=t.getPointCount(),l=new a.P;for(let e=0;e<u;++e)if(t.queryXY(e,l),o=a.P.sqrDistance(s,l),this.m_bIsNearCalc){if(o<=i)return 0}else if(!(o>i)&&(!m&&o===i||o<i)&&(i=o,c(n,s,0,0),c(r,l,e,0),m=!0,0===i))return 0;return m?Math.sqrt(i):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,r){const m=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),u=e.getXY();if(!m&&t.getGeometryType()===s.G.enumPolygon&&0!==(0,o.i)(t,u,0))return c(n,u,0,0),c(r,u,-1,Number.NaN),0;t.getImpl().getAccelerators();let l=this.m_maxSqrDistance,h=l,f=-1;const g=new i.a,_=t.querySegmentIterator();let p=!1;for(;_.nextPath();)for(;_.hasNextSegment();){const e=_.nextSegment();e.queryEnvelope(g);const t=g.sqrDistance(u);if(t>l)continue;if(!this.m_bIsNearCalc&&p&&t===l)continue;f=e.getClosestCoordinate(u,!1);const s=e.getCoord2D(f);if(h=a.P.sqrDistance(u,s),this.m_bIsNearCalc){if(h<=l)return 0}else if(!(h>l)&&(!p||h<l)&&(l=h,c(n,u,0,0),c(r,s,_.getStartPointIndex(),f),p=!0,0===l))return 0}return p?Math.sqrt(l):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,r){const s=e.getXY();c(n,s,0,0),c(r,s,-1,Number.NaN);const i=t.asEnvelope2D();return i.contains(s)?0:Math.sqrt(i.sqrDistance(s,r.outPoint))}distanceMultipointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,a.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipoint(t,e,r,n);return this.m_env2DgeometryB=(0,a.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,n,r,1,1);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipointMultipath(e,d(t),n,r);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,s,i,o){const m={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===i&&1===o){const r=Math.trunc((0,a.l)(Math.sqrt(e.getPointCount())+1,1,(0,a.o)())),i=Math.trunc((0,a.l)(Math.sqrt(t.getPointCount())+1,1,(0,a.o)()));if((r>=4||i>=4)&&this.distanceMultipointMultipoint(e,t,n,s,r,i)<=this.m_maxSqrDistance)return 0}let u=this.m_maxSqrDistance;const l=[e],h=[t],g=this.swapGeometriesIfBGtA(l,h);g&&(this.m_env2DgeometryB=(0,a.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o=(0,a.b)(i,i=o),f(n,s)),(0,r.b)(m,(0,a.f)((()=>{f(n,s),this.m_env2DgeometryB=(0,a.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)}),!g),!1);const _=l[0].getImpl(),p=h[0].getImpl(),d=_.getPointCount(),y=p.getPointCount(),P=y>1;let x=!1;const b=new a.P,C=new a.P;for(let e=0;e<d;e+=i){if(_.queryXY(e,b),P){const e=this.m_env2DgeometryB.sqrDistance(b);if(this.m_bIsNearCalc){if(e>u)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(b)<=u)return 0}else if(e>=u)continue}for(let t=0;t<y;t+=o){p.queryXY(t,C);const r=a.P.sqrDistance(b,C);if(this.m_bIsNearCalc){if(r<=u)return 0}else if(!(r>u||x&&r===u)&&(!x||r<u)&&(c(n,b,e,0),c(s,C,t,0),x=!0,u=r,0===u))return x?Math.sqrt(u):Number.POSITIVE_INFINITY}}return x?Math.sqrt(u):Number.POSITIVE_INFINITY}catch(e){m.error=e,m.hasError=!0}finally{(0,r.c)(m)}}distanceMultipointMultipath(e,t,n,r){let m=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===s.G.enumPolygon;const u=t.querySegmentIterator();u.stripAttributes();const l=new i.a,h=new a.P;let f=this.m_maxSqrDistance;const g=e.getImpl(),_=g.getPointCount(),p=_>1;let d=!1;for(;u.nextPath();)for(;u.hasNextSegment();){const e=u.nextSegment();if(e.queryLooseEnvelope(l),p){const e=l.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>f)continue}else if(e>f||d&&e===f)continue}for(let s=0;s<_;s++){if(g.queryXY(s,h),m&&0!==(0,o.i)(t,h,0))return c(n,h,-1,Number.NaN),c(r,h,s,0),0;{const e=l.sqrDistance(h);if(this.m_bIsNearCalc){if(e>f)continue}else if(e>f)continue}const i=e.getClosestCoordinate(h,!1),a=e.getCoord2D(i);h.subThis(a);const _=h.sqrLength();if(this.m_bIsNearCalc){if(_<=f)return 0}else if(!(_>f)&&(!d||_<f)&&(f=_,c(n,g.getXY(s),s,0),c(r,a,u.getStartPointIndex(),i),d=!0,0===f))return 0}m=!1}return d?Math.sqrt(f):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointEnvelope(t,e,r,n);case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,d(e),r,n);return this.m_env2DgeometryB=(0,a.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(d(e),t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,n,r);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,r){n.t=Number.NaN,n.index=-1,r.t=Number.NaN,r.index=-1;const s=e.asEnvelope2D(),i=t.asEnvelope2D();return Math.sqrt(s.sqrDistanceEnvelope(i,n.outPoint,r.outPoint))}distanceMultipathGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,a.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipathMultipath(e,d(t),n,r);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,s){const o={stack:[],error:void 0,hasError:!1};try{const u=[e],c=[t],p=this.swapGeometriesIfAGtB(u,c);p&&(this.m_env2DgeometryB=(0,a.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),f(n,s)),(0,r.b)(o,(0,a.f)((()=>{f(n,s),this.m_env2DgeometryB=(0,a.b)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)}),!p),!1);const d=u[0],y=c[0],P=d.querySegmentIterator();P.stripAttributes();const x=y.querySegmentIterator();if(x.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc((0,a.l)(Math.sqrt(d.getPointCount())+1,1,(0,a.o)())),t=Math.trunc((0,a.l)(Math.sqrt(d.getPointCount())+1,1,(0,a.o)()));if(this.distanceMultipointMultipoint(d,y,n,s,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=m(),t=m();if(g(d,y,P,x,e,t))return l(n,e),l(s,t),0}const b=_(d),C=[],v=new i.S,G=new i.a,S=new i.a,D=new i.a;let w=this.m_maxSqrDistance,M=!0,T=!1;for(let e=0,t=b.length;e<t;++e){d.querySegment(b[e],v,!0);const t=v.get();if(t.queryEnvelope(G),!(G.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>w)){if(this.m_bIsNearCalc&&G.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=w)return 0;for(;x.nextPath();){if(this.progress_(),M)y.queryPathEnvelope(x.getPathIndex(),D),C[x.getPathIndex()]=D.clone();else if(G.sqrDistanceEnvelope(C[x.getPathIndex()],null,null)>w)continue;for(;x.hasNextSegment();){const r=x.nextSegment();if(r.queryEnvelope(S),G.sqrDistanceEnvelope(S,null,null)<=w){const i=!G.isIntersecting(S),o=[0],a=[0];let m=t.distance(r,i,o,a);if(m*=m,this.m_bIsNearCalc&&m<=this.m_maxSqrDistance)return 0;if(m<w||m===w&&b[e]<n.index){if(T=!0,h(n,t,b[e],o[0]),h(s,r,x.getStartPointIndex(),a[0]),0===m)return 0;w=m}}}}x.resetToFirstPath(),M=!1}}return T?Math.sqrt(w):Number.POSITIVE_INFINITY}catch(e){o.error=e,o.hasError=!0}finally{(0,r.c)(o)}}swapGeometriesIfAGtB(e,t){return(0,s.v)(e[0])>(0,s.v)(t[0])&&(t[0]=(0,a.b)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},80407:(e,t,n)=>{n.d(t,{c:()=>s});var r=n(55537);function s(e,t){const n=e.getGeometryType();return n===r.G.enumPoint?e:(0,r.f)(n)?function(e){if(function(e){for(let t=0,n=e.getPathCount();t<n;t++){const n=e.getPathSize(t);if(0===n)return!1;if(1===n){if(0===e.getSegmentCountPath(t))return!1;if(e.getSegmentType(e.getPathStart(t))===r.G.enumLine)return!1;if(!e.isClosedPath(t))return!1}}return!0}(e))return e;const t=e.createInstance();for(let n=0,s=e.getPathCount();n<s;n++){const s=e.getPathSize(n);if(0!==s){if(1===s){if(0===e.getSegmentCountPath(n))continue;if(e.getSegmentType(e.getPathStart(n))===r.G.enumLine)continue;if(!e.isClosedPath(n))continue}t.addPath(e,n,!0)}}return t}(e):n===r.G.enumMultiPoint||n===r.G.enumEnvelope?e:n===r.G.enumMultipatch?((0,r.a)("not implemented for multipatch"),e):e}},29821:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(9192);class s extends r.d{getOperatorType(){return 6}execute(e,t,n,s){return(0,r.r)(e,t,n,16,s)}}},70031:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(9192);class s extends r.d{getOperatorType(){return 4}execute(e,t,n,s){return!(0,r.r)(e,t,n,4,s)}}},85181:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(9192);class s extends r.d{getOperatorType(){return 9}execute(e,t,n,s){return(0,r.r)(e,t,n,32,s)}}},46810:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(9192);class s extends r.d{getOperatorType(){return 5}execute(e,t,n,s){return(0,r.r)(e,t,n,8,s)}}},22802:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(9192);class s extends r.d{getOperatorType(){return 7}execute(e,t,n,s){return(0,r.r)(e,t,n,2,s)}}},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>s});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class s extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},24988:(e,t,n)=>{n.d(t,{Hh:()=>a,fz:()=>c,g7:()=>m,s1:()=>o,zo:()=>u});var r=n(76061),s=n(83290);let i;function o(){return!!i&&(0,s.i)()}async function a(){if(!o()){const[e,t]=await Promise.all([Promise.all([n.e(9192),n.e(7444)]).then(n.bind(n,37444)),n.e(9192).then(n.bind(n,9192)).then((e=>e.a8)).then((({injectPe:e})=>e)),(0,s.l)()]);i=new e.OperatorGeodesicBuffer,t(s.p)}}function m(e,t,n,r,s){return i.execute(e,t,n,r,s,!1,null)}function u(e,t,n,s,o,a){const m=i.executeMany(new r.S(e),t,n,s,o,!1,a,null);return Array.from(m)}function c(){return i.supportsCurves()}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>y,fromGeometry:()=>d,fromMultipoint:()=>P,fromPoint:()=>x,fromPolygon:()=>b,fromPolyline:()=>C,fromSpatialReference:()=>v,getSpatialReference:()=>p,toExtent:()=>S,toGeometry:()=>G,toMultipoint:()=>D,toPoint:()=>w,toPolygon:()=>M,toPolyline:()=>T});var r=n(11878),s=n(35368),i=n(55537),o=n(9192),a=(n(59456),n(90293),n(83299)),m=n(5443),u=n(48526),c=n(86738),l=n(39829),h=n(82799);const f="_gxVersion",g=2,_=1;function p(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function d(e){switch(e.type){case"point":return x(e);case"multipoint":return P(e);case"polyline":return C(e);case"polygon":return b(e);case"extent":return y(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function y(e){if(!e.getCacheValue(f)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(g,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(_,0,e.zmin,e.zmax),e.setCacheValue(f,t)}return e.getCacheValue(f)}function P(e){if(!e.getCacheValue(f)){const t=new s.M,n=new s.P,r=e.points,i=e.hasM,o=e.hasZ,a=o?3:2;for(let e=0,s=r.length;e<s;e++){const s=r[e];n.setXYCoords(s[0],s[1]),o&&n.setZ(s[2]??0),i&&n.setM(s[a]??NaN),t.add(n)}e.setCacheValue(f,t)}return e.getCacheValue(f)}function x(e){if(!e.getCacheValue(f)){const t=new s.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(f,t)}return e.getCacheValue(f)}function b(e){if(!e.getCacheValue(f)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,i=(0,a.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(f,i)}return e.getCacheValue(f)}function C(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,i=(0,a.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(f,i)}return e.getCacheValue(f)}function v(e){if(e.wkid)return(0,o.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,o.b)(t):null}function G(e,t){if(e)switch(e.getGeometryType()){case i.G.enumPoint:return w(e,t);case i.G.enumEnvelope:return S(e,t);case i.G.enumMultiPoint:return D(e,t);case i.G.enumPolyline:return T(e,t);case i.G.enumPolygon:return M(e,t)}return null}function S(e,t){if(e.isEmpty())return null;const n=new m.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(g,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(_,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(f,e),n}function D(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),i=n.hasZ(),o=[],a=new s.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];i&&n.push(a.getZ()),r&&n.push(a.getM()),o.push(n)}const m=new u.A({hasM:r,hasZ:i,points:o,spatialReference:t});return m.setCacheValue(f,e),m}function w(e,t){if(e instanceof r.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(f,e),n}function M(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({spatialReference:t,...(0,a.toGeometry)(e,null)});return n.setCacheValue(f,e),n}function T(e,t){if(e.isEmpty())return null;const n=h.A.fromJSON({spatialReference:t,...(0,a.toGeometry)(e,null)});return n.setCacheValue(f,e),n}},5808:(e,t,n)=>{n.d(t,{O:()=>r});const r={geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 62f8949a2d9076f3c1ea.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2165],{21796:(e,t,i)=>{i.d(t,{H:()=>w,c:()=>b,d:()=>f,f:()=>v,i:()=>y,r:()=>m,s:()=>h});var n=i(36752),a=i(79e3);const r=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"],s="hidden-form-input";function o(e){return"checked"in e}const l=new WeakMap,c=new WeakSet;function u(e){return"CALCITE-RADIO-BUTTON"===e.nodeName?(0,a.k)(e,"calcite-radio-button-group"):e}const d=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0});function p(e){const t=e?.target,i=t?.validationMessage,n=u(t?.parentElement);if(!n)return;const a=n?.nodeName?.toLowerCase(),s=a?.split("-");if(s.length<2||"calcite"!==s[0])return;e?.preventDefault(),"validity"in n&&(n.validity=t?.validity),n.dispatchEvent(d),function(e,{status:t,message:i,icon:n}){"status"in e&&(e.status=t),"validationIcon"in e&&"string"!=typeof e.validationIcon&&(e.validationIcon=n),"validationMessage"in e&&!e.validationMessage&&(e.validationMessage=i)}(n,{message:i,icon:!0,status:"invalid"});const o=function(e){return`${e.split("-").map(((e,t)=>0===t?e:`${e[0].toUpperCase()}${e.slice(1)}`)).join("")}${r.includes(e)?"Input":"Change"}`}(a);n.addEventListener(o,(()=>{"status"in n&&(n.status="idle"),"validationIcon"in n&&(""===n.validationIcon||!0===n.validationIcon)&&(n.validationIcon=!1),"validationMessage"in n&&n.validationMessage===i&&(n.validationMessage=""),"validity"in n&&(n.validity=t?.validity)}),{once:!0})}function h(e){const{formEl:t}=e;return!!t&&(t.addEventListener("invalid",p,!0),t.requestSubmit(),t.removeEventListener("invalid",p,!0),requestAnimationFrame((()=>{const e=t.querySelectorAll("[status=invalid]");for(const t of e)if(t?.validationMessage){t?.setFocus();break}})),!0)}function m(e){e.formEl?.reset()}function b(e){const{el:t,value:i}=e,n=v(e);if(!n||function(e,t){if((0,a.k)(t.parentElement,"[form]"))return!0;const i="calciteInternalFormComponentRegister";let n=!1;return e.addEventListener(i,(e=>{n=e.composedPath().some((e=>c.has(e))),e.stopPropagation()}),{once:!0}),t.dispatchEvent(new CustomEvent(i,{bubbles:!0,composed:!0})),n}(n,t))return;e.formEl=n,e.defaultValue=i,o(e)&&(e.defaultChecked=e.checked);const r=g.bind(e);n.addEventListener("reset",r),l.set(e.el,r),c.add(t)}function v(e){const{el:t,form:i}=e;return i?(0,a.q)(t,{id:i}):(0,a.k)(t,"form")}function g(){"status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),o(this)?this.checked=this.defaultChecked:(this.value=this.defaultValue,this.onFormReset?.())}function f(e){const{el:t,formEl:i}=e;if(!i)return;const n=l.get(t);i.removeEventListener("reset",n),l.delete(t),e.formEl=null,c.delete(t)}const y="calciteInternalHiddenInputInput",x=e=>{e.target.dispatchEvent(new CustomEvent(y,{bubbles:!0}))},k=e=>e.removeEventListener("input",x);function $(e,t,i){const{defaultValue:n,disabled:a,form:r,name:s,required:l}=e;t.defaultValue=n,t.disabled=a,t.name=s,t.required=l,t.tabIndex=-1,r?t.setAttribute("form",r):t.removeAttribute("form"),o(e)?(t.checked=e.checked,t.defaultChecked=e.defaultChecked,t.value=e.checked?i||"on":""):t.value=i||"",e.syncHiddenFormInput?.(t);const c=u(e.el);if(c&&"validity"in c)for(const e in{...t?.validity})c.validity[e]=t.validity[e]}const w=({component:e})=>(function(e){const{el:t,formEl:i,name:n,value:a}=e,{ownerDocument:r}=t,o=t.querySelectorAll(`input[slot="${s}"]`);if(!i||!n)return void o.forEach((e=>{k(e),e.remove()}));const l=Array.isArray(a)?a:[a],c=[],u=new Set;let d;o.forEach((t=>{const i=l.find((e=>e==t.value));null!=i?(u.add(i),$(e,t,i)):c.push(t)})),l.forEach((t=>{if(u.has(t))return;let i=c.pop();i||(i=r.createElement("input"),i.slot=s),d||(d=r.createDocumentFragment()),d.append(i),i.addEventListener("input",x),$(e,i,t)})),d&&t.append(d),c.forEach((e=>{k(e),e.remove()}))}(e),n.qy`<slot name=${s}></slot>`)},60992:(e,t,i)=>{i.d(t,{I:()=>d,u:()=>u});var n=i(36752),a=i(31159);function r(){const{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function s(e){e.target.disabled&&e.preventDefault()}const o=["mousedown","mouseup","click"];function l(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}const c={capture:!0};function u(e){if(e.disabled)return e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),void function(e){e.el.click=r,function(e){e.addEventListener("pointerdown",s,c),o.forEach((t=>e.addEventListener(t,l,c)))}(e.el)}(e);(function(e){delete e.el.click,function(e){e.removeEventListener("pointerdown",s,c),o.forEach((t=>e.removeEventListener(t,l,c)))}(e.el)})(e),e.el.removeAttribute("aria-disabled")}const d=({children:e,disabled:t})=>n.qy`<div class=${(0,a.CP)("interaction-container")} .inert=${t}>${e}</div>`},60939:(e,t,i)=>{function n(e){return"Enter"===e||" "===e}i.d(t,{i:()=>n,n:()=>a});const a=["0","1","2","3","4","5","6","7","8","9"]},93174:(e,t,i)=>{i.d(t,{a:()=>k,b:()=>s,c:()=>m,d:()=>b,g:()=>g,l:()=>r});var n=i(79e3);const a="calciteInternalLabelClick",r="calciteInternalLabelConnected",s="calciteInternalLabelDisconnected",o="calcite-label",l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new Set,h=e=>{const{id:t}=e,i=t&&(0,n.q)(e,{selector:`${o}[for="${t}"]`});if(i)return i;const a=(0,n.k)(e,o);return!a||function(e,t){let i;const n="custom-element-ancestor-check",a=n=>{n.stopImmediatePropagation();const a=n.composedPath();i=a.slice(a.indexOf(t),a.indexOf(e))};return e.addEventListener(n,a,{once:!0}),t.dispatchEvent(new CustomEvent(n,{composed:!0,bubbles:!0})),e.removeEventListener(n,a),i.filter((i=>i!==t&&i!==e)).filter((e=>e.tagName?.includes("-"))).length>0}(a,e)?null:a};function m(e){if(!e)return;const t=h(e.el);if(c.has(t)&&t===e.labelEl||!t&&p.has(e))return;const i=x.bind(e);if(t){e.labelEl=t;const n=l.get(t)||[];n.push(e),l.set(t,n.sort(v)),c.has(e.labelEl)||(c.set(e.labelEl,f),e.labelEl.addEventListener(a,f)),p.delete(e),document.removeEventListener(r,u.get(e)),d.set(e,i),document.addEventListener(s,i)}else p.has(e)||(i(),document.removeEventListener(s,d.get(e)))}function b(e){if(!e||(p.delete(e),document.removeEventListener(r,u.get(e)),document.removeEventListener(s,d.get(e)),u.delete(e),d.delete(e),!e.labelEl))return;const t=l.get(e.labelEl);1===t.length&&(e.labelEl.removeEventListener(a,c.get(e.labelEl)),c.delete(e.labelEl)),l.set(e.labelEl,t.filter((t=>t!==e)).sort(v)),e.labelEl=null}function v(e,t){return(0,n.l)(e.el,t.el)?-1:1}function g(e){return e.label||e.labelEl?.textContent?.trim()||""}function f(e){const t=e.detail.sourceEvent.target,i=l.get(this),n=i.find((e=>e.el===t));if(i.includes(n))return;const a=i[0];a.disabled||a.onLabelClick(e)}function y(){p.has(this)&&m(this)}function x(){p.add(this);const e=u.get(this)||y.bind(this);u.set(this,e),document.addEventListener(r,e)}async function k(e){if(await e.componentOnReady(),l.has(e))return;const t=e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame((()=>{for(const e of p)if(e.el===t){m(e);break}}))}},2165:(e,t,i)=>{i.r(t),i.d(t,{Input:()=>oe}),i(32239);var n=i(34088),a=i(12618),r=i(31159),s=i(79e3),o=i(33826);const l={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},c=o.AH`:host{box-sizing:border-box;display:flex;block-size:auto;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);opacity:1;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;--calcite-input-message-spacing-value: .25rem;margin-block-start:var(--calcite-input-message-spacing-value)}.calcite-input-message-icon{pointer-events:none;display:inline-flex;flex-shrink:0;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;margin-inline-end:.5rem}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-color-status-danger)}:host([status=warning]) .calcite-input-message-icon{color:var(--calcite-color-status-warning)}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-color-status-success)}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-color-brand)}:host([scale=s]){font-size:var(--calcite-font-size--3);line-height:.75rem}:host([scale=m]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([hidden]){display:none}[hidden]{display:none}`;class u extends r.WF{constructor(){super(...arguments),this.iconFlipRtl=!1,this.scale="m",this.status="idle"}static{this.properties={icon:[3,{converter:r.pf}],iconFlipRtl:7,scale:3,status:3}}static{this.styles=c}connectedCallback(){super.connectedCallback(),this.requestedIcon=(0,s.v)(l,this.icon,this.status)}willUpdate(e){(e.has("status")&&(this.hasUpdated||"idle"!==this.status)||e.has("icon"))&&(this.requestedIcon=(0,s.v)(l,this.icon,this.status))}render(){const e=this.el.hidden;return(0,r.Bq)(this.el,"calcite-hydrated-hidden",e),a.qy`${this.renderIcon(this.requestedIcon)}<slot></slot>`}renderIcon(e){if(e)return a.qy`<calcite-icon class="calcite-input-message-icon" .flipRtl=${this.iconFlipRtl} .icon=${e} scale=s></calcite-icon>`}}(0,n.c)("calcite-input-message",u);var d=i(36752);const p=o.AH`:host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:var(--calcite-z-index);inline-size:100%;overflow:hidden;background-color:var(--calcite-progress-background-color, var(--calcite-color-border-3))}.bar{z-index:var(--calcite-z-index);background-color:var(--calcite-progress-fill-color, var(--calcite-color-brand))}@media (forced-colors: active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) / var(--calcite-internal-duration-factor) * 11 / var(--calcite-internal-duration-factor)) linear infinite}.indeterminate.calcite--rtl{animation-name:looping-progress-bar-ani-rtl}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-progress-text-color, var(--calcite-color-text-2))}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%,0,0)}50%{inline-size:40%}to{transform:translate3d(600%,0,0)}}@keyframes looping-progress-bar-ani-rtl{0%{transform:translate3d(100%,0,0)}50%{inline-size:40%}to{transform:translate3d(-600%,0,0)}}:host([hidden]){display:none}[hidden]{display:none}`;class h extends r.WF{constructor(){super(...arguments),this.reversed=!1,this.type="determinate",this.value=0}static{this.properties={label:1,reversed:7,text:1,type:3,value:9}}static{this.styles=p}render(){const e="determinate"===this.type,t=e?{width:`${this.value}%`}:{},i=(0,s.g)(this.el);return d.qy`<div .ariaLabel=${this.label||this.text} .ariaValueMax=${e?"100":void 0} .ariaValueMin=${e?"0":void 0} .ariaValueNow=${e?this.value:void 0} role=progressbar><div class="track"><div class=${(0,r.CP)({bar:!0,indeterminate:"indeterminate"===this.type,[n.C.rtl]:"rtl"===i,reversed:this.reversed})} style=${(0,r.zl)(t)}></div></div>${this.text?d.qy`<div class="text">${this.text}</div>`:null}</div>`}}(0,n.c)("calcite-progress",h);var m=i(56328),b=i(18394),v=i(48015),g=i(52567),f=i(57110),y=i(21796),x=i(60992),k=i(60939),$=i(93174),w=i(28786);const E=new RegExp("\\.(0+)?$"),I=new RegExp("0+$");class z{static{this.DECIMALS=100}static{this.ROUNDED=!0}static{this.SHIFT=BigInt("1"+"0".repeat(this.DECIMALS))}constructor(e){if(e instanceof z)return e;const[t,i]=function(e){const t=e.split(/[eE]/);if(1===t.length)return e;const i=+e;if(Number.isSafeInteger(i))return`${i}`;const n="-"===e.charAt(0),a=+t[1],r=t[0].split("."),s=(n?r[0].substring(1):r[0])||"",o=r[1]||"",l=a>0?`${s}${((e,t)=>{const i=t>e.length?`${e}${"0".repeat(t-e.length)}`:e;return`${i.slice(0,t)}.${i.slice(t)}`})(o,a)}`:`${((e,t)=>{const i=Math.abs(t)-e.length,n=i>0?`${"0".repeat(i)}${e}`:e;return`${n.slice(0,t)}.${n.slice(t)}`})(s,a)}${o}`;return`${n?"-":""}${"."===l.charAt(0)?"0":""}${l.replace(E,"").replace(S,"")}`}(e).split(".").concat("");this.value=BigInt(t+i.padEnd(z.DECIMALS,"0").slice(0,z.DECIMALS))+BigInt(z.ROUNDED&&i[z.DECIMALS]>="5"),this.isNegative="-"===e.charAt(0)}static{this._divRound=(e,t)=>z.fromBigInt(e/t+(z.ROUNDED?e*BigInt(2)/t%BigInt(2):BigInt(0)))}static{this.fromBigInt=e=>Object.assign(Object.create(z.prototype),{value:e,isNegative:e<BigInt(0)})}getIntegersAndDecimals(){const e=this.value.toString().replace("-","").padStart(z.DECIMALS+1,"0");return{integers:e.slice(0,-z.DECIMALS),decimals:e.slice(-z.DECIMALS).replace(I,"")}}toString(){const{integers:e,decimals:t}=this.getIntegersAndDecimals();return`${this.isNegative?"-":""}${e}${t.length?"."+t:""}`}formatToParts(e){const{integers:t,decimals:i}=this.getIntegersAndDecimals(),n=e.numberFormatter.formatToParts(BigInt(t));return this.isNegative&&n.unshift({type:"minusSign",value:e.minusSign}),i.length&&(n.push({type:"decimal",value:e.decimal}),i.split("").forEach((e=>n.push({type:"fraction",value:e})))),n}format(e){const{integers:t,decimals:i}=this.getIntegersAndDecimals();return`${this.isNegative?e.minusSign:""}${e.numberFormatter.format(BigInt(t))}${i.length?`${e.decimal}${i.split("").map((t=>e.numberFormatter.format(Number(t)))).join("")}`:""}`}add(e){return z.fromBigInt(this.value+new z(e).value)}subtract(e){return z.fromBigInt(this.value-new z(e).value)}multiply(e){return z._divRound(this.value*new z(e).value,z.SHIFT)}divide(e){return z._divRound(this.value*z.SHIFT,new z(e).value)}}function C(e){return!(!e||isNaN(Number(e)))}function V(e){return e&&function(e){return k.n.some((t=>e.includes(t)))}(e)?A(e,(e=>{let t=!1;const i=e.split("").filter(((e,i)=>e.match(/\./g)&&!t?(t=!0,!0):!(!e.match(/-/g)||0!==i)||k.n.includes(e))).join("");return C(i)?new z(i).toString():""})):""}const S=/^([-0])0+(?=\d)/,N=/(?!^\.)\.$/,O=/(?!^-)-/g,F=/^-\b0\b\.?0*$/,L=/0*$/,D=e=>A(e,(e=>{const t=e.replace(O,"").replace(N,"").replace(S,"$1");return C(t)?F.test(t)?t:function(e){const t=e.split(".")[1],i=new z(e).toString(),[n,a]=i.split(".");return t&&a!==t?`${n}.${t}`:i}(t):e}));function A(e,t){if(!e)return e;const i=e.toLowerCase().indexOf("e")+1;return i?e.replace(/[eE]*$/g,"").substring(0,i).concat(e.slice(i).replace(/[eE]/g,"")).split(/[eE]/).map(((e,i)=>t(1===i?e.replace(/\./g,""):e))).join("e").replace(/^e/,"1e"):t(e)}const H="en",_=["ar","bg","bs","ca","cs","da","de","el",H,"es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","no","nl","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],M=["ar","bg","bs","ca","cs","da","de","de-AT","de-CH","el",H,"en-AU","en-CA","en-GB","es","es-MX","et","fi","fr","fr-CH","he","hi","hr","hu","id","it","it-CH","ja","ko","lt","lv","mk","no","nl","pl","pt","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],P=(new Map(Object.entries({bg:{am:"пр.об.",pm:"сл.об."},bs:{am:"prijepodne",pm:"popodne"},ca:{am:"a. m.",pm:"p. m."},cs:{am:"dop.",pm:"odp."},es:{am:"a. m.",pm:"p. m."},"es-mx":{am:"a.m.",pm:"p.m."},"es-MX":{am:"a.m.",pm:"p.m."},fi:{am:"ap.",pm:"ip."},he:{am:"לפנה״צ",pm:"אחה״צ"},hu:{am:"de. ",pm:"du."},lt:{am:"priešpiet",pm:"popiet"},lv:{am:"priekšpusdienā",pm:"pēcpusdienā"},mk:{am:"претпл.",pm:"попл."},no:{am:"a.m.",pm:"p.m."},nl:{am:"a.m.",pm:"p.m."},"pt-pt":{am:"da manhã",pm:"da tarde"},"pt-PT":{am:"da manhã",pm:"da tarde"},ro:{am:"a.m.",pm:"p.m."},sl:{am:"dop.",pm:"pop."},sv:{am:"fm",pm:"em"},th:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง"},tr:{am:"ÖÖ",pm:"ÖS"},uk:{am:"дп",pm:"пп"},vi:{am:"SA",pm:"CH"}})),["arab","arabext","latn"]),T=e=>P.includes(e),q=(new Intl.NumberFormat).resolvedOptions().numberingSystem,B="arab"!==q&&T(q)?q:"latn";const R=new class{constructor(){this.delocalize=e=>this._numberFormatOptions?A(e,(e=>e.replace(new RegExp(`[${this._minusSign}]`,"g"),"-").replace(new RegExp(`[${this._group}]`,"g"),"").replace(new RegExp(`[${this._decimal}]`,"g"),".").replace(new RegExp(`[${this._digits.join("")}]`,"g"),this._getDigitIndex))):e,this.localize=e=>this._numberFormatOptions?A(e,(e=>C(e.trim())?new z(e.trim()).format(this).replace(new RegExp(`[${this._actualGroup}]`,"g"),this._group):e)):e}get group(){return this._group}get decimal(){return this._decimal}get minusSign(){return this._minusSign}get digits(){return this._digits}get numberFormatter(){return this._numberFormatter}get numberFormatOptions(){return this._numberFormatOptions}set numberFormatOptions(e){if(e.locale=function(e,t="cldr"){const i="cldr"===t?M:_;return e?i.includes(e)?e:"nb"===(e=e.toLowerCase())?"no":"t9n"===t&&"pt"===e?"pt-BR":(e.includes("-")&&(e=e.replace(/(\w+)-(\w+)/,((e,t,i)=>`${t}-${i.toUpperCase()}`)),i.includes(e)||(e=e.split("-")[0])),"zh"===e?"zh-CN":i.includes(e)?e:(console.warn(`Translations for the "${e}" locale are not available and will fall back to the default, English (en).`),H)):H}(e?.locale),e.numberingSystem=(t=e?.numberingSystem,T(t)?t:B),!this._numberFormatOptions&&e.locale===H&&e.numberingSystem===B&&2===Object.keys(e).length||JSON.stringify(this._numberFormatOptions)===JSON.stringify(e))return;var t;this._numberFormatOptions=e,this._numberFormatter=new Intl.NumberFormat(this._numberFormatOptions.locale,this._numberFormatOptions),this._digits=[...new Intl.NumberFormat(this._numberFormatOptions.locale,{useGrouping:!1,numberingSystem:this._numberFormatOptions.numberingSystem}).format(9876543210)].reverse();const i=new Map(this._digits.map(((e,t)=>[e,t]))),n=new Intl.NumberFormat(this._numberFormatOptions.locale,{numberingSystem:this._numberFormatOptions.numberingSystem}).formatToParts(-12345678.9);this._actualGroup=n.find((e=>"group"===e.type)).value,this._group=0===this._actualGroup.trim().length||" "==this._actualGroup?" ":this._actualGroup,this._decimal="bs"===e.locale||"mk"===e.locale?",":n.find((e=>"decimal"===e.type)).value,this._minusSign=n.find((e=>"minusSign"===e.type)).value,this._getDigitIndex=e=>i.get(e)}};var j=i(34426);const U=({scale:e,status:t,id:i,icon:n,message:a})=>d.qy`<div class=${(0,r.CP)("validation-container")}><calcite-input-message aria-live=polite .icon=${n} id=${i??d.s6} .scale=${e} .status=${t}>${a}</calcite-input-message></div>`;var W=i(75572);const K=["date","datetime-local","month","number","range","time","week"],G=["email","password","search","tel","text","url"],J=["email","password","search","tel","text","textarea","url"];function X(e,t,i,n){const a=i.toLowerCase(),r=e[i];n&&null!=r?t.setAttribute(a,`${r}`):t.removeAttribute(a)}const Y="editing-enabled",Q="inline-child",Z="number-button-item--horizontal",ee="wrapper",te="number-button-item",ie="has-suffix",ne="has-prefix",ae="inputValidationMessage",re={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"},se=o.AH`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) textarea{block-size:1.5rem;min-block-size:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) input[type=file]{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=s]) textarea{block-size:auto;padding-block:.25rem;padding-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) textarea{min-block-size:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) input[type=file]{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=m]) textarea{block-size:auto;padding-block:.5rem;padding-inline:.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) textarea{min-block-size:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) input[type=file]{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([scale=l]) textarea{block-size:auto;padding-block:.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([disabled]) textarea{resize:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}textarea,input{position:relative;margin:0;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;text-overflow:ellipsis;border-width:1px;border-style:solid;font-family:inherit;font-weight:var(--calcite-font-weight-normal);border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-text-color, var(--calcite-color-text-1));transition:var(--calcite-animation-timing),block-size 0,outline-offset 0s;-webkit-appearance:none}textarea:placeholder-shown,input:placeholder-shown{text-overflow:ellipsis}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-placeholder-text-color, var(--calcite-color-text-3))}textarea{border-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}input{border-start-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}.has-prefix input{border-start-start-radius:0;border-end-start-radius:0}.has-suffix input,.element-wrapper:has(.clear-button) input,:host([number-button-type=vertical][type=number]) input,:host([number-button-type=horizontal]) .has-suffix .suffix,:host([number-button-type=vertical][type=number]) .has-suffix .suffix,:host([number-button-type=vertical][type=number]) .clear-button,:host([number-button-type=horizontal][type=number]) .clear-button{border-start-end-radius:0;border-end-end-radius:0}:host([number-button-type=horizontal]) input{border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:0;border-end-end-radius:0}.has-prefix .prefix:first-child,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=down]{border-start-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}.has-suffix .suffix,:host([number-button-type=vertical][type=number][read-only]) .has-suffix .suffix,:host([clearable]) .clear-button,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=up]{border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}:host([clearable]) .has-suffix .clear-button{border-end-end-radius:0;border-start-end-radius:0}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px;border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]{border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}input:focus,textarea:focus{border-color:var(--calcite-color-brand);color:var(--calcite-input-text-color, var(--calcite-color-text-1))}input[readonly],textarea[readonly]{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-input-background-color, var(--calcite-color-background))}input[readonly]:focus,textarea[readonly]:focus{color:var(--calcite-input-text-color, var(--calcite-color-text-1))}textarea,input{outline-color:transparent}textarea:focus,input:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([status=invalid]) input,:host([status=invalid]) textarea{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) input:focus,:host([status=invalid]) textarea:focus{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .icon{inset-inline-start:.5rem}:host([scale=m]) .icon{inset-inline-start:.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}.icon{pointer-events:none;position:absolute;display:block;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-icon-color, var(--calcite-color-text-3));z-index:var(--calcite-z-index)}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;block-size:0px;inline-size:0px}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;order:4;margin:0;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1));border-inline-start-width:0px}.clear-button calcite-icon{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.clear-button:hover{background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.clear-button:hover calcite-icon{color:var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.clear-button:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.clear-button:active calcite-icon{color:var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.clear-button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block;--calcite-progress-background-color: var(--calcite-input-loading-background-color);--calcite-progress-fill-color: var(--calcite-input-loading-fill-color)}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;font-weight:var(--calcite-font-weight-medium);line-height:1;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input))}.prefix{order:2;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto);background-color:var(--calcite-input-prefix-background-color, var(--calcite-color-background));color:var(--calcite-input-prefix-text-color, var(--calcite-color-text-2))}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto);background-color:var(--calcite-input-suffix-background-color, var(--calcite-color-background));color:var(--calcite-input-suffix-text-color, var(--calcite-color-text-2))}:host([alignment=start]) textarea,:host([alignment=start]) input{text-align:start}:host([alignment=end]) textarea,:host([alignment=end]) input{text-align:end}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0}.number-button-wrapper{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input,:host([number-button-type=vertical]) textarea{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal{border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));order:1;max-block-size:100%;min-block-size:100%;align-self:stretch;border-width:1px;border-style:solid}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=up]{border-inline-start-width:0px;order:5}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:1px;border-style:solid;background-color:var(--calcite-color-foreground-1);padding-block:0px;padding-inline:.5rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1));border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.number-button-item:hover{background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.number-button-item:hover calcite-icon{color:var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.number-button-item:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.number-button-item:active calcite-icon{color:var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center;border-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));box-shadow:var(--calcite-input-shadow, var(--calcite-shadow-none))}input[type=date]::-webkit-input-placeholder{visibility:hidden!important}:host([type=color]) input{padding:.25rem}:host([type=file]) input{cursor:pointer;border-width:1px;border-style:dashed;background-color:var(--calcite-color-foreground-1);text-align:center;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input))}:host([type=file][scale=s]) input{padding-block:1px;padding-inline:.5rem}:host([type=file][scale=m]) input{padding-block:.25rem;padding-inline:.75rem}:host([type=file][scale=l]) input{padding-block:.5rem;padding-inline:1rem}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`;class oe extends r.WF{constructor(){super(),this.actionWrapperEl=(0,v._)(),this.attributeWatch=(0,f.oW)(["autofocus","enterkeyhint","inputmode","spellcheck"],this.handleGlobalAttributesChanged),this.childElType="input",this.inputWrapperEl=(0,v._)(),this.onHiddenFormInputInput=e=>{e.target.name===this.name&&this.setValue({value:e.target.value,origin:"direct"}),this.setFocus(),e.stopPropagation()},this.previousValueOrigin="initial",this.userChangedValue=!1,this._value="",this.slottedActionElDisabledInternally=!1,this.alignment="start",this.clearable=!1,this.disabled=!1,this.editingEnabled=!1,this.groupSeparator=!1,this.iconFlipRtl=!1,this.loading=!1,this.localeFormat=!1,this.messages=(0,W.u)(),this.multiple=!1,this.numberButtonType="vertical",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.type="text",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputChange=(0,r.lh)({cancelable:!1}),this.calciteInputInput=(0,r.lh)(),this.calciteInternalInputBlur=(0,r.lh)({cancelable:!1}),this.calciteInternalInputFocus=(0,r.lh)({cancelable:!1}),this.listen("click",this.clickHandler),this.listen("keydown",this.keyDownHandler)}static{this.properties={displayedValue:16,slottedActionElDisabledInternally:16,accept:1,alignment:3,autocomplete:0,clearable:7,disabled:7,editingEnabled:7,files:0,form:3,groupSeparator:7,icon:[3,{converter:r.pf}],iconFlipRtl:7,label:1,loading:7,localeFormat:5,max:11,maxLength:11,messageOverrides:0,min:11,minLength:11,multiple:5,name:3,numberButtonType:3,numberingSystem:3,pattern:1,placeholder:1,prefixText:1,readOnly:7,required:7,scale:3,status:3,step:3,suffixText:1,type:3,validationIcon:[3,{converter:r.pf}],validationMessage:1,validity:0,value:1}}static{this.styles=se}get isClearable(){return!this.isTextarea&&(this.clearable||"search"===this.type)&&this.value?.length>0}get isTextarea(){return"textarea"===this.childElType}get value(){return this._value}set value(e){const t=this._value;e!==t&&(this._value=e,this.valueWatcher(e,t),e&&""===this._value&&this.setValue({origin:"reset",value:t}))}async selectText(){"number"===this.type?this.childNumberEl?.select():this.childEl?.select()}async setFocus(){await(0,w.c)(this),(0,s.h)("number"===this.type?this.childNumberEl:this.childEl)}connectedCallback(){super.connectedCallback(),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),(0,$.c)(this),(0,y.c)(this),this.el.addEventListener(y.i,this.onHiddenFormInputInput)}async load(){(0,w.s)(this),this.childElType="textarea"===this.type?"textarea":"input",this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=(0,s.v)(re,this.icon,this.type),this.setPreviousEmittedValue(this.value),this.setPreviousValue(this.value),"number"===this.type&&("Infinity"===this.value||"-Infinity"===this.value?(this.displayedValue=this.value,this.previousEmittedValue=this.value):(this.warnAboutInvalidNumberValue(this.value),this.setValue({origin:"connected",value:C(this.value)?this.value:""})))}willUpdate(e){e.has("max")&&(this.maxString=this.max?.toString()||null),e.has("min")&&(this.minString=this.min?.toString()||null),(e.has("icon")||e.has("type")&&(this.hasUpdated||"text"!==this.type))&&(this.requestedIcon=(0,s.v)(re,this.icon,this.type))}updated(){(0,x.u)(this)}loaded(){(0,w.a)(this)}disconnectedCallback(){super.disconnectedCallback(),(0,$.d)(this),(0,y.d)(this),this.el.removeEventListener(y.i,this.onHiddenFormInputInput)}handleGlobalAttributesChanged(){this.requestUpdate()}valueWatcher(e,t){if(!this.userChangedValue){if("number"===this.type&&("Infinity"===e||"-Infinity"===e))return this.displayedValue=e,void(this.previousEmittedValue=e);this.setValue({origin:"direct",previousValue:t,value:null==e||""==e?"":"number"===this.type?C(e)?e:this.previousValue||"":e}),this.warnAboutInvalidNumberValue(e)}this.userChangedValue=!1}keyDownHandler(e){this.readOnly||this.disabled||e.defaultPrevented||(this.isClearable&&"Escape"===e.key&&(this.clearInputValue(e),e.preventDefault()),"Enter"===e.key&&(0,y.s)(this)&&e.preventDefault())}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(e,t,i,n){const{value:a}=this;if("Infinity"===a||"-Infinity"===a)return;const r="up"===e?1:-1,s="any"===this.step?1:Math.abs(this.step||1),o=new z(""!==a?a:"0").add(""+s*r),l="number"==typeof i&&!isNaN(i)&&o.subtract(`${i}`).isNegative?`${i}`:"number"!=typeof t||isNaN(t)||o.subtract(`${t}`).isNegative?o.toString():`${t}`;this.setValue({committing:!0,nativeEvent:n,origin:"user",value:l})}clearInputValue(e){this.setValue({committing:!0,nativeEvent:e,origin:"user",value:""})}emitChangeIfUserModified(){"user"===this.previousValueOrigin&&this.value!==this.previousEmittedValue&&(this.calciteInputChange.emit(),this.setPreviousEmittedValue(this.value))}inputBlurHandler(){window.clearInterval(this.nudgeNumberValueIntervalId),this.calciteInternalInputBlur.emit(),this.emitChangeIfUserModified()}clickHandler(e){if(this.disabled)return;const t=e.composedPath();!t.includes(this.inputWrapperEl.value)||t.includes(this.actionWrapperEl.value)||this.setFocus()}inputFocusHandler(){this.calciteInternalInputFocus.emit()}inputChangeHandler(){"file"===this.type&&(this.files=this.childEl.files)}inputInputHandler(e){this.disabled||this.readOnly||this.setValue({nativeEvent:e,origin:"user",value:e.target.value})}inputKeyDownHandler(e){this.disabled||this.readOnly||"Enter"===e.key&&this.emitChangeIfUserModified()}inputNumberInputHandler(e){if(this.disabled||this.readOnly||"Infinity"===this.value||"-Infinity"===this.value)return;const t=e.target.value;R.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};const i=R.delocalize(t);"insertFromPaste"===e.inputType?(C(i)||e.preventDefault(),this.setValue({nativeEvent:e,origin:"user",value:V(i)}),this.childNumberEl.value=this.displayedValue):this.setValue({nativeEvent:e,origin:"user",value:i})}inputNumberKeyDownHandler(e){if("number"!==this.type||this.disabled||this.readOnly)return;if("Infinity"===this.value||"-Infinity"===this.value)return e.preventDefault(),void(("Backspace"===e.key||"Delete"===e.key)&&this.clearInputValue(e));if("ArrowUp"===e.key)return e.preventDefault(),void this.nudgeNumberValue("up",e);if("ArrowDown"===e.key)return void this.nudgeNumberValue("down",e);const t=[...k.n,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(e.altKey||e.ctrlKey||e.metaKey)return;const i=e.shiftKey&&"Tab"===e.key;t.includes(e.key)||i?"Enter"===e.key&&this.emitChangeIfUserModified():(R.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},(e.key!==R.decimal||!(!this.value&&!this.childNumberEl.value||this.value&&-1===this.childNumberEl.value.indexOf(R.decimal)))&&(/[eE]/.test(e.key)&&(!this.value&&!this.childNumberEl.value||this.value&&!/[eE]/.test(this.childNumberEl.value))||"-"===e.key&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.split("-").length<=2)||e.preventDefault()))}nudgeNumberValue(e,t){if(t instanceof KeyboardEvent&&t.repeat||"number"!==this.type)return;const i=this.maxString?parseFloat(this.maxString):null,n=this.minString?parseFloat(this.minString):null;this.incrementOrDecrementNumberValue(e,i,n,t),this.nudgeNumberValueIntervalId&&window.clearInterval(this.nudgeNumberValueIntervalId);let a=!0;this.nudgeNumberValueIntervalId=window.setInterval((()=>{a?a=!1:this.incrementOrDecrementNumberValue(e,i,n,t)}),150)}numberButtonPointerUpAndOutHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}numberButtonPointerDownHandler(e){if(!(0,s.i)(e))return;e.preventDefault();const t=e.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(t,e)}syncHiddenFormInput(e){!function(e,t,i){i.type="textarea"===e?"text":e;const n=K.includes(e),a=t;X(a,i,"min",n),X(a,i,"max",n),X(a,i,"step",n);const r=J.includes(e),s=t;X(s,i,"minLength",r),X(s,i,"maxLength",r),X(s,i,"pattern",G.includes(e))}(this.type,this,e)}setChildElRef(e){this.childEl=e}setChildNumberElRef(e){this.childNumberEl=e}setInputValue(e){"number"===this.type&&this.childNumberEl?this.childNumberEl.value=e:this.childEl&&(this.childEl.value=e)}setPreviousEmittedValue(e){this.previousEmittedValue=this.normalizeValue(e)}normalizeValue(e){return"number"===this.type?C(e)?e:"":e}setPreviousValue(e){this.previousValue=this.normalizeValue(e)}setValue({committing:e=!1,nativeEvent:t,origin:i,previousValue:n,value:a}){if(this.setPreviousValue(n??this.value),this.previousValueOrigin=i,"number"===this.type){R.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator,signDisplay:"never"};const e=this.previousValue?.length>a.length||this.value?.length>a.length,t="."===a.charAt(a.length-1),n=t&&e?a:D(a),r=a&&!n?C(this.previousValue)?this.previousValue:"":n;let s=R.localize(r);"connected"!==i&&!t&&(s=function(e,t,i){const n=t.split(".")[1];if(n){const a=n.match(L)[0];if(a&&i.delocalize(e).length!==t.length&&-1===n.indexOf("e")){const t=i.decimal;return(e=e.includes(t)?e:`${e}${t}`).padEnd(e.length+a.length,i.localize("0"))}}return e}(s,r,R)),this.displayedValue=t&&e?`${s}${R.decimal}`:s,this.userChangedValue="user"===i&&this.value!==r,this.value=["-","."].includes(r)?"":r}else this.userChangedValue="user"===i&&this.value!==a,this.value=a;"direct"===i&&(this.setInputValue(a),this.previousEmittedValue=a),t&&(this.calciteInputInput.emit().defaultPrevented?(this.value=this.previousValue,this.displayedValue="number"===this.type?R.localize(this.previousValue):this.previousValue):e&&this.emitChangeIfUserModified())}inputKeyUpHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}warnAboutInvalidNumberValue(e){"number"===this.type&&e&&!C(e)&&console.warn(`The specified value "${e}" cannot be parsed, or is out of range.`)}render(){const e=(0,s.g)(this.el),t=a.qy`<div class=${(0,r.CP)("loader")}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`,i=a.qy`<button .ariaLabel=${this.messages.clear} class=${(0,r.CP)("clear-button")} .disabled=${this.disabled||this.readOnly} @click=${this.clearInputValue} tabindex=-1 type=button><calcite-icon icon=x .scale=${(0,j.g)(this.scale)}></calcite-icon></button>`,o=a.qy`<calcite-icon class=${(0,r.CP)("icon")} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${(0,j.g)(this.scale)}></calcite-icon>`,l="horizontal"===this.numberButtonType,c=a.qy`<button aria-hidden=true class=${(0,r.CP)({[te]:!0,[Z]:l})} data-adjustment=up .disabled=${this.disabled||this.readOnly} @pointerdown=${this.numberButtonPointerDownHandler} @pointerout=${this.numberButtonPointerUpAndOutHandler} @pointerup=${this.numberButtonPointerUpAndOutHandler} tabindex=-1 type=button><calcite-icon icon=chevron-up .scale=${(0,j.g)(this.scale)}></calcite-icon></button>`,u=a.qy`<button aria-hidden=true class=${(0,r.CP)({[te]:!0,[Z]:l})} data-adjustment=down .disabled=${this.disabled||this.readOnly} @pointerdown=${this.numberButtonPointerDownHandler} @pointerout=${this.numberButtonPointerUpAndOutHandler} @pointerup=${this.numberButtonPointerUpAndOutHandler} tabindex=-1 type=button><calcite-icon icon=chevron-down .scale=${(0,j.g)(this.scale)}></calcite-icon></button>`,d=a.qy`<div class=${(0,r.CP)("number-button-wrapper")}>${c}${u}</div>`,p=a.qy`<div class=${(0,r.CP)("prefix")}>${this.prefixText}</div>`,h=a.qy`<div class=${(0,r.CP)("suffix")}>${this.suffixText}</div>`,f=this.el.autofocus,k=this.el.enterKeyHint,w=this.el.inputMode,E="number"===this.type?(0,b.D)("localized-input",a.qy`<input accept=${this.accept??a.s6} aria-errormessage=${ae} .ariaInvalid=${"invalid"===this.status} .ariaLabel=${(0,$.g)(this)} autocomplete=${this.autocomplete??a.s6} .autofocus=${f} value=${this.defaultValue??a.s6} .disabled=${!!this.disabled||null} enterkeyhint=${k??a.s6} inputmode=${w??a.s6} maxlength=${this.maxLength??a.s6} minlength=${this.minLength??a.s6} .multiple=${this.multiple} name=${a.s6} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputNumberInputHandler} @keydown=${this.inputNumberKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??a.s6} placeholder=${(this.placeholder||"")??a.s6} .readOnly=${this.readOnly} type=text .value=${(0,m.V)(this.displayedValue??"")} ${(0,v.K)(this.setChildNumberElRef)}>`):null,I="input"===this.childElType?g.eu`input`:g.eu`textarea`,z="number"!==this.type?g.qy`<${I} accept=${this.accept??a.s6} aria-errormessage=${ae} .ariaInvalid=${"invalid"===this.status} .ariaLabel=${(0,$.g)(this)} autocomplete=${this.autocomplete??a.s6} .autofocus=${f} class=${(0,r.CP)({[Y]:this.editingEnabled,[Q]:!!this.inlineEditableEl})} .defaultValue=${this.defaultValue??""} .disabled=${!!this.disabled||null} enterkeyhint=${k??a.s6} inputmode=${w??a.s6} max=${this.maxString??a.s6} maxlength=${this.maxLength??a.s6} min=${this.minString??a.s6} minlength=${this.minLength??a.s6} .multiple=${this.multiple} name=${this.name??a.s6} @blur=${this.inputBlurHandler} @change=${this.inputChangeHandler} @focus=${this.inputFocusHandler} @input=${this.inputInputHandler} @keydown=${this.inputKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??a.s6} placeholder=${(this.placeholder||"")??a.s6} .readOnly=${this.readOnly} .required=${!!this.required||null} spellcheck=${this.el.spellcheck??a.s6} step=${this.step??a.s6} tabindex=${(this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null)??a.s6} type=${this.type??a.s6} .value=${(0,m.V)(this.value??"")} ${(0,v.K)(this.setChildElRef)}></${I}>`:null;return(0,x.I)({disabled:this.disabled,children:a.qy`<div class=${(0,r.CP)({[ee]:!0,[n.C.rtl]:"rtl"===e,[ie]:this.suffixText,[ne]:this.prefixText})} ${(0,v.K)(this.inputWrapperEl)}>${"number"!==this.type||"horizontal"!==this.numberButtonType||this.readOnly?null:u}${this.prefixText?p:null}<div class=${(0,r.CP)("element-wrapper")}>${E}${z}${this.isClearable?i:null}${this.requestedIcon?o:null}${this.loading?t:null}</div><div class=${(0,r.CP)("action-wrapper")} ${(0,v.K)(this.actionWrapperEl)}><slot name=${"action"}></slot></div>${"number"!==this.type||"vertical"!==this.numberButtonType||this.readOnly?null:d}${this.suffixText?h:null}${"number"!==this.type||"horizontal"!==this.numberButtonType||this.readOnly?null:c}${(0,y.H)({component:this})}</div>${this.validationMessage&&"invalid"===this.status?U({icon:this.validationIcon,id:ae,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}}(0,n.c)("calcite-input",oe)},18394:(e,t,i)=>{i.d(t,{D:()=>s});var n=i(36752),a=i(7804),r=i(18504);const s=(0,a.u$)(class extends a.WL{constructor(){super(...arguments),this.key=n.s6}render(e,t){return this.key=e,t}update(e,[t,i]){return t!==this.key&&((0,r.mY)(e),this.key=t),i}})},52567:(e,t,i)=>{i.d(t,{Bk:()=>s,eu:()=>o,qy:()=>u});var n=i(36752);const a=Symbol.for(""),r=e=>{if(e?.r===a)return e?._$litStatic$},s=e=>({_$litStatic$:e,r:a}),o=(e,...t)=>({_$litStatic$:t.reduce(((t,i,n)=>t+(e=>{if(void 0!==e._$litStatic$)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(i)+e[n+1]),e[0]),r:a}),l=new Map,c=e=>(t,...i)=>{const n=i.length;let a,s;const o=[],c=[];let u,d=0,p=!1;for(;d<n;){for(u=t[d];d<n&&void 0!==(s=i[d],a=r(s));)u+=a+t[++d],p=!0;d!==n&&c.push(s),o.push(u),d++}if(d===n&&o.push(t[n]),p){const e=o.join("$$lit$$");void 0===(t=l.get(e))&&(o.raw=o,l.set(e,t=o)),i=c}return e(t,...i)},u=c(n.qy);c(n.JW),c(n.ej)}}]);
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.87
4
+ * v3.0.0-next.90
5
5
  */
6
6
 
7
7
  /**
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7561],{57561:(e,t,i)=>{i.r(t),i.d(t,{default:()=>j});var r,o=i(90237),s=i(59456),n=i(66552),l=i(25482),p=i(4718),a=i(10107),d=i(56507),u=i(40608),y=i(43937),h=i(65864);i(44208),i(53966),i(87811);let c=r=class extends l.A{constructor(e){super(e),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new r({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,o._)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"groupByFields",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"topCount",void 0),(0,o._)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"orderByFields",void 0),c=r=(0,o._)([(0,u.$)("esri.rest.support.TopFilter")],c);const v=c;var w,m=i(79677),S=i(16930);const R=new n.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),_=new n.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let M=w=class extends l.A{constructor(e){super(e),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new w((0,p.o8)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,o._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"cacheHint",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],M.prototype,"distance",void 0),(0,o._)([(0,a.MZ)({types:s.yR,json:{read:h.rS,write:!0}})],M.prototype,"geometry",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],M.prototype,"geometryPrecision",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],M.prototype,"maxAllowableOffset",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],M.prototype,"num",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],M.prototype,"objectIds",void 0),(0,o._)([(0,a.MZ)({type:[String],json:{write:!0}})],M.prototype,"orderByFields",void 0),(0,o._)([(0,a.MZ)({type:[String],json:{write:!0}})],M.prototype,"outFields",void 0),(0,o._)([(0,a.MZ)({type:S.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],M.prototype,"outSpatialReference",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],M.prototype,"resultType",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],M.prototype,"returnGeometry",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"returnM",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"returnZ",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],M.prototype,"start",void 0),(0,o._)([(0,y.K)("start"),(0,y.K)("num")],M.prototype,"writeStart",null),(0,o._)([(0,a.MZ)({type:String,json:{read:{source:"spatialRel",reader:R.read},write:{target:"spatialRel",writer:R.write}}})],M.prototype,"spatialRelationship",void 0),(0,o._)([(0,a.MZ)({type:m.A,json:{write:!0}})],M.prototype,"timeExtent",void 0),(0,o._)([(0,a.MZ)({type:v,json:{write:!0}})],M.prototype,"topFilter",void 0),(0,o._)([(0,a.MZ)({type:String,json:{read:_.read,write:{writer:_.write,overridePolicy(e){return{enabled:null!=e&&null!=this.distance&&this.distance>0}}}}})],M.prototype,"units",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],M.prototype,"where",void 0),M=w=(0,o._)([(0,u.$)("esri.rest.support.TopFeaturesQuery")],M),M.from=(0,d.dp)(M);const j=M}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7561],{57561:(e,t,i)=>{i.r(t),i.d(t,{default:()=>j});var r,o=i(90237),s=i(59456),n=i(66552),l=i(25482),p=i(4718),a=i(10107),d=i(56507),u=i(40608),y=i(43937),h=i(65864);i(44208),i(53966),i(87811);let c=r=class extends l.A{constructor(e){super(e),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new r({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,o._)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"groupByFields",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"topCount",void 0),(0,o._)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"orderByFields",void 0),c=r=(0,o._)([(0,u.$)("esri.rest.support.TopFilter")],c);const v=c;var w,m=i(79677),S=i(16930);const R=new n.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),_=new n.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let M=w=class extends l.A{constructor(e){super(e),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new w((0,p.o8)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,o._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"cacheHint",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],M.prototype,"distance",void 0),(0,o._)([(0,a.MZ)({types:s.yR,json:{read:h.rS,write:!0}})],M.prototype,"geometry",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],M.prototype,"geometryPrecision",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],M.prototype,"maxAllowableOffset",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],M.prototype,"num",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],M.prototype,"objectIds",void 0),(0,o._)([(0,a.MZ)({type:[String],json:{write:!0}})],M.prototype,"orderByFields",void 0),(0,o._)([(0,a.MZ)({type:[String],json:{write:!0}})],M.prototype,"outFields",void 0),(0,o._)([(0,a.MZ)({type:S.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],M.prototype,"outSpatialReference",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],M.prototype,"resultType",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],M.prototype,"returnGeometry",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"returnM",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"returnZ",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],M.prototype,"start",void 0),(0,o._)([(0,y.K)("start"),(0,y.K)("num")],M.prototype,"writeStart",null),(0,o._)([(0,a.MZ)({type:String,json:{read:{source:"spatialRel",reader:R.read},write:{target:"spatialRel",writer:R.write}}})],M.prototype,"spatialRelationship",void 0),(0,o._)([(0,a.MZ)({type:m.A,json:{write:!0}})],M.prototype,"timeExtent",void 0),(0,o._)([(0,a.MZ)({type:v,json:{write:!0}})],M.prototype,"topFilter",void 0),(0,o._)([(0,a.MZ)({type:String,json:{read:_.read,write:{writer:_.write,overridePolicy(e){return{enabled:null!=e&&null!=this.distance}}}}})],M.prototype,"units",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],M.prototype,"where",void 0),M=w=(0,o._)([(0,u.$)("esri.rest.support.TopFeaturesQuery")],M),M.from=(0,d.dp)(M);const j=M}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8330,9340],{97927:(e,t,o)=>{o.r(t),o.d(t,{default:()=>V});var i=o(90237),r=o(49186),n=o(4718),s=o(93637),a=o(10107),l=(o(44208),o(53966),o(40608)),p=o(13600),y=o(82935),u=o(66552),c=o(69540),d=o(25482),f=(o(87811),o(69622)),h=o(21325);let m=class extends f.A{set horizontalWKID(e){e?(0,h.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,h.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:o,radialDistortionCoefficients:i,tangentialDistortionCoefficients:r}=this;return e?.length>1&&!Number.isNaN(t)&&o?.length>1&&i?.length>1&&r?.length>1}};(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"horizontalWKID",null),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"verticalWKID",null),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"x",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"y",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"z",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"type",void 0),m=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientation")],m);const g=m;let v=class extends(c.A.ClonableMixin(d.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,heading:s,pitch:a,roll:l,affineTransformations:p,focalLength:y,principalOffsetPoint:u,radialDistortionCoefficients:c,tangentialDistortionCoefficients:d}=this,f=[e,t,o,i,r,n,s,a,l];return this.isAdvanced&&(p?.forEach((e=>f.push(e))),f.push(y),u?.forEach((e=>f.push(e))),c?.forEach((e=>f.push(e))),d?.forEach((e=>f.push(e)))),f.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,i._)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"heading",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationHPR")],v);const w=v;let _=class extends(c.A.ClonableMixin(d.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:o,ellipsoidRadius:i,squaredEccentricity:r,properties:n}=this,s=`${n}`.split("|");return s.splice(1,1),`${e}|${t}|${o}|${i}|${r}|${s.join("|")}`}};(0,i._)([(0,a.MZ)({json:{write:!0}})],_.prototype,"type",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],_.prototype,"latitude",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],_.prototype,"longitude",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],_.prototype,"ellipsoidRadius",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],_.prototype,"squaredEccentricity",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],_.prototype,"properties",void 0),_=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationLTP")],_);const M=_;let j=class extends(c.A.ClonableMixin(d.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,omega:s,phi:a,kappa:l,affineTransformations:p,focalLength:y,principalOffsetPoint:u,radialDistortionCoefficients:c,tangentialDistortionCoefficients:d}=this,f=[e,t,o,i,r,n,s,a,l];return this.isAdvanced&&(p?.forEach((e=>f.push(e))),f.push(y),u?.forEach((e=>f.push(e))),c?.forEach((e=>f.push(e))),d?.forEach((e=>f.push(e)))),f.map((e=>isNaN(e)?"":e)).join("|")}};(0,i._)([(0,a.MZ)({json:{write:!0}})],j.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],j.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],j.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],j.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],j.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"omega",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"phi",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"kappa",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"x",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"y",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"z",void 0),j=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationOPK")],j);const Z=j;let x=class extends(c.A.ClonableMixin(d.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:o,radialDistortionCoefficients:i,tangentialDistortionCoefficients:r}=this;return e?.length>1||!Number.isNaN(t)||o?.length>1||i?.length>1||r?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,yaw:s,pitch:a,roll:l,affineTransformations:p,focalLength:y,principalOffsetPoint:u,radialDistortionCoefficients:c,tangentialDistortionCoefficients:d}=this,f=[e,t,o,i,r,n,s,a,l];return this.isAdvanced&&(p?.forEach((e=>f.push(e))),f.push(y),u?.forEach((e=>f.push(e))),u?.forEach((e=>f.push(e))),c?.forEach((e=>f.push(e))),d?.forEach((e=>f.push(e)))),f.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,i._)([(0,a.MZ)({json:{write:!0}})],x.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"yaw",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"pitch",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"roll",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"x",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"y",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"z",void 0),x=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationYPR")],x);const P=x;var N;!function(e){e[e.HPR=1]="HPR",e[e.OPK=2]="OPK",e[e.YPR=3]="YPR",e[e.LTP=4]="LTP"}(N||(N={}));const b=new Map;b.set(`${N.OPK}`,{desc:"Using Omega Phi Kappa",constructor:Z}),b.set(`${N.HPR}`,{desc:"Using Heading, Pitch and Roll",constructor:w}),b.set(`${N.YPR}`,{desc:"Using Yaw, Pitch and Roll",constructor:P}),b.set(`${N.LTP}`,{desc:"Using Local Tangent Plane",constructor:M});let S=class extends(c.A.ClonableMixin(d.A)){constructor(){super(...arguments),this.url=null}};(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],S.prototype,"lod",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"rasterFunction",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"url",void 0),S=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],S);let O=class extends(c.A.ClonableMixin(d.A)){constructor(){super(...arguments),this.constantElevation=null}};function D(e,t,o){return e?null!=(i=e)&&"number"==typeof i.constantElevation?new O(e):function(e,t,o){let{url:i}=e;return i?(i=function(e,t,o){return t&&(e=`${t}${e}`),o&&(e+=`${o}`),e}(i,t,o),new S({...e,url:i})):null}(e,t,o):e;var i}(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],O.prototype,"constantElevation",void 0),O=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],O);const I=new u.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),A=new u.J({Feet:"feet",Meter:"meter"}),T=new u.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique","":null}),R=new Map;R.set(`${N.HPR}`,(function(e){const[t,o,i,r,n,s,a,l,p,y,u,c,d,f,h,m,g,v,w,_,M,j]=e.slice(1);return{horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,heading:s,pitch:a,roll:l,...C([p,y,u,c,d,f],[m,g],[v,w,_],[M,j],h)}})),R.set(`${N.YPR}`,(function(e){const[t,o,i,r,n,s,a,l,p,y,u,c,d,f,h,m,g,v,w,_,M,j]=e.slice(1);return{horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,yaw:s,pitch:a,roll:l,...C([p,y,u,c,d,f],[m,g],[v,w,_],[M,j],h)}})),R.set(`${N.OPK}`,(function(e){const[t,o,i,r,n,s,a,l,p,y,u,c,d,f,h,m,g,v,w,_,M,j]=e.slice(1);return{horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,omega:s,phi:a,kappa:l,...C([p,y,u,c,d,f],[m,g],[v,w,_],[M,j],h)}})),R.set(`${N.LTP}`,(function(e){const[t,o,i,r,n,...s]=e.slice(1),a=R.get(n),l=b.get(n)?.constructor;return a&&l?{latitude:t,longitude:o,ellipsoidRadius:i,squaredEccentricity:r,properties:new l(a([n,"",...s]))}:null}));const z=e=>{const t=e.map((e=>parseFloat(e))).filter((e=>!isNaN(e)));if(t.length===e.length)return t};function C(e,t,o,i,r){const n=z(e),s=z(t),a=z(o),l=z(i);return{affineTransformations:6===n?.length?n:void 0,focalLength:6===n?.length?parseFloat(r):void 0,principalOffsetPoint:2!==s?.length?[0,0]:s,radialDistortionCoefficients:3!==a?.length?[0,0,0]:a,tangentialDistortionCoefficients:2!==l?.length?[0,0]:l}}var E=o(79677),$=o(92935);const K=new Set(["demPathPrefix","demPathSuffix","depthImagePathPrefix","depthImagePathSuffix","elevationSource","horizontalMeasurementUnit","verticalMeasurementUnit","videoPathPrefix","videoPathSuffix","timeAnimation","visibilityTimeExtent"]),L=(e,t)=>!K.has(t)&&e;function F(e,t,o,i){const{name:r,write:n,read:s}=((e,t,o)=>{const i=`orientedImageryProperties.${e}`;return{name:i,write:t?{ignoreOrigin:!0,target:i,writer:t}:{ignoreOrigin:!0},read:o?{ignoreOrigin:!0,source:i,reader:o}:{ignoreOrigin:!0}}})(e,t,o),a={name:r,write:n,read:s,origins:{service:{name:`orientedImageryInfo.${r}`,write:t,read:o},"web-scene":{name:r,write:L(n,e),read:L(s,e)},"web-map":{name:r,write:n,read:s}}};return i&&a.origins?(a.type=i,a.origins["web-map"].type=i,a.origins["web-scene"].type=i,a):a}let W=class extends p.default{constructor(){super(...arguments),this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),this.type="oriented-imagery",this.timeIntervalUnit="days",this.useViewTime=!0,this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.videoPathPrefix=null,this.videoPathSuffix=null,this.visibilityTimeExtent=null}get effectiveElevationSource(){const{elevationSource:e,demPathPrefix:t,demPathSuffix:o}=this;return D(e,t,o)}async save(e){return this._debouncedSaveOperations($.X.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations($.X.SAVE_AS,t,e)}findFirstValidLayerId(e){return e.layers?.find((e=>this.supportedSourceTypes.has(e.type)))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new r.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};var J;(0,i._)([(0,a.MZ)({type:Number,json:F("cameraHeading")})],W.prototype,"cameraHeading",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("cameraHeight")})],W.prototype,"cameraHeight",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("cameraPitch")})],W.prototype,"cameraPitch",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("cameraRoll")})],W.prototype,"cameraRoll",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("coveragePercent")})],W.prototype,"coveragePercent",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("demPathPrefix")})],W.prototype,"demPathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("demPathSuffix")})],W.prototype,"demPathSuffix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("depthImagePathPrefix")})],W.prototype,"depthImagePathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("depthImagePathSuffix")})],W.prototype,"depthImagePathSuffix",void 0),(0,i._)([(0,a.MZ)({type:Object,json:F("elevationSource")})],W.prototype,"elevationSource",void 0),(0,i._)([(0,a.MZ)({readOnly:!0})],W.prototype,"effectiveElevationSource",null),(0,i._)([(0,a.MZ)({type:Number,json:F("farDistance")})],W.prototype,"farDistance",void 0),(0,i._)([(0,a.MZ)()],W.prototype,"geometryType",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("horizontalFieldOfView")})],W.prototype,"horizontalFieldOfView",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("horizontalMeasurementUnit")})],W.prototype,"horizontalMeasurementUnit",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("imagePathPrefix")})],W.prototype,"imagePathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("imagePathSuffix")})],W.prototype,"imagePathSuffix",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("imageRotation")})],W.prototype,"imageRotation",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("maximumDistance")})],W.prototype,"maximumDistance",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("nearDistance")})],W.prototype,"nearDistance",void 0),(0,i._)([(0,a.MZ)({type:["OrientedImageryLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0}}}}})],W.prototype,"operationalLayerType",void 0),(0,i._)([(0,a.MZ)({json:{...F("orientationAccuracy",((e,t,o)=>{(0,s.sM)(o,e.join(";"),t)}),(e=>{const t=e?.split(";")?.map(Number);return function(e){return Array.isArray(e)&&9===e?.length&&!e.some(isNaN)}(t)?t:[0,0,0,0,0,0,0,0,0]}),String)}})],W.prototype,"orientationAccuracy",void 0),(0,i._)([(0,a.MZ)({json:{...F("orientedImageryType",T.write,T.read,T.jsonValues.slice(1))}})],W.prototype,"orientedImageryType",void 0),(0,i._)([(0,a.MZ)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],W.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:I.apiValues,json:{...F("timeIntervalUnit",I.write,I.read,I.jsonValues)}})],W.prototype,"timeIntervalUnit",void 0),(0,i._)([(0,a.MZ)((J=(0,n.o8)(y.B),J.json?(J.json.origins=J.json.origins??{},J.json.origins["web-scene"]={write:!1,read:!1},J):J))],W.prototype,"useViewTime",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("verticalFieldOfView")})],W.prototype,"verticalFieldOfView",void 0),(0,i._)([(0,a.MZ)({type:A.apiValues,json:{...F("verticalMeasurementUnit",A.write,A.read,A.jsonValues)}})],W.prototype,"verticalMeasurementUnit",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("videoPathPrefix")})],W.prototype,"videoPathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("videoPathSuffix")})],W.prototype,"videoPathSuffix",void 0),(0,i._)([(0,a.MZ)({type:E.A,json:{origins:{"web-scene":{write:!1,read:!1}}}})],W.prototype,"visibilityTimeExtent",void 0),W=(0,i._)([(0,l.$)("esri.layers.OrientedImageryLayer")],W);const V=W},32756:(e,t,o)=>{o.d(t,{Rr:()=>l,fY:()=>y,ne:()=>p});var i=o(90237),r=o(93637),n=o(10107),s=(o(44208),o(53966),o(87811),o(40608)),a=o(91880);function l(e,t,o){if(!e)return null;const i=e.find((e=>!!e.field));if(!i)return null;const r=new a.A;return r.read(i,o),[r]}const p={type:[a.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,o,i){const n=e.find((e=>!!e.field));n&&(0,r.sM)(o,[n.toJSON()],t)}}}},y=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,i._)([(0,n.MZ)(p)],t.prototype,"orderBy",void 0),t=(0,i._)([(0,s.$)("esri.layers.mixins.OrderedLayer")],t),t}},33143:(e,t,o)=>{o.d(t,{A:()=>d});var i=o(90237),r=o(69540),n=o(25482),s=o(10107),a=(o(44208),o(53966),o(87811),o(36005)),l=o(40608),p=o(43937),y=o(80451),u=o(29005);let c=class extends(r.A.ClonableMixin(n.A)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const o of Object.keys(e))t[o]=(0,y.rS)(e[o]);return t}writeDomains(e,t){const o={};for(const t of Object.keys(e))e[t]&&(o[t]=e[t]?.toJSON());t.domains=o}};(0,i._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"id",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"domains",void 0),(0,i._)([(0,a.w)("domains")],c.prototype,"readDomains",null),(0,i._)([(0,p.K)("domains")],c.prototype,"writeDomains",null),(0,i._)([(0,s.MZ)({type:[u.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,i._)([(0,l.$)("esri.layers.support.FeatureType")],c);const d=c},91880:(e,t,o)=>{o.d(t,{A:()=>u});var i,r=o(90237),n=o(66552),s=o(25482),a=o(10107),l=(o(44208),o(53966),o(87811),o(40608));const p=new n.J({asc:"ascending",desc:"descending"});let y=i=class extends s.A{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],y.prototype,"valueExpression",void 0),(0,r._)([(0,a.MZ)({type:p.apiValues,json:{type:p.jsonValues,read:p.read,write:p.write}})],y.prototype,"order",void 0),y=i=(0,r._)([(0,l.$)("esri.layers.support.OrderByInfo")],y);const u=y},58501:(e,t,o)=>{o.d(t,{q:()=>r});var i=o(62815);function r(e,t,o){if(!o?.features||!o.hasZ)return;const r=(0,i.N)(o.geometryType,t,e.outSpatialReference);if(null!=r)for(const e of o.features)r(e.geometry)}},22671:(e,t,o)=>{o.d(t,{A:()=>w});var i,r=o(90237),n=o(59456),s=o(52106),a=o(66552),l=o(25482),p=o(4718),y=o(10107),u=(o(44208),o(53966),o(36005)),c=o(40608),d=o(43937),f=o(16930),h=o(65864),m=o(20437);const g=new a.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends l.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const o=f.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const r=e[t],n=s.A.fromJSON(r),a=r.geometry?.spatialReference;null==n.geometry||a||(n.geometry.spatialReference=o);const l=r.aggregateGeometries,p=n.aggregateGeometries;if(l&&null!=p)for(const e in p){const t=p[e],i=l[e],r=i?.spatialReference;null==t||r||(t.spatialReference=o)}i.push(n)}return i}writeGeometryType(e,t,o,i){if(e)return void g.write(e,t,o,i);const{features:r}=this;if(r)for(const e of r)if(null!=e?.geometry)return void g.write(e.geometry.type,t,o,i)}readQueryGeometry(e,t){if(!e)return null;const o=!!e.spatialReference,i=(0,h.rS)(e);return i&&!o&&t.spatialReference&&(i.spatialReference=f.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:o}=this;if(o)for(const e of o)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,p.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let o=0;o<t.features.length;o++){const i=t.features[o];if(i.geometry){const t=e?.[o];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,o],translate:[i,r]}=e,n=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((r-e)/o)));for(let e=0,t=n.length;e<t;e++)s?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:o}=this;if(!o)return this;const{translate:[i,r],scale:[n,s]}=o;let a=null,l=null;if(this.hasZ&&null!=o?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=o;a=o=>o*t+e}if(this.hasM&&null!=o?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=o;l=o=>null==o?o:o*t+e}const p=this._getHydrationFunction(e,(e=>e*n+i),(e=>r-e*s),a,l);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}_quantizePoints(e,t,o){let i,r;const n=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=o(a[1]);e===i&&s===r||(n.push([e-i,s-r]),i=e,r=s)}else i=t(a[0]),r=o(a[1]),n.push([i,r])}return n.length>0?n:null}_getQuantizationFunction(e,t,o){return"point"===e?e=>(e.x=t(e.x),e.y=o(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,h.Bi)(e)?e.rings:e.paths,r=[];for(let e=0,n=i.length;e<n;e++){const n=i[e],s=this._quantizePoints(n,t,o);s&&r.push(s)}return r.length>0?((0,h.Bi)(e)?e.rings=r:e.paths=r,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,o);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,o,i,r){return"point"===e?e=>{e.x=t(e.x),e.y=o(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,h.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];for(let e=0,r=i.length;e<r;e++){const r=i[e];e>0?(s+=r[0],a+=r[1]):(s=r[0],a=r[1]),r[0]=t(s),r[1]=o(a)}}if(i&&r)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,o=t.length;e<o;e++){const o=t[e];o[2]=i(o[2]),o[3]=r(o[3])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,o=t.length;e<o;e++){const o=t[e];o[2]=i(o[2])}}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,o=t.length;e<o;e++){const o=t[e];o[2]=r(o[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=o(e.ymin),e.xmax=t(e.xmax),e.ymax=o(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),r&&null!=e.mmax&&null!=e.mmin&&(e.mmax=r(e.mmax),e.mmin=r(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let s,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(s+=i[0],a+=i[1]):(s=i[0],a=i[1]),i[0]=t(s),i[1]=o(a)}if(i&&r)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2]),t[3]=r(t[3])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=r(t[2])}}:null}};(0,r._)([(0,y.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,r._)([(0,y.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,r._)([(0,y.MZ)({type:[s.A],json:{write:!0}})],v.prototype,"features",void 0),(0,r._)([(0,u.w)("features")],v.prototype,"readFeatures",null),(0,r._)([(0,y.MZ)({type:[m.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,r._)([(0,y.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,r._)([(0,d.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,r._)([(0,y.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,r._)([(0,y.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,r._)([(0,y.MZ)({types:n.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,r._)([(0,u.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,r._)([(0,y.MZ)({type:f.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,r._)([(0,d.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,r._)([(0,y.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,r._)([(0,c.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const w=v}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8330,9340],{97927:(e,t,o)=>{o.r(t),o.d(t,{default:()=>V});var i=o(90237),r=o(49186),n=o(4718),s=o(93637),a=o(10107),l=(o(44208),o(53966),o(40608)),p=o(13600),y=o(82935),u=o(66552),c=o(69540),d=o(25482),f=(o(87811),o(69622)),h=o(21325);let m=class extends f.A{set horizontalWKID(e){e?(0,h.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,h.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:o,radialDistortionCoefficients:i,tangentialDistortionCoefficients:r}=this;return e?.length>1&&!Number.isNaN(t)&&o?.length>1&&i?.length>1&&r?.length>1}};(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"horizontalWKID",null),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"verticalWKID",null),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"x",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"y",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"z",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"type",void 0),m=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientation")],m);const g=m;let v=class extends(c.A.ClonableMixin(d.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,heading:s,pitch:a,roll:l,affineTransformations:p,focalLength:y,principalOffsetPoint:u,radialDistortionCoefficients:c,tangentialDistortionCoefficients:d}=this,f=[e,t,o,i,r,n,s,a,l];return this.isAdvanced&&(p?.forEach((e=>f.push(e))),f.push(y),u?.forEach((e=>f.push(e))),c?.forEach((e=>f.push(e))),d?.forEach((e=>f.push(e)))),f.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,i._)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"heading",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationHPR")],v);const w=v;let _=class extends(c.A.ClonableMixin(d.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:o,ellipsoidRadius:i,squaredEccentricity:r,properties:n}=this,s=`${n}`.split("|");return s.splice(1,1),`${e}|${t}|${o}|${i}|${r}|${s.join("|")}`}};(0,i._)([(0,a.MZ)({json:{write:!0}})],_.prototype,"type",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],_.prototype,"latitude",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],_.prototype,"longitude",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],_.prototype,"ellipsoidRadius",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],_.prototype,"squaredEccentricity",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],_.prototype,"properties",void 0),_=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationLTP")],_);const M=_;let j=class extends(c.A.ClonableMixin(d.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,omega:s,phi:a,kappa:l,affineTransformations:p,focalLength:y,principalOffsetPoint:u,radialDistortionCoefficients:c,tangentialDistortionCoefficients:d}=this,f=[e,t,o,i,r,n,s,a,l];return this.isAdvanced&&(p?.forEach((e=>f.push(e))),f.push(y),u?.forEach((e=>f.push(e))),c?.forEach((e=>f.push(e))),d?.forEach((e=>f.push(e)))),f.map((e=>isNaN(e)?"":e)).join("|")}};(0,i._)([(0,a.MZ)({json:{write:!0}})],j.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],j.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],j.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],j.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],j.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"omega",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"phi",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"kappa",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"x",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"y",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"z",void 0),j=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationOPK")],j);const Z=j;let x=class extends(c.A.ClonableMixin(d.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:o,radialDistortionCoefficients:i,tangentialDistortionCoefficients:r}=this;return e?.length>1||!Number.isNaN(t)||o?.length>1||i?.length>1||r?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,yaw:s,pitch:a,roll:l,affineTransformations:p,focalLength:y,principalOffsetPoint:u,radialDistortionCoefficients:c,tangentialDistortionCoefficients:d}=this,f=[e,t,o,i,r,n,s,a,l];return this.isAdvanced&&(p?.forEach((e=>f.push(e))),f.push(y),u?.forEach((e=>f.push(e))),u?.forEach((e=>f.push(e))),c?.forEach((e=>f.push(e))),d?.forEach((e=>f.push(e)))),f.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,i._)([(0,a.MZ)({json:{write:!0}})],x.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"yaw",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"pitch",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"roll",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"x",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"y",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"z",void 0),x=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationYPR")],x);const P=x;var N;!function(e){e[e.HPR=1]="HPR",e[e.OPK=2]="OPK",e[e.YPR=3]="YPR",e[e.LTP=4]="LTP"}(N||(N={}));const b=new Map;b.set(`${N.OPK}`,{desc:"Using Omega Phi Kappa",constructor:Z}),b.set(`${N.HPR}`,{desc:"Using Heading, Pitch and Roll",constructor:w}),b.set(`${N.YPR}`,{desc:"Using Yaw, Pitch and Roll",constructor:P}),b.set(`${N.LTP}`,{desc:"Using Local Tangent Plane",constructor:M});let S=class extends(c.A.ClonableMixin(d.A)){constructor(){super(...arguments),this.url=null}};(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],S.prototype,"lod",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"rasterFunction",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"url",void 0),S=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],S);let O=class extends(c.A.ClonableMixin(d.A)){constructor(){super(...arguments),this.constantElevation=null}};function D(e,t,o){return e?null!=(i=e)&&"number"==typeof i.constantElevation?new O(e):function(e,t,o){let{url:i}=e;return i?(i=function(e,t,o){return t&&(e=`${t}${e}`),o&&(e+=`${o}`),e}(i,t,o),new S({...e,url:i})):null}(e,t,o):e;var i}(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],O.prototype,"constantElevation",void 0),O=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],O);const I=new u.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),A=new u.J({Feet:"feet",Meter:"meter"}),T=new u.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique","":null}),R=new Map;R.set(`${N.HPR}`,(function(e){const[t,o,i,r,n,s,a,l,p,y,u,c,d,f,h,m,g,v,w,_,M,j]=e.slice(1);return{horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,heading:s,pitch:a,roll:l,...C([p,y,u,c,d,f],[m,g],[v,w,_],[M,j],h)}})),R.set(`${N.YPR}`,(function(e){const[t,o,i,r,n,s,a,l,p,y,u,c,d,f,h,m,g,v,w,_,M,j]=e.slice(1);return{horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,yaw:s,pitch:a,roll:l,...C([p,y,u,c,d,f],[m,g],[v,w,_],[M,j],h)}})),R.set(`${N.OPK}`,(function(e){const[t,o,i,r,n,s,a,l,p,y,u,c,d,f,h,m,g,v,w,_,M,j]=e.slice(1);return{horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,omega:s,phi:a,kappa:l,...C([p,y,u,c,d,f],[m,g],[v,w,_],[M,j],h)}})),R.set(`${N.LTP}`,(function(e){const[t,o,i,r,n,...s]=e.slice(1),a=R.get(n),l=b.get(n)?.constructor;return a&&l?{latitude:t,longitude:o,ellipsoidRadius:i,squaredEccentricity:r,properties:new l(a([n,"",...s]))}:null}));const z=e=>{const t=e.map((e=>parseFloat(e))).filter((e=>!isNaN(e)));if(t.length===e.length)return t};function C(e,t,o,i,r){const n=z(e),s=z(t),a=z(o),l=z(i);return{affineTransformations:6===n?.length?n:void 0,focalLength:6===n?.length?parseFloat(r):void 0,principalOffsetPoint:2!==s?.length?[0,0]:s,radialDistortionCoefficients:3!==a?.length?[0,0,0]:a,tangentialDistortionCoefficients:2!==l?.length?[0,0]:l}}var E=o(79677),$=o(92935);const K=new Set(["demPathPrefix","demPathSuffix","depthImagePathPrefix","depthImagePathSuffix","elevationSource","horizontalMeasurementUnit","verticalMeasurementUnit","videoPathPrefix","videoPathSuffix","timeAnimation","visibilityTimeExtent"]),L=(e,t)=>!K.has(t)&&e;function F(e,t,o,i){const{name:r,write:n,read:s}=((e,t,o)=>{const i=`orientedImageryProperties.${e}`;return{name:i,write:t?{ignoreOrigin:!0,target:i,writer:t}:{ignoreOrigin:!0},read:o?{ignoreOrigin:!0,source:i,reader:o}:{ignoreOrigin:!0}}})(e,t,o),a={name:r,write:n,read:s,origins:{service:{name:`orientedImageryInfo.${r}`,write:t,read:o},"web-scene":{name:r,write:L(n,e),read:L(s,e)},"web-map":{name:r,write:n,read:s}}};return i&&a.origins?(a.type=i,a.origins["web-map"].type=i,a.origins["web-scene"].type=i,a):a}let W=class extends p.default{constructor(){super(...arguments),this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),this.type="oriented-imagery",this.timeIntervalUnit="days",this.useViewTime=!0,this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.videoPathPrefix=null,this.videoPathSuffix=null,this.visibilityTimeExtent=null}get effectiveElevationSource(){const{elevationSource:e,demPathPrefix:t,demPathSuffix:o}=this;return D(e,t,o)}async save(e){return this._debouncedSaveOperations($.X.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations($.X.SAVE_AS,t,e)}findFirstValidLayerId(e){return e.layers?.find((e=>this.supportedSourceTypes.has(e.type)))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new r.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};var J;(0,i._)([(0,a.MZ)({type:Number,json:F("cameraHeading")})],W.prototype,"cameraHeading",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("cameraHeight")})],W.prototype,"cameraHeight",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("cameraPitch")})],W.prototype,"cameraPitch",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("cameraRoll")})],W.prototype,"cameraRoll",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("coveragePercent")})],W.prototype,"coveragePercent",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("demPathPrefix")})],W.prototype,"demPathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("demPathSuffix")})],W.prototype,"demPathSuffix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("depthImagePathPrefix")})],W.prototype,"depthImagePathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("depthImagePathSuffix")})],W.prototype,"depthImagePathSuffix",void 0),(0,i._)([(0,a.MZ)({type:Object,json:F("elevationSource")})],W.prototype,"elevationSource",void 0),(0,i._)([(0,a.MZ)({readOnly:!0})],W.prototype,"effectiveElevationSource",null),(0,i._)([(0,a.MZ)({type:Number,json:F("farDistance")})],W.prototype,"farDistance",void 0),(0,i._)([(0,a.MZ)()],W.prototype,"geometryType",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("horizontalFieldOfView")})],W.prototype,"horizontalFieldOfView",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("horizontalMeasurementUnit")})],W.prototype,"horizontalMeasurementUnit",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("imagePathPrefix")})],W.prototype,"imagePathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("imagePathSuffix")})],W.prototype,"imagePathSuffix",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("imageRotation")})],W.prototype,"imageRotation",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("maximumDistance")})],W.prototype,"maximumDistance",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("nearDistance")})],W.prototype,"nearDistance",void 0),(0,i._)([(0,a.MZ)({type:["OrientedImageryLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0}}}}})],W.prototype,"operationalLayerType",void 0),(0,i._)([(0,a.MZ)({json:{...F("orientationAccuracy",((e,t,o)=>{(0,s.sM)(o,e.join(";"),t)}),(e=>{const t=e?.split(";")?.map(Number);return function(e){return Array.isArray(e)&&9===e?.length&&!e.some(isNaN)}(t)?t:[0,0,0,0,0,0,0,0,0]}),String)}})],W.prototype,"orientationAccuracy",void 0),(0,i._)([(0,a.MZ)({json:{...F("orientedImageryType",T.write,T.read,T.jsonValues.slice(1))}})],W.prototype,"orientedImageryType",void 0),(0,i._)([(0,a.MZ)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],W.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:I.apiValues,json:{...F("timeIntervalUnit",I.write,I.read,I.jsonValues)}})],W.prototype,"timeIntervalUnit",void 0),(0,i._)([(0,a.MZ)((J=(0,n.o8)(y.B),J.json?(J.json.origins=J.json.origins??{},J.json.origins["web-scene"]={write:!1,read:!1},J):J))],W.prototype,"useViewTime",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("verticalFieldOfView")})],W.prototype,"verticalFieldOfView",void 0),(0,i._)([(0,a.MZ)({type:A.apiValues,json:{...F("verticalMeasurementUnit",A.write,A.read,A.jsonValues)}})],W.prototype,"verticalMeasurementUnit",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("videoPathPrefix")})],W.prototype,"videoPathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("videoPathSuffix")})],W.prototype,"videoPathSuffix",void 0),(0,i._)([(0,a.MZ)({type:E.A,json:{origins:{"web-scene":{write:!1,read:!1}}}})],W.prototype,"visibilityTimeExtent",void 0),W=(0,i._)([(0,l.$)("esri.layers.OrientedImageryLayer")],W);const V=W},32756:(e,t,o)=>{o.d(t,{Rr:()=>l,fY:()=>y,ne:()=>p});var i=o(90237),r=o(93637),n=o(10107),s=(o(44208),o(53966),o(87811),o(40608)),a=o(91880);function l(e,t,o){if(!e)return null;const i=e.find((e=>!!e.field));if(!i)return null;const r=new a.A;return r.read(i,o),[r]}const p={type:[a.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,o,i){const n=e.find((e=>!!e.field));n&&(0,r.sM)(o,[n.toJSON()],t)}}}},y=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,i._)([(0,n.MZ)(p)],t.prototype,"orderBy",void 0),t=(0,i._)([(0,s.$)("esri.layers.mixins.OrderedLayer")],t),t}},33143:(e,t,o)=>{o.d(t,{A:()=>d});var i=o(90237),r=o(69540),n=o(25482),s=o(10107),a=(o(44208),o(53966),o(87811),o(36005)),l=o(40608),p=o(43937),y=o(80451),u=o(29005);let c=class extends(r.A.ClonableMixin(n.A)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const o of Object.keys(e))t[o]=(0,y.rS)(e[o]);return t}writeDomains(e,t){const o={};for(const t of Object.keys(e))e[t]&&(o[t]=e[t]?.toJSON());t.domains=o}};(0,i._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"id",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"domains",void 0),(0,i._)([(0,a.w)("domains")],c.prototype,"readDomains",null),(0,i._)([(0,p.K)("domains")],c.prototype,"writeDomains",null),(0,i._)([(0,s.MZ)({type:[u.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,i._)([(0,l.$)("esri.layers.support.FeatureType")],c);const d=c},91880:(e,t,o)=>{o.d(t,{A:()=>u});var i,r=o(90237),n=o(66552),s=o(25482),a=o(10107),l=(o(44208),o(53966),o(87811),o(40608));const p=new n.J({asc:"ascending",desc:"descending"});let y=i=class extends s.A{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],y.prototype,"valueExpression",void 0),(0,r._)([(0,a.MZ)({type:p.apiValues,json:{type:p.jsonValues,read:p.read,write:p.write}})],y.prototype,"order",void 0),y=i=(0,r._)([(0,l.$)("esri.layers.support.OrderByInfo")],y);const u=y},58501:(e,t,o)=>{o.d(t,{q:()=>r});var i=o(62815);function r(e,t,o){if(!o?.features||!o.hasZ)return;const r=(0,i.N)(o.geometryType,t,e.outSpatialReference);if(null!=r)for(const e of o.features)r(e.geometry)}},22671:(e,t,o)=>{o.d(t,{A:()=>w});var i,r=o(90237),n=o(59456),s=o(52106),a=o(66552),l=o(25482),p=o(4718),y=o(10107),u=(o(44208),o(53966),o(36005)),c=o(40608),d=o(43937),f=o(16930),h=o(65864),m=o(20437);const g=new a.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends l.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,o,i){if(e)return void g.write(e,t,o,i);const{features:r}=this;if(r)for(const e of r)if(null!=e?.geometry)return void g.write(e.geometry.type,t,o,i)}readQueryGeometry(e,t){if(!e)return null;const o=!!e.spatialReference,i=(0,h.rS)(e);return i&&!o&&t.spatialReference&&(i.spatialReference=f.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:o}=this;if(o)for(const e of o)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,p.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let o=0;o<t.features.length;o++){const i=t.features[o];if(i.geometry){const t=e?.[o];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,o],translate:[i,r]}=e,n=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((r-e)/o)));for(let e=0,t=n.length;e<t;e++)s?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:o}=this;if(!o)return this;const{translate:[i,r],scale:[n,s]}=o;let a=null,l=null;if(this.hasZ&&null!=o?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=o;a=o=>o*t+e}if(this.hasM&&null!=o?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=o;l=o=>null==o?o:o*t+e}const p=this._getHydrationFunction(e,(e=>e*n+i),(e=>r-e*s),a,l);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,o){const i=f.A.fromJSON(t.spatialReference),r=[];for(let t=0;t<e.length;t++){const n=e[t],s=o.fromJSON(n),a=n.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=i);const l=n.aggregateGeometries,p=s.aggregateGeometries;if(l&&null!=p)for(const e in p){const t=p[e],o=l[e],r=o?.spatialReference;null==t||r||(t.spatialReference=i)}r.push(s)}return r}_quantizePoints(e,t,o){let i,r;const n=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=o(a[1]);e===i&&s===r||(n.push([e-i,s-r]),i=e,r=s)}else i=t(a[0]),r=o(a[1]),n.push([i,r])}return n.length>0?n:null}_getQuantizationFunction(e,t,o){return"point"===e?e=>(e.x=t(e.x),e.y=o(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,h.Bi)(e)?e.rings:e.paths,r=[];for(let e=0,n=i.length;e<n;e++){const n=i[e],s=this._quantizePoints(n,t,o);s&&r.push(s)}return r.length>0?((0,h.Bi)(e)?e.rings=r:e.paths=r,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,o);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,o,i,r){return"point"===e?e=>{e.x=t(e.x),e.y=o(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,h.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];for(let e=0,r=i.length;e<r;e++){const r=i[e];e>0?(s+=r[0],a+=r[1]):(s=r[0],a=r[1]),r[0]=t(s),r[1]=o(a)}}if(i&&r)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,o=t.length;e<o;e++){const o=t[e];o[2]=i(o[2]),o[3]=r(o[3])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,o=t.length;e<o;e++){const o=t[e];o[2]=i(o[2])}}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,o=t.length;e<o;e++){const o=t[e];o[2]=r(o[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=o(e.ymin),e.xmax=t(e.xmax),e.ymax=o(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),r&&null!=e.mmax&&null!=e.mmin&&(e.mmax=r(e.mmax),e.mmin=r(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let s,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(s+=i[0],a+=i[1]):(s=i[0],a=i[1]),i[0]=t(s),i[1]=o(a)}if(i&&r)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2]),t[3]=r(t[3])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=r(t[2])}}:null}};(0,r._)([(0,y.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,r._)([(0,y.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,r._)([(0,y.MZ)({type:[s.A],json:{write:!0}})],v.prototype,"features",void 0),(0,r._)([(0,u.w)("features")],v.prototype,"readFeatures",null),(0,r._)([(0,y.MZ)({type:[m.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,r._)([(0,y.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,r._)([(0,d.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,r._)([(0,y.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,r._)([(0,y.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,r._)([(0,y.MZ)({types:n.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,r._)([(0,u.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,r._)([(0,y.MZ)({type:f.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,r._)([(0,d.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,r._)([(0,y.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,r._)([(0,c.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const w=v}}]);