@arcgis/core 5.2.0-next.127 → 5.2.0-next.129

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 (405) hide show
  1. package/WebScene.js +1 -1
  2. package/applications/Components/imageryUtils.js +1 -1
  3. package/applications/SceneViewer/sceneViewerUtils.d.ts +14 -1
  4. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  5. package/applications/WebEditor/sketchUtils.js +1 -1
  6. package/arcade/batchExec.js +1 -1
  7. package/arcade/geometry/adapters/dehydrated.js +1 -1
  8. package/assets/esri/core/workers/RemoteClient.js +1 -1
  9. package/assets/esri/core/workers/chunks/06da350b4ea25732f52b.js +1 -0
  10. package/assets/esri/core/workers/chunks/{67dcf9b873cb037b2647.js → 081c9ccaa5884c730a91.js} +1 -1
  11. package/assets/esri/core/workers/chunks/094102031cc77b20db74.js +1 -0
  12. package/assets/esri/core/workers/chunks/0b85c844af97b2fb0ba8.js +1 -0
  13. package/assets/esri/core/workers/chunks/{86d7a3ae672a51b75fcc.js → 0d44f793d3b0d33153ac.js} +1 -1
  14. package/assets/esri/core/workers/chunks/0de140199161fcd15a0c.js +1 -0
  15. package/assets/esri/core/workers/chunks/0deceece4b465f653f58.js +1 -0
  16. package/assets/esri/core/workers/chunks/111dc5653daa7f3e1001.js +1 -0
  17. package/assets/esri/core/workers/chunks/139e3da8ea081e21539e.js +1 -0
  18. package/assets/esri/core/workers/chunks/142bedebd37d747f84ba.js +1 -0
  19. package/assets/esri/core/workers/chunks/15dc28b4fa5b5110472b.js +1 -0
  20. package/assets/esri/core/workers/chunks/{dd02cc18ebebb90778c6.js → 17e2bfc7468c23e43bef.js} +1 -1
  21. package/assets/esri/core/workers/chunks/196d33f4d8e3a256ad94.js +1 -0
  22. package/assets/esri/core/workers/chunks/1a02c68de65a67ab6a67.js +1 -0
  23. package/assets/esri/core/workers/chunks/{4165eb86471ea3bbf364.js → 1aecf7106a21320e054e.js} +1 -1
  24. package/assets/esri/core/workers/chunks/1bc03b8065cbbbb06c87.js +1 -0
  25. package/assets/esri/core/workers/chunks/1beb32170d659bc43977.js +1 -0
  26. package/assets/esri/core/workers/chunks/20ee32fee219afbcfee3.js +1 -0
  27. package/assets/esri/core/workers/chunks/{9467744cb7d094a5067a.js → 21d2f5324db0b199060c.js} +1 -1
  28. package/assets/esri/core/workers/chunks/22abb9a74f6594f9db2a.js +1 -0
  29. package/assets/esri/core/workers/chunks/237795866c075880531b.js +1 -0
  30. package/assets/esri/core/workers/chunks/25e4da9c6837ab0fa585.js +1 -0
  31. package/assets/esri/core/workers/chunks/2a5fde737dc99627142e.js +1 -0
  32. package/assets/esri/core/workers/chunks/3412050ae63ff7dcaf36.js +1 -0
  33. package/assets/esri/core/workers/chunks/35316724c8d3cc39cf80.js +1 -0
  34. package/assets/esri/core/workers/chunks/354cc6cd2a56937f1747.js +1 -0
  35. package/assets/esri/core/workers/chunks/365ae479765ca9e47de4.js +1 -0
  36. package/assets/esri/core/workers/chunks/{8190fcb1dd10ad20feed.js → 36ef86701883a20dd6f6.js} +1 -1
  37. package/assets/esri/core/workers/chunks/3759e272a1d43534a190.js +1 -0
  38. package/assets/esri/core/workers/chunks/397ddcf0b8e858a17b70.js +1 -0
  39. package/assets/esri/core/workers/chunks/3a7a558e30b5cb81c801.js +1 -0
  40. package/assets/esri/core/workers/chunks/3c9405d310a1b08c901e.js +1 -0
  41. package/assets/esri/core/workers/chunks/{e10fe4c77b8dc4492092.js → 3ce53562926b05e71af5.js} +1 -1
  42. package/assets/esri/core/workers/chunks/3d174a84b785fc633a5a.js +1 -0
  43. package/assets/esri/core/workers/chunks/3d67fed3e53993c38b58.js +1 -0
  44. package/assets/esri/core/workers/chunks/42bdeeff55fb1a3f735f.js +1 -0
  45. package/assets/esri/core/workers/chunks/48f1532520b76fa7f0c2.js +1 -0
  46. package/assets/esri/core/workers/chunks/{00d9e41deecf5828975c.js → 4adc3822ed9f498f5653.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{d5f0fed415b5b155d57c.js → 51741ef8225d470716fe.js} +1 -1
  48. package/assets/esri/core/workers/chunks/5191e481d0e19a7f3888.js +1 -0
  49. package/assets/esri/core/workers/chunks/{7fcee3a1b900ddc9a5e3.js → 540acf6abdee9dbd453e.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{d9b63cf111035b05cd2e.js → 5484b89adc53430226d5.js} +1 -1
  51. package/assets/esri/core/workers/chunks/55361b50ecfc98db2ffb.js +1 -0
  52. package/assets/esri/core/workers/chunks/58da7c41c1bcef2f4141.js +1 -0
  53. package/assets/esri/core/workers/chunks/5979bbefb09d132c008f.js +1 -0
  54. package/assets/esri/core/workers/chunks/{84db05e872dbf35c80a2.js → 5982c6a8459c1237b298.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{0a20f84b5f004a77a9f9.js → 5abfc4f447b01d6bf287.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{4c0dba437de0969a5b63.js → 5b9f88194433410bad5b.js} +1 -1
  57. package/assets/esri/core/workers/chunks/5f794f4e0113d5dd50ba.js +1 -0
  58. package/assets/esri/core/workers/chunks/62a30692e2a7612bafc1.js +1 -0
  59. package/assets/esri/core/workers/chunks/62aa7daad4ca7332854e.js +1 -0
  60. package/assets/esri/core/workers/chunks/66926c3686d5ef2d4692.js +29 -0
  61. package/assets/esri/core/workers/chunks/6994ba168465b77a36af.js +1 -0
  62. package/assets/esri/core/workers/chunks/6d0c6fda9100fe89f3cb.js +1 -0
  63. package/assets/esri/core/workers/chunks/72a898894438f177cd62.js +1 -0
  64. package/assets/esri/core/workers/chunks/78d4455237120103f639.js +1 -0
  65. package/assets/esri/core/workers/chunks/7fccf53aa751cd9dae57.js +1 -0
  66. package/assets/esri/core/workers/chunks/{26995de0c18bef8db590.js → 81327e10200065a0ccef.js} +1 -1
  67. package/assets/esri/core/workers/chunks/84a3fbe5d85a357f4e82.js +1 -0
  68. package/assets/esri/core/workers/chunks/862479729f2d036f606b.js +1 -0
  69. package/assets/esri/core/workers/chunks/89dad6c1bfd81e4d7f8e.js +1 -0
  70. package/assets/esri/core/workers/chunks/8a9aa6db11d0f643961c.js +1 -0
  71. package/assets/esri/core/workers/chunks/8dfea65341991e13ab71.js +1 -0
  72. package/assets/esri/core/workers/chunks/8e92925043dc49ed1018.js +1 -0
  73. package/assets/esri/core/workers/chunks/8f0b2b0ca239b01f44d0.js +1 -0
  74. package/assets/esri/core/workers/chunks/93a89168c18db88f60e7.js +1 -0
  75. package/assets/esri/core/workers/chunks/991c854a4459c82d4d93.js +1 -0
  76. package/assets/esri/core/workers/chunks/{f90cad9f007a11154c0d.js → 9b080d07699b56f06c5f.js} +1 -1
  77. package/assets/esri/core/workers/chunks/9cd69aa3880838a834f8.js +1 -0
  78. package/assets/esri/core/workers/chunks/{2ca49fb4590cc34a02bd.js → 9d87f38b16dda1ff7978.js} +1 -1
  79. package/assets/esri/core/workers/chunks/9fd1e5a2c0a261ed2a33.js +1 -0
  80. package/assets/esri/core/workers/chunks/a0a9c41400ae98df1912.js +1 -0
  81. package/assets/esri/core/workers/chunks/a189e520da39919cdcca.js +1 -0
  82. package/assets/esri/core/workers/chunks/a3a5cb664bdb1db190dd.js +1 -0
  83. package/assets/esri/core/workers/chunks/a63c456ecf018ec06778.js +1 -0
  84. package/assets/esri/core/workers/chunks/{842f993fa60b410cb613.js → a8322a978e33c7349fdf.js} +1 -1
  85. package/assets/esri/core/workers/chunks/{f479b4a4cee4bb2e046c.js → aa96eea0899757ab38c7.js} +1 -1
  86. package/assets/esri/core/workers/chunks/ab0b2a76247dfd56b92d.js +1 -0
  87. package/assets/esri/core/workers/chunks/ab7337b076d152a8eb9e.js +1 -0
  88. package/assets/esri/core/workers/chunks/ac0de274853a42d518a1.js +1 -0
  89. package/assets/esri/core/workers/chunks/ad372e399e20d5a3262d.js +1 -0
  90. package/assets/esri/core/workers/chunks/ae75b3e5320d03dff64c.js +1 -0
  91. package/assets/esri/core/workers/chunks/ae98530d5816306216b3.js +1 -0
  92. package/assets/esri/core/workers/chunks/afc94c4b9bc007fe310f.js +1 -0
  93. package/assets/esri/core/workers/chunks/afe54923339e957b71b9.js +1 -0
  94. package/assets/esri/core/workers/chunks/bbcac00362fef5e3956d.js +1 -0
  95. package/assets/esri/core/workers/chunks/{1302bf9718747cd9fdd9.js → bcee161dd1c4781d1998.js} +1 -1
  96. package/assets/esri/core/workers/chunks/{d1f54b0079fb71a15612.js → bd231bc0624eb889ac14.js} +1 -1
  97. package/assets/esri/core/workers/chunks/c0075715fbe7bec10fc3.js +1 -0
  98. package/assets/esri/core/workers/chunks/c4e1e864fb8c119b2520.js +1 -0
  99. package/assets/esri/core/workers/chunks/c93cedf9e53da5aaa35b.js +1 -0
  100. package/assets/esri/core/workers/chunks/{2d592c935571de80a2e2.js → c9690810b198a97bc16d.js} +1 -1
  101. package/assets/esri/core/workers/chunks/cada517cc25fa37f778c.js +1 -0
  102. package/assets/esri/core/workers/chunks/cd1821bf601949674e02.js +1 -0
  103. package/assets/esri/core/workers/chunks/{1b42d163ef22e3565bb7.js → cf7b7e54cd87422ca62a.js} +1 -1
  104. package/assets/esri/core/workers/chunks/d1187ad6cc4959683819.js +1 -0
  105. package/assets/esri/core/workers/chunks/d195c57fc6de3560653d.js +1 -0
  106. package/assets/esri/core/workers/chunks/d7f830a06ded11f2fc80.js +1 -0
  107. package/assets/esri/core/workers/chunks/d877783815afd21dbe98.js +1 -0
  108. package/assets/esri/core/workers/chunks/db5181fcea96cc2ede3e.js +1 -0
  109. package/assets/esri/core/workers/chunks/{6e8187a77846239ed112.js → de28a86775235bd5d3c4.js} +2 -2
  110. package/assets/esri/core/workers/chunks/df6992416cba9539f1ed.js +1 -0
  111. package/assets/esri/core/workers/chunks/e4005d95a396e1af9ac2.js +1 -0
  112. package/assets/esri/core/workers/chunks/{668ec0bdfb2095e90c9e.js → e495697860f7207da4c7.js} +1 -1
  113. package/assets/esri/core/workers/chunks/ec187933b42fe65594b7.js +1 -0
  114. package/assets/esri/core/workers/chunks/eec5a93dbc258a90b6de.js +1 -0
  115. package/assets/esri/core/workers/chunks/f163502c513205c892e7.js +1 -0
  116. package/assets/esri/core/workers/chunks/f287ec0fcb611f82ebb0.js +1 -0
  117. package/assets/esri/core/workers/chunks/{37ae52c71bf9c70fbb92.js → f2d45d15d0ba2537a4eb.js} +1 -1
  118. package/assets/esri/core/workers/chunks/{d507d7d7a7282fc38e8d.js → f652d1db26fbdea1a79b.js} +1 -1
  119. package/assets/esri/core/workers/chunks/f6b38ed75baae198c19b.js +1 -0
  120. package/assets/esri/core/workers/chunks/{168b45c5d8233f23793e.js → f6cfc901267a229de7a1.js} +2 -2
  121. package/assets/esri/core/workers/chunks/f6d04d14323b926f1025.js +1 -0
  122. package/assets/esri/core/workers/chunks/f7ab606be37373312ebe.js +1 -0
  123. package/assets/esri/core/workers/chunks/{3b7dff15a0058ea29886.js → f92178ac6dc9abff304f.js} +1 -1
  124. package/assets/esri/core/workers/chunks/fc39593febef74a036f1.js +1 -0
  125. package/assets/esri/libs/librust-parquet/pkg/parquet_bg.wasm +0 -0
  126. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-arabic.woff2 +0 -0
  127. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-cyrillic.woff2 +0 -0
  128. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-ext.woff2 +0 -0
  129. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-georgian.woff2 +0 -0
  130. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-greek.woff2 +0 -0
  131. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-hebrew.woff2 +0 -0
  132. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-math.woff2 +0 -0
  133. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-thai.woff2 +0 -0
  134. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-vietnamese.woff2 +0 -0
  135. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02.woff2 +0 -0
  136. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-arabic.woff2 +0 -0
  137. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-cyrillic.woff2 +0 -0
  138. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-ext.woff2 +0 -0
  139. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-georgian.woff2 +0 -0
  140. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-greek.woff2 +0 -0
  141. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-hebrew.woff2 +0 -0
  142. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-math.woff2 +0 -0
  143. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-thai.woff2 +0 -0
  144. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-vietnamese.woff2 +0 -0
  145. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7.woff2 +0 -0
  146. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-arabic.woff2 +0 -0
  147. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-cyrillic.woff2 +0 -0
  148. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-ext.woff2 +0 -0
  149. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-georgian.woff2 +0 -0
  150. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-greek.woff2 +0 -0
  151. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-hebrew.woff2 +0 -0
  152. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-math.woff2 +0 -0
  153. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-thai.woff2 +0 -0
  154. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-vietnamese.woff2 +0 -0
  155. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688.woff2 +0 -0
  156. package/assets/esri/themes/base/fonts/fonts/3ae1e25e-3aa6-4061-a016-a079159f9d65.woff2 +0 -0
  157. package/assets/esri/themes/base/fonts/fonts/41331c3c-3759-4462-8695-33c9a21b6a5b.woff2 +0 -0
  158. package/assets/esri/themes/base/fonts/fonts/94aa531e-7746-4df0-bb6e-349891f2eda5.woff2 +0 -0
  159. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-arabic.woff2 +0 -0
  160. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-cyrillic.woff2 +0 -0
  161. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-ext.woff2 +0 -0
  162. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-georgian.woff2 +0 -0
  163. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-greek.woff2 +0 -0
  164. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-hebrew.woff2 +0 -0
  165. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-math.woff2 +0 -0
  166. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-thai.woff2 +0 -0
  167. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-vietnamese.woff2 +0 -0
  168. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939.woff2 +0 -0
  169. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-cyrillic.woff2 +0 -0
  170. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-ext.woff2 +0 -0
  171. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-greek.woff2 +0 -0
  172. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-hebrew.woff2 +0 -0
  173. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-math.woff2 +0 -0
  174. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-vietnamese.woff2 +0 -0
  175. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d.woff2 +0 -0
  176. package/assets/esri/themes/base/fonts/fonts.scss +0 -0
  177. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +7 -0
  178. package/assets/esri/themes/base/widgets/_Tooltip.scss +5 -3
  179. package/assets/esri/themes/dark/main.css +1 -1
  180. package/assets/esri/themes/light/main.css +1 -1
  181. package/assets/esri/themes/light/view.css +1 -1
  182. package/assets/esri/views/interactive/tooltip/t9n/messages.ar.json +1 -1
  183. package/assets/esri/views/interactive/tooltip/t9n/messages.bg.json +1 -1
  184. package/assets/esri/views/interactive/tooltip/t9n/messages.bs.json +1 -1
  185. package/assets/esri/views/interactive/tooltip/t9n/messages.ca.json +1 -1
  186. package/assets/esri/views/interactive/tooltip/t9n/messages.cs.json +1 -1
  187. package/assets/esri/views/interactive/tooltip/t9n/messages.da.json +1 -1
  188. package/assets/esri/views/interactive/tooltip/t9n/messages.de.json +1 -1
  189. package/assets/esri/views/interactive/tooltip/t9n/messages.el.json +1 -1
  190. package/assets/esri/views/interactive/tooltip/t9n/messages.es.json +1 -1
  191. package/assets/esri/views/interactive/tooltip/t9n/messages.et.json +1 -1
  192. package/assets/esri/views/interactive/tooltip/t9n/messages.fi.json +1 -1
  193. package/assets/esri/views/interactive/tooltip/t9n/messages.fr.json +1 -1
  194. package/assets/esri/views/interactive/tooltip/t9n/messages.he.json +1 -1
  195. package/assets/esri/views/interactive/tooltip/t9n/messages.hr.json +1 -1
  196. package/assets/esri/views/interactive/tooltip/t9n/messages.hu.json +1 -1
  197. package/assets/esri/views/interactive/tooltip/t9n/messages.id.json +1 -1
  198. package/assets/esri/views/interactive/tooltip/t9n/messages.it.json +1 -1
  199. package/assets/esri/views/interactive/tooltip/t9n/messages.ja.json +1 -1
  200. package/assets/esri/views/interactive/tooltip/t9n/messages.ko.json +1 -1
  201. package/assets/esri/views/interactive/tooltip/t9n/messages.lt.json +1 -1
  202. package/assets/esri/views/interactive/tooltip/t9n/messages.lv.json +1 -1
  203. package/assets/esri/views/interactive/tooltip/t9n/messages.nl.json +1 -1
  204. package/assets/esri/views/interactive/tooltip/t9n/messages.no.json +1 -1
  205. package/assets/esri/views/interactive/tooltip/t9n/messages.pl.json +1 -1
  206. package/assets/esri/views/interactive/tooltip/t9n/messages.pt-BR.json +1 -1
  207. package/assets/esri/views/interactive/tooltip/t9n/messages.pt-PT.json +1 -1
  208. package/assets/esri/views/interactive/tooltip/t9n/messages.ro.json +1 -1
  209. package/assets/esri/views/interactive/tooltip/t9n/messages.ru.json +1 -1
  210. package/assets/esri/views/interactive/tooltip/t9n/messages.sk.json +1 -1
  211. package/assets/esri/views/interactive/tooltip/t9n/messages.sl.json +1 -1
  212. package/assets/esri/views/interactive/tooltip/t9n/messages.sr.json +1 -1
  213. package/assets/esri/views/interactive/tooltip/t9n/messages.sv.json +1 -1
  214. package/assets/esri/views/interactive/tooltip/t9n/messages.th.json +1 -1
  215. package/assets/esri/views/interactive/tooltip/t9n/messages.tr.json +1 -1
  216. package/assets/esri/views/interactive/tooltip/t9n/messages.uk.json +1 -1
  217. package/assets/esri/views/interactive/tooltip/t9n/messages.vi.json +1 -1
  218. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-CN.json +1 -1
  219. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-HK.json +1 -1
  220. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-TW.json +1 -1
  221. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
  222. package/chunks/batchExec.js +2 -0
  223. package/config.js +1 -1
  224. package/core/units.js +1 -1
  225. package/geometry/HeightModelInfo.js +1 -1
  226. package/geometry/ellipsoidUtils.js +1 -1
  227. package/geometry/support/heightModelInfoUtils.js +1 -1
  228. package/geometry/support/intersects.js +1 -1
  229. package/geometry/support/intersectsBase.js +1 -1
  230. package/interfaces.d.ts +1 -0
  231. package/kernel.js +1 -1
  232. package/layers/ElevationLayer.js +1 -1
  233. package/layers/GeospatialPDFLayer.js +1 -1
  234. package/layers/ImageryTileLayer.js +1 -1
  235. package/layers/OrientedImageryLayer.js +1 -1
  236. package/layers/graphics/dehydratedFeatures.js +1 -1
  237. package/layers/graphics/hydrateGeometryJSON.js +2 -0
  238. package/layers/graphics/hydratedFeatures.js +1 -1
  239. package/layers/graphics/hydratedSpatialReference.js +2 -0
  240. package/layers/graphics/transferFeatures.js +2 -0
  241. package/layers/mixins/FeatureLayerBase.js +1 -1
  242. package/layers/mixins/HeightModelInfoMixin.js +2 -0
  243. package/layers/mixins/SceneService.js +1 -1
  244. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  245. package/layers/raster/datasets/DBFParser.js +1 -1
  246. package/layers/raster/datasets/ImageAuxRaster.js +1 -1
  247. package/layers/raster/datasets/RasterFactory.js +1 -1
  248. package/layers/raster/datasets/TIFFRaster.js +1 -1
  249. package/layers/raster/formats/JpgPlus.js +1 -1
  250. package/layers/raster/formats/RasterCodec.js +1 -1
  251. package/layers/raster/formats/Raw.js +1 -1
  252. package/layers/support/arcadeUtils.js +1 -1
  253. package/package.json +3 -3
  254. package/popup/FeatureContent.js +1 -1
  255. package/popup/FeatureContentCollection.d.ts +2 -0
  256. package/popup/FeatureContentCollection.js +1 -1
  257. package/popup/support/featureUtils.js +1 -1
  258. package/rest/imageService.js +1 -1
  259. package/rest/query/operations/pbfDehydratedFeatureSet.js +1 -1
  260. package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
  261. package/support/arcadeUtils.js +1 -1
  262. package/support/loadArcade.js +1 -1
  263. package/support/revision.js +1 -1
  264. package/symbols/cim/cimAnalyzer.js +1 -1
  265. package/views/2d/engine/vectorTiles/GeometryUtils.js +1 -1
  266. package/views/2d/engine/vectorTiles/TileManager.js +1 -1
  267. package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
  268. package/views/2d/engine/vectorTiles/decluttering/SymbolRepository.js +1 -1
  269. package/views/2d/engine/vectorTiles/decluttering/util.js +1 -1
  270. package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
  271. package/views/2d/layerViewModuleImportUtils.js +1 -1
  272. package/views/2d/layers/GeospatialPDFLayerView2D.js +1 -1
  273. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  274. package/views/2d/layers/features/schema/processor/MatcherSchema.js +1 -1
  275. package/views/2d/layers/graphics/GraphicStore.js +1 -1
  276. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  277. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  278. package/views/2d/support/hitTestUtils.js +1 -1
  279. package/views/3d/camera/constraintUtils/surfaceCollision.js +1 -1
  280. package/views/3d/camera/intersectionUtils.js +1 -1
  281. package/views/3d/interactive/Manipulator3D.js +1 -1
  282. package/views/3d/layers/GeospatialPDFLayerView3D.js +1 -1
  283. package/views/3d/layers/I3SMeshView3D.js +1 -1
  284. package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
  285. package/views/3d/layers/support/featureReference.js +1 -1
  286. package/views/3d/navigation/modes/GroundNavigationMode3D.js +1 -1
  287. package/views/3d/state/Constraints.js +1 -1
  288. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  289. package/views/3d/support/PBFDecoder.js +1 -1
  290. package/views/3d/support/PBFDecoderWorker.js +1 -1
  291. package/views/3d/support/QualityProfile.js +1 -1
  292. package/views/3d/terrain/TerrainRenderer.js +1 -1
  293. package/views/3d/terrain/TileCompositor.js +1 -1
  294. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  295. package/views/DOMContainer.d.ts +18 -8
  296. package/views/SceneView.js +1 -1
  297. package/views/ToolViewManager.js +1 -1
  298. package/views/VideoView.d.ts +38 -0
  299. package/views/VideoView.js +1 -1
  300. package/views/View.d.ts +20 -2
  301. package/views/View.js +1 -1
  302. package/views/input/types.d.ts +19 -6
  303. package/views/interactive/dragEventPipeline.js +1 -1
  304. package/views/interactive/options/TooltipVisibleElements.d.ts +11 -1
  305. package/views/interactive/options/TooltipVisibleElements.js +1 -1
  306. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  307. package/views/layers/ImageryTileLayerView.js +1 -1
  308. package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
  309. package/widgets/BatchAttributeForm.js +1 -1
  310. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  311. package/widgets/OrientedImageryViewer/utils.js +1 -1
  312. package/widgets/Search/SearchViewModel.js +1 -1
  313. package/widgets/Search/support/layerSearchUtils.js +1 -1
  314. package/assets/esri/core/workers/chunks/025da54eef112d7e8f66.js +0 -1
  315. package/assets/esri/core/workers/chunks/02f94f9d704f03ddb5c6.js +0 -1
  316. package/assets/esri/core/workers/chunks/04d4cd66485b622403d0.js +0 -1
  317. package/assets/esri/core/workers/chunks/05afa8c2b5929ce0545a.js +0 -1
  318. package/assets/esri/core/workers/chunks/09676cfa99b90fe0cc63.js +0 -1
  319. package/assets/esri/core/workers/chunks/0a2b7c691a577cb3d189.js +0 -1
  320. package/assets/esri/core/workers/chunks/0aadee0437fa061e4ff5.js +0 -1
  321. package/assets/esri/core/workers/chunks/0ccd4200c5a2a5de6e16.js +0 -1
  322. package/assets/esri/core/workers/chunks/1262918b2161d79851c0.js +0 -1
  323. package/assets/esri/core/workers/chunks/1406a884241809b62bff.js +0 -1
  324. package/assets/esri/core/workers/chunks/1c33aa349beea9a3792f.js +0 -1
  325. package/assets/esri/core/workers/chunks/1f135269aea3931e11b2.js +0 -1
  326. package/assets/esri/core/workers/chunks/2146c25c01c9fc11b16c.js +0 -1
  327. package/assets/esri/core/workers/chunks/24014f3701c31ee74bc2.js +0 -1
  328. package/assets/esri/core/workers/chunks/25a2e02677a74834c8b5.js +0 -1
  329. package/assets/esri/core/workers/chunks/2afce71e8b6ae86e0792.js +0 -1
  330. package/assets/esri/core/workers/chunks/2c7bb5c9751524687002.js +0 -1
  331. package/assets/esri/core/workers/chunks/2c7fc24649d91552e68a.js +0 -1
  332. package/assets/esri/core/workers/chunks/2ebad7e588b26e74cefe.js +0 -1
  333. package/assets/esri/core/workers/chunks/319434415d2c0561bc59.js +0 -1
  334. package/assets/esri/core/workers/chunks/39d71e83261bff46f6bf.js +0 -1
  335. package/assets/esri/core/workers/chunks/3aceedec9abfb2fdfa18.js +0 -1
  336. package/assets/esri/core/workers/chunks/3c6ee445e49da0076ac1.js +0 -1
  337. package/assets/esri/core/workers/chunks/4327d2c39a660bd89da7.js +0 -1
  338. package/assets/esri/core/workers/chunks/462fd57af8ed7921d6ba.js +0 -1
  339. package/assets/esri/core/workers/chunks/4678a8170d8a3ccd1a7b.js +0 -1
  340. package/assets/esri/core/workers/chunks/474d9541d387b31ad275.js +0 -1
  341. package/assets/esri/core/workers/chunks/48a2f68e06a2e90b77d0.js +0 -1
  342. package/assets/esri/core/workers/chunks/4a73f73f1698fad2df20.js +0 -1
  343. package/assets/esri/core/workers/chunks/4f464047c6f6c9486efd.js +0 -1
  344. package/assets/esri/core/workers/chunks/50c29d10ec53f0e48e8a.js +0 -1
  345. package/assets/esri/core/workers/chunks/526cc64ae46dec3fbeda.js +0 -1
  346. package/assets/esri/core/workers/chunks/550d4df0732352fa48b5.js +0 -1
  347. package/assets/esri/core/workers/chunks/56e97b98dcb8a3f2bcb7.js +0 -1
  348. package/assets/esri/core/workers/chunks/581285e4d7bbe1b7c27a.js +0 -1
  349. package/assets/esri/core/workers/chunks/58fb92775d668cfd295c.js +0 -1
  350. package/assets/esri/core/workers/chunks/5adf2792416b22cd602f.js +0 -1
  351. package/assets/esri/core/workers/chunks/5aee7739afb5160d4ace.js +0 -1
  352. package/assets/esri/core/workers/chunks/6006bd8a5ed945fa2776.js +0 -1
  353. package/assets/esri/core/workers/chunks/64ee22134fda2f09c094.js +0 -1
  354. package/assets/esri/core/workers/chunks/66ef6c034455abd61f39.js +0 -1
  355. package/assets/esri/core/workers/chunks/67678054342178b601cf.js +0 -1
  356. package/assets/esri/core/workers/chunks/6c82cbcd504c711a7450.js +0 -1
  357. package/assets/esri/core/workers/chunks/6e75f09fb9452bd5f9fb.js +0 -1
  358. package/assets/esri/core/workers/chunks/7441d121f00ce747c08e.js +0 -1
  359. package/assets/esri/core/workers/chunks/75879ae88fd87b089a87.js +0 -1
  360. package/assets/esri/core/workers/chunks/76548469fe1b9c3b2051.js +0 -1
  361. package/assets/esri/core/workers/chunks/78085f804969c9282700.js +0 -1
  362. package/assets/esri/core/workers/chunks/7d6da4e89aa951e6523f.js +0 -1
  363. package/assets/esri/core/workers/chunks/80f16f5f15518013f7d0.js +0 -1
  364. package/assets/esri/core/workers/chunks/82ce034b5ba54de9b970.js +0 -29
  365. package/assets/esri/core/workers/chunks/8465e2c7221125fd3cc4.js +0 -1
  366. package/assets/esri/core/workers/chunks/87aaed3dfa903bdf853c.js +0 -1
  367. package/assets/esri/core/workers/chunks/892dc038d569cffd26dc.js +0 -1
  368. package/assets/esri/core/workers/chunks/8daed13400d9e63e65ae.js +0 -1
  369. package/assets/esri/core/workers/chunks/8f1c5f5e70d4b33d021d.js +0 -1
  370. package/assets/esri/core/workers/chunks/9020bd7a0e488d55ef14.js +0 -1
  371. package/assets/esri/core/workers/chunks/9d6a96e4c7ccedcb0c13.js +0 -1
  372. package/assets/esri/core/workers/chunks/9ec04faad97be55309b8.js +0 -1
  373. package/assets/esri/core/workers/chunks/a08385ebf1715414c1a6.js +0 -1
  374. package/assets/esri/core/workers/chunks/a3a33ffa34f4d645ddfe.js +0 -1
  375. package/assets/esri/core/workers/chunks/b396c4b4bb144200acc7.js +0 -1
  376. package/assets/esri/core/workers/chunks/b9c834e3c0701e9b14a2.js +0 -1
  377. package/assets/esri/core/workers/chunks/ba435cc73956d9c64a11.js +0 -1
  378. package/assets/esri/core/workers/chunks/bbfb80a6983574007ce5.js +0 -1
  379. package/assets/esri/core/workers/chunks/bcf2e5cf6b9c6d0442bb.js +0 -1
  380. package/assets/esri/core/workers/chunks/c35e9dee87937f483a3d.js +0 -1
  381. package/assets/esri/core/workers/chunks/c5b733c3a5b2680042a2.js +0 -1
  382. package/assets/esri/core/workers/chunks/c77496c350004ee66eb2.js +0 -1
  383. package/assets/esri/core/workers/chunks/cbeba973ef5593ffbba3.js +0 -1
  384. package/assets/esri/core/workers/chunks/ccaeabc3be07f3c96f50.js +0 -1
  385. package/assets/esri/core/workers/chunks/d25fb32a233d2128afbe.js +0 -1
  386. package/assets/esri/core/workers/chunks/d371d9279b30548efa02.js +0 -1
  387. package/assets/esri/core/workers/chunks/d5ef269ab0ee3744b05d.js +0 -1
  388. package/assets/esri/core/workers/chunks/dc92710a8fdfb9135e55.js +0 -1
  389. package/assets/esri/core/workers/chunks/dd4ecf81250cc001d040.js +0 -1
  390. package/assets/esri/core/workers/chunks/e0894a308c84d5c158b0.js +0 -1
  391. package/assets/esri/core/workers/chunks/e4016ae9cb8f16e3efc3.js +0 -1
  392. package/assets/esri/core/workers/chunks/e5ee64e2fb5bfcb716d8.js +0 -1
  393. package/assets/esri/core/workers/chunks/e6637f9176566382ed3e.js +0 -1
  394. package/assets/esri/core/workers/chunks/e6a4cef0af9be30ffe3d.js +0 -1
  395. package/assets/esri/core/workers/chunks/eaa7cb3ffa8c11706a09.js +0 -1
  396. package/assets/esri/core/workers/chunks/ed31ec586b754241474d.js +0 -1
  397. package/assets/esri/core/workers/chunks/ef6e52f9b656751eebaf.js +0 -1
  398. package/assets/esri/core/workers/chunks/f2fca9a3a40170996ea2.js +0 -1
  399. package/assets/esri/core/workers/chunks/f5d06cd6d30a5f742f73.js +0 -1
  400. package/assets/esri/core/workers/chunks/f71ec8a260405ed07958.js +0 -1
  401. package/assets/esri/core/workers/chunks/f91cab9904020cf25d50.js +0 -1
  402. package/assets/esri/core/workers/chunks/fb11ff3f2eae5f072560.js +0 -1
  403. package/assets/esri/core/workers/chunks/ff0e9f8d323eb1729650.js +0 -1
  404. /package/assets/esri/core/workers/chunks/{6e8187a77846239ed112.js.LICENSE.txt → de28a86775235bd5d3c4.js.LICENSE.txt} +0 -0
  405. /package/assets/esri/core/workers/chunks/{168b45c5d8233f23793e.js.LICENSE.txt → f6cfc901267a229de7a1.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4230],{32488(t,e,i){i.d(e,{A:()=>k});const r=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],s=["آ","أ","إ","ا"],n=["ﻵ","ﻷ","ﻹ","ﻻ"],o=["ﻶ","ﻸ","ﻺ","ﻼ"],a=["ا","ب","ت","ث","ج","ح","خ","د","ذ","ر","ز","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق","ك","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ی","ئ","ؤ"],l=["ﺍ","ﺏ","ﺕ","ﺙ","ﺝ","ﺡ","ﺥ","ﺩ","ﺫ","ﺭ","ﺯ","ﺱ","ﺵ","ﺹ","ﺽ","ﻁ","ﻅ","ﻉ","ﻍ","ﻑ","ﻕ","ﻙ","ﻝ","ﻡ","ﻥ","ﻩ","ﻭ","ﻱ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯼ","ﺉ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺉ","ﺅ"],h=["ﺎ","ﺐ","ﺖ","ﺚ","ﺞ","ﺢ","ﺦ","ﺪ","ﺬ","ﺮ","ﺰ","ﺲ","ﺶ","ﺺ","ﺾ","ﻂ","ﻆ","ﻊ","ﻎ","ﻒ","ﻖ","ﻚ","ﻞ","ﻢ","ﻦ","ﻪ","ﻮ","ﻲ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯽ","ﺊ","ﺆ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺊ","ﺆ"],c=["ﺎ","ﺒ","ﺘ","ﺜ","ﺠ","ﺤ","ﺨ","ﺪ","ﺬ","ﺮ","ﺰ","ﺴ","ﺸ","ﺼ","ﻀ","ﻄ","ﻈ","ﻌ","ﻐ","ﻔ","ﻘ","ﻜ","ﻠ","ﻤ","ﻨ","ﻬ","ﻮ","ﻴ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯿ","ﺌ","ﺆ","ﹱ","ﹲ","ﹴ","ﹷ","ﹹ","ﹻ","ﹽ","ﹿ","ﺀ","ﺌ","ﺆ"],u=["ﺍ","ﺑ","ﺗ","ﺛ","ﺟ","ﺣ","ﺧ","ﺩ","ﺫ","ﺭ","ﺯ","ﺳ","ﺷ","ﺻ","ﺿ","ﻃ","ﻇ","ﻋ","ﻏ","ﻓ","ﻗ","ﻛ","ﻟ","ﻣ","ﻧ","ﻫ","ﻭ","ﻳ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯾ","ﺋ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺋ","ﺅ"],f=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],m=["ً","ً","ٌ","؟","ٍ","؟","َ","َ","ُ","ُ","ِ","ِ","ّ","ّ","ْ","ْ","ء","آ","آ","أ","أ","ؤ","ؤ","إ","إ","ئ","ئ","ئ","ئ","ا","ا","ب","ب","ب","ب","ة","ة","ت","ت","ت","ت","ث","ث","ث","ث","ج","ج","ج","ج","ح","ح","ح","ح","خ","خ","خ","خ","د","د","ذ","ذ","ر","ر","ز","ز","س","س","س","س","ش","ش","ش","ش","ص","ص","ص","ص","ض","ض","ض","ض","ط","ط","ط","ط","ظ","ظ","ظ","ظ","ع","ع","ع","ع","غ","غ","غ","غ","ف","ف","ف","ف","ق","ق","ق","ق","ك","ك","ك","ك","ل","ل","ل","ل","م","م","م","م","ن","ن","ن","ن","ه","ه","ه","ه","و","و","ى","ى","ي","ي","ي","ي","ﻵ","ﻶ","ﻷ","ﻸ","ﻹ","ﻺ","ﻻ","ﻼ","؟","؟","؟"],d=["ء","ف"],y=["غ","ي"],p=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],g=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],_=10,x=11,S=12,M=18,b=["UBAT_L","UBAT_R","UBAT_EN","UBAT_AN","UBAT_ON","UBAT_B","UBAT_S","UBAT_AL","UBAT_WS","UBAT_CS","UBAT_ES","UBAT_ET","UBAT_NSM","UBAT_LRE","UBAT_RLE","UBAT_PDF","UBAT_LRO","UBAT_RLO","UBAT_BN"],C=[100,0,0,0,0,101,102,103,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,4,4,4,0,4,0,4,0,4,4,4,0,0,4,4,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,0,0,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,105,7,7,106,107],w=[[M,M,M,M,M,M,M,M,M,6,5,6,8,5,M,M,M,M,M,M,M,M,M,M,M,M,M,M,5,5,5,6,8,4,4,x,x,x,4,4,4,4,4,_,9,_,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,M,M,M,M,M,M,5,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,9,4,x,x,x,x,4,4,4,4,0,4,4,M,4,4,x,x,2,2,4,0,4,4,4,2,0,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,4,4,4,4,4,4,4,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,1,S,1,S,S,1,S,S,1,S,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4],[3,3,3,3,4,4,4,4,7,x,x,7,9,7,4,4,S,S,S,S,S,S,S,S,S,S,S,7,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,3,3,3,3,3,3,3,3,3,3,x,3,3,7,7,7,S,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,S,S,S,S,S,S,S,3,4,S,S,S,S,S,S,7,7,S,S,4,S,S,S,S,7,7,2,2,2,2,2,2,2,2,2,2,7,7,7,7,7,7],[7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,7,7,S,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,S,S,S,S,S,S,S,S,S,S,S,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,S,S,S,S,S,S,S,S,S,1,1,4,4,4,4,1,4,4,4,4,4],[8,8,8,8,8,8,8,8,8,8,8,M,M,M,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,x,x,x,x,x,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,M,M,M,M,M,4,4,4,4,4,M,M,M,M,M,M,2,0,4,4,2,2,2,2,2,2,_,_,4,4,4,0,2,2,2,2,2,2,2,2,2,2,_,_,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4],[0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,4,4,4,4,4,1,S,1,1,1,1,1,1,1,1,1,1,_,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,4,1,4,1,1,4,1,1,4,1,1,1,1,1,1,1,1,1,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7],[S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,S,S,S,S,S,S,S,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,9,4,4,9,4,4,4,4,4,4,4,4,4,x,4,4,_,_,4,4,4,4,4,x,x,4,4,4,4,4,7,7,7,7,7,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,M],[4,4,4,x,x,x,4,4,4,4,4,_,9,_,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,4,4,4,x,x,4,4,4,x,x,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4]];class k{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,i){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,e,i){q=[],Z=[];for(let r=0;r<i;r++)t[r]=r,e[r]=r,q[r]=r}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,i))return t;e=this.inputFormat,i=this.outputFormat;let r=t;const a=J,c=H(e.charAt(1)),f=H(i.charAt(1)),d=(e.startsWith("I")?"L":e.charAt(0))+c,y=(i.startsWith("I")?"L":i.charAt(0))+f,p=e.charAt(2)+i.charAt(2);a.defInFormat=d,a.defOutFormat=y,a.defSwap=p;const g=I(t,d,y,p,a);let _=!1;return"R"===i.charAt(1)?_=!0:"C"!==i.charAt(1)&&"D"!==i.charAt(1)||(_="rtl"===this.checkContextual(g)),this.sourceToTarget=q,this.targetToSource=function(t){const e=new Array(t.length);for(let i=0;i<t.length;i++)e[t[i]]=i;return e}(this.sourceToTarget),Y=this.targetToSource,r=e.charAt(3)===i.charAt(3)?g:"S"===i.charAt(3)?function(t,e){if(0===e.length)return"";void 0===t&&(t=!0);const i=(e=String(e)).split("");let r=0,s=1,a=i.length;t||(r=i.length-1,s=-1,a=1);const c=function(t,e,i,r){let s=0;const a=[];let c=0;for(let f=e;f*i<r;f+=i)if(A(t[f])||W(t[f])){if("ل"===t[f]&&F(t,f+i,i,r)){t[f]=V(t[f+i],0===s?n:o),f+=i,$(t,f,i,r),a[c]=f,c++,s=0;continue}const e=t[f];1===s?t[f]=E(t,f+i,i,r)?N(t[f]):O(t[f],h):!0===E(t,f+i,i,r)?t[f]=O(t[f],u):t[f]=O(t[f],l),W(e)||(s=1),!0===G(e)&&(s=0)}else s=0;return a}(i,r,s,a);let f="";for(let e=0;e<i.length;e++)v(c,c.length,e)>-1?(X(Y,e,!t,-1),q.splice(e,1)):f+=i[e];return f}(_,g):function(t,e){if(0===t.length)return"";void 0===e&&(e=!0);let i="";const r=(t=String(t)).split("");for(let n=0;n<t.length;n++){let o=!1;if(r[n]>="ﹰ"&&r[n]<"\ufeff"){const a=t.charCodeAt(n);r[n]>="ﻵ"&&r[n]<="ﻼ"?(e?(n>0&&" "===r[n-1]?i=i.slice(0,-1)+"ل":(i+="ل",o=!0),i+=s[(a-65269)/2]):(i+=s[(a-65269)/2],i+="ل",n+1<t.length&&" "===r[n+1]?n++:o=!0),o&&(X(Y,n,!0,1),q.splice(n,0,q[n]))):i+=m[a-65136]}else i+=r[n]}return i}(g,_),this.sourceToTarget=q,this.targetToSource=Y,this.levels=Z,r}_inputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=t}checkParameters(t,e){return t?this._inputFormatSetter(t):t=this.inputFormat,e?this._outputFormatSetter(e):e=this.outputFormat,t!==e}checkContextual(t){let e=P(t);if("ltr"!==e&&"rtl"!==e){try{e=document.dir.toLowerCase()}catch(t){}"ltr"!==e&&"rtl"!==e&&(e="ltr")}return e}hasBidiChar(t){return it.test(t)}}function I(t,e,i,r,s){const n=function(t,e,i){if(void 0===e.inFormat&&(e.inFormat=i.defInFormat),void 0===e.outFormat&&(e.outFormat=i.defOutFormat),void 0===e.swap&&(e.swap=i.defSwap),e.inFormat===e.outFormat)return e;const r=e.inFormat.slice(0,1),s=e.outFormat.slice(0,1);let n,o=e.inFormat.slice(1,4),a=e.outFormat.slice(1,4);return o.startsWith("C")&&(n=P(t),o="ltr"===n||"rtl"===n?n.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=r+o),a.startsWith("C")&&(n=P(t),"rtl"===n?a="RTL":"ltr"===n?(n=function(t){const e=t.split("");return e.reverse(),P(e.join(""))}(t),a=n.toUpperCase()):a="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=s+a),e}(t,{inFormat:e,outFormat:i,swap:r},s);if(n.inFormat===n.outFormat)return t;e=n.inFormat,i=n.outFormat,r=n.swap;const o=e.slice(0,1),a=e.slice(1,4),l=i.slice(0,1),h=i.slice(1,4);if(s.inFormat=e,s.outFormat=i,s.swap=r,"L"===o&&"VLTR"===i){if("LTR"===a)return s.dir=Q,T(t,s);if("RTL"===a)return s.dir=tt,T(t,s)}if("V"===o&&"V"===l)return s.dir="RTL"===a?tt:Q,z(t,s);if("L"===o&&"VRTL"===i)return"LTR"===a?(s.dir=Q,t=T(t,s)):(s.dir=tt,t=T(t,s)),z(t);if("VLTR"===e&&"LLTR"===i)return s.dir=Q,T(t,s);if("V"===o&&"L"===l&&a!==h)return t=z(t),"RTL"===a?I(t,"LLTR","VLTR",r,s):I(t,"LRTL","VRTL",r,s);if("VRTL"===e&&"LRTL"===i)return I(t,"LRTL","VRTL",r,s);if("L"===o&&"L"===l){const e=s.swap;return s.swap=e.slice(0,1)+"N","RTL"===a?(s.dir=tt,t=T(t,s),s.swap="N"+e.slice(1,3),s.dir=Q,t=T(t,s)):(s.dir=Q,t=T(t,s),s.swap="N"+e.slice(1,3),t=I(t,"VLTR","LRTL",s.swap,s)),t}return t}function P(t){const e=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(t);return e?e[0]<="z"?"ltr":"rtl":""}function T(t,e){const i=t.split(""),r=[];return L(i,r,e),function(t,e,i){if(0!==i.hiLevel&&i.swap[0]!==i.swap[1])for(let i=0;i<t.length;i++)1===e[i]&&(t[i]=U(t[i]))}(i,r,e),D(2,i,r,e),D(1,i,r,e),Z=r,i.join("")}function L(t,e,i){const r=t.length,s=i.dir?g:p;let n=0,o=-1;const a=[],l=[];i.hiLevel=i.dir,i.lastArabic=!1,i.hasUbatAl=!1,i.hasUbatB=!1,i.hasUbatS=!1;for(let e=0;e<r;e++)a[e]=R(t[e]);for(let h=0;h<r;h++){const r=n,c=B(t,a,l,h,i);l[h]=c,n=s[r][c];const u=240&n;n&=15;const f=s[n][j];if(e[h]=f,u>0)if(16===u){for(let t=o;t<h;t++)e[t]=1;o=-1}else o=-1;if(s[n][K])-1===o&&(o=h);else if(o>-1){for(let t=o;t<h;t++)e[t]=f;o=-1}5===a[h]&&(e[h]=0),i.hiLevel|=f}i.hasUbatS&&function(t,e,i,r){for(let s=0;s<i;s++)if(6===t[s]){e[s]=r.dir;for(let i=s-1;i>=0&&8===t[i];i--)e[i]=r.dir}}(a,e,r,i)}function R(t){const e=t.charCodeAt(0),i=C[e>>8];return i<100?i:w[i-100][255&e]}function z(t,e){const i=t.split("");if(e){const t=[];L(i,t,e),Z=t}return i.reverse(),q.reverse(),i.join("")}function v(t,e,i){for(let r=0;r<e;r++)if(t[r]===i)return r;return-1}function A(t){for(let e=0;e<d.length;e++)if(t>=d[e]&&t<=y[e])return!0;return!1}function E(t,e,i,r){for(;e*i<r&&W(t[e]);)e+=i;return!!(e*i<r&&A(t[e]))}function F(t,e,i,r){for(;e*i<r&&W(t[e]);)e+=i;let n=" ";if(!(e*i<r))return!1;n=t[e];for(let t=0;t<s.length;t++)if(s[t]===n)return!0;return!1}function D(t,e,i,r){if(r.hiLevel<t)return;if(1===t&&r.dir===tt&&!r.hasUbatB)return e.reverse(),void q.reverse();const s=e.length;let n,o,a,l,h,c=0;for(;c<s;){if(i[c]>=t){for(n=c+1;n<s&&i[n]>=t;)n++;for(o=c,a=n-1;o<a;o++,a--)l=e[o],e[o]=e[a],e[a]=l,h=q[o],q[o]=q[a],q[a]=h;c=n}c++}}function B(t,e,i,r,s){const n=e[r];return{UBAT_L:()=>(s.lastArabic=!1,0),UBAT_R:()=>(s.lastArabic=!1,1),UBAT_ON:()=>4,UBAT_AN:()=>3,UBAT_EN:()=>s.lastArabic?3:2,UBAT_AL:()=>(s.lastArabic=!0,s.hasUbatAl=!0,1),UBAT_WS:()=>4,UBAT_CS:()=>{let t,n;return r<1||r+1>=e.length||2!==(t=i[r-1])&&3!==t||2!==(n=e[r+1])&&3!==n?4:(s.lastArabic&&(n=3),n===t?n:4)},UBAT_ES:()=>2===(r>0?i[r-1]:5)&&r+1<e.length&&2===e[r+1]?2:4,UBAT_ET:()=>{if(r>0&&2===i[r-1])return 2;if(s.lastArabic)return 4;let t=r+1;const n=e.length;for(;t<n&&11===e[t];)t++;return t<n&&2===e[t]?2:4},UBAT_NSM:()=>{if("VLTR"===s.inFormat){const i=e.length;let s=r+1;for(;s<i&&12===e[s];)s++;if(s<i){const i=t[r].charCodeAt(0),n=i>=1425&&i<=2303||64286===i,o=e[s];if(n&&(1===o||7===o))return 1}}return r<1||5===e[r-1]?4:i[r-1]},UBAT_B:()=>(s.lastArabic=!0,s.hasUbatB=!0,s.dir),UBAT_S:()=>(s.hasUbatS=!0,4),UBAT_LRE:()=>(s.lastArabic=!1,4),UBAT_RLE:()=>(s.lastArabic=!1,4),UBAT_LRO:()=>(s.lastArabic=!1,4),UBAT_RLO:()=>(s.lastArabic=!1,4),UBAT_PDF:()=>(s.lastArabic=!1,4),UBAT_BN:()=>4}[b[n]]()}function U(t){let e,i=0,s=r.length-1;for(;i<=s;)if(e=Math.floor((i+s)/2),t<r[e][0])s=e-1;else{if(!(t>r[e][0]))return r[e][1];i=e+1}return t}function G(t){for(let e=0;e<f.length;e++)if(f[e]===t)return!0;return!1}function N(t){for(let e=0;e<a.length;e++)if(t===a[e])return c[e];return t}function O(t,e){for(let i=0;i<a.length;i++)if(t===a[i])return e[i];return t}function W(t){return t>="ً"&&t<="ٕ"}function H(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function $(t,e,i,r){for(;e*i<r&&W(t[e]);)e+=i;return e*i<r&&(t[e]=" ",!0)}function V(t,e){for(let i=0;i<s.length;i++)if(t===s[i])return e[i];return t}function X(t,e,i,r){for(let s=0;s<t.length;s++)(t[s]>e||!i&&t[s]===e)&&(t[s]+=r)}let q=[],Y=[],Z=[];const J={dir:0,defInFormat:"LLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,defOutFormat:""},j=5,K=6,Q=0,tt=1,et=/^[(I|V)][(L|RCD)][(Y|N)][(S|N)]N$/,it=/[\u0591-\u06ff\ufb1d-\ufefc]/},6371(t,e,i){i.d(e,{y:()=>s});const r=new(i(32488).A);function s(t,e=!0){if(!r.hasBidiChar(t))return[t,!1,{...r}];let i;i="rtl"===r.checkContextual(t)?"IDNNN":"ICNNN";const s=e?"VLYSN":"VLYNN";return[r.bidiTransform(t,i,s),!0,{...r}]}},18370(t,e,i){i.d(e,{z:()=>s});class r{constructor(t){this._import=t,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async t=>(this.module=t,t))),this._promise}}function s(t){return new r(t)}},56512(t,e,i){function r(t){let e,i,r=[],s=!1;return function(...n){return s&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(t[i]!==e[i])return!1;return!0}(n,r)||(i=t.apply(this,n),e=this,r=n,s=!0),i}}i.d(e,{B:()=>r})},69397(t,e,i){i.d(e,{Qf:()=>a,Qh:()=>n,lM:()=>s});var r=i(34275);function s(t){if(!t)return 0;let e=h;for(const i in t)t.hasOwnProperty(i)&&(e+=o(t[i],!1));return e}function n(t){if(!t)return 0;if("number"==typeof t[0])return a(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let i=c;for(let r=0;r<e;r++)i+=o(t[r]);return i}(t);let e=h;for(const i in t)t.hasOwnProperty(i)&&(e+=o(t[i]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?n(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+u:Array.isArray(e)?l(e,16):0:0),0)}function l(t,e){return c+t.length*e}const h=32,c=16,u=145},6774(t,e,i){i.d(e,{O3:()=>n,Ox:()=>o,bR:()=>r});class r{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new r(t[0],t[1])}clone(){return new r(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){const t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){const i=this.x,r=this.y;return this.x=i*t-r*e,this.y=i*e+r*t,this}rotateReverse(t,e){const i=this.x,r=this.y;return this.x=i*t+r*e,this.y=-i*e+r*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){const i=e.x-t.x,r=e.y-t.y;return Math.sqrt(i*i+r*r)}static add(t,e){return new r(t.x+e.x,t.y+e.y)}static sub(t,e){return new r(t.x-e.x,t.y-e.y)}}class s{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class n{constructor(t,e,i,r=8,s=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=r,this._pixelMargin=s,this._tileSize=512*r,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;const i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new r(t,e),this._firstPt=new r(t,e),this._dist=0}lineTo(t,e){const i=this._isIn(t,e),n=new r(t,e),o=r.distance(this._prevPt,n);let a,l,h,c,u,f,m,d;if(i)this._prevIsIn?this._lineTo(t,e,!0):(a=this._prevPt,l=n,h=this._intersect(l,a),this._start=this._dist+o*(1-this._r),this._lineTo(h.x,h.y,!0),this._lineTo(l.x,l.y,!0));else if(this._prevIsIn)l=this._prevPt,a=n,h=this._intersect(l,a),this._lineTo(h.x,h.y,!0),this._lineTo(a.x,a.y,!1);else{const t=this._prevPt,e=n;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{const i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(c=(this._xmin-t.x)/(e.x-t.x),d=t.y+c*(e.y-t.y),d<=this._ymin?f=!1:d>=this._ymax?f=!0:i.push(new s(c,this._xmin,d))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(c=(this._xmax-t.x)/(e.x-t.x),d=t.y+c*(e.y-t.y),d<=this._ymin?f=!1:d>=this._ymax?f=!0:i.push(new s(c,this._xmax,d))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(c=(this._ymin-t.y)/(e.y-t.y),m=t.x+c*(e.x-t.x),m<=this._xmin?u=!1:m>=this._xmax?u=!0:i.push(new s(c,m,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(c=(this._ymax-t.y)/(e.y-t.y),m=t.x+c*(e.x-t.x),m<=this._xmin?u=!1:m>=this._xmax?u=!0:i.push(new s(c,m,this._ymax))),0===i.length)u?f?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):f?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+o*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+o*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=o,this._prevIsIn=i,this._prevPt=n}close(){if(this._line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const i=this._line;let r=i.length;for(;r>=4&&(i[0].x===i[1].x&&i[0].x===i[r-2].x||i[0].y===i[1].y&&i[0].y===i[r-2].y);)i.pop(),i[0].x=i[r-2].x,i[0].y=i[r-2].y,--r}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&a.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,e=t.length;if(0===e)return null;const i=[];for(let r=0;r<e;r++)i.push({line:t[r],start:this._starts[r]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,s,n;if(e.x>=this._xmin&&e.x<=this._xmax)s=e.y<=this._ymin?this._ymin:this._ymax,n=(s-t.y)/(e.y-t.y),i=t.x+n*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,n=(i-t.x)/(e.x-t.x),s=t.y+n*(e.y-t.y);else{s=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;const r=(i-t.x)/(e.x-t.x),o=(s-t.y)/(e.y-t.y);r<o?(n=r,s=t.y+r*(e.y-t.y)):(n=o,i=t.x+o*(e.x-t.x))}return this._r=n,new r(i,s)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3!==this._type?i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new r(t,e))):(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new r(t,e)),this._isH=!1,this._isV=!1)}_lineTo(t,e,i){let s,n;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(s=this._line[this._line.length-1],s.equals(t,e)))return;this._line.push(new r(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){s=this._line[this._line.length-1];const i=s.x===t,o=s.y===e;if(i&&o)return;this._isH&&i||this._isV&&o?(s.x=t,s.y=e,n=this._line[this._line.length-2],n.x===t&&n.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(n=this._line[this._line.length-2],this._isH=n.x===t,this._isV=n.y===e)):(this._isH=n.x===t,this._isV=n.y===e)):(this._line.push(new r(t,e)),this._isH=i,this._isV=o)}else this._line.push(new r(t,e))}}class o{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];const i=this._ratio;this._line.push(new r(t*i,e*i))}lineTo(t,e){const i=this._ratio;this._line.push(new r(t*i,e*i))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class a{static simplify(t,e,i){if(!i)return;const r=-e,s=t+e,n=-e,o=t+e,l=[],h=[],c=i.length;for(let t=0;t<c;++t){const e=i[t];if(!e||e.length<2)continue;let a,c=e[0];const u=e.length;for(let i=1;i<u;++i)a=e[i],c.x===a.x&&(c.x<=r&&(c.y>a.y?(l.push(t),l.push(i),l.push(0),l.push(-1)):(h.push(t),h.push(i),h.push(0),h.push(-1))),c.x>=s&&(c.y<a.y?(l.push(t),l.push(i),l.push(1),l.push(-1)):(h.push(t),h.push(i),h.push(1),h.push(-1)))),c.y===a.y&&(c.y<=n&&(c.x<a.x?(l.push(t),l.push(i),l.push(2),l.push(-1)):(h.push(t),h.push(i),h.push(2),h.push(-1))),c.y>=o&&(c.x>a.x?(l.push(t),l.push(i),l.push(3),l.push(-1)):(h.push(t),h.push(i),h.push(3),h.push(-1)))),c=a}if(0===l.length||0===h.length)return;a.fillParent(i,h,l),a.fillParent(i,l,h);const u=[];a.calcDeltas(u,h,l),a.calcDeltas(u,l,h),a.addDeltas(u,i)}static fillParent(t,e,i){const r=i.length,s=e.length;for(let n=0;n<s;n+=4){const s=e[n],o=e[n+1],a=e[n+2],h=t[s][o-1],c=t[s][o];let u=8092,f=-1;for(let e=0;e<r;e+=4){if(i[e+2]!==a)continue;const r=i[e],s=i[e+1],n=t[r][s-1],o=t[r][s];switch(a){case 0:case 1:if(l(h.y,n.y,o.y)&&l(c.y,n.y,o.y)){const t=Math.abs(o.y-n.y);t<u&&(u=t,f=e)}break;case 2:case 3:if(l(h.x,n.x,o.x)&&l(c.x,n.x,o.x)){const t=Math.abs(o.x-n.x);t<u&&(u=t,f=e)}}}e[n+3]=f}}static calcDeltas(t,e,i){const r=e.length;for(let s=0;s<r;s+=4){const r=[],n=a.calcDelta(s,e,i,r);t.push(e[s]),t.push(e[s+1]),t.push(e[s+2]),t.push(n)}}static calcDelta(t,e,i,r){const s=e[t+3];if(-1===s)return 0;const n=r.length;return n>1&&r[n-2]===s?0:(r.push(s),a.calcDelta(s,i,e,r)+1)}static addDeltas(t,e){const i=t.length;let r=0;for(let e=0;e<i;e+=4){const i=t[e+3];i>r&&(r=i)}for(let s=0;s<i;s+=4){const i=e[t[s]],n=t[s+1],o=r-t[s+3];switch(t[s+2]){case 0:i[n-1].x-=o,i[n].x-=o,1===n&&(i[i.length-1].x-=o),n===i.length-1&&(i[0].x-=o);break;case 1:i[n-1].x+=o,i[n].x+=o,1===n&&(i[i.length-1].x+=o),n===i.length-1&&(i[0].x+=o);break;case 2:i[n-1].y-=o,i[n].y-=o,1===n&&(i[i.length-1].y-=o),n===i.length-1&&(i[0].y-=o);break;case 3:i[n-1].y+=o,i[n].y+=o,1===n&&(i[i.length-1].y+=o),n===i.length-1&&(i[0].y+=o)}}}}const l=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},31411(t,e,i){i.d(e,{GS:()=>w,gh:()=>I});var r=i(49186),s=i(56512),n=i(65864),o=i(4305),a=i(50954),l=i(52006),h=i(49663),c=i(46068),u=i(15507);const f=1e-6,m=[0,0];function d(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class y{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:i,maxSegmentsPerCurve:r,minSegmentsPerCurve:s}){const n=i*i,o=e*e,a=1/r,l=this.interpolate(0),h=this.interpolate(1);(0,u.kb)(this.curveStart,l)>f&&t.push(l),this.initialize(l,h);const c=1/s;for(let t=s-1;t>0;t--){const e=t*c;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===n||!isFinite(n)||(0,u.kb)(this.arcStart,this.arcEnd)<n)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,u.kb)(this.curveEnd,h)>f&&t.push([...this.curveEnd]),t}}class p extends y{constructor(t,e){const[i,r,s]=e.b;super(t,i),this._controlPointsStack=[],this._curveControlPoints=[r,s],this._arcControlPoints=[r,s],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:i,tStart:r,tEnd:s}=this,[n,o]=this._arcControlPoints,a=(t-r)/(s-r),l=(0,u.RS)([],e,n,a),h=(0,u.RS)(m,n,o,a),c=(0,u.RS)([],o,i,a),f=(0,u.RS)([],l,h,a),d=(0,u.RS)([],h,c,a),y=(0,u.RS)([],f,d,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([d,c]),this.tEndStack.push(t),this.arcEndStack.push(y),this._arcControlPoints[0]=l,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:i}=this,[r,s]=this._curveControlPoints;return(0,o.B4)(e,r,s,i,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[i,r]=this._arcControlPoints;return Math.max((0,u.yE)(i,t,e),(0,u.yE)(r,t,e))}}class g extends y{constructor(t,e){const[i]=e.a;super(t,i),this._derivedEllipse=(0,c.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,c.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,u.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function _(t,e,i,{cx:r,cy:s,radius:n,thetaStart:o,thetaEnd:a,isInvalid:l},{maxDeviation:h,maxSegmentLength:c,maxSegmentsPerCurve:m,minSegmentsPerCurve:d}){if(l)return t.push([...i]),t;const y=2*n,p=[r+n*Math.cos(o),s+n*Math.sin(o)],g=[r+n*Math.cos(a),s+n*Math.sin(a)];(0,u.kb)(e,p)>f&&t.push(p);const _=Math.abs(a-o),x=c>0&&c<y?2*Math.asin(c/y):_,S=h>0&&h<=n?2*Math.acos(1-h/n):_,M=Math.min(x,S),b=Math.min(m,Math.max(d,Math.ceil(Math.abs(_/M)))),C=1/b;for(let e=1;e<b;e++){const i=e*C,l=o*(1-i)+a*i;t.push([r+n*Math.cos(l),s+n*Math.sin(l)])}return t.push(g),(0,u.kb)(i,g)>f&&t.push([...i]),t}function x(t,e,i,r){return new p(e,i).densify(t,r)}function S(t,e,i,r){const s=(0,a.pM)(e,i),[n]=i.c;return _(t,e,n,s,r)}function M(t,e,i,r){const s=(0,h.io)(e,i),[n]=i.a;return _(t,e,n,s,r)}function b(t,e,i,r){const[s,n,o,a,l,h,c]=i.a;return 0===h||0===c?(t.push([...s]),t):new g(e,i).densify(t,r)}function C(t,e,i,r){return(0,l.Xq)(i)?(t.push([...i]),t):(0,l.n1)(i)?x(t,e,i,r):(0,l.aO)(i)?S(t,e,i,r):(0,l.DA)(i)?M(t,e,i,r):b(t,e,i,r)}function w(t,e={}){if(!(0,l.Ed)(t))return t;const i=d(e),r=(0,l.FD)(t),s=[];for(const t of r){const e=[];for(let r=0;r<t.length-1;r++){const s=r+1,n=[...(0,l.yP)(t[r])];0===r&&e.push(n),C(e,n,t[s],i)}s.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:s,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:s,spatialReference:t.spatialReference}}const k=(0,s.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function I(t,e,s){const o=new Set(e);return await async function(t,e,s){let n=null;for(const o of t)if(o&&(0,l.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,l.V8)(o,e)){const t=o.spatialReference;if(!t)throw new r.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=P(t);if(s.has(e))o.spatialReference=s.get(e);else{n||(n=await Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1550)]).then(()=>i(78125)));const a=n.fromSpatialReference(t),l=a?.getTolerance();if(null==l)throw new r.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const h=o.spatialReference.clone();h.read({xyTolerance:l}),o.spatialReference=h,s.set(e,h)}}}(t,o,s),t.map(t=>{if(!t||!(0,l.Ed)(t))return t;const i=t.spatialReference.xyTolerance;if(null==i)return t;const r=k(i);return(0,n.rS)(function(t,e,i){if(!(0,l.Ed)(t))return t;const r=new Set(e),s=d(i),n=(0,l.FD)(t),o=[];let a=!1;for(const t of n){const e=[];for(let i=0;i<t.length-1;i++){const n=i+1,o=[...(0,l.yP)(t[i])];0===i&&e.push(o);const h=t[n];(0,l.Xq)(h)?e.push([...h]):(0,l.n1)(h)&&!r.has("cubic-bezier")?x(e,o,h,s):(0,l.aO)(h)&&!r.has("circular-arc")?S(e,o,h,s):(0,l.DA)(h)&&!r.has("elliptic-arc")?M(e,o,h,s):(0,l.wY)(h)&&!r.has("elliptic-arc")?b(e,o,h,s):(e.push((0,l.tk)(h)),a=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:o}:{rings:o}}}(t,e,r))})}function P(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},92722(t,e,i){i.d(e,{A:()=>s});var r=i(69397);class s{constructor(t=[],e=[],i=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=i,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:i,hasM:r}){return new s(t,e,i||!1,r||!1)}static fromRect([t,e,i,r]){const n=i-t,o=r-e;return new s([5],[t,e,n,0,0,o,-n,0,0,-o])}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,r.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 i of this.lengths){if(i<3)continue;const{stride:r}=this;let s=this.coords[r*e],n=this.coords[r*e+1];for(let o=1;o<i;o+=1){const i=r*(e+o),a=this.coords[i],l=this.coords[i+1];t+=-.5*(a-s)*(l+n),s=a,n=l}e+=i}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:i}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=i*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:i}=t;let r=0;const{stride:s}=this;for(const t of i){for(let i=1;i<t;i++){const t=s*(r+i);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=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:i,size:r}=this,n=this.coords.slice(0,r*i);return t?(t.set(n),new s(e,t,this.hasZ,this.hasM)):new s(e,Array.from(n),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const i=new Array(e*t);for(let e=0,r=0;e<i.length;e+=t)i[r++]=this.coords[e],i[r++]=this.coords[e+1];return new s(this.lengths,i,!1,!1)}}},49544(t,e,i){i.r(e),i.d(e,{CIMSymbolHelper:()=>mt,CIMSymbolInflatedSizeHelper:()=>ft,capTypeToEnum:()=>yt,forEachSymbolLayer:()=>dt,slsDashToTemplateArray:()=>Ct,symbolToCIM:()=>ht});var r=i(6371),s=i(4718),n=i(53966),o=i(87811),a=i(90629),l=i(19419),h=i(537),c=i(52006),u=i(31411),f=i(11831),m=i(35833),d=i(98939),y=i(57582),p=(i(44208),i(34727)),g=i(93687),_=i(36745),x=i(12359),S=(i(12176),i(60408));class M{applyColorSubstitution(t,e){if(!e)return t;this._rasterizationCanvas||(this._rasterizationCanvas=document.createElement("canvas"));const{width:i,height:r}=t,s=this._rasterizationCanvas,n=s.getContext("2d",{willReadFrequently:!0});t!==s&&(s.width=i,s.height=r,n.drawImage(t,0,0,i,r));const o=n.getImageData(0,0,i,r).data;if(e)for(const t of e)if(t&&t.oldColor&&4===t.oldColor.length&&t.newColor&&4===t.newColor.length){const[e,i,r,s]=t.oldColor,[n,a,l,h]=t.newColor;if(e===n&&i===a&&r===l&&s===h)continue;for(let t=0;t<o.length;t+=4)e===o[t]&&i===o[t+1]&&r===o[t+2]&&s===o[t+3]&&(o[t]=n,o[t+1]=a,o[t+2]=l,o[t+3]=h)}const a=new ImageData(o,i,r);return n.putImageData(a,0,0),s}tintImageData(t,e){if(!e||e.length<4)return t;this._rasterizationCanvas||(this._rasterizationCanvas=document.createElement("canvas"));const{width:i,height:r}=t,s=this._rasterizationCanvas,n=s.getContext("2d",{willReadFrequently:!0});t!==s&&(s.width=i,s.height=r,n.drawImage(t,0,0,i,r));const o=n.getImageData(0,0,i,r),a=new Uint8Array(o.data),l=[e[0]/255,e[1]/255,e[2]/255,e[3]/255];for(let t=0;t<a.length;t+=4)a[t]*=l[0],a[t+1]*=l[1],a[t+2]*=l[2],a[t+3]*=l[3];const h=new ImageData(new Uint8ClampedArray(a.buffer),i,r);return n.putImageData(h,0,0),s}}var b=i(78653),C=i(28076),w=i(75585);function k(t){const e=t.getFrame(0);if(e instanceof HTMLImageElement||e instanceof HTMLCanvasElement)return e;const i=document.createElement("canvas");i.width=t.width,i.height=t.height;const r=i.getContext("2d");return e instanceof ImageData?r.putImageData(e,0,0):r.drawImage(e,0,0),i}function I(t,e=0){if(0===e)return t;const i=Math.cos(e),r=Math.sin(e),[s,n]=t;return[s*i+n*-r,s*r+n*i]}function P(t,e=0){let i=0;for(let r=0;r<4;r++)i+=t[e+r]*T[r];return i}const T=[1/256,1/65536,1/16777216,1/4294967296];P(new Uint8ClampedArray([255,255,255,255])),P(new Uint8ClampedArray([255,255,255,0])),i(35521);const L=()=>n.A.getLogger("esri.symbols.cim.rasterizingUtils");let R;function z(t,e){const{colorRamp:i,gradientType:r}=e,s=v(i),n="CIMFixedColorRamp"===i.type;if("Continuous"===r&&!n)return A(t,s);const o=e.interval??C.D.CIMGradientFill.interval;if(n)return A(t,function(t,e){const i=[],r=(t.length-1)/(e-1);for(let s=0;s<e;s++){const n=t[Math.round(s*r)].color;i.push({offset:s/e,color:n}),i.push({offset:(s+1)/e,color:n})}return i}(s,o));const a=[];R??=document.createElement("canvas"),function(t,e,i,r,s){const n=i+2*s;t.width=n,t.height=r;const o=(s+1)/n,a=t.getContext("2d",{willReadFrequently:!0});if(e.length>0){const t=a.createLinearGradient(0,0,n,r);A(t,e,o),a.fillStyle=t}else a.fillStyle="rgba(128, 128, 128, 1)";a.fillRect(0,0,n,r)}(R,s,o,1,0);const l=R.getContext("2d").getImageData(0,0,o,1).data;for(let t=0,e=0;t<o;t++,e=4*t){const i=[l[e+0],l[e+1],l[e+2],l[e+3]];a.push({offset:t/o,color:i}),a.push({offset:(t+1)/o,color:i})}return A(t,a)}function v(t){const e=[];switch(t.type){case"CIMPolarContinuousColorRamp":case"CIMLinearContinuousColorRamp":{"CIMPolarContinuousColorRamp"===t.type&&L().warnOnce("CIMPolarContinuousColorRamp is currently unsupported. Falling back to CIMLinearContinuousColorRamp.");const i=t;e.push({offset:0,color:[i.fromColor[0],i.fromColor[1],i.fromColor[2],i.fromColor[3]/255]}),e.push({offset:1,color:[i.toColor[0],i.toColor[1],i.toColor[2],i.toColor[3]/255]});break}case"CIMFixedColorRamp":{const i=t,r=1/(i.colors.length-1);let s=0;for(const t of i.colors)e.push({offset:s,color:[t[0],t[1],t[2],t[3]/255]}),s+=r;break}case"CIMMultipartColorRamp":{const i=t,r=i.weights.reduce((t,e)=>t+e,0);let s=0;for(let t=0;t<i.colorRamps.length;t++){const n=i.colorRamps[t],o=i.weights[t],a=v(n);for(const t of a)e.push({offset:(s+t.offset*o)/r,color:t.color});s+=o}break}default:L().error(`Color ramp "${t.type}" currently unsupported.`)}return e}function A(t,e,i=0){for(const{offset:r,color:s}of e)t.addColorStop(Math.min(Math.max(r,i),1-i),`rgba(${s[0]}, ${s[1]}, ${s[2]}, ${s[3]})`)}class E{constructor(t=0,e=0,i=0,r=0){this.x=t,this.y=e,this.width=i,this.height=r}static fromExtent(t){return new E(t.xmin,-t.ymax,t.xmax-t.xmin,t.ymax-t.ymin)}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}var F=i(69754);function D(t){return`rgb(${t.slice(0,3).toString()})`}function B(t){return`rgba(${t.slice(0,3).toString()},${t[3]})`}i(5760);class U{constructor(t){t&&(this._textRasterizationCanvas=t)}rasterizeRichText(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const i=this._textRasterizationCanvas,r=i.getContext("2d",{willReadFrequently:!0}),s=this._layoutRichTextRuns(r,t,e);this._parameters=e;const{decoration:n,weight:o}=e.font,a="underline"===n?"none":n,l=a===n?e:O(e,a);this._lineHeight=Math.max(...s.map(t=>t.height),this._measureLineHeight(l)),this._lineThroughWidthOffset="line-through"===a?.1*this._lineHeight:0;const h=null!=e.backgroundColor||null!=e.borderLine,c=h?8:0,u=Math.max(...s.map(t=>t.width),0)+2*c,f=s.reduce((t,e)=>t+e.height,0)+2*c;if(i.width=u+2*this._lineThroughWidthOffset,i.height=f,0===i.width||0===i.height)return i.width=i.height=1,{size:[0,0],image:new Uint32Array(0),sdf:!1,simplePattern:!1,anchorX:0,anchorY:0,canvas:i};this._renderedWidth=u,this._renderedHeight=f,this._renderedOutlineSize=(e.outline.size||0)*e.pixelRatio,this._renderedHaloSize=(e.halo.size||0)*e.pixelRatio,this._lineThroughWidthOffset*=e.pixelRatio;const m=(e.outline&&e.outline.color)??[0,0,0,0],d=e.color??[0,0,0,0],y=e.halo&&e.halo.color?e.halo.color:[0,0,0,0];this._fillStyle=B(d),this._outlineStyle=B(m),this._haloStyle=D(y);const p=this._renderedOutlineSize,g=this._renderedHaloSize;r.save(),r.clearRect(0,0,i.width,i.height);const _=c*e.pixelRatio,x=W("left",this._renderedWidth-2*_,g+p)+_,S=g+p+_;let M=this._lineThroughWidthOffset,b=0;if(h){r.save();const t=e.backgroundColor??[0,0,0,0],s=e.borderLine?.color??[0,0,0,0],n=2*(e.borderLine?.size??0);r.fillStyle=B(t),r.strokeStyle=B(s),r.lineWidth=n,r.fillRect(0,0,i.width,i.height),r.strokeRect(0,0,i.width,i.height),r.restore()}b+=S,M+=x,g>0&&this._renderRichTextOutline(r,s,M,b,e,this._renderedHaloSize+this._renderedOutlineSize),p>0&&this._renderRichTextOutline(r,s,M,b,e,this._renderedOutlineSize);for(const t of s){let i=M;"center"===e.horizontalAlignment?i+=(this._renderedWidth-2*_-t.width)/2:"right"===e.horizontalAlignment&&(i+=this._renderedWidth-2*_-t.width-g-p);let s=i;for(const e of t.segments)G(r,e.parameters,"left",e.characterSpacing),g>0&&(r.globalCompositeOperation="destination-out",r.fillStyle="rgb(0, 0, 0)",this._renderRichTextSegment(r,e,s,b,"fill"),r.globalCompositeOperation="source-over"),r.fillStyle=B(e.parameters.color??d),this._renderRichTextSegment(r,e,s,b,"fill"),s+=e.width;for(const e of t.segments){if("underline"!==e.decoration)continue;const t=this._renderedWidth;this._renderedWidth=e.width,r.textAlign="left",this._renderDecoration(r,i+e.x,b,e.decoration,e.parameters.font.weight,void 0,e.parameters),this._renderedWidth=t}if(a&&"none"!==a){const e=this._renderedWidth;this._renderedWidth=t.width,r.textAlign="left",this._renderDecoration(r,i,b,a,o),this._renderedWidth=e}b+=t.height}r.restore();const C=this._renderedWidth+2*this._lineThroughWidthOffset,w=this._renderedHeight,k=r.getImageData(0,0,C,w),I=new Uint8Array(k.data);if(e.premultiplyColors){let t;for(let e=0;e<I.length;e+=4)t=I[e+3]/255,I[e]=I[e]*t,I[e+1]=I[e+1]*t,I[e+2]=I[e+2]*t}let P,T;switch(e.horizontalAlignment){case"left":P=-.5;break;case"right":P=.5;break;default:P=0}switch(e.verticalAlignment){case"bottom":T=-.5;break;case"top":T=.5;break;case"baseline":T=-1/6;break;default:T=0}return{size:[C,w],image:new Uint32Array(I.buffer),sdf:!1,simplePattern:!1,anchorX:P,anchorY:T,canvas:i}}rasterizeText(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const i=this._textRasterizationCanvas,r=i.getContext("2d",{willReadFrequently:!0});G(r,e),this._parameters=e,this._textLines=t.split(/\r?\n/),this._lineHeight=this._computeLineHeight();const{decoration:s,weight:n}=e.font;this._lineThroughWidthOffset=s&&"line-through"===s?.1*this._lineHeight:0;const o=null!=e.backgroundColor||null!=e.borderLine,a=o?8:0,l=this._computeTextWidth(r,e)+2*a,h=this._lineHeight*this._textLines.length+2*a;if(i.width=l+2*this._lineThroughWidthOffset,i.height=h,0===i.width||0===i.height)return i.width=i.height=1,{size:[0,0],image:new Uint32Array(0),sdf:!1,simplePattern:!1,anchorX:0,anchorY:0,canvas:i};this._renderedLineHeight=Math.round(this._lineHeight),this._renderedOutlineSize=(e.outline.size||0)*e.pixelRatio,this._renderedHaloSize=(e.halo.size||0)*e.pixelRatio,this._renderedWidth=l,this._renderedHeight=h,this._lineThroughWidthOffset*=e.pixelRatio;const c=(e.outline&&e.outline.color)??[0,0,0,0],u=e.color??[0,0,0,0],f=e.halo&&e.halo.color?e.halo.color:[0,0,0,0];this._fillStyle=B(u),this._outlineStyle=B(c),this._haloStyle=D(f);const m=this._renderedLineHeight,d=this._renderedOutlineSize,y=this._renderedHaloSize;r.save(),r.clearRect(0,0,i.width,i.height),G(r,e);const p=a*e.pixelRatio,g=W(r.textAlign,this._renderedWidth-2*p,this._renderedHaloSize+this._renderedOutlineSize)+p,_=y+d+p,x=y>0;let S=this._lineThroughWidthOffset,M=0;if(o){r.save();const t=e.backgroundColor??[0,0,0,0],s=e.borderLine?.color??[0,0,0,0],n=2*(e.borderLine?.size??0);r.fillStyle=B(t),r.strokeStyle=B(s),r.lineWidth=n,r.fillRect(0,0,i.width,i.height),r.strokeRect(0,0,i.width,i.height),r.restore()}x&&this._renderHalo(r,g,_,S,M,e),d>0&&this._renderOutline(r,g,_,S,M,e),M+=_,S+=g;for(const t of this._textLines)x?(r.globalCompositeOperation="destination-out",r.fillStyle="rgb(0, 0, 0)",r.fillText(t,S,M),r.globalCompositeOperation="source-over",r.fillStyle=this._fillStyle,r.fillText(t,S,M)):(r.fillStyle=this._fillStyle,r.fillText(t,S,M)),s&&"none"!==s&&this._renderDecoration(r,S,M,s,n),M+=m;r.restore();const b=this._renderedWidth+2*this._lineThroughWidthOffset,C=this._renderedHeight,w=r.getImageData(0,0,b,C),k=new Uint8Array(w.data);if(e.premultiplyColors){let t;for(let e=0;e<k.length;e+=4)t=k[e+3]/255,k[e]=k[e]*t,k[e+1]=k[e+1]*t,k[e+2]=k[e+2]*t}let I,P;switch(e.horizontalAlignment){case"left":I=-.5;break;case"right":I=.5;break;default:I=0}switch(e.verticalAlignment){case"bottom":P=-.5;break;case"top":P=.5;break;case"baseline":P=-1/6;break;default:P=0}return{size:[b,C],image:new Uint32Array(k.buffer),sdf:!1,simplePattern:!1,anchorX:I,anchorY:P,canvas:i}}_renderHalo(t,e,i,r,s,n){const o=this._renderedWidth,a=this._renderedHeight;this._outlineRasterizationCanvas||(this._outlineRasterizationCanvas=document.createElement("canvas")),this._outlineRasterizationCanvas.width=o,this._outlineRasterizationCanvas.height=a;const l=this._outlineRasterizationCanvas,h=l.getContext("2d");h.clearRect(0,0,o,a),G(h,n);const{decoration:c,weight:u}=n.font;h.fillStyle=this._haloStyle,h.strokeStyle=this._haloStyle,h.lineJoin="round",this._renderOutlineNative(h,e,i,c,u,this._renderedHaloSize+this._renderedOutlineSize),t.globalAlpha=this._parameters.halo.color[3],t.drawImage(l,0,0,o,a,r,s,o,a),t.globalAlpha=1}_renderOutline(t,e,i,r,s,n){const o=this._renderedWidth,a=this._renderedHeight;this._outlineRasterizationCanvas||(this._outlineRasterizationCanvas=document.createElement("canvas")),this._outlineRasterizationCanvas.width=o,this._outlineRasterizationCanvas.height=a;const l=this._outlineRasterizationCanvas,h=l.getContext("2d");h.clearRect(0,0,o,a),G(h,n);const{decoration:c,weight:u}=n.font;h.fillStyle=this._outlineStyle,h.strokeStyle=this._outlineStyle,h.lineJoin="round",this._renderOutlineNative(h,e,i,c,u,this._renderedOutlineSize),t.globalAlpha=this._parameters.outline.color[3],t.drawImage(l,0,0,o,a,r,s,o,a),t.globalAlpha=1}_renderOutlineNative(t,e,i,r,s,n){const o=this._renderedLineHeight;for(const a of this._textLines){const l=2*n,h=5,c=.1;for(let n=0;n<h;n++){const o=(1-(h-1)*c+n*c)*l;t.lineWidth=o,t.strokeText(a,e,i),r&&"none"!==r&&this._renderDecoration(t,e,i,r,s,o)}i+=o}}computeTextSize(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const i=this._textRasterizationCanvas,r=i.getContext("2d");G(r,e),this._parameters=e,this._textLines=t.split(/\r?\n/),this._lineHeight=this._computeLineHeight();const s=this._computeTextWidth(r,e),n=this._lineHeight*this._textLines.length;return i.width=s,i.height=n,[s*e.pixelRatio,n*e.pixelRatio]}computeRichTextSize(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const i=this._textRasterizationCanvas.getContext("2d"),r=this._layoutRichTextRuns(i,t,e),s=Math.max(...r.map(t=>t.width),0),n=r.reduce((t,e)=>t+e.height,0);return[s*e.pixelRatio,n*e.pixelRatio]}_renderRichTextOutline(t,e,i,r,s,n){const o=this._renderedWidth,a=this._renderedHeight;this._outlineRasterizationCanvas||(this._outlineRasterizationCanvas=document.createElement("canvas")),this._outlineRasterizationCanvas.width=o,this._outlineRasterizationCanvas.height=a;const l=this._outlineRasterizationCanvas,h=l.getContext("2d");h.clearRect(0,0,o,a),h.fillStyle=n===this._renderedOutlineSize?this._outlineStyle:this._haloStyle,h.strokeStyle=h.fillStyle,h.lineJoin="round";let c=r;for(const t of e){let e=i;"center"===s.horizontalAlignment?e+=(this._renderedWidth-t.width)/2:"right"===s.horizontalAlignment&&(e+=this._renderedWidth-t.width-this._renderedHaloSize-this._renderedOutlineSize);let r=e;for(const e of t.segments){G(h,e.parameters,"left",e.characterSpacing);const t=2*n,i=5,s=.1;for(let n=0;n<i;n++){const o=1-(i-1)*s+n*s;h.lineWidth=o*t,this._renderRichTextSegment(h,e,r,c,"stroke")}r+=e.width}for(const i of t.segments){if("underline"!==i.decoration)continue;const t=this._renderedWidth;this._renderedWidth=i.width,h.textAlign="left",this._renderDecoration(h,e+i.x,c,i.decoration,i.parameters.font.weight,2*n,i.parameters),this._renderedWidth=t}const o="underline"===s.font.decoration?"none":s.font.decoration;if(o&&"none"!==o){const i=this._renderedWidth;this._renderedWidth=t.width,h.textAlign="left",this._renderDecoration(h,e,c,o,s.font.weight,2*n),this._renderedWidth=i}c+=t.height}n===this._renderedOutlineSize?t.globalAlpha=this._parameters.outline.color[3]:t.globalAlpha=this._parameters.halo.color[3],t.drawImage(l,0,0,o,a,this._lineThroughWidthOffset,0,o,a),t.globalAlpha=1}_layoutRichTextRuns(t,e,i){const r="underline"===i.font.decoration?O(i,"none"):i,s=[{segments:[],width:0,height:this._measureLineHeight(r)}];for(const n of e){const e=n.text.split(/\r?\n/),o=N(i,n);for(let i=0;i<e.length;i++){const a=e[i],l=s[s.length-1];if(a.length>0){const e=this._measureRichTextSegmentWidth(t,a,o,n.characterSpacing);l.segments.push({text:a,width:e,x:l.width,parameters:o,characterSpacing:n.characterSpacing,decoration:o.font.decoration}),l.width+=e,l.height=Math.max(l.height,this._measureLineHeight(o))}i<e.length-1&&s.push({segments:[],width:0,height:this._measureLineHeight(r)})}}return s}_measureTextWidthWithSpacing(t,e,i,r){const s=this._parameters,n=this._textLines;this._parameters=i,this._textLines=[e],G(t,i,"left",r);const o=this._computeTextWidth(t,i);return this._parameters=s,this._textLines=n,o}_measureRichTextSegmentWidth(t,e,i,r){return this._measureTextWidthWithSpacing(t,e,i,r)}_renderRichTextSegment(t,e,i,r,s){"fill"===s?t.fillText(e.text,i,r):t.strokeText(e.text,i,r)}_measureLineHeight(t){const e=this._parameters;this._parameters=t;const i=this._computeLineHeight();return this._parameters=e,i}_computeTextWidth(t,e){let i=0;for(const e of this._textLines)i=Math.max(i,t.measureText(e).width);const r=e.font;return("italic"===r.style||"oblique"===r.style||"string"==typeof r.weight&&("bold"===r.weight||"bolder"===r.weight)||"number"==typeof r.weight&&r.weight>600)&&(i+=.3*t.measureText("w").width),i+=2*(0,a.Lz)(this._parameters.halo.size),Math.round(i)}_computeLineHeightBase(t=this._parameters){return 1.275*t.size}_computeLineHeight(){let t=this._computeLineHeightBase();const e=this._parameters.font.decoration;return e&&"underline"===e&&(t*=1.3),Math.round(t+2*(0,a.Lz)(this._parameters.halo.size))}_renderDecoration(t,e,i,r,s,n,o=this._parameters){let l=.9*this._lineHeight;const h="bold"===s?.06:"bolder"===s?.09:.04;switch(t.textAlign){case"center":e-=this._renderedWidth/2;break;case"right":e-=this._renderedWidth}const c=t.textBaseline,u=function(t){return"underline"===t?(0,a.Lz)(2):0}(r);if("underline"===r)switch(l=.9*this._computeLineHeightBase(o),c){case"top":i+=l+u;break;case"middle":i+=l/2+u}else if("line-through"===r)switch(c){case"top":i+=l/1.5;break;case"middle":i+=l/3}const f=n?1.5*n:Math.ceil(l*h);t.save(),t.beginPath(),t.strokeStyle=t.fillStyle,t.lineWidth=f,t.moveTo(e-this._lineThroughWidthOffset,i),t.lineTo(e+this._renderedWidth+2*this._lineThroughWidthOffset,i),t.stroke(),t.restore()}}function G(t,e,i,r=0){const s=Math.max(e.size,.5),n=e.font,o=`${n.style} ${n.weight} ${(0,a.Lz)(s).toFixed(1)}px ${n.family}, sans-serif`;t.font=o,t.textBaseline="top",function(t,e){t.letterSpacing=e>0?`${e}em`:"0px"}(t,r);let l=i??"left";if(!i)switch(e.horizontalAlignment){case"left":default:l="left";break;case"right":l="right";break;case"center":l="center"}t.textAlign=l}function N(t,e){return{...t,color:e.color??t.color,font:{...t.font,family:e.font.family??t.font.family,style:e.font.style??t.font.style,weight:e.font.weight??t.font.weight,decoration:e.font.decoration??t.font.decoration},size:e.fontSize}}function O(t,e){return{...t,font:{...t.font,decoration:e}}}function W(t,e,i){return"center"===t?.5*e:"right"===t?e-i:i}var H=i(93397),$=i(75434),V=i(69221);const X=Math.PI/180,q=()=>n.A.getLogger("esri.symbols.cim.CIMSymbolDrawHelper");class Y{constructor(t){this._t=t}static createIdentity(){return new Y([1,0,0,0,1,0])}clone(){const t=this._t;return new Y(t.slice())}transform(t){const e=this._t;return[e[0]*t[0]+e[1]*t[1]+e[2],e[3]*t[0]+e[4]*t[1]+e[5]]}static createScale(t,e){return new Y([t,0,0,0,e,0])}scale(t,e){const i=this._t;return i[0]*=t,i[1]*=t,i[2]*=t,i[3]*=e,i[4]*=e,i[5]*=e,this}scaleRatio(){return Math.sqrt(this._t[0]*this._t[0]+this._t[1]*this._t[1])}static createTranslate(t,e){return new Y([0,0,t,0,0,e])}translate(t,e){const i=this._t;return i[2]+=t,i[5]+=e,this}static createRotate(t){const e=Math.cos(t),i=Math.sin(t);return new Y([e,-i,0,i,e,0])}rotate(t){return Y.multiply(this,Y.createRotate(t),this)}angle(){const t=this._t[0],e=this._t[3],i=Math.sqrt(t*t+e*e);return[t/i,e/i]}static multiply(t,e,i){const r=t._t,s=e._t,n=r[0]*s[0]+r[3]*s[1],o=r[1]*s[0]+r[4]*s[1],a=r[2]*s[0]+r[5]*s[1]+s[2],l=r[0]*s[3]+r[3]*s[4],h=r[1]*s[3]+r[4]*s[4],c=r[2]*s[3]+r[5]*s[4]+s[5],u=i._t;return u[0]=n,u[1]=o,u[2]=a,u[3]=l,u[4]=h,u[5]=c,i}invert(){const t=this._t;let e=t[0]*t[4]-t[1]*t[3];if(0===e)return new Y([0,0,0,0,0,0]);e=1/e;const i=(t[1]*t[5]-t[2]*t[4])*e,r=(t[2]*t[3]-t[0]*t[5])*e,s=t[4]*e,n=-t[1]*e,o=-t[3]*e,a=t[0]*e;return new Y([s,n,i,o,a,r])}}class Z{constructor(t,e){this._resourceManager=t,this._transfos=[],this._sizeTransfos=[],this._textScaling=[],this._geomUnitsPerPoint=1,this._placementPool=new g.A(()=>new d.W,void 0,void 0,100),this._earlyReturn=!1,this._mapRotation=0,this._transfos.push(e||Y.createIdentity()),this._sizeTransfos.push(e?e.scaleRatio():1),this._textScaling.push(1)}setTransform(t,e){this._transfos=[t||Y.createIdentity()],this._sizeTransfos=[e||(t?t.scaleRatio():1)],this._textScaling=[1]}setGeomUnitsPerPoint(t){this._geomUnitsPerPoint=t}transformPt(t){return this._transfos[this._transfos.length-1].transform(t)}transformSize(t){return t*this._sizeTransfos[this._sizeTransfos.length-1]}scaleText(t){return t*this._textScaling[this._textScaling.length-1]}reverseTransformPt(t){return this._transfos[this._transfos.length-1].invert().transform(t)}reverseTransformSize(t){return t/this._sizeTransfos[this._sizeTransfos.length-1]}reverseTransformScalar(t){return t/this._transfos[this._transfos.length-1].scaleRatio()}reverseScaleText(t){return t/this._textScaling[this._textScaling.length-1]}getTransformAngle(){return this._transfos[this._transfos.length-1].angle()}geomUnitsPerPoint(){return this.isEmbedded()?1:this._geomUnitsPerPoint}prevGeomUnitsPerPoint(){return this._transfos.length>2?1:this._geomUnitsPerPoint}isEmbedded(){return this._transfos.length>1}back(){return this._transfos[this._transfos.length-1]}push(t,e=!1,i=1){const r=e?t.scaleRatio():1;Y.multiply(t,this.back(),t),this._transfos.push(t),this._sizeTransfos.push(this._sizeTransfos[this._sizeTransfos.length-1]*r),this._textScaling.push(this._textScaling[this._textScaling.length-1]*i)}pop(){this._transfos.splice(-1,1),this._sizeTransfos.splice(-1,1),this._textScaling.splice(-1,1)}drawSymbol(t,e,i){if(t)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":this.drawMultiLayerSymbol(t,e);break;case"CIMTextSymbol":this.drawTextSymbol(t,e,i)}}drawMultiLayerSymbol(t,e){if(!t||!e)return;const i=t.symbolLayers;if(!i)return;const r=t.effects;if(r&&r.length>0){const t=this.executeEffects(r,e);if(t){let e=t.next();for(;e;)this.drawSymbolLayers(i,e.asJSON()),e=t.next()}}else this.drawSymbolLayers(i,e)}executeEffects(t,e){const i=this.geomUnitsPerPoint(),r=(0,H.ll)(t);let s=new m.kT(_.z.fromJSONCIM(e));for(const n of t){const t=(0,b.A)(n);t&&(s=t.execute(s,n,{geomUnitsPerPoint:i,tileKey:null,maxInflateSize:r,scale:null,spatialReference:e.spatialReference,preventClipping:!1}))}return s}drawSymbolLayers(t,e){let i=t.length;for(;i--;){const r=t[i];if(!r||!1===r.enable)continue;const s=r.effects;if(s&&s.length>0){const t=this.executeEffects(s,e);if(t){let e=null;for(;(e=t.next())&&(this.drawSymbolLayer(r,e.asJSON()),!this._earlyReturn););}}else this.drawSymbolLayer(r,e);if(this._earlyReturn)return}}drawSymbolLayer(t,e){switch(t.type){case"CIMSolidFill":this.drawSolidFill(e,t.color,t.path);break;case"CIMHatchFill":this.drawHatchFill(e,t);break;case"CIMPictureFill":this.drawPictureFill(e,t);break;case"CIMGradientFill":this.drawGradientFill(e,t);break;case"CIMSolidStroke":this.drawSolidStroke(e,t.color,t.width,t.capStyle,t.joinStyle,t.miterLimit,t.path);break;case"CIMPictureStroke":this.drawPictureStroke(e,t);break;case"CIMGradientStroke":this.drawGradientStroke(e,t);break;case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":this.drawMarkerLayer(t,e)}}drawHatchFill(t,e){const i=function(t,e,i){let r=(0,H.$w)(t.separation,C.D.CIMHatchFill.separation)*i,s=(0,H.$w)(t.rotation);if(0===r)return null;r<0&&(r=-r);let n=0;const o=.5*r;for(;n>o;)n-=r;for(;n<-o;)n+=r;const a=(0,l.vt)();(0,h.Rg)(a,e),a[0]-=o,a[1]-=o,a[2]+=o,a[3]+=o;const c=[[a[0],a[1]],[a[0],a[3]],[a[2],a[3]],[a[2],a[1]]];for(;s>180;)s-=180;for(;s<0;)s+=180;const u=Math.cos(s*X),f=Math.sin(s*X),m=-r*f,d=r*u;let y,p,g,_;n=(0,H.$w)(t.offsetX)*i*f-(0,H.$w)(t.offsetY)*i*u,y=g=Number.MAX_VALUE,p=_=-Number.MAX_VALUE;for(const t of c){const e=t[0],i=t[1],r=u*e+f*i,s=-f*e+u*i;y=Math.min(y,r),g=Math.min(g,s),p=Math.max(p,r),_=Math.max(_,s)}g=Math.floor(g/r)*r;let x=u*y-f*g-m*n/r,S=f*y+u*g-d*n/r,M=u*p-f*g-m*n/r,b=f*p+u*g-d*n/r;const w=1+Math.round((_-g)/r),k=[];for(let t=0;t<w;t++)x+=m,S+=d,M+=m,b+=d,k.push([[x,S],[M,b]]);return{paths:k}}(e,t,this.geomUnitsPerPoint());i&&(this.pushClipPath(t),this.drawMultiLayerSymbol(e.lineSymbol,i),this.popClipPath())}drawPictureFill(t,e){}drawGradientFill(t,e){}drawPictureStroke(t,e){}drawGradientStroke(t,e){}drawMarkerLayer(t,e){const i=t.markerPlacement;if(i){const r=(0,b.c)(i);if(r){const s="CIMMarkerPlacementInsidePolygon"===i.type||"CIMMarkerPlacementPolygonCenter"===i.type&&i.clipAtBoundary;s&&this.pushClipPath(e);const n=r.execute(_.z.fromJSONCIM(e),i,this.geomUnitsPerPoint(),null);if(n){let e=null;for(;(e=n.next())&&(this.drawMarker(t,e),!this._earlyReturn););}s&&this.popClipPath()}}else{const i=this._placementPool.acquire();if((0,S.fT)(e))i.tx=e.x,i.ty=e.y,this.drawMarker(t,i);else if((0,S.Bi)(e)){const r=(0,x.l8)(e);r&&([i.tx,i.ty]=r,this.drawMarker(t,i))}else if((0,S.Rg)(e)){for(const r of e.paths)for(const e of r)if(i.tx=e[0],i.ty=e[1],this.drawMarker(t,i),this._earlyReturn)break}else for(const r of e.points)if(i.tx=r[0],i.ty=r[1],this.drawMarker(t,i),this._earlyReturn)break;this._placementPool.release(i)}}drawMarker(t,e){switch(t.type){case"CIMCharacterMarker":case"CIMPictureMarker":this.drawPictureMarker(t,e);break;case"CIMVectorMarker":this.drawVectorMarker(t,e)}}drawPictureMarker(t,e){if(!t)return;const i=this._resourceManager.getResource(t.url),r=(0,H.$w)(t.size,C.D.CIMPictureMarker.size);if(null==i||r<=0)return;const s=i.width,n=i.height;if(!s||!n)return;const o=s/n,a=(0,H.$w)(t.scaleX,1),l=Y.createIdentity(),h=t.anchorPoint;if(h){let e=h.x,i=h.y;"Absolute"!==t.anchorPointUnits&&(e*=r*o*a,i*=r),l.translate(-e,-i)}let c=(0,H.$w)(t.rotation);t.rotateClockwise&&(c=-c),this._mapRotation&&(c+=this._mapRotation),c&&l.rotate(c*X);let u=(0,H.$w)(t.offsetX),f=(0,H.$w)(t.offsetY);if(u||f){if(this._mapRotation){const t=X*this._mapRotation,e=Math.cos(t),i=Math.sin(t),r=u*i+f*e;u=u*e-f*i,f=r}l.translate(u,f)}const m=this.geomUnitsPerPoint();1!==m&&l.scale(m,m);const d=e.getAngle();d&&l.rotate(d),l.translate(e.tx,e.ty),this.push(l),this.drawImage(t,r),this.pop()}drawVectorMarker(t,e){if(!t)return;const i=t.markerGraphics;if(!i)return;const r=(0,H.$w)(t.size,C.D.CIMVectorMarker.size),s=t.frame,n=s?s.ymax-s.ymin:0,o=r&&n?r/n:1,a=Y.createIdentity();s&&a.translate(.5*-(s.xmax+s.xmin),.5*-(s.ymax+s.ymin));const l=t.anchorPoint;if(l){let e=l.x,i=l.y;"Absolute"!==t.anchorPointUnits?s&&(e*=s.xmax-s.xmin,i*=s.ymax-s.ymin):(e/=o,i/=o),a.translate(-e,-i)}1!==o&&a.scale(o,o);let h=(0,H.$w)(t.rotation);t.rotateClockwise&&(h=-h),this._mapRotation&&(h+=this._mapRotation),h&&a.rotate(h*X);let c=(0,H.$w)(t.offsetX),u=(0,H.$w)(t.offsetY);if(c||u){if(this._mapRotation){const t=X*this._mapRotation,e=Math.cos(t),i=Math.sin(t),r=c*i+u*e;c=c*e-u*i,u=r}a.translate(c,u)}const f=this.geomUnitsPerPoint();1!==f&&a.scale(f,f);const m=e.getAngle();m&&a.rotate(m),a.translate(e.tx,e.ty);const d=t.scaleSymbolsProportionally?1:o;this.push(a,t.scaleSymbolsProportionally,d);for(const t of i){t?.symbol&&t.geometry||q().error("Invalid marker graphic",t);let e=t.textString;if("number"==typeof e&&(e=e.toString()),this.drawSymbol(t.symbol,t.geometry,e),this._earlyReturn)break}this.pop()}drawTextSymbol(t,e,i){if(!t)return;if(!(0,S.fT)(e))return;if((0,H.$w)(t.height,C.D.CIMTextSymbol.height)<=0)return;const r=Y.createIdentity();let s=(0,H.$w)(t.angle);s=-s,s&&r.rotate(s*X);const n=(0,H.$w)(t.offsetX),o=(0,H.$w)(t.offsetY);(n||o)&&r.translate(n,o);const a=this.geomUnitsPerPoint();1!==a&&r.scale(a,a),r.translate(e.x,e.y),this.push(r),this.drawText(t,i),this.pop()}}class J extends Z{constructor(t,e){super(t,e),this.reset()}reset(){this._xmin=this._ymin=1/0,this._xmax=this._ymax=-1/0,this._clipCount=0}envelope(){return new E(this._xmin,this._ymin,this._xmax-this._xmin,this._ymax-this._ymin)}bounds(){return(0,l.fA)(this._xmin,this._ymin,this._xmax,this._ymax)}drawSolidFill(t){if(t&&!(this._clipCount>0))if((0,S.Bi)(t))this._processPath(t.rings,0);else if((0,S.Rg)(t))this._processPath(t.paths,0);else if((0,S.ZC)(t)){const e=Q(t);e&&this._processPath(e.rings,0)}else console.error("drawSolidFill Unexpected geometry type!")}drawSolidStroke(t,e,i){if(!t||this._clipCount>0||null==i||i<=0)return;const r=Math.max(.5*this.transformSize((0,H.$w)(i,C.D.CIMSolidStroke.width)),.25);if((0,S.Bi)(t))this._processPath(t.rings,r);else if((0,S.Rg)(t))this._processPath(t.paths,r);else if((0,S.ZC)(t)){const e=Q(t);e&&this._processPath(e.rings,r)}else console.error("drawSolidStroke unexpected geometry type!")}drawMarkerLayer(t,e){(0,S.Bi)(e)&&t.markerPlacement&&("CIMMarkerPlacementInsidePolygon"===t.markerPlacement.type||"CIMMarkerPlacementPolygonCenter"===t.markerPlacement.type&&t.markerPlacement.clipAtBoundary)?this._processPath(e.rings,0):super.drawMarkerLayer(t,e)}drawHatchFill(t,e){this.drawSolidFill(t)}drawPictureFill(t,e){this.drawSolidFill(t)}drawGradientFill(t,e){this.drawSolidFill(t)}drawPictureStroke(t,e){this.drawSolidStroke(t,null,e.width)}drawGradientStroke(t,e){this.drawSolidStroke(t,null,e.width)}pushClipPath(t){this.drawSolidFill(t),this._clipCount++}popClipPath(){this._clipCount--}drawImage(t,e){const{url:i}=t,r=(0,H.$w)(t.scaleX,1);let s=r*e,n=e;const o=this._resourceManager.getResource(i);if(null!=o){const t=o.height/o.width;s=r*(e?t>1?e:e/t:o.width),n=e?t>1?e*t:e:o.height}this._merge(this.transformPt([-s/2,-n/2]),0),this._merge(this.transformPt([-s/2,n/2]),0),this._merge(this.transformPt([s/2,-n/2]),0),this._merge(this.transformPt([s/2,n/2]),0)}drawText(t,e){if(!e||0===e.length)return;this._textRasterizer||(this._textRasterizer=new U);const i=tt(t),r=(0,F.Z)({textString:e,font:i.font,symbol:t,supportsRichText:(0,F.q)(e)});let[s,n]=r?this._textRasterizer.computeRichTextSize(r,i):this._textRasterizer.computeTextSize(e,i);s=(0,a.PN)(s),n=(0,a.PN)(n);const o=this.transformSize(1)*this.reverseTransformScalar(1);s*=o,n*=o;const l=t.horizontalAlignment??C.D.CIMTextSymbol.horizontalalignment,h=t.verticalAlignment??C.D.CIMTextSymbol.verticalalignment;let c=0;switch(l){case"Left":c=s/2;break;case"Right":c=-s/2}let u=0;switch(h){case"Bottom":u=n/2;break;case"Top":u=-n/2;break;case"Baseline":u=n/6}this._merge(this.transformPt([-s/2+c,-n/2+u]),0),this._merge(this.transformPt([-s/2+c,n/2+u]),0),this._merge(this.transformPt([s/2+c,-n/2+u]),0),this._merge(this.transformPt([s/2+c,n/2+u]),0)}_processPath(t,e){if(t)for(const i of t){const t=i?i.length:0;if(t>1){this._merge(this.transformPt(i[0]),e);for(let r=1;r<t;r++)this._merge(this.transformPt(i[r]),e)}}}_merge(t,e){t[0]-e<this._xmin&&(this._xmin=t[0]-e),t[0]+e>this._xmax&&(this._xmax=t[0]+e),t[1]-e<this._ymin&&(this._ymin=t[1]-e),t[1]+e>this._ymax&&(this._ymax=t[1]+e)}}class j extends Z{constructor(t,e,i,r){super(e,i),this._applyAdditionalRenderProps=r,this._colorSubstitutionHelper=new M,this._ctx=t}drawSolidFill(t,e){if(!t)return;if((0,S.Bi)(t))this._buildPath(t.rings,!0);else if((0,S.Rg)(t))this._buildPath(t.paths,!0);else if((0,S.ZC)(t))this._buildPath(Q(t).rings,!0);else{if(!(0,S.U9)(t))return;console.log("CanvasDrawHelper.drawSolidFill - No implementation!")}const i=this._ctx;i.fillStyle="string"==typeof e?e:"rgba("+Math.round(e[0])+","+Math.round(e[1])+","+Math.round(e[2])+","+(e[3]??255)/255+")",i.fill("evenodd")}drawSolidStroke(t,e,i,r,s,n){if(!t||!e||0===i)return;if((0,S.Bi)(t))this._buildPath(t.rings,!0);else if((0,S.Rg)(t))this._buildPath(t.paths,!1);else{if(!(0,S.ZC)(t))return void console.log("CanvasDrawHelper.drawSolidStroke isn't implemented!");this._buildPath(Q(t).rings,!0)}const o=this._ctx;o.strokeStyle="string"==typeof e?e:"rgba("+Math.round(e[0])+","+Math.round(e[1])+","+Math.round(e[2])+","+(e[3]??255)/255+")",o.lineWidth=Math.max(this.transformSize(i),.5),this._setCapStyle(r),this._setJoinStyle(s),o.miterLimit=n,o.stroke()}pushClipPath(t){if(this._ctx.save(),(0,S.Bi)(t))this._buildPath(t.rings,!0);else if((0,S.Rg)(t))this._buildPath(t.paths,!0);else{if(!(0,S.ZC)(t))return;this._buildPath(Q(t).rings,!0)}this._ctx.clip("evenodd")}popClipPath(){this._ctx.restore()}drawImage(t,e){const{colorSubstitutions:i,url:r,tintColor:s}=t,n=(0,H.$w)(t.scaleX,1),o=this._resourceManager.getResource(r);if(null==o)return;let a=e*(o.width/o.height),l=e;e||(a=o.width,l=o.height);const h=(0,H.UE)(r)||"src"in o&&(0,H.UE)(o.src);let c="getFrame"in o?k(o):o;i&&(c=this._colorSubstitutionHelper.applyColorSubstitution(c,i)),this._applyAdditionalRenderProps&&!h&&s&&(c=this._colorSubstitutionHelper.tintImageData(c,s));const u=this.transformPt([0,0]),[f,m]=this.getTransformAngle(),d=this.transformSize(1),y=this._ctx;y.save(),y.setTransform({m11:n*d*f,m12:n*d*m,m21:-d*m,m22:d*f,m41:u[0],m42:u[1]}),y.drawImage(c,-a/2,-l/2,a,l),y.restore()}drawText(t,e){if(!e||0===e.length)return;this._textRasterizer||(this._textRasterizer=new U);const i=tt(t,this.transformSize((0,a.PN)(1))),r=(0,F.Z)({textString:e,font:i.font,symbol:t,supportsRichText:(0,F.q)(e)}),s=r?this._textRasterizer.rasterizeRichText(r,i):this._textRasterizer.rasterizeText(e,i);if(!s)return;const{size:n,anchorX:o,anchorY:l,canvas:h}=s,c=n[0]*(o+.5),u=n[1]*(l-.5),f=this._ctx,m=this.transformPt([0,0]),[d,y]=this.getTransformAngle();f.save(),f.setTransform({m11:1*d,m12:1*y,m21:-1*y,m22:1*d,m41:m[0]-1*c,m42:m[1]+1*u}),f.drawImage(h,0,0),f.restore()}drawPictureFill(t,e){if(!t)return;let{colorSubstitutions:i,height:r,offsetX:s,offsetY:n,rotation:o,scaleX:a,tintColor:l,url:h}=e;const c=this._resourceManager.getResource(h);if(null==c)return;if((0,S.Bi)(t))this._buildPath(t.rings,!0);else if((0,S.Rg)(t))this._buildPath(t.paths,!0);else if((0,S.ZC)(t))this._buildPath(Q(t).rings,!0);else{if(!(0,S.U9)(t))return;console.log("CanvasDrawHelper.drawPictureFill - No implementation!")}const u=this._ctx,f=(0,H.UE)(h)||"src"in c&&(0,H.UE)(c.src);let m,d="getFrame"in c?k(c):c;if(i&&(d=this._colorSubstitutionHelper.applyColorSubstitution(d,i)),this._applyAdditionalRenderProps){f||l&&(d=this._colorSubstitutionHelper.tintImageData(d,l)),m=u.createPattern(d,"repeat");const t=this.transformSize(1);o||(o=0),s?s*=t:s=0,n?n*=t:n=0,r&&(r*=t);const e=r?r/c.height:1,i=a&&r?a*r/c.width:1;if(0!==o||1!==e||1!==i||0!==s||0!==n){const t=new DOMMatrix;t.rotateSelf(0,0,-o).translateSelf(s,n).scaleSelf(i,e,1),m.setTransform(t)}}else m=u.createPattern(d,"repeat");u.save(),u.fillStyle=m,u.fill("evenodd"),u.restore()}drawPictureStroke(t,e){if(!t)return;let{colorSubstitutions:i,capStyle:r,joinStyle:n,miterLimit:o,tintColor:l,url:h,width:c}=e;const u=this._resourceManager.getResource(h);if(null==u)return;let f;if((0,S.Bi)(t))f=t.rings;else if((0,S.Rg)(t))f=t.paths;else{if(!(0,S.ZC)(t))return(0,S.U9)(t)?void console.log("CanvasDrawHelper.drawPictureStroke - No implementation!"):void 0;f=Q(t).rings}c||(c=u.width);const m=(0,H.UE)(h)||"src"in u&&(0,H.UE)(u.src);let d="getFrame"in u?k(u):u;i&&(d=this._colorSubstitutionHelper.applyColorSubstitution(d,i)),this._applyAdditionalRenderProps&&(m||l&&(d=this._colorSubstitutionHelper.tintImageData(d,l)));const y=Math.max(this.transformSize((0,a.Lz)(c)),.5),p=y/d.width,g=this._ctx,_=g.createPattern(d,"repeat-y");let x,M;g.save(),this._setCapStyle(r),this._setJoinStyle(n),void 0!==o&&(g.miterLimit=o),g.lineWidth=y;for(let t of f)if(t=(0,s.o8)(t),et(t),t&&!(t.length<=1)){x=this.transformPt(t[0]);for(let e=1;e<t.length;e++){M=this.transformPt(t[e]);const i=K(x,M),r=new DOMMatrix;r.translateSelf(0,x[1]-y/2).scaleSelf(p,p,1).rotateSelf(0,0,90-i),_.setTransform(r),g.strokeStyle=_,g.beginPath(),g.moveTo(x[0],x[1]),g.lineTo(M[0],M[1]),g.stroke(),x=M}}g.restore()}drawGradientFill(t,e){if(!t)return;let i;if((0,S.Bi)(t))i=t.rings;else if((0,S.Rg)(t))i=t.paths;else{if(!(0,S.ZC)(t))return void q().error("Unable to draw gradient fill");i=Q(t).rings}this._buildPath(i,!0);const{angle:r,gradientMethod:s,gradientSize:n,gradientSizeUnits:o}=e,h=C.D.CIMGradientFill,c=e.gradientType??h.gradientType,u=-(0,p.kU)(r??0),f=(0,l.Ie)();for(const t of i){const e=t?t.length:0;if(e>1)for(let i=0;i<e;i++){let e=this.transformPt(t[i]);"Linear"!==s&&"Rectangular"!==s||(e=I(e,-u)),(0,l.tK)(f,e)}}const[m,d,y,g]=f,_=this._ctx;switch(_.save(),s){case"Buffered":q().error(`Gradient method "${s}" currently unsupported.`);break;case"Linear":{const t=(d+g)/2,i="Absolute"===o?this.transformSize((0,a.Lz)(n)):(0,H.yX)(n,h.gradientSize)*(y-m),[r,s]="Discrete"===c?[y,y-i]:[m+i,m],l=I([r,t],u),f=I([s,t],u),p=_.createLinearGradient(l[0],l[1],f[0],f[1]);z(p,e),_.fillStyle=p,_.fill("evenodd");break}case"Circular":{const t=(0,l.gX)(f),i=(0,l.ib)(f)/2,r="Absolute"===o?this.transformSize((0,a.Lz)(n)):(0,H.yX)(n,h.gradientSize)*i,[s,u]="Discrete"===c?[i,i-r]:[r,0],m=_.createRadialGradient(t[0],t[1],s,t[0],t[1],u);z(m,e),_.fillStyle=m,_.fill("evenodd");break}case"Rectangular":{const i=(0,l.gX)(f),r=i[0],s=i[1],p=I(i,u),x=(i,r,s,n,o,a,l,h)=>{_.save(),this.pushClipPath(t);const c=I([o,a],u),f=I([l,h],u);_.beginPath(),_.moveTo(p[0],p[1]),_.lineTo(c[0],c[1]),_.lineTo(f[0],f[1]),_.lineTo(p[0],p[1]),_.clip();const m=I([i,r],u),d=I([s,n],u),y=_.createLinearGradient(m[0],m[1],d[0],d[1]);z(y,e),_.fillStyle=y,_.fill("evenodd"),_.restore()};let S="Absolute"===o?this.transformSize((0,a.Lz)(n)):(0,H.yX)(n,h.gradientSize)*((0,l.VL)(f)/2),[M,b]="Discrete"===c?[y,y-S]:[r+S,r];x(M,s,b,s,y,d,y,g),[M,b]="Discrete"===c?[m,m+S]:[r-S,r],x(M,s,b,s,m,g,m,d),S="Absolute"===o?this.transformSize((0,a.Lz)(n)):(0,H.yX)(n,h.gradientSize)*((0,l.uJ)(f)/2);let[C,w]="Discrete"===c?[g,g-S]:[s+S,s];x(r,C,r,w,y,g,m,g),[C,w]="Discrete"===c?[d,d+S]:[s-S,s],x(r,C,r,w,m,d,y,d);break}}_.restore()}drawGradientStroke(t,e){const{capStyle:i,gradientMethod:r,gradientSize:n,gradientSizeUnits:o,joinStyle:l,miterLimit:h,width:c}=e;if(!t||0===c)return;let u;if((0,S.Bi)(t))u=t.rings;else if((0,S.Rg)(t))u=t.paths;else{if(!(0,S.ZC)(t))return void q().error("Unable to draw gradient stroke");u=Q(t).rings}const f=e.gradientType??C.D.CIMGradientStroke.gradientType,m=Math.max(this.transformSize((0,a.Lz)(c)),.5),d=this._ctx;let y,p;d.save(),this._setCapStyle(i),this._setJoinStyle(l),void 0!==h&&(d.miterLimit=h),d.lineWidth=m;for(let t of u){if(t=(0,s.o8)(t),et(t),!t||t.length<=1)continue;let i=0;y=this.transformPt(t[0]);for(let e=1;e<t.length;e++){p=this.transformPt(t[e]);const r=p[0]-y[0],s=p[1]-y[1];i+=Math.sqrt(r*r+s*s),y=p}const l="Absolute"===o?this.transformSize((0,a.Lz)(n)):(0,H.yX)(n,C.D.CIMGradientStroke.gradientSize)*("AcrossLine"===r?m:i);let h=0;y=this.transformPt(t[0]);for(let s=1;s<t.length;s++){p=this.transformPt(t[s]);const n=p[0]-y[0],o=p[1]-y[1],a=Math.sqrt(n*n+o*o);let c,u,g,_;switch(r){case"AcrossLine":{const[t,e]=I([n/a,o/a],-Math.PI/2),i=m/2,r="Discrete"===f?i:l-i;c=(y[0]+p[0])/2+t*r,u=(y[1]+p[1])/2+e*r,g=c-t*l,_=u-e*l;break}case"AlongLine":{const t=n/a,e=o/a;"Discrete"===f?(c=y[0]-t*h,u=y[1]-e*h,g=c+t*l,_=u+e*l):(g=y[0]+t*(i-h),_=y[1]+e*(i-h),c=g-t*l,u=_-e*l);break}default:return q().error("Unrecognized gradient method:",r),void d.restore()}const x=d.createLinearGradient(c,u,g,_);z(x,e),d.strokeStyle=x,d.beginPath(),d.moveTo(y[0],y[1]),d.lineTo(p[0],p[1]),d.stroke(),h+=a,y=p}}d.restore()}_buildPath(t,e){const i=this._ctx;if(i.beginPath(),t)for(const r of t){const t=r?r.length:0;if(t>1){let s=this.transformPt(r[0]);i.moveTo(s[0],s[1]);for(let e=1;e<t;e++)s=this.transformPt(r[e]),i.lineTo(s[0],s[1]);e&&i.closePath()}}}_setCapStyle(t){switch(t){case"Butt":this._ctx.lineCap="butt";break;case"Round":this._ctx.lineCap="round";break;case"Square":this._ctx.lineCap="square"}}_setJoinStyle(t){switch(t){case"Bevel":this._ctx.lineJoin="bevel";break;case"Round":this._ctx.lineJoin="round";break;case"Miter":this._ctx.lineJoin="miter"}}}function K(t,e){const i=e[0]-t[0],r=e[1]-t[1];return 180/Math.PI*Math.atan2(r,i)}const Q=t=>t?{spatialReference:t.spatialReference,rings:[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]]}:null;function tt(t,e=1){const i=(0,H.DW)(t),r=(0,w._)(t.fontStyleName),s=t.fontFamilyName??y.Vb,{weight:n,style:o}=r,a=e*(t.height||5),l=(0,H.Bu)(t.horizontalAlignment),h=(0,H.Nl)(t.verticalAlignment),c=(0,H.pM)(t),u=(0,H.pM)(t.haloSymbol),f=null!=u?e*(t.haloSize??0):0,m=(0,H._1)(t.symbol),d=e*((0,H.xo)(t.symbol)||0),p="CIMBackgroundCallout"===t.callout?.type?t.callout.backgroundSymbol:null,g=(0,H.pM)(p),_=(0,H.xo)(p),x=(0,H._1)(p);return{color:c,size:a,horizontalAlignment:l,verticalAlignment:h,font:{family:s,style:(0,H.pV)(o),weight:(0,H.Kn)(n),decoration:i},outline:{size:d||0,color:m},halo:{size:f||0,color:u,style:o},backgroundColor:g,borderLine:null!=_&&null!=x?{size:_,color:x}:null,pixelRatio:1,premultiplyColors:!0}}function et(t){let e,i,r,s,n,o=t[0],a=1;for(;a<t.length;)e=t[a][0]-o[0],i=t[a][1]-o[1],s=0!==e?i/e:Math.PI/2,void 0!==r&&Math.abs(s-r)<=1e-4?(t.splice(a-1,1),o=n):(n=o,o=t[a],a++),r=s}var it=i(59868),rt=i(13195);const st=Math.PI,nt=st/2,ot=Math.PI/180,at=96/72,lt=()=>n.A.getLogger("esri.symbols.cim.CIMSymbolHelper");function ht(t){let e;switch(t.type){case"cim":return t.data;case"web-style":return t;case"simple-marker":{const i=mt.fromSimpleMarker(t);if(!i)throw new Error("InternalError: Cannot convert symbol to CIM");e=i;break}case"picture-marker":e=mt.fromPictureMarker(t);break;case"simple-line":e=mt.fromSimpleLineSymbol(t);break;case"simple-fill":e=mt.fromSimpleFillSymbol(t);break;case"picture-fill":e=mt.fromPictureFillSymbol(t);break;case"text":e=mt.fromTextSymbol(t)}return{type:"CIMSymbolReference",symbol:e}}function ct(t,e,i){switch(e.type){case"CIMSymbolReference":return ct(t,e.symbol,i);case"CIMPointSymbol":null==i&&(i={x:0,y:0}),t.drawSymbol(e,i);break;case"CIMLineSymbol":null==i&&(i={paths:[[[0,0],[10,0]]]}),t.drawSymbol(e,i);break;case"CIMPolygonSymbol":null==i&&(i={rings:[[[0,0],[0,10],[10,10],[10,0],[0,0]]]}),t.drawSymbol(e,i);break;case"CIMTextSymbol":{const i={x:0,y:0};t.drawSymbol(e,i);break}case"CIMVectorMarker":{const i=new d.W;t.drawMarker(e,i);break}}return t.envelope()}function ut(t){if(!t)return 0;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAtExtremities":case"CIMMarkerPlacementAtMeasuredUnits":case"CIMMarkerPlacementAtRatioPositions":case"CIMMarkerPlacementOnLine":case"CIMMarkerPlacementOnVertices":return Math.abs(t.offset??0);default:return 0}}class ft{static getSymbolInflateSize(t,e,i,r,s){return t||(t=[0,0,0,0]),e?this._getInflateSize(t,e,i,r,s):t}static safeSize(t){const e=Math.max(Math.abs(t[0]),Math.abs(t[2])),i=Math.max(Math.abs(t[1]),Math.abs(t[3]));return Math.sqrt(e*e+i*i)}static getPointSymbolHaloPadding(t,e){const i=(0,H.$w)(t.haloSize);if(i<=0||!t.haloSymbol?.symbolLayers?.some(t=>!1!==t.enable))return 0;const r=this.getSymbolInflateSize([0,0,0,0],t.haloSymbol,e,0,null);return i+this.safeSize(r)}static _vectorMarkerBounds(t,e,i,r){let s=!0;const n=(0,l.vt)();if(e?.markerGraphics)for(const o of e.markerGraphics){const e=[0,0,0,0];o.geometry&&((0,h.Rg)(n,o.geometry),e[0]=0,e[1]=0,e[2]=0,e[3]=0,this.getSymbolInflateSize(e,o.symbol,i,0,r),n[0]+=e[0],n[1]+=e[1],n[2]+=e[2],n[3]+=e[3],s?(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],s=!1):(t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.max(t[2],n[2]),t[3]=Math.max(t[3],n[3])))}return t}static _getInflateSize(t,e,i,r,s){if(function(t){return void 0!==t.symbolLayers}(e)){const n=this._getLayersInflateSize(t,e.symbolLayers,i,r,s),o=(0,H.ll)(e.effects);if(o>0&&(n[0]-=o,n[1]-=o,n[2]+=o,n[3]+=o),"CIMPointSymbol"===e.type){const t=this.getPointSymbolHaloPadding(e,i);t>0&&(n[0]-=t,n[1]-=t,n[2]+=t,n[3]+=t)}return n}return this._getTextInflatedSize(t,e,s)}static _getLayersInflateSize(t,e,i,r,s){let n=!0;if(!e)return t;for(const o of e){if(!o)continue;let e=[0,0,0,0];switch(o.type){case"CIMSolidFill":case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":break;case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const t=o;let i=t.width;null!=i&&("Square"===t.capStyle||"Miter"===t.joinStyle?i/=1.4142135623730951:i/=2,e[0]=-i,e[1]=-i,e[2]=i,e[3]=i);break}case"CIMCharacterMarker":case"CIMVectorMarker":case"CIMPictureMarker":{const t=o;if("CIMVectorMarker"===o.type){const t=o;if(e=this._vectorMarkerBounds(e,t,i,s),t.frame){const i=(t.frame.xmin+t.frame.xmax)/2,r=(t.frame.ymin+t.frame.ymax)/2;if(e[0]-=i,e[1]-=r,e[2]-=i,e[3]-=r,null!=t.size){const i=t.size/(t.frame.ymax-t.frame.ymin);e[0]*=i,e[1]*=i,e[2]*=i,e[3]*=i}}}else if("CIMPictureMarker"===o.type){const r=o,s=i.getResource(r.url);let n=1;if(null!=s&&s.height&&(n=s.width/s.height),null!=t.size){const i=t.size/2,s=t.size*n*(r.scaleX??1)/2;e=[-s,-i,s,i]}}else if(null!=t.size){const i=t.size/2;e=[-i,-i,i,i]}if(t.anchorPoint){let i,r;"Absolute"===t.anchorPointUnits?(i=t.anchorPoint.x,r=t.anchorPoint.y):(i=t.anchorPoint.x*(e[2]-e[0]),r=t.anchorPoint.y*(e[3]-e[1]));const s=1.25*Math.sqrt(i*i+r*r);e[0]-=s,e[1]-=s,e[2]+=s,e[3]+=s}let n=(0,H.$w)(t.rotation);if(t.rotateClockwise&&(n=-n),r&&(n-=r),n){const t=ot*n,i=Math.cos(t),r=Math.sin(t),s=(0,l.vt)([rt.MG,rt.MG,-rt.MG,-rt.MG]);(0,l.tK)(s,[e[0]*i-e[1]*r,e[0]*r+e[1]*i]),(0,l.tK)(s,[e[0]*i-e[3]*r,e[0]*r+e[3]*i]),(0,l.tK)(s,[e[2]*i-e[1]*r,e[2]*r+e[1]*i]),(0,l.tK)(s,[e[2]*i-e[3]*r,e[2]*r+e[3]*i]),e=s}let a=(0,H.$w)(t.offsetX),h=(0,H.$w)(t.offsetY);if(r){const t=ot*r,e=Math.cos(t),i=Math.sin(t),s=a*i+h*e;a=a*e-h*i,h=s}e[0]+=a,e[1]+=h,e[2]+=a,e[3]+=h;const c=ut(t.markerPlacement);c>0&&(e[0]-=c,e[1]-=c,e[2]+=c,e[3]+=c);break}}const a=(0,H.ll)(o.effects);a>0&&(e[0]-=a,e[1]-=a,e[2]+=a,e[3]+=a),n?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],n=!1):(t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3]))}return t}static _getTextInflatedSize(t,e,i){const r=(0,V.hV)(e.height??C.D.CIMTextSymbol.height);if(t[0]=-r/2,t[1]=-r/2,t[2]=r/2,t[3]=r/2,!i)return t;const s=i.get(e);if(!s)return t;if(!function(t){return"glyphs"===t.type?t.glyphs.length>0:t.runs.some(t=>t.glyphs.glyphs.length>0)}(s.glyphMosaicItems))return t;const{lineGapType:n,lineGap:o}=e,a=n?((t,e,i)=>{switch(t){case"ExtraLeading":return 1+e/i;case"Multiple":return e;case"Exact":return e/i}})(n,o??0,r):0,l=e.horizontalAlignment??C.D.CIMTextSymbol.horizontalalignment,h=e.verticalAlignment??C.D.CIMTextSymbol.verticalalignment,c="CIMBackgroundCallout"===e.callout?.type,u=(0,$.tA)(s.glyphMosaicItems,{scale:r/24,angle:(0,H.$w)(e.angle),xOffset:(0,H.$w)(e.offsetX),yOffset:(0,H.$w)(e.offsetY),horizontalAlignment:l,verticalAlignment:h,maxLineWidth:(0,V.Lu)(e.lineWidth),lineHeight:29*Math.max(.25,Math.min(a||1,4)),decoration:e.font.decoration||"none",useCIMAngleBehavior:!0,hasBackground:c}).boundsT,f=Math.sqrt(u.width*u.width+u.height*u.height);return t[0]-=u.x+f,t[1]-=u.y-f,t[2]+=u.x+f,t[3]+=-u.y+f,t}}class mt{static getEnvelope(t,e,i,r){if(!t)return null;const s=new J(i,r);if(Array.isArray(t)){let i;for(const r of t)i?i.union(ct(s,r,e)):i=ct(s,r,e);return i}return ct(s,t,e)}static expandEnvelopeForPointSymbolHalo(t,e,i,r=0){const s=ft.getPointSymbolHaloPadding(e,i);if(s<=0)return;const n=s+r;t.x-=n,t.y-=n,t.width+=2*n,t.height+=2*n}static getTextureInfo(t,e,i,r,s,n=0){const o=r??this.getEnvelope(t,null,e);if(!o)return[0,0,0,0,1];const a=Math.max(o.width,o.height)*at;let l=null!=s?Math.max(s/a,1):1;l*=at,o.x*=l,o.y*=l,o.width*=l,o.height*=l,o.width=Math.max(Math.ceil(o.x+o.width)-Math.floor(o.x),1)-1,o.height=Math.max(Math.ceil(o.y+o.height)-Math.floor(o.y),1)-1;let h=o.x+.5*o.width,c=o.y+.5*o.height;if(h+=o.x-Math.floor(o.x),c+=o.y-Math.floor(o.y),!r){const t=Math.ceil(n*l);o.width+=i+2*t,o.height+=i+2*t,h+=i/2,c+=i/2}return[o.width,o.height,h,c,l]}static getTextureAnchor(t,e,i,r=0){const[s,n,o,a,l]=this.getTextureInfo(t,e,2,null,i,r);return[-o/s,-a/n,n/l*at]}static rasterize(t,e,i,r,s=!0,n,o=0){const[a,l,h,c,u]=this.getTextureInfo(e,r,2,i,n,o);t.width=a,t.height=l;const f=t.getContext("2d",{willReadFrequently:!0}),m=Y.createScale(u,-u);m.translate(.5*a-h,.5*l+c);const y=new j(f,r,m);switch(e.type){case"CIMPointSymbol":{const t={type:"point",x:0,y:0};y.drawSymbol(e,t);break}case"CIMVectorMarker":{const t=new d.W;y.drawMarker(e,t);break}}const p=f.getImageData(0,0,t.width,t.height),g=new Uint8Array(p.data);if(s){let t;for(let e=0;e<g.length;e+=4)t=g[e+3]/255,g[e]=g[e]*t,g[e+1]=g[e+1]*t,g[e+2]=g[e+2]*t}return[g,t.width,t.height,-h/a,-c/l,u]}static fromTextSymbol(t){const{text:e}=t;return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:10,billboardMode3D:"FaceNearPlane",frame:{xmin:-5,ymin:-5,xmax:5,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{x:0,y:0},symbol:mt.createCIMTextSymbolfromTextSymbol(t),textString:e}],scaleSymbolsProportionally:!0,respectFrame:!0}],scaleX:1,angleAlignment:"Display"}}static fromPictureFillSymbol(t){const{height:e,outline:i,width:r,xoffset:s,xscale:n,yoffset:o,yscale:a}=t,l=[],h={type:"CIMPolygonSymbol",symbolLayers:l};if(i){const t=It(i);t&&l.push(t)}let c=t.url;"esriPFS"===t.type&&t.imageData&&(c=t.imageData);const u="angle"in t?t.angle??0:0,f=(r??0)*(n||1),m=(e??0)*(a||1);return l.push({type:"CIMPictureFill",enable:!0,invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:c,height:m,width:f,offsetX:(0,H.$w)(s),offsetY:(0,H.$w)(o),rotation:(0,H.$w)(-u),colorSubstitutions:null}),h}static fromSimpleFillSymbol(t){const{color:e,style:i,outline:r}=t,n=[],o={type:"CIMPolygonSymbol",symbolLayers:n};if(r){const t=It(r);t&&n.push(t)}if(i&&"solid"!==i&&"none"!==i&&"esriSFSSolid"!==i&&"esriSFSNull"!==i){const t={type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",color:xt(e),capStyle:"Butt",joinStyle:"Miter",width:.75}]};let r=0;const o=(0,a.PN)(kt(i)?8:10);switch(i){case"vertical":case"esriSFSVertical":r=90;break;case"forward-diagonal":case"esriSFSForwardDiagonal":case"diagonal-cross":case"esriSFSDiagonalCross":r=-45;break;case"backward-diagonal":case"esriSFSBackwardDiagonal":r=45;break;case"cross":case"esriSFSCross":r=0}n.push({type:"CIMHatchFill",lineSymbol:t,offsetX:0,offsetY:0,rotation:r,separation:o}),"cross"===i||"esriSFSCross"===i?n.push({type:"CIMHatchFill",lineSymbol:(0,s.o8)(t),offsetX:0,offsetY:0,rotation:90,separation:o}):"diagonal-cross"!==i&&"esriSFSDiagonalCross"!==i||n.push({type:"CIMHatchFill",lineSymbol:(0,s.o8)(t),offsetX:0,offsetY:0,rotation:45,separation:o})}else!i||"solid"!==i&&"esriSFSSolid"!==i||n.push({type:"CIMSolidFill",enable:!0,color:xt(e)});return o}static fromSimpleLineSymbol(t){const{cap:e,color:i,join:r,marker:s,miterLimit:n,style:o,width:a}=t;let l=null;"solid"!==o&&"none"!==o&&"esriSLSSolid"!==o&&"esriSLSNull"!==o&&(l=[{type:"CIMGeometricEffectDashes",dashTemplate:Ct(o,e),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]);const h=[];if(s){let t;switch(s.placement){case"begin-end":t="Both";break;case"begin":t="JustBegin";break;case"end":t="JustEnd";break;default:t="None"}const e=mt.fromSimpleMarker(s,a,i).symbolLayers[0];e.markerPlacement={type:"CIMMarkerPlacementAtExtremities",placePerPart:!1,angleToLine:!0,keepUpright:!1,offset:0,extremityPlacement:t,offsetAlongLine:0},h.push(e)}return h.push({type:"CIMSolidStroke",color:"none"!==o&&"esriSLSNull"!==o?xt(i):[0,0,0,0],capStyle:yt(e),joinStyle:pt(r),miterLimit:n,width:a,effects:l}),{type:"CIMLineSymbol",symbolLayers:h}}static fromPictureMarker(t){const{angle:e,height:i,width:r,xoffset:s,yoffset:n}=t;let o=t.url;return"esriPMS"===t.type&&t.imageData&&(o=t.imageData),{type:"CIMPointSymbol",symbolLayers:[{type:"CIMPictureMarker",invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:o,size:i,width:r,offsetX:(0,H.$w)(s),offsetY:(0,H.$w)(n),rotation:(0,H.$w)(-e)}]}}static createCIMTextSymbolfromTextSymbol(t){const{angle:e,color:i,font:s,haloColor:n,haloSize:o,horizontalAlignment:a,kerning:l,lineWidth:h,text:c,verticalAlignment:u,xoffset:f,yoffset:m,backgroundColor:d,borderLineColor:y,borderLineSize:p}=t;let g,_,x,S,M,b;s&&(g=s.family,_=s.style,x=s.weight,S=s.size,M=s.decoration);let C=!1;return c&&(C=(0,r.y)(c)[1]),(d||p)&&(b={type:"CIMBackgroundCallout",margin:null,backgroundSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:xt(d)},{type:"CIMSolidStroke",enable:!0,color:xt(y),width:p??0}]},accentBarSymbol:null,gap:null,leaderLineSymbol:null,lineStyle:null}),{type:"CIMTextSymbol",angle:e,blockProgression:2,depth3D:1,extrapolateBaselines:!0,fontEffects:0,fontEncoding:1,fontFamilyName:g||"Arial",fontStyleName:St(_,x),fontType:0,haloSize:o,height:S,hinting:1,horizontalAlignment:gt(a??"center"),kerning:l,letterWidth:100,ligatures:!0,lineGapType:"Multiple",lineWidth:h,offsetX:(0,H.$w)(f),offsetY:(0,H.$w)(m),strikethrough:"line-through"===M,underline:"underline"===M,symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:xt(i)}]},haloSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:xt(n)}]},shadowColor:[0,0,0,255],shadowOffsetX:1,shadowOffsetY:1,textCase:"Normal",textDirection:C?1:0,verticalAlignment:_t(u??"baseline"),verticalGlyphOrientation:0,wordSpacing:100,billboardMode3D:2,callout:b}}static createPictureMarkerRasterizationParam(t){const{angle:e,height:i,width:r,xoffset:s,yoffset:n}=t,o=t.url??t.source?.url??t.source?.imageData;return o?{type:"sprite-rasterization-param",overrides:[],resource:{type:"CIMPictureMarker",enable:!0,invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:o,size:i,width:r,offsetX:(0,H.$w)(s),offsetY:(0,H.$w)(n),rotation:(0,H.$w)(-e)}}:null}static createPictureFillRasterizationParam(t){const{width:e,height:i,xoffset:r,yoffset:s,url:n}=t;return n?{type:"sprite-rasterization-param",overrides:[],resource:{type:"CIMPictureFill",enable:!0,scaleX:1,textureFilter:"Picture",tintColor:null,url:n,width:e,height:i,offsetX:(0,H.$w)(r),offsetY:(0,H.$w)(s),rotation:0}}:null}static fromSimpleMarker(t,e,i){const{style:r}=t,s=t.color??i;if("path"===r||"esriSMSPath"===r){const e=[];if("outline"in t&&t.outline){const i=t.outline;e.push({type:"CIMSolidStroke",enable:!0,width:i.width,color:xt(i.color),path:t.path})}e.push({type:"CIMSolidFill",enable:!0,color:xt(s),path:t.path});const[i,r]=wt("square");return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:-(0,H.$w)(t.angle),size:(0,H.$w)(t.size||6),offsetX:(0,H.$w)(t.xoffset),offsetY:(0,H.$w)(t.yoffset),scaleSymbolsProportionally:!1,frame:i,markerGraphics:[{type:"CIMMarkerGraphic",geometry:r,symbol:{type:"CIMPolygonSymbol",symbolLayers:e}}]}]}}const n=[];let o,a,l=t.size;if("outline"in t&&t.outline&&"none"!==t.outline.style&&"esriSLSNull"!==t.outline.style){const e=t.outline,i="solid"!==e.style&&"esriSLSSolid"!==e.style;[o,a]=i?wt(r,t.size):wt(r);const s=e.width??it.A7.width;if(i){const e=s/t.size,i=(o.xmax-o.xmin)*e/2,r=(o.ymax-o.ymin)*e/2;o.xmin-=i,o.xmax+=i,o.ymin-=r,o.ymax+=r,l&&(l+=s)}const h="cross"!==t.style&&"x"!==t.style||"dot"===t?.outline.style||"short-dot"===t?.outline.style?"HalfGap":"FullPattern",c=i?[{type:"CIMGeometricEffectAddControlPoints"},{type:"CIMGeometricEffectDashes",dashTemplate:Ct(e.style,null).map(t=>e.width&&e.width>0?t*e.width:t),lineDashEnding:h,controlPointEnding:"FullPattern"}]:void 0;n.push({type:"CIMSolidStroke",capStyle:i?"Round":"Butt",enable:!0,width:s,color:xt(e.color),effects:c})}else!e||"line-marker"!==t.type||"cross"!==t.style&&"x"!==t.style?[o,a]=wt(r):([o,a]=wt(r),n.push({type:"CIMSolidStroke",enable:!0,width:e,color:xt(s)}));n.push({type:"CIMSolidFill",enable:!0,color:xt(s)});const h={type:"CIMPolygonSymbol",symbolLayers:n};return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:(0,H.$w)(-t.angle),size:(0,H.$w)(l||6*e),offsetX:(0,H.$w)(t.xoffset),offsetY:(0,H.$w)(t.yoffset),scaleSymbolsProportionally:!1,frame:o,markerGraphics:[{type:"CIMMarkerGraphic",geometry:a,symbol:h}]}]}}static fromCIMHatchFill(t,e){const i=e*(t.separation??C.D.CIMHatchFill.separation),r=i/2,n=(0,s.o8)(t.lineSymbol);n.symbolLayers?.forEach(t=>{switch(t.type){case"CIMSolidStroke":null!=t.width&&(t.width*=e),t.effects?.forEach(t=>{if("CIMGeometricEffectDashes"===t.type){const i=t.dashTemplate;t.dashTemplate=i?.map(t=>t*e)}});break;case"CIMVectorMarker":{null!=t.size&&(t.size*=e);const i=t.markerPlacement;null!=i&&"placementTemplate"in i&&(i.placementTemplate=i.placementTemplate.map(t=>t*e));break}}});let o=this._getLineSymbolPeriod(n)||4;for(;o<4;)o*=2;const a=o/2;return{type:"CIMVectorMarker",enable:!0,frame:{xmin:-a,xmax:a,ymin:-r,ymax:r},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{paths:[[[-a,0],[a,0]]]},symbol:n}],size:i}}static async normalizeSymbolAndFetchResources(t,e,i=null){if(!t)return;const r=[];if("effects"in t&&t.effects)for(const e of t.effects)r.push((0,m.ai)(e));r.push(n(t));const s=t=>{if(t.effects)for(const e of t.effects)r.push((0,m.ai)(e));if("CIMVectorMarker"===t.type){for(const e of t.markerGraphics)(0,c.Ed)(e.geometry)&&(e.geometry=(0,u.GS)(e.geometry,{maxDeviation:.01}));t.markerPlacement&&r.push((0,m.g1)(t.markerPlacement))}"url"in t&&t.url&&r.push(e.fetchResource(t.url,{signal:i})),"symbol"in t&&r.push(n(t.symbol))};async function n(t){if("CIMTextSymbol"!==t.type)return;const{fontFamilyName:i,fontStyleName:r}=t;if("calcitewebcoreicons"===i?.toLowerCase())return;const{style:s,weight:n}=(0,w._)(r),o=(0,H.DW)(t),a=new f.A({family:i,style:s,weight:n,decoration:o});try{await e.loadFont(a)}catch{lt().error(`Unsupported font ${i} in CIM symbol`)}}dt(t,s),"haloSymbol"in t&&dt(t.haloSymbol,s),await Promise.all(r)}static _getLineSymbolPeriod(t){if(t){const e=this._getEffectsRepeat(t.effects);if(e)return e;if(t.symbolLayers)for(const e of t.symbolLayers)if(e){const t=this._getEffectsRepeat(e.effects);if(t)return t;switch(e.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const t=this._getPlacementRepeat(e.markerPlacement);if(t)return t}}}}return 0}static _getEffectsRepeat(t){if(t)for(const e of t)if(e)switch(e.type){case"CIMGeometricEffectDashes":{const t=e.dashTemplate;if(t&&t.length){let e=0;for(const i of t)e+=i;return 1&t.length&&(e*=2),e}break}case"CIMGeometricEffectWave":return e.period;default:lt().error(`unsupported geometric effect type ${e.type}`)}return 0}static _getPlacementRepeat(t){if(t)switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAlongLineVariableSize":{const e=t.placementTemplate;if(e&&e.length){let t=0;for(const i of e)t+=+i;return 1&e.length&&(t*=2),t}break}}return 0}static fromCIMInsidePolygon(t){const e=t.markerPlacement,i={...t};i.markerPlacement=null,i.anchorPoint=null;const r=Math.abs(e.stepX),s=Math.abs(e.stepY),n=(e.randomness??100)/100;let l,h,c,u;if("Random"===e.gridType){const t=(0,a.PN)(1024),i=Math.max(Math.floor(t/r),1),f=Math.max(Math.floor(t/s),1);l=i*r/2,h=f*s/2,c=2*h;const m=new o.A(e.seed),d=n*r/1.5,y=n*s/1.5;u=[];for(let t=0;t<i;t++)for(let e=0;e<f;e++){const i=t*r-l+d*(.5-m.getFloat()),n=e*s-h+y*(.5-m.getFloat());u.push({x:i,y:n}),0===t&&u.push({x:i+2*l,y:n}),0===e&&u.push({x:i,y:n+2*h})}}else!0===e.shiftOddRows?(l=r/2,h=s,c=2*s,u=[{x:-l,y:0},{x:l,y:0},{x:0,y:h},{x:0,y:-h}]):(l=r/2,h=s/2,c=s,u=[{x:-r,y:0},{x:0,y:-s},{x:-r,y:-s},{x:0,y:0},{x:r,y:0},{x:0,y:s},{x:r,y:s},{x:-r,y:s},{x:r,y:-s}]);return{type:"CIMVectorMarker",enable:!0,frame:{xmin:-l,xmax:l,ymin:-h,ymax:h},markerGraphics:u.map(t=>({type:"CIMMarkerGraphic",geometry:t,symbol:{type:"CIMPointSymbol",symbolLayers:[i]}})),size:c}}}function dt(t,e){if(t)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const i=t.symbolLayers;if(!i)return;for(const t of i)if(e(t),"CIMVectorMarker"===t.type){const i=t.markerGraphics;if(!i)continue;for(const t of i)if(t){const i=t.symbol;i&&dt(i,e)}}break}}}const yt=t=>{if(!t)return"Butt";switch(t){case"butt":return"Butt";case"square":return"Square";case"round":return"Round"}},pt=t=>{if(!t)return"Miter";switch(t){case"miter":return"Miter";case"round":return"Round";case"bevel":return"Bevel"}},gt=t=>{if(null==t)return"Center";switch(t){case"left":return"Left";case"right":return"Right";case"center":return"Center";case"justify":return"Justify"}},_t=t=>{if(null==t)return"Center";switch(t){case"baseline":return"Baseline";case"top":return"Top";case"middle":return"Center";case"bottom":return"Bottom"}},xt=t=>{if(!t)return[0,0,0,0];const{r:e,g:i,b:r,a:s}=t;return[e,i,r,255*s]},St=(t,e)=>{const i=Mt(e),r=bt(t);return i&&r?`${i}-${r}`:`${i}${r}`},Mt=t=>{if(!t)return"";switch(t.toLowerCase()){case"bold":case"bolder":return"bold"}return""},bt=t=>{if(!t)return"";switch(t.toLowerCase()){case"italic":case"oblique":return"italic"}return""},Ct=(t,e)=>{const i=.001,r="butt"===e;switch(t){case"dash":case"esriSLSDash":return r?[4,3]:[3,4];case"dash-dot":case"esriSLSDashDot":return r?[4,3,1,3]:[3,4,i,4];case"dot":case"esriSLSDot":return r?[1,3]:[i,4];case"long-dash":case"esriSLSLongDash":return r?[8,3]:[7,4];case"long-dash-dot":case"esriSLSLongDashDot":return r?[8,3,1,3]:[7,4,i,4];case"long-dash-dot-dot":case"esriSLSDashDotDot":return r?[8,3,1,3,1,3]:[7,4,i,4,i,4];case"short-dash":case"esriSLSShortDash":return r?[4,1]:[3,2];case"short-dash-dot":case"esriSLSShortDashDot":return r?[4,1,1,1]:[3,2,i,2];case"short-dash-dot-dot":case"esriSLSShortDashDotDot":return r?[4,1,1,1,1,1]:[3,2,i,2,i,2];case"short-dot":case"esriSLSShortDot":return r?[1,1]:[i,2];case"solid":case"esriSLSSolid":case"none":return lt().error("Unexpected: style does not require rasterization"),[0,0];default:return lt().error(`Tried to rasterize SLS, but found an unexpected style: ${t}!`),[0,0]}},wt=(t,e=100)=>{const i=e/2;let r,s;const n=t;if("circle"===n||"esriSMSCircle"===n){const t=.25;let e=Math.acos(1-t/i),n=Math.ceil(st/e/4);0===n&&(n=1),e=nt/n,n*=4;const o=[];o.push([i,0]);for(let t=1;t<n;t++)o.push([i*Math.cos(t*e),-i*Math.sin(t*e)]);o.push([i,0]),r={rings:[o]},s={xmin:-i,ymin:-i,xmax:i,ymax:i}}else if("cross"===n||"esriSMSCross"===n){const t=0;r={paths:[[[t,i],[t,-i]],[[i,t],[-i,t]]]},s={xmin:-i,ymin:-i,xmax:i,ymax:i}}else if("diamond"===n||"esriSMSDiamond"===n)r={rings:[[[-i,0],[0,i],[i,0],[0,-i],[-i,0]]]},s={xmin:-i,ymin:-i,xmax:i,ymax:i};else if("square"===n||"esriSMSSquare"===n)r={rings:[[[-i,-i],[-i,i],[i,i],[i,-i],[-i,-i]]]},s={xmin:-i,ymin:-i,xmax:i,ymax:i};else if("x"===n||"esriSMSX"===n)r={paths:[[[i,i],[-i,-i]],[[i,-i],[-i,i]]]},s={xmin:-i,ymin:-i,xmax:i,ymax:i};else if("triangle"===n||"esriSMSTriangle"===n){const t=.5773502691896257*e,i=-t,n=2/3*e,o=n-e;r={rings:[[[i,o],[0,n],[t,o],[i,o]]]},s={xmin:i,ymin:o,xmax:t,ymax:n}}else"arrow"===n&&(r={rings:[[[-50,50],[50,0],[-50,-50],[-33,-20],[-33,20],[-50,50]]]},s={xmin:-i,ymin:-i,xmax:i,ymax:i});return[s,r]},kt=t=>"vertical"===t||"horizontal"===t||"cross"===t||"esriSFSCross"===t||"esriSFSVertical"===t||"esriSFSHorizontal"===t;function It(t){if(!t)return null;let e=null;const{cap:i,color:r,join:s,miterLimit:n,style:o,width:a}=t;return"solid"!==o&&"none"!==o&&"esriSLSSolid"!==o&&"esriSLSNull"!==o&&(e=[{type:"CIMGeometricEffectDashes",dashTemplate:Ct(o,i),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]),{type:"CIMSolidStroke",color:"esriSLSNull"!==o&&"none"!==o?xt(r):[0,0,0,0],capStyle:yt(i),joinStyle:pt(s),miterLimit:n,width:a,effects:e}}},28076(t,e,i){var r=i(13337);const s={CIMVectorMarker:{scalesymbolsproportionally:!1,respectframe:!0,anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMPictureMarker:{scalex:1,texturefilter:"Draft",anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMTextSymbol:{angle:0,anglex:0,angley:0,halosize:1,height:10,horizontalalignment:"Left",kerning:!0,letterspacing:0,letterwidth:100,ligatures:!0,linegap:0,offsetx:0,offsety:0,strikethrough:!1,textcase:"Normal",textstring:"",underline:!1,verticalalignment:"Bottom",enable:!0,colorlocked:!1},CIMSolidStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMPictureStroke:{texturefilter:"Draft",capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMGradientStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1,gradientMethod:"AcrossLine",gradientSize:75,gradientSizeUnits:r.h.Relative,gradientType:"Discrete",interval:5},CIMSolidFill:{enable:!0,colorlocked:!1},CIMPictureFill:{offsetx:0,offsety:0,rotation:0,scalex:1,height:10,texturefilter:"Draft",enable:!0,colorlocked:!1},CIMHatchFill:{offsetx:0,offsety:0,rotation:0,separation:4,enable:!0,colorlocked:!1},CIMGradientFill:{enable:!0,angle:90,gradientMethod:"Linear",gradientSize:75,gradientSizeUnits:r.h.Relative,gradientType:"Discrete",interval:5},CIMGeometricEffectAddControlPoints:{angletolerance:120},CIMGeometricEffectArrow:{arrowtype:"OpenEnded",width:5},CIMGeometricEffectBuffer:{size:1},CIMGeometricEffectCircularSector:{radius:25,startangle:0,endangle:45},CIMGeometricEffectCut:{begincut:1,endcut:1,middlecut:0,invert:!1},CIMGeometricEffectDashes:{customendingoffset:0,linedashending:"NoConstraint",offsetalongline:0},CIMGeometricEffectDonut:{method:"Mitered",option:"Accurate",width:2},CIMGeometricEffectJog:{angle:225,length:20,position:50},CIMGeometricEffectControlMeasureLine:{rule:"FullGeometry",width:25},CIMGeometricEffectMove:{offsetx:1,offsety:-1},CIMGeometricEffectOffset:{method:"Square",offset:1,option:"Fast"},CIMGeometricEffectRadial:{angle:0,length:5},CIMGeometricEffectRotate:{angle:15},CIMGeometricEffectScale:{xscalefactor:1.15,yscalefactor:1.15},CIMGeometricEffectWave:{amplitude:2,period:3,seed:1,waveform:"Sinus"},CIMMarkerPlacementAlongLine:{customendingoffset:0,endings:"WithHalfGap",offsetalongline:0,placeperpart:!0,angletoline:!0,offset:0},CIMMarkerPlacementAtExtremities:{extremityplacement:"Both",offsetalongline:0,angletoline:!0,offset:0},CIMMarkerPlacementAtRatioPositions:{beginposition:0,endposition:0,flipfirst:!0,angletoline:!0,offset:0},CIMMarkerPlacementInsidePolygon:{gridangle:0,gridtype:"Fixed",offsetx:0,offsety:0,randomness:100,seed:0,shiftoddrows:!1,stepx:16,stepy:16,clipping:"ClipAtBoundary"},CIMMarkerPlacementOnLine:{relativeto:"LineMiddle",startpointoffset:0,angletoline:!0,offset:0},CIMMarkerPlacementOnVertices:{placeperpart:!0,placeoncontrolpoints:!0,placeonendpoints:!0,placeonregularvertices:!0,angletoline:!0,offset:0},CIMMarkerPlacementPolygonCenter:{method:"OnPolygon",offsetx:0,offsety:0,clipatboundary:!1},CIMAnimatedSymbolProperties:{playanimation:!1,reverseanimation:!1,randomizestarttime:!1,randomizestartseed:0,starttimeoffset:0,duration:3,endingduration:3,useendingduration:!1,repeattype:"Loop",repeatdelay:0,easing:"Linear"},CIMSymbolAnimationSize:{tosize:10},CIMSymbolAnimationScale:{scalefactor:1},CIMSymbolAnimationColor:{tocolor:[255,255,255,1],colormode:"Multiply"},CIMSymbolAnimationTransparency:{totransparency:0},CIMSymbolAnimationRotation:{torotation:0,rotateclockwise:!1},CIMSymbolAnimationOffset:{offsetx:0,offsety:0},CIMSymbolAnimationMoveAlongLine:{speed:30,distancealong:100,movementtype:"Distance"}};i.d(e,["D",0,s])},13337(t,e,i){i.d(e,["h",0,{Relative:0,Absolute:1}])},93397(t,e,i){i.d(e,{Bu:()=>b,DW:()=>_,FM:()=>a,Kn:()=>g,Kq:()=>U,MM:()=>u,Nl:()=>C,O2:()=>w,YC:()=>T,YF:()=>k,_1:()=>S,_h:()=>o,bs:()=>P,e6:()=>h,gQ:()=>n,jn:()=>m,lW:()=>c,ll:()=>v,mA:()=>f,oI:()=>G,pM:()=>x,pV:()=>p,pk:()=>R,rB:()=>z,xo:()=>M,yX:()=>B,zb:()=>I,zr:()=>d});var r=i(28076);function s(t){let e=t.length;for(;e--;)if(!" /-,\n".includes(t.charAt(e)))return!1;return!0}function n(t,e){const i=[];let r=0,n=-1;do{if(n=t.indexOf("[",r),n>=r){if(n>r){const e=t.slice(r,n);i.push([e,null,s(e)])}if(r=n+1,n=t.indexOf("]",r),n>=r){if(n>r){const s=e[t.slice(r,n)];s&&i.push([null,s,!1])}r=n+1}}}while(-1!==n);if(r<t.length){const e=t.slice(r);i.push([e,null,s(e)])}return i}function o(t,e,i){let r="",s=null;for(const i of e){const[e,n,o]=i;if(null!=e&&""!==e)o?s=e:(null!=s&&(r+=s,s=null),r+=e);else{const e=t.readAttribute(n);null!=e&&""!==e&&(null!==s&&(r+=s,s=null),r+=e)}}return l(r,i)}function a(t,e,i,r){let s="",n=null;for(const r of e){const[e,o,a]=r;if(null!=e&&""!==e)a?n=e:(null!=n&&(s+=n,n=null),s+=e);else{let e=o;null!=i&&(e=L(o,i));const r=t.attributes[e];null!=r&&""!==r&&(null!=n&&(s+=n,n=null),s+=r)}}return l(s,r)}function l(t,e){switch("string"!=typeof t&&(t=String(t)),e){case"LowerCase":return t.toLowerCase();case"Allcaps":return t.toUpperCase();default:return t}}function h(t){return t?[t[0],t[1],t[2],t[3]/255]:[0,0,0,0]}function c(t){return t.data?.symbol??null}function u(t){return"CIMVectorMarker"===t.type||"CIMPictureMarker"===t.type||"CIMBarChartMarker"===t.type||"CIMCharacterMarker"===t.type||"CIMPieChartMarker"===t.type||"CIMStackedBarChartMarker"===t.type}function f(t){return"CIMGradientStroke"===t.type||"CIMPictureStroke"===t.type||"CIMSolidStroke"===t.type}function m(t){return null!=t&&("CIMGradientFill"===t.type||"CIMHatchFill"===t.type||"CIMPictureFill"===t.type||"CIMSolidFill"===t.type||"CIMWaterFill"===t.type)}function d(t){return null!=t&&("CIMMarkerPlacementAlongLineRandomSize"===t.type||"CIMMarkerPlacementAlongLineSameSize"===t.type||"CIMMarkerPlacementAlongLineVariableSize"===t.type||"CIMMarkerPlacementAtExtremities"===t.type||"CIMMarkerPlacementAtMeasuredUnits"===t.type||"CIMMarkerPlacementAtRatioPositions"===t.type||"CIMMarkerPlacementOnLine"===t.type||"CIMMarkerPlacementOnVertices"===t.type)}const y=(t,e=0)=>null==t||isNaN(t)?e:t;function p(t){if(!t)return"normal";switch(t.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function g(t){if(!t)return"normal";switch(t.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function _(t){return t.underline?"underline":t.strikethrough?"line-through":"none"}function x(t){if(!t)return null;switch(t.type){case"CIMPolygonSymbol":if(t.symbolLayers)for(const e of t.symbolLayers){const t=x(e);if(null!=t)return t}break;case"CIMTextSymbol":return x(t.symbol);case"CIMSolidFill":return t.color}return null}function S(t){if(t)switch(t.type){case"CIMPolygonSymbol":case"CIMLineSymbol":{const e=t.symbolLayers;if(e)for(const t of e){const e=S(t);if(null!=e)return e}break}case"CIMTextSymbol":return S(t.symbol);case"CIMSolidStroke":return t.color}}function M(t){if(t)switch(t.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(t.symbolLayers)for(const e of t.symbolLayers){const t=M(e);if(void 0!==t)return t}break;case"CIMTextSymbol":return M(t.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return t.width}}function b(t){switch(t){case"Left":default:return"left";case"Right":return"right";case"Center":return"center";case"Justify":return"justify"}}function C(t){switch(t){default:case"Bottom":return"bottom";case"Top":return"top";case"Center":return"middle";case"Baseline":return"baseline"}}function w(t){return(t?Object.keys(t):[]).map(e=>({name:e,alias:e,type:"string"==typeof t[e]?"esriFieldTypeString":"esriFieldTypeDouble"}))}function k(t){return t?t.charAt(0).toLowerCase()+t.slice(1):t}function I(t,e,i,r,s,n,o=!0){const{infos:a}=n;let l=1,h=0,c=0,u=0,f=1;for(const{absoluteAnchorPoint:t,offsetX:e,offsetY:i,rotation:r,size:s,frameHeight:n,rotateClockWise:m,scaleSymbolsProportionally:d}of a)f=t?1:l,c=F(e,i,h,f,c),u=E(e,i,h,f,u),n&&(d||o)&&(l*=s/n),h=D(r,m,h);const m=F(r,s,h,f,c),d=E(r,s,h,f,u);return{size:t*l,rotation:D(e,i,h),offsetX:m,offsetY:d}}function P(t){if(null==t)return"Normal";switch(t.type){case"CIMTextSymbol":return t.textCase??"Normal";case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const e=t.symbolLayers;if(!e)return"Normal";for(const t of e)if("CIMVectorMarker"===t.type)return P(t)}break;case"CIMVectorMarker":{const e=t.markerGraphics;if(!e)return"Normal";for(const t of e)if(t.symbol)return P(t.symbol)}}return"Normal"}function T(t){if(t)switch(t.type){case"CIMTextSymbol":return t.height;case"CIMPointSymbol":{let e=0;if(t.symbolLayers)for(const i of t.symbolLayers)if(i)switch(i.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const t=i.size??r.D.CIMVectorMarker.size;t>e&&(e=t);break}}return e}case"CIMLineSymbol":case"CIMPolygonSymbol":{let e=0;if(t.symbolLayers)for(const i of t.symbolLayers)if(i)switch(i.type){case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const t=i.width;null!=t&&t>e&&(e=t);break}case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":if(i.markerPlacement&&d(i.markerPlacement)){const t=i.size??r.D.CIMVectorMarker.size;t>e&&(e=t)}break;case"CIMPictureFill":{const t=i.height;null!=t&&t>e&&(e=t)}}return e}}}function L(t,e){if(null!==e){const i=e.get(t);return i?i.name:t}return t}function R(t){return t.map(t=>({...t,propertyName:k(t.propertyName)}))}function z(t){const e={};for(const i in t){const r=t[i];e[k(i)]=r}return e}function v(t){if(!t)return 0;let e=0;for(const i of t)e+=A(i);return e}function A(t){if(!t)return 0;if(U(t))return t.inflateSize??256;if(function(t){return"CIMSimpleLineCallout"===t.type||"CIMBackgroundCallout"===t.type||"CIMBalloonCallout"===t.type||"CIMPointSymbolCallout"===t.type}(t))return Math.abs(t.inflateSize);switch(t.type){case"CIMGeometricEffectArrow":return Math.abs(.5*t.width);case"CIMGeometricEffectBuffer":return Math.abs(t.size);case"CIMGeometricEffectCircularSector":return Math.abs(t.radius??25);case"CIMGeometricEffectControlMeasureLine":return 500;case"CIMGeometricEffectExtension":return Math.abs(t.length);case"CIMGeometricEffectJog":return Math.abs(.5*t.length);case"CIMGeometricEffectMove":return Math.max(Math.abs(y(t.offsetX)),Math.abs(y(t.offsetY)));case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":return Math.abs(t.offset);case"CIMGeometricEffectRadial":return Math.abs(t.length??5);case"CIMGeometricEffectRegularPolygon":return Math.abs(t.radius);case"CIMGeometricEffectRotate":case"CIMGeometricEffectScale":default:return 0;case"CIMGeometricEffectTaperedPolygon":return.5*Math.max(Math.abs(t.fromWidth),Math.abs(t.toWidth));case"CIMGeometricEffectWave":return Math.abs(t.amplitude);case"CIMGeometricEffectDonut":return Math.abs(t.width)}}function E(t,e,i,r,s){const n=i*Math.PI/180;if(n){const i=Math.cos(n);return(Math.sin(n)*t+i*e)*r+s}return e*r+s}function F(t,e,i,r,s){const n=i*Math.PI/180;return n?(Math.cos(n)*t-Math.sin(n)*e)*r+s:t*r+s}function D(t,e,i){return e?i-t:i+t}function B(t,e){return Math.max(Math.min((t??e)/100,1),0)}function U(t){return t.type.startsWith("Private")}function G(t){return null!=t&&function(t){return"setControlPoint"in t&&"getControlPoint"in t&&"setControlPointAt"in t&&"getControlPointAt"in t}(t)?t:void 0}i.d(e,["$w",0,y,"UE",0,t=>t.includes("data:image/svg+xml")])},13195(t,e,i){i.d(e,{GW:()=>p,IU:()=>g,Wh:()=>f,cP:()=>S,p6:()=>y,ru:()=>x,s3:()=>_,wV:()=>d,yM:()=>M,z0:()=>m});var r=i(95108),s=i(6774);const n=Number.POSITIVE_INFINITY,o=Math.PI,a=2*o,l=128/o,h=256/360,c=o/180,u=1/Math.LN2;function f(t,e){return(t%=e)>=0?t:t+e}function m(t){return f(t*l,256)}function d(t){return f(t*h,256)}function y(t){return Math.log(t)*u}function p(t,e,i){return t*(1-i)+e*i}function g(t){return 8+Math.max(16*(t-14),0)}function _(t,e,i){let r,s,n,o=0;for(const a of i){r=a.length;for(let i=1;i<r;++i)s=a[i-1],n=a[i],s.y>e!=n.y>e&&((n.x-s.x)*(e-s.y)-(n.y-s.y)*(t-s.x)>0?o++:o--)}return 0!==o}function x(t,e,i,s){let n,o,a,l;const h=s*s;for(const s of i){const i=s.length;if(!(i<2)){n=s[0].x,o=s[0].y;for(let c=1;c<i;++c){if(a=s[c].x,l=s[c].y,(0,r.Ng)(t,e,n,o,a,l)<h)return!0;n=a,o=l}}}return!1}function S(t,e){if(0===e||Number.isNaN(e))return t;const i=[],r=new s.bR(0,0),n=new s.bR(0,0),o=new s.bR(0,0);for(let a=0;a<t.length;a++){const l=t[a],h=[];for(let t=0;t<l.length;t++){const i=l[t-1],a=l[t],c=l[t+1];0===t?r.setCoords(0,0):r.assignSub(a,i).normalize().rightPerpendicular(),t===l.length-1?n.setCoords(0,0):n.assignSub(c,a).normalize().rightPerpendicular(),o.assignAdd(r,n).normalize();const u=o.x*n.x+o.y*n.y;0!==u&&o.scale(1/u),h.push(s.bR.add(a,o.scale(e)))}i.push(h)}return i}function M(t,e,i,r){const n=new s.bR(t[0],t[1]);if(n.scale(r),"viewport"===e){const t=-i*(Math.PI/180),e=Math.cos(t),r=Math.sin(t);n.rotate(e,r)}return n}i.d(e,["Jo",0,o,"MG",0,n,"aA",0,h,"os",0,c,"pJ",0,a])}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4230],{32488(t,e,i){i.d(e,{A:()=>k});const r=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],s=["آ","أ","إ","ا"],n=["ﻵ","ﻷ","ﻹ","ﻻ"],o=["ﻶ","ﻸ","ﻺ","ﻼ"],a=["ا","ب","ت","ث","ج","ح","خ","د","ذ","ر","ز","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق","ك","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ی","ئ","ؤ"],l=["ﺍ","ﺏ","ﺕ","ﺙ","ﺝ","ﺡ","ﺥ","ﺩ","ﺫ","ﺭ","ﺯ","ﺱ","ﺵ","ﺹ","ﺽ","ﻁ","ﻅ","ﻉ","ﻍ","ﻑ","ﻕ","ﻙ","ﻝ","ﻡ","ﻥ","ﻩ","ﻭ","ﻱ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯼ","ﺉ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺉ","ﺅ"],h=["ﺎ","ﺐ","ﺖ","ﺚ","ﺞ","ﺢ","ﺦ","ﺪ","ﺬ","ﺮ","ﺰ","ﺲ","ﺶ","ﺺ","ﺾ","ﻂ","ﻆ","ﻊ","ﻎ","ﻒ","ﻖ","ﻚ","ﻞ","ﻢ","ﻦ","ﻪ","ﻮ","ﻲ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯽ","ﺊ","ﺆ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺊ","ﺆ"],c=["ﺎ","ﺒ","ﺘ","ﺜ","ﺠ","ﺤ","ﺨ","ﺪ","ﺬ","ﺮ","ﺰ","ﺴ","ﺸ","ﺼ","ﻀ","ﻄ","ﻈ","ﻌ","ﻐ","ﻔ","ﻘ","ﻜ","ﻠ","ﻤ","ﻨ","ﻬ","ﻮ","ﻴ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯿ","ﺌ","ﺆ","ﹱ","ﹲ","ﹴ","ﹷ","ﹹ","ﹻ","ﹽ","ﹿ","ﺀ","ﺌ","ﺆ"],u=["ﺍ","ﺑ","ﺗ","ﺛ","ﺟ","ﺣ","ﺧ","ﺩ","ﺫ","ﺭ","ﺯ","ﺳ","ﺷ","ﺻ","ﺿ","ﻃ","ﻇ","ﻋ","ﻏ","ﻓ","ﻗ","ﻛ","ﻟ","ﻣ","ﻧ","ﻫ","ﻭ","ﻳ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯾ","ﺋ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺋ","ﺅ"],f=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],m=["ً","ً","ٌ","؟","ٍ","؟","َ","َ","ُ","ُ","ِ","ِ","ّ","ّ","ْ","ْ","ء","آ","آ","أ","أ","ؤ","ؤ","إ","إ","ئ","ئ","ئ","ئ","ا","ا","ب","ب","ب","ب","ة","ة","ت","ت","ت","ت","ث","ث","ث","ث","ج","ج","ج","ج","ح","ح","ح","ح","خ","خ","خ","خ","د","د","ذ","ذ","ر","ر","ز","ز","س","س","س","س","ش","ش","ش","ش","ص","ص","ص","ص","ض","ض","ض","ض","ط","ط","ط","ط","ظ","ظ","ظ","ظ","ع","ع","ع","ع","غ","غ","غ","غ","ف","ف","ف","ف","ق","ق","ق","ق","ك","ك","ك","ك","ل","ل","ل","ل","م","م","م","م","ن","ن","ن","ن","ه","ه","ه","ه","و","و","ى","ى","ي","ي","ي","ي","ﻵ","ﻶ","ﻷ","ﻸ","ﻹ","ﻺ","ﻻ","ﻼ","؟","؟","؟"],d=["ء","ف"],y=["غ","ي"],p=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],g=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],_=10,x=11,S=12,M=18,b=["UBAT_L","UBAT_R","UBAT_EN","UBAT_AN","UBAT_ON","UBAT_B","UBAT_S","UBAT_AL","UBAT_WS","UBAT_CS","UBAT_ES","UBAT_ET","UBAT_NSM","UBAT_LRE","UBAT_RLE","UBAT_PDF","UBAT_LRO","UBAT_RLO","UBAT_BN"],C=[100,0,0,0,0,101,102,103,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,4,4,4,0,4,0,4,0,4,4,4,0,0,4,4,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,0,0,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,105,7,7,106,107],w=[[M,M,M,M,M,M,M,M,M,6,5,6,8,5,M,M,M,M,M,M,M,M,M,M,M,M,M,M,5,5,5,6,8,4,4,x,x,x,4,4,4,4,4,_,9,_,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,M,M,M,M,M,M,5,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,9,4,x,x,x,x,4,4,4,4,0,4,4,M,4,4,x,x,2,2,4,0,4,4,4,2,0,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,4,4,4,4,4,4,4,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,1,S,1,S,S,1,S,S,1,S,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4],[3,3,3,3,4,4,4,4,7,x,x,7,9,7,4,4,S,S,S,S,S,S,S,S,S,S,S,7,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,3,3,3,3,3,3,3,3,3,3,x,3,3,7,7,7,S,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,S,S,S,S,S,S,S,3,4,S,S,S,S,S,S,7,7,S,S,4,S,S,S,S,7,7,2,2,2,2,2,2,2,2,2,2,7,7,7,7,7,7],[7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,7,7,S,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,S,S,S,S,S,S,S,S,S,S,S,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,S,S,S,S,S,S,S,S,S,1,1,4,4,4,4,1,4,4,4,4,4],[8,8,8,8,8,8,8,8,8,8,8,M,M,M,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,x,x,x,x,x,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,M,M,M,M,M,4,4,4,4,4,M,M,M,M,M,M,2,0,4,4,2,2,2,2,2,2,_,_,4,4,4,0,2,2,2,2,2,2,2,2,2,2,_,_,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4],[0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,4,4,4,4,4,1,S,1,1,1,1,1,1,1,1,1,1,_,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,4,1,4,1,1,4,1,1,4,1,1,1,1,1,1,1,1,1,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7],[S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,S,S,S,S,S,S,S,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,9,4,4,9,4,4,4,4,4,4,4,4,4,x,4,4,_,_,4,4,4,4,4,x,x,4,4,4,4,4,7,7,7,7,7,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,M],[4,4,4,x,x,x,4,4,4,4,4,_,9,_,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,4,4,4,x,x,4,4,4,x,x,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4]];class k{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,i){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,e,i){q=[],Z=[];for(let r=0;r<i;r++)t[r]=r,e[r]=r,q[r]=r}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,i))return t;e=this.inputFormat,i=this.outputFormat;let r=t;const a=J,c=H(e.charAt(1)),f=H(i.charAt(1)),d=(e.startsWith("I")?"L":e.charAt(0))+c,y=(i.startsWith("I")?"L":i.charAt(0))+f,p=e.charAt(2)+i.charAt(2);a.defInFormat=d,a.defOutFormat=y,a.defSwap=p;const g=I(t,d,y,p,a);let _=!1;return"R"===i.charAt(1)?_=!0:"C"!==i.charAt(1)&&"D"!==i.charAt(1)||(_="rtl"===this.checkContextual(g)),this.sourceToTarget=q,this.targetToSource=function(t){const e=new Array(t.length);for(let i=0;i<t.length;i++)e[t[i]]=i;return e}(this.sourceToTarget),Y=this.targetToSource,r=e.charAt(3)===i.charAt(3)?g:"S"===i.charAt(3)?function(t,e){if(0===e.length)return"";void 0===t&&(t=!0);const i=(e=String(e)).split("");let r=0,s=1,a=i.length;t||(r=i.length-1,s=-1,a=1);const c=function(t,e,i,r){let s=0;const a=[];let c=0;for(let f=e;f*i<r;f+=i)if(A(t[f])||W(t[f])){if("ل"===t[f]&&F(t,f+i,i,r)){t[f]=V(t[f+i],0===s?n:o),f+=i,$(t,f,i,r),a[c]=f,c++,s=0;continue}const e=t[f];1===s?t[f]=E(t,f+i,i,r)?N(t[f]):O(t[f],h):!0===E(t,f+i,i,r)?t[f]=O(t[f],u):t[f]=O(t[f],l),W(e)||(s=1),!0===G(e)&&(s=0)}else s=0;return a}(i,r,s,a);let f="";for(let e=0;e<i.length;e++)v(c,c.length,e)>-1?(X(Y,e,!t,-1),q.splice(e,1)):f+=i[e];return f}(_,g):function(t,e){if(0===t.length)return"";void 0===e&&(e=!0);let i="";const r=(t=String(t)).split("");for(let n=0;n<t.length;n++){let o=!1;if(r[n]>="ﹰ"&&r[n]<"\ufeff"){const a=t.charCodeAt(n);r[n]>="ﻵ"&&r[n]<="ﻼ"?(e?(n>0&&" "===r[n-1]?i=i.slice(0,-1)+"ل":(i+="ل",o=!0),i+=s[(a-65269)/2]):(i+=s[(a-65269)/2],i+="ل",n+1<t.length&&" "===r[n+1]?n++:o=!0),o&&(X(Y,n,!0,1),q.splice(n,0,q[n]))):i+=m[a-65136]}else i+=r[n]}return i}(g,_),this.sourceToTarget=q,this.targetToSource=Y,this.levels=Z,r}_inputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=t}checkParameters(t,e){return t?this._inputFormatSetter(t):t=this.inputFormat,e?this._outputFormatSetter(e):e=this.outputFormat,t!==e}checkContextual(t){let e=P(t);if("ltr"!==e&&"rtl"!==e){try{e=document.dir.toLowerCase()}catch(t){}"ltr"!==e&&"rtl"!==e&&(e="ltr")}return e}hasBidiChar(t){return it.test(t)}}function I(t,e,i,r,s){const n=function(t,e,i){if(void 0===e.inFormat&&(e.inFormat=i.defInFormat),void 0===e.outFormat&&(e.outFormat=i.defOutFormat),void 0===e.swap&&(e.swap=i.defSwap),e.inFormat===e.outFormat)return e;const r=e.inFormat.slice(0,1),s=e.outFormat.slice(0,1);let n,o=e.inFormat.slice(1,4),a=e.outFormat.slice(1,4);return o.startsWith("C")&&(n=P(t),o="ltr"===n||"rtl"===n?n.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=r+o),a.startsWith("C")&&(n=P(t),"rtl"===n?a="RTL":"ltr"===n?(n=function(t){const e=t.split("");return e.reverse(),P(e.join(""))}(t),a=n.toUpperCase()):a="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=s+a),e}(t,{inFormat:e,outFormat:i,swap:r},s);if(n.inFormat===n.outFormat)return t;e=n.inFormat,i=n.outFormat,r=n.swap;const o=e.slice(0,1),a=e.slice(1,4),l=i.slice(0,1),h=i.slice(1,4);if(s.inFormat=e,s.outFormat=i,s.swap=r,"L"===o&&"VLTR"===i){if("LTR"===a)return s.dir=Q,T(t,s);if("RTL"===a)return s.dir=tt,T(t,s)}if("V"===o&&"V"===l)return s.dir="RTL"===a?tt:Q,z(t,s);if("L"===o&&"VRTL"===i)return"LTR"===a?(s.dir=Q,t=T(t,s)):(s.dir=tt,t=T(t,s)),z(t);if("VLTR"===e&&"LLTR"===i)return s.dir=Q,T(t,s);if("V"===o&&"L"===l&&a!==h)return t=z(t),"RTL"===a?I(t,"LLTR","VLTR",r,s):I(t,"LRTL","VRTL",r,s);if("VRTL"===e&&"LRTL"===i)return I(t,"LRTL","VRTL",r,s);if("L"===o&&"L"===l){const e=s.swap;return s.swap=e.slice(0,1)+"N","RTL"===a?(s.dir=tt,t=T(t,s),s.swap="N"+e.slice(1,3),s.dir=Q,t=T(t,s)):(s.dir=Q,t=T(t,s),s.swap="N"+e.slice(1,3),t=I(t,"VLTR","LRTL",s.swap,s)),t}return t}function P(t){const e=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(t);return e?e[0]<="z"?"ltr":"rtl":""}function T(t,e){const i=t.split(""),r=[];return L(i,r,e),function(t,e,i){if(0!==i.hiLevel&&i.swap[0]!==i.swap[1])for(let i=0;i<t.length;i++)1===e[i]&&(t[i]=U(t[i]))}(i,r,e),D(2,i,r,e),D(1,i,r,e),Z=r,i.join("")}function L(t,e,i){const r=t.length,s=i.dir?g:p;let n=0,o=-1;const a=[],l=[];i.hiLevel=i.dir,i.lastArabic=!1,i.hasUbatAl=!1,i.hasUbatB=!1,i.hasUbatS=!1;for(let e=0;e<r;e++)a[e]=R(t[e]);for(let h=0;h<r;h++){const r=n,c=B(t,a,l,h,i);l[h]=c,n=s[r][c];const u=240&n;n&=15;const f=s[n][j];if(e[h]=f,u>0)if(16===u){for(let t=o;t<h;t++)e[t]=1;o=-1}else o=-1;if(s[n][K])-1===o&&(o=h);else if(o>-1){for(let t=o;t<h;t++)e[t]=f;o=-1}5===a[h]&&(e[h]=0),i.hiLevel|=f}i.hasUbatS&&function(t,e,i,r){for(let s=0;s<i;s++)if(6===t[s]){e[s]=r.dir;for(let i=s-1;i>=0&&8===t[i];i--)e[i]=r.dir}}(a,e,r,i)}function R(t){const e=t.charCodeAt(0),i=C[e>>8];return i<100?i:w[i-100][255&e]}function z(t,e){const i=t.split("");if(e){const t=[];L(i,t,e),Z=t}return i.reverse(),q.reverse(),i.join("")}function v(t,e,i){for(let r=0;r<e;r++)if(t[r]===i)return r;return-1}function A(t){for(let e=0;e<d.length;e++)if(t>=d[e]&&t<=y[e])return!0;return!1}function E(t,e,i,r){for(;e*i<r&&W(t[e]);)e+=i;return!!(e*i<r&&A(t[e]))}function F(t,e,i,r){for(;e*i<r&&W(t[e]);)e+=i;let n=" ";if(!(e*i<r))return!1;n=t[e];for(let t=0;t<s.length;t++)if(s[t]===n)return!0;return!1}function D(t,e,i,r){if(r.hiLevel<t)return;if(1===t&&r.dir===tt&&!r.hasUbatB)return e.reverse(),void q.reverse();const s=e.length;let n,o,a,l,h,c=0;for(;c<s;){if(i[c]>=t){for(n=c+1;n<s&&i[n]>=t;)n++;for(o=c,a=n-1;o<a;o++,a--)l=e[o],e[o]=e[a],e[a]=l,h=q[o],q[o]=q[a],q[a]=h;c=n}c++}}function B(t,e,i,r,s){const n=e[r];return{UBAT_L:()=>(s.lastArabic=!1,0),UBAT_R:()=>(s.lastArabic=!1,1),UBAT_ON:()=>4,UBAT_AN:()=>3,UBAT_EN:()=>s.lastArabic?3:2,UBAT_AL:()=>(s.lastArabic=!0,s.hasUbatAl=!0,1),UBAT_WS:()=>4,UBAT_CS:()=>{let t,n;return r<1||r+1>=e.length||2!==(t=i[r-1])&&3!==t||2!==(n=e[r+1])&&3!==n?4:(s.lastArabic&&(n=3),n===t?n:4)},UBAT_ES:()=>2===(r>0?i[r-1]:5)&&r+1<e.length&&2===e[r+1]?2:4,UBAT_ET:()=>{if(r>0&&2===i[r-1])return 2;if(s.lastArabic)return 4;let t=r+1;const n=e.length;for(;t<n&&11===e[t];)t++;return t<n&&2===e[t]?2:4},UBAT_NSM:()=>{if("VLTR"===s.inFormat){const i=e.length;let s=r+1;for(;s<i&&12===e[s];)s++;if(s<i){const i=t[r].charCodeAt(0),n=i>=1425&&i<=2303||64286===i,o=e[s];if(n&&(1===o||7===o))return 1}}return r<1||5===e[r-1]?4:i[r-1]},UBAT_B:()=>(s.lastArabic=!0,s.hasUbatB=!0,s.dir),UBAT_S:()=>(s.hasUbatS=!0,4),UBAT_LRE:()=>(s.lastArabic=!1,4),UBAT_RLE:()=>(s.lastArabic=!1,4),UBAT_LRO:()=>(s.lastArabic=!1,4),UBAT_RLO:()=>(s.lastArabic=!1,4),UBAT_PDF:()=>(s.lastArabic=!1,4),UBAT_BN:()=>4}[b[n]]()}function U(t){let e,i=0,s=r.length-1;for(;i<=s;)if(e=Math.floor((i+s)/2),t<r[e][0])s=e-1;else{if(!(t>r[e][0]))return r[e][1];i=e+1}return t}function G(t){for(let e=0;e<f.length;e++)if(f[e]===t)return!0;return!1}function N(t){for(let e=0;e<a.length;e++)if(t===a[e])return c[e];return t}function O(t,e){for(let i=0;i<a.length;i++)if(t===a[i])return e[i];return t}function W(t){return t>="ً"&&t<="ٕ"}function H(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function $(t,e,i,r){for(;e*i<r&&W(t[e]);)e+=i;return e*i<r&&(t[e]=" ",!0)}function V(t,e){for(let i=0;i<s.length;i++)if(t===s[i])return e[i];return t}function X(t,e,i,r){for(let s=0;s<t.length;s++)(t[s]>e||!i&&t[s]===e)&&(t[s]+=r)}let q=[],Y=[],Z=[];const J={dir:0,defInFormat:"LLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,defOutFormat:""},j=5,K=6,Q=0,tt=1,et=/^[(I|V)][(L|RCD)][(Y|N)][(S|N)]N$/,it=/[\u0591-\u06ff\ufb1d-\ufefc]/},6371(t,e,i){i.d(e,{y:()=>s});const r=new(i(32488).A);function s(t,e=!0){if(!r.hasBidiChar(t))return[t,!1,{...r}];let i;i="rtl"===r.checkContextual(t)?"IDNNN":"ICNNN";const s=e?"VLYSN":"VLYNN";return[r.bidiTransform(t,i,s),!0,{...r}]}},18370(t,e,i){i.d(e,{z:()=>s});class r{constructor(t){this._import=t,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async t=>(this.module=t,t))),this._promise}}function s(t){return new r(t)}},56512(t,e,i){function r(t){let e,i,r=[],s=!1;return function(...n){return s&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(t[i]!==e[i])return!1;return!0}(n,r)||(i=t.apply(this,n),e=this,r=n,s=!0),i}}i.d(e,{B:()=>r})},69397(t,e,i){i.d(e,{Qf:()=>a,Qh:()=>n,lM:()=>s});var r=i(34275);function s(t){if(!t)return 0;let e=h;for(const i in t)t.hasOwnProperty(i)&&(e+=o(t[i],!1));return e}function n(t){if(!t)return 0;if("number"==typeof t[0])return a(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let i=c;for(let r=0;r<e;r++)i+=o(t[r]);return i}(t);let e=h;for(const i in t)t.hasOwnProperty(i)&&(e+=o(t[i]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?n(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+u:Array.isArray(e)?l(e,16):0:0),0)}function l(t,e){return c+t.length*e}const h=32,c=16,u=145},6774(t,e,i){i.d(e,{O3:()=>n,Ox:()=>o,bR:()=>r});class r{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new r(t[0],t[1])}clone(){return new r(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){const t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){const i=this.x,r=this.y;return this.x=i*t-r*e,this.y=i*e+r*t,this}rotateReverse(t,e){const i=this.x,r=this.y;return this.x=i*t+r*e,this.y=-i*e+r*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){const i=e.x-t.x,r=e.y-t.y;return Math.sqrt(i*i+r*r)}static add(t,e){return new r(t.x+e.x,t.y+e.y)}static sub(t,e){return new r(t.x-e.x,t.y-e.y)}}class s{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class n{constructor(t,e,i,r=8,s=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=r,this._pixelMargin=s,this._tileSize=512*r,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;const i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new r(t,e),this._firstPt=new r(t,e),this._dist=0}lineTo(t,e){const i=this._isIn(t,e),n=new r(t,e),o=r.distance(this._prevPt,n);let a,l,h,c,u,f,m,d;if(i)this._prevIsIn?this._lineTo(t,e,!0):(a=this._prevPt,l=n,h=this._intersect(l,a),this._start=this._dist+o*(1-this._r),this._lineTo(h.x,h.y,!0),this._lineTo(l.x,l.y,!0));else if(this._prevIsIn)l=this._prevPt,a=n,h=this._intersect(l,a),this._lineTo(h.x,h.y,!0),this._lineTo(a.x,a.y,!1);else{const t=this._prevPt,e=n;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{const i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(c=(this._xmin-t.x)/(e.x-t.x),d=t.y+c*(e.y-t.y),d<=this._ymin?f=!1:d>=this._ymax?f=!0:i.push(new s(c,this._xmin,d))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(c=(this._xmax-t.x)/(e.x-t.x),d=t.y+c*(e.y-t.y),d<=this._ymin?f=!1:d>=this._ymax?f=!0:i.push(new s(c,this._xmax,d))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(c=(this._ymin-t.y)/(e.y-t.y),m=t.x+c*(e.x-t.x),m<=this._xmin?u=!1:m>=this._xmax?u=!0:i.push(new s(c,m,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(c=(this._ymax-t.y)/(e.y-t.y),m=t.x+c*(e.x-t.x),m<=this._xmin?u=!1:m>=this._xmax?u=!0:i.push(new s(c,m,this._ymax))),0===i.length)u?f?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):f?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+o*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+o*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=o,this._prevIsIn=i,this._prevPt=n}close(){if(this._line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const i=this._line;let r=i.length;for(;r>=4&&(i[0].x===i[1].x&&i[0].x===i[r-2].x||i[0].y===i[1].y&&i[0].y===i[r-2].y);)i.pop(),i[0].x=i[r-2].x,i[0].y=i[r-2].y,--r}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&a.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,e=t.length;if(0===e)return null;const i=[];for(let r=0;r<e;r++)i.push({line:t[r],start:this._starts[r]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,s,n;if(e.x>=this._xmin&&e.x<=this._xmax)s=e.y<=this._ymin?this._ymin:this._ymax,n=(s-t.y)/(e.y-t.y),i=t.x+n*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,n=(i-t.x)/(e.x-t.x),s=t.y+n*(e.y-t.y);else{s=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;const r=(i-t.x)/(e.x-t.x),o=(s-t.y)/(e.y-t.y);r<o?(n=r,s=t.y+r*(e.y-t.y)):(n=o,i=t.x+o*(e.x-t.x))}return this._r=n,new r(i,s)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3!==this._type?i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new r(t,e))):(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new r(t,e)),this._isH=!1,this._isV=!1)}_lineTo(t,e,i){let s,n;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(s=this._line[this._line.length-1],s.equals(t,e)))return;this._line.push(new r(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){s=this._line[this._line.length-1];const i=s.x===t,o=s.y===e;if(i&&o)return;this._isH&&i||this._isV&&o?(s.x=t,s.y=e,n=this._line[this._line.length-2],n.x===t&&n.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(n=this._line[this._line.length-2],this._isH=n.x===t,this._isV=n.y===e)):(this._isH=n.x===t,this._isV=n.y===e)):(this._line.push(new r(t,e)),this._isH=i,this._isV=o)}else this._line.push(new r(t,e))}}class o{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];const i=this._ratio;this._line.push(new r(t*i,e*i))}lineTo(t,e){const i=this._ratio;this._line.push(new r(t*i,e*i))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class a{static simplify(t,e,i){if(!i)return;const r=-e,s=t+e,n=-e,o=t+e,l=[],h=[],c=i.length;for(let t=0;t<c;++t){const e=i[t];if(!e||e.length<2)continue;let a,c=e[0];const u=e.length;for(let i=1;i<u;++i)a=e[i],c.x===a.x&&(c.x<=r&&(c.y>a.y?(l.push(t),l.push(i),l.push(0),l.push(-1)):(h.push(t),h.push(i),h.push(0),h.push(-1))),c.x>=s&&(c.y<a.y?(l.push(t),l.push(i),l.push(1),l.push(-1)):(h.push(t),h.push(i),h.push(1),h.push(-1)))),c.y===a.y&&(c.y<=n&&(c.x<a.x?(l.push(t),l.push(i),l.push(2),l.push(-1)):(h.push(t),h.push(i),h.push(2),h.push(-1))),c.y>=o&&(c.x>a.x?(l.push(t),l.push(i),l.push(3),l.push(-1)):(h.push(t),h.push(i),h.push(3),h.push(-1)))),c=a}if(0===l.length||0===h.length)return;a.fillParent(i,h,l),a.fillParent(i,l,h);const u=[];a.calcDeltas(u,h,l),a.calcDeltas(u,l,h),a.addDeltas(u,i)}static fillParent(t,e,i){const r=i.length,s=e.length;for(let n=0;n<s;n+=4){const s=e[n],o=e[n+1],a=e[n+2],h=t[s][o-1],c=t[s][o];let u=8092,f=-1;for(let e=0;e<r;e+=4){if(i[e+2]!==a)continue;const r=i[e],s=i[e+1],n=t[r][s-1],o=t[r][s];switch(a){case 0:case 1:if(l(h.y,n.y,o.y)&&l(c.y,n.y,o.y)){const t=Math.abs(o.y-n.y);t<u&&(u=t,f=e)}break;case 2:case 3:if(l(h.x,n.x,o.x)&&l(c.x,n.x,o.x)){const t=Math.abs(o.x-n.x);t<u&&(u=t,f=e)}}}e[n+3]=f}}static calcDeltas(t,e,i){const r=e.length;for(let s=0;s<r;s+=4){const r=[],n=a.calcDelta(s,e,i,r);t.push(e[s]),t.push(e[s+1]),t.push(e[s+2]),t.push(n)}}static calcDelta(t,e,i,r){const s=e[t+3];if(-1===s)return 0;const n=r.length;return n>1&&r[n-2]===s?0:(r.push(s),a.calcDelta(s,i,e,r)+1)}static addDeltas(t,e){const i=t.length;let r=0;for(let e=0;e<i;e+=4){const i=t[e+3];i>r&&(r=i)}for(let s=0;s<i;s+=4){const i=e[t[s]],n=t[s+1],o=r-t[s+3];switch(t[s+2]){case 0:i[n-1].x-=o,i[n].x-=o,1===n&&(i[i.length-1].x-=o),n===i.length-1&&(i[0].x-=o);break;case 1:i[n-1].x+=o,i[n].x+=o,1===n&&(i[i.length-1].x+=o),n===i.length-1&&(i[0].x+=o);break;case 2:i[n-1].y-=o,i[n].y-=o,1===n&&(i[i.length-1].y-=o),n===i.length-1&&(i[0].y-=o);break;case 3:i[n-1].y+=o,i[n].y+=o,1===n&&(i[i.length-1].y+=o),n===i.length-1&&(i[0].y+=o)}}}}const l=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},31411(t,e,i){i.d(e,{GS:()=>w,gh:()=>I});var r=i(49186),s=i(56512),n=i(65864),o=i(4305),a=i(50954),l=i(52006),h=i(49663),c=i(46068),u=i(15507);const f=1e-6,m=[0,0];function d(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class y{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:i,maxSegmentsPerCurve:r,minSegmentsPerCurve:s}){const n=i*i,o=e*e,a=1/r,l=this.interpolate(0),h=this.interpolate(1);(0,u.kb)(this.curveStart,l)>f&&t.push(l),this.initialize(l,h);const c=1/s;for(let t=s-1;t>0;t--){const e=t*c;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===n||!isFinite(n)||(0,u.kb)(this.arcStart,this.arcEnd)<n)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,u.kb)(this.curveEnd,h)>f&&t.push([...this.curveEnd]),t}}class p extends y{constructor(t,e){const[i,r,s]=e.b;super(t,i),this._controlPointsStack=[],this._curveControlPoints=[r,s],this._arcControlPoints=[r,s],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:i,tStart:r,tEnd:s}=this,[n,o]=this._arcControlPoints,a=(t-r)/(s-r),l=(0,u.RS)([],e,n,a),h=(0,u.RS)(m,n,o,a),c=(0,u.RS)([],o,i,a),f=(0,u.RS)([],l,h,a),d=(0,u.RS)([],h,c,a),y=(0,u.RS)([],f,d,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([d,c]),this.tEndStack.push(t),this.arcEndStack.push(y),this._arcControlPoints[0]=l,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:i}=this,[r,s]=this._curveControlPoints;return(0,o.B4)(e,r,s,i,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[i,r]=this._arcControlPoints;return Math.max((0,u.yE)(i,t,e),(0,u.yE)(r,t,e))}}class g extends y{constructor(t,e){const[i]=e.a;super(t,i),this._derivedEllipse=(0,c.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,c.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,u.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function _(t,e,i,{cx:r,cy:s,radius:n,thetaStart:o,thetaEnd:a,isInvalid:l},{maxDeviation:h,maxSegmentLength:c,maxSegmentsPerCurve:m,minSegmentsPerCurve:d}){if(l)return t.push([...i]),t;const y=2*n,p=[r+n*Math.cos(o),s+n*Math.sin(o)],g=[r+n*Math.cos(a),s+n*Math.sin(a)];(0,u.kb)(e,p)>f&&t.push(p);const _=Math.abs(a-o),x=c>0&&c<y?2*Math.asin(c/y):_,S=h>0&&h<=n?2*Math.acos(1-h/n):_,M=Math.min(x,S),b=Math.min(m,Math.max(d,Math.ceil(Math.abs(_/M)))),C=1/b;for(let e=1;e<b;e++){const i=e*C,l=o*(1-i)+a*i;t.push([r+n*Math.cos(l),s+n*Math.sin(l)])}return t.push(g),(0,u.kb)(i,g)>f&&t.push([...i]),t}function x(t,e,i,r){return new p(e,i).densify(t,r)}function S(t,e,i,r){const s=(0,a.pM)(e,i),[n]=i.c;return _(t,e,n,s,r)}function M(t,e,i,r){const s=(0,h.io)(e,i),[n]=i.a;return _(t,e,n,s,r)}function b(t,e,i,r){const[s,n,o,a,l,h,c]=i.a;return 0===h||0===c?(t.push([...s]),t):new g(e,i).densify(t,r)}function C(t,e,i,r){return(0,l.Xq)(i)?(t.push([...i]),t):(0,l.n1)(i)?x(t,e,i,r):(0,l.aO)(i)?S(t,e,i,r):(0,l.DA)(i)?M(t,e,i,r):b(t,e,i,r)}function w(t,e={}){if(!(0,l.Ed)(t))return t;const i=d(e),r=(0,l.FD)(t),s=[];for(const t of r){const e=[];for(let r=0;r<t.length-1;r++){const s=r+1,n=[...(0,l.yP)(t[r])];0===r&&e.push(n),C(e,n,t[s],i)}s.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:s,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:s,spatialReference:t.spatialReference}}const k=(0,s.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function I(t,e,s){const o=new Set(e);return await async function(t,e,s){let n=null;for(const o of t)if(o&&(0,l.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,l.V8)(o,e)){const t=o.spatialReference;if(!t)throw new r.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=P(t);if(s.has(e))o.spatialReference=s.get(e);else{n||(n=await Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1550)]).then(()=>i(78125)));const a=n.fromSpatialReference(t),l=a?.getTolerance();if(null==l)throw new r.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const h=o.spatialReference.clone();h.read({xyTolerance:l}),o.spatialReference=h,s.set(e,h)}}}(t,o,s),t.map(t=>{if(!t||!(0,l.Ed)(t))return t;const i=t.spatialReference.xyTolerance;if(null==i)return t;const r=k(i);return(0,n.rS)(function(t,e,i){if(!(0,l.Ed)(t))return t;const r=new Set(e),s=d(i),n=(0,l.FD)(t),o=[];let a=!1;for(const t of n){const e=[];for(let i=0;i<t.length-1;i++){const n=i+1,o=[...(0,l.yP)(t[i])];0===i&&e.push(o);const h=t[n];(0,l.Xq)(h)?e.push([...h]):(0,l.n1)(h)&&!r.has("cubic-bezier")?x(e,o,h,s):(0,l.aO)(h)&&!r.has("circular-arc")?S(e,o,h,s):(0,l.DA)(h)&&!r.has("elliptic-arc")?M(e,o,h,s):(0,l.wY)(h)&&!r.has("elliptic-arc")?b(e,o,h,s):(e.push((0,l.tk)(h)),a=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:o}:{rings:o}}}(t,e,r))})}function P(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},92722(t,e,i){i.d(e,{A:()=>s});var r=i(69397);class s{constructor(t=[],e=[],i=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=i,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:i,hasM:r}){return new s(t,e,i||!1,r||!1)}static fromRect([t,e,i,r]){const n=i-t,o=r-e;return new s([5],[t,e,n,0,0,o,-n,0,0,-o])}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,r.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 i of this.lengths){if(i<3)continue;const{stride:r}=this;let s=this.coords[r*e],n=this.coords[r*e+1];for(let o=1;o<i;o+=1){const i=r*(e+o),a=this.coords[i],l=this.coords[i+1];t+=-.5*(a-s)*(l+n),s=a,n=l}e+=i}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:i}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=i*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:i}=t;let r=0;const{stride:s}=this;for(const t of i){for(let i=1;i<t;i++){const t=s*(r+i);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=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:i,size:r}=this,n=this.coords.slice(0,r*i);return t?(t.set(n),new s(e,t,this.hasZ,this.hasM)):new s(e,Array.from(n),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const i=new Array(e*t);for(let e=0,r=0;e<i.length;e+=t)i[r++]=this.coords[e],i[r++]=this.coords[e+1];return new s(this.lengths,i,!1,!1)}}},49544(t,e,i){i.r(e),i.d(e,{CIMSymbolHelper:()=>mt,CIMSymbolInflatedSizeHelper:()=>ft,capTypeToEnum:()=>yt,forEachSymbolLayer:()=>dt,slsDashToTemplateArray:()=>Ct,symbolToCIM:()=>ht});var r=i(6371),s=i(4718),n=i(53966),o=i(87811),a=i(90629),l=i(19419),h=i(537),c=i(52006),u=i(31411),f=i(11831),m=i(35833),d=i(98939),y=i(57582),p=(i(44208),i(34727)),g=i(93687),_=i(36745),x=i(12359),S=(i(12176),i(60408));class M{applyColorSubstitution(t,e){if(!e)return t;this._rasterizationCanvas||(this._rasterizationCanvas=document.createElement("canvas"));const{width:i,height:r}=t,s=this._rasterizationCanvas,n=s.getContext("2d",{willReadFrequently:!0});t!==s&&(s.width=i,s.height=r,n.drawImage(t,0,0,i,r));const o=n.getImageData(0,0,i,r).data;if(e)for(const t of e)if(t&&t.oldColor&&4===t.oldColor.length&&t.newColor&&4===t.newColor.length){const[e,i,r,s]=t.oldColor,[n,a,l,h]=t.newColor;if(e===n&&i===a&&r===l&&s===h)continue;for(let t=0;t<o.length;t+=4)e===o[t]&&i===o[t+1]&&r===o[t+2]&&s===o[t+3]&&(o[t]=n,o[t+1]=a,o[t+2]=l,o[t+3]=h)}const a=new ImageData(o,i,r);return n.putImageData(a,0,0),s}tintImageData(t,e){if(!e||e.length<4)return t;this._rasterizationCanvas||(this._rasterizationCanvas=document.createElement("canvas"));const{width:i,height:r}=t,s=this._rasterizationCanvas,n=s.getContext("2d",{willReadFrequently:!0});t!==s&&(s.width=i,s.height=r,n.drawImage(t,0,0,i,r));const o=n.getImageData(0,0,i,r),a=new Uint8Array(o.data),l=[e[0]/255,e[1]/255,e[2]/255,e[3]/255];for(let t=0;t<a.length;t+=4)a[t]*=l[0],a[t+1]*=l[1],a[t+2]*=l[2],a[t+3]*=l[3];const h=new ImageData(new Uint8ClampedArray(a.buffer),i,r);return n.putImageData(h,0,0),s}}var b=i(78653),C=i(28076),w=i(75585);function k(t){const e=t.getFrame(0);if(e instanceof HTMLImageElement||e instanceof HTMLCanvasElement)return e;const i=document.createElement("canvas");i.width=t.width,i.height=t.height;const r=i.getContext("2d");return e instanceof ImageData?r.putImageData(e,0,0):r.drawImage(e,0,0),i}function I(t,e=0){if(0===e)return t;const i=Math.cos(e),r=Math.sin(e),[s,n]=t;return[s*i+n*-r,s*r+n*i]}function P(t,e=0){let i=0;for(let r=0;r<4;r++)i+=t[e+r]*T[r];return i}const T=[1/256,1/65536,1/16777216,1/4294967296];P(new Uint8ClampedArray([255,255,255,255])),P(new Uint8ClampedArray([255,255,255,0])),i(35521);const L=()=>n.A.getLogger("esri.symbols.cim.rasterizingUtils");let R;function z(t,e){const{colorRamp:i,gradientType:r}=e,s=v(i),n="CIMFixedColorRamp"===i.type;if("Continuous"===r&&!n)return A(t,s);const o=e.interval??C.D.CIMGradientFill.interval;if(n)return A(t,function(t,e){const i=[],r=(t.length-1)/(e-1);for(let s=0;s<e;s++){const n=t[Math.round(s*r)].color;i.push({offset:s/e,color:n}),i.push({offset:(s+1)/e,color:n})}return i}(s,o));const a=[];R??=document.createElement("canvas"),function(t,e,i,r,s){const n=i+2*s;t.width=n,t.height=r;const o=(s+1)/n,a=t.getContext("2d",{willReadFrequently:!0});if(e.length>0){const t=a.createLinearGradient(0,0,n,r);A(t,e,o),a.fillStyle=t}else a.fillStyle="rgba(128, 128, 128, 1)";a.fillRect(0,0,n,r)}(R,s,o,1,0);const l=R.getContext("2d").getImageData(0,0,o,1).data;for(let t=0,e=0;t<o;t++,e=4*t){const i=[l[e+0],l[e+1],l[e+2],l[e+3]];a.push({offset:t/o,color:i}),a.push({offset:(t+1)/o,color:i})}return A(t,a)}function v(t){const e=[];switch(t.type){case"CIMPolarContinuousColorRamp":case"CIMLinearContinuousColorRamp":{"CIMPolarContinuousColorRamp"===t.type&&L().warnOnce("CIMPolarContinuousColorRamp is currently unsupported. Falling back to CIMLinearContinuousColorRamp.");const i=t;e.push({offset:0,color:[i.fromColor[0],i.fromColor[1],i.fromColor[2],i.fromColor[3]/255]}),e.push({offset:1,color:[i.toColor[0],i.toColor[1],i.toColor[2],i.toColor[3]/255]});break}case"CIMFixedColorRamp":{const i=t,r=1/(i.colors.length-1);let s=0;for(const t of i.colors)e.push({offset:s,color:[t[0],t[1],t[2],t[3]/255]}),s+=r;break}case"CIMMultipartColorRamp":{const i=t,r=i.weights.reduce((t,e)=>t+e,0);let s=0;for(let t=0;t<i.colorRamps.length;t++){const n=i.colorRamps[t],o=i.weights[t],a=v(n);for(const t of a)e.push({offset:(s+t.offset*o)/r,color:t.color});s+=o}break}default:L().error(`Color ramp "${t.type}" currently unsupported.`)}return e}function A(t,e,i=0){for(const{offset:r,color:s}of e)t.addColorStop(Math.min(Math.max(r,i),1-i),`rgba(${s[0]}, ${s[1]}, ${s[2]}, ${s[3]})`)}class E{constructor(t=0,e=0,i=0,r=0){this.x=t,this.y=e,this.width=i,this.height=r}static fromExtent(t){return new E(t.xmin,-t.ymax,t.xmax-t.xmin,t.ymax-t.ymin)}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}var F=i(69754);function D(t){return`rgb(${t.slice(0,3).toString()})`}function B(t){return`rgba(${t.slice(0,3).toString()},${t[3]})`}i(5760);class U{constructor(t){t&&(this._textRasterizationCanvas=t)}rasterizeRichText(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const i=this._textRasterizationCanvas,r=i.getContext("2d",{willReadFrequently:!0}),s=this._layoutRichTextRuns(r,t,e);this._parameters=e;const{decoration:n,weight:o}=e.font,a="underline"===n?"none":n,l=a===n?e:O(e,a);this._lineHeight=Math.max(...s.map(t=>t.height),this._measureLineHeight(l)),this._lineThroughWidthOffset="line-through"===a?.1*this._lineHeight:0;const h=null!=e.backgroundColor||null!=e.borderLine,c=h?8:0,u=Math.max(...s.map(t=>t.width),0)+2*c,f=s.reduce((t,e)=>t+e.height,0)+2*c;if(i.width=u+2*this._lineThroughWidthOffset,i.height=f,0===i.width||0===i.height)return i.width=i.height=1,{size:[0,0],image:new Uint32Array(0),sdf:!1,simplePattern:!1,anchorX:0,anchorY:0,canvas:i};this._renderedWidth=u,this._renderedHeight=f,this._renderedOutlineSize=(e.outline.size||0)*e.pixelRatio,this._renderedHaloSize=(e.halo.size||0)*e.pixelRatio,this._lineThroughWidthOffset*=e.pixelRatio;const m=(e.outline&&e.outline.color)??[0,0,0,0],d=e.color??[0,0,0,0],y=e.halo&&e.halo.color?e.halo.color:[0,0,0,0];this._fillStyle=B(d),this._outlineStyle=B(m),this._haloStyle=D(y);const p=this._renderedOutlineSize,g=this._renderedHaloSize;r.save(),r.clearRect(0,0,i.width,i.height);const _=c*e.pixelRatio,x=W("left",this._renderedWidth-2*_,g+p)+_,S=g+p+_;let M=this._lineThroughWidthOffset,b=0;if(h){r.save();const t=e.backgroundColor??[0,0,0,0],s=e.borderLine?.color??[0,0,0,0],n=2*(e.borderLine?.size??0);r.fillStyle=B(t),r.strokeStyle=B(s),r.lineWidth=n,r.fillRect(0,0,i.width,i.height),r.strokeRect(0,0,i.width,i.height),r.restore()}b+=S,M+=x,g>0&&this._renderRichTextOutline(r,s,M,b,e,this._renderedHaloSize+this._renderedOutlineSize),p>0&&this._renderRichTextOutline(r,s,M,b,e,this._renderedOutlineSize);for(const t of s){let i=M;"center"===e.horizontalAlignment?i+=(this._renderedWidth-2*_-t.width)/2:"right"===e.horizontalAlignment&&(i+=this._renderedWidth-2*_-t.width-g-p);let s=i;for(const e of t.segments)G(r,e.parameters,"left",e.characterSpacing),g>0&&(r.globalCompositeOperation="destination-out",r.fillStyle="rgb(0, 0, 0)",this._renderRichTextSegment(r,e,s,b,"fill"),r.globalCompositeOperation="source-over"),r.fillStyle=B(e.parameters.color??d),this._renderRichTextSegment(r,e,s,b,"fill"),s+=e.width;for(const e of t.segments){if("underline"!==e.decoration)continue;const t=this._renderedWidth;this._renderedWidth=e.width,r.textAlign="left",this._renderDecoration(r,i+e.x,b,e.decoration,e.parameters.font.weight,void 0,e.parameters),this._renderedWidth=t}if(a&&"none"!==a){const e=this._renderedWidth;this._renderedWidth=t.width,r.textAlign="left",this._renderDecoration(r,i,b,a,o),this._renderedWidth=e}b+=t.height}r.restore();const C=this._renderedWidth+2*this._lineThroughWidthOffset,w=this._renderedHeight,k=r.getImageData(0,0,C,w),I=new Uint8Array(k.data);if(e.premultiplyColors){let t;for(let e=0;e<I.length;e+=4)t=I[e+3]/255,I[e]=I[e]*t,I[e+1]=I[e+1]*t,I[e+2]=I[e+2]*t}let P,T;switch(e.horizontalAlignment){case"left":P=-.5;break;case"right":P=.5;break;default:P=0}switch(e.verticalAlignment){case"bottom":T=-.5;break;case"top":T=.5;break;case"baseline":T=-1/6;break;default:T=0}return{size:[C,w],image:new Uint32Array(I.buffer),sdf:!1,simplePattern:!1,anchorX:P,anchorY:T,canvas:i}}rasterizeText(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const i=this._textRasterizationCanvas,r=i.getContext("2d",{willReadFrequently:!0});G(r,e),this._parameters=e,this._textLines=t.split(/\r?\n/),this._lineHeight=this._computeLineHeight();const{decoration:s,weight:n}=e.font;this._lineThroughWidthOffset=s&&"line-through"===s?.1*this._lineHeight:0;const o=null!=e.backgroundColor||null!=e.borderLine,a=o?8:0,l=this._computeTextWidth(r,e)+2*a,h=this._lineHeight*this._textLines.length+2*a;if(i.width=l+2*this._lineThroughWidthOffset,i.height=h,0===i.width||0===i.height)return i.width=i.height=1,{size:[0,0],image:new Uint32Array(0),sdf:!1,simplePattern:!1,anchorX:0,anchorY:0,canvas:i};this._renderedLineHeight=Math.round(this._lineHeight),this._renderedOutlineSize=(e.outline.size||0)*e.pixelRatio,this._renderedHaloSize=(e.halo.size||0)*e.pixelRatio,this._renderedWidth=l,this._renderedHeight=h,this._lineThroughWidthOffset*=e.pixelRatio;const c=(e.outline&&e.outline.color)??[0,0,0,0],u=e.color??[0,0,0,0],f=e.halo&&e.halo.color?e.halo.color:[0,0,0,0];this._fillStyle=B(u),this._outlineStyle=B(c),this._haloStyle=D(f);const m=this._renderedLineHeight,d=this._renderedOutlineSize,y=this._renderedHaloSize;r.save(),r.clearRect(0,0,i.width,i.height),G(r,e);const p=a*e.pixelRatio,g=W(r.textAlign,this._renderedWidth-2*p,this._renderedHaloSize+this._renderedOutlineSize)+p,_=y+d+p,x=y>0;let S=this._lineThroughWidthOffset,M=0;if(o){r.save();const t=e.backgroundColor??[0,0,0,0],s=e.borderLine?.color??[0,0,0,0],n=2*(e.borderLine?.size??0);r.fillStyle=B(t),r.strokeStyle=B(s),r.lineWidth=n,r.fillRect(0,0,i.width,i.height),r.strokeRect(0,0,i.width,i.height),r.restore()}x&&this._renderHalo(r,g,_,S,M,e),d>0&&this._renderOutline(r,g,_,S,M,e),M+=_,S+=g;for(const t of this._textLines)x?(r.globalCompositeOperation="destination-out",r.fillStyle="rgb(0, 0, 0)",r.fillText(t,S,M),r.globalCompositeOperation="source-over",r.fillStyle=this._fillStyle,r.fillText(t,S,M)):(r.fillStyle=this._fillStyle,r.fillText(t,S,M)),s&&"none"!==s&&this._renderDecoration(r,S,M,s,n),M+=m;r.restore();const b=this._renderedWidth+2*this._lineThroughWidthOffset,C=this._renderedHeight,w=r.getImageData(0,0,b,C),k=new Uint8Array(w.data);if(e.premultiplyColors){let t;for(let e=0;e<k.length;e+=4)t=k[e+3]/255,k[e]=k[e]*t,k[e+1]=k[e+1]*t,k[e+2]=k[e+2]*t}let I,P;switch(e.horizontalAlignment){case"left":I=-.5;break;case"right":I=.5;break;default:I=0}switch(e.verticalAlignment){case"bottom":P=-.5;break;case"top":P=.5;break;case"baseline":P=-1/6;break;default:P=0}return{size:[b,C],image:new Uint32Array(k.buffer),sdf:!1,simplePattern:!1,anchorX:I,anchorY:P,canvas:i}}_renderHalo(t,e,i,r,s,n){const o=this._renderedWidth,a=this._renderedHeight;this._outlineRasterizationCanvas||(this._outlineRasterizationCanvas=document.createElement("canvas")),this._outlineRasterizationCanvas.width=o,this._outlineRasterizationCanvas.height=a;const l=this._outlineRasterizationCanvas,h=l.getContext("2d");h.clearRect(0,0,o,a),G(h,n);const{decoration:c,weight:u}=n.font;h.fillStyle=this._haloStyle,h.strokeStyle=this._haloStyle,h.lineJoin="round",this._renderOutlineNative(h,e,i,c,u,this._renderedHaloSize+this._renderedOutlineSize),t.globalAlpha=this._parameters.halo.color[3],t.drawImage(l,0,0,o,a,r,s,o,a),t.globalAlpha=1}_renderOutline(t,e,i,r,s,n){const o=this._renderedWidth,a=this._renderedHeight;this._outlineRasterizationCanvas||(this._outlineRasterizationCanvas=document.createElement("canvas")),this._outlineRasterizationCanvas.width=o,this._outlineRasterizationCanvas.height=a;const l=this._outlineRasterizationCanvas,h=l.getContext("2d");h.clearRect(0,0,o,a),G(h,n);const{decoration:c,weight:u}=n.font;h.fillStyle=this._outlineStyle,h.strokeStyle=this._outlineStyle,h.lineJoin="round",this._renderOutlineNative(h,e,i,c,u,this._renderedOutlineSize),t.globalAlpha=this._parameters.outline.color[3],t.drawImage(l,0,0,o,a,r,s,o,a),t.globalAlpha=1}_renderOutlineNative(t,e,i,r,s,n){const o=this._renderedLineHeight;for(const a of this._textLines){const l=2*n,h=5,c=.1;for(let n=0;n<h;n++){const o=(1-(h-1)*c+n*c)*l;t.lineWidth=o,t.strokeText(a,e,i),r&&"none"!==r&&this._renderDecoration(t,e,i,r,s,o)}i+=o}}computeTextSize(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const i=this._textRasterizationCanvas,r=i.getContext("2d");G(r,e),this._parameters=e,this._textLines=t.split(/\r?\n/),this._lineHeight=this._computeLineHeight();const s=this._computeTextWidth(r,e),n=this._lineHeight*this._textLines.length;return i.width=s,i.height=n,[s*e.pixelRatio,n*e.pixelRatio]}computeRichTextSize(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const i=this._textRasterizationCanvas.getContext("2d"),r=this._layoutRichTextRuns(i,t,e),s=Math.max(...r.map(t=>t.width),0),n=r.reduce((t,e)=>t+e.height,0);return[s*e.pixelRatio,n*e.pixelRatio]}_renderRichTextOutline(t,e,i,r,s,n){const o=this._renderedWidth,a=this._renderedHeight;this._outlineRasterizationCanvas||(this._outlineRasterizationCanvas=document.createElement("canvas")),this._outlineRasterizationCanvas.width=o,this._outlineRasterizationCanvas.height=a;const l=this._outlineRasterizationCanvas,h=l.getContext("2d");h.clearRect(0,0,o,a),h.fillStyle=n===this._renderedOutlineSize?this._outlineStyle:this._haloStyle,h.strokeStyle=h.fillStyle,h.lineJoin="round";let c=r;for(const t of e){let e=i;"center"===s.horizontalAlignment?e+=(this._renderedWidth-t.width)/2:"right"===s.horizontalAlignment&&(e+=this._renderedWidth-t.width-this._renderedHaloSize-this._renderedOutlineSize);let r=e;for(const e of t.segments){G(h,e.parameters,"left",e.characterSpacing);const t=2*n,i=5,s=.1;for(let n=0;n<i;n++){const o=1-(i-1)*s+n*s;h.lineWidth=o*t,this._renderRichTextSegment(h,e,r,c,"stroke")}r+=e.width}for(const i of t.segments){if("underline"!==i.decoration)continue;const t=this._renderedWidth;this._renderedWidth=i.width,h.textAlign="left",this._renderDecoration(h,e+i.x,c,i.decoration,i.parameters.font.weight,2*n,i.parameters),this._renderedWidth=t}const o="underline"===s.font.decoration?"none":s.font.decoration;if(o&&"none"!==o){const i=this._renderedWidth;this._renderedWidth=t.width,h.textAlign="left",this._renderDecoration(h,e,c,o,s.font.weight,2*n),this._renderedWidth=i}c+=t.height}n===this._renderedOutlineSize?t.globalAlpha=this._parameters.outline.color[3]:t.globalAlpha=this._parameters.halo.color[3],t.drawImage(l,0,0,o,a,this._lineThroughWidthOffset,0,o,a),t.globalAlpha=1}_layoutRichTextRuns(t,e,i){const r="underline"===i.font.decoration?O(i,"none"):i,s=[{segments:[],width:0,height:this._measureLineHeight(r)}];for(const n of e){const e=n.text.split(/\r?\n/),o=N(i,n);for(let i=0;i<e.length;i++){const a=e[i],l=s[s.length-1];if(a.length>0){const e=this._measureRichTextSegmentWidth(t,a,o,n.characterSpacing);l.segments.push({text:a,width:e,x:l.width,parameters:o,characterSpacing:n.characterSpacing,decoration:o.font.decoration}),l.width+=e,l.height=Math.max(l.height,this._measureLineHeight(o))}i<e.length-1&&s.push({segments:[],width:0,height:this._measureLineHeight(r)})}}return s}_measureTextWidthWithSpacing(t,e,i,r){const s=this._parameters,n=this._textLines;this._parameters=i,this._textLines=[e],G(t,i,"left",r);const o=this._computeTextWidth(t,i);return this._parameters=s,this._textLines=n,o}_measureRichTextSegmentWidth(t,e,i,r){return this._measureTextWidthWithSpacing(t,e,i,r)}_renderRichTextSegment(t,e,i,r,s){"fill"===s?t.fillText(e.text,i,r):t.strokeText(e.text,i,r)}_measureLineHeight(t){const e=this._parameters;this._parameters=t;const i=this._computeLineHeight();return this._parameters=e,i}_computeTextWidth(t,e){let i=0;for(const e of this._textLines)i=Math.max(i,t.measureText(e).width);const r=e.font;return("italic"===r.style||"oblique"===r.style||"string"==typeof r.weight&&("bold"===r.weight||"bolder"===r.weight)||"number"==typeof r.weight&&r.weight>600)&&(i+=.3*t.measureText("w").width),i+=2*(0,a.Lz)(this._parameters.halo.size),Math.round(i)}_computeLineHeightBase(t=this._parameters){return 1.275*t.size}_computeLineHeight(){let t=this._computeLineHeightBase();const e=this._parameters.font.decoration;return e&&"underline"===e&&(t*=1.3),Math.round(t+2*(0,a.Lz)(this._parameters.halo.size))}_renderDecoration(t,e,i,r,s,n,o=this._parameters){let l=.9*this._lineHeight;const h="bold"===s?.06:"bolder"===s?.09:.04;switch(t.textAlign){case"center":e-=this._renderedWidth/2;break;case"right":e-=this._renderedWidth}const c=t.textBaseline,u=function(t){return"underline"===t?(0,a.Lz)(2):0}(r);if("underline"===r)switch(l=.9*this._computeLineHeightBase(o),c){case"top":i+=l+u;break;case"middle":i+=l/2+u}else if("line-through"===r)switch(c){case"top":i+=l/1.5;break;case"middle":i+=l/3}const f=n?1.5*n:Math.ceil(l*h);t.save(),t.beginPath(),t.strokeStyle=t.fillStyle,t.lineWidth=f,t.moveTo(e-this._lineThroughWidthOffset,i),t.lineTo(e+this._renderedWidth+2*this._lineThroughWidthOffset,i),t.stroke(),t.restore()}}function G(t,e,i,r=0){const s=Math.max(e.size,.5),n=e.font,o=`${n.style} ${n.weight} ${(0,a.Lz)(s).toFixed(1)}px ${n.family}, sans-serif`;t.font=o,t.textBaseline="top",function(t,e){t.letterSpacing=e>0?`${e}em`:"0px"}(t,r);let l=i??"left";if(!i)switch(e.horizontalAlignment){case"left":default:l="left";break;case"right":l="right";break;case"center":l="center"}t.textAlign=l}function N(t,e){return{...t,color:e.color??t.color,font:{...t.font,family:e.font.family??t.font.family,style:e.font.style??t.font.style,weight:e.font.weight??t.font.weight,decoration:e.font.decoration??t.font.decoration},size:e.fontSize}}function O(t,e){return{...t,font:{...t.font,decoration:e}}}function W(t,e,i){return"center"===t?.5*e:"right"===t?e-i:i}var H=i(93397),$=i(75434),V=i(69221);const X=Math.PI/180,q=()=>n.A.getLogger("esri.symbols.cim.CIMSymbolDrawHelper");class Y{constructor(t){this._t=t}static createIdentity(){return new Y([1,0,0,0,1,0])}clone(){const t=this._t;return new Y(t.slice())}transform(t){const e=this._t;return[e[0]*t[0]+e[1]*t[1]+e[2],e[3]*t[0]+e[4]*t[1]+e[5]]}static createScale(t,e){return new Y([t,0,0,0,e,0])}scale(t,e){const i=this._t;return i[0]*=t,i[1]*=t,i[2]*=t,i[3]*=e,i[4]*=e,i[5]*=e,this}scaleRatio(){return Math.sqrt(this._t[0]*this._t[0]+this._t[1]*this._t[1])}static createTranslate(t,e){return new Y([0,0,t,0,0,e])}translate(t,e){const i=this._t;return i[2]+=t,i[5]+=e,this}static createRotate(t){const e=Math.cos(t),i=Math.sin(t);return new Y([e,-i,0,i,e,0])}rotate(t){return Y.multiply(this,Y.createRotate(t),this)}angle(){const t=this._t[0],e=this._t[3],i=Math.sqrt(t*t+e*e);return[t/i,e/i]}static multiply(t,e,i){const r=t._t,s=e._t,n=r[0]*s[0]+r[3]*s[1],o=r[1]*s[0]+r[4]*s[1],a=r[2]*s[0]+r[5]*s[1]+s[2],l=r[0]*s[3]+r[3]*s[4],h=r[1]*s[3]+r[4]*s[4],c=r[2]*s[3]+r[5]*s[4]+s[5],u=i._t;return u[0]=n,u[1]=o,u[2]=a,u[3]=l,u[4]=h,u[5]=c,i}invert(){const t=this._t;let e=t[0]*t[4]-t[1]*t[3];if(0===e)return new Y([0,0,0,0,0,0]);e=1/e;const i=(t[1]*t[5]-t[2]*t[4])*e,r=(t[2]*t[3]-t[0]*t[5])*e,s=t[4]*e,n=-t[1]*e,o=-t[3]*e,a=t[0]*e;return new Y([s,n,i,o,a,r])}}class Z{constructor(t,e){this._resourceManager=t,this._transfos=[],this._sizeTransfos=[],this._textScaling=[],this._geomUnitsPerPoint=1,this._placementPool=new g.A(()=>new d.W,void 0,void 0,100),this._earlyReturn=!1,this._mapRotation=0,this._transfos.push(e||Y.createIdentity()),this._sizeTransfos.push(e?e.scaleRatio():1),this._textScaling.push(1)}setTransform(t,e){this._transfos=[t||Y.createIdentity()],this._sizeTransfos=[e||(t?t.scaleRatio():1)],this._textScaling=[1]}setGeomUnitsPerPoint(t){this._geomUnitsPerPoint=t}transformPt(t){return this._transfos[this._transfos.length-1].transform(t)}transformSize(t){return t*this._sizeTransfos[this._sizeTransfos.length-1]}scaleText(t){return t*this._textScaling[this._textScaling.length-1]}reverseTransformPt(t){return this._transfos[this._transfos.length-1].invert().transform(t)}reverseTransformSize(t){return t/this._sizeTransfos[this._sizeTransfos.length-1]}reverseTransformScalar(t){return t/this._transfos[this._transfos.length-1].scaleRatio()}reverseScaleText(t){return t/this._textScaling[this._textScaling.length-1]}getTransformAngle(){return this._transfos[this._transfos.length-1].angle()}geomUnitsPerPoint(){return this.isEmbedded()?1:this._geomUnitsPerPoint}prevGeomUnitsPerPoint(){return this._transfos.length>2?1:this._geomUnitsPerPoint}isEmbedded(){return this._transfos.length>1}back(){return this._transfos[this._transfos.length-1]}push(t,e=!1,i=1){const r=e?t.scaleRatio():1;Y.multiply(t,this.back(),t),this._transfos.push(t),this._sizeTransfos.push(this._sizeTransfos[this._sizeTransfos.length-1]*r),this._textScaling.push(this._textScaling[this._textScaling.length-1]*i)}pop(){this._transfos.splice(-1,1),this._sizeTransfos.splice(-1,1),this._textScaling.splice(-1,1)}drawSymbol(t,e,i){if(t)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":this.drawMultiLayerSymbol(t,e);break;case"CIMTextSymbol":this.drawTextSymbol(t,e,i)}}drawMultiLayerSymbol(t,e){if(!t||!e)return;const i=t.symbolLayers;if(!i)return;const r=t.effects;if(r&&r.length>0){const t=this.executeEffects(r,e);if(t){let e=t.next();for(;e;)this.drawSymbolLayers(i,e.asJSON()),e=t.next()}}else this.drawSymbolLayers(i,e)}executeEffects(t,e){const i=this.geomUnitsPerPoint(),r=(0,H.ll)(t);let s=new m.kT(_.z.fromJSONCIM(e));for(const n of t){const t=(0,b.A)(n);t&&(s=t.execute(s,n,{geomUnitsPerPoint:i,tileKey:null,maxInflateSize:r,scale:null,spatialReference:e.spatialReference,preventClipping:!1}))}return s}drawSymbolLayers(t,e){let i=t.length;for(;i--;){const r=t[i];if(!r||!1===r.enable)continue;const s=r.effects;if(s&&s.length>0){const t=this.executeEffects(s,e);if(t){let e=null;for(;(e=t.next())&&(this.drawSymbolLayer(r,e.asJSON()),!this._earlyReturn););}}else this.drawSymbolLayer(r,e);if(this._earlyReturn)return}}drawSymbolLayer(t,e){switch(t.type){case"CIMSolidFill":this.drawSolidFill(e,t.color,t.path);break;case"CIMHatchFill":this.drawHatchFill(e,t);break;case"CIMPictureFill":this.drawPictureFill(e,t);break;case"CIMGradientFill":this.drawGradientFill(e,t);break;case"CIMSolidStroke":this.drawSolidStroke(e,t.color,t.width,t.capStyle,t.joinStyle,t.miterLimit,t.path);break;case"CIMPictureStroke":this.drawPictureStroke(e,t);break;case"CIMGradientStroke":this.drawGradientStroke(e,t);break;case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":this.drawMarkerLayer(t,e)}}drawHatchFill(t,e){const i=function(t,e,i){let r=(0,H.$w)(t.separation,C.D.CIMHatchFill.separation)*i,s=(0,H.$w)(t.rotation);if(0===r)return null;r<0&&(r=-r);let n=0;const o=.5*r;for(;n>o;)n-=r;for(;n<-o;)n+=r;const a=(0,l.vt)();(0,h.Rg)(a,e),a[0]-=o,a[1]-=o,a[2]+=o,a[3]+=o;const c=[[a[0],a[1]],[a[0],a[3]],[a[2],a[3]],[a[2],a[1]]];for(;s>180;)s-=180;for(;s<0;)s+=180;const u=Math.cos(s*X),f=Math.sin(s*X),m=-r*f,d=r*u;let y,p,g,_;n=(0,H.$w)(t.offsetX)*i*f-(0,H.$w)(t.offsetY)*i*u,y=g=Number.MAX_VALUE,p=_=-Number.MAX_VALUE;for(const t of c){const e=t[0],i=t[1],r=u*e+f*i,s=-f*e+u*i;y=Math.min(y,r),g=Math.min(g,s),p=Math.max(p,r),_=Math.max(_,s)}g=Math.floor(g/r)*r;let x=u*y-f*g-m*n/r,S=f*y+u*g-d*n/r,M=u*p-f*g-m*n/r,b=f*p+u*g-d*n/r;const w=1+Math.round((_-g)/r),k=[];for(let t=0;t<w;t++)x+=m,S+=d,M+=m,b+=d,k.push([[x,S],[M,b]]);return{paths:k}}(e,t,this.geomUnitsPerPoint());i&&(this.pushClipPath(t),this.drawMultiLayerSymbol(e.lineSymbol,i),this.popClipPath())}drawPictureFill(t,e){}drawGradientFill(t,e){}drawPictureStroke(t,e){}drawGradientStroke(t,e){}drawMarkerLayer(t,e){const i=t.markerPlacement;if(i){const r=(0,b.c)(i);if(r){const s="CIMMarkerPlacementInsidePolygon"===i.type||"CIMMarkerPlacementPolygonCenter"===i.type&&i.clipAtBoundary;s&&this.pushClipPath(e);const n=r.execute(_.z.fromJSONCIM(e),i,this.geomUnitsPerPoint(),null);if(n){let e=null;for(;(e=n.next())&&(this.drawMarker(t,e),!this._earlyReturn););}s&&this.popClipPath()}}else{const i=this._placementPool.acquire();if((0,S.fT)(e))i.tx=e.x,i.ty=e.y,this.drawMarker(t,i);else if((0,S.Bi)(e)){const r=(0,x.l8)(e);r&&([i.tx,i.ty]=r,this.drawMarker(t,i))}else if((0,S.Rg)(e)){for(const r of e.paths)for(const e of r)if(i.tx=e[0],i.ty=e[1],this.drawMarker(t,i),this._earlyReturn)break}else for(const r of e.points)if(i.tx=r[0],i.ty=r[1],this.drawMarker(t,i),this._earlyReturn)break;this._placementPool.release(i)}}drawMarker(t,e){switch(t.type){case"CIMCharacterMarker":case"CIMPictureMarker":this.drawPictureMarker(t,e);break;case"CIMVectorMarker":this.drawVectorMarker(t,e)}}drawPictureMarker(t,e){if(!t)return;const i=this._resourceManager.getResource(t.url),r=(0,H.$w)(t.size,C.D.CIMPictureMarker.size);if(null==i||r<=0)return;const s=i.width,n=i.height;if(!s||!n)return;const o=s/n,a=(0,H.$w)(t.scaleX,1),l=Y.createIdentity(),h=t.anchorPoint;if(h){let e=h.x,i=h.y;"Absolute"!==t.anchorPointUnits&&(e*=r*o*a,i*=r),l.translate(-e,-i)}let c=(0,H.$w)(t.rotation);t.rotateClockwise&&(c=-c),this._mapRotation&&(c+=this._mapRotation),c&&l.rotate(c*X);let u=(0,H.$w)(t.offsetX),f=(0,H.$w)(t.offsetY);if(u||f){if(this._mapRotation){const t=X*this._mapRotation,e=Math.cos(t),i=Math.sin(t),r=u*i+f*e;u=u*e-f*i,f=r}l.translate(u,f)}const m=this.geomUnitsPerPoint();1!==m&&l.scale(m,m);const d=e.getAngle();d&&l.rotate(d),l.translate(e.tx,e.ty),this.push(l),this.drawImage(t,r),this.pop()}drawVectorMarker(t,e){if(!t)return;const i=t.markerGraphics;if(!i)return;const r=(0,H.$w)(t.size,C.D.CIMVectorMarker.size),s=t.frame,n=s?s.ymax-s.ymin:0,o=r&&n?r/n:1,a=Y.createIdentity();s&&a.translate(.5*-(s.xmax+s.xmin),.5*-(s.ymax+s.ymin));const l=t.anchorPoint;if(l){let e=l.x,i=l.y;"Absolute"!==t.anchorPointUnits?s&&(e*=s.xmax-s.xmin,i*=s.ymax-s.ymin):(e/=o,i/=o),a.translate(-e,-i)}1!==o&&a.scale(o,o);let h=(0,H.$w)(t.rotation);t.rotateClockwise&&(h=-h),this._mapRotation&&(h+=this._mapRotation),h&&a.rotate(h*X);let c=(0,H.$w)(t.offsetX),u=(0,H.$w)(t.offsetY);if(c||u){if(this._mapRotation){const t=X*this._mapRotation,e=Math.cos(t),i=Math.sin(t),r=c*i+u*e;c=c*e-u*i,u=r}a.translate(c,u)}const f=this.geomUnitsPerPoint();1!==f&&a.scale(f,f);const m=e.getAngle();m&&a.rotate(m),a.translate(e.tx,e.ty);const d=t.scaleSymbolsProportionally?1:o;this.push(a,t.scaleSymbolsProportionally,d);for(const t of i){t?.symbol&&t.geometry||q().error("Invalid marker graphic",t);let e=t.textString;if("number"==typeof e&&(e=e.toString()),this.drawSymbol(t.symbol,t.geometry,e),this._earlyReturn)break}this.pop()}drawTextSymbol(t,e,i){if(!t)return;if(!(0,S.fT)(e))return;if((0,H.$w)(t.height,C.D.CIMTextSymbol.height)<=0)return;const r=Y.createIdentity();let s=(0,H.$w)(t.angle);s=-s,s&&r.rotate(s*X);const n=(0,H.$w)(t.offsetX),o=(0,H.$w)(t.offsetY);(n||o)&&r.translate(n,o);const a=this.geomUnitsPerPoint();1!==a&&r.scale(a,a),r.translate(e.x,e.y),this.push(r),this.drawText(t,i),this.pop()}}class J extends Z{constructor(t,e){super(t,e),this.reset()}reset(){this._xmin=this._ymin=1/0,this._xmax=this._ymax=-1/0,this._clipCount=0}envelope(){return new E(this._xmin,this._ymin,this._xmax-this._xmin,this._ymax-this._ymin)}bounds(){return(0,l.fA)(this._xmin,this._ymin,this._xmax,this._ymax)}drawSolidFill(t){if(t&&!(this._clipCount>0))if((0,S.Bi)(t))this._processPath(t.rings,0);else if((0,S.Rg)(t))this._processPath(t.paths,0);else if((0,S.ZC)(t)){const e=Q(t);e&&this._processPath(e.rings,0)}else console.error("drawSolidFill Unexpected geometry type!")}drawSolidStroke(t,e,i){if(!t||this._clipCount>0||null==i||i<=0)return;const r=Math.max(.5*this.transformSize((0,H.$w)(i,C.D.CIMSolidStroke.width)),.25);if((0,S.Bi)(t))this._processPath(t.rings,r);else if((0,S.Rg)(t))this._processPath(t.paths,r);else if((0,S.ZC)(t)){const e=Q(t);e&&this._processPath(e.rings,r)}else console.error("drawSolidStroke unexpected geometry type!")}drawMarkerLayer(t,e){(0,S.Bi)(e)&&t.markerPlacement&&("CIMMarkerPlacementInsidePolygon"===t.markerPlacement.type||"CIMMarkerPlacementPolygonCenter"===t.markerPlacement.type&&t.markerPlacement.clipAtBoundary)?this._processPath(e.rings,0):super.drawMarkerLayer(t,e)}drawHatchFill(t,e){this.drawSolidFill(t)}drawPictureFill(t,e){this.drawSolidFill(t)}drawGradientFill(t,e){this.drawSolidFill(t)}drawPictureStroke(t,e){this.drawSolidStroke(t,null,e.width)}drawGradientStroke(t,e){this.drawSolidStroke(t,null,e.width)}pushClipPath(t){this.drawSolidFill(t),this._clipCount++}popClipPath(){this._clipCount--}drawImage(t,e){const{url:i}=t,r=(0,H.$w)(t.scaleX,1);let s=r*e,n=e;const o=this._resourceManager.getResource(i);if(null!=o){const t=o.height/o.width;s=r*(e?t>1?e:e/t:o.width),n=e?t>1?e*t:e:o.height}this._merge(this.transformPt([-s/2,-n/2]),0),this._merge(this.transformPt([-s/2,n/2]),0),this._merge(this.transformPt([s/2,-n/2]),0),this._merge(this.transformPt([s/2,n/2]),0)}drawText(t,e){if(!e||0===e.length)return;this._textRasterizer||(this._textRasterizer=new U);const i=tt(t),r=(0,F.Z)({textString:e,font:i.font,symbol:t,supportsRichText:(0,F.q)(e)});let[s,n]=r?this._textRasterizer.computeRichTextSize(r,i):this._textRasterizer.computeTextSize(e,i);s=(0,a.PN)(s),n=(0,a.PN)(n);const o=this.transformSize(1)*this.reverseTransformScalar(1);s*=o,n*=o;const l=t.horizontalAlignment??C.D.CIMTextSymbol.horizontalalignment,h=t.verticalAlignment??C.D.CIMTextSymbol.verticalalignment;let c=0;switch(l){case"Left":c=s/2;break;case"Right":c=-s/2}let u=0;switch(h){case"Bottom":u=n/2;break;case"Top":u=-n/2;break;case"Baseline":u=n/6}this._merge(this.transformPt([-s/2+c,-n/2+u]),0),this._merge(this.transformPt([-s/2+c,n/2+u]),0),this._merge(this.transformPt([s/2+c,-n/2+u]),0),this._merge(this.transformPt([s/2+c,n/2+u]),0)}_processPath(t,e){if(t)for(const i of t){const t=i?i.length:0;if(t>1){this._merge(this.transformPt(i[0]),e);for(let r=1;r<t;r++)this._merge(this.transformPt(i[r]),e)}}}_merge(t,e){t[0]-e<this._xmin&&(this._xmin=t[0]-e),t[0]+e>this._xmax&&(this._xmax=t[0]+e),t[1]-e<this._ymin&&(this._ymin=t[1]-e),t[1]+e>this._ymax&&(this._ymax=t[1]+e)}}class j extends Z{constructor(t,e,i,r){super(e,i),this._applyAdditionalRenderProps=r,this._colorSubstitutionHelper=new M,this._ctx=t}drawSolidFill(t,e){if(!t)return;if((0,S.Bi)(t))this._buildPath(t.rings,!0);else if((0,S.Rg)(t))this._buildPath(t.paths,!0);else if((0,S.ZC)(t))this._buildPath(Q(t).rings,!0);else{if(!(0,S.U9)(t))return;console.log("CanvasDrawHelper.drawSolidFill - No implementation!")}const i=this._ctx;i.fillStyle="string"==typeof e?e:"rgba("+Math.round(e[0])+","+Math.round(e[1])+","+Math.round(e[2])+","+(e[3]??255)/255+")",i.fill("evenodd")}drawSolidStroke(t,e,i,r,s,n){if(!t||!e||0===i)return;if((0,S.Bi)(t))this._buildPath(t.rings,!0);else if((0,S.Rg)(t))this._buildPath(t.paths,!1);else{if(!(0,S.ZC)(t))return void console.log("CanvasDrawHelper.drawSolidStroke isn't implemented!");this._buildPath(Q(t).rings,!0)}const o=this._ctx;o.strokeStyle="string"==typeof e?e:"rgba("+Math.round(e[0])+","+Math.round(e[1])+","+Math.round(e[2])+","+(e[3]??255)/255+")",o.lineWidth=Math.max(this.transformSize(i),.5),this._setCapStyle(r),this._setJoinStyle(s),o.miterLimit=n,o.stroke()}pushClipPath(t){if(this._ctx.save(),(0,S.Bi)(t))this._buildPath(t.rings,!0);else if((0,S.Rg)(t))this._buildPath(t.paths,!0);else{if(!(0,S.ZC)(t))return;this._buildPath(Q(t).rings,!0)}this._ctx.clip("evenodd")}popClipPath(){this._ctx.restore()}drawImage(t,e){const{colorSubstitutions:i,url:r,tintColor:s}=t,n=(0,H.$w)(t.scaleX,1),o=this._resourceManager.getResource(r);if(null==o)return;let a=e*(o.width/o.height),l=e;e||(a=o.width,l=o.height);const h=(0,H.UE)(r)||"src"in o&&(0,H.UE)(o.src);let c="getFrame"in o?k(o):o;i&&(c=this._colorSubstitutionHelper.applyColorSubstitution(c,i)),this._applyAdditionalRenderProps&&!h&&s&&(c=this._colorSubstitutionHelper.tintImageData(c,s));const u=this.transformPt([0,0]),[f,m]=this.getTransformAngle(),d=this.transformSize(1),y=this._ctx;y.save(),y.setTransform({m11:n*d*f,m12:n*d*m,m21:-d*m,m22:d*f,m41:u[0],m42:u[1]}),y.drawImage(c,-a/2,-l/2,a,l),y.restore()}drawText(t,e){if(!e||0===e.length)return;this._textRasterizer||(this._textRasterizer=new U);const i=tt(t,this.transformSize((0,a.PN)(1))),r=(0,F.Z)({textString:e,font:i.font,symbol:t,supportsRichText:(0,F.q)(e)}),s=r?this._textRasterizer.rasterizeRichText(r,i):this._textRasterizer.rasterizeText(e,i);if(!s)return;const{size:n,anchorX:o,anchorY:l,canvas:h}=s,c=n[0]*(o+.5),u=n[1]*(l-.5),f=this._ctx,m=this.transformPt([0,0]),[d,y]=this.getTransformAngle();f.save(),f.setTransform({m11:1*d,m12:1*y,m21:-1*y,m22:1*d,m41:m[0]-1*c,m42:m[1]+1*u}),f.drawImage(h,0,0),f.restore()}drawPictureFill(t,e){if(!t)return;let{colorSubstitutions:i,height:r,offsetX:s,offsetY:n,rotation:o,scaleX:a,tintColor:l,url:h}=e;const c=this._resourceManager.getResource(h);if(null==c)return;if((0,S.Bi)(t))this._buildPath(t.rings,!0);else if((0,S.Rg)(t))this._buildPath(t.paths,!0);else if((0,S.ZC)(t))this._buildPath(Q(t).rings,!0);else{if(!(0,S.U9)(t))return;console.log("CanvasDrawHelper.drawPictureFill - No implementation!")}const u=this._ctx,f=(0,H.UE)(h)||"src"in c&&(0,H.UE)(c.src);let m,d="getFrame"in c?k(c):c;if(i&&(d=this._colorSubstitutionHelper.applyColorSubstitution(d,i)),this._applyAdditionalRenderProps){f||l&&(d=this._colorSubstitutionHelper.tintImageData(d,l)),m=u.createPattern(d,"repeat");const t=this.transformSize(1);o||(o=0),s?s*=t:s=0,n?n*=t:n=0,r&&(r*=t);const e=r?r/c.height:1,i=a&&r?a*r/c.width:1;if(0!==o||1!==e||1!==i||0!==s||0!==n){const t=new DOMMatrix;t.rotateSelf(0,0,-o).translateSelf(s,n).scaleSelf(i,e,1),m.setTransform(t)}}else m=u.createPattern(d,"repeat");u.save(),u.fillStyle=m,u.fill("evenodd"),u.restore()}drawPictureStroke(t,e){if(!t)return;let{colorSubstitutions:i,capStyle:r,joinStyle:n,miterLimit:o,tintColor:l,url:h,width:c}=e;const u=this._resourceManager.getResource(h);if(null==u)return;let f;if((0,S.Bi)(t))f=t.rings;else if((0,S.Rg)(t))f=t.paths;else{if(!(0,S.ZC)(t))return(0,S.U9)(t)?void console.log("CanvasDrawHelper.drawPictureStroke - No implementation!"):void 0;f=Q(t).rings}c||(c=u.width);const m=(0,H.UE)(h)||"src"in u&&(0,H.UE)(u.src);let d="getFrame"in u?k(u):u;i&&(d=this._colorSubstitutionHelper.applyColorSubstitution(d,i)),this._applyAdditionalRenderProps&&(m||l&&(d=this._colorSubstitutionHelper.tintImageData(d,l)));const y=Math.max(this.transformSize((0,a.Lz)(c)),.5),p=y/d.width,g=this._ctx,_=g.createPattern(d,"repeat-y");let x,M;g.save(),this._setCapStyle(r),this._setJoinStyle(n),void 0!==o&&(g.miterLimit=o),g.lineWidth=y;for(let t of f)if(t=(0,s.o8)(t),et(t),t&&!(t.length<=1)){x=this.transformPt(t[0]);for(let e=1;e<t.length;e++){M=this.transformPt(t[e]);const i=K(x,M),r=new DOMMatrix;r.translateSelf(0,x[1]-y/2).scaleSelf(p,p,1).rotateSelf(0,0,90-i),_.setTransform(r),g.strokeStyle=_,g.beginPath(),g.moveTo(x[0],x[1]),g.lineTo(M[0],M[1]),g.stroke(),x=M}}g.restore()}drawGradientFill(t,e){if(!t)return;let i;if((0,S.Bi)(t))i=t.rings;else if((0,S.Rg)(t))i=t.paths;else{if(!(0,S.ZC)(t))return void q().error("Unable to draw gradient fill");i=Q(t).rings}this._buildPath(i,!0);const{angle:r,gradientMethod:s,gradientSize:n,gradientSizeUnits:o}=e,h=C.D.CIMGradientFill,c=e.gradientType??h.gradientType,u=-(0,p.kU)(r??0),f=(0,l.Ie)();for(const t of i){const e=t?t.length:0;if(e>1)for(let i=0;i<e;i++){let e=this.transformPt(t[i]);"Linear"!==s&&"Rectangular"!==s||(e=I(e,-u)),(0,l.tK)(f,e)}}const[m,d,y,g]=f,_=this._ctx;switch(_.save(),s){case"Buffered":q().error(`Gradient method "${s}" currently unsupported.`);break;case"Linear":{const t=(d+g)/2,i="Absolute"===o?this.transformSize((0,a.Lz)(n)):(0,H.yX)(n,h.gradientSize)*(y-m),[r,s]="Discrete"===c?[y,y-i]:[m+i,m],l=I([r,t],u),f=I([s,t],u),p=_.createLinearGradient(l[0],l[1],f[0],f[1]);z(p,e),_.fillStyle=p,_.fill("evenodd");break}case"Circular":{const t=(0,l.gX)(f),i=(0,l.ib)(f)/2,r="Absolute"===o?this.transformSize((0,a.Lz)(n)):(0,H.yX)(n,h.gradientSize)*i,[s,u]="Discrete"===c?[i,i-r]:[r,0],m=_.createRadialGradient(t[0],t[1],s,t[0],t[1],u);z(m,e),_.fillStyle=m,_.fill("evenodd");break}case"Rectangular":{const i=(0,l.gX)(f),r=i[0],s=i[1],p=I(i,u),x=(i,r,s,n,o,a,l,h)=>{_.save(),this.pushClipPath(t);const c=I([o,a],u),f=I([l,h],u);_.beginPath(),_.moveTo(p[0],p[1]),_.lineTo(c[0],c[1]),_.lineTo(f[0],f[1]),_.lineTo(p[0],p[1]),_.clip();const m=I([i,r],u),d=I([s,n],u),y=_.createLinearGradient(m[0],m[1],d[0],d[1]);z(y,e),_.fillStyle=y,_.fill("evenodd"),_.restore()};let S="Absolute"===o?this.transformSize((0,a.Lz)(n)):(0,H.yX)(n,h.gradientSize)*((0,l.VL)(f)/2),[M,b]="Discrete"===c?[y,y-S]:[r+S,r];x(M,s,b,s,y,d,y,g),[M,b]="Discrete"===c?[m,m+S]:[r-S,r],x(M,s,b,s,m,g,m,d),S="Absolute"===o?this.transformSize((0,a.Lz)(n)):(0,H.yX)(n,h.gradientSize)*((0,l.uJ)(f)/2);let[C,w]="Discrete"===c?[g,g-S]:[s+S,s];x(r,C,r,w,y,g,m,g),[C,w]="Discrete"===c?[d,d+S]:[s-S,s],x(r,C,r,w,m,d,y,d);break}}_.restore()}drawGradientStroke(t,e){const{capStyle:i,gradientMethod:r,gradientSize:n,gradientSizeUnits:o,joinStyle:l,miterLimit:h,width:c}=e;if(!t||0===c)return;let u;if((0,S.Bi)(t))u=t.rings;else if((0,S.Rg)(t))u=t.paths;else{if(!(0,S.ZC)(t))return void q().error("Unable to draw gradient stroke");u=Q(t).rings}const f=e.gradientType??C.D.CIMGradientStroke.gradientType,m=Math.max(this.transformSize((0,a.Lz)(c)),.5),d=this._ctx;let y,p;d.save(),this._setCapStyle(i),this._setJoinStyle(l),void 0!==h&&(d.miterLimit=h),d.lineWidth=m;for(let t of u){if(t=(0,s.o8)(t),et(t),!t||t.length<=1)continue;let i=0;y=this.transformPt(t[0]);for(let e=1;e<t.length;e++){p=this.transformPt(t[e]);const r=p[0]-y[0],s=p[1]-y[1];i+=Math.sqrt(r*r+s*s),y=p}const l="Absolute"===o?this.transformSize((0,a.Lz)(n)):(0,H.yX)(n,C.D.CIMGradientStroke.gradientSize)*("AcrossLine"===r?m:i);let h=0;y=this.transformPt(t[0]);for(let s=1;s<t.length;s++){p=this.transformPt(t[s]);const n=p[0]-y[0],o=p[1]-y[1],a=Math.sqrt(n*n+o*o);let c,u,g,_;switch(r){case"AcrossLine":{const[t,e]=I([n/a,o/a],-Math.PI/2),i=m/2,r="Discrete"===f?i:l-i;c=(y[0]+p[0])/2+t*r,u=(y[1]+p[1])/2+e*r,g=c-t*l,_=u-e*l;break}case"AlongLine":{const t=n/a,e=o/a;"Discrete"===f?(c=y[0]-t*h,u=y[1]-e*h,g=c+t*l,_=u+e*l):(g=y[0]+t*(i-h),_=y[1]+e*(i-h),c=g-t*l,u=_-e*l);break}default:return q().error("Unrecognized gradient method:",r),void d.restore()}const x=d.createLinearGradient(c,u,g,_);z(x,e),d.strokeStyle=x,d.beginPath(),d.moveTo(y[0],y[1]),d.lineTo(p[0],p[1]),d.stroke(),h+=a,y=p}}d.restore()}_buildPath(t,e){const i=this._ctx;if(i.beginPath(),t)for(const r of t){const t=r?r.length:0;if(t>1){let s=this.transformPt(r[0]);i.moveTo(s[0],s[1]);for(let e=1;e<t;e++)s=this.transformPt(r[e]),i.lineTo(s[0],s[1]);e&&i.closePath()}}}_setCapStyle(t){switch(t){case"Butt":this._ctx.lineCap="butt";break;case"Round":this._ctx.lineCap="round";break;case"Square":this._ctx.lineCap="square"}}_setJoinStyle(t){switch(t){case"Bevel":this._ctx.lineJoin="bevel";break;case"Round":this._ctx.lineJoin="round";break;case"Miter":this._ctx.lineJoin="miter"}}}function K(t,e){const i=e[0]-t[0],r=e[1]-t[1];return 180/Math.PI*Math.atan2(r,i)}const Q=t=>t?{spatialReference:t.spatialReference,rings:[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]]}:null;function tt(t,e=1){const i=(0,H.DW)(t),r=(0,w._)(t.fontStyleName),s=t.fontFamilyName??y.Vb,{weight:n,style:o}=r,a=e*(t.height||5),l=(0,H.Bu)(t.horizontalAlignment),h=(0,H.Nl)(t.verticalAlignment),c=(0,H.pM)(t),u=(0,H.pM)(t.haloSymbol),f=null!=u?e*(t.haloSize??0):0,m=(0,H._1)(t.symbol),d=e*((0,H.xo)(t.symbol)||0),p="CIMBackgroundCallout"===t.callout?.type?t.callout.backgroundSymbol:null,g=(0,H.pM)(p),_=(0,H.xo)(p),x=(0,H._1)(p);return{color:c,size:a,horizontalAlignment:l,verticalAlignment:h,font:{family:s,style:(0,H.pV)(o),weight:(0,H.Kn)(n),decoration:i},outline:{size:d||0,color:m},halo:{size:f||0,color:u,style:o},backgroundColor:g,borderLine:null!=_&&null!=x?{size:_,color:x}:null,pixelRatio:1,premultiplyColors:!0}}function et(t){let e,i,r,s,n,o=t[0],a=1;for(;a<t.length;)e=t[a][0]-o[0],i=t[a][1]-o[1],s=0!==e?i/e:Math.PI/2,void 0!==r&&Math.abs(s-r)<=1e-4?(t.splice(a-1,1),o=n):(n=o,o=t[a],a++),r=s}var it=i(59868),rt=i(13195);const st=Math.PI,nt=st/2,ot=Math.PI/180,at=96/72,lt=()=>n.A.getLogger("esri.symbols.cim.CIMSymbolHelper");function ht(t){let e;switch(t.type){case"cim":return t.data;case"web-style":return t;case"simple-marker":{const i=mt.fromSimpleMarker(t);if(!i)throw new Error("InternalError: Cannot convert symbol to CIM");e=i;break}case"picture-marker":e=mt.fromPictureMarker(t);break;case"simple-line":e=mt.fromSimpleLineSymbol(t);break;case"simple-fill":e=mt.fromSimpleFillSymbol(t);break;case"picture-fill":e=mt.fromPictureFillSymbol(t);break;case"text":e=mt.fromTextSymbol(t)}return{type:"CIMSymbolReference",symbol:e}}function ct(t,e,i){switch(e.type){case"CIMSymbolReference":return ct(t,e.symbol,i);case"CIMPointSymbol":null==i&&(i={x:0,y:0}),t.drawSymbol(e,i);break;case"CIMLineSymbol":null==i&&(i={paths:[[[0,0],[10,0]]]}),t.drawSymbol(e,i);break;case"CIMPolygonSymbol":null==i&&(i={rings:[[[0,0],[0,10],[10,10],[10,0],[0,0]]]}),t.drawSymbol(e,i);break;case"CIMTextSymbol":{const i={x:0,y:0};t.drawSymbol(e,i);break}case"CIMVectorMarker":{const i=new d.W;t.drawMarker(e,i);break}}return t.envelope()}function ut(t){if(!t)return 0;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAtExtremities":case"CIMMarkerPlacementAtMeasuredUnits":case"CIMMarkerPlacementAtRatioPositions":case"CIMMarkerPlacementOnLine":case"CIMMarkerPlacementOnVertices":return Math.abs(t.offset??0);default:return 0}}class ft{static getSymbolInflateSize(t,e,i,r,s){return t||(t=[0,0,0,0]),e?this._getInflateSize(t,e,i,r,s):t}static safeSize(t){const e=Math.max(Math.abs(t[0]),Math.abs(t[2])),i=Math.max(Math.abs(t[1]),Math.abs(t[3]));return Math.sqrt(e*e+i*i)}static getPointSymbolHaloPadding(t,e){const i=(0,H.$w)(t.haloSize);if(i<=0||!t.haloSymbol?.symbolLayers?.some(t=>!1!==t.enable))return 0;const r=this.getSymbolInflateSize([0,0,0,0],t.haloSymbol,e,0,null);return i+this.safeSize(r)}static _vectorMarkerBounds(t,e,i,r){let s=!0;const n=(0,l.vt)();if(e?.markerGraphics)for(const o of e.markerGraphics){const e=[0,0,0,0];o.geometry&&((0,h.Rg)(n,o.geometry),e[0]=0,e[1]=0,e[2]=0,e[3]=0,this.getSymbolInflateSize(e,o.symbol,i,0,r),n[0]+=e[0],n[1]+=e[1],n[2]+=e[2],n[3]+=e[3],s?(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],s=!1):(t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.max(t[2],n[2]),t[3]=Math.max(t[3],n[3])))}return t}static _getInflateSize(t,e,i,r,s){if(function(t){return void 0!==t.symbolLayers}(e)){const n=this._getLayersInflateSize(t,e.symbolLayers,i,r,s),o=(0,H.ll)(e.effects);if(o>0&&(n[0]-=o,n[1]-=o,n[2]+=o,n[3]+=o),"CIMPointSymbol"===e.type){const t=this.getPointSymbolHaloPadding(e,i);t>0&&(n[0]-=t,n[1]-=t,n[2]+=t,n[3]+=t)}return n}return this._getTextInflatedSize(t,e,s)}static _getLayersInflateSize(t,e,i,r,s){let n=!0;if(!e)return t;for(const o of e){if(!o)continue;let e=[0,0,0,0];switch(o.type){case"CIMSolidFill":case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":break;case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const t=o;let i=t.width;null!=i&&("Square"===t.capStyle||"Miter"===t.joinStyle?i/=1.4142135623730951:i/=2,e[0]=-i,e[1]=-i,e[2]=i,e[3]=i);break}case"CIMCharacterMarker":case"CIMVectorMarker":case"CIMPictureMarker":{const t=o;if("CIMVectorMarker"===o.type){const t=o;if(e=this._vectorMarkerBounds(e,t,i,s),t.frame){const i=(t.frame.xmin+t.frame.xmax)/2,r=(t.frame.ymin+t.frame.ymax)/2;if(e[0]-=i,e[1]-=r,e[2]-=i,e[3]-=r,null!=t.size){const i=t.size/(t.frame.ymax-t.frame.ymin);e[0]*=i,e[1]*=i,e[2]*=i,e[3]*=i}}}else if("CIMPictureMarker"===o.type){const r=o,s=i.getResource(r.url);let n=1;if(null!=s&&s.height&&(n=s.width/s.height),null!=t.size){const i=t.size/2,s=t.size*n*(r.scaleX??1)/2;e=[-s,-i,s,i]}}else if(null!=t.size){const i=t.size/2;e=[-i,-i,i,i]}if(t.anchorPoint){let i,r;"Absolute"===t.anchorPointUnits?(i=t.anchorPoint.x,r=t.anchorPoint.y):(i=t.anchorPoint.x*(e[2]-e[0]),r=t.anchorPoint.y*(e[3]-e[1]));const s=1.25*Math.sqrt(i*i+r*r);e[0]-=s,e[1]-=s,e[2]+=s,e[3]+=s}let n=(0,H.$w)(t.rotation);if(t.rotateClockwise&&(n=-n),r&&(n-=r),n){const t=ot*n,i=Math.cos(t),r=Math.sin(t),s=(0,l.vt)([rt.MG,rt.MG,-rt.MG,-rt.MG]);(0,l.tK)(s,[e[0]*i-e[1]*r,e[0]*r+e[1]*i]),(0,l.tK)(s,[e[0]*i-e[3]*r,e[0]*r+e[3]*i]),(0,l.tK)(s,[e[2]*i-e[1]*r,e[2]*r+e[1]*i]),(0,l.tK)(s,[e[2]*i-e[3]*r,e[2]*r+e[3]*i]),e=s}let a=(0,H.$w)(t.offsetX),h=(0,H.$w)(t.offsetY);if(r){const t=ot*r,e=Math.cos(t),i=Math.sin(t),s=a*i+h*e;a=a*e-h*i,h=s}e[0]+=a,e[1]+=h,e[2]+=a,e[3]+=h;const c=ut(t.markerPlacement);c>0&&(e[0]-=c,e[1]-=c,e[2]+=c,e[3]+=c);break}}const a=(0,H.ll)(o.effects);a>0&&(e[0]-=a,e[1]-=a,e[2]+=a,e[3]+=a),n?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],n=!1):(t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3]))}return t}static _getTextInflatedSize(t,e,i){const r=(0,V.hV)(e.height??C.D.CIMTextSymbol.height);if(t[0]=-r/2,t[1]=-r/2,t[2]=r/2,t[3]=r/2,!i)return t;const s=i.get(e);if(!s)return t;if(!function(t){return"glyphs"===t.type?t.glyphs.length>0:t.runs.some(t=>t.glyphs.glyphs.length>0)}(s.glyphMosaicItems))return t;const{lineGapType:n,lineGap:o}=e,a=n?((t,e,i)=>{switch(t){case"ExtraLeading":return 1+e/i;case"Multiple":return e;case"Exact":return e/i}})(n,o??0,r):0,l=e.horizontalAlignment??C.D.CIMTextSymbol.horizontalalignment,h=e.verticalAlignment??C.D.CIMTextSymbol.verticalalignment,c="CIMBackgroundCallout"===e.callout?.type,u=(0,$.tA)(s.glyphMosaicItems,{scale:r/24,angle:(0,H.$w)(e.angle),xOffset:(0,H.$w)(e.offsetX),yOffset:(0,H.$w)(e.offsetY),horizontalAlignment:l,verticalAlignment:h,maxLineWidth:(0,V.Lu)(e.lineWidth),lineHeight:29*Math.max(.25,Math.min(a||1,4)),decoration:e.font.decoration||"none",useCIMAngleBehavior:!0,hasBackground:c}).boundsT,f=Math.sqrt(u.width*u.width+u.height*u.height);return t[0]-=u.x+f,t[1]-=u.y-f,t[2]+=u.x+f,t[3]+=-u.y+f,t}}class mt{static getEnvelope(t,e,i,r){if(!t)return null;const s=new J(i,r);if(Array.isArray(t)){let i;for(const r of t)i?i.union(ct(s,r,e)):i=ct(s,r,e);return i}return ct(s,t,e)}static expandEnvelopeForPointSymbolHalo(t,e,i,r=0){const s=ft.getPointSymbolHaloPadding(e,i);if(s<=0)return;const n=s+r;t.x-=n,t.y-=n,t.width+=2*n,t.height+=2*n}static getTextureInfo(t,e,i,r,s,n=0){const o=r??this.getEnvelope(t,null,e);if(!o)return[0,0,0,0,1];const a=Math.max(o.width,o.height)*at;let l=null!=s?Math.max(s/a,1):1;l*=at,o.x*=l,o.y*=l,o.width*=l,o.height*=l,o.width=Math.max(Math.ceil(o.x+o.width)-Math.floor(o.x),1)-1,o.height=Math.max(Math.ceil(o.y+o.height)-Math.floor(o.y),1)-1;let h=o.x+.5*o.width,c=o.y+.5*o.height;if(h+=o.x-Math.floor(o.x),c+=o.y-Math.floor(o.y),!r){const t=Math.ceil(n*l);o.width+=i+2*t,o.height+=i+2*t,h+=i/2,c+=i/2}return[o.width,o.height,h,c,l]}static getTextureAnchor(t,e,i,r=0){const[s,n,o,a,l]=this.getTextureInfo(t,e,2,null,i,r);return[-o/s,-a/n,n/l*at]}static rasterize(t,e,i,r,s=!0,n,o=0){const[a,l,h,c,u]=this.getTextureInfo(e,r,2,i,n,o);t.width=a,t.height=l;const f=t.getContext("2d",{willReadFrequently:!0}),m=Y.createScale(u,-u);m.translate(.5*a-h,.5*l+c);const y=new j(f,r,m);switch(e.type){case"CIMPointSymbol":{const t={type:"point",x:0,y:0};y.drawSymbol(e,t);break}case"CIMVectorMarker":{const t=new d.W;y.drawMarker(e,t);break}}const p=f.getImageData(0,0,t.width,t.height),g=new Uint8Array(p.data);if(s){let t;for(let e=0;e<g.length;e+=4)t=g[e+3]/255,g[e]=g[e]*t,g[e+1]=g[e+1]*t,g[e+2]=g[e+2]*t}return[g,t.width,t.height,-h/a,-c/l,u]}static fromTextSymbol(t){const{text:e}=t;return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:10,billboardMode3D:"FaceNearPlane",frame:{xmin:-5,ymin:-5,xmax:5,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{x:0,y:0},symbol:mt.createCIMTextSymbolfromTextSymbol(t),textString:e}],scaleSymbolsProportionally:!0,respectFrame:!0}],scaleX:1,angleAlignment:"Display"}}static fromPictureFillSymbol(t){const{height:e,outline:i,width:r,xoffset:s,xscale:n,yoffset:o,yscale:a}=t,l=[],h={type:"CIMPolygonSymbol",symbolLayers:l};if(i){const t=It(i);t&&l.push(t)}let c=t.url;"esriPFS"===t.type&&t.imageData&&(c=t.imageData);const u="angle"in t?t.angle??0:0,f=(r??0)*(n||1),m=(e??0)*(a||1);return l.push({type:"CIMPictureFill",enable:!0,invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:c,height:m,width:f,offsetX:(0,H.$w)(s),offsetY:(0,H.$w)(o),rotation:(0,H.$w)(-u),colorSubstitutions:null}),h}static fromSimpleFillSymbol(t){const{color:e,style:i,outline:r}=t,n=[],o={type:"CIMPolygonSymbol",symbolLayers:n};if(r){const t=It(r);t&&n.push(t)}if(i&&"solid"!==i&&"none"!==i&&"esriSFSSolid"!==i&&"esriSFSNull"!==i){const t={type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",color:xt(e),capStyle:"Butt",joinStyle:"Miter",width:.75}]};let r=0;const o=(0,a.PN)(kt(i)?8:10);switch(i){case"vertical":case"esriSFSVertical":r=90;break;case"forward-diagonal":case"esriSFSForwardDiagonal":case"diagonal-cross":case"esriSFSDiagonalCross":r=-45;break;case"backward-diagonal":case"esriSFSBackwardDiagonal":r=45;break;case"cross":case"esriSFSCross":r=0}n.push({type:"CIMHatchFill",lineSymbol:t,offsetX:0,offsetY:0,rotation:r,separation:o}),"cross"===i||"esriSFSCross"===i?n.push({type:"CIMHatchFill",lineSymbol:(0,s.o8)(t),offsetX:0,offsetY:0,rotation:90,separation:o}):"diagonal-cross"!==i&&"esriSFSDiagonalCross"!==i||n.push({type:"CIMHatchFill",lineSymbol:(0,s.o8)(t),offsetX:0,offsetY:0,rotation:45,separation:o})}else!i||"solid"!==i&&"esriSFSSolid"!==i||n.push({type:"CIMSolidFill",enable:!0,color:xt(e)});return o}static fromSimpleLineSymbol(t){const{cap:e,color:i,join:r,marker:s,miterLimit:n,style:o,width:a}=t;let l=null;"solid"!==o&&"none"!==o&&"esriSLSSolid"!==o&&"esriSLSNull"!==o&&(l=[{type:"CIMGeometricEffectDashes",dashTemplate:Ct(o,e),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]);const h=[];if(s){let t;switch(s.placement){case"begin-end":t="Both";break;case"begin":t="JustBegin";break;case"end":t="JustEnd";break;default:t="None"}const e=mt.fromSimpleMarker(s,a,i).symbolLayers[0];e.markerPlacement={type:"CIMMarkerPlacementAtExtremities",placePerPart:!1,angleToLine:!0,keepUpright:!1,offset:0,extremityPlacement:t,offsetAlongLine:0},h.push(e)}return h.push({type:"CIMSolidStroke",color:"none"!==o&&"esriSLSNull"!==o?xt(i):[0,0,0,0],capStyle:yt(e),joinStyle:pt(r),miterLimit:n,width:a,effects:l}),{type:"CIMLineSymbol",symbolLayers:h}}static fromPictureMarker(t){const{angle:e,height:i,width:r,xoffset:s,yoffset:n}=t;let o=t.url;return"esriPMS"===t.type&&t.imageData&&(o=t.imageData),{type:"CIMPointSymbol",symbolLayers:[{type:"CIMPictureMarker",invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:o,size:i,width:r,offsetX:(0,H.$w)(s),offsetY:(0,H.$w)(n),rotation:(0,H.$w)(-e)}]}}static createCIMTextSymbolfromTextSymbol(t){const{angle:e,color:i,font:s,haloColor:n,haloSize:o,horizontalAlignment:a,kerning:l,lineWidth:h,text:c,verticalAlignment:u,xoffset:f,yoffset:m,backgroundColor:d,borderLineColor:y,borderLineSize:p}=t;let g,_,x,S,M,b;s&&(g=s.family,_=s.style,x=s.weight,S=s.size,M=s.decoration);let C=!1;return c&&(C=(0,r.y)(c)[1]),(d||p)&&(b={type:"CIMBackgroundCallout",margin:null,backgroundSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:xt(d)},{type:"CIMSolidStroke",enable:!0,color:xt(y),width:p??0}]},accentBarSymbol:null,gap:null,leaderLineSymbol:null,lineStyle:null}),{type:"CIMTextSymbol",angle:e,blockProgression:2,depth3D:1,extrapolateBaselines:!0,fontEffects:0,fontEncoding:1,fontFamilyName:g||"Arial",fontStyleName:St(_,x),fontType:0,haloSize:o,height:S,hinting:1,horizontalAlignment:gt(a??"center"),kerning:l,letterWidth:100,ligatures:!0,lineGapType:"Multiple",lineWidth:h,offsetX:(0,H.$w)(f),offsetY:(0,H.$w)(m),strikethrough:"line-through"===M,underline:"underline"===M,symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:xt(i)}]},haloSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:xt(n)}]},shadowColor:[0,0,0,255],shadowOffsetX:1,shadowOffsetY:1,textCase:"Normal",textDirection:C?1:0,verticalAlignment:_t(u??"baseline"),verticalGlyphOrientation:0,wordSpacing:100,billboardMode3D:2,callout:b}}static createPictureMarkerRasterizationParam(t){const{angle:e,height:i,width:r,xoffset:s,yoffset:n}=t,o=t.url??t.source?.url??t.source?.imageData;return o?{type:"sprite-rasterization-param",overrides:[],resource:{type:"CIMPictureMarker",enable:!0,invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:o,size:i,width:r,offsetX:(0,H.$w)(s),offsetY:(0,H.$w)(n),rotation:(0,H.$w)(-e)}}:null}static createPictureFillRasterizationParam(t){const{width:e,height:i,xoffset:r,yoffset:s,url:n}=t;return n?{type:"sprite-rasterization-param",overrides:[],resource:{type:"CIMPictureFill",enable:!0,scaleX:1,textureFilter:"Picture",tintColor:null,url:n,width:e,height:i,offsetX:(0,H.$w)(r),offsetY:(0,H.$w)(s),rotation:0}}:null}static fromSimpleMarker(t,e,i){const{style:r}=t,s=t.color??i;if("path"===r||"esriSMSPath"===r){const e=[];if("outline"in t&&t.outline){const i=t.outline;e.push({type:"CIMSolidStroke",enable:!0,width:i.width,color:xt(i.color),path:t.path})}e.push({type:"CIMSolidFill",enable:!0,color:xt(s),path:t.path});const[i,r]=wt("square");return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:-(0,H.$w)(t.angle),size:(0,H.$w)(t.size||6),offsetX:(0,H.$w)(t.xoffset),offsetY:(0,H.$w)(t.yoffset),scaleSymbolsProportionally:!1,frame:i,markerGraphics:[{type:"CIMMarkerGraphic",geometry:r,symbol:{type:"CIMPolygonSymbol",symbolLayers:e}}]}]}}const n=[];let o,a,l=t.size;if("outline"in t&&t.outline&&"none"!==t.outline.style&&"esriSLSNull"!==t.outline.style){const e=t.outline,i="solid"!==e.style&&"esriSLSSolid"!==e.style;[o,a]=i?wt(r,t.size):wt(r);const s=e.width??it.A7.width;if(i){const e=s/t.size,i=(o.xmax-o.xmin)*e/2,r=(o.ymax-o.ymin)*e/2;o.xmin-=i,o.xmax+=i,o.ymin-=r,o.ymax+=r,l&&(l+=s)}const h="cross"!==t.style&&"x"!==t.style||"dot"===t?.outline.style||"short-dot"===t?.outline.style?"HalfGap":"FullPattern",c=i?[{type:"CIMGeometricEffectAddControlPoints"},{type:"CIMGeometricEffectDashes",dashTemplate:Ct(e.style,null).map(t=>e.width&&e.width>0?t*e.width:t),lineDashEnding:h,controlPointEnding:"FullPattern"}]:void 0;n.push({type:"CIMSolidStroke",capStyle:i?"Round":"Butt",enable:!0,width:s,color:xt(e.color),effects:c})}else!e||"line-marker"!==t.type||"cross"!==t.style&&"x"!==t.style?[o,a]=wt(r):([o,a]=wt(r),n.push({type:"CIMSolidStroke",enable:!0,width:e,color:xt(s)}));n.push({type:"CIMSolidFill",enable:!0,color:xt(s)});const h={type:"CIMPolygonSymbol",symbolLayers:n};return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:(0,H.$w)(-t.angle),size:(0,H.$w)(l||6*e),offsetX:(0,H.$w)(t.xoffset),offsetY:(0,H.$w)(t.yoffset),scaleSymbolsProportionally:!1,frame:o,markerGraphics:[{type:"CIMMarkerGraphic",geometry:a,symbol:h}]}]}}static fromCIMHatchFill(t,e){const i=e*(t.separation??C.D.CIMHatchFill.separation),r=i/2,n=(0,s.o8)(t.lineSymbol);n.symbolLayers?.forEach(t=>{switch(t.type){case"CIMSolidStroke":null!=t.width&&(t.width*=e),t.effects?.forEach(t=>{if("CIMGeometricEffectDashes"===t.type){const i=t.dashTemplate;t.dashTemplate=i?.map(t=>t*e)}});break;case"CIMVectorMarker":{null!=t.size&&(t.size*=e);const i=t.markerPlacement;null!=i&&"placementTemplate"in i&&(i.placementTemplate=i.placementTemplate.map(t=>t*e));break}}});let o=this._getLineSymbolPeriod(n)||4;for(;o<4;)o*=2;const a=o/2;return{type:"CIMVectorMarker",enable:!0,frame:{xmin:-a,xmax:a,ymin:-r,ymax:r},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{paths:[[[-a,0],[a,0]]]},symbol:n}],size:i}}static async normalizeSymbolAndFetchResources(t,e,i=null){if(!t)return;const r=[];if("effects"in t&&t.effects)for(const e of t.effects)r.push((0,m.ai)(e));r.push(n(t));const s=t=>{if(t.effects)for(const e of t.effects)r.push((0,m.ai)(e));if("CIMVectorMarker"===t.type){for(const e of t.markerGraphics)(0,c.Ed)(e.geometry)&&(e.geometry=(0,u.GS)(e.geometry,{maxDeviation:.01}));t.markerPlacement&&r.push((0,m.g1)(t.markerPlacement))}"url"in t&&t.url&&r.push(e.fetchResource(t.url,{signal:i})),"symbol"in t&&r.push(n(t.symbol))};async function n(t){if("CIMTextSymbol"!==t.type)return;const{fontFamilyName:i,fontStyleName:r}=t;if("calcitewebcoreicons"===i?.toLowerCase())return;const{style:s,weight:n}=(0,w._)(r),o=(0,H.DW)(t),a=new f.A({family:i,style:s,weight:n,decoration:o});try{await e.loadFont(a)}catch{lt().error(`Unsupported font ${i} in CIM symbol`)}}dt(t,s),"haloSymbol"in t&&dt(t.haloSymbol,s),await Promise.all(r)}static _getLineSymbolPeriod(t){if(t){const e=this._getEffectsRepeat(t.effects);if(e)return e;if(t.symbolLayers)for(const e of t.symbolLayers)if(e){const t=this._getEffectsRepeat(e.effects);if(t)return t;switch(e.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const t=this._getPlacementRepeat(e.markerPlacement);if(t)return t}}}}return 0}static _getEffectsRepeat(t){if(t)for(const e of t)if(e)switch(e.type){case"CIMGeometricEffectDashes":{const t=e.dashTemplate;if(t&&t.length){let e=0;for(const i of t)e+=i;return 1&t.length&&(e*=2),e}break}case"CIMGeometricEffectWave":return e.period;default:lt().error(`unsupported geometric effect type ${e.type}`)}return 0}static _getPlacementRepeat(t){if(t)switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAlongLineVariableSize":{const e=t.placementTemplate;if(e&&e.length){let t=0;for(const i of e)t+=+i;return 1&e.length&&(t*=2),t}break}}return 0}static fromCIMInsidePolygon(t){const e=t.markerPlacement,i={...t};i.markerPlacement=null,i.anchorPoint=null;const r=Math.abs(e.stepX),s=Math.abs(e.stepY),n=(e.randomness??100)/100;let l,h,c,u;if("Random"===e.gridType){const t=(0,a.PN)(1024),i=Math.max(Math.floor(t/r),1),f=Math.max(Math.floor(t/s),1);l=i*r/2,h=f*s/2,c=2*h;const m=new o.A(e.seed),d=n*r/1.5,y=n*s/1.5;u=[];for(let t=0;t<i;t++)for(let e=0;e<f;e++){const i=t*r-l+d*(.5-m.getFloat()),n=e*s-h+y*(.5-m.getFloat());u.push({x:i,y:n}),0===t&&u.push({x:i+2*l,y:n}),0===e&&u.push({x:i,y:n+2*h})}}else!0===e.shiftOddRows?(l=r/2,h=s,c=2*s,u=[{x:-l,y:0},{x:l,y:0},{x:0,y:h},{x:0,y:-h}]):(l=r/2,h=s/2,c=s,u=[{x:-r,y:0},{x:0,y:-s},{x:-r,y:-s},{x:0,y:0},{x:r,y:0},{x:0,y:s},{x:r,y:s},{x:-r,y:s},{x:r,y:-s}]);return{type:"CIMVectorMarker",enable:!0,frame:{xmin:-l,xmax:l,ymin:-h,ymax:h},markerGraphics:u.map(t=>({type:"CIMMarkerGraphic",geometry:t,symbol:{type:"CIMPointSymbol",symbolLayers:[i]}})),size:c}}}function dt(t,e){if(t)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const i=t.symbolLayers;if(!i)return;for(const t of i)if(e(t),"CIMVectorMarker"===t.type){const i=t.markerGraphics;if(!i)continue;for(const t of i)if(t){const i=t.symbol;i&&dt(i,e)}}break}}}const yt=t=>{if(!t)return"Butt";switch(t){case"butt":return"Butt";case"square":return"Square";case"round":return"Round"}},pt=t=>{if(!t)return"Miter";switch(t){case"miter":return"Miter";case"round":return"Round";case"bevel":return"Bevel"}},gt=t=>{if(null==t)return"Center";switch(t){case"left":return"Left";case"right":return"Right";case"center":return"Center";case"justify":return"Justify"}},_t=t=>{if(null==t)return"Center";switch(t){case"baseline":return"Baseline";case"top":return"Top";case"middle":return"Center";case"bottom":return"Bottom"}},xt=t=>{if(!t)return[0,0,0,0];const{r:e,g:i,b:r,a:s}=t;return[e,i,r,255*s]},St=(t,e)=>{const i=Mt(e),r=bt(t);return i&&r?`${i}-${r}`:`${i}${r}`},Mt=t=>{if(!t)return"";switch(t.toLowerCase()){case"bold":case"bolder":return"bold"}return""},bt=t=>{if(!t)return"";switch(t.toLowerCase()){case"italic":case"oblique":return"italic"}return""},Ct=(t,e)=>{const i=.001,r="butt"===e;switch(t){case"dash":case"esriSLSDash":return r?[4,3]:[3,4];case"dash-dot":case"esriSLSDashDot":return r?[4,3,1,3]:[3,4,i,4];case"dot":case"esriSLSDot":return r?[1,3]:[i,4];case"long-dash":case"esriSLSLongDash":return r?[8,3]:[7,4];case"long-dash-dot":case"esriSLSLongDashDot":return r?[8,3,1,3]:[7,4,i,4];case"long-dash-dot-dot":case"esriSLSDashDotDot":return r?[8,3,1,3,1,3]:[7,4,i,4,i,4];case"short-dash":case"esriSLSShortDash":return r?[4,1]:[3,2];case"short-dash-dot":case"esriSLSShortDashDot":return r?[4,1,1,1]:[3,2,i,2];case"short-dash-dot-dot":case"esriSLSShortDashDotDot":return r?[4,1,1,1,1,1]:[3,2,i,2,i,2];case"short-dot":case"esriSLSShortDot":return r?[1,1]:[i,2];case"solid":case"esriSLSSolid":case"none":return lt().error("Unexpected: style does not require rasterization"),[0,0];default:return lt().error(`Tried to rasterize SLS, but found an unexpected style: ${t}!`),[0,0]}},wt=(t,e=100)=>{const i=e/2;let r,s;const n=t;if("circle"===n||"esriSMSCircle"===n){const t=.25;let e=Math.acos(1-t/i),n=Math.ceil(st/e/4);0===n&&(n=1),e=nt/n,n*=4;const o=[];o.push([i,0]);for(let t=1;t<n;t++)o.push([i*Math.cos(t*e),-i*Math.sin(t*e)]);o.push([i,0]),r={rings:[o]},s={xmin:-i,ymin:-i,xmax:i,ymax:i}}else if("cross"===n||"esriSMSCross"===n){const t=0;r={paths:[[[t,i],[t,-i]],[[i,t],[-i,t]]]},s={xmin:-i,ymin:-i,xmax:i,ymax:i}}else if("diamond"===n||"esriSMSDiamond"===n)r={rings:[[[-i,0],[0,i],[i,0],[0,-i],[-i,0]]]},s={xmin:-i,ymin:-i,xmax:i,ymax:i};else if("square"===n||"esriSMSSquare"===n)r={rings:[[[-i,-i],[-i,i],[i,i],[i,-i],[-i,-i]]]},s={xmin:-i,ymin:-i,xmax:i,ymax:i};else if("x"===n||"esriSMSX"===n)r={paths:[[[i,i],[-i,-i]],[[i,-i],[-i,i]]]},s={xmin:-i,ymin:-i,xmax:i,ymax:i};else if("triangle"===n||"esriSMSTriangle"===n){const t=.5773502691896257*e,i=-t,n=2/3*e,o=n-e;r={rings:[[[i,o],[0,n],[t,o],[i,o]]]},s={xmin:i,ymin:o,xmax:t,ymax:n}}else"arrow"===n&&(r={rings:[[[-50,50],[50,0],[-50,-50],[-33,-20],[-33,20],[-50,50]]]},s={xmin:-i,ymin:-i,xmax:i,ymax:i});return[s,r]},kt=t=>"vertical"===t||"horizontal"===t||"cross"===t||"esriSFSCross"===t||"esriSFSVertical"===t||"esriSFSHorizontal"===t;function It(t){if(!t)return null;let e=null;const{cap:i,color:r,join:s,miterLimit:n,style:o,width:a}=t;return"solid"!==o&&"none"!==o&&"esriSLSSolid"!==o&&"esriSLSNull"!==o&&(e=[{type:"CIMGeometricEffectDashes",dashTemplate:Ct(o,i),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]),{type:"CIMSolidStroke",color:"esriSLSNull"!==o&&"none"!==o?xt(r):[0,0,0,0],capStyle:yt(i),joinStyle:pt(s),miterLimit:n,width:a,effects:e}}},28076(t,e,i){var r=i(13337);const s={CIMVectorMarker:{scalesymbolsproportionally:!1,respectframe:!0,anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMPictureMarker:{scalex:1,texturefilter:"Draft",anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMTextSymbol:{angle:0,anglex:0,angley:0,halosize:1,height:10,horizontalalignment:"Left",kerning:!0,letterspacing:0,letterwidth:100,ligatures:!0,linegap:0,offsetx:0,offsety:0,strikethrough:!1,textcase:"Normal",textstring:"",underline:!1,verticalalignment:"Bottom",enable:!0,colorlocked:!1},CIMSolidStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMPictureStroke:{texturefilter:"Draft",capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMGradientStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1,gradientMethod:"AcrossLine",gradientSize:75,gradientSizeUnits:r.h.Relative,gradientType:"Discrete",interval:5},CIMSolidFill:{enable:!0,colorlocked:!1},CIMPictureFill:{offsetx:0,offsety:0,rotation:0,scalex:1,height:10,texturefilter:"Draft",enable:!0,colorlocked:!1},CIMHatchFill:{offsetx:0,offsety:0,rotation:0,separation:4,enable:!0,colorlocked:!1},CIMGradientFill:{enable:!0,angle:90,gradientMethod:"Linear",gradientSize:75,gradientSizeUnits:r.h.Relative,gradientType:"Discrete",interval:5},CIMGeometricEffectAddControlPoints:{angletolerance:120},CIMGeometricEffectArrow:{arrowtype:"OpenEnded",width:5},CIMGeometricEffectBuffer:{size:1},CIMGeometricEffectCircularSector:{radius:25,startangle:0,endangle:45},CIMGeometricEffectCut:{begincut:1,endcut:1,middlecut:0,invert:!1},CIMGeometricEffectDashes:{customendingoffset:0,linedashending:"NoConstraint",offsetalongline:0},CIMGeometricEffectDonut:{method:"Mitered",option:"Accurate",width:2},CIMGeometricEffectJog:{angle:225,length:20,position:50},CIMGeometricEffectControlMeasureLine:{rule:"FullGeometry",width:25},CIMGeometricEffectMove:{offsetx:1,offsety:-1},CIMGeometricEffectOffset:{method:"Square",offset:1,option:"Fast"},CIMGeometricEffectRadial:{angle:0,length:5},CIMGeometricEffectRotate:{angle:15},CIMGeometricEffectScale:{xscalefactor:1.15,yscalefactor:1.15},CIMGeometricEffectWave:{amplitude:2,period:3,seed:1,waveform:"Sinus"},CIMMarkerPlacementAlongLine:{customendingoffset:0,endings:"WithHalfGap",offsetalongline:0,placeperpart:!0,angletoline:!0,offset:0},CIMMarkerPlacementAtExtremities:{extremityplacement:"Both",offsetalongline:0,angletoline:!0,offset:0},CIMMarkerPlacementAtRatioPositions:{beginposition:0,endposition:0,flipfirst:!0,angletoline:!0,offset:0},CIMMarkerPlacementInsidePolygon:{gridangle:0,gridtype:"Fixed",offsetx:0,offsety:0,randomness:100,seed:0,shiftoddrows:!1,stepx:16,stepy:16,clipping:"ClipAtBoundary"},CIMMarkerPlacementOnLine:{relativeto:"LineMiddle",startpointoffset:0,angletoline:!0,offset:0},CIMMarkerPlacementOnVertices:{placeperpart:!0,placeoncontrolpoints:!0,placeonendpoints:!0,placeonregularvertices:!0,angletoline:!0,offset:0},CIMMarkerPlacementPolygonCenter:{method:"OnPolygon",offsetx:0,offsety:0,clipatboundary:!1},CIMAnimatedSymbolProperties:{playanimation:!1,reverseanimation:!1,randomizestarttime:!1,randomizestartseed:0,starttimeoffset:0,duration:3,endingduration:3,useendingduration:!1,repeattype:"Loop",repeatdelay:0,easing:"Linear"},CIMSymbolAnimationSize:{tosize:10},CIMSymbolAnimationScale:{scalefactor:1},CIMSymbolAnimationColor:{tocolor:[255,255,255,1],colormode:"Multiply"},CIMSymbolAnimationTransparency:{totransparency:0},CIMSymbolAnimationRotation:{torotation:0,rotateclockwise:!1},CIMSymbolAnimationOffset:{offsetx:0,offsety:0},CIMSymbolAnimationMoveAlongLine:{speed:30,distancealong:100,movementtype:"Distance"}};i.d(e,["D",0,s])},13337(t,e,i){i.d(e,["h",0,{Relative:0,Absolute:1}])},93397(t,e,i){i.d(e,{Bu:()=>b,DW:()=>_,FM:()=>a,Kn:()=>g,Kq:()=>U,MM:()=>u,Nl:()=>C,O2:()=>w,YC:()=>T,YF:()=>k,_1:()=>S,_h:()=>o,bs:()=>P,e6:()=>h,gQ:()=>n,jn:()=>m,lW:()=>c,ll:()=>v,mA:()=>f,oI:()=>G,pM:()=>x,pV:()=>p,pk:()=>R,rB:()=>z,xo:()=>M,yX:()=>B,zb:()=>I,zr:()=>d});var r=i(28076);function s(t){let e=t.length;for(;e--;)if(!" /-,\n".includes(t.charAt(e)))return!1;return!0}function n(t,e){const i=[];let r=0,n=-1;do{if(n=t.indexOf("[",r),n>=r){if(n>r){const e=t.slice(r,n);i.push([e,null,s(e)])}if(r=n+1,n=t.indexOf("]",r),n>=r){if(n>r){const s=e[t.slice(r,n)];s&&i.push([null,s,!1])}r=n+1}}}while(-1!==n);if(r<t.length){const e=t.slice(r);i.push([e,null,s(e)])}return i}function o(t,e,i){let r="",s=null;for(const i of e){const[e,n,o]=i;if(null!=e&&""!==e)o?s=e:(null!=s&&(r+=s,s=null),r+=e);else{const e=t.readAttribute(n);null!=e&&""!==e&&(null!==s&&(r+=s,s=null),r+=e)}}return l(r,i)}function a(t,e,i,r){let s="",n=null;for(const r of e){const[e,o,a]=r;if(null!=e&&""!==e)a?n=e:(null!=n&&(s+=n,n=null),s+=e);else{let e=o;null!=i&&(e=L(o,i));const r=t.attributes[e];null!=r&&""!==r&&(null!=n&&(s+=n,n=null),s+=r)}}return l(s,r)}function l(t,e){switch("string"!=typeof t&&(t=String(t)),e){case"LowerCase":return t.toLowerCase();case"Allcaps":return t.toUpperCase();default:return t}}function h(t){return t?[t[0],t[1],t[2],t[3]/255]:[0,0,0,0]}function c(t){return t.data?.symbol??null}function u(t){return"CIMVectorMarker"===t.type||"CIMPictureMarker"===t.type||"CIMBarChartMarker"===t.type||"CIMCharacterMarker"===t.type||"CIMPieChartMarker"===t.type||"CIMStackedBarChartMarker"===t.type}function f(t){return"CIMGradientStroke"===t.type||"CIMPictureStroke"===t.type||"CIMSolidStroke"===t.type}function m(t){return null!=t&&("CIMGradientFill"===t.type||"CIMHatchFill"===t.type||"CIMPictureFill"===t.type||"CIMSolidFill"===t.type||"CIMWaterFill"===t.type)}function d(t){return null!=t&&("CIMMarkerPlacementAlongLineRandomSize"===t.type||"CIMMarkerPlacementAlongLineSameSize"===t.type||"CIMMarkerPlacementAlongLineVariableSize"===t.type||"CIMMarkerPlacementAtExtremities"===t.type||"CIMMarkerPlacementAtMeasuredUnits"===t.type||"CIMMarkerPlacementAtRatioPositions"===t.type||"CIMMarkerPlacementOnLine"===t.type||"CIMMarkerPlacementOnVertices"===t.type)}const y=(t,e=0)=>null==t||isNaN(t)?e:t;function p(t){if(!t)return"normal";switch(t.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function g(t){if(!t)return"normal";switch(t.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function _(t){return t.underline?"underline":t.strikethrough?"line-through":"none"}function x(t){if(!t)return null;switch(t.type){case"CIMPolygonSymbol":if(t.symbolLayers)for(const e of t.symbolLayers){const t=x(e);if(null!=t)return t}break;case"CIMTextSymbol":return x(t.symbol);case"CIMSolidFill":return t.color}return null}function S(t){if(t)switch(t.type){case"CIMPolygonSymbol":case"CIMLineSymbol":{const e=t.symbolLayers;if(e)for(const t of e){const e=S(t);if(null!=e)return e}break}case"CIMTextSymbol":return S(t.symbol);case"CIMSolidStroke":return t.color}}function M(t){if(t)switch(t.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(t.symbolLayers)for(const e of t.symbolLayers){const t=M(e);if(void 0!==t)return t}break;case"CIMTextSymbol":return M(t.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return t.width}}function b(t){switch(t){case"Left":default:return"left";case"Right":return"right";case"Center":return"center";case"Justify":return"justify"}}function C(t){switch(t){default:case"Bottom":return"bottom";case"Top":return"top";case"Center":return"middle";case"Baseline":return"baseline"}}function w(t){return(t?Object.keys(t):[]).map(e=>({name:e,alias:e,type:"string"==typeof t[e]?"esriFieldTypeString":"esriFieldTypeDouble"}))}function k(t){return t?t.charAt(0).toLowerCase()+t.slice(1):t}function I(t,e,i,r,s,n,o=!0){const{infos:a}=n;let l=1,h=0,c=0,u=0,f=1;for(const{absoluteAnchorPoint:t,offsetX:e,offsetY:i,rotation:r,size:s,frameHeight:n,rotateClockWise:m,scaleSymbolsProportionally:d}of a)f=t?1:l,c=F(e,i,h,f,c),u=E(e,i,h,f,u),n&&(d||o)&&(l*=s/n),h=D(r,m,h);const m=F(r,s,h,f,c),d=E(r,s,h,f,u);return{size:t*l,rotation:D(e,i,h),offsetX:m,offsetY:d}}function P(t){if(null==t)return"Normal";switch(t.type){case"CIMTextSymbol":return t.textCase??"Normal";case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const e=t.symbolLayers;if(!e)return"Normal";for(const t of e)if("CIMVectorMarker"===t.type)return P(t)}break;case"CIMVectorMarker":{const e=t.markerGraphics;if(!e)return"Normal";for(const t of e)if(t.symbol)return P(t.symbol)}}return"Normal"}function T(t){if(t)switch(t.type){case"CIMTextSymbol":return t.height;case"CIMPointSymbol":{let e=0;if(t.symbolLayers)for(const i of t.symbolLayers)if(i)switch(i.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const t=i.size??r.D.CIMVectorMarker.size;t>e&&(e=t);break}}return e}case"CIMLineSymbol":case"CIMPolygonSymbol":{let e=0;if(t.symbolLayers)for(const i of t.symbolLayers)if(i)switch(i.type){case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const t=i.width;null!=t&&t>e&&(e=t);break}case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":if(i.markerPlacement&&d(i.markerPlacement)){const t=i.size??r.D.CIMVectorMarker.size;t>e&&(e=t)}break;case"CIMPictureFill":{const t=i.height;null!=t&&t>e&&(e=t)}}return e}}}function L(t,e){if(null!==e){const i=e.get(t);return i?i.name:t}return t}function R(t){return t.map(t=>({...t,propertyName:k(t.propertyName)}))}function z(t){const e={};for(const i in t){const r=t[i];e[k(i)]=r}return e}function v(t){if(!t)return 0;let e=0;for(const i of t)e+=A(i);return e}function A(t){if(!t)return 0;if(U(t))return t.inflateSize??256;if(function(t){return"CIMSimpleLineCallout"===t.type||"CIMBackgroundCallout"===t.type||"CIMBalloonCallout"===t.type||"CIMPointSymbolCallout"===t.type}(t))return Math.abs(t.inflateSize);switch(t.type){case"CIMGeometricEffectArrow":return Math.abs(.5*t.width);case"CIMGeometricEffectBuffer":return Math.abs(t.size);case"CIMGeometricEffectCircularSector":return Math.abs(t.radius??25);case"CIMGeometricEffectControlMeasureLine":return 500;case"CIMGeometricEffectExtension":return Math.abs(t.length);case"CIMGeometricEffectJog":return Math.abs(.5*t.length);case"CIMGeometricEffectMove":return Math.max(Math.abs(y(t.offsetX)),Math.abs(y(t.offsetY)));case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":return Math.abs(t.offset);case"CIMGeometricEffectRadial":return Math.abs(t.length??5);case"CIMGeometricEffectRegularPolygon":return Math.abs(t.radius);case"CIMGeometricEffectRotate":case"CIMGeometricEffectScale":default:return 0;case"CIMGeometricEffectTaperedPolygon":return.5*Math.max(Math.abs(t.fromWidth),Math.abs(t.toWidth));case"CIMGeometricEffectWave":return Math.abs(t.amplitude);case"CIMGeometricEffectDonut":return Math.abs(t.width)}}function E(t,e,i,r,s){const n=i*Math.PI/180;if(n){const i=Math.cos(n);return(Math.sin(n)*t+i*e)*r+s}return e*r+s}function F(t,e,i,r,s){const n=i*Math.PI/180;return n?(Math.cos(n)*t-Math.sin(n)*e)*r+s:t*r+s}function D(t,e,i){return e?i-t:i+t}function B(t,e){return Math.max(Math.min((t??e)/100,1),0)}function U(t){return t.type.startsWith("Private")}function G(t){return null!=t&&function(t){return"setControlPoint"in t&&"getControlPoint"in t&&"setControlPointAt"in t&&"getControlPointAt"in t}(t)?t:void 0}i.d(e,["$w",0,y,"UE",0,t=>t.includes("data:image/svg+xml")])},13195(t,e,i){i.d(e,{GW:()=>y,IU:()=>p,Wh:()=>u,cP:()=>g,p6:()=>d,wV:()=>m,yM:()=>_,z0:()=>f});var r=i(6774);const s=Number.POSITIVE_INFINITY,n=Math.PI,o=2*n,a=128/n,l=256/360,h=n/180,c=1/Math.LN2;function u(t,e){return(t%=e)>=0?t:t+e}function f(t){return u(t*a,256)}function m(t){return u(t*l,256)}function d(t){return Math.log(t)*c}function y(t,e,i){return t*(1-i)+e*i}function p(t){return 8+Math.max(16*(t-14),0)}function g(t,e){if(0===e||Number.isNaN(e))return t;const i=[],s=new r.bR(0,0),n=new r.bR(0,0),o=new r.bR(0,0);for(let a=0;a<t.length;a++){const l=t[a],h=[];for(let t=0;t<l.length;t++){const i=l[t-1],a=l[t],c=l[t+1];0===t?s.setCoords(0,0):s.assignSub(a,i).normalize().rightPerpendicular(),t===l.length-1?n.setCoords(0,0):n.assignSub(c,a).normalize().rightPerpendicular(),o.assignAdd(s,n).normalize();const u=o.x*n.x+o.y*n.y;0!==u&&o.scale(1/u),h.push(r.bR.add(a,o.scale(e)))}i.push(h)}return i}function _(t,e,i,s){const n=new r.bR(t[0],t[1]);if(n.scale(s),"viewport"===e){const t=-i*(Math.PI/180),e=Math.cos(t),r=Math.sin(t);n.rotate(e,r)}return n}i.d(e,["Jo",0,n,"MG",0,s,"aA",0,l,"os",0,h,"pJ",0,o])}}]);