@arcgis/core 4.27.0-next.20230412 → 4.27.0-next.20230413

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 (302) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/0948a40569b2408edefb.js +1 -0
  3. package/assets/esri/core/workers/chunks/{e9ecfd3ee78492b797cd.js → 0b3d4bcf004c1394bc69.js} +1 -1
  4. package/assets/esri/core/workers/chunks/0d080dd1ca6a71597409.js +1 -0
  5. package/assets/esri/core/workers/chunks/0f04978e8342d9a35e59.js +1 -0
  6. package/assets/esri/core/workers/chunks/0f52e49eb552fbd8cec0.js +1 -0
  7. package/assets/esri/core/workers/chunks/0fb4c62a0676090b1dff.js +1 -0
  8. package/assets/esri/core/workers/chunks/1255f9a6e86aa4120bb4.js +1 -0
  9. package/assets/esri/core/workers/chunks/192e3eeed50768c77c65.js +1 -0
  10. package/assets/esri/core/workers/chunks/1c13b6014943f6190b32.js +1 -0
  11. package/assets/esri/core/workers/chunks/1fe31a412479815e5e2d.js +1 -0
  12. package/assets/esri/core/workers/chunks/2014f2cf5f4cb070f59c.js +1 -0
  13. package/assets/esri/core/workers/chunks/20ad44b1a7adfed4c6c4.js +1 -0
  14. package/assets/esri/core/workers/chunks/277a477446d6644aada6.js +1 -0
  15. package/assets/esri/core/workers/chunks/2eefaaede5fc2537421c.js +1 -0
  16. package/assets/esri/core/workers/chunks/308f3811dfa71f619279.js +1 -0
  17. package/assets/esri/core/workers/chunks/384739a9e2612500a51a.js +1 -0
  18. package/assets/esri/core/workers/chunks/38ebd270e6ffa60791bb.js +1 -0
  19. package/assets/esri/core/workers/chunks/{87b55ff95167ad944649.js → 3978f4f68ada540ee3a3.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{b84b15b10624ec6a1896.js → 3d6ec42d92895cc6d060.js} +1 -1
  21. package/assets/esri/core/workers/chunks/3f18ad02612e6884f848.js +1 -0
  22. package/assets/esri/core/workers/chunks/4538a225f4ef2767b3f3.js +1 -0
  23. package/assets/esri/core/workers/chunks/4a2a0091cd830b6a1729.js +1 -0
  24. package/assets/esri/core/workers/chunks/51cfb708179d454ea76e.js +1 -0
  25. package/assets/esri/core/workers/chunks/{622139ef8f7181e48cd0.js → 56a343f7dbac311917d2.js} +1 -1
  26. package/assets/esri/core/workers/chunks/6053a78aef54b4a5b172.js +1 -0
  27. package/assets/esri/core/workers/chunks/6c54579981a7bd483f1a.js +1 -0
  28. package/assets/esri/core/workers/chunks/6e3b4fa0c70db70c3d1e.js +1 -0
  29. package/assets/esri/core/workers/chunks/6eb6ddeef739f73d5ed2.js +1 -0
  30. package/assets/esri/core/workers/chunks/714d911412d1e111078b.js +1 -0
  31. package/assets/esri/core/workers/chunks/71d24e3f2e697e9b13ff.js +1 -0
  32. package/assets/esri/core/workers/chunks/71f973d381814275e50d.js +1 -0
  33. package/assets/esri/core/workers/chunks/740dc67038f554431f1b.js +1 -0
  34. package/assets/esri/core/workers/chunks/766f397dfdfbc0eb72d1.js +1 -0
  35. package/assets/esri/core/workers/chunks/{1544568c32b0ed0fd788.js → 77058782547a9c2dca5a.js} +1 -1
  36. package/assets/esri/core/workers/chunks/794acfd34b9bf4b1985b.js +1 -0
  37. package/assets/esri/core/workers/chunks/7a204c98b8e096917ff2.js +1 -0
  38. package/assets/esri/core/workers/chunks/7a820e6208e4a02e9bbc.js +1 -0
  39. package/assets/esri/core/workers/chunks/7df8073c232d70ac4a82.js +1 -0
  40. package/assets/esri/core/workers/chunks/80bf6cf1bef17215bca4.js +1 -0
  41. package/assets/esri/core/workers/chunks/83f7e22a12d90ef93e62.js +1 -0
  42. package/assets/esri/core/workers/chunks/8c747a8c05aa1b099c3d.js +1 -0
  43. package/assets/esri/core/workers/chunks/8d2da875a28fa08d1b7a.js +1 -0
  44. package/assets/esri/core/workers/chunks/{801b5d79422028469006.js → 8d41305509fedb3603ac.js} +1 -1
  45. package/assets/esri/core/workers/chunks/8fec9979ae2b0e3a878f.js +1 -0
  46. package/assets/esri/core/workers/chunks/93e17ab3bc56ceea928d.js +1 -0
  47. package/assets/esri/core/workers/chunks/9af7179bcbdcfb3c3a6e.js +1 -0
  48. package/assets/esri/core/workers/chunks/a0b968253afcf0cb0316.js +1 -0
  49. package/assets/esri/core/workers/chunks/{5a25079cd79e90757cb1.js → a7079f692049e708db9d.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{aebc5091bd4159197ce0.js → a75cb9b28b7ea1b30e7e.js} +1 -1
  51. package/assets/esri/core/workers/chunks/ac2633ce3a1bc889fdf4.js +1 -0
  52. package/assets/esri/core/workers/chunks/b717f0def3b009852ddb.js +1 -0
  53. package/assets/esri/core/workers/chunks/b996d43f37ad3d6bb64d.js +1 -0
  54. package/assets/esri/core/workers/chunks/c25aa08b869f2777dc26.js +1 -0
  55. package/assets/esri/core/workers/chunks/{666e6bdca88a48b0f609.js → c2aeceb556e4b6cccef3.js} +1 -1
  56. package/assets/esri/core/workers/chunks/c2fd0130368ae3d8637b.js +1 -0
  57. package/assets/esri/core/workers/chunks/c646dc9da08b509e39d6.js +1 -0
  58. package/assets/esri/core/workers/chunks/{a456548053a703e3702b.js → ccf4420c89c54bc19c1f.js} +1 -1
  59. package/assets/esri/core/workers/chunks/d0ff496834686dbfe29f.js +1 -0
  60. package/assets/esri/core/workers/chunks/d35d8b02b884fdda4ecc.js +1 -0
  61. package/assets/esri/core/workers/chunks/{525a623d59ed68593a3d.js → d59274ac695dfcff1143.js} +1 -1
  62. package/assets/esri/core/workers/chunks/df7dcd035997881cf2ef.js +1 -0
  63. package/assets/esri/core/workers/chunks/e5352dc8983d06d4ee0f.js +1 -0
  64. package/assets/esri/core/workers/chunks/e965d10225fd4e2f26fa.js +1 -0
  65. package/assets/esri/core/workers/chunks/f05634909c9449533193.js +1 -0
  66. package/assets/esri/core/workers/chunks/f0c62bb406bb93b1408a.js +1 -0
  67. package/assets/esri/core/workers/chunks/f69bc07736c57ed09e8e.js +1 -0
  68. package/assets/esri/core/workers/chunks/fa059d94d5051ded85b3.js +1 -0
  69. package/assets/esri/core/workers/chunks/fa169378e2352266f2e7.js +1 -0
  70. package/assets/esri/core/workers/chunks/ff1c5281445d2bed7b05.js +1 -0
  71. package/assets/esri/core/workers/chunks/ff30e2230de91e2e7f70.js +1 -0
  72. package/assets/esri/core/workers/chunks/ff84934441b9d7b63853.js +1 -0
  73. package/assets/esri/themes/base/fonts/cdn.scss +1 -0
  74. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-arabic.woff2 +0 -0
  75. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-cyrillic.woff2 +0 -0
  76. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-ext.woff2 +0 -0
  77. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-georgian.woff2 +0 -0
  78. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-greek.woff2 +0 -0
  79. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-hebrew.woff2 +0 -0
  80. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-math.woff2 +0 -0
  81. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-thai.woff2 +0 -0
  82. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-vietnamese.woff2 +0 -0
  83. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02.woff2 +0 -0
  84. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-arabic.woff2 +0 -0
  85. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-cyrillic.woff2 +0 -0
  86. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-ext.woff2 +0 -0
  87. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-georgian.woff2 +0 -0
  88. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-greek.woff2 +0 -0
  89. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-hebrew.woff2 +0 -0
  90. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-math.woff2 +0 -0
  91. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-thai.woff2 +0 -0
  92. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-vietnamese.woff2 +0 -0
  93. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7.woff2 +0 -0
  94. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-arabic.woff2 +0 -0
  95. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-cyrillic.woff2 +0 -0
  96. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-ext.woff2 +0 -0
  97. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-georgian.woff2 +0 -0
  98. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-greek.woff2 +0 -0
  99. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-hebrew.woff2 +0 -0
  100. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-math.woff2 +0 -0
  101. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-thai.woff2 +0 -0
  102. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-vietnamese.woff2 +0 -0
  103. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688.woff2 +0 -0
  104. package/assets/esri/themes/base/fonts/fonts/3ae1e25e-3aa6-4061-a016-a079159f9d65.woff2 +0 -0
  105. package/assets/esri/themes/base/fonts/fonts/41331c3c-3759-4462-8695-33c9a21b6a5b.woff2 +0 -0
  106. package/assets/esri/themes/base/fonts/fonts/94aa531e-7746-4df0-bb6e-349891f2eda5.woff2 +0 -0
  107. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-arabic.woff2 +0 -0
  108. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-cyrillic.woff2 +0 -0
  109. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-ext.woff2 +0 -0
  110. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-georgian.woff2 +0 -0
  111. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-greek.woff2 +0 -0
  112. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-hebrew.woff2 +0 -0
  113. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-math.woff2 +0 -0
  114. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-thai.woff2 +0 -0
  115. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-vietnamese.woff2 +0 -0
  116. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939.woff2 +0 -0
  117. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-cyrillic.woff2 +0 -0
  118. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-ext.woff2 +0 -0
  119. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-greek.woff2 +0 -0
  120. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-hebrew.woff2 +0 -0
  121. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-math.woff2 +0 -0
  122. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-vietnamese.woff2 +0 -0
  123. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d.woff2 +0 -0
  124. package/assets/esri/themes/base/fonts/fonts.scss +205 -129
  125. package/assets/esri/themes/base/widgets/_Daylight.scss +4 -0
  126. package/assets/esri/themes/base/widgets/_Tooltip.scss +1 -0
  127. package/assets/esri/themes/dark/main.css +8 -1
  128. package/assets/esri/themes/light/main.css +8 -1
  129. package/assets/esri/themes/light/view.css +8 -1
  130. package/chunks/Jpg.js +1 -1
  131. package/chunks/SunCalc.js +1 -1
  132. package/chunks/Zlib.js +1 -1
  133. package/chunks/ajv.bundle.js +1 -1
  134. package/chunks/ar.js +1 -1
  135. package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
  136. package/chunks/arcgis-knowledge-client-core.js +1 -1
  137. package/chunks/basis_transcoder.js +1 -1
  138. package/chunks/bg_BG.js +1 -1
  139. package/chunks/bs_BA.js +1 -1
  140. package/chunks/builtins.js +1 -1
  141. package/chunks/ca_ES.js +1 -1
  142. package/chunks/cs_CZ.js +1 -1
  143. package/chunks/da_DK.js +1 -1
  144. package/chunks/de_CH.js +1 -1
  145. package/chunks/de_DE.js +1 -1
  146. package/chunks/earcut.js +1 -1
  147. package/chunks/el_GR.js +1 -1
  148. package/chunks/en_CA.js +1 -1
  149. package/chunks/en_US.js +1 -1
  150. package/chunks/es_ES.js +1 -1
  151. package/chunks/et_EE.js +1 -1
  152. package/chunks/fi_FI.js +1 -1
  153. package/chunks/fr_FR.js +1 -1
  154. package/chunks/geometryEngineBase.js +1 -1
  155. package/chunks/he_IL.js +1 -1
  156. package/chunks/hr_HR.js +1 -1
  157. package/chunks/hu_HU.js +1 -1
  158. package/chunks/i3s.js +1 -1
  159. package/chunks/id_ID.js +1 -1
  160. package/chunks/index.js +1 -1
  161. package/chunks/index2.js +1 -1
  162. package/chunks/it_IT.js +1 -1
  163. package/chunks/ja_JP.js +1 -1
  164. package/chunks/ko_KR.js +1 -1
  165. package/chunks/lclayout.js +1 -1
  166. package/chunks/lerc-wasm.js +1 -1
  167. package/chunks/libtess-asm.js +1 -1
  168. package/chunks/libtess.js +1 -1
  169. package/chunks/lt_LT.js +1 -1
  170. package/chunks/lv_LV.js +1 -1
  171. package/chunks/nb_NO.js +1 -1
  172. package/chunks/nl_NL.js +1 -1
  173. package/chunks/pe-wasm.js +1 -1
  174. package/chunks/pl_PL.js +1 -1
  175. package/chunks/pt_BR.js +1 -1
  176. package/chunks/pt_PT.js +1 -1
  177. package/chunks/quickselect.js +1 -1
  178. package/chunks/ro_RO.js +1 -1
  179. package/chunks/ru_RU.js +1 -1
  180. package/chunks/sk_SK.js +1 -1
  181. package/chunks/sl_SL.js +1 -1
  182. package/chunks/sr_RS.js +1 -1
  183. package/chunks/sv_SE.js +1 -1
  184. package/chunks/th_TH.js +1 -1
  185. package/chunks/tr_TR.js +1 -1
  186. package/chunks/uk_UA.js +1 -1
  187. package/chunks/vi_VN.js +1 -1
  188. package/chunks/vxlLayer.js +1 -1
  189. package/chunks/zh_Hans.js +1 -1
  190. package/chunks/zh_Hant.js +1 -1
  191. package/core/sql/WhereGrammar.js +1 -1
  192. package/interfaces.d.ts +42 -4
  193. package/layers/effects/parser.js +1 -1
  194. package/networks/UtilityNetwork.js +1 -1
  195. package/package.json +1 -1
  196. package/support/revision.js +1 -1
  197. package/symbols/cim/cimAnalyzer.js +1 -1
  198. package/time/legacyTimeZoneMap.js +1 -1
  199. package/assets/esri/core/workers/chunks/075aef0ea127a96312a3.js +0 -1
  200. package/assets/esri/core/workers/chunks/0761672964d9decc5dc3.js +0 -1
  201. package/assets/esri/core/workers/chunks/17a989e25c7fb9a80b72.js +0 -1
  202. package/assets/esri/core/workers/chunks/1b5bdd80db9a1a410ff8.js +0 -1
  203. package/assets/esri/core/workers/chunks/1b5dce4654bf7a2b54d3.js +0 -1
  204. package/assets/esri/core/workers/chunks/1b6ae140a9bee1c166d1.js +0 -1
  205. package/assets/esri/core/workers/chunks/1c9fff56d6e1cc3df63f.js +0 -1
  206. package/assets/esri/core/workers/chunks/1cdc14124617923b5c61.js +0 -1
  207. package/assets/esri/core/workers/chunks/2a6902994fc7c104d76e.js +0 -1
  208. package/assets/esri/core/workers/chunks/2dc876bf9edccddbb835.js +0 -1
  209. package/assets/esri/core/workers/chunks/31299c139d4dadc065b1.js +0 -1
  210. package/assets/esri/core/workers/chunks/324c7064ac8c456c9be7.js +0 -1
  211. package/assets/esri/core/workers/chunks/365c581d606135a59ba0.js +0 -1
  212. package/assets/esri/core/workers/chunks/597f73478dfd73a52d6e.js +0 -1
  213. package/assets/esri/core/workers/chunks/5b4f8e6e900ced669697.js +0 -1
  214. package/assets/esri/core/workers/chunks/5bae7057b4472cde9d78.js +0 -1
  215. package/assets/esri/core/workers/chunks/5e3079b3666df3a9d235.js +0 -1
  216. package/assets/esri/core/workers/chunks/65d24661919c2423ba98.js +0 -1
  217. package/assets/esri/core/workers/chunks/6788d0654735201cb07a.js +0 -1
  218. package/assets/esri/core/workers/chunks/6f67ea380ad67cd774e9.js +0 -1
  219. package/assets/esri/core/workers/chunks/7570ec6a64a88ddc0fdd.js +0 -1
  220. package/assets/esri/core/workers/chunks/776b76ee275a41fff456.js +0 -1
  221. package/assets/esri/core/workers/chunks/7b8c7d69da5454d43456.js +0 -1
  222. package/assets/esri/core/workers/chunks/7d0cba1e10523a27af3e.js +0 -1
  223. package/assets/esri/core/workers/chunks/7e86e0b7791479b73788.js +0 -1
  224. package/assets/esri/core/workers/chunks/83d30e558c8d7cae150a.js +0 -1
  225. package/assets/esri/core/workers/chunks/83e684b536b24d9ccc71.js +0 -1
  226. package/assets/esri/core/workers/chunks/859fbe82c137172edcac.js +0 -1
  227. package/assets/esri/core/workers/chunks/89ca535589b325c79724.js +0 -1
  228. package/assets/esri/core/workers/chunks/8c614117d9c653cb629c.js +0 -1
  229. package/assets/esri/core/workers/chunks/8de6d64d15240a166ab9.js +0 -1
  230. package/assets/esri/core/workers/chunks/913f2337f2e83f9c073d.js +0 -1
  231. package/assets/esri/core/workers/chunks/947770d8d9f98e3bd207.js +0 -1
  232. package/assets/esri/core/workers/chunks/96e9fa7afb1961354419.js +0 -1
  233. package/assets/esri/core/workers/chunks/99bfa5cbad8059c53fdd.js +0 -1
  234. package/assets/esri/core/workers/chunks/a1f043dff7953d6dccc7.js +0 -1
  235. package/assets/esri/core/workers/chunks/a2969ddd0769be471ed0.js +0 -1
  236. package/assets/esri/core/workers/chunks/a624b66576e6eaf4467d.js +0 -1
  237. package/assets/esri/core/workers/chunks/aa4640a0207e0be224e2.js +0 -1
  238. package/assets/esri/core/workers/chunks/ab37d5490f0677009e23.js +0 -1
  239. package/assets/esri/core/workers/chunks/b451d014f9387c67e1df.js +0 -1
  240. package/assets/esri/core/workers/chunks/b86f9181eb82a8917511.js +0 -1
  241. package/assets/esri/core/workers/chunks/be2e5b454b7f1ccda9a7.js +0 -1
  242. package/assets/esri/core/workers/chunks/c35e921b4f2392d65f8d.js +0 -1
  243. package/assets/esri/core/workers/chunks/c419a26e2b7d20d99cef.js +0 -1
  244. package/assets/esri/core/workers/chunks/c72be2fe05533b46cb33.js +0 -1
  245. package/assets/esri/core/workers/chunks/c84a1acb165ab8bcf850.js +0 -1
  246. package/assets/esri/core/workers/chunks/ccc6b52fc947bab574ac.js +0 -1
  247. package/assets/esri/core/workers/chunks/cd0f8fe877532c0a1fe6.js +0 -1
  248. package/assets/esri/core/workers/chunks/ce0d279b75b597988e71.js +0 -1
  249. package/assets/esri/core/workers/chunks/d4338bc4a99b71c44dc2.js +0 -1
  250. package/assets/esri/core/workers/chunks/db3df4f42c72ed48c527.js +0 -1
  251. package/assets/esri/core/workers/chunks/e7d5e22065218ac436a9.js +0 -1
  252. package/assets/esri/core/workers/chunks/edefb561c03a60f086bc.js +0 -1
  253. package/assets/esri/core/workers/chunks/f115086971b329d840b6.js +0 -1
  254. package/assets/esri/core/workers/chunks/f9f1bbd7930100e84e50.js +0 -1
  255. package/assets/esri/core/workers/chunks/fcf9d94c39479a0e0ad7.js +0 -1
  256. package/assets/esri/core/workers/chunks/fdbc08b9da415b9b4447.js +0 -1
  257. package/assets/esri/themes/base/fonts/fonts/014f2daa-c310-4a36-b9fd-79a8e0c48d44-ext.woff2 +0 -0
  258. package/assets/esri/themes/base/fonts/fonts/014f2daa-c310-4a36-b9fd-79a8e0c48d44-greek.woff2 +0 -0
  259. package/assets/esri/themes/base/fonts/fonts/014f2daa-c310-4a36-b9fd-79a8e0c48d44.woff2 +0 -0
  260. package/assets/esri/themes/base/fonts/fonts/15e2e15a-2f36-4a01-b529-677d575bf76d.woff2 +0 -0
  261. package/assets/esri/themes/base/fonts/fonts/174d458a-81e0-4174-9473-35e3bf0a613c.woff2 +0 -0
  262. package/assets/esri/themes/base/fonts/fonts/18629a56-2ec3-4470-a65f-f82d7ec4d41b.woff2 +0 -0
  263. package/assets/esri/themes/base/fonts/fonts/1fed34fa-250a-4d32-9f1d-42f978a2e0b2.woff2 +0 -0
  264. package/assets/esri/themes/base/fonts/fonts/2200dfff-da50-40b0-bc12-5e4b872a1998.woff2 +0 -0
  265. package/assets/esri/themes/base/fonts/fonts/281f890c-8412-4ee3-84ed-8b5d062d2ab8.woff2 +0 -0
  266. package/assets/esri/themes/base/fonts/fonts/2a1ae9a5-b6b5-405c-b660-bbdf1b356952.woff2 +0 -0
  267. package/assets/esri/themes/base/fonts/fonts/31da4b04-f98a-4b5f-b545-a31d26da99e5.woff2 +0 -0
  268. package/assets/esri/themes/base/fonts/fonts/32a2c5cf-6736-44a6-a276-49ba7e030944.woff2 +0 -0
  269. package/assets/esri/themes/base/fonts/fonts/40d36b4a-60c6-460a-bf43-4c948c23563e.woff2 +0 -0
  270. package/assets/esri/themes/base/fonts/fonts/46947883-147e-48dd-97c2-5a8ca675b998.woff2 +0 -0
  271. package/assets/esri/themes/base/fonts/fonts/4daa2125-53c6-4da8-9614-8a1049eaccc2.woff2 +0 -0
  272. package/assets/esri/themes/base/fonts/fonts/4e4befe6-3f94-41d8-886c-1a6831818c6a.woff2 +0 -0
  273. package/assets/esri/themes/base/fonts/fonts/6ea5fa46-5311-450b-8744-288a30c55348.woff2 +0 -0
  274. package/assets/esri/themes/base/fonts/fonts/75e2f3b1-1402-4916-8392-4db9ababea7b.woff2 +0 -0
  275. package/assets/esri/themes/base/fonts/fonts/77156710-6a58-4606-b189-b4185e75967b-ext.woff2 +0 -0
  276. package/assets/esri/themes/base/fonts/fonts/77156710-6a58-4606-b189-b4185e75967b-greek.woff2 +0 -0
  277. package/assets/esri/themes/base/fonts/fonts/77156710-6a58-4606-b189-b4185e75967b.woff2 +0 -0
  278. package/assets/esri/themes/base/fonts/fonts/77caabd3-1877-4634-85c8-8e398a093b99-ext.woff2 +0 -0
  279. package/assets/esri/themes/base/fonts/fonts/77caabd3-1877-4634-85c8-8e398a093b99-greek.woff2 +0 -0
  280. package/assets/esri/themes/base/fonts/fonts/77caabd3-1877-4634-85c8-8e398a093b99.woff2 +0 -0
  281. package/assets/esri/themes/base/fonts/fonts/7db1f672-3a8f-4d19-9c49-7f61aed450b5.woff2 +0 -0
  282. package/assets/esri/themes/base/fonts/fonts/8a65abc7-6463-4895-b3e6-5e203b80b7e2.woff2 +0 -0
  283. package/assets/esri/themes/base/fonts/fonts/97694c53-4e94-4f9e-969b-a148adfcdcfd.woff2 +0 -0
  284. package/assets/esri/themes/base/fonts/fonts/9851da0a-2481-4687-bbeb-ed4ab170dc38-ext.woff2 +0 -0
  285. package/assets/esri/themes/base/fonts/fonts/9851da0a-2481-4687-bbeb-ed4ab170dc38.woff2 +0 -0
  286. package/assets/esri/themes/base/fonts/fonts/9c1ab088-0cb0-402f-9cea-170f0fea14a8.woff2 +0 -0
  287. package/assets/esri/themes/base/fonts/fonts/a1049d00-54ad-4589-95b8-d353f7ab52f0-greek.woff2 +0 -0
  288. package/assets/esri/themes/base/fonts/fonts/a1049d00-54ad-4589-95b8-d353f7ab52f0.woff2 +0 -0
  289. package/assets/esri/themes/base/fonts/fonts/a9eaf4d3-6427-42df-9306-3ea1270f7b1a.woff2 +0 -0
  290. package/assets/esri/themes/base/fonts/fonts/b0b84e4d-2164-45c7-a674-1662f19f3ba6-basic.woff2 +0 -0
  291. package/assets/esri/themes/base/fonts/fonts/b0b84e4d-2164-45c7-a674-1662f19f3ba6-ext.woff2 +0 -0
  292. package/assets/esri/themes/base/fonts/fonts/b0b84e4d-2164-45c7-a674-1662f19f3ba6.woff2 +0 -0
  293. package/assets/esri/themes/base/fonts/fonts/b17468ea-cf53-4635-984b-4d930a68ed4d.woff2 +0 -0
  294. package/assets/esri/themes/base/fonts/fonts/c1905e2e-a1cb-49de-9bb0-ce3c5ffc85ae.woff2 +0 -0
  295. package/assets/esri/themes/base/fonts/fonts/c4cc9032-7eee-4a6e-ae8b-f384b1349bcf.woff2 +0 -0
  296. package/assets/esri/themes/base/fonts/fonts/d824d78b-aab0-44e3-8c56-6c3dcf551952.woff2 +0 -0
  297. package/assets/esri/themes/base/fonts/fonts/dd7b7d4e-21ab-4ac0-b26a-d032c992f3c5.woff2 +0 -0
  298. package/assets/esri/themes/base/fonts/fonts/e78b17bb-11fb-4860-8d66-4ee0d0c1e117-ext.woff2 +0 -0
  299. package/assets/esri/themes/base/fonts/fonts/e78b17bb-11fb-4860-8d66-4ee0d0c1e117-greek.woff2 +0 -0
  300. package/assets/esri/themes/base/fonts/fonts/e78b17bb-11fb-4860-8d66-4ee0d0c1e117.woff2 +0 -0
  301. package/views/3d/webgl-engine/lib/Indices.js +0 -4
  302. package/widgets/Editor/UploadState.js +0 -4
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6610],{97575:(e,t,r)=>{r.d(t,{J:()=>l});var n,o,i,s=r(5732),a={exports:{}};n=a,o=function(){var e=function(){function e(e){this.message="JPEG error: "+e}return e.prototype=new Error,e.prototype.name="JpegError",e.constructor=e,e}();return function(){if(!self||!self.Uint8ClampedArray)return null;var t=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),r=4017,n=799,o=3406,i=2276,s=1567,a=3784,l=5793,u=2896;function c(){this.decodeTransform=null,this.colorTransform=-1}function h(e,t){for(var r,n,o=0,i=[],s=16;s>0&&!e[s-1];)s--;i.push({children:[],index:0});var a,l=i[0];for(r=0;r<s;r++){for(n=0;n<e[r];n++){for((l=i.pop()).children[l.index]=t[o];l.index>0;)l=i.pop();for(l.index++,i.push(l);i.length<=r;)i.push(a={children:[],index:0}),l.children[l.index]=a.children,l=a;o++}r+1<s&&(i.push(a={children:[],index:0}),l.children[l.index]=a.children,l=a)}return i[0].children}function f(e,t,r){return 64*((e.blocksPerLine+1)*t+r)}function d(r,n,o,i,s,a,l,u,c){var h=o.mcusPerLine,d=o.progressive,p=n,g=0,y=0;function w(){if(y>0)return y--,g>>y&1;if(255===(g=r[n++])){var t=r[n++];if(t)throw new e("unexpected marker "+(g<<8|t).toString(16))}return y=7,g>>>7}function C(t){for(var r=t;;){if("number"==typeof(r=r[w()]))return r;if("object"!=typeof r)throw new e("invalid huffman sequence")}}function b(e){for(var t=0;e>0;)t=t<<1|w(),e--;return t}function v(e){if(1===e)return 1===w()?1:-1;var t=b(e);return t>=1<<e-1?t:t+(-1<<e)+1}var x,k=0,T=0;function S(e,t,r,n,o){var i=r%h;t(e,f(e,(r/h|0)*e.v+n,i*e.h+o))}function A(e,t,r){t(e,f(e,r/e.blocksPerLine|0,r%e.blocksPerLine))}var I,P,M,D,E,R,_=i.length;R=d?0===a?0===u?function(e,t){var r=C(e.huffmanTableDC),n=0===r?0:v(r)<<c;e.blockData[t]=e.pred+=n}:function(e,t){e.blockData[t]|=w()<<c}:0===u?function(e,r){if(k>0)k--;else for(var n=a,o=l;n<=o;){var i=C(e.huffmanTableAC),s=15&i,u=i>>4;if(0!==s){var h=t[n+=u];e.blockData[r+h]=v(s)*(1<<c),n++}else{if(u<15){k=b(u)+(1<<u)-1;break}n+=16}}}:function(r,n){for(var o,i,s=a,u=l,h=0;s<=u;){var f=t[s];switch(T){case 0:if(h=(i=C(r.huffmanTableAC))>>4,0==(o=15&i))h<15?(k=b(h)+(1<<h),T=4):(h=16,T=1);else{if(1!==o)throw new e("invalid ACn encoding");x=v(o),T=h?2:3}continue;case 1:case 2:r.blockData[n+f]?r.blockData[n+f]+=w()<<c:0==--h&&(T=2===T?3:0);break;case 3:r.blockData[n+f]?r.blockData[n+f]+=w()<<c:(r.blockData[n+f]=x<<c,T=0);break;case 4:r.blockData[n+f]&&(r.blockData[n+f]+=w()<<c)}s++}4===T&&0==--k&&(T=0)}:function(e,r){var n=C(e.huffmanTableDC),o=0===n?0:v(n);e.blockData[r]=e.pred+=o;for(var i=1;i<64;){var s=C(e.huffmanTableAC),a=15&s,l=s>>4;if(0!==a){var u=t[i+=l];e.blockData[r+u]=v(a),i++}else{if(l<15)break;i+=16}}};var L,B,U,G,O=0;for(B=1===_?i[0].blocksPerLine*i[0].blocksPerColumn:h*o.mcusPerColumn;O<B;){var N=s?Math.min(B-O,s):B;for(P=0;P<_;P++)i[P].pred=0;if(k=0,1===_)for(I=i[0],E=0;E<N;E++)A(I,R,O),O++;else for(E=0;E<N;E++){for(P=0;P<_;P++)for(U=(I=i[P]).h,G=I.v,M=0;M<G;M++)for(D=0;D<U;D++)S(I,R,O,M,D);O++}y=0,(L=m(r,n))&&L.invalid&&(console.log("decodeScan - unexpected MCU data, next marker is: "+L.invalid),n=L.offset);var F=L&&L.marker;if(!F||F<=65280)throw new e("marker was not found");if(!(F>=65488&&F<=65495))break;n+=2}return(L=m(r,n))&&L.invalid&&(console.log("decodeScan - unexpected Scan data, next marker is: "+L.invalid),n=L.offset),n-p}function p(t,c,h){var f,d,p,g,m,y,w,C,b,v,x,k,T,S,A,I,P,M=t.quantizationTable,D=t.blockData;if(!M)throw new e("missing required Quantization Table.");for(var E=0;E<64;E+=8)b=D[c+E],v=D[c+E+1],x=D[c+E+2],k=D[c+E+3],T=D[c+E+4],S=D[c+E+5],A=D[c+E+6],I=D[c+E+7],b*=M[E],0!=(v|x|k|T|S|A|I)?(v*=M[E+1],x*=M[E+2],k*=M[E+3],T*=M[E+4],S*=M[E+5],A*=M[E+6],I*=M[E+7],d=(f=(f=l*b+128>>8)+(d=l*T+128>>8)+1>>1)-d,P=(p=x)*a+(g=A)*s+128>>8,p=p*s-g*a+128>>8,w=(m=(m=u*(v-I)+128>>8)+(w=S<<4)+1>>1)-w,y=(C=(C=u*(v+I)+128>>8)+(y=k<<4)+1>>1)-y,g=(f=f+(g=P)+1>>1)-g,p=(d=d+p+1>>1)-p,P=m*i+C*o+2048>>12,m=m*o-C*i+2048>>12,C=P,P=y*n+w*r+2048>>12,y=y*r-w*n+2048>>12,w=P,h[E]=f+C,h[E+7]=f-C,h[E+1]=d+w,h[E+6]=d-w,h[E+2]=p+y,h[E+5]=p-y,h[E+3]=g+m,h[E+4]=g-m):(P=l*b+512>>10,h[E]=P,h[E+1]=P,h[E+2]=P,h[E+3]=P,h[E+4]=P,h[E+5]=P,h[E+6]=P,h[E+7]=P);for(var R=0;R<8;++R)b=h[R],0!=((v=h[R+8])|(x=h[R+16])|(k=h[R+24])|(T=h[R+32])|(S=h[R+40])|(A=h[R+48])|(I=h[R+56]))?(d=(f=4112+((f=l*b+2048>>12)+(d=l*T+2048>>12)+1>>1))-d,P=(p=x)*a+(g=A)*s+2048>>12,p=p*s-g*a+2048>>12,g=P,w=(m=(m=u*(v-I)+2048>>12)+(w=S)+1>>1)-w,y=(C=(C=u*(v+I)+2048>>12)+(y=k)+1>>1)-y,P=m*i+C*o+2048>>12,m=m*o-C*i+2048>>12,C=P,P=y*n+w*r+2048>>12,y=y*r-w*n+2048>>12,b=(b=(f=f+g+1>>1)+C)<16?0:b>=4080?255:b>>4,v=(v=(d=d+p+1>>1)+(w=P))<16?0:v>=4080?255:v>>4,x=(x=(p=d-p)+y)<16?0:x>=4080?255:x>>4,k=(k=(g=f-g)+m)<16?0:k>=4080?255:k>>4,T=(T=g-m)<16?0:T>=4080?255:T>>4,S=(S=p-y)<16?0:S>=4080?255:S>>4,A=(A=d-w)<16?0:A>=4080?255:A>>4,I=(I=f-C)<16?0:I>=4080?255:I>>4,D[c+R]=b,D[c+R+8]=v,D[c+R+16]=x,D[c+R+24]=k,D[c+R+32]=T,D[c+R+40]=S,D[c+R+48]=A,D[c+R+56]=I):(P=(P=l*b+8192>>14)<-2040?0:P>=2024?255:P+2056>>4,D[c+R]=P,D[c+R+8]=P,D[c+R+16]=P,D[c+R+24]=P,D[c+R+32]=P,D[c+R+40]=P,D[c+R+48]=P,D[c+R+56]=P)}function g(e,t){for(var r=t.blocksPerLine,n=t.blocksPerColumn,o=new Int16Array(64),i=0;i<n;i++)for(var s=0;s<r;s++)p(t,f(t,i,s),o);return t.blockData}function m(e,t,r){function n(t){return e[t]<<8|e[t+1]}var o=e.length-1,i=r<t?r:t;if(t>=o)return null;var s=n(t);if(s>=65472&&s<=65534)return{invalid:null,marker:s,offset:t};for(var a=n(i);!(a>=65472&&a<=65534);){if(++i>=o)return null;a=n(i)}return{invalid:s.toString(16),marker:a,offset:i}}return c.prototype={parse:function(r){function n(){var e=r[l]<<8|r[l+1];return l+=2,e}function o(){var e=n(),t=l+e-2,o=m(r,t,l);o&&o.invalid&&(console.log("readDataBlock - incorrect length, next marker is: "+o.invalid),t=o.offset);var i=r.subarray(l,t);return l+=i.length,i}function i(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),r=Math.ceil(e.scanLines/8/e.maxV),n=0;n<e.components.length;n++){O=e.components[n];var o=Math.ceil(Math.ceil(e.samplesPerLine/8)*O.h/e.maxH),i=Math.ceil(Math.ceil(e.scanLines/8)*O.v/e.maxV),s=t*O.h,a=r*O.v*64*(s+1);O.blockData=new Int16Array(a),O.blocksPerLine=o,O.blocksPerColumn=i}e.mcusPerLine=t,e.mcusPerColumn=r}var s,a,l=0,u=null,c=null,f=[],p=[],y=[],w=n();if(65496!==w)throw new e("SOI not found");for(w=n();65497!==w;){var C,b,v;switch(w){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var x=o();65504===w&&74===x[0]&&70===x[1]&&73===x[2]&&70===x[3]&&0===x[4]&&(u={version:{major:x[5],minor:x[6]},densityUnits:x[7],xDensity:x[8]<<8|x[9],yDensity:x[10]<<8|x[11],thumbWidth:x[12],thumbHeight:x[13],thumbData:x.subarray(14,14+3*x[12]*x[13])}),65518===w&&65===x[0]&&100===x[1]&&111===x[2]&&98===x[3]&&101===x[4]&&(c={version:x[5]<<8|x[6],flags0:x[7]<<8|x[8],flags1:x[9]<<8|x[10],transformCode:x[11]});break;case 65499:for(var k=n()+l-2;l<k;){var T=r[l++],S=new Uint16Array(64);if(T>>4==0)for(b=0;b<64;b++)S[t[b]]=r[l++];else{if(T>>4!=1)throw new e("DQT - invalid table spec");for(b=0;b<64;b++)S[t[b]]=n()}f[15&T]=S}break;case 65472:case 65473:case 65474:if(s)throw new e("Only single frame JPEGs supported");n(),(s={}).extended=65473===w,s.progressive=65474===w,s.precision=r[l++],s.scanLines=n(),s.samplesPerLine=n(),s.components=[],s.componentIds={};var A,I=r[l++],P=0,M=0;for(C=0;C<I;C++){A=r[l];var D=r[l+1]>>4,E=15&r[l+1];P<D&&(P=D),M<E&&(M=E);var R=r[l+2];v=s.components.push({h:D,v:E,quantizationId:R,quantizationTable:null}),s.componentIds[A]=v-1,l+=3}s.maxH=P,s.maxV=M,i(s);break;case 65476:var _=n();for(C=2;C<_;){var L=r[l++],B=new Uint8Array(16),U=0;for(b=0;b<16;b++,l++)U+=B[b]=r[l];var G=new Uint8Array(U);for(b=0;b<U;b++,l++)G[b]=r[l];C+=17+U,(L>>4==0?y:p)[15&L]=h(B,G)}break;case 65501:n(),a=n();break;case 65498:n();var O,N=r[l++],F=[];for(C=0;C<N;C++){var V=s.componentIds[r[l++]];O=s.components[V];var z=r[l++];O.huffmanTableDC=y[z>>4],O.huffmanTableAC=p[15&z],F.push(O)}var j=r[l++],Z=r[l++],W=r[l++],J=d(r,l,s,F,a,j,Z,W>>4,15&W);l+=J;break;case 65535:255!==r[l]&&l--;break;default:if(255===r[l-3]&&r[l-2]>=192&&r[l-2]<=254){l-=3;break}throw new e("unknown marker "+w.toString(16))}w=n()}for(this.width=s.samplesPerLine,this.height=s.scanLines,this.jfif=u,this.eof=l,this.adobe=c,this.components=[],C=0;C<s.components.length;C++){var q=f[(O=s.components[C]).quantizationId];q&&(O.quantizationTable=q),this.components.push({output:g(0,O),scaleX:O.h/s.maxH,scaleY:O.v/s.maxV,blocksPerLine:O.blocksPerLine,blocksPerColumn:O.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function(e,t){var r,n,o,i,s,a,l,u,c,h,f,d=this.width/e,p=this.height/t,g=0,m=this.components.length,y=e*t*m,w=new Uint8ClampedArray(y),C=new Uint32Array(e),b=4294967288;for(l=0;l<m;l++){for(n=(r=this.components[l]).scaleX*d,o=r.scaleY*p,g=l,f=r.output,i=r.blocksPerLine+1<<3,s=0;s<e;s++)u=0|s*n,C[s]=(u&b)<<3|7&u;for(a=0;a<t;a++)for(h=i*((u=0|a*o)&b)|(7&u)<<3,s=0;s<e;s++)w[g]=f[h+C[s]],g+=m}var v=this.decodeTransform;if(v)for(l=0;l<y;)for(u=0,c=0;u<m;u++,l++,c+=2)w[l]=(w[l]*v[c]>>8)+v[c+1];return w},_isColorConversionNeeded:function(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this.colorTransform:1===this.colorTransform},_convertYccToRgb:function(e){for(var t,r,n,o=0,i=e.length;o<i;o+=3)t=e[o],r=e[o+1],n=e[o+2],e[o]=t-179.456+1.402*n,e[o+1]=t+135.459-.344*r-.714*n,e[o+2]=t-226.816+1.772*r;return e},_convertYcckToRgb:function(e){for(var t,r,n,o,i=0,s=0,a=e.length;s<a;s+=4)t=e[s],r=e[s+1],n=e[s+2],o=e[s+3],e[i++]=r*(-660635669420364e-19*r+.000437130475926232*n-54080610064599e-18*t+.00048449797120281*o-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*t-.00477271405408747*o+1.53380253221734)+t*(.000961250184130688*t-.00266257332283933*o+.48357088451265)+o*(-.000336197177618394*o+.484791561490776),e[i++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*n+.000659397001245577*t+.000426105652938837*o-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*t+.000770482631801132*o-.151051492775562)+t*(.00126935368114843*t-.00265090189010898*o+.25802910206845)+o*(-.000318913117588328*o-.213742400323665),e[i++]=r*(-.000570115196973677*r-263409051004589e-19*n+.0020741088115012*t-.00288260236853442*o+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*t+.000560833691242812*o-.195152027534049)+t*(.00174418132927582*t-.00255243321439347*o+.116935020465145)+o*(-.000343531996510555*o+.24165260232407);return e},_convertYcckToCmyk:function(e){for(var t,r,n,o=0,i=e.length;o<i;o+=4)t=e[o],r=e[o+1],n=e[o+2],e[o]=434.456-t-1.402*n,e[o+1]=119.541-t+.344*r+.714*n,e[o+2]=481.816-t-1.772*r;return e},_convertCmykToRgb:function(e){for(var t,r,n,o,i=0,s=1/255,a=0,l=e.length;a<l;a+=4)t=e[a]*s,r=e[a+1]*s,n=e[a+2]*s,o=e[a+3]*s,e[i++]=255+t*(-4.387332384609988*t+54.48615194189176*r+18.82290502165302*n+212.25662451639585*o-285.2331026137004)+r*(1.7149763477362134*r-5.6096736904047315*n-17.873870861415444*o-5.497006427196366)+n*(-2.5217340131683033*n-21.248923337353073*o+17.5119270841813)-o*(21.86122147463605*o+189.48180835922747),e[i++]=255+t*(8.841041422036149*t+60.118027045597366*r+6.871425592049007*n+31.159100130055922*o-79.2970844816548)+r*(-15.310361306967817*r+17.575251261109482*n+131.35250912493976*o-190.9453302588951)+n*(4.444339102852739*n+9.8632861493405*o-24.86741582555878)-o*(20.737325471181034*o+187.80453709719578),e[i++]=255+t*(.8842522430003296*t+8.078677503112928*r+30.89978309703729*n-.23883238689178934*o-14.183576799673286)+r*(10.49593273432072*r+63.02378494754052*n+50.606957656360734*o-112.23884253719248)+n*(.03296041114873217*n+115.60384449646641*o-193.58209356861505)-o*(22.33816807309886*o+180.12613974708367);return e},getData:function(t,r,n){if(this.numComponents>4)throw new e("Unsupported color mode");var o=this._getLinearizedBlockData(t,r);if(1===this.numComponents&&n){for(var i=o.length,s=new Uint8ClampedArray(3*i),a=0,l=0;l<i;l++){var u=o[l];s[a++]=u,s[a++]=u,s[a++]=u}return s}if(3===this.numComponents&&this._isColorConversionNeeded())return this._convertYccToRgb(o);if(4===this.numComponents){if(this._isColorConversionNeeded())return n?this._convertYcckToRgb(o):this._convertYcckToCmyk(o);if(n)return this._convertCmykToRgb(o)}return o}},c}()},void 0!==(i=o())&&(n.exports=i);const l=(0,s.g)(a.exports)},80899:(e,t,r)=>{r.d(t,{Z:()=>l});var n,o,i,s=r(5732),a={exports:{}};o=a,void 0!==(n=function(){function e(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return e.prototype={ensureBuffer:function(e){var t=this.buffer,r=t?t.byteLength:0;if(e<r)return t;for(var n=512;n<e;)n<<=1;for(var o=new Uint8Array(n),i=0;i<r;++i)o[i]=t[i];return this.buffer=o},getByte:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(e){var t=this.pos;if(e){this.ensureBuffer(t+e);for(var r=t+e;!this.eof&&this.bufferLength<r;)this.readBlock();var n=this.bufferLength;r>n&&(r=n)}else{for(;!this.eof;)this.readBlock();r=this.bufferLength}return this.pos=r,this.buffer.subarray(t,r)},lookChar:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(e,t,r){for(var n=e+t;this.bufferLength<=n&&!this.eof;)this.readBlock();return new Stream(this.buffer,e,t,r)},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=0}},e}(),i=function(){if(!self||!self.Uint32Array)return null;var e=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),t=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),r=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),o=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],i=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];function s(e){throw new Error(e)}function a(e){var t=0,r=e[t++],o=e[t++];-1!=r&&-1!=o||s("Invalid header in flate stream"),8!=(15&r)&&s("Unknown compression method in flate stream"),((r<<8)+o)%31!=0&&s("Bad FCHECK in flate stream"),32&o&&s("FDICT bit set in flate stream"),this.bytes=e,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,n.call(this)}return a.prototype=Object.create(n.prototype),a.prototype.getBits=function(e){for(var t,r=this.codeSize,n=this.codeBuf,o=this.bytes,i=this.bytesPos;r<e;)void 0===(t=o[i++])&&s("Bad encoding in flate stream"),n|=t<<r,r+=8;return t=n&(1<<e)-1,this.codeBuf=n>>e,this.codeSize=r-=e,this.bytesPos=i,t},a.prototype.getCode=function(e){for(var t=e[0],r=e[1],n=this.codeSize,o=this.codeBuf,i=this.bytes,a=this.bytesPos;n<r;){var l;void 0===(l=i[a++])&&s("Bad encoding in flate stream"),o|=l<<n,n+=8}var u=t[o&(1<<r)-1],c=u>>16,h=65535&u;return(0==n||n<c||0==c)&&s("Bad encoding in flate stream"),this.codeBuf=o>>c,this.codeSize=n-c,this.bytesPos=a,h},a.prototype.generateHuffmanTable=function(e){for(var t=e.length,r=0,n=0;n<t;++n)e[n]>r&&(r=e[n]);for(var o=1<<r,i=new Uint32Array(o),s=1,a=0,l=2;s<=r;++s,a<<=1,l<<=1)for(var u=0;u<t;++u)if(e[u]==s){var c=0,h=a;for(n=0;n<s;++n)c=c<<1|1&h,h>>=1;for(n=c;n<o;n+=l)i[n]=s<<16|u;++a}return[i,r]},a.prototype.readBlock=function(){function n(e,t,r,n,o){for(var i=e.getBits(r)+n;i-- >0;)t[p++]=o}var a=this.getBits(3);if(1&a&&(this.eof=!0),0!=(a>>=1)){var l,u;if(1==a)l=o,u=i;else if(2==a){for(var c=this.getBits(5)+257,h=this.getBits(5)+1,f=this.getBits(4)+4,d=Array(e.length),p=0;p<f;)d[e[p++]]=this.getBits(3);for(var g=this.generateHuffmanTable(d),m=0,y=(p=0,c+h),w=new Array(y);p<y;){var C=this.getCode(g);16==C?n(this,w,2,3,m):17==C?n(this,w,3,3,m=0):18==C?n(this,w,7,11,m=0):w[p++]=m=C}l=this.generateHuffmanTable(w.slice(0,c)),u=this.generateHuffmanTable(w.slice(c,y))}else s("Unknown block type in flate stream");for(var b=(R=this.buffer)?R.length:0,v=this.bufferLength;;){var x=this.getCode(l);if(x<256)v+1>=b&&(b=(R=this.ensureBuffer(v+1)).length),R[v++]=x;else{if(256==x)return void(this.bufferLength=v);var k=(x=t[x-=257])>>16;k>0&&(k=this.getBits(k)),m=(65535&x)+k,x=this.getCode(u),(k=(x=r[x])>>16)>0&&(k=this.getBits(k));var T=(65535&x)+k;v+m>=b&&(b=(R=this.ensureBuffer(v+m)).length);for(var S=0;S<m;++S,++v)R[v]=R[v-T]}}}else{var A,I=this.bytes,P=this.bytesPos;void 0===(A=I[P++])&&s("Bad block header in flate stream");var M=A;void 0===(A=I[P++])&&s("Bad block header in flate stream"),M|=A<<8,void 0===(A=I[P++])&&s("Bad block header in flate stream");var D=A;void 0===(A=I[P++])&&s("Bad block header in flate stream"),(D|=A<<8)!=(65535&~M)&&s("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var E=this.bufferLength,R=this.ensureBuffer(E+M),_=E+M;this.bufferLength=_;for(var L=E;L<_;++L){if(void 0===(A=I[P++])){this.eof=!0;break}R[L]=A}this.bytesPos=P}},a}())&&(o.exports=i);const l=(0,s.g)(a.exports)},3892:(e,t,r)=>{function n(e){return"h"in e&&"s"in e&&"v"in e}function o(e){return"l"in e&&"a"in e&&"b"in e}function i(e){return"l"in e&&"c"in e&&"h"in e}r.d(t,{Y3:()=>g,_Y:()=>p,sJ:()=>m,xr:()=>d});const s=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],a=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function l(e,t){const r=[];let n,o;if(e[0].length!==t.length)throw new Error("dimensions do not match");const i=e.length,s=e[0].length;let a=0;for(n=0;n<i;n++){for(a=0,o=0;o<s;o++)a+=e[n][o]*t[o];r.push(a)}return r}function u(e){const t=[e.r/255,e.g/255,e.b/255].map((e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4)),r=l(s,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function c(e){const t=l(a,[e.x/100,e.y/100,e.z/100]).map((e=>{const t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))}));return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function h(e){const t=[e.x/95.047,e.y/100,e.z/108.883].map((e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29));return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function f(e){const t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map((e=>e>6/29?e**3:3*(6/29)**2*(e-4/29)));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function d(e){return"r"in(t=e)&&"g"in t&&"b"in t?e:i(e)?function(e){return c(f(function(e){const t=e.l,r=e.c,n=e.h;return{l:t,a:r*Math.cos(n),b:r*Math.sin(n)}}(e)))}(e):o(e)?function(e){return c(f(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?c(e):n(e)?function(e){const t=(e.h+360)%360/60,r=e.s/100,n=e.v/100*255,o=n*r,i=o*(1-Math.abs(t%2-1));let s;switch(Math.floor(t)){case 0:s={r:o,g:i,b:0};break;case 1:s={r:i,g:o,b:0};break;case 2:s={r:0,g:o,b:i};break;case 3:s={r:0,g:i,b:o};break;case 4:s={r:i,g:0,b:o};break;case 5:case 6:s={r:o,g:0,b:i};break;default:s={r:0,g:0,b:0}}return s.r=Math.round(s.r+n-o),s.g=Math.round(s.g+n-o),s.b=Math.round(s.b+n-o),s}(e):e;var t}function p(e){return n(e)?e:function(e){const t=e.r,r=e.g,n=e.b,o=Math.max(t,r,n),i=o-Math.min(t,r,n);let s=o,a=0===i?0:o===t?(r-n)/i%6:o===r?(n-t)/i+2:(t-r)/i+4,l=0===i?0:i/s;return a<0&&(a+=6),a*=60,l*=100,s*=100/255,{h:a,s:l,v:s}}(d(e))}function g(e){return o(e)?e:function(e){return h(u(e))}(d(e))}function m(e){return i(e)?e:function(e){return function(e){const t=e.l,r=e.a,n=e.b,o=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i=i>0?i:i+2*Math.PI,{l:t,c:o,h:i}}(h(u(e)))}(d(e))}},5847:(e,t,r)=>{r.d(t,{Z:()=>g});var n=r(43697),o=r(20102),i=r(96674),s=r(22974),a=r(92604),l=r(5600),u=r(90578),c=r(52011);class h{constructor(e=null,t=null,r=null){this.minValue=e,this.maxValue=t,this.noDataValue=r}}var f,d=r(81578);let p=f=class extends i.wq{static createEmptyBand(e,t){return new(f.getPixelArrayConstructor(e))(t)}static getPixelArrayConstructor(e){let t;switch(e){case"u1":case"u2":case"u4":case"u8":t=Uint8Array;break;case"u16":t=Uint16Array;break;case"u32":t=Uint32Array;break;case"s8":t=Int8Array;break;case"s16":t=Int16Array;break;case"s32":t=Int32Array;break;case"f32":case"c64":case"c128":case"unknown":t=Float32Array;break;case"f64":t=Float64Array}return t}constructor(e){super(e),this.width=null,this.height=null,this.pixelType="f32",this.validPixelCount=null,this.mask=null,this.maskIsAlpha=!1,this.premultiplyAlpha=!1,this.statistics=null,this.depthCount=1}castPixelType(e){if(!e)return"f32";let t=e.toLowerCase();return["u1","u2","u4"].includes(t)?t="u8":["unknown","u8","s8","u16","s16","u32","s32","f32","f64"].includes(t)||(t="f32"),t}getPlaneCount(){return this.pixels?.length}addData(e){if(!e.pixels||e.pixels.length!==this.width*this.height)throw new o.Z("pixelblock:invalid-or-missing-pixels","add data requires valid pixels array that has same length defined by pixel block width * height");this.pixels||(this.pixels=[]),this.statistics||(this.statistics=[]),this.pixels.push(e.pixels),this.statistics.push(e.statistics??new h)}getAsRGBA(){const e=new ArrayBuffer(this.width*this.height*4);switch(this.pixelType){case"s8":case"s16":case"u16":case"s32":case"u32":case"f32":case"f64":this._fillFromNon8Bit(e);break;default:this._fillFrom8Bit(e)}return new Uint8ClampedArray(e)}getAsRGBAFloat(){const e=new Float32Array(this.width*this.height*4);return this._fillFrom32Bit(e),e}updateStatistics(){if(!this.pixels)return;this.statistics=this.pixels.map((e=>this._calculateBandStatistics(e,this.mask)));const e=this.mask;let t=0;if(null!=e)for(let r=0;r<e.length;r++)e[r]&&t++;else t=this.width*this.height;this.validPixelCount=t}clamp(e){if(!e||"f64"===e||"f32"===e||!this.pixels)return;const[t,r]=(0,d.r)(e),n=this.pixels,o=this.width*this.height,i=n.length;let s,a,l;const u=[];for(let c=0;c<i;c++){l=f.createEmptyBand(e,o),s=n[c];for(let e=0;e<o;e++)a=s[e],l[e]=a>r?r:a<t?t:a;u.push(l)}this.pixels=u,this.pixelType=e}extractBands(e){const{pixels:t,statistics:r}=this;if(null==e||0===e.length||!t||0===t.length)return this;const n=t.length,o=e.some((e=>e>=t.length)),i=n===e.length&&!e.some(((e,t)=>e!==t));return o||i?this:new f({pixelType:this.pixelType,width:this.width,height:this.height,mask:this.mask,validPixelCount:this.validPixelCount,maskIsAlpha:this.maskIsAlpha,pixels:e.map((e=>t[e])),statistics:r&&e.map((e=>r[e]))})}clone(){const e=new f({width:this.width,height:this.height,pixelType:this.pixelType,maskIsAlpha:this.maskIsAlpha,validPixelCount:this.validPixelCount});let t;null!=this.mask&&(this.mask instanceof Uint8Array?e.mask=new Uint8Array(this.mask):e.mask=this.mask.slice(0));const r=f.getPixelArrayConstructor(this.pixelType);if(this.pixels&&this.pixels.length>0){e.pixels=[];const n=!!this.pixels[0].slice;for(t=0;t<this.pixels.length;t++)e.pixels[t]=n?this.pixels[t].slice(0,this.pixels[t].length):new r(this.pixels[t])}if(this.statistics)for(e.statistics=[],t=0;t<this.statistics.length;t++)e.statistics[t]=(0,s.d9)(this.statistics[t]);return e.premultiplyAlpha=this.premultiplyAlpha,e}_fillFrom8Bit(e){const{mask:t,maskIsAlpha:r,premultiplyAlpha:n,pixels:o}=this;if(!e||!o||!o.length)return void a.Z.getLogger(this.declaredClass).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");let i,s,l,u;i=s=l=o[0],o.length>=3?(s=o[1],l=o[2]):2===o.length&&(s=o[1]);const c=new Uint32Array(e),h=this.width*this.height;if(i.length===h)if(null!=t&&t.length===h)if(r)for(u=0;u<h;u++){const e=t[u];if(e){const t=e/255;c[u]=n?e<<24|l[u]*t<<16|s[u]*t<<8|i[u]*t:e<<24|l[u]<<16|s[u]<<8|i[u]}}else for(u=0;u<h;u++)t[u]&&(c[u]=255<<24|l[u]<<16|s[u]<<8|i[u]);else for(u=0;u<h;u++)c[u]=255<<24|l[u]<<16|s[u]<<8|i[u];else a.Z.getLogger(this.declaredClass).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.")}_fillFromNon8Bit(e){const{pixels:t,mask:r,statistics:n}=this;if(!e||!t||!t.length)return void a.Z.getLogger(this.declaredClass).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");const o=this.pixelType;let i=1,s=0,l=1;if(n&&n.length>0){for(const e of n)if(null!=e.minValue&&(s=Math.min(s,e.minValue)),null!=e.maxValue&&null!=e.minValue){const t=e.maxValue-e.minValue;l=Math.max(l,t)}i=255/l}else{let e=255;"s8"===o?(s=-128,e=127):"u16"===o?e=65535:"s16"===o?(s=-32768,e=32767):"u32"===o?e=4294967295:"s32"===o?(s=-2147483648,e=2147483647):"f32"===o?(s=-34e38,e=34e38):"f64"===o&&(s=-Number.MAX_VALUE,e=Number.MAX_VALUE),i=255/(e-s)}const u=new Uint32Array(e),c=this.width*this.height;let h,f,d,p,g;if(h=f=d=t[0],h.length!==c)return a.Z.getLogger(this.declaredClass).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.");if(t.length>=2)if(f=t[1],t.length>=3&&(d=t[2]),null!=r&&r.length===c)for(p=0;p<c;p++)r[p]&&(u[p]=255<<24|(d[p]-s)*i<<16|(f[p]-s)*i<<8|(h[p]-s)*i);else for(p=0;p<c;p++)u[p]=255<<24|(d[p]-s)*i<<16|(f[p]-s)*i<<8|(h[p]-s)*i;else if(null!=r&&r.length===c)for(p=0;p<c;p++)g=(h[p]-s)*i,r[p]&&(u[p]=255<<24|g<<16|g<<8|g);else for(p=0;p<c;p++)g=(h[p]-s)*i,u[p]=255<<24|g<<16|g<<8|g}_fillFrom32Bit(e){const{pixels:t,mask:r}=this;if(!e||!t||!t.length)return a.Z.getLogger(this.declaredClass).error("getAsRGBAFloat()","Unable to convert to RGBA. The input pixel block is empty.");let n,o,i,s;n=o=i=t[0],t.length>=3?(o=t[1],i=t[2]):2===t.length&&(o=t[1]);const l=this.width*this.height;if(n.length!==l)return a.Z.getLogger(this.declaredClass).error("getAsRGBAFloat()","Unable to convert to RGBA. The pixelblock is invalid.");let u=0;if(null!=r&&r.length===l)for(s=0;s<l;s++)e[u++]=n[s],e[u++]=o[s],e[u++]=i[s],e[u++]=1&r[s];else for(s=0;s<l;s++)e[u++]=n[s],e[u++]=o[s],e[u++]=i[s],e[u++]=1}_calculateBandStatistics(e,t){let r=1/0,n=-1/0;const o=e.length;let i,s=0;if(null!=t)for(i=0;i<o;i++)t[i]&&(s=e[i],r=s<r?s:r,n=s>n?s:n);else for(i=0;i<o;i++)s=e[i],r=s<r?s:r,n=s>n?s:n;return new h(r,n)}};(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"width",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"height",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"pixelType",void 0),(0,n._)([(0,u.p)("pixelType")],p.prototype,"castPixelType",null),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"validPixelCount",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"mask",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"maskIsAlpha",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"pixels",void 0),(0,n._)([(0,l.Cb)()],p.prototype,"premultiplyAlpha",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"statistics",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"depthCount",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"noDataValues",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"bandMasks",void 0),p=f=(0,n._)([(0,c.j)("esri.layers.support.PixelBlock")],p);const g=p},25972:(e,t,r)=>{r.d(t,{Z:()=>k});var n,o=r(43697),i=r(96674),s=r(22974),a=r(5600),l=(r(75215),r(52011)),u=r(6570),c=r(82971);function h(e){return e=Number(e),isNaN(e)?void 0:e}r(67676),r(80442);let f=n=class extends i.wq{constructor(){super(...arguments),this.name=null,this.minWavelength=void 0,this.maxWavelength=void 0,this.radianceBias=void 0,this.radianceGain=void 0,this.reflectanceBias=void 0,this.reflectanceGain=void 0,this.solarIrradiance=void 0}clone(){return new n({name:this.name,minWavelength:this.minWavelength,maxWavelength:this.maxWavelength,radianceBias:this.radianceBias,radianceGain:this.radianceGain,reflectanceBias:this.reflectanceBias,reflectanceGain:this.reflectanceGain,solarIrradiance:this.solarIrradiance})}};(0,o._)([(0,a.Cb)({json:{name:"BandName",write:!0}})],f.prototype,"name",void 0),(0,o._)([(0,a.Cb)({json:{name:"WavelengthMin",read:{reader:h},write:!0}})],f.prototype,"minWavelength",void 0),(0,o._)([(0,a.Cb)({json:{name:"WavelengthMax",read:{reader:h},write:!0}})],f.prototype,"maxWavelength",void 0),(0,o._)([(0,a.Cb)({json:{name:"RadianceBias",read:{reader:h},write:!0}})],f.prototype,"radianceBias",void 0),(0,o._)([(0,a.Cb)({json:{name:"RadianceGain",read:{reader:h},write:!0}})],f.prototype,"radianceGain",void 0),(0,o._)([(0,a.Cb)({json:{name:"ReflectanceBias",read:{reader:h},write:!0}})],f.prototype,"reflectanceBias",void 0),(0,o._)([(0,a.Cb)({json:{name:"ReflectanceGain",read:{reader:h},write:!0}})],f.prototype,"reflectanceGain",void 0),(0,o._)([(0,a.Cb)({json:{name:"SolarIrradiance",read:{reader:h},write:!0}})],f.prototype,"solarIrradiance",void 0),f=n=(0,o._)([(0,l.j)("esri.layers.support.RasterBandInfo")],f);const d=f;var p,g=r(71715),m=r(30556);function y(e){return e=Number(e),isNaN(e)?void 0:e}let w=p=class extends i.wq{constructor(){super(...arguments),this.acquisitionDate=void 0,this.cloudCover=void 0,this.productName=void 0,this.sensorName=null,this.sensorAzimuth=void 0,this.sensorElevation=void 0,this.sunAzimuth=void 0,this.sunElevation=void 0}readAcquisitionDate(e){return new Date(e)}writeAcquisitionDate(e,t){t.AcquisitionDate=e.getTime()}clone(){return new p({acquisitionDate:this.acquisitionDate,cloudCover:this.cloudCover,productName:this.productName,sensorName:this.sensorName,sensorAzimuth:this.sensorAzimuth,sensorElevation:this.sensorElevation,sunAzimuth:this.sunAzimuth,sunElevation:this.sunElevation})}};(0,o._)([(0,a.Cb)({json:{name:"AcquisitionDate",write:!0}})],w.prototype,"acquisitionDate",void 0),(0,o._)([(0,g.r)("acquisitionDate")],w.prototype,"readAcquisitionDate",null),(0,o._)([(0,m.c)("acquisitionDate")],w.prototype,"writeAcquisitionDate",null),(0,o._)([(0,a.Cb)({json:{name:"CloudCover",read:{reader:y},write:!0}})],w.prototype,"cloudCover",void 0),(0,o._)([(0,a.Cb)({json:{name:"ProductName",write:!0}})],w.prototype,"productName",void 0),(0,o._)([(0,a.Cb)({json:{name:"SensorName",write:!0}})],w.prototype,"sensorName",void 0),(0,o._)([(0,a.Cb)({json:{name:"SensorAzimuth",read:{reader:y},write:!0}})],w.prototype,"sensorAzimuth",void 0),(0,o._)([(0,a.Cb)({json:{name:"SensorElevation",read:{reader:y},write:!0}})],w.prototype,"sensorElevation",void 0),(0,o._)([(0,a.Cb)({json:{name:"SunAzimuth",read:{reader:y},write:!0}})],w.prototype,"sunAzimuth",void 0),(0,o._)([(0,a.Cb)({json:{name:"SunElevation",read:{reader:y},write:!0}})],w.prototype,"sunElevation",void 0),w=p=(0,o._)([(0,l.j)("esri.layers.support.RasterSensorInfo")],w);const C=w;var b,v=r(36679);let x=b=class extends i.wq{constructor(e){super(e),this.attributeTable=null,this.bandCount=null,this.colormap=null,this.extent=null,this.format=void 0,this.height=null,this.width=null,this.histograms=null,this.keyProperties={},this.multidimensionalInfo=null,this.noDataValue=null,this.pixelSize=null,this.pixelType=null,this.isPseudoSpatialReference=!1,this.spatialReference=null,this.statistics=null,this.storageInfo=null,this.transform=null}get bandInfos(){const e=this.keyProperties.BandProperties;if(!e?.length){const e=[];for(let t=1;t<=this.bandCount;t++)e.push(new d({name:"band_"+t}));return e}const t=e.map((e=>d.fromJSON(e)));for(let e=0;e<t.length;e++)t[e].name=t[e].name??"band_"+(e+1);return t}get dataType(){const e=this.keyProperties?.DataType?.toLowerCase()??"generic";return"stdtime"===e?"standard-time":e}get nativeExtent(){return this._get("nativeExtent")||this.extent}set nativeExtent(e){e&&this._set("nativeExtent",e)}get nativePixelSize(){if(null==this.transform||!this.transform.affectsPixelSize)return this.pixelSize;const e=this.nativeExtent;return{x:e.width/this.width,y:e.height/this.height}}get hasMultidimensionalTranspose(){return!!this.storageInfo?.transposeInfo}get sensorInfo(){if(this.keyProperties?.SensorName)return C.fromJSON(this.keyProperties)}clone(){return new b({attributeTable:(0,s.d9)(this.attributeTable),bandCount:this.bandCount,colormap:(0,s.d9)(this.colormap),extent:(0,s.d9)(this.extent),nativePixelSize:(0,s.d9)(this.nativePixelSize),format:this.format,height:this.height,width:this.width,histograms:(0,s.d9)(this.histograms),keyProperties:(0,s.d9)(this.keyProperties),multidimensionalInfo:(0,s.d9)(this.multidimensionalInfo),noDataValue:this.noDataValue,pixelSize:(0,s.d9)(this.pixelSize),pixelType:this.pixelType,isPseudoSpatialReference:this.isPseudoSpatialReference,spatialReference:(0,s.d9)(this.spatialReference),statistics:(0,s.d9)(this.statistics),storageInfo:(0,s.d9)(this.storageInfo),transform:(0,s.d9)(this.transform)})}};(0,o._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"attributeTable",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"bandCount",void 0),(0,o._)([(0,a.Cb)({readOnly:!0})],x.prototype,"bandInfos",null),(0,o._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"colormap",void 0),(0,o._)([(0,a.Cb)({type:String,readOnly:!0})],x.prototype,"dataType",null),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],x.prototype,"extent",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],x.prototype,"nativeExtent",null),(0,o._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"nativePixelSize",null),(0,o._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"format",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"height",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"width",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"hasMultidimensionalTranspose",null),(0,o._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"histograms",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"keyProperties",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"multidimensionalInfo",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"noDataValue",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"pixelSize",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"pixelType",void 0),(0,o._)([(0,a.Cb)()],x.prototype,"isPseudoSpatialReference",void 0),(0,o._)([(0,a.Cb)({readOnly:!0})],x.prototype,"sensorInfo",null),(0,o._)([(0,a.Cb)({type:c.Z,json:{write:!0}})],x.prototype,"spatialReference",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"statistics",void 0),(0,o._)([(0,a.Cb)({type:v.Z,json:{write:!0}})],x.prototype,"storageInfo",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"transform",void 0),x=b=(0,o._)([(0,l.j)("esri.layers.support.RasterInfo")],x);const k=x},36679:(e,t,r)=>{r.d(t,{Z:()=>h});var n,o=r(43697),i=r(96674),s=r(22974),a=r(5600),l=(r(75215),r(52011)),u=r(94139);let c=n=class extends i.wq{constructor(){super(...arguments),this.blockWidth=void 0,this.blockHeight=void 0,this.compression=null,this.origin=null,this.firstPyramidLevel=null,this.maximumPyramidLevel=null,this.pyramidScalingFactor=2,this.pyramidBlockWidth=null,this.pyramidBlockHeight=null,this.isVirtualTileInfo=!1,this.tileInfo=null,this.transposeInfo=null,this.blockBoundary=null}clone(){return new n({blockWidth:this.blockWidth,blockHeight:this.blockHeight,compression:this.compression,origin:(0,s.d9)(this.origin),firstPyramidLevel:this.firstPyramidLevel,maximumPyramidLevel:this.maximumPyramidLevel,pyramidResolutions:(0,s.d9)(this.pyramidResolutions),pyramidScalingFactor:this.pyramidScalingFactor,pyramidBlockWidth:this.pyramidBlockWidth,pyramidBlockHeight:this.pyramidBlockHeight,isVirtualTileInfo:this.isVirtualTileInfo,tileInfo:(0,s.d9)(this.tileInfo),transposeInfo:(0,s.d9)(this.transposeInfo),blockBoundary:(0,s.d9)(this.blockBoundary)})}};(0,o._)([(0,a.Cb)({type:Number,json:{write:!0}})],c.prototype,"blockWidth",void 0),(0,o._)([(0,a.Cb)({type:Number,json:{write:!0}})],c.prototype,"blockHeight",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"compression",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],c.prototype,"origin",void 0),(0,o._)([(0,a.Cb)({type:Number,json:{write:!0}})],c.prototype,"firstPyramidLevel",void 0),(0,o._)([(0,a.Cb)({type:Number,json:{write:!0}})],c.prototype,"maximumPyramidLevel",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],c.prototype,"pyramidResolutions",void 0),(0,o._)([(0,a.Cb)({type:Number,json:{write:!0}})],c.prototype,"pyramidScalingFactor",void 0),(0,o._)([(0,a.Cb)({type:Number,json:{write:!0}})],c.prototype,"pyramidBlockWidth",void 0),(0,o._)([(0,a.Cb)({type:Number,json:{write:!0}})],c.prototype,"pyramidBlockHeight",void 0),(0,o._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],c.prototype,"isVirtualTileInfo",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],c.prototype,"tileInfo",void 0),(0,o._)([(0,a.Cb)()],c.prototype,"transposeInfo",void 0),(0,o._)([(0,a.Cb)()],c.prototype,"blockBoundary",void 0),c=n=(0,o._)([(0,l.j)("esri.layers.support.RasterStorageInfo")],c);const h=c},20095:(e,t,r)=>{function n(e,t){let r=0,n="",o=0,i=0;const s=e.length;for(;r<s;)i=e[r++],o=i>>4,o<8?o=1:15===o?(o=4,i=(7&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++]):14===o?(o=3,i=(15&i)<<12|(63&e[r++])<<6|63&e[r++]):(o=2,i=(31&i)<<6|63&e[r++]),(0!==i||t)&&(n+=String.fromCharCode(i));return n}r.d(t,{f:()=>n})},72955:(e,t,r)=>{r.d(t,{Jx:()=>h,zD:()=>a});var n=r(99880);const o=[{pixelType:"S8",size:1,ctor:Int8Array,range:[-128,127]},{pixelType:"U8",size:1,ctor:Uint8Array,range:[0,255]},{pixelType:"S16",size:2,ctor:Int16Array,range:[-32768,32767]},{pixelType:"U16",size:2,ctor:Uint16Array,range:[0,65536]},{pixelType:"S32",size:4,ctor:Int32Array,range:[-2147483648,2147483647]},{pixelType:"U32",size:4,ctor:Uint32Array,range:[0,4294967296]},{pixelType:"F32",size:4,ctor:Float32Array,range:[-34027999387901484e22,34027999387901484e22]},{pixelType:"F64",size:8,ctor:Float64Array,range:[-17976931348623157e292,17976931348623157e292]}];let i=null,s=null;function a(){return i||(i=r.e(6233).then(r.bind(r,26233)).then((e=>e.l)).then((({default:e})=>e({locateFile:e=>(0,n.V)(`esri/layers/support/rasterFormats/${e}`)}))).then((e=>{(function(e){const{_malloc:t,_free:r,_lerc_getBlobInfo:n,_lerc_getDataRanges:i,_lerc_decode_4D:s,asm:a}=e;let c;const h=Object.values(a).find((t=>t&&"buffer"in t&&t.buffer===e.HEAPU8.buffer)),f=e=>{const r=e.map((e=>function(e){return 16+(e>>3<<3)}(e))),n=r.reduce(((e,t)=>e+t)),o=t(n);c=new Uint8Array(h.buffer);let i=r[0];r[0]=o;for(let e=1;e<r.length;e++){const t=r[e];r[e]=r[e-1]+i,i=t}return r};l.getBlobInfo=e=>{const t=new Uint8Array(48),o=new Uint8Array(24),[s,a,l]=f([e.length,t.length,o.length]);c.set(e,s),c.set(t,a),c.set(o,l);let d=n(s,e.length,a,l,12,3);if(d)throw r(s),new Error(`lerc-getBlobInfo: error code is ${d}`);c=new Uint8Array(h.buffer),u(c,a,t),u(c,l,o);const p=new Uint32Array(t.buffer),g=new Float64Array(o.buffer),[m,y,,w,C,b,v,x,k,T,S]=p,A={version:m,depthCount:T,width:w,height:C,validPixelCount:v,bandCount:b,blobSize:x,maskCount:k,dataType:y,minValue:g[0],maxValue:g[1],maxZerror:g[2],statistics:[],bandCountWithNoData:S};if(S)return A;if(1===T&&1===b)return r(s),A.statistics.push({minValue:g[0],maxValue:g[1]}),A;const I=T*b*8,P=new Uint8Array(I),M=new Uint8Array(I);let D=s,E=0,R=0,_=!1;if(c.byteLength<s+2*I?(r(s),_=!0,[D,E,R]=f([e.length,I,I]),c.set(e,D)):[E,R]=f([I,I]),c.set(P,E),c.set(M,R),d=i(D,e.length,T,b,E,R),d)throw r(D),_||r(E),new Error(`lerc-getDataRanges: error code is ${d}`);c=new Uint8Array(h.buffer),u(c,E,P),u(c,R,M);const L=new Float64Array(P.buffer),B=new Float64Array(M.buffer),U=A.statistics;for(let e=0;e<b;e++)if(T>1){const t=L.slice(e*T,(e+1)*T),r=B.slice(e*T,(e+1)*T),n=Math.min.apply(null,t),o=Math.max.apply(null,r);U.push({minValue:n,maxValue:o,depthStats:{minValues:t,maxValues:r}})}else U.push({minValue:L[e],maxValue:B[e]});return r(D),_||r(E),A},l.decode=(e,t)=>{const{maskCount:n,depthCount:i,bandCount:a,width:l,height:d,dataType:p,bandCountWithNoData:g}=t,m=o[p],y=l*d,w=new Uint8Array(y*a),C=y*i*a*m.size,b=new Uint8Array(C),v=new Uint8Array(a),x=new Uint8Array(8*a),[k,T,S,A,I]=f([e.length,w.length,b.length,v.length,x.length]);c.set(e,k),c.set(w,T),c.set(b,S),c.set(v,A),c.set(x,I);const P=s(k,e.length,n,T,i,l,d,a,p,S,A,I);if(P)throw r(k),new Error(`lerc-decode: error code is ${P}`);c=new Uint8Array(h.buffer),u(c,S,b),u(c,T,w);let M=null;if(g){u(c,A,v),u(c,I,x),M=[];const e=new Float64Array(x.buffer);for(let t=0;t<v.length;t++)M.push(v[t]?e[t]:null)}return r(k),{data:b,maskData:w,noDataValues:M}}})(e),s=!0})),i)}const l={getBlobInfo:null,decode:null};function u(e,t,r){r.set(e.slice(t,t+r.length))}function c(e,t,r,n,o){if(r<2)return e;const i=new n(t*r);if(o)for(let n=0,o=0;n<t;n++)for(let s=0,a=n;s<r;s++,a+=t)i[a]=e[o++];else for(let n=0,o=0;n<t;n++)for(let s=0,a=n;s<r;s++,a+=t)i[o++]=e[a];return i}function h(e,t={}){const r=t.inputOffset??0,n=e instanceof Uint8Array?e.subarray(r):new Uint8Array(e,r),i=l.getBlobInfo(n),{data:s,maskData:a,noDataValues:u}=l.decode(n,i),{width:h,height:f,bandCount:d,depthCount:p,dataType:g,maskCount:m,statistics:y}=i,w=o[g],C=new w.ctor(s.buffer),b=[],v=[],x=h*f,k=x*p;for(let e=0;e<d;e++){const r=C.subarray(e*k,(e+1)*k);if(t.returnInterleaved)b.push(r);else{const e=c(r,x,p,w.ctor,!0);b.push(e)}v.push(a.subarray(e*k,(e+1)*k))}const T=0===m?null:1===m?v[0]:new Uint8Array(x);if(m>1){T.set(v[0]);for(let e=1;e<v.length;e++){const t=v[e];for(let e=0;e<x;e++)T[e]=T[e]&t[e]}}const{noDataValue:S}=t,A=null!=S&&w.range[0]<=S&&w.range[1]>=S;if(m>0&&A)for(let e=0;e<d;e++){const t=b[e],r=v[e]||T;for(let e=0;e<x;e++)0===r[e]&&(t[e]=S)}const I=m===d&&d>1?v:null,{pixelType:P}=w;return{width:h,height:f,bandCount:d,pixelType:P,depthCount:p,statistics:y,pixels:b,mask:T,bandMasks:I,noDataValues:u}}},88781:(e,t,r)=>{function n(){const e=[];for(let t=0;t<=257;t++)e[t]=[t];return e}function o(e,t){for(let r=0;r<t.length;r++)e.push(t[r])}r.d(t,{J:()=>s});const i=new Set;function s(e,t,r,s=!0){const a=function(e,t,r,n=!0){if(t%4!=0||r%4!=0){const o=new ArrayBuffer(4*Math.ceil(r/4)),i=new Uint8Array(o),s=new Uint8Array(e,t,r);if(n)for(let e=0;e<i.length;e+=4)i[e]=s[e+3],i[e+1]=s[e+2],i[e+2]=s[e+1],i[e+3]=s[e];else i.set(s);return new Uint32Array(i.buffer)}if(n){const n=new Uint8Array(e,t,r),o=new Uint8Array(n.length);for(let e=0;e<o.length;e+=4)o[e]=n[e+3],o[e+1]=n[e+2],o[e+2]=n[e+1],o[e+3]=n[e];return new Uint32Array(o.buffer)}return new Uint32Array(e,t,r/4)}(e,t,r,s);let l=9,u=n(),c=32,h=u.length,f=[],d=1,p=a[0],g=0;const m=a.length,y=8*(4*m-r),w=[];for(;null!=p;){if(c>=l)c-=l,g=p>>>32-l,p<<=l;else{g=p>>>32-c,p=a[d++];const e=l-c;c=32-e,g=(g<<e)+(p>>>c),p<<=e}if(257===g)break;if(256===g){l=9,u=n(),h=u.length,f=[];continue}const e=u[g];if(null==e){if(g>u.length)throw new Error("data integrity issue: code does not exist on code page");f.push(f[0]),u[h++]=f.slice(),o(w,f)}else o(w,e),f.push(e[0]),f.length>1&&(u[h++]=f.slice()),f=e.slice();if(i.has(h)&&l++,0===c&&(p=a[d++],c=32),d>m||d===m&&c<=y)break}return new Uint8Array(w)}i.add(511),i.add(1023),i.add(2047),i.add(4095),i.add(8191)},75993:(e,t,r)=>{r.d(t,{J:()=>R,y:()=>E});var n=r(20102),o=r(70586),i=r(5847),s=r(95330),a=r(80899);class l{constructor(e){this._canvas=null,this._ctx=null,e&&(this._canvas=e.canvas,this._ctx=e.ctx||e.canvas&&e.canvas.getContext("2d"))}decode(e,t,r){if(!e||e.byteLength<10)throw new n.Z("imagecanvasdecoder: decode","required a valid encoded data as input.");let{width:o=0,height:i=0,format:a}=t;const{applyJpegMask:u}=t;if(u&&(!o||!i))throw new n.Z("imagecanvasdecoder: decode","image width and height are needed to apply jpeg mask directly to canvas");return new Promise(((n,c)=>{let h=null;"jpg"===a&&u&&(h=l._getMask(e,{width:o,height:i}));const f=new Blob([new Uint8Array(e)],{type:"image/"+a=="jpg"?"jpeg":a}),d=URL.createObjectURL(f),p=new Image;let g;p.src=d,p.onload=()=>{if(URL.revokeObjectURL(d),(0,s.Hc)(r))return void c((0,s.zE)());o=p.width,i=p.height,this._canvas&&this._ctx?(this._canvas.width===o&&this._canvas.height===i||(this._canvas.width=o,this._canvas.height=i),this._ctx.clearRect(0,0,o,i)):(this._canvas=document.createElement("canvas"),this._canvas.width=o,this._canvas.height=i,this._ctx=this._canvas.getContext("2d")),this._ctx.drawImage(p,0,0);const e=this._ctx.getImageData(0,0,o,i);let a;if(g=e.data,t.renderOnCanvas){if(h)for(a=0;a<h.length;a++)h[a]?g[4*a+3]=255:g[4*a+3]=0;return this._ctx.putImageData(e,0,0),void n(null)}const l=o*i,u=new Uint8Array(l),f=new Uint8Array(l),m=new Uint8Array(l);if(h)for(a=0;a<l;a++)u[a]=g[4*a],f[a]=g[4*a+1],m[a]=g[4*a+2];else for(h=new Uint8Array(l),a=0;a<l;a++)u[a]=g[4*a],f[a]=g[4*a+1],m[a]=g[4*a+2],h[a]=g[4*a+3];n({width:o,height:i,pixels:[u,f,m],mask:h,pixelType:"u8"})},p.onerror=()=>{URL.revokeObjectURL(d),c("cannot load image")}}))}static _getMask(e,t){let r=null;try{const n=new Uint8Array(e),o=Math.ceil(n.length/2);let i=0;const s=n.length-2;for(i=o;i<s&&(255!==n[i]||217!==n[i+1]);i++);if(i+=2,i<n.length-1){const e=new a.Z(n.subarray(i)).getBytes();r=new Uint8Array(t.width*t.height);let o=0;for(let t=0;t<e.length;t++)for(let n=7;n>=0;n--)r[o++]=e[t]>>n&1}}catch(e){}return r}}var u=r(97575);class c{static decode(e,t=!1){const r=new Uint8Array(e),n=new u.J;n.parse(r);const{width:o,height:i,numComponents:s,eof:l}=n,c=n.getData(o,i,!0),h=o*i;let f,d=null,p=0,g=0,m=0;if(!t&&l<r.length-1)try{const e=new a.Z(r.subarray(l)).getBytes();d=new Uint8Array(h);let t=0;for(p=0;p<e.length;p++)for(m=7;m>=0;m--)d[t++]=e[p]>>m&1}catch{}if(1===s&&c.length===o*i){const e=new Uint8Array(c.buffer);f=[e,e,e]}else{for(f=[],p=0;p<3;p++)f.push(new Uint8Array(h));for(m=0,g=0;g<h;g++)for(p=0;p<3;p++)f[p][g]=c[m++]}return{width:o,height:i,pixels:f,mask:d}}}var h=r(72955),f=r(88781),d=r(81578);const p=(e,t)=>{const r=t.width*t.height,n=t.pixelType;return Math.floor(e.byteLength/(r*g(n)))},g=e=>{let t=1;switch(e){case Uint8Array:case Int8Array:t=1;break;case Uint16Array:case Int16Array:t=2;break;case Uint32Array:case Int32Array:case Float32Array:t=4;break;case Float64Array:t=8}return t};class m{static decode(e,t){const r=t.pixelType,n=[],o=t.width*t.height,i=p(e,t),{bandIds:s,format:a}=t,l=s&&s.length||p(e,t),u=e.byteLength-e.byteLength%(o*g(r)),c=new r(e,0,o*i);let h,f,d,m,y=null;if("bip"===a)for(h=0;h<l;h++){for(d=new r(o),m=s?s[h]:h,f=0;f<o;f++)d[f]=c[f*i+m];n.push(d)}else if("bsq"===a)for(h=0;h<l;h++)m=s?s[h]:h,n.push(c.subarray(m*o,(m+1)*o));return u<e.byteLength-1&&(y=((e,t)=>{if(8*e.byteLength<t)return null;const r=new Uint8Array(e,0,Math.ceil(t/8)),n=new Uint8Array(t);let o=0,i=0,s=0,a=0;for(s=0;s<r.length-1;s++)for(i=r[s],a=7;a>=0;a--)n[o++]=i>>a&1;for(a=7;o<t-1;)i=r[r.length-1],n[o++]=i>>a&1,a--;return n})(e.slice(u),o)),{pixels:n,mask:y}}}var y=r(94793),w=r(48279),C=function(e){var t,r,n;function o(e){var t,r,n,o,i,s,a,l,u,c,h,f,d;for(this.data=e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},i=null;;){switch(t=this.readUInt32(),l=function(){var e,t;for(t=[],e=0;e<4;++e)t.push(String.fromCharCode(this.data[this.pos++]));return t}.call(this).join(""),l){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(t);break;case"fcTL":i&&this.animation.frames.push(i),this.pos+=4,i={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},o=this.readUInt16(),n=this.readUInt16()||100,i.delay=1e3*o/n,i.disposeOp=this.data[this.pos++],i.blendOp=this.data[this.pos++],i.data=[];break;case"IDAT":case"fdAT":for("fdAT"===l&&(this.pos+=4,t-=4),e=(null!=i?i.data:void 0)||this.imgData,h=0;0<=t?h<t:h>t;0<=t?++h:--h)e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(this.transparency.indexed=this.read(t),(u=255-this.transparency.indexed.length)>0)for(f=0;0<=u?f<u:f>u;0<=u?++f:--f)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":s=(c=this.read(t)).indexOf(0),a=String.fromCharCode.apply(String,c.slice(0,s)),this.text[a]=String.fromCharCode.apply(String,c.slice(s+1));break;case"IEND":return i&&this.animation.frames.push(i),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(d=this.colorType)||6===d,r=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*r,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}return o.load=function(e,t,r){var n;return"function"==typeof t&&(r=t),(n=new XMLHttpRequest).open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){var e;return e=new o(new Uint8Array(n.response||n.mozResponseArrayBuffer)),"function"==typeof(null!=t?t.getContext:void 0)&&e.render(t),"function"==typeof r?r(e):void 0},n.send(null)},o.prototype.read=function(e){var t,r;for(r=[],t=0;0<=e?t<e:t>e;0<=e?++t:--t)r.push(this.data[this.pos++]);return r},o.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},o.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},o.prototype.decodePixels=function(e){var t,r,n,o,i,s,l,u,c,h,f,d,p,g,m,y,w,C,b,v,x,k,T;if(null==e&&(e=this.imgData),0===e.length)return new Uint8Array(0);for(e=(e=new a.Z(e)).getBytes(),y=(d=this.pixelBitlength/8)*this.width,p=new Uint8Array(y*this.height),s=e.length,m=0,g=0,r=0;g<s;){switch(e[g++]){case 0:for(o=b=0;b<y;o=b+=1)p[r++]=e[g++];break;case 1:for(o=v=0;v<y;o=v+=1)t=e[g++],i=o<d?0:p[r-d],p[r++]=(t+i)%256;break;case 2:for(o=x=0;x<y;o=x+=1)t=e[g++],n=(o-o%d)/d,w=m&&p[(m-1)*y+n*d+o%d],p[r++]=(w+t)%256;break;case 3:for(o=k=0;k<y;o=k+=1)t=e[g++],n=(o-o%d)/d,i=o<d?0:p[r-d],w=m&&p[(m-1)*y+n*d+o%d],p[r++]=(t+Math.floor((i+w)/2))%256;break;case 4:for(o=T=0;T<y;o=T+=1)t=e[g++],n=(o-o%d)/d,i=o<d?0:p[r-d],0===m?w=C=0:(w=p[(m-1)*y+n*d+o%d],C=n&&p[(m-1)*y+(n-1)*d+o%d]),l=i+w-C,u=Math.abs(l-i),h=Math.abs(l-w),f=Math.abs(l-C),c=u<=h&&u<=f?i:h<=f?w:C,p[r++]=(t+c)%256;break;default:throw new Error("Invalid filter algorithm: "+e[g-1])}m++}return p},o.prototype.decodePalette=function(){var e,t,r,n,o,i,s,a,l;for(r=this.palette,i=this.transparency.indexed||[],o=new Uint8Array((i.length||0)+r.length),n=0,r.length,e=0,t=s=0,a=r.length;s<a;t=s+=3)o[n++]=r[t],o[n++]=r[t+1],o[n++]=r[t+2],o[n++]=null!=(l=i[e++])?l:255;return o},o.prototype.copyToImageData=function(e,t){var r,n,o,i,s,a,l,u,c,h,f;if(n=this.colors,c=null,r=this.hasAlphaChannel,this.palette.length&&(c=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),n=4,r=!0),u=(o=e.data||e).length,s=c||t,i=a=0,1===n)for(;i<u;)l=c?4*t[i/4]:a,h=s[l++],o[i++]=h,o[i++]=h,o[i++]=h,o[i++]=r?s[l++]:this.transparency.grayscale&&this.transparency.grayscale===h?0:255,a=l;else for(;i<u;)l=c?4*t[i/4]:a,o[i++]=s[l++],o[i++]=s[l++],o[i++]=s[l++],o[i++]=r?s[l++]:this.transparency.rgb&&this.transparency.rgb[1]===s[l-3]&&this.transparency.rgb[3]===s[l-2]&&this.transparency.rgb[5]===s[l-1]?0:255,a=l},o.prototype.decode=function(){var e;return e=new Uint8Array(this.width*this.height*4),this.copyToImageData(e,this.decodePixels()),e},r=e.document&&e.document.createElement("canvas"),n=r&&r.getContext("2d"),t=function(e){var t;return n.width=e.width,n.height=e.height,n.clearRect(0,0,e.width,e.height),n.putImageData(e,0,0),(t=new Image).src=r.toDataURL(),t},o.prototype.decodeFrames=function(e){var r,n,o,i,s,a,l,u;if(this.animation){for(u=[],n=s=0,a=(l=this.animation.frames).length;s<a;n=++s)r=l[n],o=e.createImageData(r.width,r.height),i=this.decodePixels(new Uint8Array(r.data)),this.copyToImageData(o,i),r.imageData=o,u.push(r.image=t(o));return u}},o.prototype.renderFrame=function(e,t){var r,n,o;return r=(n=this.animation.frames)[t],o=n[t-1],0===t&&e.clearRect(0,0,this.width,this.height),1===(null!=o?o.disposeOp:void 0)?e.clearRect(o.xOffset,o.yOffset,o.width,o.height):2===(null!=o?o.disposeOp:void 0)&&e.putImageData(o.imageData,o.xOffset,o.yOffset),0===r.blendOp&&e.clearRect(r.xOffset,r.yOffset,r.width,r.height),e.drawImage(r.image,r.xOffset,r.yOffset)},o.prototype.animate=function(e){var t,r,n,o,i,s,a=this;return r=0,s=this.animation,o=s.numFrames,n=s.frames,i=s.numPlays,(t=function(){var s,l;if(s=r++%o,l=n[s],a.renderFrame(e,s),o>1&&r/o<i)return a.animation._timeout=setTimeout(t,l.delay)})()},o.prototype.stopAnimation=function(){var e;return clearTimeout(null!=(e=this.animation)?e._timeout:void 0)},o.prototype.render=function(e){var t,r;return e._png&&e._png.stopAnimation(),e._png=this,e.width=this.width,e.height=this.height,t=e.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(r=t.createImageData(this.width,this.height),this.copyToImageData(r,this.decodePixels()),t.putImageData(r,0,0))},o}(self);const b=new Set(["jpg","png","bmp","gif"]);async function v(e,t){if(!w.f)throw new n.Z("rasterCoded:decode","lerc decoder is not supported on big endian platform");await(0,h.zD)();const{offset:r}=t,{width:o,height:s,pixelType:a,statistics:l,depthCount:u,noDataValues:c,bandMasks:f,pixels:d,mask:p}=(0,h.Jx)(e,{inputOffset:r,returnInterleaved:t.returnInterleaved});return new i.Z({width:o,height:s,pixelType:a.toLowerCase(),pixels:d,mask:p,statistics:l,bandMasks:f,depthCount:u,noDataValues:c})}async function x(e,t){const r=await(0,y.Jx)(e,{...t,noDataValue:null});(0,o.O3)(r);const n=new i.Z({width:r.width,height:r.height,pixels:r.pixels,pixelType:r.pixelType.toLowerCase(),mask:r.mask,statistics:null});return n.updateStatistics(),n}function k(e,t){const r=t.pixelType||"u8",n=i.Z.getPixelArrayConstructor(r),o="u8"===r?e:new n(e.buffer),s=[],a=t.planes||1;if(1===a)s.push(o);else for(let r=0;r<a;r++){const i=(t.width||1)*(t.height||e.length),l=new n(i);for(let e=0;e<i;e++)l[e]=o[e*a+r];s.push(l)}const l=new i.Z({width:t.width||1,height:t.height||e.length,pixels:s,pixelType:r,statistics:null});return l.updateStatistics(),l}function T(e,t){return k(new a.Z(new Uint8Array(e)).getBytes(),t)}function S(e,t){return k((0,f.J)(e,t.offset,t.eof,!t.isInputBigEndian),t)}function A(e,t,r){const{pixelTypeCtor:n}=function(e){let t=null,r=null;switch(e?e.toLowerCase():"f32"){case"u1":case"u2":case"u4":case"u8":r=255,t=Uint8Array;break;case"u16":r=r||65535,t=Uint16Array;break;case"u32":r=r||2**32-1,t=Uint32Array;break;case"s8":r=r||-128,t=Int8Array;break;case"s16":r=r||-32768,t=Int16Array;break;case"s32":r=r||0-2**31,t=Int32Array;break;default:t=Float32Array}return{pixelTypeCtor:t,noDataValue:r}}(t.pixelType),o=(0,m.decode)(e,{width:t.width,height:t.height,pixelType:n,format:r}),s=new i.Z({width:t.width,height:t.height,pixels:o.pixels,pixelType:t.pixelType,mask:o.mask,statistics:null});return s.updateStatistics(),s}function I(e,t){const r=c.decode(e,t.hasNoZlibMask??void 0),n=new i.Z({width:r.width,height:r.height,pixels:r.pixels,pixelType:"U8",mask:r.mask,statistics:null});return n.updateStatistics(),n}function P(e,t){const r=new Uint8Array(e),n=new C(r),{width:o,height:s}=t,a=o*s,l=n.decode();let u,c=0,h=0;const f=new Uint8Array(a);for(c=0;c<a;c++)f[c]=l[4*c+3];const d=new i.Z({width:o,height:s,pixels:[],pixelType:"U8",mask:f,statistics:[]});for(c=0;c<3;c++){for(u=new Uint8Array(a),h=0;h<a;h++)u[h]=l[4*h+c];d.addData({pixels:u})}return d.updateStatistics(),d}async function M(e,t,r,n){const o=new l,s={applyJpegMask:!1,format:t,...r},a=await o.decode(e,s,n),u=new i.Z(a);return u.updateStatistics(),u}function D(e){if(null==e)throw new n.Z("rasterCodec:decode","parameter encodeddata is required.");const t=new Uint8Array(e,0,10);let r="";return 255===t[0]&&216===t[1]?r="jpg":137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]?r="png":67===t[0]&&110===t[1]&&116===t[2]&&90===t[3]&&73===t[4]&&109===t[5]&&97===t[6]&&103===t[7]&&101===t[8]&&32===t[9]?r="lerc":76===t[0]&&101===t[1]&&114===t[2]&&99===t[3]&&50===t[4]&&32===t[5]?r="lerc2":73===t[0]&&73===t[1]&&42===t[2]&&0===t[3]||77===t[0]&&77===t[1]&&0===t[2]&&42===t[3]||73===t[0]&&73===t[1]&&43===t[2]&&0===t[3]||77===t[0]&&77===t[1]&&0===t[2]&&43===t[3]?r="tiff":71===t[0]&&73===t[1]&&70===t[2]?r="gif":66===t[0]&&77===t[1]?r="bmp":String.fromCharCode.apply(null,t).toLowerCase().includes("error")&&(r="error"),r}function E(e){let t=D(e);return"lerc2"===t?t="lerc":"error"===t&&(t=""),t}async function R(e,t={},r){if(null==e)throw new n.Z("rasterCodec:decode","missing encodeddata parameter.");let o=t.format&&t.format.toLowerCase();if(!("bsq"!==o&&"bip"!==o||null!=t.width&&null!=t.height))throw new n.Z("rasterCodec:decode","requires width and height in options parameter.");if("tiff"===o&&t.customOptions)return async function(e,t){const r=await(0,y.Uw)(e,t.customOptions),n=new i.Z({width:r.width,height:r.height,pixels:r.pixels,pixelType:r.pixelType.toLowerCase(),mask:r.mask,statistics:null});return n.updateStatistics(),n}(e,t);if((!o||"bsq"!==o&&"bip"!==o&&"deflate"!==o&&"lzw"!==o)&&(o=D(e)),t.useCanvas&&b.has(o))return M(e,o,t,r);const s=function(e){let t=null;switch(e){case"lerc":case"lerc2":t=v;break;case"jpg":t=I;break;case"png":t=P;break;case"bsq":case"bip":t=(t,r)=>A(t,r,e);break;case"tiff":t=x;break;case"deflate":t=T;break;case"lzw":t=S;break;case"error":t=()=>{throw new n.Z("rasterCodec:decode","input data contains error")};break;default:t=()=>{throw new n.Z("rasterCodec:decode","unsupported raster format")}}return t}(o);t.isPoint&&(null!=(t={...t}).width&&t.width++,null!=t.height&&t.height++);const a=await s(e,t);return a?("jpg"!==o&&null!=t.noDataValue&&1===a.depthCount&&(0,d.A)(a,t.noDataValue,{customFloatTolerance:t.tolerance}),t.isPoint&&function(e,t=1){if(!e)return;const{pixels:r,width:n,height:o,mask:s}=e;if(!r||0===r.length)return;const a=r.length,l=n-1,u=o-1,c=[];let h,f,d,p,g,m,y=null;const w=i.Z.getPixelArrayConstructor(e.pixelType);if(0===t){for(h=0;h<a;h++){for(g=r[h],m=new w(l*u),f=0;f<u;f++)for(p=f*n,d=0;d<l;d++)m[f*l+d]=g[p+d];c.push(m)}if(null!=s)for(y=new Uint8Array(l*u),f=0;f<u;f++)for(p=f*n,d=0;d<l;d++)y[f*l+d]=s[p+d]}else{for(h=0;h<a;h++){for(g=r[h],m=new w(l*u),f=0;f<u;f++)for(p=f*n,d=0;d<l;d++)m[f*l+d]=(g[p+d]+g[p+d+1]+g[p+n+d]+g[p+n+d+1])/4;c.push(m)}if(s)for(y=new Uint8Array(l*u),f=0;f<u;f++)for(p=f*n,d=0;d<l;d++)y[f*l+d]=Math.min.apply(null,[s[p+d],s[p+d+1],s[p+n+d],s[p+n+d+1]])}e.width=l,e.height=u,e.mask=y,e.pixels=c}(a),a):a}},94793:(e,t,r)=>{r.d(t,{Dq:()=>D,FI:()=>E,I7:()=>L,If:()=>R,Jx:()=>z,Uw:()=>V,cK:()=>O,ee:()=>_,vr:()=>N});var n=r(20095),o=r(97575),i=r(72955),s=r(88781),a=r(81578),l=r(9832),u=r(48279),c=r(80899);const h=[0,1,1,2,4,8,1,1,2,4,8,4,8,-1,-1,-1,8,8,8],f=4294967296,d=new Set([1,5,6,7,8,34712,34887]);function p(e,t){let r="unknown";return 3===e?r=64===t?"f64":"f32":1===e?1===t?r="u1":2===t?r="u2":4===t?r="u4":t<=8?r="u8":t<=16?r="u16":t<=32&&(r="u32"):2===e&&(t<=8?r="s8":t<=16?r="s16":t<=32&&(r="s32")),r}function g(e){let t=null;switch(e?e.toLowerCase():"f32"){case"u1":case"u2":case"u4":case"u8":t=Uint8Array;break;case"u16":t=Uint16Array;break;case"u32":t=Uint32Array;break;case"s8":t=Int8Array;break;case"s16":t=Int16Array;break;case"s32":t=Int32Array;break;case"f64":t=Float64Array;break;default:t=Float32Array}return t}function m(e,t){return{x:t[0]*e.x+t[1]*e.y+t[2],y:t[3]*e.x+t[4]*e.y+t[5]}}function y(e,t){return e.get(t)?.values}function w(e,t){return e.get(t)?.values}function C(e,t){return e.get(t)?.values?.[0]}function b(e,t){return e.get(t)?.values?.[0]}function v(e,t,r,n=0,o=l.Z.TIFF_TAGS,i=4){const s=8===i,a=s?B(new DataView(e,r,8),0,t):new DataView(e,r,2).getUint16(0,t),u=4+2*i,c=s?8:2,h=c+a*u;if(r+h>e.byteLength)return{success:!1,ifd:null,nextIFD:null,requiredBufferSize:h};const f=r+h+4<=e.byteLength?G(new DataView(e,r+h,8===i?8:4),0,t,8===i):null,d=r+c,p=new Map;let g,m,y,w,C,b=0,v=0;for(let r=0;r<a;r++){m=new DataView(e,d+u*r,u),y=m.getUint16(0,t),C=m.getUint16(2,t),w=l.Z.getTagName(y,o);const s=[];2===i?(b=m.getUint16(4,t),v=m.getUint16(6,t)):4===i?(b=m.getUint32(4,t),v=m.getUint32(8,t)):8===i&&(b=G(m,4,t,!0),v=G(m,12,t,!0),s.push(m.getUint32(12,t)),s.push(m.getUint32(16,t))),g={id:y,type:C,valueCount:b,valueOffset:v,valueOffsets:s,values:null},D(e,t,g,n,!1,i),p.set(w,g)}return{success:!0,ifd:p,nextIFD:f,requiredBufferSize:h}}const x=(e,t)=>(0,i.Jx)(e,{inputOffset:t}).pixels[0];function k(e,t){if(1!==t&&2!==t&&4!==t)return e;const r=new Uint8Array(e),n=8/t,o=new Uint8Array(e.byteLength*n);let i=0;const s=2**t-1;for(let e=0;e<r.length;e++){const a=r[e];for(let e=0;e<n;e++)o[i++]=a<<t*e>>>8-t&s}return o.buffer}function T(e,t,r){const n=new o.J;n.parse(e),n.colorTransform=6===r?-1:0;const i=n.getData(n.width,n.height,1!==t);return new Uint8Array(i.buffer)}function S(e){const t=new c.Z(e).getBytes(),r=new ArrayBuffer(t.length),n=new Uint8Array(r);return n.set(t),n}async function A(e,t,r,n,o){const a=u.f===t,l=b(r,"BITSPERSAMPLE"),c=b(r,"SAMPLESPERPIXEL"),h=b(r,"PHOTOMETRICINTERPRETATION"),f=p(b(r,"SAMPLEFORMAT")??1,l),d=b(r,"COMPRESSION")??1,m=g(f);let y,w,C;if(34887===d)return await(0,i.zD)(),x(e,n);if(1===d)y=e.slice(n,n+o),w=new Uint8Array(y);else if(8===d||32946===d)w=new Uint8Array(e,n,o),w=S(w),y=w.buffer;else if(6===d)w=new Uint8Array(e,n,o),w=T(w,c,h),y=w.buffer;else if(7===d){const t=r.get("JPEGTABLES").values,i=t.length-2;w=new Uint8Array(i+o-2);for(let e=0;e<i;e++)w[e]=t[e];const s=new Uint8Array(e,n+2,o-2);for(let e=0;e<s.length;e++)w[i+e]=s[e];w=T(w,c,h),y=w.buffer}else{if(5!==d)throw new Error("tiff-decode: unsupport compression "+d);w=(0,s.J)(e,n,o,t),y=w.buffer}if(y=k(y,l),"u8"===f||"s8"===f||a)C=new m(y);else{y=new ArrayBuffer(w.length);const e=new Uint8Array(y);switch(f){case"u16":case"s16":for(let t=0;t<w.length;t+=2)e[t]=w[t+1],e[t+1]=w[t];break;case"u32":case"s32":case"f32":for(let t=0;t<w.length;t+=4)e[t]=w[t+3],e[t+1]=w[t+2],e[t+2]=w[t+1],e[t+3]=w[t]}C=new m(y)}return C}const I=(e,t,r)=>{const n=u.f===t.littleEndian,o=w(r,"STRIPOFFSETS");if(void 0===o)return null;const{width:i,height:a,pixelType:l}=E([r]),c=b(r,"SAMPLESPERPIXEL")||t.planes,h=b(r,"PHOTOMETRICINTERPRETATION"),f=i*a,d=b(r,"BITSPERSAMPLE"),p=g(l),m=new p(f*c),y=w(r,"STRIPBYTECOUNTS"),C=b(r,"ROWSPERSTRIP"),v=b(r,"COMPRESSION")??1;let x,A,I,P,M,D,R,_,L,B=C;if(d%8==0)for(x=0;x<o.length;x++){if(M=x*(C*i)*c,B=(x+1)*C>a?a-x*C:C,"u8"===l||"s8"===l||n)8===v||32946===v?(R=new Uint8Array(e,o[x],y[x]),R=S(R),D=R.buffer):6===v?(R=new Uint8Array(e,o[x],y[x]),R=T(R,c,h),D=R.buffer):5===v?(R=(0,s.J)(e,o[x],y[x],t.littleEndian),D=R.buffer):(y[x]!==B*i*c*d/8&&console.log("strip byte counts is different than expected"),D=e.slice(o[x],o[x]+y[x])),D=k(D,d),P=new p(D);else{switch(6===v||8===v||32946===v?(R=new Uint8Array(e,o[x],y[x]),_=S(R),D=_.buffer):(y[x]!==B*i*c*d/8&&console.log("strip byte counts is different than expected"),D=new ArrayBuffer(y[x]),R=new Uint8Array(e,o[x],y[x]),_=new Uint8Array(D)),l){case"u16":case"s16":for(I=0;I<R.length;I+=2)_[I]=R[I+1],_[I+1]=R[I];break;case"u32":case"s32":case"f32":for(I=0;I<R.length;I+=4)_[I]=R[I+3],_[I+1]=R[I+2],_[I+2]=R[I+1],_[I+3]=R[I]}D=k(D,d),P=new p(D)}m.set(P,M)}const U=[];if(1===c)U.push(m);else for(x=0;x<c;x++){for(L=new p(f),A=0;A<f;A++)L[A]=m[A*c+x];U.push(L)}return{width:i,height:a,pixelType:l,pixels:U}},P=(e,t,r)=>{if(!(e&&e.length>0&&t&&r))return null;let n,o,i;const s=e[0].length,a=e.length,l=new Uint8Array(s);for(let u=0;u<a;u++)if(n=e[u],o=t[u],i=r[u],0===u)for(let e=0;e<s;e++)l[e]=n[e]<o||n[e]>i?0:1;else for(let e=0;e<s;e++)l[e]&&(l[e]=n[e]<o||n[e]>i?0:1);return l},M=e=>{if(!e)return null;const t=e.match(/<Item(.*?)Item>/gi);if(!t||0===t.length)return null;const r=new Map;let n,o,i,s,a;for(let e=0;e<t.length;e++)n=t[e],o=n.slice("<Item ".length,n.indexOf(">")),s=n.indexOf("sample="),s>-1&&(a=n.slice(s+'sample="'.length,n.indexOf('"',s+'sample="'.length))),s=n.indexOf("name="),s>-1&&(o=n.slice(s+'name="'.length,n.indexOf('"',s+'name="'.length))),o&&(i=n.slice(n.indexOf(">")+1,n.indexOf("</Item>")).trim(),null!=a?r.has(o)?r.get(o)[a]=i:r.set(o,[i]):r.set(o,i)),a=null;const l=r.get("STATISTICS_MINIMUM"),u=r.get("STATISTICS_MAXIMUM"),c=r.get("STATISTICS_MEAN"),h=r.get("STATISTICS_STDDEV");let f=null;if(l&&u){f=[];for(let e=0;e<l.length;e++)f.push({min:parseFloat(l[e]),max:parseFloat(u[e]),avg:c&&parseFloat(c[e]),stddev:h&&parseFloat(h[e])})}const d=r.get("BandName"),p=r.get("WavelengthMin"),g=r.get("WavelengthMax");let m=null;if(d){m=[];for(let e=0;e<d.length;e++)m.push({BandName:d[e],WavelengthMin:p&&parseFloat(p[e]),WavelengthMax:g&&parseFloat(g[e])})}return{statistics:f,bandProperties:m,dataType:r.get("DataType"),rawMetadata:r}};function D(e,t,r,n=0,o=!1,i=4){if(r.values)return!0;const s=r.type,a=r.valueCount;let l=r.valueOffset,u=[];const c=h[s],d=8*c,p=a*c,g=a*h[s]*8;let m,y;const w=8===i?64:32,C=r.valueOffsets;if(g>w&&p>(o?e.byteLength:e?e.byteLength-l+n:0))return r.offlineOffsetSize=[l,p],r.values=null,!1;if(g<=w){if(!t)if(w<=32)l>>>=32-g;else{const e=C?.length?C[0]:l>>>0,t=C?.length?C[1]:Math.round((l-e)/f);g<=32?(l=e>>>32-g,C[0]=l):(l=e*2**(32-g)+(t>>>32-g),C[0]=e,C[1]=t>>>32-g)}if(1===a&&d===w)u=[l];else if(64===w){const e=C?.length?C[0]:l>>>0,t=C?.length?C[1]:Math.round((l-e)/f);let r=e,n=32;for(y=1;y<=a;y++){const e=32-d*y%32;if(n<d){const o=r<<e>>>32-n,i=t<<32-n>>>32-n;r=t,u.push(o+i*2**(d-n)),n-=32-(d-n)}else u.push(r<<e>>>32-d),n-=d;0===n&&(n=32,r=t)}}else for(y=1;y<=a;y++){const e=32-d*y;u.push(l<<e>>>32-d)}}else{l-=n,o&&(l=0);for(let r=l;r<l+p;r+=c){switch(s){case 1:case 2:case 7:m=new DataView(e,r,1).getUint8(0);break;case 3:m=new DataView(e,r,2).getUint16(0,t);break;case 4:case 13:m=new DataView(e,r,4).getUint32(0,t);break;case 5:m=new DataView(e,r,4).getUint32(0,t)/new DataView(e,r+4,4).getUint32(0,t);break;case 6:m=new DataView(e,r,1).getInt8(0);break;case 8:m=new DataView(e,r,2).getInt16(0,t);break;case 9:m=new DataView(e,r,4).getInt32(0,t);break;case 10:m=new DataView(e,r,4).getInt32(0,t)/new DataView(e,r+4,4).getInt32(0,t);break;case 11:m=new DataView(e,r,4).getFloat32(0,t);break;case 12:m=new DataView(e,r,8).getFloat64(0,t);break;case 16:case 18:m=B(new DataView(e,r,8),0,t);break;case 17:m=U(new DataView(e,r,8),0,t);break;default:m=null}u.push(m)}}if(2===s){let e="";const t=u;for(u=[],y=0;y<t.length;y++)0===t[y]&&""!==e?(u.push(e),e=""):e+=String.fromCharCode(t[y]);""===e&&0!==u.length||u.push(e)}return r.values=u,!0}function E(e){const t=e[0],r=b(t,"TILEWIDTH"),n=b(t,"TILELENGTH"),o=b(t,"IMAGEWIDTH"),i=b(t,"IMAGELENGTH"),s=b(t,"BITSPERSAMPLE"),a=b(t,"SAMPLESPERPIXEL"),l=b(t,"SAMPLEFORMAT")??1,u=p(l,s),c=R(t),h=y(t,"GDAL_NODATA");let f=null;h?.length&&(f=h.map((e=>parseFloat(e))),f.some((e=>isNaN(e)))&&(f=null));const g=b(t,"COMPRESSION")??1;let v;switch(g){case 1:v="NONE";break;case 2:case 3:case 4:case 32771:v="CCITT";break;case 5:v="LZW";break;case 6:case 7:v="JPEG";break;case 32773:v="PACKBITS";break;case 8:case 32946:v="DEFLATE";break;case 34712:v="JPEG2000";break;case 34887:v="LERC";break;default:v=String(g)}let x=!0,k="";d.has(g)||(x=!1,k+="unsupported tag compression "+g),l>3&&(x=!1,k+="unsupported tag sampleFormat "+l),1!==s&&2!==s&&4!==s&&s%8!=0&&(x=!1,k+="unsupported tag bitsPerSample "+s);const T=C(t,"GEOASCIIPARAMS");let S;if(T){const e=T.split("|").find((e=>e.includes("ESRI PE String = "))),t=e?e.replace("ESRI PE String = ",""):"";S=t.startsWith("COMPD_CS")||t.startsWith("PROJCS")||t.startsWith("GEOGCS")?{wkid:null,wkt:t}:null}const A=w(t,"GEOTIEPOINTS"),I=w(t,"GEOPIXELSCALE"),P=w(t,"GEOTRANSMATRIX"),D=t.has("GEOKEYDIRECTORY")?t.get("GEOKEYDIRECTORY").data:null;let E,B,U=!1,G=!1;if(D){U=2===b(D,"GTRasterTypeGeoKey");const e=b(D,"GTModelTypeGeoKey");if(2===e){const e=b(D,"GeographicTypeGeoKey");e>=1024&&e<=32766&&(S={wkid:e}),S||32767!==e||(G=!0,S={wkid:4326})}else if(1===e){const e=b(D,"ProjectedCSTypeGeoKey");e>=1024&&e<=32766&&(S={wkid:e})}}if(I&&A&&A.length>=6?(E=[I[0],0,A[3]-A[0]*I[0],0,-Math.abs(I[1]),A[4]-A[1]*I[1]],U&&(E[2]-=.5*E[0]+.5*E[1],E[5]-=.5*E[3]+.5*E[4])):P&&16===P.length&&(E=U?[P[0],P[1],P[3]-.5*P[0],P[4],P[5],P[7]-.5*P[5]]:[P[0],P[1],P[3],P[4],P[5],P[7]]),E){const e=[{x:0,y:i},{x:0,y:0},{x:o,y:i},{x:o,y:0}];let t,r=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY,a=Number.NEGATIVE_INFINITY;for(let o=0;o<e.length;o++)t=m(e[o],E),r=t.x>r?r:t.x,s=t.x<s?s:t.x,n=t.y>n?n:t.y,a=t.y<a?a:t.y;B={xmin:r,xmax:s,ymin:n,ymax:a,spatialReference:S}}else B={xmin:-.5,ymin:.5-i,xmax:o-.5,ymax:.5,spatialReference:S};G&&(B.xmax-B.xmin>400||Math.max(Math.abs(B.xmin),Math.abs(B.xmax))>361)&&(S=null,B.spatialReference=null);const O=_(e);let N,V,z,j,Z;if(O.length>0){z=Math.round(Math.log(o/b(O[0],"IMAGEWIDTH"))/Math.LN2);const e=O[O.length-1];j=Math.round(Math.log(o/b(e,"IMAGEWIDTH"))/Math.LN2),N=b(e,"TILEWIDTH"),V=b(e,"TILELENGTH")}N=null!=j&&j>0?N||r:null,V=null!=j&&j>0?V||n:null,r&&(Z=[{maxCol:Math.ceil(o/r)-1,maxRow:Math.ceil(i/n)-1,minRow:0,minCol:0}],O.forEach((e=>{Z.push({maxCol:Math.ceil(b(e,"IMAGEWIDTH")/b(e,"TILEWIDTH"))-1,maxRow:Math.ceil(b(e,"IMAGELENGTH")/b(e,"TILELENGTH"))-1,minRow:0,minCol:0})})));const W=C(e[0],"GDAL_METADATA"),J=M(W);return k+=" "+F({width:o,height:i,tileWidth:r,tileHeight:n,planes:a,ifds:e}),{width:o,height:i,tileWidth:r,tileHeight:n,planes:a,isBSQ:c,pixelType:u,compression:v,noData:f,hasMaskBand:L(e).length===O.length+1,isSupported:x,message:k,extent:B,isPseudoGeographic:G,affine:I?null:E,firstPyramidLevel:z,maximumPyramidLevel:j,pyramidBlockWidth:N,pyramidBlockHeight:V,tileBoundary:Z,metadata:J}}function R(e,t){const r=y(e,"PLANARCONFIGURATION");return r?2===r[0]:!!t&&t.isBSQ}function _(e){return e.filter((e=>1===b(e,"NEWSUBFILETYPE")))}function L(e){return e.filter((e=>{const t=4==(4&(b(e,"NEWSUBFILETYPE")??0)),r=4===b(e,"PHOTOMETRICINTERPRETATION");return t&&r}))}function B(e,t,r){const n=e.getUint32(t,r),o=e.getUint32(t+4,r);return r?o*f+n:n*f+o}function U(e,t,r){let n=r?e.getInt32(t,r):e.getUint32(t,r),o=r?e.getUint32(t+4,r):e.getInt32(t+4,r);const i=(r?n:o)>=0?1:-1;return r?n*=i:o*=i,i*(r?o*f+n:n*f+o)}function G(e,t,r,n){return n?B(e,t,r):e.getUint32(t,r)}function O(e){const t=new DataView(e,0,16),r=t.getUint16(0,!1);let n=null;if(18761===r)n=!0;else{if(19789!==r)throw new Error("unexpected endianess byte");n=!1}const o=t.getUint16(2,n);if(42!==o&&43!==o)throw new Error("unexpected tiff identifier");let i=4;const s=43===o;if(s){const e=t.getUint16(i,n);if(i+=2,8!==e)throw new Error("unsupported bigtiff version");if(0!==t.getUint16(i,n))throw new Error("unsupported bigtiff version");i+=2}return{littleEndian:n,isBigTiff:s,firstIFDPos:G(t,i,n,s)}}function N(e,t,r,o=0,i=l.Z.TIFF_TAGS,s=4){const a=v(e,t,r,o,i,s);let u;const c=a.ifd;if(c){if(l.Z.ifdTags.forEach(((r,n)=>{c.has(n)&&(u=c.get(n),u.data=v(e,t,u.valueOffset-o,o,r).ifd)})),c.has("GEOKEYDIRECTORY")){u=c.get("GEOKEYDIRECTORY");const r=u.values;if(r&&r.length>4){const n=r[0]+"."+r[1]+"."+r[2];u.data=v(e,t,u.valueOffset+6-o,o,l.Z.GEO_KEYS,2).ifd,u.data&&u.data.set("GEOTIFFVersion",{id:0,type:2,valueCount:1,valueOffset:null,values:[n]})}}if(c.has("XMP")){u=c.get("XMP");const e=u.values;"number"==typeof e[0]&&7===u.type&&(u.values=[(0,n.f)(new Uint8Array(e))])}}return a}function F(e){const{width:t,height:r,tileHeight:n,tileWidth:o}=e,i=e.planes,s=o?o*n:t*r,a=b(e.ifds[0],"BITSPERSAMPLE");let l="";return s*i>2**30/(a>8?a/8:1)&&(l=o?"tiled tiff exceeding 1 gigabits per tile is not supported":"scanline tiff exceeding 1 gigabits is not supported"),l}async function V(e,t){const{headerInfo:r,ifd:n,offsets:o,sizes:i}=t,s=[];for(let t=0;t<o.length;t++){const a=await A(e,r.littleEndian,n,o[t],i[t]||e.byteLength);s.push(a)}const l=R(n,r),u=b(n,"BITSPERSAMPLE"),c=p(b(n,"SAMPLEFORMAT")??1,u),h=b(n,"SAMPLESPERPIXEL")||r.planes,f=g(c),d=b(n,"TILEWIDTH"),m=b(n,"TILELENGTH"),y=b(n,"COMPRESSION")??1,w=d*m;let C;const v=[];let x=s[0];const k=34887===y;for(let e=0;e<h;e++){if(C=new f(w),l&&k){if(x=s[e],x.length)for(let t=0;t<w;t++)C[t]=x[t+e]}else if(x.length)if(l||k&&!l)C=x.slice(w*e,w*(e+1));else for(let t=0;t<w;t++)C[t]=x[t*h+e];v.push(C)}const T=r.noData?r.noData[0]:t.noDataValue,S=r.metadata?r.metadata.statistics:null,I=S?S.map((e=>e.min)):null,M=S?S.map((e=>e.max)):null,D={pixelType:c,width:d,height:m,pixels:v,noDataValue:T};return null!=T?(0,a.A)(D,T):I&&M&&t.applyMinMaxConstraint&&(D.mask=P(v,I,M)),D}async function z(e,t={}){const r=t.pyramidLevel||0,n=t.headerInfo||function(e){const{littleEndian:t,isBigTiff:r,firstIFDPos:n}=O(e);let o=n;const i=[];do{const n=N(e,t,o,0,l.Z.TIFF_TAGS,r?8:4);if(!n.success)break;i.push(n.ifd),o=n.nextIFD}while(o>0);return{...E(i),littleEndian:t,isBigTiff:r,ifds:i,pyramidIFDs:_(i),maskIFDs:L(i)}}(e),{ifds:o,noData:i}=n;if(0===o.length)throw new Error("no valid image file directory");const s=F(n);if(s)throw s;let u=null;const c=-1===r?o[o.length-1]:o[r],h=i??t.noDataValue;return u=n.tileWidth?await async function(e,t,r){const n=w(r,"TILEOFFSETS");if(void 0===n)return null;const o=w(r,"TILEBYTECOUNTS"),{width:i,height:s,pixelType:a,tileWidth:l,tileHeight:u}=E([r]),c=R(r,t),h=b(r,"SAMPLESPERPIXEL")||t.planes,f=i*s,d=b(r,"BITSPERSAMPLE"),p=34887===(b(r,"COMPRESSION")??1),m=g(a),y=[];for(let e=0;e<h;e++)y.push(new m(f));let C,v,x,k,T,S,I,P,M,D,_,L,B;const U=Math.ceil(i/l);if(d%8==0)if(p&&c&&h>1){const a=Math.round(n.length/h);for(C=0;C<a;C++){S=Math.floor(C/U)*u,I=C%U*l,P=S*i+I;for(let a=0;a<h;a++){const c=C*h+a;if(0!==o[c])for(x=await A(e,t.littleEndian,r,n[c],o[c]),D=0,M=P,L=Math.min(l,i-I),_=Math.min(u,s-S),B=y[a],k=0;k<_;k++)for(M=P+k*i,D=k*l,T=0;T<L;T++,M++,D++)B[M]=x[D]}}}else for(C=0;C<n.length;C++)if(0!==o[C])for(S=Math.floor(C/U)*u,I=C%U*l,P=S*i+I,x=await A(e,t.littleEndian,r,n[C],o[C]),D=0,M=P,L=Math.min(l,i-I),_=Math.min(u,s-S),v=0;v<h;v++)if(B=y[v],c||p)for(k=0;k<_;k++)for(M=P+k*i,D=l*u*v+k*l,T=0;T<L;T++,M++,D++)B[M]=x[D];else for(k=0;k<_;k++)for(M=P+k*i,D=k*l*h+v,T=0;T<L;T++,M++,D+=h)B[M]=x[D];return{width:i,height:s,pixelType:a,pixels:y}}(e,n,c):await I(e,n,c),u?(null!=h&&(0,a.A)(u,h),u):u}},9832:(e,t,r)=>{r.d(t,{Z:()=>a});const n=(()=>{const e=[];return e[254]="NEWSUBFILETYPE",e[255]="SUBFILETYPE",e[256]="IMAGEWIDTH",e[257]="IMAGELENGTH",e[258]="BITSPERSAMPLE",e[259]="COMPRESSION",e[262]="PHOTOMETRICINTERPRETATION",e[263]="THRESHHOLDING",e[264]="CELLWIDTH",e[265]="CELLLENGTH",e[266]="FILLORDER",e[269]="DOCUMENTNAME",e[270]="IMAGEDESCRIPTION",e[271]="MAKE",e[272]="MODEL",e[273]="STRIPOFFSETS",e[274]="ORIENTATION",e[277]="SAMPLESPERPIXEL",e[278]="ROWSPERSTRIP",e[279]="STRIPBYTECOUNTS",e[280]="MINSAMPLEVALUE",e[281]="MAXSAMPLEVALUE",e[282]="XRESOLUTION",e[283]="YRESOLUTION",e[284]="PLANARCONFIGURATION",e[285]="PAGENAME",e[286]="XPOSITION",e[287]="YPOSITION",e[288]="FREEOFFSETS",e[289]="FREEBYTECOUNTS",e[290]="GRAYRESPONSEUNIT",e[291]="GRAYRESPONSECURVE",e[292]="T4OPTIONS",e[293]="T6OPTIONS",e[296]="RESOLUTIONUNIT",e[297]="PAGENUMBER",e[300]="COLORRESPONSEUNIT",e[301]="TRANSFERFUNCTION",e[305]="SOFTWARE",e[306]="DATETIME",e[315]="ARTIST",e[316]="HOSTCOMPUTER",e[317]="PREDICTOR",e[318]="WHITEPOINT",e[319]="PRIMARYCHROMATICITIES",e[320]="COLORMAP",e[321]="HALFTONEHINTS",e[322]="TILEWIDTH",e[323]="TILELENGTH",e[324]="TILEOFFSETS",e[325]="TILEBYTECOUNTS",e[326]="BADFAXLINES",e[327]="CLEANFAXDATA",e[328]="CONSECUTIVEBADFAXLINES",e[330]="SUBIFD",e[332]="INKSET",e[333]="INKNAMES",e[334]="NUMBEROFINKS",e[336]="DOTRANGE",e[337]="TARGETPRINTER",e[338]="EXTRASAMPLES",e[339]="SAMPLEFORMAT",e[340]="SMINSAMPLEVALUE",e[341]="SMAXSAMPLEVALUE",e[342]="TRANSFERRANGE",e[347]="JPEGTABLES",e[512]="JPEGPROC",e[513]="JPEGIFOFFSET",e[514]="JPEGIFBYTECOUNT",e[515]="JPEGRESTARTINTERVAL",e[517]="JPEGLOSSLESSPREDICTORS",e[518]="JPEGPOINTTRANSFORM",e[519]="JPEGQTABLES",e[520]="JPEGDCTABLES",e[521]="JPEGACTABLES",e[529]="YCBCRCOEFFICIENTS",e[530]="YCBCRSUBSAMPLING",e[531]="YCBCRPOSITIONING",e[532]="REFERENCEBLACKWHITE",e[700]="XMP",e[33550]="GEOPIXELSCALE",e[33922]="GEOTIEPOINTS",e[33432]="COPYRIGHT",e[42112]="GDAL_METADATA",e[42113]="GDAL_NODATA",e[50844]="RPCCOEFFICIENT",e[34264]="GEOTRANSMATRIX",e[34735]="GEOKEYDIRECTORY",e[34736]="GEODOUBLEPARAMS",e[34737]="GEOASCIIPARAMS",e[34665]="EXIFIFD",e[34853]="GPSIFD",e[40965]="INTEROPERABILITYIFD",e})(),o=(()=>{const e=n.slice();return e[36864]="ExifVersion",e[40960]="FlashpixVersion",e[40961]="ColorSpace",e[42240]="Gamma",e[37121]="ComponentsConfiguration",e[37122]="CompressedBitsPerPixel",e[40962]="PixelXDimension",e[40963]="PixelYDimension",e[37500]="MakerNote",e[37510]="UserComment",e[40964]="RelatedSoundFile",e[36867]="DateTimeOriginal",e[36868]="DateTimeDigitized",e[36880]="OffsetTime",e[36881]="OffsetTimeOriginal",e[36882]="OffsetTimeDigitized",e[37520]="SubSecTime",e[37521]="SubSecTimeOriginal",e[37522]="SubSecTimeDigitized",e[37888]="Temperature",e[37889]="Humidity",e[37890]="Pressure",e[37891]="WaterDepth",e[37892]="Acceleration",e[37893]="CameraElevationAngle",e[42016]="ImageUniqueID",e[42032]="CameraOwnerName",e[42033]="BodySerialNumber",e[42034]="LensSpecification",e[42035]="LensMake",e[42036]="LensModel",e[42037]="LensSerialNumber",e[33434]="ExposureTime",e[33437]="FNumber",e[34850]="ExposureProgram",e[34852]="SpectralSensitivity",e[34855]="PhotographicSensitivity",e[34856]="OECF",e[34864]="SensitivityType",e[34865]="StandardOutputSensitivity",e[34866]="RecommendedExposureIndex",e[34867]="ISOSpeed",e[34868]="ISOSpeedLatitudeyyy",e[34869]="ISOSpeedLatitudezzz",e[37377]="ShutterSpeedValue",e[37378]="ApertureValue",e[37379]="BrightnessValue",e[37380]="ExposureBiasValue",e[37381]="MaxApertureValue",e[37382]="SubjectDistance",e[37383]="MeteringMode",e[37384]="LightSource",e[37385]="Flash",e[37386]="FocalLength",e[37396]="SubjectArea",e[41483]="FlashEnergy",e[41484]="SpatialFrequencyResponse",e[41486]="FocalPlaneXResolution",e[41487]="FocalPlaneYResolution",e[41488]="FocalPlaneResolutionUnit",e[41492]="SubjectLocation",e[41493]="ExposureIndex",e[41495]="SensingMethod",e[41728]="FileSource",e[41729]="SceneType",e[41730]="CFAPattern",e[41985]="CustomRendered",e[41986]="ExposureMode",e[41987]="WhiteBalance",e[41988]="DigitalZoomRatio",e[41989]="FocalLengthIn35mmFilm",e[41990]="SceneCaptureType",e[41991]="GainControl",e[41992]="Contrast",e[41993]="Saturation",e[41994]="Sharpness",e[41995]="DeviceSettingDescription",e[41996]="SubjectDistanceRange",e})(),i=(()=>{const e=[];return e[1024]="GTModelTypeGeoKey",e[1025]="GTRasterTypeGeoKey",e[1026]="GTCitationGeoKey",e[2048]="GeographicTypeGeoKey",e[2049]="GeogCitationGeoKey",e[2050]="GeogGeodeticDatumGeoKey",e[2051]="GeogPrimeMeridianGeoKey",e[2052]="GeogLinearUnitsGeoKey",e[2053]="GeogLinearUnitSizeGeoKey",e[2054]="GeogAngularUnitsGeoKey",e[2055]="GeogAngularUnitSizeGeoKey",e[2056]="GeogEllipsoidGeoKey",e[2057]="GeogSemiMajorAxisGeoKey",e[2058]="GeogSemiMinorAxisGeoKey",e[2059]="GeogInvFlatteningGeoKey",e[2061]="GeogPrimeMeridianLongGeoKey",e[2060]="GeogAzimuthUnitsGeoKey",e[3072]="ProjectedCSTypeGeoKey",e[3073]="PCSCitationGeoKey",e[3074]="ProjectionGeoKey",e[3075]="ProjCoordTransGeoKey",e[3076]="ProjLinearUnitsGeoKey",e[3077]="ProjLinearUnitSizeGeoKey",e[3078]="ProjStdParallel1GeoKey",e[3079]="ProjStdParallel2GeoKey",e[3080]="ProjNatOriginLongGeoKey",e[3081]="ProjNatOriginLatGeoKey",e[3082]="ProjFalseEastingGeoKey",e[3083]="ProjFalseNorthingGeoKey",e[3084]="ProjFalseOriginLongGeoKey",e[3085]="ProjFalseOriginLatGeoKey",e[3086]="ProjFalseOriginEastingGeoKey",e[3087]="ProjFalseOriginNorthingGeoKey",e[3088]="ProjCenterLongGeoKey",e[3090]="ProjCenterEastingGeoKey",e[3091]="ProjCenterNorthingGeoKey",e[3092]="ProjScaleAtNatOriginGeoKey",e[3093]="ProjScaleAtCenterGeoKey",e[3094]="ProjAzimuthAngleGeoKey",e[3095]="ProjStraightVertPoleLongGeoKey",e[4096]="VerticalCSTypeGeoKey",e[4097]="VerticalCitationGeoKey",e[4098]="VerticalDatumGeoKey",e[4099]="VerticalUnitsGeoKey",e})(),s=new Map;s.set("EXIFIFD",o),s.set("GPSIFD",["GPSVersionID","GPSLatitudeRef","GPSLatitude","GPSLongitudeRef","GPSLongitude","GPSAltitudeRef","GPSAltitude","GPSTimeStamp","GPSSatellites","GPSStatus","GPSMeasureMode","GPSDOP","GPSSpeedRef","GPSSpeed","GPSTrackRef","GPSTrack","GPSImgDirectionRef","GPSImgDirection","GPSMapDatum","GPSDestLatitudeRef","GPSDestLatitude","GPSDestLongitudeRef","GPSDestLongitude","GPSDestBearingRef","GPSDestBearing","GPSDestDistanceRef","GPSDestDistance","GPSProcessingMethod","GPSAreaInformation","GPSDateStamp","GPSDifferential","GPSHPositioningError"]);const a={TIFF_TAGS:n,ifdTags:s,GEO_KEYS:i,getTagName:(e,t)=>{let r=(t||n)[e];return void 0===r&&(r="unknown"+String(e)),r}}},81578:(e,t,r)=>{r.d(t,{A:()=>a,r:()=>s});const n=9999999e31,o=2e-7,i={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767],u32:[0,4294967295],s32:[-2147483648,2147483647],f32:[-34028234663852886e22,34028234663852886e22],f64:[-Number.MAX_VALUE,Number.MAX_VALUE],unknown:void 0,c64:void 0,c128:void 0};function s(e){return i[e]??[-34028234663852886e22,34028234663852886e22]}function a(e,t,r){if(e.depthCount&&e.depthCount>1)return;const{pixels:i,statistics:a,pixelType:l}=e,u=i[0].length,c=e.bandMasks??[],h=e.mask??new Uint8Array(u).fill(255),f="f32"===l||"f64"===l,d=s(l);let p=!1;for(let e=0;e<i.length;e++){const s="number"==typeof t?t:t[e];if(null==s)continue;const g=a?.[e].minValue??d[0],m=a?.[e].maxValue??d[1];if(g>s+Number.EPSILON||m<s-Number.EPSILON)continue;const y=c[e]||new Uint8Array(u).fill(255),w=i[e],C=r?.customFloatTolerance;if(f&&0!==C){let e=C;e||(e=Math.abs(s)>=n?o*Math.abs(s):"f32"===l?2**-23:Number.EPSILON);for(let t=0;t<w.length;t++)y[t]&&Math.abs(w[t]-s)<e&&(w[t]=0,y[t]=0,h[t]=0,p=!0)}else for(let e=0;e<w.length;e++)y[e]&&w[e]===s&&(w[e]=0,y[e]=0,h[e]=0,p=!0);c[e]=y}p&&(e.bandMasks=c,e.mask=h),p&&"updateStatistics"in e&&e.updateStatistics()}},48279:(e,t,r)=>{r.d(t,{f:()=>n});const n=(()=>{const e=new ArrayBuffer(4),t=new Uint8Array(e);return new Uint32Array(e)[0]=1,1===t[0]})()},55914:(e,t,r)=>{r.d(t,{CD:()=>o,DX:()=>n,Gd:()=>h,Pz:()=>f,Qh:()=>B,SJ:()=>d,Uk:()=>U,Vl:()=>_,XV:()=>p,a2:()=>y,hd:()=>l,nA:()=>k,nk:()=>u,oB:()=>x,pW:()=>A,qF:()=>c,sS:()=>v,us:()=>S,wV:()=>g,zp:()=>m});var n,o,i,s=r(5847),a=r(81578);(i=n||(n={}))[i.matchAny=0]="matchAny",i[i.matchAll=1]="matchAll",function(e){e[e.bestMatch=0]="bestMatch",e[e.fail=1]="fail"}(o||(o={}));const l=6;function u(e){return null!=e&&"esri.layers.support.PixelBlock"===e.declaredClass&&e.pixels&&e.pixels.length>0}function c(e,t){if(!t?.length||!u(e))return e;const r=e.pixels.length;return t&&t.some((e=>e>=r))||1===r&&1===t.length&&0===t[0]?e:r!==t.length||t.some(((e,t)=>e!==t))?new s.Z({pixelType:e.pixelType,width:e.width,height:e.height,mask:e.mask,validPixelCount:e.validPixelCount,maskIsAlpha:e.maskIsAlpha,pixels:t.map((t=>e.pixels[t])),statistics:e.statistics&&t.map((t=>e.statistics[t]))}):e}function h(e){if(!e?.length||e.some((e=>!u(e))))return null;if(1===e.length)return e[0]?.clone()??null;const t=e,{width:r,height:n,pixelType:o}=t[0];if(t.some((e=>e.width!==r||e.height!==n)))return null;const i=t.map((({mask:e})=>e)).filter((e=>null!=e));let a=null;i.length&&(a=new Uint8Array(r*n),a.set(i[0]),i.length>1&&b(i.slice(1),a));const l=[];t.forEach((({pixels:e})=>l.push(...e)));const c=t.map((({statistics:e})=>e)).filter((e=>e?.length)),h=[];return c.forEach((e=>h.push(...e))),new s.Z({pixelType:o,width:r,height:n,mask:a,pixels:l,statistics:h.length?h:null})}function f(e){if(!e)return;const t=e.colormap;if(!t||0===t.length)return;const r=t.sort(((e,t)=>e[0]-t[0]));let n=0;r[0][0]<0&&(n=r[0][0]);const o=Math.max(256,r[r.length-1][0]-n+1),i=new Uint8Array(4*o),s=[];let a,l=0,u=0;const c=5===r[0].length;if(o>65536)return r.forEach((e=>{s[e[0]-n]=c?e.slice(1):e.slice(1).concat([255])})),{indexed2DColormap:s,offset:n,alphaSpecified:c};if(e.fillUnspecified)for(a=r[u],l=a[0]-n;l<o;l++)i[4*l]=a[1],i[4*l+1]=a[2],i[4*l+2]=a[3],i[4*l+3]=c?a[4]:255,l===a[0]-n&&(a=u===r.length-1?a:r[++u]);else for(l=0;l<r.length;l++)a=r[l],u=4*(a[0]-n),i[u]=a[1],i[u+1]=a[2],i[u+2]=a[3],i[u+3]=c?a[4]:255;return{indexedColormap:i,offset:n,alphaSpecified:c}}function d(e,t){if(!u(e))return e;if(!t||!t.indexedColormap&&!t.indexed2DColormap)return e;const r=e.clone(),n=r.pixels;let o=r.mask;const i=r.width*r.height;if(1!==n.length)return e;const{indexedColormap:s,indexed2DColormap:a,offset:l,alphaSpecified:c}=t;let h=0;const f=n[0],d=new Uint8Array(f.length),p=new Uint8Array(f.length),g=new Uint8Array(f.length);let m,y=0;if(s){const e=s.length-1;if(null!=o)for(h=0;h<i;h++)o[h]&&(y=4*(f[h]-l),y<l||y>e?o[h]=0:(d[h]=s[y],p[h]=s[y+1],g[h]=s[y+2],o[h]=s[y+3]));else{for(o=new Uint8Array(i),h=0;h<i;h++)y=4*(f[h]-l),y<l||y>e?o[h]=0:(d[h]=s[y],p[h]=s[y+1],g[h]=s[y+2],o[h]=s[y+3]);r.mask=o}}else if(a)if(null!=o)for(h=0;h<i;h++)o[h]&&(m=a[f[h]],d[h]=m[0],p[h]=m[1],g[h]=m[2],o[h]=m[3]);else{for(o=new Uint8Array(i),h=0;h<i;h++)m=a[f[h]],d[h]=m[0],p[h]=m[1],g[h]=m[2],o[h]=m[3];r.mask=o}return r.pixels=[d,p,g],r.statistics=null,r.pixelType="u8",r.maskIsAlpha=c,r}function p(e,t){if(!u(e))return null;const{pixels:r,mask:n}=e,o=r.length;let i=t.lut;const{offset:a}=t;i&&1===i[0].length&&(i=r.map((()=>i)));const l=[],c=t.outputPixelType||"u8";for(let e=0;e<o;e++){const t=g(r[e],n,i[e],a||0,c);l.push(t)}const h=new s.Z({width:e.width,height:e.height,pixels:l,mask:n,pixelType:c});return h.updateStatistics(),h}function g(e,t,r,n,o){const i=e.length,a=s.Z.createEmptyBand(o,i);if(t)for(let o=0;o<i;o++)t[o]&&(a[o]=r[e[o]-n]);else for(let t=0;t<i;t++)a[t]=r[e[t]-n];return a}function m(e,t){if(!u(e))return null;const r=e.clone(),{pixels:n}=r,o=r.width*r.height,i=t.length,s=Math.floor(i/2),a=t[Math.floor(s)],l=n[0];let c,h,f,d,p,g,m=!1;const y=new Uint8Array(o),w=new Uint8Array(o),C=new Uint8Array(o);let b=r.mask;const v=4===t[0].mappedColor.length;for(b||(b=new Uint8Array(o),b.fill(v?255:1),r.mask=b),p=0;p<o;p++)if(b[p]){for(c=l[p],m=!1,g=s,h=a,f=0,d=i-1;d-f>1;){if(c===h.value){m=!0;break}c>h.value?f=g:d=g,g=Math.floor((f+d)/2),h=t[Math.floor(g)]}m||(c===t[f].value?(h=t[f],m=!0):c===t[d].value?(h=t[d],m=!0):c<t[f].value?(m=!1,h=null):c>t[f].value&&(c<t[d].value?(h=t[f],m=!0):d===i-1?(m=!1,h=null):(h=t[d],m=!0))),m?(y[p]=h.mappedColor[0],w[p]=h.mappedColor[1],C[p]=h.mappedColor[2],b[p]=h.mappedColor[3]):y[p]=w[p]=C[p]=b[p]=0}return r.pixels=[y,w,C],r.mask=b,r.pixelType="u8",r.maskIsAlpha=v,r}function y(e,t){if(!u(e))return null;const{width:r,height:n}=e,{inputRanges:o,outputValues:i,outputPixelType:l,noDataRanges:c,allowUnmatched:h,isLastInputRangeInclusive:f}=t,d=e.pixels[0],p=s.Z.createEmptyBand(l,d.length),g=e.mask,m=new Uint8Array(r*n);g?m.set(g):m.fill(255);const y=e.pixelType.startsWith("f")?1e-6:0,w=o.map((e=>e-y));w[0]=o[0],w[w.length-1]=o[o.length-1]+(f?1e-6:0);const C=o.length/2,[b,v]=(0,a.r)(l);for(let e=0;e<n;e++)for(let t=0;t<r;t++){const n=e*r+t;if(m[n]){const e=d[n];let t=!1;for(let r=C-1;r>=0;r--)if(e===w[2*r]||e>w[2*r]&&e<w[2*r+1]){p[n]=i[r],t=!0;break}t||(h?p[n]=e>v?v:e<b?b:e:m[n]=0)}}const x=c?.length;if(x)for(let e=0;e<n;e++)for(let t=0;t<r;t++){const n=e*r+t;if(!g||g[n]){const e=d[n];for(let t=0;t<x;t+=2)if(e>=c[t]&&e<=c[t+1]){p[n]=0,m[n]=0;break}}}return new s.Z({width:r,height:n,pixelType:l,pixels:[p],mask:m})}function w(e,t,r,n){const o=null!=r&&r.length>=2?new Set(r):null,i=1===r?.length?r[0]:null,s=!!t?.length;for(let r=0;r<e.length;r++)if(n[r]){const a=e[r];if(s){let e=!1;for(let r=0;r<t.length;r+=2)if(a>=t[r]&&a<=t[r+1]){e=!0;break}e||(n[r]=0)}n[r]&&(a===i||o?.has(a))&&(n[r]=0)}}function C(e,t){const r=e[0].length;for(let n=0;n<r;n++)if(t[n]){let r=!1;for(let t=0;t<e.length;t++)if(e[t][n]){r=!0;break}r||(t[n]=0)}}function b(e,t){const r=e[0].length;for(let n=0;n<r;n++)if(t[n]){let r=!1;for(let t=0;t<e.length;t++)if(0===e[t][n]){r=!0;break}r&&(t[n]=0)}}function v(e,t){if(!u(e))return null;const{width:r,height:n,pixels:o}=e,i=r*n,a=new Uint8Array(i);e.mask?a.set(e.mask):a.fill(255);const l=o.length,{includedRanges:c,noDataValues:h,outputPixelType:f,matchAll:d,lookups:p}=t;if(p){const e=[];for(let t=0;t<l;t++){const r=p[t],n=g(o[t],a,r.lut,r.offset||0,"u8");e.push(n)}1===e.length?a.set(e[0]):d?C(e,a):b(e,a)}else if(d){const e=[];for(let t=0;t<l;t++){const r=new Uint8Array(i);r.set(a),w(o[t],c?.slice(2*t,2*t+2),h?.[t],r),e.push(r)}1===e.length?a.set(e[0]):C(e,a)}else for(let e=0;e<l;e++)w(o[e],c?.slice(2*e,2*e+2),h?.[e],a);return new s.Z({width:r,height:n,pixelType:f,pixels:o,mask:a})}function x(e){const{srcPixelType:t,inputRanges:r,outputValues:n,allowUnmatched:o,noDataRanges:i,isLastInputRangeInclusive:l,outputPixelType:u}=e;if("u8"!==t&&"s8"!==t&&"u16"!==t&&"s16"!==t)return null;const c=t.includes("16")?65536:256,h=t.includes("s")?-c/2:0,f=s.Z.createEmptyBand(u,c),d=new Uint8Array(c);o&&d.fill(255);const[p,g]=(0,a.r)(u);if(r?.length&&n?.length){const e=1e-6,t=r.map((t=>t-e));t[0]=r[0],l&&(t[t.length-1]=r[r.length-1]);for(let e=0;e<t.length;e++){const r=n[e]>g?g:n[e]<p?p:n[e],o=Math.ceil(t[2*e]-h),i=Math.floor(t[2*e+1]-h);for(let e=o;e<=i;e++)f[e]=r,d[e]=255}}if(i?.length)for(let e=0;e<i.length;e++){const t=Math.ceil(i[2*e]-h),r=Math.floor(i[2*e+1]-h);for(let e=t;e<=r;e++)d[e]=0}return{lut:f,offset:h,mask:d}}function k(e,t,r){if("u8"!==e&&"s8"!==e&&"u16"!==e&&"s16"!==e)return null;const n=e.includes("16")?65536:256,o=e.includes("s")?-n/2:0,i=new Uint8Array(n);if(t)for(let e=0;e<t.length;e++){const r=Math.ceil(t[2*e]-o),n=Math.floor(t[2*e+1]-o);for(let e=r;e<=n;e++)i[e]=255}else i.fill(255);if(r)for(let e=0;e<r.length;e++)i[r[e]-o]=0;return{lut:i,offset:o}}function T(e,t,r,n,o,i){const{width:s,height:a}=r.block,{x:l,y:u}=r.offset,{width:c,height:h}=r.mosaic,f=function(e,t,r,n,o,i,s,a){return{xmin:o<=r*e?0:o<r*e+e?o-r*e:e,ymin:i<=n*t?0:i<n*t+t?i-n*t:t,xmax:o+s<=r*e?0:o+s<r*e+e?o+s-r*e:e,ymax:i+a<=n*t?0:i+a<n*t+t?i+a-n*t:t}}(s,a,n,o,l,u,c,h);let d=0,p=0;if(i){const e=i.hasGCSSShiftTransform?360:i.halfWorldWidth??0,t=s*i.resolutionX,r=i.startX+n*t;r<e&&r+t>e?p=i.rightPadding:r>=e&&(d=i.leftMargin-i.rightPadding,p=0)}if(f.xmax-=p,"number"!=typeof t)for(let r=f.ymin;r<f.ymax;r++){const i=(o*a+r-u)*c+(n*s-l)+d,h=r*s;for(let r=f.xmin;r<f.xmax;r++)e[i+r]=t[h+r]}else for(let r=f.ymin;r<f.ymax;r++){const i=(o*a+r-u)*c+(n*s-l)+d;for(let r=f.xmin;r<f.xmax;r++)e[i+r]=t}}function S(e,t,r={}){const{clipOffset:n,clipSize:o,alignmentInfo:i,blockWidths:a}=r;if(a)return function(e,t,r){const n=e.find((e=>null!=e));if(null==n)return null;const o=e.some((e=>null==e||!!e.mask)),{width:i,height:a}=t,l=o?new Uint8Array(i*a):null,{blockWidths:c}=r,h=[],f=n.getPlaneCount(),d=s.Z.getPixelArrayConstructor(n.pixelType);if(o)for(let t=0,r=0;t<e.length;r+=c[t],t++){const n=e[t];if(!u(n))continue;const o=n.mask;for(let e=0;e<a;e++)for(let s=0;s<c[t];s++)l[e*i+s+r]=null==o?255:o[e*n.width+s]}for(let t=0;t<f;t++){const r=new d(i*a);for(let n=0,o=0;n<e.length;o+=c[n],n++){const s=e[n];if(!u(s))continue;const l=s.pixels[t];if(null!=l)for(let e=0;e<a;e++)for(let t=0;t<c[n];t++)r[e*i+t+o]=l[e*s.width+t]}h.push(r)}const p=new s.Z({width:i,height:a,mask:l,pixels:h,pixelType:n.pixelType});return p.updateStatistics(),p}(e,t,{blockWidths:a});const l=e.find((e=>u(e)));if(null==l)return null;const c=o?o.width:t.width,h=o?o.height:t.height,f=l.width,d=l.height,p=t.width/f,g=t.height/d,m={offset:n||{x:0,y:0},mosaic:o||t,block:{width:f,height:d}},y=l.pixelType,w=s.Z.getPixelArrayConstructor(y),C=l.pixels.length,b=[];let v,x,k;for(let t=0;t<C;t++){x=new w(c*h);for(let r=0;r<g;r++)for(let n=0;n<p;n++){const o=e[r*p+n];u(o)&&(v=o.pixels[t],T(x,v,m,n,r,i))}b.push(x)}if(e.some((e=>null==e||null!=e.mask&&e.mask.length>0))){k=new Uint8Array(c*h);for(let t=0;t<g;t++)for(let r=0;r<p;r++){const n=e[t*p+r],o=null!=n?n.mask:null;T(k,null!=o?o:n?1:0,m,r,t,i)}}const S=new s.Z({width:c,height:h,pixels:b,pixelType:y,mask:k});return S.updateStatistics(),S}function A(e,t,r){if(!u(e))return null;const{width:n,height:o}=e,i=t.x,s=t.y,a=r.width+i,l=r.height+s;if(i<0||s<0||a>n||l>o)return e;if(0===i&&0===s&&a===n&&l===o)return e;e.mask||(e.mask=new Uint8Array(n*o));const c=e.mask;for(let e=0;e<o;e++){const t=e*n;for(let r=0;r<n;r++)c[t+r]=e<s||e>=l||r<i||r>=a?0:1}return e.updateStatistics(),e}function I(e){if(!u(e))return null;const t=e.clone(),{width:r,height:n,pixels:o}=e,i=o[0],s=t.pixels[0],a=e.mask;for(let e=2;e<n-1;e++){const t=new Map;for(let n=e-2;n<e+2;n++)for(let e=0;e<4;e++){const o=n*r+e;D(t,i[o],a?a[o]:1)}s[e*r]=P(t),s[e*r+1]=s[e*r+2]=s[e*r];let n=3;for(;n<r-1;n++){let o=(e-2)*r+n+1;D(t,i[o],a?a[o]:1),o=(e-1)*r+n+1,D(t,i[o],a?a[o]:1),o=e*r+n+1,D(t,i[o],a?a[o]:1),o=(e+1)*r+n+1,D(t,i[o],a?a[o]:1),o=(e-2)*r+n-3,M(t,i[o],a?a[o]:1),o=(e-1)*r+n-3,M(t,i[o],a?a[o]:1),o=e*r+n-3,M(t,i[o],a?a[o]:1),o=(e+1)*r+n-3,M(t,i[o],a?a[o]:1),s[e*r+n]=P(t)}s[e*r+n+1]=s[e*r+n]}for(let e=0;e<r;e++)s[e]=s[r+e]=s[2*r+e],s[(n-1)*r+e]=s[(n-2)*r+e];return t.updateStatistics(),t}function P(e){if(0===e.size)return 0;let t=0,r=-1,n=0;const o=e.keys();let i=o.next();for(;!i.done;)n=e.get(i.value),n>t&&(r=i.value,t=n),i=o.next();return r}function M(e,t,r){if(0===r)return;const n=e.get(t);1===n?e.delete(t):e.set(t,n-1)}function D(e,t,r){0!==r&&e.set(t,e.has(t)?e.get(t)+1:1)}function E(e,t,r){let{x:n,y:o}=t;const{width:i,height:a}=r;if(0===n&&0===o&&a===e.height&&i===e.width)return e;const{width:l,height:c}=e,h=Math.max(0,o),f=Math.max(0,n),d=Math.min(n+i,l),p=Math.min(o+a,c);if(d<0||p<0||!u(e))return null;n=Math.max(0,-n),o=Math.max(0,-o);const{pixels:g}=e,m=i*a,y=g.length,w=[];for(let t=0;t<y;t++){const r=g[t],a=s.Z.createEmptyBand(e.pixelType,m);for(let e=h;e<p;e++){const t=e*l;let s=(e+o-h)*i+n;for(let e=f;e<d;e++)a[s++]=r[t+e]}w.push(a)}const C=new Uint8Array(m),b=e.mask;for(let e=h;e<p;e++){const t=e*l;let r=(e+o-h)*i+n;for(let e=f;e<d;e++)C[r++]=b?b[t+e]:1}const v=new s.Z({width:r.width,height:r.height,pixelType:e.pixelType,pixels:w,mask:C});return v.updateStatistics(),v}function R(e,t=!0){if(!u(e))return null;const{pixels:r,width:n,height:o,mask:i,pixelType:a}=e,l=[],c=Math.round(n/2),h=Math.round(o/2),f=o-1,d=n-1;for(let e=0;e<r.length;e++){const i=r[e],u=s.Z.createEmptyBand(a,c*h);let p=0;for(let e=0;e<o;e+=2)for(let r=0;r<n;r+=2){const o=i[e*n+r];if(t){const t=r===d?o:i[e*n+r+1],s=e===f?o:i[e*n+r+n],a=r===d?s:e===f?t:i[e*n+r+n+1];u[p++]=(o+t+s+a)/4}else u[p++]=o}l.push(u)}let p=null;if(null!=i){p=new Uint8Array(c*h);let e=0;for(let r=0;r<o;r+=2)for(let o=0;o<n;o+=2){const s=i[r*n+o];if(t){const t=o===d?s:i[r*n+o+1],a=r===f?s:i[r*n+o+n],l=o===d?a:r===f?t:i[r*n+o+n+1];p[e++]=s*t*a*l?1:0}else p[e++]=s}}return new s.Z({width:c,height:h,pixelType:a,pixels:l,mask:p})}function _(e,t,r){if(!u(e))return null;const{width:n,height:o}=t;let{width:i,height:s}=e;const a=new Map,l={x:0,y:0},c=null==r?1:1+r;let h=e;for(let e=0;e<c;e++){const r=Math.ceil(i/n),u=Math.ceil(s/o);for(let i=0;i<u;i++){l.y=i*o;for(let o=0;o<r;o++){l.x=o*n;const r=E(h,l,t);a.set(`${e}/${i}/${o}`,r)}}e<c-1&&(h=R(h)),i=Math.round(i/2),s=Math.round(s/2)}return a}function L(e,t,r,n,o=0){const{width:i,height:s}=e,{width:a,height:l}=t,u=n.cols,c=n.rows,h=Math.ceil(a/u-.1/u),f=Math.ceil(l/c-.1/c);let d,p,g,m,y,w,C;const b=h*u,v=b*f*c,x=new Float32Array(v),k=new Float32Array(v),T=new Uint32Array(v),S=new Uint32Array(v);let A,I,P=0;for(let e=0;e<f;e++)for(let t=0;t<h;t++){d=12*(e*h+t),p=r[d],g=r[d+1],m=r[d+2],y=r[d+3],w=r[d+4],C=r[d+5];for(let r=0;r<c;r++){P=(e*c+r)*b+t*u,I=(r+.5)/c;for(let e=0;e<r;e++)A=(e+.5)/u,x[P+e]=(p*A+g*I+m)*i+o,k[P+e]=(y*A+w*I+C)*s+o,T[P+e]=Math.floor(x[P+e]),S[P+e]=Math.floor(k[P+e])}d+=6,p=r[d],g=r[d+1],m=r[d+2],y=r[d+3],w=r[d+4],C=r[d+5];for(let r=0;r<c;r++){P=(e*c+r)*b+t*u,I=(r+.5)/c;for(let e=r;e<u;e++)A=(e+.5)/u,x[P+e]=(p*A+g*I+m)*i+o,k[P+e]=(y*A+w*I+C)*s+o,T[P+e]=Math.floor(x[P+e]),S[P+e]=Math.floor(k[P+e])}}return{offsets_x:x,offsets_y:k,offsets_xi:T,offsets_yi:S,gridWidth:b}}function B(e,t){const{coefficients:r,spacing:n}=t,{offsets_x:o,offsets_y:i,gridWidth:s}=L(e,e,r,{rows:n[0],cols:n[1]}),{width:a,height:l}=e,u=new Float32Array(a*l),c=180/Math.PI;for(let e=0;e<l;e++)for(let t=0;t<a;t++){const r=e*s+t,n=0===e?r:r-s,h=e===l-1?r:r+s,f=o[n]-o[h],d=i[h]-i[n];if(isNaN(f)||isNaN(d))u[e*a+t]=90;else{let r=Math.atan2(d,f)*c;r=(360+r)%360,u[e*a+t]=r}}return u}function U(e,t,r,n,o="nearest"){if(!u(e))return null;"majority"===o&&(e=I(e));const{pixels:i,mask:a,pixelType:l}=e,c=e.width,h=e.height,f=s.Z.getPixelArrayConstructor(l),d=i.length,{width:p,height:g}=t;let m=!1;for(let e=0;e<r.length;e+=3)-1===r[e]&&-1===r[e+1]&&-1===r[e+2]&&(m=!0);const{offsets_x:y,offsets_y:w,offsets_xi:C,offsets_yi:b,gridWidth:v}=L({width:c,height:h},t,r,n,"majority"===o?.5:0);let x;const k=(e,t,r)=>{const n=e instanceof Float32Array||e instanceof Float64Array?0:.5;for(let o=0;o<g;o++){x=o*v;for(let i=0;i<p;i++){if(y[x]<0||w[x]<0)e[o*p+i]=0;else if(r)e[o*p+i]=t[C[x]+b[x]*c];else{const r=Math.floor(y[x]),s=Math.floor(w[x]),l=Math.ceil(y[x]),u=Math.ceil(w[x]),h=y[x]-r,f=w[x]-s;if(!a||a[r+s*c]&&a[l+s*c]&&a[r+u*c]&&a[l+u*c]){const a=(1-h)*t[r+s*c]+h*t[l+s*c],d=(1-h)*t[r+u*c]+h*t[l+u*c];e[o*p+i]=(1-f)*a+f*d+n}else e[o*p+i]=t[C[x]+b[x]*c]}x++}}},T=[];let S;for(let e=0;e<d;e++)S=new f(p*g),k(S,i[e],"nearest"===o||"majority"===o),T.push(S);const A=new s.Z({width:p,height:g,pixelType:l,pixels:T});if(null!=a)A.mask=new Uint8Array(p*g),k(A.mask,a,!0);else if(m){A.mask=new Uint8Array(p*g);for(let e=0;e<p*g;e++)A.mask[e]=y[e]<0||w[e]<0?0:1}return A.updateStatistics(),A}},15612:(e,t,r)=>{r.d(t,{AV:()=>m,Hv:()=>p,Oh:()=>g,ZF:()=>h,dy:()=>w,hE:()=>c,js:()=>d,oc:()=>u,um:()=>y});var n=r(70586),o=r(5847),i=r(81578),s=r(75509);const a=1,l=[.299,.587,.114];function u(e,t=256){t=Math.min(t,256);const{size:r,counts:n}=e,o=new Uint8Array(r),i=n.reduce(((e,r)=>e+r/t),0);let s=0,a=0,l=0,u=i;for(let e=0;e<r;e++)if(l+=n[e],!(e<r-1&&l+n[e+1]<u)){for(;s<t-1&&u<l;)s++,u+=i;for(let t=a;t<=e;t++)o[t]=s;a=e+1}for(let e=a;e<r;e++)o[e]=t-1;return o}function c(e){const{minCutOff:t,maxCutOff:r,gamma:n,pixelType:o,rounding:i}=e,s=e.outMin||0,a=e.outMax||255;if(!["u8","u16","s8","s16"].includes(o))return null;const l=t.length;let u,c,h=0;"s8"===o?h=-127:"s16"===o&&(h=-32767);let f=256;["u16","s16"].includes(o)&&(f=65536);const d=[],p=[],g=a-s;for(u=0;u<l;u++)p[u]=r[u]-t[u],d[u]=0===p[u]?0:g/p[u];let m;const w=[];let C,b,v;if(n&&n.length>=l){const e=y(l,n);for(u=0;u<l;u++){for(v=[],c=0;c<f;c++)if(0!==p[u])if(C=c+h,m=(C-t[u])/p[u],b=1,n[u]>1&&(b-=(1/g)**(m*e[u])),C<r[u]&&C>t[u]){const e=b*g*m**(1/n[u])+s;v[c]="floor"===i?Math.floor(e):"round"===i?Math.round(e):e}else C>=r[u]?v[c]=a:v[c]=s;else v[c]=s;w[u]=v}}else for(u=0;u<l;u++){for(v=[],c=0;c<f;c++)if(C=c+h,C<=t[u])v[c]=s;else if(C>=r[u])v[c]=a;else{const e=(C-t[u])*d[u]+s;v[c]="floor"===i?Math.floor(e):"round"===i?Math.round(e):e}w[u]=v}if(null!=e.contrastOffset){const t=function(e,t){const r=Math.min(Math.max(e,-100),100),n=Math.min(Math.max(t??0,-100),100),o=255;let i=0,s=0;const a=new Uint8Array(256);for(i=0;i<256;i++)r>0&&r<100?s=(200*i-25500+510*n)/(2*(100-r))+128:r<=0&&r>-100?s=(200*i-25500+510*n)*(100+r)/2e4+128:100===r?(s=200*i-25500+256*(100-r)+510*n,s=s>0?o:0):-100===r&&(s=128),a[i]=s>o?o:s<0?0:s;return a}(e.contrastOffset,e.brightnessOffset);for(u=0;u<l;u++)for(v=w[u],c=0;c<f;c++)v[c]=t[v[c]]}return{lut:w,offset:h}}function h(e,t,r){const n=[];for(let o=0;o<t.length;o++){let i=0,s=0,a=0;"min"in t[o]?({min:i,max:s,avg:a}=t[o]):[i,s,a]=t[o];let u=a??0;"u8"!==e&&(u=255*(u-i)/(s-i)),r&&(u*=l[o]),n.push(f(u))}return n}function f(e){if(e<=0||e>=255)return a;let t=0;150!==e&&(t=e<=150?45*Math.cos(.01047*e):17*Math.sin(.021*e));const r=e+t,n=Math.log(e/255),o=Math.log(r/255);if(0===o)return a;const i=n/o;return isNaN(i)?a:Math.min(9.9,Math.max(.01,i))}function d(e){const{pixels:t,mask:r,pixelType:n}=e,o=t.map((e=>function(e,t,r,n){let o=1/0,i=-1/0,s=0,a=0;const l=e.length;for(let r=0;r<l;r++){const n=e[r];t&&!t[r]||(o=n<o?n:o,i=n>i?n:i,s+=n,a++)}if(0===a)return{statistics:{min:0,max:0,avg:0,stddev:0},histogram:null};const u=s/a;let c=0;for(let r=0;r<l;r++)t&&!t[r]||(c+=(e[r]-u)**2);const h=t?t.filter((e=>e)).length:l,f={min:o,max:i,avg:u,stddev:h<=1?0:Math.sqrt(c/(h-1))};if(["u8","s8","u4","u2","u1"].includes(r)){const r=i-o+1,n=new Uint32Array(r);for(let r=0;r<l;r++)t&&!t[r]||n[e[r]-o]++;return{statistics:f,histogram:{min:o-.5,max:i+.5,size:r,counts:n}}}const d=256,p=new Uint32Array(d),g=(i-o)/d;if(0===g)return{statistics:f,histogram:{min:o,max:i,size:1,counts:new Uint32Array(1).fill(a)}};const m=new Uint32Array(257);for(let r=0;r<l;r++)t&&!t[r]||m[Math.floor((e[r]-o)/g)]++;for(let e=0;e<255;e++)p[e]=m[e];return p[255]=m[255]+m[d],{statistics:f,histogram:{min:o,max:i,size:d,counts:p}}}(e,r,n)));return{statistics:o.map((({statistics:e})=>e)),histograms:o.map((({histogram:e})=>e))}}function p(e){if(null==e||!e.pixels?.length)return null;const{pixels:t,mask:r,pixelType:n}=e,o=e.width*e.height,i=t.length;let s,a,l,u,c;const h=[],f=[];let d,p,g,m,y,w,C,b,v,x;const k=256;for(u=0;u<i;u++){if(d=new Uint32Array(k),g=t[u],"u8"===n)if(s=-.5,a=255.5,r)for(c=0;c<o;c++)r[c]&&d[g[c]]++;else for(c=0;c<o;c++)d[g[c]]++;else{let t=!1;e.statistics||(e.updateStatistics(),t=!0);const n=e.statistics;if(s=n[u].minValue,a=n[u].maxValue,l=(a-s)/k,0===l){!n||e.validPixelCount||t||e.updateStatistics();const r=(e.validPixelCount||e.width*e.height)/k;for(let e=0;e<k;e++)d[e]=Math.round(r*(e+1))-Math.round(r*e)}else{for(p=new Uint32Array(257),c=0;c<o;c++)r&&!r[c]||p[Math.floor((g[c]-s)/l)]++;for(c=0;c<255;c++)d[c]=p[c];d[255]=p[255]+p[k]}}for(h.push({min:s,max:a,size:k,counts:d}),m=0,y=0,b=0,c=0;c<k;c++)m+=d[c],y+=c*d[c];for(v=y/m,c=0;c<k;c++)b+=d[c]*(c-v)**2;x=Math.sqrt(b/(m-1)),l=(a-s)/k,w=(v+.5)*l+s,C=x*l,f.push({min:s,max:a,avg:w,stddev:C})}return{statistics:f,histograms:h}}function g(e){const t=[];for(let r=0;r<e.length;r++){const{min:n,max:o,size:i,counts:s}=e[r];let a=0,l=0;for(let e=0;e<i;e++)a+=s[e],l+=e*s[e];const u=l/a;let c=0;for(let e=0;e<i;e++)c+=s[e]*(e-u)**2;const h=(o-n)/i,f=(u+.5)*h+n,d=Math.sqrt(c/(a-1))*h;t.push({min:n,max:o,avg:f,stddev:d})}return t}function m(e,t){const{pixelBlock:r,bandIds:o,returnHistogramLut:a,rasterInfo:l}=t;let c=null,h=null,f=e.stretchType;if("number"==typeof f&&(f=s.J[f]),e.dra)if("minMax"===f&&null!=r&&r.statistics)c=r.statistics.map((e=>[e.minValue,e.maxValue,0,0]));else{const e=p(r);c=null!=e?e.statistics:null,h=null!=e?e.histograms:null}else c=e.statistics?.length>0?e.statistics:l.statistics,h="histograms"in e?e.histograms:void 0,h||(h=l.histograms);"percentClip"!==f&&"histogramEqualization"!==f||h?.length||(f="minMax");const d=c?.length||h?.length||l.bandCount,g=[],m=[];let y,w,C,b,v,x,k,T,S;c&&!Array.isArray(c[0])&&(c=c.map((e=>[e.min,e.max,e.avg,e.stddev])));const[A,I]=(0,i.r)(l.pixelType);if(!c?.length){for(c=[],T=0;T<d;T++)c.push([A,I,1,1]);"standardDeviation"===f&&(f="minMax")}switch(f){case"none":for(T=0;T<d;T++)g[T]=A,m[T]=I;break;case"minMax":for(T=0;T<d;T++){const e=c[T];g[T]=e[0],m[T]=e[1]}break;case"standardDeviation":for(T=0;T<d;T++){const t=c[T];g[T]=t[2]-e.numberOfStandardDeviations*t[3],m[T]=t[2]+e.numberOfStandardDeviations*t[3],g[T]<t[0]&&(g[T]=t[0]),m[T]>t[1]&&(m[T]=t[1])}break;case"histogramEqualization":for((0,n.O3)(h),T=0;T<d;T++)g[T]=h[T].min,m[T]=h[T].max;break;case"percentClip":for((0,n.O3)(h),T=0;T<h.length;T++){for(y=h[T],v=new Uint32Array(y.size),b=[...y.counts],b.length>=20&&(b[0]=b[1]=b[2]=b[b.length-1]=b[b.length-2]=0),C=0,w=(y.max-y.min)/y.size,k=-.5===y.min&&1===w?.5:0,S=0;S<y.size;S++)C+=b[S],v[S]=C;for(x=(e.minPercent||0)*C/100,g[T]=y.min+k,S=0;S<y.size;S++)if(v[S]>x){g[T]=y.min+w*(S+k);break}for(x=(1-(e.maxPercent||0)/100)*C,m[T]=y.max+k,S=y.size-2;S>=0;S--)if(v[S]<x){m[T]=y.min+w*(S+2-k);break}if(m[T]<g[T]){const e=g[T];g[T]=m[T],m[T]=e}}break;default:for(T=0;T<d;T++){const e=c[T];g[T]=e[0],m[T]=e[1]}}let P,M,D;return"histogramEqualization"===f?((0,n.O3)(h),M=h[0].size||256,P=0,a&&(D=h.map((e=>u(e))))):(M=e.max||255,P=e.min||0),function(e,t){if(null==t||0===t.length)return e;const r=Math.max.apply(null,t),{minCutOff:n,maxCutOff:o,outMin:i,outMax:s,histogramLut:a}=e;return n.length===t.length||n.length<=r?e:{minCutOff:t.map((e=>n[e])),maxCutOff:t.map((e=>o[e])),histogramLut:a?t.map((e=>a[e])):null,outMin:i,outMax:s}}({minCutOff:g,maxCutOff:m,outMax:M,outMin:P,histogramLut:D},o)}function y(e,t){const r=new Float32Array(e);for(let n=0;n<e;n++)t[n]>1?t[n]>2?r[n]=6.5+(t[n]-2)**2.5:r[n]=6.5+100*(2-t[n])**4:r[n]=1;return r}function w(e,t){if(null==e||!e.pixels?.length)return e;const{mask:r,width:n,height:i,pixels:s}=e,{minCutOff:a,maxCutOff:l,gamma:u}=t,c=t.outMin||0,h=t.outMax||255,f=n*i,d=t.outputPixelType||"u8",p=e.pixels.map((()=>o.Z.createEmptyBand(d,f))),g=p.length;let m,w,C,b,v;const x=h-c,k=[],T=[];for(m=0;m<g;m++)T[m]=l[m]-a[m],k[m]=0===T[m]?0:x/T[m];const S=d.startsWith("u")||d.startsWith("s"),A=u&&u.length>=g,I=!!t.isRenderer;if(A){const e=y(g,u);for(w=0;w<f;w++)if(null==r||r[w])for(m=0;m<g;m++)if(0!==T[m])if(C=s[m][w],v=(C-a[m])/T[m],b=1,u[m]>1&&(b-=(1/x)**(v*e[m])),C<l[m]&&C>a[m]){const e=b*x*v**(1/u[m])+c;p[m][w]=I?Math.floor(e):S?Math.round(e):e}else C>=l[m]?p[m][w]=h:p[m][w]=c;else p[m][w]=c}else for(w=0;w<f;w++)if(null==r||r[w])for(m=0;m<g;m++)if(C=s[m][w],C<l[m]&&C>a[m]){const e=(C-a[m])*k[m]+c;p[m][w]=I?Math.floor(e):S?Math.round(e):e}else C>=l[m]?p[m][w]=h:p[m][w]=c;const P=new o.Z({width:n,height:i,mask:r,pixels:p,pixelType:d});return P.updateStatistics(),P}},63342:(e,t,r)=>{r.d(t,{CX:()=>s,M_:()=>d,Ne:()=>p,TK:()=>a,Ub:()=>h,vC:()=>c,yg:()=>f});var n=r(5847),o=r(55914);const i=1,s=1/111e3;function a(e){let{altitude:t,azimuth:r}=e;const{hillshadeType:n,pixelSizePower:o=1,pixelSizeFactor:i=1,scalingType:a,isGCS:l,resolution:u}=e,c="multi-directional"===n?2*e.zFactor:e.zFactor,{x:h,y:f}=u;let d=c/(8*h),p=c/(8*f);if(l&&c>.001&&(d/=s,p/=s),"adjusted"===a)if(l){const e=h*s,t=f*s;d=(c+e**o*i)/(8*e),p=(c+t**o*i)/(8*t)}else d=(c+h**o*i)/(8*h),p=(c+f**o*i)/(8*f);let g=(90-t)*Math.PI/180,m=Math.cos(g),y=(360-r+90)*Math.PI/180,w=Math.sin(g)*Math.cos(y),C=Math.sin(g)*Math.sin(y);const b=[315,270,225,360,180,0],v=[60,60,60,60,60,90],x=new Float32Array([3,5,3,2,1,4]),k=x.reduce(((e,t)=>e+t)),T=x.map((e=>e/k)),S="multi-directional"===n?b.length:1,A=new Float32Array(6),I=new Float32Array(6),P=new Float32Array(6);if("multi-directional"===n)for(let e=0;e<S;e++)t=v[e],r=b[e],g=(90-t)*Math.PI/180,m=Math.cos(g),y=(360-r+90)*Math.PI/180,w=Math.sin(g)*Math.cos(y),C=Math.sin(g)*Math.sin(y),A[e]=m,I[e]=w,P[e]=C;else A.fill(m),I.fill(w),P.fill(C);return{resolution:u,factor:[d,p],sinZcosA:w,sinZsinA:C,cosZ:m,sinZcosAs:I,sinZsinAs:P,cosZs:A,weights:T,hillshadeType:["traditional","multi-directional"].indexOf(n)}}function l(e,t){const{width:r,height:n,mask:o}=e,s=new Uint8Array(r*n),a=null!=o;if(a)for(let e=0;e<o.length;e++)o[e]&&(s[e]=1);const l=e.pixels[0],u=new Float32Array(r*n),c=new Float32Array(r*n);let h,f=0;if(t){const{resolution:e}=t,o=e?(e.x+e.y)/2:1;f=200*t.zFactor/(o*o),h=new Float32Array(r*n)}const d=t?.curvatureType;let p,g,m,y,w,C,b,v;for(let e=i;e<n-i;e++){const t=e*r;for(let e=i;e<r-i;e++){const n=t+e;if(!a||0!==o[n]){if(a){if(o[n-r-1]+o[n-r]+o[n-r+1]+o[n-1]+o[n+1]+o[n+r-1]+o[n+r]+o[n+r+1]<7){s[n]=0;continue}p=o[n-r-1]?l[n-r-1]:l[n],g=o[n-r]?l[n-r]:l[n],m=o[n-r+1]?l[n-r+1]:l[n],y=o[n-1]?l[n-1]:l[n],w=o[n+1]?l[n+1]:l[n],C=o[n+r-1]?l[n+r-1]:l[n],b=o[n+r]?l[n+r]:l[n],v=o[n+r+1]?l[n+r+1]:l[n]}else p=l[n-r-1],g=l[n-r],m=l[n-r+1],y=l[n-1],w=l[n+1],C=l[n+r-1],b=l[n+r],v=l[n+r+1];if(u[n]=m+w+w+v-(p+y+y+C),c[n]=C+b+b+v-(p+g+g+m),null!=h){const e=l[n],t=.5*(y+w)-e,r=.5*(g+b)-e;if("standard"===d)h[n]=-f*(t+r);else{const e=(-p+m+C-v)/4,o=(-y+w)/2,i=(g-b)/2,s=o*o,a=i*i,l=s+a;l&&(h[n]="profile"===d?f*(t*s+r*a+e*o*i)/l:-f*(t*a+r*s-e*o*i)/l)}}}}}return{outMask:a?s:null,dzxs:u,dzys:c,curvatures:h}}function u(e,t,r){for(let n=0;n<r;n++)e[n*t]=e[n*t+1],e[(n+1)*t-1]=e[(n+1)*t-2];for(let n=1;n<t-1;n++)e[n]=e[n+t],e[n+(r-1)*t]=e[n+(r-2)*t]}function c(e,t){if(!(0,o.nk)(e))return e;const{factor:r,sinZcosA:s,sinZsinA:c,cosZ:h,sinZcosAs:f,sinZsinAs:d,cosZs:p,weights:g}=a(t),[m,y]=r,w="traditional"===t.hillshadeType,{width:C,height:b}=e,v=new Uint8Array(C*b),{dzxs:x,dzys:k,outMask:T}=l(e);for(let e=i;e<b-i;e++){const t=e*C;for(let e=i;e<C-i;e++){const r=t+e;if(!T||T[r]){const e=x[r]*m,t=k[r]*y,n=Math.sqrt(1+e*e+t*t);let o=0;if(w){let r=255*(h+c*t-s*e)/n;r<0&&(r=0),o=r}else{const r=d.length;for(let i=0;i<r;i++){let r=255*(p[i]+d[i]*t-f[i]*e)/n;r<0&&(r=0),o+=r*g[i]}}v[r]=255&o}}}return u(v,C,b),new n.Z({width:C,height:b,pixels:[v],mask:T,pixelType:"u8",validPixelCount:e.validPixelCount,statistics:[{minValue:0,maxValue:255}]})}function h(e,t,r,n){if(!(0,o.nk)(e)||!(0,o.nk)(t))return;const{min:i,max:s}=n,a=e.pixels[0],{pixels:l,mask:u}=t,c=l[0],h=255.00001/(s-i),f=new Uint8ClampedArray(c.length),d=new Uint8ClampedArray(c.length),p=new Uint8ClampedArray(c.length),g=r.length-1;for(let e=0;e<c.length;e++){if(u&&0===u[e])continue;const t=Math.floor((c[e]-i)*h),[n,o]=r[t<0?0:t>g?g:t],s=a[e],l=s*o,m=l*(1-Math.abs(n%2-1)),y=s-l;switch(Math.floor(n)){case 0:f[e]=l+y,d[e]=m+y,p[e]=y;break;case 1:f[e]=m+y,d[e]=l+y,p[e]=y;break;case 2:f[e]=y,d[e]=l+y,p[e]=m+y;break;case 3:f[e]=y,d[e]=m+y,p[e]=l+y;break;case 4:f[e]=m+y,d[e]=y,p[e]=l+y;break;case 5:case 6:f[e]=l+y,d[e]=y,p[e]=m+y}}e.pixels=[f,d,p],e.updateStatistics()}function f(e,t){if(!(0,o.nk)(e))return e;const r=t.zFactor,a=t.pixelSizePower??1,c=t.pixelSizeFactor??1,h=t.slopeType,f=t.isGCS,{x:d,y:p}=t.resolution;let g=r/(8*d),m=r/(8*p);f&&Math.abs(r-1)<1e-4&&(g/=s,m/=s),"adjusted"===h&&(g=(r+d**a*c)/(8*d),m=(r+p**a*c)/(8*p));const{dzxs:y,dzys:w,outMask:C}=l(e),{width:b,height:v}=e,x=new Float32Array(b*v);for(let e=i;e<v-i;e++){const t=e*b;for(let e=i;e<b-i;e++){const r=t+e;if(!C||C[r]){const n=y[r]*g,o=w[r]*m,i=Math.sqrt(n*n+o*o);x[t+e]="percent-rise"===h?100*i:57.2957795*Math.atan(i)}}}u(x,b,v);const k=new n.Z({width:b,height:v,pixels:[x],mask:C,pixelType:"f32",validPixelCount:e.validPixelCount});return k.updateStatistics(),k}function d(e,t={}){if(!(0,o.nk)(e))return e;const{resolution:r}=t,s=r?1/r.x:1,a=r?1/r.y:1,{dzxs:c,dzys:h,outMask:f}=l(e),{width:d,height:p}=e,g=new Float32Array(d*p);for(let e=i;e<p-i;e++){const t=e*d;for(let e=i;e<d-i;e++){const r=t+e;if(!f||f[r]){const n=c[r]*s,o=h[r]*a;let i=-1;0===n&&0===o||(i=90-57.29578*Math.atan2(o,-n),i<0&&(i+=360),360===i?i=0:i>360&&(i%=360)),g[t+e]=i}}}return u(g,d,p),new n.Z({width:d,height:p,pixels:[g],mask:f,pixelType:"f32",validPixelCount:e.validPixelCount,statistics:[{minValue:-1,maxValue:360}]})}function p(e,t){if(!(0,o.nk)(e))return e;const{curvatures:r,outMask:i}=l(e,t),{width:s,height:a}=e;u(r,s,a);const c=new n.Z({width:s,height:a,pixels:[r],mask:i,pixelType:"f32",validPixelCount:e.validPixelCount});return c.updateStatistics(),c}},80676:(e,t,r)=>{r.d(t,{KC:()=>p,NL:()=>l,QI:()=>g,Tg:()=>h,Yx:()=>u,xQ:()=>d});var n=r(35454),o=r(5847),i=r(55914);const s=new Map;s.set("meter-per-second",1),s.set("kilometer-per-hour",.277778),s.set("knots",.514444),s.set("feet-per-second",.3048),s.set("mile-per-hour",.44704);const a=180/Math.PI,l=new n.X({esriMetersPerSecond:"meter-per-second",esriKilometersPerHour:"kilometer-per-hour",esriKnots:"knots",esriFeetPerSecond:"feet-per-second",esriMilesPerHour:"mile-per-hour"});function u(e,t){return s.get(e)/s.get(t)||1}function c(e){return(450-e)%360}function h(e,t="geographic"){const[r,n]=e,o=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r)*a;return i=(360+i)%360,"geographic"===t&&(i=c(i)),[o,i]}function f(e,t="geographic"){let r=e[1];"geographic"===t&&(r=c(r)),r%=360;const n=e[0];return[n*Math.cos(r/a),n*Math.sin(r/a)]}function d(e,t,r,n="geographic"){if(!(0,i.nk)(e)||null==r)return e;const o="vector-magdir"===t?e.clone():p(e,t),s=o.pixels[1];for(let e=0;e<s.length;e++)s[e]="geographic"===n?(s[e]+r[e]+270)%360:(s[e]+360-r[e])%360;return"vector-magdir"===t?o:p(o,"vector-magdir")}function p(e,t,r="geographic",n=1){if(!(0,i.nk)(e))return e;const{pixels:s,width:a,height:l}=e,u=a*l,c=s[0],d=s[1],p=e.pixelType.startsWith("f")?e.pixelType:"f32",g=o.Z.createEmptyBand(p,u),m=o.Z.createEmptyBand(p,u);let y=0;for(let e=0;e<l;e++)for(let e=0;e<a;e++)"vector-uv"===t?([g[y],m[y]]=h([c[y],d[y]],r),g[y]*=n):([g[y],m[y]]=f([c[y],d[y]],r),g[y]*=n,m[y]*=n),y++;const w=new o.Z({pixelType:p,width:e.width,height:e.height,mask:e.mask,validPixelCount:e.validPixelCount,maskIsAlpha:e.maskIsAlpha,pixels:[g,m]});return w.updateStatistics(),w}function g(e,t,r=1){if(1===r||!(0,i.nk)(e))return e;const n=e.clone(),{pixels:o,width:s,height:a}=n,l=o[0],u=o[1];let c=0;for(let e=0;e<a;e++)for(let e=0;e<s;e++)"vector-uv"===t?(l[c]*=r,u[c]*=r):l[c]*=r,c++;return n.updateStatistics(),n}function m(e,t,r,n=1){const o=Math.sqrt(e*e+t*t)/n,i=(2*Math.PI+Math.atan2(t,e))%(2*Math.PI);return[o,(2*Math.PI+i-r)%(2*Math.PI)]}!function(e=0,t=0,r=Math.PI,n=!0){n&&(r=(2*Math.PI-r)%(2*Math.PI));const o=n?-1:1,i=13*o,s=-7*o,a=-2*o,l=-16*o,u=21.75,[c,h]=m(0,t+i,r,u),[f,d]=m(e-5.5,t+s,r,u),[p,g]=m(e+5.5,t+s,r,u),[y,w]=m(e-1.5,t+a,r,u),[C,b]=m(e+1.5,t+a,r,u),[v,x]=m(e-1.5,t+l,r,u),[k,T]=m(e+1.5,t+l,r,u)}(0,0,0)},72758:(e,t,r)=>{r.d(t,{Z:()=>m});var n=r(43697),o=r(3892),i=r(96674),s=r(92604),a=r(5600),l=(r(75215),r(67676),r(80442),r(52011)),u=r(25972),c=r(55914),h=r(15612),f=r(63342),d=r(93010);let p=class extends i.wq{constructor(e){super(e)}bind(){const{rendererJSON:e}=this;if(!e)return{success:!1};let t;switch(this.lookup={rendererJSON:{}},e.type){case"uniqueValue":t=this._updateUVRenderer(e);break;case"rasterColormap":t=this._updateColormapRenderer(e);break;case"rasterStretch":t=this._updateStretchRenderer(e);break;case"classBreaks":t=this._updateClassBreaksRenderer(e);break;case"rasterShadedRelief":t=this._updateShadedReliefRenderer(e);break;case"vectorField":t=this._updateVectorFieldRenderer();break;case"flowRenderer":t=this._updateFlowRenderer()}return t}symbolize(e){let t=e&&e.pixelBlock;if(!g(t))return t;if(e.simpleStretchParams&&"rasterStretch"===this.rendererJSON.type)return this.simpleStretch(t,e.simpleStretchParams);try{let r;switch(t.pixels.length>3&&(t=(0,c.qF)(t,[0,1,2])),this.rendererJSON.type){case"uniqueValue":case"rasterColormap":r=this._symbolizeColormap(t);break;case"classBreaks":r=this._symbolizeClassBreaks(t);break;case"rasterStretch":r=this._symbolizeStretch(t,e.bandIds);break;case"rasterShadedRelief":{const n=e.extent,o=n.spatialReference.isGeographic,i={x:(n.xmax-n.xmin)/t.width,y:(n.ymax-n.ymin)/t.height};r=this._symbolizeShadedRelief(t,{isGCS:o,resolution:i});break}}return r}catch(e){return s.Z.getLogger(this.declaredClass).error("symbolize",e.message),t}}simpleStretch(e,t){if(!g(e))return e;try{return e.pixels.length>3&&(e=(0,c.qF)(e,[0,1,2])),(0,h.dy)(e,{...t,isRenderer:!0})}catch(t){return s.Z.getLogger(this.declaredClass).error("symbolize",t.message),e}}generateWebGLParameters(e){if(["uniqueValue","rasterColormap","classBreaks"].includes(this.rendererJSON.type)){const{indexedColormap:e,offset:t}=this.lookup.colormapLut||{};return{colormap:e,colormapOffset:t,type:"lut"}}const{pixelBlock:t,isGCS:r,resolution:n,bandIds:o}=e,{rendererJSON:i}=this;return"rasterStretch"===i.type?this._generateStretchWebGLParams(t,i,o):"rasterShadedRelief"===i.type?this._generateShadedReliefWebGLParams(i,r,n??void 0):"vectorField"===i.type?this._generateVectorFieldWebGLParams(i):null}_isLUTChanged(e){if(!this.lookup||!this.lookup.rendererJSON)return!0;if("colorRamp"in this.rendererJSON){const t=this.rendererJSON.colorRamp;return e?JSON.stringify(t)!==JSON.stringify(this.lookup.rendererJSON.colorRamp):(this.rendererJSON,this.lookup.rendererJSON,JSON.stringify(this.rendererJSON)!==JSON.stringify(this.lookup.rendererJSON))}return JSON.stringify(this.rendererJSON)!==JSON.stringify(this.lookup.rendererJSON)}_symbolizeColormap(e){return this._isLUTChanged()&&!this.bind().success?e:(0,c.SJ)(e,this.lookup.colormapLut)}_symbolizeClassBreaks(e){const{canUseIndexedLUT:t}=this._analyzeClassBreaks(this.rendererJSON);return this._isLUTChanged()&&!this.bind().success?e:t?(0,c.SJ)(e,this.lookup.colormapLut):(0,c.zp)(e,this.lookup.remapLut??[])}_symbolizeStretch(e,t){const{rasterInfo:r}=this,{pixelType:n,bandCount:o}=r,i=this.rendererJSON,s=["u8","u16","s8","s16"].includes(n);let a,l;const{dra:u}=i,{gamma:f}=this.lookup;if("histogramEqualization"===i.stretchType){const n=u?null:this.lookup?.histogramLut,o=(0,h.AV)(i,{rasterInfo:r,pixelBlock:e,bandIds:t,returnHistogramLut:!n}),s=(0,h.dy)(e,{...o,gamma:f,isRenderer:!0});l=(0,c.XV)(s,{lut:u?o.histogramLut:n,offset:0})}else if(s){if(u){const o=(0,h.AV)(i,{rasterInfo:r,pixelBlock:e,bandIds:t});a=(0,h.hE)({pixelType:n,...o,gamma:f,rounding:"floor"})}else if(this._isLUTChanged()){if(!this.bind().success)return e;a=this.lookup?this.lookup.stretchLut:null}else a=this.lookup?this.lookup.stretchLut:null;if(!a)return e;o>1&&null!=t&&t.length===e?.pixels.length&&a?.lut.length===o&&(a={lut:t.map((e=>a.lut[e])),offset:a.offset}),l=(0,c.XV)(e,a)}else{const n=(0,h.AV)(i,{rasterInfo:r,pixelBlock:e,bandIds:t});l=(0,h.dy)(e,{...n,gamma:f,isRenderer:!0})}if(i.colorRamp){if(this._isLUTChanged(!0)&&!this.bind().success)return e;l=(0,c.SJ)(l,this.lookup?.colormapLut)}return l}_symbolizeShadedRelief(e,t){const r=this.rendererJSON,n={...r,...t},o=(0,f.vC)(e,n);if(!r.colorRamp)return o;let i;if(this._isLUTChanged(!0)){if(!this.bind().success)return o;i=this.lookup?this.lookup.hsvMap:null}else i=this.lookup?this.lookup.hsvMap:null;if(!i)return o;const s=this.rasterInfo.statistics?.[0]??{min:0,max:8e3};return(0,f.Ub)(o,e,i,s),o}_isVectorFieldData(){const{bandCount:e,dataType:t}=this.rasterInfo;return 2===e&&("vector-magdir"===t||"vector-uv"===t)}_updateVectorFieldRenderer(){return this._isVectorFieldData()?{success:!0}:{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; VectorFieldRenderer only supports "vector-magdir" and "vector-uv".`}}_updateFlowRenderer(){return this._isVectorFieldData()?{success:!0}:{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; FlowRenderer only supports "vector-magdir" and "vector-uv".`}}_updateUVRenderer(e){const{bandCount:t,attributeTable:r,pixelType:n}=this.rasterInfo,o=e.field1;if(!o)return{success:!1,error:"Unsupported renderer; missing UniqueValueRenderer.field."};const i=e.defaultSymbol,s=1===t&&["u8","s8"].includes(n);if(!function(e,t){const{attributeTable:r,bandCount:n}=e;return!(null==r||n>1||t&&null==r.fields.find((e=>e.name.toLowerCase()===t.toLowerCase())))}(this.rasterInfo,o)&&!s)return{success:!1,error:"Unsupported data; UniqueValueRenderer is only supported on single band data with a valid raster attribute table."};const a=[];if(null!=r){const t=r.fields.find((e=>"value"===e.name.toLowerCase()));if(!t)return{success:!1,error:"Unsupported data; the data's raster attribute table does not have a value field."};r.features.forEach((r=>{const n=e.uniqueValueInfos?.find((e=>String(e.value)===String(r.attributes[o]))),s=n?.symbol?.color;s?a.push([r.attributes[t.name]].concat(s)):i&&a.push([r.attributes[t.name]].concat(i.color))}))}else{if("value"!==o.toLowerCase())return{success:!1,error:'Unsupported renderer; UniqueValueRenderer.field must be "Value" when raster attribute table is not availalbe.'};e.uniqueValueInfos?.forEach((e=>{const t=e?.symbol?.color;t?a.push([parseInt(""+e.value,10)].concat(t)):i&&a.push([parseInt(""+e.value,10)].concat(i?.color))}))}if(0===a.length)return{success:!1,error:"Invalid UniqueValueRenderer. Cannot find matching records in the raster attribute table."};const l=(0,c.Pz)({colormap:a});return this.lookup={rendererJSON:e,colormapLut:l},this.canRenderInWebGL=!0,{success:!0}}_updateColormapRenderer(e){if(!function(e){const{bandCount:t,colormap:r}=e;return null!=r&&r.length>0&&1===t}(this.rasterInfo))return{success:!1,error:"Unsupported data; the data source does not have a colormap."};const t=e.colormapInfos.map((e=>[e.value].concat(e.color))).sort(((e,t)=>e[0]-t[0]));if(!t||0===t.length)return{success:!1,error:"Unsupported renderer; ColormapRenderer must have meaningful colormapInfos."};const r=(0,c.Pz)({colormap:t});return this.lookup={rendererJSON:e,colormapLut:r},this.canRenderInWebGL=!0,{success:!0}}_updateShadedReliefRenderer(e){if(!function(e){const{bandCount:t,dataType:r,pixelType:n}=e;return"elevation"===r||"generic"===r&&1===t&&("s16"===n||"f32"===n||"f64"===n)}(this.rasterInfo))return{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; ShadedReliefRenderer only supports "elevation", or single band float/s16 data.`};if(e.colorRamp){const t=(0,d.Jw)(e.colorRamp,{interpolateAlpha:!0}),r=(0,c.Pz)({colormap:t}),n=[],i=r.indexedColormap;for(let e=0;e<i.length;e+=4){const t=(0,o._Y)({r:i[e],g:i[e+1],b:i[e+2]});n.push([t.h/60,t.s/100,255*t.v/100])}this.lookup={rendererJSON:e,colormapLut:r,hsvMap:n}}else this.lookup=null;return this.canRenderInWebGL=!0,{success:!0}}_analyzeClassBreaks(e){const{attributeTable:t,pixelType:r}=this.rasterInfo,n=null!=t?t.fields.find((e=>"value"===e.name.toLowerCase())):null,o=null!=t?t.fields.find((t=>t.name.toLowerCase()===e.field.toLowerCase())):null,i=null!=n&&null!==o;return{canUseIndexedLUT:["u8","u16","s8","s16"].includes(r)||i,tableValueField:n,tableBreakField:o}}_updateClassBreaksRenderer(e){const{attributeTable:t}=this.rasterInfo,{canUseIndexedLUT:r,tableValueField:n,tableBreakField:o}=this._analyzeClassBreaks(e),i=e.classBreakInfos;if(!i?.length)return{success:!1,error:"Unsupported renderer; missing or invalid ClassBreaksRenderer.classBreakInfos."};const s=i.sort(((e,t)=>e.classMaxValue-t.classMaxValue)),a=s[s.length-1];let l=e.minValue;if(!r){const t=[];for(let e=0;e<s.length;e++)t.push({value:s[e].classMinValue??l,mappedColor:s[e].symbol.color}),l=s[e].classMaxValue;return t.push({value:a.classMaxValue,mappedColor:a.symbol.color}),this.lookup={rendererJSON:e,remapLut:t},this.canRenderInWebGL=!1,{success:!0}}const u=[];if(null!=t&&null!=n&&null!==o&&n!==o){const r=n.name,i=o.name,a=s[s.length-1],{classMaxValue:c}=a;l=e.minValue;for(const e of t.features){const t=e.attributes[r],n=e.attributes[i],o=n===c?a:n<l?null:s.find((({classMaxValue:e})=>e>n));o&&u.push([t].concat(o.symbol.color))}}else{l=Math.floor(e.minValue);for(let e=0;e<s.length;e++){const t=s[e];for(let e=l;e<t.classMaxValue;e++)u.push([e].concat(t.symbol.color));l=Math.ceil(t.classMaxValue)}a.classMaxValue===l&&u.push([a.classMaxValue].concat(a.symbol.color))}const h=(0,c.Pz)({colormap:u,fillUnspecified:!1});return this.lookup={rendererJSON:e,colormapLut:h},this.canRenderInWebGL=!0,{success:!0}}_isHistogramRequired(e){return"percentClip"===e||"histogramEqualization"===e}_isValidRasterStatistics(e){return null!=e&&e.length>0&&null!=e[0].min&&null!=e[0].max}_updateStretchRenderer(e){let{stretchType:t,dra:r}=e;if(!("none"===t||e.statistics?.length||this._isValidRasterStatistics(this.rasterInfo.statistics)||r))return{success:!1,error:"Unsupported renderer; StretchRenderer.statistics is required when dynamic range adjustment is not used."};const n=e.histograms||this.rasterInfo.histograms;!this._isHistogramRequired(e.stretchType)||n?.length||r||(t="minMax");const{computeGamma:o,useGamma:i,colorRamp:s}=e;let{gamma:a}=e;if(i&&o&&!a?.length){const t=e.statistics?.length?e.statistics:this.rasterInfo.statistics;a=(0,h.ZF)(this.rasterInfo.pixelType,t)}const l=this.rasterInfo.pixelType,u=!r&&["u8","u16","s8","s16"].includes(l);if("histogramEqualization"===t){const t=n.map((e=>(0,h.oc)(e)));this.lookup={rendererJSON:e,histogramLut:t}}else if(u){const t=(0,h.AV)(e,{rasterInfo:this.rasterInfo}),r=(0,h.hE)({pixelType:l,...t,gamma:i?a:null,rounding:"floor"});this.lookup={rendererJSON:e,stretchLut:r}}if(s){const t=(0,d.Jw)(s,{interpolateAlpha:!0});this.lookup||(this.lookup={rendererJSON:e}),this.lookup.colormapLut=(0,c.Pz)({colormap:t}),this.lookup.rendererJSON=e}return this.lookup.gamma=i&&a?.length?a:null,this.canRenderInWebGL=!0,{success:!0}}_generateStretchWebGLParams(e,t,r){let n=null,o=null;const i=this.lookup&&this.lookup.colormapLut;t.colorRamp&&i&&(n=i.indexedColormap,o=i.offset),"histogramEqualization"===t.stretchType&&(t={...t,stretchType:"minMax"});const{gamma:s}=this.lookup,a=!!(t.useGamma&&s&&s.some((e=>1!==e))),{minCutOff:l,maxCutOff:u,outMin:c,outMax:f}=(0,h.AV)(t,{rasterInfo:this.rasterInfo,pixelBlock:e,bandIds:r});let d=0;null!=e&&(d=e.getPlaneCount(),2===d&&((e=e.clone()).statistics=[e.statistics[0]],e.pixels=[e.pixels[0]]));const{bandCount:p}=this.rasterInfo,g=Math.min(3,r?.length||d||p,p),m=new Float32Array(g),y=n||a?1:255;let w;for(w=0;w<l.length;w++)m[w]=u[w]===l[w]?0:(f-c)/(u[w]-l[w])/y;const C=new Float32Array(g);if(a&&s)for(w=0;w<g;w++)s[w]>1?s[w]>2?C[w]=6.5+(s[w]-2)**2.5:C[w]=6.5+100*(2-s[w])**4:C[w]=1;return{bandCount:g,outMin:c/y,outMax:f/y,minCutOff:l,maxCutOff:u,factor:m,useGamma:a,gamma:a?s:[1,1,1],gammaCorrection:a?C:[1,1,1],colormap:n,colormapOffset:o,stretchType:t.stretchType,type:"stretch"}}_generateShadedReliefWebGLParams(e,t=!1,r={x:0,y:0}){let n=null,o=null;const i=this.lookup&&this.lookup.colormapLut;e.colorRamp&&i&&(n=i.indexedColormap,o=i.offset);const s={...e,isGCS:t,resolution:r},a=(0,f.TK)(s),l=this.rasterInfo.statistics?.[0];return{...a,minValue:l?.min??0,maxValue:l?.max??8e3,hillshadeType:"traditional"===e.hillshadeType?0:1,type:"hillshade",colormap:n,colormapOffset:o}}_generateVectorFieldWebGLParams(e){const{style:t,inputUnit:r,outputUnit:n,visualVariables:o,symbolTileSize:i,flowRepresentation:s}=e;let a;const l=this.rasterInfo.statistics?.[0].min??0,u=this.rasterInfo.statistics?.[0].max??50,c=o?.find((e=>"sizeInfo"===e.type))??{type:"sizeInfo",field:"Magnitude",maxDataValue:u,maxSize:.8*i,minDataValue:l,minSize:.2*i},h=c.minDataValue??l,f=c.maxDataValue??u,d=null!=c.maxSize&&null!=c.minSize?[c.minSize/i,c.maxSize/i]:[.2,.8];if("wind_speed"===t){const e=(d[0]+d[1])/2;d[0]=d[1]=e}const p=null!=h&&null!=f?[h,f]:null;if("classified_arrow"===t)if(null!=h&&null!=f&&null!=c){a=[];const e=(c.maxDataValue-c.minDataValue)/5;for(let t=0;t<6;t++)a.push(c.minDataValue+e*t)}else a=[0,1e-6,3.5,7,10.5,14];const g="flow_to"===s==("ocean_current_kn"===t||"ocean_current_m"===t)?0:Math.PI,m=o?.find((e=>"rotationInfo"===e.type));return{breakValues:a,dataRange:p,inputUnit:r,outputUnit:n,symbolTileSize:i,symbolPercentRange:d,style:t||"single_arrow",rotation:g,rotationType:this.rasterInfo.storageInfo?.tileInfo&&"vector-uv"===this.rasterInfo.dataType?"geographic":m?.rotationType||e.rotationType,type:"vectorField"}}};function g(e){return(0,c.nk)(e)&&0!==e.validPixelCount}(0,n._)([(0,a.Cb)({json:{write:!0}})],p.prototype,"rendererJSON",void 0),(0,n._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"rasterInfo",void 0),(0,n._)([(0,a.Cb)({json:{write:!0}})],p.prototype,"lookup",void 0),(0,n._)([(0,a.Cb)()],p.prototype,"canRenderInWebGL",void 0),p=(0,n._)([(0,l.j)("esri.renderers.support.RasterSymbolizer")],p);const m=p},93010:(e,t,r)=>{r.d(t,{B4:()=>f,H0:()=>u,Jw:()=>m,Ms:()=>a,Oi:()=>s,Uh:()=>h,XL:()=>g,io:()=>b,pM:()=>y});var n=r(22303),o=r(3892),i=r(35454);const s=["random","ndvi","ndvi2","ndvi3","elevation","gray","hillshade"],a=[{id:"aspect_predefined",type:"multipart",colorRamps:[{fromColor:[190,190,190],toColor:[255,45,8]},{fromColor:[255,45,8],toColor:[255,181,61]},{fromColor:[255,181,61],toColor:[255,254,52]},{fromColor:[255,254,52],toColor:[0,251,50]},{fromColor:[0,251,50],toColor:[255,254,52]},{fromColor:[0,253,255],toColor:[0,181,255]},{fromColor:[0,181,255],toColor:[26,35,253]},{fromColor:[26,35,253],toColor:[255,57,251]},{fromColor:[255,57,251],toColor:[255,45,8]}]},{id:"blackToWhite_predefined",fromColor:[0,0,0],toColor:[255,255,255]},{id:"blueBright_predefined",fromColor:[204,204,255],toColor:[0,0,224]},{id:"blueLightToDark_predefined",fromColor:[211,229,232],toColor:[46,100,140]},{id:"blueGreenBright_predefined",fromColor:[203,245,234],toColor:[48,207,146]},{id:"blueGreenLightToDark_predefined",fromColor:[216,242,237],toColor:[21,79,74]},{id:"brownLightToDark_predefined",fromColor:[240,236,170],toColor:[102,72,48]},{id:"brownToBlueGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[156,85,31],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[33,130,145]}]},{id:"brownToBlueGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[110,70,45],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[48,100,102]}]},{id:"coefficientBias_predefined",fromColor:[214,214,255],toColor:[0,57,148]},{id:"coldToHotDiverging_predefined",type:"multipart",colorRamps:[{fromColor:[69,117,181],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[214,47,39]}]},{id:"conditionNumber_predefined",type:"multipart",colorRamps:[{fromColor:[0,97,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,34,0]}]},{id:"cyanToPurple_predefined",type:"multipart",colorRamps:[{fromColor:[0,245,245],toColor:[0,0,245]},{fromColor:[0,0,245],toColor:[245,0,245]}]},{id:"cyanLightToBlueDark_predefined",type:"multipart",colorRamps:[{fromColor:[182,237,240],toColor:[31,131,224]},{fromColor:[31,131,224],toColor:[9,9,145]}]},{id:"distance_predefined",fromColor:[255,200,0],toColor:[0,0,255]},{id:"elevation1_predefined",type:"multipart",colorRamps:[{fromColor:[175,240,233],toColor:[255,255,179]},{fromColor:[255,255,179],toColor:[0,128,64]},{fromColor:[0,128,64],toColor:[252,186,3]},{fromColor:[252,186,3],toColor:[128,0,0]},{fromColor:[120,0,0],toColor:[105,48,13]},{fromColor:[105,48,13],toColor:[171,171,171]},{fromColor:[171,171,171],toColor:[255,252,255]}]},{id:"elevation2_predefined",type:"multipart",colorRamps:[{fromColor:[118,219,211],toColor:[255,255,199]},{fromColor:[255,255,199],toColor:[255,255,128]},{fromColor:[255,255,128],toColor:[217,194,121]},{fromColor:[217,194,121],toColor:[135,96,38]},{fromColor:[135,96,38],toColor:[150,150,181]},{fromColor:[150,150,181],toColor:[181,150,181]},{fromColor:[181,150,181],toColor:[255,252,255]}]},{id:"errors_predefined",fromColor:[255,235,214],toColor:[196,10,10]},{id:"grayLightToDark_predefined",fromColor:[219,219,219],toColor:[69,69,69]},{id:"greenBright_predefined",fromColor:[204,255,204],toColor:[14,204,14]},{id:"greenLightToDark_predefined",fromColor:[220,245,233],toColor:[34,102,51]},{id:"greenToBlue_predefined",type:"multipart",colorRamps:[{fromColor:[32,204,16],toColor:[0,242,242]},{fromColor:[0,242,242],toColor:[2,33,227]}]},{id:"orangeBright_predefined",fromColor:[255,235,204],toColor:[240,118,5]},{id:"orangeLightToDark_predefined",fromColor:[250,233,212],toColor:[171,65,36]},{id:"partialSpectrum_predefined",type:"multipart",colorRamps:[{fromColor:[242,241,162],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]},{fromColor:[252,3,69],toColor:[176,7,237]},{fromColor:[176,7,237],toColor:[2,29,173]}]},{id:"partialSpectrum1Diverging_predefined",type:"multipart",colorRamps:[{fromColor:[135,38,38],toColor:[240,149,12]},{fromColor:[240,149,12],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[74,80,181]},{fromColor:[74,80,181],toColor:[39,32,122]}]},{id:"partialSpectrum2Diverging_predefined",type:"multipart",colorRamps:[{fromColor:[115,77,42],toColor:[201,137,52]},{fromColor:[201,137,52],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[91,63,176]},{fromColor:[91,63,176],toColor:[81,13,97]}]},{id:"pinkToYellowGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[158,30,113],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[99,110,45]}]},{id:"pinkToYellowGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[97,47,73],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[22,59,15]}]},{id:"precipitation_predefined",type:"multipart",colorRamps:[{fromColor:[194,82,60],toColor:[237,161,19]},{fromColor:[237,161,19],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,219,0]},{fromColor:[0,219,0],toColor:[32,153,143]},{fromColor:[32,153,143],toColor:[11,44,122]}]},{id:"prediction_predefined",type:"multipart",colorRamps:[{fromColor:[40,146,199],toColor:[250,250,100]},{fromColor:[250,250,100],toColor:[232,16,20]}]},{id:"purpleBright_predefined",fromColor:[255,204,255],toColor:[199,0,199]},{id:"purpleToGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[77,32,150],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[20,122,11]}]},{id:"purpleToGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[67,14,89],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[24,79,15]}]},{id:"purpleBlueBright_predefined",fromColor:[223,184,230],toColor:[112,12,242]},{id:"purpleBlueLightToDark_predefined",fromColor:[229,213,242],toColor:[93,44,112]},{id:"purpleRedBright_predefined",fromColor:[255,204,225],toColor:[199,0,99]},{id:"purpleRedLightToDark_predefined",fromColor:[250,215,246],toColor:[143,17,57]},{id:"redBright_predefined",fromColor:[255,204,204],toColor:[219,0,0]},{id:"redLightToDark_predefined",fromColor:[255,224,224],toColor:[143,10,10]},{id:"redToBlueDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[196,69,57],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[48,95,207]}]},{id:"redToBlueDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[107,13,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[13,53,97]}]},{id:"redToGreen_predefined",type:"multipart",colorRamps:[{fromColor:[245,0,0],toColor:[245,245,0]},{fromColor:[245,245,0],toColor:[0,245,0]}]},{id:"redToGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[186,20,20],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[54,145,33]}]},{id:"redToGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[97,21,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[16,69,16]}]},{id:"slope_predefined",type:"multipart",colorRamps:[{fromColor:[56,168,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]},{id:"spectrumFullBright_predefined",type:"multipart",colorRamps:[{fromColor:[255,0,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,0,255]}]},{id:"spectrumFullDark_predefined",type:"multipart",colorRamps:[{fromColor:[153,0,0],toColor:[153,153,0]},{fromColor:[153,153,0],toColor:[0,153,153]},{fromColor:[0,153,153],toColor:[0,0,153]}]},{id:"spectrumFullLight_predefined",type:"multipart",colorRamps:[{fromColor:[255,153,153],toColor:[255,255,153]},{fromColor:[255,255,153],toColor:[153,255,255]},{fromColor:[153,255,255],toColor:[153,153,255]}]},{id:"surface_predefined",type:"multipart",colorRamps:[{fromColor:[112,153,89],toColor:[242,238,162]},{fromColor:[242,238,162],toColor:[242,206,133]},{fromColor:[242,206,133],toColor:[194,140,124]},{fromColor:[194,140,124],toColor:[255,242,255]}]},{id:"temperature_predefined",type:"multipart",colorRamps:[{fromColor:[255,252,255],toColor:[255,0,255]},{fromColor:[255,0,255],toColor:[0,0,255]},{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,255,0]},{fromColor:[0,255,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,128,0]},{fromColor:[255,128,0],toColor:[128,0,0]}]},{id:"whiteToBlack_predefined",fromColor:[255,255,255],toColor:[0,0,0]},{id:"yellowToDarkRed_predefined",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[242,167,46]},{fromColor:[242,167,46],toColor:[107,0,0]}]},{id:"yellowToGreenToDarkBlue_predefined",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[56,224,9]},{fromColor:[56,224,9],toColor:[26,147,171]},{fromColor:[26,147,171],toColor:[12,16,120]}]},{id:"yellowToRed_predefined",fromColor:[245,245,0],toColor:[255,0,0]},{id:"yellowGreenBright_predefined",fromColor:[236,252,204],toColor:[157,204,16]},{id:"yellowGreenLightToDark_predefined",fromColor:[215,240,175],toColor:[96,107,45]}],l={aspect_predefined:"Aspect",blackToWhite_predefined:"Black to White",blueBright_predefined:"Blue Bright",blueLightToDark_predefined:"Blue Light to Dark",blueGreenBright_predefined:"Blue-Green Bright",blueGreenLightToDark_predefined:"Blue-Green Light to Dark",brownLightToDark_predefined:"Brown Light to Dark",brownToBlueGreenDivergingBright_predefined:"Brown to Blue Green Diverging, Bright",brownToBlueGreenDivergingDark_predefined:"Brown to Blue Green Diverging, Dark",coefficientBias_predefined:"Coefficient Bias",coldToHotDiverging_predefined:"Cold to Hot Diverging",conditionNumber_predefined:"Condition Number",cyanToPurple_predefined:"Cyan to Purple",cyanLightToBlueDark_predefined:"Cyan-Light to Blue-Dark",distance_predefined:"Distance",elevation1_predefined:"Elevation #1",elevation2_predefined:"Elevation #2",errors_predefined:"Errors",grayLightToDark_predefined:"Gray Light to Dark",greenBright_predefined:"Green Bright",greenLightToDark_predefined:"Green Light to Dark",greenToBlue_predefined:"Green to Blue",orangeBright_predefined:"Orange Bright",orangeLightToDark_predefined:"Orange Light to Dark",partialSpectrum_predefined:"Partial Spectrum",partialSpectrum1Diverging_predefined:"Partial Spectrum 1 Diverging",partialSpectrum2Diverging_predefined:"Partial Spectrum 2 Diverging",pinkToYellowGreenDivergingBright_predefined:"Pink to YellowGreen Diverging, Bright",pinkToYellowGreenDivergingDark_predefined:"Pink to YellowGreen Diverging, Dark",precipitation_predefined:"Precipitation",prediction_predefined:"Prediction",purpleBright_predefined:"Purple Bright",purpleToGreenDivergingBright_predefined:"Purple to Green Diverging, Bright",purpleToGreenDivergingDark_predefined:"Purple to Green Diverging, Dark",purpleBlueBright_predefined:"Purple-Blue Bright",purpleBlueLightToDark_predefined:"Purple-Blue Light to Dark",purpleRedBright_predefined:"Purple-Red Bright",purpleRedLightToDark_predefined:"Purple-Red Light to Dark",redBright_predefined:"Red Bright",redLightToDark_predefined:"Red Light to Dark",redToBlueDivergingBright_predefined:"Red to Blue Diverging, Bright",redToBlueDivergingDark_predefined:"Red to Blue Diverging, Dark",redToGreen_predefined:"Red to Green",redToGreenDivergingBright_predefined:"Red to Green Diverging, Bright",redToGreenDivergingDark_predefined:"Red to Green Diverging, Dark",slope_predefined:"Slope",spectrumFullBright_predefined:"Spectrum-Full Bright",spectrumFullDark_predefined:"Spectrum-Full Dark",spectrumFullLight_predefined:"Spectrum-Full Light",surface_predefined:"Surface",temperature_predefined:"Temperature",whiteToBlack_predefined:"White to Black",yellowToDarkRed_predefined:"Yellow to Dark Red",yellowToGreenToDarkBlue_predefined:"Yellow to Green to Dark Blue",yellowToRed_predefined:"Yellow to Red",yellowGreenBright_predefined:"Yellow-Green Bright",yellowGreenLightToDark_predefined:"Yellow-Green Light to Dark"},u=new i.X({Aspect:"aspect","Black to White":"black-to-white","Blue Bright":"blue-bright","Blue Light to Dark":"blue-light-to-dark","Blue-Green Bright":"blue-green-bright","Blue-Green Light to Dark":"blue-green-light-to-dark","Brown Light to Dark":"brown-light-to-dark","Brown to Blue Green Diverging, Bright":"brown-to-blue-green-diverging-right","Brown to Blue Green Diverging, Dark":"brown-to-blue-green-diverging-dark","Coefficient Bias":"coefficient-bias","Cold to Hot Diverging":"cold-to-hot-diverging","Condition Number":"condition-number","Cyan to Purple":"cyan-to-purple","Cyan-Light to Blue-Dark":"cyan-light-to-blue-dark",Distance:"distance","Elevation #1":"elevation1","Elevation #2":"elevation2",Errors:"errors","Gray Light to Dark":"gray-light-to-dark","Green Bright":"green-bright","Green Light to Dark":"green-light-to-dark","Green to Blue":"green-to-blue","Orange Bright":"orange-bright","Orange Light to Dark":"orange-light-to-dark","Partial Spectrum":"partial-spectrum","Partial Spectrum 1 Diverging":"partial-spectrum-1-diverging","Partial Spectrum 2 Diverging":"partial-spectrum-2-diverging","Pink to YellowGreen Diverging, Bright":"pink-to-yellow-green-diverging-bright","Pink to YellowGreen Diverging, Dark":"pink-to-yellow-green-diverging-dark",Precipitation:"precipitation",Prediction:"prediction","urple Bright":"purple-bright","Purple to Green Diverging, Bright":"purple-to-green-diverging-bright","Purple to Green Diverging, Dark":"purple-to-green-diverging-dark","Purple-Blue Bright":"purple-blue-bright","Purple-Blue Light to Dark":"purple-blue-light-to-dark","Purple-Red Bright":"purple-red-bright","Purple-Red Light to Dark":"purple-red-light-to-dark","Red Bright":"red-bright","Red Light to Dark":"red-light-to-dark","Red to Blue Diverging, Bright":"red-to-blue-diverging-bright","Red to Blue Diverging, Dark":"red-to-blue-diverging-dark","Red to Green":"red-to-green","Red to Green Diverging, Bright":"red-to-green-diverging-bright","Red to Green Diverging, Dark":"red-to-green-diverging-dark",Slope:"slope","Spectrum-Full Bright":"spectrum-full-bright","Spectrum-Full Dark":"spectrum-full-dark","Spectrum-Full Light":"spectrum-full-light",Surface:"surface",Temperature:"temperature","White to Black":"white-to-black","Yellow to Dark Red":"yellow-to-dark-red","Yellow to Green to Dark Blue":"yellow-to-green-to-dark-blue","Yellow to Red":"yellow-to-red","Yellow-Green Bright":"yellow-green-bright","Yellow-Green Light to Dark":"yellow-green-light-to-dark"});function c(e,t){if(!e||!t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]>t[r]+2||e[r]<t[r]-2)return!1;return!0}function h(e){const t=function(e,t){if(!e)return;const r=a;let o=null;return"algorithmic"===e.type?r.some((t=>{if(c(e.fromColor.toRgb(),t.fromColor)&&c(e.toColor.toRgb(),t.toColor))return o=t.id,!0})):"multipart"===e.type&&r.some((t=>{const r=e.colorRamps,i=t.colorRamps;if(r&&i&&r.length===i.length&&!i.some(((e,t)=>{if(!c(r[t].fromColor.toRgb(),new n.Z(e.fromColor).toRgb())||!c(r[t].toColor.toRgb(),new n.Z(e.toColor).toRgb()))return!0}))){if(o)return!0;o=t.id}})),o}(e);return t?l[t]:null}function f(e){const t=u.toJSON(e),r=Object.entries(l).find((e=>e[1]===t))?.[0],n=a.find((e=>e.id===r));return n?n.colorRamps?{type:"multipart",colorRamps:n.colorRamps.map((e=>({type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:e.fromColor,toColor:e.toColor})))}:{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:n.fromColor,toColor:n.toColor}:null}function d(e){const t=(e=e||{}).numColors||256,r=e.distanceOffset||0,n=null!=e.isCustomInterval?e.isCustomInterval:null!==e.distanceInterval&&e.distanceInterval!==1/(t-1),o=e.distanceInterval||1/(t-1);return{...e,numColors:t,distanceOffset:r,interpolateAlpha:!!e.interpolateAlpha,distanceInterval:o,isCustomInterval:n,weights:e.weights}}function p(e,t){let{fromColor:r,toColor:n}=e;3===r.length&&(r=r.concat([255])),3===n.length&&(n=n.concat([255]));const i=e.algorithm||"esriCIELabAlgorithm",s=d(t),{numColors:a,distanceOffset:l,isCustomInterval:u,interpolateAlpha:c}=s;if(1===a&&0===l)return[r];if(2===a&&0===l&&!u)return[r,n];const h={r:r[0],g:r[1],b:r[2]},f={r:n[0],g:n[1],b:n[2]},p="esriCIELabAlgorithm"===i?function(e,t,r){const{numColors:n,distanceOffset:o,distanceInterval:i,isCustomInterval:s}=r;let{l:a,a:l,b:u}=e;const c=(t.l-a)*i,h=(t.a-l)*i,f=(t.b-u)*i,d=[];if(o){const e=o/i;a+=e*c,l+=e*h,u+=e*f}for(let e=0;e<n-1;e++)d.push({l:a,a:l,b:u}),a+=c,l+=h,u+=f;return d.push(s?{l:a,a:l,b:u}:t),d}((0,o.Y3)(h),(0,o.Y3)(f),s):"esriHSVAlgorithm"===i?function(e,t,r){const{numColors:n,distanceOffset:o,distanceInterval:i,isCustomInterval:s}=r,a=0===e.s,l=0===t.s;let u=e.h,c=t.h;a&&!l?u=c:l&&!a&&(t={...t,h:u},c=u);let h,f=Math.abs(c-u);const d=360;f<180?h=(c-u)*i:(f=d-f,h=u>c?f*i:-f*i);const p=(t.s-e.s)*i,g=(t.v-e.v)*i;let{s:m,v:y}=e,w=u;if(o){const e=o/i;w=(w+e*h+d)%d,m+=e*p,y+=e*g}const C=[];for(let e=0;e<n-1;e++)C.push({h:w,s:m,v:y}),w=(w+h+d)%d,m+=p,y+=g;return C.push(s?{h:w,s:m,v:y}:t),C}((0,o._Y)(h),(0,o._Y)(f),s):function(e,t,r){const{numColors:n,distanceOffset:o,distanceInterval:i,isCustomInterval:s}=r,a=e.h,l=t.h,u=2*Math.PI;let c;if(a<=l){const e=l-a,t=l-a-u;c=Math.abs(t)<Math.abs(e)?t:e}else{const e=l+u-a,t=l-a;c=Math.abs(t)<Math.abs(e)?t:e}const h=c*i,f=(t.l-e.l)*i,d=(t.c-e.c)*i;let{l:p,c:g,h:m}=e;if(o){const e=o/i;p+=e*f,g+=e*d,m=(m+e*h+u)%u}const y=[];for(let e=0;e<n-1;e++)y.push({l:p,c:g,h:m}),p+=f,g+=d,m=(m+h+u)%u;return y.push(s?{l:p,c:g,h:m}:t),y}((0,o.sJ)(h),(0,o.sJ)(f),s),g=[],m=r[3]??255,y=((n[3]??255)-m)/(a-1);for(let e=0;e<a;e++){const{r:t,g:r,b:n}=(0,o.xr)(p[e]),i=c?Math.round(m+y*e):255;g.push([t,r,n,i])}return g}function g(e,t){const r="toJSON"in e?e.toJSON():e;return"multipart"===r.type?function(e,t){const{numColors:r,interpolateAlpha:n}=d(t);let o=t?.weights;const{colorRamps:i}=e;if(o){const e=o.reduce(((e,t)=>e+t));o=o.map((t=>t/e))}else{o=[];for(let e=0;e<i.length;e++)o[e]=1/i.length}const s=[];let a=0,l=0;const u=1/(r-1);let c=!1;for(let e=0;e<i.length;e++){let t=c?0:a*u-l,h=e===i.length-1?r-1-a:(o[e]-t)/u;if(c=Math.ceil(h)===h,h=Math.ceil(h),0===h)continue;t/=o[e];const f=p(i[e],{numColors:h,interpolateAlpha:n,distanceOffset:t,distanceInterval:u/o[e]});a+=f.length,s.push(...f),l+=o[e]}const h=[...i[i.length-1].toColor];return 3===h.length&&h.push(255),s.push(h),s}(r,t):p(r,t)}function m(e,t){const r=g(e,t),n=t?.interpolateAlpha;return r.forEach(((e,t)=>{e.unshift(t),n||e.pop()})),r}function y(e){const t=h(e);if(e){if("algorithmic"===e.type)return{...w(e),Name:t};if(e.colorRamps){const r=e.colorRamps.map(w);return{type:"MultiPartColorRamp",NumColorRamps:r.length,ArrayOfColorRamp:r,Name:t}}}}function w(e){if(!e)return;const t=e.toJSON();return{Algorithm:t?.Algorithm||"esriHSVAlgorithm",type:"AlgorithmicColorRamp",FromColor:C(e.fromColor),ToColor:C(e.toColor)}}function C(e){const t=(0,o._Y)(e);return{type:"HsvColor",Hue:t.h,Saturation:t.s,Value:t.v,AlphaValue:255}}function b(e){const t=e.reverse().map((e=>{const t=e.toString(16);return t.length<2?"0"+t:t}));return 4294967295&Number.parseInt(t.join(""),16)}},75509:(e,t,r)=>{r.d(t,{J:()=>o,v:()=>n});const n=new(r(35454).X)({none:"none",standardDeviation:"standard-deviation",histogramEqualization:"histogram-equalization",minMax:"min-max",percentClip:"percent-clip",sigmoid:"sigmoid"}),o={0:"none",3:"standardDeviation",4:"histogramEqualization",5:"minMax",6:"percentClip",9:"sigmoid"}},23808:(e,t,r)=>{r.d(t,{GE:()=>u}),r(66577);var n=r(80442),o=r(92604),i=(r(22021),r(95330)),s=r(77734);r(8744),r(6570);const a=o.Z.getLogger("esri.views.2d.engine.flow.dataUtils"),l=10;async function u(e,t,r,o){const u=performance.now(),c=function(e,t){const r=function(e,t,r,n){if(0===n)return e;const o=Math.round(3*n),i=new Array(2*o+1);let s=0;for(let e=-o;e<=o;e++){const t=Math.exp(-e*e/(n*n));i[e+o]=t,s+=t}for(let e=-o;e<=o;e++)i[e+o]/=s;const a=new Float32Array(e.length);for(let n=0;n<r;n++)for(let r=0;r<t;r++){let s=0,l=0;for(let a=-o;a<=o;a++){if(r+a<0||r+a>=t)continue;const u=i[a+o];s+=u*e[2*(n*t+(r+a))],l+=u*e[2*(n*t+(r+a))+1]}a[2*(n*t+r)]=s,a[2*(n*t+r)+1]=l}const l=new Float32Array(e.length);for(let e=0;e<t;e++)for(let n=0;n<r;n++){let s=0,u=0;for(let l=-o;l<=o;l++){if(n+l<0||n+l>=r)continue;const c=i[l+o];s+=c*a[2*((n+l)*t+e)],u+=c*a[2*((n+l)*t+e)+1]}l[2*(n*t+e)]=s,l[2*(n*t+e)+1]=u}return l}(t.data,t.width,t.height,e.smoothing);return e.interpolate?(e,n)=>{const o=Math.floor(e),i=Math.floor(n);if(o<0||o>=t.width)return[0,0];if(i<0||i>=t.height)return[0,0];const s=e-o,a=n-i,l=o,u=i,c=o<t.width-1?o+1:o,h=i<t.height-1?i+1:i,f=r[2*(u*t.width+l)],d=r[2*(u*t.width+c)],p=r[2*(h*t.width+l)],g=r[2*(h*t.width+c)],m=r[2*(u*t.width+l)+1],y=r[2*(u*t.width+c)+1];return[(f*(1-a)+p*a)*(1-s)+(d*(1-a)+g*a)*s,(m*(1-a)+r[2*(h*t.width+l)+1]*a)*(1-s)+(y*(1-a)+r[2*(h*t.width+c)+1]*a)*s]}:(e,n)=>{const o=Math.round(e),i=Math.round(n);return o<0||o>=t.width||i<0||i>=t.height?[0,0]:[r[2*(i*t.width+o)],r[2*(i*t.width+o)+1]]}}(t,r),f=performance.now(),d=h(t,c,r.width,r.height),p=performance.now(),g=function(e,t){const r=new s.Z,n=e.reduce(((e,t)=>e+t.length),0),o=new Float32Array(4*n),i=new Array(e.length);let a=0,l=0;for(const t of e){const e=a;for(const e of t)o[4*a]=e.x,o[4*a+1]=e.y,o[4*a+2]=e.t,o[4*a+3]=e.speed,a++;i[l++]={startVertex:e,numberOfVertices:t.length,totalTime:t[t.length-1].t,timeSeed:r.getFloat()}}return{lineVertices:o,lineDescriptors:i}}(d),m=performance.now(),y="Streamlines"===e?function(e,t){const{lineVertices:r,lineDescriptors:n}=e;let o=0,i=0;for(const e of n)o+=2*e.numberOfVertices,i+=6*(e.numberOfVertices-1);const s=new Float32Array(9*o),a=new Uint32Array(i);let l=0,u=0;function c(){a[u++]=l-2,a[u++]=l,a[u++]=l-1,a[u++]=l,a[u++]=l+1,a[u++]=l-1}function h(e,t,r,n,o,i,a,u){const c=9*l;let h=0;s[c+h++]=e,s[c+h++]=t,s[c+h++]=1,s[c+h++]=r,s[c+h++]=i,s[c+h++]=a,s[c+h++]=n/2,s[c+h++]=o/2,s[c+h++]=u,l++,s[c+h++]=e,s[c+h++]=t,s[c+h++]=-1,s[c+h++]=r,s[c+h++]=i,s[c+h++]=a,s[c+h++]=-n/2,s[c+h++]=-o/2,s[c+h++]=u,l++}for(const e of n){const{totalTime:n,timeSeed:o}=e;let i=null,s=null,a=null,l=null,u=null,f=null;for(let d=0;d<e.numberOfVertices;d++){const p=r[4*(e.startVertex+d)],g=r[4*(e.startVertex+d)+1],m=r[4*(e.startVertex+d)+2],y=r[4*(e.startVertex+d)+3];let w=null,C=null,b=null,v=null;if(d>0){w=p-i,C=g-s;const e=Math.sqrt(w*w+C*C);if(w/=e,C/=e,d>1){let e=w+u,r=C+f;const n=Math.sqrt(e*e+r*r);e/=n,r/=n;const o=Math.min(1/(e*w+r*C),t);e*=o,r*=o,b=-r,v=e}else b=-C,v=w;null!==b&&null!==v&&(h(i,s,a,b,v,n,o,y),c())}i=p,s=g,a=m,u=w,f=C,l=y}h(i,s,a,-f,u,n,o,l)}return{vertexData:s,indexData:a}}(g,l):function(e){const t=16,r=1,n=2,{lineVertices:o,lineDescriptors:i}=e;let s=0,a=0;for(const e of i){const t=e.numberOfVertices-1;s+=4*t*2,a+=6*t*2}const l=new Float32Array(s*t),u=new Uint32Array(a);let c,h,f,d,p,g,m,y,w,C,b,v,x,k,T=0,S=0;function A(){u[S++]=T-8,u[S++]=T-7,u[S++]=T-6,u[S++]=T-7,u[S++]=T-5,u[S++]=T-6,u[S++]=T-4,u[S++]=T-3,u[S++]=T-2,u[S++]=T-3,u[S++]=T-1,u[S++]=T-2}function I(e,o,i,s,a,u,c,h,f,d,p,g,m,y){const w=T*t;let C=0;for(const t of[r,n])for(const r of[1,2,3,4])l[w+C++]=e,l[w+C++]=o,l[w+C++]=i,l[w+C++]=s,l[w+C++]=c,l[w+C++]=h,l[w+C++]=f,l[w+C++]=d,l[w+C++]=t,l[w+C++]=r,l[w+C++]=m,l[w+C++]=y,l[w+C++]=a/2,l[w+C++]=u/2,l[w+C++]=p/2,l[w+C++]=g/2,T++}function P(e,t){let r=w+b,n=C+v;const o=Math.sqrt(r*r+n*n);r/=o,n/=o;const i=w*r+C*n;r/=i,n/=i;let s=b+x,a=v+k;const l=Math.sqrt(s*s+a*a);s/=l,a/=l;const u=b*s+v*a;s/=u,a/=u,I(c,h,f,d,-n,r,p,g,m,y,-a,s,e,t),A()}function M(e,t,r,n,o,i){if(w=b,C=v,b=x,v=k,null==w&&null==C&&(w=b,C=v),null!=p&&null!=g){x=e-p,k=t-g;const r=Math.sqrt(x*x+k*k);x/=r,k/=r}null!=w&&null!=C&&P(o,i),c=p,h=g,f=m,d=y,p=e,g=t,m=r,y=n}function D(e,t){w=b,C=v,b=x,v=k,null==w&&null==C&&(w=b,C=v),null!=w&&null!=C&&P(e,t)}for(const e of i){c=null,h=null,f=null,d=null,p=null,g=null,m=null,y=null,w=null,C=null,b=null,v=null,x=null,k=null;const{totalTime:t,timeSeed:r}=e;for(let n=0;n<e.numberOfVertices;n++)M(o[4*(e.startVertex+n)],o[4*(e.startVertex+n)+1],o[4*(e.startVertex+n)+2],o[4*(e.startVertex+n)+3],t,r);D(t,r)}return{vertexData:l,indexData:u}}(g),w=performance.now();return(0,n.Z)("esri-2d-profiler")&&(a.info("I.1","_createFlowFieldFromData (ms)",Math.round(f-u)),a.info("I.2","_getStreamlines (ms)",Math.round(p-f)),a.info("I.3","createAnimatedLinesData (ms)",Math.round(m-p)),a.info("I.4","create{Streamlines|Particles}Mesh (ms)",Math.round(w-m)),a.info("I.5","createFlowMesh (ms)",Math.round(w-u)),a.info("I.6","Mesh size (bytes)",y.vertexData.buffer.byteLength+y.indexData.buffer.byteLength)),await Promise.resolve(),(0,i.k_)(o),y}function c(e,t,r,n,o,i,s,a,l){const u=[];let c=r,h=n,f=0,[d,p]=t(c,h);d*=e.velocityScale,p*=e.velocityScale;const g=Math.sqrt(d*d+p*p);let m,y;u.push({x:c,y:h,t:f,speed:g});for(let r=0;r<e.verticesPerLine;r++){let[r,n]=t(c,h);r*=e.velocityScale,n*=e.velocityScale;const d=Math.sqrt(r*r+n*n);if(d<e.minSpeedThreshold)return u;const p=r/d,g=n/d;if(c+=p*e.segmentLength,h+=g*e.segmentLength,f+=e.segmentLength/d,Math.acos(p*m+g*y)>e.maxTurnAngle)return u;if(e.collisions){const e=Math.round(c*l),t=Math.round(h*l);if(e<0||e>s-1||t<0||t>a-1)return u;const r=i[t*s+e];if(-1!==r&&r!==o)return u;i[t*s+e]=o}u.push({x:c,y:h,t:f,speed:d}),m=p,y=g}return u}function h(e,t,r,n){const o=[],i=new s.Z,a=1/Math.max(e.lineCollisionWidth,1),l=Math.round(r*a),u=Math.round(n*a),h=new Int32Array(l*u);for(let e=0;e<h.length;e++)h[e]=-1;const f=[];for(let t=0;t<n;t+=e.lineSpacing)for(let n=0;n<r;n+=e.lineSpacing)f.push({x:n,y:t,sort:i.getFloat()});f.sort(((e,t)=>e.sort-t.sort));for(const{x:r,y:n}of f)if(i.getFloat()<e.density){const i=c(e,t,r,n,o.length,h,l,u,a);if(i.length<2)continue;o.push(i)}return o}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3298,3172,9880],{27535:(e,t,s)=>{var r;s.d(t,{Hy:()=>d,OF:()=>u,TD:()=>f,Tu:()=>m,VO:()=>h,aV:()=>o,kq:()=>c,rH:()=>r}),function(e){e.AsyncNotEnabled="AsyncNotEnabled",e.ModulesNotSupported="ModulesNotSupported",e.CircularModules="CircularModules",e.NeverReach="NeverReach",e.UnsupportedHashType="UnsupportedHashType",e.InvalidParameter="InvalidParameter",e.UnexpectedToken="UnexpectedToken",e.Unrecognised="Unrecognised",e.UnrecognisedType="UnrecognisedType",e.MaximumCallDepth="MaximumCallDepth",e.BooleanConditionRequired="BooleanConditionRequired",e.TypeNotAllowedInFeature="TypeNotAllowedInFeature",e.KeyMustBeString="KeyMustBeString",e.WrongNumberOfParameters="WrongNumberOfParameters",e.CallNonFunction="CallNonFunction",e.NoFunctionInTemplateLiteral="NoFunctionInTemplateLiteral",e.NoFunctionInDictionary="NoFunctionInDictionary",e.NoFunctionInArray="NoFunctionInArray",e.AssignModuleFunction="AssignModuleFunction",e.LogicExpressionOrAnd="LogicExpressionOrAnd",e.LogicalExpressionOnlyBoolean="LogicalExpressionOnlyBoolean",e.FuncionNotFound="FunctionNotFound",e.InvalidMemberAccessKey="InvalidMemberAccessKey",e.UnsupportedUnaryOperator="UnsupportUnaryOperator",e.InvalidIdentifier="InvalidIdentifier",e.MemberOfNull="MemberOfNull",e.UnsupportedOperator="UnsupportedOperator",e.Cancelled="Cancelled",e.ModuleAccessorMustBeString="ModuleAccessorMustBeString",e.ModuleExportNotFound="ModuleExportNotFound",e.Immutable="Immutable",e.OutOfBounds="OutOfBounds",e.IllegalResult="IllegalResult",e.FieldNotFound="FieldNotFound",e.PortalRequired="PortalRequired",e.LogicError="LogicError",e.ArrayAccessorMustBeNumber="ArrayAccessMustBeNumber",e.KeyAccessorMustBeString="KeyAccessorMustBeString",e.WrongSpatialReference="WrongSpatialReference"}(r||(r={}));const i={[r.TypeNotAllowedInFeature]:"Feature attributes only support dates, numbers, strings, guids.",[r.LogicError]:"Logic error - {reason}",[r.NeverReach]:"Encountered unreachable logic",[r.AsyncNotEnabled]:"Async Arcade must be enabled for this script",[r.ModuleAccessorMustBeString]:"Module accessor must be a string",[r.ModuleExportNotFound]:"Module has no export with provided identifier",[r.ModulesNotSupported]:"Current profile does not support modules",[r.ArrayAccessorMustBeNumber]:"Array accessor must be a number",[r.FuncionNotFound]:"Function not found",[r.FieldNotFound]:"Key not found - {key}",[r.CircularModules]:"Circular module dependencies are not allowed",[r.Cancelled]:"Execution cancelled",[r.UnsupportedHashType]:"Type not supported in hash function",[r.IllegalResult]:"Value is not a supported return type",[r.PortalRequired]:"Portal is required",[r.InvalidParameter]:"Invalid parameter",[r.WrongNumberOfParameters]:"Call with wrong number of parameters",[r.Unrecognised]:"Unrecognised code structure",[r.UnrecognisedType]:"Unrecognised type",[r.WrongSpatialReference]:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",[r.BooleanConditionRequired]:"Conditions must use booleans",[r.NoFunctionInDictionary]:"Dictionaries cannot contain functions.",[r.NoFunctionInArray]:"Arrays cannot contain functions.",[r.NoFunctionInTemplateLiteral]:"Template Literals do not expect functions by value.",[r.KeyAccessorMustBeString]:"Accessor must be a string",[r.KeyMustBeString]:"Object keys must be a string",[r.Immutable]:"Object is immutable",[r.InvalidParameter]:"Invalid parameter",[r.UnexpectedToken]:"Unexpected token",[r.MemberOfNull]:"Cannot access property of null object",[r.MaximumCallDepth]:"Exceeded maximum function depth",[r.OutOfBounds]:"Out of bounds",[r.InvalidIdentifier]:"Identifier not recognised",[r.FuncionNotFound]:"Function not found",[r.CallNonFunction]:"Expression is not a function",[r.InvalidMemberAccessKey]:"Cannot access value using a key of this type",[r.AssignModuleFunction]:"Cannot assign function to module variable",[r.UnsupportedUnaryOperator]:"Unsupported unary operator",[r.UnsupportedOperator]:"Unsupported operator",[r.LogicalExpressionOnlyBoolean]:"Logical expressions must be boolean",[r.LogicExpressionOrAnd]:"Logical expression can only be combined with || or &&"};class n extends Error{constructor(...e){super(...e)}}class a extends n{constructor(e,t){super(l(t)+e.message,{cause:e}),this.loc=null,Error.captureStackTrace&&Error.captureStackTrace(this,a),t&&t.loc&&(this.loc=t.loc)}}class o extends Error{constructor(e,t,s,r){super("Execution error - "+l(s)+d(i[t],r)),this.loc=null,this.declaredRootClass="esri.arcade.arcadeexecutionerror",Error.captureStackTrace&&Error.captureStackTrace(this,o),s&&s.loc&&(this.loc=s.loc)}}function l(e){return e&&e.loc?`Line : ${e.loc.start?.line}, ${e.loc.start?.column}: `:""}class u extends Error{constructor(e,t,s,r){super("Compilation error - "+l(s)+d(i[t],r)),this.loc=null,this.declaredRootClass="esri.arcade.arcadecompilationerror",Error.captureStackTrace&&Error.captureStackTrace(this,u),s&&s.loc&&(this.loc=s.loc)}}class c extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror",Error.captureStackTrace&&Error.captureStackTrace(this,c)}}function d(e,t){try{if(!t)return e;for(const s in t){let r=t[s];r||(r=""),e=e.replace("{"+s+"}",t[s])}}catch(e){}return e}function h(e,t,s){return"esri.arcade.arcadeexecutionerror"===s.declaredRootClass||"esri.arcade.arcadecompilationerror"===s.declaredRootClass?null===s.loc&&t&&t.loc?new a(s,{cause:s}):s:("esri.arcade.featureset.support.featureseterror"===s.declaredRootClass||"esri.arcade.featureset.support.sqlerror"===s.declaredRootClass||s.declaredRootClass,t&&t.loc?new a(s,{cause:s}):s)}var f;!function(e){e.UnrecognisedUri="UnrecognisedUri",e.UnsupportedUriProtocol="UnsupportedUriProtocol"}(f||(f={}));const p={[f.UnrecognisedUri]:"Unrecognised uri - {uri}",[f.UnsupportedUriProtocol]:"Unrecognised uri protocol"};class m extends Error{constructor(e,t){super(d(p[e],t)),this.declaredRootClass="esri.arcade.arcademoduleerror",Error.captureStackTrace&&Error.captureStackTrace(this,m)}}},99880:(e,t,s)=>{s.d(t,{V:()=>l});var r=s(68773),i=(s(3172),s(20102)),n=s(92604),a=s(17452);const o=n.Z.getLogger("esri.assets");function l(e){if(!r.default.assetsPath)throw o.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new i.Z("assets:path-not-set","config.assetsPath is not set");return(0,a.v_)(r.default.assetsPath,e)}},74669:(e,t,s)=>{s.d(t,{Z:()=>i});var r=s(69801);class i{constructor(e,t){this._storage=new r.WJ,this._storage.maxSize=e,t&&this._storage.registerRemoveFunc("",t)}put(e,t){this._storage.put(e,t,1,1)}pop(e){return this._storage.pop(e)}get(e){return this._storage.get(e)}clear(){this._storage.clearAll()}destroy(){this._storage.destroy()}}},10661:(e,t,s)=>{s.d(t,{s:()=>i});var r=s(42100);class i extends r.s{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},37455:(e,t,s)=>{s.d(t,{N:()=>r});const r={convertToGEGeometry:function(e,t){return null==t?null:e.convertJSONToGeometry(t)},exportPoint:function(e,t,s){const r=new i(e.getPointX(t),e.getPointY(t),s),n=e.hasZ(t),a=e.hasM(t);return n&&(r.z=e.getPointZ(t)),a&&(r.m=e.getPointM(t)),r},exportPolygon:function(e,t,s){return new n(e.exportPaths(t),s,e.hasZ(t),e.hasM(t))},exportPolyline:function(e,t,s){return new a(e.exportPaths(t),s,e.hasZ(t),e.hasM(t))},exportMultipoint:function(e,t,s){return new o(e.exportPoints(t),s,e.hasZ(t),e.hasM(t))},exportExtent:function(e,t,s){const r=e.hasZ(t),i=e.hasM(t),n=new l(e.getXMin(t),e.getYMin(t),e.getXMax(t),e.getYMax(t),s);if(r){const s=e.getZExtent(t);n.zmin=s.vmin,n.zmax=s.vmax}if(i){const s=e.getMExtent(t);n.mmin=s.vmin,n.mmax=s.vmax}return n}};class i{constructor(e,t,s){this.x=e,this.y=t,this.spatialReference=s,this.z=void 0,this.m=void 0}}class n{constructor(e,t,s,r){this.rings=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),r&&(this.hasM=r)}}class a{constructor(e,t,s,r){this.paths=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),r&&(this.hasM=r)}}class o{constructor(e,t,s,r){this.points=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),r&&(this.hasM=r)}}class l{constructor(e,t,s,r,i){this.xmin=e,this.ymin=t,this.xmax=s,this.ymax=r,this.spatialReference=i,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}},26993:(e,t,s)=>{s.d(t,{y:()=>x,r:()=>f});var r=s(35308),i=s(49600),n=s(82397),a=s(8744),o=s(62432),l=s(24452);class u{constructor(e,t,s){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues??!1,this.fieldsIndex=s,this.featureAdapter=t;const r=e.outFields;if(r&&!r.includes("*")){this.outFields=r;let e=0;for(const t of r){const r=(0,o.hr)(t),i=this.fieldsIndex.get(r),n=i?null:(0,o.Jc)(r,s),a=i?i.name:(0,o.nu)(t)||"FIELD_EXP_"+e++;this._fieldDataCache.set(t,{alias:a,clause:n})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach((e=>this.getAttributes(e))),this._returnDistinctMap.size):e.length}getAttributes(e){const t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,s){const r=s?s.name:t;let i=null;return this._fieldDataCache.has(r)?i=this._fieldDataCache.get(r)?.clause:s||(i=(0,o.Jc)(t,this.fieldsIndex),this._fieldDataCache.set(r,{alias:r,clause:i})),s?this.featureAdapter.getAttribute(e,r):i?.calculateValue(e,this.featureAdapter)}getDataValue(e,t){const s=t.normalizationType,r=t.normalizationTotal;let i=t.field&&this.getFieldValue(e,t.field,this.fieldsIndex.get(t.field));if(t.field2&&(i=`${(0,l.wk)(i)}${t.fieldDelimiter}${(0,l.wk)(this.getFieldValue(e,t.field2,this.fieldsIndex.get(t.field2)))}`,t.field3&&(i=`${i}${t.fieldDelimiter}${(0,l.wk)(this.getFieldValue(e,t.field3,this.fieldsIndex.get(t.field3)))}`)),s&&Number.isFinite(i)){const n="field"===s&&t.normalizationField?this.getFieldValue(e,t.normalizationField,this.fieldsIndex.get(t.normalizationField)):null;i=(0,l.fk)(i,s,n,r)}return i}getExpressionValue(e,t,s,r){const i={attributes:this.featureAdapter.getAttributes(e),layer:{fields:this.fieldsIndex.fields}},n=r.createExecContext(i,s);return r.executeFunction(t,n)}getExpressionValues(e,t,s,r){const i={fields:this.fieldsIndex.fields};return e.map((e=>{const n={attributes:this.featureAdapter.getAttributes(e),layer:i},a=r.createExecContext(n,s);return r.executeFunction(t,a)}))}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,o.Jc)(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testFeature(e,this.featureAdapter)??!1}validateItems(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,o.Jc)(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testSet(e,this.featureAdapter)??!1}_processAttributesForOutFields(e){const t=this.outFields;if(!t||!t.length)return this.featureAdapter.getAttributes(e);const s={};for(const r of t){const{alias:t,clause:i}=this._fieldDataCache.get(r);s[t]=i?i.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,t)}return s}_processAttributesForDistinctValues(e){if(null==e||!this.returnDistinctValues)return e;const t=this.outFields,s=[];if(t)for(const r of t){const{alias:t}=this._fieldDataCache.get(r);s.push(e[t])}else for(const t in e)s.push(e[t]);const r=`${(t||["*"]).join(",")}=${s.join(",")}`;let i=this._returnDistinctMap.get(r)||0;return this._returnDistinctMap.set(r,++i),i>1?null:e}}var c=s(37427);function d(e,t,s){return{objectId:e,target:t,distance:s,type:"vertex"}}function h(e,t,s,r,i,n=!1){return{objectId:e,target:t,distance:s,type:"edge",start:r,end:i,draped:n}}var f,p,m=s(11490),g=s(35671),y=s(59266);class x{constructor(e,t,s){this.items=e,this.query=t,this.geometryType=s.geometryType,this.hasM=s.hasM,this.hasZ=s.hasZ,this.fieldsIndex=s.fieldsIndex,this.objectIdField=s.objectIdField,this.spatialReference=s.spatialReference,this.featureAdapter=s.featureAdapter}get size(){return this.items.length}createQueryResponseForCount(){const e=new u(this.query,this.featureAdapter,this.fieldsIndex);if(!this.query.outStatistics)return e.countDistinctValues(this.items);const{groupByFieldsForStatistics:t,having:s,outStatistics:r}=this.query,i=t?.length;if(!i)return 1;const n=new Map,a=new Map,o=new Set;for(const i of r){const{statisticType:r}=i,l="exceedslimit"!==r?i.onStatisticField:void 0;if(!a.has(l)){const s=[];for(const r of t){const t=this._getAttributeValues(e,r,n);s.push(t)}a.set(l,this._calculateUniqueValues(s,e.returnDistinctValues))}const u=a.get(l);for(const t in u){const{data:r,items:i}=u[t],n=r.join(",");s&&!e.validateItems(i,s)||o.add(n)}}return o.size}async createQueryResponse(){let e;if(e=this.query.outStatistics?this.query.outStatistics.some((e=>"exceedslimit"===e.statisticType))?this._createExceedsLimitQueryResponse(this.query):await this._createStatisticsQueryResponse(this.query):this._createFeatureQueryResponse(this.query),this.query.returnQueryGeometry){const t=this.query.geometry;(0,a.JY)(this.query.outSR)&&!(0,a.fS)(t.spatialReference,this.query.outSR)?e.queryGeometry=(0,m.S2)({spatialReference:this.query.outSR,...(0,c.iV)(t,t.spatialReference,this.query.outSR)}):e.queryGeometry=(0,m.S2)({spatialReference:this.query.outSR,...t})}return e}createSnappingResponse(e,t){const s=this.featureAdapter,r=b(this.hasZ,this.hasM),{point:i,mode:n}=e,a="number"==typeof e.distance?e.distance:e.distance.x,o="number"==typeof e.distance?e.distance:e.distance.y,l={candidates:[]},u="esriGeometryPolygon"===this.geometryType,c=this._getPointCreator(n,this.spatialReference,t),p=new v(null,0),m=new v(null,0),g={x:0,y:0,z:0};for(const t of this.items){const n=s.getGeometry(t);if(null==n)continue;const{coords:y,lengths:x}=n;if(p.coords=y,m.coords=y,e.types&f.EDGE){let e=0;for(let n=0;n<x.length;n++){const u=x[n];for(let n=0;n<u;n++,e+=r){const d=p;if(d.coordsIndex=e,n!==u-1){const n=m;n.coordsIndex=e+r;const u=g;w(g,i,d,n);const f=(i.x-u.x)/a,p=(i.y-u.y)/o,y=f*f+p*p;y<=1&&l.candidates.push(h(s.getObjectId(t),c(u),Math.sqrt(y),c(d),c(n)))}}}}if(e.types&f.VERTEX){const e=u?y.length-r:y.length;for(let n=0;n<e;n+=r){const e=p;e.coordsIndex=n;const r=(i.x-e.x)/a,u=(i.y-e.y)/o,h=r*r+u*u;h<=1&&l.candidates.push(d(s.getObjectId(t),c(e),Math.sqrt(h)))}}}return l.candidates.sort(((e,t)=>e.distance-t.distance)),l}_getPointCreator(e,t,s){const r=null==s||(0,a.fS)(t,s)?e=>e:e=>(0,c.iV)(e,t,s),{hasZ:i}=this;return"3d"===e?i?({x:e,y:t,z:s})=>r({x:e,y:t,z:s}):({x:e,y:t})=>r({x:e,y:t,z:0}):({x:e,y:t})=>r({x:e,y:t})}async createSummaryStatisticsResponse(e){const{field:t,valueExpression:s,normalizationField:r,normalizationType:i,normalizationTotal:n,minValue:a,maxValue:o,scale:u}=e,c=this.fieldsIndex.isDateField(t),d=await this._getDataValues({field:t,valueExpression:s,normalizationField:r,normalizationType:i,normalizationTotal:n,scale:u}),h=(0,l.S5)({normalizationType:i,normalizationField:r,minValue:a,maxValue:o}),f=this.fieldsIndex.get(t),p={value:.5,fieldType:f?.type},m=(0,g.qN)(f)?(0,l.H0)({values:d,supportsNullCount:h,percentileParams:p}):(0,l.i5)({values:d,minValue:a,maxValue:o,useSampleStdDev:!i,supportsNullCount:h,percentileParams:p});return(0,l.F_)(m,c)}async createUniqueValuesResponse(e){const{field:t,valueExpression:s,domains:r,returnAllCodedValues:i,scale:n}=e,a=await this._getDataValues({field:t,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,valueExpression:s,scale:n}),o=(0,l.eT)(a);return(0,l.Qm)(o,r,i,e.fieldDelimiter)}async createClassBreaksResponse(e){const{field:t,valueExpression:s,normalizationField:r,normalizationType:i,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:u,maxValue:c,numClasses:d,scale:h}=e,f=await this._getDataValues({field:t,valueExpression:s,normalizationField:r,normalizationType:i,normalizationTotal:n,scale:h}),p=(0,l.G2)(f,{field:t,normalizationField:r,normalizationType:i,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:u,maxValue:c,numClasses:d});return(0,l.DL)(p,a)}async createHistogramResponse(e){const{field:t,valueExpression:s,normalizationField:r,normalizationType:i,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:u,maxValue:c,numBins:d,scale:h}=e,f=await this._getDataValues({field:t,valueExpression:s,normalizationField:r,normalizationType:i,normalizationTotal:n,scale:h});return(0,l.oF)(f,{field:t,normalizationField:r,normalizationType:i,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:u,maxValue:c,numBins:d})}_sortFeatures(e,t,s){if(e.length>1&&t&&t.length)for(const r of t.reverse()){const t=r.split(" "),i=t[0],n=this.fieldsIndex.get(i),a=!!t[1]&&"desc"===t[1].toLowerCase(),o=(0,l.Lq)(n?.type,a);e.sort(((e,t)=>{const r=s(e,i,n),a=s(t,i,n);return o(r,a)}))}}_createFeatureQueryResponse(e){const t=this.items,{geometryType:s,hasM:r,hasZ:i,objectIdField:a,spatialReference:o}=this,{outFields:l,outSR:u,quantizationParameters:c,resultRecordCount:d,resultOffset:h,returnZ:f,returnM:p}=e,g=null!=d&&t.length>(h||0)+d,y=l&&(l.includes("*")?[...this.fieldsIndex.fields]:l.map((e=>this.fieldsIndex.get(e))));return{exceededTransferLimit:g,features:this._createFeatures(e,t),fields:y,geometryType:s,hasM:r&&p,hasZ:i&&f,objectIdFieldName:a,spatialReference:(0,m.S2)(u||o),transform:c&&(0,n.vY)(c)||null}}_createFeatures(e,t){const s=new u(e,this.featureAdapter,this.fieldsIndex),{hasM:r,hasZ:i}=this,{orderByFields:a,quantizationParameters:o,returnGeometry:l,returnCentroid:c,maxAllowableOffset:d,resultOffset:h,resultRecordCount:f,returnZ:p=!1,returnM:g=!1}=e,y=i&&p,x=r&&g;let w=[],b=0;const v=[...t];if(this._sortFeatures(v,a,((e,t,r)=>s.getFieldValue(e,t,r))),l||c){const e=(0,n.vY)(o)??void 0;if(l&&!c)for(const t of v)w[b++]={attributes:s.getAttributes(t),geometry:(0,m.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),d,e,y,x)};else if(!l&&c)for(const t of v)w[b++]={attributes:s.getAttributes(t),centroid:(0,m.EG)(this,this.featureAdapter.getCentroid(t,this),e)};else for(const t of v)w[b++]={attributes:s.getAttributes(t),centroid:(0,m.EG)(this,this.featureAdapter.getCentroid(t,this),e),geometry:(0,m.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),d,e,y,x)}}else for(const e of v){const t=s.getAttributes(e);t&&(w[b++]={attributes:t})}const T=h||0;if(null!=f){const e=T+f;w=w.slice(T,Math.min(w.length,e))}return w}_createExceedsLimitQueryResponse(e){let t=!1,s=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY;for(const t of e.outStatistics??[])if("exceedslimit"===t.statisticType){s=null!=t.maxPointCount?t.maxPointCount:Number.POSITIVE_INFINITY,r=null!=t.maxRecordCount?t.maxRecordCount:Number.POSITIVE_INFINITY,i=null!=t.maxVertexCount?t.maxVertexCount:Number.POSITIVE_INFINITY;break}if("esriGeometryPoint"===this.geometryType)t=this.items.length>s;else if(this.items.length>r)t=!0;else{const e=b(this.hasZ,this.hasM),s=this.featureAdapter;t=this.items.reduce(((e,t)=>{const r=s.getGeometry(t);return e+(null!=r&&r.coords.length||0)}),0)/e>i}return{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(t)}}]}}async _createStatisticsQueryResponse(e){const t={attributes:{}},s=[],r=new Map,i=new Map,n=new Map,a=new Map,o=new u(e,this.featureAdapter,this.fieldsIndex),l=e.outStatistics,{groupByFieldsForStatistics:c,having:d,orderByFields:h}=e,f=c&&c.length,p=!!f,m=p?c[0]:null,g=p&&!this.fieldsIndex.get(m);for(const e of l??[]){const{outStatisticFieldName:l,statisticType:u}=e,h=e,y="exceedslimit"!==u?e.onStatisticField:void 0,x="percentile_disc"===u||"percentile_cont"===u,w="EnvelopeAggregate"===u||"CentroidAggregate"===u||"ConvexHullAggregate"===u,b=p&&1===f&&(y===m||g)&&"count"===u;if(p){if(!n.has(y)){const e=[];for(const t of c){const s=this._getAttributeValues(o,t,r);e.push(s)}n.set(y,this._calculateUniqueValues(e,!w&&o.returnDistinctValues))}const e=n.get(y);for(const t in e){const{count:s,data:i,items:n,itemPositions:u}=e[t],f=i.join(",");if(!d||o.validateItems(n,d)){const e=a.get(f)||{attributes:{}};if(w){e.aggregateGeometries||(e.aggregateGeometries={});const{aggregateGeometries:t,outStatisticFieldName:s}=await this._getAggregateGeometry(h,n);e.aggregateGeometries[s]=t}else{let t=null;if(b)t=s;else{const e=this._getAttributeValues(o,y,r),s=u.map((t=>e[t]));t=x&&"statisticParameters"in h?this._getPercentileValue(h,s):this._getStatisticValue(h,s,null,o.returnDistinctValues)}e.attributes[l]=t}let t=0;c.forEach(((s,r)=>e.attributes[this.fieldsIndex.get(s)?s:"EXPR_"+ ++t]=i[r])),a.set(f,e)}}}else if(w){t.aggregateGeometries||(t.aggregateGeometries={});const{aggregateGeometries:e,outStatisticFieldName:s}=await this._getAggregateGeometry(h,this.items);t.aggregateGeometries[s]=e}else{const e=this._getAttributeValues(o,y,r);t.attributes[l]=x&&"statisticParameters"in h?this._getPercentileValue(h,e):this._getStatisticValue(h,e,i,o.returnDistinctValues)}s.push({name:l,alias:l,type:"esriFieldTypeDouble"})}const y=p?Array.from(a.values()):[t];return this._sortFeatures(y,h,((e,t)=>e.attributes[t])),{fields:s,features:y}}async _getAggregateGeometry(e,t){const n=await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247)),{statisticType:a,outStatisticFieldName:o}=e,{featureAdapter:l,spatialReference:u,geometryType:c,hasZ:d,hasM:h}=this,f=t.map((e=>(0,m.Op)(c,d,h,l.getGeometry(e)))),p=n.convexHull(u,f,!0)[0],g={aggregateGeometries:null,outStatisticFieldName:null};if("EnvelopeAggregate"===a){const e=p?(0,i._w)(p):(0,i.aO)(n.union(u,f));g.aggregateGeometries={...e,spatialReference:u},g.outStatisticFieldName=o||"extent"}else if("CentroidAggregate"===a){const e=p?(0,r.tO)(p):(0,r.$G)((0,i.aO)(n.union(u,f)));g.aggregateGeometries={x:e[0],y:e[1],spatialReference:u},g.outStatisticFieldName=o||"centroid"}else"ConvexHullAggregate"===a&&(g.aggregateGeometries=p,g.outStatisticFieldName=o||"convexHull");return g}_getStatisticValue(e,t,s,r){const{onStatisticField:i,statisticType:n}=e;let a=null;return a=s?.has(i)?s.get(i):(0,g.qN)(this.fieldsIndex.get(i))?(0,l.H0)({values:t,returnDistinct:r}):(0,l.i5)({values:r?[...new Set(t)]:t,minValue:null,maxValue:null,useSampleStdDev:!0}),s&&s.set(i,a),a["var"===n?"variance":n]}_getPercentileValue(e,t){const{onStatisticField:s,statisticParameters:r,statisticType:i}=e,{value:n,orderBy:a}=r,o=this.fieldsIndex.get(s);return(0,l.XL)(t,{value:n,orderBy:a,fieldType:o?.type,isDiscrete:"percentile_disc"===i})}_getAttributeValues(e,t,s){if(s.has(t))return s.get(t);const r=this.fieldsIndex.get(t),i=this.items.map((s=>e.getFieldValue(s,t,r)));return s.set(t,i),i}_getAttributeDataValues(e,t){return this.items.map((s=>e.getDataValue(s,{field:t.field,field2:t.field2,field3:t.field3,fieldDelimiter:t.fieldDelimiter,normalizationField:t.normalizationField,normalizationType:t.normalizationType,normalizationTotal:t.normalizationTotal})))}async _getAttributeExpressionValues(e,t,s){const{arcadeUtils:r}=await(0,y.LC)(),i=r.createFunction(t),n=s&&r.getViewInfo(s);return e.getExpressionValues(this.items,i,n,r)}_calculateUniqueValues(e,t){const s={},r=this.items,i=r.length;for(let n=0;n<i;n++){const i=r[n],a=[];for(const t of e)a.push(t[n]);const o=a.join(",");null==s[o]?s[o]={count:1,data:a,items:[i],itemPositions:[n]}:(t||s[o].count++,s[o].items.push(i),s[o].itemPositions.push(n))}return s}async _getDataValues(e){const t=new u(this.query,this.featureAdapter,this.fieldsIndex),{valueExpression:s,field:r,normalizationField:i,normalizationType:n,normalizationTotal:a,scale:o}=e,l=s?{viewingMode:"map",scale:o,spatialReference:this.query.outSR||this.spatialReference}:null;return s?this._getAttributeExpressionValues(t,s,l):this._getAttributeDataValues(t,{field:r,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,normalizationField:i,normalizationType:n,normalizationTotal:a})}}function w(e,t,s,r){const i=r.x-s.x,n=r.y-s.y,a=i*i+n*n,o=(t.x-s.x)*i+(t.y-s.y)*n,l=Math.min(1,Math.max(0,o/a));e.x=s.x+i*l,e.y=s.y+n*l}function b(e,t){return e?t?4:3:t?3:2}(p=f||(f={}))[p.NONE=0]="NONE",p[p.EDGE=1]="EDGE",p[p.VERTEX=2]="VERTEX";class v{constructor(e,t){this.coords=e,this.coordsIndex=t}get x(){return this.coords[this.coordsIndex]}get y(){return this.coords[this.coordsIndex+1]}get z(){return this.coords[this.coordsIndex+2]}}},62432:(e,t,s)=>{s.d(t,{nu:()=>m,hr:()=>p,Jc:()=>h,G3:()=>g,Of:()=>f,z4:()=>d,hO:()=>c});var r=s(20102),i=s(74669),n=s(41534);const a=new class{constructor(e,t){this._cache=new i.Z(e),this._invalidCache=new i.Z(t)}get(e,t){const s=`${t.uid}:${e}`,r=this._cache.get(s);if(r)return r;if(void 0!==this._invalidCache.get(s))return null;try{const r=n.WhereClause.create(e,t);return this._cache.put(s,r),r}catch{return this._invalidCache.put(s,null),null}}}(50,500),o="feature-store:unsupported-query",l=" as ",u=new Set(["esriFieldTypeOID","esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeDate"]);function c(e,t){if(!t)return!0;const s=a.get(t,e);if(!s)throw new r.Z(o,"invalid SQL expression",{where:t});if(!s.isStandardized)throw new r.Z(o,"where clause is not standard",{where:t});return f(e,s.fieldNames,"where clause contains missing fields"),!0}function d(e,t,s){if(!t)return!0;const i=a.get(t,e);if(!i)throw new r.Z(o,"invalid SQL expression",{having:t});if(!i.isAggregate)throw new r.Z(o,"having does not contain a valid aggregate function",{having:t});const n=i.fieldNames;if(f(e,n,"having contains missing fields"),!i.getExpressions().every((t=>{const{aggregateType:r,field:i}=t,n=e.get(i)?.name;return s.some((t=>{const{onStatisticField:s,statisticType:i}=t,a=e.get(s)?.name;return a===n&&i.toLowerCase().trim()===r}))})))throw new r.Z(o,"expressions in having should also exist in outStatistics",{having:t});return!0}function h(e,t){return e?a.get(e,t):null}function f(e,t,s,i=!0){const n=[];for(const s of t)if("*"!==s&&!e.has(s))if(i){const t=p(s);try{const s=h(t,e);if(!s)throw new r.Z(o,"invalid SQL expression",{where:t});if(!s.isStandardized)throw new r.Z(o,"expression is not standard",{clause:s});f(e,s.fieldNames,"expression contains missing fields")}catch(e){const t=e&&e.details;if(t&&(t.clause||t.where))throw e;t&&t.missingFields?n.push(...t.missingFields):n.push(s)}}else n.push(s);if(n.length)throw new r.Z(o,s,{missingFields:n})}function p(e){return e.split(l)[0]}function m(e){return e.split(l)[1]}function g(e,t){const s=t.get(e);return!!s&&!u.has(s.type)}},37427:(e,t,s)=>{s.d(t,{_W:()=>h,iV:()=>m,oj:()=>y});var r=s(67676),i=s(44547),n=s(37455),a=s(8744),o=s(40488);const l=[0,0];function u(e,t){if(!t)return null;if("x"in t){const s={x:0,y:0};return[s.x,s.y]=e(t.x,t.y,l),null!=t.z&&(s.z=t.z),null!=t.m&&(s.m=t.m),s}if("xmin"in t){const s={xmin:0,ymin:0,xmax:0,ymax:0};return[s.xmin,s.ymin]=e(t.xmin,t.ymin,l),[s.xmax,s.ymax]=e(t.xmax,t.ymax,l),t.hasZ&&(s.zmin=t.zmin,s.zmax=t.zmax,s.hasZ=!0),t.hasM&&(s.mmin=t.mmin,s.mmax=t.mmax,s.hasM=!0),s}return"rings"in t?{rings:c(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:c(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:d(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:null}function c(e,t){const s=[];for(const r of e)s.push(d(r,t));return s}function d(e,t){const s=[];for(const r of e){const e=t(r[0],r[1],[0,0]);s.push(e),r.length>2&&e.push(r[2]),r.length>3&&e.push(r[3])}return s}async function h(e,t){if(!e||!t)return;const s=Array.isArray(e)?e.map((e=>null!=e.geometry?e.geometry.spatialReference:null)).filter(r.pC):[e];await(0,i.iQ)(s.map((e=>({source:e,dest:t}))))}const f=u.bind(null,o.hG),p=u.bind(null,o.R6);function m(e,t,s,r){if(!e)return e;if(s||(s=t,t=e.spatialReference),!(0,a.JY)(t)||!(0,a.JY)(s)||(0,a.fS)(t,s))return e;if((0,o.Q8)(t,s)){const t=(0,a.sS)(s)?f(e):p(e);return t.spatialReference=s,t}return(0,i.oj)(n.N,[e],t,s,null,r)[0]}const g=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,s){if(!e||!e.length||!t||!s||(0,a.fS)(t,s))return e;const r={geometries:e,inSpatialReference:t,outSpatialReference:s,resolve:null};return this._jobs.push(r),new Promise((e=>{r.resolve=e,null===this._timer&&(this._timer=setTimeout(this._process,10))}))}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:s,outSpatialReference:r,resolve:l}=e;(0,o.Q8)(s,r)?(0,a.sS)(r)?l(t.map(f)):l(t.map(p)):l((0,i.oj)(n.N,t,s,r,null,null)),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function y(e,t,s){return g.push(e,t,s)}},11490:(e,t,s)=>{s.d(t,{EG:()=>w,Op:()=>b,S2:()=>F,Up:()=>v,j6:()=>T,vF:()=>p});var r=s(35454),i=s(67900),n=s(44547),a=s(49600),o=s(33955),l=s(16306),u=s(8744),c=s(98732),d=s(5428),h=s(37427);const f=new r.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),p=Object.freeze({}),m=new d.Z,g=new d.Z,y=new d.Z,x={esriGeometryPoint:c.fQ,esriGeometryPolyline:c.J6,esriGeometryPolygon:c.eG,esriGeometryMultipoint:c.Iv};function w(e,t,s,r=e.hasZ,i=e.hasM){if(null==t)return null;const n=e.hasZ&&r,a=e.hasM&&i;if(s){const o=(0,c.Nh)(y,t,e.hasZ,e.hasM,"esriGeometryPoint",s,r,i);return(0,c.fQ)(o,n,a)}return(0,c.fQ)(t,n,a)}function b(e,t,s,r,i,n,a=t,o=s){const l=t&&a,u=s&&o,d=null!=r?"coords"in r?r:r.geometry:null;if(null==d)return null;if(i){let r=(0,c.zj)(g,d,t,s,e,i,a,o);return n&&(r=(0,c.Nh)(y,r,l,u,e,n)),x[e]?.(r,l,u)??null}if(n){const r=(0,c.Nh)(y,d,t,s,e,n,a,o);return x[e]?.(r,l,u)??null}return(0,c.hY)(m,d,t,s,a,o),x[e]?.(m,l,u)??null}async function v(e,t,s){const{outFields:r,orderByFields:i,groupByFieldsForStatistics:n,outStatistics:a}=e;if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(i)for(let e=0;e<i.length;e++)i[e]=i[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(a)for(let e=0;e<a.length;e++)a[e].onStatisticField&&(a[e].onStatisticField=a[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),T(e,t,s)}async function T(e,t,r){if(!e)return null;let{where:n}=e;if(e.where=n=n&&n.trim(),(!n||/^1 *= *1$/.test(n)||t&&t===n)&&(e.where=null),!e.geometry)return e;let c=await async function(e){const{distance:t,units:r}=e,n=e.geometry;if(null==t||"vertexAttributes"in n)return n;const a=n.spatialReference,o=r?f.fromJSON(r):(0,i.qE)(a),l=a&&((0,u.sT)(a)||(0,u.sS)(a))?n:await(0,h._W)(a,u.Zn).then((()=>(0,h.iV)(n,u.Zn)));return(await async function(){return(await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247))).geodesicBuffer}())(l.spatialReference,l,t,o)}(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;c=(0,a.aO)(c),c.spatialReference=t}if(c){await(0,h._W)(c.spatialReference,r),c=function(e,t){const s=e.spatialReference;return S(e,t)&&(0,o.YX)(e)?{spatialReference:s,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]}:e}(c,r);const t=(await(0,l.aX)((0,o.im)(c)))[0];if(null==t)throw p;const s="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,i=s&&S(c,r)?{densificationStep:8*s}:void 0,n=t.toJSON(),a=await(0,h.iV)(n,n.spatialReference,r,i);if(!a)throw p;a.spatialReference=r,e.geometry=a}return e}function S(e,t){if(!e)return!1;const s=e.spatialReference;return((0,o.YX)(e)||(0,o.oU)(e)||(0,o.l9)(e))&&!(0,u.fS)(s,t)&&!(0,n.Up)(s,t)}function F(e){return e&&I in e?JSON.parse(JSON.stringify(e,E)):e}const I="_geVersion",E=(e,t)=>e!==I?t:void 0},3172:(e,t,s)=>{s.r(t),s.d(t,{default:()=>f});var r=s(68773),i=s(40330),n=s(20102),a=s(80442),o=s(22974),l=s(95330),u=s(17452),c=s(19745),d=s(71058),h=s(85958);async function f(e,t){const o=(0,u.HK)(e),c=(0,u.jc)(e);c||o||(e=(0,u.Fv)(e));const y={url:e,requestOptions:{...t}};let x=(0,u.oh)(e);if(x){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let s,r;try{r=await e.before(t)}catch(e){s=S("request:interceptor",e,t)}if((r instanceof Error||r instanceof n.Z)&&(s=S("request:interceptor",r,t)),s)throw e.error&&e.error(s),s;return r}}(x,y);if(null!=e)return{data:e,getHeader:b,httpStatus:200,requestOptions:y.requestOptions,url:y.url};x.after||x.error||(x=null)}if(e=y.url,"image"===(t=y.requestOptions).responseType){if((0,a.Z)("host-webworker")||(0,a.Z)("host-node"))throw S("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),y)}else if(o)throw S("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),y);if("head"===t.method){if(t.body)throw S("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),y);if(o||c)throw S("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),y)}if(await async function(){(0,a.Z)("host-webworker")?p||(p=await s.e(9884).then(s.bind(s,29884))):f._abortableFetch||(f._abortableFetch=globalThis.fetch.bind(globalThis))}(),p)return p.execute(e,t);const w=new AbortController;(0,l.fu)(t,(()=>w.abort()));const v={controller:w,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:x,params:y,redoRequest:!1,useIdentity:m.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},T=await async function(e){let t,s;await async function(e){const t=e.params.url,s=e.params.requestOptions,n=e.controller.signal,a=s.body;let o=null,u=null;if(g&&"HTMLFormElement"in globalThis&&(a instanceof FormData?o=a:a instanceof HTMLFormElement&&(o=new FormData(a))),"string"==typeof a&&(u=a),e.fetchOptions={cache:s.cacheBust&&!f._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:s.headers||{},method:"head"===s.method?"HEAD":"GET",mode:"cors",priority:m.priority,redirect:"follow",signal:n},(o||u)&&(e.fetchOptions.body=o||u),"anonymous"===s.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||s.query?.token||o?.get("token")),!e.hasToken&&r.default.apiKey&&(0,d.r)(t)&&(s.query||(s.query={}),s.query.token=r.default.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!I(t)&&!(0,l.Hc)(n)){let r;"immediate"===s.authMode?(await F(),r=await i.id.getCredential(t,{signal:n}),e.credential=r):"no-prompt"===s.authMode?(await F(),r=await i.id.getCredential(t,{prompt:!1,signal:n}).catch((()=>{})),e.credential=r):i.id&&(r=i.id.findCredential(t)),r&&(e.credentialToken=r.token,e.useSSL=!!r.ssl)}}(e);try{do{[t,s]=await E(e)}while(!await C(e,t,s))}catch(s){const r=S("request:server",s,e.params,t);throw r.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(r),r}const n=e.params.url;if(s&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!e.hasToken&&!e.credentialToken&&s.user?.username&&!(0,u.kl)(n)){const e=(0,u.P$)(n,!0);e&&m.trustedServers.push(e)}Array.isArray(s.authorizedCrossOriginNoCorsDomains)&&(0,h.Hu)(s.authorizedCrossOriginNoCorsDomains)}const a=e.credential;if(a&&i.id){const e=i.id.findServerInfo(a.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=i.id.findCredential(t,a.userId);e&&-1===i.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:s,getHeader:t?e=>t?.headers.get(e):b,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(v);return x?.after?.(T),T}let p;const m=r.default.request,g="FormData"in globalThis,y=[499,498,403,401],x=["COM_0056","COM_0057","SB_0008"],w=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],b=()=>null,v=Symbol();function T(e){const t=(0,u.P$)(e);return!t||t.endsWith(".arcgis.com")||f._corsServers.includes(t)||(0,u.kl)(t)}function S(e,t,s,r){let i="Error";const a={url:s.url,requestOptions:s.requestOptions,getHeader:b,ssl:!1};if(t instanceof n.Z)return t.details?(t.details=(0,o.d9)(t.details),t.details.url=s.url,t.details.requestOptions=s.requestOptions):t.details=a,t;if(t){const e=r&&(e=>r.headers.get(e)),s=r&&r.status,n=t.message;n&&(i=n),e&&(a.getHeader=e),a.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||s||0,a.subCode=t.subcode,a.messageCode=t.messageCode,"string"==typeof t.details?a.messages=[t.details]:a.messages=t.details,a.raw=v in t?t[v]:t}return(0,l.D_)(t)?(0,l.zE)():new n.Z(e,i,a)}async function F(){i.id||await Promise.all([s.e(6261),s.e(1400),s.e(450)]).then(s.bind(s,73660))}function I(e){return w.some((t=>t.test(e)))}async function E(e){let t=e.params.url;const s=e.params.requestOptions,r=e.fetchOptions??{},n=(0,u.jc)(t)||(0,u.HK)(t),o=s.responseType||"json",d=n?0:null!=s.timeout?s.timeout:m.timeout;let p=!1;if(!n){e.useSSL&&(t=(0,u.hO)(t)),s.cacheBust&&"default"===r.cache&&(t=(0,u.ZN)(t,"request.preventCache",Date.now()));let n={...s.query};e.credentialToken&&(n.token=e.credentialToken);let o=(0,u.B7)(n);(0,a.Z)("esri-url-encodes-apostrophe")&&(o=o.replace(/'/g,"%27"));const l=t.length+1+o.length;let d;p="delete"===s.method||"post"===s.method||"put"===s.method||!!s.body||l>m.maxUrlLength;const f=s.useProxy||!!(0,u.ed)(t);if(f){const e=(0,u.b7)(t);d=e.path,!p&&d.length+1+l>m.maxUrlLength&&(p=!0),e.query&&(n={...e.query,...n})}if("HEAD"===r.method&&(p||f)){if(p){if(l>m.maxUrlLength)throw S("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw S("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(f)throw S("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(p?(r.method="delete"===s.method?"DELETE":"put"===s.method?"PUT":"POST",s.body?t=(0,u.fl)(t,n):(r.body=(0,u.B7)(n),r.headers||(r.headers={}),r.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.fl)(t,n),f&&(e.useProxy=!0,t=`${d}?${t}`),n.token&&g&&r.body instanceof FormData&&!(0,c.P)(t)&&r.body.set("token",n.token),s.hasOwnProperty("withCredentials"))e.withCredentials=s.withCredentials;else if(!(0,u.D6)(t,(0,u.TI)()))if((0,u.kl)(t))e.withCredentials=!0;else if(i.id){const s=i.id.findServerInfo(t);s&&s.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(r.credentials="include",(0,h.jH)(t)&&await(0,h.jz)(p?(0,u.fl)(t,n):t))}let y,x,w=0,b=!1;d>0&&(w=setTimeout((()=>{b=!0,e.controller.abort()}),d));try{if("native-request-init"===s.responseType)x=r,x.url=t;else if("image"!==s.responseType||"default"!==r.cache||"GET"!==r.method||p||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(s.headers)||!n&&!e.useProxy&&m.proxyUrl&&!T(t)){if(y=await f._abortableFetch(t,r),e.useProxy||function(e){const t=(0,u.P$)(e);t&&!f._corsServers.includes(t)&&f._corsServers.push(t)}(t),"native"===s.responseType)x=y;else if("HEAD"!==r.method)if(y.ok){switch(o){case"array-buffer":x=await y.arrayBuffer();break;case"blob":case"image":x=await y.blob();break;default:x=await y.text()}if(w&&(clearTimeout(w),w=0),"json"===o||"xml"===o||"document"===o)if(x)switch(o){case"json":x=JSON.parse(x);break;case"xml":x=_(x,"application/xml");break;case"document":x=_(x,"text/html")}else x=null;if(x){if("array-buffer"===o||"blob"===o){const e=y.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&x["blob"===o?"size":"byteLength"]<=750)try{const e=await new Response(x).json();e.error&&(x=e)}catch{}}"image"===o&&x instanceof Blob&&(x=await M(URL.createObjectURL(x),e,!0))}}else x=await y.text()}else x=await M(t,e)}catch(r){if("AbortError"===r.name){if(b)throw new Error("Timeout exceeded");throw(0,l.zE)("Request canceled")}if(!(!y&&r instanceof TypeError&&m.proxyUrl)||s.body||"delete"===s.method||"head"===s.method||"post"===s.method||"put"===s.method||e.useProxy||T(t))throw r;e.redoRequest=!0,(0,u.tD)({proxyUrl:m.proxyUrl,urlPrefix:(0,u.P$)(t)??""})}finally{w&&clearTimeout(w)}return[y,x]}function _(e,t){let s;try{s=(new DOMParser).parseFromString(e,t)}catch{}if(!s||s.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return s}async function C(e,t,s){if(e.redoRequest)return e.redoRequest=!1,!1;const r=e.params.requestOptions;if(!t||"native"===r.responseType||"native-request-init"===r.responseType)return!0;let n,a;if(!t.ok)throw n=new Error(`Unable to load ${t.url} status: ${t.status}`),n[v]=s,n;s&&(s.error?n=s.error:"error"===s.status&&Array.isArray(s.messages)&&(n={...s},n[v]=s,n.details=s.messages));let o,l=null;n&&(a=Number(n.code),l=n.hasOwnProperty("subcode")?Number(n.subcode):null,o=n.messageCode,o=o&&o.toUpperCase());const u=r.authMode;if(403===a&&(4===l||n.message&&n.message.toLowerCase().includes("ssl")&&!n.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&void 0!==a&&y.includes(a)&&!I(e.params.url)&&(403!==a||o&&!x.includes(o)&&(null==l||2===l&&e.credentialToken))){await F();try{const t=await i.id.getCredential(e.params.url,{error:S("request:server",n,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;n=t}}if(n)throw n;return!0}function M(e,t,s=!1){const r=t.controller.signal,i=new Image;return t.withCredentials?i.crossOrigin="use-credentials":i.crossOrigin="anonymous",i.alt="",i.fetchPriority=m.priority,i.src=e,(0,h.fY)(i,e,s,r)}f._abortableFetch=null,f._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,s)=>{s.d(t,{r:()=>n});var r=s(17452);const i=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function n(e){const t=(0,r.P$)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!i.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,s)=>{s.d(t,{Hu:()=>u,fY:()=>o,jH:()=>c,jz:()=>d});var r=s(68773),i=s(80442),n=s(95330),a=s(17452);function o(e,t,s=!1,r){return new Promise(((a,o)=>{if((0,n.Hc)(r))return void o(l());let u=()=>{h(),o(new Error(`Unable to load ${t}`))},c=()=>{const t=e;h(),a(t)},d=()=>{if(!e)return;const t=e;h(),t.src="",o(l())};const h=()=>{(0,i.Z)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",c)),u=null,c=null,e=null,null!=r&&r.removeEventListener("abort",d),d=null,s&&URL.revokeObjectURL(t)};null!=r&&r.addEventListener("abort",d),(0,i.Z)("esri-image-decode")?e.decode().then(c,u):(e.addEventListener("error",u),e.addEventListener("load",c))}))}function l(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}function u(e){r.default.request.crossOriginNoCorsDomains||(r.default.request.crossOriginNoCorsDomains={});const t=r.default.request.crossOriginNoCorsDomains;for(let s of e)s=s.toLowerCase(),/^https?:\/\//.test(s)?t[(0,a.P$)(s)??""]=0:(t[(0,a.P$)("http://"+s)??""]=0,t[(0,a.P$)("https://"+s)??""]=0)}function c(e){const t=r.default.request.crossOriginNoCorsDomains;if(t){let s=(0,a.P$)(e);if(s)return s=s.toLowerCase(),!(0,a.D6)(s,(0,a.TI)())&&t[s]<Date.now()-36e5}return!1}async function d(e){const t=r.default.request.crossOriginNoCorsDomains,s=(0,a.P$)(e);t&&s&&(t[s.toLowerCase()]=Date.now());const i=(0,a.mN)(e);e=i.path,"json"===i.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);