@ecl/preset-ec 4.10.0 → 5.0.0-RC1

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 (413) hide show
  1. package/dist/fonts/InterVariable-Italic.woff2 +0 -0
  2. package/dist/fonts/InterVariable.woff2 +0 -0
  3. package/dist/fonts/version.txt +1 -0
  4. package/dist/images/logo/negative/all.json +1 -0
  5. package/dist/images/logo/negative/esm-export.js +9592 -0
  6. package/dist/images/logo/negative/logo-ec--gl.svg +251 -0
  7. package/dist/images/logo/negative/logo-ec--kl.svg +251 -0
  8. package/dist/images/logo/positive/all.json +1 -0
  9. package/dist/images/logo/positive/esm-export.js +9440 -0
  10. package/dist/images/logo/positive/logo-ec--gl.svg +247 -0
  11. package/dist/images/logo/positive/logo-ec--kl.svg +247 -0
  12. package/dist/scripts/ecl-ec.js +26 -2
  13. package/dist/scripts/ecl-esm-ec.js +26 -0
  14. package/dist/styles/ecl-ec-color-modes.css +1 -0
  15. package/dist/styles/ecl-ec-color-modes.css.map +1 -0
  16. package/dist/styles/ecl-ec-print.css +1 -2
  17. package/dist/styles/ecl-ec-print.css.map +1 -1
  18. package/dist/styles/ecl-ec.css +1 -6
  19. package/dist/styles/ecl-ec.css.map +1 -1
  20. package/dist/styles/optional/ecl-ec-default-print.css +1 -1
  21. package/dist/styles/optional/ecl-ec-default.css +1 -1
  22. package/dist/styles/optional/ecl-ec-easy-to-read.css +1 -1
  23. package/dist/styles/optional/ecl-ec-utilities.css +1 -2
  24. package/dist/styles/optional/ecl-ec-utilities.css.map +1 -1
  25. package/dist/styles/optional/ecl-reset.css +2 -2
  26. package/fonts/InterVariable-Italic.woff2 +0 -0
  27. package/fonts/InterVariable.woff2 +0 -0
  28. package/fonts/version.txt +1 -0
  29. package/package.json +94 -86
  30. package/dist/images/icons/lists/all.json +0 -1
  31. package/dist/images/icons/sprites/icons.svg +0 -1
  32. package/dist/images/icons/svg/all/arrow-left.svg +0 -1
  33. package/dist/images/icons/svg/all/audio.svg +0 -1
  34. package/dist/images/icons/svg/all/book.svg +0 -1
  35. package/dist/images/icons/svg/all/brochure.svg +0 -1
  36. package/dist/images/icons/svg/all/budget.svg +0 -1
  37. package/dist/images/icons/svg/all/calendar.svg +0 -1
  38. package/dist/images/icons/svg/all/camera.svg +0 -1
  39. package/dist/images/icons/svg/all/chain.svg +0 -1
  40. package/dist/images/icons/svg/all/check-filled.svg +0 -1
  41. package/dist/images/icons/svg/all/check.svg +0 -1
  42. package/dist/images/icons/svg/all/clock-filled.svg +0 -1
  43. package/dist/images/icons/svg/all/clock.svg +0 -1
  44. package/dist/images/icons/svg/all/close-filled.svg +0 -1
  45. package/dist/images/icons/svg/all/close-outline.svg +0 -1
  46. package/dist/images/icons/svg/all/close.svg +0 -1
  47. package/dist/images/icons/svg/all/copy.svg +0 -1
  48. package/dist/images/icons/svg/all/corner-arrow.svg +0 -1
  49. package/dist/images/icons/svg/all/data.svg +0 -1
  50. package/dist/images/icons/svg/all/digital.svg +0 -1
  51. package/dist/images/icons/svg/all/document.svg +0 -1
  52. package/dist/images/icons/svg/all/download.svg +0 -1
  53. package/dist/images/icons/svg/all/edit.svg +0 -1
  54. package/dist/images/icons/svg/all/email.svg +0 -1
  55. package/dist/images/icons/svg/all/energy.svg +0 -1
  56. package/dist/images/icons/svg/all/error-outline.svg +0 -1
  57. package/dist/images/icons/svg/all/error.svg +0 -1
  58. package/dist/images/icons/svg/all/euro.svg +0 -1
  59. package/dist/images/icons/svg/all/event.svg +0 -1
  60. package/dist/images/icons/svg/all/external-events.svg +0 -1
  61. package/dist/images/icons/svg/all/external.svg +0 -1
  62. package/dist/images/icons/svg/all/eye.svg +0 -1
  63. package/dist/images/icons/svg/all/faq.svg +0 -1
  64. package/dist/images/icons/svg/all/feedback.svg +0 -1
  65. package/dist/images/icons/svg/all/file-blank.svg +0 -1
  66. package/dist/images/icons/svg/all/file.svg +0 -1
  67. package/dist/images/icons/svg/all/folder.svg +0 -1
  68. package/dist/images/icons/svg/all/fullscreen.svg +0 -1
  69. package/dist/images/icons/svg/all/global.svg +0 -1
  70. package/dist/images/icons/svg/all/growth.svg +0 -1
  71. package/dist/images/icons/svg/all/hamburger.svg +0 -1
  72. package/dist/images/icons/svg/all/image.svg +0 -1
  73. package/dist/images/icons/svg/all/infographic.svg +0 -1
  74. package/dist/images/icons/svg/all/information-outline.svg +0 -1
  75. package/dist/images/icons/svg/all/information-round.svg +0 -1
  76. package/dist/images/icons/svg/all/information.svg +0 -1
  77. package/dist/images/icons/svg/all/laco-filled.svg +0 -1
  78. package/dist/images/icons/svg/all/laco.svg +0 -1
  79. package/dist/images/icons/svg/all/list.svg +0 -1
  80. package/dist/images/icons/svg/all/livestreaming.svg +0 -1
  81. package/dist/images/icons/svg/all/location-filled.svg +0 -1
  82. package/dist/images/icons/svg/all/location.svg +0 -1
  83. package/dist/images/icons/svg/all/log-in-outline.svg +0 -1
  84. package/dist/images/icons/svg/all/log-in.svg +0 -1
  85. package/dist/images/icons/svg/all/logged-in.svg +0 -1
  86. package/dist/images/icons/svg/all/minus-outline.svg +0 -1
  87. package/dist/images/icons/svg/all/minus.svg +0 -1
  88. package/dist/images/icons/svg/all/multiple-files.svg +0 -1
  89. package/dist/images/icons/svg/all/notification-active.svg +0 -1
  90. package/dist/images/icons/svg/all/notification.svg +0 -1
  91. package/dist/images/icons/svg/all/organigram.svg +0 -1
  92. package/dist/images/icons/svg/all/package.svg +0 -1
  93. package/dist/images/icons/svg/all/pause-filled.svg +0 -1
  94. package/dist/images/icons/svg/all/pause-outline.svg +0 -1
  95. package/dist/images/icons/svg/all/pause.svg +0 -1
  96. package/dist/images/icons/svg/all/play-filled.svg +0 -1
  97. package/dist/images/icons/svg/all/play-outline.svg +0 -1
  98. package/dist/images/icons/svg/all/play.svg +0 -1
  99. package/dist/images/icons/svg/all/plus-filled.svg +0 -1
  100. package/dist/images/icons/svg/all/plus-outline.svg +0 -1
  101. package/dist/images/icons/svg/all/plus.svg +0 -1
  102. package/dist/images/icons/svg/all/presentation.svg +0 -1
  103. package/dist/images/icons/svg/all/print.svg +0 -1
  104. package/dist/images/icons/svg/all/regulation.svg +0 -1
  105. package/dist/images/icons/svg/all/rss.svg +0 -1
  106. package/dist/images/icons/svg/all/search.svg +0 -1
  107. package/dist/images/icons/svg/all/settings.svg +0 -1
  108. package/dist/images/icons/svg/all/share-filled.svg +0 -1
  109. package/dist/images/icons/svg/all/share.svg +0 -1
  110. package/dist/images/icons/svg/all/shopping-bag.svg +0 -1
  111. package/dist/images/icons/svg/all/solid-arrow.svg +0 -1
  112. package/dist/images/icons/svg/all/sort-carets.svg +0 -1
  113. package/dist/images/icons/svg/all/spinner.svg +0 -1
  114. package/dist/images/icons/svg/all/spreadsheet.svg +0 -1
  115. package/dist/images/icons/svg/all/star-filled.svg +0 -1
  116. package/dist/images/icons/svg/all/star-outline.svg +0 -1
  117. package/dist/images/icons/svg/all/tag.svg +0 -1
  118. package/dist/images/icons/svg/all/trash.svg +0 -1
  119. package/dist/images/icons/svg/all/upload.svg +0 -1
  120. package/dist/images/icons/svg/all/warning-outline.svg +0 -1
  121. package/dist/images/icons/svg/all/warning-round.svg +0 -1
  122. package/dist/images/icons/svg/all/warning.svg +0 -1
  123. package/dist/images/icons-flag/lists/members/all.json +0 -1
  124. package/dist/images/icons-flag/lists/non-members/all.json +0 -1
  125. package/dist/images/icons-flag/sprites/icons-flag-non-members.svg +0 -1
  126. package/dist/images/icons-flag/sprites/icons-flag.svg +0 -1
  127. package/dist/images/icons-flag/svg/members/EU-square.svg +0 -1
  128. package/dist/images/icons-flag/svg/members/EU.svg +0 -1
  129. package/dist/images/icons-flag/svg/members/austria-square.svg +0 -1
  130. package/dist/images/icons-flag/svg/members/austria.svg +0 -1
  131. package/dist/images/icons-flag/svg/members/belgium-square.svg +0 -1
  132. package/dist/images/icons-flag/svg/members/belgium.svg +0 -1
  133. package/dist/images/icons-flag/svg/members/bulgaria-square.svg +0 -1
  134. package/dist/images/icons-flag/svg/members/bulgaria.svg +0 -1
  135. package/dist/images/icons-flag/svg/members/croatia-square.svg +0 -1
  136. package/dist/images/icons-flag/svg/members/croatia.svg +0 -1
  137. package/dist/images/icons-flag/svg/members/cyprus-square.svg +0 -1
  138. package/dist/images/icons-flag/svg/members/cyprus.svg +0 -1
  139. package/dist/images/icons-flag/svg/members/czech-republic-square.svg +0 -1
  140. package/dist/images/icons-flag/svg/members/czech-republic.svg +0 -1
  141. package/dist/images/icons-flag/svg/members/denmark-square.svg +0 -1
  142. package/dist/images/icons-flag/svg/members/denmark.svg +0 -1
  143. package/dist/images/icons-flag/svg/members/estonia-square.svg +0 -1
  144. package/dist/images/icons-flag/svg/members/estonia.svg +0 -1
  145. package/dist/images/icons-flag/svg/members/finland-square.svg +0 -1
  146. package/dist/images/icons-flag/svg/members/finland.svg +0 -1
  147. package/dist/images/icons-flag/svg/members/france-square.svg +0 -1
  148. package/dist/images/icons-flag/svg/members/france.svg +0 -1
  149. package/dist/images/icons-flag/svg/members/germany-square.svg +0 -1
  150. package/dist/images/icons-flag/svg/members/germany.svg +0 -1
  151. package/dist/images/icons-flag/svg/members/greece-square.svg +0 -1
  152. package/dist/images/icons-flag/svg/members/greece.svg +0 -1
  153. package/dist/images/icons-flag/svg/members/hungary-square.svg +0 -1
  154. package/dist/images/icons-flag/svg/members/hungary.svg +0 -1
  155. package/dist/images/icons-flag/svg/members/ireland-square.svg +0 -1
  156. package/dist/images/icons-flag/svg/members/ireland.svg +0 -1
  157. package/dist/images/icons-flag/svg/members/italy-square.svg +0 -1
  158. package/dist/images/icons-flag/svg/members/italy.svg +0 -1
  159. package/dist/images/icons-flag/svg/members/latvia-square.svg +0 -1
  160. package/dist/images/icons-flag/svg/members/latvia.svg +0 -1
  161. package/dist/images/icons-flag/svg/members/lithuania-square.svg +0 -1
  162. package/dist/images/icons-flag/svg/members/lithuania.svg +0 -1
  163. package/dist/images/icons-flag/svg/members/luxembourg-square.svg +0 -1
  164. package/dist/images/icons-flag/svg/members/luxembourg.svg +0 -1
  165. package/dist/images/icons-flag/svg/members/malta-square.svg +0 -1
  166. package/dist/images/icons-flag/svg/members/malta.svg +0 -1
  167. package/dist/images/icons-flag/svg/members/netherlands-square.svg +0 -1
  168. package/dist/images/icons-flag/svg/members/netherlands.svg +0 -1
  169. package/dist/images/icons-flag/svg/members/poland-square.svg +0 -1
  170. package/dist/images/icons-flag/svg/members/poland.svg +0 -1
  171. package/dist/images/icons-flag/svg/members/portugal-square.svg +0 -1
  172. package/dist/images/icons-flag/svg/members/portugal.svg +0 -1
  173. package/dist/images/icons-flag/svg/members/romania-square.svg +0 -1
  174. package/dist/images/icons-flag/svg/members/romania.svg +0 -1
  175. package/dist/images/icons-flag/svg/members/slovakia-square.svg +0 -1
  176. package/dist/images/icons-flag/svg/members/slovakia.svg +0 -1
  177. package/dist/images/icons-flag/svg/members/slovenia-square.svg +0 -1
  178. package/dist/images/icons-flag/svg/members/slovenia.svg +0 -1
  179. package/dist/images/icons-flag/svg/members/spain-square.svg +0 -1
  180. package/dist/images/icons-flag/svg/members/spain.svg +0 -1
  181. package/dist/images/icons-flag/svg/members/sweden-square.svg +0 -1
  182. package/dist/images/icons-flag/svg/members/sweden.svg +0 -1
  183. package/dist/images/icons-flag/svg/non-members/albania-square.svg +0 -1
  184. package/dist/images/icons-flag/svg/non-members/albania.svg +0 -1
  185. package/dist/images/icons-flag/svg/non-members/armenia-square.svg +0 -1
  186. package/dist/images/icons-flag/svg/non-members/armenia.svg +0 -1
  187. package/dist/images/icons-flag/svg/non-members/bosnia-and-herzegovina-square.svg +0 -1
  188. package/dist/images/icons-flag/svg/non-members/bosnia-and-herzegovina.svg +0 -1
  189. package/dist/images/icons-flag/svg/non-members/georgia-square.svg +0 -1
  190. package/dist/images/icons-flag/svg/non-members/georgia.svg +0 -1
  191. package/dist/images/icons-flag/svg/non-members/iceland-square.svg +0 -1
  192. package/dist/images/icons-flag/svg/non-members/iceland.svg +0 -1
  193. package/dist/images/icons-flag/svg/non-members/israel-square.svg +0 -1
  194. package/dist/images/icons-flag/svg/non-members/israel.svg +0 -1
  195. package/dist/images/icons-flag/svg/non-members/liechtenstein-square.svg +0 -1
  196. package/dist/images/icons-flag/svg/non-members/liechtenstein.svg +0 -1
  197. package/dist/images/icons-flag/svg/non-members/moldova-square.svg +0 -1
  198. package/dist/images/icons-flag/svg/non-members/moldova.svg +0 -1
  199. package/dist/images/icons-flag/svg/non-members/montenegro-square.svg +0 -1
  200. package/dist/images/icons-flag/svg/non-members/montenegro.svg +0 -1
  201. package/dist/images/icons-flag/svg/non-members/north-macedonia-square.svg +0 -1
  202. package/dist/images/icons-flag/svg/non-members/north-macedonia.svg +0 -1
  203. package/dist/images/icons-flag/svg/non-members/norway-square.svg +0 -1
  204. package/dist/images/icons-flag/svg/non-members/norway.svg +0 -1
  205. package/dist/images/icons-flag/svg/non-members/serbia-square.svg +0 -1
  206. package/dist/images/icons-flag/svg/non-members/serbia.svg +0 -1
  207. package/dist/images/icons-flag/svg/non-members/switzerland-square.svg +0 -1
  208. package/dist/images/icons-flag/svg/non-members/switzerland.svg +0 -1
  209. package/dist/images/icons-flag/svg/non-members/turkey-square.svg +0 -1
  210. package/dist/images/icons-flag/svg/non-members/turkey.svg +0 -1
  211. package/dist/images/icons-flag/svg/non-members/ukraine-square.svg +0 -1
  212. package/dist/images/icons-flag/svg/non-members/ukraine.svg +0 -1
  213. package/dist/images/icons-flag/svg/non-members/united-kingdom-square.svg +0 -1
  214. package/dist/images/icons-flag/svg/non-members/united-kingdom.svg +0 -1
  215. package/dist/images/icons-social-media/lists/all.json +0 -1
  216. package/dist/images/icons-social-media/lists/social-media.json +0 -1
  217. package/dist/images/icons-social-media/sprites/icons-social-media.svg +0 -1
  218. package/dist/images/icons-social-media/svg/social-media/blog-color.svg +0 -1
  219. package/dist/images/icons-social-media/svg/social-media/blog-negative.svg +0 -1
  220. package/dist/images/icons-social-media/svg/social-media/blog.svg +0 -1
  221. package/dist/images/icons-social-media/svg/social-media/bluesky-color.svg +0 -1
  222. package/dist/images/icons-social-media/svg/social-media/bluesky-negative.svg +0 -1
  223. package/dist/images/icons-social-media/svg/social-media/bluesky.svg +0 -1
  224. package/dist/images/icons-social-media/svg/social-media/chain-color.svg +0 -1
  225. package/dist/images/icons-social-media/svg/social-media/chain-negative.svg +0 -1
  226. package/dist/images/icons-social-media/svg/social-media/chain.svg +0 -1
  227. package/dist/images/icons-social-media/svg/social-media/email-color.svg +0 -1
  228. package/dist/images/icons-social-media/svg/social-media/email-negative.svg +0 -1
  229. package/dist/images/icons-social-media/svg/social-media/email.svg +0 -1
  230. package/dist/images/icons-social-media/svg/social-media/facebook-color.svg +0 -1
  231. package/dist/images/icons-social-media/svg/social-media/facebook-negative.svg +0 -1
  232. package/dist/images/icons-social-media/svg/social-media/facebook.svg +0 -1
  233. package/dist/images/icons-social-media/svg/social-media/flickr-color.svg +0 -1
  234. package/dist/images/icons-social-media/svg/social-media/flickr-negative.svg +0 -1
  235. package/dist/images/icons-social-media/svg/social-media/flickr.svg +0 -1
  236. package/dist/images/icons-social-media/svg/social-media/foursquare-color.svg +0 -1
  237. package/dist/images/icons-social-media/svg/social-media/foursquare-negative.svg +0 -1
  238. package/dist/images/icons-social-media/svg/social-media/foursquare.svg +0 -1
  239. package/dist/images/icons-social-media/svg/social-media/gmail-color.svg +0 -1
  240. package/dist/images/icons-social-media/svg/social-media/instagram-color.svg +0 -1
  241. package/dist/images/icons-social-media/svg/social-media/instagram-negative.svg +0 -1
  242. package/dist/images/icons-social-media/svg/social-media/instagram.svg +0 -1
  243. package/dist/images/icons-social-media/svg/social-media/linkedin-color.svg +0 -1
  244. package/dist/images/icons-social-media/svg/social-media/linkedin-negative.svg +0 -1
  245. package/dist/images/icons-social-media/svg/social-media/linkedin.svg +0 -1
  246. package/dist/images/icons-social-media/svg/social-media/mastodon-color.svg +0 -1
  247. package/dist/images/icons-social-media/svg/social-media/mastodon-negative.svg +0 -1
  248. package/dist/images/icons-social-media/svg/social-media/mastodon.svg +0 -1
  249. package/dist/images/icons-social-media/svg/social-media/messenger-color.svg +0 -1
  250. package/dist/images/icons-social-media/svg/social-media/messenger-negative.svg +0 -1
  251. package/dist/images/icons-social-media/svg/social-media/messenger.svg +0 -1
  252. package/dist/images/icons-social-media/svg/social-media/pinterest-color.svg +0 -1
  253. package/dist/images/icons-social-media/svg/social-media/pinterest-negative.svg +0 -1
  254. package/dist/images/icons-social-media/svg/social-media/pinterest.svg +0 -1
  255. package/dist/images/icons-social-media/svg/social-media/qzone-color.svg +0 -1
  256. package/dist/images/icons-social-media/svg/social-media/qzone-negative.svg +0 -1
  257. package/dist/images/icons-social-media/svg/social-media/qzone.svg +0 -1
  258. package/dist/images/icons-social-media/svg/social-media/reddit-color.svg +0 -1
  259. package/dist/images/icons-social-media/svg/social-media/reddit-negative.svg +0 -1
  260. package/dist/images/icons-social-media/svg/social-media/reddit.svg +0 -1
  261. package/dist/images/icons-social-media/svg/social-media/rss-color.svg +0 -1
  262. package/dist/images/icons-social-media/svg/social-media/rss-negative.svg +0 -1
  263. package/dist/images/icons-social-media/svg/social-media/rss.svg +0 -1
  264. package/dist/images/icons-social-media/svg/social-media/skype-color.svg +0 -1
  265. package/dist/images/icons-social-media/svg/social-media/skype-negative.svg +0 -1
  266. package/dist/images/icons-social-media/svg/social-media/skype.svg +0 -1
  267. package/dist/images/icons-social-media/svg/social-media/sms-color.svg +0 -1
  268. package/dist/images/icons-social-media/svg/social-media/sms-negative.svg +0 -1
  269. package/dist/images/icons-social-media/svg/social-media/sms.svg +0 -1
  270. package/dist/images/icons-social-media/svg/social-media/spotify-color.svg +0 -1
  271. package/dist/images/icons-social-media/svg/social-media/spotify-negative.svg +0 -1
  272. package/dist/images/icons-social-media/svg/social-media/spotify.svg +0 -1
  273. package/dist/images/icons-social-media/svg/social-media/telegram-color.svg +0 -1
  274. package/dist/images/icons-social-media/svg/social-media/telegram-negative.svg +0 -1
  275. package/dist/images/icons-social-media/svg/social-media/telegram.svg +0 -1
  276. package/dist/images/icons-social-media/svg/social-media/threads-color.svg +0 -1
  277. package/dist/images/icons-social-media/svg/social-media/threads-negative.svg +0 -1
  278. package/dist/images/icons-social-media/svg/social-media/threads.svg +0 -1
  279. package/dist/images/icons-social-media/svg/social-media/twitter-color.svg +0 -1
  280. package/dist/images/icons-social-media/svg/social-media/twitter-negative.svg +0 -1
  281. package/dist/images/icons-social-media/svg/social-media/twitter.svg +0 -1
  282. package/dist/images/icons-social-media/svg/social-media/typepad-color.svg +0 -1
  283. package/dist/images/icons-social-media/svg/social-media/typepad-negative.svg +0 -1
  284. package/dist/images/icons-social-media/svg/social-media/typepad.svg +0 -1
  285. package/dist/images/icons-social-media/svg/social-media/vimeo-color.svg +0 -1
  286. package/dist/images/icons-social-media/svg/social-media/vimeo-negative.svg +0 -1
  287. package/dist/images/icons-social-media/svg/social-media/vimeo.svg +0 -1
  288. package/dist/images/icons-social-media/svg/social-media/weibo-color.svg +0 -1
  289. package/dist/images/icons-social-media/svg/social-media/weibo-negative.svg +0 -1
  290. package/dist/images/icons-social-media/svg/social-media/weibo.svg +0 -1
  291. package/dist/images/icons-social-media/svg/social-media/whatsapp-color.svg +0 -1
  292. package/dist/images/icons-social-media/svg/social-media/whatsapp-negative.svg +0 -1
  293. package/dist/images/icons-social-media/svg/social-media/whatsapp.svg +0 -1
  294. package/dist/images/icons-social-media/svg/social-media/yahoomail-color.svg +0 -1
  295. package/dist/images/icons-social-media/svg/social-media/yahoomail-negative.svg +0 -1
  296. package/dist/images/icons-social-media/svg/social-media/yahoomail.svg +0 -1
  297. package/dist/images/icons-social-media/svg/social-media/yammer-color.svg +0 -1
  298. package/dist/images/icons-social-media/svg/social-media/yammer-negative.svg +0 -1
  299. package/dist/images/icons-social-media/svg/social-media/yammer.svg +0 -1
  300. package/dist/images/icons-social-media/svg/social-media/youtube-color.svg +0 -1
  301. package/dist/images/icons-social-media/svg/social-media/youtube-negative.svg +0 -1
  302. package/dist/images/icons-social-media/svg/social-media/youtube.svg +0 -1
  303. package/dist/images/social-icons/lists/social.json +0 -1
  304. package/dist/images/social-icons/sprites/icons-social.svg +0 -13
  305. package/dist/images/social-icons/svg/social/arto.svg +0 -1
  306. package/dist/images/social-icons/svg/social/arto_hover.svg +0 -1
  307. package/dist/images/social-icons/svg/social/bebo.svg +0 -1
  308. package/dist/images/social-icons/svg/social/bebo_hover.svg +0 -1
  309. package/dist/images/social-icons/svg/social/bitly.svg +0 -1
  310. package/dist/images/social-icons/svg/social/bitly_hover.svg +0 -1
  311. package/dist/images/social-icons/svg/social/blinklist.svg +0 -1
  312. package/dist/images/social-icons/svg/social/blinklist_hover.svg +0 -1
  313. package/dist/images/social-icons/svg/social/blog.svg +0 -1
  314. package/dist/images/social-icons/svg/social/blog_hover.svg +0 -1
  315. package/dist/images/social-icons/svg/social/blogger.svg +0 -1
  316. package/dist/images/social-icons/svg/social/blogger_hover.svg +0 -1
  317. package/dist/images/social-icons/svg/social/delicious.svg +0 -1
  318. package/dist/images/social-icons/svg/social/delicious_hover.svg +0 -1
  319. package/dist/images/social-icons/svg/social/digg.svg +0 -1
  320. package/dist/images/social-icons/svg/social/digg_hover.svg +0 -1
  321. package/dist/images/social-icons/svg/social/diigo.svg +0 -1
  322. package/dist/images/social-icons/svg/social/diigo_hover.svg +0 -1
  323. package/dist/images/social-icons/svg/social/dzone.svg +0 -1
  324. package/dist/images/social-icons/svg/social/dzone_hover.svg +0 -1
  325. package/dist/images/social-icons/svg/social/email.svg +0 -1
  326. package/dist/images/social-icons/svg/social/email_hover.svg +0 -1
  327. package/dist/images/social-icons/svg/social/facebook.svg +0 -1
  328. package/dist/images/social-icons/svg/social/facebook_hover.svg +0 -1
  329. package/dist/images/social-icons/svg/social/flick.svg +0 -1
  330. package/dist/images/social-icons/svg/social/flick_hover.svg +0 -1
  331. package/dist/images/social-icons/svg/social/flickr.svg +0 -1
  332. package/dist/images/social-icons/svg/social/flickr_hover.svg +0 -1
  333. package/dist/images/social-icons/svg/social/foursquare.svg +0 -1
  334. package/dist/images/social-icons/svg/social/foursquare_hover.svg +0 -1
  335. package/dist/images/social-icons/svg/social/generic.svg +0 -1
  336. package/dist/images/social-icons/svg/social/generic_hover.svg +0 -1
  337. package/dist/images/social-icons/svg/social/google.svg +0 -1
  338. package/dist/images/social-icons/svg/social/google_hover.svg +0 -1
  339. package/dist/images/social-icons/svg/social/instagram.svg +0 -1
  340. package/dist/images/social-icons/svg/social/instagram_hover.svg +0 -1
  341. package/dist/images/social-icons/svg/social/linkarena.svg +0 -1
  342. package/dist/images/social-icons/svg/social/linkarena_hover.svg +0 -1
  343. package/dist/images/social-icons/svg/social/linkedin.svg +0 -1
  344. package/dist/images/social-icons/svg/social/linkedin_hover.svg +0 -1
  345. package/dist/images/social-icons/svg/social/live.svg +0 -1
  346. package/dist/images/social-icons/svg/social/live_hover.svg +0 -1
  347. package/dist/images/social-icons/svg/social/mastodon.svg +0 -1
  348. package/dist/images/social-icons/svg/social/mastodon_hover.svg +0 -1
  349. package/dist/images/social-icons/svg/social/meneame.svg +0 -1
  350. package/dist/images/social-icons/svg/social/meneame_hover.svg +0 -1
  351. package/dist/images/social-icons/svg/social/misterwong.svg +0 -1
  352. package/dist/images/social-icons/svg/social/misterwong_hover.svg +0 -1
  353. package/dist/images/social-icons/svg/social/myspace.svg +0 -1
  354. package/dist/images/social-icons/svg/social/myspace_hover.svg +0 -1
  355. package/dist/images/social-icons/svg/social/netlog.svg +0 -1
  356. package/dist/images/social-icons/svg/social/netlog_hover.svg +0 -1
  357. package/dist/images/social-icons/svg/social/netvibes.svg +0 -1
  358. package/dist/images/social-icons/svg/social/netvibes_hover.svg +0 -1
  359. package/dist/images/social-icons/svg/social/newsvine.svg +0 -1
  360. package/dist/images/social-icons/svg/social/newsvine_hover.svg +0 -1
  361. package/dist/images/social-icons/svg/social/nujij.svg +0 -1
  362. package/dist/images/social-icons/svg/social/nujij_hover.svg +0 -1
  363. package/dist/images/social-icons/svg/social/pinterest.svg +0 -1
  364. package/dist/images/social-icons/svg/social/pinterest_hover.svg +0 -1
  365. package/dist/images/social-icons/svg/social/pocket.svg +0 -1
  366. package/dist/images/social-icons/svg/social/pocket_hover.svg +0 -1
  367. package/dist/images/social-icons/svg/social/print.svg +0 -1
  368. package/dist/images/social-icons/svg/social/print_hover.svg +0 -1
  369. package/dist/images/social-icons/svg/social/reddit.svg +0 -1
  370. package/dist/images/social-icons/svg/social/reddit_hover.svg +0 -1
  371. package/dist/images/social-icons/svg/social/rss.svg +0 -1
  372. package/dist/images/social-icons/svg/social/rss_hover.svg +0 -1
  373. package/dist/images/social-icons/svg/social/share.svg +0 -1
  374. package/dist/images/social-icons/svg/social/share_hover.svg +0 -1
  375. package/dist/images/social-icons/svg/social/skype.svg +0 -1
  376. package/dist/images/social-icons/svg/social/skype_hover.svg +0 -1
  377. package/dist/images/social-icons/svg/social/slashdot.svg +0 -1
  378. package/dist/images/social-icons/svg/social/slashdot_hover.svg +0 -1
  379. package/dist/images/social-icons/svg/social/sonico.svg +0 -1
  380. package/dist/images/social-icons/svg/social/sonico_hover.svg +0 -1
  381. package/dist/images/social-icons/svg/social/spotify.svg +0 -1
  382. package/dist/images/social-icons/svg/social/spotify_hover.svg +0 -1
  383. package/dist/images/social-icons/svg/social/storify.svg +0 -1
  384. package/dist/images/social-icons/svg/social/storify_hover.svg +0 -1
  385. package/dist/images/social-icons/svg/social/studivz.svg +0 -1
  386. package/dist/images/social-icons/svg/social/studivz_hover.svg +0 -1
  387. package/dist/images/social-icons/svg/social/stumbleupon.svg +0 -1
  388. package/dist/images/social-icons/svg/social/stumbleupon_hover.svg +0 -1
  389. package/dist/images/social-icons/svg/social/technorati.svg +0 -1
  390. package/dist/images/social-icons/svg/social/technorati_hover.svg +0 -1
  391. package/dist/images/social-icons/svg/social/telegram.svg +0 -1
  392. package/dist/images/social-icons/svg/social/telegram_hover.svg +0 -1
  393. package/dist/images/social-icons/svg/social/tuenti.svg +0 -1
  394. package/dist/images/social-icons/svg/social/tuenti_hover.svg +0 -1
  395. package/dist/images/social-icons/svg/social/tumblr.svg +0 -1
  396. package/dist/images/social-icons/svg/social/tumblr_hover.svg +0 -1
  397. package/dist/images/social-icons/svg/social/twitter.svg +0 -1
  398. package/dist/images/social-icons/svg/social/twitter_hover.svg +0 -1
  399. package/dist/images/social-icons/svg/social/viadeo.svg +0 -1
  400. package/dist/images/social-icons/svg/social/viadeo_hover.svg +0 -1
  401. package/dist/images/social-icons/svg/social/vine.svg +0 -1
  402. package/dist/images/social-icons/svg/social/vine_hover.svg +0 -1
  403. package/dist/images/social-icons/svg/social/wordpress.svg +0 -1
  404. package/dist/images/social-icons/svg/social/wordpress_hover.svg +0 -1
  405. package/dist/images/social-icons/svg/social/wykop.svg +0 -1
  406. package/dist/images/social-icons/svg/social/wykop_hover.svg +0 -1
  407. package/dist/images/social-icons/svg/social/xerpi.svg +0 -1
  408. package/dist/images/social-icons/svg/social/xerpi_hover.svg +0 -1
  409. package/dist/images/social-icons/svg/social/yammer.svg +0 -1
  410. package/dist/images/social-icons/svg/social/yammer_hover.svg +0 -1
  411. package/dist/images/social-icons/svg/social/youtube.svg +0 -1
  412. package/dist/images/social-icons/svg/social/youtube_hover.svg +0 -1
  413. package/dist/styles/optional/ecl-rtl.css +0 -1
