@arcgis/core 5.2.0-next.6 → 5.2.0-next.8

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 (712) hide show
  1. package/WebLinkChart.d.ts +1 -1
  2. package/WebMap.d.ts +2 -2
  3. package/WebScene.d.ts +3 -3
  4. package/arcade.d.ts +9 -9
  5. package/arcgisGlobal.d.ts +8 -0
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/07cc5743cb6a9fd68adb.js +1 -0
  8. package/assets/esri/core/workers/chunks/09d0e430c66788a2626f.js +640 -0
  9. package/assets/esri/core/workers/chunks/{829a0583b8a228c65379.js → 0b169bb1969f86232a1a.js} +1 -1
  10. package/assets/esri/core/workers/chunks/0cbd7f5fe24271942abd.js +1 -0
  11. package/assets/esri/core/workers/chunks/{20e2d11f6de438ee883e.js → 0ded58ccb83f624f1460.js} +1 -1
  12. package/assets/esri/core/workers/chunks/0ecc1bc1686844cdd60e.js +1 -0
  13. package/assets/esri/core/workers/chunks/{d1ac98f48bb6d43d97c8.js → 0f3654c8157ec8f22869.js} +3 -3
  14. package/assets/esri/core/workers/chunks/0f75c19d8e296a32e329.js +1 -0
  15. package/assets/esri/core/workers/chunks/174cc2e69e5b5a13d880.js +1 -0
  16. package/assets/esri/core/workers/chunks/18f980465db5a86153d1.js +1 -0
  17. package/assets/esri/core/workers/chunks/1996f0a930abdd97b855.js +1 -0
  18. package/assets/esri/core/workers/chunks/1c8436b27a3d3cde5cfc.js +1 -0
  19. package/assets/esri/core/workers/chunks/1cb1f125dccbf8c8cac9.js +1 -0
  20. package/assets/esri/core/workers/chunks/1dd06335bb2d35c66339.js +1 -0
  21. package/assets/esri/core/workers/chunks/1f289aa69dd6b6be534a.js +1 -0
  22. package/assets/esri/core/workers/chunks/2185e8a52c5e29d46680.js +1 -0
  23. package/assets/esri/core/workers/chunks/{bf706a5d065a357de51b.js → 2413b383b7f2bdcd4ced.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{da29cf0e64065631a470.js → 24810c36ae09bb4e83dc.js} +1 -1
  25. package/assets/esri/core/workers/chunks/26583db2af1a1cc456e5.js +1 -0
  26. package/assets/esri/core/workers/chunks/274b82cb183ddd0042f3.js +1 -0
  27. package/assets/esri/core/workers/chunks/277718031c903da2b3b9.js +1 -0
  28. package/assets/esri/core/workers/chunks/27c6def22c2b0791ce9e.js +1 -0
  29. package/assets/esri/core/workers/chunks/{7ed5b669010db58845f8.js → 294f2803aac000c99693.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{093f27e4e4781870b431.js → 297ae764445e6f73a5ea.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{be0eab592db0e651b023.js → 2b814bb51704a5b4fdc2.js} +6 -6
  32. package/assets/esri/core/workers/chunks/2c9ba638d1f31c82f9f5.js +1 -0
  33. package/assets/esri/core/workers/chunks/2d2895f1fdf44d212a4d.js +1 -0
  34. package/assets/esri/core/workers/chunks/2dbc2fd0f2dde505c465.js +1 -0
  35. package/assets/esri/core/workers/chunks/2dbcdfdf000226bfe746.js +1 -0
  36. package/assets/esri/core/workers/chunks/2e6382d50bf012064eae.js +1 -0
  37. package/assets/esri/core/workers/chunks/30f1909c5ef1835b8507.js +1 -0
  38. package/assets/esri/core/workers/chunks/3172d7fc23787a287191.js +1 -0
  39. package/assets/esri/core/workers/chunks/31918a0d9886dedf385f.js +1 -0
  40. package/assets/esri/core/workers/chunks/{1c029b03ed836f393a50.js → 3248001d9dfb9153699e.js} +1 -1
  41. package/assets/esri/core/workers/chunks/3297658ccd8d4b9ce733.js +1 -0
  42. package/assets/esri/core/workers/chunks/{716a4d7e8b908b81870b.js → 32f26757e36704923286.js} +1 -1
  43. package/assets/esri/core/workers/chunks/3529afab0c2444275d91.js +1 -0
  44. package/assets/esri/core/workers/chunks/36dac6ab51d9dbdd091d.js +1 -0
  45. package/assets/esri/core/workers/chunks/{a2159df718a7f2f59271.js → 38a2f34661563c7c29c1.js} +1 -1
  46. package/assets/esri/core/workers/chunks/390fda094fa8695d98cf.js +1 -0
  47. package/assets/esri/core/workers/chunks/39596715e84d0da2f803.js +30 -0
  48. package/assets/esri/core/workers/chunks/398eb3100a282e4736bb.js +1 -0
  49. package/assets/esri/core/workers/chunks/{6af77529c977d034d287.js → 3b15933f65f59625a650.js} +1 -1
  50. package/assets/esri/core/workers/chunks/3b3f91a61e3f29af1fb2.js +1 -0
  51. package/assets/esri/core/workers/chunks/{f815106d439ff1f76e51.js → 3b837b512999e6ab24bc.js} +1 -1
  52. package/assets/esri/core/workers/chunks/3d20c86f1fe877bf884b.js +1 -0
  53. package/assets/esri/core/workers/chunks/{a96c7432ca97cbeef4b8.js → 3db898a38a7c5f0efb48.js} +1 -1
  54. package/assets/esri/core/workers/chunks/3dc5fbecc427df1fd827.js +1 -0
  55. package/assets/esri/core/workers/chunks/3e65b4b18760bde8ceee.js +1 -0
  56. package/assets/esri/core/workers/chunks/3ff7aa216cd794d951e8.js +1 -0
  57. package/assets/esri/core/workers/chunks/{8e1865392681d390ab2e.js → 401ee7fa500adad77db1.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{60915a3708a34da1977e.js → 426156137f279d979ddd.js} +1 -1
  59. package/assets/esri/core/workers/chunks/4517630bf869205bab87.js +1 -0
  60. package/assets/esri/core/workers/chunks/{b002304a45856b024b46.js → 4714241189c13d0db897.js} +1 -1
  61. package/assets/esri/core/workers/chunks/48f1c3a7c9f16d6896f6.js +1 -0
  62. package/assets/esri/core/workers/chunks/49308bdc36373555f1af.js +1 -0
  63. package/assets/esri/core/workers/chunks/5075e85e1eafd431a8c0.js +1 -0
  64. package/assets/esri/core/workers/chunks/5121768c70f1e03b685c.js +1 -0
  65. package/assets/esri/core/workers/chunks/5201105ca11a2d450460.js +1 -0
  66. package/assets/esri/core/workers/chunks/{0e774f14ba274832f390.js → 520e0e5307eef27becc6.js} +1 -1
  67. package/assets/esri/core/workers/chunks/528ed0bd8dc149ead023.js +1 -0
  68. package/assets/esri/core/workers/chunks/52f354bf80ee5ab0379a.js +1 -0
  69. package/assets/esri/core/workers/chunks/538537f9bc866d9caa75.js +1 -0
  70. package/assets/esri/core/workers/chunks/53d165b4f30fd64e5d8a.js +1 -0
  71. package/assets/esri/core/workers/chunks/58a7cdebc3d182c15ec6.js +1 -0
  72. package/assets/esri/core/workers/chunks/58ac245ff7fb57c1004f.js +1 -0
  73. package/assets/esri/core/workers/chunks/58acc18b92533166135d.js +1 -0
  74. package/assets/esri/core/workers/chunks/597aa39cdb5366ef9a74.js +1 -0
  75. package/assets/esri/core/workers/chunks/5bfae465872760e7af6d.js +1 -0
  76. package/assets/esri/core/workers/chunks/{cda99b543a0e1979346c.js → 5cb1b950249d651f3837.js} +1 -1
  77. package/assets/esri/core/workers/chunks/5cb274e5759f7ca0d4ed.js +1 -0
  78. package/assets/esri/core/workers/chunks/5d3ddbf94539cb4f493e.js +1 -0
  79. package/assets/esri/core/workers/chunks/{c83fea0d0ebd0d8e43fd.js → 5d62d1920e3e35fc0192.js} +1 -1
  80. package/assets/esri/core/workers/chunks/5dd441db1e74dc9b56e9.js +1 -0
  81. package/assets/esri/core/workers/chunks/{c216cd5d6b5d4fe4bab3.js → 62e77e3c5ca9b4887923.js} +2 -2
  82. package/assets/esri/core/workers/chunks/630ad47857de3cf726d1.js +1 -0
  83. package/assets/esri/core/workers/chunks/64114a7d2da162987958.js +1 -0
  84. package/assets/esri/core/workers/chunks/6821462e5c1e9c76010a.js +1 -0
  85. package/assets/esri/core/workers/chunks/684d3cb4fb233180b2d0.js +1 -0
  86. package/assets/esri/core/workers/chunks/686c51fd2144e132783e.js +1 -0
  87. package/assets/esri/core/workers/chunks/68f9b2da1fd08785320f.js +2 -0
  88. package/assets/esri/core/workers/chunks/69e98de578f467a35054.js +1 -0
  89. package/assets/esri/core/workers/chunks/6a3d207308b29651f397.js +1 -0
  90. package/assets/esri/core/workers/chunks/6aabde21b0b376d95888.js +1 -0
  91. package/assets/esri/core/workers/chunks/6c6396bfcdab12e68deb.js +1 -0
  92. package/assets/esri/core/workers/chunks/6d616b66fb32904b55a1.js +1 -0
  93. package/assets/esri/core/workers/chunks/{bcb021a167580bb1619f.js → 6ef3b8d67b498d655a99.js} +1 -1
  94. package/assets/esri/core/workers/chunks/6f125b4ed06c0022dee6.js +1 -0
  95. package/assets/esri/core/workers/chunks/6f4825c3ef1fe202ab82.js +1 -0
  96. package/assets/esri/core/workers/chunks/6f5d61f734ec40dafabb.js +1 -0
  97. package/assets/esri/core/workers/chunks/{fce7995c26953bfd8d3d.js → 70229007d594536ba6a3.js} +1 -1
  98. package/assets/esri/core/workers/chunks/71e55381fdff3fc2542e.js +1 -0
  99. package/assets/esri/core/workers/chunks/{5abe34bb0110694f7b42.js → 72cfb186e50537bcdd19.js} +1 -1
  100. package/assets/esri/core/workers/chunks/72d67cc3a382e83bf1a2.js +1 -0
  101. package/assets/esri/core/workers/chunks/7748743d4be047094d67.js +1 -0
  102. package/assets/esri/core/workers/chunks/77a4f6f224d7ca4b69f4.js +1 -0
  103. package/assets/esri/core/workers/chunks/78c53aeb0a408ab3c80c.js +1 -0
  104. package/assets/esri/core/workers/chunks/7b5c1030a7cf0f382cc4.js +1 -0
  105. package/assets/esri/core/workers/chunks/7cee81c5aa1e6b7d2452.js +1 -0
  106. package/assets/esri/core/workers/chunks/7e89cb9ff615742e0894.js +1 -0
  107. package/assets/esri/core/workers/chunks/80f4f686ce403cb2693f.js +1 -0
  108. package/assets/esri/core/workers/chunks/{8477b5fdd99c6ac5c27b.js → 851705cf276eae8d4d37.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{c319c3b85cdec73a9f45.js → 877c848beaf9a939862c.js} +1 -1
  110. package/assets/esri/core/workers/chunks/{ae74f722fb385e45fcf1.js → 893c0d28a5bf3f9f29f1.js} +1 -1
  111. package/assets/esri/core/workers/chunks/89e09276086745aa21fa.js +1 -0
  112. package/assets/esri/core/workers/chunks/{16b90d8f628a412ba4ba.js → 8a8c5e5ce457ca004687.js} +1 -1
  113. package/assets/esri/core/workers/chunks/{1f55d60d3adc31283296.js → 8b0a01ebc86ab226f01f.js} +1 -1
  114. package/assets/esri/core/workers/chunks/{452c01cecbbd1e370098.js → 8f93e6fc11a158d4f1ee.js} +1 -1
  115. package/assets/esri/core/workers/chunks/93bd56396b8cd020f965.js +1 -0
  116. package/assets/esri/core/workers/chunks/{359d3acb3953e64e5a78.js → 93ceb74ac88ef460fe5f.js} +1 -1
  117. package/assets/esri/core/workers/chunks/{4e676e888a935c507d90.js → 93d4bda22bde33fafa57.js} +1 -1
  118. package/assets/esri/core/workers/chunks/957f7b8de4aecb6f644e.js +1 -0
  119. package/assets/esri/core/workers/chunks/{50dc9893e13396f5e35d.js → 9629601de5e44ffe90ea.js} +2 -2
  120. package/assets/esri/core/workers/chunks/976ab2be6c244768c08a.js +1 -0
  121. package/assets/esri/core/workers/chunks/{e785f76c1a75cb1d1e1f.js → 99101789035f1787c630.js} +1 -1
  122. package/assets/esri/core/workers/chunks/{fbb23db01f3cf629d32e.js → 992a90ecbab931198fd0.js} +1 -1
  123. package/assets/esri/core/workers/chunks/99e5296192ab98fd0d99.js +1 -0
  124. package/assets/esri/core/workers/chunks/9d5f7573bfe3b051daf1.js +1 -0
  125. package/assets/esri/core/workers/chunks/a0c00c6fe60db49b3ab9.js +1 -0
  126. package/assets/esri/core/workers/chunks/a2247f4c3116efb16c4f.js +1 -0
  127. package/assets/esri/core/workers/chunks/a4245bd4e67a428fd835.js +1 -0
  128. package/assets/esri/core/workers/chunks/a442534ac0956a68b769.js +1 -0
  129. package/assets/esri/core/workers/chunks/a4d3cbc02dc1186a9a6d.js +1 -0
  130. package/assets/esri/core/workers/chunks/a4e9a17dacbb52444d75.js +1 -0
  131. package/assets/esri/core/workers/chunks/{8bdca6f06c8b5fedd917.js → a5abba59e738c3240c22.js} +1 -1
  132. package/assets/esri/core/workers/chunks/a8ec5b85c2fa6fb4f391.js +1 -0
  133. package/assets/esri/core/workers/chunks/{f5a2c28dc26c065ea355.js → a9a1293b1d5302fb3b54.js} +28 -30
  134. package/assets/esri/core/workers/chunks/a9fc53ae040320e49834.js +1 -0
  135. package/assets/esri/core/workers/chunks/aa118c1bcd922b8ac328.js +1 -0
  136. package/assets/esri/core/workers/chunks/aae0049c2c3e15a813e8.js +1 -0
  137. package/assets/esri/core/workers/chunks/ac33b10fe65f9e9e824f.js +1 -0
  138. package/assets/esri/core/workers/chunks/adc32f6b45ea3026fc34.js +1 -0
  139. package/assets/esri/core/workers/chunks/af31e62499d45bdab3c3.js +1 -0
  140. package/assets/esri/core/workers/chunks/b22a1c98271c2e4d8808.js +1 -0
  141. package/assets/esri/core/workers/chunks/{9f4681713f03365a2a53.js → b666027b9022fa346a79.js} +1 -1
  142. package/assets/esri/core/workers/chunks/b73c146d3e550eaf07eb.js +1 -0
  143. package/assets/esri/core/workers/chunks/b9bdb1f05e904c3655e4.js +1 -0
  144. package/assets/esri/core/workers/chunks/c0cbc50e5afd68bd485c.js +1 -0
  145. package/assets/esri/core/workers/chunks/c2a65de34f6a6c89c652.js +1 -0
  146. package/assets/esri/core/workers/chunks/c357c0a08b99c1e7f290.js +1 -0
  147. package/assets/esri/core/workers/chunks/{4a23b27bfbcfa08fd9a7.js → c3cf9e6e91f71c9cc5f3.js} +1 -1
  148. package/assets/esri/core/workers/chunks/c3ff2ff0a86a9143d7a5.js +1 -0
  149. package/assets/esri/core/workers/chunks/{3e3134e4bc34d4e07179.js → c424a66f1546275e2bcb.js} +1 -1
  150. package/assets/esri/core/workers/chunks/c4fc85281ca83af7abaf.js +1 -0
  151. package/assets/esri/core/workers/chunks/c60b4f2dd5fccdf362a7.js +1 -0
  152. package/assets/esri/core/workers/chunks/c6d0b4875b6b8d6bc25a.js +1 -0
  153. package/assets/esri/core/workers/chunks/c911f0b5bdd43b66b731.js +1 -0
  154. package/assets/esri/core/workers/chunks/c983e5ce0ff952b65d7f.js +1 -0
  155. package/assets/esri/core/workers/chunks/c9a4601073e1a3eee9d0.js +1 -0
  156. package/assets/esri/core/workers/chunks/ccffaba50674adba7a0f.js +1 -0
  157. package/assets/esri/core/workers/chunks/{24646a1176ce34039155.js → cdf6ad970dc1893dac58.js} +1 -1
  158. package/assets/esri/core/workers/chunks/d13e003c9293cb7e2852.js +1 -0
  159. package/assets/esri/core/workers/chunks/d24e027bb8b2c09f25c8.js +1 -0
  160. package/assets/esri/core/workers/chunks/d2df8c328054dc6cb7b7.js +1 -0
  161. package/assets/esri/core/workers/chunks/d5c35a75fd4c41def420.js +1 -0
  162. package/assets/esri/core/workers/chunks/{ace1899a8e5162b4018d.js → d6bb8db22ba85ad05fd7.js} +1 -1
  163. package/assets/esri/core/workers/chunks/{7601278ebced0c0c31cf.js → d78b7cac322755e87eb8.js} +1 -1
  164. package/assets/esri/core/workers/chunks/d7be278aed1fb37ad5ec.js +1 -0
  165. package/assets/esri/core/workers/chunks/d9695794cfaa014a55b1.js +1 -0
  166. package/assets/esri/core/workers/chunks/{8244b74e9c3a30d8d2f6.js → d9d4754062758789f186.js} +2 -2
  167. package/assets/esri/core/workers/chunks/da1e8b338ab9fe9e0a8e.js +1 -0
  168. package/assets/esri/core/workers/chunks/e1bf87077541da6853c6.js +1 -0
  169. package/assets/esri/core/workers/chunks/e279bcbe4f10e87bde6c.js +1 -0
  170. package/assets/esri/core/workers/chunks/e33d2ede6c9f1527d51b.js +1 -0
  171. package/assets/esri/core/workers/chunks/e4406baf206b9e4c7e4f.js +1 -0
  172. package/assets/esri/core/workers/chunks/e499252cb52f7aed49a0.js +1 -0
  173. package/assets/esri/core/workers/chunks/{e178cd0e9178d6716410.js → e5837e5ac6ef761f26a2.js} +1 -1
  174. package/assets/esri/core/workers/chunks/e6a7272b59a4c2e34dca.js +1 -0
  175. package/assets/esri/core/workers/chunks/e912b515704e20313e53.js +1 -0
  176. package/assets/esri/core/workers/chunks/eac683a37339aa558455.js +1 -0
  177. package/assets/esri/core/workers/chunks/ec1841e6e498d54012eb.js +1 -0
  178. package/assets/esri/core/workers/chunks/ed3d16a5b4084ef61f8a.js +1 -0
  179. package/assets/esri/core/workers/chunks/ee07f54bc77fe9f8575a.js +1 -0
  180. package/assets/esri/core/workers/chunks/{d35c475f004367e333eb.js → eeea5710275c967e8d51.js} +1 -1
  181. package/assets/esri/core/workers/chunks/ef46ef4f0ee9f2aeaa4a.js +1 -0
  182. package/assets/esri/core/workers/chunks/efb4aa5886730ea377bd.js +1 -0
  183. package/assets/esri/core/workers/chunks/f2a268c69f2a5566381b.js +1 -0
  184. package/assets/esri/core/workers/chunks/{d1ccc5f2d8892328ab01.js → f5731ad4cfbbf1cc569a.js} +2 -2
  185. package/assets/esri/core/workers/chunks/f590db684d88e72bd79b.js +1 -0
  186. package/assets/esri/core/workers/chunks/f69df22a5c64389ebe28.js +1 -0
  187. package/assets/esri/core/workers/chunks/{f60292d97bcdbf19165b.js → f6d047358d14328f3622.js} +1 -1
  188. package/assets/esri/core/workers/chunks/f7fca88d120d45bb782a.js +1 -0
  189. package/assets/esri/core/workers/chunks/f819854098d63fe4ccdb.js +1 -0
  190. package/assets/esri/core/workers/chunks/f8f3579d0c1b65762902.js +1 -0
  191. package/assets/esri/core/workers/chunks/f98118127469449ca145.js +1 -0
  192. package/assets/esri/core/workers/chunks/f9ed05d4ad1f44d033bb.js +1 -0
  193. package/assets/esri/core/workers/chunks/fb6605be0c5e36785543.js +1 -0
  194. package/assets/esri/core/workers/chunks/fbe7dae0b4bf2d172487.js +1 -0
  195. package/assets/esri/core/workers/chunks/fc4d9be62cf5e9758842.js +1 -0
  196. package/assets/esri/core/workers/chunks/fd70a25ffdf2cc6c5be2.js +1 -0
  197. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  198. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  199. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  200. package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
  201. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +38 -8
  202. package/assets/esri/themes/base/widgets/_DatePicker.scss +1 -1
  203. package/assets/esri/themes/dark/main.css +1 -1
  204. package/assets/esri/themes/light/main.css +1 -1
  205. package/assets/esri/themes/light/view.css +1 -1
  206. package/chunks/GlowComposition.glsl.js +2 -2
  207. package/chunks/RealisticTree.glsl.js +17 -15
  208. package/chunks/bundle2.js +1 -1
  209. package/chunks/lyr3DMain.js +1 -1
  210. package/chunks/lyr3DWorker.js +1 -1
  211. package/chunks/vxlLayer.js +1 -1
  212. package/config.d.ts +2 -2
  213. package/config.js +1 -1
  214. package/core/Collection.d.ts +25 -25
  215. package/core/Error.d.ts +1 -1
  216. package/core/JSONSupport.d.ts +1 -1
  217. package/core/promiseUtils.d.ts +3 -3
  218. package/core/reactiveUtils.d.ts +4 -4
  219. package/core/screenUtils.js +1 -1
  220. package/core/sql/WhereClause.d.ts +1 -1
  221. package/core/sql.d.ts +1 -1
  222. package/core/timeUtils.d.ts +1 -1
  223. package/core/workers/Connection.d.ts +9 -9
  224. package/core/workers.d.ts +1 -1
  225. package/editing/types.d.ts +3 -3
  226. package/geometry/Extent.d.ts +0 -13
  227. package/geometry/Geometry.d.ts +10 -8
  228. package/geometry/Mesh.d.ts +9 -2
  229. package/geometry/Mesh.js +1 -1
  230. package/geometry/Multipoint.d.ts +9 -0
  231. package/geometry/Multipoint.js +1 -1
  232. package/geometry/Point.d.ts +15 -71
  233. package/geometry/Polygon.js +1 -1
  234. package/geometry/support/MeshMaterial.d.ts +5 -5
  235. package/geometry/support/MeshTexture.d.ts +19 -19
  236. package/geometry/support/geometryUtils.js +1 -1
  237. package/geometry/support/jsonUtils.d.ts +1 -1
  238. package/geometry/support/meshUtils.d.ts +130 -2
  239. package/geometry/support/meshUtils.js +1 -1
  240. package/graphic/AnnotationGraphicOrigin.d.ts +34 -0
  241. package/graphic/AnnotationGraphicOrigin.js +2 -0
  242. package/graphic/DimensionFeatureGraphicOrigin.d.ts +34 -0
  243. package/graphic/DimensionFeatureGraphicOrigin.js +2 -0
  244. package/identity/Credential.d.ts +1 -1
  245. package/identity/IdentityManager.d.ts +1 -1
  246. package/identity/IdentityManagerBase.js +1 -1
  247. package/identity/OAuthInfo.d.ts +1 -1
  248. package/identity/ServerInfo.d.ts +2 -2
  249. package/interfaces.d.ts +23 -0
  250. package/intl/number.d.ts +3 -3
  251. package/intl/substitute.d.ts +2 -2
  252. package/intl.d.ts +28 -28
  253. package/kernel.js +1 -1
  254. package/layers/AnnotationLayer.d.ts +263 -32
  255. package/layers/AnnotationLayer.js +1 -1
  256. package/layers/BaseDynamicLayer.d.ts +5 -5
  257. package/layers/BaseTileLayer.d.ts +4 -4
  258. package/layers/BuildingSceneLayer.d.ts +1 -1
  259. package/layers/CSVLayer.d.ts +7 -1
  260. package/layers/CatalogLayer.d.ts +6 -0
  261. package/layers/DimensionFeatureLayer.d.ts +263 -32
  262. package/layers/DimensionFeatureLayer.js +1 -1
  263. package/layers/FeatureLayer.d.ts +45 -8
  264. package/layers/FeatureLayer.js +1 -1
  265. package/layers/GeoJSONLayer.d.ts +14 -8
  266. package/layers/LinkChartLayer.js +1 -1
  267. package/layers/MapImageLayer.d.ts +5 -5
  268. package/layers/MediaLayer.d.ts +2 -2
  269. package/layers/OrientedImageryLayer.d.ts +29 -2
  270. package/layers/ParquetLayer.d.ts +7 -1
  271. package/layers/SceneLayer.d.ts +5 -3
  272. package/layers/SceneLayer.js +1 -1
  273. package/layers/StreamLayer.d.ts +1 -1
  274. package/layers/SubtypeGroupLayer.d.ts +7 -1
  275. package/layers/TileLayer.d.ts +2 -2
  276. package/layers/VideoLayer.d.ts +8 -2
  277. package/layers/VideoLayer.js +1 -1
  278. package/layers/VoxelLayer.d.ts +4 -4
  279. package/layers/WCSLayer.d.ts +2 -2
  280. package/layers/WFSLayer.d.ts +6 -0
  281. package/layers/WebTileLayer.d.ts +1 -1
  282. package/layers/catalog/CatalogFootprintLayer.d.ts +60 -11
  283. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  284. package/layers/graphics/sources/parquet/FileProvider.js +1 -1
  285. package/layers/graphics/sources/parquet/ParquetFileInfo.js +2 -0
  286. package/layers/graphics/sources/parquet/ParquetFileStatistics.js +2 -0
  287. package/layers/graphics/sources/parquet/PortalParquetFileProvider.js +1 -1
  288. package/layers/graphics/sources/parquet/PortalParquetLayerFileProvider.js +1 -1
  289. package/layers/graphics/sources/parquet/UrlsFileProvider.js +1 -1
  290. package/layers/graphics/sources/parquet/createFileProvider.js +1 -1
  291. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  292. package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +6 -0
  293. package/layers/mixins/ArcGISImageService.d.ts +7 -1
  294. package/layers/mixins/BlendLayer.d.ts +1 -1
  295. package/layers/mixins/DataSeriesLayer.d.ts +161 -0
  296. package/layers/mixins/DataSeriesLayer.js +2 -0
  297. package/layers/mixins/FeatureLayerBase.d.ts +43 -19
  298. package/layers/mixins/TemporalLayer.d.ts +4 -2
  299. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  300. package/layers/support/AnnotationSublayer.d.ts +44 -0
  301. package/layers/support/AnnotationSublayer.js +2 -0
  302. package/layers/support/DateTimeFieldFormat.d.ts +10 -10
  303. package/layers/support/FeatureEffect.d.ts +22 -22
  304. package/layers/support/FeatureReductionBinning.d.ts +12 -0
  305. package/layers/support/FeatureReductionCluster.d.ts +12 -0
  306. package/layers/support/Field.d.ts +2 -2
  307. package/layers/support/ImageElement.d.ts +1 -1
  308. package/layers/support/MosaicRule.d.ts +0 -2
  309. package/layers/support/NumberFieldFormat.d.ts +5 -5
  310. package/layers/support/StreamConnection.d.ts +1 -1
  311. package/layers/support/Sublayer.d.ts +2 -2
  312. package/layers/support/SubtypeSublayer.d.ts +14 -1
  313. package/layers/support/TimeSeriesFieldTimeMapping.d.ts +30 -0
  314. package/layers/support/TimeSeriesFieldTimeMapping.js +2 -0
  315. package/layers/support/TimeSeriesInfo.d.ts +149 -0
  316. package/layers/support/TimeSeriesInfo.js +2 -0
  317. package/layers/support/VideoElement.d.ts +1 -1
  318. package/layers/support/commonProperties.js +1 -1
  319. package/layers/support/dataSeriesUtils.d.ts +18 -0
  320. package/layers/support/dataSeriesUtils.js +2 -0
  321. package/layers/support/featureLayerUtils.js +1 -1
  322. package/layers/support/kmlUtils.js +1 -1
  323. package/layers/support/layerUtils.js +1 -1
  324. package/layers/support/parquetUtils.js +1 -1
  325. package/layers/support/tiles3DUtils.js +1 -1
  326. package/layers/support/timeSeriesUtils.d.ts +27 -0
  327. package/layers/support/timeSeriesUtils.js +2 -0
  328. package/layers/types.d.ts +1 -1
  329. package/layers/video/types.d.ts +61 -1
  330. package/libs/parquet/parquet.js +1 -1
  331. package/linkChart/ChronologicalLayoutSettings.d.ts +1 -1
  332. package/networks/CircuitManager.d.ts +1 -1
  333. package/networks/Network.d.ts +1 -1
  334. package/networks/UnitIdentifierManager.d.ts +1 -1
  335. package/networks/support/NamedTraceConfiguration.d.ts +1 -1
  336. package/networks/support/TraceConfiguration.d.ts +2 -2
  337. package/networks/support/UNTraceConfiguration.d.ts +3 -3
  338. package/networks/support/jsonTypes.d.ts +7 -1
  339. package/networks/support/utils.js +1 -1
  340. package/package.json +3 -3
  341. package/popup/content/CustomContent.d.ts +1 -1
  342. package/portal/Portal.d.ts +2 -2
  343. package/portal/jsonTypes.d.ts +2 -2
  344. package/renderers/support/AuthoringInfo.d.ts +14 -1
  345. package/renderers/support/AuthoringInfo.js +1 -1
  346. package/renderers/support/AuthoringInfoVisualVariable.d.ts +14 -1
  347. package/renderers/support/AuthoringInfoVisualVariable.js +1 -1
  348. package/renderers/support/jsonUtils.d.ts +1 -1
  349. package/renderers/support/utils.d.ts +1 -1
  350. package/renderers/visualVariables/RotationVariable.d.ts +16 -1
  351. package/renderers/visualVariables/RotationVariable.js +1 -1
  352. package/request/types.d.ts +41 -43
  353. package/rest/geometryService.d.ts +1 -1
  354. package/rest/knowledgeGraph/CreateReplicaResponse.d.ts +1 -1
  355. package/rest/knowledgeGraph/GraphApplyEdits.d.ts +1 -1
  356. package/rest/knowledgeGraph/GraphProperty.d.ts +5 -1
  357. package/rest/knowledgeGraph/GraphQueryStreamingResult.d.ts +2 -2
  358. package/rest/knowledgeGraph/wasmInterface/wasmToDataModelFactories.js +1 -1
  359. package/rest/knowledgeGraph/wasmInterface/wasmToQueryResponseObjFactories.js +1 -1
  360. package/rest/knowledgeGraph/wasmInterface/wasmToReplicaFactories.js +1 -1
  361. package/rest/knowledgeGraphService.d.ts +13 -13
  362. package/rest/layerSources/DynamicDataLayer.d.ts +1 -1
  363. package/rest/print.d.ts +1 -1
  364. package/rest/support/AttributeBinsQuery.d.ts +16 -2
  365. package/rest/support/ClosestFacilityParameters.d.ts +6 -6
  366. package/rest/support/LastMileDeliveryParameters.d.ts +4 -4
  367. package/rest/support/LocationToAddressParameters.d.ts +1 -1
  368. package/rest/support/PrintTemplate.d.ts +5 -5
  369. package/rest/support/Query.d.ts +18 -4
  370. package/rest/support/RouteParameters.d.ts +5 -5
  371. package/rest/support/ServiceAreaParameters.d.ts +6 -6
  372. package/rest/support/TopFeaturesQuery.d.ts +16 -2
  373. package/rest/support/meshFeatureSet.js +1 -1
  374. package/smartMapping/renderers/color.d.ts +40 -0
  375. package/smartMapping/renderers/color.js +1 -1
  376. package/smartMapping/renderers/opacity.d.ts +8 -0
  377. package/smartMapping/renderers/opacity.js +1 -1
  378. package/smartMapping/renderers/size.d.ts +38 -0
  379. package/smartMapping/renderers/size.js +1 -1
  380. package/smartMapping/renderers/support/regenerateUtils.js +1 -1
  381. package/smartMapping/renderers/support/timeSeriesUtils.js +2 -0
  382. package/smartMapping/renderers/type.d.ts +20 -1
  383. package/smartMapping/renderers/type.js +1 -1
  384. package/smartMapping/renderers/univariateColorSize.d.ts +19 -0
  385. package/smartMapping/renderers/univariateColorSize.js +1 -1
  386. package/support/revision.js +1 -1
  387. package/support/tests/setupServiceMocksMesh.js +1 -1
  388. package/support/timeUtils.d.ts +3 -3
  389. package/symbols/Font.d.ts +7 -7
  390. package/symbols/WebStyleSymbol.d.ts +11 -11
  391. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  392. package/symbols/cim/effects/EffectControlMeasureLine.js +1 -1
  393. package/symbols/support/Symbol3DEmissive.d.ts +8 -2
  394. package/symbols/support/jsonUtils.d.ts +1 -1
  395. package/time/TimeExtent.d.ts +2 -2
  396. package/versionManagement/VersionManagementService.d.ts +8 -8
  397. package/versionManagement/VersionManager.d.ts +13 -3
  398. package/versionManagement/VersioningState.d.ts +4 -4
  399. package/views/2d/MapViewConstraints.d.ts +29 -25
  400. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  401. package/views/2d/engine/flow/styles/Particles.js +1 -1
  402. package/views/2d/engine/flow/styles/Streamlines.js +1 -1
  403. package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
  404. package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
  405. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
  406. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPolygonShader.js +1 -1
  407. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  408. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexOutlineFillShader.js +1 -1
  409. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
  410. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
  411. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
  412. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  413. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  414. package/views/2d/layers/BaseLayerView2D.d.ts +4 -20
  415. package/views/2d/layers/BaseLayerViewGL2D.d.ts +6 -22
  416. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  417. package/views/2d/layers/GeoRSSLayerView2D.js +1 -1
  418. package/views/2d/layers/GraphicsLayerView2D.js +1 -1
  419. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  420. package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
  421. package/views/2d/layers/KMLLayerView2D.js +1 -1
  422. package/views/2d/layers/MapNotesLayerView2D.js +1 -1
  423. package/views/2d/layers/MediaLayerView2D.js +1 -1
  424. package/views/2d/layers/RouteLayerView2D.js +1 -1
  425. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  426. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  427. package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
  428. package/views/2d/layers/features/sources/strategies/ParquetSnapshotLoadStrategy.js +1 -1
  429. package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
  430. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  431. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  432. package/views/2d/layers/graphics/GraphicStore.js +1 -1
  433. package/views/2d/support/hitTestUtils.js +1 -1
  434. package/views/3d/analysis/LineOfSight/LineOfSightAggregateManipulatedObject3D.js +2 -0
  435. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +1 -1
  436. package/views/3d/analysis/LineOfSight/LineOfSightConfiguration.js +1 -1
  437. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  438. package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +1 -1
  439. package/views/3d/analysis/LineOfSight/LineOfSightPlacementLeafPlugin.js +2 -0
  440. package/views/3d/analysis/LineOfSight/LineOfSightPlacementTool.js +1 -1
  441. package/views/3d/analysis/LineOfSight/LineOfSightReshapeTool3D.js +2 -0
  442. package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +1 -1
  443. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
  444. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  445. package/views/3d/analysis/LineOfSight/LineOfSightTool2.js +1 -1
  446. package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
  447. package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
  448. package/views/3d/analysis/Viewshed/ViewshedSnappingController.js +1 -1
  449. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  450. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementError.d.ts +1 -1
  451. package/views/3d/glTF/internal/resourceUtils.js +1 -1
  452. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  453. package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
  454. package/views/3d/interactive/editingTools/reshape/isSupportedObject.js +1 -1
  455. package/views/3d/interactive/editingTools/reshape/reshapeTooltipUtils3D.js +1 -1
  456. package/views/3d/interactive/editingTools/visualElementUtils.js +1 -1
  457. package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
  458. package/views/3d/layers/FlowSubView3D.js +1 -1
  459. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  460. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  461. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  462. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  463. package/views/3d/terrain/OverlayManager.js +1 -1
  464. package/views/3d/webgl/RenderNode.d.ts +32 -11
  465. package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
  466. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  467. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  468. package/views/3d/webgl-engine/shaders/ToneMapping.glsl.js +6 -10
  469. package/views/BreakpointsOwner.d.ts +1 -1
  470. package/views/DOMContainer.d.ts +6 -6
  471. package/views/Magnifier.d.ts +1 -1
  472. package/views/MapView.d.ts +1 -1
  473. package/views/SceneView.d.ts +2 -2
  474. package/views/View2D.d.ts +62 -54
  475. package/views/Viewport2DMixin.d.ts +1 -1
  476. package/views/analysis/ElevationProfile/ElevationProfileError.d.ts +1 -1
  477. package/views/draw/plugins/PolygonPlugin.js +1 -1
  478. package/views/input/gamepad/GamepadInputDevice.d.ts +1 -1
  479. package/views/input/types.d.ts +15 -15
  480. package/views/interactive/interactiveToolUtils.js +1 -1
  481. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  482. package/views/interactive/snapping/LineSnapper.js +1 -1
  483. package/views/interactive/snapping/ParallelLineSnapper.js +1 -1
  484. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  485. package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
  486. package/views/interactive/snapping/SnappingAlgorithm.js +1 -1
  487. package/views/interactive/snapping/SnappingManager.js +1 -1
  488. package/views/interactive/snapping/snappingUtils.js +1 -1
  489. package/views/layers/FeatureLikeLayerView.d.ts +32 -5
  490. package/views/layers/FeatureLikeLayerView.js +1 -1
  491. package/views/layers/GraphicsLayerView.d.ts +6 -3
  492. package/views/layers/ImageryLayerView.d.ts +4 -0
  493. package/views/navigation/Navigation.d.ts +1 -1
  494. package/views/support/WebAssemblyRequirements.js +1 -1
  495. package/views/types.d.ts +5 -5
  496. package/webdoc/support/webdocSaveUtils.js +1 -1
  497. package/webscene/Glow.d.ts +0 -4
  498. package/widgets/BasemapGallery.d.ts +1 -1
  499. package/widgets/BasemapLayerList.d.ts +1 -1
  500. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +10 -2
  501. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  502. package/widgets/BatchAttributeForm/ReactiveContingentValuesManager.js +1 -1
  503. package/widgets/BatchAttributeForm/attachmentUtils.d.ts +14 -0
  504. package/widgets/BatchAttributeForm/attachmentUtils.js +1 -1
  505. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  506. package/widgets/BatchAttributeForm/css.js +1 -1
  507. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +8 -6
  508. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
  509. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  510. package/widgets/BatchAttributeForm/inputs/RelationshipElementInput.js +1 -1
  511. package/widgets/BatchAttributeForm/inputs/support/attachmentValidationCriteriaState.d.ts +5 -0
  512. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  513. package/widgets/BatchAttributeForm/inputs/types.d.ts +8 -1
  514. package/widgets/BatchAttributeForm/interfaceUtils.js +1 -1
  515. package/widgets/BatchAttributeForm/rendered-content/RelationshipDetails.js +1 -1
  516. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  517. package/widgets/BatchAttributeForm.d.ts +10 -2
  518. package/widgets/BatchAttributeForm.js +1 -1
  519. package/widgets/Bookmarks.d.ts +1 -1
  520. package/widgets/BuildingExplorer.d.ts +1 -1
  521. package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +2 -2
  522. package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
  523. package/widgets/CoordinateConversion.d.ts +2 -2
  524. package/widgets/Daylight.d.ts +1 -1
  525. package/widgets/Directions.d.ts +1 -1
  526. package/widgets/Editor.d.ts +1 -1
  527. package/widgets/Feature.d.ts +1 -1
  528. package/widgets/FeatureForm.d.ts +1 -1
  529. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  530. package/widgets/FeatureTable/FieldColumn.d.ts +1 -14
  531. package/widgets/FeatureTable/Grid/Column.d.ts +1 -1
  532. package/widgets/FeatureTable/Grid/Column.js +1 -1
  533. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  534. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  535. package/widgets/FeatureTable/Grid/GroupColumn.js +1 -1
  536. package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +1 -1
  537. package/widgets/FeatureTable.js +1 -1
  538. package/widgets/FeatureTemplates.d.ts +1 -1
  539. package/widgets/FloorFilter.d.ts +1 -1
  540. package/widgets/Fullscreen/FullscreenViewModel.d.ts +3 -3
  541. package/widgets/Fullscreen/FullscreenViewModel.js +1 -1
  542. package/widgets/Fullscreen.d.ts +3 -3
  543. package/widgets/LayerList/ListItemPanel.d.ts +5 -5
  544. package/widgets/Legend.d.ts +1 -1
  545. package/widgets/Locate/LocateViewModel.d.ts +2 -2
  546. package/widgets/Locate.d.ts +1 -1
  547. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  548. package/widgets/PanoramicViewer/utils.js +1 -1
  549. package/widgets/Popup.d.ts +1 -1
  550. package/widgets/Print/PrintViewModel.d.ts +2 -2
  551. package/widgets/Print/PrintViewModel.js +1 -1
  552. package/widgets/Print/TemplateOptions.d.ts +4 -4
  553. package/widgets/Print.d.ts +6 -6
  554. package/widgets/Search/SearchViewModel.d.ts +5 -5
  555. package/widgets/Search.d.ts +4 -4
  556. package/widgets/ShadowCast.d.ts +1 -1
  557. package/widgets/Sketch/SketchViewModel.d.ts +1 -1
  558. package/widgets/Slice.d.ts +1 -1
  559. package/widgets/TableList/ListItemPanel.d.ts +5 -5
  560. package/widgets/Track/TrackViewModel.d.ts +3 -3
  561. package/widgets/Track.d.ts +3 -3
  562. package/widgets/UtilityNetworkTrace.d.ts +1 -1
  563. package/widgets/VersionManagement/VersionManagementViewModel.d.ts +2 -2
  564. package/widgets/VideoPlayer/VideoPlayerViewModel.d.ts +7 -1
  565. package/widgets/VideoPlayer/VideoPlayerViewModel.js +1 -1
  566. package/widgets/Weather.d.ts +1 -1
  567. package/widgets/Widget.d.ts +1 -1
  568. package/widgets/support/ContingentValuesManager.js +1 -1
  569. package/widgets/support/forms/formUtils.js +1 -1
  570. package/widgets/support/types.d.ts +1 -1
  571. package/widgets/support/widget.d.ts +6 -6
  572. package/assets/esri/core/workers/chunks/02aaeaa988e9e7d65a7f.js +0 -1
  573. package/assets/esri/core/workers/chunks/07a242ea908aa8e2ba28.js +0 -1
  574. package/assets/esri/core/workers/chunks/0a780a883abfcdf0b900.js +0 -1
  575. package/assets/esri/core/workers/chunks/0fbf9bf52ecb4cd8293b.js +0 -1
  576. package/assets/esri/core/workers/chunks/119d352dd586f2bb61ec.js +0 -1
  577. package/assets/esri/core/workers/chunks/130784a27661de6b52a5.js +0 -1
  578. package/assets/esri/core/workers/chunks/145364aa20b4435294c2.js +0 -1
  579. package/assets/esri/core/workers/chunks/14c6419568d8a7a15cd6.js +0 -1
  580. package/assets/esri/core/workers/chunks/153dc2a0b08a0e44a881.js +0 -1
  581. package/assets/esri/core/workers/chunks/1595dc499a06b23b6a96.js +0 -1
  582. package/assets/esri/core/workers/chunks/16713986893adfbc9331.js +0 -1
  583. package/assets/esri/core/workers/chunks/1765042635084f75d2b3.js +0 -1
  584. package/assets/esri/core/workers/chunks/179c9fe4ac83b42e5976.js +0 -1
  585. package/assets/esri/core/workers/chunks/1c1515e020e32e177b54.js +0 -1
  586. package/assets/esri/core/workers/chunks/1c64e10f966e26af6fed.js +0 -1
  587. package/assets/esri/core/workers/chunks/1ddbf5f507ac153234be.js +0 -1
  588. package/assets/esri/core/workers/chunks/201007cf1a91e2b126fc.js +0 -1
  589. package/assets/esri/core/workers/chunks/20d0adc678f11981059c.js +0 -1
  590. package/assets/esri/core/workers/chunks/227eff8aa4a6f5f03bc2.js +0 -1
  591. package/assets/esri/core/workers/chunks/233ff588798c8a5eedf4.js +0 -1
  592. package/assets/esri/core/workers/chunks/24647e7424798dccdaf5.js +0 -1
  593. package/assets/esri/core/workers/chunks/249616ea2d90d40a8299.js +0 -1
  594. package/assets/esri/core/workers/chunks/24d9e4f1c7b8ff0d2cce.js +0 -1
  595. package/assets/esri/core/workers/chunks/24eaf1349ffe10e616e6.js +0 -1
  596. package/assets/esri/core/workers/chunks/29615df388a0df022d8c.js +0 -1
  597. package/assets/esri/core/workers/chunks/2bcd4d395bfe6a19ccc8.js +0 -1
  598. package/assets/esri/core/workers/chunks/2bd334f9ab89334df713.js +0 -1
  599. package/assets/esri/core/workers/chunks/2c8584ec1c3c9fd5aba2.js +0 -1
  600. package/assets/esri/core/workers/chunks/2d374cc8c54a722a7afe.js +0 -1
  601. package/assets/esri/core/workers/chunks/2e11b4e9d66474a60064.js +0 -1
  602. package/assets/esri/core/workers/chunks/2fa080539d039c92ce08.js +0 -1
  603. package/assets/esri/core/workers/chunks/3109b05fe4fc40d4f25b.js +0 -1
  604. package/assets/esri/core/workers/chunks/31442f25d550ead58fc4.js +0 -1
  605. package/assets/esri/core/workers/chunks/319ff04282dc8ae38b56.js +0 -2
  606. package/assets/esri/core/workers/chunks/32323b0e0fcecd8f640e.js +0 -1
  607. package/assets/esri/core/workers/chunks/330da3828eefd8d72d3f.js +0 -1
  608. package/assets/esri/core/workers/chunks/3402fb9c596b582311c7.js +0 -1
  609. package/assets/esri/core/workers/chunks/388e71e8f2ec41bfa5a9.js +0 -1
  610. package/assets/esri/core/workers/chunks/3a6678ee9990d7e83e15.js +0 -1
  611. package/assets/esri/core/workers/chunks/3aacaa1be5efeac23a37.js +0 -1
  612. package/assets/esri/core/workers/chunks/3b3986276e70297d573b.js +0 -1
  613. package/assets/esri/core/workers/chunks/3b765a8cac9e92f644f2.js +0 -1
  614. package/assets/esri/core/workers/chunks/3bf6d55511cd7722eb93.js +0 -1
  615. package/assets/esri/core/workers/chunks/3e012cd3ca4451f89f59.js +0 -1
  616. package/assets/esri/core/workers/chunks/40910c69307e2d2d3f28.js +0 -1
  617. package/assets/esri/core/workers/chunks/423a9882abd4a6dadf86.js +0 -1
  618. package/assets/esri/core/workers/chunks/428561df7ba6f02e2d80.js +0 -1
  619. package/assets/esri/core/workers/chunks/45323491f9005629c602.js +0 -1
  620. package/assets/esri/core/workers/chunks/46d0a25d33b5b328cfce.js +0 -1
  621. package/assets/esri/core/workers/chunks/46fbd519cc1a37923bfc.js +0 -1
  622. package/assets/esri/core/workers/chunks/47dd2bfecc5c4b5f10f0.js +0 -1
  623. package/assets/esri/core/workers/chunks/4845df00f6ebcce6ea3e.js +0 -1
  624. package/assets/esri/core/workers/chunks/48fcc10768d93e95a04e.js +0 -1
  625. package/assets/esri/core/workers/chunks/49f6c9e9980b8c624fd7.js +0 -1
  626. package/assets/esri/core/workers/chunks/4a9dd9f8aa98882218f3.js +0 -1
  627. package/assets/esri/core/workers/chunks/4bfffdfbe6d467f143a4.js +0 -1
  628. package/assets/esri/core/workers/chunks/4ef53455c8bc6efee80e.js +0 -1
  629. package/assets/esri/core/workers/chunks/518046d2b95a7590a092.js +0 -1
  630. package/assets/esri/core/workers/chunks/51ee6102f5f4840a5b47.js +0 -1
  631. package/assets/esri/core/workers/chunks/54dad475dc806a38c287.js +0 -1
  632. package/assets/esri/core/workers/chunks/552945a73a95cd2a9f54.js +0 -1
  633. package/assets/esri/core/workers/chunks/58155f24f8ed6aca7a21.js +0 -1
  634. package/assets/esri/core/workers/chunks/5838f46d341d2fde42ee.js +0 -1
  635. package/assets/esri/core/workers/chunks/58994b6bfcda5f2ada80.js +0 -1
  636. package/assets/esri/core/workers/chunks/592a599f514de373dead.js +0 -1
  637. package/assets/esri/core/workers/chunks/5aba23584e0b230c75f5.js +0 -1
  638. package/assets/esri/core/workers/chunks/5f9bacee6fbf9ac1bca0.js +0 -1
  639. package/assets/esri/core/workers/chunks/62206d5d497b95fc4caf.js +0 -1
  640. package/assets/esri/core/workers/chunks/624b1bb269744142b835.js +0 -1
  641. package/assets/esri/core/workers/chunks/64daa2a714e59d22bbd4.js +0 -1
  642. package/assets/esri/core/workers/chunks/65621650a53f69f7b05a.js +0 -1
  643. package/assets/esri/core/workers/chunks/6637f19b82555738a1d5.js +0 -1
  644. package/assets/esri/core/workers/chunks/6c9933f948efd7923aa1.js +0 -1
  645. package/assets/esri/core/workers/chunks/6cab67fc7044ee9b863b.js +0 -1
  646. package/assets/esri/core/workers/chunks/6db274f6767102a39021.js +0 -1
  647. package/assets/esri/core/workers/chunks/7014e73dfd3c8baa704c.js +0 -1
  648. package/assets/esri/core/workers/chunks/76589434d573111a8fb4.js +0 -1
  649. package/assets/esri/core/workers/chunks/767ea5b455b3823afd09.js +0 -1
  650. package/assets/esri/core/workers/chunks/77769663cd712822d33e.js +0 -1
  651. package/assets/esri/core/workers/chunks/77859a61d059738d057f.js +0 -1
  652. package/assets/esri/core/workers/chunks/7b564226def99fcf79d8.js +0 -1
  653. package/assets/esri/core/workers/chunks/7bbffe07e62897928773.js +0 -1
  654. package/assets/esri/core/workers/chunks/7cadfd7444a2a05cf2fb.js +0 -1
  655. package/assets/esri/core/workers/chunks/823789261ca3338f0fa8.js +0 -1
  656. package/assets/esri/core/workers/chunks/84b0b6e099d949e0fea5.js +0 -1
  657. package/assets/esri/core/workers/chunks/8c5a41ae68775bac3446.js +0 -1
  658. package/assets/esri/core/workers/chunks/8f94c90fdb0333da2d0f.js +0 -1
  659. package/assets/esri/core/workers/chunks/9133c1b7cc1c9da27deb.js +0 -1
  660. package/assets/esri/core/workers/chunks/9a6e62ef984e9c5babc4.js +0 -1
  661. package/assets/esri/core/workers/chunks/9d27cc631bab8aa7479e.js +0 -1
  662. package/assets/esri/core/workers/chunks/9dcfaca1f4fa8c8026ac.js +0 -1
  663. package/assets/esri/core/workers/chunks/9f23a61c60949459c14f.js +0 -30
  664. package/assets/esri/core/workers/chunks/a03c4c0bf138734a002e.js +0 -1
  665. package/assets/esri/core/workers/chunks/a0fa60a24e58f7a47e41.js +0 -1
  666. package/assets/esri/core/workers/chunks/a806ac351ef5da04c250.js +0 -1
  667. package/assets/esri/core/workers/chunks/ab94c9f62462d7a98f6a.js +0 -1
  668. package/assets/esri/core/workers/chunks/abdb05754c50776c3edd.js +0 -1
  669. package/assets/esri/core/workers/chunks/ad488985824fbb830ed6.js +0 -1
  670. package/assets/esri/core/workers/chunks/b08a1255dacf6cfcf139.js +0 -640
  671. package/assets/esri/core/workers/chunks/b098469e0010a6b44df9.js +0 -1
  672. package/assets/esri/core/workers/chunks/b0ac4b0b7aec70cfe6eb.js +0 -1
  673. package/assets/esri/core/workers/chunks/b1f1271434af302938e8.js +0 -1
  674. package/assets/esri/core/workers/chunks/bfbd1ca28ed2f263e58f.js +0 -1
  675. package/assets/esri/core/workers/chunks/c1b6de0d728d25d7905a.js +0 -1
  676. package/assets/esri/core/workers/chunks/c27cb2a83a1d2e004501.js +0 -1
  677. package/assets/esri/core/workers/chunks/c44be4aaba829e6d149d.js +0 -1
  678. package/assets/esri/core/workers/chunks/ca1b0cb14ea9ae1bf2a3.js +0 -1
  679. package/assets/esri/core/workers/chunks/ca4245414d8ecd217f9d.js +0 -1
  680. package/assets/esri/core/workers/chunks/cc479daacd2cf715baa8.js +0 -1
  681. package/assets/esri/core/workers/chunks/ce0e627a5e1cb78adce8.js +0 -1
  682. package/assets/esri/core/workers/chunks/cf7acf5acb6d322fd996.js +0 -1
  683. package/assets/esri/core/workers/chunks/d3af51a6d9014ff46170.js +0 -1
  684. package/assets/esri/core/workers/chunks/d561dc933d8fe1672d85.js +0 -1
  685. package/assets/esri/core/workers/chunks/d81291dac1932350eccd.js +0 -1
  686. package/assets/esri/core/workers/chunks/da3c54e27a808f4fcc18.js +0 -1
  687. package/assets/esri/core/workers/chunks/dc6d50e1097a920ff820.js +0 -1
  688. package/assets/esri/core/workers/chunks/dd58286dde3b20356f84.js +0 -1
  689. package/assets/esri/core/workers/chunks/dfeddb7b17fa9eaae64c.js +0 -1
  690. package/assets/esri/core/workers/chunks/e38836bfcc7a15a2fd1f.js +0 -1
  691. package/assets/esri/core/workers/chunks/e4e0c5a45cf32973d5d5.js +0 -1
  692. package/assets/esri/core/workers/chunks/e638391801ad83fe4a68.js +0 -1
  693. package/assets/esri/core/workers/chunks/e645f992ec6f935ee3a5.js +0 -1
  694. package/assets/esri/core/workers/chunks/e755477dc78e9d6038d4.js +0 -1
  695. package/assets/esri/core/workers/chunks/e7712467db46e1385cf4.js +0 -1
  696. package/assets/esri/core/workers/chunks/e9dcc3e9dbafe9bbed84.js +0 -1
  697. package/assets/esri/core/workers/chunks/ea8f642b1db933d2c26f.js +0 -1
  698. package/assets/esri/core/workers/chunks/eabd4a78221b7e733793.js +0 -1
  699. package/assets/esri/core/workers/chunks/ed2cb60e4f17f46fb78d.js +0 -1
  700. package/assets/esri/core/workers/chunks/edb55329305becdb204f.js +0 -1
  701. package/assets/esri/core/workers/chunks/eedee0af459e6b8a6116.js +0 -1
  702. package/assets/esri/core/workers/chunks/f05932aea4eb267cba4d.js +0 -1
  703. package/assets/esri/core/workers/chunks/f1fb2f12371f4c562079.js +0 -1
  704. package/assets/esri/core/workers/chunks/f3dfe1bd1146a6927407.js +0 -1
  705. package/assets/esri/core/workers/chunks/f79bd469b25099a31274.js +0 -1
  706. package/assets/esri/core/workers/chunks/ff48334528d2554db4fe.js +0 -1
  707. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringStore.js +0 -2
  708. /package/assets/esri/core/workers/chunks/{50dc9893e13396f5e35d.js.LICENSE.txt → 62e77e3c5ca9b4887923.js.LICENSE.txt} +0 -0
  709. /package/assets/esri/core/workers/chunks/{319ff04282dc8ae38b56.js.LICENSE.txt → 68f9b2da1fd08785320f.js.LICENSE.txt} +0 -0
  710. /package/assets/esri/core/workers/chunks/{c216cd5d6b5d4fe4bab3.js.LICENSE.txt → 9629601de5e44ffe90ea.js.LICENSE.txt} +0 -0
  711. /package/assets/esri/core/workers/chunks/{8244b74e9c3a30d8d2f6.js.LICENSE.txt → d9d4754062758789f186.js.LICENSE.txt} +0 -0
  712. /package/assets/esri/core/workers/chunks/{d1ccc5f2d8892328ab01.js.LICENSE.txt → f5731ad4cfbbf1cc569a.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4505],{5482(t,e,r){function n(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function i(t,e,r){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}r.d(e,{Cg:()=>n,hk:()=>o,mS:()=>i}),Object.create,Object.create;var s="function"==typeof SuppressedError?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function o(t){function e(e){t.error=t.hasError?new s(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var r,n=0;return function i(){for(;r=t.stack.pop();)try{if(!r.async&&1===n)return n=0,t.stack.push(r),Promise.resolve().then(i);if(r.dispose){var s=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(s).then(i,function(t){return e(t),i()})}else n|=1}catch(t){e(t)}if(1===n)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},83349(t,e,r){function n(t,e,r){r=r||2;var n,s,a,l,h,c,f,x=e&&e.length,y=x?e[0]*r:t.length,d=i(t,0,y,r,!0),p=[];if(!d||d.next===d.prev)return p;if(x&&(d=u(t,e,d,r)),t.length>80*r){n=a=t[0],s=l=t[1];for(var g=r;g<y;g+=r)(h=t[g])<n&&(n=h),(c=t[g+1])<s&&(s=c),h>a&&(a=h),c>l&&(l=c);f=0!==(f=Math.max(a-n,l-s))?1/f:0}return o(d,p,r,n,s,f),p}function i(t,e,r,n,i){var s,o;if(i===V(t,e,r,n)>0)for(s=e;s<r;s+=n)o=B(s,t[s],t[s+1],o);else for(s=r-n;s>=e;s-=n)o=B(s,t[s],t[s+1],o);if(o&&I(o,o.next)){var a=o.next;P(o),o=a}return o}function s(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!I(n,n.next)&&0!==w(n.prev,n,n.next))n=n.next;else{var i=n.prev;if(P(n),(n=e=i)===n.next)break;r=!0}}while(r||n!==e);return e}function o(t,e,r,n,i,u,f){if(t){!f&&u&&p(t,n,i,u);for(var x,y,d=t;t.prev!==t.next;)if(x=t.prev,y=t.next,u?l(t,n,i,u):a(t))e.push(x.i/r),e.push(t.i/r),e.push(y.i/r),P(t),t=y.next,d=y.next;else if((t=y)===d){f?1===f?o(t=h(s(t),e,r),e,r,n,i,u,2):2===f&&c(t,e,r,n,i,u):o(s(t),e,r,n,i,u,1);break}}}function a(t){var e=t.prev,r=t,n=t.next;if(w(e,r,n)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(m(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&w(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function l(t,e,r,n){var i=t.prev,s=t,o=t.next;if(w(i,s,o)>=0)return!1;for(var a=i.x<s.x?i.x<o.x?i.x:o.x:s.x<o.x?s.x:o.x,l=i.y<s.y?i.y<o.y?i.y:o.y:s.y<o.y?s.y:o.y,h=i.x>s.x?i.x>o.x?i.x:o.x:s.x>o.x?s.x:o.x,c=i.y>s.y?i.y>o.y?i.y:o.y:s.y>o.y?s.y:o.y,u=g(a,l,e,r,n),f=g(h,c,e,r,n),x=t.prevZ,y=t.nextZ;x&&x.z>=u&&y&&y.z<=f;){if(x!==t.prev&&x!==t.next&&m(i.x,i.y,s.x,s.y,o.x,o.y,x.x,x.y)&&w(x.prev,x,x.next)>=0)return!1;if(x=x.prevZ,y!==t.prev&&y!==t.next&&m(i.x,i.y,s.x,s.y,o.x,o.y,y.x,y.y)&&w(y.prev,y,y.next)>=0)return!1;y=y.nextZ}for(;x&&x.z>=u;){if(x!==t.prev&&x!==t.next&&m(i.x,i.y,s.x,s.y,o.x,o.y,x.x,x.y)&&w(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;y&&y.z<=f;){if(y!==t.prev&&y!==t.next&&m(i.x,i.y,s.x,s.y,o.x,o.y,y.x,y.y)&&w(y.prev,y,y.next)>=0)return!1;y=y.nextZ}return!0}function h(t,e,r){var n=t;do{var i=n.prev,o=n.next.next;!I(i,o)&&v(i,n,n.next,o)&&M(i,o)&&M(o,i)&&(e.push(i.i/r),e.push(n.i/r),e.push(o.i/r),P(n),P(n.next),n=t=o),n=n.next}while(n!==t);return s(n)}function c(t,e,r,n,i,a){var l=t;do{for(var h=l.next.next;h!==l.prev;){if(l.i!==h.i&&b(l,h)){var c=L(l,h);return l=s(l,l.next),c=s(c,c.next),o(l,e,r,n,i,a),void o(c,e,r,n,i,a)}h=h.next}l=l.next}while(l!==t)}function u(t,e,r,n){var o,a,l,h=[];for(o=0,a=e.length;o<a;o++)(l=i(t,e[o]*n,o<a-1?e[o+1]*n:t.length,n,!1))===l.next&&(l.steiner=!0),h.push(_(l));for(h.sort(f),o=0;o<h.length;o++)r=s(r=y(h[o],r),r.next);return r}function f(t,e){return t.x-e.x}function x(t){if(t.next.prev===t)return t;let e=t;for(;;){const r=e.next;if(r.prev===e||r===e||r===t)break;e=r}return e}function y(t,e){var r=function(t,e){var r,n=e,i=t.x,s=t.y,o=-1/0;do{if(s<=n.y&&s>=n.next.y&&n.next.y!==n.y){var a=n.x+(s-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=i&&a>o){if(o=a,a===i){if(s===n.y)return n;if(s===n.next.y)return n.next}r=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,h=r,c=r.x,u=r.y,f=1/0;n=r;do{i>=n.x&&n.x>=c&&i!==n.x&&m(s<u?i:o,s,c,u,s<u?o:i,s,n.x,n.y)&&(l=Math.abs(s-n.y)/(i-n.x),M(n,t)&&(l<f||l===f&&(n.x>r.x||n.x===r.x&&d(r,n)))&&(r=n,f=l)),n=n.next}while(n!==h);return r}(t,e);if(!r)return e;var n=L(r,t),i=s(r,r.next);let o=x(n);return s(o,o.next),i=x(i),x(e===r?i:e)}function d(t,e){return w(t.prev,t,e.prev)<0&&w(e.next,t,t.next)<0}function p(t,e,r,n){var i=t;do{null===i.z&&(i.z=g(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,s,o,a,l,h=1;do{for(r=t,t=null,s=null,o=0;r;){for(o++,n=r,a=0,e=0;e<h&&(a++,n=n.nextZ);e++);for(l=h;a>0||l>0&&n;)0!==a&&(0===l||!n||r.z<=n.z)?(i=r,r=r.nextZ,a--):(i=n,n=n.nextZ,l--),s?s.nextZ=i:t=i,i.prevZ=s,s=i;r=n}s.nextZ=null,h*=2}while(o>1)}(i)}function g(t,e,r,n,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function _(t){var e=t,r=t;do{(e.x<r.x||e.x===r.x&&e.y<r.y)&&(r=e),e=e.next}while(e!==t);return r}function m(t,e,r,n,i,s,o,a){return(i-o)*(e-a)-(t-o)*(s-a)>=0&&(t-o)*(n-a)-(r-o)*(e-a)>=0&&(r-o)*(s-a)-(i-o)*(n-a)>=0}function b(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&v(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&(M(t,e)&&M(e,t)&&function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,s=(t.y+e.y)/2;do{r.y>s!=r.next.y>s&&r.next.y!==r.y&&i<(r.next.x-r.x)*(s-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}(t,e)&&(w(t.prev,t,e.prev)||w(t,e.prev,e))||I(t,e)&&w(t.prev,t,t.next)>0&&w(e.prev,e,e.next)>0)}function w(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function I(t,e){return t.x===e.x&&t.y===e.y}function v(t,e,r,n){var i=T(w(t,e,r)),s=T(w(t,e,n)),o=T(w(r,n,t)),a=T(w(r,n,e));return i!==s&&o!==a||!(0!==i||!A(t,r,e))||!(0!==s||!A(t,n,e))||!(0!==o||!A(r,t,n))||!(0!==a||!A(r,e,n))}function A(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function T(t){return t>0?1:t<0?-1:0}function M(t,e){return w(t.prev,t,t.next)<0?w(t,e,t.next)>=0&&w(t,t.prev,e)>=0:w(t,e,t.prev)<0||w(t,t.next,e)<0}function L(t,e){var r=new k(t.i,t.x,t.y),n=new k(e.i,e.x,e.y),i=t.next,s=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,s.next=n,n.prev=s,n}function B(t,e,r,n){var i=new k(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function P(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function k(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function V(t,e,r,n){for(var i=0,s=e,o=r-n;s<r;s+=n)i+=(t[o]-t[s])*(t[s+1]+t[o+1]),o=s;return i}r.d(e,{e:()=>n}),n.deviation=function(t,e,r,n){var i=e&&e.length,s=i?e[0]*r:t.length,o=Math.abs(V(t,0,s,r));if(i)for(var a=0,l=e.length;a<l;a++){var h=e[a]*r,c=a<l-1?e[a+1]*r:t.length;o-=Math.abs(V(t,h,c,r))}var u=0;for(a=0;a<n.length;a+=3){var f=n[a]*r,x=n[a+1]*r,y=n[a+2]*r;u+=Math.abs((t[f]-t[y])*(t[x+1]-t[f+1])-(t[f]-t[x])*(t[y+1]-t[f+1]))}return 0===o&&0===u?0:Math.abs((u-o)/o)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var s=0;s<t[i].length;s++)for(var o=0;o<e;o++)r.vertices.push(t[i][s][o]);i>0&&(n+=t[i-1].length,r.holes.push(n))}return r}},32488(t,e,r){r.d(e,{A:()=>T});const n=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],i=["آ","أ","إ","ا"],s=["ﻵ","ﻷ","ﻹ","ﻻ"],o=["ﻶ","ﻸ","ﻺ","ﻼ"],a=["ا","ب","ت","ث","ج","ح","خ","د","ذ","ر","ز","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق","ك","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ی","ئ","ؤ"],l=["ﺍ","ﺏ","ﺕ","ﺙ","ﺝ","ﺡ","ﺥ","ﺩ","ﺫ","ﺭ","ﺯ","ﺱ","ﺵ","ﺹ","ﺽ","ﻁ","ﻅ","ﻉ","ﻍ","ﻑ","ﻕ","ﻙ","ﻝ","ﻡ","ﻥ","ﻩ","ﻭ","ﻱ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯼ","ﺉ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺉ","ﺅ"],h=["ﺎ","ﺐ","ﺖ","ﺚ","ﺞ","ﺢ","ﺦ","ﺪ","ﺬ","ﺮ","ﺰ","ﺲ","ﺶ","ﺺ","ﺾ","ﻂ","ﻆ","ﻊ","ﻎ","ﻒ","ﻖ","ﻚ","ﻞ","ﻢ","ﻦ","ﻪ","ﻮ","ﻲ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯽ","ﺊ","ﺆ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺊ","ﺆ"],c=["ﺎ","ﺒ","ﺘ","ﺜ","ﺠ","ﺤ","ﺨ","ﺪ","ﺬ","ﺮ","ﺰ","ﺴ","ﺸ","ﺼ","ﻀ","ﻄ","ﻈ","ﻌ","ﻐ","ﻔ","ﻘ","ﻜ","ﻠ","ﻤ","ﻨ","ﻬ","ﻮ","ﻴ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯿ","ﺌ","ﺆ","ﹱ","ﹲ","ﹴ","ﹷ","ﹹ","ﹻ","ﹽ","ﹿ","ﺀ","ﺌ","ﺆ"],u=["ﺍ","ﺑ","ﺗ","ﺛ","ﺟ","ﺣ","ﺧ","ﺩ","ﺫ","ﺭ","ﺯ","ﺳ","ﺷ","ﺻ","ﺿ","ﻃ","ﻇ","ﻋ","ﻏ","ﻓ","ﻗ","ﻛ","ﻟ","ﻣ","ﻧ","ﻫ","ﻭ","ﻳ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯾ","ﺋ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺋ","ﺅ"],f=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],x=["ً","ً","ٌ","؟","ٍ","؟","َ","َ","ُ","ُ","ِ","ِ","ّ","ّ","ْ","ْ","ء","آ","آ","أ","أ","ؤ","ؤ","إ","إ","ئ","ئ","ئ","ئ","ا","ا","ب","ب","ب","ب","ة","ة","ت","ت","ت","ت","ث","ث","ث","ث","ج","ج","ج","ج","ح","ح","ح","ح","خ","خ","خ","خ","د","د","ذ","ذ","ر","ر","ز","ز","س","س","س","س","ش","ش","ش","ش","ص","ص","ص","ص","ض","ض","ض","ض","ط","ط","ط","ط","ظ","ظ","ظ","ظ","ع","ع","ع","ع","غ","غ","غ","غ","ف","ف","ف","ف","ق","ق","ق","ق","ك","ك","ك","ك","ل","ل","ل","ل","م","م","م","م","ن","ن","ن","ن","ه","ه","ه","ه","و","و","ى","ى","ي","ي","ي","ي","ﻵ","ﻶ","ﻷ","ﻸ","ﻹ","ﻺ","ﻻ","ﻼ","؟","؟","؟"],y=["ء","ف"],d=["غ","ي"],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,m=11,b=12,w=18,I=["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"],v=[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],A=[[w,w,w,w,w,w,w,w,w,6,5,6,8,5,w,w,w,w,w,w,w,w,w,w,w,w,w,w,5,5,5,6,8,4,4,m,m,m,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,w,w,w,w,w,w,5,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,9,4,m,m,m,m,4,4,4,4,0,4,4,w,4,4,m,m,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,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,1,b,1,b,b,1,b,b,1,b,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,m,m,7,9,7,4,4,b,b,b,b,b,b,b,b,b,b,b,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,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,3,3,3,3,3,3,3,3,3,3,m,3,3,7,7,7,b,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,b,b,b,b,b,b,b,3,4,b,b,b,b,b,b,7,7,b,b,4,b,b,b,b,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,b,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,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,b,b,b,b,b,b,b,b,b,b,b,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,b,b,b,b,b,b,b,b,b,1,1,4,4,4,4,1,4,4,4,4,4],[8,8,8,8,8,8,8,8,8,8,8,w,w,w,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,m,m,m,m,m,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,w,w,w,w,w,4,4,4,4,4,w,w,w,w,w,w,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,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,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,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,b,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],[b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,b,b,b,b,b,b,b,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,m,4,4,_,_,4,4,4,4,4,m,m,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,w],[4,4,4,m,m,m,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,m,m,4,4,4,m,m,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 T{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,r){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,e,r){H=[],Y=[];for(let n=0;n<r;n++)t[n]=n,e[n]=n,H[n]=n}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,r))return t;e=this.inputFormat,r=this.outputFormat;let n=t;const a=J,c=j(e.charAt(1)),f=j(r.charAt(1)),y=(e.startsWith("I")?"L":e.charAt(0))+c,d=(r.startsWith("I")?"L":r.charAt(0))+f,p=e.charAt(2)+r.charAt(2);a.defInFormat=y,a.defOutFormat=d,a.defSwap=p;const g=M(t,y,d,p,a);let _=!1;return"R"===r.charAt(1)?_=!0:"C"!==r.charAt(1)&&"D"!==r.charAt(1)||(_="rtl"===this.checkContextual(g)),this.sourceToTarget=H,this.targetToSource=function(t){const e=new Array(t.length);for(let r=0;r<t.length;r++)e[t[r]]=r;return e}(this.sourceToTarget),K=this.targetToSource,n=e.charAt(3)===r.charAt(3)?g:"S"===r.charAt(3)?function(t,e){if(0===e.length)return"";void 0===t&&(t=!0);const r=(e=String(e)).split("");let n=0,i=1,a=r.length;t||(n=r.length-1,i=-1,a=1);const c=function(t,e,r,n){let i=0;const a=[];let c=0;for(let f=e;f*r<n;f+=r)if(R(t[f])||G(t[f])){if("ل"===t[f]&&D(t,f+r,r,n)){t[f]=Z(t[f+r],0===i?s:o),f+=r,W(t,f,r,n),a[c]=f,c++,i=0;continue}const e=t[f];1===i?t[f]=E(t,f+r,r,n)?z(t[f]):O(t[f],h):!0===E(t,f+r,r,n)?t[f]=O(t[f],u):t[f]=O(t[f],l),G(e)||(i=1),!0===N(e)&&(i=0)}else i=0;return a}(r,n,i,a);let f="";for(let e=0;e<r.length;e++)S(c,c.length,e)>-1?(q(K,e,!t,-1),H.splice(e,1)):f+=r[e];return f}(_,g):function(t,e){if(0===t.length)return"";void 0===e&&(e=!0);let r="";const n=(t=String(t)).split("");for(let s=0;s<t.length;s++){let o=!1;if(n[s]>="ﹰ"&&n[s]<"\ufeff"){const a=t.charCodeAt(s);n[s]>="ﻵ"&&n[s]<="ﻼ"?(e?(s>0&&" "===n[s-1]?r=r.slice(0,-1)+"ل":(r+="ل",o=!0),r+=i[(a-65269)/2]):(r+=i[(a-65269)/2],r+="ل",s+1<t.length&&" "===n[s+1]?s++:o=!0),o&&(q(K,s,!0,1),H.splice(s,0,H[s]))):r+=x[a-65136]}else r+=n[s]}return r}(g,_),this.sourceToTarget=H,this.targetToSource=K,this.levels=Y,n}_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=L(t);if("ltr"!==e&&"rtl"!==e){try{e=document.dir.toLowerCase()}catch(t){}"ltr"!==e&&"rtl"!==e&&(e="ltr")}return e}hasBidiChar(t){return rt.test(t)}}function M(t,e,r,n,i){const s=function(t,e,r){if(void 0===e.inFormat&&(e.inFormat=r.defInFormat),void 0===e.outFormat&&(e.outFormat=r.defOutFormat),void 0===e.swap&&(e.swap=r.defSwap),e.inFormat===e.outFormat)return e;const n=e.inFormat.slice(0,1),i=e.outFormat.slice(0,1);let s,o=e.inFormat.slice(1,4),a=e.outFormat.slice(1,4);return o.startsWith("C")&&(s=L(t),o="ltr"===s||"rtl"===s?s.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=n+o),a.startsWith("C")&&(s=L(t),"rtl"===s?a="RTL":"ltr"===s?(s=function(t){const e=t.split("");return e.reverse(),L(e.join(""))}(t),a=s.toUpperCase()):a="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=i+a),e}(t,{inFormat:e,outFormat:r,swap:n},i);if(s.inFormat===s.outFormat)return t;e=s.inFormat,r=s.outFormat,n=s.swap;const o=e.slice(0,1),a=e.slice(1,4),l=r.slice(0,1),h=r.slice(1,4);if(i.inFormat=e,i.outFormat=r,i.swap=n,"L"===o&&"VLTR"===r){if("LTR"===a)return i.dir=X,B(t,i);if("RTL"===a)return i.dir=tt,B(t,i)}if("V"===o&&"V"===l)return i.dir="RTL"===a?tt:X,V(t,i);if("L"===o&&"VRTL"===r)return"LTR"===a?(i.dir=X,t=B(t,i)):(i.dir=tt,t=B(t,i)),V(t);if("VLTR"===e&&"LLTR"===r)return i.dir=X,B(t,i);if("V"===o&&"L"===l&&a!==h)return t=V(t),"RTL"===a?M(t,"LLTR","VLTR",n,i):M(t,"LRTL","VRTL",n,i);if("VRTL"===e&&"LRTL"===r)return M(t,"LRTL","VRTL",n,i);if("L"===o&&"L"===l){const e=i.swap;return i.swap=e.slice(0,1)+"N","RTL"===a?(i.dir=tt,t=B(t,i),i.swap="N"+e.slice(1,3),i.dir=X,t=B(t,i)):(i.dir=X,t=B(t,i),i.swap="N"+e.slice(1,3),t=M(t,"VLTR","LRTL",i.swap,i)),t}return t}function L(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 B(t,e){const r=t.split(""),n=[];return P(r,n,e),function(t,e,r){if(0!==r.hiLevel&&r.swap[0]!==r.swap[1])for(let r=0;r<t.length;r++)1===e[r]&&(t[r]=F(t[r]))}(r,n,e),C(2,r,n,e),C(1,r,n,e),Y=n,r.join("")}function P(t,e,r){const n=t.length,i=r.dir?g:p;let s=0,o=-1;const a=[],l=[];r.hiLevel=r.dir,r.lastArabic=!1,r.hasUbatAl=!1,r.hasUbatB=!1,r.hasUbatS=!1;for(let e=0;e<n;e++)a[e]=k(t[e]);for(let h=0;h<n;h++){const n=s,c=U(t,a,l,h,r);l[h]=c,s=i[n][c];const u=240&s;s&=15;const f=i[s][Q];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(i[s][$])-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),r.hiLevel|=f}r.hasUbatS&&function(t,e,r,n){for(let i=0;i<r;i++)if(6===t[i]){e[i]=n.dir;for(let r=i-1;r>=0&&8===t[r];r--)e[r]=n.dir}}(a,e,n,r)}function k(t){const e=t.charCodeAt(0),r=v[e>>8];return r<100?r:A[r-100][255&e]}function V(t,e){const r=t.split("");if(e){const t=[];P(r,t,e),Y=t}return r.reverse(),H.reverse(),r.join("")}function S(t,e,r){for(let n=0;n<e;n++)if(t[n]===r)return n;return-1}function R(t){for(let e=0;e<y.length;e++)if(t>=y[e]&&t<=d[e])return!0;return!1}function E(t,e,r,n){for(;e*r<n&&G(t[e]);)e+=r;return!!(e*r<n&&R(t[e]))}function D(t,e,r,n){for(;e*r<n&&G(t[e]);)e+=r;let s=" ";if(!(e*r<n))return!1;s=t[e];for(let t=0;t<i.length;t++)if(i[t]===s)return!0;return!1}function C(t,e,r,n){if(n.hiLevel<t)return;if(1===t&&n.dir===tt&&!n.hasUbatB)return e.reverse(),void H.reverse();const i=e.length;let s,o,a,l,h,c=0;for(;c<i;){if(r[c]>=t){for(s=c+1;s<i&&r[s]>=t;)s++;for(o=c,a=s-1;o<a;o++,a--)l=e[o],e[o]=e[a],e[a]=l,h=H[o],H[o]=H[a],H[a]=h;c=s}c++}}function U(t,e,r,n,i){const s=e[n];return{UBAT_L:()=>(i.lastArabic=!1,0),UBAT_R:()=>(i.lastArabic=!1,1),UBAT_ON:()=>4,UBAT_AN:()=>3,UBAT_EN:()=>i.lastArabic?3:2,UBAT_AL:()=>(i.lastArabic=!0,i.hasUbatAl=!0,1),UBAT_WS:()=>4,UBAT_CS:()=>{let t,s;return n<1||n+1>=e.length||2!==(t=r[n-1])&&3!==t||2!==(s=e[n+1])&&3!==s?4:(i.lastArabic&&(s=3),s===t?s:4)},UBAT_ES:()=>2===(n>0?r[n-1]:5)&&n+1<e.length&&2===e[n+1]?2:4,UBAT_ET:()=>{if(n>0&&2===r[n-1])return 2;if(i.lastArabic)return 4;let t=n+1;const s=e.length;for(;t<s&&e[t]===m;)t++;return t<s&&2===e[t]?2:4},UBAT_NSM:()=>{if("VLTR"===i.inFormat){const r=e.length;let i=n+1;for(;i<r&&e[i]===b;)i++;if(i<r){const r=t[n].charCodeAt(0),s=r>=1425&&r<=2303||64286===r,o=e[i];if(s&&(1===o||7===o))return 1}}return n<1||5===e[n-1]?4:r[n-1]},UBAT_B:()=>(i.lastArabic=!0,i.hasUbatB=!0,i.dir),UBAT_S:()=>(i.hasUbatS=!0,4),UBAT_LRE:()=>(i.lastArabic=!1,4),UBAT_RLE:()=>(i.lastArabic=!1,4),UBAT_LRO:()=>(i.lastArabic=!1,4),UBAT_RLO:()=>(i.lastArabic=!1,4),UBAT_PDF:()=>(i.lastArabic=!1,4),UBAT_BN:()=>4}[I[s]]()}function F(t){let e,r=0,i=n.length-1;for(;r<=i;)if(e=Math.floor((r+i)/2),t<n[e][0])i=e-1;else{if(!(t>n[e][0]))return n[e][1];r=e+1}return t}function N(t){for(let e=0;e<f.length;e++)if(f[e]===t)return!0;return!1}function z(t){for(let e=0;e<a.length;e++)if(t===a[e])return c[e];return t}function O(t,e){for(let r=0;r<a.length;r++)if(t===a[r])return e[r];return t}function G(t){return t>="ً"&&t<="ٕ"}function j(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function W(t,e,r,n){for(;e*r<n&&G(t[e]);)e+=r;return e*r<n&&(t[e]=" ",!0)}function Z(t,e){for(let r=0;r<i.length;r++)if(t===i[r])return e[r];return t}function q(t,e,r,n){for(let i=0;i<t.length;i++)(t[i]>e||!r&&t[i]===e)&&(t[i]+=n)}let H=[],K=[],Y=[];const J={dir:0,defInFormat:"LLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,defOutFormat:""},Q=5,$=6,X=0,tt=1,et=/^[(I|V)][(L|RCD)][(Y|N)][(S|N)]N$/,rt=/[\u0591-\u06ff\ufb1d-\ufefc]/},34304(t,e,r){r.d(e,{DF:()=>l,FD:()=>i,Ov:()=>s,ct:()=>h});let n=1e-6;function i(){return n}const s=Math.random,o=Math.PI/180,a=180/Math.PI;function l(t){return t*o}function h(t){return t*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:s,equals:function(t,e){return Math.abs(t-e)<=n*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:i,setEpsilon:function(t){n=t},toDegree:h,toRadian:l},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>l,Qh:()=>o,RS:()=>i,Ul:()=>x,i5:()=>f,lM:()=>s,qK:()=>c});var n=r(34275);const i=16;function s(t){if(!t)return 0;let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return l(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let r=u;for(let n=0;n<e;n++)r+=a(t[n]);return r}(t);let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?o(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return i;case"boolean":return 4;default:return 8}}function l(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,i):0:0),0)}function h(t,e){return u+t.length*e}const c=32,u=16,f=145,x=64},51624(t,e,r){r.d(e,{A:()=>h});var n=r(44208),i=r(69397),s=r(93687);const o=4294967296,a=new TextDecoder("utf-8"),l=(0,n.A)("safari")||(0,n.A)("ios")?6:(0,n.A)("ff")?12:32;class h{constructor(t,e,r=0,n=t?.byteLength??0){this._tag=0,this._dataType=99,this._init(t,e,r,n)}[Symbol.dispose](){this.release()}_init(t,e,r,n){this._data=t,this._dataView=e,this._pos=r,this._end=n}get usedMemory(){return 64+(0,i.Qf)(this._data)}asUnsafe(){return this}clone(){return new h(this._data,this._dataView,this._pos,this._end)}clonePooled(){return h.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(t,e,r=0,n=t?.byteLength??0){const i=h.pool.acquire();return i._init(t,e,r,n),i}pos(){return this._pos}move(t){this._pos=t}nextTag(t){for(;;){if(this._pos===this._end)return!1;const e=this._decodeVarint();if(this._tag=e>>3,this._dataType=7&e,!t||t===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const t=this._decodeVarint();return this._tag=t>>3,this._dataType=7&t,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let t=4294967295;if(t=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return t;throw new Error("Varint overflow")}getPackedEnd(){const t=this.getUInt32();return this._pos+t}getUInt64(){return this._decodeVarint()}getSInt32(){const t=this.getUInt32();return t>>>1^-(1&t)}getSInt64(){return this._decodeSVarint()}getBool(){const t=0!==this._data[this._pos];return this._skip(1),t}getEnum(){return this._decodeVarint()}getFixed64(){const t=this._dataView,e=this._pos,r=t.getUint32(e,!0)+t.getUint32(e+4,!0)*o;return this._skip(8),r}getSFixed64(){const t=this._dataView,e=this._pos,r=t.getUint32(e,!0)+t.getInt32(e+4,!0)*o;return this._skip(8),r}getDouble(){const t=this._dataView.getFloat64(this._pos,!0);return this._skip(8),t}getFixed32(){const t=this._dataView.getUint32(this._pos,!0);return this._skip(4),t}getSFixed32(){const t=this._dataView.getInt32(this._pos,!0);return this._skip(4),t}getFloat(){const t=this._dataView.getFloat32(this._pos,!0);return this._skip(4),t}getString(){const t=this._getLength(),e=this._pos,r=this._toString(this._data,e,e+t);return this._skip(t),r}getBytes(){const t=this._getLength(),e=this._pos,r=this._toBytes(this._data,e,e+t);return this._skip(t),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(t,e,r,n){const i=this.getMessage(),s=t(i,e,r,n);return i.release(),s}processMessage(t){const e=this.getMessage(),r=t(e);return e.release(),r}getMessage(){const t=this._getLength(),e=h.pool.acquire();return e._init(this._data,this._dataView,this._pos,this._pos+t),this._skip(t),e}release(){h.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(t){this._skip(t)}_skip(t){if(this._pos+t>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=t}_decodeVarint(){const t=this._data;let e=this._pos,r=0,n=0;if(this._end-e>=10)do{if(n=t[e++],r|=127&n,!(128&n))break;if(n=t[e++],r|=(127&n)<<7,!(128&n))break;if(n=t[e++],r|=(127&n)<<14,!(128&n))break;if(n=t[e++],r|=(127&n)<<21,!(128&n))break;if(n=t[e++],r+=268435456*(127&n),!(128&n))break;if(n=t[e++],r+=34359738368*(127&n),!(128&n))break;if(n=t[e++],r+=4398046511104*(127&n),!(128&n))break;if(n=t[e++],r+=562949953421312*(127&n),!(128&n))break;if(n=t[e++],r+=72057594037927940*(127&n),!(128&n))break;if(n=t[e++],r+=0x8000000000000000*(127&n),!(128&n))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;e!==this._end&&(n=t[e],128&n);)++e,r+=(127&n)*i,i*=128;if(e===this._end)throw new Error("Varint overrun!");++e,r+=n*i}return this._pos=e,r}_decodeSVarint(){const t=this._data;let e,r=0,n=0;const i=1&t[this._pos];if(n=t[this._pos++],r|=127&n,!(128&n))return i?-(r+1)/2:r/2;if(n=t[this._pos++],r|=(127&n)<<7,!(128&n))return i?-(r+1)/2:r/2;if(n=t[this._pos++],r|=(127&n)<<14,!(128&n))return i?-(r+1)/2:r/2;if(n=t[this._pos++],r|=(127&n)<<21,!(128&n))return i?-(r+1)/2:r/2;if(n=t[this._pos++],r+=268435456*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(n=t[this._pos++],r+=34359738368*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(n=t[this._pos++],r+=4398046511104*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(e=BigInt(r),n=t[this._pos++],e+=0x2000000000000n*BigInt(127&n),!(128&n))return Number(i?-(e+1n)/2n:e/2n);if(n=t[this._pos++],e+=0x100000000000000n*BigInt(127&n),!(128&n))return Number(i?-(e+1n)/2n:e/2n);if(n=t[this._pos++],e+=0x8000000000000000n*BigInt(127&n),!(128&n))return Number(i?-(e+1n)/2n:e/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(t,e,r){if((r=Math.min(this._end,r))-e>l){const n=t.subarray(e,r);return a.decode(n)}let n="",i="";for(let s=e;s<r;++s){const e=t[s];128&e?i+="%"+e.toString(16):(n+=decodeURIComponent(i)+String.fromCharCode(e),i="")}return i.length&&(n+=decodeURIComponent(i)),n}_toBytes(t,e,r){return r=Math.min(this._end,r),new Uint8Array(t.buffer,e,r-e)}static{this.pool=new s.A(()=>new h(null,null),void 0,t=>{t._data=null,t._dataView=null})}}},15585(t,e,r){r.d(e,{If:()=>x,O5:()=>g,O9:()=>d,QT:()=>p,l3:()=>y});var n=r(5482),i=r(2741),s=r(49186),o=r(44208),a=r(34727);let l=null,h=null,c=null,u=null;const f=(new Float32Array(0),new Uint32Array(0),new Uint32Array(0),new Uint32Array(0),{vertices:new Float64Array(0),indices:new Uint32Array(0),outlineIndices:new Uint32Array(0),outlineRingLengths:new Uint32Array(0),vertexCount:0,indexCount:0,outlineIndexCount:0,outlineRingCount:0});async function x(){return l??=async function(){const t=await r.e(2997).then(r.bind(r,42997)),e=await t.default({locateFile:t=>(0,i.s)(`esri/core/libs/libtess/${t}`)});c=e}(),l}async function y(){return h??=async function(){const t=await r.e(9134).then(r.bind(r,99134)),e=await t.default({locateFile:t=>(0,i.s)(`esri/core/libs/libtess/${t}`)});u=e}(),h}function d(){return null!==u}function p(t,e,r=2){const i={stack:[],error:void 0,hasError:!1};try{const a=c;if(!a)throw new s.A("libtess:not-loaded","libtessF32 not loaded");const l=(0,n.mS)(i,w.from(a,t),!1),h=(0,n.mS)(i,v.from(a,e),!1),u=t.length/r*4,f=(0,n.mS)(i,new w(a,u*r),!1),x=a.triangulate(l.ptr,h.ptr,h.size,r,f.ptr,u);if((0,o.A)("esri-tessellation-debug")){const t=a.getError();0!==t&&console.warn("libtess:triangulation",A(t))}return{buffer:f.slice(0,x*r),vertexCount:x}}catch(t){i.error=t,i.hasError=!0}finally{(0,n.hk)(i)}}function g(t,e,r=2,i=!0){const l={stack:[],error:void 0,hasError:!1};try{const h=u;if(!h)throw new s.A("libtess:not-loaded","libtessF64 not loaded");const c=(0,n.mS)(l,I.from(h,t),!1),x=(0,n.mS)(l,v.from(h,e),!1),y=(0,n.mS)(l,new v(h,1),!1),d=(0,n.mS)(l,new v(h,1),!1),p=(0,n.mS)(l,new v(h,1),!1),g=(0,n.mS)(l,new v(h,1),!1),{maxVertexCount:_,maxIndexCount:m,maxOutlineIndexCount:w,maxOutlineRingCount:T}=function(t,e){const r=t.reduce((t,e)=>t+e,0),n=t.length,i=Math.max(0,t.length-1),s=Math.max(0,r+2*i-2),o=Math.max(0,Math.ceil(2*r)),l=Math.max(0,Math.ceil(3*s*2)),h=(0,a.mP)(l,3),c=r>0?Math.max(2,Math.ceil(.25*r)):0,u=r>0?Math.max(1,Math.ceil(c/3)):0;return{maxVertexCount:o,maxIndexCount:h,maxOutlineIndexCount:e?Math.max(0,r+n+c):0,maxOutlineRingCount:e?Math.max(0,n+u):0}}(e,i);let M=0,L=0,B=0,P=0,k=0;{const t={stack:[],error:void 0,hasError:!1};try{const e=(0,n.mS)(t,new I(h,_*r),!1),s=(0,n.mS)(t,new v(h,m),!1),o=(0,n.mS)(t,i?new v(h,w):null,!1),a=(0,n.mS)(t,i?new v(h,T):null,!1);if(h.triangulateIndexed(c.ptr,x.ptr,x.size,r,e.ptr,_,r,s.ptr,m,y.ptr,d.ptr,o?.ptr??0,w,a?.ptr??0,T,p.ptr,g.ptr),k=h.getError(),M=b(h)[y.ptr/Int32Array.BYTES_PER_ELEMENT],L=b(h)[d.ptr/Int32Array.BYTES_PER_ELEMENT],B=b(h)[p.ptr/Int32Array.BYTES_PER_ELEMENT],P=b(h)[g.ptr/Int32Array.BYTES_PER_ELEMENT],0===k){const t=e.slice(0,M*r);return{vertices:t,indices:s.slice(0,L),outlineIndices:i&&o?o.slice(0,B):f.outlineIndices,outlineRingLengths:i&&a?a.slice(0,P):f.outlineRingLengths,vertexCount:M,indexCount:L,outlineIndexCount:i?B:0,outlineRingCount:i?P:0}}}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}if(100903!==k)return(0,o.A)("esri-tessellation-debug")&&console.warn("libtess:triangulation",A(k)),f;const V=(0,n.mS)(l,new I(h,M*r),!1),S=(0,n.mS)(l,new v(h,L),!1),R=(0,n.mS)(l,i?new v(h,B):null,!1),E=(0,n.mS)(l,i?new v(h,P):null,!1);if(h.triangulateIndexed(c.ptr,x.ptr,x.size,r,V.ptr,M,r,S.ptr,L,y.ptr,d.ptr,R?.ptr??0,i?B:0,E?.ptr??0,i?P:0,p.ptr,g.ptr),k=h.getError(),0!==k)return(0,o.A)("esri-tessellation-debug")&&console.warn("libtess:triangulation",A(k)),f;const D=b(h)[y.ptr/Int32Array.BYTES_PER_ELEMENT],C=b(h)[d.ptr/Int32Array.BYTES_PER_ELEMENT],U=b(h)[p.ptr/Int32Array.BYTES_PER_ELEMENT],F=b(h)[g.ptr/Int32Array.BYTES_PER_ELEMENT],N=V.slice(0,D*r);return{vertices:N,indices:S.slice(0,C),outlineIndices:i&&R?R.slice(0,U):f.outlineIndices,outlineRingLengths:i&&E?E.slice(0,F):f.outlineRingLengths,vertexCount:D,indexCount:C,outlineIndexCount:i?U:0,outlineRingCount:i?F:0}}catch(t){l.error=t,l.hasError=!0}finally{(0,n.hk)(l)}}function _(t){return t.HEAPF64}function m(t){return t.HEAPF32}function b(t){return t.HEAP32}class w{static from(t,e){const r=new w(t,e.length);return r.set(e),r}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateCoordinateArray(e)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(t){m(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const r=this.ptr/this.bytesPerCoordinate;return m(this._libtess).slice(r+t,r+e)}}class I{static from(t,e){const r=new I(t,e.length);return r.set(e),r}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateCoordinateArray(e)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float64Array.BYTES_PER_ELEMENT}set(t){_(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const r=this.ptr/this.bytesPerCoordinate;return _(this._libtess).slice(r+t,r+e)}}class v{static from(t,e){const r=new v(t,e.length);return r.set(e),r}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateLengthsArray(e)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(t){b(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const r=this.ptr/this.bytesPerCoordinate;return function(t){const e=b(t);return new Uint32Array(e.buffer,e.byteOffset,e.length)}(this._libtess).slice(r+t,r+e)}}function A(t){switch(t){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${t}`}}},95108(t,e,r){r.d(e,{$3:()=>h,Ng:()=>o,R3:()=>i,Yl:()=>l,gR:()=>s,m3:()=>u,t9:()=>a});var n=r(4576);function i(t,e){const r=e[0]-t[0],n=e[1]-t[1];if(t.length>2&&e.length>2){const i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}return Math.sqrt(r*r+n*n)}function s(t,e,r,n){const[i,s]=e,[o,a]=r,[l,h]=n,c=l-o,u=h-a,f=c*c+u*u,x=(i-o)*c+(s-a)*u,y=Math.min(1,Math.max(0,x/f));return t[0]=o+c*y,t[1]=a+u*y,t}function o(t,e,r,n,i,s){let o=r,a=n,l=i-o,h=s-a;if(0!==l||0!==h){const r=((t-o)*l+(e-a)*h)/(l*l+h*h);r>1?(o=i,a=s):r>0&&(o+=l*r,a+=h*r)}return l=t-o,h=e-a,l*l+h*h}function a(t,e){return function(t,e,r){const n=t[0]+r*(e[0]-t[0]),i=t[1]+r*(e[1]-t[1]);return t.length>2&&e.length>2?[n,i,t[2]+r*(e[2]-t[2])]:[n,i]}(t,e,.5)}function l(t){const e=t.length;let r=0;for(let n=0;n<e-1;++n)r+=i(t[n],t[n+1]);return r}function h(t,e=0,r=1){let n=0;const i=t.length;let s=t[0];for(let o=1;o<i;o++){const i=t[o];n+=(i[e]-s[e])*(i[r]+s[r]),s=i}if(c(t)){const i=t[0];n+=(i[e]-s[e])*(i[r]+s[r])}return n>=0}function c(t){const e=t.length;return e>0&&!(0,n.aI)(t[0],t[e-1])}function u(t){if("rings"in t)for(const e of t.rings)c(e)&&e.push(e[0].slice())}r(52006)},52006(t,e,r){function n(t){return"curveRings"in t&&!!t.curveRings?.length||"curvePaths"in t&&!!t.curvePaths?.length}function i(t){return"curveRings"in t?t.curveRings:t.curvePaths}function s(t){return"b"in t}function o(t){return"c"in t}function a(t){return Array.isArray(t)}function l(t){return"a"in t}function h(t){return"a"in t&&4===t.a.length}function c(t){return"a"in t&&7===t.a.length}function u(t,e){return i(t).flat().some(t=>function(t,e){return!(a(t)||(s(t)?e.has("cubic-bezier"):o(t)?e.has("circular-arc"):!h(t)&&!c(t)||e.has("elliptic-arc")))}(t,e))}function f(t){return a(t)?t:s(t)?t.b[0]:o(t)?t.c[0]:t.a[0]}function x(t){if(s(t)){const[e,r,n]=t.b;return{b:[[...e],[...r],[...n]]}}if(o(t)){const[e,r]=t.c;return{c:[[...e],[...r]]}}if(a(t))return[...t];if(h(t)){const[e,r,n,i]=t.a;return{a:[[...e],[...r],n,i]}}if(c(t)){const[e,r,n,i,s,o,a]=t.a;return{a:[[...e],[...r],n,i,s,o,a]}}return t}r.d(e,{DA:()=>h,Ed:()=>n,FD:()=>i,FG:()=>l,V8:()=>u,Xq:()=>a,aO:()=>o,n1:()=>s,tk:()=>x,wY:()=>c,yP:()=>f}),r(4576)},36849(t,e,r){r.r(e),r.d(e,{default:()=>Q});var n=r(17676),i=r(6774),s=r(5408),o=r(13195);function a(t){return 746===t||747===t||!(t<4352)&&(t>=12704&&t<=12735||t>=12544&&t<=12591||t>=65072&&t<=65103&&!(t>=65097&&t<=65103)||t>=63744&&t<=64255||t>=13056&&t<=13311||t>=11904&&t<=12031||t>=12736&&t<=12783||t>=12288&&t<=12351&&!(t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=12800&&t<=13055||t>=12592&&t<=12687||t>=43360&&t<=43391||t>=55216&&t<=55295||t>=4352&&t<=4607||t>=44032&&t<=55215||t>=12352&&t<=12447||t>=12272&&t<=12287||t>=12688&&t<=12703||t>=12032&&t<=12255||t>=12784&&t<=12799||t>=12448&&t<=12543&&12540!==t||t>=65280&&t<=65519&&!(65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||t>=65104&&t<=65135&&!(t>=65112&&t<=65118||t>=65123&&t<=65126)||t>=5120&&t<=5759||t>=6320&&t<=6399||t>=65040&&t<=65055||t>=19904&&t<=19967||t>=40960&&t<=42127||t>=42128&&t<=42191)}function l(t){return!(t<11904)&&(t>=12704&&t<=12735||t>=12544&&t<=12591||t>=65072&&t<=65103||t>=63744&&t<=64255||t>=13056&&t<=13311||t>=11904&&t<=12031||t>=12736&&t<=12783||t>=12288&&t<=12351||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=12800&&t<=13055||t>=65280&&t<=65519||t>=12352&&t<=12447||t>=12272&&t<=12287||t>=12032&&t<=12255||t>=12784&&t<=12799||t>=12448&&t<=12543||t>=65040&&t<=65055||t>=42128&&t<=42191||t>=40960&&t<=42127)}function h(t){switch(t){case 10:case 32:case 38:case 40:case 41:case 43:case 45:case 47:case 173:case 183:case 8203:case 8208:case 8211:case 8231:return!0}return!1}function c(t){switch(t){case 9:case 10:case 11:case 12:case 13:case 32:return!0}return!1}var u=r(18989);const f=24;class x{constructor(t,e,r,n,i,s,o){this._glyphItems=t,this._maxWidth=e,this._lineHeight=r,this._letterSpacing=n,this._hAnchor=i,this._vAnchor=s,this._justify=o}getShaping(t,e,r){const n=this._letterSpacing,i=this._lineHeight,s=this._justify,o=this._maxWidth,u=[];let f=0,x=0;for(const e of t){const t=e.codePointAt(0);if(null==t)continue;const i=r&&a(t);let s;for(const e of this._glyphItems)if(s=e[t],s)break;u.push({codePoint:t,x:f,y:x,vertical:i,glyphItem:s}),s&&(f+=s.shaping.xAdvance+n)}let y=f;o>0&&(y=f/Math.max(1,Math.ceil(f/o)));const d=t.includes("​"),p=[],g=u.length;for(let t=0;t<g-1;t++){const e=u[t].codePoint,r=l(e);if(h(e)||r){let n=0;if(10===e)n-=1e4;else if(r&&d)n+=150;else{40!==e&&65288!==e||(n+=50);const r=u[t+1].codePoint;41!==r&&65289!==r||(n+=50)}p.push(this._buildBreak(t+1,u[t].x,y,p,n,!1))}}const _=this._optimalBreaks(this._buildBreak(g,f,y,p,0,!0));let m=0;const b=e?-i:i;let w=0;for(let t=0;t<_.length;t++){const e=_[t];let r=w;for(;r<e&&c(u[r].codePoint);)u[r].glyphItem=null,++r;let n=e-1;for(;n>r&&c(u[n].codePoint);)u[n].glyphItem=null,--n;if(r<=n){const t=u[r].x;for(let e=r;e<=n;e++)u[e].x-=t,u[e].y=x;let e=u[n].x;u[n].glyphItem&&(e+=u[n].glyphItem.shaping.xAdvance),m=Math.max(e,m),s&&this._applyJustification(u,r,n)}w=e,x+=b}if(u.length>0){const t=_.length-1,r=(s-this._hAnchor)*m;let n=(-this._vAnchor*(t+1)+.5)*i;e&&t&&(n+=t*i);for(const t of u)t.x+=r,t.y+=n}return u.filter(t=>t.glyphItem)}static getTextBox(t,e){if(!t.length)return null;let r=1/0,n=1/0,i=0,s=0;for(const o of t){const t=o.glyphItem.shaping.xAdvance,a=o.x,l=o.y-17,h=a+t,c=l+e;r=Math.min(r,a),i=Math.max(i,h),n=Math.min(n,l),s=Math.max(s,c)}return{x:r,y:n,width:i-r,height:s-n}}static getBox(t){if(!t.length)return null;let e=1/0,r=1/0,n=0,i=0;for(const s of t){const{height:t,left:o,top:a,width:l}=s.glyphItem.rect,h=s.x,c=s.y-(t-Math.abs(a)),u=h+l+o,f=c+t;e=Math.min(e,h),n=Math.max(n,u),r=Math.min(r,c),i=Math.max(i,f)}return{x:e,y:r,width:n-e,height:i-r}}static addDecoration(t,e){const r=t.length;if(0===r)return;const n={rect:new u.A(4,0,4,8),sdf:!0,page:0};let i=t[0].x+t[0].glyphItem.rect.left,s=t[0].y;for(let o=1;o<r;o++){const r=t[o];if(r.y!==s){const a=t[o-1].x+t[o-1].glyphItem.rect.left+t[o-1].glyphItem.rect.width;t.push({codePoint:0,x:i,y:s+e-3,vertical:!1,glyphItem:{mosaicItem:n,rect:{width:a-i,height:8,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0},code:0}}),s=r.y,i=r.x+r.glyphItem.rect.left}}const o=t[r-1].x+t[r-1].glyphItem.rect.left+t[r-1].glyphItem.rect.width;t.push({codePoint:0,x:i,y:s+e-3,vertical:!1,glyphItem:{mosaicItem:n,rect:{width:o-i,height:8,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0},code:0}})}_breakScore(t,e,r,n){const i=(t-e)*(t-e);return n?t<e?i/2:2*i:i+Math.abs(r)*r}_buildBreak(t,e,r,n,i,s){let o=null,a=this._breakScore(e,r,i,s);for(const t of n){const n=e-t.x,l=this._breakScore(n,r,i,s)+t.score;l<=a&&(o=t,a=l)}return{index:t,x:e,score:a,previousBreak:o}}_optimalBreaks(t){return t?this._optimalBreaks(t.previousBreak).concat(t.index):[]}_applyJustification(t,e,r){const n=t[r],i=n.vertical?f:n.glyphItem?n.glyphItem.shaping.xAdvance:0,s=(n.x+i)*this._justify;for(let n=e;n<=r;n++)t[n].x-=s}}var y=r(76213);const d=.5;class p{constructor(t,e,r=0,n=-1,i=d){this.x=t,this.y=e,this.angle=r,this.segment=n,this.minzoom=i}}class g{constructor(t,e,r,n,i,s=d,a=o.MG){this.anchor=t,this.labelAngle=e,this.glyphAngle=r,this.page=n,this.alternateVerticalGlyph=i,this.minzoom=s,this.maxzoom=a}}class _{constructor(t,e,r,n,i,s,o,a,l,h,c,u){this.tl=t,this.tr=e,this.bl=r,this.br=n,this.mosaicRect=i,this.labelAngle=s,this.minAngle=o,this.maxAngle=a,this.anchor=l,this.minzoom=h,this.maxzoom=c,this.page=u}}class m{constructor(t){this.shapes=t}}class b{getIconPlacement(t,e,r){const n=new i.bR(t.x,t.y),s=0===r.rotationAlignment,a=r.keepUpright;let l=r.rotate*o.os;s&&(l+=t.angle);const h=new m([]);return h.iconColliders=[],this._addIconPlacement(h,n,e,r,l),s&&a&&this._addIconPlacement(h,n,e,r,l+o.Jo),h}_addIconPlacement(t,e,r,n,s){const a=r.rasterizationScale,l=r.width/a,h=r.height/a,c=n.offset;let u=c[0],f=c[1];switch(n.anchor){case 0:u-=l/2,f-=h/2;break;case 1:f-=h/2;break;case 2:u-=l,f-=h/2;break;case 3:u-=l/2;break;case 4:u-=l/2,f-=h;break;case 5:break;case 7:f-=h;break;case 6:u-=l;break;case 8:u-=l,f-=h}const x=r.rect,y=2/a,p=u-y,g=f-y,m=p+x.width/a,b=g+x.height/a,w=new i.bR(p,g),I=new i.bR(m,b),v=new i.bR(p,b),A=new i.bR(m,g);if(0!==s){const t=Math.cos(s),e=Math.sin(s);w.rotate(t,e),I.rotate(t,e),v.rotate(t,e),A.rotate(t,e)}const T=new _(w,A,v,I,x,s,0,256,e,d,o.MG,0);t.shapes.push(T);{const r=n.size,i=n.padding,a={xTile:e.x,yTile:e.y,dxPixels:u*r-i,dyPixels:f*r-i,hard:!n.optional,partIndex:0,width:l*r+2*i,height:h*r+2*i,angle:s,minLod:d,maxLod:o.MG};t.iconColliders.push(a)}}getTextPlacement(t,e,r,n){const a=new i.bR(t.x,t.y),{keepUpright:l,rotate:h,rotationAlignment:c,size:u}=n,p=h*o.os,b=0===c,w=l,I=n.padding;let v=d;const A=b?t.angle:0,T=t.segment>=0&&b,M=[],L=[],B=y.Rm,P=!T;let k=Number.POSITIVE_INFINITY,V=Number.NEGATIVE_INFINITY,S=k,R=V;const E=(T||b)&&w,D=u/f;let C=!1;for(const t of e)if(t.vertical){C=!0;break}let U,F=0,N=0;if(!T&&C){const t=x.getTextBox(e,n.lineHeight*f);switch(n.anchor){case 1:F=t.height/2,N=-t.width/2;break;case 2:F=-t.height/2,N=t.width/2;break;case 3:F=t.height/2,N=t.width/2;break;case 4:F=-t.height/2,N=-t.width/2;break;case 5:F=t.height;break;case 7:N=-t.width;break;case 6:N=t.width;break;case 8:F=-t.height}}F+=n.offset[0]*f,N+=n.offset[1]*f;for(const l of e){const e=l.glyphItem?.mosaicItem,h=l.glyphItem?.rect;if(!e||e.rect.isEmpty)continue;const c=e.rect,u=e.page;if(M&&P){if(void 0!==U&&U!==l.y){let e,r,i,s;C?(e=-R+F,r=k+N,i=R-S,s=V-k):(e=k+F,r=S+N,i=V-k,s=R-S);const a={xTile:t.x,yTile:t.y,dxPixels:e*D-I,dyPixels:r*D-I,hard:!n.optional,partIndex:1,width:i*D+2*I,height:s*D+2*I,angle:p,minLod:d,maxLod:o.MG};M.push(a),k=Number.POSITIVE_INFINITY,V=Number.NEGATIVE_INFINITY,S=k,R=V}U=l.y}const f=[];if(T){const e=.5*h.width,n=(l.x+h.left-B+e)*D*s.ih;if(v=this._placeGlyph(t,v,n,r,t.segment,1,l.vertical,u,f),w&&(v=this._placeGlyph(t,v,n,r,t.segment,-1,l.vertical,u,f)),v>=2)break}else f.push(new g(a,A,A,u,!1)),b&&w&&f.push(new g(a,A+o.Jo,A+o.Jo,u,!1));const x=l.x+h.left,y=l.y-17-h.top,m=x+h.width,z=y+h.height;let O,G,j,W,Z,q,H,K;if(!T&&C)if(l.vertical){const t=(x+m)/2-h.height/2,e=(y+z)/2+h.width/2;O=new i.bR(-e-B+F,t-B+N),G=new i.bR(O.x+c.width,O.y+c.height),j=new i.bR(O.x,G.y),W=new i.bR(G.x,O.y)}else O=new i.bR(-y+B+F,x-B+N),G=new i.bR(O.x-c.height,O.y+c.width),j=new i.bR(G.x,O.y),W=new i.bR(O.x,G.y);else O=new i.bR(x-B+F,y-B+N),G=new i.bR(O.x+c.width,O.y+c.height),j=new i.bR(O.x,G.y),W=new i.bR(G.x,O.y);for(const e of f){let r,s,o,a;if(e.alternateVerticalGlyph){if(!Z){const t=(y+z)/2+N;Z=new i.bR((x+m)/2+F-h.height/2-B,t+h.width/2+B),q=new i.bR(Z.x+c.height,Z.y-c.width),H=new i.bR(q.x,Z.y),K=new i.bR(Z.x,q.y)}r=Z,s=H,o=K,a=q}else r=O,s=j,o=W,a=G;const u=y,f=z,d=e.glyphAngle+p;if(0!==d){const t=Math.cos(d),e=Math.sin(d);r=r.clone(),s=s?.clone(),o=o?.clone(),a=a?.clone(),r.rotate(t,e),a?.rotate(t,e),s?.rotate(t,e),o?.rotate(t,e)}let g=0,b=256;if(T&&C?l.vertical?e.alternateVerticalGlyph?(g=32,b=96):(g=224,b=32):(g=224,b=96):(g=192,b=64),L.push(new _(r,o,s,a,c,e.labelAngle,g,b,e.anchor,e.minzoom,e.maxzoom,e.page)),M&&(!E||this._legible(e.labelAngle)))if(P)x<k&&(k=x),u<S&&(S=u),m>V&&(V=m),f>R&&(R=f);else if(e.minzoom<2){const r={xTile:t.x,yTile:t.y,dxPixels:(x+F)*D-I,dyPixels:(u+F)*D-I,hard:!n.optional,partIndex:1,width:(m-x)*D+2*I,height:(f-u)*D+2*I,angle:d,minLod:e.minzoom,maxLod:e.maxzoom};M.push(r)}}}if(v>=2)return null;if(M&&P){let e,r,i,s;C?(e=-R+F,r=k+N,i=R-S,s=V-k):(e=k+F,r=S+N,i=V-k,s=R-S);const a={xTile:t.x,yTile:t.y,dxPixels:e*D-I,dyPixels:r*D-I,hard:!n.optional,partIndex:1,width:i*D+2*I,height:s*D+2*I,angle:p,minLod:d,maxLod:o.MG};M.push(a)}const z=new m(L);return M&&M.length>0&&(z.textColliders=M),z}_legible(t){const e=(0,o.z0)(t);return e<65||e>=193}_placeGlyph(t,e,r,n,s,a,l,h,c){let u=a;const f=u<0?(0,o.Wh)(t.angle+o.Jo,o.pJ):t.angle;let x=0;r<0&&(u*=-1,r*=-1,x=o.Jo),u>0&&++s;let y=new i.bR(t.x,t.y),d=n[s],p=o.MG;if(n.length<=s)return p;for(;;){const t=d.x-y.x,i=d.y-y.y,a=Math.sqrt(t*t+i*i),_=Math.max(r/a,e),m=t/a,b=i/a,w=(0,o.Wh)(Math.atan2(b,m)+x,o.pJ);if(c.push(new g(y,f,w,h,!1,_,p)),l&&c.push(new g(y,f,w,h,!0,_,p)),_<=e)return _;y=d.clone();do{if(s+=u,n.length<=s||s<0)return _;d=n[s]}while(y.isEqual(d));let I=d.x-y.x,v=d.y-y.y;const A=Math.sqrt(I*I+v*v);I*=a/A,v*=a/A,y.x-=I,y.y-=v,p=_}}}var w=r(51624),I=r(15585);class v{constructor(t,e,r=0){this.values={},this._geometry=void 0,this._pbfGeometry=null,this.featureIndex=r;const n=e.keys,i=e.values,s=t.asUnsafe();for(;s.next();)switch(s.tag()){case 1:this.id=s.getUInt64();break;case 2:{const t=s.getMessage().asUnsafe(),e=this.values;for(;!t.empty();){const r=t.getUInt32(),s=t.getUInt32();e[n[r]]=i[s]}t.release();break}case 3:this.type=s.getUInt32();break;case 4:this._pbfGeometry=s.getMessage();break;default:s.skip()}}getGeometry(t){if(void 0!==this._geometry)return this._geometry;if(!this._pbfGeometry)return null;const e=this._pbfGeometry.asUnsafe();let r,n;this._pbfGeometry=null,t?t.reset(this.type):r=[];let s,o=1,a=0,l=0,h=0;for(;!e.empty();){if(0===a){const t=e.getUInt32();o=7&t,a=t>>3}switch(a--,o){case 1:l+=e.getSInt32(),h+=e.getSInt32(),t?t.moveTo(l,h):r&&(n&&r.push(n),n=[],n.push(new i.bR(l,h)));break;case 2:l+=e.getSInt32(),h+=e.getSInt32(),t?t.lineTo(l,h):n&&n.push(new i.bR(l,h));break;case 7:t?t.close():n&&!n[0].equals(l,h)&&n.push(n[0].clone());break;default:throw e.release(),new Error("Invalid path operation")}}return t?s=t.result():r&&(n&&r.push(n),s=r),e.release(),this._geometry=s,s}}r(44208);class A{constructor(t){this._array=[],this._stride=t}get array(){return this._array}get index(){return 4*this._array.length/this._stride}get itemSize(){return this._stride}get sizeInBytes(){return 4*this._array.length}reset(){this.array.length=0}toBuffer(){return new Uint32Array(this._array).buffer}}class T extends A{constructor(){super(12)}add(t,e,r){const n=this.array;n.push(t),n.push(e),n.push(r)}}class M{constructor(t){this.extent=s._H,this.keys=[],this.values=[],this._pbfLayer=t.clone();const e=t.asUnsafe();for(;e.next();)switch(e.tag()){case 1:this.name=e.getString();break;case 3:this.keys.push(e.getString());break;case 4:this.values.push(e.processMessage(M._parseValue));break;case 5:this.extent=e.getUInt32();break;default:e.skip()}}getData(){return this._pbfLayer}static _parseValue(t){for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getInt64();case 5:return t.getUInt64();case 6:return t.getSInt64();case 7:return t.getBool();default:t.skip()}return null}}var L=r(89518);class B extends A{constructor(t){super(t)}add(t,e,r,n,i,s,o,a,l,h,c,u){const f=this.array;let x=(0,L.M9)(t,e);f.push(x);const y=31;x=(0,L.Ss)(Math.round(y*r),Math.round(y*n),Math.round(y*i),Math.round(y*s)),f.push(x),x=(0,L.Ss)(Math.round(y*o),Math.round(y*a),Math.round(y*l),Math.round(y*h)),f.push(x),x=(0,L.M9)(c,0),f.push(x),u&&f.push(...u)}}class P extends A{constructor(t){super(t)}add(t,e,r){const n=this.array;n.push((0,L.M9)(t,e)),r&&n.push(...r)}}class k extends A{constructor(t){super(t)}add(t,e,r,n,i,s,o){const a=this.array,l=this.index;let h=(0,L.M9)(t,e);return a.push(h),h=(0,L.Ss)(Math.round(15*r),Math.round(15*n),i,s),a.push(h),o&&a.push(...o),l}}class V extends A{constructor(t){super(t)}add(t,e,r,n,i,s,a,l,h,c,u,f){const x=this.array;let y=(0,L.M9)(t,e);x.push(y),y=(0,L.M9)(Math.round(8*r),Math.round(8*n)),x.push(y),y=(0,L.M9)((0,L.ws)(i/4,s/4),(0,L.ws)(l,h)),x.push(y),y=(0,L.M9)((0,L.ws)(0,(0,o.z0)(a)),(0,L.ws)(10*c,Math.min(10*u,255))),x.push(y),f&&x.push(...f)}}class S extends A{constructor(t){super(t)}add(t,e,r,n,i){const s=this.array,o=(0,L.M9)(2*t+r,2*e+n);s.push(o),i&&s.push(...i)}}class R{constructor(t,e,r){this.layerExtent=s._H,this._features=[],this.layer=t,this.zoom=e,this._spriteInfo=r,this._filter=t.getFeatureFilter()}pushFeature(t){this._filter&&!this._filter.filter(t,this.zoom)||this._features.push(t)}hasFeatures(){return this._features.length>0}getResources(t,e,r){}}class E extends R{constructor(t,e,r,n,i){super(t,e,r),this.type=4,this._circleVertexBuffer=n,this._circleIndexBuffer=i}get circleIndexStart(){return this._circleIndexStart}get circleIndexCount(){return this._circleIndexCount}processFeatures(t){const e=this._circleVertexBuffer,r=this._circleIndexBuffer;this._circleIndexStart=3*r.index,this._circleIndexCount=0;const n=this.layer,i=this.zoom;t&&t.setExtent(this.layerExtent);for(const s of this._features){const o=s.getGeometry(t);if(!o)continue;const a=n.circleMaterial.encodeAttributes(s,i,n);for(const t of o)if(t)for(const n of t){const t=e.index;e.add(n.x,n.y,0,0,a),e.add(n.x,n.y,0,1,a),e.add(n.x,n.y,1,0,a),e.add(n.x,n.y,1,1,a),r.add(t,t+1,t+2),r.add(t+1,t+2,t+3),this._circleIndexCount+=6}}}serialize(){let t=6;t+=this.layerUIDs.length,t+=this._circleVertexBuffer.array.length,t+=this._circleIndexBuffer.array.length;const e=new Uint32Array(t),r=new Int32Array(e.buffer);let n=0;e[n++]=this.type,e[n++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[n++]=this.layerUIDs[t];e[n++]=this._circleIndexStart,e[n++]=this._circleIndexCount,e[n++]=this._circleVertexBuffer.array.length;for(let t=0;t<this._circleVertexBuffer.array.length;t++)r[n++]=this._circleVertexBuffer.array[t];e[n++]=this._circleIndexBuffer.array.length;for(let t=0;t<this._circleIndexBuffer.array.length;t++)e[n++]=this._circleIndexBuffer.array[t];return e.buffer}}var D=r(98291),C=r(83349);class U extends R{constructor(t,e,r,n,i,s,o){super(t,e,r),this.type=1,this._patternMap=new Map,this._fillVertexBuffer=n,this._fillIndexBuffer=i,this._outlineVertexBuffer=s,this._outlineIndexBuffer=o}get fillIndexStart(){return this._fillIndexStart}get fillIndexCount(){return this._fillIndexCount}get outlineIndexStart(){return this._outlineIndexStart}get outlineIndexCount(){return this._outlineIndexCount}getResources(t,e,r){const n=this.layer,i=this.zoom,s=n.getPaintProperty("fill-pattern");if(s)if(s.isDataDriven)for(const t of this._features)e(s.getValue(i,t),!0);else e(s.getValue(i),!0)}processFeatures(t){this._fillIndexStart=3*this._fillIndexBuffer.index,this._fillIndexCount=0,this._outlineIndexStart=3*this._outlineIndexBuffer.index,this._outlineIndexCount=0;const e=this.layer,r=this.zoom,{fillMaterial:n,outlineMaterial:i,hasDataDrivenFill:s,hasDataDrivenOutline:o}=e;t&&t.setExtent(this.layerExtent);const a=e.getPaintProperty("fill-pattern"),l=a?.isDataDriven;let h=!a&&e.getPaintValue("fill-antialias",r);if(e.outlineUsesFillColor){if(h&&!e.hasDataDrivenOpacity){const t=e.getPaintValue("fill-opacity",r),n=e.getPaintValue("fill-opacity",r+1);t<1&&n<1&&(h=!1)}if(h&&!e.hasDataDrivenColor){const t=e.getPaintValue("fill-color",r),n=e.getPaintValue("fill-color",r+1);t[3]<1&&n[3]<1&&(h=!1)}}const c=this._features,u=t?.validateTessellation;if(l){const s=[];for(const l of c){const c=a.getValue(r,l),u=this._spriteInfo[c];if(!u?.rect)continue;const f=n.encodeAttributes(l,r,e,u),x=h&&o?i.encodeAttributes(l,r,e):[],y=l.getGeometry(t);s.push({ddFillAttributes:f,ddOutlineAttributes:x,page:u.page,geometry:y}),s.sort((t,e)=>t.page-e.page)}for(const{ddFillAttributes:t,ddOutlineAttributes:r,page:n,geometry:i}of s)this._processFeature(i,h,e.outlineUsesFillColor,t,r,u,n)}else for(const a of c){const l=s?n.encodeAttributes(a,r,e):null,c=h&&o?i.encodeAttributes(a,r,e):null,f=a.getGeometry(t);this._processFeature(f,h,e.outlineUsesFillColor,l,c,u)}}serialize(){let t=10;t+=this.layerUIDs.length,t+=this._fillVertexBuffer.array.length,t+=this._fillIndexBuffer.array.length,t+=this._outlineVertexBuffer.array.length,t+=this._outlineIndexBuffer.array.length,t+=3*this._patternMap.size+1;const e=new Uint32Array(t),r=new Int32Array(e.buffer);let n=0;e[n++]=this.type,e[n++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[n++]=this.layerUIDs[t];e[n++]=this._fillIndexStart,e[n++]=this._fillIndexCount,e[n++]=this._outlineIndexStart,e[n++]=this._outlineIndexCount;const i=this._patternMap,s=i.size;if(e[n++]=s,s>0)for(const[t,[r,s]]of i)e[n++]=t,e[n++]=r,e[n++]=s;e[n++]=this._fillVertexBuffer.array.length;for(let t=0;t<this._fillVertexBuffer.array.length;t++)r[n++]=this._fillVertexBuffer.array[t];e[n++]=this._fillIndexBuffer.array.length;for(let t=0;t<this._fillIndexBuffer.array.length;t++)e[n++]=this._fillIndexBuffer.array[t];e[n++]=this._outlineVertexBuffer.array.length;for(let t=0;t<this._outlineVertexBuffer.array.length;t++)r[n++]=this._outlineVertexBuffer.array[t];e[n++]=this._outlineIndexBuffer.array.length;for(let t=0;t<this._outlineIndexBuffer.array.length;t++)e[n++]=this._outlineIndexBuffer.array[t];return e.buffer}_processFeature(t,e,r,n,i,s,o){if(!t)return;const a=t.length,l=!i||0===i.length;if(e&&(!r||l))for(let e=0;e<a;e++)this._processOutline(t[e],i);let h;for(let e=0;e<a;e++){const r=U._area(t[e]);r>32?(void 0!==h&&this._processFill(t,h,n,s,o),h=[e]):r<-32&&void 0!==h&&h.push(e)}void 0!==h&&this._processFill(t,h,n,s,o)}_processOutline(t,e){const r=this._outlineVertexBuffer,n=this._outlineIndexBuffer,s=n.index;let o,a,l;const h=new i.bR(0,0),c=new i.bR(0,0),u=new i.bR(0,0);let f=-1,x=-1,y=-1,d=-1,p=-1,g=!1,_=t.length;if(_<2)return;const m=t[0];let b=t[_-1];for(;_&&b.isEqual(m);)--_,b=t[_-1];if(!(_-0<2)){for(let i=0;i<_;++i){0===i?(o=t[_-1],a=t[0],l=t[1],h.assignSub(a,o),h.normalize(),h.rightPerpendicular()):(o=a,a=l,l=i!==_-1?t[i+1]:t[0],h.assign(c));const s=this._isClipEdge(o,a);-1===d&&(g=s),c.assignSub(l,a),c.normalize(),c.rightPerpendicular();const m=h.x*c.y-h.y*c.x;u.assignAdd(h,c),u.normalize();const b=-u.x*-h.x+-u.y*-h.y;let w=Math.abs(0!==b?1/b:1);w>8&&(w=8),m>=0?(y=r.add(a.x,a.y,h.x,h.y,0,1,e),-1===d&&(d=y),f>=0&&x>=0&&y>=0&&!s&&n.add(f,x,y),x=r.add(a.x,a.y,w*-u.x,w*-u.y,0,-1,e),-1===p&&(p=x),f>=0&&x>=0&&y>=0&&!s&&n.add(f,x,y),f=x,x=y,y=r.add(a.x,a.y,u.x,u.y,0,1,e),f>=0&&x>=0&&y>=0&&!s&&n.add(f,x,y),x=r.add(a.x,a.y,c.x,c.y,0,1,e),f>=0&&x>=0&&y>=0&&!s&&n.add(f,x,y)):(y=r.add(a.x,a.y,w*u.x,w*u.y,0,1,e),-1===d&&(d=y),f>=0&&x>=0&&y>=0&&!s&&n.add(f,x,y),x=r.add(a.x,a.y,-h.x,-h.y,0,-1,e),-1===p&&(p=x),f>=0&&x>=0&&y>=0&&!s&&n.add(f,x,y),f=x,x=y,y=r.add(a.x,a.y,-u.x,-u.y,0,-1,e),f>=0&&x>=0&&y>=0&&!s&&n.add(f,x,y),f=r.add(a.x,a.y,-c.x,-c.y,0,-1,e),f>=0&&x>=0&&y>=0&&!s&&n.add(f,x,y))}f>=0&&x>=0&&d>=0&&!g&&n.add(f,x,d),f>=0&&d>=0&&p>=0&&!g&&n.add(f,p,d),this._outlineIndexCount+=3*(n.index-s)}}_processFill(t,e,r,n,i){let s;e.length>1&&(s=[]);let o=0;for(const r of e)0!==o&&s.push(o),o+=t[r].length;const a=2*o,l=D.A.acquire();for(const r of e){const e=t[r],n=e.length;for(let t=0;t<n;++t)l.push(e[t].x,e[t].y)}const h=(0,C.e)(l,s,2);if(C.e.deviation(l,s,2,h)>0){const n=e.map(e=>t[e].length),{buffer:s,vertexCount:o}=(0,I.QT)(l,n);if(o>0){const t=this._fillVertexBuffer.index;for(let t=0;t<o;t++)this._fillVertexBuffer.add(s[2*t],s[2*t+1],r);for(let e=0;e<o;e+=3){const r=t+e;this._fillIndexBuffer.add(r,r+1,r+2)}if(void 0!==i){const t=this._patternMap,e=t.get(i);e?e[1]+=o:t.set(i,[this._fillIndexStart+this._fillIndexCount,o])}this._fillIndexCount+=o}}else{const t=h.length;if(t>0){const e=this._fillVertexBuffer.index;let n=0;for(;n<a;)this._fillVertexBuffer.add(l[n++],l[n++],r);let s=0;for(;s<t;)this._fillIndexBuffer.add(e+h[s++],e+h[s++],e+h[s++]);if(void 0!==i){const e=this._patternMap,r=e.get(i);r?r[1]+=t:e.set(i,[this._fillIndexStart+this._fillIndexCount,t])}this._fillIndexCount+=t}}D.A.release(l)}_isClipEdge(t,e){return t.x===e.x?t.x<=-64||t.x>=4160:t.y===e.y&&(t.y<=-64||t.y>=4160)}static _area(t){let e=0;const r=t.length-1;for(let n=0;n<r;n++)e+=(t[n].x-t[n+1].x)*(t[n].y+t[n+1].y);return e+=(t[r].x-t[0].x)*(t[r].y+t[0].y),.5*e}}var F=r(83773);class N extends R{constructor(t,e,r,n,i){super(t,e,r),this.type=2,this._tessellationOptions={pixelCoordRatio:8,halfWidth:0,offset:0},this._patternMap=new Map,this.tessellationProperties={_lineVertexBuffer:null,_lineIndexBuffer:null,_ddValues:null},this.tessellationProperties._lineVertexBuffer=n,this.tessellationProperties._lineIndexBuffer=i,this._lineTessellator=new F.i(z(this.tessellationProperties),O(this.tessellationProperties),t.canUseThinTessellation)}get lineIndexStart(){return this._lineIndexStart}get lineIndexCount(){return this._lineIndexCount}getResources(t,e,r){const n=this.layer,i=this.zoom,s=n.getPaintProperty("line-pattern"),o=n.getPaintProperty("line-dasharray"),a=n.getLayoutProperty("line-cap");if(!s&&!o)return;const l=a?.getValue(i)||0,h=a?.isDataDriven,c=s?.isDataDriven,u=o?.isDataDriven;if(c||u)for(const t of this._features)e(c?s.getValue(i,t):this._getDashArrayKey(t,i,n,o,h,a,l));else if(s)e(s.getValue(i));else if(o){const t=o.getValue(i);e(n.getDashKey(t,l))}}processFeatures(t){this._lineIndexStart=3*this.tessellationProperties._lineIndexBuffer.index,this._lineIndexCount=0;const e=this.layer,r=this.zoom,n=this._features,i=this._tessellationOptions,{hasDataDrivenLine:s,lineMaterial:o}=e;t&&t.setExtent(this.layerExtent);const a=e.getPaintProperty("line-pattern"),l=e.getPaintProperty("line-dasharray"),h=a?.isDataDriven,c=l?.isDataDriven;let u;u=e.getLayoutProperty("line-cap");const f=u?.isDataDriven?u:null,x=f?null:e.getLayoutValue("line-cap",r),y=x||0,d=!!f;u=e.getLayoutProperty("line-join");const p=u?.isDataDriven?u:null,g=p?null:e.getLayoutValue("line-join",r);u=e.getLayoutProperty("line-miter-limit");const _=u?.isDataDriven?u:null,m=_?null:e.getLayoutValue("line-miter-limit",r);u=e.getLayoutProperty("line-round-limit");const b=u?.isDataDriven?u:null,w=b?null:e.getLayoutValue("line-round-limit",r);u=e.getPaintProperty("line-width");const I=u?.isDataDriven?u:null,v=I?null:e.getPaintValue("line-width",r);u=e.getPaintProperty("line-offset");const A=u?.isDataDriven?u:null,T=A?null:e.getPaintValue("line-offset",r);if(h||c){const s=[];for(const i of n){const n=h?a.getValue(r,i):this._getDashArrayKey(i,r,e,l,d,f,y),c=this._spriteInfo[n];if(!c?.rect)continue;const u=o.encodeAttributes(i,r,e,c),M=i.getGeometry(t);s.push({ddAttributes:u,page:c.page,cap:f?f.getValue(r,i):x,join:p?p.getValue(r,i):g,miterLimit:_?_.getValue(r,i):m,roundLimit:b?b.getValue(r,i):w,halfWidth:.5*(I?I.getValue(r,i):v),offset:A?A.getValue(r,i):T,geometry:M})}s.sort((t,e)=>t.page-e.page),i.textured=!0;for(const{ddAttributes:t,page:e,cap:r,join:n,miterLimit:o,roundLimit:a,halfWidth:l,offset:h,geometry:c}of s)i.capType=r,i.joinType=n,i.miterLimit=o,i.roundLimit=a,i.halfWidth=l,i.offset=h,this._processFeature(c,t,e)}else{if(a){const t=a.getValue(r),e=this._spriteInfo[t];if(!e?.rect)return}i.textured=!(!a&&!l),i.capType=x,i.joinType=g,i.miterLimit=m,i.roundLimit=w,i.halfWidth=.5*v,i.offset=T;for(const a of n){const n=s?o.encodeAttributes(a,r,e):null;f&&(i.capType=f.getValue(r,a)),p&&(i.joinType=p.getValue(r,a)),_&&(i.miterLimit=_.getValue(r,a)),b&&(i.roundLimit=b.getValue(r,a)),I&&(i.halfWidth=.5*I.getValue(r,a)),A&&(i.offset=A.getValue(r,a));const l=a.getGeometry(t);this._processFeature(l,n)}}}serialize(){let t=6;t+=this.layerUIDs.length,t+=this.tessellationProperties._lineVertexBuffer.array.length,t+=this.tessellationProperties._lineIndexBuffer.array.length,t+=3*this._patternMap.size+1;const e=new Uint32Array(t),r=new Int32Array(e.buffer);let n=0;e[n++]=this.type,e[n++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[n++]=this.layerUIDs[t];e[n++]=this._lineIndexStart,e[n++]=this._lineIndexCount;const i=this._patternMap,s=i.size;if(e[n++]=s,s>0)for(const[t,[r,s]]of i)e[n++]=t,e[n++]=r,e[n++]=s;e[n++]=this.tessellationProperties._lineVertexBuffer.array.length;for(let t=0;t<this.tessellationProperties._lineVertexBuffer.array.length;t++)r[n++]=this.tessellationProperties._lineVertexBuffer.array[t];e[n++]=this.tessellationProperties._lineIndexBuffer.array.length;for(let t=0;t<this.tessellationProperties._lineIndexBuffer.array.length;t++)e[n++]=this.tessellationProperties._lineIndexBuffer.array[t];return e.buffer}_processFeature(t,e,r){if(!t)return;const n=t.length;for(let i=0;i<n;i++)this._processGeometry(t[i],e,r)}_processGeometry(t,e,r){if(t.length<2)return;let n,i,s=t[0],o=1;for(;o<t.length;)n=t[o].x-s.x,i=t[o].y-s.y,n*n+i*i<1e-6?t.splice(o,1):(s=t[o],++o);if(t.length<2)return;const a=this.tessellationProperties._lineIndexBuffer,l=3*a.index;this._tessellationOptions.initialDistance=0,this._tessellationOptions.wrapDistance=65535,this.tessellationProperties._ddValues=e,this._lineTessellator.tessellate(t,this._tessellationOptions);const h=3*a.index-l;if(void 0!==r){const t=this._patternMap,e=t.get(r);e?e[1]+=h:t.set(r,[l+this._lineIndexCount,h])}this._lineIndexCount+=h}_getDashArrayKey(t,e,r,n,i,s,o){const a=i?s.getValue(e,t):o,l=n.getValue(e,t);return r.getDashKey(l,a)}}const z=t=>(e,r,n,i,s,o,a,l,h,c,u)=>(t._lineVertexBuffer.add(e,r,a,l,n,i,s,o,h,c,u,t._ddValues),t._lineVertexBuffer.index-1),O=t=>(e,r,n)=>{t._lineIndexBuffer.add(e,r,n)};var G=r(32488),j=r(97768),W=r(799),Z=r(4264);function q(t,e){return t.iconMosaicItem&&e.iconMosaicItem?t.iconMosaicItem.page===e.iconMosaicItem.page?0:t.iconMosaicItem.page-e.iconMosaicItem.page:t.iconMosaicItem&&!e.iconMosaicItem?1:!t.iconMosaicItem&&e.iconMosaicItem?-1:0}class H extends R{constructor(t,e,r,n,i,s,o,a,l){super(e,r,l.getSpriteItems()),this.type=3,this._markerMap=new Map,this._glyphMap=new Map,this._glyphBufferDataStorage=new Map,this._isIconSDF=!1,this._sourceTileKey=t,this._iconVertexBuffer=n,this._iconIndexBuffer=i,this._textVertexBuffer=s,this._textIndexBuffer=o,this._placementEngine=a,this._workerTileHandler=l}get markerPageMap(){return this._markerMap}get glyphsPageMap(){return this._glyphMap}get symbolInstances(){return this._symbolInstances}static{this._bidiEngine=new G.A}getResources(t,e,r){const n=this.layer,i=this.zoom;t&&t.setExtent(this.layerExtent);const s=n.getLayoutProperty("icon-image"),o=n.getLayoutProperty("text-field");let a=n.getLayoutProperty("text-transform"),l=n.getLayoutProperty("text-font");const h=[];let c,u,f,x;s&&!s.isDataDriven&&(c=s.getValue(i)),o&&!o.isDataDriven&&(u=o.getValue(i)),a&&a.isDataDriven||(f=n.getLayoutValue("text-transform",i),a=null),l&&l.isDataDriven||(x=n.getLayoutValue("text-font",i),l=null);for(const y of this._features){const d=y.getGeometry(t);if(!d||0===d.length)continue;let p,g;s&&(p=s.isDataDriven?s.getValue(i,y):this._replaceKeys(c,y.values),p&&e(p));let _=!1;if(o&&(g=o.isDataDriven?o.getValue(i,y):this._replaceKeys(u,y.values),g)){switch(g=g.replaceAll("\\n","\n"),a&&(f=a.getValue(i,y)),f){case 2:g=g.toLowerCase();break;case 1:g=g.toUpperCase()}if(H._bidiEngine.hasBidiChar(g)){let t;t="rtl"===H._bidiEngine.checkContextual(g)?"IDNNN":"ICNNN",g=H._bidiEngine.bidiTransform(g,t,"VLYSN"),_=!0}if(g.length>0){l&&(x=l.getValue(i,y));for(const t of x){let e=r[t];e||(e=r[t]=new Set);for(const t of g){const r=t.codePointAt(0);null!=r&&e.add(r)}}}}if(!p&&!g)continue;const m=n.getLayoutValue("symbol-sort-key",i,y),b={feature:y,sprite:p,label:g,rtl:_,geometry:d,hash:(g?(0,W.Wm)(g):0)^(p?(0,W.Wm)(p):0),priority:m,textFont:x};h.push(b)}this._symbolFeatures=h}processFeatures(t){t&&t.setExtent(this.layerExtent);const e=this.layer,r=this.zoom,n=e.getLayoutValue("symbol-placement",r),i=0!==n,a=e.getLayoutValue("symbol-spacing",r)*s.ih,l=e.getLayoutProperty("icon-image"),h=e.getLayoutProperty("text-field"),c=l?new Z.aR(e,r,i):null,u=h?new Z.uU(e,r,i):null,y=this._workerTileHandler;let d;l&&(d=y.getSpriteItems()),this._iconIndexStart=3*this._iconIndexBuffer.index,this._textIndexStart=3*this._textIndexBuffer.index,this._iconIndexCount=0,this._textIndexCount=0,this._markerMap.clear(),this._glyphMap.clear();const g=[];let _=1;u?.size&&(_=u.size/f);const m=u?u.maxAngle*o.os:0,b=u?u.size*s.ih:0;for(const t of this._symbolFeatures){let e,o;c&&d&&t.sprite&&(e=d[t.sprite],e&&e.sdf&&(this._isIconSDF=!0)),e&&c.update(r,t.feature);let l=0;const h=t.label;if(h){(0,j.Lw)(u),u.update(r,t.feature);const e=i&&0===u.rotationAlignment?u.keepUpright:u.writingMode&&u.writingMode.includes(1);let n=.5;switch(u.anchor){case 5:case 1:case 7:n=0;break;case 6:case 2:case 8:n=1}let a=.5;switch(u.anchor){case 5:case 3:case 6:a=0;break;case 7:case 4:case 8:a=1}let c=.5;switch(u.justify){case 0:c=n;break;case 1:c=0;break;case 3:c=1}const d=u.letterSpacing*f,p=i?0:u.maxWidth*f,g=u.lineHeight*f,m=t.textFont.map(t=>y.getGlyphItems(t));if(o=new x(m,p,g,d,n,a,c).getShaping(h,t.rtl,e),o&&o.length>0){let t=1e30,e=-1e30;for(const r of o)t=Math.min(t,r.x),e=Math.max(e,r.x);l=(e-t+48)*_*s.ih}}for(let r of t.geometry){const h=[];if(1===n){if(o?.length&&u?.size){const t=u.size*s.ih*(2+Math.min(2,4*Math.abs(u.offset[1])));r=H._smoothVertices(r,t)}H._pushAnchors(h,r,a,l)}else 2===n?H._pushCenterAnchor(h,r):3===t.feature.type?H._pushCentroid(h,r):h.push(new p(r[0].x,r[0].y));for(const n of h){if(n.x<0||n.x>s._H||n.y<0||n.y>s._H)continue;if(i&&l>0&&0===u?.rotationAlignment&&!H._honorsTextMaxAngle(r,n,l,m,b))continue;const a={shaping:o,line:r,iconMosaicItem:e,anchor:n,symbolFeature:t,textColliders:[],iconColliders:[],textVertexRanges:[],iconVertexRanges:[]};g.push(a),this._processFeature(a,c,u)}}}g.sort(q),this._addPlacedGlyphs(),this._symbolInstances=g}serialize(){let t=14;t+=this.layerUIDs.length,t+=3*this.markerPageMap.size,t+=3*this.glyphsPageMap.size,t+=H._symbolsSerializationLength(this._symbolInstances),t+=this._iconVertexBuffer.array.length,t+=this._iconIndexBuffer.array.length,t+=this._textVertexBuffer.array.length,t+=this._textIndexBuffer.array.length;const e=new Uint32Array(t),r=new Int32Array(e.buffer),n=new Float32Array(e.buffer),[i,s,o]=this._sourceTileKey.split("/");let a=0;e[a++]=this.type,e[a++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[a++]=this.layerUIDs[t];e[a++]=this._isIconSDF?1:0,e[a++]=parseFloat(i),e[a++]=parseFloat(s),e[a++]=parseFloat(o),e[a++]=this.markerPageMap.size;for(const[t,[r,n]]of this.markerPageMap)e[a++]=t,e[a++]=r,e[a++]=n;e[a++]=this.glyphsPageMap.size;for(const[t,[r,n]]of this.glyphsPageMap)e[a++]=t,e[a++]=r,e[a++]=n;e[a++]=this._iconVertexBuffer.index/4,e[a++]=this._textVertexBuffer.index/4,a=H.serializeSymbols(e,r,n,a,this._symbolInstances),e[a++]=this._iconVertexBuffer.array.length;for(let t=0;t<this._iconVertexBuffer.array.length;t++)r[a++]=this._iconVertexBuffer.array[t];e[a++]=this._iconIndexBuffer.array.length;for(let t=0;t<this._iconIndexBuffer.array.length;t++)e[a++]=this._iconIndexBuffer.array[t];e[a++]=this._textVertexBuffer.array.length;for(let t=0;t<this._textVertexBuffer.array.length;t++)r[a++]=this._textVertexBuffer.array[t];e[a++]=this._textIndexBuffer.array.length;for(let t=0;t<this._textIndexBuffer.array.length;t++)e[a++]=this._textIndexBuffer.array[t];return e.buffer}static _symbolsSerializationLength(t){let e=0;e+=1;for(const r of t||[]){e+=5,e+=1;for(const t of r.textColliders)e+=10;for(const t of r.iconColliders)e+=10;e+=1,e+=2*r.textVertexRanges.length,e+=1,e+=2*r.iconVertexRanges.length}return e}static serializeSymbols(t,e,r,n,i){i=i||[],e[n++]=i.length;for(const t of i){e[n++]=t.anchor.x,e[n++]=t.anchor.y,e[n++]=t.symbolFeature.hash,e[n++]=t.symbolFeature.priority,e[n++]=t.symbolFeature.feature.featureIndex,e[n++]=t.textColliders.length+t.iconColliders.length;for(const i of t.textColliders)e[n++]=i.xTile,e[n++]=i.yTile,e[n++]=i.dxPixels,e[n++]=i.dyPixels,e[n++]=i.hard?1:0,e[n++]=i.partIndex,r[n++]=i.minLod,r[n++]=i.maxLod,e[n++]=i.width,e[n++]=i.height;for(const i of t.iconColliders)e[n++]=i.xTile,e[n++]=i.yTile,e[n++]=i.dxPixels,e[n++]=i.dyPixels,e[n++]=i.hard?1:0,e[n++]=i.partIndex,r[n++]=i.minLod,r[n++]=i.maxLod,e[n++]=i.width,e[n++]=i.height;e[n++]=t.textVertexRanges.length;for(const[r,i]of t.textVertexRanges)e[n++]=r,e[n++]=i;e[n++]=t.iconVertexRanges.length;for(const[r,i]of t.iconVertexRanges)e[n++]=r,e[n++]=i}return n}_replaceKeys(t,e){return t.replaceAll(/{([^{}]+)}/g,(t,r)=>r in e?e[r]:"")}_processFeature(t,e,r){const{line:n,iconMosaicItem:i,shaping:s,anchor:a}=t,l=this.zoom,h=this.layer,c=!!i;let u=!0;c&&(u=e?.optional||!i);const f=s&&s.length>0,x=!f||r?.optional;let y,d;if(c&&(y=this._placementEngine.getIconPlacement(a,i,e)),(y||u)&&(f&&(d=this._placementEngine.getTextPlacement(a,s,n,r)),d||x)){if(y&&d||(x||u?x||d?u||y||(d=null):y=null:(y=null,d=null)),d){const e=h.hasDataDrivenText?h.textMaterial.encodeAttributes(t.symbolFeature.feature,l,h):null;if(this._storePlacedGlyphs(t,d.shapes,l,r.rotationAlignment,e),d.textColliders){t.textColliders=d.textColliders;for(const t of d.textColliders){t.minLod=Math.max(l+(0,o.p6)(t.minLod),0),t.maxLod=Math.min(l+(0,o.p6)(t.maxLod),25);const e=t.angle;if(e){const r=Math.cos(e),n=Math.sin(e),i=t.dxPixels*r-t.dyPixels*n,s=t.dxPixels*n+t.dyPixels*r,o=(t.dxPixels+t.width)*r-t.dyPixels*n,a=(t.dxPixels+t.width)*n+t.dyPixels*r,l=t.dxPixels*r-(t.dyPixels+t.height)*n,h=t.dxPixels*n+(t.dyPixels+t.height)*r,c=(t.dxPixels+t.width)*r-(t.dyPixels+t.height)*n,u=(t.dxPixels+t.width)*n+(t.dyPixels+t.height)*r,f=Math.min(i,o,l,c),x=Math.max(i,o,l,c),y=Math.min(s,a,h,u),d=Math.max(s,a,h,u);t.dxPixels=f,t.dyPixels=y,t.width=x-f,t.height=d-y}}}}if(y){const r=h.hasDataDrivenIcon?h.iconMaterial.encodeAttributes(t.symbolFeature.feature,l,h):null;if(this._addPlacedIcons(t,y.shapes,l,i.page,1===e.rotationAlignment,r),y.iconColliders){t.iconColliders=y.iconColliders;for(const t of y.iconColliders){t.minLod=Math.max(l+(0,o.p6)(t.minLod),0),t.maxLod=Math.min(l+(0,o.p6)(t.maxLod),25);const e=t.angle;if(e){const r=Math.cos(e),n=Math.sin(e),i=t.dxPixels*r-t.dyPixels*n,s=t.dxPixels*n+t.dyPixels*r,o=(t.dxPixels+t.width)*r-t.dyPixels*n,a=(t.dxPixels+t.width)*n+t.dyPixels*r,l=t.dxPixels*r-(t.dyPixels+t.height)*n,h=t.dxPixels*n+(t.dyPixels+t.height)*r,c=(t.dxPixels+t.width)*r-(t.dyPixels+t.height)*n,u=(t.dxPixels+t.width)*n+(t.dyPixels+t.height)*r,f=Math.min(i,o,l,c),x=Math.max(i,o,l,c),y=Math.min(s,a,h,u),d=Math.max(s,a,h,u);t.dxPixels=f,t.dyPixels=y,t.width=x-f,t.height=d-y}}}}}}_addPlacedIcons(t,e,r,n,i,s){const a=Math.max(r-1,0),l=this._iconVertexBuffer,h=this._iconIndexBuffer,c=this._markerMap;for(const u of e){const e=i?0:Math.max(r+(0,o.p6)(u.minzoom),a),f=i?25:Math.min(r+(0,o.p6)(u.maxzoom),25);if(f<=e)continue;const x=u.tl,y=u.tr,d=u.bl,p=u.br,g=u.mosaicRect,_=u.labelAngle,m=u.minAngle,b=u.maxAngle,w=u.anchor,I=l.index,v=g.x,A=g.y,T=v+g.width,M=A+g.height,L=l.index;l.add(w.x,w.y,x.x,x.y,v,A,_,m,b,e,f,s),l.add(w.x,w.y,y.x,y.y,T,A,_,m,b,e,f,s),l.add(w.x,w.y,d.x,d.y,v,M,_,m,b,e,f,s),l.add(w.x,w.y,p.x,p.y,T,M,_,m,b,e,f,s),t.iconVertexRanges.length>0&&t.iconVertexRanges[0][0]+t.iconVertexRanges[0][1]===L?t.iconVertexRanges[0][1]+=4:t.iconVertexRanges.push([L,4]),h.add(I,I+1,I+2),h.add(I+1,I+2,I+3),c.has(n)?c.get(n)[1]+=6:c.set(n,[this._iconIndexStart+this._iconIndexCount,6]),this._iconIndexCount+=6}}_addPlacedGlyphs(){const t=this._textVertexBuffer,e=this._textIndexBuffer,r=this._glyphMap;for(const[n,i]of this._glyphBufferDataStorage)for(const s of i){const i=t.index,o=s.symbolInstance,a=s.ddAttributes,l=t.index;t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.tl[0],s.tl[1],s.xmin,s.ymin,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.tr[0],s.tr[1],s.xmax,s.ymin,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.bl[0],s.bl[1],s.xmin,s.ymax,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.br[0],s.br[1],s.xmax,s.ymax,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),o.textVertexRanges.length>0&&o.textVertexRanges[0][0]+o.textVertexRanges[0][1]===l?o.textVertexRanges[0][1]+=4:o.textVertexRanges.push([l,4]),e.add(i,i+1,i+2),e.add(i+1,i+2,i+3),r.has(n)?r.get(n)[1]+=6:r.set(n,[this._textIndexStart+this._textIndexCount,6]),this._textIndexCount+=6}this._glyphBufferDataStorage.clear()}_storePlacedGlyphs(t,e,r,n,i){const s=Math.max(r-1,0),a=1===n;let l,h,c,u,f,x,y,d,p,g,_;for(const n of e)l=a?0:Math.max(r+(0,o.p6)(n.minzoom),s),h=a?25:Math.min(r+(0,o.p6)(n.maxzoom),25),h<=l||(c=n.tl,u=n.tr,f=n.bl,x=n.br,y=n.labelAngle,d=n.minAngle,p=n.maxAngle,g=n.anchor,_=n.mosaicRect,this._glyphBufferDataStorage.has(n.page)||this._glyphBufferDataStorage.set(n.page,[]),this._glyphBufferDataStorage.get(n.page).push({glyphAnchor:[g.x,g.y],tl:[c.x,c.y],tr:[u.x,u.y],bl:[f.x,f.y],br:[x.x,x.y],xmin:_.x,ymin:_.y,xmax:_.x+_.width,ymax:_.y+_.height,labelAngle:y,minAngle:d,maxAngle:p,minLod:l,maxLod:h,placementLod:s,symbolInstance:t,ddAttributes:i}))}static _pushAnchors(t,e,r,n){r+=n;let s=0;const a=e.length-1;for(let t=0;t<a;t++)s+=i.bR.distance(e[t],e[t+1]);let l=n||r;if(l*=.5,s<=l)return;const h=l/s;let c=0,u=-(r=s/Math.max(Math.round(s/r),1))/2;const f=e.length-1;for(let n=0;n<f;n++){const i=e[n],s=e[n+1],a=s.x-i.x,l=s.y-i.y,f=Math.sqrt(a*a+l*l);let x;for(;u+r<c+f;){u+=r;const e=(u-c)/f,y=(0,o.GW)(i.x,s.x,e),d=(0,o.GW)(i.y,s.y,e);void 0===x&&(x=Math.atan2(l,a)),t.push(new p(y,d,x,n,h))}c+=f}}static _pushCenterAnchor(t,e){let r=0;const n=e.length-1;for(let t=0;t<n;t++)r+=i.bR.distance(e[t],e[t+1]);const s=r/2;let a=0;const l=e.length-1;for(let r=0;r<l;r++){const n=e[r],i=e[r+1],l=i.x-n.x,h=i.y-n.y,c=Math.sqrt(l*l+h*h);if(s<a+c){const e=(s-a)/c,u=(0,o.GW)(n.x,i.x,e),f=(0,o.GW)(n.y,i.y,e),x=Math.atan2(h,l);return void t.push(new p(u,f,x,r,0))}a+=c}}static _deviation(t,e,r){const n=(e.x-t.x)*(r.x-e.x)+(e.y-t.y)*(r.y-e.y),i=(e.x-t.x)*(r.y-e.y)-(e.y-t.y)*(r.x-e.x);return Math.atan2(i,n)}static _honorsTextMaxAngle(t,e,r,n,s){let o=0;const a=r/2;let l=new i.bR(e.x,e.y),h=e.segment+1;for(;o>-a;){if(--h,h<0)return!1;o-=i.bR.distance(t[h],l),l=t[h]}o+=i.bR.distance(t[h],t[h+1]);const c=[];let u=0;const f=t.length;for(;o<a;){const e=t[h];let r,a=h;do{if(++a,a===f)return!1;r=t[a]}while(r.isEqual(e));let l,x=a;do{if(++x,x===f)return!1;l=t[x]}while(l.isEqual(r));const y=this._deviation(e,r,l);for(c.push({deviation:y,distToAnchor:o}),u+=y;o-c[0].distToAnchor>s;)u-=c.shift().deviation;if(Math.abs(u)>n)return!1;o+=i.bR.distance(r,l),h=a}return!0}static _smoothVertices(t,e){if(e<=0)return t;let r=t.length;if(r<3)return t;const n=[];let s=0,o=0;n.push(0);for(let e=1;e<r;e++){const r=i.bR.distance(t[e],t[e-1]);r>0&&(s+=r,n.push(s),o++,o!==e&&(t[o]=t[e]))}if(r=o+1,r<3)return t;e=Math.min(e,.2*s);const a=t[0].x,l=t[0].y,h=t[r-1].x,c=t[r-1].y,u=i.bR.sub(t[0],t[1]);u.normalize(),t[0].x+=e*u.x,t[0].y+=e*u.y,u.assignSub(t[r-1],t[r-2]),u.normalize(),t[r-1].x+=e*u.x,t[r-1].y+=e*u.y,n[0]-=e,n[r-1]+=e;const f=[];f.push(new i.bR(a,l));const x=1e-6,y=.5*e;for(let s=1;s<r-1;s++){let o=0,a=0,l=0;for(let r=s-1;r>=0;r--){const i=y+n[r+1]-n[s];if(i<0)break;const h=n[r+1]-n[r],c=n[s]-n[r]<y?1:i/h;if(c<x)break;const u=c*c,f=c*i-.5*u*h,d=c*h/e,p=t[r+1],g=t[r].x-p.x,_=t[r].y-p.y;o+=d/f*(p.x*c*i+.5*u*(i*g-h*p.x)-u*c*h*g/3),a+=d/f*(p.y*c*i+.5*u*(i*_-h*p.y)-u*c*h*_/3),l+=d}for(let i=s+1;i<r;i++){const r=y-n[i-1]+n[s];if(r<0)break;const h=n[i]-n[i-1],c=n[i]-n[s]<y?1:r/h;if(c<x)break;const u=c*c,f=c*r-.5*u*h,d=c*h/e,p=t[i-1],g=t[i].x-p.x,_=t[i].y-p.y;o+=d/f*(p.x*c*r+.5*u*(r*g-h*p.x)-u*c*h*g/3),a+=d/f*(p.y*c*r+.5*u*(r*_-h*p.y)-u*c*h*_/3),l+=d}f.push(new i.bR(o/l,a/l))}return f.push(new i.bR(h,c)),t[0].x=a,t[0].y=l,t[r-1].x=h,t[r-1].y=c,f}static _pushCentroid(t,e){const r=s._H,n=s._H,i=e.length-1;let o=0,a=0,l=0,h=e[0].x,c=e[0].y;h>r&&(h=r),h<0&&(h=0),c>n&&(c=n),c<0&&(c=0);for(let t=1;t<i;t++){let i=e[t].x,s=e[t].y,u=e[t+1].x,f=e[t+1].y;i>r&&(i=r),i<0&&(i=0),s>n&&(s=n),s<0&&(s=0),u>r&&(u=r),u<0&&(u=0),f>n&&(f=n),f<0&&(f=0);const x=(i-h)*(f-c)-(u-h)*(s-c);o+=x*(h+i+u),a+=x*(c+s+f),l+=x}o/=3*l,a/=3*l,isNaN(o)||isNaN(a)||t.push(new p(o,a))}}class K{constructor(t,e,r,n,s,a){if(this._pbfTiles={},this._tileClippers={},this._client=r,this._tile=e,this._sourceDataMaxLOD=n,a){this._styleLayerUIDs=new Set;for(const t of a)this._styleLayerUIDs.add(t)}this._styleRepository=s,this._layers=this._styleRepository?.layers??[];const[l,h,c]=e.tileKey.split("/").map(parseFloat);this._level=l;const u=(0,o.IU)(this._level);for(const e of Object.keys(t)){const r=t[e];if(this._pbfTiles[e]=new w.A(new Uint8Array(r.protobuff),new DataView(r.protobuff)),r.refKey){const[t]=r.refKey.split("/").map(parseFloat),n=l-t;if(n>0){const t=(1<<n)-1,r=h&t,s=c&t;this._tileClippers[e]=new i.O3(n,r,s,8,u)}}this._tileClippers[e]||(this._tileClippers[e]=new i.Ox)}}_canParseStyleLayer(t){return!this._styleLayerUIDs||this._styleLayerUIDs.has(t)}async parse(t){const e=(0,I.If)(),r=this._initialize(t),{returnedBuckets:n}=r;this._processLayers(r),this._linkReferences(r),this._filterFeatures(r);const i=[],s=new Set,o=(t,e)=>{s.has(t)||(i.push({name:t,repeat:e}),s.add(t))},a={};for(const t of n)t.getResources(t.tileClipper,o,a);if(4===this._tile.status)return[];const l=this._fetchResources(i,a,t);return Promise.all([...l,e]).then(()=>this._processFeatures(r.returnedBuckets))}_initialize(t){const e=t?.signal;return{signal:e,sourceNameToTileData:this._parseTileData(this._pbfTiles),layers:this._layers,zoom:this._level,sourceNameToTileClipper:this._tileClippers,sourceNameToUniqueSourceLayerBuckets:{},sourceNameToUniqueSourceLayers:{},returnedBuckets:[],layerIdToBucket:{},referencerUIDToReferencedId:new Map}}_processLayers(t){const{sourceNameToTileData:e,zoom:r,layers:n,sourceNameToTileClipper:i,sourceNameToUniqueSourceLayerBuckets:s,sourceNameToUniqueSourceLayers:o,returnedBuckets:a,layerIdToBucket:l,referencerUIDToReferencedId:h}=t,c=this._sourceDataMaxLOD;for(let t=n.length-1;t>=0;t--){const u=n[t];if(r<c){if(u.minzoom&&r<Math.floor(u.minzoom)||u.maxzoom&&r>=u.maxzoom)continue}else if(u.maxzoom&&r>=u.maxzoom)continue;if(0===u.type||!this._canParseStyleLayer(u.uid)||!e[u.source]||!i[u.source])continue;const f=e[u.source],x=i[u.source],y=u.sourceLayer,d=f[y];if(d){let t=o[u.source];if(t||(t=o[u.source]=new Set),t.add(u.sourceLayer),u.refLayerId)h.set(u.uid,u.refLayerId);else{const t=this._createBucket(u);if(t){t.layerUIDs=[u.uid],t.layerExtent=d.extent,t.tileClipper=x;let e=s[u.source];e||(e=s[u.source]={});let r=e[y];r||(r=e[y]=[]),r.push(t),a.push(t),l[u.id]=t}}}}}_linkReferences(t){const{layerIdToBucket:e,referencerUIDToReferencedId:r}=t;r.forEach((t,r)=>{e[t]&&e[t].layerUIDs.push(r)})}_filterFeatures(t){const{signal:e,sourceNameToTileData:r,sourceNameToUniqueSourceLayerBuckets:i,sourceNameToUniqueSourceLayers:s}=t,o=10*this._level,a=10*(this._level+1),l=[],h=[];for(const t of Object.keys(s))s[t].forEach(e=>{l.push(e),h.push(t)});for(let t=0;t<l.length;t++){const s=h[t],c=l[t];if(!r[s]||!i[s])continue;const u=r[s][c],f=i[s][c];if(!f||0===f.length)continue;if((0,n.G4)(e))return;let x=0;const y=u.getData();for(;y.nextTag(2);){const t=y.getMessage(),e=new v(t,u,x++);t.release();const r=e.values;if(r){const t=r._minzoom;if(t&&t>=a)continue;const e=r._maxzoom;if(e&&e<=o)continue}for(const t of f)t.pushFeature(e)}}}_fetchResources(t,e,r){const n=[],i=this._tile.getWorkerTileHandler();let s,o;t.length>0&&(s=i.fetchSprites(t,this._client,r),n.push(s));for(const t in e){const s=e[t];s.size>0&&(o=i.fetchGlyphs(this._tile.tileKey,t,s,this._client,r),n.push(o))}return n}_processFeatures(t){const e=t.filter(t=>t.hasFeatures()||this._canParseStyleLayer(t.layer.uid));for(const t of e)t.processFeatures(t.tileClipper);return e}_parseTileData(t){const e={};for(const r of Object.keys(t)){const n=t[r],i={};for(;n.next();)switch(n.tag()){case 3:{const t=n.getMessage(),e=new M(t);t.release(),i[e.name]=e;break}default:n.skip()}e[r]=i}return e}_createBucket(t){switch(t.type){case 0:return null;case 1:return this._createFillBucket(t);case 2:return this._createLineBucket(t);case 4:return this._createCircleBucket(t);case 3:return this._createSymbolBucket(t)}}_createFillBucket(t){return new U(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new P(t.fillMaterial.getStride()),new T,new k(t.outlineMaterial.getStride()),new T)}_createLineBucket(t){return new N(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new B(t.lineMaterial.getStride()),new T)}_createCircleBucket(t){return new E(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new S(t.circleMaterial.getStride()),new T)}_createSymbolBucket(t){const e=this._tile;return new H(e.tileKey,t,this._level,new V(t.iconMaterial.getStride()),new T,new V(t.textMaterial.getStride()),new T,e.placementEngine,e.getWorkerTileHandler())}}class Y{constructor(t,e,r,n){this.status=0,this.placementEngine=new b,this.tileKey=t,this.refKeys=e,this._workerTileHandler=r,this._styleRepository=n}release(){this.tileKey="",this.refKeys=null,this.status=0,this._workerTileHandler=null}async parse(t,e){const r=e?.signal;if(null!=r){const t=()=>{r.removeEventListener("abort",t),this.status=4};r.addEventListener("abort",t)}let i;const s={bucketsWithData:[],emptyBuckets:null};try{i=await this._parse(t,e)}catch(t){if((0,n.zf)(t))throw t;return{result:s,transferList:[]}}this.status=2;const o=s.bucketsWithData,a=[];for(const t of i)if(t.hasFeatures()){const e=t.serialize();o.push(e)}else a.push(t.layer.uid);const l=[...o];let h=null;return a.length>0&&(h=Uint32Array.from(a),l.push(h.buffer)),s.emptyBuckets=h,{result:s,transferList:l}}setObsolete(){this.status=4}getLayers(){return this._workerTileHandler.getLayers()}getWorkerTileHandler(){return this._workerTileHandler}async _parse(t,e){const r=t.sourceName2DataAndRefKey;return 0===Object.keys(r).length?[]:(this.status=3,new K(r,this,e.client,t.sourceDataMaxLOD,this._styleRepository,t.styleLayerUIDs).parse(e))}}var J=r(45013);class Q{constructor(){this._spriteInfo={},this._glyphInfo={},this._sourceDataMaxLOD=25}reset(){return this._spriteInfo={},this._glyphInfo={},Promise.resolve()}getLayers(){return this._styleRepository?.layers??[]}async createTileAndParse(t,e){const{key:r}=t,i={};for(const e of Object.keys(t.sourceName2DataAndRefKey)){const r=t.sourceName2DataAndRefKey[e];i[e]=r.refKey}const s=new Y(r,i,this,this._styleRepository);try{return await s.parse({...t,sourceDataMaxLOD:this._sourceDataMaxLOD},e)}catch(t){if(s.setObsolete(),s.release(),!(0,n.zf)(t))throw t;return null}}updateStyle(t){if(!t||0===t.length||!this._styleRepository)return;const e=this._styleRepository;for(const r of t){const t=r.type,n=r.data;switch(t){case 0:e.setPaintProperties(n.layer,n.paint);break;case 1:e.setLayoutProperties(n.layer,n.layout);break;case 3:e.deleteStyleLayer(n.layer);break;case 2:e.setStyleLayer(n.layer,n.index);break;case 4:this._spriteInfo={}}}}setStyle(t){const{style:e,sourceDataMaxLOD:r}=t;this._styleRepository=new J.A(e),this._sourceDataMaxLOD=r,this._spriteInfo={},this._glyphInfo={}}fetchSprites(t,e,r){const n=[],i=this._spriteInfo;for(const e of t)void 0===i[e.name]&&n.push(e);return 0===n.length?Promise.resolve():e.invoke("getSprites",n,{signal:r?.signal}).then(t=>{for(const e in t){const r=t[e];i[e]=r}})}getSpriteItems(){return this._spriteInfo}fetchGlyphs(t,e,r,n,i){const s=[];let o=this._glyphInfo[e];return o?r.forEach(t=>{o[t]||s.push(t)}):(o=this._glyphInfo[e]=[],r.forEach(t=>s.push(t))),0===s.length?Promise.resolve():n.invoke("getGlyphs",{tileID:t,font:e,codePoints:s},i).then(t=>{for(let e=0;e<t.length;e++)t[e]&&(o[e]=t[e])})}getGlyphItems(t){return this._glyphInfo[t]}}},18989(t,e,r){r.d(e,{A:()=>n});class n{constructor(t=0,e=0,r=0,n=0){this.x=t,this.y=e,this.width=r,this.height=n}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)}}},83773(t,e,r){r.d(e,{i:()=>y});var n=r(76213);function i(t,e){return t.x===e.x&&t.y===e.y}function s(t){if(!t)return;const e=t.length;if(e<=1)return;let r=0;for(let n=1;n<e;n++)i(t[n],t[r])||++r===n||(t[r]=t[n]);t.length=r+1}function o(t,e){return t.x=e.y,t.y=-e.x,t}function a(t,e){return t.x=-e.y,t.y=e.x,t}function l(t,e){return t.x=e.x,t.y=e.y,t}function h(t,e){return t.x=-e.x,t.y=-e.y,t}function c(t){return Math.sqrt(t.x*t.x+t.y*t.y)}function u(t,e){return t.x*e.y-t.y*e.x}function f(t,e){return t.x*e.x+t.y*e.y}function x(t,e,r,n){return t.x=e.x*r+e.y*n,t.y=e.x*n-e.y*r,t}class y{constructor(t,e,r){this._writeVertex=t,this._writeTriangle=e,this._canUseThinTessellation=r,this._prevNormal={x:void 0,y:void 0},this._nextNormal={x:void 0,y:void 0},this._textureNormalLeft={x:0,y:1},this._textureNormalRight={x:0,y:-1},this._textureNormal={x:void 0,y:void 0},this._joinNormal={x:void 0,y:void 0},this._inner={x:void 0,y:void 0},this._outer={x:void 0,y:void 0},this._roundStart={x:void 0,y:void 0},this._roundEnd={x:void 0,y:void 0},this._startBreak={x:void 0,y:void 0},this._endBreak={x:void 0,y:void 0},this._innerPrev={x:void 0,y:void 0},this._innerNext={x:void 0,y:void 0},this._bevelStart={x:void 0,y:void 0},this._bevelEnd={x:void 0,y:void 0},this._bevelMiddle={x:void 0,y:void 0}}tessellate(t,e,r=this._canUseThinTessellation){s(t),r&&e.halfWidth<n.Gh&&!e.offset?this._tessellateThin(t,e):this._tessellate(t,e)}_tessellateThin(t,e){if(t.length<2)return;const r=e.wrapDistance||65535;let n=e.initialDistance||0,i=!1,s=t[0].x,o=t[0].y;const a=t.length;for(let e=1;e<a;++e){i&&(i=!1,n=0);let a=t[e].x,l=t[e].y,h=a-s,c=l-o,u=Math.sqrt(h*h+c*c);if(h/=u,c/=u,n+u>r){i=!0;const t=(r-n)/u;u=r-n,a=(1-t)*s+t*a,l=(1-t)*o+t*l,--e}const f=this._writeVertex(s,o,0,0,h,c,c,-h,0,-1,n),x=this._writeVertex(s,o,0,0,h,c,-c,h,0,1,n);n+=u;const y=this._writeVertex(a,l,0,0,h,c,c,-h,0,-1,n),d=this._writeVertex(a,l,0,0,h,c,-c,h,0,1,n);this._writeTriangle(f,x,y),this._writeTriangle(x,y,d),s=a,o=l}}_tessellate(t,e){const r=t[0],n=t[t.length-1],s=i(r,n),y=s?3:2;if(t.length<y)return;const d=e.pixelCoordRatio,p=null!=e.capType?e.capType:0,g=null!=e.joinType?e.joinType:2,_=null!=e.miterLimit?Math.min(e.miterLimit,4):2,m=null!=e.roundLimit?Math.min(e.roundLimit,1.05):1.05,b=null!=e.halfWidth?e.halfWidth:2,w=!!e.textured;let I,v,A,T=null;const M=this._prevNormal,L=this._nextNormal;let B=-1,P=-1;const k=this._joinNormal;let V,S;const R=this._textureNormalLeft,E=this._textureNormalRight,D=this._textureNormal;let C=-1,U=-1;const F=e.wrapDistance||65535;let N=e.initialDistance||0;const z=this._writeVertex,O=this._writeTriangle,G=(t,e,r,n,i,s)=>{const o=z(v,A,V,S,r,n,t,e,i,s,N);return C>=0&&U>=0&&o>=0&&O(C,U,o),C=U,U=o,o};s&&(I=t[t.length-2],L.x=n.x-I.x,L.y=n.y-I.y,P=c(L),L.x/=P,L.y/=P);let j=!1;for(let e=0;e<t.length;++e){if(j&&(j=!1,N=0),I&&(M.x=-L.x,M.y=-L.y,B=P,N+B>F&&(j=!0)),j){const r=(F-N)/B;B=F-N,I={x:(1-r)*I.x+r*t[e].x,y:(1-r)*I.y+r*t[e].y},--e}else I=t[e];v=I.x,A=I.y;const r=e<=0&&!j,n=e===t.length-1;if(r||(N+=B),T=n?s?t[1]:null:t[e+1],T?(L.x=T.x-v,L.y=T.y-A,P=c(L),L.x/=P,L.y/=P):(L.x=void 0,L.y=void 0),!s){if(r){a(k,L),V=k.x,S=k.y,2===p&&(G(-L.y-L.x,L.x-L.y,L.x,L.y,0,-1),G(L.y-L.x,-L.x-L.y,L.x,L.y,0,1)),1===p&&(G(-L.y-L.x,L.x-L.y,L.x,L.y,-1,-1),G(L.y-L.x,-L.x-L.y,L.x,L.y,-1,1)),1!==p&&0!==p||(G(-L.y,L.x,L.x,L.y,0,-1),G(L.y,-L.x,L.x,L.y,0,1));continue}if(n){o(k,M),V=k.x,S=k.y,1!==p&&0!==p||(G(M.y,-M.x,-M.x,-M.y,0,-1),G(-M.y,M.x,-M.x,-M.y,0,1)),2===p&&(G(M.y-M.x,-M.x-M.y,-M.x,-M.y,0,-1),G(-M.y-M.x,M.x-M.y,-M.x,-M.y,0,1)),1===p&&(G(M.y-M.x,-M.x-M.y,-M.x,-M.y,1,-1),G(-M.y-M.x,M.x-M.y,-M.x,-M.y,1,1));continue}}let i,y,z=-u(M,L);if(Math.abs(z)<.01)f(M,L)>0?(k.x=M.x,k.y=M.y,z=1,i=Number.MAX_VALUE,y=!0):(a(k,L),z=1,i=1,y=!1);else{k.x=(M.x+L.x)/z,k.y=(M.y+L.y)/z,i=c(k);const t=(i-1)*b*d;y=i>4||t>B&&t>P}V=k.x,S=k.y;let O=g;switch(g){case 0:i<1.05&&(O=2);break;case 1:i<m&&(O=2);break;case 2:i>_&&(O=0)}switch(O){case 2:if(G(k.x,k.y,-M.x,-M.y,0,-1),G(-k.x,-k.y,-M.x,-M.y,0,1),n)break;if(w){const t=j?0:N;C=this._writeVertex(v,A,V,S,L.x,L.y,k.x,k.y,0,-1,t),U=this._writeVertex(v,A,V,S,L.x,L.y,-k.x,-k.y,0,1,t)}break;case 0:{const t=z<0;let e,r,i,s;if(t){const t=C;C=U,U=t,e=R,r=E}else e=E,r=R;if(y)i=t?a(this._innerPrev,M):o(this._innerPrev,M),s=t?o(this._innerNext,L):a(this._innerNext,L);else{const e=t?h(this._inner,k):l(this._inner,k);i=e,s=e}const c=t?o(this._bevelStart,M):a(this._bevelStart,M);G(i.x,i.y,-M.x,-M.y,e.x,e.y);const u=G(c.x,c.y,-M.x,-M.y,r.x,r.y);if(n)break;const f=t?a(this._bevelEnd,L):o(this._bevelEnd,L);if(y){const t=this._writeVertex(v,A,V,S,-M.x,-M.y,0,0,0,0,N);C=this._writeVertex(v,A,V,S,L.x,L.y,s.x,s.y,e.x,e.y,N),U=this._writeVertex(v,A,V,S,L.x,L.y,f.x,f.y,r.x,r.y,N),this._writeTriangle(u,t,U)}else{if(w){const t=this._bevelMiddle;t.x=(c.x+f.x)/2,t.y=(c.y+f.y)/2,x(D,t,-M.x,-M.y),G(t.x,t.y,-M.x,-M.y,D.x,D.y),x(D,t,L.x,L.y),C=this._writeVertex(v,A,V,S,L.x,L.y,t.x,t.y,D.x,D.y,N),U=this._writeVertex(v,A,V,S,L.x,L.y,s.x,s.y,e.x,e.y,N)}else{const t=C;C=U,U=t}G(f.x,f.y,L.x,L.y,r.x,r.y)}if(t){const t=C;C=U,U=t}break}case 1:{const t=z<0;let e,r;if(t){const t=C;C=U,U=t,e=R,r=E}else e=E,r=R;const s=t?h(this._inner,k):l(this._inner,k);let c,u;y?(c=t?a(this._innerPrev,M):o(this._innerPrev,M),u=t?o(this._innerNext,L):a(this._innerNext,L)):(c=s,u=s);const d=t?o(this._roundStart,M):a(this._roundStart,M),p=t?a(this._roundEnd,L):o(this._roundEnd,L),g=G(c.x,c.y,-M.x,-M.y,e.x,e.y),_=G(d.x,d.y,-M.x,-M.y,r.x,r.y);if(n)break;const m=this._writeVertex(v,A,V,S,-M.x,-M.y,0,0,0,0,N);y||this._writeTriangle(C,U,m);const b=h(this._outer,s),I=this._writeVertex(v,A,V,S,L.x,L.y,p.x,p.y,r.x,r.y,N);let T,B;const P=i>2;if(P){let e;i!==Number.MAX_VALUE?(b.x/=i,b.y/=i,e=f(M,b),e=(i*(e*e-1)+1)/e):e=-1,T=t?o(this._startBreak,M):a(this._startBreak,M),T.x+=M.x*e,T.y+=M.y*e,B=t?a(this._endBreak,L):o(this._endBreak,L),B.x+=L.x*e,B.y+=L.y*e}x(D,b,-M.x,-M.y);const F=this._writeVertex(v,A,V,S,-M.x,-M.y,b.x,b.y,D.x,D.y,N);x(D,b,L.x,L.y);const O=w?this._writeVertex(v,A,V,S,L.x,L.y,b.x,b.y,D.x,D.y,N):F,j=m,W=w?this._writeVertex(v,A,V,S,L.x,L.y,0,0,0,0,N):m;let Z=-1,q=-1;if(P&&(x(D,T,-M.x,-M.y),Z=this._writeVertex(v,A,V,S,-M.x,-M.y,T.x,T.y,D.x,D.y,N),x(D,B,L.x,L.y),q=this._writeVertex(v,A,V,S,L.x,L.y,B.x,B.y,D.x,D.y,N)),w?P?(this._writeTriangle(j,_,Z),this._writeTriangle(j,Z,F),this._writeTriangle(W,O,q),this._writeTriangle(W,q,I)):(this._writeTriangle(j,_,F),this._writeTriangle(W,O,I)):P?(this._writeTriangle(m,_,Z),this._writeTriangle(m,Z,q),this._writeTriangle(m,q,I)):(this._writeTriangle(m,_,F),this._writeTriangle(m,O,I)),y?(C=this._writeVertex(v,A,V,S,L.x,L.y,u.x,u.y,e.x,e.y,N),U=I):(C=w?this._writeVertex(v,A,V,S,L.x,L.y,u.x,u.y,e.x,e.y,N):g,this._writeTriangle(C,W,I),U=I),t){const t=C;C=U,U=t}break}}}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2569],{80200(e,t,r){r.d(t,{T:()=>i,d:()=>c});const i={Base64:0,Hex:1,String:2,Raw:3};function a(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function n(e,t,r,i,n,s){return a(function(e,t){return e<<t|e>>>32-t}(a(a(t,e),a(i,s)),n),r)}function s(e,t,r,i,a,s,o){return n(t&r|~t&i,e,t,a,s,o)}function o(e,t,r,i,a,s,o){return n(t&i|r&~i,e,t,a,s,o)}function l(e,t,r,i,a,s,o){return n(t^r^i,e,t,a,s,o)}function u(e,t,r,i,a,s,o){return n(r^(t|~i),e,t,a,s,o)}function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,n=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){const c=r,p=i,h=n,y=d;r=s(r,i,n,d,e[t],7,-680876936),d=s(d,r,i,n,e[t+1],12,-389564586),n=s(n,d,r,i,e[t+2],17,606105819),i=s(i,n,d,r,e[t+3],22,-1044525330),r=s(r,i,n,d,e[t+4],7,-176418897),d=s(d,r,i,n,e[t+5],12,1200080426),n=s(n,d,r,i,e[t+6],17,-1473231341),i=s(i,n,d,r,e[t+7],22,-45705983),r=s(r,i,n,d,e[t+8],7,1770035416),d=s(d,r,i,n,e[t+9],12,-1958414417),n=s(n,d,r,i,e[t+10],17,-42063),i=s(i,n,d,r,e[t+11],22,-1990404162),r=s(r,i,n,d,e[t+12],7,1804603682),d=s(d,r,i,n,e[t+13],12,-40341101),n=s(n,d,r,i,e[t+14],17,-1502002290),i=s(i,n,d,r,e[t+15],22,1236535329),r=o(r,i,n,d,e[t+1],5,-165796510),d=o(d,r,i,n,e[t+6],9,-1069501632),n=o(n,d,r,i,e[t+11],14,643717713),i=o(i,n,d,r,e[t],20,-373897302),r=o(r,i,n,d,e[t+5],5,-701558691),d=o(d,r,i,n,e[t+10],9,38016083),n=o(n,d,r,i,e[t+15],14,-660478335),i=o(i,n,d,r,e[t+4],20,-405537848),r=o(r,i,n,d,e[t+9],5,568446438),d=o(d,r,i,n,e[t+14],9,-1019803690),n=o(n,d,r,i,e[t+3],14,-187363961),i=o(i,n,d,r,e[t+8],20,1163531501),r=o(r,i,n,d,e[t+13],5,-1444681467),d=o(d,r,i,n,e[t+2],9,-51403784),n=o(n,d,r,i,e[t+7],14,1735328473),i=o(i,n,d,r,e[t+12],20,-1926607734),r=l(r,i,n,d,e[t+5],4,-378558),d=l(d,r,i,n,e[t+8],11,-2022574463),n=l(n,d,r,i,e[t+11],16,1839030562),i=l(i,n,d,r,e[t+14],23,-35309556),r=l(r,i,n,d,e[t+1],4,-1530992060),d=l(d,r,i,n,e[t+4],11,1272893353),n=l(n,d,r,i,e[t+7],16,-155497632),i=l(i,n,d,r,e[t+10],23,-1094730640),r=l(r,i,n,d,e[t+13],4,681279174),d=l(d,r,i,n,e[t],11,-358537222),n=l(n,d,r,i,e[t+3],16,-722521979),i=l(i,n,d,r,e[t+6],23,76029189),r=l(r,i,n,d,e[t+9],4,-640364487),d=l(d,r,i,n,e[t+12],11,-421815835),n=l(n,d,r,i,e[t+15],16,530742520),i=l(i,n,d,r,e[t+2],23,-995338651),r=u(r,i,n,d,e[t],6,-198630844),d=u(d,r,i,n,e[t+7],10,1126891415),n=u(n,d,r,i,e[t+14],15,-1416354905),i=u(i,n,d,r,e[t+5],21,-57434055),r=u(r,i,n,d,e[t+12],6,1700485571),d=u(d,r,i,n,e[t+3],10,-1894986606),n=u(n,d,r,i,e[t+10],15,-1051523),i=u(i,n,d,r,e[t+1],21,-2054922799),r=u(r,i,n,d,e[t+8],6,1873313359),d=u(d,r,i,n,e[t+15],10,-30611744),n=u(n,d,r,i,e[t+6],15,-1560198380),i=u(i,n,d,r,e[t+13],21,1309151649),r=u(r,i,n,d,e[t+4],6,-145523070),d=u(d,r,i,n,e[t+11],10,-1120210379),n=u(n,d,r,i,e[t+2],15,718787259),i=u(i,n,d,r,e[t+9],21,-343485551),r=a(r,c),i=a(i,p),n=a(n,h),d=a(d,y)}return[r,i,n,d]}function c(e,t=i.Hex){const r=t||i.Base64,a=d(function(e){const t=[];for(let r=0,i=8*e.length;r<i;r+=8)t[r>>5]|=(255&e.charCodeAt(r/8))<<r%32;return t}(e),8*e.length);switch(r){case i.Raw:return a;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,a=4*e.length;i<a;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(a);case i.String:return function(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=8)t.push(String.fromCharCode(e[r>>5]>>>r%32&255));return t.join("")}(a);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let a=0;a<4;a++)8*r+6*a>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-a)&63))}return t.join("")}(a)}}},87024(e,t,r){r.d(t,{P:()=>h});var i=r(49186),a=r(80200),n=r(76553),s=r(84952),o=r(13069),l=r(96156),u=r(35666),d=r(10107),c=r(85648),p=r(97159);function h(e){const t=e?.origins??[void 0];return(r,i)=>{const a=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,l.z4)(t,r);return{type:String,read:(e,t,r)=>{const a=(0,p.r)(e,t,r);return i.type===String?a:"function"==typeof i.type?new i.type({url:a}):void 0},write:{isRequired:i.json?.write?.isRequired,writer(t,a,o,l){if(!l?.resources)return"string"==typeof t?void(a[o]=(0,p.t)(t,l)):void(a[o]=t.write({},l));const d=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,p.t)(d,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),m=i.type!==String&&(!(0,n.H)(this)||l?.origin&&this.originIdOf(r)>(0,u.aB)(l.origin)),g={object:this,propertyName:r,value:t,targetUrl:h,dest:a,targetPropertyName:o,context:l,params:e};l?.portalItem&&h&&!(0,s.oP)(h)?m&&e?.contentAddressed?y(g):m?function(e){const{context:t,targetUrl:r,params:i,value:a,dest:n,targetPropertyName:o}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),u=_(a,r,t),d=(0,c.n)(u),p=(0,s.Zo)(l.path),h=i?.compress??!1;d===p?(t.resources&&f({...e,resource:l,content:u,compress:h,updates:t.resources.toUpdate}),n[o]=r):y(e)}(g):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(g):l?.portalItem&&(null==h||null!=(0,p.i)(h)||(0,s.w8)(h)||m)?y(g):a[o]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=p.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,d.rM)(r,e,i);for(const e in a)t[e]=a[e]}}}function y(e){const{targetUrl:t,params:r,value:n,context:l,dest:u,targetPropertyName:d}=e;if(!l.portalItem)return;const h=(0,p.p)(t),y=_(n,t,l);if(r?.contentAddressed&&"json"!==y.type)return void l.messages?.push(new i.A("persistable:contentAddressingUnsupported",`Property "${d}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const m=r?.contentAddressed&&"json"===y.type?(0,a.d)(y.jsonString):h?.filename??(0,o.lk)(),g=(0,s.fj)(r?.prefix??h?.prefix,m),v=`${g}.${(0,c.n)(y)}`;if(r?.contentAddressed&&l.resources&&"json"===y.type){const e=l.resources.toKeep.find(({resource:e})=>e.path===v)??l.resources.toAdd.find(({resource:e})=>e.path===v);if(e)return void(u[d]=e.resource.itemRelativeUrl)}const w=l.portalItem.resourceFromPath(v);(0,s.w8)(t)&&l.resources&&l.resources.pendingOperations.push((0,s.tk)(t).then(e=>{w.path=`${g}.${(0,c.n)({type:"blob",blob:e})}`,u[d]=w.itemRelativeUrl}).catch(()=>{}));const b=r?.compress??!1;l.resources&&f({...e,resource:w,content:y,compress:b,updates:l.resources.toAdd}),u[d]=w.itemRelativeUrl}function f({object:e,propertyName:t,updates:r,resource:i,content:a,compress:n}){r.push({resource:i,content:a,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function _(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},58083(e,t,r){r.d(t,{$0:()=>_,$h:()=>C,B8:()=>u,C:()=>n,D_:()=>o,N9:()=>g,O7:()=>A,Tl:()=>c,X_:()=>M,aI:()=>D,e$:()=>h,eL:()=>y,hM:()=>m,hZ:()=>s,hs:()=>p,kN:()=>f,l:()=>I,lw:()=>d,mg:()=>l,o1:()=>S,sC:()=>b,t2:()=>T,t5:()=>F,tZ:()=>O,ut:()=>P,v3:()=>L});var i=r(51850),a=r(34304);function n(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function s(e,t,r,i,a,n,s,o,l,u,d,c,p,h,y,f,_){return e[0]=t,e[1]=r,e[2]=i,e[3]=a,e[4]=n,e[5]=s,e[6]=o,e[7]=l,e[8]=u,e[9]=d,e[10]=c,e[11]=p,e[12]=h,e[13]=y,e[14]=f,e[15]=_,e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function l(e,t){if(e===t){const r=t[1],i=t[2],a=t[3],n=t[6],s=t[7],o=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=n,e[11]=t[14],e[12]=a,e[13]=s,e[14]=o}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function u(e,t){const r=t[0],i=t[1],a=t[2],n=t[3],s=t[4],o=t[5],l=t[6],u=t[7],d=t[8],c=t[9],p=t[10],h=t[11],y=t[12],f=t[13],_=t[14],m=t[15],g=r*o-i*s,v=r*l-a*s,w=r*u-n*s,b=i*l-a*o,M=i*u-n*o,I=a*u-n*l,S=d*f-c*y,A=d*_-p*y,C=d*m-h*y,L=c*_-p*f,F=c*m-h*f,x=p*m-h*_;let T=g*x-v*F+w*L+b*C-M*A+I*S;return T?(T=1/T,e[0]=(o*x-l*F+u*L)*T,e[1]=(a*F-i*x-n*L)*T,e[2]=(f*I-_*M+m*b)*T,e[3]=(p*M-c*I-h*b)*T,e[4]=(l*C-s*x-u*A)*T,e[5]=(r*x-a*C+n*A)*T,e[6]=(_*w-y*I-m*v)*T,e[7]=(d*I-p*w+h*v)*T,e[8]=(s*F-o*C+u*S)*T,e[9]=(i*C-r*F-n*S)*T,e[10]=(y*M-f*w+m*g)*T,e[11]=(c*w-d*M-h*g)*T,e[12]=(o*A-s*L-l*S)*T,e[13]=(r*L-i*A+a*S)*T,e[14]=(f*v-y*b-_*g)*T,e[15]=(d*b-c*v+p*g)*T,e):null}function d(e,t,r){const i=t[0],a=t[1],n=t[2],s=t[3],o=t[4],l=t[5],u=t[6],d=t[7],c=t[8],p=t[9],h=t[10],y=t[11],f=t[12],_=t[13],m=t[14],g=t[15];let v=r[0],w=r[1],b=r[2],M=r[3];return e[0]=v*i+w*o+b*c+M*f,e[1]=v*a+w*l+b*p+M*_,e[2]=v*n+w*u+b*h+M*m,e[3]=v*s+w*d+b*y+M*g,v=r[4],w=r[5],b=r[6],M=r[7],e[4]=v*i+w*o+b*c+M*f,e[5]=v*a+w*l+b*p+M*_,e[6]=v*n+w*u+b*h+M*m,e[7]=v*s+w*d+b*y+M*g,v=r[8],w=r[9],b=r[10],M=r[11],e[8]=v*i+w*o+b*c+M*f,e[9]=v*a+w*l+b*p+M*_,e[10]=v*n+w*u+b*h+M*m,e[11]=v*s+w*d+b*y+M*g,v=r[12],w=r[13],b=r[14],M=r[15],e[12]=v*i+w*o+b*c+M*f,e[13]=v*a+w*l+b*p+M*_,e[14]=v*n+w*u+b*h+M*m,e[15]=v*s+w*d+b*y+M*g,e}function c(e,t,r){const i=r[0],a=r[1],n=r[2];if(t===e)e[12]=t[0]*i+t[4]*a+t[8]*n+t[12],e[13]=t[1]*i+t[5]*a+t[9]*n+t[13],e[14]=t[2]*i+t[6]*a+t[10]*n+t[14],e[15]=t[3]*i+t[7]*a+t[11]*n+t[15];else{const r=t[0],s=t[1],o=t[2],l=t[3],u=t[4],d=t[5],c=t[6],p=t[7],h=t[8],y=t[9],f=t[10],_=t[11];e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=u,e[5]=d,e[6]=c,e[7]=p,e[8]=h,e[9]=y,e[10]=f,e[11]=_,e[12]=r*i+u*a+h*n+t[12],e[13]=s*i+d*a+y*n+t[13],e[14]=o*i+c*a+f*n+t[14],e[15]=l*i+p*a+_*n+t[15]}return e}function p(e,t,r){const i=r[0],a=r[1],n=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function h(e,t,r,i){let s=i[0],o=i[1],l=i[2],u=Math.sqrt(s*s+o*o+l*l);if(u<=(0,a.FD)())return void n(e,t);u=1/u,s*=u,o*=u,l*=u;const d=Math.sin(r),c=Math.cos(r),p=1-c,h=t[0],y=t[1],f=t[2],_=t[3],m=t[4],g=t[5],v=t[6],w=t[7],b=t[8],M=t[9],I=t[10],S=t[11],A=s*s*p+c,C=o*s*p+l*d,L=l*s*p-o*d,F=s*o*p-l*d,x=o*o*p+c,T=l*o*p+s*d,D=s*l*p+o*d,P=o*l*p-s*d,O=l*l*p+c;e[0]=h*A+m*C+b*L,e[1]=y*A+g*C+M*L,e[2]=f*A+v*C+I*L,e[3]=_*A+w*C+S*L,e[4]=h*F+m*x+b*T,e[5]=y*F+g*x+M*T,e[6]=f*F+v*x+I*T,e[7]=_*F+w*x+S*T,e[8]=h*D+m*P+b*O,e[9]=y*D+g*P+M*O,e[10]=f*D+v*P+I*O,e[11]=_*D+w*P+S*O,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15])}function y(e,t,r){const i=Math.sin(r),a=Math.cos(r),n=t[4],s=t[5],o=t[6],l=t[7],u=t[8],d=t[9],c=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=n*a+u*i,e[5]=s*a+d*i,e[6]=o*a+c*i,e[7]=l*a+p*i,e[8]=u*a-n*i,e[9]=d*a-s*i,e[10]=c*a-o*i,e[11]=p*a-l*i,e}function f(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function _(e,t,r){if(0===t)return o(e);let i=r[0],n=r[1],s=r[2],l=Math.sqrt(i*i+n*n+s*s);if(l<=(0,a.FD)())return null;l=1/l,i*=l,n*=l,s*=l;const u=Math.sin(t),d=Math.cos(t),c=1-d;return e[0]=i*i*c+d,e[1]=n*i*c+s*u,e[2]=s*i*c-n*u,e[3]=0,e[4]=i*n*c-s*u,e[5]=n*n*c+d,e[6]=s*n*c+i*u,e[7]=0,e[8]=i*s*c+n*u,e[9]=n*s*c-i*u,e[10]=s*s*c+d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function m(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function g(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function v(e,t,r){const i=t[0],a=t[1],n=t[2],s=t[3],o=i+i,l=a+a,u=n+n,d=i*o,c=i*l,p=i*u,h=a*l,y=a*u,f=n*u,_=s*o,m=s*l,g=s*u;return e[0]=1-(h+f),e[1]=c+g,e[2]=p-m,e[3]=0,e[4]=c-g,e[5]=1-(d+f),e[6]=y+_,e[7]=0,e[8]=p+m,e[9]=y-_,e[10]=1-(d+h),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const w=(0,i.vt)();function b(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function M(e,t){const r=t[0],i=t[1],a=t[2],n=t[4],s=t[5],o=t[6],l=t[8],u=t[9],d=t[10];return e[0]=Math.sqrt(r*r+i*i+a*a),e[1]=Math.sqrt(n*n+s*s+o*o),e[2]=Math.sqrt(l*l+u*u+d*d),e}function I(e,t){const r=t[0]+t[5]+t[10];let i=0;return r>0?(i=2*Math.sqrt(r+1),e[3]=.25*i,e[0]=(t[6]-t[9])/i,e[1]=(t[8]-t[2])/i,e[2]=(t[1]-t[4])/i):t[0]>t[5]&&t[0]>t[10]?(i=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/i,e[0]=.25*i,e[1]=(t[1]+t[4])/i,e[2]=(t[8]+t[2])/i):t[5]>t[10]?(i=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/i,e[0]=(t[1]+t[4])/i,e[1]=.25*i,e[2]=(t[6]+t[9])/i):(i=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/i,e[0]=(t[8]+t[2])/i,e[1]=(t[6]+t[9])/i,e[2]=.25*i),e}function S(e,t,r,i){const a=t[0],n=t[1],s=t[2],o=t[3],l=a+a,u=n+n,d=s+s,c=a*l,p=a*u,h=a*d,y=n*u,f=n*d,_=s*d,m=o*l,g=o*u,v=o*d,w=i[0],b=i[1],M=i[2];return e[0]=(1-(y+_))*w,e[1]=(p+v)*w,e[2]=(h-g)*w,e[3]=0,e[4]=(p-v)*b,e[5]=(1-(c+_))*b,e[6]=(f+m)*b,e[7]=0,e[8]=(h+g)*M,e[9]=(f-m)*M,e[10]=(1-(c+y))*M,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function A(e,t,r,i,a){const n=t[0],s=t[1],o=t[2],l=t[3],u=n+n,d=s+s,c=o+o,p=n*u,h=n*d,y=n*c,f=s*d,_=s*c,m=o*c,g=l*u,v=l*d,w=l*c,b=i[0],M=i[1],I=i[2],S=a[0],A=a[1],C=a[2],L=(1-(f+m))*b,F=(h+w)*b,x=(y-v)*b,T=(h-w)*M,D=(1-(p+m))*M,P=(_+g)*M,O=(y+v)*I,R=(_-g)*I,E=(1-(p+f))*I;return e[0]=L,e[1]=F,e[2]=x,e[3]=0,e[4]=T,e[5]=D,e[6]=P,e[7]=0,e[8]=O,e[9]=R,e[10]=E,e[11]=0,e[12]=r[0]+S-(L*S+T*A+O*C),e[13]=r[1]+A-(F*S+D*A+R*C),e[14]=r[2]+C-(x*S+P*A+E*C),e[15]=1,e}function C(e,t,r,i,a,n,s){const o=1/(r-t),l=1/(a-i),u=1/(n-s);return e[0]=2*n*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*n*l,e[6]=0,e[7]=0,e[8]=(r+t)*o,e[9]=(a+i)*l,e[10]=(s+n)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=s*n*2*u,e[15]=0,e}function L(e,t,r,i,a,n,s){const o=1/(t-r),l=1/(i-a),u=1/(n-s);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*o,e[13]=(a+i)*l,e[14]=(s+n)*u,e[15]=1,e}function F(e,t,r,i){const n=t[0],s=t[1],l=t[2];let u=n-r[0],d=s-r[1],c=l-r[2];const p=(0,a.FD)();if(Math.abs(u)<p&&Math.abs(d)<p&&Math.abs(c)<p)return void o(e);let h=1/Math.sqrt(u*u+d*d+c*c);u*=h,d*=h,c*=h;const y=i[0],f=i[1],_=i[2];let m=f*c-_*d,g=_*u-y*c,v=y*d-f*u;h=Math.sqrt(m*m+g*g+v*v),h?(h=1/h,m*=h,g*=h,v*=h):(m=0,g=0,v=0);let w=d*v-c*g,b=c*m-u*v,M=u*g-d*m;h=Math.sqrt(w*w+b*b+M*M),h?(h=1/h,w*=h,b*=h,M*=h):(w=0,b=0,M=0),e[0]=m,e[1]=w,e[2]=u,e[3]=0,e[4]=g,e[5]=b,e[6]=d,e[7]=0,e[8]=v,e[9]=M,e[10]=c,e[11]=0,e[12]=-(m*n+g*s+v*l),e[13]=-(w*n+b*s+M*l),e[14]=-(u*n+d*s+c*l),e[15]=1}function x(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function T(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function D(e,t){if(e===t)return!0;const r=e[0],i=e[1],n=e[2],s=e[3],o=e[4],l=e[5],u=e[6],d=e[7],c=e[8],p=e[9],h=e[10],y=e[11],f=e[12],_=e[13],m=e[14],g=e[15],v=t[0],w=t[1],b=t[2],M=t[3],I=t[4],S=t[5],A=t[6],C=t[7],L=t[8],F=t[9],x=t[10],T=t[11],D=t[12],P=t[13],O=t[14],R=t[15],E=(0,a.FD)();return Math.abs(r-v)<=E*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(i-w)<=E*Math.max(1,Math.abs(i),Math.abs(w))&&Math.abs(n-b)<=E*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(s-M)<=E*Math.max(1,Math.abs(s),Math.abs(M))&&Math.abs(o-I)<=E*Math.max(1,Math.abs(o),Math.abs(I))&&Math.abs(l-S)<=E*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-A)<=E*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(d-C)<=E*Math.max(1,Math.abs(d),Math.abs(C))&&Math.abs(c-L)<=E*Math.max(1,Math.abs(c),Math.abs(L))&&Math.abs(p-F)<=E*Math.max(1,Math.abs(p),Math.abs(F))&&Math.abs(h-x)<=E*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(y-T)<=E*Math.max(1,Math.abs(y),Math.abs(T))&&Math.abs(f-D)<=E*Math.max(1,Math.abs(f),Math.abs(D))&&Math.abs(_-P)<=E*Math.max(1,Math.abs(_),Math.abs(P))&&Math.abs(m-O)<=E*Math.max(1,Math.abs(m),Math.abs(O))&&Math.abs(g-R)<=E*Math.max(1,Math.abs(g),Math.abs(R))}function P(e){const t=(0,a.FD)(),r=e[0],i=e[1],n=e[2],s=e[4],o=e[5],l=e[6],u=e[8],d=e[9],c=e[10];return Math.abs(1-(r*r+s*s+u*u))<=t&&Math.abs(1-(i*i+o*o+d*d))<=t&&Math.abs(1-(n*n+l*l+c*c))<=t}function O(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const R=d,E=x;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){const r=t[0],i=t[1],a=t[2],n=t[3],s=t[4],o=t[5],l=t[6],u=t[7],d=t[8],c=t[9],p=t[10],h=t[11],y=t[12],f=t[13],_=t[14],m=t[15];return e[0]=o*(p*m-h*_)-c*(l*m-u*_)+f*(l*h-u*p),e[1]=-(i*(p*m-h*_)-c*(a*m-n*_)+f*(a*h-n*p)),e[2]=i*(l*m-u*_)-o*(a*m-n*_)+f*(a*u-n*l),e[3]=-(i*(l*h-u*p)-o*(a*h-n*p)+c*(a*u-n*l)),e[4]=-(s*(p*m-h*_)-d*(l*m-u*_)+y*(l*h-u*p)),e[5]=r*(p*m-h*_)-d*(a*m-n*_)+y*(a*h-n*p),e[6]=-(r*(l*m-u*_)-s*(a*m-n*_)+y*(a*u-n*l)),e[7]=r*(l*h-u*p)-s*(a*h-n*p)+d*(a*u-n*l),e[8]=s*(c*m-h*f)-d*(o*m-u*f)+y*(o*h-u*c),e[9]=-(r*(c*m-h*f)-d*(i*m-n*f)+y*(i*h-n*c)),e[10]=r*(o*m-u*f)-s*(i*m-n*f)+y*(i*u-n*o),e[11]=-(r*(o*h-u*c)-s*(i*h-n*c)+d*(i*u-n*o)),e[12]=-(s*(c*_-p*f)-d*(o*_-l*f)+y*(o*p-l*c)),e[13]=r*(c*_-p*f)-d*(i*_-a*f)+y*(i*p-a*c),e[14]=-(r*(o*_-l*f)-s*(i*_-a*f)+y*(i*l-a*o)),e[15]=r*(o*p-l*c)-s*(i*p-a*c)+d*(i*l-a*o),e},copy:n,determinant:function(e){const t=e[0],r=e[1],i=e[2],a=e[3],n=e[4],s=e[5],o=e[6],l=e[7],u=e[8],d=e[9],c=e[10],p=e[11],h=e[12],y=e[13],f=e[14],_=e[15];return(t*s-r*n)*(c*_-p*f)-(t*o-i*n)*(d*_-p*y)+(t*l-a*n)*(d*f-c*y)+(r*o-i*s)*(u*_-p*h)-(r*l-a*s)*(u*f-c*h)+(i*l-a*o)*(u*y-d*h)},equals:D,exactEquals:T,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){const r=t[0],i=t[1],a=t[2],n=t[3],s=r+r,o=i+i,l=a+a,u=r*s,d=i*s,c=i*o,p=a*s,h=a*o,y=a*l,f=n*s,_=n*o,m=n*l;return e[0]=1-c-y,e[1]=d+m,e[2]=p-_,e[3]=0,e[4]=d-m,e[5]=1-u-y,e[6]=h+f,e[7]=0,e[8]=p+_,e[9]=h-f,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){const r=w,i=-t[0],a=-t[1],n=-t[2],s=t[3],o=t[4],l=t[5],u=t[6],d=t[7],c=i*i+a*a+n*n+s*s;return c>0?(r[0]=2*(o*s+d*i+l*n-u*a)/c,r[1]=2*(l*s+d*a+u*i-o*n)/c,r[2]=2*(u*s+d*n+o*a-l*i)/c):(r[0]=2*(o*s+d*i+l*n-u*a),r[1]=2*(l*s+d*a+u*i-o*n),r[2]=2*(u*s+d*n+o*a-l*i)),v(e,t,r),e},fromRotation:_,fromRotationTranslation:v,fromRotationTranslationScale:S,fromRotationTranslationScaleOrigin:A,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:f,fromXRotation:m,fromYRotation:function(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:g,frustum:C,getRotation:I,getScale:M,getTranslation:b,hasIdentityRotation:O,identity:o,invert:u,invertOrIdentity:function(e,t){return u(e,t)||o(e),e},isOrthoNormal:P,lookAt:F,mul:R,multiply:d,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e[4]=t[4]+r[4]*i,e[5]=t[5]+r[5]*i,e[6]=t[6]+r[6]*i,e[7]=t[7]+r[7]*i,e[8]=t[8]+r[8]*i,e[9]=t[9]+r[9]*i,e[10]=t[10]+r[10]*i,e[11]=t[11]+r[11]*i,e[12]=t[12]+r[12]*i,e[13]=t[13]+r[13]*i,e[14]=t[14]+r[14]*i,e[15]=t[15]+r[15]*i,e},ortho:L,perspective:function(e,t,r,i,a){const n=1/Math.tan(t/2);let s;return e[0]=n/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=a&&a!==1/0?(s=1/(i-a),e[10]=(a+i)*s,e[14]=2*a*i*s):(e[10]=-1,e[14]=-2*i),e},perspectiveFromFieldOfView:function(e,t,r,i){const a=Math.tan(t.upDegrees*Math.PI/180),n=Math.tan(t.downDegrees*Math.PI/180),s=Math.tan(t.leftDegrees*Math.PI/180),o=Math.tan(t.rightDegrees*Math.PI/180),l=2/(s+o),u=2/(a+n);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(s-o)*l*.5,e[9]=(a-n)*u*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e},rotate:h,rotateX:y,rotateY:function(e,t,r){const i=Math.sin(r),a=Math.cos(r),n=t[0],s=t[1],o=t[2],l=t[3],u=t[8],d=t[9],c=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*a-u*i,e[1]=s*a-d*i,e[2]=o*a-c*i,e[3]=l*a-p*i,e[8]=n*i+u*a,e[9]=s*i+d*a,e[10]=o*i+c*a,e[11]=l*i+p*a,e},rotateZ:function(e,t,r){const i=Math.sin(r),a=Math.cos(r),n=t[0],s=t[1],o=t[2],l=t[3],u=t[4],d=t[5],c=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*a+u*i,e[1]=s*a+d*i,e[2]=o*a+c*i,e[3]=l*a+p*i,e[4]=u*a-n*i,e[5]=d*a-s*i,e[6]=c*a-o*i,e[7]=p*a-l*i,e},scale:p,set:s,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:E,subtract:x,targetTo:function(e,t,r,i){const a=t[0],n=t[1],s=t[2],o=i[0],l=i[1],u=i[2];let d=a-r[0],c=n-r[1],p=s-r[2],h=d*d+c*c+p*p;h>0&&(h=1/Math.sqrt(h),d*=h,c*=h,p*=h);let y=l*p-u*c,f=u*d-o*p,_=o*c-l*d;return h=y*y+f*f+_*_,h>0&&(h=1/Math.sqrt(h),y*=h,f*=h,_*=h),e[0]=y,e[1]=f,e[2]=_,e[3]=0,e[4]=c*_-p*f,e[5]=p*y-d*_,e[6]=d*f-c*y,e[7]=0,e[8]=d,e[9]=c,e[10]=p,e[11]=0,e[12]=a,e[13]=n,e[14]=s,e[15]=1,e},translate:c,transpose:l},Symbol.toStringTag,{value:"Module"}))},81354(e,t,r){r.d(t,{A:()=>C});var i=r(5482),a=r(4576),n=r(66552),s=r(25482),o=r(86211),l=r(67076),u=r(91429);const d=[3855,31,14,540,18,735,2,19,23,80,19,261,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,80,1,1,1,1,1,3,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,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,1,1,1,1,30,2,12,18,1,1,1,1,1,1,1,1,1,1,1,1,1,67,189,1,1,46,1,1,1,1,1,1,1,1,1,170,1,1,1,278,1,1,1,1,1,1,3,46,1,1,221,530,1,204,1,47,1,7,125,5,2,2,47,1,1,72,6,8,3,71,1,1,1,36,139,38,1,90,1,76,241,15,1,150,40,23,7,219,115,10,19,5,8,1,15,32,16,38,1,2,1,1,1,1,1,1,1,1,1,1,49,7,13,179,1,12,3,3,3,3,6,40,1,201,4,223,1,39,159,3,1,1,128,1,1,1,62,1,1,1,1,1,13,23,54,7,1,28,62,23,137,18,71,10,158,8843,34,1,1,85565,1,1,1,1,1,1,1,92,1,1,1,1,86,1,1,1,1,1,1,1,1,1,9901,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,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,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,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,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,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,2,1],c=[287,1,2,4,15,107,3,143],p=[10,1,13,1,1,1,12,1,6,1,18,1,4,1,49,1,11,1,1,7,5,1,15,3,29,1,2,1,1,1,5,1,13,2,24,1,6,2,1,1,7,6,3,3,287],h=["Meter","Foot","Foot_US","Foot_British_1936"],y=[1,.3048,.3048006096012192,.3048007491],f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,2,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=["EGM2008_Geoid","Fao_1979","N2000","New_Zealand_Vertical_Datum_2009","Dunedin_Bluff_1960","Korean_Vertical_Datum_1964","Trieste","Genoa","Sri_Lanka_Vertical_Datum","Faroe_Islands_Vertical_Reference_2009","Black_Sea","Fehmarnbelt_Vertical_Reference_2010","Nivellement_General_de_Polynesie_Francaise","IGN_1966","Moorea_SAU_1981","Raiatea_SAU_2001","Maupiti_SAU_2001","Huahine_SAU_2001","Tahaa_SAU_2001","Bora_Bora_SAU_2001","International_Great_Lakes_Datum_1955","International_Great_Lakes_Datum_1985","Croatian_Vertical_Reference_System_1971","Caspian_Sea","Baltic_Sea","Rikets_Hojdsystem_2000","KOC_Well_Datum","Rikets_Hojdsystem_1900","IGN_1988_LS","IGN_1988_MG","IGN_1992_LD","IGN_1988_SB","IGN_1988_SM","European_Vertical_Reference_Frame_2007","Ordnance_Datum_Newlyn","National_Geodetic_Vertical_Datum_1929","North_American_Vertical_Datum_1988","Yellow_Sea_1956","Normaal_Amsterdams_Peil","Oostende","Australian_Height_Datum","Australian_Height_Datum_Tasmania","Canadian_Geodetic_Vertical_Datum_of_1928","Mean_Sea_Level","Piraeus_Harbour_1986","Helsinki_1960","Rikets_Hojdsystem_1970","Nivellement_General_de_la_France_Lallemand","Nivellement_General_de_la_France_IGN69","Nivellement_General_de_la_France_IGN78","Maputo","Japanese_Standard_Levelling_Datum_1969","PDO_Height_Datum_1993","Fahud_Height_Datum","Ha_Tien_1960","Hon_Dau_1992","Landesnivellement_1902","Landeshohennetz_1995","European_Vertical_Reference_Frame_2000","Malin_Head","Belfast","Dansk_Normal_Nul","AIOC_1995","Yellow_Sea_1985","Hong_Kong_Principal_Datum","Hong_Kong_Chart_Datum","Ordnance_Datum_Newlyn_Orkney_Isles","Fair_Isle","Lerwick","Foula","Sule_Skerry","North_Rona","Stornoway","St_Kilda","Flannan_Isles","St_Marys","Douglas","Fao","Bandar_Abbas","Nivellement_General_de_Nouvelle_Caledonie","Poolbeg","Nivellement_General_Guyanais_1977","IGN_1987","IGN_1988","IGN_1989","Auckland","Bluff","Dunedin","Gisborne","Lyttelton","Moturiki","Napier","Nelson","One_Tree_Point","Tararu","Taranaki","Wellington","Chatham_Island","Stewart_Island","EGM96_Geoid","Nivellement_General_du_Luxembourg","Antalya","Norway_Normal_Null_1954","Durres","Gebrauchshohen_Adria","Slovenian_Vertical_System_2000","Cascais","Constanta","Alicante","Deutsches_Haupthoehennetz_1992","Deutsches_Haupthoehennetz_1985","SNN76","Baltic_1982","Baltic_1980","Kuwait_PWD","KOC_Construction_Datum","Nivellement_General_de_la_Corse_1948","Danger_1950","Mayotte_1950","Martinique_1955","Guadeloupe_1951","Lagos_1955","EGM84_Geoid","Dansk_Vertikal_Reference_1990_ensemble","Sea_Level","Ras_Ghumays","Lowest_Astronomic_Tide","Lower_Low_Water_Large_Tide","Indian_Spring_Low_Water","Mean_Lower_Low_Water_Spring_Tides","Mean_Low_Water_Spring_Tides","Mean_Lower_Low_Water","Mean_Low_Water","Mean_High_Water","Mean_Higher_High_Water","Mean_High_Water_Spring_Tides","Higher_High_Water_Large_Tide","Highest_Astronomic_Tide","Low_Water","High_Water","Norway_Normal_Null_2000","Grand_Cayman_Vertical_Datum_1954","Little_Cayman_Vertical_Datum_1961","Cayman_Brac_Vertical_Datum_1961","Cais_da_Pontinha-Funchal","Cais_da_Vila-Porto_Santo","Cais_das_Velas","Horta","Cais_da_Madalena","Santa_Cruz_da_Graciosa","Cais_da_Figueirinha-Angra_do_Heroismo","Santa_Cruz_das_Flores","Cais_da_Vila_do_Porto","Ponta_Delgada","Tutuila_Vertical_Datum_of_1962","Guam_Vertical_Datum_of_1963","Northern_Marianas_Vertical_Datum_of_2003","Puerto_Rico_Vertical_Datum_of_2002","Virgin_Islands_Vertical_Datum_of_2009","American_Samoa_Vertical_Datum_of_2002","Guam_Vertical_Datum_of_2004","Canadian_Geodetic_Vertical_Datum_of_2013","Japanese_Standard_Levelling_Datum_1972","Japanese_Geodetic_Datum_2000_vertical","Japanese_Geodetic_Datum_2011_vertical","Singapore_Height_Datum","Famagusta_1960","Papua_New_Guinea_2008","Kumul_34","Kiunga","Deutsches_Haupthoehennetz_1912","Latvian_Height_System_2000","Ordnance_Datum_Newlyn_(Offshore)","Port_Moresby_1996","Deutsches_Haupthoehennetz_2016","New_Zealand_Vertical_Datum_2016","Port_Moresby_2008","Jamestown_1971","St_Helena_Tritan_Vertical_Datum_2011","St_Helena_Vertical_Datum_2015","Landshaedarkerfi_Islands_2004","Greenland_Vertical_Reference_2000","Greenland_Vertical_Reference_2016","Baltic_1957","Macao_Height_Datum","Helsinki_1943","Slovenian_Vertical_System_2010","Serbian_Vertical_Reference_System_2012","MOMRA_Vertical_Geodetic_Control","Wiener_Null","Taiwan_Vertical_Datum_2001","Datum_Altimetrico_de_Costa_Rica_1952","IGN_2008_LD","Canadian_Geodetic_Vertical_Datum_of_2013_CGG2013a","Sistema_de_Referencia_Vertical_Nacional_2016","European_Vertical_Reference_Frame_2000_Austria","South_Africa_Land_Levelling_Datum","Lowest_Astronomical_Tide_Netherlands","Mean_Sea_Level_Netherlands","HS2_Vertical_Reference_Frame","Kingdom_of_Saudi_Arabia_Vertical_Reference_Frame_Jeddah_2014","Nivellement_General_de_Nouvelle_Caledonie_2008","European_Vertical_Reference_Frame_2019","European_Vertical_Reference_Frame_2019_mean_tide","Mallorca","Menorca","Ibiza","Lanzarote","Fuerteventura","Gran_Canaria","Tenerife","La_Gomera","La_Palma","El_Hierro","Ceuta_2","British_Isles_height_ensemble","Australian_Vertical_Working_Surface","Indonesian_Geoid_2020","Baltic_1986","European_Vertical_Reference_Frame_2007_Poland","Estonian_Height_System_2000","Lithuanian_Height_System_2007","Bulgarian_Height_System_2005","Norwegian_Chart_Datum","Local_Tidal_Datum_at_Pago_Pago_2020","National_Vertical_Datum_1992","Catania_1965","Cagliari_1956","GNTRANS","GNTRANS2016","Mean_Sea_Level_UK_Ireland_VORF08","Chart_Datum_UK_Ireland_VORF08","Nivellement_General_de_l_Algerie_2022","Chart_Datum_Portugal","Formentera","Alboran","Melilla","Dansk_Vertikal_Reference_1990","Dansk_Vertikal_Reference_1990_(2002)","Dansk_Vertikal_Reference_1990_(2013)","Dansk_Vertikal_Reference_1990_(2023)","Denmark_Mean_Sea_Level_(2022)","Denmark_Lowest_Astronomical_Tide_(2022)","Denmark_Mean_Sea_Level_(2023)","Denmark_Lowest_Astronomical_Tide_(2023)","Denmark_Mean_Sea_Level","Denmark_Lowest_Astronomical_Tide","Greenland_Local_Mean_Sea_Level_(2022)","Canadian_Geodetic_Vertical_Datum_of_1928_(Height_Transformation_version_2_0)","Saba_Vertical_Datum","Greenland_Mean_Sea_Level_(2023)","Greenland_Lowest_Astronomic_Tide_(2023)","Baltic_Sea_Chart_Datum_2000","Sint_Eustatius_Vertical_Datum","Bonaire_Vertical_Datum","Asse_vertical_datum_2025","Derived_California_Orthometric_Heights_of_1988_epoch_2025","London_Survey_Grid_height_datum","Svalbard_vertical_datum_2024","IGN_2023_Mayotte","Svalbard_vertical_datum_2006","Canadian_Geodetic_Vertical_Datum_of_2013_(CGG2013a)_epoch_2002","Canadian_Geodetic_Vertical_Datum_of_2013_(CGG2013a)_epoch_1997","Indonesian_Geoid_2020_version_2","Hellenic_Vertical_Datum","WGS_1984","Red_Espanola_de_Nivelacion_de_Alta_Precision","Japanese_Geodetic_Datum_2024_vertical","GRS_1980","WGS_1984_Geoid","Mean_Sea_Level_Hawaii","Qatari_Vertical_Datum","International_1924","CGCS2000","Bessel_1841","Krasovsky_1940","Everest_Adjustment_1937","Clarke_1866","PZ_1990","Unknown_height_system_(meters)","Unknown_height_system_(US_survey_feet)","Unknown_height_system_(Intl_feet)","GSK-2011","Australian","NWL_9D","WGS_1972"],m=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,24,23,38,39,40,41,42,43,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,10,37,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,26,115,116,117,118,119,120,121,62,122,123,124,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,36,36,35,36,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,80,35,64,26,43,43,43,43,180,36,181,182,183,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,265,265,268,268,269,123,25,36,221,0,1,3,2,4,270,270,99,99,271,265,268,268,268,272,273,268,268,265,274,265,268,268,268,268,268,268,268,268,265,265,268,265,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,265,268,268,268,275,272,268,268,272,268,268,268,268,268,268,265,268,268,268,268,268,268,268,268,268,276,268,268,268,268,265,268,277,268,278,268,268,268,268,268,268,268,272,268,268,268,268,268,268,268,268,268,268,265,276,268,268,274,274,268,268,268,275,265,268,268,268,268,279,280,281,268,268,265,282,278,278,265,265,265,265,265,265,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,274,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,274,268,283,283,268,265,268,268,268,268,265,272,265,265,268,268,268,268,268,268,268,275,268,268,268,268,268,268,268,268,268,265,284,285,285,268,268,268,268,268,268,268,268,268,268,268,274,268,268,268,268,268,268,268,268,268,268,268,265,272,268,272,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268];function g(e){const t=[];let r=0;for(const i of e){for(let e=0;e<i;e++)t.push(r);r=1-r}return t}const v=function(){const e=function(e){const t=[];let r=0;for(const i of e)r+=i,t.push(r);return t}(d),t=g(c),r=g(p),i=h.map((e,t)=>({name:e,conversionFactor:y[t]})),a=new Map;for(let n=0;n<e.length;n++){const s=0===t[n]?0:1,o=0===r[n]?0:1,l=i[f[n]],u=_[m[n]];a.set(e[n],{type:s,direction:o,unit:l,datum:u})}return a}();var w,b=r(43937),M=r(36005);const I=(0,n.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),S=I.jsonValues.slice();(0,a.Xy)(S,"orthometric");const A=(0,n.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let C=w=class extends s.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return I.write(e,t,r)}readHeightModel(e,t,r){return I.read(e)||(r?.messages&&r.messages.push(function(e,t){return new l.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return A.read(e)||(r?.messages&&r.messages.push(L(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,o.LA)(e)||A.read(e)||(r?.messages&&r.messages.push(L(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new w({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,o.k1)(t);return new w({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:r}=e;if(!r)return null;const i=(null!=t?v.get(t):null)??v.get(r);return i?new w({heightModel:0===i.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,o.LA)(i.unit.name),vertCRS:i.datum}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new w;return t.read(e,{origin:"web-scene"}),t}};function L(e,t){return new l.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,i.Cg)([(0,u.MZ)({type:I.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:S,default:"ellipsoidal",write:{isRequired:!0}}}}})],C.prototype,"heightModel",void 0),(0,i.Cg)([(0,b.K)("web-scene","heightModel")],C.prototype,"writeHeightModel",null),(0,i.Cg)([(0,M.w)(["web-scene","service"],"heightModel")],C.prototype,"readHeightModel",null),(0,i.Cg)([(0,u.MZ)({type:A.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:A.jsonValues,write:{writer:A.write,isRequired:!0}}}}})],C.prototype,"heightUnit",void 0),(0,i.Cg)([(0,M.w)("web-scene","heightUnit")],C.prototype,"readHeightUnit",null),(0,i.Cg)([(0,M.w)("service","heightUnit")],C.prototype,"readHeightUnitService",null),(0,i.Cg)([(0,u.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],C.prototype,"vertCRS",void 0),(0,i.Cg)([(0,M.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],C.prototype,"readVertCRS",null),C=w=(0,i.Cg)([(0,u.$K)("esri.geometry.HeightModelInfo")],C)},73836(e,t,r){r.d(t,{A:()=>h});var i=r(5482),a=r(69540),n=r(25482),s=r(91429),o=r(58083),l=r(9093),u=r(67026),d=r(82534),c=r(51850),p=r(24770);let h=class extends((0,a.OU)(n.o)){constructor(e){super(e),this.translation=(0,c.vt)(),this.rotationAxis=(0,c.ci)(p.up),this.rotationAngle=0,this.scale=(0,c.fA)(1,1,1)}get rotation(){return(0,p.i4)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,c.o8)((0,p.yo)(e)),this.rotationAngle=(0,p.g7)(e)}get localMatrix(){const e=(0,l.vt)();return(0,u.x8)(y,(0,p.yo)(this.rotation),(0,p.$I)(this.rotation)),(0,o.o1)(e,y,this.translation,this.scale),e}get localMatrixInverse(){return(0,o.B8)((0,l.vt)(),this.localMatrix)}equals(e){return this===e||null!=e&&(0,o.t2)(this.localMatrix,e.localMatrix)}};(0,i.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"translation",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAxis",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAngle",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"scale",void 0),(0,i.Cg)([(0,s.MZ)()],h.prototype,"rotation",null),(0,i.Cg)([(0,s.MZ)()],h.prototype,"localMatrix",null),(0,i.Cg)([(0,s.MZ)()],h.prototype,"localMatrixInverse",null),h=(0,i.Cg)([(0,s.$K)("esri.geometry.support.MeshTransform")],h);const y=(0,d.vt)()},24770(e,t,r){r.d(t,{$I:()=>m,AU:()=>y,Cr:()=>c,g7:()=>_,i4:()=>d,ui:()=>p,up:()=>v,vt:()=>u,yo:()=>f});var i=r(34727),a=r(58083),n=r(67026),s=r(82534),o=r(35522),l=r(51850);function u(e=v){return[e[0],e[1],e[2],e[3]]}function d(e,t,r=u()){return(0,o.C)(r,e),r[3]=t,r}function c(e,t,r){return(0,o.$A)(r,e,t),(0,o.S8)(r,r),r[3]=-(0,o.g7)(e,t),r}function p(e,t=u()){const r=(0,a.l)(w,e);return g(t,(0,i.KJ)((0,n.Xd)(t,r))),t}function h(e,t,r=u()){return(0,n.x8)(w,e,m(e)),(0,n.x8)(b,t,m(t)),(0,n.lw)(w,b,w),g(r,(0,i.KJ)((0,n.Xd)(r,w)))}function y(e,t,r,i=u()){return d(l.Cw,e,M),d(l.JP,t,I),d(l.Cb,r,S),h(M,I,M),h(M,S,i),i}function f(e){return e}function _(e){return e[3]}function m(e){return(0,i.kU)(e[3])}function g(e,t){return e[3]=t,e}const v=[0,0,1,0],w=(0,s.vt)(),b=(0,s.vt)(),M=(u(),u()),I=u(),S=u()},2e4(e,t,r){r.r(t),r.d(t,{default:()=>Ee});var i=r(5482),a=r(52106),n=r(37838),s=r(69540),o=r(7762),l=r(49186),u=r(36563),d=r(53966),c=r(97768),p=r(25728),h=r(17676),y=r(36708),f=r(91429),_=r(88620),m=r(86738),g=r(91218),v=r(55156),w=r(60950),b=r(89808),M=r(99959);const I=Symbol("isSceneGraphicOrigin");var S;class A extends M.A{get[(S=I,w.ym)](){return this.layer}get[v.e](){return this.layer}get[b.Q](){return this.layer}constructor(e){super(),this[S]=!0,this.type="scene",this.layer=e}get id(){return this.layer.id}}var C=r(4146),L=r(55726),F=r(52136),x=r(18768),T=r(69208),D=r(47685),P=r(34287),O=r(8303),R=r(25036),E=r(58947),j=r(82935),N=r(60694),G=r(92009),U=r(4071),Z=r(10873),V=r(15426),H=r(67202),k=r(17036),q=r(95466),$=r(30524),K=r(50805),B=r(20557),W=r(46499),Q=r(39383),z=r(37352),J=r(2976),Y=r(86390),X=r(25482);let ee=class extends X.o{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,i.Cg)([(0,f.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],ee.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],ee.prototype,"field",void 0),(0,i.Cg)([(0,f.MZ)({type:[Number],json:{read:!0,write:!0}})],ee.prototype,"currentRangeExtent",void 0),(0,i.Cg)([(0,f.MZ)({type:[Number],json:{read:!0,write:!0}})],ee.prototype,"fullRangeExtent",void 0),(0,i.Cg)([(0,f.MZ)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ee.prototype,"type",void 0),ee=(0,i.Cg)([(0,f.$K)("esri.layers.support.RangeInfo")],ee);var te,re=r(11254),ie=r(4718),ae=r(87024),ne=r(67076),se=r(39829);let oe=te=class extends((0,X.T)(o.A.ofType(se.A))){constructor(e){super(e)}clone(){return new te(this.items.map(e=>e.clone()))}write(e,t){return this.toJSON(t)}toJSON(e){const t=e?.layer?.spatialReference;return t?this.toArray().map(r=>{if(!t.equals(r.spatialReference)){if(!(0,g.canProjectWithoutEngine)(r.spatialReference,t))return e?.messages?.push(new ne.A("scenefilter:unsupported","Scene filters with incompatible spatial references are not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),null;const i=new se.A;(0,g.projectPolygon)(r,i,t),r=i}const i=r.toJSON(e);return delete i.spatialReference,i}).filter(e=>null!=e):this.toArray().map(t=>t.toJSON(e))}static fromJSON(e,t){const r=new te;return e.forEach(e=>r.add(se.A.fromJSON(e,t))),r}};oe=te=(0,i.Cg)([(0,f.$K)("esri.layers.support.PolygonCollection")],oe);const le=oe;var ue,de=r(97159),ce=r(36005);let pe=ue=class extends X.o{constructor(e){super(e),this.spatialRelationship="disjoint",this.geometries=new le,this._geometriesSource=null}initialize(){this.addHandles((0,y.on)(()=>this.geometries,"after-changes",()=>this.geometries=this.geometries,y.OH))}readGeometries(e,t,r){Array.isArray(e)?this.geometries=le.fromJSON(e,r):"web-scene"!==r.origin&&"portal-item"!==r.origin||(this._geometriesSource={url:(0,de.f)(e,r),context:r})}async loadGeometries(e,t){if(null==this._geometriesSource)return;const{url:r,context:i}=this._geometriesSource,a=await(0,re.A)(r,{responseType:"json",signal:t?.signal}),n=e.toJSON(),s=a.data.map(e=>({...e,spatialReference:n}));this.geometries=le.fromJSON(s,i),this._geometriesSource=null}clone(){const e=new ue({geometries:(0,ie.o8)(this.geometries),spatialRelationship:this.spatialRelationship});return e._geometriesSource=this._geometriesSource,e}};(0,i.Cg)([(0,f.MZ)({type:["disjoint","contains"],nonNullable:!0,json:{write:{isRequired:!0}}})],pe.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,f.MZ)({type:le,nonNullable:!0,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),(0,ae.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"geometries",contentAddressed:!0})],pe.prototype,"geometries",void 0),(0,i.Cg)([(0,ce.w)(["web-scene","portal-item","service"],"geometries")],pe.prototype,"readGeometries",null),pe=ue=(0,i.Cg)([(0,f.$K)("esri.layers.support.SceneFilter")],pe);const he=pe;function ye({associatedLayer:e,serviceUpdateTimeStamp:t}){const r=e?.editingInfo?.lastEditDate,i=e?.serverGens,a=null!=r,n=null!=t,s=a&&n&&t.lastUpdate!==r.getTime();return a&&(s||!n&&i?.minServerGen!==i?.serverGen)}var fe=r(84952);let _e=class extends X.o{constructor(){super(...arguments),this.endTimeField=null,this.startTimeField=null}};(0,i.Cg)([(0,f.MZ)({type:String})],_e.prototype,"endTimeField",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],_e.prototype,"startTimeField",void 0),_e=(0,i.Cg)([(0,f.$K)("esri.layers.support.SceneServiceTimeInfo")],_e);var me=r(96184),ge=r(8947),ve=r(41214),we=r(97552),be=r(24212),Me=r(30291);async function Ie(e){const t=[];for(const r of e)r.name.toLowerCase().endsWith(".zip")?t.push(Se(r)):t.push(Promise.resolve(r));return(await Promise.all(t)).flat()}async function Se(e){const{BlobReader:t,ZipReader:i,BlobWriter:a}=await Promise.all([r.e(1077),r.e(9588)]).then(r.bind(r,9588)),n=[],s=new i(new t(e));return(await s.getEntries()).forEach(e=>{if(e.directory||/^__MACOS/i.test(e.filename))return;const t=new a;n.push(e.getData(t).then(t=>new File([t],e.filename)))}),Promise.all(n)}var Ae=r(79677),Ce=r(10184),Le=r(5682),Fe=r(45671),xe=r(78553);const Te=new Set(["3DObject","Point"]),De=(0,k.p)();let Pe=class extends((0,D.w6)((0,E.w6)((0,x.b)((0,P.q)((0,O.A)((0,R.j)((0,p.M)((0,T.d)((0,F.p)((0,s.OU)(C.A))))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.graphicOrigin=new A(this),this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new o.A,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.attributeTableTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0,this.serviceTimeInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._set("renderer",null),this.associatedLayer=(0,c.pR)(this.associatedLayer)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getField(e)?.domain??null;return this.associatedLayer?(0,V.Vq)(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new q.A(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:K.W4.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&(0,V.C$)(this.associatedLayer)}get geometryType(){return Re[this.profile]||"mesh"}set renderer(e){(0,$.yp)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e=null!=e?e:U.P;const{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:a,supportsUploadWithItemId:n,supportsGeometryUpdate:s,supportsReturnServiceEditsInSourceSpatialReference:o},data:{supportsZ:l,supportsM:u,isVersioned:d,supportsAttachment:c},operations:{supportsEditing:p,supportsAdd:h,supportsUpdate:y,supportsDelete:f,supportsQuery:_,supportsQueryAttachments:m,supportsAsyncConvert3D:g}}=e,v=e.operations.supportsChangeTracking,w=!!this.associatedLayer?.infoFor3D;return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:o,supportsRollbackOnFailure:a,supportsGeometryUpdate:w&&s,supportsUploadWithItemId:n},data:{supportsAttachment:c,supportsZ:l,supportsM:u,isVersioned:d,queryFormats:e.data.queryFormats,sourceFormats:e.data.sourceFormats},operations:{supportsQuery:_,supportsQueryAttachments:m,supportsEditing:p&&v,supportsAdd:w&&h&&v,supportsDelete:w&&f&&v,supportsUpdate:y&&v,supportsAsyncConvert3D:g}}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e)),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e)),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){const r=t.store.profile;return null!=r&&Oe[r]?Oe[r]:(d.A.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}get useViewTime(){return this.associatedLayer?.useViewTime??!0}set useViewTime(e){this._override("useViewTime",e)}get timeInfo(){const e=this.associatedLayer?.timeInfo;if(null==e)return null;const t=e.clone();return(0,$.sv)(t,this.fieldsIndex),t}set timeInfo(e){(0,$.sv)(e,this.fieldsIndex),this._override("timeInfo",e)}get timeExtent(){return this.associatedLayer?.timeExtent}set timeExtent(e){this._override("timeExtent",e)}get timeOffset(){return this.associatedLayer?.timeOffset}set timeOffset(e){this._override("timeOffset",e)}get datesInUnknownTimezone(){return this.associatedLayer?.datesInUnknownTimezone??!1}set datesInUnknownTimezone(e){this._override("datesInUnknownTimezone",e)}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const t=e?.signal;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(h.QP),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await this.loadTimeInfoFromService(e),await(0,ge.L)(this,{origin:"service"},t),(0,$.yp)(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){d.A.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){const e=new we.A;return"mesh"===this.geometryType?this.capabilities.query.supportsReturnMesh&&(e.returnGeometry=!0):(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryExtent(e||this.createQuery(),t))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatureCount(e||this.createQuery(),t))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatures(e||this.createQuery(),t)).then(e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}async queryModels(e,t){const[i,{queryModels:a}]=await Promise.all([this._getAssociatedLayerForQuery(),Promise.all([r.e(893),r.e(5167)]).then(r.bind(r,41653))]);return a(this,i,e,t)}async queryModel(e,t){const[i,{queryModel:a}]=await Promise.all([this._getAssociatedLayerForQuery(),Promise.all([r.e(893),r.e(5167)]).then(r.bind(r,41653))]);return a(this,i,e,t)}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){const r=(0,$.hL)(this.fieldsIndex,await(0,Fe.TO)(this,(0,Fe.D8)(this)));return(0,Le.s1)(this.parsedUrl?.path??"",this.attributeStorageInfo??[],e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new l.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const i=new a.A;return i.attributes=r[0],i.layer=this,i.sourceLayer=this,i.origin=this.graphicOrigin,i}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryObjectIds(e||this.createQuery(),t))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryAttachments(e,t))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(d.A.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,Me.tn)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new l.A("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some(t=>t.name===e)}async queryCachedStatistics(e,t){return await this.load(t),await this.fetchStatistics(e,t)}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(0,e)}async applyEdits(e,t){const{applyEdits:i}=await r.e(6247).then(r.bind(r,78628));let a=t;await this.load();const n=this.associatedLayer;if(!n)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");await n.load();const{globalIdField:s}=n,o=!!n.infoFor3D,u=a?.globalIdUsed??!0;if(o&&null==s)throw new l.A(`${this.type}-layer:not-editable`,"Valid globalIdField expected on editable SceneLayer");if(o&&!u)throw new l.A(`${this.type}-layer:globalid-required`,"globalIdUsed must not be false for SceneLayer editing as globalIds are required.");return(0,N.Wo)(n.url)&&o&&null!=e.deleteFeatures&&null!=s&&(a={...a,globalIdToObjectId:await(0,V.GA)(n,e.deleteFeatures,s)}),i(this,n.source,e,a)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}async convertMesh(e,t){t??={};const i=e=>{throw d.A.getLogger(this).error(".convertMesh()",e.message),e};await this.load(t),this.infoFor3D||i(new l.A("invalid:layer","SceneLayer has no capability for mesh conversion"));const a=await this.extractAndFilterFiles(e);(0,h.Te)(t);const n=a.reduce((e,t)=>(0,B.oF)(this.infoFor3D,t)?e+1:e,0);0===n&&i(new L.VP),n>1&&i(new L.XQ);const s=this.spatialReference,o=t.origin,u=await(0,g.projectAsync)(o??t.defaultOrigin??new m.A({x:0,y:0,z:0,spatialReference:s}),s,t),c=s.isGeographic?"local":"georeferenced",{createWithExternalSource:p}=await Promise.all([r.e(1843),r.e(1653),r.e(118),r.e(9840)]).then(r.bind(r,40118));(0,h.Te)(t);const y=p(u,{type:"client",files:a},{vertexSpace:c,transform:(0,Y.Z)(s),unitConversionDisabled:!0}),[f]=await this.uploadAssets([y],{...t,useAssetOrigin:!o});return f}async extractAndFilterFiles(e){await this.load();const t=this.infoFor3D;return t?(await Ie(e)).filter(e=>(0,B.fu)(t,e)):e}validateLayer(e){if(e.layerType&&!Te.has(e.layerType))throw new l.A("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new l.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new l.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const a=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=a;break;case"vertex-reference-frame":r=!0,i=!a;break;default:r=!1}}if(!r)throw new l.A("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new l.A("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new l.A("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!!this.attributeStorageInfo?.some(t=>t.name===e.name),r=!!this.associatedLayer?.fields?.some(t=>t&&e.name===t.name),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPropertyOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPropertyOverrides(){if(!this.associatedLayer)return;const e=["popupTemplate","popupEnabled","attributeTableTemplate"],t=(0,_.oY)(this);for(let r=0;r<e.length;r++){const i=e[r],a=this.originIdOf(i),n=this.associatedLayer.originIdOf(i);a<n&&(2===n||3===n)&&t.setAtOrigin(i,this.associatedLayer[i],n)}}_applyAssociatedLayerExtentOverride(){const e=this.associatedLayer?.getAtOrigin("fullExtent","service");null!=this.associatedLayer?.infoFor3D&&e&&(0,N.Wo)(this.associatedLayer?.url)&&ye(this)&&(0,_.oY)(this).setAtOrigin("fullExtent",e.clone(),2)}_applyAssociatedLayerPrivileges(){const e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{const{serverUrl:t,layerId:r,portalItem:i}=await(0,G.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e}),a=await J.U.FeatureLayer();this.associatedLayer=new a({url:t,customParameters:this.customParameters,apiKey:this.apiKey,layerId:r,portalItem:i}),await this.associatedLayer.load()}catch(e){(0,h.zf)(e)||this._logWarningOnPopupEnabled()}}async _logWarningOnPopupEnabled(){const e=new AbortController;this.addHandles((0,u.rE)(e));try{await(0,y.C_)(()=>this.popupEnabled&&null!=this.popupTemplate,e.signal)}catch(e){return void(0,h.jH)(e)}const t=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?d.A.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${t}`):d.A.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${t}`)}_validateElevationInfo(){const e=this.elevationInfo;"mesh-pyramids"===this.profile&&(0,be.XF)(d.A.getLogger(this),(0,be.$7)("Mesh scene layers","relative-to-scene",e)),(0,be.XF)(d.A.getLogger(this),(0,be.tW)("Scene layers",e))}async fetchStatistics(e,t){return await async function({fieldName:e,statisticsInfo:t,errorContext:r,fieldsIndex:i,path:a,customParameters:n,apiKey:s,signal:o}){if(null==t)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics are not available for this layer");const u=i.get(e);if(null==u)throw new l.A(`${r}:field-unexisting`,`Field '${e}' does not exist on the layer`);const d=t.find(e=>e.name===u.name);if(null==d)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics for this attribute are not available");const c=(0,fe.fj)(a,d.href),{data:p}=await(0,re.A)(c,{query:{f:"json",...n,token:s},responseType:"json",signal:o});return p}({fieldName:e,statisticsInfo:this.statisticsInfo,errorContext:"scenelayer",fieldsIndex:this.fieldsIndex,path:this.parsedUrl?.path??"",customParameters:this.customParameters,apiKey:this.apiKey,signal:t?.signal})}async loadTimeInfoFromService(e){const{serviceTimeInfo:t}=this;if(null==t)return;const{startTimeField:r,endTimeField:i}=t;if(null==r&&null==i)return;if(ye({associatedLayer:this.associatedLayer,serviceUpdateTimeStamp:this.serviceUpdateTimeStamp}))return;const a=async t=>{let i=null;try{const r=await this.fetchStatistics(t,e);i=r?.stats}catch{}if(null==i)return null;const{minTimeStr:a,min:n,maxTimeStr:s,max:o}=i,l=t===r?a??n:s??o;return null!=l?new Date(l):null},[n,s]=await Promise.all([a(r),a(i)]);if(null!=r&&null==n||null!=i&&null==s)return;const o=new Ae.A({start:n,end:s});this.setAtOrigin("timeInfo",new me.A({endField:i,startField:r,fullTimeExtent:o}),"service")}};(0,i.Cg)([(0,f.MZ)({types:{key:"type",base:null,typeMap:{selection:H.A}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:{allowNull:!0}},"portal-item":{name:"layerDefinition.featureReduction",write:{allowNull:!0}}}}})],Pe.prototype,"featureReduction",void 0),(0,i.Cg)([(0,f.MZ)({type:[ee],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}},clonable:!1})],Pe.prototype,"rangeInfos",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1}})],Pe.prototype,"associatedLayer",void 0),(0,i.Cg)([(0,f.MZ)({type:["show","hide"]})],Pe.prototype,"listMode",void 0),(0,i.Cg)([(0,f.MZ)({type:["ArcGISSceneServiceLayer"]})],Pe.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1},readOnly:!0})],Pe.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)({...De.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"fields",void 0),(0,i.Cg)([(0,f.MZ)()],Pe.prototype,"types",null),(0,i.Cg)([(0,f.MZ)()],Pe.prototype,"typeIdField",null),(0,i.Cg)([(0,f.MZ)()],Pe.prototype,"templates",null),(0,i.Cg)([(0,f.MZ)()],Pe.prototype,"formTemplate",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Pe.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,clonable:!1})],Pe.prototype,"fieldsIndex",null),(0,i.Cg)([(0,f.MZ)({type:z.A,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Pe.prototype,"floorInfo",void 0),(0,i.Cg)([(0,f.MZ)(De.outFields)],Pe.prototype,"outFields",void 0),(0,i.Cg)([(0,f.MZ)({type:K.W4,readOnly:!0,json:{read:!1},clonable:!1})],Pe.prototype,"nodePages",void 0),(0,i.Cg)([(0,ce.w)("service","nodePages",["nodePages","pointNodePages"])],Pe.prototype,"readNodePages",null),(0,i.Cg)([(0,f.MZ)({type:[K.uV],readOnly:!0,clonable:!1})],Pe.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,f.MZ)({type:[K.Ot],readOnly:!0,clonable:!1})],Pe.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,f.MZ)({type:[K.L0],readOnly:!0,clonable:!1})],Pe.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Pe.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Pe.prototype,"attributeStorageInfo",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Pe.prototype,"statisticsInfo",void 0),(0,i.Cg)([(0,f.MZ)({type:o.A.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],Pe.prototype,"excludeObjectIds",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Pe.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,f.MZ)({type:he,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],Pe.prototype,"filter",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Pe.prototype,"path",void 0),(0,i.Cg)([(0,f.MZ)(Z.Yj)],Pe.prototype,"elevationInfo",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Pe.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,f.MZ)({type:String})],Pe.prototype,"geometryType",null),(0,i.Cg)([(0,f.MZ)(Z.kF)],Pe.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,f.MZ)({type:[W.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:Q.w},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:Q.w},write:!0}})],Pe.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,f.MZ)(Z.fV)],Pe.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?(0,xe.D)(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],Pe.prototype,"opacity",void 0),(0,i.Cg)([(0,f.MZ)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"priority",void 0),(0,i.Cg)([(0,f.MZ)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"semantic",void 0),(0,i.Cg)([(0,f.MZ)({types:ve.XJ,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],Pe.prototype,"renderer",null),(0,i.Cg)([(0,f.MZ)({json:{read:!1}})],Pe.prototype,"cachedDrawingInfo",void 0),(0,i.Cg)([(0,ce.w)("service","cachedDrawingInfo")],Pe.prototype,"readCachedDrawingInfo",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"capabilities",null),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{read:!1}})],Pe.prototype,"editingEnabled",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{write:!1,read:!1}})],Pe.prototype,"infoFor3D",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{write:!1,read:!1}})],Pe.prototype,"relationships",null),(0,i.Cg)([(0,f.MZ)(Z.M6)],Pe.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],Pe.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,f.MZ)(Z.zQ)],Pe.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{read:!1}})],Pe.prototype,"objectIdField",void 0),(0,i.Cg)([(0,ce.w)("service","objectIdField",["objectIdField","fields"])],Pe.prototype,"readObjectIdField",null),(0,i.Cg)([(0,f.MZ)({type:String,json:{read:!1}})],Pe.prototype,"globalIdField",void 0),(0,i.Cg)([(0,ce.w)("service","globalIdField",["globalIdField","fields"])],Pe.prototype,"readGlobalIdField",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,type:String,json:{read:!1}})],Pe.prototype,"displayField",null),(0,i.Cg)([(0,f.MZ)({type:String,json:{read:!1}})],Pe.prototype,"profile",void 0),(0,i.Cg)([(0,ce.w)("service","profile",["store.profile"])],Pe.prototype,"readProfile",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],Pe.prototype,"normalReferenceFrame",void 0),(0,i.Cg)([(0,f.MZ)(Z.PY)],Pe.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"serviceItemId",void 0),(0,i.Cg)([(0,f.MZ)(j.B)],Pe.prototype,"useViewTime",null),(0,i.Cg)([(0,f.MZ)({type:me.A,json:{read:!1,write:!1}})],Pe.prototype,"timeInfo",null),(0,i.Cg)([(0,f.MZ)({type:Ae.A,json:{read:!1,write:!1}})],Pe.prototype,"timeExtent",null),(0,i.Cg)([(0,f.MZ)({type:Ce.A,json:{read:!1,write:!1}})],Pe.prototype,"timeOffset",null),(0,i.Cg)([(0,f.MZ)({type:Boolean,nonNullable:!0,json:{read:!1,write:!1}})],Pe.prototype,"datesInUnknownTimezone",null),(0,i.Cg)([(0,f.MZ)({type:_e,readOnly:!0,json:{read:{source:"timeInfo"}},clonable:!1})],Pe.prototype,"serviceTimeInfo",void 0),Pe=(0,i.Cg)([(0,f.$K)("esri.layers.SceneLayer")],Pe);const Oe={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},Re={"mesh-pyramids":"mesh",points:"point"},Ee=Pe},55726(e,t,r){r.d(t,{$1:()=>u,H2:()=>h,MT:()=>y,VP:()=>f,WF:()=>d,Wt:()=>s,XQ:()=>_,hK:()=>p,nS:()=>c,uh:()=>o,xY:()=>l});var i=r(49186);const a="upload-assets",n=()=>new Error;class s extends i.A{constructor(){super(`${a}:unsupported`,"Layer does not support asset uploads.",n())}}class o extends i.A{constructor(){super(`${a}:no-glb-support`,"Layer does not support glb.",n())}}class l extends i.A{constructor(){super(`${a}:no-supported-source`,"No supported external source found",n())}}class u extends i.A{constructor(){super(`${a}:not-base-64`,"Expected gltf data in base64 format after conversion.",n())}}class d extends i.A{constructor(){super(`${a}:unable-to-prepare-options`,"Unable to prepare uploadAsset request options.",n())}}class c extends i.A{constructor(e,t){super(`${a}:bad-response`,`Bad response. Uploaded ${e} items and received ${t} results.`,n())}}class p extends i.A{constructor(e,t){super(`${a}-layer:upload-failed`,`Failed to upload mesh file ${e}. Error code: ${t?.code??"-1"}. Error message: ${t?.messages??"unknown"}`,n())}}class h extends i.A{constructor(e){super(`${a}-layer:unsupported-format`,`The service allowed us to upload an asset of FormatID ${e}, but it does not list it in its supported formats.`,n())}}class y extends i.A{constructor(){super(`${a}:convert3D-failed`,"convert3D failed.")}}class f extends i.A{constructor(){super("invalid-input:no-model","No supported model found")}}class _ extends i.A{constructor(){super("invalid-input:multiple-models","Multiple supported models found")}}},18768(e,t,r){r.d(t,{b:()=>o});var i=r(5482),a=r(53966),n=r(91429),s=r(60694);const o=e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,s.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,s.Jf)(e,a.A.getLogger(this)))}};return(0,i.Cg)([(0,n.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],r),r}},69208(e,t,r){r.d(t,{d:()=>n});var i=r(5482),a=r(91429);const n=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,a.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}},8303(e,t,r){r.d(t,{A:()=>M});var i=r(5482),a=r(92602),n=r(70333),s=r(11254),o=r(60999),l=r(49186),u=r(36563),d=r(53966),c=r(97768),p=r(17676),h=r(84952),y=r(91429),f=r(77548),_=r(20655),m=r(80812),g=r(41318),v=r(10407),w=r(36005),b=r(43937);const M=e=>{const t=e;let M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||d.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:t}=await r.e(1204).then(r.bind(r,41204)),i=new AbortController,a=(0,u.rE)(i);return this.addHandles(a,"reloadFromPortal"),await t({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},{signal:i.signal})}catch(e){throw(0,p.zf)(e)||d.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!a.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:a}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",a)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!n.id?.findCredential(this.url),a=e===r.id;if(a&&r.portal.user)return this._getUserPrivileges(r,i);let s,o;if(a)s=r.portal.url;else try{s=await(0,f.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!s||!(0,h.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(n.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,u=!1,d=!1;if(!o)return{features:{edit:l,fullEdit:u},content:{updateItem:d}};try{if(a?await r.reload():(r=new m.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:d}}}_getUserPrivileges(e,t){const r=(0,v.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const r=I.credential===t?I.user:await this._fetchEditingUser(e);return I.credential=t,I.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=n.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,a=_.A.getDefault();if(a&&a.loaded&&(0,h.S8)(a.restUrl)===(0,h.S8)(i))return a.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,d=await(0,o.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return d.ok?g.A.fromJSON(d.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||_.A.getDefault());return r&&i&&!(0,h.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,y.MZ)({type:m.default})],M.prototype,"portalItem",null),(0,i.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,i.Cg)([(0,b.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,i.Cg)([(0,y.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,i.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],M),M},I={credential:null,user:null}},25036(e,t,r){r.d(t,{j:()=>n});var i=r(5482),a=r(91429);const n=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}},82935(e,t,r){r.d(t,{B:()=>p,e:()=>h});var i=r(5482),a=r(91429),n=r(89317),s=r(30524),o=r(96184),l=r(73133),u=r(79677),d=r(10184),c=r(36005);const p={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:n.K}}},h=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,a=l.j.fromJSON(r.timeOffsetUnits);return i&&a?new d.A({value:i,unit:a}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,a.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,a.MZ)({type:d.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,c.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,a.MZ)({value:null,type:o.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,a.MZ)(p)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.TemporalLayer")],r),r}},67202(e,t,r){r.d(t,{A:()=>o});var i,a=r(5482),n=r(25482),s=r(91429);let o=i=class extends n.o{constructor(e){super(e),this.type="selection"}clone(){return new i}};(0,a.Cg)([(0,s.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],o.prototype,"type",void 0),o=i=(0,a.Cg)([(0,s.$K)("esri.layers.support.FeatureReductionSelection")],o)},96184(e,t,r){r.d(t,{A:()=>h});var i=r(5482),a=r(69540),n=r(25482),s=r(91429),o=r(79677),l=r(10184),u=r(56400),d=r(36005),c=r(43937);function p(e,t){return l.A.fromJSON({value:e,unit:t})}let h=class extends((0,a.OU)(n.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?o.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?p(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?p(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i.Cg)([(0,s.MZ)({type:o.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,d.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,c.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,s.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i.Cg)([(0,d.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i.Cg)([(0,c.K)("interval")],h.prototype,"writeInterval",null),(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i.Cg)([(0,s.MZ)((0,u.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,i.Cg)([(0,s.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,i.Cg)([(0,s.$K)("esri.layers.support.TimeInfo")],h)},17036(e,t,r){r.d(t,{p:()=>l});var i=r(44208),a=r(53966),n=r(20437),s=r(95466),o=r(30524);function l(){return{fields:{type:[n.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");a.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return s.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||a.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,o.DB)(this.fieldsIndex,e)}}}}},20557(e,t,r){r.d(t,{Fm:()=>l,Hz:()=>_,JQ:()=>f,JZ:()=>A,ND:()=>g,R_:()=>s,U9:()=>y,_h:()=>w,be:()=>c,fE:()=>h,fu:()=>a,nr:()=>m,oF:()=>n,qv:()=>S,rP:()=>p,rq:()=>u,z$:()=>d});const i=[["binary","application/octet-stream","bin",""]];function a(e,t){return null!=b(t.name,e?.supportedFormats??[])}function n(e,t){if(!e)return!1;const r=u(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function s(e,t){return M(function(e,t){const r=e.toLowerCase();return v(t).find(e=>I(e)===r)}(e,t))}function o(e,t){return M(b(e,t))}function l(e,t){return I(w(e,t))}function u(e,t){return o(e.name,t)??s(e.type,t)}function d(e,t,r){return s(e,r)??o(t,r)}function c(e,t){if(!e||!w(e,t))return;const r=/^3d_(.+)$/iu.exec(e)?.[1]?.toLowerCase();return r||void 0}function p(e,t){return(e??[]).map(e=>c(e,t)).filter(e=>!!e)}function h(e,t){return M(t.find(r=>c(M(r),t)===e))}function y({supportedFormats:e}){return d("model/gltf-binary","glb",e)}function f(e){const t=y(e);return null!=t&&e.editFormats.includes(t)}function _(e){if(!e)return null;const t=y(e),r=function({supportedFormats:e}){return d("model/gltf+json","gltf",e)}(e);let i=null;for(const a of e.queryFormats){if(a===t)return a;a===r&&(i=a)}return i}function m({supportedFormats:e}){return d("application/esri3do-SR_world","wld",e)}function g({supportedFormats:e}){return d("application/esri3do-SR_prj","prj",e)}function v(e){return[...i,...e]}function w(e,t){return v(t).find(t=>M(t)===e)}function b(e,t){const r=e.toLowerCase();return v(t).find(e=>S(e).some(e=>r.endsWith(e)))}function M(e){return e?.[0]}function I(e){return e?.[1].toLowerCase()}function S(e){return e?.[2].split(",").map(e=>e.toLowerCase())??[]}function A(e){return e.tables?.find(e=>"assetMaps"===e.role)}},86390(e,t,r){r.d(t,{Z:()=>n});var i=r(86211),a=r(73836);function n(e){const t=1/(0,i.GA)(e,1);return 1!==t?new a.A({scale:[t,t,t]}):void 0}},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var i=r(4718),a=r(53966),n=r(84952),s=r(60694),o=r(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:r}=e??{},n=(0,i.o8)(o.OZ),l=n.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,i,a){(0,s.LS)(this,e,r,t,a)}),{...n,set:function(e){if(null==e)return void this._set("url",e);const r=(0,s.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:a.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){const{separator:r}=t??{},i=(0,n.An)(e.url);return null!=i&&(null!=e.dynamicDataSource?i.path=(0,n.fj)(i.path,"dynamicLayer"):null!=e.layerId&&(i.path=(0,n.fj)(i.path,r??"",e.layerId.toString()))),i}},10407(e,t,r){r.d(t,{It:()=>h,LG:()=>s,OM:()=>u,Sm:()=>d,Y:()=>o,bK:()=>l,mm:()=>p,sQ:()=>c});var i=r(91218),a=r(16930),n=r(28735);function s(e,t){if(!o(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return o(e,p.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function d(e,t,r){r?s(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,n.ci)(e);const r=a.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const p={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function h(e){const{portal:t,isOrgItem:r,itemControl:i}=e,a=t.user?.privileges;let n=!a||a.includes("features:user:edit"),s=!!r&&!!a?.includes("features:user:fullEdit");const o="update"===i||"admin"===i;return o?s=n=!0:s&&(n=!0),{features:{edit:n,fullEdit:s},content:{updateItem:o}}}},85648(e,t,r){r.d(t,{n:()=>a});var i=r(84952);function a(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.Zo)(e);return l[t]||s}(e.url)}(e)]||o}const n={},s="text/plain",o=n[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)n[l[e]]=e},8947(e,t,r){r.d(t,{L:()=>s});var i=r(60999),a=r(17676),n=r(67076);async function s(e,t,r){const s=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(s&&"unique-value"===s.type&&s.styleOrigin){const o=await(0,i.Ke)(s.populateFromStyle());if((0,a.Te)(r),!1===o.ok){const r=o.error;t?.messages&&t.messages.push(new n.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}}}]);