@esri/calcite-components 3.0.0-next.83 → 3.0.0-next.85

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 (392) hide show
  1. package/dist/calcite/{77LELOU2.js → 22A3JGWS.js} +2 -2
  2. package/dist/calcite/{EWG5Q2UA.js → 277NZLNX.js} +2 -2
  3. package/dist/calcite/{VTZOLS2A.js → 27HLKQGE.js} +2 -2
  4. package/dist/calcite/{MP7CVFOW.js → 2DBK4MMU.js} +2 -2
  5. package/dist/calcite/{4NXMDILC.js → 2DXG3XVA.js} +2 -2
  6. package/dist/calcite/{7KJZFVBT.js → 2G74CSLT.js} +2 -2
  7. package/dist/calcite/{H6UK42RB.js → 2MENEY5A.js} +1 -1
  8. package/dist/calcite/{REF3K7XV.js → 2PEHYZ4L.js} +2 -2
  9. package/dist/calcite/{S3HA7CBN.js → 373MTMVG.js} +2 -2
  10. package/dist/calcite/{2J44FSDT.js → 3CJYQ26G.js} +2 -2
  11. package/dist/calcite/{RW7U63XH.js → 3EKSB6OX.js} +2 -2
  12. package/dist/calcite/{BGAHIOJU.js → 3H65RRTL.js} +2 -2
  13. package/dist/calcite/{6HNKXCO4.js → 3ILSRTDA.js} +2 -2
  14. package/dist/calcite/{BLYIZGTV.js → 3MWUKSL4.js} +2 -2
  15. package/dist/calcite/{562UEOHT.js → 3Q3NF73T.js} +2 -2
  16. package/dist/calcite/{F4T4C2XV.js → 3STRM3PA.js} +2 -2
  17. package/dist/calcite/{C2K3KMIQ.js → 3X6IUUAO.js} +2 -2
  18. package/dist/calcite/{KYNJM7YI.js → 4JDWK6LS.js} +1 -1
  19. package/dist/calcite/{NMMMKGFW.js → 4JN6R433.js} +2 -2
  20. package/dist/calcite/{DINH6WTT.js → 4OP3O2WZ.js} +2 -2
  21. package/dist/calcite/{HQKKSVM4.js → 4X6PYJNW.js} +2 -2
  22. package/dist/calcite/{PGTJHBU7.js → 54JI5XT4.js} +2 -2
  23. package/dist/calcite/{TY4RV4WX.js → 55K6J2NE.js} +1 -1
  24. package/dist/calcite/{HIP6ADKA.js → 5CW4IPMN.js} +2 -2
  25. package/dist/calcite/{UWOAATDU.js → 5Q64OBO2.js} +1 -1
  26. package/dist/calcite/{Q7HOVIY6.js → 5RYZPCZU.js} +2 -2
  27. package/dist/calcite/{D3N5TY4D.js → 5WS6BN2Z.js} +2 -2
  28. package/dist/calcite/{2XOLVFDH.js → 5XD3BZYO.js} +2 -2
  29. package/dist/calcite/{FPS2JYTT.js → 63SOJNNO.js} +2 -2
  30. package/dist/calcite/{4V2TCEKX.js → 64527GGX.js} +2 -2
  31. package/dist/calcite/{YHP2AGTE.js → 645SM46E.js} +2 -2
  32. package/dist/calcite/{R6NGDQGP.js → 6CG5YTH3.js} +2 -2
  33. package/dist/calcite/{LYTDYTCZ.js → 6D6PY36S.js} +2 -2
  34. package/dist/calcite/{ICXAZSTR.js → 6GLWIJUT.js} +2 -2
  35. package/dist/calcite/{SUALUOVV.js → 6I6XSEFW.js} +2 -2
  36. package/dist/calcite/{KSSDM4QA.js → 6K6H6PBQ.js} +2 -2
  37. package/dist/calcite/{SIHCK6QW.js → 6LXERNTV.js} +2 -2
  38. package/dist/calcite/{PQYUHFPN.js → 73LRIXNX.js} +1 -1
  39. package/dist/calcite/{SFVDDAEL.js → 752F2XCC.js} +2 -2
  40. package/dist/calcite/{6WRGNH6L.js → 7MWJ2WKC.js} +2 -2
  41. package/dist/calcite/{P3QRZF3P.js → 7OA5A2WD.js} +2 -2
  42. package/dist/calcite/{24JRKHSV.js → 7TMV62NA.js} +2 -2
  43. package/dist/calcite/{6D76U2EG.js → A2WGEZQO.js} +2 -2
  44. package/dist/calcite/{IVUL5N6N.js → A4OFKTGC.js} +2 -2
  45. package/dist/calcite/{IH6XVIZF.js → ADBA6WWT.js} +2 -2
  46. package/dist/calcite/{Q5S4T4OJ.js → AGZ4OPEG.js} +2 -2
  47. package/dist/calcite/{VRKB2I2H.js → AIRIQDSR.js} +2 -2
  48. package/dist/calcite/{AZIQG6Z4.js → AJAYAWA3.js} +2 -2
  49. package/dist/calcite/{QGSEAMHS.js → AVF7ITNL.js} +2 -2
  50. package/dist/calcite/{PBTS2IC6.js → AWYLHEVB.js} +2 -2
  51. package/dist/calcite/{IGAIEFM6.js → AYFOMXDJ.js} +2 -2
  52. package/dist/calcite/{PIKJXXM7.js → B3QXOLI4.js} +2 -2
  53. package/dist/calcite/{HHTWL53K.js → BAHL6TW7.js} +2 -2
  54. package/dist/calcite/{NL3IQL5T.js → CDY6EJTJ.js} +2 -2
  55. package/dist/calcite/{43OS4OCG.js → CEDOSCYT.js} +2 -2
  56. package/dist/calcite/{JGIB7JWJ.js → CF4JFJHN.js} +2 -2
  57. package/dist/calcite/{6D7E4YN5.js → CFBIPSXG.js} +2 -2
  58. package/dist/calcite/{33FTKFEA.js → CFNRDD3K.js} +2 -2
  59. package/dist/calcite/{M3HLOOJH.js → CSKBEIQK.js} +2 -2
  60. package/dist/calcite/{WGDLA2ZM.js → D7S4ARM5.js} +2 -2
  61. package/dist/calcite/{QGFNRXD4.js → DHOMDM6Q.js} +2 -2
  62. package/dist/calcite/{U3E364BC.js → DM5XFDAH.js} +2 -2
  63. package/dist/calcite/{GIMD26SR.js → EDCACF6E.js} +2 -2
  64. package/dist/calcite/{CQIA7EHA.js → EL77GSQO.js} +2 -2
  65. package/dist/calcite/{DV3MDPWQ.js → EMZO5EBD.js} +2 -2
  66. package/dist/calcite/{LPEBAOCU.js → ENBAIG7M.js} +2 -2
  67. package/dist/calcite/ETJNBMJF.js +6 -0
  68. package/dist/calcite/{E6CUARH5.js → ETOE4LO5.js} +2 -2
  69. package/dist/calcite/{CBPK2LNO.js → FF3NI237.js} +2 -2
  70. package/dist/calcite/{PT4TYNY3.js → FWPPDVVB.js} +2 -2
  71. package/dist/calcite/{4QYQBCD4.js → FX52WPQB.js} +2 -2
  72. package/dist/calcite/{IXLKRPTR.js → G2W2WBYF.js} +2 -2
  73. package/dist/calcite/GFNHWJWT.js +6 -0
  74. package/dist/calcite/{MOVICXIH.js → GZKZMHAN.js} +2 -2
  75. package/dist/calcite/{QLJNZJ7V.js → H3E6CI6S.js} +1 -1
  76. package/dist/calcite/{AYBBE7RI.js → H5KTJE4U.js} +1 -1
  77. package/dist/calcite/{B7JIAIOK.js → HAHLG6AY.js} +2 -2
  78. package/dist/calcite/{RZ2XNLFJ.js → HBARW2GN.js} +2 -2
  79. package/dist/calcite/{FVW7XRBF.js → HHCC7D7K.js} +2 -2
  80. package/dist/calcite/{U7TDBCMH.js → HMZMMMGI.js} +2 -2
  81. package/dist/calcite/{BG6ETPSV.js → HO2OI7MW.js} +2 -2
  82. package/dist/calcite/{Y6HAK7V6.js → HPKFQXCE.js} +2 -2
  83. package/dist/calcite/{THEGCODA.js → HSGFXJZN.js} +2 -2
  84. package/dist/calcite/{4THC5JHD.js → HWJ4KOYI.js} +2 -2
  85. package/dist/calcite/{J4T7KW4Y.js → I2Y5BYU3.js} +2 -2
  86. package/dist/calcite/I6DZIIRR.js +6 -0
  87. package/dist/calcite/{2Q24LZKK.js → I6JBELVN.js} +2 -2
  88. package/dist/calcite/{DQINIYCJ.js → IANTWN25.js} +2 -2
  89. package/dist/calcite/{JV5CRNVJ.js → IEOCBUEE.js} +2 -2
  90. package/dist/calcite/{ZAXAVOLY.js → IHS2TS4Q.js} +2 -2
  91. package/dist/calcite/{6GYU2XMU.js → IN5TGS6K.js} +1 -1
  92. package/dist/calcite/{AUGFWAXT.js → IUPZUTYK.js} +2 -2
  93. package/dist/calcite/{DTJHECOF.js → IXKKNMOI.js} +2 -2
  94. package/dist/calcite/{LUX3X7OI.js → IZIM3QHE.js} +1 -1
  95. package/dist/calcite/{GZOFRCWI.js → IZRIIMKT.js} +2 -2
  96. package/dist/calcite/{TBVFDH2S.js → J5FOH4ME.js} +2 -2
  97. package/dist/calcite/{ADAARX4P.js → JFTLH7BO.js} +2 -2
  98. package/dist/calcite/{EJ63AYRD.js → JGZNC5QA.js} +2 -2
  99. package/dist/calcite/{BWV33Q2J.js → JJCHXN2K.js} +2 -2
  100. package/dist/calcite/{EFOGUHUE.js → JLBUFLEZ.js} +2 -2
  101. package/dist/calcite/{2A42EMW4.js → JMIPLYXD.js} +2 -2
  102. package/dist/calcite/{CZNJMBR6.js → JQDUL3J3.js} +2 -2
  103. package/dist/calcite/{UB436KIA.js → JSE23D5V.js} +2 -2
  104. package/dist/calcite/{RPI5XKRB.js → JTQRXXGO.js} +2 -2
  105. package/dist/calcite/{JE2Q2M6Y.js → KBBCS6PM.js} +2 -2
  106. package/dist/calcite/{LF4MQFJN.js → KC7HYROO.js} +2 -2
  107. package/dist/calcite/{6PWH34GY.js → KFNYAHYN.js} +2 -2
  108. package/dist/calcite/{YE5WONFB.js → KFSGDP46.js} +2 -2
  109. package/dist/calcite/{YSQZZPQH.js → KMHMIKYF.js} +2 -2
  110. package/dist/calcite/{OM7XARLQ.js → KRNZFQRH.js} +2 -2
  111. package/dist/calcite/{VPZNKFIN.js → KWEAMXFF.js} +2 -2
  112. package/dist/calcite/{ZLWMQE5P.js → LJIJRUCO.js} +1 -1
  113. package/dist/calcite/{VJI2JE7A.js → LLIMOANX.js} +2 -2
  114. package/dist/calcite/{ZDCZNGKK.js → LNNTK3D6.js} +2 -2
  115. package/dist/calcite/{2KNPDRXO.js → LOWMH5A2.js} +2 -2
  116. package/dist/calcite/{GRHA7HAV.js → LXX6KDEB.js} +2 -2
  117. package/dist/calcite/{F3SFNQVE.js → LXXK3RQO.js} +2 -2
  118. package/dist/calcite/{TWBNVMX2.js → M2NDHIKR.js} +2 -2
  119. package/dist/calcite/{HDNCR6QV.js → M6EOFURN.js} +2 -2
  120. package/dist/calcite/{3V73XTHE.js → M6VOMCQT.js} +2 -2
  121. package/dist/calcite/{K7NPE4ZG.js → M7JIPFPM.js} +2 -2
  122. package/dist/calcite/{FGQUHZ5L.js → MEQFKZRD.js} +2 -2
  123. package/dist/calcite/{5ZB7PKBM.js → MIU6BYK6.js} +2 -2
  124. package/dist/calcite/{EEGUPHUI.js → MNQ3FMAK.js} +2 -2
  125. package/dist/calcite/{JRM7GVUS.js → MO6KN2IF.js} +1 -1
  126. package/dist/calcite/{H4QNNOCR.js → MWJR66OW.js} +2 -2
  127. package/dist/calcite/{SQUISEXL.js → MZIXXWIQ.js} +2 -2
  128. package/dist/calcite/{DJZB3C2V.js → N7XHQRC7.js} +2 -2
  129. package/dist/calcite/{EFIURKOP.js → NFACSKO6.js} +1 -1
  130. package/dist/calcite/{CQBAGAC2.js → NFV7NODC.js} +1 -1
  131. package/dist/calcite/{SW7EAK7J.js → NHSIK4WH.js} +2 -2
  132. package/dist/calcite/{ZTI2PROO.js → NXP6KDG3.js} +2 -2
  133. package/dist/calcite/{QHT3YELY.js → OAZ46QIH.js} +2 -2
  134. package/dist/calcite/{H33UNQKV.js → OIDIHGQR.js} +2 -2
  135. package/dist/calcite/{FVDAFCDC.js → OVYRS7SL.js} +1 -1
  136. package/dist/calcite/{ZQF62GR7.js → OYHHIKRS.js} +2 -2
  137. package/dist/calcite/{DRT5K7F6.js → P3446NDQ.js} +2 -2
  138. package/dist/calcite/{LDPDUB2V.js → P4S2XUBB.js} +2 -2
  139. package/dist/calcite/{MNTZQAHM.js → P5FZN3TQ.js} +2 -2
  140. package/dist/calcite/{AJHZGCRB.js → PGZWKEIG.js} +2 -2
  141. package/dist/calcite/{EDAC5WNX.js → PGZYFSXI.js} +2 -2
  142. package/dist/calcite/{45IRPHB6.js → PHYJJA2B.js} +2 -2
  143. package/dist/calcite/{63AHI6PU.js → PLSMUSSW.js} +2 -2
  144. package/dist/calcite/{5JABFTIQ.js → PRR74GL3.js} +1 -1
  145. package/dist/calcite/{FAAXOU6Z.js → PVHKB4AP.js} +2 -2
  146. package/dist/calcite/{SLSXAM2K.js → Q2O7HRAS.js} +2 -2
  147. package/dist/calcite/{WEO6XDC7.js → Q5W5Q545.js} +2 -2
  148. package/dist/calcite/{YWXYDYQV.js → QKKZ5PM5.js} +1 -1
  149. package/dist/calcite/{RKTVJCP2.js → QMQBRH4P.js} +2 -2
  150. package/dist/calcite/{26SR3BY2.js → QUXYVDG4.js} +2 -2
  151. package/dist/calcite/{M74N4GIS.js → QYEX7XZM.js} +2 -2
  152. package/dist/calcite/{R47LHHV7.js → RBGTEPNC.js} +2 -2
  153. package/dist/calcite/{CQKV5LPP.js → REBYO2SQ.js} +2 -2
  154. package/dist/calcite/{GBQPAFU4.js → RFFPKF44.js} +2 -2
  155. package/dist/calcite/{O5FI2A7J.js → RSJCZ4VQ.js} +2 -2
  156. package/dist/calcite/{WWLF4UDO.js → RTGAVIE7.js} +2 -2
  157. package/dist/calcite/{55CTIVZQ.js → S7EVRK3H.js} +2 -2
  158. package/dist/calcite/{LJPYZOIL.js → SIOTPXAH.js} +2 -2
  159. package/dist/calcite/{VNF6566M.js → SJRWPOIJ.js} +2 -2
  160. package/dist/calcite/{WKVAVWTS.js → SMXADPD2.js} +2 -2
  161. package/dist/calcite/{BS4SPFFW.js → SNOC4YCH.js} +2 -2
  162. package/dist/calcite/{AF36FWFL.js → SOWDGIJN.js} +2 -2
  163. package/dist/calcite/{HJC3KHLW.js → SPSP4H4E.js} +2 -2
  164. package/dist/calcite/{X2Z37SPK.js → ST4CIILD.js} +2 -2
  165. package/dist/calcite/{LKY3W7WD.js → SUSPTZPN.js} +1 -1
  166. package/dist/calcite/{5H627W2V.js → T26KYVMM.js} +2 -2
  167. package/dist/calcite/{CV7MMN4Z.js → T6LMLC6I.js} +2 -2
  168. package/dist/calcite/{6ERLLROX.js → T6RJI2X4.js} +2 -2
  169. package/dist/calcite/{ZNZTDSFQ.js → T6U4JV6J.js} +2 -2
  170. package/dist/calcite/{DLSOOMG7.js → T7CCMP4Y.js} +2 -2
  171. package/dist/calcite/{ZJXP7XO5.js → TAMGZ7V3.js} +2 -2
  172. package/dist/calcite/{JUGAH7DU.js → TBLQYMH2.js} +2 -2
  173. package/dist/calcite/{X5NNWZRZ.js → TEMGMGH2.js} +2 -2
  174. package/dist/calcite/{5NHQPRB7.js → TIY3TWXL.js} +1 -1
  175. package/dist/calcite/{7GHPWXQU.js → TKHER3JU.js} +2 -2
  176. package/dist/calcite/{ROULKGYK.js → TORGFB55.js} +2 -2
  177. package/dist/calcite/{ZZV5X3EY.js → TPTT77OP.js} +2 -2
  178. package/dist/calcite/{ABITBX44.js → TWA24P7U.js} +2 -2
  179. package/dist/calcite/{UNJ6CJS2.js → U24UYTYT.js} +2 -2
  180. package/dist/calcite/{NSQE7OKT.js → UBYXMYIH.js} +2 -2
  181. package/dist/calcite/UDZ3Y2EV.js +6 -0
  182. package/dist/calcite/{UMLRIMW5.js → UESLZKKU.js} +2 -2
  183. package/dist/calcite/{SXGIEG45.js → UGSDNPPY.js} +2 -2
  184. package/dist/calcite/{GQG72JSM.js → UIDRGKZK.js} +2 -2
  185. package/dist/calcite/{LCAUV6EE.js → UJZOTUHL.js} +2 -2
  186. package/dist/calcite/{ZXE6MWB2.js → UKFHGK6I.js} +2 -2
  187. package/dist/calcite/{VL3JQKM6.js → UPHFQWT2.js} +2 -2
  188. package/dist/calcite/{ITF63EYA.js → UZ3BFGWG.js} +2 -2
  189. package/dist/calcite/{DGBHLCT7.js → V2V6VNE2.js} +2 -2
  190. package/dist/calcite/{67U2QMIO.js → V6DSUIAB.js} +2 -2
  191. package/dist/calcite/{ZF7R27KT.js → VAWYW3MM.js} +2 -2
  192. package/dist/calcite/{6TFNASAN.js → VIJHILQC.js} +2 -2
  193. package/dist/calcite/{KKF3HZMN.js → VMQT64UN.js} +2 -2
  194. package/dist/calcite/{TW2UBQIP.js → VR3PNKXC.js} +2 -2
  195. package/dist/calcite/{DMBGFSHE.js → VS2YH7C4.js} +2 -2
  196. package/dist/calcite/{R2S4XPFR.js → VSRGAYXI.js} +2 -2
  197. package/dist/calcite/{W3MHCJDO.js → VT5G72HV.js} +2 -2
  198. package/dist/calcite/{FV4OVQDJ.js → VUU4B2RQ.js} +1 -1
  199. package/dist/calcite/{J4BOHXRT.js → WDRU52MK.js} +2 -2
  200. package/dist/calcite/{JN67BVTF.js → WHAOTV7X.js} +2 -2
  201. package/dist/calcite/{M572LDGN.js → WHDNQX7G.js} +2 -2
  202. package/dist/calcite/{M4JOQM66.js → WIZBFD7Q.js} +1 -1
  203. package/dist/calcite/{ZQGUTUK6.js → WOKEY6WT.js} +2 -2
  204. package/dist/calcite/{KWTTKNVE.js → WXGTJYIB.js} +2 -2
  205. package/dist/calcite/{WLSLCGT7.js → X6V7ZSHV.js} +1 -1
  206. package/dist/calcite/{MKBTX2H3.js → XGQK6762.js} +2 -2
  207. package/dist/calcite/{7FFGUIPH.js → XGWBARG2.js} +2 -2
  208. package/dist/calcite/{5GLKIFPL.js → XIW4PHM6.js} +2 -2
  209. package/dist/calcite/{XHAL3VQU.js → XREY5KQR.js} +2 -2
  210. package/dist/calcite/{C75WWZUM.js → XRNB5VRH.js} +2 -2
  211. package/dist/calcite/{2BHBOMJ7.js → XUI3O5RJ.js} +2 -2
  212. package/dist/calcite/{UMVGO7AK.js → YAN2Q4PJ.js} +2 -2
  213. package/dist/calcite/{BV74OO6Q.js → YED7KNSN.js} +2 -2
  214. package/dist/calcite/{ZFTWJD3T.js → YQIYRMWM.js} +2 -2
  215. package/dist/calcite/{GZMDLWCZ.js → YQTMIBE6.js} +1 -1
  216. package/dist/calcite/{MSYE42NQ.js → YSFF4CAM.js} +2 -2
  217. package/dist/calcite/{Z7UYIURN.js → YSMO2SQT.js} +2 -2
  218. package/dist/calcite/{ISI6FOBM.js → YWITKUUY.js} +2 -2
  219. package/dist/calcite/{U2F6EEYI.js → Z3RHW6OR.js} +2 -2
  220. package/dist/calcite/{XIFUYR2D.js → Z7EL5LDB.js} +2 -2
  221. package/dist/calcite/{N7VMLAU3.js → ZIQYLGSK.js} +2 -2
  222. package/dist/calcite/{W4LUQTJU.js → ZQUPJLLI.js} +2 -2
  223. package/dist/calcite/calcite.esm.js +2 -2
  224. package/dist/chunks/ExpandToggle.js +1 -1
  225. package/dist/chunks/FloatingArrow.js +1 -1
  226. package/dist/chunks/Heading.js +1 -1
  227. package/dist/chunks/Validation.js +1 -1
  228. package/dist/chunks/_commonjsHelpers.js +1 -1
  229. package/dist/chunks/array.js +1 -1
  230. package/dist/chunks/component.js +1 -1
  231. package/dist/chunks/core.js +1 -1
  232. package/dist/chunks/date.js +1 -1
  233. package/dist/chunks/dom.js +1 -1
  234. package/dist/chunks/dynamicClasses.js +1 -1
  235. package/dist/chunks/filter.js +1 -1
  236. package/dist/chunks/floating-ui.js +1 -1
  237. package/dist/chunks/focusTrapComponent.js +1 -1
  238. package/dist/chunks/form.js +1 -1
  239. package/dist/chunks/global.js +1 -1
  240. package/dist/chunks/guid.js +1 -1
  241. package/dist/chunks/input.js +1 -1
  242. package/dist/chunks/interact.min.js +1 -1
  243. package/dist/chunks/interactive.js +1 -1
  244. package/dist/chunks/key.js +1 -1
  245. package/dist/chunks/label.js +1 -1
  246. package/dist/chunks/loadable.js +1 -1
  247. package/dist/chunks/locale.js +1 -1
  248. package/dist/chunks/logger.js +1 -1
  249. package/dist/chunks/math.js +1 -1
  250. package/dist/chunks/observers.js +1 -1
  251. package/dist/chunks/openCloseComponent.js +1 -1
  252. package/dist/chunks/resources.js +1 -1
  253. package/dist/chunks/resources2.js +1 -1
  254. package/dist/chunks/resources3.js +1 -1
  255. package/dist/chunks/resources4.js +1 -1
  256. package/dist/chunks/resources5.js +1 -1
  257. package/dist/chunks/resources6.js +1 -1
  258. package/dist/chunks/resources7.js +1 -1
  259. package/dist/chunks/responsive.js +1 -1
  260. package/dist/chunks/runtime.js +6 -6
  261. package/dist/chunks/sortableComponent.js +1 -1
  262. package/dist/chunks/text.js +15 -0
  263. package/dist/chunks/time.js +1 -1
  264. package/dist/chunks/useT9n.js +1 -1
  265. package/dist/chunks/utils.js +1 -1
  266. package/dist/chunks/utils2.js +1 -1
  267. package/dist/chunks/utils3.js +1 -1
  268. package/dist/chunks/utils4.js +1 -1
  269. package/dist/components/calcite-accordion/customElement.js +1 -1
  270. package/dist/components/calcite-accordion-item/customElement.js +1 -1
  271. package/dist/components/calcite-action/customElement.js +1 -1
  272. package/dist/components/calcite-action-bar/customElement.js +1 -1
  273. package/dist/components/calcite-action-group/customElement.js +1 -1
  274. package/dist/components/calcite-action-menu/customElement.js +1 -1
  275. package/dist/components/calcite-action-pad/customElement.js +1 -1
  276. package/dist/components/calcite-alert/customElement.js +1 -1
  277. package/dist/components/calcite-autocomplete/customElement.d.ts +13 -0
  278. package/dist/components/calcite-autocomplete/customElement.js +61 -41
  279. package/dist/components/calcite-autocomplete-item/customElement.js +31 -24
  280. package/dist/components/calcite-autocomplete-item-group/customElement.js +1 -1
  281. package/dist/components/calcite-avatar/customElement.js +1 -1
  282. package/dist/components/calcite-block/customElement.js +1 -1
  283. package/dist/components/calcite-block-section/customElement.js +1 -1
  284. package/dist/components/calcite-button/customElement.js +1 -1
  285. package/dist/components/calcite-card/customElement.js +1 -1
  286. package/dist/components/calcite-card-group/customElement.js +1 -1
  287. package/dist/components/calcite-carousel/customElement.js +1 -1
  288. package/dist/components/calcite-carousel-item/customElement.js +1 -1
  289. package/dist/components/calcite-checkbox/customElement.js +1 -1
  290. package/dist/components/calcite-chip/customElement.js +1 -1
  291. package/dist/components/calcite-chip-group/customElement.js +1 -1
  292. package/dist/components/calcite-color-picker/customElement.js +1 -1
  293. package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
  294. package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
  295. package/dist/components/calcite-combobox/customElement.js +1 -1
  296. package/dist/components/calcite-combobox-item/customElement.js +42 -40
  297. package/dist/components/calcite-combobox-item/resources.d.ts +0 -1
  298. package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
  299. package/dist/components/calcite-date-picker/customElement.js +1 -1
  300. package/dist/components/calcite-date-picker-day/customElement.js +1 -1
  301. package/dist/components/calcite-date-picker-month/customElement.js +1 -1
  302. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  303. package/dist/components/calcite-dialog/customElement.js +1 -1
  304. package/dist/components/calcite-dropdown/customElement.js +1 -1
  305. package/dist/components/calcite-dropdown-group/customElement.js +1 -1
  306. package/dist/components/calcite-dropdown-item/customElement.js +1 -1
  307. package/dist/components/calcite-fab/customElement.js +1 -1
  308. package/dist/components/calcite-filter/customElement.js +1 -1
  309. package/dist/components/calcite-flow/customElement.js +1 -1
  310. package/dist/components/calcite-flow-item/customElement.js +1 -1
  311. package/dist/components/calcite-graph/customElement.js +1 -1
  312. package/dist/components/calcite-handle/customElement.js +1 -1
  313. package/dist/components/calcite-icon/customElement.js +1 -1
  314. package/dist/components/calcite-inline-editable/customElement.js +1 -1
  315. package/dist/components/calcite-input/customElement.js +1 -1
  316. package/dist/components/calcite-input-date-picker/customElement.js +1 -1
  317. package/dist/components/calcite-input-message/customElement.js +1 -1
  318. package/dist/components/calcite-input-number/customElement.js +1 -1
  319. package/dist/components/calcite-input-text/customElement.js +1 -1
  320. package/dist/components/calcite-input-time-picker/customElement.js +1 -1
  321. package/dist/components/calcite-input-time-zone/customElement.js +1 -1
  322. package/dist/components/calcite-label/customElement.js +1 -1
  323. package/dist/components/calcite-link/customElement.js +1 -1
  324. package/dist/components/calcite-list/customElement.js +1 -1
  325. package/dist/components/calcite-list-item/customElement.js +1 -1
  326. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  327. package/dist/components/calcite-loader/customElement.js +1 -1
  328. package/dist/components/calcite-menu/customElement.js +1 -1
  329. package/dist/components/calcite-menu-item/customElement.js +1 -1
  330. package/dist/components/calcite-meter/customElement.js +1 -1
  331. package/dist/components/calcite-modal/customElement.js +1 -1
  332. package/dist/components/calcite-navigation/customElement.js +1 -1
  333. package/dist/components/calcite-navigation-logo/customElement.js +1 -1
  334. package/dist/components/calcite-navigation-user/customElement.js +1 -1
  335. package/dist/components/calcite-notice/customElement.js +1 -1
  336. package/dist/components/calcite-option/customElement.js +1 -1
  337. package/dist/components/calcite-option-group/customElement.js +1 -1
  338. package/dist/components/calcite-pagination/customElement.js +1 -1
  339. package/dist/components/calcite-panel/customElement.js +1 -1
  340. package/dist/components/calcite-popover/customElement.js +1 -1
  341. package/dist/components/calcite-progress/customElement.js +1 -1
  342. package/dist/components/calcite-radio-button/customElement.js +1 -1
  343. package/dist/components/calcite-radio-button-group/customElement.js +1 -1
  344. package/dist/components/calcite-rating/customElement.js +1 -1
  345. package/dist/components/calcite-scrim/customElement.js +1 -1
  346. package/dist/components/calcite-segmented-control/customElement.js +1 -1
  347. package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
  348. package/dist/components/calcite-select/customElement.js +1 -1
  349. package/dist/components/calcite-sheet/customElement.js +1 -1
  350. package/dist/components/calcite-shell/customElement.js +1 -1
  351. package/dist/components/calcite-shell-center-row/customElement.js +1 -1
  352. package/dist/components/calcite-shell-panel/customElement.js +1 -1
  353. package/dist/components/calcite-slider/customElement.js +1 -1
  354. package/dist/components/calcite-sort-handle/customElement.js +1 -1
  355. package/dist/components/calcite-sortable-list/customElement.js +1 -1
  356. package/dist/components/calcite-split-button/customElement.js +1 -1
  357. package/dist/components/calcite-stack/customElement.js +1 -1
  358. package/dist/components/calcite-stepper/customElement.js +1 -1
  359. package/dist/components/calcite-stepper-item/customElement.js +1 -1
  360. package/dist/components/calcite-switch/customElement.js +1 -1
  361. package/dist/components/calcite-tab/customElement.js +1 -1
  362. package/dist/components/calcite-tab-nav/customElement.js +1 -1
  363. package/dist/components/calcite-tab-title/customElement.js +1 -1
  364. package/dist/components/calcite-table/customElement.js +1 -1
  365. package/dist/components/calcite-table-cell/customElement.js +1 -1
  366. package/dist/components/calcite-table-header/customElement.js +1 -1
  367. package/dist/components/calcite-table-row/customElement.js +1 -1
  368. package/dist/components/calcite-tabs/customElement.js +1 -1
  369. package/dist/components/calcite-text-area/customElement.js +1 -1
  370. package/dist/components/calcite-tile/customElement.js +1 -1
  371. package/dist/components/calcite-tile-group/customElement.js +1 -1
  372. package/dist/components/calcite-tile-select/customElement.js +1 -1
  373. package/dist/components/calcite-tile-select-group/customElement.js +1 -1
  374. package/dist/components/calcite-time-picker/customElement.js +1 -1
  375. package/dist/components/calcite-tip/customElement.js +1 -1
  376. package/dist/components/calcite-tip-group/customElement.js +1 -1
  377. package/dist/components/calcite-tip-manager/customElement.js +1 -1
  378. package/dist/components/calcite-tooltip/customElement.js +1 -1
  379. package/dist/components/calcite-tree/customElement.js +1 -1
  380. package/dist/components/calcite-tree-item/customElement.js +1 -1
  381. package/dist/docs/api.json +54 -1
  382. package/dist/docs/docs.json +54 -1
  383. package/dist/docs/vscode.html-custom-data.json +1 -1
  384. package/dist/docs/web-types.json +2 -2
  385. package/dist/extras/vscode-data.json +1 -1
  386. package/dist/index.js +1 -1
  387. package/dist/loader.js +3 -3
  388. package/dist/utils/text.d.ts +5 -0
  389. package/package.json +2 -2
  390. package/dist/calcite/3SN4WLTN.js +0 -6
  391. package/dist/calcite/TAAGZZZO.js +0 -6
  392. package/dist/calcite/XY3XHJR2.js +0 -6
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.83
4
+ * v3.0.0-next.85
5
5
  */
