@20minutes/hela 2.17.7 → 2.17.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/dist/index.es.js +9206 -10765
  2. package/dist/index.umd.cjs +1 -1
  3. package/dist/js/scripts.es.js +97 -71
  4. package/dist/js/scripts.umd.cjs +1 -1
  5. package/dist/scss/abstracts/variables/_token-variables.scss +1 -1
  6. package/dist/src/components/atoms/Ad/Ad.stories.d.ts +1 -2
  7. package/dist/src/components/atoms/Alert/Alert.stories.d.ts +2 -3
  8. package/dist/src/components/atoms/Avatar/Avatar.stories.d.ts +1 -2
  9. package/dist/src/components/atoms/Button/Button.d.ts +1 -1
  10. package/dist/src/components/atoms/Checkbox/Checkbox.stories.d.ts +2 -2
  11. package/dist/src/components/atoms/Icon/SvgSprite.d.ts +1 -2
  12. package/dist/src/components/atoms/IconTooltip/IconTooltip.stories.d.ts +1 -2
  13. package/dist/src/components/atoms/Iframe/Iframe.d.ts +1 -1
  14. package/dist/src/components/atoms/Iframe/Iframe.stories.d.ts +1 -1
  15. package/dist/src/components/atoms/Img/Img.stories.d.ts +1 -2
  16. package/dist/src/components/atoms/Input/Input.stories.d.ts +1 -1
  17. package/dist/src/components/atoms/LabelSection/LabelSection.stories.d.ts +2 -3
  18. package/dist/src/components/atoms/Layout/Flex/Flex.stories.d.ts +1 -2
  19. package/dist/src/components/atoms/Layout/Grid/Grid.stories.d.ts +2 -3
  20. package/dist/src/components/atoms/Layout/index.d.ts +1 -1
  21. package/dist/src/components/atoms/Link/Link.d.ts +1 -1
  22. package/dist/src/components/atoms/Link/Link.stories.d.ts +2 -3
  23. package/dist/src/components/atoms/Modal/Modal.stories.d.ts +1 -2
  24. package/dist/src/components/atoms/RadioButton/RadioButton.stories.d.ts +1 -1
  25. package/dist/src/components/atoms/ScrollToTopButton/ScrollToTopButton.stories.d.ts +164 -165
  26. package/dist/src/components/atoms/Slider/Slider.stories.d.ts +2 -3
  27. package/dist/src/components/atoms/Textarea/Textarea.stories.d.ts +1 -1
  28. package/dist/src/components/atoms/Typography/index.d.ts +1 -1
  29. package/dist/src/components/atoms/index.d.ts +1 -1
  30. package/dist/src/components/molecules/Article/ArticleHeader/ArticleHeader.stories.d.ts +1 -1
  31. package/dist/src/components/molecules/Article/ArticleSummary/ArticleSummary.stories.d.ts +2 -3
  32. package/dist/src/components/molecules/Article/Media/Media.stories.d.ts +1 -1
  33. package/dist/src/components/molecules/Breadcrumb/Breadcrumb.stories.d.ts +3 -4
  34. package/dist/src/components/molecules/Calendar/Calendar.stories.d.ts +1 -1
  35. package/dist/src/components/molecules/Card/CardContainer/CardContainer.stories.d.ts +2 -3
  36. package/dist/src/components/molecules/Card/CardImage/CardImage.stories.d.ts +1 -2
  37. package/dist/src/components/molecules/Card/CardTitle/CardTitle.stories.d.ts +2 -3
  38. package/dist/src/components/molecules/Card/Templates/CardExtraLarge/CardExtraLarge.stories.d.ts +2 -3
  39. package/dist/src/components/molecules/Card/Templates/CardExtraSmall/CardExtraSmall.stories.d.ts +2 -3
  40. package/dist/src/components/molecules/Card/Templates/CardFrame/CardFrame.stories.d.ts +1 -1
  41. package/dist/src/components/molecules/Card/Templates/CardLarge/CardLarge.stories.d.ts +1 -1
  42. package/dist/src/components/molecules/Card/Templates/CardLarge/CardLargeLive/CardLargeLive.stories.d.ts +1 -1
  43. package/dist/src/components/molecules/Card/Templates/CardMedium/CardMedium.stories.d.ts +1 -2
  44. package/dist/src/components/molecules/Card/Templates/CardMost/CardMost.stories.d.ts +1 -1
  45. package/dist/src/components/molecules/Card/Templates/CardMovie/CardMovie.stories.d.ts +2 -3
  46. package/dist/src/components/molecules/Card/Templates/CardNotification/CardNotification.stories.d.ts +2 -3
  47. package/dist/src/components/molecules/Card/Templates/CardSideImage/CardSideImage.stories.d.ts +2 -3
  48. package/dist/src/components/molecules/Card/Templates/CardSmall/CardSmall.stories.d.ts +2 -3
  49. package/dist/src/components/molecules/Card/Templates/CardVertical/CardVertical.stories.d.ts +2 -3
  50. package/dist/src/components/molecules/Card/Templates/CardVideo/CardVideo.stories.d.ts +3 -4
  51. package/dist/src/components/molecules/Card/Templates/CardVideoSmall/CardVideoSmall.stories.d.ts +2 -3
  52. package/dist/src/components/molecules/Card/Templates/CardWithSummary/CardWithSummary.stories.d.ts +1 -1
  53. package/dist/src/components/molecules/Carousel/Carousel.stories.d.ts +2 -3
  54. package/dist/src/components/molecules/Chart/HalfDonut/HalfDonut.stories.d.ts +1 -1
  55. package/dist/src/components/molecules/Comment/Comment.stories.d.ts +1 -1
  56. package/dist/src/components/molecules/Comment/CommentButton.stories.d.ts +1 -1
  57. package/dist/src/components/molecules/Comment/CommentCount.stories.d.ts +1 -1
  58. package/dist/src/components/molecules/DarkModeSwitch/DarkModeSwitch.stories.d.ts +2 -2
  59. package/dist/src/components/molecules/DiscoverList/DiscoverList.stories.d.ts +165 -166
  60. package/dist/src/components/molecules/Elections/SearchBanner/SearchBanner.d.ts +0 -1
  61. package/dist/src/components/molecules/Elections/SearchBanner/SearchBanner.stories.d.ts +1 -2
  62. package/dist/src/components/molecules/EmojiToolbar/EmojiToolbar.stories.d.ts +1 -1
  63. package/dist/src/components/molecules/Expandable/Expandable.stories.d.ts +2 -3
  64. package/dist/src/components/molecules/Header/HeaderMini/HeaderMini.stories.d.ts +2 -2
  65. package/dist/src/components/molecules/Header/HeaderPage/HeaderPage.stories.d.ts +2 -3
  66. package/dist/src/components/molecules/ImageSlider/ImageSlider.stories.d.ts +1 -1
  67. package/dist/src/components/molecules/InfoBanner/InfoBanner.stories.d.ts +2 -3
  68. package/dist/src/components/molecules/Legend/Legend.stories.d.ts +1 -1
  69. package/dist/src/components/molecules/ListWithDiode/ListWithDiode.stories.d.ts +2 -3
  70. package/dist/src/components/molecules/Live/LiveQuestion/LiveQuestion.stories.d.ts +1 -1
  71. package/dist/src/components/molecules/LogoutButton/LogoutButton.stories.d.ts +1 -1
  72. package/dist/src/components/molecules/Maps/MapDepartments/MapDepartments.stories.d.ts +3 -4
  73. package/dist/src/components/molecules/Maps/MapDistricts/MapDistricts.stories.d.ts +3 -4
  74. package/dist/src/components/molecules/Maps/MapEurope/MapEurope.stories.d.ts +3 -4
  75. package/dist/src/components/molecules/Maps/MapTownsByDepartments/MapTownsByDepartments.stories.d.ts +1 -1
  76. package/dist/src/components/molecules/MediaLink/MediaLink.stories.d.ts +1 -1
  77. package/dist/src/components/molecules/Menu/Menu.stories.d.ts +2 -2
  78. package/dist/src/components/molecules/MenuList/MenuList.stories.d.ts +3 -4
  79. package/dist/src/components/molecules/Newsletter/Newsletter.stories.d.ts +1 -2
  80. package/dist/src/components/molecules/OrderedListWithNumber/OrderedListWithNumber.stories.d.ts +2 -3
  81. package/dist/src/components/molecules/ReadAlsoBanner/ReadAlsoBanner.stories.d.ts +2 -3
  82. package/dist/src/components/molecules/ShowCover/ShowCover.stories.d.ts +1 -1
  83. package/dist/src/components/molecules/Signature/Signature.stories.d.ts +1 -1
  84. package/dist/src/components/molecules/SubMenu/SubMenu.stories.d.ts +1 -1
  85. package/dist/src/components/molecules/Table/Table.stories.d.ts +2 -3
  86. package/dist/src/components/molecules/TagBar/TagBar.stories.d.ts +2 -3
  87. package/dist/src/components/molecules/TextTooltip/TextTooltip.stories.d.ts +1 -2
  88. package/dist/src/components/molecules/Timeline/Timeline.stories.d.ts +2 -3
  89. package/dist/src/components/molecules/UserPanel/UserPanel.stories.d.ts +2 -2
  90. package/dist/src/components/molecules/VerticalTimeline/VerticalTimeline.stories.d.ts +165 -166
  91. package/dist/src/components/molecules/index.d.ts +1 -1
  92. package/dist/src/components/organisms/Elections/ElectionsResult.stories.d.ts +1 -1
  93. package/dist/src/components/organisms/Footer/Footer.stories.d.ts +2 -2
  94. package/dist/src/components/organisms/Header/Header.stories.d.ts +2 -2
  95. package/dist/src/components/organisms/MostReadArticles/MostReadArticles.stories.d.ts +2 -3
  96. package/dist/src/components/organisms/MostWatchVideos/MostWatchVideos.stories.d.ts +2 -3
  97. package/dist/src/components/organisms/PhotoSwipeGallery/PhotoSwipeGallery.stories.d.ts +1 -1
  98. package/dist/src/components/organisms/ThreeColumnsArticles/ThreeColumnsArticles.stories.d.ts +3 -4
  99. package/dist/src/constants/cssProperties/index.d.ts +1 -1
  100. package/dist/src/constants/index.d.ts +6 -6
  101. package/dist/src/constants/storybook/flexBoxSystemPropsControls.d.ts +1 -1
  102. package/dist/src/constants/storybook/flexItemBoxSystemPropsControls.d.ts +1 -1
  103. package/dist/src/constants/storybook/index.d.ts +6 -6
  104. package/dist/src/constants/storybook/spacingSystemPropsControls.d.ts +1 -1
  105. package/dist/src/constants/storybook/systemPropsControls.d.ts +1 -1
  106. package/dist/src/constants/systemProps/index.d.ts +1 -1
  107. package/dist/src/helpers/systemPropsHelper/index.d.ts +8 -8
  108. package/dist/src/index.d.ts +2 -2
  109. package/dist/src/types/ComponentWithAs.d.ts +4 -4
  110. package/dist/src/types/CssProperties/index.d.ts +1 -1
  111. package/dist/src/types/SystemProps/index.d.ts +4 -4
  112. package/dist/src/types/index.d.ts +1 -1
  113. package/dist/style.css +1 -1
  114. package/package.json +17 -27
