@arcgis/core 4.32.0-next.20250101 → 4.32.0-next.20250103

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 (261) hide show
  1. package/Color.js +1 -1
  2. package/PopupTemplate.js +1 -1
  3. package/arcade/functions/date.js +1 -1
  4. package/arcade/functions/featuresetbase.js +1 -1
  5. package/arcade/functions/featuresetstats.js +1 -1
  6. package/arcade/functions/featuresetstring.js +1 -1
  7. package/arcade/functions/geomasync.js +1 -1
  8. package/arcade/functions/geometry.js +1 -1
  9. package/arcade/functions/geomsync.js +1 -1
  10. package/arcade/functions/knowledgegraph.js +1 -1
  11. package/arcade/functions/string.js +1 -1
  12. package/arcade/geometry/extendedUnitData.js +5 -0
  13. package/arcade/geometry/functions.js +5 -0
  14. package/arcade/geometry/operators.js +5 -0
  15. package/arcade/geometry/unitConversion.js +5 -0
  16. package/arcade/geometry/wkt.js +5 -0
  17. package/arcade/languageUtils.js +1 -1
  18. package/assets/esri/core/workers/RemoteClient.js +1 -1
  19. package/assets/esri/core/workers/chunks/{e371f4f0eb3c22f222df.js → 005727711cca0614c2ab.js} +2 -2
  20. package/assets/esri/core/workers/chunks/{e371f4f0eb3c22f222df.js.LICENSE.txt → 005727711cca0614c2ab.js.LICENSE.txt} +1 -1
  21. package/assets/esri/core/workers/chunks/{2d908c115ea18e813b95.js → 00c0fbe19c12691cf2c3.js} +1 -1
  22. package/assets/esri/core/workers/chunks/08e28328385066c519c2.js +1 -0
  23. package/assets/esri/core/workers/chunks/{0e735d01296d340b393e.js → 0b95ec12218f3c04df18.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{59bf879b4802a5ba431e.js → 0ee669947c23f469e357.js} +1 -1
  25. package/assets/esri/core/workers/chunks/116103ecec27cce47a2f.js +1 -0
  26. package/assets/esri/core/workers/chunks/11f00218905f0db447ff.js +1 -0
  27. package/assets/esri/core/workers/chunks/14b87f3dd9942e6b19d0.js +1 -0
  28. package/assets/esri/core/workers/chunks/16d7c07e1c11b88dae84.js +1 -0
  29. package/assets/esri/core/workers/chunks/1d04fe800cb98e4d6bc4.js +1 -0
  30. package/assets/esri/core/workers/chunks/{71f6e5742cf0c482066b.js → 1dc6b5b177022b80c473.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{59455e2dd44b4c01cc76.js → 2586741c359057b3f626.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{250a810dd4e1ff293564.js → 318a39b56851e707edad.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{b1e4813f0c73fc2a483c.js → 370b230fd2d7703d0698.js} +2 -2
  34. package/assets/esri/core/workers/chunks/{b1e4813f0c73fc2a483c.js.LICENSE.txt → 370b230fd2d7703d0698.js.LICENSE.txt} +1 -1
  35. package/assets/esri/core/workers/chunks/38d03fe352057fb375b5.js +1 -0
  36. package/assets/esri/core/workers/chunks/{ebf9caf2dc8af89afec2.js → 42aa697b4718b75b8cb2.js} +2 -2
  37. package/assets/esri/core/workers/chunks/{ebf9caf2dc8af89afec2.js.LICENSE.txt → 42aa697b4718b75b8cb2.js.LICENSE.txt} +1 -1
  38. package/assets/esri/core/workers/chunks/{801dbea20966806db1c9.js → 53cd990b2c988518de6d.js} +1 -1
  39. package/assets/esri/core/workers/chunks/5a1eb0d1e25ff5574c43.js +1 -0
  40. package/assets/esri/core/workers/chunks/6157c49e7431f5868c77.js +1 -0
  41. package/assets/esri/core/workers/chunks/{eef2d94a73064f9bc085.js → 61d64f163840563017d5.js} +1 -1
  42. package/assets/esri/core/workers/chunks/6d218fb5e0f0a04d72c5.js +2 -0
  43. package/assets/esri/core/workers/chunks/{d82b3e2905cab511ff3a.js.LICENSE.txt → 6d218fb5e0f0a04d72c5.js.LICENSE.txt} +1 -1
  44. package/assets/esri/core/workers/chunks/6ed57d01be6bc054c7cd.js +1 -0
  45. package/assets/esri/core/workers/chunks/7254956381e823219db0.js +1 -0
  46. package/assets/esri/core/workers/chunks/740e6bdb3b76f2ea6d61.js +1 -0
  47. package/assets/esri/core/workers/chunks/756c2f7c8659deab6c96.js.LICENSE.txt +1 -1
  48. package/assets/esri/core/workers/chunks/{56fc353421252f2d0a99.js → 75e8ba7e02647b7216ae.js} +1 -1
  49. package/assets/esri/core/workers/chunks/89d7eec47e5b29935d92.js +1 -0
  50. package/assets/esri/core/workers/chunks/8cd2c9ec1e541836b81c.js +1 -0
  51. package/assets/esri/core/workers/chunks/{0b3e1e903120da297641.js → 932375de79e3d33bc4d7.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{263adfd1c2641ef5c0f5.js → 95f23bd17ce9e07fc8ef.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{7de9c01849c4aa1940e7.js → 986889cea53c4a470347.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{cc6160e8ab3cea4040c2.js → 9e9b2fd958e816b1b5f6.js} +1 -1
  55. package/assets/esri/core/workers/chunks/a57cead317eb2fc9afd8.js +1 -0
  56. package/assets/esri/core/workers/chunks/acec58a7f23b2cc938ee.js +1 -0
  57. package/assets/esri/core/workers/chunks/b0f4254d8a32dd713009.js +1 -0
  58. package/assets/esri/core/workers/chunks/b277b8c2f556918e4f9a.js +1 -0
  59. package/assets/esri/core/workers/chunks/{deffd56e39ce725ce377.js → b30046a40bcfbec8abe4.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{5c11e2e65b97565e5003.js → b7db64b07edb0b37ece1.js} +1 -1
  61. package/assets/esri/core/workers/chunks/bd1fb82e8bac439d05ea.js +1 -0
  62. package/assets/esri/core/workers/chunks/bf0a0ca7fdac98f06a89.js.LICENSE.txt +1 -1
  63. package/assets/esri/core/workers/chunks/c44ce0302dc82fb66ada.js +1 -0
  64. package/assets/esri/core/workers/chunks/c52872a50a5989121388.js +1 -0
  65. package/assets/esri/core/workers/chunks/c8cd6ba5600d8ff8db0b.js +2 -0
  66. package/assets/esri/core/workers/chunks/{a100fb789d72410f8d4f.js.LICENSE.txt → c8cd6ba5600d8ff8db0b.js.LICENSE.txt} +1 -1
  67. package/assets/esri/core/workers/chunks/{57c1370b310768c0790a.js → ca1e186f136abb23ae4b.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{d14e4fc82ad772899336.js → ca4a37bdc0f7fb705146.js} +1 -1
  69. package/assets/esri/core/workers/chunks/cb94fc9b0f613ad50b3f.js +1 -0
  70. package/assets/esri/core/workers/chunks/d20764cc99fcabcb7cbf.js +1 -0
  71. package/assets/esri/core/workers/chunks/df18a72e3625cbe31935.js +1 -0
  72. package/assets/esri/core/workers/chunks/eff8fcb6393cd1193cbc.js +1 -0
  73. package/assets/esri/core/workers/chunks/f19d3c855f6e93544918.js +1 -0
  74. package/assets/esri/core/workers/chunks/{60b40b2319d1651dd150.js → f7e50a8284d12da21355.js} +1 -1
  75. package/assets/esri/core/workers/chunks/f9c0d571f62e611ffe2b.js +1 -0
  76. package/assets/esri/core/workers/chunks/fdfe8e0d942b78f08191.js +1 -0
  77. package/assets/esri/core/workers/chunks/ff21207f46a354786eed.js +1 -0
  78. package/chunks/Bufferer-BiY2mtjI.js +1 -1
  79. package/chunks/Centroid-DZi-eb9F.js +1 -1
  80. package/chunks/Clipper-a9xfvRaw.js +1 -1
  81. package/chunks/CrackAndCluster-CfzXpEle.js +1 -1
  82. package/chunks/Distance2DCalculator-eS0piaux.js +1 -1
  83. package/chunks/GeodeticDistanceCalculator-bNilDneE.js +1 -1
  84. package/chunks/Geometry.js +1 -1
  85. package/chunks/GeometryCleaner-DVgW95-D.js +1 -1
  86. package/chunks/Intersector-K1VmdfQW.js +1 -1
  87. package/chunks/LineSeries.js +1 -1
  88. package/chunks/OperatorClip.js +1 -1
  89. package/chunks/OperatorCrosses.js +1 -1
  90. package/chunks/OperatorCut.js +1 -1
  91. package/chunks/OperatorDensify.js +1 -1
  92. package/chunks/OperatorDifference.js +1 -1
  93. package/chunks/OperatorGeneralize.js +1 -1
  94. package/chunks/OperatorGeodesicBuffer.js +1 -1
  95. package/chunks/OperatorGeodeticArea.js +1 -1
  96. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  97. package/chunks/OperatorGeodeticDistance.js +1 -1
  98. package/chunks/OperatorGeodeticLength.js +1 -1
  99. package/chunks/OperatorIntersection.js +1 -1
  100. package/chunks/OperatorIntersects.js +1 -1
  101. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  102. package/chunks/OperatorOverlaps.js +1 -1
  103. package/chunks/OperatorProject.js +1 -1
  104. package/chunks/OperatorProximity.js +1 -1
  105. package/chunks/OperatorProximityGeodesic.js +1 -1
  106. package/chunks/OperatorShapePreservingDensify.js +1 -1
  107. package/chunks/OperatorShapePreservingLength.js +1 -1
  108. package/chunks/OperatorSimplify.js +1 -1
  109. package/chunks/OperatorTouches.js +1 -1
  110. package/chunks/OperatorUnion.js +1 -1
  111. package/chunks/OperatorWithin.js +1 -1
  112. package/chunks/QuadraticBezier.js +1 -1
  113. package/chunks/SideCalculator2D-Bf4QCxCR.js +1 -1
  114. package/chunks/Theme.js +1 -1
  115. package/chunks/Tick.js +1 -1
  116. package/chunks/Transformation2D.js +1 -1
  117. package/chunks/arcade.js +1 -1
  118. package/chunks/areaOperator.js +5 -0
  119. package/chunks/array.js +1 -1
  120. package/chunks/bufferOperator.js +5 -0
  121. package/chunks/centroidOperator.js +5 -0
  122. package/chunks/chartUtilsAm5.js +1 -1
  123. package/chunks/clipOperator.js +5 -0
  124. package/chunks/containsOperator.js +5 -0
  125. package/chunks/convexHullOperator.js +5 -0
  126. package/chunks/crossesOperator.js +5 -0
  127. package/chunks/cutOperator.js +5 -0
  128. package/chunks/densifyOperator.js +5 -0
  129. package/chunks/differenceOperator.js +5 -0
  130. package/chunks/disjointOperator.js +5 -0
  131. package/chunks/distanceOperator.js +5 -0
  132. package/chunks/equalsOperator.js +5 -0
  133. package/chunks/generalizeOperator.js +5 -0
  134. package/chunks/geodesicBufferOperator.js +5 -0
  135. package/chunks/geodeticAreaOperator.js +5 -0
  136. package/chunks/geodeticDensifyOperator.js +5 -0
  137. package/chunks/geodeticLengthOperator.js +5 -0
  138. package/chunks/i3s.js +1 -1
  139. package/chunks/intersectionOperator.js +5 -0
  140. package/chunks/intersectsOperator.js +5 -0
  141. package/chunks/languageUtils.js +1 -1
  142. package/chunks/lclayout.js +1 -1
  143. package/chunks/lengthOperator.js +5 -0
  144. package/chunks/lyr3DMain.js +1 -1
  145. package/chunks/lyr3DWorker.js +1 -1
  146. package/chunks/offsetOperator.js +5 -0
  147. package/chunks/overlapsOperator.js +5 -0
  148. package/chunks/pe-wasm.js +1 -1
  149. package/chunks/proximityOperator.js +5 -0
  150. package/chunks/relateOperator.js +5 -0
  151. package/chunks/simplifyOperator.js +5 -0
  152. package/chunks/symmetricDifferenceOperator.js +5 -0
  153. package/chunks/touchesOperator.js +5 -0
  154. package/chunks/unionOperator.js +5 -0
  155. package/chunks/vxlLayer.js +1 -1
  156. package/chunks/withinOperator.js +5 -0
  157. package/copyright.txt +2 -2
  158. package/core/Evented.js +1 -1
  159. package/geometry/operators/areaOperator.js +1 -1
  160. package/geometry/operators/bufferOperator.js +1 -1
  161. package/geometry/operators/centroidOperator.js +1 -1
  162. package/geometry/operators/clipOperator.js +1 -1
  163. package/geometry/operators/containsOperator.js +1 -1
  164. package/geometry/operators/convexHullOperator.js +1 -1
  165. package/geometry/operators/crossesOperator.js +1 -1
  166. package/geometry/operators/cutOperator.js +1 -1
  167. package/geometry/operators/densifyOperator.js +1 -1
  168. package/geometry/operators/differenceOperator.js +1 -1
  169. package/geometry/operators/disjointOperator.js +1 -1
  170. package/geometry/operators/distanceOperator.js +1 -1
  171. package/geometry/operators/equalsOperator.js +1 -1
  172. package/geometry/operators/extendOperator.js +1 -1
  173. package/geometry/operators/generalizeOperator.js +1 -1
  174. package/geometry/operators/geodesicBufferOperator.js +1 -1
  175. package/geometry/operators/geodeticAreaOperator.js +1 -1
  176. package/geometry/operators/geodeticDensifyOperator.js +1 -1
  177. package/geometry/operators/geodeticLengthOperator.js +1 -1
  178. package/geometry/operators/gx/operatorAffineTransform.js +1 -1
  179. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  180. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  181. package/geometry/operators/gx/operatorBoundary.js +1 -1
  182. package/geometry/operators/gx/operatorBuffer.js +1 -1
  183. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  184. package/geometry/operators/gx/operatorGraphicBuffer.js +1 -1
  185. package/geometry/operators/gx/operatorIntegrate.js +1 -1
  186. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  187. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  188. package/geometry/operators/gx/operatorLocateBetween.js +1 -1
  189. package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
  190. package/geometry/operators/gx/operatorOffset.js +1 -1
  191. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  192. package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
  193. package/geometry/operators/gx/operatorSinglePartToMultiPart.js +1 -1
  194. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  195. package/geometry/operators/intersectionOperator.js +1 -1
  196. package/geometry/operators/intersectsOperator.js +1 -1
  197. package/geometry/operators/isNearOperator.js +1 -1
  198. package/geometry/operators/json/disjointOperator.js +1 -1
  199. package/geometry/operators/lengthOperator.js +1 -1
  200. package/geometry/operators/offsetOperator.js +1 -1
  201. package/geometry/operators/overlapsOperator.js +1 -1
  202. package/geometry/operators/proximityOperator.js +1 -1
  203. package/geometry/operators/relateOperator.js +1 -1
  204. package/geometry/operators/reshapeOperator.js +1 -1
  205. package/geometry/operators/simplifyOperator.js +1 -1
  206. package/geometry/operators/support/apiConverter.js +1 -1
  207. package/geometry/operators/support/jsonConverter.js +1 -1
  208. package/geometry/operators/symmetricDifferenceOperator.js +1 -1
  209. package/geometry/operators/touchesOperator.js +1 -1
  210. package/geometry/operators/unionOperator.js +1 -1
  211. package/geometry/operators/withinOperator.js +1 -1
  212. package/geometry/support/contains.js +1 -1
  213. package/kernel.js +1 -1
  214. package/layers/KMLLayer.js +1 -1
  215. package/layers/WCSLayer.js +1 -1
  216. package/layers/support/rasterDatasets/WCSRaster.js +1 -1
  217. package/layers/support/rasterFormats/RasterCodec.js +1 -1
  218. package/layers/support/rasterFormats/TiffDecoder.js +1 -1
  219. package/layers/support/wmtsUtils.js +1 -1
  220. package/package.json +3 -3
  221. package/smartMapping/renderers/support/utils.js +1 -1
  222. package/smartMapping/symbology/support/Theme.js +1 -1
  223. package/support/revision.js +1 -1
  224. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
  225. package/views/3d/support/DisplayQualityProfile.js +1 -1
  226. package/views/3d/webgl-engine/core/shaderModules/interfaces.js +1 -1
  227. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  228. package/views/SelectionManager.js +1 -1
  229. package/widgets/BatchAttributeForm.js +1 -1
  230. package/widgets/Feature/support/featureUtils.js +1 -1
  231. package/widgets/Legend/support/heatmapRampUtils.js +1 -1
  232. package/widgets/OrientedImageryViewer/OrientedImageryViewerVisibleElements.js +1 -1
  233. package/widgets/OrientedImageryViewer.js +1 -1
  234. package/assets/esri/core/workers/chunks/015285436ca965f94e17.js +0 -1
  235. package/assets/esri/core/workers/chunks/048d296efa26ccd79056.js +0 -1
  236. package/assets/esri/core/workers/chunks/0e0b978459d70b15acb5.js +0 -1
  237. package/assets/esri/core/workers/chunks/10fa211987b16fd71a1a.js +0 -1
  238. package/assets/esri/core/workers/chunks/200a5f1864c2c2f7536c.js +0 -1
  239. package/assets/esri/core/workers/chunks/23a697d48f6e45cc033e.js +0 -1
  240. package/assets/esri/core/workers/chunks/29b610ff44708e044cbd.js +0 -1
  241. package/assets/esri/core/workers/chunks/3600125c58d5d04c515a.js +0 -1
  242. package/assets/esri/core/workers/chunks/457d4abc938d14f28e31.js +0 -1
  243. package/assets/esri/core/workers/chunks/4b5dbdcad438cb2dd4bf.js +0 -1
  244. package/assets/esri/core/workers/chunks/69efc716991a407c3d23.js +0 -1
  245. package/assets/esri/core/workers/chunks/6e254e846e284223ef63.js +0 -1
  246. package/assets/esri/core/workers/chunks/785610aa615198fd3815.js +0 -1
  247. package/assets/esri/core/workers/chunks/7bf7aace72f81f5de4e4.js +0 -1
  248. package/assets/esri/core/workers/chunks/7ea3d652536e1d79dfc6.js +0 -1
  249. package/assets/esri/core/workers/chunks/816c9c81352cd0ca8ce8.js +0 -1
  250. package/assets/esri/core/workers/chunks/9291508232b23f030178.js +0 -1
  251. package/assets/esri/core/workers/chunks/9fc49968dea8e2b64f3e.js +0 -1
  252. package/assets/esri/core/workers/chunks/a0b3d70a1b0360084593.js +0 -1
  253. package/assets/esri/core/workers/chunks/a100fb789d72410f8d4f.js +0 -2
  254. package/assets/esri/core/workers/chunks/b4d76d46661aba356ea3.js +0 -1
  255. package/assets/esri/core/workers/chunks/cb3af81e1fe6405c4885.js +0 -1
  256. package/assets/esri/core/workers/chunks/cbf57abb537e86c1dd7f.js +0 -1
  257. package/assets/esri/core/workers/chunks/cebdf2f88c4d2ad8baab.js +0 -1
  258. package/assets/esri/core/workers/chunks/d56d77125798beb7e493.js +0 -1
  259. package/assets/esri/core/workers/chunks/d82b3e2905cab511ff3a.js +0 -2
  260. package/assets/esri/core/workers/chunks/e2f91098793b8742fae6.js +0 -1
  261. package/assets/esri/core/workers/chunks/f25c04cf1a4bc1d2636a.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[201],{66131:(e,t,r)=>{r.d(t,{lY:()=>d,mT:()=>h});var s,i=r(799),a=r(3330),n=r(96285);(s||(s={})).TimeZoneNotRecognized="TimeZoneNotRecognized";const l={[s.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."};class o extends Error{constructor(e,t){super((0,i.HC)(l[e],t)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,o)}}function c(e,t,r){return e<t?e-t:e>r?e-r:0}function u(e,t,r){return e<t?t:e>r?r:e}class d{constructor(e){this._date=e,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(e=0,t=1,r=1,s=0,i=0,a=0,l=0,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(s)||isNaN(i)||isNaN(a)||isNaN(l))return null;const p=n.c9.local(e,t).daysInMonth;let m=n.c9.fromObject({day:u(r,1,p),year:e,month:u(t,1,12),hour:u(s,0,23),minute:u(i,0,59),second:u(a,0,59),millisecond:u(l,0,999)},{zone:h(o)});return m=m.plus({months:c(t,1,12),days:c(r,1,p),hours:c(s,0,23),minutes:c(i,0,59),seconds:c(a,0,59),milliseconds:c(l,0,999)}),new d(m)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,t){const r=h(t);return e.isUnknownTimeZone||r===a.GB.instance?d.fromParts(e.year,e.monthJS+1,e.day,e.hour,e.minute,e.second,e.millisecond,r):new d(e._date.setZone(r))}static dateJSToArcadeDate(e){return new d(n.c9.fromJSDate(e,{zone:"system"}))}static dateJSAndZoneToArcadeDate(e,t="system"){const r=h(t);return new d(n.c9.fromJSDate(e,{zone:r}))}static unknownEpochToArcadeDate(e){return new d(n.c9.fromMillis(e,{zone:a.GB.instance}))}static unknownDateJSToArcadeDate(e){return new d(n.c9.fromMillis(e.getTime(),{zone:a.GB.instance}))}static epochToArcadeDate(e,t="system"){const r=h(t);return new d(n.c9.fromMillis(e,{zone:r}))}static dateTimeToArcadeDate(e){return new d(e)}clone(){return new d(this._date)}changeTimeZone(e){const t=h(e);return d.dateTimeToArcadeDate(this._date.setZone(t))}static dateTimeAndZoneToArcadeDate(e,t){const r=h(t);return e.zone===a.GB.instance||r===a.GB.instance?d.fromParts(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond,r):new d(e.setZone(r))}static nowToArcadeDate(e){const t=h(e);return new d(n.c9.fromJSDate(new Date,{zone:t}))}static nowUTCToArcadeDate(){return new d(n.c9.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===d.systemTimeZoneCanonicalName}equals(e){return this.isSystem&&e.isSystem?this.toNumber()===e.toNumber():this.isUnknownTimeZone===e.isUnknownTimeZone&&this._date.equals(e._date)}get isUnknownTimeZone(){return this._date.zone===a.GB.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let e=this._date.weekday;return e>6&&(e=0),e}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";const e=this.zone;return"fixed"===e.type?0===e.fixed?"UTC":e.formatOffset(0,"short"):e.name}stringify(){return JSON.stringify(this.toJSDate())}plus(e){return new d(this._date.plus(e))}diff(e,t="milliseconds"){return this._date.diff(e._date,t)[t]}toISODate(){return this._date.toISODate()}toISOString(e){return e?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(e,t){return this._date.toISOTime({suppressMilliseconds:e,includeOffset:t&&!this.isUnknownTimeZone})}toFormat(e,t){return this.isUnknownTimeZone&&(e=e.replaceAll("Z","")),this._date.toFormat(e,t)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new d(this._date.toUTC())}toLocal(){return new d(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(e){if(!e)return null;const t=n.c9.fromISO(e,{setZone:!0});return new d(t)}}function h(e,t=!0){if(e instanceof n.bo)return e;if("system"===e.toLowerCase())return"system";if("utc"===e.toLowerCase())return"UTC";if("unknown"===e.toLowerCase())return a.GB.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){const t=n.mQ.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(t)return t}const r=n.oh.create(e);if(!r.isValid){if(t)throw new o(s.TimeZoneNotRecognized);return null}return r}},5503:(e,t,r)=>{r.d(t,{A:()=>x});var s,i=r(90237),a=r(98291),n=r(65529),l=r(36563),o=r(4718),c=r(93687);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(s||(s={}));var u,d=r(11932),h=r(56507),p=r(62788),m=r(10107),y=r(7695),g=r(40608),f=r(95488);class b{constructor(e,t,r,s,i){this.target=e,this.added=t,this.removed=r,this.start=s,this.deleteCount=i}}const v=new c.A(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}},void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1}));function _(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function S(e){return e?e instanceof O?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function T(e){if(e?.length)return e[0]}function M(e,t,r,s){const i=Math.min(e.length-r,t.length-s);let a=0;for(;a<i&&e[r+a]===t[s+a];)a++;return a}function L(e,t,r,s){t&&t.forEach(((t,i,a)=>{e.push(t),L(e,r.call(s,t,i,a),r,s)}))}const w=new Set,I=new Set,A=new Set,V=new Map;let D=0,O=u=class extends n.A.EventedAccessor{static isCollection(e){return null!=e&&e instanceof u}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new f.I,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:D++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof u?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),this._emitter.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get items(){return(0,p.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(s.ADD)||(this._splice(0,this.length,S(e)),this._emitAfterChanges(s.ADD))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){const e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)((()=>{r.removed=!0,e.splice(e.indexOf(r),1)}))}return this._emitter.on(e,t)}once(e,t){const r="deref"in t?()=>t.deref():()=>t,s=this.on(e,(e=>{r()?.call(null,e),s.remove()}));return s}add(e,t){if((0,p.gc)(this._observable),this._emitBeforeChanges(s.ADD))return this;const r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(s.ADD),this}addMany(e,t=this._items.length){if((0,p.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(s.ADD))return this;const r=this.getNextIndex(t);return this._splice(r,0,S(e)),this._emitAfterChanges(s.ADD),this}at(e){if((0,p.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return[];const e=this._removeAllRaw();return this._emitAfterChanges(s.REMOVE),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.map(o.o8)})}concat(...e){(0,p.gc)(this._observable);const t=e.map(S);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return;const r=this._splice(0,this.length),i=r.length;for(let s=0;s<i;s++)e.call(t,r[s],s,r);this._emitAfterChanges(s.REMOVE)}destroyAll(){this.drain(_)}destroyMany(e){const t=this.removeMany(e);return t.forEach(_),t}every(e,t){return(0,p.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,p.gc)(this._observable);const r=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return(0,p.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,p.gc)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,p.gc)(this._observable);const r=[];return L(r,this,e,t),new u(r)}forEach(e,t){return(0,p.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,p.gc)(this._observable),this._items[e]}getNextIndex(e){(0,p.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,p.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,p.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,p.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,p.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,p.gc)(this._observable);const r=this._items.map(e,t);return new u({items:r})}reorder(e,t=this.length-1){(0,p.gc)(this._observable);const r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(s.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(s.MOVE)}return e}}pop(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return;const e=T(this._splice(this.length-1,1));return this._emitAfterChanges(s.REMOVE),e}push(...e){return(0,p.gc)(this._observable),this._emitBeforeChanges(s.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(s.ADD)),this.length}reduce(e,t){(0,p.gc)(this._observable);const r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,p.gc)(this._observable);const r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,p.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,p.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(s.REMOVE))return;const t=T(this._splice(e,1));return this._emitAfterChanges(s.REMOVE),t}removeMany(e){if((0,p.gc)(this._observable),!e?.length||this._emitBeforeChanges(s.REMOVE))return[];const t=e instanceof u?e.toArray():e,r=this._items,i=[],a=t.length;for(let e=0;e<a;e++){const s=t[e],a=r.indexOf(s);if(a>-1){const s=1+M(t,r,e+1,a+1),n=this._splice(a,s);n&&n.length>0&&i.push.apply(i,n),e+=s-1}}return this._emitAfterChanges(s.REMOVE),i}reverse(){if((0,p.gc)(this._observable),this._emitBeforeChanges(s.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(s.MOVE),this}shift(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return;const e=T(this._splice(0,1));return this._emitAfterChanges(s.REMOVE),e}slice(e=0,t=this.length){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,p.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(s.MOVE))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(s.MOVE),this}splice(e,t,...r){(0,p.gc)(this._observable);const i=(t?s.REMOVE:0)|(r.length?s.ADD:0);if(this._emitBeforeChanges(i))return[];const a=this._splice(e,t,r)||[];return this._emitAfterChanges(i),a}toArray(){return(0,p.gc)(this._observable),this._items.slice()}toJSON(){return(0,p.gc)(this._observable),this.toArray()}toLocaleString(){return(0,p.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,p.gc)(this._observable),this._items.toString()}unshift(...e){return(0,p.gc)(this._observable),!e.length||this._emitBeforeChanges(s.ADD)||(this._splice(0,0,e),this._emitAfterChanges(s.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){const s=this._items,i=this.itemType;let a,n;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)((()=>this._dispatchChange()))),e<0&&(e+=this.length),t){if(n=s.splice(e,t),this.hasEventListener("before-remove")){const t=v.acquire();t.target=this,t.cancellable=!0;for(let r=0,i=n.length;r<i;r++)a=n[r],t.reset(a),this.emit("before-remove",t),t.defaultPrevented&&(n.splice(r,1),s.splice(e,0,a),e+=1,r-=1,i-=1);v.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=v.acquire();e.target=this,e.cancellable=!1;const t=n.length;for(let r=0;r<t;r++)e.reset(n[r]),this.emit("after-remove",e);v.release(e)}}if(r?.length){if(i){const e=[];for(const t of r){const r=i.ensureType(t);null==r&&null!=t||e.push(r)}r=e}const t=this.hasEventListener("before-add"),a=this.hasEventListener("after-add"),n=e===this.length;if(t||a){const i=v.acquire();i.target=this,i.cancellable=!0;const l=v.acquire();l.target=this,l.cancellable=!1;for(const o of r)t?(i.reset(o),this.emit("before-add",i),i.defaultPrevented||(n?s.push(o):s.splice(e++,0,o),this._set("length",s.length),a&&(l.reset(o),this.emit("after-add",l)))):(n?s.push(o):s.splice(e++,0,o),this._set("length",s.length),l.reset(o),this.emit("after-add",l));v.release(l),v.release(i)}else{if(n)for(const e of r)s.push(e);else s.splice(e,0,...r);this._set("length",s.length)}}if((r?.length||n?.length)&&this._notifyChangeEvent(r,n),this.hasEventListener("after-splice")){const s=new b(this,r,n,e,t);this.emit("after-splice",s)}return n}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const r=v.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,v.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=v.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),v.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;w.clear(),I.clear(),A.clear();for(const{added:t,removed:r}of e){if(t)if(0===A.size&&0===I.size)for(const e of t)w.add(e);else for(const e of t)I.has(e)?(A.add(e),I.delete(e)):A.has(e)||w.add(e);if(r)if(0===A.size&&0===w.size)for(const e of r)I.add(e);else for(const e of r)w.has(e)?w.delete(e):(A.delete(e),I.add(e))}const r=a.A.acquire();w.forEach((e=>{r.push(e)}));const s=a.A.acquire();I.forEach((e=>{s.push(e)}));const i=this._items,n=t.items,l=a.A.acquire();if(A.forEach((e=>{n.indexOf(e)!==i.indexOf(e)&&l.push(e)})),t.listeners&&(r.length||s.length||l.length)){const e={target:this,added:r,removed:s,moved:l},i=t.listeners.length;for(let r=0;r<i;r++){const s=t.listeners[r];s.removed||s.callback.call(this,e)}}a.A.release(r),a.A.release(s),a.A.release(l)}w.clear(),I.clear(),A.clear()}};O.ofType=e=>{if(!e)return u;if(V.has(e))return V.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const r in e.typeMap){const s=e.typeMap[r].prototype.declaredClass;t?t+=` | ${s}`:t=s}let r=class extends u{};return(0,i._)([(0,y.u)({Type:e,ensureType:"function"==typeof e?(0,h.dp)(e):(0,h.aq)(e)})],r.prototype,"itemType",void 0),r=(0,i._)([(0,g.$)(`esri.core.Collection<${t}>`)],r),V.set(e,r),r},(0,i._)([(0,m.MZ)()],O.prototype,"_updating",void 0),(0,i._)([(0,m.MZ)()],O.prototype,"length",void 0),(0,i._)([(0,m.MZ)()],O.prototype,"items",null),(0,i._)([(0,m.MZ)({readOnly:!0})],O.prototype,"updating",null),O=u=(0,i._)([(0,g.$)("esri.core.Collection")],O);const x=O},65529:(e,t,r)=>{r.d(t,{A:()=>l});var s=r(90237),i=r(69622),a=r(36563),n=r(40608);class l{constructor(){this._emitter=new l.EventEmitter(this)}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(e){class t{constructor(e=null){this._target=e,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(e,t){let r=this._listenersMap?.get(e);if(!r)return!1;const s=this._target||this;let i=!1;for(const e of r.slice()){const r="deref"in e?e.deref():e;r?r?.call(s,t):i=!0}return i&&(r=r.filter((e=>!("deref"in e)||null!=e.deref())),this._listenersMap.set(e,r)),r.length>0}on(e,t){if(Array.isArray(e)){const r=e.map((e=>this.on(e,t)));return(0,a.vE)(r)}if(e.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const r=this._listenersMap.get(e)||[];return r.push(t),this._listenersMap.set(e,r),(0,a.hA)((()=>{const r=this._listenersMap?.get(e),s=r?.indexOf(t)??-1;s>=0&&r.splice(s,1)}))}once(e,t){const r=this.on(e,(e=>{r.remove();const s="deref"in t?t.deref():t;s?.call(null,e)}));return r}hasEventListener(e){const t=this._listenersMap?.get(e);return null!=t&&t.length>0}}e.EventEmitter=t,e.EventedMixin=e=>{let r=class extends e{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return r=(0,s._)([(0,n.$)("esri.core.Evented")],r),r};let r=class extends i.A{constructor(){super(...arguments),this._emitter=new l.EventEmitter(this)}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};r=(0,s._)([(0,n.$)("esri.core.Evented.EventedAccessor")],r),e.EventedAccessor=r}(l)},3483:(e,t,r)=>{function s(e,t){for(const r of e.values())if(t(r))return!0;return!1}function i(e,t){if(!t)return e;for(const r of t)null!=r&&e.add(r);return e}function a(e,t){return null!=t&&e.add(t),e}function n(e,t){const r=new Set;return i(r,e),i(r,t),r}function l(e,t){const r=new Set;for(const s of t)e.has(s)&&r.add(s);return r}function o(e,t){if(!e||!t)return!1;if(e===t)return!0;for(const r of e)if(!t.has(r))return!1;return!0}function c(e,t){if(null==e&&null==t)return!0;if(null==e||null==t||e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}function u(e,t){const r=new Set(e);for(const e of t)r.delete(e);return r}r.d(t,{E$:()=>l,FB:()=>i,KC:()=>n,Yy:()=>o,aI:()=>c,bw:()=>s,iv:()=>u,kb:()=>a})},7695:(e,t,r)=>{function s(e){return(t,r)=>{t[r]=e}}r.d(t,{u:()=>s})},90629:(e,t,r)=>{r.d(t,{Lz:()=>n,PN:()=>l,cr:()=>o,gs:()=>u,r_:()=>d,tc:()=>c});const s=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,i="screenUtils.toPt: input not recognized!",a=96;function n(e){return e?e/72*a:0}function l(e){return e?72*e/a:0}function o(e){if("string"==typeof e){const t=e.match(s);if(t){const r=Number(t[1]),s=t[3]&&t[3].toLowerCase(),i="-"===e.charAt(0),a="px"===s?l(r):r;return i?-a:a}return console.warn(i),null}return e}function c(e=0,t=0){return{x:e,y:t}}function u(e=0,t=0){return[e,t]}function d(e=0,t=0,r=0){return[e,t,r]}},3330:(e,t,r)=>{r.d(t,{GB:()=>i,Qo:()=>n,Y4:()=>a});var s=r(96285);class i{}function a(e){return e instanceof s.bo?e===i.instance:"unknown"===e?.toString().toLowerCase()}function n(e){return a(e)?i.instance:e}i.instance=new s.oh("Etc/UTC")},62577:(e,t,r)=>{function s(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]:[0,0,0,0]}:null}function i(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;const{originPosition:t,scale:r,translate:s}=e,i=r[0]??1,a=r[1]??1;return{originPosition:"lowerLeft",scale:[i,"lowerLeft"===t?a:-a,r[2]??1,r[3]??1],translate:[s[0]??0,s[1]??0,s[2]??0,s[3]??0]}}function a({scale:e,translate:t},r){return r*e[0]+t[0]}function n({scale:e,translate:t},r){return r*e[1]+t[1]}function l({scale:e,translate:t},r){return(r??0)*e[2]+t[2]}function o({scale:e,translate:t},r){return r?r*e[3]+t[3]:0}function c(e,t){return e&&t?p:e&&!t?d:!e&&t?h:u}r.d(t,{$X:()=>b,Gy:()=>y,P5:()=>v,Q1:()=>i,SW:()=>g,Tr:()=>f,VV:()=>s}),r(65864);const u=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const s=t[0];let i=a(e,s[0]),l=n(e,s[1]);r[0]=[i,l];const{scale:o,originPosition:c}=e,u=o[0],d="lowerLeft"===c?o[1]:-o[1];for(let e=1;e<t.length;e++){const[s,a]=t[e];i+=u*s,l+=d*a,r[e]=[i,l]}return r},d=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const s=t[0];let i=a(e,s[0]),o=n(e,s[1]);r[0]=[i,o,l(e,s[2])];const{scale:c,originPosition:u}=e,d=c[0],h="lowerLeft"===u?c[1]:-c[1];for(let s=1;s<t.length;s++){const[a,n,c]=t[s];i+=d*a,o+=h*n,r[s]=[i,o,l(e,c)]}return r},h=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const s=t[0];let i=a(e,s[0]),l=n(e,s[1]);r[0]=[i,l,o(e,s[2])];const{scale:c,originPosition:u}=e,d=c[0],h="lowerLeft"===u?c[1]:-c[1];for(let s=1;s<t.length;s++){const[a,n,c]=t[s];i+=d*a,l+=h*n,r[s]=[i,l,o(e,c)]}return r},p=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const s=t[0];let i=a(e,s[0]),c=n(e,s[1]);r[0]=[i,c,l(e,s[2]),o(e,s[3])];const{scale:u,originPosition:d}=e,h=u[0],p="lowerLeft"===d?u[1]:-u[1];for(let s=1;s<t.length;s++){const[a,n,u,d]=t[s];i+=h*a,c+=p*n,r[s]=[i,c,l(e,u),o(e,d)]}return r};function m(e,t,r){const s=new Array(r.length);for(let i=0;i<r.length;i++)s[i]=t(e,r[i]);return s}function y(e,t,r){const s=i(e);return t.x=function({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}(s,r.x),t.y=function({scale:e,translate:t},r){return Math.round((r-t[1])/e[1])}(s,r.y),null!=r.z&&(t.z=function({scale:e,translate:t},r){return Math.round(((r??0)-t[2])/e[2])}(s,r.z)),null!=r.m&&(t.m=function({scale:e,translate:t},r){return r?Math.round((r-t[3])/e[3]):0}(s,r.m)),t}function g(e,t,r,s=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const n=i(e);t.points=c(s,a)(n,r.points),t.hasZ=s,t.hasM=a}return t}function f(e,t,r,s=null!=r?.z,c=null!=r?.m){if(null==r)return t;const u=i(e);return t.x=a(u,r.x),t.y=n(u,r.y),s&&(t.z=l(u,r.z)),c&&(t.m=o(u,r.m)),t}function b(e,t,r,s=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const n=i(e);t.rings=m(n,c(s,a),r.rings),t.hasZ=s,t.hasM=a}return t}function v(e,t,r,s=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const n=i(e);t.paths=m(n,c(s,a),r.paths),t.hasZ=s,t.hasM=a}return t}},59247:(e,t,r)=>{r.d(t,{bv:()=>o,Fk:()=>c,yG:()=>u,$b:()=>d,Nd:()=>h,jm:()=>p,sK:()=>g});var s=r(40876),i=r(90629);function a(){const e=new Float32Array(16);return e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}const n=a();Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:function(e){const t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},create:a,createView:function(e,t){return new Float32Array(e,t,16)},fromValues:function(e,t,r,s,i,a,n,l,o,c,u,d,h,p,m,y){const g=new Float32Array(16);return g[0]=e,g[1]=t,g[2]=r,g[3]=s,g[4]=i,g[5]=a,g[6]=n,g[7]=l,g[8]=o,g[9]=c,g[10]=u,g[11]=d,g[12]=h,g[13]=p,g[14]=m,g[15]=y,g}},Symbol.toStringTag,{value:"Module"}));var l=r(58083);class o{constructor(e,t,r){this.strength=e,this.radius=t,this.threshold=r,this.type="bloom"}interpolate(e,t,r){this.strength=m(e.strength,t.strength,r),this.radius=m(e.radius,t.radius,r),this.threshold=m(e.threshold,t.threshold,r)}clone(){return new o(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:y(this.radius),strength:this.strength,threshold:this.threshold}}}class c{constructor(e){this.radius=e,this.type="blur"}interpolate(e,t,r){this.radius=Math.round(m(e.radius,t.radius,r))}clone(){return new c(this.radius)}toJSON(){return{type:"blur",radius:y(this.radius)}}}class u{constructor(e,t){this.type=e,this.amount=t,"invert"!==this.type&&"grayscale"!==this.type&&"sepia"!==this.type||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.amount=m(e.amount,t.amount,r),this._updateMatrix()}clone(){return new u(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const e=this._colorMatrix||a();switch(this.type){case"brightness":this._colorMatrix=((e,t)=>{const r=(0,l.hZ)(e,t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1);return(0,l.mg)(r,r)})(e,this.amount);break;case"contrast":this._colorMatrix=((e,t)=>{const r=(0,l.hZ)(e,t,0,0,.5-.5*t,0,t,0,.5-.5*t,0,0,t,.5-.5*t,0,0,0,1);return(0,l.mg)(r,r)})(e,this.amount);break;case"grayscale":this._colorMatrix=(e=>{const t=1-this.amount,r=(0,l.hZ)(e,.2126+.7874*t,.7152-.7152*t,.0722-.0722*t,0,.2126-.2126*t,.7152+.2848*t,.0722-.0722*t,0,.2126-.2126*t,.7152-.7152*t,.0722+.9278*t,0,0,0,0,1);return(0,l.mg)(r,r)})(e);break;case"invert":this._colorMatrix=((e,t)=>{const r=1-2*t,s=(0,l.hZ)(e,r,0,0,t,0,r,0,t,0,0,r,t,0,0,0,1);return(0,l.mg)(s,s)})(e,this.amount);break;case"saturate":this._colorMatrix=((e,t)=>{const r=(0,l.hZ)(e,.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1);return(0,l.mg)(r,r)})(e,this.amount);break;case"sepia":this._colorMatrix=(e=>{const t=1-this.amount,r=(0,l.hZ)(e,.393+.607*t,.769-.769*t,.189-.189*t,0,.349-.349*t,.686+.314*t,.168-.168*t,0,.272-.272*t,.534-.534*t,.131+.869*t,0,0,0,0,1);return(0,l.mg)(r,r)})(e)}}}class d{constructor(e,t,r,s){this.offsetX=e,this.offsetY=t,this.blurRadius=r,this.color=s,this.type="drop-shadow"}interpolate(e,t,r){this.offsetX=m(e.offsetX,t.offsetX,r),this.offsetY=m(e.offsetY,t.offsetY,r),this.blurRadius=m(e.blurRadius,t.blurRadius,r),this.color[0]=Math.round(m(e.color[0],t.color[0],r)),this.color[1]=Math.round(m(e.color[1],t.color[1],r)),this.color[2]=Math.round(m(e.color[2],t.color[2],r)),this.color[3]=m(e.color[3],t.color[3],r)}clone(){return new d(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const e=[...this.color];return e[3]*=255,{type:"drop-shadow",xoffset:y(this.offsetX),yoffset:y(this.offsetY),blurRadius:y(this.blurRadius),color:e}}}class h{constructor(e){this.angle=e,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.angle=m(e.angle,t.angle,r),this._updateMatrix()}clone(){return new h(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const e=this._colorMatrix||a();this._colorMatrix=((e,t)=>{const r=Math.sin(t*Math.PI/180),s=Math.cos(t*Math.PI/180),i=(0,l.hZ)(e,.213+.787*s-.213*r,.715-.715*s-.715*r,.072-.072*s+.928*r,0,.213-.213*s+.143*r,.715+.285*s+.14*r,.072-.072*s-.283*r,0,.213-.213*s-.787*r,.715-.715*s+.715*r,.072+.928*s+.072*r,0,0,0,0,1);return(0,l.mg)(i,i)})(e,this.angle)}}class p{constructor(e){this.amount=e,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(e,t,r){this.amount=m(e.amount,t.amount,r)}clone(){return new p(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function m(e,t,r){return e+(t-e)*r}function y(e){return Math.round(1e3*(0,i.PN)(e))/1e3}function g(e){switch(e.type){case"grayscale":case"sepia":case"invert":return new u(e.type,0);case"saturate":case"brightness":case"contrast":return new u(e.type,1);case"opacity":return new p(1);case"hue-rotate":return new h(0);case"blur":return new c(0);case"drop-shadow":return new d(0,0,0,[...(0,s.TS)("transparent")]);case"bloom":return new o(0,0,1)}}},27865:(e,t,r)=>{r.d(t,{O9:()=>a,dw:()=>n,mj:()=>i});var s=r(59247);function i(e,t){const r=e.length>t.length?e:t;return(e.length>t.length?t:e).every(((e,t)=>e.type===r[t].type))}function a(e,t){const r=e.length>t.length?e:t,i=e.length>t.length?t:e;for(let e=i.length;e<r.length;e++)i.push((0,s.sK)(r[e]))}function n(e){const t=e[0];return!!t&&"type"in t}},68463:(e,t,r)=>{r.d(t,{Mh:()=>d,A5:()=>g});var s=r(97768),i=r(54218),a=r(96285);const n=["HH:mm:ss.SSS","HH:mm:ss","HH:mm","TT"],l="yyyy-MM-dd";function o(e){if(!e||!(0,i.Kg)(e))return null;const t=a.c9.fromFormat(e,l);return t.isValid?t:null}function c(e){return e&&(0,i.Kg)(e)?(0,s.Pb)(n,(t=>{const r=a.c9.fromFormat(e,t);return r.isValid?r:null}))??null:null}function u(e){if(!e||!(0,i.Kg)(e))return null;const t=a.c9.fromISO(e);return t.isValid?t:null}var d;!function(e){e.VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",e.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value"}(d||(d={}));const h=new Set(["integer","small-integer","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"]);function p(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function m(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function y(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function g(e,t){const r=t??e?.domain;if(!r||"range"!==r.type)return;const s="range"in r?r.range[0]:r.minValue,i="range"in r?r.range[1]:r.maxValue,a=function(e){return null!=e&&h.has(e.type)}(e);return p(e)||y(e)||m(e)?{...f(e,i,s),isInteger:a}:{min:null!=s&&"number"==typeof s?s:null,max:null!=i&&"number"==typeof i?i:null,rawMin:s,rawMax:i,isInteger:a}}function f(e,t,r){return p(e)?{min:o(r)?.toMillis(),max:o(t)?.toMillis(),rawMin:r,rawMax:t}:y(e)?{min:c(r)?.toMillis(),max:c(t)?.toMillis(),rawMin:r,rawMax:t}:m(e)?{min:u(r)?.toMillis(),max:u(t)?.toMillis(),rawMin:r,rawMax:t}:{max:null,min:null}}},30524:(e,t,r)=>{r.d(t,{Ah:()=>q,Bz:()=>E,CJ:()=>re,DB:()=>b,Dx:()=>T,JL:()=>ue,OG:()=>Q,OH:()=>J,R$:()=>x,R3:()=>P,WA:()=>j,WX:()=>te,Xz:()=>X,_b:()=>G,_w:()=>v,eX:()=>w,hL:()=>S,lD:()=>F,mB:()=>M,nw:()=>de,rS:()=>d,rq:()=>_,sv:()=>g,te:()=>Y,uo:()=>ce,vE:()=>Z,yM:()=>W,yp:()=>m,zD:()=>H}),r(49186);var s=r(93637),i=r(3483),a=r(68463),n=r(69309),l=r(71386),o=r(54218);const c=/^([0-9_])/,u=/[^a-z0-9_\u0080-\uffff]+/gi;function d(e){return null==e?null:e.trim().replaceAll(u,"_").replace(c,"F$1")||null}const h=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],p=["field","normalizationField"];function m(e,t){if(null!=e&&null!=t)for(const r of Array.isArray(e)?e:[e])if(y(h,r,t),"visualVariables"in r&&r.visualVariables)for(const e of r.visualVariables)y(p,e,t)}function y(e,t,r){if(e)for(const i of e){const e=(0,s.wc)(i,t),a=e&&"function"!=typeof e&&r.get(e);a&&(0,s.sM)(i,a.name,t)}}function g(e,t){if(null!=e&&t?.fields?.length)if("startField"in e){const r=t.get(e.startField),s=t.get(e.endField);e.startField=r?.name??null,e.endField=s?.name??null}else{const r=t.get(e.startTimeField),s=t.get(e.endTimeField);e.startTimeField=r?.name??null,e.endTimeField=s?.name??null}}const f=new Set;function b(e,t){return e&&t?(f.clear(),v(f,e,t),Array.from(f).sort()):[]}function v(e,t,r){if(r)if(t?.fields?.length)if(r.includes("*"))for(const{name:r}of t.fields)e.add(r);else for(const s of r)_(e,t,s);else{if(r.includes("*"))return e.clear(),void e.add("*");for(const t of r)null!=t&&e.add(t)}}function _(e,t,r){if("string"==typeof r)if(t){const s=t.get(r);s&&e.add(s.name)}else e.add(r)}function S(e,t){return null==t||null==e?[]:t.includes("*")?(e.fields??[]).map((e=>e.name)):t}async function T(e,t,r){if(!r)return;let s;const i=(0,n.o)(r);if(i)s=[i];else{const{arcadeUtils:e}=await(0,l.lw)();s=e.extractFieldNames(r,t?.fields?.map((e=>e.name)))}for(const r of s)_(e,t,r)}function M({displayField:e,fields:t}){return e||(t?.length?L(t,"name-or-title")||L(t,"unique-identifier")||L(t,"type-or-category")||function(e){for(const t of e){if(!t?.name)continue;const e=t.name.toLowerCase();if(e.includes("name")||e.includes("title"))return t.name}return null}(t):null)}function L(e,t){for(const r of e)if(r?.valueType&&r.valueType===t)return r.name;return null}function w(e){return e?b(e.fieldsIndex,D(e)):[]}const I=new Set(["oid","global-id","guid"]),A=new Set(["oid","global-id"]),V=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^shape$/i,/^shape_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/perimeter/i,/objectid/i,/_i$/i];function D(e){if(!e)return[];const t="editFieldsInfo"in e&&e.editFieldsInfo;if(!t)return[];const{creationDateField:r,creatorField:s,editDateField:i,editorField:a}=t;return[r,s,i,a].filter(Boolean)}function O(e){return D(e).map((e=>e.toLowerCase()))}function x(e,t){return e.editable&&!I.has(e.type)&&!O(t).includes(e.name?.toLowerCase()??"")}function E(e,t){const r=e.name?.toLowerCase()??"";return!(null!=t?.objectIdField&&r===t.objectIdField.toLowerCase()||null!=t?.globalIdField&&r===t.globalIdField.toLowerCase()||function(e){const t=new Set;O(e).forEach((e=>t.add(e))),function(e){if(!e)return[];const t=e.geometryFieldsInfo;return t?b(e.fieldsIndex,[t.shapeAreaField,t.shapeLengthField]):[]}(e).forEach((e=>t.add(e.toLowerCase())));const r=e&&"infoFor3D"in e?e.infoFor3D:void 0;return r&&(Object.values(r.assetMapFieldRoles).forEach((e=>t.add(e.toLowerCase()))),Object.values(r.transformFieldRoles).forEach((e=>t.add(e.toLowerCase())))),Array.from(t)}(t).includes(r)||A.has(e.type)||V.some((e=>e.test(r))))}function F(e){const t=e.defaultValue;return void 0!==t&&R(e,t)?t:e.nullable?null:void 0}function G(e){const t="string"==typeof e?{type:e}:e;return W(t)?255:"esriFieldTypeDate"===t.type||"date"===t.type?8:void 0}function N(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function k(e){return null===e||N(e)}function C(e){return null===e||Number.isInteger(e)}function U(){return!0}function R(e,t){let r;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":r=e.nullable?C:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?k:N;break;case"string":case"esriFieldTypeString":r=e.nullable?o.CO:o.Kg;break;default:r=U}return 1===arguments.length?r:r(t)}const B=new Set(["integer","small-integer","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"]),z=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]),$=(0,i.KC)(B,z);function P(e){return null!=e&&B.has(e.type)}function j(e){return null!=e&&$.has(e.type)}function W(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}function Z(e){return null!=e&&("date"===e.type||"esriFieldTypeDate"===e.type)}function H(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function q(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function J(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function Y(e){return null!=e&&("oid"===e.type||"esriFieldTypeOID"===e.type)}function X(e){return null!=e&&("global-id"===e.type||"esriFieldTypeGlobalID"===e.type)}function Q(e,t){return null===re(e,t)}var K,ee;function te(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function re(e,t){return null==e||e.nullable&&null===t?null:R(e,t)?j(e)&&!function(e,t){const r="string"==typeof e?se(e):e;if(!r)return!1;const s=r.min,i=r.max;return r.isInteger?Number.isInteger(t)&&t>=s&&t<=i:t>=s&&t<=i}(e.type,Number(t))?K.OUT_OF_RANGE:null:ee.INVALID_TYPE}function se(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return ie;case"esriFieldTypeInteger":case"integer":return ae;case"esriFieldTypeBigInteger":case"big-integer":return ne;case"esriFieldTypeSingle":case"single":return le;case"esriFieldTypeDouble":case"double":return oe}}(K||(K={})).OUT_OF_RANGE="numeric-range-validation-error::out-of-range",function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(ee||(ee={}));const ie={min:-32768,max:32767,isInteger:!0,rawMin:-32768,rawMax:32767},ae={min:-2147483648,max:2147483647,isInteger:!0,rawMin:-2147483648,rawMax:2147483647},ne={min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,isInteger:!0,rawMin:-Number.MAX_SAFE_INTEGER,rawMax:Number.MAX_SAFE_INTEGER},le={min:-34e37,max:12e37,isInteger:!1,rawMin:-34e37,rawMax:12e37},oe={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE};function ce(e,t,r){switch(e){case a.Mh.INVALID_CODED_VALUE:return`Value ${r} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case a.Mh.VALUE_OUT_OF_RANGE:return`Value ${r} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case ee.INVALID_TYPE:return`Value ${r} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case K.OUT_OF_RANGE:{const{min:e,max:s}=se(t.type);return`Value ${r} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${s}`}}}function ue(e){return!!e&&["raster.itempixelvalue","raster.servicepixelvalue"].some((t=>e.toLowerCase().startsWith(t)))}function de(e){const t=e?.match(/{[^}]+}/g);return t?t.map((e=>e.slice(1,-1).split(":")[0].trim())):[]}},61760:(e,t,r)=>{r.d(t,{PU:()=>n,YW:()=>o,ex:()=>i,hv:()=>l,zp:()=>a}),r(34727);var s=r(90629);r(87317),r(91829);const i=2.4;function a(e){return(0,s.PN)(e*i)}function n(e){return(0,s.Lz)(e)/i}function l(e,t,r){const s=Math.sqrt(e**2+t**2)/r;return s>1?0:3/(Math.PI*r**2)*(1-s**2)**2}function o(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},9760:(e,t,r)=>{r.d(t,{A:()=>h});var s=r(90237),i=r(66552),a=r(25482),n=r(10107),l=(r(44208),r(53966),r(87811),r(93223)),o=r(40608);const c=new i.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new i.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let d=class extends a.A{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,s._)([(0,l.e)({classBreaksDef:"class-breaks-definition"})],d.prototype,"type",void 0),(0,s._)([(0,n.MZ)({json:{write:!0}})],d.prototype,"breakCount",void 0),(0,s._)([(0,n.MZ)({json:{write:!0}})],d.prototype,"classificationField",void 0),(0,s._)([(0,n.MZ)({type:String,json:{read:c.read,write:c.write}})],d.prototype,"classificationMethod",void 0),(0,s._)([(0,n.MZ)({json:{write:!0}})],d.prototype,"normalizationField",void 0),(0,s._)([(0,n.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"normalizationType",void 0),(0,s._)([(0,n.MZ)({value:null,json:{write:!0}})],d.prototype,"standardDeviationInterval",null),(0,s._)([(0,n.MZ)({value:null,json:{write:!0}})],d.prototype,"definedInterval",null),d=(0,s._)([(0,o.$)("esri.rest.support.ClassBreaksDefinition")],d);const h=d},84892:(e,t,r)=>{r.d(t,{t:()=>n});var s=r(53966);const i=()=>s.A.getLogger("esri.rest.support.generateRendererUtils");function a(e,t){return Number(e.toFixed(t))}function n(e,t){const{normalizationTotal:r}=e;return{classBreaks:l(e,t),normalizationTotal:r}}function l(e,t){const r=e.definition,{classificationMethod:s,normalizationType:i,definedInterval:n}=r,l=r.breakCount??1,u=[];let d=e.values;if(0===d.length)return[];d=d.sort(((e,t)=>e-t));const[h,p]=t??[d.at(0),d.at(-1)];if("equal-interval"===s)if(d.length>=l){const e=(p-h)/l;let t=h;for(let r=1;r<l;r++){const s=a(h+r*e,6);u.push({minValue:t,maxValue:s,label:o(t,s,i)}),t=s}u.push({minValue:t,maxValue:p,label:o(t,p,i)})}else d.forEach((e=>{u.push({minValue:e,maxValue:e,label:o(e,e,i)})}));else if("natural-breaks"===s){const t=function(e){const t=[],r=[];let s=Number.MIN_VALUE,i=1,a=-1;for(let n=0;n<e.length;n++){const l=e[n];l===s?(i++,r[a]=i):null!==l&&(t.push(l),s=l,i=1,r.push(i),a++)}return{uniqueValues:t,valueFrequency:r}}(d),r=e.valueFrequency||t.valueFrequency,s=c(t.uniqueValues,r,l);let n=h;for(let e=1;e<l;e++)if(t.uniqueValues.length>e){const r=a(t.uniqueValues[s[e]],6);u.push({minValue:n,maxValue:r,label:o(n,r,i)}),n=r}u.push({minValue:n,maxValue:p,label:o(n,p,i)})}else if("quantile"===s)if(d.length>=l&&h!==p){let e=h,t=Math.ceil(d.length/l),r=0;for(let s=1;s<l;s++){let a=t+r-1;a>d.length&&(a=d.length-1),a<0&&(a=0),u.push({minValue:e,maxValue:d[a],label:o(e,d[a],i)}),e=d[a],r+=t,t=Math.ceil((d.length-r)/(l-s))}u.push({minValue:e,maxValue:p,label:o(e,p,i)})}else{let e=-1;for(let t=0;t<d.length;t++){const r=d[t];r!==e&&(e=r,u.push({minValue:e,maxValue:r,label:o(e,r,i)}),e=r)}}else if("standard-deviation"===s){const e=function(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t/=e.length,t}(d),t=function(e,t){let r=0;for(let s=0;s<e.length;s++){const i=e[s];r+=(i-t)*(i-t)}return r/=e.length,Math.sqrt(r)}(d,e);if(0===t)u.push({minValue:d[0],maxValue:d[0],label:o(d[0],d[0],i)});else{const r=function(e,t,r,s,i){let a=Math.max(s-e,t-s)/i/r;return a=a>=1?1:a>=.5?.5:.25,a}(h,p,l,e,t)*t;let s=0,n=h;for(let t=l;t>=1;t--){const l=a(e-(t-.5)*r,6);u.push({minValue:n,maxValue:l,label:o(n,l,i)}),n=l,s++}let c=a(e+.5*r,6);u.push({minValue:n,maxValue:c,label:o(n,c,i)}),n=c,s++;for(let t=1;t<=l;t++)c=s===2*l?p:a(e+(t+.5)*r,6),u.push({minValue:n,maxValue:c,label:o(n,c,i)}),n=c,s++}}else if("defined-interval"===s){if(!n)return u;const[e,r]=t??[d.at(0),d.at(-1)],s=Math.ceil((r-e)/n);let l=e;for(let t=1;t<s;t++){const r=a(e+t*n,6);u.push({minValue:l,maxValue:r,label:o(l,r,i)}),l=r}u.push({minValue:l,maxValue:r,label:o(l,r,i)})}return u}function o(e,t,r){let s=null;return s=e===t?r&&"percent-of-total"===r?e+"%":e.toString():r&&"percent-of-total"===r?e+"% - "+t+"%":e+" - "+t,s}function c(e,t,r){const s=e.length,i=[];r>s&&(r=s);for(let e=0;e<r;e++)i.push(Math.round(e*s/r-1));i.push(s-1);let a=u(i,e,t,r);return function(e,t,r,s,i,a){let n=0,l=0,o=0,c=0,u=!0;for(let h=0;h<2&&u;h++){0===h&&(u=!1);for(let h=0;h<a-1;h++)for(;r[h+1]+1!==r[h+2];){r[h+1]=r[h+1]+1;const a=d(h,r,s,i);o=a.sbMean,n=a.sbSdcm;const p=d(h+1,r,s,i);if(c=p.sbMean,l=p.sbSdcm,!(n+l<t[h]+t[h+1])){r[h+1]=r[h+1]-1;break}t[h]=n,t[h+1]=l,e[h]=o,e[h+1]=c,u=!0}for(let h=a-1;h>0;h--)for(;r[h]!==r[h-1]+1;){r[h]=r[h]-1;const a=d(h-1,r,s,i);o=a.sbMean,n=a.sbSdcm;const p=d(h,r,s,i);if(c=p.sbMean,l=p.sbSdcm,!(n+l<t[h-1]+t[h])){r[h]=r[h]+1;break}t[h-1]=n,t[h]=l,e[h-1]=o,e[h]=c,u=!0}}return u}(a.mean,a.sdcm,i,e,t,r)&&(a=u(i,e,t,r)),i}function u(e,t,r,s){let i=[],a=[],n=[],l=0;const o=[],c=[];for(let i=0;i<s;i++){const s=d(i,e,t,r);o.push(s.sbMean),c.push(s.sbSdcm),l+=c[i]}let u,h=l,p=!0;for(;p||l<h;){p=!1,i=[];for(let t=0;t<s;t++)i.push(e[t]);for(let r=0;r<s;r++)for(let i=e[r]+1;i<=e[r+1];i++)if(u=t[i],r>0&&i!==e[r+1]&&Math.abs(u-o[r])>Math.abs(u-o[r-1]))e[r]=i;else if(r<s-1&&e[r]!==i-1&&Math.abs(u-o[r])>Math.abs(u-o[r+1])){e[r+1]=i-1;break}h=l,l=0,a=[],n=[];for(let i=0;i<s;i++){a.push(o[i]),n.push(c[i]);const s=d(i,e,t,r);o[i]=s.sbMean,c[i]=s.sbSdcm,l+=c[i]}}if(l>h){for(let t=0;t<s;t++)e[t]=i[t],o[t]=a[t],c[t]=n[t];l=h}return{mean:o,sdcm:c}}function d(e,t,r,s){let a=0,n=0;for(let i=t[e]+1;i<=t[e+1];i++){const e=s[i];a+=r[i]*e,n+=e}n<=0&&i().warn("Exception in Natural Breaks calculation");const l=a/n;let o=0;for(let i=t[e]+1;i<=t[e+1];i++)o+=s[i]*(r[i]-l)**2;return{sbMean:l,sbSdcm:o}}},50201:(e,t,r)=>{r.d(t,{gV:()=>g,Jc:()=>b,$r:()=>y,rb:()=>f}),r(59456),r(49186);var s=r(90629),i=r(88930),a=r(16930),n=r(62577),l=r(21325),o=r(30524),c=r(61760),u=(r(97770),r(71386));r(5503),r(84952),r(27865),r(43281),r(56400),new Set(["integer","small-integer"]);var d=r(1873),h=r(86738);let p=null;const m=/^(?<hh>([0-1][0-9])|([2][0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?([.](?<ms>\d+))?$/;function y(e,t,r,s){const i=(0,l.d9)(r)?(0,l.Vp)(r):null,a=i?Math.round((i.valid[1]-i.valid[0])/t.scale[0]):null;return e.map((e=>{const r=new h.A(e.geometry);return(0,n.Gy)(t,r,r),e.geometry=i?function(e,t,r){return e.x<0?e.x+=t:e.x>r&&(e.x-=t),e}(r,a??0,s[0]):r,e}))}function g(e,t=18,r,i,a){const n=new Float64Array(i*a);t=Math.round((0,s.Lz)(t));let l=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;const u=(0,c.YW)(r);for(const{geometry:r,attributes:s}of e){const{x:e,y:d}=r,h=Math.max(0,e-t),p=Math.max(0,d-t),m=Math.min(a,d+t),y=Math.min(i,e+t),g=+u(s);for(let r=p;r<m;r++)for(let s=h;s<y;s++){const a=r*i+s,u=(0,c.hv)(s-e,r-d,t)*g,h=n[a]+=u;l=Math.min(l,h),o=Math.max(o,h)}}return{min:l,max:o}}function f(e){const t=m.exec(e);if(!t)return null;const{hh:r,mm:s,ss:a,ms:n}=t.groups;return Number(r)*i.vf.hours+Number(s)*i.vf.minutes+Number(a)*i.vf.seconds+Number(n||0)}async function b(e,t,r=!0){if(!t)return[];const{field:s,field2:i,field3:n,fieldDelimiter:l,fieldInfos:c,timeZone:h}=e,m=s&&c?.find((e=>e.name.toLowerCase()===s.toLowerCase())),y=!!m&&(0,o.OH)(m),g=!!m&&function(e){return(0,o.vE)(e)||(0,o.zD)(e)||(0,o.Ah)(e)}(m),b=e.valueExpression,v=e.normalizationType,_=e.normalizationField,S=e.normalizationTotal,T=[],M=e.viewInfoParams;let L=null,w=null;if(b){if(!p){const{arcadeUtils:e}=await(0,u.lw)();p=e}p.hasGeometryOperations(b)&&await p.enableGeometryOperations(),L=p.createFunction(b),w=M?p.getViewInfo({viewingMode:M.viewingMode,scale:M.scale,spatialReference:new a.A(M.spatialReference)}):null}const I=e.fieldInfos,A=t[0]&&"declaredClass"in t[0]&&"esri.Graphic"===t[0].declaredClass||!I?null:{fields:I};return t.forEach((e=>{const t=e.attributes;let a;if(b){const t=A?{...e,layer:A}:e,r=p.createExecContext(t,w,h);a=p.executeFunction(L,r)}else t&&(a=t[s],i?(a=`${(0,d.gJ)(a)}${l}${(0,d.gJ)(t[i])}`,n&&(a=`${a}${l}${(0,d.gJ)(t[n])}`)):"string"==typeof a&&r&&(g?a=a?new Date(a).getTime():null:y&&(a=a?f(a):null)));if(v&&"number"==typeof a&&isFinite(a)){const e=t&&parseFloat(t[_]);a=(0,d.zS)(a,v,e,S)}T.push(a)})),T}},1873:(e,t,r)=>{r.d(t,{$y:()=>B,Ak:()=>$,FM:()=>v,G_:()=>f,Rw:()=>C,Vb:()=>y,b3:()=>F,gJ:()=>m,jM:()=>R,lv:()=>N,oZ:()=>E,qg:()=>b,sU:()=>z,z9:()=>g,zS:()=>k});var s=r(9760),i=r(84892);const a="<Null>",n="equal-interval",l=1,o=5,c=10,u=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,d=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),h=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),p=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function m(e){return null==e||"string"==typeof e&&!e?a:e}function y(e){const t=null!=e.normalizationField||null!=e.normalizationType,r=null!=e.minValue||null!=e.maxValue,s=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!r&&!s}function g(e){const{outStatisticTypes:t}=e,r=e.returnDistinct?[...new Set(e.values)]:e.values,s=r.filter((e=>null!=e)).sort(),i=s.length,a={count:i,min:s[0],max:s[i-1]};return e.supportsNullCount&&(a.nullcount=r.length-i),!e.percentileParams||t?.include?.length&&!t.include.includes("median")||t?.exclude?.length&&t.exclude.includes("median")||(a.median=b(r,e.percentileParams)),a}function f(e){const{values:t,useSampleStdDev:r,supportsNullCount:s,outStatisticTypes:i}=e;let a=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY,l=null,o=null,c=null,u=null,d=0;const h=null==e.minValue?-1/0:e.minValue,p=null==e.maxValue?1/0:e.maxValue;for(const e of t)Number.isFinite(e)?e>=h&&e<=p&&(l=null===l?e:l+e,a=Math.min(a,e),n=Math.max(n,e),d++):"string"==typeof e&&d++;if(d&&null!=l){o=l/d;let e=0;for(const r of t)Number.isFinite(r)&&r>=h&&r<=p&&(e+=(r-o)**2);u=r?d>1?e/(d-1):0:d>0?e/d:0,c=Math.sqrt(u)}else a=null,n=null;const m={avg:o,count:d,max:n,min:a,stddev:c,sum:l,variance:u};return s&&(m.nullcount=t.length-d),!e.percentileParams||i?.include?.length&&!i.include.includes("median")||i?.exclude?.length&&i.exclude.includes("median")||(m.median=b(t,e.percentileParams)),m}function b(e,t){const{fieldType:r,value:s,orderBy:i,isDiscrete:a}=t,n=v(r,"desc"===i);if(0===(e=[...e].filter((e=>null!=e)).sort(((e,t)=>n(e,t)))).length)return null;if(s<=0)return e[0];if(s>=1)return e[e.length-1];const l=(e.length-1)*s,o=Math.floor(l),c=o+1,u=l%1,d=e[o],h=e[c];return c>=e.length||a||"string"==typeof d||"string"==typeof h?d:d*(1-u)+h*u}function v(e,t){if(e){if(d.has(e))return O(t);if(h.has(e))return A(t,!1);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?L:M}(t);const r=A(t,!0);if("esriFieldTypeString"===e)return r;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>r(x(e),x(t))}const r=t?1:-1,s=O(t),i=A(t,!0),a=T(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?s(e,t):"string"==typeof e&&"string"==typeof t?i(e,t):a(e,t)??r}const _=(e,t)=>null==e?null==t?0:1:null==t?-1:null,S=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function T(e){return e?_:S}const M=(e,t)=>S(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),L=(e,t)=>_(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),w=(e,t)=>S(e,t)??(e===t?0:e<t?-1:1),I=(e,t)=>_(e,t)??(e===t?0:e<t?1:-1);function A(e,t){if(!t)return e?I:w;const r=T(e);return e?(e,t)=>{const s=r(e,t);return null!=s?s:(e=e.toUpperCase())>(t=t.toUpperCase())?-1:e<t?1:0}:(e,t)=>{const s=r(e,t);return null!=s?s:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}}const V=(e,t)=>_(e,t)??t-e,D=(e,t)=>S(e,t)??e-t;function O(e){return e?V:D}function x(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function E(e,t,r){let s;for(s in e)t?.include?.length&&!t.include.includes(s)||t?.exclude?.length&&t.exclude.includes(s)?delete e[s]:p.includes(s)&&(Number.isFinite(e[s])||(e[s]=null));return r?(["avg","stddev","variance"].forEach((t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))})),e):e}function F(e){const t={};for(let r of e)(null==r||"string"==typeof r&&""===r.trim())&&(r=null),null==t[r]?t[r]={count:1,data:r}:t[r].count++;return{count:t}}function G(e){return"coded-value"!==e?.type?[]:e.codedValues.map((e=>e.code))}function N(e,t,r,s){const i=e.count,a=[];if(r&&t){const e=[],r=G(t[0]);for(const i of r)if(t[1]){const r=G(t[1]);for(const a of r)if(t[2]){const r=G(t[2]);for(const t of r)e.push(`${m(i)}${s}${m(a)}${s}${m(t)}`)}else e.push(`${m(i)}${s}${m(a)}`)}else e.push(i);for(const t of e)i.hasOwnProperty(t)||(i[t]={data:t,count:0})}for(const e in i){const t=i[e];a.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:a}}function k(e,t,r,s){let i=null;switch(t){case"log":0!==e&&(i=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(s)&&0!==s&&(i=e/s*100);break;case"field":Number.isFinite(r)&&0!==r&&(i=e/r);break;case"natural-log":e>0&&(i=Math.log(e));break;case"square-root":e>0&&(i=e**.5)}return i}function C(e,t,r){const s=U({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||o});return e=function(e,t,r){const s=t??-1/0,i=r??1/0;return e.filter((e=>Number.isFinite(e)&&e>=s&&e<=i))}(e,t.minValue,t.maxValue),(0,i.t)({definition:s,values:e,normalizationTotal:t.normalizationTotal},r)}function U(e){const{breakCount:t,field:r,normalizationField:i,normalizationType:a}=e,o=e.classificationMethod||n,c="standard-deviation"===o?e.standardDeviationInterval||l:void 0,u="defined-interval"===o?e.definedInterval:void 0;return new s.A({breakCount:t,classificationField:r,classificationMethod:o,normalizationField:"field"===a?i:void 0,normalizationType:a,standardDeviationInterval:c,definedInterval:u})}function R(e,t){let r=e.classBreaks;const s=r.length,i=r[0]?.minValue,a=r[s-1]?.maxValue,n="standard-deviation"===t,l=u;return r=r.map((e=>{const t=e.label,r={minValue:e.minValue,maxValue:e.maxValue,label:t};if(n&&t){const e=t.match(l),s=e?.map((e=>+e.trim()))??[];2===s.length?(r.minStdDev=s[0],r.maxStdDev=s[1],s[0]<0&&s[1]>0&&(r.hasAvg=!0)):1===s.length&&(t.includes("<")?(r.minStdDev=null,r.maxStdDev=s[0]):t.includes(">")&&(r.minStdDev=s[0],r.maxStdDev=null))}return r})),{minValue:i,maxValue:a,classBreakInfos:r,normalizationTotal:e.normalizationTotal}}function B(e,t){const r=z(e,t);if(null==r.min&&null==r.max)return{bins:[],minValue:r.min,maxValue:r.max,normalizationTotal:t.normalizationTotal};const s=r.intervals,i=r.min??0,a=r.max??0,n=s.map(((e,t)=>({minValue:s[t][0],maxValue:s[t][1],count:0})));for(const t of e)if(null!=t&&t>=i&&t<=a){const e=$(s,t);e>-1&&n[e].count++}return{bins:n,minValue:i,maxValue:a,normalizationTotal:t.normalizationTotal}}function z(e,t,r=!1){const{field:s,classificationMethod:i,standardDeviationInterval:a,definedInterval:n,normalizationType:l,normalizationField:o,normalizationTotal:u,minValue:d,maxValue:h}=t,p=t.numBins||c;let m=null,g=null,b=null;if(i&&"equal-interval"!==i||l){const{classBreaks:t}=C(e,{field:s,normalizationType:l,normalizationField:o,normalizationTotal:u,classificationMethod:i,standardDeviationInterval:a,definedInterval:n,minValue:d,maxValue:h,numClasses:p},null!=d&&null!=h?[d,h]:void 0);m=t[0].minValue,g=t[t.length-1].maxValue,b=t.map((e=>[e.minValue,e.maxValue]))}else{if(null!=d&&null!=h)m=d,g=h;else{const t=f({values:e,minValue:d,maxValue:h,useSampleStdDev:!l,supportsNullCount:y({normalizationType:l,normalizationField:o,minValue:d,maxValue:h})});m=t.min??null,g=t.max??null}b=function(e,t,r){const s=(t-e)/r,i=[];let a,n=e;for(let e=1;e<=r;e++)a=n+s,a=Number(a.toFixed(16)),i.push([n,e===r?t:a]),n=a;return i}(m??0,g??0,p)}if(r){const e=b.at(-1)[1];b.push([e,e])}return{min:m,max:g,intervals:b}}function $(e,t){let r=-1;for(let s=e.length-1;s>=0;s--)if(t>=e[s][0]){r=s;break}return r}},69309:(e,t,r)=>{function s(e){if(!e)return;const t=e.match(i);return t?.groups?t.groups.doubleQuoted??t.groups.singleQuoted??t.groups.dotNotation:void 0}r.d(t,{D:()=>a,o:()=>s});const i=/^(\$feature\[(?:"(?<doubleQuoted>[^"]+)"|'(?<singleQuoted>[^']+)')\]|\$feature\.(?<dotNotation>[a-zA-Z_][a-zA-Z0-9_]*))$/i;function a(e){return e.match(n)?.[1]?.replace(/\\'/g,"'")??null}const n=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/},71386:(e,t,r)=>{r.d(t,{Ad:()=>d,QY:()=>o,lw:()=>u,xR:()=>h}),r(59456);var s=r(66131),i=r(49186),a=r(53966),n=r(16930);const l=["geometry","scale","timeProperties"];function o(e,t){if(null!=t)for(const r of l)t.hasArcadeDependency(r)&&e.add(r);return e}let c;function u(){return c||(c=(async()=>{const e=await Promise.all([r.e(708),r.e(655),r.e(3660)]).then(r.bind(r,93660));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),c}const d=(e,t,r)=>p.create(e,t,r,null,["$feature","$view"],[]),h=(e,t,r,s)=>p.create(e,t,r,s,["$feature","$view"],[]);class p{constructor(e,t,r,s,i,a,n){this._dependencies=new Map,this.services=null,this.script=e,this.evaluate=s;const l=Array.isArray(a)?a:a?.fields;this.fields=l??[],this._syntaxTree=r,this._arcade=t,this._arcadeFeature=i,this._spatialReference=n,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}static async create(e,t,r,l,o,c){const{arcade:d,Feature:h,Dictionary:m}=await u(),y=t instanceof n.A?t:n.A.fromJSON(t);let g;try{g=d.parseScript(e,c)}catch(t){return a.A.getLogger("esri.support.arcadeOnDemand").error(new i.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})),null}const f=o.reduce(((e,t)=>({...e,[t]:null})),{});let b=null;null!=l&&(b=new m(l),b.immutable=!0,f.$config=null);const v=d.scriptUsesGeometryEngine(g),_=v&&d.enableGeometrySupport(),S=d.scriptUsesFeatureSet(g)&&d.enableFeatureSetSupport(),T=d.scriptIsAsync(g),M=T&&d.enableAsyncSupport(),L={vars:f,spatialReference:y,useAsync:!!M};await Promise.all([_,S,M]);const w=new Set;await d.loadDependentModules(w,g,null,T,v);const I=new m;I.immutable=!1,I.setField("scale",0);const A=d.compileScript(g,L);return new p(e,d,g,((e,t)=>{const r=e.$view?.timeZone;if("$view"in e&&e.$view){let t;if(I.setField("scale","object"==typeof e.$view&&"scale"in e.$view?e.$view.scale:void 0),"object"==typeof e.$view&&"timeProperties"in e.$view&&null!=e.$view.timeProperties){const{currentStart:i,currentEnd:a}=e.$view.timeProperties;t=new m({currentStart:null!=i?null!=r?s.lY.epochToArcadeDate(i,r):s.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=a?null!=r?s.lY.epochToArcadeDate(a,r):s.lY.unknownEpochToArcadeDate(a):void 0,startIncluded:!0,endIncluded:!0})}I.setField("timeProperties",t),e.$view=I}return b&&(e.$config=b),A({vars:e,spatialReference:y,services:t,timeZone:r})}),new h,r,y)}repurposeFeature(e){return e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields}),this._arcadeFeature}references(e){return this._dependencies.get(e)??!1}}},43281:(e,t,r)=>{r.d(t,{H:()=>n,q:()=>a});var s=r(2741),i=r(10838);async function a(e){if(!e)return;const t=e.includes("-vector")?e.slice(0,e.indexOf("-vector")):e.includes("-3d")?e.slice(0,e.indexOf("-3d")):e,r=await(0,i.ud)("esri/t9n/basemaps");return r[e]||r[t]}const n={satellite:{id:"satellite",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/satellite.jpg")},baseMapLayers:[{id:"satellite-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1}]},hybrid:{id:"hybrid",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/hybrid.jpg")},baseMapLayers:[{id:"hybrid-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1},{id:"hybrid-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/30d6b8271e1849cd9c3042060001f425/resources/styles/root.json",layerType:"VectorTileLayer",title:"Hybrid Reference Layer",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},terrain:{id:"terrain",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/terrain.jpg")},baseMapLayers:[{id:"terrain-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Terrain Base",showLegend:!1,visibility:!0,opacity:1},{id:"terrain-reference-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Reference Overlay",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},oceans:{id:"oceans",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/oceans.jpg")},baseMapLayers:[{id:"oceans-base-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Base",showLegend:!1,visibility:!0,opacity:1},{id:"oceans-reference-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},osm:{id:"osm",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/osm.jpg")},baseMapLayers:[{id:"osm-base-layer",layerType:"OpenStreetMap",title:"Open Street Map",showLegend:!1,visibility:!0,opacity:1}]},"dark-gray-vector":{id:"dark-gray-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/dark-gray-vector.jpg")},baseMapLayers:[{id:"dark-gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/5e9b3685f4c24d8781073dd928ebda50/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Base",visibility:!0,opacity:1},{id:"dark-gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/747cb7a5329c478cbe6981076cc879c5/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Reference",isReference:!0,visibility:!0,opacity:1}]},get"dark-gray"(){return{...this["dark-gray-vector"],id:"dark-gray"}},"gray-vector":{id:"gray-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/gray-vector.jpg")},baseMapLayers:[{id:"gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/291da5eab3a0412593b66d384379f89f/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Base",visibility:!0,opacity:1},{id:"gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/1768e8369a214dfab4e2167d5c5f2454/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Reference",isReference:!0,visibility:!0,opacity:1}]},get gray(){return{...this["gray-vector"],id:"gray"}},"streets-vector":{id:"streets-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-vector.jpg")},baseMapLayers:[{id:"streets-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/de26a3cf4cc9451298ea173c4b324736/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets",visibility:!0,opacity:1}]},get streets(){return{...this["streets-vector"],id:"streets"}},"topo-vector":{id:"topo-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/topo-vector.jpg")},baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"topo-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Topo",visibility:!0,opacity:1}]},get topo(){return{...this["topo-vector"],id:"topo"}},"streets-night-vector":{id:"streets-night-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-night.jpg")},baseMapLayers:[{id:"streets-night-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/86f556a2d1fd468181855a35e344567f/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Night",visibility:!0,opacity:1}]},"streets-relief-vector":{id:"streets-relief-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-relief.jpg")},baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"streets-relief-vector-base-layer",styleUrl:"//www.arcgis.com/sharing/rest/content/items/b266e6d17fc345b498345613930fbd76/resources/styles/root.json",title:"World Streets Relief",layerType:"VectorTileLayer",visibility:!0,opacity:1}]},"streets-navigation-vector":{id:"streets-navigation-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-navigation.jpg")},baseMapLayers:[{id:"streets-navigation-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/63c47b7177f946b49902c24129b87252/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Navigation",visibility:!0,opacity:1}]},"topo-3d":{id:"topo-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/topo-3d.png")},baseMapLayers:[{id:"topo-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/1e7d1784d1ef4b79ba6764d0bd6c3150/resources/styles/root.json",layerType:"VectorTileLayer",title:"Topographic",visibility:!0,opacity:1},{id:"topo-3d-trees",title:"Trees",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Trees_Thematic_v1/SceneServer",itemId:"f75fef56b2d944fe92ef9f7737b4f953",layerType:"ArcGISSceneServiceLayer"},{id:"topo-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"topo-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"navigation-3d":{id:"navigation-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/navigation-3d.jpg")},baseMapLayers:[{id:"navigation-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/ccc904ff872b4144b94934e55e32784b/resources/styles/root.json",layerType:"VectorTileLayer",title:"Navigation",visibility:!0,opacity:1},{id:"navigation-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"navigation-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"streets-3d":{id:"streets-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-3d.png")},baseMapLayers:[{id:"streets-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/198298c4c64c4cb19de5b46aa00c198d/resources/styles/root.json",layerType:"VectorTileLayer",title:"Streets",visibility:!0,opacity:1},{id:"streets-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"streets-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"osm-3d":{id:"osm-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/osm-3d.png")},baseMapLayers:[{id:"osm-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/8628d259c9d14bdc848771c23c513940/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap",visibility:!0,opacity:1},{id:"osm-3d-trees",title:"Trees",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Trees_Thematic_v1/SceneServer",itemId:"f75fef56b2d944fe92ef9f7737b4f953",layerType:"ArcGISSceneServiceLayer"},{id:"osm-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"osm-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"gray-3d":{id:"gray-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/gray-3d.png")},baseMapLayers:[{id:"gray-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/01a14b466345455ba4176d2e6390db92/resources/styles/root.json",layerType:"VectorTileLayer",title:"Streets",visibility:!0,opacity:1},{id:"gray-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"gray-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"navigation-dark-3d":{id:"navigation-dark-3d",itemId:"5a1365328b4943f09a54cf5fd1205707",is3d:!0,baseMapLayers:[{id:"navigation-dark-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/451a1777ab3f4bf095fae24a117439d9/resources/styles/root.json",layerType:"VectorTileLayer",title:"Navigation Dark"},{id:"navigation-dark-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_LightLabels_v1/SceneServer/layers/0",itemId:"f364b70b012a4da5a4b5921e193eac4a",layerType:"ArcGISSceneServiceLayer"},{id:"navigation-dark-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"streets-dark-3d":{id:"streets-dark-3d",itemId:"8a4efa2c20484ec9b4557895e65736ff",is3d:!0,baseMapLayers:[{id:"streets-dark-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/bc599b6d741a4ac084b7eea7bf8c5938/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap Streets Night (for 3D)"},{id:"streets-dark-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_LightLabels_v1/SceneServer",itemId:"f364b70b012a4da5a4b5921e193eac4a",layerType:"ArcGISSceneServiceLayer"},{id:"streets-dark-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"dark-gray-3d":{id:"dark-gray-3d",itemId:"a8b7322a5fe94002bb0f5e0eeb0c5c18",is3d:!0,baseMapLayers:[{id:"dark-gray-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/4178f71acb934fb89f169e7d667c20c6/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap Dark Gray Canvas (for 3D)"},{id:"dark-gray-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_LightLabels_v1/SceneServer/layers/0",itemId:"f364b70b012a4da5a4b5921e193eac4a",layerType:"ArcGISSceneServiceLayer"},{id:"dark-gray-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"arcgis-imagery":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/hybrid.jpg")},title:"Imagery Hybrid",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Imagery",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels",title:"Hybrid Reference Layer",isReference:!0}]},"arcgis-imagery-standard":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/satellite.jpg")},title:"Imagery",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Imagery",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"}]},"arcgis-imagery-labels":{title:"Hybrid [Reference]",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels",title:"Hybrid Reference Layer",isReference:!0}]},"arcgis-light-gray":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/gray-vector.jpg")},title:"Light Gray Canvas",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Base",title:"Light Gray Canvas Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Labels",title:"Light Gray Canvas Labels",isReference:!0}]},"arcgis-dark-gray":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/dark-gray.jpg")},title:"Dark Gray Canvas",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Base",title:"Dark Gray Canvas Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Labels",title:"Dark Gray Canvas Labels",isReference:!0}]},"arcgis-navigation":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-navigation.jpg")},title:"Navigation",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Navigation",title:"World Navigation Map"}]},"arcgis-navigation-night":{title:"Navigation (Dark Mode)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:NavigationNight",title:"World Navigation Map (Dark Mode)"}]},"arcgis-streets":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-vector.jpg")},title:"Streets",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Streets",title:"World Street Map"}]},"arcgis-streets-night":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-night.jpg")},title:"Streets (Night)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsNight",title:"World Street Map (Night)"}]},"arcgis-streets-relief":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-relief.jpg")},title:"Streets (with Relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsRelief:Base",title:"World Street Map (with Relief)"}]},"arcgis-topographic":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/topo.jpg")},title:"Topographic",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Topographic:Base",title:"World Topographic Map"}]},"arcgis-oceans":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/oceans.jpg")},title:"Oceans",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Ocean Base",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Oceans:Labels",title:"World Ocean Reference",isReference:!0}]},"osm-standard":{title:"OpenStreetMap",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Standard",title:"OpenStreetMap"}]},"osm-standard-relief":{title:"OpenStreetMap (with relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StandardRelief:Base",layerType:"VectorTileLayer",title:"OpenStreetMap Relief Base"}]},"osm-streets":{title:"OpenStreetMap (Streets)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Streets",title:"OpenStreetMap (Streets)"}]},"osm-streets-relief":{title:"OpenStreetMap (Streets with relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StreetsRelief:Base",layerType:"VectorTileLayer",title:"OpenStreetMap Relief Base"}]},"osm-light-gray":{title:"OpenStreetMap (Light Gray Canvas)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Base",title:"OSM (Light Gray Base)"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Labels",title:"OSM (Light Gray Reference)",isReference:!0}]},"osm-dark-gray":{title:"OpenStreetMap (Dark Gray Canvas)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Base",title:"OSM (Dark Gray Base)"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Labels",title:"OSM (Dark Gray Reference)",isReference:!0}]},"arcgis-terrain":{title:"Terrain with Labels",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Base",title:"World Terrain Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Detail",title:"World Terrain Reference",isReference:!0}]},"arcgis-community":{title:"Community",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community",title:"Community"}]},"arcgis-charted-territory":{title:"Charted Territory",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ChartedTerritory:Base",title:"Charted Territory"}]},"arcgis-colored-pencil":{title:"Colored Pencil",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ColoredPencil",title:"Colored Pencil"}]},"arcgis-nova":{title:"Nova",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Nova",title:"Nova"}]},"arcgis-modern-antique":{title:"Modern Antique",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ModernAntique:Base",title:"Modern Antique"}]},"arcgis-midcentury":{title:"Mid-Century",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Midcentury",title:"Mid-Century"}]},"arcgis-newspaper":{title:"Newspaper",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Newspaper",title:"Newspaper"}]},"arcgis-hillshade-light":{title:"Hillshade",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"}]},"arcgis-hillshade-dark":{title:"Hillshade (Dark)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade (Dark)",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade_Dark/MapServer"}]},"arcgis-human-geography":{title:"Human Geography",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Base",title:"Human Geography Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Detail",title:"Human Geography Detail",isReference:!0},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Label",title:"Human Geography Label",isReference:!0}]},"arcgis-human-geography-dark":{title:"Human Geography (Dark)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Base",title:"Human Geography Dark Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Detail",title:"Human Geography Dark Detail",isReference:!0},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Label",title:"Human Geography Dark Label",isReference:!0}]}}},54218:(e,t,r)=>{function s(e){return"number"==typeof e}function i(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function a(e){return"boolean"==typeof e}function n(e){return"string"==typeof e||e instanceof String}function l(e){return null==e||n(e)}function o(e){return Array.isArray(e)}function c(e){return"esri.Graphic"===e?.declaredClass}function u(e){return e instanceof Date}r.d(t,{$P:()=>u,CO:()=>l,DU:()=>c,Et:()=>s,Fq:()=>i,Kg:()=>n,Lm:()=>a,cy:()=>o}),r(61956)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4996],{2741:(e,r,t)=>{t.d(r,{s:()=>a});var o=t(92602),n=(t(78888),t(49186)),i=t(53966),s=t(84952);function a(e){if(!o.A.assetsPath)throw i.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.A("assets:path-not-set","config.assetsPath is not set");return(0,s.fj)(o.A.assetsPath,e)}},83290:(e,r,t)=>{t.d(r,{P:()=>d,a:()=>c,g:()=>u,h:()=>E,i:()=>a,j:()=>w,l:()=>f,p:()=>k});var o=t(2741),n=t(44208);let i,s=null;function a(){return!!s}function f(){return i||(i=t.e(6187).then(t.bind(t,46187)).then((e=>e.p)).then((({default:e})=>e({locateFile:e=>(0,o.s)(`esri/geometry/support/${e}`)}))).then((e=>{A(e)})),i)}var u,c,l;!function(e){function r(e,r,t){s.ensureCache.prepare();const o=N(t),n=t===o,i=s.ensureFloat64(o),a=s._pe_geog_to_proj(s.getPointer(e),r,i);return a&&G(t,r,i,n),a}function t(e,r,t){return o(e,r,t,0)}function o(e,r,t,o){s.ensureCache.prepare();const n=N(t),i=t===n,a=s.ensureFloat64(n),f=s._pe_proj_to_geog_center(s.getPointer(e),r,a,o);return f&&G(t,r,a,i),f}e.geogToProj=r,e.projGeog=function(e,o,n,i){switch(i){case c.PE_TRANSFORM_P_TO_G:return t(e,o,n);case c.PE_TRANSFORM_G_TO_P:return r(e,o,n)}return 0},e.projToGeog=t,e.projToGeogCenter=o}(u||(u={})),(l=c||(c={})).init=function(){l.PE_BUFFER_MAX=s.PeDefs.prototype.PE_BUFFER_MAX,l.PE_NAME_MAX=s.PeDefs.prototype.PE_NAME_MAX,l.PE_MGRS_MAX=s.PeDefs.prototype.PE_MGRS_MAX,l.PE_USNG_MAX=s.PeDefs.prototype.PE_USNG_MAX,l.PE_DD_MAX=s.PeDefs.prototype.PE_DD_MAX,l.PE_DDM_MAX=s.PeDefs.prototype.PE_DDM_MAX,l.PE_DMS_MAX=s.PeDefs.prototype.PE_DMS_MAX,l.PE_UTM_MAX=s.PeDefs.prototype.PE_UTM_MAX,l.PE_PARM_MAX=s.PeDefs.prototype.PE_PARM_MAX,l.PE_TYPE_NONE=s.PeDefs.prototype.PE_TYPE_NONE,l.PE_TYPE_GEOGCS=s.PeDefs.prototype.PE_TYPE_GEOGCS,l.PE_TYPE_PROJCS=s.PeDefs.prototype.PE_TYPE_PROJCS,l.PE_TYPE_GEOGTRAN=s.PeDefs.prototype.PE_TYPE_GEOGTRAN,l.PE_TYPE_COORDSYS=s.PeDefs.prototype.PE_TYPE_COORDSYS,l.PE_TYPE_UNIT=s.PeDefs.prototype.PE_TYPE_UNIT,l.PE_TYPE_LINUNIT=s.PeDefs.prototype.PE_TYPE_LINUNIT,l.PE_STR_OPTS_NONE=s.PeDefs.prototype.PE_STR_OPTS_NONE,l.PE_STR_AUTH_NONE=s.PeDefs.prototype.PE_STR_AUTH_NONE,l.PE_STR_AUTH_TOP=s.PeDefs.prototype.PE_STR_AUTH_TOP,l.PE_STR_NAME_CANON=s.PeDefs.prototype.PE_STR_NAME_CANON,l.PE_STR_FMT_WKT=s.PeDefs.prototype.PE_STR_FMT_WKT,l.PE_STR_FMT_WKT2=s.PeDefs.prototype.PE_STR_FMT_WKT2,l.PE_PARM_X0=s.PeDefs.prototype.PE_PARM_X0,l.PE_PARM_ND=s.PeDefs.prototype.PE_PARM_ND,l.PE_TRANSFORM_1_TO_2=s.PeDefs.prototype.PE_TRANSFORM_1_TO_2,l.PE_TRANSFORM_2_TO_1=s.PeDefs.prototype.PE_TRANSFORM_2_TO_1,l.PE_TRANSFORM_P_TO_G=s.PeDefs.prototype.PE_TRANSFORM_P_TO_G,l.PE_TRANSFORM_G_TO_P=s.PeDefs.prototype.PE_TRANSFORM_G_TO_P,l.PE_HORIZON_RECT=s.PeDefs.prototype.PE_HORIZON_RECT,l.PE_HORIZON_POLY=s.PeDefs.prototype.PE_HORIZON_POLY,l.PE_HORIZON_LINE=s.PeDefs.prototype.PE_HORIZON_LINE,l.PE_HORIZON_DELTA=s.PeDefs.prototype.PE_HORIZON_DELTA};let _=null;var d;!function(e){const r={},t={},o=e=>{const r=e.getType();switch(r){case c.PE_TYPE_GEOGCS:e=s.castObject(e,s.PeGeogcs);break;case c.PE_TYPE_PROJCS:e=s.castObject(e,s.PeProjcs);break;case c.PE_TYPE_GEOGTRAN:e=s.castObject(e,s.PeGeogtran);break;default:r&c.PE_TYPE_UNIT&&(e=s.castObject(e,s.PeUnit))}return e};function n(e,t){let n=null,i=r[e];if(i||(i={},r[e]=i),i.hasOwnProperty(String(t))&&(n=i[t],s.compare(n,s.NULL)&&(n=null)),!n){const r=s.PeFactory.prototype.factoryByType(e,t);s.compare(r,s.NULL)||(n=o(r),i[t]=n)}return n}e.initialize=function(){s.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return n(c.PE_TYPE_COORDSYS,e)},e.factoryByType=n,e.fromString=function(e,r){let n=null,i=t[e];if(i||(i={},t[e]=i),i.hasOwnProperty(r)&&(n=i[r],s.compare(n,s.NULL)&&(n=null)),!n){const t=s.PeFactory.prototype.fromString(e,r);s.compare(t,s.NULL)||(n=o(t),i[r]=n)}return n},e.geogcs=function(e){return n(c.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return n(c.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return s.PeFactory.prototype.getCode(e)},e.projcs=function(e){return n(c.PE_TYPE_PROJCS,e)},e.unit=function(e){return n(c.PE_TYPE_UNIT,e)}}(d||(d={}));let p=null;var P,h,E,g,S,m,y,T,O,w,M;function A(e){function r(e,r,t){e[r]=t(e[r])}s=e,c.init(),P.init(),y.init(),O.init(),w.init(),_=class extends s.PeDouble{constructor(e=NaN){super(e)}destroy(){s.destroy(this)}[Symbol.dispose](){this.destroy()}},p=class extends s.PeGCSExtent{destroy(){s.destroy(this)}[Symbol.dispose](){this.destroy()}};const t=[s.PeAngunit,s.PeDatum,s.PeGeogcs,s.PeGeogtran,s.PeObject,s.PeParameter,s.PePrimem,s.PeProjcs,s.PeSpheroid,s.PeUnit];for(const e of t)r(e.prototype,"getName",(e=>function(){return e.call(this,new Array(c.PE_NAME_MAX))}));for(const e of[s.PeGeogtran,s.PeProjcs])r(e.prototype,"getParameters",(e=>function(){const r=new Array(c.PE_PARM_MAX);let t=e.call(this);for(let e=0;e<r.length;e++){const o=s.getValue(t,"*");r[e]=o?s.wrapPointer(o,s.PeParameter):null,t+=Int32Array.BYTES_PER_ELEMENT}return r}));r(s.PeHorizon.prototype,"getCoord",(e=>function(r=!1){const t=this.getSize();if(!t)return null;const o=[];return G(o,t,e.call(this),r),o})),r(s.PeGTlistExtendedEntry.prototype,"getEntries",(e=>{const r=s._pe_getPeGTlistExtendedGTsSize();return function(){let t=null;const o=e.call(this);if(!s.compare(o,s.NULL)){t=[o];const e=this.getSteps();if(e>1){const n=s.getPointer(o);for(let o=1;o<e;o++)t.push(s.wrapPointer(n+r*o,s.PeGTlistExtendedGTs))}}return t}}));const o=s._pe_getPeHorizonSize(),n=e=>function(){let r=this._cache;if(r||(r=new Map,this._cache=r),r.has(e))return r.get(e);let t=null;const n=e.call(this);if(!s.compare(n,s.NULL)){t=[n];const e=n.getNump();if(e>1){const r=s.getPointer(n);for(let n=1;n<e;n++)t.push(s.wrapPointer(r+o*n,s.PeHorizon))}}return r.set(e,t),t};r(s.PeProjcs.prototype,"horizonGcsGenerate",n),r(s.PeProjcs.prototype,"horizonPcsGenerate",n),s.PeObject.prototype.toString=function(e=c.PE_STR_OPTS_NONE){s.ensureCache.prepare();const r=s.getPointer(this),t=s.ensureInt8(new Array(c.PE_BUFFER_MAX));return s.UTF8ToString(s._pe_object_to_string_ext(r,e,t))},s.PeGeogcs.prototype.destroy=function(){this.Delete(),C(this),this.ptr=0},s.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},s.PeProjcs.prototype.destroy=function(){this.Delete(),C(this),this.ptr=0},s.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function C(e){if(!e)return;const r=s.getClass(e);if(!r)return;const t=s.getCache(r);if(!t)return;const o=s.getPointer(e);o&&delete t[o]}function R(e,r){const t=[],o=new Array(r);for(let r=0;r<e;r++)t.push(s.ensureInt8(o));return t}function N(e){return ArrayBuffer.isView(e)?e:Array.isArray(e[0])?e.flat():e}function G(e,r,t,o=!1){if(o)for(let o=0;o<2*r;o++)e[o]=s.getValue(t+o*Float64Array.BYTES_PER_ELEMENT,"double");else{const o=0===e.length;for(let n=0;n<r;n++)o&&(e[n]=new Array(2)),e[n][0]=s.getValue(t,"double"),e[n][1]=s.getValue(t+Float64Array.BYTES_PER_ELEMENT,"double"),t+=2*Float64Array.BYTES_PER_ELEMENT}}!function(e){let r;e.init=function(){e.PE_GTLIST_OPTS_COMMON=s.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,r=s._pe_getPeGTlistExtendedEntrySize()},e.getGTlist=function(e,t,o,n,i,a){let f=null;const u=new s.PeInteger(a);try{const c=s.PeGTlistExtended.prototype.getGTlist(e,t,o,n,i,u);if((a=u.val)&&(f=[c],a>1)){const e=s.getPointer(c);for(let t=1;t<a;t++)f.push(s.wrapPointer(e+r*t,s.PeGTlistExtendedEntry))}}finally{s.destroy(u)}return f}}(P||(P={})),function(e){e.destroy=function(e){if(e?.length){for(const r of e)C(r),r.getEntries().forEach((e=>{C(e);const r=e.getGeogtran();C(r),r.getParameters().forEach(C),[r.getGeogcs1(),r.getGeogcs2()].forEach((e=>{C(e);const r=e.getDatum();C(r),C(r.getSpheroid()),C(e.getPrimem()),C(e.getUnit())}))}));s.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(h||(h={})),function(e){e.geogToGeog=function(e,r,t,o,n){s.ensureCache.prepare();const i=N(t),a=t===i,f=s.ensureFloat64(i);let u=0;o&&(u=s.ensureFloat64(o));const c=s._pe_geog_to_geog(s.getPointer(e),r,f,u,n);return c&&G(t,r,f,a),c}}(E||(E={})),function(e){e.geodesicCoordinate=function(e,r,t,o,n,i,a,f){s.PeLineType.prototype.geodesic_coordinate(e,r,t,o,n,i,a,f)},e.geodeticCoordinate=function(e,r,t,o,n,i,a,f,u){s.PeLineType.prototype.geodetic_coordinate(e,r,t,o,n,i,a,f,u)},e.geodeticDistance=function(e,r,t,o,n,i,a,f,u,c){s.PeLineType.prototype.geodetic_distance(e,r,t,o,n,i,a,f,u,c)},e.greatEllipticDistance=function(e,r,t,o,n,i,a,f,u){s.PeLineType.prototype.great_elliptic_distance(e,r,t,o,n,i,a,f,u)}}(g||(g={})),function(e){e.phiToEta=function(e,r){return s.PeMath.prototype.phi_to_eta(e,r)},e.etaToPhi=function(e,r){return s.PeMath.prototype.eta_to_phi(e,r)},e.phiToPhig=function(e,r){return s.PeMath.prototype.phi_to_phig(e,r)},e.q=function(e,r,t){return s.PeMath.prototype.q(e,r,t)},e.q90=function(e,r){return s.PeMath.prototype.q90(e,r)}}(S||(S={})),function(e){const r=(e,r,t,o,n,i)=>{let a,f;switch(s.ensureCache.prepare(),e){case"dd":a=s._pe_geog_to_dd,f=c.PE_DD_MAX;break;case"ddm":a=s._pe_geog_to_ddm,f=c.PE_DDM_MAX;break;case"dms":a=s._pe_geog_to_dms,f=c.PE_DMS_MAX}let u=0;r&&(u=s.getPointer(r));const l=N(o),_=s.ensureFloat64(l),d=R(t,f),p=a(u,t,_,n,s.ensureInt32(d));if(p)for(let e=0;e<t;e++)i[e]=s.UTF8ToString(d[e]);return p},t=(e,r,t,o,n)=>{let i;switch(s.ensureCache.prepare(),e){case"dd":i=s._pe_dd_to_geog;break;case"ddm":i=s._pe_ddm_to_geog;break;case"dms":i=s._pe_dms_to_geog}let a=0;r&&(a=s.getPointer(r));const f=o.map((e=>s.ensureString(e))),u=s.ensureInt32(f),c=s.ensureFloat64(new Array(2*t)),l=i(a,t,u,c);return l&&G(n,t,c),l};e.geogToDms=function(e,t,o,n,i){return r("dms",e,t,o,n,i)},e.dmsToGeog=function(e,r,o,n){return t("dms",e,r,o,n)},e.geogToDdm=function(e,t,o,n,i){return r("ddm",e,t,o,n,i)},e.ddmToGeog=function(e,r,o,n){return t("ddm",e,r,o,n)},e.geogToDd=function(e,t,o,n,i){return r("dd",e,t,o,n,i)},e.ddToGeog=function(e,r,o,n){return t("dd",e,r,o,n)}}(m||(m={})),function(e){e.init=function(){e.PE_MGRS_STYLE_NEW=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=s.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=s.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},e.geogToMgrsExtended=function(e,r,t,o,n,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const u=N(t),l=s.ensureFloat64(u),_=R(r,c.PE_MGRS_MAX),d=s.ensureInt32(_),p=s._pe_geog_to_mgrs_extended(f,r,l,o,n,i,d);if(p)for(let e=0;e<r;e++)a[e]=s.UTF8ToString(_[e]);return p},e.mgrsToGeogExtended=function(e,r,t,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=t.map((e=>s.ensureString(e))),f=s.ensureInt32(a),u=s.ensureFloat64(new Array(2*r)),c=s._pe_mgrs_to_geog_extended(i,r,f,o,u);return c&&G(n,r,u),c}}(y||(y={})),function(e){e.geogToUsng=function(e,r,t,o,n,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const u=N(t),l=s.ensureFloat64(u),_=R(r,c.PE_MGRS_MAX),d=s.ensureInt32(_),p=s._pe_geog_to_usng(f,r,l,o,n,i,d);if(p)for(let e=0;e<r;e++)a[e]=s.UTF8ToString(_[e]);return p},e.usngToGeog=function(e,r,t,o){s.ensureCache.prepare();let n=0;e&&(n=s.getPointer(e));const i=t.map((e=>s.ensureString(e))),a=s.ensureInt32(i),f=s.ensureFloat64(new Array(2*r)),u=s._pe_usng_to_geog(n,r,a,f);return u&&G(o,r,f),u}}(T||(T={})),function(e){e.init=function(){e.PE_UTM_OPTS_NONE=s.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=s.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=s.PeNotationUtm.prototype.PE_UTM_OPTS_NS},e.geogToUtm=function(e,r,t,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=N(t),f=s.ensureFloat64(a),u=R(r,c.PE_UTM_MAX),l=s.ensureInt32(u),_=s._pe_geog_to_utm(i,r,f,o,l);if(_)for(let e=0;e<r;e++)n[e]=s.UTF8ToString(u[e]);return _},e.utmToGeog=function(e,r,t,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=t.map((e=>s.ensureString(e))),f=s.ensureInt32(a),u=s.ensureFloat64(new Array(2*r)),c=s._pe_utm_to_geog(i,r,f,o,u);return c&&G(n,r,u),c}}(O||(O={})),function(e){const r=new Map;e.init=function(){e.PE_PCSINFO_OPTION_NONE=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=s.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=s.PePCSInfo.prototype.PE_POLE_POINT},e.generate=function(t,o=e.PE_PCSINFO_OPTION_DOMAIN){let n=null,i=null;return r.has(t)&&(i=r.get(t),i[o]&&(n=i[o])),n||(n=s.PePCSInfo.prototype.generate(t,o),i||(i=[],r.set(t,i)),i[o]=n),n}}(w||(w={})),function(e){e.versionString=function(){return s.PeVersion.prototype.version_string()}}(M||(M={}));const k=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return u},get PeDefs(){return c},get PeDouble(){return _},get PeFactory(){return d},get PeGCSExtent(){return p},get PeGTTransformations(){return E},get PeGTlistExtended(){return P},get PeGTlistExtendedEntry(){return h},get PeLineType(){return g},get PeMath(){return S},get PeNotationDms(){return m},get PeNotationMgrs(){return y},get PeNotationUsng(){return T},get PeNotationUtm(){return O},get PePCSInfo(){return w},get PeVersion(){return M},_init:A,get _pe(){return s},isLoaded:a,isSupported:function(){return!!(0,n.A)("esri-wasm")},load:f},Symbol.toStringTag,{value:"Module"}))},43937:(e,r,t)=>{t.d(r,{K:()=>n});var o=t(10107);function n(e,r,t){let n,i;return void 0===r?(i=e,n=[void 0]):"string"!=typeof r?(i=e,n=[void 0],t=r):(i=r,n=Array.isArray(e)?e:[e]),(e,r)=>{const s=e.constructor.prototype;for(const a of n){const n=(0,o.rM)(e,a,i);n.write&&"object"==typeof n.write||(n.write={}),t&&(n.write.target=t),n.write.writer=s[r]}}}},66552:(e,r,t)=>{t.d(r,{J:()=>n,O:()=>s});var o=t(93637);class n{constructor(e,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(e){const r={};for(const t in e)r[e[t]]=t;return r}(e),this.apiValues=i(this._apiToJSON),this.jsonValues=i(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,r,t)=>{const n=this.toJSON(e);void 0!==n&&(0,o.sM)(t,n,r)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){const r=this._apiToJSON[e];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?void 0:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}}function i(e){const r=[];for(const t in e)r.push(t);return r.sort(),r}function s(){return function(e,r){return new n(e,{ignoreUnknown:!0,...r})}}},34727:(e,r,t)=>{t.d(r,{$8:()=>S,Cc:()=>s,Io:()=>g,KJ:()=>u,Sp:()=>_,XM:()=>c,YN:()=>l,cU:()=>n,hs:()=>a,kU:()=>f,or:()=>y,pF:()=>O,pq:()=>T,qE:()=>i});const o=new Float32Array(1);function n(e){--e;for(let r=1;r<32;r<<=1)e|=e>>r;return e+1}function i(e,r,t){return Math.min(Math.max(e,r),t)}function s(e,r,t){return e+(r-e)*t}function a(e,r,t,o,n){return s(o,n,(e-r)/(t-r))}function f(e){return e*Math.PI/180}function u(e){return 180*e/Math.PI}function c(e){return Math.acos(i(e,-1,1))}function l(e){return Math.asin(i(e,-1,1))}function _(e,r,t=1e-6){return e===r||!(!Number.isFinite(e)||!Number.isFinite(r))&&(e>r?e-r:r-e)<=t}const d=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function p(e){return d.setFloat64(0,e),d.getBigInt64(0)}const P=BigInt("1000000"),h=E(1);function E(e){const r=p(e=Math.abs(e)),t=function(e){return d.setBigInt64(0,e),d.getFloat64(0)}(r<=P?P:r-P);return Math.abs(e-t)}function g(e,r,t=h){if(e===r)return!0;if(!Number.isFinite(e)||!Number.isFinite(r))return!1;if(null!=t&&E(Math.min(Math.abs(e),Math.abs(r)))<t)return Math.abs(e-r)<=t;const o=p(e),n=p(r);return o<0==n<0&&!((o<n?n-o:o-n)>P)}function S(e){return m(Math.max(-T,Math.min(e,T)))}function m(e){return o[0]=e,o[0]}function y(e){const r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],t=e[3]*e[3]+e[4]*e[4]+e[5]*e[5],o=e[6]*e[6]+e[7]*e[7]+e[8]*e[8];return!(_(r,1)&&_(t,1)&&_(o,1))}const T=m(34028234663852886e22);function O(e,r,t){if(void 0===t||0==+t)return Math[e](r);if(r=+r,t=+t,isNaN(r)||"number"!=typeof t||t%1!=0)return NaN;let o=r.toString().split("e");return o=(r=Math[e](+(o[0]+"e"+(o[1]?+o[1]-t:-t)))).toString().split("e"),+(o[0]+"e"+(o[1]?+o[1]+t:t))}},83047:(e,r,t)=>{t.d(r,{Ao:()=>G,B5:()=>b,G9:()=>C,GA:()=>N,Ij:()=>I,KX:()=>k,LA:()=>A,PQ:()=>O,Sk:()=>x,UW:()=>w,b$:()=>B,dk:()=>F,dy:()=>f,k1:()=>R,oU:()=>T,vl:()=>M,x1:()=>q,yD:()=>d}),t(44208);var o=t(66552),n=t(73941),i=t(79258),s=t(21325),a=t(22530);const f=39.37,u=i.$O.radius*Math.PI/200,c=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,l=a.A,_=/UNIT\[([^\]]+)]/i,d=new Set([4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104025,104026,104139,104140]),p=(0,o.O)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain:"chains",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),P=e=>e*e,h=e=>e*e*e,E={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937},"clarke-feet":{inBaseUnits:.3047972654},"clarke-yards":{inBaseUnits:.9143917962},"clarke-links":{inBaseUnits:.201166195164},"sears-yards":{inBaseUnits:.9143984146160287},"sears-feet":{inBaseUnits:.3047994715386762},"sears-chains":{inBaseUnits:20.11676512155263},"benoit-1895-b-chains":{inBaseUnits:20.11678249437587},"indian-yards":{inBaseUnits:.9143985307444408},"indian-1937-yards":{inBaseUnits:.91439523},"gold-coast-feet":{inBaseUnits:.3047997101815088},chains:{inBaseUnits:20.1168},"sears-1922-truncated-chains":{inBaseUnits:20.116756},"50-kilometers":{inBaseUnits:5e4},"150-kilometers":{inBaseUnits:15e4}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:P(.001)},"square-centimeters":{inBaseUnits:P(.01)},"square-decimeters":{inBaseUnits:P(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:P(1e3)},"square-inches":{inBaseUnits:P(.0254)},"square-feet":{inBaseUnits:P(.3048)},"square-yards":{inBaseUnits:P(.9144)},"square-miles":{inBaseUnits:P(1609.344)},"square-us-feet":{inBaseUnits:P(1200/3937)},acres:{inBaseUnits:.0015625*P(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*h(.001)},"cubic-centimeters":{inBaseUnits:1e3*h(.01)},"cubic-decimeters":{inBaseUnits:1e3*h(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*h(1e3)},"cubic-inches":{inBaseUnits:1e3*h(.0254)},"cubic-feet":{inBaseUnits:1e3*h(.3048)},"cubic-yards":{inBaseUnits:1e3*h(.9144)},"cubic-miles":{inBaseUnits:1e3*h(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},g=(()=>{const e={};for(const r in E)for(const t in E[r].units)e[t]=r;return e})(),S=new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);function m(e){const r=g[e];if(!r)throw new Error("unknown type");return r}function y(e,r=null){return r=r||m(e),E[r].baseUnit===e}function T(e,r,t){if(r===t)return e;const o=m(r);if(o!==m(t))throw new Error("incompatible units");const n=y(r,o)?e:function(e,r,t){return e*E[t].units[r].inBaseUnits}(e,r,o);return y(t,o)?n:function(e,r,t){return e/E[t].units[r].inBaseUnits}(n,t,o)}function O(e,r,t,o=!1){if(!o&&(0,s.EA)(r))throw new Error("Unable to convert from an angular unit to a linear unit.");const n=I(r);return n!==t&&(e=n?T(e,n,t):T(e*=N(r),"meters",t)),e}function w(e,r,t,o=!1){if(!o&&(0,s.EA)(t))throw new Error("Unable to convert from a linear unit to an angular unit.");const n=I(t);return r!==n&&(e=n?T(e,r,n):T(e,r,"meters")/N(t)),e}function M(e,r,t){return T(e,r,"meters")/(t*Math.PI/180)}function A(e){return p.fromJSON(e.toLowerCase())||null}function C(e){if(null!=e&&!(0,s.B3)(e))return 1;const r=N(e);return r>1e5?1:r}function R(e){return N(e)>=(0,n.tO)(e).metersPerDegree?"meters":I(e)}function N(e,r=i.$O.metersPerDegree){return G(e,!0)??r}function G(e,r=!1){const t=e?.wkid??null,o=e?.wkt2??e?.wkt??null;let n=null;if(t){if((0,s.tl)(t))return i.sH.metersPerDegree;if((0,s.ZL)(t))return i.Sw.metersPerDegree;n=l.values[l[t]],!n&&r&&d.has(t)&&(n=u)}else o&&(q(o)?n=U(c.exec(o),n):v(o)&&(n=U(_.exec(o),n)));return n}function k(e){return(0,s.EA)(e)?1:N(e)}function U(e,r){return e?.[1]?D(e[1]):r}function D(e){return parseFloat(e.split(",")[1])}function I(e){const r=e?.wkid??null,t=e?.wkt2??e?.wkt??null;let o=null;if(r)o=l.units[l[r]];else if(t){const e=q(t)?c:v(t)?_:null;if(e){const r=e.exec(t);r?.[1]&&(o=function(e){const r=/[\\"']{1}([^\\"']+)/.exec(e);let t=r?.[1];if(!t||!l.units.includes(t)){const r=D(e);t=null;const o=l.values;for(let e=0;e<o.length;++e)if(Math.abs(r-o[e])<L){t=l.units[e];break}}return t}(r[1]))}}return null!=o?A(o):null}function b(e){const r=I(e);return null==r?null:S.get(r)}function v(e){return/^GEOCCS/i.test(e)}function q(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}const L=1e-7,F=(0,o.O)()({esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"}),x=(0,o.O)()({esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"}),B=(0,o.O)()({esriDUDecimalDegrees:"degrees",esriDURadians:"radians"})},16930:(e,r,t)=>{t.d(r,{A:()=>P});var o,n=t(90237),i=t(69622),s=t(25482),a=t(4718),f=t(83047),u=t(56507),c=t(10107),l=t(40608),_=t(43937),d=t(21325);let p=o=class extends s.A{static fromJSON(e){if(!e)return null;if(102100===e?.wkid)return o.WebMercator;if(4326===e?.wkid)return o.WGS84;const r=new o;return r.read(e),r}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){if(e&&"object"==typeof e)return e;const r="string"==typeof e?"wkt":"wkid";return{[r]:e}}get isWGS84(){return(0,d.oT)(this)}get isWebMercator(){return(0,d.K8)(this)}get isGeographic(){return(0,d.EA)(this)}get isWrappable(){return(0,d.d9)(this)}get metersPerUnit(){return(0,f.GA)(this)}get unit(){return(0,f.Ij)(this)||(this.isGeographic?"degrees":null)}writeWkt(e,r){this.wkid||(r.wkt=e)}clone(){if(this===o.WGS84)return new o(d.KK);if(this===o.WebMercator)return new o(d.ch);const e=new o;return null!=this.wkid?(e.wkid=this.wkid,null!=this.latestWkid&&(e.latestWkid=this.latestWkid),null!=this.vcsWkid&&(e.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(e.latestVcsWkid=this.latestVcsWkid)):(null!=this.wkt&&(e.wkt=this.wkt),null!=this.wkt2&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=(0,a.o8)(this.imageCoordinateSystem)),e}equals(e){if(null==e)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==e.imageCoordinateSystem)return!1;const{id:r,referenceServiceName:t}=e.imageCoordinateSystem,{geodataXform:o}=e.imageCoordinateSystem,n=this.imageCoordinateSystem;return null==r||o?JSON.stringify(n)===JSON.stringify(e.imageCoordinateSystem):t?n.id===r&&n.referenceServiceName===t:n.id===r}return(0,d.aI)(this,e)}toJSON(e){return this.write(void 0,e)}};p.GCS_NAD_1927=null,p.WGS84=null,p.WebMercator=null,p.PlateCarree=null,(0,n._)([(0,c.MZ)({readOnly:!0})],p.prototype,"isWGS84",null),(0,n._)([(0,c.MZ)({readOnly:!0})],p.prototype,"isWebMercator",null),(0,n._)([(0,c.MZ)({readOnly:!0})],p.prototype,"isGeographic",null),(0,n._)([(0,c.MZ)({readOnly:!0})],p.prototype,"isWrappable",null),(0,n._)([(0,c.MZ)({type:u.jz,json:{write:!0}})],p.prototype,"latestWkid",void 0),(0,n._)([(0,c.MZ)({readOnly:!0})],p.prototype,"metersPerUnit",null),(0,n._)([(0,c.MZ)({readOnly:!0})],p.prototype,"unit",null),(0,n._)([(0,c.MZ)({type:u.jz,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkt}}}}}}})],p.prototype,"wkid",void 0),(0,n._)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkid}}}}}}})],p.prototype,"wkt",void 0),(0,n._)([(0,_.K)("wkt"),(0,_.K)("web-scene","wkt")],p.prototype,"writeWkt",null),(0,n._)([(0,c.MZ)({type:String,json:{write:!1}})],p.prototype,"wkt2",void 0),(0,n._)([(0,c.MZ)({type:u.jz,json:{write:!0}})],p.prototype,"vcsWkid",void 0),(0,n._)([(0,c.MZ)({type:u.jz,json:{write:!0}})],p.prototype,"latestVcsWkid",void 0),(0,n._)([(0,c.MZ)()],p.prototype,"imageCoordinateSystem",void 0),p=o=(0,n._)([(0,l.$)("esri.geometry.SpatialReference")],p),p.prototype.toJSON.isDefaultToJSON=!0,p.GCS_NAD_1927=i.A.freeze(new p({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'})),p.WGS84=i.A.freeze(new p(d.KK)),p.WebMercator=i.A.freeze(new p(d.ch)),p.PlateCarree=i.A.freeze(new p(d.tQ));const P=p},73941:(e,r,t)=>{t.d(r,{FY:()=>a,LJ:()=>f,Ro:()=>u,fv:()=>s,jA:()=>p,tO:()=>_,xP:()=>P,y7:()=>d});var o=t(79258),n=t(21325);function i(e){return{wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`}}const s=i(o.$O),a=i(o.sH),f=i(o.Sw),u={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${o.$O.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`},c=a.wkt.toUpperCase(),l=f.wkt.toUpperCase();function _(e){if(null!=e&&(0,n.fn)(e)){const r=e.wkid,t=e.wkt2??e.wkt;if((0,n.tl)(r))return o.sH;const i=t?.toUpperCase();if(t&&i===c)return o.sH;if((0,n.ZL)(r)||i&&i===l)return o.Sw}return o.$O}function d(e){return(0,n.tl)(e)?o.sH:(0,n.ZL)(e)?o.Sw:o.$O}function p(e){return(0,n.aI)(e,s)}function P(e){return p(e)||(0,n.aI)(e,a)||(0,n.aI)(e,f)}},79258:(e,r,t)=>{t.d(r,{$O:()=>n,Sw:()=>s,sH:()=>i});class o{constructor(e,r,t,o,n,i){this.semiMajorAxis=e,this.flattening=r,this.outerAtmosphereRimWidth=t,this.atmosphereHeight=o,this.scaleHeight=n;const s=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*s,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=i||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const n=new o(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),i=new o(3396190,1/169.8944472236118,23e4,6e4,.111),s=new o(1737400,0,0,0,0)},19936:(e,r,t)=>{var o;t.d(r,{Y:()=>o}),function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"}(o||(o={}))},22530:(e,r,t)=>{let o;t.d(r,{A:()=>n});const n={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,10477:0,10481:2,10516:2,10592:0,10594:0,10596:0,10598:0,10601:0,10603:0,10626:0,10632:0,10665:0,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1,103978:2,103979:0,103980:2,103981:0};for(o=2e3;o<=2045;o++)n[o]=0;for(o=2056;o<=2065;o++)n[o]=0;for(o=2067;o<=2135;o++)n[o]=0;for(o=2137;o<=2154;o++)n[o]=0;for(o=2161;o<=2170;o++)n[o]=0;for(o=2172;o<=2193;o++)n[o]=0;for(o=2195;o<=2198;o++)n[o]=0;for(o=2200;o<=2203;o++)n[o]=0;for(o=2205;o<=2217;o++)n[o]=0;for(o=2222;o<=2224;o++)n[o]=1;for(o=2225;o<=2250;o++)n[o]=2;for(o=2251;o<=2253;o++)n[o]=1;for(o=2257;o<=2264;o++)n[o]=2;for(o=2274;o<=2279;o++)n[o]=2;for(o=2280;o<=2282;o++)n[o]=1;for(o=2283;o<=2289;o++)n[o]=2;for(o=2290;o<=2292;o++)n[o]=0;for(o=2308;o<=2313;o++)n[o]=0;for(o=2315;o<=2491;o++)n[o]=0;for(o=2494;o<=2866;o++)n[o]=0;for(o=2867;o<=2869;o++)n[o]=1;for(o=2870;o<=2888;o++)n[o]=2;for(o=2891;o<=2895;o++)n[o]=2;for(o=2896;o<=2898;o++)n[o]=1;for(o=2902;o<=2908;o++)n[o]=2;for(o=2915;o<=2920;o++)n[o]=2;for(o=2921;o<=2923;o++)n[o]=1;for(o=2924;o<=2930;o++)n[o]=2;for(o=2931;o<=2962;o++)n[o]=0;for(o=2964;o<=2968;o++)n[o]=2;for(o=2969;o<=2973;o++)n[o]=0;for(o=2975;o<=2991;o++)n[o]=0;for(o=2995;o<=3051;o++)n[o]=0;for(o=3054;o<=3079;o++)n[o]=0;for(o=3081;o<=3088;o++)n[o]=0;for(o=3092;o<=3101;o++)n[o]=0;for(o=3106;o<=3138;o++)n[o]=0;for(o=3146;o<=3151;o++)n[o]=0;for(o=3153;o<=3166;o++)n[o]=0;for(o=3168;o<=3172;o++)n[o]=0;for(o=3174;o<=3203;o++)n[o]=0;for(o=3294;o<=3358;o++)n[o]=0;for(o=3367;o<=3403;o++)n[o]=0;for(o=3408;o<=3416;o++)n[o]=0;for(o=3417;o<=3438;o++)n[o]=2;for(o=3441;o<=3446;o++)n[o]=2;for(o=3447;o<=3450;o++)n[o]=0;for(o=3451;o<=3459;o++)n[o]=2;for(o=3460;o<=3478;o++)n[o]=0;for(o=3554;o<=3559;o++)n[o]=0;for(o=3560;o<=3570;o++)n[o]=2;for(o=3571;o<=3581;o++)n[o]=0;for(o=3594;o<=3597;o++)n[o]=0;for(o=3601;o<=3604;o++)n[o]=0;for(o=3637;o<=3639;o++)n[o]=0;for(o=3665;o<=3667;o++)n[o]=0;for(o=3693;o<=3695;o++)n[o]=0;for(o=3701;o<=3727;o++)n[o]=0;for(o=3728;o<=3739;o++)n[o]=2;for(o=3740;o<=3751;o++)n[o]=0;for(o=3753;o<=3760;o++)n[o]=2;for(o=3761;o<=3773;o++)n[o]=0;for(o=3775;o<=3777;o++)n[o]=0;for(o=3779;o<=3781;o++)n[o]=0;for(o=3783;o<=3785;o++)n[o]=0;for(o=3788;o<=3791;o++)n[o]=0;for(o=3797;o<=3802;o++)n[o]=0;for(o=3814;o<=3816;o++)n[o]=0;for(o=3825;o<=3829;o++)n[o]=0;for(o=3832;o<=3841;o++)n[o]=0;for(o=3844;o<=3852;o++)n[o]=0;for(o=3873;o<=3885;o++)n[o]=0;for(o=3890;o<=3893;o++)n[o]=0;for(o=3907;o<=3912;o++)n[o]=0;for(o=3942;o<=3950;o++)n[o]=0;for(o=3968;o<=3970;o++)n[o]=0;for(o=3973;o<=3976;o++)n[o]=0;for(o=3986;o<=3989;o++)n[o]=0;for(o=3994;o<=3997;o++)n[o]=0;for(o=4048;o<=4051;o++)n[o]=0;for(o=4056;o<=4063;o++)n[o]=0;for(o=4093;o<=4096;o++)n[o]=0;for(o=4390;o<=4398;o++)n[o]=0;for(o=4399;o<=4413;o++)n[o]=2;for(o=4418;o<=4433;o++)n[o]=2;for(o=4455;o<=4457;o++)n[o]=2;for(o=4484;o<=4489;o++)n[o]=0;for(o=4491;o<=4554;o++)n[o]=0;for(o=4568;o<=4589;o++)n[o]=0;for(o=4652;o<=4656;o++)n[o]=0;for(o=4766;o<=4800;o++)n[o]=0;for(o=5014;o<=5016;o++)n[o]=0;for(o=5069;o<=5072;o++)n[o]=0;for(o=5105;o<=5130;o++)n[o]=0;for(o=5167;o<=5188;o++)n[o]=0;for(o=5253;o<=5259;o++)n[o]=0;for(o=5269;o<=5275;o++)n[o]=0;for(o=5292;o<=5311;o++)n[o]=0;for(o=5329;o<=5331;o++)n[o]=0;for(o=5343;o<=5349;o++)n[o]=0;for(o=5355;o<=5357;o++)n[o]=0;for(o=5387;o<=5389;o++)n[o]=0;for(o=5459;o<=5463;o++)n[o]=0;for(o=5479;o<=5482;o++)n[o]=0;for(o=5518;o<=5520;o++)n[o]=0;for(o=5530;o<=5539;o++)n[o]=0;for(o=5550;o<=5552;o++)n[o]=0;for(o=5562;o<=5583;o++)n[o]=0;for(o=5623;o<=5625;o++)n[o]=2;for(o=5631;o<=5639;o++)n[o]=0;for(o=5649;o<=5653;o++)n[o]=0;for(o=5663;o<=5680;o++)n[o]=0;for(o=5682;o<=5685;o++)n[o]=0;for(o=5875;o<=5877;o++)n[o]=0;for(o=5896;o<=5899;o++)n[o]=0;for(o=5921;o<=5940;o++)n[o]=0;for(o=6050;o<=6125;o++)n[o]=0;for(o=6244;o<=6275;o++)n[o]=0;for(o=6328;o<=6348;o++)n[o]=0;for(o=6350;o<=6356;o++)n[o]=0;for(o=6366;o<=6372;o++)n[o]=0;for(o=6381;o<=6387;o++)n[o]=0;for(o=6393;o<=6404;o++)n[o]=0;for(o=6480;o<=6483;o++)n[o]=0;for(o=6511;o<=6514;o++)n[o]=0;for(o=6579;o<=6581;o++)n[o]=0;for(o=6619;o<=6624;o++)n[o]=0;for(o=6625;o<=6627;o++)n[o]=2;for(o=6628;o<=6632;o++)n[o]=0;for(o=6634;o<=6637;o++)n[o]=0;for(o=6669;o<=6692;o++)n[o]=0;for(o=6707;o<=6709;o++)n[o]=0;for(o=6720;o<=6723;o++)n[o]=0;for(o=6732;o<=6738;o++)n[o]=0;for(o=6931;o<=6933;o++)n[o]=0;for(o=6956;o<=6959;o++)n[o]=0;for(o=7005;o<=7007;o++)n[o]=0;for(o=7057;o<=7070;o++)n[o]=2;for(o=7074;o<=7082;o++)n[o]=0;for(o=7109;o<=7118;o++)n[o]=0;for(o=7119;o<=7127;o++)n[o]=1;for(o=7374;o<=7376;o++)n[o]=0;for(o=7528;o<=7586;o++)n[o]=0;for(o=7587;o<=7645;o++)n[o]=2;for(o=7692;o<=7696;o++)n[o]=0;for(o=7755;o<=7787;o++)n[o]=0;for(o=7791;o<=7795;o++)n[o]=0;for(o=7799;o<=7801;o++)n[o]=0;for(o=7803;o<=7805;o++)n[o]=0;for(o=7825;o<=7831;o++)n[o]=0;for(o=7845;o<=7859;o++)n[o]=0;for(o=8013;o<=8032;o++)n[o]=0;for(o=8065;o<=8068;o++)n[o]=1;for(o=8518;o<=8529;o++)n[o]=2;for(o=8533;o<=8536;o++)n[o]=2;for(o=8538;o<=8540;o++)n[o]=2;for(o=8677;o<=8679;o++)n[o]=0;for(o=8836;o<=8840;o++)n[o]=0;for(o=8857;o<=8859;o++)n[o]=0;for(o=8908;o<=8910;o++)n[o]=0;for(o=9154;o<=9159;o++)n[o]=0;for(o=9205;o<=9218;o++)n[o]=0;for(o=9271;o<=9273;o++)n[o]=0;for(o=9295;o<=9297;o++)n[o]=0;for(o=9356;o<=9360;o++)n[o]=0;for(o=9404;o<=9407;o++)n[o]=0;for(o=9476;o<=9482;o++)n[o]=0;for(o=9487;o<=9494;o++)n[o]=0;for(o=9697;o<=9699;o++)n[o]=0;for(o=9821;o<=9865;o++)n[o]=0;for(o=10285;o<=10291;o++)n[o]=0;for(o=10314;o<=10317;o++)n[o]=0;for(o=10448;o<=10465;o++)n[o]=0;for(o=10731;o<=10733;o++)n[o]=0;for(o=11114;o<=11118;o++)n[o]=0;for(o=20004;o<=20032;o++)n[o]=0;for(o=20047;o<=20049;o++)n[o]=0;for(o=20062;o<=20092;o++)n[o]=0;for(o=20135;o<=20138;o++)n[o]=0;for(o=20248;o<=20258;o++)n[o]=0;for(o=20348;o<=20358;o++)n[o]=0;for(o=20436;o<=20440;o++)n[o]=0;for(o=20822;o<=20824;o++)n[o]=0;for(o=20904;o<=20932;o++)n[o]=0;for(o=20934;o<=20936;o++)n[o]=0;for(o=21004;o<=21032;o++)n[o]=0;for(o=21035;o<=21037;o++)n[o]=0;for(o=21095;o<=21097;o++)n[o]=0;for(o=21148;o<=21150;o++)n[o]=0;for(o=21207;o<=21264;o++)n[o]=0;for(o=21307;o<=21364;o++)n[o]=0;for(o=21413;o<=21423;o++)n[o]=0;for(o=21453;o<=21463;o++)n[o]=0;for(o=21473;o<=21483;o++)n[o]=0;for(o=21780;o<=21782;o++)n[o]=0;for(o=21891;o<=21894;o++)n[o]=0;for(o=21896;o<=21899;o++)n[o]=0;for(o=22171;o<=22177;o++)n[o]=0;for(o=22181;o<=22187;o++)n[o]=0;for(o=22191;o<=22197;o++)n[o]=0;for(o=22207;o<=22222;o++)n[o]=0;for(o=22229;o<=22232;o++)n[o]=0;for(o=22234;o<=22236;o++)n[o]=0;for(o=22243;o<=22250;o++)n[o]=0;for(o=22262;o<=22265;o++)n[o]=0;for(o=22307;o<=22322;o++)n[o]=0;for(o=22348;o<=22357;o++)n[o]=0;for(o=22407;o<=22422;o++)n[o]=0;for(o=22462;o<=22465;o++)n[o]=0;for(o=22521;o<=22525;o++)n[o]=0;for(o=22607;o<=22622;o++)n[o]=0;for(o=22641;o<=22646;o++)n[o]=0;for(o=22648;o<=22657;o++)n[o]=0;for(o=22707;o<=22722;o++)n[o]=0;for(o=22762;o<=22765;o++)n[o]=0;for(o=22807;o<=22822;o++)n[o]=0;for(o=22991;o<=22994;o++)n[o]=0;for(o=23028;o<=23038;o++)n[o]=0;for(o=23301;o<=23333;o++)n[o]=2;for(o=23830;o<=23853;o++)n[o]=0;for(o=23866;o<=23872;o++)n[o]=0;for(o=23877;o<=23884;o++)n[o]=0;for(o=23886;o<=23894;o++)n[o]=0;for(o=23946;o<=23948;o++)n[o]=0;for(o=24311;o<=24313;o++)n[o]=0;for(o=24342;o<=24347;o++)n[o]=0;for(o=24370;o<=24374;o++)n[o]=10;for(o=24375;o<=24381;o++)n[o]=0;for(o=24718;o<=24721;o++)n[o]=0;for(o=24817;o<=24821;o++)n[o]=0;for(o=24877;o<=24882;o++)n[o]=0;for(o=24891;o<=24893;o++)n[o]=0;for(o=25391;o<=25395;o++)n[o]=0;for(o=25828;o<=25838;o++)n[o]=0;for(o=26191;o<=26195;o++)n[o]=0;for(o=26391;o<=26393;o++)n[o]=0;for(o=26701;o<=26722;o++)n[o]=0;for(o=26729;o<=26799;o++)n[o]=2;for(o=26801;o<=26803;o++)n[o]=2;for(o=26811;o<=26813;o++)n[o]=2;for(o=26847;o<=26870;o++)n[o]=2;for(o=26891;o<=26899;o++)n[o]=0;for(o=26901;o<=26923;o++)n[o]=0;for(o=26929;o<=26946;o++)n[o]=0;for(o=26948;o<=26998;o++)n[o]=0;for(o=27037;o<=27040;o++)n[o]=0;for(o=27205;o<=27232;o++)n[o]=0;for(o=27258;o<=27260;o++)n[o]=0;for(o=27391;o<=27398;o++)n[o]=0;for(o=27561;o<=27564;o++)n[o]=0;for(o=27571;o<=27574;o++)n[o]=0;for(o=27581;o<=27584;o++)n[o]=0;for(o=27591;o<=27594;o++)n[o]=0;for(o=27700;o<=27707;o++)n[o]=0;for(o=28191;o<=28193;o++)n[o]=0;for(o=28348;o<=28358;o++)n[o]=0;for(o=28402;o<=28432;o++)n[o]=0;for(o=28462;o<=28492;o++)n[o]=0;for(o=29118;o<=29122;o++)n[o]=0;for(o=29168;o<=29172;o++)n[o]=0;for(o=29177;o<=29185;o++)n[o]=0;for(o=29187;o<=29195;o++)n[o]=0;for(o=29900;o<=29903;o++)n[o]=0;for(o=30161;o<=30179;o++)n[o]=0;for(o=30491;o<=30494;o++)n[o]=0;for(o=30729;o<=30732;o++)n[o]=0;for(o=31251;o<=31259;o++)n[o]=0;for(o=31265;o<=31268;o++)n[o]=0;for(o=31275;o<=31279;o++)n[o]=0;for(o=31281;o<=31297;o++)n[o]=0;for(o=31461;o<=31469;o++)n[o]=0;for(o=31491;o<=31495;o++)n[o]=0;for(o=31917;o<=31922;o++)n[o]=0;for(o=31965;o<=32e3;o++)n[o]=0;for(o=32001;o<=32003;o++)n[o]=2;for(o=32005;o<=32031;o++)n[o]=2;for(o=32033;o<=32060;o++)n[o]=2;for(o=32064;o<=32067;o++)n[o]=2;for(o=32074;o<=32077;o++)n[o]=2;for(o=32081;o<=32086;o++)n[o]=0;for(o=32107;o<=32130;o++)n[o]=0;for(o=32133;o<=32159;o++)n[o]=0;for(o=32164;o<=32167;o++)n[o]=2;for(o=32180;o<=32199;o++)n[o]=0;for(o=32201;o<=32260;o++)n[o]=0;for(o=32301;o<=32360;o++)n[o]=0;for(o=32401;o<=32460;o++)n[o]=0;for(o=32501;o<=32560;o++)n[o]=0;for(o=32601;o<=32662;o++)n[o]=0;for(o=32664;o<=32667;o++)n[o]=2;for(o=32701;o<=32761;o++)n[o]=0;for(o=53001;o<=53004;o++)n[o]=0;for(o=53008;o<=53019;o++)n[o]=0;for(o=53021;o<=53032;o++)n[o]=0;for(o=53034;o<=53037;o++)n[o]=0;for(o=53042;o<=53046;o++)n[o]=0;for(o=53074;o<=53080;o++)n[o]=0;for(o=54001;o<=54004;o++)n[o]=0;for(o=54008;o<=54019;o++)n[o]=0;for(o=54021;o<=54032;o++)n[o]=0;for(o=54034;o<=54037;o++)n[o]=0;for(o=54042;o<=54046;o++)n[o]=0;for(o=54048;o<=54053;o++)n[o]=0;for(o=54074;o<=54080;o++)n[o]=0;for(o=54098;o<=54101;o++)n[o]=0;for(o=102001;o<=102040;o++)n[o]=0;for(o=102042;o<=102063;o++)n[o]=0;for(o=102065;o<=102067;o++)n[o]=0;for(o=102070;o<=102117;o++)n[o]=0;for(o=102122;o<=102216;o++)n[o]=0;for(o=102221;o<=102377;o++)n[o]=0;for(o=102382;o<=102388;o++)n[o]=0;for(o=102389;o<=102398;o++)n[o]=2;for(o=102399;o<=102444;o++)n[o]=0;for(o=102445;o<=102447;o++)n[o]=2;for(o=102448;o<=102458;o++)n[o]=0;for(o=102459;o<=102468;o++)n[o]=2;for(o=102469;o<=102499;o++)n[o]=0;for(o=102500;o<=102519;o++)n[o]=1;for(o=102520;o<=102524;o++)n[o]=0;for(o=102525;o<=102529;o++)n[o]=2;for(o=102530;o<=102588;o++)n[o]=0;for(o=102590;o<=102598;o++)n[o]=0;for(o=102601;o<=102603;o++)n[o]=0;for(o=102605;o<=102628;o++)n[o]=0;for(o=102629;o<=102646;o++)n[o]=2;for(o=102648;o<=102700;o++)n[o]=2;for(o=102701;o<=102703;o++)n[o]=0;for(o=102707;o<=102730;o++)n[o]=2;for(o=102733;o<=102758;o++)n[o]=2;for(o=102767;o<=102900;o++)n[o]=0;for(o=102901;o<=102933;o++)n[o]=2;for(o=102934;o<=102950;o++)n[o]=13;for(o=102951;o<=102963;o++)n[o]=0;for(o=102965;o<=102969;o++)n[o]=0;for(o=102971;o<=102973;o++)n[o]=0;for(o=102975;o<=102989;o++)n[o]=0;for(o=102990;o<=102992;o++)n[o]=1;for(o=102997;o<=103002;o++)n[o]=0;for(o=103003;o<=103008;o++)n[o]=2;for(o=103009;o<=103011;o++)n[o]=0;for(o=103012;o<=103014;o++)n[o]=2;for(o=103019;o<=103021;o++)n[o]=0;for(o=103022;o<=103024;o++)n[o]=2;for(o=103029;o<=103031;o++)n[o]=0;for(o=103032;o<=103034;o++)n[o]=2;for(o=103065;o<=103068;o++)n[o]=0;for(o=103074;o<=103076;o++)n[o]=0;for(o=103077;o<=103079;o++)n[o]=1;for(o=103080;o<=103082;o++)n[o]=0;for(o=103083;o<=103085;o++)n[o]=2;for(o=103090;o<=103093;o++)n[o]=0;for(o=103097;o<=103099;o++)n[o]=0;for(o=103100;o<=103102;o++)n[o]=2;for(o=103107;o<=103109;o++)n[o]=0;for(o=103110;o<=103112;o++)n[o]=2;for(o=103113;o<=103116;o++)n[o]=0;for(o=103117;o<=103120;o++)n[o]=2;for(o=103153;o<=103157;o++)n[o]=0;for(o=103158;o<=103162;o++)n[o]=2;for(o=103163;o<=103165;o++)n[o]=0;for(o=103166;o<=103168;o++)n[o]=1;for(o=103169;o<=103171;o++)n[o]=2;for(o=103186;o<=103188;o++)n[o]=0;for(o=103189;o<=103191;o++)n[o]=2;for(o=103192;o<=103195;o++)n[o]=0;for(o=103196;o<=103199;o++)n[o]=2;for(o=103200;o<=103224;o++)n[o]=0;for(o=103225;o<=103227;o++)n[o]=1;for(o=103232;o<=103237;o++)n[o]=0;for(o=103238;o<=103243;o++)n[o]=2;for(o=103244;o<=103246;o++)n[o]=0;for(o=103247;o<=103249;o++)n[o]=2;for(o=103254;o<=103256;o++)n[o]=0;for(o=103257;o<=103259;o++)n[o]=2;for(o=103264;o<=103266;o++)n[o]=0;for(o=103267;o<=103269;o++)n[o]=2;for(o=103300;o<=103375;o++)n[o]=0;for(o=103381;o<=103383;o++)n[o]=0;for(o=103384;o<=103386;o++)n[o]=1;for(o=103387;o<=103389;o++)n[o]=0;for(o=103390;o<=103392;o++)n[o]=2;for(o=103397;o<=103399;o++)n[o]=0;for(o=103400;o<=103471;o++)n[o]=2;for(o=103476;o<=103478;o++)n[o]=0;for(o=103479;o<=103481;o++)n[o]=2;for(o=103486;o<=103488;o++)n[o]=0;for(o=103489;o<=103491;o++)n[o]=2;for(o=103492;o<=103495;o++)n[o]=0;for(o=103496;o<=103499;o++)n[o]=2;for(o=103528;o<=103543;o++)n[o]=0;for(o=103544;o<=103548;o++)n[o]=2;for(o=103549;o<=103551;o++)n[o]=0;for(o=103552;o<=103554;o++)n[o]=1;for(o=103555;o<=103557;o++)n[o]=2;for(o=103558;o<=103560;o++)n[o]=0;for(o=103571;o<=103573;o++)n[o]=0;for(o=103574;o<=103576;o++)n[o]=2;for(o=103577;o<=103580;o++)n[o]=0;for(o=103581;o<=103583;o++)n[o]=2;for(o=103595;o<=103694;o++)n[o]=0;for(o=103696;o<=103699;o++)n[o]=0;for(o=103700;o<=103793;o++)n[o]=2;for(o=103794;o<=103890;o++)n[o]=0;for(o=103891;o<=103896;o++)n[o]=2;for(o=103900;o<=103971;o++)n[o]=2;for(o=103972;o<=103977;o++)n[o]=0;for(o=112e3;o<=112101;o++)n[o]=0},21325:(e,r,t)=>{t.d(r,{B3:()=>h,EA:()=>P,K8:()=>m,KK:()=>R,KQ:()=>M,Mc:()=>f,Vp:()=>d,YX:()=>p,ZL:()=>w,aI:()=>_,ch:()=>N,d9:()=>A,fn:()=>C,jp:()=>g,oT:()=>E,q8:()=>O,r1:()=>y,tQ:()=>G,tl:()=>T,x1:()=>S});var o=t(799),n=(t(83290),t(19936)),i=t(22530);const s=[102100,102113,3857,3785,900913],a=[4326,...s,104905,104971],f=[-20037508.342788905,20037508.342788905],u=[-20037508.342787,20037508.342787],c={wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:f,origin:u,dx:1e-5},l={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:f,origin:u,dx:1e-5},102100:c,3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:f,origin:u,dx:1e-5},3857:c,4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},900913:c};function _(e,r){if(e===r)return!0;if(null==e||null==r)return!1;const t=e.wkid,o=r.wkid;if(null!=t||null!=o){if(t===o)return!0;if(m(e)&&m(r))return!0;const n=e.latestWkid;if(null!=n&&o===n)return!0;const i=r.latestWkid;return null!=i&&t===i}let n,i;return e.wkt2&&r.wkt2?(n=e.wkt2,i=r.wkt2):e.wkt&&r.wkt&&(n=e.wkt,i=r.wkt),!(!n||!i)&&n.toUpperCase()===i.toUpperCase()}function d(e){const r=e?.wkid;return null!=r&&r>=2e3&&l[r]||null}function p(e){if(!e)return;const{wkid:r,vcsWkid:t}=e;if(r)return t?JSON.stringify({wkid:r,vcsWkid:t}):String(r);const o=e.wkt||e.wkt2;return JSON.stringify(o?t?{wkt:o,vcsWkid:t}:{wkt:o}:{})}function P(e){if(!C(e))return!1;const{wkid:r}=e;if(r)return null==i.A[r];const t=e.wkt2||e.wkt;return!!t&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(t)}function h(e){return!(O(e)||M(e))}function E(e){return 4326===e?.wkid}function g(e){return/^\s*(?:GEOD|GEODETIC|GEOG|GEOGRAPHIC|PROJ|PROJECTED|VERT|VERTICAL|ENG|ENGINEERING|PARAMETRIC|TIME|DERIVEDPROJ|COMPOUND|BOUND)CRS/i.test(e)}function S(e){return e?.wkid===n.Y.CGCS2000}function m(e){const r=e?.wkid;return null!=r&&r>=2e3&&s.includes(r)}function y(e){return 32662===e?.wkid}function T(e){return e===n.Y.GCSMARS2000||e===n.Y.GCSMARS2000_SPHERE}function O(e){return T(e?.wkid)}function w(e){return e===n.Y.GCSMOON2000}function M(e){return w(e?.wkid)}function A(e){const r=e?.wkid;return null!=r&&r>=2e3&&a.includes(r)}function C(e){if(null==e)return!1;const r=e.wkid;return null!=r&&r>=2e3||null!=e.wkt2||null!=e.wkt}const R={wkid:4326,wkt:(0,o.HC)(l[4326].wkTemplate,{Central_Meridian:"0.0"})},N={wkid:102100,latestWkid:3857},G={wkid:32662}},78888:(e,r,t)=>{t.d(r,{A:()=>d});var o=t(92602),n=t(70333),i=t(49186),s=t(44208),a=t(4718),f=t(74887),u=t(84952),c=t(39131),l=t(926),_=t(56058);async function d(e,r){e instanceof URL&&(e=e.toString()),r?.query instanceof URLSearchParams&&(r.query=(0,u.zf)(r.query.toString().replaceAll("+"," ")));const i=(0,u.DB)(e),a=(0,u.w8)(e);a||i||(e=(0,u.S8)(e));const c={url:e,requestOptions:{...r}},d=e=>({data:e,getAllHeaders:m,getHeader:m,httpStatus:200,requestOptions:c.requestOptions,url:c.url}),E=(0,u.sC)(e,P.internalInterceptors);if(E){const e=await C(E,c);if(null!=e)return d(e)}let g=(0,u.sC)(e);if(g){const e=await C(g,c);if(null!=e)return d(e);g.after||g.error||(g=null)}if(e=c.url,"image"===(r=c.requestOptions).responseType&&((0,s.A)("host-webworker")||(0,s.A)("host-node")))throw O("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),c);if("head"===r.method){if(r.body)throw O("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),c);if(i||a)throw O("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),c)}if(await async function(){(0,s.A)("host-webworker")&&!p&&(p=await t.e(369).then(t.bind(t,40369)))}(),p)return p.execute(e,r);const S=new AbortController,y=(0,f.u7)(r,(()=>S.abort())),T={controller:S,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:g,params:c,redoRequest:!1,useIdentity:P.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},R=await async function(e){let r,t;await async function(e){const r=e.params.url,t=e.params.requestOptions,i=e.controller.signal,s=t.body;let a=null,u=null;if(h&&"HTMLFormElement"in globalThis&&(s instanceof FormData?a=s:s instanceof HTMLFormElement&&(a=new FormData(s))),"string"==typeof s&&(u=s),e.fetchOptions={cache:t.cacheBust?"no-cache":"default",credentials:"same-origin",headers:t.headers||{},method:"head"===t.method?"HEAD":"GET",mode:"cors",priority:P.priority,redirect:"follow",signal:i},(a||u)&&(e.fetchOptions.body=a||u),"anonymous"===t.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(r)||t.query?.token||a?.get("token")),!e.hasToken&&(0,l.Jn)(r)&&(t.query||(t.query={}),t.query.token=o.A.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!M(r)&&!(0,f.G4)(i)){let o;"immediate"===t.authMode?(await w(),o=await n.id.getCredential(r,{signal:i}),e.credential=o):"no-prompt"===t.authMode?(await w(),o=await n.id.getCredential(r,{prompt:!1,signal:i}).catch((()=>{})),e.credential=o):n.id&&(o=n.id.findCredential(r)),o&&(e.credentialToken=o.token,e.useSSL=!!o.ssl)}}(e);try{do{[r,t]=await A(e)}while(!await N(e,r,t))}catch(t){const o=O("request:server",t,e.params,r);throw o.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(o),o}const i=e.params.url;if(t&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(i)){if(!e.hasToken&&!e.credentialToken&&t.user?.username&&!(0,u.FL)(i)){const e=(0,u.$z)(i,!0);e&&P.trustedServers.push(e)}Array.isArray(t.authorizedCrossOriginNoCorsDomains)&&(0,_.tz)(t.authorizedCrossOriginNoCorsDomains)}const s=e.credential;if(s&&n.id){const e=n.id.findServerInfo(s.server);let r=e?.owningSystemUrl;if(r){r=r.replace(/\/?$/,"/sharing");const e=n.id.findCredential(r,s.userId);e&&-1===n.id._getIdenticalSvcIdx(r,e)&&e.resources.unshift(r)}}return{data:t,getAllHeaders:r?()=>Array.from(r.headers):m,getHeader:r?e=>r.headers.get(e):m,httpStatus:r?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(T).finally((()=>y?.remove()));return g?.after?.(R),R}let p;const P=o.A.request,h="FormData"in globalThis,E=new Set([499,498,403,401]),g=new Set(["COM_0056","COM_0057","SB_0008"]),S=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],m=()=>null,y=Symbol();function T(e){const r=(0,u.$z)(e);return!r||r.endsWith(".arcgis.com")||d._corsServers.includes(r)||(0,u.FL)(r)}function O(e,r,t,o){let n="Error";const s={url:t.url,requestOptions:t.requestOptions,getAllHeaders:m,getHeader:m,ssl:!1};if(r instanceof i.A)return r.details?(r.details=(0,a.o8)(r.details),r.details.url=t.url,r.details.requestOptions=t.requestOptions):r.details=s,r;if(r){const e=o&&(()=>Array.from(o.headers)),t=o&&(e=>o.headers.get(e)),i=o?.status,a=r.message;a&&(n=a),e&&t&&(s.getAllHeaders=e,s.getHeader=t),s.httpStatus=(null!=r.httpCode?r.httpCode:r.code)||i||0,s.subCode=r.subcode,s.messageCode=r.messageCode,"string"==typeof r.details?s.messages=[r.details]:s.messages=r.details,s.raw=y in r?r[y]:r}return(0,f.zf)(r)?(0,f.NK)():new i.A(e,n,s)}async function w(){n.id||await Promise.all([t.e(6285),t.e(7292),t.e(7112)]).then(t.bind(t,67112))}function M(e){return S.some((r=>r.test(e)))}async function A(e){let r=e.params.url;const t=e.params.requestOptions,o=e.fetchOptions??{},i=(0,u.w8)(r)||(0,u.DB)(r),a=t.responseType||"json",l=i?0:null!=t.timeout?t.timeout:P.timeout;let p=!1;if(!i){e.useSSL&&(r=(0,u.lM)(r));let i={...t.query};e.credentialToken&&(i.token=e.credentialToken);let a=(0,u.x0)(i);(0,s.A)("esri-url-encodes-apostrophe")&&(a=a.replaceAll("'","%27"));const f=r.length+1+a.length;let l;p="delete"===t.method||"post"===t.method||"put"===t.method||!!t.body||f>P.maxUrlLength;const d=t.useProxy||!!(0,u.zs)(r);if(d){const e=(0,u.s_)(r);l=e.path,!p&&l.length+1+f>P.maxUrlLength&&(p=!0),e.query&&(i={...e.query,...i})}if("HEAD"===o.method&&(p||d)){if(p){if(f>P.maxUrlLength)throw O("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw O("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(d)throw O("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(p?(o.method="delete"===t.method?"DELETE":"put"===t.method?"PUT":"POST",t.body?r=(0,u.a6)(r,i):(o.body=(0,u.x0)(i),o.headers||(o.headers={}),o.headers["Content-Type"]="application/x-www-form-urlencoded")):r=(0,u.a6)(r,i),d&&(e.useProxy=!0,r=`${l}?${r}`),i.token&&h&&o.body instanceof FormData&&!(0,c.$E)(r)&&o.body.set("token",i.token),t.hasOwnProperty("withCredentials"))e.withCredentials=t.withCredentials;else if(!(0,u.FX)(r,(0,u.Xq)()))if((0,u.FL)(r))e.withCredentials=!0;else if(n.id){const t=n.id.findServerInfo(r);t?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(o.credentials="include",(0,_.xW)(r)&&await(0,_.m3)(p?(0,u.a6)(r,i):r))}let E,g,S=0,m=!1;l>0&&(S=setTimeout((()=>{m=!0,e.controller.abort()}),l));try{if("native-request-init"===t.responseType)g=o,g.url=r,t.signal?g.signal=t.signal:delete g.signal;else if("image"!==t.responseType||"default"!==o.cache||"GET"!==o.method||p||function(e){if(e)for(const r of Object.getOwnPropertyNames(e))if(e[r])return!0;return!1}(t.headers)||!i&&!e.useProxy&&P.proxyUrl&&!T(r)){if(d._beforeFetch&&await d._beforeFetch(r,o),E=await fetch(r,o),d._afterFetch&&await d._afterFetch(E),e.useProxy||function(e){const r=(0,u.$z)(e);r&&!d._corsServers.includes(r)&&d._corsServers.push(r)}(r),"native"===t.responseType)g=E;else if("HEAD"!==o.method)if(E.ok){switch(a){case"array-buffer":g=await E.arrayBuffer();break;case"blob":case"image":g=await E.blob();break;default:g=await E.text()}if(S&&(clearTimeout(S),S=0),"json"===a||"xml"===a||"document"===a)if(g)switch(a){case"json":g=JSON.parse(g);break;case"xml":g=R(g,"application/xml");break;case"document":g=R(g,"text/html")}else g=null;if(g){if("array-buffer"===a||"blob"===a){const e=E.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&g["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(g).json();e.error&&(g=e)}catch{}}"image"===a&&g instanceof Blob&&(g=await G(URL.createObjectURL(g),e,!0))}}else{g=await E.text();try{g=JSON.parse(g)}catch{}}}else g=await G(r,e)}catch(o){if("AbortError"===o.name){if(m)throw(0,_.ql)();throw(0,f.NK)("Request canceled")}if(!(!E&&o instanceof TypeError&&P.proxyUrl)||t.body||"delete"===t.method||"head"===t.method||"post"===t.method||"put"===t.method||e.useProxy||T(r))throw o;e.redoRequest=!0,(0,u.oy)({proxyUrl:P.proxyUrl,urlPrefix:(0,u.$z)(r)??""})}finally{S&&clearTimeout(S)}return[E,g]}async function C(e,r){if(null!=e.responseData)return e.responseData;if(e.headers&&(r.requestOptions.headers={...r.requestOptions.headers,...e.headers}),e.query&&(r.requestOptions.query={...r.requestOptions.query,...e.query}),e.before){let t,o;try{o=await e.before(r)}catch(e){t=O("request:interceptor",e,r)}if((o instanceof Error||o instanceof i.A)&&(t=O("request:interceptor",o,r)),t)throw e.error&&e.error(t),t;return o}}function R(e,r){let t;try{t=(new DOMParser).parseFromString(e,r)}catch{}if(!t||t.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return t}async function N(e,r,t){if(e.redoRequest)return e.redoRequest=!1,!1;const o=e.params.requestOptions;if(!r||"native"===o.responseType||"native-request-init"===o.responseType)return!0;let i,s;if(t&&(t.error&&"object"==typeof t.error?i=t.error:"error"===t.status&&Array.isArray(t.messages)&&(i={...t},i[y]=t,i.details=t.messages)),!i&&!r.ok)throw i=new Error(`Unable to load ${r.url} status: ${r.status}`),i[y]=t,i;let a,f=null;i&&(s=Number(i.code),f=i.hasOwnProperty("subcode")?Number(i.subcode):null,a=i.messageCode,a=a?.toUpperCase());const u=o.authMode;if(403===s&&(4===f||i.message?.toLowerCase().includes("ssl")&&!i.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===s)&&void 0!==s&&E.has(s)&&!M(e.params.url)&&(403!==s||(!a||!g.has(a))&&(null==f||2===f&&e.credentialToken))){await w();try{const r=await n.id.getCredential(e.params.url,{error:O("request:server",i,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=r,e.credentialToken=r.token,e.useSSL=e.useSSL||r.ssl,!1}catch(r){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;i=r}}if(i)throw i;return!0}function G(e,r,t=!1){const o=r.controller.signal,n=new Image;return r.withCredentials?n.crossOrigin="use-credentials":n.crossOrigin="anonymous",n.alt="",n.fetchPriority=P.priority,n.src=e,(0,_.Sx)(n,e,t,o)}d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],d._beforeFetch=void 0,d._afterFetch=void 0},926:(e,r,t)=>{t.d(r,{Jn:()=>a});var o=t(92602),n=t(84952);const i=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]);function s(e){const r=(0,n.$z)(e,!0);return!!r&&r.endsWith(".arcgis.com")&&!i.has(r)&&!e.endsWith("/sharing/rest/generateToken")}function a(e,r){return!(!r&&!o.A.apiKey||!s(e))}},56058:(e,r,t)=>{t.d(r,{Sx:()=>a,c8:()=>l,m3:()=>p,ql:()=>c,tz:()=>_,xW:()=>d});var o=t(92602),n=t(44208),i=t(74887),s=t(84952);function a(e,r,t=!1,o){return new Promise(((s,a)=>{if((0,i.G4)(o))return void a(f());let u=()=>{_(),a(new Error(`Unable to load ${r}`))},c=()=>{const r=e;_(),s(r)},l=()=>{if(!e)return;const r=e;_(),r.src="",a(f())};const _=()=>{(0,n.A)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",c)),u=null,c=null,e=null,null!=o&&o.removeEventListener("abort",l),l=null,t&&URL.revokeObjectURL(r)};null!=o&&o.addEventListener("abort",l),(0,n.A)("esri-image-decode")?e.decode().then(c,u):(e.addEventListener("error",u),e.addEventListener("load",c))}))}function f(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}const u="Timeout exceeded";function c(){return new Error(u)}function l(e){return"object"==typeof e&&!!e&&"message"in e&&e.message===u}function _(e){o.A.request.crossOriginNoCorsDomains||(o.A.request.crossOriginNoCorsDomains={});const r=o.A.request.crossOriginNoCorsDomains;for(let t of e)t=t.toLowerCase(),/^https?:\/\//.test(t)?r[(0,s.$z)(t)??""]=0:(r[(0,s.$z)("http://"+t)??""]=0,r[(0,s.$z)("https://"+t)??""]=0)}function d(e){const r=o.A.request.crossOriginNoCorsDomains;if(r){let t=(0,s.$z)(e);if(t)return t=t.toLowerCase(),!(0,s.FX)(t,(0,s.Xq)())&&r[t]<Date.now()-36e5}return!1}async function p(e){const r=(0,s.An)(e);e=r.path,"json"===r.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}const t=o.A.request.crossOriginNoCorsDomains,n=(0,s.$z)(e);t&&n&&(t[n.toLowerCase()]=Date.now())}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1053,6052],{11053:(e,r,t)=>{t.d(r,{c:()=>n,g:()=>a});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},96052:(e,r,t)=>{t.r(r),t.d(r,{l:()=>u});var n,a=t(11053),o={exports:{}};const i=(0,a.g)(function(){return n||(n=1,e=o,r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,t=function(e={}){var t,n,a=e;a.ready=new Promise(((e,r)=>{t=e,n=r}));var o=Object.assign({},a),i="./this.program",u="";"undefined"!=typeof document&&document.currentScript&&(u=document.currentScript.src),r&&(u=r),u=0!==u.indexOf("blob:")?u.substr(0,u.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a.print||console.log.bind(console);var s,l,c=a.printErr||console.error.bind(console);Object.assign(a,o),o=null,a.arguments&&a.arguments,a.thisProgram&&(i=a.thisProgram),a.quit&&a.quit,a.wasmBinary&&(s=a.wasmBinary),"object"!=typeof WebAssembly&&P("no native wasm support detected");var f,d,h,p,m,v,g,y,w=!1;function _(){var e=l.buffer;a.HEAP8=f=new Int8Array(e),a.HEAP16=h=new Int16Array(e),a.HEAPU8=d=new Uint8Array(e),a.HEAPU16=p=new Uint16Array(e),a.HEAP32=m=new Int32Array(e),a.HEAPU32=v=new Uint32Array(e),a.HEAPF32=g=new Float32Array(e),a.HEAPF64=y=new Float64Array(e)}var b=[],A=[],T=[];function C(e){b.unshift(e)}function F(e){T.unshift(e)}var W=0,E=null;function P(e){a.onAbort&&a.onAbort(e),c(e="Aborted("+e+")"),w=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw n(r),r}var S,O=e=>e.startsWith("data:application/octet-stream;base64,");function R(e){if(e==S&&s)return new Uint8Array(s);throw"both async and sync fetching of the wasm failed"}function j(e,r,t){return function(e){return s||"function"!=typeof fetch?Promise.resolve().then((()=>R(e))):fetch(e,{credentials:"same-origin"}).then((r=>{if(!r.ok)throw"failed to load wasm binary file at '"+e+"'";return r.arrayBuffer()})).catch((()=>R(e)))}(e).then((e=>WebAssembly.instantiate(e,r))).then((e=>e)).then(t,(e=>{c(`failed to asynchronously prepare wasm: ${e}`),P(e)}))}O(S="lyr3DMain.wasm")||(S=function(e){return a.locateFile?a.locateFile(e,u):u+e}(S));var x=e=>{for(;e.length>0;)e.shift()(a)};function M(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){v[this.ptr+4>>2]=e},this.get_type=function(){return v[this.ptr+4>>2]},this.set_destructor=function(e){v[this.ptr+8>>2]=e},this.get_destructor=function(){return v[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,f[this.ptr+12|0]=e},this.get_caught=function(){return 0!=f[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,f[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=f[this.ptr+13|0]},this.init=function(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)},this.set_adjusted_ptr=function(e){v[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return v[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Ve(this.get_type()))return v[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}a.noExitRuntime;var D={},k=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function $(e){return this.fromWireType(m[e>>2])}var I,U,Y,H={},V={},z={},B=e=>{throw new I(e)},L=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&B("Mismatched type converter count");for(var a=0;a<e.length;++a)J(e[a],n[a])}e.forEach((function(e){z[e]=r}));var a=new Array(r.length),o=[],i=0;r.forEach(((e,r)=>{V.hasOwnProperty(e)?a[r]=V[e]:(o.push(e),H.hasOwnProperty(e)||(H[e]=[]),H[e].push((()=>{a[r]=V[e],++i===o.length&&n(a)})))})),0===o.length&&n(a)},N={},G=e=>{for(var r="",t=e;d[t];)r+=U[d[t++]];return r},q=e=>{throw new Y(e)};function J(e,r,t={}){if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,r,t={}){var n=r.name;if(e||q(`type "${n}" must have a positive integer typeid pointer`),V.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;q(`Cannot register type '${n}' twice`)}if(V[e]=r,delete z[e],H.hasOwnProperty(e)){var a=H[e];delete H[e],a.forEach((e=>e()))}}(e,r,t)}function X(){this.allocated=[void 0],this.freelist=[]}var Z,K,Q=new X,ee=e=>{e>=Q.reserved&&0==--Q.get(e).refcount&&Q.free(e)},re=e=>(e||q("Cannot use deleted val. handle = "+e),Q.get(e).value),te=e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return Q.allocate({refcount:1,value:e})}},ne=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(g[e>>2])};case 8:return function(e){return this.fromWireType(y[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},ae=(e,r,t)=>{if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(){return e[r].overloadTable.hasOwnProperty(arguments.length)||q(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[arguments.length].apply(this,arguments)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},oe=(e,r,t)=>{a.hasOwnProperty(e)?((void 0===t||void 0!==a[e].overloadTable&&void 0!==a[e].overloadTable[t])&&q(`Cannot register public name '${e}' twice`),ae(a,e,e),a.hasOwnProperty(t)&&q(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),a[e].overloadTable[t]=r):(a[e]=r,void 0!==t&&(a[e].numArguments=t))},ie=(e,r,t)=>{a.hasOwnProperty(e)||B("Replacing nonexistant public symbol"),void 0!==a[e].overloadTable&&void 0!==t?a[e].overloadTable[t]=r:(a[e]=r,a[e].argCount=t)},ue=[],se=e=>{var r=ue[e];return r||(e>=ue.length&&(ue.length=e+1),ue[e]=r=Z.get(e)),r},le=(e,r)=>{var t=(e=G(e)).includes("j")?((e,r)=>{var t=[];return function(){return t.length=0,Object.assign(t,arguments),((e,r,t)=>e.includes("j")?((e,r,t)=>{var n=a["dynCall_"+e];return t&&t.length?n.apply(null,[r].concat(t)):n.call(null,r)})(e,r,t):se(r).apply(null,t))(e,r,t)}})(e,r):se(r);return"function"!=typeof t&&q(`unknown function pointer with signature ${e}: ${r}`),t},ce=e=>{var r=Ye(e),t=G(r);return Ie(r),t},fe=(e,r,t)=>{switch(r){case 1:return t?e=>f[0|e]:e=>d[0|e];case 2:return t?e=>h[e>>1]:e=>p[e>>1];case 4:return t?e=>m[e>>2]:e=>v[e>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}};function de(e){return this.fromWireType(v[e>>2])}var he,pe=(e,r,t,n)=>{if(!(n>0))return 0;for(var a=t,o=t+n-1,i=0;i<e.length;++i){var u=e.charCodeAt(i);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&e.charCodeAt(++i)),u<=127){if(t>=o)break;r[t++]=u}else if(u<=2047){if(t+1>=o)break;r[t++]=192|u>>6,r[t++]=128|63&u}else if(u<=65535){if(t+2>=o)break;r[t++]=224|u>>12,r[t++]=128|u>>6&63,r[t++]=128|63&u}else{if(t+3>=o)break;r[t++]=240|u>>18,r[t++]=128|u>>12&63,r[t++]=128|u>>6&63,r[t++]=128|63&u}}return r[t]=0,t-a},me=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},ve="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,ge=(e,r)=>e?((e,r,t)=>{for(var n=r+t,a=r;e[a]&&!(a>=n);)++a;if(a-r>16&&e.buffer&&ve)return ve.decode(e.subarray(r,a));for(var o="";r<a;){var i=e[r++];if(128&i){var u=63&e[r++];if(192!=(224&i)){var s=63&e[r++];if((i=224==(240&i)?(15&i)<<12|u<<6|s:(7&i)<<18|u<<12|s<<6|63&e[r++])<65536)o+=String.fromCharCode(i);else{var l=i-65536;o+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else o+=String.fromCharCode((31&i)<<6|u)}else o+=String.fromCharCode(i)}return o})(d,e,r):"",ye="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,we=(e,r)=>{for(var t=e,n=t>>1,a=n+r/2;!(n>=a)&&p[n];)++n;if((t=n<<1)-e>32&&ye)return ye.decode(d.subarray(e,t));for(var o="",i=0;!(i>=r/2);++i){var u=h[e+2*i>>1];if(0==u)break;o+=String.fromCharCode(u)}return o},_e=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=r,a=(t-=2)<2*e.length?t/2:e.length,o=0;o<a;++o){var i=e.charCodeAt(o);h[r>>1]=i,r+=2}return h[r>>1]=0,r-n},be=e=>2*e.length,Ae=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var a=m[e+4*t>>2];if(0==a)break;if(++t,a>=65536){var o=a-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(a)}return n},Te=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=r,a=n+t-4,o=0;o<e.length;++o){var i=e.charCodeAt(o);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++o)),m[r>>2]=i,(r+=4)+4>a)break}return m[r>>2]=0,r-n},Ce=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},Fe={},We=e=>{var r=(e-l.buffer.byteLength+65535)/65536;try{return l.grow(r),_(),1}catch(e){}},Ee={},Pe=()=>{if(!Pe.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:i||"./this.program"};for(var r in Ee)void 0===Ee[r]?delete e[r]:e[r]=Ee[r];var t=[];for(var r in e)t.push(`${r}=${e[r]}`);Pe.strings=t}return Pe.strings},Se=e=>e%4==0&&(e%100!=0||e%400==0),Oe=[31,29,31,30,31,30,31,31,30,31,30,31],Re=[31,28,31,30,31,30,31,31,30,31,30,31],je=(e,r)=>{f.set(e,r)},xe=(e,r)=>{e<128?r.push(e):r.push(e%128|128,e>>7)},Me=[],De=(e,r)=>{Z.set(e,r),ue[e]=Z.get(e)};I=a.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},(()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);U=e})(),Y=a.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(X.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=e,r},free(e){this.allocated[e]=void 0,this.freelist.push(e)}}),Q.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),Q.reserved=Q.allocated.length,a.count_emval_handles=()=>{for(var e=0,r=Q.reserved;r<Q.allocated.length;++r)void 0!==Q.allocated[r]&&++e;return e},K=a.UnboundTypeError=((e,r)=>{var t=function(e,r){return e=(e=>{if(void 0===e)return"_unknown";var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=48&&r<=57?`_${e}`:e})(e),{[e]:function(){return r.apply(this,arguments)}}[e]}(r,(function(e){this.name=r,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t})(Error,"UnboundTypeError");var ke={k:(e,r,t)=>{throw new M(e).init(r,t),e},l:e=>{var r=D[e];delete D[e];var t=r.elements,n=t.length,a=t.map((e=>e.getterReturnType)).concat(t.map((e=>e.setterArgumentType))),o=r.rawConstructor,i=r.rawDestructor;L([e],a,(function(e){return t.forEach(((r,t)=>{var a=e[t],o=r.getter,i=r.getterContext,u=e[t+n],s=r.setter,l=r.setterContext;r.read=e=>a.fromWireType(o(i,e)),r.write=(e,r)=>{var t=[];s(l,e,u.toWireType(t,r)),k(t)}})),[{name:r.name,fromWireType:e=>{for(var r=new Array(n),a=0;a<n;++a)r[a]=t[a].read(e);return i(e),r},toWireType:(e,a)=>{if(n!==a.length)throw new TypeError(`Incorrect number of tuple elements for ${r.name}: expected=${n}, actual=${a.length}`);for(var u=o(),s=0;s<n;++s)t[s].write(u,a[s]);return null!==e&&e.push(i,u),u},argPackAdvance:8,readValueFromPointer:$,destructorFunction:i}]}))},s:e=>{var r=N[e];delete N[e];var t=r.rawConstructor,n=r.rawDestructor,a=r.fields,o=a.map((e=>e.getterReturnType)).concat(a.map((e=>e.setterArgumentType)));L([e],o,(e=>{var o={};return a.forEach(((r,t)=>{var n=r.fieldName,i=e[t],u=r.getter,s=r.getterContext,l=e[t+a.length],c=r.setter,f=r.setterContext;o[n]={read:e=>i.fromWireType(u(s,e)),write:(e,r)=>{var t=[];c(f,e,l.toWireType(t,r)),k(t)}}})),[{name:r.name,fromWireType:e=>{var r={};for(var t in o)r[t]=o[t].read(e);return n(e),r},toWireType:(e,r)=>{for(var a in o)if(!(a in r))throw new TypeError(`Missing field: "${a}"`);var i=t();for(a in o)o[a].write(i,r[a]);return null!==e&&e.push(n,i),i},argPackAdvance:8,readValueFromPointer:$,destructorFunction:n}]}))},u:(e,r,t,n,a)=>{},B:(e,r,t,n)=>{J(e,{name:r=G(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:n},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(d[e])},destructorFunction:null})},A:(e,r)=>{J(e,{name:r=G(r),fromWireType:e=>{var r=re(e);return ee(e),r},toWireType:(e,r)=>te(r),argPackAdvance:8,readValueFromPointer:$,destructorFunction:null})},r:(e,r,t)=>{J(e,{name:r=G(r),fromWireType:e=>e,toWireType:(e,r)=>r,argPackAdvance:8,readValueFromPointer:ne(r,t),destructorFunction:null})},c:(e,r,t,n,a,o,i)=>{var u=((e,r)=>{for(var t=[],n=0;n<e;n++)t.push(v[r+4*n>>2]);return t})(r,t);e=(e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?(function(e){e||P("Parentheses for argument names should match.")}(")"==e[e.length-1]),e.substr(0,r)):e})(e=G(e)),a=le(n,a),oe(e,(function(){((e,r)=>{var t=[],n={};throw r.forEach((function e(r){n[r]||V[r]||(z[r]?z[r].forEach(e):(t.push(r),n[r]=!0))})),new K(`${e}: `+t.map(ce).join([", "]))})(`Cannot call ${e} due to unbound types`,u)}),r-1),L([],u,(function(t){var n=[t[0],null].concat(t.slice(1));return ie(e,function(e,r,t,n,a){var o=r.length;o<2&&q("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var i=null!==r[1]&&!1,u=!1,s=1;s<r.length;++s)if(null!==r[s]&&void 0===r[s].destructorFunction){u=!0;break}var l="void"!==r[0].name,c=o-2,f=new Array(c),d=[],h=[];return function(){var t;arguments.length!==c&&q(`function ${e} called with ${arguments.length} arguments, expected ${c}`),h.length=0,d.length=i?2:1,d[0]=a,i&&(t=r[1].toWireType(h,this),d[1]=t);for(var o=0;o<c;++o)f[o]=r[o+2].toWireType(h,arguments[o]),d.push(f[o]);return function(e){if(u)k(h);else for(var n=i?1:2;n<r.length;n++){var a=1===n?t:f[n-2];null!==r[n].destructorFunction&&r[n].destructorFunction(a)}if(l)return r[0].fromWireType(e)}(n.apply(null,d))}}(e,n,0,a,o),r-1),[]}))},f:(e,r,t,n,a)=>{r=G(r);var o=e=>e;if(0===n){var i=32-8*t;o=e=>e<<i>>>i}var u=r.includes("unsigned");J(e,{name:r,fromWireType:o,toWireType:u?function(e,r){return this.name,r>>>0}:function(e,r){return this.name,r},argPackAdvance:8,readValueFromPointer:fe(r,t,0!==n),destructorFunction:null})},b:(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function a(e){var r=v[e>>2],t=v[e+4>>2];return new n(f.buffer,t,r)}J(e,{name:t=G(t),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},q:(e,r)=>{var t="std::string"===(r=G(r));J(e,{name:r,fromWireType(e){var r,n=v[e>>2],a=e+4;if(t)for(var o=a,i=0;i<=n;++i){var u=a+i;if(i==n||0==d[u]){var s=ge(o,u-o);void 0===r?r=s:(r+=String.fromCharCode(0),r+=s),o=u+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(d[a+i]);r=l.join("")}return Ie(e),r},toWireType(e,r){var n;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var a="string"==typeof r;a||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||q("Cannot pass non-string to std::string"),n=t&&a?me(r):r.length;var o=Ue(4+n+1),i=o+4;if(v[o>>2]=n,t&&a)((e,r,t)=>{pe(e,d,r,t)})(r,i,n+1);else if(a)for(var u=0;u<n;++u){var s=r.charCodeAt(u);s>255&&(Ie(i),q("String has UTF-16 code units that do not fit in 8 bits")),d[i+u]=s}else for(u=0;u<n;++u)d[i+u]=r[u];return null!==e&&e.push(Ie,o),o},argPackAdvance:8,readValueFromPointer:de,destructorFunction(e){Ie(e)}})},o:(e,r,t)=>{var n,a,o,i,u;t=G(t),2===r?(n=we,a=_e,i=be,o=()=>p,u=1):4===r&&(n=Ae,a=Te,i=Ce,o=()=>v,u=2),J(e,{name:t,fromWireType:e=>{for(var t,a=v[e>>2],i=o(),s=e+4,l=0;l<=a;++l){var c=e+4+l*r;if(l==a||0==i[c>>u]){var f=n(s,c-s);void 0===t?t=f:(t+=String.fromCharCode(0),t+=f),s=c+r}}return Ie(e),t},toWireType:(e,n)=>{"string"!=typeof n&&q(`Cannot pass non-string to C++ string type ${t}`);var o=i(n),s=Ue(4+o+r);return v[s>>2]=o>>u,a(n,s+4,o+r),null!==e&&e.push(Ie,s),s},argPackAdvance:8,readValueFromPointer:$,destructorFunction(e){Ie(e)}})},m:(e,r,t,n,a,o)=>{D[e]={name:G(r),rawConstructor:le(t,n),rawDestructor:le(a,o),elements:[]}},d:(e,r,t,n,a,o,i,u,s)=>{D[e].elements.push({getterReturnType:r,getter:le(t,n),getterContext:a,setterArgumentType:o,setter:le(i,u),setterContext:s})},t:(e,r,t,n,a,o)=>{N[e]={name:G(r),rawConstructor:le(t,n),rawDestructor:le(a,o),fields:[]}},i:(e,r,t,n,a,o,i,u,s,l)=>{N[e].fields.push({fieldName:G(r),getterReturnType:t,getter:le(n,a),getterContext:o,setterArgumentType:i,setter:le(u,s),setterContext:l})},C:(e,r)=>{J(e,{isVoid:!0,name:r=G(r),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,r)=>{}})},a:ee,n:e=>{e>4&&(Q.get(e).refcount+=1)},D:()=>te([]),h:e=>te((e=>{var r=Fe[e];return void 0===r?G(e):r})(e)),j:()=>te({}),e:(e,r,t)=>{e=re(e),r=re(r),t=re(t),e[r]=t},g:(e,r)=>{var t=(e=(e=>{var r=V[e];return void 0===r&&q("_emval_take_value has unknown type "+ce(e)),r})(e)).readValueFromPointer(r);return te(t)},p:()=>{P("")},z:(e,r,t)=>d.copyWithin(e,r,r+t),y:e=>{var r=d.length,t=2147483648;if((e>>>=0)>t)return!1;for(var n=(e,r)=>e+(r-e%r)%r,a=1;a<=4;a*=2){var o=r*(1+.2/a);o=Math.min(o,e+100663296);var i=Math.min(t,n(Math.max(e,o),65536));if(We(i))return!0}return!1},w:(e,r)=>{var t=0;return Pe().forEach(((n,a)=>{var o=r+t;v[e+4*a>>2]=o,((e,r)=>{for(var t=0;t<e.length;++t)f[0|r++]=e.charCodeAt(t);f[0|r]=0})(n,o),t+=n.length+1})),0},x:(e,r)=>{var t=Pe();v[e>>2]=t.length;var n=0;return t.forEach((e=>n+=e.length+1)),v[r>>2]=n,0},v:(e,r,t,n,a)=>((e,r,t,n)=>{var a=v[n+40>>2],o={tm_sec:m[n>>2],tm_min:m[n+4>>2],tm_hour:m[n+8>>2],tm_mday:m[n+12>>2],tm_mon:m[n+16>>2],tm_year:m[n+20>>2],tm_wday:m[n+24>>2],tm_yday:m[n+28>>2],tm_isdst:m[n+32>>2],tm_gmtoff:m[n+36>>2],tm_zone:a?ge(a):""},i=ge(t),u={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var s in u)i=i.replace(new RegExp(s,"g"),u[s]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function f(e,r,t){for(var n="number"==typeof e?e.toString():e||"";n.length<r;)n=t[0]+n;return n}function d(e,r){return f(e,r,"0")}function h(e,r){function t(e){return e<0?-1:e>0?1:0}var n;return 0===(n=t(e.getFullYear()-r.getFullYear()))&&0===(n=t(e.getMonth()-r.getMonth()))&&(n=t(e.getDate()-r.getDate())),n}function p(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function g(e){var r=((e,r)=>{for(var t=new Date(e.getTime());r>0;){var n=Se(t.getFullYear()),a=t.getMonth(),o=(n?Oe:Re)[a];if(!(r>o-t.getDate()))return t.setDate(t.getDate()+r),t;r-=o-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t})(new Date(e.tm_year+1900,0,1),e.tm_yday),t=new Date(r.getFullYear(),0,4),n=new Date(r.getFullYear()+1,0,4),a=p(t),o=p(n);return h(a,r)<=0?h(o,r)<=0?r.getFullYear()+1:r.getFullYear():r.getFullYear()-1}var y={"%a":e=>l[e.tm_wday].substring(0,3),"%A":e=>l[e.tm_wday],"%b":e=>c[e.tm_mon].substring(0,3),"%B":e=>c[e.tm_mon],"%C":e=>d((e.tm_year+1900)/100|0,2),"%d":e=>d(e.tm_mday,2),"%e":e=>f(e.tm_mday,2," "),"%g":e=>g(e).toString().substring(2),"%G":e=>g(e),"%H":e=>d(e.tm_hour,2),"%I":e=>{var r=e.tm_hour;return 0==r?r=12:r>12&&(r-=12),d(r,2)},"%j":e=>d(e.tm_mday+((e,r)=>{for(var t=0,n=0;n<=r;t+=e[n++]);return t})(Se(e.tm_year+1900)?Oe:Re,e.tm_mon-1),3),"%m":e=>d(e.tm_mon+1,2),"%M":e=>d(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>d(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var r=e.tm_yday+7-e.tm_wday;return d(Math.floor(r/7),2)},"%V":e=>{var r=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&r++,r){if(53==r){var t=(e.tm_wday+371-e.tm_yday)%7;4==t||3==t&&Se(e.tm_year)||(r=1)}}else{r=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&Se(e.tm_year%400-1))&&r++}return d(r,2)},"%w":e=>e.tm_wday,"%W":e=>{var r=e.tm_yday+7-(e.tm_wday+6)%7;return d(Math.floor(r/7),2)},"%y":e=>(e.tm_year+1900).toString().substring(2),"%Y":e=>e.tm_year+1900,"%z":e=>{var r=e.tm_gmtoff,t=r>=0;return r=(r=Math.abs(r)/60)/60*100+r%60,(t?"+":"-")+String("0000"+r).slice(-4)},"%Z":e=>e.tm_zone,"%%":()=>"%"};for(var s in i=i.replace(/%%/g,"\0\0"),y)i.includes(s)&&(i=i.replace(new RegExp(s,"g"),y[s](o)));var w=function(e){var r=me(e)+1,t=new Array(r);return pe(e,t,0,t.length),t}(i=i.replace(/\0\0/g,"%"));return w.length>r?0:(je(w,e),w.length-1)})(e,r,t,n)},$e=function(){var e={a:ke};function r(e,r){return $e=e.exports,l=$e.E,_(),Z=$e.G,function(e){A.unshift(e)}($e.F),function(){if(W--,a.monitorRunDependencies&&a.monitorRunDependencies(W),0==W&&E){var e=E;E=null,e()}}(),$e}if(W++,a.monitorRunDependencies&&a.monitorRunDependencies(W),a.instantiateWasm)try{return a.instantiateWasm(e,r)}catch(e){c(`Module.instantiateWasm callback failed with error: ${e}`),n(e)}return function(e,r,t,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||O(r)||"function"!=typeof fetch?j(r,t,n):fetch(r,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,t).then(n,(function(e){return c(`wasm streaming compile failed: ${e}`),c("falling back to ArrayBuffer instantiation"),j(r,t,n)}))))}(s,S,e,(function(e){r(e.instance)})).catch(n),{}}(),Ie=a._free=e=>(Ie=a._free=$e.H)(e),Ue=a._malloc=e=>(Ue=a._malloc=$e.I)(e),Ye=e=>(Ye=$e.J)(e);a.__embind_initialize_bindings=()=>(a.__embind_initialize_bindings=$e.K)();var He,Ve=e=>(Ve=$e.L)(e);function ze(){function e(){He||(He=!0,a.calledRun=!0,w||(x(A),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)F(a.postRun.shift());x(T)}()))}W>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)C(a.preRun.shift());x(b)}(),W>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),e()}),1)):e()))}if(a.dynCall_viji=(e,r,t,n,o)=>(a.dynCall_viji=$e.M)(e,r,t,n,o),a.dynCall_ji=(e,r)=>(a.dynCall_ji=$e.N)(e,r),a.dynCall_viijii=(e,r,t,n,o,i,u)=>(a.dynCall_viijii=$e.O)(e,r,t,n,o,i,u),a.dynCall_iiiiij=(e,r,t,n,o,i,u)=>(a.dynCall_iiiiij=$e.P)(e,r,t,n,o,i,u),a.dynCall_iiiiijj=(e,r,t,n,o,i,u,s,l)=>(a.dynCall_iiiiijj=$e.Q)(e,r,t,n,o,i,u,s,l),a.dynCall_iiiiiijj=(e,r,t,n,o,i,u,s,l,c)=>(a.dynCall_iiiiiijj=$e.R)(e,r,t,n,o,i,u,s,l,c),a.addFunction=(e,r)=>{var t=(e=>(he||(he=new WeakMap,((e,r)=>{if(he)for(var t=0;t<0+r;t++){var n=se(t);n&&he.set(n,t)}})(0,Z.length)),he.get(e)||0))(e);if(t)return t;var n=(()=>{if(Me.length)return Me.pop();try{Z.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Z.length-1})();try{De(n,e)}catch(t){if(!(t instanceof TypeError))throw t;var a=((e,r)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function((e=>{for(var r={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},t={parameters:[],results:"v"==e[0]?[]:[r[e[0]]]},n=1;n<e.length;++n)t.parameters.push(r[e[n]]);return t})(r),e);var t=[1];((e,r)=>{var t=e.slice(0,1),n=e.slice(1),a={i:127,p:127,j:126,f:125,d:124,e:111};r.push(96),xe(n.length,r);for(var o=0;o<n.length;++o)r.push(a[n[o]]);"v"==t?r.push(0):r.push(1,a[t])})(r,t);var n=[0,97,115,109,1,0,0,0,1];xe(t.length,n),n.push.apply(n,t),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var a=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(a,{e:{f:e}}).exports.f})(e,r);De(n,a)}return he.set(e,n),n},a.UTF8ToString=ge,E=function e(){He||ze(),He||(E=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return ze(),e.ready},e.exports=t),o.exports;var e,r,t}()),u=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1053,6052],{11053:(e,r,t)=>{t.d(r,{c:()=>n,g:()=>a});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},96052:(e,r,t)=>{t.r(r),t.d(r,{l:()=>u});var n,a=t(11053),o={exports:{}};const i=(0,a.g)(function(){return n||(n=1,e=o,r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,t=function(e={}){var t,n,a=e;a.ready=new Promise(((e,r)=>{t=e,n=r}));var o=Object.assign({},a),i="./this.program",u="";"undefined"!=typeof document&&document.currentScript&&(u=document.currentScript.src),r&&(u=r),u=0!==u.indexOf("blob:")?u.substr(0,u.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a.print||console.log.bind(console);var s,l,c=a.printErr||console.error.bind(console);Object.assign(a,o),o=null,a.arguments&&a.arguments,a.thisProgram&&(i=a.thisProgram),a.quit&&a.quit,a.wasmBinary&&(s=a.wasmBinary),"object"!=typeof WebAssembly&&W("no native wasm support detected");var f,d,h,p,m,v,g,y,w=!1;function _(){var e=l.buffer;a.HEAP8=f=new Int8Array(e),a.HEAP16=h=new Int16Array(e),a.HEAPU8=d=new Uint8Array(e),a.HEAPU16=p=new Uint16Array(e),a.HEAP32=m=new Int32Array(e),a.HEAPU32=v=new Uint32Array(e),a.HEAPF32=g=new Float32Array(e),a.HEAPF64=y=new Float64Array(e)}var b=[],A=[],T=[];function C(e){b.unshift(e)}function F(e){T.unshift(e)}var E=0,P=null;function W(e){a.onAbort&&a.onAbort(e),c(e="Aborted("+e+")"),w=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw n(r),r}var S,O=e=>e.startsWith("data:application/octet-stream;base64,");function R(e){if(e==S&&s)return new Uint8Array(s);throw"both async and sync fetching of the wasm failed"}function j(e,r,t){return function(e){return s||"function"!=typeof fetch?Promise.resolve().then((()=>R(e))):fetch(e,{credentials:"same-origin"}).then((r=>{if(!r.ok)throw"failed to load wasm binary file at '"+e+"'";return r.arrayBuffer()})).catch((()=>R(e)))}(e).then((e=>WebAssembly.instantiate(e,r))).then((e=>e)).then(t,(e=>{c(`failed to asynchronously prepare wasm: ${e}`),W(e)}))}O(S="lyr3DMain.wasm")||(S=function(e){return a.locateFile?a.locateFile(e,u):u+e}(S));var x=e=>{for(;e.length>0;)e.shift()(a)};function M(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){v[this.ptr+4>>2]=e},this.get_type=function(){return v[this.ptr+4>>2]},this.set_destructor=function(e){v[this.ptr+8>>2]=e},this.get_destructor=function(){return v[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,f[this.ptr+12|0]=e},this.get_caught=function(){return 0!=f[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,f[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=f[this.ptr+13|0]},this.init=function(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)},this.set_adjusted_ptr=function(e){v[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return v[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Ve(this.get_type()))return v[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}a.noExitRuntime;var D={},k=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function $(e){return this.fromWireType(m[e>>2])}var I,U,Y,H={},V={},z={},B=e=>{throw new I(e)},L=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&B("Mismatched type converter count");for(var a=0;a<e.length;++a)J(e[a],n[a])}e.forEach((function(e){z[e]=r}));var a=new Array(r.length),o=[],i=0;r.forEach(((e,r)=>{V.hasOwnProperty(e)?a[r]=V[e]:(o.push(e),H.hasOwnProperty(e)||(H[e]=[]),H[e].push((()=>{a[r]=V[e],++i===o.length&&n(a)})))})),0===o.length&&n(a)},N={},G=e=>{for(var r="",t=e;d[t];)r+=U[d[t++]];return r},q=e=>{throw new Y(e)};function J(e,r,t={}){if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,r,t={}){var n=r.name;if(e||q(`type "${n}" must have a positive integer typeid pointer`),V.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;q(`Cannot register type '${n}' twice`)}if(V[e]=r,delete z[e],H.hasOwnProperty(e)){var a=H[e];delete H[e],a.forEach((e=>e()))}}(e,r,t)}function X(){this.allocated=[void 0],this.freelist=[]}var Z,K,Q=new X,ee=e=>{e>=Q.reserved&&0==--Q.get(e).refcount&&Q.free(e)},re=e=>(e||q("Cannot use deleted val. handle = "+e),Q.get(e).value),te=e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return Q.allocate({refcount:1,value:e})}},ne=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(g[e>>2])};case 8:return function(e){return this.fromWireType(y[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},ae=(e,r,t)=>{if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(){return e[r].overloadTable.hasOwnProperty(arguments.length)||q(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[arguments.length].apply(this,arguments)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},oe=(e,r,t)=>{a.hasOwnProperty(e)?((void 0===t||void 0!==a[e].overloadTable&&void 0!==a[e].overloadTable[t])&&q(`Cannot register public name '${e}' twice`),ae(a,e,e),a.hasOwnProperty(t)&&q(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),a[e].overloadTable[t]=r):(a[e]=r,void 0!==t&&(a[e].numArguments=t))},ie=(e,r,t)=>{a.hasOwnProperty(e)||B("Replacing nonexistant public symbol"),void 0!==a[e].overloadTable&&void 0!==t?a[e].overloadTable[t]=r:(a[e]=r,a[e].argCount=t)},ue=[],se=e=>{var r=ue[e];return r||(e>=ue.length&&(ue.length=e+1),ue[e]=r=Z.get(e)),r},le=(e,r)=>{var t=(e=G(e)).includes("j")?((e,r)=>{var t=[];return function(){return t.length=0,Object.assign(t,arguments),((e,r,t)=>e.includes("j")?((e,r,t)=>{var n=a["dynCall_"+e];return t&&t.length?n.apply(null,[r].concat(t)):n.call(null,r)})(e,r,t):se(r).apply(null,t))(e,r,t)}})(e,r):se(r);return"function"!=typeof t&&q(`unknown function pointer with signature ${e}: ${r}`),t},ce=e=>{var r=Ye(e),t=G(r);return Ie(r),t},fe=(e,r,t)=>{switch(r){case 1:return t?e=>f[0|e]:e=>d[0|e];case 2:return t?e=>h[e>>1]:e=>p[e>>1];case 4:return t?e=>m[e>>2]:e=>v[e>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}};function de(e){return this.fromWireType(v[e>>2])}var he,pe=(e,r,t,n)=>{if(!(n>0))return 0;for(var a=t,o=t+n-1,i=0;i<e.length;++i){var u=e.charCodeAt(i);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&e.charCodeAt(++i)),u<=127){if(t>=o)break;r[t++]=u}else if(u<=2047){if(t+1>=o)break;r[t++]=192|u>>6,r[t++]=128|63&u}else if(u<=65535){if(t+2>=o)break;r[t++]=224|u>>12,r[t++]=128|u>>6&63,r[t++]=128|63&u}else{if(t+3>=o)break;r[t++]=240|u>>18,r[t++]=128|u>>12&63,r[t++]=128|u>>6&63,r[t++]=128|63&u}}return r[t]=0,t-a},me=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},ve="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,ge=(e,r)=>e?((e,r,t)=>{for(var n=r+t,a=r;e[a]&&!(a>=n);)++a;if(a-r>16&&e.buffer&&ve)return ve.decode(e.subarray(r,a));for(var o="";r<a;){var i=e[r++];if(128&i){var u=63&e[r++];if(192!=(224&i)){var s=63&e[r++];if((i=224==(240&i)?(15&i)<<12|u<<6|s:(7&i)<<18|u<<12|s<<6|63&e[r++])<65536)o+=String.fromCharCode(i);else{var l=i-65536;o+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else o+=String.fromCharCode((31&i)<<6|u)}else o+=String.fromCharCode(i)}return o})(d,e,r):"",ye="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,we=(e,r)=>{for(var t=e,n=t>>1,a=n+r/2;!(n>=a)&&p[n];)++n;if((t=n<<1)-e>32&&ye)return ye.decode(d.subarray(e,t));for(var o="",i=0;!(i>=r/2);++i){var u=h[e+2*i>>1];if(0==u)break;o+=String.fromCharCode(u)}return o},_e=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=r,a=(t-=2)<2*e.length?t/2:e.length,o=0;o<a;++o){var i=e.charCodeAt(o);h[r>>1]=i,r+=2}return h[r>>1]=0,r-n},be=e=>2*e.length,Ae=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var a=m[e+4*t>>2];if(0==a)break;if(++t,a>=65536){var o=a-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(a)}return n},Te=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=r,a=n+t-4,o=0;o<e.length;++o){var i=e.charCodeAt(o);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++o)),m[r>>2]=i,(r+=4)+4>a)break}return m[r>>2]=0,r-n},Ce=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},Fe={},Ee=e=>{var r=(e-l.buffer.byteLength+65535)/65536;try{return l.grow(r),_(),1}catch(e){}},Pe={},We=()=>{if(!We.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:i||"./this.program"};for(var r in Pe)void 0===Pe[r]?delete e[r]:e[r]=Pe[r];var t=[];for(var r in e)t.push(`${r}=${e[r]}`);We.strings=t}return We.strings},Se=e=>e%4==0&&(e%100!=0||e%400==0),Oe=[31,29,31,30,31,30,31,31,30,31,30,31],Re=[31,28,31,30,31,30,31,31,30,31,30,31],je=(e,r)=>{f.set(e,r)},xe=(e,r)=>{e<128?r.push(e):r.push(e%128|128,e>>7)},Me=[],De=(e,r)=>{Z.set(e,r),ue[e]=Z.get(e)};I=a.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},(()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);U=e})(),Y=a.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(X.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=e,r},free(e){this.allocated[e]=void 0,this.freelist.push(e)}}),Q.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),Q.reserved=Q.allocated.length,a.count_emval_handles=()=>{for(var e=0,r=Q.reserved;r<Q.allocated.length;++r)void 0!==Q.allocated[r]&&++e;return e},K=a.UnboundTypeError=((e,r)=>{var t=function(e,r){return e=(e=>{if(void 0===e)return"_unknown";var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=48&&r<=57?`_${e}`:e})(e),{[e]:function(){return r.apply(this,arguments)}}[e]}(r,(function(e){this.name=r,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t})(Error,"UnboundTypeError");var ke={k:(e,r,t)=>{throw new M(e).init(r,t),e},l:e=>{var r=D[e];delete D[e];var t=r.elements,n=t.length,a=t.map((e=>e.getterReturnType)).concat(t.map((e=>e.setterArgumentType))),o=r.rawConstructor,i=r.rawDestructor;L([e],a,(function(e){return t.forEach(((r,t)=>{var a=e[t],o=r.getter,i=r.getterContext,u=e[t+n],s=r.setter,l=r.setterContext;r.read=e=>a.fromWireType(o(i,e)),r.write=(e,r)=>{var t=[];s(l,e,u.toWireType(t,r)),k(t)}})),[{name:r.name,fromWireType:e=>{for(var r=new Array(n),a=0;a<n;++a)r[a]=t[a].read(e);return i(e),r},toWireType:(e,a)=>{if(n!==a.length)throw new TypeError(`Incorrect number of tuple elements for ${r.name}: expected=${n}, actual=${a.length}`);for(var u=o(),s=0;s<n;++s)t[s].write(u,a[s]);return null!==e&&e.push(i,u),u},argPackAdvance:8,readValueFromPointer:$,destructorFunction:i}]}))},s:e=>{var r=N[e];delete N[e];var t=r.rawConstructor,n=r.rawDestructor,a=r.fields,o=a.map((e=>e.getterReturnType)).concat(a.map((e=>e.setterArgumentType)));L([e],o,(e=>{var o={};return a.forEach(((r,t)=>{var n=r.fieldName,i=e[t],u=r.getter,s=r.getterContext,l=e[t+a.length],c=r.setter,f=r.setterContext;o[n]={read:e=>i.fromWireType(u(s,e)),write:(e,r)=>{var t=[];c(f,e,l.toWireType(t,r)),k(t)}}})),[{name:r.name,fromWireType:e=>{var r={};for(var t in o)r[t]=o[t].read(e);return n(e),r},toWireType:(e,r)=>{for(var a in o)if(!(a in r))throw new TypeError(`Missing field: "${a}"`);var i=t();for(a in o)o[a].write(i,r[a]);return null!==e&&e.push(n,i),i},argPackAdvance:8,readValueFromPointer:$,destructorFunction:n}]}))},u:(e,r,t,n,a)=>{},B:(e,r,t,n)=>{J(e,{name:r=G(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:n},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(d[e])},destructorFunction:null})},A:(e,r)=>{J(e,{name:r=G(r),fromWireType:e=>{var r=re(e);return ee(e),r},toWireType:(e,r)=>te(r),argPackAdvance:8,readValueFromPointer:$,destructorFunction:null})},r:(e,r,t)=>{J(e,{name:r=G(r),fromWireType:e=>e,toWireType:(e,r)=>r,argPackAdvance:8,readValueFromPointer:ne(r,t),destructorFunction:null})},c:(e,r,t,n,a,o,i)=>{var u=((e,r)=>{for(var t=[],n=0;n<e;n++)t.push(v[r+4*n>>2]);return t})(r,t);e=(e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?(function(e){e||W("Parentheses for argument names should match.")}(")"==e[e.length-1]),e.substr(0,r)):e})(e=G(e)),a=le(n,a),oe(e,(function(){((e,r)=>{var t=[],n={};throw r.forEach((function e(r){n[r]||V[r]||(z[r]?z[r].forEach(e):(t.push(r),n[r]=!0))})),new K(`${e}: `+t.map(ce).join([", "]))})(`Cannot call ${e} due to unbound types`,u)}),r-1),L([],u,(function(t){var n=[t[0],null].concat(t.slice(1));return ie(e,function(e,r,t,n,a){var o=r.length;o<2&&q("argTypes array size mismatch! Must at least get return value and 'this' types!"),r[1];for(var i=!1,u=1;u<r.length;++u)if(null!==r[u]&&void 0===r[u].destructorFunction){i=!0;break}var s="void"!==r[0].name,l=o-2,c=new Array(l),f=[],d=[];return function(){arguments.length!==l&&q(`function ${e} called with ${arguments.length} arguments, expected ${l}`),d.length=0,f.length=1,f[0]=a;for(var t=0;t<l;++t)c[t]=r[t+2].toWireType(d,arguments[t]),f.push(c[t]);return function(e){if(i)k(d);else for(var t=2;t<r.length;t++){var n=1===t?void 0:c[t-2];null!==r[t].destructorFunction&&r[t].destructorFunction(n)}if(s)return r[0].fromWireType(e)}(n.apply(null,f))}}(e,n,0,a,o),r-1),[]}))},f:(e,r,t,n,a)=>{r=G(r);var o=e=>e;if(0===n){var i=32-8*t;o=e=>e<<i>>>i}var u=r.includes("unsigned");J(e,{name:r,fromWireType:o,toWireType:u?function(e,r){return this.name,r>>>0}:function(e,r){return this.name,r},argPackAdvance:8,readValueFromPointer:fe(r,t,0!==n),destructorFunction:null})},b:(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function a(e){var r=v[e>>2],t=v[e+4>>2];return new n(f.buffer,t,r)}J(e,{name:t=G(t),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},q:(e,r)=>{var t="std::string"===(r=G(r));J(e,{name:r,fromWireType(e){var r,n=v[e>>2],a=e+4;if(t)for(var o=a,i=0;i<=n;++i){var u=a+i;if(i==n||0==d[u]){var s=ge(o,u-o);void 0===r?r=s:(r+=String.fromCharCode(0),r+=s),o=u+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(d[a+i]);r=l.join("")}return Ie(e),r},toWireType(e,r){var n;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var a="string"==typeof r;a||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||q("Cannot pass non-string to std::string"),n=t&&a?me(r):r.length;var o=Ue(4+n+1),i=o+4;if(v[o>>2]=n,t&&a)((e,r,t)=>{pe(e,d,r,t)})(r,i,n+1);else if(a)for(var u=0;u<n;++u){var s=r.charCodeAt(u);s>255&&(Ie(i),q("String has UTF-16 code units that do not fit in 8 bits")),d[i+u]=s}else for(u=0;u<n;++u)d[i+u]=r[u];return null!==e&&e.push(Ie,o),o},argPackAdvance:8,readValueFromPointer:de,destructorFunction(e){Ie(e)}})},o:(e,r,t)=>{var n,a,o,i,u;t=G(t),2===r?(n=we,a=_e,i=be,o=()=>p,u=1):4===r&&(n=Ae,a=Te,i=Ce,o=()=>v,u=2),J(e,{name:t,fromWireType:e=>{for(var t,a=v[e>>2],i=o(),s=e+4,l=0;l<=a;++l){var c=e+4+l*r;if(l==a||0==i[c>>u]){var f=n(s,c-s);void 0===t?t=f:(t+=String.fromCharCode(0),t+=f),s=c+r}}return Ie(e),t},toWireType:(e,n)=>{"string"!=typeof n&&q(`Cannot pass non-string to C++ string type ${t}`);var o=i(n),s=Ue(4+o+r);return v[s>>2]=o>>u,a(n,s+4,o+r),null!==e&&e.push(Ie,s),s},argPackAdvance:8,readValueFromPointer:$,destructorFunction(e){Ie(e)}})},m:(e,r,t,n,a,o)=>{D[e]={name:G(r),rawConstructor:le(t,n),rawDestructor:le(a,o),elements:[]}},d:(e,r,t,n,a,o,i,u,s)=>{D[e].elements.push({getterReturnType:r,getter:le(t,n),getterContext:a,setterArgumentType:o,setter:le(i,u),setterContext:s})},t:(e,r,t,n,a,o)=>{N[e]={name:G(r),rawConstructor:le(t,n),rawDestructor:le(a,o),fields:[]}},i:(e,r,t,n,a,o,i,u,s,l)=>{N[e].fields.push({fieldName:G(r),getterReturnType:t,getter:le(n,a),getterContext:o,setterArgumentType:i,setter:le(u,s),setterContext:l})},C:(e,r)=>{J(e,{isVoid:!0,name:r=G(r),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,r)=>{}})},a:ee,n:e=>{e>4&&(Q.get(e).refcount+=1)},D:()=>te([]),h:e=>te((e=>{var r=Fe[e];return void 0===r?G(e):r})(e)),j:()=>te({}),e:(e,r,t)=>{e=re(e),r=re(r),t=re(t),e[r]=t},g:(e,r)=>{var t=(e=(e=>{var r=V[e];return void 0===r&&q("_emval_take_value has unknown type "+ce(e)),r})(e)).readValueFromPointer(r);return te(t)},p:()=>{W("")},z:(e,r,t)=>d.copyWithin(e,r,r+t),y:e=>{var r=d.length,t=2147483648;if((e>>>=0)>t)return!1;for(var n=(e,r)=>e+(r-e%r)%r,a=1;a<=4;a*=2){var o=r*(1+.2/a);o=Math.min(o,e+100663296);var i=Math.min(t,n(Math.max(e,o),65536));if(Ee(i))return!0}return!1},w:(e,r)=>{var t=0;return We().forEach(((n,a)=>{var o=r+t;v[e+4*a>>2]=o,((e,r)=>{for(var t=0;t<e.length;++t)f[0|r++]=e.charCodeAt(t);f[0|r]=0})(n,o),t+=n.length+1})),0},x:(e,r)=>{var t=We();v[e>>2]=t.length;var n=0;return t.forEach((e=>n+=e.length+1)),v[r>>2]=n,0},v:(e,r,t,n,a)=>((e,r,t,n)=>{var a=v[n+40>>2],o={tm_sec:m[n>>2],tm_min:m[n+4>>2],tm_hour:m[n+8>>2],tm_mday:m[n+12>>2],tm_mon:m[n+16>>2],tm_year:m[n+20>>2],tm_wday:m[n+24>>2],tm_yday:m[n+28>>2],tm_isdst:m[n+32>>2],tm_gmtoff:m[n+36>>2],tm_zone:a?ge(a):""},i=ge(t),u={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var s in u)i=i.replace(new RegExp(s,"g"),u[s]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function f(e,r,t){for(var n="number"==typeof e?e.toString():e||"";n.length<r;)n=t[0]+n;return n}function d(e,r){return f(e,r,"0")}function h(e,r){function t(e){return e<0?-1:e>0?1:0}var n;return 0===(n=t(e.getFullYear()-r.getFullYear()))&&0===(n=t(e.getMonth()-r.getMonth()))&&(n=t(e.getDate()-r.getDate())),n}function p(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function g(e){var r=((e,r)=>{for(var t=new Date(e.getTime());r>0;){var n=Se(t.getFullYear()),a=t.getMonth(),o=(n?Oe:Re)[a];if(!(r>o-t.getDate()))return t.setDate(t.getDate()+r),t;r-=o-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t})(new Date(e.tm_year+1900,0,1),e.tm_yday),t=new Date(r.getFullYear(),0,4),n=new Date(r.getFullYear()+1,0,4),a=p(t),o=p(n);return h(a,r)<=0?h(o,r)<=0?r.getFullYear()+1:r.getFullYear():r.getFullYear()-1}var y={"%a":e=>l[e.tm_wday].substring(0,3),"%A":e=>l[e.tm_wday],"%b":e=>c[e.tm_mon].substring(0,3),"%B":e=>c[e.tm_mon],"%C":e=>d((e.tm_year+1900)/100|0,2),"%d":e=>d(e.tm_mday,2),"%e":e=>f(e.tm_mday,2," "),"%g":e=>g(e).toString().substring(2),"%G":e=>g(e),"%H":e=>d(e.tm_hour,2),"%I":e=>{var r=e.tm_hour;return 0==r?r=12:r>12&&(r-=12),d(r,2)},"%j":e=>d(e.tm_mday+((e,r)=>{for(var t=0,n=0;n<=r;t+=e[n++]);return t})(Se(e.tm_year+1900)?Oe:Re,e.tm_mon-1),3),"%m":e=>d(e.tm_mon+1,2),"%M":e=>d(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>d(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var r=e.tm_yday+7-e.tm_wday;return d(Math.floor(r/7),2)},"%V":e=>{var r=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&r++,r){if(53==r){var t=(e.tm_wday+371-e.tm_yday)%7;4==t||3==t&&Se(e.tm_year)||(r=1)}}else{r=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&Se(e.tm_year%400-1))&&r++}return d(r,2)},"%w":e=>e.tm_wday,"%W":e=>{var r=e.tm_yday+7-(e.tm_wday+6)%7;return d(Math.floor(r/7),2)},"%y":e=>(e.tm_year+1900).toString().substring(2),"%Y":e=>e.tm_year+1900,"%z":e=>{var r=e.tm_gmtoff,t=r>=0;return r=(r=Math.abs(r)/60)/60*100+r%60,(t?"+":"-")+String("0000"+r).slice(-4)},"%Z":e=>e.tm_zone,"%%":()=>"%"};for(var s in i=i.replace(/%%/g,"\0\0"),y)i.includes(s)&&(i=i.replace(new RegExp(s,"g"),y[s](o)));var w=function(e){var r=me(e)+1,t=new Array(r);return pe(e,t,0,t.length),t}(i=i.replace(/\0\0/g,"%"));return w.length>r?0:(je(w,e),w.length-1)})(e,r,t,n)},$e=function(){var e={a:ke};function r(e,r){return $e=e.exports,l=$e.E,_(),Z=$e.G,function(e){A.unshift(e)}($e.F),function(){if(E--,a.monitorRunDependencies&&a.monitorRunDependencies(E),0==E&&P){var e=P;P=null,e()}}(),$e}if(E++,a.monitorRunDependencies&&a.monitorRunDependencies(E),a.instantiateWasm)try{return a.instantiateWasm(e,r)}catch(e){c(`Module.instantiateWasm callback failed with error: ${e}`),n(e)}return function(e,r,t,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||O(r)||"function"!=typeof fetch?j(r,t,n):fetch(r,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,t).then(n,(function(e){return c(`wasm streaming compile failed: ${e}`),c("falling back to ArrayBuffer instantiation"),j(r,t,n)}))))}(s,S,e,(function(e){r(e.instance)})).catch(n),{}}(),Ie=a._free=e=>(Ie=a._free=$e.H)(e),Ue=a._malloc=e=>(Ue=a._malloc=$e.I)(e),Ye=e=>(Ye=$e.J)(e);a.__embind_initialize_bindings=()=>(a.__embind_initialize_bindings=$e.K)();var He,Ve=e=>(Ve=$e.L)(e);function ze(){function e(){He||(He=!0,a.calledRun=!0,w||(x(A),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)F(a.postRun.shift());x(T)}()))}E>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)C(a.preRun.shift());x(b)}(),E>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),e()}),1)):e()))}if(a.dynCall_viji=(e,r,t,n,o)=>(a.dynCall_viji=$e.M)(e,r,t,n,o),a.dynCall_ji=(e,r)=>(a.dynCall_ji=$e.N)(e,r),a.dynCall_viijii=(e,r,t,n,o,i,u)=>(a.dynCall_viijii=$e.O)(e,r,t,n,o,i,u),a.dynCall_iiiiij=(e,r,t,n,o,i,u)=>(a.dynCall_iiiiij=$e.P)(e,r,t,n,o,i,u),a.dynCall_iiiiijj=(e,r,t,n,o,i,u,s,l)=>(a.dynCall_iiiiijj=$e.Q)(e,r,t,n,o,i,u,s,l),a.dynCall_iiiiiijj=(e,r,t,n,o,i,u,s,l,c)=>(a.dynCall_iiiiiijj=$e.R)(e,r,t,n,o,i,u,s,l,c),a.addFunction=(e,r)=>{var t=(e=>(he||(he=new WeakMap,((e,r)=>{if(he)for(var t=0;t<0+r;t++){var n=se(t);n&&he.set(n,t)}})(0,Z.length)),he.get(e)||0))(e);if(t)return t;var n=(()=>{if(Me.length)return Me.pop();try{Z.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Z.length-1})();try{De(n,e)}catch(t){if(!(t instanceof TypeError))throw t;var a=((e,r)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function((e=>{for(var r={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},t={parameters:[],results:"v"==e[0]?[]:[r[e[0]]]},n=1;n<e.length;++n)t.parameters.push(r[e[n]]);return t})(r),e);var t=[1];((e,r)=>{var t=e.slice(0,1),n=e.slice(1),a={i:127,p:127,j:126,f:125,d:124,e:111};r.push(96),xe(n.length,r);for(var o=0;o<n.length;++o)r.push(a[n[o]]);"v"==t?r.push(0):r.push(1,a[t])})(r,t);var n=[0,97,115,109,1,0,0,0,1];xe(t.length,n),n.push.apply(n,t),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var a=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(a,{e:{f:e}}).exports.f})(e,r);De(n,a)}return he.set(e,n),n},a.UTF8ToString=ge,P=function e(){He||ze(),He||(P=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return ze(),e.ready},e.exports=t),o.exports;var e,r,t}()),u=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3390],{3390:(n,e,t)=>{t.r(e),t.d(e,{registerFunctions:()=>d});var a=t(66395),r=t(85935),o=t(78878),i=t(33325);function c(n,e){return n&&n.domain?"coded-value"===n.domain.type||"codedValue"===n.domain.type?a.A.convertObjectToArcadeDictionary({type:"codedValue",name:n.domain.name,dataType:i.At[n.field.type],codedValues:n.domain.codedValues.map((n=>({name:n.name,code:n.code})))},(0,o.H)(e)):a.A.convertObjectToArcadeDictionary({type:"range",name:n.domain.name,dataType:i.At[n.field.type],min:n.domain.minValue,max:n.domain.maxValue},(0,o.H)(e)):null}function d(n){"async"===n.mode&&(n.functions.domain=function(e,t){return n.standardFunctionAsync(e,t,(async(n,a,i)=>{if((0,o.B)(i,2,3,e,t),(0,o.n)(i[0]))return c((0,o.Q)(i[0],(0,o.f)(i[1]),void 0===i[2]?void 0:i[2]),e);if((0,o.p)(i[0]))return await i[0]._ensureLoaded(),c((0,o.Z)((0,o.f)(i[1]),i[0],null,void 0===i[2]?void 0:i[2]),e);throw new r.D$(e,r.TX.InvalidParameter,t)}))},n.functions.subtypes=function(e,t){return n.standardFunctionAsync(e,t,(async(n,i,c)=>{if((0,o.B)(c,1,1,e,t),(0,o.n)(c[0])){const n=(0,o.P)(c[0]);return n?a.A.convertObjectToArcadeDictionary(n,(0,o.H)(e)):null}if((0,o.p)(c[0])){await c[0]._ensureLoaded();const n=c[0].subtypeMetaData();return n?a.A.convertObjectToArcadeDictionary(n,(0,o.H)(e)):null}throw new r.D$(e,r.TX.InvalidParameter,t)}))},n.functions.domainname=function(e,t){return n.standardFunctionAsync(e,t,(async(n,a,i)=>{if((0,o.B)(i,2,4,e,t),(0,o.n)(i[0]))return(0,o.S)(i[0],(0,o.f)(i[1]),i[2],void 0===i[3]?void 0:i[3]);if((0,o.p)(i[0])){await i[0]._ensureLoaded();const n=(0,o.Z)((0,o.f)(i[1]),i[0],null,void 0===i[3]?void 0:i[3]);return(0,o._)(n,i[2])}throw new r.D$(e,r.TX.InvalidParameter,t)}))},n.signatures.push({name:"domainname",min:2,max:4}),n.functions.domaincode=function(e,t){return n.standardFunctionAsync(e,t,(async(n,a,i)=>{if((0,o.B)(i,2,4,e,t),(0,o.n)(i[0]))return(0,o.T)(i[0],(0,o.f)(i[1]),i[2],void 0===i[3]?void 0:i[3]);if((0,o.p)(i[0])){await i[0]._ensureLoaded();const n=(0,o.Z)((0,o.f)(i[1]),i[0],null,void 0===i[3]?void 0:i[3]);return(0,o.$)(n,i[2])}throw new r.D$(e,r.TX.InvalidParameter,t)}))},n.signatures.push({name:"domaincode",min:2,max:4}),n.functions.text=function(e,t){return n.standardFunctionAsync(e,t,(async(n,a,i)=>{if((0,o.B)(i,1,2,e,t),(0,o.p)(i[0])){const a=(0,o.E)(i[1],"");if(""===a)return i[0].castToText();if("schema"===a.toLowerCase())return i[0].convertToText("schema",n.abortSignal);if("featureset"===a.toLowerCase())return i[0].convertToText("featureset",n.abortSignal);throw new r.D$(e,r.TX.InvalidParameter,t)}return(0,o.t)(i[0],i[1])}))},n.functions.gdbversion=function(e,t){return n.standardFunctionAsync(e,t,(async(n,a,i)=>{if((0,o.B)(i,1,1,e,t),(0,o.n)(i[0]))return i[0].gdbVersion();if((0,o.p)(i[0]))return(await i[0].load()).gdbVersion;throw new r.D$(e,r.TX.InvalidParameter,t)}))},n.functions.schema=function(e,t){return n.standardFunctionAsync(e,t,(async(n,i,c)=>{if((0,o.B)(c,1,1,e,t),(0,o.p)(c[0]))return await c[0].load(),a.A.convertObjectToArcadeDictionary(c[0].schema(),(0,o.H)(e));if((0,o.n)(c[0])){const n=(0,o.O)(c[0]);return n?a.A.convertObjectToArcadeDictionary(n,(0,o.H)(e)):null}throw new r.D$(e,r.TX.InvalidParameter,t)}))})}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3390],{3390:(n,e,t)=>{t.r(e),t.d(e,{registerFunctions:()=>d});var a=t(66395),r=t(85935),o=t(78878),i=t(33325);function c(n,e){return n&&n.domain?"coded-value"===n.domain.type||"codedValue"===n.domain.type?a.A.convertObjectToArcadeDictionary({type:"codedValue",name:n.domain.name,dataType:i.At[n.field.type],codedValues:n.domain.codedValues.map((n=>({name:n.name,code:n.code})))},(0,o.H)(e)):a.A.convertObjectToArcadeDictionary({type:"range",name:n.domain.name,dataType:i.At[n.field.type],min:n.domain.minValue,max:n.domain.maxValue},(0,o.H)(e)):null}function d(n){"async"===n.mode&&(n.functions.domain=function(e,t){return n.standardFunctionAsync(e,t,(async(n,a,i)=>{if((0,o.B)(i,2,3,e,t),(0,o.n)(i[0]))return c((0,o.Q)(i[0],(0,o.f)(i[1]),void 0===i[2]?void 0:i[2]),e);if((0,o.p)(i[0]))return await i[0]._ensureLoaded(),c((0,o.Z)((0,o.f)(i[1]),i[0],null,void 0===i[2]?void 0:i[2]),e);throw new r.D$(e,r.TX.InvalidParameter,t)}))},n.functions.subtypes=function(e,t){return n.standardFunctionAsync(e,t,(async(n,i,c)=>{if((0,o.B)(c,1,1,e,t),(0,o.n)(c[0])){const n=(0,o.P)(c[0]);return n?a.A.convertObjectToArcadeDictionary(n,(0,o.H)(e)):null}if((0,o.p)(c[0])){await c[0]._ensureLoaded();const n=c[0].subtypeMetaData();return n?a.A.convertObjectToArcadeDictionary(n,(0,o.H)(e)):null}throw new r.D$(e,r.TX.InvalidParameter,t)}))},n.functions.domainname=function(e,t){return n.standardFunctionAsync(e,t,(async(n,a,i)=>{if((0,o.B)(i,2,4,e,t),(0,o.n)(i[0]))return(0,o.S)(i[0],(0,o.f)(i[1]),i[2],void 0===i[3]?void 0:i[3]);if((0,o.p)(i[0])){await i[0]._ensureLoaded();const n=(0,o.Z)((0,o.f)(i[1]),i[0],null,void 0===i[3]?void 0:i[3]);return(0,o._)(n,i[2])}throw new r.D$(e,r.TX.InvalidParameter,t)}))},n.signatures.push({name:"domainname",min:2,max:4}),n.functions.domaincode=function(e,t){return n.standardFunctionAsync(e,t,(async(n,a,i)=>{if((0,o.B)(i,2,4,e,t),(0,o.n)(i[0]))return(0,o.T)(i[0],(0,o.f)(i[1]),i[2],void 0===i[3]?void 0:i[3]);if((0,o.p)(i[0])){await i[0]._ensureLoaded();const n=(0,o.Z)((0,o.f)(i[1]),i[0],null,void 0===i[3]?void 0:i[3]);return(0,o.$)(n,i[2])}throw new r.D$(e,r.TX.InvalidParameter,t)}))},n.signatures.push({name:"domaincode",min:2,max:4}),n.functions.text=function(e,t){return n.standardFunctionAsync(e,t,(async(n,a,i)=>{if((0,o.B)(i,1,2,e,t),(0,o.p)(i[0])){const a=(0,o.G)(i[1],"");if(""===a)return i[0].castToText();if("schema"===a.toLowerCase())return i[0].convertToText("schema",n.abortSignal);if("featureset"===a.toLowerCase())return i[0].convertToText("featureset",n.abortSignal);throw new r.D$(e,r.TX.InvalidParameter,t)}return(0,o.t)(i[0],i[1])}))},n.functions.gdbversion=function(e,t){return n.standardFunctionAsync(e,t,(async(n,a,i)=>{if((0,o.B)(i,1,1,e,t),(0,o.n)(i[0]))return i[0].gdbVersion();if((0,o.p)(i[0]))return(await i[0].load()).gdbVersion;throw new r.D$(e,r.TX.InvalidParameter,t)}))},n.functions.schema=function(e,t){return n.standardFunctionAsync(e,t,(async(n,i,c)=>{if((0,o.B)(c,1,1,e,t),(0,o.p)(c[0]))return await c[0].load(),a.A.convertObjectToArcadeDictionary(c[0].schema(),(0,o.H)(e));if((0,o.n)(c[0])){const n=(0,o.O)(c[0]);return n?a.A.convertObjectToArcadeDictionary(n,(0,o.H)(e)):null}throw new r.D$(e,r.TX.InvalidParameter,t)}))})}}}]);