@arcgis/core 5.2.0-next.87 → 5.2.0-next.89

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 (679) hide show
  1. package/Graphic.js +1 -1
  2. package/arcade/Dictionary.js +1 -1
  3. package/arcade/Feature.js +1 -1
  4. package/arcade/ImmutablePointArray.js +1 -1
  5. package/arcade/Pixel.js +1 -1
  6. package/arcade/Voxel.js +1 -1
  7. package/arcade/arcadeAsyncRuntime.js +1 -1
  8. package/arcade/arcadeCompiler.js +1 -1
  9. package/arcade/arcadeRuntime.js +1 -1
  10. package/arcade/containerUtils.js +1 -1
  11. package/arcade/debug.js +1 -1
  12. package/arcade/deepClone.js +1 -1
  13. package/arcade/featureset/actions/SpatialFilter.js +1 -1
  14. package/arcade/featureset/support/FeatureSet.js +1 -1
  15. package/arcade/functions/centroid.js +1 -1
  16. package/arcade/functions/date.js +1 -1
  17. package/arcade/functions/feature.js +1 -1
  18. package/arcade/functions/featuresetbase.js +1 -1
  19. package/arcade/functions/featuresetgeom.js +1 -1
  20. package/arcade/functions/featuresetstats.js +1 -1
  21. package/arcade/functions/featuresetstring.js +1 -1
  22. package/arcade/functions/fieldStats.js +1 -1
  23. package/arcade/functions/geomasync.js +1 -1
  24. package/arcade/functions/geometry.js +1 -1
  25. package/arcade/functions/geomsync.js +1 -1
  26. package/arcade/functions/knowledgegraph.js +1 -1
  27. package/arcade/functions/maths.js +1 -1
  28. package/arcade/functions/stats.js +1 -1
  29. package/arcade/functions/string.js +1 -1
  30. package/arcade/functions/track.js +1 -1
  31. package/arcade/geometry/adapters/accessor.js +2 -0
  32. package/arcade/geometry/adapters/dehydrated.js +2 -0
  33. package/arcade/geometry/adapters/gx.js +2 -0
  34. package/arcade/geometry/adapters/json.js +2 -0
  35. package/arcade/geometry/adapters/optimized.js +2 -0
  36. package/arcade/geometry/adapters/tuple.js +2 -0
  37. package/arcade/geometry/adapters/utils.js +2 -0
  38. package/arcade/geometry/arrayOfPointsConversions.js +2 -0
  39. package/arcade/geometry/constructors.js +1 -1
  40. package/arcade/geometry/functions.js +1 -1
  41. package/arcade/geometry/isSelfIntersecting.js +2 -0
  42. package/arcade/geometry/nearestCoordinate.js +2 -0
  43. package/arcade/geometry/nearestVertex.js +1 -1
  44. package/arcade/geometry/operators.js +1 -1
  45. package/arcade/geometry/operatorsWorker.js +1 -1
  46. package/arcade/geometry/rotate.js +1 -1
  47. package/arcade/geometry.js +2 -0
  48. package/arcade/languageUtils.js +1 -1
  49. package/arcade.js +1 -1
  50. package/arcgisGlobal.d.ts +1 -0
  51. package/assets/esri/core/workers/RemoteClient.js +1 -1
  52. package/assets/esri/core/workers/chunks/{0b8c9657975388f1e4c8.js → 00181785a180e934bf7c.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{01e648b258efa6408070.js → 0336f4f8498a22347720.js} +1 -1
  54. package/assets/esri/core/workers/chunks/05393b23ab24126d4236.js +1 -0
  55. package/assets/esri/core/workers/chunks/07613ecf13c38ad58b79.js +1 -0
  56. package/assets/esri/core/workers/chunks/08263c07d92c48806834.js +1 -0
  57. package/assets/esri/core/workers/chunks/090ea7a131f8f60203ed.js +1 -0
  58. package/assets/esri/core/workers/chunks/09e01fd1c199be0c8e03.js +1 -0
  59. package/assets/esri/core/workers/chunks/{12d6d73ca1fa55640a4f.js → 0b4a7209b99227a842ad.js} +1 -1
  60. package/assets/esri/core/workers/chunks/0d95f72e1c07ab867d21.js +1 -0
  61. package/assets/esri/core/workers/chunks/0dbbac7a2378728571a7.js +1 -0
  62. package/assets/esri/core/workers/chunks/0f15468ffefd3e9a17b8.js +29 -0
  63. package/assets/esri/core/workers/chunks/13e92f6a9573a2818fb7.js +1 -0
  64. package/assets/esri/core/workers/chunks/159b16f47665f94a0305.js +1 -0
  65. package/assets/esri/core/workers/chunks/15f4f7e34e14e3cf52e6.js +1 -0
  66. package/assets/esri/core/workers/chunks/19e93d4d37018e3ee849.js +1 -0
  67. package/assets/esri/core/workers/chunks/{911f3a1b8dd4bc5c9782.js → 1bf5c0a4bc5a960a3fa2.js} +1 -1
  68. package/assets/esri/core/workers/chunks/1bf967c68d0c795d3fb4.js +1 -0
  69. package/assets/esri/core/workers/chunks/1c378d489c5402888f76.js +1 -0
  70. package/assets/esri/core/workers/chunks/1d1e8d8b1fcf2d9f3dfc.js +1 -0
  71. package/assets/esri/core/workers/chunks/{e5c8f9fef88ca33624e9.js → 1e087fb13b7b0a5d6fec.js} +1 -1
  72. package/assets/esri/core/workers/chunks/1e192ac0533a5c0b5a7a.js +1 -0
  73. package/assets/esri/core/workers/chunks/1f9d6180a96d557838e9.js +1 -0
  74. package/assets/esri/core/workers/chunks/1fe077f57a087c0e9119.js +1 -0
  75. package/assets/esri/core/workers/chunks/20f6e681ccd8bf884b77.js +1 -0
  76. package/assets/esri/core/workers/chunks/212222b64039d436b9a6.js +1 -0
  77. package/assets/esri/core/workers/chunks/22c94f9a69b2157f8dbd.js +1 -0
  78. package/assets/esri/core/workers/chunks/23addf8b11938e0c96e9.js +1 -0
  79. package/assets/esri/core/workers/chunks/25a2e02677a74834c8b5.js +1 -0
  80. package/assets/esri/core/workers/chunks/26ecc841396e5e719b6a.js +1 -0
  81. package/assets/esri/core/workers/chunks/27c0bed59626c7f64125.js +1 -0
  82. package/assets/esri/core/workers/chunks/2bc3e7f394386fa75447.js +1 -0
  83. package/assets/esri/core/workers/chunks/2c9783e3b44986e86797.js +1 -0
  84. package/assets/esri/core/workers/chunks/2ceb07b125c84b51f02a.js +1 -0
  85. package/assets/esri/core/workers/chunks/2cf2f2842c19be84ab4d.js +1 -0
  86. package/assets/esri/core/workers/chunks/2d07d5a9ec67c39ef10c.js +1 -0
  87. package/assets/esri/core/workers/chunks/{a7c715648a07ed70b122.js → 2ec44ebc48beeba11201.js} +1 -1
  88. package/assets/esri/core/workers/chunks/2f2d699b072472fa710e.js +1 -0
  89. package/assets/esri/core/workers/chunks/2f3bbc1f7d4abbbeec2f.js +1 -0
  90. package/assets/esri/core/workers/chunks/30af0f7c4cfa541c9efd.js +1 -0
  91. package/assets/esri/core/workers/chunks/30d816bdeea00f6fa1ca.js +1 -0
  92. package/assets/esri/core/workers/chunks/{39c0a3eb6a870953d530.js → 31a0620a6028e94c7532.js} +3 -3
  93. package/assets/esri/core/workers/chunks/32f11b4aeae1ef00e466.js +1 -0
  94. package/assets/esri/core/workers/chunks/37adb55d9f83faad1712.js +1 -0
  95. package/assets/esri/core/workers/chunks/3869dca884d7ca6488f5.js +1 -0
  96. package/assets/esri/core/workers/chunks/39b6a5222f45cb8dbc94.js +1 -0
  97. package/assets/esri/core/workers/chunks/3a9c6f58a1a065c14017.js +1 -0
  98. package/assets/esri/core/workers/chunks/3aceedec9abfb2fdfa18.js +1 -0
  99. package/assets/esri/core/workers/chunks/3b552afffaa78bf4fe18.js +1 -0
  100. package/assets/esri/core/workers/chunks/{fe06cc2f90b2d551e4c1.js → 3bbd2d4a19c3b7ad82e4.js} +1 -1
  101. package/assets/esri/core/workers/chunks/3de07326da4c47cd2aab.js +1 -0
  102. package/assets/esri/core/workers/chunks/3f5234120d3a14186c1c.js +1 -0
  103. package/assets/esri/core/workers/chunks/3f82410d9f701e7ad8eb.js +1 -0
  104. package/assets/esri/core/workers/chunks/{dbd6bbd3e834ff9d220e.js → 41cf6163758d28fb1968.js} +1 -1
  105. package/assets/esri/core/workers/chunks/45858d1c6487f4a98e40.js +1 -0
  106. package/assets/esri/core/workers/chunks/45c1c90ac6c14657f3ff.js +1 -0
  107. package/assets/esri/core/workers/chunks/46f8c7ae7fb356c3410d.js +1 -0
  108. package/assets/esri/core/workers/chunks/486f1a3b7269ce6c3911.js +1 -0
  109. package/assets/esri/core/workers/chunks/497c5a9c95e9a89ac217.js +1 -0
  110. package/assets/esri/core/workers/chunks/49d36e54644dc2966128.js +1 -0
  111. package/assets/esri/core/workers/chunks/4aefe6fd4d725a107758.js +1 -0
  112. package/assets/esri/core/workers/chunks/4b6f433022a6822706cb.js +1 -0
  113. package/assets/esri/core/workers/chunks/4c7264e3f4156f92d613.js +1 -0
  114. package/assets/esri/core/workers/chunks/4ee99e654dad6f09abee.js +1 -0
  115. package/assets/esri/core/workers/chunks/50525b617ef78086d3c7.js +1 -0
  116. package/assets/esri/core/workers/chunks/{a7727a2377470d586ff9.js → 51c9bd7c03d780fadebc.js} +1 -1
  117. package/assets/esri/core/workers/chunks/5235b9c21ac4156c2375.js +1 -0
  118. package/assets/esri/core/workers/chunks/52422500ca3d6cf2e596.js +1 -0
  119. package/assets/esri/core/workers/chunks/527b87fddf33bb5d519e.js +1 -0
  120. package/assets/esri/core/workers/chunks/{a4bae2396fae48b57047.js → 595edbc1e9bba47d5676.js} +1 -1
  121. package/assets/esri/core/workers/chunks/5af16937904c06fb06f6.js +1 -0
  122. package/assets/esri/core/workers/chunks/5bf65dbfd9c7a5ea187d.js +1 -0
  123. package/assets/esri/core/workers/chunks/5d7a5aa608ed6192b016.js +1 -0
  124. package/assets/esri/core/workers/chunks/5d9c92c4e60a4696fdad.js +1 -0
  125. package/assets/esri/core/workers/chunks/5ed7bc9e6cb7cdee92e2.js +1 -0
  126. package/assets/esri/core/workers/chunks/{272c8ccdbd3dcc14e99b.js → 5ed89c862eee1345e3af.js} +1 -1
  127. package/assets/esri/core/workers/chunks/5fbd7d8d8896a224fff3.js +1 -0
  128. package/assets/esri/core/workers/chunks/607acd9f615f87e14075.js +1 -0
  129. package/assets/esri/core/workers/chunks/62ee6c247f783acabb74.js +1 -0
  130. package/assets/esri/core/workers/chunks/64ce2d060ae7cdd412cf.js +1 -0
  131. package/assets/esri/core/workers/chunks/65f4ca7201e7267bfc81.js +1 -0
  132. package/assets/esri/core/workers/chunks/67efdd296007a809586c.js +1 -0
  133. package/assets/esri/core/workers/chunks/680557b8832fbdab7f46.js +1 -0
  134. package/assets/esri/core/workers/chunks/691434d4c6a38e63d819.js +1 -0
  135. package/assets/esri/core/workers/chunks/{ba67aaa08e4f11e1140a.js → 696cb3bf167327d5b0b9.js} +1 -1
  136. package/assets/esri/core/workers/chunks/69700ed16727ed0c4e3a.js +1 -0
  137. package/assets/esri/core/workers/chunks/6a2d890640b2cd6c5ccb.js +1 -0
  138. package/assets/esri/core/workers/chunks/6b84982dfaf084a61b93.js +1 -0
  139. package/assets/esri/core/workers/chunks/{7343a44a2382a1d68497.js → 6b9dbf43c0659e55c539.js} +1 -1
  140. package/assets/esri/core/workers/chunks/6de5c6af62776e1b9776.js +1 -0
  141. package/assets/esri/core/workers/chunks/71308dca3fd05687e7bd.js +1 -0
  142. package/assets/esri/core/workers/chunks/75bddfe2be64379db8fd.js +1 -0
  143. package/assets/esri/core/workers/chunks/777f2fdf1f4b9f243893.js +1 -0
  144. package/assets/esri/core/workers/chunks/78085f804969c9282700.js +1 -0
  145. package/assets/esri/core/workers/chunks/7aa9b61ca9b66f30449f.js +1 -0
  146. package/assets/esri/core/workers/chunks/7c56446184abcd14678b.js +1 -0
  147. package/assets/esri/core/workers/chunks/7e41cee4a0ae75e1490d.js +1 -0
  148. package/assets/esri/core/workers/chunks/7f55a150e4da02786311.js +1 -0
  149. package/assets/esri/core/workers/chunks/847b02d188ece9b563ad.js +1 -0
  150. package/assets/esri/core/workers/chunks/86c3d3c7015f1cd55fac.js +1 -0
  151. package/assets/esri/core/workers/chunks/87e0ceb1a64ab08e679a.js +1 -0
  152. package/assets/esri/core/workers/chunks/903c7bd079888f65fef1.js +1 -0
  153. package/assets/esri/core/workers/chunks/9226205850e35b7fc610.js +1 -0
  154. package/assets/esri/core/workers/chunks/94453d075ce02eff4844.js +1 -0
  155. package/assets/esri/core/workers/chunks/9474c913e53f69679197.js +1 -0
  156. package/assets/esri/core/workers/chunks/94ddfe165ac25aef8229.js +1 -0
  157. package/assets/esri/core/workers/chunks/{75a2c43311f5f9058f62.js → 94f62ff81cc6fb83e73f.js} +1 -1
  158. package/assets/esri/core/workers/chunks/95ccac3734ac70387b03.js +1 -0
  159. package/assets/esri/core/workers/chunks/97c7dfd29ad4c2966cb4.js +1 -0
  160. package/assets/esri/core/workers/chunks/{1354b8442c2c501238f1.js → 986c5024f22bbfc49aba.js} +1 -1
  161. package/assets/esri/core/workers/chunks/9b81bd62a2c72f592db1.js +1 -0
  162. package/assets/esri/core/workers/chunks/{62596065747abce1964d.js → 9b8e33985310f281f084.js} +1 -1
  163. package/assets/esri/core/workers/chunks/9e2b3754a76e0dd4a94a.js +1 -0
  164. package/assets/esri/core/workers/chunks/a03e7333e3328036f478.js +1 -0
  165. package/assets/esri/core/workers/chunks/a0565137027c83108953.js +1 -0
  166. package/assets/esri/core/workers/chunks/a176727a1148ca4fb432.js +1 -0
  167. package/assets/esri/core/workers/chunks/a3b403f8acb90af19adb.js +1 -0
  168. package/assets/esri/core/workers/chunks/a4596f028758649da099.js +1 -0
  169. package/assets/esri/core/workers/chunks/a46ac0be9aabc4cfedc7.js +1 -0
  170. package/assets/esri/core/workers/chunks/a4a22149077c7780481c.js +1 -0
  171. package/assets/esri/core/workers/chunks/a6ab627e965fe7e5bd52.js +1 -0
  172. package/assets/esri/core/workers/chunks/a6d4132a16c51323a38a.js +1 -0
  173. package/assets/esri/core/workers/chunks/a7954ad55a241af9064f.js +1 -0
  174. package/assets/esri/core/workers/chunks/a7e6382ecc91c876117f.js +1 -0
  175. package/assets/esri/core/workers/chunks/a88bf8ae93077e1b48cf.js +1 -0
  176. package/assets/esri/core/workers/chunks/a8b878c12cb1a6ea012b.js +1 -0
  177. package/assets/esri/core/workers/chunks/{ec0803cfa5051c4d300d.js → aa0ef4493a7e9bed159f.js} +1 -1
  178. package/assets/esri/core/workers/chunks/aa8ab28e0c1ae3b55ac0.js +1 -0
  179. package/assets/esri/core/workers/chunks/add834f867900a7091d2.js +1 -0
  180. package/assets/esri/core/workers/chunks/{bbf4c2ee4d56bb0f1a81.js → afa6b74d9ca9ed0154af.js} +1 -1
  181. package/assets/esri/core/workers/chunks/b0e25ccb5a1e57a82628.js +1 -0
  182. package/assets/esri/core/workers/chunks/b17a9853250ab626d58d.js +1 -0
  183. package/assets/esri/core/workers/chunks/b19cff0e43fab2632660.js +1 -0
  184. package/assets/esri/core/workers/chunks/b2e2234fdf8e05bc3312.js +1 -0
  185. package/assets/esri/core/workers/chunks/b6063d1755def00d4889.js +1 -0
  186. package/assets/esri/core/workers/chunks/bb56ab53c5a10c9518a6.js +1 -0
  187. package/assets/esri/core/workers/chunks/bd1a7e95a797e1ed4a7b.js +1 -0
  188. package/assets/esri/core/workers/chunks/bd2602195e265f8fdb15.js +1 -0
  189. package/assets/esri/core/workers/chunks/bdfffa5f88b559a4b42d.js +1 -0
  190. package/assets/esri/core/workers/chunks/{f762f0f6c83748d8e328.js → bee411f08e2a9499f8f5.js} +1 -1
  191. package/assets/esri/core/workers/chunks/bf11319138facf44752c.js +1 -0
  192. package/assets/esri/core/workers/chunks/bf357afbabaa8dec4d75.js +1 -0
  193. package/assets/esri/core/workers/chunks/bf7875fda48b15271a10.js +1 -0
  194. package/assets/esri/core/workers/chunks/bfa59005a9b191d18546.js +1 -0
  195. package/assets/esri/core/workers/chunks/bfb8fc6b940bd5510e29.js +1 -0
  196. package/assets/esri/core/workers/chunks/{b311658b8a223efe35d6.js → c0e073a77484b0dfd383.js} +1 -1
  197. package/assets/esri/core/workers/chunks/c13aa45ccd5efb662f88.js +1 -0
  198. package/assets/esri/core/workers/chunks/c176df477bbbbc9c6922.js +1 -0
  199. package/assets/esri/core/workers/chunks/{073224c6ac77dc9e97af.js → c23943e51734254d31e8.js} +1 -1
  200. package/assets/esri/core/workers/chunks/c35553d07ad169910742.js +1 -0
  201. package/assets/esri/core/workers/chunks/c4fef90cf08bbe4f0bb5.js +1 -0
  202. package/assets/esri/core/workers/chunks/c5c2fed38e0ccf84f1fa.js +1 -0
  203. package/assets/esri/core/workers/chunks/c80277a313205853a857.js +1 -0
  204. package/assets/esri/core/workers/chunks/c88bfa51d2a8a024fc24.js +1 -0
  205. package/assets/esri/core/workers/chunks/c91042f8bf886056a29c.js +1 -0
  206. package/assets/esri/core/workers/chunks/ca204c110438f7315790.js +1 -0
  207. package/assets/esri/core/workers/chunks/ca36d85a47179d95f2fc.js +1 -0
  208. package/assets/esri/core/workers/chunks/cb6fb04fe5c8d90d4196.js +1 -0
  209. package/assets/esri/core/workers/chunks/ccaeabc3be07f3c96f50.js +1 -0
  210. package/assets/esri/core/workers/chunks/{85f459297b0214141d43.js → cd02a6078443b8f63927.js} +1 -1
  211. package/assets/esri/core/workers/chunks/{3a36c132ceddef3d15c8.js → cdbcc4cd9145dd93db49.js} +1 -1
  212. package/assets/esri/core/workers/chunks/{e90feee1756a2209f93f.js → ce9fe1a89b474f9e7ee7.js} +1 -1
  213. package/assets/esri/core/workers/chunks/d0cf9ff48f051adbd455.js +1 -0
  214. package/assets/esri/core/workers/chunks/d119671a32a050517cca.js +1 -0
  215. package/assets/esri/core/workers/chunks/d26be8313526ecea9c68.js +1 -0
  216. package/assets/esri/core/workers/chunks/d270b49c037085503016.js +1 -0
  217. package/assets/esri/core/workers/chunks/{f5eee6e548bb24b5a003.js → d30a7fc8dab4ebb8893b.js} +1 -1
  218. package/assets/esri/core/workers/chunks/d344c3fd9f6b113bbcd7.js +1 -0
  219. package/assets/esri/core/workers/chunks/d36bbda9b7261534568f.js +1 -0
  220. package/assets/esri/core/workers/chunks/d4b0012ae1d3b8a9ba01.js +1 -0
  221. package/assets/esri/core/workers/chunks/d58d6b55b2749a535eb3.js +1 -0
  222. package/assets/esri/core/workers/chunks/d6f7aa280f1bd201d4ef.js +1 -0
  223. package/assets/esri/core/workers/chunks/{60f490afdbe299f89669.js → d871572997600930e017.js} +1 -1
  224. package/assets/esri/core/workers/chunks/da9aacdb0b4a04f42fb8.js +1 -0
  225. package/assets/esri/core/workers/chunks/daf7b647bd960d8bad56.js +1 -0
  226. package/assets/esri/core/workers/chunks/{10ac92dcd3738ec23dfb.js → db04c1bad40d068306ba.js} +1 -1
  227. package/assets/esri/core/workers/chunks/{3427f0c026301bcf7272.js → db180f8d25471cfa48af.js} +1 -1
  228. package/assets/esri/core/workers/chunks/ddf284648a73b6993737.js +1 -0
  229. package/assets/esri/core/workers/chunks/dfbe0efe453587ec5eb2.js +1 -0
  230. package/assets/esri/core/workers/chunks/e1682e94cc714197ebb4.js +1 -0
  231. package/assets/esri/core/workers/chunks/e2576c37cf13dc421f69.js +1 -0
  232. package/assets/esri/core/workers/chunks/e370a3337b3c90240e73.js +1 -0
  233. package/assets/esri/core/workers/chunks/e39bccc000c768120a32.js +1 -0
  234. package/assets/esri/core/workers/chunks/e40e08029325f43452d0.js +1 -0
  235. package/assets/esri/core/workers/chunks/e50adcfb392adfb3f79c.js +1 -0
  236. package/assets/esri/core/workers/chunks/{0d7d54e74b5639a0be6e.js → e707534a700a2de687ca.js} +1 -1
  237. package/assets/esri/core/workers/chunks/e823c9ccb7bc348d8824.js +1 -0
  238. package/assets/esri/core/workers/chunks/e88eee4c2fc4229c2a8b.js +1 -0
  239. package/assets/esri/core/workers/chunks/e9f29019aa78f07ace66.js +1 -0
  240. package/assets/esri/core/workers/chunks/ea75c23c44452f45a949.js +1 -0
  241. package/assets/esri/core/workers/chunks/ea91c57a0b31f3f65ee5.js +1 -0
  242. package/assets/esri/core/workers/chunks/eda04911553cf99fb99b.js +1 -0
  243. package/assets/esri/core/workers/chunks/ee77999df3785468b2b6.js +1 -0
  244. package/assets/esri/core/workers/chunks/ef851a2cff76fd211c07.js +1 -0
  245. package/assets/esri/core/workers/chunks/f106cc7f559856f69b9f.js +1 -0
  246. package/assets/esri/core/workers/chunks/f247f3c5148fa0237a7c.js +1 -0
  247. package/assets/esri/core/workers/chunks/{a26dc2647a15b830390e.js → f253875feb11883deb84.js} +1 -1
  248. package/assets/esri/core/workers/chunks/f3716ce04d09af31cfb1.js +1 -0
  249. package/assets/esri/core/workers/chunks/f3d57c5b9dffd12e45b4.js +1 -0
  250. package/assets/esri/core/workers/chunks/f3e53be08ab9dbdf17ae.js +1 -0
  251. package/assets/esri/core/workers/chunks/f43ae1c2f89e1c4396cc.js +1 -0
  252. package/assets/esri/core/workers/chunks/f60ed579981913d44675.js +1 -0
  253. package/assets/esri/core/workers/chunks/{147d1e7e2852a4197e5f.js → f665fb4c5633e0a459d8.js} +1 -1
  254. package/assets/esri/core/workers/chunks/f66e597e524b26e61cd3.js +1 -0
  255. package/assets/esri/core/workers/chunks/{bec140a69cfdb0519680.js → f74c7cbe4bd12f73ae90.js} +1 -1
  256. package/assets/esri/core/workers/chunks/{e6f6b38eda34708d61c5.js → f7f2102b16d201e5f531.js} +1 -1
  257. package/assets/esri/core/workers/chunks/f82ae237452b97cfc024.js +1 -0
  258. package/assets/esri/core/workers/chunks/f83c3597e9332bd991eb.js +1 -0
  259. package/assets/esri/core/workers/chunks/f8a6d8cdcabcd1d511b6.js +1 -0
  260. package/assets/esri/core/workers/chunks/f8f7b86bbd62106bc3d4.js +1 -0
  261. package/assets/esri/core/workers/chunks/f9a4387f850d85c44ca5.js +1 -0
  262. package/assets/esri/core/workers/chunks/fbc7576ed12964059da6.js +1 -0
  263. package/assets/esri/core/workers/chunks/fdd0e6d9927d3c43b0d3.js +1 -0
  264. package/assets/esri/core/workers/chunks/fddcb8be714ad18ad0c8.js +1 -0
  265. package/assets/esri/core/workers/chunks/{baa46edd87e97f922128.js → ffe749d790320dddfa74.js} +1 -1
  266. package/chunks/Bufferer-CclWhXVb.js +1 -1
  267. package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
  268. package/chunks/Envelope.js +1 -1
  269. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  270. package/chunks/GeodeticUtils.js +1 -1
  271. package/chunks/GeographicTransformation.js +1 -1
  272. package/chunks/Geometry.js +1 -1
  273. package/chunks/GlowComposite.glsl.js +9 -7
  274. package/chunks/MultiPathImpl.js +1 -1
  275. package/chunks/OperatorCentroid2D.js +1 -1
  276. package/chunks/OperatorContains.js +2 -0
  277. package/chunks/OperatorCrosses.js +1 -1
  278. package/chunks/OperatorCut.js +1 -1
  279. package/chunks/OperatorDisjoint.js +2 -0
  280. package/chunks/OperatorDistance.js +2 -0
  281. package/chunks/OperatorEquals.js +2 -0
  282. package/chunks/OperatorGeodesicBuffer.js +1 -1
  283. package/chunks/OperatorGeodeticArea.js +1 -1
  284. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  285. package/chunks/OperatorGeodeticLength.js +1 -1
  286. package/chunks/OperatorGraphicBuffer.js +1 -1
  287. package/chunks/OperatorIntegrate.js +1 -1
  288. package/chunks/OperatorIntersects.js +1 -1
  289. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  290. package/chunks/OperatorOverlaps.js +1 -1
  291. package/chunks/OperatorProximity.js +1 -1
  292. package/chunks/OperatorProximityGeodesic.js +1 -1
  293. package/chunks/OperatorRelate.js +2 -0
  294. package/chunks/OperatorShapePreservingLength.js +1 -1
  295. package/chunks/OperatorShapePreservingProject.js +1 -1
  296. package/chunks/OperatorSimplifyOGC.js +1 -1
  297. package/chunks/OperatorTouches.js +1 -1
  298. package/chunks/OperatorWithin.js +1 -1
  299. package/chunks/Point2D.js +1 -1
  300. package/chunks/ProjectionTransformation.js +1 -1
  301. package/chunks/SideCalculator2D-DX0718xq.js +1 -1
  302. package/chunks/UnitFactory.js +1 -1
  303. package/chunks/aiServices.js +1 -1
  304. package/chunks/array.js +1 -1
  305. package/chunks/boundedPlane.js +1 -1
  306. package/chunks/cameraUtilsSpherical.js +1 -1
  307. package/chunks/languageUtils.js +1 -1
  308. package/config.js +1 -1
  309. package/core/accessorSupport/Property.js +1 -1
  310. package/core/sql/TimeOnly.js +1 -1
  311. package/core/units.js +1 -1
  312. package/editing/sharedTemplates/executor/builders/bufferLineToPolygon.js +1 -1
  313. package/editing/sharedTemplates/executor/builders/bufferPointToPolygon.js +1 -1
  314. package/editing/sharedTemplates/executor/builders/bufferPolygonToPolygon.js +1 -1
  315. package/editing/sharedTemplates/executor/builders/pointAtIntersectionVerticesOfLine.js +1 -1
  316. package/editing/sharedTemplates/executor/builders/support/offsetUtils.js +1 -1
  317. package/form/elements/inputs/inputUtils.js +1 -1
  318. package/geometry/operators/areaOperator.js +1 -1
  319. package/geometry/operators/bufferOperator.js +1 -1
  320. package/geometry/operators/centroidOperator.js +1 -1
  321. package/geometry/operators/clipOperator.js +1 -1
  322. package/geometry/operators/containsOperator.js +1 -1
  323. package/geometry/operators/convexHullOperator.js +1 -1
  324. package/geometry/operators/crossesOperator.js +1 -1
  325. package/geometry/operators/cutOperator.js +1 -1
  326. package/geometry/operators/densifyOperator.js +1 -1
  327. package/geometry/operators/differenceOperator.js +1 -1
  328. package/geometry/operators/disjointOperator.js +1 -1
  329. package/geometry/operators/distanceOperator.js +1 -1
  330. package/geometry/operators/equalsOperator.js +1 -1
  331. package/geometry/operators/generalizeOperator.js +1 -1
  332. package/geometry/operators/geodesicBufferOperator.js +1 -1
  333. package/geometry/operators/geodeticAreaOperator.js +1 -1
  334. package/geometry/operators/geodeticDensifyOperator.js +1 -1
  335. package/geometry/operators/geodeticDistanceOperator.js +1 -1
  336. package/geometry/operators/geodeticLengthOperator.js +1 -1
  337. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  338. package/geometry/operators/gx/operatorBuffer.js +1 -1
  339. package/geometry/operators/gx/operatorDifference.js +1 -1
  340. package/geometry/operators/gx/operatorIntersection.js +1 -1
  341. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  342. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  343. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  344. package/geometry/operators/gx/operatorSimplify.js +1 -1
  345. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  346. package/geometry/operators/gx/operatorUnion.js +1 -1
  347. package/geometry/operators/intersectionOperator.js +1 -1
  348. package/geometry/operators/intersectsOperator.js +1 -1
  349. package/geometry/operators/json/containsOperator.js +1 -1
  350. package/geometry/operators/json/crossesOperator.js +1 -1
  351. package/geometry/operators/json/disjointOperator.js +1 -1
  352. package/geometry/operators/json/intersectsOperator.js +1 -1
  353. package/geometry/operators/json/overlapsOperator.js +1 -1
  354. package/geometry/operators/json/touchesOperator.js +1 -1
  355. package/geometry/operators/json/unionOperator.js +1 -1
  356. package/geometry/operators/json/withinOperator.js +1 -1
  357. package/geometry/operators/labelPointOperator.js +1 -1
  358. package/geometry/operators/lengthOperator.js +1 -1
  359. package/geometry/operators/multiPartToSinglePartOperator.js +1 -1
  360. package/geometry/operators/offsetOperator.js +1 -1
  361. package/geometry/operators/overlapsOperator.js +1 -1
  362. package/geometry/operators/proximityOperator.js +1 -1
  363. package/geometry/operators/relateOperator.js +1 -1
  364. package/geometry/operators/reshapeOperator.js +1 -1
  365. package/geometry/operators/simplifyOGCOperator.js +1 -1
  366. package/geometry/operators/simplifyOperator.js +1 -1
  367. package/geometry/operators/support/apiConverter.js +1 -1
  368. package/geometry/operators/support/jsonConverter.js +1 -1
  369. package/geometry/operators/support/projectionTransformation.js +1 -1
  370. package/geometry/operators/symmetricDifferenceOperator.js +1 -1
  371. package/geometry/operators/touchesOperator.js +1 -1
  372. package/geometry/operators/unionOperator.js +1 -1
  373. package/geometry/operators/withinOperator.js +1 -1
  374. package/geometry/support/convexPolyhedron.js +1 -1
  375. package/geometry/support/curves/circleUtils.js +1 -1
  376. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  377. package/geometry/support/frustum.js +1 -1
  378. package/geometry/support/plane.js +1 -1
  379. package/geometry/support/webMercatorUtils.js +1 -1
  380. package/kernel.js +1 -1
  381. package/layers/VectorTileLayer.js +1 -1
  382. package/layers/graphics/data/FlatFeatureStore.js +1 -1
  383. package/layers/graphics/data/QueryEngine.js +1 -1
  384. package/layers/graphics/hydratedFeatures.js +1 -1
  385. package/layers/mixins/DataSeriesLayer.js +1 -1
  386. package/layers/support/csvUtils.js +1 -1
  387. package/layers/support/fieldUtils.js +1 -1
  388. package/layers/video/VideoController.js +1 -1
  389. package/package.json +4 -4
  390. package/support/ArcadeExpression.js +1 -1
  391. package/support/arcadeUtils.js +1 -1
  392. package/support/loadArcade.js +1 -1
  393. package/support/revision.js +1 -1
  394. package/support/tests/serviceMockDependencies.js +1 -1
  395. package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
  396. package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementController.js +1 -1
  397. package/views/2d/engine/vectorTiles/TileManager.js +1 -1
  398. package/views/2d/engine/webgl/util/Fader.js +1 -1
  399. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  400. package/views/2d/layers/support/RouteLayerWaypointVisualization.js +1 -1
  401. package/views/3d/analysis/LineOfSight/LineOfSightConfiguration.js +1 -1
  402. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  403. package/views/3d/analysis/LineOfSight/LineOfSightVisualization.js +1 -1
  404. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  405. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementController.js +1 -1
  406. package/views/3d/input/SceneInputManager.js +1 -1
  407. package/views/3d/input/handlers/RopePullNavigation.js +2 -0
  408. package/views/3d/layers/I3SMeshView3D.js +1 -1
  409. package/views/3d/layers/IntegratedMeshNormals.js +1 -1
  410. package/views/3d/layers/TiledLayerView3D.js +1 -1
  411. package/views/3d/layers/graphics/featureExpressionInfoUtils.js +1 -1
  412. package/views/3d/layers/i3s/I3SNode.js +1 -1
  413. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  414. package/views/3d/layers/i3s/SweptSphereVolume.js +1 -1
  415. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  416. package/views/3d/layers/support/IntegratedMesh3DTilesVertexProcessing.js +1 -1
  417. package/views/3d/state/Frustum.js +1 -1
  418. package/views/3d/state/controllers/RopePullController.js +2 -0
  419. package/views/3d/state/utils/ropePullUtils.js +1 -1
  420. package/views/3d/support/ElevationAgnosticVisibility.js +1 -1
  421. package/views/3d/support/sphericalTileUtils.js +1 -1
  422. package/views/3d/terrain/PlanarPatch.js +1 -1
  423. package/views/3d/terrain/SphericalPatch.js +1 -1
  424. package/views/3d/terrain/Tile.js +1 -1
  425. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  426. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  427. package/views/3d/webgl-engine/lib/LineMaterial.js +2 -0
  428. package/views/3d/webgl-engine/lib/Material.js +1 -1
  429. package/views/3d/webgl-engine/lib/PointMaterial.js +2 -0
  430. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  431. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  432. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  433. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  434. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  435. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  436. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  437. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  438. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  439. package/views/SelectionManager.js +1 -1
  440. package/views/draw/DrawTool.js +1 -1
  441. package/views/draw/support/createUtils.js +1 -1
  442. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  443. package/views/interactive/sketch/constraints.js +1 -1
  444. package/views/popupAdapter.js +1 -1
  445. package/views/support/GeometryWorker.js +1 -1
  446. package/views/support/geometry3dUtils.js +1 -1
  447. package/views/support/selectionUtils.js +1 -1
  448. package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
  449. package/widgets/BatchAttributeForm/expressions/ArcadeExecutorProvider.js +1 -1
  450. package/widgets/BatchAttributeForm/templates/FieldElementTemplate.js +1 -1
  451. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  452. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  453. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
  454. package/widgets/FeatureTable/support/types.d.ts +3 -1
  455. package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
  456. package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
  457. package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
  458. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  459. package/widgets/OrientedImageryViewer/support/panConstraint.js +1 -1
  460. package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
  461. package/widgets/OrientedImageryViewer/videoViewerUtils.js +1 -1
  462. package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
  463. package/widgets/support/SelectionList/selectionListUtils.d.ts +58 -0
  464. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
  465. package/widgets/support/Selector2D/selectorUtils.js +1 -1
  466. package/arcade/kernel.js +0 -2
  467. package/assets/esri/core/workers/chunks/01b7babaefe6500fd6eb.js +0 -1
  468. package/assets/esri/core/workers/chunks/06e109e92de7fa0956e3.js +0 -1
  469. package/assets/esri/core/workers/chunks/0775d1e3034d5e7ef7bc.js +0 -1
  470. package/assets/esri/core/workers/chunks/0993e51d3a9701ed2198.js +0 -1
  471. package/assets/esri/core/workers/chunks/09a0a1e794ddff65aa08.js +0 -1
  472. package/assets/esri/core/workers/chunks/0e57d33bd202d0972207.js +0 -1
  473. package/assets/esri/core/workers/chunks/114ba901fd319ce87dc6.js +0 -1
  474. package/assets/esri/core/workers/chunks/12a3b55195ce3244259d.js +0 -1
  475. package/assets/esri/core/workers/chunks/151bac9e519a3b821baf.js +0 -1
  476. package/assets/esri/core/workers/chunks/156f85ac1885464f0072.js +0 -1
  477. package/assets/esri/core/workers/chunks/180eebd8b7badc2840c9.js +0 -1
  478. package/assets/esri/core/workers/chunks/19cb8963d5ec2246357b.js +0 -1
  479. package/assets/esri/core/workers/chunks/19d4ecee1c161ac0f33c.js +0 -1
  480. package/assets/esri/core/workers/chunks/19ece9f5313f53384cac.js +0 -1
  481. package/assets/esri/core/workers/chunks/1d770e8f0fe57d937daa.js +0 -1
  482. package/assets/esri/core/workers/chunks/1dd22b8df6a52277c64b.js +0 -1
  483. package/assets/esri/core/workers/chunks/1ede298ab815e9ad625c.js +0 -1
  484. package/assets/esri/core/workers/chunks/208bc524bd1e0d3aab79.js +0 -1
  485. package/assets/esri/core/workers/chunks/20a4ae83542c7d39cf0f.js +0 -1
  486. package/assets/esri/core/workers/chunks/21071ab3d7b2771406ae.js +0 -1
  487. package/assets/esri/core/workers/chunks/21bfa89363104f041101.js +0 -1
  488. package/assets/esri/core/workers/chunks/21d0a4d6639d32278f11.js +0 -1
  489. package/assets/esri/core/workers/chunks/22a75fdc6ba60213a870.js +0 -1
  490. package/assets/esri/core/workers/chunks/22e004ed97e06536ecef.js +0 -1
  491. package/assets/esri/core/workers/chunks/23942712a3f6290e0fdb.js +0 -1
  492. package/assets/esri/core/workers/chunks/242287de82586d42f0a4.js +0 -1
  493. package/assets/esri/core/workers/chunks/25cb5086eaa412f6820b.js +0 -1
  494. package/assets/esri/core/workers/chunks/26c8ed0aef59ed6d5267.js +0 -1
  495. package/assets/esri/core/workers/chunks/2742d62fceaf0736aef0.js +0 -1
  496. package/assets/esri/core/workers/chunks/276eba546dc8774076ee.js +0 -1
  497. package/assets/esri/core/workers/chunks/28e02b213da9e682d3dc.js +0 -29
  498. package/assets/esri/core/workers/chunks/2d8195231cb16247f198.js +0 -1
  499. package/assets/esri/core/workers/chunks/2db1227ecd421728630d.js +0 -1
  500. package/assets/esri/core/workers/chunks/2ddc9c9ff6ec243d85e2.js +0 -1
  501. package/assets/esri/core/workers/chunks/2e712154ebb895d96ba1.js +0 -1
  502. package/assets/esri/core/workers/chunks/2f2df51d4976ae65edae.js +0 -1
  503. package/assets/esri/core/workers/chunks/32d31fd4cffdf5a80acb.js +0 -1
  504. package/assets/esri/core/workers/chunks/33aaa5a49e396a0aca47.js +0 -1
  505. package/assets/esri/core/workers/chunks/35622088727e120c93b9.js +0 -1
  506. package/assets/esri/core/workers/chunks/3714cc26f446c4d9cc2c.js +0 -1
  507. package/assets/esri/core/workers/chunks/3722d40d161d60370936.js +0 -1
  508. package/assets/esri/core/workers/chunks/3ac4cfeb1af12a9dc27d.js +0 -1
  509. package/assets/esri/core/workers/chunks/3b009c05eaec5a7048a8.js +0 -1
  510. package/assets/esri/core/workers/chunks/3b376318df4ff8519370.js +0 -1
  511. package/assets/esri/core/workers/chunks/3bf37fd3280f4891c76b.js +0 -1
  512. package/assets/esri/core/workers/chunks/3d18a10a1ecfabe92db3.js +0 -1
  513. package/assets/esri/core/workers/chunks/3de20165796fa4f76728.js +0 -1
  514. package/assets/esri/core/workers/chunks/3fbd4c7e25440c4713f2.js +0 -1
  515. package/assets/esri/core/workers/chunks/407dba2be21255eb47fc.js +0 -1
  516. package/assets/esri/core/workers/chunks/414093fa4957d17bf551.js +0 -1
  517. package/assets/esri/core/workers/chunks/44b1a4e8a65221ad3808.js +0 -1
  518. package/assets/esri/core/workers/chunks/48b31b8534e7bfe42976.js +0 -1
  519. package/assets/esri/core/workers/chunks/48f6af09436723f2d861.js +0 -1
  520. package/assets/esri/core/workers/chunks/49e37f653b81f9e4f7cc.js +0 -1
  521. package/assets/esri/core/workers/chunks/4b4221a869b3f0d517fa.js +0 -1
  522. package/assets/esri/core/workers/chunks/4b86bcde5992eb752ab0.js +0 -1
  523. package/assets/esri/core/workers/chunks/4b9095e2bd060efd47c4.js +0 -1
  524. package/assets/esri/core/workers/chunks/5084de4d0d4961b63ab7.js +0 -1
  525. package/assets/esri/core/workers/chunks/51a8a47aac1d8d22ba9d.js +0 -1
  526. package/assets/esri/core/workers/chunks/5324e4feb78203204c0c.js +0 -1
  527. package/assets/esri/core/workers/chunks/5536cee0dfc183584a9b.js +0 -1
  528. package/assets/esri/core/workers/chunks/58d10928959ae1e2e8d9.js +0 -1
  529. package/assets/esri/core/workers/chunks/597a8e3d9e458298fdd3.js +0 -1
  530. package/assets/esri/core/workers/chunks/5a006ff759fad9fc25cb.js +0 -1
  531. package/assets/esri/core/workers/chunks/60be6de19c5659091d8f.js +0 -1
  532. package/assets/esri/core/workers/chunks/61a38237e163b39520e5.js +0 -1
  533. package/assets/esri/core/workers/chunks/61fcdba6f2097378dce5.js +0 -1
  534. package/assets/esri/core/workers/chunks/6561c01c67db1f4c546e.js +0 -1
  535. package/assets/esri/core/workers/chunks/65eff0ae773505495f21.js +0 -1
  536. package/assets/esri/core/workers/chunks/67452ba9e87962b9e01e.js +0 -1
  537. package/assets/esri/core/workers/chunks/68195277046861ed39a7.js +0 -1
  538. package/assets/esri/core/workers/chunks/68705692335d57522030.js +0 -1
  539. package/assets/esri/core/workers/chunks/6a2a4da3a1cd64ff576f.js +0 -1
  540. package/assets/esri/core/workers/chunks/6af1680771fd8ae8c7dc.js +0 -1
  541. package/assets/esri/core/workers/chunks/6c367de583e0e657ca3a.js +0 -1
  542. package/assets/esri/core/workers/chunks/6d2021a0f0c9a3c6a0e6.js +0 -1
  543. package/assets/esri/core/workers/chunks/6db4a4f9a9ce7cc738d0.js +0 -1
  544. package/assets/esri/core/workers/chunks/6f2a9259240769c7cd6e.js +0 -1
  545. package/assets/esri/core/workers/chunks/724260e36efea90585f4.js +0 -1
  546. package/assets/esri/core/workers/chunks/74ae1222787389d5fcaa.js +0 -1
  547. package/assets/esri/core/workers/chunks/74bfaa98da6c5d375f05.js +0 -1
  548. package/assets/esri/core/workers/chunks/7a68a16f7fea712b9fd6.js +0 -1
  549. package/assets/esri/core/workers/chunks/7b2174b19d06c16715f0.js +0 -1
  550. package/assets/esri/core/workers/chunks/7d8e59ad438fb34b476d.js +0 -1
  551. package/assets/esri/core/workers/chunks/7eb94fc75926bc739233.js +0 -1
  552. package/assets/esri/core/workers/chunks/80795118467fb31ea4ed.js +0 -1
  553. package/assets/esri/core/workers/chunks/820c530b8765ecb1f36e.js +0 -1
  554. package/assets/esri/core/workers/chunks/830daaca32352da6eebe.js +0 -1
  555. package/assets/esri/core/workers/chunks/852649460d664b0a1a1d.js +0 -1
  556. package/assets/esri/core/workers/chunks/85c538bf1209f0da1f8e.js +0 -1
  557. package/assets/esri/core/workers/chunks/8c2921081ca3e7fd0385.js +0 -1
  558. package/assets/esri/core/workers/chunks/8db3fd97e8eccd3ba1db.js +0 -1
  559. package/assets/esri/core/workers/chunks/8e225dd0319672103561.js +0 -1
  560. package/assets/esri/core/workers/chunks/8e79a84e224d05204e7d.js +0 -1
  561. package/assets/esri/core/workers/chunks/8e9aff66a2d4e2cc102b.js +0 -1
  562. package/assets/esri/core/workers/chunks/917318f8e186f466dc52.js +0 -1
  563. package/assets/esri/core/workers/chunks/9267f6a65c2245696eac.js +0 -1
  564. package/assets/esri/core/workers/chunks/9407db0584c730591161.js +0 -1
  565. package/assets/esri/core/workers/chunks/958e161634b5bfd50625.js +0 -1
  566. package/assets/esri/core/workers/chunks/9658b46a7111cda53b0d.js +0 -1
  567. package/assets/esri/core/workers/chunks/974bcaf2a059b8cfb153.js +0 -1
  568. package/assets/esri/core/workers/chunks/99881d0a6c2490a16268.js +0 -1
  569. package/assets/esri/core/workers/chunks/99980c944acb8ff88d6a.js +0 -1
  570. package/assets/esri/core/workers/chunks/9c227785f4454d3966ea.js +0 -1
  571. package/assets/esri/core/workers/chunks/9d61d9136f3d00aab530.js +0 -1
  572. package/assets/esri/core/workers/chunks/9df2685583393a87df2d.js +0 -1
  573. package/assets/esri/core/workers/chunks/9e840a71906c4deef776.js +0 -1
  574. package/assets/esri/core/workers/chunks/9ee6e8a6b9bfda758c21.js +0 -1
  575. package/assets/esri/core/workers/chunks/a03f4605bde69bfb6d41.js +0 -1
  576. package/assets/esri/core/workers/chunks/a327843cee2057ee76c0.js +0 -1
  577. package/assets/esri/core/workers/chunks/a557347fb313df6fcc79.js +0 -1
  578. package/assets/esri/core/workers/chunks/a8da0728a12fc46dca23.js +0 -1
  579. package/assets/esri/core/workers/chunks/a9ea28e0f22cfe3ccf92.js +0 -1
  580. package/assets/esri/core/workers/chunks/aae92f23b38ae22dd8bf.js +0 -1
  581. package/assets/esri/core/workers/chunks/ad3714da9c90d7471385.js +0 -1
  582. package/assets/esri/core/workers/chunks/b047f9e9ba26037657ed.js +0 -1
  583. package/assets/esri/core/workers/chunks/b1323800119bd5c1759b.js +0 -1
  584. package/assets/esri/core/workers/chunks/b18c35f25da18a3219d7.js +0 -1
  585. package/assets/esri/core/workers/chunks/b1f68ee65cce457d7b5b.js +0 -1
  586. package/assets/esri/core/workers/chunks/b2d6fd436981c890152f.js +0 -1
  587. package/assets/esri/core/workers/chunks/b3c518ca8679fbe16ece.js +0 -1
  588. package/assets/esri/core/workers/chunks/b4b4fe06364bea9b0750.js +0 -1
  589. package/assets/esri/core/workers/chunks/b61b7005edd9ced925e9.js +0 -1
  590. package/assets/esri/core/workers/chunks/b661aae7e3ce955a783e.js +0 -1
  591. package/assets/esri/core/workers/chunks/b66ebe53bd879aa9de57.js +0 -1
  592. package/assets/esri/core/workers/chunks/b8ca80134abfcc692244.js +0 -1
  593. package/assets/esri/core/workers/chunks/bbdf10d76d852072c878.js +0 -1
  594. package/assets/esri/core/workers/chunks/bbeb61d9302323bae9fb.js +0 -1
  595. package/assets/esri/core/workers/chunks/bbfd2b4af8e498b61af9.js +0 -1
  596. package/assets/esri/core/workers/chunks/bdafd4f03585351cecc3.js +0 -1
  597. package/assets/esri/core/workers/chunks/bddd5aa7a14cd45ff91c.js +0 -1
  598. package/assets/esri/core/workers/chunks/be31c2cb97f664a54306.js +0 -1
  599. package/assets/esri/core/workers/chunks/be4319827db91aa71bf5.js +0 -1
  600. package/assets/esri/core/workers/chunks/bef32acf368b4d5aba37.js +0 -1
  601. package/assets/esri/core/workers/chunks/c1568bcd3f04014152e1.js +0 -1
  602. package/assets/esri/core/workers/chunks/c1a7c475ce0c59ffa75a.js +0 -1
  603. package/assets/esri/core/workers/chunks/c229a4eedda468c914a9.js +0 -1
  604. package/assets/esri/core/workers/chunks/c2b2942456f1b10d0e96.js +0 -1
  605. package/assets/esri/core/workers/chunks/c308d8f419ba63c583e6.js +0 -1
  606. package/assets/esri/core/workers/chunks/c5dc2743c7116d0bc0d8.js +0 -1
  607. package/assets/esri/core/workers/chunks/c68cc3b9c170b8de22dc.js +0 -1
  608. package/assets/esri/core/workers/chunks/c6ef0636073e28350c91.js +0 -1
  609. package/assets/esri/core/workers/chunks/c71368cd64f240da1743.js +0 -1
  610. package/assets/esri/core/workers/chunks/cb2f27e5d465124b9868.js +0 -1
  611. package/assets/esri/core/workers/chunks/cee2f7f3b3f84688e49d.js +0 -1
  612. package/assets/esri/core/workers/chunks/d0942860a53b02371e94.js +0 -1
  613. package/assets/esri/core/workers/chunks/d13eeff678972a245d5d.js +0 -1
  614. package/assets/esri/core/workers/chunks/d3d7b4cd28a0dc2720d4.js +0 -1
  615. package/assets/esri/core/workers/chunks/d3ea7ac6fe71c95faa75.js +0 -1
  616. package/assets/esri/core/workers/chunks/d41e4498aaf4970f48b0.js +0 -1
  617. package/assets/esri/core/workers/chunks/d56603e1d0031f3c5f3b.js +0 -1
  618. package/assets/esri/core/workers/chunks/d7c8725ffb175cec5f8a.js +0 -1
  619. package/assets/esri/core/workers/chunks/d96fa373dcb621c2a869.js +0 -1
  620. package/assets/esri/core/workers/chunks/da233362b06b6db375f1.js +0 -1
  621. package/assets/esri/core/workers/chunks/dbc8f15a6be835f4897d.js +0 -1
  622. package/assets/esri/core/workers/chunks/e00d0036974aaec7d876.js +0 -1
  623. package/assets/esri/core/workers/chunks/e0c75ae3a211a8da10f7.js +0 -1
  624. package/assets/esri/core/workers/chunks/e474106292834633e7d4.js +0 -1
  625. package/assets/esri/core/workers/chunks/e557043f90c051e93925.js +0 -1
  626. package/assets/esri/core/workers/chunks/e5cbed6f19c743915c8e.js +0 -1
  627. package/assets/esri/core/workers/chunks/e5ecd93bd32e99bc99d1.js +0 -1
  628. package/assets/esri/core/workers/chunks/e64ccdb8328eb6514e59.js +0 -1
  629. package/assets/esri/core/workers/chunks/eb8c4f194bb66a27d418.js +0 -1
  630. package/assets/esri/core/workers/chunks/ebd8c77df5df63bd3efe.js +0 -1
  631. package/assets/esri/core/workers/chunks/f14347f5d63f5d102617.js +0 -1
  632. package/assets/esri/core/workers/chunks/f3c0280b6c87f2383a60.js +0 -1
  633. package/assets/esri/core/workers/chunks/f42c4dcb8f413ca1c6fd.js +0 -1
  634. package/assets/esri/core/workers/chunks/f5773321487ec248fa3b.js +0 -1
  635. package/assets/esri/core/workers/chunks/f76911f71540b058a881.js +0 -1
  636. package/assets/esri/core/workers/chunks/f988d5a6dcc15fe34797.js +0 -1
  637. package/assets/esri/core/workers/chunks/fa29b5064d6626cfc019.js +0 -1
  638. package/assets/esri/core/workers/chunks/fa882d0f4a9826533421.js +0 -1
  639. package/assets/esri/core/workers/chunks/fb2d43608006f588e3cb.js +0 -1
  640. package/assets/esri/core/workers/chunks/fbd02e8277fe2252ecd2.js +0 -1
  641. package/assets/esri/core/workers/chunks/fc1aeea22f8c9d63864a.js +0 -1
  642. package/assets/esri/core/workers/chunks/fc3c03cfa3d6bf3b37dc.js +0 -1
  643. package/assets/esri/core/workers/chunks/fcf7299e2ee904ab9882.js +0 -1
  644. package/assets/esri/core/workers/chunks/ff07d351553deb70b889.js +0 -1
  645. package/assets/esri/core/workers/chunks/ffee66699f5d26569baf.js +0 -1
  646. package/chunks/OperatorDefinitions.js +0 -2
  647. package/chunks/areaOperator.js +0 -2
  648. package/chunks/bufferOperator.js +0 -2
  649. package/chunks/centroidOperator.js +0 -2
  650. package/chunks/clipOperator.js +0 -2
  651. package/chunks/containsOperator.js +0 -2
  652. package/chunks/convexHullOperator.js +0 -2
  653. package/chunks/crossesOperator.js +0 -2
  654. package/chunks/cutOperator.js +0 -2
  655. package/chunks/densifyOperator.js +0 -2
  656. package/chunks/differenceOperator.js +0 -2
  657. package/chunks/disjointOperator.js +0 -2
  658. package/chunks/distanceOperator.js +0 -2
  659. package/chunks/equalsOperator.js +0 -2
  660. package/chunks/generalizeOperator.js +0 -2
  661. package/chunks/geodesicBufferOperator.js +0 -2
  662. package/chunks/geodeticAreaOperator.js +0 -2
  663. package/chunks/geodeticDensifyOperator.js +0 -2
  664. package/chunks/geodeticDistanceOperator.js +0 -2
  665. package/chunks/geodeticLengthOperator.js +0 -2
  666. package/chunks/intersectionOperator.js +0 -2
  667. package/chunks/intersectsOperator.js +0 -2
  668. package/chunks/labelPointOperator.js +0 -2
  669. package/chunks/lengthOperator.js +0 -2
  670. package/chunks/multiPartToSinglePartOperator.js +0 -2
  671. package/chunks/offsetOperator.js +0 -2
  672. package/chunks/overlapsOperator.js +0 -2
  673. package/chunks/proximityOperator.js +0 -2
  674. package/chunks/relateOperator.js +0 -2
  675. package/chunks/simplifyOperator.js +0 -2
  676. package/chunks/symmetricDifferenceOperator.js +0 -2
  677. package/chunks/touchesOperator.js +0 -2
  678. package/chunks/unionOperator.js +0 -2
  679. package/chunks/withinOperator.js +0 -2
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1735,1948,4642,7992,8125,9397],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},69397(t,e,r){r.d(e,{Qf:()=>o,Qh:()=>i,lM:()=>n});var s=r(34275);function n(t){if(!t)return 0;let e=u;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let r=c;for(let s=0;s<e;s++)r+=a(t[s]);return r}(t);let e=u;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?i(t):u;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+l:Array.isArray(e)?h(e,16):0:0),0)}function h(t,e){return c+t.length*e}const u=32,c=16,l=145},87992(t,e,r){r.d(e,{JR:()=>V,ME:()=>M,MY:()=>Z,NO:()=>C,Nh:()=>P,V2:()=>S,_s:()=>_,e6:()=>b,gh:()=>E,tr:()=>F,uX:()=>p});var s=r(32198),n=r(16930),i=r(19419),a=r(60408),o=r(21325),h=r(513),u=r(50954),c=r(79567),l=r(52006),f=r(49663),g=r(46068),m=r(92722);class p{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?64+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=S(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:c}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,o.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new x(this):[][Symbol.iterator]()}}class x{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=O(t),this._segments=new d(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class d{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new v(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=O(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],h=e[r++];r++,r++;const u=e[r++],c=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,c]]};const l=2&s?0:1,f=1&s?0:1;return{a:[this.end,[o,h],l,f,a,n,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,s.mS)(r,new w(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:a,vertexM:o}=t,h=A(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new w(t,["vertexZ","vertexM"]),!1);const n=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,c.e)(n,t,r),t=(0,l.yP)(r)}const[a,o,u,f]=n;e={xmin:a,ymin:o,xmax:u,ymax:f,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:h}}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function M(t){let e,r,s;if((0,a.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),r=[[h]],e=1}else(0,a.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,R(e[0],(0,l.yP)(e.at(-1)))&&--t),t),0));const n=S(s,e,s.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,l.Ed)(t)),{hasZ:i,hasM:o,vertexXY:h,vertexZ:u,vertexM:c}=n;function f(t){h[2*m]=t[0],h[2*m+1]=t[1],i&&(u[m]=t[2]),o&&(c[m]=t[g]),++m}n.spatialReference=t.spatialReference??void 0;const g=n.hasZ?3:2;let m=0;if(!n.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])h[2*m]=t,h[2*m+1]=e,++m;return n}for(const t of r[0])f(t);return n}const p="polygon"===s,{partOffsets:x}=n;let y=0;if(!(0,l.Ed)(t)){for(const t of r){if(x[y++]=m,0===t.length)continue;let e=t.length;if(p&&R(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)f(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];h[2*m]=e,h[2*m+1]=s,++m}}return x[y]=m,n}function d(t){const e=v+t;if(e<=(n.segmentParams?.length??0))return;let r=e*G;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let v=0;for(const t of r){if(n.partOffsets[y++]=m,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];f(r);const i=m-1;(0,l.wY)(s)?(d(10),++n.segmentCountArc,v=_(r,s,n,i,v),r=s.a[0]):(0,l.DA)(s)?(d(10),++n.segmentCountArc,v=Y(r,s,n,i,v),r=s.a[0]):(0,l.aO)(s)?(d(10),++n.segmentCountArc,v=b(r,s,n,i,v),r=s.c[0]):(0,l.n1)(s)?(d(4),++n.segmentCountBezier,v=F(0,s,n,i,v),r=s.b[0]):r=s}p&&R(e,r)||f(r)}return n.partOffsets[y]=m,n}function E(t){const e=O(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=A(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function P(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const u=S(t,h,a,s,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],s&&(u.vertexZ[t]=r[e++]),n&&(u.vertexM[t]=r[e++]);return u}const c=2+Number(s)+Number(n);let l=0,f=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[f],i=e+t-Number(o);u.partOffsets[++f]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[l++],u.vertexXY[2*t+1]=r[l++],s&&(u.vertexZ[t]=r[l++]),n&&(u.vertexM[t]=r[l++]);o&&(l+=c)}return u}function V({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new m.A([],[],o,h);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=u.coords.length;for(let t=l;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(c){const t=l;u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-f)/u.stride),l=i}return"point"===t&&(u.lengths.length=0),u}function Z(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class w{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function A({spatialReference:t}){return t instanceof n.A?t.toJSON():t}function O({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function R(t,e){return t.every((t,r)=>t===e[r])}function S(t,e,r,s,n,i,a,o){a??=0,o??=0;const h=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(u);let l=0;return h.vertexXY=new Float64Array(c,l,2*e),l+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(c,l,e),l+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(c,l,e),l+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(c,l,h.segmentParamCount),l+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(c,l,e),h.segmentIndices.fill(X),l+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(c,l,r+1),l+=h.partOffsets.byteLength,h.partFlags=new Int8Array(c,l,r+1),l+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(c,l,e),h.segmentFlags.fill(1),l+=h.segmentFlags.byteLength),h}function _(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[h,u],c,l,f,m,p]=e.a;let x=4;l||(x|=1),c||(x|=2);const y=(0,g.SW)(t,e),[d,v]=(0,g.Uk)(y,.5);return n[a++]=x,n[a++]=m,n[a++]=p,n[a++]=f,n[a++]=h,n[a++]=u,n[a++]=y.u2-y.u1,n[a++]=y.u1,n[a++]=d,n[a++]=v,a}function Y(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,f.io)(t,e);return I(o,4,...(0,h.mq)(o,.5),n,a)}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,I((0,u.pM)(t,e),0,...e.c[1],n,a)}function I(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:c}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=c,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function F(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,c){return a[u]=2,o[u]=c,h[c++]=r,h[c++]=s,h[c++]=n,h[c++]=i,c}const G=1.61803,X=-1},88411(t,e,r){r.d(e,{execute:()=>o}),r(4576);var s=r(34727),n=r(86211),i=r(91735),a=r(78125);function o(t,e,r={}){let{maxAngleInDegrees:o=0,maxDeviation:h=0,unit:u}=r;const c=(0,a.getSpatialReference)(t);return u&&(e=(0,n.UW)(e,u,c),h&&(h=(0,n.UW)(h,u,c))),(0,a.toGeometry)((0,i.execute)((0,a.fromGeometry)(t),e,h,(0,s.kU)(o)),c)}(0,i.f)()},91735(t,e,r){r.d(e,{execute:()=>n,f:()=>i}),r(76061);const s=new(r(5247).O);function n(t,e,r,n){return s.execute(t,e,r,n,null)}function i(){return s.supportsCurves()}},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>v,fromPolyline:()=>C,fromPolylineUsingImportOperator:()=>M,fromSpatialReference:()=>E,getSpatialReference:()=>m,toExtent:()=>V,toGeometry:()=>P,toMultipoint:()=>Z,toPoint:()=>w,toPolygon:()=>A,toPolyline:()=>O});var s=r(83661),n=r(55537),i=r(95213),a=r(88885),o=r(5443),h=r(48526),u=r(86738),c=r(39829),l=r(82799),f=(r(90293),r(83299));const g="_gxVersion";function m(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function p(t){switch(t.type){case"point":return d(t);case"multipoint":return y(t);case"polyline":return C(t);case"polygon":return v(t);case"extent":return x(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function x(t){if(!t.getCacheValue(g)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(g,e)}return t.getCacheValue(g)}function y(t){if(!t.getCacheValue(g)){const e=new a.M,r=new i.P,s=t.points,n=t.hasM,o=t.hasZ,h=o?3:2;for(let t=0,i=s.length;t<i;t++){const i=s[t];r.setXYCoords(i[0],i[1]),o&&r.setZ(i[2]??0),n&&r.setM(i[h]??NaN),e.add(r)}t.setCacheValue(g,e)}return t.getCacheValue(g)}function d(t){if(!t.getCacheValue(g)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(g,e)}return t.getCacheValue(g)}function v(t){if(!t.getCacheValue(g)){const{curveRings:e,hasM:r,hasZ:s,rings:n}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:s,rings:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function C(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function M(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function E(t){return t.cache?(t.cache[g]??=(0,f.fromSpatialReference)(t),t.cache[g]):(0,f.fromSpatialReference)(t)}function P(t,e){if(t)switch(t.getGeometryType()){case n.G.enumPoint:return w(t,e);case n.G.enumEnvelope:return V(t,e);case n.G.enumMultiPoint:return Z(t,e);case n.G.enumPolyline:return O(t,e);case n.G.enumPolygon:return A(t,e)}return null}function V(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),s=t.getDescription();if(s.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(s.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(g,t),r}function Z(t,e){if(t.isEmpty())return null;const r=t.getDescription(),s=r.hasM(),n=r.hasZ(),a=[],o=new i.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),a.push(r)}const u=new h.A({hasM:s,hasZ:n,points:a,spatialReference:e});return u.setCacheValue(g,t),u}function w(t,e){if(t instanceof s.P)return new u.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new u.A({x:t.getX(),y:t.getY(),spatialReference:e}),n=t.getDescription();return n.hasM()&&(r.m=t.getM()),n.hasZ()&&(r.z=t.getZ()),r.setCacheValue(g,t),r}function A(t,e){if(t.isEmpty())return null;const r=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}function O(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,a=s-e;return new n([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:s}=this;let n=this.coords[s*e],i=this.coords[s*e+1];for(let a=1;a<r;a+=1){const r=s*(e+a),o=this.coords[r],h=this.coords[r+1];t+=-.5*(o-n)*(h+i),n=o,i=h}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const s of this.lengths){for(let n=0;n<s;n++){const s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let s=0;const{stride:n}=this;for(const t of r){for(let r=1;r<t;r++){const t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6129],{86129(e,t,n){n.r(t),n.d(t,{createProjectionTransformation:()=>i});var a=n(39117),r=(n(83661),n(95213)),s=(n(55537),n(4144));function i(e,t,n){let i,o;if(n?.geographicTransformation){if(n.geographicTransformation.steps?.length){const r=new a.ac;r.setInputSpatialReference(e),r.setOutputSpatialReference(t);for(const e of n.geographicTransformation.steps){let t;t=e.wkid?(0,a.y)(e.wkid,e.isInverse):(0,a.z)(e.wkt,e.isInverse),r.add(t)}i=r.create()}else i=(0,a.ad)();if(n.extendedParams){o=(0,a.H)();const{densificationStep:e}=n.extendedParams;null!=e&&(o.densificationStep=e)}}else if(n?.areaOfInterestExtent){const i=(0,s.clipToSpatialReference)(new r.E(n.areaOfInterestExtent),e);return(0,a.E)(e,t,i.asEnvelope2D())}return i?(0,a.D)(e,t,i,o):(0,a.C)(e,t)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1948,7217,7992,8125,9074,9397],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},69397(t,e,r){r.d(e,{Qf:()=>o,Qh:()=>i,lM:()=>n});var s=r(34275);function n(t){if(!t)return 0;let e=u;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let r=c;for(let s=0;s<e;s++)r+=a(t[s]);return r}(t);let e=u;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?i(t):u;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+l:Array.isArray(e)?h(e,16):0:0),0)}function h(t,e){return c+t.length*e}const u=32,c=16,l=145},87992(t,e,r){r.d(e,{JR:()=>V,ME:()=>M,MY:()=>Z,NO:()=>C,Nh:()=>P,V2:()=>S,_s:()=>_,e6:()=>b,gh:()=>E,tr:()=>F,uX:()=>p});var s=r(32198),n=r(16930),i=r(19419),a=r(60408),o=r(21325),h=r(513),u=r(50954),c=r(79567),l=r(52006),f=r(49663),g=r(46068),m=r(92722);class p{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?64+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=S(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:c}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,o.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new x(this):[][Symbol.iterator]()}}class x{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=R(t),this._segments=new d(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class d{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new v(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=R(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],h=e[r++];r++,r++;const u=e[r++],c=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,c]]};const l=2&s?0:1,f=1&s?0:1;return{a:[this.end,[o,h],l,f,a,n,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,s.mS)(r,new w(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:a,vertexM:o}=t,h=A(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new w(t,["vertexZ","vertexM"]),!1);const n=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,c.e)(n,t,r),t=(0,l.yP)(r)}const[a,o,u,f]=n;e={xmin:a,ymin:o,xmax:u,ymax:f,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:h}}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function M(t){let e,r,s;if((0,a.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),r=[[h]],e=1}else(0,a.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,O(e[0],(0,l.yP)(e.at(-1)))&&--t),t),0));const n=S(s,e,s.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,l.Ed)(t)),{hasZ:i,hasM:o,vertexXY:h,vertexZ:u,vertexM:c}=n;function f(t){h[2*m]=t[0],h[2*m+1]=t[1],i&&(u[m]=t[2]),o&&(c[m]=t[g]),++m}n.spatialReference=t.spatialReference??void 0;const g=n.hasZ?3:2;let m=0;if(!n.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])h[2*m]=t,h[2*m+1]=e,++m;return n}for(const t of r[0])f(t);return n}const p="polygon"===s,{partOffsets:x}=n;let y=0;if(!(0,l.Ed)(t)){for(const t of r){if(x[y++]=m,0===t.length)continue;let e=t.length;if(p&&O(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)f(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];h[2*m]=e,h[2*m+1]=s,++m}}return x[y]=m,n}function d(t){const e=v+t;if(e<=(n.segmentParams?.length??0))return;let r=e*G;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let v=0;for(const t of r){if(n.partOffsets[y++]=m,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];f(r);const i=m-1;(0,l.wY)(s)?(d(10),++n.segmentCountArc,v=_(r,s,n,i,v),r=s.a[0]):(0,l.DA)(s)?(d(10),++n.segmentCountArc,v=Y(r,s,n,i,v),r=s.a[0]):(0,l.aO)(s)?(d(10),++n.segmentCountArc,v=b(r,s,n,i,v),r=s.c[0]):(0,l.n1)(s)?(d(4),++n.segmentCountBezier,v=F(0,s,n,i,v),r=s.b[0]):r=s}p&&O(e,r)||f(r)}return n.partOffsets[y]=m,n}function E(t){const e=R(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=A(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function P(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const u=S(t,h,a,s,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],s&&(u.vertexZ[t]=r[e++]),n&&(u.vertexM[t]=r[e++]);return u}const c=2+Number(s)+Number(n);let l=0,f=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[f],i=e+t-Number(o);u.partOffsets[++f]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[l++],u.vertexXY[2*t+1]=r[l++],s&&(u.vertexZ[t]=r[l++]),n&&(u.vertexM[t]=r[l++]);o&&(l+=c)}return u}function V({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new m.A([],[],o,h);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=u.coords.length;for(let t=l;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(c){const t=l;u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-f)/u.stride),l=i}return"point"===t&&(u.lengths.length=0),u}function Z(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class w{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function A({spatialReference:t}){return t instanceof n.A?t.toJSON():t}function R({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function O(t,e){return t.every((t,r)=>t===e[r])}function S(t,e,r,s,n,i,a,o){a??=0,o??=0;const h=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(u);let l=0;return h.vertexXY=new Float64Array(c,l,2*e),l+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(c,l,e),l+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(c,l,e),l+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(c,l,h.segmentParamCount),l+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(c,l,e),h.segmentIndices.fill(X),l+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(c,l,r+1),l+=h.partOffsets.byteLength,h.partFlags=new Int8Array(c,l,r+1),l+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(c,l,e),h.segmentFlags.fill(1),l+=h.segmentFlags.byteLength),h}function _(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[h,u],c,l,f,m,p]=e.a;let x=4;l||(x|=1),c||(x|=2);const y=(0,g.SW)(t,e),[d,v]=(0,g.Uk)(y,.5);return n[a++]=x,n[a++]=m,n[a++]=p,n[a++]=f,n[a++]=h,n[a++]=u,n[a++]=y.u2-y.u1,n[a++]=y.u1,n[a++]=d,n[a++]=v,a}function Y(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,f.io)(t,e);return I(o,4,...(0,h.mq)(o,.5),n,a)}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,I((0,u.pM)(t,e),0,...e.c[1],n,a)}function I(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:c}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=c,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function F(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,c){return a[u]=2,o[u]=c,h[c++]=r,h[c++]=s,h[c++]=n,h[c++]=i,c}const G=1.61803,X=-1},93054(t,e,r){r.d(e,{execute:()=>i});var s=r(49074),n=r(78125);function i(t,e){const r=(0,n.getSpatialReference)(t);return(0,n.toGeometry)((0,s.execute)((0,n.fromGeometry)(t),(0,n.fromGeometry)(e),(0,n.fromSpatialReference)(r)),r)}(0,s.f)()},49074(t,e,r){r.d(e,{execute:()=>i,f:()=>a}),r(76061),r(55537);var s=r(39117);r(83661),r(88885),r(95213);const n=new s.a3;function i(t,e,r){return n.execute(t,e,r,null)}function a(){return n.supportsCurves()}},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>v,fromPolyline:()=>C,fromPolylineUsingImportOperator:()=>M,fromSpatialReference:()=>E,getSpatialReference:()=>m,toExtent:()=>V,toGeometry:()=>P,toMultipoint:()=>Z,toPoint:()=>w,toPolygon:()=>A,toPolyline:()=>R});var s=r(83661),n=r(55537),i=r(95213),a=r(88885),o=r(5443),h=r(48526),u=r(86738),c=r(39829),l=r(82799),f=(r(90293),r(83299));const g="_gxVersion";function m(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function p(t){switch(t.type){case"point":return d(t);case"multipoint":return y(t);case"polyline":return C(t);case"polygon":return v(t);case"extent":return x(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function x(t){if(!t.getCacheValue(g)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(g,e)}return t.getCacheValue(g)}function y(t){if(!t.getCacheValue(g)){const e=new a.M,r=new i.P,s=t.points,n=t.hasM,o=t.hasZ,h=o?3:2;for(let t=0,i=s.length;t<i;t++){const i=s[t];r.setXYCoords(i[0],i[1]),o&&r.setZ(i[2]??0),n&&r.setM(i[h]??NaN),e.add(r)}t.setCacheValue(g,e)}return t.getCacheValue(g)}function d(t){if(!t.getCacheValue(g)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(g,e)}return t.getCacheValue(g)}function v(t){if(!t.getCacheValue(g)){const{curveRings:e,hasM:r,hasZ:s,rings:n}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:s,rings:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function C(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function M(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function E(t){return t.cache?(t.cache[g]??=(0,f.fromSpatialReference)(t),t.cache[g]):(0,f.fromSpatialReference)(t)}function P(t,e){if(t)switch(t.getGeometryType()){case n.G.enumPoint:return w(t,e);case n.G.enumEnvelope:return V(t,e);case n.G.enumMultiPoint:return Z(t,e);case n.G.enumPolyline:return R(t,e);case n.G.enumPolygon:return A(t,e)}return null}function V(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),s=t.getDescription();if(s.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(s.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(g,t),r}function Z(t,e){if(t.isEmpty())return null;const r=t.getDescription(),s=r.hasM(),n=r.hasZ(),a=[],o=new i.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),a.push(r)}const u=new h.A({hasM:s,hasZ:n,points:a,spatialReference:e});return u.setCacheValue(g,t),u}function w(t,e){if(t instanceof s.P)return new u.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new u.A({x:t.getX(),y:t.getY(),spatialReference:e}),n=t.getDescription();return n.hasM()&&(r.m=t.getM()),n.hasZ()&&(r.z=t.getZ()),r.setCacheValue(g,t),r}function A(t,e){if(t.isEmpty())return null;const r=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}function R(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,a=s-e;return new n([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:s}=this;let n=this.coords[s*e],i=this.coords[s*e+1];for(let a=1;a<r;a+=1){const r=s*(e+a),o=this.coords[r],h=this.coords[r+1];t+=-.5*(o-n)*(h+i),n=o,i=h}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const s of this.lengths){for(let n=0;n<s;n++){const s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let s=0;const{stride:n}=this;for(const t of r){for(let r=1;r<t;r++){const t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3755],{83755(e,t,r){r.d(t,{executeIsSelfIntersecting:()=>m});var n=r(55537),s=r(39117),i=r(95213);const u=new(r(98783).O),o=new Set([5,6,7,10,11,12]);function m(e,t){const r=e.getGeometryType();if(r===n.G.enumMultiPoint){const t=e,r=new i.P,n=new i.P,s=t.getPointCount();for(let e=0;e<s;e++){t.getPointByVal(e,r);for(let i=e+1;i<s;i++)if(t.getPointByVal(i,n),r.equals(n))return!0}return!1}if(r===n.G.enumPolyline||r===n.G.enumPolygon){const r=new s.W;return!u.isSimple(e,t,!0,r,null)&&o.has(r.m_reason)}return!1}},98783(e,t,r){r.d(t,{O:()=>o});var n=r(61691),s=r(55537),i=r(76061),u=r(39117);class o{getOperatorType(){return 10104}accelerateGeometry(e,t,r){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}isSimple(e,t,r,n,s){return 5===(0,u.X)(e,t,r,n,s)}executeMany(e,t,r,n){return new m(e,t,r,n)}execute(e,t,r,n){const u=new i.S([e]),o=this.executeMany(u,t,r,n).next();return o||(0,s.d)("null output"),o}}class m extends n.G{m_inputGeometryCursor;m_spatialReference;m_progressTracker;m_index;m_bForceSimplify;constructor(e,t,r,n){super(),e||(0,s.a)(""),this.m_progressTracker=n,this.m_bForceSimplify=r,this.m_index=-1,this.m_inputGeometryCursor=e,this.m_spatialReference=t}next(){const e=this.m_inputGeometryCursor.next();return e?((0,s.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),this.simplify(e)):null}getGeometryID(){return this.m_index}tock(){return!1}getRank(){return 1}simplify(e){return e||(0,s.a)(""),(0,u.Y)(e,this.m_spatialReference,this.m_bForceSimplify,this.m_progressTracker)}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7005],{82534(t,n,e){function r(){return[0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>s,vt:()=>r});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:s,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,a])},48163(t,n,e){function r(){return[0,0]}function s(t){return[t[0],t[1]]}function a(t,n){return[t,n]}function i(){return a(1,1)}function o(){return a(-1,-1)}function c(){return a(1,0)}function h(){return a(0,1)}e.d(n,{fA:()=>a,o8:()=>s,vt:()=>r});const u=i(),f=o(),l=c(),d=h();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:u,UNIT_X:l,UNIT_Y:d,ZEROS:[0,0],clone:s,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:a,negativeOnes:o,ones:i,unitX:c,unitY:h,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,f,"Un",0,u])},67026(t,n,e){e.d(n,{A6:()=>M,Xd:()=>u,Xr:()=>d,lw:()=>f,x8:()=>h});var r=e(29242),s=e(82534),a=e(51850),i=e(34304),o=e(35522),c=e(78955);function h(t,n,e){e*=.5;const r=Math.sin(e);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function u(t,n){const e=2*Math.acos(n[3]),r=Math.sin(e/2);return r>(0,i.FD)()?(t[0]=n[0]/r,t[1]=n[1]/r,t[2]=n[2]/r):(t[0]=1,t[1]=0,t[2]=0),e}function f(t,n,e){const r=n[0],s=n[1],a=n[2],i=n[3],o=e[0],c=e[1],h=e[2],u=e[3];return t[0]=r*u+i*o+s*h-a*c,t[1]=s*u+i*c+a*o-r*h,t[2]=a*u+i*h+r*c-s*o,t[3]=i*u-r*o-s*c-a*h,t}function l(t,n,e,r){const s=n[0],a=n[1],o=n[2],c=n[3];let h,u,f,l,d,m=e[0],M=e[1],_=e[2],v=e[3];return u=s*m+a*M+o*_+c*v,u<0&&(u=-u,m=-m,M=-M,_=-_,v=-v),1-u>(0,i.FD)()?(h=Math.acos(u),f=Math.sin(h),l=Math.sin((1-r)*h)/f,d=Math.sin(r*h)/f):(l=1-r,d=r),t[0]=l*s+d*m,t[1]=l*a+d*M,t[2]=l*o+d*_,t[3]=l*c+d*v,t}function d(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function m(t,n){const e=n[0]+n[4]+n[8];let r;if(e>0)r=Math.sqrt(e+1),t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r;else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const s=(e+1)%3,a=(e+2)%3;r=Math.sqrt(n[3*e+e]-n[3*s+s]-n[3*a+a]+1),t[e]=.5*r,r=.5/r,t[3]=(n[3*s+a]-n[3*a+s])*r,t[s]=(n[3*s+e]+n[3*e+s])*r,t[a]=(n[3*a+e]+n[3*e+a])*r}return t}function M(t,n,e,r){const s=.5*Math.PI/180;n*=s,e*=s,r*=s;const a=Math.sin(n),i=Math.cos(n),o=Math.sin(e),c=Math.cos(e),h=Math.sin(r),u=Math.cos(r);return t[0]=a*c*u-i*o*h,t[1]=i*o*u+a*c*h,t[2]=i*c*h-a*o*u,t[3]=i*c*u+a*o*h,t}const _=c.C,v=c.hZ,g=c.WQ,b=f,P=c.hs,j=c.Om,p=c.Cc,w=c.Bw,x=w,I=c.m3,S=I,A=c.S8,C=c.t2,z=c.aI,y=(0,a.vt)(),O=(0,a.fA)(1,0,0),Q=(0,a.fA)(0,1,0),q=(0,s.vt)(),V=(0,s.vt)(),N=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:g,calculateW:function(t,n){const e=n[0],r=n[1],s=n[2];return t[0]=e,t[1]=r,t[2]=s,t[3]=Math.sqrt(Math.abs(1-e*e-r*r-s*s)),t},conjugate:d,copy:_,dot:j,equals:z,exactEquals:C,fromEuler:M,fromMat3:m,getAxisAngle:u,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const e=n[0],r=n[1],s=n[2],a=n[3],i=e*e+r*r+s*s+a*a,o=i?1/i:0;return t[0]=-e*o,t[1]=-r*o,t[2]=-s*o,t[3]=a*o,t},len:x,length:w,lerp:p,mul:b,multiply:f,normalize:A,random:function(t){const n=i.Ov,e=n(),r=n(),s=n(),a=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=a*Math.sin(2*Math.PI*r),t[1]=a*Math.cos(2*Math.PI*r),t[2]=o*Math.sin(2*Math.PI*s),t[3]=o*Math.cos(2*Math.PI*s),t},rotateX:function(t,n,e){e*=.5;const r=n[0],s=n[1],a=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c+i*o,t[1]=s*c+a*o,t[2]=a*c-s*o,t[3]=i*c-r*o,t},rotateY:function(t,n,e){e*=.5;const r=n[0],s=n[1],a=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c-a*o,t[1]=s*c+i*o,t[2]=a*c+r*o,t[3]=i*c-s*o,t},rotateZ:function(t,n,e){e*=.5;const r=n[0],s=n[1],a=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c+s*o,t[1]=s*c-r*o,t[2]=a*c+i*o,t[3]=i*c-a*o,t},rotationTo:function(t,n,e){const r=(0,o.Om)(n,e);return r<-.999999?((0,o.$A)(y,O,n),(0,o.Il)(y)<1e-6&&(0,o.$A)(y,Q,n),(0,o.S8)(y,y),h(t,y,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.$A)(y,n,e),t[0]=y[0],t[1]=y[1],t[2]=y[2],t[3]=1+r,A(t,t))},scale:P,set:v,setAxes:function(t,n,e,r){const s=N;return s[0]=e[0],s[3]=e[1],s[6]=e[2],s[1]=r[0],s[4]=r[1],s[7]=r[2],s[2]=-n[0],s[5]=-n[1],s[8]=-n[2],A(t,m(t,s))},setAxisAngle:h,slerp:l,sqlerp:function(t,n,e,r,s,a){return l(q,n,s,a),l(V,e,r,a),l(t,q,V,2*a*(1-a)),t},sqrLen:S,squaredLength:I,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"})),e.d(n,["hZ",0,v,"t2",0,C])},48353(t,n,e){e.d(n,{l:()=>h});var r=e(34727),s=e(58083),a=e(51850);function i(t,n,e){const r=Math.sin(t),s=Math.cos(t),a=Math.sin(n),i=Math.cos(n),o=e;return o[0]=-r,o[4]=-a*s,o[8]=i*s,o[12]=0,o[1]=s,o[5]=-a*r,o[9]=i*r,o[13]=0,o[2]=0,o[6]=i,o[10]=a,o[14]=0,o[3]=0,o[7]=0,o[11]=0,o[15]=1,o}var o=e(49208),c=e(21325);function h(t,n,e,r){const a=(0,o.Tp)(t,r);if(null==a)return!1;const h=a.source.spatialReferenceId,m=a.dest.spatialReferenceId;if(h===m&&!u(m)&&(0!==h||(0,c.aI)(t,r)))return(0,s.kN)(e,n),!0;if(u(m)){const t=o.w5[h][10],r=o.w5[10][m];return null!=t&&null!=r&&(t(n,0,l,0),r(l,0,d,0),i(f*l[0],f*l[1],e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}const M=u(h);if((3===m||11===m||2===m||5===m)&&(2===h||M||3===h||5===h)){const t=o.w5[h][10],r=o.w5[10][m];return null!=t&&null!=r&&(t(n,0,l,0),r(l,0,d,0),M?function(t,n,e){i(t,n,e),(0,s.mg)(e,e)}(f*l[0],f*l[1],e):(0,s.D_)(e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}return!1}function u(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),l=(0,a.vt)(),d=(0,a.vt)()},27921(t,n,e){e.d(n,{$Q:()=>P,C:()=>o,Cr:()=>u,H:()=>p,O_:()=>h,Qj:()=>c,T7:()=>g,Tj:()=>b,lU:()=>f,mN:()=>w,vE:()=>x,vt:()=>i});var r=e(34727),s=e(35522),a=e(51850);function i(t=I){return[t[0],t[1],t[2],t[3]]}function o(t,n){return function(t,n,e,r,s=i()){return s[0]=t,s[1]=n,s[2]=e,s[3]=r,s}(n[0],n[1],n[2],n[3],t)}function c(t){return t}function h(t,n,e){const r=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],s=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return e[0]=n[0]*s,e[1]=n[1]*s,e[2]=n[2]*s,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function u(t,n,e,r=i()){const s=e[0]-n[0],a=e[1]-n[1],o=e[2]-n[2],c=t[0]-n[0],h=t[1]-n[1],u=t[2]-n[2],f=a*u-o*h,l=o*c-s*u,d=s*h-a*c,m=f*f+l*l+d*d,M=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return r[0]=f*M,r[1]=l*M,r[2]=d*M,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function f(t,n,e,r=0,a=Math.floor(e*(1/3)),i=Math.floor(e*(2/3))){if(e<3)return!1;n(d,r);let o=a,c=!1;for(;o<e-1&&!c;)n(m,o),o++,c=!(0,s.t2)(d,m);if(!c)return!1;for(o=Math.max(o,i),c=!1;o<e&&!c;)n(M,o),o++,(0,s.Re)(_,d,m),(0,s.S8)(_,_),(0,s.Re)(v,m,M),(0,s.S8)(v,v),c=!(0,s.t2)(d,M)&&!(0,s.t2)(m,M)&&Math.abs((0,s.Om)(_,v))<l;return c?(u(d,m,M,t),!0):(0!==r||1!==a||2!==i)&&f(t,n,e,0,1,2)}e(78955),e(44280),e(32114),e(32728);const l=.99619469809,d=(0,a.vt)(),m=(0,a.vt)(),M=(0,a.vt)(),_=(0,a.vt)(),v=(0,a.vt)();function g(t,n,e){return function(t){return 0===t||1===t}(x(t,n.origin,n.vector,0,e))}function b(t,n){return w(t,n)>=0}function P(t,n){return function(t,n,e,r,a,i,o){const c=(0,s.Om)(t,e),h=w(t,n);if(c>-1e-6&&c<1e-6)return j(h,a,i);const u=-h/c,f=j(c,a,!1);return!(o&&!f&&!j(h,a,i))&&(f?u>r.c0&&(r.c0=u):u<r.c1&&(r.c1=u),r.c0<=r.c1)}(t,n.ray.origin,n.ray.direction,n,!1,!1,!0)}function j(t,n,e){return e?n?t>=0:t<=0:n?t>0:t<0}function p(t,n,e,r=!1){let a=n.at(-1),i=w(t,a),o=r?i>0:i<=0;for(let c=0;c<n.length;c++){const h=n.at(c),u=w(t,h),f=r?u>0:u<=0;o!==f&&(0,s.Cc)(e(),a,h,i/(i-u)),f&&(0,s.C)(e(),h),a=h,i=u,o=f}}function w(t,n){return(0,s.Om)(t,n)+t[3]}function x(t,n,e,a,i){const o=(0,s.Om)(t,e),c=w(t,n);if(0===o)return c>=0?2:3;let h=-c/o;return 1&a&&(h=(0,r.qE)(h,0,1)),!(4&a)&&h<0||!(8&a)&&h>1?c>=0?2:3:((0,s.WQ)(i,n,(0,s.hs)(i,e,h)),c>=0?0:1)}const I=[0,0,1,0];(0,a.vt)()},44280(t,n,e){e.d(n,{g7:()=>o,gr:()=>i});var r=e(34727),s=e(35522),a=e(51850);function i(t,n){return(0,s.Om)(t,n)/(0,s.Bw)(t)}function o(t,n){const e=(0,s.Om)(t,n)/((0,s.Bw)(t)*(0,s.Bw)(n));return-(0,r.XM)(e)}(0,a.vt)(),(0,a.vt)()},32114(t,n,e){e.d(n,{Rc:()=>d,rq:()=>f,Km:()=>l}),e(44208);var r=e(26390),s=e(29242),a=e(9093),i=e(82534),o=e(48163),c=e(51850),h=e(91829);class u{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new u(o.vt)}static createVec3f64(){return new u(c.vt)}static createVec4f64(){return new u(h.vt)}static createMat3f64(){return new u(s.vt)}static createMat4f64(){return new u(a.vt)}static createQuatf64(){return new u(i.vt)}get test(){}}u.createVec2f64();const f=u.createVec3f64(),l=u.createVec4f64(),d=(u.createMat3f64(),u.createMat4f64());u.createQuatf64()},32728(t,n,e){e.d(n,{YH:()=>i,nu:()=>o,wp:()=>a}),e(34727);var r=e(35522),s=e(51850);function a(t,n){const e=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),s=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),a=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,r.hZ)(t,e,s,a),t}function i(t,n,e){e=e||t;const s=(0,r.Om)(t,n);(0,r.hZ)(e,t[0]-s*n[0],t[1]-s*n[1],t[2]-s*n[2]),(0,r.S8)(e,e)}function o(t,n,e,a=(0,s.vt)()){const i=(0,r.Bw)(t),o=(0,r.Bw)(n),u=(0,r.Om)(t,n)/(i*o);if(u<.9999999999999999){const s=Math.acos(u),f=((1-e)*i+e*o)/Math.sin(s),l=f/i*Math.sin((1-e)*s),d=f/o*Math.sin(e*s);return(0,r.hs)(c,t,l),(0,r.hs)(h,n,d),(0,r.WQ)(a,c,h)}return(0,r.Cc)(a,t,n,e)}(0,s.vt)(),(0,s.vt)(),(0,s.vt)();const c=(0,s.vt)(),h=(0,s.vt)()},57005(t,n,e){e.d(n,{ab:()=>gt,gm:()=>Ct});var r=e(77690),s=e(29242),a=e(9093),i=e(67026),o=e(82534),c=e(35522),h=e(51850),u=e(78955),f=e(91829),l=e(73941),d=e(98764),m=e(48353),M=e(9762),_=e(49208),v=e(27921),g=e(21325),b=e(48163),P=e(46610);const j=1e-6,p=(0,h.vt)(),w=(0,h.vt)();function x(t,n,e,r,s,a,i,o,c,h){return function(t,n,e){let r=_t(t.maxVert[0],t.minVert[0]),s=0;for(let n=1;n<7;++n){const e=_t(t.maxVert[n],t.minVert[n]);e>r&&(r=e,s=n)}lt(n,t.minVert[s]),lt(e,t.maxVert[s])}(t,r,s),_t(r,s)<j?1:(ut(i,r,s),mt(i,i),function(t,n,e,r){const{data:s,size:a}=t;let i=Number.NEGATIVE_INFINITY,o=0;for(let t=0;t<s.length;t+=a){V[0]=s[t]-n[0],V[1]=s[t+1]-n[1],V[2]=s[t+2]-n[2];const r=e[0]*V[0]+e[1]*V[1]+e[2]*V[2],a=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],c=V[0]*V[0]+V[1]*V[1]+V[2]*V[2]-r*r/a;c>i&&(i=c,o=t)}return lt(r,s,o),i}(n,r,i,a)<j?2:(ut(o,s,a),mt(o,o),ut(c,a,r),mt(c,c),dt(e,o,i),mt(e,e),Z(n,e,i,o,c,h),0))}const I=(0,h.vt)(),S=(0,h.vt)(),A=(0,h.vt)(),C=(0,h.vt)(),z=(0,h.vt)(),y=(0,h.vt)(),O=(0,h.vt)(),Q=(0,h.vt)();function q(t,n,e,r,s,a,i,o,c){(function(t,n,e,r,s){!function(t,n,e,r,s){const{data:a,size:i}=t;lt(r,a),lt(s,r),e[0]=vt(D,n),e[1]=e[0];for(let t=i;t<a.length;t+=i){const i=a[t]*n[0]+a[t+1]*n[1]+a[t+2]*n[2];i<e[0]&&(e[0]=i,lt(r,a,t)),i>e[1]&&(e[1]=i,lt(s,a,t))}}(t,n,N,s,r);const a=vt(e,n);N[1]-j<=a&&(r[0]=void 0),N[0]+j>=a&&(s[0]=void 0)})(t,n,e,I,S),void 0!==I[0]&&(ut(A,I,e),mt(A,A),ut(C,I,r),mt(C,C),ut(z,I,s),mt(z,z),dt(y,C,a),mt(y,y),dt(O,z,i),mt(O,O),dt(Q,A,o),mt(Q,Q),Z(t,y,a,C,A,c),Z(t,O,i,z,C,c),Z(t,Q,o,A,z,c)),void 0!==S[0]&&(ut(A,S,e),mt(A,A),ut(C,S,r),mt(C,C),ut(z,S,s),mt(z,z),dt(y,C,a),mt(y,y),dt(O,z,i),mt(O,O),dt(Q,A,o),mt(Q,Q),Z(t,y,a,C,A,c),Z(t,O,i,z,C,c),Z(t,Q,o,A,z,c))}const V=[0,0,0],N=(0,b.vt)(),T=(0,h.vt)(),F=(0,h.vt)(),R=(0,h.vt)(),H=(0,h.vt)(),E=(0,h.vt)(),L=(0,h.vt)();function Z(t,n,e,r,s,a){if(Mt(n)<j)return;dt(T,e,n),dt(F,r,n),dt(R,s,n),B(t,n,N),E[1]=N[0],H[1]=N[1],L[1]=H[1]-E[1];const i=[e,r,s],o=[T,F,R];for(let e=0;e<3;++e){B(t,i[e],N),E[0]=N[0],H[0]=N[1],B(t,o[e],N),E[2]=N[0],H[2]=N[1],L[0]=H[0]-E[0],L[2]=H[2]-E[2];const r=ct(L);r<a.quality&&(lt(a.b0,i[e]),lt(a.b1,n),lt(a.b2,o[e]),a.quality=r)}}const D=(0,h.vt)();function B(t,n,e){const{data:r,size:s}=t;let a=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;const o=n[0],c=n[1],h=n[2];for(let t=0;t<r.length;t+=s){const n=r[t]*o+r[t+1]*c+r[t+2]*h;a=Math.min(a,n),i=Math.max(i,n)}e[0]=a,e[1]=i}function Y(t,n,e){e.setCenter(t),e.setHalfSize((0,c.hs)(n,n,.5)),e.setQuaternion(o.zK)}const W=(0,h.vt)(),X=(0,h.vt)(),k=(0,h.vt)(),K=(0,h.vt)(),G=(0,h.vt)(),U=(0,h.vt)();function $(t,n,e){lt(W,n),Math.abs(n[0])>Math.abs(n[1])&&Math.abs(n[0])>Math.abs(n[2])?W[0]=0:Math.abs(n[1])>Math.abs(n[2])?W[1]=0:W[2]=0,Mt(W)<j&&(W[0]=W[1]=W[2]=1),dt(X,n,W),mt(X,X),dt(k,n,X),mt(k,k),J(t,n,X,k,K,G),ut(U,G,K),at(n,X,k,K,G,U,e)}function J(t,n,e,r,s,a){B(t,n,N),s[0]=N[0],a[0]=N[1],B(t,e,N),s[1]=N[0],a[1]=N[1],B(t,r,N),s[2]=N[0],a[2]=N[1]}const tt=(0,h.vt)(),nt=(0,h.vt)(),et=(0,h.vt)(),rt=(0,s.fA)(1,0,0,0,1,0,0,0,1),st=(0,o.vt)();function at(t,n,e,r,s,a,i){rt[0]=t[0],rt[1]=t[1],rt[2]=t[2],rt[3]=n[0],rt[4]=n[1],rt[5]=n[2],rt[6]=e[0],rt[7]=e[1],rt[8]=e[2],i.setQuaternion(function(t,n){const e=n[0]+n[4]+n[8];if(e>0){let r=Math.sqrt(e+1);t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r}else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const r=(e+1)%3,s=(e+2)%3;let a=Math.sqrt(n[3*e+e]-n[3*r+r]-n[3*s+s]+1);t[e]=.5*a,a=.5/a,t[3]=(n[3*r+s]-n[3*s+r])*a,t[r]=(n[3*r+e]+n[3*e+r])*a,t[s]=(n[3*s+e]+n[3*e+s])*a}return t}(st,rt)),ht(tt,r,s),ft(tt,tt,.5),ft(nt,t,tt[0]),ft(et,n,tt[1]),ht(nt,nt,et),ft(et,e,tt[2]),i.setCenter((0,c.WQ)(nt,nt,et)),i.setHalfSize((0,c.hs)(tt,a,.5))}class it{constructor(t){this.minVert=new Array(7),this.maxVert=new Array(7),this.buffer=new ArrayBuffer(448);let n=0;this.minProj=new Float64Array(this.buffer,n,7),n+=56,this.maxProj=new Float64Array(this.buffer,n,7),n+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.minProj[t]=Number.POSITIVE_INFINITY,this.maxProj[t]=Number.NEGATIVE_INFINITY;const e=new Array(7),r=new Array(7),{data:s,size:a}=t;for(let t=0;t<s.length;t+=a){let n=s[t];n<this.minProj[0]&&(this.minProj[0]=n,e[0]=t),n>this.maxProj[0]&&(this.maxProj[0]=n,r[0]=t),n=s[t+1],n<this.minProj[1]&&(this.minProj[1]=n,e[1]=t),n>this.maxProj[1]&&(this.maxProj[1]=n,r[1]=t),n=s[t+2],n<this.minProj[2]&&(this.minProj[2]=n,e[2]=t),n>this.maxProj[2]&&(this.maxProj[2]=n,r[2]=t),n=s[t]+s[t+1]+s[t+2],n<this.minProj[3]&&(this.minProj[3]=n,e[3]=t),n>this.maxProj[3]&&(this.maxProj[3]=n,r[3]=t),n=s[t]+s[t+1]-s[t+2],n<this.minProj[4]&&(this.minProj[4]=n,e[4]=t),n>this.maxProj[4]&&(this.maxProj[4]=n,r[4]=t),n=s[t]-s[t+1]+s[t+2],n<this.minProj[5]&&(this.minProj[5]=n,e[5]=t),n>this.maxProj[5]&&(this.maxProj[5]=n,r[5]=t),n=s[t]-s[t+1]-s[t+2],n<this.minProj[6]&&(this.minProj[6]=n,e[6]=t),n>this.maxProj[6]&&(this.maxProj[6]=n,r[6]=t)}for(let t=0;t<7;++t){let n=e[t];lt(this.minVert[t],s,n),n=r[t],lt(this.maxVert[t],s,n)}}}class ot{constructor(){this.b0=(0,h.fA)(1,0,0),this.b1=(0,h.fA)(0,1,0),this.b2=(0,h.fA)(0,0,1),this.quality=0}}function ct(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function ht(t,n,e){t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2]}function ut(t,n,e){t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2]}function ft(t,n,e){t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e}function lt(t,n,e=0){t[0]=n[e],t[1]=n[e+1],t[2]=n[e+2]}function dt(t,n,e){const r=n[0],s=n[1],a=n[2],i=e[0],o=e[1],c=e[2];t[0]=s*c-a*o,t[1]=a*i-r*c,t[2]=r*o-s*i}function mt(t,n){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];if(e>0){const r=1/Math.sqrt(e);t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r}}function Mt(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function _t(t,n){const e=n[0]-t[0],r=n[1]-t[1],s=n[2]-t[2];return e*e+r*r+s*s}function vt(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}class gt{constructor(t=h.uY,n=yt,e=o.zK){this._data=[t[0],t[1],t[2],n[0],n[1],n[2],e[0],e[1],e[2],e[3]]}clone(){return gt.fromData(this._data)}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){const n=new gt;return n._copyFromData(t),n}static fromJSON(t){return new gt(t.center,t.halfSize,t.quaternion)}copy(t){this._copyFromData(t.data)}_copyFromData(t){for(let n=0;n<10;++n)this._data[n]=t[n]}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}setCenter(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenterFromValues(t,n,e){this._data[0]=t,this._data[1]=n,this._data[2]=e}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}setHalfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}setHalfSizeFromValues(t,n,e){this._data[3]=t,this._data[4]=n,this._data[5]=e}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}getQuaternionConjugate(t){return t[0]=-this._data[6],t[1]=-this._data[7],t[2]=-this._data[8],t[3]=this._data[9],t}setQuaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){const n=this._data,e=(0,i.hZ)(bt,n[6],n[7],n[8],n[9]);for(let r=0;r<8;++r){const s=t[r];s[0]=(1&r?-1:1)*n[3],s[1]=(2&r?-1:1)*n[4],s[2]=(4&r?-1:1)*n[5],(0,c.gL)(s,s,e),s[0]+=n[0],s[1]+=n[1],s[2]+=n[2]}return t}getAxes(t){const n=this._data,e=(0,i.hZ)(bt,n[6],n[7],n[8],n[9]);return(0,c.gL)(t[0],[1,0,0],e),(0,c.gL)(t[1],[0,1,0],e),(0,c.gL)(t[2],[0,0,1],e),t}intersectsFrustum(t){const{centerX:n,centerY:e,centerZ:r}=this,s=t.planes;for(const t of s){const s=(0,v.Qj)(t),a=this.projectedRadius(s);if(n*s[0]+e*s[1]+r*s[2]+t[3]-a>0)return!1}const a=this.getAxes(Ht),i=t.points,o=this.getHalfSize(Nt);for(let t=0;t<3;++t){const s=a[t],h=-s[0]*n-s[1]*e-s[2]*r,u=o[t];let f=!0,l=!0;for(const t of i){const n=(0,c.Om)(t,s)+h;f&&=n>u,l&&=n<-u}if(f||l)return!1}if(this.getCorners(Rt).some(n=>t.intersectsPoint(n)))return!0;const h=Bt;for(let t=0;t<3;++t){const s=a[t];h[t]=s[0]*n+s[1]*e+s[2]*r}if(t.points.some(t=>(t=>{for(let n=0;n<3;++n){const e=a[n],r=o[n],s=e[0]*t[0]+e[1]*t[1]+e[2]*t[2]-h[n];if(s>r||s<-r)return!1}return!0})(t)))return!0;const u=t.lines,f=Dt;for(let t=0;t<8;++t){const s=u[t].direction;for(const t of a){(0,c.$A)(f,s,t);const a=(0,c.Il)(f);if(!(a>0))continue;(0,c.hs)(f,f,1/a);const o=this.projectedRadius(f),h=f[0]*n+f[1]*e+f[2]*r,u=h-o,l=h+o;let d=!1,m=!1,M=!0;for(const t of i){const n=(0,c.Om)(f,t);if(n>l){if(m){M=!1;break}d=!0}else{if(!(n<u)){M=!1;break}if(d){M=!1;break}m=!0}}if(M)return!1}}return!0}intersectsFrustumConservativeApproximation(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}intersectsFrustumConservativeApproximationWithMargin(t,n){return this.signedDistanceRangePlane(t[0]).min<=n&&this.signedDistanceRangePlane(t[1]).min<=n&&this.signedDistanceRangePlane(t[2]).min<=n&&this.signedDistanceRangePlane(t[3]).min<=n&&this.signedDistanceRangePlane(t[4]).min<=n&&this.signedDistanceRangePlane(t[5]).min<=n}get radius(){const t=this._data[3],n=this._data[4],e=this._data[5];return Math.sqrt(t*t+n*n+e*e)}intersectsPoint(t){const n=this.getAxes(Ht),e=this.getHalfSize(Nt),r=this.getCenter(Vt);for(let s=0;s<3;++s){const a=n[s],i=e[s],o=(0,c.Om)(a,t)-(0,c.Om)(a,r);if(o>i||o<-i)return!1}return!0}intersectSphere(t){const{center:n,radius:e}=t,r=this._data,s=r[3],a=r[4],i=r[5],o=s+a+i+e,c=r[0]-n[0];if(Math.abs(c)>o)return!1;const h=r[1]-n[1];if(Math.abs(h)>o)return!1;const u=r[2]-n[2];if(Math.abs(u)>o)return!1;const f=-r[6],l=-r[7],d=-r[8],m=l*u-d*h,M=d*c-f*u,_=f*h-l*c,v=l*_-d*M,g=d*m-f*_,b=f*M-l*m,P=2*r[9],j=Math.abs(c+m*P+2*v),p=Math.abs(h+M*P+2*g),w=Math.abs(u+_*P+2*b),x=j-Math.min(j,s),I=p-Math.min(p,a),S=w-Math.min(w,i);return x*x+I*I+S*S<=e*e}intersectSphereWithMBS(t,n=this.radius){const e=this._data,{center:r,radius:s}=t,a=n+s,i=e[0]-r[0];if(i>a)return!1;const o=e[1]-r[1];if(o>a)return!1;const c=e[2]-r[2];if(c>a)return!1;if(i*i+o*o+c*c>a*a)return!1;const h=-e[6],u=-e[7],f=-e[8],l=u*c-f*o,d=f*i-h*c,m=h*o-u*i,M=u*m-f*d,_=f*l-h*m,v=h*d-u*l,g=2*e[9],b=Math.abs(i+l*g+2*M),P=Math.abs(o+d*g+2*_),j=Math.abs(c+m*g+2*v),p=b-Math.min(b,e[3]),w=P-Math.min(P,e[4]),x=j-Math.min(j,e[5]);return p*p+w*w+x*x<s*s}intersectPlane(t){const n=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],e=this.projectedRadius((0,v.Qj)(t));return n>e?1:n<-e?-1:0}intersectRay(t,n,e=0){const r=this._data,s=bt;s[0]=-r[6],s[1]=-r[7],s[2]=-r[8],s[3]=r[9],pt[0]=t[0]-r[0],pt[1]=t[1]-r[1],pt[2]=t[2]-r[2];const a=(0,c.gL)(pt,pt,bt),i=(0,c.gL)(wt,n,bt);let o=-1/0,h=1/0;const u=this.getHalfSize(Nt);for(let t=0;t<3;t++){const n=a[t],r=i[t],s=u[t]+e;if(Math.abs(r)>1e-6){const t=(s-n)/r,e=(-s-n)/r;o=Math.max(o,Math.min(t,e)),h=Math.min(h,Math.max(t,e))}else if(n>s||n<-s)return!1}return o<=h}projectedArea(t,n,e,s){const a=this.getQuaternion(Pt);(0,i.Xr)(bt,a),pt[0]=t[0]-this._data[0],pt[1]=t[1]-this._data[1],pt[2]=t[2]-this._data[2],(0,c.gL)(pt,pt,bt);const o=this.getHalfSize(Nt),h=pt[0]<-o[0]?-1:pt[0]>o[0]?1:0,f=pt[1]<-o[1]?-1:pt[1]>o[1]?1:0,l=pt[2]<-o[2]?-1:pt[2]>o[2]?1:0,d=Math.abs(h)+Math.abs(f)+Math.abs(l);if(0===d)return 1/0;const m=1===d?4:6,M=6*(h+3*f+9*l+13);(0,r.I0)(Tt,a),(0,r.hs)(Tt,Tt,o);const _=this.getCenter(Vt);for(let t=0;t<m;t++){const e=At[M+t];(0,c.hZ)(pt,((1&e)<<1)-1,(2&e)-1,((4&e)>>1)-1),(0,c.ei)(pt,pt,Tt),(0,c.WQ)(xt,_,pt),xt[3]=1,(0,u.Z0)(xt,xt,n);const r=1/Math.max(1e-6,xt[3]);St[2*t]=xt[0]*r,St[2*t+1]=xt[1]*r}const v=2*m-2;let g=St[0]*(St[3]-St[v+1])+St[v]*(St[1]-St[v-1]);for(let t=2;t<v;t+=2)g+=St[t]*(St[t+3]-St[t-1]);return Math.abs(g)*e*s*.125}projectedRadius(t){const n=this._data;return(0,c.fw)(pt,t,-n[6],-n[7],-n[8],n[9]),Math.abs(pt[0]*n[3])+Math.abs(pt[1]*n[4])+Math.abs(pt[2]*n[5])}signedDistancePlane(t,n){const e=this._data,r=t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+n,s=this.projectedRadius(t);return r>s?r-s:r<-s?r+s:0}signedDistanceRangePlane(t){const n=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],e=this.projectedRadius((0,v.Qj)(t));return{min:n-e,max:n+e}}toAaBoundingBox(t){const n=this.getQuaternion(Pt),e=(0,r.I0)(Tt,n),s=this._data[3]*Math.abs(e[0])+this._data[4]*Math.abs(e[3])+this._data[5]*Math.abs(e[6]),a=this._data[3]*Math.abs(e[1])+this._data[4]*Math.abs(e[4])+this._data[5]*Math.abs(e[7]),i=this._data[3]*Math.abs(e[2])+this._data[4]*Math.abs(e[5])+this._data[5]*Math.abs(e[8]);t[0]=this._data[0]-s,t[1]=this._data[1]-a,t[2]=this._data[2]-i,t[3]=this._data[0]+s,t[4]=this._data[1]+a,t[5]=this._data[2]+i}transform(t,n,e,r=0,s=(0,d.lO)(e),a=(0,d.lO)(n),o=(0,_.jd)(n,a)){if(e===s)n.isGeographic?function(t,n,e,r,s=(0,d.lO)(e)){const a=(0,l.tO)(e),o=1+Math.max(0,r)/(a.radius+t.centerZ);t.getCenter(qt),qt[2]+=r,(0,M.projectBuffer)(qt,e,0,qt,s,0),n.setCenter(qt);const h=t.getQuaternion(Pt);n.setQuaternion(h),(0,i.Xr)(bt,h),(0,c.hZ)(Et,0,0,1),(0,c.gL)(Et,Et,bt);const u=t.getHalfSize(Nt);(0,c.hZ)(Et,u[0]*Math.abs(Et[0]),u[1]*Math.abs(Et[1]),u[2]*Math.abs(Et[2])),(0,c.hs)(Et,Et,a.inverseFlattening),(0,c.WQ)(Et,u,Et),n.setHalfSize((0,c.hs)(Et,Et,o))}(this,t,n,r,a):function(t,n,e,r,s=(0,d.lO)(e),a=(0,_.jd)(e,s)){t.getCorners(Rt);const o=t.getCenter(Vt);o[2]+=r,(0,m.l)(e,o,Ft,s),n.setCenterFromValues(Ft[12],Ft[13],Ft[14]);const h=2*Math.sqrt(1+Ft[0]+Ft[5]+Ft[10]);bt[0]=(Ft[6]-Ft[9])/h,bt[1]=(Ft[8]-Ft[2])/h,bt[2]=(Ft[1]-Ft[4])/h,bt[3]=.25*h;const u=t.getQuaternion(Pt);n.setQuaternion((0,i.lw)(bt,bt,u)),(0,i.Xr)(bt,bt),(0,c.hZ)(Lt,0,0,0);const f=n.getCenter(Vt);for(const t of Rt)t[2]+=r,a(t,0,t,0),(0,c.jb)(Et,t,f),(0,c.gL)(Et,Et,bt),(0,c.tn)(Et,Et),(0,c.T9)(Lt,Lt,Et);n.setHalfSize(Lt)}(this,t,n,r,a,o);else if(n.isGeographic&&(e.isWebMercator||(0,g.r1)(e)))!function(t,n,e,r,s){const a=n.getCenter(Vt);a[2]+=s;const i=(0,d.lO)(e);(0,M.projectBuffer)(a,t,0,a,i,0),zt(i,n,a,e,r)}(n,this,e,t,r);else if(n.isWebMercator&&(0,g.r1)(e))!function(t,n,e,r,s){const a=n.getCenter(Vt);a[2]+=s,zt(t,n,a,e,r)}(n,this,e,t,r);else{const s=this.getCenter(Vt);s[2]+=r,(0,M.projectBuffer)(s,n,0,s,e,0),t.setCenter(s),this!==t&&(t.setQuaternion(this.getQuaternion(Pt)),t.setHalfSize(this.getHalfSize(Nt)))}}}const bt=(0,o.vt)(),Pt=(0,o.vt)(),jt=(0,o.vt)(),pt=(0,h.vt)(),wt=(0,h.vt)(),xt=(0,f.vt)();function It(t,n=new gt){return function(t,n){const{data:e,size:r}=t,s=e.length/r;if(s<=0)return;const a=new it(t);ht(p,a.minProj,a.maxProj),ft(p,p,.5),ut(w,a.maxProj,a.minProj);const i=ct(w),o=new ot;o.quality=i,s<14&&(t=new P.K(new Float64Array(a.buffer,112,42),3));const c=(0,h.vt)(),u=(0,h.vt)(),f=(0,h.vt)(),l=(0,h.vt)(),d=(0,h.vt)(),m=(0,h.vt)(),M=(0,h.vt)();switch(x(a,t,M,c,u,f,l,d,m,o)){case 1:return void Y(p,w,n);case 2:return void $(t,l,n)}q(t,M,c,u,f,l,d,m,o),J(t,o.b0,o.b1,o.b2,K,G);const _=(0,h.vt)();ut(_,G,K),o.quality=ct(_),o.quality<i?at(o.b0,o.b1,o.b2,K,G,_,n):Y(p,w,n)}(t,n),n}const St=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],At=(()=>{const t=new Int8Array(162);let n=0;const e=e=>{for(let r=0;r<e.length;r++)t[n+r]=e[r];n+=6};return e([6,2,3,1,5,4]),e([0,2,3,1,5,4]),e([0,2,3,7,5,4]),e([0,1,3,2,6,4]),e([0,1,3,2,0,0]),e([0,1,5,7,3,2]),e([0,1,3,7,6,4]),e([0,1,3,7,6,2]),e([0,1,5,7,6,2]),e([0,1,5,4,6,2]),e([0,1,5,4,0,0]),e([0,1,3,7,5,4]),e([0,2,6,4,0,0]),e([0,0,0,0,0,0]),e([1,3,7,5,0,0]),e([2,3,7,6,4,0]),e([2,3,7,6,0,0]),e([2,3,1,5,7,6]),e([0,1,5,7,6,2]),e([0,1,5,7,6,4]),e([0,1,3,7,6,4]),e([4,5,7,6,2,0]),e([4,5,7,6,0,0]),e([4,5,1,3,7,6]),e([0,2,3,7,5,4]),e([6,2,3,7,5,4]),e([6,2,3,1,5,4]),t})();function Ct(t,n,e,r,s){const a=t.getQuaternion(Pt);s.setQuaternion(a),(0,i.Xr)(bt,a);const o=t.getCenter(Vt),u=t.getHalfSize(Nt);if(1===r){(0,c.gL)(Et,o,bt),(0,c.tn)(Lt,Et),(0,c.jk)(Zt,Lt,u),(0,c.jb)(Zt,Lt,Zt);const r=(0,c.Bw)(Zt);(0,c.WQ)(Zt,Lt,u);const a=(0,c.Bw)(Zt);if(r<e)s.setCenter(o),(0,c.hZ)(Et,e,e,e),s.setHalfSize((0,c.WQ)(Et,u,Et));else{const i=a>0?1+n/a:1,o=r>0?1+e/r:1,h=(o+i)/2,f=(o-i)/2;(0,c.hs)(Zt,Lt,f),s.setHalfSize((0,c.Ln)(Zt,Zt,u,h)),(0,c.hs)(Zt,Lt,h),(0,c.Ln)(Zt,Zt,u,f),(0,c._S)(Et,Et),(0,c.lw)(Et,Zt,Et);const l=t.getQuaternion(jt);s.setCenter((0,c.gL)(Et,Et,l))}}else{s.setCenter((0,c.Ln)(Et,o,h.Cb,(e+n)/2));const t=(0,c.gL)(Et,h.Cb,bt);(0,c.tn)(t,t),s.setHalfSize((0,c.Ln)(Lt,u,t,(e-n)/2))}return s}function zt(t,n,e,s,a){const i=n.getQuaternion(Pt),o=(0,r.I0)(Tt,i),c=n.getHalfSize(Nt);for(let t=0;t<8;++t){for(let n=0;n<3;++n)qt[n]=c[n]*(t&1<<n?-1:1);for(let n=0;n<3;++n){let r=e[n];for(let t=0;t<3;++t)r+=qt[t]*o[3*t+n];Ot[3*t+n]=r}}(0,M.projectBuffer)(Ot,t,0,Ot,s,0,8),It(Qt,a)}const yt=(0,h.CN)(-1,-1,-1),Ot=new Array(24),Qt=new P.K(Ot,3),qt=(0,h.vt)(),Vt=(0,h.vt)(),Nt=(0,h.vt)(),Tt=(0,s.vt)(),Ft=(0,a.vt)(),Rt=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],Ht=[(0,h.vt)(),(0,h.vt)(),(0,h.vt)()],Et=(0,h.vt)(),Lt=(0,h.vt)(),Zt=(0,h.vt)(),Dt=(0,h.vt)(),Bt=[0,0,0]},46610(t,n,e){e.d(n,{K:()=>r,n:()=>s});class r{constructor(t,n,e=n){this.data=t,this.size=n,this.stride=e}}class s extends r{constructor(t,n,e,r=!1,s=e){super(t,e,s),this.indices=n,this.exclusive=r}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7005],{82534(t,n,e){function r(){return[0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>s,vt:()=>r});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:s,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,a])},48163(t,n,e){function r(){return[0,0]}function s(t){return[t[0],t[1]]}function a(t,n){return[t,n]}function i(){return a(1,1)}function o(){return a(-1,-1)}function c(){return a(1,0)}function h(){return a(0,1)}e.d(n,{fA:()=>a,o8:()=>s,vt:()=>r});const u=i(),f=o(),l=c(),d=h();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:u,UNIT_X:l,UNIT_Y:d,ZEROS:[0,0],clone:s,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:a,negativeOnes:o,ones:i,unitX:c,unitY:h,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,f,"Un",0,u])},67026(t,n,e){e.d(n,{A6:()=>M,Xd:()=>u,Xr:()=>d,lw:()=>f,x8:()=>h});var r=e(29242),s=e(82534),a=e(51850),i=e(34304),o=e(35522),c=e(78955);function h(t,n,e){e*=.5;const r=Math.sin(e);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function u(t,n){const e=2*Math.acos(n[3]),r=Math.sin(e/2);return r>(0,i.FD)()?(t[0]=n[0]/r,t[1]=n[1]/r,t[2]=n[2]/r):(t[0]=1,t[1]=0,t[2]=0),e}function f(t,n,e){const r=n[0],s=n[1],a=n[2],i=n[3],o=e[0],c=e[1],h=e[2],u=e[3];return t[0]=r*u+i*o+s*h-a*c,t[1]=s*u+i*c+a*o-r*h,t[2]=a*u+i*h+r*c-s*o,t[3]=i*u-r*o-s*c-a*h,t}function l(t,n,e,r){const s=n[0],a=n[1],o=n[2],c=n[3];let h,u,f,l,d,m=e[0],M=e[1],_=e[2],v=e[3];return u=s*m+a*M+o*_+c*v,u<0&&(u=-u,m=-m,M=-M,_=-_,v=-v),1-u>(0,i.FD)()?(h=Math.acos(u),f=Math.sin(h),l=Math.sin((1-r)*h)/f,d=Math.sin(r*h)/f):(l=1-r,d=r),t[0]=l*s+d*m,t[1]=l*a+d*M,t[2]=l*o+d*_,t[3]=l*c+d*v,t}function d(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function m(t,n){const e=n[0]+n[4]+n[8];let r;if(e>0)r=Math.sqrt(e+1),t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r;else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const s=(e+1)%3,a=(e+2)%3;r=Math.sqrt(n[3*e+e]-n[3*s+s]-n[3*a+a]+1),t[e]=.5*r,r=.5/r,t[3]=(n[3*s+a]-n[3*a+s])*r,t[s]=(n[3*s+e]+n[3*e+s])*r,t[a]=(n[3*a+e]+n[3*e+a])*r}return t}function M(t,n,e,r){const s=.5*Math.PI/180;n*=s,e*=s,r*=s;const a=Math.sin(n),i=Math.cos(n),o=Math.sin(e),c=Math.cos(e),h=Math.sin(r),u=Math.cos(r);return t[0]=a*c*u-i*o*h,t[1]=i*o*u+a*c*h,t[2]=i*c*h-a*o*u,t[3]=i*c*u+a*o*h,t}const _=c.C,v=c.hZ,g=c.WQ,b=f,P=c.hs,j=c.Om,p=c.Cc,w=c.Bw,x=w,I=c.m3,S=I,A=c.S8,C=c.t2,z=c.aI,y=(0,a.vt)(),O=(0,a.fA)(1,0,0),Q=(0,a.fA)(0,1,0),q=(0,s.vt)(),V=(0,s.vt)(),N=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:g,calculateW:function(t,n){const e=n[0],r=n[1],s=n[2];return t[0]=e,t[1]=r,t[2]=s,t[3]=Math.sqrt(Math.abs(1-e*e-r*r-s*s)),t},conjugate:d,copy:_,dot:j,equals:z,exactEquals:C,fromEuler:M,fromMat3:m,getAxisAngle:u,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const e=n[0],r=n[1],s=n[2],a=n[3],i=e*e+r*r+s*s+a*a,o=i?1/i:0;return t[0]=-e*o,t[1]=-r*o,t[2]=-s*o,t[3]=a*o,t},len:x,length:w,lerp:p,mul:b,multiply:f,normalize:A,random:function(t){const n=i.Ov,e=n(),r=n(),s=n(),a=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=a*Math.sin(2*Math.PI*r),t[1]=a*Math.cos(2*Math.PI*r),t[2]=o*Math.sin(2*Math.PI*s),t[3]=o*Math.cos(2*Math.PI*s),t},rotateX:function(t,n,e){e*=.5;const r=n[0],s=n[1],a=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c+i*o,t[1]=s*c+a*o,t[2]=a*c-s*o,t[3]=i*c-r*o,t},rotateY:function(t,n,e){e*=.5;const r=n[0],s=n[1],a=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c-a*o,t[1]=s*c+i*o,t[2]=a*c+r*o,t[3]=i*c-s*o,t},rotateZ:function(t,n,e){e*=.5;const r=n[0],s=n[1],a=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c+s*o,t[1]=s*c-r*o,t[2]=a*c+i*o,t[3]=i*c-a*o,t},rotationTo:function(t,n,e){const r=(0,o.Om)(n,e);return r<-.999999?((0,o.$A)(y,O,n),(0,o.Il)(y)<1e-6&&(0,o.$A)(y,Q,n),(0,o.S8)(y,y),h(t,y,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.$A)(y,n,e),t[0]=y[0],t[1]=y[1],t[2]=y[2],t[3]=1+r,A(t,t))},scale:P,set:v,setAxes:function(t,n,e,r){const s=N;return s[0]=e[0],s[3]=e[1],s[6]=e[2],s[1]=r[0],s[4]=r[1],s[7]=r[2],s[2]=-n[0],s[5]=-n[1],s[8]=-n[2],A(t,m(t,s))},setAxisAngle:h,slerp:l,sqlerp:function(t,n,e,r,s,a){return l(q,n,s,a),l(V,e,r,a),l(t,q,V,2*a*(1-a)),t},sqrLen:S,squaredLength:I,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"})),e.d(n,["hZ",0,v,"t2",0,C])},48353(t,n,e){e.d(n,{l:()=>h});var r=e(34727),s=e(58083),a=e(51850);function i(t,n,e){const r=Math.sin(t),s=Math.cos(t),a=Math.sin(n),i=Math.cos(n),o=e;return o[0]=-r,o[4]=-a*s,o[8]=i*s,o[12]=0,o[1]=s,o[5]=-a*r,o[9]=i*r,o[13]=0,o[2]=0,o[6]=i,o[10]=a,o[14]=0,o[3]=0,o[7]=0,o[11]=0,o[15]=1,o}var o=e(49208),c=e(21325);function h(t,n,e,r){const a=(0,o.Tp)(t,r);if(null==a)return!1;const h=a.source.spatialReferenceId,m=a.dest.spatialReferenceId;if(h===m&&!u(m)&&(0!==h||(0,c.aI)(t,r)))return(0,s.kN)(e,n),!0;if(u(m)){const t=o.w5[h][10],r=o.w5[10][m];return null!=t&&null!=r&&(t(n,0,l,0),r(l,0,d,0),i(f*l[0],f*l[1],e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}const M=u(h);if((3===m||11===m||2===m||5===m)&&(2===h||M||3===h||5===h)){const t=o.w5[h][10],r=o.w5[10][m];return null!=t&&null!=r&&(t(n,0,l,0),r(l,0,d,0),M?function(t,n,e){i(t,n,e),(0,s.mg)(e,e)}(f*l[0],f*l[1],e):(0,s.D_)(e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}return!1}function u(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),l=(0,a.vt)(),d=(0,a.vt)()},27921(t,n,e){e.d(n,{$Q:()=>P,BX:()=>b,C:()=>o,Cr:()=>u,H:()=>p,O_:()=>h,Qj:()=>c,T7:()=>g,lU:()=>f,mN:()=>w,vE:()=>x,vt:()=>i});var r=e(34727),s=e(35522),a=e(51850);function i(t=I){return[t[0],t[1],t[2],t[3]]}function o(t,n){return function(t,n,e,r,s=i()){return s[0]=t,s[1]=n,s[2]=e,s[3]=r,s}(n[0],n[1],n[2],n[3],t)}function c(t){return t}function h(t,n,e){const r=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],s=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return e[0]=n[0]*s,e[1]=n[1]*s,e[2]=n[2]*s,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function u(t,n,e,r=i()){const s=e[0]-n[0],a=e[1]-n[1],o=e[2]-n[2],c=t[0]-n[0],h=t[1]-n[1],u=t[2]-n[2],f=a*u-o*h,l=o*c-s*u,d=s*h-a*c,m=f*f+l*l+d*d,M=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return r[0]=f*M,r[1]=l*M,r[2]=d*M,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function f(t,n,e,r=0,a=Math.floor(e*(1/3)),i=Math.floor(e*(2/3))){if(e<3)return!1;n(d,r);let o=a,c=!1;for(;o<e-1&&!c;)n(m,o),o++,c=!(0,s.t2)(d,m);if(!c)return!1;for(o=Math.max(o,i),c=!1;o<e&&!c;)n(M,o),o++,(0,s.Re)(_,d,m),(0,s.S8)(_,_),(0,s.Re)(v,m,M),(0,s.S8)(v,v),c=!(0,s.t2)(d,M)&&!(0,s.t2)(m,M)&&Math.abs((0,s.Om)(_,v))<l;return c?(u(d,m,M,t),!0):(0!==r||1!==a||2!==i)&&f(t,n,e,0,1,2)}e(78955),e(44280),e(32114),e(32728);const l=.99619469809,d=(0,a.vt)(),m=(0,a.vt)(),M=(0,a.vt)(),_=(0,a.vt)(),v=(0,a.vt)();function g(t,n,e){return function(t){return 0===t||1===t}(x(t,n.origin,n.vector,0,e))}function b(t,n){return w(t,n)>=0}function P(t,n){return function(t,n,e,r,a,i,o){const c=(0,s.Om)(t,e),h=w(t,n);if(c>-1e-6&&c<1e-6)return j(h,a,i);const u=-h/c,f=j(c,a,!1);return!(o&&!f&&!j(h,a,i))&&(f?u>r.c0&&(r.c0=u):u<r.c1&&(r.c1=u),r.c0<=r.c1)}(t,n.ray.origin,n.ray.direction,n,!1,!1,!0)}function j(t,n,e){return e?n?t>=0:t<=0:n?t>0:t<0}function p(t,n,e,r=!1){let a=n.at(-1),i=w(t,a),o=r?i>0:i<=0;for(let c=0;c<n.length;c++){const h=n.at(c),u=w(t,h),f=r?u>0:u<=0;o!==f&&(0,s.Cc)(e(),a,h,i/(i-u)),f&&(0,s.C)(e(),h),a=h,i=u,o=f}}function w(t,n){return(0,s.Om)(t,n)+t[3]}function x(t,n,e,a,i){const o=(0,s.Om)(t,e),c=w(t,n);if(0===o)return c>=0?2:3;let h=-c/o;return 1&a&&(h=(0,r.qE)(h,0,1)),!(4&a)&&h<0||!(8&a)&&h>1?c>=0?2:3:((0,s.WQ)(i,n,(0,s.hs)(i,e,h)),c>=0?0:1)}const I=[0,0,1,0];(0,a.vt)()},44280(t,n,e){e.d(n,{g7:()=>o,gr:()=>i});var r=e(34727),s=e(35522),a=e(51850);function i(t,n){return(0,s.Om)(t,n)/(0,s.Bw)(t)}function o(t,n){const e=(0,s.Om)(t,n)/((0,s.Bw)(t)*(0,s.Bw)(n));return-(0,r.XM)(e)}(0,a.vt)(),(0,a.vt)()},32114(t,n,e){e.d(n,{Rc:()=>d,rq:()=>f,Km:()=>l}),e(44208);var r=e(26390),s=e(29242),a=e(9093),i=e(82534),o=e(48163),c=e(51850),h=e(91829);class u{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new u(o.vt)}static createVec3f64(){return new u(c.vt)}static createVec4f64(){return new u(h.vt)}static createMat3f64(){return new u(s.vt)}static createMat4f64(){return new u(a.vt)}static createQuatf64(){return new u(i.vt)}get test(){}}u.createVec2f64();const f=u.createVec3f64(),l=u.createVec4f64(),d=(u.createMat3f64(),u.createMat4f64());u.createQuatf64()},32728(t,n,e){e.d(n,{YH:()=>i,nu:()=>o,wp:()=>a}),e(34727);var r=e(35522),s=e(51850);function a(t,n){const e=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),s=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),a=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,r.hZ)(t,e,s,a),t}function i(t,n,e){e=e||t;const s=(0,r.Om)(t,n);(0,r.hZ)(e,t[0]-s*n[0],t[1]-s*n[1],t[2]-s*n[2]),(0,r.S8)(e,e)}function o(t,n,e,a=(0,s.vt)()){const i=(0,r.Bw)(t),o=(0,r.Bw)(n),u=(0,r.Om)(t,n)/(i*o);if(u<.9999999999999999){const s=Math.acos(u),f=((1-e)*i+e*o)/Math.sin(s),l=f/i*Math.sin((1-e)*s),d=f/o*Math.sin(e*s);return(0,r.hs)(c,t,l),(0,r.hs)(h,n,d),(0,r.WQ)(a,c,h)}return(0,r.Cc)(a,t,n,e)}(0,s.vt)(),(0,s.vt)(),(0,s.vt)();const c=(0,s.vt)(),h=(0,s.vt)()},57005(t,n,e){e.d(n,{ab:()=>gt,gm:()=>Ct});var r=e(77690),s=e(29242),a=e(9093),i=e(67026),o=e(82534),c=e(35522),h=e(51850),u=e(78955),f=e(91829),l=e(73941),d=e(98764),m=e(48353),M=e(9762),_=e(49208),v=e(27921),g=e(21325),b=e(48163),P=e(46610);const j=1e-6,p=(0,h.vt)(),w=(0,h.vt)();function x(t,n,e,r,s,a,i,o,c,h){return function(t,n,e){let r=_t(t.maxVert[0],t.minVert[0]),s=0;for(let n=1;n<7;++n){const e=_t(t.maxVert[n],t.minVert[n]);e>r&&(r=e,s=n)}lt(n,t.minVert[s]),lt(e,t.maxVert[s])}(t,r,s),_t(r,s)<j?1:(ut(i,r,s),mt(i,i),function(t,n,e,r){const{data:s,size:a}=t;let i=Number.NEGATIVE_INFINITY,o=0;for(let t=0;t<s.length;t+=a){V[0]=s[t]-n[0],V[1]=s[t+1]-n[1],V[2]=s[t+2]-n[2];const r=e[0]*V[0]+e[1]*V[1]+e[2]*V[2],a=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],c=V[0]*V[0]+V[1]*V[1]+V[2]*V[2]-r*r/a;c>i&&(i=c,o=t)}return lt(r,s,o),i}(n,r,i,a)<j?2:(ut(o,s,a),mt(o,o),ut(c,a,r),mt(c,c),dt(e,o,i),mt(e,e),Z(n,e,i,o,c,h),0))}const I=(0,h.vt)(),S=(0,h.vt)(),A=(0,h.vt)(),C=(0,h.vt)(),z=(0,h.vt)(),y=(0,h.vt)(),O=(0,h.vt)(),Q=(0,h.vt)();function q(t,n,e,r,s,a,i,o,c){(function(t,n,e,r,s){!function(t,n,e,r,s){const{data:a,size:i}=t;lt(r,a),lt(s,r),e[0]=vt(B,n),e[1]=e[0];for(let t=i;t<a.length;t+=i){const i=a[t]*n[0]+a[t+1]*n[1]+a[t+2]*n[2];i<e[0]&&(e[0]=i,lt(r,a,t)),i>e[1]&&(e[1]=i,lt(s,a,t))}}(t,n,N,s,r);const a=vt(e,n);N[1]-j<=a&&(r[0]=void 0),N[0]+j>=a&&(s[0]=void 0)})(t,n,e,I,S),void 0!==I[0]&&(ut(A,I,e),mt(A,A),ut(C,I,r),mt(C,C),ut(z,I,s),mt(z,z),dt(y,C,a),mt(y,y),dt(O,z,i),mt(O,O),dt(Q,A,o),mt(Q,Q),Z(t,y,a,C,A,c),Z(t,O,i,z,C,c),Z(t,Q,o,A,z,c)),void 0!==S[0]&&(ut(A,S,e),mt(A,A),ut(C,S,r),mt(C,C),ut(z,S,s),mt(z,z),dt(y,C,a),mt(y,y),dt(O,z,i),mt(O,O),dt(Q,A,o),mt(Q,Q),Z(t,y,a,C,A,c),Z(t,O,i,z,C,c),Z(t,Q,o,A,z,c))}const V=[0,0,0],N=(0,b.vt)(),F=(0,h.vt)(),R=(0,h.vt)(),T=(0,h.vt)(),H=(0,h.vt)(),E=(0,h.vt)(),L=(0,h.vt)();function Z(t,n,e,r,s,a){if(Mt(n)<j)return;dt(F,e,n),dt(R,r,n),dt(T,s,n),D(t,n,N),E[1]=N[0],H[1]=N[1],L[1]=H[1]-E[1];const i=[e,r,s],o=[F,R,T];for(let e=0;e<3;++e){D(t,i[e],N),E[0]=N[0],H[0]=N[1],D(t,o[e],N),E[2]=N[0],H[2]=N[1],L[0]=H[0]-E[0],L[2]=H[2]-E[2];const r=ct(L);r<a.quality&&(lt(a.b0,i[e]),lt(a.b1,n),lt(a.b2,o[e]),a.quality=r)}}const B=(0,h.vt)();function D(t,n,e){const{data:r,size:s}=t;let a=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;const o=n[0],c=n[1],h=n[2];for(let t=0;t<r.length;t+=s){const n=r[t]*o+r[t+1]*c+r[t+2]*h;a=Math.min(a,n),i=Math.max(i,n)}e[0]=a,e[1]=i}function X(t,n,e){e.setCenter(t),e.setHalfSize((0,c.hs)(n,n,.5)),e.setQuaternion(o.zK)}const Y=(0,h.vt)(),W=(0,h.vt)(),k=(0,h.vt)(),K=(0,h.vt)(),G=(0,h.vt)(),U=(0,h.vt)();function $(t,n,e){lt(Y,n),Math.abs(n[0])>Math.abs(n[1])&&Math.abs(n[0])>Math.abs(n[2])?Y[0]=0:Math.abs(n[1])>Math.abs(n[2])?Y[1]=0:Y[2]=0,Mt(Y)<j&&(Y[0]=Y[1]=Y[2]=1),dt(W,n,Y),mt(W,W),dt(k,n,W),mt(k,k),J(t,n,W,k,K,G),ut(U,G,K),at(n,W,k,K,G,U,e)}function J(t,n,e,r,s,a){D(t,n,N),s[0]=N[0],a[0]=N[1],D(t,e,N),s[1]=N[0],a[1]=N[1],D(t,r,N),s[2]=N[0],a[2]=N[1]}const tt=(0,h.vt)(),nt=(0,h.vt)(),et=(0,h.vt)(),rt=(0,s.fA)(1,0,0,0,1,0,0,0,1),st=(0,o.vt)();function at(t,n,e,r,s,a,i){rt[0]=t[0],rt[1]=t[1],rt[2]=t[2],rt[3]=n[0],rt[4]=n[1],rt[5]=n[2],rt[6]=e[0],rt[7]=e[1],rt[8]=e[2],i.setQuaternion(function(t,n){const e=n[0]+n[4]+n[8];if(e>0){let r=Math.sqrt(e+1);t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r}else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const r=(e+1)%3,s=(e+2)%3;let a=Math.sqrt(n[3*e+e]-n[3*r+r]-n[3*s+s]+1);t[e]=.5*a,a=.5/a,t[3]=(n[3*r+s]-n[3*s+r])*a,t[r]=(n[3*r+e]+n[3*e+r])*a,t[s]=(n[3*s+e]+n[3*e+s])*a}return t}(st,rt)),ht(tt,r,s),ft(tt,tt,.5),ft(nt,t,tt[0]),ft(et,n,tt[1]),ht(nt,nt,et),ft(et,e,tt[2]),i.setCenter((0,c.WQ)(nt,nt,et)),i.setHalfSize((0,c.hs)(tt,a,.5))}class it{constructor(t){this.minVert=new Array(7),this.maxVert=new Array(7),this.buffer=new ArrayBuffer(448);let n=0;this.minProj=new Float64Array(this.buffer,n,7),n+=56,this.maxProj=new Float64Array(this.buffer,n,7),n+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.minProj[t]=Number.POSITIVE_INFINITY,this.maxProj[t]=Number.NEGATIVE_INFINITY;const e=new Array(7),r=new Array(7),{data:s,size:a}=t;for(let t=0;t<s.length;t+=a){let n=s[t];n<this.minProj[0]&&(this.minProj[0]=n,e[0]=t),n>this.maxProj[0]&&(this.maxProj[0]=n,r[0]=t),n=s[t+1],n<this.minProj[1]&&(this.minProj[1]=n,e[1]=t),n>this.maxProj[1]&&(this.maxProj[1]=n,r[1]=t),n=s[t+2],n<this.minProj[2]&&(this.minProj[2]=n,e[2]=t),n>this.maxProj[2]&&(this.maxProj[2]=n,r[2]=t),n=s[t]+s[t+1]+s[t+2],n<this.minProj[3]&&(this.minProj[3]=n,e[3]=t),n>this.maxProj[3]&&(this.maxProj[3]=n,r[3]=t),n=s[t]+s[t+1]-s[t+2],n<this.minProj[4]&&(this.minProj[4]=n,e[4]=t),n>this.maxProj[4]&&(this.maxProj[4]=n,r[4]=t),n=s[t]-s[t+1]+s[t+2],n<this.minProj[5]&&(this.minProj[5]=n,e[5]=t),n>this.maxProj[5]&&(this.maxProj[5]=n,r[5]=t),n=s[t]-s[t+1]-s[t+2],n<this.minProj[6]&&(this.minProj[6]=n,e[6]=t),n>this.maxProj[6]&&(this.maxProj[6]=n,r[6]=t)}for(let t=0;t<7;++t){let n=e[t];lt(this.minVert[t],s,n),n=r[t],lt(this.maxVert[t],s,n)}}}class ot{constructor(){this.b0=(0,h.fA)(1,0,0),this.b1=(0,h.fA)(0,1,0),this.b2=(0,h.fA)(0,0,1),this.quality=0}}function ct(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function ht(t,n,e){t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2]}function ut(t,n,e){t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2]}function ft(t,n,e){t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e}function lt(t,n,e=0){t[0]=n[e],t[1]=n[e+1],t[2]=n[e+2]}function dt(t,n,e){const r=n[0],s=n[1],a=n[2],i=e[0],o=e[1],c=e[2];t[0]=s*c-a*o,t[1]=a*i-r*c,t[2]=r*o-s*i}function mt(t,n){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];if(e>0){const r=1/Math.sqrt(e);t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r}}function Mt(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function _t(t,n){const e=n[0]-t[0],r=n[1]-t[1],s=n[2]-t[2];return e*e+r*r+s*s}function vt(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}class gt{constructor(t=h.uY,n=yt,e=o.zK){this._data=[t[0],t[1],t[2],n[0],n[1],n[2],e[0],e[1],e[2],e[3]]}clone(){return gt.fromData(this._data)}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){const n=new gt;return n._copyFromData(t),n}static fromJSON(t){return new gt(t.center,t.halfSize,t.quaternion)}copy(t){this._copyFromData(t.data)}_copyFromData(t){for(let n=0;n<10;++n)this._data[n]=t[n]}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}setCenter(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenterFromValues(t,n,e){this._data[0]=t,this._data[1]=n,this._data[2]=e}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}setHalfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}setHalfSizeFromValues(t,n,e){this._data[3]=t,this._data[4]=n,this._data[5]=e}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}getQuaternionConjugate(t){return t[0]=-this._data[6],t[1]=-this._data[7],t[2]=-this._data[8],t[3]=this._data[9],t}setQuaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){const n=this._data,e=(0,i.hZ)(bt,n[6],n[7],n[8],n[9]);for(let r=0;r<8;++r){const s=t[r];s[0]=(1&r?-1:1)*n[3],s[1]=(2&r?-1:1)*n[4],s[2]=(4&r?-1:1)*n[5],(0,c.gL)(s,s,e),s[0]+=n[0],s[1]+=n[1],s[2]+=n[2]}return t}getAxes(t){const n=this._data,e=(0,i.hZ)(bt,n[6],n[7],n[8],n[9]);return(0,c.gL)(t[0],[1,0,0],e),(0,c.gL)(t[1],[0,1,0],e),(0,c.gL)(t[2],[0,0,1],e),t}intersectsFrustum(t){const{centerX:n,centerY:e,centerZ:r}=this,s=t.planes;for(const t of s){const s=(0,v.Qj)(t),a=this.projectedRadius(s);if(n*s[0]+e*s[1]+r*s[2]+t[3]-a>0)return!1}const a=this.getAxes(Ht),i=t.points,o=this.getHalfSize(Nt);for(let t=0;t<3;++t){const s=a[t],h=-s[0]*n-s[1]*e-s[2]*r,u=o[t];let f=!0,l=!0;for(const t of i){const n=(0,c.Om)(t,s)+h;f&&=n>u,l&&=n<-u}if(f||l)return!1}if(this.getCorners(Tt).some(n=>t.intersectsPoint(n)))return!0;const h=Dt;for(let t=0;t<3;++t){const s=a[t];h[t]=s[0]*n+s[1]*e+s[2]*r}if(t.points.some(t=>(t=>{for(let n=0;n<3;++n){const e=a[n],r=o[n],s=e[0]*t[0]+e[1]*t[1]+e[2]*t[2]-h[n];if(s>r||s<-r)return!1}return!0})(t)))return!0;const u=t.lines,f=Bt;for(let t=0;t<8;++t){const s=u[t].direction;for(const t of a){(0,c.$A)(f,s,t);const a=(0,c.Il)(f);if(!(a>0))continue;(0,c.hs)(f,f,1/a);const o=this.projectedRadius(f),h=f[0]*n+f[1]*e+f[2]*r,u=h-o,l=h+o;let d=!1,m=!1,M=!0;for(const t of i){const n=(0,c.Om)(f,t);if(n>l){if(m){M=!1;break}d=!0}else{if(!(n<u)){M=!1;break}if(d){M=!1;break}m=!0}}if(M)return!1}}return!0}intersectsFrustumConservativeApproximation(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}intersectsFrustumConservativeApproximationWithMargin(t,n){return this.signedDistanceRangePlane(t[0]).min<=n&&this.signedDistanceRangePlane(t[1]).min<=n&&this.signedDistanceRangePlane(t[2]).min<=n&&this.signedDistanceRangePlane(t[3]).min<=n&&this.signedDistanceRangePlane(t[4]).min<=n&&this.signedDistanceRangePlane(t[5]).min<=n}get radius(){const t=this._data[3],n=this._data[4],e=this._data[5];return Math.sqrt(t*t+n*n+e*e)}intersectsPoint(t){const n=this.getAxes(Ht),e=this.getHalfSize(Nt),r=this.getCenter(Vt);for(let s=0;s<3;++s){const a=n[s],i=e[s],o=(0,c.Om)(a,t)-(0,c.Om)(a,r);if(o>i||o<-i)return!1}return!0}intersectSphere(t){const{center:n,radius:e}=t,r=this._data,s=r[3],a=r[4],i=r[5],o=s+a+i+e,c=r[0]-n[0];if(Math.abs(c)>o)return!1;const h=r[1]-n[1];if(Math.abs(h)>o)return!1;const u=r[2]-n[2];if(Math.abs(u)>o)return!1;const f=-r[6],l=-r[7],d=-r[8],m=l*u-d*h,M=d*c-f*u,_=f*h-l*c,v=l*_-d*M,g=d*m-f*_,b=f*M-l*m,P=2*r[9],j=Math.abs(c+m*P+2*v),p=Math.abs(h+M*P+2*g),w=Math.abs(u+_*P+2*b),x=j-Math.min(j,s),I=p-Math.min(p,a),S=w-Math.min(w,i);return x*x+I*I+S*S<=e*e}intersectSphereWithMBS(t,n=this.radius){const e=this._data,{center:r,radius:s}=t,a=n+s,i=e[0]-r[0];if(i>a)return!1;const o=e[1]-r[1];if(o>a)return!1;const c=e[2]-r[2];if(c>a)return!1;if(i*i+o*o+c*c>a*a)return!1;const h=-e[6],u=-e[7],f=-e[8],l=u*c-f*o,d=f*i-h*c,m=h*o-u*i,M=u*m-f*d,_=f*l-h*m,v=h*d-u*l,g=2*e[9],b=Math.abs(i+l*g+2*M),P=Math.abs(o+d*g+2*_),j=Math.abs(c+m*g+2*v),p=b-Math.min(b,e[3]),w=P-Math.min(P,e[4]),x=j-Math.min(j,e[5]);return p*p+w*w+x*x<s*s}intersectPlane(t){const n=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],e=this.projectedRadius((0,v.Qj)(t));return n>e?1:n<-e?-1:0}intersectRay(t,n,e=0){const r=this._data,s=bt;s[0]=-r[6],s[1]=-r[7],s[2]=-r[8],s[3]=r[9],pt[0]=t[0]-r[0],pt[1]=t[1]-r[1],pt[2]=t[2]-r[2];const a=(0,c.gL)(pt,pt,bt),i=(0,c.gL)(wt,n,bt);let o=-1/0,h=1/0;const u=this.getHalfSize(Nt);for(let t=0;t<3;t++){const n=a[t],r=i[t],s=u[t]+e;if(Math.abs(r)>1e-6){const t=(s-n)/r,e=(-s-n)/r;o=Math.max(o,Math.min(t,e)),h=Math.min(h,Math.max(t,e))}else if(n>s||n<-s)return!1}return o<=h}projectedArea(t,n,e,s){const a=this.getQuaternion(Pt);(0,i.Xr)(bt,a),pt[0]=t[0]-this._data[0],pt[1]=t[1]-this._data[1],pt[2]=t[2]-this._data[2],(0,c.gL)(pt,pt,bt);const o=this.getHalfSize(Nt),h=pt[0]<-o[0]?-1:pt[0]>o[0]?1:0,f=pt[1]<-o[1]?-1:pt[1]>o[1]?1:0,l=pt[2]<-o[2]?-1:pt[2]>o[2]?1:0,d=Math.abs(h)+Math.abs(f)+Math.abs(l);if(0===d)return 1/0;const m=1===d?4:6,M=6*(h+3*f+9*l+13);(0,r.I0)(Ft,a),(0,r.hs)(Ft,Ft,o);const _=this.getCenter(Vt);for(let t=0;t<m;t++){const e=At[M+t];(0,c.hZ)(pt,((1&e)<<1)-1,(2&e)-1,((4&e)>>1)-1),(0,c.ei)(pt,pt,Ft),(0,c.WQ)(xt,_,pt),xt[3]=1,(0,u.Z0)(xt,xt,n);const r=1/Math.max(1e-6,xt[3]);St[2*t]=xt[0]*r,St[2*t+1]=xt[1]*r}const v=2*m-2;let g=St[0]*(St[3]-St[v+1])+St[v]*(St[1]-St[v-1]);for(let t=2;t<v;t+=2)g+=St[t]*(St[t+3]-St[t-1]);return Math.abs(g)*e*s*.125}projectedRadius(t){const n=this._data;return(0,c.fw)(pt,t,-n[6],-n[7],-n[8],n[9]),Math.abs(pt[0]*n[3])+Math.abs(pt[1]*n[4])+Math.abs(pt[2]*n[5])}signedDistancePlane(t,n){const e=this._data,r=t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+n,s=this.projectedRadius(t);return r>s?r-s:r<-s?r+s:0}signedDistanceRangePlane(t){const n=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],e=this.projectedRadius((0,v.Qj)(t));return{min:n-e,max:n+e}}toAaBoundingBox(t){const n=this.getQuaternion(Pt),e=(0,r.I0)(Ft,n),s=this._data[3]*Math.abs(e[0])+this._data[4]*Math.abs(e[3])+this._data[5]*Math.abs(e[6]),a=this._data[3]*Math.abs(e[1])+this._data[4]*Math.abs(e[4])+this._data[5]*Math.abs(e[7]),i=this._data[3]*Math.abs(e[2])+this._data[4]*Math.abs(e[5])+this._data[5]*Math.abs(e[8]);t[0]=this._data[0]-s,t[1]=this._data[1]-a,t[2]=this._data[2]-i,t[3]=this._data[0]+s,t[4]=this._data[1]+a,t[5]=this._data[2]+i}transform(t,n,e,r=0,s=(0,d.lO)(e),a=(0,d.lO)(n),o=(0,_.jd)(n,a)){if(e===s)n.isGeographic?function(t,n,e,r,s=(0,d.lO)(e)){const a=(0,l.tO)(e),o=1+Math.max(0,r)/(a.radius+t.centerZ);t.getCenter(qt),qt[2]+=r,(0,M.projectBuffer)(qt,e,0,qt,s,0),n.setCenter(qt);const h=t.getQuaternion(Pt);n.setQuaternion(h),(0,i.Xr)(bt,h),(0,c.hZ)(Et,0,0,1),(0,c.gL)(Et,Et,bt);const u=t.getHalfSize(Nt);(0,c.hZ)(Et,u[0]*Math.abs(Et[0]),u[1]*Math.abs(Et[1]),u[2]*Math.abs(Et[2])),(0,c.hs)(Et,Et,a.inverseFlattening),(0,c.WQ)(Et,u,Et),n.setHalfSize((0,c.hs)(Et,Et,o))}(this,t,n,r,a):function(t,n,e,r,s=(0,d.lO)(e),a=(0,_.jd)(e,s)){t.getCorners(Tt);const o=t.getCenter(Vt);o[2]+=r,(0,m.l)(e,o,Rt,s),n.setCenterFromValues(Rt[12],Rt[13],Rt[14]);const h=2*Math.sqrt(1+Rt[0]+Rt[5]+Rt[10]);bt[0]=(Rt[6]-Rt[9])/h,bt[1]=(Rt[8]-Rt[2])/h,bt[2]=(Rt[1]-Rt[4])/h,bt[3]=.25*h;const u=t.getQuaternion(Pt);n.setQuaternion((0,i.lw)(bt,bt,u)),(0,i.Xr)(bt,bt),(0,c.hZ)(Lt,0,0,0);const f=n.getCenter(Vt);for(const t of Tt)t[2]+=r,a(t,0,t,0),(0,c.jb)(Et,t,f),(0,c.gL)(Et,Et,bt),(0,c.tn)(Et,Et),(0,c.T9)(Lt,Lt,Et);n.setHalfSize(Lt)}(this,t,n,r,a,o);else if(n.isGeographic&&(e.isWebMercator||(0,g.r1)(e)))!function(t,n,e,r,s){const a=n.getCenter(Vt);a[2]+=s;const i=(0,d.lO)(e);(0,M.projectBuffer)(a,t,0,a,i,0),zt(i,n,a,e,r)}(n,this,e,t,r);else if(n.isWebMercator&&(0,g.r1)(e))!function(t,n,e,r,s){const a=n.getCenter(Vt);a[2]+=s,zt(t,n,a,e,r)}(n,this,e,t,r);else{const s=this.getCenter(Vt);s[2]+=r,(0,M.projectBuffer)(s,n,0,s,e,0),t.setCenter(s),this!==t&&(t.setQuaternion(this.getQuaternion(Pt)),t.setHalfSize(this.getHalfSize(Nt)))}}}const bt=(0,o.vt)(),Pt=(0,o.vt)(),jt=(0,o.vt)(),pt=(0,h.vt)(),wt=(0,h.vt)(),xt=(0,f.vt)();function It(t,n=new gt){return function(t,n){const{data:e,size:r}=t,s=e.length/r;if(s<=0)return;const a=new it(t);ht(p,a.minProj,a.maxProj),ft(p,p,.5),ut(w,a.maxProj,a.minProj);const i=ct(w),o=new ot;o.quality=i,s<14&&(t=new P.K(new Float64Array(a.buffer,112,42),3));const c=(0,h.vt)(),u=(0,h.vt)(),f=(0,h.vt)(),l=(0,h.vt)(),d=(0,h.vt)(),m=(0,h.vt)(),M=(0,h.vt)();switch(x(a,t,M,c,u,f,l,d,m,o)){case 1:return void X(p,w,n);case 2:return void $(t,l,n)}q(t,M,c,u,f,l,d,m,o),J(t,o.b0,o.b1,o.b2,K,G);const _=(0,h.vt)();ut(_,G,K),o.quality=ct(_),o.quality<i?at(o.b0,o.b1,o.b2,K,G,_,n):X(p,w,n)}(t,n),n}const St=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],At=(()=>{const t=new Int8Array(162);let n=0;const e=e=>{for(let r=0;r<e.length;r++)t[n+r]=e[r];n+=6};return e([6,2,3,1,5,4]),e([0,2,3,1,5,4]),e([0,2,3,7,5,4]),e([0,1,3,2,6,4]),e([0,1,3,2,0,0]),e([0,1,5,7,3,2]),e([0,1,3,7,6,4]),e([0,1,3,7,6,2]),e([0,1,5,7,6,2]),e([0,1,5,4,6,2]),e([0,1,5,4,0,0]),e([0,1,3,7,5,4]),e([0,2,6,4,0,0]),e([0,0,0,0,0,0]),e([1,3,7,5,0,0]),e([2,3,7,6,4,0]),e([2,3,7,6,0,0]),e([2,3,1,5,7,6]),e([0,1,5,7,6,2]),e([0,1,5,7,6,4]),e([0,1,3,7,6,4]),e([4,5,7,6,2,0]),e([4,5,7,6,0,0]),e([4,5,1,3,7,6]),e([0,2,3,7,5,4]),e([6,2,3,7,5,4]),e([6,2,3,1,5,4]),t})();function Ct(t,n,e,r,s){const a=t.getQuaternion(Pt);s.setQuaternion(a),(0,i.Xr)(bt,a);const o=t.getCenter(Vt),u=t.getHalfSize(Nt);if(1===r){(0,c.gL)(Et,o,bt),(0,c.tn)(Lt,Et),(0,c.jk)(Zt,Lt,u),(0,c.jb)(Zt,Lt,Zt);const r=(0,c.Bw)(Zt);(0,c.WQ)(Zt,Lt,u);const a=(0,c.Bw)(Zt);if(r<e)s.setCenter(o),(0,c.hZ)(Et,e,e,e),s.setHalfSize((0,c.WQ)(Et,u,Et));else{const i=a>0?1+n/a:1,o=r>0?1+e/r:1,h=(o+i)/2,f=(o-i)/2;(0,c.hs)(Zt,Lt,f),s.setHalfSize((0,c.Ln)(Zt,Zt,u,h)),(0,c.hs)(Zt,Lt,h),(0,c.Ln)(Zt,Zt,u,f),(0,c._S)(Et,Et),(0,c.lw)(Et,Zt,Et);const l=t.getQuaternion(jt);s.setCenter((0,c.gL)(Et,Et,l))}}else{s.setCenter((0,c.Ln)(Et,o,h.Cb,(e+n)/2));const t=(0,c.gL)(Et,h.Cb,bt);(0,c.tn)(t,t),s.setHalfSize((0,c.Ln)(Lt,u,t,(e-n)/2))}return s}function zt(t,n,e,s,a){const i=n.getQuaternion(Pt),o=(0,r.I0)(Ft,i),c=n.getHalfSize(Nt);for(let t=0;t<8;++t){for(let n=0;n<3;++n)qt[n]=c[n]*(t&1<<n?-1:1);for(let n=0;n<3;++n){let r=e[n];for(let t=0;t<3;++t)r+=qt[t]*o[3*t+n];Ot[3*t+n]=r}}(0,M.projectBuffer)(Ot,t,0,Ot,s,0,8),It(Qt,a)}const yt=(0,h.CN)(-1,-1,-1),Ot=new Array(24),Qt=new P.K(Ot,3),qt=(0,h.vt)(),Vt=(0,h.vt)(),Nt=(0,h.vt)(),Ft=(0,s.vt)(),Rt=(0,a.vt)(),Tt=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],Ht=[(0,h.vt)(),(0,h.vt)(),(0,h.vt)()],Et=(0,h.vt)(),Lt=(0,h.vt)(),Zt=(0,h.vt)(),Bt=(0,h.vt)(),Dt=[0,0,0]},46610(t,n,e){e.d(n,{K:()=>r,n:()=>s});class r{constructor(t,n,e=n){this.data=t,this.size=n,this.stride=e}}class s extends r{constructor(t,n,e,r=!1,s=e){super(t,e,s),this.indices=n,this.exclusive=r}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8692,8768],{28692(e,t,i){i.r(t);var a=i(32198),s=i(67996),r=i(7762),n=i(49186),o=i(53966),l=i(91869),d=i(25728),h=i(17676),p=i(36708),u=i(84952),y=i(13069),c=i(91429),g=i(35666),f=i(4146),m=i(24137),w=i(62796),M=i(40736),b=i(18768),T=i(63074),v=i(69208),_=i(34287),D=i(8303),I=i(54310),A=i(25036),C=i(10873),L=i(54628),P=i(53902),S=i(97159),k=i(56400),E=i(36005),N=i(43937);let G=class extends((0,T.dM)((0,A.j)((0,I.J)((0,b.b)((0,_.q)((0,D.A)((0,d.M)((0,v.d)(f.A))))))))){constructor(e){super(e),this._graphTypeLookup=new Map,this._namedTypesModified=!1,this._idMapCreationDate=null,this.dataManager=null,this.definitionSetMap=null,this.knowledgeGraph=null,this.layers=new(r.A.ofType(w.A)),this.memberEntityTypes=null,this.memberRelationshipTypes=null,this.operationalLayerType="KnowledgeGraphLayer",this.sublayerIdsCache=new Map,this.tables=new(r.A.ofType(w.A)),this.type="knowledge-graph",this.url=null,!e?.title&&e?.url&&(this.title=(0,M.$L)(e.url)),this.addHandles((0,p.wB)(()=>this.layers.concat(this.tables),(e,t)=>this._handleSublayersChange(e,t),p.OH))}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){try{await this.loadFromPortal({supportedTypes:["Knowledge Graph Layer"]},e)}catch(e){(0,h.QP)(e)}await this._fetchMetadata(e),await this._initializeLayerProperties(e),this.loadLayerAssumingLocalCache(),this._layersLoadedFromAuthoritativeItem()||await(0,M.qN)(this)}async _fetchMetadata(e){if(!this.url)throw new n.A("knowledge-graph:missing-url","KnowledgeGraphLayer must be created with a url");const t=await(0,P.fetchKnowledgeGraph)(this.url);this.knowledgeGraph=t;const{edit:i,fullEdit:a,updateItem:s}=await(0,M.N1)(t.serviceDefinition.serviceItemId,this.url,e);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",a),this._set("userHasUpdateItemPrivileges",s),this.read({dateFieldsTimeReference:t.serviceDefinition.dateFieldsTimeReference},{origin:"service"}),this._forEachGraphType(e=>{e.name&&this._graphTypeLookup.set(e.name,e)})}async _initializeLayerProperties(e){7===this.originIdOf("inclusionModeDefinition")?this._validateInclusionModeDefinition():await this._initializeInclusionModeDefinition(e),this._setMemberTypes(),this.dataManager=new m.P({knowledgeGraph:this.knowledgeGraph,inclusionModeDefinition:this.inclusionModeDefinition})}async _initializeInclusionModeDefinition(e){const t=this.definitionSetMap;if(t){const e=(0,S.c)(t),i=e?await(0,L.lV)([t],e):null;this._idMapCreationDate=i?.get(t)??null}const i=t?await(0,s.cZ)(t,!0,e?.signal?{signal:e.signal}:void 0):{generateAllSublayers:!0,namedTypeDefinitions:new Map};[...this.layers.toArray(),...this.tables.toArray()].forEach(e=>{const t=this._graphTypeLookup.get(e.graphTypeName);t&&!i.namedTypeDefinitions.has(t.name)&&i.namedTypeDefinitions.set(t.name,{useAllData:!0})}),this.setAtOrigin("inclusionModeDefinition",i,(0,g.OL)(this.originIdOf("definitionSetMap")))}_validateInclusionModeDefinition(){const{inclusionModeDefinition:e}=this;if(!e)return;const{namedTypeDefinitions:t}=e;if(t?.size>0)t.forEach((e,i)=>{const a=this._graphTypeLookup.get(i);if(!a)return o.A.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't in the data model and will be removed`),void t.delete(i);"relationship"!==a.type&&"entity"!==a.type&&(o.A.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't properly modeled and will be removed`),t.delete(i))});else if(!e.generateAllSublayers)throw new n.A("knowledge-graph:composite-layer-constructor","If an explicit inclusion definition is defined, at least one namedTypeDefinition must also be defined")}_setMemberTypes(){let e=[],t=[];const{inclusionModeDefinition:i}=this,a=i?.namedTypeDefinitions;!i||i.generateAllSublayers?(e=this.knowledgeGraph.dataModel?.entityTypes??[],t=this.knowledgeGraph.dataModel?.relationshipTypes??[]):a&&a.size>0&&a.forEach((i,a)=>{const s=this._graphTypeLookup.get(a);switch(s?.type){case"relationship":t.push(s);break;case"entity":e.push(s)}}),this.memberEntityTypes=e,this.memberRelationshipTypes=t}_forEachGraphType(e){[...this.knowledgeGraph.dataModel?.entityTypes??[],...this.knowledgeGraph.dataModel?.relationshipTypes??[]].forEach(t=>{e(t)})}_refreshNamedTypes(){this._namedTypesModified=!0;for(const e of this.layers)e.emit("refresh",{dataChanged:!0});for(const e of this.tables)e.emit("refresh",{dataChanged:!0})}async _handleNewRecords(e){const t=new Set,i=[];for(const a of e)this._graphTypeLookup.has(a.typeName)&&(!1===this.layers.concat(this.tables).some(e=>e.objectType.name===a.typeName)&&(this.dataManager.sublayerCaches.set(a.typeName,new Map),t.add(a.typeName)),(0,l.tE)(this.sublayerIdsCache,a.typeName,()=>new Set).add(a.id),i.push(a));this.dataManager.addToLayer(i);for(const e of t){const t=this._graphTypeLookup.get(e);t&&(this._addSublayer(t),"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e))}await(0,M.qN)(this,Array.from(t)),this._refreshNamedTypes()}_createSublayers(e,t,i){e.forEach(e=>{const a=this._createSublayer(e);i(a)&&t.push(a),this._updateSublayerCaches(e)})}_addSublayer(e){const t=this._createSublayer(e);return t.geometryType?this.layers.push(t):this.tables.push(t),t}_createSublayer(e){return new w.A({objectType:e,parentCompositeLayer:this,graphType:e.type})}_updateSublayers(e,t){t.forEach(t=>{t.parentCompositeLayer=this;const i=e.find(e=>e.type===t.graphType&&e.name===t.graphTypeName);i&&(t.objectType=i,this._updateSublayerCaches(i))})}_updateSublayerCaches({name:e}){if(!e)return;const t=this.dataManager.sublayerCaches;t.has(e)||t.set(e,new Map)}_saveUrlAsNewResource(e,t,i,a){return async function(e){const t=await(0,s.fe)(e);return new Blob([t],{type:"application/x-protobuf"})}(this.inclusionModeDefinition).then(s=>{const r=function(e){const t=`definitionSetMap-${(0,y.lk)()}.dat`,i=(0,u.fj)("knowledgeGraphLayer",t);return e.resourceFromPath(i)}(a);e[t]=r.itemRelativeUrl,i.toAdd.push({resource:r,content:{type:"blob",blob:s},compress:!1,finish:e=>{this.definitionSetMap=e.url}})})}_displaysAllRecords(e){for(const[,{useAllData:t}]of e.namedTypeDefinitions)if(!t)return!1;return!0}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner")),e&&(e.forEach(e=>{e.parent=this}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this}),e.on("after-remove",({item:e})=>{e.parent=null})],"sublayers-owner"))}_layersLoadedFromAuthoritativeItem(){const e=this.originIdOf("layers");return e>=3&&e<7}async _checkResourceSafety(e,t,i,a,s,r){if(!await(0,L.zI)(e??"",s?.itemUrl??"",this._idMapCreationDate))return this._saveUrlAsNewResource(t,i,a,s);const n=(0,S.t)(e,r);if((0,u.oP)(n))return this._saveUrlAsNewResource(t,i,a,s);t[i]=n}readDefinitionSetMap(e,t,i){return(0,S.f)(e,i)}writeDefinitionSetMap(e,t,i,a){const s=a?.portalItem,r=a?.resources,n=(0,g.aB)(a?.origin);if(!s||!r||null==n)return void(e&&(t[i]=(0,S.t)(e,a)));const{inclusionModeDefinition:o}=this;if(!o||this._displaysAllRecords(o))return void(this.definitionSetMap=null);const l=this.originIdOf("inclusionModeDefinition");if(7===l||this._namedTypesModified||n<l)return t[i]="<pending>",void r.pendingOperations.push(this._saveUrlAsNewResource(t,i,r,s));n===l&&e&&(t[i]="<pending>",r.pendingOperations.push(this._checkResourceSafety(e,t,i,r,s,a)))}set inclusionModeDefinition(e){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("inclusionModeDefinition",e):o.A.getLogger(this).error("#inclusionModeDefinition","inclusionModeDefinition cannot be changed after the layer is loaded.")}get sublayerCapabilities(){return(0,M.hZ)(this.knowledgeGraph)}loadLayerAssumingLocalCache(){const e=[...this.memberEntityTypes,...this.memberRelationshipTypes];this.layers.length||0===this.originIdOf("tables")?0===this.originIdOf("layers")?this._createSublayers(e,this.layers,e=>!!e.geometryType):this._updateSublayers(e,this.layers):this.layers=new r.A,this.tables.length||0===this.originIdOf("layers")?0===this.originIdOf("tables")?this._createSublayers(e,this.tables,e=>!e.geometryType):this._updateSublayers(e,this.tables):this.tables=new r.A,this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach((e,t)=>{const i=(0,l.tE)(this.sublayerIdsCache,t,()=>new Set);e.members?.forEach(e=>{i.add(e.id)})})}async addRecords(e){await this.load(),await this._handleNewRecords(e)}async createSublayerForNamedType(e){await this.load();const t=this._graphTypeLookup.get(e);if(!t)throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");if(this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type already exists as a sublayer.");this.dataManager.sublayerCaches.set(e,new Map),(0,l.tE)(this.sublayerIdsCache,e,()=>new Set);const i=this._addSublayer(t);return"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),this.dataManager.inclusionModeDefinition&&this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!0}),await(0,M.qN)(this,[e]),this._refreshNamedTypes(),i}convertSublayerToDynamicData(e){if(!this.dataManager.inclusionModeDefinition)throw new n.A("knowledge-graph:fully-dynamic-membership","This Knowledge Graph Layer already uses fully dynamic membership, individual sublayers cannot be converted");if(!this._graphTypeLookup.get(e))throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");if(!this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type does not exist as a sublayer.");const t=this.dataManager.inclusionModeDefinition.namedTypeDefinitions.get(e);t?.useAllData?o.A.getLogger(this).warn("This Knowledge Graph Layer already uses dynamic membership for the sublayer - no conversion was made"):(this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!0}),this.sublayerIdsCache.delete(e),this._refreshNamedTypes())}convertSublayerToExplicitMembership(e){if(!this.dataManager.inclusionModeDefinition)throw new n.A("knowledge-graph:fully-dynamic-membership","This Knowledge Graph Layer already uses fully dynamic membership, individual sublayers cannot be converted");if(!this._graphTypeLookup.get(e))throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");const t=this.dataManager.inclusionModeDefinition.namedTypeDefinitions.get(e);if(!t||t.useAllData){if(!this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type does not exist as a sublayer.");this.sublayerIdsCache.set(e,new Set),this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),this._refreshNamedTypes()}else o.A.getLogger(this).warn("This Knowledge Graph Layer already uses explicit membership for the sublayer - no conversion was made")}convertToFullyDynamicData(){this.dataManager.inclusionModeDefinition?(this.sublayerIdsCache.clear(),this.dataManager.inclusionModeDefinition=null,this._set("inclusionModeDefinition",this.dataManager.inclusionModeDefinition),this._refreshNamedTypes()):o.A.getLogger(this).warn("This Knowledge Graph Layer already uses fully dynamic membership - no conversion was made")}convertToExplicitMembership(){if(this.dataManager.inclusionModeDefinition&&this.dataManager.inclusionModeDefinition.namedTypeDefinitions.size>0&&[...this.dataManager.inclusionModeDefinition.namedTypeDefinitions.values()].every(e=>!1===e.useAllData))o.A.getLogger(this).warn("This Knowledge Graph Layer already uses explicit membership - no conversion was made");else{this.dataManager.inclusionModeDefinition={generateAllSublayers:!1,namedTypeDefinitions:new Map};for(const e of this.dataManager.sublayerCaches.keys())(0,l.tE)(this.sublayerIdsCache,e,()=>new Set),this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map});this._set("inclusionModeDefinition",this.dataManager.inclusionModeDefinition),this._refreshNamedTypes()}}async removeRecords(e){await this.load();const t=[];for(const i of e)!1===this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(i.typeName)?.useAllData&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(i.typeName)?.members?.has(i.id)&&t.push(i);this.dataManager.removeFromLayer(t);for(const e of t)this.sublayerIdsCache.get(e.typeName)?.delete(e.id);return this._refreshNamedTypes(),t}};(0,a.Cg)([(0,c.MZ)()],G.prototype,"dataManager",void 0),(0,a.Cg)([(0,c.MZ)({json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],G.prototype,"definitionSetMap",void 0),(0,a.Cg)([(0,E.w)("definitionSetMap")],G.prototype,"readDefinitionSetMap",null),(0,a.Cg)([(0,N.K)("definitionSetMap")],G.prototype,"writeDefinitionSetMap",null),(0,a.Cg)([(0,c.MZ)()],G.prototype,"inclusionModeDefinition",null),(0,a.Cg)([(0,c.MZ)()],G.prototype,"knowledgeGraph",void 0),(0,a.Cg)([(0,c.MZ)({type:r.A.ofType(w.A),json:{write:{ignoreOrigin:!0}}})],G.prototype,"layers",void 0),(0,a.Cg)([(0,c.MZ)()],G.prototype,"memberEntityTypes",void 0),(0,a.Cg)([(0,c.MZ)()],G.prototype,"memberRelationshipTypes",void 0),(0,a.Cg)([(0,c.MZ)({type:["KnowledgeGraphLayer"]})],G.prototype,"operationalLayerType",void 0),(0,a.Cg)([(0,c.MZ)()],G.prototype,"sublayerCapabilities",null),(0,a.Cg)([(0,c.MZ)()],G.prototype,"sublayerIdsCache",void 0),(0,a.Cg)([(0,c.MZ)({type:r.A.ofType(w.A),json:{write:{ignoreOrigin:!0}}})],G.prototype,"tables",void 0),(0,a.Cg)([(0,c.MZ)({json:{read:!1}})],G.prototype,"type",void 0),(0,a.Cg)([(0,c.MZ)(C.OZ)],G.prototype,"url",void 0),(0,a.Cg)([(0,c.MZ)((0,k.P6)("dateFieldsTimeReference"))],G.prototype,"dateFieldsTimeZone",void 0),G=(0,a.Cg)([(0,c.$K)("esri.layers.KnowledgeGraphLayer")],G);const U=G;i.d(t,["default",0,U])},18768(e,t,i){var a=i(32198),s=i(53966),r=i(91429),n=i(60694);i.d(t,["b",0,e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,n.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,n.Jf)(e,s.A.getLogger(this)))}};return(0,a.Cg)([(0,r.MZ)()],i.prototype,"title",null),(0,a.Cg)([(0,r.MZ)({type:String})],i.prototype,"url",null),i=(0,a.Cg)([(0,r.$K)("esri.layers.mixins.ArcGISService")],i),i}])},69208(e,t,i){var a=i(32198),s=i(91429);i.d(t,["d",0,e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,a.Cg)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,a.Cg)([(0,s.$K)("esri.layers.mixins.CustomParametersMixin")],i),i}])},8303(e,t,i){var a=i(32198),s=i(92602),r=i(70333),n=i(11254),o=i(60999),l=i(49186),d=i(36563),h=i(53966),p=i(97768),u=i(17676),y=i(84952),c=i(91429),g=i(77548),f=i(20655),m=i(80812),w=i(41318),M=i(10407),b=i(36005),T=i(43937);const v={credential:null,user:null};i.d(t,["A",0,e=>{const t=e;let _=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new m.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:a}=await i.e(1204).then(i.bind(i,41204));return(0,u.Te)(t),await a({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,u.zf)(e)||h.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:t}=await i.e(1204).then(i.bind(i,41204)),a=new AbortController,s=(0,d.rE)(a);return this.addHandles(s,"reloadFromPortal"),await t({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},{signal:a.signal})}catch(e){throw(0,u.zf)(e)||h.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,u.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:a},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",a),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,u.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const a=!r.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,a);let n,o;if(s)n=i.portal.url;else try{n=await(0,g.wI)(this.url,t)}catch(e){(0,u.QP)(e)}if(!n||!(0,y.b8)(n,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(r.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,u.QP)(e)}const l=!0,d=!1,h=!1;if(!o)return{features:{edit:l,fullEdit:d},content:{updateItem:h}};try{if(s?await i.reload():(i=new m.default({id:e,portal:{url:n}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,a)}catch(e){(0,u.QP)(e)}return{features:{edit:l,fullEdit:d},content:{updateItem:h}}}_getUserPrivileges(e,t){const i=(0,M.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,u.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?r.id?.findCredential(this.url):null;if(!t)return!0;const i=v.credential===t?v.user:await this._fetchEditingUser(e);return v.credential=t,v.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=r.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const a=`${i.owningSystemUrl}/sharing/rest`,s=f.A.getDefault();if(s&&s.loaded&&(0,y.S8)(s.restUrl)===(0,y.S8)(a))return s.user;const l=`${a}/community/self`,d=null!=e?e.signal:null,h=await(0,o.Ke)((0,n.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:d}));return h.ok?w.A.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,a=this.portalItem?.id&&(this.portalItem.portal||f.A.getDefault());return i&&a&&!(0,y.ut)(a.restUrl,i.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,a.Cg)([(0,c.MZ)({type:m.default})],_.prototype,"portalItem",null),(0,a.Cg)([(0,b.w)("web-document","portalItem",["itemId"])],_.prototype,"readPortalItem",null),(0,a.Cg)([(0,T.K)("web-document","portalItem",{itemId:{type:String}})],_.prototype,"writePortalItem",null),(0,a.Cg)([(0,c.MZ)({clonable:!1})],_.prototype,"resourceReferences",void 0),(0,a.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasEditingPrivileges",void 0),(0,a.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasFullEditingPrivileges",void 0),(0,a.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasUpdateItemPrivileges",void 0),_=(0,a.Cg)([(0,c.$K)("esri.layers.mixins.PortalLayer")],_),_}])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1279],{85978(e,t,r){r.d(t,{A:()=>s});var a=r(87449),n=r(11221);r(33325);class s extends n.t1{constructor(e){super(),this.declaredClass="esri.layers.featureset.sources.Empty",this._maxProcessing=1e3,this._parent=e.parentfeatureset,this._databaseType=0}async _queryAll(){return n.An.features}async query(e){return n.An}async queryStat(e){return await this._manualStat(e.stat,e.field,e.limit??1e3,e.abortSignal)}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new a.dr("NeverReach")}async queryAttachments(){return[]}}},87817(e,t,r){r.r(t),r.d(t,{registerFunctions:()=>f});var a=r(85935),n=r(54639),s=r(78878),i=r(48938),l=r(87449),o=r(11221),u=(r(33325),r(71163)),c=r(90634);class p extends o.t1{constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.SpatialFilter",this._maxProcessing=40,this._parent=e.parentfeatureset,this._relation=e.relation,this._relationString=e.relationString??"",this._relationGeom=e.relationGeom}get _spatialFilter(){return{relation:"esriSpatialRelRelation"!==this._relation?this._relation:`esriSpatialRelRelation:${this._relationString}`,geometry:this._relationGeom.asAccessorGeometry()}}async _queryAll(){return(await this.query({abortSignal:i._})).features}async query(e){await this._ensureLoaded();const t=await this._parent.query({...e,spatialFilter:this._spatialFilter,limit:null==e.spatialFilter?e.limit:null});return(0,l.dZ)(e.abortSignal),{...t,spatialFilterApplied:null==e.spatialFilter,features:t.spatialFilterApplied?t.features:this._applySpatialFilter(t.features,e.abortSignal)}}async*_applySpatialFilter(e,t){for await(const r of e){(0,l.dZ)(t);const e=[];for(const t of r)await this._executeSpatialRelationTest(t)&&e.push(t);e.length>0&&(yield e)}}async queryStat(e){if(null!=e.spatialFilter)return{calculated:!1};const t=await this._parent.queryStat({...e,spatialFilter:this._spatialFilter});return t.calculated?t:null==e.where&&null==e.spatialFilter?this._manualStat(e.stat,e.field,e.limit??1e3,e.abortSignal):{calculated:!1}}async canQueryAggregate(e){return null==e.spatialFilter&&this._parent.canQueryAggregate({...e,spatialFilter:this._spatialFilter})}async queryAggregate(e){if(null!=e.spatialFilter)throw new l.dr("NeverReach");return this._parent.queryAggregate({...e,spatialFilter:this._spatialFilter})}async _executeSpatialRelationTest(e){if(null==e.geometry)return!1;switch(this._relation){case"esriSpatialRelEnvelopeIntersects":{const t=(0,c.HA)(this._relationGeom.asJsonGeometry()),r=(0,c.HA)(e.geometry);return null!=t&&null!=r&&(0,u.C)("intersects",[t,r,(0,n.b)(this._relationGeom.spatialReference)])}case"esriSpatialRelIntersects":return(0,u.C)("intersects",[this._relationGeom.asJsonGeometry(),e.geometry,(0,n.b)(this._relationGeom.spatialReference)]);case"esriSpatialRelContains":return(0,u.C)("contains",[this._relationGeom.asJsonGeometry(),e.geometry,(0,n.b)(this._relationGeom.spatialReference)]);case"esriSpatialRelOverlaps":return(0,u.C)("overlaps",[this._relationGeom.asJsonGeometry(),e.geometry,(0,n.b)(this._relationGeom.spatialReference)]);case"esriSpatialRelWithin":return(0,u.C)("within",[this._relationGeom.asJsonGeometry(),e.geometry,(0,n.b)(this._relationGeom.spatialReference)]);case"esriSpatialRelTouches":return(0,u.C)("touches",[this._relationGeom.asJsonGeometry(),e.geometry,(0,n.b)(this._relationGeom.spatialReference)]);case"esriSpatialRelCrosses":return(0,u.C)("crosses",[this._relationGeom.asJsonGeometry(),e.geometry,(0,n.b)(this._relationGeom.spatialReference)]);case"esriSpatialRelRelation":return(0,u.C)("relate",[this._relationGeom.asJsonGeometry(),e.geometry,(0,n.b)(this._relationGeom.spatialReference),this._relationString]);default:return this._relation,!1}}getFieldsIndex(){return this._parent.getFieldsIndex()}}var h=r(85978);function y(e){return async(t,r,i)=>{if((0,s.E)(i,2,2,r),null===(i=(0,s.H)(i))[0]&&null===i[1])return!1;if((0,s.k)(i[0])){if((0,s.d)(i[1]))return new p({parentfeatureset:i[0],relation:e,relationGeom:i[1]});if(null===i[1])return new h.A({parentfeatureset:i[0]});throw new a.D$("InvalidParameter",r)}if((0,s.d)(i[0])){if((0,s.d)(i[1])){switch(e){case"esriSpatialRelEnvelopeIntersects":{const e=(0,c.HA)(i[0].asJsonGeometry()),t=(0,c.HA)(i[1].asJsonGeometry());return null!=e&&null!=t&&(0,u.C)("intersects",[e,t,(0,n.b)(i[0].spatialReference)])}case"esriSpatialRelIntersects":return(0,u.C)("intersects",[i[0].asJsonGeometry(),i[1].asJsonGeometry(),(0,n.b)(i[0].spatialReference)]);case"esriSpatialRelContains":return(0,u.C)("contains",[i[0].asJsonGeometry(),i[1].asJsonGeometry(),(0,n.b)(i[0].spatialReference)]);case"esriSpatialRelOverlaps":return(0,u.C)("overlaps",[i[0].asJsonGeometry(),i[1].asJsonGeometry(),(0,n.b)(i[0].spatialReference)]);case"esriSpatialRelWithin":return(0,u.C)("within",[i[0].asJsonGeometry(),i[1].asJsonGeometry(),(0,n.b)(i[0].spatialReference)]);case"esriSpatialRelTouches":return(0,u.C)("touches",[i[0].asJsonGeometry(),i[1].asJsonGeometry(),(0,n.b)(i[0].spatialReference)]);case"esriSpatialRelCrosses":return(0,u.C)("crosses",[i[0].asJsonGeometry(),i[1].asJsonGeometry(),(0,n.b)(i[0].spatialReference)])}throw new a.D$("InvalidParameter",r)}if((0,s.k)(i[1]))return new p({parentfeatureset:i[1],relation:e,relationGeom:i[0]});if(null===i[1])return!1;throw new a.D$("InvalidParameter",r)}if(null===i[0]){if((0,s.k)(i[1]))return new h.A({parentfeatureset:i[1]});if((0,s.d)(i[1])||null===i[1])return!1}throw new a.D$("InvalidParameter",r)}}function f(e){"async"===e.mode&&(e.functions.intersects=function(t,r){return e.standardFunctionAsync(t,r,y("esriSpatialRelIntersects"))},e.functions.envelopeintersects=function(t,r){return e.standardFunctionAsync(t,r,y("esriSpatialRelEnvelopeIntersects"))},e.signatures.push({name:"envelopeintersects",min:2,max:2}),e.functions.contains=function(t,r){return e.standardFunctionAsync(t,r,y("esriSpatialRelContains"))},e.functions.overlaps=function(t,r){return e.standardFunctionAsync(t,r,y("esriSpatialRelOverlaps"))},e.functions.within=function(t,r){return e.standardFunctionAsync(t,r,y("esriSpatialRelWithin"))},e.functions.touches=function(t,r){return e.standardFunctionAsync(t,r,y("esriSpatialRelTouches"))},e.functions.crosses=function(t,r){return e.standardFunctionAsync(t,r,y("esriSpatialRelCrosses"))},e.functions.relate=function(t,r){return e.standardFunctionAsync(t,r,async(e,t,i)=>{if(i=(0,s.H)(i),(0,s.E)(i,3,3,r),(0,s.d)(i[0])&&(0,s.d)(i[1]))return(0,u.C)("relate",[i[0].asJsonGeometry(),i[1].asJsonGeometry(),(0,n.b)(i[0].spatialReference),(0,s.w)(i[2])]);if((0,s.d)(i[0])&&null===i[1])return!1;if((0,s.d)(i[1])&&null===i[0])return!1;if((0,s.k)(i[0])&&null===i[1])return new h.A({parentfeatureset:i[0]});if((0,s.k)(i[1])&&null===i[0])return new h.A({parentfeatureset:i[1]});if((0,s.k)(i[0])&&(0,s.d)(i[1]))return new p({parentfeatureset:i[0],relation:"esriSpatialRelRelation",relationGeom:i[1],relationString:(0,s.w)(i[2])});if((0,s.k)(i[1])&&(0,s.d)(i[0]))return new p({parentfeatureset:i[1],relation:"esriSpatialRelRelation",relationGeom:i[0],relationString:(0,s.w)(i[2])});if(null===i[0]&&null===i[1])return!1;throw new a.D$("InvalidParameter",r)})})}},60999(e,t,r){r.d(t,{DZ:()=>f,Ke:()=>y,Tj:()=>c,UT:()=>m,aD:()=>_,jJ:()=>u});var a=r(32198),n=r(69622),s=r(97768),i=r(17676),l=r(10107),o=r(64108);function u(e,t,r){return(0,i.Lx)(e.map((e,a)=>t.apply(r,[e,a])))}async function c(e,t,r){return(await(0,i.Lx)(e.map((e,a)=>t.apply(r,[e,a])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function h(e){return{ok:!1,error:e}}async function y(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return h(e)}}async function f(e){try{return p(await e)}catch(e){return(0,i.QP)(e),h(e)}}function m(e,t){return new d(e,t)}let d=class extends n.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=h(e),this._cleanup()}),this._abortHandle=(0,i.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,a.Cg)([(0,l.MZ)()],d.prototype,"value",null),(0,a.Cg)([(0,l.MZ)()],d.prototype,"error",null),(0,a.Cg)([(0,l.MZ)()],d.prototype,"finished",null),(0,a.Cg)([(0,l.MZ)()],d.prototype,"promise",void 0),(0,a.Cg)([(0,l.MZ)()],d.prototype,"_result",void 0),d=(0,a.Cg)([(0,o.$)("esri.core.asyncUtils.ReactiveTask")],d);class _{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,a.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,a.hk)(t)}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7821,8768,9397],{66344(t,e,i){i.d(e,{q:()=>o});const s=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(t=10485760,e=.3){this._maxSize=t,this._maxClientSizeRatio=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(t){this._clients.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._clients.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(t,e){const i=this._db.get(t.id+e);return i?.size??0}put(t,e,i,r,l){e=t.id+e;const o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==i&&this._notifyRemove(e,o.entry,o.size,0)),r>this._maxSize)return void this._notifyRemove(e,i,r,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return s||console.warn(`Refusing to cache entry with size ${r} for key ${e}`),void this._notifyRemove(e,i,0,0);const a=1+Math.max(l,-4)- -3;this._db.set(e,new n(i,r,a)),this._size+=r,t.size+=r,this._checkSize()}updateSize(t,e){e=t.id+e;const i=this._db.get(e);if(!i)return;this._size-=i.size,t.size-=i.size;let s=i.entry.usedMemory;for(;s>this._maxSize;){const t=this._notifyRemove(e,i.entry,s,1);if(!(null!=t&&t>0))return void this._db.delete(e);s=t}i.size=s,this._size+=s,t.size+=s,this._checkSize()}pop(t,e){e=t.id+e;const i=this._db.get(e);if(i)return this._size-=i.size,t.size-=i.size,this._db.delete(e),++this._hit,i.entry;++this._miss}get(t,e){e=t.id+e;const i=this._db.get(e);if(void 0!==i)return this._db.delete(e),i.lives=i.lifetime,this._db.set(e,i),++this._hit,i.entry;++this._miss}peek(t,e){const i=this._db.get(t.id+e);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},i=new Array;this._db.forEach((t,s)=>{const r=t.lifetime;i[r]=(i[r]||0)+t.size,this._clients.forEach(i=>{const{id:r,name:n}=i;if(s.startsWith(r)){const i=e[n]||0;e[n]=i+t.size}})});const s={};this._clients.forEach(t=>{const i=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const r=e[i]||0;e[i]=r,s[i]=Math.round(100*t.hitRate)+"%"}else s[i]="0%"});const r=Object.keys(e);r.sort((t,i)=>e[i]-e[t]),r.forEach(i=>t[i]=Math.round(e[i]/2**20)+"MB / "+s[i]);for(let e=i.length-1;e>=0;--e){const s=i[e];s&&(t["Priority "+(e+-3-1)]=Math.round(s/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._clients.forEach(t=>t.resetHitRate())}clear(t){const e=t.id;this._db.forEach((t,i)=>{i.startsWith(e)&&(this._size-=t.size,this._db.delete(i),this._notifyRemove(i,t.entry,t.size,0))}),t.size=0}clearAll(){this._db.forEach((t,e)=>this._notifyRemove(e,t.entry,t.size,0)),this._clients.forEach(t=>t.size=0),this._size=0,this._db.clear()}*values(t){for(const[e,i]of this._db)e.startsWith(t.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,i,s){const r=this._clients.get(t.split(l)[0])?.removeFunc,n=r?.(e,s,i);return"number"==typeof n?n:null}_checkSize(){this._sizeLimits.forEach((t,e)=>this._checkSizeLimits(t,e)),this._clients.forEach(t=>this._checkSizeLimits(this._maxClientSize,t)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(t,e){null==e||e<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,e)}_checkSizeLimits(t,e){const i=e??this;if(i.size<=t)return;const s=e?.id;let r=!0;for(;r;){r=!1;for(const[n,o]of this._db)if(0===o.lifetime&&(!s||n.startsWith(s))){const s=e??this._clients.get(n.split(l)[0]);if(this._purgeItem(n,o,s),i.size<=.9*t)return;r||=this._db.has(n)}}for(const[r,n]of this._db)if(!s||r.startsWith(s)){const s=e??this._clients.get(r.split(l)[0]);if(this._purgeItem(r,n,s),i.size<=.9*t)return}}_purgeItem(t,e,i){if(this._db.delete(t),e.lives<=1){this._size-=e.size,i&&(i.size-=e.size);const s=this._notifyRemove(t,e.entry,e.size,1);null!=s&&s>0&&(this._size+=s,i&&(i.size+=s),e.lives=e.lifetime,e.size=s,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}new r(0);class n{constructor(t,e,i){this.entry=t,this.size=e,this.lifetime=i,this.lives=i}}const l=":";class o{constructor(t,e){this.removeFunc=e,this.id="",this.name="",this.size=0,this._storage=new r(t,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,i=1){this._storage.put(this,t,e,i,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},60999(t,e,i){i.d(e,{DZ:()=>d,Ke:()=>y,Tj:()=>u,UT:()=>f,aD:()=>g,jJ:()=>h});var s=i(32198),r=i(69622),n=i(97768),l=i(17676),o=i(10107),a=i(64108);function h(t,e,i){return(0,l.Lx)(t.map((t,s)=>e.apply(i,[t,s])))}async function u(t,e,i){return(await(0,l.Lx)(t.map((t,s)=>e.apply(i,[t,s])))).map(t=>t.value)}function c(t){return{ok:!0,value:t}}function p(t){return{ok:!1,error:t}}async function y(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return c(await t)}catch(t){return p(t)}}async function d(t){try{return c(await t)}catch(t){return(0,l.QP)(t),p(t)}}function f(t,e){return new m(t,e)}let m=class extends r.A{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,n.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:i}=this._abortController;this.promise=t(i),this.promise.then(t=>{this._result=c(t),this._cleanup()},t=>{this._result=p(t),this._cleanup()}),this._abortHandle=(0,l.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,o.MZ)()],m.prototype,"value",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"error",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"finished",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"promise",void 0),(0,s.Cg)([(0,o.MZ)()],m.prototype,"_result",void 0),m=(0,s.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],m);class g{constructor(){this._sequence=Promise.resolve()}async acquire(){let t;this._sequence=new Promise(e=>{t=this._sequence.then(()=>e,()=>e)});const e=await t;return{[Symbol.dispose]:e}}async run(t){const e={stack:[],error:void 0,hasError:!1};try{return(0,s.mS)(e,await this.acquire(),!1),await t()}catch(t){e.error=t,e.hasError=!0}finally{(0,s.hk)(e)}}}},69397(t,e,i){i.d(e,{Qf:()=>o,Qh:()=>n,lM:()=>r});var s=i(34275);function r(t){if(!t)return 0;let e=h;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i],!1));return e}function n(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return a(t,8);let i=u;for(let s=0;s<e;s++)i+=l(t[s]);return i}(t);let e=h;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i]));return e}function l(t,e=!0){switch(typeof t){case"object":return e?n(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+c:Array.isArray(e)?a(e,16):0:0),0)}function a(t,e){return u+t.length*e}const h=32,u=16,c=145},90629(t,e,i){i.d(e,{Lz:()=>r,PN:()=>n,cr:()=>l,gs:()=>a,r_:()=>h,tc:()=>o}),i(39829);const s=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function r(t){return t?t/72*96:0}function n(t){return t?72*t/96:0}function l(t){if("string"==typeof t){const e=t.match(s);if(e){const i=Number(e[1]),s=e[3]&&e[3].toLowerCase(),r=t.startsWith("-"),l="px"===s?n(i):i;return r?-l:l}return console.warn("screenUtils.toPt: input not recognized!"),null}return t}function o(t=0,e=0){return{x:t,y:e}}function a(t=0,e=0){return[t,e]}function h(t=0,e=0,i=0){return[t,e,i]}},83027(t,e,i){const s=i(29953).ho;i.d(e,["h",0,s])},48526(t,e,i){i.d(e,{A:()=>m});var s,r=i(32198),n=i(4576),l=i(4718),o=i(91429),a=i(5443),h=i(91075),u=i(86738),c=i(16930),p=i(90634),y=i(47610),d=i(56993),f=i(43937);let m=s=class extends h.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:i,hasZ:s,spatialReference:r}=t;switch(e??=[],e?.at(0)?.length){case 4:s??=!0,i??=!0;break;case 3:s??=!0!==i,i??=!s;break;default:s??=!1,i??=!1}return r??=c.A.WGS84,{...t,hasM:i,hasZ:s,points:e,spatialReference:r}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,p.ge)(this);return t?new a.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,l.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:i,hasZ:r}=this;return new s({points:(0,l.o8)(t),spatialReference:e.clone(),hasM:i,hasZ:r})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,i=t.spatialReference;return null!=e==(null!=i)&&!(null!=e&&null!=i&&!e.equals(i))&&(0,n.aI)(this.points,t.points,y.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],i={x:e[0],y:e[1],spatialReference:this.spatialReference};let s=2;return this.hasZ&&(i.z=e[2],s=3),this.hasM&&(i.m=e[s]),new u.A(i)}removePoint(t){if(!this._validateInputs(t))return null;const e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,d.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,r.Cg)([(0,f.K)("points")],m.prototype,"writePoints",null),m=s=(0,r.Cg)([(0,o.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,i){i.d(e,{A:()=>d});var s,r=i(32198),n=i(4718),l=i(91429),o=i(5443),a=i(91075),h=i(86738),u=i(16930),c=i(90634),p=i(56993),y=i(43937);let d=s=class extends a.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:i,hasZ:s,spatialReference:r}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:s??=!0,i??=!0;break;case 3:s??=!0!==i,i??=!s;break;default:s??=!1,i??=!1}return r??=u.A.WGS84,{...t,hasM:i,hasZ:s,paths:e,spatialReference:r}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,n.o8)(t)}get extent(){const t=(0,c.Z3)(this),{spatialReference:e}=this;return t?new o.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,n.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,i=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const s=[];for(let e=0,i=t.length;e<i;e++)s[e]=t[e].toArray();e[i]=s}else e[i]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new s;return t.spatialReference=this.spatialReference,t.paths=(0,n.o8)(this.paths),t.curvePaths=(0,n.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const i=this.paths[t][e],s=this.hasZ,r=this.hasM;return s&&!r?new h.A(i[0],i[1],i[2],void 0,this.spatialReference):r&&!s?new h.A(i[0],i[1],void 0,i[2],this.spatialReference):s&&r?new h.A(i[0],i[1],i[2],i[3],this.spatialReference):new h.A(i[0],i[1],this.spatialReference)}insertPoint(t,e,i){return this._validateInputs(t,e,!0)?((0,p.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t].splice(e,0,i),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],i=this.spatialReference,s=e.map(t=>new h.A(t,i));return this.notifyChange("paths"),s}removePoint(t,e){if(!this._validateInputs(t,e))return null;const i=new h.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),i}setPoint(t,e,i){return this._validateInputs(t,e)?((0,p.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t][e]=i,this.notifyChange("paths"),this):this}_validateInputs(t,e,i=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const s=this.paths[t];if(i&&(e<0||e>s.length))return!1;if(!i&&(e<0||e>=s.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,r.Cg)([(0,y.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,r.Cg)([(0,l.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,r.Cg)([(0,y.K)("paths")],d.prototype,"writePaths",null),d=s=(0,r.Cg)([(0,l.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},6774(t,e,i){i.d(e,{O3:()=>n,Ox:()=>l,bR:()=>s});class s{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new s(t[0],t[1])}clone(){return new s(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){const t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){const i=this.x,s=this.y;return this.x=i*t-s*e,this.y=i*e+s*t,this}rotateReverse(t,e){const i=this.x,s=this.y;return this.x=i*t+s*e,this.y=-i*e+s*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){const i=e.x-t.x,s=e.y-t.y;return Math.sqrt(i*i+s*s)}static add(t,e){return new s(t.x+e.x,t.y+e.y)}static sub(t,e){return new s(t.x-e.x,t.y-e.y)}}class r{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class n{constructor(t,e,i,s=8,r=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=s,this._pixelMargin=r,this._tileSize=512*s,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;const i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new s(t,e),this._firstPt=new s(t,e),this._dist=0}lineTo(t,e){const i=this._isIn(t,e),n=new s(t,e),l=s.distance(this._prevPt,n);let o,a,h,u,c,p,y,d;if(i)this._prevIsIn?this._lineTo(t,e,!0):(o=this._prevPt,a=n,h=this._intersect(a,o),this._start=this._dist+l*(1-this._r),this._lineTo(h.x,h.y,!0),this._lineTo(a.x,a.y,!0));else if(this._prevIsIn)a=this._prevPt,o=n,h=this._intersect(a,o),this._lineTo(h.x,h.y,!0),this._lineTo(o.x,o.y,!1);else{const t=this._prevPt,e=n;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{const i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(u=(this._xmin-t.x)/(e.x-t.x),d=t.y+u*(e.y-t.y),d<=this._ymin?p=!1:d>=this._ymax?p=!0:i.push(new r(u,this._xmin,d))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(u=(this._xmax-t.x)/(e.x-t.x),d=t.y+u*(e.y-t.y),d<=this._ymin?p=!1:d>=this._ymax?p=!0:i.push(new r(u,this._xmax,d))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(u=(this._ymin-t.y)/(e.y-t.y),y=t.x+u*(e.x-t.x),y<=this._xmin?c=!1:y>=this._xmax?c=!0:i.push(new r(u,y,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(u=(this._ymax-t.y)/(e.y-t.y),y=t.x+u*(e.x-t.x),y<=this._xmin?c=!1:y>=this._xmax?c=!0:i.push(new r(u,y,this._ymax))),0===i.length)c?p?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):p?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+l*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+l*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=l,this._prevIsIn=i,this._prevPt=n}close(){if(this._line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const i=this._line;let s=i.length;for(;s>=4&&(i[0].x===i[1].x&&i[0].x===i[s-2].x||i[0].y===i[1].y&&i[0].y===i[s-2].y);)i.pop(),i[0].x=i[s-2].x,i[0].y=i[s-2].y,--s}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&o.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,e=t.length;if(0===e)return null;const i=[];for(let s=0;s<e;s++)i.push({line:t[s],start:this._starts[s]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,r,n;if(e.x>=this._xmin&&e.x<=this._xmax)r=e.y<=this._ymin?this._ymin:this._ymax,n=(r-t.y)/(e.y-t.y),i=t.x+n*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,n=(i-t.x)/(e.x-t.x),r=t.y+n*(e.y-t.y);else{r=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;const s=(i-t.x)/(e.x-t.x),l=(r-t.y)/(e.y-t.y);s<l?(n=s,r=t.y+s*(e.y-t.y)):(n=l,i=t.x+l*(e.x-t.x))}return this._r=n,new s(i,r)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3!==this._type?i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new s(t,e))):(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new s(t,e)),this._isH=!1,this._isV=!1)}_lineTo(t,e,i){let r,n;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(r=this._line[this._line.length-1],r.equals(t,e)))return;this._line.push(new s(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){r=this._line[this._line.length-1];const i=r.x===t,l=r.y===e;if(i&&l)return;this._isH&&i||this._isV&&l?(r.x=t,r.y=e,n=this._line[this._line.length-2],n.x===t&&n.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(n=this._line[this._line.length-2],this._isH=n.x===t,this._isV=n.y===e)):(this._isH=n.x===t,this._isV=n.y===e)):(this._line.push(new s(t,e)),this._isH=i,this._isV=l)}else this._line.push(new s(t,e))}}class l{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];const i=this._ratio;this._line.push(new s(t*i,e*i))}lineTo(t,e){const i=this._ratio;this._line.push(new s(t*i,e*i))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class o{static simplify(t,e,i){if(!i)return;const s=-e,r=t+e,n=-e,l=t+e,a=[],h=[],u=i.length;for(let t=0;t<u;++t){const e=i[t];if(!e||e.length<2)continue;let o,u=e[0];const c=e.length;for(let i=1;i<c;++i)o=e[i],u.x===o.x&&(u.x<=s&&(u.y>o.y?(a.push(t),a.push(i),a.push(0),a.push(-1)):(h.push(t),h.push(i),h.push(0),h.push(-1))),u.x>=r&&(u.y<o.y?(a.push(t),a.push(i),a.push(1),a.push(-1)):(h.push(t),h.push(i),h.push(1),h.push(-1)))),u.y===o.y&&(u.y<=n&&(u.x<o.x?(a.push(t),a.push(i),a.push(2),a.push(-1)):(h.push(t),h.push(i),h.push(2),h.push(-1))),u.y>=l&&(u.x>o.x?(a.push(t),a.push(i),a.push(3),a.push(-1)):(h.push(t),h.push(i),h.push(3),h.push(-1)))),u=o}if(0===a.length||0===h.length)return;o.fillParent(i,h,a),o.fillParent(i,a,h);const c=[];o.calcDeltas(c,h,a),o.calcDeltas(c,a,h),o.addDeltas(c,i)}static fillParent(t,e,i){const s=i.length,r=e.length;for(let n=0;n<r;n+=4){const r=e[n],l=e[n+1],o=e[n+2],h=t[r][l-1],u=t[r][l];let c=8092,p=-1;for(let e=0;e<s;e+=4){if(i[e+2]!==o)continue;const s=i[e],r=i[e+1],n=t[s][r-1],l=t[s][r];switch(o){case 0:case 1:if(a(h.y,n.y,l.y)&&a(u.y,n.y,l.y)){const t=Math.abs(l.y-n.y);t<c&&(c=t,p=e)}break;case 2:case 3:if(a(h.x,n.x,l.x)&&a(u.x,n.x,l.x)){const t=Math.abs(l.x-n.x);t<c&&(c=t,p=e)}}}e[n+3]=p}}static calcDeltas(t,e,i){const s=e.length;for(let r=0;r<s;r+=4){const s=[],n=o.calcDelta(r,e,i,s);t.push(e[r]),t.push(e[r+1]),t.push(e[r+2]),t.push(n)}}static calcDelta(t,e,i,s){const r=e[t+3];if(-1===r)return 0;const n=s.length;return n>1&&s[n-2]===r?0:(s.push(r),o.calcDelta(r,i,e,s)+1)}static addDeltas(t,e){const i=t.length;let s=0;for(let e=0;e<i;e+=4){const i=t[e+3];i>s&&(s=i)}for(let r=0;r<i;r+=4){const i=e[t[r]],n=t[r+1],l=s-t[r+3];switch(t[r+2]){case 0:i[n-1].x-=l,i[n].x-=l,1===n&&(i[i.length-1].x-=l),n===i.length-1&&(i[0].x-=l);break;case 1:i[n-1].x+=l,i[n].x+=l,1===n&&(i[i.length-1].x+=l),n===i.length-1&&(i[0].x+=l);break;case 2:i[n-1].y-=l,i[n].y-=l,1===n&&(i[i.length-1].y-=l),n===i.length-1&&(i[0].y-=l);break;case 3:i[n-1].y+=l,i[n].y+=l,1===n&&(i[i.length-1].y+=l),n===i.length-1&&(i[0].y+=l)}}}}const a=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},50638(t,e,i){i.r(e),i.d(e,{default:()=>St});var s=i(32198),r=i(11254),n=i(60999),l=i(4718),o=i(25728),a=i(17676),h=i(84952),u=i(91429),c=i(5443),p=i(16930),y=i(4146),d=i(52136),f=i(89186),m=i(18768),g=i(63074),_=i(69208),v=i(34287),x=i(8303),w=i(54310),A=i(25036),S=i(10873);let b=null;var M=i(49186),I=i(53966),C=i(34275);class P{constructor(t,e){this._spriteSource=t,this._maxTextureSize=e,this.devicePixelRatio=1,this._spriteImageFormat="png",this._isRetina=!1,this._spritesData={},this.image=null,this.width=null,this.height=null,this.loadStatus="not-loaded","url"===t.type&&t.spriteFormat&&(this._spriteImageFormat=t.spriteFormat),t.pixelRatio&&(this.devicePixelRatio=t.pixelRatio),this.baseURL=t.spriteUrl}get spriteNames(){const t=[];for(const e in this._spritesData)t.push(e);return t.sort(),t}getSpriteInfo(t){return this._spritesData?this._spritesData[t]:null}async load(t){if(this.baseURL){this.loadStatus="loading";try{await this._loadSprites(t),this.loadStatus="loaded"}catch{this.loadStatus="failed"}}else this.loadStatus="failed"}async _loadSprites(t){this._isRetina=this.devicePixelRatio>1.15;const{width:e,height:i,data:s,json:r}=await this._getSpriteData(this._spriteSource,t),n=Object.keys(r);if(!n||0===n.length||!s)return this._spritesData=this.image=null,void(this.width=this.height=0);this._spritesData=r,this.width=e,this.height=i;const l=Math.max(this._maxTextureSize,4096);if(e>l||i>l){const t=`Sprite resource for style ${this.baseURL} is bigger than the maximum allowed of ${l} pixels}`;throw I.A.getLogger("esri.layers.support.SpriteSource").error(t),new M.A("SpriteSource",t)}let o;for(let t=0;t<s.length;t+=4)o=s[t+3]/255,s[t]=s[t]*o,s[t+1]=s[t+1]*o,s[t+2]=s[t+2]*o;this.image=s}async _getSpriteData(t,e){if("image"===t.type){let e,i;if(this.devicePixelRatio<1.15){if(!t.spriteSource1x)throw new M.A("SpriteSource","no image data provided for low resolution sprites!");e=t.spriteSource1x.image,i=t.spriteSource1x.json}else{if(!t.spriteSource2x)throw new M.A("SpriteSource","no image data provided for high resolution sprites!");e=t.spriteSource2x.image,i=t.spriteSource2x.json}return"width"in e&&"height"in e&&"data"in e&&((0,C.mw)(e.data)||(0,C.UR)(e.data))?{width:e.width,height:e.height,data:new Uint8Array(e.data),json:i}:{...R(e),json:i}}const i=(0,h.An)(this.baseURL),s=i.query?"?"+(0,h.x0)(i.query):"",n=this._isRetina?"@2x":"",l=`${i.path}${n}.${this._spriteImageFormat}${s}`,o=`${i.path}${n}.json${s}`,[a,u]=await Promise.all([(0,r.A)(o,e),(0,r.A)(l,{responseType:"image",...e})]);return{...R(u.data),json:a.data}}}function R(t){const e=document.createElement("canvas"),i=e.getContext("2d");e.width=t.width,e.height=t.height,i.drawImage(t,0,0,t.width,t.height);const s=i.getImageData(0,0,t.width,t.height);return{width:t.width,height:t.height,data:new Uint8Array(s.data)}}var T=i(87045),z=i(25943),L=i(21325),O=i(28735),E=i(83027);class U{constructor(t,e,i){this.tileServers=[],this.tilemap=null,this.tileInfo=null,this.capabilities=null,this.fullExtent=null,this.initialExtent=null,this.name=t,this.sourceUrl=e;const s=(0,l.o8)(i),r=i.capabilities&&i.capabilities.split(",").map(t=>t.toLowerCase().trim()),n=!0===i?.exportTilesAllowed,o=!0===r?.includes("tilemap"),a=n&&i.hasOwnProperty("maxExportTilesCount")?i.maxExportTilesCount:0;this.capabilities={operations:{supportsExportTiles:n,supportsTileMap:o},exportTiles:n?{maxExportTilesCount:+a}:null},this.tileInfo=T.A.fromJSON(s.tileInfo),this.fullExtent=c.A.fromJSON(i.fullExtent),this.initialExtent=c.A.fromJSON(i.initialExtent)}destroy(){this.tilemap?.destroy()}async getRefKey(t,e){return this.tilemap?this.tilemap.dataKey(t,e):t}isCompatibleWith(t){const e=this.tileInfo,i=t.tileInfo;if(!e.spatialReference.equals(i.spatialReference))return!1;if(!e.origin.equals(i.origin))return!1;if(Math.round(e.dpi)!==Math.round(i.dpi))return!1;const s=e.lods,r=i.lods,n=Math.min(s.length,r.length);for(let t=0;t<n;t++){const e=s[t],i=r[t];if(e.level!==i.level||Math.round(e.scale)!==Math.round(i.scale))return!1}return!0}}var D=i(44159);class Z extends U{static async create(t,e,i,s,r){if(!0===s.cluster)throw new Error("Clustered GeoJSON vector tile sources are not supported.");if(null==s.data)throw new Error(`GeoJSON source '${t}' must define a data property.`);const n=s.maxzoom??18,l=await(0,E.h)("GeoJSONVectorTileSourceWorker",{signal:r?.signal,strategy:"dedicated"});let o;try{o=await l.invoke("initialize",{definition:s,name:t,requestOptions:$(r)},{signal:r?.signal}),(0,a.Te)(r)}catch(t){throw l.close(),t}return new Z(t,e,i,l,s.minzoom??0,n,o.geometryTypes)}constructor(t,e,i,s,r,n,l){super(t,e,i),this._connection=s,this._minZoom=r,this._maxZoom=n,this.geometryTypes=l}destroy(){super.destroy(),this._connection?.close(),this._connection=null}async getRefKey(t,e){if((0,a.Te)(e),t.level<this._minZoom)return null;if(t.level<=this._maxZoom)return t;const i=t.level-this._maxZoom;return new D.A(this._maxZoom,t.row>>i,t.col>>i,t.world)}requestTile(t,e,i,s){return(0,a.Te)(s),this._connection?this._connection.invoke("requestTile",{col:i,level:t,row:e},s):Promise.reject((0,a.NK)())}}function $(t){if(!t)return{};const{signal:e,...i}=t;return i}class j{constructor(t){this.url=t}destroy(){this._tileIndexPromise=null}async fetchTileIndex(){return this._tileIndexPromise||(this._tileIndexPromise=(0,r.A)(this.url).then(t=>t.data.index)),this._tileIndexPromise}async dataKey(t,e){const i=await this.fetchTileIndex();return(0,a.Te)(e),this._getIndexedDataKey(i,t)}_getIndexedDataKey(t,e){const i=[e];if(e.level<0||e.row<0||e.col<0||e.row>>e.level>0||e.col>>e.level>0)return null;let s=e;for(;0!==s.level;)s=new D.A(s.level-1,s.row>>1,s.col>>1,s.world),i.push(s);let r,n,l=t,o=i.pop();if(1===l)return o;for(;i.length;)if(r=i.pop(),n=(1&r.col)+((1&r.row)<<1),l){if(0===l[n]){o=null;break}if(1===l[n]){o=r;break}o=r,l=l[n]}return o}}var N=i(97768);class k{constructor(t,e){this._tilemap=t,this._tileIndexUrl=e}destroy(){this._tilemap=(0,N.pR)(this._tilemap),this._tileIndexPromise=null}async fetchTileIndex(t){return this._tileIndexPromise||(this._tileIndexPromise=(0,r.A)(this._tileIndexUrl,{query:{...t?.query}}).then(t=>t.data.index)),this._tileIndexPromise}dataKey(t,e){const{level:i,row:s,col:r}=t,n=new D.A(t);return this._tilemap.fetchAvailabilityUpsample(i,s,r,n,e).then(()=>(n.world=t.world,n)).catch(t=>{if((0,a.zf)(t))throw t;return null})}}var K=i(91869);class q{constructor(t){this._tileUrl=t,this._promise=null,this._abortController=null,this._abortOptions=[]}getData(t){(null==this._promise||(0,a.G4)(this._abortController?.signal))&&(this._promise=this._makeRequest(this._tileUrl));const e=this._abortOptions;return e.push(t),(0,a.u7)(t,()=>{e.every(t=>(0,a.G4)(t))&&this._abortController.abort()}),this._promise.then(t=>(0,l.o8)(t))}async _makeRequest(t){this._abortController=new AbortController;const{data:e}=await(0,r.A)(t,{responseType:"array-buffer",signal:this._abortController.signal});return e}}const F=new Map;function G(t,e){return(0,K.tE)(F,t,()=>new q(t)).getData(e).finally(()=>F.delete(t))}class B extends U{constructor(t,e,i){super(t,e,i);const s=(0,h.An)(this.sourceUrl),r=(0,l.o8)(i),n=r.tiles;if(s)for(let t=0;t<n.length;t++){const e=(0,h.An)(n[t]);e&&((0,h.oP)(e.path)||(e.path=(0,h.fj)(s.path,e.path)),n[t]=(0,h.a6)(e.path,{...s.query,...e.query}))}this.tileServers=n;const o=i.tileMap&&s?(0,h.a6)((0,h.fj)(s.path,i.tileMap),s.query??{}):null;this.capabilities.operations.supportsTileMap?(this.type="vector-tile",this.tilemap=new k(new z.d({layer:{parsedUrl:s,tileInfo:this.tileInfo},minLOD:r.minLOD??this.tileInfo.lods[0].level,maxLOD:r.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}),o)):o&&(this.tilemap=new j(o))}requestTile(t,e,i,s){return function(t,e,i,s,r){const n=(0,h.An)(t),l=n.query;if(l)for(const[t,r]of Object.entries(l))switch(r){case"{x}":l[t]=s.toString();break;case"{y}":l[t]=i.toString();break;case"{z}":l[t]=e.toString()}const o=n.path;return G((0,h.a6)(o.replaceAll(/\{z\}/gi,e.toString()).replaceAll(/\{y\}/gi,i.toString()).replaceAll(/\{x\}/gi,s.toString()),{...n.query}),r)}(this.tileServers[e%this.tileServers.length],t,e,i,s)}}function H(...t){let e;for(const i of t)if(null!=i)if((0,h.BQ)(i)){if(e){const t=e.split("://")[0];e=t+":"+i.trim()}}else e=(0,h.oP)(i)?i:(0,h.fj)(e,i);return e?(0,h.UC)(e):void 0}async function V(t,e,i,s,n){let l,o,u;if((0,a.Te)(n),"string"==typeof i){const t=(0,h.S8)(i);u=await(0,r.A)(t,{...n,responseType:"json",query:{f:"json",...n?.query}}),u.ssl&&(l&&(l=l.replace(/^http:/i,"https:")),o&&(o=o.replace(/^http:/i,"https:"))),l=t,o=t}else null!=i&&(u={data:i},l=i.jsonUrl||null,o=s);const c=u?.data;switch(c?.type){case"Feature":case"FeatureCollection":return t.sourceUrl=l||null,Q(t,function(t){return{version:8,sprite:"",glyphs:"",sources:{geojson:{type:"geojson",data:t}},layers:[]}}(c),o,n)}if(W(c))return t.styleUrl=l||null,Q(t,c,o,n);if(function(t){return!!t&&!W(t)}(c))return t.primarySourceName?tt(t,c,o,!1,e,n):(t.sourceUrl=l||null,J(c)&&null==t.style&&(e="tilejson"),tt(t,c,o,!0,e,n));throw new Error("You must specify the URL or the JSON for a service or for a style.")}function J(t){return"object"==typeof t&&!!t&&"tilejson"in t&&null!=t.tilejson}function W(t){return!!t&&"sources"in t&&!!t.sources}async function Q(t,e,i,s){const r=i?(0,h.nM)(i):(0,h.gd)(),n=null==e.layers||0===e.layers.length,l=n?{...e,layers:[]}:e;t.styleBase=r,t.style=l,"webp"===l["sprite-format"]?.toLowerCase()&&(t.spriteFormat="webp");const o=[];if(l.sources&&l.sources.esri&&"geojson"!==l.sources.esri.type){const e=l.sources.esri;e.url?await V(t,"esri",H(r,e.url),void 0,s):o.push(V(t,"esri",e,r,s))}for(const e of Object.keys(l.sources))"esri"!==e&&"tilejson"!==e&&"vector"===l.sources[e].type&&(l.sources[e].url?o.push(V(t,e,H(r,l.sources[e].url),void 0,s)):l.sources[e].tiles&&o.push(V(t,e,l.sources[e],r,s)));await Promise.all(o);for(const e of Object.keys(l.sources)){const i=l.sources[e];if("geojson"===i.type){const o=await Y(t,e,i,r,s);n&&l.layers.push(...X(e,o.geometryTypes))}}}async function Y(t,e,i,s,r){if(null==i.data)throw new Error(`GeoJSON source '${e}' must define a data property.`);const n={...i,type:"geojson",data:"string"==typeof i.data?H(s,i.data):i.data},l=it({maxzoom:n.maxzoom,minzoom:n.minzoom},t),o=await Z.create(e,s,l,n,r);return et(t,e,i,l,o,!t.primarySourceName,s),o}function X(t,e){return e.map(e=>{switch(e){case"polygon":return{id:`${t}_polygon`,type:"fill",source:t,filter:["==","$type","Polygon"],paint:{"fill-color":"#808080"}};case"line":return{id:`${t}_line`,type:"line",source:t,filter:["==","$type","LineString"],paint:{"line-color":"#808080","line-width":1}};case"point":return{id:`${t}_point`,type:"circle",source:t,filter:["==","$type","Point"],paint:{"circle-color":"#808080","circle-radius":3}}}})}async function tt(t,e,i,s,r,n){const l=i?(0,h.UC)(i)+"/":(0,h.gd)(),o=it(e,t);if(et(t,r,e,o,new B(r,(0,h.a6)(l,n?.query??{}),o),s,l),!J(t)&&"defaultStyles"in e&&!t.style){if(null==e.defaultStyles)throw new Error;return"string"==typeof e.defaultStyles?V(t,"",H(l,e.defaultStyles,"root.json"),void 0,n):V(t,"",e.defaultStyles,H(l,"root.json"),n)}if(J(e)&&null==t.style&&o.defaultStyles)return V(t,"",o.defaultStyles,H(l,"root.json"),n)}function et(t,e,i,s,r,n,l){if(!n&&t.primarySourceName in t.sourceNameToSource){const i=t.sourceNameToSource[t.primarySourceName];if(!i.isCompatibleWith(r))return I.A.getLogger("esri.layers.support.vectorTileLayerLoader").warn(`Ignoring source '${e}' because its tiling scheme is incompatible with the primary source '${t.primarySourceName}'.`),void r.destroy();null!=r.fullExtent&&(null!=i.fullExtent?i.fullExtent.union(r.fullExtent):i.fullExtent=r.fullExtent.clone()),i.tileInfo&&r.tileInfo&&i.tileInfo.lods.length<r.tileInfo.lods.length&&(i.tileInfo=r.tileInfo)}n&&(t.sourceBase=l,t.source=i,t.validatedSource=s,t.primarySourceName=e),t.sourceNameToSource[e]=r}function it(t,e){const i=512;if(function(t){return t.hasOwnProperty("tileInfo")}(t)){const e=t?.tileInfo;return null!=e&&(null==e.rows&&(e.rows=i),null==e.cols&&(e.cols=i)),t}const s={xmin:-20037507.067161843,ymin:-20037507.067161843,xmax:20037507.067161843,ymax:20037507.067161843,spatialReference:{wkid:102100,latestWkid:3857}};let r,n=null;if(J(t)){const{bounds:i,vector_layers:s}=t;if(i){const t=(0,O.Gh)({x:i[0],y:i[1],spatialReference:(0,l.o8)(L.KK)}),e=(0,O.Gh)({x:i[2],y:i[3],spatialReference:(0,l.o8)(L.KK)});n={xmin:t.x,ymin:t.y,xmax:e.x,ymax:e.y,spatialReference:(0,l.o8)(L.ch)}}if(s&&s.length>0)r={version:8,sprite:"",glyphs:"",sources:{tilejson:{type:"vector",url:t.tilejson}},layers:st(s)};else if(null==e.style)throw new Error("The TileJSON source does not contain any vector_layers. This VectorTileLayer cannot be loaded.")}null===n&&(n=s);let o=78271.51696400007,a=295828763.7957775;const h=[],u=t.hasOwnProperty("maxzoom")&&null!=t.maxzoom?Math.abs(+t.maxzoom):22;for(let t=0;t<=u;t++)h.push({level:t,scale:a,resolution:o}),o/=2,a/=2;return{capabilities:"TilesOnly",initialExtent:n,fullExtent:s,minScale:0,maxScale:0,tiles:t.tiles,tileInfo:{rows:i,cols:i,dpi:96,format:"pbf",origin:{x:-20037508.342787,y:20037508.342787},lods:h,spatialReference:(0,l.o8)(L.ch)},defaultStyles:r}}function st(t){const e=[];for(const i of t)i.geometry_type?e.push(rt(i.geometry_type.toLowerCase(),i,!1)):(e.push(rt("polygon",i,!0)),e.push(rt("line",i,!0)),e.push(rt("circle",i,!0)));return e}function rt(t,e,i){const{id:s,minzoom:r,maxzoom:n}=e,l={type:"polygon"===t||"polygons"===t?"fill":"line"===t||"lines"===t?"line":"circle",id:s,source:"tilejson","source-layer":s,minzoom:r,maxzoom:n};switch(t){case"fill":i&&(l.id+="_polygon",l.filter='(["==", "$type", "Polygon"])'),l.paint={"fill-color":"#808080"};break;case"line":i&&(l.id+="_line",l.filter='(["==", "$type", "LineString"])');break;case"circle":i&&(l.id+="_point",l.filter='(["==", "$type", "Point"])')}return l}var nt=i(88788),lt=i(39131),ot=i(97159),at=i(86738),ht=i(91806);const ut=1e-6;function ct(t,e){if(t===e)return!0;if(null==t&&null!=e)return!1;if(null!=t&&null==e)return!1;if(null==t||null==e)return!1;if(!t.spatialReference.equals(e.spatialReference)||t.dpi!==e.dpi)return!1;const i=t.origin,s=e.origin;if(Math.abs(i.x-s.x)>=ut||Math.abs(i.y-s.y)>=ut)return!1;let r,n;t.lods[0].scale>e.lods[0].scale?(r=t,n=e):(n=t,r=e);for(let t=r.lods[0].scale;t>=n.lods[n.lods.length-1].scale-ut;t/=2)if(Math.abs(t-n.lods[0].scale)<ut)return!0;return!1}function pt(t,e){if(t===e)return t;if(null==t&&null!=e)return e;if(null!=t&&null==e)return t;if(null==t||null==e)return null;const i=t.size[0],s=t.format,r=t.dpi,n=new at.A({x:t.origin.x,y:t.origin.y}),l=t.spatialReference,o=t.lods[0].scale>e.lods[0].scale?t.lods[0]:e.lods[0],a=t.lods[t.lods.length-1].scale<=e.lods[e.lods.length-1].scale?t.lods[t.lods.length-1]:e.lods[e.lods.length-1],h=o.scale,u=o.resolution,c=a.scale,p=[];let y=h,d=u,f=0;for(;y>=c;)p.push(new ht.A({level:f,resolution:d,scale:y})),f++,y/=2,d/=2;return new T.A({size:[i,i],dpi:r,format:s||"pbf",origin:n,lods:p,spatialReference:l})}var yt=i(45013);class dt{constructor(t){this.getUnmaskedRenderer=t}}function ft(t){const e=t.getExtension("WEBGL_debug_renderer_info");return e?new dt(()=>t.getParameter(e.UNMASKED_RENDERER_WEBGL)):null}let mt;function gt(){return mt??=function(){const t=new _t,e=function(t){if("undefined"==typeof WebGL2RenderingContext)return null;const e=document.createElement("canvas");if(!e)return null;let i=e.getContext("webgl2",{failIfMajorPerformanceCaveat:!0});if(null==i&&(i=e.getContext("webgl2"),null!=i&&(t.majorPerformanceCaveat=!0,t.unmaskedRenderer=ft(i)?.getUnmaskedRenderer()??"unknown")),null==i)return i;t.available=!0,t.maxTextureSize=i.getParameter(i.MAX_TEXTURE_SIZE),t.supportsVertexShaderSamplers=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS)>0;const s=i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT);return s&&(t.supportsHighPrecisionFragment=s.precision>0),i}(t);return null==e||(t.supportsColorBufferFloat=null!==e.getExtension("EXT_color_buffer_float"),t.supportsColorBufferFloatBlend=null!==e.getExtension("EXT_float_blend"),t.supportsColorBufferHalfFloat=t.supportsColorBufferFloat||null!==e.getExtension("EXT_color_buffer_half_float")),t}(),mt}class _t{constructor(){this.available=!1,this.majorPerformanceCaveat=!1,this.maxTextureSize=0,this.supportsVertexShaderSamplers=!1,this.supportsHighPrecisionFragment=!1,this.supportsColorBufferFloat=!1,this.supportsColorBufferFloatBlend=!1,this.supportsColorBufferHalfFloat=!1,this.unmaskedRenderer="unloaded"}}var vt=i(59923),xt=i(43937),wt=i(36005);let At=class extends((0,g.dM)((0,A.j)((0,w.J)((0,f.f)((0,m.b)((0,v.q)((0,x.A)((0,_.d)((0,d.p)((0,o.M)(y.A))))))))))){constructor(...t){super(...t),this._spriteSourceMap=new Map,this.currentStyleInfo=null,this.isReference=null,this.operationalLayerType="VectorTileLayer",this.path=null,this.refreshInterval=0,this.style=null,this.tilemapCache=null,this.type="vector-tile",this.graphicOrigin=null}normalizeCtorArgs(t,e){return"string"==typeof t?{url:t,...e}:t}destroy(){if(this.sourceNameToSource)for(const t of Object.values(this.sourceNameToSource))t?.destroy();this.primarySource?.destroy(),this._spriteSourceMap.clear()}async prefetchResources(t){await this.loadSpriteSource(globalThis.devicePixelRatio||1,t)}load(t){const e=this.loadFromPortal({supportedTypes:["Vector Tile Service"],supportsData:!1},t).catch(a.QP).then(async()=>{if(!this.portalItem?.id)return;const e=`${this.portalItem.itemCdnUrl}/resources/styles/root.json`;(await(0,r.A)(e,{...t,query:{f:"json",...this.customParameters,token:this.apiKey},authMode:this.portalItem.portal.authMode})).data&&this.read({url:e},(0,nt.v)(this.portalItem,"portal-item"))}).catch(a.QP).then(()=>this._loadStyle(t));return this.addResolvingPromise(e),Promise.resolve(this)}get apiKey(){return super.apiKey}set apiKey(t){super.apiKey=t}get portalItem(){return super.portalItem}set portalItem(t){super.portalItem=t}get attributionDataUrl(){const t=this.currentStyleInfo,e=t?.serviceUrl&&(0,h.An)(t.serviceUrl);if(!e)return null;const i=this._getDefaultAttribution(e.path);return i?(0,h.a6)(i,{...this.customParameters,token:this.apiKey}):null}get capabilities(){const t=this.primarySource;return t?t.capabilities:{operations:{supportsExportTiles:!1,supportsTileMap:!1},exportTiles:null}}get fullExtent(){return this.primarySource?.fullExtent||null}get initialExtent(){return this.primarySource?.initialExtent||null}get parsedUrl(){return this.serviceUrl?(0,h.An)(this.serviceUrl):null}get serviceUrl(){return this.currentStyleInfo?.serviceUrl||null}get spatialReference(){return this.tileInfo?.spatialReference??null}get styleUrl(){return this.currentStyleInfo?.styleUrl||null}writeStyleUrl(t,e){t&&(0,h.BQ)(t)&&(t=`https:${t}`);const i=(0,lt.py)(t);e.styleUrl=(0,ot.e)(t,i)}get tileInfo(){const t=[];for(const e in this.sourceNameToSource)t.push(this.sourceNameToSource[e]);let e=this.primarySource?.tileInfo||new T.A;if(t.length>1)for(let i=0;i<t.length;i++)ct(e,t[i].tileInfo)&&(e=pt(e,t[i].tileInfo));return e}readTilemapCache(t,e){const i=e.capabilities?.includes("Tilemap");return i?new z.d({layer:this}):null}set url(t){if(!t)return void this._set("url",t);const e=(0,h.An)(t);this._set("url",e.path),e.query&&(this.customParameters={...this.customParameters,...e.query})}readVersion(t,e){return e.version?parseFloat(e.version):parseFloat(e.currentVersion)}async loadSpriteSource(t=1,e){if(!this._spriteSourceMap.has(t)){const i=gt().maxTextureSize,s=this.currentStyleInfo?.spriteUrl?(0,h.a6)(this.currentStyleInfo.spriteUrl,{...this.customParameters,token:this.apiKey}):null,r=new P({type:"url",spriteUrl:s,pixelRatio:t,spriteFormat:this.currentStyleInfo?.spriteFormat},i);await r.load(e),this._spriteSourceMap.set(t,r)}return this._spriteSourceMap.get(t)}async setSpriteSource(t,e){if(!t)return null;const i=gt().maxTextureSize,s=t.spriteUrl,r=s?(0,h.a6)(s,{...this.customParameters,token:this.apiKey}):null;if(!r&&"url"===t.type)return null;const n=new P(t,i);try{await n.load(e);const i=t.pixelRatio||1;return this._spriteSourceMap.clear(),this._spriteSourceMap.set(i,n),r&&this.currentStyleInfo&&(this.currentStyleInfo.spriteUrl=r),this.emit("spriteSource-change",{spriteSource:n}),n}catch(t){(0,a.QP)(t)}return null}async loadStyle(t,e){const i=t||this.style||this.url;return this._loadingTask&&"string"==typeof i&&this.url===i||(this._loadingTask?.abort(),this._loadingTask=(0,n.UT)(t=>(this._spriteSourceMap.clear(),this._getSourceAndStyle(i,{signal:t})),e)),this._loadingTask.promise}getStyleLayerId(t){return this.styleRepository.getStyleLayerId(t)}getStyleLayerIndex(t){return this.styleRepository.getStyleLayerIndex(t)}getPaintProperties(t){return(0,l.o8)(this.styleRepository?.getPaintProperties(t))}setPaintProperties(t,e){const i=this.styleRepository.isPainterDataDriven(t);this.styleRepository.setPaintProperties(t,e);const s=this.styleRepository.isPainterDataDriven(t);this.emit("paint-change",{layer:t,paint:e,isDataDriven:i||s})}getStyleLayer(t){return(0,l.o8)(this.styleRepository.getStyleLayer(t))}setStyleLayer(t,e){this.styleRepository.setStyleLayer(t,e),this.emit("style-layer-change",{layer:t,index:e})}deleteStyleLayer(t){this.styleRepository.deleteStyleLayer(t),this.emit("delete-style-layer",{layer:t})}getLayoutProperties(t){return(0,l.o8)(this.styleRepository.getLayoutProperties(t))}setLayoutProperties(t,e){this.styleRepository.setLayoutProperties(t,e),this.emit("layout-change",{layer:t,layout:e})}setStyleLayerVisibility(t,e){this.styleRepository.setStyleLayerVisibility(t,e),this.emit("style-layer-visibility-change",{layer:t,visibility:e})}getStyleLayerVisibility(t){return this.styleRepository.getStyleLayerVisibility(t)?"visible":"none"}write(t,e){return e?.origin&&!this.styleUrl?((0,vt.U4)(e,this,"style defined by JSON only are not supported"),null):super.write(t,e)}getTileUrl(t,e,i){return null}async _getSourceAndStyle(t,e){if(!t)throw new Error("invalid style!");const i=await async function(t,e){const i={source:null,sourceBase:null,sourceUrl:null,validatedSource:null,style:null,styleBase:null,styleUrl:null,sourceNameToSource:{},primarySourceName:"",spriteFormat:"png"},[s,r]="string"==typeof t?[t,null]:[null,t.jsonUrl];return await V(i,"esri",t,r,e),{layerDefinition:i.validatedSource,url:s,serviceUrl:i.sourceUrl,style:i.style,styleUrl:i.styleUrl,spriteUrl:i.style&&i.style.sprite&&H(i.styleBase,i.style.sprite),spriteFormat:i.spriteFormat,glyphsUrl:i.style&&i.style.glyphs&&H(i.styleBase,i.style.glyphs),sourceNameToSource:i.sourceNameToSource,primarySourceName:i.primarySourceName}}(t,{...e,query:{...this.customParameters,token:this.apiKey}});"webp"===i.spriteFormat&&(await function(){if(b)return b;const t={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};return b=new Promise(e=>{const i=new Image;i.onload=()=>{i.onload=i.onerror=null,e(i.width>0&&i.height>0)},i.onerror=()=>{i.onload=i.onerror=null,e(!1)},i.src="data:image/webp;base64,"+t.lossy}),b}()||(i.spriteFormat="png")),this._set("currentStyleInfo",{...i}),"string"==typeof t?(this.url=t,this.style=null):(this.url=null,this.style=t),this._set("sourceNameToSource",i.sourceNameToSource),this._set("primarySource",i.sourceNameToSource[i.primarySourceName]),this._set("styleRepository",new yt.A(i.style,!1)),this.read(i.layerDefinition,{origin:"service"}),this.emit("load-style")}_getDefaultAttribution(t){const e=t.match(/^https?:\/\/(?:basemaps|basemapsbeta|basemapsdev)(?:-api)?\.arcgis\.com(\/[^/]+)?\/arcgis\/rest\/services\/([^/]+(\/[^/]+)*)\/vectortileserver/i),i=["OpenBasemap_v2","OpenBasemap_GCS_v2","OpenStreetMap_v2","OpenStreetMap_Daylight_v2","OpenStreetMap_Export_v2","OpenStreetMap_FTS_v2","OpenStreetMap_GCS_v2","World_Basemap","World_Basemap_v2","World_Basemap_Export_v2","World_Basemap_GCS_v2","World_Basemap_WGS84","World_Contours_v2","World_Hillshade_v2"];if(!e)return;const s=e[2]&&e[2].toLowerCase();if(!s)return;const r=e[1]||"";for(const t of i)if(t.toLowerCase().includes(s))return(0,h.S8)(`//static.arcgis.com/attribution/Vector${r}/${t}`)}async _loadStyle(t){return this._loadingTask?.promise??this.loadStyle(null,t)}};(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"attributionDataUrl",null),(0,s.Cg)([(0,u.MZ)({type:["show","hide"]})],At.prototype,"listMode",void 0),(0,s.Cg)([(0,u.MZ)({json:{read:!0,write:!0}})],At.prototype,"blendMode",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1}})],At.prototype,"capabilities",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"currentStyleInfo",void 0),(0,s.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0,type:c.A})],At.prototype,"fullExtent",null),(0,s.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0,type:c.A})],At.prototype,"initialExtent",null),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],At.prototype,"isReference",void 0),(0,s.Cg)([(0,u.MZ)({type:["VectorTileLayer"]})],At.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"parsedUrl",null),(0,s.Cg)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],At.prototype,"path",void 0),(0,s.Cg)([(0,u.MZ)({type:Number,json:{write:!1,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],At.prototype,"refreshInterval",void 0),(0,s.Cg)([(0,u.MZ)()],At.prototype,"style",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"serviceUrl",null),(0,s.Cg)([(0,u.MZ)({type:p.A,readOnly:!0})],At.prototype,"spatialReference",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"styleRepository",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"sourceNameToSource",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"primarySource",void 0),(0,s.Cg)([(0,u.MZ)({type:String,readOnly:!0,json:{write:{ignoreOrigin:!0},origins:{"web-document":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],At.prototype,"styleUrl",null),(0,s.Cg)([(0,xt.K)(["portal-item","web-document"],"styleUrl")],At.prototype,"writeStyleUrl",null),(0,s.Cg)([(0,u.MZ)({json:{read:!1,origins:{service:{read:!1}}},readOnly:!0,type:T.A})],At.prototype,"tileInfo",null),(0,s.Cg)([(0,u.MZ)()],At.prototype,"tilemapCache",void 0),(0,s.Cg)([(0,wt.w)("service","tilemapCache",["capabilities","tileInfo"])],At.prototype,"readTilemapCache",null),(0,s.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0,value:"vector-tile"})],At.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0,clonable:!1})],At.prototype,"graphicOrigin",void 0),(0,s.Cg)([(0,u.MZ)({json:{origins:{"web-document":{read:{source:"styleUrl"}},"portal-item":{read:{source:"url"}}},write:!1,read:!1}}),(0,u.MZ)(S.OZ)],At.prototype,"url",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"version",void 0),(0,s.Cg)([(0,wt.w)("version",["version","currentVersion"])],At.prototype,"readVersion",null),At=(0,s.Cg)([(0,u.$K)("esri.layers.VectorTileLayer")],At);const St=At},52136(t,e,i){var s=i(32198),r=i(91429);i.d(e,["p",0,t=>{const e=t;let i=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(t){null!=t?this._override("apiKey",t):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,s.Cg)([(0,r.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,s.Cg)([(0,r.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},89186(t,e,i){var s=i(32198),r=i(91429),n=i(16930),l=i(87045),o=i(65509),a=i(25943),h=i(36005);i.d(e,["f",0,t=>{const e=t;let i=class extends e{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(t,e){return null!=e.minLOD&&null!=e.maxLOD?t:0}readMaxScale(t,e){return null!=e.minLOD&&null!=e.maxLOD?t:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(t,e,i){const s=e.capabilities?.toLowerCase().includes("tilemap");let{minLOD:r,maxLOD:n,minScale:h,maxScale:u}=e;if(null==r&&null==n&&(0!==h||0!==u)){const t=t=>Math.round(1e4*t)/1e4;h=t(h||e.tileInfo.lods[0].scale),u=t(u||e.tileInfo.lods[e.tileInfo.lods.length-1].scale);for(const i of e.tileInfo.lods){const e=t(i.scale);r=e>=h?i.level:r,n=e>=u?i.level:n}}if(s)return new a.d({layer:this,minLOD:r,maxLOD:n});if(e.tileInfo){const t=new l.A;return t.read(e.tileInfo,i),new o.A(t,r,n)}return null}};return(0,s.Cg)([(0,r.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,s.Cg)([(0,r.MZ)()],i.prototype,"minScale",void 0),(0,s.Cg)([(0,h.w)("service","minScale")],i.prototype,"readMinScale",null),(0,s.Cg)([(0,r.MZ)()],i.prototype,"maxScale",void 0),(0,s.Cg)([(0,h.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,s.Cg)([(0,r.MZ)({type:n.A})],i.prototype,"spatialReference",void 0),(0,s.Cg)([(0,r.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,s.Cg)([(0,r.MZ)({type:l.A})],i.prototype,"tileInfo",void 0),(0,s.Cg)([(0,r.MZ)()],i.prototype,"tilemapCache",void 0),(0,s.Cg)([(0,h.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,s.Cg)([(0,r.MZ)()],i.prototype,"version",void 0),i=(0,s.Cg)([(0,r.$K)("esri.layers.mixins.ArcGISCachedService")],i),i}])},18768(t,e,i){var s=i(32198),r=i(53966),n=i(91429),l=i(60694);i.d(e,["b",0,t=>{const e=t;let i=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const t=(0,l.qg)(this.url);if(t?.title)return t.title}return this._get("title")||""}set title(t){this._set("title",t)}set url(t){this._set("url",(0,l.Jf)(t,r.A.getLogger(this)))}};return(0,s.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,s.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,s.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],i),i}])},69208(t,e,i){var s=i(32198),r=i(91429);i.d(e,["d",0,t=>{const e=t;let i=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,s.Cg)([(0,r.MZ)({type:Object,json:{write:{overridePolicy:t=>({enabled:!!(t&&Object.keys(t).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,s.Cg)([(0,r.$K)("esri.layers.mixins.CustomParametersMixin")],i),i}])},8303(t,e,i){var s=i(32198),r=i(92602),n=i(70333),l=i(11254),o=i(60999),a=i(49186),h=i(36563),u=i(53966),c=i(97768),p=i(17676),y=i(84952),d=i(91429),f=i(77548),m=i(20655),g=i(80812),_=i(41318),v=i(10407),x=i(36005),w=i(43937);const A={credential:null,user:null};i.d(e,["A",0,t=>{const e=t;let S=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,i){if(e.itemId)return new g.default({id:e.itemId,portal:i?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:s}=await i.e(1204).then(i.bind(i,41204));return(0,p.Te)(e),await s({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,p.zf)(t)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async reloadFromPortal(t){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:e}=await i.e(1204).then(i.bind(i,41204)),s=new AbortController,r=(0,h.rE)(s);return this.addHandles(r,"reloadFromPortal"),await e({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},{signal:s.signal})}catch(t){throw(0,p.zf)(t)||u.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,p.QP)(t),!0)))}async setUserPrivileges(t,e){if(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:i,fullEdit:s},content:{updateItem:r}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",r)}catch(t){(0,p.QP)(t)}}async _fetchUserPrivileges(t,e){let i=this.portalItem;if(!t||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(e);const s=!n.id?.findCredential(this.url),r=t===i.id;if(r&&i.portal.user)return this._getUserPrivileges(i,s);let l,o;if(r)l=i.portal.url;else try{l=await(0,f.wI)(this.url,e)}catch(t){(0,p.QP)(t)}if(!l||!(0,y.b8)(l,i.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;o=await(n.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,p.QP)(t)}const a=!0,h=!1,u=!1;if(!o)return{features:{edit:a,fullEdit:h},content:{updateItem:u}};try{if(r?await i.reload():(i=new g.default({id:t,portal:{url:l}}),await i.load(e)),i.portal.user)return this._getUserPrivileges(i,s)}catch(t){(0,p.QP)(t)}return{features:{edit:a,fullEdit:h},content:{updateItem:u}}}_getUserPrivileges(t,e){const i=(0,v.It)(t);return e&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,p.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?n.id?.findCredential(this.url):null;if(!e)return!0;const i=A.credential===e?A.user:await this._fetchEditingUser(t);return A.credential=e,A.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const i=n.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const s=`${i.owningSystemUrl}/sharing/rest`,r=m.A.getDefault();if(r&&r.loaded&&(0,y.S8)(r.restUrl)===(0,y.S8)(s))return r.user;const a=`${s}/community/self`,h=null!=t?t.signal:null,u=await(0,o.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:h}));return u.ok?_.A.fromJSON(u.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const i=e?.portal,s=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return i&&s&&!(0,y.ut)(s.restUrl,i.restUrl)?(e.messages&&e.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,s.Cg)([(0,d.MZ)({type:g.default})],S.prototype,"portalItem",null),(0,s.Cg)([(0,x.w)("web-document","portalItem",["itemId"])],S.prototype,"readPortalItem",null),(0,s.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],S.prototype,"writePortalItem",null),(0,s.Cg)([(0,d.MZ)({clonable:!1})],S.prototype,"resourceReferences",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasEditingPrivileges",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasFullEditingPrivileges",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasUpdateItemPrivileges",void 0),S=(0,s.Cg)([(0,d.$K)("esri.layers.mixins.PortalLayer")],S),S}])},91806(t,e,i){i.d(e,{A:()=>a});var s,r=i(32198),n=i(25482),l=i(91429),o=i(56507);let a=class extends n.o{static{s=this}constructor(t){super(t),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new s({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,r.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,r.Cg)([(0,l.MZ)({type:o.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=s=(0,r.Cg)([(0,l.$K)("esri.layers.support.LOD")],a)},87045(t,e,i){i.d(e,{A:()=>v});var s,r=i(32198),n=i(66552),l=i(25482),o=i(86211),a=i(91429),h=i(56507),u=i(86738),c=i(16930),p=i(21325),y=i(28735),d=i(91806),f=i(72802),m=i(36005),g=i(43937);const _=new n.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let v=class extends l.o{static{s=this}static create(t={}){const{resolutionFactor:e=1,scales:i,size:r=256,spatialReference:n=c.A.WebMercator,numLODs:l=24}=t;if(!(0,p.fn)(n)){const t=[];if(i)for(let e=0;e<i.length;e++){const s=i[e];t.push(new d.A({level:e,scale:s,resolution:s}))}else{let e=5e-4;for(let i=l-1;i>=0;i--)t.unshift(new d.A({level:i,scale:e,resolution:e})),e*=2}return new s({dpi:96,lods:t,origin:new u.A(0,0,n),size:[r,r],spatialReference:n})}const a=(0,p.Vp)(n),h=t.origin?new u.A({x:t.origin.x,y:t.origin.y,spatialReference:n}):new u.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:n}:{x:0,y:0,spatialReference:n}),y=1/(39.37*(0,o.GA)(n)*96),f=[];if(i)for(let t=0;t<i.length;t++){const e=i[t],s=e*y;f.push(new d.A({level:t,scale:e,resolution:s}))}else{let t=(0,p.EA)(n)?512/r*591657527.5917094:256/r*591657527.591555;const i=Math.ceil(l/e);f.push(new d.A({level:0,scale:t,resolution:t*y}));for(let s=1;s<i;s++){const i=t/2**e,r=i*y;f.push(new d.A({level:s,scale:i,resolution:r})),t=i}}return new s({dpi:96,lods:f,origin:h,size:[r,r],spatialReference:n})}constructor(t){super(t),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:t,origin:e}=this;if(t&&e){const i=(0,p.Vp)(t);return t.isWrappable&&!!i&&Math.abs(i.origin[0]-e.x)<=i.dx}return!1}readOrigin(t,e){return u.A.fromJSON({spatialReference:e.spatialReference,...t})}set lods(t){let e=0,i=0;const s=[],r=this._levelToLOD={};t&&(e=-1/0,i=1/0,t.forEach(t=>{s.push(t.scale),e=t.scale>e?t.scale:e,i=t.scale<i?t.scale:i,r[t.level]=t})),this._set("scales",s),this._set("lods",t),this._initializeUpsampleLevels()}readSize(t,e){return[e.cols,e.rows]}writeSize(t,e){e.cols=t[0],e.rows=t[1]}zoomToScale(t){const e=this.scales;if(t<=0)return e[0];if(t>=e.length-1)return e[e.length-1];const i=Math.floor(t),s=i+1;return e[i]/(e[i]/e[s])**(t-i)}scaleToZoom(t){const e=this.scales,i=e.length-1;let s=0;for(;s<i;s++){const i=e[s],r=e[s+1];if(i<=t)return s;if(r===t)return s+1;if(i>t&&r<t)return s+Math.log(i/t)/Math.log(i/r)}return s}tileAt(t,e,i,s){const r=this.lodAt(t);if(!r)return null;let n,l;if("number"==typeof e)n=e,l=i;else if((0,p.aI)(e.spatialReference,this.spatialReference))n=e.x,l=e.y,s=i;else{const t=(0,y.Cv)(e,this.spatialReference);if(null==t)return null;n=t.x,l=t.y,s=i}const o=r.resolution*this.size[0],a=r.resolution*this.size[1];return s??=new f.U(0,0,0),s.level=t,s.row=Math.floor((this.origin.y-l)/a+.001),s.col=Math.floor((n-this.origin.x)/o+.001),this.updateTileInfo(s),s}updateTileInfo(t,e=0){if(!("extent"in t))return!1;let i=this.lodAt(t.level);if(!i&&1===e){const e=this.lods[this.lods.length-1];e.level<t.level&&(i=e)}if(!i)return!1;const s=t.level-i.level,r=i.resolution*this.size[0]/2**s,n=i.resolution*this.size[1]/2**s;return t.extent[0]=this.origin.x+t.col*r,t.extent[1]=this.origin.y-(t.row+1)*n,t.extent[2]=t.extent[0]+r,t.extent[3]=t.extent[1]+n,!0}upsampleTile(t){const e=this._upsampleLevels[t.level];return!(!e||-1===e.parentLevel||(t.level=e.parentLevel,t.row=Math.floor(t.row/e.factor+.001),t.col=Math.floor(t.col/e.factor+.001),this.updateTileInfo(t),0))}getTileBounds(t,e){const i=this.lodAt(e.level);if(null==i)return null;const{resolution:s}=i,r=s*this.size[0],n=s*this.size[1];return t[0]=this.origin.x+e.col*r,t[1]=this.origin.y-(e.row+1)*n,t[2]=t[0]+r,t[3]=t[1]+n,t}lodAt(t){return this._levelToLOD?.[t]??null}clone(){return s.fromJSON(this.write({}))}getCompatibleForVTL(t){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===t)return null;const e=(512===this.size[0]&&256===t?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===t&&0===e)return this;const i=[],r=this.lods.length-e;for(let t=0;t<r;t++){const s=t+e,{scale:r,resolution:n}=s>=0?this.lods[s]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new d.A({level:t,scale:r,resolution:n}))}return new s({size:[t,t],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const t=this.lods;this._upsampleLevels=[];let e=null;for(let i=0;i<t.length;i++){const s=t[i];this._upsampleLevels[s.level]={parentLevel:e?e.level:-1,factor:e?e.resolution/s.resolution:0},e=s}}};(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"compressionQuality",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"dpi",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{read:_.read,write:_.write,origins:{"web-scene":{read:!1,write:!1}}}})],v.prototype,"format",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"isWrappable",null),(0,r.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],v.prototype,"origin",void 0),(0,r.Cg)([(0,m.w)("origin")],v.prototype,"readOrigin",null),(0,r.Cg)([(0,a.MZ)({type:[d.A],value:null,json:{write:!0}})],v.prototype,"lods",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"scales",void 0),(0,r.Cg)([(0,a.MZ)({cast:t=>Array.isArray(t)?t:"number"==typeof t?[t,t]:[256,256]})],v.prototype,"size",void 0),(0,r.Cg)([(0,m.w)("size",["rows","cols"])],v.prototype,"readSize",null),(0,r.Cg)([(0,g.K)("size",{cols:{type:h.jz},rows:{type:h.jz}})],v.prototype,"writeSize",null),(0,r.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),v=s=(0,r.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],v)},65509(t,e,i){i.d(e,{A:()=>n});var s=i(49186),r=i(17676);class n{constructor(t,e=0,i=t.lods[t.lods.length-1].level){this.tileInfo=t,this.minLOD=e,this.maxLOD=i,t.lodAt(e)||(this.minLOD=t.lods[0].level),t.lodAt(i)||(this.maxLOD=t.lods[t.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(t,e,i){const s=this.tileInfo?.lodAt(t);return!s||t<this.minLOD||t>this.maxLOD?"unavailable":s.cols&&s.rows?i>=s.cols[0]&&i<=s.cols[1]&&e>=s.rows[0]&&e<=s.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(t,e,i,n){await(0,r.NO)(n);const l=this.getAvailability(t,e,i);if("unavailable"===l)throw new s.A("tile-map:tile-unavailable","Tile is not available",{level:t,row:e,col:i});return l}async fetchAvailabilityUpsample(t,e,i,s,n){await(0,r.NO)(n),s.level=t,s.row=e,s.col=i;const l=this.tileInfo;return l.updateTileInfo(s),this.fetchAvailability(t,e,i,n).catch(t=>{if((0,r.zf)(t))throw t;if(l.upsampleTile(s))return this.fetchAvailabilityUpsample(s.level,s.row,s.col,s,n);throw t})}}},72802(t,e,i){i.d(e,{U:()=>r});var s=i(19419);class r{constructor(t,e,i,r=(0,s.vt)()){this._level=t,this._row=e,this._col=i,this.extent=r}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(t){this._level=t,this._id=null}get row(){return this._row}set row(t){this._row=t,this._id=null}get col(){return this._col}set col(t){this._col=t,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(t){return new r(t.level,t.row,t.col,t.extent)}}},25943(t,e,i){i.d(e,{d:()=>A});var s,r=i(32198),n=i(11254),l=i(69622),o=i(49186),a=i(36563),h=(i(44208),i(66344)),u=i(15142),c=i(17676),p=i(36708),y=i(76030),d=i(84952),f=i(91429),m=i(72802),g=i(4718),_=i(69397);class v{constructor(t){!function(t){if(!t?.location)throw new o.A("tilemap:missing-location","Location missing from tilemap response");if(!1===t.valid)throw new o.A("tilemap:invalid","Tilemap response was marked as invalid");if(!t.data)throw new o.A("tilemap:missing-data","Data missing from tilemap response");if(!Array.isArray(t.data))throw new o.A("tilemap:data-mismatch","Data must be an array of numbers");if(t.data.length!==t.location.width*t.location.height)throw new o.A("tilemap:data-mismatch","Number of data items does not match width/height of tilemap")}(t);const{location:e,data:i}=t;this.location=Object.freeze((0,g.o8)(e));const s=this.location.width,r=this.location.height;let n=!0,l=!0;const a=function(t,e=!1){return t<=1024?e?new Array(t).fill(0):new Array(t):new Uint32Array(t)}(Math.ceil(s*r/32));let h=0;for(let t=0;t<i.length;t++){const e=t%32;i[t]?(l=!1,a[h]|=1<<e):n=!1,31===e&&++h}l?(this._availability="unavailable",this.byteSize=40):n?(this._availability="available",this.byteSize=40):(this._availability=a,this.byteSize=40+(0,_.Qf)(a))}getAvailability(t,e){if("unavailable"===this._availability||"available"===this._availability)return this._availability;const i=(t-this.location.top)*this.location.width+(e-this.location.left),s=i%32,r=i>>5,n=this._availability;return r<0||r>n.length?"unknown":n[r]&1<<s?"available":"unavailable"}static fromDefinition(t,e){const i=t.service.request||n.A,{row:s,col:r,width:l,height:a}=t,h={query:{f:"json"}};return e=e?{...h,...e}:h,i(function(t){let e;if(t.service.tileServers?.length){const i=t.service.tileServers;e=`${i&&i.length?i[t.row%i.length]:t.service.url}/tilemap/${t.level}/${t.row}/${t.col}/${t.width}/${t.height}`}else e=`${t.service.url}/tilemap/${t.level}/${t.row}/${t.col}/${t.width}/${t.height}`;const i=t.service.query;return i&&(e=`${e}?${i}`),e}(t),e).then(t=>t.data).catch(t=>{if(422===t?.details?.httpStatus)return{location:{top:s,left:r,width:l,height:a},valid:!0,data:new Array(l*a).fill(0)};throw t}).then(t=>{if(t.location&&(t.location.top!==s||t.location.left!==r||t.location.width!==l||t.location.height!==a))throw new o.A("tilemap:location-mismatch","Tilemap response for different location than requested",{response:t,definition:{top:s,left:r,width:l,height:a}});return v.fromJSON(t)})}static fromJSON(t){return Object.freeze(new v(t))}}function x(t){return`${t.level}/${t.row}/${t.col}/${t.width}/${t.height}`}function w(t,e,i){return new o.A("tile-map:tile-unavailable","Tile is not available",{level:t,row:e,col:i})}let A=class extends l.A{static{s=this}constructor(t){super(t),this._pendingTilemapRequests={},this.request=n.A,this.size=32,this._prefetchingEnabled=!0}initialize(){this._tilemapCache=new h.q(2097152),this.addHandles((0,p.wB)(()=>{const{layer:t}=this;return[t?.parsedUrl,t?.tileServers,t?.apiKey,t?.customParameters]},()=>this._initializeTilemapDefinition(),p.Vh))}get effectiveMinLOD(){return this.minLOD??this.layer.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.layer.tileInfo.lods[this.layer.tileInfo.lods.length-1].level}getAvailability(t,e,i){if(!this.layer.tileInfo.lodAt(t)||t<this.effectiveMinLOD||t>this.effectiveMaxLOD)return"unavailable";const s=this._tilemapFromCache(t,e,i,this._tmpTilemapDefinition);return s?s.getAvailability(e,i):"unknown"}fetchAvailability(t,e,i,s){return!this.layer.tileInfo.lodAt(t)||t<this.effectiveMinLOD||t>this.effectiveMaxLOD?Promise.reject(w(t,e,i)):this._fetchTilemap(t,e,i,s).catch(t=>t).then(s=>{if(s instanceof v){const r=s.getAvailability(e,i);if("unavailable"===r)throw w(t,e,i);return r}if((0,c.zf)(s))throw s;return"unknown"})}fetchAvailabilityUpsample(t,e,i,s,r){s.level=t,s.row=e,s.col=i;const n=this.layer.tileInfo;n.updateTileInfo(s);const l=this.fetchAvailability(t,e,i,r).catch(t=>{if((0,c.zf)(t))throw t;if(n.upsampleTile(s))return this.fetchAvailabilityUpsample(s.level,s.row,s.col,s,r);throw t});return this._fetchAvailabilityUpsamplePrefetch(t,e,i,r,l),l}async _fetchAvailabilityUpsamplePrefetch(t,e,i,r,n){if(!this._prefetchingEnabled)return;const l=`prefetch-${t}-${e}-${i}`;if(this.hasHandles(l))return;const o=new AbortController;n.then(()=>o.abort(),()=>o.abort());let h=!1;const u=(0,a.hA)(()=>{h||(h=!0,o.abort())});if(this.addHandles(u,l),await(0,y.md)(10,o.signal).catch(()=>{}),h||(h=!0,this.removeHandles(l)),(0,c.G4)(o))return;const p=new m.U(t,e,i),d={...r,signal:o.signal},f=this.layer.tileInfo;for(let t=0;s._prefetches.length<s._maxPrefetch&&f.upsampleTile(p);++t){const t=this.fetchAvailability(p.level,p.row,p.col,d);s._prefetches.push(t);const e=()=>{s._prefetches.removeUnordered(t)};t.then(e,e)}}static{this._maxPrefetch=4}static{this._prefetches=new u.A({initialSize:s._maxPrefetch})}static cleanupTilemapCache(){this._prefetches.prune()}_fetchTilemap(t,e,i,s){if(!this.layer.tileInfo.lodAt(t)||t<this.effectiveMinLOD||t>this.effectiveMaxLOD)return Promise.reject(new o.A("tilemap-cache:level-unavailable",`Level ${t} is unavailable in the service`));const r=this._tmpTilemapDefinition,n=this._tilemapFromCache(t,e,i,r);if(n)return Promise.resolve(n);const l=s?.signal;return s={...s,signal:null},new Promise((t,e)=>{(0,c.u7)(l,()=>e((0,c.NK)()));const i=x(r);let n=this._pendingTilemapRequests[i];if(!n){n=v.fromDefinition(r,s).then(t=>(this._tilemapCache.put(i,t,t.byteSize),t));const t=()=>{delete this._pendingTilemapRequests[i]};this._pendingTilemapRequests[i]=n,n.then(t,t)}n.then(t,e)})}_initializeTilemapDefinition(){if(!this.layer.parsedUrl)return;const{parsedUrl:t,apiKey:e,customParameters:i}=this.layer;this._tilemapCache.clear(),this._tmpTilemapDefinition={service:{url:t.path,query:(0,d.x0)({...t.query,...i,token:e??t.query?.token}),tileServers:this.layer.tileServers,request:this.request},width:this.size,height:this.size,level:0,row:0,col:0}}_tilemapFromCache(t,e,i,s){s.level=t,s.row=e-e%this.size,s.col=i-i%this.size;const r=x(s);return this._tilemapCache.get(r)}get test(){}};(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"layer",void 0),(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"minLOD",void 0),(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"maxLOD",void 0),(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"request",void 0),(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"size",void 0),A=s=(0,r.Cg)([(0,f.$K)("esri.layers.support.TilemapCache")],A)},88788(t,e,i){i.d(e,{m:()=>l,v:()=>n});var s=i(84952),r=i(20655);function n(t,e){return{...o(t,e),readResourcePaths:[]}}function l(t,e,i){const r=(0,s.An)(i?.forceNewItemContext?null:t.itemUrl);return{...o(t,e,i),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:r?{rootPath:r.path,writtenUrls:[]}:null,resources:i?.withResources?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function o(t,e,i){return{origin:e,url:(0,s.An)(i?.forceNewItemContext?null:t.itemUrl),portal:t.portal||r.A.getDefault(),portalItem:t}}},10407(t,e,i){i.d(e,{It:()=>y,LG:()=>l,OM:()=>h,Sm:()=>u,Y:()=>o,bK:()=>a,sQ:()=>c});var s=i(99917),r=i(16930),n=i(28735);function l(t,e){if(!o(t,e)){const i=t.typeKeywords;i?i.push(e):t.typeKeywords=[e]}}function o(t,e){return!!t.typeKeywords?.includes(e)}function a(t){return o(t,p.HOSTED_SERVICE)}function h(t,e){const i=t.typeKeywords;if(i){const t=i.indexOf(e);t>-1&&i.splice(t,1)}}function u(t,e,i){i?l(t,e):h(t,e)}async function c(t){const e=t.clone().normalize();let i;if(e.length>1)for(const t of e)i?t.width>i.width&&(i=t):i=t;else i=e[0];return async function(t){const e=t.spatialReference;if(e.isWGS84)return t.clone();if(e.isWebMercator)return(0,n.ci)(t);const i=r.A.WGS84;return await(0,s.initializeProjection)(e,i),(0,s.project)(t,i)}(i)}const p={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function y(t){const{portal:e,isOrgItem:i,itemControl:s}=t,r=e.user?.privileges;let n=!r||r.includes("features:user:edit"),l=!!i&&!!r?.includes("features:user:fullEdit");const o="update"===s||"admin"===s;return o?l=n=!0:l&&(n=!0),{features:{edit:n,fullEdit:l},content:{updateItem:o}}}i.d(e,["mm",0,p])},13195(t,e,i){i.d(e,{GW:()=>m,IU:()=>g,Wh:()=>p,cP:()=>x,p6:()=>f,ru:()=>v,s3:()=>_,wV:()=>d,yM:()=>w,z0:()=>y});var s=i(95108),r=i(6774);const n=Number.POSITIVE_INFINITY,l=Math.PI,o=2*l,a=128/l,h=256/360,u=l/180,c=1/Math.LN2;function p(t,e){return(t%=e)>=0?t:t+e}function y(t){return p(t*a,256)}function d(t){return p(t*h,256)}function f(t){return Math.log(t)*c}function m(t,e,i){return t*(1-i)+e*i}function g(t){return 8+Math.max(16*(t-14),0)}function _(t,e,i){let s,r,n,l=0;for(const o of i){s=o.length;for(let i=1;i<s;++i)r=o[i-1],n=o[i],r.y>e!=n.y>e&&((n.x-r.x)*(e-r.y)-(n.y-r.y)*(t-r.x)>0?l++:l--)}return 0!==l}function v(t,e,i,r){let n,l,o,a;const h=r*r;for(const r of i){const i=r.length;if(!(i<2)){n=r[0].x,l=r[0].y;for(let u=1;u<i;++u){if(o=r[u].x,a=r[u].y,(0,s.Ng)(t,e,n,l,o,a)<h)return!0;n=o,l=a}}}return!1}function x(t,e){if(0===e||Number.isNaN(e))return t;const i=[],s=new r.bR(0,0),n=new r.bR(0,0),l=new r.bR(0,0);for(let o=0;o<t.length;o++){const a=t[o],h=[];for(let t=0;t<a.length;t++){const i=a[t-1],o=a[t],u=a[t+1];0===t?s.setCoords(0,0):s.assignSub(o,i).normalize().rightPerpendicular(),t===a.length-1?n.setCoords(0,0):n.assignSub(u,o).normalize().rightPerpendicular(),l.assignAdd(s,n).normalize();const c=l.x*n.x+l.y*n.y;0!==c&&l.scale(1/c),h.push(r.bR.add(o,l.scale(e)))}i.push(h)}return i}function w(t,e,i,s){const n=new r.bR(t[0],t[1]);if(n.scale(s),"viewport"===e){const t=-i*(Math.PI/180),e=Math.cos(t),s=Math.sin(t);n.rotate(e,s)}return n}i.d(e,["Jo",0,l,"MG",0,n,"aA",0,h,"os",0,u,"pJ",0,o])},44159(t,e,i){i.d(e,{A:()=>r});var s=i(93687);class r{static{this.pool=new s.A(()=>new r(""),null,null,25,50)}static getId(t,e,i,s){return"object"==typeof t?`${t.level}/${t.row}/${t.col}/${t.world}`:`${t}/${e}/${i}/${s}`}constructor(t,e,i,s){this.set(t,e,i,s)}get key(){return this}get id(){return this.toString()}get normalizedId(){return`${this.level}/${this.row}/${this.col}`}set id(t){this.set(t)}get hash(){const t=4095&this.row,e=4095&this.col,i=63&this.level;return(3&this.world)<<30|e<<22|t<<8|i}acquire(t,e,i,s){this.set(t,e,i,s)}contains(t){const e=t.level-this.level;return e>=0&&this.row===t.row>>e&&this.col===t.col>>e&&this.world===t.world}containsChild(t){const e=t.level-this.level;return e>0&&this.row===t.row>>e&&this.col===t.col>>e&&this.world===t.world}equals(t){return this.level===t.level&&this.row===t.row&&this.col===t.col&&this.world===t.world}clone(){return new r(this)}release(){this.level=0,this.row=0,this.col=0,this.world=0}set(t,e,i,s){if(null==t)this.level=0,this.row=0,this.col=0,this.world=0;else if("object"==typeof t)this.level=t.level||0,this.row=t.row||0,this.col=t.col||0,this.world=t.world||0;else if("string"==typeof t){const[e,i,s,r]=t.split("/");this.level=parseFloat(e),this.row=parseFloat(i),this.col=parseFloat(s),this.world=parseFloat(r)}else this.level=+t,this.row=+e,this.col=+i,this.world=+s||0;return this}toString(){return`${this.level}/${this.row}/${this.col}/${this.world}`}getParentKey(){return this.level<=0?null:new r(this.level-1,this.row>>1,this.col>>1,this.world)}getNormalizedNeighbor(t,e,i){const s=this.clone();return s.col+=t,s.row+=e,i.normalizeKey(s),s}getChildKeys(){const t=this.level+1,e=this.row<<1,i=this.col<<1,s=this.world;return[new r(t,e,i,s),new r(t,e,i+1,s),new r(t,e+1,i,s),new r(t,e+1,i+1,s)]}compareRowMajor(t){return this.row<t.row?-1:this.row>t.row?1:this.col<t.col?-1:this.col>t.col?1:0}}},78553(t,e,i){i.d(e,{D:()=>n,p:()=>r});var s=i(56507);function r(t){const e=(0,s.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function n(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);