@@ -64,8 +64,10 @@ const Bt = () => /Android/i.test(navigator.userAgent), Ft = typeof window < "u"
64
64
  return;
65
65
  const h = r.querySelector(".c-autocomplete__input-spinner"), u = l.getAttribute("data-trigger-message"), m = async (g) => {
66
66
  try {
67
- let _;
68
- return a && t.includes("20minutes.fr") ? _ = Nt : _ = await (await fetch(`${c}${e}${encodeURIComponent(g)}`)).json(), o ? _[o] : _;
67
+ const _ = a && t.includes("20minutes.fr") ? Nt : await fetch(`${c}${e}${encodeURIComponent(g)}`).then(
68
+ (I) => I.json()
69
+ ), w = o && typeof _ == "object" && _ !== null ? _[o] : _;
70
+ return Array.isArray(w) ? w : [];
69
71
  } catch (_) {
70
72
  return console.error("Error fetching autocomplete results:", _), [];
71
73
  }
@@ -141,7 +143,7 @@ const Bt = () => /Android/i.test(navigator.userAgent), Ft = typeof window < "u"
141
143
  worldFoot2026: "2026-06-11 15:00:00"
142
144
  };
143
145
  const a = window.counters[s], l = new Date(a).getTime(), c = setInterval(() => {
144
- const d = (/* @__PURE__ */ new Date()).getTime(), h = l - d;
146
+ const d = Date.now(), h = l - d;
145
147
  if (h <= 0)
146
148
  clearInterval(c);
147
149
  else {
@@ -223,8 +225,7 @@ const Bt = () => /Android/i.test(navigator.userAgent), Ft = typeof window < "u"
223
225
  t.classList.remove("u-hidden");
224
226
  const r = t.querySelectorAll("li"), a = [];
225
227
  return r.forEach((l) => {
226
- const c = l.querySelector("a");
227
- c && c.innerHTML.toLowerCase().includes(o.toLowerCase()) && a.push(l.innerHTML);
228
+ l.querySelector("a")?.innerHTML.toLowerCase().includes(o.toLowerCase()) && a.push(l.innerHTML);
228
229
  }), a;
229
230
  }, i = (o) => {
230
231
  t.innerHTML += `<li>${o}</li>`;
@@ -245,11 +246,15 @@ const Bt = () => /Android/i.test(navigator.userAgent), Ft = typeof window < "u"
245
246
  t.childElementCount > 0 && t.classList.remove("u-hidden");
246
247
  });
247
248
  }, Xt = (s, t) => {
248
- s.setAttribute("aria-expanded", "true"), s.parentNode?.querySelectorAll(".js-ellipsis-target")?.forEach((n) => n.classList.remove(t));
249
+ s.setAttribute("aria-expanded", "true"), s.parentNode?.querySelectorAll(".js-ellipsis-target")?.forEach((n) => {
250
+ n.classList.remove(t);
251
+ });
249
252
  const i = s.querySelector(".js-ellipsis-button__label");
250
253
  i instanceof HTMLSpanElement && (i.innerHTML = "Voir moins");
251
254
  }, Yt = (s, t) => {
252
- s.parentNode?.querySelectorAll(".js-ellipsis-target")?.forEach((n) => n.classList.add(t)), s.setAttribute("aria-expanded", "false");
255
+ s.parentNode?.querySelectorAll(".js-ellipsis-target")?.forEach((n) => {
256
+ n.classList.add(t);
257
+ }), s.setAttribute("aria-expanded", "false");
253
258
  const i = s.querySelector(".js-ellipsis-button__label");
254
259
  i instanceof HTMLSpanElement && (i.innerHTML = "Voir plus");
255
260
  }, Jt = (s, t) => {
@@ -267,11 +272,15 @@ const Bt = () => /Android/i.test(navigator.userAgent), Ft = typeof window < "u"
267
272
  e.addEventListener("click", (n) => Jt(n, i));
268
273
  });
