function Jt(t) {
  return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
}
function Lt(t, e) {
  t === void 0 && (t = {}), e === void 0 && (e = {}), Object.keys(e).forEach((r) => {
    typeof t[r] > "u" ? t[r] = e[r] : Jt(e[r]) && Jt(t[r]) && Object.keys(e[r]).length > 0 && Lt(t[r], e[r]);
  });
}
const Tr = {
  body: {},
  addEventListener() {
  },
  removeEventListener() {
  },
  activeElement: {
    blur() {
    },
    nodeName: ""
  },
  querySelector() {
    return null;
  },
  querySelectorAll() {
    return [];
  },
  getElementById() {
    return null;
  },
  createEvent() {
    return {
      initEvent() {
      }
    };
  },
  createElement() {
    return {
      children: [],
      childNodes: [],
      style: {},
      setAttribute() {
      },
      getElementsByTagName() {
        return [];
      }
    };
  },
  createElementNS() {
    return {};
  },
  importNode() {
    return null;
  },
  location: {
    hash: "",
    host: "",
    hostname: "",
    href: "",
    origin: "",
    pathname: "",
    protocol: "",
    search: ""
  }
};
function fe() {
  const t = typeof document < "u" ? document : {};
  return Lt(t, Tr), t;
}
const wn = {
  document: Tr,
  navigator: {
    userAgent: ""
  },
  location: {
    hash: "",
    host: "",
    hostname: "",
    href: "",
    origin: "",
    pathname: "",
    protocol: "",
    search: ""
  },
  history: {
    replaceState() {
    },
    pushState() {
    },
    go() {
    },
    back() {
    }
  },
  CustomEvent: function() {
    return this;
  },
  addEventListener() {
  },
  removeEventListener() {
  },
  getComputedStyle() {
    return {
      getPropertyValue() {
        return "";
      }
    };
  },
  Image() {
  },
  Date() {
  },
  screen: {},
  setTimeout() {
  },
  clearTimeout() {
  },
  matchMedia() {
    return {};
  },
  requestAnimationFrame(t) {
    return typeof setTimeout > "u" ? (t(), null) : setTimeout(t, 0);
  },
  cancelAnimationFrame(t) {
    typeof setTimeout > "u" || clearTimeout(t);
  }
};
function q() {
  const t = typeof window < "u" ? window : {};
  return Lt(t, wn), t;
}
function yn(t) {
  const e = t;
  Object.keys(e).forEach((r) => {
    try {
      e[r] = null;
    } catch {
    }
    try {
      delete e[r];
    } catch {
    }
  });
}
function gt(t, e) {
  return e === void 0 && (e = 0), setTimeout(t, e);
}
function Ge() {
  return Date.now();
}
function bn(t) {
  const e = q();
  let r;
  return e.getComputedStyle && (r = e.getComputedStyle(t, null)), !r && t.currentStyle && (r = t.currentStyle), r || (r = t.style), r;
}
function Sn(t, e) {
  e === void 0 && (e = "x");
  const r = q();
  let n, i, s;
  const o = bn(t);
  return r.WebKitCSSMatrix ? (i = o.transform || o.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((l) => l.replace(",", ".")).join(", ")), s = new r.WebKitCSSMatrix(i === "none" ? "" : i)) : (s = o.MozTransform || o.OTransform || o.MsTransform || o.msTransform || o.transform || o.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), n = s.toString().split(",")), e === "x" && (r.WebKitCSSMatrix ? i = s.m41 : n.length === 16 ? i = parseFloat(n[12]) : i = parseFloat(n[4])), e === "y" && (r.WebKitCSSMatrix ? i = s.m42 : n.length === 16 ? i = parseFloat(n[13]) : i = parseFloat(n[5])), i || 0;
}
function Be(t) {
  return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
}
function En(t) {
  return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
}
function z() {
  const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
  for (let r = 1; r < arguments.length; r += 1) {
    const n = r < 0 || arguments.length <= r ? void 0 : arguments[r];
    if (n != null && !En(n)) {
      const i = Object.keys(Object(n)).filter((s) => e.indexOf(s) < 0);
      for (let s = 0, o = i.length; s < o; s += 1) {
        const l = i[s], a = Object.getOwnPropertyDescriptor(n, l);
        a !== void 0 && a.enumerable && (Be(t[l]) && Be(n[l]) ? n[l].__swiper__ ? t[l] = n[l] : z(t[l], n[l]) : !Be(t[l]) && Be(n[l]) ? (t[l] = {}, n[l].__swiper__ ? t[l] = n[l] : z(t[l], n[l])) : t[l] = n[l]);
      }
    }
  }
  return t;
}
function ze(t, e, r) {
  t.style.setProperty(e, r);
}
function Or(t) {
  let {
    swiper: e,
    targetPosition: r,
    side: n
  } = t;
  const i = q(), s = -e.translate;
  let o = null, l;
  const a = e.params.speed;
  e.wrapperEl.style.scrollSnapType = "none", i.cancelAnimationFrame(e.cssModeFrameID);
  const c = r > s ? "next" : "prev", d = (g, p) => c === "next" && g >= p || c === "prev" && g <= p, u = () => {
    l = (/* @__PURE__ */ new Date()).getTime(), o === null && (o = l);
    const g = Math.max(Math.min((l - o) / a, 1), 0), p = 0.5 - Math.cos(g * Math.PI) / 2;
    let h = s + p * (r - s);
    if (d(h, r) && (h = r), e.wrapperEl.scrollTo({
      [n]: h
    }), d(h, r)) {
      e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
        e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
          [n]: h
        });
      }), i.cancelAnimationFrame(e.cssModeFrameID);
      return;
    }
    e.cssModeFrameID = i.requestAnimationFrame(u);
  };
  u();
}
function Y(t, e) {
  return e === void 0 && (e = ""), [...t.children].filter((r) => r.matches(e));
}
function Lr(t, e) {
  e === void 0 && (e = []);
  const r = document.createElement(t);
  return r.classList.add(...Array.isArray(e) ? e : [e]), r;
}
function xn(t, e) {
  const r = [];
  for (; t.previousElementSibling; ) {
    const n = t.previousElementSibling;
    e ? n.matches(e) && r.push(n) : r.push(n), t = n;
  }
  return r;
}
function Tn(t, e) {
  const r = [];
  for (; t.nextElementSibling; ) {
    const n = t.nextElementSibling;
    e ? n.matches(e) && r.push(n) : r.push(n), t = n;
  }
  return r;
}
function ie(t, e) {
  return q().getComputedStyle(t, null).getPropertyValue(e);
}
function Kt(t) {
  let e = t, r;
  if (e) {
    for (r = 0; (e = e.previousSibling) !== null; )
      e.nodeType === 1 && (r += 1);
    return r;
  }
}
function On(t, e) {
  const r = [];
  let n = t.parentElement;
  for (; n; )
    e ? n.matches(e) && r.push(n) : r.push(n), n = n.parentElement;
  return r;
}
function Zt(t, e, r) {
  const n = q();
  return r ? t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(n.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(n.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom")) : t.offsetWidth;
}
let st;
function Ln() {
  const t = q(), e = fe();
  return {
    smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
    touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
  };
}
function Pr() {
  return st || (st = Ln()), st;
}
let ot;
function Pn(t) {
  let {
    userAgent: e
  } = t === void 0 ? {} : t;
  const r = Pr(), n = q(), i = n.navigator.platform, s = e || n.navigator.userAgent, o = {
    ios: !1,
    android: !1
  }, l = n.screen.width, a = n.screen.height, c = s.match(/(Android);?[\s\/]+([\d.]+)?/);
  let d = s.match(/(iPad).*OS\s([\d_]+)/);
  const u = s.match(/(iPod)(.*OS\s([\d_]+))?/), g = !d && s.match(/(iPhone\sOS|iOS)\s([\d_]+)/), p = i === "Win32";
  let h = i === "MacIntel";
  const f = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
  return !d && h && r.touch && f.indexOf(`${l}x${a}`) >= 0 && (d = s.match(/(Version)\/([\d.]+)/), d || (d = [0, 1, "13_0_0"]), h = !1), c && !p && (o.os = "android", o.android = !0), (d || g || u) && (o.os = "ios", o.ios = !0), o;
}
function Cn(t) {
  return t === void 0 && (t = {}), ot || (ot = Pn(t)), ot;
}
let at;
function An() {
  const t = q();
  let e = !1;
  function r() {
    const n = t.navigator.userAgent.toLowerCase();
    return n.indexOf("safari") >= 0 && n.indexOf("chrome") < 0 && n.indexOf("android") < 0;
  }
  if (r()) {
    const n = String(t.navigator.userAgent);
    if (n.includes("Version/")) {
      const [i, s] = n.split("Version/")[1].split(" ")[0].split(".").map((o) => Number(o));
      e = i < 16 || i === 16 && s < 2;
    }
  }
  return {
    isSafari: e || r(),
    needPerspectiveFix: e,
    isWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)
  };
}
function Mn() {
  return at || (at = An()), at;
}
function kn(t) {
  let {
    swiper: e,
    on: r,
    emit: n
  } = t;
  const i = q();
  let s = null, o = null;
  const l = () => {
    !e || e.destroyed || !e.initialized || (n("beforeResize"), n("resize"));
  }, a = () => {
    !e || e.destroyed || !e.initialized || (s = new ResizeObserver((u) => {
      o = i.requestAnimationFrame(() => {
        const {
          width: g,
          height: p
        } = e;
        let h = g, f = p;
        u.forEach((m) => {
          let {
            contentBoxSize: v,
            contentRect: w,
            target: y
          } = m;
          y && y !== e.el || (h = w ? w.width : (v[0] || v).inlineSize, f = w ? w.height : (v[0] || v).blockSize);
        }), (h !== g || f !== p) && l();
      });
    }), s.observe(e.el));
  }, c = () => {
    o && i.cancelAnimationFrame(o), s && s.unobserve && e.el && (s.unobserve(e.el), s = null);
  }, d = () => {
    !e || e.destroyed || !e.initialized || n("orientationchange");
  };
  r("init", () => {
    if (e.params.resizeObserver && typeof i.ResizeObserver < "u") {
      a();
      return;
    }
    i.addEventListener("resize", l), i.addEventListener("orientationchange", d);
  }), r("destroy", () => {
    c(), i.removeEventListener("resize", l), i.removeEventListener("orientationchange", d);
  });
}
function Rn(t) {
  let {
    swiper: e,
    extendParams: r,
    on: n,
    emit: i
  } = t;
  const s = [], o = q(), l = function(d, u) {
    u === void 0 && (u = {});
    const g = o.MutationObserver || o.WebkitMutationObserver, p = new g((h) => {
      if (e.__preventObserver__)
        return;
      if (h.length === 1) {
        i("observerUpdate", h[0]);
        return;
      }
      const f = function() {
        i("observerUpdate", h[0]);
      };
      o.requestAnimationFrame ? o.requestAnimationFrame(f) : o.setTimeout(f, 0);
    });
    p.observe(d, {
      attributes: typeof u.attributes > "u" ? !0 : u.attributes,
      childList: typeof u.childList > "u" ? !0 : u.childList,
      characterData: typeof u.characterData > "u" ? !0 : u.characterData
    }), s.push(p);
  }, a = () => {
    if (e.params.observer) {
      if (e.params.observeParents) {
        const d = On(e.hostEl);
        for (let u = 0; u < d.length; u += 1)
          l(d[u]);
      }
      l(e.hostEl, {
        childList: e.params.observeSlideChildren
      }), l(e.wrapperEl, {
        attributes: !1
      });
    }
  }, c = () => {
    s.forEach((d) => {
      d.disconnect();
    }), s.splice(0, s.length);
  };
  r({
    observer: !1,
    observeParents: !1,
    observeSlideChildren: !1
  }), n("init", a), n("destroy", c);
}
var In = {
  on(t, e, r) {
    const n = this;
    if (!n.eventsListeners || n.destroyed || typeof e != "function")
      return n;
    const i = r ? "unshift" : "push";
    return t.split(" ").forEach((s) => {
      n.eventsListeners[s] || (n.eventsListeners[s] = []), n.eventsListeners[s][i](e);
    }), n;
  },
  once(t, e, r) {
    const n = this;
    if (!n.eventsListeners || n.destroyed || typeof e != "function")
      return n;
    function i() {
      n.off(t, i), i.__emitterProxy && delete i.__emitterProxy;
      for (var s = arguments.length, o = new Array(s), l = 0; l < s; l++)
        o[l] = arguments[l];
      e.apply(n, o);
    }
    return i.__emitterProxy = e, n.on(t, i, r);
  },
  onAny(t, e) {
    const r = this;
    if (!r.eventsListeners || r.destroyed || typeof t != "function")
      return r;
    const n = e ? "unshift" : "push";
    return r.eventsAnyListeners.indexOf(t) < 0 && r.eventsAnyListeners[n](t), r;
  },
  offAny(t) {
    const e = this;
    if (!e.eventsListeners || e.destroyed || !e.eventsAnyListeners)
      return e;
    const r = e.eventsAnyListeners.indexOf(t);
    return r >= 0 && e.eventsAnyListeners.splice(r, 1), e;
  },
  off(t, e) {
    const r = this;
    return !r.eventsListeners || r.destroyed || !r.eventsListeners || t.split(" ").forEach((n) => {
      typeof e > "u" ? r.eventsListeners[n] = [] : r.eventsListeners[n] && r.eventsListeners[n].forEach((i, s) => {
        (i === e || i.__emitterProxy && i.__emitterProxy === e) && r.eventsListeners[n].splice(s, 1);
      });
    }), r;
  },
  emit() {
    const t = this;
    if (!t.eventsListeners || t.destroyed || !t.eventsListeners)
      return t;
    let e, r, n;
    for (var i = arguments.length, s = new Array(i), o = 0; o < i; o++)
      s[o] = arguments[o];
    return typeof s[0] == "string" || Array.isArray(s[0]) ? (e = s[0], r = s.slice(1, s.length), n = t) : (e = s[0].events, r = s[0].data, n = s[0].context || t), r.unshift(n), (Array.isArray(e) ? e : e.split(" ")).forEach((a) => {
      t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((c) => {
        c.apply(n, [a, ...r]);
      }), t.eventsListeners && t.eventsListeners[a] && t.eventsListeners[a].forEach((c) => {
        c.apply(n, r);
      });
    }), t;
  }
};
function Dn() {
  const t = this;
  let e, r;
  const n = t.el;
  typeof t.params.width < "u" && t.params.width !== null ? e = t.params.width : e = n.clientWidth, typeof t.params.height < "u" && t.params.height !== null ? r = t.params.height : r = n.clientHeight, !(e === 0 && t.isHorizontal() || r === 0 && t.isVertical()) && (e = e - parseInt(ie(n, "padding-left") || 0, 10) - parseInt(ie(n, "padding-right") || 0, 10), r = r - parseInt(ie(n, "padding-top") || 0, 10) - parseInt(ie(n, "padding-bottom") || 0, 10), Number.isNaN(e) && (e = 0), Number.isNaN(r) && (r = 0), Object.assign(t, {
    width: e,
    height: r,
    size: t.isHorizontal() ? e : r
  }));
}
function _n() {
  const t = this;
  function e(x) {
    return t.isHorizontal() ? x : {
      width: "height",
      "margin-top": "margin-left",
      "margin-bottom ": "margin-right",
      "margin-left": "margin-top",
      "margin-right": "margin-bottom",
      "padding-left": "padding-top",
      "padding-right": "padding-bottom",
      marginRight: "marginBottom"
    }[x];
  }
  function r(x, O) {
    return parseFloat(x.getPropertyValue(e(O)) || 0);
  }
  const n = t.params, {
    wrapperEl: i,
    slidesEl: s,
    size: o,
    rtlTranslate: l,
    wrongRTL: a
  } = t, c = t.virtual && n.virtual.enabled, d = c ? t.virtual.slides.length : t.slides.length, u = Y(s, `.${t.params.slideClass}, swiper-slide`), g = c ? t.virtual.slides.length : u.length;
  let p = [];
  const h = [], f = [];
  let m = n.slidesOffsetBefore;
  typeof m == "function" && (m = n.slidesOffsetBefore.call(t));
  let v = n.slidesOffsetAfter;
  typeof v == "function" && (v = n.slidesOffsetAfter.call(t));
  const w = t.snapGrid.length, y = t.slidesGrid.length;
  let S = n.spaceBetween, E = -m, L = 0, T = 0;
  if (typeof o > "u")
    return;
  typeof S == "string" && S.indexOf("%") >= 0 ? S = parseFloat(S.replace("%", "")) / 100 * o : typeof S == "string" && (S = parseFloat(S)), t.virtualSize = -S, u.forEach((x) => {
    l ? x.style.marginLeft = "" : x.style.marginRight = "", x.style.marginBottom = "", x.style.marginTop = "";
  }), n.centeredSlides && n.cssMode && (ze(i, "--swiper-centered-offset-before", ""), ze(i, "--swiper-centered-offset-after", ""));
  const M = n.grid && n.grid.rows > 1 && t.grid;
  M && t.grid.initSlides(g);
  let C;
  const k = n.slidesPerView === "auto" && n.breakpoints && Object.keys(n.breakpoints).filter((x) => typeof n.breakpoints[x].slidesPerView < "u").length > 0;
  for (let x = 0; x < g; x += 1) {
    C = 0;
    let O;
    if (u[x] && (O = u[x]), M && t.grid.updateSlide(x, O, g, e), !(u[x] && ie(O, "display") === "none")) {
      if (n.slidesPerView === "auto") {
        k && (u[x].style[e("width")] = "");
        const P = getComputedStyle(O), I = O.style.transform, W = O.style.webkitTransform;
        if (I && (O.style.transform = "none"), W && (O.style.webkitTransform = "none"), n.roundLengths)
          C = t.isHorizontal() ? Zt(O, "width", !0) : Zt(O, "height", !0);
        else {
          const D = r(P, "width"), B = r(P, "padding-left"), pe = r(P, "padding-right"), X = r(P, "margin-left"), oe = r(P, "margin-right"), me = P.getPropertyValue("box-sizing");
          if (me && me === "border-box")
            C = D + X + oe;
          else {
            const {
              clientWidth: ae,
              offsetWidth: he
            } = O;
            C = D + B + pe + X + oe + (he - ae);
          }
        }
        I && (O.style.transform = I), W && (O.style.webkitTransform = W), n.roundLengths && (C = Math.floor(C));
      } else
        C = (o - (n.slidesPerView - 1) * S) / n.slidesPerView, n.roundLengths && (C = Math.floor(C)), u[x] && (u[x].style[e("width")] = `${C}px`);
      u[x] && (u[x].swiperSlideSize = C), f.push(C), n.centeredSlides ? (E = E + C / 2 + L / 2 + S, L === 0 && x !== 0 && (E = E - o / 2 - S), x === 0 && (E = E - o / 2 - S), Math.abs(E) < 1 / 1e3 && (E = 0), n.roundLengths && (E = Math.floor(E)), T % n.slidesPerGroup === 0 && p.push(E), h.push(E)) : (n.roundLengths && (E = Math.floor(E)), (T - Math.min(t.params.slidesPerGroupSkip, T)) % t.params.slidesPerGroup === 0 && p.push(E), h.push(E), E = E + C + S), t.virtualSize += C + S, L = C, T += 1;
    }
  }
  if (t.virtualSize = Math.max(t.virtualSize, o) + v, l && a && (n.effect === "slide" || n.effect === "coverflow") && (i.style.width = `${t.virtualSize + S}px`), n.setWrapperSize && (i.style[e("width")] = `${t.virtualSize + S}px`), M && t.grid.updateWrapperSize(C, p, e), !n.centeredSlides) {
    const x = [];
    for (let O = 0; O < p.length; O += 1) {
      let P = p[O];
      n.roundLengths && (P = Math.floor(P)), p[O] <= t.virtualSize - o && x.push(P);
    }
    p = x, Math.floor(t.virtualSize - o) - Math.floor(p[p.length - 1]) > 1 && p.push(t.virtualSize - o);
  }
  if (c && n.loop) {
    const x = f[0] + S;
    if (n.slidesPerGroup > 1) {
      const O = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / n.slidesPerGroup), P = x * n.slidesPerGroup;
      for (let I = 0; I < O; I += 1)
        p.push(p[p.length - 1] + P);
    }
    for (let O = 0; O < t.virtual.slidesBefore + t.virtual.slidesAfter; O += 1)
      n.slidesPerGroup === 1 && p.push(p[p.length - 1] + x), h.push(h[h.length - 1] + x), t.virtualSize += x;
  }
  if (p.length === 0 && (p = [0]), S !== 0) {
    const x = t.isHorizontal() && l ? "marginLeft" : e("marginRight");
    u.filter((O, P) => !n.cssMode || n.loop ? !0 : P !== u.length - 1).forEach((O) => {
      O.style[x] = `${S}px`;
    });
  }
  if (n.centeredSlides && n.centeredSlidesBounds) {
    let x = 0;
    f.forEach((P) => {
      x += P + (S || 0);
    }), x -= S;
    const O = x - o;
    p = p.map((P) => P <= 0 ? -m : P > O ? O + v : P);
  }
  if (n.centerInsufficientSlides) {
    let x = 0;
    if (f.forEach((O) => {
      x += O + (S || 0);
    }), x -= S, x < o) {
      const O = (o - x) / 2;
      p.forEach((P, I) => {
        p[I] = P - O;
      }), h.forEach((P, I) => {
        h[I] = P + O;
      });
    }
  }
  if (Object.assign(t, {
    slides: u,
    snapGrid: p,
    slidesGrid: h,
    slidesSizesGrid: f
  }), n.centeredSlides && n.cssMode && !n.centeredSlidesBounds) {
    ze(i, "--swiper-centered-offset-before", `${-p[0]}px`), ze(i, "--swiper-centered-offset-after", `${t.size / 2 - f[f.length - 1] / 2}px`);
    const x = -t.snapGrid[0], O = -t.slidesGrid[0];
    t.snapGrid = t.snapGrid.map((P) => P + x), t.slidesGrid = t.slidesGrid.map((P) => P + O);
  }
  if (g !== d && t.emit("slidesLengthChange"), p.length !== w && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), h.length !== y && t.emit("slidesGridLengthChange"), n.watchSlidesProgress && t.updateSlidesOffset(), !c && !n.cssMode && (n.effect === "slide" || n.effect === "fade")) {
    const x = `${n.containerModifierClass}backface-hidden`, O = t.el.classList.contains(x);
    g <= n.maxBackfaceHiddenSlides ? O || t.el.classList.add(x) : O && t.el.classList.remove(x);
  }
}
function Nn(t) {
  const e = this, r = [], n = e.virtual && e.params.virtual.enabled;
  let i = 0, s;
  typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
  const o = (l) => n ? e.slides[e.getSlideIndexByData(l)] : e.slides[l];
  if (e.params.slidesPerView !== "auto" && e.params.slidesPerView > 1)
    if (e.params.centeredSlides)
      (e.visibleSlides || []).forEach((l) => {
        r.push(l);
      });
    else
      for (s = 0; s < Math.ceil(e.params.slidesPerView); s += 1) {
        const l = e.activeIndex + s;
        if (l > e.slides.length && !n)
          break;
        r.push(o(l));
      }
  else
    r.push(o(e.activeIndex));
  for (s = 0; s < r.length; s += 1)
    if (typeof r[s] < "u") {
      const l = r[s].offsetHeight;
      i = l > i ? l : i;
    }
  (i || i === 0) && (e.wrapperEl.style.height = `${i}px`);
}
function Bn() {
  const t = this, e = t.slides, r = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
  for (let n = 0; n < e.length; n += 1)
    e[n].swiperSlideOffset = (t.isHorizontal() ? e[n].offsetLeft : e[n].offsetTop) - r - t.cssOverflowAdjustment();
}
function zn(t) {
  t === void 0 && (t = this && this.translate || 0);
  const e = this, r = e.params, {
    slides: n,
    rtlTranslate: i,
    snapGrid: s
  } = e;
  if (n.length === 0)
    return;
  typeof n[0].swiperSlideOffset > "u" && e.updateSlidesOffset();
  let o = -t;
  i && (o = t), n.forEach((a) => {
    a.classList.remove(r.slideVisibleClass);
  }), e.visibleSlidesIndexes = [], e.visibleSlides = [];
  let l = r.spaceBetween;
  typeof l == "string" && l.indexOf("%") >= 0 ? l = parseFloat(l.replace("%", "")) / 100 * e.size : typeof l == "string" && (l = parseFloat(l));
  for (let a = 0; a < n.length; a += 1) {
    const c = n[a];
    let d = c.swiperSlideOffset;
    r.cssMode && r.centeredSlides && (d -= n[0].swiperSlideOffset);
    const u = (o + (r.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + l), g = (o - s[0] + (r.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + l), p = -(o - d), h = p + e.slidesSizesGrid[a];
    (p >= 0 && p < e.size - 1 || h > 1 && h <= e.size || p <= 0 && h >= e.size) && (e.visibleSlides.push(c), e.visibleSlidesIndexes.push(a), n[a].classList.add(r.slideVisibleClass)), c.progress = i ? -u : u, c.originalProgress = i ? -g : g;
  }
}
function Fn(t) {
  const e = this;
  if (typeof t > "u") {
    const d = e.rtlTranslate ? -1 : 1;
    t = e && e.translate && e.translate * d || 0;
  }
  const r = e.params, n = e.maxTranslate() - e.minTranslate();
  let {
    progress: i,
    isBeginning: s,
    isEnd: o,
    progressLoop: l
  } = e;
  const a = s, c = o;
  if (n === 0)
    i = 0, s = !0, o = !0;
  else {
    i = (t - e.minTranslate()) / n;
    const d = Math.abs(t - e.minTranslate()) < 1, u = Math.abs(t - e.maxTranslate()) < 1;
    s = d || i <= 0, o = u || i >= 1, d && (i = 0), u && (i = 1);
  }
  if (r.loop) {
    const d = e.getSlideIndexByData(0), u = e.getSlideIndexByData(e.slides.length - 1), g = e.slidesGrid[d], p = e.slidesGrid[u], h = e.slidesGrid[e.slidesGrid.length - 1], f = Math.abs(t);
    f >= g ? l = (f - g) / h : l = (f + h - p) / h, l > 1 && (l -= 1);
  }
  Object.assign(e, {
    progress: i,
    progressLoop: l,
    isBeginning: s,
    isEnd: o
  }), (r.watchSlidesProgress || r.centeredSlides && r.autoHeight) && e.updateSlidesProgress(t), s && !a && e.emit("reachBeginning toEdge"), o && !c && e.emit("reachEnd toEdge"), (a && !s || c && !o) && e.emit("fromEdge"), e.emit("progress", i);
}
function qn() {
  const t = this, {
    slides: e,
    params: r,
    slidesEl: n,
    activeIndex: i
  } = t, s = t.virtual && r.virtual.enabled, o = (a) => Y(n, `.${r.slideClass}${a}, swiper-slide${a}`)[0];
  e.forEach((a) => {
    a.classList.remove(r.slideActiveClass, r.slideNextClass, r.slidePrevClass);
  });
  let l;
  if (s)
    if (r.loop) {
      let a = i - t.virtual.slidesBefore;
      a < 0 && (a = t.virtual.slides.length + a), a >= t.virtual.slides.length && (a -= t.virtual.slides.length), l = o(`[data-swiper-slide-index="${a}"]`);
    } else
      l = o(`[data-swiper-slide-index="${i}"]`);
  else
    l = e[i];
  if (l) {
    l.classList.add(r.slideActiveClass);
    let a = Tn(l, `.${r.slideClass}, swiper-slide`)[0];
    r.loop && !a && (a = e[0]), a && a.classList.add(r.slideNextClass);
    let c = xn(l, `.${r.slideClass}, swiper-slide`)[0];
    r.loop && !c === 0 && (c = e[e.length - 1]), c && c.classList.add(r.slidePrevClass);
  }
  t.emitSlidesClasses();
}
const qe = (t, e) => {
  if (!t || t.destroyed || !t.params)
    return;
  const r = () => t.isElement ? "swiper-slide" : `.${t.params.slideClass}`, n = e.closest(r());
  if (n) {
    let i = n.querySelector(`.${t.params.lazyPreloaderClass}`);
    !i && t.isElement && (i = n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`)), i && i.remove();
  }
}, lt = (t, e) => {
  if (!t.slides[e])
    return;
  const r = t.slides[e].querySelector('[loading="lazy"]');
  r && r.removeAttribute("loading");
}, wt = (t) => {
  if (!t || t.destroyed || !t.params)
    return;
  let e = t.params.lazyPreloadPrevNext;
  const r = t.slides.length;
  if (!r || !e || e < 0)
    return;
  e = Math.min(e, r);
  const n = t.params.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(t.params.slidesPerView), i = t.activeIndex;
  if (t.params.grid && t.params.grid.rows > 1) {
    const o = i, l = [o - e];
    l.push(...Array.from({
      length: e
    }).map((a, c) => o + n + c)), t.slides.forEach((a, c) => {
      l.includes(a.column) && lt(t, c);
    });
    return;
  }
  const s = i + n - 1;
  if (t.params.rewind || t.params.loop)
    for (let o = i - e; o <= s + e; o += 1) {
      const l = (o % r + r) % r;
      (l < i || l > s) && lt(t, l);
    }
  else
    for (let o = Math.max(i - e, 0); o <= Math.min(s + e, r - 1); o += 1)
      o !== i && (o > s || o < i) && lt(t, o);
};
function jn(t) {
  const {
    slidesGrid: e,
    params: r
  } = t, n = t.rtlTranslate ? t.translate : -t.translate;
  let i;
  for (let s = 0; s < e.length; s += 1)
    typeof e[s + 1] < "u" ? n >= e[s] && n < e[s + 1] - (e[s + 1] - e[s]) / 2 ? i = s : n >= e[s] && n < e[s + 1] && (i = s + 1) : n >= e[s] && (i = s);
  return r.normalizeSlideIndex && (i < 0 || typeof i > "u") && (i = 0), i;
}
function Vn(t) {
  const e = this, r = e.rtlTranslate ? e.translate : -e.translate, {
    snapGrid: n,
    params: i,
    activeIndex: s,
    realIndex: o,
    snapIndex: l
  } = e;
  let a = t, c;
  const d = (g) => {
    let p = g - e.virtual.slidesBefore;
    return p < 0 && (p = e.virtual.slides.length + p), p >= e.virtual.slides.length && (p -= e.virtual.slides.length), p;
  };
  if (typeof a > "u" && (a = jn(e)), n.indexOf(r) >= 0)
    c = n.indexOf(r);
  else {
    const g = Math.min(i.slidesPerGroupSkip, a);
    c = g + Math.floor((a - g) / i.slidesPerGroup);
  }
  if (c >= n.length && (c = n.length - 1), a === s) {
    c !== l && (e.snapIndex = c, e.emit("snapIndexChange")), e.params.loop && e.virtual && e.params.virtual.enabled && (e.realIndex = d(a));
    return;
  }
  let u;
  e.virtual && i.virtual.enabled && i.loop ? u = d(a) : e.slides[a] ? u = parseInt(e.slides[a].getAttribute("data-swiper-slide-index") || a, 10) : u = a, Object.assign(e, {
    previousSnapIndex: l,
    snapIndex: c,
    previousRealIndex: o,
    realIndex: u,
    previousIndex: s,
    activeIndex: a
  }), e.initialized && wt(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), o !== u && e.emit("realIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && e.emit("slideChange");
}
function Hn(t) {
  const e = this, r = e.params, n = t.closest(`.${r.slideClass}, swiper-slide`);
  let i = !1, s;
  if (n) {
    for (let o = 0; o < e.slides.length; o += 1)
      if (e.slides[o] === n) {
        i = !0, s = o;
        break;
      }
  }
  if (n && i)
    e.clickedSlide = n, e.virtual && e.params.virtual.enabled ? e.clickedIndex = parseInt(n.getAttribute("data-swiper-slide-index"), 10) : e.clickedIndex = s;
  else {
    e.clickedSlide = void 0, e.clickedIndex = void 0;
    return;
  }
  r.slideToClickedSlide && e.clickedIndex !== void 0 && e.clickedIndex !== e.activeIndex && e.slideToClickedSlide();
}
var $n = {
  updateSize: Dn,
  updateSlides: _n,
  updateAutoHeight: Nn,
  updateSlidesOffset: Bn,
  updateSlidesProgress: zn,
  updateProgress: Fn,
  updateSlidesClasses: qn,
  updateActiveIndex: Vn,
  updateClickedSlide: Hn
};
function Gn(t) {
  t === void 0 && (t = this.isHorizontal() ? "x" : "y");
  const e = this, {
    params: r,
    rtlTranslate: n,
    translate: i,
    wrapperEl: s
  } = e;
  if (r.virtualTranslate)
    return n ? -i : i;
  if (r.cssMode)
    return i;
  let o = Sn(s, t);
  return o += e.cssOverflowAdjustment(), n && (o = -o), o || 0;
}
function Wn(t, e) {
  const r = this, {
    rtlTranslate: n,
    params: i,
    wrapperEl: s,
    progress: o
  } = r;
  let l = 0, a = 0;
  const c = 0;
  r.isHorizontal() ? l = n ? -t : t : a = t, i.roundLengths && (l = Math.floor(l), a = Math.floor(a)), r.previousTranslate = r.translate, r.translate = r.isHorizontal() ? l : a, i.cssMode ? s[r.isHorizontal() ? "scrollLeft" : "scrollTop"] = r.isHorizontal() ? -l : -a : i.virtualTranslate || (r.isHorizontal() ? l -= r.cssOverflowAdjustment() : a -= r.cssOverflowAdjustment(), s.style.transform = `translate3d(${l}px, ${a}px, ${c}px)`);
  let d;
  const u = r.maxTranslate() - r.minTranslate();
  u === 0 ? d = 0 : d = (t - r.minTranslate()) / u, d !== o && r.updateProgress(t), r.emit("setTranslate", r.translate, e);
}
function Un() {
  return -this.snapGrid[0];
}
function Xn() {
  return -this.snapGrid[this.snapGrid.length - 1];
}
function Yn(t, e, r, n, i) {
  t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), r === void 0 && (r = !0), n === void 0 && (n = !0);
  const s = this, {
    params: o,
    wrapperEl: l
  } = s;
  if (s.animating && o.preventInteractionOnTransition)
    return !1;
  const a = s.minTranslate(), c = s.maxTranslate();
  let d;
  if (n && t > a ? d = a : n && t < c ? d = c : d = t, s.updateProgress(d), o.cssMode) {
    const u = s.isHorizontal();
    if (e === 0)
      l[u ? "scrollLeft" : "scrollTop"] = -d;
    else {
      if (!s.support.smoothScroll)
        return Or({
          swiper: s,
          targetPosition: -d,
          side: u ? "left" : "top"
        }), !0;
      l.scrollTo({
        [u ? "left" : "top"]: -d,
        behavior: "smooth"
      });
    }
    return !0;
  }
  return e === 0 ? (s.setTransition(0), s.setTranslate(d), r && (s.emit("beforeTransitionStart", e, i), s.emit("transitionEnd"))) : (s.setTransition(e), s.setTranslate(d), r && (s.emit("beforeTransitionStart", e, i), s.emit("transitionStart")), s.animating || (s.animating = !0, s.onTranslateToWrapperTransitionEnd || (s.onTranslateToWrapperTransitionEnd = function(g) {
    !s || s.destroyed || g.target === this && (s.wrapperEl.removeEventListener("transitionend", s.onTranslateToWrapperTransitionEnd), s.onTranslateToWrapperTransitionEnd = null, delete s.onTranslateToWrapperTransitionEnd, r && s.emit("transitionEnd"));
  }), s.wrapperEl.addEventListener("transitionend", s.onTranslateToWrapperTransitionEnd))), !0;
}
var Jn = {
  getTranslate: Gn,
  setTranslate: Wn,
  minTranslate: Un,
  maxTranslate: Xn,
  translateTo: Yn
};
function Kn(t, e) {
  const r = this;
  r.params.cssMode || (r.wrapperEl.style.transitionDuration = `${t}ms`, r.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), r.emit("setTransition", t, e);
}
function Cr(t) {
  let {
    swiper: e,
    runCallbacks: r,
    direction: n,
    step: i
  } = t;
  const {
    activeIndex: s,
    previousIndex: o
  } = e;
  let l = n;
  if (l || (s > o ? l = "next" : s < o ? l = "prev" : l = "reset"), e.emit(`transition${i}`), r && s !== o) {
    if (l === "reset") {
      e.emit(`slideResetTransition${i}`);
      return;
    }
    e.emit(`slideChangeTransition${i}`), l === "next" ? e.emit(`slideNextTransition${i}`) : e.emit(`slidePrevTransition${i}`);
  }
}
function Zn(t, e) {
  t === void 0 && (t = !0);
  const r = this, {
    params: n
  } = r;
  n.cssMode || (n.autoHeight && r.updateAutoHeight(), Cr({
    swiper: r,
    runCallbacks: t,
    direction: e,
    step: "Start"
  }));
}
function Qn(t, e) {
  t === void 0 && (t = !0);
  const r = this, {
    params: n
  } = r;
  r.animating = !1, !n.cssMode && (r.setTransition(0), Cr({
    swiper: r,
    runCallbacks: t,
    direction: e,
    step: "End"
  }));
}
var ei = {
  setTransition: Kn,
  transitionStart: Zn,
  transitionEnd: Qn
};
function ti(t, e, r, n, i) {
  t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), r === void 0 && (r = !0), typeof t == "string" && (t = parseInt(t, 10));
  const s = this;
  let o = t;
  o < 0 && (o = 0);
  const {
    params: l,
    snapGrid: a,
    slidesGrid: c,
    previousIndex: d,
    activeIndex: u,
    rtlTranslate: g,
    wrapperEl: p,
    enabled: h
  } = s;
  if (s.animating && l.preventInteractionOnTransition || !h && !n && !i)
    return !1;
  const f = Math.min(s.params.slidesPerGroupSkip, o);
  let m = f + Math.floor((o - f) / s.params.slidesPerGroup);
  m >= a.length && (m = a.length - 1);
  const v = -a[m];
  if (l.normalizeSlideIndex)
    for (let y = 0; y < c.length; y += 1) {
      const S = -Math.floor(v * 100), E = Math.floor(c[y] * 100), L = Math.floor(c[y + 1] * 100);
      typeof c[y + 1] < "u" ? S >= E && S < L - (L - E) / 2 ? o = y : S >= E && S < L && (o = y + 1) : S >= E && (o = y);
    }
  if (s.initialized && o !== u && (!s.allowSlideNext && (g ? v > s.translate && v > s.minTranslate() : v < s.translate && v < s.minTranslate()) || !s.allowSlidePrev && v > s.translate && v > s.maxTranslate() && (u || 0) !== o))
    return !1;
  o !== (d || 0) && r && s.emit("beforeSlideChangeStart"), s.updateProgress(v);
  let w;
  if (o > u ? w = "next" : o < u ? w = "prev" : w = "reset", g && -v === s.translate || !g && v === s.translate)
    return s.updateActiveIndex(o), l.autoHeight && s.updateAutoHeight(), s.updateSlidesClasses(), l.effect !== "slide" && s.setTranslate(v), w !== "reset" && (s.transitionStart(r, w), s.transitionEnd(r, w)), !1;
  if (l.cssMode) {
    const y = s.isHorizontal(), S = g ? v : -v;
    if (e === 0) {
      const E = s.virtual && s.params.virtual.enabled;
      E && (s.wrapperEl.style.scrollSnapType = "none", s._immediateVirtual = !0), E && !s._cssModeVirtualInitialSet && s.params.initialSlide > 0 ? (s._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
        p[y ? "scrollLeft" : "scrollTop"] = S;
      })) : p[y ? "scrollLeft" : "scrollTop"] = S, E && requestAnimationFrame(() => {
        s.wrapperEl.style.scrollSnapType = "", s._immediateVirtual = !1;
      });
    } else {
      if (!s.support.smoothScroll)
        return Or({
          swiper: s,
          targetPosition: S,
          side: y ? "left" : "top"
        }), !0;
      p.scrollTo({
        [y ? "left" : "top"]: S,
        behavior: "smooth"
      });
    }
    return !0;
  }
  return s.setTransition(e), s.setTranslate(v), s.updateActiveIndex(o), s.updateSlidesClasses(), s.emit("beforeTransitionStart", e, n), s.transitionStart(r, w), e === 0 ? s.transitionEnd(r, w) : s.animating || (s.animating = !0, s.onSlideToWrapperTransitionEnd || (s.onSlideToWrapperTransitionEnd = function(S) {
    !s || s.destroyed || S.target === this && (s.wrapperEl.removeEventListener("transitionend", s.onSlideToWrapperTransitionEnd), s.onSlideToWrapperTransitionEnd = null, delete s.onSlideToWrapperTransitionEnd, s.transitionEnd(r, w));
  }), s.wrapperEl.addEventListener("transitionend", s.onSlideToWrapperTransitionEnd)), !0;
}
function ri(t, e, r, n) {
  t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), r === void 0 && (r = !0), typeof t == "string" && (t = parseInt(t, 10));
  const i = this;
  let s = t;
  return i.params.loop && (i.virtual && i.params.virtual.enabled ? s = s + i.virtual.slidesBefore : s = i.getSlideIndexByData(s)), i.slideTo(s, e, r, n);
}
function ni(t, e, r) {
  t === void 0 && (t = this.params.speed), e === void 0 && (e = !0);
  const n = this, {
    enabled: i,
    params: s,
    animating: o
  } = n;
  if (!i)
    return n;
  let l = s.slidesPerGroup;
  s.slidesPerView === "auto" && s.slidesPerGroup === 1 && s.slidesPerGroupAuto && (l = Math.max(n.slidesPerViewDynamic("current", !0), 1));
  const a = n.activeIndex < s.slidesPerGroupSkip ? 1 : l, c = n.virtual && s.virtual.enabled;
  if (s.loop) {
    if (o && !c && s.loopPreventsSliding)
      return !1;
    n.loopFix({
      direction: "next"
    }), n._clientLeft = n.wrapperEl.clientLeft;
  }
  return s.rewind && n.isEnd ? n.slideTo(0, t, e, r) : n.slideTo(n.activeIndex + a, t, e, r);
}
function ii(t, e, r) {
  t === void 0 && (t = this.params.speed), e === void 0 && (e = !0);
  const n = this, {
    params: i,
    snapGrid: s,
    slidesGrid: o,
    rtlTranslate: l,
    enabled: a,
    animating: c
  } = n;
  if (!a)
    return n;
  const d = n.virtual && i.virtual.enabled;
  if (i.loop) {
    if (c && !d && i.loopPreventsSliding)
      return !1;
    n.loopFix({
      direction: "prev"
    }), n._clientLeft = n.wrapperEl.clientLeft;
  }
  const u = l ? n.translate : -n.translate;
  function g(v) {
    return v < 0 ? -Math.floor(Math.abs(v)) : Math.floor(v);
  }
  const p = g(u), h = s.map((v) => g(v));
  let f = s[h.indexOf(p) - 1];
  if (typeof f > "u" && i.cssMode) {
    let v;
    s.forEach((w, y) => {
      p >= w && (v = y);
    }), typeof v < "u" && (f = s[v > 0 ? v - 1 : v]);
  }
  let m = 0;
  if (typeof f < "u" && (m = o.indexOf(f), m < 0 && (m = n.activeIndex - 1), i.slidesPerView === "auto" && i.slidesPerGroup === 1 && i.slidesPerGroupAuto && (m = m - n.slidesPerViewDynamic("previous", !0) + 1, m = Math.max(m, 0))), i.rewind && n.isBeginning) {
    const v = n.params.virtual && n.params.virtual.enabled && n.virtual ? n.virtual.slides.length - 1 : n.slides.length - 1;
    return n.slideTo(v, t, e, r);
  }
  return n.slideTo(m, t, e, r);
}
function si(t, e, r) {
  t === void 0 && (t = this.params.speed), e === void 0 && (e = !0);
  const n = this;
  return n.slideTo(n.activeIndex, t, e, r);
}
function oi(t, e, r, n) {
  t === void 0 && (t = this.params.speed), e === void 0 && (e = !0), n === void 0 && (n = 0.5);
  const i = this;
  let s = i.activeIndex;
  const o = Math.min(i.params.slidesPerGroupSkip, s), l = o + Math.floor((s - o) / i.params.slidesPerGroup), a = i.rtlTranslate ? i.translate : -i.translate;
  if (a >= i.snapGrid[l]) {
    const c = i.snapGrid[l], d = i.snapGrid[l + 1];
    a - c > (d - c) * n && (s += i.params.slidesPerGroup);
  } else {
    const c = i.snapGrid[l - 1], d = i.snapGrid[l];
    a - c <= (d - c) * n && (s -= i.params.slidesPerGroup);
  }
  return s = Math.max(s, 0), s = Math.min(s, i.slidesGrid.length - 1), i.slideTo(s, t, e, r);
}
function ai() {
  const t = this, {
    params: e,
    slidesEl: r
  } = t, n = e.slidesPerView === "auto" ? t.slidesPerViewDynamic() : e.slidesPerView;
  let i = t.clickedIndex, s;
  const o = t.isElement ? "swiper-slide" : `.${e.slideClass}`;
  if (e.loop) {
    if (t.animating)
      return;
    s = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? i < t.loopedSlides - n / 2 || i > t.slides.length - t.loopedSlides + n / 2 ? (t.loopFix(), i = t.getSlideIndex(Y(r, `${o}[data-swiper-slide-index="${s}"]`)[0]), gt(() => {
      t.slideTo(i);
    })) : t.slideTo(i) : i > t.slides.length - n ? (t.loopFix(), i = t.getSlideIndex(Y(r, `${o}[data-swiper-slide-index="${s}"]`)[0]), gt(() => {
      t.slideTo(i);
    })) : t.slideTo(i);
  } else
    t.slideTo(i);
}
var li = {
  slideTo: ti,
  slideToLoop: ri,
  slideNext: ni,
  slidePrev: ii,
  slideReset: si,
  slideToClosest: oi,
  slideToClickedSlide: ai
};
function ci(t) {
  const e = this, {
    params: r,
    slidesEl: n
  } = e;
  if (!r.loop || e.virtual && e.params.virtual.enabled)
    return;
  Y(n, `.${r.slideClass}, swiper-slide`).forEach((s, o) => {
    s.setAttribute("data-swiper-slide-index", o);
  }), e.loopFix({
    slideRealIndex: t,
    direction: r.centeredSlides ? void 0 : "next"
  });
}
function di(t) {
  let {
    slideRealIndex: e,
    slideTo: r = !0,
    direction: n,
    setTranslate: i,
    activeSlideIndex: s,
    byController: o,
    byMousewheel: l
  } = t === void 0 ? {} : t;
  const a = this;
  if (!a.params.loop)
    return;
  a.emit("beforeLoopFix");
  const {
    slides: c,
    allowSlidePrev: d,
    allowSlideNext: u,
    slidesEl: g,
    params: p
  } = a;
  if (a.allowSlidePrev = !0, a.allowSlideNext = !0, a.virtual && p.virtual.enabled) {
    r && (!p.centeredSlides && a.snapIndex === 0 ? a.slideTo(a.virtual.slides.length, 0, !1, !0) : p.centeredSlides && a.snapIndex < p.slidesPerView ? a.slideTo(a.virtual.slides.length + a.snapIndex, 0, !1, !0) : a.snapIndex === a.snapGrid.length - 1 && a.slideTo(a.virtual.slidesBefore, 0, !1, !0)), a.allowSlidePrev = d, a.allowSlideNext = u, a.emit("loopFix");
    return;
  }
  const h = p.slidesPerView === "auto" ? a.slidesPerViewDynamic() : Math.ceil(parseFloat(p.slidesPerView, 10));
  let f = p.loopedSlides || h;
  f % p.slidesPerGroup !== 0 && (f += p.slidesPerGroup - f % p.slidesPerGroup), a.loopedSlides = f;
  const m = [], v = [];
  let w = a.activeIndex;
  typeof s > "u" ? s = a.getSlideIndex(a.slides.filter((T) => T.classList.contains(p.slideActiveClass))[0]) : w = s;
  const y = n === "next" || !n, S = n === "prev" || !n;
  let E = 0, L = 0;
  if (s < f) {
    E = Math.max(f - s, p.slidesPerGroup);
    for (let T = 0; T < f - s; T += 1) {
      const M = T - Math.floor(T / c.length) * c.length;
      m.push(c.length - M - 1);
    }
  } else if (s > a.slides.length - f * 2) {
    L = Math.max(s - (a.slides.length - f * 2), p.slidesPerGroup);
    for (let T = 0; T < L; T += 1) {
      const M = T - Math.floor(T / c.length) * c.length;
      v.push(M);
    }
  }
  if (S && m.forEach((T) => {
    a.slides[T].swiperLoopMoveDOM = !0, g.prepend(a.slides[T]), a.slides[T].swiperLoopMoveDOM = !1;
  }), y && v.forEach((T) => {
    a.slides[T].swiperLoopMoveDOM = !0, g.append(a.slides[T]), a.slides[T].swiperLoopMoveDOM = !1;
  }), a.recalcSlides(), p.slidesPerView === "auto" && a.updateSlides(), p.watchSlidesProgress && a.updateSlidesOffset(), r) {
    if (m.length > 0 && S)
      if (typeof e > "u") {
        const T = a.slidesGrid[w], C = a.slidesGrid[w + E] - T;
        l ? a.setTranslate(a.translate - C) : (a.slideTo(w + E, 0, !1, !0), i && (a.touches[a.isHorizontal() ? "startX" : "startY"] += C, a.touchEventsData.currentTranslate = a.translate));
      } else
        i && (a.slideToLoop(e, 0, !1, !0), a.touchEventsData.currentTranslate = a.translate);
    else if (v.length > 0 && y)
      if (typeof e > "u") {
        const T = a.slidesGrid[w], C = a.slidesGrid[w - L] - T;
        l ? a.setTranslate(a.translate - C) : (a.slideTo(w - L, 0, !1, !0), i && (a.touches[a.isHorizontal() ? "startX" : "startY"] += C, a.touchEventsData.currentTranslate = a.translate));
      } else
        a.slideToLoop(e, 0, !1, !0);
  }
  if (a.allowSlidePrev = d, a.allowSlideNext = u, a.controller && a.controller.control && !o) {
    const T = {
      slideRealIndex: e,
      direction: n,
      setTranslate: i,
      activeSlideIndex: s,
      byController: !0
    };
    Array.isArray(a.controller.control) ? a.controller.control.forEach((M) => {
      !M.destroyed && M.params.loop && M.loopFix({
        ...T,
        slideTo: M.params.slidesPerView === p.slidesPerView ? r : !1
      });
    }) : a.controller.control instanceof a.constructor && a.controller.control.params.loop && a.controller.control.loopFix({
      ...T,
      slideTo: a.controller.control.params.slidesPerView === p.slidesPerView ? r : !1
    });
  }
  a.emit("loopFix");
}
function ui() {
  const t = this, {
    params: e,
    slidesEl: r
  } = t;
  if (!e.loop || t.virtual && t.params.virtual.enabled)
    return;
  t.recalcSlides();
  const n = [];
  t.slides.forEach((i) => {
    const s = typeof i.swiperSlideIndex > "u" ? i.getAttribute("data-swiper-slide-index") * 1 : i.swiperSlideIndex;
    n[s] = i;
  }), t.slides.forEach((i) => {
    i.removeAttribute("data-swiper-slide-index");
  }), n.forEach((i) => {
    r.append(i);
  }), t.recalcSlides(), t.slideTo(t.realIndex, 0);
}
var fi = {
  loopCreate: ci,
  loopFix: di,
  loopDestroy: ui
};
function pi(t) {
  const e = this;
  if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode)
    return;
  const r = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
  e.isElement && (e.__preventObserver__ = !0), r.style.cursor = "move", r.style.cursor = t ? "grabbing" : "grab", e.isElement && requestAnimationFrame(() => {
    e.__preventObserver__ = !1;
  });
}
function mi() {
  const t = this;
  t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ = !0), t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", t.isElement && requestAnimationFrame(() => {
    t.__preventObserver__ = !1;
  }));
}
var hi = {
  setGrabCursor: pi,
  unsetGrabCursor: mi
};
function vi(t, e) {
  e === void 0 && (e = this);
  function r(n) {
    if (!n || n === fe() || n === q())
      return null;
    n.assignedSlot && (n = n.assignedSlot);
    const i = n.closest(t);
    return !i && !n.getRootNode ? null : i || r(n.getRootNode().host);
  }
  return r(e);
}
function gi(t) {
  const e = this, r = fe(), n = q(), i = e.touchEventsData;
  i.evCache.push(t);
  const {
    params: s,
    touches: o,
    enabled: l
  } = e;
  if (!l || !s.simulateTouch && t.pointerType === "mouse" || e.animating && s.preventInteractionOnTransition)
    return;
  !e.animating && s.cssMode && s.loop && e.loopFix();
  let a = t;
  a.originalEvent && (a = a.originalEvent);
  let c = a.target;
  if (s.touchEventsTarget === "wrapper" && !e.wrapperEl.contains(c) || "which" in a && a.which === 3 || "button" in a && a.button > 0 || i.isTouched && i.isMoved)
    return;
  const d = !!s.noSwipingClass && s.noSwipingClass !== "", u = t.composedPath ? t.composedPath() : t.path;
  d && a.target && a.target.shadowRoot && u && (c = u[0]);
  const g = s.noSwipingSelector ? s.noSwipingSelector : `.${s.noSwipingClass}`, p = !!(a.target && a.target.shadowRoot);
  if (s.noSwiping && (p ? vi(g, c) : c.closest(g))) {
    e.allowClick = !0;
    return;
  }
  if (s.swipeHandler && !c.closest(s.swipeHandler))
    return;
  o.currentX = a.pageX, o.currentY = a.pageY;
  const h = o.currentX, f = o.currentY, m = s.edgeSwipeDetection || s.iOSEdgeSwipeDetection, v = s.edgeSwipeThreshold || s.iOSEdgeSwipeThreshold;
  if (m && (h <= v || h >= n.innerWidth - v))
    if (m === "prevent")
      t.preventDefault();
    else
      return;
  Object.assign(i, {
    isTouched: !0,
    isMoved: !1,
    allowTouchCallbacks: !0,
    isScrolling: void 0,
    startMoving: void 0
  }), o.startX = h, o.startY = f, i.touchStartTime = Ge(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, s.threshold > 0 && (i.allowThresholdMove = !1);
  let w = !0;
  c.matches(i.focusableElements) && (w = !1, c.nodeName === "SELECT" && (i.isTouched = !1)), r.activeElement && r.activeElement.matches(i.focusableElements) && r.activeElement !== c && r.activeElement.blur();
  const y = w && e.allowTouchMove && s.touchStartPreventDefault;
  (s.touchStartForcePreventDefault || y) && !c.isContentEditable && a.preventDefault(), s.freeMode && s.freeMode.enabled && e.freeMode && e.animating && !s.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", a);
}
function wi(t) {
  const e = fe(), r = this, n = r.touchEventsData, {
    params: i,
    touches: s,
    rtlTranslate: o,
    enabled: l
  } = r;
  if (!l || !i.simulateTouch && t.pointerType === "mouse")
    return;
  let a = t;
  if (a.originalEvent && (a = a.originalEvent), !n.isTouched) {
    n.startMoving && n.isScrolling && r.emit("touchMoveOpposite", a);
    return;
  }
  const c = n.evCache.findIndex((L) => L.pointerId === a.pointerId);
  c >= 0 && (n.evCache[c] = a);
  const d = n.evCache.length > 1 ? n.evCache[0] : a, u = d.pageX, g = d.pageY;
  if (a.preventedByNestedSwiper) {
    s.startX = u, s.startY = g;
    return;
  }
  if (!r.allowTouchMove) {
    a.target.matches(n.focusableElements) || (r.allowClick = !1), n.isTouched && (Object.assign(s, {
      startX: u,
      startY: g,
      prevX: r.touches.currentX,
      prevY: r.touches.currentY,
      currentX: u,
      currentY: g
    }), n.touchStartTime = Ge());
    return;
  }
  if (i.touchReleaseOnEdges && !i.loop) {
    if (r.isVertical()) {
      if (g < s.startY && r.translate <= r.maxTranslate() || g > s.startY && r.translate >= r.minTranslate()) {
        n.isTouched = !1, n.isMoved = !1;
        return;
      }
    } else if (u < s.startX && r.translate <= r.maxTranslate() || u > s.startX && r.translate >= r.minTranslate())
      return;
  }
  if (e.activeElement && a.target === e.activeElement && a.target.matches(n.focusableElements)) {
    n.isMoved = !0, r.allowClick = !1;
    return;
  }
  if (n.allowTouchCallbacks && r.emit("touchMove", a), a.targetTouches && a.targetTouches.length > 1)
    return;
  s.currentX = u, s.currentY = g;
  const p = s.currentX - s.startX, h = s.currentY - s.startY;
  if (r.params.threshold && Math.sqrt(p ** 2 + h ** 2) < r.params.threshold)
    return;
  if (typeof n.isScrolling > "u") {
    let L;
    r.isHorizontal() && s.currentY === s.startY || r.isVertical() && s.currentX === s.startX ? n.isScrolling = !1 : p * p + h * h >= 25 && (L = Math.atan2(Math.abs(h), Math.abs(p)) * 180 / Math.PI, n.isScrolling = r.isHorizontal() ? L > i.touchAngle : 90 - L > i.touchAngle);
  }
  if (n.isScrolling && r.emit("touchMoveOpposite", a), typeof n.startMoving > "u" && (s.currentX !== s.startX || s.currentY !== s.startY) && (n.startMoving = !0), n.isScrolling || r.zoom && r.params.zoom && r.params.zoom.enabled && n.evCache.length > 1) {
    n.isTouched = !1;
    return;
  }
  if (!n.startMoving)
    return;
  r.allowClick = !1, !i.cssMode && a.cancelable && a.preventDefault(), i.touchMoveStopPropagation && !i.nested && a.stopPropagation();
  let f = r.isHorizontal() ? p : h, m = r.isHorizontal() ? s.currentX - s.previousX : s.currentY - s.previousY;
  i.oneWayMovement && (f = Math.abs(f) * (o ? 1 : -1), m = Math.abs(m) * (o ? 1 : -1)), s.diff = f, f *= i.touchRatio, o && (f = -f, m = -m);
  const v = r.touchesDirection;
  r.swipeDirection = f > 0 ? "prev" : "next", r.touchesDirection = m > 0 ? "prev" : "next";
  const w = r.params.loop && !i.cssMode;
  if (!n.isMoved) {
    if (w && r.loopFix({
      direction: r.swipeDirection
    }), n.startTranslate = r.getTranslate(), r.setTransition(0), r.animating) {
      const L = new window.CustomEvent("transitionend", {
        bubbles: !0,
        cancelable: !0
      });
      r.wrapperEl.dispatchEvent(L);
    }
    n.allowMomentumBounce = !1, i.grabCursor && (r.allowSlideNext === !0 || r.allowSlidePrev === !0) && r.setGrabCursor(!0), r.emit("sliderFirstMove", a);
  }
  let y;
  n.isMoved && v !== r.touchesDirection && w && Math.abs(f) >= 1 && (r.loopFix({
    direction: r.swipeDirection,
    setTranslate: !0
  }), y = !0), r.emit("sliderMove", a), n.isMoved = !0, n.currentTranslate = f + n.startTranslate;
  let S = !0, E = i.resistanceRatio;
  if (i.touchReleaseOnEdges && (E = 0), f > 0 ? (w && !y && n.currentTranslate > (i.centeredSlides ? r.minTranslate() - r.size / 2 : r.minTranslate()) && r.loopFix({
    direction: "prev",
    setTranslate: !0,
    activeSlideIndex: 0
  }), n.currentTranslate > r.minTranslate() && (S = !1, i.resistance && (n.currentTranslate = r.minTranslate() - 1 + (-r.minTranslate() + n.startTranslate + f) ** E))) : f < 0 && (w && !y && n.currentTranslate < (i.centeredSlides ? r.maxTranslate() + r.size / 2 : r.maxTranslate()) && r.loopFix({
    direction: "next",
    setTranslate: !0,
    activeSlideIndex: r.slides.length - (i.slidesPerView === "auto" ? r.slidesPerViewDynamic() : Math.ceil(parseFloat(i.slidesPerView, 10)))
  }), n.currentTranslate < r.maxTranslate() && (S = !1, i.resistance && (n.currentTranslate = r.maxTranslate() + 1 - (r.maxTranslate() - n.startTranslate - f) ** E))), S && (a.preventedByNestedSwiper = !0), !r.allowSlideNext && r.swipeDirection === "next" && n.currentTranslate < n.startTranslate && (n.currentTranslate = n.startTranslate), !r.allowSlidePrev && r.swipeDirection === "prev" && n.currentTranslate > n.startTranslate && (n.currentTranslate = n.startTranslate), !r.allowSlidePrev && !r.allowSlideNext && (n.currentTranslate = n.startTranslate), i.threshold > 0)
    if (Math.abs(f) > i.threshold || n.allowThresholdMove) {
      if (!n.allowThresholdMove) {
        n.allowThresholdMove = !0, s.startX = s.currentX, s.startY = s.currentY, n.currentTranslate = n.startTranslate, s.diff = r.isHorizontal() ? s.currentX - s.startX : s.currentY - s.startY;
        return;
      }
    } else {
      n.currentTranslate = n.startTranslate;
      return;
    }
  !i.followFinger || i.cssMode || ((i.freeMode && i.freeMode.enabled && r.freeMode || i.watchSlidesProgress) && (r.updateActiveIndex(), r.updateSlidesClasses()), i.freeMode && i.freeMode.enabled && r.freeMode && r.freeMode.onTouchMove(), r.updateProgress(n.currentTranslate), r.setTranslate(n.currentTranslate));
}
function yi(t) {
  const e = this, r = e.touchEventsData, n = r.evCache.findIndex((y) => y.pointerId === t.pointerId);
  if (n >= 0 && r.evCache.splice(n, 1), ["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(t.type) && !(["pointercancel", "contextmenu"].includes(t.type) && (e.browser.isSafari || e.browser.isWebView)))
    return;
  const {
    params: i,
    touches: s,
    rtlTranslate: o,
    slidesGrid: l,
    enabled: a
  } = e;
  if (!a || !i.simulateTouch && t.pointerType === "mouse")
    return;
  let c = t;
  if (c.originalEvent && (c = c.originalEvent), r.allowTouchCallbacks && e.emit("touchEnd", c), r.allowTouchCallbacks = !1, !r.isTouched) {
    r.isMoved && i.grabCursor && e.setGrabCursor(!1), r.isMoved = !1, r.startMoving = !1;
    return;
  }
  i.grabCursor && r.isMoved && r.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
  const d = Ge(), u = d - r.touchStartTime;
  if (e.allowClick) {
    const y = c.path || c.composedPath && c.composedPath();
    e.updateClickedSlide(y && y[0] || c.target), e.emit("tap click", c), u < 300 && d - r.lastClickTime < 300 && e.emit("doubleTap doubleClick", c);
  }
  if (r.lastClickTime = Ge(), gt(() => {
    e.destroyed || (e.allowClick = !0);
  }), !r.isTouched || !r.isMoved || !e.swipeDirection || s.diff === 0 || r.currentTranslate === r.startTranslate) {
    r.isTouched = !1, r.isMoved = !1, r.startMoving = !1;
    return;
  }
  r.isTouched = !1, r.isMoved = !1, r.startMoving = !1;
  let g;
  if (i.followFinger ? g = o ? e.translate : -e.translate : g = -r.currentTranslate, i.cssMode)
    return;
  if (i.freeMode && i.freeMode.enabled) {
    e.freeMode.onTouchEnd({
      currentPos: g
    });
    return;
  }
  let p = 0, h = e.slidesSizesGrid[0];
  for (let y = 0; y < l.length; y += y < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) {
    const S = y < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
    typeof l[y + S] < "u" ? g >= l[y] && g < l[y + S] && (p = y, h = l[y + S] - l[y]) : g >= l[y] && (p = y, h = l[l.length - 1] - l[l.length - 2]);
  }
  let f = null, m = null;
  i.rewind && (e.isBeginning ? m = i.virtual && i.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (f = 0));
  const v = (g - l[p]) / h, w = p < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
  if (u > i.longSwipesMs) {
    if (!i.longSwipes) {
      e.slideTo(e.activeIndex);
      return;
    }
    e.swipeDirection === "next" && (v >= i.longSwipesRatio ? e.slideTo(i.rewind && e.isEnd ? f : p + w) : e.slideTo(p)), e.swipeDirection === "prev" && (v > 1 - i.longSwipesRatio ? e.slideTo(p + w) : m !== null && v < 0 && Math.abs(v) > i.longSwipesRatio ? e.slideTo(m) : e.slideTo(p));
  } else {
    if (!i.shortSwipes) {
      e.slideTo(e.activeIndex);
      return;
    }
    e.navigation && (c.target === e.navigation.nextEl || c.target === e.navigation.prevEl) ? c.target === e.navigation.nextEl ? e.slideTo(p + w) : e.slideTo(p) : (e.swipeDirection === "next" && e.slideTo(f !== null ? f : p + w), e.swipeDirection === "prev" && e.slideTo(m !== null ? m : p));
  }
}
function Qt() {
  const t = this, {
    params: e,
    el: r
  } = t;
  if (r && r.offsetWidth === 0)
    return;
  e.breakpoints && t.setBreakpoint();
  const {
    allowSlideNext: n,
    allowSlidePrev: i,
    snapGrid: s
  } = t, o = t.virtual && t.params.virtual.enabled;
  t.allowSlideNext = !0, t.allowSlidePrev = !0, t.updateSize(), t.updateSlides(), t.updateSlidesClasses();
  const l = o && e.loop;
  (e.slidesPerView === "auto" || e.slidesPerView > 1) && t.isEnd && !t.isBeginning && !t.params.centeredSlides && !l ? t.slideTo(t.slides.length - 1, 0, !1, !0) : t.params.loop && !o ? t.slideToLoop(t.realIndex, 0, !1, !0) : t.slideTo(t.activeIndex, 0, !1, !0), t.autoplay && t.autoplay.running && t.autoplay.paused && (clearTimeout(t.autoplay.resizeTimeout), t.autoplay.resizeTimeout = setTimeout(() => {
    t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
  }, 500)), t.allowSlidePrev = i, t.allowSlideNext = n, t.params.watchOverflow && s !== t.snapGrid && t.checkOverflow();
}
function bi(t) {
  const e = this;
  e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
}
function Si() {
  const t = this, {
    wrapperEl: e,
    rtlTranslate: r,
    enabled: n
  } = t;
  if (!n)
    return;
  t.previousTranslate = t.translate, t.isHorizontal() ? t.translate = -e.scrollLeft : t.translate = -e.scrollTop, t.translate === 0 && (t.translate = 0), t.updateActiveIndex(), t.updateSlidesClasses();
  let i;
  const s = t.maxTranslate() - t.minTranslate();
  s === 0 ? i = 0 : i = (t.translate - t.minTranslate()) / s, i !== t.progress && t.updateProgress(r ? -t.translate : t.translate), t.emit("setTranslate", t.translate, !1);
}
function Ei(t) {
  const e = this;
  qe(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
}
let er = !1;
function xi() {
}
const Ar = (t, e) => {
  const r = fe(), {
    params: n,
    el: i,
    wrapperEl: s,
    device: o
  } = t, l = !!n.nested, a = e === "on" ? "addEventListener" : "removeEventListener", c = e;
  i[a]("pointerdown", t.onTouchStart, {
    passive: !1
  }), r[a]("pointermove", t.onTouchMove, {
    passive: !1,
    capture: l
  }), r[a]("pointerup", t.onTouchEnd, {
    passive: !0
  }), r[a]("pointercancel", t.onTouchEnd, {
    passive: !0
  }), r[a]("pointerout", t.onTouchEnd, {
    passive: !0
  }), r[a]("pointerleave", t.onTouchEnd, {
    passive: !0
  }), r[a]("contextmenu", t.onTouchEnd, {
    passive: !0
  }), (n.preventClicks || n.preventClicksPropagation) && i[a]("click", t.onClick, !0), n.cssMode && s[a]("scroll", t.onScroll), n.updateOnWindowResize ? t[c](o.ios || o.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", Qt, !0) : t[c]("observerUpdate", Qt, !0), i[a]("load", t.onLoad, {
    capture: !0
  });
};
function Ti() {
  const t = this, e = fe(), {
    params: r
  } = t;
  t.onTouchStart = gi.bind(t), t.onTouchMove = wi.bind(t), t.onTouchEnd = yi.bind(t), r.cssMode && (t.onScroll = Si.bind(t)), t.onClick = bi.bind(t), t.onLoad = Ei.bind(t), er || (e.addEventListener("touchstart", xi), er = !0), Ar(t, "on");
}
function Oi() {
  Ar(this, "off");
}
var Li = {
  attachEvents: Ti,
  detachEvents: Oi
};
const tr = (t, e) => t.grid && e.grid && e.grid.rows > 1;
function Pi() {
  const t = this, {
    realIndex: e,
    initialized: r,
    params: n,
    el: i
  } = t, s = n.breakpoints;
  if (!s || s && Object.keys(s).length === 0)
    return;
  const o = t.getBreakpoint(s, t.params.breakpointsBase, t.el);
  if (!o || t.currentBreakpoint === o)
    return;
  const a = (o in s ? s[o] : void 0) || t.originalParams, c = tr(t, n), d = tr(t, a), u = n.enabled;
  c && !d ? (i.classList.remove(`${n.containerModifierClass}grid`, `${n.containerModifierClass}grid-column`), t.emitContainerClasses()) : !c && d && (i.classList.add(`${n.containerModifierClass}grid`), (a.grid.fill && a.grid.fill === "column" || !a.grid.fill && n.grid.fill === "column") && i.classList.add(`${n.containerModifierClass}grid-column`), t.emitContainerClasses()), ["navigation", "pagination", "scrollbar"].forEach((f) => {
    if (typeof a[f] > "u")
      return;
    const m = n[f] && n[f].enabled, v = a[f] && a[f].enabled;
    m && !v && t[f].disable(), !m && v && t[f].enable();
  });
  const g = a.direction && a.direction !== n.direction, p = n.loop && (a.slidesPerView !== n.slidesPerView || g);
  g && r && t.changeDirection(), z(t.params, a);
  const h = t.params.enabled;
  Object.assign(t, {
    allowTouchMove: t.params.allowTouchMove,
    allowSlideNext: t.params.allowSlideNext,
    allowSlidePrev: t.params.allowSlidePrev
  }), u && !h ? t.disable() : !u && h && t.enable(), t.currentBreakpoint = o, t.emit("_beforeBreakpoint", a), p && r && (t.loopDestroy(), t.loopCreate(e), t.updateSlides()), t.emit("breakpoint", a);
}
function Ci(t, e, r) {
  if (e === void 0 && (e = "window"), !t || e === "container" && !r)
    return;
  let n = !1;
  const i = q(), s = e === "window" ? i.innerHeight : r.clientHeight, o = Object.keys(t).map((l) => {
    if (typeof l == "string" && l.indexOf("@") === 0) {
      const a = parseFloat(l.substr(1));
      return {
        value: s * a,
        point: l
      };
    }
    return {
      value: l,
      point: l
    };
  });
  o.sort((l, a) => parseInt(l.value, 10) - parseInt(a.value, 10));
  for (let l = 0; l < o.length; l += 1) {
    const {
      point: a,
      value: c
    } = o[l];
    e === "window" ? i.matchMedia(`(min-width: ${c}px)`).matches && (n = a) : c <= r.clientWidth && (n = a);
  }
  return n || "max";
}
var Ai = {
  setBreakpoint: Pi,
  getBreakpoint: Ci
};
function Mi(t, e) {
  const r = [];
  return t.forEach((n) => {
    typeof n == "object" ? Object.keys(n).forEach((i) => {
      n[i] && r.push(e + i);
    }) : typeof n == "string" && r.push(e + n);
  }), r;
}
function ki() {
  const t = this, {
    classNames: e,
    params: r,
    rtl: n,
    el: i,
    device: s
  } = t, o = Mi(["initialized", r.direction, {
    "free-mode": t.params.freeMode && r.freeMode.enabled
  }, {
    autoheight: r.autoHeight
  }, {
    rtl: n
  }, {
    grid: r.grid && r.grid.rows > 1
  }, {
    "grid-column": r.grid && r.grid.rows > 1 && r.grid.fill === "column"
  }, {
    android: s.android
  }, {
    ios: s.ios
  }, {
    "css-mode": r.cssMode
  }, {
    centered: r.cssMode && r.centeredSlides
  }, {
    "watch-progress": r.watchSlidesProgress
  }], r.containerModifierClass);
  e.push(...o), i.classList.add(...e), t.emitContainerClasses();
}
function Ri() {
  const t = this, {
    el: e,
    classNames: r
  } = t;
  e.classList.remove(...r), t.emitContainerClasses();
}
var Ii = {
  addClasses: ki,
  removeClasses: Ri
};
function Di() {
  const t = this, {
    isLocked: e,
    params: r
  } = t, {
    slidesOffsetBefore: n
  } = r;
  if (n) {
    const i = t.slides.length - 1, s = t.slidesGrid[i] + t.slidesSizesGrid[i] + n * 2;
    t.isLocked = t.size > s;
  } else
    t.isLocked = t.snapGrid.length === 1;
  r.allowSlideNext === !0 && (t.allowSlideNext = !t.isLocked), r.allowSlidePrev === !0 && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = !1), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
}
var _i = {
  checkOverflow: Di
}, rr = {
  init: !0,
  direction: "horizontal",
  oneWayMovement: !1,
  touchEventsTarget: "wrapper",
  initialSlide: 0,
  speed: 300,
  cssMode: !1,
  updateOnWindowResize: !0,
  resizeObserver: !0,
  nested: !1,
  createElements: !1,
  enabled: !0,
  focusableElements: "input, select, option, textarea, button, video, label",
  // Overrides
  width: null,
  height: null,
  //
  preventInteractionOnTransition: !1,
  // ssr
  userAgent: null,
  url: null,
  // To support iOS's swipe-to-go-back gesture (when being used in-app).
  edgeSwipeDetection: !1,
  edgeSwipeThreshold: 20,
  // Autoheight
  autoHeight: !1,
  // Set wrapper width
  setWrapperSize: !1,
  // Virtual Translate
  virtualTranslate: !1,
  // Effects
  effect: "slide",
  // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
  // Breakpoints
  breakpoints: void 0,
  breakpointsBase: "window",
  // Slides grid
  spaceBetween: 0,
  slidesPerView: 1,
  slidesPerGroup: 1,
  slidesPerGroupSkip: 0,
  slidesPerGroupAuto: !1,
  centeredSlides: !1,
  centeredSlidesBounds: !1,
  slidesOffsetBefore: 0,
  // in px
  slidesOffsetAfter: 0,
  // in px
  normalizeSlideIndex: !0,
  centerInsufficientSlides: !1,
  // Disable swiper and hide navigation when container not overflow
  watchOverflow: !0,
  // Round length
  roundLengths: !1,
  // Touches
  touchRatio: 1,
  touchAngle: 45,
  simulateTouch: !0,
  shortSwipes: !0,
  longSwipes: !0,
  longSwipesRatio: 0.5,
  longSwipesMs: 300,
  followFinger: !0,
  allowTouchMove: !0,
  threshold: 5,
  touchMoveStopPropagation: !1,
  touchStartPreventDefault: !0,
  touchStartForcePreventDefault: !1,
  touchReleaseOnEdges: !1,
  // Unique Navigation Elements
  uniqueNavElements: !0,
  // Resistance
  resistance: !0,
  resistanceRatio: 0.85,
  // Progress
  watchSlidesProgress: !1,
  // Cursor
  grabCursor: !1,
  // Clicks
  preventClicks: !0,
  preventClicksPropagation: !0,
  slideToClickedSlide: !1,
  // loop
  loop: !1,
  loopedSlides: null,
  loopPreventsSliding: !0,
  // rewind
  rewind: !1,
  // Swiping/no swiping
  allowSlidePrev: !0,
  allowSlideNext: !0,
  swipeHandler: null,
  // '.swipe-handler',
  noSwiping: !0,
  noSwipingClass: "swiper-no-swiping",
  noSwipingSelector: null,
  // Passive Listeners
  passiveListeners: !0,
  maxBackfaceHiddenSlides: 10,
  // NS
  containerModifierClass: "swiper-",
  // NEW
  slideClass: "swiper-slide",
  slideActiveClass: "swiper-slide-active",
  slideVisibleClass: "swiper-slide-visible",
  slideNextClass: "swiper-slide-next",
  slidePrevClass: "swiper-slide-prev",
  wrapperClass: "swiper-wrapper",
  lazyPreloaderClass: "swiper-lazy-preloader",
  lazyPreloadPrevNext: 0,
  // Callbacks
  runCallbacksOnInit: !0,
  // Internals
  _emitClasses: !1
};
function Ni(t, e) {
  return function(n) {
    n === void 0 && (n = {});
    const i = Object.keys(n)[0], s = n[i];
    if (typeof s != "object" || s === null) {
      z(e, n);
      return;
    }
    if (["navigation", "pagination", "scrollbar"].indexOf(i) >= 0 && t[i] === !0 && (t[i] = {
      auto: !0
    }), !(i in t && "enabled" in s)) {
      z(e, n);
      return;
    }
    t[i] === !0 && (t[i] = {
      enabled: !0
    }), typeof t[i] == "object" && !("enabled" in t[i]) && (t[i].enabled = !0), t[i] || (t[i] = {
      enabled: !1
    }), z(e, n);
  };
}
const ct = {
  eventsEmitter: In,
  update: $n,
  translate: Jn,
  transition: ei,
  slide: li,
  loop: fi,
  grabCursor: hi,
  events: Li,
  breakpoints: Ai,
  checkOverflow: _i,
  classes: Ii
}, dt = {};
class j {
  constructor() {
    let e, r;
    for (var n = arguments.length, i = new Array(n), s = 0; s < n; s++)
      i[s] = arguments[s];
    i.length === 1 && i[0].constructor && Object.prototype.toString.call(i[0]).slice(8, -1) === "Object" ? r = i[0] : [e, r] = i, r || (r = {}), r = z({}, r), e && !r.el && (r.el = e);
    const o = fe();
    if (r.el && typeof r.el == "string" && o.querySelectorAll(r.el).length > 1) {
      const d = [];
      return o.querySelectorAll(r.el).forEach((u) => {
        const g = z({}, r, {
          el: u
        });
        d.push(new j(g));
      }), d;
    }
    const l = this;
    l.__swiper__ = !0, l.support = Pr(), l.device = Cn({
      userAgent: r.userAgent
    }), l.browser = Mn(), l.eventsListeners = {}, l.eventsAnyListeners = [], l.modules = [...l.__modules__], r.modules && Array.isArray(r.modules) && l.modules.push(...r.modules);
    const a = {};
    l.modules.forEach((d) => {
      d({
        params: r,
        swiper: l,
        extendParams: Ni(r, a),
        on: l.on.bind(l),
        once: l.once.bind(l),
        off: l.off.bind(l),
        emit: l.emit.bind(l)
      });
    });
    const c = z({}, rr, a);
    return l.params = z({}, c, dt, r), l.originalParams = z({}, l.params), l.passedParams = z({}, r), l.params && l.params.on && Object.keys(l.params.on).forEach((d) => {
      l.on(d, l.params.on[d]);
    }), l.params && l.params.onAny && l.onAny(l.params.onAny), Object.assign(l, {
      enabled: l.params.enabled,
      el: e,
      // Classes
      classNames: [],
      // Slides
      slides: [],
      slidesGrid: [],
      snapGrid: [],
      slidesSizesGrid: [],
      // isDirection
      isHorizontal() {
        return l.params.direction === "horizontal";
      },
      isVertical() {
        return l.params.direction === "vertical";
      },
      // Indexes
      activeIndex: 0,
      realIndex: 0,
      //
      isBeginning: !0,
      isEnd: !1,
      // Props
      translate: 0,
      previousTranslate: 0,
      progress: 0,
      velocity: 0,
      animating: !1,
      cssOverflowAdjustment() {
        return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
      },
      // Locks
      allowSlideNext: l.params.allowSlideNext,
      allowSlidePrev: l.params.allowSlidePrev,
      // Touch Events
      touchEventsData: {
        isTouched: void 0,
        isMoved: void 0,
        allowTouchCallbacks: void 0,
        touchStartTime: void 0,
        isScrolling: void 0,
        currentTranslate: void 0,
        startTranslate: void 0,
        allowThresholdMove: void 0,
        // Form elements to match
        focusableElements: l.params.focusableElements,
        // Last click time
        lastClickTime: 0,
        clickTimeout: void 0,
        // Velocities
        velocities: [],
        allowMomentumBounce: void 0,
        startMoving: void 0,
        evCache: []
      },
      // Clicks
      allowClick: !0,
      // Touches
      allowTouchMove: l.params.allowTouchMove,
      touches: {
        startX: 0,
        startY: 0,
        currentX: 0,
        currentY: 0,
        diff: 0
      },
      // Images
      imagesToLoad: [],
      imagesLoaded: 0
    }), l.emit("_swiper"), l.params.init && l.init(), l;
  }
  getSlideIndex(e) {
    const {
      slidesEl: r,
      params: n
    } = this, i = Y(r, `.${n.slideClass}, swiper-slide`), s = Kt(i[0]);
    return Kt(e) - s;
  }
  getSlideIndexByData(e) {
    return this.getSlideIndex(this.slides.filter((r) => r.getAttribute("data-swiper-slide-index") * 1 === e)[0]);
  }
  recalcSlides() {
    const e = this, {
      slidesEl: r,
      params: n
    } = e;
    e.slides = Y(r, `.${n.slideClass}, swiper-slide`);
  }
  enable() {
    const e = this;
    e.enabled || (e.enabled = !0, e.params.grabCursor && e.setGrabCursor(), e.emit("enable"));
  }
  disable() {
    const e = this;
    e.enabled && (e.enabled = !1, e.params.grabCursor && e.unsetGrabCursor(), e.emit("disable"));
  }
  setProgress(e, r) {
    const n = this;
    e = Math.min(Math.max(e, 0), 1);
    const i = n.minTranslate(), o = (n.maxTranslate() - i) * e + i;
    n.translateTo(o, typeof r > "u" ? 0 : r), n.updateActiveIndex(), n.updateSlidesClasses();
  }
  emitContainerClasses() {
    const e = this;
    if (!e.params._emitClasses || !e.el)
      return;
    const r = e.el.className.split(" ").filter((n) => n.indexOf("swiper") === 0 || n.indexOf(e.params.containerModifierClass) === 0);
    e.emit("_containerClasses", r.join(" "));
  }
  getSlideClasses(e) {
    const r = this;
    return r.destroyed ? "" : e.className.split(" ").filter((n) => n.indexOf("swiper-slide") === 0 || n.indexOf(r.params.slideClass) === 0).join(" ");
  }
  emitSlidesClasses() {
    const e = this;
    if (!e.params._emitClasses || !e.el)
      return;
    const r = [];
    e.slides.forEach((n) => {
      const i = e.getSlideClasses(n);
      r.push({
        slideEl: n,
        classNames: i
      }), e.emit("_slideClass", n, i);
    }), e.emit("_slideClasses", r);
  }
  slidesPerViewDynamic(e, r) {
    e === void 0 && (e = "current"), r === void 0 && (r = !1);
    const n = this, {
      params: i,
      slides: s,
      slidesGrid: o,
      slidesSizesGrid: l,
      size: a,
      activeIndex: c
    } = n;
    let d = 1;
    if (i.centeredSlides) {
      let u = s[c] ? s[c].swiperSlideSize : 0, g;
      for (let p = c + 1; p < s.length; p += 1)
        s[p] && !g && (u += s[p].swiperSlideSize, d += 1, u > a && (g = !0));
      for (let p = c - 1; p >= 0; p -= 1)
        s[p] && !g && (u += s[p].swiperSlideSize, d += 1, u > a && (g = !0));
    } else if (e === "current")
      for (let u = c + 1; u < s.length; u += 1)
        (r ? o[u] + l[u] - o[c] < a : o[u] - o[c] < a) && (d += 1);
    else
      for (let u = c - 1; u >= 0; u -= 1)
        o[c] - o[u] < a && (d += 1);
    return d;
  }
  update() {
    const e = this;
    if (!e || e.destroyed)
      return;
    const {
      snapGrid: r,
      params: n
    } = e;
    n.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEach((o) => {
      o.complete && qe(e, o);
    }), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
    function i() {
      const o = e.rtlTranslate ? e.translate * -1 : e.translate, l = Math.min(Math.max(o, e.maxTranslate()), e.minTranslate());
      e.setTranslate(l), e.updateActiveIndex(), e.updateSlidesClasses();
    }
    let s;
    if (n.freeMode && n.freeMode.enabled && !n.cssMode)
      i(), n.autoHeight && e.updateAutoHeight();
    else {
      if ((n.slidesPerView === "auto" || n.slidesPerView > 1) && e.isEnd && !n.centeredSlides) {
        const o = e.virtual && n.virtual.enabled ? e.virtual.slides : e.slides;
        s = e.slideTo(o.length - 1, 0, !1, !0);
      } else
        s = e.slideTo(e.activeIndex, 0, !1, !0);
      s || i();
    }
    n.watchOverflow && r !== e.snapGrid && e.checkOverflow(), e.emit("update");
  }
  changeDirection(e, r) {
    r === void 0 && (r = !0);
    const n = this, i = n.params.direction;
    return e || (e = i === "horizontal" ? "vertical" : "horizontal"), e === i || e !== "horizontal" && e !== "vertical" || (n.el.classList.remove(`${n.params.containerModifierClass}${i}`), n.el.classList.add(`${n.params.containerModifierClass}${e}`), n.emitContainerClasses(), n.params.direction = e, n.slides.forEach((s) => {
      e === "vertical" ? s.style.width = "" : s.style.height = "";
    }), n.emit("changeDirection"), r && n.update()), n;
  }
  changeLanguageDirection(e) {
    const r = this;
    r.rtl && e === "rtl" || !r.rtl && e === "ltr" || (r.rtl = e === "rtl", r.rtlTranslate = r.params.direction === "horizontal" && r.rtl, r.rtl ? (r.el.classList.add(`${r.params.containerModifierClass}rtl`), r.el.dir = "rtl") : (r.el.classList.remove(`${r.params.containerModifierClass}rtl`), r.el.dir = "ltr"), r.update());
  }
  mount(e) {
    const r = this;
    if (r.mounted)
      return !0;
    let n = e || r.params.el;
    if (typeof n == "string" && (n = document.querySelector(n)), !n)
      return !1;
    n.swiper = r, n.parentNode && n.parentNode.host && n.parentNode.host.nodeName === "SWIPER-CONTAINER" && (r.isElement = !0);
    const i = () => `.${(r.params.wrapperClass || "").trim().split(" ").join(".")}`;
    let o = (() => n && n.shadowRoot && n.shadowRoot.querySelector ? n.shadowRoot.querySelector(i()) : Y(n, i())[0])();
    return !o && r.params.createElements && (o = Lr("div", r.params.wrapperClass), n.append(o), Y(n, `.${r.params.slideClass}`).forEach((l) => {
      o.append(l);
    })), Object.assign(r, {
      el: n,
      wrapperEl: o,
      slidesEl: r.isElement && !n.parentNode.host.slideSlots ? n.parentNode.host : o,
      hostEl: r.isElement ? n.parentNode.host : n,
      mounted: !0,
      // RTL
      rtl: n.dir.toLowerCase() === "rtl" || ie(n, "direction") === "rtl",
      rtlTranslate: r.params.direction === "horizontal" && (n.dir.toLowerCase() === "rtl" || ie(n, "direction") === "rtl"),
      wrongRTL: ie(o, "display") === "-webkit-box"
    }), !0;
  }
  init(e) {
    const r = this;
    if (r.initialized || r.mount(e) === !1)
      return r;
    r.emit("beforeInit"), r.params.breakpoints && r.setBreakpoint(), r.addClasses(), r.updateSize(), r.updateSlides(), r.params.watchOverflow && r.checkOverflow(), r.params.grabCursor && r.enabled && r.setGrabCursor(), r.params.loop && r.virtual && r.params.virtual.enabled ? r.slideTo(r.params.initialSlide + r.virtual.slidesBefore, 0, r.params.runCallbacksOnInit, !1, !0) : r.slideTo(r.params.initialSlide, 0, r.params.runCallbacksOnInit, !1, !0), r.params.loop && r.loopCreate(), r.attachEvents();
    const i = [...r.el.querySelectorAll('[loading="lazy"]')];
    return r.isElement && i.push(...r.hostEl.querySelectorAll('[loading="lazy"]')), i.forEach((s) => {
      s.complete ? qe(r, s) : s.addEventListener("load", (o) => {
        qe(r, o.target);
      });
    }), wt(r), r.initialized = !0, wt(r), r.emit("init"), r.emit("afterInit"), r;
  }
  destroy(e, r) {
    e === void 0 && (e = !0), r === void 0 && (r = !0);
    const n = this, {
      params: i,
      el: s,
      wrapperEl: o,
      slides: l
    } = n;
    return typeof n.params > "u" || n.destroyed || (n.emit("beforeDestroy"), n.initialized = !1, n.detachEvents(), i.loop && n.loopDestroy(), r && (n.removeClasses(), s.removeAttribute("style"), o.removeAttribute("style"), l && l.length && l.forEach((a) => {
      a.classList.remove(i.slideVisibleClass, i.slideActiveClass, i.slideNextClass, i.slidePrevClass), a.removeAttribute("style"), a.removeAttribute("data-swiper-slide-index");
    })), n.emit("destroy"), Object.keys(n.eventsListeners).forEach((a) => {
      n.off(a);
    }), e !== !1 && (n.el.swiper = null, yn(n)), n.destroyed = !0), null;
  }
  static extendDefaults(e) {
    z(dt, e);
  }
  static get extendedDefaults() {
    return dt;
  }
  static get defaults() {
    return rr;
  }
  static installModule(e) {
    j.prototype.__modules__ || (j.prototype.__modules__ = []);
    const r = j.prototype.__modules__;
    typeof e == "function" && r.indexOf(e) < 0 && r.push(e);
  }
  static use(e) {
    return Array.isArray(e) ? (e.forEach((r) => j.installModule(r)), j) : (j.installModule(e), j);
  }
}
Object.keys(ct).forEach((t) => {
  Object.keys(ct[t]).forEach((e) => {
    j.prototype[e] = ct[t][e];
  });
});
j.use([kn, Rn]);
function Bi(t, e, r, n) {
  return t.params.createElements && Object.keys(n).forEach((i) => {
    if (!r[i] && r.auto === !0) {
      let s = Y(t.el, `.${n[i]}`)[0];
      s || (s = Lr("div", n[i]), s.className = n[i], t.el.append(s)), r[i] = s, e[i] = s;
    }
  }), r;
}
function zi(t) {
  let {
    swiper: e,
    extendParams: r,
    on: n,
    emit: i
  } = t;
  r({
    navigation: {
      nextEl: null,
      prevEl: null,
      hideOnClick: !1,
      disabledClass: "swiper-button-disabled",
      hiddenClass: "swiper-button-hidden",
      lockClass: "swiper-button-lock",
      navigationDisabledClass: "swiper-navigation-disabled"
    }
  }), e.navigation = {
    nextEl: null,
    prevEl: null
  };
  const s = (f) => (Array.isArray(f) ? f : [f]).filter((m) => !!m);
  function o(f) {
    let m;
    return f && typeof f == "string" && e.isElement && (m = e.el.querySelector(f), m) ? m : (f && (typeof f == "string" && (m = [...document.querySelectorAll(f)]), e.params.uniqueNavElements && typeof f == "string" && m.length > 1 && e.el.querySelectorAll(f).length === 1 && (m = e.el.querySelector(f))), f && !m ? f : m);
  }
  function l(f, m) {
    const v = e.params.navigation;
    f = s(f), f.forEach((w) => {
      w && (w.classList[m ? "add" : "remove"](...v.disabledClass.split(" ")), w.tagName === "BUTTON" && (w.disabled = m), e.params.watchOverflow && e.enabled && w.classList[e.isLocked ? "add" : "remove"](v.lockClass));
    });
  }
  function a() {
    const {
      nextEl: f,
      prevEl: m
    } = e.navigation;
    if (e.params.loop) {
      l(m, !1), l(f, !1);
      return;
    }
    l(m, e.isBeginning && !e.params.rewind), l(f, e.isEnd && !e.params.rewind);
  }
  function c(f) {
    f.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), i("navigationPrev"));
  }
  function d(f) {
    f.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), i("navigationNext"));
  }
  function u() {
    const f = e.params.navigation;
    if (e.params.navigation = Bi(e, e.originalParams.navigation, e.params.navigation, {
      nextEl: "swiper-button-next",
      prevEl: "swiper-button-prev"
    }), !(f.nextEl || f.prevEl))
      return;
    let m = o(f.nextEl), v = o(f.prevEl);
    Object.assign(e.navigation, {
      nextEl: m,
      prevEl: v
    }), m = s(m), v = s(v);
    const w = (y, S) => {
      y && y.addEventListener("click", S === "next" ? d : c), !e.enabled && y && y.classList.add(...f.lockClass.split(" "));
    };
    m.forEach((y) => w(y, "next")), v.forEach((y) => w(y, "prev"));
  }
  function g() {
    let {
      nextEl: f,
      prevEl: m
    } = e.navigation;
    f = s(f), m = s(m);
    const v = (w, y) => {
      w.removeEventListener("click", y === "next" ? d : c), w.classList.remove(...e.params.navigation.disabledClass.split(" "));
    };
    f.forEach((w) => v(w, "next")), m.forEach((w) => v(w, "prev"));
  }
  n("init", () => {
    e.params.navigation.enabled === !1 ? h() : (u(), a());
  }), n("toEdge fromEdge lock unlock", () => {
    a();
  }), n("destroy", () => {
    g();
  }), n("enable disable", () => {
    let {
      nextEl: f,
      prevEl: m
    } = e.navigation;
    f = s(f), m = s(m), [...f, ...m].filter((v) => !!v).forEach((v) => v.classList[e.enabled ? "remove" : "add"](e.params.navigation.lockClass));
  }), n("click", (f, m) => {
    let {
      nextEl: v,
      prevEl: w
    } = e.navigation;
    v = s(v), w = s(w);
    const y = m.target;
    if (e.params.navigation.hideOnClick && !w.includes(y) && !v.includes(y)) {
      if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === y || e.pagination.el.contains(y)))
        return;
      let S;
      v.length ? S = v[0].classList.contains(e.params.navigation.hiddenClass) : w.length && (S = w[0].classList.contains(e.params.navigation.hiddenClass)), i(S === !0 ? "navigationShow" : "navigationHide"), [...v, ...w].filter((E) => !!E).forEach((E) => E.classList.toggle(e.params.navigation.hiddenClass));
    }
  });
  const p = () => {
    e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), u(), a();
  }, h = () => {
    e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), g();
  };
  Object.assign(e.navigation, {
    enable: p,
    disable: h,
    update: a,
    init: u,
    destroy: g
  });
}
new j(".news-slider", {
  navigation: {
    nextEl: ".swiper-button-next",
    prevEl: ".swiper-button-prev"
  },
  slidesPerView: 1,
  modules: [zi]
});
document.addEventListener("DOMContentLoaded", () => {
  const t = document.querySelectorAll("iframe"), e = document.querySelectorAll(".image-cards__item"), r = document.querySelectorAll(".block-custom"), n = document.querySelectorAll(".block-image");
  t.forEach((i) => {
    if (i.src.includes("youtube.com")) {
      const s = document.createElement("div");
      s.className = "video-container";
      const o = document.createElement("iframe");
      o.src = i.src, o.setAttribute("allowfullscreen", "true"), o.setAttribute("frameborder", "0"), i.parentNode.insertBefore(s, i), s.appendChild(o), i.parentNode.removeChild(i);
    }
  }), e.forEach((i) => {
    const s = i.querySelector("video");
    s && (s.removeAttribute("width"), s.removeAttribute("height"));
  }), n.forEach((i) => {
    const s = i.querySelector("video"), o = i.querySelector("iframe");
    s && (i.classList.add("block-image--video"), s.removeAttribute("width"), s.removeAttribute("height")), o && i.classList.add("block-image--video");
  }), r.forEach((i) => {
    const s = i.querySelectorAll("video");
    s && s.forEach((o) => {
      o && (o.removeAttribute("width"), o.removeAttribute("height"));
    });
  });
});
document.addEventListener("DOMContentLoaded", () => {
  document.querySelectorAll(".section").forEach((e) => {
    const r = e.querySelectorAll(".icon-cards__item");
    let n = 0;
    r.length && (r.forEach((i) => {
      i.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach((o) => {
        const l = parseFloat(o.clientHeight);
        l > n && (n = l);
      });
    }), r.forEach((i) => {
      const s = i.querySelectorAll("h1, h2, h3, h4, h5, h6")[0];
      s && (s.style.minHeight = n + "px");
    }));
  });
});
var _ = "top", $ = "bottom", G = "right", N = "left", Pt = "auto", ke = [_, $, G, N], ge = "start", Ce = "end", Fi = "clippingParents", Mr = "viewport", Te = "popper", qi = "reference", nr = /* @__PURE__ */ ke.reduce(function(t, e) {
  return t.concat([e + "-" + ge, e + "-" + Ce]);
}, []), kr = /* @__PURE__ */ [].concat(ke, [Pt]).reduce(function(t, e) {
  return t.concat([e, e + "-" + ge, e + "-" + Ce]);
}, []), ji = "beforeRead", Vi = "read", Hi = "afterRead", $i = "beforeMain", Gi = "main", Wi = "afterMain", Ui = "beforeWrite", Xi = "write", Yi = "afterWrite", Ji = [ji, Vi, Hi, $i, Gi, Wi, Ui, Xi, Yi];
function Z(t) {
  return t ? (t.nodeName || "").toLowerCase() : null;
}
function F(t) {
  if (t == null)
    return window;
  if (t.toString() !== "[object Window]") {
    var e = t.ownerDocument;
    return e && e.defaultView || window;
  }
  return t;
}
function ue(t) {
  var e = F(t).Element;
  return t instanceof e || t instanceof Element;
}
function V(t) {
  var e = F(t).HTMLElement;
  return t instanceof e || t instanceof HTMLElement;
}
function Ct(t) {
  if (typeof ShadowRoot > "u")
    return !1;
  var e = F(t).ShadowRoot;
  return t instanceof e || t instanceof ShadowRoot;
}
function Ki(t) {
  var e = t.state;
  Object.keys(e.elements).forEach(function(r) {
    var n = e.styles[r] || {}, i = e.attributes[r] || {}, s = e.elements[r];
    !V(s) || !Z(s) || (Object.assign(s.style, n), Object.keys(i).forEach(function(o) {
      var l = i[o];
      l === !1 ? s.removeAttribute(o) : s.setAttribute(o, l === !0 ? "" : l);
    }));
  });
}
function Zi(t) {
  var e = t.state, r = {
    popper: {
      position: e.options.strategy,
      left: "0",
      top: "0",
      margin: "0"
    },
    arrow: {
      position: "absolute"
    },
    reference: {}
  };
  return Object.assign(e.elements.popper.style, r.popper), e.styles = r, e.elements.arrow && Object.assign(e.elements.arrow.style, r.arrow), function() {
    Object.keys(e.elements).forEach(function(n) {
      var i = e.elements[n], s = e.attributes[n] || {}, o = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : r[n]), l = o.reduce(function(a, c) {
        return a[c] = "", a;
      }, {});
      !V(i) || !Z(i) || (Object.assign(i.style, l), Object.keys(s).forEach(function(a) {
        i.removeAttribute(a);
      }));
    });
  };
}
const Qi = {
  name: "applyStyles",
  enabled: !0,
  phase: "write",
  fn: Ki,
  effect: Zi,
  requires: ["computeStyles"]
};
function K(t) {
  return t.split("-")[0];
}
var de = Math.max, We = Math.min, we = Math.round;
function yt() {
  var t = navigator.userAgentData;
  return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
    return e.brand + "/" + e.version;
  }).join(" ") : navigator.userAgent;
}
function Rr() {
  return !/^((?!chrome|android).)*safari/i.test(yt());
}
function ye(t, e, r) {
  e === void 0 && (e = !1), r === void 0 && (r = !1);
  var n = t.getBoundingClientRect(), i = 1, s = 1;
  e && V(t) && (i = t.offsetWidth > 0 && we(n.width) / t.offsetWidth || 1, s = t.offsetHeight > 0 && we(n.height) / t.offsetHeight || 1);
  var o = ue(t) ? F(t) : window, l = o.visualViewport, a = !Rr() && r, c = (n.left + (a && l ? l.offsetLeft : 0)) / i, d = (n.top + (a && l ? l.offsetTop : 0)) / s, u = n.width / i, g = n.height / s;
  return {
    width: u,
    height: g,
    top: d,
    right: c + u,
    bottom: d + g,
    left: c,
    x: c,
    y: d
  };
}
function At(t) {
  var e = ye(t), r = t.offsetWidth, n = t.offsetHeight;
  return Math.abs(e.width - r) <= 1 && (r = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
    x: t.offsetLeft,
    y: t.offsetTop,
    width: r,
    height: n
  };
}
function Ir(t, e) {
  var r = e.getRootNode && e.getRootNode();
  if (t.contains(e))
    return !0;
  if (r && Ct(r)) {
    var n = e;
    do {
      if (n && t.isSameNode(n))
        return !0;
      n = n.parentNode || n.host;
    } while (n);
  }
  return !1;
}
function te(t) {
  return F(t).getComputedStyle(t);
}
function es(t) {
  return ["table", "td", "th"].indexOf(Z(t)) >= 0;
}
function se(t) {
  return ((ue(t) ? t.ownerDocument : (
    // $FlowFixMe[prop-missing]
    t.document
  )) || window.document).documentElement;
}
function Je(t) {
  return Z(t) === "html" ? t : (
    // this is a quicker (but less type safe) way to save quite some bytes from the bundle
    // $FlowFixMe[incompatible-return]
    // $FlowFixMe[prop-missing]
    t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
    t.parentNode || // DOM Element detected
    (Ct(t) ? t.host : null) || // ShadowRoot detected
    // $FlowFixMe[incompatible-call]: HTMLElement is a Node
    se(t)
  );
}
function ir(t) {
  return !V(t) || // https://github.com/popperjs/popper-core/issues/837
  te(t).position === "fixed" ? null : t.offsetParent;
}
function ts(t) {
  var e = /firefox/i.test(yt()), r = /Trident/i.test(yt());
  if (r && V(t)) {
    var n = te(t);
    if (n.position === "fixed")
      return null;
  }
  var i = Je(t);
  for (Ct(i) && (i = i.host); V(i) && ["html", "body"].indexOf(Z(i)) < 0; ) {
    var s = te(i);
    if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || e && s.willChange === "filter" || e && s.filter && s.filter !== "none")
      return i;
    i = i.parentNode;
  }
  return null;
}
function Re(t) {
  for (var e = F(t), r = ir(t); r && es(r) && te(r).position === "static"; )
    r = ir(r);
  return r && (Z(r) === "html" || Z(r) === "body" && te(r).position === "static") ? e : r || ts(t) || e;
}
function Mt(t) {
  return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
}
function Le(t, e, r) {
  return de(t, We(e, r));
}
function rs(t, e, r) {
  var n = Le(t, e, r);
  return n > r ? r : n;
}
function Dr() {
  return {
    top: 0,
    right: 0,
    bottom: 0,
    left: 0
  };
}
function _r(t) {
  return Object.assign({}, Dr(), t);
}
function Nr(t, e) {
  return e.reduce(function(r, n) {
    return r[n] = t, r;
  }, {});
}
var ns = function(e, r) {
  return e = typeof e == "function" ? e(Object.assign({}, r.rects, {
    placement: r.placement
  })) : e, _r(typeof e != "number" ? e : Nr(e, ke));
};
function is(t) {
  var e, r = t.state, n = t.name, i = t.options, s = r.elements.arrow, o = r.modifiersData.popperOffsets, l = K(r.placement), a = Mt(l), c = [N, G].indexOf(l) >= 0, d = c ? "height" : "width";
  if (!(!s || !o)) {
    var u = ns(i.padding, r), g = At(s), p = a === "y" ? _ : N, h = a === "y" ? $ : G, f = r.rects.reference[d] + r.rects.reference[a] - o[a] - r.rects.popper[d], m = o[a] - r.rects.reference[a], v = Re(s), w = v ? a === "y" ? v.clientHeight || 0 : v.clientWidth || 0 : 0, y = f / 2 - m / 2, S = u[p], E = w - g[d] - u[h], L = w / 2 - g[d] / 2 + y, T = Le(S, L, E), M = a;
    r.modifiersData[n] = (e = {}, e[M] = T, e.centerOffset = T - L, e);
  }
}
function ss(t) {
  var e = t.state, r = t.options, n = r.element, i = n === void 0 ? "[data-popper-arrow]" : n;
  i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) || Ir(e.elements.popper, i) && (e.elements.arrow = i));
}
const os = {
  name: "arrow",
  enabled: !0,
  phase: "main",
  fn: is,
  effect: ss,
  requires: ["popperOffsets"],
  requiresIfExists: ["preventOverflow"]
};
function be(t) {
  return t.split("-")[1];
}
var as = {
  top: "auto",
  right: "auto",
  bottom: "auto",
  left: "auto"
};
function ls(t, e) {
  var r = t.x, n = t.y, i = e.devicePixelRatio || 1;
  return {
    x: we(r * i) / i || 0,
    y: we(n * i) / i || 0
  };
}
function sr(t) {
  var e, r = t.popper, n = t.popperRect, i = t.placement, s = t.variation, o = t.offsets, l = t.position, a = t.gpuAcceleration, c = t.adaptive, d = t.roundOffsets, u = t.isFixed, g = o.x, p = g === void 0 ? 0 : g, h = o.y, f = h === void 0 ? 0 : h, m = typeof d == "function" ? d({
    x: p,
    y: f
  }) : {
    x: p,
    y: f
  };
  p = m.x, f = m.y;
  var v = o.hasOwnProperty("x"), w = o.hasOwnProperty("y"), y = N, S = _, E = window;
  if (c) {
    var L = Re(r), T = "clientHeight", M = "clientWidth";
    if (L === F(r) && (L = se(r), te(L).position !== "static" && l === "absolute" && (T = "scrollHeight", M = "scrollWidth")), L = L, i === _ || (i === N || i === G) && s === Ce) {
      S = $;
      var C = u && L === E && E.visualViewport ? E.visualViewport.height : (
        // $FlowFixMe[prop-missing]
        L[T]
      );
      f -= C - n.height, f *= a ? 1 : -1;
    }
    if (i === N || (i === _ || i === $) && s === Ce) {
      y = G;
      var k = u && L === E && E.visualViewport ? E.visualViewport.width : (
        // $FlowFixMe[prop-missing]
        L[M]
      );
      p -= k - n.width, p *= a ? 1 : -1;
    }
  }
  var x = Object.assign({
    position: l
  }, c && as), O = d === !0 ? ls({
    x: p,
    y: f
  }, F(r)) : {
    x: p,
    y: f
  };
  if (p = O.x, f = O.y, a) {
    var P;
    return Object.assign({}, x, (P = {}, P[S] = w ? "0" : "", P[y] = v ? "0" : "", P.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + f + "px)" : "translate3d(" + p + "px, " + f + "px, 0)", P));
  }
  return Object.assign({}, x, (e = {}, e[S] = w ? f + "px" : "", e[y] = v ? p + "px" : "", e.transform = "", e));
}
function cs(t) {
  var e = t.state, r = t.options, n = r.gpuAcceleration, i = n === void 0 ? !0 : n, s = r.adaptive, o = s === void 0 ? !0 : s, l = r.roundOffsets, a = l === void 0 ? !0 : l, c = {
    placement: K(e.placement),
    variation: be(e.placement),
    popper: e.elements.popper,
    popperRect: e.rects.popper,
    gpuAcceleration: i,
    isFixed: e.options.strategy === "fixed"
  };
  e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, sr(Object.assign({}, c, {
    offsets: e.modifiersData.popperOffsets,
    position: e.options.strategy,
    adaptive: o,
    roundOffsets: a
  })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, sr(Object.assign({}, c, {
    offsets: e.modifiersData.arrow,
    position: "absolute",
    adaptive: !1,
    roundOffsets: a
  })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
    "data-popper-placement": e.placement
  });
}
const ds = {
  name: "computeStyles",
  enabled: !0,
  phase: "beforeWrite",
  fn: cs,
  data: {}
};
var Fe = {
  passive: !0
};
function us(t) {
  var e = t.state, r = t.instance, n = t.options, i = n.scroll, s = i === void 0 ? !0 : i, o = n.resize, l = o === void 0 ? !0 : o, a = F(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
  return s && c.forEach(function(d) {
    d.addEventListener("scroll", r.update, Fe);
  }), l && a.addEventListener("resize", r.update, Fe), function() {
    s && c.forEach(function(d) {
      d.removeEventListener("scroll", r.update, Fe);
    }), l && a.removeEventListener("resize", r.update, Fe);
  };
}
const fs = {
  name: "eventListeners",
  enabled: !0,
  phase: "write",
  fn: function() {
  },
  effect: us,
  data: {}
};
var ps = {
  left: "right",
  right: "left",
  bottom: "top",
  top: "bottom"
};
function je(t) {
  return t.replace(/left|right|bottom|top/g, function(e) {
    return ps[e];
  });
}
var ms = {
  start: "end",
  end: "start"
};
function or(t) {
  return t.replace(/start|end/g, function(e) {
    return ms[e];
  });
}
function kt(t) {
  var e = F(t), r = e.pageXOffset, n = e.pageYOffset;
  return {
    scrollLeft: r,
    scrollTop: n
  };
}
function Rt(t) {
  return ye(se(t)).left + kt(t).scrollLeft;
}
function hs(t, e) {
  var r = F(t), n = se(t), i = r.visualViewport, s = n.clientWidth, o = n.clientHeight, l = 0, a = 0;
  if (i) {
    s = i.width, o = i.height;
    var c = Rr();
    (c || !c && e === "fixed") && (l = i.offsetLeft, a = i.offsetTop);
  }
  return {
    width: s,
    height: o,
    x: l + Rt(t),
    y: a
  };
}
function vs(t) {
  var e, r = se(t), n = kt(t), i = (e = t.ownerDocument) == null ? void 0 : e.body, s = de(r.scrollWidth, r.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), o = de(r.scrollHeight, r.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), l = -n.scrollLeft + Rt(t), a = -n.scrollTop;
  return te(i || r).direction === "rtl" && (l += de(r.clientWidth, i ? i.clientWidth : 0) - s), {
    width: s,
    height: o,
    x: l,
    y: a
  };
}
function It(t) {
  var e = te(t), r = e.overflow, n = e.overflowX, i = e.overflowY;
  return /auto|scroll|overlay|hidden/.test(r + i + n);
}
function Br(t) {
  return ["html", "body", "#document"].indexOf(Z(t)) >= 0 ? t.ownerDocument.body : V(t) && It(t) ? t : Br(Je(t));
}
function Pe(t, e) {
  var r;
  e === void 0 && (e = []);
  var n = Br(t), i = n === ((r = t.ownerDocument) == null ? void 0 : r.body), s = F(n), o = i ? [s].concat(s.visualViewport || [], It(n) ? n : []) : n, l = e.concat(o);
  return i ? l : (
    // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
    l.concat(Pe(Je(o)))
  );
}
function bt(t) {
  return Object.assign({}, t, {
    left: t.x,
    top: t.y,
    right: t.x + t.width,
    bottom: t.y + t.height
  });
}
function gs(t, e) {
  var r = ye(t, !1, e === "fixed");
  return r.top = r.top + t.clientTop, r.left = r.left + t.clientLeft, r.bottom = r.top + t.clientHeight, r.right = r.left + t.clientWidth, r.width = t.clientWidth, r.height = t.clientHeight, r.x = r.left, r.y = r.top, r;
}
function ar(t, e, r) {
  return e === Mr ? bt(hs(t, r)) : ue(e) ? gs(e, r) : bt(vs(se(t)));
}
function ws(t) {
  var e = Pe(Je(t)), r = ["absolute", "fixed"].indexOf(te(t).position) >= 0, n = r && V(t) ? Re(t) : t;
  return ue(n) ? e.filter(function(i) {
    return ue(i) && Ir(i, n) && Z(i) !== "body";
  }) : [];
}
function ys(t, e, r, n) {
  var i = e === "clippingParents" ? ws(t) : [].concat(e), s = [].concat(i, [r]), o = s[0], l = s.reduce(function(a, c) {
    var d = ar(t, c, n);
    return a.top = de(d.top, a.top), a.right = We(d.right, a.right), a.bottom = We(d.bottom, a.bottom), a.left = de(d.left, a.left), a;
  }, ar(t, o, n));
  return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
}
function zr(t) {
  var e = t.reference, r = t.element, n = t.placement, i = n ? K(n) : null, s = n ? be(n) : null, o = e.x + e.width / 2 - r.width / 2, l = e.y + e.height / 2 - r.height / 2, a;
  switch (i) {
    case _:
      a = {
        x: o,
        y: e.y - r.height
      };
      break;
    case $:
      a = {
        x: o,
        y: e.y + e.height
      };
      break;
    case G:
      a = {
        x: e.x + e.width,
        y: l
      };
      break;
    case N:
      a = {
        x: e.x - r.width,
        y: l
      };
      break;
    default:
      a = {
        x: e.x,
        y: e.y
      };
  }
  var c = i ? Mt(i) : null;
  if (c != null) {
    var d = c === "y" ? "height" : "width";
    switch (s) {
      case ge:
        a[c] = a[c] - (e[d] / 2 - r[d] / 2);
        break;
      case Ce:
        a[c] = a[c] + (e[d] / 2 - r[d] / 2);
        break;
    }
  }
  return a;
}
function Ae(t, e) {
  e === void 0 && (e = {});
  var r = e, n = r.placement, i = n === void 0 ? t.placement : n, s = r.strategy, o = s === void 0 ? t.strategy : s, l = r.boundary, a = l === void 0 ? Fi : l, c = r.rootBoundary, d = c === void 0 ? Mr : c, u = r.elementContext, g = u === void 0 ? Te : u, p = r.altBoundary, h = p === void 0 ? !1 : p, f = r.padding, m = f === void 0 ? 0 : f, v = _r(typeof m != "number" ? m : Nr(m, ke)), w = g === Te ? qi : Te, y = t.rects.popper, S = t.elements[h ? w : g], E = ys(ue(S) ? S : S.contextElement || se(t.elements.popper), a, d, o), L = ye(t.elements.reference), T = zr({
    reference: L,
    element: y,
    strategy: "absolute",
    placement: i
  }), M = bt(Object.assign({}, y, T)), C = g === Te ? M : L, k = {
    top: E.top - C.top + v.top,
    bottom: C.bottom - E.bottom + v.bottom,
    left: E.left - C.left + v.left,
    right: C.right - E.right + v.right
  }, x = t.modifiersData.offset;
  if (g === Te && x) {
    var O = x[i];
    Object.keys(k).forEach(function(P) {
      var I = [G, $].indexOf(P) >= 0 ? 1 : -1, W = [_, $].indexOf(P) >= 0 ? "y" : "x";
      k[P] += O[W] * I;
    });
  }
  return k;
}
function bs(t, e) {
  e === void 0 && (e = {});
  var r = e, n = r.placement, i = r.boundary, s = r.rootBoundary, o = r.padding, l = r.flipVariations, a = r.allowedAutoPlacements, c = a === void 0 ? kr : a, d = be(n), u = d ? l ? nr : nr.filter(function(h) {
    return be(h) === d;
  }) : ke, g = u.filter(function(h) {
    return c.indexOf(h) >= 0;
  });
  g.length === 0 && (g = u);
  var p = g.reduce(function(h, f) {
    return h[f] = Ae(t, {
      placement: f,
      boundary: i,
      rootBoundary: s,
      padding: o
    })[K(f)], h;
  }, {});
  return Object.keys(p).sort(function(h, f) {
    return p[h] - p[f];
  });
}
function Ss(t) {
  if (K(t) === Pt)
    return [];
  var e = je(t);
  return [or(t), e, or(e)];
}
function Es(t) {
  var e = t.state, r = t.options, n = t.name;
  if (!e.modifiersData[n]._skip) {
    for (var i = r.mainAxis, s = i === void 0 ? !0 : i, o = r.altAxis, l = o === void 0 ? !0 : o, a = r.fallbackPlacements, c = r.padding, d = r.boundary, u = r.rootBoundary, g = r.altBoundary, p = r.flipVariations, h = p === void 0 ? !0 : p, f = r.allowedAutoPlacements, m = e.options.placement, v = K(m), w = v === m, y = a || (w || !h ? [je(m)] : Ss(m)), S = [m].concat(y).reduce(function(ve, re) {
      return ve.concat(K(re) === Pt ? bs(e, {
        placement: re,
        boundary: d,
        rootBoundary: u,
        padding: c,
        flipVariations: h,
        allowedAutoPlacements: f
      }) : re);
    }, []), E = e.rects.reference, L = e.rects.popper, T = /* @__PURE__ */ new Map(), M = !0, C = S[0], k = 0; k < S.length; k++) {
      var x = S[k], O = K(x), P = be(x) === ge, I = [_, $].indexOf(O) >= 0, W = I ? "width" : "height", D = Ae(e, {
        placement: x,
        boundary: d,
        rootBoundary: u,
        altBoundary: g,
        padding: c
      }), B = I ? P ? G : N : P ? $ : _;
      E[W] > L[W] && (B = je(B));
      var pe = je(B), X = [];
      if (s && X.push(D[O] <= 0), l && X.push(D[B] <= 0, D[pe] <= 0), X.every(function(ve) {
        return ve;
      })) {
        C = x, M = !1;
        break;
      }
      T.set(x, X);
    }
    if (M)
      for (var oe = h ? 3 : 1, me = function(re) {
        var xe = S.find(function(_e) {
          var le = T.get(_e);
          if (le)
            return le.slice(0, re).every(function(rt) {
              return rt;
            });
        });
        if (xe)
          return C = xe, "break";
      }, ae = oe; ae > 0; ae--) {
        var he = me(ae);
        if (he === "break")
          break;
      }
    e.placement !== C && (e.modifiersData[n]._skip = !0, e.placement = C, e.reset = !0);
  }
}
const xs = {
  name: "flip",
  enabled: !0,
  phase: "main",
  fn: Es,
  requiresIfExists: ["offset"],
  data: {
    _skip: !1
  }
};
function lr(t, e, r) {
  return r === void 0 && (r = {
    x: 0,
    y: 0
  }), {
    top: t.top - e.height - r.y,
    right: t.right - e.width + r.x,
    bottom: t.bottom - e.height + r.y,
    left: t.left - e.width - r.x
  };
}
function cr(t) {
  return [_, G, $, N].some(function(e) {
    return t[e] >= 0;
  });
}
function Ts(t) {
  var e = t.state, r = t.name, n = e.rects.reference, i = e.rects.popper, s = e.modifiersData.preventOverflow, o = Ae(e, {
    elementContext: "reference"
  }), l = Ae(e, {
    altBoundary: !0
  }), a = lr(o, n), c = lr(l, i, s), d = cr(a), u = cr(c);
  e.modifiersData[r] = {
    referenceClippingOffsets: a,
    popperEscapeOffsets: c,
    isReferenceHidden: d,
    hasPopperEscaped: u
  }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
    "data-popper-reference-hidden": d,
    "data-popper-escaped": u
  });
}
const Os = {
  name: "hide",
  enabled: !0,
  phase: "main",
  requiresIfExists: ["preventOverflow"],
  fn: Ts
};
function Ls(t, e, r) {
  var n = K(t), i = [N, _].indexOf(n) >= 0 ? -1 : 1, s = typeof r == "function" ? r(Object.assign({}, e, {
    placement: t
  })) : r, o = s[0], l = s[1];
  return o = o || 0, l = (l || 0) * i, [N, G].indexOf(n) >= 0 ? {
    x: l,
    y: o
  } : {
    x: o,
    y: l
  };
}
function Ps(t) {
  var e = t.state, r = t.options, n = t.name, i = r.offset, s = i === void 0 ? [0, 0] : i, o = kr.reduce(function(d, u) {
    return d[u] = Ls(u, e.rects, s), d;
  }, {}), l = o[e.placement], a = l.x, c = l.y;
  e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += a, e.modifiersData.popperOffsets.y += c), e.modifiersData[n] = o;
}
const Cs = {
  name: "offset",
  enabled: !0,
  phase: "main",
  requires: ["popperOffsets"],
  fn: Ps
};
function As(t) {
  var e = t.state, r = t.name;
  e.modifiersData[r] = zr({
    reference: e.rects.reference,
    element: e.rects.popper,
    strategy: "absolute",
    placement: e.placement
  });
}
const Ms = {
  name: "popperOffsets",
  enabled: !0,
  phase: "read",
  fn: As,
  data: {}
};
function ks(t) {
  return t === "x" ? "y" : "x";
}
function Rs(t) {
  var e = t.state, r = t.options, n = t.name, i = r.mainAxis, s = i === void 0 ? !0 : i, o = r.altAxis, l = o === void 0 ? !1 : o, a = r.boundary, c = r.rootBoundary, d = r.altBoundary, u = r.padding, g = r.tether, p = g === void 0 ? !0 : g, h = r.tetherOffset, f = h === void 0 ? 0 : h, m = Ae(e, {
    boundary: a,
    rootBoundary: c,
    padding: u,
    altBoundary: d
  }), v = K(e.placement), w = be(e.placement), y = !w, S = Mt(v), E = ks(S), L = e.modifiersData.popperOffsets, T = e.rects.reference, M = e.rects.popper, C = typeof f == "function" ? f(Object.assign({}, e.rects, {
    placement: e.placement
  })) : f, k = typeof C == "number" ? {
    mainAxis: C,
    altAxis: C
  } : Object.assign({
    mainAxis: 0,
    altAxis: 0
  }, C), x = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, O = {
    x: 0,
    y: 0
  };
  if (L) {
    if (s) {
      var P, I = S === "y" ? _ : N, W = S === "y" ? $ : G, D = S === "y" ? "height" : "width", B = L[S], pe = B + m[I], X = B - m[W], oe = p ? -M[D] / 2 : 0, me = w === ge ? T[D] : M[D], ae = w === ge ? -M[D] : -T[D], he = e.elements.arrow, ve = p && he ? At(he) : {
        width: 0,
        height: 0
      }, re = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Dr(), xe = re[I], _e = re[W], le = Le(0, T[D], ve[D]), rt = y ? T[D] / 2 - oe - le - xe - k.mainAxis : me - le - xe - k.mainAxis, fn = y ? -T[D] / 2 + oe + le + _e + k.mainAxis : ae + le + _e + k.mainAxis, nt = e.elements.arrow && Re(e.elements.arrow), pn = nt ? S === "y" ? nt.clientTop || 0 : nt.clientLeft || 0 : 0, jt = (P = x == null ? void 0 : x[S]) != null ? P : 0, mn = B + rt - jt - pn, hn = B + fn - jt, Vt = Le(p ? We(pe, mn) : pe, B, p ? de(X, hn) : X);
      L[S] = Vt, O[S] = Vt - B;
    }
    if (l) {
      var Ht, vn = S === "x" ? _ : N, gn = S === "x" ? $ : G, ce = L[E], Ne = E === "y" ? "height" : "width", $t = ce + m[vn], Gt = ce - m[gn], it = [_, N].indexOf(v) !== -1, Wt = (Ht = x == null ? void 0 : x[E]) != null ? Ht : 0, Ut = it ? $t : ce - T[Ne] - M[Ne] - Wt + k.altAxis, Xt = it ? ce + T[Ne] + M[Ne] - Wt - k.altAxis : Gt, Yt = p && it ? rs(Ut, ce, Xt) : Le(p ? Ut : $t, ce, p ? Xt : Gt);
      L[E] = Yt, O[E] = Yt - ce;
    }
    e.modifiersData[n] = O;
  }
}
const Is = {
  name: "preventOverflow",
  enabled: !0,
  phase: "main",
  fn: Rs,
  requiresIfExists: ["offset"]
};
function Ds(t) {
  return {
    scrollLeft: t.scrollLeft,
    scrollTop: t.scrollTop
  };
}
function _s(t) {
  return t === F(t) || !V(t) ? kt(t) : Ds(t);
}
function Ns(t) {
  var e = t.getBoundingClientRect(), r = we(e.width) / t.offsetWidth || 1, n = we(e.height) / t.offsetHeight || 1;
  return r !== 1 || n !== 1;
}
function Bs(t, e, r) {
  r === void 0 && (r = !1);
  var n = V(e), i = V(e) && Ns(e), s = se(e), o = ye(t, i, r), l = {
    scrollLeft: 0,
    scrollTop: 0
  }, a = {
    x: 0,
    y: 0
  };
  return (n || !n && !r) && ((Z(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
  It(s)) && (l = _s(e)), V(e) ? (a = ye(e, !0), a.x += e.clientLeft, a.y += e.clientTop) : s && (a.x = Rt(s))), {
    x: o.left + l.scrollLeft - a.x,
    y: o.top + l.scrollTop - a.y,
    width: o.width,
    height: o.height
  };
}
function zs(t) {
  var e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
  t.forEach(function(s) {
    e.set(s.name, s);
  });
  function i(s) {
    r.add(s.name);
    var o = [].concat(s.requires || [], s.requiresIfExists || []);
    o.forEach(function(l) {
      if (!r.has(l)) {
        var a = e.get(l);
        a && i(a);
      }
    }), n.push(s);
  }
  return t.forEach(function(s) {
    r.has(s.name) || i(s);
  }), n;
}
function Fs(t) {
  var e = zs(t);
  return Ji.reduce(function(r, n) {
    return r.concat(e.filter(function(i) {
      return i.phase === n;
    }));
  }, []);
}
function qs(t) {
  var e;
  return function() {
    return e || (e = new Promise(function(r) {
      Promise.resolve().then(function() {
        e = void 0, r(t());
      });
    })), e;
  };
}
function js(t) {
  var e = t.reduce(function(r, n) {
    var i = r[n.name];
    return r[n.name] = i ? Object.assign({}, i, n, {
      options: Object.assign({}, i.options, n.options),
      data: Object.assign({}, i.data, n.data)
    }) : n, r;
  }, {});
  return Object.keys(e).map(function(r) {
    return e[r];
  });
}
var dr = {
  placement: "bottom",
  modifiers: [],
  strategy: "absolute"
};
function ur() {
  for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
    e[r] = arguments[r];
  return !e.some(function(n) {
    return !(n && typeof n.getBoundingClientRect == "function");
  });
}
function Vs(t) {
  t === void 0 && (t = {});
  var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, i = e.defaultOptions, s = i === void 0 ? dr : i;
  return function(l, a, c) {
    c === void 0 && (c = s);
    var d = {
      placement: "bottom",
      orderedModifiers: [],
      options: Object.assign({}, dr, s),
      modifiersData: {},
      elements: {
        reference: l,
        popper: a
      },
      attributes: {},
      styles: {}
    }, u = [], g = !1, p = {
      state: d,
      setOptions: function(v) {
        var w = typeof v == "function" ? v(d.options) : v;
        f(), d.options = Object.assign({}, s, d.options, w), d.scrollParents = {
          reference: ue(l) ? Pe(l) : l.contextElement ? Pe(l.contextElement) : [],
          popper: Pe(a)
        };
        var y = Fs(js([].concat(n, d.options.modifiers)));
        return d.orderedModifiers = y.filter(function(S) {
          return S.enabled;
        }), h(), p.update();
      },
      // Sync update – it will always be executed, even if not necessary. This
      // is useful for low frequency updates where sync behavior simplifies the
      // logic.
      // For high frequency updates (e.g. `resize` and `scroll` events), always
      // prefer the async Popper#update method
      forceUpdate: function() {
        if (!g) {
          var v = d.elements, w = v.reference, y = v.popper;
          if (ur(w, y)) {
            d.rects = {
              reference: Bs(w, Re(y), d.options.strategy === "fixed"),
              popper: At(y)
            }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(k) {
              return d.modifiersData[k.name] = Object.assign({}, k.data);
            });
            for (var S = 0; S < d.orderedModifiers.length; S++) {
              if (d.reset === !0) {
                d.reset = !1, S = -1;
                continue;
              }
              var E = d.orderedModifiers[S], L = E.fn, T = E.options, M = T === void 0 ? {} : T, C = E.name;
              typeof L == "function" && (d = L({
                state: d,
                options: M,
                name: C,
                instance: p
              }) || d);
            }
          }
        }
      },
      // Async and optimistically optimized update – it will not be executed if
      // not necessary (debounced to run at most once-per-tick)
      update: qs(function() {
        return new Promise(function(m) {
          p.forceUpdate(), m(d);
        });
      }),
      destroy: function() {
        f(), g = !0;
      }
    };
    if (!ur(l, a))
      return p;
    p.setOptions(c).then(function(m) {
      !g && c.onFirstUpdate && c.onFirstUpdate(m);
    });
    function h() {
      d.orderedModifiers.forEach(function(m) {
        var v = m.name, w = m.options, y = w === void 0 ? {} : w, S = m.effect;
        if (typeof S == "function") {
          var E = S({
            state: d,
            name: v,
            instance: p,
            options: y
          }), L = function() {
          };
          u.push(E || L);
        }
      });
    }
    function f() {
      u.forEach(function(m) {
        return m();
      }), u = [];
    }
    return p;
  };
}
var Hs = [fs, Ms, ds, Qi, Cs, xs, Is, os, Os], Fr = /* @__PURE__ */ Vs({
  defaultModifiers: Hs
});
document.addEventListener("DOMContentLoaded", () => {
  const t = document.querySelector(".download-page");
  if (t) {
    const e = t.querySelectorAll(".download-page__item-btn"), r = () => {
      e.forEach((i) => {
        const s = i.parentElement.lastElementChild, o = i.querySelector(".download-page__item-btn-icon");
        s.classList.remove("download-page__dropdown--show"), o && o.classList.remove("download-page__item-btn-icon--rotate");
      });
    }, n = (i, s) => {
      Fr(i, s, {
        placement: "bottom",
        modifiers: [
          {
            name: "offset",
            options: {
              offset: [0, 4]
            }
          }
        ]
      }), i.querySelector(".download-page__item-btn-icon").classList.toggle("download-page__item-btn-icon--rotate"), s.classList.toggle("download-page__dropdown--show");
    };
    t.addEventListener("click", (i) => {
      const s = i.target.closest(".download-page__item-btn");
      if (s) {
        const o = s.parentElement.lastElementChild;
        n(s, o), e.forEach((l) => {
          if (l !== s) {
            const a = l.parentElement.lastElementChild;
            l.querySelector(".download-page__item-btn-icon").classList.remove("download-page__item-btn-icon--rotate"), a.classList.remove("download-page__dropdown--show");
          }
        });
      } else
        r();
    }), document.addEventListener("click", (i) => {
      ((l) => Array.from(e).some((a) => a.contains(l)))(i.target) || r();
    });
  }
});
function qr(t, e) {
  return function() {
    return t.apply(e, arguments);
  };
}
const { toString: $s } = Object.prototype, { getPrototypeOf: Dt } = Object, Ke = ((t) => (e) => {
  const r = $s.call(e);
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
})(/* @__PURE__ */ Object.create(null)), Q = (t) => (t = t.toLowerCase(), (e) => Ke(e) === t), Ze = (t) => (e) => typeof e === t, { isArray: Ee } = Array, Me = Ze("undefined");
function Gs(t) {
  return t !== null && !Me(t) && t.constructor !== null && !Me(t.constructor) && H(t.constructor.isBuffer) && t.constructor.isBuffer(t);
}
const jr = Q("ArrayBuffer");
function Ws(t) {
  let e;
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && jr(t.buffer), e;
}
const Us = Ze("string"), H = Ze("function"), Vr = Ze("number"), Qe = (t) => t !== null && typeof t == "object", Xs = (t) => t === !0 || t === !1, Ve = (t) => {
  if (Ke(t) !== "object")
    return !1;
  const e = Dt(t);
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
}, Ys = Q("Date"), Js = Q("File"), Ks = Q("Blob"), Zs = Q("FileList"), Qs = (t) => Qe(t) && H(t.pipe), eo = (t) => {
  let e;
  return t && (typeof FormData == "function" && t instanceof FormData || H(t.append) && ((e = Ke(t)) === "formdata" || // detect form-data instance
  e === "object" && H(t.toString) && t.toString() === "[object FormData]"));
}, to = Q("URLSearchParams"), ro = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
function Ie(t, e, { allOwnKeys: r = !1 } = {}) {
  if (t === null || typeof t > "u")
    return;
  let n, i;
  if (typeof t != "object" && (t = [t]), Ee(t))
    for (n = 0, i = t.length; n < i; n++)
      e.call(null, t[n], n, t);
  else {
    const s = r ? Object.getOwnPropertyNames(t) : Object.keys(t), o = s.length;
    let l;
    for (n = 0; n < o; n++)
      l = s[n], e.call(null, t[l], l, t);
  }
}
function Hr(t, e) {
  e = e.toLowerCase();
  const r = Object.keys(t);
  let n = r.length, i;
  for (; n-- > 0; )
    if (i = r[n], e === i.toLowerCase())
      return i;
  return null;
}
const $r = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Gr = (t) => !Me(t) && t !== $r;
function St() {
  const { caseless: t } = Gr(this) && this || {}, e = {}, r = (n, i) => {
    const s = t && Hr(e, i) || i;
    Ve(e[s]) && Ve(n) ? e[s] = St(e[s], n) : Ve(n) ? e[s] = St({}, n) : Ee(n) ? e[s] = n.slice() : e[s] = n;
  };
  for (let n = 0, i = arguments.length; n < i; n++)
    arguments[n] && Ie(arguments[n], r);
  return e;
}
const no = (t, e, r, { allOwnKeys: n } = {}) => (Ie(e, (i, s) => {
  r && H(i) ? t[s] = qr(i, r) : t[s] = i;
}, { allOwnKeys: n }), t), io = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), so = (t, e, r, n) => {
  t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
    value: e.prototype
  }), r && Object.assign(t.prototype, r);
}, oo = (t, e, r, n) => {
  let i, s, o;
  const l = {};
  if (e = e || {}, t == null)
    return e;
  do {
    for (i = Object.getOwnPropertyNames(t), s = i.length; s-- > 0; )
      o = i[s], (!n || n(o, t, e)) && !l[o] && (e[o] = t[o], l[o] = !0);
    t = r !== !1 && Dt(t);
  } while (t && (!r || r(t, e)) && t !== Object.prototype);
  return e;
}, ao = (t, e, r) => {
  t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
  const n = t.indexOf(e, r);
  return n !== -1 && n === r;
}, lo = (t) => {
  if (!t)
    return null;
  if (Ee(t))
    return t;
  let e = t.length;
  if (!Vr(e))
    return null;
  const r = new Array(e);
  for (; e-- > 0; )
    r[e] = t[e];
  return r;
}, co = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Dt(Uint8Array)), uo = (t, e) => {
  const n = (t && t[Symbol.iterator]).call(t);
  let i;
  for (; (i = n.next()) && !i.done; ) {
    const s = i.value;
    e.call(t, s[0], s[1]);
  }
}, fo = (t, e) => {
  let r;
  const n = [];
  for (; (r = t.exec(e)) !== null; )
    n.push(r);
  return n;
}, po = Q("HTMLFormElement"), mo = (t) => t.toLowerCase().replace(
  /[-_\s]([a-z\d])(\w*)/g,
  function(r, n, i) {
    return n.toUpperCase() + i;
  }
), fr = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), ho = Q("RegExp"), Wr = (t, e) => {
  const r = Object.getOwnPropertyDescriptors(t), n = {};
  Ie(r, (i, s) => {
    let o;
    (o = e(i, s, t)) !== !1 && (n[s] = o || i);
  }), Object.defineProperties(t, n);
}, vo = (t) => {
  Wr(t, (e, r) => {
    if (H(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
      return !1;
    const n = t[r];
    if (H(n)) {
      if (e.enumerable = !1, "writable" in e) {
        e.writable = !1;
        return;
      }
      e.set || (e.set = () => {
        throw Error("Can not rewrite read-only method '" + r + "'");
      });
    }
  });
}, go = (t, e) => {
  const r = {}, n = (i) => {
    i.forEach((s) => {
      r[s] = !0;
    });
  };
  return Ee(t) ? n(t) : n(String(t).split(e)), r;
}, wo = () => {
}, yo = (t, e) => (t = +t, Number.isFinite(t) ? t : e), ut = "abcdefghijklmnopqrstuvwxyz", pr = "0123456789", Ur = {
  DIGIT: pr,
  ALPHA: ut,
  ALPHA_DIGIT: ut + ut.toUpperCase() + pr
}, bo = (t = 16, e = Ur.ALPHA_DIGIT) => {
  let r = "";
  const { length: n } = e;
  for (; t--; )
    r += e[Math.random() * n | 0];
  return r;
};
function So(t) {
  return !!(t && H(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
}
const Eo = (t) => {
  const e = new Array(10), r = (n, i) => {
    if (Qe(n)) {
      if (e.indexOf(n) >= 0)
        return;
      if (!("toJSON" in n)) {
        e[i] = n;
        const s = Ee(n) ? [] : {};
        return Ie(n, (o, l) => {
          const a = r(o, i + 1);
          !Me(a) && (s[l] = a);
        }), e[i] = void 0, s;
      }
    }
    return n;
  };
  return r(t, 0);
}, xo = Q("AsyncFunction"), To = (t) => t && (Qe(t) || H(t)) && H(t.then) && H(t.catch), b = {
  isArray: Ee,
  isArrayBuffer: jr,
  isBuffer: Gs,
  isFormData: eo,
  isArrayBufferView: Ws,
  isString: Us,
  isNumber: Vr,
  isBoolean: Xs,
  isObject: Qe,
  isPlainObject: Ve,
  isUndefined: Me,
  isDate: Ys,
  isFile: Js,
  isBlob: Ks,
  isRegExp: ho,
  isFunction: H,
  isStream: Qs,
  isURLSearchParams: to,
  isTypedArray: co,
  isFileList: Zs,
  forEach: Ie,
  merge: St,
  extend: no,
  trim: ro,
  stripBOM: io,
  inherits: so,
  toFlatObject: oo,
  kindOf: Ke,
  kindOfTest: Q,
  endsWith: ao,
  toArray: lo,
  forEachEntry: uo,
  matchAll: fo,
  isHTMLForm: po,
  hasOwnProperty: fr,
  hasOwnProp: fr,
  // an alias to avoid ESLint no-prototype-builtins detection
  reduceDescriptors: Wr,
  freezeMethods: vo,
  toObjectSet: go,
  toCamelCase: mo,
  noop: wo,
  toFiniteNumber: yo,
  findKey: Hr,
  global: $r,
  isContextDefined: Gr,
  ALPHABET: Ur,
  generateString: bo,
  isSpecCompliantForm: So,
  toJSONObject: Eo,
  isAsyncFn: xo,
  isThenable: To
};
function A(t, e, r, n, i) {
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), n && (this.request = n), i && (this.response = i);
}
b.inherits(A, Error, {
  toJSON: function() {
    return {
      // Standard
      message: this.message,
      name: this.name,
      // Microsoft
      description: this.description,
      number: this.number,
      // Mozilla
      fileName: this.fileName,
      lineNumber: this.lineNumber,
      columnNumber: this.columnNumber,
      stack: this.stack,
      // Axios
      config: b.toJSONObject(this.config),
      code: this.code,
      status: this.response && this.response.status ? this.response.status : null
    };
  }
});
const Xr = A.prototype, Yr = {};
[
  "ERR_BAD_OPTION_VALUE",
  "ERR_BAD_OPTION",
  "ECONNABORTED",
  "ETIMEDOUT",
  "ERR_NETWORK",
  "ERR_FR_TOO_MANY_REDIRECTS",
  "ERR_DEPRECATED",
  "ERR_BAD_RESPONSE",
  "ERR_BAD_REQUEST",
  "ERR_CANCELED",
  "ERR_NOT_SUPPORT",
  "ERR_INVALID_URL"
  // eslint-disable-next-line func-names
].forEach((t) => {
  Yr[t] = { value: t };
});
Object.defineProperties(A, Yr);
Object.defineProperty(Xr, "isAxiosError", { value: !0 });
A.from = (t, e, r, n, i, s) => {
  const o = Object.create(Xr);
  return b.toFlatObject(t, o, function(a) {
    return a !== Error.prototype;
  }, (l) => l !== "isAxiosError"), A.call(o, t.message, e, r, n, i), o.cause = t, o.name = t.name, s && Object.assign(o, s), o;
};
const Oo = null;
function Et(t) {
  return b.isPlainObject(t) || b.isArray(t);
}
function Jr(t) {
  return b.endsWith(t, "[]") ? t.slice(0, -2) : t;
}
function mr(t, e, r) {
  return t ? t.concat(e).map(function(i, s) {
    return i = Jr(i), !r && s ? "[" + i + "]" : i;
  }).join(r ? "." : "") : e;
}
function Lo(t) {
  return b.isArray(t) && !t.some(Et);
}
const Po = b.toFlatObject(b, {}, null, function(e) {
  return /^is[A-Z]/.test(e);
});
function et(t, e, r) {
  if (!b.isObject(t))
    throw new TypeError("target must be an object");
  e = e || new FormData(), r = b.toFlatObject(r, {
    metaTokens: !0,
    dots: !1,
    indexes: !1
  }, !1, function(f, m) {
    return !b.isUndefined(m[f]);
  });
  const n = r.metaTokens, i = r.visitor || d, s = r.dots, o = r.indexes, a = (r.Blob || typeof Blob < "u" && Blob) && b.isSpecCompliantForm(e);
  if (!b.isFunction(i))
    throw new TypeError("visitor must be a function");
  function c(h) {
    if (h === null)
      return "";
    if (b.isDate(h))
      return h.toISOString();
    if (!a && b.isBlob(h))
      throw new A("Blob is not supported. Use a Buffer instead.");
    return b.isArrayBuffer(h) || b.isTypedArray(h) ? a && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
  }
  function d(h, f, m) {
    let v = h;
    if (h && !m && typeof h == "object") {
      if (b.endsWith(f, "{}"))
        f = n ? f : f.slice(0, -2), h = JSON.stringify(h);
      else if (b.isArray(h) && Lo(h) || (b.isFileList(h) || b.endsWith(f, "[]")) && (v = b.toArray(h)))
        return f = Jr(f), v.forEach(function(y, S) {
          !(b.isUndefined(y) || y === null) && e.append(
            // eslint-disable-next-line no-nested-ternary
            o === !0 ? mr([f], S, s) : o === null ? f : f + "[]",
            c(y)
          );
        }), !1;
    }
    return Et(h) ? !0 : (e.append(mr(m, f, s), c(h)), !1);
  }
  const u = [], g = Object.assign(Po, {
    defaultVisitor: d,
    convertValue: c,
    isVisitable: Et
  });
  function p(h, f) {
    if (!b.isUndefined(h)) {
      if (u.indexOf(h) !== -1)
        throw Error("Circular reference detected in " + f.join("."));
      u.push(h), b.forEach(h, function(v, w) {
        (!(b.isUndefined(v) || v === null) && i.call(
          e,
          v,
          b.isString(w) ? w.trim() : w,
          f,
          g
        )) === !0 && p(v, f ? f.concat(w) : [w]);
      }), u.pop();
    }
  }
  if (!b.isObject(t))
    throw new TypeError("data must be an object");
  return p(t), e;
}
function hr(t) {
  const e = {
    "!": "%21",
    "'": "%27",
    "(": "%28",
    ")": "%29",
    "~": "%7E",
    "%20": "+",
    "%00": "\0"
  };
  return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(n) {
    return e[n];
  });
}
function _t(t, e) {
  this._pairs = [], t && et(t, this, e);
}
const Kr = _t.prototype;
Kr.append = function(e, r) {
  this._pairs.push([e, r]);
};
Kr.toString = function(e) {
  const r = e ? function(n) {
    return e.call(this, n, hr);
  } : hr;
  return this._pairs.map(function(i) {
    return r(i[0]) + "=" + r(i[1]);
  }, "").join("&");
};
function Co(t) {
  return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
}
function Zr(t, e, r) {
  if (!e)
    return t;
  const n = r && r.encode || Co, i = r && r.serialize;
  let s;
  if (i ? s = i(e, r) : s = b.isURLSearchParams(e) ? e.toString() : new _t(e, r).toString(n), s) {
    const o = t.indexOf("#");
    o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + s;
  }
  return t;
}
class Ao {
  constructor() {
    this.handlers = [];
  }
  /**
   * Add a new interceptor to the stack
   *
   * @param {Function} fulfilled The function to handle `then` for a `Promise`
   * @param {Function} rejected The function to handle `reject` for a `Promise`
   *
   * @return {Number} An ID used to remove interceptor later
   */
  use(e, r, n) {
    return this.handlers.push({
      fulfilled: e,
      rejected: r,
      synchronous: n ? n.synchronous : !1,
      runWhen: n ? n.runWhen : null
    }), this.handlers.length - 1;
  }
  /**
   * Remove an interceptor from the stack
   *
   * @param {Number} id The ID that was returned by `use`
   *
   * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
   */
  eject(e) {
    this.handlers[e] && (this.handlers[e] = null);
  }
  /**
   * Clear all interceptors from the stack
   *
   * @returns {void}
   */
  clear() {
    this.handlers && (this.handlers = []);
  }
  /**
   * Iterate over all the registered interceptors
   *
   * This method is particularly useful for skipping over any
   * interceptors that may have become `null` calling `eject`.
   *
   * @param {Function} fn The function to call for each interceptor
   *
   * @returns {void}
   */
  forEach(e) {
    b.forEach(this.handlers, function(n) {
      n !== null && e(n);
    });
  }
}
const vr = Ao, Qr = {
  silentJSONParsing: !0,
  forcedJSONParsing: !0,
  clarifyTimeoutError: !1
}, Mo = typeof URLSearchParams < "u" ? URLSearchParams : _t, ko = typeof FormData < "u" ? FormData : null, Ro = typeof Blob < "u" ? Blob : null, Io = {
  isBrowser: !0,
  classes: {
    URLSearchParams: Mo,
    FormData: ko,
    Blob: Ro
  },
  protocols: ["http", "https", "file", "blob", "url", "data"]
}, en = typeof window < "u" && typeof document < "u", Do = ((t) => en && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), _o = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  hasBrowserEnv: en,
  hasStandardBrowserEnv: Do,
  hasStandardBrowserWebWorkerEnv: _o
}, Symbol.toStringTag, { value: "Module" })), J = {
  ...No,
  ...Io
};
function Bo(t, e) {
  return et(t, new J.classes.URLSearchParams(), Object.assign({
    visitor: function(r, n, i, s) {
      return J.isNode && b.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
    }
  }, e));
}
function zo(t) {
  return b.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
}
function Fo(t) {
  const e = {}, r = Object.keys(t);
  let n;
  const i = r.length;
  let s;
  for (n = 0; n < i; n++)
    s = r[n], e[s] = t[s];
  return e;
}
function tn(t) {
  function e(r, n, i, s) {
    let o = r[s++];
    const l = Number.isFinite(+o), a = s >= r.length;
    return o = !o && b.isArray(i) ? i.length : o, a ? (b.hasOwnProp(i, o) ? i[o] = [i[o], n] : i[o] = n, !l) : ((!i[o] || !b.isObject(i[o])) && (i[o] = []), e(r, n, i[o], s) && b.isArray(i[o]) && (i[o] = Fo(i[o])), !l);
  }
  if (b.isFormData(t) && b.isFunction(t.entries)) {
    const r = {};
    return b.forEachEntry(t, (n, i) => {
      e(zo(n), i, r, 0);
    }), r;
  }
  return null;
}
function qo(t, e, r) {
  if (b.isString(t))
    try {
      return (e || JSON.parse)(t), b.trim(t);
    } catch (n) {
      if (n.name !== "SyntaxError")
        throw n;
    }
  return (r || JSON.stringify)(t);
}
const Nt = {
  transitional: Qr,
  adapter: ["xhr", "http"],
  transformRequest: [function(e, r) {
    const n = r.getContentType() || "", i = n.indexOf("application/json") > -1, s = b.isObject(e);
    if (s && b.isHTMLForm(e) && (e = new FormData(e)), b.isFormData(e))
      return i && i ? JSON.stringify(tn(e)) : e;
    if (b.isArrayBuffer(e) || b.isBuffer(e) || b.isStream(e) || b.isFile(e) || b.isBlob(e))
      return e;
    if (b.isArrayBufferView(e))
      return e.buffer;
    if (b.isURLSearchParams(e))
      return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
    let l;
    if (s) {
      if (n.indexOf("application/x-www-form-urlencoded") > -1)
        return Bo(e, this.formSerializer).toString();
      if ((l = b.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
        const a = this.env && this.env.FormData;
        return et(
          l ? { "files[]": e } : e,
          a && new a(),
          this.formSerializer
        );
      }
    }
    return s || i ? (r.setContentType("application/json", !1), qo(e)) : e;
  }],
  transformResponse: [function(e) {
    const r = this.transitional || Nt.transitional, n = r && r.forcedJSONParsing, i = this.responseType === "json";
    if (e && b.isString(e) && (n && !this.responseType || i)) {
      const o = !(r && r.silentJSONParsing) && i;
      try {
        return JSON.parse(e);
      } catch (l) {
        if (o)
          throw l.name === "SyntaxError" ? A.from(l, A.ERR_BAD_RESPONSE, this, null, this.response) : l;
      }
    }
    return e;
  }],
  /**
   * A timeout in milliseconds to abort a request. If set to 0 (default) a
   * timeout is not created.
   */
  timeout: 0,
  xsrfCookieName: "XSRF-TOKEN",
  xsrfHeaderName: "X-XSRF-TOKEN",
  maxContentLength: -1,
  maxBodyLength: -1,
  env: {
    FormData: J.classes.FormData,
    Blob: J.classes.Blob
  },
  validateStatus: function(e) {
    return e >= 200 && e < 300;
  },
  headers: {
    common: {
      Accept: "application/json, text/plain, */*",
      "Content-Type": void 0
    }
  }
};
b.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
  Nt.headers[t] = {};
});
const Bt = Nt, jo = b.toObjectSet([
  "age",
  "authorization",
  "content-length",
  "content-type",
  "etag",
  "expires",
  "from",
  "host",
  "if-modified-since",
  "if-unmodified-since",
  "last-modified",
  "location",
  "max-forwards",
  "proxy-authorization",
  "referer",
  "retry-after",
  "user-agent"
]), Vo = (t) => {
  const e = {};
  let r, n, i;
  return t && t.split(`
`).forEach(function(o) {
    i = o.indexOf(":"), r = o.substring(0, i).trim().toLowerCase(), n = o.substring(i + 1).trim(), !(!r || e[r] && jo[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
  }), e;
}, gr = Symbol("internals");
function Oe(t) {
  return t && String(t).trim().toLowerCase();
}
function He(t) {
  return t === !1 || t == null ? t : b.isArray(t) ? t.map(He) : String(t);
}
function Ho(t) {
  const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
  let n;
  for (; n = r.exec(t); )
    e[n[1]] = n[2];
  return e;
}
const $o = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
function ft(t, e, r, n, i) {
  if (b.isFunction(n))
    return n.call(this, e, r);
  if (i && (e = r), !!b.isString(e)) {
    if (b.isString(n))
      return e.indexOf(n) !== -1;
    if (b.isRegExp(n))
      return n.test(e);
  }
}
function Go(t) {
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n);
}
function Wo(t, e) {
  const r = b.toCamelCase(" " + e);
  ["get", "set", "has"].forEach((n) => {
    Object.defineProperty(t, n + r, {
      value: function(i, s, o) {
        return this[n].call(this, e, i, s, o);
      },
      configurable: !0
    });
  });
}
class tt {
  constructor(e) {
    e && this.set(e);
  }
  set(e, r, n) {
    const i = this;
    function s(l, a, c) {
      const d = Oe(a);
      if (!d)
        throw new Error("header name must be a non-empty string");
      const u = b.findKey(i, d);
      (!u || i[u] === void 0 || c === !0 || c === void 0 && i[u] !== !1) && (i[u || a] = He(l));
    }
    const o = (l, a) => b.forEach(l, (c, d) => s(c, d, a));
    return b.isPlainObject(e) || e instanceof this.constructor ? o(e, r) : b.isString(e) && (e = e.trim()) && !$o(e) ? o(Vo(e), r) : e != null && s(r, e, n), this;
  }
  get(e, r) {
    if (e = Oe(e), e) {
      const n = b.findKey(this, e);
      if (n) {
        const i = this[n];
        if (!r)
          return i;
        if (r === !0)
          return Ho(i);
        if (b.isFunction(r))
          return r.call(this, i, n);
        if (b.isRegExp(r))
          return r.exec(i);
        throw new TypeError("parser must be boolean|regexp|function");
      }
    }
  }
  has(e, r) {
    if (e = Oe(e), e) {
      const n = b.findKey(this, e);
      return !!(n && this[n] !== void 0 && (!r || ft(this, this[n], n, r)));
    }
    return !1;
  }
  delete(e, r) {
    const n = this;
    let i = !1;
    function s(o) {
      if (o = Oe(o), o) {
        const l = b.findKey(n, o);
        l && (!r || ft(n, n[l], l, r)) && (delete n[l], i = !0);
      }
    }
    return b.isArray(e) ? e.forEach(s) : s(e), i;
  }
  clear(e) {
    const r = Object.keys(this);
    let n = r.length, i = !1;
    for (; n--; ) {
      const s = r[n];
      (!e || ft(this, this[s], s, e, !0)) && (delete this[s], i = !0);
    }
    return i;
  }
  normalize(e) {
    const r = this, n = {};
    return b.forEach(this, (i, s) => {
      const o = b.findKey(n, s);
      if (o) {
        r[o] = He(i), delete r[s];
        return;
      }
      const l = e ? Go(s) : String(s).trim();
      l !== s && delete r[s], r[l] = He(i), n[l] = !0;
    }), this;
  }
  concat(...e) {
    return this.constructor.concat(this, ...e);
  }
  toJSON(e) {
    const r = /* @__PURE__ */ Object.create(null);
    return b.forEach(this, (n, i) => {
      n != null && n !== !1 && (r[i] = e && b.isArray(n) ? n.join(", ") : n);
    }), r;
  }
  [Symbol.iterator]() {
    return Object.entries(this.toJSON())[Symbol.iterator]();
  }
  toString() {
    return Object.entries(this.toJSON()).map(([e, r]) => e + ": " + r).join(`
`);
  }
  get [Symbol.toStringTag]() {
    return "AxiosHeaders";
  }
  static from(e) {
    return e instanceof this ? e : new this(e);
  }
  static concat(e, ...r) {
    const n = new this(e);
    return r.forEach((i) => n.set(i)), n;
  }
  static accessor(e) {
    const n = (this[gr] = this[gr] = {
      accessors: {}
    }).accessors, i = this.prototype;
    function s(o) {
      const l = Oe(o);
      n[l] || (Wo(i, o), n[l] = !0);
    }
    return b.isArray(e) ? e.forEach(s) : s(e), this;
  }
}
tt.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
b.reduceDescriptors(tt.prototype, ({ value: t }, e) => {
  let r = e[0].toUpperCase() + e.slice(1);
  return {
    get: () => t,
    set(n) {
      this[r] = n;
    }
  };
});
b.freezeMethods(tt);
const ee = tt;
function pt(t, e) {
  const r = this || Bt, n = e || r, i = ee.from(n.headers);
  let s = n.data;
  return b.forEach(t, function(l) {
    s = l.call(r, s, i.normalize(), e ? e.status : void 0);
  }), i.normalize(), s;
}
function rn(t) {
  return !!(t && t.__CANCEL__);
}
function De(t, e, r) {
  A.call(this, t ?? "canceled", A.ERR_CANCELED, e, r), this.name = "CanceledError";
}
b.inherits(De, A, {
  __CANCEL__: !0
});
function Uo(t, e, r) {
  const n = r.config.validateStatus;
  !r.status || !n || n(r.status) ? t(r) : e(new A(
    "Request failed with status code " + r.status,
    [A.ERR_BAD_REQUEST, A.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
    r.config,
    r.request,
    r
  ));
}
const Xo = J.hasStandardBrowserEnv ? (
  // Standard browser envs support document.cookie
  {
    write(t, e, r, n, i, s) {
      const o = [t + "=" + encodeURIComponent(e)];
      b.isNumber(r) && o.push("expires=" + new Date(r).toGMTString()), b.isString(n) && o.push("path=" + n), b.isString(i) && o.push("domain=" + i), s === !0 && o.push("secure"), document.cookie = o.join("; ");
    },
    read(t) {
      const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
      return e ? decodeURIComponent(e[3]) : null;
    },
    remove(t) {
      this.write(t, "", Date.now() - 864e5);
    }
  }
) : (
  // Non-standard browser env (web workers, react-native) lack needed support.
  {
    write() {
    },
    read() {
      return null;
    },
    remove() {
    }
  }
);
function Yo(t) {
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
}
function Jo(t, e) {
  return e ? t.replace(/\/+$/, "") + "/" + e.replace(/^\/+/, "") : t;
}
function nn(t, e) {
  return t && !Yo(e) ? Jo(t, e) : e;
}
const Ko = J.hasStandardBrowserEnv ? (
  // Standard browser envs have full support of the APIs needed to test
  // whether the request URL is of the same origin as current location.
  function() {
    const e = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a");
    let n;
    function i(s) {
      let o = s;
      return e && (r.setAttribute("href", o), o = r.href), r.setAttribute("href", o), {
        href: r.href,
        protocol: r.protocol ? r.protocol.replace(/:$/, "") : "",
        host: r.host,
        search: r.search ? r.search.replace(/^\?/, "") : "",
        hash: r.hash ? r.hash.replace(/^#/, "") : "",
        hostname: r.hostname,
        port: r.port,
        pathname: r.pathname.charAt(0) === "/" ? r.pathname : "/" + r.pathname
      };
    }
    return n = i(window.location.href), function(o) {
      const l = b.isString(o) ? i(o) : o;
      return l.protocol === n.protocol && l.host === n.host;
    };
  }()
) : (
  // Non standard browser envs (web workers, react-native) lack needed support.
  function() {
    return function() {
      return !0;
    };
  }()
);
function Zo(t) {
  const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
  return e && e[1] || "";
}
function Qo(t, e) {
  t = t || 10;
  const r = new Array(t), n = new Array(t);
  let i = 0, s = 0, o;
  return e = e !== void 0 ? e : 1e3, function(a) {
    const c = Date.now(), d = n[s];
    o || (o = c), r[i] = a, n[i] = c;
    let u = s, g = 0;
    for (; u !== i; )
      g += r[u++], u = u % t;
    if (i = (i + 1) % t, i === s && (s = (s + 1) % t), c - o < e)
      return;
    const p = d && c - d;
    return p ? Math.round(g * 1e3 / p) : void 0;
  };
}
function wr(t, e) {
  let r = 0;
  const n = Qo(50, 250);
  return (i) => {
    const s = i.loaded, o = i.lengthComputable ? i.total : void 0, l = s - r, a = n(l), c = s <= o;
    r = s;
    const d = {
      loaded: s,
      total: o,
      progress: o ? s / o : void 0,
      bytes: l,
      rate: a || void 0,
      estimated: a && o && c ? (o - s) / a : void 0,
      event: i
    };
    d[e ? "download" : "upload"] = !0, t(d);
  };
}
const ea = typeof XMLHttpRequest < "u", ta = ea && function(t) {
  return new Promise(function(r, n) {
    let i = t.data;
    const s = ee.from(t.headers).normalize();
    let { responseType: o, withXSRFToken: l } = t, a;
    function c() {
      t.cancelToken && t.cancelToken.unsubscribe(a), t.signal && t.signal.removeEventListener("abort", a);
    }
    let d;
    if (b.isFormData(i)) {
      if (J.hasStandardBrowserEnv || J.hasStandardBrowserWebWorkerEnv)
        s.setContentType(!1);
      else if ((d = s.getContentType()) !== !1) {
        const [f, ...m] = d ? d.split(";").map((v) => v.trim()).filter(Boolean) : [];
        s.setContentType([f || "multipart/form-data", ...m].join("; "));
      }
    }
    let u = new XMLHttpRequest();
    if (t.auth) {
      const f = t.auth.username || "", m = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
      s.set("Authorization", "Basic " + btoa(f + ":" + m));
    }
    const g = nn(t.baseURL, t.url);
    u.open(t.method.toUpperCase(), Zr(g, t.params, t.paramsSerializer), !0), u.timeout = t.timeout;
    function p() {
      if (!u)
        return;
      const f = ee.from(
        "getAllResponseHeaders" in u && u.getAllResponseHeaders()
      ), v = {
        data: !o || o === "text" || o === "json" ? u.responseText : u.response,
        status: u.status,
        statusText: u.statusText,
        headers: f,
        config: t,
        request: u
      };
      Uo(function(y) {
        r(y), c();
      }, function(y) {
        n(y), c();
      }, v), u = null;
    }
    if ("onloadend" in u ? u.onloadend = p : u.onreadystatechange = function() {
      !u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(p);
    }, u.onabort = function() {
      u && (n(new A("Request aborted", A.ECONNABORTED, t, u)), u = null);
    }, u.onerror = function() {
      n(new A("Network Error", A.ERR_NETWORK, t, u)), u = null;
    }, u.ontimeout = function() {
      let m = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
      const v = t.transitional || Qr;
      t.timeoutErrorMessage && (m = t.timeoutErrorMessage), n(new A(
        m,
        v.clarifyTimeoutError ? A.ETIMEDOUT : A.ECONNABORTED,
        t,
        u
      )), u = null;
    }, J.hasStandardBrowserEnv && (l && b.isFunction(l) && (l = l(t)), l || l !== !1 && Ko(g))) {
      const f = t.xsrfHeaderName && t.xsrfCookieName && Xo.read(t.xsrfCookieName);
      f && s.set(t.xsrfHeaderName, f);
    }
    i === void 0 && s.setContentType(null), "setRequestHeader" in u && b.forEach(s.toJSON(), function(m, v) {
      u.setRequestHeader(v, m);
    }), b.isUndefined(t.withCredentials) || (u.withCredentials = !!t.withCredentials), o && o !== "json" && (u.responseType = t.responseType), typeof t.onDownloadProgress == "function" && u.addEventListener("progress", wr(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", wr(t.onUploadProgress)), (t.cancelToken || t.signal) && (a = (f) => {
      u && (n(!f || f.type ? new De(null, t, u) : f), u.abort(), u = null);
    }, t.cancelToken && t.cancelToken.subscribe(a), t.signal && (t.signal.aborted ? a() : t.signal.addEventListener("abort", a)));
    const h = Zo(g);
    if (h && J.protocols.indexOf(h) === -1) {
      n(new A("Unsupported protocol " + h + ":", A.ERR_BAD_REQUEST, t));
      return;
    }
    u.send(i || null);
  });
}, xt = {
  http: Oo,
  xhr: ta
};
b.forEach(xt, (t, e) => {
  if (t) {
    try {
      Object.defineProperty(t, "name", { value: e });
    } catch {
    }
    Object.defineProperty(t, "adapterName", { value: e });
  }
});
const yr = (t) => `- ${t}`, ra = (t) => b.isFunction(t) || t === null || t === !1, sn = {
  getAdapter: (t) => {
    t = b.isArray(t) ? t : [t];
    const { length: e } = t;
    let r, n;
    const i = {};
    for (let s = 0; s < e; s++) {
      r = t[s];
      let o;
      if (n = r, !ra(r) && (n = xt[(o = String(r)).toLowerCase()], n === void 0))
        throw new A(`Unknown adapter '${o}'`);
      if (n)
        break;
      i[o || "#" + s] = n;
    }
    if (!n) {
      const s = Object.entries(i).map(
        ([l, a]) => `adapter ${l} ` + (a === !1 ? "is not supported by the environment" : "is not available in the build")
      );
      let o = e ? s.length > 1 ? `since :
` + s.map(yr).join(`
`) : " " + yr(s[0]) : "as no adapter specified";
      throw new A(
        "There is no suitable adapter to dispatch the request " + o,
        "ERR_NOT_SUPPORT"
      );
    }
    return n;
  },
  adapters: xt
};
function mt(t) {
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
    throw new De(null, t);
}
function br(t) {
  return mt(t), t.headers = ee.from(t.headers), t.data = pt.call(
    t,
    t.transformRequest
  ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), sn.getAdapter(t.adapter || Bt.adapter)(t).then(function(n) {
    return mt(t), n.data = pt.call(
      t,
      t.transformResponse,
      n
    ), n.headers = ee.from(n.headers), n;
  }, function(n) {
    return rn(n) || (mt(t), n && n.response && (n.response.data = pt.call(
      t,
      t.transformResponse,
      n.response
    ), n.response.headers = ee.from(n.response.headers))), Promise.reject(n);
  });
}
const Sr = (t) => t instanceof ee ? t.toJSON() : t;
function Se(t, e) {
  e = e || {};
  const r = {};
  function n(c, d, u) {
    return b.isPlainObject(c) && b.isPlainObject(d) ? b.merge.call({ caseless: u }, c, d) : b.isPlainObject(d) ? b.merge({}, d) : b.isArray(d) ? d.slice() : d;
  }
  function i(c, d, u) {
    if (b.isUndefined(d)) {
      if (!b.isUndefined(c))
        return n(void 0, c, u);
    } else
      return n(c, d, u);
  }
  function s(c, d) {
    if (!b.isUndefined(d))
      return n(void 0, d);
  }
  function o(c, d) {
    if (b.isUndefined(d)) {
      if (!b.isUndefined(c))
        return n(void 0, c);
    } else
      return n(void 0, d);
  }
  function l(c, d, u) {
    if (u in e)
      return n(c, d);
    if (u in t)
      return n(void 0, c);
  }
  const a = {
    url: s,
    method: s,
    data: s,
    baseURL: o,
    transformRequest: o,
    transformResponse: o,
    paramsSerializer: o,
    timeout: o,
    timeoutMessage: o,
    withCredentials: o,
    withXSRFToken: o,
    adapter: o,
    responseType: o,
    xsrfCookieName: o,
    xsrfHeaderName: o,
    onUploadProgress: o,
    onDownloadProgress: o,
    decompress: o,
    maxContentLength: o,
    maxBodyLength: o,
    beforeRedirect: o,
    transport: o,
    httpAgent: o,
    httpsAgent: o,
    cancelToken: o,
    socketPath: o,
    responseEncoding: o,
    validateStatus: l,
    headers: (c, d) => i(Sr(c), Sr(d), !0)
  };
  return b.forEach(Object.keys(Object.assign({}, t, e)), function(d) {
    const u = a[d] || i, g = u(t[d], e[d], d);
    b.isUndefined(g) && u !== l || (r[d] = g);
  }), r;
}
const on = "1.6.2", zt = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
  zt[t] = function(n) {
    return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
  };
});
const Er = {};
zt.transitional = function(e, r, n) {
  function i(s, o) {
    return "[Axios v" + on + "] Transitional option '" + s + "'" + o + (n ? ". " + n : "");
  }
  return (s, o, l) => {
    if (e === !1)
      throw new A(
        i(o, " has been removed" + (r ? " in " + r : "")),
        A.ERR_DEPRECATED
      );
    return r && !Er[o] && (Er[o] = !0, console.warn(
      i(
        o,
        " has been deprecated since v" + r + " and will be removed in the near future"
      )
    )), e ? e(s, o, l) : !0;
  };
};
function na(t, e, r) {
  if (typeof t != "object")
    throw new A("options must be an object", A.ERR_BAD_OPTION_VALUE);
  const n = Object.keys(t);
  let i = n.length;
  for (; i-- > 0; ) {
    const s = n[i], o = e[s];
    if (o) {
      const l = t[s], a = l === void 0 || o(l, s, t);
      if (a !== !0)
        throw new A("option " + s + " must be " + a, A.ERR_BAD_OPTION_VALUE);
      continue;
    }
    if (r !== !0)
      throw new A("Unknown option " + s, A.ERR_BAD_OPTION);
  }
}
const Tt = {
  assertOptions: na,
  validators: zt
}, ne = Tt.validators;
class Ue {
  constructor(e) {
    this.defaults = e, this.interceptors = {
      request: new vr(),
      response: new vr()
    };
  }
  /**
   * Dispatch a request
   *
   * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
   * @param {?Object} config
   *
   * @returns {Promise} The Promise to be fulfilled
   */
  request(e, r) {
    typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = Se(this.defaults, r);
    const { transitional: n, paramsSerializer: i, headers: s } = r;
    n !== void 0 && Tt.assertOptions(n, {
      silentJSONParsing: ne.transitional(ne.boolean),
      forcedJSONParsing: ne.transitional(ne.boolean),
      clarifyTimeoutError: ne.transitional(ne.boolean)
    }, !1), i != null && (b.isFunction(i) ? r.paramsSerializer = {
      serialize: i
    } : Tt.assertOptions(i, {
      encode: ne.function,
      serialize: ne.function
    }, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase();
    let o = s && b.merge(
      s.common,
      s[r.method]
    );
    s && b.forEach(
      ["delete", "get", "head", "post", "put", "patch", "common"],
      (h) => {
        delete s[h];
      }
    ), r.headers = ee.concat(o, s);
    const l = [];
    let a = !0;
    this.interceptors.request.forEach(function(f) {
      typeof f.runWhen == "function" && f.runWhen(r) === !1 || (a = a && f.synchronous, l.unshift(f.fulfilled, f.rejected));
    });
    const c = [];
    this.interceptors.response.forEach(function(f) {
      c.push(f.fulfilled, f.rejected);
    });
    let d, u = 0, g;
    if (!a) {
      const h = [br.bind(this), void 0];
      for (h.unshift.apply(h, l), h.push.apply(h, c), g = h.length, d = Promise.resolve(r); u < g; )
        d = d.then(h[u++], h[u++]);
      return d;
    }
    g = l.length;
    let p = r;
    for (u = 0; u < g; ) {
      const h = l[u++], f = l[u++];
      try {
        p = h(p);
      } catch (m) {
        f.call(this, m);
        break;
      }
    }
    try {
      d = br.call(this, p);
    } catch (h) {
      return Promise.reject(h);
    }
    for (u = 0, g = c.length; u < g; )
      d = d.then(c[u++], c[u++]);
    return d;
  }
  getUri(e) {
    e = Se(this.defaults, e);
    const r = nn(e.baseURL, e.url);
    return Zr(r, e.params, e.paramsSerializer);
  }
}
b.forEach(["delete", "get", "head", "options"], function(e) {
  Ue.prototype[e] = function(r, n) {
    return this.request(Se(n || {}, {
      method: e,
      url: r,
      data: (n || {}).data
    }));
  };
});
b.forEach(["post", "put", "patch"], function(e) {
  function r(n) {
    return function(s, o, l) {
      return this.request(Se(l || {}, {
        method: e,
        headers: n ? {
          "Content-Type": "multipart/form-data"
        } : {},
        url: s,
        data: o
      }));
    };
  }
  Ue.prototype[e] = r(), Ue.prototype[e + "Form"] = r(!0);
});
const $e = Ue;
class Ft {
  constructor(e) {
    if (typeof e != "function")
      throw new TypeError("executor must be a function.");
    let r;
    this.promise = new Promise(function(s) {
      r = s;
    });
    const n = this;
    this.promise.then((i) => {
      if (!n._listeners)
        return;
      let s = n._listeners.length;
      for (; s-- > 0; )
        n._listeners[s](i);
      n._listeners = null;
    }), this.promise.then = (i) => {
      let s;
      const o = new Promise((l) => {
        n.subscribe(l), s = l;
      }).then(i);
      return o.cancel = function() {
        n.unsubscribe(s);
      }, o;
    }, e(function(s, o, l) {
      n.reason || (n.reason = new De(s, o, l), r(n.reason));
    });
  }
  /**
   * Throws a `CanceledError` if cancellation has been requested.
   */
  throwIfRequested() {
    if (this.reason)
      throw this.reason;
  }
  /**
   * Subscribe to the cancel signal
   */
  subscribe(e) {
    if (this.reason) {
      e(this.reason);
      return;
    }
    this._listeners ? this._listeners.push(e) : this._listeners = [e];
  }
  /**
   * Unsubscribe from the cancel signal
   */
  unsubscribe(e) {
    if (!this._listeners)
      return;
    const r = this._listeners.indexOf(e);
    r !== -1 && this._listeners.splice(r, 1);
  }
  /**
   * Returns an object that contains a new `CancelToken` and a function that, when called,
   * cancels the `CancelToken`.
   */
  static source() {
    let e;
    return {
      token: new Ft(function(i) {
        e = i;
      }),
      cancel: e
    };
  }
}
const ia = Ft;
function sa(t) {
  return function(r) {
    return t.apply(null, r);
  };
}
function oa(t) {
  return b.isObject(t) && t.isAxiosError === !0;
}
const Ot = {
  Continue: 100,
  SwitchingProtocols: 101,
  Processing: 102,
  EarlyHints: 103,
  Ok: 200,
  Created: 201,
  Accepted: 202,
  NonAuthoritativeInformation: 203,
  NoContent: 204,
  ResetContent: 205,
  PartialContent: 206,
  MultiStatus: 207,
  AlreadyReported: 208,
  ImUsed: 226,
  MultipleChoices: 300,
  MovedPermanently: 301,
  Found: 302,
  SeeOther: 303,
  NotModified: 304,
  UseProxy: 305,
  Unused: 306,
  TemporaryRedirect: 307,
  PermanentRedirect: 308,
  BadRequest: 400,
  Unauthorized: 401,
  PaymentRequired: 402,
  Forbidden: 403,
  NotFound: 404,
  MethodNotAllowed: 405,
  NotAcceptable: 406,
  ProxyAuthenticationRequired: 407,
  RequestTimeout: 408,
  Conflict: 409,
  Gone: 410,
  LengthRequired: 411,
  PreconditionFailed: 412,
  PayloadTooLarge: 413,
  UriTooLong: 414,
  UnsupportedMediaType: 415,
  RangeNotSatisfiable: 416,
  ExpectationFailed: 417,
  ImATeapot: 418,
  MisdirectedRequest: 421,
  UnprocessableEntity: 422,
  Locked: 423,
  FailedDependency: 424,
  TooEarly: 425,
  UpgradeRequired: 426,
  PreconditionRequired: 428,
  TooManyRequests: 429,
  RequestHeaderFieldsTooLarge: 431,
  UnavailableForLegalReasons: 451,
  InternalServerError: 500,
  NotImplemented: 501,
  BadGateway: 502,
  ServiceUnavailable: 503,
  GatewayTimeout: 504,
  HttpVersionNotSupported: 505,
  VariantAlsoNegotiates: 506,
  InsufficientStorage: 507,
  LoopDetected: 508,
  NotExtended: 510,
  NetworkAuthenticationRequired: 511
};
Object.entries(Ot).forEach(([t, e]) => {
  Ot[e] = t;
});
const aa = Ot;
function an(t) {
  const e = new $e(t), r = qr($e.prototype.request, e);
  return b.extend(r, $e.prototype, e, { allOwnKeys: !0 }), b.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(i) {
    return an(Se(t, i));
  }, r;
}
const R = an(Bt);
R.Axios = $e;
R.CanceledError = De;
R.CancelToken = ia;
R.isCancel = rn;
R.VERSION = on;
R.toFormData = et;
R.AxiosError = A;
R.Cancel = R.CanceledError;
R.all = function(e) {
  return Promise.all(e);
};
R.spread = sa;
R.isAxiosError = oa;
R.mergeConfig = Se;
R.AxiosHeaders = ee;
R.formToJSON = (t) => tn(b.isHTMLForm(t) ? new FormData(t) : t);
R.getAdapter = sn.getAdapter;
R.HttpStatusCode = aa;
R.default = R;
const la = R;
function ca(t) {
  const e = String(t);
  return e.length === 12 ? e[0] !== "+" ? !1 : !!/\d{11}/.test(e.slice(1)) : e.length === 11 && (e[0] === "7" || e[0] === "8") ? !!/\d{11}/.test(e) : !1;
}
function da(t) {
  const e = String(t).trim();
  return !!/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/.test(e);
}
function ua(t) {
  return t.trim().length !== 0;
}
const fa = 150;
function pa(t) {
  return !(t.length > fa);
}
function ht(t, e) {
  return e.reduce((n, i, s) => n + i * Number(t[s]), 0) % 11 % 10;
}
function ma(t) {
  const e = String(t);
  if (e.length === 10)
    return ht(e, [2, 4, 10, 3, 5, 9, 4, 6, 8]) === Number(e[9]);
  if (e.length === 12) {
    const r = [7, 2, 4, 10, 3, 5, 9, 4, 6, 8], n = [3, 7, 2, 4, 10, 3, 5, 9, 4, 6, 8];
    return ht(e, r) !== Number(e[10]) ? !1 : ht(e, n) === Number(e[11]);
  } else
    return !1;
}
const U = {};
function ha() {
  const t = document.querySelector(".select");
  if (!t)
    return;
  const e = document.querySelector(".options-list"), r = document.querySelectorAll(".option"), n = t.querySelector("input"), i = document.querySelectorAll(".option-wrapper");
  n.value.toLowerCase();
  const s = document.querySelector(".options-list__error");
  n.addEventListener("input", function() {
    let a = !0;
    const c = n.value.toLowerCase().trim();
    i.forEach((d) => {
      const u = d.querySelectorAll(".option");
      let g = !1;
      u.forEach((p) => {
        const h = p.textContent.toLowerCase().includes(c);
        p.style.display = h ? "block" : "none", h && (g = !0, a = !1);
      }), d.style.display = g ? "block" : "none";
    }), s.style.display = a ? "block" : "none";
  });
  function o() {
    e.classList.remove("active");
  }
  t.addEventListener("click", (a) => {
    e.classList.add("active"), a.stopPropagation();
  }), n.addEventListener("keyup", (a) => {
    a.key !== "Enter" && (e.classList.add("active"), a.stopPropagation());
  }), n.addEventListener("keypress", (a) => {
    a.key === "Enter" && o();
  }), document.addEventListener("click", () => {
    o();
  }), r.forEach((a) => {
    a.addEventListener("click", (c) => {
      r.forEach((d) => {
        d.classList.remove("selected");
      }), t.querySelector("input").value = a.innerHTML, U.id = parseInt(a.dataset.regionid), U.type = a.dataset.regiontype, a.classList.add("selected"), o(), c.stopPropagation();
    });
  });
  function l() {
    let a = null, c = null;
    r.forEach((u) => {
      const g = u.dataset.detectedregion, p = u.dataset.detectedcountry, h = u.dataset.regionid, f = u.dataset.regiontype;
      f === "country" && p === h ? a = u : f === "region" && g === h && (c = u);
    });
    const d = c || a;
    d && (t.querySelector("input").value = d.innerHTML, U.id = parseInt(d.dataset.regionid), U.type = d.dataset.regiontype, d.classList.add("selected"));
  }
  l();
}
function va(t) {
  let e = t.target.value;
  e = e.replace(/\D/g, ""), t.target.value = e;
}
document.addEventListener("DOMContentLoaded", () => {
  ha();
  const t = document.querySelectorAll(".registration-page__input"), e = document.querySelector(".registration-page__submit"), r = document.querySelector(".registration-page__form"), n = document.querySelector(".registration-page__wrapper"), i = document.querySelector(".options-list"), s = document.querySelector(".select.registration-page__input"), o = document.querySelector("#terms"), l = document.querySelector(".registration-page__terms"), a = document.querySelector("#company_employee_count");
  a == null || a.addEventListener("input", va), t && t.forEach((m) => {
    const v = m.querySelector("input"), w = m.querySelector("label"), y = v.required, S = "<span>*</span>";
    y && (w.innerHTML += S);
  }), e && e.addEventListener("click", (m) => {
    m.preventDefault();
    let v = !0;
    t && (t.forEach((w) => {
      p(w);
    }), t.forEach((w) => {
      const y = w.querySelector("input");
      u(y);
    }));
    for (let w of Object.keys(c))
      for (let y of Object.keys(c[w].valid))
        c[w].valid[y] || (v = !1, g(c[w].wrapper), h(c[w].wrapper, y));
    if (Object.keys(U).length === 0 || s.querySelector("input").value.trim().length === 0) {
      const w = i.querySelectorAll(".option"), y = s.querySelector("#company_region"), S = Array.from(w).find(
        (E) => E.textContent.toLowerCase().trim() === y.value.toLowerCase().trim()
      );
      if (S) {
        const E = JSON.parse(JSON.stringify(S.dataset));
        U.id = E.regionid, U.type = E.regiontype;
      } else
        h(s, "select"), g(s), v = !1;
    } else {
      const w = s.querySelector(".registration-page__error");
      w && w.remove();
    }
    if (!f(o))
      h(l, "terms"), v = !1;
    else {
      const w = l.querySelector(".registration-page__error");
      w && w.remove();
    }
    if (v) {
      const w = new FormData(r);
      w.delete("terms"), w.delete("company_region_type"), w.delete("company_region");
      for (const y of w.entries())
        w.set(y[0], y[1].trim());
      w.set("terms", f(o)), w.set("company_region_type", U.type), w.set("company_region", U.id);
      for (const y of Object.getOwnPropertyNames(U))
        delete U[y];
      la.post("/registration/", w, {
        headers: { "Content-Type": "multipart/form-data" }
      }).then((y) => {
        if (y.status === 200) {
          const S = document.querySelector(".registration-page__success");
          S.style.display = "flex", n.style.display = "none";
        }
      });
    }
  });
  let c = {};
  const d = {
    terms: "Необходимо согласиться с условиями",
    notEmpty: "Поле должно быть заполнено",
    shortLen: "Поле не должно превышать 150 символов",
    phone: "Телефон не соответствует формату",
    inn: "ИНН не соответствует формату",
    email: "E-mail не соответствует формату",
    select: "Укажите регион"
  };
  function u(m) {
    const v = m.dataset.validators, w = m.closest("div");
    if (c[m.id] = {
      valid: {
        notEmpty: !0,
        shortLen: !0
      },
      wrapper: w
    }, v) {
      const y = JSON.parse(v);
      let S = !1;
      y.forEach((E) => {
        if (!S)
          switch (E) {
            case "notEmpty":
              ua(m.value) || (c[m.id].valid[E] = !1, S = !0);
              break;
            case "shortLen":
              pa(m.value) || (c[m.id].valid[E] = !1, S = !0);
              break;
            case "phone":
              ca(m.value) || (c[m.id].valid[E] = !1, S = !0);
              break;
            case "inn":
              ma(m.value) || (c[m.id].valid[E] = !1, S = !0);
              break;
            case "email":
              da(m.value) || (c[m.id].valid[E] = !1, S = !0);
              break;
          }
      });
    }
  }
  function g(m) {
    const v = m.querySelector(".registration-page__error-icon");
    m.querySelector("input").classList.add("error"), v.style.display = "block", m.classList.add("error-shake"), setTimeout(() => {
      m.classList.remove("error-shake");
    }, 550);
  }
  function p(m) {
    const v = m.querySelector(".registration-page__error-icon");
    m.querySelector("input").classList.remove("error"), v && (v.style.display = "none"), m.classList.remove("error-shake");
    const y = m.querySelector(".registration-page__error");
    y && y.remove();
  }
  function h(m, v) {
    if (!d[v])
      return;
    const w = m.querySelector(".registration-page__error");
    w && w.remove();
    const y = document.createElement("span");
    y.textContent = d[v], y.classList.add("registration-page__error"), m.appendChild(y);
  }
  function f(m) {
    return m.checked;
  }
});
document.addEventListener("DOMContentLoaded", () => {
  const t = document.getElementById("button-top"), e = document.querySelector(".wrapper");
  e.addEventListener("scroll", () => {
    e.scrollTop > 150 ? (t.style.visibility = "visible", t.style.opacity = 1) : (t.style.visibility = "hidden", t.style.opacity = 0);
  }), t.addEventListener("click", () => {
    e.scrollTop = 0;
  });
});
const Xe = document.querySelector(".footer__location-dropdown"), Ye = document.querySelector(".footer__location"), ga = document.querySelectorAll(".footer__location-item"), ln = Ye.querySelector(".location-chevron"), vt = window.matchMedia("(max-width: 768px)");
Ye.addEventListener("click", (t) => {
  t.stopPropagation(), ln.classList.toggle("location-chevron--rotate"), Xe.classList.toggle("footer__location-dropdown--show"), Fr(Ye, Xe, {
    placement: vt.matches ? "top" : "top-start",
    modifiers: [
      {
        name: "offset",
        options: {
          offset: [vt.matches ? 10 : 20, vt.matches ? 4 : -4]
        }
      }
    ]
  });
});
ga.forEach((t) => {
  t.addEventListener("click", (e) => {
    const r = e.target, n = r.closest("form"), i = r.dataset.code;
    return n.elements.new_country.value = i, n.elements.next.value = window.location, n.submit(), !1;
  });
});
document.addEventListener("click", (t) => {
  const e = ya(t.target, Xe), r = t.target === Ye;
  !e && !r && wa();
});
const wa = () => {
  Xe.classList.remove("footer__location-dropdown--show"), ln.classList.remove("location-chevron--rotate");
}, ya = (t, e) => {
  let r = t.parentNode;
  for (; r != null; ) {
    if (r === e)
      return !0;
    r = r.parentNode;
  }
  return !1;
};
document.addEventListener("DOMContentLoaded", () => {
  const t = document.querySelectorAll(".btn-iframe"), e = document.querySelector(".custom-modal"), r = e.querySelector(".custom-modal__wrapper"), n = e.querySelector(".icon-close"), i = document.querySelector(".spinner");
  n.addEventListener("click", () => {
    e.classList.remove("custom-modal--active"), r.classList.remove("custom-modal--active");
  }), t.forEach((s) => {
    s.addEventListener("click", (o) => {
      o.preventDefault(), e.querySelector("#custom-frame") && e.querySelector("#custom-frame").remove();
      const l = o.target.closest("a").href;
      e.classList.add("custom-modal--active"), i.classList.add("spinner-show"), document.body.appendChild(i);
      const a = document.createElement("iframe");
      a.setAttribute("id", "custom-frame"), a.setAttribute("scrolling", "no"), a.setAttribute("src", l), r.appendChild(a), a.addEventListener("load", () => {
        r.classList.add("custom-modal--active"), i.classList.remove("spinner-show");
      });
    });
  });
});
window.onload = () => {
  xr(window.location.hash), document.addEventListener("click", (t) => {
    t.target.matches('a[href^="#"]') && (t.preventDefault(), xr(t.target.getAttribute("href")));
  });
};
function xr(t) {
  t && setTimeout(() => {
    const e = t.substring(1), r = document.getElementById(e);
    r && r.scrollIntoView({ behavior: "smooth" });
  }, 1e3);
}
document.addEventListener("DOMContentLoaded", () => {
  const t = document.querySelector(".auth-modal"), e = document.querySelector("#menu-btn"), r = document.querySelector("#mobile-menu-btn"), n = document.querySelector("#close-menu");
  [r, e].forEach((i) => {
    i.addEventListener("click", () => {
      t.classList.remove("auth-modal--inActive"), t.classList.add("auth-modal--active");
    });
  }), n.addEventListener("click", (i) => {
    t.classList.remove("auth-modal--active"), t.classList.add("auth-modal--inActive");
  });
});
const ba = document.querySelector(".icon-menu"), cn = document.querySelector(".mobile-menu"), Sa = document.querySelector(".icon-close");
Sa.addEventListener("click", () => {
  cn.classList.remove("show"), dn.forEach((t) => {
    if (t.classList.contains("show")) {
      t.classList.remove("show");
      const e = t.querySelector(".mobile-nav__item-dropdown-content");
      t.querySelector(".icon-menu-chevron").classList.remove("icon-menu-chevron--rotate"), e.classList.remove("show");
    }
  });
});
ba.addEventListener("click", (t) => {
  cn.classList.add("show");
});
const dn = document.querySelectorAll(".mobile-nav__item-dropdown");
dn.forEach((t) => {
  t.addEventListener("click", (e) => {
    const r = e.currentTarget;
    if (e.target.localName !== "a" && (e.preventDefault(), r.classList.contains("mobile-nav__item-dropdown"))) {
      r.classList.add("show");
      const n = r.querySelector(".mobile-nav__item-dropdown-content"), i = r.querySelector(".icon-menu-chevron");
      n && n.classList.contains("show") ? (n.classList.remove("show"), r.classList.remove("show"), i.classList.remove("icon-menu-chevron--rotate")) : (i.classList.add("icon-menu-chevron--rotate"), n.classList.add("show"));
    }
  });
});
const qt = document.querySelector(".input-search"), un = qt.closest(".search-container");
qt.addEventListener("focus", () => {
  un.classList.add("focused");
});
qt.addEventListener("blur", () => {
  un.classList.remove("focused");
});
window.addEventListener("resize", function() {
  let t = document.querySelector(".mobile-menu");
  window.innerWidth > 576 && t.classList.remove("show");
});