@@ -0,0 +1,26 @@
1
+ /* @ecl/preset-ec - 5.0.0-RC1 Built on 2026-03-20T14:48:57.085Z */
2
+ function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=Array(t);i<t;i++)s[i]=e[i];return s}function t(e,t,i,s,n,a,r){try{var l=e[a](r),o=l.value}catch(e){return void i(e)}l.done?t(o):Promise.resolve(o).then(s,n)}function i(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}return null});var s=0;function n(e){return"__private_"+s+++"_"+e}function a(t,i){var s="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(s)return(s=s.call(t)).next.bind(s);if(Array.isArray(t)||(s=function(t,i){if(t){if("string"==typeof t)return e(t,i);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?e(t,i):void 0}}(t))||i){s&&(t=s);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}function l(){
3
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
4
+ var e,t,i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",n=i.toStringTag||"@@toStringTag";function a(i,s,n,a){var l=s&&s.prototype instanceof h?s:h,c=Object.create(l.prototype);return o(c,"_invoke",function(i,s,n){var a,l,o,h=0,c=n||[],d=!1,u={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,i){return a=t,l=0,o=e,u.n=i,r}};function m(i,s){for(l=i,o=s,t=0;!d&&h&&!n&&t<c.length;t++){var n,a=c[t],m=u.p,p=a[2];i>3?(n=p===s)&&(o=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=m&&((n=i<2&&m<a[1])?(l=0,u.v=s,u.n=a[1]):m<p&&(n=i<3||a[0]>s||s>p)&&(a[4]=i,a[5]=s,u.n=p,l=0))}if(n||i>1)return r;throw d=!0,s}return function(n,c,p){if(h>1)throw TypeError("Generator is already running");for(d&&1===c&&m(c,p),l=c,o=p;(t=l<2?e:o)||!d;){a||(l?l<3?(l>1&&(u.n=-1),m(l,o)):u.n=o:u.v=o);try{if(h=2,a){if(l||(n="next"),t=a[n]){if(!(t=t.call(a,o)))throw TypeError("iterator result is not an object");if(!t.done)return t;o=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(o=TypeError("The iterator does not provide a '"+n+"' method"),l=1);a=e}else if((t=(d=u.n<0)?o:i.call(s,u))!==r)break}catch(t){a=e,l=1,o=t}finally{h=1}}return{value:t,done:d}}}(i,n,a),!0),c}var r={};function h(){}function c(){}function d(){}t=Object.getPrototypeOf;var u=[][s]?t(t([][s]())):(o(t={},s,function(){return this}),t),m=d.prototype=h.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,o(e,n,"GeneratorFunction")),e.prototype=Object.create(m),e}return c.prototype=d,o(m,"constructor",d),o(d,"constructor",c),c.displayName="GeneratorFunction",o(d,n,"GeneratorFunction"),o(m),o(m,n,"Generator"),o(m,s,function(){return this}),o(m,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:p}})()}function o(e,t,i,s){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}o=function(e,t,i,s){function a(t,i){o(e,t,function(e){return this._invoke(t,i,e)})}t?n?n(e,t,{value:i,enumerable:!s,configurable:!s,writable:!s}):e[t]=i:(a("next",0),a("throw",1),a("return",2))},o(e,t,i,s)}var h=function(e,t){return void 0===t&&(t=document),[].slice.call(t.querySelectorAll(e))},c=function(e,t){return void 0===t&&(t=document),t.querySelector(e)},d=["root"];class u{constructor(){this.events=new Map}on(e,t){this.events.has(e)||this.events.set(e,[]),this.events.get(e).push(t)}trigger(e,t){var i=this.events.get(e);i&&i.forEach(e=>{e(t)})}getCallback(e){return this.events.get(e)||[]}}class m{static autoInit(e,t){var i=(void 0===t?{}:t).BANNER,s=new m(e,void 0===i?{}:i);return s.init(),e.ECLBanner=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.bannerContainer,n=void 0===s?"[data-ecl-banner-container]":s,a=i.bannerFooter,r=void 0===a?"[data-ecl-banner-footer]":a,l=i.bannerVPadding,o=void 0===l?"8":l,h=i.bannerPicture,d=void 0===h?"[data-ecl-banner-image]":h,m=i.bannerVideo,p=void 0===m?"[data-ecl-banner-video]":m,v=i.bannerPlay,g=void 0===v?"[data-ecl-banner-play]":v,b=i.bannerPause,f=void 0===b?"[data-ecl-banner-pause]":b,y=i.breakpoint,L=void 0===y?"996":y,k=i.attachResizeListener,E=void 0===k||k,C=i.maxIterations,w=void 0===C?10:C;if(this.supportedEvents=["onCtaClick","onPlayClick","onPauseClick"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new u,this.bannerVPadding=o,this.resizeTimer=null,this.bannerContainer=c(n,this.element),this.bannerFooter=c(r,this.element),this.bannerPicture=c(d,this.element),this.bannerVideo=c(p,this.element),this.bannerPlay=c(g,this.element),this.bannerPause=c(f,this.element),this.bannerImage=!!this.bannerPicture&&c("img",this.bannerPicture),this.bannerCTA=!!this.bannerPicture&&c(".ecl-banner__cta",this.element),this.breakpoint=L,this.attachResizeListener=E,this.maxIterations=w,this.setBannerHeight=this.setBannerHeight.bind(this),this.checkViewport=this.checkViewport.bind(this),this.resetBannerHeight=this.resetBannerHeight.bind(this),this.handleResize=this.handleResize.bind(this),this.waitForAspectRatioToBeDefined=this.waitForAspectRatioToBeDefined.bind(this),this.setHeight=this.setHeight.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.defaultRatio=()=>this.element.classList.contains("ecl-banner--xs")?"6/1":this.element.classList.contains("ecl-banner--s")?"5/1":this.element.classList.contains("ecl-banner--l")?"3/1":"4/1",this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.bannerCTA&&this.bannerCTA.addEventListener("click",e=>this.handleCtaClick(e)),this.bannerPlay&&(this.bannerPlay.addEventListener("click",e=>this.handlePlayClick(e)),this.bannerPlay.style.display="none"),this.bannerPause&&(this.bannerPause.addEventListener("click",e=>this.handlePauseClick(e)),this.bannerPause.style.display="flex"),this.checkViewport(),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}waitForAspectRatioToBeDefined(){this.attemptCounter=(this.attemptCounter||0)+1;var e=getComputedStyle(this.element).getPropertyValue("--css-aspect-ratio");(void 0===e||""===e)&&this.maxIterations>this.attemptCounter?setTimeout(()=>this.waitForAspectRatioToBeDefined(),100):this.setHeight(e)}setHeight(e){if(this.bannerContainer){var t=this.bannerContainer.offsetHeight+2*parseInt(this.bannerVPadding,10),i=parseInt(getComputedStyle(this.element).getPropertyValue("width"),10),s=e.split("/").map(Number),n=s[0];t>i*s[1]/n?(this.element.style.aspectRatio="auto",this.element.style.height=t+"px"):this.resetBannerHeight()}this.bannerFooter&&this.element.style.setProperty("--banner-footer-height",this.bannerFooter.offsetHeight+"px")}setBannerHeight(){this.bannerImage||this.bannerVideo?this.waitForAspectRatioToBeDefined():this.setHeight(this.defaultRatio())}resetBannerHeight(){this.element.style.removeProperty("aspect-ratio"),this.element.style.height="auto",this.bannerFooter&&this.element.style.setProperty("--banner-footer-height",this.bannerFooter.offsetHeight+"px")}checkViewport(){window.innerWidth>this.breakpoint?this.setBannerHeight():this.resetBannerHeight()}handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.checkViewport()},200)}handleCtaClick(e){var t=null,i=e.target.closest("a");i&&(t=i.getAttribute("href"));var s={item:this.bannerCTA,target:t||e.target};this.trigger("onCtaClick",s)}handlePlayClick(){this.bannerVideo&&this.bannerVideo.play(),this.bannerPlay.style.display="none",this.bannerPause&&(this.bannerPause.style.display="flex",this.bannerPause.focus());var e={item:this.bannerPlay};this.trigger("onPlayClick",e)}handlePauseClick(){this.bannerVideo&&this.bannerVideo.pause(),this.bannerPause.style.display="none",this.bannerPlay&&(this.bannerPlay.style.display="flex",this.bannerPlay.focus());var e={item:this.bannerPause};this.trigger("onPauseClick",e)}destroy(){this.resetBannerHeight(),this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.bannerCTA&&this.bannerCTA.removeEventListener("click",this.handleCtaClick),this.bannerPlay&&this.bannerPlay.removeEventListener("click",this.handlePlayClick),this.bannerPause&&this.bannerPause.removeEventListener("click",this.handlePauseClick)}}class p{static autoInit(e,t){var i=(void 0===t?{}:t).CAROUSEL,s=new p(e,void 0===i?{}:i);return s.init(),e.ECLCarousel=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.playSelector,n=void 0===s?".ecl-carousel__play":s,a=i.pauseSelector,r=void 0===a?".ecl-carousel__pause":a,l=i.containerClass,o=void 0===l?".ecl-carousel__container":l,h=i.slidesClass,c=void 0===h?".ecl-carousel__slides":h,d=i.slideClass,u=void 0===d?".ecl-carousel__slide":d,m=i.currentSlideClass,p=void 0===m?".ecl-carousel__current":m,v=i.navigationItemsClass,g=void 0===v?".ecl-carousel__navigation-item":v,b=i.controlsClass,f=void 0===b?".ecl-carousel__controls":b,y=i.attachClickListener,L=void 0===y||y,k=i.attachResizeListener,E=void 0===k||k;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.playSelector=n,this.pauseSelector=r,this.containerClass=o,this.slidesClass=c,this.slideClass=u,this.currentSlideClass=p,this.navigationItemsClass=g,this.controlsClass=f,this.attachClickListener=L,this.attachResizeListener=E,this.container=null,this.slides=null,this.btnPlay=null,this.btnPause=null,this.index=1,this.total=0,this.allowShift=!0,this.activeNav=null,this.autoPlay=null,this.autoPlayInterval=null,this.hoverAutoPlay=null,this.resizeTimer=null,this.posX1=0,this.posX2=0,this.posInitial=0,this.posFinal=0,this.threshold=80,this.navigationItems=null,this.navigation=null,this.controls=null,this.direction="ltr",this.cloneFirstSLide=null,this.cloneLastSLide=null,this.executionCount=0,this.maxExecutions=5,this.slideWidth=0,this.handleAutoPlay=this.handleAutoPlay.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.shiftSlide=this.shiftSlide.bind(this),this.checkIndex=this.checkIndex.bind(this),this.moveSlides=this.moveSlides.bind(this),this.handleResize=this.handleResize.bind(this),this.dragStart=this.dragStart.bind(this),this.dragEnd=this.dragEnd.bind(this),this.dragAction=this.dragAction.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleKeyboardOnPlay=this.handleKeyboardOnPlay.bind(this),this.handleKeyboardOnBullets=this.handleKeyboardOnBullets.bind(this),this.checkBannerHeights=this.checkBannerHeights.bind(this),this.resetBannerHeights=this.resetBannerHeights.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");if(ECL.components=ECL.components||new Map,this.element.style.opacity=0,this.btnPlay=c(this.playSelector,this.element),this.btnPause=c(this.pauseSelector,this.element),this.slidesContainer=c(this.slidesClass,this.element),this.container=c(this.containerClass,this.element),this.navigation=c(".ecl-carousel__navigation",this.element),this.navigationItems=h(this.navigationItemsClass,this.element),this.controls=c(this.controlsClass,this.element),this.currentSlide=c(this.currentSlideClass,this.element),this.slides=h(this.slideClass,this.element),this.total=this.slides.length,this.total<=1)return this.controls&&(this.controls.style.display="none"),this.slidesContainer&&(this.slidesContainer.style.display="block"),!1;var e=this.slides[0],t=this.slides[this.slides.length-1];this.cloneFirstSlide=e.cloneNode(!0),this.cloneLastSlide=t.cloneNode(!0),this.slidesContainer.appendChild(this.cloneFirstSlide),this.slidesContainer.insertBefore(this.cloneLastSlide,e);var i=new ECL.Banner(this.cloneFirstSlide.firstElementChild),s=new ECL.Banner(this.cloneLastSlide.firstElementChild);return i.init(),s.init(),this.slides=h(this.slideClass,this.element),this.handleResize(),this.navigationItems&&this.navigationItems.forEach((e,t)=>{e.addEventListener("click",this.shiftSlide.bind(this,t+1,!0))}),this.navigation&&this.navigation.addEventListener("keydown",this.handleKeyboardOnBullets),this.attachClickListener&&this.btnPlay&&this.btnPause&&(this.btnPlay.addEventListener("click",this.handleAutoPlay),this.btnPause.addEventListener("click",this.handleAutoPlay)),this.btnPlay&&this.btnPlay.addEventListener("keydown",this.handleKeyboardOnPlay),this.slidesContainer&&(this.slidesContainer.addEventListener("mouseover",this.handleMouseOver),this.slidesContainer.addEventListener("mouseout",this.handleMouseOut),this.slidesContainer.addEventListener("touchstart",this.dragStart),this.slidesContainer.addEventListener("touchend",this.dragEnd),this.slidesContainer.addEventListener("touchmove",this.dragAction),this.slidesContainer.addEventListener("transitionend",this.checkIndex)),this.container&&this.container.addEventListener("focus",this.handleFocus,!0),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this),this}destroy(){this.cloneFirstSLide&&this.cloneLastSLide&&(this.cloneFirstSLide.remove(),this.cloneLastSLide.remove()),this.btnPlay&&this.btnPlay.replaceWith(this.btnPlay.cloneNode(!0)),this.btnPause&&this.btnPause.replaceWith(this.btnPause.cloneNode(!0)),this.slidesContainer&&(this.slidesContainer.removeEventListener("mouseover",this.handleMouseOver),this.slidesContainer.removeEventListener("mouseout",this.handleMouseOut),this.slidesContainer.removeEventListener("touchstart",this.dragStart),this.slidesContainer.removeEventListener("touchend",this.dragEnd),this.slidesContainer.removeEventListener("touchmove",this.dragAction),this.slidesContainer.removeEventListener("transitionend",this.checkIndex)),this.container&&this.container.removeEventListener("focus",this.handleFocus,!0),this.navigationItems&&this.navigationItems.forEach(e=>{e.replaceWith(e.cloneNode(!0))}),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.autoPlayInterval&&(clearInterval(this.autoPlayInterval),this.autoPlay=null),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}checkBannerHeights(){if(this.executionCount+=1,this.executionCount>this.maxExecutions)return clearInterval(this.intervalId),void(this.executionCount=0);var e=this.slides.map(e=>{var t=c(".ecl-banner",e),i=ECL.components.get(t),s=i.defaultRatio();i.setHeight(s);var n=parseInt(t.style.getPropertyValue("--banner-footer-height"),10)||0,a=parseInt(t.style.height,10),r=a+n;return"auto"===t.style.height?t.offsetHeight:Number.isNaN(a)||100===a?1:r}).filter(e=>void 0!==e),t=Math.max(...e);e.length===this.slides.length&&t>1&&(clearInterval(this.intervalId),this.executionCount=0,this.slides.forEach(e=>{var i=null,s=null,n=c(".ecl-banner",e);if(n){i=c("img",n),s=c("video",n);var a=parseInt(n.style.getPropertyValue("--banner-footer-height"),10)||0,r=t-a;n.style.height=r+"px",n.style.aspectRatio="auto"}i&&(i.style.aspectRatio="auto"),s&&(s.style.aspectRatio="auto")}))}resetBannerHeights(){this.slides.forEach(e=>{var t=c(".ecl-banner",e),i=null,s=null,n=null;t&&(t.style.height="",i=c("img",t),s=c("video",t),n=c(".ecl-banner__credit",t),i&&(i.style.aspectRatio=""),s&&(s.style.aspectRatio=""),n&&setTimeout(()=>{t.style.setProperty("--banner-footer-height",n.offsetHeight+"px")},100))})}dragStart(e){e=e||window.event,this.posInitial=this.slidesContainer.offsetLeft,"touchstart"===e.type&&(this.posX1=e.touches[0].clientX,this.posY1=e.touches[0].clientY,this.allowShift=!1)}dragAction(e){if("touchmove"===(e=e||window.event).type){var t=e.touches[0].clientX-this.posX1,i=e.touches[0].clientY-this.posY1;!this.allowShift&&Math.abs(t)>Math.abs(i)&&(this.allowShift=!0),this.allowShift&&(e.preventDefault(),this.posX2=this.posX1-e.touches[0].clientX,this.posX1=e.touches[0].clientX,this.slidesContainer.style.left=this.slidesContainer.offsetLeft-this.posX2+"px")}}dragEnd(){this.allowShift&&(this.posFinal=this.slidesContainer.offsetLeft,this.posFinal-this.posInitial<-this.threshold?this.shiftSlide("next",!0):this.posFinal-this.posInitial>this.threshold?this.shiftSlide("prev",!0):this.slidesContainer.style.left=this.posInitial+"px",this.allowShift=!1)}shiftSlide(e,t){this.allowShift&&(this.index="number"==typeof e?e:"next"===e?this.index+1:this.index-1,this.moveSlides(!0)),t&&this.autoPlay&&this.handleAutoPlay(),this.allowShift=!1}moveSlides(e){var t=this.slideWidth*this.index;this.slidesContainer.style.transitionDuration=e?"0.4s":"0s",this.direction=getComputedStyle(this.element).direction,"rtl"===this.direction?this.slidesContainer.style.right="-"+t+"px":this.slidesContainer.style.left="-"+t+"px"}checkIndex(e){e&&"left"!==e.propertyName||(0===this.index&&(this.index=this.total),this.index===this.total+1&&(this.index=1),this.moveSlides(!1),this.currentSlide&&(this.currentSlide.textContent=this.index),this.slides&&this.slides.forEach((e,t)=>{var i=c(".ecl-link--primary-highlight",e);this.index===t?(e.removeAttribute("inert","true"),i&&i.removeAttribute("tabindex",-1)):(e.setAttribute("inert","true"),i&&i.setAttribute("tabindex",-1))}),this.navigationItems&&this.navigationItems.forEach((e,t)=>{this.index===t+1?(e.setAttribute("aria-current","true"),e.removeAttribute("tabindex",-1)):(e.removeAttribute("aria-current","true"),e.setAttribute("tabindex",-1))}),this.allowShift=!0)}handleAutoPlay(){if(this.autoPlay){clearInterval(this.autoPlayInterval),this.autoPlay=!1;var e=document.activeElement===this.btnPause;this.btnPlay.style.display="flex",this.btnPause.style.display="none",e&&this.btnPlay.focus()}else{this.autoPlayInterval=setInterval(()=>{this.shiftSlide("next")},5e3),this.autoPlay=!0;var t=document.activeElement===this.btnPlay;this.btnPlay.style.display="none",this.btnPause.style.display="flex",t&&this.btnPause.focus()}}handleMouseOver(){return this.hoverAutoPlay=this.autoPlay,this.hoverAutoPlay&&this.handleAutoPlay(),this}handleMouseOut(){return this.hoverAutoPlay&&this.handleAutoPlay(),this}handleResize(){var e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);clearInterval(this.intervalId),clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{e>=1140?this.intervalId=setInterval(this.checkBannerHeights,100):this.resetBannerHeights(),this.slideWidth=this.slides[0].scrollWidth,this.checkIndex(),setTimeout(()=>{this.element.style.opacity=1},250)},250),e>=1140&&e<=1260?this.container.classList.add("ecl-carousel-container--padded"):this.container.classList.remove("ecl-carousel-container--padded"),(e<=768&&this.autoPlay||e>768&&null===this.autoPlay)&&this.handleAutoPlay()}handleKeyboardOnPlay(e){if("Tab"!==e.key||!e.shiftKey)switch(e.key){case"Tab":case"ArrowRight":e.preventDefault(),this.activeNav=c(this.navigationItemsClass+'[aria-current="true"]'),this.activeNav&&this.activeNav.focus(),this.autoPlay&&this.handleAutoPlay()}}handleKeyboardOnBullets(e){var t=document.activeElement;switch(e.key){case"ArrowRight":t.nextSibling&&(e.preventDefault(),this.shiftSlide("next",!0),setTimeout(()=>t.nextSibling.focus(),400));break;case"ArrowLeft":t.previousSibling?(this.shiftSlide("prev",!0),setTimeout(()=>t.previousSibling.focus(),400)):this.btnPlay.focus()}}handleFocus(e){var t=e.target;return t&&t.contains(document.activeElement)&&this.autoPlay&&this.handleAutoPlay(),this}}class v{static autoInit(e,t){var i=(void 0===t?{}:t).CATEGORY_FILTER,s=new v(e,void 0===i?{}:i);return s.init(),e.ECLCategoryFilter=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.itemSelector,n=void 0===s?".ecl-category-filter__item":s,a=i.parentItemSelector,r=void 0===a?"ecl-category-filter__item--has-children":a,l=i.listSelector,o=void 0===l?".ecl-category-filter__list":l,h=i.attachClickListener,c=void 0===h||h;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.itemSelector=n,this.parentItemSelector=r,this.listSelector=o,this.attachClickListener=c,this.items=null,this.handleClickExpand=this.handleClickExpand.bind(this),this.expandParents=this.expandParents.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.items=h(this.itemSelector,this.element);var e={preventDefault:()=>null};this.attachClickListener&&this.items&&this.items.forEach(t=>{t.addEventListener("click",this.handleClickExpand),t.getAttribute("aria-current")&&(e.target=t,this.handleClickExpand(e),this.expandParents(t))}),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.items&&this.items.forEach(e=>{e.removeEventListener("click",this.handleClickExpand,!1)}),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}expandParents(e){var t;if(e){var i={preventDefault:()=>null},s=null==(t=e.closest(this.listSelector))?void 0:t.previousElementSibling;s&&s.classList.contains(this.parentItemSelector)&&(i.target=s,this.handleClickExpand(i),this.expandParents(s))}}handleClickExpand(e){var t=e.target.closest(this.itemSelector),i="function"==typeof e.stopPropagation;i&&this.items.forEach(e=>{e===t?e.setAttribute("aria-current",!0):e.removeAttribute("aria-current")});var s=t.getAttribute("aria-expanded");s&&"true"===s?(e.preventDefault(),t.setAttribute("aria-expanded","false"),t.parentElement.classList.remove("ecl-category-filter__list-item--open")):s&&"false"===s&&(e.preventDefault(),t.setAttribute("aria-expanded","true"),t.parentElement.classList.add("ecl-category-filter__list-item--open")),s&&i&&t.classList.contains("ecl-category-filter__item--level-1")&&this.items.forEach(e=>{e!==t&&(e.parentElement.classList.remove("ecl-category-filter__list-item--open"),e.classList.contains(this.parentItemSelector)&&e.setAttribute("aria-expanded","false"))})}}class g{static autoInit(e,t){var i=(void 0===t?{}:t).DATEPICKER,s=new g(e,void 0===i?{}:i);return s.init(),e.ECLDatepicker=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.format,n=void 0===s?"":s,a=i.localization,l=void 0===a?{}:a;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.picker=null,this.format=n,this.localization=r({},g.defaults.localization,l),this.normalizeDate=this.normalizeDate.bind(this),this.handleOpen=this.handleOpen.bind(this)}init(){if(!customElements.get("duet-date-picker"))throw new TypeError("Duet datepicker is not available. Make sure to include the duet datepicker js in your project if you want to use the ECL datepicker");if(!ECL)throw new TypeError("Called init but ECL is not present");return ECL.components=ECL.components||new Map,g.applyCustomizations=()=>{this.picker=this.element.querySelector("duet-date-picker");var e={parse(e,t){void 0===e&&(e="");var i=e.match(/^(\d{2})-(\d{2})-(\d{4})$/);if(i)return t(i[3],i[2],i[1])},format(e){var t=e=>String(e).padStart(2,"0");return t(e.getDate())+"-"+t(e.getMonth()+1)+"-"+e.getFullYear()}};this.picker&&(this.picker.identifier||(this.picker.identifier="ecl-datepicker-"+Math.random().toString(36).substr(2,length)),this.element.dataset.value&&(this.picker.value=this.normalizeDate(this.element.dataset.value)),this.updateConfiguration(),this.picker.addEventListener("duetOpen",this.handleOpen),this.picker.localization=this.localization,this.element.dataset.placeholder&&(this.picker.localization.placeholder=this.element.dataset.placeholder),this.picker.dateAdapter=this.format&&"object"==typeof this.format?this.format:e)},setTimeout(g.applyCustomizations,50),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this),this.picker}normalizeDate(e){if("string"!=typeof e)return e;var t=e.match(/(\d{4})-(\d{2})-(\d{2})/);return t?t[1]+"-"+t[2]+"-"+t[3]:""}updateConfiguration(){this.picker&&(this.direction=getComputedStyle(this.element).direction,this.picker.direction="ltr"===this.direction?"right":"left")}handleOpen(){this.updateConfiguration()}destroy(){this.picker&&this.picker.removeEventListener("duetOpen",this.handleOpen),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}}g.defaults={localization:{previousMonth:"Previous Month",nextMonth:"Next Month",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],placeholder:"DD-MM-YYYY",prevMonthLabel:"Previous month",nextMonthLabel:"Next month",monthSelectLabel:"Month",yearSelectLabel:"Year",closeLabel:"Close window",calendarHeading:"Choose a date",selectedDateMessage:"Selected date is",buttonLabel:"Choose date"}};class b{static autoInit(e,t){var i=(void 0===t?{}:t).BREADCRUMB,s=new b(e,void 0===i?{}:i);return s.init(),e.ECLBreadcrumb=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.ellipsisButtonSelector,n=void 0===s?"[data-ecl-breadcrumb-ellipsis-button]":s,a=i.ellipsisSelector,r=void 0===a?"[data-ecl-breadcrumb-ellipsis]":a,l=i.segmentSelector,o=void 0===l?"[data-ecl-breadcrumb-item]":l,h=i.expandableItemsSelector,c=void 0===h?'[data-ecl-breadcrumb-item="expandable"]':h,d=i.staticItemsSelector,u=void 0===d?'[data-ecl-breadcrumb-item="static"]':d,m=i.onPartialExpand,p=void 0===m?null:m,v=i.onFullExpand,g=void 0===v?null:v,b=i.attachClickListener,f=void 0===b||b,y=i.attachResizeListener,L=void 0===y||y;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=n,this.ellipsisSelector=r,this.segmentSelector=o,this.expandableItemsSelector=c,this.staticItemsSelector=u,this.onPartialExpand=p,this.onFullExpand=g,this.attachClickListener=f,this.attachResizeListener=L,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.resizeTimer=null,this.breakpoint=995,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this),this.handleResize=this.handleResize.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.ellipsisButton=c(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=h(this.segmentSelector,this.element),this.staticElements=h(this.staticItemsSelector,this.element),this.expandableElements=h(this.expandableItemsSelector,this.element),this.check(),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),this.element.classList.remove("ecl-breadcrumb--wrap"),ECL.components.delete(this.element))}handleClickOnEllipsis(){return this.handleFullExpand()}check(){var e,i=this;return(e=l().m(function e(){var t;return l().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,i.computeVisibilityMap();case 1:if(t=e.v){e.n=2;break}return e.a(2);case 2:!0===t.expanded&&Math.floor(i.element.getBoundingClientRect().width)>i.breakpoint?i.handleFullExpand():i.handlePartialExpand(t);case 3:return e.a(2)}},e)}),function(){var i=this,s=arguments;return new Promise(function(n,a){var r=e.apply(i,s);function l(e){t(r,n,a,l,o,"next",e)}function o(e){t(r,n,a,l,o,"throw",e)}l(void 0)})})()}hideEllipsis(){var e=c(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true")}showAllItems(){this.expandableElements.forEach(e=>e.setAttribute("aria-hidden","false"))}handlePartialExpand(e){if(Math.floor(this.element.getBoundingClientRect().width)<=this.breakpoint)this.expandableElements.forEach(e=>{e.setAttribute("aria-hidden","true")});else if(e){this.element.classList.add("ecl-breadcrumb--collapsed");var t=e.isItemVisible;if(t&&Array.isArray(t))if(this.onPartialExpand)this.onPartialExpand(t);else{var i=c(this.ellipsisSelector,this.element);i&&i.setAttribute("aria-hidden","false"),this.expandableElements.forEach((e,i)=>{e.setAttribute("aria-hidden",t[i]?"false":"true")})}}}handleFullExpand(){this.element.classList.remove("ecl-breadcrumb--collapsed"),this.element.classList.add("ecl-breadcrumb--wrap"),this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())}handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.check()},200)}computeVisibilityMap(){return new Promise(e=>{if(this.expandableElements&&0!==this.expandableElements.length){var t=Math.floor(this.element.getBoundingClientRect().width);setTimeout(()=>{if(1.1*this.itemsElements.map(e=>{var t=e.getBoundingClientRect().width;return 0===t&&(e.style.display="inline-flex",t=e.getBoundingClientRect().width,e.style.cssText=""),t}).reduce((e,t)=>e+t)<=t)e({expanded:!0});else{var i=c(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce((e,t)=>e+t.getBoundingClientRect().width,0);if(i>=t)e({expanded:!1,isItemVisible:[...this.expandableElements.map(()=>!1)]});else{var s=0,n=!0,a=[...this.expandableElements].reverse().map(e=>{if(!n)return!1;var a=(s+=e.getBoundingClientRect().width)+i<=t;return a||(n=!1),a}).reverse();e({expanded:!1,isItemVisible:a})}}},150)}else e({expanded:!0})})}}class f{static autoInit(e,t){var i=(void 0===t?{}:t).CONTENT_BLOCK,s=new f(e,void 0===i?{}:i);return s.init(),e.ECLContentBlock=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.targetSelector,n=void 0===s?"[data-ecl-picture-link]":s,a=i.titleSelector,r=void 0===a?"[data-ecl-title-link]":a,l=i.attachClickListener,o=void 0===l||l,h=i.maxIterations,c=void 0===h?1:h,d=i.withTitleAttr,u=void 0!==d&&d;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.targetSelector=n,this.titleSelector=r,this.attachClickListener=o,this.maxIterations=c,this.withTitleAttr=u,this.linkTo=this.linkTo.bind(this),this.findElementInCommonAncestor=this.findElementInCommonAncestor.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");if(ECL.components=ECL.components||new Map,this.picture=this.findElementInCommonAncestor(this.element,this.targetSelector,this.maxIterations),this.picture){if(this.titleLink=c(this.titleSelector,this.element),this.titleLink){this.picture.style.cursor="pointer";var e=c("img",this.picture);e&&this.withTitleAttr&&(e.title=this.constructor.convertToFullURL(this.titleLink.getAttribute("href"))),this.attachClickListener&&this.picture.addEventListener("click",this.linkTo)}this.element.setAttribute("data-ecl-auto-initialized",!0),ECL.components.set(this.element,this)}}linkTo(){this.titleLink&&this.titleLink.click()}findElementInCommonAncestor(e,t,i){var s=c(t,e);return s||(e.classList.contains("ecl-card__body")&&(i+=1),e===document.documentElement||i<=0?null:this.findElementInCommonAncestor(e.parentElement,t,i-1))}static convertToFullURL(e){if(e.startsWith("http://")||e.startsWith("https://"))return e;var t=new URL(window.location.href);return new URL(e,t).href}destroy(){this.attachClickListener&&this.picture&&this.picture.removeEventListener("click",this.linkto),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}}class y{static autoInit(e,t){var i=(void 0===t?{}:t).DESCRIPTION_LIST,s=new y(e,void 0===i?{}:i);return s.init(),e.ECLDescriptionList=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.listsSelector,n=void 0===s?"[data-ecl-description-list-collapsible]":s,a=i.visibleItemsSelector,r=void 0===a?"data-ecl-description-list-visible-items":a,l=i.moreItemLabelSelector,o=void 0===l?"data-ecl-description-list-more-label":l,h=i.attachClickListener,c=void 0===h||h;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.moreItemLabelSelector=o,this.listsSelector=n,this.attachClickListener=c,this.visibleItemsSelector=r,this.moreItemLabel=null,this.lists=null,this.handleClickOnMore=this.handleClickOnMore.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.moreItemLabel=this.element.getAttribute(this.moreItemLabelSelector),this.visibleItems=this.element.getAttribute(this.visibleItemsSelector),this.lists=h(this.listsSelector,this.element),this.lists[0]&&this.visibleItems>0&&this.moreItemLabel&&(this.lists.forEach(e=>{if(e.children&&e.children.length>this.visibleItems){var t=document.createElement("li");t.classList.add("ecl-description-list__see_more");var i=document.createElement("a");i.classList.add("ecl-link","ecl-link--standalone"),i.href="#",i.innerHTML=this.moreItemLabel,t.appendChild(i),e.appendChild(t),this.showHide(h(".ecl-description-list__definition-item",e)),this.attachClickListener&&i.addEventListener("click",this.handleClickOnMore)}}),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this))}showHide(e){if(e)for(var t=Array.from(e),i="ecl-description-list__definition-item",s=i+"--hidden",n=i+"--last-visible",a=0;a<t.length;a+=1){var r=t[a];r.setAttribute("tabindex",-1),a<this.visibleItems?(r.classList.remove(s),r.classList.remove(n)):a>=this.visibleItems&&r.classList.add(s),a===this.visibleItems-1?r.classList.add(n):r.classList.remove(n)}}destroy(){if(this.attachClickListener&&this.visibleItems>0){var e=h(".ecl-description-list__see_more");e[0]&&e.forEach(e=>{e.removeEventListener("click",this.handleClickOnMore)})}this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnMore(e){e.preventDefault();var t=e.target.parentNode,i=t.parentNode,s=null;this.element.contains(i)&&(Array.from(i.children).forEach(e=>{e.classList.contains("ecl-description-list__definition-item--hidden")&&(e.classList.remove("ecl-description-list__definition-item--hidden"),null===s&&(s=e)),e.classList.remove("ecl-description-list__definition-item--last-visible")}),t.remove(),null!==s&&s.focus())}}class L{static autoInit(e,t){var i=(void 0===t?{}:t).EXPANDABLE,s=new L(e,void 0===i?{}:i);return s.init(),e.ECLExpandable=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.toggleSelector,n=void 0===s?"[data-ecl-expandable-toggle]":s,a=i.labelSelector,r=void 0===a?"[data-ecl-label]":a,l=i.labelExpanded,o=void 0===l?"data-ecl-label-expanded":l,h=i.labelCollapsed,c=void 0===h?"data-ecl-label-collapsed":h,d=i.attachClickListener,m=void 0===d||d;if(this.supportedEvents=["onToggle"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new u,this.toggleSelector=n,this.labelSelector=r,this.labelExpanded=o,this.labelCollapsed=c,this.attachClickListener=m,this.toggle=null,this.forceClose=!1,this.target=null,this.label=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");if(ECL.components=ECL.components||new Map,this.toggle=c(this.toggleSelector,this.element),this.target=document.querySelector("#"+this.toggle.getAttribute("aria-controls")),this.label=c(this.labelSelector,this.element),!this.target)throw new TypeError("Target has to be provided for expandable (aria-controls)");this.attachClickListener&&this.toggle&&this.toggle.addEventListener("click",this.handleClickOnToggle),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.attachClickListener&&this.toggle&&this.toggle.removeEventListener("click",this.handleClickOnToggle),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnToggle(e){var t=!0===this.forceClose||"true"===this.toggle.getAttribute("aria-expanded");this.toggle.setAttribute("aria-expanded",t?"false":"true"),this.target.hidden=!!t,this.label&&!t&&this.toggle.hasAttribute(this.labelExpanded)?this.label.innerHTML=this.toggle.getAttribute(this.labelExpanded):this.label&&t&&this.toggle.hasAttribute(this.labelCollapsed)&&(this.label.innerHTML=this.toggle.getAttribute(this.labelCollapsed));var i={expanded:!t,e:e};return this.trigger("onToggle",i),this}}class k{static autoInit(e,t){var i=(void 0===t?{}:t).FILE_DOWNLOAD,s=new k(e,void 0===i?{}:i);return s.init(),e.ECLFileDownload=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.translationToggleSelector,n=void 0===s?"[data-ecl-file-translation-toggle]":s,a=i.translationContainerSelector,r=void 0===a?"[data-ecl-file-translation-container]":a,l=i.attachClickListener,o=void 0===l||l;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.translationToggleSelector=n,this.translationContainerSelector=r,this.attachClickListener=o,this.translationToggle=null,this.translationContainer=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.translationToggle=c(this.translationToggleSelector,this.element),this.translationContainer=c(this.translationContainerSelector,this.element),this.attachClickListener&&this.translationToggle&&this.translationToggle.addEventListener("click",this.handleClickOnToggle),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.translationToggle&&this.translationToggle.removeEventListener("click",this.handleClickOnToggle),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnToggle(e){return e.preventDefault(),"true"===this.translationToggle.getAttribute("aria-expanded")?this.translationToggle.setAttribute("aria-expanded","false"):this.translationToggle.setAttribute("aria-expanded","true"),this}}class E{static autoInit(e,t){var i=(void 0===t?{}:t).FILE_UPLOAD,s=new E(e,void 0===i?{}:i);return s.init(),e.ECLFileUpload=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.groupSelector,n=void 0===s?"[data-ecl-file-upload-group]":s,a=i.buttonSelector,r=void 0===a?"[data-ecl-file-upload-button]":a,l=i.listSelector,o=void 0===l?"[data-ecl-file-upload-list]":l,h=i.labelChoose,c=void 0===h?"data-ecl-file-upload-label-choose":h,d=i.labelReplace,m=void 0===d?"data-ecl-file-upload-label-replace":d,p=i.attachChangeListener,v=void 0===p||p;if(this.supportedEvents=["onSelection"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new u,this.groupSelector=n,this.buttonSelector=r,this.listSelector=o,this.labelChoose=c,this.labelReplace=m,this.attachChangeListener=v,this.fileUploadGroup=null,this.fileUploadInput=null,this.fileUploadButton=null,this.fileUploadList=null,this.handleChange=this.handleChange.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.fileUploadGroup=this.element.closest(this.groupSelector),this.fileUploadInput=this.element,this.fileUploadButton=c(this.buttonSelector,this.fileUploadGroup),this.fileUploadList=c(this.listSelector,this.fileUploadGroup),this.attachChangeListener&&this.fileUploadInput&&this.fileUploadInput.addEventListener("change",this.handleChange),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.attachChangeListener&&this.fileUploadInput&&this.fileUploadInput.removeEventListener("change",this.handleChange),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleChange(e){if("files"in e.target){var t="";Array.prototype.forEach.call(e.target.files,e=>{var i=function(e,t){if(0===e)return"0 Bytes";var i=t,s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(i))+" "+["Bytes","kB","MB","GB","TB","PB","EB","ZB","YB"][s]}(e.size,1),s=e.name.split(".").pop();t+='<li class="ecl-file-upload__item">\n <span class="ecl-file-upload__item-name">'+e.name+'</span>\n <span class="ecl-file-upload__item-meta">('+i+" - "+s+")</span>\n </li>"}),this.fileUploadList.innerHTML=t,this.fileUploadButton.hasAttribute(this.labelReplace)&&(this.fileUploadButton.innerHTML=this.fileUploadButton.getAttribute(this.labelReplace));var i={files:e.target.files,event:e};this.trigger("onSelection",i)}else this.fileUploadButton.hasAttribute(this.labelChoose)&&(this.fileUploadButton.innerHTML=this.fileUploadButton.getAttribute(this.labelChoose))}}
5
+ /*!
6
+ * tabbable 6.4.0
7
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
8
+ */var C=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],w=C.join(","),S="undefined"==typeof Element,A=S?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,_=!S&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},x=function(e,t){var i;void 0===t&&(t=!0);var s=null==e||null===(i=e.getAttribute)||void 0===i?void 0:i.call(e,"inert");return""===s||"true"===s||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):x(e.parentNode))},O=function(e,t,i){if(x(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(w));return t&&A.call(e,w)&&s.unshift(e),s=s.filter(i)},T=function(e,t,i){for(var s=[],n=Array.from(e);n.length;){var a=n.shift();if(!x(a,!1))if("SLOT"===a.tagName){var r=a.assignedElements(),l=r.length?r:a.children,o=T(l,!0,i);i.flatten?s.push.apply(s,o):s.push({scopeParent:a,candidates:o})}else{A.call(a,w)&&i.filter(a)&&(t||!e.includes(a))&&s.push(a);var h=a.shadowRoot||"function"==typeof i.getShadowRoot&&i.getShadowRoot(a),c=!x(h,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(a));if(h&&c){var d=T(!0===h?a.children:h.children,!0,i);i.flatten?s.push.apply(s,d):s.push({scopeParent:a,candidates:d})}else n.unshift.apply(n,a.children)}}return s},M=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},P=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,i=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===i||"true"===i}(e))&&!M(e)?0:e.tabIndex},I=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},B=function(e){return"INPUT"===e.tagName},N=function(e){return function(e){return B(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,i=e.form||_(e),s=function(e){return i.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=s(window.CSS.escape(e.name));else try{t=s(e.name)}catch(e){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",e.message),!1}var n=function(e,t){for(var i=0;i<e.length;i++)if(e[i].checked&&e[i].form===t)return e[i]}(t,e.form);return!n||n===e}(e)},D=function(e){var t=e.getBoundingClientRect(),i=t.width,s=t.height;return 0===i&&0===s},F=function(e,t){var i=t.displayCheck,s=t.getShadowRoot;if("full-native"===i&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var n=A.call(e,"details>summary:first-of-type")?e.parentElement:e;if(A.call(n,"details:not([open]) *"))return!0;if(i&&"full"!==i&&"full-native"!==i&&"legacy-full"!==i){if("non-zero-area"===i)return D(e)}else{if("function"==typeof s){for(var a=e;e;){var r=e.parentElement,l=_(e);if(r&&!r.shadowRoot&&!0===s(r))return D(e);e=e.assignedSlot?e.assignedSlot:r||l===e.ownerDocument?r:l.host}e=a}if(function(e){var t,i,s,n,a=e&&_(e),r=null===(t=a)||void 0===t?void 0:t.host,l=!1;if(a&&a!==e)for(l=!!(null!==(i=r)&&void 0!==i&&null!==(s=i.ownerDocument)&&void 0!==s&&s.contains(r)||null!=e&&null!==(n=e.ownerDocument)&&void 0!==n&&n.contains(e));!l&&r;){var o,h,c;l=!(null===(h=r=null===(o=a=_(r))||void 0===o?void 0:o.host)||void 0===h||null===(c=h.ownerDocument)||void 0===c||!c.contains(r))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==i)return!0}return!1},R=function(e,t){return!(t.disabled||function(e){return B(e)&&"hidden"===e.type}(t)||F(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var i=0;i<t.children.length;i++){var s=t.children.item(i);if("LEGEND"===s.tagName)return!!A.call(t,"fieldset[disabled] *")||!s.contains(e)}return!0}t=t.parentElement}return!1}(t))},z=function(e,t){return!(N(t)||P(t)<0||!R(e,t))},H=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},K=function(e){var t=[],i=[];return e.forEach(function(e,s){var n=!!e.scopeParent,a=n?e.scopeParent:e,r=function(e,t){var i=P(e);return i<0&&t&&!M(e)?0:i}(a,n),l=n?K(e.candidates):a;0===r?n?t.push.apply(t,l):t.push(a):i.push({documentOrder:s,tabIndex:r,item:e,isScope:n,content:l})}),i.sort(I).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},G=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==A.call(e,w)&&z(t,e)},V=C.concat("iframe:not([inert]):not([inert] *)").join(","),W=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==A.call(e,V)&&R(t,e)};
9
+ /*!
10
+ * focus-trap 8.0.0
11
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
12
+ */
13
+ function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=Array(t);i<t;i++)s[i]=e[i];return s}function j(e,t,i,s,n,a,r){try{var l=e[a](r),o=l.value}catch(e){return void i(e)}l.done?t(o):Promise.resolve(o).then(s,n)}function q(e){return function(){var t=this,i=arguments;return new Promise(function(s,n){var a=e.apply(t,i);function r(e){j(a,s,n,r,l,"next",e)}function l(e){j(a,s,n,r,l,"throw",e)}r(void 0)})}}function Y(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=te(e))||t){i&&(e=i);var s=0,n=function(){};return{s:n,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,r=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return r=e.done,e},e:function(e){l=!0,a=e},f:function(){try{r||null==i.return||i.return()}finally{if(l)throw a}}}}function X(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var s=i.call(e,t);if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Q(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,s)}return i}function J(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(i),!0).forEach(function(t){X(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Q(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function Z(){
14
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
15
+ var e,t,i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",n=i.toStringTag||"@@toStringTag";function a(i,s,n,a){var o=s&&s.prototype instanceof l?s:l,h=Object.create(o.prototype);return $(h,"_invoke",function(i,s,n){var a,l,o,h=0,c=n||[],d=!1,u={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,i){return a=t,l=0,o=e,u.n=i,r}};function m(i,s){for(l=i,o=s,t=0;!d&&h&&!n&&t<c.length;t++){var n,a=c[t],m=u.p,p=a[2];i>3?(n=p===s)&&(o=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=m&&((n=i<2&&m<a[1])?(l=0,u.v=s,u.n=a[1]):m<p&&(n=i<3||a[0]>s||s>p)&&(a[4]=i,a[5]=s,u.n=p,l=0))}if(n||i>1)return r;throw d=!0,s}return function(n,c,p){if(h>1)throw TypeError("Generator is already running");for(d&&1===c&&m(c,p),l=c,o=p;(t=l<2?e:o)||!d;){a||(l?l<3?(l>1&&(u.n=-1),m(l,o)):u.n=o:u.v=o);try{if(h=2,a){if(l||(n="next"),t=a[n]){if(!(t=t.call(a,o)))throw TypeError("iterator result is not an object");if(!t.done)return t;o=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(o=TypeError("The iterator does not provide a '"+n+"' method"),l=1);a=e}else if((t=(d=u.n<0)?o:i.call(s,u))!==r)break}catch(t){a=e,l=1,o=t}finally{h=1}}return{value:t,done:d}}}(i,n,a),!0),h}var r={};function l(){}function o(){}function h(){}t=Object.getPrototypeOf;var c=[][s]?t(t([][s]())):($(t={},s,function(){return this}),t),d=h.prototype=l.prototype=Object.create(c);function u(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,$(e,n,"GeneratorFunction")),e.prototype=Object.create(d),e}return o.prototype=h,$(d,"constructor",h),$(h,"constructor",o),o.displayName="GeneratorFunction",$(h,n,"GeneratorFunction"),$(d),$(d,n,"Generator"),$(d,s,function(){return this}),$(d,"toString",function(){return"[object Generator]"}),(Z=function(){return{w:a,m:u}})()}function $(e,t,i,s){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}$=function(e,t,i,s){function a(t,i){$(e,t,function(e){return this._invoke(t,i,e)})}t?n?n(e,t,{value:i,enumerable:!s,configurable:!s,writable:!s}):e[t]=i:(a("next",0),a("throw",1),a("return",2))},$(e,t,i,s)}function ee(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||te(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){if(e){if("string"==typeof e)return U(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?U(e,t):void 0}}var ie={getActiveTrap:function(e){return(null==e?void 0:e.length)>0?e[e.length-1]:null},activateTrap:function(e,t){t!==ie.getActiveTrap(e)&&ie.pauseTrap(e);var i=e.indexOf(t);-1===i||e.splice(i,1),e.push(t)},deactivateTrap:function(e,t){var i=e.indexOf(t);-1!==i&&e.splice(i,1),ie.unpauseTrap(e)},pauseTrap:function(e){var t=ie.getActiveTrap(e);null==t||t._setPausedState(!0)},unpauseTrap:function(e){var t=ie.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},se=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},ne=function(e){return se(e)&&!e.shiftKey},ae=function(e){return se(e)&&e.shiftKey},re=function(e){return setTimeout(e,0)},le=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];return"function"==typeof e?e.apply(void 0,i):e},oe=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},he=[],ce=function(e,t){var i,s=(null==t?void 0:t.document)||document,n=(null==t?void 0:t.trapStack)||he,a=J({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:ne,isKeyBackward:ae},t),r={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},l=function(e,t,i){return e&&void 0!==e[t]?e[t]:a[i||t]},o=function(e,t){var i="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return r.containerGroups.findIndex(function(t){var s=t.container,n=t.tabbableNodes;return s.contains(e)||(null==i?void 0:i.includes(s))||n.find(function(t){return t===e})})},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.hasFallback,n=void 0!==i&&i,r=t.params,l=void 0===r?[]:r,o=a[e];if("function"==typeof o&&(o=o.apply(void 0,ee(l))),!0===o&&(o=void 0),!o){if(void 0===o||!1===o)return o;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var h=o;if("string"==typeof o){try{h=s.querySelector(o)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!h&&!n)throw new Error("`".concat(e,"` as selector refers to no known node"))}return h},c=function(){var e=h("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!W(e,a.tabbableOptions))if(o(s.activeElement)>=0)e=s.activeElement;else{var t=r.tabbableGroups[0];e=t&&t.firstTabbableNode||h("fallbackFocus")}else null===e&&(e=h("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(r.containerGroups=r.containers.map(function(e){var t=function(e,t){var i;return i=(t=t||{}).getShadowRoot?T([e],t.includeContainer,{filter:z.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:H}):O(e,t.includeContainer,z.bind(null,t)),K(i)}(e,a.tabbableOptions),i=function(e,t){return(t=t||{}).getShadowRoot?T([e],t.includeContainer,{filter:R.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):O(e,t.includeContainer,R.bind(null,t))}(e,a.tabbableOptions),s=t.length>0?t[0]:void 0,n=t.length>0?t[t.length-1]:void 0,r=i.find(function(e){return G(e)}),l=i.slice().reverse().find(function(e){return G(e)}),o=!!t.find(function(e){return P(e)>0});return{container:e,tabbableNodes:t,focusableNodes:i,posTabIndexesFound:o,firstTabbableNode:s,lastTabbableNode:n,firstDomTabbableNode:r,lastDomTabbableNode:l,nextTabbableNode:function(e){var s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.indexOf(e);return n<0?s?i.slice(i.indexOf(e)+1).find(function(e){return G(e)}):i.slice(0,i.indexOf(e)).reverse().find(function(e){return G(e)}):t[n+(s?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!h("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(r.containerGroups.find(function(e){return e.posTabIndexesFound})&&r.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.")},u=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?u(t.shadowRoot):t},m=function(e){!1!==e&&e!==u(document)&&(e&&e.focus?(e.focus({preventScroll:!!a.preventScroll}),r.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):m(c()))},p=function(e){var t=h("setReturnFocus",{params:[e]});return t||!1!==t&&e},v=function(e){var t=e.target,i=e.event,s=e.isBackward,n=void 0!==s&&s;t=t||oe(i),d();var l=null;if(r.tabbableGroups.length>0){var c=o(t,i),u=c>=0?r.containerGroups[c]:void 0;if(c<0)l=n?r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:r.tabbableGroups[0].firstTabbableNode;else if(n){var m=r.tabbableGroups.findIndex(function(e){var i=e.firstTabbableNode;return t===i});if(m<0&&(u.container===t||W(t,a.tabbableOptions)&&!G(t,a.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(m=c),m>=0){var p=0===m?r.tabbableGroups.length-1:m-1,v=r.tabbableGroups[p];l=P(t)>=0?v.lastTabbableNode:v.lastDomTabbableNode}else se(i)||(l=u.nextTabbableNode(t,!1))}else{var g=r.tabbableGroups.findIndex(function(e){var i=e.lastTabbableNode;return t===i});if(g<0&&(u.container===t||W(t,a.tabbableOptions)&&!G(t,a.tabbableOptions)&&!u.nextTabbableNode(t))&&(g=c),g>=0){var b=g===r.tabbableGroups.length-1?0:g+1,f=r.tabbableGroups[b];l=P(t)>=0?f.firstTabbableNode:f.firstDomTabbableNode}else se(i)||(l=u.nextTabbableNode(t))}}else l=h("fallbackFocus");return l},g=function(e){var t=oe(e);o(t,e)>=0||(le(a.clickOutsideDeactivates,e)?i.deactivate({returnFocus:a.returnFocusOnDeactivate}):le(a.allowOutsideClick,e)||e.preventDefault())},b=function(e){var t=oe(e),i=o(t,e)>=0;if(i||t instanceof Document)i&&(r.mostRecentlyFocusedNode=t);else{var s;e.stopImmediatePropagation();var n=!0;if(r.mostRecentlyFocusedNode)if(P(r.mostRecentlyFocusedNode)>0){var l=o(r.mostRecentlyFocusedNode),h=r.containerGroups[l].tabbableNodes;if(h.length>0){var d=h.findIndex(function(e){return e===r.mostRecentlyFocusedNode});d>=0&&(a.isKeyForward(r.recentNavEvent)?d+1<h.length&&(s=h[d+1],n=!1):d-1>=0&&(s=h[d-1],n=!1))}}else r.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return P(e)>0})})||(n=!1);else n=!1;n&&(s=v({target:r.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(r.recentNavEvent)})),m(s||(r.mostRecentlyFocusedNode||c()))}r.recentNavEvent=void 0},f=function(e){(a.isKeyForward(e)||a.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.recentNavEvent=e;var i=v({event:e,isBackward:t});i&&(se(e)&&e.preventDefault(),m(i))}(e,a.isKeyBackward(e))},y=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===le(a.escapeDeactivates,e)||(e.preventDefault(),i.deactivate())},L=function(e){var t=oe(e);o(t,e)>=0||le(a.clickOutsideDeactivates,e)||le(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},k=function(){return r.active?(ie.activateTrap(n,i),a.delayInitialFocus?e=new Promise(function(e){r.delayInitialFocusTimer=re(function(){m(c()),e()})}):(e=Promise.resolve(),m(c())),s.addEventListener("focusin",b,!0),s.addEventListener("mousedown",g,{capture:!0,passive:!1}),s.addEventListener("touchstart",g,{capture:!0,passive:!1}),s.addEventListener("click",L,{capture:!0,passive:!1}),s.addEventListener("keydown",f,{capture:!0,passive:!1}),s.addEventListener("keydown",y),e):Promise.resolve();var e},E=function(){if(r.active)return s.removeEventListener("focusin",b,!0),s.removeEventListener("mousedown",g,!0),s.removeEventListener("touchstart",g,!0),s.removeEventListener("click",L,!0),s.removeEventListener("keydown",f,!0),s.removeEventListener("keydown",y),i},C="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===r.mostRecentlyFocusedNode})})&&m(c())}):void 0,w=function(){C&&(C.disconnect(),r.active&&!r.paused&&r.containers.map(function(e){C.observe(e,{subtree:!0,childList:!0})}))};return i={get active(){return r.active},get paused(){return r.paused},activate:function(e){if(r.active)return this;var t,a=l(e,"onActivate"),o=l(e,"onPostActivate"),h=l(e,"checkCanFocusTrap"),c=ie.getActiveTrap(n),m=!1;c&&!c.paused&&(null===(t=c._setSubtreeIsolation)||void 0===t||t.call(c,!1),m=!0);try{h||d(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=u(s),null==a||a();var p=function(){var e=q(Z().m(function e(){return Z().w(function(e){for(;;)switch(e.n){case 0:return h&&d(),e.n=1,k();case 1:i._setSubtreeIsolation(!0),w(),null==o||o();case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();if(h)return h(r.containers.concat()).then(p,p),this;p()}catch(e){var v;if(c===ie.getActiveTrap(n)&&m)null===(v=c._setSubtreeIsolation)||void 0===v||v.call(c,!0);throw e}return this},deactivate:function(e){if(!r.active)return this;var t=J({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,r.paused||i._setSubtreeIsolation(!1),r.alreadySilent.clear(),E(),r.active=!1,r.paused=!1,w(),ie.deactivateTrap(n,i);var s=l(t,"onDeactivate"),o=l(t,"onPostDeactivate"),h=l(t,"checkCanReturnFocus"),c=l(t,"returnFocus","returnFocusOnDeactivate");null==s||s();var d=function(){re(function(){c&&m(p(r.nodeFocusedBeforeActivation)),null==o||o()})};return c&&h?(h(p(r.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){return r.active?(r.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return r.active?(r.manuallyPaused=!1,n[n.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return r.containers=t.map(function(e){return"string"==typeof e?s.querySelector(e):e}),a.isolateSubtrees&&function(e){r.active&&!r.paused&&i._setSubtreeIsolation(!1),r.adjacentElements.clear(),r.alreadySilent.clear();var t,s=new Set,n=new Set,a=Y(e);try{for(a.s();!(t=a.n()).done;){var l=t.value;s.add(l);for(var o="undefined"!=typeof ShadowRoot&&l.getRootNode()instanceof ShadowRoot,h=l;h;){s.add(h);var c=h.parentElement,d=[];c?d=c.children:!c&&o&&(d=h.getRootNode().children,c=h.getRootNode().host,o="undefined"!=typeof ShadowRoot&&c.getRootNode()instanceof ShadowRoot);var u,m=Y(d);try{for(m.s();!(u=m.n()).done;){var p=u.value;n.add(p)}}catch(e){m.e(e)}finally{m.f()}h=c}}}catch(e){a.e(e)}finally{a.f()}s.forEach(function(e){n.delete(e)}),r.adjacentElements=n}(r.containers),r.active&&(d(),r.paused||i._setSubtreeIsolation(!0)),w(),this}},Object.defineProperties(i,{_isManuallyPaused:{value:function(){return r.manuallyPaused}},_setPausedState:{value:function(e,t){if(r.paused===e)return this;if(r.paused=e,e){var s=l(t,"onPause"),n=l(t,"onPostPause");null==s||s(),E(),i._setSubtreeIsolation(!1),w(),null==n||n()}else{var a=l(t,"onUnpause"),o=l(t,"onPostUnpause");null==a||a();var h=function(){var e=q(Z().m(function e(){return Z().w(function(e){for(;;)switch(e.n){case 0:return d(),e.n=1,k();case 1:i._setSubtreeIsolation(!0),w(),null==o||o();case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();h()}return this}},_setSubtreeIsolation:{value:function(e){a.isolateSubtrees&&r.adjacentElements.forEach(function(t){var i;if(e)if("aria-hidden"===a.isolateSubtrees)"true"!==t.ariaHidden&&"true"!==(null===(i=t.getAttribute("aria-hidden"))||void 0===i?void 0:i.toLowerCase())||r.alreadySilent.add(t),t.setAttribute("aria-hidden","true");else(t.inert||t.hasAttribute("inert"))&&r.alreadySilent.add(t),t.setAttribute("inert",!0);else if(r.alreadySilent.has(t));else if("aria-hidden"===a.isolateSubtrees)t.removeAttribute("aria-hidden");else t.removeAttribute("inert")})}}}),i.updateContainerElements(e),i};class de{static autoInit(e,t){var i=(void 0===t?{}:t).GALLERY,s=new de(e,void 0===i?{}:i);return s.init(),e.ECLGallery=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.expandableSelector,n=void 0===s?"data-ecl-gallery-not-expandable":s,a=i.galleryItemSelector,r=void 0===a?"[data-ecl-gallery-item]":a,l=i.descriptionSelector,o=void 0===l?"[data-ecl-gallery-description]":l,h=i.titleSelector,c=void 0===h?"[data-ecl-gallery-title]":h,d=i.noOverlaySelector,u=void 0===d?"data-ecl-gallery-no-overlay":d,m=i.itemsLimitSelector,p=void 0===m?"data-ecl-gallery-visible-items":m,v=i.closeButtonSelector,g=void 0===v?"[data-ecl-gallery-close]":v,b=i.viewAllSelector,f=void 0===b?"[data-ecl-gallery-all]":b,y=i.viewAllLabelSelector,L=void 0===y?"data-ecl-gallery-collapsed-label":y,k=i.viewAllExpandedLabelSelector,E=void 0===k?"data-ecl-gallery-expanded-label":k,C=i.countSelector,w=void 0===C?"[data-ecl-gallery-count]":C,S=i.overlaySelector,A=void 0===S?"[data-ecl-gallery-overlay]":S,_=i.overlayHeaderSelector,x=void 0===_?"[data-ecl-gallery-overlay-header]":_,O=i.overlayFooterSelector,T=void 0===O?"[data-ecl-gallery-overlay-footer]":O,M=i.overlayMediaSelector,P=void 0===M?"[data-ecl-gallery-overlay-media]":M,I=i.overlayCounterCurrentSelector,B=void 0===I?"[data-ecl-gallery-overlay-counter-current]":I,N=i.overlayCounterMaxSelector,D=void 0===N?"[data-ecl-gallery-overlay-counter-max]":N,F=i.overlayDownloadSelector,R=void 0===F?"[data-ecl-gallery-overlay-download]":F,z=i.overlayShareSelector,H=void 0===z?"[data-ecl-gallery-overlay-share]":z,K=i.overlayDescriptionSelector,G=void 0===K?"[data-ecl-gallery-overlay-description]":K,V=i.overlayPreviousSelector,W=void 0===V?"[data-ecl-gallery-overlay-previous]":V,U=i.overlayNextSelector,j=void 0===U?"[data-ecl-gallery-overlay-next]":U,q=i.videoTitleSelector,Y=void 0===q?"data-ecl-gallery-item-video-title":q,X=i.attachClickListener,Q=void 0===X||X,J=i.attachKeyListener,Z=void 0===J||J,$=i.attachResizeListener,ee=void 0===$||$;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.galleryItemSelector=r,this.descriptionSelector=o,this.titleSelector=c,this.closeButtonSelector=g,this.viewAllSelector=f,this.countSelector=w,this.itemsLimitSelector=p,this.overlaySelector=A,this.noOverlaySelector=u,this.overlayHeaderSelector=x,this.overlayFooterSelector=T,this.overlayMediaSelector=P,this.overlayCounterCurrentSelector=B,this.overlayCounterMaxSelector=D,this.overlayDownloadSelector=R,this.overlayShareSelector=H,this.overlayDescriptionSelector=G,this.overlayPreviousSelector=W,this.overlayNextSelector=j,this.attachClickListener=Q,this.attachKeyListener=Z,this.attachResizeListener=ee,this.viewAllLabelSelector=L,this.viewAllExpandedLabelSelector=E,this.expandableSelector=n,this.videoTitleSelector=Y,this.galleryItems=null,this.closeButton=null,this.viewAll=null,this.count=null,this.overlay=null,this.overlayHeader=null,this.overlayFooter=null,this.overlayMedia=null,this.overlayCounterCurrent=null,this.overlayCounterMax=null,this.overlayDownload=null,this.overlayShare=null,this.overlayDescription=null,this.overlayPrevious=null,this.overlayNext=null,this.selectedItem=null,this.focusTrap=null,this.isDesktop=!1,this.resizeTimer=null,this.visibleItems=0,this.breakpointMd=768,this.breakpointLg=996,this.imageHeight=185,this.imageHeightBig=260,this.iframeResize=this.iframeResize.bind(this),this.handleClickOnCloseButton=this.handleClickOnCloseButton.bind(this),this.handleClickOnViewAll=this.handleClickOnViewAll.bind(this),this.handleClickOnItem=this.handleClickOnItem.bind(this),this.preventClickOnItem=this.preventClickOnItem.bind(this),this.handleKeyPressOnItem=this.handleKeyPressOnItem.bind(this),this.handleClickOnPreviousButton=this.handleClickOnPreviousButton.bind(this),this.handleClickOnNextButton=this.handleClickOnNextButton.bind(this),this.handleKeyboard=this.handleKeyboard.bind(this),this.handleResize=this.handleResize.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.expandable=!this.element.hasAttribute(this.expandableSelector),this.visibleItems=this.element.getAttribute(this.itemsLimitSelector),this.galleryItems=h(this.galleryItemSelector,this.element),this.closeButton=c(this.closeButtonSelector,this.element),this.noOverlay=this.element.hasAttribute(this.noOverlaySelector),this.expandable&&(this.viewAll=c(this.viewAllSelector,this.element),this.viewAllLabel=this.viewAll.getAttribute(this.viewAllLabelSelector)||this.viewAll.innerText,this.viewAllLabelExpanded=this.viewAll.getAttribute(this.viewAllExpandedLabelSelector)||this.viewAllLabel),this.count=c(this.countSelector,this.element),this.attachClickListener&&this.viewAll&&this.viewAll.addEventListener("click",this.handleClickOnViewAll),this.noOverlay?this.galleryItems.forEach(e=>{e.classList.add("ecl-gallery__item__link--frozen"),e.addEventListener("click",this.preventClickOnItem)}):(this.overlay=c(this.overlaySelector,this.element),this.overlayHeader=c(this.overlayHeaderSelector,this.overlay),this.overlayFooter=c(this.overlayFooterSelector,this.overlay),this.overlayMedia=c(this.overlayMediaSelector,this.overlay),this.overlayCounterCurrent=c(this.overlayCounterCurrentSelector,this.overlay),this.overlayCounterMax=c(this.overlayCounterMaxSelector,this.overlay),this.overlayDownload=c(this.overlayDownloadSelector,this.overlay),this.overlayShare=c(this.overlayShareSelector,this.overlay),this.overlayDescription=c(this.overlayDescriptionSelector,this.overlay),this.overlayPrevious=c(this.overlayPreviousSelector,this.overlay),this.overlayNext=c(this.overlayNextSelector,this.overlay),this.focusTrap=ce(this.overlay,{escapeDeactivates:!1,returnFocusOnDeactivate:!1}),this.isDialogSupported=!0,window.HTMLDialogElement||(this.isDialogSupported=!1),this.attachClickListener&&this.closeButton&&this.closeButton.addEventListener("click",this.handleClickOnCloseButton),this.attachClickListener&&this.galleryItems&&this.galleryItems.forEach(e=>{this.attachClickListener&&e.addEventListener("click",this.handleClickOnItem),this.attachKeyListener&&e.addEventListener("keyup",this.handleKeyPressOnItem)}),this.attachClickListener&&this.overlayPrevious&&this.overlayPrevious.addEventListener("click",this.handleClickOnPreviousButton),this.attachClickListener&&this.overlayNext&&this.overlayNext.addEventListener("click",this.handleClickOnNextButton),!this.isDialogSupported&&this.attachKeyListener&&this.overlay&&this.overlay.addEventListener("keyup",this.handleKeyboard),this.isDialogSupported&&this.overlay&&this.overlay.addEventListener("close",this.handleClickOnCloseButton)),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.expandable&&(this.checkScreen(),this.hideItems()),this.galleryItems.forEach((e,t)=>{e.setAttribute("data-ecl-gallery-item-id",t)}),this.count&&(this.count.innerHTML=this.galleryItems.length),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.closeButton&&this.closeButton.removeEventListener("click",this.handleClickOnCloseButton),this.attachClickListener&&this.viewAll&&this.viewAll.removeEventListener("click",this.handleClickOnViewAll),this.attachClickListener&&this.galleryItems&&this.galleryItems.forEach(e=>{e.removeEventListener("click",this.handleClickOnItem)}),this.attachClickListener&&this.overlayPrevious&&this.overlayPrevious.removeEventListener("click",this.handleClickOnPreviousButton),this.attachClickListener&&this.overlayNext&&this.overlayNext.removeEventListener("click",this.handleClickOnNextButton),!this.isDialogSupported&&this.attachKeyListener&&this.overlay&&this.overlay.removeEventListener("keyup",this.handleKeyboard),this.isDialogSupported&&this.overlay&&this.overlay.removeEventListener("close",this.handleClickOnCloseButton),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}checkScreen(){window.innerWidth>this.breakpointMd?this.isDesktop=!0:this.isDesktop=!1,window.innerWidth>this.breakpointLg&&(this.isLarge=!0)}iframeResize(e){if(!e&&this.overlay&&(e=c("iframe",this.overlay)),e){var t=window.innerWidth;setTimeout(()=>{var i=this.overlay.clientHeight-this.overlayHeader.clientHeight-this.overlayFooter.clientHeight;t>i?(e.setAttribute("height",i+"px"),16*i/9>t?e.setAttribute("width",t-.05*t+"px"):e.setAttribute("width",16*i/9+"px")):(e.setAttribute("width",t+"px"),4*t/3>i?e.setAttribute("height",i-.05*i+"px"):e.setAttribute("height",4*t/3+"px"))},0)}}hideItems(e){if(void 0===e&&(e=0),this.viewAll&&!this.viewAll.expanded){if(this.isDesktop){var t=[];return this.galleryItems.forEach((i,s)=>{i.parentNode.classList.remove("ecl-gallery__item--hidden"),s>=Number(this.visibleItems)+Number(e)&&(t=[...t,s])}),void t.forEach(e=>{this.galleryItems[e].parentNode.classList.add("ecl-gallery__item--hidden")})}this.galleryItems.forEach((t,i)=>{i>2+Number(e)?t.parentNode.classList.add("ecl-gallery__item--hidden"):t.parentNode.classList.remove("ecl-gallery__item--hidden")})}}handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.checkScreen(),this.hideItems(),this.iframeResize()},200)}updateOverlay(e){this.selectedItem=e;var t=e.getAttribute("data-ecl-gallery-item-embed-src"),i=e.getAttribute("data-ecl-gallery-item-embed-audio"),s=c("video",e),n=null;if(null!=t){(n=document.createElement("div")).classList.add("ecl-gallery__slider-embed");var a=document.createElement("div");a.classList.add("ecl-gallery__slider-embed-audio"),i&&(a.innerHTML=i);var r=new URL(t),l=document.createElement("iframe");l.setAttribute("src",r),l.setAttribute("frameBorder","0");var o=e.getAttribute(this.videoTitleSelector);o&&l.setAttribute("title",o),this.overlayMedia&&(i&&n.appendChild(a),n.appendChild(l),this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(n)),this.iframeResize(l)}else if(null!=s){(n=document.createElement("video")).setAttribute("poster",s.poster),n.setAttribute("controls","controls"),n.classList.add("ecl-gallery__slider-video");var d=e.getAttribute(this.videoTitleSelector);d&&n.setAttribute("aria-label",d),this.overlayMedia&&(this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(n)),h("source",s).forEach(e=>{var t=document.createElement("source");t.setAttribute("src",e.getAttribute("src")),t.setAttribute("type",e.getAttribute("type")),n.appendChild(t)}),h("track",s).forEach(e=>{var t=document.createElement("track");t.setAttribute("src",e.getAttribute("src")),t.setAttribute("kind",e.getAttribute("kind")),t.setAttribute("srclang",e.getAttribute("srcLang")),t.setAttribute("label",e.getAttribute("label")),n.appendChild(t)}),n.load()}else{var u=c(".ecl-gallery__picture",e),m=c("img",u);u?(m.classList.remove("ecl-gallery__image"),n=u.cloneNode(!0)):((n=document.createElement("img")).setAttribute("src",m.getAttribute("src")),n.setAttribute("alt",m.getAttribute("alt"))),n.classList.add("ecl-gallery__slider-image"),this.overlayMedia&&(this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(n))}var p=e.getAttribute("id");this.overlayCounterCurrent.innerHTML=+e.getAttribute("data-ecl-gallery-item-id")+1,this.overlayCounterMax.innerHTML=this.galleryItems.length;var v=document.createElement("div");v.classList.add("ecl-gallery__detail-actions-mobile"),null!==this.overlayDownload&&null===t?(this.overlayDownload.href=this.selectedItem.href,p&&this.overlayDownload.setAttribute("aria-describedby",p+"-title"),this.overlayDownload.hidden=!1,v.appendChild(this.overlayDownload.cloneNode(!0))):null!==this.overlayDownload&&(this.overlayDownload.hidden=!0);var g=this.selectedItem.getAttribute("data-ecl-gallery-item-share");null!=g?(this.overlayShare.href=g,p&&this.overlayShare.setAttribute("aria-describedby",p+"-title"),this.overlayShare.hidden=!1,v.appendChild(this.overlayShare.cloneNode(!0))):this.overlayShare.hidden=!0;var b=c(this.descriptionSelector,e);b&&(this.overlayDescription.innerHTML=b.innerHTML),v.childNodes.length>0&&this.overlayDescription.prepend(v)}handleKeyboard(e){"Escape"!==e.key&&"Esc"!==e.key||this.handleClickOnCloseButton()}handleClickOnCloseButton(){this.isDialogSupported?this.overlay.close():this.overlay.removeAttribute("open");var e=c("iframe",this.overlayMedia);e&&e.remove();var t=c("video",this.overlayMedia);t&&t.pause(),this.focusTrap.deactivate(),this.galleryItems.forEach(e=>{var t=c("img",e);t&&t.classList.add("ecl-gallery__image")}),this.selectedItem.focus(),document.body.classList.remove("ecl-u-disablescroll")}handleKeyPressOnItem(e){32===e.keyCode&&this.handleClickOnItem(e)}handleClickOnViewAll(e){if(e.preventDefault(),this.viewAll)if(this.viewAll.expanded)delete this.viewAll.expanded,this.checkScreen(),this.hideItems(),this.viewAll.textContent=this.viewAllLabel;else{this.viewAll.expanded=!0,this.viewAll.textContent=this.viewAllLabelExpanded;var t=this.galleryItems.filter(e=>e.parentNode.classList.contains("ecl-gallery__item--hidden"));t.length>0&&(t.forEach(e=>{e.parentNode.classList.remove("ecl-gallery__item--hidden")}),t[0].focus())}}handleClickOnItem(e){e.preventDefault(),document.body.classList.add("ecl-u-disablescroll"),this.isDialogSupported?this.overlay.showModal():this.overlay.setAttribute("open",""),this.updateOverlay(e.currentTarget),this.focusTrap.activate()}preventClickOnItem(e){e.preventDefault(),e.stopPropagation()}handleClickOnPreviousButton(){var e=+this.selectedItem.getAttribute("data-ecl-gallery-item-id")-1;e<0&&(e=this.galleryItems.length-1);var t=c("video",this.selectedItem);return t&&t.pause(),this.updateOverlay(this.galleryItems[e]),this.selectedItem=this.galleryItems[e],this}handleClickOnNextButton(){var e=+this.selectedItem.getAttribute("data-ecl-gallery-item-id")+1;e>=this.galleryItems.length&&(e=0);var t=c("video",this.selectedItem);return t&&t.pause(),this.updateOverlay(this.galleryItems[e]),this.selectedItem=this.galleryItems[e],this}}class ue{static autoInit(e,t){var i=(void 0===t?{}:t).INDICATOR,s=new ue(e,void 0===i?{}:i);return s.init(),e.ECLIndicator=s,s}constructor(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.value=0,this.increment=this.increment.bind(this),this.decrement=this.decrement.bind(this),this.getValue=this.getValue.bind(this),this.setValue=this.setValue.bind(this),this.clearValue=this.clearValue.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.getValue(),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element)}getValue(){""===this.element.innerHTML.trim()?this.value="":this.value=parseInt(this.element.innerHTML,10)}increment(e){return void 0===e&&(e=1),""!==this.value&&!Number.isNaN(this.value)&&(this.value+=e,this.element.innerHTML=this.value,!0)}decrement(e){return void 0===e&&(e=1),""!==this.value&&!Number.isNaN(this.value)&&(this.value-=e,this.element.innerHTML=this.value,!0)}setValue(e){return!Number.isNaN(e)&&(this.value=e,this.element.innerHTML=this.value,!0)}clearValue(){this.value="",this.element.innerHTML=this.value}}var me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ve,ge={exports:{}};
16
+ /*!
17
+ * Stickyfill – `position: sticky` polyfill
18
+ * v. 2.1.0 | https://github.com/wilddeer/stickyfill
19
+ * MIT License
20
+ */var be,fe,ye=(ve||(ve=1,be=ge,function(e,t){var i,s=function(){function e(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,i,s){return i&&e(t.prototype,i),s&&e(t,s),t}}(),n=!1,a=void 0!==e;a&&e.getComputedStyle?(i=t.createElement("div"),["","-webkit-","-moz-","-ms-"].some(function(e){try{i.style.position=e+"sticky"}catch(e){}return""!=i.style.position})&&(n=!0)):n=!0;var r=!1,l="undefined"!=typeof ShadowRoot,o={top:null,left:null},h=[];function c(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}function d(e){return parseFloat(e)||0}function u(e){for(var t=0;e;)t+=e.offsetTop,e=e.offsetParent;return t}var m=function(){function i(e){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),!(e instanceof HTMLElement))throw new Error("First argument must be HTMLElement");if(h.some(function(t){return t._node===e}))throw new Error("Stickyfill is already applied to this node");this._node=e,this._stickyMode=null,this._active=!1,h.push(this),this.refresh()}return s(i,[{key:"refresh",value:function(){if(!n&&!this._removed){this._active&&this._deactivate();var i=this._node,s=getComputedStyle(i),a={position:s.position,top:s.top,display:s.display,marginTop:s.marginTop,marginBottom:s.marginBottom,marginLeft:s.marginLeft,marginRight:s.marginRight,cssFloat:s.cssFloat};if(!isNaN(parseFloat(a.top))&&"table-cell"!=a.display&&"none"!=a.display){this._active=!0;var r=i.style.position;"sticky"!=s.position&&"-webkit-sticky"!=s.position||(i.style.position="static");var o=i.parentNode,h=l&&o instanceof ShadowRoot?o.host:o,m=i.getBoundingClientRect(),p=h.getBoundingClientRect(),v=getComputedStyle(h);this._parent={node:h,styles:{position:h.style.position},offsetHeight:h.offsetHeight},this._offsetToWindow={left:m.left,right:t.documentElement.clientWidth-m.right},this._offsetToParent={top:m.top-p.top-d(v.borderTopWidth),left:m.left-p.left-d(v.borderLeftWidth),right:-m.right+p.right-d(v.borderRightWidth)},this._styles={position:r,top:i.style.top,bottom:i.style.bottom,left:i.style.left,right:i.style.right,width:i.style.width,marginTop:i.style.marginTop,marginLeft:i.style.marginLeft,marginRight:i.style.marginRight};var g=d(a.top);this._limits={start:m.top+e.pageYOffset-g,end:p.top+e.pageYOffset+h.offsetHeight-d(v.borderBottomWidth)-i.offsetHeight-g-d(a.marginBottom)};var b=v.position;"absolute"!=b&&"relative"!=b&&(h.style.position="relative"),this._recalcPosition();var f=this._clone={};f.node=t.createElement("div"),c(f.node.style,{width:m.right-m.left+"px",height:m.bottom-m.top+"px",marginTop:a.marginTop,marginBottom:a.marginBottom,marginLeft:a.marginLeft,marginRight:a.marginRight,cssFloat:a.cssFloat,padding:0,border:0,borderSpacing:0,fontSize:"1em",position:"static"}),o.insertBefore(f.node,i),f.docOffsetTop=u(f.node)}}}},{key:"_recalcPosition",value:function(){if(this._active&&!this._removed){var e=o.top<=this._limits.start?"start":o.top>=this._limits.end?"end":"middle";if(this._stickyMode!=e){switch(e){case"start":c(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:this._offsetToParent.top+"px",bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0});break;case"middle":c(this._node.style,{position:"fixed",left:this._offsetToWindow.left+"px",right:this._offsetToWindow.right+"px",top:this._styles.top,bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0});break;case"end":c(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:"auto",bottom:0,width:"auto",marginLeft:0,marginRight:0})}this._stickyMode=e}}}},{key:"_fastCheck",value:function(){this._active&&!this._removed&&(Math.abs(u(this._clone.node)-this._clone.docOffsetTop)>1||Math.abs(this._parent.node.offsetHeight-this._parent.offsetHeight)>1)&&this.refresh()}},{key:"_deactivate",value:function(){var e=this;this._active&&!this._removed&&(this._clone.node.parentNode.removeChild(this._clone.node),delete this._clone,c(this._node.style,this._styles),delete this._styles,h.some(function(t){return t!==e&&t._parent&&t._parent.node===e._parent.node})||c(this._parent.node.style,this._parent.styles),delete this._parent,this._stickyMode=null,this._active=!1,delete this._offsetToWindow,delete this._offsetToParent,delete this._limits)}},{key:"remove",value:function(){var e=this;this._deactivate(),h.some(function(t,i){if(t._node===e._node)return h.splice(i,1),!0}),this._removed=!0}}]),i}(),p={stickies:h,Sticky:m,forceSticky:function(){n=!1,v(),this.refreshAll()},addOne:function(e){if(!(e instanceof HTMLElement)){if(!e.length||!e[0])return;e=e[0]}for(var t=0;t<h.length;t++)if(h[t]._node===e)return h[t];return new m(e)},add:function(e){if(e instanceof HTMLElement&&(e=[e]),e.length){for(var t=[],i=function(i){var s=e[i];return s instanceof HTMLElement?h.some(function(e){if(e._node===s)return t.push(e),!0})?"continue":void t.push(new m(s)):(t.push(void 0),"continue")},s=0;s<e.length;s++)i(s);return t}},refreshAll:function(){h.forEach(function(e){return e.refresh()})},removeOne:function(e){if(!(e instanceof HTMLElement)){if(!e.length||!e[0])return;e=e[0]}h.some(function(t){if(t._node===e)return t.remove(),!0})},remove:function(e){if(e instanceof HTMLElement&&(e=[e]),e.length)for(var t=function(t){var i=e[t];h.some(function(e){if(e._node===i)return e.remove(),!0})},i=0;i<e.length;i++)t(i)},removeAll:function(){for(;h.length;)h[0].remove()}};function v(){if(!r){r=!0,a(),e.addEventListener("scroll",a),e.addEventListener("resize",p.refreshAll),e.addEventListener("orientationchange",p.refreshAll);var i=void 0,s=void 0,n=void 0;"hidden"in t?(s="hidden",n="visibilitychange"):"webkitHidden"in t&&(s="webkitHidden",n="webkitvisibilitychange"),n?(t[s]||l(),t.addEventListener(n,function(){t[s]?clearInterval(i):l()})):l()}function a(){e.pageXOffset!=o.left?(o.top=e.pageYOffset,o.left=e.pageXOffset,p.refreshAll()):e.pageYOffset!=o.top&&(o.top=e.pageYOffset,o.left=e.pageXOffset,h.forEach(function(e){return e._recalcPosition()}))}function l(){i=setInterval(function(){h.forEach(function(e){return e._fastCheck()})},500)}}n||v(),be.exports?be.exports=p:a&&(e.Stickyfill=p)}(window,document)),ge.exports),Le=pe(ye),ke={exports:{}},Ee=ke.exports;var Ce=(fe||(fe=1,function(e){var t;Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(this))return null;do{if(t.matches(e))return t;t=t.parentElement}while(null!==t);return null}),function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}e.prototype=window.Event.prototype,window.CustomEvent=e}(),t=void 0!==me?me:"undefined"!=typeof window?window:Ee,e.exports=function(e){var t={navClass:"active",contentClass:"active",nested:!1,nestedClass:"active",offset:0,reflow:!1,events:!0},i=function(){var e={};return Array.prototype.forEach.call(arguments,function(t){for(var i in t){if(!t.hasOwnProperty(i))return;e[i]=t[i]}}),e},s=function(e,t,i){if(i.settings.events){var s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:i});t.dispatchEvent(s)}},n=function(e){var t=0;if(e.offsetParent)for(;e;)t+=e.offsetTop,e=e.offsetParent;return t>=0?t:0},a=function(e){e&&e.sort(function(e,t){return n(e.content)<n(t.content)?-1:1})},r=function(e){return"function"==typeof e.offset?parseFloat(e.offset()):parseFloat(e.offset)},l=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},o=function(t,i,s){var n=t.getBoundingClientRect(),a=r(i);return s?parseInt(n.bottom,10)<(e.innerHeight||document.documentElement.clientHeight):parseInt(n.top,10)<=a},h=function(){return e.innerHeight+e.pageYOffset>=l()},c=function(e,t){return!(!h()||!o(e.content,t,!0))},d=function(e,t){var i=e[e.length-1];if(c(i,t))return i;for(var s=e.length-1;s>=0;s--)if(o(e[s].content,t))return e[s]},u=function(e,t){if(t.nested&&e.parentNode){var i=e.parentNode.closest("li");i&&(i.classList.remove(t.nestedClass),u(i,t))}},m=function(e,t){if(e){var i=e.nav.closest("li");i&&(i.classList.remove(t.navClass),e.content.classList.remove(t.contentClass),u(i,t),s("gumshoeDeactivate",i,{link:e.nav,content:e.content,settings:t}))}},p=function(e,t){if(t.nested){var i=e.parentNode.closest("li");i&&(i.classList.add(t.nestedClass),p(i,t))}},v=function(e,t){if(e){var i=e.nav.closest("li");i&&(i.classList.add(t.navClass),e.content.classList.add(t.contentClass),p(i,t),s("gumshoeActivate",i,{link:e.nav,content:e.content,settings:t}))}};return function(s,n){var r,l,o,h,c,u={setup:function(){r=document.querySelectorAll(s),l=[],Array.prototype.forEach.call(r,function(e){var t=document.getElementById(decodeURIComponent(e.hash.substr(1)));t&&l.push({nav:e,content:t})}),a(l)},detect:function(){var e=d(l,c);e?o&&e.content===o.content||(m(o,c),v(e,c),o=e):o&&(m(o,c),o=null)}},p=function(t){h&&e.cancelAnimationFrame(h),h=e.requestAnimationFrame(u.detect)},g=function(t){h&&e.cancelAnimationFrame(h),h=e.requestAnimationFrame(function(){a(l),u.detect()})};return u.destroy=function(){o&&m(o,c),e.removeEventListener("scroll",p,!1),c.reflow&&e.removeEventListener("resize",g,!1),l=null,r=null,o=null,h=null,c=null},c=i(t,n||{}),u.setup(),u.detect(),e.addEventListener("scroll",p,!1),c.reflow&&e.addEventListener("resize",g,!1),u}}(t)}(ke)),ke.exports),we=pe(Ce);class Se{static autoInit(e,t){var i=(void 0===t?{}:t).INPAGE_NAVIGATION,s=new Se(e,void 0===i?{}:i);return s.init(),e.ECLInpageNavigation=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.stickySelector,n=void 0===s?"[data-ecl-inpage-navigation]":s,a=i.containerSelector,r=void 0===a?"[data-ecl-inpage-navigation-container]":a,l=i.inPageList,o=void 0===l?"[data-ecl-inpage-navigation-list]":l,h=i.spySelector,c=void 0===h?"[data-ecl-inpage-navigation-link]":h,d=i.toggleSelector,m=void 0===d?"[data-ecl-inpage-navigation-trigger]":d,p=i.linksSelector,v=void 0===p?"[data-ecl-inpage-navigation-link]":p,g=i.spyActiveContainer,b=void 0===g?"ecl-inpage-navigation--visible":g,f=i.spyOffset,y=void 0===f?80:f,L=i.spyClass,k=void 0===L?"ecl-inpage-navigation__item--active":L,E=i.spyTrigger,C=void 0===E?"[data-ecl-inpage-navigation-trigger-current]":E,w=i.attachClickListener,S=void 0===w||w,A=i.attachResizeListener,_=void 0===A||A,x=i.attachScrollListener,O=void 0===x||x,T=i.attachKeyListener,M=void 0===T||T,P=i.contentClass,I=void 0===P?"ecl-inpage-navigation__heading--active":P;if(this.supportedEvents=["onToggle","onClick"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new u,this.attachClickListener=S,this.attachKeyListener=M,this.attachResizeListener=_,this.attachScrollListener=O,this.stickySelector=n,this.containerSelector=r,this.toggleSelector=m,this.linksSelector=v,this.inPageList=o,this.spyActiveContainer=b,this.spySelector=c,this.spyOffset=y,this.spyClass=k,this.spyTrigger=C,this.contentClass=I,this.gumshoe=null,this.observer=null,this.stickyObserver=null,this.isExpanded=!1,this.toggleElement=null,this.navLinks=null,this.resizeTimer=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleClickOnLink=this.handleClickOnLink.bind(this),this.handleKeyboard=this.handleKeyboard.bind(this),this.initScrollSpy=this.initScrollSpy.bind(this),this.initObserver=this.initObserver.bind(this),this.activateScrollSpy=this.activateScrollSpy.bind(this),this.deactivateScrollSpy=this.deactivateScrollSpy.bind(this),this.destroySticky=this.destroySticky.bind(this),this.destroyScrollSpy=this.destroyScrollSpy.bind(this),this.destroyObserver=this.destroyObserver.bind(this),this.openList=this.openList.bind(this),this.closeList=this.closeList.bind(this),this.setListHeight=this.setListHeight.bind(this),this.handleResize=this.handleResize.bind(this)}initSticky(){this.stickyInstance=new Le.Sticky(this.element)}destroySticky(){this.stickyInstance&&this.stickyInstance.remove()}initScrollSpy(){if(this.gumshoe=new we(this.spySelector,{navClass:this.spyClass,contentClass:this.contentClass,offset:this.spyOffset,reflow:!0}),document.addEventListener("gumshoeActivate",this.activateScrollSpy,!1),document.addEventListener("gumshoeDeactivate",this.deactivateScrollSpy,!1),"IntersectionObserver"in window){var e=c(this.containerSelector);if(e){var t=0,i=0,s=!1;this.stickyObserver=new IntersectionObserver(e=>{if(e&&e[0]){var n=e[0],a=n.boundingClientRect.y,r=n.intersectionRatio,l=n.isIntersecting;if(!s)return s=!0,t=a,void(i=r);a<t?r>i&&l||this.element.classList.remove(this.spyActiveContainer):a>t&&l&&r>i&&this.element.classList.add(this.spyActiveContainer),t=a,i=r}},{root:null}),this.stickyObserver.observe(e)}}}activateScrollSpy(e){var t=c(this.spyTrigger);this.element.classList.add(this.spyActiveContainer),t.textContent=e.detail.content.textContent}deactivateScrollSpy(){var e=c(this.spyTrigger);this.element.classList.remove(this.spyActiveContainer),e.innerHTML=""}destroyScrollSpy(){this.stickyObserver&&this.stickyObserver.disconnect(),document.removeEventListener("gumshoeActivate",this.activateScrollSpy,!1),document.removeEventListener("gumshoeDeactivate",this.deactivateScrollSpy,!1),this.gumshoe.destroy()}initObserver(){if("MutationObserver"in window){var e=this;this.observer=new MutationObserver(t=>{var i=c(".ecl-col-l-9"),s=c("[data-ecl-inpage-navigation-list]");t.forEach(t=>{t&&t.target&&t.target.classList&&!t.target.classList.contains("ecl-inpage-navigation__trigger-current")&&(t.addedNodes.length>0&&[].slice.call(t.addedNodes).forEach(e=>{if("H2"===e.tagName&&e.id){var t=h("h2[id]",i).findIndex(t=>t.id===e.id);e.setAttribute("tabindex","-1");var n=s.childNodes[t-1].cloneNode(!0);n.childNodes[0].textContent=e.textContent,n.childNodes[0].href="#"+e.id,s.childNodes[t-1].after(n)}}),t.removedNodes.length>0&&[].slice.call(t.removedNodes).forEach(e=>{"H2"===e.tagName&&e.id&&s.childNodes.forEach(t=>{-1!==t.childNodes[0].href.indexOf(e.id)&&t.remove()})}),e.update())})}),this.observer.observe(document,{subtree:!0,childList:!0})}}destroyObserver(){this.observer&&this.observer.disconnect()}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.toggleElement=c(this.toggleSelector,this.element),this.navLinks=h(this.linksSelector,this.element),this.navLinksMap=new Map,this.navLinks.forEach(e=>{var t=e.getAttribute("href");if(t){var i=t.indexOf("#");if(-1!==i){var s=t.slice(i+1),n=c("#"+s,document);n&&(n.setAttribute("tabindex","-1"),n.classList.add("ecl-inpage-navigation__heading"),this.navLinksMap.set(e,n))}}}),this.currentList=c(this.inPageList,this.element),this.direction=getComputedStyle(this.element).direction,"rtl"===this.direction&&this.element.classList.add("ecl-inpage-navigation--rtl"),this.setListHeight(),this.initSticky(this.element),this.initScrollSpy(),this.initObserver(),this.attachClickListener&&this.toggleElement&&this.toggleElement.addEventListener("click",this.handleClickOnToggle),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.attachScrollListener&&window.addEventListener("scroll",this.handleResize),this.attachClickListener&&this.navLinks&&(this.navLinks.forEach(e=>e.addEventListener("click",this.handleClickOnLink)),this.element.addEventListener("keydown",this.handleShiftTab),this.toggleElement.addEventListener("click",this.handleClickOnToggle)),this.attachKeyListener&&this.element.addEventListener("keydown",this.handleKeyboard),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}update(){this.gumshoe.setup()}openList(){this.currentList.classList.add("ecl-inpage-navigation__list--visible"),this.toggleElement.setAttribute("aria-expanded","true")}closeList(){this.currentList.classList.remove("ecl-inpage-navigation__list--visible"),this.toggleElement.setAttribute("aria-expanded","false")}setListHeight(){var e=window.innerHeight,t=window.innerWidth,i=c(".ecl-inpage-navigation__title",this.element),s=0;setTimeout(()=>{if(t<996){var n=this.toggleElement.parentElement;n&&(s=n.getBoundingClientRect().bottom+parseFloat(window.getComputedStyle(n).marginBottom))}else s=i?i.getBoundingClientRect().bottom:this.element.getBoundingClientRect().top;var a=e-s;a>0&&(this.currentList.style.maxHeight=a+"px")},100)}handleClickOnToggle(e){if(e.preventDefault(),this.toggleElement){if(this.isExpanded="true"===this.toggleElement.getAttribute("aria-expanded"),this.toggleElement.setAttribute("aria-expanded",this.isExpanded?"false":"true"),this.isExpanded)this.closeList(),this.toggleElement.focus();else if(this.setListHeight(),this.openList(),this.navLinks&&this.navLinks.length>0){var t=c("."+this.spyClass,this.element);t?t.firstElementChild.focus():this.navLinks[0].focus()}this.trigger("onToggle",{isExpanded:this.isExpanded})}}handleClickOnLink(e){var t=this.navLinksMap.get(e.target);this.closeList(),t&&t.focus();var i={target:t||e};this.trigger("onClick",i)}handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.setListHeight()},100)}handleKeyboard(e){var t=e.target;if("Escape"===e.key&&(e.preventDefault(),this.handleClickOnToggle(e)),"Tab"===e.key&&t===this.navLinks.at(-1)&&this.closeList(),"ArrowUp"===e.key)if(e.preventDefault(),t===this.navLinks[0])this.navLinks.at(-1).focus();else{var i=t.parentElement.previousSibling;if(i&&i.classList.contains("ecl-inpage-navigation__item")){var s=c(this.linksSelector,i);s&&s.focus()}}if("ArrowDown"===e.key)if(e.preventDefault(),t===this.toggleElement){var n=this.navLinks.find(e=>e.parentElement.classList.contains(this.spyClass));n?this.navLinksMap.get(n).focus():[...this.navLinksMap.values()][0].focus()}else{var a=t.parentElement.nextSibling;if(a&&a.classList.contains("ecl-inpage-navigation__item")){var r=c(this.linksSelector,a);r&&r.focus()}else this.navLinks[0].focus()}}destroy(){this.attachClickListener&&this.toggleElement&&this.toggleElement.removeEventListener("click",this.handleClickOnToggle),this.attachClickListener&&this.navLinks&&this.navLinks.forEach(e=>e.removeEventListener("click",this.handleClickOnLink)),this.attachKeyListener&&this.element.removeEventListener("keydown",this.handleKeyboard),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.destroyScrollSpy(),this.destroySticky(),this.destroyObserver(),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}}class Ae{static autoInit(e,t){var i=(void 0===t?{}:t).MEDIA_CONTAINER,s=new Ae(e,void 0===i?{}:i);return s.init(),e.ECLMediaContainer=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.iframeSelector,n=void 0===s?"iframe":s,a=i.useAutomaticRatio,r=void 0===a||a,l=i.videoTitleSelector,o=void 0===l?"data-ecl-media-container-video-title":l,h=i.videoPlay,d=void 0===h?"[data-ecl-media-container-play]":h,m=i.videoPause,p=void 0===m?"[data-ecl-media-container-pause]":m,v=i.mediaVideo,g=void 0===v?"[data-ecl-media-container-video]":v;if(this.supportedEvents=["onPlayClick","onPauseClick"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new u,this.iframeSelector=n,this.useAutomaticRatio=r,this.videoTitleSelector=o,this.mediaVideo=c(g,this.element),this.videoPlay=c(d,this.element),this.videoPause=c(p,this.element),this.iframe=null,this.videoTitle="",this.calculateRatio=this.calculateRatio.bind(this),this.handleParameters=this.handleParameters.bind(this),this.handlePauseClick=this.handlePauseClick.bind(this),this.handlePlayClick=this.handlePlayClick.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.videoTitle=this.element.getAttribute(this.videoTitleSelector);var e=c(".ecl-media-container__media",this.element);e&&!/ecl-media-container__media--ratio/.test(e.className)&&(this.iframe=c(this.iframeSelector,this.element),this.iframe&&(this.handleParameters(),this.useAutomaticRatio&&this.calculateRatio())),this.videoPlay&&(this.videoPlay.addEventListener("click",e=>this.handlePlayClick(e)),this.videoPlay.style.display="none"),this.videoPause&&(this.videoPause.addEventListener("click",e=>this.handlePauseClick(e)),this.videoPause.style.display="flex"),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element)),this.videoPlay&&(this.videoPlay.removeEventListener("click",this.handlePlayClick),this.videoPlay.style.display="none"),this.videoPause&&(this.videoPause.remveEventListener("click",this.handlePauseClick),this.videoPause.style.display="flex")}handleParameters(){var e=new URL(this.iframe.src);e.host.includes("youtube")&&(this.iframe.src=e),this.videoTitle&&this.iframe.setAttribute("title",this.videoTitle)}calculateRatio(){var e=this.iframe.width,t=this.iframe.height;e&&t||(e=this.iframe.offsetWidth,t=this.iframe.offsetHeight),this.iframe.style.aspectRatio=e+"/"+t}handlePlayClick(e){this.mediaVideo&&this.mediaVideo.play(),this.videoPlay.style.display="none",this.videoPause&&(this.videoPause.style.display="flex",this.videoPause.focus());var t=r({},e,{status:"Playing"});this.trigger("onPlayClick",t)}handlePauseClick(e){this.mediaVideo&&this.mediaVideo.pause(),this.videoPause.style.display="none",this.videoPlay&&(this.videoPlay.style.display="flex",this.videoPlay.focus());var t=r({},e,{status:"Paused"});this.trigger("onPauseClick",t)}}class _e{static autoInit(e,t){var i=(void 0===t?{}:t).MEGA_MENU,s=new _e(e,void 0===i?{}:i);return s.init(),e.ECLMegaMenu=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.openSelector,n=void 0===s?"[data-ecl-mega-menu-open]":s,a=i.backSelector,r=void 0===a?"[data-ecl-mega-menu-back]":a,l=i.innerSelector,o=void 0===l?"[data-ecl-mega-menu-inner]":l,h=i.itemSelector,c=void 0===h?"[data-ecl-mega-menu-item]":h,d=i.linkSelector,m=void 0===d?"[data-ecl-mega-menu-link]":d,p=i.subLinkSelector,v=void 0===p?"[data-ecl-mega-menu-sublink]":p,g=i.megaSelector,b=void 0===g?"[data-ecl-mega-menu-mega]":g,f=i.containerSelector,y=void 0===f?"[data-ecl-has-container]":f,L=i.subItemSelector,k=void 0===L?"[data-ecl-mega-menu-subitem]":L,E=i.featuredAttribute,C=void 0===E?"[data-ecl-mega-menu-featured]":E,w=i.featuredLinkAttribute,S=void 0===w?"[data-ecl-mega-menu-featured-link]":w,A=i.labelOpenAttribute,_=void 0===A?"data-ecl-mega-menu-label-open":A,x=i.labelCloseAttribute,O=void 0===x?"data-ecl-mega-menu-label-close":x,T=i.attachClickListener,M=void 0===T||T,P=i.attachFocusListener,I=void 0===P||P,B=i.attachKeyListener,N=void 0===B||B,D=i.attachResizeListener,F=void 0===D||D;if(this.supportedEvents=["onOpen","onClose"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new u,this.openSelector=n,this.backSelector=r,this.innerSelector=o,this.itemSelector=c,this.linkSelector=m,this.subLinkSelector=v,this.megaSelector=b,this.subItemSelector=k,this.containerSelector=y,this.labelOpenAttribute=_,this.labelCloseAttribute=O,this.attachClickListener=M,this.attachFocusListener=I,this.attachKeyListener=N,this.attachResizeListener=F,this.featuredAttribute=C,this.featuredLinkAttribute=S,this.direction="ltr",this.open=null,this.toggleLabel=null,this.back=null,this.backItemLevel1=null,this.backItemLevel2=null,this.inner=null,this.items=null,this.links=null,this.isOpen=!1,this.resizeTimer=null,this.wrappers=null,this.isKeyEvent=!1,this.isDesktop=!1,this.isLarge=!1,this.lastVisibleItem=null,this.menuOverlay=null,this.currentItem=null,this.totalItemsWidth=0,this.breakpointDesktop=1140,this.breakpointLarge=1368,this.openPanel={num:0,item:{}},this.infoLinks=null,this.seeAllLinks=null,this.featuredLinks=null,this.handleClickOnOpen=this.handleClickOnOpen.bind(this),this.handleClickOnClose=this.handleClickOnClose.bind(this),this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleClickOnBack=this.handleClickOnBack.bind(this),this.handleClickGlobal=this.handleClickGlobal.bind(this),this.handleClickOnItem=this.handleClickOnItem.bind(this),this.handleClickOnSubitem=this.handleClickOnSubitem.bind(this),this.handleFocusOut=this.handleFocusOut.bind(this),this.handleKeyboard=this.handleKeyboard.bind(this),this.handleKeyboardGlobal=this.handleKeyboardGlobal.bind(this),this.handleResize=this.handleResize.bind(this),this.closeOpenDropdown=this.closeOpenDropdown.bind(this),this.checkDropdownHeight=this.checkDropdownHeight.bind(this),this.positionMenuOverlay=this.positionMenuOverlay.bind(this),this.resetStyles=this.resetStyles.bind(this),this.handleFirstPanel=this.handleFirstPanel.bind(this),this.handleSecondPanel=this.handleSecondPanel.bind(this),this.disableScroll=this.disableScroll.bind(this),this.enableScroll=this.enableScroll.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.open=c(this.openSelector,this.element),this.back=c(this.backSelector,this.element),this.inner=c(this.innerSelector,this.element),this.btnPrevious=c(this.buttonPreviousSelector,this.element),this.btnNext=c(this.buttonNextSelector,this.element),this.items=h(this.itemSelector,this.element),this.subItems=h(this.subItemSelector,this.element),this.links=h(this.linkSelector,this.element),this.header=c(".ecl-site-header",document),this.headerBanner=c(".ecl-site-header__banner",document),this.wrappers=h(".ecl-mega-menu__wrapper",this.element),this.headerNotification=c(".ecl-site-header__notification",document),this.toggleLabel=c(".ecl-button__label",this.open),this.menuOverlay=c(".ecl-mega-menu__overlay",this.element),this.isDesktop=window.innerWidth>=this.breakpointDesktop,this.attachClickListener&&(this.open&&this.open.addEventListener("click",this.handleClickOnToggle),this.back&&(this.back.addEventListener("click",this.handleClickOnBack),this.back.addEventListener("keyup",this.handleKeyboard)),this.attachClickListener&&document.addEventListener("click",this.handleClickGlobal)),this.links&&this.links.forEach(e=>{this.attachFocusListener&&e.addEventListener("focusout",this.handleFocusOut),this.attachKeyListener&&e.addEventListener("keyup",this.handleKeyboard)}),this.subItems&&this.subItems.forEach(e=>{var t=c(".ecl-mega-menu__sublink",e);this.attachKeyListener&&t&&(t.addEventListener("click",this.handleClickOnSubitem),t.addEventListener("keyup",this.handleKeyboard)),this.attachFocusListener&&t&&t.addEventListener("focusout",this.handleFocusOut)}),this.infoLinks=h(".ecl-mega-menu__info-link a",this.element),this.infoLinks.length>0&&this.infoLinks.forEach(e=>{this.attachKeyListener&&e.addEventListener("keyup",this.handleKeyboard),this.attachFocusListener&&e.addEventListener("blur",this.handleFocusOut)}),this.seeAllLinks=h(".ecl-mega-menu__see-all a",this.element),this.seeAllLinks.length>0&&this.seeAllLinks.forEach(e=>{this.attachKeyListener&&e.addEventListener("keyup",this.handleKeyboard),this.attachFocusListener&&e.addEventListener("blur",this.handleFocusOut)}),this.featuredLinks=h(this.featuredLinkAttribute,this.element),this.featuredLinks.length>0&&this.attachFocusListener&&this.featuredLinks.forEach(e=>{e.addEventListener("blur",this.handleFocusOut)}),this.attachKeyListener&&document.addEventListener("keyup",this.handleKeyboardGlobal),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.items&&this.items.forEach(e=>{if(this.totalItemsWidth+=e.offsetWidth,e.hasAttribute("data-ecl-has-children")||e.hasAttribute("data-ecl-has-container")){var t=c(this.linkSelector,e);this.attachClickListener&&t&&t.addEventListener("click",this.handleClickOnItem)}}),this.focusTrap=ce(this.element,{onActivate:()=>this.element.classList.add("ecl-mega-menu-trap-is-active"),onDeactivate:()=>this.element.classList.remove("ecl-mega-menu-trap-is-active")}),this.handleResize(),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.attachClickListener&&(this.open&&this.open.removeEventListener("click",this.handleClickOnToggle),this.back&&this.back.removeEventListener("click",this.handleClickOnBack),document.removeEventListener("click",this.handleClickGlobal)),this.links&&this.links.forEach(e=>{this.attachClickListener&&e.removeEventListener("click",this.handleClickOnItem),this.attachFocusListener&&e.removeEventListener("focusout",this.handleFocusOut),this.attachKeyListener&&e.removeEventListener("keyup",this.handleKeyboard)}),this.subItems&&this.subItems.forEach(e=>{var t=c(".ecl-mega-menu__sublink",e);this.attachKeyListener&&t&&t.removeEventListener("keyup",this.handleKeyboard),this.attachClickListener&&t&&t.removeEventListener("click",this.handleClickOnSubitem),this.attachFocusListener&&t&&t.removeEventListener("focusout",this.handleFocusOut)}),this.infoLinks&&this.infoLinks.forEach(e=>{this.attachFocusListener&&e.removeEventListener("blur",this.handleFocusOut),this.attachKeyListener&&e.removeEventListener("keyup",this.handleKeyboard)}),this.seeAllLinks&&this.seeAllLinks.forEach(e=>{this.attachFocusListener&&e.removeEventListener("blur",this.handleFocusOut),this.attachKeyListener&&e.removeEventListener("keyup",this.handleKeyboard)}),this.featuredLinks&&this.attachFocusListener&&this.featuredLinks.forEach(e=>{e.removeEventListener("blur",this.handleFocusOut)}),this.attachKeyListener&&document.removeEventListener("keyup",this.handleKeyboardGlobal),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.closeOpenDropdown(),this.enableScroll(),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}disableScroll(){document.body.classList.add("ecl-mega-menu-prevent-scroll")}enableScroll(){document.body.classList.remove("ecl-mega-menu-prevent-scroll")}resetStyles(e,t){var i=h(".ecl-mega-menu__info",this.element),s=h(".ecl-mega-menu__sublist",this.element);if(s&&"mobile"===e){var n=h("[data-ecl-mega-menu-mega]",this.element),a=h("[data-ecl-mega-menu-featured]",this.element);if(a.length&&n.push(...a),n.forEach(e=>{e.style.height=""}),s.length&&s.forEach(e=>{e.style.height=""}),this.wrappers&&this.wrappers.forEach(e=>{e.style.top="",e.style.height=""}),this.openPanel.num>0&&this.header&&(this.headerBanner&&(this.headerBanner.style.display="none"),this.headerNotification&&(this.headerNotification.style.display="none")),2===this.openPanel.num){var r=c(".ecl-mega-menu__subitem--expanded",this.element);r&&r.firstChild.classList.add("ecl-mega-menu__parent-link");var l=this.openPanel.item;l.parentNode.childNodes.forEach(e=>{e!==l&&(e.style.display="none")})}}else if(s&&"desktop"===e&&!t){s.forEach(e=>{e.classList.remove("ecl-mega-menu__sublist--scrollable"),e.childNodes.forEach(e=>{e.style.display=""})}),i.forEach(e=>{e.style.top=""});var o=[],d=c(".ecl-mega-menu__subitem--expanded",this.element);d&&(d.firstElementChild.classList.remove("ecl-mega-menu__parent-link"),o.push(d));var u=c(".ecl-mega-menu__item--expanded",this.element);u&&o.push(u),o.length>0?o.forEach(e=>{this.checkDropdownHeight(e)}):(this.element.removeAttribute("data-expanded"),this.open.setAttribute("aria-expanded","false"),this.enableScroll())}else if("desktop"===e&&t){var m=c(".ecl-mega-menu__subitem--expanded",this.element);m&&m.firstElementChild.classList.remove("ecl-mega-menu__parent-link"),i.forEach(e=>{e.style.height=""})}"desktop"===e&&this.header&&(this.headerBanner&&(this.headerBanner.style.display=""),this.headerNotification&&(this.headerNotification.style.display=""))}handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{var e=window.innerWidth;void 0!==this.prevScreenWidth&&((this.prevScreenWidth<=this.breakpointDesktop&&e>this.breakpointDesktop||this.prevScreenWidth>this.breakpointDesktop&&e<=this.breakpointDesktop)&&this.resetStyles(e>this.breakpointDesktop?"desktop":"mobile"),this.prevScreenWidth>=this.breakpointLarge&&e>=this.breakpointDesktop&&this.resetStyles("desktop",!0));this.isDesktop=window.innerWidth>=this.breakpointDesktop,this.isLarge=window.innerWidth>=this.breakpointLarge,this.prevScreenWidth=e,this.direction=getComputedStyle(this.element).direction,"rtl"===this.direction?this.element.classList.add("ecl-mega-menu--rtl"):this.element.classList.remove("ecl-mega-menu--rtl");var t=c(".ecl-mega-menu__item--expanded",this.element);t&&this.isDesktop&&this.checkDropdownHeight(t),this.positionMenuOverlay()},200)}checkDropdownHeight(e,t){void 0===t&&(t=!0);var i=c(".ecl-mega-menu__info",e),s=c(".ecl-mega-menu__mega",e),n=c(".ecl-mega-menu__subitem--expanded",e),a=null;n&&(a=c(".ecl-mega-menu__mega--level-2",n)),s&&this.isDesktop&&t&&(s.style.opacity=0),i&&this.isDesktop&&t&&(i.style.opacity=0),a&&this.isDesktop&&t&&(a.opacity=0),setTimeout(()=>{var t=window.innerHeight,r=0;if(this.isDesktop){var l=[],o=0,d=null,u=null,m=0,p=0,v=0,g=0;if(i&&(i.style.height="",r=i.scrollHeight+16),i&&this.isLarge&&l.push(r),s){s.style.height="";var b=c(".ecl-mega-menu__see-all",s);b&&(b.style.top=0);var f=s.getBoundingClientRect().top,y=c(".ecl-mega-menu__sublist",s);if(y){var L=y.children;y.closest(".ecl-mega-menu__item").classList.contains("ecl-mega-menu__item--one-level-only")?L.length>0&&(m=y.offsetHeight):L.length>0&&Array.from(L).forEach(e=>{m+=e.getBoundingClientRect().height}),l.push(m)}else{if(e.classList.contains("ecl-mega-menu__item--has-container")){var k=c(".ecl-mega-menu__mega-container",e);if(k)return k.firstElementChild.style.height=t-f+"px",void(s.style.opacity=1)}}(u=c(":scope > .ecl-mega-menu__featured",s))&&(Array.from(u.firstElementChild.children).forEach(e=>{var t=window.getComputedStyle(e),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom);g+=e.offsetHeight+i}),g+=8,l.push(g))}if(a){a.style.height="";var E=h(""+this.subItemSelector,a);E.length>0&&E.forEach(e=>{p+=e.getBoundingClientRect().height}),l.push(p),(d=c(".ecl-mega-menu__featured",n))&&(Array.from(d.firstElementChild.children).forEach(e=>{var t=window.getComputedStyle(e),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom);v+=e.offsetHeight+i}),v+=5,l.push(v))}var C=Math.max(...l),w=this.inner.getBoundingClientRect().bottom;s&&i&&this.isDesktop&&!this.isLarge&&(w+=r);var S=window.innerHeight-w,A=.7*S,_=c(".ecl-mega-menu__wrapper",e),x=parseFloat(getComputedStyle(_).paddingTop)||0;if(o=C>S?S-x:C>A?A:C,_&&(_.style.height=i&&!this.isLarge?r+o+"px":o+"px"),s){s.style.height=o+"px";var O=c(".ecl-mega-menu__see-all",s),T=s.closest("li").classList.contains("ecl-mega-menu__item--one-level-only");if(O&&T){var M=s.offsetHeight-(O.offsetTop+O.offsetHeight);M>0&&(O.style.top=M+"px")}}i&&this.isLarge&&(i.style.height=o+"px"),a&&(a.style.height=o+"px",a.style.opacity=1),u&&(u.style.height=o+"px"),d&&(d.style.height=o+"px"),s&&(s.style.opacity=1),i&&(i.style.opacity=1)}},100)}positionMenuOverlay(){var e=0;this.isDesktop?setTimeout(()=>{var e=c(".ecl-site-header",document);if(e){var t=e.getBoundingClientRect().bottom,i=c(this.itemSelector,this.element).getBoundingClientRect().height;this.wrappers&&this.wrappers.forEach(e=>{e.style.top=i+"px"}),this.menuOverlay&&(this.menuOverlay.style.top=t+"px")}else{var s=this.element.getBoundingClientRect().bottom;this.menuOverlay&&(this.menuOverlay.style.top=s+"px")}},0):setTimeout(()=>{if(this.header){var t=this.header.getBoundingClientRect(),i=Math.round(t.bottom);this.menuOverlay&&(this.menuOverlay.style.top=i+"px"),this.inner&&(this.inner.style.top=i+"px");var s=c(".ecl-mega-menu__item--expanded",this.element);if(s){var n=c(".ecl-mega-menu__mega--has-featured",s),a=c(".ecl-mega-menu__info",s);if(a&&1===this.openPanel.num){var r=a.getBoundingClientRect().bottom;e=window.innerHeight-r-16}if(n){var l=n.getBoundingClientRect().top;e=e||window.innerHeight-l,n.style.height=e+"px"}else{var o=c(".ecl-mega-menu__sublist",s);if(o&&1===this.openPanel.num){var h=o.getBoundingClientRect().top;o.classList.add("ecl-mega-menu__sublist--scrollable"),e=e||window.innerHeight-h,o.style.height=e+"px"}else o&&(o.classList.remove("ecl-mega-menu__sublist--scrollable"),o.style.height="");if(2===this.openPanel.num){var d=c(".ecl-mega-menu__subitem--expanded",this.element);if(d){var u=c(".ecl-mega-menu__mega--level-2",d);if(u){var m=u.getBoundingClientRect().top;e=window.innerHeight-m,u.style.height=e+"px",u.classList.add("ecl-mega-menu__sublist--scrollable")}}}this.wrappers&&this.wrappers.forEach(e=>{e.style.top="",e.style.height=""})}}}},0)}handleKeyboard(e){var t=e.target,i=t.classList,s=this.element.getAttribute("data-expanded");if("Escape"===e.key||"Esc"===e.key)return document.activeElement===t&&t.blur(),void(s||this.closeOpenDropdown());if(i.contains("ecl-mega-menu__info-link")&&("ArrowUp"===e.key&&(this.isDesktop?c(".ecl-mega-menu__item--expanded button",this.element).focus():this.back&&!this.isDesktop&&this.back.focus()),"ArrowDown"!==e.key&&"ArrowRight"!==e.key||t.parentElement.parentElement.nextSibling.firstChild.firstChild.firstChild.focus()),i.contains("ecl-mega-menu__parent-link")){if("ArrowUp"===e.key)return void c(".ecl-mega-menu__back",this.element).focus();if("ArrowDown"===e.key)return void e.target.nextSibling.firstElementChild.firstElementChild.firstChild.focus()}if(t.parentElement.classList.contains("ecl-mega-menu__see-all")&&("ArrowUp"===e.key&&t.parentElement.previousSibling.firstChild.focus(),"ArrowDown"===e.key)){var n=t.parentElement.parentElement.nextSibling;if(n){var a=h(["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", "),n);a.length>0&&a[0].focus()}}if(i.contains("ecl-mega-menu__back")){if("ArrowDown"===e.key){e.preventDefault();var r=c('[aria-expanded="true"]',t.parentElement.nextSibling);if(r){var l=c(".ecl-mega-menu__subitem--expanded",r.parentElement);if(l){var o=c(".ecl-mega-menu__parent-link",l);o&&o.focus()}else{var d=c(".ecl-mega-menu__info-link",r.parentElement);d?d.focus():c(".ecl-mega-menu__subitem:first-child .ecl-mega-menu__sublink",r.parentElement).focus()}}}"ArrowUp"===e.key&&this.open.focus()}if(i.contains("ecl-mega-menu__link")){if("ArrowLeft"===e.key||"ArrowUp"===e.key){e.preventDefault();var u=t.previousSibling;if(u&&u.classList.contains("ecl-mega-menu__link"))return void u.focus();if(u=t.parentElement.previousSibling){var m=c(".ecl-mega-menu__link",u);if(m)return void m.focus()}}if("ArrowRight"===e.key||"ArrowDown"===e.key){if(e.preventDefault(),"true"===t.parentElement.getAttribute("aria-expanded")&&"ArrowDown"===e.key){var p=c(".ecl-mega-menu__info-link",t.parentElement);if(p)return void p.focus()}var v=t.parentElement.nextSibling;if(v){var g=c(".ecl-mega-menu__link",v);if(g)return void g.focus()}}}if(i.contains("ecl-mega-menu__sublink")){if("ArrowDown"===e.key){e.preventDefault();var b=t.parentElement.nextSibling,f="";if(b&&(!(f=c(".ecl-mega-menu__sublink",b))&&b.classList.contains("ecl-mega-menu__spacer")&&(f=b.nextSibling.firstElementChild),f))return void f.focus()}if("ArrowUp"===e.key){e.preventDefault();var y=t.parentElement.previousSibling;if(y){var L=c(".ecl-mega-menu__sublink",y);L&&L.focus()}else{var k=c(".ecl-mega-menu__info-link",t.parentElement.parentElement.parentElement.previousSibling);if(k)k.focus();else if(2===this.openPanel.num){var E=e.target.closest(".ecl-mega-menu__mega").previousSibling;E&&E.focus()}else this.back&&this.back.focus()}}}"ArrowRight"===e.key&&("true"===t.parentElement.getAttribute("aria-expanded")&&(e.preventDefault(),t.nextSibling.firstElementChild.firstChild.firstChild.focus()))}handleKeyboardGlobal(e){"Escape"!==e.key&&"Esc"!==e.key||this.isOpen&&this.closeOpenDropdown(!0)}handleClickOnOpen(e){if(this.isOpen)this.handleClickOnClose(e);else{e.preventDefault(),this.disableScroll(),this.element.setAttribute("data-expanded",!0),this.element.classList.add("ecl-mega-menu--start-panel"),this.element.classList.remove("ecl-mega-menu--one-panel","ecl-mega-menu--two-panels"),this.open.setAttribute("aria-expanded","true"),this.inner.setAttribute("aria-hidden","false"),this.isOpen=!0,this.header&&this.header.classList.add("ecl-site-header--open-menu","ecl-site-header--open-menu-start");var t=this.element.getAttribute(this.labelCloseAttribute);this.toggleLabel&&t&&(this.toggleLabel.innerHTML=t),this.positionMenuOverlay(),this.links.length>0&&this.links[0].focus(),this.trigger("onOpen",e)}}handleClickOnClose(e){this.element.getAttribute("data-expanded")?(this.focusTrap.deactivate(),this.closeOpenDropdown(),this.trigger("onClose",e)):this.handleClickOnOpen(e)}handleClickOnToggle(e){e.preventDefault(),this.isOpen?this.handleClickOnClose(e):this.handleClickOnOpen(e)}handleClickOnBack(){h(".ecl-mega-menu__info",this.element).forEach(e=>{e.style.top=""});var e=c(".ecl-mega-menu__subitem--expanded",this.element);if(e){this.element.classList.remove("ecl-mega-menu--two-panels","ecl-mega-menu--start-panel"),this.element.classList.add("ecl-mega-menu--one-panel"),this.element.classList.remove("ecl-mega-menu--has-secondary-featured"),e.setAttribute("aria-expanded","false"),e.classList.remove("ecl-mega-menu__subitem--expanded","ecl-mega-menu__subitem--current");var t=c(this.subLinkSelector,e);t.setAttribute("aria-expanded","false"),t.classList.remove("ecl-mega-menu__parent-link");var i=e.parentElement.childNodes;i&&i.forEach(e=>{e.style.display=""}),this.header&&this.header.classList.remove("ecl-site-header--open-menu-start"),this.backItemLevel2&&this.backItemLevel2.firstElementChild.focus(),this.openPanel.num=1}else this.header&&(this.headerBanner&&(this.headerBanner.style.display=""),this.headerNotification&&(this.headerNotification.style.display="")),this.inner.classList.remove("ecl-mega-menu__inner--expanded"),this.element.classList.remove("ecl-mega-menu--one-panel"),this.items.forEach(e=>{e.classList.remove("ecl-mega-menu__item--expanded","ecl-mega-menu__item--current"),c(this.linkSelector,e).setAttribute("aria-expanded","false")}),this.backItemLevel1?this.backItemLevel1.firstElementChild.focus():this.items[0].firstElementChild.focus(),this.openPanel.num=0,this.element.classList.add("ecl-mega-menu--start-panel"),this.header&&this.header.classList.add("ecl-site-header--open-menu-start");this.positionMenuOverlay(),this.trigger("onBack",{level:e?2:1})}handleFirstPanel(e,t){switch(t){case"expand":this.inner.classList.add("ecl-mega-menu__inner--expanded"),this.positionMenuOverlay(),this.checkDropdownHeight(e),this.element.setAttribute("data-expanded",!0),this.element.classList.add("ecl-mega-menu--one-panel"),this.element.classList.remove("ecl-mega-menu--start-panel"),this.open.setAttribute("aria-expanded","true"),this.header&&(this.header.classList.add("ecl-site-header--open-menu"),this.header.classList.remove("ecl-site-header--open-menu-start"),this.isDesktop||(this.headerBanner&&(this.headerBanner.style.display="none"),this.headerNotification&&(this.headerNotification.style.display="none"))),this.disableScroll(),this.isOpen=!0,this.items.forEach(t=>{var i=c(this.linkSelector,t);i&&i.hasAttribute("aria-expanded")&&(t===e?(t.classList.add("ecl-mega-menu__item--expanded","ecl-mega-menu__item--current"),i.setAttribute("aria-expanded","true"),this.backItemLevel1=t):(i.setAttribute("aria-expanded","false"),t.classList.remove("ecl-mega-menu__item--current","ecl-mega-menu__item--expanded")))}),!this.isDesktop&&this.back&&this.back.focus(),this.openPanel={num:1,item:e};var i={panel:1,item:e};this.trigger("OnOpenPanel",i);break;case"collapse":this.closeOpenDropdown()}}handleSecondPanel(e,t){var i,s=c(".ecl-mega-menu__info",e.closest(".ecl-container"));switch(t){case"expand":this.element.classList.remove("ecl-mega-menu--one-panel","ecl-mega-menu--start-panel"),this.element.classList.add("ecl-mega-menu--two-panels"),this.subItems.forEach(t=>{var i=c(this.subLinkSelector,t);if(t===e){if(i&&i.hasAttribute("aria-expanded")){i.setAttribute("aria-expanded","true");var s=c(".ecl-mega-menu__mega",t);this.isDesktop?s.style.opacity=0:(i.classList.add("ecl-mega-menu__parent-link"),this.back&&this.back.focus()),t.classList.add("ecl-mega-menu__subitem--expanded")}t.classList.add("ecl-mega-menu__subitem--current"),c(".ecl-mega-menu__featured",t)?this.element.classList.add("ecl-mega-menu--has-secondary-featured"):this.element.classList.remove("ecl-mega-menu--has-secondary-featured"),this.backItemLevel2=t}else i&&i.hasAttribute("aria-expanded")&&(i.setAttribute("aria-expanded","false"),i.classList.remove("ecl-mega-menu__parent-link"),t.classList.remove("ecl-mega-menu__subitem--expanded")),t.classList.remove("ecl-mega-menu__subitem--current")}),this.openPanel={num:2,item:e},i=e.parentNode.childNodes,this.isDesktop?i.forEach(t=>{t!==e&&(t.style.display="")}):i.forEach(t=>{t!==e&&(t.style.display="none")}),this.positionMenuOverlay(),this.checkDropdownHeight(e.closest(".ecl-mega-menu__item"),!1);var n={panel:2,item:e};this.trigger("OnOpenPanel",n);break;case"collapse":this.element.classList.remove("ecl-mega-menu--two-panels"),this.element.classList.remove("ecl-mega-menu--has-secondary-featured"),this.openPanel={num:1},c(this.subLinkSelector,e).setAttribute("aria-expanded","false"),e.classList.remove("ecl-mega-menu__subitem--expanded","ecl-mega-menu__subitem--current"),s&&(s.style.top=""),this.positionMenuOverlay(),this.checkDropdownHeight(e.closest(".ecl-mega-menu__item"),!1)}}handleClickOnItem(e){var t=!1,i=e.target.closest("li"),s=c(".ecl-mega-menu__mega-container-scrollable",i);if(s&&(t=s.contains(e.target)),!e.target.classList.contains("ecl-mega-menu__mega-container-scrollable")&&!t){this.trigger("onItemClick",{item:i,event:e});var n=i.firstElementChild.getAttribute("aria-expanded");if(n&&i.classList.contains("ecl-mega-menu__item"))if(e.preventDefault(),e.stopPropagation(),this.isDesktop)"true"===n?this.handleFirstPanel(i,"collapse"):(this.closeOpenDropdown(),this.handleFirstPanel(i,"expand"));else this.handleFirstPanel(i,"expand")}}handleClickOnSubitem(e){var t=e.target.closest(this.subItemSelector);if(t&&t.firstElementChild.hasAttribute("aria-expanded")){if(c(".ecl-mega-menu__parent-link",t))return;e.preventDefault(),e.stopPropagation(),"true"===t.firstElementChild.getAttribute("aria-expanded")?this.handleSecondPanel(t,"collapse"):this.handleSecondPanel(t,"expand")}}closeOpenDropdown(e){void 0===e&&(e=!1),this.element.classList.remove("ecl-mega-menu--has-secondary-featured"),this.header&&(this.header.classList.remove("ecl-site-header--open-menu","ecl-site-header--open-menu-start"),this.headerBanner&&(this.headerBanner.style.display=""),this.headerNotification&&(this.headerNotification.style.display="")),this.enableScroll(),this.element.removeAttribute("data-expanded"),this.element.classList.remove("ecl-mega-menu--start-panel","ecl-mega-menu--two-panels","ecl-mega-menu--one-panel"),this.open.setAttribute("aria-expanded","false"),this.inner.classList.remove("ecl-mega-menu__inner--expanded"),h("[data-ecl-mega-menu-mega]",this.element).forEach(e=>{e.style.height="",e.style.top="",e.style.opacity=""}),this.wrappers&&this.wrappers.forEach(e=>{e.style=""});var t=!1;this.items.forEach(e=>{e.classList.remove("ecl-mega-menu__item--current");var i=c(this.linkSelector,e);"true"===i.getAttribute("aria-expanded")&&(e.classList.remove("ecl-mega-menu__item--expanded"),i.setAttribute("aria-expanded","false"),t=i)}),this.subItems.forEach(e=>{e.classList.remove("ecl-mega-menu__subitem--current"),e.style.display="";var t=c(this.subLinkSelector,e);t&&t.hasAttribute("aria-expanded")&&(e.classList.remove("ecl-mega-menu__subitem--expanded"),e.style.display="",t.setAttribute("aria-expanded","false"),t.classList.remove("ecl-mega-menu__parent-link"))});var i=h(".ecl-mega-menu__sublist");i&&i.forEach(e=>{e.classList.remove("ecl-mega-menu__sublist--no-border","ecl-mega-menu__sublist--scrollable")});var s=this.element.getAttribute(this.labelOpenAttribute);this.toggleLabel&&s&&(this.toggleLabel.innerHTML=s),this.openPanel={num:0,item:!1},this.focusTrap.deactivate(),!this.isDesktop&&this.open&&e?this.open.focus():this.isDesktop&&t&&e&&t.focus(),this.trigger("onFocusTrapToggle",{active:!1}),this.isOpen=!1}handleFocusOut(e){var t=e.target;if(this.element.getAttribute("data-expanded")&&!this.isDesktop&&!t.parentElement.nextSibling){var i=e.relatedTarget;this.element.contains(i)||(this.focusTrap.activate(),this.trigger("onFocusTrapToggle",{active:!0,lastFocusedEl:t.parentElement}))}}handleClickGlobal(e){e.target.classList.contains("ecl-mega-menu__mega-container-scrollable")||!e.target.classList.contains("ecl-mega-menu__overlay")&&this.element.contains(e.target)||!this.isOpen||this.closeOpenDropdown()}}var xe={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},Oe={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},Te={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},Me={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},Pe={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"};class Ie{static getFirstMatch(e,t){var i=t.match(e);return i&&i.length>0&&i[1]||""}static getSecondMatch(e,t){var i=t.match(e);return i&&i.length>1&&i[2]||""}static matchAndReturnConst(e,t,i){if(e.test(t))return i}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){var t=e.split(".").splice(0,2).map(e=>parseInt(e,10)||0);t.push(0);var i=t[0],s=t[1];if(10===i)switch(s){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(i){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}}static getAndroidVersionName(e){var t=e.split(".").splice(0,2).map(e=>parseInt(e,10)||0);if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,i){void 0===i&&(i=!1);var s=Ie.getVersionPrecision(e),n=Ie.getVersionPrecision(t),a=Math.max(s,n),r=0,l=Ie.map([e,t],e=>{var t=a-Ie.getVersionPrecision(e),i=e+new Array(t+1).join(".0");return Ie.map(i.split("."),e=>new Array(20-e.length).join("0")+e).reverse()});for(i&&(r=a-Math.min(s,n)),a-=1;a>=r;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===r)return 0;a-=1}else if(l[0][a]<l[1][a])return-1}}static map(e,t){var i,s=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(i=0;i<e.length;i+=1)s.push(t(e[i]));return s}static find(e,t){var i,s;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(i=0,s=e.length;i<s;i+=1){var n=e[i];if(t(n,i))return n}}static assign(e){for(var t,i,s=e,n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];if(Object.assign)return Object.assign(e,...a);var l=function(){var e=a[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach(t=>{s[t]=e[t]})};for(t=0,i=a.length;t<i;t+=1)l();return e}static getBrowserAlias(e){return xe[e]}static getBrowserTypeByAlias(e){return Oe[e]||""}}var Be,Ne=/version\/(\d+(\.?_?\d+)+)/i,De=[{test:[/gptbot/i],describe(e){var t={name:"GPTBot"},i=Ie.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/chatgpt-user/i],describe(e){var t={name:"ChatGPT-User"},i=Ie.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/oai-searchbot/i],describe(e){var t={name:"OAI-SearchBot"},i=Ie.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe(e){var t={name:"ClaudeBot"},i=Ie.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/omgilibot/i,/webzio-extended/i],describe(e){var t={name:"Omgilibot"},i=Ie.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/diffbot/i],describe(e){var t={name:"Diffbot"},i=Ie.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/perplexitybot/i],describe(e){var t={name:"PerplexityBot"},i=Ie.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/perplexity-user/i],describe(e){var t={name:"Perplexity-User"},i=Ie.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/youbot/i],describe(e){var t={name:"YouBot"},i=Ie.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/meta-webindexer/i],describe(e){var t={name:"Meta-WebIndexer"},i=Ie.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/meta-externalads/i],describe(e){var t={name:"Meta-ExternalAds"},i=Ie.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/meta-externalagent/i],describe(e){var t={name:"Meta-ExternalAgent"},i=Ie.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/meta-externalfetcher/i],describe(e){var t={name:"Meta-ExternalFetcher"},i=Ie.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/googlebot/i],describe(e){var t={name:"Googlebot"},i=Ie.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/linespider/i],describe(e){var t={name:"Linespider"},i=Ie.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/amazonbot/i],describe(e){var t={name:"AmazonBot"},i=Ie.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/bingbot/i],describe(e){var t={name:"BingCrawler"},i=Ie.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/baiduspider/i],describe(e){var t={name:"BaiduSpider"},i=Ie.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/duckduckbot/i],describe(e){var t={name:"DuckDuckBot"},i=Ie.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/ia_archiver/i],describe(e){var t={name:"InternetArchiveCrawler"},i=Ie.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:()=>({name:"FacebookExternalHit"})},{test:[/slackbot/i,/slack-imgProxy/i],describe(e){var t={name:"SlackBot"},i=Ie.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/yahoo!?[\s/]*slurp/i],describe:()=>({name:"YahooSlurp"})},{test:[/yandexbot/i,/yandexmobilebot/i],describe:()=>({name:"YandexBot"})},{test:[/pingdom/i],describe:()=>({name:"PingdomBot"})},{test:[/opera/i],describe(e){var t={name:"Opera"},i=Ie.getFirstMatch(Ne,e)||Ie.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/opr\/|opios/i],describe(e){var t={name:"Opera"},i=Ie.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/SamsungBrowser/i],describe(e){var t={name:"Samsung Internet for Android"},i=Ie.getFirstMatch(Ne,e)||Ie.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/Whale/i],describe(e){var t={name:"NAVER Whale Browser"},i=Ie.getFirstMatch(Ne,e)||Ie.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/PaleMoon/i],describe(e){var t={name:"Pale Moon"},i=Ie.getFirstMatch(Ne,e)||Ie.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/MZBrowser/i],describe(e){var t={name:"MZ Browser"},i=Ie.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/focus/i],describe(e){var t={name:"Focus"},i=Ie.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/swing/i],describe(e){var t={name:"Swing"},i=Ie.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/coast/i],describe(e){var t={name:"Opera Coast"},i=Ie.getFirstMatch(Ne,e)||Ie.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){var t={name:"Opera Touch"},i=Ie.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/yabrowser/i],describe(e){var t={name:"Yandex Browser"},i=Ie.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/ucbrowser/i],describe(e){var t={name:"UC Browser"},i=Ie.getFirstMatch(Ne,e)||Ie.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/Maxthon|mxios/i],describe(e){var t={name:"Maxthon"},i=Ie.getFirstMatch(Ne,e)||Ie.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/epiphany/i],describe(e){var t={name:"Epiphany"},i=Ie.getFirstMatch(Ne,e)||Ie.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/puffin/i],describe(e){var t={name:"Puffin"},i=Ie.getFirstMatch(Ne,e)||Ie.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/sleipnir/i],describe(e){var t={name:"Sleipnir"},i=Ie.getFirstMatch(Ne,e)||Ie.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/k-meleon/i],describe(e){var t={name:"K-Meleon"},i=Ie.getFirstMatch(Ne,e)||Ie.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/micromessenger/i],describe(e){var t={name:"WeChat"},i=Ie.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/qqbrowser/i],describe(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},i=Ie.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/msie|trident/i],describe(e){var t={name:"Internet Explorer"},i=Ie.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/\sedg\//i],describe(e){var t={name:"Microsoft Edge"},i=Ie.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/edg([ea]|ios)/i],describe(e){var t={name:"Microsoft Edge"},i=Ie.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/vivaldi/i],describe(e){var t={name:"Vivaldi"},i=Ie.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/seamonkey/i],describe(e){var t={name:"SeaMonkey"},i=Ie.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/sailfish/i],describe(e){var t={name:"Sailfish"},i=Ie.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return i&&(t.version=i),t}},{test:[/silk/i],describe(e){var t={name:"Amazon Silk"},i=Ie.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/phantom/i],describe(e){var t={name:"PhantomJS"},i=Ie.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/slimerjs/i],describe(e){var t={name:"SlimerJS"},i=Ie.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){var t={name:"BlackBerry"},i=Ie.getFirstMatch(Ne,e)||Ie.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/(web|hpw)[o0]s/i],describe(e){var t={name:"WebOS Browser"},i=Ie.getFirstMatch(Ne,e)||Ie.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/bada/i],describe(e){var t={name:"Bada"},i=Ie.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/tizen/i],describe(e){var t={name:"Tizen"},i=Ie.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/qupzilla/i],describe(e){var t={name:"QupZilla"},i=Ie.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/librewolf/i],describe(e){var t={name:"LibreWolf"},i=Ie.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){var t={name:"Firefox"},i=Ie.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/electron/i],describe(e){var t={name:"Electron"},i=Ie.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe(e){var t={name:"Sogou Browser"},i=Ie.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,e),s=Ie.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e),n=Ie.getFirstMatch(/se ([\d.]+)x/i,e),a=i||s||n;return a&&(t.version=a),t}},{test:[/MiuiBrowser/i],describe(e){var t={name:"Miui"},i=Ie.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:e=>!!e.hasBrand("DuckDuckGo")||e.test(/\sDdg\/[\d.]+$/i),describe(e,t){var i={name:"DuckDuckGo"};if(t){var s=t.getBrandVersion("DuckDuckGo");if(s)return i.version=s,i}var n=Ie.getFirstMatch(/\sDdg\/([\d.]+)$/i,e);return n&&(i.version=n),i}},{test:e=>e.hasBrand("Brave"),describe(e,t){var i={name:"Brave"};if(t){var s=t.getBrandVersion("Brave");if(s)return i.version=s,i}return i}},{test:[/chromium/i],describe(e){var t={name:"Chromium"},i=Ie.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/chrome|crios|crmo/i],describe(e){var t={name:"Chrome"},i=Ie.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/GSA/i],describe(e){var t={name:"Google Search"},i=Ie.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test(e){var t=!e.test(/like android/i),i=e.test(/android/i);return t&&i},describe(e){var t={name:"Android Browser"},i=Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/playstation 4/i],describe(e){var t={name:"PlayStation 4"},i=Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/safari|applewebkit/i],describe(e){var t={name:"Safari"},i=Ie.getFirstMatch(Ne,e);return i&&(t.version=i),t}},{test:[/.*/i],describe(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:Ie.getFirstMatch(t,e),version:Ie.getSecondMatch(t,e)}}}],Fe=[{test:[/Roku\/DVP/],describe(e){var t=Ie.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Me.Roku,version:t}}},{test:[/windows phone/i],describe(e){var t=Ie.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Me.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){var t=Ie.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),i=Ie.getWindowsVersionName(t);return{name:Me.Windows,version:t,versionName:i}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){var t={name:Me.iOS},i=Ie.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return i&&(t.version=i),t}},{test:[/macintosh/i],describe(e){var t=Ie.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),i=Ie.getMacOSVersionName(t),s={name:Me.MacOS,version:t};return i&&(s.versionName=i),s}},{test:[/(ipod|iphone|ipad)/i],describe(e){var t=Ie.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Me.iOS,version:t}}},{test:[/OpenHarmony/i],describe(e){var t=Ie.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,e);return{name:Me.HarmonyOS,version:t}}},{test(e){var t=!e.test(/like android/i),i=e.test(/android/i);return t&&i},describe(e){var t=Ie.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),i=Ie.getAndroidVersionName(t),s={name:Me.Android,version:t};return i&&(s.versionName=i),s}},{test:[/(web|hpw)[o0]s/i],describe(e){var t=Ie.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),i={name:Me.WebOS};return t&&t.length&&(i.version=t),i}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){var t=Ie.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||Ie.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||Ie.getFirstMatch(/\bbb(\d+)/i,e);return{name:Me.BlackBerry,version:t}}},{test:[/bada/i],describe(e){var t=Ie.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Me.Bada,version:t}}},{test:[/tizen/i],describe(e){var t=Ie.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Me.Tizen,version:t}}},{test:[/linux/i],describe:()=>({name:Me.Linux})},{test:[/CrOS/],describe:()=>({name:Me.ChromeOS})},{test:[/PlayStation 4/],describe(e){var t=Ie.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Me.PlayStation4,version:t}}}],Re=[{test:[/googlebot/i],describe:()=>({type:Te.bot,vendor:"Google"})},{test:[/linespider/i],describe:()=>({type:Te.bot,vendor:"Line"})},{test:[/amazonbot/i],describe:()=>({type:Te.bot,vendor:"Amazon"})},{test:[/gptbot/i],describe:()=>({type:Te.bot,vendor:"OpenAI"})},{test:[/chatgpt-user/i],describe:()=>({type:Te.bot,vendor:"OpenAI"})},{test:[/oai-searchbot/i],describe:()=>({type:Te.bot,vendor:"OpenAI"})},{test:[/baiduspider/i],describe:()=>({type:Te.bot,vendor:"Baidu"})},{test:[/bingbot/i],describe:()=>({type:Te.bot,vendor:"Bing"})},{test:[/duckduckbot/i],describe:()=>({type:Te.bot,vendor:"DuckDuckGo"})},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:()=>({type:Te.bot,vendor:"Anthropic"})},{test:[/omgilibot/i,/webzio-extended/i],describe:()=>({type:Te.bot,vendor:"Webz.io"})},{test:[/diffbot/i],describe:()=>({type:Te.bot,vendor:"Diffbot"})},{test:[/perplexitybot/i],describe:()=>({type:Te.bot,vendor:"Perplexity AI"})},{test:[/perplexity-user/i],describe:()=>({type:Te.bot,vendor:"Perplexity AI"})},{test:[/youbot/i],describe:()=>({type:Te.bot,vendor:"You.com"})},{test:[/ia_archiver/i],describe:()=>({type:Te.bot,vendor:"Internet Archive"})},{test:[/meta-webindexer/i],describe:()=>({type:Te.bot,vendor:"Meta"})},{test:[/meta-externalads/i],describe:()=>({type:Te.bot,vendor:"Meta"})},{test:[/meta-externalagent/i],describe:()=>({type:Te.bot,vendor:"Meta"})},{test:[/meta-externalfetcher/i],describe:()=>({type:Te.bot,vendor:"Meta"})},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:()=>({type:Te.bot,vendor:"Meta"})},{test:[/slackbot/i,/slack-imgProxy/i],describe:()=>({type:Te.bot,vendor:"Slack"})},{test:[/yahoo/i],describe:()=>({type:Te.bot,vendor:"Yahoo"})},{test:[/yandexbot/i,/yandexmobilebot/i],describe:()=>({type:Te.bot,vendor:"Yandex"})},{test:[/pingdom/i],describe:()=>({type:Te.bot,vendor:"Pingdom"})},{test:[/huawei/i],describe(e){var t=Ie.getFirstMatch(/(can-l01)/i,e)&&"Nova",i={type:Te.mobile,vendor:"Huawei"};return t&&(i.model=t),i}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:()=>({type:Te.tablet,vendor:"Nexus"})},{test:[/ipad/i],describe:()=>({type:Te.tablet,vendor:"Apple",model:"iPad"})},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:()=>({type:Te.tablet,vendor:"Apple",model:"iPad"})},{test:[/kftt build/i],describe:()=>({type:Te.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"})},{test:[/silk/i],describe:()=>({type:Te.tablet,vendor:"Amazon"})},{test:[/tablet(?! pc)/i],describe:()=>({type:Te.tablet})},{test(e){var t=e.test(/ipod|iphone/i),i=e.test(/like (ipod|iphone)/i);return t&&!i},describe(e){var t=Ie.getFirstMatch(/(ipod|iphone)/i,e);return{type:Te.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:()=>({type:Te.mobile,vendor:"Nexus"})},{test:[/Nokia/i],describe(e){var t=Ie.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,e),i={type:Te.mobile,vendor:"Nokia"};return t&&(i.model=t),i}},{test:[/[^-]mobi/i],describe:()=>({type:Te.mobile})},{test:e=>"blackberry"===e.getBrowserName(!0),describe:()=>({type:Te.mobile,vendor:"BlackBerry"})},{test:e=>"bada"===e.getBrowserName(!0),describe:()=>({type:Te.mobile})},{test:e=>"windows phone"===e.getBrowserName(),describe:()=>({type:Te.mobile,vendor:"Microsoft"})},{test(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:()=>({type:Te.tablet})},{test:e=>"android"===e.getOSName(!0),describe:()=>({type:Te.mobile})},{test:[/smart-?tv|smarttv/i],describe:()=>({type:Te.tv})},{test:[/netcast/i],describe:()=>({type:Te.tv})},{test:e=>"macos"===e.getOSName(!0),describe:()=>({type:Te.desktop,vendor:"Apple"})},{test:e=>"windows"===e.getOSName(!0),describe:()=>({type:Te.desktop})},{test:e=>"linux"===e.getOSName(!0),describe:()=>({type:Te.desktop})},{test:e=>"playstation 4"===e.getOSName(!0),describe:()=>({type:Te.tv})},{test:e=>"roku"===e.getOSName(!0),describe:()=>({type:Te.tv})}],ze=[{test:e=>"microsoft edge"===e.getBrowserName(!0),describe(e){if(/\sedg\//i.test(e))return{name:Pe.Blink};var t=Ie.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Pe.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){var t={name:Pe.Trident},i=Ie.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:e=>e.test(/presto/i),describe(e){var t={name:Pe.Presto},i=Ie.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test(e){var t=e.test(/gecko/i),i=e.test(/like gecko/i);return t&&!i},describe(e){var t={name:Pe.Gecko},i=Ie.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/(apple)?webkit\/537\.36/i],describe:()=>({name:Pe.Blink})},{test:[/(apple)?webkit/i],describe(e){var t={name:Pe.WebKit},i=Ie.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}}];class He{constructor(e,t,i){if(void 0===t&&(t=!1),void 0===i&&(i=null),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e;var s=!1;"boolean"==typeof t?(s=t,this._hints=i):this._hints=null!=t&&"object"==typeof t?t:null,this.parsedResult={},!0!==s&&this.parse()}getHints(){return this._hints}hasBrand(e){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var t=e.toLowerCase();return this._hints.brands.some(e=>e.brand&&e.brand.toLowerCase()===t)}getBrandVersion(e){if(this._hints&&Array.isArray(this._hints.brands)){var t=e.toLowerCase(),i=this._hints.brands.find(e=>e.brand&&e.brand.toLowerCase()===t);return i?i.version:void 0}}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};var e=Ie.find(De,e=>{if("function"==typeof e.test)return e.test(this);if(Array.isArray(e.test))return e.test.some(e=>this.test(e));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA(),this)),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};var e=Ie.find(Fe,e=>{if("function"==typeof e.test)return e.test(this);if(Array.isArray(e.test))return e.test.some(e=>this.test(e));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};var e=Ie.find(Re,e=>{if("function"==typeof e.test)return e.test(this);if(Array.isArray(e.test))return e.test.some(e=>this.test(e));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};var e=Ie.find(ze,e=>{if("function"==typeof e.test)return e.test(this);if(Array.isArray(e.test))return e.test.some(e=>this.test(e));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return Ie.assign({},this.parsedResult)}satisfies(e){var t={},i=0,s={},n=0;if(Object.keys(e).forEach(a=>{var r=e[a];"string"==typeof r?(s[a]=r,n+=1):"object"==typeof r&&(t[a]=r,i+=1)}),i>0){var a=Object.keys(t),r=Ie.find(a,e=>this.isOS(e));if(r){var l=this.satisfies(t[r]);if(void 0!==l)return l}var o=Ie.find(a,e=>this.isPlatform(e));if(o){var h=this.satisfies(t[o]);if(void 0!==h)return h}}if(n>0){var c=Object.keys(s),d=Ie.find(c,e=>this.isBrowser(e,!0));if(void 0!==d)return this.compareVersion(s[d])}}isBrowser(e,t){void 0===t&&(t=!1);var i=this.getBrowserName().toLowerCase(),s=e.toLowerCase(),n=Ie.getBrowserTypeByAlias(s);return t&&n&&(s=n.toLowerCase()),s===i}compareVersion(e){var t=[0],i=e,s=!1,n=this.getBrowserVersion();if("string"==typeof n)return">"===e[0]||"<"===e[0]?(i=e.substr(1),"="===e[1]?(s=!0,i=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?i=e.substr(1):"~"===e[0]&&(s=!0,i=e.substr(1)),t.indexOf(Ie.compareVersions(n,i,s))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e){return void 0===e&&(e=[]),e.some(e=>this.is(e))}}
21
+ /*!
22
+ * Bowser - a browser detector
23
+ * https://github.com/bowser-js/bowser
24
+ * MIT License | (c) Dustin Diaz 2012-2015
25
+ * MIT License | (c) Denis Demchenko 2015-2019
26
+ */class Ke{static getParser(e,t,i){if(void 0===t&&(t=!1),void 0===i&&(i=null),"string"!=typeof e)throw new Error("UserAgent should be a string");return new He(e,t,i)}static parse(e,t){return void 0===t&&(t=null),new He(e,t).getResult()}static get BROWSER_MAP(){return Oe}static get ENGINE_MAP(){return Pe}static get OS_MAP(){return Me}static get PLATFORMS_MAP(){return Te}}class Ge{static autoInit(e,t){var i=(void 0===t?{}:t).MENU,s=new Ge(e,void 0===i?{}:i);return s.init(),e.ECLMenu=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.openSelector,n=void 0===s?"[data-ecl-menu-open]":s,a=i.closeSelector,r=void 0===a?"[data-ecl-menu-close]":a,l=i.backSelector,o=void 0===l?"[data-ecl-menu-back]":l,h=i.innerSelector,c=void 0===h?"[data-ecl-menu-inner]":h,d=i.listSelector,m=void 0===d?"[data-ecl-menu-list]":d,p=i.itemSelector,v=void 0===p?"[data-ecl-menu-item]":p,g=i.linkSelector,b=void 0===g?"[data-ecl-menu-link]":g,f=i.buttonPreviousSelector,y=void 0===f?"[data-ecl-menu-items-previous]":f,L=i.buttonNextSelector,k=void 0===L?"[data-ecl-menu-items-next]":L,E=i.caretSelector,C=void 0===E?"[data-ecl-menu-caret]":E,w=i.megaSelector,S=void 0===w?"[data-ecl-menu-mega]":w,A=i.subItemSelector,_=void 0===A?"[data-ecl-menu-subitem]":A,x=i.maxLines,O=void 0===x?2:x,T=i.maxLinesAttribute,M=void 0===T?"data-ecl-menu-max-lines":T,P=i.labelOpenAttribute,I=void 0===P?"data-ecl-menu-label-open":P,B=i.labelCloseAttribute,N=void 0===B?"data-ecl-menu-label-close":B,D=i.attachClickListener,F=void 0===D||D,R=i.attachTouchListener,z=void 0===R||R,H=i.attachHoverListener,K=void 0===H||H,G=i.attachFocusListener,V=void 0===G||G,W=i.attachKeyListener,U=void 0===W||W,j=i.attachResizeListener,q=void 0===j||j,Y=i.onCloseCallback,X=void 0===Y?null:Y,Q=i.onOpenCallback,J=void 0===Q?null:Q;if(this.supportedEvents=["onOpen","onClose"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new u,this.openSelector=n,this.closeSelector=r,this.backSelector=o,this.innerSelector=c,this.listSelector=m,this.itemSelector=v,this.linkSelector=b,this.buttonPreviousSelector=y,this.buttonNextSelector=k,this.caretSelector=C,this.megaSelector=S,this.subItemSelector=_,this.maxLines=O,this.maxLinesAttribute=M,this.labelOpenAttribute=I,this.labelCloseAttribute=N,this.attachClickListener=F,this.attachTouchListener=z,this.attachHoverListener=K,this.attachFocusListener=V,this.attachKeyListener=U,this.attachResizeListener=q,this.onOpenCallback=J,this.onCloseCallback=X,this.direction="ltr",this.open=null,this.close=null,this.toggleLabel=null,this.back=null,this.backItem=null,this.inner=null,this.itemsList=null,this.items=null,this.links=null,this.btnPrevious=null,this.btnNext=null,this.isOpen=!1,this.resizeTimer=null,this.isKeyEvent=!1,this.isDesktop=!1,this.hasOverflow=!1,this.offsetLeft=0,this.lastVisibleItem=null,this.currentItem=null,this.totalItemsWidth=0,this.breakpointTablet=768,this.breakpointDesktop=1140,this.windowWidth=null,this.ignorehover=!1,this.handleClickOnOpen=this.handleClickOnOpen.bind(this),this.handleClickOnClose=this.handleClickOnClose.bind(this),this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleClickOnBack=this.handleClickOnBack.bind(this),this.handleClickOnNextItems=this.handleClickOnNextItems.bind(this),this.handleClickOnPreviousItems=this.handleClickOnPreviousItems.bind(this),this.handleClickOnCaret=this.handleClickOnCaret.bind(this),this.handleClickGlobal=this.handleClickGlobal.bind(this),this.openItem=this.openItem.bind(this),this.closeItem=this.closeItem.bind(this),this.handleTouchOnCaret=this.handleTouchOnCaret.bind(this),this.handleHoverOnItem=this.handleHoverOnItem.bind(this),this.handleHoverOffItem=this.handleHoverOffItem.bind(this),this.handleFocusIn=this.handleFocusIn.bind(this),this.handleKeyboard=this.handleKeyboard.bind(this),this.handleKeyboardGlobal=this.handleKeyboardGlobal.bind(this),this.handleResize=this.handleResize.bind(this),this.useDesktopDisplay=this.useDesktopDisplay.bind(this),this.checkMenuOverflow=this.checkMenuOverflow.bind(this),this.checkMenuItem=this.checkMenuItem.bind(this),this.checkMegaMenu=this.checkMegaMenu.bind(this),this.closeOpenDropdown=this.closeOpenDropdown.bind(this),this.positionMenuOverlay=this.positionMenuOverlay.bind(this),this.disableScroll=this.disableScroll.bind(this),this.enableScroll=this.enableScroll.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.direction=getComputedStyle(this.element).direction,this.open=c(this.openSelector,this.element),this.close=c(this.closeSelector,this.element),this.toggleLabel=c(".ecl-button__label",this.open),this.back=c(this.backSelector,this.element),this.inner=c(this.innerSelector,this.element),this.itemsList=c(this.listSelector,this.element),this.btnPrevious=c(this.buttonPreviousSelector,this.element),this.btnNext=c(this.buttonNextSelector,this.element),this.items=h(this.itemSelector,this.element),this.subItems=h(this.subItemSelector,this.element),this.links=h(this.linkSelector,this.element),this.carets=h(this.caretSelector,this.element);var e=this.element.getAttribute(this.maxLinesAttribute);e&&(this.maxLines=e),this.isDesktop=this.useDesktopDisplay(),this.attachClickListener&&(this.open&&this.open.addEventListener("click",this.handleClickOnToggle),this.close&&this.close.addEventListener("click",this.handleClickOnClose),this.back&&this.back.addEventListener("click",this.handleClickOnBack),this.btnPrevious&&this.btnPrevious.addEventListener("click",this.handleClickOnPreviousItems),this.btnNext&&this.btnNext.addEventListener("click",this.handleClickOnNextItems),this.attachClickListener&&document.addEventListener("click",this.handleClickGlobal)),this.links&&this.links.forEach(e=>{this.attachFocusListener&&(e.addEventListener("focusin",this.closeOpenDropdown),e.addEventListener("focusin",this.handleFocusIn)),this.attachKeyListener&&e.addEventListener("keyup",this.handleKeyboard)}),this.carets&&this.carets.forEach(e=>{this.attachFocusListener&&e.addEventListener("focusin",this.handleFocusIn),this.attachKeyListener&&e.addEventListener("keyup",this.handleKeyboard),this.attachClickListener&&e.addEventListener("click",this.handleClickOnCaret),e.parentElement.hasAttribute("data-ecl-has-children")&&this.attachTouchListener&&e.addEventListener("touchstart",this.handleTouchOnCaret)}),this.subItems&&this.subItems.forEach(e=>{var t=c(".ecl-menu__sublink",e);this.attachKeyListener&&t&&t.addEventListener("keyup",this.handleKeyboard)}),this.attachKeyListener&&document.addEventListener("keyup",this.handleKeyboardGlobal),this.attachResizeListener&&(this.windowWidth=window.innerWidth,window.addEventListener("resize",this.handleResize)),this.items&&this.items.forEach(e=>{this.checkMenuItem(e),this.totalItemsWidth+=e.offsetWidth,e.hasAttribute("data-ecl-has-children")&&this.attachHoverListener&&(e.addEventListener("mouseover",this.handleHoverOnItem),e.addEventListener("mouseout",this.handleHoverOffItem))}),this.positionMenuOverlay(),this.checkMenuOverflow(),this.currentItem&&("false"===this.currentItem.getAttribute("data-ecl-menu-item-visible")?this.btnNext.classList.add("ecl-menu__item--current"):this.btnPrevious.classList.add("ecl-menu__item--current")),this.focusTrap=ce(this.element,{clickOutsideDeactivates:!0,onActivate:()=>this.element.classList.add("trap-is-active"),onDeactivate:()=>this.element.classList.remove("trap-is-active")}),"rtl"===this.direction&&this.element.classList.add("ecl-menu--rtl"),setTimeout(()=>{this.element.classList.add("ecl-menu--transition")},500),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.attachClickListener&&(this.open&&this.open.removeEventListener("click",this.handleClickOnToggle),this.close&&this.close.removeEventListener("click",this.handleClickOnClose),this.back&&this.back.removeEventListener("click",this.handleClickOnBack),this.btnPrevious&&this.btnPrevious.removeEventListener("click",this.handleClickOnPreviousItems),this.btnNext&&this.btnNext.removeEventListener("click",this.handleClickOnNextItems),this.attachClickListener&&document.removeEventListener("click",this.handleClickGlobal)),this.attachKeyListener&&this.carets&&this.carets.forEach(e=>{e.removeEventListener("keyup",this.handleKeyboard)}),this.items&&this.isDesktop&&this.items.forEach(e=>{e.hasAttribute("data-ecl-has-children")&&this.attachHoverListener&&(e.removeEventListener("mouseover",this.handleHoverOnItem),e.removeEventListener("mouseout",this.handleHoverOffItem))}),this.links&&this.links.forEach(e=>{this.attachFocusListener&&(e.removeEventListener("focusin",this.closeOpenDropdown),e.removeEventListener("focusin",this.handleFocusIn)),this.attachKeyListener&&e.removeEventListener("keyup",this.handleKeyboard)}),this.carets&&this.carets.forEach(e=>{this.attachFocusListener&&e.removeEventListener("focusin",this.handleFocusIn),this.attachKeyListener&&e.removeEventListener("keyup",this.handleKeyboard),this.attachClickListener&&e.removeEventListener("click",this.handleClickOnCaret)}),this.subItems&&this.subItems.forEach(e=>{var t=c(".ecl-menu__sublink",e);this.attachKeyListener&&t&&t.removeEventListener("keyup",this.handleKeyboard)}),this.attachKeyListener&&document.removeEventListener("keyup",this.handleKeyboardGlobal),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}disableScroll(){document.body.classList.add("no-scroll")}enableScroll(){document.body.classList.remove("no-scroll")}useDesktopDisplay(){var e=Ke.getParser(window.navigator.userAgent),t="mobile"===e.getPlatformType(),i="tablet"===e.getPlatformType();return!(t&&window.innerWidth<this.breakpointTablet)&&(i?(this.element.classList.add("ecl-menu--forced-mobile"),!1):!(window.innerWidth<this.breakpointDesktop)&&(this.element.classList.remove("ecl-menu--forced-mobile"),!0))}handleResize(){window.innerWidth!==this.windowWidth&&(document.documentElement.scrollTop=0,document.body.scrollTop=0,this.element.classList.remove("ecl-menu--transition"),"rtl"===this.direction?this.element.classList.add("ecl-menu--rtl"):this.element.classList.remove("ecl-menu--rtl"),clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.element.classList.remove("ecl-menu--forced-mobile"),this.isDesktop=this.useDesktopDisplay(),this.isDesktop&&this.focusTrap.deactivate(),this.totalItemsWidth=0,this.items&&this.items.forEach(e=>{this.checkMenuItem(e),this.totalItemsWidth+=e.offsetWidth}),this.checkMenuOverflow(),this.positionMenuOverlay(),this.element.classList.add("ecl-menu--transition"),this.windowWidth=window.innerWidth},200))}positionMenuOverlay(){var e=c(".ecl-menu__overlay",this.element);this.isDesktop?(this.enableScroll(),this.inner&&(this.inner.style.top=""),e&&(e.style.top="")):(this.isOpen&&this.disableScroll(),setTimeout(()=>{var t=c(".ecl-site-header__header",document);if(t){var i=t.getBoundingClientRect(),s=Math.round(i.bottom);e&&(e.style.top=s+"px"),this.inner&&(this.inner.style.top=s+"px")}},500))}checkMenuOverflow(){if(this.itemsList||(this.itemsList=c(".ecl-menu__list",this.element)),this.itemsList&&this.inner&&this.btnNext&&this.btnPrevious&&this.items){if(this.hasOverflow=this.totalItemsWidth>this.inner.offsetWidth+16,!this.hasOverflow||!this.isDesktop)return this.btnPrevious&&(this.btnPrevious.style.display="none"),this.btnNext&&(this.btnNext.style.display="none"),this.itemsList&&(this.itemsList.style.left="0"),this.inner&&this.inner.classList.remove("ecl-menu__inner--has-overflow"),this.offsetLeft=0,this.totalItemsWidth=0,void(this.lastVisibleItem=null);this.inner&&this.inner.classList.add("ecl-menu__inner--has-overflow"),this.items&&this.items.forEach(e=>{e.removeAttribute("data-ecl-menu-item-visible")}),0===this.offsetLeft?(this.btnNext.style.display="flex","rtl"===this.direction?this.items.every(e=>e.getBoundingClientRect().left<this.itemsList.getBoundingClientRect().left?(this.lastVisibleItem=e,!1):(e.setAttribute("data-ecl-menu-item-visible",!0),!0)):this.items.every(e=>e.getBoundingClientRect().right>this.itemsList.getBoundingClientRect().right?(this.lastVisibleItem=e,!1):(e.setAttribute("data-ecl-menu-item-visible",!0),!0))):"rtl"===this.direction?this.items.forEach(e=>{e.getBoundingClientRect().right<=this.inner.getBoundingClientRect().right&&e.setAttribute("data-ecl-menu-item-visible",!0)}):this.items.forEach(e=>{e.getBoundingClientRect().left>=this.inner.getBoundingClientRect().left&&e.setAttribute("data-ecl-menu-item-visible",!0)})}}checkMenuItem(e){var t=c(this.linkSelector,e);if(e.classList.contains("ecl-menu__item--current")&&(this.currentItem=e),this.isDesktop){if(!(this.maxLines<1)){e.style.alignItems="flex-start";for(var i=t.offsetWidth,s=window.getComputedStyle(t),n=parseInt(s.lineHeight,10)*this.maxLines+parseInt(s.paddingTop,10)+parseInt(s.paddingBottom,10);t.offsetHeight>n&&(t.style.width=(i+=1)+"px",!(i>1e3)););e.style.alignItems="unset"}}else t.style.width="auto"}checkMegaMenu(e){var t=c(this.megaSelector,e);if(t&&this.inner){var i=h(this.subItemSelector,t);if(i.length<5)e.classList.add("ecl-menu__item--col1");else if(i.length<9)e.classList.add("ecl-menu__item--col2");else{if(!(i.length<13))return e.classList.add("ecl-menu__item--full"),void("rtl"===this.direction?t.style.right=this.offsetLeft+"px":t.style.left=this.offsetLeft+"px");e.classList.add("ecl-menu__item--col3")}var s=t.getBoundingClientRect(),n=this.inner.getBoundingClientRect(),a=e.getBoundingClientRect(),r=s.width,l=n.width;a.left-n.left+r>l?t.classList.add("ecl-menu__mega--rtl"):t.classList.remove("ecl-menu__mega--rtl")}}handleKeyboard(e){var t=e.target,i=t.classList,s=this.element.getAttribute("data-expanded"),n=t.closest(this.itemSelector);if("Escape"!==e.key&&"Esc"!==e.key){if(i.contains("ecl-menu__button-caret")&&"false"===s&&"ArrowDown"===e.key){e.preventDefault();var a=c(".ecl-menu__sublink:first-of-type",n);if(a)return this.handleHoverOnItem(e),void a.focus()}if(i.contains("ecl-menu__link")||i.contains("ecl-menu__button-caret")){if("ArrowLeft"===e.key||"ArrowUp"===e.key){e.preventDefault();var r=t.previousSibling;if(r&&r.classList.contains("ecl-menu__link"))return void r.focus();if(r=t.parentElement.previousSibling){var l=r.classList.contains("ecl-menu__item--has-children")?".ecl-menu__button-caret":".ecl-menu__link",o=c(l,r);if(o)return void o.focus()}}if("ArrowRight"===e.key||"ArrowDown"===e.key){e.preventDefault();var h=t.nextSibling;if(h&&h.classList.contains("ecl-menu__button-caret"))return void h.focus();if(h=t.parentElement.nextSibling){var d=c(".ecl-menu__link",h);d&&d.focus()}}}if(i.contains("ecl-menu__sublink")){if("ArrowDown"===e.key){var u=t.parentElement.nextSibling;if(u){var m=c(".ecl-menu__sublink",u);if(m)return void m.focus()}}if("ArrowUp"===e.key){var p=t.parentElement.previousSibling;if(p){var v=c(".ecl-menu__sublink",p);v&&v.focus()}else{var g=c(this.itemSelector+'[aria-expanded="true"] '+this.caretSelector,this.element);g&&g.focus()}}}}else if(document.activeElement===t&&t.blur(),!s){var b=c(".ecl-menu__button-caret",n);b&&b.focus(),this.closeOpenDropdown()}}handleKeyboardGlobal(e){var t=this.element.getAttribute("data-expanded");"Escape"!==e.key&&"Esc"!==e.key||(t&&this.handleClickOnClose(),this.items.forEach(e=>{e.setAttribute("aria-expanded","false")}),this.carets.forEach(e=>{e.setAttribute("aria-expanded","false")}))}handleClickOnOpen(e){e.preventDefault(),this.element.setAttribute("data-expanded",!0),this.inner.setAttribute("aria-hidden","false"),this.disableScroll(),this.open.setAttribute("aria-expanded","true"),this.isOpen=!0,this.focusTrap.activate();var t=this.element.getAttribute(this.labelCloseAttribute);return this.toggleLabel&&t&&(this.toggleLabel.innerHTML=t),this.links.length>0&&this.links[0].focus(),this.trigger("onOpen",e),this}handleClickOnClose(e){this.element.removeAttribute("data-expanded"),this.inner.classList.remove("ecl-menu__inner--expanded"),this.inner.setAttribute("aria-hidden","true"),this.open.setAttribute("aria-expanded","false"),this.items.forEach(e=>{e.classList.remove("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","false")});var t=this.element.getAttribute(this.labelOpenAttribute);return this.toggleLabel&&t&&(this.toggleLabel.innerHTML=t),this.enableScroll(),this.focusTrap.deactivate(),this.isOpen=!1,this.trigger("onClose",e),this}handleClickOnToggle(e){e.preventDefault(),this.isOpen?this.handleClickOnClose(e):this.handleClickOnOpen(e)}handleClickOnBack(){if(this.inner.classList.remove("ecl-menu__inner--expanded"),this.items.forEach(e=>{e.classList.remove("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","false")}),this.backItem){var e=c(this.caretSelector,this.backItem);e&&e.focus()}return this}handleClickOnPreviousItems(){this.itemsList&&this.btnNext&&(this.offsetLeft=0,"rtl"===this.direction?(this.itemsList.style.right="0",this.itemsList.style.left="auto"):(this.itemsList.style.left="0",this.itemsList.style.right="auto"),this.btnPrevious.style.display="none",this.btnNext.style.display="flex",this.items&&this.items.forEach(e=>{this.checkMenuItem(e),e.toggleAttribute("data-ecl-menu-item-visible")}))}handleClickOnNextItems(){this.itemsList&&this.items&&this.btnPrevious&&this.lastVisibleItem&&(this.btnPrevious.style.display="flex",this.btnNext.style.display="none","rtl"===this.direction?(this.offsetLeft=this.itemsList.getBoundingClientRect().right-this.lastVisibleItem.getBoundingClientRect().right-this.btnPrevious.offsetWidth,this.itemsList.style.right="-"+this.offsetLeft+"px",this.itemsList.style.left="auto"):(this.offsetLeft=this.lastVisibleItem.getBoundingClientRect().left-this.itemsList.getBoundingClientRect().left-this.btnPrevious.offsetWidth,this.itemsList.style.left="-"+this.offsetLeft+"px",this.itemsList.style.right="auto"),this.items&&this.items.forEach(e=>{this.checkMenuItem(e),e.toggleAttribute("data-ecl-menu-item-visible")}))}handleClickOnCaret(e){var t=this.element.getAttribute("data-expanded"),i=e.target.closest(this.itemSelector);if(t){this.inner.classList.add("ecl-menu__inner--expanded"),this.items.forEach(e=>{e===i?(e.classList.add("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","true"),this.backItem=e):(e.classList.remove("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","false"))}),this.checkMegaMenu(i);var s=c(".ecl-menu__subitem:first-of-type .ecl-menu__sublink",i);s&&s.focus(),this.ignorehover=!1}else"true"===i.getAttribute("aria-expanded")?this.closeItem(e):this.openItem(e)}openItem(e){var t=e.target.closest(this.itemSelector);this.hasOverflow&&!t.hasAttribute("data-ecl-menu-item-visible")||(this.items.forEach(e=>{var i=c(this.caretSelector,e);e===t?(e.setAttribute("aria-expanded","true"),i&&i.setAttribute("aria-expanded","true")):(e.setAttribute("aria-expanded","false"),i&&(i.setAttribute("aria-expanded","false"),i.blur()))}),this.checkMegaMenu(t))}closeItem(e){var t=e.target.closest(this.itemSelector);t.setAttribute("aria-expanded","false");var i=c(this.caretSelector,t);return i&&i.setAttribute("aria-expanded","false"),this}handleTouchOnCaret(){this.ignorehover=!0}handleHoverOnItem(e){this.ignorehover||this.openItem(e)}handleHoverOffItem(e){this.ignorehover||this.closeItem(e)}closeOpenDropdown(){var e=c(this.itemSelector+"[aria-expanded='true']",this.element);if(e){e.setAttribute("aria-expanded","false");var t=c(this.caretSelector,e);t&&t.setAttribute("aria-expanded","false")}}handleFocusIn(e){var t=e.target;this.isDesktop&&this.hasOverflow&&(t.closest("[data-ecl-menu-item]").hasAttribute("data-ecl-menu-item-visible")||(0===this.offsetLeft?this.handleClickOnNextItems():this.handleClickOnPreviousItems()))}handleClickGlobal(e){this.isOpen&&(this.inner.contains(e.target)||this.open.contains(e.target)||this.handleClickOnClose(e))}}class Ve{static autoInit(e,t){var i=(void 0===t?{}:t).MODAL,s=new Ve(e,void 0===i?{}:i);return s.init(),e.ECLModal=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.toggleSelector,n=void 0===s?"":s,a=i.closeSelector,r=void 0===a?"[data-ecl-modal-close]":a,l=i.scrollSelector,o=void 0===l?"[data-ecl-modal-scroll]":l,h=i.attachClickListener,c=void 0===h||h,d=i.attachKeyListener,u=void 0===d||d;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=n,this.closeSelector=r,this.scrollSelector=o,this.attachClickListener=c,this.attachKeyListener=u,this.toggle=null,this.close=null,this.scroll=null,this.focusTrap=null,this.previousOverflow=null,this.openModal=this.openModal.bind(this),this.closeModal=this.closeModal.bind(this),this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleKeyboardGlobal=this.handleKeyboardGlobal.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.attachKeyListener&&document.addEventListener("keyup",this.handleKeyboardGlobal),""===this.toggleSelector&&(this.toggleSelector="#"+this.element.getAttribute("data-ecl-modal-toggle")),this.toggle=document.querySelector(this.toggleSelector),this.toggle&&(this.toggle.setAttribute("aria-controls",this.element.id),this.toggle.getAttribute("aria-haspopup")||this.toggle.setAttribute("aria-haspopup","dialog")),this.close=h(this.closeSelector,this.element),this.scroll=c(this.scrollSelector,this.element),this.focusTrap=ce(this.element),this.isDialogSupported=!0,window.HTMLDialogElement||(this.isDialogSupported=!1),this.toggle&&this.attachClickListener&&this.toggle.addEventListener("click",this.handleClickOnToggle),this.close&&this.attachClickListener&&this.close.forEach(e=>{e.addEventListener("click",this.closeModal)}),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.toggle&&this.attachClickListener&&this.toggle.removeEventListener("click",this.handleClickOnToggle),this.attachKeyListener&&document.removeEventListener("keyup",this.handleKeyboardGlobal),this.close&&this.attachClickListener&&this.close.forEach(e=>{e.removeEventListener("click",this.closeModal)}),this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element)}checkScroll(){this.scroll&&(this.scroll.parentNode.classList.remove("ecl-modal__body--has-scroll"),this.scroll.scrollHeight>this.scroll.clientHeight&&this.scroll.parentNode.classList.add("ecl-modal__body--has-scroll"))}handleClickOnToggle(e){e.preventDefault(),"true"===this.toggle.getAttribute("aria-expanded")?this.closeModal():this.openModal()}openModal(){this.isDialogSupported?this.element.showModal():this.element.setAttribute("open",""),this.previousOverflow=document.body.style.overflow,document.body.style.overflow="hidden",this.checkScroll(),this.focusTrap.activate()}closeModal(){this.isDialogSupported?this.element.close():this.element.removeAttribute("open"),document.body.style.overflow=this.previousOverflow,this.focusTrap.active&&this.focusTrap.deactivate()}handleKeyboardGlobal(e){"Escape"!==e.key&&"Esc"!==e.key||this.closeModal()}}class We{static autoInit(e,t){var i=(void 0===t?{}:t).NEWS_TICKER,s=new We(e,void 0===i?{}:i);return s.init(),e.ECLNewsTicker=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.playSelector,n=void 0===s?"[data-ecl-news-ticker-play]":s,a=i.pauseSelector,r=void 0===a?"[data-ecl-news-ticker-pause]":a,l=i.prevSelector,o=void 0===l?"[data-ecl-news-ticker-prev]":l,h=i.nextSelector,c=void 0===h?"[data-ecl-news-ticker-next]":h,d=i.containerClass,u=void 0===d?".ecl-news-ticker__container":d,m=i.contentClass,p=void 0===m?".ecl-news-ticker__content":m,v=i.slidesClass,g=void 0===v?".ecl-news-ticker__slides":v,b=i.slideClass,f=void 0===b?".ecl-news-ticker__slide":b,y=i.currentSlideClass,L=void 0===y?".ecl-news-ticker__counter--current":y,k=i.controlsClass,E=void 0===k?".ecl-news-ticker__controls":k,C=i.attachClickListener,w=void 0===C||C,S=i.attachResizeListener,A=void 0===S||S;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.playSelector=n,this.pauseSelector=r,this.prevSelector=o,this.nextSelector=c,this.containerClass=u,this.contentClass=p,this.slidesClass=g,this.slideClass=f,this.currentSlideClass=L,this.controlsClass=E,this.attachClickListener=w,this.attachResizeListener=A,this.container=null,this.content=null,this.slides=null,this.btnPlay=null,this.btnPause=null,this.btnPrev=null,this.btnNext=null,this.index=1,this.total=0,this.allowShift=!0,this.autoPlay=null,this.autoPlayInterval=null,this.hoverAutoPlay=null,this.resizeTimer=null,this.cloneFirstSLide=null,this.cloneLastSLide=null,this.resizeTimer=null,this.handleAutoPlay=this.handleAutoPlay.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.shiftSlide=this.shiftSlide.bind(this),this.checkIndex=this.checkIndex.bind(this),this.moveSlides=this.moveSlides.bind(this),this.handleResize=this.handleResize.bind(this),this.handleFocus=this.handleFocus.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");if(ECL.components=ECL.components||new Map,this.btnPlay=c(this.playSelector,this.element),this.btnPause=c(this.pauseSelector,this.element),this.btnPrev=c(this.prevSelector,this.element),this.btnNext=c(this.nextSelector,this.element),this.slidesContainer=c(this.slidesClass,this.element),this.container=c(this.containerClass,this.element),this.content=c(this.contentClass,this.element),this.controls=c(this.controlsClass,this.element),this.slides=h(this.slideClass,this.element),this.total=this.slides.length,this.total<=1&&this.controls)return this.content.style.height="auto",this.controls.style.display="none",!1;var e=this.slides[0],t=this.slides[this.slides.length-1];return this.cloneFirstSLide=e.cloneNode(!0),this.cloneLastSLide=t.cloneNode(!0),this.slidesContainer.appendChild(this.cloneFirstSLide),this.slidesContainer.insertBefore(this.cloneLastSLide,e),this.slides=h(this.slideClass,this.element),this.handleResize(),this.handleAutoPlay(),this.attachClickListener&&this.btnPlay&&this.btnPause&&(this.btnPlay.addEventListener("click",this.handleAutoPlay),this.btnPause.addEventListener("click",this.handleAutoPlay)),this.attachClickListener&&this.btnNext&&this.btnNext.addEventListener("click",this.shiftSlide.bind(this,1,!0)),this.attachClickListener&&this.btnPrev&&this.btnPrev.addEventListener("click",this.shiftSlide.bind(this,-1,!0)),this.slidesContainer&&(this.slidesContainer.addEventListener("transitionend",this.checkIndex),this.slidesContainer.addEventListener("mouseover",this.handleMouseOver),this.slidesContainer.addEventListener("mouseout",this.handleMouseOut)),this.container&&this.container.addEventListener("focus",this.handleFocus,!0),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this),this}destroy(){this.cloneFirstSLide&&this.cloneLastSLide&&(this.cloneFirstSLide.remove(),this.cloneLastSLide.remove()),this.btnPlay&&this.btnPlay.replaceWith(this.btnPlay.cloneNode(!0)),this.btnPause&&this.btnPause.replaceWith(this.btnPause.cloneNode(!0)),this.btnNext&&this.btnNext.replaceWith(this.btnNext.cloneNode(!0)),this.btnPrev&&this.btnPrev.replaceWith(this.btnPrev.cloneNode(!0)),this.slidesContainer&&(this.slidesContainer.removeEventListener("transitionend",this.checkIndex),this.slidesContainer.removeEventListener("mouseover",this.handleMouseOver),this.slidesContainer.removeEventListener("mouseout",this.handleMouseOut)),this.container&&this.container.removeEventListener("focus",this.handleFocus,!0),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.autoPlayInterval&&(clearInterval(this.autoPlayInterval),this.autoPlay=null),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}shiftSlide(e,t){this.allowShift&&(this.index=1===e?this.index+1:this.index-1,this.moveSlides(!0)),t&&this.autoPlay&&this.handleAutoPlay(),this.allowShift=!1}moveSlides(e){var t=this.slides[this.index].offsetTop,i=Math.floor(this.slides[this.index].getBoundingClientRect().height);this.content.style.height=i+"px",this.slidesContainer.style.transitionDuration=e?"0.4s":"1ms",this.slidesContainer.style.transform="translate3d(0px, -"+t+"px, 0px)"}checkIndex(){0===this.index&&(this.index=this.total,this.moveSlides(!1)),this.index===this.total+1&&(this.index=1,this.moveSlides(!1)),c(this.currentSlideClass,this.element).textContent=this.index,this.slides&&this.slides.forEach((e,t)=>{var i=c(".ecl-link",e);this.index===t?(e.removeAttribute("inert","true"),i&&i.removeAttribute("tabindex",-1)):(e.setAttribute("inert","true"),i&&i.setAttribute("tabindex",-1))}),this.allowShift=!0}handleAutoPlay(){if(this.autoPlay){clearInterval(this.autoPlayInterval),this.autoPlay=!1;var e=document.activeElement===this.btnPause;this.btnPlay.style.display="flex",this.btnPause.style.display="none",e&&this.btnPlay.focus()}else{this.autoPlayInterval=setInterval(()=>{this.shiftSlide(1)},5e3),this.autoPlay=!0;var t=document.activeElement===this.btnPlay;this.btnPlay.style.display="none",this.btnPause.style.display="flex",t&&this.btnPause.focus()}}handleMouseOver(){return this.hoverAutoPlay=this.autoPlay,this.hoverAutoPlay&&this.handleAutoPlay(),this}handleMouseOut(){return this.hoverAutoPlay&&this.handleAutoPlay(),this}handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.moveSlides(!1)},100)}handleFocus(e){var t=e.target;return t&&t.contains(document.activeElement)&&this.autoPlay&&this.handleAutoPlay(),this}}class Ue{static autoInit(e,t){var i=(void 0===t?{}:t).NOTIFICATION,s=new Ue(e,void 0===i?{}:i);return s.init(),e.ECLNotification=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.closeSelector,n=void 0===s?"[data-ecl-notification-close]":s,a=i.attachClickListener,r=void 0===a||a;if(this.supportedEvents=["onClose"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new u,this.closeSelector=n,this.attachClickListener=r,this.close=null,this.handleClickOnClose=this.handleClickOnClose.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.close=c(this.closeSelector,this.element),this.attachClickListener&&this.close&&this.close.addEventListener("click",this.handleClickOnClose),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.attachClickListener&&this.close&&this.close.removeEventListener("click",this.handleClickOnClose),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnClose(e){return this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.trigger("onClose",e),this}}class je{static autoInit(e,t){var i=(void 0===t?{}:t).PAGEHEADEREXPANDABLE,s=new je(e,void 0===i?{}:i);return s.init(),e.ECLPageHeaderExpandable=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.headerSelector,n=void 0===s?"[data-ecl-page-header-expandable-header]":s,a=i.toggleSelector,r=void 0===a?"[data-ecl-page-header-expandable-toggle]":a,l=i.attachClickListener,o=void 0===l||l;if(this.supportedEvents=["onToggle"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new u,this.toggleSelector=r,this.headerSelector=n,this.attachClickListener=o,this.toggle=null,this.target=null,this.header=null,this.handleClickOnHeader=this.handleClickOnHeader.bind(this),this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");if(ECL.components=ECL.components||new Map,this.toggle=c(this.toggleSelector,this.element),this.header=c(this.headerSelector,this.element),this.target=document.querySelector("#"+this.toggle.getAttribute("aria-controls")),!this.target)throw new TypeError("Target has to be provided. (aria-controls)");this.attachClickListener&&this.toggle&&this.toggle.addEventListener("click",this.handleClickOnToggle),this.attachClickListener&&this.header&&this.header.addEventListener("click",this.handleClickOnHeader),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.attachClickListener&&this.toggle&&this.toggle.removeEventListener("click",this.handleClickOnToggle),this.attachClickListener&&this.header&&this.header.removeEventListener("click",this.handleClickOnHeader),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnHeader(e){e.target.closest(this.toggleSelector+", .ecl-page-header-expandable__header a")||this.handleClickOnToggle(e)}handleClickOnToggle(e){var t="true"===this.toggle.getAttribute("aria-expanded");this.toggle.setAttribute("aria-expanded",t?"false":"true"),this.target.hidden=!!t;var i={expanded:!t,e:e};this.trigger("onToggle",i)}}class qe{static autoInit(e,t){var i=(void 0===t?{}:t).POPOVER,s=new qe(e,void 0===i?{}:i);return s.init(),e.ECLPopover=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.toggleSelector,n=void 0===s?"[data-ecl-popover-toggle]":s,a=i.closeSelector,r=void 0===a?"[data-ecl-popover-close]":a,l=i.attachClickListener,o=void 0===l||l,h=i.attachKeyListener,c=void 0===h||h;if(this.supportedEvents=["onOpen","onClose"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new u,this.toggleSelector=n,this.closeSelector=r,this.attachClickListener=o,this.attachKeyListener=c,this.toggle=null,this.close=null,this.target=null,this.container=null,this.resizeTimer=null,this.scrollableParent=null,this.toggleRect=null,this.scrollable=null,this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.positionPopover=this.positionPopover.bind(this),this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleKeyboardGlobal=this.handleKeyboardGlobal.bind(this),this.handleClickGlobal=this.handleClickGlobal.bind(this),this.checkPosition=this.checkPosition.bind(this),this.resetStyles=this.resetStyles.bind(this),this.getClosestScrollableParent=this.getClosestScrollableParent.bind(this),this.calculateAvailableSpace=this.calculateAvailableSpace.bind(this),this.POPOVER_CLASSES={TOP:"ecl-popover--top",BOTTOM:"ecl-popover--bottom",LEFT:"ecl-popover--left",RIGHT:"ecl-popover--right",PUSH_TOP:"ecl-popover--push-top",PUSH_BOTTOM:"ecl-popover--push-bottom",PUSH_LEFT:"ecl-popover--push-left",PUSH_RIGHT:"ecl-popover--push-right"}}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");if(ECL.components=ECL.components||new Map,this.toggle=c(this.toggleSelector,this.element),this.close=c(this.closeSelector,this.element),this.container=c(".ecl-popover__container",this.element),this.scrollableParent=this.getClosestScrollableParent(this.toggle),this.attachKeyListener&&document.addEventListener("keyup",this.handleKeyboardGlobal),this.attachClickListener&&(document.addEventListener("click",this.handleClickGlobal),this.close&&this.close.addEventListener("click",this.handleClickOnToggle)),this.target=document.querySelector("#"+this.toggle.getAttribute("aria-controls")),!this.target)throw new TypeError("Target has to be provided for popover (aria-controls)");this.scrollable=this.target.firstElementChild,window.addEventListener("resize",this.checkPosition),document.addEventListener("scroll",this.checkPosition),this.attachClickListener&&this.toggle&&this.toggle.addEventListener("click",this.handleClickOnToggle),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.attachClickListener&&this.toggle&&this.toggle.removeEventListener("click",this.handleClickOnToggle),this.attachClickListener&&this.close&&this.close.removeEventListener("click",this.handleClickOnToggle),window.removeEventListener("resize",this.checkPosition),document.removeEventListener("scroll",this.checkPosition),this.attachKeyListener&&document.removeEventListener("keyup",this.handleKeyboardGlobal),this.attachClickListener&&document.removeEventListener("click",this.handleClickGlobal),"true"===this.toggle.getAttribute("aria-expanded")&&this.closePopover(),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnToggle(e){e.preventDefault(),"true"===this.toggle.getAttribute("aria-expanded")?this.closePopover(e):(this.openPopover(e),this.positionPopover())}openPopover(e){this.toggle.setAttribute("aria-expanded","true"),this.target.hidden=!1,this.trigger("onOpen",{event:e,target:this.target}),this.close&&this.close.focus()}closePopover(e){this.toggle.setAttribute("aria-expanded","false"),this.toggle.focus(),this.resetStyles(),this.target.hidden=!0,this.trigger("onClose",{event:e,target:this.target})}getClosestScrollableParent(e){for(var t=e.parentElement;t;){var i=getComputedStyle(t),s=i.overflowY,n=i.overflowX,a=("auto"===s||"scroll"===s)&&t.scrollHeight>t.clientHeight,r=("auto"===n||"scroll"===n)&&t.scrollWidth>t.clientWidth;if(a||r)return t;t=t.parentElement}return document.body}calculateAvailableSpace(e,t){void 0===t&&(t=null),this.toggleRect=e.getBoundingClientRect();var i=t?t.getBoundingClientRect():{top:0,left:0,right:window.innerWidth,bottom:window.innerHeight},s=i.right-i.left,n=i.bottom-i.top,a=Math.max(0,window.innerHeight-i.bottom),r=Math.max(0,window.innerHeight-this.toggleRect.bottom),l=Math.max(0,r-a),o=Math.max(0,i.top),h=Math.max(0,this.toggleRect.top),c=Math.max(0,h-o),d=Math.max(0,window.innerWidth-i.right),u=Math.max(0,window.innerWidth-this.toggleRect.right),m=Math.max(0,u-d),p=Math.max(0,i.left),v=Math.max(0,this.toggleRect.left);return{containerWidth:s,containerHeight:n,spaceTop:c,spaceBottom:l,spaceLeft:Math.max(0,v-p),spaceRight:m}}resetStyles(){Object.keys(this.POPOVER_CLASSES).forEach(e=>{Object.prototype.hasOwnProperty.call(this.POPOVER_CLASSES,e)&&this.element.classList.remove(this.POPOVER_CLASSES[e])}),this.target.style.setProperty("--ecl-popover-position",""),this.container.style.left="",this.container.style.right="",this.container.style.top="",this.container.style.bottom="",this.container.style.transform="",this.scrollable.style.width=""}positionPopover(){this.resetStyles();var e=this.calculateAvailableSpace(this.toggle,this.scrollableParent),t=e.containerWidth,i=e.spaceTop,s=e.spaceBottom,n=e.spaceLeft,a=e.spaceRight,r="";r=i>s&&i>n&&i>a?"top":s>n&&s>a?"bottom":n>a?"left":"right",this.element.classList.add("ecl-popover--"+r);var l,o=window.getComputedStyle(this.scrollable),h=parseInt(o.getPropertyValue("max-width"),10),c=parseInt(o.getPropertyValue("min-width"),10),d=2*parseInt(o.getPropertyValue("padding-left"),10),u=.9*Math.max(n,a);l=h+d<u||"left"!==r&&"right"!==r&&t>h?h:u<c+d?c:"left"===r||"right"===r?u-d:2*(u-d),this.scrollable.style.width=l+"px",this.handlePushClass(r)}handlePushClass(e){requestAnimationFrame(()=>{var t=this.target.getBoundingClientRect(),i=this.scrollableParent.getBoundingClientRect(),s=i.bottom>window.innerHeight?0:window.innerHeight-i.bottom,n=i.top>window.innerHeight?0:i.top,a=i.left>t.left,r=i.right<t.right,l=t.top<n,o=s>window.innerHeight-t.bottom;"left"===e||"right"===e?(l&&(this.element.classList.add(this.POPOVER_CLASSES.PUSH_TOP),this.container.style.top="-"+Math.round(this.toggleRect.top)+"px",this.container.style.bottom="",this.container.style.transform=""),o&&(this.element.classList.add(this.POPOVER_CLASSES.PUSH_BOTTOM),this.container.style.bottom="-"+(window.innerHeight-this.toggleRect.bottom-s)+"px",this.container.style.top="",this.container.style.transform="")):(a&&(this.element.classList.add(this.POPOVER_CLASSES.PUSH_LEFT),this.container.style.left="-"+(this.toggleRect.left-i.left-8)+"px",this.container.style.right="auto"),r&&(this.element.classList.add(this.POPOVER_CLASSES.PUSH_RIGHT),this.container.style.right="-"+(i.right-this.toggleRect.right-8)+"px",this.container.style.left="auto")),this.handleArrowPosition(e)})}handleArrowPosition(e){var t=this.target.getBoundingClientRect();"left"===e||"right"===e?this.element.classList.contains(this.POPOVER_CLASSES.PUSH_BOTTOM)?this.target.style.setProperty("--ecl-popover-position",Math.round(this.toggleRect.top-t.top+this.toggleRect.height/2)+"px"):this.element.classList.contains(this.POPOVER_CLASSES.PUSH_TOP)&&this.target.style.setProperty("--ecl-popover-position",Math.round(t.top+this.toggleRect.top+this.toggleRect.height/2)+"px"):this.element.classList.contains(this.POPOVER_CLASSES.PUSH_RIGHT)?this.target.style.setProperty("--ecl-popover-position",Math.round(t.right-(this.toggleRect.right-this.toggleRect.width/2))+"px"):this.element.classList.contains(this.POPOVER_CLASSES.PUSH_LEFT)&&this.target.style.setProperty("--ecl-popover-position",Math.round(this.toggleRect.left-t.left+this.toggleRect.width/2)+"px")}checkPosition(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{"true"===this.toggle.getAttribute("aria-expanded")&&this.positionPopover()},200)}handleKeyboardGlobal(e){this.target&&("Escape"!==e.key&&"Esc"!==e.key||"true"===this.toggle.getAttribute("aria-expanded")&&this.closePopover(e))}handleClickGlobal(e){this.target&&"true"===this.toggle.getAttribute("aria-expanded")&&(this.target.contains(e.target)||this.toggle.contains(e.target)||this.closePopover(e))}}class Ye{static autoInit(e,t){var i=(void 0===t?{}:t).RANGE,s=new Ye(e,void 0===i?{}:i);return s.init(),e.ECLRange=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.rangeInputSelector,n=void 0===s?"[data-ecl-range-input]":s,a=i.currentValueSelector,r=void 0===a?"[data-ecl-range-value-current]":a,l=i.bubbleSelector,o=void 0===l?"[data-ecl-range-bubble]":l,h=i.containerSelector,c=void 0===h?"[data-ecl-range-container]":h,d=i.attachChangeListener,u=void 0===d||d,m=i.attachHoverListener,p=void 0===m||m;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.rangeInputSelector=n,this.currentValueSelector=r,this.bubbleSelector=o,this.containerSelector=c,this.attachChangeListener=u,this.attachHoverListener=p,this.rangeInput=null,this.currentValue=null,this.bubble=null,this.direction="ltr",this.placeBubble=this.placeBubble.bind(this),this.handleChange=this.handleChange.bind(this),this.handleHoverOn=this.handleHoverOn.bind(this),this.handleHoverOff=this.handleHoverOff.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.rangeInput=c(this.rangeInputSelector,this.element),this.currentValue=h(this.currentValueSelector,this.element),this.bubble=c(this.bubbleSelector,this.element),this.rangeInput&&this.currentValue&&(this.currentValue.forEach(e=>{e.innerHTML=this.rangeInput.value}),this.attachChangeListener&&this.rangeInput.addEventListener("input",this.handleChange),this.attachHoverListener&&(this.rangeInput.addEventListener("mouseover",this.handleHoverOn),this.rangeInput.addEventListener("mouseout",this.handleHoverOff))),this.direction=getComputedStyle(this.element).direction,this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.rangeInput&&this.currentValue&&(this.attachChangeListener&&this.rangeInput.removeEventListener("input",this.handleChange),this.attachHoverListener&&(this.rangeInput.removeEventListener("mouseover",this.handleHoverOn),this.rangeInput.removeEventListener("mouseout",this.handleHoverOff))),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}placeBubble(){var e=0,t=this.bubble.offsetWidth/2,i=this.rangeInput.getBoundingClientRect(),s=this.rangeInput.closest(this.containerSelector);s&&(e=s.getBoundingClientRect().left);var n=i.width/2,a=(this.rangeInput.value-this.rangeInput.min)/(this.rangeInput.max-this.rangeInput.min)*i.width,r=8*((a-n)/n),l=i.left-e,o=0;o="rtl"===this.direction?l+(i.width-a)-t+r:l+a-t-r,this.bubble.style.left=o+"px"}handleHoverOn(){this.bubble.classList.add("ecl-range__bubble--visible"),this.placeBubble()}handleHoverOff(){this.bubble.classList.remove("ecl-range__bubble--visible")}handleChange(){this.currentValue.forEach(e=>{e.innerHTML=this.rangeInput.value}),this.placeBubble()}}var Xe=n("createSvgIcon"),Qe=n("createCheckbox"),Je=n("createSelectIcon"),Ze=n("checkCheckbox"),$e=n("generateRandomId"),et=n("updateSelectionsCount"),tt=n("handleOptgroup"),it=n("updateCurrentValue"),st=n("moveFocus");class nt{static autoInit(e,t){void 0===t&&(t={});var i=new nt(e,t);return i.init(),e.ECLSelect=i,i}constructor(e,t){var i=void 0===t?{}:t,s=i.defaultText,n=void 0===s?"":s,a=i.searchText,r=void 0===a?"":a,l=i.selectAllText,o=void 0===l?"":l,h=i.noResultsText,d=void 0===h?"":h,m=i.selectMultipleSelector,p=void 0===m?"[data-ecl-select-multiple]":m,v=i.defaultTextAttribute,g=void 0===v?"data-ecl-select-default":v,b=i.searchTextAttribute,f=void 0===b?"data-ecl-select-search":b,y=i.selectAllTextAttribute,L=void 0===y?"data-ecl-select-all":y,k=i.noResultsTextAttribute,E=void 0===k?"data-ecl-select-no-results":k,C=i.closeLabelAttribute,w=void 0===C?"data-ecl-select-close":C,S=i.clearAllLabelAttribute,A=void 0===S?"data-ecl-select-clear-all":S,_=i.selectMultiplesSelectionCountSelector,x=void 0===_?"ecl-select-multiple-selections-counter":_,O=i.closeButtonLabel,T=void 0===O?"":O,M=i.clearAllButtonLabel,P=void 0===M?"":M;if(Object.defineProperty(this,st,{value:ot}),Object.defineProperty(this,it,{value:lt}),Object.defineProperty(this,tt,{value:rt}),Object.defineProperty(this,et,{value:at}),this.supportedEvents=["onToggle","onSelection","onSelectAll","onReset","onSearch"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new u,this.selectMultipleSelector=p,this.selectMultiplesSelectionCountSelector=x,this.defaultTextAttribute=g,this.searchTextAttribute=f,this.selectAllTextAttribute=L,this.noResultsTextAttribute=E,this.defaultText=n,this.searchText=r,this.selectAllText=o,this.noResultsText=d,this.clearAllButtonLabel=P,this.closeButtonLabel=T,this.closeLabelAttribute=w,this.clearAllLabelAttribute=A,this.input=null,this.search=null,this.checkboxes=null,this.select=null,this.selectAll=null,this.selectIcon=null,this.textDefault=null,this.textSearch=null,this.textSelectAll=null,this.textNoResults=null,this.selectMultiple=null,this.inputContainer=null,this.optionsContainer=null,this.visibleOptions=null,this.searchContainer=null,this.countSelections=null,this.form=null,this.formGroup=null,this.label=null,this.helper=null,this.invalid=null,this.selectMultipleId=null,this.multiple=c(this.selectMultipleSelector,this.element.parentNode)||!1,this.isOpen=!1,this.handleToggle=this.handleToggle.bind(this),this.handleClickOption=this.handleClickOption.bind(this),this.handleClickSelectAll=this.handleClickSelectAll.bind(this),this.handleEsc=this.handleEsc.bind(this),this.handleFocusout=this.handleFocusout.bind(this),this.handleSearch=this.handleSearch.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this),this.resetForm=this.resetForm.bind(this),this.handleClickOnClearAll=this.handleClickOnClearAll.bind(this),this.handleKeyboardOnSelect=this.handleKeyboardOnSelect.bind(this),this.handleKeyboardOnSelectAll=this.handleKeyboardOnSelectAll.bind(this),this.handleKeyboardOnSearch=this.handleKeyboardOnSearch.bind(this),this.handleKeyboardOnOptions=this.handleKeyboardOnOptions.bind(this),this.handleKeyboardOnOption=this.handleKeyboardOnOption.bind(this),this.handleKeyboardOnClearAll=this.handleKeyboardOnClearAll.bind(this),this.handleKeyboardOnClose=this.handleKeyboardOnClose.bind(this),this.setCurrentValue=this.setCurrentValue.bind(this),this.update=this.update.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");if(ECL.components=ECL.components||new Map,this.select=this.element,this.multiple){var e=Array.from(this.select.parentElement.classList);this.textDefault=this.defaultText||this.element.getAttribute(this.defaultTextAttribute),this.textSearch=this.searchText||this.element.getAttribute(this.searchTextAttribute),this.textSelectAll=this.selectAllText||this.element.getAttribute(this.selectAllTextAttribute),this.textNoResults=this.noResultsText||this.element.getAttribute(this.noResultsTextAttribute),this.closeButtonLabel=this.closeButtonLabel||this.element.getAttribute(this.closeLabelAttribute),this.clearAllButtonLabel=this.clearAllButtonLabel||this.element.getAttribute(this.clearAllLabelAttribute),this.selectMultipleId=this.element.id||"select-multiple-"+i(nt,$e)[$e](4),this.element.id=this.selectMultipleId,this.formGroup=this.element.closest(".ecl-form-group"),this.formGroup&&(this.label=c(".ecl-form-label",this.formGroup),this.helper=c(".ecl-help-block",this.formGroup),this.invalid=c(".ecl-feedback-message",this.formGroup)),this.select.setAttribute("tabindex","-1"),this.selectMultiple=document.createElement("div"),this.selectMultiple.classList.add("ecl-select__multiple"),this.selectMultiple.addEventListener("focusout",this.handleFocusout),this.inputContainer=document.createElement("div"),this.inputContainer.classList.add(...e),this.selectMultiple.appendChild(this.inputContainer),this.input=document.createElement("button"),this.input.classList.add("ecl-select","ecl-select__multiple-toggle"),this.input.setAttribute("type","button"),this.input.setAttribute("aria-controls",this.selectMultipleId+"-dropdown"),this.input.setAttribute("id",this.selectMultipleId+"-toggle"),this.input.setAttribute("aria-expanded",!1),e.find(e=>e.includes("disabled"))&&this.input.setAttribute("disabled",!0),this.label&&this.input.setAttribute("aria-labelledby",this.label.id+" "+this.input.id);var t="";if(this.helper&&(t=this.helper.id),this.invalid&&(t=t?t+" "+this.invalid.id:this.invalid.id),t&&this.input.setAttribute("aria-describedby",t),this.input.addEventListener("keydown",this.handleKeyboardOnSelect),this.input.addEventListener("click",this.handleToggle),this.selectionCount=document.createElement("div"),this.selectionCount.classList.add(this.selectMultiplesSelectionCountSelector),this.selectionCountText=document.createElement("span"),this.selectionCount.appendChild(this.selectionCountText),this.inputContainer.appendChild(this.selectionCount),this.inputContainer.appendChild(this.input),this.inputContainer.appendChild(i(nt,Je)[Je]()),this.searchContainer=document.createElement("div"),this.searchContainer.style.display="none",this.searchContainer.classList.add("ecl-select__multiple-dropdown",...e),this.searchContainer.setAttribute("id",this.selectMultipleId+"-dropdown"),this.selectMultiple.appendChild(this.searchContainer),this.textSearch&&(this.search=document.createElement("input"),this.search.classList.add("ecl-text-input"),this.search.setAttribute("type","search"),this.search.setAttribute("placeholder",this.textSearch||""),this.search.addEventListener("keyup",this.handleSearch),this.search.addEventListener("search",this.handleSearch),this.search.addEventListener("keydown",this.handleKeyboardOnSearch),this.searchContainer.appendChild(this.search)),this.textSelectAll){var s=Array.from(this.select.options).filter(e=>!e.disabled).length;this.selectAll=i(nt,Qe)[Qe]({id:"all-"+i(nt,$e)[$e](4),text:this.textSelectAll+" ("+s+")",extraClass:"ecl-select__multiple-all"},this.selectMultipleId),this.selectAll.addEventListener("click",this.handleClickSelectAll),this.selectAll.addEventListener("keypress",this.handleClickSelectAll),this.selectAll.addEventListener("change",this.handleClickSelectAll),this.searchContainer.appendChild(this.selectAll)}this.optionsContainer=document.createElement("div"),this.optionsContainer.classList.add("ecl-select__multiple-options"),this.optionsContainer.setAttribute("aria-live","polite"),this.searchContainer.appendChild(this.optionsContainer),(this.clearAllButtonLabel||this.closeButtonLabel)&&(this.dropDownToolbar=document.createElement("div"),this.dropDownToolbar.classList.add("ecl-select-multiple-toolbar"),this.closeButtonLabel&&(this.closeButton=document.createElement("button"),this.closeButton.textContent=this.closeButtonLabel,this.closeButton.classList.add("ecl-button","ecl-button--primary"),this.closeButton.addEventListener("click",this.handleEsc),this.closeButton.addEventListener("keydown",this.handleKeyboardOnClose),this.dropDownToolbar&&(this.dropDownToolbar.appendChild(this.closeButton),this.searchContainer.appendChild(this.dropDownToolbar),this.dropDownToolbar.style.display="none")),this.clearAllButtonLabel&&(this.clearAllButton=document.createElement("button"),this.clearAllButton.textContent=this.clearAllButtonLabel,this.clearAllButton.classList.add("ecl-button","ecl-button--secondary"),this.clearAllButton.addEventListener("click",this.handleClickOnClearAll),this.clearAllButton.addEventListener("keydown",this.handleKeyboardOnClearAll),this.dropDownToolbar.appendChild(this.clearAllButton))),this.selectAll&&this.selectAll.addEventListener("keydown",this.handleKeyboardOnSelectAll),this.optionsContainer.addEventListener("keydown",this.handleKeyboardOnOptions),this.select.options&&this.select.options.length>0?this.checkboxes=Array.from(this.select.options).map(e=>{var t="",s="";if("OPTGROUP"===e.parentNode.tagName)if(c('fieldset[data-ecl-multiple-group="'+e.parentNode.getAttribute("label")+'"]',this.optionsContainer))t=c('fieldset[data-ecl-multiple-group="'+e.parentNode.getAttribute("label")+'"]',this.optionsContainer);else{t=document.createElement("fieldset");var n=document.createElement("legend");n.classList.add("ecl-select__multiple-group__title"),n.innerHTML=e.parentNode.getAttribute("label"),t.appendChild(n),t.setAttribute("data-ecl-multiple-group",e.parentNode.getAttribute("label")),t.classList.add("ecl-select__multiple-group"),this.optionsContainer.appendChild(t)}return e.selected&&(i(this,et)[et](),this.dropDownToolbar&&(this.dropDownToolbar.style.display="flex")),(s=i(nt,Qe)[Qe]({id:e.value,text:e.text,disabled:e.disabled,selected:e.selected},this.selectMultipleId)).setAttribute("data-visible",!0),s.classList.contains("ecl-checkbox--disabled")||(s.addEventListener("click",this.handleClickOption),s.addEventListener("keydown",this.handleKeyboardOnOption)),t?t.appendChild(s):this.optionsContainer.appendChild(s),s}):this.checkboxes=[],this.visibleOptions=this.checkboxes,this.select.parentNode.parentNode.insertBefore(this.selectMultiple,this.select.parentNode.nextSibling),this.select.parentNode.classList.add("ecl-select__container--hidden"),i(this,it)[it](),this.form=this.element.closest("form"),this.form&&this.form.addEventListener("reset",this.resetForm),document.addEventListener("click",this.handleClickOutside)}else i(this,tt)[tt](),this.select.addEventListener("keydown",this.handleKeyboardOnSelect);this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}update(){i(this,it)[it](),i(this,et)[et]()}setCurrentValue(e,t){if(void 0===t&&(t="replace"),"replace"!==t&&"add"!==t)throw new Error('Invalid operation mode. Use "replace" or "add".');var i="string"==typeof e?[e]:e;Array.from(this.select.options).forEach(e=>{"replace"===t&&(e.selected=!1),(i.includes(e.value)||i.includes(e.label))&&(e.selected=!0)}),this.update()}handleToggle(e){if(e&&e.preventDefault(),this.input.classList.toggle("ecl-select--active"),"none"===this.searchContainer.style.display?(this.searchContainer.style.display="block",this.input.setAttribute("aria-expanded",!0),this.isOpen=!0):(this.searchContainer.style.display="none",this.input.setAttribute("aria-expanded",!1),this.isOpen=!1),e){var t={opened:this.isOpen,e:e};this.trigger("onToggle",t)}}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.input.removeEventListener("keydown",this.handleKeyboardOnSelect),this.multiple&&(document.removeEventListener("click",this.handleClickOutside),this.selectMultiple.removeEventListener("focusout",this.handleFocusout),this.input.removeEventListener("click",this.handleToggle),this.search&&(this.search.removeEventListener("keyup",this.handleSearch),this.search.removeEventListener("keydown",this.handleKeyboardOnSearch)),this.selectAll&&(this.selectAll.removeEventListener("click",this.handleClickSelectAll),this.selectAll.removeEventListener("keypress",this.handleClickSelectAll),this.selectAll.removeEventListener("keydown",this.handleKeyboardOnSelectAll)),this.optionsContainer.removeEventListener("keydown",this.handleKeyboardOnOptions),this.checkboxes.forEach(e=>{e.removeEventListener("click",this.handleClickSelectAll),e.removeEventListener("click",this.handleClickOption),e.removeEventListener("keydown",this.handleKeyboardOnOption)}),this.closeButton&&(this.closeButton.removeEventListener("click",this.handleEsc),this.closeButton.removeEventListener("keydown",this.handleKeyboardOnClose)),this.clearAllButton&&(this.clearAllButton.removeEventListener("click",this.handleClickOnClearAll),this.clearAllButton.removeEventListener("keydown",this.handleKeyboardOnClearAll)),this.selectMultiple&&this.selectMultiple.remove(),this.select.parentNode.classList.remove("ecl-select__container--hidden")),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOption(e){e.preventDefault(),i(nt,Ze)[Ze](e);var t=e.target.closest(".ecl-checkbox");Array.from(this.select.options).forEach(e=>{e.text===t.getAttribute("data-select-multiple-value")&&(e.selected?(e.selected=!1,e.removeAttribute("selected"),this.selectAll&&(this.selectAll.querySelector("input").checked=!1)):(e.selected=!0,e.setAttribute("selected","true")))}),this.update()}handleClickSelectAll(e){if(e.preventDefault(),this.selectAll&&!this.selectAll.querySelector("input").disabled){var t=i(nt,Ze)[Ze](e),s=Array.from(this.select.options).filter(e=>!e.disabled);Array.from(this.searchContainer.querySelectorAll('[data-visible="true"]')).filter(e=>!e.querySelector("input").disabled).forEach(e=>{e.querySelector("input").checked=t;var i=s.find(t=>t.text===e.getAttribute("data-select-multiple-value"));i&&(i.selected=!!t)}),this.update(),this.trigger("onSelectAll",{selected:s})}}handleFocusout(e){e.relatedTarget&&this.selectMultiple&&!this.selectMultiple.contains(e.relatedTarget)&&"block"===this.searchContainer.style.display?(this.searchContainer.style.display="none",this.input.classList.remove("ecl-select--active"),this.input.setAttribute("aria-expanded",!1)):!e.relatedTarget||this.selectMultiple||this.select.parentNode.contains(e.relatedTarget)||this.select.blur()}handleSearch(e){var t=this.optionsContainer.offsetHeight;this.visibleOptions=[];var i=e.target.value.toLowerCase(),s={};t>0&&(this.optionsContainer.style.height=t+"px"),this.checkboxes.forEach(e=>{if(e.getAttribute("data-select-multiple-value").toLocaleLowerCase().includes(i)){e.setAttribute("data-visible",!0),e.style.display="flex";var t=e.querySelector(".ecl-checkbox__label-text");t.textContent=t.textContent.replace(".cls-1{fill:none}",""),i&&(t.innerHTML=t.textContent.replace(new RegExp(i+"(?!([^<]+)?<)","gi"),"<b>$&</b>")),this.visibleOptions.push(e)}else e.removeAttribute("data-visible"),e.style.display="none"});var n=this.visibleOptions.filter(e=>e.querySelector("input").checked);!this.selectAll||0!==this.visibleOptions.length&&this.visibleOptions.length===n.length?this.selectAll&&(this.selectAll.querySelector("input").checked=!0):this.selectAll.querySelector("input").checked=!1;for(var r,l=this.searchContainer.querySelector(".ecl-select__multiple-no-results"),o=a(this.optionsContainer.getElementsByClassName("ecl-select__multiple-group"));!(r=o()).done;){var h=r.value;h.style.display="none",[...h.children].filter(e=>e.classList.contains("ecl-checkbox")).forEach(e=>{e.hasAttribute("data-visible")&&(e.closest(".ecl-select__multiple-group").style.display="block")})}if(0!==this.visibleOptions.length||l)this.visibleOptions.length>0&&null!==l&&l.parentNode.removeChild(l);else{var d=document.createElement("div"),u=document.createElement("span");d.classList.add("ecl-select__multiple-no-results"),u.innerHTML=this.textNoResults,d.appendChild(u),this.optionsContainer.appendChild(d)}(0===i.length?(this.checkboxes.forEach(e=>{e.setAttribute("data-visible",!0),e.style.display="flex"}),this.selectAll&&(this.selectAll.classList.remove("ecl-checkbox--disabled"),this.selectAll.querySelector("input").disabled=!1)):0!==i.length&&this.selectAll&&(this.selectAll.classList.add("ecl-checkbox--disabled"),this.selectAll.querySelector("input").disabled=!0),this.visibleOptions.length>0)?s={results:this.visibleOptions.map(e=>{var t=null,i=c(".ecl-checkbox__label-text",e);return i&&(t=i.innerHTML.replace(/<\/?b>/g,"")),t||""}),text:e.target.value.toLowerCase()}:s={results:"none",text:e.target.value.toLowerCase()};this.trigger("onSearch",s)}handleClickOutside(e){e.target&&this.selectMultiple&&!this.selectMultiple.contains(e.target)&&"block"===this.searchContainer.style.display&&(this.searchContainer.style.display="none",this.input.classList.remove("ecl-select--active"),this.input.setAttribute("aria-expanded",!1))}handleKeyboardOnSelect(e){switch(e.key){case"Escape":e.preventDefault(),this.handleEsc(e);break;case" ":case"Enter":this.multiple&&(e.preventDefault(),this.handleToggle(e),this.search?this.search.focus():this.selectAll?this.selectAll.firstChild.focus():this.checkboxes[0].firstChild.focus());break;case"ArrowDown":this.multiple&&(e.preventDefault(),this.isOpen||this.handleToggle(e),this.search?this.search.focus():this.selectAll?this.selectAll.firstChild.focus():this.checkboxes[0].firstChild.focus())}}handleKeyboardOnSelectAll(e){switch(e.key){case"Escape":e.preventDefault(),this.handleEsc(e);break;case"ArrowDown":e.preventDefault(),this.visibleOptions.length>0?this.visibleOptions[0].querySelector("input").focus():this.input.focus();break;case"ArrowUp":e.preventDefault(),this.search?this.search.focus():(this.input.focus(),this.handleToggle(e));break;case"Tab":e.preventDefault(),e.shiftKey?this.search&&this.search.focus():this.visibleOptions.length>0?this.visibleOptions[0].querySelector("input").focus():this.input.focus()}}handleKeyboardOnOptions(e){switch(e.key){case"Escape":e.preventDefault(),this.handleEsc(e);break;case"ArrowDown":e.preventDefault(),i(this,st)[st]("down");break;case"ArrowUp":e.preventDefault(),i(this,st)[st]("up");break;case"Tab":e.preventDefault(),e.shiftKey?i(this,st)[st]("up"):i(this,st)[st]("down")}}handleKeyboardOnSearch(e){switch(e.key){case"Escape":e.preventDefault(),this.handleEsc(e);break;case"ArrowDown":e.preventDefault(),!this.selectAll||this.selectAll.querySelector("input").disabled?this.visibleOptions.length>0?this.visibleOptions[0].querySelector("input").focus():this.input.focus():this.selectAll.querySelector("input").focus();break;case"ArrowUp":e.preventDefault(),this.input.focus(),this.handleToggle(e)}}handleKeyboardOnOption(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.handleClickOption(e))}handleKeyboardOnClearAll(e){switch(e.preventDefault(),e.key){case"Enter":case" ":this.handleClickOnClearAll(e),this.trigger("onReset",e),this.input.focus();break;case"ArrowDown":this.input.focus();break;case"ArrowUp":this.closeButton?this.closeButton.focus():this.visibleOptions.length>0?this.visibleOptions[this.visibleOptions.length-1].querySelector("input").focus():this.search?this.search.focus():(this.input.focus(),this.handleToggle(e));break;case"Tab":e.shiftKey?this.closeButton?this.closeButton.focus():this.visibleOptions.length>0?this.visibleOptions[this.visibleOptions.length-1].querySelector("input").focus():this.search?this.search.focus():(this.input.focus(),this.handleToggle(e)):(this.input.focus(),this.handleToggle(e))}}handleKeyboardOnClose(e){switch(e.preventDefault(),e.key){case"Enter":case" ":this.handleEsc(e),this.input.focus();break;case"ArrowUp":this.visibleOptions.length>0?this.visibleOptions[this.visibleOptions.length-1].querySelector("input").focus():(this.input.focus(),this.handleToggle(e));break;case"ArrowDown":this.clearAllButton?this.clearAllButton.focus():(this.input.focus(),this.handleToggle(e));break;case"Tab":e.shiftKey?this.visibleOptions.length>0?this.visibleOptions[this.visibleOptions.length-1].querySelector("input").focus():(this.input.focus(),this.handleToggle(e)):this.clearAllButton?this.clearAllButton.focus():(this.input.focus(),this.handleToggle(e))}}handleEsc(e){this.multiple?(e.preventDefault(),this.searchContainer.style.display="none",this.input.setAttribute("aria-expanded",!1),this.input.blur(),this.input.classList.remove("ecl-select--active")):this.select.classList.remove("ecl-select--active")}handleClickOnClearAll(e){e.preventDefault(),Array.from(this.select.options).forEach(e=>{this.selectMultiple.querySelector('[data-select-multiple-value="'+e.text+'"]').querySelector(".ecl-checkbox__input").checked=!1,e.selected=!1}),this.selectAll&&(this.selectAll.querySelector(".ecl-checkbox__input").checked=!1),this.update(),this.trigger("onReset",e)}resetForm(){this.multiple&&setTimeout(()=>{Array.from(this.select.options).forEach(e=>{this.selectMultiple.querySelector('[data-select-multiple-value="'+e.text+'"]').querySelector(".ecl-checkbox__input").checked?e.selected=!0:e.selected=!1}),this.update(0)},10)}}function at(){var e=Array.from(this.select.options).filter(e=>e.selected).length;e>0?(this.selectionCount.querySelector("span").innerHTML=e,this.selectionCount.classList.add("ecl-select-multiple-selections-counter--visible"),this.dropDownToolbar&&(this.dropDownToolbar.style.display="flex")):(this.selectionCount.classList.remove("ecl-select-multiple-selections-counter--visible"),this.dropDownToolbar&&(this.dropDownToolbar.style.display="none")),e>=100&&this.selectionCount.classList.add("ecl-select-multiple-selections-counter--xxl")}function rt(){Array.from(this.select.options).forEach(e=>{if("OPTGROUP"===e.parentNode.tagName){var t=e.parentNode.getAttribute("label"),i=e.getAttribute("label")||e.textContent;t&&i&&e.setAttribute("aria-label",i+" - "+t)}})}function lt(){var e=Array.from(this.select.options).filter(e=>e.selected).map(e=>e.text).join("|");this.input.innerHTML=e||this.textDefault||"",""!==e&&this.label?this.label.setAttribute("aria-label",this.label.innerText+" "+e):""===e&&this.label&&this.label.removeAttribute("aria-label"),this.trigger("onSelection",{selected:e}),this.select.dispatchEvent(new window.Event("change",{bubbles:!0}))}function ot(e){var t=document.activeElement,i=t.parentElement.parentElement.classList.contains("ecl-select__multiple-group")?Array.from(t.parentElement.parentElement.parentElement.querySelectorAll(".ecl-checkbox__input")):Array.from(t.parentElement.parentElement.querySelectorAll(".ecl-checkbox__input")),s=i.indexOf(t);if("down"===e){var n=i.splice(s+1,i.length).filter(e=>!e.disabled&&"none"!==e.parentElement.style.display);n.length>0?n[0].focus():this.dropDownToolbar&&"flex"===this.dropDownToolbar.style.display&&this.dropDownToolbar.firstChild.focus()}else{var a=i.splice(0,s).filter(e=>!e.disabled&&"none"!==e.parentElement.style.display);a.length>0?a[a.length-1].focus():(this.optionsContainer.scrollTop=0,this.selectAll&&!this.selectAll.querySelector("input").disabled?this.selectAll.querySelector("input").focus():this.search?this.search.focus():(this.input.focus(),this.handleToggle()))}}Be=nt,Object.defineProperty(nt,$e,{value:function(e){return Math.random().toString(36).substr(2,e)}}),Object.defineProperty(nt,Ze,{value:function(e){var t=e.target.closest(".ecl-checkbox").querySelector("input");return t.checked=!t.checked,t.checked}}),Object.defineProperty(nt,Je,{value:function(){var e=document.createElement("div");e.classList.add("ecl-select__icon");var t=document.createElement("button");t.classList.add("ecl-button","ecl-button--tertiary","ecl-button--icon-only"),t.setAttribute("tabindex","-1");var s=document.createElement("span");s.classList.add("ecl-button__container");var n=document.createElement("span");n.classList.add("ecl-button__label"),n.textContent="Toggle dropdown",s.appendChild(n);var a=i(Be,Xe)[Xe]("corner-arrow","ecl-icon ecl-icon--xs ecl-icon--rotate-180");return s.appendChild(a),t.appendChild(s),e.appendChild(t),e}}),Object.defineProperty(nt,Qe,{value:function(e,t){if(!e||!t)return"";var s=e.id,n=e.text,a=e.disabled,r=e.selected,l=e.extraClass;if(!s||!n)return"";var o=document.createElement("div"),h=document.createElement("input"),c=document.createElement("label"),d=document.createElement("span"),u=document.createElement("span");return l&&o.classList.add(l),r&&(h.checked=!0),a&&(o.classList.add("ecl-checkbox--disabled"),d.classList.add("ecl-checkbox__box--disabled"),h.setAttribute("disabled",a)),o.classList.add("ecl-checkbox"),o.setAttribute("data-select-multiple-value",n),h.classList.add("ecl-checkbox__input"),h.setAttribute("type","checkbox"),h.setAttribute("id",t+"-"+s),h.setAttribute("name",t+"-"+s),o.appendChild(h),c.classList.add("ecl-checkbox__label"),c.setAttribute("for",t+"-"+s),d.classList.add("ecl-checkbox__box"),d.setAttribute("aria-hidden",!0),d.appendChild(i(Be,Xe)[Xe]("check","ecl-icon ecl-icon--s ecl-checkbox__icon")),c.appendChild(d),u.classList.add("ecl-checkbox__label-text"),u.innerHTML=n,c.appendChild(u),o.appendChild(c),o}}),Object.defineProperty(nt,Xe,{value:function(e,t){var i=document.createElement("span");return i.setAttribute("class","wt-icon--"+e+" "+t),i}});class ht{static autoInit(e,t){var i=(void 0===t?{}:t).SITE_HEADER_CORE,s=new ht(e,void 0===i?{}:i);return s.init(),e.ECLSiteHeader=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.containerSelector,n=void 0===s?"[data-ecl-site-header-top]":s,a=i.languageLinkSelector,r=void 0===a?"[data-ecl-language-selector]":a,l=i.languageListOverlaySelector,o=void 0===l?"[data-ecl-language-list-overlay]":l,h=i.languageListEuSelector,c=void 0===h?"[data-ecl-language-list-eu]":h,d=i.languageListNonEuSelector,u=void 0===d?"[data-ecl-language-list-non-eu]":d,m=i.languageListContentSelector,p=void 0===m?"[data-ecl-language-list-content]":m,v=i.closeOverlaySelector,g=void 0===v?"[data-ecl-language-list-close]":v,b=i.searchToggleSelector,f=void 0===b?"[data-ecl-search-toggle]":b,y=i.searchFormSelector,L=void 0===y?"[data-ecl-search-form]":y,k=i.loginToggleSelector,E=void 0===k?"[data-ecl-login-toggle]":k,C=i.loginBoxSelector,w=void 0===C?"[data-ecl-login-box]":C,S=i.notificationSelector,A=void 0===S?"[data-ecl-site-header-notification]":S,_=i.attachClickListener,x=void 0===_||_,O=i.attachKeyListener,T=void 0===O||O,M=i.attachResizeListener,P=void 0===M||M,I=i.tabletBreakpoint,B=void 0===I?768:I,N=i.customActionToggleSelector,D=void 0===N?"[data-ecl-custom-action]":N,F=i.customActionOverlaySelector,R=void 0===F?"[data-ecl-custom-action-overlay]":F,z=i.customActionCloseSelector,H=void 0===z?"[data-ecl-custom-action-close]":z;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.containerSelector=n,this.languageLinkSelector=r,this.languageListOverlaySelector=o,this.languageListEuSelector=c,this.languageListNonEuSelector=u,this.languageListContentSelector=p,this.closeOverlaySelector=g,this.searchToggleSelector=f,this.searchFormSelector=L,this.loginToggleSelector=E,this.notificationSelector=A,this.loginBoxSelector=w,this.attachClickListener=x,this.attachKeyListener=T,this.attachResizeListener=P,this.tabletBreakpoint=B,this.customActionToggleSelector=D,this.customActionOverlaySelector=R,this.customActionCloseSelector=H,this.languageMaxColumnItems=8,this.languageLink=null,this.languageListOverlay=null,this.languageListEu=null,this.languageListNonEu=null,this.languageListContent=null,this.close=null,this.focusTrap=null,this.searchToggle=null,this.searchForm=null,this.loginToggle=null,this.loginBox=null,this.resizeTimer=null,this.direction=null,this.notificationContainer=null,this.customActionToggle=null,this.customActionOverlay=null,this.customActionClose=null,this.customActionFocusTrap=null,this.openOverlay=this.openOverlay.bind(this),this.closeOverlay=this.closeOverlay.bind(this),this.toggleOverlay=this.toggleOverlay.bind(this),this.toggleSearch=this.toggleSearch.bind(this),this.toggleLogin=this.toggleLogin.bind(this),this.setLoginArrow=this.setLoginArrow.bind(this),this.setSearchArrow=this.setSearchArrow.bind(this),this.handleKeyboardLanguage=this.handleKeyboardLanguage.bind(this),this.handleKeyboardGlobal=this.handleKeyboardGlobal.bind(this),this.handleClickGlobal=this.handleClickGlobal.bind(this),this.handleResize=this.handleResize.bind(this),this.setLanguageListHeight=this.setLanguageListHeight.bind(this),this.handleNotificationClose=this.handleNotificationClose.bind(this),this.openCustomAction=this.openCustomAction.bind(this),this.closeCustomAction=this.closeCustomAction.bind(this),this.toggleCustomAction=this.toggleCustomAction.bind(this),this.handleKeyboardCustomAction=this.handleKeyboardCustomAction.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.arrowSize="0.5rem",this.attachKeyListener&&document.addEventListener("keyup",this.handleKeyboardGlobal),this.attachClickListener&&document.addEventListener("click",this.handleClickGlobal),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.container=c(this.containerSelector),this.languageLink=c(this.languageLinkSelector),this.languageListOverlay=c(this.languageListOverlaySelector),this.languageListEu=c(this.languageListEuSelector),this.languageListNonEu=c(this.languageListNonEuSelector),this.languageListContent=c(this.languageListContentSelector),this.close=c(this.closeOverlaySelector),this.notification=c(this.notificationSelector),this.direction=getComputedStyle(this.element).direction,"rtl"===this.direction&&this.element.classList.add("ecl-site-header--rtl"),this.languageListOverlay&&(this.focusTrap=ce(this.languageListOverlay,{onDeactivate:this.closeOverlay,allowOutsideClick:!0})),this.attachClickListener&&this.languageLink&&this.languageLink.addEventListener("click",this.toggleOverlay),this.attachClickListener&&this.close&&this.close.addEventListener("click",this.toggleOverlay),this.attachKeyListener&&this.languageLink&&this.languageLink.addEventListener("keydown",this.handleKeyboardLanguage),this.searchToggle=c(this.searchToggleSelector),this.searchForm=c(this.searchFormSelector),this.attachClickListener&&this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=c(this.loginToggleSelector),this.loginBox=c(this.loginBoxSelector),this.attachClickListener&&this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin),this.customActionToggle=c(this.customActionToggleSelector),this.customActionOverlay=c(this.customActionOverlaySelector),this.customActionClose=c(this.customActionCloseSelector),this.customActionOverlay&&(this.customActionFocusTrap=ce(this.customActionOverlay,{onDeactivate:this.closeCustomAction,allowOutsideClick:!0})),this.attachClickListener&&this.customActionToggle&&this.customActionToggle.addEventListener("click",this.toggleCustomAction),this.attachClickListener&&this.customActionClose&&this.customActionClose.addEventListener("click",this.toggleCustomAction),this.attachKeyListener&&this.customActionToggle&&this.customActionToggle.addEventListener("keydown",this.handleKeyboardCustomAction),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this),this.notification&&(this.notificationContainer=this.notification.closest(".ecl-site-header__notification"),setTimeout(()=>{var e=ECL.components.get(this.notification);e&&e.on("onClose",this.handleNotificationClose)},0))}destroy(){this.attachClickListener&&this.languageLink&&this.languageLink.removeEventListener("click",this.toggleOverlay),this.focusTrap&&this.focusTrap.deactivate(),this.attachKeyListener&&this.languageLink&&this.languageLink.removeEventListener("keydown",this.handleKeyboardLanguage),this.attachClickListener&&this.close&&this.close.removeEventListener("click",this.toggleOverlay),this.attachClickListener&&this.searchToggle&&this.searchToggle.removeEventListener("click",this.toggleSearch),this.attachClickListener&&this.loginToggle&&this.loginToggle.removeEventListener("click",this.toggleLogin),this.attachClickListener&&this.customActionToggle&&this.customActionToggle.removeEventListener("click",this.toggleCustomAction),this.customActionFocusTrap&&this.customActionFocusTrap.deactivate(),this.attachKeyListener&&this.customActionToggle&&this.customActionToggle.removeEventListener("keydown",this.handleKeyboardCustomAction),this.attachClickListener&&this.customActionClose&&this.customActionClose.removeEventListener("click",this.toggleCustomAction),this.attachKeyListener&&document.removeEventListener("keyup",this.handleKeyboardGlobal),this.attachClickListener&&document.removeEventListener("click",this.handleClickGlobal),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),this.element.classList.remove("ecl-site-header--rtl"),ECL.components.delete(this.element))}updateOverlayPosition(e,t,i){if(void 0===i&&(i="--ecl-overlay-arrow-position"),e&&t&&this.container){if(e===this.languageListOverlay){if(this.languageListEu){var s=h(".ecl-site-header__language-item",this.languageListEu),n=Math.ceil(s.length/this.languageMaxColumnItems);n>1&&this.languageListEu.classList.add("ecl-site-header__language-category--"+n+"-col")}if(this.languageListNonEu){var a=h(".ecl-site-header__language-item",this.languageListNonEu),r=Math.ceil(a.length/this.languageMaxColumnItems);r>1&&this.languageListNonEu.classList.add("ecl-site-header__language-category--"+r+"-col")}this.languageListEu?this.languageListEu.parentNode.classList.remove("ecl-site-header__language-content--stack"):this.languageListNonEu&&this.languageListNonEu.parentNode.classList.remove("ecl-site-header__language-content--stack")}e.classList.remove("ecl-site-header__language-container--push-right","ecl-site-header__language-container--push-left","ecl-site-header__language-container--full"),e.style.removeProperty(i),e.style.removeProperty("right"),e.style.removeProperty("left");var l=e.getBoundingClientRect(),o=this.container.getBoundingClientRect(),c=window.innerWidth,d=t.getBoundingClientRect();if(e===this.languageListOverlay&&l.width>o.width&&(this.languageListEu?this.languageListEu.parentNode.classList.add("ecl-site-header__language-content--stack"):this.languageListNonEu&&this.languageListNonEu.parentNode.classList.add("ecl-site-header__language-content--stack")),window.innerWidth<this.tabletBreakpoint){e.classList.add("ecl-site-header__language-container--full");var u=(l=e.getBoundingClientRect()).right-d.right+d.width/2;e.style.setProperty(i,"calc("+u+"px - "+this.arrowSize+")")}else if("ltr"===this.direction&&l.right>c){e.classList.add("ecl-site-header__language-container--push-right"),e.style.setProperty("right","calc(-"+o.right+"px + "+d.right+"px)");var m=o.right-d.right+d.width/2;e.style.setProperty(i,"calc("+m+"px - "+this.arrowSize+")")}else if("rtl"===this.direction&&l.left<0){e.classList.add("ecl-site-header__language-container--push-left"),e.style.setProperty("left","calc(-"+d.left+"px + "+o.left+"px)");var p=d.right-o.left-d.width/2;e.style.setProperty(i,p+"px")}}}updateOverlay(){this.languageListOverlay&&this.languageLink&&this.updateOverlayPosition(this.languageListOverlay,this.languageLink)}handleNotificationClose(){this.notificationContainer&&this.notificationContainer.remove()}setLanguageListHeight(){var e=window.innerHeight;if(this.languageListContent){var t=e-this.languageListContent.getBoundingClientRect().top;t>0&&(this.languageListContent.style.maxHeight=t+"px")}}openOverlay(){this.languageListOverlay.hidden=!1,this.languageListOverlay.setAttribute("aria-modal","true"),this.languageLink.setAttribute("aria-expanded","true"),this.setLanguageListHeight()}closeOverlay(){this.languageListOverlay.hidden=!0,this.languageListOverlay.removeAttribute("aria-modal"),this.languageLink.setAttribute("aria-expanded","false")}toggleOverlay(e){this.languageListOverlay&&this.focusTrap&&(e.preventDefault(),this.languageListOverlay.hasAttribute("hidden")?(this.openOverlay(),this.updateOverlayPosition(this.languageListOverlay,this.languageLink),this.focusTrap.activate()):this.focusTrap.deactivate())}toggleSearch(e){if(this.searchForm){e.preventDefault();var t="true"===this.searchToggle.getAttribute("aria-expanded");this.loginToggle&&"true"===this.loginToggle.getAttribute("aria-expanded")&&this.toggleLogin(e),this.searchToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.searchForm.classList.remove("ecl-site-header__search--active"):(this.searchForm.classList.add("ecl-site-header__search--active"),this.setSearchArrow())}}setLoginArrow(){if(0===this.loginBox.getBoundingClientRect().x){var e=this.loginToggle.getBoundingClientRect(),t=document.documentElement.clientWidth-e.right+e.width/2;this.loginBox.style.setProperty("--ecl-login-arrow-position","calc("+t+"px - "+this.arrowSize+")")}}setSearchArrow(){if(0===this.searchForm.getBoundingClientRect().x){var e=this.searchToggle.getBoundingClientRect(),t=document.documentElement.clientWidth-e.right+e.width/2;this.searchForm.style.setProperty("--ecl-search-arrow-position","calc("+t+"px - "+this.arrowSize+")")}}toggleLogin(e){if(this.loginBox){e.preventDefault();var t="true"===this.loginToggle.getAttribute("aria-expanded");this.searchToggle&&"true"===this.searchToggle.getAttribute("aria-expanded")&&this.toggleSearch(e),this.loginToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.loginBox.classList.remove("ecl-site-header__login-box--active"):(this.loginBox.classList.add("ecl-site-header__login-box--active"),this.setLoginArrow())}}handleKeyboardLanguage(e){32!==e.keyCode&&"Enter"!==e.key||this.toggleOverlay(e)}handleKeyboardGlobal(e){if(this.languageLink){var t=this.languageLink.getAttribute("aria-expanded");"Escape"!==e.key&&"Esc"!==e.key||("true"===t&&this.toggleOverlay(e),this.customActionToggle&&"true"===this.customActionToggle.getAttribute("aria-expanded")&&this.toggleCustomAction(e))}}handleClickGlobal(e){if(this.languageLink||this.searchToggle||this.loginToggle){var t=this.languageLink&&this.languageLink.getAttribute("aria-expanded"),i=this.loginToggle&&"true"===this.loginToggle.getAttribute("aria-expanded"),s=this.searchToggle&&"true"===this.searchToggle.getAttribute("aria-expanded");"true"===t&&(this.languageListOverlay.contains(e.target)||this.languageLink.contains(e.target)||this.toggleOverlay(e)),i&&(this.loginBox.contains(e.target)||this.loginToggle.contains(e.target)||this.toggleLogin(e)),s&&(this.searchForm.contains(e.target)||this.searchToggle.contains(e.target)||this.toggleSearch(e)),this.customActionToggle&&"true"===this.customActionToggle.getAttribute("aria-expanded")&&(this.customActionOverlay.contains(e.target)||this.customActionToggle.contains(e.target)||this.toggleCustomAction(e))}}handleResize(){this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.languageListOverlay&&!this.languageListOverlay.hasAttribute("hidden")&&this.updateOverlayPosition(this.languageListOverlay,this.languageLink),this.customActionOverlay&&!this.customActionOverlay.hasAttribute("hidden")&&this.updateOverlayPosition(this.customActionOverlay,this.customActionToggle,"--ecl-overlay-arrow-position"),this.loginBox&&this.loginBox.classList.contains("ecl-site-header__login-box--active")&&this.setLoginArrow(),this.searchForm&&this.searchForm.classList.contains("ecl-site-header__search--active")&&this.setSearchArrow()},200)}openCustomAction(){this.customActionOverlay&&(this.customActionOverlay.hidden=!1,this.customActionOverlay.setAttribute("aria-modal","true"),this.customActionToggle.setAttribute("aria-expanded","true"))}closeCustomAction(){this.customActionOverlay&&(this.customActionOverlay.hidden=!0,this.customActionOverlay.removeAttribute("aria-modal"),this.customActionToggle.setAttribute("aria-expanded","false"))}toggleCustomAction(e){this.customActionOverlay&&this.customActionFocusTrap&&(e.preventDefault(),this.customActionOverlay.hasAttribute("hidden")?(this.openCustomAction(),this.updateOverlayPosition(this.customActionOverlay,this.customActionToggle,"--ecl-overlay-arrow-position"),this.customActionFocusTrap.activate()):this.customActionFocusTrap.deactivate())}handleKeyboardCustomAction(e){32!==e.keyCode&&"Enter"!==e.key||this.toggleCustomAction(e)}}class ct{static autoInit(e,t){var i=(void 0===t?{}:t).TABLE,s=new ct(e,void 0===i?{}:i);return s.init(),e.ECLTable=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.sortSelector,n=void 0===s?"[data-ecl-table-sort-toggle]":s,a=i.sortLabelSelectorAsc,r=void 0===a?"data-ecl-table-sort-label-asc":a,l=i.sortLabelSelectorDesc,o=void 0===l?"data-ecl-table-sort-label-desc":l,d=i.sortLabelSelectorDefault,u=void 0===d?"data-ecl-table-sort-label-default":d;if(this.handleClickOnSort=e=>t=>{t.preventDefault();for(var i=e.closest("table"),s=c("tbody",i),n=e.getAttribute("aria-sort"),a=0,r=e.previousElementSibling;r;)a+=r.getAttribute("colspan")?Number(r.getAttribute("colspan")):1,r=r.previousElementSibling;var l,o;"descending"===n?([...h("tr",s)].forEach((e,t)=>{var i=c("[data-ecl-table-order='"+t+"']",s);s.appendChild(i)}),n=null):([...h("tr",s)].sort((l=a,o="ascending"!==n,(e,t)=>{return i=(o?e:t).children[l].textContent,s=(o?t:e).children[l].textContent,""===i||""===s||Number.isNaN(+i)||Number.isNaN(+s)?i.toString().localeCompare(s):i-s;var i,s})).forEach(e=>s.appendChild(e)),n="ascending"===n?"descending":"ascending"),this.sortHeadings.forEach(t=>{n&&t===e?t.setAttribute("aria-sort",n):t.setAttribute("aria-sort","none")});var d="";this.sortButtons.forEach(e=>{switch(n){case"ascending":d=this.sortLabelDesc?this.sortLabelDesc:"";break;case"descending":d=this.sortLabelDefault?this.sortLabelDefault:"";break;default:d=this.sortLabelAsc?this.sortLabelAsc:""}d&&e.setAttribute("aria-label",d)})},!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.sortSelector=n,this.sortLabelSelectorAsc=r,this.sortLabelSelectorDesc=o,this.sortLabelSelectorDefault=u,this.sortLabelAsc="",this.sortLabelDesc="",this.sortHeadings=null,this.sortButtons=[],this.handleClickOnSort=this.handleClickOnSort.bind(this)}static createSortIcon(e){var t=document.createElement("span");return t.setAttribute("class","wt-icon--solid-arrow ecl-table__icon ecl-icon--xs "+e),t}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.sortHeadings=h(this.sortSelector,this.element),this.element.hasAttribute(this.sortLabelSelectorAsc)&&(this.sortLabelAsc=this.element.getAttribute(this.sortLabelSelectorAsc)),this.element.hasAttribute(this.sortLabelSelectorDesc)&&(this.sortLabelDesc=this.element.getAttribute(this.sortLabelSelectorDesc)),this.element.hasAttribute(this.sortLabelSelectorDefault)&&(this.sortLabelDefault=this.element.getAttribute(this.sortLabelSelectorDefault)),this.sortHeadings&&(this.sortHeadings.forEach(e=>{var t=document.createElement("button");t.classList.add("ecl-table__arrow"),this.sortLabelAsc&&t.setAttribute("aria-label",this.sortLabelAsc),t.appendChild(ct.createSortIcon("ecl-table__icon-up")),t.appendChild(ct.createSortIcon("ecl-table__icon-down")),e.appendChild(t),e.addEventListener("click",t=>this.handleClickOnSort(e)(t)),this.sortButtons.push(t)}),this.sortHeadings.forEach(e=>{e.setAttribute("aria-sort","none")}));var e=c("tbody",this.element);[...h("tr",e)].forEach((e,t)=>{e.setAttribute("data-ecl-table-order",t)}),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.sortHeadings&&this.sortHeadings.forEach(e=>{e.removeEventListener("click",t=>this.handleClickOnSort(e)(t))}),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}}class dt{static autoInit(e,t){var i=(void 0===t?{}:t).TABS,s=new dt(e,void 0===i?{}:i);return s.init(),e.ECLTabs=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.containerSelector,n=void 0===s?".ecl-tabs__container":s,a=i.contentSelector,r=void 0===a?"data-ecl-tabs-with-content":a,l=i.listSelector,o=void 0===l?".ecl-tabs__list":l,h=i.listItemsSelector,c=void 0===h?".ecl-tabs__item:not(.ecl-tabs__item--more)":h,d=i.moreItemSelector,m=void 0===d?".ecl-tabs__item--more":d,p=i.moreButtonSelector,v=void 0===p?".ecl-tabs__toggle":p,g=i.moreLabelSelector,b=void 0===g?".ecl-tabs__toggle .ecl-button__label":g,f=i.prevSelector,y=void 0===f?".ecl-tabs__prev":f,L=i.nextSelector,k=void 0===L?".ecl-tabs__next":L,E=i.activeSelector,C=void 0===E?"ecl-tabs__link--active":E,w=i.attachClickListener,S=void 0===w||w,A=i.attachResizeListener,_=void 0===A||A;if(this.supportedEvents=["onToggle"],!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.eventManager=new u,this.containerSelector=n,this.contentSelector=r,this.listSelector=o,this.listItemsSelector=c,this.moreItemSelector=m,this.moreButtonSelector=v,this.moreLabelSelector=b,this.prevSelector=y,this.nextSelector=k,this.activeSelector=C,this.attachClickListener=S,this.attachResizeListener=_,this.container=null,this.list=null,this.listItems=null,this.moreItem=null,this.moreButton=null,this.moreButtonActive=!1,this.moreLabel=null,this.moreLabelValue=null,this.dropdown=null,this.dropdownList=null,this.dropdownItems=null,this.allowShift=!0,this.buttonNextSize=0,this.index=0,this.total=0,this.tabsKey=[],this.firstTab=null,this.lastTab=null,this.direction="ltr",this.isMobile=!1,this.resizeTimer=null,this.tabs=[],this.activeTab=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleClickOnTabs=this.handleClickOnTabs.bind(this),this.handleResize=this.handleResize.bind(this),this.closeMoreDropdown=this.closeMoreDropdown.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this),this.shiftTabs=this.shiftTabs.bind(this),this.handleKeyboardOnTabs=this.handleKeyboardOnTabs.bind(this),this.moveFocus=this.moveFocus.bind(this),this.arrowFocusToTab=this.arrowFocusToTab.bind(this),this.tabsKeyEvents=this.tabsKeyEvents.bind(this),this.handleFocusOnToggle=this.handleFocusOnToggle.bind(this),this.handleMouseDownOnToggle=this.handleMouseDownOnToggle.bind(this),this.handleFocusOnTab=this.handleFocusOnTab.bind(this)}init(){var e=this;if(!ECL)throw new TypeError("Called init but ECL is not present");if(ECL.components=ECL.components||new Map,this.container=c(this.containerSelector,this.element),this.hasContent=this.element.hasAttribute(this.contentSelector),this.list=c(this.listSelector,this.element),this.listItems=h(this.listItemsSelector,this.element),this.moreItem=c(this.moreItemSelector,this.element),this.moreButton=c(this.moreButtonSelector,this.element),this.moreLabel=c(this.moreLabelSelector,this.element),this.moreLabelValue=this.moreLabel.innerText,this.btnPrev=c(this.prevSelector,this.element),this.btnNext=c(this.nextSelector,this.element),this.total=this.listItems.length,this.moreButton&&(this.dropdown=document.createElement("div"),this.dropdown.classList.add("ecl-tabs__dropdown"),this.dropdownList=document.createElement("div"),this.dropdownList.classList.add("ecl-tabs__dropdown-list"),this.listItems.forEach(e=>{var t,i,s=c(".ecl-link",e);if(s){var n=document.createElement("div");n.className="ecl-tabs__item";var a=document.createElement("a");a.className=s.className,a.setAttribute("role","tab"),a.setAttribute("aria-selected","false"),a.setAttribute("tabindex","-1"),a.href=s.getAttribute("href"),a.textContent=null!=(t=null==(i=s.textContent)?void 0:i.trim())?t:"",s.id&&(a.dataset.id=s.id),n.appendChild(a),n.addEventListener("click",this.handleClickOnTabs),this.dropdownList.appendChild(n)}}),this.dropdown.appendChild(this.dropdownList),this.moreItem.appendChild(this.dropdown),this.dropdownItems=h(".ecl-tabs__dropdown .ecl-tabs__item",this.element)),this.btnNext&&(this.buttonNextSize=this.btnNext.getBoundingClientRect().width),this.attachClickListener&&this.moreButton&&(this.moreButton.addEventListener("mousedown",this.handleMouseDownOnToggle),this.moreButton.addEventListener("click",this.handleClickOnToggle),this.moreButton.addEventListener("focus",this.handleFocusOnToggle)),this.attachClickListener&&document&&this.moreButton&&document.addEventListener("click",this.handleClickOutside),this.hasContent){this.listItems.forEach(e=>{var t=c(".ecl-tabs__link",e),i=new URL(t.href);if(i.hash){var s=i.hash.slice(1),n=document.getElementById(s);n&&(n.setAttribute("role","tabpanel"),t.setAttribute("aria-controls",s),t.id&&n.setAttribute("aria-labelledby",t.id)),this.tabs.push({link:t,id:s,content:n}),e.addEventListener("click",this.handleClickOnTabs)}});var t=window.location.hash.slice(1);this.activeTab=null;var i=!!t;if(i&&(this.activeTab=this.tabs.find(e=>e.id===t)),this.activeTab||(this.activeTab=this.tabs.find(e=>e.link.classList.contains(this.activeSelector))),this.activeTab||(this.activeTab=this.tabs[0]),this.activeTab){var s=!1;this.tabs.forEach(e=>{var t=e===this.activeTab;t&&(s=!0),e.link.classList.toggle(this.activeSelector,t),e.link.setAttribute("aria-selected",t?"true":"false"),e.link.setAttribute("tabindex",t?"0":"-1"),e.content&&(e.content.style.display=t?"block":"none",e.content.hasAttribute("z-index")||e.content.setAttribute("z-index",-1))}),this.moreButton&&this.dropdownItems.forEach(e=>{var t,i=e.querySelector("a"),n=(null==(t=new URL(i.href).hash)?void 0:t.slice(1))===this.activeTab.id;i.classList.toggle(this.activeSelector,n),i.setAttribute("aria-selected",n?"true":"false"),n&&!s&&(this.moreButtonActive=!0,this.moreButton.classList.add("ecl-tabs__toggle--active"))}),i&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{var e=this.activeTab.content;e&&null!==e.offsetParent&&e.scrollIntoView({behavior:"smooth",block:"start"})})})}}this.attachClickListener&&this.btnNext&&this.btnNext.addEventListener("click",this.shiftTabs.bind(this,"next",!0)),this.attachClickListener&&this.btnPrev&&this.btnPrev.addEventListener("click",this.shiftTabs.bind(this,"prev",!0)),this.attachResizeListener&&window.addEventListener("resize",this.handleResize);var n=function(t,i){void 0===i&&(i=10),e.list&&e.list.offsetWidth>0?t():i>0&&requestAnimationFrame(()=>n(t,i-1))};requestAnimationFrame(()=>n(()=>this.handleResize())),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}on(e,t){this.eventManager.on(e,t)}trigger(e,t){this.eventManager.trigger(e,t)}destroy(){this.dropdown&&this.dropdown.remove(),this.moreButton&&(this.moreLabel.textContent=this.moreLabelValue,this.moreButton.replaceWith(this.moreButton.cloneNode(!0))),this.btnNext&&this.btnNext.replaceWith(this.btnNext.cloneNode(!0)),this.btnPrev&&this.btnPrev.replaceWith(this.btnPrev.cloneNode(!0)),this.attachClickListener&&document&&this.moreButton&&document.removeEventListener("click",this.handleClickOutside),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.tabsKey&&this.tabsKey.forEach(e=>{e.addEventListener("keydown",this.handleKeyboardOnTabs)}),this.hasContent&&this.tabs.forEach(e=>{e.removeEventListener("click",this.handleClickOnTabs)}),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}shiftTabs(e){this.index="next"===e?this.index+1:this.index-1,this.index>=1?(this.btnPrev.style.display="flex",this.container.classList.add("ecl-tabs__container--left")):(this.btnPrev.style.display="none",this.container.classList.remove("ecl-tabs__container--left")),this.index>=this.total-1?(this.btnNext.style.display="none",this.container.classList.remove("ecl-tabs__container--right")):(this.btnNext.style.display="flex",this.container.classList.add("ecl-tabs__container--right"));var t=0;this.direction=getComputedStyle(this.element).direction,t="rtl"===this.direction?Math.ceil(this.list.offsetWidth-this.listItems[this.index].offsetLeft-this.listItems[this.index].offsetWidth):Math.ceil(this.listItems[this.index].offsetLeft);var i=this.element.getBoundingClientRect().width;this.container.classList.contains("ecl-tabs__container--right")&&(i-=this.buttonNextSize);var s=Math.ceil(this.list.getBoundingClientRect().width-i);t>s&&(this.btnNext.style.display="none",this.container.classList.remove("ecl-tabs__container--right"),t=s),this.list.style.transitionDuration="0.4s","rtl"===this.direction?this.list.style.transform="translate3d("+t+"px, 0px, 0px)":this.list.style.transform="translate3d(-"+t+"px, 0px, 0px)"}handleMouseDownOnToggle(){this.isMouseEvent=!0}handleClickOnToggle(e){this.isMouseEvent=!1,this.dropdown.classList.contains("ecl-tabs__dropdown--show")?this.closeMoreDropdown():this.openMoreDropdown(),this.trigger("onToggle",e)}handleFocusOnToggle(){if(!this.moreButtonActive||this.isMouseEvent||this.isTabEvent)this.isTabEvent=!1;else{this.openMoreDropdown();var e=this.dropdown.querySelector("."+this.activeSelector);e&&e.focus()}}handleFocusOnTab(e){if(this.isMobile){var t=e.currentTarget,i=this.tabsKey.indexOf(t);if(-1!==i)if(this.index=i,this.list.scrollLeft=0,this.container.scrollLeft=0,i>0?(this.btnPrev.style.display="flex",this.container.classList.add("ecl-tabs__container--left")):(this.btnPrev.style.display="none",this.container.classList.remove("ecl-tabs__container--left")),i>=this.total-1?(this.btnNext.style.display="none",this.container.classList.remove("ecl-tabs__container--right")):(this.btnNext.style.display="flex",this.container.classList.add("ecl-tabs__container--right")),i>0){var s=this.btnPrev.getBoundingClientRect().width,n=this.listItems[i].offsetLeft-s;this.list.style.transform="translate3d(-"+n+"px, 0px, 0px)"}else this.list.style.transform="translate3d(0px, 0px, 0px)"}}set onToggle(e){this.onToggleCallback=e}get onToggle(){return this.onToggleCallback}handleClickOnTabs(e){var t=!1,i=new URL(e.target.href),s=i.hash?i.hash.slice(1):null;s&&(e.preventDefault(),this.tabs.forEach(e=>{e.content&&(e.content.style.display=e.id!==s?"none":"block"),e.id!==s?(e.link.classList.remove(this.activeSelector),e.link.setAttribute("aria-selected","false"),e.link.setAttribute("tabindex","-1")):(this.activeTab=e,e.link.classList.add(this.activeSelector),e.link.setAttribute("aria-selected","true"),e.link.setAttribute("tabindex","0"),e.link.closest(".ecl-tabs__item").classList.contains("ecl-tabs__item--hidden")||(t=!0))}),this.moreButton&&(this.moreButtonActive=!1,this.moreButton.classList.remove("ecl-tabs__toggle--active"),this.dropdownItems.forEach(e=>{var i=e.getElementsByTagName("a")[0],n=new URL(i);(n.hash?n.hash.slice(1):null)!==s?(i.classList.remove(this.activeSelector),i.setAttribute("aria-selected","false")):(i.classList.add(this.activeSelector),i.setAttribute("aria-selected","true"),t||(this.moreButtonActive=!0,this.moreButton.classList.add("ecl-tabs__toggle--active")))}),this.moreButton.setAttribute("tabindex",this.moreButtonActive?"0":"-1")),history.replaceState(null,"","#"+s))}handleResize(){"none"===window.getComputedStyle(this.moreButton).display&&this.closeMoreDropdown(),clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{if(this.list.style.transform="translate3d(0px, 0px, 0px)",Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<=480){this.isMobile=!0,this.index=1,this.list.style.transitionDuration="0.4s",this.shiftTabs(this.index),this.moreItem&&this.moreItem.classList.add("ecl-tabs__item--hidden"),this.moreButton&&this.moreButton.classList.add("ecl-tabs__toggle--hidden");var e=0;return this.listItems.forEach(t=>{t.classList.remove("ecl-tabs__item--hidden"),e+=Math.ceil(t.getBoundingClientRect().width)}),this.list.style.width=e+"px",this.btnNext.style.display="flex",this.container.classList.add("ecl-tabs__container--right"),this.btnPrev.style.display="none",this.container.classList.remove("ecl-tabs__container--left"),void this.tabsKeyEvents()}this.isMobile=!1,this.btnNext.style.display="none",this.container.classList.remove("ecl-tabs__container--right"),this.btnPrev.style.display="none",this.container.classList.remove("ecl-tabs__container--left"),this.list.style.width="auto";var t=this.moreButton.getBoundingClientRect().width+25,i=[],s=this.list.getBoundingClientRect().width||this.list.offsetWidth;this.moreButtonActive=!1,this.listItems.forEach((e,n)=>{e.classList.remove("ecl-tabs__item--hidden"),s>=t+e.getBoundingClientRect().width&&!i.includes(n-1)?t+=e.getBoundingClientRect().width:(e.classList.add("ecl-tabs__item--hidden"),e.childNodes[0].classList.contains("ecl-tabs__link--active")&&(this.moreButtonActive=!0),i.push(n))}),this.moreButtonActive?(this.moreButton.classList.add("ecl-tabs__toggle--active"),this.moreButton.setAttribute("tabindex","0")):(this.moreButton.classList.remove("ecl-tabs__toggle--active"),this.moreButton.setAttribute("tabindex","-1")),i.length?(this.moreItem.classList.remove("ecl-tabs__item--hidden"),this.moreButton.classList.remove("ecl-tabs__toggle--hidden"),this.moreLabel.textContent=this.moreLabelValue.replace("%d",i.length),this.dropdownItems.forEach((e,t)=>{i.includes(t)?e.classList.remove("ecl-tabs__item--hidden"):e.classList.add("ecl-tabs__item--hidden")})):(this.moreItem.classList.add("ecl-tabs__item--hidden"),this.moreButton.classList.add("ecl-tabs__toggle--hidden")),this.tabsKeyEvents()},100)}tabsKeyEvents(){this.tabsKey=[],this.listItems.forEach((e,t,i)=>{var s=null;if(e.classList.contains("ecl-tabs__item--hidden")){var n=this.dropdownItems[t];s=c(".ecl-tabs__link",n)}else s=c(".ecl-tabs__link",e);s.addEventListener("keydown",this.handleKeyboardOnTabs),s.addEventListener("focus",this.handleFocusOnTab),this.tabsKey.push(s),0===t&&(this.firstTab=s),t===i.length-1&&(this.lastTab=s)})}closeMoreDropdown(){this.moreButton.setAttribute("aria-expanded",!1),this.dropdown.classList.remove("ecl-tabs__dropdown--show")}openMoreDropdown(){this.moreButton.setAttribute("aria-expanded",!0),this.dropdown.classList.add("ecl-tabs__dropdown--show")}handleClickOutside(e){for(var t=e.target;t;){if(t===this.moreButton)return;t=t.parentNode}this.closeMoreDropdown()}handleKeyboardOnTabs(e){var t=e.currentTarget;switch(e.key){case"ArrowLeft":this.arrowFocusToTab(t,"prev");break;case"ArrowRight":this.arrowFocusToTab(t,"next");break;case"Home":this.moveFocus(this.firstTab);break;case"End":this.moveFocus(this.lastTab);break;case" ":this.handleClickOnTabs(e);break;case"Escape":this.closeMoreDropdown();break;case"Tab":this.isTabEvent=!0,this.closeMoreDropdown(),this.moreButton.setAttribute("tabindex","-1"),setTimeout(()=>{this.isTabEvent=!1,this.moreButtonActive&&this.moreButton.setAttribute("tabindex","0")},0),!e.shiftKey&&this.hasContent&&this.activeTab.content&&this.activeTab.content.focus()}}moveFocus(e){e.closest(".ecl-tabs__dropdown")?this.openMoreDropdown():this.closeMoreDropdown(),e.focus()}arrowFocusToTab(e,t){var i=this.tabsKey.indexOf(e);i="next"===t?i+1:i-1;var s="next"===t?this.firstTab:this.lastTab,n="next"===t?this.lastTab:this.firstTab;this.isMobile?e!==n&&this.moveFocus(this.tabsKey[i]):e===n?this.moveFocus(s):this.moveFocus(this.tabsKey[i])}}class ut{static autoInit(e,t){var i=(void 0===t?{}:t).TIMELINE,s=new ut(e,void 0===i?{}:i);return s.init(),e.ECLTimeline=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.buttonSelector,n=void 0===s?"[data-ecl-timeline-button]":s,a=i.labelSelector,r=void 0===a?"[data-ecl-label]":a,l=i.labelExpanded,o=void 0===l?"data-ecl-label-expanded":l,h=i.labelCollapsed,c=void 0===h?"data-ecl-label-collapsed":h,d=i.attachClickListener,u=void 0===d||d,m=i.attachResizeListener,p=void 0===m||m;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.buttonSelector=n,this.labelSelector=r,this.labelExpanded=o,this.labelCollapsed=c,this.attachClickListener=u,this.attachResizeListener=p,this.button=null,this.label=null,this.timelineItems=null,this.resizeTimer=null,this.handleClickOnButton=this.handleClickOnButton.bind(this),this.handleResize=this.handleResize.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");ECL.components=ECL.components||new Map,this.button=c(this.buttonSelector,this.element),this.timelineItems=h(".ecl-timeline__item",this.element),this.label=c(this.labelSelector,this.element),this.attachClickListener&&this.button&&this.button.addEventListener("click",this.handleClickOnButton),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),setTimeout(()=>{this.adjustLabelHeights()},100),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){this.attachClickListener&&this.button&&this.button.removeEventListener("click",this.handleClickOnButton),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.resizeTimer&&clearTimeout(this.resizeTimer),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}handleClickOnButton(){var e="true"===this.button.getAttribute("aria-expanded");if(this.button.setAttribute("aria-expanded",e?"false":"true"),e)this.element.removeAttribute("data-ecl-timeline-expanded"),this.button.blur(),this.button.focus();else{this.element.setAttribute("data-ecl-timeline-expanded","true");var t=c(".ecl-timeline__item--collapsed",this.element);t&&(t.setAttribute("tabindex","-1"),t.focus())}return this.label&&!e&&this.button.hasAttribute(this.labelExpanded)?this.label.innerHTML=this.button.getAttribute(this.labelExpanded):this.label&&e&&this.button.hasAttribute(this.labelCollapsed)&&(this.label.innerHTML=this.button.getAttribute(this.labelCollapsed)),this.adjustLabelHeights(),this}handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.adjustLabelHeights()},250)}adjustLabelHeights(){this.timelineItems&&this.timelineItems.forEach(e=>{var t=c(".ecl-timeline__label",e);if(e.style.removeProperty("--ecl-timeline-label-height"),t){var i=t.getBoundingClientRect().height;e.style.setProperty("--ecl-timeline-label-height",i+"px")}})}}var mt=0;class pt{static autoInit(e,t){var i=(void 0===t?{}:t).TOOLTIP,s=new pt(e,void 0===i?{}:i);return s.init(),e.ECLTooltip=s,s}constructor(e,t){var i=void 0===t?{}:t,s=i.tooltipSelector,n=void 0===s?"[data-ecl-tooltip], [data-ecl-tooltip-inverted]":s,a=i.attachHoverListener,r=void 0===a||a,l=i.attachResizeListener,o=void 0===l||l,h=i.attachScrollListener,c=void 0===h||h,d=i.attachKeyListener,u=void 0===d||d,m=i.hideDelay,p=void 0===m?300:m;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.tooltipSelector=n,this.attachHoverListener=r,this.attachResizeListener=o,this.attachScrollListener=c,this.attachKeyListener=u,this.hideDelay=p,this.popups=new Map,this.currentTrigger=null,this.currentPopup=null,this.usePopoverApi="popover"in HTMLElement.prototype,this.hideTimeoutId=null,this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.handleFocusIn=this.handleFocusIn.bind(this),this.handleFocusOut=this.handleFocusOut.bind(this),this.handleKeyboardGlobal=this.handleKeyboardGlobal.bind(this),this.hideTooltip=this.hideTooltip.bind(this),this.positionTooltip=this.positionTooltip.bind(this)}init(){if(!ECL)throw new TypeError("Called init but ECL is not present");if(ECL.components=ECL.components||new Map,h(this.tooltipSelector,this.element).forEach(e=>{this.getOrCreatePopup(e)}),this.attachHoverListener&&(this.element.addEventListener("mouseover",this.handleMouseOver),this.element.addEventListener("mouseout",this.handleMouseOut),this.element.addEventListener("focusin",this.handleFocusIn),this.element.addEventListener("focusout",this.handleFocusOut)),this.attachKeyListener){document.addEventListener("keyup",this.handleKeyboardGlobal);try{window.parent!==window&&window.parent.document.addEventListener("keyup",this.handleKeyboardGlobal)}catch(e){}}this.attachResizeListener&&window.addEventListener("resize",this.hideTooltip),this.attachScrollListener&&window.addEventListener("scroll",this.hideTooltip,{capture:!0}),this.element.setAttribute("data-ecl-auto-initialized","true"),ECL.components.set(this.element,this)}destroy(){if(this.attachHoverListener&&(this.element.removeEventListener("mouseover",this.handleMouseOver),this.element.removeEventListener("mouseout",this.handleMouseOut),this.element.removeEventListener("focusin",this.handleFocusIn),this.element.removeEventListener("focusout",this.handleFocusOut)),this.attachKeyListener){document.removeEventListener("keyup",this.handleKeyboardGlobal);try{window.parent!==window&&window.parent.document.removeEventListener("keyup",this.handleKeyboardGlobal)}catch(e){}}this.attachResizeListener&&window.removeEventListener("resize",this.hideTooltip),this.attachScrollListener&&window.removeEventListener("scroll",this.hideTooltip,{capture:!0}),this.clearHideTimeout(),this.popups.forEach((e,t)=>{t.removeAttribute("aria-describedby"),e.parentNode&&e.parentNode.removeChild(e)}),this.popups.clear(),this.element&&(this.element.removeAttribute("data-ecl-auto-initialized"),ECL.components.delete(this.element))}getOrCreatePopup(e){if(this.popups.has(e))return this.popups.get(e);var t="ecl-tooltip-"+mt++,i=document.createElement("span");i.classList.add("ecl-tooltip"),i.setAttribute("id",t),i.setAttribute("role","tooltip"),i.setAttribute("aria-hidden","true"),this.usePopoverApi?i.setAttribute("popover","manual"):i.style.display="none",i.addEventListener("mouseover",()=>this.clearHideTimeout()),i.addEventListener("mouseout",t=>{var s=t.relatedTarget;s&&e.contains(s)||s&&i.contains(s)||this.scheduleHide()}),e.insertAdjacentElement("afterend",i),e.setAttribute("aria-describedby",t);var s=e.getAttribute("title");if(s){if(!e.getAttribute("data-ecl-tooltip")&&!e.getAttribute("data-ecl-tooltip-inverted")){var n=e.hasAttribute("data-ecl-tooltip-inverted")?"data-ecl-tooltip-inverted":"data-ecl-tooltip";e.setAttribute(n,s)}e.removeAttribute("title")}return i.textContent=e.getAttribute("data-ecl-tooltip")||e.getAttribute("data-ecl-tooltip-inverted")||"",this.popups.set(e,i),i}handleMouseOver(e){var t=e.target.closest(this.tooltipSelector);t&&(this.clearHideTimeout(),t!==this.currentTrigger&&this.displayTooltip(t))}handleMouseOut(e){if(this.currentTrigger){var t=e.relatedTarget;t&&this.currentTrigger.contains(t)||t&&this.currentPopup&&this.currentPopup.contains(t)||this.scheduleHide()}}handleFocusIn(e){var t=e.target.closest(this.tooltipSelector);t&&this.displayTooltip(t)}handleFocusOut(){this.currentTrigger&&this.hideTooltip()}scheduleHide(){this.clearHideTimeout(),this.hideTimeoutId=setTimeout(()=>this.hideTooltip(),this.hideDelay)}clearHideTimeout(){null!==this.hideTimeoutId&&(clearTimeout(this.hideTimeoutId),this.hideTimeoutId=null)}handleKeyboardGlobal(e){"Escape"!==e.key&&"Esc"!==e.key||this.hideTooltip()}positionTooltip(e,t){var i=e.getBoundingClientRect();t.style.position="fixed",t.style.left="-9999px",t.style.top="-9999px";var s=t.getBoundingClientRect(),n=i.left+i.width/2,a=n-s.width/2,r=i.top-s.height-8,l=!1;r<0&&(r=i.bottom+8,l=!0),a<0&&(a=0);var o=document.documentElement.clientWidth;a+s.width>o&&(a=o-s.width);var h=n-a;t.style.setProperty("--ecl-tooltip-arrow-left",h+"px"),t.classList.toggle("ecl-tooltip--bottom",l),t.style.top=r+"px",t.style.left=a+"px"}displayTooltip(e){var t=this.getOrCreatePopup(e),i=e.getAttribute("data-ecl-tooltip")||e.getAttribute("data-ecl-tooltip-inverted");i&&(this.currentPopup&&this.currentPopup!==t&&this.hideTooltip(),this.currentTrigger=e,this.currentPopup=t,t.textContent=i,t.classList.toggle("ecl-tooltip--inverted",e.hasAttribute("data-ecl-tooltip-inverted")),t.removeAttribute("aria-hidden"),this.usePopoverApi?t.showPopover():t.style.display="block",this.positionTooltip(e,t))}hideTooltip(){this.clearHideTimeout(),this.currentPopup&&(this.usePopoverApi?this.currentPopup.hidePopover():this.currentPopup.style.display="none",this.currentPopup.setAttribute("aria-hidden","true"),this.currentTrigger=null,this.currentPopup=null)}}var vt={autoInit:function(e){var t=void 0===e?{}:e,i=t.root,s=void 0===i?document:i,n=function(e,t){if(null==e)return{};var i={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(-1!==t.indexOf(s))continue;i[s]=e[s]}return i}(t,d);if(!ECL)throw new TypeError("Called autoInit but ECL is not present");var a=h("[data-ecl-auto-init]",s),r=()=>{a.filter(e=>"true"!==e.getAttribute("data-ecl-auto-initialized")).forEach(e=>{var t=e.getAttribute("data-ecl-auto-init");if(!t)throw new TypeError("(ecl-auto-init) "+t+" data-ecl-auto-init is empty");var i=ECL[t];if("function"!=typeof i)throw new TypeError("(ecl-auto-init) Could not find '"+t+"'");if("function"!=typeof i.autoInit)throw new TypeError("(ecl-auto-init) Could not find autoInit for '"+t+"'");i.autoInit(e,n)})};return r(),{update:()=>r(),destroy:()=>{ECL.components&&ECL.components.forEach((e,t)=>{e.destroy&&(e.destroy(),ECL.components.delete(t))})}}},Banner:m,Carousel:p,CategoryFilter:v,Datepicker:g,Breadcrumb:b,ContentBlock:f,DescriptionList:y,Expandable:L,FileDownload:k,FileUpload:E,Gallery:de,Indicator:ue,InpageNavigation:Se,MediaContainer:Ae,MegaMenu:_e,Menu:Ge,Modal:Ve,NewsTicker:We,Notification:Ue,PageHeaderExpandable:je,Popover:qe,Range:Ye,Select:nt,SiteHeader:ht,Tabs:dt,Table:ct,Timeline:ut,Tooltip:pt};"undefined"!=typeof globalThis?globalThis.ECL=vt:"undefined"!=typeof window&&(window.ECL=vt);export{vt as ECL};ECL.version="5.0.0-RC1";