6
- import{a as M,b as f,c,d as F}from"./REF3K7XV.js";import{p as v}from"./GZMDLWCZ.js";import{a as D}from"./55CTIVZQ.js";import{a as p}from"./Z7UYIURN.js";import{a as B}from"./GIMD26SR.js";import{a as $}from"./7FFGUIPH.js";import{a as m}from"./63AHI6PU.js";import{a as T}from"./VNF6566M.js";import{a as b,b as r}from"./N7VMLAU3.js";import{b as u,n as C,u as n,v as g}from"./ZAXAVOLY.js";import{a as O,b as S,d as E}from"./NMMMKGFW.js";import"./FV4OVQDJ.js";import{I as z,d as k,e as a,i as y,u as l,v as w,w as i,z as h}from"./BS4SPFFW.js";var t={modal:"modal",title:"title",header:"header",footer:"footer",scrim:"scrim",back:"back",close:"close",secondary:"secondary",primary:"primary",container:"container",containerOpen:"container--open",containerEmbedded:"container--embedded",content:"content",contentNoFooter:"content--no-footer",contentBottom:"content-bottom",contentTop:"content-top",openingIdle:"modal--opening-idle",openingActive:"modal--opening-active",closingIdle:"modal--closing-idle",closingActive:"modal--closing-active"},L={close:"x"},s={content:"content",contentBottom:"content-bottom",contentTop:"content-top",header:"header",back:"back",secondary:"secondary",primary:"primary"},A=k`:host{--calcite-modal-scrim-background: rgba(0, 0, 0, .85);position:fixed;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;opacity:0;visibility:hidden!important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);--calcite-modal-scrim-background-internal: rgba(0, 0, 0, .85)}.content-top[hidden],.content-bottom[hidden]{display:none}.container{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden!important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88)}:host([scale=s]){--calcite-modal-padding-internal: .75rem;--calcite-modal-padding-large-internal: 1rem;--calcite-modal-title-text-internal: var(--calcite-font-size-1);--calcite-modal-content-text-internal: var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding-internal: 1rem;--calcite-modal-padding-large-internal: 1.25rem;--calcite-modal-title-text-internal: var(--calcite-font-size-2);--calcite-modal-content-text-internal: var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding-internal: 1.25rem;--calcite-modal-padding-large-internal: 1.5rem;--calcite-modal-title-text-internal: var(--calcite-font-size-3);--calcite-modal-content-text-internal: var(--calcite-font-size-1)}.scrim{--calcite-scrim-background: var(--calcite-modal-scrim-background, var(--calcite-color-transparent-scrim));position:absolute;inset:0;display:flex;overflow-y:hidden}.modal{pointer-events:none;z-index:var(--calcite-z-index-modal);float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:.25rem;background-color:var(--calcite-color-foreground-1);opacity:0;--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);--calcite-modal-hidden-position: translate3d(0, 20px, 0);--calcite-modal-shown-position: translate3d(0, 0, 0)}.modal--opening-idle{transform:var(--calcite-modal-hidden-position)}.modal--opening-active,.modal--closing-idle{transform:var(--calcite-modal-shown-position)}.modal--closing-active{transform:var(--calcite-modal-hidden-position)}:host([opened]){opacity:1;visibility:visible!important;transition-delay:0ms}.container--open{opacity:1;visibility:visible!important;transition-delay:0ms}.container--open .modal{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear,opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);transition-delay:0ms}.header{z-index:var(--calcite-z-index-header);display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:.25rem;border-start-end-radius:.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto}.close{order:2;margin:0;cursor:pointer;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-internal);flex:0 0 auto}.close calcite-icon{vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.close:hover,.close:focus,.close:active{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}.title{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-1);font-size:var(--calcite-modal-title-text-internal)}.content{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;padding:0;background-color:var(--calcite-modal-content-background, var(--calcite-color-foreground-1));max-block-size:100%;padding:var(--calcite-modal-content-padding, var(--calcite-modal-padding-internal))}.content-top,.content-bottom{z-index:var(--calcite-z-index-header);display:flex;border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto;padding:var(--calcite-modal-padding-internal)}.content-top{min-inline-size:0px;max-inline-size:100%;border-block-end-width:1px}.content-bottom{margin-block-start:auto;box-sizing:border-box;inline-size:100%;justify-content:space-between;border-block-start-width:1px}.content-top:not(.header~.content-top){border-start-start-radius:.25rem;border-start-end-radius:.25rem}.content-bottom:not(.content-bottom~.footer),.content--no-footer{border-end-end-radius:.25rem;border-end-start-radius:.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-context-text-internal)}.footer{z-index:var(--calcite-z-index-header);margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:.25rem;border-end-start-radius:.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;margin-inline-end:auto}.secondary{margin-inline:.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{inline-size:auto}:host([width-scale=s]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 32rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 35rem){:host([width-scale=s]) .modal{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=s]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=s][docked]) .container{align-items:flex-end}}:host([width-scale=m]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 48rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 51rem){:host([width-scale=m]) .modal{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=m]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=m][docked]) .container{align-items:flex-end}}:host([width-scale=l]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 94rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 97rem){:host([width-scale=l]) .modal{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=l]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=l][docked]) .container{align-items:flex-end}}:host([fullscreen]) .modal{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0;--calcite-modal-hidden-position: translate3D(0, 20px, 0) scale(.95);--calcite-modal-shown-position: translate3D(0, 0, 0) scale(1)}:host([fullscreen]) .content{max-block-size:100%;flex:1 1 auto}:host([opened][fullscreen]) .header,:host([opened][fullscreen]) .footer,:host([opened][fullscreen]) .content-top,:host([opened][fullscreen]) .content-bottom{border-radius:0}:host([docked]) .modal{block-size:var(--calcite-modal-height, auto)}:host([docked]) .content{block-size:auto;flex:1 1 auto}:host([kind=brand]) .modal{border-color:var(--calcite-color-brand)}:host([kind=danger]) .modal{border-color:var(--calcite-color-status-danger)}:host([kind=info]) .modal{border-color:var(--calcite-color-status-info)}:host([kind=success]) .modal{border-color:var(--calcite-color-status-success)}:host([kind=warning]) .modal{border-color:var(--calcite-color-status-warning)}:host([kind=brand]) .modal,:host([kind=danger]) .modal,:host([kind=info]) .modal,:host([kind=success]) .modal,:host([kind=warning]) .modal{border-width:0px;border-block-start-width:4px;border-style:solid}:host([kind=brand]) .header,:host([kind=brand]) .content-top,:host([kind=danger]) .header,:host([kind=danger]) .content-top,:host([kind=info]) .header,:host([kind=info]) .content-top,:host([kind=success]) .header,:host([kind=success]) .content-top,:host([kind=warning]) .header,:host([kind=warning]) .content-top{border-radius:.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){* slot[name=header]::slotted(content-top),* content-top::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer,.content-bottom{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){.footer,.content-bottom{flex-direction:column}.back,.secondary{margin:0;margin-block-end:.25rem}}:host([hidden]){display:none}[hidden]{display:none}`,d=0,H="",x=class extends w{constructor(){super(),this.closeButtonEl=b(),this.cssVarObserver=m("mutation",()=>{this.updateSizeCssVars()}),this.ignoreOpenChange=!1,this.modalContent=b(),this.mutationObserver=m("mutation",()=>this.updateFocusTrapElements()),this._open=!1,this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteModalOpen",this.openEnd)},this.openTransitionProp="opacity",this.hasBack=!1,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasFooter=!1,this.hasPrimary=!1,this.hasSecondary=!1,this.closeButtonDisabled=!1,this.escapeDisabled=!1,this.focusTrapDisabled=!1,this.messages=T(),this.opened=!1,this.outsideCloseDisabled=!1,this.scale="m",this.widthScale="m",this.calciteModalBeforeClose=l({cancelable:!1}),this.calciteModalBeforeOpen=l({cancelable:!1}),this.calciteModalClose=l({cancelable:!1}),this.calciteModalOpen=l({cancelable:!1}),this.keyDownHandler=e=>{let{defaultPrevented:o,key:P}=e;!o&&this.focusTrapDisabled&&this.open&&!this.escapeDisabled&&P==="Escape"&&(e.preventDefault(),this.open=!1)},this.listen("keydown",this.keyDownHandler)}static{this.properties={contentEl:16,cssHeight:16,cssWidth:16,hasBack:16,hasContentBottom:16,hasContentTop:16,hasFooter:16,hasPrimary:16,hasSecondary:16,titleEl:16,beforeClose:0,closeButtonDisabled:7,docked:7,escapeDisabled:7,focusTrapDisabled:7,fullscreen:7,kind:3,messageOverrides:0,open:7,opened:7,outsideCloseDisabled:7,scale:3,widthScale:3}}static{this.styles=A}get open(){return this._open}set open(e){let o=this._open;e!==o&&(this._open=e,this.toggleModal(e))}async scrollContent(e=0,o=0){this.modalContent.value&&(this.modalContent.value.scrollTo?this.modalContent.value.scrollTo({top:e,left:o,behavior:"smooth"}):(this.modalContent.value.scrollTop=e,this.modalContent.value.scrollLeft=o))}async setFocus(){await E(this),C(this.el)}async updateFocusTrapElements(){F(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.cssVarObserver?.observe(this.el,{attributeFilter:["style"]}),this.updateSizeCssVars(),M(this,{focusTrapOptions:{clickOutsideDeactivates:!1,escapeDeactivates:e=>(!e.defaultPrevented&&!this.escapeDisabled&&(this.open=!1,e.preventDefault()),!1)}})}async load(){$.deprecated("component",{name:"modal",removalVersion:4,suggested:"dialog"}),O(this),this.open&&this.openModal()}willUpdate(e){e.has("focusTrapDisabled")&&(this.hasUpdated||this.focusTrapDisabled!==!1)&&this.handleFocusTrapDisabled(this.focusTrapDisabled),(e.has("hasBack")&&(this.hasUpdated||this.hasBack!==!1)||e.has("hasPrimary")&&(this.hasUpdated||this.hasPrimary!==!1)||e.has("hasSecondary")&&(this.hasUpdated||this.hasSecondary!==!1))&&(this.hasFooter=this.hasBack||this.hasPrimary||this.hasSecondary),e.has("opened")&&(this.hasUpdated||this.opened!==!1)&&this.handleOpenedChange(this.opened)}loaded(){S(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),this.cssVarObserver?.disconnect(),c(this)}handleFocusTrapDisabled(e){this.open&&(e?c(this):f(this))}handleHeaderSlotChange(e){this.titleEl=g(e)[0]}handleContentSlotChange(e){this.contentEl=g(e)[0]}handleBackSlotChange(e){this.hasBack=n(e)}handlePrimarySlotChange(e){this.hasPrimary=n(e)}handleSecondarySlotChange(e){this.hasSecondary=n(e)}setTransitionEl(e){this.transitionEl=e}onBeforeOpen(){this.transitionEl?.classList.add(t.openingActive),this.calciteModalBeforeOpen.emit()}onOpen(){this.transitionEl?.classList.remove(t.openingIdle,t.openingActive),this.calciteModalOpen.emit(),f(this)}onBeforeClose(){this.transitionEl?.classList.add(t.closingActive),this.calciteModalBeforeClose.emit()}onClose(){this.transitionEl?.classList.remove(t.closingIdle,t.closingActive),this.calciteModalClose.emit(),c(this)}toggleModal(e){this.ignoreOpenChange||(e?this.openModal():this.closeModal())}handleOpenedChange(e){let o=e?t.openingIdle:t.closingIdle;this.transitionEl.classList.add(o),D(this)}handleCloseClick(){this.open=!1}async openModal(){await this.componentOnReady(),this.el.addEventListener("calciteModalOpen",this.openEnd),this.opened=!0,this.titleId=u(this.titleEl),this.contentId=u(this.contentEl),v(this.el)===document.body&&(d===0&&(H=document.documentElement.style.overflow),d++,document.documentElement.style.setProperty("overflow","hidden"))}handleOutsideClose(){this.outsideCloseDisabled||(this.open=!1)}async closeModal(){if(this.beforeClose)try{await this.beforeClose(this.el)}catch{requestAnimationFrame(()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1});return}v(this.el)===document.body&&(d--,d===0&&this.removeOverflowHiddenClass()),this.opened=!1}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",H)}updateSizeCssVars(){this.cssWidth=getComputedStyle(this.el).getPropertyValue("--calcite-modal-width"),this.cssHeight=getComputedStyle(this.el).getPropertyValue("--calcite-modal-height")}contentTopSlotChangeHandler(e){this.hasContentTop=n(e)}contentBottomSlotChangeHandler(e){this.hasContentBottom=n(e)}render(){return h(this.el,"aria-describedby",this.contentId),h(this.el,"aria-labelledby",this.titleId),this.el.ariaModal="true",this.el.role="dialog",a`<div class=${i({[t.container]:!0,[t.containerOpen]:this.opened})}><calcite-scrim class=${i(t.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>${this.renderStyle()}<div class=${i({[t.modal]:!0})} ${r(this.setTransitionEl)}><div class=${i(t.header)}>${this.renderCloseButton()}<header class=${i(t.title)}><slot name=${t.header} @slotchange=${this.handleHeaderSlotChange}></slot></header></div>${this.renderContentTop()}<div class=${i({[t.content]:!0,[t.contentNoFooter]:!this.hasFooter})} ${r(this.modalContent)}><slot name=${s.content} @slotchange=${this.handleContentSlotChange}></slot></div>${this.renderContentBottom()}${this.renderFooter()}</div></div>`}renderFooter(){return p("footer",a`<div class=${i(t.footer)} .hidden=${!this.hasFooter}><span class=${i(t.back)}><slot name=${s.back} @slotchange=${this.handleBackSlotChange}></slot></span><span class=${i(t.secondary)}><slot name=${s.secondary} @slotchange=${this.handleSecondarySlotChange}></slot></span><span class=${i(t.primary)}><slot name=${s.primary} @slotchange=${this.handlePrimarySlotChange}></slot></span></div>`)}renderContentTop(){return a`<div class=${i(t.contentTop)} .hidden=${!this.hasContentTop}><slot name=${s.contentTop} @slotchange=${this.contentTopSlotChangeHandler}></slot></div>`}renderContentBottom(){return a`<div class=${i(t.contentBottom)} .hidden=${!this.hasContentBottom}><slot name=${s.contentBottom} @slotchange=${this.contentBottomSlotChangeHandler}></slot></div>`}renderCloseButton(){return this.closeButtonDisabled?null:p("button",a`<button .ariaLabel=${this.messages.close} class=${i(t.close)} @click=${this.handleCloseClick} title=${this.messages.close??y} ${r(this.closeButtonEl)}><calcite-icon .icon=${L.close} .scale=${B(this.scale)}></calcite-icon></button>`)}renderStyle(){if(!this.fullscreen&&(this.cssWidth||this.cssHeight))return a`<style>${`.${t.container} {
6
+ import{a as M,b as f,c,d as F}from"./2PEHYZ4L.js";import{p as v}from"./YQTMIBE6.js";import{a as D}from"./S7EVRK3H.js";import{a as p}from"./YSMO2SQT.js";import{a as B}from"./EDCACF6E.js";import{a as $}from"./XGWBARG2.js";import{a as m}from"./PLSMUSSW.js";import{a as T}from"./SJRWPOIJ.js";import{a as b,b as r}from"./ZIQYLGSK.js";import{b as u,n as C,u as n,v as g}from"./IHS2TS4Q.js";import{a as O,b as S,d as E}from"./4JN6R433.js";import"./VUU4B2RQ.js";import{I as z,d as k,e as a,i as y,u as l,v as w,w as i,z as h}from"./SNOC4YCH.js";var t={modal:"modal",title:"title",header:"header",footer:"footer",scrim:"scrim",back:"back",close:"close",secondary:"secondary",primary:"primary",container:"container",containerOpen:"container--open",containerEmbedded:"container--embedded",content:"content",contentNoFooter:"content--no-footer",contentBottom:"content-bottom",contentTop:"content-top",openingIdle:"modal--opening-idle",openingActive:"modal--opening-active",closingIdle:"modal--closing-idle",closingActive:"modal--closing-active"},L={close:"x"},s={content:"content",contentBottom:"content-bottom",contentTop:"content-top",header:"header",back:"back",secondary:"secondary",primary:"primary"},A=k`:host{--calcite-modal-scrim-background: rgba(0, 0, 0, .85);position:fixed;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;opacity:0;visibility:hidden!important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);--calcite-modal-scrim-background-internal: rgba(0, 0, 0, .85)}.content-top[hidden],.content-bottom[hidden]{display:none}.container{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden!important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88)}:host([scale=s]){--calcite-modal-padding-internal: .75rem;--calcite-modal-padding-large-internal: 1rem;--calcite-modal-title-text-internal: var(--calcite-font-size-1);--calcite-modal-content-text-internal: var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding-internal: 1rem;--calcite-modal-padding-large-internal: 1.25rem;--calcite-modal-title-text-internal: var(--calcite-font-size-2);--calcite-modal-content-text-internal: var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding-internal: 1.25rem;--calcite-modal-padding-large-internal: 1.5rem;--calcite-modal-title-text-internal: var(--calcite-font-size-3);--calcite-modal-content-text-internal: var(--calcite-font-size-1)}.scrim{--calcite-scrim-background: var(--calcite-modal-scrim-background, var(--calcite-color-transparent-scrim));position:absolute;inset:0;display:flex;overflow-y:hidden}.modal{pointer-events:none;z-index:var(--calcite-z-index-modal);float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:.25rem;background-color:var(--calcite-color-foreground-1);opacity:0;--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);--calcite-modal-hidden-position: translate3d(0, 20px, 0);--calcite-modal-shown-position: translate3d(0, 0, 0)}.modal--opening-idle{transform:var(--calcite-modal-hidden-position)}.modal--opening-active,.modal--closing-idle{transform:var(--calcite-modal-shown-position)}.modal--closing-active{transform:var(--calcite-modal-hidden-position)}:host([opened]){opacity:1;visibility:visible!important;transition-delay:0ms}.container--open{opacity:1;visibility:visible!important;transition-delay:0ms}.container--open .modal{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear,opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);transition-delay:0ms}.header{z-index:var(--calcite-z-index-header);display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:.25rem;border-start-end-radius:.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto}.close{order:2;margin:0;cursor:pointer;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-internal);flex:0 0 auto}.close calcite-icon{vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.close:hover,.close:focus,.close:active{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}.title{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-1);font-size:var(--calcite-modal-title-text-internal)}.content{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;padding:0;background-color:var(--calcite-modal-content-background, var(--calcite-color-foreground-1));max-block-size:100%;padding:var(--calcite-modal-content-padding, var(--calcite-modal-padding-internal))}.content-top,.content-bottom{z-index:var(--calcite-z-index-header);display:flex;border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto;padding:var(--calcite-modal-padding-internal)}.content-top{min-inline-size:0px;max-inline-size:100%;border-block-end-width:1px}.content-bottom{margin-block-start:auto;box-sizing:border-box;inline-size:100%;justify-content:space-between;border-block-start-width:1px}.content-top:not(.header~.content-top){border-start-start-radius:.25rem;border-start-end-radius:.25rem}.content-bottom:not(.content-bottom~.footer),.content--no-footer{border-end-end-radius:.25rem;border-end-start-radius:.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-context-text-internal)}.footer{z-index:var(--calcite-z-index-header);margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:.25rem;border-end-start-radius:.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;margin-inline-end:auto}.secondary{margin-inline:.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{inline-size:auto}:host([width-scale=s]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 32rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 35rem){:host([width-scale=s]) .modal{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=s]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=s][docked]) .container{align-items:flex-end}}:host([width-scale=m]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 48rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 51rem){:host([width-scale=m]) .modal{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=m]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=m][docked]) .container{align-items:flex-end}}:host([width-scale=l]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 94rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 97rem){:host([width-scale=l]) .modal{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=l]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=l][docked]) .container{align-items:flex-end}}:host([fullscreen]) .modal{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0;--calcite-modal-hidden-position: translate3D(0, 20px, 0) scale(.95);--calcite-modal-shown-position: translate3D(0, 0, 0) scale(1)}:host([fullscreen]) .content{max-block-size:100%;flex:1 1 auto}:host([opened][fullscreen]) .header,:host([opened][fullscreen]) .footer,:host([opened][fullscreen]) .content-top,:host([opened][fullscreen]) .content-bottom{border-radius:0}:host([docked]) .modal{block-size:var(--calcite-modal-height, auto)}:host([docked]) .content{block-size:auto;flex:1 1 auto}:host([kind=brand]) .modal{border-color:var(--calcite-color-brand)}:host([kind=danger]) .modal{border-color:var(--calcite-color-status-danger)}:host([kind=info]) .modal{border-color:var(--calcite-color-status-info)}:host([kind=success]) .modal{border-color:var(--calcite-color-status-success)}:host([kind=warning]) .modal{border-color:var(--calcite-color-status-warning)}:host([kind=brand]) .modal,:host([kind=danger]) .modal,:host([kind=info]) .modal,:host([kind=success]) .modal,:host([kind=warning]) .modal{border-width:0px;border-block-start-width:4px;border-style:solid}:host([kind=brand]) .header,:host([kind=brand]) .content-top,:host([kind=danger]) .header,:host([kind=danger]) .content-top,:host([kind=info]) .header,:host([kind=info]) .content-top,:host([kind=success]) .header,:host([kind=success]) .content-top,:host([kind=warning]) .header,:host([kind=warning]) .content-top{border-radius:.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){* slot[name=header]::slotted(content-top),* content-top::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer,.content-bottom{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){.footer,.content-bottom{flex-direction:column}.back,.secondary{margin:0;margin-block-end:.25rem}}:host([hidden]){display:none}[hidden]{display:none}`,d=0,H="",x=class extends w{constructor(){super(),this.closeButtonEl=b(),this.cssVarObserver=m("mutation",()=>{this.updateSizeCssVars()}),this.ignoreOpenChange=!1,this.modalContent=b(),this.mutationObserver=m("mutation",()=>this.updateFocusTrapElements()),this._open=!1,this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteModalOpen",this.openEnd)},this.openTransitionProp="opacity",this.hasBack=!1,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasFooter=!1,this.hasPrimary=!1,this.hasSecondary=!1,this.closeButtonDisabled=!1,this.escapeDisabled=!1,this.focusTrapDisabled=!1,this.messages=T(),this.opened=!1,this.outsideCloseDisabled=!1,this.scale="m",this.widthScale="m",this.calciteModalBeforeClose=l({cancelable:!1}),this.calciteModalBeforeOpen=l({cancelable:!1}),this.calciteModalClose=l({cancelable:!1}),this.calciteModalOpen=l({cancelable:!1}),this.keyDownHandler=e=>{let{defaultPrevented:o,key:P}=e;!o&&this.focusTrapDisabled&&this.open&&!this.escapeDisabled&&P==="Escape"&&(e.preventDefault(),this.open=!1)},this.listen("keydown",this.keyDownHandler)}static{this.properties={contentEl:16,cssHeight:16,cssWidth:16,hasBack:16,hasContentBottom:16,hasContentTop:16,hasFooter:16,hasPrimary:16,hasSecondary:16,titleEl:16,beforeClose:0,closeButtonDisabled:7,docked:7,escapeDisabled:7,focusTrapDisabled:7,fullscreen:7,kind:3,messageOverrides:0,open:7,opened:7,outsideCloseDisabled:7,scale:3,widthScale:3}}static{this.styles=A}get open(){return this._open}set open(e){let o=this._open;e!==o&&(this._open=e,this.toggleModal(e))}async scrollContent(e=0,o=0){this.modalContent.value&&(this.modalContent.value.scrollTo?this.modalContent.value.scrollTo({top:e,left:o,behavior:"smooth"}):(this.modalContent.value.scrollTop=e,this.modalContent.value.scrollLeft=o))}async setFocus(){await E(this),C(this.el)}async updateFocusTrapElements(){F(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.cssVarObserver?.observe(this.el,{attributeFilter:["style"]}),this.updateSizeCssVars(),M(this,{focusTrapOptions:{clickOutsideDeactivates:!1,escapeDeactivates:e=>(!e.defaultPrevented&&!this.escapeDisabled&&(this.open=!1,e.preventDefault()),!1)}})}async load(){$.deprecated("component",{name:"modal",removalVersion:4,suggested:"dialog"}),O(this),this.open&&this.openModal()}willUpdate(e){e.has("focusTrapDisabled")&&(this.hasUpdated||this.focusTrapDisabled!==!1)&&this.handleFocusTrapDisabled(this.focusTrapDisabled),(e.has("hasBack")&&(this.hasUpdated||this.hasBack!==!1)||e.has("hasPrimary")&&(this.hasUpdated||this.hasPrimary!==!1)||e.has("hasSecondary")&&(this.hasUpdated||this.hasSecondary!==!1))&&(this.hasFooter=this.hasBack||this.hasPrimary||this.hasSecondary),e.has("opened")&&(this.hasUpdated||this.opened!==!1)&&this.handleOpenedChange(this.opened)}loaded(){S(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),this.cssVarObserver?.disconnect(),c(this)}handleFocusTrapDisabled(e){this.open&&(e?c(this):f(this))}handleHeaderSlotChange(e){this.titleEl=g(e)[0]}handleContentSlotChange(e){this.contentEl=g(e)[0]}handleBackSlotChange(e){this.hasBack=n(e)}handlePrimarySlotChange(e){this.hasPrimary=n(e)}handleSecondarySlotChange(e){this.hasSecondary=n(e)}setTransitionEl(e){this.transitionEl=e}onBeforeOpen(){this.transitionEl?.classList.add(t.openingActive),this.calciteModalBeforeOpen.emit()}onOpen(){this.transitionEl?.classList.remove(t.openingIdle,t.openingActive),this.calciteModalOpen.emit(),f(this)}onBeforeClose(){this.transitionEl?.classList.add(t.closingActive),this.calciteModalBeforeClose.emit()}onClose(){this.transitionEl?.classList.remove(t.closingIdle,t.closingActive),this.calciteModalClose.emit(),c(this)}toggleModal(e){this.ignoreOpenChange||(e?this.openModal():this.closeModal())}handleOpenedChange(e){let o=e?t.openingIdle:t.closingIdle;this.transitionEl.classList.add(o),D(this)}handleCloseClick(){this.open=!1}async openModal(){await this.componentOnReady(),this.el.addEventListener("calciteModalOpen",this.openEnd),this.opened=!0,this.titleId=u(this.titleEl),this.contentId=u(this.contentEl),v(this.el)===document.body&&(d===0&&(H=document.documentElement.style.overflow),d++,document.documentElement.style.setProperty("overflow","hidden"))}handleOutsideClose(){this.outsideCloseDisabled||(this.open=!1)}async closeModal(){if(this.beforeClose)try{await this.beforeClose(this.el)}catch{requestAnimationFrame(()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1});return}v(this.el)===document.body&&(d--,d===0&&this.removeOverflowHiddenClass()),this.opened=!1}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",H)}updateSizeCssVars(){this.cssWidth=getComputedStyle(this.el).getPropertyValue("--calcite-modal-width"),this.cssHeight=getComputedStyle(this.el).getPropertyValue("--calcite-modal-height")}contentTopSlotChangeHandler(e){this.hasContentTop=n(e)}contentBottomSlotChangeHandler(e){this.hasContentBottom=n(e)}render(){return h(this.el,"aria-describedby",this.contentId),h(this.el,"aria-labelledby",this.titleId),this.el.ariaModal="true",this.el.role="dialog",a`<div class=${i({[t.container]:!0,[t.containerOpen]:this.opened})}><calcite-scrim class=${i(t.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>${this.renderStyle()}<div class=${i({[t.modal]:!0})} ${r(this.setTransitionEl)}><div class=${i(t.header)}>${this.renderCloseButton()}<header class=${i(t.title)}><slot name=${t.header} @slotchange=${this.handleHeaderSlotChange}></slot></header></div>${this.renderContentTop()}<div class=${i({[t.content]:!0,[t.contentNoFooter]:!this.hasFooter})} ${r(this.modalContent)}><slot name=${s.content} @slotchange=${this.handleContentSlotChange}></slot></div>${this.renderContentBottom()}${this.renderFooter()}</div></div>`}renderFooter(){return p("footer",a`<div class=${i(t.footer)} .hidden=${!this.hasFooter}><span class=${i(t.back)}><slot name=${s.back} @slotchange=${this.handleBackSlotChange}></slot></span><span class=${i(t.secondary)}><slot name=${s.secondary} @slotchange=${this.handleSecondarySlotChange}></slot></span><span class=${i(t.primary)}><slot name=${s.primary} @slotchange=${this.handlePrimarySlotChange}></slot></span></div>`)}renderContentTop(){return a`<div class=${i(t.contentTop)} .hidden=${!this.hasContentTop}><slot name=${s.contentTop} @slotchange=${this.contentTopSlotChangeHandler}></slot></div>`}renderContentBottom(){return a`<div class=${i(t.contentBottom)} .hidden=${!this.hasContentBottom}><slot name=${s.contentBottom} @slotchange=${this.contentBottomSlotChangeHandler}></slot></div>`}renderCloseButton(){return this.closeButtonDisabled?null:p("button",a`<button .ariaLabel=${this.messages.close} class=${i(t.close)} @click=${this.handleCloseClick} title=${this.messages.close??y} ${r(this.closeButtonEl)}><calcite-icon .icon=${L.close} .scale=${B(this.scale)}></calcite-icon></button>`)}renderStyle(){if(!this.fullscreen&&(this.cssWidth||this.cssHeight))return a`<style>${`.${t.container} {
7
7
  ${this.docked&&this.cssWidth?"align-items: center !important;":""}
8
8
  }
9
9
  .${t.modal} {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.83
4
+ * v3.0.0-next.85
5
5
  */
6
- import{a as b,b as I}from"./Q5S4T4OJ.js";import{a as r,b as p}from"./N7VMLAU3.js";import{v as m,z as i}from"./ZAXAVOLY.js";import{a as u,b as f,d as g}from"./NMMMKGFW.js";import"./FV4OVQDJ.js";import{I as d,d as c,e as o,u as n,v as h}from"./BS4SPFFW.js";var S=c`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}.container{display:flex;inline-size:100%;flex-wrap:wrap;gap:.5rem}::slotted(calcite-chip){flex:none}:host([scale=s]) .container{gap:.25rem}:host([scale=l]) .container{gap:.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,a=class extends h{constructor(){super(),this.items=[],this.slotRefEl=r(),this.disabled=!1,this.scale="m",this.selectedItems=[],this.selectionMode="none",this.calciteChipGroupSelect=n({cancelable:!1}),this.listen("calciteInternalChipKeyEvent",this.calciteInternalChipKeyEventListener),this.listen("calciteChipClose",this.calciteChipCloseListener),this.listen("calciteChipSelect",this.calciteChipSelectListener),this.listen("calciteInternalChipSelect",this.calciteInternalChipSelectListener),this.listen("calciteInternalSyncSelectedChips",this.calciteInternalSyncSelectedChips)}static{this.properties={disabled:7,label:1,scale:3,selectedItems:0,selectionMode:3}}static{this.styles=S}async setFocus(){if(await g(this),!this.disabled)return(this.selectedItems[0]||this.items[0])?.setFocus()}load(){u(this)}willUpdate(e){e.has("selectionMode")&&(this.hasUpdated||this.selectionMode!=="none")&&this.updateItems()}updated(){b(this)}loaded(){f(this)}calciteInternalChipKeyEventListener(e){if(e.composedPath().includes(this.el)){let t=this.items?.filter(s=>!s.disabled);switch(e.detail.key){case"ArrowRight":i(t,e.detail.target,"next");break;case"ArrowLeft":i(t,e.detail.target,"previous");break;case"Home":i(t,e.detail.target,"first");break;case"End":i(t,e.detail.target,"last");break}}e.stopPropagation()}calciteChipCloseListener(e){let t=e.target;this.items?.includes(t)&&(this.items?.indexOf(t)>0?i(this.items,t,"previous"):this.items?.indexOf(t)===0?i(this.items,t,"next"):i(this.items,t,"first")),this.items=this.items?.filter(s=>s!==t),e.stopPropagation()}calciteChipSelectListener(e){e.composedPath().includes(this.el)&&this.setSelectedItems(!0,e.target),e.stopPropagation()}calciteInternalChipSelectListener(e){e.composedPath().includes(this.el)&&this.setSelectedItems(!1,e.target),e.stopPropagation()}calciteInternalSyncSelectedChips(e){e.composedPath().includes(this.el)&&(this.updateSelectedItems(),this.selectionMode==="single"&&this.selectedItems.length>1&&this.setSelectedItems(!1,e.target)),e.stopPropagation()}updateItems(e){let t=this.slotRefEl.value?.assignedElements({flatten:!0}).filter(s=>s?.matches("calcite-chip"));this.items=e?m(e):t,!(this.items?.length<1)&&(this.items?.forEach(s=>{s.interactive=!0,s.scale=this.scale,s.selectionMode=this.selectionMode,s.parentChipGroup=this.el}),this.setSelectedItems(!1))}updateSelectedItems(){this.selectedItems=this.items?.filter(e=>e.selected)}setSelectedItems(e,t){t&&this.items?.forEach(s=>{let l=t===s;switch(this.selectionMode){case"multiple":l&&(s.selected=!s.selected);break;case"single":s.selected=l?!s.selected:!1;break;case"single-persist":s.selected=!!l;break}}),this.updateSelectedItems(),e&&this.calciteChipGroupSelect.emit()}render(){let e=this.selectionMode==="none"||this.selectionMode==="multiple"?"group":"radiogroup",{disabled:t}=this;return I({disabled:t,children:o`<div .ariaLabel=${this.label} class="container" .role=${e}><slot @slotchange=${this.updateItems} ${p(this.slotRefEl)}></slot></div>`})}};d("calcite-chip-group",a);export{a as ChipGroup};
6
+ import{a as b,b as I}from"./AGZ4OPEG.js";import{a as r,b as p}from"./ZIQYLGSK.js";import{v as m,z as i}from"./IHS2TS4Q.js";import{a as u,b as f,d as g}from"./4JN6R433.js";import"./VUU4B2RQ.js";import{I as d,d as c,e as o,u as n,v as h}from"./SNOC4YCH.js";var S=c`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}.container{display:flex;inline-size:100%;flex-wrap:wrap;gap:.5rem}::slotted(calcite-chip){flex:none}:host([scale=s]) .container{gap:.25rem}:host([scale=l]) .container{gap:.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,a=class extends h{constructor(){super(),this.items=[],this.slotRefEl=r(),this.disabled=!1,this.scale="m",this.selectedItems=[],this.selectionMode="none",this.calciteChipGroupSelect=n({cancelable:!1}),this.listen("calciteInternalChipKeyEvent",this.calciteInternalChipKeyEventListener),this.listen("calciteChipClose",this.calciteChipCloseListener),this.listen("calciteChipSelect",this.calciteChipSelectListener),this.listen("calciteInternalChipSelect",this.calciteInternalChipSelectListener),this.listen("calciteInternalSyncSelectedChips",this.calciteInternalSyncSelectedChips)}static{this.properties={disabled:7,label:1,scale:3,selectedItems:0,selectionMode:3}}static{this.styles=S}async setFocus(){if(await g(this),!this.disabled)return(this.selectedItems[0]||this.items[0])?.setFocus()}load(){u(this)}willUpdate(e){e.has("selectionMode")&&(this.hasUpdated||this.selectionMode!=="none")&&this.updateItems()}updated(){b(this)}loaded(){f(this)}calciteInternalChipKeyEventListener(e){if(e.composedPath().includes(this.el)){let t=this.items?.filter(s=>!s.disabled);switch(e.detail.key){case"ArrowRight":i(t,e.detail.target,"next");break;case"ArrowLeft":i(t,e.detail.target,"previous");break;case"Home":i(t,e.detail.target,"first");break;case"End":i(t,e.detail.target,"last");break}}e.stopPropagation()}calciteChipCloseListener(e){let t=e.target;this.items?.includes(t)&&(this.items?.indexOf(t)>0?i(this.items,t,"previous"):this.items?.indexOf(t)===0?i(this.items,t,"next"):i(this.items,t,"first")),this.items=this.items?.filter(s=>s!==t),e.stopPropagation()}calciteChipSelectListener(e){e.composedPath().includes(this.el)&&this.setSelectedItems(!0,e.target),e.stopPropagation()}calciteInternalChipSelectListener(e){e.composedPath().includes(this.el)&&this.setSelectedItems(!1,e.target),e.stopPropagation()}calciteInternalSyncSelectedChips(e){e.composedPath().includes(this.el)&&(this.updateSelectedItems(),this.selectionMode==="single"&&this.selectedItems.length>1&&this.setSelectedItems(!1,e.target)),e.stopPropagation()}updateItems(e){let t=this.slotRefEl.value?.assignedElements({flatten:!0}).filter(s=>s?.matches("calcite-chip"));this.items=e?m(e):t,!(this.items?.length<1)&&(this.items?.forEach(s=>{s.interactive=!0,s.scale=this.scale,s.selectionMode=this.selectionMode,s.parentChipGroup=this.el}),this.setSelectedItems(!1))}updateSelectedItems(){this.selectedItems=this.items?.filter(e=>e.selected)}setSelectedItems(e,t){t&&this.items?.forEach(s=>{let l=t===s;switch(this.selectionMode){case"multiple":l&&(s.selected=!s.selected);break;case"single":s.selected=l?!s.selected:!1;break;case"single-persist":s.selected=!!l;break}}),this.updateSelectedItems(),e&&this.calciteChipGroupSelect.emit()}render(){let e=this.selectionMode==="none"||this.selectionMode==="multiple"?"group":"radiogroup",{disabled:t}=this;return I({disabled:t,children:o`<div .ariaLabel=${this.label} class="container" .role=${e}><slot @slotchange=${this.updateItems} ${p(this.slotRefEl)}></slot></div>`})}};d("calcite-chip-group",a);export{a as ChipGroup};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.83
4
+ * v3.0.0-next.85
5
5
  */
6
- import{a as w,b as C}from"./Q5S4T4OJ.js";import{a as k}from"./7FFGUIPH.js";import{a as f,b as x,d as y}from"./NMMMKGFW.js";import{a as v}from"./FV4OVQDJ.js";import{I as m,d as p,e as l,u as g,v as b,w as n}from"./BS4SPFFW.js";var i={checked:"checked",description:"description",descriptionOnly:"description-only",disabled:"disabled",heading:"heading",headingOnly:"heading-only",icon:"icon",iconOnly:"icon-only",inputAlignmentEnd:"input-alignment-end",inputAlignmentStart:"input-alignment-start",inputEnabled:"input-enabled",largeVisual:"large-visual",tile:"tile",tileContentContainer:"tile-content-container",tileContent:"tile-content",tileDescription:"tile-description",tileHeading:"tile-heading",tileLargeVisual:"tile--large-visual",widthAuto:"width-auto",widthFull:"width-full"},$=p`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host .container{background-color:var(--calcite-color-foreground-1);box-shadow:0 0 0 1px var(--calcite-color-border-2);box-sizing:border-box;cursor:pointer;display:inline-block;block-size:100%;max-inline-size:300px;padding:.75rem;position:relative;vertical-align:top;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}:host .container.checked{z-index:var(--calcite-z-index);box-shadow:0 0 0 1px var(--calcite-color-brand)}:host .container.heading-only{align-items:center}:host .container:not(.input-enabled) ::slotted(calcite-checkbox),:host .container:not(.input-enabled) ::slotted(calcite-radio-button){position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host .container.focused{outline-color:transparent}:host .container.focused:not(.disabled):not(.input-enabled){outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))));outline-offset:-4px;box-shadow:0 0 0 1px var(--calcite-color-brand),inset 0 0 0 2px var(--calcite-color-foreground-1)}:host .container.input-enabled.input-alignment-start.width-auto.heading-only,:host .container.input-enabled.input-alignment-start.width-auto.icon-only,:host .container.input-enabled.input-alignment-start.width-auto.description-only,:host .container.input-enabled.input-alignment-start.width-auto.heading.description,:host .container.input-enabled.input-alignment-start.width-auto.icon.description,:host .container.input-enabled.input-alignment-start.width-auto.heading.icon.description{display:inline-grid;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-start.heading-only,:host .container.input-enabled.input-alignment-start.icon-only,:host .container.input-enabled.input-alignment-start.description-only,:host .container.input-enabled.input-alignment-start.heading.description,:host .container.input-enabled.input-alignment-start.icon.description,:host .container.input-enabled.input-alignment-start.heading.icon.description{gap:.75rem}:host .container.input-enabled.input-alignment-start .tile{order:1}:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:.75rem;inset-inline-start:.75rem}:host .container.input-enabled.input-alignment-end.width-auto.heading-only,:host .container.input-enabled.input-alignment-end.width-auto.icon-only{display:inline-grid;grid-gap:.75rem;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-end.heading-only,:host .container.input-enabled.input-alignment-end.icon-only{gap:.75rem}:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-radio-button){position:absolute;inset-block-start:.75rem;inset-inline-end:.75rem}:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:.75rem;inset-inline-end:.75rem}:host .container.width-full{display:flex;max-inline-size:none}:host .container.width-full .tile{flex:1 1 auto}.tile{pointer-events:none;box-sizing:border-box;display:flex;-webkit-user-select:none;user-select:none;flex-direction:column;gap:.5rem;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tile-content-container{display:flex;inline-size:100%;align-items:stretch;padding:0;color:var(--calcite-color-text-2);outline-color:transparent}.tile-content{display:flex;flex:1 1 auto;flex-direction:column;gap:.5rem;inline-size:10%}.tile-heading{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-2);transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tile-description{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-color-text-3);transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tile--large-visual{display:grid;justify-content:center;text-align:center;min-block-size:12rem}.tile--large-visual .icon{align-self:flex-end}.tile--large-visual calcite-icon{block-size:64px;inline-size:64px}.tile--large-visual .tile-content-container{align-self:center}:host(:hover) .container:not(.input-enabled){box-shadow:0 0 0 1px var(--calcite-color-brand)}:host(:hover) .tile-heading,.checked .tile-heading{color:var(--calcite-color-text-1)}:host(:hover) .tile-description,.checked .tile-description{color:var(--calcite-color-text-2)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,c=class extends b{constructor(){super(),this.guid=`calcite-tile-select-${v()}`,this.focused=!1,this.checked=!1,this.disabled=!1,this.iconFlipRtl=!1,this.inputAlignment="start",this.inputEnabled=!1,this.type="radio",this.width="auto",this.calciteTileSelectChange=g({cancelable:!1}),this.listen("calciteCheckboxChange",this.checkboxChangeHandler),this.listen("calciteInternalCheckboxFocus",this.checkboxFocusBlurHandler),this.listen("calciteInternalCheckboxBlur",this.checkboxFocusBlurHandler),this.listen("calciteRadioButtonChange",this.radioButtonChangeHandler),this.listen("calciteInternalRadioButtonCheckedChange",this.radioButtonCheckedChangeHandler),this.listen("calciteInternalRadioButtonFocus",this.radioButtonFocusBlurHandler),this.listen("calciteInternalRadioButtonBlur",this.radioButtonFocusBlurHandler),this.listen("click",this.clickHandler),this.listen("pointerenter",this.pointerEnterHandler),this.listen("pointerleave",this.pointerLeaveHandler)}static{this.properties={focused:16,checked:7,description:3,disabled:7,heading:3,icon:3,iconFlipRtl:7,inputAlignment:3,inputEnabled:7,name:3,type:3,value:1,width:3}}static{this.styles=$}async setFocus(){return await y(this),this.input?.setFocus()}connectedCallback(){super.connectedCallback(),this.renderInput()}load(){k.deprecated("component",{name:"tile-select",removalVersion:4,suggested:["tile","tile-group"]}),f(this)}willUpdate(t){t.has("checked")&&(this.hasUpdated||this.checked!==!1)&&(this.input.checked=this.checked),t.has("name")&&(this.input.name=this.name)}updated(){w(this)}loaded(){x(this)}disconnectedCallback(){super.disconnectedCallback(),this.input?.remove()}checkboxChangeHandler(t){let e=t.target;e===this.input&&(this.checked=e.checked),t.stopPropagation(),this.calciteTileSelectChange.emit()}checkboxFocusBlurHandler(t){t.target===this.input&&(this.focused=t.detail),t.stopPropagation()}radioButtonChangeHandler(t){let e=t.target;e===this.input&&(this.checked=e.checked),t.stopPropagation(),this.calciteTileSelectChange.emit()}radioButtonCheckedChangeHandler(t){let e=t.target;e===this.input&&(this.checked=e.checked),t.stopPropagation()}radioButtonFocusBlurHandler(t){let e=t.target;e===this.input&&(this.focused=e.focused),t.stopPropagation()}clickHandler(t){if(this.disabled)return;let e=t.target;["calcite-tile","calcite-tile-select"].includes(e.localName)&&this.input.click()}pointerEnterHandler(){if(this.disabled)return;let{localName:t}=this.input;(t==="calcite-radio-button"||t==="calcite-checkbox")&&(this.input.hovered=!0)}pointerLeaveHandler(){if(this.disabled)return;let{localName:t}=this.input;(t==="calcite-radio-button"||t==="calcite-checkbox")&&(this.input.hovered=!1)}renderInput(){this.input=this.type==="radio"?document.createElement("calcite-radio-button"):document.createElement("calcite-checkbox"),this.input.checked=this.checked,this.input.disabled=this.disabled,this.input.hidden=this.el.hidden,this.input.id=this.guid,this.input.label=this.heading||this.name||"",this.name&&(this.input.name=this.name),this.value&&(this.input.value=this.value!=null?this.value.toString():""),this.el.insertAdjacentElement("beforeend",this.input)}render(){let{checked:t,description:e,disabled:s,focused:z,heading:o,icon:a,inputAlignment:r,inputEnabled:H,width:d,iconFlipRtl:B}=this,h=o&&a&&!e,u=!!a;return C({disabled:s,children:l`<div class=${n({checked:t,container:!0,[i.description]:!!e,[i.descriptionOnly]:!!(!o&&!a&&e),disabled:s,focused:z,[i.heading]:!!o,[i.headingOnly]:o&&!a&&!e,[i.icon]:u,[i.iconOnly]:!o&&a&&!e,[i.inputAlignmentEnd]:r==="end",[i.inputAlignmentStart]:r==="start",[i.inputEnabled]:H,[i.largeVisual]:h,[i.widthAuto]:d==="auto",[i.widthFull]:d==="full"})}><div class=${n({[i.tile]:!0,[i.tileLargeVisual]:h})}>${a&&l`<div class=${n({[i.icon]:u})}><calcite-icon .flipRtl=${B} .icon=${a} scale=l></calcite-icon></div>`||""}<div class=${n(i.tileContentContainer)}><div class=${n(i.tileContent)}>${o&&l`<div class=${n(i.tileHeading)}>${o}</div>`||""}${e&&l`<div class=${n(i.tileDescription)}>${e}</div>`||""}</div></div></div><slot></slot></div>`})}};m("calcite-tile-select",c);export{c as TileSelect};
6
+ import{a as w,b as C}from"./AGZ4OPEG.js";import{a as k}from"./XGWBARG2.js";import{a as f,b as x,d as y}from"./4JN6R433.js";import{a as v}from"./VUU4B2RQ.js";import{I as m,d as p,e as l,u as g,v as b,w as n}from"./SNOC4YCH.js";var i={checked:"checked",description:"description",descriptionOnly:"description-only",disabled:"disabled",heading:"heading",headingOnly:"heading-only",icon:"icon",iconOnly:"icon-only",inputAlignmentEnd:"input-alignment-end",inputAlignmentStart:"input-alignment-start",inputEnabled:"input-enabled",largeVisual:"large-visual",tile:"tile",tileContentContainer:"tile-content-container",tileContent:"tile-content",tileDescription:"tile-description",tileHeading:"tile-heading",tileLargeVisual:"tile--large-visual",widthAuto:"width-auto",widthFull:"width-full"},$=p`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host .container{background-color:var(--calcite-color-foreground-1);box-shadow:0 0 0 1px var(--calcite-color-border-2);box-sizing:border-box;cursor:pointer;display:inline-block;block-size:100%;max-inline-size:300px;padding:.75rem;position:relative;vertical-align:top;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}:host .container.checked{z-index:var(--calcite-z-index);box-shadow:0 0 0 1px var(--calcite-color-brand)}:host .container.heading-only{align-items:center}:host .container:not(.input-enabled) ::slotted(calcite-checkbox),:host .container:not(.input-enabled) ::slotted(calcite-radio-button){position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host .container.focused{outline-color:transparent}:host .container.focused:not(.disabled):not(.input-enabled){outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))));outline-offset:-4px;box-shadow:0 0 0 1px var(--calcite-color-brand),inset 0 0 0 2px var(--calcite-color-foreground-1)}:host .container.input-enabled.input-alignment-start.width-auto.heading-only,:host .container.input-enabled.input-alignment-start.width-auto.icon-only,:host .container.input-enabled.input-alignment-start.width-auto.description-only,:host .container.input-enabled.input-alignment-start.width-auto.heading.description,:host .container.input-enabled.input-alignment-start.width-auto.icon.description,:host .container.input-enabled.input-alignment-start.width-auto.heading.icon.description{display:inline-grid;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-start.heading-only,:host .container.input-enabled.input-alignment-start.icon-only,:host .container.input-enabled.input-alignment-start.description-only,:host .container.input-enabled.input-alignment-start.heading.description,:host .container.input-enabled.input-alignment-start.icon.description,:host .container.input-enabled.input-alignment-start.heading.icon.description{gap:.75rem}:host .container.input-enabled.input-alignment-start .tile{order:1}:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:.75rem;inset-inline-start:.75rem}:host .container.input-enabled.input-alignment-end.width-auto.heading-only,:host .container.input-enabled.input-alignment-end.width-auto.icon-only{display:inline-grid;grid-gap:.75rem;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-end.heading-only,:host .container.input-enabled.input-alignment-end.icon-only{gap:.75rem}:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-radio-button){position:absolute;inset-block-start:.75rem;inset-inline-end:.75rem}:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:.75rem;inset-inline-end:.75rem}:host .container.width-full{display:flex;max-inline-size:none}:host .container.width-full .tile{flex:1 1 auto}.tile{pointer-events:none;box-sizing:border-box;display:flex;-webkit-user-select:none;user-select:none;flex-direction:column;gap:.5rem;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tile-content-container{display:flex;inline-size:100%;align-items:stretch;padding:0;color:var(--calcite-color-text-2);outline-color:transparent}.tile-content{display:flex;flex:1 1 auto;flex-direction:column;gap:.5rem;inline-size:10%}.tile-heading{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-2);transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tile-description{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-color-text-3);transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tile--large-visual{display:grid;justify-content:center;text-align:center;min-block-size:12rem}.tile--large-visual .icon{align-self:flex-end}.tile--large-visual calcite-icon{block-size:64px;inline-size:64px}.tile--large-visual .tile-content-container{align-self:center}:host(:hover) .container:not(.input-enabled){box-shadow:0 0 0 1px var(--calcite-color-brand)}:host(:hover) .tile-heading,.checked .tile-heading{color:var(--calcite-color-text-1)}:host(:hover) .tile-description,.checked .tile-description{color:var(--calcite-color-text-2)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,c=class extends b{constructor(){super(),this.guid=`calcite-tile-select-${v()}`,this.focused=!1,this.checked=!1,this.disabled=!1,this.iconFlipRtl=!1,this.inputAlignment="start",this.inputEnabled=!1,this.type="radio",this.width="auto",this.calciteTileSelectChange=g({cancelable:!1}),this.listen("calciteCheckboxChange",this.checkboxChangeHandler),this.listen("calciteInternalCheckboxFocus",this.checkboxFocusBlurHandler),this.listen("calciteInternalCheckboxBlur",this.checkboxFocusBlurHandler),this.listen("calciteRadioButtonChange",this.radioButtonChangeHandler),this.listen("calciteInternalRadioButtonCheckedChange",this.radioButtonCheckedChangeHandler),this.listen("calciteInternalRadioButtonFocus",this.radioButtonFocusBlurHandler),this.listen("calciteInternalRadioButtonBlur",this.radioButtonFocusBlurHandler),this.listen("click",this.clickHandler),this.listen("pointerenter",this.pointerEnterHandler),this.listen("pointerleave",this.pointerLeaveHandler)}static{this.properties={focused:16,checked:7,description:3,disabled:7,heading:3,icon:3,iconFlipRtl:7,inputAlignment:3,inputEnabled:7,name:3,type:3,value:1,width:3}}static{this.styles=$}async setFocus(){return await y(this),this.input?.setFocus()}connectedCallback(){super.connectedCallback(),this.renderInput()}load(){k.deprecated("component",{name:"tile-select",removalVersion:4,suggested:["tile","tile-group"]}),f(this)}willUpdate(t){t.has("checked")&&(this.hasUpdated||this.checked!==!1)&&(this.input.checked=this.checked),t.has("name")&&(this.input.name=this.name)}updated(){w(this)}loaded(){x(this)}disconnectedCallback(){super.disconnectedCallback(),this.input?.remove()}checkboxChangeHandler(t){let e=t.target;e===this.input&&(this.checked=e.checked),t.stopPropagation(),this.calciteTileSelectChange.emit()}checkboxFocusBlurHandler(t){t.target===this.input&&(this.focused=t.detail),t.stopPropagation()}radioButtonChangeHandler(t){let e=t.target;e===this.input&&(this.checked=e.checked),t.stopPropagation(),this.calciteTileSelectChange.emit()}radioButtonCheckedChangeHandler(t){let e=t.target;e===this.input&&(this.checked=e.checked),t.stopPropagation()}radioButtonFocusBlurHandler(t){let e=t.target;e===this.input&&(this.focused=e.focused),t.stopPropagation()}clickHandler(t){if(this.disabled)return;let e=t.target;["calcite-tile","calcite-tile-select"].includes(e.localName)&&this.input.click()}pointerEnterHandler(){if(this.disabled)return;let{localName:t}=this.input;(t==="calcite-radio-button"||t==="calcite-checkbox")&&(this.input.hovered=!0)}pointerLeaveHandler(){if(this.disabled)return;let{localName:t}=this.input;(t==="calcite-radio-button"||t==="calcite-checkbox")&&(this.input.hovered=!1)}renderInput(){this.input=this.type==="radio"?document.createElement("calcite-radio-button"):document.createElement("calcite-checkbox"),this.input.checked=this.checked,this.input.disabled=this.disabled,this.input.hidden=this.el.hidden,this.input.id=this.guid,this.input.label=this.heading||this.name||"",this.name&&(this.input.name=this.name),this.value&&(this.input.value=this.value!=null?this.value.toString():""),this.el.insertAdjacentElement("beforeend",this.input)}render(){let{checked:t,description:e,disabled:s,focused:z,heading:o,icon:a,inputAlignment:r,inputEnabled:H,width:d,iconFlipRtl:B}=this,h=o&&a&&!e,u=!!a;return C({disabled:s,children:l`<div class=${n({checked:t,container:!0,[i.description]:!!e,[i.descriptionOnly]:!!(!o&&!a&&e),disabled:s,focused:z,[i.heading]:!!o,[i.headingOnly]:o&&!a&&!e,[i.icon]:u,[i.iconOnly]:!o&&a&&!e,[i.inputAlignmentEnd]:r==="end",[i.inputAlignmentStart]:r==="start",[i.inputEnabled]:H,[i.largeVisual]:h,[i.widthAuto]:d==="auto",[i.widthFull]:d==="full"})}><div class=${n({[i.tile]:!0,[i.tileLargeVisual]:h})}>${a&&l`<div class=${n({[i.icon]:u})}><calcite-icon .flipRtl=${B} .icon=${a} scale=l></calcite-icon></div>`||""}<div class=${n(i.tileContentContainer)}><div class=${n(i.tileContent)}>${o&&l`<div class=${n(i.tileHeading)}>${o}</div>`||""}${e&&l`<div class=${n(i.tileDescription)}>${e}</div>`||""}</div></div></div><slot></slot></div>`})}};m("calcite-tile-select",c);export{c as TileSelect};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.83
4
+ * v3.0.0-next.85
5
5
  */
6
- import{a as ct,b as I,c as D,d as k,e as W,f as lt,g as kt,h as at,i as Z,j as Mt,k as wt,l as tt,m as M,n as et,o as G,q as ft,r as yt}from"./GZMDLWCZ.js";import{a as Dt}from"./FVDAFCDC.js";import{e as Lt}from"./ZAXAVOLY.js";import{C as pt,F as xt}from"./BS4SPFFW.js";var vt=["top","right","bottom","left"],Ft=["start","end"],bt=vt.reduce((t,e)=>t.concat(e,e+"-"+Ft[0],e+"-"+Ft[1]),[]),j=Math.min,N=Math.max,ot=Math.round,st=Math.floor,E=t=>({x:t,y:t}),he={left:"right",right:"left",bottom:"top",top:"bottom"},pe={start:"end",end:"start"};function ut(t,e,n){return N(t,j(e,n))}function _(t,e){return typeof t=="function"?t(e):t}function F(t){return t.split("-")[0]}function S(t){return t.split("-")[1]}function At(t){return t==="x"?"y":"x"}function dt(t){return t==="y"?"height":"width"}function U(t){return["top","bottom"].includes(F(t))?"y":"x"}function mt(t){return At(U(t))}function Ot(t,e,n){n===void 0&&(n=!1);let i=S(t),o=mt(t),r=dt(o),s=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=it(s)),[s,it(s)]}function Bt(t){let e=it(t);return[nt(t),e,nt(e)]}function nt(t){return t.replace(/start|end/g,e=>pe[e])}function xe(t,e,n){let i=["left","right"],o=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?r:s;default:return[]}}function $t(t,e,n,i){let o=S(t),r=xe(F(t),n==="start",i);return o&&(r=r.map(s=>s+"-"+o),e&&(r=r.concat(r.map(nt)))),r}function it(t){return t.replace(/left|right|bottom|top/g,e=>he[e])}function we(t){return{top:0,right:0,bottom:0,left:0,...t}}function Rt(t){return typeof t!="number"?we(t):{top:t,right:t,bottom:t,left:t}}function X(t){let{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function Wt(t,e,n){let{reference:i,floating:o}=t,r=U(e),s=mt(e),c=dt(s),l=F(e),a=r==="y",d=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,m=i[c]/2-o[c]/2,f;switch(l){case"top":f={x:d,y:i.y-o.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:u};break;case"left":f={x:i.x-o.width,y:u};break;default:f={x:i.x,y:i.y}}switch(S(e)){case"start":f[s]-=m*(n&&a?-1:1);break;case"end":f[s]+=m*(n&&a?-1:1);break}return f}var zt=async(t,e,n)=>{let{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e)),a=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:u}=Wt(a,i,l),m=i,f={},g=0;for(let p=0;p<c.length;p++){let{name:x,fn:h}=c[p],{x:w,y,data:b,reset:v}=await h({x:d,y:u,initialPlacement:i,placement:m,strategy:o,middlewareData:f,rects:a,platform:s,elements:{reference:t,floating:e}});d=w??d,u=y??u,f={...f,[x]:{...f[x],...b}},v&&g<=50&&(g++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):v.rects),{x:d,y:u}=Wt(a,m,l)),p=-1)}return{x:d,y:u,placement:m,strategy:o,middlewareData:f}};async function J(t,e){var n;e===void 0&&(e={});let{x:i,y:o,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:f=0}=_(e,t),g=Rt(f),x=c[m?u==="floating"?"reference":"floating":u],h=X(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(x)))==null||n?x:x.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:d,strategy:l})),w=u==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),b=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},v=X(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:y,strategy:l}):w);return{top:(h.top-v.top+g.top)/b.y,bottom:(v.bottom-h.bottom+g.bottom)/b.y,left:(h.left-v.left+g.left)/b.x,right:(v.right-h.right+g.right)/b.x}}var Vt=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:o,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:d=0}=_(t,e)||{};if(a==null)return{};let u=Rt(d),m={x:n,y:i},f=mt(o),g=dt(f),p=await s.getDimensions(a),x=f==="y",h=x?"top":"left",w=x?"bottom":"right",y=x?"clientHeight":"clientWidth",b=r.reference[g]+r.reference[f]-m[f]-r.floating[g],v=m[f]-r.reference[f],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a)),P=O?O[y]:0;(!P||!await(s.isElement==null?void 0:s.isElement(O)))&&(P=c.floating[y]||r.floating[g]);let H=b/2-v/2,T=P/2-p[g]/2-1,A=j(u[h],T),C=j(u[w],T),B=A,Y=P-p[g]-C,R=P/2-p[g]/2+H,K=ut(B,R,Y),$=!l.arrow&&S(o)!=null&&R!==K&&r.reference[g]/2-(R<B?A:C)-p[g]/2<0,L=$?R<B?R-B:R-Y:0;return{[f]:m[f]+L,data:{[f]:K,centerOffset:R-K-L,...$&&{alignmentOffset:L}},reset:$}}});function ye(t,e,n){return(t?[...n.filter(o=>S(o)===t),...n.filter(o=>S(o)!==t)]:n.filter(o=>F(o)===o)).filter(o=>t?S(o)===t||(e?nt(o)!==o:!1):!0)}var It=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,o;let{rects:r,middlewareData:s,placement:c,platform:l,elements:a}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:m=bt,autoAlignment:f=!0,...g}=_(t,e),p=u!==void 0||m===bt?ye(u||null,f,m):m,x=await J(e,g),h=((n=s.autoPlacement)==null?void 0:n.index)||0,w=p[h];if(w==null)return{};let y=Ot(w,r,await(l.isRTL==null?void 0:l.isRTL(a.floating)));if(c!==w)return{reset:{placement:p[0]}};let b=[x[F(w)],x[y[0]],x[y[1]]],v=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:w,overflows:b}],O=p[h+1];if(O)return{data:{index:h+1,overflows:v},reset:{placement:O}};let P=v.map(A=>{let C=S(A.placement);return[A.placement,C&&d?A.overflows.slice(0,2).reduce((B,Y)=>B+Y,0):A.overflows[0],A.overflows]}).sort((A,C)=>A[1]-C[1]),T=((o=P.filter(A=>A[2].slice(0,S(A[0])?2:3).every(C=>C<=0))[0])==null?void 0:o[0])||P[0][0];return T!==c?{data:{index:h+1,overflows:v},reset:{placement:T}}:{}}}},jt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;let{placement:o,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...x}=_(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};let h=F(o),w=U(c),y=F(c)===c,b=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(y||!p?[it(c)]:Bt(c)),O=g!=="none";!m&&O&&v.push(...$t(c,p,g,b));let P=[c,...v],H=await J(e,x),T=[],A=((i=r.flip)==null?void 0:i.overflows)||[];if(d&&T.push(H[h]),u){let R=Ot(o,s,b);T.push(H[R[0]],H[R[1]])}if(A=[...A,{placement:o,overflows:T}],!T.every(R=>R<=0)){var C,B;let R=(((C=r.flip)==null?void 0:C.index)||0)+1,K=P[R];if(K)return{data:{index:R,overflows:A},reset:{placement:K}};let $=(B=A.filter(L=>L.overflows[0]<=0).sort((L,z)=>L.overflows[1]-z.overflows[1])[0])==null?void 0:B.placement;if(!$)switch(f){case"bestFit":{var Y;let L=(Y=A.filter(z=>{if(O){let V=U(z.placement);return V===w||V==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(V=>V>0).reduce((V,ge)=>V+ge,0)]).sort((z,V)=>z[1]-V[1])[0])==null?void 0:Y[0];L&&($=L);break}case"initialPlacement":$=c;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Nt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ht(t){return vt.some(e=>t[e]>=0)}var _t=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:i="referenceHidden",...o}=_(t,e);switch(i){case"referenceHidden":{let r=await J(e,{...o,elementContext:"reference"}),s=Nt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ht(s)}}}case"escaped":{let r=await J(e,{...o,altBoundary:!0}),s=Nt(r,n.floating);return{data:{escapedOffsets:s,escaped:Ht(s)}}}default:return{}}}}};async function ve(t,e){let{placement:n,platform:i,elements:o}=t,r=await(i.isRTL==null?void 0:i.isRTL(o.floating)),s=F(n),c=S(n),l=U(n)==="y",a=["left","top"].includes(s)?-1:1,d=r&&l?-1:1,u=_(e,t),{mainAxis:m,crossAxis:f,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof g=="number"&&(f=c==="end"?g*-1:g),l?{x:f*d,y:m*a}:{x:m*a,y:f*d}}var Yt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:o,y:r,placement:s,middlewareData:c}=e,l=await ve(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:s}}}}},Ut=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:o}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:x=>{let{x:h,y:w}=x;return{x:h,y:w}}},...l}=_(t,e),a={x:n,y:i},d=await J(e,l),u=U(F(o)),m=At(u),f=a[m],g=a[u];if(r){let x=m==="y"?"top":"left",h=m==="y"?"bottom":"right",w=f+d[x],y=f-d[h];f=ut(w,f,y)}if(s){let x=u==="y"?"top":"left",h=u==="y"?"bottom":"right",w=g+d[x],y=g-d[h];g=ut(w,g,y)}let p=c.fn({...e,[m]:f,[u]:g});return{...p,data:{x:p.x-n,y:p.y-i,enabled:{[m]:r,[u]:s}}}}}};function Kt(t){let e=M(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=W(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,c=ot(n)!==r||ot(i)!==s;return c&&(n=r,i=s),{width:n,height:i,$:c}}function Ct(t){return k(t)?t:t.contextElement}function Q(t){let e=Ct(t);if(!W(e))return E(1);let n=e.getBoundingClientRect(),{width:i,height:o,$:r}=Kt(e),s=(r?ot(n.width):n.width)/i,c=(r?ot(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var be=E(0);function Gt(t){let e=I(t);return!wt()||!e.visualViewport?be:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ae(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==I(t)?!1:e}function q(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);let o=t.getBoundingClientRect(),r=Ct(t),s=E(1);e&&(i?k(i)&&(s=Q(i)):s=Q(t));let c=Ae(r,n,i)?Gt(r):E(0),l=(o.left+c.x)/s.x,a=(o.top+c.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(r){let m=I(r),f=i&&k(i)?I(i):i,g=m,p=yt(g);for(;p&&i&&f!==g;){let x=Q(p),h=p.getBoundingClientRect(),w=M(p),y=h.left+(p.clientLeft+parseFloat(w.paddingLeft))*x.x,b=h.top+(p.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,a*=x.y,d*=x.x,u*=x.y,l+=y,a+=b,g=I(p),p=yt(g)}}return X({width:d,height:u,x:l,y:a})}function Et(t,e){let n=et(t).scrollLeft;return e?e.left+n:q(D(t)).left+n}function Jt(t,e,n){n===void 0&&(n=!1);let i=t.getBoundingClientRect(),o=i.left+e.scrollLeft-(n?0:Et(t,i)),r=i.top+e.scrollTop;return{x:o,y:r}}function Oe(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t,r=o==="fixed",s=D(i),c=e?at(e.floating):!1;if(i===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},a=E(1),d=E(0),u=W(i);if((u||!u&&!r)&&((ct(i)!=="body"||lt(s))&&(l=et(i)),W(i))){let f=q(i);a=Q(i),d.x=f.x+i.clientLeft,d.y=f.y+i.clientTop}let m=s&&!u&&!r?Jt(s,l,!0):E(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+d.x+m.x,y:n.y*a.y-l.scrollTop*a.y+d.y+m.y}}function Re(t){return Array.from(t.getClientRects())}function Pe(t){let e=D(t),n=et(t),i=t.ownerDocument.body,o=N(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=N(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+Et(t),c=-n.scrollTop;return M(i).direction==="rtl"&&(s+=N(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:c}}function Ce(t,e){let n=I(t),i=D(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,c=0,l=0;if(o){r=o.width,s=o.height;let a=wt();(!a||a&&e==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:c,y:l}}function Ee(t,e){let n=q(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=W(t)?Q(t):E(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=o*r.x,a=i*r.y;return{width:s,height:c,x:l,y:a}}function Xt(t,e,n){let i;if(e==="viewport")i=Ce(t,n);else if(e==="document")i=Pe(D(t));else if(k(e))i=Ee(e,n);else{let o=Gt(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return X(i)}function Qt(t,e){let n=G(t);return n===e||!k(n)||tt(n)?!1:M(n).position==="fixed"||Qt(n,e)}function Se(t,e){let n=e.get(t);if(n)return n;let i=ft(t,[],!1).filter(c=>k(c)&&ct(c)!=="body"),o=null,r=M(t).position==="fixed",s=r?G(t):t;for(;k(s)&&!tt(s);){let c=M(s),l=Z(s);!l&&c.position==="fixed"&&(o=null),(r?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||lt(s)&&!l&&Qt(t,s))?i=i.filter(d=>d!==s):o=c,s=G(s)}return e.set(t,i),i}function Te(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t,s=[...n==="clippingAncestors"?at(e)?[]:Se(e,this._c):[].concat(n),i],c=s[0],l=s.reduce((a,d)=>{let u=Xt(e,d,o);return a.top=N(u.top,a.top),a.right=j(u.right,a.right),a.bottom=j(u.bottom,a.bottom),a.left=N(u.left,a.left),a},Xt(e,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Le(t){let{width:e,height:n}=Kt(t);return{width:e,height:n}}function De(t,e,n){let i=W(e),o=D(e),r=n==="fixed",s=q(t,!0,r,e),c={scrollLeft:0,scrollTop:0},l=E(0);if(i||!i&&!r)if((ct(e)!=="body"||lt(o))&&(c=et(e)),i){let m=q(e,!0,r,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else o&&(l.x=Et(o));let a=o&&!i&&!r?Jt(o,c):E(0),d=s.left+c.scrollLeft-l.x-a.x,u=s.top+c.scrollTop-l.y-a.y;return{x:d,y:u,width:s.width,height:s.height}}function Pt(t){return M(t).position==="static"}function qt(t,e){if(!W(t)||M(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return D(t)===n&&(n=n.ownerDocument.body),n}function Zt(t,e){let n=I(t);if(at(t))return n;if(!W(t)){let o=G(t);for(;o&&!tt(o);){if(k(o)&&!Pt(o))return o;o=G(o)}return n}let i=qt(t,e);for(;i&&kt(i)&&Pt(i);)i=qt(i,e);return i&&tt(i)&&Pt(i)&&!Z(i)?n:i||Mt(t)||n}var ke=async function(t){let e=this.getOffsetParent||Zt,n=this.getDimensions,i=await n(t.floating);return{reference:De(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Me(t){return M(t).direction==="rtl"}var gt={convertOffsetParentRelativeRectToViewportRelativeRect:Oe,getDocumentElement:D,getClippingRect:Te,getOffsetParent:Zt,getElementRects:ke,getClientRects:Re,getDimensions:Le,getScale:Q,isElement:k,isRTL:Me};function Fe(t,e){let n=null,i,o=D(t);function r(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();let{left:a,top:d,width:u,height:m}=t.getBoundingClientRect();if(c||e(),!u||!m)return;let f=st(d),g=st(o.clientWidth-(a+u)),p=st(o.clientHeight-(d+m)),x=st(a),w={rootMargin:-f+"px "+-g+"px "+-p+"px "+-x+"px",threshold:N(0,j(1,l))||1},y=!0;function b(v){let O=v[0].intersectionRatio;if(O!==l){if(!y)return s();O?s(!1,O):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(b,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,w)}n.observe(t)}return s(!0),r}function te(t,e,n,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,a=Ct(t),d=o||r?[...a?ft(a):[],...ft(e)]:[];d.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),r&&h.addEventListener("resize",n)});let u=a&&c?Fe(a,n):null,m=-1,f=null;s&&(f=new ResizeObserver(h=>{let[w]=h;w&&w.target===a&&f&&(f.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(e)})),n()}),a&&!l&&f.observe(a),f.observe(e));let g,p=l?q(t):null;l&&x();function x(){let h=q(t);p&&(h.x!==p.x||h.y!==p.y||h.width!==p.width||h.height!==p.height)&&n(),p=h,g=requestAnimationFrame(x)}return n(),()=>{var h;d.forEach(w=>{o&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),u?.(),(h=f)==null||h.disconnect(),f=null,l&&cancelAnimationFrame(g)}}var ee=Yt,ne=It,ie=Ut,St=jt;var oe=_t,se=Vt;var re=(t,e,n)=>{let i=new Map,o={platform:gt,...n},r={...o.platform,_c:i};return zt(t,e,{...o,platform:r})};function ce(t){return Be(t)}function Tt(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Be(t){for(let e=t;e;e=Tt(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Tt(t);e;e=Tt(e)){if(!(e instanceof Element))continue;let n=getComputedStyle(e);if(n.display!=="contents"&&(n.position!=="static"||Z(n)||e.tagName==="BODY"))return e}return null}(function(){if(xt()){let t=gt.getOffsetParent;gt.getOffsetParent=e=>t(e,ce)}})();function le(t){let e=window.devicePixelRatio||1;return Math.round(t*e)/e}var de=async(t,{referenceEl:e,floatingEl:n,overlayPositioning:i="absolute",placement:o,flipDisabled:r,flipPlacements:s,offsetDistance:c,offsetSkidding:l,arrowEl:a,type:d})=>{if(!e||!n)return;let u=Lt(n)==="rtl",{x:m,y:f,placement:g,strategy:p,middlewareData:x}=await re(e,n,{strategy:i,placement:o==="auto"||o==="auto-start"||o==="auto-end"?void 0:fe(o,u),middleware:We({placement:o,flipDisabled:r,flipPlacements:s?.map(y=>fe(y,u)),offsetDistance:c,offsetSkidding:l,arrowEl:a,type:d})});if(a&&x.arrow){let{x:y,y:b}=x.arrow,v=g.split("-")[0],O=y!=null?"left":"top",P=He[v],H={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout=v==="left"||v==="right"?"horizontal":"vertical"),Object.assign(a.style,{...H,[O]:`${O=="left"?y:b}px`,[v]:"100%",transform:P})}let h=x.hide?.referenceHidden?"hidden":null,w=h?"none":null;n.setAttribute($e,g),Object.assign(n.style,{pointerEvents:w,position:p,transform:`translate(${le(m)}px,${le(f)}px)`,visibility:h})},$e="data-placement",ae=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end","leading","trailing","leading-start","leading-end","trailing-start","trailing-end"],cn="bottom-start",ln="bottom-end",an={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active",arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"};function We({placement:t,flipDisabled:e,flipPlacements:n,offsetDistance:i,offsetSkidding:o,arrowEl:r,type:s}){let c=[ie(),oe()];if(s==="menu")return[...c,St({fallbackPlacements:n||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if(s==="popover"||s==="tooltip"){let l=[...c,ee({mainAxis:typeof i=="number"?i:0,crossAxis:typeof o=="number"?o:0})];return t==="auto"||t==="auto-start"||t==="auto-end"?l.push(ne({alignment:t==="auto-start"?"start":t==="auto-end"?"end":null})):e||l.push(St(n?{fallbackPlacements:n}:{})),r&&l.push(se({element:r})),l}return[]}function fn(t,e){let n=t.filter(i=>ae.includes(i));return n.length!==t.length&&console.warn(`${e.tagName}: Invalid value found in: flipPlacements. Try any of these: ${ae.map(i=>`"${i}"`).join(", ").trim()}`,{el:e}),n}function fe(t,e=!1){let n=["left","right"];return e&&n.reverse(),t.replace(/leading/gi,n[0]).replace(/trailing/gi,n[1])}async function un(t,e,n=!1){if(!(!t.open||!e.floatingEl||!e.referenceEl)){if(Object.assign(e.floatingEl.style,{display:"block",position:e.overlayPositioning??"absolute"}),!rt.get(t))return me(t);await(n?Ne(t):de)(t,e)}}function Ne(t){let e=ht.get(t);return e||(e=Dt(de,pt.reposition,{leading:!0,maxWait:pt.reposition}),ht.set(t,e),e)}var He={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},rt=new WeakMap,ht=new WeakMap;async function me(t){let{referenceEl:e,floatingEl:n}=t;if(!n.isConnected)return;let i=xt()?te:(s,c,l)=>(l(),()=>{});rt.set(t,{state:"pending"});let o,r=i(e,n,()=>{let s=t.reposition();o||(o=s)});return rt.set(t,{state:"active",cleanUp:r}),o}function ze(t){let{floatingEl:e}=t;e&&Object.assign(e.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}async function dn(t){let{floatingEl:e,referenceEl:n}=t;if(ze(t),!(!e||!n)&&(Ve(t),!!t.open))return me(t)}function Ve(t){let{floatingEl:e,referenceEl:n}=t;if(!e||!n)return;let i=rt.get(t);i?.state==="active"&&i.cleanUp(),rt.delete(t),ht.get(t)?.cancel(),ht.delete(t)}var ue=4,mn=Math.ceil(Math.hypot(ue,ue));export{cn as a,ln as b,an as c,fn as d,un as e,ze as f,dn as g,Ve as h,mn as i};
6
+ import{a as ct,b as I,c as D,d as k,e as W,f as lt,g as kt,h as at,i as Z,j as Mt,k as wt,l as tt,m as M,n as et,o as G,q as ft,r as yt}from"./YQTMIBE6.js";import{a as Dt}from"./OVYRS7SL.js";import{e as Lt}from"./IHS2TS4Q.js";import{C as pt,F as xt}from"./SNOC4YCH.js";var vt=["top","right","bottom","left"],Ft=["start","end"],bt=vt.reduce((t,e)=>t.concat(e,e+"-"+Ft[0],e+"-"+Ft[1]),[]),j=Math.min,N=Math.max,ot=Math.round,st=Math.floor,E=t=>({x:t,y:t}),he={left:"right",right:"left",bottom:"top",top:"bottom"},pe={start:"end",end:"start"};function ut(t,e,n){return N(t,j(e,n))}function _(t,e){return typeof t=="function"?t(e):t}function F(t){return t.split("-")[0]}function S(t){return t.split("-")[1]}function At(t){return t==="x"?"y":"x"}function dt(t){return t==="y"?"height":"width"}function U(t){return["top","bottom"].includes(F(t))?"y":"x"}function mt(t){return At(U(t))}function Ot(t,e,n){n===void 0&&(n=!1);let i=S(t),o=mt(t),r=dt(o),s=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=it(s)),[s,it(s)]}function Bt(t){let e=it(t);return[nt(t),e,nt(e)]}function nt(t){return t.replace(/start|end/g,e=>pe[e])}function xe(t,e,n){let i=["left","right"],o=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?r:s;default:return[]}}function $t(t,e,n,i){let o=S(t),r=xe(F(t),n==="start",i);return o&&(r=r.map(s=>s+"-"+o),e&&(r=r.concat(r.map(nt)))),r}function it(t){return t.replace(/left|right|bottom|top/g,e=>he[e])}function we(t){return{top:0,right:0,bottom:0,left:0,...t}}function Rt(t){return typeof t!="number"?we(t):{top:t,right:t,bottom:t,left:t}}function X(t){let{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function Wt(t,e,n){let{reference:i,floating:o}=t,r=U(e),s=mt(e),c=dt(s),l=F(e),a=r==="y",d=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,m=i[c]/2-o[c]/2,f;switch(l){case"top":f={x:d,y:i.y-o.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:u};break;case"left":f={x:i.x-o.width,y:u};break;default:f={x:i.x,y:i.y}}switch(S(e)){case"start":f[s]-=m*(n&&a?-1:1);break;case"end":f[s]+=m*(n&&a?-1:1);break}return f}var zt=async(t,e,n)=>{let{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e)),a=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:u}=Wt(a,i,l),m=i,f={},g=0;for(let p=0;p<c.length;p++){let{name:x,fn:h}=c[p],{x:w,y,data:b,reset:v}=await h({x:d,y:u,initialPlacement:i,placement:m,strategy:o,middlewareData:f,rects:a,platform:s,elements:{reference:t,floating:e}});d=w??d,u=y??u,f={...f,[x]:{...f[x],...b}},v&&g<=50&&(g++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):v.rects),{x:d,y:u}=Wt(a,m,l)),p=-1)}return{x:d,y:u,placement:m,strategy:o,middlewareData:f}};async function J(t,e){var n;e===void 0&&(e={});let{x:i,y:o,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:f=0}=_(e,t),g=Rt(f),x=c[m?u==="floating"?"reference":"floating":u],h=X(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(x)))==null||n?x:x.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:d,strategy:l})),w=u==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),b=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},v=X(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:y,strategy:l}):w);return{top:(h.top-v.top+g.top)/b.y,bottom:(v.bottom-h.bottom+g.bottom)/b.y,left:(h.left-v.left+g.left)/b.x,right:(v.right-h.right+g.right)/b.x}}var Vt=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:o,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:d=0}=_(t,e)||{};if(a==null)return{};let u=Rt(d),m={x:n,y:i},f=mt(o),g=dt(f),p=await s.getDimensions(a),x=f==="y",h=x?"top":"left",w=x?"bottom":"right",y=x?"clientHeight":"clientWidth",b=r.reference[g]+r.reference[f]-m[f]-r.floating[g],v=m[f]-r.reference[f],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a)),P=O?O[y]:0;(!P||!await(s.isElement==null?void 0:s.isElement(O)))&&(P=c.floating[y]||r.floating[g]);let H=b/2-v/2,T=P/2-p[g]/2-1,A=j(u[h],T),C=j(u[w],T),B=A,Y=P-p[g]-C,R=P/2-p[g]/2+H,K=ut(B,R,Y),$=!l.arrow&&S(o)!=null&&R!==K&&r.reference[g]/2-(R<B?A:C)-p[g]/2<0,L=$?R<B?R-B:R-Y:0;return{[f]:m[f]+L,data:{[f]:K,centerOffset:R-K-L,...$&&{alignmentOffset:L}},reset:$}}});function ye(t,e,n){return(t?[...n.filter(o=>S(o)===t),...n.filter(o=>S(o)!==t)]:n.filter(o=>F(o)===o)).filter(o=>t?S(o)===t||(e?nt(o)!==o:!1):!0)}var It=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,o;let{rects:r,middlewareData:s,placement:c,platform:l,elements:a}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:m=bt,autoAlignment:f=!0,...g}=_(t,e),p=u!==void 0||m===bt?ye(u||null,f,m):m,x=await J(e,g),h=((n=s.autoPlacement)==null?void 0:n.index)||0,w=p[h];if(w==null)return{};let y=Ot(w,r,await(l.isRTL==null?void 0:l.isRTL(a.floating)));if(c!==w)return{reset:{placement:p[0]}};let b=[x[F(w)],x[y[0]],x[y[1]]],v=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:w,overflows:b}],O=p[h+1];if(O)return{data:{index:h+1,overflows:v},reset:{placement:O}};let P=v.map(A=>{let C=S(A.placement);return[A.placement,C&&d?A.overflows.slice(0,2).reduce((B,Y)=>B+Y,0):A.overflows[0],A.overflows]}).sort((A,C)=>A[1]-C[1]),T=((o=P.filter(A=>A[2].slice(0,S(A[0])?2:3).every(C=>C<=0))[0])==null?void 0:o[0])||P[0][0];return T!==c?{data:{index:h+1,overflows:v},reset:{placement:T}}:{}}}},jt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;let{placement:o,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...x}=_(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};let h=F(o),w=U(c),y=F(c)===c,b=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(y||!p?[it(c)]:Bt(c)),O=g!=="none";!m&&O&&v.push(...$t(c,p,g,b));let P=[c,...v],H=await J(e,x),T=[],A=((i=r.flip)==null?void 0:i.overflows)||[];if(d&&T.push(H[h]),u){let R=Ot(o,s,b);T.push(H[R[0]],H[R[1]])}if(A=[...A,{placement:o,overflows:T}],!T.every(R=>R<=0)){var C,B;let R=(((C=r.flip)==null?void 0:C.index)||0)+1,K=P[R];if(K)return{data:{index:R,overflows:A},reset:{placement:K}};let $=(B=A.filter(L=>L.overflows[0]<=0).sort((L,z)=>L.overflows[1]-z.overflows[1])[0])==null?void 0:B.placement;if(!$)switch(f){case"bestFit":{var Y;let L=(Y=A.filter(z=>{if(O){let V=U(z.placement);return V===w||V==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(V=>V>0).reduce((V,ge)=>V+ge,0)]).sort((z,V)=>z[1]-V[1])[0])==null?void 0:Y[0];L&&($=L);break}case"initialPlacement":$=c;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Nt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ht(t){return vt.some(e=>t[e]>=0)}var _t=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:i="referenceHidden",...o}=_(t,e);switch(i){case"referenceHidden":{let r=await J(e,{...o,elementContext:"reference"}),s=Nt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ht(s)}}}case"escaped":{let r=await J(e,{...o,altBoundary:!0}),s=Nt(r,n.floating);return{data:{escapedOffsets:s,escaped:Ht(s)}}}default:return{}}}}};async function ve(t,e){let{placement:n,platform:i,elements:o}=t,r=await(i.isRTL==null?void 0:i.isRTL(o.floating)),s=F(n),c=S(n),l=U(n)==="y",a=["left","top"].includes(s)?-1:1,d=r&&l?-1:1,u=_(e,t),{mainAxis:m,crossAxis:f,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof g=="number"&&(f=c==="end"?g*-1:g),l?{x:f*d,y:m*a}:{x:m*a,y:f*d}}var Yt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:o,y:r,placement:s,middlewareData:c}=e,l=await ve(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:s}}}}},Ut=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:o}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:x=>{let{x:h,y:w}=x;return{x:h,y:w}}},...l}=_(t,e),a={x:n,y:i},d=await J(e,l),u=U(F(o)),m=At(u),f=a[m],g=a[u];if(r){let x=m==="y"?"top":"left",h=m==="y"?"bottom":"right",w=f+d[x],y=f-d[h];f=ut(w,f,y)}if(s){let x=u==="y"?"top":"left",h=u==="y"?"bottom":"right",w=g+d[x],y=g-d[h];g=ut(w,g,y)}let p=c.fn({...e,[m]:f,[u]:g});return{...p,data:{x:p.x-n,y:p.y-i,enabled:{[m]:r,[u]:s}}}}}};function Kt(t){let e=M(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=W(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,c=ot(n)!==r||ot(i)!==s;return c&&(n=r,i=s),{width:n,height:i,$:c}}function Ct(t){return k(t)?t:t.contextElement}function Q(t){let e=Ct(t);if(!W(e))return E(1);let n=e.getBoundingClientRect(),{width:i,height:o,$:r}=Kt(e),s=(r?ot(n.width):n.width)/i,c=(r?ot(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var be=E(0);function Gt(t){let e=I(t);return!wt()||!e.visualViewport?be:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ae(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==I(t)?!1:e}function q(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);let o=t.getBoundingClientRect(),r=Ct(t),s=E(1);e&&(i?k(i)&&(s=Q(i)):s=Q(t));let c=Ae(r,n,i)?Gt(r):E(0),l=(o.left+c.x)/s.x,a=(o.top+c.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(r){let m=I(r),f=i&&k(i)?I(i):i,g=m,p=yt(g);for(;p&&i&&f!==g;){let x=Q(p),h=p.getBoundingClientRect(),w=M(p),y=h.left+(p.clientLeft+parseFloat(w.paddingLeft))*x.x,b=h.top+(p.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,a*=x.y,d*=x.x,u*=x.y,l+=y,a+=b,g=I(p),p=yt(g)}}return X({width:d,height:u,x:l,y:a})}function Et(t,e){let n=et(t).scrollLeft;return e?e.left+n:q(D(t)).left+n}function Jt(t,e,n){n===void 0&&(n=!1);let i=t.getBoundingClientRect(),o=i.left+e.scrollLeft-(n?0:Et(t,i)),r=i.top+e.scrollTop;return{x:o,y:r}}function Oe(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t,r=o==="fixed",s=D(i),c=e?at(e.floating):!1;if(i===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},a=E(1),d=E(0),u=W(i);if((u||!u&&!r)&&((ct(i)!=="body"||lt(s))&&(l=et(i)),W(i))){let f=q(i);a=Q(i),d.x=f.x+i.clientLeft,d.y=f.y+i.clientTop}let m=s&&!u&&!r?Jt(s,l,!0):E(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+d.x+m.x,y:n.y*a.y-l.scrollTop*a.y+d.y+m.y}}function Re(t){return Array.from(t.getClientRects())}function Pe(t){let e=D(t),n=et(t),i=t.ownerDocument.body,o=N(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=N(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+Et(t),c=-n.scrollTop;return M(i).direction==="rtl"&&(s+=N(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:c}}function Ce(t,e){let n=I(t),i=D(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,c=0,l=0;if(o){r=o.width,s=o.height;let a=wt();(!a||a&&e==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:c,y:l}}function Ee(t,e){let n=q(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=W(t)?Q(t):E(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=o*r.x,a=i*r.y;return{width:s,height:c,x:l,y:a}}function Xt(t,e,n){let i;if(e==="viewport")i=Ce(t,n);else if(e==="document")i=Pe(D(t));else if(k(e))i=Ee(e,n);else{let o=Gt(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return X(i)}function Qt(t,e){let n=G(t);return n===e||!k(n)||tt(n)?!1:M(n).position==="fixed"||Qt(n,e)}function Se(t,e){let n=e.get(t);if(n)return n;let i=ft(t,[],!1).filter(c=>k(c)&&ct(c)!=="body"),o=null,r=M(t).position==="fixed",s=r?G(t):t;for(;k(s)&&!tt(s);){let c=M(s),l=Z(s);!l&&c.position==="fixed"&&(o=null),(r?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||lt(s)&&!l&&Qt(t,s))?i=i.filter(d=>d!==s):o=c,s=G(s)}return e.set(t,i),i}function Te(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t,s=[...n==="clippingAncestors"?at(e)?[]:Se(e,this._c):[].concat(n),i],c=s[0],l=s.reduce((a,d)=>{let u=Xt(e,d,o);return a.top=N(u.top,a.top),a.right=j(u.right,a.right),a.bottom=j(u.bottom,a.bottom),a.left=N(u.left,a.left),a},Xt(e,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Le(t){let{width:e,height:n}=Kt(t);return{width:e,height:n}}function De(t,e,n){let i=W(e),o=D(e),r=n==="fixed",s=q(t,!0,r,e),c={scrollLeft:0,scrollTop:0},l=E(0);if(i||!i&&!r)if((ct(e)!=="body"||lt(o))&&(c=et(e)),i){let m=q(e,!0,r,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else o&&(l.x=Et(o));let a=o&&!i&&!r?Jt(o,c):E(0),d=s.left+c.scrollLeft-l.x-a.x,u=s.top+c.scrollTop-l.y-a.y;return{x:d,y:u,width:s.width,height:s.height}}function Pt(t){return M(t).position==="static"}function qt(t,e){if(!W(t)||M(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return D(t)===n&&(n=n.ownerDocument.body),n}function Zt(t,e){let n=I(t);if(at(t))return n;if(!W(t)){let o=G(t);for(;o&&!tt(o);){if(k(o)&&!Pt(o))return o;o=G(o)}return n}let i=qt(t,e);for(;i&&kt(i)&&Pt(i);)i=qt(i,e);return i&&tt(i)&&Pt(i)&&!Z(i)?n:i||Mt(t)||n}var ke=async function(t){let e=this.getOffsetParent||Zt,n=this.getDimensions,i=await n(t.floating);return{reference:De(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Me(t){return M(t).direction==="rtl"}var gt={convertOffsetParentRelativeRectToViewportRelativeRect:Oe,getDocumentElement:D,getClippingRect:Te,getOffsetParent:Zt,getElementRects:ke,getClientRects:Re,getDimensions:Le,getScale:Q,isElement:k,isRTL:Me};function Fe(t,e){let n=null,i,o=D(t);function r(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();let{left:a,top:d,width:u,height:m}=t.getBoundingClientRect();if(c||e(),!u||!m)return;let f=st(d),g=st(o.clientWidth-(a+u)),p=st(o.clientHeight-(d+m)),x=st(a),w={rootMargin:-f+"px "+-g+"px "+-p+"px "+-x+"px",threshold:N(0,j(1,l))||1},y=!0;function b(v){let O=v[0].intersectionRatio;if(O!==l){if(!y)return s();O?s(!1,O):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(b,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,w)}n.observe(t)}return s(!0),r}function te(t,e,n,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,a=Ct(t),d=o||r?[...a?ft(a):[],...ft(e)]:[];d.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),r&&h.addEventListener("resize",n)});let u=a&&c?Fe(a,n):null,m=-1,f=null;s&&(f=new ResizeObserver(h=>{let[w]=h;w&&w.target===a&&f&&(f.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(e)})),n()}),a&&!l&&f.observe(a),f.observe(e));let g,p=l?q(t):null;l&&x();function x(){let h=q(t);p&&(h.x!==p.x||h.y!==p.y||h.width!==p.width||h.height!==p.height)&&n(),p=h,g=requestAnimationFrame(x)}return n(),()=>{var h;d.forEach(w=>{o&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),u?.(),(h=f)==null||h.disconnect(),f=null,l&&cancelAnimationFrame(g)}}var ee=Yt,ne=It,ie=Ut,St=jt;var oe=_t,se=Vt;var re=(t,e,n)=>{let i=new Map,o={platform:gt,...n},r={...o.platform,_c:i};return zt(t,e,{...o,platform:r})};function ce(t){return Be(t)}function Tt(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Be(t){for(let e=t;e;e=Tt(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Tt(t);e;e=Tt(e)){if(!(e instanceof Element))continue;let n=getComputedStyle(e);if(n.display!=="contents"&&(n.position!=="static"||Z(n)||e.tagName==="BODY"))return e}return null}(function(){if(xt()){let t=gt.getOffsetParent;gt.getOffsetParent=e=>t(e,ce)}})();function le(t){let e=window.devicePixelRatio||1;return Math.round(t*e)/e}var de=async(t,{referenceEl:e,floatingEl:n,overlayPositioning:i="absolute",placement:o,flipDisabled:r,flipPlacements:s,offsetDistance:c,offsetSkidding:l,arrowEl:a,type:d})=>{if(!e||!n)return;let u=Lt(n)==="rtl",{x:m,y:f,placement:g,strategy:p,middlewareData:x}=await re(e,n,{strategy:i,placement:o==="auto"||o==="auto-start"||o==="auto-end"?void 0:fe(o,u),middleware:We({placement:o,flipDisabled:r,flipPlacements:s?.map(y=>fe(y,u)),offsetDistance:c,offsetSkidding:l,arrowEl:a,type:d})});if(a&&x.arrow){let{x:y,y:b}=x.arrow,v=g.split("-")[0],O=y!=null?"left":"top",P=He[v],H={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout=v==="left"||v==="right"?"horizontal":"vertical"),Object.assign(a.style,{...H,[O]:`${O=="left"?y:b}px`,[v]:"100%",transform:P})}let h=x.hide?.referenceHidden?"hidden":null,w=h?"none":null;n.setAttribute($e,g),Object.assign(n.style,{pointerEvents:w,position:p,transform:`translate(${le(m)}px,${le(f)}px)`,visibility:h})},$e="data-placement",ae=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end","leading","trailing","leading-start","leading-end","trailing-start","trailing-end"],cn="bottom-start",ln="bottom-end",an={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active",arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"};function We({placement:t,flipDisabled:e,flipPlacements:n,offsetDistance:i,offsetSkidding:o,arrowEl:r,type:s}){let c=[ie(),oe()];if(s==="menu")return[...c,St({fallbackPlacements:n||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if(s==="popover"||s==="tooltip"){let l=[...c,ee({mainAxis:typeof i=="number"?i:0,crossAxis:typeof o=="number"?o:0})];return t==="auto"||t==="auto-start"||t==="auto-end"?l.push(ne({alignment:t==="auto-start"?"start":t==="auto-end"?"end":null})):e||l.push(St(n?{fallbackPlacements:n}:{})),r&&l.push(se({element:r})),l}return[]}function fn(t,e){let n=t.filter(i=>ae.includes(i));return n.length!==t.length&&console.warn(`${e.tagName}: Invalid value found in: flipPlacements. Try any of these: ${ae.map(i=>`"${i}"`).join(", ").trim()}`,{el:e}),n}function fe(t,e=!1){let n=["left","right"];return e&&n.reverse(),t.replace(/leading/gi,n[0]).replace(/trailing/gi,n[1])}async function un(t,e,n=!1){if(!(!t.open||!e.floatingEl||!e.referenceEl)){if(Object.assign(e.floatingEl.style,{display:"block",position:e.overlayPositioning??"absolute"}),!rt.get(t))return me(t);await(n?Ne(t):de)(t,e)}}function Ne(t){let e=ht.get(t);return e||(e=Dt(de,pt.reposition,{leading:!0,maxWait:pt.reposition}),ht.set(t,e),e)}var He={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},rt=new WeakMap,ht=new WeakMap;async function me(t){let{referenceEl:e,floatingEl:n}=t;if(!n.isConnected)return;let i=xt()?te:(s,c,l)=>(l(),()=>{});rt.set(t,{state:"pending"});let o,r=i(e,n,()=>{let s=t.reposition();o||(o=s)});return rt.set(t,{state:"active",cleanUp:r}),o}function ze(t){let{floatingEl:e}=t;e&&Object.assign(e.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}async function dn(t){let{floatingEl:e,referenceEl:n}=t;if(ze(t),!(!e||!n)&&(Ve(t),!!t.open))return me(t)}function Ve(t){let{floatingEl:e,referenceEl:n}=t;if(!e||!n)return;let i=rt.get(t);i?.state==="active"&&i.cleanUp(),rt.delete(t),ht.get(t)?.cancel(),ht.delete(t)}var ue=4,mn=Math.ceil(Math.hypot(ue,ue));export{cn as a,ln as b,an as c,fn as d,un as e,ze as f,dn as g,Ve as h,mn as i};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.83
4
+ * v3.0.0-next.85
5
5
  */
6
- import{b as _}from"./DTJHECOF.js";import"./JRM7GVUS.js";function e(s,u,a,r){var t={s:["m\xF5ne sekundi","m\xF5ni sekund","paar sekundit"],m:["\xFChe minuti","\xFCks minut"],mm:["%d minuti","%d minutit"],h:["\xFChe tunni","tund aega","\xFCks tund"],hh:["%d tunni","%d tundi"],d:["\xFChe p\xE4eva","\xFCks p\xE4ev"],M:["kuu aja","kuu aega","\xFCks kuu"],MM:["%d kuu","%d kuud"],y:["\xFChe aasta","aasta","\xFCks aasta"],yy:["%d aasta","%d aastat"]};return u?(t[a][2]?t[a][2]:t[a][1]).replace("%d",s):(r?t[a][0]:t[a][1]).replace("%d",s)}var i={name:"et",weekdays:"p\xFChap\xE4ev_esmasp\xE4ev_teisip\xE4ev_kolmap\xE4ev_neljap\xE4ev_reede_laup\xE4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),months:"jaanuar_veebruar_m\xE4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xE4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),ordinal:function(u){return u+"."},weekStart:1,relativeTime:{future:"%s p\xE4rast",past:"%s tagasi",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d p\xE4eva",M:e,MM:e,y:e,yy:e},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"}};_.locale(i,null,!0);var n=i;export{n as default};
6
+ import{b as _}from"./IXKKNMOI.js";import"./MO6KN2IF.js";function e(s,u,a,r){var t={s:["m\xF5ne sekundi","m\xF5ni sekund","paar sekundit"],m:["\xFChe minuti","\xFCks minut"],mm:["%d minuti","%d minutit"],h:["\xFChe tunni","tund aega","\xFCks tund"],hh:["%d tunni","%d tundi"],d:["\xFChe p\xE4eva","\xFCks p\xE4ev"],M:["kuu aja","kuu aega","\xFCks kuu"],MM:["%d kuu","%d kuud"],y:["\xFChe aasta","aasta","\xFCks aasta"],yy:["%d aasta","%d aastat"]};return u?(t[a][2]?t[a][2]:t[a][1]).replace("%d",s):(r?t[a][0]:t[a][1]).replace("%d",s)}var i={name:"et",weekdays:"p\xFChap\xE4ev_esmasp\xE4ev_teisip\xE4ev_kolmap\xE4ev_neljap\xE4ev_reede_laup\xE4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),months:"jaanuar_veebruar_m\xE4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xE4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),ordinal:function(u){return u+"."},weekStart:1,relativeTime:{future:"%s p\xE4rast",past:"%s tagasi",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d p\xE4eva",M:e,MM:e,y:e,yy:e},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"}};_.locale(i,null,!0);var n=i;export{n as default};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.83
4
+ * v3.0.0-next.85
5
5
  */
6
- import{b as T}from"./MSYE42NQ.js";import"./DMBGFSHE.js";import{a as x}from"./Z7UYIURN.js";import{a as y}from"./7FFGUIPH.js";import{a as v}from"./63AHI6PU.js";import{a as $}from"./VNF6566M.js";import{b}from"./N7VMLAU3.js";import{e as k}from"./ZAXAVOLY.js";import"./FV4OVQDJ.js";import{I as u,d as g,e as c,u as m,v as f,w as a}from"./BS4SPFFW.js";var t={header:"header",heading:"heading",close:"close",container:"container",tipContainer:"tip-container",tipContainerAdvancing:"tip-container--advancing",tipContainerRetreating:"tip-container--retreating",pagination:"pagination",pagePosition:"page-position",pageNext:"page-next",pagePrevious:"page-previous"},s={chevronLeft:"chevron-left",chevronRight:"chevron-right",close:"x"},w=g`:host{box-sizing:border-box;display:block;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2);--calcite-tip-manager-height: 19vh}:host *{box-sizing:border-box}:host([closed]){display:none}.header{margin:0;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0;padding:0;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:.5rem}.header{border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);padding-block:0px;padding-inline-end:0px;padding-inline-start:1rem}.header .heading{padding:0;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}.container{position:relative;overflow:hidden;outline-color:transparent;min-block-size:150px}.container:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.tip-container{margin-block-start:1px;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:1rem;outline-color:transparent;animation-name:none;animation-duration:var(--calcite-animation-timing);block-size:var(--calcite-tip-manager-height)}.tip-container:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}::slotted(calcite-tip){margin:0;border-style:none;max-inline-size:var(--calcite-tip-max-width)}.tip-container--advancing{animation-name:tip-advance}.tip-container--retreating{animation-name:tip-retreat}.pagination{display:flex;align-items:center;justify-content:center;padding-inline:0px;padding-block:.75rem .5rem}.page-position{margin-block:0px;margin-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}@keyframes tip-advance{0%{opacity:0;transform:translate3d(50px,0,0) scale(.99)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes tip-retreat{0%{opacity:0;transform:translate3d(-50px,0,0) scale(.99)}to{opacity:1;transform:translateZ(0) scale(1)}}:host([hidden]){display:none}[hidden]{display:none}`,h=class extends f{constructor(){super(...arguments),this.messages=$(),this.mutationObserver=v("mutation",()=>this.setUpTips()),this.closed=!1,this.calciteTipManagerClose=m({cancelable:!1})}static{this.properties={direction:16,groupTitle:16,selectedIndex:16,tips:16,total:16,closed:7,headingLevel:11,messageOverrides:0}}static{this.styles=w}async nextTip(){this.direction="advancing";let e=this.selectedIndex+1;this.selectedIndex=(e+this.total)%this.total}async previousTip(){this.direction="retreating";let e=this.selectedIndex-1;this.selectedIndex=(e+this.total)%this.total}connectedCallback(){super.connectedCallback(),this.setUpTips(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async load(){y.deprecated("component",{name:"tip-manager",removalVersion:4,suggested:"carousel"})}willUpdate(e){e.has("closed")&&(this.hasUpdated||this.closed!==!1)&&(this.direction=null),e.has("selectedIndex")&&this.selectedChangeHandler(),e.has("messages")&&this.updateGroupTitle()}loaded(){this.updateGroupTitle()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}selectedChangeHandler(){this.showSelectedTip(),this.updateGroupTitle()}setUpTips(){let e=Array.from(this.el.querySelectorAll("calcite-tip"));if(this.total=e.length,this.total===0)return;let i=this.el.querySelector("calcite-tip[selected]");this.tips=e,this.selectedIndex=i?e.indexOf(i):0,e.forEach(n=>{n.closeDisabled=!0}),this.showSelectedTip()}hideTipManager(){this.closed=!0,this.calciteTipManagerClose.emit()}showSelectedTip(){this.tips.forEach((e,i)=>{let n=this.selectedIndex===i;e.selected=n,e.hidden=!n})}updateGroupTitle(){if(this.tips){let e=this.tips[this.selectedIndex].closest("calcite-tip-group");this.groupTitle=e?.groupTitle||this.messages?.defaultGroupTitle}}previousClicked(){this.previousTip()}nextClicked(){this.nextTip()}tipManagerKeyDownHandler(e){if(e.target===this.container)switch(e.key){case"ArrowRight":e.preventDefault(),this.nextTip();break;case"ArrowLeft":e.preventDefault(),this.previousTip();break;case"Home":e.preventDefault(),this.selectedIndex=0;break;case"End":e.preventDefault(),this.selectedIndex=this.total-1;break}}storeContainerRef(e){this.container=e}renderPagination(){let e=k(this.el),{selectedIndex:i,tips:n,total:r,messages:o}=this,l=o.next,d=o.previous,p=o.defaultPaginationLabel;return n.length>1?c`<footer class=${a(t.pagination)}><calcite-action class=${a(t.pagePrevious)} .icon=${e==="ltr"?s.chevronLeft:s.chevronRight} @click=${this.previousClicked} scale=m .text=${d}></calcite-action><span class=${a(t.pagePosition)}>${`${p} ${i+1}/${r}`}</span><calcite-action class=${a(t.pageNext)} .icon=${e==="ltr"?s.chevronRight:s.chevronLeft} @click=${this.nextClicked} scale=m .text=${l}></calcite-action></footer>`:null}render(){let{closed:e,direction:i,headingLevel:n,groupTitle:r,selectedIndex:o,messages:l,total:d}=this,p=l.close;return d===0?null:c`<section .ariaHidden=${e} class=${a(t.container)} .hidden=${e} @keydown=${this.tipManagerKeyDownHandler} tabindex=0 ${b(this.storeContainerRef)}><header class=${a(t.header)}>${T({class:t.heading,level:n,children:r})}<calcite-action class=${a(t.close)} @click=${this.hideTipManager} scale=m .text=${p}><calcite-icon .icon=${s.close} scale=m></calcite-icon></calcite-action></header>${x(o,c`<div class=${a({[t.tipContainer]:!0,[t.tipContainerAdvancing]:!e&&i==="advancing",[t.tipContainerRetreating]:!e&&i==="retreating"})} tabindex=0><slot></slot></div>`)}${this.renderPagination()}</section>`}};u("calcite-tip-manager",h);export{h as TipManager};
6
+ import{b as T}from"./YSFF4CAM.js";import"./VS2YH7C4.js";import{a as x}from"./YSMO2SQT.js";import{a as y}from"./XGWBARG2.js";import{a as v}from"./PLSMUSSW.js";import{a as $}from"./SJRWPOIJ.js";import{b}from"./ZIQYLGSK.js";import{e as k}from"./IHS2TS4Q.js";import"./VUU4B2RQ.js";import{I as u,d as g,e as c,u as m,v as f,w as a}from"./SNOC4YCH.js";var t={header:"header",heading:"heading",close:"close",container:"container",tipContainer:"tip-container",tipContainerAdvancing:"tip-container--advancing",tipContainerRetreating:"tip-container--retreating",pagination:"pagination",pagePosition:"page-position",pageNext:"page-next",pagePrevious:"page-previous"},s={chevronLeft:"chevron-left",chevronRight:"chevron-right",close:"x"},w=g`:host{box-sizing:border-box;display:block;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2);--calcite-tip-manager-height: 19vh}:host *{box-sizing:border-box}:host([closed]){display:none}.header{margin:0;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0;padding:0;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:.5rem}.header{border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);padding-block:0px;padding-inline-end:0px;padding-inline-start:1rem}.header .heading{padding:0;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}.container{position:relative;overflow:hidden;outline-color:transparent;min-block-size:150px}.container:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.tip-container{margin-block-start:1px;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:1rem;outline-color:transparent;animation-name:none;animation-duration:var(--calcite-animation-timing);block-size:var(--calcite-tip-manager-height)}.tip-container:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}::slotted(calcite-tip){margin:0;border-style:none;max-inline-size:var(--calcite-tip-max-width)}.tip-container--advancing{animation-name:tip-advance}.tip-container--retreating{animation-name:tip-retreat}.pagination{display:flex;align-items:center;justify-content:center;padding-inline:0px;padding-block:.75rem .5rem}.page-position{margin-block:0px;margin-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}@keyframes tip-advance{0%{opacity:0;transform:translate3d(50px,0,0) scale(.99)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes tip-retreat{0%{opacity:0;transform:translate3d(-50px,0,0) scale(.99)}to{opacity:1;transform:translateZ(0) scale(1)}}:host([hidden]){display:none}[hidden]{display:none}`,h=class extends f{constructor(){super(...arguments),this.messages=$(),this.mutationObserver=v("mutation",()=>this.setUpTips()),this.closed=!1,this.calciteTipManagerClose=m({cancelable:!1})}static{this.properties={direction:16,groupTitle:16,selectedIndex:16,tips:16,total:16,closed:7,headingLevel:11,messageOverrides:0}}static{this.styles=w}async nextTip(){this.direction="advancing";let e=this.selectedIndex+1;this.selectedIndex=(e+this.total)%this.total}async previousTip(){this.direction="retreating";let e=this.selectedIndex-1;this.selectedIndex=(e+this.total)%this.total}connectedCallback(){super.connectedCallback(),this.setUpTips(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async load(){y.deprecated("component",{name:"tip-manager",removalVersion:4,suggested:"carousel"})}willUpdate(e){e.has("closed")&&(this.hasUpdated||this.closed!==!1)&&(this.direction=null),e.has("selectedIndex")&&this.selectedChangeHandler(),e.has("messages")&&this.updateGroupTitle()}loaded(){this.updateGroupTitle()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}selectedChangeHandler(){this.showSelectedTip(),this.updateGroupTitle()}setUpTips(){let e=Array.from(this.el.querySelectorAll("calcite-tip"));if(this.total=e.length,this.total===0)return;let i=this.el.querySelector("calcite-tip[selected]");this.tips=e,this.selectedIndex=i?e.indexOf(i):0,e.forEach(n=>{n.closeDisabled=!0}),this.showSelectedTip()}hideTipManager(){this.closed=!0,this.calciteTipManagerClose.emit()}showSelectedTip(){this.tips.forEach((e,i)=>{let n=this.selectedIndex===i;e.selected=n,e.hidden=!n})}updateGroupTitle(){if(this.tips){let e=this.tips[this.selectedIndex].closest("calcite-tip-group");this.groupTitle=e?.groupTitle||this.messages?.defaultGroupTitle}}previousClicked(){this.previousTip()}nextClicked(){this.nextTip()}tipManagerKeyDownHandler(e){if(e.target===this.container)switch(e.key){case"ArrowRight":e.preventDefault(),this.nextTip();break;case"ArrowLeft":e.preventDefault(),this.previousTip();break;case"Home":e.preventDefault(),this.selectedIndex=0;break;case"End":e.preventDefault(),this.selectedIndex=this.total-1;break}}storeContainerRef(e){this.container=e}renderPagination(){let e=k(this.el),{selectedIndex:i,tips:n,total:r,messages:o}=this,l=o.next,d=o.previous,p=o.defaultPaginationLabel;return n.length>1?c`<footer class=${a(t.pagination)}><calcite-action class=${a(t.pagePrevious)} .icon=${e==="ltr"?s.chevronLeft:s.chevronRight} @click=${this.previousClicked} scale=m .text=${d}></calcite-action><span class=${a(t.pagePosition)}>${`${p} ${i+1}/${r}`}</span><calcite-action class=${a(t.pageNext)} .icon=${e==="ltr"?s.chevronRight:s.chevronLeft} @click=${this.nextClicked} scale=m .text=${l}></calcite-action></footer>`:null}render(){let{closed:e,direction:i,headingLevel:n,groupTitle:r,selectedIndex:o,messages:l,total:d}=this,p=l.close;return d===0?null:c`<section .ariaHidden=${e} class=${a(t.container)} .hidden=${e} @keydown=${this.tipManagerKeyDownHandler} tabindex=0 ${b(this.storeContainerRef)}><header class=${a(t.header)}>${T({class:t.heading,level:n,children:r})}<calcite-action class=${a(t.close)} @click=${this.hideTipManager} scale=m .text=${p}><calcite-icon .icon=${s.close} scale=m></calcite-icon></calcite-action></header>${x(o,c`<div class=${a({[t.tipContainer]:!0,[t.tipContainerAdvancing]:!e&&i==="advancing",[t.tipContainerRetreating]:!e&&i==="retreating"})} tabindex=0><slot></slot></div>`)}${this.renderPagination()}</section>`}};u("calcite-tip-manager",h);export{h as TipManager};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.83
4
+ * v3.0.0-next.85
5
5
  */
6
6
  function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,o)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ce(Object(n),!0).forEach(function(o){Xe(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function Mt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mt=function(t){return typeof t}:Mt=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}function Xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(){return $=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},$.apply(this,arguments)}function Ye(e,t){if(e==null)return{};var n={},o=Object.keys(e),i,r;for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Be(e,t){if(e==null)return{};var n=Ye(e,t),o,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}var Ge="1.15.6";function U(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var q=U(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),It=U(/Edge/i),fe=U(/firefox/i),yt=U(/safari/i)&&!U(/chrome/i)&&!U(/android/i),ie=U(/iP(ad|od|hone)/i),Ee=U(/chrome/i)&&U(/android/i),we={capture:!1,passive:!1};function v(e,t,n){e.addEventListener(t,n,!q&&we)}function m(e,t,n){e.removeEventListener(t,n,!q&&we)}function Yt(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function ye(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function H(e,t,n,o){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Yt(e,t):Yt(e,t))||o&&e===n)return e;if(e===n)break}while(e=ye(e))}return null}var de=/\s+/g;function R(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(de," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(de," ")}}function h(e,t,n){var o=e&&e.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in o)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),o[t]=n+(typeof n=="string"?"":"px")}}function ft(e,t){var n="";if(typeof e=="string")n=e;else do{var o=h(e,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function De(e,t,n){if(e){var o=e.getElementsByTagName(t),i=0,r=o.length;if(n)for(;i<r;i++)n(o[i],i);return o}return[]}function K(){var e=document.scrollingElement;return e||document.documentElement}function I(e,t,n,o,i){if(!(!e.getBoundingClientRect&&e!==window)){var r,a,l,s,u,d,f;if(e!==window&&e.parentNode&&e!==K()?(r=e.getBoundingClientRect(),a=r.top,l=r.left,s=r.bottom,u=r.right,d=r.height,f=r.width):(a=0,l=0,s=window.innerHeight,u=window.innerWidth,d=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!q))do if(i&&i.getBoundingClientRect&&(h(i,"transform")!=="none"||n&&h(i,"position")!=="static")){var b=i.getBoundingClientRect();a-=b.top+parseInt(h(i,"border-top-width")),l-=b.left+parseInt(h(i,"border-left-width")),s=a+r.height,u=l+r.width;break}while(i=i.parentNode);if(o&&e!==window){var y=ft(i||e),E=y&&y.a,w=y&&y.d;y&&(a/=w,l/=E,f/=E,d/=w,s=a+d,u=l+f)}return{top:a,left:l,bottom:s,right:u,width:f,height:d}}}function he(e,t,n){for(var o=tt(e,!0),i=I(e)[t];o;){var r=I(o)[n],a=void 0;if(n==="top"||n==="left"?a=i>=r:a=i<=r,!a)return o;if(o===K())break;o=tt(o,!1)}return!1}function dt(e,t,n,o){for(var i=0,r=0,a=e.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==p.ghost&&(o||a[r]!==p.dragged)&&H(a[r],n.draggable,e,!1)){if(i===t)return a[r];i++}r++}return null}function re(e,t){for(var n=e.lastElementChild;n&&(n===p.ghost||h(n,"display")==="none"||t&&!Yt(n,t));)n=n.previousElementSibling;return n||null}function X(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==p.clone&&(!t||Yt(e,t))&&n++;return n}function pe(e){var t=0,n=0,o=K();if(e)do{var i=ft(e),r=i.a,a=i.d;t+=e.scrollLeft*r,n+=e.scrollTop*a}while(e!==o&&(e=e.parentNode));return[t,n]}function He(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n)}return-1}function tt(e,t){if(!e||!e.getBoundingClientRect)return K();var n=e,o=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=h(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return K();if(o||t)return n;o=!0}}while(n=n.parentNode);return K()}function We(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function jt(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var Dt;function Se(e,t){return function(){if(!Dt){var n=arguments,o=this;n.length===1?e.call(o,n[0]):e.apply(o,n),Dt=setTimeout(function(){Dt=void 0},t)}}}function Ke(){clearTimeout(Dt),Dt=void 0}function _e(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Ce(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Ie(e,t,n){var o={};return Array.from(e.children).forEach(function(i){var r,a,l,s;if(!(!H(i,t.draggable,e,!1)||i.animated||i===n)){var u=I(i);o.left=Math.min((r=o.left)!==null&&r!==void 0?r:1/0,u.left),o.top=Math.min((a=o.top)!==null&&a!==void 0?a:1/0,u.top),o.right=Math.max((l=o.right)!==null&&l!==void 0?l:-1/0,u.right),o.bottom=Math.max((s=o.bottom)!==null&&s!==void 0?s:-1/0,u.bottom)}}),o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}var P="Sortable"+new Date().getTime();function Le(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(i){if(!(h(i,"display")==="none"||i===p.ghost)){e.push({target:i,rect:I(i)});var r=L({},e[e.length-1].rect);if(i.thisAnimationDuration){var a=ft(i,!0);a&&(r.top-=a.f,r.left-=a.e)}i.fromRect=r}})}},addAnimationState:function(o){e.push(o)},removeAnimationState:function(o){e.splice(He(e,{target:o}),1)},animateAll:function(o){var i=this;if(!this.options.animation){clearTimeout(t),typeof o=="function"&&o();return}var r=!1,a=0;e.forEach(function(l){var s=0,u=l.target,d=u.fromRect,f=I(u),b=u.prevFromRect,y=u.prevToRect,E=l.rect,w=ft(u,!0);w&&(f.top-=w.f,f.left-=w.e),u.toRect=f,u.thisAnimationDuration&&jt(b,f)&&!jt(d,f)&&(E.top-f.top)/(E.left-f.left)===(d.top-f.top)/(d.left-f.left)&&(s=ze(E,b,y,i.options)),jt(f,d)||(u.prevFromRect=d,u.prevToRect=f,s||(s=i.options.animation),i.animate(u,E,f,s)),s&&(r=!0,a=Math.max(a,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(t),r?t=setTimeout(function(){typeof o=="function"&&o()},a):typeof o=="function"&&o(),e=[]},animate:function(o,i,r,a){if(a){h(o,"transition",""),h(o,"transform","");var l=ft(this.el),s=l&&l.a,u=l&&l.d,d=(i.left-r.left)/(s||1),f=(i.top-r.top)/(u||1);o.animatingX=!!d,o.animatingY=!!f,h(o,"transform","translate3d("+d+"px,"+f+"px,0)"),this.forRepaintDummy=je(o),h(o,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),h(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){h(o,"transition",""),h(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},a)}}}}function je(e){return e.offsetWidth}function ze(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}var lt=[],zt={initializeByDefault:!0},Ot={mount:function(t){for(var n in zt)zt.hasOwnProperty(n)&&!(n in t)&&(t[n]=zt[n]);lt.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),lt.push(t)},pluginEvent:function(t,n,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var r=t+"Global";lt.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][r]&&n[a.pluginName][r](L({sortable:n},o)),n.options[a.pluginName]&&n[a.pluginName][t]&&n[a.pluginName][t](L({sortable:n},o)))})},initializePlugins:function(t,n,o,i){lt.forEach(function(l){var s=l.pluginName;if(!(!t.options[s]&&!l.initializeByDefault)){var u=new l(t,n,t.options);u.sortable=t,u.options=t.options,t[s]=u,$(o,u.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var a=this.modifyOption(t,r,t.options[r]);typeof a<"u"&&(t.options[r]=a)}},getEventProperties:function(t,n){var o={};return lt.forEach(function(i){typeof i.eventProperties=="function"&&$(o,i.eventProperties.call(n[i.pluginName],t))}),o},modifyOption:function(t,n,o){var i;return lt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(i=r.optionListeners[n].call(t[r.pluginName],o))}),i}};function Ue(e){var t=e.sortable,n=e.rootEl,o=e.name,i=e.targetEl,r=e.cloneEl,a=e.toEl,l=e.fromEl,s=e.oldIndex,u=e.newIndex,d=e.oldDraggableIndex,f=e.newDraggableIndex,b=e.originalEvent,y=e.putSortable,E=e.extraEventProperties;if(t=t||n&&n[P],!!t){var w,Y=t.options,j="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!q&&!It?w=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(w=document.createEvent("Event"),w.initEvent(o,!0,!0)),w.to=a||n,w.from=l||n,w.item=i||n,w.clone=r,w.oldIndex=s,w.newIndex=u,w.oldDraggableIndex=d,w.newDraggableIndex=f,w.originalEvent=b,w.pullMode=y?y.lastPutMode:void 0;var A=L(L({},E),Ot.getEventProperties(o,t));for(var B in A)w[B]=A[B];n&&n.dispatchEvent(w),Y[j]&&Y[j].call(t,w)}}var $e=["evt"],N=function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.evt,r=Be(o,$e);Ot.pluginEvent.bind(p)(t,n,L({dragEl:c,parentEl:_,ghostEl:g,rootEl:D,nextEl:at,lastDownEl:Ft,cloneEl:S,cloneHidden:J,dragStarted:bt,putSortable:O,activeSortable:p.active,originalEvent:i,oldIndex:ct,oldDraggableIndex:St,newIndex:k,newDraggableIndex:Q,hideGhostForTarget:xe,unhideGhostForTarget:Ne,cloneNowHidden:function(){J=!0},cloneNowShown:function(){J=!1},dispatchSortableEvent:function(l){x({sortable:n,name:l,originalEvent:i})}},r))};function x(e){Ue(L({putSortable:O,cloneEl:S,targetEl:c,rootEl:D,oldIndex:ct,oldDraggableIndex:St,newIndex:k,newDraggableIndex:Q},e))}var c,_,g,D,at,Ft,S,J,ct,k,St,Q,At,O,ut=!1,Bt=!1,Gt=[],it,G,Ut,$t,ge,me,bt,st,_t,Ct=!1,xt=!1,Rt,T,qt=[],te=!1,Ht=[],Kt=typeof document<"u",Nt=ie,ve=It||q?"cssFloat":"float",qe=Kt&&!Ee&&!ie&&"draggable"in document.createElement("div"),Oe=function(){if(Kt){if(q)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Te=function(t,n){var o=h(t),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=dt(t,0,n),a=dt(t,1,n),l=r&&h(r),s=a&&h(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+I(r).width,d=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+I(a).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var f=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===f)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=i&&o[ve]==="none"||a&&o[ve]==="none"&&u+d>i)?"vertical":"horizontal"},Ve=function(t,n,o){var i=o?t.left:t.top,r=o?t.right:t.bottom,a=o?t.width:t.height,l=o?n.left:n.top,s=o?n.right:n.bottom,u=o?n.width:n.height;return i===l||r===s||i+a/2===l+u/2},Ze=function(t,n){var o;return Gt.some(function(i){var r=i[P].options.emptyInsertThreshold;if(!(!r||re(i))){var a=I(i),l=t>=a.left-r&&t<=a.right+r,s=n>=a.top-r&&n<=a.bottom+r;if(l&&s)return o=i}}),o},Ae=function(t){function n(r,a){return function(l,s,u,d){var f=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(r==null&&(a||f))return!0;if(r==null||r===!1)return!1;if(a&&r==="clone")return r;if(typeof r=="function")return n(r(l,s,u,d),a)(l,s,u,d);var b=(a?l:s).options.group.name;return r===!0||typeof r=="string"&&r===b||r.join&&r.indexOf(b)>-1}}var o={},i=t.group;(!i||Mt(i)!="object")&&(i={name:i}),o.name=i.name,o.checkPull=n(i.pull,!0),o.checkPut=n(i.put),o.revertClone=i.revertClone,t.group=o},xe=function(){!Oe&&g&&h(g,"display","none")},Ne=function(){!Oe&&g&&h(g,"display","")};Kt&&!Ee&&document.addEventListener("click",function(e){if(Bt)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Bt=!1,!1},!0);var rt=function(t){if(c){t=t.touches?t.touches[0]:t;var n=Ze(t.clientX,t.clientY);if(n){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[P]._onDragOver(o)}}},Qe=function(t){c&&c.parentNode[P]._isOutsideThisEl(t.target)};function p(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=$({},t),e[P]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Te(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:p.supportPointer!==!1&&"PointerEvent"in window&&(!yt||ie),emptyInsertThreshold:5};Ot.initializePlugins(this,e,n);for(var o in n)!(o in t)&&(t[o]=n[o]);Ae(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:qe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?v(e,"pointerdown",this._onTapStart):(v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),Gt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),$(this,Le())}p.prototype={constructor:p,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(st=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,c):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,o=this.el,i=this.options,r=i.preventOnFilter,a=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(l||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,d=i.filter;if(ln(o),!c&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&yt&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=H(s,i.draggable,o,!1),!(s&&s.animated)&&Ft!==s)){if(ct=X(s),St=X(s,i.draggable),typeof d=="function"){if(d.call(this,t,s,this)){x({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:o,fromEl:o}),N("filter",n,{evt:t}),r&&t.preventDefault();return}}else if(d&&(d=d.split(",").some(function(f){if(f=H(u,f.trim(),o,!1),f)return x({sortable:n,rootEl:f,name:"filter",targetEl:s,fromEl:o,toEl:o}),N("filter",n,{evt:t}),!0}),d)){r&&t.preventDefault();return}i.handle&&!H(u,i.handle,o,!1)||this._prepareDragStart(t,l,s)}}},_prepareDragStart:function(t,n,o){var i=this,r=i.el,a=i.options,l=r.ownerDocument,s;if(o&&!c&&o.parentNode===r){var u=I(o);if(D=r,c=o,_=c.parentNode,at=c.nextSibling,Ft=o,At=a.group,p.dragged=c,it={target:c,clientX:(n||t).clientX,clientY:(n||t).clientY},ge=it.clientX-u.left,me=it.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,c.style["will-change"]="all",s=function(){if(N("delayEnded",i,{evt:t}),p.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!fe&&i.nativeDraggable&&(c.draggable=!0),i._triggerDragStart(t,n),x({sortable:i,name:"choose",originalEvent:t}),R(c,a.chosenClass,!0)},a.ignore.split(",").forEach(function(d){De(c,d.trim(),Vt)}),v(l,"dragover",rt),v(l,"mousemove",rt),v(l,"touchmove",rt),a.supportPointer?(v(l,"pointerup",i._onDrop),!this.nativeDraggable&&v(l,"pointercancel",i._onDrop)):(v(l,"mouseup",i._onDrop),v(l,"touchend",i._onDrop),v(l,"touchcancel",i._onDrop)),fe&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),N("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(It||q))){if(p.eventCanceled){this._onDrop();return}a.supportPointer?(v(l,"pointerup",i._disableDelayedDrag),v(l,"pointercancel",i._disableDelayedDrag)):(v(l,"mouseup",i._disableDelayedDrag),v(l,"touchend",i._disableDelayedDrag),v(l,"touchcancel",i._disableDelayedDrag)),v(l,"mousemove",i._delayedDragTouchMoveHandler),v(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&v(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){c&&Vt(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;m(t,"mouseup",this._disableDelayedDrag),m(t,"touchend",this._disableDelayedDrag),m(t,"touchcancel",this._disableDelayedDrag),m(t,"pointerup",this._disableDelayedDrag),m(t,"pointercancel",this._disableDelayedDrag),m(t,"mousemove",this._delayedDragTouchMoveHandler),m(t,"touchmove",this._delayedDragTouchMoveHandler),m(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?v(document,"pointermove",this._onTouchMove):n?v(document,"touchmove",this._onTouchMove):v(document,"mousemove",this._onTouchMove):(v(c,"dragend",this),v(D,"dragstart",this._onDragStart));try{document.selection?kt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(ut=!1,D&&c){N("dragStarted",this,{evt:n}),this.nativeDraggable&&v(document,"dragover",Qe);var o=this.options;!t&&R(c,o.dragClass,!1),R(c,o.ghostClass,!0),p.active=this,t&&this._appendGhost(),x({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(G){this._lastX=G.clientX,this._lastY=G.clientY,xe();for(var t=document.elementFromPoint(G.clientX,G.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(G.clientX,G.clientY),t!==n);)n=t;if(c.parentNode[P]._isOutsideThisEl(t),n)do{if(n[P]){var o=void 0;if(o=n[P]._onDragOver({clientX:G.clientX,clientY:G.clientY,target:t,rootEl:n}),o&&!this.options.dragoverBubble)break}t=n}while(n=ye(n));Ne()}},_onTouchMove:function(t){if(it){var n=this.options,o=n.fallbackTolerance,i=n.fallbackOffset,r=t.touches?t.touches[0]:t,a=g&&ft(g,!0),l=g&&a&&a.a,s=g&&a&&a.d,u=Nt&&T&&pe(T),d=(r.clientX-it.clientX+i.x)/(l||1)+(u?u[0]-qt[0]:0)/(l||1),f=(r.clientY-it.clientY+i.y)/(s||1)+(u?u[1]-qt[1]:0)/(s||1);if(!p.active&&!ut){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(g){a?(a.e+=d-(Ut||0),a.f+=f-($t||0)):a={a:1,b:0,c:0,d:1,e:d,f};var b="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");h(g,"webkitTransform",b),h(g,"mozTransform",b),h(g,"msTransform",b),h(g,"transform",b),Ut=d,$t=f,G=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!g){var t=this.options.fallbackOnBody?document.body:D,n=I(c,!0,Nt,!0,t),o=this.options;if(Nt){for(T=t;h(T,"position")==="static"&&h(T,"transform")==="none"&&T!==document;)T=T.parentNode;T!==document.body&&T!==document.documentElement?(T===document&&(T=K()),n.top+=T.scrollTop,n.left+=T.scrollLeft):T=K(),qt=pe(T)}g=c.cloneNode(!0),R(g,o.ghostClass,!1),R(g,o.fallbackClass,!0),R(g,o.dragClass,!0),h(g,"transition",""),h(g,"transform",""),h(g,"box-sizing","border-box"),h(g,"margin",0),h(g,"top",n.top),h(g,"left",n.left),h(g,"width",n.width),h(g,"height",n.height),h(g,"opacity","0.8"),h(g,"position",Nt?"absolute":"fixed"),h(g,"zIndex","100000"),h(g,"pointerEvents","none"),p.ghost=g,t.appendChild(g),h(g,"transform-origin",ge/parseInt(g.style.width)*100+"% "+me/parseInt(g.style.height)*100+"%")}},_onDragStart:function(t,n){var o=this,i=t.dataTransfer,r=o.options;if(N("dragStart",this,{evt:t}),p.eventCanceled){this._onDrop();return}N("setupClone",this),p.eventCanceled||(S=Ce(c),S.removeAttribute("id"),S.draggable=!1,S.style["will-change"]="",this._hideClone(),R(S,this.options.chosenClass,!1),p.clone=S),o.cloneId=kt(function(){N("clone",o),!p.eventCanceled&&(o.options.removeCloneOnHide||D.insertBefore(S,c),o._hideClone(),x({sortable:o,name:"clone"}))}),!n&&R(c,r.dragClass,!0),n?(Bt=!0,o._loopId=setInterval(o._emulateDragOver,50)):(m(document,"mouseup",o._onDrop),m(document,"touchend",o._onDrop),m(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(o,i,c)),v(document,"drop",o),h(c,"transform","translateZ(0)")),ut=!0,o._dragStartId=kt(o._dragStarted.bind(o,n,t)),v(document,"selectstart",o),bt=!0,window.getSelection().removeAllRanges(),yt&&h(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,o=t.target,i,r,a,l=this.options,s=l.group,u=p.active,d=At===s,f=l.sort,b=O||u,y,E=this,w=!1;if(te)return;function Y(vt,Re){N(vt,E,L({evt:t,isOwner:d,axis:y?"vertical":"horizontal",revert:a,dragRect:i,targetRect:r,canSort:f,fromSortable:b,target:o,completed:A,onMove:function(ue,ke){return Pt(D,n,c,i,ue,I(ue),t,ke)},changed:B},Re))}function j(){Y("dragOverAnimationCapture"),E.captureAnimationState(),E!==b&&b.captureAnimationState()}function A(vt){return Y("dragOverCompleted",{insertion:vt}),vt&&(d?u._hideClone():u._showClone(E),E!==b&&(R(c,O?O.options.ghostClass:u.options.ghostClass,!1),R(c,l.ghostClass,!0)),O!==E&&E!==p.active?O=E:E===p.active&&O&&(O=null),b===E&&(E._ignoreWhileAnimating=o),E.animateAll(function(){Y("dragOverAnimationComplete"),E._ignoreWhileAnimating=null}),E!==b&&(b.animateAll(),b._ignoreWhileAnimating=null)),(o===c&&!c.animated||o===n&&!o.animated)&&(st=null),!l.dragoverBubble&&!t.rootEl&&o!==document&&(c.parentNode[P]._isOutsideThisEl(t.target),!vt&&rt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),w=!0}function B(){k=X(c),Q=X(c,l.draggable),x({sortable:E,name:"change",toEl:n,newIndex:k,newDraggableIndex:Q,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=H(o,l.draggable,n,!0),Y("dragOver"),p.eventCanceled)return w;if(c.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||E._ignoreWhileAnimating===o)return A(!1);if(Bt=!1,u&&!l.disabled&&(d?f||(a=_!==D):O===this||(this.lastPutMode=At.checkPull(this,u,c,t))&&s.checkPut(this,u,c,t))){if(y=this._getDirection(t,o)==="vertical",i=I(c),Y("dragOverValid"),p.eventCanceled)return w;if(a)return _=D,j(),this._hideClone(),Y("revert"),p.eventCanceled||(at?D.insertBefore(c,at):D.appendChild(c)),A(!0);var M=re(n,l.draggable);if(!M||nn(t,y,this)&&!M.animated){if(M===c)return A(!1);if(M&&n===t.target&&(o=M),o&&(r=I(o)),Pt(D,n,c,i,o,r,t,!!o)!==!1)return j(),M&&M.nextSibling?n.insertBefore(c,M.nextSibling):n.appendChild(c),_=n,B(),A(!0)}else if(M&&en(t,y,this)){var et=dt(n,0,l,!0);if(et===c)return A(!1);if(o=et,r=I(o),Pt(D,n,c,i,o,r,t,!1)!==!1)return j(),n.insertBefore(c,et),_=n,B(),A(!0)}else if(o.parentNode===n){r=I(o);var W=0,nt,ht=c.parentNode!==n,F=!Ve(c.animated&&c.toRect||i,o.animated&&o.toRect||r,y),pt=y?"top":"left",V=he(o,"top","top")||he(c,"top","top"),gt=V?V.scrollTop:void 0;st!==o&&(nt=r[pt],Ct=!1,xt=!F&&l.invertSwap||ht),W=on(t,o,r,y,F?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,xt,st===o);var z;if(W!==0){var ot=X(c);do ot-=W,z=_.children[ot];while(z&&(h(z,"display")==="none"||z===g))}if(W===0||z===o)return A(!1);st=o,_t=W;var mt=o.nextElementSibling,Z=!1;Z=W===1;var Tt=Pt(D,n,c,i,o,r,t,Z);if(Tt!==!1)return(Tt===1||Tt===-1)&&(Z=Tt===1),te=!0,setTimeout(tn,30),j(),Z&&!mt?n.appendChild(c):o.parentNode.insertBefore(c,Z?mt:o),V&&_e(V,0,gt-V.scrollTop),_=c.parentNode,nt!==void 0&&!xt&&(Rt=Math.abs(nt-I(o)[pt])),B(),A(!0)}if(n.contains(c))return A(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){m(document,"mousemove",this._onTouchMove),m(document,"touchmove",this._onTouchMove),m(document,"pointermove",this._onTouchMove),m(document,"dragover",rt),m(document,"mousemove",rt),m(document,"touchmove",rt)},_offUpEvents:function(){var t=this.el.ownerDocument;m(t,"mouseup",this._onDrop),m(t,"touchend",this._onDrop),m(t,"pointerup",this._onDrop),m(t,"pointercancel",this._onDrop),m(t,"touchcancel",this._onDrop),m(document,"selectstart",this)},_onDrop:function(t){var n=this.el,o=this.options;if(k=X(c),Q=X(c,o.draggable),N("drop",this,{evt:t}),_=c&&c.parentNode,k=X(c),Q=X(c,o.draggable),p.eventCanceled){this._nulling();return}ut=!1,xt=!1,Ct=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ee(this.cloneId),ee(this._dragStartId),this.nativeDraggable&&(m(document,"drop",this),m(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),yt&&h(document.body,"user-select",""),h(c,"transform",""),t&&(bt&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),g&&g.parentNode&&g.parentNode.removeChild(g),(D===_||O&&O.lastPutMode!=="clone")&&S&&S.parentNode&&S.parentNode.removeChild(S),c&&(this.nativeDraggable&&m(c,"dragend",this),Vt(c),c.style["will-change"]="",bt&&!ut&&R(c,O?O.options.ghostClass:this.options.ghostClass,!1),R(c,this.options.chosenClass,!1),x({sortable:this,name:"unchoose",toEl:_,newIndex:null,newDraggableIndex:null,originalEvent:t}),D!==_?(k>=0&&(x({rootEl:_,name:"add",toEl:_,fromEl:D,originalEvent:t}),x({sortable:this,name:"remove",toEl:_,originalEvent:t}),x({rootEl:_,name:"sort",toEl:_,fromEl:D,originalEvent:t}),x({sortable:this,name:"sort",toEl:_,originalEvent:t})),O&&O.save()):k!==ct&&k>=0&&(x({sortable:this,name:"update",toEl:_,originalEvent:t}),x({sortable:this,name:"sort",toEl:_,originalEvent:t})),p.active&&((k==null||k===-1)&&(k=ct,Q=St),x({sortable:this,name:"end",toEl:_,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){N("nulling",this),D=c=_=g=at=S=Ft=J=it=G=bt=k=Q=ct=St=st=_t=O=At=p.dragged=p.ghost=p.clone=p.active=null,Ht.forEach(function(t){t.checked=!0}),Ht.length=Ut=$t=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":c&&(this._onDragOver(t),Je(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,o=this.el.children,i=0,r=o.length,a=this.options;i<r;i++)n=o[i],H(n,a.draggable,this.el,!1)&&t.push(n.getAttribute(a.dataIdAttr)||an(n));return t},sort:function(t,n){var o={},i=this.el;this.toArray().forEach(function(r,a){var l=i.children[a];H(l,this.options.draggable,i,!1)&&(o[r]=l)},this),n&&this.captureAnimationState(),t.forEach(function(r){o[r]&&(i.removeChild(o[r]),i.appendChild(o[r]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return H(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var o=this.options;if(n===void 0)return o[t];var i=Ot.modifyOption(this,t,n);typeof i<"u"?o[t]=i:o[t]=n,t==="group"&&Ae(o)},destroy:function(){N("destroy",this);var t=this.el;t[P]=null,m(t,"mousedown",this._onTapStart),m(t,"touchstart",this._onTapStart),m(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(m(t,"dragover",this),m(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Gt.splice(Gt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!J){if(N("hideClone",this),p.eventCanceled)return;h(S,"display","none"),this.options.removeCloneOnHide&&S.parentNode&&S.parentNode.removeChild(S),J=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(J){if(N("showClone",this),p.eventCanceled)return;c.parentNode==D&&!this.options.group.revertClone?D.insertBefore(S,c):at?D.insertBefore(S,at):D.appendChild(S),this.options.group.revertClone&&this.animate(c,S),h(S,"display",""),J=!1}}};function Je(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Pt(e,t,n,o,i,r,a,l){var s,u=e[P],d=u.options.onMove,f;return window.CustomEvent&&!q&&!It?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=t,s.from=e,s.dragged=n,s.draggedRect=o,s.related=i||t,s.relatedRect=r||I(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),d&&(f=d.call(u,s,a)),f}function Vt(e){e.draggable=!1}function tn(){te=!1}function en(e,t,n){var o=I(dt(n.el,0,n.options,!0)),i=Ie(n.el,n.options,g),r=10;return t?e.clientX<i.left-r||e.clientY<o.top&&e.clientX<o.right:e.clientY<i.top-r||e.clientY<o.bottom&&e.clientX<o.left}function nn(e,t,n){var o=I(re(n.el,n.options.draggable)),i=Ie(n.el,n.options,g),r=10;return t?e.clientX>i.right+r||e.clientY>o.bottom&&e.clientX>o.left:e.clientY>i.bottom+r||e.clientX>o.right&&e.clientY>o.top}function on(e,t,n,o,i,r,a,l){var s=o?e.clientY:e.clientX,u=o?n.height:n.width,d=o?n.top:n.left,f=o?n.bottom:n.right,b=!1;if(!a){if(l&&Rt<u*i){if(!Ct&&(_t===1?s>d+u*r/2:s<f-u*r/2)&&(Ct=!0),Ct)b=!0;else if(_t===1?s<d+Rt:s>f-Rt)return-_t}else if(s>d+u*(1-i)/2&&s<f-u*(1-i)/2)return rn(t)}return b=b||a,b&&(s<d+u*r/2||s>f-u*r/2)?s>d+u/2?1:-1:0}function rn(e){return X(c)<X(e)?1:-1}function an(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function ln(e){Ht.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var o=t[n];o.checked&&Ht.push(o)}}function kt(e){return setTimeout(e,0)}function ee(e){return clearTimeout(e)}Kt&&v(document,"touchmove",function(e){(p.active||ut)&&e.cancelable&&e.preventDefault()});p.utils={on:v,off:m,css:h,find:De,is:function(t,n){return!!H(t,n,t,!1)},extend:We,throttle:Se,closest:H,toggleClass:R,clone:Ce,index:X,nextTick:kt,cancelNextTick:ee,detectDirection:Te,getChild:dt,expando:P};p.get=function(e){return e[P]};p.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(p.utils=L(L({},p.utils),o.utils)),Ot.mount(o)})};p.create=function(e,t){return new p(e,t)};p.version=Ge;var C=[],Et,ne,oe=!1,Zt,Qt,Wt,wt;function sn(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var o=n.originalEvent;this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):this.options.supportPointer?v(document,"pointermove",this._handleFallbackAutoScroll):o.touches?v(document,"touchmove",this._handleFallbackAutoScroll):v(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var o=n.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?m(document,"dragover",this._handleAutoScroll):(m(document,"pointermove",this._handleFallbackAutoScroll),m(document,"touchmove",this._handleFallbackAutoScroll),m(document,"mousemove",this._handleFallbackAutoScroll)),be(),Xt(),Ke()},nulling:function(){Wt=ne=Et=oe=wt=Zt=Qt=null,C.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,o){var i=this,r=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(r,a);if(Wt=n,o||this.options.forceAutoScrollFallback||It||q||yt){Jt(n,this.options,l,o);var s=tt(l,!0);oe&&(!wt||r!==Zt||a!==Qt)&&(wt&&be(),wt=setInterval(function(){var u=tt(document.elementFromPoint(r,a),!0);u!==s&&(s=u,Xt()),Jt(n,i.options,u,o)},10),Zt=r,Qt=a)}else{if(!this.options.bubbleScroll||tt(l,!0)===K()){Xt();return}Jt(n,this.options,tt(l,!1),!1)}}},$(e,{pluginName:"scroll",initializeByDefault:!0})}function Xt(){C.forEach(function(e){clearInterval(e.pid)}),C=[]}function be(){clearInterval(wt)}var Jt=Se(function(e,t,n,o){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,l=t.scrollSpeed,s=K(),u=!1,d;ne!==n&&(ne=n,Xt(),Et=t.scroll,d=t.scrollFn,Et===!0&&(Et=tt(n,!0)));var f=0,b=Et;do{var y=b,E=I(y),w=E.top,Y=E.bottom,j=E.left,A=E.right,B=E.width,M=E.height,et=void 0,W=void 0,nt=y.scrollWidth,ht=y.scrollHeight,F=h(y),pt=y.scrollLeft,V=y.scrollTop;y===s?(et=B<nt&&(F.overflowX==="auto"||F.overflowX==="scroll"||F.overflowX==="visible"),W=M<ht&&(F.overflowY==="auto"||F.overflowY==="scroll"||F.overflowY==="visible")):(et=B<nt&&(F.overflowX==="auto"||F.overflowX==="scroll"),W=M<ht&&(F.overflowY==="auto"||F.overflowY==="scroll"));var gt=et&&(Math.abs(A-i)<=a&&pt+B<nt)-(Math.abs(j-i)<=a&&!!pt),z=W&&(Math.abs(Y-r)<=a&&V+M<ht)-(Math.abs(w-r)<=a&&!!V);if(!C[f])for(var ot=0;ot<=f;ot++)C[ot]||(C[ot]={});(C[f].vx!=gt||C[f].vy!=z||C[f].el!==y)&&(C[f].el=y,C[f].vx=gt,C[f].vy=z,clearInterval(C[f].pid),(gt!=0||z!=0)&&(u=!0,C[f].pid=setInterval(function(){o&&this.layer===0&&p.active._onTouchMove(Wt);var mt=C[this.layer].vy?C[this.layer].vy*l:0,Z=C[this.layer].vx?C[this.layer].vx*l:0;typeof d=="function"&&d.call(p.dragged.parentNode[P],Z,mt,e,Wt,C[this.layer].el)!=="continue"||_e(C[this.layer].el,Z,mt)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&b!==s&&(b=tt(b,!1)));oe=u}},30),Pe=function(t){var n=t.originalEvent,o=t.putSortable,i=t.dragEl,r=t.activeSortable,a=t.dispatchSortableEvent,l=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(n){var u=o||r;l();var d=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(d.clientX,d.clientY);s(),u&&!u.el.contains(f)&&(a("spill"),this.onSpill({dragEl:i,putSortable:o}))}};function ae(){}ae.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var i=dt(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),o&&o.animateAll()},drop:Pe};$(ae,{pluginName:"revertOnSpill"});function le(){}le.prototype={onSpill:function(t){var n=t.dragEl,o=t.putSortable,i=o||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:Pe};$(le,{pluginName:"removeOnSpill"});p.mount(new sn);p.mount(le,ae);var Me=p;var Lt=new Set,un={ghostClass:"calcite-sortable--ghost",chosenClass:"calcite-sortable--chosen",dragClass:"calcite-sortable--drag",fallbackClass:"calcite-sortable--fallback"};function mn(e){if(Fe(e))return;cn(e),Lt.add(e);let t="id",{group:n,handleSelector:o,dragSelector:i}=e;e.sortable=Me.create(e.el,{dataIdAttr:t,...un,...!!i&&{draggable:i},...!!n&&{group:{name:n,...!!e.canPull&&{pull:(r,a,l,{newIndex:s,oldIndex:u})=>e.canPull({toEl:r.el,fromEl:a.el,dragEl:l,newIndex:s,oldIndex:u})},...!!e.canPut&&{put:(r,a,l,{newIndex:s,oldIndex:u})=>e.canPut({toEl:r.el,fromEl:a.el,dragEl:l,newIndex:s,oldIndex:u})}}},onMove:({from:r,dragged:a,to:l,related:s})=>{e.onDragMove&&e.onDragMove({fromEl:r,dragEl:a,toEl:l,relatedEl:s})},handle:o,filter:`${o}[disabled]`,onStart:({from:r,item:a,to:l,newIndex:s,oldIndex:u})=>{se.active=!0,fn(),e.onDragStart({fromEl:r,dragEl:a,toEl:l,newIndex:s,oldIndex:u})},onEnd:({from:r,item:a,to:l,newIndex:s,oldIndex:u})=>{se.active=!1,dn(),e.onDragEnd({fromEl:r,dragEl:a,toEl:l,newIndex:s,oldIndex:u})},onSort:({from:r,item:a,to:l,newIndex:s,oldIndex:u})=>{e.onDragSort({fromEl:r,dragEl:a,toEl:l,newIndex:s,oldIndex:u})}})}function cn(e){Fe(e)||(Lt.delete(e),e.sortable?.destroy(),e.sortable=null)}var se={active:!1};function Fe(e){return e.dragEnabled&&se.active}function fn(){Array.from(Lt).forEach(e=>e.onGlobalDragStart())}function dn(){Array.from(Lt).forEach(e=>e.onGlobalDragEnd())}export{mn as a,cn as b};
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.83
4
+ * v3.0.0-next.85
5
5
  */
6
- import{a as re,l as ne}from"./ZAXAVOLY.js";import{D as ae}from"./BS4SPFFW.js";var oe=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],B=oe.join(","),ue=typeof Element>"u",D=ue?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,K=!ue&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a?.ownerDocument},j=function a(e,t){var r;t===void 0&&(t=!0);var u=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),c=u===""||u==="true",i=c||t&&e&&a(e.parentNode);return i},Te=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},se=function(e,t,r){if(j(e))return[];var u=Array.prototype.slice.apply(e.querySelectorAll(B));return t&&D.call(e,B)&&u.unshift(e),u=u.filter(r),u},ce=function a(e,t,r){for(var u=[],c=Array.from(e);c.length;){var i=c.shift();if(!j(i,!1))if(i.tagName==="SLOT"){var b=i.assignedElements(),f=b.length?b:i.children,y=a(f,!0,r);r.flatten?u.push.apply(u,y):u.push({scopeParent:i,candidates:y})}else{var T=D.call(i,B);T&&r.filter(i)&&(t||!e.includes(i))&&u.push(i);var w=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),S=!j(w,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(w&&S){var I=a(w===!0?i.children:w.children,!0,r);r.flatten?u.push.apply(u,I):u.push({scopeParent:i,candidates:I})}else c.unshift.apply(c,i.children)}}return u},le=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},E=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Te(e))&&!le(e)?0:e.tabIndex},Ne=function(e,t){var r=E(e);return r<0&&t&&!le(e)?0:r},Fe=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},fe=function(e){return e.tagName==="INPUT"},Ee=function(e){return fe(e)&&e.type==="hidden"},Se=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},ke=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},De=function(e){if(!e.name)return!0;var t=e.form||K(e),r=function(b){return t.querySelectorAll('input[type="radio"][name="'+b+'"]')},u;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")u=r(window.CSS.escape(e.name));else try{u=r(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var c=ke(u,e.form);return!c||c===e},Re=function(e){return fe(e)&&e.type==="radio"},Ie=function(e){return Re(e)&&!De(e)},Ae=function(e){var t,r=e&&K(e),u=(t=r)===null||t===void 0?void 0:t.host,c=!1;if(r&&r!==e){var i,b,f;for(c=!!((i=u)!==null&&i!==void 0&&(b=i.ownerDocument)!==null&&b!==void 0&&b.contains(u)||e!=null&&(f=e.ownerDocument)!==null&&f!==void 0&&f.contains(e));!c&&u;){var y,T,w;r=K(u),u=(y=r)===null||y===void 0?void 0:y.host,c=!!((T=u)!==null&&T!==void 0&&(w=T.ownerDocument)!==null&&w!==void 0&&w.contains(u))}}return c},ie=function(e){var t=e.getBoundingClientRect(),r=t.width,u=t.height;return r===0&&u===0},Pe=function(e,t){var r=t.displayCheck,u=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var c=D.call(e,"details>summary:first-of-type"),i=c?e.parentElement:e;if(D.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof u=="function"){for(var b=e;e;){var f=e.parentElement,y=K(e);if(f&&!f.shadowRoot&&u(f)===!0)return ie(e);e.assignedSlot?e=e.assignedSlot:!f&&y!==e.ownerDocument?e=y.host:e=f}e=b}if(Ae(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return ie(e);return!1},Oe=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var u=t.children.item(r);if(u.tagName==="LEGEND")return D.call(t,"fieldset[disabled] *")?!0:!u.contains(e)}return!0}t=t.parentElement}return!1},M=function(e,t){return!(t.disabled||j(t)||Ee(t)||Pe(t,e)||Se(t)||Oe(t))},W=function(e,t){return!(Ie(t)||E(t)<0||!M(e,t))},Ce=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},xe=function a(e){var t=[],r=[];return e.forEach(function(u,c){var i=!!u.scopeParent,b=i?u.scopeParent:u,f=Ne(b,i),y=i?a(u.candidates):b;f===0?i?t.push.apply(t,y):t.push(b):r.push({documentOrder:c,tabIndex:f,item:u,isScope:i,content:y})}),r.sort(Fe).reduce(function(u,c){return c.isScope?u.push.apply(u,c.content):u.push(c.content),u},[]).concat(t)},de=function(e,t){t=t||{};var r;return t.getShadowRoot?r=ce([e],t.includeContainer,{filter:W.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ce}):r=se(e,t.includeContainer,W.bind(null,t)),xe(r)},ve=function(e,t){t=t||{};var r;return t.getShadowRoot?r=ce([e],t.includeContainer,{filter:M.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):r=se(e,t.includeContainer,M.bind(null,t)),r},R=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return D.call(e,B)===!1?!1:W(t,e)},Le=oe.concat("iframe").join(","),U=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return D.call(e,Le)===!1?!1:M(t,e)};function Y(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,r=Array(e);t<e;t++)r[t]=a[t];return r}function Be(a){if(Array.isArray(a))return Y(a)}function Ke(a,e,t){return(e=qe(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function je(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Me(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
6
+ import{a as re,l as ne}from"./IHS2TS4Q.js";import{D as ae}from"./SNOC4YCH.js";var oe=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],B=oe.join(","),ue=typeof Element>"u",D=ue?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,K=!ue&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a?.ownerDocument},j=function a(e,t){var r;t===void 0&&(t=!0);var u=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),c=u===""||u==="true",i=c||t&&e&&a(e.parentNode);return i},Te=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},se=function(e,t,r){if(j(e))return[];var u=Array.prototype.slice.apply(e.querySelectorAll(B));return t&&D.call(e,B)&&u.unshift(e),u=u.filter(r),u},ce=function a(e,t,r){for(var u=[],c=Array.from(e);c.length;){var i=c.shift();if(!j(i,!1))if(i.tagName==="SLOT"){var b=i.assignedElements(),f=b.length?b:i.children,y=a(f,!0,r);r.flatten?u.push.apply(u,y):u.push({scopeParent:i,candidates:y})}else{var T=D.call(i,B);T&&r.filter(i)&&(t||!e.includes(i))&&u.push(i);var w=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),S=!j(w,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(w&&S){var I=a(w===!0?i.children:w.children,!0,r);r.flatten?u.push.apply(u,I):u.push({scopeParent:i,candidates:I})}else c.unshift.apply(c,i.children)}}return u},le=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},E=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Te(e))&&!le(e)?0:e.tabIndex},Ne=function(e,t){var r=E(e);return r<0&&t&&!le(e)?0:r},Fe=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},fe=function(e){return e.tagName==="INPUT"},Ee=function(e){return fe(e)&&e.type==="hidden"},Se=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},ke=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},De=function(e){if(!e.name)return!0;var t=e.form||K(e),r=function(b){return t.querySelectorAll('input[type="radio"][name="'+b+'"]')},u;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")u=r(window.CSS.escape(e.name));else try{u=r(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var c=ke(u,e.form);return!c||c===e},Re=function(e){return fe(e)&&e.type==="radio"},Ie=function(e){return Re(e)&&!De(e)},Ae=function(e){var t,r=e&&K(e),u=(t=r)===null||t===void 0?void 0:t.host,c=!1;if(r&&r!==e){var i,b,f;for(c=!!((i=u)!==null&&i!==void 0&&(b=i.ownerDocument)!==null&&b!==void 0&&b.contains(u)||e!=null&&(f=e.ownerDocument)!==null&&f!==void 0&&f.contains(e));!c&&u;){var y,T,w;r=K(u),u=(y=r)===null||y===void 0?void 0:y.host,c=!!((T=u)!==null&&T!==void 0&&(w=T.ownerDocument)!==null&&w!==void 0&&w.contains(u))}}return c},ie=function(e){var t=e.getBoundingClientRect(),r=t.width,u=t.height;return r===0&&u===0},Pe=function(e,t){var r=t.displayCheck,u=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var c=D.call(e,"details>summary:first-of-type"),i=c?e.parentElement:e;if(D.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof u=="function"){for(var b=e;e;){var f=e.parentElement,y=K(e);if(f&&!f.shadowRoot&&u(f)===!0)return ie(e);e.assignedSlot?e=e.assignedSlot:!f&&y!==e.ownerDocument?e=y.host:e=f}e=b}if(Ae(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return ie(e);return!1},Oe=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var u=t.children.item(r);if(u.tagName==="LEGEND")return D.call(t,"fieldset[disabled] *")?!0:!u.contains(e)}return!0}t=t.parentElement}return!1},M=function(e,t){return!(t.disabled||j(t)||Ee(t)||Pe(t,e)||Se(t)||Oe(t))},W=function(e,t){return!(Ie(t)||E(t)<0||!M(e,t))},Ce=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},xe=function a(e){var t=[],r=[];return e.forEach(function(u,c){var i=!!u.scopeParent,b=i?u.scopeParent:u,f=Ne(b,i),y=i?a(u.candidates):b;f===0?i?t.push.apply(t,y):t.push(b):r.push({documentOrder:c,tabIndex:f,item:u,isScope:i,content:y})}),r.sort(Fe).reduce(function(u,c){return c.isScope?u.push.apply(u,c.content):u.push(c.content),u},[]).concat(t)},de=function(e,t){t=t||{};var r;return t.getShadowRoot?r=ce([e],t.includeContainer,{filter:W.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ce}):r=se(e,t.includeContainer,W.bind(null,t)),xe(r)},ve=function(e,t){t=t||{};var r;return t.getShadowRoot?r=ce([e],t.includeContainer,{filter:M.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):r=se(e,t.includeContainer,M.bind(null,t)),r},R=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return D.call(e,B)===!1?!1:W(t,e)},Le=oe.concat("iframe").join(","),U=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return D.call(e,Le)===!1?!1:M(t,e)};function Y(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,r=Array(e);t<e;t++)r[t]=a[t];return r}function Be(a){if(Array.isArray(a))return Y(a)}function Ke(a,e,t){return(e=qe(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function je(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Me(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
7
7
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function be(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),t.push.apply(t,r)}return t}function pe(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?be(Object(t),!0).forEach(function(r){Ke(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):be(Object(t)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}function Ue(a){return Be(a)||je(a)||Ve(a)||Me()}function Ge(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var r=t.call(a,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function qe(a){var e=Ge(a,"string");return typeof e=="symbol"?e:e+""}function Ve(a,e){if(a){if(typeof a=="string")return Y(a,e);var t={}.toString.call(a).slice(8,-1);return t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set"?Array.from(a):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Y(a,e):void 0}}var he={activateTrap:function(e,t){if(e.length>0){var r=e[e.length-1];r!==t&&r.pause()}var u=e.indexOf(t);u===-1||e.splice(u,1),e.push(t)},deactivateTrap:function(e,t){var r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},$e=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},We=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},x=function(e){return e?.key==="Tab"||e?.keyCode===9},Ye=function(e){return x(e)&&!e.shiftKey},Ze=function(e){return x(e)&&e.shiftKey},ye=function(e){return setTimeout(e,0)},C=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),u=1;u<t;u++)r[u-1]=arguments[u];return typeof e=="function"?e.apply(void 0,r):e},G=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},ze=[],me=function(e,t){var r=t?.document||document,u=t?.trapStack||ze,c=pe({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Ye,isKeyBackward:Ze},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},b,f=function(n,o,s){return n&&n[o]!==void 0?n[o]:c[s||o]},y=function(n,o){var s=typeof o?.composedPath=="function"?o.composedPath():void 0;return i.containerGroups.findIndex(function(d){var v=d.container,h=d.tabbableNodes;return v.contains(n)||s?.includes(v)||h.find(function(l){return l===n})})},T=function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.hasFallback,d=s===void 0?!1:s,v=o.params,h=v===void 0?[]:v,l=c[n];if(typeof l=="function"&&(l=l.apply(void 0,Ue(h))),l===!0&&(l=void 0),!l){if(l===void 0||l===!1)return l;throw new Error("`".concat(n,"` was specified but was not a node, or did not return a node"))}var m=l;if(typeof l=="string"){try{m=r.querySelector(l)}catch(g){throw new Error("`".concat(n,'` appears to be an invalid selector; error="').concat(g.message,'"'))}if(!m&&!d)throw new Error("`".concat(n,"` as selector refers to no known node"))}return m},w=function(){var n=T("initialFocus",{hasFallback:!0});if(n===!1)return!1;if(n===void 0||n&&!U(n,c.tabbableOptions))if(y(r.activeElement)>=0)n=r.activeElement;else{var o=i.tabbableGroups[0],s=o&&o.firstTabbableNode;n=s||T("fallbackFocus")}else n===null&&(n=T("fallbackFocus"));if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n},S=function(){if(i.containerGroups=i.containers.map(function(n){var o=de(n,c.tabbableOptions),s=ve(n,c.tabbableOptions),d=o.length>0?o[0]:void 0,v=o.length>0?o[o.length-1]:void 0,h=s.find(function(g){return R(g)}),l=s.slice().reverse().find(function(g){return R(g)}),m=!!o.find(function(g){return E(g)>0});return{container:n,tabbableNodes:o,focusableNodes:s,posTabIndexesFound:m,firstTabbableNode:d,lastTabbableNode:v,firstDomTabbableNode:h,lastDomTabbableNode:l,nextTabbableNode:function(k){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,F=o.indexOf(k);return F<0?P?s.slice(s.indexOf(k)+1).find(function(O){return R(O)}):s.slice(0,s.indexOf(k)).reverse().find(function(O){return R(O)}):o[F+(P?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(n){return n.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!T("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(n){return n.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},I=function(n){var o=n.activeElement;if(o)return o.shadowRoot&&o.shadowRoot.activeElement!==null?I(o.shadowRoot):o},N=function(n){if(n!==!1&&n!==I(document)){if(!n||!n.focus){N(w());return}n.focus({preventScroll:!!c.preventScroll}),i.mostRecentlyFocusedNode=n,$e(n)&&n.select()}},Z=function(n){var o=T("setReturnFocus",{params:[n]});return o||(o===!1?!1:n)},z=function(n){var o=n.target,s=n.event,d=n.isBackward,v=d===void 0?!1:d;o=o||G(s),S();var h=null;if(i.tabbableGroups.length>0){var l=y(o,s),m=l>=0?i.containerGroups[l]:void 0;if(l<0)v?h=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:h=i.tabbableGroups[0].firstTabbableNode;else if(v){var g=i.tabbableGroups.findIndex(function(V){var $=V.firstTabbableNode;return o===$});if(g<0&&(m.container===o||U(o,c.tabbableOptions)&&!R(o,c.tabbableOptions)&&!m.nextTabbableNode(o,!1))&&(g=l),g>=0){var k=g===0?i.tabbableGroups.length-1:g-1,P=i.tabbableGroups[k];h=E(o)>=0?P.lastTabbableNode:P.lastDomTabbableNode}else x(s)||(h=m.nextTabbableNode(o,!1))}else{var F=i.tabbableGroups.findIndex(function(V){var $=V.lastTabbableNode;return o===$});if(F<0&&(m.container===o||U(o,c.tabbableOptions)&&!R(o,c.tabbableOptions)&&!m.nextTabbableNode(o))&&(F=l),F>=0){var O=F===i.tabbableGroups.length-1?0:F+1,te=i.tabbableGroups[O];h=E(o)>=0?te.firstTabbableNode:te.firstDomTabbableNode}else x(s)||(h=m.nextTabbableNode(o))}}else h=T("fallbackFocus");return h},L=function(n){var o=G(n);if(!(y(o,n)>=0)){if(C(c.clickOutsideDeactivates,n)){b.deactivate({returnFocus:c.returnFocusOnDeactivate});return}C(c.allowOutsideClick,n)||n.preventDefault()}},X=function(n){var o=G(n),s=y(o,n)>=0;if(s||o instanceof Document)s&&(i.mostRecentlyFocusedNode=o);else{n.stopImmediatePropagation();var d,v=!0;if(i.mostRecentlyFocusedNode)if(E(i.mostRecentlyFocusedNode)>0){var h=y(i.mostRecentlyFocusedNode),l=i.containerGroups[h].tabbableNodes;if(l.length>0){var m=l.findIndex(function(g){return g===i.mostRecentlyFocusedNode});m>=0&&(c.isKeyForward(i.recentNavEvent)?m+1<l.length&&(d=l[m+1],v=!1):m-1>=0&&(d=l[m-1],v=!1))}}else i.containerGroups.some(function(g){return g.tabbableNodes.some(function(k){return E(k)>0})})||(v=!1);else v=!1;v&&(d=z({target:i.mostRecentlyFocusedNode,isBackward:c.isKeyBackward(i.recentNavEvent)})),N(d||i.mostRecentlyFocusedNode||w())}i.recentNavEvent=void 0},ge=function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=n;var s=z({event:n,isBackward:o});s&&(x(n)&&n.preventDefault(),N(s))},H=function(n){(c.isKeyForward(n)||c.isKeyBackward(n))&&ge(n,c.isKeyBackward(n))},J=function(n){We(n)&&C(c.escapeDeactivates,n)!==!1&&(n.preventDefault(),b.deactivate())},Q=function(n){var o=G(n);y(o,n)>=0||C(c.clickOutsideDeactivates,n)||C(c.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())},_=function(){if(i.active)return he.activateTrap(u,b),i.delayInitialFocusTimer=c.delayInitialFocus?ye(function(){N(w())}):N(w()),r.addEventListener("focusin",X,!0),r.addEventListener("mousedown",L,{capture:!0,passive:!1}),r.addEventListener("touchstart",L,{capture:!0,passive:!1}),r.addEventListener("click",Q,{capture:!0,passive:!1}),r.addEventListener("keydown",H,{capture:!0,passive:!1}),r.addEventListener("keydown",J),b},ee=function(){if(i.active)return r.removeEventListener("focusin",X,!0),r.removeEventListener("mousedown",L,!0),r.removeEventListener("touchstart",L,!0),r.removeEventListener("click",Q,!0),r.removeEventListener("keydown",H,!0),r.removeEventListener("keydown",J),b},we=function(n){var o=n.some(function(s){var d=Array.from(s.removedNodes);return d.some(function(v){return v===i.mostRecentlyFocusedNode})});o&&N(w())},q=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(we):void 0,A=function(){q&&(q.disconnect(),i.active&&!i.paused&&i.containers.map(function(n){q.observe(n,{subtree:!0,childList:!0})}))};return b={get active(){return i.active},get paused(){return i.paused},activate:function(n){if(i.active)return this;var o=f(n,"onActivate"),s=f(n,"onPostActivate"),d=f(n,"checkCanFocusTrap");d||S(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,o?.();var v=function(){d&&S(),_(),A(),s?.()};return d?(d(i.containers.concat()).then(v,v),this):(v(),this)},deactivate:function(n){if(!i.active)return this;var o=pe({onDeactivate:c.onDeactivate,onPostDeactivate:c.onPostDeactivate,checkCanReturnFocus:c.checkCanReturnFocus},n);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,ee(),i.active=!1,i.paused=!1,A(),he.deactivateTrap(u,b);var s=f(o,"onDeactivate"),d=f(o,"onPostDeactivate"),v=f(o,"checkCanReturnFocus"),h=f(o,"returnFocus","returnFocusOnDeactivate");s?.();var l=function(){ye(function(){h&&N(Z(i.nodeFocusedBeforeActivation)),d?.()})};return h&&v?(v(Z(i.nodeFocusedBeforeActivation)).then(l,l),this):(l(),this)},pause:function(n){if(i.paused||!i.active)return this;var o=f(n,"onPause"),s=f(n,"onPostPause");return i.paused=!0,o?.(),ee(),A(),s?.(),this},unpause:function(n){if(!i.paused||!i.active)return this;var o=f(n,"onUnpause"),s=f(n,"onPostUnpause");return i.paused=!1,o?.(),S(),_(),A(),s?.(),this},updateContainerElements:function(n){var o=[].concat(n).filter(Boolean);return i.containers=o.map(function(s){return typeof s=="string"?r.querySelector(s):s}),i.active&&S(),A(),this}},b.updateContainerElements(e),b};function tt(a,e){let{el:t}=a,r=e?.focusTrapEl||t;if(!r)return;let u={clickOutsideDeactivates:!0,fallbackFocus:r,setReturnFocus:c=>(ne(c),!1),...e?.focusTrapOptions,document:t.ownerDocument,tabbableOptions:re,trapStack:ae};a.focusTrap=me(r,u)}function at(a,e){a.focusTrapDisabled||a.focusTrap?.activate(e)}function rt(a,e){a.focusTrap?.deactivate(e)}function nt(a){a.focusTrap?.updateContainerElements(a.el)}export{tt as a,at as b,rt as c,nt as d};