269
274
  }, te = (s) => {
270
- s.setAttribute("aria-expanded", "true"), s.parentNode?.querySelectorAll(".js-expand-target")?.forEach((i) => i.setAttribute("aria-hidden", "false"));
275
+ s.setAttribute("aria-expanded", "true"), s.parentNode?.querySelectorAll(".js-expand-target")?.forEach((i) => {
276
+ i.setAttribute("aria-hidden", "false");
277
+ });
271
278
  const e = s.querySelector(".js-expand-button__label");
272
279
  e instanceof HTMLSpanElement && (e.innerHTML = "Voir moins");
273
280
  }, ee = (s) => {
274
- s.parentNode?.querySelectorAll(".js-expand-target")?.forEach((i) => i.setAttribute("aria-hidden", "true")), s.setAttribute("aria-expanded", "false");
281
+ s.parentNode?.querySelectorAll(".js-expand-target")?.forEach((i) => {
282
+ i.setAttribute("aria-hidden", "true");
283
+ }), s.setAttribute("aria-expanded", "false");
275
284
  const e = s.querySelector(".js-expand-button__label");
276
285
  e instanceof HTMLSpanElement && (e.innerHTML = "Voir plus");
277
286
  }, ie = (s) => {
@@ -284,7 +293,9 @@ const Bt = () => /Android/i.test(navigator.userAgent), Ft = typeof window < "u"
284
293
  ".js-expand-button"
285
294
  )) => {
286
295
  s && document.querySelectorAll(".js-expand-button").forEach((e) => {
287
- se(e) ? (e.style.display = "none", e.parentNode?.querySelectorAll(".js-expand-target")?.forEach((n) => n.setAttribute("aria-hidden", "false"))) : e.addEventListener("click", ie);
296
+ se(e) ? (e.style.display = "none", e.parentNode?.querySelectorAll(".js-expand-target")?.forEach((n) => {
297
+ n.setAttribute("aria-hidden", "false");
298
+ })) : e.addEventListener("click", ie);
288
299
  });
289
300
  }, oe = () => {
290
301
  const s = document.querySelector(".js-game-alert");
@@ -406,17 +417,17 @@ function et(s) {
406
417
  (s.querySelector("[autofocus]") || s).focus();
407
418
  }
408
419
  function he(s) {
409
- const t = $(s, !0), e = t ? $(s, !1) || t : null;
420
+ const t = R(s, !0), e = t ? R(s, !1) || t : null;
410
421
  return [t, e];
411
422
  }
412
- function $(s, t) {
423
+ function R(s, t) {
413
424
  if (t && nt(s))
414
425
  return s;
415
426
  if (pe(s))
416
427
  if (s.shadowRoot) {
417
428
  let e = it(s.shadowRoot, t);
418
429
  for (; e; ) {
419
- const i = $(e, t);
430
+ const i = R(e, t);
420
431
  if (i)
421
432
  return i;
422
433
  e = st(e, t);
@@ -427,14 +438,14 @@ function $(s, t) {
427
438
  });
428
439
  t || e.reverse();
429
440
  for (const i of e) {
430
- const n = $(i, t);
441
+ const n = R(i, t);
431
442
  if (n)
432
443
  return n;
433
444
  }
434
445
  } else {
435
446
  let e = it(s, t);
436
447
  for (; e; ) {
437
- const i = $(e, t);
448
+ const i = R(e, t);
438
449
  if (i)
439
450
  return i;
440
451
  e = st(e, t);
@@ -452,18 +463,18 @@ const ue = (s) => s.matches("details:not([open]) *") && !s.matches("details>summ
452
463
  function pe(s) {
453
464
  return s.shadowRoot && s.getAttribute("tabindex") === "-1" ? !1 : !s.matches(":disabled,[hidden],[inert]");
454
465
  }
455
- function R(s = document) {
466
+ function B(s = document) {
456
467
  const t = s.activeElement;
457
- return t ? t.shadowRoot ? R(t.shadowRoot) || document.activeElement : t : null;
468
+ return t ? t.shadowRoot ? B(t.shadowRoot) || document.activeElement : t : null;
458
469
  }
459
470
  function me(s, t) {
460
471
  const [e, i] = he(s);
461
472
  if (!e)
462
473
  return t.preventDefault();
463
- const n = R();
474
+ const n = B();
464
475
  t.shiftKey && n === e ? (i.focus(), t.preventDefault()) : !t.shiftKey && n === i && (e.focus(), t.preventDefault());
465
476
  }
466
- function I(s, t) {
477
+ function T(s, t) {
467
478
  function e(i) {
468
479
  if (!i || i === document || i === window)
469
480
  return null;
@@ -475,7 +486,7 @@ function I(s, t) {
475
486
  function bt(s) {
476
487
  return s.assignedSlot || (s.parentNode ? bt(s.parentNode) : null);
477
488
  }
478
- const T = "data-a11y-dialog";
489
+ const z = "data-a11y-dialog";
479
490
  class St {
480
491
  $el;
481
492
  id;
@@ -499,7 +510,7 @@ class St {
499
510
  * `[data-a11y-dialog-show="<id>"]` and `[data-a11y-dialog-hide="<id>"]`.
500
511
  */
501
512
  constructor(t) {
502
- this.$el = t, this.id = this.$el.getAttribute(T) || this.$el.id, this.previouslyFocused = null, this.shown = !1, this.maintainFocus = this.maintainFocus.bind(this), this.bindKeypress = this.bindKeypress.bind(this), this.handleTriggerClicks = this.handleTriggerClicks.bind(this), this.show = this.show.bind(this), this.hide = this.hide.bind(this), this.$el.setAttribute("aria-hidden", "true"), this.$el.setAttribute("aria-modal", "true"), this.$el.setAttribute("tabindex", "-1"), this.$el.hasAttribute("role") || this.$el.setAttribute("role", "dialog"), document.addEventListener("click", this.handleTriggerClicks, !0);
513
+ this.$el = t, this.id = this.$el.getAttribute(z) || this.$el.id, this.previouslyFocused = null, this.shown = !1, this.maintainFocus = this.maintainFocus.bind(this), this.bindKeypress = this.bindKeypress.bind(this), this.handleTriggerClicks = this.handleTriggerClicks.bind(this), this.show = this.show.bind(this), this.hide = this.hide.bind(this), this.$el.setAttribute("aria-hidden", "true"), this.$el.setAttribute("aria-modal", "true"), this.$el.setAttribute("tabindex", "-1"), this.$el.hasAttribute("role") || this.$el.setAttribute("role", "dialog"), document.addEventListener("click", this.handleTriggerClicks, !0);
503
514
  }
504
515
  /**
505
516
  * Destroy the current instance (after making sure the dialog has been hidden)
@@ -525,7 +536,7 @@ class St {
525
536
  * Returns the instance to allow method chaining.
526
537
  */
527
538
  show(t) {
528
- return this.shown ? this : this.fire("show", t).defaultPrevented ? this : (this.shown = !0, this.$el.removeAttribute("aria-hidden"), this.previouslyFocused = R(), this.previouslyFocused?.tagName === "BODY" && t?.target && (this.previouslyFocused = t.target), t?.type === "focus" ? this.maintainFocus() : et(this.$el), document.body.addEventListener("focus", this.maintainFocus, !0), this.$el.addEventListener("keydown", this.bindKeypress, !0), this);
539
+ return this.shown ? this : this.fire("show", t).defaultPrevented ? this : (this.shown = !0, this.$el.removeAttribute("aria-hidden"), this.previouslyFocused = B(), this.previouslyFocused?.tagName === "BODY" && t?.target && (this.previouslyFocused = t.target), t?.type === "focus" ? this.maintainFocus() : et(this.$el), document.body.addEventListener("focus", this.maintainFocus, !0), this.$el.addEventListener("keydown", this.bindKeypress, !0), this);
529
540
  }
530
541
  /**
531
542
  * Hide the dialog.
@@ -573,7 +584,7 @@ class St {
573
584
  * dialog are clicked, and call `show` or `hide`, respectively
574
585
  */
575
586
  handleTriggerClicks(t) {
576
- const e = t.composedPath()[0], i = I(`[${T}-show="${this.id}"]`, e), n = I(`[${T}-hide="${this.id}"]`, e), o = I(`[${T}-hide]`, e) && I('[aria-modal="true"]', e) === this.$el;
587
+ const e = t.composedPath()[0], i = T(`[${z}-show="${this.id}"]`, e), n = T(`[${z}-hide="${this.id}"]`, e), o = T(`[${z}-hide]`, e) && T('[aria-modal="true"]', e) === this.$el;
577
588
  i && this.show(t), (n || o) && this.hide(t);
578
589
  }
579
590
  /**
@@ -581,7 +592,7 @@ class St {
581
592
  * (namely ESC and TAB)
582
593
  */
583
594
  bindKeypress(t) {
584
- if (I('[aria-modal="true"]', R()) !== this.$el)
595
+ if (T('[aria-modal="true"]', B()) !== this.$el)
585
596
  return;
586
597
  let e = !1;
587
598
  try {
@@ -597,8 +608,8 @@ class St {
597
608
  * See: https://github.com/KittyGiraudel/a11y-dialog/issues/177
598
609
  */
599
610
  maintainFocus() {
600
- const t = R();
601
- I(`[aria-modal="true"], [${T}-ignore-focus-trap]`, t) || et(this.$el);
611
+ const t = B();
612
+ T(`[aria-modal="true"], [${z}-ignore-focus-trap]`, t) || et(this.$el);
602
613
  }
603
614
  }
604
615
  function ot() {
@@ -613,9 +624,17 @@ const fe = () => document.querySelectorAll(".js-modal").forEach((s) => {
613
624
  if (s.id === "dialog-menu") {
614
625
  const e = document.querySelectorAll("button[data-a11y-dialog-show='dialog-menu']"), i = document.querySelectorAll("button[data-a11y-dialog-hide='dialog-menu']");
615
626
  e.length > 0 && i.length > 0 && (t.on("show", () => {
616
- e.forEach((n) => n.classList.add("u-hidden")), i.forEach((n) => n.classList.remove("u-hidden"));
627
+ e.forEach((n) => {
628
+ n.classList.add("u-hidden");
629
+ }), i.forEach((n) => {
630
+ n.classList.remove("u-hidden");
631
+ });
617
632
  }), t.on("hide", () => {
618
- e.forEach((n) => n.classList.remove("u-hidden")), i.forEach((n) => n.classList.add("u-hidden"));
633
+ e.forEach((n) => {
634
+ n.classList.remove("u-hidden");
635
+ }), i.forEach((n) => {
636
+ n.classList.add("u-hidden");
637
+ });
619
638
  }));
620
639
  }
621
640
  t.on("show", () => {
@@ -855,18 +874,18 @@ function G(s, t) {
855
874
  const e = Math.abs(s.x - t.x), i = Math.abs(s.y - t.y);
856
875
  return Math.sqrt(e * e + i * i);
857
876
  }
858
- function B(s, t) {
877
+ function F(s, t) {
859
878
  return s.x === t.x && s.y === t.y;
860
879
  }
861
- function Z(s, t, e) {
880
+ function q(s, t, e) {
862
881
  return Math.min(Math.max(s, t), e);
863
882
  }
864
- function F(s, t, e) {
883
+ function Z(s, t, e) {
865
884
  let i = `translate3d(${s}px,${t || 0}px,0)`;
866
885
  return e !== void 0 && (i += ` scale3d(${e},${e},1)`), i;
867
886
  }
868
887
  function P(s, t, e, i) {
869
- s.style.transform = F(t, e, i);
888
+ s.style.transform = Z(t, e, i);
870
889
  }
871
890
  const Le = "cubic-bezier(.4,0,.22,1)";
872
891
  function Ct(s, t, e, i) {
@@ -997,7 +1016,7 @@ function Pt(s, t) {
997
1016
  y: window.innerHeight
998
1017
  };
999
1018
  }
1000
- function M(s, t, e, i, n) {
1019
+ function O(s, t, e, i, n) {
1001
1020
  let o = 0;
1002
1021
  if (t.paddingFn)
1003
1022
  o = t.paddingFn(e, i, n)[s];
@@ -1011,8 +1030,8 @@ function M(s, t, e, i, n) {
1011
1030
  }
1012
1031
  function It(s, t, e, i) {
1013
1032
  return {
1014
- x: t.x - M("left", s, t, e, i) - M("right", s, t, e, i),
1015
- y: t.y - M("top", s, t, e, i) - M("bottom", s, t, e, i)
1033
+ x: t.x - O("left", s, t, e, i) - O("right", s, t, e, i),
1034
+ y: t.y - O("top", s, t, e, i) - O("bottom", s, t, e, i)
1016
1035
  };
1017
1036
  }
1018
1037
  class Ie {
@@ -1052,7 +1071,7 @@ class Ie {
1052
1071
  _updateAxis(t) {
1053
1072
  const {
1054
1073
  pswp: e
1055
- } = this.slide, i = this.slide[t === "x" ? "width" : "height"] * this.currZoomLevel, o = M(t === "x" ? "left" : "top", e.options, e.viewportSize, this.slide.data, this.slide.index), r = this.slide.panAreaSize[t];
1074
+ } = this.slide, i = this.slide[t === "x" ? "width" : "height"] * this.currZoomLevel, o = O(t === "x" ? "left" : "top", e.options, e.viewportSize, this.slide.data, this.slide.index), r = this.slide.panAreaSize[t];
1056
1075
  this.center[t] = Math.round((r - i) / 2) + o, this.max[t] = i > r ? Math.round(r - i) + o : this.center[t], this.min[t] = i > r ? o : this.center[t];
1057
1076
  }
1058
1077
  // _getZeroBounds
@@ -1067,7 +1086,7 @@ class Ie {
1067
1086
  * @returns {number}
1068
1087
  */
1069
1088
  correctPan(t, e) {
1070
- return Z(e, this.max[t], this.min[t]);
1089
+ return q(e, this.max[t], this.min[t]);
1071
1090
  }
1072
1091
  }
1073
1092
  const at = 4e3;
@@ -1292,7 +1311,7 @@ class Te {
1292
1311
  transitionDuration: i
1293
1312
  }), o.animations.stopAllPan();
1294
1313
  const r = this.currZoomLevel;
1295
- n || (t = Z(t, this.zoomLevels.min, this.zoomLevels.max)), this.setZoomLevel(t), this.pan.x = this.calculateZoomToPanOffset("x", e, r), this.pan.y = this.calculateZoomToPanOffset("y", e, r), Et(this.pan);
1314
+ n || (t = q(t, this.zoomLevels.min, this.zoomLevels.max)), this.setZoomLevel(t), this.pan.x = this.calculateZoomToPanOffset("x", e, r), this.pan.y = this.calculateZoomToPanOffset("y", e, r), Et(this.pan);
1296
1315
  const a = () => {
1297
1316
  this._setResolution(t), this.applyCurrentZoomPan();
1298
1317
  };
@@ -1400,7 +1419,7 @@ class Te {
1400
1419
  /** @returns {string} */
1401
1420
  getCurrentTransform() {
1402
1421
  const t = this.currZoomLevel / (this.currentResolution || this.zoomLevels.initial);
1403
- return F(this.pan.x, this.pan.y, t);
1422
+ return Z(this.pan.x, this.pan.y, t);
1404
1423
  }
1405
1424
  /**
1406
1425
  * Set resolution and re-render the image.
@@ -1509,7 +1528,7 @@ class De {
1509
1528
  onUpdate: (f) => {
1510
1529
  if (a && this.pswp.bgOpacity < 1) {
1511
1530
  const p = 1 - (d - f) / m;
1512
- this.pswp.applyBgOpacity(Z(u + (1 - u) * p, 0, 1));
1531
+ this.pswp.applyBgOpacity(q(u + (1 - u) * p, 0, 1));
1513
1532
  }
1514
1533
  n[t] = Math.floor(f), i.applyCurrentZoomPan();
1515
1534
  }
@@ -1714,7 +1733,7 @@ class Be {
1714
1733
  x: i.bounds.correctPan("x", d.x),
1715
1734
  y: i.bounds.correctPan("y", d.y)
1716
1735
  }, i.setZoomLevel(n);
1717
- const h = !B(d, c);
1736
+ const h = !F(d, c);
1718
1737
  if (!h && !r && !l) {
1719
1738
  i._setResolution(o), i.applyCurrentZoomPan();
1720
1739
  return;
@@ -1734,7 +1753,7 @@ class Be {
1734
1753
  }
1735
1754
  i.applyCurrentZoomPan();
1736
1755
  }
1737
- l && e.bgOpacity < 1 && e.applyBgOpacity(Z(a + (1 - a) * u, 0, 1));
1756
+ l && e.bgOpacity < 1 && e.applyBgOpacity(q(a + (1 - a) * u, 0, 1));
1738
1757
  },
1739
1758
  onComplete: () => {
1740
1759
  i._setResolution(o), i.applyCurrentZoomPan();
@@ -1943,7 +1962,7 @@ class Ne {
1943
1962
  * @private
1944
1963
  */
1945
1964
  _rafRenderLoop() {
1946
- (this.isDragging || this.isZooming) && (this._updateVelocity(), this.isDragging ? B(this.p1, this.prevP1) || this.drag.change() : (!B(this.p1, this.prevP1) || !B(this.p2, this.prevP2)) && this.zoomLevels.change(), this._updatePrevPoints(), this.raf = requestAnimationFrame(this._rafRenderLoop.bind(this)));
1965
+ (this.isDragging || this.isZooming) && (this._updateVelocity(), this.isDragging ? F(this.p1, this.prevP1) || this.drag.change() : (!F(this.p1, this.prevP1) || !F(this.p2, this.prevP2)) && this.zoomLevels.change(), this._updatePrevPoints(), this.raf = requestAnimationFrame(this._rafRenderLoop.bind(this)));
1947
1966
  }
1948
1967
  /**
1949
1968
  * Update velocity at 50ms interval
@@ -2931,7 +2950,7 @@ let pi = class {
2931
2950
  * @param {number} height
2932
2951
  */
2933
2952
  setDisplayedSize(t, e) {
2934
- this.element && (this.element.tagName === "IMG" ? (U(this.element, 250, "auto"), this.element.style.transformOrigin = "0 0", this.element.style.transform = F(0, 0, t / 250)) : U(this.element, t, e));
2953
+ this.element && (this.element.tagName === "IMG" ? (U(this.element, 250, "auto"), this.element.style.transformOrigin = "0 0", this.element.style.transform = Z(0, 0, t / 250)) : U(this.element, t, e));
2935
2954
  }
2936
2955
  destroy() {
2937
2956
  var t;
@@ -3372,7 +3391,7 @@ let wi = class extends mi {
3372
3391
  return Mt(t, this, e);
3373
3392
  }
3374
3393
  };
3375
- const z = 3e-3;
3394
+ const M = 3e-3;
3376
3395
  class bi {
3377
3396
  /**
3378
3397
  * @param {PhotoSwipe} pswp
@@ -3411,8 +3430,8 @@ class bi {
3411
3430
  var n;
3412
3431
  this._animateRootOpacity = (n = i.showHideOpacity) !== null && n !== void 0 ? n : !1;
3413
3432
  }
3414
- if (this._animateBgOpacity = !this._animateRootOpacity && this.pswp.options.bgOpacity > z, this._opacityElement = this._animateRootOpacity ? t.element : t.bg, !this._useAnimation) {
3415
- this._duration = 0, this._animateZoom = !1, this._animateBgOpacity = !1, this._animateRootOpacity = !0, this.isOpening && (t.element && (t.element.style.opacity = String(z)), t.applyBgOpacity(1));
3433
+ if (this._animateBgOpacity = !this._animateRootOpacity && this.pswp.options.bgOpacity > M, this._opacityElement = this._animateRootOpacity ? t.element : t.bg, !this._useAnimation) {
3434
+ this._duration = 0, this._animateZoom = !1, this._animateBgOpacity = !1, this._animateRootOpacity = !0, this.isOpening && (t.element && (t.element.style.opacity = String(M)), t.applyBgOpacity(1));
3416
3435
  return;
3417
3436
  }
3418
3437
  if (this._animateZoom && this._thumbBounds && this._thumbBounds.innerRect) {
@@ -3420,7 +3439,7 @@ class bi {
3420
3439
  this._croppedZoom = !0, this._cropContainer1 = this.pswp.container, this._cropContainer2 = (o = this.pswp.currSlide) === null || o === void 0 ? void 0 : o.holderElement, t.container && (t.container.style.overflow = "hidden", t.container.style.width = t.viewportSize.x + "px");
3421
3440
  } else
3422
3441
  this._croppedZoom = !1;
3423
- this.isOpening ? (this._animateRootOpacity ? (t.element && (t.element.style.opacity = String(z)), t.applyBgOpacity(1)) : (this._animateBgOpacity && t.bg && (t.bg.style.opacity = String(z)), t.element && (t.element.style.opacity = "1")), this._animateZoom && (this._setClosedStateZoomPan(), this._placeholder && (this._placeholder.style.willChange = "transform", this._placeholder.style.opacity = String(z)))) : this.isClosing && (t.mainScroll.itemHolders[0] && (t.mainScroll.itemHolders[0].el.style.display = "none"), t.mainScroll.itemHolders[2] && (t.mainScroll.itemHolders[2].el.style.display = "none"), this._croppedZoom && t.mainScroll.x !== 0 && (t.mainScroll.resetPosition(), t.mainScroll.resize()));
3442
+ this.isOpening ? (this._animateRootOpacity ? (t.element && (t.element.style.opacity = String(M)), t.applyBgOpacity(1)) : (this._animateBgOpacity && t.bg && (t.bg.style.opacity = String(M)), t.element && (t.element.style.opacity = "1")), this._animateZoom && (this._setClosedStateZoomPan(), this._placeholder && (this._placeholder.style.willChange = "transform", this._placeholder.style.opacity = String(M)))) : this.isClosing && (t.mainScroll.itemHolders[0] && (t.mainScroll.itemHolders[0].el.style.display = "none"), t.mainScroll.itemHolders[2] && (t.mainScroll.itemHolders[2].el.style.display = "none"), this._croppedZoom && t.mainScroll.x !== 0 && (t.mainScroll.resetPosition(), t.mainScroll.resize()));
3424
3443
  }
3425
3444
  /** @private */
3426
3445
  _start() {
@@ -3489,7 +3508,7 @@ class bi {
3489
3508
  } = e;
3490
3509
  if (this._croppedZoom && i && this._cropContainer1 && this._cropContainer2) {
3491
3510
  const r = -o.x + (this._thumbBounds.x - i.x) + i.w, a = -o.y + (this._thumbBounds.y - i.y) + i.h, l = o.x - i.w, c = o.y - i.h;
3492
- t ? (this._animateTo(this._cropContainer1, "transform", F(r, a)), this._animateTo(this._cropContainer2, "transform", F(l, c))) : (P(this._cropContainer1, r, a), P(this._cropContainer2, l, c));
3511
+ t ? (this._animateTo(this._cropContainer1, "transform", Z(r, a)), this._animateTo(this._cropContainer2, "transform", Z(l, c))) : (P(this._cropContainer1, r, a), P(this._cropContainer2, l, c));
3493
3512
  }
3494
3513
  n && (b(n.pan, i || this._thumbBounds), n.currZoomLevel = this._thumbBounds.w / n.width, t ? this._animateTo(n.container, "transform", n.getCurrentTransform()) : n.applyCurrentZoomPan());
3495
3514
  }
@@ -3586,7 +3605,7 @@ class Li extends wi {
3586
3605
  */
3587
3606
  getLoopedIndex(t) {
3588
3607
  const e = this.getNumItems();
3589
- return this.options.loop && (t > e - 1 && (t -= e), t < 0 && (t += e)), Z(t, 0, e - 1);
3608
+ return this.options.loop && (t > e - 1 && (t -= e), t < 0 && (t += e)), q(t, 0, e - 1);
3590
3609
  }
3591
3610
  appendHeavy() {
3592
3611
  this.mainScroll.itemHolders.forEach((t) => {
@@ -3704,7 +3723,7 @@ class Li extends wi {
3704
3723
  if (this.isDestroying)
3705
3724
  return;
3706
3725
  const e = Pt(this.options, this);
3707
- !t && B(e, this._prevViewportSize) || (b(this._prevViewportSize, e), this.dispatch("beforeResize"), b(this.viewportSize, this._prevViewportSize), this._updatePageScrollOffset(), this.dispatch("viewportSize"), this.mainScroll.resize(this.opener.isOpen), !this.hasMouse && window.matchMedia("(any-hover: hover)").matches && this.mouseDetected(), this.dispatch("resize"));
3726
+ !t && F(e, this._prevViewportSize) || (b(this._prevViewportSize, e), this.dispatch("beforeResize"), b(this.viewportSize, this._prevViewportSize), this._updatePageScrollOffset(), this.dispatch("viewportSize"), this.mainScroll.resize(this.opener.isOpen), !this.hasMouse && window.matchMedia("(any-hover: hover)").matches && this.mouseDetected(), this.dispatch("resize"));
3708
3727
  }
3709
3728
  /**
3710
3729
  * @param {number} opacity
@@ -3787,7 +3806,7 @@ class Li extends wi {
3787
3806
  };
3788
3807
  }
3789
3808
  }
3790
- function O(s, t, e) {
3809
+ function D(s, t, e) {
3791
3810
  const i = document.createElement(t);
3792
3811
  return s && (i.className = s), e && e.appendChild(i), i;
3793
3812
  }
@@ -3807,7 +3826,7 @@ const C = {
3807
3826
  function Ei(s) {
3808
3827
  return "button" in s && s.button === 1 || s.ctrlKey || s.metaKey || s.altKey || s.shiftKey;
3809
3828
  }
3810
- function D(s, t, e = document) {
3829
+ function $(s, t, e = document) {
3811
3830
  let i = [];
3812
3831
  if (s instanceof Element)
3813
3832
  i = [s];
@@ -3917,7 +3936,7 @@ class Ii {
3917
3936
  * @param {HTMLElement} container
3918
3937
  */
3919
3938
  constructor(t, e) {
3920
- if (this.element = O("pswp__img pswp__img--placeholder", t ? "img" : "div", e), t) {
3939
+ if (this.element = D("pswp__img pswp__img--placeholder", t ? "img" : "div", e), t) {
3921
3940
  const i = (
3922
3941
  /** @type {HTMLImageElement} */
3923
3942
  this.element
@@ -3978,7 +3997,7 @@ class Ti {
3978
3997
  this.element && !e || this.instance.dispatch("contentLoad", {
3979
3998
  content: this,
3980
3999
  isLazy: t
3981
- }).defaultPrevented || (this.isImageContent() ? (this.element = O("pswp__img", "img"), this.displayedImageWidth && this.loadImage(t)) : (this.element = O("pswp__content", "div"), this.element.innerHTML = this.data.html || ""), e && this.slide && this.slide.updateContentSize(!0));
4000
+ }).defaultPrevented || (this.isImageContent() ? (this.element = D("pswp__img", "img"), this.displayedImageWidth && this.loadImage(t)) : (this.element = D("pswp__content", "div"), this.element.innerHTML = this.data.html || ""), e && this.slide && this.slide.updateContentSize(!0));
3982
4001
  }
3983
4002
  /**
3984
4003
  * Preload image
@@ -4123,9 +4142,9 @@ class Ti {
4123
4142
  displayError() {
4124
4143
  if (this.slide) {
4125
4144
  var t, e;
4126
- let i = O("pswp__error-msg", "div");
4145
+ let i = D("pswp__error-msg", "div");
4127
4146
  i.innerText = (t = (e = this.instance.options) === null || e === void 0 ? void 0 : e.errorMsg) !== null && t !== void 0 ? t : "", i = /** @type {HTMLDivElement} */
4128
- this.instance.applyFilters("contentErrorElement", i, this), this.element = O("pswp__content pswp__error-msg-container", "div"), this.element.appendChild(i), this.slide.container.innerText = "", this.slide.container.appendChild(this.element), this.slide.updateContentSize(!0), this.removePlaceholder();
4147
+ this.instance.applyFilters("contentErrorElement", i, this), this.element = D("pswp__content pswp__error-msg-container", "div"), this.element.appendChild(i), this.slide.container.innerText = "", this.slide.container.appendChild(this.element), this.slide.updateContentSize(!0), this.removePlaceholder();
4129
4148
  }
4130
4149
  }
4131
4150
  /**
@@ -4377,7 +4396,7 @@ class $i extends Pi {
4377
4396
  */
4378
4397
  _getGalleryDOMElements(t) {
4379
4398
  var e, i;
4380
- return (e = this.options) !== null && e !== void 0 && e.children || (i = this.options) !== null && i !== void 0 && i.childSelector ? D(this.options.children, this.options.childSelector, t) || [] : [t];
4399
+ return (e = this.options) !== null && e !== void 0 && e.children || (i = this.options) !== null && i !== void 0 && i.childSelector ? $(this.options.children, this.options.childSelector, t) || [] : [t];
4381
4400
  }
4382
4401
  /**
4383
4402
  * Converts DOM element to item data object.
@@ -4426,7 +4445,7 @@ class Ri extends $i {
4426
4445
  * It's not included in the main constructor, so you may bind events before it.
4427
4446
  */
4428
4447
  init() {
4429
- D(this.options.gallery, this.options.gallerySelector).forEach((t) => {
4448
+ $(this.options.gallery, this.options.gallerySelector).forEach((t) => {
4430
4449
  t.addEventListener("click", this.onThumbnailsClick, !1);
4431
4450
  });
4432
4451
  }
@@ -4463,7 +4482,7 @@ class Ri extends $i {
4463
4482
  const e = (
4464
4483
  /** @type {HTMLElement} */
4465
4484
  t.target
4466
- ), n = D(
4485
+ ), n = $(
4467
4486
  this.options.children,
4468
4487
  this.options.childSelector,
4469
4488
  /** @type {HTMLElement} */
@@ -4483,7 +4502,7 @@ class Ri extends $i {
4483
4502
  if (window.pswp || !this.options)
4484
4503
  return !1;
4485
4504
  if (!e && this.options.gallery && this.options.children) {
4486
- const n = D(this.options.gallery);
4505
+ const n = $(this.options.gallery);
4487
4506
  n[0] && (e = {
4488
4507
  gallery: n[0]
4489
4508
  });
@@ -4559,7 +4578,7 @@ class Ri extends $i {
4559
4578
  */
4560
4579
  destroy() {
4561
4580
  var t;
4562
- (t = this.pswp) === null || t === void 0 || t.destroy(), this.shouldOpen = !1, this._listeners = {}, D(this.options.gallery, this.options.gallerySelector).forEach((e) => {
4581
+ (t = this.pswp) === null || t === void 0 || t.destroy(), this.shouldOpen = !1, this._listeners = {}, $(this.options.gallery, this.options.gallerySelector).forEach((e) => {
4563
4582
  e.removeEventListener("click", this.onThumbnailsClick, !1);
4564
4583
  });
4565
4584
  }
@@ -4607,7 +4626,10 @@ const Bi = () => {
4607
4626
  const a = window.pageYOffset + o.getBoundingClientRect().bottom, c = window.pageYOffset + r.getBoundingClientRect().bottom - i.clientHeight - a;
4608
4627
  if (c > 0) {
4609
4628
  const d = ft((n - a) / c * 100);
4610
- e.style.setProperty("--progress", `${d}`), e.parentElement?.classList.toggle("c-btn--close-progress-complete", d >= 100);
4629
+ e.style.setProperty("--progress", `${d}`), e.parentElement?.classList.toggle(
4630
+ "c-btn--close-progress-complete",
4631
+ d >= 100
4632
+ );
4611
4633
  }
4612
4634
  }
4613
4635
  }
@@ -4637,14 +4659,14 @@ const Bi = () => {
4637
4659
  };
4638
4660
  window.addEventListener("scroll", r), i.addEventListener("click", a), r();
4639
4661
  }, ki = 500, Ni = () => {
4640
- const s = document.querySelector("#mbrs-comments-container"), t = s?.querySelector(".c-comment__scroll-to-top-button");
4662
+ const s = document.querySelector("#mbrs-comments-container"), t = document.querySelector(".c-scroll-to-top-comment");
4641
4663
  if (!s || !t)
4642
4664
  return;
4643
4665
  t.style.display = "none";
4644
4666
  let e = !1;
4645
4667
  const i = () => {
4646
4668
  const { top: u } = s.getBoundingClientRect();
4647
- t.style.display = u < -400 ? "block" : "none";
4669
+ t.style.display = u < -400 ? "flex" : "none";
4648
4670
  }, n = () => {
4649
4671
  e || (e = !0, window.addEventListener("scroll", i, { passive: !0 }), i());
4650
4672
  }, o = () => {
@@ -4715,7 +4737,9 @@ const Bi = () => {
4715
4737
  console.warn("Text tooltip : Tooltip or it's parent are not found in the DOM");
4716
4738
  return;
4717
4739
  }
4718
- Array.from(o).forEach((l) => l.setAttribute("data-selected-text", e));
4740
+ Array.from(o).forEach((l) => {
4741
+ l.setAttribute("data-selected-text", e);
4742
+ });
4719
4743
  const r = s.getClientRects(), a = r[t ? r.length - 1 : 0];
4720
4744
  i.style.top = `${a.top - n.getBoundingClientRect().top - (i.offsetHeight + 10)}px`, a.width < i.offsetWidth ? i.style.left = `${a.left - n.getBoundingClientRect().left + a.width / 2 - i.offsetWidth / 2}px` : t ? i.style.left = `${a.left - n.getBoundingClientRect().left + a.width - i.offsetWidth}px` : i.style.left = `${a.left - n.getBoundingClientRect().left}px`, i.classList.add(Dt);
4721
4745
  }, vt = () => {
@@ -4900,8 +4924,8 @@ const Bi = () => {
4900
4924
  "transform",
4901
4925
  `translate(${u + f / 2}, ${m + p / 2})${S}`
4902
4926
  );
4903
- const L = c.getBBox(), g = 8, _ = 4, w = 8, q = L.width + g, W = L.height + _;
4904
- d.setAttribute("width", `${q}`), d.setAttribute("height", `${W}`), d.setAttribute("x", `${-q / 2}`), d.setAttribute("y", `${-W - w}`);
4927
+ const L = c.getBBox(), g = 8, _ = 4, w = 8, I = L.width + g, W = L.height + _;
4928
+ d.setAttribute("width", `${I}`), d.setAttribute("height", `${W}`), d.setAttribute("x", `${-I / 2}`), d.setAttribute("y", `${-W - w}`);
4905
4929
  const Rt = -W / 2 - w;
4906
4930
  c.setAttribute("y", `${Rt}`), a.setAttribute("aria-hidden", "false");
4907
4931
  } else
@@ -5063,7 +5087,9 @@ const Bi = () => {
5063
5087
  const c = document.createElementNS("http://www.w3.org/2000/svg", "text");
5064
5088
  return c.setAttribute("class", "js-city-text c-map-towns__city-text"), c.textContent = s, i.appendChild(n), i.appendChild(a), i.appendChild(l), i.appendChild(c), i;
5065
5089
  }, cs = (s, t, e) => {
5066
- s.innerHTML = "", e.forEach((c) => s.appendChild(c));
5090
+ s.innerHTML = "", e.forEach((c) => {
5091
+ s.appendChild(c);
5092
+ });
5067
5093
  const i = s.getBBox(), n = 5, o = i.width + n * 2, r = i.height + n * 2;
5068
5094
  t.setAttribute(
5069
5095
  "viewBox",
@@ -5099,8 +5125,8 @@ const J = () => {
5099
5125
  a && f && (a.textContent = f);
5100
5126
  const L = cs(i, e, S);
5101
5127
  (ns[m] || []).forEach((w) => {
5102
- const q = ls(w.name, w.id, L);
5103
- i.appendChild(q);
5128
+ const I = ls(w.name, w.id, L);
5129
+ i.appendChild(I);
5104
5130
  }), tt(i), t.setAttribute("aria-hidden", "false");
5105
5131
  };
5106
5132
  o?.addEventListener("click", l), r?.addEventListener("click", l), n.addEventListener("click", () => {