@arcgis/map-components 6.0.0-next.4 → 6.0.0-next.40

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 (809) hide show
  1. package/dist/cdn/{ZBC5RBCD.js → 27TSPXYV.js} +1 -1
  2. package/dist/cdn/2BKWAHTD.js +2 -0
  3. package/dist/cdn/2EXFLJU6.js +2 -0
  4. package/dist/cdn/2J6WEB6T.js +2 -0
  5. package/dist/cdn/2JSC2QUL.js +2 -0
  6. package/dist/cdn/2PRSXEWN.js +2 -0
  7. package/dist/cdn/2TATEEFZ.js +2 -0
  8. package/dist/cdn/2X67IX24.js +2 -0
  9. package/dist/cdn/3AMV4V75.js +2 -0
  10. package/dist/cdn/3GEL52XF.js +2 -0
  11. package/dist/cdn/{QKZ552KI.js → 3SMFVQGP.js} +1 -1
  12. package/dist/cdn/3TKC6DSX.js +2 -0
  13. package/dist/cdn/3VFPLRD3.js +2 -0
  14. package/dist/cdn/42QIJYPN.js +2 -0
  15. package/dist/cdn/{AN7R3DP5.js → 43IGD6V3.js} +1 -1
  16. package/dist/cdn/{SAOLD6MH.js → 446K7RDY.js} +1 -1
  17. package/dist/cdn/44ZEP4IY.js +2 -0
  18. package/dist/cdn/46XABBUQ.js +2 -0
  19. package/dist/cdn/4DRKK3S6.js +2 -0
  20. package/dist/cdn/4HP7BSCJ.js +2 -0
  21. package/dist/cdn/4JR57ZIQ.js +2 -0
  22. package/dist/cdn/4KLQZIOV.js +2 -0
  23. package/dist/cdn/{QT7GRA34.js → 4LFTK2G2.js} +1 -1
  24. package/dist/cdn/{DUMHDAYP.js → 4O6ZYILT.js} +1 -1
  25. package/dist/cdn/4OOG2D4K.js +2 -0
  26. package/dist/cdn/4PM34QMT.js +2 -0
  27. package/dist/cdn/4U6DCBKV.js +2 -0
  28. package/dist/cdn/5CXJJCRX.js +2 -0
  29. package/dist/cdn/5GEEJRIV.js +2 -0
  30. package/dist/cdn/5IWCWL2Q.js +2 -0
  31. package/dist/cdn/5VK56DPB.js +2 -0
  32. package/dist/cdn/{ABOTJ6RE.js → 5XZKVLHC.js} +1 -1
  33. package/dist/cdn/{VTCE3YQW.js → 5YPWQQGI.js} +1 -1
  34. package/dist/cdn/625O4F4L.js +2 -0
  35. package/dist/cdn/64Z2GM4G.js +2 -0
  36. package/dist/cdn/6BT6RP22.js +2 -0
  37. package/dist/cdn/{ESOCZAMZ.js → 6DNLVSRG.js} +1 -1
  38. package/dist/cdn/6GFNMSM4.js +2 -0
  39. package/dist/cdn/6H3MIUBS.js +2 -0
  40. package/dist/cdn/6KYZMT4A.js +2 -0
  41. package/dist/cdn/6QZ7MAGX.js +2 -0
  42. package/dist/cdn/6SL7YNKF.js +2 -0
  43. package/dist/cdn/6WT5CUW4.js +2 -0
  44. package/dist/cdn/7LXH7MOG.js +2 -0
  45. package/dist/cdn/7P24CQF4.js +2 -0
  46. package/dist/cdn/7PMJ7HCH.js +2 -0
  47. package/dist/cdn/A6ANFEOT.js +2 -0
  48. package/dist/cdn/AGMTGWSW.js +2 -0
  49. package/dist/cdn/AMRGLUBB.js +2 -0
  50. package/dist/cdn/ANB7YZCR.js +2 -0
  51. package/dist/cdn/{V2YPYCU6.js → ANL4FWAY.js} +1 -1
  52. package/dist/cdn/{2SO5S66J.js → AV6RANT4.js} +1 -1
  53. package/dist/cdn/B5JHLGAR.js +2 -0
  54. package/dist/cdn/{KBA5OIES.js → BBCJXNKF.js} +1 -1
  55. package/dist/cdn/BDWZ4IDY.js +2 -0
  56. package/dist/cdn/BJUFDQGX.js +2 -0
  57. package/dist/cdn/BMCWYFA5.js +2 -0
  58. package/dist/cdn/BUJRBKUJ.js +2 -0
  59. package/dist/cdn/BXBPEOE3.js +2 -0
  60. package/dist/cdn/BZ7I4EVH.js +2 -0
  61. package/dist/cdn/C56JAWYF.js +2 -0
  62. package/dist/cdn/C6YBFPOZ.js +2 -0
  63. package/dist/cdn/CDZ5APA7.js +2 -0
  64. package/dist/cdn/CLAUPAZP.js +2 -0
  65. package/dist/cdn/CN4RPDZZ.js +2 -0
  66. package/dist/cdn/CNUAMIZQ.js +3 -0
  67. package/dist/cdn/CRF4QEYX.js +2 -0
  68. package/dist/cdn/CRJB272X.js +2 -0
  69. package/dist/cdn/CX23L4OX.js +2 -0
  70. package/dist/cdn/D3EEDNNQ.js +2 -0
  71. package/dist/cdn/{EK7Y6JBZ.js → D73SZKP6.js} +1 -1
  72. package/dist/cdn/D7RGMUI2.js +2 -0
  73. package/dist/cdn/DBDYLXR3.js +2 -0
  74. package/dist/cdn/DENZ276N.js +2 -0
  75. package/dist/cdn/DFNH6YRR.js +2 -0
  76. package/dist/cdn/DJTPCTD2.js +2 -0
  77. package/dist/cdn/{WBBTZNZU.js → DP2UXNPJ.js} +1 -1
  78. package/dist/cdn/DSIYRWN2.js +2 -0
  79. package/dist/cdn/DVH35LZL.js +2 -0
  80. package/dist/cdn/DVLTVCIH.js +2 -0
  81. package/dist/cdn/DXPNJHEM.js +2 -0
  82. package/dist/cdn/DYKRS7YX.js +2 -0
  83. package/dist/cdn/{HPWF3IQV.js → E3RBRDUV.js} +1 -1
  84. package/dist/cdn/EG2L67V5.js +2 -0
  85. package/dist/cdn/ELK22XFC.js +2 -0
  86. package/dist/cdn/EMOYKTQL.js +2 -0
  87. package/dist/cdn/EPPCGUBI.js +2 -0
  88. package/dist/cdn/{VUAYNF3K.js → EZFBYRI4.js} +1 -1
  89. package/dist/cdn/F5JWLUNT.js +2 -0
  90. package/dist/cdn/{WSHG4LV7.js → F5X65A3N.js} +1 -1
  91. package/dist/cdn/{RRSU6QD4.js → F6OOD4XH.js} +1 -1
  92. package/dist/cdn/FK6XIGNL.js +2 -0
  93. package/dist/cdn/{MA7GBKLW.js → FK7DDNOY.js} +1 -1
  94. package/dist/cdn/FPE4MRJJ.js +2 -0
  95. package/dist/cdn/FTRRLFYT.js +2 -0
  96. package/dist/cdn/FY7P5YLX.js +2 -0
  97. package/dist/cdn/{PPAFKBPN.js → G4CULX2V.js} +1 -1
  98. package/dist/cdn/G7UA3GCV.js +2 -0
  99. package/dist/cdn/GA75N36P.js +2 -0
  100. package/dist/cdn/GDE46UIN.js +2 -0
  101. package/dist/cdn/GEZIZQV6.js +2 -0
  102. package/dist/cdn/{V62TVP3T.js → GFC6LS4L.js} +1 -1
  103. package/dist/cdn/GGS33TQP.js +2 -0
  104. package/dist/cdn/{OUC5HWPQ.js → GKMKHUYO.js} +1 -1
  105. package/dist/cdn/GMXEWGVF.js +2 -0
  106. package/dist/cdn/GOMR7D5M.js +2 -0
  107. package/dist/cdn/GQDEVRKG.js +2 -0
  108. package/dist/cdn/GRZJXRZ5.js +2 -0
  109. package/dist/cdn/{65MI3MW2.js → GTQOMGD7.js} +1 -1
  110. package/dist/cdn/GZOFHTYL.js +2 -0
  111. package/dist/cdn/H3BORJ4D.js +2 -0
  112. package/dist/cdn/H7KPXXYG.js +2 -0
  113. package/dist/cdn/HKKNU4CX.js +2 -0
  114. package/dist/cdn/HOMM5T7F.js +2 -0
  115. package/dist/cdn/HR7ZYFTI.js +2 -0
  116. package/dist/cdn/{PGUZODKZ.js → HTUN6GST.js} +1 -1
  117. package/dist/cdn/HU2SSY4B.js +2 -0
  118. package/dist/cdn/{ZIBQTNB6.js → HU6UTBYZ.js} +1 -1
  119. package/dist/cdn/HUZLTULW.js +2 -0
  120. package/dist/cdn/HXQ26YHC.js +2 -0
  121. package/dist/cdn/I7XTEFQP.js +2 -0
  122. package/dist/cdn/ICVPF3HG.js +2 -0
  123. package/dist/cdn/{FHHVGI4H.js → IGJX57YC.js} +1 -1
  124. package/dist/cdn/IH2T7XRU.js +2 -0
  125. package/dist/cdn/IH7XQCY4.js +2 -0
  126. package/dist/cdn/IRDDLVT2.js +2 -0
  127. package/dist/cdn/IW3P4TGM.js +4 -0
  128. package/dist/cdn/{4HNRKSQ2.js → IZFEOYED.js} +1 -1
  129. package/dist/cdn/J2UKNBRU.js +2 -0
  130. package/dist/cdn/J4Q5N5D6.js +2 -0
  131. package/dist/cdn/JB6WQEFJ.js +2 -0
  132. package/dist/cdn/{ET4UP4EQ.js → JBD7Q5YD.js} +1 -1
  133. package/dist/cdn/JFE63ANJ.js +2 -0
  134. package/dist/cdn/JILA7S66.js +2 -0
  135. package/dist/cdn/JPQ5ELDQ.js +2 -0
  136. package/dist/cdn/JWCEHGEZ.js +2 -0
  137. package/dist/cdn/K2FK6DOL.js +2 -0
  138. package/dist/cdn/KBRYRH7T.js +2 -0
  139. package/dist/cdn/KKSTZRNG.js +2 -0
  140. package/dist/cdn/KLSIUZNN.js +2 -0
  141. package/dist/cdn/KMT6GH2D.js +2 -0
  142. package/dist/cdn/KWY77UEE.js +2 -0
  143. package/dist/cdn/{52CUDGKY.js → KWYTKFIZ.js} +1 -1
  144. package/dist/cdn/{S6BPBG7D.js → L2L5W4AL.js} +1 -1
  145. package/dist/cdn/L3G6WFXY.js +2 -0
  146. package/dist/cdn/L6B4S7NV.js +2 -0
  147. package/dist/cdn/LDNST76E.js +2 -0
  148. package/dist/cdn/LGBJIOTW.js +2 -0
  149. package/dist/cdn/LHH3PS5H.js +2 -0
  150. package/dist/cdn/{SIFBGT4D.js → LI3NOBHV.js} +1 -1
  151. package/dist/cdn/LQYTLVCL.js +2 -0
  152. package/dist/cdn/LU7T7KSQ.js +2 -0
  153. package/dist/cdn/LUXHFHRT.js +2 -0
  154. package/dist/cdn/LWX6L3JT.js +2 -0
  155. package/dist/cdn/LXME6MU5.js +2 -0
  156. package/dist/cdn/{YDZZPLVB.js → LZUAJU6O.js} +1 -1
  157. package/dist/cdn/M4PV743P.js +2 -0
  158. package/dist/cdn/{OAYNZFL2.js → M4RV2DCP.js} +1 -1
  159. package/dist/cdn/M5YUKXZG.js +2 -0
  160. package/dist/cdn/MG2HQ3FT.js +2 -0
  161. package/dist/cdn/MGERV5RP.js +2 -0
  162. package/dist/cdn/MVTCAJTE.js +2 -0
  163. package/dist/cdn/MVVX32NQ.js +2 -0
  164. package/dist/cdn/N4HZLXED.js +2 -0
  165. package/dist/cdn/NC7HMCQS.js +2 -0
  166. package/dist/cdn/NCI2IL35.js +2 -0
  167. package/dist/cdn/NF426VVG.js +2 -0
  168. package/dist/cdn/NITCLRB6.js +2 -0
  169. package/dist/cdn/{HQWUQFN5.js → NN4HL3RN.js} +1 -1
  170. package/dist/cdn/NPWUWO5D.js +2 -0
  171. package/dist/cdn/NTEKRSNB.js +2 -0
  172. package/dist/cdn/NYIKMTKG.js +2 -0
  173. package/dist/cdn/NZQCJQ4Q.js +2 -0
  174. package/dist/cdn/O2RCWKKW.js +2 -0
  175. package/dist/cdn/OAZQQASF.js +2 -0
  176. package/dist/cdn/OJDGKV5X.js +2 -0
  177. package/dist/cdn/OMDFAKMT.js +2 -0
  178. package/dist/cdn/{P2I63WVL.js → OT4D3TVG.js} +1 -1
  179. package/dist/cdn/OWJ5ENXR.js +2 -0
  180. package/dist/cdn/OZ7HDVE2.js +2 -0
  181. package/dist/cdn/PQ4HZRQ5.js +2 -0
  182. package/dist/cdn/PSBSMEOS.js +2 -0
  183. package/dist/cdn/PTJOLAFO.js +2 -0
  184. package/dist/cdn/PTS3BVGQ.js +2 -0
  185. package/dist/cdn/PWG3JEER.js +2 -0
  186. package/dist/cdn/PWMO74B5.js +2 -0
  187. package/dist/cdn/PXRN3VUN.js +2 -0
  188. package/dist/cdn/PYBUTNHM.js +2 -0
  189. package/dist/cdn/QHO5AMUP.js +2 -0
  190. package/dist/cdn/QNQOBXLM.js +2 -0
  191. package/dist/cdn/QVI5ZINK.js +2 -0
  192. package/dist/cdn/RC7AEIEI.js +2 -0
  193. package/dist/cdn/RCJ3GROZ.js +2 -0
  194. package/dist/cdn/RIWLSAPB.js +2 -0
  195. package/dist/cdn/RLG3UWIL.js +2 -0
  196. package/dist/cdn/RX7LVZ5V.js +2 -0
  197. package/dist/cdn/{ZSPYPXBY.js → SAI7K4OO.js} +1 -1
  198. package/dist/cdn/SC4BF7H6.js +2 -0
  199. package/dist/cdn/{RUYAWRPV.js → SKV3CQSZ.js} +1 -1
  200. package/dist/cdn/SMEVSYDK.js +2 -0
  201. package/dist/cdn/{MICLX7QW.js → SMMOQFAB.js} +1 -1
  202. package/dist/cdn/SN6VSKBM.js +2 -0
  203. package/dist/cdn/SPJZCPH4.js +2 -0
  204. package/dist/cdn/{M6YVO33A.js → SQH7I4MS.js} +1 -1
  205. package/dist/cdn/SRPQR7CY.js +2 -0
  206. package/dist/cdn/ST5CGV6Q.js +2 -0
  207. package/dist/cdn/{HI7BF3DL.js → SUGD5PEJ.js} +1 -1
  208. package/dist/cdn/T2BFHU2Z.js +2 -0
  209. package/dist/cdn/T2JBUILX.js +2 -0
  210. package/dist/cdn/TCY4IVTP.js +2 -0
  211. package/dist/cdn/TEEHMUMV.js +2 -0
  212. package/dist/cdn/THHQJGUB.js +2 -0
  213. package/dist/cdn/TII37L6V.js +2 -0
  214. package/dist/cdn/TJHVEY7T.js +2 -0
  215. package/dist/cdn/TLZBUTWJ.js +2 -0
  216. package/dist/cdn/{XKCB2DEP.js → TRRAIBBM.js} +1 -1
  217. package/dist/cdn/TXVB6WRV.js +2 -0
  218. package/dist/cdn/U2UY53UR.js +2 -0
  219. package/dist/cdn/U2XP3I7M.js +2 -0
  220. package/dist/cdn/U53HTVZS.js +2 -0
  221. package/dist/cdn/U6BOSBYA.js +2 -0
  222. package/dist/cdn/U6UL7OKY.js +2 -0
  223. package/dist/cdn/UI3RWIDZ.js +2 -0
  224. package/dist/cdn/UIDNNWPD.js +2 -0
  225. package/dist/cdn/UJBFSJDF.js +2 -0
  226. package/dist/cdn/UYDXI4AK.js +4 -0
  227. package/dist/cdn/V345T5CR.js +2 -0
  228. package/dist/cdn/{EV7IIQBP.js → V6CCL3L6.js} +1 -1
  229. package/dist/cdn/VQURMPYV.js +2 -0
  230. package/dist/cdn/VRUG5L4Z.js +2 -0
  231. package/dist/cdn/VVLJLOSE.js +2 -0
  232. package/dist/cdn/VZUPHB6L.js +2 -0
  233. package/dist/cdn/WNXQHRKE.js +2 -0
  234. package/dist/cdn/{Z2UUXST4.js → WRB2DEQ6.js} +1 -1
  235. package/dist/cdn/{FQSHLYKX.js → WV3Q2QUS.js} +1 -1
  236. package/dist/cdn/WVRIR3PK.js +2 -0
  237. package/dist/cdn/WYQAN63T.js +2 -0
  238. package/dist/cdn/X64WORSC.js +2 -0
  239. package/dist/cdn/XFQWANZ4.js +2 -0
  240. package/dist/cdn/{ZHSESERJ.js → XMYFUC6S.js} +1 -1
  241. package/dist/cdn/{N3DTZRST.js → XQRLK3FO.js} +1 -1
  242. package/dist/cdn/{OAMA6SL3.js → XRQKJFNJ.js} +1 -1
  243. package/dist/cdn/XWGAKGVP.js +2 -0
  244. package/dist/cdn/{TDZIH5OK.js → XXDJKZSO.js} +1 -1
  245. package/dist/cdn/Y4GL4RZF.js +2 -0
  246. package/dist/cdn/Y5BPYGSY.js +2 -0
  247. package/dist/cdn/Y6MM3GUE.js +2 -0
  248. package/dist/cdn/Y6WTYXVP.js +2 -0
  249. package/dist/cdn/{26URLKXD.js → Y6ZJNJZ7.js} +1 -1
  250. package/dist/cdn/Y6ZUXP3Q.js +2 -0
  251. package/dist/cdn/YAWLVMV6.js +2 -0
  252. package/dist/cdn/{CKS5ACAB.js → YDDOSD2C.js} +1 -1
  253. package/dist/cdn/YE6AOCCR.js +2 -0
  254. package/dist/cdn/YEPFWDQQ.js +2 -0
  255. package/dist/cdn/{PIDNZKSJ.js → YEPGUNSV.js} +1 -1
  256. package/dist/cdn/YGBYB3BZ.js +2 -0
  257. package/dist/cdn/{XP74F2F6.js → YGD6HMAF.js} +1 -1
  258. package/dist/cdn/YIN7QUD2.js +2 -0
  259. package/dist/cdn/YVXXZIP7.js +2 -0
  260. package/dist/cdn/YWKKRBFW.js +2 -0
  261. package/dist/cdn/Z6JIKBXL.js +2 -0
  262. package/dist/cdn/ZPA5JUPD.js +2 -0
  263. package/dist/cdn/{3ONY25MG.js → ZRBE5FVD.js} +1 -1
  264. package/dist/cdn/ZRT4RJ62.js +2 -0
  265. package/dist/cdn/ZSO62SMG.js +2 -0
  266. package/dist/cdn/{IAWXCNTX.js → ZXE7NGIY.js} +1 -1
  267. package/dist/cdn/assets/bookmarks/t9n/messages.en.json +1 -1
  268. package/dist/cdn/assets/feature-form-next/t9n/messages.en.json +1 -1
  269. package/dist/cdn/assets/feature-next/t9n/messages.en.json +1 -1
  270. package/dist/cdn/assets/features-next/t9n/messages.en.json +1 -1
  271. package/dist/cdn/assets/shadow-cast/t9n/messages.en.json +1 -1
  272. package/dist/cdn/assets/video-player/t9n/messages.en.json +1 -1
  273. package/dist/cdn/index.js +1 -1
  274. package/dist/cdn/main.css +1 -1
  275. package/dist/chunks/attachment-utils.js +5 -5
  276. package/dist/chunks/chart-utils.js +12 -12
  277. package/dist/chunks/esri-main.js +1 -1
  278. package/dist/chunks/layer-list-next.js +49 -4
  279. package/dist/chunks/loader-utils.js +43 -0
  280. package/dist/chunks/print-exports-panel-item-popover.js +1 -1
  281. package/dist/chunks/resources.js +10 -4
  282. package/dist/chunks/screenLocation.js +10 -10
  283. package/dist/chunks/slots.js +7 -7
  284. package/dist/chunks/useArcgisViewReadyError.js +226 -156
  285. package/dist/chunks/useViewModel.js +7 -7
  286. package/dist/chunks/utils.js +17 -17
  287. package/dist/chunks/utils5.js +2 -2
  288. package/dist/components/arcgis-add-attachment-view/customElement.d.ts +42 -9
  289. package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +10 -5
  290. package/dist/components/arcgis-area-measurement-2d/customElement.js +5 -5
  291. package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +12 -6
  292. package/dist/components/arcgis-area-measurement-3d/customElement.js +3 -3
  293. package/dist/components/{arcgis-feature-form-field → arcgis-attachment-detail-view}/customElement.d.ts +72 -28
  294. package/dist/components/arcgis-attachment-detail-view/customElement.js +126 -0
  295. package/dist/components/arcgis-attachment-detail-view/index.js +8 -0
  296. package/dist/components/arcgis-attachment-preview/customElement.d.ts +47 -9
  297. package/dist/components/arcgis-attachment-preview/customElement.js +12 -10
  298. package/dist/components/arcgis-attachment-thumbnail/customElement.d.ts +42 -9
  299. package/dist/components/arcgis-attachment-validation-view/customElement.d.ts +42 -9
  300. package/dist/components/arcgis-attachments/customElement.js +3 -3
  301. package/dist/components/arcgis-basemap-gallery/customElement.d.ts +4 -4
  302. package/dist/components/arcgis-basemap-gallery/customElement.js +24 -24
  303. package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
  304. package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +7 -7
  305. package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
  306. package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +7 -4
  307. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +125 -122
  308. package/dist/components/arcgis-bookmarks/customElement.d.ts +1 -0
  309. package/dist/components/arcgis-bookmarks/customElement.js +1 -1
  310. package/dist/components/arcgis-bookmarks/types.d.ts +2 -2
  311. package/dist/components/arcgis-building-explorer/customElement.d.ts +5 -5
  312. package/dist/components/arcgis-building-level-item/customElement.js +1 -1
  313. package/dist/components/arcgis-building-level-picker/customElement.js +1 -1
  314. package/dist/components/arcgis-building-phase-picker/customElement.js +16 -16
  315. package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +4 -4
  316. package/dist/components/arcgis-catalog-layer-list/customElement.js +4 -4
  317. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +10 -7
  318. package/dist/components/arcgis-catalog-layer-list-next/customElement.js +87 -86
  319. package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +2 -2
  320. package/dist/components/arcgis-compass/customElement.js +1 -1
  321. package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +5 -0
  322. package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
  323. package/dist/components/arcgis-coordinate-conversion-next/customElement.d.ts +6 -5
  324. package/dist/components/arcgis-coordinate-conversion-next/customElement.js +38 -38
  325. package/dist/components/arcgis-daylight/customElement.d.ts +32 -25
  326. package/dist/components/arcgis-daylight/customElement.js +136 -132
  327. package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +14 -9
  328. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +3 -3
  329. package/dist/components/arcgis-directional-pad/customElement.js +53 -58
  330. package/dist/components/arcgis-directions/customElement.d.ts +4 -4
  331. package/dist/components/arcgis-directions/customElement.js +4 -4
  332. package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +10 -5
  333. package/dist/components/arcgis-distance-measurement-2d/customElement.js +3 -3
  334. package/dist/components/arcgis-editor/customElement.d.ts +44 -22
  335. package/dist/components/arcgis-editor/customElement.js +17 -12
  336. package/dist/components/arcgis-elevation-profile/customElement.d.ts +17 -9
  337. package/dist/components/arcgis-elevation-profile/customElement.js +95 -97
  338. package/dist/components/arcgis-elevation-profile-legend/customElement.js +4 -4
  339. package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
  340. package/dist/components/arcgis-elevation-profile-settings/customElement.js +5 -5
  341. package/dist/components/arcgis-elevation-profile-statistics/customElement.js +7 -7
  342. package/dist/components/arcgis-expand/customElement.d.ts +49 -2
  343. package/dist/components/arcgis-expand/customElement.js +47 -47
  344. package/dist/components/arcgis-exploratory-analysis/customElement.d.ts +7 -0
  345. package/dist/components/arcgis-exploratory-analysis/customElement.js +57 -54
  346. package/dist/components/arcgis-feature/customElement.js +1 -1
  347. package/dist/components/arcgis-feature-attachments/customElement.js +18 -18
  348. package/dist/components/arcgis-feature-content/customElement.js +4 -4
  349. package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
  350. package/dist/components/arcgis-feature-expression/customElement.js +47 -47
  351. package/dist/components/arcgis-feature-fields/customElement.js +16 -16
  352. package/dist/components/arcgis-feature-form/customElement.d.ts +7 -7
  353. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  354. package/dist/components/arcgis-feature-form-utility-network-association-settings/customElement.js +11 -11
  355. package/dist/components/arcgis-feature-media/customElement.js +263 -216
  356. package/dist/components/arcgis-feature-next/customElement.d.ts +1 -1
  357. package/dist/components/arcgis-feature-next/customElement.js +23 -16
  358. package/dist/components/arcgis-feature-relationship/customElement.js +97 -98
  359. package/dist/components/arcgis-feature-table/customElement.d.ts +83 -64
  360. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  361. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  362. package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
  363. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
  364. package/dist/components/arcgis-features/customElement.d.ts +6 -6
  365. package/dist/components/arcgis-features/customElement.js +19 -18
  366. package/dist/components/arcgis-features-next/customElement.d.ts +14 -8
  367. package/dist/components/arcgis-features-next/customElement.js +190 -150
  368. package/dist/components/arcgis-floor-filter/customElement.d.ts +3 -0
  369. package/dist/components/arcgis-floor-filter/customElement.js +41 -41
  370. package/dist/components/arcgis-floor-filter/interfaces.d.ts +72 -0
  371. package/dist/components/arcgis-fullscreen/customElement.js +4 -4
  372. package/dist/components/arcgis-grid-controls/customElement.d.ts +1 -1
  373. package/dist/components/arcgis-grid-controls/customElement.js +1 -1
  374. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  375. package/dist/components/arcgis-labeled-switch/customElement.js +5 -5
  376. package/dist/components/arcgis-layer-list/customElement.d.ts +2 -2
  377. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  378. package/dist/components/arcgis-layer-list-item-indicator/customElement.js +2 -2
  379. package/dist/components/arcgis-layer-list-item-panel/customElement.js +9 -9
  380. package/dist/components/arcgis-layer-list-next/customElement.d.ts +8 -7
  381. package/dist/components/arcgis-layer-list-next/customElement.js +146 -135
  382. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +62 -62
  383. package/dist/components/arcgis-legend/customElement.d.ts +3 -1
  384. package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
  385. package/dist/components/arcgis-line-of-sight/customElement.d.ts +17 -5
  386. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  387. package/dist/components/arcgis-link-chart/customElement.d.ts +41 -26
  388. package/dist/components/arcgis-link-chart/customElement.js +28 -28
  389. package/dist/components/arcgis-locate/customElement.js +6 -6
  390. package/dist/components/arcgis-map/customElement.d.ts +65 -53
  391. package/dist/components/arcgis-map/customElement.js +21 -21
  392. package/dist/components/arcgis-measurement-content/customElement.js +4 -4
  393. package/dist/components/arcgis-multi-feature-form/customElement.js +1 -1
  394. package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +0 -1
  395. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +5 -5
  396. package/dist/components/arcgis-oriented-imagery-viewer-non-panoramic-viewer/customElement.js +6 -5
  397. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +19 -18
  398. package/dist/components/arcgis-paste/customElement.js +1 -1
  399. package/dist/components/arcgis-popup/customElement.d.ts +18 -11
  400. package/dist/components/arcgis-popup/customElement.js +199 -183
  401. package/dist/components/arcgis-presentation/customElement.d.ts +5 -5
  402. package/dist/components/arcgis-presentation/customElement.js +74 -75
  403. package/dist/components/arcgis-presentation-captions/customElement.js +1 -1
  404. package/dist/components/arcgis-print/customElement.d.ts +1 -1
  405. package/dist/components/arcgis-print/customElement.js +1 -1
  406. package/dist/components/arcgis-print-datum-transformation-input/customElement.js +17 -17
  407. package/dist/components/arcgis-print-exports-panel/customElement.js +8 -8
  408. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
  409. package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
  410. package/dist/components/arcgis-print-main-panel/customElement.js +5 -5
  411. package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
  412. package/dist/components/arcgis-print-map-only-panel/customElement.js +4 -4
  413. package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
  414. package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
  415. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  416. package/dist/components/arcgis-print-template-selector/customElement.js +8 -8
  417. package/dist/components/arcgis-reverse-geocode-list/customElement.js +1 -1
  418. package/dist/components/arcgis-scale-bar/customElement.js +11 -11
  419. package/dist/components/arcgis-scene/customElement.d.ts +69 -33
  420. package/dist/components/arcgis-scene/customElement.js +19 -19
  421. package/dist/components/arcgis-search/customElement.d.ts +17 -6
  422. package/dist/components/arcgis-search/customElement.js +3 -0
  423. package/dist/components/arcgis-selection-list/customElement.d.ts +14 -2
  424. package/dist/components/arcgis-selection-list/customElement.js +11 -11
  425. package/dist/components/arcgis-selection-toolbar/customElement.d.ts +24 -6
  426. package/dist/components/arcgis-selection-toolbar/customElement.js +23 -17
  427. package/dist/components/arcgis-shadow-cast/customElement.d.ts +31 -12
  428. package/dist/components/arcgis-shadow-cast/customElement.js +88 -69
  429. package/dist/components/arcgis-shadow-cast/index.js +1 -0
  430. package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
  431. package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.js +1 -1
  432. package/dist/components/arcgis-shadow-cast-total-duration-config/customElement.js +1 -1
  433. package/dist/components/arcgis-sketch/customElement.d.ts +387 -50
  434. package/dist/components/arcgis-sketch/customElement.js +444 -248
  435. package/dist/components/arcgis-sketch-tooltip-controls/customElement.js +1 -1
  436. package/dist/components/arcgis-slice/customElement.d.ts +2 -2
  437. package/dist/components/arcgis-slice/customElement.js +24 -24
  438. package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +4 -3
  439. package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +3 -3
  440. package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +2 -2
  441. package/dist/components/arcgis-slider-classed-color-legacy/customElement.js +1 -1
  442. package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +3 -3
  443. package/dist/components/arcgis-slider-classed-size-legacy/customElement.js +1 -1
  444. package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +3 -3
  445. package/dist/components/arcgis-slider-color-legacy/customElement.js +1 -1
  446. package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +5 -4
  447. package/dist/components/arcgis-slider-color-size-legacy/customElement.js +3 -3
  448. package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +2 -2
  449. package/dist/components/arcgis-slider-heatmap-legacy/customElement.js +1 -1
  450. package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +2 -2
  451. package/dist/components/arcgis-slider-opacity-legacy/customElement.js +3 -3
  452. package/dist/components/arcgis-slider-scale-range/customElement.d.ts +15 -7
  453. package/dist/components/arcgis-slider-scale-range/customElement.js +5 -5
  454. package/dist/components/arcgis-slider-scale-range/spriteSheetsUtils.d.ts +8 -3
  455. package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +3 -3
  456. package/dist/components/arcgis-slider-size-legacy/customElement.js +1 -1
  457. package/dist/components/arcgis-snapping-controls/customElement.js +1 -1
  458. package/dist/components/arcgis-spinner/customElement.js +1 -1
  459. package/dist/components/arcgis-swipe/customElement.d.ts +8 -29
  460. package/dist/components/arcgis-swipe/customElement.js +247 -65
  461. package/dist/components/arcgis-swipe/types.d.ts +3 -0
  462. package/dist/components/arcgis-table-list-next/customElement.d.ts +4 -1
  463. package/dist/components/arcgis-table-list-next/customElement.js +65 -63
  464. package/dist/components/arcgis-time-bar/customElement.d.ts +486 -409
  465. package/dist/components/arcgis-time-bar/customElement.js +122 -120
  466. package/dist/components/arcgis-time-bar/types.d.ts +36 -15
  467. package/dist/components/arcgis-time-bar-date/customElement.js +10 -10
  468. package/dist/components/arcgis-time-bar-extent/customElement.js +9 -9
  469. package/dist/components/arcgis-time-bar-settings/customElement.js +25 -25
  470. package/dist/components/arcgis-time-bar-slider/customElement.d.ts +196 -174
  471. package/dist/components/arcgis-time-bar-slider/customElement.js +62 -63
  472. package/dist/components/arcgis-time-slider/customElement.d.ts +9 -7
  473. package/dist/components/arcgis-time-slider/customElement.js +10 -9
  474. package/dist/components/arcgis-time-zone-chip/customElement.js +4 -4
  475. package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
  476. package/dist/components/arcgis-time-zone-selector/customElement.js +5 -5
  477. package/dist/components/arcgis-track/customElement.d.ts +19 -10
  478. package/dist/components/arcgis-track/types.d.ts +1 -1
  479. package/dist/components/arcgis-unit-radio-button-group/customElement.js +1 -1
  480. package/dist/components/arcgis-unit-select/customElement.js +1 -1
  481. package/dist/components/arcgis-utility-network-associations/customElement.d.ts +1 -1
  482. package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
  483. package/dist/components/arcgis-utility-network-picker/customElement.d.ts +170 -6
  484. package/dist/components/arcgis-utility-network-picker/customElement.js +33 -32
  485. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  486. package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +107 -19
  487. package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +34 -27
  488. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +61 -17
  489. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +85 -81
  490. package/dist/components/arcgis-utility-network-trace-analysis/types.d.ts +272 -9
  491. package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +147 -12
  492. package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.js +32 -39
  493. package/dist/components/arcgis-utility-network-trace-configuration-picker/index.js +1 -2
  494. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +126 -30
  495. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +88 -81
  496. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +63 -9
  497. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +8 -4
  498. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +243 -14
  499. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +124 -110
  500. package/dist/components/arcgis-utility-network-trace-inputs/index.js +0 -1
  501. package/dist/components/arcgis-utility-network-trace-locations/customElement.d.ts +177 -23
  502. package/dist/components/arcgis-utility-network-trace-locations/customElement.js +167 -129
  503. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +170 -32
  504. package/dist/components/arcgis-utility-network-trace-results/customElement.js +132 -125
  505. package/dist/components/arcgis-utility-network-trace-results-pane/customElement.d.ts +159 -2
  506. package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +1 -1
  507. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
  508. package/dist/components/arcgis-version-management/customElement.js +37 -37
  509. package/dist/components/arcgis-video/customElement.d.ts +19 -1
  510. package/dist/components/arcgis-video/customElement.js +7 -4
  511. package/dist/components/arcgis-video-player/VideoPlayerViewModel.d.ts +2 -1
  512. package/dist/components/arcgis-video-player/customElement.d.ts +37 -6
  513. package/dist/components/arcgis-video-player/customElement.js +110 -102
  514. package/dist/components/arcgis-video-player/index.js +4 -4
  515. package/dist/components/arcgis-video-player/types.d.ts +6 -0
  516. package/dist/components/arcgis-video-player-action-bar/customElement.js +2 -2
  517. package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
  518. package/dist/components/arcgis-video-player-previews/customElement.js +159 -0
  519. package/dist/components/arcgis-video-player-settings/customElement.js +17 -16
  520. package/dist/components/arcgis-video-player-slider/customElement.js +23 -12
  521. package/dist/components/arcgis-video-player-slider/index.js +1 -0
  522. package/dist/components/arcgis-view-popover/customElement.d.ts +65 -33
  523. package/dist/components/arcgis-view-popover/customElement.js +196 -108
  524. package/dist/components/arcgis-view-popover/index.js +1 -1
  525. package/dist/components/arcgis-volume-measurement/customElement.d.ts +34 -14
  526. package/dist/components/arcgis-volume-measurement/customElement.js +64 -64
  527. package/dist/components/arcgis-weather/customElement.d.ts +1 -1
  528. package/dist/components/arcgis-weather/customElement.js +1 -1
  529. package/dist/components/slider-legacy/types.d.ts +2 -3
  530. package/dist/docs/api.json +1 -1
  531. package/dist/docs/docs.json +1 -1
  532. package/dist/docs/vscode.css-custom-data.json +1 -1
  533. package/dist/docs/vscode.html-custom-data.json +1 -1
  534. package/dist/docs/web-types.json +1 -1
  535. package/dist/index.d.ts +22 -24
  536. package/dist/loader.js +24 -24
  537. package/dist/types/lumina.d.ts +31 -45
  538. package/dist/types/preact.d.ts +32 -48
  539. package/dist/types/react.d.ts +33 -51
  540. package/dist/types/stencil.d.ts +31 -45
  541. package/package.json +9 -9
  542. package/dist/cdn/2BGZVOT3.js +0 -2
  543. package/dist/cdn/2F4IGA4W.js +0 -2
  544. package/dist/cdn/2KPCMM7D.js +0 -2
  545. package/dist/cdn/2S7DLLA7.js +0 -2
  546. package/dist/cdn/2TY3T3GH.js +0 -2
  547. package/dist/cdn/2U3VASQT.js +0 -2
  548. package/dist/cdn/2UKSCGYU.js +0 -2
  549. package/dist/cdn/3C6FN5WT.js +0 -2
  550. package/dist/cdn/3GHQZCMV.js +0 -2
  551. package/dist/cdn/3N5MWYUQ.js +0 -2
  552. package/dist/cdn/3UMLR76Y.js +0 -4
  553. package/dist/cdn/3VCGDZEU.js +0 -2
  554. package/dist/cdn/4432P7Z5.js +0 -2
  555. package/dist/cdn/44CQCIZB.js +0 -2
  556. package/dist/cdn/4B2TLORL.js +0 -2
  557. package/dist/cdn/4IWYFG2G.js +0 -2
  558. package/dist/cdn/4KQA2GRX.js +0 -2
  559. package/dist/cdn/4O3HLHQQ.js +0 -2
  560. package/dist/cdn/4PI54LJH.js +0 -2
  561. package/dist/cdn/4WKWYFIH.js +0 -2
  562. package/dist/cdn/4XJ6RYYC.js +0 -2
  563. package/dist/cdn/53OXTCE6.js +0 -2
  564. package/dist/cdn/5AMF6NZN.js +0 -2
  565. package/dist/cdn/5DY7GHBN.js +0 -2
  566. package/dist/cdn/5ESNA4SF.js +0 -2
  567. package/dist/cdn/5RAIBYCT.js +0 -2
  568. package/dist/cdn/62IE7RFR.js +0 -2
  569. package/dist/cdn/67PT3A4A.js +0 -2
  570. package/dist/cdn/6A2OF3TO.js +0 -2
  571. package/dist/cdn/6QH2NH2Z.js +0 -2
  572. package/dist/cdn/6UYEO5Q7.js +0 -2
  573. package/dist/cdn/6VO7G2UX.js +0 -2
  574. package/dist/cdn/77U2VO5P.js +0 -2
  575. package/dist/cdn/7DFCYS72.js +0 -2
  576. package/dist/cdn/7FCZLFJD.js +0 -2
  577. package/dist/cdn/7FFBCPVE.js +0 -2
  578. package/dist/cdn/7TULU5QF.js +0 -2
  579. package/dist/cdn/7VDBR3SK.js +0 -2
  580. package/dist/cdn/7VJQVX42.js +0 -2
  581. package/dist/cdn/A3DPMZWE.js +0 -2
  582. package/dist/cdn/A4VK42OW.js +0 -2
  583. package/dist/cdn/A7RLC6ZT.js +0 -2
  584. package/dist/cdn/AL3PLZEE.js +0 -2
  585. package/dist/cdn/ALVAGE57.js +0 -2
  586. package/dist/cdn/AS4FG6IT.js +0 -2
  587. package/dist/cdn/BI2SI2HK.js +0 -2
  588. package/dist/cdn/BJWJ6E3L.js +0 -2
  589. package/dist/cdn/BLOQ2AJ5.js +0 -2
  590. package/dist/cdn/BQBWXR6P.js +0 -2
  591. package/dist/cdn/BQGY4YCS.js +0 -2
  592. package/dist/cdn/BTVNXUZQ.js +0 -2
  593. package/dist/cdn/BVTEQMDF.js +0 -2
  594. package/dist/cdn/CBVICP6P.js +0 -2
  595. package/dist/cdn/CF54A7MK.js +0 -2
  596. package/dist/cdn/CNYZSE22.js +0 -2
  597. package/dist/cdn/CP5JALYQ.js +0 -2
  598. package/dist/cdn/CPYVZPJ7.js +0 -2
  599. package/dist/cdn/CR6PVUCT.js +0 -2
  600. package/dist/cdn/DDSIQO4G.js +0 -2
  601. package/dist/cdn/DK7HXJSX.js +0 -2
  602. package/dist/cdn/DLWQZHNA.js +0 -2
  603. package/dist/cdn/DTORO2OE.js +0 -2
  604. package/dist/cdn/DY2EOHFD.js +0 -2
  605. package/dist/cdn/DYUCS5QP.js +0 -2
  606. package/dist/cdn/DYWCAORU.js +0 -2
  607. package/dist/cdn/E54VGGFM.js +0 -2
  608. package/dist/cdn/EHEWQ23K.js +0 -2
  609. package/dist/cdn/EMXGW73P.js +0 -2
  610. package/dist/cdn/EOAVDNBZ.js +0 -2
  611. package/dist/cdn/EPH5BN6X.js +0 -2
  612. package/dist/cdn/EZCHUWDK.js +0 -2
  613. package/dist/cdn/F34QQ4DO.js +0 -2
  614. package/dist/cdn/F5IHFPKA.js +0 -2
  615. package/dist/cdn/FDJGQHUA.js +0 -2
  616. package/dist/cdn/FF7BSRYW.js +0 -2
  617. package/dist/cdn/FIZMK7GS.js +0 -1
  618. package/dist/cdn/FPPWXIBA.js +0 -2
  619. package/dist/cdn/FSBLGH6E.js +0 -2
  620. package/dist/cdn/FZAQZSRA.js +0 -2
  621. package/dist/cdn/G26V76WA.js +0 -2
  622. package/dist/cdn/GCEBFEZ5.js +0 -2
  623. package/dist/cdn/GFNCEZSN.js +0 -2
  624. package/dist/cdn/GHVT7W4O.js +0 -2
  625. package/dist/cdn/GII4POXM.js +0 -2
  626. package/dist/cdn/GIIYVCKT.js +0 -2
  627. package/dist/cdn/GJKFDTVX.js +0 -2
  628. package/dist/cdn/GK47522P.js +0 -2
  629. package/dist/cdn/GNSNEUMI.js +0 -2
  630. package/dist/cdn/GS2HJTMU.js +0 -2
  631. package/dist/cdn/GUHSWQMF.js +0 -2
  632. package/dist/cdn/GUZYCRYS.js +0 -2
  633. package/dist/cdn/H4LMELM2.js +0 -2
  634. package/dist/cdn/H7NR6B6S.js +0 -2
  635. package/dist/cdn/HDHWPKJ4.js +0 -2
  636. package/dist/cdn/HKLBQ7JD.js +0 -2
  637. package/dist/cdn/HQSY7TKA.js +0 -2
  638. package/dist/cdn/IDIAWXUO.js +0 -2
  639. package/dist/cdn/IFR4IYSI.js +0 -2
  640. package/dist/cdn/IITDAOGZ.js +0 -2
  641. package/dist/cdn/ILQDA7LL.js +0 -2
  642. package/dist/cdn/IQOQTYRR.js +0 -2
  643. package/dist/cdn/J3FRSWZD.js +0 -2
  644. package/dist/cdn/JBK5HTJ2.js +0 -2
  645. package/dist/cdn/JF7VJGL4.js +0 -2
  646. package/dist/cdn/K23R26AN.js +0 -2
  647. package/dist/cdn/K7ELALW4.js +0 -2
  648. package/dist/cdn/K7XSWKZ2.js +0 -2
  649. package/dist/cdn/KCLVDXWB.js +0 -2
  650. package/dist/cdn/KFTFKI6A.js +0 -2
  651. package/dist/cdn/KLVBRTYU.js +0 -2
  652. package/dist/cdn/KPUEQZ7O.js +0 -2
  653. package/dist/cdn/KVYBIOH5.js +0 -2
  654. package/dist/cdn/L46JLXJT.js +0 -2
  655. package/dist/cdn/LC37F7HF.js +0 -2
  656. package/dist/cdn/LKAJVIS2.js +0 -2
  657. package/dist/cdn/LOOJWRCW.js +0 -2
  658. package/dist/cdn/LU22VNJ7.js +0 -2
  659. package/dist/cdn/LY6LSUSY.js +0 -2
  660. package/dist/cdn/LZVMUNZC.js +0 -2
  661. package/dist/cdn/M2LKA37F.js +0 -2
  662. package/dist/cdn/M42QFFPZ.js +0 -2
  663. package/dist/cdn/M5KYBYZT.js +0 -2
  664. package/dist/cdn/MA2GVVQJ.js +0 -2
  665. package/dist/cdn/MBGCAZPS.js +0 -4
  666. package/dist/cdn/MCMACXJV.js +0 -2
  667. package/dist/cdn/MDWBYUFG.js +0 -2
  668. package/dist/cdn/MFWSWLBW.js +0 -2
  669. package/dist/cdn/MMYODAC2.js +0 -2
  670. package/dist/cdn/MUNSXJ5X.js +0 -2
  671. package/dist/cdn/MWIDHMQZ.js +0 -2
  672. package/dist/cdn/NDCZFJEK.js +0 -3
  673. package/dist/cdn/NFCFPU7K.js +0 -2
  674. package/dist/cdn/NJPPZJ3L.js +0 -2
  675. package/dist/cdn/NQOS7L2J.js +0 -2
  676. package/dist/cdn/NWFGMNGG.js +0 -2
  677. package/dist/cdn/NY7RHFLZ.js +0 -2
  678. package/dist/cdn/O5YJPUFM.js +0 -2
  679. package/dist/cdn/O6HYZKBU.js +0 -2
  680. package/dist/cdn/OAMPGCZF.js +0 -2
  681. package/dist/cdn/OPNJGHML.js +0 -2
  682. package/dist/cdn/OSDGWHZZ.js +0 -2
  683. package/dist/cdn/P3PXDT5V.js +0 -2
  684. package/dist/cdn/PBHNO4J7.js +0 -2
  685. package/dist/cdn/PBYHBRG7.js +0 -2
  686. package/dist/cdn/PDH2DA3L.js +0 -2
  687. package/dist/cdn/PGK2ZJCX.js +0 -2
  688. package/dist/cdn/PGSBUAGV.js +0 -2
  689. package/dist/cdn/PGXNWDD3.js +0 -2
  690. package/dist/cdn/PJ5OUPGO.js +0 -2
  691. package/dist/cdn/PWHXRRFU.js +0 -2
  692. package/dist/cdn/PZSKFFTG.js +0 -2
  693. package/dist/cdn/PZUVKZGQ.js +0 -2
  694. package/dist/cdn/QCVMDYJD.js +0 -2
  695. package/dist/cdn/QEPANMVK.js +0 -2
  696. package/dist/cdn/QOIURU47.js +0 -2
  697. package/dist/cdn/QPSAD5DG.js +0 -2
  698. package/dist/cdn/QTB5YKHB.js +0 -2
  699. package/dist/cdn/QWIDIEXY.js +0 -2
  700. package/dist/cdn/R5QMO5FY.js +0 -2
  701. package/dist/cdn/R5TCWJ6V.js +0 -2
  702. package/dist/cdn/R5YW65AI.js +0 -2
  703. package/dist/cdn/R67ZOCIR.js +0 -2
  704. package/dist/cdn/RGTUSH6U.js +0 -2
  705. package/dist/cdn/RVEUCXT4.js +0 -2
  706. package/dist/cdn/RZGWZ2FJ.js +0 -2
  707. package/dist/cdn/S7ORGB5E.js +0 -2
  708. package/dist/cdn/SEY3WDK2.js +0 -2
  709. package/dist/cdn/SG55TVJ5.js +0 -2
  710. package/dist/cdn/SHU4AE2X.js +0 -2
  711. package/dist/cdn/SIZZ3BQA.js +0 -2
  712. package/dist/cdn/SLAFIIZU.js +0 -2
  713. package/dist/cdn/SLSGW7B6.js +0 -2
  714. package/dist/cdn/SNNAV3AS.js +0 -2
  715. package/dist/cdn/SR4V2CUQ.js +0 -2
  716. package/dist/cdn/TA723HWT.js +0 -2
  717. package/dist/cdn/THJMCEEO.js +0 -2
  718. package/dist/cdn/TJQ3GP5V.js +0 -2
  719. package/dist/cdn/TKILR2SM.js +0 -2
  720. package/dist/cdn/TO6SOEDF.js +0 -2
  721. package/dist/cdn/TPVHN6P2.js +0 -2
  722. package/dist/cdn/TSNUOFL7.js +0 -2
  723. package/dist/cdn/U5DIWFPP.js +0 -2
  724. package/dist/cdn/UTV2A7J4.js +0 -2
  725. package/dist/cdn/VDEMMP33.js +0 -2
  726. package/dist/cdn/VDKEQI3H.js +0 -2
  727. package/dist/cdn/VOBRCUIE.js +0 -2
  728. package/dist/cdn/VZ6UFS6H.js +0 -2
  729. package/dist/cdn/W6PA72LV.js +0 -2
  730. package/dist/cdn/WK4TNKKC.js +0 -2
  731. package/dist/cdn/WO26ZR5Z.js +0 -2
  732. package/dist/cdn/WQI5PKS4.js +0 -2
  733. package/dist/cdn/WS46QSWM.js +0 -2
  734. package/dist/cdn/WUTCKBNC.js +0 -2
  735. package/dist/cdn/X7BOBKIH.js +0 -2
  736. package/dist/cdn/XCTPKDKL.js +0 -2
  737. package/dist/cdn/XYF36P2O.js +0 -2
  738. package/dist/cdn/Y42K6IOP.js +0 -2
  739. package/dist/cdn/YCHVPSSP.js +0 -2
  740. package/dist/cdn/YFTQR2WS.js +0 -2
  741. package/dist/cdn/YTLRTUMD.js +0 -2
  742. package/dist/cdn/YZUSPKNF.js +0 -2
  743. package/dist/cdn/Z3W7LQ5M.js +0 -2
  744. package/dist/cdn/Z6AVJWLP.js +0 -2
  745. package/dist/cdn/Z7H4V2JZ.js +0 -2
  746. package/dist/cdn/ZAUG5MSY.js +0 -2
  747. package/dist/cdn/ZF4DFDLT.js +0 -2
  748. package/dist/cdn/ZFO3PVZQ.js +0 -2
  749. package/dist/cdn/ZGOAZB5L.js +0 -2
  750. package/dist/cdn/ZKWI43WZ.js +0 -2
  751. package/dist/cdn/ZO7TUIUE.js +0 -2
  752. package/dist/components/arcgis-feature-form-field/index.d.ts +0 -1
  753. package/dist/components/arcgis-feature-form-field/types.d.ts +0 -7
  754. package/dist/components/arcgis-feature-form-field-number/customElement.d.ts +0 -4
  755. package/dist/components/arcgis-scale-range-slider/customElement.d.ts +0 -158
  756. package/dist/components/arcgis-scale-range-slider/customElement.js +0 -26
  757. package/dist/components/arcgis-scale-range-slider/index.d.ts +0 -1
  758. package/dist/components/arcgis-sketch/SketchComponentViewModel.d.ts +0 -84
  759. package/dist/components/arcgis-sketch/configuration.d.ts +0 -33
  760. package/dist/components/arcgis-sketch/support.d.ts +0 -17
  761. package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +0 -75
  762. package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +0 -642
  763. package/dist/components/arcgis-value-picker-legacy/customElement.js +0 -39
  764. package/dist/components/arcgis-value-picker-legacy/index.d.ts +0 -1
  765. package/dist/components/arcgis-value-picker-legacy/index.js +0 -1
  766. /package/dist/cdn/{LW4IDPBB.js → 2P5AJORF.js} +0 -0
  767. /package/dist/cdn/{M4D5WUVD.js → 4LWSF6AI.js} +0 -0
  768. /package/dist/cdn/{I4AEBGQM.js → 5GGAWGSN.js} +0 -0
  769. /package/dist/cdn/{RUW7CDCH.js → 5GTPIPN7.js} +0 -0
  770. /package/dist/cdn/{5WKEDXRT.js → 62HMPABL.js} +0 -0
  771. /package/dist/cdn/{Y37UMTGV.js → 7YT5W57B.js} +0 -0
  772. /package/dist/cdn/{WEOKELJE.js → AKTIOEYM.js} +0 -0
  773. /package/dist/cdn/{VKRAWBPC.js → AYQJ2LTV.js} +0 -0
  774. /package/dist/cdn/{REGHMH6D.js → CHMBPPHS.js} +0 -0
  775. /package/dist/cdn/{UHI54OG6.js → DLUFAV4S.js} +0 -0
  776. /package/dist/cdn/{7FGOCFTQ.js → DPEWQQEB.js} +0 -0
  777. /package/dist/cdn/{36ZT6IRE.js → ECA47Z37.js} +0 -0
  778. /package/dist/cdn/{IBN4TKBI.js → FJMXBIN5.js} +0 -0
  779. /package/dist/cdn/{OCQXPA57.js → G4IKO2R6.js} +0 -0
  780. /package/dist/cdn/{22I5XGTS.js → GCPR7XFU.js} +0 -0
  781. /package/dist/cdn/{QVAB57VJ.js → IAYL44LK.js} +0 -0
  782. /package/dist/cdn/{QNBNH7ME.js → IRFIHD5X.js} +0 -0
  783. /package/dist/cdn/{4657ONKJ.js → KOMTNQPT.js} +0 -0
  784. /package/dist/cdn/{CUVRESLH.js → LS4U4GD5.js} +0 -0
  785. /package/dist/cdn/{GUZCA62E.js → LVIYMA67.js} +0 -0
  786. /package/dist/cdn/{HJVHORPG.js → MEISDI2H.js} +0 -0
  787. /package/dist/cdn/{YHPASRFL.js → N2YWWQOS.js} +0 -0
  788. /package/dist/cdn/{DNE47HSP.js → NVKOZL7X.js} +0 -0
  789. /package/dist/cdn/{24MLXKMZ.js → NVN2CATF.js} +0 -0
  790. /package/dist/cdn/{4O6FFXUV.js → OFBWNR54.js} +0 -0
  791. /package/dist/cdn/{A7SZYQDH.js → OLSESBZ7.js} +0 -0
  792. /package/dist/cdn/{54GFXFK4.js → PWZHB6VD.js} +0 -0
  793. /package/dist/cdn/{XULIO6Y3.js → QWMDZDQA.js} +0 -0
  794. /package/dist/cdn/{ONFKLY6Q.js → RTDY3HLR.js} +0 -0
  795. /package/dist/cdn/{LUTUHOKB.js → SFDCS6A2.js} +0 -0
  796. /package/dist/cdn/{OX3WBUBR.js → SLNXNVPI.js} +0 -0
  797. /package/dist/cdn/{75UV3NKU.js → SLQPDAGN.js} +0 -0
  798. /package/dist/cdn/{R2D2TXL4.js → T34W3GKP.js} +0 -0
  799. /package/dist/cdn/{C5XAFXEL.js → TP2KQRW6.js} +0 -0
  800. /package/dist/cdn/{EH4CBZNF.js → UDXDE3LW.js} +0 -0
  801. /package/dist/cdn/{JZHZCJTJ.js → XCSF7KJK.js} +0 -0
  802. /package/dist/cdn/{NWRWQZGL.js → XGWYQ7FU.js} +0 -0
  803. /package/dist/cdn/{OCFIQBYK.js → XQ2WXTW7.js} +0 -0
  804. /package/dist/cdn/{PS3KSP2J.js → ZCL4XHIZ.js} +0 -0
  805. /package/dist/cdn/{42G6XTIG.js → ZHYXFOYU.js} +0 -0
  806. /package/dist/cdn/{PY5VGH7F.js → ZNIMZP5R.js} +0 -0
  807. /package/dist/cdn/{R2P5JM7G.js → ZSKO7HLH.js} +0 -0
  808. /package/dist/components/{arcgis-feature-form-field-number → arcgis-attachment-detail-view}/index.d.ts +0 -0
  809. /package/dist/components/{arcgis-scale-range-slider → arcgis-video-player-previews}/index.js +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as vt}from"./V62TVP3T.js";import{D as _t,E as q,P as at,R as ft,S as xt,c as M,ga as ct,i as w,j as v,ja as bt,k as T,l as mt,m as ht,n as dt,o as et,qa as ut,ra as lt,sa as kt}from"./LZVMUNZC.js";import{Q as N,a as z,v as C}from"./NWFGMNGG.js";import{a as gt,b as tt,d as D,e as f}from"./EH4CBZNF.js";import{X as W,Y as yt,g as Y,p as k}from"./LY6LSUSY.js";import"./TAVTDQ6S.js";var it=class extends yt{setupDefaultRules(){super.setupDefaultRules();let e=this._root.interfaceColors,t=this.rule.bind(this);t("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:kt.new(this._root,{}),width:D,height:D}),t("PieChart").setAll({radius:tt(80),startAngle:-90,endAngle:270}),t("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),t("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),t("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}",strokeWidth:1,strokeOpacity:1,role:"figure",lineJoin:"round"}),t("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),t("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),t("Slice",["pie"]).states.create("hover",{scale:1.04}),t("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),t("Tick",["pie"]).setAll({location:1}),t("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),t("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),t("FunnelSlice").setAll({interactive:!0,expandDistance:0}),t("FunnelSlice").states.create("hover",{expandDistance:.15}),t("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),t("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),t("Label",["funnel","vertical"]).setAll({centerY:f,centerX:0}),t("Tick",["funnel"]).setAll({location:1}),t("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),t("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),t("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),t("PyramidSeries").setAll({valueIs:"area"}),t("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),t("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),t("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),t("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),t("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),t("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),t("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),t("Label",["pyramid","vertical"]).setAll({centerY:f,centerX:0}),t("Tick",["pyramid"]).setAll({location:1}),t("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),t("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),t("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),t("Label",["pictorial","vertical"]).setAll({centerY:f,centerX:0}),t("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),t("Tick",["pictorial"]).setAll({location:.5});{let i=t("Graphics",["pictorial","background"]);i.setAll({fillOpacity:.2}),xt(i,"fill",e,"alternativeBackground")}}};var $=class extends ut{_afterNew(){this._defaultThemes.push(it.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(e){super._processSeries(e),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}};$.className="PercentChart";$.classNames=ut.classNames.concat([$.className]);var L=class extends ct{constructor(){super(...arguments),this.slicesContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})._markC("position","isMeasured")),this.labelsContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})._markC("position","isMeasured")),this.ticksContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})._markC("position","isMeasured")),this._lLabels=[],this._rLabels=[],this._hLabels=[],this.slices=this.addDisposer(this._makeSlices()),this.labels=this.addDisposer(this._makeLabels()),this.ticks=this.addDisposer(this._makeTicks())}_applyThemes(e=!1){let t=this.get("colors");return t&&t.reset(),super._applyThemes(e)}makeSlice(e){let t=this.slicesContainer.children.push(this.slices.make());return t.on("fill",()=>{this.updateLegendMarker(e)}),t.on("fillPattern",()=>{this.updateLegendMarker(e)}),t.on("stroke",()=>{this.updateLegendMarker(e)}),t._setDataItem(e),this._linkSprite(t,e),e.set("slice",t),this.slices.push(t),t}makeLabel(e){let t=this.labelsContainer.children.push(this.labels.make());return t._setDataItem(e),e.set("label",t),this.labels.push(t),t}_shouldMakeBullet(e){return e.get("value")!=null}makeTick(e){let t=this.ticksContainer.children.push(this.ticks.make());return t._setDataItem(e),e.set("tick",t),this.ticks.push(t),t}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_placeBulletsContainer(){this.children.moveValue(this.bulletsContainer)}_onDataClear(){let e=this.get("colors");e&&e.reset();let t=this.get("patterns");t&&t.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let e=0,t=0,i=0,s=1/0,a=0;k(this._dataItems,l=>{let r=l.get("valueWorking",0);e+=r,t+=Math.abs(r)}),k(this._dataItems,l=>{let r=l.get("valueWorking",0);r>i&&(i=r),r<s&&(s=r),a++;let n=r/t;t==0&&(n=0),l.setRaw("valuePercentTotal",n*100)}),this.setPrivateRaw("valueLow",s),this.setPrivateRaw("valueHigh",i),this.setPrivateRaw("valueSum",e),this.setPrivateRaw("valueAverage",e/a),this.setPrivateRaw("valueAbsoluteSum",t)}}show(e){let t=Object.create(null,{show:{get:()=>super.show}});return z(this,void 0,void 0,function*(){let i=[];i.push(t.show.call(this,e)),i.push(this._sequencedShowHide(!0,e)),yield Promise.all(i)})}hide(e){let t=Object.create(null,{hide:{get:()=>super.hide}});return z(this,void 0,void 0,function*(){let i=[];i.push(t.hide.call(this,e)),i.push(this._sequencedShowHide(!1,e)),yield Promise.all(i)})}_updateChildren(){super._updateChildren(),this._valuesDirty&&k(this._dataItems,e=>{e.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&k(this._dataItems,e=>{this.updateLegendValue(e)}),this._arrange()}_arrange(){this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),k(this.dataItems,e=>{this._updateTick(e)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(e){if(super.processDataItem(e),e.get("fill")==null){let t=this.get("colors");t&&e.setRaw("fill",t.next())}if(e.get("fillPattern")==null){let t=this.get("patterns");t&&e.setRaw("fillPattern",t.next())}}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return z(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,e,t)];Y(t)||(t=this.get("stateAnimationDuration",0));let a=this.get("stateAnimationEasing"),l=e.get("value"),r=e.animate({key:"valueWorking",to:l,duration:t,easing:a});r&&s.push(r.waitForStop());let n=e.get("tick");n&&s.push(n.show(t));let u=e.get("label");u&&s.push(u.show(t));let o=e.get("slice");o&&s.push(o.show(t)),o.get("active")&&o.states.applyAnimate("active"),yield Promise.all(s)})}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return z(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,e,t)],a=this.states.create("hidden",{});Y(t)||(t=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let l=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),r=e.animate({key:"valueWorking",to:0,duration:t,easing:l});r&&s.push(r.waitForStop());let n=e.get("tick");n&&s.push(n.hide(t));let u=e.get("label");u&&s.push(u.hide(t));let o=e.get("slice");o.hideTooltip(),o&&s.push(o.hide(t)),yield Promise.all(s)})}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("label");t&&(this.labels.removeValue(t),t.dispose());let i=e.get("tick");i&&(this.ticks.removeValue(i),i.dispose());let s=e.get("slice");s&&(this.slices.removeValue(s),s.dispose())}hoverDataItem(e){let t=e.get("slice");t&&!t.isHidden()&&t.hover()}unhoverDataItem(e){let t=e.get("slice");t&&t.unhover()}updateLegendMarker(e){if(e){let t=e.get("slice");if(t){let i=e.get("legendDataItem");if(i){let s=i.get("markerRectangle");k(_t,a=>{t.get(a)!=null&&s.set(a,t.get(a))})}}}}_arrangeDown(e){if(e){let t=this._getNextDown();e.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.top;i.y+a<t&&(i.y=t-a),i.label.set("y",i.y),t=i.y+s.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(e){if(e){let t=this._getNextUp();e.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.bottom;i.y+a>t&&(i.y=t-a),i.label.set("y",i.y),t=i.y+s.top})}}_arrangeRight(e){if(e){let t=0;e.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.left;i.y+a<t&&(i.y=t-a),i.label._setC("x",i.y),t=i.y+s.right})}}_arrangeLeft(e){if(e){let t=this.labelsContainer.maxWidth();e.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.right;i.y+a>t&&(i.y=t-a),i.label._setC("x",i.y),t=i.y+s.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(e){}_dispose(){super._dispose();let e=this.chart;e&&e.series.removeValue(this)}};L.className="PercentSeries";L.classNames=ct.classNames.concat([L.className]);var G=class extends ${constructor(){super(...arguments),this._maxRadius=1}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:f,y:f})}_processSeries(e){super._processSeries(e),this.series.each(t=>{t._markDirtyKey("innerRadius")})}_prepareChildren(){super._prepareChildren();let e=this.chartContainer,t=e.innerWidth(),i=e.innerHeight(),s=this.get("startAngle",0),a=this.get("endAngle",0),l=this.get("innerRadius"),r=ht(0,0,s,a,1),n=t/(r.right-r.left),u=i/(r.bottom-r.top),o={left:0,right:0,top:0,bottom:0};if(l instanceof gt&&l.value!==0){let p=l.value,g=Math.min(n,u);p=Math.max(g*p,g-Math.min(i,t))/g,o=ht(0,0,s,a,p),this.setPrivateRaw("irModifyer",p/l.value)}else this.setPrivateRaw("irModifyer",1);r=dt([r,o]);let m=this._maxRadius;this._maxRadius=Math.min(n,u);let h=C(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-h*(r.bottom+r.top)/2,dx:-h*(r.right+r.left)/2}),(this.isDirty("startAngle")||this.isDirty("endAngle")||m!=this._maxRadius)&&this.series.each(p=>{p._markDirtyKey("startAngle")}),(this.isDirty("innerRadius")||this.isDirty("radius"))&&this.series.each(p=>{p._markDirtyKey("innerRadius")})}radius(e){let t=C(this.get("radius",0),this._maxRadius),i=C(this.get("innerRadius",0),t);if(i<0&&(i=t+i),e){let s=this.series.indexOf(e),a=this.series.length,l=e.get("radius");return l!=null?i+C(l,t-i):i+(t-i)/a*(s+1)}return t}innerRadius(e){let t=this.radius(),i=C(this.get("innerRadius",0),t);if(i<0&&(i=t+i),e){let s=this.series.indexOf(e),a=this.series.length,l=e.get("innerRadius");return l!=null?i+C(l,t-i):i+(t-i)/a*s}return i}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}};G.className="PieChart";G.classNames=$.classNames.concat([G.className]);var U=class extends L{_makeSlices(){return new M(W.new({}),()=>vt._new(this._root,{themeTags:N(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new M(W.new({}),()=>bt._new(this._root,{themeTags:N(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new M(W.new({}),()=>lt._new(this._root,{themeTags:N(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t.on("scale",()=>{this._updateTick(e)}),t.on("shiftRadius",()=>{this._updateTick(e)}),t.events.on("positionchanged",()=>{this._updateTick(e)});let i=this.makeLabel(e);i.events.on("positionchanged",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{i.markDirty()})}_getNextUp(){let e=this.chart;return e?e._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){let e=this.chart;return e?-e._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();let e=this.chart;if(e){if(this.isDirty("alignLabels")){let t=this.labels.template;if(this.get("alignLabels"))t._setC("textType","aligned");else{let i=t.get("textType");(i==null||i=="aligned")&&t._setC("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();let t=this.get("startAngle",e.get("startAngle",-90)),s=this.get("endAngle",e.get("endAngle",270))-t,a=t,l=e.radius(this);this.setPrivateRaw("radius",l);let r=e.innerRadius(this)*e.getPrivate("irModifyer",1);r<0&&(r=l+r),k(this._dataItems,n=>{this.updateLegendValue(n);let u=s*n.get("valuePercentTotal")/100,o=n.get("slice");if(o){o.set("radius",l),o.set("innerRadius",r),o.set("startAngle",a),o.set("arc",u);let p=n.get("fill");o._setDefault("fill",p),o._setDefault("stroke",p);let g=n.get("fillPattern");o._setDefault("fillPattern",g)}let m=mt(a+u/2),h=n.get("label");if(h&&(h.setPrivate("radius",l),h.setPrivate("innerRadius",r),h.set("labelAngle",m),h.get("textType")=="aligned")){let p=l+h.get("radius",0),g=l*w(m);m>90&&m<=270?(!h.isHidden()&&!h.isHiding()&&this._lLabels.push({label:h,y:g}),p*=-1,p-=this.labelsContainer.get("paddingLeft",0),h.set("centerX",D),h.setPrivateRaw("left",!0)):(!h.isHidden()&&!h.isHiding()&&this._rLabels.push({label:h,y:g}),p+=this.labelsContainer.get("paddingRight",0),h.set("centerX",0),h.setPrivateRaw("left",!1)),h.set("x",p),h.set("y",l*w(m))}a+=u,this._updateTick(n)})}}}_updateTick(e){let t=e.get("tick"),i=e.get("label"),s=e.get("slice"),a=t.get("location",1);if(t&&i&&s){let l=(s.get("shiftRadius",0)+s.get("radius",0))*s.get("scale",1)*a,r=i.get("labelAngle",0),n=T(r),u=w(r),o=this.labelsContainer,m=o.get("paddingLeft",0),h=o.get("paddingRight",0),p=0,g=0;p=i.x(),g=i.y();let c=[];if(p!=0||g!=0){if(i.get("textType")=="circular"){let y=i.radius()-i.get("paddingBottom",0),x=i.get("labelAngle",0);p=y*T(x),g=y*w(x)}let d=-h;i.getPrivate("left")&&(d=m),c=[{x:s.x()+l*n,y:s.y()+l*u},{x:p+d,y:g},{x:p,y:g}]}t.set("points",c)}}_positionBullet(e){let t=e.get("sprite");if(t){let s=t.dataItem.get("slice");if(s){let a=s.get("innerRadius",0),l=s.get("radius",0),r=s.get("startAngle",0),n=s.get("arc",0),u=e.get("locationX",.5),o=e.get("locationY",.5),m=r+n*u,h=a+(l-a)*o;t.setAll({x:T(m)*h,y:w(m)*h})}}}};U.className="PieSeries";U.classNames=L.classNames.concat([U.className]);var V=class extends q{constructor(){super(...arguments),this._projectionDirty=!1,this._tlx=0,this._tly=0,this._trx=0,this._try=0,this._blx=0,this._bly=0,this._brx=0,this._bry=0,this._cprx=0,this._cplx=0,this._cpry=0,this._cply=0}_afterNew(){super._afterNew(),this.set("draw",e=>{let t=this.width(),i=this.height(),s=Math.min(t,i)/2,a=C(this.get("cornerRadiusTL",0),s),l=C(this.get("cornerRadiusTR",0),s),r=C(this.get("cornerRadiusBR",0),s),n=C(this.get("cornerRadiusBL",0),s),u=this._trx,o=this._try,m=this._tlx,h=this._tly,p=this._brx,g=this._bry,c=this._blx,d=this._bly;o==h&&(o=o-.01),g==d&&(g=g-.01);let y=et({x:m,y:h},{x:u,y:o}),x=et({x:u,y:o},{x:p,y:g}),b=et({x:p,y:g},{x:c,y:d}),_=et({x:c,y:d},{x:m,y:h});this.get("orientation")=="horizontal"?(a=Math.min(a,Math.abs(h-o)/2),l=Math.min(l,Math.abs(h-o)/2),r=Math.min(r,Math.abs(d-g)/2),n=Math.min(n,Math.abs(d-g)/2)):(a=Math.min(a,Math.abs(m-u)/2),l=Math.min(l,Math.abs(m-u)/2),r=Math.min(r,Math.abs(c-p)/2),n=Math.min(n,Math.abs(c-p)/2));let A=m-a*v((y-_)/2)*T(_),P=h-a*v((y-_)/2)*w(_),F=m-a*v((_-y)/2)*T(y),Z=h-a*v((_-y)/2)*w(y),R=u-l*v((x-y)/2)*T(y),nt=o-l*v((x-y)/2)*w(y),B=u-l*v((y-x)/2)*T(x),O=o-l*v((y-x)/2)*w(x),J=p-r*v((b-x)/2)*T(x),j=g-r*v((b-x)/2)*w(x),Q=p-r*v((x-b)/2)*T(b),I=g-r*v((x-b)/2)*w(b),pt=c-n*v((_-b)/2)*T(b),st=d-n*v((_-b)/2)*w(b),ot=c-n*v((b-_)/2)*T(_),Tt=d-n*v((b-_)/2)*w(_);e.moveTo(F,Z),e.lineTo(R,nt),e.arcTo(u,o,B,O,l),e.quadraticCurveTo(this._cprx,this._cpry,J,j),e.arcTo(p,g,Q,I,r),e.lineTo(pt,st),e.arcTo(c,d,ot,Tt,n),e.quadraticCurveTo(this._cplx,this._cply,A,P),e.arcTo(m,h,F,Z,a)})}getPoint(e,t){let i=this.width(),s=this.height(),a=this.get("topWidth",0),l=this.get("bottomWidth",0);if(this.get("orientation")=="vertical"){let r=-a/2,n=a/2,u=l/2,o=-l/2,m=r+(o-r)*t,h=n+(u-n)*t;return{x:m+(h-m)*e,y:s*t}}else{let r=-a/2,n=a/2,u=l/2,o=-l/2,m=r+(o-r)*e,h=n+(u-n)*e;return{x:i*e,y:m+(h-m)*t}}}_changed(){if(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("expandDistance")||this.isDirty("orientation")||this.isDirty("width")||this.isDirty("height")||this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL")){let e=this.width(),t=this.height(),i=this.get("topWidth",0),s=this.get("bottomWidth",0);this._clear=!0;let a=this.get("expandDistance",0);this.get("orientation")=="vertical"?(this._tlx=-i/2,this._tly=0,this._trx=i/2,this._try=0,this._brx=s/2,this._bry=t,this._blx=-s/2,this._bly=t,this._cprx=this._trx+(this._brx-this._trx)/2+a*t,this._cpry=this._try+.5*t,this._cplx=this._tlx+(this._blx-this._tlx)/2-a*t,this._cply=this._tly+.5*t):(this._tly=i/2,this._tlx=0,this._try=-i/2,this._trx=0,this._bry=-s/2,this._brx=e,this._bly=s/2,this._blx=e,this._cpry=this._try+(this._bry-this._try)/2-a*e,this._cprx=this._trx+.5*e,this._cply=this._tly+(this._bly-this._tly)/2+a*e,this._cplx=this._tlx+.5*e)}super._changed()}};V.className="FunnelSlice";V.classNames=q.classNames.concat([V.className]);var H=class extends L{constructor(){super(...arguments),this._tag="funnel",this.links=this.addDisposer(this._makeLinks()),this._total=0,this._count=0,this._nextCoord=0,this._opposite=!1}_makeSlices(){return new M(W.new({}),()=>V._new(this._root,{themeTags:N(this.slices.template.get("themeTags",[]),[this._tag,"series","slice",this.get("orientation")])},[this.slices.template]))}_makeLabels(){return new M(W.new({}),()=>ft._new(this._root,{themeTags:N(this.labels.template.get("themeTags",[]),[this._tag,"series","label",this.get("orientation")])},[this.labels.template]))}_makeTicks(){return new M(W.new({}),()=>lt._new(this._root,{themeTags:N(this.ticks.template.get("themeTags",[]),[this._tag,"series","tick",this.get("orientation")])},[this.ticks.template]))}_makeLinks(){return new M(W.new({}),()=>V._new(this._root,{themeTags:N(this.links.template.get("themeTags",[]),[this._tag,"series","link",this.get("orientation")])},[this.links.template]))}makeLink(e){let t=this.slicesContainer.children.push(this.links.make());return t._setDataItem(e),e.set("link",t),this.links.push(t),t}_afterNew(){super._afterNew();let e=this.slicesContainer;e._setCAll({isMeasured:!0,position:"relative",width:tt(100),height:tt(100)}),e.onPrivate("width",()=>{this.markDirtySize()}),e.onPrivate("height",()=>{this.markDirtySize()}),this.get("orientation")=="vertical"?this._setC("layout",this._root.horizontalLayout):this._setC("layout",this._root.verticalLayout)}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t._setDataItem(e),e.set("slice",t),this.makeLink(e);let i=this.makeLabel(e);i.on("x",()=>{this._updateTick(e)}),i.on("y",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{i.markDirty()}),t.events.on("boundschanged",()=>{let s=t.dataItem;s&&this._updateTick(s)})}_updateChildren(){this._opposite=!1,this.children.indexOf(this.labelsContainer)==0&&(this._opposite=!0);let e=0,t=0;if(k(this.dataItems,i=>{let s=i.get("value");Y(s)&&(t++,s>0?e+=Math.abs(i.get("valueWorking",s)/s):this.get("ignoreZeroValues",!1)||i.isHidden()?t--:e+=1)}),this._total=1/t*e,this._count=t,this.isDirty("alignLabels")&&this._fixLayout(),this._total>0&&(this._valuesDirty||this._sizeDirty||this.isDirty("bottomRatio")||this.isDirty("startLocation")||this.isDirty("endLocation"))){let i=this.slicesContainer,s;this.get("orientation")=="vertical"?s=i.innerHeight():s=i.innerWidth(),this._nextCoord=this.get("startLocation",0)*s,this.markDirtyBounds();let a=0;k(this._dataItems,l=>{this.updateLegendValue(l),l.set("index",a),a++;let r=l.get("slice"),n=l.get("tick"),u=l.get("label"),o=l.get("link"),m=l.get("fill"),h=l.get("fillPattern");r._setDefault("fill",m),r._setDefault("stroke",m),r._setDefault("fillPattern",h),o._setDefault("fill",m),o._setDefault("stroke",m);let p=l.get("value");Y(p)&&(p==0&&this.get("ignoreZeroValues")?(r.setPrivate("visible",!1),n.setPrivate("visible",!1),u.setPrivate("visible",!1)):(r.setPrivate("visible",!0),n.setPrivate("visible",!0),u.setPrivate("visible",!0),this.decorateSlice(l),this.isLast(l)?o.setPrivate("visible",!1):l.isHidden()||o.setPrivate("visible",!0)))})}super._updateChildren()}_fixLayout(){let e=this.get("orientation"),t=this.labelsContainer,i=this.labels.template;this.get("alignLabels")?(t._setC("position","relative"),t._setCAll({isMeasured:!0}),e=="vertical"?(this._setC("layout",this._root.horizontalLayout),i._setCAll({centerX:D,x:D})):(this._setC("layout",this._root.verticalLayout),i._setCAll({centerX:0,x:0}))):(t._setCAll({isMeasured:!1,position:"absolute"}),e=="vertical"?(t._setCAll({x:f}),i._setCAll({centerX:f,x:0})):(t._setCAll({y:f}),i._setCAll({centerX:f,y:0}))),this.markDirtySize()}getNextValue(e){let t=e.get("index"),i=e.get("valueWorking",0);if(t<this.dataItems.length-1){let s=this.dataItems[t+1];if(i=s.get("valueWorking",0),s.isHidden()||s.get("value")==0&&this.get("ignoreZeroValues"))return this.getNextValue(s)}return i}isLast(e){let t=e.get("index");if(t==this.dataItems.length-1)return!0;for(let i=t+1;i<this.dataItems.length;i++)if(!this.dataItems[i].isHidden())return!1;return!0}decorateSlice(e){let t=this.get("orientation"),i=e.get("slice"),s=e.get("label"),a=e.get("link"),l=this.slicesContainer,r=l.innerWidth(),n=l.innerHeight(),u=r;t=="horizontal"&&(u=n);let o=this.getNextValue(e),m=e.get("value",0),h=Math.abs(e.get("valueWorking",m)),p=this.get("bottomRatio",0),g=this.getPrivate("valueHigh",0),c=1;m!=0?c=h/Math.abs(m):e.isHidden()&&(c=1e-6),this._nextCoord==1/0&&(this._nextCoord=0);let d=h/g*u,y=(h-(h-o)*p)/g*u;i._setCAll({topWidth:d,bottomWidth:y,orientation:t}),a._setCAll({topWidth:y,bottomWidth:(h-(h-o))/g*u,orientation:t});let x=this.get("startLocation",0),b=this.get("endLocation",1);if(t=="vertical"){let _=a.height()*c;n=n*(b-x)+_,i._setC("y",this._nextCoord);let A=Math.min(1e5,Math.max(0,n/this._count*c/this._total-_));i._setCAll({height:A,x:r/2});let P=this._nextCoord+A/2;s._setC("y",P),this._nextCoord+=A+_,a._setCAll({y:this._nextCoord-_,x:r/2})}else{let _=a.width()*c;r=r*(b-x)+_,i._setC("x",this._nextCoord);let A=Math.min(1e5,Math.max(0,r/this._count*c/this._total-_));i._setCAll({width:A,y:n/2});let P=this._nextCoord+A/2;s._setC("x",P),this._nextCoord+=A+_,a._setCAll({x:this._nextCoord-_,y:n/2})}}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return z(this,void 0,void 0,function*(){return e.get("link").hide(t),i.hideDataItem.call(this,e,t)})}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return z(this,void 0,void 0,function*(){return e.get("link").show(t),i.showDataItem.call(this,e,t)})}_updateTick(e){if(this.get("alignLabels")){let t=e.get("tick"),i=e.get("label"),s=e.get("slice");if(t&&s&&i){let a=this.labelsContainer,l=this.slicesContainer,r=t.get("location",.5),n=a.width(),u=a.height(),o=a.get("paddingLeft",0),m=a.get("paddingRight",0),h=a.get("paddingTop",0),p=a.get("paddingBottom",0),g={x:0,y:0},c={x:0,y:0},d={x:0,y:0};this._opposite&&(r=1-r),this.get("orientation")=="vertical"?(g=s.getPoint(r,.5),g.x+=s.x()+l.x(),g.y+=s.y()+l.y(),this._opposite?(c.x=n,c.y=i.y(),d.x=n-o,d.y=c.y):(c.x=l.x()+l.width(),c.y=i.y(),d.x=c.x+n-i.width()-m,d.y=c.y)):(g=s.getPoint(.5,r),g.x+=s.x()+l.x(),g.y+=s.y()+l.y(),this._opposite?(c.y=u,c.x=i.x(),d.y=u-h,d.x=c.x):(c.y=l.y()+l.height(),c.x=i.x(),d.y=c.y+u-i.height()-p,d.x=c.x)),t.set("points",[g,c,d])}}}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("link");t&&(this.links.removeValue(t),t.dispose())}_positionBullet(e){let t=e.get("sprite");if(t){let s=t.dataItem.get("slice");if(s){let a=s.getPoint(e.get("locationX",.5),e.get("locationY",.5));t.setAll({x:s.x()+a.x,y:s.y()+a.y})}}}};H.className="FunnelSeries";H.classNames=L.classNames.concat([H.className]);var X=class extends H{constructor(){super(...arguments),this._tag="pyramid"}_prepareChildren(){super._prepareChildren(),this._nextSize=void 0,(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("valueIs"))&&(this._valuesDirty=!0)}decorateSlice(e){let t=this.get("orientation"),i=this.slicesContainer,s=e.get("slice"),a=e.get("label"),l=e.get("link"),r=this.get("valueIs","area"),n=this.getPrivate("valueAbsoluteSum",0);if(n==0)return;let u=this.get("startLocation",0),o=this.get("endLocation",1),m=this.get("topWidth",0),h=this.get("bottomWidth",D),p=Math.abs(e.get("valueWorking",0)),g=e.get("value",0),c,d,y=i.innerHeight(),x=i.innerWidth(),b=l.width(),_=l.height();t=="horizontal"&&([x,y]=[y,x],[b,_]=[_,b]);let A=x/2,P=1;g!=0?P=p/Math.abs(g):e.isHidden()&&(P=1e-6),_*=P,y=y*(o-u)-_*(this._count*this._total-1);let F=C(m,x);Y(this._nextSize)||(this._nextSize=F);let Z=C(h,x),R=this._nextSize,nt=Math.atan2(y,F-Z),B=Math.tan(Math.PI/2-nt);if(B==0&&(B=1e-8),r=="area"){let st=(F+Z)/2*y*p/n,ot=Math.abs(R*R-2*st*B);c=(R-Math.sqrt(ot))/B,c>0?d=(2*st-c*R)/c:d=R}else c=y*p/n,d=R-c*B;let O=this._nextCoord+c/2,J=A,j=this._nextCoord,Q=A,I=j+c;t=="vertical"?(a.set("y",O),a.get("opacity")>0&&this._rLabels.push({label:a,y:O}),s.set("height",c)):(a.set("x",O),a.get("opacity")>0&&this._hLabels.push({label:a,y:O}),[J,j]=[j,J],[Q,I]=[I,Q],s.set("width",c)),s.setAll({orientation:t,bottomWidth:d,topWidth:R,x:J,y:j}),l.setAll({orientation:t,x:Q,y:I,topWidth:d,bottomWidth:d}),this._nextSize=d,this._nextCoord+=c+_}};X.className="PyramidSeries";X.classNames=H.classNames.concat([X.className]);var K=class extends X{constructor(){super(...arguments),this._tag="pictorial",this.seriesMask=q.new(this._root,{position:"absolute",x:f,y:f,centerX:f,centerY:f}),this.seriesGraphics=this.slicesContainer.children.push(q.new(this._root,{themeTags:["pictorial","background"],position:"absolute",x:f,y:f,centerX:f,centerY:f})._markC("themeTags","position","x","y","centerX","centerY"))}_afterNew(){super._afterNew(),this._setC("topWidth",D),this._setC("bottomWidth",D),this._setC("valueIs","height"),this.slicesContainer._setC("mask",this.seriesMask)}_updateScale(){let e=this.slicesContainer,t=e.innerWidth(),i=e.innerHeight(),s=this.seriesMask,a=this.seriesGraphics,l=s.get("scale",1),r=s.localBounds(),n=r.right-r.left,u=r.bottom-r.top;this.get("orientation")=="horizontal"?l=t/n:l=i/u,l!=1/0&&!Number.isNaN(l)&&(s.set("scale",l),s.set("x",t/2),s.set("y",i/2),a._setC("scale",l),a._setC("x",t/2),a._setC("y",i/2))}_prepareChildren(){if(super._prepareChildren(),this.isDirty("svgPath")){let e=this.get("svgPath");this.seriesMask.set("svgPath",e),this.seriesGraphics._setC("svgPath",e)}this._updateScale()}};K.className="PictorialStackedSeries";K.classNames=X.classNames.concat([K.className]);var E=class extends ${_afterNew(){super._afterNew(),this.seriesContainer.setAll({isMeasured:!0,layout:this._root.horizontalLayout})}};E.className="SlicedChart";E.classNames=$.classNames.concat([E.className]);export{it as DefaultTheme,H as FunnelSeries,V as FunnelSlice,$ as PercentChart,L as PercentSeries,K as PictorialStackedSeries,G as PieChart,U as PieSeries,X as PyramidSeries,E as SlicedChart};
2
+ import{a as vt}from"./GFC6LS4L.js";import{D as _t,E as q,P as at,R as ft,S as xt,c as M,ga as ct,i as w,j as v,ja as bt,k as T,l as mt,m as ht,n as dt,o as et,qa as ut,ra as lt,sa as kt}from"./6KYZMT4A.js";import{S as N,a as z,x as C}from"./AMRGLUBB.js";import{a as gt,b as tt,d as D,e as f}from"./UDXDE3LW.js";import{X as W,Y as yt,g as Y,p as k}from"./6SL7YNKF.js";import"./TAVTDQ6S.js";var it=class extends yt{setupDefaultRules(){super.setupDefaultRules();let e=this._root.interfaceColors,t=this.rule.bind(this);t("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:kt.new(this._root,{}),width:D,height:D}),t("PieChart").setAll({radius:tt(80),startAngle:-90,endAngle:270}),t("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),t("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),t("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}",strokeWidth:1,strokeOpacity:1,role:"figure",lineJoin:"round"}),t("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),t("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),t("Slice",["pie"]).states.create("hover",{scale:1.04}),t("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),t("Tick",["pie"]).setAll({location:1}),t("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),t("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),t("FunnelSlice").setAll({interactive:!0,expandDistance:0}),t("FunnelSlice").states.create("hover",{expandDistance:.15}),t("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),t("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),t("Label",["funnel","vertical"]).setAll({centerY:f,centerX:0}),t("Tick",["funnel"]).setAll({location:1}),t("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),t("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),t("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),t("PyramidSeries").setAll({valueIs:"area"}),t("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),t("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),t("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),t("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),t("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),t("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),t("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),t("Label",["pyramid","vertical"]).setAll({centerY:f,centerX:0}),t("Tick",["pyramid"]).setAll({location:1}),t("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),t("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),t("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),t("Label",["pictorial","vertical"]).setAll({centerY:f,centerX:0}),t("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),t("Tick",["pictorial"]).setAll({location:.5});{let i=t("Graphics",["pictorial","background"]);i.setAll({fillOpacity:.2}),xt(i,"fill",e,"alternativeBackground")}}};var $=class extends ut{_afterNew(){this._defaultThemes.push(it.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(e){super._processSeries(e),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}};$.className="PercentChart";$.classNames=ut.classNames.concat([$.className]);var L=class extends ct{constructor(){super(...arguments),this.slicesContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})._markC("position","isMeasured")),this.labelsContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})._markC("position","isMeasured")),this.ticksContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})._markC("position","isMeasured")),this._lLabels=[],this._rLabels=[],this._hLabels=[],this.slices=this.addDisposer(this._makeSlices()),this.labels=this.addDisposer(this._makeLabels()),this.ticks=this.addDisposer(this._makeTicks())}_applyThemes(e=!1){let t=this.get("colors");return t&&t.reset(),super._applyThemes(e)}makeSlice(e){let t=this.slicesContainer.children.push(this.slices.make());return t.on("fill",()=>{this.updateLegendMarker(e)}),t.on("fillPattern",()=>{this.updateLegendMarker(e)}),t.on("stroke",()=>{this.updateLegendMarker(e)}),t._setDataItem(e),this._linkSprite(t,e),e.set("slice",t),this.slices.push(t),t}makeLabel(e){let t=this.labelsContainer.children.push(this.labels.make());return t._setDataItem(e),e.set("label",t),this.labels.push(t),t}_shouldMakeBullet(e){return e.get("value")!=null}makeTick(e){let t=this.ticksContainer.children.push(this.ticks.make());return t._setDataItem(e),e.set("tick",t),this.ticks.push(t),t}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_placeBulletsContainer(){this.children.moveValue(this.bulletsContainer)}_onDataClear(){let e=this.get("colors");e&&e.reset();let t=this.get("patterns");t&&t.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let e=0,t=0,i=0,s=1/0,a=0;k(this._dataItems,l=>{let r=l.get("valueWorking",0);e+=r,t+=Math.abs(r)}),k(this._dataItems,l=>{let r=l.get("valueWorking",0);r>i&&(i=r),r<s&&(s=r),a++;let n=r/t;t==0&&(n=0),l.setRaw("valuePercentTotal",n*100)}),this.setPrivateRaw("valueLow",s),this.setPrivateRaw("valueHigh",i),this.setPrivateRaw("valueSum",e),this.setPrivateRaw("valueAverage",e/a),this.setPrivateRaw("valueAbsoluteSum",t)}}show(e){let t=Object.create(null,{show:{get:()=>super.show}});return z(this,void 0,void 0,function*(){let i=[];i.push(t.show.call(this,e)),i.push(this._sequencedShowHide(!0,e)),yield Promise.all(i)})}hide(e){let t=Object.create(null,{hide:{get:()=>super.hide}});return z(this,void 0,void 0,function*(){let i=[];i.push(t.hide.call(this,e)),i.push(this._sequencedShowHide(!1,e)),yield Promise.all(i)})}_updateChildren(){super._updateChildren(),this._valuesDirty&&k(this._dataItems,e=>{e.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&k(this._dataItems,e=>{this.updateLegendValue(e)}),this._arrange()}_arrange(){this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),k(this.dataItems,e=>{this._updateTick(e)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(e){if(super.processDataItem(e),e.get("fill")==null){let t=this.get("colors");t&&e.setRaw("fill",t.next())}if(e.get("fillPattern")==null){let t=this.get("patterns");t&&e.setRaw("fillPattern",t.next())}}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return z(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,e,t)];Y(t)||(t=this.get("stateAnimationDuration",0));let a=this.get("stateAnimationEasing"),l=e.get("value"),r=e.animate({key:"valueWorking",to:l,duration:t,easing:a});r&&s.push(r.waitForStop());let n=e.get("tick");n&&s.push(n.show(t));let u=e.get("label");u&&s.push(u.show(t));let o=e.get("slice");o&&s.push(o.show(t)),o.get("active")&&o.states.applyAnimate("active"),yield Promise.all(s)})}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return z(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,e,t)],a=this.states.create("hidden",{});Y(t)||(t=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let l=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),r=e.animate({key:"valueWorking",to:0,duration:t,easing:l});r&&s.push(r.waitForStop());let n=e.get("tick");n&&s.push(n.hide(t));let u=e.get("label");u&&s.push(u.hide(t));let o=e.get("slice");o.hideTooltip(),o&&s.push(o.hide(t)),yield Promise.all(s)})}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("label");t&&(this.labels.removeValue(t),t.dispose());let i=e.get("tick");i&&(this.ticks.removeValue(i),i.dispose());let s=e.get("slice");s&&(this.slices.removeValue(s),s.dispose())}hoverDataItem(e){let t=e.get("slice");t&&!t.isHidden()&&t.hover()}unhoverDataItem(e){let t=e.get("slice");t&&t.unhover()}updateLegendMarker(e){if(e){let t=e.get("slice");if(t){let i=e.get("legendDataItem");if(i){let s=i.get("markerRectangle");k(_t,a=>{t.get(a)!=null&&s.set(a,t.get(a))})}}}}_arrangeDown(e){if(e){let t=this._getNextDown();e.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.top;i.y+a<t&&(i.y=t-a),i.label.set("y",i.y),t=i.y+s.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(e){if(e){let t=this._getNextUp();e.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.bottom;i.y+a>t&&(i.y=t-a),i.label.set("y",i.y),t=i.y+s.top})}}_arrangeRight(e){if(e){let t=0;e.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.left;i.y+a<t&&(i.y=t-a),i.label._setC("x",i.y),t=i.y+s.right})}}_arrangeLeft(e){if(e){let t=this.labelsContainer.maxWidth();e.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.right;i.y+a>t&&(i.y=t-a),i.label._setC("x",i.y),t=i.y+s.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(e){}_dispose(){super._dispose();let e=this.chart;e&&e.series.removeValue(this)}};L.className="PercentSeries";L.classNames=ct.classNames.concat([L.className]);var G=class extends ${constructor(){super(...arguments),this._maxRadius=1}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:f,y:f})}_processSeries(e){super._processSeries(e),this.series.each(t=>{t._markDirtyKey("innerRadius")})}_prepareChildren(){super._prepareChildren();let e=this.chartContainer,t=e.innerWidth(),i=e.innerHeight(),s=this.get("startAngle",0),a=this.get("endAngle",0),l=this.get("innerRadius"),r=ht(0,0,s,a,1),n=t/(r.right-r.left),u=i/(r.bottom-r.top),o={left:0,right:0,top:0,bottom:0};if(l instanceof gt&&l.value!==0){let p=l.value,g=Math.min(n,u);p=Math.max(g*p,g-Math.min(i,t))/g,o=ht(0,0,s,a,p),this.setPrivateRaw("irModifyer",p/l.value)}else this.setPrivateRaw("irModifyer",1);r=dt([r,o]);let m=this._maxRadius;this._maxRadius=Math.min(n,u);let h=C(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-h*(r.bottom+r.top)/2,dx:-h*(r.right+r.left)/2}),(this.isDirty("startAngle")||this.isDirty("endAngle")||m!=this._maxRadius)&&this.series.each(p=>{p._markDirtyKey("startAngle")}),(this.isDirty("innerRadius")||this.isDirty("radius"))&&this.series.each(p=>{p._markDirtyKey("innerRadius")})}radius(e){let t=C(this.get("radius",0),this._maxRadius),i=C(this.get("innerRadius",0),t);if(i<0&&(i=t+i),e){let s=this.series.indexOf(e),a=this.series.length,l=e.get("radius");return l!=null?i+C(l,t-i):i+(t-i)/a*(s+1)}return t}innerRadius(e){let t=this.radius(),i=C(this.get("innerRadius",0),t);if(i<0&&(i=t+i),e){let s=this.series.indexOf(e),a=this.series.length,l=e.get("innerRadius");return l!=null?i+C(l,t-i):i+(t-i)/a*s}return i}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}};G.className="PieChart";G.classNames=$.classNames.concat([G.className]);var U=class extends L{_makeSlices(){return new M(W.new({}),()=>vt._new(this._root,{themeTags:N(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new M(W.new({}),()=>bt._new(this._root,{themeTags:N(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new M(W.new({}),()=>lt._new(this._root,{themeTags:N(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t.on("scale",()=>{this._updateTick(e)}),t.on("shiftRadius",()=>{this._updateTick(e)}),t.events.on("positionchanged",()=>{this._updateTick(e)});let i=this.makeLabel(e);i.events.on("positionchanged",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{i.markDirty()})}_getNextUp(){let e=this.chart;return e?e._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){let e=this.chart;return e?-e._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();let e=this.chart;if(e){if(this.isDirty("alignLabels")){let t=this.labels.template;if(this.get("alignLabels"))t._setC("textType","aligned");else{let i=t.get("textType");(i==null||i=="aligned")&&t._setC("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();let t=this.get("startAngle",e.get("startAngle",-90)),s=this.get("endAngle",e.get("endAngle",270))-t,a=t,l=e.radius(this);this.setPrivateRaw("radius",l);let r=e.innerRadius(this)*e.getPrivate("irModifyer",1);r<0&&(r=l+r),k(this._dataItems,n=>{this.updateLegendValue(n);let u=s*n.get("valuePercentTotal")/100,o=n.get("slice");if(o){o.set("radius",l),o.set("innerRadius",r),o.set("startAngle",a),o.set("arc",u);let p=n.get("fill");o._setDefault("fill",p),o._setDefault("stroke",p);let g=n.get("fillPattern");o._setDefault("fillPattern",g)}let m=mt(a+u/2),h=n.get("label");if(h&&(h.setPrivate("radius",l),h.setPrivate("innerRadius",r),h.set("labelAngle",m),h.get("textType")=="aligned")){let p=l+h.get("radius",0),g=l*w(m);m>90&&m<=270?(!h.isHidden()&&!h.isHiding()&&this._lLabels.push({label:h,y:g}),p*=-1,p-=this.labelsContainer.get("paddingLeft",0),h.set("centerX",D),h.setPrivateRaw("left",!0)):(!h.isHidden()&&!h.isHiding()&&this._rLabels.push({label:h,y:g}),p+=this.labelsContainer.get("paddingRight",0),h.set("centerX",0),h.setPrivateRaw("left",!1)),h.set("x",p),h.set("y",l*w(m))}a+=u,this._updateTick(n)})}}}_updateTick(e){let t=e.get("tick"),i=e.get("label"),s=e.get("slice"),a=t.get("location",1);if(t&&i&&s){let l=(s.get("shiftRadius",0)+s.get("radius",0))*s.get("scale",1)*a,r=i.get("labelAngle",0),n=T(r),u=w(r),o=this.labelsContainer,m=o.get("paddingLeft",0),h=o.get("paddingRight",0),p=0,g=0;p=i.x(),g=i.y();let c=[];if(p!=0||g!=0){if(i.get("textType")=="circular"){let y=i.radius()-i.get("paddingBottom",0),x=i.get("labelAngle",0);p=y*T(x),g=y*w(x)}let d=-h;i.getPrivate("left")&&(d=m),c=[{x:s.x()+l*n,y:s.y()+l*u},{x:p+d,y:g},{x:p,y:g}]}t.set("points",c)}}_positionBullet(e){let t=e.get("sprite");if(t){let s=t.dataItem.get("slice");if(s){let a=s.get("innerRadius",0),l=s.get("radius",0),r=s.get("startAngle",0),n=s.get("arc",0),u=e.get("locationX",.5),o=e.get("locationY",.5),m=r+n*u,h=a+(l-a)*o;t.setAll({x:T(m)*h,y:w(m)*h})}}}};U.className="PieSeries";U.classNames=L.classNames.concat([U.className]);var V=class extends q{constructor(){super(...arguments),this._projectionDirty=!1,this._tlx=0,this._tly=0,this._trx=0,this._try=0,this._blx=0,this._bly=0,this._brx=0,this._bry=0,this._cprx=0,this._cplx=0,this._cpry=0,this._cply=0}_afterNew(){super._afterNew(),this.set("draw",e=>{let t=this.width(),i=this.height(),s=Math.min(t,i)/2,a=C(this.get("cornerRadiusTL",0),s),l=C(this.get("cornerRadiusTR",0),s),r=C(this.get("cornerRadiusBR",0),s),n=C(this.get("cornerRadiusBL",0),s),u=this._trx,o=this._try,m=this._tlx,h=this._tly,p=this._brx,g=this._bry,c=this._blx,d=this._bly;o==h&&(o=o-.01),g==d&&(g=g-.01);let y=et({x:m,y:h},{x:u,y:o}),x=et({x:u,y:o},{x:p,y:g}),b=et({x:p,y:g},{x:c,y:d}),_=et({x:c,y:d},{x:m,y:h});this.get("orientation")=="horizontal"?(a=Math.min(a,Math.abs(h-o)/2),l=Math.min(l,Math.abs(h-o)/2),r=Math.min(r,Math.abs(d-g)/2),n=Math.min(n,Math.abs(d-g)/2)):(a=Math.min(a,Math.abs(m-u)/2),l=Math.min(l,Math.abs(m-u)/2),r=Math.min(r,Math.abs(c-p)/2),n=Math.min(n,Math.abs(c-p)/2));let A=m-a*v((y-_)/2)*T(_),P=h-a*v((y-_)/2)*w(_),F=m-a*v((_-y)/2)*T(y),Z=h-a*v((_-y)/2)*w(y),R=u-l*v((x-y)/2)*T(y),nt=o-l*v((x-y)/2)*w(y),B=u-l*v((y-x)/2)*T(x),O=o-l*v((y-x)/2)*w(x),J=p-r*v((b-x)/2)*T(x),j=g-r*v((b-x)/2)*w(x),Q=p-r*v((x-b)/2)*T(b),I=g-r*v((x-b)/2)*w(b),pt=c-n*v((_-b)/2)*T(b),st=d-n*v((_-b)/2)*w(b),ot=c-n*v((b-_)/2)*T(_),Tt=d-n*v((b-_)/2)*w(_);e.moveTo(F,Z),e.lineTo(R,nt),e.arcTo(u,o,B,O,l),e.quadraticCurveTo(this._cprx,this._cpry,J,j),e.arcTo(p,g,Q,I,r),e.lineTo(pt,st),e.arcTo(c,d,ot,Tt,n),e.quadraticCurveTo(this._cplx,this._cply,A,P),e.arcTo(m,h,F,Z,a)})}getPoint(e,t){let i=this.width(),s=this.height(),a=this.get("topWidth",0),l=this.get("bottomWidth",0);if(this.get("orientation")=="vertical"){let r=-a/2,n=a/2,u=l/2,o=-l/2,m=r+(o-r)*t,h=n+(u-n)*t;return{x:m+(h-m)*e,y:s*t}}else{let r=-a/2,n=a/2,u=l/2,o=-l/2,m=r+(o-r)*e,h=n+(u-n)*e;return{x:i*e,y:m+(h-m)*t}}}_changed(){if(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("expandDistance")||this.isDirty("orientation")||this.isDirty("width")||this.isDirty("height")||this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL")){let e=this.width(),t=this.height(),i=this.get("topWidth",0),s=this.get("bottomWidth",0);this._clear=!0;let a=this.get("expandDistance",0);this.get("orientation")=="vertical"?(this._tlx=-i/2,this._tly=0,this._trx=i/2,this._try=0,this._brx=s/2,this._bry=t,this._blx=-s/2,this._bly=t,this._cprx=this._trx+(this._brx-this._trx)/2+a*t,this._cpry=this._try+.5*t,this._cplx=this._tlx+(this._blx-this._tlx)/2-a*t,this._cply=this._tly+.5*t):(this._tly=i/2,this._tlx=0,this._try=-i/2,this._trx=0,this._bry=-s/2,this._brx=e,this._bly=s/2,this._blx=e,this._cpry=this._try+(this._bry-this._try)/2-a*e,this._cprx=this._trx+.5*e,this._cply=this._tly+(this._bly-this._tly)/2+a*e,this._cplx=this._tlx+.5*e)}super._changed()}};V.className="FunnelSlice";V.classNames=q.classNames.concat([V.className]);var H=class extends L{constructor(){super(...arguments),this._tag="funnel",this.links=this.addDisposer(this._makeLinks()),this._total=0,this._count=0,this._nextCoord=0,this._opposite=!1}_makeSlices(){return new M(W.new({}),()=>V._new(this._root,{themeTags:N(this.slices.template.get("themeTags",[]),[this._tag,"series","slice",this.get("orientation")])},[this.slices.template]))}_makeLabels(){return new M(W.new({}),()=>ft._new(this._root,{themeTags:N(this.labels.template.get("themeTags",[]),[this._tag,"series","label",this.get("orientation")])},[this.labels.template]))}_makeTicks(){return new M(W.new({}),()=>lt._new(this._root,{themeTags:N(this.ticks.template.get("themeTags",[]),[this._tag,"series","tick",this.get("orientation")])},[this.ticks.template]))}_makeLinks(){return new M(W.new({}),()=>V._new(this._root,{themeTags:N(this.links.template.get("themeTags",[]),[this._tag,"series","link",this.get("orientation")])},[this.links.template]))}makeLink(e){let t=this.slicesContainer.children.push(this.links.make());return t._setDataItem(e),e.set("link",t),this.links.push(t),t}_afterNew(){super._afterNew();let e=this.slicesContainer;e._setCAll({isMeasured:!0,position:"relative",width:tt(100),height:tt(100)}),e.onPrivate("width",()=>{this.markDirtySize()}),e.onPrivate("height",()=>{this.markDirtySize()}),this.get("orientation")=="vertical"?this._setC("layout",this._root.horizontalLayout):this._setC("layout",this._root.verticalLayout)}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t._setDataItem(e),e.set("slice",t),this.makeLink(e);let i=this.makeLabel(e);i.on("x",()=>{this._updateTick(e)}),i.on("y",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{i.markDirty()}),t.events.on("boundschanged",()=>{let s=t.dataItem;s&&this._updateTick(s)})}_updateChildren(){this._opposite=!1,this.children.indexOf(this.labelsContainer)==0&&(this._opposite=!0);let e=0,t=0;if(k(this.dataItems,i=>{let s=i.get("value");Y(s)&&(t++,s>0?e+=Math.abs(i.get("valueWorking",s)/s):this.get("ignoreZeroValues",!1)||i.isHidden()?t--:e+=1)}),this._total=1/t*e,this._count=t,this.isDirty("alignLabels")&&this._fixLayout(),this._total>0&&(this._valuesDirty||this._sizeDirty||this.isDirty("bottomRatio")||this.isDirty("startLocation")||this.isDirty("endLocation"))){let i=this.slicesContainer,s;this.get("orientation")=="vertical"?s=i.innerHeight():s=i.innerWidth(),this._nextCoord=this.get("startLocation",0)*s,this.markDirtyBounds();let a=0;k(this._dataItems,l=>{this.updateLegendValue(l),l.set("index",a),a++;let r=l.get("slice"),n=l.get("tick"),u=l.get("label"),o=l.get("link"),m=l.get("fill"),h=l.get("fillPattern");r._setDefault("fill",m),r._setDefault("stroke",m),r._setDefault("fillPattern",h),o._setDefault("fill",m),o._setDefault("stroke",m);let p=l.get("value");Y(p)&&(p==0&&this.get("ignoreZeroValues")?(r.setPrivate("visible",!1),n.setPrivate("visible",!1),u.setPrivate("visible",!1)):(r.setPrivate("visible",!0),n.setPrivate("visible",!0),u.setPrivate("visible",!0),this.decorateSlice(l),this.isLast(l)?o.setPrivate("visible",!1):l.isHidden()||o.setPrivate("visible",!0)))})}super._updateChildren()}_fixLayout(){let e=this.get("orientation"),t=this.labelsContainer,i=this.labels.template;this.get("alignLabels")?(t._setC("position","relative"),t._setCAll({isMeasured:!0}),e=="vertical"?(this._setC("layout",this._root.horizontalLayout),i._setCAll({centerX:D,x:D})):(this._setC("layout",this._root.verticalLayout),i._setCAll({centerX:0,x:0}))):(t._setCAll({isMeasured:!1,position:"absolute"}),e=="vertical"?(t._setCAll({x:f}),i._setCAll({centerX:f,x:0})):(t._setCAll({y:f}),i._setCAll({centerX:f,y:0}))),this.markDirtySize()}getNextValue(e){let t=e.get("index"),i=e.get("valueWorking",0);if(t<this.dataItems.length-1){let s=this.dataItems[t+1];if(i=s.get("valueWorking",0),s.isHidden()||s.get("value")==0&&this.get("ignoreZeroValues"))return this.getNextValue(s)}return i}isLast(e){let t=e.get("index");if(t==this.dataItems.length-1)return!0;for(let i=t+1;i<this.dataItems.length;i++)if(!this.dataItems[i].isHidden())return!1;return!0}decorateSlice(e){let t=this.get("orientation"),i=e.get("slice"),s=e.get("label"),a=e.get("link"),l=this.slicesContainer,r=l.innerWidth(),n=l.innerHeight(),u=r;t=="horizontal"&&(u=n);let o=this.getNextValue(e),m=e.get("value",0),h=Math.abs(e.get("valueWorking",m)),p=this.get("bottomRatio",0),g=this.getPrivate("valueHigh",0),c=1;m!=0?c=h/Math.abs(m):e.isHidden()&&(c=1e-6),this._nextCoord==1/0&&(this._nextCoord=0);let d=h/g*u,y=(h-(h-o)*p)/g*u;i._setCAll({topWidth:d,bottomWidth:y,orientation:t}),a._setCAll({topWidth:y,bottomWidth:(h-(h-o))/g*u,orientation:t});let x=this.get("startLocation",0),b=this.get("endLocation",1);if(t=="vertical"){let _=a.height()*c;n=n*(b-x)+_,i._setC("y",this._nextCoord);let A=Math.min(1e5,Math.max(0,n/this._count*c/this._total-_));i._setCAll({height:A,x:r/2});let P=this._nextCoord+A/2;s._setC("y",P),this._nextCoord+=A+_,a._setCAll({y:this._nextCoord-_,x:r/2})}else{let _=a.width()*c;r=r*(b-x)+_,i._setC("x",this._nextCoord);let A=Math.min(1e5,Math.max(0,r/this._count*c/this._total-_));i._setCAll({width:A,y:n/2});let P=this._nextCoord+A/2;s._setC("x",P),this._nextCoord+=A+_,a._setCAll({x:this._nextCoord-_,y:n/2})}}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return z(this,void 0,void 0,function*(){return e.get("link").hide(t),i.hideDataItem.call(this,e,t)})}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return z(this,void 0,void 0,function*(){return e.get("link").show(t),i.showDataItem.call(this,e,t)})}_updateTick(e){if(this.get("alignLabels")){let t=e.get("tick"),i=e.get("label"),s=e.get("slice");if(t&&s&&i){let a=this.labelsContainer,l=this.slicesContainer,r=t.get("location",.5),n=a.width(),u=a.height(),o=a.get("paddingLeft",0),m=a.get("paddingRight",0),h=a.get("paddingTop",0),p=a.get("paddingBottom",0),g={x:0,y:0},c={x:0,y:0},d={x:0,y:0};this._opposite&&(r=1-r),this.get("orientation")=="vertical"?(g=s.getPoint(r,.5),g.x+=s.x()+l.x(),g.y+=s.y()+l.y(),this._opposite?(c.x=n,c.y=i.y(),d.x=n-o,d.y=c.y):(c.x=l.x()+l.width(),c.y=i.y(),d.x=c.x+n-i.width()-m,d.y=c.y)):(g=s.getPoint(.5,r),g.x+=s.x()+l.x(),g.y+=s.y()+l.y(),this._opposite?(c.y=u,c.x=i.x(),d.y=u-h,d.x=c.x):(c.y=l.y()+l.height(),c.x=i.x(),d.y=c.y+u-i.height()-p,d.x=c.x)),t.set("points",[g,c,d])}}}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("link");t&&(this.links.removeValue(t),t.dispose())}_positionBullet(e){let t=e.get("sprite");if(t){let s=t.dataItem.get("slice");if(s){let a=s.getPoint(e.get("locationX",.5),e.get("locationY",.5));t.setAll({x:s.x()+a.x,y:s.y()+a.y})}}}};H.className="FunnelSeries";H.classNames=L.classNames.concat([H.className]);var X=class extends H{constructor(){super(...arguments),this._tag="pyramid"}_prepareChildren(){super._prepareChildren(),this._nextSize=void 0,(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("valueIs"))&&(this._valuesDirty=!0)}decorateSlice(e){let t=this.get("orientation"),i=this.slicesContainer,s=e.get("slice"),a=e.get("label"),l=e.get("link"),r=this.get("valueIs","area"),n=this.getPrivate("valueAbsoluteSum",0);if(n==0)return;let u=this.get("startLocation",0),o=this.get("endLocation",1),m=this.get("topWidth",0),h=this.get("bottomWidth",D),p=Math.abs(e.get("valueWorking",0)),g=e.get("value",0),c,d,y=i.innerHeight(),x=i.innerWidth(),b=l.width(),_=l.height();t=="horizontal"&&([x,y]=[y,x],[b,_]=[_,b]);let A=x/2,P=1;g!=0?P=p/Math.abs(g):e.isHidden()&&(P=1e-6),_*=P,y=y*(o-u)-_*(this._count*this._total-1);let F=C(m,x);Y(this._nextSize)||(this._nextSize=F);let Z=C(h,x),R=this._nextSize,nt=Math.atan2(y,F-Z),B=Math.tan(Math.PI/2-nt);if(B==0&&(B=1e-8),r=="area"){let st=(F+Z)/2*y*p/n,ot=Math.abs(R*R-2*st*B);c=(R-Math.sqrt(ot))/B,c>0?d=(2*st-c*R)/c:d=R}else c=y*p/n,d=R-c*B;let O=this._nextCoord+c/2,J=A,j=this._nextCoord,Q=A,I=j+c;t=="vertical"?(a.set("y",O),a.get("opacity")>0&&this._rLabels.push({label:a,y:O}),s.set("height",c)):(a.set("x",O),a.get("opacity")>0&&this._hLabels.push({label:a,y:O}),[J,j]=[j,J],[Q,I]=[I,Q],s.set("width",c)),s.setAll({orientation:t,bottomWidth:d,topWidth:R,x:J,y:j}),l.setAll({orientation:t,x:Q,y:I,topWidth:d,bottomWidth:d}),this._nextSize=d,this._nextCoord+=c+_}};X.className="PyramidSeries";X.classNames=H.classNames.concat([X.className]);var K=class extends X{constructor(){super(...arguments),this._tag="pictorial",this.seriesMask=q.new(this._root,{position:"absolute",x:f,y:f,centerX:f,centerY:f}),this.seriesGraphics=this.slicesContainer.children.push(q.new(this._root,{themeTags:["pictorial","background"],position:"absolute",x:f,y:f,centerX:f,centerY:f})._markC("themeTags","position","x","y","centerX","centerY"))}_afterNew(){super._afterNew(),this._setC("topWidth",D),this._setC("bottomWidth",D),this._setC("valueIs","height"),this.slicesContainer._setC("mask",this.seriesMask)}_updateScale(){let e=this.slicesContainer,t=e.innerWidth(),i=e.innerHeight(),s=this.seriesMask,a=this.seriesGraphics,l=s.get("scale",1),r=s.localBounds(),n=r.right-r.left,u=r.bottom-r.top;this.get("orientation")=="horizontal"?l=t/n:l=i/u,l!=1/0&&!Number.isNaN(l)&&(s.set("scale",l),s.set("x",t/2),s.set("y",i/2),a._setC("scale",l),a._setC("x",t/2),a._setC("y",i/2))}_prepareChildren(){if(super._prepareChildren(),this.isDirty("svgPath")){let e=this.get("svgPath");this.seriesMask.set("svgPath",e),this.seriesGraphics._setC("svgPath",e)}this._updateScale()}};K.className="PictorialStackedSeries";K.classNames=X.classNames.concat([K.className]);var E=class extends ${_afterNew(){super._afterNew(),this.seriesContainer.setAll({isMeasured:!0,layout:this._root.horizontalLayout})}};E.className="SlicedChart";E.classNames=$.classNames.concat([E.className]);export{it as DefaultTheme,H as FunnelSeries,V as FunnelSlice,$ as PercentChart,L as PercentSeries,K as PictorialStackedSeries,G as PieChart,U as PieSeries,X as PyramidSeries,E as SlicedChart};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{N as r,O as n,P as m,X as p,b as o}from"./3UMLR76Y.js";export default $arcgis.t(([{whenOnce:d}])=>{function f(i,t){return!i||i==="all"||!!(t&&i.includes(t))}var a=class extends m{static{this.properties={showSaveAs:5,viewModel:0,messages:0,allowedFormatsForSaving:1,arcgisSaveAs:0,exportedLink:0}}#e=r();_closePopover(){this.#e.value&&(this.#e.value.open=!1)}render(){let t=this.messages,e=this.exportedLink,v=e.formattedName??"",{state:c}=e,h=this.showSaveAs&&c!=="error"&&f(this.allowedFormatsForSaving,e.extension);return c!=="pending"&&h?o`<calcite-popover auto-close label=Popover offset-distance=1 overlay-positioning=fixed pointer-disabled .referenceElement=${`${v}-popover-button`} scale=s ${n(this.#e)}><calcite-list label>${e.portalItem?o`<calcite-list-item .label=${t.openItem} @calciteListItemSelect=${()=>{let l=e.portalItem;if(!l?.itemPageUrl)return;let s=document.createElement("a");s.target="_blank",s.href=l.itemPageUrl,s.rel="noreferrer",s.click(),this._closePopover()}}><calcite-icon icon=launch2 scale=s slot=content-start></calcite-icon></calcite-list-item>`:o`<calcite-list-item .label=${t.saveAs} @calciteListItemSelect=${async()=>{d(()=>e.portalItem).then(()=>{this.requestUpdate()}),this.arcgisSaveAs.emit(e),this._closePopover()}}><calcite-icon icon=save scale=s slot=content-start></calcite-icon></calcite-list-item>`}<calcite-list-item .label=${t.delete} @calciteListItemSelect=${()=>{this.viewModel.exportedLinks.remove(e),this._closePopover()}}><calcite-icon icon=trash scale=s slot=content-start></calcite-icon></calcite-list-item></calcite-list></calcite-popover>`:null}};p("arcgis-print-exports-panel-item-popover",a);return{a:f,b:a}},"core/reactiveUtils")
2
+ import{P as r,Q as n,R as m,_ as p,b as o}from"./IW3P4TGM.js";export default $arcgis.t(([{whenOnce:d}])=>{function f(i,t){return!i||i==="all"||!!(t&&i.includes(t))}var a=class extends m{static{this.properties={showSaveAs:5,viewModel:0,messages:0,allowedFormatsForSaving:1,arcgisSaveAs:0,exportedLink:0}}#e=r();_closePopover(){this.#e.value&&(this.#e.value.open=!1)}render(){let t=this.messages,e=this.exportedLink,v=e.formattedName??"",{state:c}=e,h=this.showSaveAs&&c!=="error"&&f(this.allowedFormatsForSaving,e.extension);return c!=="pending"&&h?o`<calcite-popover auto-close label=Popover offset-distance=1 overlay-positioning=fixed pointer-disabled .referenceElement=${`${v}-popover-button`} scale=s ${n(this.#e)}><calcite-list label>${e.portalItem?o`<calcite-list-item .label=${t.openItem} @calciteListItemSelect=${()=>{let l=e.portalItem;if(!l?.itemPageUrl)return;let s=document.createElement("a");s.target="_blank",s.href=l.itemPageUrl,s.rel="noreferrer",s.click(),this._closePopover()}}><calcite-icon icon=launch-2 scale=s slot=content-start></calcite-icon></calcite-list-item>`:o`<calcite-list-item .label=${t.saveAs} @calciteListItemSelect=${async()=>{d(()=>e.portalItem).then(()=>{this.requestUpdate()}),this.arcgisSaveAs.emit(e),this._closePopover()}}><calcite-icon icon=save scale=s slot=content-start></calcite-icon></calcite-list-item>`}<calcite-list-item .label=${t.delete} @calciteListItemSelect=${()=>{this.viewModel.exportedLinks.remove(e),this._closePopover()}}><calcite-icon icon=trash scale=s slot=content-start></calcite-icon></calcite-list-item></calcite-list></calcite-popover>`:null}};p("arcgis-print-exports-panel-item-popover",a);return{a:f,b:a}},"core/reactiveUtils")
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as y}from"./L5IRXOCJ.js";import b from"./TJHVEY7T.js";import{a as h}from"./LXME6MU5.js";import{$ as g,R as f,T as o,X as i,_ as u,a as d,b as a}from"./IW3P4TGM.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:v},{i:b}])=>{function B(t){return t.portalItem?.type==="Web Scene"||t.referenceLayers.some(e=>e.type==="scene")}function z(t){return!!t?.portalItem?.tags?.some(e=>e.toLowerCase()==="beta")||!!t?.portalItem?.categories?.includes("/Categories/Status/Beta")}function A(t){return!!t?.portalItem?.tags?.some(e=>e.toLowerCase()==="preview")||!!t?.portalItem?.categories?.includes("/Categories/Status/Preview")}var C=d`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}:host{container-type:inline-size}.empty-message{padding:12px 15px;animation:.5s ease-in-out esri-fade-in}.item{box-sizing:border-box;cursor:pointer;border:1px solid var(--calcite-color-surface-1);flex-direction:row;width:100%;transition:background-color .25s ease-in-out,border-color .25s ease-in-out;animation:.5s ease-in-out esri-fade-in;display:flex;position:relative}.item:hover{background-color:var(--calcite-color-surface-4);border-color:var(--calcite-color-background-inverse)}.item:hover .item-title{color:var(--calcite-color-text-1)}.item:focus{outline:none}.is-error{opacity:var(--calcite-opacity-light);background-color:var(--calcite-color-transparent)!important;border-color:var(--calcite-color-transparent)!important;cursor:auto}.item-thumbnail{aspect-ratio:1.5;border-inline-end:1px solid var(--calcite-color-border-1);flex-shrink:0;width:120px;min-width:120px;transition:background-color .25s ease-in-out,border-color .25s ease-in-out}.item-title{color:var(--calcite-color-text-3);justify-content:flex-start;align-items:center;width:100%;height:100%;font-size:var(--calcite-font-size-sm);transition:color .25s ease-in-out,font-weight .25s ease-in-out;display:flex}.item-title span{text-align:start;text-overflow:ellipsis;word-wrap:break-word;word-break:break-word;hyphens:auto;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;width:100%;display:-webkit-box;overflow:hidden}.is-selected,.is-selected:hover,.is-selected:focus{cursor:auto;background-color:color-mix(in srgb,var(--calcite-color-brand-underline),70% transparent);border-color:var(--calcite-color-status-info)!important}.is-selected .item-title,.item.is-selected:hover .item-title,.item.is-selected:focus .item-title{color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium)}.item-content{flex-direction:column;gap:var(--calcite-space-md);min-width:0;padding-block:var(--calcite-space-base);padding-inline:var(--calcite-space-md);display:flex}.item-tags{flex-direction:row;gap:var(--calcite-space-base);display:flex}.item-tags calcite-chip{--calcite-font-size--2: var(--calcite-font-size--3);cursor:inherit}@supports (object-fit: cover){.item-thumbnail{object-fit:cover}}@container (width>=200px) and (width <= 300px){.item{align-items:center}.item:not(.is-selected,:hover){border-color:var(--calcite-color-transparent)}}@container (width>=200px) and (width <= 278px){.item-thumbnail{aspect-ratio:1;width:80px;min-width:80px;object-position:left}}@container (width<200px) or (width>=350px){.item{text-align:center;flex-flow:column wrap}.item:not(.is-selected,:hover){border-color:var(--calcite-color-border-1)}.item-thumbnail{border-block-end:1px solid var(--calcite-color-border-1);border-inline-end:none;width:100%;min-width:0;height:auto}.item-content{height:32px;padding-block:var(--calcite-space-2xs);padding-inline:var(--calcite-space-xs);position:relative}.item-tags{position:absolute;inset-block-end:45px;inset-inline-end:5px}}`,s=class extends f{constructor(){super(...arguments),this._itemState="loading",this._isActive=!1}static{this.properties={_itemState:16,_isActive:16,disabled:5,item:0,itemIndex:9,messages:0,viewModel:0}}static{this.styles=C}loaded(){this.manager.onLifecycle(()=>[v(()=>this.item.state,e=>{this._itemState=e},{sync:!0}),v(()=>this.viewModel.activeBasemap,e=>{this._isActive=this.item.basemap.id===e?.id,this._isActive&&(b(this)?.focus(),this.el.scrollIntoView({block:"nearest"}))},{initial:!0,sync:!0})])}render(){let{item:e,itemIndex:n,messages:x,viewModel:c}=this;if(!e.basemap)return null;let w=e.basemap.thumbnailUrl||g("./assets/basemap-gallery/images/basemap-toggle-64.svg"),l=e.basemap.title,k=e.basemap.portalItem?.snippet,$=e.error?.message||k||l,{activeBasemapIndex:p}=c,r=p===n,I=r||p===-1&&n===0?0:-1,_={"is-selected":r,"is-error":e.state==="error"},m=`basemapgallery-item-${e.uid}`;return a`<div .ariaChecked=${r} .ariaDisabled=${this.disabled} aria-labelledby=${m??i} class=${o(h("item",_))} role=radio tabindex=${I??i} title=${$??i} @click=${()=>{e.state==="ready"&&(c.activeBasemap=e.basemap)}}><img alt class="item-thumbnail" src=${w??i}><div class="item-content"><div class="item-title"><span id=${m??i}>${l}</span></div>${B(e.basemap)?Y(e.basemap,x):null}</div>${e.state!=="loading"?null:a`<calcite-scrim><span aria-hidden=true class=${o(y.loaderAnimation)} role=presentation></span></calcite-scrim>`}</div>`}};function Y(t,e){return a`<div class="item-tags">${L(e)}${z(t)?S(e):null}${A(t)?j(e):null}</div>`}function L(t){return a`<calcite-chip scale=s .label=${t.tag3D}>${t.tag3D}</calcite-chip>`}function S(t){return a`<calcite-chip appearance=outline-fill scale=s .label=${t.tagBeta}>${t.tagBeta}</calcite-chip>`}function j(t){return a`<calcite-chip appearance=outline-fill scale=s .label=${t.tagPreview}>${t.tagPreview}</calcite-chip>`}u("arcgis-basemap-gallery-item",s);return s},"core/reactiveUtils",b)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import h from"./Y5BPYGSY.js";import f from"./XMYFUC6S.js";import"./YEPGUNSV.js";import e from"./ZRT4RJ62.js";import{a as $}from"./SAI7K4OO.js";import d from"./3VFPLRD3.js";import c from"./E3RBRDUV.js";import{f as P,h as O}from"./FY7P5YLX.js";import"./IRDDLVT2.js";import a from"./TJHVEY7T.js";import{a as w}from"./LXME6MU5.js";import{P as g,Q as u,R as z,T as k,U as E,_ as A,a as M,b as v,x as b}from"./IW3P4TGM.js";import"./TAVTDQ6S.js";export default $arcgis.t(([B,{stripHTML:I},{watch:p},j,,,,F,,N])=>{var W=M`:host{display:contents;--arcgis-internal-popup-pointer-size: 12px;--arcgis-internal-popup-content-small-size: 280px;--arcgis-internal-popup-content-medium-size: 340px;--arcgis-internal-popup-content-large-size: 400px;--arcgis-internal-popup-content-x-large-size: 460px;--arcgis-internal-popup-content-min-size-y: 48px;--arcgis-internal-popup-pointer-size-half: calc(var(--arcgis-internal-popup-pointer-size) / 2);--arcgis-internal-popup-pointer-size-half-negative: calc(var(--arcgis-internal-popup-pointer-size-half) * -1)}.root{--arcgis-internal-popup-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-popup-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-popup-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-popup-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);display:flex;position:absolute;flex-flow:column nowrap;z-index:401;pointer-events:none;border:none;overflow:visible;padding:0;width:auto;height:auto;background-color:transparent}.hidden{visibility:hidden}.root:popover-open{display:flex;position:fixed;flex-flow:column nowrap;margin:0}arcgis-features{flex:1;width:100%}.shadow{box-shadow:var(--calcite-shadow-sm)}.aligned-top-center{transform-origin:50% 100%}.aligned-bottom-center{transform-origin:50% -5%}.aligned-top-left,.aligned-bottom-left{transform-origin:100% 50%}.aligned-top-right,.aligned-bottom-right{transform-origin:-5% 50%}.aligned-top-center,.aligned-top-left,.aligned-top-right{animation:popup-intro-animation-down .2s ease-in-out}.aligned-bottom-center,.aligned-bottom-left,.aligned-bottom-right{animation:popup-intro-animation-up .2s ease-in-out}.main-container{display:flex;position:relative;z-index:1;background-color:var(--calcite-color-foreground-1);width:var(--arcgis-internal-popup-content-medium-size);min-height:var(--arcgis-internal-popup-content-min-size-y);max-height:var(--arcgis-internal-popup-content-medium-size);overflow:hidden;pointer-events:auto}.pointer{position:absolute;width:0;height:0}.pointer-direction{position:absolute;width:var(--arcgis-internal-popup-pointer-size);height:var(--arcgis-internal-popup-pointer-size);content:"";background-color:var(--calcite-color-foreground-1)}.aligned-top-center .pointer{top:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.aligned-bottom-center .pointer{bottom:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.aligned-top-left .pointer{right:var(--arcgis-internal-popup-pointer-size-half);bottom:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.aligned-bottom-left .pointer{top:var(--arcgis-internal-popup-pointer-size-half);right:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.aligned-top-right .pointer{bottom:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.aligned-bottom-right .pointer{top:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.aligned-top-center .pointer-direction,.aligned-bottom-center .pointer-direction{transform:scale(.75,2) rotate(45deg)}.aligned-top-left .pointer-direction,.aligned-bottom-left .pointer-direction,.aligned-top-right .pointer-direction,.aligned-bottom-right .pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:var(--arcgis-internal-popup-pointer-size-half-negative);transform:scale(.75,2.5) rotate(45deg)}.aligned-top-center .pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.aligned-bottom-center .pointer-direction{bottom:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.is-xl-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-x-large-size)}.is-lg-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-large-size)}.is-md-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-medium-size)}.is-sm-width-breakpoint .main-container,.is-xs-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-small-size)}.is-xs-width-breakpoint.is-docked-top-center,.is-xs-width-breakpoint.is-docked-bottom-center{margin:0;width:auto}.is-xs-width-breakpoint.is-docked-top-center .main-container,.is-xs-width-breakpoint.is-docked-bottom-center .main-container{position:absolute;right:0;left:0;width:100%;max-height:75%}.is-xs-width-breakpoint.is-docked-bottom-center .main-container{bottom:0}.is-xs-width-breakpoint.is-docked-top-center .main-container{top:0}.is-xl-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-x-large-size)}.is-lg-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-large-size)}.is-sm-height-breakpoint .main-container,.is-xs-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-small-size)}.is-docked{flex-flow:row nowrap;inset:0;margin:var(--arcgis-layout-overlay-space-top, 0) var(--arcgis-layout-overlay-space-right, 0) var(--arcgis-layout-overlay-space-bottom, 0) var(--arcgis-layout-overlay-space-left, 0);padding:var(--calcite-space-lg) var(--calcite-space-lg) var(--calcite-spacing-xxxl) var(--calcite-space-lg);animation:docking-animation .25s ease-out}.is-docked-top-left,.is-docked-top-center,.is-docked-top-right,.is-docked-top-start,.is-docked-top-end{align-items:flex-start}.is-docked-bottom-left,.is-docked-bottom-center,.is-docked-bottom-right,.is-docked-bottom-start,.is-docked-bottom-end{align-items:flex-end}.is-docked-top-left,.is-docked-bottom-left,.is-docked-top-start,.is-docked-bottom-start{justify-content:flex-start}.is-docked-top-center,.is-docked-bottom-center{justify-content:center}.is-docked-top-right,.is-docked-bottom-right,.is-docked-top-end,.is-docked-bottom-end{justify-content:flex-end}.is-docked-top-left.is-rtl,.is-docked-top-right.is-rtl,.is-docked-bottom-left.is-rtl,.is-docked-bottom-right.is-rtl{flex-direction:row-reverse}.is-docked-top-left .main-container,.is-docked-top-right .main-container,.is-docked-bottom-left .main-container,.is-docked-bottom-right .main-container,.is-docked-top-start .main-container,.is-docked-top-end .main-container,.is-docked-bottom-start .main-container,.is-docked-bottom-end .main-container{max-height:80%}.is-docked-top-center .main-container,.is-docked-bottom-center .main-container{max-height:40%}@media(prefers-reduced-motion){.aligned-top-center,.aligned-top-left,.aligned-top-right,.aligned-bottom-center,.aligned-bottom-left,.aligned-bottom-right{animation:none}}@media(prefers-reduced-motion){.is-docked{animation:none}}@keyframes docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{transform:translateY(calc(var(--calcite-space-xs) * -1));opacity:0}to{transform:translate(0);opacity:1}}@keyframes popup-intro-animation-up{0%{transform:translateY(var(--calcite-space-xs));opacity:0}to{transform:translate(0);opacity:1}}`,S=new WeakSet;function Y(h){let t=h.defaultView;if(!(!t||S.has(h))){for(let e of["top","right","bottom","left"])try{t.CSS.registerProperty({name:`--arcgis-internal-popup-overlay-space-${e}`,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch(i){if(!(i instanceof t.DOMException&&i.name==="InvalidModificationError"))throw i}S.add(h)}}function _(h){return h&&Number.parseInt(h.replaceAll(/[^-\d.]/gu,""),10)||0}var U=F(B),L={buttonEnabled:!0,position:"auto",breakpoint:{width:544}},C=class extends z{constructor(){super(...arguments),this._direction=P(),this._headingText={html:"",text:""},this._featuresComponent=g(),this._dockAction=new j({id:"popup-dock-action"}),this._mainContainerNode=g(),this._pointerNode=g(),this.messages=$(),this.viewModel=U(this),this._containerNode=g(),this._popupResizeObserver=new ResizeObserver(()=>this._positionContainer()),this._positionContainer=()=>{this.positionStyle=this._calculatePositionStyle()},this._messageOverrides={},this.screenLocation=N(this),this.actions=this.viewModel.actions,this.active=this.viewModel.active,this.alignment="auto",this.autoCloseEnabled=!1,this.autoDestroyDisabled=!1,this.collapsed=!1,this.content=this.viewModel.content,this.diagnostics=this.viewModel.diagnostics,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.dockEnabled=!1,this.effectiveHeading=this.viewModel.effectiveHeading,this.featureCount=this.viewModel.featureCount,this.featureMenuOpen=!1,this.features=this.viewModel.features,this.featureStream=this.viewModel.featureStream,this.focusTrapDisabled=!1,this.goToOverride=this.viewModel.goToOverride,this.heading=this.viewModel.heading,this.headingLevel=2,this.hideActionBar=!1,this.hideCloseButton=!1,this.hideCollapseButton=!1,this.hideFeatureMenuHeading=!1,this.hideFeatureNavigation=!1,this.hideFeatureListLayerTitle=!1,this.hideEmptyRelationshipContent=!1,this.hideHeading=!1,this.hideSpinner=!1,this.highlightDisabled=this.viewModel.highlightEnabled,this.includeDefaultActionsDisabled=this.viewModel.includeDefaultActions,this.initialDisplayMode=this.viewModel.initialDisplayMode,this.location=this.viewModel.location,this.open=this.viewModel.open,this.selectedFeature=this.viewModel.selectedFeature,this.selectedFeatureIndex=this.viewModel.selectedFeatureIndex,this.state=this.viewModel.state,this.topLayerDisabled=!1,this.updateLocationEnabled=this.viewModel.updateLocationEnabled,this.view=this.viewModel.view,this.arcgisPropertyChange=O()("active","collapsed","currentAlignment","dockEnabled","effectiveHeading","featureCount","featureMenuOpen","features","selectedDrillInFeature","selectedFeature","selectedFeatureComponent","selectedFeatureIndex","state","open"),this.arcgisReady=b(),this.arcgisClose=b(),this.arcgisTriggerAction=b()}static{this.properties={_messageOverrides:16,screenLocation:16,positionStyle:16,_featureNavigationTop:16,_effectiveDockEnabled:16,actions:0,active:0,alignment:1,autoCloseEnabled:5,autoDestroyDisabled:5,collapsed:5,content:1,diagnostics:32,currentAlignment:32,currentDockPosition:32,defaultPopupTemplateEnabled:5,dockEnabled:5,dockOptions:0,effectiveHeading:32,featureCount:0,featureMenuOpen:5,featureMenuTitle:1,features:0,featureStream:0,focusTrapDisabled:5,goToOverride:0,heading:1,headingLevel:9,hideActionBar:5,hideCloseButton:5,hideCollapseButton:5,hideFeatureMenuHeading:5,hideFeatureNavigation:5,hideFeatureListLayerTitle:5,hideEmptyRelationshipContent:5,hideHeading:5,hideSpinner:5,highlightDisabled:5,includeDefaultActionsDisabled:5,initialDisplayMode:1,label:1,location:0,messageOverrides:0,open:5,referenceElement:1,selectedDrillInFeature:32,selectedFeature:0,selectedFeatureComponent:32,selectedFeatureIndex:9,state:32,topLayerDisabled:5,updateLocationEnabled:5,view:0}}static{this.styles=W}get trackLocation(){return this.active&&!this._effectiveDockEnabled}get _featureNavigationTop(){let{currentAlignment:t,currentDockPosition:e}=this;return t==="bottom-left"||t==="bottom-center"||t==="bottom-right"||t==="bottom-start"||t==="bottom-end"||e==="top-left"||e==="top-center"||e==="top-right"||e==="top-start"||e==="top-end"}get _effectiveDockEnabled(){return this.viewModel?.view?.focusRegionVisible?!0:this.dockEnabled}get currentAlignment(){return this._getCurrentAlignment()}get currentDockPosition(){return this._getCurrentDockPosition()}get dockOptions(){return this._dockOptions||L}set dockOptions(t){let e={...L},i=this.viewModel?.view?.breakpoints,o={};i&&(o.width=i.xsmall,o.height=i.xsmall);let n={...e,...t},a={...e.breakpoint,...o},{breakpoint:s}=n;typeof s=="object"?n.breakpoint={...a,...s}:s&&(n.breakpoint=a),this._dockOptions=n}get selectedDrillInFeature(){return this._featuresComponent.value?.selectedDrillInFeature??null}get selectedFeatureComponent(){return this._featuresComponent.value?.selectedFeatureComponent??null}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy(),this._dockAction.destroy(),this._popupResizeObserver.disconnect()}async openFeatureStream(t){this.viewModel.openFeatureStream(t)}async next(){this.viewModel.next()}async previous(){this.viewModel.previous()}async setFocus(){this._featuresComponent.value?.setFocus()}willUpdate(t){if(!this.hasUpdated||t.has("messageOverrides")||t.has("messages")){let e=this.messages._original??this.messages;this._messageOverrides={...this.messageOverrides,collapse:this.messageOverrides?.collapse??e.collapse,expand:this.messageOverrides?.expand??e.expand}}}connectedCallback(){Y(this.el.ownerDocument),super.connectedCallback(),this._syncPopupResizeObserver()}loaded(){this.manager.onLifecycle(()=>[p(()=>[this.viewModel?.view?.widthBreakpoint,this._effectiveDockEnabled,this._direction],()=>this._handleDockIcon(),{initial:!0}),p(()=>[this._effectiveDockEnabled,this.messages?.undock,this.messages?.dock],()=>this._handleDockEnabled(),{initial:!0}),p(()=>[this.dockOptions,this._featuresComponent.value,this.viewModel?.view?.focusRegionVisible],()=>{let{_dockAction:t,dockOptions:e}=this,i=this._featuresComponent.value?.headerActions;i?.remove(t),e.buttonEnabled&&!this.viewModel?.view?.focusRegionVisible&&i?.add(t)},{initial:!0}),p(()=>[this._pointerNode.value,this.alignment,this.currentAlignment,this._effectiveDockEnabled,this.dockOptions,this.screenLocation,this.viewModel?.active,this.viewModel?.location,this.viewModel?.view?.size],()=>this._positionContainer(),{initial:!0}),p(()=>this._mainContainerNode.value,t=>{this._syncPopupResizeObserver(t)},{initial:!0}),p(()=>this.viewModel?.view?.size,(t,e)=>this._updateDockEnabledForViewSize(t,e)),p(()=>this.viewModel?.view?.ready,()=>this._setDockEnabledForViewSize(this.dockOptions),{initial:!0}),p(()=>this.view?.map,t=>{this.viewModel.map=t},{initial:!0}),p(()=>this.screenLocation,(t,e)=>this._autoClose(t,e)),p(()=>[this.active,this._containerNode.value,this._effectiveDockEnabled,this.topLayerDisabled],()=>this._togglePopover(),{initial:!0})])}disconnectedCallback(){super.disconnectedCallback(),this._popupResizeObserver.disconnect()}_togglePopover(){this._containerNode.value?.togglePopover(this.active&&!this._effectiveDockEnabled&&!this.topLayerDisabled)}_syncPopupResizeObserver(t=this._mainContainerNode.value){this._popupResizeObserver.disconnect(),t&&this._popupResizeObserver.observe(t)}_handleClose(t){t.stopPropagation(),this.arcgisClose.emit()}_autoClose(t,e){this.autoCloseEnabled&&t!=null&&e!=null&&(this.open=!1)}_handleArcgisPropertyChange(t){t.detail.name==="collapsed"&&(this.collapsed=t.target.collapsed)}_handleArcgisTriggerAction(t){t.stopPropagation(),t.detail.action===this._dockAction&&(this.dockEnabled=!this.dockEnabled),this.arcgisTriggerAction.emit({action:t.detail.action})}_isOutsideView(t,e){let{popupHeight:i,popupWidth:o,screenLocation:n,side:a,view:s}=t;if(Number.isNaN(o)||Number.isNaN(i)||!s||!n)return!1;let l=e?Number.parseFloat(e.getPropertyValue(`--arcgis-internal-popup-overlay-space-${a}`)):0;switch(a){case"right":return n.x+o/2>s.width-l;case"left":return n.x-o/2<l;case"top":return n.y-i<l;case"bottom":return n.y+i>s.height-l}}_getPointerSize(){let{_pointerNode:t}=this,e=t.value?window.getComputedStyle(t.value):null,i=_(e?.height),o=_(e?.width);return Math.hypot(i,o)}_getHeadingText(){let t=this.heading??"";return this._headingText.html!==t&&(this._headingText={html:t,text:I(t)}),this._headingText.text}_calculateAutoAlignment(t){if(t!=="auto")return t;let{_mainContainerNode:e,_popupRect:i,viewModel:o}=this,{view:n}=o,{screenLocation:a}=this;if(a==null||!n||!i||!e.value)return"top-center";let s=window.getComputedStyle(e.value),l=_(s.maxHeight),r=_(s.height),d=this._getPointerSize(),{height:c,width:y}=i,T=y+d,m={popupHeight:Math.max(c,l,r)+d,popupWidth:T,screenLocation:a,view:n},D=this._containerNode.value,f=D?window.getComputedStyle(D):null,V=this._isOutsideView({...m,side:"right"},f),R=this._isOutsideView({...m,side:"left"},f),x=this._isOutsideView({...m,side:"top"},f),H=this._isOutsideView({...m,side:"bottom"},f);return R?x?"bottom-right":"top-right":V?x?"bottom-left":"top-left":x?H?"top-center":"bottom-center":"top-center"}_callCurrentAlignment(t){return typeof t=="function"?t.call(this):t}_getCurrentAlignment(){return this._effectiveDockEnabled||!this.active||!this._mainContainerNode.value?null:this._calculateAutoAlignment(this._callCurrentAlignment(this.alignment))}_callDockPosition(t){return typeof t=="function"?t.call(this):t}_getDockPosition(){return this._calculateAutoDockPosition(this._callDockPosition(this.dockOptions?.position))}_getCurrentDockPosition(){return this._effectiveDockEnabled&&this.active?this._getDockPosition():null}_calculateAutoDockPosition(t){if(t!=="auto")return t;let e=this.viewModel?.view,i="top-end";if(!e)return i;let{breakpoints:o}=e;return o?.xsmall&&e.width<=o.xsmall?"bottom-center":i}_getDockIcon(){let t=this._getDockPosition(),{_direction:e}=this;if(this._effectiveDockEnabled)return"minimize";switch(t){case"top-left":case"bottom-left":return"dock-left";case"top-center":return"maximize";case"bottom-center":return"dock-bottom";case"top-right":case"bottom-right":return"dock-right";case"top-start":case"bottom-start":return e==="rtl"?"dock-right":"dock-left";default:return e==="rtl"?"dock-left":"dock-right"}}_handleDockIcon(){this._dockAction.icon=this._getDockIcon()}_handleDockEnabled(){this._dockAction.title=this._effectiveDockEnabled?this.messages?.undock:this.messages?.dock}_calculateAlignmentPosition(t,e,i,o){if(t<0||e<0||!i||!o||t>i.width||e>i.height)return;let{topLayerDisabled:n}=this,a=n?t:t+i.x,s=n?e:e+i.y,{_direction:l,currentAlignment:r}=this,d=this._getPointerSize(),c=d/2;if(r==="top-left"||r==="top-start"&&l==="ltr"||r==="top-end"&&l==="rtl")return{top:s-(o.height+c),left:a-o.width-c};if(r==="top-center")return{top:s-(o.height+d),left:a-o.width/2};if(r==="top-right"||r==="top-end"&&l==="ltr"||r==="top-start"&&l==="rtl")return{top:s-(o.height+c),left:a+c};if(r==="bottom-left"||r==="bottom-start"&&l==="ltr"||r==="bottom-end"&&l==="rtl")return{top:s+c,left:a-o.width-c};if(r==="bottom-center")return{top:s+d,left:a-o.width/2};if(r==="bottom-right"||r==="bottom-end"&&l==="ltr"||r==="bottom-start"&&l==="rtl")return{top:s+c,left:a+c}}_getPositionStyleValue(t){return t!=null?`${t}px`:"auto"}_calculatePositionStyle(){if(this._effectiveDockEnabled)return;let{screenLocation:t}=this;if(t==null)return;let e=this.view?.container?.getBoundingClientRect(),i=this._mainContainerNode.value?.getBoundingClientRect();this._popupRect=i;let o=this._calculateAlignmentPosition(t.x,t.y,e,i);if(o)return`inset: ${this._getPositionStyleValue(o.top)} ${this._getPositionStyleValue(o.right)} ${this._getPositionStyleValue(o.bottom)} ${this._getPositionStyleValue(o.left)};`}_dockingThresholdCrossed(t,e,i){let[o,n]=t,[a,s]=e,{width:l=0,height:r=0}=i??{};return o<=l&&a>l||o>l&&a<=l||n<=r&&s>r||n>r&&s<=r}_updateDockEnabledForViewSize(t,e){if(!t||!e||!this.viewModel?.view?.ready)return;let{dockOptions:i}=this,o=i.breakpoint;typeof o=="object"&&this._dockingThresholdCrossed(t,e,o)&&this._setDockEnabledForViewSize(i)}_shouldDockAtCurrentViewSize(t){let e=t.breakpoint,i=this.viewModel?.view?.ui;if(!i)return!1;let{width:o,height:n}=i;if(Number.isNaN(o)||Number.isNaN(n)||typeof e!="object")return!1;let a=typeof e.width=="number"&&o<=(e.width??0),s=typeof e.height=="number"&&n<=(e.height??0);return a||s}_setDockEnabledForViewSize(t){this.viewModel?.view?.ready&&typeof t.breakpoint=="object"&&(this.dockEnabled=this._shouldDockAtCurrentViewSize(t))}render(){let{_direction:t,_effectiveDockEnabled:e,currentAlignment:i,currentDockPosition:o,positionStyle:n}=this,{active:a,view:s}=this.viewModel,l=a&&e,r=a&&!e,d=s?.widthBreakpoint,c=s?.heightBreakpoint,y={"aligned-top-center":i==="top-center","aligned-bottom-center":i==="bottom-center","aligned-top-left":i==="top-left"||i==="top-start"&&t==="ltr"||i==="top-end"&&t==="rtl","aligned-bottom-left":i==="bottom-left"||i==="bottom-start"&&t==="ltr"||i==="bottom-end"&&t==="rtl","aligned-top-right":i==="top-right"||i==="top-end"&&t==="ltr"||i==="top-start"&&t==="rtl","aligned-bottom-right":i==="bottom-right"||i==="bottom-end"&&t==="ltr"||i==="bottom-start"&&t==="rtl","is-docked":l,shadow:r,"is-rtl":this._direction==="rtl","is-docked-top-start":o==="top-start","is-docked-top-end":o==="top-end","is-docked-top-left":o==="top-left","is-docked-top-center":o==="top-center","is-docked-top-right":o==="top-right","is-docked-bottom-left":o==="bottom-left","is-docked-bottom-center":o==="bottom-center","is-docked-bottom-right":o==="bottom-right","is-docked-bottom-start":o==="bottom-start","is-docked-bottom-end":o==="bottom-end","is-xl-width-breakpoint":d==="xlarge","is-lg-width-breakpoint":d==="large","is-md-width-breakpoint":d==="medium","is-sm-width-breakpoint":d==="small","is-xs-width-breakpoint":d==="xsmall","is-xl-height-breakpoint":c==="xlarge","is-lg-height-breakpoint":c==="large","is-md-height-breakpoint":c==="medium","is-sm-height-breakpoint":c==="small","is-xs-height-breakpoint":c==="xsmall"};return v`<div style=${E(n)} class=${k(w("root",y,{hidden:!a||!n&&!e}))} .ariaHidden=${!a} .ariaLabel=${this._getHeadingText()} popover=manual ${u(this._containerNode)}>${this._renderMainContainer()}${this._renderPointer()}</div>`}_renderPointer(){return!this._effectiveDockEnabled||!this.active?v`<div class="pointer" role=presentation><div class=${k(w("pointer-direction","shadow"))} ${u(this._pointerNode)}></div></div>`:null}_renderMainContainer(){let t={shadow:this._effectiveDockEnabled};return v`<div class=${k(w("main-container",t))} ${u(this._mainContainerNode)}><arcgis-features-next .collapsed=${this.collapsed} .autoDestroyDisabled=${this.autoDestroyDisabled} .featureNavigationTop=${this._featureNavigationTop} .focusTrapEnabled=${!this.focusTrapDisabled} .headingLevel=${this.headingLevel} .hideActionBar=${this.hideActionBar} .hideCloseButton=${this.hideCloseButton} .hideFeatureListLayerTitle=${this.hideFeatureListLayerTitle} .hideFeatureMenuHeading=${this.hideFeatureMenuHeading} .hideFeatureNavigation=${this.hideFeatureNavigation} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideHeading=${this.hideHeading} .hideSpinner=${this.hideSpinner} @arcgisPropertyChange=${this._handleArcgisPropertyChange} @arcgisTriggerAction=${this._handleArcgisTriggerAction} @arcgisClose=${this._handleClose} .messageOverrides=${this._messageOverrides} .referenceElement=${this.referenceElement} .responsiveActionsEnabled=${!0} .showCollapseButton=${!this.hideCollapseButton} .viewModel=${this.viewModel} ${u(this._featuresComponent)}><slot name=actions-start slot=actions-start></slot><slot name=actions-end slot=actions-end></slot></arcgis-features-next></div>`}};A("arcgis-popup",C);return C},"popup/FeaturesModel","applications/Components/stringUtils","core/reactiveUtils","support/actions/ActionButton",a,c,d,e,f,h)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import l from"./LZUAJU6O.js";import{a as $,b as S,d as h,g as d,j as L,k as R}from"./FXUZU52U.js";import{a as u}from"./6J3KSMFG.js";import j from"./SKV3CQSZ.js";import"./WJQUE4DR.js";import i from"./ZRT4RJ62.js";import{a as U}from"./SAI7K4OO.js";import{a as p}from"./L5IRXOCJ.js";import e from"./3VFPLRD3.js";import c from"./E3RBRDUV.js";import{h as z}from"./FY7P5YLX.js";import"./IRDDLVT2.js";import a from"./TJHVEY7T.js";import{a as k}from"./LXME6MU5.js";import{R as v,T as b,X as x,_ as y,a as w,b as g,x as f}from"./IW3P4TGM.js";import"./TAVTDQ6S.js";export default $arcgis.t(([j,{isAboveGeodesicDistanceThreshold:B},{property:l,subclass:C},{watch:E},,,,M,{e:D},O])=>{var P=w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-space-2xl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-space-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-space-xs);display:flex}:host{width:var(--arcgis-internal-panel-width, 300px)}.root{min-width:var(--arcgis-internal-panel-min-width);overflow:var(--arcgis-internal-panel-overflow, visible);height:fit-content}`,A=Object.defineProperty,T=Object.getOwnPropertyDescriptor,a=(t,i,e,o)=>{for(var r=o>1?void 0:o?T(i,e):i,s=t.length-1,c;s>=0;s--)(c=t[s])&&(r=(o?c(i,e,r):c(r))||r);return o&&r&&A(i,e,r),r},n=class extends O{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Direct Line Measurement 3D component is only supported in 3D views."}initialize(){this.addHandles(E(()=>({analysis:this.analysis,unit:this._userUnit}),({analysis:t,unit:i})=>{i&&(t.unit=i)},{sync:!0,initial:!0}))}get state(){let{analysis:t,disabled:i,operationState:e,ready:o,supported:r}=this,{valid:s}=t;return $({supported:r,disabled:i,ready:o,operationState:e,valid:s})}get displayState(){return S(this.state,!!this.analysis.startPoint)}get measurement(){let t=this.analysisView?.result,i=t?.mode??"euclidean";if(!this.analysis.valid)return{mode:i,directDistance:d(void 0),horizontalDistance:d(void 0),verticalDistance:d(void 0)};let e=t?.directDistance,o=e!=null&&B(e);return{mode:i,directDistance:d(o?void 0:e),horizontalDistance:d(t?.horizontalDistance),verticalDistance:d(t?.verticalDistance)}}get unitOptions(){return L(this._userUnitOptions,h,h)}set unitOptions(t){this._userUnitOptions=t}get unit(){return R({userUnit:this._userUnit,analysisUnit:this.analysis.unit,options:this.unitOptions,defaultUnit:this.defaultMeasurementSystem,viewUnit:this.view?.options.displayUnits.length})}set unit(t){this._userUnit=t}get canResetUnit(){return this._userUnit!=null||this.analysis.unit!=null}resetUnit(){this._userUnit=void 0,this.analysis.unit=null}async place(t){await this.analysisView?.place(t)}clearAnalysis(){this.analysis.startPoint=null,this.analysis.endPoint=null}constructAnalysis(){return new j}};a([l({readOnly:!0})],n.prototype,"state",1);a([l({readOnly:!0})],n.prototype,"displayState",1);a([l({readOnly:!0})],n.prototype,"measurement",1);a([l()],n.prototype,"unitOptions",1);a([l()],n.prototype,"_userUnitOptions",2);a([l()],n.prototype,"unit",1);a([l()],n.prototype,"_userUnit",2);a([l({readOnly:!0})],n.prototype,"canResetUnit",1);n=a([C("components.direct-line-measurement-3d.DirectLineMeasurement3dViewModel")],n);var Z=M(n),m=class extends v{constructor(){super(...arguments),this.viewModel=Z(this),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.hideStartButton=!1,this.hideResetUnitsButton=!1,this.hideUnitSelect=!1,this.hideVisualization=this.viewModel.hideVisualization,this.icon="measure-line",this.interactionDisabled=this.viewModel.interactionDisabled,this.messages=U({name:"directline-measurement-3d",blocking:!0}),this.state=this.viewModel.state,this.unit=this.viewModel.unit,this.unitOptions=this.viewModel.unitOptions,this.arcgisPropertyChange=z()("analysis","interactionDisabled","state"),this.arcgisReady=f()}static{this.properties={view:0,analysis:0,autoDestroyDisabled:5,hideStartButton:5,hideResetUnitsButton:5,hideUnitSelect:5,hideVisualization:5,icon:3,interactionDisabled:5,label:1,messageOverrides:0,messages:0,referenceElement:1,state:32,unit:1,unitOptions:0}}static{this.styles=P}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){D(this.viewModel.start())}render(){let{hideResetUnitsButton:i,messages:e,unit:o,unitOptions:r,viewModel:s}=this,{measurement:c,state:_}=s;return g`<div aria-label=${e.componentLabel??x} class=${b(k("root",p.widget,p.panel))} role=presentation><arcgis-measurement-content .state=${s.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[{title:e.direct,measurement:c.directDistance},{title:e.horizontal,measurement:c.horizontalDistance},{title:e.vertical,measurement:c.verticalDistance}]}>${u({hidden:this.hideUnitSelect,children:g`<arcgis-unit-select slot=settings .options=${r} .selectLabel=${e.unit} .value=${o} .canReset=${!i&&s.canResetUnit} .resetLabel=${e.reset} @arcgisInternalUnitReset=${()=>s.resetUnit()} @arcgisUnitSelectChange=${V=>{this.unit=V.detail}}></arcgis-unit-select>`})}${u({hidden:this.hideStartButton,children:g`<calcite-button slot=actions .disabled=${_==="disabled"||_==="unsupported"||this.interactionDisabled} @click=${this.start}>${e.newMeasurement}</calcite-button>`})}</arcgis-measurement-content></div>`}};y("arcgis-direct-line-measurement-3d",m);return m},"analysis/DirectLineMeasurementAnalysis","applications/Components/analysisUtils","core/accessorSupport/decorators","core/reactiveUtils",a,c,e,i,j,l)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{R as n,_ as o,a as l,b as a}from"./IW3P4TGM.js";import"./TAVTDQ6S.js";var g=l`:host{--arcgis-internal-legend-gap: var(--calcite-space-2xs);--arcgis-internal-legend-group-gap: var(--calcite-space-md);display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-gap)}.group{display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-gap)}.group+.group,.group+arcgis-elevation-profile-legend-item,arcgis-elevation-profile-legend-item+.group{margin-block-start:calc(var(--arcgis-internal-legend-group-gap) - var(--arcgis-internal-legend-gap))}.group-title{color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-medium);text-align:start}`,s=class extends n{constructor(){super(...arguments),this._expandedLine=void 0,this.featureSelected=!1}static{this.properties={_expandedLine:16,effectiveDisplayUnits:0,featureSelected:5,messages:0,profiles:0,results:0}}static{this.styles=g}async destroy(){await this.manager.destroy()}_onToggleExpand(e){let t=e.detail;this._expandedLine=t===this._expandedLine?void 0:t}render(){let e=this.profiles?.toArray()??[],t=this.results??[],r=new Map(t.map(i=>[i.profile.id,i]));return r.size===0?a`<div></div>`:e?.map(i=>i.type==="group"?this._renderGroup(i,r):this._renderProfile(i,r))}_renderGroup(e,t){return a`<div class="group">${e.title?a`<div class="group-title">${e.title}</div>`:void 0}${e.profiles.toArray().map(r=>this._renderProfile(r,t))}</div>`}_renderProfile(e,t){return a`<arcgis-elevation-profile-legend-item .effectiveDisplayUnits=${this.effectiveDisplayUnits} .expanded=${e===this._expandedLine} .featureSelected=${this.featureSelected} .hideCheckbox=${(this.results?.length??0)<=1} .messages=${this.messages} @arcgisExpandedToggle=${this._onToggleExpand} .result=${t.get(e.id)}></arcgis-elevation-profile-legend-item>`}};o("arcgis-elevation-profile-legend",s);export{s as ArcgisElevationProfileLegend};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as P}from"./TMTFZSJS.js";import{a as K,e as L,f as E,g as C,h as A,i as ue,j as g,k as me}from"./IM6IDWYR.js";import{a as Z}from"./FH3WFF5O.js";import{a as J}from"./XQRLK3FO.js";import{a as y}from"./6J3KSMFG.js";import c from"./SKV3CQSZ.js";import"./WJQUE4DR.js";import"./NN4HL3RN.js";import{a as he}from"./SAI7K4OO.js";import"./L5IRXOCJ.js";import b from"./E3RBRDUV.js";import"./FY7P5YLX.js";import"./IRDDLVT2.js";import a from"./TJHVEY7T.js";import"./LXME6MU5.js";import{P as B,Q as G,R as ae,U as V,X as U,_ as oe,a as ne,b as m,x as q}from"./IW3P4TGM.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:pe,when:Me,whenOnce:Ue},{getZonedDateTimeParts:O,createZonedDate:se,formatCalendarDate:Q},Se,N,Pe,{createTrackingTarget:Ze,runTracked:fe,signal:Le},,{a:ge},{e:le,f:ce,g:de}])=>{function De(s,e){return(s%e+e)%e}var ee=class{#t;#d;#h=Ze(()=>{this.#i()});constructor(e){this.#d=e;let t;fe(this.#h,()=>{t=e()}),this.#t=Le(t)}#i(){let e=this.#t.value;fe(this.#h,()=>{this.#t.value=this.#d(e)})}mutate(e){this.#t.value=e}get value(){return this.#t.value}};function W(s){return new ee(s)}var F=Math.PI,p=Math.sin,k=Math.cos,Ee=Math.asin,Ae=Math.acos,S=F/180,Te=1e3*60*60*24,ke=2440588,Ce=2451545;function Ne(s){return s.valueOf()/Te-.5+ke}function I(s){return new Date((s+.5-ke)*Te)}function Ie(s){return Ne(s)-Ce}var _e=S*23.4397;function He(s,e){return Ee(p(e)*k(_e)+k(e)*p(_e)*p(s))}function Ye(s){return S*(357.5291+.98560028*s)}function Fe(s){return S*(1.9148*p(s)+.02*p(2*s)+3e-4*p(3*s))}function Re(s,e){var t=S*102.9372;return s+e+t+F}var D={};D.PolarException={NORMAL:0,MIDNIGHT_SUN:1,POLAR_NIGHT:2};var X=[[-.83,"sunrise","sunset"]],$e=9e-4;function je(s,e){return Math.round(s-$e-e/(2*F))}function be(s,e,t){return $e+(s+e)/(2*F)+t}function ve(s,e,t){return Ce+s+.0053*p(e)-.0069*p(2*t)}function qe(s,e,t){return Ae((p(s)-p(e)*p(t))/(k(e)*k(t)))}D.getTimes=function(s,e,t){var i=S*-t,r=S*e,n=Ie(s),a=je(n,i),l=be(0,i,a),o=Ye(l),d=Fe(o),c=Re(o,d),h=He(c,0),u=ve(l,o,c);function v(j){var M=qe(j,r,h),ze=be(M,i,a);return ve(ze,o,c)}function x(j){var M=(p(j)-p(r)*p(h))/(k(r)*k(h));return M<-1?D.PolarException.MIDNIGHT_SUN:M>1?D.PolarException.POLAR_NIGHT:D.PolarException.NORMAL}var _={solarNoon:I(u),nadir:I(u-.5),polarException:D.PolarException.NORMAL},b,f,z,R,re;for(b=0,f=X.length;b<f;b+=1)z=X[b],R=v(z[0]*S),re=u-(R-u),_[z[1]]=I(re),_[z[2]]=I(R);return _.polarException=x(X[0][0]*S),_};var Be={spring:{dayOfMonth:20,month:2},summer:{dayOfMonth:21,month:5},fall:{dayOfMonth:23,month:8},winter:{dayOfMonth:21,month:11}},te=["spring","summer","fall","winter"];function $(s,e,t){let i=Ke(e,t),{dayOfMonth:r,month:n}=Be[i],a=new Date(0);return a.setUTCFullYear(s,n,r),a}function Ge(s,e,t){return $(s,e,t).toISOString().slice(0,10)}function Ve(s,e){let t=Je(s);return e==="northern"?t:Oe(t)}function Je(s){let e=s.getTime(),t=s.getUTCFullYear(),i=$(t,"spring","northern").getTime(),r=$(t,"summer","northern").getTime(),n=$(t,"fall","northern").getTime(),a=$(t,"winter","northern").getTime();return e>=i&&e<r?"spring":e>=r&&e<n?"summer":e>=n&&e<a?"fall":"winter"}function Ke(s,e){return e==="northern"?s:Oe(s)}function we(s){return s>=0?"northern":"southern"}function Oe(s){let e=te.indexOf(s);return te[(e+2)%4]}var Qe=1440,We=864e5;function T({hour:s,minute:e}){return s*60+e}function Xe(s){return{year:s.getUTCFullYear(),month:s.getUTCMonth()+1,day:s.getUTCDate()}}function et(s,e,t){let i=O(s,t);if(!i)return s;let r=new Date(s.getTime()+e),n=O(r,t);return!n||n.year===i.year&&n.month===i.month&&n.day===i.day?r:se(i,T(n),t)??r}function tt(s,e){let t=O(s,e);if(!t)return s;let i=t.month%12+1,r=t.year+(i===1?1:0),n=new Date(Date.UTC(r,i,0)).getUTCDate();return se({year:r,month:i,day:Math.min(t.day,n)},T(t),e)??s}function it(s,e,t,i){let r=D.getTimes(s,e,t),n=r.sunrise,a=r.sunset,l=E(s,i),o=E(n,i),d=E(a,i);if(l.getUTCDate()!==o.getUTCDate()||l.getUTCDate()!==d.getUTCDate()){let c=l.getTime()-o.getTime()>0?1:-1;n.setUTCDate(n.getUTCDate()+c),a.setUTCDate(a.getUTCDate()+c)}return{sunrise:n,sunset:a}}var st=100,rt=1e3,w=12e5,H=72e5;function xe(s,e){return De(s+e,24)}function nt({mode:s,lighting:e,getPlaySpeed:t,getNextDate:i,onProgress:r,beforeProgress:n}){let a=-1;function l(o=Date.now()){let d=e.date,c=Date.now()-(o??0);if(s==="day"){o=Date.now();let h=t()/st*c;if(h>0){let u=i?.(d,s,h);if(!u){u=new Date(d.getTime()+h);let x=e.displayUTCOffset??0,_=xe(u.getUTCHours(),x),b=xe(d.getUTCHours(),x);_<b&&(u=new Date(d.getTime()+h-We))}let v=e.clone();n?.(),e.date=u,r?.(v,e)}}else if(c>rt){o=Date.now();let h=i?.(d,s,0)??new Date(d.getTime());if(!i){let v=(d.getUTCMonth()+1)%12;h.setUTCMonth(v)}let u=e.clone();n?.(),e.date=h,r?.(u,e)}a=requestAnimationFrame(()=>l(o))}return l(),Z(()=>cancelAnimationFrame(a))}var Y=w/4;function at(s,e,t,i){let{day:r,night:n=r,twilight:a=r}=i,l=r*Y,o=n*Y,d=a*Y;if(s==null||e==null||Number.isNaN(s.getTime())&&Number.isNaN(e.getTime()))return l;let c=t.getTime(),h=s.getTime(),u=e.getTime(),v=h-H/2,x=h+H/2,_=u-H/3*2,b=u+H/3,f=l;return c>=v&&c<=x?c-v<=w?f=o-(c-v)/w*(o-d):x-c<=w/2?f=l-(x-c)/w*2*(l-d):f=d:c>=_&&c<=b?c-_<=w/2?f=l-(c-_)/w*2*(l-d):b-c<=w?f=o-(b-c)/w*(o-d):f=d:(c<h||c>u)&&(f=o),f}var ot=ne`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-surface-3);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-surface-3)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}:host{width:350px}.root{display:flex;flex-direction:column;overflow:visible;gap:var(--calcite-space-md);justify-content:space-between;padding:var(--arcgis-internal-padding);position:relative;calcite-label{--calcite-label-margin-bottom: 0}&.loading>*:not(calcite-scrim){opacity:0}}.unsupported{padding:0 var(--calcite-space-lg);animation:esri-fade-in .25s ease-in-out}.slider{margin-block-start:0rem}.time-configuration{--date-play-button-offset: 11px;--slider-play-button-offset: var(--calcite-space-md);display:grid;gap:var(--calcite-space-md);grid-template-columns:1fr min-content;.slider-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--slider-play-button-offset))}}.time-label{align-items:center;display:flex;gap:var(--calcite-space-sm);+.slider{margin-block:var(--calcite-space-sm)}}.timezone-input-container{grid-column:1;min-width:0;+span{grid-column:2}}.date-picker-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--date-play-button-offset))}}calcite-button{place-self:center}}`,lt={day:1,night:6,twilight:2/3},ie=class extends ae{constructor(){super(...arguments),this.messages=he({blocking:!0}),this.#d="none",this.#h=null,this.#o=!1,this.#e=!1,this.#p=B(),this.#T=B(),this.#$=200,this.#O=200,this.#f=!1,this.#m={},this.#l=W(e=>{let t=this._lighting,i=g(t)?t.displayUTCOffset:void 0,r=this.#_(t)?this.#n(t.date):void 0;return this.#e?e:r??i??e}),this.#r=W(e=>{let t=this._lighting;if(!g(t))return e;let i=t.date;if(this.#e)return e;if(L(i)){let{minutesSinceMidnight:r}=this.#y(i);return r}return e}),this.#s=W(e=>{let t=this._lighting,i=this.#_(t)?this.#y(t.date).localDate:ue(this._view,this.utcOffset);return this.#e?e:i??e}),this.#c=!1,this.#k="offset",this.view=ge(this),this.autoDestroyDisabled=!1,this.dateOrSeason="date",this.headingLevel=2,this.hideDatePicker=!1,this.hideHeader=!1,this.hidePlayButtons=!1,this.hideShadowsToggle=!1,this.hideSunLightingToggle=!1,this.hideTimezone=!1,this.icon="brightness",this.playSpeedMultiplier=1,this.timeSliderSteps=5,this.arcgisReady=q(),this.arcgisUserDateTimeChange=q()}static{this.properties={_playingState:16,_sunlightingDisabled:16,_directShadowsDisabled:16,localDateAsString:32,view:0,autoDestroyDisabled:5,currentSeason:1,dateOrSeason:3,dayPlaying:5,headingLevel:9,hideDatePicker:5,hideHeader:5,hidePlayButtons:5,hideShadowsToggle:5,hideSunLightingToggle:5,hideTimezone:5,icon:3,label:1,playSpeedMultiplier:9,referenceElement:1,timeSliderSteps:9,timeZoneMode:1,utcOffset:9,timeSliderPosition:9,localDate:1,yearPlaying:5}}static{this.styles=ot}get _view(){return this.view?.type==="3d"?this.view:void 0}#t;#d;#h;#i;#o;#e;#p;#T;#$;#O;#f;#m;get#U(){return this.#T?.value?.startTime}#l;#r;#s;get _lighting(){return this._view?.environment?.lighting}#c;#k;#g;get _playingState(){return this.#d}set _playingState(e){this.#d=e,this.#g?.remove(),e==="none"?this.#t?.remove():(this.#M(e),this.#w())}get _sunlightingDisabled(){return!g(this._lighting)}set _sunlightingDisabled(e){this.#u("sunlightingDisabled",e);let t=this._view?.environment;if(t==null)return;let i=t.lighting,r=this.#h;this.#h=i;let n={directShadowsEnabled:i.directShadowsEnabled,glow:i.glow,globalIllumination:i.globalIllumination};g(i)&&(n.cameraTrackingEnabled=i.cameraTrackingEnabled);let a=e?"virtual":"sun",l;r?.type===a?l=r:l=e?new Pe:this.#Z(),l.set(n),t.lighting=l,e||(this.#a(),this.#p.value&&(this.#p.value.open=!1))}get _directShadowsDisabled(){return!this._lighting?.directShadowsEnabled}set _directShadowsDisabled(e){this.#u("directShadowsDisabled",e),this._lighting&&(this._lighting.directShadowsEnabled=!e)}get localDateAsString(){return this.#s.value??void 0}get currentSeason(){let e=this._view?.camera?.position?.latitude??0,t=we(e);return Ve(this.localDate,t)}set currentSeason(e){this.#a();let t=this._view?.camera?.position?.latitude??0,i=we(t);this.localDate=Ge(this.localDate.getUTCFullYear(),e,i),this.#w()}get dayPlaying(){return this._playingState==="day"}set dayPlaying(e){this._playingState=e?"day":"none"}get timeZoneMode(){return this.#k}set timeZoneMode(e){this.#c||(this.#k=e)}get utcOffset(){return this.#l.value}set utcOffset(e){if(this.timeZoneMode==="region"){this.#D();return}this.#e=!0,this.#l.mutate(e),!this.#u("utcOffset",e)&&this.#b(!1)}get timeSliderPosition(){return this.#r.value}set timeSliderPosition(e){this.#e=!0,this.#r.mutate(De(e??0,Qe)),!this.#u("timeSliderPosition",e)&&this.#b(!0)}get localDate(){return this.#s.value!=null?new Date(this.#s.value):new Date}set localDate(e){if(typeof e=="string"&&/^\d{4}-\d{2}-\d{2}$/u.test(e)){if(this.#e=!0,this.#s.mutate(e),this.#u("localDate",e))return;this.#b(!0);return}let t=new Date(e);if(L(t)){this.#e=!0,t.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate());let i=t.toISOString().slice(0,10);if(this.#s.mutate(i),this.#u("localDate",i))return;this.#b(!0)}}get yearPlaying(){return this._playingState==="year"}set yearPlaying(e){this._playingState=e?"year":"none"}async destroy(){await this.manager.destroy()}async load(){this.manager.onLifecycle(()=>[pe(()=>{let e=this._view?.camera?.position;return e?P(e):void 0},(e,t)=>{this.#Y(e,t)},{sync:!0,initial:!0}),pe(()=>{let e=this._lighting;return[this._view?.timeZone,e,g(e)?e.date:void 0]},(e,t)=>{this._playingState==="day"&&t&&e[0]===t[0]&&e[1]===t[1]||this.#D()},{sync:!0,initial:!0}),Me(()=>!g(this._lighting),()=>{this.#a()}),Se.onLocaleChange(()=>{this.requestUpdate()})]),this.manager.onDisconnected(()=>{this.#t?.remove(),this.#i?.remove(),this.#g?.remove()})}willUpdate(e){if(super.willUpdate(e),!!this.#c&&this.timeZoneMode==="offset"&&g(this._lighting)&&e.has("utcOffset")&&!e.has("localDate")&&!e.has("timeSliderPosition")){let t=this.utcOffset??0,{minutesSinceMidnight:i,localDate:r}=C(this._lighting.date,t);this.#r.mutate(i),this.#s.mutate(r)}}async loaded(){let e=new AbortController;this.manager.onDisconnected(()=>({remove:()=>{e.abort()}})),await le(Ue(()=>this._view?.ready,{signal:e.signal}).then(()=>{let t=this._lighting,i=this._view?.camera?.position;if(this.timeZoneMode==="offset"&&this.#m.utcOffset==null&&g(t)&&t.displayUTCOffset==null&&i){let n=P(i);this.#v(n,t)}this.#c=!0,this.#_(t)&&this.#D(t),this.#P(),g(this._lighting)||(this.timeZoneMode==="region"?this.#F():this.#R());let r=this._playingState;r!=="none"&&this.#t==null&&this.#M(r)}))}#u(e,t){return this.#c||this.#f?!1:(this.#m[e]=t,!0)}#P(){let{utcOffset:e,timeSliderPosition:t,localDate:i,directShadowsDisabled:r,sunlightingDisabled:n}=this.#m;if(this.#f=!0,this.timeZoneMode==="offset"&&e!=null)if(t==null&&i==null){let a=this._lighting;g(a)?(a.displayUTCOffset=e,this.#v(e,a)):this.#l.mutate(e)}else this.utcOffset=e;t!=null&&(this.timeSliderPosition=t),i&&(this.localDate=i),r!=null&&(this._directShadowsDisabled=r),n!=null&&(this._sunlightingDisabled=n),this.#m={},this.#f=!1,this.#i||(this.#e=!1)}#_(e){return this.timeZoneMode==="region"&&g(e)&&L(e.date)}#Z(){return this.timeZoneMode==="region"?this.#L():this.#E()}#L(){let e=new Date,t=this.#C(e,0)??e;return new N({date:t,displayUTCOffset:this.#n(t)})}#C(e,t){let i=this.#x,r=O(e,i);if(!r)return null;let n=this.#s.value==null?r:Xe(this.localDate),a=this.timeSliderPosition??t??T(r);return se(n,a,i)}#E(){let e=A(this.localDateAsString??this.localDate,this.timeSliderPosition??0,this.utcOffset??0);return new N({date:e,displayUTCOffset:this.utcOffset})}#b(e){if(this.#e=!0,this.requestUpdate(),this.#o||=e,this.#i)return;let t=ce(()=>{let i=this._lighting;g(i)&&(this.timeZoneMode==="region"?this.#A(i):this.#N(i)),this.#i?.remove(),this.#D()},{timeout:this.#$});this.#i=Z(()=>{de(t),this.#i=void 0,this.#o=!1,this.#e=!1})}#A(e){if(!this.#o){e.displayUTCOffset=this.#n(e.date);return}let t=this.#C(e.date,0);t&&(e.date=t,e.displayUTCOffset=this.#n(t))}#N(e){let t=this.utcOffset??0;if(!this.#o){e.displayUTCOffset=t;return}e.date=A(this.localDate,this.timeSliderPosition??0,t),e.displayUTCOffset=t}#I(e){if(!this.#o){e.displayUTCOffset=this.#n(e.date);return}let t=this.#C(e.date);t&&(e.date=t,e.displayUTCOffset=this.#n(t)),this.#i?.remove()}#H(e){let t=this.utcOffset??e.displayUTCOffset??0;if(!this.#o){e.displayUTCOffset=t,this.#i?.remove();return}let i=C(e.date,t),r=this.localDateAsString??i.localDate,n=this.timeSliderPosition??i.minutesSinceMidnight;e.date=A(r,n,t),e.displayUTCOffset=t,this.#i?.remove()}#Y(e,t){let i=this._lighting;if(!(this.timeZoneMode==="region"||!this.#c||!g(i)||!i.cameraTrackingEnabled||e==null)){if(t==null&&i.displayUTCOffset==null){this.#v(e,i);return}i.displayUTCOffset!=null&&(i.displayUTCOffset=e),this.#v(e,i)}}#v(e,t){t.displayUTCOffset=e,this.#z(e,t.date)}#F(){let e=new N,t=this.#S(e.date);t&&(this.timeSliderPosition==null&&this.#r.mutate(T(t)),this.localDateAsString==null&&this.#s.mutate(Q(t)),this.#l.mutate(this.#n(e.date)),this.requestUpdate())}#R(){let e=this._view?.camera?.position,t=this.utcOffset??(e?P(e):0),i=new N({displayUTCOffset:t});this.#z(t,i.date,{fillMissingOnly:!0})}#z(e,t,{fillMissingOnly:i=!1}={}){let{minutesSinceMidnight:r,localDate:n}=C(t,e);(!i||this.utcOffset==null)&&this.#l.mutate(e),(!i||this.timeSliderPosition==null)&&this.#r.mutate(r),(!i||this.localDateAsString==null)&&this.#s.mutate(n),this.requestUpdate()}#w(){this.isConnected&&this.arcgisUserDateTimeChange.emit()}#a(){this._playingState="none"}#j(e){if(this.#g)return;let t=setTimeout(()=>{let i=e.date,{minutesSinceMidnight:r}=this.#y(i);this.#r.mutate(r),this.#g?.remove()},this.#O);this.#g=Z(()=>{clearTimeout(t),this.#g=void 0;let i=this._lighting;if(g(i)){let r=i.date,{minutesSinceMidnight:n}=this.#y(r);this.#r.mutate(n)}})}#M(e){this.#t?.remove();let t=this._view;if(t==null||this._sunlightingDisabled)return;let i=t.environment.lighting;if(!g(i))return;this.timeZoneMode==="region"?this.#I(i):this.#H(i);let r=0;this.#t=nt({mode:e,lighting:i,getNextDate:this.timeZoneMode==="region"?(n,a,l)=>a==="day"?et(n,l,this.#x):tt(n,this.#x):void 0,beforeProgress:()=>{r=this.#U??0},onProgress:(n,a)=>{this.timeZoneMode==="region"&&(a.displayUTCOffset=this.#n(a.date)),this.#r.mutate(r),this.#j(a)},getPlaySpeed:()=>{let n=this._view,a=this._view?.environment.lighting;if(n!=null&&g(a)){let l=n.camera.position.latitude??0,o=n.camera.position.longitude??0,d=this.timeZoneMode==="region"?this.#n(a.date):a.displayUTCOffset??0,{sunrise:c,sunset:h}=it(a.date,l,o,d);return at(c,h,a.date,lt)*this.playSpeedMultiplier}else return Y*this.playSpeedMultiplier}})}get#x(){return me(this._view?.timeZone??K)}#n(e){let t=this.#S(e);if(!t)throw new RangeError("Invalid date or time zone");return t.offsetMinutes/60}#y(e){let t=this.timeZoneMode==="region"?this.#S(e):null;return t?{localDate:Q(t),minutesSinceMidnight:T(t)}:C(e,this.utcOffset??0)}#S(e){return O(e,this.#x)}#D(e=this._lighting){if(!this.#c||!this.#_(e)||this.#e)return;let t=this.#S(e.date);if(!t)return;let i=this.#n(e.date);e.displayUTCOffset=i,this.#l.mutate(i),this.#s.mutate(Q(t)),this.#r.mutate(T(t)),this.requestUpdate()}#q({scale:e,disabled:t}){let{messages:i}=this;return m`<calcite-label .scale=${e} class="date-picker-container">${i.date}${ct({disabled:t,scale:e,date:this.localDateAsString,onDateChange:r=>{let n=r.currentTarget.value,a=Array.isArray(n)?n[0]:n;this.#a(),this.localDate=a,this.#w()}})}</calcite-label>${y({hidden:this.hidePlayButtons,children:ye({playing:this.yearPlaying,disabled:t,label:i.playYear,onClick:()=>{this._playingState==="year"?this._playingState="none":this._playingState="year"},scale:e})})}`}#B({scale:e,disabled:t}){let{messages:i}=this;return m`<calcite-label .scale=${e} class="date-picker-container">${i.season}${dt({scale:e,selectedSeason:this.currentSeason,disabled:t,messages:i,onSeasonChange:r=>{this.#a(),this.currentSeason=r.currentTarget.value}})}</calcite-label>`}render(){let{messages:e,dateOrSeason:t}=this,i=this._sunlightingDisabled,r="m";if(this._view?.type!=="3d")return J({class:"root",label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:m`<div class="unsupported"><p>${e.unsupported}</p></div>`});let n=(this.utcOffset??0)*60,a=this.view?.ready===!0,l=Array.isArray(this.timeSliderSteps)?this.timeSliderSteps.at(0):this.timeSliderSteps;return J({class:{root:!0,loading:!a},label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:m`${a?void 0:m`<calcite-scrim loading></calcite-scrim>`}<div class="time-configuration" style=${V({columnGap:this.hidePlayButtons?"0":void 0})}><calcite-label class="slider-container" .scale=${r}>${this.timeZoneMode==="region"?m`<span class="time-label">${e.timeSliderLabel}${y({hidden:this.hideTimezone,children:m`<arcgis-time-zone-chip .disabled=${i} .timeZone=${this._view?.timeZone??K} .visualScale=${r} @click=${o=>o.stopPropagation()} @arcgisInternalTimeZoneChange=${o=>{this._view&&(this._view.timeZone=o.detail)}}></arcgis-time-zone-chip>`})}</span>`:e.timeSliderLabel}<arcgis-time-of-day-slider class="slider" .disabled=${this._sunlightingDisabled} mode=single .startTime=${this.timeSliderPosition??0} .steps=${l} style=${V({gridArea:"slider"})} @arcgisTimeChange=${({currentTarget:o})=>{this.#a(),this.timeSliderPosition=o.startTime,this.#w()}} ${G(this.#T)}></arcgis-time-of-day-slider></calcite-label>${y({hidden:this.hidePlayButtons,children:ye({disabled:this._sunlightingDisabled,playing:this.dayPlaying,label:e.playDay,onClick:()=>{this._playingState==="day"?this.#a():this._playingState="day"},scale:r})})}${this.timeZoneMode==="offset"?y({hidden:this.hideTimezone,children:m`<calcite-label .scale=${r} class="timezone-input-container">${e.timezone}<calcite-input-time-zone data-testid=daylight-time-zone-input mode=offset overlay-positioning=fixed .scale=${r} .disabled=${this._sunlightingDisabled} .value=${`${n}`} .referenceDate=${this.localDateAsString} @calciteInputTimeZoneChange=${o=>{let d=+o.target.value;this.utcOffset=d/60,this.#a()}} ${G(this.#p)}></calcite-input-time-zone></calcite-label><span></span>`}):void 0}${y({hidden:this.hideDatePicker,children:t==="date"?this.#q({scale:r,disabled:i}):this.#B({scale:r,disabled:i})})}</div>${y({hidden:this.hideSunLightingToggle,children:ht({scale:r,messages:e.sunLightingToggle,sunlightingEnabled:!this._sunlightingDisabled,onSunLightingToggle:o=>{this._sunlightingDisabled=!o}})})}${y({hidden:this.hideShadowsToggle,children:gt({scale:r,messages:e.shadowsToggle,onShadowCheckboxChange:o=>{this._directShadowsDisabled=!o},shadowEnabled:!this._directShadowsDisabled})})}`})}};function ye({disabled:s,playing:e,onClick:t,label:i,scale:r="m"}){return m`<calcite-button appearance=solid .scale=${r} .disabled=${s} .iconStart=${e?"pause-f":"play-f"} .label=${i} @click=${t} round title=${i??U} type=button></calcite-button>`}function ct({disabled:s,date:e,onDateChange:t,scale:i}){return m`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${s} overlay-positioning=fixed placement=bottom .value=${e} .scale=${i} @calciteInputDatePickerChange=${t}></calcite-input-date-picker>`}function dt({messages:s,disabled:e,scale:t,selectedSeason:i,onSeasonChange:r}){return m`<calcite-select .disabled=${e} .label=${s.season} .scale=${t} .value=${i} @calciteSelectChange=${n=>{r(n)}}>${te.map(n=>m`<calcite-option .selected=${i===n} .value=${n}>${s[n]}</calcite-option>`)}</calcite-select>`}function ht({messages:s,sunlightingEnabled:e,onSunLightingToggle:t,scale:i}){return m`<calcite-label layout=inline .scale=${i} title=${s?.tooltip??U}><calcite-checkbox .scale=${i} .checked=${e} @calciteCheckboxChange=${r=>t(r.target.checked)}></calcite-checkbox>${s?.label}</calcite-label>`}function gt({messages:s,shadowEnabled:e,onShadowCheckboxChange:t,scale:i}){return m`<calcite-label layout=inline .scale=${i} title=${s?.tooltip??U}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${r=>t(r.target.checked)}></calcite-checkbox>${s.label}</calcite-label>`}oe("arcgis-daylight",ie);return ie},"core/reactiveUtils","core/timeUtils","intl","views/3d/environment/SunLighting","views/3d/environment/VirtualLighting","applications/Components/reactiveUtils",a,b,c)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{f as p,h as b}from"./FY7P5YLX.js";import"./IRDDLVT2.js";import"./LXME6MU5.js";import{Q as u,R as h,T as v,X as g,_ as w,a as d,b as s,x as m}from"./IW3P4TGM.js";import"./TAVTDQ6S.js";export default $arcgis.t(([n,{watch:f}])=>{var k=d`:host{background-color:var(--calcite-color-surface-2);block-size:var(--calcite-size-fixed-xxxl);color:var(--calcite-color-text-1);display:flex;flex:1 0 auto;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size-sm);inline-size:auto;--arcgis-internal-time-bar-slider-tick-gap: 100}.root{align-items:center;block-size:100%;display:flex;inline-size:100%}slot[name=max],slot[name=min]{display:flex}.slider{padding-inline:var(--calcite-spacing-xl);--arcgis-internal-slider-track-size: var(--calcite-size-px);--arcgis-slider-track-background-color: var(--calcite-color-border-1);--labels-container-width: 100%}.slider-container{flex:1 1 auto;min-inline-size:calc(var(--calcite-space-md) * 15)}.slider--has-ticks{margin-top:calc(var(--calcite-space-md) * -1)}.hidden,.max-date,.min-date{flex:0 0 auto}.hidden{inline-size:0}.popover{padding:var(--calcite-space-2xs) var(--calcite-space-xs) var(--calcite-space-xs)}.ticks-container{flex:1;position:relative;width:100%;arcgis-ticks,>slot::slotted(arcgis-ticks){inset:0;position:absolute;white-space:nowrap;--arcgis-internal-ticks-color: var(--calcite-color-text-1);--arcgis-ticks-font-weight: var(--calcite-font-weight-normal);--arcgis-ticks-label-width: auto;--arcgis-ticks-tick-color: var(--calcite-color-border-1);--arcgis-ticks-tick-transform: unset;--arcgis-ticks-tick-width: var(--calcite-size-px)}}.slider.slider--out-of-range{--arcgis-internal-slider-handle-color: var(--calcite-color-status-danger);--arcgis-internal-slider-track-range-background-color: var(--calcite-color-status-danger)}.lock-time-window{--arcgis-internal-time-bar-slider-border-margin: calc(var(--calcite-spacing-base) + 1px);border-image:linear-gradient(transparent var(--arcgis-internal-time-bar-slider-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) var(--arcgis-internal-time-bar-slider-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) calc(100% - var(--arcgis-internal-time-bar-slider-border-margin)),transparent var(--arcgis-internal-time-bar-slider-border-margin));border-image-slice:1}:dir(ltr){.lock-time-window{border-inline-end-style:solid;border-inline-end-width:var(--calcite-border-width-sm);margin-inline-end:var(--calcite-space-sm);padding-inline-end:var(--calcite-space-sm)}}:dir(rtl){.lock-time-window{border-inline-start-style:solid;border-inline-start-width:var(--calcite-border-width-sm);margin-inline-start:var(--calcite-space-sm);padding-inline-start:var(--calcite-space-sm)}}`,c=class extends h{constructor(){super(...arguments),this._direction=p(),this.#t=new ResizeObserver(([e])=>{this._sliderWidth=e.contentRect.width}),this.#i=100,this.#a=100,this.#s=(e,i)=>i==="value"?this.viewModel?.formatDateTime(new Date(e)):void 0,this.autoDestroyDisabled=!1,this.lockTimeWindow=!1,this.popoverDisplay="none",this.showLockTimeWindow=!1,this.showMax=!1,this.showMin=!1,this.showTicks=!1,this.arcgisPropertyChange=b()("activeValue","lockTimeWindow"),this.arcgisReady=m()}static{this.properties={_activeValue:16,_sliderFillPlacement:16,_sliderWidth:16,_timeExtentEpochValues:16,activeValue:32,autoDestroyDisabled:5,lockTimeWindow:5,messages:0,popoverDisplay:1,showLockTimeWindow:5,showMax:5,showMin:5,showTicks:5,viewModel:0}}static{this.styles=k}#t;#e;#i;#a;#s;get _sliderFillPlacement(){switch(this.viewModel?.mode){case"cumulative-from-end":return"end";case"cumulative-from-start":return"start";case"instant":return"none";default:return}}get _timeExtentEpochValues(){let{viewModel:e}=this;if(!e)return;let{fullTimeExtent:i}=e;if(!i)return;let{start:t,end:a}=i;if(!t||!a)return;let{timeExtent:r}=e;if(!r)switch(e.mode){case"cumulative-from-end":case"instant":return[t.getTime()];case"cumulative-from-start":return[a.getTime()];case"time-window":return[t.getTime(),a.getTime()]}let{start:o,end:l}=r;switch(e.mode){case"cumulative-from-end":case"instant":return o?o.getTime()<t.getTime()?[t.getTime()]:o.getTime()>a.getTime()?[a.getTime()]:[o.getTime()]:void 0;case"cumulative-from-start":return l?l.getTime()<t.getTime()?[t.getTime()]:l.getTime()>a.getTime()?[a.getTime()]:[l.getTime()]:void 0;case"time-window":return o&&l?[o.getTime(),l.getTime()]:void 0}}get activeValue(){switch(this.popoverDisplay){case"none":return;case"always":return this.viewModel?.timeExtent;case"auto":switch(this._activeValue){case void 0:return;case"all":return this.viewModel?.timeExtent;default:return new Date(this._activeValue)}}}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>f(()=>this.activeValue,(e,i)=>this.requestUpdate("activeValue",i)))}#c(){return e=>{if(e){this.#e=e,this.#t.observe(e);return}this.#e&&(this.#t.unobserve(this.#e),this.#e=void 0)}}#d(){let e=Number.parseInt(window.getComputedStyle(this.el).getPropertyValue("--arcgis-internal-time-bar-slider-tick-gap"),10);return Number.isFinite(e)&&e>0?e:this.#i}#m(e,i){let{viewModel:t}=this,{start:a,end:r}=e;if(!t||!a||!r)return;let o=(r.getTime()-a.getTime())/i;return t.tickFormats.find(({duration:l})=>l>this.#d()*o)??t.tickFormats.at(-1)}#u(){this.lockTimeWindow=!this.lockTimeWindow}#h(e){this._activeValue=e.target.activeValue}#v(e){let{viewModel:i}=this,t=i?.mode;t&&(i.timeExtent=this.#g(e.target.values,t),this._activeValue=e.target.activeValue)}#g([e,i],t){switch(t){case"cumulative-from-end":return new n({start:new Date(e),end:null});case"cumulative-from-start":return new n({start:null,end:new Date(e)});case"instant":return new n({start:new Date(e),end:new Date(e)});case"time-window":return new n({start:new Date(e),end:new Date(i??e)})}}#r(){let{messages:e,showLockTimeWindow:i,viewModel:t}=this;if(!e||!i||!t)return null;let a=this.lockTimeWindow?"lock":"unlock",r=this.lockTimeWindow?e.unlockTimeWindow:e.lockTimeWindow;return s`<calcite-action .active=${this.lockTimeWindow} class="lock-time-window" .disabled=${!t.interactive||t.mode!=="time-window"} .icon=${a} @click=${this.#u} .text=${r} title=${r??g}></calcite-action>`}#o(){let e=this.viewModel?.fullTimeExtent?.end;return this.showMax&&e?s`<slot name=max><arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} class="max-date" .date=${e} .viewModel=${this.viewModel}></arcgis-time-bar-date></slot>`:s`<div class="hidden"></div>`}#l(){let e=this.viewModel?.fullTimeExtent?.start;return this.showMin&&e?s`<slot name=min><arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} class="min-date" .date=${e} .viewModel=${this.viewModel}></arcgis-time-bar-date></slot>`:s`<div class="hidden"></div>`}#w(){return this.popoverDisplay!=="none"?s`<div class="popover" slot=popover><slot name=popover>${this.#p()}</slot></div>`:null}#p(){let{activeValue:e,messages:i,viewModel:t}=this;if(!e||!i||!t)return null;switch(t.mode){case"cumulative-from-end":case"instant":let a=t.timeExtent?.start;return a?s`<arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} .date=${a} .viewModel=${t}></arcgis-time-bar-date>`:null;case"cumulative-from-start":let r=t.timeExtent?.end;return r?s`<arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} .date=${r} .viewModel=${t}></arcgis-time-bar-date>`:null;case"time-window":return e instanceof Date?s`<arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} .date=${e} .viewModel=${t}></arcgis-time-bar-date>`:s`<arcgis-time-bar-extent .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${i} .viewModel=${t}></arcgis-time-bar-extent>`}}#n(){let{messages:e,viewModel:i}=this;if(!i?.fullTimeExtent?.start||!i?.fullTimeExtent?.end||!e||(i.tickFormat=this.#m(i.fullTimeExtent,this._sliderWidth??this.#a),!i.tickFormat))return null;let t=i.fullTimeExtent.start.getTime(),a=i.fullTimeExtent.end.getTime();return s`<div class="slider-container" ${u(this.#c())}><arcgis-slider allow-values-overlap .autoDestroyDisabled=${this.autoDestroyDisabled} class=${v({slider:!0,"slider--has-ticks":this.showTicks,"slider--out-of-range":i.isOutOfRange})} .disabled=${!i.interactive} .fillPlacement=${this._sliderFillPlacement} .labelFormatter=${this.#s} .max=${a} .min=${t} @arcgisActiveValueChange=${this.#h} @arcgisInput=${this.#v} .popoverLabel=${e.timeExtent} .popoverDisplay=${this.popoverDisplay==="none"?"auto":this.popoverDisplay} precision=0 .steps=${i.effectiveStopsEpoch} .values=${this._timeExtentEpochValues} .valuesDraggingDisabled=${this.lockTimeWindow}>${this.#w()}${this.#b(i,t,a)}</arcgis-slider></div>`}#b(e,i,t){return this.showTicks?s`<div slot=content-end class="ticks-container"><slot name=content-end><arcgis-ticks .autoDestroyDisabled=${this.autoDestroyDisabled} .labelFormatter=${e.tickFormatter} .max=${t} .min=${i} mode=value show-labels .values=${e.tickValues}></arcgis-ticks></slot></div>`:null}render(){return s`<div class="root">${this._direction==="ltr"?s`${this.#r()}${this.#l()}${this.#n()}${this.#o()}`:s`${this.#o()}${this.#n()}${this.#l()}${this.#r()}`}</div>`}};w("arcgis-time-bar-slider",c);return c},"time/TimeExtent","core/reactiveUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{P as r,X as a,b as i}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:s}])=>{var t=class extends r{constructor(){super(...arguments),this._showPrintAreaEnabled=!1}static{this.properties={_showPrintAreaEnabled:16,viewModel:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[s(()=>[this.viewModel.showPrintAreaEnabled],()=>{let{showPrintAreaEnabled:e}=this.viewModel;this._showPrintAreaEnabled=e},{initial:!0})])}render(){return i`<calcite-label layout=inline><calcite-switch .checked=${this._showPrintAreaEnabled} @calciteSwitchChange=${e=>{this.viewModel.showPrintAreaEnabled=!!e.currentTarget.checked}}></calcite-switch>${this.messages.printPreview}</calcite-label>`}};a("arcgis-print-preview-input",t);return t},"core/reactiveUtils")
2
+ import{R as r,_ as a,b as i}from"./IW3P4TGM.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:s}])=>{var t=class extends r{constructor(){super(...arguments),this._showPrintAreaEnabled=!1}static{this.properties={_showPrintAreaEnabled:16,viewModel:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[s(()=>[this.viewModel.showPrintAreaEnabled],()=>{let{showPrintAreaEnabled:e}=this.viewModel;this._showPrintAreaEnabled=e},{initial:!0})])}render(){return i`<calcite-label layout=inline><calcite-switch .checked=${this._showPrintAreaEnabled} @calciteSwitchChange=${e=>{this.viewModel.showPrintAreaEnabled=!!e.currentTarget.checked}}></calcite-switch>${this.messages.printPreview}</calcite-label>`}};a("arcgis-print-preview-input",t);return t},"core/reactiveUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{D as k,E as w,F as V,G as m,H as h,I as A,J as D,K as y,e as P}from"./3UMLR76Y.js";var b=(s,f,c)=>{let p=new Map;for(let e=f;e<=c;e++)p.set(s[e],e);return p},I=w(class extends V{constructor(s){if(super(s),s.type!==k.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,f,c){let p;c===void 0?c=f:f!==void 0&&(p=f);let e=[],n=[],o=0;for(let a of s)e[o]=p?p(a,o):o,n[o]=c(a,o),o++;return{values:n,keys:e}}render(s,f,c){return this.dt(s,f,c).values}update(s,[f,c,p]){let e=D(s),{values:n,keys:o}=this.dt(f,c,p);if(!Array.isArray(e))return this.ut=o,n;let a=this.ut??=[],u=[],v,g,t=0,l=e.length-1,r=0,i=n.length-1;for(;t<=l&&r<=i;)if(e[t]===null)t++;else if(e[l]===null)l--;else if(a[t]===o[r])u[r]=h(e[t],n[r]),t++,r++;else if(a[l]===o[i])u[i]=h(e[l],n[i]),l--,i--;else if(a[t]===o[i])u[i]=h(e[t],n[i]),m(s,u[i+1],e[t]),t++,i--;else if(a[l]===o[r])u[r]=h(e[l],n[r]),m(s,e[t],e[l]),l--,r++;else if(v===void 0&&(v=b(o,r,i),g=b(a,t,l)),v.has(a[t]))if(v.has(a[l])){let d=g.get(o[r]),x=d!==void 0?e[d]:null;if(x===null){let C=m(s,e[t]);h(C,n[r]),u[r]=C}else u[r]=h(x,n[r]),m(s,e[t],x),e[d]=null;r++}else y(e[l]),l--;else y(e[t]),t++;for(;r<=i;){let d=m(s,u[i+1]);h(d,n[r]),u[r++]=d}for(;t<=l;){let d=e[t++];d!==null&&y(d)}return this.ut=o,A(s,u),P}});export{I as a};
2
+ import{E as k,F as w,G as V,H as m,I as h,J as A,K as D,L as y,e as P}from"./IW3P4TGM.js";var b=(s,f,c)=>{let p=new Map;for(let e=f;e<=c;e++)p.set(s[e],e);return p},I=w(class extends V{constructor(s){if(super(s),s.type!==k.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,f,c){let p;c===void 0?c=f:f!==void 0&&(p=f);let e=[],n=[],o=0;for(let a of s)e[o]=p?p(a,o):o,n[o]=c(a,o),o++;return{values:n,keys:e}}render(s,f,c){return this.dt(s,f,c).values}update(s,[f,c,p]){let e=D(s),{values:n,keys:o}=this.dt(f,c,p);if(!Array.isArray(e))return this.ut=o,n;let a=this.ut??=[],u=[],v,g,t=0,l=e.length-1,r=0,i=n.length-1;for(;t<=l&&r<=i;)if(e[t]===null)t++;else if(e[l]===null)l--;else if(a[t]===o[r])u[r]=h(e[t],n[r]),t++,r++;else if(a[l]===o[i])u[i]=h(e[l],n[i]),l--,i--;else if(a[t]===o[i])u[i]=h(e[t],n[i]),m(s,u[i+1],e[t]),t++,i--;else if(a[l]===o[r])u[r]=h(e[l],n[r]),m(s,e[t],e[l]),l--,r++;else if(v===void 0&&(v=b(o,r,i),g=b(a,t,l)),v.has(a[t]))if(v.has(a[l])){let d=g.get(o[r]),x=d!==void 0?e[d]:null;if(x===null){let C=m(s,e[t]);h(C,n[r]),u[r]=C}else u[r]=h(x,n[r]),m(s,e[t],x),e[d]=null;r++}else y(e[l]),l--;else y(e[t]),t++;for(;r<=i;){let d=m(s,u[i+1]);h(d,n[r]),u[r++]=d}for(;t<=l;){let d=e[t++];d!==null&&y(d)}return this.ut=o,A(s,u),P}});export{I as a};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import a from"./LH2T4TMP.js";import"./GDLDEHUJ.js";import{a as h}from"./SAI7K4OO.js";import"./FY7P5YLX.js";import"./IRDDLVT2.js";import"./LXME6MU5.js";import{R as o,_ as m,a as r,b as i,x as d}from"./IW3P4TGM.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{b:p}])=>{var $=r`.container{display:flex;flex-direction:column;gap:var(--calcite-space-sm)}`,n=class extends o{constructor(){super(...arguments),this._messages=h({name:"feature-form-next"}),this.formDisabled=!1,this.arcgisFilesSelect=d()}static{this.properties={_effectiveDisabled:16,input:0,attachment:0,formDisabled:5,messageOverrides:0}}static{this.styles=$}get _effectiveDisabled(){return this.formDisabled?!0:this.attachment?!this.input?.editable:this.input?.addDisabled!==!1}get _multipleEnabled(){if(this.attachment)return!1;if(!this.input)return!0;let{maxAttachmentCount:t,effectiveAttachmentCount:e}=this.input;return t==null?!0:e<t-1}_handleFilesSelect(t){t.stopPropagation(),this.arcgisFilesSelect.emit({files:t.detail.files})}render(){let{_effectiveDisabled:t,input:e,_multipleEnabled:f,attachment:a}=this;if(!e)return;let{units:l}=this._messages,s=this._messages.components?.attachments?.["add-attachment-view"],c=!!this.attachment,u=c&&a?i`<calcite-label>${s?.fileToBeReplaced}<calcite-card><div slot=heading>${a.name}</div><div slot=description>${l?.bytes?p(l,a.size):""}</div></calcite-card></calcite-label>`:void 0,g=c?"refresh":"upload",v=!c,b=e.isCaptureOnly?i`<calcite-notice data-testid=notice icon kind=warning open scale=s width=full><div slot=message>${s?.captureMethodNotSupported}</div></calcite-notice>`:i`<arcgis-file-picker data-testid=filepicker .disabled=${t} .fileTypeCategories=${e.categories} .heading=${a?s?.heading:void 0} .icon=${g} .multipleEnabled=${f} @arcgisFilesSelect=${this._handleFilesSelect}></arcgis-file-picker><arcgis-attachment-validation-view data-testid=validations .includeCountCriteria=${v} .input=${e}></arcgis-attachment-validation-view>${u}`;return i`<div class="container" data-testid=add-attachment-view-root>${b}</div>`}};m("arcgis-add-attachment-view",n);return n},a)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import b from"./Y5BPYGSY.js";import"./FY7P5YLX.js";import"./IRDDLVT2.js";import"./LXME6MU5.js";import{R as a,U as c,_ as l,a as o,b as n}from"./IW3P4TGM.js";import"./TAVTDQ6S.js";export default $arcgis.t(([p])=>{var f=o`:host{display:contents}.root{--spinner-offset: calc(var(--calcite-loader-size) / 4 * -1);position:absolute;margin-block-start:var(--spinner-offset);margin-inline-start:var(--spinner-offset);padding:var(--calcite-space-2xs);border-radius:100%;background-color:color-mix(in srgb,var(--calcite-color-text-inverse) 50%,transparent);--calcite-loader-track-color: transparent;--calcite-loader-progress-color-inline: var(--calcite-color-text-1)}`,i=class extends a{constructor(){super(...arguments),this.trackLocation=!1,this.screenLocation=p(this)}static{this.properties={trackLocation:5,screenLocation:32,label:1,location:0,referenceElement:0,view:0}}static{this.styles=f}_getViewOffset(){let t=this.view?.container?.getBoundingClientRect(),e=this.referenceElement?.getBoundingClientRect();return{left:t&&e?t.left-e.left:0,top:t&&e?t.top-e.top:0}}_getPositionStyles(){let{screenLocation:t,view:e}=this;if(e==null||t==null)return{};let r=16,s=this._getViewOffset();return{"--calcite-loader-size":`${r}px`,left:`${t.x+s.left-r/2}px`,top:`${t.y+s.top-r/2}px`}}render(){return this.screenLocation?n`<div class="root" style=${c(this._getPositionStyles())}><calcite-loader .label=${this.label??""} inline></calcite-loader></div>`:null}};l("arcgis-spinner",i);return i},b)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as o}from"./YEPGUNSV.js";import g from"./ZRT4RJ62.js";import{a as x}from"./SAI7K4OO.js";import e from"./3VFPLRD3.js";import d from"./E3RBRDUV.js";import{h as C}from"./FY7P5YLX.js";import"./IRDDLVT2.js";import b from"./TJHVEY7T.js";import"./LXME6MU5.js";import{Q as I,R as y,T as c,X as h,_ as w,a as f,b as a,x as v}from"./IW3P4TGM.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{substitute:m,formatNumber:p},{isFeatureItem:M,isLayerItem:g,isGroupLayerItem:L},S,,,,F])=>{var r={container:"container",flowItem:"flow-item",layerDropdown:"layer-dropdown",listItemFeature:"feature",listItemFeatureIcon:"feature-icon",listItemIcon:"icon",itemCount:"item-count",notice:"notice",panel:"panel"},T=f`:host{width:100%;display:flex;height:100%;flex:1 1 0;>*{align-items:center;align-self:center;width:100%;height:100%}}.root{display:flex;flex-direction:column}calcite-flow{height:100%;width:100%}.container,.flow-item,.panel{display:flex}.flow-item{overflow:auto}.flow-item[scale=s] .container{gap:var(--calcite-space-sm);padding:var(--calcite-space-sm) 0}.flow-item[scale=m] .container{gap:var(--calcite-space-md);padding:var(--calcite-space-md) 0}.flow-item[scale=l] .container{gap:var(--calcite-space-lg);padding:var(--calcite-space-lg) 0}.container{flex-direction:column;background-color:var(--calcite-color-foreground-1)}.container>*{background-color:var(--calcite-color-foreground-1)}.container>*[scale=s]{padding:0 var(--calcite-space-sm) 0 var(--calcite-space-sm);font-size:var(--calcite-font-size-sm)}.container>*[scale=m]{padding:0 var(--calcite-space-md) 0 var(--calcite-space-md);font-size:var(--calcite-font-size-md)}.container>*[scale=l]{padding:0 var(--calcite-space-lg) 0 var(--calcite-space-lg);font-size:var(--calcite-font-size-lg)}.icon{display:flex;align-items:center;justify-content:center;min-width:var(--calcite-space-2xl);height:var(--calcite-space-2xl)}.icon span{line-height:0}.feature-icon .icon{margin-inline-start:calc(var(--calcite-space-lg) * -1)}calcite-chip{align-self:center;margin-inline:var(--calcite-space-2xs);line-height:initial}.item-count{display:flex;gap:.5em;align-items:center}`,_=F(S),$=class extends y{constructor(){super(...arguments),this.viewModel=_(this),this.messages=x(),this.#i=!1,this.#t=new WeakSet,this.#e=null,this.autoDestroyDisabled=!1,this.icon="selection",this.view=this.viewModel.view,this.displayMode="group",this.filterText=this.viewModel.filterText,this.hideChip=!1,this.hideChipCloseButton=!1,this.hideFilter=!1,this.hideFilterNotice=!1,this.hideHeader=!1,this.hideItemCloseActions=!1,this.hideItemCount=!1,this.hideItemIcons=!1,this.hideItemMenus=!1,this.hideLayerFilter=!1,this.hideMenu=!1,this.hideZoomToButton=!1,this.highlightOnHoverDisabled=!1,this.layer=this.viewModel.layer,this.maxVisibleFeatureCountPerLayer=this.viewModel.maxVisibleFeatureCountPerLayer,this.menuScale="m",this.selectionManager=this.viewModel.selectionManager,this.visualScale="s",this.arcgisClear=v(),this.arcgisPropertyChange=C()("state"),this.arcgisReady=v()}static{this.properties={hasFilterText:16,isUpdating:16,itemWithOpenMenu:16,autoDestroyDisabled:5,disabled:5,icon:1,label:1,referenceElement:1,view:0,activeLayerItem:32,afterListItemSelect:0,allLayerItems:32,count:32,displayMode:1,effectiveSelectionManager:32,filterText:1,hideChip:5,hideChipCloseButton:5,hideFilter:5,hideFilterNotice:5,hideHeader:5,hideItemCloseActions:5,hideItemCount:5,hideItemIcons:5,hideItemMenus:5,hideLayerFilter:5,hideMenu:5,hideZoomToButton:5,highlightOnHoverDisabled:5,listItemActionConfigurations:0,listItemUnavailableFunction:0,layer:0,layerItems:32,maxVisibleFeatureCountExceeded:32,maxVisibleFeatureCountPerLayer:9,menuScale:1,selectionManager:0,state:32,visibleFeatureCount:32,visibleFeatureItems:32,visibleLayerCount:32,visualScale:1}}static{this.styles=T}#i;#t;#e;get hasFilterText(){let{filterText:e}=this;return e!=null&&e!==""}get isUpdating(){return this.viewModel.isUpdating}get disabled(){return this.#i||this.state==="disabled"}set disabled(e){this.#i=e}get activeLayerItem(){return this.viewModel.activeLayerItem}get allLayerItems(){return this.viewModel.allLayerItems}get count(){return this.viewModel.effectiveCount}get effectiveSelectionManager(){return this.viewModel.effectiveSelectionManager}get layerItems(){return this.viewModel.layerItems}get maxVisibleFeatureCountExceeded(){return this.viewModel.maxVisibleFeatureCountExceeded}get state(){return this.viewModel.state}get visibleFeatureCount(){return this.viewModel.visibleFeatureCount}get visibleFeatureItems(){return this.viewModel.visibleFeatureItems}get visibleLayerCount(){return this.viewModel.visibleLayerCount}async clear(){this.viewModel.clear()}async collapseAll(){this.viewModel.collapseAll()}async deselectItem(e){this.viewModel.deselectItem(e)}async destroy(){this.viewModel?.destroy()}async expandAll(){this.viewModel.expandAll()}async findLayerItem(e){return this.viewModel.findLayerItem(e)}async findParentItem(e){return this.viewModel.findParentItem(e)}async goToItem(e){this.viewModel.goToItem(e)}async removeFromSelection(e){this.viewModel.removeFromSelection(e)}async replace(e){this.viewModel.replace(e)}async selectItem(e){this.viewModel.selectSingleItem(e)}connectedCallback(){super.connectedCallback(),this.#e=new IntersectionObserver((e,t)=>{let{messages:s}=this;e.forEach(i=>{if(!i.isIntersecting)return;let l=i.target;if(this.#t.has(l)){t.unobserve(l);return}let d=l.getAttribute("data-thumbnail-key"),n=d?this._getFeatureItemByThumbnailKey(d):void 0;if(!n)return;this.#t.add(l);let u=n.title&&s.previewTemplateAriaLabel?m(s.previewTemplateAriaLabel,{label:n.title}):s.preview;if(n.thumbnail){l.appendChild(n.thumbnail);return}n.fetchThumbnail({ariaLabel:u}).then(b=>b&&l.appendChild(b)).catch(()=>this.#t.delete(l))})})}disconnectedCallback(){super.disconnectedCallback(),this.#e?.disconnect()}_isDropdownItemVisible(e,t){let{hidden:s,type:i}=t;return(typeof s=="function"?s({item:e}):s)?!1:!!(!i||i==="feature"&&M(e)||i==="layer"&&g(e)||i==="group"&&L(e))}_handleClearSelection(){this.clear(),this.arcgisClear.emit()}_onFeatureItemBlur(){this.highlightOnHoverDisabled||this.viewModel.removeTemporaryHighlight()}_onFeatureItemFocus(e){this.highlightOnHoverDisabled||this.viewModel.addTemporaryHighlight(e)}_closeItemMenu(e){(!e||e===this.itemWithOpenMenu)&&(this.itemWithOpenMenu=void 0)}_getFeatureItemByThumbnailKey(e){return this.viewModel.visibleFeatureItems.find(t=>t.thumbnailKey===e)}_isItemUnavailable(e){return!e.layerIsVisible||this.listItemUnavailableFunction?.({item:e})||!1}_makeObserverRef(){let e=null;return t=>{t?(e=t,this.#e?.observe(t)):e&&(this.#e?.unobserve(e),e=null)}}_afterListItemSelect(e,t){t.stopPropagation(),this._closeItemMenu(),this.afterListItemSelect?.({item:e})}_getTooltipForChip(e){let{messages:t}=this;return!t?.selectionCount||!t?.clearSelectionCount?"":this.hideChipCloseButton?m(t.selectionCount,{count:e}):m(t.clearSelectionCount,{count:e})}#n(){if(this.hideChip||this.hideHeader)return;let{count:e}=this,t=p(e),s=!this.hideChipCloseButton&&e>0;return a`<calcite-chip appearance=outline .closable=${s} .closed=${e===0} .disabled=${this.disabled} .icon=${this.maxVisibleFeatureCountExceeded?"exclamation-mark-triangle":void 0} .label=${t} .scale=${this.visualScale} slot=header-actions-end title=${this._getTooltipForChip(e)??h} @calciteChipClose=${this._handleClearSelection}>${t}</calcite-chip>`}#c(){if(this.hideHeader||this.hideMenu)return;let{menuScale:e,messages:t}=this,s=this.disabled||this.count===0;return[a`<calcite-action .disabled=${s} icon=reset .scale=${e} slot=header-menu-actions .text=${t.clear??""} text-enabled @click=${this.clear}></calcite-action>`,a`<calcite-action .disabled=${s} icon=folders .scale=${e} slot=header-menu-actions .text=${t.collapseAll??""} text-enabled @click=${this.collapseAll}></calcite-action>`]}#r(){let{layerItems:e,messages:t}=this;if(this.count===0||e.length<2||this.hideLayerFilter)return;let s=t.allLayersCount?m(t.allLayersCount,{count:e.length}):"";return a`<calcite-combobox class=${c(r.layerDropdown)} .disabled=${this.disabled} .label=${t.filterByLayer??""} overlay-positioning=fixed .placeholder=${t.filterByLayer} .scale=${this.visualScale} selection-mode=single-persist @calciteComboboxChange=${({currentTarget:i})=>{this.filterText=void 0;let l=i.selectedItems[0]?.value??void 0;this.layer=l==="all-layers"?void 0:l}}>${o("all-layers",a`<calcite-combobox-item .heading=${s} icon=layers .selected=${this.layer==null} value=all-layers></calcite-combobox-item>`)}${this.layerItems.map(i=>this.#h(i))}</calcite-combobox>`}#d(){if(!(this.hideFilter||this.count===0))return a`<calcite-input clearable .disabled=${this.disabled} icon=search .placeholder=${this.messages.filter} .scale=${this.visualScale} .value=${this.filterText} @calciteInputInput=${({target:{value:e}})=>{this.filterText=e}}></calcite-input>`}#h(e){let t=e.title||this.messages?.untitledLayer||"";return o(e.key,a`<calcite-combobox-item .heading=${t} .icon=${e.iconName} .selected=${e.layer===this.layer} .value=${e.layer}></calcite-combobox-item>`)}#m(){let{messages:e}=this;if(this.visibleFeatureCount!==0)return a`<calcite-list .disabled=${this.disabled} display-mode=nested interaction-mode=interactive .label=${e.componentLabel??""} .loading=${this.isUpdating} .scale=${this.visualScale} selection-mode=none>${this.#s(this.allLayerItems)}</calcite-list>`}#s(e){return this.activeLayerItem?this.#l(this.activeLayerItem):e.map(t=>L(t)?this.#v(t):g(t)?this.#l(t):null).filter(t=>t!=null)}#u(){if(!(this.disabled||this.isUpdating||this.visibleFeatureCount>0||this.hideFilter||this.hideFilterNotice))return a`<calcite-notice class=${c(r.notice)} icon=exclamation-mark-triangle kind=info open .scale=${this.visualScale} width=full><div slot=message>${this.messages.noMatchingFeatures}</div></calcite-notice>`}#p(e){if(this.hideItemCount)return;let{messages:t}=this,s=p(e.total),i=p(e.visibleTotal),l=t.selectionCount?m(t.selectionCount,{count:s}):void 0;return!this.hasFilterText&&e.maxVisibleFeatureCountExceeded?a`<span class=${c(r.itemCount)} slot=content-end title=${l??h}><calcite-icon icon=exclamation-mark-triangle scale=s title=${t.tooManyFeatures??h}></calcite-icon>${`${p(this.maxVisibleFeatureCountPerLayer)}+`}</span>`:a`<span class=${c(r.itemCount)} slot=content-end title=${l??h}>${i}</span>`}#a(e){if(this.hideItemMenus)return;let{messages:t}=this,s=this.itemWithOpenMenu===e,i=M(e),l=i?t.deselectFeature:g(e)?t.deselectLayer:t.deselectGroup;return[o("dropdown",a`<calcite-dropdown .open=${s} overlay-positioning=fixed placement=bottom-end .scale=${this.menuScale} slot=actions-end width=m @calciteDropdownClose=${()=>this._closeItemMenu(e)} @calciteDropdownOpen=${()=>{this.itemWithOpenMenu=e}}>${o("action",a`<calcite-action icon=ellipsis .scale=${this.visualScale} slot=trigger .text=${t.menu??""}></calcite-action>`)}${s?o("dropdown-group",a`<calcite-dropdown-group selection-mode=none>${!this.hideZoomToButton&&!e.isTable?o("zoom-to",a`<calcite-dropdown-item icon-start=layer-zoom-to @calciteDropdownItemSelect=${()=>this.goToItem(e)}>${t.zoomTo}</calcite-dropdown-item>`):void 0}${o("select-single",a`<calcite-dropdown-item icon-start=selection-filter @calciteDropdownItemSelect=${()=>this.selectItem(e)}>${i?t.onlySelectFeature:t.onlySelectThis}</calcite-dropdown-item>`)}${o("clear-selection",a`<calcite-dropdown-item icon-start=selection-x @calciteDropdownItemSelect=${()=>this.deselectItem(e)}>${l}</calcite-dropdown-item>`)}${this.listItemActionConfigurations?.map(d=>{let{disabled:n,label:u}=d;if(this._isDropdownItemVisible(e,d))return o(`custom-action-${u}`,a`<calcite-dropdown-item .disabled=${typeof n=="function"?n({item:e}):!!n} .iconStart=${d.icon??void 0} @calciteDropdownItemSelect=${()=>d.callback({item:e})}>${u}</calcite-dropdown-item>`)})}</calcite-dropdown-group>`):void 0}</calcite-dropdown>`)]}#v(e){let t=e.title||this.messages.untitledLayer;if(e.visibleTotal===0)return;let{displayMode:s}=this;return s==="layer"||s==="feature"?this.#s(e.items):o(e.key,a`<calcite-list-item .closable=${!this.hideItemCloseActions} .expanded=${e.expanded} .iconStart=${this.hideItemIcons?void 0:e.iconName} .label=${t} .unavailable=${this._isItemUnavailable(e)} .value=${e.title} @calciteListItemCollapse=${i=>{i.stopPropagation(),e.expanded=!1}} @calciteListItemClose=${i=>{i.stopPropagation(),this.deselectItem(e)}} @calciteListItemExpand=${i=>{i.stopPropagation(),e.expanded=!0}} @calciteListItemSelect=${i=>this._afterListItemSelect(e,i)}>${this.#a(e)}${this.#s(e.items)}</calcite-list-item>`)}#l(e){if(e.visibleTotal===0||!e.visible)return;if(this.displayMode==="feature")return this.#o(e.featureItems);let{messages:t}=this,s=e.title||t.untitledLayer;return o(e.key,a`<calcite-list-item .closable=${!this.hideItemCloseActions} .expanded=${e.expanded} .iconStart=${this.hideItemIcons?void 0:e.iconName} .label=${s} title=${(e.layerIsVisible?void 0:t.layerIsNotVisible)??h} .unavailable=${this._isItemUnavailable(e)} .value=${e.title} @calciteListItemCollapse=${i=>{i.stopPropagation(),e.expanded=!1}} @calciteListItemClose=${i=>{i.stopPropagation(),this.deselectItem(e)}} @calciteListItemExpand=${i=>{i.stopPropagation(),e.expanded=!0}} @calciteListItemSelect=${i=>this._afterListItemSelect(e,i)}>${this.#p(e)}${this.#a(e)}${this.#o(e.featureItems)}${e.maxVisibleFeatureCountExceeded?a`<calcite-notice class=${c(r.notice)} icon=exclamation-mark-triangle kind=info open .scale=${this.visualScale}><div slot=message>${t.tooManyFeatures}</div></calcite-notice>`:void 0}</calcite-list-item>`)}#o(e){return e.map(t=>this.#g(t))}#g(e){if(!e.visible)return;let{hideItemIcons:t,messages:s}=this,i=e.title||s.untitledFeature,l=!t&&this.displayMode!=="feature",d=!t&&e.supportsThumbnail;return o(e.key,a`<calcite-list-item class=${c(l?r.listItemFeatureIcon:r.listItemFeature)} .closable=${!this.hideItemCloseActions} .iconStart=${d?void 0:e.iconName} .label=${i} .unavailable=${this._isItemUnavailable(e)} .value=${i} @blur=${this._onFeatureItemBlur} @calciteListItemClose=${n=>{n.stopPropagation(),this.deselectItem(e)}} @calciteListItemSelect=${n=>this._afterListItemSelect(e,n)} @focus=${this._onFeatureItemFocus.bind(this,e)} @pointerenter=${this._onFeatureItemFocus.bind(this,e)} @pointerleave=${this._onFeatureItemBlur}>${this.#$(e)}${this.#a(e)}</calcite-list-item>`)}#$(e){if(!(this.hideItemIcons||!e.supportsThumbnail))return o("thumbnail-container",a`<div class=${c(r.listItemIcon)} slot=content-start>${o(e.thumbnailKey,a`<span data-thumbnail-key=${e.thumbnailKey??h} ${I(this._makeObserverRef())}></span>`)}</div>`)}render(){let e=this.hideHeader?void 0:this.el.title||this.messages.selection;return a`<div><calcite-flow><calcite-flow-item class=${c(r.flowItem)} .heading=${e} .loading=${this.state==="loading"} overlay-positioning=fixed .scale=${this.visualScale} selected><calcite-panel class=${c(r.panel)} .disabled=${this.disabled} overlay-positioning=fixed .scale=${this.visualScale}><div class=${c(r.container)}>${this.#r()}${this.#d()}${this.#m()}${this.#u()}</div></calcite-panel>${this.#n()}${this.#c()}</calcite-flow-item></calcite-flow></div>`}};w("arcgis-selection-list",$);return $},"intl","widgets/support/SelectionList/selectionListUtils","widgets/support/SelectionList/SelectionListViewModel",b,d,e,g)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{P as s,Q as n,R as c,T as l,U as t,_ as h,a as o,b as a}from"./IW3P4TGM.js";import"./TAVTDQ6S.js";var d=o`:host .container{border:1px solid transparent;touch-action:none;--fast-transition-time: .1s;--slow-transition-time: .3s}:host(.animate-level),.container,.item,.rect{transition:height var(--slow-transition-time) cubic-bezier(.63,-.265,.48,1.64),width var(--slow-transition-time) cubic-bezier(.63,-.265,.48,1.64),background-color var(--fast-transition-time) ease-in-out,border-color var(--fast-transition-time) ease-in-out}:host,.container,.item,.rect{will-change:height;transition:height var(--fast-transition-time) ease-out,width var(--fast-transition-time) ease-out,background-color var(--fast-transition-time) ease-in-out,border-color var(--fast-transition-time) ease-in-out}.rect{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scaleY(cos(66deg)) rotate(45deg);border:var(--calcite-border-width-md) solid rgb(from var(--arcgis-internal-building-explorer-content-text-color, var(--calcite-color-text-3)) r g b / .5);background-color:rgb(from var(--arcgis-internal-building-explorer-button-background-color, var(--calcite-color-foreground-1)) r g b / .7);&.active{border-color:var(--arcgis-internal-building-explorer-selected-button-background-color);background-color:var(--arcgis-internal-building-explorer-selected-button-background-color)}&.hover{border-color:var(--arcgis-internal-building-explorer-selected-button-background-color)}}.item{pointer-events:none;position:absolute;left:50%;transform:translate(-50%,-50%)}`,r=class extends c{constructor(){super(...arguments),this.#t=s(),this.baseWidth=0,this.hovered=!1,this.active=!1,this.height=0}static{this.properties={messages:0,baseWidth:9,level:9,width:9,hovered:5,active:5,height:9}}static{this.styles=d}#t;focus(){this.#t.value?.focus()}render(){if(this.messages==null)return null;let e=this.width??this.baseWidth,i=e*.8;return a`<div class="container" style=${t({height:`${this.height}px`})}><div class="item" style=${t({width:`${Math.round(e)}px`,height:`${Math.round(e)}px`})}><button class=${l({rect:!0,active:this.active,hover:this.hovered})} style=${t({width:`${Math.round(i)}px`,height:`${Math.round(i)}px`})} tabindex=-1 type=button ${n(this.#t)}></button></div></div>`}};h("arcgis-building-level-item",r);export{r as BuildingLevelItem};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import j from"./ZRT4RJ62.js";import{a as u}from"./SAI7K4OO.js";import{a as s}from"./L5IRXOCJ.js";import f from"./ANB7YZCR.js";import e from"./3VFPLRD3.js";import d from"./E3RBRDUV.js";import{h as w}from"./FY7P5YLX.js";import"./IRDDLVT2.js";import b from"./TJHVEY7T.js";import{a as m}from"./LXME6MU5.js";import{R as h,T as g,_ as p,a as c,b as i,x as a}from"./IW3P4TGM.js";import"./TAVTDQ6S.js";export default $arcgis.t(([_,{watch:n},,,,l,v])=>{var b=c`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{--panel-min-height--large: 240px;display:flex;flex-direction:column;flex-grow:1}.root{display:flex;position:relative;flex-grow:1;min-height:var(--panel-min-height--large)}.root section[aria-hidden=true]{display:none}.panel-items-centered{display:flex;align-items:center}.container{display:flex;flex-direction:column;flex-grow:1}.header-title{margin:0 auto 0 0;padding:var(--calcite-space-md) var(--calcite-space-lg);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-bold)}.panel-error{color:var(--calcite-color-status-danger)}`,x=v(_),f=r=>{if(!r)return"all";let e=typeof r=="string"?r.split(",").map(t=>t.trim()).filter(t=>t):[r];return!e.length||e.includes("all")?"all":e},d=class extends h{constructor(){super(...arguments),this.messages=u({blocking:!0}),this.viewModel=x(this),this.error=null,this._showTemplates=!1,this.view=this.viewModel.view,this.hideHeader=!1,this.icon="print",this.hideAdvancedOptions=!1,this.allowedFormats=this.viewModel.allowedFormats,this.allowedLayouts=this.viewModel.allowedLayouts,this.autoPopulateAuthor=!1,this.exportedLinks=this.viewModel.exportedLinks,this.extraParameters=this.viewModel.extraParameters,this.headingLevel=3,this.hideFeatureAttributes=!1,this.hideIncludeTables=!1,this.excludeOrganizationTemplates=!1,this.outSpatialReference=this.viewModel.outSpatialReference,this.portal=this.viewModel.portal,this.showPrintAreaEnabled=this.viewModel.showPrintAreaEnabled,this.printServiceUrl=this.viewModel.printServiceUrl,this.templateCustomTextElements=this.viewModel.templateCustomTextElements,this.templateOptions=this.viewModel.templateOptions,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.arcgisComplete=l(()=>this.viewModel,"complete"),this.arcgisPropertyChange=w()("state"),this.arcgisReady=a(),this.arcgisSubmit=l(()=>this.viewModel,"submit"),this.arcgisBrowseTemplatesChange=a(),this.arcgisSaveAs=a()}static{this.properties={error:16,_showTemplates:16,view:0,hideHeader:5,referenceElement:1,icon:1,hideAdvancedOptions:5,allowedFormats:[1,{type:String,converter:f}],allowedLayouts:[1,{type:String,converter:f}],autoPopulateAuthor:5,allowedFormatsForSaving:1,exportedLinks:0,extraParameters:0,headingLevel:9,hideFeatureAttributes:5,hideIncludeTables:5,excludeDefaultTemplates:5,excludeOrganizationTemplates:5,outSpatialReference:0,portal:0,showPrintAreaEnabled:5,printServiceUrl:1,showSaveAs:5,templateCustomTextElements:0,templateOptions:0,autoDestroyDisabled:5,messageOverrides:0,label:1,state:32}}static{this.styles=b}get excludeDefaultTemplates(){return!this.viewModel.includeDefaultTemplates}set excludeDefaultTemplates(e){this.viewModel.includeDefaultTemplates=!e}addPortalTemplate(e){return this.viewModel.addPortalTemplate(e)}async destroy(){await this.manager.destroy(),this.viewModel.destroy()}loaded(){this.manager.onLifecycle(()=>[n(()=>this.viewModel.error,o=>this.error=o),n(()=>this.viewModel.state,o=>{o==="ready"&&this.arcgisReady.emit()}),this.viewModel.browseTemplates.on("change",o=>{this.arcgisBrowseTemplatesChange.emit(o)}),n(()=>[this.printServiceUrl,this.portal],()=>{this.viewModel.load()},{initial:!0})]);let{height:e,width:t}=this.viewModel.templateOptions;this.viewModel.templateOptions.width=t||800,this.viewModel.templateOptions.height=e||1100}_showTemplateSelector(){this._showTemplates=!0}_hideTemplateSelector(){this._showTemplates=!1}render(){let e={"panel-items-centered":this.viewModel.state==="initializing"};return i`<div class=${g(m("root",s.widget,s.panel,e))}>${this._renderPanel()}</div>`}_renderPanel(){return this.viewModel.state==="disabled"||this.viewModel.state==="initializing"?i`<calcite-loader .label=${this.messages.loading} scale=m></calcite-loader>`:i`<calcite-flow><calcite-flow-item .selected=${!this._showTemplates}><div class="container">${this._renderPanelHeader()}${this._renderPanelContent()}</div></calcite-flow-item><calcite-flow-item .heading=${this.messages.chooseTemplate} .selected=${this._showTemplates} @calciteFlowItemBack=${e=>{e.preventDefault(),this._showTemplates=!1}}><arcgis-print-template-selector .messages=${this.messages} .viewModel=${this.viewModel} .hideTemplateSelector=${this._hideTemplateSelector.bind(this)} .excludeOrganizationTemplates=${this.excludeOrganizationTemplates}><slot name=browse-template-button></slot></arcgis-print-template-selector></calcite-flow-item></calcite-flow>`}_renderPanelHeader(){return this.hideHeader?null:i`<header class="header-title">${this.messages.export}</header>`}_renderPanelContent(){let e=this.viewModel.view,t=e?.type!=="2d";return this.error||t?i`<div class="panel-error">${e?t?this.messages.sceneViewError:this.messages.serviceError:this.messages.noViewError}</div>`:i`<arcgis-print-main-panel .messages=${this.messages} .viewModel=${this.viewModel} .showTemplateSelector=${this._showTemplateSelector.bind(this)} .hideAdvancedOptions=${this.hideAdvancedOptions} .hideFeatureAttributes=${this.hideFeatureAttributes} .hideIncludeTables=${this.hideIncludeTables} .allowedFormatsForSaving=${this.allowedFormatsForSaving} .autoPopulateAuthor=${this.autoPopulateAuthor} .showSaveAs=${this.showSaveAs} .arcgisSaveAs=${this.arcgisSaveAs}></arcgis-print-main-panel>`}};p("arcgis-print",d);return d},"widgets/Print/PrintViewModel","core/reactiveUtils",b,d,e,f,j)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import h from"./OT4D3TVG.js";import{a as S}from"./A6ANFEOT.js";import g from"./SKV3CQSZ.js";import"./WJQUE4DR.js";import f from"./ZRT4RJ62.js";import{a as O}from"./SAI7K4OO.js";import{a as x}from"./L5IRXOCJ.js";import e from"./3VFPLRD3.js";import c from"./E3RBRDUV.js";import{h as E}from"./FY7P5YLX.js";import"./IRDDLVT2.js";import a from"./TJHVEY7T.js";import{a as T}from"./LXME6MU5.js";import{R as k,T as w,X as _,_ as I,a as b,b as d,x as u}from"./IW3P4TGM.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:B},{property:n,subclass:C},,,,P,{c:M,e:W},{b:D}])=>{function y(i,o=0,m={}){typeof m!="object"&&(m={});let{leading:s=!1,trailing:r=!0,maxWait:f}=m,p=Array(2);s&&(p[0]="leading"),r&&(p[1]="trailing");let t,c=null,l=S(function(...h){t=i.apply(this,h),c=null},o,{edges:p}),g=function(...h){return f!=null&&(c===null&&(c=Date.now()),Date.now()-c>=f)?((s||r)&&(t=i.apply(this,h)),c=Date.now(),l.cancel(),l.schedule(),t):(l.apply(this,h),t)},A=()=>(l.flush(),t);return g.cancel=l.cancel,g.flush=A,g}var R=b`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{width:fit-content;height:fit-content}`,F=Object.defineProperty,L=Object.getOwnPropertyDescriptor,a=(i,o,m,s)=>{for(var r=s>1?void 0:s?L(o,m):o,f=i.length-1,p;f>=0;f--)(p=i[f])&&(r=(s?p(o,m,r):p(r))||r);return s&&r&&F(o,m,r),r},z=15e3,e=class extends D{constructor(i){super(i)}destroy(){this._stopTracking()}get state(){return this._geolocationUsable?this.view&&!this.view.ready?"disabled":this._settingPosition||this._trackStartingTimeoutId!==void 0?"waiting":this.tracking?"tracking":this.error!=null?"error":"ready":"feature-unsupported"}get tracking(){return this._watchId!==void 0}start(){this.state==="disabled"||this.state==="feature-unsupported"||this._startTracking()}stop(){this.state==="disabled"||this.state==="feature-unsupported"||this._stopTracking()}_stopWatchingPosition(){this._watchId!==void 0&&(navigator.geolocation.clearWatch(this._watchId),this._watchId=void 0)}_stopTracking(){this._abortTrack(),this._clearWaitingTimer(),this._stopWatchingPosition(),this._clearGraphic()}_startTracking(){this._stopTracking();let i=y(async o=>{this._abortTrack();let m=new AbortController;this._trackController=m;let{timestamp:s,coords:r}=o,f=r.toJSON(),p={timestamp:s,coords:f};this.error=void 0;try{let t=this.positionFilterFunction;if(typeof t=="function"&&!t({position:p})||(await this.updatePosition(o,m),this._trackController!==m))return;this._clearWaitingTimer(),this._addGraphic(),this.currentPosition=o,this._trackController=void 0}catch(t){if(M(t))return;throw this._trackController=void 0,this.error=t,this._clearWaitingTimer(),t}},0);this._watchId=navigator.geolocation.watchPosition(o=>{this._settingPosition=i(o)?.catch(W)},this._handleWatchPositionError.bind(this),this.geolocationOptions??void 0),this._trackStartingTimeoutId=setTimeout(()=>{this._trackStartingTimeoutId=void 0},z)}_handleWatchPositionError(i){i.code===i.PERMISSION_DENIED&&this._stopTracking(),this.error=i}_abortTrack(){this._trackController?.abort(),this._trackController=void 0}_clearWaitingTimer(){clearTimeout(this._trackStartingTimeoutId),this._trackStartingTimeoutId=void 0,this._settingPosition=void 0}};a([n()],e.prototype,"_watchId",2);a([n()],e.prototype,"_trackStartingTimeoutId",2);a([n()],e.prototype,"_settingPosition",2);a([n()],e.prototype,"currentPosition",2);a([n()],e.prototype,"error",2);a([n()],e.prototype,"positionFilterFunction",2);a([n({readOnly:!0})],e.prototype,"state",1);a([n({readOnly:!0})],e.prototype,"tracking",1);a([n()],e.prototype,"start",1);a([n()],e.prototype,"stop",1);e=a([C("map-components.track.TrackViewModel")],e);var $=P(e),v=class extends k{constructor(){super(...arguments),this.messages=O(),this.viewModel=$(this),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.currentPosition=this.viewModel.currentPosition,this.error=this.viewModel.error,this.geolocationOptions=this.viewModel.geolocationOptions,this.goToOverride=this.viewModel.goToOverride,this.goToLocationDisabled=this.viewModel.goToLocationEnabled,this.graphic=this.viewModel.graphic,this.icon="compass-north-circle",this.positionFilterFunction=this.viewModel.positionFilterFunction,this.rotationDisabled=this.viewModel.rotationEnabled,this.scale=this.viewModel.scale,this.state=this.viewModel.state,this.tracking=this.viewModel.tracking,this.visualScale="m",this.arcgisComplete=u(),this.arcgisError=u(),this.arcgisPropertyChange=E()("state"),this.arcgisReady=u()}static{this.properties={view:0,autoDestroyDisabled:5,currentPosition:0,error:0,geolocationOptions:0,goToOverride:0,goToLocationDisabled:7,graphic:0,icon:1,label:1,messageOverrides:0,positionFilterFunction:0,referenceElement:1,rotationDisabled:5,scale:9,state:0,tracking:36,visualScale:1}}static{this.styles=R}async destroy(){await this.manager.destroy()}async start(){this.viewModel.start()}async stop(){this.viewModel.stop()}loaded(){this.manager.onLifecycle(()=>[B(()=>this.viewModel.error,o=>{this.arcgisError.emit({error:o})}),B(()=>this.viewModel.currentPosition,o=>{this.arcgisComplete.emit({position:o})})])}_localizeError(o){if(o instanceof GeolocationPositionError)return o.code===GeolocationPositionError.PERMISSION_DENIED?this.messages?.permissionError:o.code===GeolocationPositionError.TIMEOUT?this.messages?.timeoutError:this.messages?.positionUnavailable;if(o instanceof Error)return o.message}_toggleTracking(){if(!this.viewModel)return;let{state:o}=this.viewModel;if(!(o==="feature-unsupported"||o==="disabled")){if(o==="tracking"||o==="waiting"){this.viewModel.stop();return}this.viewModel.start()}}render(){let{viewModel:o,messages:m,icon:s}=this,r=o?.state,f=r==="tracking",p=this._localizeError(this.viewModel?.error),t=(f?m?.stopTracking:m?.startTracking)??"",c=r==="feature-unsupported",l=(r==="tracking"?"pause":void 0)??s??void 0;return d`<div class=${w(T("root",x.arcgisButton))}>${!c&&d`<calcite-button .disabled=${r==="disabled"} .iconStart=${l} kind=neutral .label=${t} .loading=${r==="waiting"} @click=${this._toggleTracking} .scale=${this.visualScale} title=${t??_}></calcite-button>`||""}${p?d`<calcite-tooltip open overlay-positioning=fixed .referenceElement=${this.el}>${p}</calcite-tooltip>`:null}</div>`}};I("arcgis-track",v);return v},"core/reactiveUtils","core/accessorSupport/decorators",a,c,e,f,g,h)