@arcgis/core 5.1.0-next.19 → 5.1.0-next.20

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 (707) hide show
  1. package/assets/components/assets/carousel/t9n/messages.ar.json +1 -1
  2. package/assets/components/assets/carousel/t9n/messages.bg.json +1 -1
  3. package/assets/components/assets/carousel/t9n/messages.bs.json +1 -1
  4. package/assets/components/assets/carousel/t9n/messages.ca.json +1 -1
  5. package/assets/components/assets/carousel/t9n/messages.cs.json +1 -1
  6. package/assets/components/assets/carousel/t9n/messages.da.json +1 -1
  7. package/assets/components/assets/carousel/t9n/messages.de.json +1 -1
  8. package/assets/components/assets/carousel/t9n/messages.el.json +1 -1
  9. package/assets/components/assets/carousel/t9n/messages.es.json +1 -1
  10. package/assets/components/assets/carousel/t9n/messages.et.json +1 -1
  11. package/assets/components/assets/carousel/t9n/messages.fi.json +1 -1
  12. package/assets/components/assets/carousel/t9n/messages.fr.json +1 -1
  13. package/assets/components/assets/carousel/t9n/messages.he.json +1 -1
  14. package/assets/components/assets/carousel/t9n/messages.hr.json +1 -1
  15. package/assets/components/assets/carousel/t9n/messages.hu.json +1 -1
  16. package/assets/components/assets/carousel/t9n/messages.id.json +1 -1
  17. package/assets/components/assets/carousel/t9n/messages.it.json +1 -1
  18. package/assets/components/assets/carousel/t9n/messages.ja.json +1 -1
  19. package/assets/components/assets/carousel/t9n/messages.ko.json +1 -1
  20. package/assets/components/assets/carousel/t9n/messages.lt.json +1 -1
  21. package/assets/components/assets/carousel/t9n/messages.lv.json +1 -1
  22. package/assets/components/assets/carousel/t9n/messages.nl.json +1 -1
  23. package/assets/components/assets/carousel/t9n/messages.no.json +1 -1
  24. package/assets/components/assets/carousel/t9n/messages.pl.json +1 -1
  25. package/assets/components/assets/carousel/t9n/messages.pt-BR.json +1 -1
  26. package/assets/components/assets/carousel/t9n/messages.pt-PT.json +1 -1
  27. package/assets/components/assets/carousel/t9n/messages.ro.json +1 -1
  28. package/assets/components/assets/carousel/t9n/messages.ru.json +1 -1
  29. package/assets/components/assets/carousel/t9n/messages.sk.json +1 -1
  30. package/assets/components/assets/carousel/t9n/messages.sl.json +1 -1
  31. package/assets/components/assets/carousel/t9n/messages.sr.json +1 -1
  32. package/assets/components/assets/carousel/t9n/messages.sv.json +1 -1
  33. package/assets/components/assets/carousel/t9n/messages.th.json +1 -1
  34. package/assets/components/assets/carousel/t9n/messages.tr.json +1 -1
  35. package/assets/components/assets/carousel/t9n/messages.uk.json +1 -1
  36. package/assets/components/assets/carousel/t9n/messages.vi.json +1 -1
  37. package/assets/components/assets/carousel/t9n/messages.zh-CN.json +1 -1
  38. package/assets/components/assets/carousel/t9n/messages.zh-HK.json +1 -1
  39. package/assets/components/assets/carousel/t9n/messages.zh-TW.json +1 -1
  40. package/assets/esri/core/workers/RemoteClient.js +1 -1
  41. package/assets/esri/core/workers/chunks/0140dc583e20b031eac9.js +1 -0
  42. package/assets/esri/core/workers/chunks/018859b79f9ce7528ac7.js +1 -0
  43. package/assets/esri/core/workers/chunks/01dd849a2d335e9f3e16.js +1 -0
  44. package/assets/esri/core/workers/chunks/{6b3d8280a24f7a3aac40.js → 026c00ee272c64e53daf.js} +1 -1
  45. package/assets/esri/core/workers/chunks/02cab89336504e95ed99.js +1 -0
  46. package/assets/esri/core/workers/chunks/06df187a116709f69952.js +1 -0
  47. package/assets/esri/core/workers/chunks/0711c856144cd8700e7e.js +1 -0
  48. package/assets/esri/core/workers/chunks/0883c4e63424d6746ada.js +1 -0
  49. package/assets/esri/core/workers/chunks/0987cb20148f65222b44.js +1 -0
  50. package/assets/esri/core/workers/chunks/0a1f88cf16bcbb53b371.js +1 -0
  51. package/assets/esri/core/workers/chunks/0a66a2b4aaab0774c34f.js +1 -0
  52. package/assets/esri/core/workers/chunks/0bb3beedae1b73beb1fc.js +1 -0
  53. package/assets/esri/core/workers/chunks/0ca405ca26676137a4be.js +1 -0
  54. package/assets/esri/core/workers/chunks/0ce968c89c35535da63e.js +1 -0
  55. package/assets/esri/core/workers/chunks/0d56e3b3265a4470aaa6.js +1 -0
  56. package/assets/esri/core/workers/chunks/0debabe324c873066885.js +1 -0
  57. package/assets/esri/core/workers/chunks/0df585420c9cec6a7265.js +1 -0
  58. package/assets/esri/core/workers/chunks/0facd2c143a04cc7c4ff.js +1 -0
  59. package/assets/esri/core/workers/chunks/108d652a959e7de31cbf.js +1 -0
  60. package/assets/esri/core/workers/chunks/13d1cb50232ae761425b.js +2 -0
  61. package/assets/esri/core/workers/chunks/144c719d5ba9e3a30961.js +1 -0
  62. package/assets/esri/core/workers/chunks/1482262d0788ee65ddf7.js +1 -0
  63. package/assets/esri/core/workers/chunks/1503ca177e2466ec0e87.js +1 -0
  64. package/assets/esri/core/workers/chunks/1597d7b380d510ff5252.js +1 -0
  65. package/assets/esri/core/workers/chunks/15d7c9f5a55985ed00b4.js +1 -0
  66. package/assets/esri/core/workers/chunks/166652b7d69bf216d7a4.js +1 -0
  67. package/assets/esri/core/workers/chunks/179b3385c24ad8a05e1d.js +1 -0
  68. package/assets/esri/core/workers/chunks/{4f2c29168c9de0b08741.js → 1880c3b293cdfa804625.js} +1 -1
  69. package/assets/esri/core/workers/chunks/18a40606e4c39f244ecd.js +1 -0
  70. package/assets/esri/core/workers/chunks/190bc75254bc0542a6be.js +1 -0
  71. package/assets/esri/core/workers/chunks/1be4e308280149eae4fb.js +1 -0
  72. package/assets/esri/core/workers/chunks/1bea32b02d35ddb9b118.js +1 -0
  73. package/assets/esri/core/workers/chunks/1d0153c7d65bd9ea7d39.js +1 -0
  74. package/assets/esri/core/workers/chunks/1d697642fb2a6332b7f9.js +1 -0
  75. package/assets/esri/core/workers/chunks/1d78ec98eef7fef08f86.js +1 -0
  76. package/assets/esri/core/workers/chunks/1df8330823841b5bb6a5.js +1 -0
  77. package/assets/esri/core/workers/chunks/1e6062dc68c26fcf608f.js +1 -0
  78. package/assets/esri/core/workers/chunks/1e6271524602e159dbad.js +1 -0
  79. package/assets/esri/core/workers/chunks/1ee3d44e6d7add0b24cb.js +1 -0
  80. package/assets/esri/core/workers/chunks/1f54ed4a5238ba1a2551.js +1 -0
  81. package/assets/esri/core/workers/chunks/1f96d597ba736e088168.js +1 -0
  82. package/assets/esri/core/workers/chunks/1fa2bf0d6740092ec619.js +1 -0
  83. package/assets/esri/core/workers/chunks/210ef3f1cc6ef8a831bf.js +1 -0
  84. package/assets/esri/core/workers/chunks/23c856265dd24ce54fdb.js +1028 -0
  85. package/assets/esri/core/workers/chunks/241ef4a1bea20b49d812.js +1 -0
  86. package/assets/esri/core/workers/chunks/25bc7c7bc2793d209640.js +1 -0
  87. package/assets/esri/core/workers/chunks/2662750d5761ed2d0eb7.js +1 -0
  88. package/assets/esri/core/workers/chunks/26e41b08efe77d247409.js +1 -0
  89. package/assets/esri/core/workers/chunks/297b58f29c496923e1f3.js +1 -0
  90. package/assets/esri/core/workers/chunks/2a2a9fa62969644ea200.js +1 -0
  91. package/assets/esri/core/workers/chunks/2abb64323839367c9205.js +1 -0
  92. package/assets/esri/core/workers/chunks/2b296378d21e4e3c11d4.js +1 -0
  93. package/assets/esri/core/workers/chunks/2b76a8897ad7ba284d33.js +1 -0
  94. package/assets/esri/core/workers/chunks/2bd8bf6749d101d82d61.js +1 -0
  95. package/assets/esri/core/workers/chunks/2cbcf34cf896a438999b.js +1 -0
  96. package/assets/esri/core/workers/chunks/2ddb8bb00b3af83ebd7c.js +1 -0
  97. package/assets/esri/core/workers/chunks/2de299ff3a902d380be6.js +1 -0
  98. package/assets/esri/core/workers/chunks/2e06baf6469820697f17.js +1 -0
  99. package/assets/esri/core/workers/chunks/{531c55f3b8e708ccf767.js → 2f3aeaa25a76ab94b8e5.js} +1 -1
  100. package/assets/esri/core/workers/chunks/305b2a8dc6438c5fd4aa.js +1 -0
  101. package/assets/esri/core/workers/chunks/33de1d899a4fa9ab6ab1.js +1 -0
  102. package/assets/esri/core/workers/chunks/36da644678e6acf3bdb5.js +1 -0
  103. package/assets/esri/core/workers/chunks/3861644c06cfebe8f40c.js +2 -0
  104. package/assets/esri/core/workers/chunks/38d5dd4d457428244302.js +1 -0
  105. package/assets/esri/core/workers/chunks/394b645d51e7bf799382.js +1 -0
  106. package/assets/esri/core/workers/chunks/3a8320a40916c755c031.js +1 -0
  107. package/assets/esri/core/workers/chunks/3c2eb386c0165150e039.js +1 -0
  108. package/assets/esri/core/workers/chunks/3d0aa5f2db79c022243e.js +1 -0
  109. package/assets/esri/core/workers/chunks/3e26f9af6b8c75bad97a.js +1 -0
  110. package/assets/esri/core/workers/chunks/3ed7f19f77a11fa4d047.js +1 -0
  111. package/assets/esri/core/workers/chunks/3f812b0a28afb47aaaf0.js +2 -0
  112. package/assets/esri/core/workers/chunks/403060849a2573bbf110.js +1 -0
  113. package/assets/esri/core/workers/chunks/41a95ad470ec42ecd5a2.js +1 -0
  114. package/assets/esri/core/workers/chunks/43c8b1473695574c663e.js +2 -0
  115. package/assets/esri/core/workers/chunks/452d71789a1b77cff48d.js +1 -0
  116. package/assets/esri/core/workers/chunks/465cc0e00f03cdb640b2.js +1 -0
  117. package/assets/esri/core/workers/chunks/48a56b19bf825f05cc6e.js +1 -0
  118. package/assets/esri/core/workers/chunks/4d16b6ac52e25bd7e6aa.js +1 -0
  119. package/assets/esri/core/workers/chunks/4d7f7b1e7663cf6088d1.js +1 -0
  120. package/assets/esri/core/workers/chunks/50ab9a3f8bbb268fae59.js +1 -0
  121. package/assets/esri/core/workers/chunks/51ade971dda3ebe90f31.js +1 -0
  122. package/assets/esri/core/workers/chunks/{cbcb3530375e280bfeac.js → 53f8c1d56ef3b24d2226.js} +1 -1
  123. package/assets/esri/core/workers/chunks/544bfa97837770a8792f.js +1 -0
  124. package/assets/esri/core/workers/chunks/{ec63c0fa21cd3c872633.js → 54794b18edc584fd7515.js} +1 -1
  125. package/assets/esri/core/workers/chunks/561484ab6ed564e4b90f.js +1 -0
  126. package/assets/esri/core/workers/chunks/5690b49f355a5e2083a9.js +1 -0
  127. package/assets/esri/core/workers/chunks/56c7d7c7217557375fb6.js +1 -0
  128. package/assets/esri/core/workers/chunks/592f6bf0283152481f21.js +1 -0
  129. package/assets/esri/core/workers/chunks/5a6a6e7151085a3cd3dd.js +1 -0
  130. package/assets/esri/core/workers/chunks/5a6d6082c5bcb1a80eda.js +1 -0
  131. package/assets/esri/core/workers/chunks/5b2dd164dd84fd1ca4f7.js +1 -0
  132. package/assets/esri/core/workers/chunks/5b70ee8122262de5bbdf.js +1 -0
  133. package/assets/esri/core/workers/chunks/5b991b0d4ca257291cb0.js +1 -0
  134. package/assets/esri/core/workers/chunks/5e3019ba1b4c88977a19.js +1 -0
  135. package/assets/esri/core/workers/chunks/5e360f933da02d8d2455.js +1 -0
  136. package/assets/esri/core/workers/chunks/5e4ea6a2784eed1423f1.js +1 -0
  137. package/assets/esri/core/workers/chunks/5eb9fdb076488de9cd83.js +1 -0
  138. package/assets/esri/core/workers/chunks/5f6942ac94acd7842926.js +1 -0
  139. package/assets/esri/core/workers/chunks/601e44839fd46e449aa8.js +1 -0
  140. package/assets/esri/core/workers/chunks/62c228ca16fdc7a2c695.js +1 -0
  141. package/assets/esri/core/workers/chunks/639202a461b17840a13f.js +1 -0
  142. package/assets/esri/core/workers/chunks/63934843c9f4ef779a07.js +1 -0
  143. package/assets/esri/core/workers/chunks/63b5b57f27c7c6194d44.js +1 -0
  144. package/assets/esri/core/workers/chunks/{003019c2741aef2d1aa0.js → 65520a443e3811255bea.js} +1 -1
  145. package/assets/esri/core/workers/chunks/693d269637135047a0c4.js +1 -0
  146. package/assets/esri/core/workers/chunks/{36215b2c0b1020743458.js → 6a14ec2d2de6778a4e7a.js} +1 -1
  147. package/assets/esri/core/workers/chunks/6ac84e6d33104e74398d.js +1 -0
  148. package/assets/esri/core/workers/chunks/6cdda5aa35fa12ea9345.js +1 -0
  149. package/assets/esri/core/workers/chunks/6d3467997b5d01630b08.js +1 -0
  150. package/assets/esri/core/workers/chunks/6dfcb0c804e63e87e311.js +1 -0
  151. package/assets/esri/core/workers/chunks/6f079f1fd6d00d2d174c.js +1 -0
  152. package/assets/esri/core/workers/chunks/6fde745f3a62e7f5a97d.js +1 -0
  153. package/assets/esri/core/workers/chunks/70263c2182dc43046742.js +1 -0
  154. package/assets/esri/core/workers/chunks/72cd450b24fdfcef6547.js +1 -0
  155. package/assets/esri/core/workers/chunks/7386a61f9610b8e5c608.js +1 -0
  156. package/assets/esri/core/workers/chunks/73e02f6c7ccc2013c812.js +1 -0
  157. package/assets/esri/core/workers/chunks/73e384fd93cf22503d84.js +1 -0
  158. package/assets/esri/core/workers/chunks/74a6d840813ac29b0bda.js +1 -0
  159. package/assets/esri/core/workers/chunks/{f6aa34577c5fab8cc1f5.js → 74e3c224e879edb37812.js} +1 -1
  160. package/assets/esri/core/workers/chunks/75664587bb80f4e187e1.js +1 -0
  161. package/assets/esri/core/workers/chunks/75fd96fd9557ac1f8e10.js +1 -0
  162. package/assets/esri/core/workers/chunks/7642905920e169a147f3.js +1 -0
  163. package/assets/esri/core/workers/chunks/764d080f77dec5e7a02c.js +1 -0
  164. package/assets/esri/core/workers/chunks/777b0e07f72c42470d36.js +1 -0
  165. package/assets/esri/core/workers/chunks/7873ee080c175d17a444.js +1 -0
  166. package/assets/esri/core/workers/chunks/7975abb2162a82c88edb.js +1 -0
  167. package/assets/esri/core/workers/chunks/7a2dd3d85d31dce29d94.js +1 -0
  168. package/assets/esri/core/workers/chunks/7b297a2f712361bfae2e.js +1 -0
  169. package/assets/esri/core/workers/chunks/7cec3252e3ee56424b9e.js +1 -0
  170. package/assets/esri/core/workers/chunks/7d274a077bdfa8c485e8.js +1 -0
  171. package/assets/esri/core/workers/chunks/7dd1e93469d0b1d652bc.js +1 -0
  172. package/assets/esri/core/workers/chunks/8012fdc49a7a10982f78.js +1 -0
  173. package/assets/esri/core/workers/chunks/835a929e37811d0f82cb.js +1 -0
  174. package/assets/esri/core/workers/chunks/835d6dd8c5a00682d879.js +1 -0
  175. package/assets/esri/core/workers/chunks/83d913dab3c2b0d6a7cc.js +1 -0
  176. package/assets/esri/core/workers/chunks/854fe80272b59fafc2e9.js +1 -0
  177. package/assets/esri/core/workers/chunks/85e0fd618625a639387f.js +1 -0
  178. package/assets/esri/core/workers/chunks/85f309c1888c1c8411b1.js +1 -0
  179. package/assets/esri/core/workers/chunks/86161025b53b916328ff.js +1 -0
  180. package/assets/esri/core/workers/chunks/861817be5e050e9522ab.js +1 -0
  181. package/assets/esri/core/workers/chunks/86465d4bb185d7460087.js +1 -0
  182. package/assets/esri/core/workers/chunks/87e7378b242debbfd575.js +1 -0
  183. package/assets/esri/core/workers/chunks/8838ff9668b472af16a1.js +1 -0
  184. package/assets/esri/core/workers/chunks/889835e61ea97f090082.js +1 -0
  185. package/assets/esri/core/workers/chunks/8aabc71d7f15c4407d7d.js +1 -0
  186. package/assets/esri/core/workers/chunks/8c2e5b116bac21e7d577.js +1 -0
  187. package/assets/esri/core/workers/chunks/8cf58806671ed491a456.js +1 -0
  188. package/assets/esri/core/workers/chunks/8d1d0c3f0532aa98487d.js +1 -0
  189. package/assets/esri/core/workers/chunks/8d6da6573d07385f4ed5.js +1 -0
  190. package/assets/esri/core/workers/chunks/90b19e60c056f32623e7.js +1 -0
  191. package/assets/esri/core/workers/chunks/91718795fc4ca6516ac7.js +1 -0
  192. package/assets/esri/core/workers/chunks/91e56959b2fddf1a9743.js +1 -0
  193. package/assets/esri/core/workers/chunks/925980d26d71987ac80c.js +1 -0
  194. package/assets/esri/core/workers/chunks/93515f52d9b5fa12bd04.js +1 -0
  195. package/assets/esri/core/workers/chunks/9461f7225c42cf15a114.js +1 -0
  196. package/assets/esri/core/workers/chunks/946698d9cefffdb63082.js +1 -0
  197. package/assets/esri/core/workers/chunks/978649cb6df99ee728be.js +1 -0
  198. package/assets/esri/core/workers/chunks/99101789035f1787c630.js +1 -0
  199. package/assets/esri/core/workers/chunks/9a2b1f0ca66c1b87c830.js +1 -0
  200. package/assets/esri/core/workers/chunks/9c6e96b1c2b0418a4f1c.js +1 -0
  201. package/assets/esri/core/workers/chunks/9f1f5fb648302c43ad12.js +1 -0
  202. package/assets/esri/core/workers/chunks/9f5f4da954228d876219.js +1 -0
  203. package/assets/esri/core/workers/chunks/a010fc1123bc0eeda478.js +1 -0
  204. package/assets/esri/core/workers/chunks/a1a12552d34ea9eea130.js +1 -0
  205. package/assets/esri/core/workers/chunks/a2323c957c8b2fe225b4.js +1 -0
  206. package/assets/esri/core/workers/chunks/a34e3c6da7d98569c052.js +1 -0
  207. package/assets/esri/core/workers/chunks/a36a33f43610c3cd985b.js +1 -0
  208. package/assets/esri/core/workers/chunks/a381932eef77f4d80292.js +1 -0
  209. package/assets/esri/core/workers/chunks/a495e60996a36ce19a32.js +1 -0
  210. package/assets/esri/core/workers/chunks/a53fa34681efff8fc024.js +1 -0
  211. package/assets/esri/core/workers/chunks/a7a9716582b256d76e5b.js +1 -0
  212. package/assets/esri/core/workers/chunks/a96c7432ca97cbeef4b8.js +1 -0
  213. package/assets/esri/core/workers/chunks/{ec0fcb1834c88090e7af.js → aa60f735ccd39cedef7e.js} +1 -1
  214. package/assets/esri/core/workers/chunks/aa9c11f25d95372998a3.js +1 -0
  215. package/assets/esri/core/workers/chunks/{128cdb4a02549abc68b5.js → aec33bdb355bd04f28ae.js} +1 -1
  216. package/assets/esri/core/workers/chunks/aece665144aed2065ffc.js +1 -0
  217. package/assets/esri/core/workers/chunks/af75e91b88e747aa76ac.js +1 -0
  218. package/assets/esri/core/workers/chunks/b089947c9a492c96ca27.js +1 -0
  219. package/assets/esri/core/workers/chunks/b35ea099334c867bde02.js +1 -0
  220. package/assets/esri/core/workers/chunks/b553264db0f10bb8c5f7.js +1 -0
  221. package/assets/esri/core/workers/chunks/b586f1021a27c5e1551a.js +2 -0
  222. package/assets/esri/core/workers/chunks/{236f8137ae505c8f0764.js → b65550b2f685ba760b2c.js} +1 -1
  223. package/assets/esri/core/workers/chunks/b6e4c35b76379088035c.js +1 -0
  224. package/assets/esri/core/workers/chunks/b730131e52f9220db031.js +1 -0
  225. package/assets/esri/core/workers/chunks/{9332db133a0925d522fe.js → b8b2f160518e3a225d99.js} +1 -1
  226. package/assets/esri/core/workers/chunks/bbf2afa05314e267893f.js +1 -0
  227. package/assets/esri/core/workers/chunks/bc982142e61598bd367c.js +1 -0
  228. package/assets/esri/core/workers/chunks/bcd701892ee120e13a18.js +1 -0
  229. package/assets/esri/core/workers/chunks/bd278f8081be8304be8d.js +1 -0
  230. package/assets/esri/core/workers/chunks/bd2f577cae61facdde4a.js +1 -0
  231. package/assets/esri/core/workers/chunks/c1a26956713262cb3cb3.js +1 -0
  232. package/assets/esri/core/workers/chunks/c1dc14b07282474a7c2d.js +1 -0
  233. package/assets/esri/core/workers/chunks/c327fe276238af60fda4.js +1 -0
  234. package/assets/esri/core/workers/chunks/c4a78ab84186c7be599a.js +1 -0
  235. package/assets/esri/core/workers/chunks/c4dc60617152d885f3da.js +1 -0
  236. package/assets/esri/core/workers/chunks/c6d5f6cfbb31a3fd11ff.js +1 -0
  237. package/assets/esri/core/workers/chunks/c7f27a84268a9b0d8cdb.js +1 -0
  238. package/assets/esri/core/workers/chunks/c80c6e60c87c3e5f5e62.js +1 -0
  239. package/assets/esri/core/workers/chunks/c91993503de5faa404f0.js +1 -0
  240. package/assets/esri/core/workers/chunks/c9a42d86185a0ad35dd1.js +1 -0
  241. package/assets/esri/core/workers/chunks/c9d600dc6b6b5aafff1c.js +1 -0
  242. package/assets/esri/core/workers/chunks/ca33847a997ccfe8ddc2.js +1 -0
  243. package/assets/esri/core/workers/chunks/ca64867bc322a354be8e.js +1 -0
  244. package/assets/esri/core/workers/chunks/cb6a7ca4ba2cf0b5ced7.js +1 -0
  245. package/assets/esri/core/workers/chunks/cc3939983cf6f78f7243.js +1 -0
  246. package/assets/esri/core/workers/chunks/cca19c9564be2d02a277.js +1 -0
  247. package/assets/esri/core/workers/chunks/ccc2f2b3db008d8a495f.js +1 -0
  248. package/assets/esri/core/workers/chunks/cce2ea441adb47d15a06.js +1 -0
  249. package/assets/esri/core/workers/chunks/ce063df750018024c9ed.js +1 -0
  250. package/assets/esri/core/workers/chunks/ce3e192fbb53a9c6eb3b.js +1 -0
  251. package/assets/esri/core/workers/chunks/d3734c8de029f1a65315.js +1 -0
  252. package/assets/esri/core/workers/chunks/d7229019876c0e4ff545.js +1 -0
  253. package/assets/esri/core/workers/chunks/d72d5031887373d35610.js +1 -0
  254. package/assets/esri/core/workers/chunks/d7840c3e792efcccee35.js +1 -0
  255. package/assets/esri/core/workers/chunks/d9f900975ac915a0f24f.js +1 -0
  256. package/assets/esri/core/workers/chunks/da780342f16e65b55ac8.js +1 -0
  257. package/assets/esri/core/workers/chunks/db005d9419bb718b3962.js +1 -0
  258. package/assets/esri/core/workers/chunks/db5bbc240a1b8cd5af52.js +1 -0
  259. package/assets/esri/core/workers/chunks/dcc8363faa22e6211351.js +1 -0
  260. package/assets/esri/core/workers/chunks/dcef87f7d06c45cd928b.js +1 -0
  261. package/assets/esri/core/workers/chunks/dd5d66f067e2386e0514.js +1 -0
  262. package/assets/esri/core/workers/chunks/dd6efa0afe879bd11a2e.js +1 -0
  263. package/assets/esri/core/workers/chunks/deaca3cd202851ecf9c2.js +1 -0
  264. package/assets/esri/core/workers/chunks/df321c37b61099f6e4c2.js +1 -0
  265. package/assets/esri/core/workers/chunks/e021b2f0e15aee5bf3ad.js +1 -0
  266. package/assets/esri/core/workers/chunks/e0344b45af88081fa186.js +1 -0
  267. package/assets/esri/core/workers/chunks/{77fc225259f1c5800095.js → e2661d39c48376163adf.js} +1 -1
  268. package/assets/esri/core/workers/chunks/e2bdb0e87422e222646e.js +1 -0
  269. package/assets/esri/core/workers/chunks/e3fe1db9380633292b27.js +1 -0
  270. package/assets/esri/core/workers/chunks/e67bdd8bf38ebe89a344.js +1 -0
  271. package/assets/esri/core/workers/chunks/e6f51f66b71e0d6525ec.js +1 -0
  272. package/assets/esri/core/workers/chunks/e7bee85f28d7ec03825a.js +1 -0
  273. package/assets/esri/core/workers/chunks/e8495c655a0a4f534636.js +1 -0
  274. package/assets/esri/core/workers/chunks/e9dd60d0220036545ebb.js +1 -0
  275. package/assets/esri/core/workers/chunks/ea245d3a6fd601fffd88.js +1 -0
  276. package/assets/esri/core/workers/chunks/eb4ffb72c9360062141c.js +1 -0
  277. package/assets/esri/core/workers/chunks/ebae903845643d60b44a.js +1 -0
  278. package/assets/esri/core/workers/chunks/ebb0372e8da0f75c09dd.js +1 -0
  279. package/assets/esri/core/workers/chunks/eef102e13fd8878eeb96.js +1 -0
  280. package/assets/esri/core/workers/chunks/ef267b938327c41727c1.js +1 -0
  281. package/assets/esri/core/workers/chunks/ef72f4822284bcad75d8.js +1 -0
  282. package/assets/esri/core/workers/chunks/efb2a8879011d2d77a81.js +1 -0
  283. package/assets/esri/core/workers/chunks/f0e6a26a3625068b08ab.js +1 -0
  284. package/assets/esri/core/workers/chunks/f12f96770a45ce6d1ed7.js +1 -0
  285. package/assets/esri/core/workers/chunks/f349f64f683620bdf9b5.js +30 -0
  286. package/assets/esri/core/workers/chunks/f379f94adbe79dc305a2.js +1 -0
  287. package/assets/esri/core/workers/chunks/f4301ea9a6cb3bcef906.js +1 -0
  288. package/assets/esri/core/workers/chunks/f5144e570952ca62a1b0.js +1 -0
  289. package/assets/esri/core/workers/chunks/f5cebeaad3e7d87d7997.js +1 -0
  290. package/assets/esri/core/workers/chunks/f6c9742691ccdaed44a2.js +1 -0
  291. package/assets/esri/core/workers/chunks/f76c2b09e6ba9d107898.js +1 -0
  292. package/assets/esri/core/workers/chunks/f7d67b7c9785a1955b17.js +1 -0
  293. package/assets/esri/core/workers/chunks/faad127dc07e54e7f6d1.js +1 -0
  294. package/assets/esri/core/workers/chunks/fcf962f3dec6b5440983.js +1 -0
  295. package/assets/esri/core/workers/chunks/feececf6809231f72c5a.js +1 -0
  296. package/chunks/Compositing.glsl.js +3 -4
  297. package/chunks/OITBlend.glsl.js +8 -7
  298. package/config.d.ts +94 -34
  299. package/config.js +1 -1
  300. package/core/SetUtils.js +1 -1
  301. package/geometry/support/curves/curveUtils.js +1 -1
  302. package/identity/IdentityManager.d.ts +11 -7
  303. package/identity/IdentityManagerBase.d.ts +13 -9
  304. package/kernel.js +1 -1
  305. package/layers/SubtypeGroupLayer.d.ts +0 -1
  306. package/layers/support/EditingCapabilities.js +1 -1
  307. package/layers/support/SubtypeSublayer.js +1 -1
  308. package/package.json +4 -4
  309. package/rest/query/operations/pbfFlatFeatureSet.js +1 -1
  310. package/smartMapping/raster/renderers/classBreaks.d.ts +1 -1
  311. package/smartMapping/raster/renderers/flow.d.ts +2 -1
  312. package/smartMapping/renderers/color.d.ts +19 -3
  313. package/smartMapping/renderers/dotDensity.d.ts +6 -1
  314. package/smartMapping/renderers/heatmap.d.ts +4 -1
  315. package/smartMapping/renderers/location.d.ts +2 -2
  316. package/smartMapping/renderers/opacity.d.ts +2 -2
  317. package/smartMapping/renderers/pieChart.d.ts +2 -2
  318. package/smartMapping/renderers/predominance.d.ts +2 -2
  319. package/smartMapping/renderers/relationship.d.ts +2 -2
  320. package/smartMapping/renderers/size.d.ts +7 -6
  321. package/smartMapping/renderers/support/rendererUtils.d.ts +2 -2
  322. package/smartMapping/renderers/type.d.ts +4 -3
  323. package/smartMapping/renderers/univariateColorSize.d.ts +2 -2
  324. package/smartMapping/statistics/support/ageUtils.d.ts +3 -2
  325. package/smartMapping/statistics/types.d.ts +8 -7
  326. package/smartMapping/support/adapters/types.d.ts +6 -0
  327. package/smartMapping/symbology/color.d.ts +1 -1
  328. package/smartMapping/symbology/support/colorRamps.d.ts +2 -2
  329. package/smartMapping/symbology/support/colorRamps.js +1 -1
  330. package/support/revision.js +1 -1
  331. package/symbols/support/OccludedVisibility.d.ts +1 -1
  332. package/symbols/support/OccludedVisibility.js +1 -1
  333. package/symbols/support/Symbol3DEmissive.d.ts +33 -17
  334. package/views/2d/engine/webgl/MaterialManager.js +1 -1
  335. package/views/2d/engine/webgl/brushes/BrushClip.js +1 -1
  336. package/views/2d/engine/webgl/brushes/WGLBrushStencil.js +1 -1
  337. package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
  338. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  339. package/views/2d/interactive/SnappingVisualizer2D.js +1 -1
  340. package/views/2d/layers/graphics/GraphicBoundsRenderer.js +1 -1
  341. package/views/2d/webglDeps.js +1 -1
  342. package/views/3d/environment/CloudsComposition.js +1 -1
  343. package/views/3d/environment/CloudsTechnique.js +1 -1
  344. package/views/3d/environment/Fog.js +1 -1
  345. package/views/3d/environment/FogTechnique.js +1 -1
  346. package/views/3d/environment/NoiseTextureAtlasTechnique.js +1 -1
  347. package/views/3d/environment/PrecipitationTechnique.js +1 -1
  348. package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
  349. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  350. package/views/3d/layers/graphics/GraphicStateTracking.js +1 -1
  351. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  352. package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
  353. package/views/3d/layers/graphics/GraphicsDeconflictor.js +1 -1
  354. package/views/3d/terrain/BlendLayersTechnique.js +1 -1
  355. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  356. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  357. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
  358. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
  359. package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
  360. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  361. package/views/3d/webgl-engine/effects/glow/GlowBlurTechnique.js +1 -1
  362. package/views/3d/webgl-engine/effects/glow/GlowCompositionTechnique.js +1 -1
  363. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  364. package/views/3d/webgl-engine/effects/haze/HazeCompositingTechnique.js +1 -1
  365. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  366. package/views/3d/webgl-engine/effects/highlight/HighlightApplyTechnique.js +1 -1
  367. package/views/3d/webgl-engine/effects/highlight/HighlightBlurTechnique.js +1 -1
  368. package/views/3d/webgl-engine/effects/highlight/HighlightDownsampleTechnique.js +1 -1
  369. package/views/3d/webgl-engine/effects/highlight/HighlightToSingleTechnique.js +1 -1
  370. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  371. package/views/3d/webgl-engine/effects/highlight/ShadowHighlightTechnique.js +1 -1
  372. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  373. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechnique.js +1 -1
  374. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  375. package/views/3d/webgl-engine/effects/smaa/SMAABlendWeightsTechnique.js +1 -1
  376. package/views/3d/webgl-engine/effects/smaa/SMAABlurTechnique.js +1 -1
  377. package/views/3d/webgl-engine/effects/smaa/SMAAEdgeDetectTechnique.js +1 -1
  378. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  379. package/views/3d/webgl-engine/effects/ssao/SSAOBlurTechnique.js +1 -1
  380. package/views/3d/webgl-engine/effects/stars/StarsTechnique.js +1 -1
  381. package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
  382. package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +1 -1
  383. package/views/3d/webgl-engine/effects/transparency/OITBlendTechniqueConfiguration.js +1 -1
  384. package/views/3d/webgl-engine/effects/transparency/OITDimTechnique.js +1 -1
  385. package/views/3d/webgl-engine/lib/Compositor.js +2 -0
  386. package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
  387. package/views/3d/webgl-engine/lib/Program.js +1 -1
  388. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  389. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  390. package/views/3d/webgl-engine/materials/renderers/MergedBuffer.js +1 -1
  391. package/views/3d/webgl-engine/materials/renderers/PerBufferData.js +1 -1
  392. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  393. package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
  394. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  395. package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
  396. package/views/3d/webgl-engine/shaders/CompositingTechniqueConfiguration.js +1 -1
  397. package/views/3d/webgl-engine/shaders/CutFillCompositionTechnique.js +1 -1
  398. package/views/3d/webgl-engine/shaders/CutFillDepthTechnique.js +1 -1
  399. package/views/3d/webgl-engine/shaders/CutFillMaskTechnique.js +1 -1
  400. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  401. package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
  402. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  403. package/views/3d/webgl-engine/shaders/OverlayCompositingTechnique.js +1 -1
  404. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  405. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  406. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +1 -1
  407. package/views/3d/webgl-engine/shaders/ShadowCastClearTechnique.js +1 -1
  408. package/views/3d/webgl-engine/shaders/TerrainTechnique.js +1 -1
  409. package/views/View.d.ts +8 -0
  410. package/views/draw/DrawTool.js +1 -1
  411. package/views/draw/plugins/PolygonPlugin.js +1 -1
  412. package/views/draw/support/InteractiveHandle.js +1 -1
  413. package/views/draw/support/managers/InteractiveHandleManager.js +1 -1
  414. package/views/draw/support/managers/TooltipManager.js +1 -1
  415. package/views/interactive/sketch/constraints.js +1 -1
  416. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  417. package/views/interactive/snapping/SnappingVisualizer.js +1 -1
  418. package/views/interactive/snapping/candidates/EdgeSnappingCandidate.js +1 -1
  419. package/views/interactive/snapping/featureSources/queryEngineUtils.js +1 -1
  420. package/views/interactive/snapping/hints/CurveSnappingHint.js +2 -0
  421. package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
  422. package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
  423. package/views/support/imageReprojection.js +1 -1
  424. package/views/webgl/AllocationTracer.js +1 -1
  425. package/views/webgl/AppleAmdDriverHelper.js +1 -1
  426. package/views/webgl/Program.js +1 -1
  427. package/views/webgl/ProgramCache.js +1 -1
  428. package/views/webgl/ProgramTemplate.js +1 -1
  429. package/views/webgl/RenderingContext.js +1 -1
  430. package/views/webgl/WebGLDriverTestModule.js +1 -1
  431. package/views/webgl/testAppleAmdDrawArrays.js +1 -1
  432. package/views/webgl/testFloatBufferBlend.js +1 -1
  433. package/views/webgl/testSVGPremultipliedAlpha.js +1 -1
  434. package/webscene/Glow.d.ts +19 -14
  435. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  436. package/widgets/Editor/CreateFeaturesWorkflowData.js +1 -1
  437. package/widgets/Editor/EditorViewModel.d.ts +15 -4
  438. package/widgets/Editor/EditorViewModel.js +1 -1
  439. package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
  440. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  441. package/widgets/Editor/UpdateFeatureWorkflowData.js +1 -1
  442. package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
  443. package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
  444. package/widgets/Editor/UpdateRecordWorkflowData.js +1 -1
  445. package/widgets/Editor/UpdateWorkflow.js +1 -1
  446. package/widgets/Editor/Workflow.js +1 -1
  447. package/widgets/Editor/components/Notices.js +1 -1
  448. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  449. package/widgets/Editor/support/EditorItem.js +1 -1
  450. package/widgets/Editor/support/SketchController.js +1 -1
  451. package/widgets/Editor/workflowUtils.js +1 -1
  452. package/widgets/Editor.d.ts +17 -5
  453. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +17 -5
  454. package/widgets/FeatureTable.d.ts +16 -4
  455. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.d.ts +9 -1
  456. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  457. package/widgets/OrientedImageryViewer.d.ts +9 -1
  458. package/widgets/OrientedImageryViewer.js +1 -1
  459. package/widgets/Sketch/support/PluginManager.js +1 -1
  460. package/assets/esri/core/workers/chunks/00bb90a3f0560800279b.js +0 -1
  461. package/assets/esri/core/workers/chunks/02d862fe58670c1f4722.js +0 -1
  462. package/assets/esri/core/workers/chunks/033b4f9ca08791e0c001.js +0 -1
  463. package/assets/esri/core/workers/chunks/045e4e520d6dffe06ba7.js +0 -1
  464. package/assets/esri/core/workers/chunks/04f82b740325e3388d23.js +0 -1
  465. package/assets/esri/core/workers/chunks/05d6cd51ca970705e46a.js +0 -1
  466. package/assets/esri/core/workers/chunks/08d73543c713984f6ecf.js +0 -1028
  467. package/assets/esri/core/workers/chunks/0b59e5be22139387bd84.js +0 -1
  468. package/assets/esri/core/workers/chunks/0e1d559d05229ef92e35.js +0 -1
  469. package/assets/esri/core/workers/chunks/0e6ffb02a929130ddb50.js +0 -1
  470. package/assets/esri/core/workers/chunks/112227b862b935123ddf.js +0 -2
  471. package/assets/esri/core/workers/chunks/11882cbb28710e5f9fc5.js +0 -1
  472. package/assets/esri/core/workers/chunks/12cfe900ce04af22f162.js +0 -1
  473. package/assets/esri/core/workers/chunks/1336f685bae5f1251558.js +0 -1
  474. package/assets/esri/core/workers/chunks/13512a23655258fa77f4.js +0 -1
  475. package/assets/esri/core/workers/chunks/13da9e3b96d8f653cbad.js +0 -1
  476. package/assets/esri/core/workers/chunks/1469e6d1d0d4e310b8f8.js +0 -1
  477. package/assets/esri/core/workers/chunks/15d46482ec096e3ce161.js +0 -1
  478. package/assets/esri/core/workers/chunks/1757133063fac226fdd4.js +0 -1
  479. package/assets/esri/core/workers/chunks/1794db88a2006711eff3.js +0 -1
  480. package/assets/esri/core/workers/chunks/189e22df73414a1a3989.js +0 -1
  481. package/assets/esri/core/workers/chunks/1951ff6789b9a598f122.js +0 -1
  482. package/assets/esri/core/workers/chunks/1ba756289468064f6204.js +0 -1
  483. package/assets/esri/core/workers/chunks/1cfa8d404d42b9eccf78.js +0 -1
  484. package/assets/esri/core/workers/chunks/1e916e552ce7d53692d2.js +0 -1
  485. package/assets/esri/core/workers/chunks/1fb6b65d8fd21fb9a21e.js +0 -1
  486. package/assets/esri/core/workers/chunks/2011da6dfc4bb89829c6.js +0 -1
  487. package/assets/esri/core/workers/chunks/203ef5459fc5dde12851.js +0 -1
  488. package/assets/esri/core/workers/chunks/215c54520d0da638fe57.js +0 -1
  489. package/assets/esri/core/workers/chunks/22045f85e503ae0ec8f4.js +0 -1
  490. package/assets/esri/core/workers/chunks/2351b713ba3d05de0728.js +0 -1
  491. package/assets/esri/core/workers/chunks/249630af2fb01257eb75.js +0 -1
  492. package/assets/esri/core/workers/chunks/24dd404612c35f6a3fc3.js +0 -1
  493. package/assets/esri/core/workers/chunks/25d34552bfb255af9467.js +0 -1
  494. package/assets/esri/core/workers/chunks/27c34a73fb380fc57f6e.js +0 -1
  495. package/assets/esri/core/workers/chunks/27d60fd727e9a68973f6.js +0 -1
  496. package/assets/esri/core/workers/chunks/27e14277128446e76b45.js +0 -1
  497. package/assets/esri/core/workers/chunks/2a3e82a230b7ee4dfd55.js +0 -1
  498. package/assets/esri/core/workers/chunks/2c69d8bb1c950b95278d.js +0 -1
  499. package/assets/esri/core/workers/chunks/2c6dbb9a8d7cc35f5093.js +0 -1
  500. package/assets/esri/core/workers/chunks/2d376f82cdf020e1fca9.js +0 -1
  501. package/assets/esri/core/workers/chunks/2d67ab4927a968d5c8d4.js +0 -1
  502. package/assets/esri/core/workers/chunks/2e50b7651f8c037bb3b0.js +0 -1
  503. package/assets/esri/core/workers/chunks/2e63e18df96e5a2461de.js +0 -1
  504. package/assets/esri/core/workers/chunks/2e82e284bbb3ff769a0b.js +0 -1
  505. package/assets/esri/core/workers/chunks/31184dc458281af654c7.js +0 -1
  506. package/assets/esri/core/workers/chunks/3214763f268622f09986.js +0 -1
  507. package/assets/esri/core/workers/chunks/32a1ccc145c9f6091e13.js +0 -1
  508. package/assets/esri/core/workers/chunks/34691b147318b2cfdd45.js +0 -1
  509. package/assets/esri/core/workers/chunks/34b367f617a7b3db55e0.js +0 -1
  510. package/assets/esri/core/workers/chunks/37d4a0b941bb2a7f113a.js +0 -1
  511. package/assets/esri/core/workers/chunks/3875b075ffaa1ed0089f.js +0 -1
  512. package/assets/esri/core/workers/chunks/3d3b1ce112be6ea31d93.js +0 -1
  513. package/assets/esri/core/workers/chunks/3dfc088a2c5289e6c79f.js +0 -1
  514. package/assets/esri/core/workers/chunks/3f3c63420644f9522ab1.js +0 -1
  515. package/assets/esri/core/workers/chunks/3fcab49eb215a477d8c4.js +0 -1
  516. package/assets/esri/core/workers/chunks/41108f58f0f439ebba3f.js +0 -1
  517. package/assets/esri/core/workers/chunks/415957a42e45eb21aa84.js +0 -1
  518. package/assets/esri/core/workers/chunks/4375d046b041a770c871.js +0 -1
  519. package/assets/esri/core/workers/chunks/43c797bfc2191b51875b.js +0 -1
  520. package/assets/esri/core/workers/chunks/460a82f3e4838b13e3b4.js +0 -1
  521. package/assets/esri/core/workers/chunks/473e43a74f56cb9bfe65.js +0 -1
  522. package/assets/esri/core/workers/chunks/4801e48cd4a14bacab78.js +0 -1
  523. package/assets/esri/core/workers/chunks/499d594dc0d282dfe777.js +0 -1
  524. package/assets/esri/core/workers/chunks/4ad6f80488aa218b95e3.js +0 -1
  525. package/assets/esri/core/workers/chunks/4db259316b193fcc4541.js +0 -1
  526. package/assets/esri/core/workers/chunks/4e9863a11d09900baf30.js +0 -1
  527. package/assets/esri/core/workers/chunks/4fe210314813ea1f7a26.js +0 -1
  528. package/assets/esri/core/workers/chunks/51603e99469847aa3ac4.js +0 -1
  529. package/assets/esri/core/workers/chunks/52705ccbb452a3edb064.js +0 -1
  530. package/assets/esri/core/workers/chunks/53e348f5585fa8c53fe8.js +0 -2
  531. package/assets/esri/core/workers/chunks/54c545f44b7ce21fb604.js +0 -1
  532. package/assets/esri/core/workers/chunks/54db2d2418721e92fbb0.js +0 -1
  533. package/assets/esri/core/workers/chunks/552e5c413828e181f89a.js +0 -1
  534. package/assets/esri/core/workers/chunks/558e9fed2e58cbbf9947.js +0 -1
  535. package/assets/esri/core/workers/chunks/55c5c4fcec0f8c4d59b2.js +0 -1
  536. package/assets/esri/core/workers/chunks/58134617fb7530836b81.js +0 -1
  537. package/assets/esri/core/workers/chunks/58c4be467a922fe37f01.js +0 -1
  538. package/assets/esri/core/workers/chunks/5924fe7de9f5ff8984ad.js +0 -1
  539. package/assets/esri/core/workers/chunks/5cd39bb8123adc80d8a7.js +0 -1
  540. package/assets/esri/core/workers/chunks/5cd8bbb719d95cb32cab.js +0 -1
  541. package/assets/esri/core/workers/chunks/5dba08099036e69e0a04.js +0 -1
  542. package/assets/esri/core/workers/chunks/5eb5d3b2329ec648cf3f.js +0 -1
  543. package/assets/esri/core/workers/chunks/5f10f39835cb40179000.js +0 -1
  544. package/assets/esri/core/workers/chunks/5f9eeab833a6c08c76c4.js +0 -1
  545. package/assets/esri/core/workers/chunks/606b4f1be91905a10bdb.js +0 -1
  546. package/assets/esri/core/workers/chunks/628056a312d919e98fa3.js +0 -1
  547. package/assets/esri/core/workers/chunks/62e9a9821f1563515ab4.js +0 -1
  548. package/assets/esri/core/workers/chunks/639302042c30e4265694.js +0 -1
  549. package/assets/esri/core/workers/chunks/645e086291b04bc036d7.js +0 -1
  550. package/assets/esri/core/workers/chunks/651b46aeabf22ff53a38.js +0 -1
  551. package/assets/esri/core/workers/chunks/65ad8838911a6d71816b.js +0 -1
  552. package/assets/esri/core/workers/chunks/65f86594c42ff82095fe.js +0 -1
  553. package/assets/esri/core/workers/chunks/6772468d1721d6d2a529.js +0 -1
  554. package/assets/esri/core/workers/chunks/677f5e444ff588ab670f.js +0 -1
  555. package/assets/esri/core/workers/chunks/6869f975d42b5a2936e2.js +0 -1
  556. package/assets/esri/core/workers/chunks/69ab42b965bccc3bad4f.js +0 -1
  557. package/assets/esri/core/workers/chunks/6a083fde0e207625fd0b.js +0 -1
  558. package/assets/esri/core/workers/chunks/6a9a96aa811c1d3b6edb.js +0 -1
  559. package/assets/esri/core/workers/chunks/6b3494e5a32912ee6325.js +0 -1
  560. package/assets/esri/core/workers/chunks/6b5d2cef309a2581d0d1.js +0 -1
  561. package/assets/esri/core/workers/chunks/6bf7d8de86b9eb76f920.js +0 -1
  562. package/assets/esri/core/workers/chunks/6c0b7890c8eec7febe28.js +0 -1
  563. package/assets/esri/core/workers/chunks/6c85396c90941a042c33.js +0 -1
  564. package/assets/esri/core/workers/chunks/6d02fdcaa1559b741f89.js +0 -1
  565. package/assets/esri/core/workers/chunks/6f337c3ccd84d90a35e5.js +0 -1
  566. package/assets/esri/core/workers/chunks/71159f66d9867aaea6cf.js +0 -1
  567. package/assets/esri/core/workers/chunks/711bec78dc00fad0f78d.js +0 -1
  568. package/assets/esri/core/workers/chunks/71ad08a5b69cf2e6714e.js +0 -1
  569. package/assets/esri/core/workers/chunks/7382c9882525101eddad.js +0 -1
  570. package/assets/esri/core/workers/chunks/750dfcbfcadf0629daf6.js +0 -1
  571. package/assets/esri/core/workers/chunks/75907e5d009b71ce723b.js +0 -1
  572. package/assets/esri/core/workers/chunks/79c69ae86a1f4a56f7c7.js +0 -1
  573. package/assets/esri/core/workers/chunks/79ee97609f72e4cf989c.js +0 -1
  574. package/assets/esri/core/workers/chunks/7a037fbfd91dd22e3bf0.js +0 -1
  575. package/assets/esri/core/workers/chunks/7cf8fc491877d59caf3a.js +0 -1
  576. package/assets/esri/core/workers/chunks/7d2b1e5402a88b6bee85.js +0 -1
  577. package/assets/esri/core/workers/chunks/7ec83fc059325e207825.js +0 -1
  578. package/assets/esri/core/workers/chunks/7ee7529fcbd0d169047c.js +0 -1
  579. package/assets/esri/core/workers/chunks/7f385e9c88df3395e678.js +0 -1
  580. package/assets/esri/core/workers/chunks/80d51d58db09b9f96cb5.js +0 -1
  581. package/assets/esri/core/workers/chunks/81a45d7e9dadf678b584.js +0 -1
  582. package/assets/esri/core/workers/chunks/81c758bdc07ed9d9a132.js +0 -1
  583. package/assets/esri/core/workers/chunks/822a115c7d718e4e3d2b.js +0 -1
  584. package/assets/esri/core/workers/chunks/825ffcde4f224006e776.js +0 -1
  585. package/assets/esri/core/workers/chunks/83711695e16912e9b9c5.js +0 -1
  586. package/assets/esri/core/workers/chunks/8374658d17f69bde6b08.js +0 -1
  587. package/assets/esri/core/workers/chunks/84b6ac0965d83704ba5d.js +0 -1
  588. package/assets/esri/core/workers/chunks/88a02b3a802d484c08a8.js +0 -1
  589. package/assets/esri/core/workers/chunks/89cd0e3420ab31e98a77.js +0 -1
  590. package/assets/esri/core/workers/chunks/8c3bf66f8543cedc72ef.js +0 -1
  591. package/assets/esri/core/workers/chunks/8cade3af17a8bb6d4e37.js +0 -1
  592. package/assets/esri/core/workers/chunks/8eea620f770576d18809.js +0 -1
  593. package/assets/esri/core/workers/chunks/9138503cc61989b00444.js +0 -1
  594. package/assets/esri/core/workers/chunks/920d6330df72e2f01d19.js +0 -1
  595. package/assets/esri/core/workers/chunks/936974764f433eb928a8.js +0 -1
  596. package/assets/esri/core/workers/chunks/99c9f35a29f9f6c9e4ce.js +0 -1
  597. package/assets/esri/core/workers/chunks/9a52bb5949ca836b7e79.js +0 -1
  598. package/assets/esri/core/workers/chunks/9a5327d3c3658e60564d.js +0 -1
  599. package/assets/esri/core/workers/chunks/9dc7abca1d1eb9ba5b58.js +0 -1
  600. package/assets/esri/core/workers/chunks/9e054c264b17f04b7efa.js +0 -1
  601. package/assets/esri/core/workers/chunks/a143a6f8e2f21548b244.js +0 -1
  602. package/assets/esri/core/workers/chunks/a33a3c9bbe6bc7273285.js +0 -1
  603. package/assets/esri/core/workers/chunks/a48a6232fa33084cb686.js +0 -1
  604. package/assets/esri/core/workers/chunks/a4947d5d2fa6b7bd399b.js +0 -1
  605. package/assets/esri/core/workers/chunks/a49f1172b17c14527acf.js +0 -1
  606. package/assets/esri/core/workers/chunks/a7d4d257f49f3b153c26.js +0 -1
  607. package/assets/esri/core/workers/chunks/aaf3ed508d30ed583915.js +0 -1
  608. package/assets/esri/core/workers/chunks/aceec85ce64a3e6d8761.js +0 -1
  609. package/assets/esri/core/workers/chunks/b10b3eb8c2ed9be14ab2.js +0 -1
  610. package/assets/esri/core/workers/chunks/b220fedcb8a2d6450408.js +0 -1
  611. package/assets/esri/core/workers/chunks/b315b3771d0d19681aa5.js +0 -1
  612. package/assets/esri/core/workers/chunks/b397a9f87082705301a4.js +0 -2
  613. package/assets/esri/core/workers/chunks/b40e4ed067da65c3d7ce.js +0 -1
  614. package/assets/esri/core/workers/chunks/b4b16914950792c46bd3.js +0 -1
  615. package/assets/esri/core/workers/chunks/b5f291e8ed7f7cac158d.js +0 -1
  616. package/assets/esri/core/workers/chunks/b6969a42602517a6ef1c.js +0 -1
  617. package/assets/esri/core/workers/chunks/b732ad893d352db79ee1.js +0 -1
  618. package/assets/esri/core/workers/chunks/b9226dd0342cfd30ece0.js +0 -1
  619. package/assets/esri/core/workers/chunks/baad696d84ab78b3d00e.js +0 -2
  620. package/assets/esri/core/workers/chunks/bab1c3f48d089d71e983.js +0 -30
  621. package/assets/esri/core/workers/chunks/bab6dee8f4715d05d984.js +0 -1
  622. package/assets/esri/core/workers/chunks/bc2dcbdc414d157ab727.js +0 -1
  623. package/assets/esri/core/workers/chunks/bcb254cb7297fec88679.js +0 -1
  624. package/assets/esri/core/workers/chunks/bd2125e0a68378533641.js +0 -1
  625. package/assets/esri/core/workers/chunks/bdb4f216ae8881b98604.js +0 -1
  626. package/assets/esri/core/workers/chunks/bde2c3199f667b63dbe8.js +0 -1
  627. package/assets/esri/core/workers/chunks/be52d98da81b413388b3.js +0 -1
  628. package/assets/esri/core/workers/chunks/bf42b5c77f5757dc9328.js +0 -1
  629. package/assets/esri/core/workers/chunks/bf595eb10f99b8a96baa.js +0 -1
  630. package/assets/esri/core/workers/chunks/c0b6706f86665cec85f8.js +0 -1
  631. package/assets/esri/core/workers/chunks/c2ef5e5a3a4fad7f65db.js +0 -1
  632. package/assets/esri/core/workers/chunks/c3c6d337ff53e5d921e8.js +0 -1
  633. package/assets/esri/core/workers/chunks/c461c19e4fdbdd2e94d4.js +0 -1
  634. package/assets/esri/core/workers/chunks/c5fa5645f3a10dfdd7fb.js +0 -1
  635. package/assets/esri/core/workers/chunks/c66aa57b6360963bd938.js +0 -1
  636. package/assets/esri/core/workers/chunks/c873ac660e7d5dc88781.js +0 -1
  637. package/assets/esri/core/workers/chunks/c99f36159b5ed6f9267e.js +0 -1
  638. package/assets/esri/core/workers/chunks/c9a57f6d0d35b968ebea.js +0 -1
  639. package/assets/esri/core/workers/chunks/ca6a65f149e7f34dab9c.js +0 -1
  640. package/assets/esri/core/workers/chunks/cb5f4820277f3fc7ff2f.js +0 -1
  641. package/assets/esri/core/workers/chunks/cf4202ad468501ef24cf.js +0 -1
  642. package/assets/esri/core/workers/chunks/d03d50f3247327257d8b.js +0 -1
  643. package/assets/esri/core/workers/chunks/d1bfb6a229a58e2af761.js +0 -1
  644. package/assets/esri/core/workers/chunks/d2017b0b27b9e4ada922.js +0 -1
  645. package/assets/esri/core/workers/chunks/d2d9c1f32a75befe168b.js +0 -1
  646. package/assets/esri/core/workers/chunks/d309172ad61de2b3c15d.js +0 -1
  647. package/assets/esri/core/workers/chunks/d3416e6da0c1cbb53b3a.js +0 -1
  648. package/assets/esri/core/workers/chunks/d39f5d57f7e35c00ca16.js +0 -1
  649. package/assets/esri/core/workers/chunks/d4422e6e1f09d8c9352e.js +0 -1
  650. package/assets/esri/core/workers/chunks/d4770dddfbfdc3845749.js +0 -1
  651. package/assets/esri/core/workers/chunks/d5b4487a983921572e58.js +0 -1
  652. package/assets/esri/core/workers/chunks/d5f06cb4797629648997.js +0 -1
  653. package/assets/esri/core/workers/chunks/d78b2f85ec9212a973e8.js +0 -1
  654. package/assets/esri/core/workers/chunks/d7f89a3372730dacc04c.js +0 -1
  655. package/assets/esri/core/workers/chunks/d9dc8d9fc8ab2706f96b.js +0 -1
  656. package/assets/esri/core/workers/chunks/da42da04a9df651b06cc.js +0 -1
  657. package/assets/esri/core/workers/chunks/dc7860179a2d1fd05ac2.js +0 -1
  658. package/assets/esri/core/workers/chunks/dc7df2072c0ebed5602c.js +0 -1
  659. package/assets/esri/core/workers/chunks/dc96f2f6e0e02e47476f.js +0 -1
  660. package/assets/esri/core/workers/chunks/dd24cddc406f610d2483.js +0 -1
  661. package/assets/esri/core/workers/chunks/dd3789e71270a4640551.js +0 -1
  662. package/assets/esri/core/workers/chunks/dd6d4a0f1f3215ca34a5.js +0 -1
  663. package/assets/esri/core/workers/chunks/de6438fdbe38d32c4ad5.js +0 -1
  664. package/assets/esri/core/workers/chunks/ded71a656e2626a411f9.js +0 -1
  665. package/assets/esri/core/workers/chunks/df1fa0f7e8f7e2bcc2e6.js +0 -1
  666. package/assets/esri/core/workers/chunks/df80d5345765b769416f.js +0 -1
  667. package/assets/esri/core/workers/chunks/e16d542648bae86e890f.js +0 -1
  668. package/assets/esri/core/workers/chunks/e1827e86226bf9a0f4ea.js +0 -1
  669. package/assets/esri/core/workers/chunks/e2e03622936d2b35afc0.js +0 -1
  670. package/assets/esri/core/workers/chunks/e33f5780fb45ac7ca889.js +0 -1
  671. package/assets/esri/core/workers/chunks/e3ee2b699c42fd113b46.js +0 -1
  672. package/assets/esri/core/workers/chunks/e4611ebd7dba7692a914.js +0 -1
  673. package/assets/esri/core/workers/chunks/e508f8e707eb3207cfcc.js +0 -1
  674. package/assets/esri/core/workers/chunks/e52793690dff1a199647.js +0 -1
  675. package/assets/esri/core/workers/chunks/e55859fce1908c24423a.js +0 -1
  676. package/assets/esri/core/workers/chunks/e56a10a475ce128b5fce.js +0 -1
  677. package/assets/esri/core/workers/chunks/e93df239fc54af2bd6ba.js +0 -1
  678. package/assets/esri/core/workers/chunks/ea633a6a3b9ea8ce965d.js +0 -1
  679. package/assets/esri/core/workers/chunks/eae1c098c16e2faaf90d.js +0 -1
  680. package/assets/esri/core/workers/chunks/eaf5d55060ffc55aac39.js +0 -1
  681. package/assets/esri/core/workers/chunks/ece363681bb09072f379.js +0 -1
  682. package/assets/esri/core/workers/chunks/edaae0fc63d16b0f675d.js +0 -2
  683. package/assets/esri/core/workers/chunks/ee31d9f44e028df16bd5.js +0 -1
  684. package/assets/esri/core/workers/chunks/ee89564d11c077169b31.js +0 -1
  685. package/assets/esri/core/workers/chunks/ee905e24320241959965.js +0 -1
  686. package/assets/esri/core/workers/chunks/eebf59ac2dd60b9fb262.js +0 -1
  687. package/assets/esri/core/workers/chunks/ef4237dc7b67c9039826.js +0 -1
  688. package/assets/esri/core/workers/chunks/ef9106ee818ec732b670.js +0 -1
  689. package/assets/esri/core/workers/chunks/f0780abe66118b3a0bf2.js +0 -1
  690. package/assets/esri/core/workers/chunks/f121a0bf33c03abfa0b6.js +0 -1
  691. package/assets/esri/core/workers/chunks/f4329e3e4e072fac8dc0.js +0 -1
  692. package/assets/esri/core/workers/chunks/f5dbffd5e8b3c16336a1.js +0 -1
  693. package/assets/esri/core/workers/chunks/f62e37863a549f72093c.js +0 -1
  694. package/assets/esri/core/workers/chunks/f984248e2ce417e49f2f.js +0 -1
  695. package/assets/esri/core/workers/chunks/fab7e3e07d700d7bb651.js +0 -1
  696. package/assets/esri/core/workers/chunks/fcc8d0b60f7c2397e550.js +0 -1
  697. package/assets/esri/core/workers/chunks/fcf592dc8c017a08fee0.js +0 -1
  698. package/assets/esri/core/workers/chunks/fcf6a47f44c917490deb.js +0 -1
  699. package/assets/esri/core/workers/chunks/fe3c8a6fc080fdf2ad94.js +0 -1
  700. package/assets/esri/core/workers/chunks/fe5aec7e2da4465422b4.js +0 -1
  701. package/assets/esri/core/workers/chunks/fefc94944f07c768ad66.js +0 -1
  702. package/views/3d/webgl-engine/lib/CompositingHelper.js +0 -2
  703. /package/assets/esri/core/workers/chunks/{53e348f5585fa8c53fe8.js.LICENSE.txt → 13d1cb50232ae761425b.js.LICENSE.txt} +0 -0
  704. /package/assets/esri/core/workers/chunks/{b397a9f87082705301a4.js.LICENSE.txt → 3861644c06cfebe8f40c.js.LICENSE.txt} +0 -0
  705. /package/assets/esri/core/workers/chunks/{112227b862b935123ddf.js.LICENSE.txt → 3f812b0a28afb47aaaf0.js.LICENSE.txt} +0 -0
  706. /package/assets/esri/core/workers/chunks/{edaae0fc63d16b0f675d.js.LICENSE.txt → 43c8b1473695574c663e.js.LICENSE.txt} +0 -0
  707. /package/assets/esri/core/workers/chunks/{baad696d84ab78b3d00e.js.LICENSE.txt → b586f1021a27c5e1551a.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9466],{7142(t,e,r){function n(t,e){return s(t,"any",e?.origin)}function o(t,e){return s(t,"read",e?.origin)}function i(t,e){return s(t,"write",e?.origin)}function s(t,e,r){let n=t?.json;if(n?.origins&&r){let t;t="link-chart"===r?n.origins[r]&&("any"===e||e in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],t&&("any"===e||e in t)&&(n=t)}return n}r.d(e,{N5:()=>o,k4:()=>i,xF:()=>n})},10107(t,e,r){r.d(e,{MZ:()=>c,rM:()=>l});var n=r(53966),o=r(56507),i=r(16649),s=r(96156),a=r(47821);function c(t={}){return(e,r)=>{if(e===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${e.name}.${r}. Accessor does not support static properties.`);const c=Object.getOwnPropertyDescriptor(e,r),l=(0,s.z4)(e,r);c&&(c.get||c.set?(l.get=c.get||l.get,l.set=c.set||l.set):"value"in c&&("value"in t&&n.A.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${e.constructor.name}" already defined in the metadata`,t),l.value=t.value=c.value)),null!=t.readOnly&&(l.readOnly=t.readOnly);const u=t.aliasOf;if(u){const t="string"==typeof u?u:u.source,e="string"==typeof u?null:!0===u.overridable;let n;l.dependsOn=[t],l.get=function(){let e=(0,i.Jt)(this,t);if("function"==typeof e){n||(n=t.split(".").slice(0,-1).join("."));const r=(0,i.Jt)(this,n);r&&(e=e.bind(r))}return e},l.readOnly||(l.set=e?function(t){this._override(r,t)}:function(e){(0,a.h)(this,t,e)})}const f=t.type,h=t.types;if(!l.cast){let e;f&&!1!==t.useTypeForAutocast?e=function(t){let e=0,r=t;if((0,o.Zu)(t))return(0,o.Nd)(t);for(;Array.isArray(r)&&1===r.length&&"string"!=typeof r[0]&&"number"!=typeof r[0];)r=r[0],e++;const n=r;if((0,o.EK)(n))return 0===e?(0,o.MB)(n):(0,o._e)((0,o.MB)(n),e);if(1===e)return(0,o.eC)(n);if(e>1)return(0,o.e6)(n,e);const i=t;return i.from?i.from:(0,o.dp)(i)}(f):h&&(e=Array.isArray(h)?(0,o.wB)((0,o.aq)(h[0])):(0,o.aq)(h)),t.cast=function(t,e){if(t||e)return t?e?(r,n)=>e(t(r,n),n):t:e}(t.cast,e)}(0,s.CX)(l,t),t.range&&(l.cast=(0,o.Qp)(l.cast,t.range))}}function l(t,e,r){const n=(0,s.z4)(t,r);n.json||(n.json={});let o=n.json;return void 0!==e&&(o.origins||(o.origins={}),o.origins[e]||(o.origins[e]={}),o=o.origins[e]),o}},15142(t,e,r){r.d(e,{A:()=>l});var n=r(4576),o=r(21818);const i=(t,e,r,n)=>{let o=e,i=e;const s=r>>>1,a=t[o-1];for(;i<=s;){i=o<<1,i<r&&n(t[i-1],t[i])<0&&++i;const e=t[i-1];if(n(e,a)<=0)break;t[o-1]=e,o=i}t[o-1]=a},s=(t,e)=>t<e?-1:t>e?1:0;function a(t,e,r,n){void 0===e&&(e=0),void 0===r&&(r=t.length),void 0===n&&(n=s);for(let o=r>>>1;o>e;o--)i(t,o,r,n);const o=e+1;for(let s=r-1;s>e;s--){const r=t[e];t[e]=t[s],t[s]=r,i(t,o,s,n)}}function*c(t,e,r,n){void 0===e&&(e=0),void 0===r&&(r=t.length),void 0===n&&(n=s);for(let o=r>>>1;o>e;o--)i(t,o,r,n),yield;const o=e+1;for(let s=r-1;s>e;s--){const r=t[e];t[e]=t[s],t[s]=r,i(t,o,s,n),yield}}class l{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new n.vW,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>u(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const e=new Array;for(let r=0;r<this._length;r++){const n=this.data[r];t(n)&&e.push(n)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){const r=this.data.indexOf(t,e);return-1!==r&&r<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let r=0;r<e;r++)this.data[this._length++]=t[r]}pushAll(t){for(const e of t)this.data[this._length++]=e}fill(t,e){for(let r=0;r<e;r++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,u(this)}pop(){if(0===this.length)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const e=(0,n.qh)(this.data,(0,o.z)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex((0,n.qh)(this.data,(0,o.z)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,r){this.length=(0,n.mW)(this.data,t,this.length,e,this._hint,r),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;const r=this.data[t];this.data[t]=this.data[e],this.data[e]=r}sort(t){a(this.data,0,this.length,t)}iterableSort(t){return c(this.data,0,this.length,t)}some(t,e){for(let r=0;r<this.length;++r)if(t.call(e,this.data[r],r,this.data))return!0;return!1}find(t,e){const{data:r,length:n}=this;for(let o=0;o<n;++o)if(t.call(e,r[o]))return r[o]}filterInPlace(t,e){let r=0;for(let n=0;n<this._length;++n){const o=this.data[n];t.call(e,o,n,this.data)&&(this.data[n]=this.data[r],this.data[r]=o,r++)}if(this._deallocator)for(let t=r;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=r,this._shrink(),this}forAll(t,e){const{data:r,length:n}=this;for(let o=0;o<n;++o)t.call(e,r[o],o,r)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){const r=new Array(this.length);for(let n=0;n<this.length;++n)r[n]=t.call(e,this.data[n],n,this.data);return r}reduce(t,e){let r=e;for(let e=0;e<this.length;++e)r=t(r,this.data[e],e,this.data);return r}has(t){const e=this.length,r=this.data;for(let n=0;n<e;++n)if(r[n]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}function u(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},15903(t,e,r){function n(t){return!!t&&t.prototype?.declaredClass&&0===t.prototype.declaredClass.indexOf("esri.core.Collection")}r.d(e,{P:()=>n})},16649(t,e,r){r.d(e,{Jt:()=>a,RP:()=>s,t2:()=>c});var n=r(88620);function o(t,e){const r=t.endsWith("?")?t.slice(0,-1):t;if(null!=e.getItemAt||Array.isArray(e)){const t=parseInt(r,10);if(!isNaN(t))return Array.isArray(e)?e[t]:e.at(t)}const o=(0,n.oY)(e);return(0,n.yh)(o,r)?o.get(r):e[r]}function i(t,e,r){if(null==t)return t;const n=o(e[r],t);return!n&&r<e.length-1?void 0:r===e.length-1?n:i(n,e,r+1)}function s(t,e,r=0){return"string"!=typeof e||e.includes(".")?i(t,(0,n.AH)(e),r):o(e,t)}function a(t,e){return s(t,e)}function c(t,e){return void 0!==s(e,t)}},24326(t,e,r){r.d(e,{c:()=>o});let n=0;function o(){return++n}},26390(t,e,r){r.d(e,{d:()=>o});const n=[];function o(t){n.push(t),1===n.length&&queueMicrotask(()=>{const t=n.slice();n.length=0;for(const e of t)e()})}},36005(t,e,r){r.d(e,{w:()=>o});var n=r(10107);function o(t,e,r){let o,i;return void 0===e||Array.isArray(e)?(i=t,r=e,o=[void 0]):(i=e,o=Array.isArray(t)?t:[t]),(t,e)=>{const s=t.constructor.prototype;o.forEach(o=>{const a=(0,n.rM)(t,o,i);a.read&&"object"==typeof a.read||(a.read={}),a.read.reader=s[e],r&&(a.read.source=(a.read.source||[]).concat(r))})}}},43937(t,e,r){r.d(e,{K:()=>o});var n=r(10107);function o(t,e,r){let o,i;return void 0===e?(i=t,o=[void 0]):"string"!=typeof e?(i=t,o=[void 0],r=e):(i=e,o=Array.isArray(t)?t:[t]),(t,e)=>{const s=t.constructor.prototype;for(const a of o){const o=(0,n.rM)(t,a,i);o.write&&"object"==typeof o.write||(o.write={}),r&&(o.write.target=r),o.write.writer=s[e]}}}},47328(t,e,r){r.d(e,{i:()=>n});const n={Dirty:1,Overridden:2,Computing:4,NonNullable:8,HasDefaultValue:16,DepTrackingInitialized:32,AutoTracked:64,ExplicitlyTracking:128}},47821(t,e,r){r.d(e,{h:()=>s});var n=r(49186),o=r(44208),i=(r(53966),r(16649));function s(t,e,r){if(t&&e)if("object"==typeof e)for(const r of Object.getOwnPropertyNames(e))s(t,r,e[r]);else{if(e.includes(".")){const n=e.split("."),o=n.splice(-1,1)[0];return void s((0,i.Jt)(t,n),o,r)}const a=t.__accessor__;null!=a&&function(t,e){if((0,o.A)("esri-unknown-property-errors")&&!function(t,e){return null!=e.metadata[t]}(t,e))throw new n.A("set:unknown-property",function(t,e){return"setting unknown property '"+t+"' on instance of "+e.host.declaredClass}(t,e))}(e,a),t[e]=r}}},56454(t,e,r){r.d(e,{G:()=>n});const n=Symbol("Accessor-beforeDestroy")},56507(t,e,r){r.d(e,{EK:()=>T,GB:()=>l,GX:()=>c,MB:()=>M,Nd:()=>x,PZ:()=>v,Qp:()=>h,Uv:()=>P,Vr:()=>u,Zu:()=>I,_e:()=>N,aq:()=>C,dp:()=>A,e6:()=>S,eC:()=>k,gK:()=>z,jz:()=>E,qf:()=>j,wB:()=>O});var n=r(53966),o=r(91869);const i=()=>n.A.getLogger("esri.core.accessorSupport.ensureTypes");function s(t){if(null==t)return t;const e=new Date(t);return isNaN(e.getTime())?(i().error("Accessor#set",`Invalid date value: '${t}', falling back to current date`),new Date):e}function a(t){return null==t?t:!!t}function c(t){return null==t?t:t.toString()}function l(t,e=0){return null==t?t:(t=parseFloat(t),isNaN(t)?e:t)}function u(t){return null==t?t:Math.round(parseFloat(t))}function f(t){return null}function h(t,e){return r=>{let n=t(r);return null!=e.step&&(n=Math.round(n/e.step)*e.step),null!=e.min&&(n=Math.max(e.min,n)),null!=e.max&&(n=Math.min(e.max,n)),n}}function p(t){return t?.constructor&&void 0!==t.constructor.__accessorMetadata__}function d(t,e){return null!=e&&t&&!(e instanceof t)}function y(t){return t&&"isCollection"in t}function g(t){return t?.Type?"function"==typeof t.Type?t.Type:t.Type.base:null}function _(t,e){return!!p(e)&&(i().error("Accessor#set","Assigning an instance of '"+(e.declaredClass||"unknown")+"' which is not a subclass of '"+b(t)+"'"),!0)}function v(t,e){return null==e?e:y(t)?function(t,e){if(!e?.constructor||!y(e.constructor))return _(t,e)?e:new t(e);const r=g(t.prototype.itemType),n=g(e.constructor.prototype.itemType);return r?n?r===n?e:r.prototype.isPrototypeOf(n.prototype)?new t(e):(_(t,e),e):new t(e):e}(t,e):d(t,e)?_(t,e)?e:new t(e):e}function b(t){return t?.prototype?.declaredClass||"unknown"}const w=new WeakMap;function m(t){switch(t){case Number:return t=>l(t);case E:return u;case Boolean:return a;case String:return c;case Date:return s;case P:return f;default:return(0,o.tE)(w,t,()=>v.bind(null,t))}}function A(t,e){const r=m(t);return 1===arguments.length?r:r(e)}function j(t){const e=m(t);return t=>e(t)}function O(t,e,r){return 1===arguments.length?O.bind(null,t):e?Array.isArray(e)?e.map(e=>t(e,r)):[t(e,r)]:e}function k(t,e){return 1===arguments.length?O(e=>A(t,e)):O(e=>A(t,e),e)}function $(t,e,r){return 0!==e&&Array.isArray(r)?r.map(r=>$(t,e-1,r)):t(r)}function N(t,e,r){if(2===arguments.length)return r=>N(t,e,r);if(!r)return r;r=$(t,e,r);let n=e,o=r;for(;n>0&&Array.isArray(o);)n--,o=o[0];if(void 0!==o)for(let t=0;t<n;t++)r=[r];return r}function S(t,e,r){return 2===arguments.length?N(e=>A(t,e),e):N(e=>A(t,e),e,r)}function T(t){return!!Array.isArray(t)&&!t.some(e=>{const r=typeof e;return!("string"===r||"number"===r||"function"===r&&t.length>1)})}function M(t,e){if(2===arguments.length)return M(t).call(null,e);const r=new Set,n=t.filter(t=>"function"!=typeof t),o=t.filter(t=>"function"==typeof t);for(const e of t)"string"!=typeof e&&"number"!=typeof e||r.add(e);let s=null,a=null;return(t,e)=>{if(null==t)return t;const c=typeof t,l="string"===c||"number"===c;return l&&(r.has(t)||o.some(t=>"string"===c&&t===String||"number"===c&&t===Number))||"object"===c&&o.some(e=>!d(e,t))?t:(l&&n.length?(s||(s=n.map(t=>"string"==typeof t?`'${t}'`:`${t}`).join(", ")),i().error("Accessor#set",`'${t}' is not a valid value for this property, only the following values are valid: ${s}`)):"object"==typeof t&&o.length?(a||(a=o.map(t=>b(t)).join(", ")),i().error("Accessor#set",`'${t}' is not a valid value for this property, value must be one of ${a}`)):i().error("Accessor#set",`'${t}' is not a valid value for this property`),e&&(e.valid=!1),null)}}function C(t,e){if(2===arguments.length)return C(t).call(null,e);const r={},n=[],o=[];for(const e in t.typeMap){const i=t.typeMap[e];r[e]=A(i),n.push(b(i)),o.push(e)}const s=()=>`'${n.join("', '")}'`,a=()=>`'${o.join("', '")}'`,c="string"==typeof t.key?e=>e[t.key]:t.key;return e=>{if(t.base&&!d(t.base,e))return e;if(null==e)return e;const n=c(e)||t.defaultKeyValue,o=r[n];if(!o)return i().error("Accessor#set",`Invalid property value, value needs to be one of ${s()}, or a plain object that can autocast (having .type = ${a()})`),null;if(!d(t.typeMap[n],e))return e;if("string"==typeof t.key&&!p(e)){const r={};for(const n in e)n!==t.key&&(r[n]=e[n]);return o(r)}return o(e)}}class E{}class P{}const z={native:t=>({type:"native",value:t}),array:t=>({type:"array",value:t}),oneOf:t=>({type:"one-of",values:t})};function I(t){if(!t||"object"!=typeof t&&"function"!=typeof t||!("type"in t))return!1;switch(t.type){case"native":case"array":case"one-of":return!0}return!1}function x(t){switch(t.type){case"native":return A(t.value);case"array":return O(x(t.value));case"one-of":return function(t){let e=null;return(r,n)=>J(r,t)?r:(null==e&&(e=D(t)),i().error("Accessor#set",`Invalid property value, value needs to be of type ${e}`),n&&(n.valid=!1),null)}(t);default:return null}}function D(t){switch(t.type){case"native":switch(t.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case E:return"integer";case Date:return"date";case P:return"null";default:return b(t.value)}case"array":return`array of ${D(t.value)}`;case"one-of":{const e=t.values.map(t=>D(t));return`one of ${e.slice(0,-1)} or ${e[e.length-1]}`}}return"unknown"}function J(t,e){if(null==t)return!0;switch(e.type){case"native":switch(e.value){case Number:case E:return"number"==typeof t;case Boolean:return"boolean"==typeof t;case String:return"string"==typeof t;case P:return null===t}return t instanceof e.value;case"array":return!!Array.isArray(t)&&!t.some(t=>!J(t,e.value));case"one-of":return e.values.some(e=>J(t,e))}}},59923(t,e,r){r.d(e,{GL:()=>f,MG:()=>s,U4:()=>a,Yc:()=>u,bA:()=>l,qt:()=>c});var n=r(49186),o=r(67076);const i=["layer","property","renderer","symbol","symbol-layer","url","visual-variable","type","elevation-profile-line","field-configuration-field-format"].map(t=>`${t}:unsupported`),s=new Set(i);function a(t,e,r){if(!t)return;const n=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t?.messages?.push(f("layer",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' is not supported in the context of '${n}'${r?`: ${r}`:""}`,{layer:e}))}function c(t,e,r){if(!t)return;const n=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t?.messages?.push(f("property",`Property '${e}' is not supported in the context of '${n}'${r?`: ${r}`:""}`))}function l(t,e,r,n){if(!t)return;const o=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t?.messages?.push(f("symbol",`Symbol '${e.declaredClass}' is not supported in the context of '${o}'${r?`: ${r}`:""}`,n))}function u(t,e,r,i,s){t&&t?.messages?.push(h("warning"===e?o.A:n.A,r,i,s))}function f(t,e,r){return h(n.A,t,e,r)}function h(t,e,r,n){return new t(`${e}:unsupported`,r,n)}},62788(t,e,r){r.d(e,{F_:()=>p,Xr:()=>v,a:()=>h,fE:()=>g,gc:()=>l}),r(44208);var n=r(53966),o=r(88620),i=r(47328);const s=new(r(67867).R),a=[];let c=s;function l(t){c.onAccessed(t)}let u=!1,f=!1;function h(t,e,r){if(u)return d(t,e,r);let o;if(f){c=t,a.push(t);try{o=e.call(r)}catch(t){throw n.A.getLogger("esri.core.accessorSupport.tracking").error(t),t}finally{y()}}else{c=t,a.push(t);try{o=e.call(r)}finally{y()}}return o}function p(t,e){return h(s,t,e)}function d(t,e,r){const o=u;let i;u=!0,c=t,a.push(t);try{i=e.call(r)}catch(t){f&&n.A.getLogger("esri.core.accessorSupport.tracking").error(t)}return y(),u=o,i}function y(){const t=a.length;if(t>1){const e=a.pop();c=a[t-2],e.onTrackingEnd()}else if(1===t){const t=a.pop();c=s,t.onTrackingEnd()}else c=s}function g(t,e){if(e.flags&i.i.DepTrackingInitialized)return;e.flags|=i.i.DepTrackingInitialized;const r=f;f=!1,e.flags&i.i.AutoTracked?d(e.trackingTarget,e.metadata.get,t):v(t,e),f=r}const _=[];function v(t,e){e.flags&i.i.ExplicitlyTracking||(e.flags|=i.i.ExplicitlyTracking,d(e.trackingTarget,()=>{const r=e.metadata.dependsOn||_;for(const e of r)if("string"!=typeof e||e.includes(".")){const r=(0,o.AH)(e);for(let e=0,n=t;e<r.length&&null!=n&&"object"==typeof n;++e)n=b(n,r[e],e!==r.length-1)}else b(t,e,!1)}),e.flags&=~i.i.ExplicitlyTracking)}function b(t,e,r){const n=e.endsWith("?")?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){const e=parseInt(n,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}const i=(0,o.oY)(t);if(i){const e=i.propertiesByName.get(n);e&&(l(e),g(t,e))}return r?t[n]:void 0}},64108(t,e,r){r.d(e,{$:()=>m}),r(44208);var n=r(53966),o=r(56454),i=r(85537),s=r(96156),a=r(62788),c=r(56507),l=r(90360);function u(t){if(t.json||(t.json={}),h(t.json),p(t.json),f(t.json),t.json.origins)for(const e in t.json.origins)h(t.json.origins[e]),p(t.json.origins[e]),f(t.json.origins[e]);return!0}function f(t){t.name&&(t.read&&"object"==typeof t.read?void 0===t.read.source&&(t.read.source=t.name):t.read={source:t.name},t.write&&"object"==typeof t.write?void 0===t.write.target&&(t.write.target=t.name):t.write={target:t.name})}function h(t){"boolean"==typeof t.read?t.read={enabled:t.read}:"function"==typeof t.read?t.read={enabled:!0,reader:t.read}:t.read&&"object"==typeof t.read&&void 0===t.read.enabled&&(t.read.enabled=!0)}function p(t){"boolean"==typeof t.write?t.write={enabled:t.write}:"function"==typeof t.write?t.write={enabled:!0,writer:t.write}:t.write&&"object"==typeof t.write&&void 0===t.write.enabled&&(t.write.enabled=!0)}var d=r(67124);function y(t){return t.type?g(t):_(t)}function g(t){if(!t.type)return;let e=0,r=t.type;for(;Array.isArray(r)&&!(0,c.EK)(r);)r=r[0],e++;return{type:r,ndimArray:e}}function _(t){if(!t.types)return;let e=0,r=t.types;for(;Array.isArray(r);)r=r[0],e++;return{types:r,ndimArray:e}}function v(t){u(t)&&(function(t){if(t.json&&t.json.origins){const e=t.json.origins,r={"web-document":["web-scene","web-map"]};for(const t in r)if(e[t]){const n=e[t];r[t].forEach(t=>{e[t]=n}),delete e[t]}}}(t),function(t){const e=function(t){return t.json.types?_(t.json):t.type?g(t):_(t)}(t);if(t.json.origins)for(const r in t.json.origins){const n=t.json.origins[r],o=n.types?y(n):e;(0,l.v)(o,n,!1),n.types&&!n.write&&t.json.write?.enabled&&(n.write={...t.json.write}),(0,d.v)(o,n)}(0,l.v)(e,t.json,!0),(0,d.v)(e,t.json)}(t))}const b=new Set,w=new Set;function m(t){return e=>{t??="esri.core.Accessor",e.prototype.declaredClass=t,k(e);const r=[],n=[];let a=e.prototype;for(;a;)a.hasOwnProperty("initialize")&&!b.has(a.initialize)&&(b.add(a.initialize),r.push(a.initialize)),a.hasOwnProperty("destroy")&&!w.has(a.destroy)&&(w.add(a.destroy),n.push(a.destroy)),a=Object.getPrototypeOf(a);b.clear(),w.clear();const c=class extends e{constructor(...t){if(super(...t),this.constructor===c&&"function"==typeof this.postscript){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let t=r.length-1;t>=0;t--)r[t].call(this)}}),n.length){let t=!1;const e=this[o.G];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!t){this.__accessor__.lifecycle=i.v.DESTROYING,t=!0,e.call(this);for(let t=0;t<n.length;t++)n[t].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};c.__accessorMetadata__=(0,s.tD)(e.prototype),c.prototype.declaredClass=t;const l=(t||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(c.prototype,Symbol.toStringTag,{value:l,configurable:!0,writable:!0,enumerable:!1}),c}}function A(t,{get:e,value:r}){return null==e?function(){const e=this.__accessor__,n=e.propertiesByName.get(t);if(void 0===n)return;e.mutable&&(0,a.gc)(n);const o=e.store;return o.has(t)?o.get(t):r}:function(){const r=this.__accessor__;return r.propertiesByName.get(t)?.getComputed(r,e)}}function j(t,e,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r})}function O(t,e){return e.readOnly&&e.constructOnly?function(r){const n=this.__accessor__;if(n){if(n.mutable)return n.initialized&&e.readOnly?$("read-only",t):n.lifecycle===i.v.CONSTRUCTED&&e.constructOnly?$("construct-only",t):void n.set(t,r)}else j(this,t,r)}:e.readOnly?function(r){const n=this.__accessor__;if(n){if(n.mutable)return n.initialized&&e.readOnly?$("read-only",t):void n.set(t,r)}else j(this,t,r)}:e.constructOnly?function(r){const n=this.__accessor__;if(n){if(n.mutable)return n.lifecycle===i.v.CONSTRUCTED&&e.constructOnly?$("construct-only",t):void n.set(t,r)}else j(this,t,r)}:function(e){const r=this.__accessor__;r?r.mutable&&r.set(t,e):j(this,t,e)}}function k(t){const e=t.prototype,r=(0,s.tD)(e),n={};for(const t of Object.getOwnPropertyNames(r)){const e=r[t];v(e),n[t]={enumerable:!0,configurable:!0,get:A(t,e),set:O(t,e)}}Object.defineProperties(t.prototype,n)}const $=(t,e)=>{n.A.getLogger("esri.core.Accessor").error(`cannot assign to ${t} property '${e}'`)}},66552(t,e,r){r.d(e,{J:()=>o,O:()=>s});var n=r(93637);class o{constructor(t,e={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=t,this._options=e,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(t){const e={};for(const r in t)e[t[r]]=r;return e}(t),this.apiValues=i(this._apiToJSON),this.jsonValues=i(this._jsonToAPI),this.read=t=>this.fromJSON(t),this.write=(t,e,r)=>{const o=this.toJSON(t);void 0!==o&&(0,n.sM)(r,o,e)},this.write.isJSONMapWriter=!0}toJSON(t){if(null==t)return null;if(this._apiToJSON.hasOwnProperty(t)){const e=this._apiToJSON[t];return this._options.useNumericKeys?+e:e}return this._options.ignoreUnknown?null:t}fromJSON(t){return null!=t&&this._jsonToAPI.hasOwnProperty(t)?this._jsonToAPI[t]:this._options.ignoreUnknown?void 0:t}}function i(t){const e=[];for(const r in t)e.push(r);return e.sort(),e}function s(){return function(t,e){return new o(t,{ignoreUnknown:!0,...e})}}},67076(t,e,r){r.d(e,{A:()=>o});var n=r(799);class o{constructor(t,e,r){this.name=t,this.details=r,this.type="warning",this.message=e?(0,n.V2)(e,r):""}toString(){const{name:t,message:e}=this;return`[${t}]: ${e}`}}},67124(t,e,r){r.d(e,{B:()=>f,v:()=>a});var n=r(53966),o=r(93637),i=r(15903),s=r(59923);function a(t,e){if(!e.write||e.write.writer||!1===e.write.enabled&&!e.write.overridePolicy)return;const r=t?.ndimArray??0;t&&(1===r||"type"in t&&(0,i.P)(t.type))?e.write.writer=h:r>1?e.write.writer=function(t){return(e,r,n,i)=>{let s;if(null===e)s=null;else{s=p(e,i,t);let r=t,n=s;for(;r>0&&Array.isArray(n);)r--,n=n[0];if(void 0!==n)for(let t=0;t<r;t++)s=[s]}(0,o.sM)(n,s,r)}}(r):e.types?Array.isArray(e.types)?e.write.writer=function(t){return(e,r,n,o)=>e&&Array.isArray(e)?l(e.filter(e=>c(e,t,o)),r,n,o):l(e,r,n,o)}(e.types[0]):e.write.writer=function(t){return(e,r,n,o)=>e?c(e,t,o)?l(e,r,n,o):void 0:l(e,r,n,o)}(e.types):e.write.writer=l}function c(t,e,r){for(const r in e.typeMap)if(t instanceof e.typeMap[r])return!0;if(r?.messages){const o=e.errorContext??"type",i=`Values of type '${("function"!=typeof e.key?t[e.key]:t.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&t&&(0,s.Yc)(r,"error",o,i,{definition:t,context:r}),n.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function l(t,e,r,n){(0,o.sM)(r,u(t,n),e)}function u(t,e){return t&&"function"==typeof t.write?t.write({},e):t&&"function"==typeof t.toJSON?t.toJSON():"number"==typeof t?f(t):t}function f(t){return t===-1/0?-Number.MAX_VALUE:t===1/0?Number.MAX_VALUE:isNaN(t)?null:t}function h(t,e,r,n){let i;null===t?i=null:t&&"function"==typeof t.map?(i=t.map(t=>u(t,n)),"function"==typeof i.toArray&&(i=i.toArray())):i=[u(t,n)],(0,o.sM)(r,i,e)}function p(t,e,r){return 0!==r&&Array.isArray(t)?t.map(t=>p(t,e,r-1)):u(t,e)}},67867(t,e,r){r.d(e,{R:()=>n});class n{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.clear(),this.accessed=void 0,this._observer=void 0}onAccessed(t){null!=this._observer&&t!==this._observer&&(null==this.accessed&&(this.accessed=new Set),this.accessed.add(t))}onTrackingEnd(){null!=this._observer&&(this.clear(),null!=this.accessed&&(null==this._handles&&(this._handles=[]),this.accessed.forEach(t=>{this._handles.push(t.observe(this._observer))}),this.accessed.clear()))}clear(){if(null!=this._handles)for(;this._handles.length;)this._handles.pop().remove()}}},79901(t,e,r){r.d(e,{w:()=>c});var n=r(56507),o=r(96156);const i=Object.prototype.toString;function s(t){const e="__accessorMetadata__"in t?(0,n.dp)(t):t;return function(...t){if(t.push(e),"number"==typeof t[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,t)}}function a(t,e,r,n){(0,o.z4)(t,e).cast=n}function c(...t){if(3!==t.length||"string"!=typeof t[1])return 1===t.length&&"[object Function]"===i.call(t[0])?s(t[0]):1===t.length&&"string"==typeof t[0]?function(t){return(e,r)=>{(0,o.z4)(e,t).cast=e[r]}}(t[0]):void 0}},85537(t,e,r){r.d(e,{v:()=>n});const n={INITIALIZING:0,CONSTRUCTING:1,CONSTRUCTED:2,DESTROYING:3,DESTROYED:4}},88620(t,e,r){r.d(e,{AH:()=>l,h1:()=>a,oY:()=>i,qg:()=>f,yh:()=>s});var n=r(36563),o=r(4718);function i(t){return t.__accessor__??null}function s(t,e){return null!=t?.metadata?.[e]}function a(t,e,r){return c(t,e,r?{policy:r,path:""}:null)}function c(t,e,r){return e?Object.keys(e).reduce((t,n)=>{const i=n;if("__proto__"===i)return t;let s=null,a="merge";if(r&&(s=r.path?`${r.path}.${n}`:n,a=r.policy(s)),"replace"===a)return t[i]=e[i],t;if("replace-arrays"===a&&Array.isArray(t[i]))return t[i]=e[i],t;if(void 0===t[i])return t[i]=(0,o.o8)(e[i]),t;let l=t[i],u=e[i];if(l===u)return t;if(Array.isArray(u)||Array.isArray(t))l=l?Array.isArray(l)?t[i]=l.slice():t[i]=[l]:t[i]=[],u&&(Array.isArray(u)||(u=[u]),u.forEach(t=>{l.includes(t)||l.push(t)}));else if(u&&"object"==typeof u)if(r){const e=r.path;r.path=s,t[i]=c(l,u,r),r.path=e}else t[i]=c(l,u,null);else t.hasOwnProperty(n)&&!e.hasOwnProperty(n)||(t[i]=u);return t},t||{}):t}function l(t){return Array.isArray(t)?t:t.split(".")}function u(t){return t.includes(",")?t.split(",").map(t=>t.trim()):[t.trim()]}function f(t,e,r,o){const i=function(t){if(Array.isArray(t)){const e=[];for(const r of t)e.push(...u(r));return e}return u(t)}(e);if(1!==i.length){const e=i.map(e=>o(t,e,r));return(0,n.vE)(e)}return o(t,i[0],r)}},90360(t,e,r){r.d(e,{C:()=>f,v:()=>u});var n=r(53966),o=r(93637),i=r(96156),s=r(15903),a=r(7142),c=r(59923);const l=()=>n.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function u(t,e,r){t&&(!r&&!e.read||e.read?.reader||!1===e.read?.enabled||function(t){return"types"in t?_(t.types):g(t.type)}(t)&&(0,o.sM)("read.reader",f(t),e))}function f(t){const e=t.ndimArray??0;if(e>1)return function(t){const e=h(t),r=p.bind(null,e),n=t.ndimArray??0;return(t,e,o)=>{if(null==t)return t;t=r(t,o,n);let i=n,s=t;for(;i>0&&Array.isArray(s);)i--,s=s[0];if(void 0!==s)for(let e=0;e<i;e++)t=[t];return t}}(t);if(1===e)return d(t);if("type"in t&&y(t.type)){const e=t.type.prototype?.itemType?.Type,r=d("function"==typeof e?{type:e}:{types:e});return(e,n,o)=>{const i=r(e,n,o);return i?new t.type(i):i}}return h(t)}function h(t){return"type"in t?function(t){return t.prototype.read?(e,r,n)=>{if(null==e)return e;const o=typeof e;if("object"!==o)return void l().error(`Expected JSON value of type 'object' to deserialize type '${t.prototype.declaredClass}', but got '${o}'`);const i=new t;return i.read(e,n),i}:t.fromJSON}(t.type):function(t){let e=null;const r=t.errorContext??"type",n=t.validate;return(o,s,u)=>{if(null==o)return o;const f=typeof o;if("object"!==f)return void l().error(`Expected JSON value of type 'object' to deserialize, but got '${f}'`);e||(e=function(t){const e={};for(const r in t.typeMap){const n=t.typeMap[r],o=(0,i.tD)(n.prototype);if("function"==typeof t.key)continue;const s=o[t.key];if(!s)continue;if(s.json?.type&&Array.isArray(s.json.type)&&1===s.json.type.length&&"string"==typeof s.json.type[0]){e[s.json.type[0]]=n;continue}const a=s.json?.write;if(!a?.writer){e[r]=n;continue}const c=a.target,l="string"==typeof c?c:t.key,u={};a.writer(r,u,l),u[l]&&(e[u[l]]=n)}return e}(t));const h=t.key;if("string"!=typeof h)return;const p=o[function(t,e,r){const n=Object.values(e)[0],o=(0,i.tD)(n.prototype)[t],s=(0,a.N5)(o,r),c=s?.read?.source;return c&&"string"==typeof c?c:t}(h,e,u)],d=p?e[p]:t.defaultKeyValue?t.typeMap[t.defaultKeyValue]:void 0;if(!d){const t=`Type '${p||"unknown"}' is not supported`;return u?.messages&&o&&(0,c.Yc)(u,"warning",r,t,{definition:o,context:u}),void l().error(t)}const y=new d;return y.read(o,u),n?n(y):y}}(t.types)}function p(t,e,r,n){return 0!==n&&Array.isArray(e)?e.map(e=>p(t,e,r,n-1)):t(e,void 0,r)}function d(t){const e=h(t);return(t,r,n)=>{if(null==t)return t;if(Array.isArray(t)){const r=[];for(const o of t){const t=e(o,void 0,n);void 0!==t&&r.push(t)}return r}const o=e(t,void 0,n);return void 0!==o?[o]:void 0}}function y(t){if(!(0,s.P)(t))return!1;const e=t.prototype.itemType;return!(!e||!e.Type)&&("function"==typeof e.Type?g(e.Type):_(e.Type))}function g(t){return!Array.isArray(t)&&!!t&&("object"==typeof t||"function"==typeof t)&&t.prototype&&("read"in t.prototype||"fromJSON"in t||y(t))}function _(t){for(const e in t.typeMap)if(!g(t.typeMap[e]))return!1;return!0}},91429(t,e,r){r.d(e,{wg:()=>c,MZ:()=>s,$K:()=>a});var n=r(10107),o=r(79901),i=r(64108);r(93223),r(36005),r(43937);const s=n.MZ,a=i.$;function c(...t){return(0,o.w)(...t)}},93223(t,e,r){r.d(e,{e:()=>i});var n=r(66552),o=r(10107);function i(t,e={}){const r=t instanceof n.J?t:new n.J(t,e),{alwaysWriteDefaults:i,default:s,ignoreUnknown:a=!0,name:c,nonNullable:l,readOnly:u=!1}=e;return(0,o.MZ)({type:a?r.apiValues:String,json:{type:r.jsonValues,default:s,name:c,read:!u&&{reader:r.read},write:{writer:r.write,alwaysWriteDefaults:i}},nonNullable:l,readOnly:u})}},93687(t,e,r){r.d(e,{A:()=>o});var n=r(44208);class o{constructor(t,e,r,n=1,o=0){this._creator=t,this._acquireFunction=e,this._releaseFunction=r,this.allocationSize=n,this._pool=new Array(o),this._initialSize=o;for(let t=0;t<o;t++)this._pool[t]=this._creator();this.allocationSize=Math.max(n,1)}destroy(){this.prune(0)}acquire(...t){let e;if(o.test.disabled)e=this._creator();else{if(0===this._pool.length){const t=this.allocationSize;for(let e=0;e<t;e++)this._pool[e]=this._creator()}e=this._pool.pop()}return this._acquireFunction?this._acquireFunction(e,...t):function(t){return t?.acquire&&"function"==typeof t.acquire}(e)&&e.acquire(...t),e}release(t){var e;t&&!o.test.disabled&&(this._releaseFunction?this._releaseFunction(t):(e=t,e?.release&&"function"==typeof e.release&&t.release()),this._pool.push(t))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let e=t;e<this._pool.length;++e){const t=this._pool[e];this._dispose(t)}this._pool.length=t}}_dispose(t){t.dispose&&"function"==typeof t.dispose&&t.dispose()}static{this.test={disabled:!!(0,n.A)("esri-tests-disable-memory-pools")}}}},96156(t,e,r){r.d(e,{CX:()=>a,tD:()=>i,z4:()=>s});var n=r(4718),o=r(88620);function i(t){let e=t.constructor.__accessorMetadata__;const r=Object.prototype.hasOwnProperty.call(t.constructor,"__accessorMetadata__");if(e){if(!r){e=Object.create(e);for(const t in e)e[t]=(0,n.o8)(e[t]);Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0})}}else e={},Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0});return t.constructor.__accessorMetadata__}function s(t,e){const r=i(t);let n=r[e];return n||(n=r[e]={}),n}function a(t,e){return(0,o.h1)(t,e,l)}const c=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function l(t){return c.test(t)?"replace":"merge"}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9696],{1262(e,t,n){n.d(t,{L:()=>o});var r=n(799);const a={InvalidValueForAggregateFunction:"Invalid value used in aggregate function",MissingStatisticParameters:"Statistic does not have 1 or 0 Parameters",InvalidFunctionParameters:"Invalid parameters for call to {function}",UnsupportedIsLhs:"Unsupported left hand expression in is statement",UnsupportedIsRhs:"Unsupported right hand expression in is statement",UnsupportedOperator:"Unsupported operator - {operator}",UnsupportedSyntax:"Unsupported syntax - {node}",UnsupportedSqlFunction:"Sql function not found = {function}",InvalidDataType:"Invalid sql data type",InvalidDate:"Invalid date encountered",InvalidOperator:"Invalid operator encountered",InvalidTime:"Invalid time encountered",IllegalInterval:"Illegal interval",FunctionNotRecognized:"Function not recognized",InvalidTimeStamp:"Invalid timestamp encountered",InvalidParameterCount:"Invalid parameter count for call to {name}",PrimarySecondaryQualifiers:"Primary and Secondary SqlInterval qualifiers not supported",YearMonthIntervals:"Year-Month Intervals not supported",CannotCastValue:"Cannot cast value to the required data type"};class o extends Error{constructor(e,t){super((0,r.HC)(a[e],t)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,o)}}},55612(e,t,n){n.d(t,{g:()=>i});var r=n(92647);function a(e){return Number.isNaN(e)||0===e?e:Math.trunc(e)}const o="esri.core.sql.SqlTimeStampOffset";class i{constructor(e){this._timeStampOffset=e,this.declaredRootClass=o,this._millis=null,this._date=null}static isTimestampOffset(e){return"object"==typeof e&&null!=e&&"declaredRootClass"in e&&e.declaredRootClass===o}toDateTime(){return this._date??=r.c9.fromISO(this._timeStampOffset,{setZone:!0}),this._date}toMilliseconds(){return null!=this._millis?this._millis:(null!=this._date&&(this._millis??=this._date.toMillis()),this._millis??=Date.parse(this._timeStampOffset))}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return a(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return a(this.toDateTime().offset%60)}get hour(){return this.toDateTime().hour}get minute(){return this.toDateTime().minute}get second(){return this.toDateTime().second}get day(){return this.toDateTime().day}get month(){return this.toDateTime().month}get year(){return this.toDateTime().year}startOfDay(){return i.fromDateTime(this.toDateTime().startOf("day"))}static fromJSDate(e){return new i(r.c9.fromJSDate(e).toISO({includeOffset:!0}))}static fromDateTime(e){return new i(e.toISO({includeOffset:!0}))}static fromParts(e,t,n=0,r=0,a=0,o=0,s=0,u=!1,l=0,c=0){const f=`${e.toString().padStart(4,"0")}-${t.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`;let d="";o<10&&(d="0");let p=`${r.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${d+o.toString()}`;0!==s&&(p+="."+s.toString().padStart(3,"0"));const m=`${u?"-":"+"}${l.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}`;return new i(f+"T"+p+m)}toStorageFormat(){return this._timeStampOffset}toString(){return this._timeStampOffset}toSQLValue(){let e=this.toDateTime().toSQL({includeOffset:!0,includeOffsetSpace:!0});return e&&(e=e.replace(".000","")),e}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}addMilliseconds(e){const t=this.toDateTime().plus(e);return i.fromDateTime(t)}}},74639(e,t,n){n.d(t,{M:()=>l,s:()=>u});var r=n(44729),a=n(1262),o=n(55612),i=n(15032),s=n(92647);function u(e,t){const n=c[e.toLowerCase()];if(null==n)throw new a.L("FunctionNotRecognized");if(t.length<n.minParams||t.length>n.maxParams)throw new a.L("InvalidParameterCount",{name:e.toUpperCase()});return n.evaluate(t)}function l(e,t){const n=c[e.toLowerCase()];return null!=n&&t>=n.minParams&&t<=n.maxParams}const c={min:{minParams:1,maxParams:1,evaluate:e=>p(e[0],"min")},max:{minParams:1,maxParams:1,evaluate:e=>p(e[0],"max")},avg:{minParams:1,maxParams:1,evaluate:e=>f(e[0])},sum:{minParams:1,maxParams:1,evaluate:e=>function(e){if(null===e)return null;let t=0;for(let n=0;n<e.length;n++){const r=e[n];if(null!==r){if(!d(r))throw new a.L("InvalidValueForAggregateFunction");t+=r}}return t}(e[0])},stddev:{minParams:1,maxParams:1,evaluate:e=>function(e){if(null===e)return null;const t=m(e);return null===t?null:Math.sqrt(t)}(e[0])},count:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:e[0].length},var:{minParams:1,maxParams:1,evaluate:e=>m(e[0])}};function f(e){if(null===e)return null;let t=0,n=0;for(let r=0;r<e.length;r++){const o=e[r];if(null!==o){if(!d(o))throw new a.L("InvalidValueForAggregateFunction");n++,t+=o}}return 0===n?null:t/e.length}function d(e){return"number"==typeof e}function p(e,t){if(null===e)return null;let n=null,a=null;for(const u of e){let e=u;e=r.n.isDateOnly(u)||i.k.isTimeOnly(u)?u.toNumber():s.c9.isDateTime(u)?u.toMillis():o.g.isTimestampOffset(u)?u.toMilliseconds():u,(null===n||"max"===t&&null!==a&&null!==e&&a<=e||"min"===t&&null!==a&&null!==e&&a>=e)&&(n=u,a=e)}return n}function m(e){if(null===e)return null;if(0===(e=e.filter(e=>null!==e)).length)return null;const t=f(e);if(null===t)return null;let n=0;for(const r of e){if(!d(r))throw new a.L("InvalidValueForAggregateFunction");n+=(t-r)**2}return n/(e.length-1)}},89696(e,t,n){n.d(t,{A:()=>pe});var r=n(44208),a=n(5479),o=n(74639),i=n(44729),s=n(1262);function u(e){if(null!==e.precision||null!==e.secondary)throw new s.L("PrimarySecondaryQualifiers")}function l(e,t){if(t.includes(".")){const n=t.split(".");e.second=parseFloat(n[0]),e.millis=parseInt(n[1],10)}else e.second=parseFloat(t)}const c="esri.core.sql.SqlInterval";class f{constructor(){this.declaredRootClass=c,this.op="+",this.day=0,this.second=0,this.hour=0,this.month=0,this.year=0,this.minute=0,this.millis=0}static isInterval(e){return"object"==typeof e&&null!=e&&"declaredRootClass"in e&&e.declaredRootClass===c}static createFromMilliseconds(e){const t=new f;return t.second=e/1e3,t}static createFromValueAndQualifier(e,t,n){let r=null;const a=new f;if(a.op="-"===n?"-":"+","interval-period"===t.type){u(t);const n=new RegExp("^[0-9]{1,}$");if("year"===t.period||"month"===t.period)throw new s.L("YearMonthIntervals");if("second"===t.period){if(!/^[0-9]{1,}(\.[0-9]{1,}){0,1}$/.test(e))throw new s.L("IllegalInterval");l(a,e)}else{if(!n.test(e))throw new s.L("IllegalInterval");a[t.period]=parseFloat(e)}}else{if(u(t.start),u(t.end),"year"===t.start.period||"month"===t.start.period||"year"===t.end.period||"month"===t.end.period)throw new s.L("YearMonthIntervals");switch(t.start.period){case"day":switch(t.end.period){case"hour":if(r=new RegExp("^[0-9]{1,} [0-9]{1,}$"),!r.test(e))throw new s.L("IllegalInterval");a[t.start.period]=parseFloat(e.split(" ")[0]),a[t.end.period]=parseFloat(e.split(" ")[1]);break;case"minute":if(r=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,}$"),!r.test(e))throw new s.L("IllegalInterval");{a[t.start.period]=parseFloat(e.split(" ")[0]);const n=e.split(" ")[1].split(":");a.hour=parseFloat(n[0]),a.minute=parseFloat(n[1])}break;case"second":if(r=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,2}:[0-9]{1,}(\\.[0-9]{1,}){0,1}$"),!r.test(e))throw new s.L("IllegalInterval");{a[t.start.period]=parseFloat(e.split(" ")[0]);const n=e.split(" ")[1].split(":");a.hour=parseFloat(n[0]),a.minute=parseFloat(n[1]),l(a,n[2])}break;default:throw new s.L("IllegalInterval")}break;case"hour":switch(t.end.period){case"minute":if(r=new RegExp("^[0-9]{1,}:[0-9]{1,}$"),!r.test(e))throw new s.L("IllegalInterval");a.hour=parseFloat(e.split(":")[0]),a.minute=parseFloat(e.split(":")[1]);break;case"second":if(r=new RegExp("^[0-9]{1,}:[0-9]{1,2}:[0-9]{1,}(\\.[0-9]{1,}){0,1}$"),!r.test(e))throw new s.L("IllegalInterval");{const t=e.split(":");a.hour=parseFloat(t[0]),a.minute=parseFloat(t[1]),l(a,t[2])}break;default:throw new s.L("IllegalInterval")}break;case"minute":if("second"!==t.end.period)throw new s.L("IllegalInterval");if(r=new RegExp("^[0-9]{1,}:[0-9]{1,}(\\.[0-9]{1,}){0,1}$"),!r.test(e))throw new s.L("IllegalInterval");{const t=e.split(":");a.minute=parseFloat(t[0]),l(a,t[1])}break;default:throw new s.L("IllegalInterval")}}return a}valueInMilliseconds(){return("-"===this.op?-1:1)*(this.millis+1e3*this.second+60*this.minute*1e3+60*this.hour*60*1e3+24*this.day*60*60*1e3+this.month*(365/12)*24*60*60*1e3+365*this.year*24*60*60*1e3)}}var d=n(55612),p=n(15032),m=n(3330),h=n(92647);const w=/^(\d{1,2}):(\d{1,2}):(\d{1,2})$/,v=/^(\d{1,2}):(\d{1,2})$/,I=/^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/,g=/^(\d{4})-(\d{1,2})-(\d{1,2})$/,y=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$/,L=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)? {0,1}(\+|-)(\d{1,2}):(\d{1,2})$/,T=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})? {0,1}(\+|-)(\d{1,2}):(\d{1,2})$/,N=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/;function O(e,t){if(t instanceof h.bo)return t===m.GB.instance?h.c9.fromMillis(e.getTime(),{zone:m.GB.instance}):h.c9.fromJSDate(e,{zone:t});switch(t){case"system":case"local":case null:return h.c9.fromJSDate(e);default:return"unknown"===t?.toLowerCase()?h.c9.fromMillis(e.getTime(),{zone:m.GB.instance}):h.c9.fromJSDate(e,{zone:t})}}function E(e){return f.isInterval(e)}function S(e){return h.c9.isDateTime(e)}function x(e){return i.n.isDateOnly(e)}function C(e){return p.k.isTimeOnly(e)}function _(e){return d.g.isTimestampOffset(e)}function D(e){let t=w.exec(e);if(null!==t){const[,e,n,r]=t,a=p.k.fromParts(parseInt(e,10),parseInt(n,10),parseInt(r,10),0);if(null!==a)return a;throw new s.L("InvalidTime")}if(t=v.exec(e),null!==t){const[,e,n]=t,r=p.k.fromParts(parseInt(e,10),parseInt(n,10),0,0);if(null!==r)return r;throw new s.L("InvalidTime")}if(t=I.exec(e),null!==t){const[,e,n,r,a]=t,o=p.k.fromParts(parseInt(e,10),parseInt(n,10),parseInt(r,10),parseInt(a,10));if(null!==o)return o;throw new s.L("InvalidTime")}throw new s.L("InvalidTime")}function M(e,t){let n=y.exec(e);if(null!==n){const[,e,r,a,o,i,u,l]=n,c=h.c9.fromObject({year:parseInt(e,10),month:parseInt(r,10),day:parseInt(a,10),hour:parseInt(o,10),minute:parseInt(i,10),second:parseInt(u,10),millisecond:l?parseInt(l.replace(".",""),10):0},{zone:(0,m.Qo)(t)});if(!1===c.isValid)throw new s.L("InvalidTimeStamp");return c}if(n=L.exec(e),null!==n){const[,e,t,r,a,o,i,u,l,c,f]=n,p=d.g.fromParts(parseInt(e,10),parseInt(t,10),parseInt(r,10),parseInt(a,10),parseInt(o,10),parseInt(i,10),u?parseInt(u.replace(".",""),10):0,"-"===l,parseInt(c,10),parseInt(f,10));if(!1===p.isValid)throw new s.L("InvalidTimeStamp");return p}if(n=T.exec(e),null!==n){const[,e,t,r,a,o,i,u,l]=n,c=d.g.fromParts(parseInt(e,10),parseInt(t,10),parseInt(r,10),parseInt(a,10),parseInt(o,10),0,0,"-"===i,parseInt(u,10),parseInt(l,10));if(!1===c.isValid)throw new s.L("InvalidTimeStamp");return c}if(n=N.exec(e),null!==n){const[,e,r,a,o,i]=n,u=h.c9.fromObject({year:parseInt(e,10),month:parseInt(r,10),day:parseInt(a,10),hour:parseInt(o,10),minute:parseInt(i,10),second:0},{zone:(0,m.Qo)(t)});if(!1===u.isValid)throw new s.L("InvalidTimeStamp");return u}if(n=g.exec(e),null!==n){const[,e,r,a]=n,o=h.c9.fromObject({year:parseInt(e,10),month:parseInt(r,10),day:parseInt(a,10),hour:0,minute:0,second:0},{zone:(0,m.Qo)(t)});if(!1===o.isValid)throw new s.L("InvalidTimeStamp");return o}throw new s.L("InvalidTimeStamp")}function b(e,t){const n=g.exec(e);if(null===n)try{return M(e,t)}catch{throw new s.L("InvalidDate")}const[,r,a,o]=n,u=i.n.fromParts(parseInt(r,10),parseInt(a,10),parseInt(o,10));if(null===u)throw new s.L("InvalidDate");return u}var P=n(34727),A=n(799),F=n(54218);function $(e){return!!S(e)||!!_(e)}function R(e){return!!(S(e)||x(e)||_(e)||C(e))}function U(e){if(S(e))return e.toMillis();if(x(e))return e.toNumber();if(_(e))return e.toMilliseconds();throw new s.L("InvalidDataType")}function k(e,t,n){if(null==e||null==t)return null;if((0,F.Et)(e)){if((0,F.Et)(t))return V(e,t,n);if((0,F.Kg)(t))return function(e,t,n){const r=parseFloat(t);if(!isNaN(r))return V(e,r,n);const a=e.toString();switch(n){case"<>":return a!==t;case"=":return a===t;case">":return a>t;case"<":return a<t;case">=":return a>=t;case"<=":return a<=t}}(e,t,n);if(R(t))throw new s.L("InvalidOperator");if(x(t))throw new s.L("InvalidOperator")}else if((0,F.Kg)(e)){if((0,F.Et)(t))return function(e,t,n){const r=parseFloat(e);if(!isNaN(r))return V(r,t,n);const a=t.toString();switch(n){case"<>":return e!==a;case"=":return e===a;case">":return e>a;case"<":return e<a;case">=":return e>=a;case"<=":return e<=a}}(e,t,n);if((0,F.Kg)(t))return function(e,t,n){switch(n){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}(e,t,n);if(S(t))throw new s.L("InvalidOperator");if(x(t))throw new s.L("InvalidOperator");if(C(t))throw new s.L("InvalidOperator");if(_(t))throw new s.L("InvalidOperator")}else if(S(e)){if($(t)){if((0,m.Y4)(e.zone)){if(S(t)&&!(0,m.Y4)(t.zone))return z(e,t,n);if(_(t))return z(e,t,n)}else if(S(t)&&(0,m.Y4)(t.zone))return z(e,t,n);return V(U(e),U(t),n)}if((0,F.Kg)(t))throw new s.L("InvalidOperator");if(x(t))return function(e,t,n){const r=t.toDateTimeLuxon(e.zone);return V((e=e.startOf("day")).toMillis(),r.toMillis(),n)}(e,t,n);if(C(t))throw new s.L("InvalidOperator");if((0,F.Et)(t))throw new s.L("InvalidOperator")}else if(x(e)){if(_(t))return function(e,t,n){const r=e.toDateTimeLuxon(t.toDateTime().zone);return t=t.startOfDay(),V(r.toMillis(),t.toMilliseconds(),n)}(e,t,n);if(S(t))return function(e,t,n){const r=e.toDateTimeLuxon(t.zone);return t=t.startOf("day"),V(r.toMillis(),t.toMillis(),n)}(e,t,n);if((0,F.Kg)(t))throw new s.L("InvalidOperator");if(x(t))return function(e,t,n){const r=e.compare(t);switch(n){case"<>":return 0!==r;case"=":return 0===r;case">":return r>0;case"<":return r<0;case">=":return r>=0;case"<=":return r<=0}}(e,t,n);if(C(t))throw new s.L("InvalidOperator");if((0,F.Et)(t))throw new s.L("InvalidOperator")}else if(C(e)){if(C(t))return V(e.toNumber(),t.toNumber(),n);if((0,F.Kg)(t))throw new s.L("InvalidOperator");if((0,F.Et)(t))throw new s.L("InvalidOperator");if(x(t))throw new s.L("InvalidOperator");if($(t))throw new s.L("InvalidOperator")}else if(_(e)){if($(t))return h.c9.isDateTime(t)&&(0,m.Y4)(t.zone)?z(e,t,n):V(U(e),U(t),n);if((0,F.Kg)(t))throw new s.L("InvalidOperator");if(x(t))return function(e,t,n){const r=t.toDateTimeLuxon(e.toDateTime().zone);return V((e=e.startOfDay()).toMilliseconds(),r.toMillis(),n)}(e,t,n);if(C(t))throw new s.L("InvalidOperator");if((0,F.Et)(t))throw new s.L("InvalidOperator")}switch(n){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}function V(e,t,n){switch(n){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}function z(e,t,n){d.g.isTimestampOffset(e)&&(e=e.toDateTime()),d.g.isTimestampOffset(t)&&(t=t.toDateTime());const r=H(e),a=H(t);switch(n){case"<>":return r!==a;case"=":return r===a;case">":return r>a;case"<":return r<a;case">=":return r>=a;case"<=":return r<=a}}function H(e){return 321408e5*e.year+26784e5*e.month+864e5*e.day+36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}function q(e,t,n){const r=j[e.toLowerCase()];if(null==r)throw new s.L("FunctionNotRecognized");if(t.length<r.minParams||t.length>r.maxParams)throw new s.L("InvalidParameterCount",{name:e.toUpperCase()});return r.evaluate(t,n)}function K(e,t){const n=j[e.toLowerCase()];return null!=n&&t>=n.minParams&&t<=n.maxParams}function Z(e){return!((0,F.$P)(e)||x(e)||S(e)||C(e)||_(e))}function Y(e){return x(e)||C(e)?e.toString():_(e)?e.toSQLValue():S(e)?0===e.millisecond?e.toFormat("yyyy-LL-dd HH:mm:ss"):e.toSQL({includeOffset:!1}):(0,F.$P)(e)?Y(h.c9.fromJSDate(e)):e.toString()}const j={extract:{minParams:2,maxParams:2,evaluate:([e,t])=>{if(null==t)return null;if((0,F.$P)(t))switch(e.toUpperCase()){case"SECOND":return t.getSeconds();case"MINUTE":return t.getMinutes();case"HOUR":return t.getHours();case"DAY":return t.getDate();case"MONTH":return t.getMonth()+1;case"YEAR":return t.getFullYear();case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":return 0;case"DOW":return h.c9.fromJSDate(t,{zone:"system"}).weekday;case"DOY":return h.c9.fromJSDate(t,{zone:"system"}).ordinal;case"WEEK":return h.c9.fromJSDate(t,{zone:"system"}).weekNumber}else if(S(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour;case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":throw new s.L("InvalidFunctionParameters",{function:"EXTRACT"});case"DOW":return t.weekday;case"DOY":return t.ordinal;case"WEEK":return t.weekNumber}else if(x(t))switch(e.toUpperCase()){case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":throw new s.L("InvalidFunctionParameters",{function:"EXTRACT"});case"DOW":return t.toDateTime("unknown").weekday;case"DOY":return t.toDateTime("unknown").ordinal;case"WEEK":return t.toDateTime("unknown").weekNumber}else if(C(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour}else if(_(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour;case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":return t.timezoneOffsetHour;case"TIMEZONE_MINUTE":return t.timezoneOffsetMinutes;case"DOW":return t.toDateTime().weekday;case"DOY":return t.toDateTime().ordinal;case"WEEK":return t.toDateTime().weekNumber}throw new s.L("InvalidFunctionParameters",{function:"EXTRACT"})}},substring:{minParams:2,maxParams:3,evaluate:e=>{if(2===e.length){const[t,n]=e;return null==t||null==n?null:t.toString().substring(n-1)}if(3===e.length){const[t,n,r]=e;return null==t||null==n||null==r?null:r<=0?"":t.toString().substring(n-1,n+r-1)}}},position:{minParams:2,maxParams:2,evaluate:([e,t])=>null==e||null==t?null:t.indexOf(e)+1},trim:{minParams:2,maxParams:3,evaluate:e=>{const t=3===e.length,n=t?e[1]:" ",r=t?e[2]:e[1];if(null==n||null==r)return null;const a=`(${(0,A.Cj)(n)})`;switch(e[0]){case"BOTH":return r.replaceAll(new RegExp(`^${a}*|${a}*$`,"g"),"");case"LEADING":return r.replaceAll(new RegExp(`^${a}*`,"g"),"");case"TRAILING":return r.replaceAll(new RegExp(`${a}*$`,"g"),"")}throw new s.L("InvalidFunctionParameters",{function:"TRIM"})}},abs:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.abs(e[0])},ceiling:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.ceil(e[0])},floor:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.floor(e[0])},log:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.log(e[0])},log10:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.log(e[0])*Math.LOG10E},sin:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.sin(e[0])},cos:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.cos(e[0])},tan:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.tan(e[0])},asin:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.asin(e[0])},acos:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.acos(e[0])},atan:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.atan(e[0])},sign:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:e[0]>0?1:e[0]<0?-1:0},power:{minParams:2,maxParams:2,evaluate:e=>null==e[0]||null==e[1]?null:e[0]**e[1]},mod:{minParams:2,maxParams:2,evaluate:e=>null==e[0]||null==e[1]?null:e[0]%e[1]},round:{minParams:1,maxParams:2,evaluate:e=>{const t=e[0],n=2===e.length?10**e[1]:1;return null==t?null:Math.round(t*n)/n}},truncate:{minParams:1,maxParams:2,evaluate:e=>null==e[0]?null:1===e.length||0===e[1]?Math.trunc(e[0]):(0,P.pF)("trunc",e[0],-Number(e[1]))},char_length:{minParams:1,maxParams:1,evaluate:e=>(0,F.Kg)(e[0])?e[0].length:0},concat:{minParams:1,maxParams:1/0,evaluate:e=>{let t="";for(let n=0;n<e.length;n++){if(null==e[n])return null;t+=e[n].toString()}return t}},lower:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:e[0].toString().toLowerCase()},upper:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:e[0].toString().toUpperCase()},coalesce:{minParams:1,maxParams:1/0,evaluate:e=>{for(const t of e)if(null!==t)return t;return null}},cosh:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.cosh(e[0])},sinh:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.sinh(e[0])},tanh:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.tanh(e[0])},nullif:{minParams:2,maxParams:2,evaluate:e=>k(e[0],e[1],"=")?null:e[0]},cast:{minParams:2,maxParams:2,evaluate:(e,t)=>{const n=e[0],r=e[1];if(null===n)return null;switch(r.type){case"integer":{if(!Z(n))throw new s.L("CannotCastValue");const e=parseInt(n,10);if(isNaN(e))throw new s.L("CannotCastValue");return e}case"smallint":{if(!Z(n))throw new s.L("CannotCastValue");const e=parseInt(n,10);if(isNaN(e))throw new s.L("CannotCastValue");if(e>32767||e<-32767)throw new s.L("CannotCastValue");return e}case"float":case"real":{if(!Z(n))throw new s.L("CannotCastValue");const e=parseFloat(n);if(isNaN(e))throw new s.L("CannotCastValue");return e}case"time":return function(e){if((0,F.$P)(e))return p.k.fromDateJS(e);if(S(e))return p.k.fromDateTime(e);if(x(e))throw new s.L("CannotCastValue");if(C(e))return e;if(_(e))return p.k.fromSqlTimeStampOffset(e);if((0,F.Kg)(e))return D(e);throw new s.L("CannotCastValue")}(n);case"date":return function(e){if((0,F.$P)(e))return i.n.fromDateJS(e);if(S(e))return i.n.fromParts(e.year,e.month,e.day);if(x(e))return e;if(C(e))throw new s.L("CannotCastValue");if(_(e)&&null===i.n.fromParts(e.year,e.month,e.day))throw new s.L("CannotCastValue");if((0,F.Kg)(e)){const t=i.n.fromReader(e);if(null!==t&&t.isValid)return t}throw new s.L("CannotCastValue")}(n);case"timestamp":return function(e,t){if((0,F.$P)(e))return O(e,t);if(S(e))return e;if(x(e))return e.toDateTimeLuxon("unknown");if(C(e))throw new s.L("CannotCastValue");if(_(e))return e;if((0,F.Kg)(e))return M(e,"unknown");throw new s.L("CannotCastValue")}(n,t);case"varchar":{const e=Y(n);if(e.length>r.size)throw new s.L("CannotCastValue");return e}default:throw new s.L("InvalidDataType")}}}};function W(e,t,n,r){if("||"===e)return q("concat",[t,n],r);if(null===t||null===n)return null;if((0,F.Et)(t)){if((0,F.Et)(n))return J(t,n,e);if(E(n))return function(e,t,n){switch(n){case"+":return f.createFromMilliseconds(e+t.valueInMilliseconds());case"-":return f.createFromMilliseconds(e-t.valueInMilliseconds());case"*":return f.createFromMilliseconds(e*t.valueInMilliseconds());case"/":return f.createFromMilliseconds(e/t.valueInMilliseconds())}throw new s.L("InvalidOperator")}(t,n,e);if(C(n))return function(){throw new s.L("InvalidOperator")}();if(x(n))return function(){throw new s.L("InvalidOperator")}();if(_(n))return function(){throw new s.L("InvalidOperator")}();if(S(n))return function(){throw new s.L("InvalidOperator")}();if((0,F.Kg)(n))return function(e,t,n){const r=parseFloat(t);if(isNaN(r))throw new s.L("InvalidOperator");return J(e,r,n)}(t,n,e);throw new s.L("InvalidOperator")}if(x(t)){if((0,F.Et)(n))return function(e,t,n){const r=1e3*t*24*60*60;switch(n){case"+":return e.plus("milliseconds",r);case"-":return e.plus("milliseconds",-1*r)}throw new s.L("InvalidOperator")}(t,n,e);if(E(n))return function(e,t,n){switch(n){case"+":return e.plus("milliseconds",t.valueInMilliseconds());case"-":return e.plus("milliseconds",-1*t.valueInMilliseconds())}throw new s.L("InvalidOperator")}(t,n,e);if(C(n))return function(){throw new s.L("InvalidOperator")}();if(x(n))return function(e,t,n){if("-"===n)return e.toDateTimeLuxon("UTC").diff(t.toDateTimeLuxon("UTC")).as("days");throw new s.L("InvalidOperator")}(t,n,e);if(_(n))return function(e,t,n){if("-"===n)return e.toDateTimeLuxon(t.toDateTime().zone).diff(t.toDateTime()).as("days");throw new s.L("InvalidOperator")}(t,n,e);if(S(n))return function(e,t,n){if("-"===n)return e.toDateTimeLuxon(t.zone).diff(t).as("days");throw new s.L("InvalidOperator")}(t,n,e);if((0,F.Kg)(n))return function(){throw new s.L("InvalidOperator")}();throw new s.L("InvalidOperator")}if(C(t)){if((0,F.Et)(n))return function(e,t,n){const r=1e3*t*24*60*60;switch(n){case"+":return e.plus("milliseconds",r);case"-":return e.plus("milliseconds",-1*r)}throw new s.L("InvalidOperator")}(t,n,e);if(E(n))return function(e,t,n){switch(n){case"+":return e.plus("milliseconds",t.valueInMilliseconds());case"-":return e.plus("milliseconds",-1*t.valueInMilliseconds())}throw new s.L("InvalidOperator")}(t,n,e);if(C(n))return function(){throw new s.L("InvalidOperator")}();if(x(n))return function(){throw new s.L("InvalidOperator")}();if(_(n))return function(){throw new s.L("InvalidOperator")}();if(S(n))return function(){throw new s.L("InvalidOperator")}();if((0,F.Kg)(n))return function(){throw new s.L("InvalidOperator")}();throw new s.L("InvalidOperator")}if(E(t)){if((0,F.Et)(n))return function(e,t,n){switch(n){case"+":return f.createFromMilliseconds(e.valueInMilliseconds()+t);case"-":return f.createFromMilliseconds(e.valueInMilliseconds()-t);case"*":return f.createFromMilliseconds(e.valueInMilliseconds()*t);case"/":return f.createFromMilliseconds(e.valueInMilliseconds()/t)}throw new s.L("InvalidOperator")}(t,n,e);if(E(n))return function(e,t,n){switch(n){case"+":return f.createFromMilliseconds(e.valueInMilliseconds()+t.valueInMilliseconds());case"-":return f.createFromMilliseconds(e.valueInMilliseconds()-t.valueInMilliseconds());case"*":return f.createFromMilliseconds(e.valueInMilliseconds()*t.valueInMilliseconds());case"/":return f.createFromMilliseconds(e.valueInMilliseconds()/t.valueInMilliseconds())}throw new s.L("InvalidOperator")}(t,n,e);if(C(n))return function(e,t,n){if("+"===n)return t.plus("milliseconds",e.valueInMilliseconds());throw new s.L("InvalidOperator")}(t,n,e);if(x(n))return function(e,t,n){if("+"===n)return t.plus("milliseconds",e.valueInMilliseconds());throw new s.L("InvalidOperator")}(t,n,e);if(_(n))return function(e,t,n){if("+"===n)return t.addMilliseconds(e.valueInMilliseconds());throw new s.L("InvalidOperator")}(t,n,e);if(S(n))return function(e,t,n){switch(n){case"+":return t.plus({milliseconds:e.valueInMilliseconds()});case"-":return e.valueInMilliseconds()-t.toMillis()}throw new s.L("InvalidOperator")}(t,n,e);if((0,F.Kg)(n))return function(){throw new s.L("InvalidOperator")}();throw new s.L("InvalidOperator")}if(S(t)){if((0,F.Et)(n))return function(e,t,n){const r=1e3*t*24*60*60;switch(n){case"+":return e.plus({milliseconds:r});case"-":return e.minus({milliseconds:r})}throw new s.L("InvalidOperator")}(t,n,e);if(E(n))return function(e,t,n){switch(n){case"+":return e.plus({milliseconds:t.valueInMilliseconds()});case"-":return e.minus({milliseconds:t.valueInMilliseconds()})}throw new s.L("InvalidOperator")}(t,n,e);if(C(n))return function(){throw new s.L("InvalidOperator")}();if(x(n))return function(e,t,n){if("-"===n)return e.diff(t.toDateTimeLuxon(e.zone)).as("days");throw new s.L("InvalidOperator")}(t,n,e);if(_(n))return function(e,t,n){if("-"===n)return e.diff(t.toDateTime()).as("days");throw new s.L("InvalidOperator")}(t,n,e);if(S(n))return function(e,t,n){if("-"===n)return e.diff(t).as("days");throw new s.L("InvalidOperator")}(t,n,e);if((0,F.Kg)(n))return function(){throw new s.L("InvalidOperator")}();throw new s.L("InvalidOperator")}if(_(t)){if((0,F.Et)(n))return function(e,t,n){const r=1e3*t*24*60*60;switch(n){case"+":return e.addMilliseconds(r);case"-":return e.addMilliseconds(-1*r)}throw new s.L("InvalidOperator")}(t,n,e);if(E(n))return function(e,t,n){switch(n){case"+":return e.addMilliseconds(t.valueInMilliseconds());case"-":return e.addMilliseconds(-1*t.valueInMilliseconds())}throw new s.L("InvalidOperator")}(t,n,e);if(C(n))return function(){throw new s.L("InvalidOperator")}();if(x(n))return function(e,t,n){if("-"===n)return e.toDateTime().diff(t.toDateTimeLuxon(e.toDateTime().zone)).as("days");throw new s.L("InvalidOperator")}(t,n,e);if(_(n))return function(e,t,n){if("-"===n)return e.toDateTime().diff(t.toDateTime()).as("days");throw new s.L("InvalidOperator")}(t,n,e);if(S(n))return function(e,t,n){if("-"===n)return e.toDateTime().diff(t).as("days");throw new s.L("InvalidOperator")}(t,n,e);if((0,F.Kg)(n))return function(){throw new s.L("InvalidOperator")}();throw new s.L("InvalidOperator")}if((0,F.Kg)(t)){if((0,F.Et)(n))return function(e,t,n){const r=parseFloat(e);if(isNaN(r))throw new s.L("InvalidOperator");return J(r,t,n)}(t,n,e);if(E(n))return function(){throw new s.L("InvalidOperator")}();if(C(n))return function(){throw new s.L("InvalidOperator")}();if(x(n))return function(){throw new s.L("InvalidOperator")}();if(_(n))return function(){throw new s.L("InvalidOperator")}();if(S(n))return function(){throw new s.L("InvalidOperator")}();if((0,F.Kg)(n))return function(e,t,n){if("+"===n)return e+t;throw new s.L("InvalidOperator")}(t,n,e);throw new s.L("InvalidOperator")}throw new s.L("InvalidOperator")}function J(e,t,n){switch(n){case"+":return e+t;case"-":return e-t;case"*":return e*t;case"/":return e/t}throw new s.L("InvalidOperator")}function*Q(e){if(null==e)return;const t=[e];for(;t.length;){const e=t.pop();switch(yield e,e.type){case"when-clause":t.push(e.value),t.push(e.operand);break;case"case-expression":{const n=[];for(const t of e.clauses)n.push(t);"simple"===e.format&&n.push(e.operand),null!=e.else&&n.push(e.else);for(let e=n.length-1;e>=0;e--)t.push(n[e]);break}case"expression-list":for(let n=e.value.length-1;n>=0;n--)t.push(e.value[n]);break;case"unary-expression":t.push(e.expr);break;case"binary-expression":t.push(e.right),t.push(e.left);break;case"function":t.push(e.args);break;case"interval":t.push(e.qualifier),t.push(e.value);break;case"interval-qualifier":t.push(e.end),t.push(e.start)}}}class B extends SyntaxError{constructor(e,t,n,r){super(e),this.expected=t,this.found=n,this.location=r,this.name="SyntaxError"}format(e){let t="Error: "+this.message;if(this.location){let n=null;const r=e.find(e=>e.source===this.location.source);r&&(n=r.text.split(/\r\n|\n|\r/g));const a=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(a):a,i=this.location.source+":"+o.line+":"+o.column;if(n){const e=this.location.end,r="".padEnd(o.line.toString().length," "),s=n[a.line-1],u=(a.line===e.line?e.column:s.length+1)-a.column||1;t+="\n --\x3e "+i+"\n"+r+" |\n"+o.line+" | "+s+"\n"+r+" | "+"".padEnd(a.column-1," ")+"".padEnd(u,"^")}else t+="\n at "+i}return t}static buildMessage(e,t){function n(e){return e.codePointAt(0).toString(16).toUpperCase()}const r=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function a(e){return r?e.replace(r,e=>"\\u{"+n(e)+"}"):e}function o(e){return a(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+n(e)))}function i(e){return a(e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+n(e)))}const s={literal:e=>'"'+o(e.text)+'"',class(e){const t=e.parts.map(e=>Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function u(e){return s[e.type](e)}return"Expected "+function(e){const t=e.map(u);if(t.sort(),t.length>0){let e=1;for(let n=1;n<t.length;n++)t[n-1]!==t[n]&&(t[e]=t[n],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."}}function G(e,t){const n={},r=(t=void 0!==t?t:{}).grammarSource,a={start:Tn};let o=Tn;const i="!",s="=",u=">=",l=">",c="<=",f="<>",d="!=",p="||",m="@",h="'",w="N'",v="''",I=".",g="null",y="true",L="false",T="in",N="is",O="like",E="escape",S="not",x="and",C="or",_="between",D="from",M="for",b="substring",P="extract",A="trim",F="position",$="timestamp",R="date",U="time",k="leading",V="trailing",z="both",H="cast",q="as",K="integer",Z="int",Y="smallint",j="float",W="real",J="varchar",Q="to",G="interval",X="year",ee="timezone_hour",te="timezone_minute",ne="month",re="day",ae="hour",oe="minute",ie="second",se="dow",ue="doy",le="week",ce="case",fe="end",de="when",pe="then",me="else",he=",",we="(",ve=")",Ie="`",ge=/^[<-=]/,ye=/^[+\-]/,Le=/^[*\/]/,Te=/^[A-Za-z_\x80-\uFFFF]/,Ne=/^[A-Za-z0-9_]/,Oe=/^[A-Za-z0-9_.\x80-\uFFFF]/,Ee=/^["]/,Se=/^[^']/,xe=/^[0-9]/,Ce=/^[eE]/,_e=/^[ \t\n\r]/,De=/^[^`]/,Me=vn("!",!1),be=vn("=",!1),Pe=vn(">=",!1),Ae=vn(">",!1),Fe=vn("<=",!1),$e=vn("<>",!1),Re=In([["<","="]],!1,!1,!1),Ue=vn("!=",!1),ke=In(["+","-"],!1,!1,!1),Ve=vn("||",!1),ze=In(["*","/"],!1,!1,!1),He=In([["A","Z"],["a","z"],"_",["€","￿"]],!1,!1,!1),qe=In([["A","Z"],["a","z"],["0","9"],"_"],!1,!1,!1),Ke=In([["A","Z"],["a","z"],["0","9"],"_",".",["€","￿"]],!1,!1,!1),Ze=In(['"'],!1,!1,!1),Ye=vn("@",!1),je=vn("'",!1),We=vn("N'",!1),Je=vn("''",!1),Qe=In(["'"],!0,!1,!1),Be=vn(".",!1),Ge=In([["0","9"]],!1,!1,!1),Xe=In(["e","E"],!1,!1,!1),et=vn("NULL",!0),tt=vn("TRUE",!0),nt=vn("FALSE",!0),rt=vn("IN",!0),at=vn("IS",!0),ot=vn("LIKE",!0),it=vn("ESCAPE",!0),st=vn("NOT",!0),ut=vn("AND",!0),lt=vn("OR",!0),ct=vn("BETWEEN",!0),ft=vn("FROM",!0),dt=vn("FOR",!0),pt=vn("SUBSTRING",!0),mt=vn("EXTRACT",!0),ht=vn("TRIM",!0),wt=vn("POSITION",!0),vt=vn("TIMESTAMP",!0),It=vn("DATE",!0),gt=vn("TIME",!0),yt=vn("LEADING",!0),Lt=vn("TRAILING",!0),Tt=vn("BOTH",!0),Nt=vn("CAST",!0),Ot=vn("AS",!0),Et=vn("INTEGER",!0),St=vn("INT",!0),xt=vn("SMALLINT",!0),Ct=vn("FLOAT",!0),_t=vn("REAL",!0),Dt=vn("VARCHAR",!0),Mt=vn("TO",!0),bt=vn("INTERVAL",!0),Pt=vn("YEAR",!0),At=vn("TIMEZONE_HOUR",!0),Ft=vn("TIMEZONE_MINUTE",!0),$t=vn("MONTH",!0),Rt=vn("DAY",!0),Ut=vn("HOUR",!0),kt=vn("MINUTE",!0),Vt=vn("SECOND",!0),zt=vn("DOW",!0),Ht=vn("DOY",!0),qt=vn("WEEK",!0),Kt=vn("CASE",!0),Zt=vn("END",!0),Yt=vn("WHEN",!0),jt=vn("THEN",!0),Wt=vn("ELSE",!0),Jt=vn(",",!1),Qt=vn("(",!1),Bt=vn(")",!1),Gt=In([" ","\t","\n","\r"],!1,!1,!1),Xt=vn("`",!1),en=In(["`"],!0,!1,!1);function tn(e,t,n){return{op:t,expr:n,location:hn()}}function nn(e,t,n){return{op:t,expr:n,location:hn()}}function rn(e,t){return{op:e,expr:t,location:hn()}}function an(e,t,n){return{op:t,expr:n,location:hn()}}function on(e,t,n){return{op:t,expr:n,location:hn()}}function sn(){return"'"}let un=0|t.peg$currPos,ln=un;const cn=[{line:1,column:1}];let fn,dn=un,pn=t.peg$maxFailExpected||[],mn=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in a))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=a[t.startRule]}function hn(){return yn(ln,un)}function wn(e,t){throw function(e,t){return new B(e,null,null,t)}(e,t=void 0!==t?t:yn(ln,un))}function vn(e,t){return{type:"literal",text:e,ignoreCase:t}}function In(e,t,n,r){return{type:"class",parts:e,inverted:t,ignoreCase:n,unicode:r}}function gn(t){let n,r=cn[t];if(r)return r;if(t>=cn.length)n=cn.length-1;else for(n=t;!cn[--n];);for(r=cn[n],r={line:r.line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return cn[t]=r,r}function yn(e,t,n){const a=gn(e),o=gn(t);return{source:r,start:{offset:e,line:a.line,column:a.column},end:{offset:t,line:o.line,column:o.column}}}function Ln(e){un<dn||(un>dn&&(dn=un,pn=[]),pn.push(e))}function Tn(){let e,t;return e=un,oa(),t=On(),t!==n?(oa(),ln=e,e=t):(un=e,e=n),e}function Nn(){let e,t,r,a,o,i,s,u;if(e=un,t=ra(),t!==n){for(oa(),r=[],a=On();a!==n;)r.push(a),a=un,o=un,i=oa(),s=na(),s!==n?(u=oa(),i=[i,s,u],o=i):(un=o,o=n),o!==n?(o=On(),o===n?(un=a,a=n):a=o):a=o;a=oa(),o=aa(),o!==n?(ln=e,e=function(e){return{type:"expression-list",location:hn(),value:e}}(r)):(un=e,e=n)}else un=e,e=n;return e}function On(){let e,t,r,a,o,i;if(e=un,t=En(),t!==n){for(r=[],a=un,oa(),o=wr(),o!==n?(oa(),i=En(),i!==n?(ln=a,a=tn(0,o,i)):(un=a,a=n)):(un=a,a=n);a!==n;)r.push(a),a=un,oa(),o=wr(),o!==n?(oa(),i=En(),i!==n?(ln=a,a=tn(0,o,i)):(un=a,a=n)):(un=a,a=n);ln=e,e=function(e,t){return ca(e,t)}(t,r)}else un=e,e=n;return e}function En(){let e,t,r,a,o,i;if(e=un,t=Sn(),t!==n){for(r=[],a=un,oa(),o=hr(),o!==n?(oa(),i=Sn(),i!==n?(ln=a,a=nn(0,o,i)):(un=a,a=n)):(un=a,a=n);a!==n;)r.push(a),a=un,oa(),o=hr(),o!==n?(oa(),i=Sn(),i!==n?(ln=a,a=nn(0,o,i)):(un=a,a=n)):(un=a,a=n);ln=e,e=function(e,t){return ca(e,t)}(t,r)}else un=e,e=n;return e}function Sn(){let t,r,a,o,u;return t=un,r=mr(),r===n&&(r=un,33===e.charCodeAt(un)?(a=i,un++):(a=n,0===mn&&Ln(Me)),a!==n?(o=un,mn++,61===e.charCodeAt(un)?(u=s,un++):(u=n,0===mn&&Ln(be)),mn--,u===n?o=void 0:(un=o,o=n),o!==n?(a=[a,o],r=a):(un=r,r=n)):(un=r,r=n)),r!==n?(a=oa(),o=Sn(),o!==n?(ln=t,t=function(e){return function(e,t,n){return{type:"unary-expression",location:n,operator:"NOT",expr:t}}(0,e,hn())}(o)):(un=t,t=n)):(un=t,t=n),t===n&&(t=function(){let e,t,r,a;return e=un,t=Dn(),t!==n?(r=un,oa(),a=function(){let e;return e=function(){let e,t,r,a,o;if(e=un,t=[],r=un,oa(),a=xn(),a!==n?(oa(),o=Dn(),o!==n?(ln=r,r=rn(a,o)):(un=r,r=n)):(un=r,r=n),r!==n)for(;r!==n;)t.push(r),r=un,oa(),a=xn(),a!==n?(oa(),o=Dn(),o!==n?(ln=r,r=rn(a,o)):(un=r,r=n)):(un=r,r=n);else t=n;return t!==n&&(ln=e,t=function(e){return{type:"arithmetic",tail:e}}(t)),e=t,e}(),e===n&&(e=function(){let e,t,r;return e=un,t=_n(),t!==n?(oa(),r=Nn(),r!==n?(ln=e,e=function(e,t){return{op:e,right:t}}(t,r)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=_n(),t!==n?(oa(),r=zn(),r!==n?(ln=e,e=function(e,t){return{op:e,right:t}}(t,r)):(un=e,e=n)):(un=e,e=n)),e}(),e===n&&(e=function(){let e,t,r,a,o,i,s,u;return e=un,t=mr(),t!==n?(oa(),r=vr(),r!==n?(a=oa(),o=un,i=Dn(),i!==n?(oa(),s=hr(),s!==n?(oa(),u=Dn(),u!==n?(ln=o,o=function(e,t,n){return la(hn(),t,n)}(0,i,u)):(un=o,o=n)):(un=o,o=n)):(un=o,o=n),o!==n?(ln=e,e=function(e,t){return{op:"NOT"+e,right:t}}(r,o)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=vr(),t!==n?(oa(),r=un,a=Dn(),a!==n?(o=oa(),i=hr(),i!==n?(oa(),s=Dn(),s!==n?(ln=r,r=function(e,t,n){return la(hn(),t,n)}(0,a,s)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n),r!==n?(ln=e,e=function(e,t){return{op:e,right:t}}(t,r)):(un=e,e=n)):(un=e,e=n)),e}(),e===n&&(e=function(){let e,t,r,a;return e=un,t=fr(),t!==n?(oa(),r=mr(),r!==n?(oa(),a=Dn(),a!==n?(ln=e,e=function(e,t){return{op:e+"NOT",right:t}}(t,a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=fr(),t!==n?(oa(),r=Dn(),r!==n?(ln=e,e=function(e,t){return{op:e,right:t}}(t,r)):(un=e,e=n)):(un=e,e=n)),e}(),e===n&&(e=function(){let e,t,r,a,o;return e=un,t=Cn(),t!==n?(oa(),r=Dn(),r!==n?(oa(),a=pr(),a!==n?(oa(),o=Bn(),o!==n?(ln=e,e=function(e,t,n){return{op:e,right:t,escape:n.value}}(t,r,o)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=Cn(),t!==n?(oa(),r=Dn(),r!==n?(ln=e,e=function(e,t){return{op:e,right:t,escape:""}}(t,r)):(un=e,e=n)):(un=e,e=n)),e}())))),e}(),a!==n?r=a:(un=r,r=n),r===n&&(r=null),ln=e,e=function(e,t){return""==t||null==t||null==t?e:"arithmetic"==t.type?ca(e,t.tail):ua(t.op,e,t.right,t.escape,hn())}(t,r)):(un=e,e=n),e}()),t}function xn(){let t;return e.substr(un,2)===u?(t=u,un+=2):(t=n,0===mn&&Ln(Pe)),t===n&&(62===e.charCodeAt(un)?(t=l,un++):(t=n,0===mn&&Ln(Ae)),t===n&&(e.substr(un,2)===c?(t=c,un+=2):(t=n,0===mn&&Ln(Fe)),t===n&&(e.substr(un,2)===f?(t=f,un+=2):(t=n,0===mn&&Ln($e)),t===n&&(t=e.charAt(un),ge.test(t)?un++:(t=n,0===mn&&Ln(Re)),t===n&&(e.substr(un,2)===d?(t=d,un+=2):(t=n,0===mn&&Ln(Ue))))))),t}function Cn(){let e,t,r,a,o;return e=un,t=un,r=mr(),r!==n?(a=oa(),o=dr(),o!==n?(r=[r,a,o],t=r):(un=t,t=n)):(un=t,t=n),t!==n&&(ln=e,t=function(e){return e[0]+" "+e[2]}(t)),e=t,e===n&&(e=dr()),e}function _n(){let e,t,r,a,o;return e=un,t=un,r=mr(),r!==n?(a=oa(),o=cr(),o!==n?(r=[r,a,o],t=r):(un=t,t=n)):(un=t,t=n),t!==n&&(ln=e,t=function(e){return e[0]+" "+e[2]}(t)),e=t,e===n&&(e=cr()),e}function Dn(){let e,t,r,a,o,i;if(e=un,t=bn(),t!==n){for(r=[],a=un,oa(),o=Mn(),o!==n?(oa(),i=bn(),i!==n?(ln=a,a=an(0,o,i)):(un=a,a=n)):(un=a,a=n);a!==n;)r.push(a),a=un,oa(),o=Mn(),o!==n?(oa(),i=bn(),i!==n?(ln=a,a=an(0,o,i)):(un=a,a=n)):(un=a,a=n);ln=e,e=function(e,t){return ca(e,t)}(t,r)}else un=e,e=n;return e}function Mn(){let t;return t=e.charAt(un),ye.test(t)?un++:(t=n,0===mn&&Ln(ke)),t===n&&(e.substr(un,2)===p?(t=p,un+=2):(t=n,0===mn&&Ln(Ve))),t}function bn(){let e,t,r,a,o,i;if(e=un,t=An(),t!==n){for(r=[],a=un,oa(),o=Pn(),o!==n?(oa(),i=An(),i!==n?(ln=a,a=on(0,o,i)):(un=a,a=n)):(un=a,a=n);a!==n;)r.push(a),a=un,oa(),o=Pn(),o!==n?(oa(),i=An(),i!==n?(ln=a,a=on(0,o,i)):(un=a,a=n)):(un=a,a=n);ln=e,e=function(e,t){return ca(e,t)}(t,r)}else un=e,e=n;return e}function Pn(){let t;return t=e.charAt(un),Le.test(t)?un++:(t=n,0===mn&&Ln(ze)),t}function An(){let e,t,r,a;return e=function(){let e;return e=Bn(),e===n&&(e=function(){let e,t,r,a;return e=un,t=function(){let e,t,r,a;return e=un,t=tr(),t!==n?(r=nr(),r!==n?(a=rr(),a!==n?(ln=e,e=function(e,t,n){return parseFloat(e+t+n)}(t,r,a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=tr(),t!==n?(r=nr(),r!==n?(ln=e,e=function(e,t){return parseFloat(e+t)}(t,r)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=tr(),t!==n?(r=rr(),r!==n?(ln=e,e=function(e,t){return parseFloat(e+t)}(t,r)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=tr(),t!==n&&(ln=e,t=function(e){return parseFloat(e)}(t)),e=t))),e}(),t!==n?(r=un,mn++,a=$n(),mn--,a===n?r=void 0:(un=r,r=n),r!==n?(ln=e,e=function(e){return{type:"number",location:hn(),value:e}}(t)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=function(){let e,t;return e=un,t=ur(),t!==n&&(ln=e,t={type:"boolean",location:hn(),value:!0}),e=t,e===n&&(e=un,t=lr(),t!==n&&(ln=e,t={type:"boolean",location:hn(),value:!1}),e=t),e}(),e===n&&(e=function(){let e,t;return e=un,t=sr(),t!==n&&(ln=e,t={type:"null",location:hn(),value:null}),e=t,e}(),e===n&&(e=function(){let e,t,r;return e=un,t=Er(),t!==n?(oa(),r=Qn(),r!==n?(ln=e,e=function(e){return"string"===e.type&&function(e){!0!==/^(\d{4})-(\d{1,2})-(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/.test(e)&&wn("Date literal is invalid")}(e.value),{type:"date",location:hn(),value:e.value}}(r)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=function(){let e,t,r;return e=un,t=Or(),t!==n?(oa(),r=Qn(),r!==n?(ln=e,e=function(e){return"string"===e.type&&function(e){!0!==/^(\d{4})-(\d{1,2})-(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/.test(e)&&wn("Timestamp literal is invalid")}(e.value),{type:"timestamp",location:hn(),value:e.value}}(r)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=Zn(),e===n&&(e=function(){let e,t,r;return e=un,t=Sr(),t!==n?(oa(),r=Qn(),r!==n?(ln=e,e=function(e){return"string"===e.type&&function(e){!0!==/^(\d{1,2}):(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/.test(e)&&wn("Time literal is invalid")}(e.value),{type:"time",location:hn(),value:e.value}}(r)):(un=e,e=n)):(un=e,e=n),e}()))))))),e}(),e===n&&(e=function(){let e,t,r,a,o,i,s,u;return e=un,t=Lr(),t!==n?(oa(),r=un,a=ra(),a!==n?(oa(),o=Kn(),o!==n?(oa(),i=Ir(),i!==n?(oa(),s=On(),s!==n?(oa(),u=aa(),u!==n?(ln=r,r=function(e,t){return la(hn(),e,t)}(o,s)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n),r===n&&(r=un,a=ra(),a!==n?(oa(),o=Kn(),o!==n?(oa(),i=na(),i!==n?(oa(),s=On(),s!==n?(oa(),u=aa(),u!==n?(ln=r,r=function(e,t){return la(hn(),e,t)}(o,s)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)),r!==n?(ln=e,e=function(e){return{type:"function",location:hn(),name:"extract",args:e}}(r)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=function(){let e,t,r,a,o,i,s,u,l,c,f;return e=un,t=yr(),t!==n?(oa(),r=un,a=ra(),a!==n?(oa(),o=On(),o!==n?(oa(),i=Ir(),i!==n?(oa(),s=On(),s!==n?(oa(),u=un,l=gr(),l!==n?(c=oa(),f=On(),f!==n?(oa(),u=f):(un=u,u=n)):(un=u,u=n),u===n&&(u=null),l=aa(),l!==n?(ln=r,r=function(e,t,n){return la(hn(),e,t,...n?[n]:[])}(o,s,u)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n),r===n&&(r=un,a=ra(),a!==n?(oa(),o=On(),o!==n?(oa(),i=na(),i!==n?(oa(),s=On(),s!==n?(oa(),u=na(),u!==n?(l=oa(),c=On(),c!==n?(f=aa(),f!==n?(ln=r,r=function(e,t,n){return la(hn(),e,t,n)}(o,s,c)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)),r!==n?(ln=e,e=function(e){return{type:"function",location:hn(),name:"substring",args:e}}(r)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=function(){let e,t,r,a,o,i,s,u,l;return e=un,t=Tr(),t!==n?(oa(),r=un,a=ra(),a!==n?(oa(),o=qn(),oa(),i=On(),i!==n?(oa(),s=Ir(),s!==n?(oa(),u=On(),u!==n?(oa(),l=aa(),l!==n?(ln=r,r=function(e,t,n){return la(hn(),e,t,n)}(o,i,u)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n),r===n&&(r=un,a=ra(),a!==n?(oa(),o=qn(),oa(),i=On(),i!==n?(oa(),s=aa(),s!==n?(ln=r,r=function(e,t){return la(hn(),e,t)}(o,i)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)),r!==n?(ln=e,e=function(e){return{type:"function",location:hn(),name:"trim",args:e}}(r)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=function(){let e,t,r,a,o,i,s,u;return e=un,t=Nr(),t!==n?(oa(),r=un,a=ra(),a!==n?(oa(),o=On(),o!==n?(oa(),i=cr(),i!==n?(oa(),s=On(),s!==n?(oa(),u=aa(),u!==n?(ln=r,r=function(e,t){return la(hn(),e,t)}(o,s)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n),r===n&&(r=un,a=ra(),a!==n?(oa(),o=On(),o!==n?(oa(),i=na(),i!==n?(oa(),s=On(),s!==n?(oa(),u=aa(),u!==n?(ln=r,r=function(e,t){return la(hn(),e,t)}(o,s)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)),r!==n?(ln=e,e=function(e){return{type:"function",location:hn(),name:"position",args:e}}(r)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=function(){let e,t,r,a,o,i,s,u;return e=un,t=Dr(),t!==n?(oa(),r=un,a=ra(),a!==n?(oa(),o=On(),o!==n?(oa(),i=Mr(),i!==n?(oa(),s=Hn(),s!==n?(oa(),u=aa(),u!==n?(ln=r,r=function(e,t){return la(hn(),e,t)}(o,s)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n),r===n&&(r=un,a=ra(),a!==n?(oa(),o=On(),o!==n?(oa(),i=na(),i!==n?(oa(),s=Hn(),s!==n?(oa(),u=aa(),u!==n?(ln=r,r=function(e,t){return la(hn(),e,t)}(o,s)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)),r!==n?(ln=e,e=function(e){return{type:"function",location:hn(),name:"cast",args:e}}(r)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=function(){let e,t,r,a;return e=un,t=un,mn++,r=Lr(),mn--,r===n?t=void 0:(un=t,t=n),t!==n?(r=sa(),r!==n?(oa(),a=Nn(),a!==n?(ln=e,e=function(e,t){return{type:"function",location:hn(),name:e,args:t}}(r,a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=function(){let e;return e=function(){let e,t,r,a,o,i,s;if(e=un,t=Br(),t!==n)if(oa(),r=On(),r!==n){for(oa(),a=[],o=un,i=Xn(),i!==n?(s=oa(),o=i):(un=o,o=n);o!==n;)a.push(o),o=un,i=Xn(),i!==n?(s=oa(),o=i):(un=o,o=n);o=Gr(),o!==n?(ln=e,e=function(e,t){return{type:"case-expression",location:hn(),format:"simple",operand:e,clauses:t,else:null,elseLocation:null}}(r,a)):(un=e,e=n)}else un=e,e=n;else un=e,e=n;if(e===n)if(e=un,t=Br(),t!==n)if(oa(),r=On(),r!==n){for(oa(),a=[],o=un,i=Xn(),i!==n?(s=oa(),o=i):(un=o,o=n);o!==n;)a.push(o),o=un,i=Xn(),i!==n?(s=oa(),o=i):(un=o,o=n);o=er(),o!==n?(i=oa(),s=Gr(),s!==n?(ln=e,e=function(e,t,n){return{type:"case-expression",location:hn(),format:"simple",operand:e,clauses:t,else:n.value,elseLocation:n.location}}(r,a,o)):(un=e,e=n)):(un=e,e=n)}else un=e,e=n;else un=e,e=n;return e}(),e===n&&(e=function(){let e,t,r,a,o,i;if(e=un,t=Br(),t!==n){for(oa(),r=[],a=un,o=Gn(),o!==n?(i=oa(),a=o):(un=a,a=n);a!==n;)r.push(a),a=un,o=Gn(),o!==n?(i=oa(),a=o):(un=a,a=n);a=Gr(),a!==n?(ln=e,e=function(e){return{type:"case-expression",location:hn(),format:"searched",clauses:e,else:null,elseLocation:null}}(r)):(un=e,e=n)}else un=e,e=n;if(e===n)if(e=un,t=Br(),t!==n){for(oa(),r=[],a=un,o=Gn(),o!==n?(i=oa(),a=o):(un=a,a=n);a!==n;)r.push(a),a=un,o=Gn(),o!==n?(i=oa(),a=o):(un=a,a=n);a=er(),a!==n?(o=oa(),i=Gr(),i!==n?(ln=e,e=function(e,t){return{type:"case-expression",location:hn(),format:"searched",clauses:e,else:t.value,elseLocation:t.location}}(r,a)):(un=e,e=n)):(un=e,e=n)}else un=e,e=n;return e}()),e}(),e===n&&(e=function(){let e,t;return e=un,t=function(){let e,t;return e=un,t=function(){let e,t,r,a;if(e=un,t=$n(),t!==n){for(r=[],a=Un();a!==n;)r.push(a),a=Un();ln=e,e=function(e,t){return e+t.join("")}(t,r)}else un=e,e=n;return e}(),t!==n&&(ln=e),e=t,e}(),t!==n&&(ln=e,t=function(e){return/^CURRENT_DATE$/i.test(e)?{type:"current-time",location:hn(),mode:"date"}:/^CURRENT_TIMESTAMP$/i.test(e)?{type:"current-time",location:hn(),mode:"timestamp"}:/^CURRENT_TIME$/i.test(e)?{type:"current-time",location:hn(),mode:"time"}:/^CURRENT_USER$/i.test(e)?{type:"current-user",location:hn()}:{type:"column-reference",location:hn(),table:"",column:e}}(t)),e=t,e===n&&(e=un,t=function(){let e,t,r,a;return e=un,t=Vn(),t!==n?(r=function(){let e,t,r;for(e=un,t=[],r=kn();r!==n;)t.push(r),r=kn();return ln=e,t=function(e){return e.join("")}(t),e=t,e}(),a=Vn(),a!==n?(ln=e,e=r):(un=e,e=n)):(un=e,e=n),e}(),t!==n&&(ln=e,t=function(e){return{type:"column-reference",location:hn(),table:"",column:e,delimited:!0}}(t)),e=t),e}(),e===n&&(e=zn(),e===n&&(e=un,t=ra(),t!==n?(oa(),r=On(),r!==n?(oa(),a=aa(),a!==n?(ln=e,e=function(e){return e.paren=!0,e}(r)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n))))))))))),e}function Fn(){let e,t,r,a;if(e=un,t=$n(),t!==n){for(r=[],a=Rn();a!==n;)r.push(a),a=Rn();ln=e,e=function(e,t){return e+t.join("")}(t,r)}else un=e,e=n;return e}function $n(){let t;return t=e.charAt(un),Te.test(t)?un++:(t=n,0===mn&&Ln(He)),t}function Rn(){let t;return t=e.charAt(un),Ne.test(t)?un++:(t=n,0===mn&&Ln(qe)),t}function Un(){let t;return t=e.charAt(un),Oe.test(t)?un++:(t=n,0===mn&&Ln(Ke)),t}function kn(){let t;return t=function(){let t;return t=e.charAt(un),Oe.test(t)?un++:(t=n,0===mn&&Ln(Ke)),t}(),t===n&&(t=function(){let e,t,r;return e=un,t=Vn(),t!==n?(r=Vn(),r!==n?(ln=e,e='"'):(un=e,e=n)):(un=e,e=n),e}()),t}function Vn(){let t;return t=e.charAt(un),Ee.test(t)?un++:(t=n,0===mn&&Ln(Ze)),t}function zn(){let t,r,a,o;return t=un,r=un,64===e.charCodeAt(un)?(a=m,un++):(a=n,0===mn&&Ln(Ye)),a!==n?(o=Fn(),o!==n?(a=[a,o],r=a):(un=r,r=n)):(un=r,r=n),r!==n&&(ln=t,r=function(e){return{type:"parameter",location:hn(),value:e[1]}}(r)),t=r,t}function Hn(){let e,t,r,a,o;return e=un,t=br(),t===n&&(t=Pr()),t!==n&&(ln=e,t={type:"data-type",location:hn(),value:{type:"integer"}}),e=t,e===n&&(e=un,t=Ar(),t!==n&&(ln=e,t={type:"data-type",location:hn(),value:{type:"smallint"}}),e=t,e===n&&(e=un,t=Fr(),t!==n&&(ln=e,t={type:"data-type",location:hn(),value:{type:"float"}}),e=t,e===n&&(e=un,t=$r(),t!==n&&(ln=e,t={type:"data-type",location:hn(),value:{type:"real"}}),e=t,e===n&&(e=un,t=Er(),t!==n&&(ln=e,t={type:"data-type",location:hn(),value:{type:"date"}}),e=t,e===n&&(e=un,t=Or(),t!==n&&(ln=e,t={type:"data-type",location:hn(),value:{type:"timestamp"}}),e=t,e===n&&(e=un,t=Sr(),t!==n&&(ln=e,t={type:"data-type",location:hn(),value:{type:"time"}}),e=t,e===n&&(e=un,t=Rr(),t!==n?(oa(),r=ra(),r!==n?(oa(),a=ar(),a!==n?(oa(),o=aa(),o!==n?(ln=e,e=function(e){return{type:"data-type",location:hn(),value:{type:"varchar",size:parseInt(e)}}}(a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)))))))),e}function qn(){let e,t;return e=un,t=xr(),t===n&&(t=Cr(),t===n&&(t=_r())),t===n&&(t=null),ln=e,t=function(e){return{type:"string",location:hn(),value:e??"BOTH"}}(t),e=t,e}function Kn(){let e,t;return e=un,t=Vr(),t===n&&(t=qr(),t===n&&(t=Kr(),t===n&&(t=Zr(),t===n&&(t=Yr(),t===n&&(t=jr(),t===n&&(t=zr(),t===n&&(t=Hr(),t===n&&(t=Wr(),t===n&&(t=Jr(),t===n&&(t=Qr())))))))))),t!==n&&(ln=e,t=function(e){return{type:"string",location:hn(),value:e}}(t)),e=t,e}function Zn(){let t,r,a,o,i;return t=un,r=kr(),r!==n?(oa(),a=e.charAt(un),ye.test(a)?un++:(a=n,0===mn&&Ln(ke)),a!==n?(oa(),o=Qn(),o!==n?(oa(),i=Yn(),i!==n?(ln=t,t=function(e,t,n){return{type:"interval",location:hn(),value:t,qualifier:n,op:e}}(a,o,i)):(un=t,t=n)):(un=t,t=n)):(un=t,t=n)):(un=t,t=n),t===n&&(t=un,r=kr(),r!==n?(oa(),a=Qn(),a!==n?(oa(),o=Yn(),o!==n?(ln=t,t=function(e,t){return{type:"interval",location:hn(),value:e,qualifier:t,op:""}}(a,o)):(un=t,t=n)):(un=t,t=n)):(un=t,t=n)),t}function Yn(){let e,t,r,a;return e=un,t=function(){let e,t,r,a,o;return e=un,t=jn(),t!==n?(oa(),r=ra(),r!==n?(oa(),a=Jn(),a!==n?(oa(),o=aa(),o!==n?(ln=e,e=function(e,t){return{type:"interval-period",location:hn(),period:e.value,precision:t,secondary:null}}(t,a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=jn(),t!==n&&(ln=e,t=function(e){return{type:"interval-period",location:hn(),period:e.value,precision:null,secondary:null}}(t)),e=t),e}(),t!==n?(oa(),r=Ur(),r!==n?(oa(),a=function(){let e,t,r,a,o,i,s;return e=un,t=jn(),t!==n&&(ln=e,t=function(e){return{type:"interval-period",location:hn(),period:e.value,precision:null,secondary:null}}(t)),e=t,e===n&&(e=un,t=jr(),t!==n?(oa(),r=ra(),r!==n?(oa(),a=Jn(),a!==n?(oa(),o=na(),o!==n?(oa(),i=Wn(),i!==n?(oa(),s=aa(),s!==n?(ln=e,e=function(e,t){return{type:"interval-period",location:hn(),period:"second",precision:e,secondary:t}}(a,i)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=jr(),t!==n?(oa(),r=ra(),r!==n?(oa(),a=Jn(),a!==n?(oa(),o=aa(),o!==n?(ln=e,e=function(e){return{type:"interval-period",location:hn(),period:"second",precision:e,secondary:null}}(a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=jr(),t!==n&&(ln=e,t={type:"interval-period",location:hn(),period:"second",precision:null,secondary:null}),e=t))),e}(),a!==n?(ln=e,e=function(e,t){return{type:"interval-qualifier",location:hn(),start:e,end:t}}(t,a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=function(){let e,t,r,a,o,i,s;return e=un,t=jn(),t!==n?(oa(),r=ra(),r!==n?(oa(),a=Wn(),a!==n?(oa(),o=aa(),o!==n?(ln=e,e=function(e,t){return{type:"interval-period",location:hn(),period:e.value,precision:t,secondary:null}}(t,a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=jn(),t!==n&&(ln=e,t=function(e){return{type:"interval-period",location:hn(),period:e.value,precision:null,secondary:null}}(t)),e=t,e===n&&(e=un,t=jr(),t!==n?(oa(),r=ra(),r!==n?(oa(),a=Jn(),a!==n?(oa(),o=na(),o!==n?(oa(),i=Wn(),i!==n?(oa(),s=aa(),s!==n?(ln=e,e=function(e,t){return{type:"interval-period",location:hn(),period:"second",precision:e,secondary:t}}(a,i)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=jr(),t!==n?(oa(),r=ra(),r!==n?(oa(),a=Wn(),a!==n?(oa(),o=aa(),o!==n?(ln=e,e=function(e){return{type:"interval-period",location:hn(),period:"second",precision:e,secondary:null}}(a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=jr(),t!==n&&(ln=e,t={type:"interval-period",location:hn(),period:"second",precision:null,secondary:null}),e=t)))),e}()),e}function jn(){let e,t;return e=un,t=Kr(),t!==n&&(ln=e,t={type:"string",location:hn(),value:"day"}),e=t,e===n&&(e=un,t=Zr(),t!==n&&(ln=e,t={type:"string",location:hn(),value:"hour"}),e=t,e===n&&(e=un,t=Yr(),t!==n&&(ln=e,t={type:"string",location:hn(),value:"minute"}),e=t,e===n&&(e=un,t=qr(),t!==n&&(ln=e,t={type:"string",location:hn(),value:"month"}),e=t,e===n&&(e=un,t=Vr(),t!==n&&(ln=e,t={type:"string",location:hn(),value:"year"}),e=t)))),e}function Wn(){let e,t;return e=un,t=ar(),t!==n&&(ln=e,t=function(e){return parseFloat(e)}(t)),e=t,e}function Jn(){let e,t;return e=un,t=ar(),t!==n&&(ln=e,t=function(e){return parseFloat(e)}(t)),e=t,e}function Qn(){let e;return e=Bn(),e===n&&(e=zn()),e}function Bn(){let t,r,a,o,i;if(t=un,39===e.charCodeAt(un)?(r=h,un++):(r=n,0===mn&&Ln(je)),r===n&&(e.substr(un,2)===w?(r=w,un+=2):(r=n,0===mn&&Ln(We))),r!==n){for(a=[],o=un,e.substr(un,2)===v?(i=v,un+=2):(i=n,0===mn&&Ln(Je)),i!==n&&(ln=o,i="'"),o=i,o===n&&(o=e.charAt(un),Se.test(o)?un++:(o=n,0===mn&&Ln(Qe)));o!==n;)a.push(o),o=un,e.substr(un,2)===v?(i=v,un+=2):(i=n,0===mn&&Ln(Je)),i!==n&&(ln=o,i=sn()),o=i,o===n&&(o=e.charAt(un),Se.test(o)?un++:(o=n,0===mn&&Ln(Qe)));39===e.charCodeAt(un)?(o=h,un++):(o=n,0===mn&&Ln(je)),o!==n?(ln=t,t=function(e){return{type:"string",location:hn(),value:e.join("")}}(a)):(un=t,t=n)}else un=t,t=n;return t}function Gn(){let e,t,r,a,o;return e=un,t=Xr(),t!==n?(oa(),r=On(),r!==n?(oa(),a=ea(),a!==n?(oa(),o=On(),o!==n?(ln=e,e=function(e,t){return{type:"when-clause",location:hn(),operand:e,value:t}}(r,o)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e}function Xn(){let e,t,r,a,o;return e=un,t=Xr(),t!==n?(oa(),r=On(),r!==n?(oa(),a=ea(),a!==n?(oa(),o=On(),o!==n?(ln=e,e=function(e,t){return{type:"when-clause",location:hn(),operand:e,value:t}}(r,o)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e}function er(){let e,t,r;return e=un,t=ta(),t!==n?(oa(),r=On(),r!==n?(ln=e,e=function(e){return{type:"else-clause",location:hn(),value:e}}(r)):(un=e,e=n)):(un=e,e=n),e}function tr(){let t,r,a;return t=ar(),t===n&&(t=un,r=e.charAt(un),ye.test(r)?un++:(r=n,0===mn&&Ln(ke)),r!==n?(a=ar(),a!==n?(ln=t,t=function(e,t){return e[0]+t}(r,a)):(un=t,t=n)):(un=t,t=n)),t}function nr(){let t,r,a;return t=un,46===e.charCodeAt(un)?(r=I,un++):(r=n,0===mn&&Ln(Be)),r!==n?(a=ar(),a===n&&(a=null),ln=t,t=function(e){return"."+(null!=e?e:"")}(a)):(un=t,t=n),t}function rr(){let e,t,r;return e=un,t=ir(),t!==n?(r=ar(),r!==n?(ln=e,e=function(e,t){return e+t}(t,r)):(un=e,e=n)):(un=e,e=n),e}function ar(){let e,t,r;if(e=un,t=[],r=or(),r!==n)for(;r!==n;)t.push(r),r=or();else t=n;return t!==n&&(ln=e,t=function(e){return e.join("")}(t)),e=t,e}function or(){let t;return t=e.charAt(un),xe.test(t)?un++:(t=n,0===mn&&Ln(Ge)),t}function ir(){let t,r,a;return t=un,r=e.charAt(un),Ce.test(r)?un++:(r=n,0===mn&&Ln(Xe)),r!==n?(a=e.charAt(un),ye.test(a)?un++:(a=n,0===mn&&Ln(ke)),a===n&&(a=null),ln=t,t=function(e,t){return"e"+(null===t?"":t)}(0,a)):(un=t,t=n),t}function sr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===g?un+=4:(r=n,0===mn&&Ln(et)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(r=[r,a],t=r):(un=t,t=n)):(un=t,t=n),t}function ur(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===y?un+=4:(r=n,0===mn&&Ln(tt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(r=[r,a],t=r):(un=t,t=n)):(un=t,t=n),t}function lr(){let t,r,a,o;return t=un,r=e.substr(un,5),r.toLowerCase()===L?un+=5:(r=n,0===mn&&Ln(nt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(r=[r,a],t=r):(un=t,t=n)):(un=t,t=n),t}function cr(){let t,r,a,o;return t=un,r=e.substr(un,2),r.toLowerCase()===T?un+=2:(r=n,0===mn&&Ln(rt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="IN"):(un=t,t=n)):(un=t,t=n),t}function fr(){let t,r,a,o;return t=un,r=e.substr(un,2),r.toLowerCase()===N?un+=2:(r=n,0===mn&&Ln(at)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="IS"):(un=t,t=n)):(un=t,t=n),t}function dr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===O?un+=4:(r=n,0===mn&&Ln(ot)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="LIKE"):(un=t,t=n)):(un=t,t=n),t}function pr(){let t,r,a,o;return t=un,r=e.substr(un,6),r.toLowerCase()===E?un+=6:(r=n,0===mn&&Ln(it)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="ESCAPE"):(un=t,t=n)):(un=t,t=n),t}function mr(){let t,r,a,o;return t=un,r=e.substr(un,3),r.toLowerCase()===S?un+=3:(r=n,0===mn&&Ln(st)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="NOT"):(un=t,t=n)):(un=t,t=n),t}function hr(){let t,r,a,o;return t=un,r=e.substr(un,3),r.toLowerCase()===x?un+=3:(r=n,0===mn&&Ln(ut)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="AND"):(un=t,t=n)):(un=t,t=n),t}function wr(){let t,r,a,o;return t=un,r=e.substr(un,2),r.toLowerCase()===C?un+=2:(r=n,0===mn&&Ln(lt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="OR"):(un=t,t=n)):(un=t,t=n),t}function vr(){let t,r,a,o;return t=un,r=e.substr(un,7),r.toLowerCase()===_?un+=7:(r=n,0===mn&&Ln(ct)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="BETWEEN"):(un=t,t=n)):(un=t,t=n),t}function Ir(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===D?un+=4:(r=n,0===mn&&Ln(ft)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="FROM"):(un=t,t=n)):(un=t,t=n),t}function gr(){let t,r,a,o;return t=un,r=e.substr(un,3),r.toLowerCase()===M?un+=3:(r=n,0===mn&&Ln(dt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="FOR"):(un=t,t=n)):(un=t,t=n),t}function yr(){let t,r,a,o;return t=un,r=e.substr(un,9),r.toLowerCase()===b?un+=9:(r=n,0===mn&&Ln(pt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="SUBSTRING"):(un=t,t=n)):(un=t,t=n),t}function Lr(){let t,r,a,o;return t=un,r=e.substr(un,7),r.toLowerCase()===P?un+=7:(r=n,0===mn&&Ln(mt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="EXTRACT"):(un=t,t=n)):(un=t,t=n),t}function Tr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===A?un+=4:(r=n,0===mn&&Ln(ht)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="TRIM"):(un=t,t=n)):(un=t,t=n),t}function Nr(){let t,r,a,o;return t=un,r=e.substr(un,8),r.toLowerCase()===F?un+=8:(r=n,0===mn&&Ln(wt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="POSITION"):(un=t,t=n)):(un=t,t=n),t}function Or(){let t,r,a,o;return t=un,r=e.substr(un,9),r.toLowerCase()===$?un+=9:(r=n,0===mn&&Ln(vt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="TIMESTAMP"):(un=t,t=n)):(un=t,t=n),t}function Er(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===R?un+=4:(r=n,0===mn&&Ln(It)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="DATE"):(un=t,t=n)):(un=t,t=n),t}function Sr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===U?un+=4:(r=n,0===mn&&Ln(gt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="TIME"):(un=t,t=n)):(un=t,t=n),t}function xr(){let t,r,a,o;return t=un,r=e.substr(un,7),r.toLowerCase()===k?un+=7:(r=n,0===mn&&Ln(yt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="LEADING"):(un=t,t=n)):(un=t,t=n),t}function Cr(){let t,r,a,o;return t=un,r=e.substr(un,8),r.toLowerCase()===V?un+=8:(r=n,0===mn&&Ln(Lt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="TRAILING"):(un=t,t=n)):(un=t,t=n),t}function _r(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===z?un+=4:(r=n,0===mn&&Ln(Tt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="BOTH"):(un=t,t=n)):(un=t,t=n),t}function Dr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===H?un+=4:(r=n,0===mn&&Ln(Nt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="CAST"):(un=t,t=n)):(un=t,t=n),t}function Mr(){let t,r,a,o;return t=un,r=e.substr(un,2),r.toLowerCase()===q?un+=2:(r=n,0===mn&&Ln(Ot)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="AS"):(un=t,t=n)):(un=t,t=n),t}function br(){let t,r,a,o;return t=un,r=e.substr(un,7),r.toLowerCase()===K?un+=7:(r=n,0===mn&&Ln(Et)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="INTEGER"):(un=t,t=n)):(un=t,t=n),t}function Pr(){let t,r,a,o;return t=un,r=e.substr(un,3),r.toLowerCase()===Z?un+=3:(r=n,0===mn&&Ln(St)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="INT"):(un=t,t=n)):(un=t,t=n),t}function Ar(){let t,r,a,o;return t=un,r=e.substr(un,8),r.toLowerCase()===Y?un+=8:(r=n,0===mn&&Ln(xt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="SMALLINT"):(un=t,t=n)):(un=t,t=n),t}function Fr(){let t,r,a,o;return t=un,r=e.substr(un,5),r.toLowerCase()===j?un+=5:(r=n,0===mn&&Ln(Ct)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="FLOAT"):(un=t,t=n)):(un=t,t=n),t}function $r(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===W?un+=4:(r=n,0===mn&&Ln(_t)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="REAL"):(un=t,t=n)):(un=t,t=n),t}function Rr(){let t,r,a,o;return t=un,r=e.substr(un,7),r.toLowerCase()===J?un+=7:(r=n,0===mn&&Ln(Dt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="VARCHAR"):(un=t,t=n)):(un=t,t=n),t}function Ur(){let t,r,a,o;return t=un,r=e.substr(un,2),r.toLowerCase()===Q?un+=2:(r=n,0===mn&&Ln(Mt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="TO"):(un=t,t=n)):(un=t,t=n),t}function kr(){let t,r,a,o;return t=un,r=e.substr(un,8),r.toLowerCase()===G?un+=8:(r=n,0===mn&&Ln(bt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="INTERVAL"):(un=t,t=n)):(un=t,t=n),t}function Vr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===X?un+=4:(r=n,0===mn&&Ln(Pt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="YEAR"):(un=t,t=n)):(un=t,t=n),t}function zr(){let t,r,a,o;return t=un,r=e.substr(un,13),r.toLowerCase()===ee?un+=13:(r=n,0===mn&&Ln(At)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="TIMEZONE_HOUR"):(un=t,t=n)):(un=t,t=n),t}function Hr(){let t,r,a,o;return t=un,r=e.substr(un,15),r.toLowerCase()===te?un+=15:(r=n,0===mn&&Ln(Ft)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="TIMEZONE_MINUTE"):(un=t,t=n)):(un=t,t=n),t}function qr(){let t,r,a,o;return t=un,r=e.substr(un,5),r.toLowerCase()===ne?un+=5:(r=n,0===mn&&Ln($t)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="MONTH"):(un=t,t=n)):(un=t,t=n),t}function Kr(){let t,r,a,o;return t=un,r=e.substr(un,3),r.toLowerCase()===re?un+=3:(r=n,0===mn&&Ln(Rt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="DAY"):(un=t,t=n)):(un=t,t=n),t}function Zr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===ae?un+=4:(r=n,0===mn&&Ln(Ut)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="HOUR"):(un=t,t=n)):(un=t,t=n),t}function Yr(){let t,r,a,o;return t=un,r=e.substr(un,6),r.toLowerCase()===oe?un+=6:(r=n,0===mn&&Ln(kt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="MINUTE"):(un=t,t=n)):(un=t,t=n),t}function jr(){let t,r,a,o;return t=un,r=e.substr(un,6),r.toLowerCase()===ie?un+=6:(r=n,0===mn&&Ln(Vt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="SECOND"):(un=t,t=n)):(un=t,t=n),t}function Wr(){let t,r,a,o;return t=un,r=e.substr(un,3),r.toLowerCase()===se?un+=3:(r=n,0===mn&&Ln(zt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="DOW"):(un=t,t=n)):(un=t,t=n),t}function Jr(){let t,r,a,o;return t=un,r=e.substr(un,3),r.toLowerCase()===ue?un+=3:(r=n,0===mn&&Ln(Ht)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="DOY"):(un=t,t=n)):(un=t,t=n),t}function Qr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===le?un+=4:(r=n,0===mn&&Ln(qt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="WEEK"):(un=t,t=n)):(un=t,t=n),t}function Br(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===ce?un+=4:(r=n,0===mn&&Ln(Kt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="CASE"):(un=t,t=n)):(un=t,t=n),t}function Gr(){let t,r,a,o;return t=un,r=e.substr(un,3),r.toLowerCase()===fe?un+=3:(r=n,0===mn&&Ln(Zt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="END"):(un=t,t=n)):(un=t,t=n),t}function Xr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===de?un+=4:(r=n,0===mn&&Ln(Yt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="WHEN"):(un=t,t=n)):(un=t,t=n),t}function ea(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===pe?un+=4:(r=n,0===mn&&Ln(jt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="THEN"):(un=t,t=n)):(un=t,t=n),t}function ta(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===me?un+=4:(r=n,0===mn&&Ln(Wt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="ELSE"):(un=t,t=n)):(un=t,t=n),t}function na(){let t;return 44===e.charCodeAt(un)?(t=he,un++):(t=n,0===mn&&Ln(Jt)),t}function ra(){let t;return 40===e.charCodeAt(un)?(t=we,un++):(t=n,0===mn&&Ln(Qt)),t}function aa(){let t;return 41===e.charCodeAt(un)?(t=ve,un++):(t=n,0===mn&&Ln(Bt)),t}function oa(){let e,t;for(e=[],t=ia();t!==n;)e.push(t),t=ia();return e}function ia(){let t;return t=e.charAt(un),_e.test(t)?un++:(t=n,0===mn&&Ln(Gt)),t}function sa(){let t,r,a,o;if(t=un,r=Fn(),r!==n&&(ln=t),t=r,t===n)if(t=un,96===e.charCodeAt(un)?(r=Ie,un++):(r=n,0===mn&&Ln(Xt)),r!==n){if(a=[],o=e.charAt(un),De.test(o)?un++:(o=n,0===mn&&Ln(en)),o!==n)for(;o!==n;)a.push(o),o=e.charAt(un),De.test(o)?un++:(o=n,0===mn&&Ln(en));else a=n;a!==n?(96===e.charCodeAt(un)?(o=Ie,un++):(o=n,0===mn&&Ln(Xt)),o!==n?(ln=t,t=function(e){return e.join("")}(a)):(un=t,t=n)):(un=t,t=n)}else un=t,t=n;return t}function ua(e,t,n,r,a){const o={type:"binary-expression",location:a,operator:e,left:t,right:n};return void 0!==r&&(o.escape=r),o}function la(e,...t){return{type:"expression-list",location:e,value:t}}function ca(e,t){let n=e;for(const{op:e,expr:r,location:{end:a}}of t)n=ua(e,n,r,void 0,{...n.location,end:a});return n}fn=o();const fa=fn!==n&&un===e.length;function da(){throw fn!==n&&un<e.length&&Ln({type:"end"}),function(e,t,n){return new B(B.buildMessage(e,t),e,t,n)}(pn,dn<e.length?function(t=un){const n=e.codePointAt(t);return void 0===n?"":String.fromCodePoint(n)}(dn):null,dn<e.length?yn(dn,dn+1):yn(dn,dn))}return t.peg$library?{peg$result:fn,peg$currPos:un,peg$FAILED:n,peg$maxFailExpected:pn,peg$maxFailPos:dn,peg$success:fa,peg$throw:fa?void 0:da}:fa?fn:void da()}class X{static parse(e){return G(e)}}var ee=n(56400);const te=new Set(["current_timestamp","current_date","current_time"]);class ne{constructor(e){this.staticData=e}makeBool(e){return me(e)}featureValue(e,t,n,r){return Se(e,t,n,r)}equalsNull(e){return null===e}applyLike(e,t,n){return Oe(e,t,n)}ensureArray(e){return he(e)}applyIn(e,t){return ge(e,t)}currentTimestamp(e){return ye(e)}currentDate(e){return Le(e)}currentTime(e){return Te(e)}makeSqlInterval(e,t,n){return f.createFromValueAndQualifier(e,t,n)}convertInterval(e){return f.isInterval(e)?e.valueInMilliseconds():e}compare(e,t,n){return k(t,n,e)}calculate(e,t,n,r){return W(e,t,n,r)}evaluateTime(e){return D(e)}evaluateTimestamp(e,t){return M(e,t)}evaluateDate(e,t){return b(e,t)}evaluateFunction(e,t,n){return q(e,t,n)}lookup(e,t){const n=t[e];return void 0===n?null:n}between(e,t){return null==e||null==t[0]||null==t[1]?null:k(e,t[0],">=")&&k(e,t[1],"<=")}notbetween(e,t){return null==e||null==t[0]||null==t[1]?null:k(e,t[0],"<")||k(e,t[1],">")}ternaryNot(e){return we(e)}ternaryAnd(e,t){return ve(e,t)}ternaryOr(e,t){return Ie(e,t)}}function re(e,...t){return`this.${e}(${t.join(", ")})`}function ae(e){return void 0===e?"void 0":JSON.stringify(e)}function oe({type:e,period:t,precision:n,secondary:r}){return JSON.stringify({type:e,period:t,precision:n,secondary:r})}const ie="feature",se="lookups",ue="attributeAdapter",le="fieldsIndex",ce="timeZone",fe="currentUser";class de{constructor(e,t){this._parseTree=e,this._fieldsIndex=t,this._staticData=Object.create(null),this._nextStaticDataId=0,this._tempVars=new Set,this._nextTempVarId=0}compile(){const e=this._compileNode(this._parseTree),t=`\n ${this._tempVars.size>0?`var ${Array.from(this._tempVars).join(", ")};`:""}\n return this.convertInterval(${e});\n `;return new Function(ie,se,ue,le,ce,fe,t).bind(new ne(this._staticData))}_storeStaticData(e){const t="static$"+this._nextStaticDataId++;return this._staticData[t]=e,t}_compileRefStaticData(e){return`this.staticData[${ae(e)}]`}_generateTempVar(){const e="temp$"+this._nextTempVarId++;return this._tempVars.add(e),e}_compileSimpleCase(e){const t=this._compileNode(e.operand),n=this._generateTempVar(),r=[];for(const t of e.clauses){const e=re("compare",ae("="),n,this._compileNode(t.operand)),a=this._compileNode(t.value);r.push(`${e} ? (${a}) :`)}return null!=e.else?r.push(this._compileNode(e.else)):r.push(ae(null)),`(${n} = ${t}, ${r.join(" ")})`}_compileSearchedCase(e){const t=[];for(const n of e.clauses){const e=re("makeBool",this._compileNode(n.operand)),r=this._compileNode(n.value);t.push(`${e} ? (${r}) :`)}return null!=e.else?t.push(this._compileNode(e.else)):t.push(ae(null)),t.join(" ")}_compileInExpr(e,t){const n=new Set,r=[];for(const e of t.value)"number"===e.type||"string"===e.type?n.add(e.value):r.push(e);const a=this._compileNode(e),o=re("ensureArray",this._compileNode({type:"expression-list",location:t.location,value:r}));if(n.size>0){const e=this._compileRefStaticData(this._storeStaticData(n)),t=this._generateTempVar();return r.length>0?`(${t} = ${a}, ${e}.has(${t}) || ${re("applyIn",t,o)})`:`(${t} = ${a}, ${t} == null ? null : ${e}.has(${t}))`}return re("applyIn",a,o)}_compileNode(e){switch(e.type){case"interval":return re("makeSqlInterval",this._compileNode(e.value),"interval-qualifier"===e.qualifier.type?function({type:e,start:t,end:n}){return`{type: ${ae(e)}, start: ${oe(t)}, end: ${oe(n)}}`}(e.qualifier):oe(e.qualifier),ae(e.op));case"case-expression":return"simple"===e.format?this._compileSimpleCase(e):this._compileSearchedCase(e);case"parameter":return re("lookup",ae(e.value.toLowerCase()),se);case"expression-list":return`[${e.value.map(e=>this._compileNode(e)).join(", ")}]`;case"unary-expression":return re("ternaryNot",this._compileNode(e.expr));case"binary-expression":switch(e.operator){case"AND":return re("ternaryAnd",this._compileNode(e.left),this._compileNode(e.right));case"OR":return re("ternaryOr",this._compileNode(e.left),this._compileNode(e.right));case"IS":if("null"!==e.right.type)throw new s.L("UnsupportedIsRhs");return re("equalsNull",this._compileNode(e.left));case"ISNOT":if("null"!==e.right.type)throw new s.L("UnsupportedIsRhs");return`!${re("equalsNull",this._compileNode(e.left))}`;case"IN":return this._compileInExpr(e.left,e.right);case"NOT IN":return re("ternaryNot",this._compileInExpr(e.left,e.right));case"BETWEEN":return re("between",this._compileNode(e.left),this._compileNode(e.right));case"NOTBETWEEN":return re("notbetween",this._compileNode(e.left),this._compileNode(e.right));case"LIKE":return re("applyLike",this._compileNode(e.left),this._compileNode(e.right),ae(e.escape));case"NOT LIKE":return re("ternaryNot",re("applyLike",this._compileNode(e.left),this._compileNode(e.right),ae(e.escape)));case"<>":case"<":case">":case">=":case"<=":case"=":if(Ee(e,e.operator,this._fieldsIndex)){const t=e.comparisonData;return re("compare",ae(t.op),re("featureValue",ie,ae(t.fieldName),ae(null),ue),this._compileRefStaticData(this._storeStaticData(t.comparisonEpochMs)))}return re("compare",ae(e.operator),this._compileNode(e.left),this._compileNode(e.right));case"*":case"-":case"+":case"/":case"||":return re("calculate",ae(e.operator),this._compileNode(e.left),this._compileNode(e.right),ce);default:throw new s.L("UnsupportedOperator",{operator:e.operator})}case"null":case"boolean":case"string":case"number":return ae(e.value);case"time":try{return this._compileRefStaticData(this._storeStaticData(D(e.value)))}catch{return re("evaluateTime",ae(e.value))}case"date":try{return this._compileRefStaticData(this._storeStaticData(b(e.value,"unknown")))}catch{return re("evaluateDate",ae(e.value),ae("unknown"))}case"timestamp":try{return this._compileRefStaticData(this._storeStaticData(M(e.value,"unknown")))}catch{return re("evaluateTimestamp",ae(e.value),ae("unknown"))}case"current-time":return"date"===e.mode?re("currentDate",ce):"time"===e.mode?re("currentTime",ce):re("currentTimestamp",ce);case"current-user":return fe;case"column-reference":return re("featureValue",ie,ae(e.column),le,ue);case"data-type":return function({type:e,size:t,withtimezone:n}){return JSON.stringify({type:e,size:t,withtimezone:n})}(e.value);case"function":return re("evaluateFunction",ae(e.name),this._compileNode(e.args),ce)}throw new s.L("UnsupportedSyntax",{node:e.type})}}class pe{static create(e,t={}){return new pe(e,t.fieldsIndex,t.timeZone??void 0,t.currentUser)}constructor(e,t,n="UTC",r=null){this.fieldsIndex=t,this.timeZone=n,this.currentUser=r,this.parameters={},this._compiledExecutor=null,this._hasDateFunctions=void 0,this.parseTree=X.parse(e);const{isStandardized:a,isAggregate:o,currentUserRequired:i,referencedFieldNames:s}=this._extractExpressionInfo(t);this._referencedFieldNames=s,this.isStandardized=a,this.isAggregate=o,this.currentUserRequired=i}static convertValueToStorageFormat(e,t=null){if(null===t)return(0,F.$P)(e)?e.getTime():S(e)?e.toMillis():_(e)?e.toStorageFormat():C(e)?e.toStorageString():x(e)?e.toStorageFormat():e;switch(t){case"date":return(0,F.$P)(e)?e.getTime():S(e)?e.toMillis():_(e)?e.toMilliseconds():x(e)?e.toNumber():e;case"date-only":return(0,F.$P)(e)?i.n.fromDateJS(e).toString():_(e)?i.n.fromSqlTimeStampOffset(e).toString():S(e)?i.n.fromDateTime(e).toString():e;case"time-only":return(0,F.$P)(e)?p.k.fromDateJS(e).toStorageString():S(e)?p.k.fromDateTime(e).toStorageString():_(e)?p.k.fromSqlTimeStampOffset(e).toStorageString():C(e)?e.toStorageString():e;case"timestamp-offset":if((0,F.$P)(e))return d.g.fromJSDate(e).toStorageFormat();if(S(e))return d.g.fromDateTime(e).toStorageFormat();if(_(e))return e.toStorageFormat()}return e}get fieldNames(){return this._referencedFieldNames}testSet(e,t=xe,n=this.currentUser){return!!this._evaluateNode(this.parseTree,null,t,e,n)}calculateValue(e,t=xe,n=this.currentUser){const r=this._evaluateNode(this.parseTree,e,t,null,n);return f.isInterval(r)?r.valueInMilliseconds()/864e5:r}tryGetCompiledExecutor(){if(null!=this._compiledExecutor)return this._compiledExecutor;if((0,r.A)("esri-csp-restrictions"))return null;const e=new de(this.parseTree,this.fieldsIndex);return this._compiledExecutor=e.compile(),this._compiledExecutor}calculateValueCompiled(e,t=xe,n=this.currentUser){const r=this.tryGetCompiledExecutor();return null==r?this.calculateValue(e,t):r(e,this.parameters,t,this.fieldsIndex,this.timeZone,n??null)}testFeature(e,t=xe,n=this.currentUser){return!!this._evaluateNode(this.parseTree,e,t,null,n)}testFeatureCompiled(e,t=xe,n=this.currentUser){const r=this.tryGetCompiledExecutor();return null==r?this.testFeature(e,t):!!r(e,this.parameters,t,this.fieldsIndex,this.timeZone,n??null)}get hasDateFunctions(){return null!=this._hasDateFunctions||(this._hasDateFunctions=(0,a.zN)(Q(this.parseTree),e=>"current-time"===e.type||"function"===e.type&&te.has(e.name.toLowerCase()))),this._hasDateFunctions}getFunctions(){const e=new Set;for(const t of Q(this.parseTree))"function"===t.type&&e.add(t.name.toLowerCase());return Array.from(e)}getExpressions(){const e=new Map;for(const t of Q(this.parseTree))if("function"===t.type){const n=t.name.toLowerCase(),r=t.args.value[0];if("column-reference"===r.type){const t=r.column,a=`${n}-${t}`;e.has(a)||e.set(a,{aggregateType:n,field:t})}}return Array.from(e.values())}getVariables(){const e=new Set;for(const t of Q(this.parseTree))"parameter"===t.type&&e.add(t.value.toLowerCase());return Array.from(e)}_extractExpressionInfo(e){const t=[],n=new Set;let r=!0,a=!1,i=!1;for(const s of Q(this.parseTree))switch(s.type){case"column-reference":{const r=e?.get(s.column);let a,o;r?a=o=r.name??"":(o=s.column,a=o.toLowerCase()),n.has(a)||(n.add(a),t.push(o)),s.column=o;break}case"current-user":i=!0;break;case"function":{const{name:e,args:t}=s,n=t.value.length;r&&(r=K(e,n)),!1===a&&(a=(0,o.M)(e,n));break}}return{referencedFieldNames:Array.from(t),isStandardized:r,isAggregate:a,currentUserRequired:i}}_evaluateNode(e,t,n,r,a){let i;switch(e.type){case"interval":{const o=this._evaluateNode(e.value,t,n,r,a);return f.createFromValueAndQualifier(o,e.qualifier,e.op)}case"case-expression":if("simple"===e.format){const o=this._evaluateNode(e.operand,t,n,r,a);for(let i=0;i<e.clauses.length;i++)if(k(o,this._evaluateNode(e.clauses[i].operand,t,n,r,a),"="))return this._evaluateNode(e.clauses[i].value,t,n,r,a);if(null!==e.else)return this._evaluateNode(e.else,t,n,r,a)}else{for(let o=0;o<e.clauses.length;o++)if(me(this._evaluateNode(e.clauses[o].operand,t,n,r,a)))return this._evaluateNode(e.clauses[o].value,t,n,r,a);if(null!==e.else)return this._evaluateNode(e.else,t,n,r,a)}return null;case"parameter":return i=this.parameters[e.value.toLowerCase()],(0,F.$P)(i)?h.c9.fromJSDate(i):null!=i&&"object"==typeof i&&"toDateTime"in i?i.toDateTime():i;case"expression-list":{const o=[];for(const i of e.value)o.push(this._evaluateNode(i,t,n,r,a));return o}case"unary-expression":return we(this._evaluateNode(e.expr,t,n,r,a));case"binary-expression":switch(e.operator){case"AND":return ve(this._evaluateNode(e.left,t,n,r,a),this._evaluateNode(e.right,t,n,r,a));case"OR":return Ie(this._evaluateNode(e.left,t,n,r,a),this._evaluateNode(e.right,t,n,r,a));case"IS":if("null"!==e.right.type)throw new s.L("UnsupportedIsRhs");return null===this._evaluateNode(e.left,t,n,r,a);case"ISNOT":if("null"!==e.right.type)throw new s.L("UnsupportedIsRhs");return null!==this._evaluateNode(e.left,t,n,r,a);case"IN":{const o=he(this._evaluateNode(e.right,t,n,r,a));return ge(this._evaluateNode(e.left,t,n,r,a),o)}case"NOT IN":{const o=he(this._evaluateNode(e.right,t,n,r,a));return we(ge(this._evaluateNode(e.left,t,n,r,a),o))}case"BETWEEN":{const o=this._evaluateNode(e.left,t,n,r,a),i=this._evaluateNode(e.right,t,n,r,a);return null==o||null==i[0]||null==i[1]?null:k(o,i[0],">=")&&k(o,i[1],"<=")}case"NOTBETWEEN":{const o=this._evaluateNode(e.left,t,n,r,a),i=this._evaluateNode(e.right,t,n,r,a);return null==o||null==i[0]||null==i[1]?null:k(o,i[0],"<")||k(o,i[1],">")}case"LIKE":return Oe(this._evaluateNode(e.left,t,n,r,a),this._evaluateNode(e.right,t,n,r,a),e.escape);case"NOT LIKE":return we(Oe(this._evaluateNode(e.left,t,n,r,a),this._evaluateNode(e.right,t,n,r,a),e.escape));case"<>":case"<":case">":case">=":case"<=":case"=":if(Ee(e,e.operator,this.fieldsIndex)){const r=e.comparisonData;return k(Se(t,r.fieldName,null,n),r.comparisonEpochMs,r.op)}return k(this._evaluateNode(e.left,t,n,r,a),this._evaluateNode(e.right,t,n,r,a),e.operator);case"-":case"+":case"*":case"/":case"||":return W(e.operator,this._evaluateNode(e.left,t,n,r,a),this._evaluateNode(e.right,t,n,r,a),this.timeZone)}case"null":case"boolean":case"string":case"number":return e.value;case"date":return e.parsedValue??=b(e.value,"unknown"),e.parsedValue;case"timestamp":return e.parsedValue??=M(e.value,"unknown"),e.parsedValue;case"time":return e.parsedValue??=D(e.value),e.parsedValue;case"current-time":return"date"===e.mode?Le(this.timeZone):"time"===e.mode?Te(this.timeZone):ye(this.timeZone);case"current-user":return a??null;case"column-reference":return Se(t,e.column,this.fieldsIndex,n);case"data-type":return e.value;case"function":{if(this.isAggregate&&(0,o.M)(e.name,e.args.value.length)){const t=[];for(const o of e.args?.value||[]){const e=[];for(const t of r||[])e.push(this._evaluateNode(o,t,n,null,a));t.push(e)}return(0,o.s)(e.name,t)}const i=this._evaluateNode(e.args,t,n,r,a);return q(e.name,i,this.timeZone)}}throw new s.L("UnsupportedSyntax",{node:e.type})}}function me(e){return!0===e}function he(e){return Array.isArray(e)?e:[e]}function we(e){return null!==e?!0!==e:null}function ve(e,t){return null!=e&&null!=t?!0===e&&!0===t:!1!==e&&!1!==t&&null}function Ie(e,t){return null!=e&&null!=t?!0===e||!0===t:!0===e||!0===t||null}function ge(e,t){if(null==e)return null;let n=!1;for(const r of t)if(null==r)n=null;else{if(e===r){n=!0;break}if(R(e)&&R(r)&&(n=k(e,r,"="),n))break}return n}function ye(e){return O(new Date,e)}function Le(e){return i.n.fromNow(e)}function Te(e){const t=O(new Date,e);return p.k.fromDateTime(t)}const Ne="-[]/{}()*+?.\\^$|";function Oe(e,t,n){return null==e?null:function(e,t){const n=t;let r="",a=0;for(let t=0;t<e.length;t++){const o=e.charAt(t);switch(a){case 0:o===n?a=1:Ne.includes(o)?r+="\\"+o:r+="%"===o?".*":"_"===o?".":o;break;case 1:Ne.includes(o)?r+="\\"+o:r+=o,a=0}}return new RegExp("^"+r+"$","m")}(t,n).test(e)}function Ee(e,t,n){if("comparisonData"in e)return null!=e.comparisonData;try{if(null==n)return!1;let r,a;if("column-reference"===e.left.type&&"timestamp"===e.right.type)r=e.left,a=e.right;else{if("timestamp"!==e.left.type||"column-reference"!==e.right.type)return!1;r=e.right,a=e.left,t=function(e){switch(e){case"<>":case"=":return e;case"<":return">";case">":return"<";case"<=":return">=";case">=":return"<=";default:throw new s.L("UnsupportedOperator",{operator:e})}}(t)}const o=n.get(r.column);if("esriFieldTypeDate"!==o?.type&&"date"!==o?.type)return!1;const i=n.getTimeZone(o.name),u=null!=i?(0,ee.S3)(i):h.mQ.utcInstance;return!!u.isUniversal&&(e.comparisonData=function(e,t,n,r){const a=M(r,t);let o;if(d.g.isTimestampOffset(a))if((0,m.Y4)(t)){const e=a.toDateTime();o=h.c9.fromObject({year:e.year,month:e.month,day:e.day,hour:e.hour,minute:e.minute,second:e.second,millisecond:e.millisecond},{zone:t}).toMillis()}else o=a.toMilliseconds();else o=a.toMillis();return{fieldName:e,op:n,comparisonEpochMs:o}}(o.name,u,t,a.value),!0)}finally{"comparisonData"in e||(e.comparisonData=null)}}function Se(e,t,n,r){if("getAttributeSQL"in r)return r.getAttributeSQL(e,t);const a=r.getAttribute(e,t);if(null==a)return a;const o=n?.get(t);switch(o?.type){case"esriFieldTypeDate":case"date":{const e=n?.getTimeZone(o.name);return O(new Date(a),null!=e?(0,ee.S3)(e):h.mQ.utcInstance)}case"esriFieldTypeDateOnly":case"date-only":return i.n.fromReader(a);case"esriFieldTypeTimeOnly":case"time-only":return p.k.fromReader(a);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return new d.g(a)}return a}const xe={getAttribute:(e,t)=>(function(e){return e&&"object"==typeof e.attributes}(e)?e.attributes:e)[t]}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4167,6061],{28879(e,t,n){n.r(t),n.d(t,{OperatorGeodeticLength:()=>m});var s=n(5482),o=n(55537),r=n(47591),a=n(88885),i=n(83661),c=n(15756),g=n(5247);class m{getOperatorType(){return 10311}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n,s){if(4===n)return(new r.O).execute(e,t,s);if(0===t.getCoordinateSystemType()&&(0,o.a)(""),(0,o.c)(e),e.isEmpty()||e.getDimension()<1)return 0;const m=t.getGCS(),u=(0,c.U)();m.querySpheroidData(u);const l=u.majorSemiAxis,h=u.e2,y=m.getUnit().getUnitToBaseFactor();let x;const p=e.getGeometryType();if(p===o.G.enumPolygon?x=e.getBoundary():p===o.G.enumEnvelope?x=(0,a.c)(e):(0,o.f)(p)?(x=new a.a({vd:e.getDescription()}),x.addSegment(e,!0)):x=e,x.hasNonLinearSegments()&&(x=(new g.O).execute(x,0,t.getTolerance(0),0,s)),m!==t){const n=t.getSRToGCSTransform();if(t.isPannable()){x=(0,c.M)(x,t),p===o.G.enumPolyline&&x===e&&(x=e.clone());const n=new i.E;t.getPannableExtent().queryIntervalX(n);for(let e=0,t=x.getPointCount();e<t;e++){const t=x.getXY(e);t.x=(0,c.N)(t.x,n),x.setXY(e,t)}}const r=x.createInstance();x=(0,c.Q)(n,x,r,s)?r:(new c.O).execute(x,n,s)}return this._ExecuteMultiPathGeodeticLength(x,n,l,h,y)}_ExecuteMultiPathGeodeticLength(e,t,n,o,r){const a={stack:[],error:void 0,hasError:!1};try{const i=(0,s.mS)(a,new c.R,!1);let g=0;const m=e.querySegmentIterator();for(;m.nextPath();)for(;m.hasNextSegment();){const e=m.nextSegment(),s=e.getStartXY(),a=e.getEndXY();s.scale(r),a.scale(r),c.S.geodeticDistance(n,o,s.x,s.y,a.x,a.y,i,null,null,t),g+=i.val}return g}catch(e){a.error=e,a.hasError=!0}finally{(0,s.hk)(a)}}}},47591(e,t,n){n.d(t,{O:()=>x});var s=n(55537),o=n(15756),r=n(88885),a=n(83661),i=n(95213),c=n(79187),g=n(5247),m=n(31139);function u(){return{m_pGcs:new a.P,m_xyz:new i.f,m_factor:Number.NaN,m_geoLength:Number.NaN,setValues:l,setLength:h,assign:y}}function l(e,t,n,s){this.m_factor=e,this.m_pGcs.assign(t),this.m_xyz.assign(s),this.m_geoLength=n}function h(e){this.m_geoLength=e}function y(e){this.m_pGcs.assign(e.m_pGcs),this.m_xyz.assign(e.m_xyz),this.m_factor=e.m_factor,this.m_geoLength=e.m_geoLength}class x{getOperatorType(){return 10315}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}_ExecuteShapePreservingLength(e,t,n,s,r){if(e.hasNonLinearSegments()&&(e=(new g.O).execute(e,0,t.getTolerance(0),0,r)),t.isPannable()){let s=90,a=-90;if(1===n.getUnit().getUnitToBaseFactor()&&(s*=Math.PI/180,a*=Math.PI/180),2===t.getCoordinateSystemType()){let e=null;const n=[0,0,0,0];e=t.getPECoordSys(),n[0]=0,n[1]=s,n[2]=0,n[3]=a,o.V.geogToProj(e,2,n),s=n[1],a=n[3]}const i=new c.Envelope2D;e.queryEnvelope(i),i.ymin=a,i.ymax=s,e=(new m.O).execute(e,i,t,r)}else{const n=t.getPCSHorizon();if((e=(new o.g).execute(e,n,t,r))===n){const t=e.clone();e=t}}return e.isEmpty()?0:this._ExecuteIterativeApproach(e,t,n,s,1,r)}_ExecuteIterativeApproach(e,t,n,r,c,g){const m=(0,o.U)();n.querySpheroidData(m);const l=m.majorSemiAxis,h=m.e2,y=n.getUnit().getUnitToBaseFactor(),x=(0,a.k)(u,40),_=(0,a.d)(40,Number.NaN),d=u(),S=u();let G;const P=[0,0,0,0],w=t.getPECoordSys(),C=new a.P,E=new a.P,v=new a.P,N=new a.P,T=new a.P;let L=0;const b=e.querySegmentIterator();for(;b.nextPath();)for(;b.hasNextSegment();){const e=b.nextSegment();C.assign(e.getStartXY()),E.assign(e.getEndXY()),2===t.getCoordinateSystemType()?(P[0]=C.x,P[1]=C.y,P[2]=E.x,P[3]=E.y,o.V.projToGeog(w,2,P),v.x=P[0]*y,v.y=P[1]*y,N.x=P[2]*y,N.y=P[3]*y):(v.setCoordsPoint2D(C),N.setCoordsPoint2D(E),v.scale(y),N.scale(y));const n=new i.f,r=new i.f;p(l,h,v,n),p(l,h,N,r);let a=f(l,n,r);d.setValues(0,v,Number.NaN,n),S.setValues(1,N,a,r),G=c,x[0].assign(S),_[0]=c;let g=0;for(;;){g>128&&(0,s.d)("iterations exceeded");const n=.5*(d.m_factor+S.m_factor),r=e.getCoord2D(n);2===t.getCoordinateSystemType()?(P[0]=r.x,P[1]=r.y,o.V.projToGeog(w,1,P),T.x=P[0]*y,T.y=P[1]*y):(T.setCoordsPoint2D(r),T.scale(y)),v.setCoordsPoint2D(d.m_pGcs),N.setCoordsPoint2D(S.m_pGcs);const m=new i.f;p(l,h,T,m);const u=f(l,d.m_xyz,m),C=f(l,S.m_xyz,m);a=S.m_geoLength,Number.isNaN(a)&&(a=f(l,d.m_xyz,S.m_xyz));const E=u+C,b=G===c&&E>=20&&Math.abs(E-a)>1e-8*(a+E);if(g+2<40&&(b||Math.abs(E-a)>0&&G>0))S.setLength(C),x[g].assign(S),S.setValues(n,T,u,m),x[++g].assign(S),b?(G=c,_[g]=c):(G--,_[g-1]=G,_[g]=G);else{if(L+=E,0===g)break;d.assign(S),S.assign(x[--g]),G=_[g]}}}return L}execute(e,t,n){if(t&&0!==t.getCoordinateSystemType()||(0,s.a)(""),e.isEmpty()||e.getDimension()<1)return 0;let a=null;const i=t.getGCS();i!==t&&(a=(0,o.a)(t,i,null));const c=e.getGeometryType();if(c===s.G.enumEnvelope){const s=new r.P;return s.addEnvelope(e,!1),this._ExecuteShapePreservingLength(s,t,i,a,n)}if((0,s.f)(c)){const s=new r.a;return s.addSegment(e,!0),this._ExecuteShapePreservingLength(s,t,i,a,n)}return this._ExecuteShapePreservingLength(e,t,i,a,n)}}function p(e,t,n,s){s.assign((0,o.W)(e,t,n))}function f(e,t,n){const s=e,o=new i.f;o.setSub(t,n);const r=o.length();return 2*s*Math.asin(r/(2*s))}},61691(e,t,n){n.d(t,{G:()=>s});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,n){n.d(t,{S:()=>o});var s=n(61691);class o extends s.G{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6418],{4902(e,t,r){r.d(t,{s:()=>i});var a=r(5482),s=r(64108);let n=0;const i=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return r=(0,a.Cg)([(0,s.$)("esri.core.Identifiable")],r),r};i(class{})},11221(e,t,r){r.d(t,{t1:()=>w,Jn:()=>I,Rn:()=>T,An:()=>_});var a=r(48938),s=r(23732),n=r(87449),i=r(5482),o=r(52106),l=r(93833),u=r(60999);class c{constructor(e,t){this._parent=e,this._abortSignal=t,this._done=!1,this._features=null,this._batchMutex=new u.aD,this._currentPage=null,this._pageCursor=-1}get _numAvailable(){return null==this._currentPage||this._pageCursor<0?0:Math.max(this._currentPage.length-this._pageCursor,0)}_takeNFeatures(e){if(null==this._currentPage)return[];const t=this._currentPage.slice(this._pageCursor,this._pageCursor+e);return this._pageCursor+=t.length,t.map(e=>o.A.fromJSON(e))}_takeOneFeature(){const e=this._currentPage[this._pageCursor];return this._pageCursor+=1,o.A.fromJSON(e)}async _nextBatch(){if(this._done)return!1;const e=await(this._features??=this._parent.queryAll(this._abortSignal));let t;do{if(t=await e.next(),t.done)return this._done=!0,this._currentPage=null,this._pageCursor=-1,!1}while(t.value.length<=0);return this._currentPage=t.value,this._pageCursor=0,!0}async nextBatchAsArcadeFeatures(e,t){const r=await this.nextBatch(e);return null==r?r:r.map(e=>l.Xj.createFromGraphicLikeObject(e.geometry,e.attributes,this._parent,t))}async nextBatch(e){const t={stack:[],error:void 0,hasError:!1};try{if(this._done)return null;if(e<=0)return[];if((0,i.mS)(t,await this._batchMutex.acquire(),!1),this._numAvailable>=e)return this._takeNFeatures(e);const r=[];let a=e;do{const e=this._takeNFeatures(a);a-=e.length,r.push(e)}while(a>0&&await this._nextBatch());const s=r.flat();return s.length>0?s:null}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}async next(){const e={stack:[],error:void 0,hasError:!1};try{return this._done?null:((0,i.mS)(e,await this._batchMutex.acquire(),!1),this._numAvailable>=1||await this._nextBatch()?this._takeOneFeature():null)}catch(t){e.error=t,e.hasError=!0}finally{(0,i.hk)(e)}}}var h=r(33325),p=r(50145),d=r(71163),g=r(5479),f=r(89696),y=r(16930),m=r(65864),b=r(95466);function T(e,t){for(const r of e)null!=r.geometry&&(r.geometry.spatialReference??=t)}const _=Object.freeze({ordered:!0,filterApplied:!0,spatialFilterApplied:!0,features:Object.freeze({next:()=>Promise.resolve({done:!0,value:void 0}),[Symbol.asyncIterator](){return this}})});class w{constructor(){this.declaredRootClass="esri.arcade.featureset.support.FeatureSet",this._parent=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=7,this._databaseTypeProbed=null,this._loadPromise=null,this._allFeatures=null,this._fieldsIndex=null,this.typeIdField=null,this.types=null,this.subtypeField=null,this.subtypes=null,this.fields=null,this.geometryType="",this.objectIdField="",this.globalIdField="",this.spatialReference=null,this.hasM=!1,this.hasZ=!1}_ensureLoaded(){return this.load()}load(){return null===this._loadPromise&&(this._loadPromise=this.loadImpl()),this._loadPromise}async loadImpl(){return await(this._parent?.load()),this._initialiseFeatureSet(),this}_initialiseFeatureSet(){null!==this._parent?(this.fields=this._parent.fields.slice(),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.subtypeField=this._parent.subtypeField,this.subtypes=this._parent.subtypes):(this.fields=[],this.typeIdField="",this.subtypeField="",this.objectIdField="",this.globalIdField="",this.spatialReference=new y.A({wkid:4326}),this.geometryType=h.ik.point)}getField(e,t){return e=e.toLowerCase(),(t||this.fields).find(t=>t.name.toLowerCase()===e)}getFieldsIndex(){return null===this._fieldsIndex&&(this._fieldsIndex=b.A.fromLayer({timeInfo:this.timeInfo,editFieldsInfo:this.editFieldsInfo,dateFieldsTimeZone:this.dateFieldsTimeZone,datesInUnknownTimezone:this.datesInUnknownTimezone,fields:this.fields})),this._fieldsIndex}_maxProcessingRate(){return null!==this._parent?Math.min(this._maxProcessing,this._parent._maxProcessingRate()):Math.min(this._maxProcessing,this._maxQueryRate())}_maxQueryRate(){return null!==this._parent?Math.max(this._maxQuery,this._parent._maxQueryRate()):this._maxQuery}nativeCapabilities(){return this._parent.nativeCapabilities()}get _hasCachedFeatures(){return null!=this._allFeatures}async queryAll(e){null==this._allFeatures&&(this._allFeatures=this._queryAll().then(e=>(0,g.N5)(e)));const t=(await this._allFeatures)();return null==e||e===a._?t:async function*(){for await(const r of t)(0,n.dZ)(e),yield r}()}async databaseType(){if(7===this._databaseType){if(null!==s.A.applicationCache){const e=s.A.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());if(null!==e)return e}if(null!==this._databaseTypeProbed)return this._databaseTypeProbed;try{this._databaseTypeProbed=this._getDatabaseTypeImpl(),null!==s.A.applicationCache&&s.A.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(),this._databaseTypeProbed)}catch(e){throw null!==s.A.applicationCache&&s.A.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()),e}return this._databaseTypeProbed}return this._databaseType}async _getDatabaseTypeImpl(){const e=[{dbType:2,probeSql:"(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0"},{dbType:3,probeSql:"(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0"},{dbType:1,probeSql:"(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0"}];for(const t of e)if(!0===await this._runDatabaseProbe(t.probeSql))return t.dbType;return 1}_cacheableFeatureSetSourceKey(){return"MUSTBESET"}async _runDatabaseProbe(e){if(null!==this._parent)return this._parent._runDatabaseProbe(e);throw new n.dr("NotImplemented")}isTable(){return this._parent?.isTable()??!1}first(e){return this.iterator(e).next()}async isEmpty(e){return this._totalCount>=0?0===this._totalCount:null==await this.first(e)}async calculateStatistic(e,t,r,a){await this._ensureLoaded();let s=await this.queryStat({stat:e,field:t,limit:r,abortSignal:a});return!1===s.calculated&&(s=await this._manualStat(e,t,r,a)),s.result}async _manualStat(e,t,r,a){let s=null;switch(e.toLowerCase()){case"count":{if(this._totalCount>=0)return{calculated:!0,result:this._totalCount};const e=await this.queryAll(a);let t=0;for await(const r of e)t+=r.length;return this._totalCount=t,{calculated:!0,result:t}}case"distinct":return s=await(0,p.dM)(this,t,r,a),{calculated:!0,result:s};case"avg":case"mean":return s=await(0,p.i2)(this,t,a),{calculated:!0,result:s};case"stdev":return s=await(0,p.b$)(this,t,a),{calculated:!0,result:s};case"variance":return s=await(0,p.GV)(this,t,a),{calculated:!0,result:s};case"sum":return s=await(0,p.cz)(this,t,a),{calculated:!0,result:s};case"min":return s=await(0,p.jk)(this,t,a),{calculated:!0,result:s};case"max":return s=await(0,p.T9)(this,t,a),{calculated:!0,result:s};default:return{calculated:!0,result:0}}}iterator(e){return new c(this,e)}async sumArea(e,t,r){let a=0;for await(const s of await this.queryAll(r))for(const r of s)null!=r.geometry&&(a+=null!=t?await(0,d.C)("geodeticArea",[r.geometry,e,t]):await(0,d.C)("area",[r.geometry,e]));return a}async sumLength(e,t,r){let a=0;for await(const s of await this.queryAll(r))for(const r of s)null!=r.geometry&&(a+=null!=t?await(0,d.C)("geodeticLength",[r.geometry,e,t]):await(0,d.C)("length",[r.geometry,e]));return a}async count(e){return await this.load(),this.calculateStatistic("count",f.A.create("1",{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),-1,e??a._)}castToText(e=!1){return"object, FeatureSet"}queryAttachments(e,t,r,a,s){return this._parent.queryAttachments(e,t,r,a,s)}serviceUrl(){return this._parent.serviceUrl()}subtypeMetadata(){return this.subtypeField&&this.subtypes?{subtypeField:this.subtypeField,subtypes:this.subtypes?this.subtypes.map(e=>({name:e.name,code:e.code})):[]}:this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map(e=>({name:e.name,code:e.id})):[]}:null}relationshipMetadata(){return this._parent.relationshipMetadata()}get gdbVersion(){return this._parent?this._parent.gdbVersion:""}schema(){const e=[];for(const t of this.fields)e.push((0,h.nE)(t));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:void 0===h.yT[this.geometryType]?"esriGeometryNull":h.yT[this.geometryType],fields:e}}async convertToText(e,t){if("schema"===e)return await this._ensureLoaded(),JSON.stringify(this.schema());if("featureset"===e){await this._ensureLoaded();const e=[];for await(const r of await this.queryAll(t))for(const t of r){const r={geometry:t.geometry??null,attributes:t.attributes};if(null!==r.geometry&&r.geometry.spatialReference){const{spatialReference:e,...t}=r.geometry;r.geometry=t}e.push(r)}return JSON.stringify({...this.schema(),features:e,spatialReference:this.spatialReference.toJSON()})}return this.castToText()}getFeatureByObjectId(e,t){return this._parent.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return this._parent.getRootFeatureSet()}getDataSourceFeatureSet(){return null!==this._parent?this._parent.getDataSourceFeatureSet():this}castAsJson(e=null){return"keeptype"===e?.featureset?this:"none"===e?.featureset?null:{type:"FeatureSet"}}async castAsJsonAsync(e=null,t=null){if("keeptype"===t?.featureset)return this;if("schema"===t?.featureset)return await this._ensureLoaded(),JSON.parse(JSON.stringify(this.schema()));if("none"===t?.featureset)return null;await this._ensureLoaded();const r=[];for await(const a of await this.queryAll(e))for(const e of a){const a={geometry:e.geometry?!0===t?.keepGeometryType?(0,m.rS)(e.geometry):e.geometry:null,attributes:e.attributes};if(null!==a.geometry&&a.geometry.spatialReference&&!0!==t?.keepGeometryType){delete a.geometry.spatialReference;const{spatialReference:e,...t}=a.geometry;a.geometry=t}r.push(a)}return{...this.schema(),features:r,spatialReference:!0===t?.keepGeometryType?this.spatialReference:this.spatialReference?.toJSON()}}fieldTimeZone(e){return this.getFieldsIndex().getTimeZone(e)}get preferredTimeZone(){return this._parent?.preferredTimeZone??null}get dateFieldsTimeZone(){return this._parent?.dateFieldsTimeZone??null}get dateFieldsTimeZoneDefaultUTC(){return this.datesInUnknownTimezone?"unknown":this.dateFieldsTimeZone||"UTC"}get datesInUnknownTimezone(){return this._parent.datesInUnknownTimezone}get editFieldsInfo(){return this._parent?.editFieldsInfo??null}get timeInfo(){return this._parent?.timeInfo??null}getFeatureSetInfo(){return this._parent?this._parent.getFeatureSetInfo():Promise.resolve(null)}}class I extends w{constructor(){super(...arguments),this._parent=null}getRootFeatureSet(){return this}}},23732(e,t,r){r.d(t,{A:()=>a});class a{static{this.applicationCache=null}constructor(){this._databaseTypeMetaData={},this._layerInfo={}}clearDatabaseType(e){void 0===this._databaseTypeMetaData[e]&&delete this._databaseTypeMetaData[e]}getDatabaseType(e){return"MUSTBESET"===e||void 0===this._databaseTypeMetaData[e]?null:this._databaseTypeMetaData[e]}setDatabaseType(e,t){this._databaseTypeMetaData[e]=t}getLayerInfo(e){return void 0===this._layerInfo[e]?null:this._layerInfo[e]}setLayerInfo(e,t){this._layerInfo[e]=t}clearLayerInfo(e){void 0!==this._layerInfo[e]&&delete this._layerInfo[e]}}},36708(e,t,r){r.d(t,{C_:()=>p,OH:()=>f,Vh:()=>y,on:()=>h,pc:()=>m,wB:()=>l,z7:()=>u});var a=r(37955),s=r(36563),n=r(97768),i=r(74887),o=r(14012);function l(e,t,r={}){return c(e,t,r,d)}function u(e,t,r={}){return c(e,t,r,g)}function c(e,t,r={},a){let s=null;const i=r.once?(e,r)=>{a(e)&&((0,n.xt)(s),t(e,r))}:(e,r)=>{a(e)&&t(e,r)};if(s=(0,o.Cn)(e,i,r.sync,r.equals),r.initial){const t=e();i(t,t)}return s}function h(e,t,r,i={}){let o=null,u=null,c=null;function h(){o&&u&&(u.remove(),i.onListenerRemove?.(o),o=null,u=null)}function p(e){i.once&&i.once&&(0,n.xt)(c),r(e)}const d=l(e,(e,r)=>{h(),(0,a.wb)(e)&&(o=e,u=(0,a.on)(e,t,p),i.onListenerAdd?.(e))},{sync:i.sync,initial:!0});return c=(0,s.hA)(()=>{d.remove(),h()}),c}function p(e,t){return function(e,t,r){if((0,i.G4)(r))return Promise.reject((0,i.NK)());const a=e();if(t?.(a))return Promise.resolve(a);let o=null;function l(){o=(0,n.xt)(o)}return new Promise((a,n)=>{o=(0,s.vE)([(0,i.u7)(r,()=>{l(),n((0,i.NK)())}),c(e,e=>{l(),a(e)},{sync:!1,once:!0},t??d)])})}(e,g,t)}function d(e){return!0}function g(e){return!!e}r(80559);const f={sync:!0},y={initial:!0},m={sync:!0,initial:!0}},50145(e,t,r){r.d(t,{Dp:()=>c,GV:()=>g,T9:()=>p,b$:()=>f,cz:()=>y,dM:()=>b,i2:()=>d,jk:()=>h});var a=r(87449),s=(r(33325),r(80609)),n=r(44729),i=r(55612),o=r(15032);function l(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t/e.length}function u(e){const t=l(e);let r=0;for(let a=0;a<e.length;a++)r+=(t-e[a])**2;return r/(e.length-1)}function c(e){switch(e.toLowerCase()){case"distinct":return"distinct";case"avg":case"mean":return"avg";case"min":return"min";case"sum":return"sum";case"max":return"max";case"stdev":case"stddev":return"stddev";case"var":case"variance":return"var";case"count":return"count"}return null}async function h(e,t,r){const a=await m(e,t,r);return 0===a.length?null:Math.min.apply(Math,a)}async function p(e,t,r){const a=await m(e,t,r);return 0===a.length?null:Math.max.apply(Math,a)}async function d(e,t,r){let a="";t&&!(0,s.DA)(t)&&(a=(0,s.IY)(t,e.fields));const n=await m(e,t,r);if(0===n.length)return null;const i=l(n);return null===i?i:"integer"===a?function(e){return e=+e,isFinite(e)?e-e%1||(e<0?-0:0===e?e:0):e}(i):i}async function g(e,t,r){const a=await m(e,t,r);return 0===a.length?null:u(a)}async function f(e,t,r){const a=await m(e,t,r);return 0===a.length?null:Math.sqrt(u(a))}async function y(e,t,r){const a=await m(e,t,r);return 0===a.length?null:function(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t}(a)}async function m(e,t,r){const s=await e.queryAll(r),l=[],u={ticker:0};for await(const e of s){if(u.ticker+=e.length,u.ticker>=100&&(u.ticker=0,await new Promise(e=>{setTimeout(e,0)})),r?.aborted)throw new a.dr("Cancelled");for(const r of e){const e=t?.calculateValue(r);null===e||(l[l.length]=e instanceof n.n||e instanceof o.k?e.toNumber():e instanceof i.g?e.toMilliseconds():e)}}return l}async function b(e,t,r=1e3,s=null){if(null==t)return[];const l=await e.queryAll(s),u=[],c=new Set,h={ticker:0};for await(const e of l){if(h.ticker+=e.length,h.ticker>=100&&(h.ticker=0,await new Promise(e=>{setTimeout(e,0)})),s?.aborted)throw new a.dr("Cancelled");for(const a of e){const e=t.calculateValue(a);let s=e;if(e instanceof n.n?s="!!DATEONLY!!-"+e.toString():e instanceof i.g?s="!!TSOFFSETONLY!!-"+e.toString():e instanceof o.k?s="!!TIMEONLY!!-"+e.toString():e instanceof Date&&(s="!!DATE!!-"+e.toString()),null!=e&&(c.has(s)||(u.push(e),c.add(s))),u.length>=r&&-1!==r)return u}}return u}},52106(e,t,r){r.d(t,{A:()=>A});var a,s,n=r(5482),i=r(37838),o=r(69540),l=r(51447),u=r(25482),c=r(53966),h=r(36708),p=r(24326),d=r(91429),g=r(12195),f=r(65864),y=r(50498),m=r(55156),b=r(60950),T=r(54339),_=r(94128),w=r(33910);function I(e){if(null==e)return null;const t={};for(const r in e){const a=e[r];a&&(t[r]=a.toJSON())}return 0!==Object.keys(t).length?t:null}let A=class extends((0,o.OU)(u.o)){static{a=_.Z}static{s=this}constructor(e){super(e),this[a]=!0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,m.I)(this.origin);if(e)return(0,T.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,T.r)(this,t):null}getGlobalId(){const e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:I(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,a){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const s={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(s.action=a),"attributes"===e&&(s.attributeName=a),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.addHandles([(0,h.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,h.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,n.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const a=(0,f.rS)(e[r]);a&&(t[r]=a)}return 0!==Object.keys(t).length?t:null}}})],A.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,d.MZ)({value:null})],A.prototype,"attributes",null),(0,n.Cg)([(0,d.MZ)({value:null,types:y.yR,json:{read:f.rS}})],A.prototype,"geometry",null),(0,n.Cg)([(0,d.MZ)({type:Boolean})],A.prototype,"isAggregate",void 0),(0,n.Cg)([(0,d.MZ)({clonable:!1})],A.prototype,"layer",void 0),(0,n.Cg)([(0,d.MZ)({clonable:"reference"})],A.prototype,"origin",void 0),(0,n.Cg)([(0,d.MZ)({type:i.A,value:null})],A.prototype,"popupTemplate",null),(0,n.Cg)([(0,d.MZ)({clonable:"reference"})],A.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,d.MZ)({value:null,types:w.Es})],A.prototype,"symbol",null),(0,n.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],A.prototype,"_version",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,value:!0})],A.prototype,"visible",null),A=s=(0,n.Cg)([(0,d.$K)("esri.Graphic")],A)},55156(e,t,r){r.d(t,{I:()=>s,e:()=>a});const a=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&a in t?e[a]:void 0;var t}},71163(e,t,r){r.d(t,{C:()=>l});var a=r(29953);let s,n,i=!1;function o(){return s??=(0,a.ho)("arcadeGeometryOperatorsWorker").then(e=>{n=e,i=!0,s=void 0})}async function l(e,t){return i?n.apply("invokeGeometryOp",[e,t]):(await o(),l(e,t))}},80609(e,t,r){r.d(t,{C6:()=>_,DA:()=>L,F1:()=>b,F6:()=>f,IY:()=>w,Ju:()=>v,Kb:()=>d,Mi:()=>c,Nf:()=>m,R8:()=>y,YY:()=>u,bD:()=>h,bm:()=>T,kg:()=>p,oj:()=>C});var a=r(66131),s=r(33325),n=r(1262),i=r(15032),o=r(89696),l=r(92647);function u(e,t){return g(e?.parseTree,t,e?.parameters)}function c(e,t,r){return g(e,t,r)}function h(e,t,r,a){const s=g(e.parseTree,0,e.parameters,t,r);return o.A.create(s,{fieldsIndex:a,timeZone:e.timeZone,currentUser:e.currentUser})}function p(e,t,r="AND"){return o.A.create("(("+u(e,0)+")"+r+"("+u(t,0)+"))",{fieldsIndex:e.fieldsIndex,timeZone:e.timeZone,currentUser:e.currentUser})}function d(e){return!0===e.delimited?`"${e.column.split('"').join('""')}"`:e.column}function g(e,t,r,a=null,i=null){let o,l,u,c;switch(e.type){case"interval":return C(g(e.value,t,r,a,i),e.qualifier,e.op);case"case-expression":{let s=" CASE ";"simple"===e.format&&(s+=g(e.operand,t,r,a,i));for(let n=0;n<e.clauses.length;n++)s+=" WHEN "+g(e.clauses[n].operand,t,r,a,i)+" THEN "+g(e.clauses[n].value,t,r,a,i);return null!==e.else&&(s+=" ELSE "+g(e.else,t,r,a,i)),s+=" END ",s}case"parameter":{const a=r[e.value.toLowerCase()];if("string"==typeof a)return"'"+r[e.value.toLowerCase()].toString().replaceAll("'","''")+"'";if((0,s.$P)(a))return T(a,t);if((0,s.Lk)(a))return T(a,t);if((0,s.eg)(a))return b(a,t);if((0,s.rX)(a))return y(a,t);if((0,s.f0)(a))return m(a,t);if(Array.isArray(a)){const e=[];for(let r=0;r<a.length;r++)"string"==typeof a[r]?e.push("'"+a[r].toString().replaceAll("'","''")+"'"):(0,s.$P)(a[r])||(0,s.Lk)(a[r])?e.push(T(a[r],t)):(0,s.eg)(a[r])?e.push(b(a[r],t)):(0,s.rX)(a[r])?e.push(y(a[r],t)):(0,s.f0)(a[r])?e.push(m(a[r],t)):e.push(a[r].toString());return e}return a.toString()}case"expression-list":l=[];for(const s of e.value)l.push(g(s,t,r,a,i));return l;case"unary-expression":return" ( NOT "+g(e.expr,t,r,a,i)+" ) ";case"binary-expression":switch(e.operator){case"AND":return" ("+g(e.left,t,r,a,i)+" AND "+g(e.right,t,r,a,i)+") ";case"OR":return" ("+g(e.left,t,r,a,i)+" OR "+g(e.right,t,r,a,i)+") ";case"IS":if("null"!==e.right.type)throw new n.L("UnsupportedIsRhs");return" ("+g(e.left,t,r,a,i)+" IS NULL )";case"ISNOT":if("null"!==e.right.type)throw new n.L("UnsupportedIsRhs");return" ("+g(e.left,t,r,a,i)+" IS NOT NULL )";case"IN":return o=[],"expression-list"===e.right.type?(o=g(e.right,t,r,a,i)," ("+g(e.left,t,r,a,i)+" IN ("+o.join(",")+")) "):(c=g(e.right,t,r,a,i),Array.isArray(c)?" ("+g(e.left,t,r,a,i)+" IN ("+c.join(",")+")) ":" ("+g(e.left,t,r,a,i)+" IN ("+c+")) ");case"NOT IN":return o=[],"expression-list"===e.right.type?(o=g(e.right,t,r,a,i)," ("+g(e.left,t,r,a,i)+" NOT IN ("+o.join(",")+")) "):(c=g(e.right,t,r,a,i),Array.isArray(c)?" ("+g(e.left,t,r,a,i)+" NOT IN ("+c.join(",")+")) ":" ("+g(e.left,t,r,a,i)+" NOT IN ("+c+")) ");case"BETWEEN":return u=g(e.right,t,r,a,i)," ("+g(e.left,t,r,a,i)+" BETWEEN "+u[0]+" AND "+u[1]+" ) ";case"NOTBETWEEN":return u=g(e.right,t,r,a,i)," ("+g(e.left,t,r,a,i)+" NOT BETWEEN "+u[0]+" AND "+u[1]+" ) ";case"LIKE":return""!==e.escape?" ("+g(e.left,t,r,a,i)+" LIKE "+g(e.right,t,r,a,i)+" ESCAPE '"+e.escape+"') ":" ("+g(e.left,t,r,a,i)+" LIKE "+g(e.right,t,r,a,i)+") ";case"NOT LIKE":return""!==e.escape?" ("+g(e.left,t,r,a,i)+" NOT LIKE "+g(e.right,t,r,a,i)+" ESCAPE '"+e.escape+"') ":" ("+g(e.left,t,r,a,i)+" NOT LIKE "+g(e.right,t,r,a,i)+") ";case"<>":case"<":case">":case">=":case"<=":case"=":case"*":case"-":case"+":case"/":return" ("+g(e.left,t,r,a,i)+" "+e.operator+" "+g(e.right,t,r,a,i)+") ";case"||":return" ("+g(e.left,t,r,a,i)+" "+(2===t?"+":e.operator)+" "+g(e.right,t,r,a,i)+") "}throw new n.L("UnsupportedOperator",{operator:e.operator});case"null":return"null";case"boolean":return!0===e.value?"1":"0";case"string":return"'"+e.value.toString().replaceAll("'","''")+"'";case"timestamp":return`timestamp '${e.value}'`;case"date":return`date '${e.value}'`;case"time":return`time '${e.value}'`;case"number":return e.value.toString();case"current-time":return _(e.mode,t);case"current-user":return"CURRENT_USER";case"column-reference":return a&&a.toLowerCase()===e.column.toLowerCase()?"("+i+")":d(e);case"data-type":return e.value;case"function":{const s=g(e.args,t,r,a,i);return f(e.name,s,t)}}throw new n.L("UnsupportedSyntax",{node:e.type})}function f(e,t,r){switch(e.toLowerCase().trim()){case"cos":case"sin":case"tan":case"cosh":case"tanh":case"sinh":case"acos":case"asin":case"atan":case"floor":case"log10":case"log":case"abs":if(1!==t.length)throw new n.L("InvalidFunctionParameters",{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]})`;case"ceiling":case"ceil":if(1!==t.length)throw new n.L("InvalidFunctionParameters",{function:"ceiling"});return"CEILING("+t[0]+")";case"mod":case"power":case"nullif":if(2!==t.length)throw new n.L("InvalidFunctionParameters",{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]},${t[1]})`;case"round":if(2===t.length)return"ROUND("+t[0]+","+t[1]+")";if(1===t.length)return"ROUND("+t[0]+")";throw new n.L("InvalidFunctionParameters",{function:"round"});case"truncate":if(t.length<1||t.length>2)throw new n.L("InvalidFunctionParameters",{function:"truncate"});return 2===r?"ROUND("+t[0]+(1===t.length?"0":","+t[1])+",1)":"TRUNCATE("+t[0]+(1===t.length?")":","+t[1]+")");case"char_length":case"len":if(1!==t.length)throw new n.L("InvalidFunctionParameters",{function:"char_length"});switch(r){case 2:return"LEN("+t[0]+")";case 3:return"LENGTH("+t[0]+")";default:return"CHAR_LENGTH("+t[0]+")"}case"coalesce":case"concat":{if(t.length<1)throw new n.L("InvalidFunctionParameters",{function:e.toLowerCase()});let r=e.toUpperCase().trim()+"(";for(let e=0;e<t.length;e++)0!==e&&(r+=","),r+=t[e];return r+=")",r}case"lower":case"lcase":if(1!==t.length)throw new n.L("InvalidFunctionParameters",{function:"lower"});return"LOWER("+t[0]+")";case"upper":case"ucase":if(1!==t.length)throw new n.L("InvalidFunctionParameters",{function:"upper"});return"UPPER("+t[0]+")";case"substring":{let e="";switch(r){case 3:return e="SUBSTR("+t[0]+","+t[1],3===t.length&&(e+=","+t[2]),e+=")",e;case 2:return e=3===t.length?"SUBSTRING("+t[0]+","+t[1]+","+t[2]+")":"SUBSTRING("+t[0]+", "+t[1]+", LEN("+t[0]+") - "+t[1]+")",e;default:return e="SUBSTRING("+t[0]+" FROM "+t[1],3===t.length&&(e+=" FOR "+t[2]),e+=")",e}}case"extract":return"EXTRACT("+t[0].replaceAll("'","")+" FROM "+t[1]+")";case"cast":{let e="";switch(r){case 3:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case 4:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE PRECISION";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case 2:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="DATETIME";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;default:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`}}}throw new n.L("InvalidFunctionParameters",{function:e})}function y(e,t){const r=e.toDateTime(),a=0===r.hour&&0===r.minute&&0===r.second&&0===r.millisecond;switch(t){case 6:case 0:case 1:return a?`date '${r.toFormat("yyyy-LL-dd")}'`:`timestamp '${r.toFormat("yyyy-LL-dd HH:mm:ss")}'`;case 3:return a?`TO_DATE('${r.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')`:`TO_DATE('${r.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;case 2:return`'${r.toFormat(a?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;case 5:return`#${r.toFormat(a?"LL-dd-yyyy":"LL-dd-yyyy HH:mm:ss")}#`;case 4:return`TIMESTAMP '${r.toFormat(a?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;default:return`timestamp '${r.toFormat("yyyy-LL-dd HH:mm:ss")}'`}}function m(e,t){switch(t){case 6:case 0:case 1:default:return e.toSQLWithKeyword();case 3:return`TO_DATE('${e.toFormat("Y-MM-DD")}'`;case 2:return`'${e.toFormat("Y-MM-DD")}'`;case 5:return`#${e.toFormat("Y-MM-DD")}#`;case 4:return`TIMESTAMP '${e.toFormat("Y-MM-DD")}'`}}function b(e,t){switch(e instanceof i.k&&(e=e.toStorageString()),t){case 3:return`TO_DATE('${e}', 'HH24:MI:SS')`;case 2:return`'${e}'`;default:return`time '${e}'`}}function T(e,t){return y(a.lY.dateTimeToArcadeDate((0,s.Lk)(e)?e:l.c9.fromJSDate(e)),t)}function _(e,t){switch(t){case 6:case 0:case 1:case 3:case 5:default:return"date"===e?"CURRENT_DATE":"time"===e?"CURRENT_TIME":"CURRENT_TIMESTAMP";case 2:return"date"===e?"CAST(GETDATE() AS DATE)":"time"===e?"CAST(GETDATE() AS TIME)":"GETDATE()";case 4:return"date"===e?"CURRENT_DATE":"time"===e?"LOCALTIME":"CURRENT_TIMESTAMP"}}function w(e,t,r={}){const a={},s={},n={esriFieldTypeSmallInteger:"integer",esriFieldTypeInteger:"integer",esriFieldTypeBigInteger:"integer",esriFieldTypeSingle:"double",esriFieldTypeDouble:"double",esriFieldTypeString:"string",esriFieldTypeTimeOnly:"time-only",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimestampOffset:"timestamp-offset",esriFieldTypeDate:"date",esriFieldTypeOID:"integer",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"guid",oid:"integer",long:"integer","small-integer":"integer",integer:"integer","big-integer":"integer",single:"double","time-only":"time-only","date-only":"date-only","timestamp-offset":"timestemp-offset",double:"double",date:"date",guid:"guid","global-id":"guid",string:"string"};for(const e of t){const t=e.type?n[e.type]:void 0;a[e.name.toLowerCase()]=void 0===t?"":t}for(const e in r){const t=n[r[e]];s[e.toLowerCase()]=void 0===t?"":t}switch(I(a,e.parseTree,e.parameters,s)){case"double":return"double";case"integer":return"integer";case"date":return"date";case"date-only":return"date-only";case"time-only":return"time-only";case"timestamp-offset":return"timestamp-offset";case"string":return"string";case"global-id":case"guid":return"guid"}return""}function I(e,t,r,a){let i;switch(t.type){case"interval":return"integer";case"case-expression":{const s=[];if("simple"===t.format){for(let n=0;n<t.clauses.length;n++)s.push(I(e,t.clauses[n].value,r,a));null!==t.else&&s.push(I(e,t.else,r,a))}else{for(let n=0;n<t.clauses.length;n++)s.push(I(e,t.clauses[n].value,r,a));null!==t.else&&s.push(I(e,t.else,r,a))}return S(s)}case"parameter":{const e=a[t.value.toLowerCase()];if(void 0===e&&r){const e=r[t.value.toLowerCase()];if(void 0===e)return"";if(null===e)return"";if("string"==typeof e||e instanceof String)return"string";if("boolean"==typeof e)return"boolean";if((0,s.$P)(e))return"date";if((0,s.rX)(e))return"date";if((0,s.f0)(e))return"date-only";if((0,s.eg)(e))return"time-only";if("number"==typeof e)return e%1==0?"integer":"double"}return void 0===e?"":e}case"expression-list":{const s=[];for(const n of t.value)s.push(I(e,n,r,a));return s}case"unary-expression":return"boolean";case"binary-expression":switch(t.operator){case"AND":case"OR":case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":case"LIKE":case"NOT LIKE":case"<>":case"<":case">":case">=":case"<=":case"=":return"boolean";case"IS":case"ISNOT":if("null"!==t.right.type)throw new n.L("UnsupportedIsRhs");return"boolean";case"*":case"-":case"+":case"/":return S([I(e,t.left,r,a),I(e,t.right,r,a)]);case"||":return"string";default:throw new n.L("UnsupportedOperator",{operator:t.operator})}case"null":return"";case"boolean":return"boolean";case"string":return"string";case"number":return null===t.value?"":t.value%1==0?"integer":"double";case"date":return"date";case"timestamp":return t.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"current-time":return"time"===t.mode?"time-only":"date";case"current-user":return"string";case"column-reference":{const r=e[t.column.toLowerCase()];return void 0===r?"":r}case"function":switch(t.name.toLowerCase()){case"cast":switch(t.args?.value[1]?.value.type??""){case"integer":case"smallint":return"integer";case"real":case"float":return"double";case"date":case"timestamp":return!0===t.args?.value[1]?.value?.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"varchar":return"string";default:return""}case"position":case"extract":case"char_length":case"mod":return"integer";case"round":if(i=I(e,t.args,r,a),Array.isArray(i)){if(i.length<=0)return"double";i=i[0]}return i;case"sign":return"integer";case"ceiling":case"floor":case"abs":return i=I(e,t.args,r,a),Array.isArray(i)&&(i=S(i)),"integer"===i||"double"===i?i:"double";case"area":case"length":case"log":case"log10":case"sin":case"cos":case"tan":case"asin":case"acos":case"atan":case"cosh":case"sinh":case"tanh":case"power":return"double";case"substring":case"trim":case"concat":case"lower":case"upper":return"string";case"truncate":return"double";case"nullif":case"coalesce":return i=I(e,t.args,r,a),Array.isArray(i)?i.length>0?i[0]:"":i}return""}throw new n.L("UnsupportedSyntax",{node:t.type})}const A={boolean:1,string:2,integer:3,double:4,date:5};function S(e){if(e){let t="";for(const r of e)""!==r&&(t=""===t||A[t]<A[r]?r:t);return t}return""}function v(e,t){return F(e.parseTree,t)}function L(e){return"column-reference"===e?.parseTree.type}function F(e,t){if(null==e)return!1;switch(e.type){case"when-clause":return F(e.operand,t)||F(e.value,t);case"case-expression":for(const r of e.clauses)if(F(r,t))return!0;return!("simple"!==e.format||!F(e.operand,t))||!(null===e.else||!F(e.else,t));case"parameter":case"null":case"boolean":case"date":case"timestamp":case"time":case"string":case"number":return!1;case"expression-list":for(const r of e.value)if(F(r,t))return!0;return!1;case"unary-expression":return F(e.expr,t);case"binary-expression":return F(e.left,t)||F(e.right,t);case"column-reference":return t.toLowerCase()===e.column.toLowerCase();case"function":return F(e.args,t)}return!1}function E(e){let t="";return t+=e.period.toUpperCase(),t}function C(e,t,r){let a="";return a="interval-period"===t.type?E(t):E(t.start)+" TO "+E(t.end),"INTERVAL "+r+" "+e+" "+a}},87449(e,t,r){r.d(t,{dZ:()=>i,dr:()=>n});var a=r(799);const s={Cancelled:"Cancelled",InvalidStatResponse:"Invalid statistics response from service",InvalidRequest:"Invalid request",RequestFailed:"Request failed - {reason}",MissingFeatures:"Missing features",AggregationFieldNotFound:"Aggregation field not found",DataElementsNotFound:"Data elements not found on service",NeverReach:"Encountered unreachable logic",NotImplemented:"Not implemented"};class n extends Error{constructor(e,t){super((0,a.HC)(s[e],t)),this.declaredRootClass="esri.arcade.featureset.support.featureseterror",Error.captureStackTrace&&Error.captureStackTrace(this,n)}}function i(e){if(null!=e&&e?.aborted)throw new n("Cancelled")}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,2260,6061,6312,7992,8125,9169,9397],{4197(t,e,r){r.d(e,{Vj:()=>h,cj:()=>u,jh:()=>i,l5:()=>o,xm:()=>a});var n=r(34275),s=r(9093);function i(t){return t<=n.y9?new Array(t).fill(0):new Float64Array(t)}function a(t){return((0,n.iu)(t)?t.byteLength/8:t.length)<=n.y9?Array.from(t):new Float64Array(t)}function o(t,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function u(t){return[...t]}function h(t){const e=(0,s.vt)();for(let r=0;r<16;++r)e[r]=t[r];return e}},9093(t,e,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}r.d(e,{o8:()=>s,vt:()=>n,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,fromValues:function(t,e,r,n,s,i,a,o,u,h,c,l,f,m,g,x){return[t,e,r,n,s,i,a,o,u,h,c,l,f,m,g,x]}},Symbol.toStringTag,{value:"Module"}))},50647(t,e,r){r.d(e,{execute:()=>u}),r(4576),r(76061);var n=r(61691),s=r(55537);class i extends n.G{constructor(t,e,r){super(),this.m_index=-1,this.m_transformation=e.clone(),this.m_inputGeometryCursor=t}next(){let t;if(t=this.m_inputGeometryCursor.next()){(0,s.c)(t),this.m_index=this.m_inputGeometryCursor.getGeometryID();const e=t.clone();return e.applyTransformation(this.m_transformation),e}return null}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}}const a=new class{getOperatorType(){return 10303}supportsCurves(){return!0}accelerateGeometry(t,e,r){return!1}canAccelerateGeometry(t){return!1}executeMany(t,e,r){return new i(t,e,r)}execute(t,e,r){const n=t.clone();return n.applyTransformation(e),n}};var o=r(78125);function u(t,e){const r=(0,o.getSpatialReference)(t);return(0,o.toGeometry)(function(t,e){return a.execute(t,e,null)}((0,o.fromGeometry)(t),e.transform),r)}a.supportsCurves()},61691(t,e,r){r.d(e,{G:()=>n});class n{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},69397(t,e,r){r.d(e,{Qf:()=>u,Qh:()=>a,RS:()=>s,Ul:()=>m,lM:()=>i,qK:()=>c});var n=r(34275);const s=16;function i(t){if(!t)return 0;let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let r=l;for(let n=0;n<e;n++)r+=o(t[n]);return r}(t);let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return l+t.length*e}const c=32,l=16,f=145,m=64},70328(t,e,r){r.d(e,{BI:()=>v,DC:()=>l,Ej:()=>m,Ie:()=>y,Jt:()=>d,Ne:()=>g,RF:()=>c,aI:()=>C,fA:()=>a,gE:()=>u,hZ:()=>p,iT:()=>f,is:()=>M,qv:()=>E,vI:()=>x,vY:()=>o,v_:()=>P,vt:()=>i,w1:()=>h});var n=r(5443),s=(r(19419),r(4197));function i(t=P){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,e,r,n,s,a,o=i()){return o[0]=t,o[1]=e,o[2]=r,o[3]=n,o[4]=s,o[5]=a,o}function o(t,e=i()){return function(t,e,r,n=i()){return p(n,E),function(t,e,r=0,n=e.length/3){let s=t[0],i=t[1],a=t[2],o=t[3],u=t[4],h=t[5];for(let t=0;t<n;t++)s=Math.min(s,e[r+3*t]),i=Math.min(i,e[r+3*t+1]),a=Math.min(a,e[r+3*t+2]),o=Math.max(o,e[r+3*t]),u=Math.max(u,e[r+3*t+1]),h=Math.max(h,e[r+3*t+2]);t[0]=s,t[1]=i,t[2]=a,t[3]=o,t[4]=u,t[5]=h}(n,t,e,r),n}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[r,n,i,a,o,u]=t;return e[0]=r,e[1]=n,e[2]=i,e[3]=r,e[4]=n,e[5]=u,e[6]=r,e[7]=o,e[8]=i,e[9]=r,e[10]=o,e[11]=u,e[12]=a,e[13]=n,e[14]=i,e[15]=a,e[16]=n,e[17]=u,e[18]=a,e[19]=o,e[20]=i,e[21]=a,e[22]=o,e[23]=u,e}function h(t,e){const r=isFinite(t[2])||isFinite(t[5]);return new n.A(r?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,r=t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r!==t&&(r[3]=t[3],r[4]=t[4],r[5]=t[5]),r}function x(t,e,r=t){return r[3]=e[0],r[4]=e[1],r[5]=e[2],r!==t&&(r[0]=t[0],r[1]=t[1],r[2]=t[2]),t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function y(t){return t?p(t,E):i(E)}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function v(t,e,r,n,s){return t[0]=e,t[1]=r,t[2]=Number.NEGATIVE_INFINITY,t[3]=n,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function M(t){return 6===t.length}function C(t,e,r){if(null==t||null==e)return t===e;if(!M(t)||!M(e))return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}const E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],P=[0,0,0,0,0,0];i()},76061(t,e,r){r.d(e,{S:()=>s});var n=r(61691);class s extends n.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>p,fromGeometry:()=>x,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>v,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>E,getSpatialReference:()=>g,toExtent:()=>V,toGeometry:()=>P,toMultipoint:()=>_,toPoint:()=>I,toPolygon:()=>A,toPolyline:()=>w});var n=r(83661),s=(r(79187),r(55537)),i=r(95213),a=r(88885),o=r(5443),u=r(48526),h=r(86738),c=r(39829),l=r(82799),f=(r(90293),r(83299));const m="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function x(t){switch(t.type){case"point":return d(t);case"multipoint":return y(t);case"polyline":return M(t);case"polygon":return v(t);case"extent":return p(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function p(t){if(!t.getCacheValue(m)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(m,e)}return t.getCacheValue(m)}function y(t){if(!t.getCacheValue(m)){const e=new a.M,r=new i.P,n=t.points,s=t.hasM,o=t.hasZ,u=o?3:2;for(let t=0,i=n.length;t<i;t++){const i=n[t];r.setXYCoords(i[0],i[1]),o&&r.setZ(i[2]??0),s&&r.setM(i[u]??NaN),e.add(r)}t.setCacheValue(m,e)}return t.getCacheValue(m)}function d(t){if(!t.getCacheValue(m)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(m,e)}return t.getCacheValue(m)}function v(t){if(!t.getCacheValue(m)){const{curveRings:e,hasM:r,hasZ:n,rings:s}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:n,rings:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function M(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:r,hasZ:n,paths:s}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:n,paths:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function C(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:r,hasZ:n,paths:s}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:n,paths:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function E(t){return(0,f.fromSpatialReference)(t)}function P(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return I(t,e);case s.G.enumEnvelope:return V(t,e);case s.G.enumMultiPoint:return _(t,e);case s.G.enumPolyline:return w(t,e);case s.G.enumPolygon:return A(t,e)}return null}function V(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),n=t.getDescription();if(n.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(n.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(m,t),r}function _(t,e){if(t.isEmpty())return null;const r=t.getDescription(),n=r.hasM(),s=r.hasZ(),a=[],o=new i.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];s&&r.push(o.getZ()),n&&r.push(o.getM()),a.push(r)}const h=new u.A({hasM:n,hasZ:s,points:a,spatialReference:e});return h.setCacheValue(m,t),h}function I(t,e){if(t instanceof n.P)return new h.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new h.A({x:t.getX(),y:t.getY(),spatialReference:e}),s=t.getDescription();return s.hasM()&&(r.m=t.getM()),s.hasZ()&&(r.z=t.getZ()),r.setCacheValue(m,t),r}function A(t,e){if(t.isEmpty())return null;const r=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(m,t),r}function w(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(m,t),r}},87992(t,e,r){r.d(e,{JR:()=>_,ME:()=>E,MY:()=>I,NO:()=>C,Nh:()=>V,V2:()=>R,_s:()=>S,e6:()=>Y,gh:()=>P,tr:()=>G,uX:()=>p});var n=r(5482),s=r(69397),i=r(16930),a=(r(70328),r(19419)),o=r(60408),u=r(21325),h=r(513),c=r(50954),l=r(79567),f=r(52006),m=r(49663),g=r(46068),x=r(92722);class p{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:i,partCount:a,partOffsets:o,partFlags:u,segmentFlags:h,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:n,hasM:s,segmentCountArc:i,segmentCountBezier:a}=this,o=R(t,e,r,n,s,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(o.vertexXY.set(u.subarray(0,2*e),0),o.vertexZ?.set(h.subarray(0,e),0),o.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(n.subarray(0,s),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,u.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return new y(this)}}class y{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=Z(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new M(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class M{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=Z(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],n=e[r++],s=e[r++],i=e[r++];return{b:[this.end,[t,n],[s,i]]}}const n=e[r++],s=e[r++],i=e[r++],a=e[r++],o=e[r++],u=e[r++];r++,r++;const h=e[r++],c=e[r++];if(!Boolean(4&n)&&1===i)return{c:[this.end,[h,c]]};const l=2&n?0:1,f=1&n?0:1;return{a:[this.end,[o,u],l,f,a,s,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,n.mS)(r,new A(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:s,vertexZ:i,vertexM:o}=t,u=w(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new A(t,["vertexZ","vertexM"]),!1);const s=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(s,t,r),t=(0,f.yP)(r)}const[i,o,h,c]=s;e={xmin:i,ymin:o,xmax:h,ymax:c,spatialReference:u}}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}else{let t,n,i,a;t=n=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=s[2*e],o=s[2*e+1];t=Math.min(t,r),i=Math.max(i,r),n=Math.min(n,o),a=Math.max(a,o)}e={xmin:t,ymin:n,xmax:i,ymax:a,spatialReference:u}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}function E(t){let e,r,n;if((0,o.fT)(t)){n="point";const{x:s,y:i,z:a,m:o}=t,u=[s,i];null!=a&&u.push(a),null!=o&&u.push(o),r=[[u]],e=1}else(0,o.U9)(t)?(n="multipoint",r=[t.points],e=t.points.length):(0,o.Rg)(t)?(n="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(n="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,O(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const s=R(n,e,n.includes("point")?0:r.length,(0,o.Pv)(t),(0,o.W0)(t),(0,f.Ed)(t)),{hasZ:i,hasM:a,vertexXY:u,vertexZ:h,vertexM:c}=s;function l(t){u[2*g]=t[0],u[2*g+1]=t[1],i&&(h[g]=t[2]),a&&(c[g]=t[m]),++g}s.spatialReference=t.spatialReference??void 0;const m=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!i&&!a){for(const[t,e]of r[0])u[2*g]=t,u[2*g+1]=e,++g;return s}for(const t of r[0])l(t);return s}const x="polygon"===n,{partOffsets:p}=s;let y=0;if(!s.hasCurves()){for(const t of r){if(p[y++]=g,0===t.length)continue;let e=t.length;if(x&&O(t[0],t.at(-1))&&--e,i||a)for(let r=0;r<e;++r)l(t[r]);else for(let r=0;r<e;++r){const[e,n]=t[r];u[2*g]=e,u[2*g+1]=n,++g}}return p[y]=g,s}function d(t){const e=v+t;if(e<=(s.segmentParams?.length??0))return;let r=e*N;r=20*Math.ceil(r/20);const n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let v=0;for(const t of r){if(s.partOffsets[y++]=g,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const n=t[e];l(r);const i=g-1;(0,f.wY)(n)?(d(10),++s.segmentCountArc,v=S(r,n,s,i,v),r=n.a[0]):(0,f.DA)(n)?(d(10),++s.segmentCountArc,v=b(r,n,s,i,v),r=n.a[0]):(0,f.aO)(n)?(d(10),++s.segmentCountArc,v=Y(r,n,s,i,v),r=n.c[0]):(0,f.n1)(n)?(d(4),++s.segmentCountBezier,v=G(0,n,s,i,v),r=n.b[0]):r=n}x&&O(e,r)||l(r)}return s.partOffsets[y]=g,s}function P(t){const e=Z(t),{vertexCount:r,partCount:n,hasZ:s,hasM:i}=t,a=w(t);if("point"===t.type){const[e,r]=t.vertexXY,n=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:r,z:n,m:s,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:s,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let s=0;s<n;++s){const n=t.partOffsets[s+1],i=new Array;for(;o<n;)i.push(e(o++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:s,hasM:i,spatialReference:a}:{paths:r,hasZ:s,hasM:i,spatialReference:a}}const h=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);h.push(t)}return u?{rings:[],curveRings:h,hasZ:s,hasM:i,spatialReference:a}:{paths:[],curvePaths:h,hasZ:s,hasM:i,spatialReference:a}}function V(t,{lengths:e,coords:r,hasZ:n,hasM:s},i){const a=t.includes("point")?0:e.length,o="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);n??=!1,s??=!1;const h=R(t,u,a,n,s,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let t=0,e=0;t<u;++t)h.vertexXY[2*t]=r[e++],h.vertexXY[2*t+1]=r[e++],n&&(h.vertexZ[t]=r[e++]),s&&(h.vertexM[t]=r[e++]);return h}const c=2+Number(n)+Number(s);let l=0,f=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[f],i=e+t-Number(o);h.partOffsets[++f]=i;for(let t=e;t<i;++t)h.vertexXY[2*t]=r[l++],h.vertexXY[2*t+1]=r[l++],n&&(h.vertexZ[t]=r[l++]),s&&(h.vertexM[t]=r[l++]);o&&(l+=c)}return h}function _({type:t,vertexCount:e,vertexXY:r,vertexZ:n,vertexM:s,partCount:i,partOffsets:a,hasZ:o,hasM:u}){const h=new x.A([],[],o,u);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=h.coords.length;for(let t=l;t<i;++t)h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(n[t]),u&&h.coords.push(s[t]);if(c){const t=l;h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(n[t]),u&&h.coords.push(s[t])}h.lengths.push((h.coords.length-f)/h.stride),l=i}return"point"===t&&(h.lengths.length=0),h}function I(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let n=t.getLatestID();(n<=0||n===r)&&(n=void 0);const s=t.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:e};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:n,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class A{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function w({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function Z({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?n=>[t[2*n],t[2*n+1],e[n],r[n]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function O(t,e){return t.every((t,r)=>t===e[r])}function R(t,e,r,n,s,i,a,o){a??=0,o??=0;const u=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let h=2*Float64Array.BYTES_PER_ELEMENT*e;n&&(h+=Float64Array.BYTES_PER_ELEMENT*e),s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(h+=e*Int8Array.BYTES_PER_ELEMENT,h+=e*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(h);let l=0;return u.vertexXY=new Float64Array(c,l,2*e),l+=u.vertexXY.byteLength,n&&(u.vertexZ=new Float64Array(c,l,e),l+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(c,l,e),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,l,e),u.segmentIndices.fill(T),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,l,r+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,l,r+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(c,l,e),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function S(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,a){r[i]=4,n[i]=a;const[o,[u,h],c,l,f,m,x]=e.a;let p=4;l||(p|=1),c||(p|=2);const y=(0,g.SW)(t,e),[d,v]=(0,g.Uk)(y,.5);return s[a++]=p,s[a++]=m,s[a++]=x,s[a++]=f,s[a++]=u,s[a++]=h,s[a++]=y.u2-y.u1,s[a++]=y.u1,s[a++]=d,s[a++]=v,a}function b(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,a){r[i]=4,n[i]=a;const o=(0,m.i)(t,e);return F(o,4,...(0,h.mq)(o,.5),s,a)}function Y(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,a){return r[i]=4,n[i]=a,F((0,c.pM)(t,e),0,...e.c[1],s,a)}function F(t,e,r,n,s,i){const{cx:a,cy:o,thetaStart:u,thetaEnd:h,radius:c}=t;return u>h||(e|=1),Math.abs(h-u)<=Math.PI||(e|=2),s[i++]=e,s[i++]=c,s[i++]=1,s[i++]=0,s[i++]=a,s[i++]=o,s[i++]=h-u,s[i++]=u,s[i++]=r,s[i++]=n,i}function G(t,{b:[e,[r,n],[s,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:u},h,c){return a[h]=2,o[h]=c,u[c++]=r,u[c++]=n,u[c++]=s,u[c++]=i,c}const N=1.61803,T=-1},92722(t,e,r){r.d(e,{A:()=>s});var n=r(69397);class s{constructor(t=[],e=[],r=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:n}){return new s(t,e,r||!1,n||!1)}static fromRect([t,e,r,n]){const i=r-t,a=n-e;return new s([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:n}=this;let s=this.coords[n*e],i=this.coords[n*e+1];for(let a=1;a<r;a+=1){const r=n*(e+a),o=this.coords[r],u=this.coords[r+1];t+=-.5*(o-s)*(u+i),s=o,i=u}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const n of this.lengths){for(let s=0;s<n;s++){const n=r*(e+s);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let n=0;const{stride:s}=this;for(const t of r){for(let r=1;r<t;r++){const t=s*(n+r);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}n+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:n}=this,i=this.coords.slice(0,n*r);return t?(t.set(i),new s(e,t)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,n=0;e<r.length;e+=t)r[n++]=this.coords[e],r[n++]=this.coords[e+1];return new s(this.lengths,r,!1,!1)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7367],{71163(n,t,e){e.d(t,{C:()=>c});var r=e(29953);let a,i,o=!1;function s(){return a??=(0,r.ho)("arcadeGeometryOperatorsWorker").then(n=>{i=n,o=!0,a=void 0})}async function c(n,t){return o?i.apply("invokeGeometryOp",[n,t]):(await s(),c(n,t))}},80672(n,t,e){e.d(t,{R:()=>a});var r=e(20655);function a(n,t){return null===n?t:new r.A({url:n.field("url")})}},87367(n,t,e){e.r(t),e.d(t,{registerFunctions:()=>J});var r=e(47609),a=e(66395),i=e(85935),o=e(78502),s=e(78878),c=e(80672),u=e(98919),l=e(71163),f=e(4576),d=e(5443),w=e(91075),y=e(48526),h=e(86738),A=e(39829),S=e(82799),m=e(65864),C=e(20655),N=e(70333),g=e(11254);async function O(n,t,e){const r=N.id?.findCredential(n.restUrl);if(!r)return null;if("loaded"===n.loadStatus&&""===t&&n.user?.sourceJSON&&!1===e)return n.user.sourceJSON;const a={responseType:"json",query:{f:"json"}};if(e&&(a.query.returnUserLicenseTypeExtensions=!0),""===t){const t=await(0,g.A)(n.restUrl+"/community/self",a);if(t.data){const n=t.data;if(n?.username)return n}return null}const i=await(0,g.A)(n.restUrl+"/community/users/"+t,a);if(i.data){const n=i.data;return n.error?null:n}return null}var p=e(54218);function v(n){if(null==n)return n;switch(typeof n){case"string":case"number":return n;default:throw new i.D$(null,"InvalidParameter",null)}}function J(n){"async"===n.mode&&(n.functions.disjoint=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null===a[0]||null===a[1]||(0,l.C)("disjoint",[a[0].toJSON(),a[1].toJSON()])))},n.functions.intersects=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("intersects",[a[0].toJSON(),a[1].toJSON()])))},n.functions.touches=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("touches",[a[0].toJSON(),a[1].toJSON()])))},n.functions.crosses=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("crosses",[a[0].toJSON(),a[1].toJSON()])))},n.functions.within=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("within",[a[0].toJSON(),a[1].toJSON()])))},n.functions.contains=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("contains",[a[0].toJSON(),a[1].toJSON()])))},n.functions.overlaps=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("overlaps",[a[0].toJSON(),a[1].toJSON()])))},n.functions.equals=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>((0,s.B)(a,2,2,t,e),a[0]===a[1]||(a[0]instanceof w.A&&a[1]instanceof w.A?(0,l.C)("equals",[a[0].toJSON(),a[1].toJSON()]):((0,s.e)(a[0])&&(0,s.e)(a[1])||!!((0,s.g)(a[0])&&(0,s.g)(a[1])||(0,s.f)(a[0])&&(0,s.f)(a[1])))&&a[0].equals(a[1]))))},n.functions.relate=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,3,3,t,e),a[0]instanceof w.A&&a[1]instanceof w.A)return(0,l.C)("relate",[a[0].toJSON(),a[1].toJSON(),(0,s.s)(a[2])]);if(a[0]instanceof w.A&&null===a[1])return!1;if(a[1]instanceof w.A&&null===a[0])return!1;if(null===a[0]&&null===a[1])return!1;throw new i.D$(t,"InvalidParameter",e)})},n.functions.intersection=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null===a[0]||null===a[1]?null:(0,m.rS)(await(0,l.C)("intersection",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.union=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(0===(a=(0,s.C)(a)).length)throw new i.D$(t,"WrongNumberOfParameters",e);const c=[];if(1===a.length)if((0,p.cy)(a[0])){for(const n of(0,s.C)(a[0]))if(null!==n){if(!(n instanceof w.A))throw new i.D$(t,"InvalidParameter",e);c.push(n.toJSON())}}else{if(!(0,s.j)(a[0])){if(a[0]instanceof w.A)return(0,s.D)((0,o.Yq)(a[0]),t.spatialReference);if(null===a[0])return null;throw new i.D$(t,"InvalidParameter",e)}for(const n of(0,s.C)(a[0].toArray()))if(null!==n){if(!(n instanceof w.A))throw new i.D$(t,"InvalidParameter",e);c.push(n.toJSON())}}else for(const n of a)if(null!==n){if(!(n instanceof w.A))throw new i.D$(t,"InvalidParameter",e);c.push(n.toJSON())}return 0===c.length?null:(0,m.rS)(await(0,l.C)("union",[c]))})},n.functions.difference=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null===a[0]?null:null===a[1]?(0,o.Yq)(a[0]):(0,m.rS)(await(0,l.C)("difference",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.symmetricdifference=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null===a[0]&&null===a[1]?null:null===a[0]?(0,o.Yq)(a[1]):null===a[1]?(0,o.Yq)(a[0]):(0,m.rS)(await(0,l.C)("symmetricDifference",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.clip=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,2,t,e),!(a[1]instanceof d.A)&&null!==a[1])throw new i.D$(t,"InvalidParameter",e);if(null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return null===a[1]?null:(0,m.rS)(await(0,l.C)("clip",[a[0].toJSON(),a[1].toJSON()]))})},n.functions.cut=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,2,t,e),!(a[1]instanceof S.A)&&null!==a[1])throw new i.D$(t,"InvalidParameter",e);if(null===a[0])return[];if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return null===a[1]?[(0,o.Yq)(a[0])]:(await(0,l.C)("cut",[a[0].toJSON(),a[1].toJSON()])).map(n=>(0,m.rS)(n))})},n.functions.area=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if((0,s.B)(a,1,2,t,e),a=(0,s.C)(a),(0,s.m)(a[0])){const n=await a[0].sumArea(v(a[1]),null,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,"Cancelled",e);return n}let o=a[0];if(((0,p.cy)(o)||(0,s.j)(o))&&(o=(0,s.E)(a[0],t.spatialReference)),null===o)return 0;if(!(o instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("area",[o.toJSON(),v(a[1])])})},n.functions.areageodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{(0,s.B)(a,1,3,t,e);let o=(a=(0,s.C)(a))[0];((0,p.cy)(o)||(0,s.j)(o))&&(o=(0,s.E)(o,t.spatialReference));const c=v(a[1]),f=(0,u.rE)(a[2]);if((0,s.m)(o)){const n=await o.sumArea(c,f,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,"Cancelled",e);return n}if(null==o)return 0;if(!(0,s.h)(o))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("geodeticArea",[o.toJSON(),c,f])})},n.functions.length=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if((0,s.B)(a,1,2,t,e),a=(0,s.C)(a),(0,s.m)(a[0])){const n=await a[0].sumLength(v(a[1]),null,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,"Cancelled",e);return n}let o=a[0];if(((0,p.cy)(a[0])||(0,s.j)(a[0]))&&(o=(0,s.F)(a[0],t.spatialReference)),null===o)return 0;if(!(o instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("length",[o.toJSON(),v(a[1])])})},n.functions.length3d=function(t,r){return n.standardFunctionAsync(t,r,async(n,a,o)=>{if((0,s.B)(o,1,2,t,r),null===(o=(0,s.C)(o))[0])return 0;let c=o[0];if(((0,p.cy)(o[0])||(0,s.j)(o[0]))&&(c=(0,s.F)(o[0],t.spatialReference)),null===c)return 0;if(!(c instanceof w.A))throw new i.D$(t,"InvalidParameter",r);if(!0===c.hasZ){const{convertFromSpatialReferenceUnit:n,toLengthUnit:t}=await Promise.resolve().then(e.bind(e,40547)),r=(0,u.UI)(c);return n(c.spatialReference,t(o[1]),r)}return(0,l.C)("length",[c.toJSON(),v(o[1])])})},n.functions.lengthgeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{(0,s.B)(a,1,3,t,e);let o=(a=(0,s.C)(a))[0];((0,p.cy)(a[0])||(0,s.j)(a[0]))&&(o=(0,s.F)(a[0],t.spatialReference));const c=v(a[1]),f=(0,u.rE)(a[2]);if((0,s.m)(o)){const n=await o.sumLength(c,f,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,"Cancelled",e);return n}if(null===o)return 0;if(!(0,s.h)(o))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("geodeticLength",[o.toJSON(),c,f])})},n.functions.distance=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,3,t,e);let o=a[0];if(((0,p.cy)(a[0])||(0,s.j)(a[0]))&&(o=(0,s.G)(a[0],t.spatialReference)),!(o instanceof w.A))throw new i.D$(t,"InvalidParameter",e);let c=a[1];if(((0,p.cy)(a[1])||(0,s.j)(a[1]))&&(c=(0,s.G)(a[1],t.spatialReference)),!(c instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("distance",[o.toJSON(),c.toJSON(),v(a[2])])})},n.functions.distancegeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,4,t,e);const o=a[0];if(!(o instanceof h.A))throw new i.D$(t,"InvalidParameter",e);const c=a[1];if(!(c instanceof h.A))throw new i.D$(t,"InvalidParameter",e);const f=new S.A({paths:[],spatialReference:o.spatialReference});return f.addPath([o,c]),(0,l.C)("geodeticLength",[f.toJSON(),v(a[2]),(0,u.rE)(a[3])])})},n.functions.densify=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);const o=(0,s.r)(a[1]);if(isNaN(o))throw new i.D$(t,"InvalidParameter",e);if(o<=0)throw new i.D$(t,"InvalidParameter",e);switch(a[0].type){case"polygon":case"polyline":case"extent":return(0,m.rS)(await(0,l.C)("densify",[a[0].toJSON(),o,v(a[2])]));default:return a[0]}})},n.functions.densifygeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,4,t,e);const o=a[0];if(null==o)return null;if(!(0,s.h)(o))throw new i.D$(t,"InvalidParameter",e);const c=(0,s.r)(a[1]);if(isNaN(c))throw new i.D$(t,"InvalidParameter",e);if(c<=0)throw new i.D$(t,"InvalidParameter",e);const f=v(a[2]),d=(0,u.rE)(a[3]);switch(o.type){case"polygon":case"polyline":case"extent":return(0,m.rS)(await(0,l.C)("geodeticDensify",[o.toJSON(),c,f,d]));default:return o}})},n.functions.generalize=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,4,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);const o=(0,s.r)(a[1]);if(isNaN(o))throw new i.D$(t,"InvalidParameter",e);const c=(0,s.H)((0,s.J)(a[2],!0));return(0,m.rS)(await(0,l.C)("generalize",[a[0].toJSON(),o,v(a[3]),{removeDegenerateParts:c}]))})},n.functions.buffer=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);const c=(0,s.r)(a[1]);if(isNaN(c))throw new i.D$(t,"InvalidParameter",e);return 0===c?(0,o.Yq)(a[0]):(0,m.rS)(await(0,l.C)("buffer",[a[0].toJSON(),c,v(a[2])]))})},n.functions.buffergeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,4,t,e);const c=a[0];if(null==c)return null;if(!(0,s.h)(c))throw new i.D$(t,"InvalidParameter",e);const f=(0,s.r)(a[1]);if(isNaN(f))throw new i.D$(t,"InvalidParameter",e);if(0===f)return(0,o.Yq)(c);const d=v(a[2]),w=(0,u.rE)(a[3]);return(0,m.rS)(await(0,l.C)("geodesicBuffer",[c.toJSON(),f,d,w]))})},n.functions.offset=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,6,t,e);const o=a[0];if(null===o)return null;if(!(o instanceof A.A||o instanceof S.A))throw new i.D$(t,"InvalidParameter",e);const c=(0,s.r)(a[1]);if(isNaN(c))throw new i.D$(t,"InvalidParameter",e);const f=a[2],d=(0,u.R$)(a[3]),w=(0,s.r)((0,s.J)(a[4],10));if(isNaN(w))throw new i.D$(t,"InvalidParameter",e);const y=(0,s.r)((0,s.J)(a[5],0));if(isNaN(y))throw new i.D$(t,"InvalidParameter",e);return(0,m.rS)(await(0,l.C)("offset",[o.toJSON(),c,v(f),d,w,y]))})},n.functions.rotate=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);const o=a[0]instanceof d.A?A.A.fromExtent(a[0]):a[0],c=(0,s.r)(a[1]);if(isNaN(c))throw new i.D$(t,"InvalidParameter",e);const u=(0,s.J)(a[2],null);if(null===u){const n="point"===o.type?o:o.extent?.center;return(0,m.rS)(await(0,l.C)("rotate",[o.toJSON(),c,n?.x,n?.y]))}if(u instanceof h.A)return(0,m.rS)(await(0,l.C)("rotate",[o.toJSON(),c,u.x,u.y]));throw new i.D$(t,"InvalidParameter",e)})},n.functions.centroid=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,2,t,e),null===a[0])return null;const o=(0,u.Hz)(a[1]);let c=a[0];if(((0,p.cy)(a[0])||(0,s.j)(a[0]))&&(c="geometric"===o?(0,s.G)(a[0],t.spatialReference):(0,s.E)(a[0],t.spatialReference),null===c))return null;if(!(c instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,m.rS)("geometric"===o?await(0,l.C)("centroid",[c.toJSON()]):await(0,l.C)("labelPoint",[c.toJSON()]))})},n.functions.measuretocoordinate=function(t,e){return n.standardFunctionAsync(t,e,u.Cd)},n.functions.pointtocoordinate=function(t,e){return n.standardFunctionAsync(t,e,u.kr)},n.functions.distancetocoordinate=function(t,e){return n.standardFunctionAsync(t,e,u.Bn)},n.functions.multiparttosinglepart=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);if(a[0]instanceof h.A)return[(0,s.D)((0,o.Yq)(a[0]),t.spatialReference)];if(a[0]instanceof d.A)return[(0,s.D)((0,o.Yq)(a[0]),t.spatialReference)];const c=(0,m.rS)(await(0,l.C)("simplify",[a[0].toJSON()]));if(c instanceof A.A){const n=[],t=[];for(let e=0;e<c.rings.length;e++)if(c.isClockwise(c.rings[e])){const t=(0,m.rS)({rings:[c.rings[e]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(t)}else t.push({ring:c.rings[e],pt:c.getPoint(e,0)});for(let e=0;e<t.length;e++)for(let r=0;r<n.length;r++)if(n[r].contains(t[e].pt)){n[r].addRing(t[e].ring);break}return n}if(c instanceof S.A){const n=[];for(let t=0;t<c.paths.length;t++){const e=(0,m.rS)({paths:[c.paths[t]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(e)}return n}if(a[0]instanceof y.A){const n=[],e=(0,s.D)((0,o.Yq)(a[0]),t.spatialReference);for(let t=0;t<e.points.length;t++)n.push(e.getPoint(t));return n}return null})},n.functions.isselfintersecting=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,e)=>{(0,s.B)(e,1,1,n,t);let r=(e=(0,s.C)(e))[0];if(((0,p.cy)(e[0])||(0,s.j)(e[0]))&&(r=(0,s.F)(e[0],n.spatialReference)),r instanceof y.A){const n=r.points;for(let t=0;t<n.length;t++)for(let e=t+1;e<n.length;e++)if((0,f.aI)(n[t],n[e]))return!0;return!1}return(r instanceof S.A||r instanceof A.A)&&await(0,l.C)("isSelfIntersecting",[r.toJSON()])})},n.functions.issimple=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,t,e),null===a[0])return!0;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("isSimple",[a[0].toJSON()])})},n.functions.simplify=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,m.rS)(await(0,l.C)("simplify",[a[0].toJSON()]))})},n.functions.convexhull=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,m.rS)(await(0,l.C)("convexHull",[a[0].toJSON()]))})},n.functions.getuser=function(t,e){return n.standardFunctionAsync(t,e,async(n,o,u)=>{(0,s.B)(u,0,2,t,e);let l=(0,s.J)(u[1],""),f=!0===l;if(l=!0===l||!1===l?"":(0,s.s)(l),0===u.length||u[0]instanceof r.A){let n;n=t.services?.portal?t.services.portal:C.A.getDefault(),u.length>0&&(n=(0,c.R)(u[0],n));const e=await O(n,l,f);if(e){const n=JSON.parse(JSON.stringify(e));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return a.A.convertObjectToArcadeDictionary(n,(0,s.K)(t))}return null}let d=null;if((0,s.m)(u[0])&&(d=u[0]),d){if(f=!1,l)return null;await d.load();const n=await d.getOwningSystemUrl();if(!n){if(!l){const n=await d.getIdentityUser();return n?a.A.convertObjectToArcadeDictionary({username:n},(0,s.K)(t)):null}return null}let e;e=t.services?.portal?t.services.portal:C.A.getDefault(),e=(0,c.R)(new r.A(n),e);const i=await O(e,l,f);if(i){const n=JSON.parse(JSON.stringify(i));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return a.A.convertObjectToArcadeDictionary(n,(0,s.K)(t))}return null}throw new i.D$(t,"InvalidParameter",e)})},n.functions.nearestcoordinate=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,o)=>{if(o=(0,s.C)(o),(0,s.B)(o,2,2,t,e),!(o[0]instanceof w.A||null===o[0]))throw new i.D$(t,"InvalidParameter",e);if(!(o[1]instanceof h.A||null===o[1]))throw new i.D$(t,"InvalidParameter",e);if(null===o[0]||null===o[1])return null;const c=o[0]instanceof d.A?A.A.fromExtent(o[0]):o[0],u=await(0,l.C)("getNearestCoordinate",[c.toJSON(),o[1].toJSON(),{calculateLeftRightSide:!0}]);return null===u?null:a.A.convertObjectToArcadeDictionary({coordinate:(0,m.rS)(u.coordinate),distance:u.distance,sideOfLine:0===u.distance?"straddle":u.isRightSide?"right":"left"},(0,s.K)(t),!1,!0)})},n.functions.nearestvertex=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,o)=>{if(o=(0,s.C)(o),(0,s.B)(o,2,2,t,e),!(o[0]instanceof w.A||null===o[0]))throw new i.D$(t,"InvalidParameter",e);if(!(o[1]instanceof h.A||null===o[1]))throw new i.D$(t,"InvalidParameter",e);if(null===o[0]||null===o[1])return null;const c=o[0]instanceof d.A?A.A.fromExtent(o[0]):o[0],u=await(0,l.C)("getNearestVertex",[c.toJSON(),o[1].toJSON()]);return null==u?null:a.A.convertObjectToArcadeDictionary({coordinate:(0,m.rS)(u.coordinate),distance:u.distance,sideOfLine:u.sideOfLine},(0,s.K)(t),!1,!0)})})}}}]);