import "./chunk-UVKRO5ER.js";

// node_modules/@fancyapps/ui/dist/utils/isPlainObject.js
var t = (t10) => "object" == typeof t10 && null !== t10 && t10.constructor === Object && "[object Object]" === Object.prototype.toString.call(t10);

// node_modules/@fancyapps/ui/dist/utils/isString.js
var t2 = (t10) => "string" == typeof t10;

// node_modules/@fancyapps/ui/dist/utils/isNode.js
var n = (n10) => n10 && null !== n10 && n10 instanceof Element && "nodeType" in n10;

// node_modules/@fancyapps/ui/dist/utils/strToHtml.js
var e = function(e11) {
  var t10 = new DOMParser().parseFromString(e11, "text/html").body;
  if (t10.childElementCount > 1) {
    for (var n10 = document.createElement("div"); t10.firstChild; ) n10.appendChild(t10.firstChild);
    return n10;
  }
  let r7 = t10.firstChild;
  return !r7 || r7 instanceof HTMLElement ? r7 : ((n10 = document.createElement("div")).appendChild(r7), n10);
};

// node_modules/@fancyapps/ui/dist/utils/getScrollableParent.js
var e2 = function(e11) {
  if (!(e11 && e11 instanceof Element && e11.offsetParent)) return false;
  const n10 = e11.scrollHeight > e11.clientHeight, t10 = window.getComputedStyle(e11).overflowY, o8 = -1 !== t10.indexOf("hidden"), i9 = -1 !== t10.indexOf("visible");
  return n10 && !o8 && !i9;
};
var n2 = function(t10, o8 = void 0) {
  return !t10 || t10 === document.body || o8 && t10 === o8 ? null : e2(t10) ? t10 : n2(t10.parentElement, o8);
};

// node_modules/@fancyapps/ui/dist/utils/scrollLock.js
var t3 = (t10 = true, e11 = "--f-scrollbar-compensate", s10 = "--f-body-margin", o8 = "hide-scrollbar") => {
  const n10 = document, r7 = n10.body, l6 = n10.documentElement;
  if (t10) {
    if (r7.classList.contains(o8)) return;
    let t11 = window.innerWidth - l6.getBoundingClientRect().width;
    t11 < 0 && (t11 = 0), l6.style.setProperty(e11, `${t11}px`);
    const n11 = parseFloat(window.getComputedStyle(r7).marginRight);
    n11 && r7.style.setProperty(s10, `${n11}px`), r7.classList.add(o8);
  } else r7.classList.remove(o8), r7.style.setProperty(s10, ""), n10.documentElement.style.setProperty(e11, "");
};

// node_modules/@fancyapps/ui/dist/utils/extend.js
var r = (t10, ...e11) => {
  const n10 = e11.length;
  for (let c4 = 0; c4 < n10; c4++) {
    const n11 = e11[c4] || {};
    Object.entries(n11).forEach(([e12, n12]) => {
      const c5 = Array.isArray(n12) ? [] : {};
      t10[e12] || Object.assign(t10, { [e12]: c5 }), t(n12) ? Object.assign(t10[e12], r(c5, n12)) : Array.isArray(n12) ? Object.assign(t10, { [e12]: [...n12] }) : Object.assign(t10, { [e12]: n12 });
    });
  }
  return t10;
};

// node_modules/@fancyapps/ui/dist/utils/canUseDOM.js
function e3() {
  return !("undefined" == typeof window || !window.document || !window.document.createElement);
}

// node_modules/@fancyapps/ui/dist/utils/clamp.js
var t4 = function(t10 = 0, n10 = 0, a7 = 0) {
  return Math.max(Math.min(n10, a7), t10);
};

// node_modules/@fancyapps/ui/dist/utils/map.js
var t5 = function(t10 = 0, n10 = 0, r7 = 0, c4 = 0, m3 = 0, p2 = false) {
  const s10 = (t10 - n10) / (r7 - n10) * (m3 - c4) + c4;
  return p2 ? c4 < m3 ? t4(c4, s10, m3) : t4(m3, s10, c4) : s10;
};

// node_modules/@fancyapps/ui/dist/utils/addClass.js
var s = (s10, t10 = "") => {
  s10 && s10.classList && t10.split(" ").forEach((t11) => {
    t11 && s10.classList.add(t11);
  });
};

// node_modules/@fancyapps/ui/dist/utils/isEqual.js
function e4(e11) {
  return t(e11) || Array.isArray(e11);
}
function n3(t10, r7) {
  const o8 = Object.keys(t10), c4 = Object.keys(r7);
  return o8.length === c4.length && o8.every((o9) => {
    const c5 = t10[o9], i9 = r7[o9];
    return "function" == typeof c5 ? `${c5}` == `${i9}` : e4(c5) && e4(i9) ? n3(c5, i9) : c5 === i9;
  });
}

// node_modules/@fancyapps/ui/dist/libs/tween.js
var e5 = function(n10) {
  for (const t10 of s2) t10.getState() === i.Running && t10.tick(a ? n10 - a : 0);
  a = n10, u = window.requestAnimationFrame(e5);
};
var i;
var o;
var r2;
!function(n10) {
  n10[n10.Initializing = 0] = "Initializing", n10[n10.Running = 1] = "Running", n10[n10.Paused = 2] = "Paused", n10[n10.Completed = 3] = "Completed", n10[n10.Destroyed = 4] = "Destroyed";
}(i || (i = {})), function(n10) {
  n10[n10.Spring = 0] = "Spring", n10[n10.Ease = 1] = "Ease";
}(o || (o = {})), function(n10) {
  n10[n10.Loop = 0] = "Loop", n10[n10.Reverse = 1] = "Reverse";
}(r2 || (r2 = {}));
var s2 = /* @__PURE__ */ new Set();
var u = null;
var a = 0;
function c() {
  let a7 = i.Initializing, f2 = o.Ease, l6 = 0, g3 = 0, p2 = c.Easings.Linear, m3 = 500, d2 = 0, b3 = 0, S = 0, h3 = 0, y2 = 1 / 0, E2 = 0.01, R = 0.01, M = false, j = {}, w2 = null, v2 = {}, O2 = {}, C2 = {}, L2 = 0, I2 = 0, D2 = r2.Loop, z2 = c.Easings.Linear;
  const N = /* @__PURE__ */ new Map();
  function V(n10, ...t10) {
    for (const e11 of N.get(n10) || []) e11(...t10);
  }
  function q(n10) {
    return g3 = 0, n10 ? w2 = setTimeout(() => {
      x2();
    }, n10) : x2(), F;
  }
  function x2() {
    a7 = i.Running, V("start", v2, O2);
  }
  function A2() {
    if (a7 = i.Completed, C2 = {}, V("end", v2), a7 === i.Completed) if (l6 < L2) {
      if (l6++, D2 === r2.Reverse) {
        const n10 = Object.assign({}, j);
        j = Object.assign({}, O2), O2 = n10;
      }
      q(I2);
    } else l6 = 0;
    return F;
  }
  const F = { getState: function() {
    return a7;
  }, easing: function(n10) {
    return p2 = n10, f2 = o.Ease, C2 = {}, F;
  }, duration: function(n10) {
    return m3 = n10, F;
  }, spring: function(n10 = {}) {
    f2 = o.Spring;
    const t10 = { velocity: 0, mass: 1, tension: 170, friction: 26, restDelta: 0.1, restSpeed: 0.1, maxSpeed: 1 / 0, clamp: true }, { velocity: e11, mass: i9, tension: r7, friction: s10, restDelta: u6, restSpeed: a8, maxSpeed: c4, clamp: l7 } = Object.assign(Object.assign({}, t10), n10);
    return d2 = e11, b3 = i9, S = r7, h3 = s10, R = u6, E2 = a8, y2 = c4, M = l7, C2 = {}, F;
  }, isRunning: function() {
    return a7 === i.Running;
  }, isSpring: function() {
    return f2 === o.Spring;
  }, from: function(n10) {
    return v2 = Object.assign({}, n10), F;
  }, to: function(n10) {
    return O2 = n10, F;
  }, repeat: function(n10, t10 = 0, e11 = r2.Loop, i9) {
    return L2 = n10, I2 = t10, D2 = e11, z2 = i9 || p2, F;
  }, on: function(n10, t10) {
    var e11, i9;
    return e11 = n10, i9 = t10, N.set(e11, [...N.get(e11) || [], i9]), F;
  }, off: function(n10, t10) {
    var e11, i9;
    return e11 = n10, i9 = t10, N.has(e11) && N.set(e11, N.get(e11).filter((n11) => n11 !== i9)), F;
  }, start: function(n10) {
    return a7 = i.Initializing, j = Object.assign({}, v2), n3(j, O2) || (s2.add(this), u || (u = window.requestAnimationFrame(e5)), q(n10)), F;
  }, pause: function() {
    return w2 && (clearTimeout(w2), w2 = null), a7 === i.Running && (a7 = i.Paused, V("pause", v2)), F;
  }, end: A2, tick: function(e11) {
    e11 > 50 && (e11 = 50), g3 += e11;
    let s10 = 0, u6 = false;
    if (a7 !== i.Running) return F;
    if (f2 === o.Ease) {
      s10 = t4(0, g3 / m3, 1), u6 = 1 === s10;
      const t10 = D2 === r2.Reverse ? z2 : p2;
      for (const n10 in v2) v2[n10] = j[n10] + (O2[n10] - j[n10]) * t10(s10);
    }
    if (f2 === o.Spring) {
      const t10 = 1e-3 * e11;
      let i9 = 0;
      for (const e12 in v2) {
        const o8 = O2[e12];
        let r7 = v2[e12];
        if ("number" != typeof o8 || isNaN(o8) || "number" != typeof r7 || isNaN(r7)) continue;
        if (Math.abs(o8 - r7) <= R) {
          v2[e12] = o8, C2[e12] = 0;
          continue;
        }
        C2[e12] || ("object" == typeof d2 && "number" == typeof d2[e12] ? C2[e12] = d2[e12] : C2[e12] = "number" == typeof d2 ? d2 : 0);
        let s11 = C2[e12];
        s11 = t4(-1 * Math.abs(y2), s11, Math.abs(y2));
        const u7 = s11 * b3 * h3;
        s11 += ((r7 > o8 ? -1 : 1) * (Math.abs(o8 - r7) * S) - u7) / b3 * t10, r7 += s11 * t10;
        const a8 = v2[e12] > o8 ? r7 < o8 : r7 > o8;
        let c5 = Math.abs(s11) < E2 && Math.abs(o8 - r7) <= R;
        M && a8 && (c5 = true), c5 ? (r7 = o8, s11 = 0) : i9++, v2[e12] = r7, C2[e12] = s11;
      }
      u6 = !i9;
    }
    const c4 = Object.assign({}, O2);
    return V("step", v2, j, O2, s10), u6 && a7 === i.Running && n3(O2, c4) && (a7 = i.Completed, A2()), F;
  }, getStartValues: function() {
    return j;
  }, getCurrentValues: function() {
    return v2;
  }, getCurrentVelocities: function() {
    return C2;
  }, getEndValues: function() {
    return O2;
  }, destroy: function() {
    a7 = i.Destroyed, w2 && (clearTimeout(w2), w2 = null), j = v2 = O2 = {}, s2.delete(this);
  } };
  return F;
}
c.destroy = () => {
  for (const n10 of s2) n10.destroy();
  u && (cancelAnimationFrame(u), u = null);
}, c.Easings = { Linear: function(n10) {
  return n10;
}, EaseIn: function(n10) {
  return 0 === n10 ? 0 : Math.pow(2, 10 * n10 - 10);
}, EaseOut: function(n10) {
  return 1 === n10 ? 1 : 1 - Math.pow(2, -10 * n10);
}, EaseInOut: function(n10) {
  return 0 === n10 ? 0 : 1 === n10 ? 1 : n10 < 0.5 ? Math.pow(2, 20 * n10 - 10) / 2 : (2 - Math.pow(2, -20 * n10 + 10)) / 2;
} };

// node_modules/@fancyapps/ui/dist/libs/gestures.js
function e6(e11) {
  const t10 = [], n10 = "undefined" != typeof TouchEvent && e11 instanceof TouchEvent ? e11.touches : e11 instanceof MouseEvent && "mouseup" !== e11.type ? [e11] : [];
  for (const e12 of n10) t10.push({ x: e12.clientX, y: e12.clientY, ts: Date.now() });
  return t10;
}
function t6(e11) {
  const t10 = [], n10 = "undefined" != typeof TouchEvent && e11 instanceof TouchEvent ? e11.changedTouches : e11 instanceof MouseEvent ? [e11] : [];
  for (const e12 of n10) t10.push({ x: e12.clientX, y: e12.clientY, ts: Date.now() });
  return t10;
}
function n4(e11) {
  const t10 = e11[0], n10 = e11[1] || t10;
  return { x: (t10.x + n10.x) / 2, y: (t10.y + n10.y) / 2, ts: n10.ts };
}
function o2(e11) {
  const t10 = e11[0], n10 = e11[1] || e11[0];
  return t10 && n10 ? -1 * Math.sqrt((n10.x - t10.x) * (n10.x - t10.x) + (n10.y - t10.y) * (n10.y - t10.y)) : 0;
}
var s3 = (e11) => {
  e11.cancelable && e11.preventDefault();
};
var i2 = { passive: false };
var c2 = { panThreshold: 5, swipeThreshold: 3, ignore: ["textarea", "input", "select", "[contenteditable]", "[data-selectable]", "[data-draggable]"] };
var a2 = false;
var r3 = true;
var u2 = (u6, l6) => {
  let d2, f2, h3, v2 = Object.assign(Object.assign({}, c2), l6), p2 = [], m3 = [], E2 = [], g3 = false, w2 = false, y2 = false, T2 = 0, b3 = 0, M = 0, x2 = 0, L2 = 0, P = 0, D2 = 0, X = 0, Y = 0, j = [], k2 = 0, R = 0;
  const z2 = /* @__PURE__ */ new Map();
  function A2(e11) {
    const t10 = o2(m3), n10 = o2(E2), s10 = t10 && n10 ? t10 / n10 : 0, i9 = Math.abs(D2) > Math.abs(X) ? D2 : X, c4 = { srcEvent: d2, isPanRecognized: g3, isSwipeRecognized: w2, firstTouch: p2, previousTouch: E2, currentTouch: m3, deltaX: M, deltaY: x2, offsetX: L2, offsetY: P, velocityX: D2, velocityY: X, velocity: i9, angle: Y, axis: h3, scale: s10, center: f2 };
    for (const t11 of z2.get(e11) || []) t11(c4);
  }
  function O2(e11) {
    const t10 = Date.now();
    j = j.filter((e12) => !e12.ts || e12.ts > t10 - 100), e11 && j.push(e11);
  }
  function S() {
    if (D2 = 0, X = 0, j.length > 3) {
      const e11 = j[0], t10 = j[j.length - 1];
      if (e11 && t10) {
        const n10 = t10.x - e11.x, o8 = t10.y - e11.y, s10 = e11.ts && t10.ts ? t10.ts - e11.ts : 0;
        s10 > 0 && (D2 = Math.abs(n10) > 3 ? n10 / (s10 / 30) : 0, X = Math.abs(o8) > 3 ? o8 / (s10 / 30) : 0);
      }
    }
  }
  function q(t10) {
    if (t10 instanceof MouseEvent) {
      if (a2) return;
    } else a2 = true;
    const o8 = t10.composedPath()[0], i9 = v2.ignore.join(",");
    if (o8.matches(i9) || o8.closest(i9)) return;
    if ("undefined" != typeof MouseEvent && t10 instanceof MouseEvent && (!t10.buttons || 0 !== t10.button)) return;
    t10 instanceof MouseEvent && s3(t10);
    const c4 = Date.now(), r7 = c4 - (T2 || c4);
    y2 = r7 > 0 && r7 <= 250, T2 = c4, clearTimeout(k2), d2 = t10, t10 instanceof MouseEvent && (window.addEventListener("mousemove", C2), window.addEventListener("mouseup", I2)), window.addEventListener("blur", B), m3 = e6(t10), p2 = [...m3], E2 = [], b3 = m3.length, f2 = n4(m3), 1 === b3 && (g3 = false, w2 = false), b3 && O2(n4(m3)), A2("start");
  }
  function C2(t10) {
    var s10;
    if (!p2.length) return;
    if (t10.defaultPrevented) return;
    d2 = t10, E2 = [...m3], m3 = e6(t10), b3 = m3.length, f2 = n4(m3);
    const i9 = f2, c4 = n4(E2);
    if (M = i9.x - c4.x, x2 = i9.y - c4.y, O2(i9), S(), A2("move"), m3.length > 1) {
      const e11 = o2(m3), t11 = o2(E2);
      Math.abs(e11 - t11) >= 0.1 && A2("pinch");
    }
    if (!g3 && p2.length) {
      const e11 = n4(p2);
      L2 = i9.x - e11.x, P = i9.y - e11.y, g3 = Math.abs(L2) > v2.panThreshold || Math.abs(P) > v2.panThreshold, g3 && (r3 = false, clearTimeout(R), R = 0, Y = Math.abs(180 * Math.atan2(P, L2) / Math.PI), h3 = Y > 45 && Y < 135 ? "y" : "x", p2 = [...m3], E2 = [...m3], null === (s10 = window.getSelection()) || void 0 === s10 || s10.removeAllRanges(), A2("panstart"));
    }
    g3 && (M || x2) && A2("pan");
  }
  function I2(o8) {
    if (d2 = o8, !p2.length) return;
    const s10 = e6(o8), i9 = t6(o8);
    if (b3 = s10.length, f2 = n4(i9), i9.length && O2(n4(i9)), S(), E2 = [...m3], m3 = [...s10], p2 = [...s10], s10.length > 0) A2("end"), g3 = false, w2 = false, j = [];
    else {
      const e11 = v2.swipeThreshold;
      (Math.abs(D2) > e11 || Math.abs(X) > e11) && (w2 = true), g3 && A2("panend"), w2 && A2("swipe"), g3 || w2 || (A2("tap"), y2 ? A2("doubleTap") : k2 = setTimeout(function() {
        A2("singleTap");
      }, 250)), A2("end"), F();
    }
  }
  function B() {
    clearTimeout(k2), F(), g3 && A2("panend"), A2("end");
  }
  function F() {
    g3 = false, w2 = false, y2 = false, b3 = 0, j = [], m3 = [], E2 = [], p2 = [], M = 0, x2 = 0, L2 = 0, P = 0, D2 = 0, X = 0, Y = 0, h3 = void 0, window.removeEventListener("mousemove", C2), window.removeEventListener("mouseup", I2), window.removeEventListener("blur", B), r3 || R || (R = setTimeout(() => {
      r3 = true, R = 0;
    }, 100));
  }
  function G(e11) {
    const t10 = e11.target;
    a2 = false, t10 && !e11.defaultPrevented && (r3 || (s3(e11), e11.stopPropagation()));
  }
  const H = { init: function() {
    if (u6) return u6.addEventListener("click", G, i2), u6.addEventListener("mousedown", q, i2), u6.addEventListener("touchstart", q, i2), u6.addEventListener("touchmove", C2, i2), u6.addEventListener("touchend", I2), u6.addEventListener("touchcancel", I2), H;
  }, on: function(e11, t10) {
    return function(e12, t11) {
      z2.set(e12, [...z2.get(e12) || [], t11]);
    }(e11, t10), H;
  }, off: function(e11, t10) {
    return z2.has(e11) && z2.set(e11, z2.get(e11).filter((e12) => e12 !== t10)), H;
  }, isPointerDown: () => b3 > 0, destroy: function() {
    clearTimeout(k2), clearTimeout(R), R = 0, u6 && (u6.removeEventListener("click", G, i2), u6.removeEventListener("mousedown", q, i2), u6.removeEventListener("touchstart", q, i2), u6.removeEventListener("touchmove", C2, i2), u6.removeEventListener("touchend", I2), u6.removeEventListener("touchcancel", I2)), u6 = null, F();
  } };
  return H;
};
u2.isClickAllowed = () => r3;

// node_modules/@fancyapps/ui/dist/panzoom/l10n/en_EN.js
var o3 = { IMAGE_ERROR: "This image couldn't be loaded. <br /> Please try again later.", MOVE_UP: "Move up", MOVE_DOWN: "Move down", MOVE_LEFT: "Move left", MOVE_RIGHT: "Move right", ZOOM_IN: "Zoom in", ZOOM_OUT: "Zoom out", TOGGLE_FULL: "Toggle zoom level", TOGGLE_1TO1: "Toggle zoom level", ITERATE_ZOOM: "Toggle zoom level", ROTATE_CCW: "Rotate counterclockwise", ROTATE_CW: "Rotate clockwise", FLIP_X: "Flip horizontally", FLIP_Y: "Flip vertically", RESET: "Reset" };

// node_modules/@fancyapps/ui/dist/panzoom/panzoom.js
var f = (e11) => {
  e11.cancelable && e11.preventDefault();
};
var d = (e11, t10 = 1e4) => (e11 = parseFloat(e11 + "") || 0, Math.round((e11 + Number.EPSILON) * t10) / t10);
var g;
var h;
!function(e11) {
  e11.Reset = "reset", e11.Zoom = "zoom", e11.ZoomIn = "zoomIn", e11.ZoomOut = "zoomOut", e11.ZoomTo = "zoomTo", e11.ToggleCover = "toggleCover", e11.ToggleFull = "toggleFull", e11.ToggleMax = "toggleMax", e11.IterateZoom = "iterateZoom", e11.Pan = "pan", e11.Swipe = "swipe", e11.Move = "move", e11.MoveLeft = "moveLeft", e11.MoveRight = "moveRight", e11.MoveUp = "moveUp", e11.MoveDown = "moveDown", e11.RotateCCW = "rotateCCW", e11.RotateCW = "rotateCW", e11.FlipX = "flipX", e11.FlipY = "flipY";
}(g || (g = {})), function(e11) {
  e11.Cover = "cover", e11.Full = "full", e11.Max = "max";
}(h || (h = {}));
var m = { x: 0, y: 0, scale: 1, angle: 0, flipX: 1, flipY: 1 };
var p = { bounds: true, classes: { container: "f-panzoom", wrapper: "f-panzoom__wrapper", content: "f-panzoom__content", viewport: "f-panzoom__viewport" }, clickAction: g.ToggleFull, dblClickAction: false, gestures: {}, height: "auto", l10n: o3, maxScale: 4, minScale: 1, mouseMoveFactor: 1, panMode: "drag", singleClickAction: false, spinnerTpl: '<div class="f-spinner"></div>', wheelAction: g.Zoom, width: "auto" };
var v;
var b = 0;
var y = 0;
var x = 0;
var w = (c4, h3 = {}, w2 = {}) => {
  let M, E2, T2, k2, j, L2, O2, A2 = 0, C2 = Object.assign(Object.assign({}, p), h3), S = {}, F = Object.assign({}, m), Z = Object.assign({}, m);
  const X = [];
  function Y(e11) {
    let t10 = C2[e11];
    return t10 && "function" == typeof t10 ? t10(de) : t10;
  }
  const P = /* @__PURE__ */ new Map();
  function I2(e11, ...t10) {
    const n10 = P.get(e11) || [];
    C2.on && n10.push(C2.on[e11]);
    for (const e12 of n10) e12 && e12 instanceof Function && e12(de, ...t10);
    "*" !== e11 && I2("*", e11, ...t10);
  }
  function R(e11) {
    if (3 !== A2) return;
    const t10 = e11.target;
    if (n2(t10)) return;
    const i9 = Date.now(), a7 = [-e11.deltaX || 0, -e11.deltaY || 0, -e11.detail || 0].reduce(function(e12, t11) {
      return Math.abs(t11) > Math.abs(e12) ? t11 : e12;
    }), s10 = t4(-1, a7, 1);
    I2("wheel", e11, s10);
    const l6 = Y("wheelAction");
    if (!l6) return;
    if (e11.defaultPrevented) return;
    const r7 = Z.scale;
    let c5 = r7 * (s10 > 0 ? 1.5 : 0.5);
    if (l6 === g.Zoom) {
      const t11 = Math.abs(e11.deltaY) < 100 && Math.abs(e11.deltaX) < 100;
      if (i9 - y < (t11 ? 200 : 45)) return void f(e11);
      y = i9;
      const n10 = N(), a8 = J();
      if (d(c5) < d(n10) && d(r7) <= d(n10) ? (x += Math.abs(s10), c5 = n10) : d(c5) > d(a8) && d(r7) >= d(a8) ? (x += Math.abs(s10), c5 = a8) : (x = 0, c5 = t4(n10, c5, a8)), x > 7) return;
    }
    switch (f(e11), l6) {
      case g.Pan:
        te(l6, { srcEvent: e11, deltaX: 2 * -e11.deltaX, deltaY: 2 * -e11.deltaY });
        break;
      case g.Zoom:
        te(g.ZoomTo, { srcEvent: e11, scale: c5, center: { x: e11.clientX, y: e11.clientY } });
        break;
      default:
        te(l6, { srcEvent: e11 });
    }
  }
  function z2(e11) {
    var n10, i9;
    const o8 = e11.composedPath()[0];
    if (!u2.isClickAllowed()) return;
    if (!n(o8) || e11.defaultPrevented) return;
    if (!(null == c4 ? void 0 : c4.contains(o8))) return;
    if (o8.hasAttribute("disabled") || o8.hasAttribute("aria-disabled")) return;
    const a7 = o8.closest("[data-panzoom-action]"), s10 = null === (n10 = null == a7 ? void 0 : a7.dataset) || void 0 === n10 ? void 0 : n10.panzoomAction, l6 = (null === (i9 = null == a7 ? void 0 : a7.dataset) || void 0 === i9 ? void 0 : i9.panzoomValue) || "";
    if (s10) {
      switch (s10) {
        case g.ZoomTo:
        case g.ZoomIn:
        case g.ZoomOut:
          te(s10, { scale: parseFloat(l6 || "") || void 0 });
          break;
        case g.MoveLeft:
        case g.MoveRight:
          te(s10, { deltaX: parseFloat(l6 || "") || void 0 });
          break;
        case g.MoveUp:
        case g.MoveDown:
          te(s10, { deltaY: parseFloat(l6 || "") || void 0 });
          break;
        default:
          te(s10);
      }
      return;
    }
    if (!(null == M ? void 0 : M.contains(o8))) return;
    const u6 = { srcEvent: e11 };
    if (te(Y("clickAction"), u6), Y("dblClickAction")) {
      const e12 = Date.now(), t10 = e12 - (b || e12);
      b = e12, t10 > 0 && t10 <= 250 ? (v && (clearTimeout(v), v = void 0), te(Y("dblClickAction"), u6)) : v = setTimeout(() => {
        te(Y("singleClickAction"), u6);
      }, 250);
    }
  }
  function D2(e11) {
    if (O2 = e11, !$()) return;
    if (3 !== A2 || F.scale <= 1 || Z.scale <= 1) return;
    if (((null == M ? void 0 : M.dataset.animationName) || "").indexOf("zoom") > -1) return;
    const t10 = B(Z.scale);
    if (!t10) return;
    const { x: n10, y: i9 } = t10;
    te(g.Pan, { deltaX: n10 - Z.x, deltaY: i9 - Z.y });
  }
  function H() {
    var e11;
    if (c4 && (null === (e11 = c4.querySelector(".f-spinner")) || void 0 === e11 || e11.remove(), c4.classList.remove("is-loading")), !c4 || !M) return;
    if (E2 instanceof HTMLImageElement && (!E2.complete || !E2.naturalWidth)) return A2 = 2, null == M || M.classList.add("has-error"), void I2("error");
    I2("loaded");
    const { width: t10, height: n10 } = q();
    E2 && (E2.setAttribute("width", t10 + ""), E2.setAttribute("height", n10 + "")), M && (M.classList.remove("has-error"), M.setAttribute("width", t10 + ""), M.setAttribute("height", n10 + ""), M.style.aspectRatio = `${t10 / n10 || ""}`), j = c().on("start", (e12, t11) => {
      Z = Object.assign(Object.assign({}, m), t11), void 0 !== t11.angle && (t11.angle = 90 * Math.round(t11.angle / 90)), void 0 !== t11.flipX && (t11.flipX = t11.flipX > 0 ? 1 : -1), void 0 !== t11.flipY && (t11.flipY = t11.flipY > 0 ? 1 : -1), ee(), I2("animationStart");
    }).on("pause", (e12) => {
      Z = Object.assign(Object.assign({}, m), e12);
    }).on("step", (e12) => {
      if (3 !== A2) return;
      if (!j) return;
      if (!c4 || !c4.parentElement) return void j.end();
      if (F = Object.assign(Object.assign({}, m), e12), $() || !Y("bounds") || (null == k2 ? void 0 : k2.isPointerDown()) || Z.scale > F.scale || Z.scale < V()) return void ne();
      const t11 = K(Z.scale);
      let n11 = false, i10 = false, a7 = false, s10 = false;
      F.x < t11.x[0] && (n11 = true), F.x > t11.x[1] && (i10 = true), F.y < t11.y[0] && (s10 = true), F.y > t11.y[1] && (a7 = true);
      let l6 = false, r7 = false, u6 = false, f2 = false;
      Z.x < t11.x[0] && (l6 = true), Z.x > t11.x[1] && (r7 = true), Z.y < t11.y[0] && (f2 = true), Z.y > t11.y[1] && (u6 = true);
      let d2 = false;
      (i10 && r7 || n11 && l6) && (Z.x = t4(t11.x[0], Z.x, t11.x[1]), d2 = true), (a7 && u6 || s10 && f2) && (Z.y = t4(t11.y[0], Z.y, t11.y[1]), d2 = true), d2 && j.spring({ tension: 94, friction: 17, maxSpeed: 555 * Z.scale, restDelta: 0.1, restSpeed: 0.1, velocity: j.getCurrentVelocities() }).from(F).to(Z).start(), ne();
    }).on("end", () => {
      Q(), (null == j ? void 0 : j.isRunning()) || (ee(), I2("animationEnd"));
    }), function() {
      const e12 = Y("gestures");
      e12 && T2 && E2 && (k2 = u2(T2, e12).on("start", (e13) => {
        if (!j) return;
        const t11 = e13.srcEvent;
        $() || ((F.scale > 1 || e13.currentTouch.length > 1) && (null == t11 || t11.stopPropagation(), j.pause()), 1 === e13.currentTouch.length && I2("touchStart"));
      }).on("move", (e13) => {
        $() || (1 !== Z.scale || e13.currentTouch.length > 1) && (e13.srcEvent.preventDefault(), e13.srcEvent.stopPropagation());
      }).on("pan", (e13) => {
        if ($()) return;
        const t11 = e13.srcEvent;
        (1 !== Z.scale || e13.currentTouch.length > 1) && (f(t11), te(g.Pan, e13));
      }).on("swipe", (e13) => {
        $() || Z.scale > 1 && te(g.Swipe, e13);
      }).on("tap", (e13) => {
        I2("click", e13);
      }).on("singleTap", (e13) => {
        I2("singleClick", e13);
      }).on("doubleTap", (e13) => {
        I2("dblClick", e13);
      }).on("pinch", (e13) => {
        $() || (e13.scale > V() ? te(g.ZoomIn, e13) : e13.scale < V() ? te(g.ZoomOut, e13) : te(g.Pan, e13));
      }).on("end", (e13) => {
        $() || (e13.currentTouch.length ? (e13.srcEvent.stopPropagation(), f(e13.srcEvent), null == j || j.end()) : (ee(), Q(), I2("touchEnd")));
      }).init());
    }(), T2 && (T2.addEventListener("wheel", R, { passive: false }), X.push(() => {
      null == T2 || T2.removeEventListener("wheel", R, { passive: false });
    })), null == c4 || c4.addEventListener("click", z2), null === document || void 0 === document || document.addEventListener("mousemove", D2), X.push(() => {
      null == c4 || c4.removeEventListener("click", z2), null === document || void 0 === document || document.removeEventListener("mousemove", D2);
    });
    const i9 = Object.assign(Object.assign({}, Y("startPos") || {}), { scale: V() });
    if (F = Object.assign(Object.assign({}, m), i9), Z = Object.assign(Object.assign({}, m), i9), $()) {
      const e12 = B(Z.scale);
      if (e12) {
        const { x: t11, y: n11 } = e12;
        F.x = t11, F.y = n11, Z.x = t11, Z.y = n11;
      }
    }
    A2 = 3, ne(), ee(), I2("ready"), requestAnimationFrame(() => {
      T2 && (T2.style.visibility = "");
    });
  }
  function W() {
    const e11 = { top: 0, left: 0, width: 0, height: 0 };
    if (M) {
      const t10 = M.getBoundingClientRect();
      Z.angle % 180 == 90 ? (e11.top = t10.top + 0.5 * t10.height - 0.5 * t10.width, e11.left = t10.left + 0.5 * t10.width - 0.5 * t10.height, e11.width = t10.height, e11.height = t10.width) : (e11.top = t10.top, e11.left = t10.left, e11.width = t10.width, e11.height = t10.height);
    }
    return e11;
  }
  function q() {
    let t10 = Y("width"), n10 = Y("height");
    if (E2 && "auto" === t10) {
      const e11 = E2.getAttribute("width");
      t10 = e11 ? parseFloat(e11 + "") : void 0 !== E2.dataset.width ? parseFloat(E2.dataset.width + "") : T2 instanceof HTMLImageElement ? T2.naturalWidth : E2 instanceof HTMLImageElement ? E2.naturalWidth : E2.getBoundingClientRect().width;
    } else t10 = t2(t10) ? parseFloat(t10) : t10;
    if (E2 && "auto" === n10) {
      const e11 = E2.getAttribute("height");
      n10 = e11 ? parseFloat(e11 + "") : void 0 !== E2.dataset.height ? parseFloat(E2.dataset.height + "") : T2 instanceof HTMLImageElement ? T2.naturalHeight : E2 instanceof HTMLImageElement ? E2.naturalHeight : E2.getBoundingClientRect().height;
    } else n10 = t2(n10) ? parseFloat(n10) : n10;
    return { width: t10, height: n10 };
  }
  function $() {
    return "mousemove" === Y("panMode") && matchMedia("(hover: hover)").matches;
  }
  function B(e11) {
    const t10 = O2 || Y("event"), n10 = null == M ? void 0 : M.getBoundingClientRect();
    if (!t10 || !n10 || e11 <= 1) return { x: 0, y: 0 };
    const i9 = (t10.clientX || 0) - n10.left, a7 = (t10.clientY || 0) - n10.top, s10 = n10.width, l6 = n10.height, r7 = K(e11);
    if (e11 > 1) {
      const t11 = Y("mouseMoveFactor");
      t11 > 1 && (e11 *= t11);
    }
    let c5 = s10 * e11, u6 = l6 * e11, f2 = 0.5 * (c5 - s10) - i9 / s10 * 100 / 100 * (c5 - s10), d2 = 0.5 * (u6 - l6) - a7 / l6 * 100 / 100 * (u6 - l6);
    return f2 = t4(r7.x[0], f2, r7.x[1]), d2 = t4(r7.y[0], d2, r7.y[1]), { x: f2, y: d2 };
  }
  function _2(e11 = "base") {
    if (!c4) return 1;
    const t10 = c4.getBoundingClientRect(), n10 = W(), { width: i9, height: a7 } = q(), s10 = (e12) => {
      if ("number" == typeof e12) return e12;
      switch (e12) {
        case "min":
        case "base":
          return 1;
        case "cover":
          return Math.max(t10.height / n10.height, t10.width / n10.width) || 1;
        case "full":
        case "max": {
          const e13 = Z.angle % 180 == 90 ? a7 : i9;
          return e13 && n10.width ? e13 / n10.width : 1;
        }
      }
    }, l6 = Y("minScale"), r7 = Y("maxScale"), u6 = Math.min(s10("full"), s10(l6)), f2 = "number" == typeof r7 ? s10("full") * r7 : Math.min(s10("full"), s10(r7));
    switch (e11) {
      case "min":
        return u6;
      case "base":
        return t4(u6, 1, f2);
      case "cover":
        return s10("cover");
      case "full":
        return Math.min(f2, s10("full"));
      case "max":
        return f2;
    }
  }
  function N() {
    return _2("min");
  }
  function V() {
    return _2("base");
  }
  function U() {
    return _2("cover");
  }
  function G() {
    return _2("full");
  }
  function J() {
    return _2("max");
  }
  function K(e11) {
    const t10 = { x: [0, 0], y: [0, 0] }, n10 = null == c4 ? void 0 : c4.getBoundingClientRect();
    if (!n10) return t10;
    const i9 = W(), o8 = n10.width, a7 = n10.height;
    let s10 = i9.width, l6 = i9.height, r7 = e11 = void 0 === e11 ? Z.scale : e11, u6 = e11;
    if ($() && e11 > 1) {
      const t11 = Y("mouseMoveFactor");
      t11 > 1 && (s10 * e11 > o8 + 0.01 && (r7 *= t11), l6 * e11 > a7 + 0.01 && (u6 *= t11));
    }
    return s10 *= r7, l6 *= u6, e11 > 1 && (s10 > o8 && (t10.x[0] = 0.5 * (o8 - s10), t10.x[1] = 0.5 * (s10 - o8)), t10.x[0] -= 0.5 * (i9.left - n10.left), t10.x[1] -= 0.5 * (i9.left - n10.left), t10.x[0] -= 0.5 * (i9.left + i9.width - n10.right), t10.x[1] -= 0.5 * (i9.left + i9.width - n10.right), l6 > a7 && (t10.y[0] = 0.5 * (a7 - l6), t10.y[1] = 0.5 * (l6 - a7)), t10.y[0] -= 0.5 * (i9.top - n10.top), t10.y[1] -= 0.5 * (i9.top - n10.top), t10.y[0] -= 0.5 * (i9.top + i9.height - n10.bottom), t10.y[1] -= 0.5 * (i9.top + i9.height - n10.bottom)), t10;
  }
  function Q() {
    if (!Y("bounds")) return;
    if (3 !== A2) return;
    if (!(null == c4 ? void 0 : c4.parentElement)) return;
    if (!j || !k2) return;
    const e11 = N(), t10 = J(), n10 = t4(e11, Z.scale, t10);
    if (Z.scale < e11 - 0.01 || Z.scale > t10 + 0.01) return void te(g.ZoomTo, { scale: n10 });
    if (j.isRunning()) return;
    if (k2.isPointerDown()) return;
    const i9 = K(n10);
    Z.x < i9.x[0] || Z.x > i9.x[1] || Z.y < i9.y[0] || Z.y > i9.y[1] ? (Z.x = t4(i9.x[0], Z.x, i9.x[1]), Z.y = t4(i9.y[0], Z.y, i9.y[1]), j.spring({ tension: 170, friction: 17, restDelta: 1e-3, restSpeed: 1e-3, maxSpeed: 1 / 0, velocity: j.getCurrentVelocities() }), j.from(F).to(Z).start()) : ne();
  }
  function ee() {
    if (!c4 || !c4.parentElement || !M) return;
    const e11 = re(), t10 = ce(), n10 = ue(), i9 = fe(), o8 = oe(), a7 = ae();
    M.classList.toggle("is-fullsize", i9), M.classList.toggle("is-expanded", n10), M.classList.toggle("is-dragging", t10), M.classList.toggle("can-drag", e11), M.classList.toggle("will-zoom-in", o8), M.classList.toggle("will-zoom-out", a7);
    const s10 = se(), l6 = le(), r7 = 3 !== A2;
    for (const e12 of (null == c4 ? void 0 : c4.querySelectorAll("[data-panzoom-action]")) || []) {
      const t11 = e12.dataset.panzoomAction;
      let n11 = false;
      if (r7) n11 = true;
      else switch (t11) {
        case g.ZoomIn:
          s10 || (n11 = true);
          break;
        case g.ZoomOut:
          l6 || (n11 = true);
          break;
        case g.ToggleFull:
          s10 || l6 || (n11 = true);
          const t12 = e12.querySelector("g");
          t12 && (t12.style.display = i9 ? "none" : "");
          break;
        case g.ToggleCover:
        case g.ToggleMax:
          s10 || l6 || (n11 = true);
      }
      n11 ? (e12.setAttribute("aria-disabled", ""), e12.setAttribute("tabindex", "-1")) : (e12.removeAttribute("aria-disabled"), e12.removeAttribute("tabindex"));
    }
  }
  function te(e11, t10) {
    var n10;
    if (!c4 || !E2 || !j) return;
    if (e11 === g.Swipe && Math.abs(j.getCurrentVelocities().scale) > 0.01) return;
    let i9 = Object.assign({}, Z), a7 = K($() ? Z.scale : F.scale);
    const r7 = j.getCurrentVelocities(), u6 = W(), f2 = ((null === (n10 = (t10 = t10 || {}).currentTouch) || void 0 === n10 ? void 0 : n10.length) || 0) > 1, d2 = t10.velocityX || 0, h4 = t10.velocityY || 0;
    let p2 = t10.center;
    !p2 && t10.srcEvent && (p2 = n4(t6(t10.srcEvent)));
    let v2 = t10.deltaX || 0, b3 = t10.deltaY || 0;
    switch (e11) {
      case g.MoveRight:
        v2 = t10.deltaX || 100;
        break;
      case g.MoveLeft:
        v2 = t10.deltaX || -100;
        break;
      case g.MoveUp:
        b3 = t10.deltaY || -100;
        break;
      case g.MoveDown:
        b3 = t10.deltaY || 100;
    }
    let y2 = [];
    switch (e11) {
      case g.Reset:
        Z = Object.assign({}, m), Z.scale = V();
        break;
      case g.Pan:
      case g.Move:
      case g.MoveLeft:
      case g.MoveRight:
      case g.MoveUp:
      case g.MoveDown:
        if (null == k2 ? void 0 : k2.isPointerDown()) {
          let e13 = 1, t11 = 1;
          Z.x <= a7.x[0] && d2 <= 0 && (e13 = Math.max(0.01, 1 - Math.abs(1 / u6.width * Math.abs(Z.x - a7.x[0]))), e13 *= 0.2), Z.x >= a7.x[1] && d2 >= 0 && (e13 = Math.max(0.01, 1 - Math.abs(1 / u6.width * Math.abs(Z.x - a7.x[1]))), e13 *= 0.2), Z.y <= a7.y[0] && h4 <= 0 && (t11 = Math.max(0.01, 1 - Math.abs(1 / u6.height * Math.abs(Z.y - a7.y[0]))), t11 *= 0.2), Z.y >= a7.y[1] && h4 >= 0 && (t11 = Math.max(0.01, 1 - Math.abs(1 / u6.height * Math.abs(Z.y - a7.y[1]))), t11 *= 0.2), Z.x += v2 * e13, Z.y += b3 * t11;
        } else Z.x = t4(a7.x[0], Z.x + v2, a7.x[1]), Z.y = t4(a7.y[0], Z.y + b3, a7.y[1]);
        break;
      case g.Swipe:
        const e12 = (e13 = 0) => Math.sign(e13) * Math.pow(Math.abs(e13), 1.5);
        Z.x += t4(-1e3, e12(d2), 1e3), Z.y += t4(-1e3, e12(h4), 1e3), h4 && !d2 && (Z.x = t4(a7.x[0], Z.x, a7.x[1])), !h4 && d2 && (Z.y = t4(a7.y[0], Z.y, a7.y[1])), r7.x = d2, r7.y = h4;
        break;
      case g.ZoomTo:
        Z.scale = t10.scale || 1;
        break;
      case g.ZoomIn:
        Z.scale = Z.scale * (t10.scale || 2), f2 || (Z.scale = Math.min(Z.scale, J()));
        break;
      case g.ZoomOut:
        Z.scale = Z.scale * (t10.scale || 0.5), f2 || (Z.scale = Math.max(Z.scale, N()));
        break;
      case g.ToggleCover:
        y2 = [V(), U()];
        break;
      case g.ToggleFull:
        y2 = [V(), G()];
        break;
      case g.ToggleMax:
        y2 = [V(), J()];
        break;
      case g.IterateZoom:
        y2 = [V(), G(), J()];
        break;
      case g.Zoom:
        const n11 = G();
        Z.scale >= n11 - 0.05 ? Z.scale = V() : Z.scale = Math.min(n11, Z.scale * (t10.scale || 2));
        break;
      case g.RotateCW:
        Z.angle += 90;
        break;
      case g.RotateCCW:
        Z.angle -= 90;
        break;
      case g.FlipX:
        Z.flipX *= -1;
        break;
      case g.FlipY:
        Z.flipY *= -1;
    }
    if (void 0 !== F.angle && Math.abs(F.angle) >= 360 && (Z.angle -= 360 * Math.floor(F.angle / 360), F.angle -= 360 * Math.floor(F.angle / 360)), y2.length) {
      const e12 = y2.findIndex((e13) => e13 > Z.scale + 1e-4);
      Z.scale = y2[e12] || y2[0];
    }
    if (f2 && (Z.scale = t4(N() * (f2 ? 0.8 : 1), Z.scale, J() * (f2 ? 1.6 : 1))), $()) {
      const e12 = B(Z.scale);
      if (e12) {
        const { x: t11, y: n11 } = e12;
        Z.x = t11, Z.y = n11;
      }
    } else if (Z.scale !== i9.scale) {
      let e12 = 0, t11 = 0;
      if (p2) e12 = p2.x, t11 = p2.y;
      else {
        const n12 = c4.getBoundingClientRect();
        e12 = n12.x + 0.5 * n12.width, t11 = n12.y + 0.5 * n12.height;
      }
      let n11 = e12 - u6.left, s10 = t11 - u6.top;
      n11 -= 0.5 * u6.width, s10 -= 0.5 * u6.height;
      const l6 = (n11 - i9.x) / i9.scale, r8 = (s10 - i9.y) / i9.scale;
      Z.x = n11 - l6 * Z.scale, Z.y = s10 - r8 * Z.scale, !f2 && Y("bounds") && (a7 = K(Z.scale), Z.x = t4(a7.x[0], Z.x, a7.x[1]), Z.y = t4(a7.y[0], Z.y, a7.y[1]));
    }
    if (e11 === g.Swipe) {
      let e12 = 94, t11 = 17, n11 = 500 * Z.scale, i10 = r7;
      j.spring({ tension: e12, friction: t11, maxSpeed: n11, restDelta: 0.1, restSpeed: 0.1, velocity: i10 });
    } else e11 === g.Pan || f2 ? j.spring({ tension: 750, friction: 17, restDelta: 0.01, restSpeed: 0.01, maxSpeed: 1 }) : j.spring({ tension: 170, friction: 17, restDelta: 1e-3, restSpeed: 1e-3, maxSpeed: 1 / 0, velocity: r7 });
    e11 === g.Reset && 0 === t10.velocity ? F = Object.assign({}, Z) : j.from(F).to(Z).start(), I2("action", e11);
  }
  function ne() {
    if (!M || !E2) return;
    if (E2 instanceof HTMLImageElement) {
      const { width: e12, height: t11 } = q();
      M.style.maxWidth = `min(${e12}px, 100%)`, M.style.maxHeight = `min(${t11}px, 100%)`;
    }
    let { x: e11, y: t10, scale: n10, angle: i9, flipX: o8, flipY: a7 } = F;
    const s10 = function() {
      const e12 = W(), t11 = e12.width, n11 = e12.height, { width: i10, height: o9 } = q();
      if (!c4) return { x: 0, y: 0, width: 0, height: 0, scale: 0, flipX: 0, flipY: 0, angle: 0, fitWidth: t11, fitHeight: n11, fullWidth: i10, fullHeight: o9 };
      let { x: a8, y: s11, scale: l6, angle: r7, flipX: u6, flipY: f2 } = F, d2 = 1 / G(), g3 = i10, h4 = o9, m3 = F.scale * d2, p2 = Z.scale * d2;
      const v2 = Math.max(t11, n11), b3 = Math.min(t11, n11);
      i10 > o9 ? (g3 = v2, h4 = b3) : (g3 = b3, h4 = v2);
      m3 = i10 > o9 ? v2 * l6 / i10 || 1 : v2 * l6 / o9 || 1;
      let y2 = g3 ? i10 * p2 : 0, x2 = h4 ? o9 * p2 : 0;
      return a8 = a8 + 0.5 * g3 - 0.5 * y2, s11 = s11 + 0.5 * h4 - 0.5 * x2, { x: a8, y: s11, width: y2, height: x2, scale: g3 && h4 ? i10 * m3 / y2 : 0, flipX: u6, flipY: f2, angle: r7, fitWidth: t11, fitHeight: n11, fullWidth: i10, fullHeight: o9 };
    }();
    if (M && s10) {
      const { x: e12, y: t11, width: n11, height: o9, scale: a8, flipX: l6, flipY: r7 } = s10;
      let c5 = `translate(${d(e12)}px, ${d(t11)}px)`;
      c5 += 1 !== l6 || 1 !== r7 ? ` scaleX(${d(a8 * l6)}) scaleY(${d(a8 * r7)})` : ` scale(${d(a8)})`, 0 !== i9 && (c5 += ` rotate(${i9}deg)`), T2 && (T2.style.width = `${d(n11)}px`, T2.style.height = `${d(o9)}px`, T2.style.transform = `${c5}`);
    }
    I2("render");
  }
  function ie() {
    let e11 = Z.scale;
    const t10 = Y("clickAction");
    let n10 = V();
    if (t10) {
      let i9 = [];
      switch (t10) {
        case g.ZoomIn:
          n10 = 2 * e11;
          break;
        case g.ZoomOut:
          n10 = 0.5 * e11;
          break;
        case g.ToggleCover:
          i9 = [V(), U()];
          break;
        case g.ToggleFull:
          i9 = [V(), G()];
          break;
        case g.ToggleMax:
          i9 = [V(), J()];
          break;
        case g.IterateZoom:
          i9 = [V(), G(), J()];
          break;
        case g.Zoom:
          const t11 = G();
          n10 = e11 >= t11 - 0.05 ? V() : Math.min(t11, 2 * e11);
      }
      if (i9.length) {
        const t11 = i9.findIndex((t12) => t12 > e11 + 1e-4);
        n10 = i9[t11] || V();
      }
    }
    return n10 = t4(N(), n10, J()), n10;
  }
  function oe() {
    return 3 === A2 && ie() > Z.scale;
  }
  function ae() {
    return 3 === A2 && ie() < Z.scale;
  }
  function se() {
    return 3 === A2 && Z.scale < J();
  }
  function le() {
    return 3 === A2 && Z.scale > N();
  }
  function re() {
    return 3 === A2 && ue() && !!k2 && !$();
  }
  function ce() {
    return 3 === A2 && (null == k2 ? void 0 : k2.isPointerDown()) && !$();
  }
  function ue() {
    return 3 === A2 && Z.scale > V();
  }
  function fe() {
    return 3 === A2 && Z.scale >= G();
  }
  const de = { canDrag: re, canZoomIn: se, canZoomOut: le, destroy: function() {
    I2("destroy");
    for (const e11 of Object.values(S)) null == e11 || e11.destroy(de);
    for (const e11 of X) e11();
    return M && (M.style.aspectRatio = "", M.style.maxWidth = "", M.style.maxHeight = ""), T2 && (T2.style.width = "", T2.style.height = "", T2.style.transform = ""), M = void 0, E2 = void 0, T2 = void 0, F = Object.assign({}, m), Z = Object.assign({}, m), null == j || j.destroy(), j = void 0, null == k2 || k2.destroy(), k2 = void 0, A2 = 4, de;
  }, emit: I2, execute: te, getBoundaries: K, getContainer: function() {
    return c4;
  }, getFullDim: q, getGestures: function() {
    return k2;
  }, getMousemovePos: B, getOptions: function() {
    return C2;
  }, getScale: _2, getState: function() {
    return A2;
  }, getTransform: function(e11) {
    return true === e11 ? Z : F;
  }, getTween: function() {
    return j;
  }, getViewport: function() {
    return T2;
  }, getWrapper: function() {
    return M;
  }, init: function() {
    return A2 = 0, I2("init"), function() {
      for (const [e11, t10] of Object.entries(Object.assign(Object.assign({}, w2), C2.plugins || {}))) if (e11 && !S[e11] && t10 instanceof Function) {
        const n10 = t10();
        n10.init(de), S[e11] = n10;
      }
      I2("initPlugins");
    }(), function() {
      if (!c4) return;
      const e11 = Object.assign(Object.assign({}, p.classes), Y("classes"));
      if (s(c4, e11.container), E2 = c4.querySelector("." + e11.content), !E2) return;
      E2.setAttribute("draggable", "false"), M = c4.querySelector("." + e11.wrapper), M || (M = document.createElement("div"), s(M, e11.wrapper), E2.insertAdjacentElement("beforebegin", M), M.insertAdjacentElement("afterbegin", E2));
      if (!(E2 instanceof HTMLImageElement || E2 instanceof HTMLPictureElement)) return;
      if (T2 = c4.querySelector("." + e11.viewport), !T2) {
        T2 = document.createElement("div"), s(T2, e11.viewport);
        const t10 = E2.cloneNode(true);
        t10.classList.remove("is-lazyloading"), t10.classList.remove("is-lazyloaded"), T2.insertAdjacentElement("afterbegin", t10), M.insertAdjacentElement("beforeend", T2);
      }
      E2 instanceof HTMLPictureElement && (E2 = E2.querySelector("img"));
      T2 instanceof HTMLPictureElement && (T2 = T2.querySelector("img"));
      T2.style.visibility = "hidden", I2("initLayout");
    }(), function() {
      if (!(E2 && E2 instanceof HTMLImageElement)) return;
      const e11 = () => {
        E2 && E2 instanceof HTMLImageElement && E2.decode().then(() => {
          requestAnimationFrame(() => {
            H();
          });
        }).catch(() => {
          H();
        });
      };
      if (E2.src && E2.complete) return void e11();
      A2 = 1, function() {
        const e12 = null == c4 ? void 0 : c4.querySelector(".f-spinner");
        if (!c4 || e12) return;
        const t10 = Y("spinnerTpl"), n10 = e(t10);
        n10 && (n10.classList.add("f-spinner"), c4.classList.add("is-loading"), null == M || M.insertAdjacentElement("afterbegin", n10));
      }(), I2("loading"), E2.addEventListener("load", e11, false), E2.addEventListener("error", e11, false), X.push(() => {
        null == E2 || E2.removeEventListener("load", e11, false), null == E2 || E2.removeEventListener("error", e11, false);
      });
    }(), function() {
      if (c4 && !L2) {
        let e11 = null;
        L2 = new ResizeObserver(() => {
          e11 || (e11 = requestAnimationFrame(() => {
            c4 && c4.parentElement && 3 === A2 && (ee(), Q(), I2("refresh")), e11 = null;
          }));
        }), L2.observe(c4), X.push(() => {
          null == L2 || L2.disconnect(), L2 = void 0, e11 && (cancelAnimationFrame(e11), e11 = null);
        });
      }
    }(), de;
  }, isDragging: ce, isExpanded: ue, isFullsize: fe, localize: function(e11, t10 = []) {
    const n10 = Y("l10n") || {};
    e11 = String(e11).replace(/\{\{(\w+)\}\}/g, (e12, t11) => n10[t11] || e12);
    for (let n11 = 0; n11 < t10.length; n11++) e11 = e11.split(t10[n11][0]).join(t10[n11][1]);
    return e11 = e11.replace(/\{\{(.*?)\}\}/g, (e12, t11) => t11);
  }, off: function(e11, t10) {
    for (const n10 of e11 instanceof Array ? e11 : [e11]) P.has(n10) && P.set(n10, P.get(n10).filter((e12) => e12 !== t10));
    return de;
  }, on: function(e11, t10) {
    for (const n10 of e11 instanceof Array ? e11 : [e11]) P.set(n10, [...P.get(n10) || [], t10]);
    return de;
  }, version: "6.0.7", willZoomIn: oe, willZoomOut: ae };
  return de;
};
w.l10n = { en_EN: o3 }, w.getDefaults = () => p;

// node_modules/@fancyapps/ui/dist/utils/getDirectChildren.js
var e7 = (e11, o8) => {
  let t10 = [];
  return e11.childNodes.forEach((e12) => {
    e12.nodeType !== Node.ELEMENT_NODE || o8 && !e12.matches(o8) || t10.push(e12);
  }), t10;
};

// node_modules/@fancyapps/ui/dist/utils/removeClass.js
var s4 = (s10, t10 = "") => {
  s10 && s10.classList && t10.split(" ").forEach((t11) => {
    t11 && s10.classList.remove(t11);
  });
};

// node_modules/@fancyapps/ui/dist/utils/toggleClass.js
var s5 = (s10, t10 = "", c4) => {
  s10 && s10.classList && t10.split(" ").forEach((t11) => {
    t11 && s10.classList.toggle(t11, c4 || false);
  });
};

// node_modules/@fancyapps/ui/dist/carousel/l10n/en_EN.js
var o4 = Object.assign(Object.assign({}, o3), { ERROR: "Something went wrong. <br /> Please try again later.", NEXT: "Next page", PREV: "Previous page", GOTO: "Go to page #%d", DOWNLOAD: "Download", TOGGLE_FULLSCREEN: "Toggle full-screen mode", TOGGLE_EXPAND: "Toggle full-size mode", TOGGLE_THUMBS: "Toggle thumbnails", TOGGLE_AUTOPLAY: "Toggle slideshow" });

// node_modules/@fancyapps/ui/dist/carousel/carousel.js
var m2 = (e11) => {
  e11.cancelable && e11.preventDefault();
};
var g2 = { adaptiveHeight: false, center: true, classes: { container: "f-carousel", isEnabled: "is-enabled", isLTR: "is-ltr", isRTL: "is-rtl", isHorizontal: "is-horizontal", isVertical: "is-vertical", hasAdaptiveHeight: "has-adaptive-height", viewport: "f-carousel__viewport", slide: "f-carousel__slide", isSelected: "is-selected" }, dragFree: false, enabled: true, errorTpl: '<div class="f-html">{{ERROR}}</div>', fill: false, infinite: true, initialPage: 0, l10n: o4, rtl: false, slides: [], slidesPerPage: "auto", spinnerTpl: '<div class="f-spinner"></div>', transition: "fade", tween: { clamp: true, mass: 1, tension: 200, friction: 25, restDelta: 1, restSpeed: 1, velocity: 0 }, vertical: false };
var h2;
var b2 = 0;
var E = (v2, y2 = {}, M = {}) => {
  b2++;
  let x2, w2, S, j, L2, P = 0, T2 = Object.assign({}, g2), O2 = Object.assign({}, g2), R = {}, A2 = null, C2 = null, H = false, V = false, $ = false, z2 = "height", D2 = 0, F = true, q = 0, I2 = 0, k2 = 0, N = 0, B = "*", _2 = [], G = [];
  const X = /* @__PURE__ */ new Set();
  let Y = [], J = 0, K = 0;
  function Q(e11, ...t10) {
    let n10 = O2[e11];
    return n10 && n10 instanceof Function ? n10(Pe, ...t10) : n10;
  }
  function U(e11, t10 = []) {
    const n10 = Q("l10n") || {};
    e11 = String(e11).replace(/\{\{(\w+)\}\}/g, (e12, t11) => n10[t11] || e12);
    for (let n11 = 0; n11 < t10.length; n11++) e11 = e11.split(t10[n11][0]).join(t10[n11][1]);
    return e11 = e11.replace(/\{\{(.*?)\}\}/g, (e12, t11) => t11);
  }
  const W = /* @__PURE__ */ new Map();
  function Z(e11, ...t10) {
    const n10 = W.get(e11) || [];
    O2.on && n10.push(O2.on[e11]);
    for (const e12 of n10) e12 && e12 instanceof Function && e12(Pe, ...t10);
    "*" !== e11 && Z("*", e11, ...t10);
  }
  function ee() {
    var t10, n10;
    const r7 = r({}, g2, T2);
    r(r7, g2, T2);
    let l6 = "";
    const u6 = T2.breakpoints || {};
    if (u6) for (const [e11, t11] of Object.entries(u6)) window.matchMedia(e11).matches && (l6 += e11, r(r7, t11));
    if (void 0 === L2 || l6 !== L2) {
      if (L2 = l6, 0 !== P) {
        let e11 = null === (n10 = null === (t10 = Y[q]) || void 0 === t10 ? void 0 : t10.slides[0]) || void 0 === n10 ? void 0 : n10.index;
        void 0 === e11 && (e11 = O2.initialSlide), r7.initialSlide = e11, r7.slides = [];
        for (const e12 of _2) e12.isVirtual && r7.slides.push(e12);
      }
      Le(), O2 = r7, false !== O2.enabled && (P = 0, Z("init"), function() {
        for (const [e11, t11] of Object.entries(Object.assign(Object.assign({}, M), O2.plugins || {}))) if (e11 && !R[e11] && t11 instanceof Function) {
          const n11 = t11();
          n11.init(Pe, E), R[e11] = n11;
        }
        Z("initPlugins");
      }(), function() {
        if (!A2) return;
        const t11 = Q("classes") || {};
        s(A2, t11.container), s(A2, t11.isEnabled);
        const n11 = Q("style");
        if (n11 && t(n11)) for (const [e11, t12] of Object.entries(n11)) A2.style.setProperty(e11, t12);
        C2 = A2.querySelector(`.${t11.viewport}`), C2 || (C2 = document.createElement("div"), s(C2, t11.viewport), C2.append(...e7(A2, `.${t11.slide}`)), A2.insertAdjacentElement("afterbegin", C2)), A2.carousel = Pe, Z("initLayout");
      }(), function() {
        if (!C2) return;
        const e11 = Q("classes") || {};
        _2 = [], [...e7(C2, `.${e11.slide}`)].forEach((e12) => {
          e12.parentElement && (_2.push(ue(Object.assign({ el: e12, isVirtual: false }, e12.dataset || {}))), e12.parentElement.removeChild(e12));
        }), de(Q("slides"));
        for (const e12 of _2) Z("addSlide", e12);
        Z("initSlides");
      }(), w2 = c().on("start", () => {
        F = false, x2 && x2.isPointerDown() || (ie(), je());
      }).on("step", (e11) => {
        D2 = e11.pos, je();
      }).on("end", (e11) => {
        (null == x2 ? void 0 : x2.isPointerDown()) || (D2 = e11.pos, w2 && !H && (D2 < k2 || D2 > N) ? w2.spring({ clamp: true, mass: 1, tension: 200, friction: 25, velocity: 0, restDelta: 1, restSpeed: 1 }).from({ pos: D2 }).to({ pos: t4(k2, D2, N) }).start() : F || (F = true, Z("settle")));
      }), function() {
        const e11 = Q("gestures");
        C2 && false !== e11 && (x2 = u2(C2, e11).on("start", (e12) => {
          var t11, n11;
          if (!w2) return;
          const { srcEvent: i9 } = e12;
          function o8(e13) {
            const t12 = window.getComputedStyle(e13), n12 = new DOMMatrixReadOnly(t12.transform);
            return { width: n12.m41 || 0, height: n12.m42 || 0 };
          }
          $ && m2(i9), w2.pause(), w2.getCurrentVelocities().pos = 0;
          const s10 = null === (t11 = Y[q]) || void 0 === t11 ? void 0 : t11.slides[0];
          s10 && X.has(s10.index) && s10.el && (D2 = s10.offset || 0, D2 += (o8(s10.el)[z2] || 0) * (V && !$ ? 1 : -1)), be(), H || (D2 < k2 || D2 > N) && w2.spring({ clamp: true, mass: 1, tension: 500, friction: 25, velocity: (null === (n11 = w2.getCurrentVelocities()) || void 0 === n11 ? void 0 : n11.pos) || 0, restDelta: 1, restSpeed: 1 }).from({ pos: D2 }).to({ pos: t4(k2, D2, N) }).start();
        }).on("move", (e12) => {
          const { srcEvent: t11, axis: n11 } = e12, o8 = e12.srcEvent.target;
          o8 && n2(o8) || (n11 || (t11.stopPropagation(), t11.stopImmediatePropagation()), ("y" === n11 && $ || "x" === n11 && !$) && (m2(t11), t11.stopPropagation()));
        }).on("panstart", (e12) => {
          (null == e12 ? void 0 : e12.axis) === ($ ? "y" : "x") && s(C2, "is-dragging");
        }).on("panend", () => {
          s4(C2, "is-dragging");
        }).on("pan", (e12) => {
          var t11;
          const { deltaX: n11, deltaY: i9, currentTouch: o8, axis: s10 } = e12;
          if (!w2) return;
          if (o8.length > 1) return;
          if ("y" === s10 && !$ || "x" === s10 && $) return;
          const r8 = V && !$ ? 1 : -1;
          let l7 = $ ? i9 : n11, a7 = (null == w2 ? void 0 : w2.isRunning()) ? w2.getEndValues().pos : D2, c4 = 1;
          H || (a7 <= k2 && l7 * r8 < 0 ? (c4 = Math.max(0.01, 1 - Math.abs(1 / ae() * Math.abs(a7 - k2))), c4 *= 0.2) : a7 >= N && l7 * r8 > 0 && (c4 = Math.max(0.01, 1 - Math.abs(1 / ae() * Math.abs(a7 - N))), c4 *= 0.2)), a7 += l7 * c4 * r8, w2.spring({ clamp: true, mass: 1, tension: 700, friction: 25, velocity: (null === (t11 = w2.getCurrentVelocities()) || void 0 === t11 ? void 0 : t11.pos) || 0, restDelta: 1, restSpeed: 1 }).from({ pos: D2 }).to({ pos: a7 }).start();
        }).on("end", (e12) => {
          var t11, n11;
          const { axis: i9, velocityX: o8, velocityY: s10, currentTouch: r8 } = e12, l7 = Y.length, c4 = Q("dragFree");
          if (r8.length > 0 || !w2) return;
          if (!l7) return;
          const d2 = Q("vertical") ? s10 : o8;
          let u7 = (null == w2 ? void 0 : w2.isRunning()) ? w2.getEndValues().pos : D2;
          const f2 = V && !$ ? 1 : -1;
          if (u7 += d2 * (c4 ? 5 : 1) * f2, !H && (d2 * f2 <= 0 && u7 < k2 || d2 * f2 >= 0 && u7 > N)) {
            let e13 = 0;
            return Math.abs(d2) > 0 && (e13 = 2 * Math.abs(d2), e13 = Math.min(0.3 * ae(), e13)), u7 = t4(k2 + -1 * e13, u7, N + e13), void w2.spring({ clamp: true, mass: 1, tension: 380, friction: 25, velocity: -1 * d2, restDelta: 1, restSpeed: 1 }).from({ pos: D2 }).to({ pos: u7 }).start();
          }
          if (c4 || (null === (t11 = R.Autoscroll) || void 0 === t11 ? void 0 : t11.isEnabled())) return void (Math.abs(d2) > 10 ? w2.spring({ clamp: true, mass: 1, tension: 150, friction: 25, velocity: -1 * d2, restDelta: 1, restSpeed: 1 }).from({ pos: D2 }).to({ pos: u7 }).start() : w2.isRunning() || F || (F = true, Z("settle")));
          if (!c4 && !(null === (n11 = R.Autoscroll) || void 0 === n11 ? void 0 : n11.isEnabled()) && (!e12.offsetX && !e12.offsetY || "y" === i9 && !$ || "x" === i9 && $)) return void Se(q, { transition: "tween" });
          let p2 = re(u7);
          Math.abs(d2) > 10 && p2 === q && (p2 += d2 > 0 ? V && !$ ? 1 : -1 : V && !$ ? -1 : 1), Se(p2, { transition: "tween", tween: { tension: 160, friction: 25, velocity: -1 * d2 } });
        }).init());
      }(), ge(), function() {
        if (A2 && (A2.addEventListener("click", ye, { passive: false }), document.addEventListener("mousemove", te), !S)) {
          let e11 = null;
          S = new ResizeObserver((t11) => {
            e11 || (e11 = requestAnimationFrame(() => {
              !function(e12) {
                if (!A2) return;
                let t12 = e12[0].contentBoxSize[0].blockSize, n11 = e12[0].contentBoxSize[0].inlineSize;
                if (0 === P) return J = t12, K = n11, P = 1, je(), oe(), void Z("ready");
                if (1 !== P) return;
                const i9 = Y.length;
                ge();
                const o8 = A2.getBoundingClientRect();
                t12 = o8.height, n11 = o8.width, i9 > 1 && ($ && Math.abs(t12 - J) < 0.5 || !$ && Math.abs(n11 - K) < 0.5) || (J = t12, K = n11, $ && !t12 || !$ && !n11 || A2 && C2 && (i9 === Y.length && ((null == x2 ? void 0 : x2.isPointerDown()) || Q("dragFree") && (null == w2 ? void 0 : w2.isRunning())) || Se(q, { transition: false })));
              }(t11), e11 = null;
            }));
          }), S.observe(A2);
        }
      }());
    }
  }
  function te(e11) {
    h2 = e11;
  }
  function ne(e11 = "*") {
    var t10;
    const n10 = [];
    for (const i9 of _2) ("*" === e11 || i9.class && i9.class.includes(e11) || i9.el && (null === (t10 = i9.el) || void 0 === t10 ? void 0 : t10.classList.contains(e11))) && n10.push(i9);
    j = void 0, B = e11, G = [...n10];
  }
  function ie() {
    if (!w2) return;
    const e11 = re((null == w2 ? void 0 : w2.isRunning()) ? w2.getEndValues().pos : D2);
    e11 !== q && (j = q, q = e11, we(), oe(), se(), Z("change", q, j));
  }
  function oe() {
    var e11;
    if (!A2) return;
    s5(C2, "is-draggable", !!x2 && Y.length > 0);
    for (const e12 of A2.querySelectorAll("[data-carousel-index]")) e12.innerHTML = q + "";
    for (const e12 of A2.querySelectorAll("[data-carousel-page]")) e12.innerHTML = q + 1 + "";
    for (const e12 of A2.querySelectorAll("[data-carousel-pages]")) e12.innerHTML = Y.length + "";
    let t10 = false;
    const n10 = null === (e11 = Y[q]) || void 0 === e11 ? void 0 : e11.slides[0];
    n10 && (n10.downloadSrc || "image" === n10.type && n10.src) && (t10 = true);
    for (const e12 of A2.querySelectorAll("[data-carousel-download]")) e12.toggleAttribute("aria-disabled", !t10);
  }
  function se(e11) {
    var t10;
    if (!A2) return;
    e11 || (e11 = null === (t10 = Y[q]) || void 0 === t10 ? void 0 : t10.slides[0]);
    const n10 = e11.el;
    if (n10) for (const t11 of n10.querySelectorAll("[data-slide-index]")) t11.innerHTML = e11.index + 1 + "";
  }
  function re(e11) {
    if (!Y.length || !w2) return 0;
    const t10 = ce();
    let n10 = e11;
    H ? n10 -= Math.floor((e11 - Y[0].pos) / t10) * t10 : n10 = t4(Y[0].pos, e11, Y[Y.length - 1].pos);
    const i9 = /* @__PURE__ */ new Map();
    let o8 = 0;
    for (const e12 of Y) {
      const s11 = Math.abs(e12.pos - n10), r7 = Math.abs(e12.pos - n10 - t10), l6 = Math.abs(e12.pos - n10 + t10), a7 = Math.min(s11, r7, l6);
      i9.set(o8, a7), o8++;
    }
    const s10 = i9.size > 0 ? [...i9.entries()].reduce((e12, t11) => t11[1] < e12[1] ? t11 : e12) : [q, 0];
    return parseInt(s10[0]);
  }
  function le() {
    return C2 && parseFloat(getComputedStyle(C2).getPropertyValue("--f-carousel-gap")) || 0;
  }
  function ae() {
    return C2 && C2.getBoundingClientRect()[z2] || 0;
  }
  function ce(e11 = true) {
    const t10 = le();
    return G.reduce((e12, t11) => e12 + t11.dim, 0) + (G.length - (H && e11 ? 0 : 1)) * t10;
  }
  function de(e11, t10) {
    const n10 = [];
    for (const t11 of Array.isArray(e11) ? e11 : [e11]) {
      const e12 = ue(Object.assign(Object.assign({}, t11), { isVirtual: true }));
      n10.push(e12);
    }
    _2.splice(void 0 === t10 ? _2.length : t10, 0, ...n10), me();
    for (const e12 of n10) fe(e12);
    return ne(B), n10;
  }
  function ue(e11) {
    return (t2(e11) || e11 instanceof HTMLElement) && (e11 = { html: e11 }), Object.assign({ index: -1, el: void 0, class: "", isVirtual: true, dim: 0, pos: 0, offset: 0, html: "", src: "" }, e11);
  }
  function fe(e11) {
    if (!e11) return;
    let t10 = e11.el;
    t10 || (t10 = document.createElement("div"), e11.el = t10);
    const n10 = e11.html ? e11.html instanceof HTMLElement ? e11.html : e(e11.html) : void 0;
    n10 && (s(n10, "f-html"), e11.htmlEl = n10, s(t10, "has-html"), t10.append(n10), Z("contentReady", e11));
  }
  function pe(e11) {
    if (!C2 || !e11) return;
    let t10 = e11.el;
    if (t10) {
      if (t10.setAttribute("index", e11.index + ""), t10.parentElement !== C2) {
        let n10;
        s(t10, O2.classes.slide), s(t10, e11.class), we(e11);
        for (const t11 of _2) if (t11.index > e11.index) {
          n10 = t11.el;
          break;
        }
        C2.insertBefore(t10, n10 && C2.contains(n10) ? n10 : null), oe(), se(e11), Z("attachSlideEl", e11);
      }
      return t10;
    }
  }
  function ve(e11) {
    const t10 = null == e11 ? void 0 : e11.el;
    t10 && (t10.remove(), he(t10), Z("detachSlideEl", e11));
  }
  function me() {
    for (let e11 = 0; e11 < _2.length; e11++) {
      const t10 = _2[e11], n10 = t10.el;
      n10 && (t10.index !== e11 && he(n10), n10.setAttribute("index", `${e11}`)), t10.index = e11;
    }
  }
  function ge() {
    var e11, n10, i9, o8;
    if (!A2 || !C2) return;
    V = Q("rtl"), $ = Q("vertical"), z2 = $ ? "height" : "width";
    const s10 = Q("classes");
    s5(A2, s10.isLTR, !V), s5(A2, s10.isRTL, V), s5(A2, s10.isHorizontal, !$), s5(A2, s10.isVertical, $), s5(A2, s10.hasAdaptiveHeight, Q("adaptiveHeight"));
    const r7 = function() {
      let e12 = 0;
      if (C2) {
        let t10 = document.createElement("div");
        s(t10, O2.classes.slide), C2.appendChild(t10), e12 = t10.getBoundingClientRect()[z2], t10.remove(), t10 = void 0;
      }
      return e12;
    }();
    for (const n11 of G) {
      const i10 = n11.el;
      let o9 = 0;
      if (!n11.isVirtual && i10 && n(i10)) {
        let t10 = false;
        i10.parentElement && i10.parentElement === C2 || (C2.appendChild(i10), t10 = true), o9 = i10.getBoundingClientRect()[z2], t10 && (null === (e11 = i10.parentElement) || void 0 === e11 || e11.removeChild(i10));
      } else o9 = r7;
      n11.dim = o9;
    }
    if (function() {
      if (!A2) return;
      me();
      const e12 = ae(), t10 = le(), n11 = ce(false);
      let i10 = Q("slidesPerPage");
      i10 = "auto" === i10 ? 1 / 0 : parseFloat(i10 + ""), Y = [];
      let o9 = 0, s11 = 0;
      for (const n12 of G) (!Y.length || o9 + n12.dim - e12 > 0.05 || s11 >= i10) && (Y.push({ index: Y.length, slides: [], dim: 0, offset: 0, pos: 0 }), o9 = 0, s11 = 0), Y[Y.length - 1].slides.push(n12), o9 += n12.dim + t10, s11++;
      const r8 = Q("center"), l6 = Q("fill"), c4 = Q("infinite");
      let d2 = 0;
      for (const i11 of Y) {
        i11.dim = (i11.slides.length - 1) * t10;
        for (const e13 of i11.slides) i11.dim += e13.dim;
        i11.offset = d2, i11.pos = d2, false !== r8 && (i11.pos -= 0.5 * (e12 - i11.dim)), l6 && !c4 && n11 > e12 && (i11.pos = t4(0, i11.pos, n11 - e12)), d2 += i11.dim + t10;
      }
      const u6 = [];
      let f2;
      for (const e13 of Y) {
        const t11 = Object.assign({}, e13);
        f2 && t11.pos === f2.pos ? (f2.dim += t11.dim, f2.slides = [...f2.slides, ...t11.slides]) : (f2 = t11, t11.index = u6.length, u6.push(t11));
      }
      Y = u6;
    }(), H = Q("infinite") && Y.length > 1 && ce() - (ae() + ((null === (n10 = G[0]) || void 0 === n10 ? void 0 : n10.dim) || 0)) > -0.5, k2 = (null === (i9 = Y[0]) || void 0 === i9 ? void 0 : i9.pos) || 0, N = (null === (o8 = Y[Y.length - 1]) || void 0 === o8 ? void 0 : o8.pos) || 0, 0 === P) !function() {
      var e12;
      j = void 0, q = Q("initialPage");
      const t10 = Q("initialSlide") || void 0;
      void 0 !== t10 && (q = Pe.getPageIndex(t10) || 0), q = t4(0, q, Y.length - 1), D2 = (null === (e12 = Y[q]) || void 0 === e12 ? void 0 : e12.pos) || 0, I2 = D2;
    }();
    else {
      const e12 = (null == w2 ? void 0 : w2.isRunning()) ? w2.getEndValues().pos : D2;
      (e12 < k2 || e12 > N) && (q = t4(0, q, Y.length - 1));
    }
    Z("refresh");
  }
  function he(e11) {
    if (!e11 || !n(e11)) return;
    const n10 = parseInt(e11.getAttribute("index") || "-1");
    let i9 = "";
    for (const t10 of Array.from(e11.classList)) {
      const e12 = t10.match(/^f-(\w+)(Out|In)$/);
      e12 && e12[1] && (i9 = e12[1] + "");
    }
    if (!e11 || !i9) return;
    const o8 = [`f-${i9}Out`, `f-${i9}In`, "to-prev", "to-next", "from-prev", "from-next"];
    e11.removeEventListener("animationend", Ee), s4(e11, o8.join(" ")), X.delete(n10);
  }
  function be() {
    if (!C2) return;
    const e11 = X.size;
    for (const e12 of G) he(e12.el);
    X.clear(), e11 && je();
  }
  function Ee(e11) {
    "f-" === e11.animationName.substring(0, 2) && (he(e11.target), X.size || (s4(A2, "in-transition"), !F && Math.abs(Pe.getPosition(true) - I2) < 0.5 && (F = true, Z("settle"))), je());
  }
  function ye(e11) {
    if (e11.defaultPrevented) return;
    const t10 = e11.composedPath()[0];
    if (t10.closest("[data-carousel-go-prev]")) return m2(e11), void Pe.prev();
    if (t10.closest("[data-carousel-go-next]")) return m2(e11), void Pe.next();
    const n10 = t10.closest("[data-carousel-go-to]");
    if (n10) return m2(e11), void Pe.goTo(parseFloat(n10.dataset.carouselGoTo || "") || 0);
    if (t10.closest("[data-carousel-download]")) {
      m2(e11);
      const t11 = Y[q].slides[0];
      if (t11.downloadSrc || "image" === t11.type && t11.src) {
        const e12 = t11.downloadFilename, n11 = document.createElement("a");
        n11.href = t11.downloadSrc || t11.src || "", n11.target = "_blank", e12 && (n11.download = e12), n11.click();
      }
    } else Z("click", e11);
  }
  function Me(e11) {
    var t10;
    const n10 = e11.el;
    n10 && (null === (t10 = n10.querySelector(".f-spinner")) || void 0 === t10 || t10.remove(), s4(n10, "is-loading"));
  }
  function xe(e11) {
    var t10;
    const n10 = e11.el;
    n10 && (null === (t10 = n10.querySelector(".f-html.is-error")) || void 0 === t10 || t10.remove(), s4(n10, "has-error"));
  }
  function we(e11) {
    var t10;
    e11 || (e11 = null === (t10 = Y[q]) || void 0 === t10 ? void 0 : t10.slides[0]);
    const i9 = null == e11 ? void 0 : e11.el;
    if (!i9) return;
    let o8 = Q("formatCaption", e11);
    void 0 === o8 && (o8 = e11.caption), o8 = o8 || "";
    const s10 = Q("captionEl");
    if (s10 && s10 instanceof HTMLElement) {
      if (e11.index !== q) return;
      if (t2(o8) && (s10.innerHTML = U(o8 + "")), o8 instanceof HTMLElement) {
        if (o8.parentElement === s10) return;
        s10.innerHTML = "", o8.parentElement && (o8 = o8.cloneNode(true)), s10.append(o8);
      }
      return;
    }
    if (!o8) return;
    let r7 = e11.captionEl || i9.querySelector(".f-caption");
    !r7 && o8 instanceof HTMLElement && o8.classList.contains("f-caption") && (r7 = o8), r7 || (r7 = document.createElement("div"), s(r7, "f-caption"), t2(o8) ? r7.innerHTML = U(o8 + "") : o8 instanceof HTMLElement && (o8.parentElement && (o8 = o8.cloneNode(true)), r7.append(o8)));
    const l6 = `f-caption-${b2}_${e11.index}`;
    r7.setAttribute("id", l6), r7.dataset.selectable = "true", s(i9, "has-caption"), i9.setAttribute("aria-labelledby", l6), e11.captionEl = r7, i9.insertAdjacentElement("beforeend", r7);
  }
  function Se(t10, i9) {
    let { transition: o8, tween: s10 } = Object.assign({ transition: O2.transition, tween: O2.tween }, i9 || {});
    if (!A2 || !w2) return;
    const r7 = Y.length;
    if (!r7) return;
    if (function(e11, t11) {
      var i10, o9, s11;
      if (!(A2 && w2 && t11 && t2(t11) && "tween" !== t11)) return false;
      const r8 = Y.length;
      let l7 = e11 > q ? 1 : -1;
      e11 = H ? (e11 % r8 + r8) % r8 : t4(0, e11, r8 - 1), V && (l7 *= -1);
      const u6 = null === (i10 = Y[q]) || void 0 === i10 ? void 0 : i10.slides[0], f2 = null == u6 ? void 0 : u6.index, p2 = null === (o9 = Y[e11]) || void 0 === o9 ? void 0 : o9.slides[0], v3 = null == p2 ? void 0 : p2.index, m3 = null === (s11 = Y[e11]) || void 0 === s11 ? void 0 : s11.pos;
      if (void 0 === v3 || void 0 === f2 || f2 === v3 || D2 === m3 || Math.abs(ae() - ((null == p2 ? void 0 : p2.dim) || 0)) > 1) return false;
      F = false, w2.pause(), be(), s(A2, "in-transition"), D2 = I2 = m3, ie();
      const g3 = pe(u6), h3 = pe(p2);
      return g3 && (X.add(f2), g3.style.transform = "", g3.addEventListener("animationend", Ee), s4(g3, O2.classes.isSelected), s(g3, `f-${t11}Out to-${l7 > 0 ? "next" : "prev"}`)), h3 && (X.add(v3), h3.style.transform = "", h3.addEventListener("animationend", Ee), s(h3, O2.classes.isSelected), s(h3, `f-${t11}In from-${l7 > 0 ? "prev" : "next"}`)), je(), true;
    }(t10, o8)) return;
    t10 = H ? (t10 % r7 + r7) % r7 : t4(0, t10, r7 - 1), I2 = Y[t10 || 0].pos || 0;
    const l6 = w2.isRunning() ? w2.getEndValues().pos : D2;
    if (Math.abs(I2 - l6) < 1) return D2 = I2, q !== t10 && (we(), oe(), se(), j = q, q = t10, Z("change", q, j)), je(), void (F || (F = true, Z("settle")));
    if (w2.pause(), be(), H) {
      const e11 = ce(), t11 = Math.floor((l6 - Y[0].pos) / e11), n10 = I2 + t11 * e11;
      I2 = [n10 + e11, n10, n10 - e11].reduce(function(e12, t12) {
        return Math.abs(t12 - l6) < Math.abs(e12 - l6) ? t12 : e12;
      });
    }
    false !== o8 && t(s10) ? w2.spring(s10).from({ pos: D2 }).to({ pos: I2 }).start() : (D2 = I2, ie(), je(), F || (F = true, Z("settle")));
  }
  function je() {
    var e11;
    if (!A2 || !C2) return;
    const t10 = Y[q], n10 = function(e12) {
      const t11 = le(), n11 = ce(), i10 = ae(), o8 = [];
      if (!n11 || !i10) return o8;
      e12 = void 0 === e12 ? D2 : e12, H && (e12 -= Math.floor(e12 / n11) * n11);
      let s11 = 0, r7 = 0, l7 = 0;
      do {
        for (let n12 of G) o8.indexOf(n12) > -1 || (n12.offset = r7, n12.pos = r7 - e12, n12.offset + n12.dim > e12 + 0.51 && n12.offset < e12 + i10 - 0.51 && o8.push(n12), r7 += n12.dim + t11, s11 = e12 + i10 - ((n12.pos || 0) + n12.dim + t11));
        if (l7++, l7 > 100 || !H) break;
      } while (s11 > 0 && n11 > 0);
      return o8;
    }(), i9 = /* @__PURE__ */ new Set(), s10 = /* @__PURE__ */ new Set();
    let l6;
    for (const o8 of n10) {
      let n11 = pe(o8);
      if (!n11) continue;
      i9.add(n11);
      const a7 = (null === (e11 = null == t10 ? void 0 : t10.slides) || void 0 === e11 ? void 0 : e11.indexOf(o8)) > -1;
      a7 && s10.add(n11);
      const c4 = o8.pos ? Math.round(1e4 * o8.pos) / 1e4 : 0, d2 = $ ? 0 : V ? -1 * c4 : c4, u6 = $ ? c4 : 0, f2 = t5(d2, 0, o8.dim, 0, 100), p2 = t5(u6, 0, o8.dim, 0, 100), v3 = O2.setTransform || void 0;
      if (v3 instanceof Function ? v3(Pe, o8, { x: d2, y: u6, xPercent: f2, yPercent: p2 }) : n11.style.transform = d2 || u6 ? `translate3d(${f2}%, ${p2}%,0)` : "", Q("adaptiveHeight") && a7) {
        const e12 = (n11.firstElementChild || n11).getBoundingClientRect().height;
        l6 = null == l6 ? e12 : Math.max(l6, e12);
      }
    }
    [...e7(C2, `.${O2.classes.slide}`)].forEach((e12) => {
      const t11 = parseInt(e12.getAttribute("index") || "-1"), n11 = _2[t11];
      n11 || e12.remove(), s5(e12, O2.classes.isSelected, s10.has(e12)), X.has(t11) || i9.has(e12) || ve(n11);
    }), C2 && l6 && (C2.style.height = `${l6}px`), Z("render", n10);
  }
  function Le() {
    var e11;
    null == A2 || A2.removeEventListener("click", ye), be(), document.removeEventListener("mousemove", te), null == S || S.disconnect(), S = void 0;
    for (const e12 of Object.values(R)) null == e12 || e12.destroy();
    R = {};
    for (const n10 of _2) n10.el && n(n10.el) && (n10.state = void 0, Me(n10), xe(n10), ve(n10), n10.isVirtual ? (null === (e11 = n10.el) || void 0 === e11 || e11.remove(), n10.el = void 0) : (n10.el.style.transform = "", null == C2 || C2.appendChild(n10.el)));
    null == x2 || x2.destroy(), x2 = void 0, null == w2 || w2.destroy(), w2 = void 0;
    for (const e12 of Object.values(O2.classes || {})) s4(A2, e12);
    s4(C2, "is-draggable");
  }
  const Pe = { add: function(e11, t10) {
    const n10 = de(e11, t10);
    for (const e12 of n10) Z("addSlide", e12);
    return ne(B), ge(), je(), Pe;
  }, canGoPrev: function() {
    return H || q > 0;
  }, canGoNext: function() {
    return H || q < Y.length - 1;
  }, destroy: function() {
    return Z("destroy"), window.removeEventListener("resize", ee), Le(), W.clear(), A2 = null, Y = [], _2 = [], O2 = Object.assign({}, g2), R = {}, G = [], L2 = "", B = "*", P = 2, Pe;
  }, emit: Z, filter: function(e11 = "*") {
    return ne(e11), ge(), je(), Z("filter", e11), Pe;
  }, getContainer: function() {
    return A2;
  }, getGapDim: le, getGestures: function() {
    return x2;
  }, getLastMouseMove: function() {
    return h2;
  }, getOptions: function() {
    return O2;
  }, getPage: function() {
    return Y[q];
  }, getPageIndex: function(e11) {
    if (void 0 !== e11) {
      for (const t10 of Y || []) for (const n10 of t10.slides) if (n10.index === e11) return t10.index;
      return -1;
    }
    return q;
  }, getPageProgress: function(e11, t10) {
    void 0 === e11 && (e11 = q);
    const n10 = Y[e11];
    if (!n10) return e11 > q ? -1 : 1;
    let i9 = n10.pos;
    const o8 = le(), s10 = Pe.getPosition(), r7 = ce();
    if (H && true !== t10) {
      const e12 = i9 + r7 * Math.floor((s10 - Y[0].pos) / r7);
      i9 = [e12 + r7, e12, e12 - r7].reduce(function(e13, t11) {
        return Math.abs(t11 - s10) < Math.abs(e13 - s10) ? t11 : e13;
      });
    }
    return (s10 - i9) / (n10.dim + o8);
  }, getPageVisibility: function(e11) {
    void 0 === e11 && (e11 = q);
    const t10 = Y[e11];
    if (!t10) return e11 > q ? -1 : 1;
    const n10 = Pe.getPosition(), i9 = ae();
    let o8 = t10.pos;
    if (H) {
      const e12 = Pe.getPosition(), t11 = ce(), n11 = o8 + Math.floor((e12 - Y[0].pos) / t11) * t11;
      o8 = [n11 + t11, n11, n11 - t11].reduce(function(t12, n12) {
        return Math.abs(n12 - e12) < Math.abs(t12 - e12) ? n12 : t12;
      });
    }
    return o8 > n10 && o8 + t10.dim < n10 + i9 ? 1 : o8 < n10 ? (o8 + t10.dim - n10) / t10.dim : o8 + t10.dim > n10 + i9 ? (n10 + i9 - o8) / t10.dim : 0;
  }, getPages: function() {
    return Y;
  }, getPlugins: function() {
    return R;
  }, getPosition: function(e11) {
    var t10;
    let n10 = D2;
    if (H && true !== e11) {
      const e12 = ce();
      n10 -= Math.floor((D2 - (null === (t10 = Y[0]) || void 0 === t10 ? void 0 : t10.pos) || 0) / e12) * e12;
    }
    return n10;
  }, getSlides: function() {
    return _2;
  }, getState: function() {
    return P;
  }, getTotalSlideDim: ce, getTween: function() {
    return w2;
  }, getViewport: function() {
    return C2;
  }, getViewportDim: ae, goTo: Se, hasNavigated: function() {
    return void 0 !== j;
  }, hideError: xe, hideLoading: Me, init: function() {
    if (!v2 || !n(v2)) throw new Error("No Element found");
    return 0 !== P && (Le(), P = 0), A2 = v2, T2 = y2, window.removeEventListener("resize", ee), T2.breakpoints && window.addEventListener("resize", ee), ee(), Pe;
  }, isInfinite: function() {
    return H;
  }, isInTransition: function() {
    return X.size > 0;
  }, isRTL: function() {
    return V;
  }, isSettled: function() {
    return F;
  }, localize: function(e11, t10 = []) {
    return U(e11, t10);
  }, next: function(e11 = {}) {
    return Se(q + 1, e11), Pe;
  }, off: function(e11, t10) {
    for (const n10 of e11 instanceof Array ? e11 : [e11]) W.has(n10) && W.set(n10, W.get(n10).filter((e12) => e12 !== t10));
    return Pe;
  }, on: function(e11, t10) {
    for (const n10 of e11 instanceof Array ? e11 : [e11]) W.set(n10, [...W.get(n10) || [], t10]);
    return Pe;
  }, prev: function(e11 = {}) {
    return Se(q - 1, e11), Pe;
  }, remove: function(e11) {
    void 0 === e11 && (e11 = _2.length - 1);
    const t10 = _2[e11];
    return t10 && (Z("removeSlide", t10), t10.el && (he(t10.el), t10.el.remove(), t10.el = void 0), _2.splice(e11, 1), ne(B), ge(), je()), Pe;
  }, setPosition: function(e11) {
    D2 = e11, ie(), je();
  }, showError: function(e11, t10) {
    Me(e11), xe(e11);
    const n10 = e11.el;
    if (n10) {
      const i9 = document.createElement("div");
      s(i9, "f-html"), s(i9, "is-error"), i9.innerHTML = U(t10 || "<p>{{ERROR}}</p>"), e11.htmlEl = i9, s(n10, "has-html"), s(n10, "has-error"), n10.insertAdjacentElement("afterbegin", i9), Z("contentReady", e11);
    }
    return Pe;
  }, showLoading: function(e11) {
    const t10 = e11.el, n10 = null == t10 ? void 0 : t10.querySelector(".f-spinner");
    if (!t10 || n10) return Pe;
    const i9 = Q("spinnerTpl"), o8 = e(i9);
    return o8 && (s(o8, "f-spinner"), s(t10, "is-loading"), t10.insertAdjacentElement("beforeend", o8)), Pe;
  }, version: "6.0.7" };
  return Pe;
};
E.l10n = { en_EN: o4 }, E.getDefaults = () => g2;

// node_modules/@fancyapps/ui/dist/utils/replaceAll.js
var n5 = function(n10 = "", t10 = "", o8 = "") {
  return n10.split(t10).join(o8);
};

// node_modules/@fancyapps/ui/dist/carousel/carousel.zoomable.js
var i3 = { tpl: (e11) => `<img class="f-panzoom__content" 
    ${e11.srcset ? 'data-lazy-srcset="{{srcset}}"' : ""} 
    ${e11.sizes ? 'data-lazy-sizes="{{sizes}}"' : ""} 
    data-lazy-src="{{src}}" alt="{{alt}}" />` };
var s6 = () => {
  let s10;
  function l6(t10, o8) {
    const n10 = null == s10 ? void 0 : s10.getOptions().Zoomable;
    let a7 = (t(n10) ? Object.assign(Object.assign({}, i3), n10) : i3)[t10];
    return a7 && "function" == typeof a7 && o8 ? a7(o8) : a7;
  }
  function c4() {
    s10 && (s10.on("addSlide", u6), s10.on("removeSlide", f2), s10.on("attachSlideEl", m3), s10.on("click", d2), s10.on("change", r7));
  }
  function r7() {
    g3();
  }
  function d2(e11, t10) {
    const o8 = t10.target;
    o8 && !t10.defaultPrevented && o8.dataset.panzoomAction && p2(o8.dataset.panzoomAction);
  }
  function u6(e11, a7) {
    if (!s10) return;
    const i9 = a7.el;
    if (!i9) return;
    const c5 = a7.src || a7.lazySrc || "", r8 = a7.srcset || a7.lazySrcset || "", d3 = a7.sizes || a7.lazySizes || "";
    if (c5 && t2(c5) && !a7.html && (!a7.type || "image" === a7.type)) {
      let e12 = l6("tpl", a7);
      e12 = n5(e12, "{{src}}", c5 + ""), e12 = n5(e12, "{{srcset}}", r8 + ""), e12 = n5(e12, "{{sizes}}", d3 + ""), e12 = n5(e12, "{{alt}}", `${a7.alt || a7.caption || `Image #${a7.index}`}`), i9.insertAdjacentHTML("afterbegin", e12);
    }
    if (!i9.querySelector(".f-panzoom__content")) return;
    const u7 = a7.width && "auto" !== a7.width ? parseFloat(a7.width + "") : "auto", f3 = a7.height && "auto" !== a7.height ? parseFloat(a7.height + "") : "auto", m4 = w(i9, Object.assign({ width: u7, height: f3, event: () => null == s10 ? void 0 : s10.getLastMouseMove(), classes: { container: "f-zoomable" } }, l6("Panzoom")));
    m4.on("*", (e12, t10, ...o8) => {
      s10 && ("loading" === t10 && (a7.state = 0), "loaded" === t10 && (a7.state = 1), "error" === t10 && (a7.state = 2, null == s10 || s10.showError(a7, "{{IMAGE_ERROR}}")), s10.emit(`panzoom:${t10}`, a7, ...o8), "ready" === t10 && s10.emit("contentReady", a7), a7.index === s10.getPageIndex() && g3());
    }), a7.panzoomRef = m4;
  }
  function f2(e11, t10) {
    t10.panzoomRef && (t10.panzoomRef.destroy(), t10.panzoomRef = void 0);
  }
  function m3(e11, t10) {
    const o8 = t10.panzoomRef;
    if (o8) switch (o8.getState()) {
      case 0:
        o8.init();
        break;
      case 3:
        o8.execute(g.Reset, { velocity: 0 });
    }
  }
  function g3() {
    var e11;
    const t10 = null == s10 ? void 0 : s10.getContainer();
    if (!t10) return;
    const o8 = null === (e11 = null == s10 ? void 0 : s10.getPage()) || void 0 === e11 ? void 0 : e11.slides[0].panzoomRef, n10 = (null == o8 ? void 0 : o8.canZoomIn()) || false, i9 = (null == o8 ? void 0 : o8.canZoomOut()) || false, l7 = (null == o8 ? void 0 : o8.isFullsize()) || false, c5 = !o8 || 3 !== (null == o8 ? void 0 : o8.getState());
    for (const e12 of (null == t10 ? void 0 : t10.querySelectorAll("[data-panzoom-action]")) || []) {
      const t11 = e12.dataset.panzoomAction;
      let o9 = false;
      if (c5) o9 = true;
      else switch (t11) {
        case g.ZoomIn:
          n10 || (o9 = true);
          break;
        case g.ZoomOut:
          i9 || (o9 = true);
          break;
        case g.ToggleFull:
          n10 || i9 || (o9 = true);
          const t12 = e12.querySelector("g");
          t12 && (t12.style.display = l7 ? "none" : "");
          break;
        case g.ToggleCover:
        case g.ToggleMax:
          n10 || i9 || (o9 = true);
      }
      o9 ? (e12.setAttribute("aria-disabled", ""), e12.setAttribute("tabindex", "-1")) : (e12.removeAttribute("aria-disabled"), e12.removeAttribute("tabindex"));
    }
  }
  function p2(e11, ...t10) {
    var o8;
    null === (o8 = null == s10 ? void 0 : s10.getPage().slides[0].panzoomRef) || void 0 === o8 || o8.execute(e11, ...t10);
  }
  return { init: function(e11) {
    s10 = e11, false !== s10.getOptions().Zoomable && s10.on("initPlugins", c4);
  }, destroy: function() {
    if (s10) {
      s10.off("addSlide", u6), s10.off("removeSlide", f2), s10.off("attachSlideEl", m3), s10.off("change", r7);
      for (const e11 of s10.getSlides()) f2(0, e11);
    }
    s10 = void 0;
  }, execute: p2 };
};

// node_modules/@fancyapps/ui/dist/carousel/carousel.sync.js
var e8 = { syncOnChange: false, syncOnClick: true, syncOnHover: false };
var i4 = () => {
  let i9, t10;
  function o8() {
    const t11 = null == i9 ? void 0 : i9.getOptions().Sync;
    return t(t11) ? Object.assign(Object.assign({}, e8), t11) : e8;
  }
  function s10(n10) {
    var e11, s11, l7;
    i9 && n10 && (t10 = n10, i9.getOptions().classes = Object.assign(Object.assign({}, i9.getOptions().classes), { isSelected: "" }), i9.getOptions().initialSlide = (null === (s11 = null === (e11 = t10.getPage()) || void 0 === e11 ? void 0 : e11.slides[0]) || void 0 === s11 ? void 0 : s11.index) || 0, o8().syncOnChange && i9.on("change", c4), o8().syncOnClick && i9.on("click", g3), o8().syncOnHover && (null === (l7 = i9.getViewport()) || void 0 === l7 || l7.addEventListener("mouseover", u6)), function() {
      if (!i9 || !t10) return;
      i9.on("ready", d2), i9.on("refresh", a7), t10.on("change", r7), t10.on("filter", f2);
    }());
  }
  function l6() {
    const n10 = o8().target;
    i9 && n10 && s10(n10);
  }
  function d2() {
    v2();
  }
  function c4() {
    var n10;
    if (i9 && t10) {
      const e11 = (null === (n10 = i9.getPage()) || void 0 === n10 ? void 0 : n10.slides) || [], o9 = t10.getPageIndex(e11[0].index || 0);
      o9 > -1 && t10.goTo(o9, i9.hasNavigated() ? void 0 : { tween: false, transition: false }), v2();
    }
  }
  function r7() {
    var n10;
    if (i9 && t10) {
      const e11 = i9.getPageIndex((null === (n10 = t10.getPage()) || void 0 === n10 ? void 0 : n10.slides[0].index) || 0);
      e11 > -1 && i9.goTo(e11, t10.hasNavigated() ? void 0 : { tween: false, transition: false }), v2();
    }
  }
  function g3(n10, e11) {
    var o9;
    if (!i9 || !t10) return;
    if (null === (o9 = i9.getTween()) || void 0 === o9 ? void 0 : o9.isRunning()) return;
    const s11 = null == i9 ? void 0 : i9.getOptions().classes.slide;
    if (!s11) return;
    const l7 = s11 ? e11.target.closest(`.${s11}`) : null;
    if (l7) {
      const n11 = parseInt(l7.getAttribute("index") || "") || 0, e12 = t10.getPageIndex(n11);
      t10.goTo(e12);
    }
  }
  function u6(n10) {
    i9 && g3(0, n10);
  }
  function a7() {
    var n10;
    if (i9 && t10) {
      const e11 = i9.getPageIndex((null === (n10 = t10.getPage()) || void 0 === n10 ? void 0 : n10.slides[0].index) || 0);
      e11 > -1 && i9.goTo(e11, { tween: false, transition: false }), v2();
    }
  }
  function f2(n10, e11) {
    i9 && t10 && (i9.filter(e11), r7());
  }
  function v2() {
    var n10, e11, o9;
    if (!t10) return;
    const s11 = (null === (e11 = null === (n10 = t10.getPage()) || void 0 === n10 ? void 0 : n10.slides[0]) || void 0 === e11 ? void 0 : e11.index) || 0;
    for (const n11 of (null == i9 ? void 0 : i9.getSlides()) || []) null === (o9 = n11.el) || void 0 === o9 || o9.classList.toggle("is-selected", n11.index === s11);
  }
  return { init: function(n10) {
    i9 = n10, i9.on("initSlides", l6);
  }, destroy: function() {
    var n10;
    null == i9 || i9.off("ready", d2), null == i9 || i9.off("refresh", a7), null == i9 || i9.off("change", c4), null == i9 || i9.off("click", g3), null === (n10 = null == i9 ? void 0 : i9.getViewport()) || void 0 === n10 || n10.removeEventListener("mouseover", u6), null == t10 || t10.off("change", r7), null == t10 || t10.off("filter", f2), t10 = void 0, null == i9 || i9.off("initSlides", l6), i9 = void 0;
  }, getTarget: function() {
    return t10;
  } };
};

// node_modules/@fancyapps/ui/dist/carousel/carousel.lazyload.js
var a3 = { showLoading: true, preload: 1 };
var t7 = "is-lazyloading";
var s7 = "is-lazyloaded";
var l = () => {
  let l6;
  function n10() {
    const t10 = null == l6 ? void 0 : l6.getOptions().Lazyload;
    return t(t10) ? Object.assign(Object.assign({}, a3), t10) : a3;
  }
  function o8(e11) {
    const a7 = e11.el;
    if (!a7) return;
    const o9 = "[data-lazy-src],[data-lazy-srcset],[data-lazy-bg]", d3 = Array.from(a7.querySelectorAll(o9));
    a7.matches(o9) && d3.push(a7);
    for (const a8 of d3) {
      const o10 = a8.dataset.lazySrc, d4 = a8.dataset.lazySrcset, i10 = a8.dataset.lazySizes, c4 = a8.dataset.lazyBg, r7 = (a8 instanceof HTMLImageElement || a8 instanceof HTMLSourceElement) && (o10 || d4), f2 = a8 instanceof HTMLElement && c4;
      if (!r7 && !f2) continue;
      const u6 = o10 || d4 || c4;
      if (u6) {
        if (r7 && u6) n10().showLoading && (null == l6 || l6.showLoading(e11)), a8.addEventListener("load", () => {
          null == l6 || l6.hideLoading(e11), a8 instanceof HTMLImageElement ? a8.decode().then(() => {
            a8.classList.remove(t7), a8.classList.add(s7);
          }) : (a8.classList.remove(t7), a8.classList.add(s7)), null == l6 || l6.emit("lazyLoad:loaded", e11, a8, u6);
        }), a8.addEventListener("error", () => {
          null == l6 || l6.hideLoading(e11), a8.classList.remove(t7), a8.classList.add("has-lazyerror"), null == l6 || l6.emit("lazyLoad:error", e11, a8, u6);
        }), a8.classList.add("f-lazyload"), a8.classList.add(t7), null == l6 || l6.emit("lazyLoad:load", e11, a8, u6), o10 && (a8.src = o10), d4 && (a8.srcset = d4), i10 && (a8.sizes = i10);
        else if (f2) {
          if (!document.body.contains(a8)) {
            document.createElement("img").src = c4;
          }
          a8.style.backgroundImage = `url('${c4}')`;
        }
        delete a8.dataset.lazySrc, delete a8.dataset.lazySrcset, delete a8.dataset.lazySizes;
      }
    }
  }
  function d2() {
    var e11;
    if (!l6) return;
    const a7 = n10().preload, t10 = l6.getPages(), s10 = t10.length, d3 = l6.getPageIndex();
    for (let l7 = d3 - a7; l7 <= d3 + a7; l7++) {
      const a8 = (l7 % s10 + s10) % s10;
      for (const s11 of (null === (e11 = t10[a8]) || void 0 === e11 ? void 0 : e11.slides) || []) o8(s11);
    }
  }
  function i9(e11, a7) {
    o8(a7);
  }
  return { init: function(e11) {
    l6 = e11, l6.on(["ready", "change"], d2), l6.on("attachSlideEl", i9);
  }, destroy: function() {
    null == l6 || l6.off(["ready", "change"], d2), null == l6 || l6.off("attachSlideEl", i9), l6 = void 0;
  } };
};

// node_modules/@fancyapps/ui/dist/carousel/carousel.arrows.js
var o5 = { prevTpl: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"></path></svg>', nextTpl: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"></path></svg>' };
var r4 = () => {
  let r7, i9, s10;
  function l6(n10) {
    if (!r7) return;
    const i10 = `<button data-carousel-go-${n10} tabindex="0" class="f-button is-arrow is-${n10}" title="{{${n10.toUpperCase()}}}">` + function() {
      const e11 = null == r7 ? void 0 : r7.getOptions().Arrows;
      return t(e11) ? Object.assign(Object.assign({}, o5), e11) : o5;
    }()[`${n10}Tpl`] + "</button";
    return e(r7.localize(i10)) || void 0;
  }
  function a7() {
    var t10;
    null == i9 || i9.remove(), i9 = void 0, null == s10 || s10.remove(), s10 = void 0, null === (t10 = null == r7 ? void 0 : r7.getContainer()) || void 0 === t10 || t10.classList.remove("has-arrows");
  }
  function u6() {
    r7 && false !== r7.getOptions().Arrows && r7.getPages().length > 1 ? (!function() {
      if (!r7) return;
      const t10 = r7.getViewport();
      t10 && (i9 || (i9 = l6("prev"), i9 && t10.insertAdjacentElement("beforebegin", i9)), s10 || (s10 = l6("next"), s10 && t10.insertAdjacentElement("afterend", s10)), s5(r7.getContainer(), "has-arrows", !(!i9 && !s10)));
    }(), r7 && (null == i9 || i9.toggleAttribute("aria-disabled", !r7.canGoPrev()), null == s10 || s10.toggleAttribute("aria-disabled", !r7.canGoNext()))) : a7();
  }
  return { init: function(t10) {
    r7 = t10.on(["change", "refresh"], u6);
  }, destroy: function() {
    a7(), null == r7 || r7.off(["change", "refresh"], u6), r7 = void 0;
  } };
};

// node_modules/@fancyapps/ui/dist/shared/buttons.js
var t8 = { moveLeft: { tpl: '<button data-panzoom-action="moveLeft" class="f-button" title="{{MOVE_LEFT}}"><svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg></button>' }, moveRight: { tpl: '<button data-panzoom-action="moveRight" class="f-button" title="{{MOVE_RIGHT}}"><svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg></button>' }, moveUp: { tpl: '<button data-panzoom-action="moveUp" class="f-button" title="{{MOVE_UP}}"><svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg></button>' }, moveDown: { tpl: '<button data-panzoom-action="moveDown" class="f-button" title="{{MOVE_DOWN}}"><svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg></button>' }, zoomIn: { tpl: '<button data-panzoom-action="zoomIn" class="f-button" title="{{ZOOM_IN}}"><svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg></button>' }, zoomOut: { tpl: '<button data-panzoom-action="zoomOut" class="f-button" title="{{ZOOM_OUT}}"><svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg></button>' }, toggle1to1: { tpl: '<button data-panzoom-action="toggleFull" class="f-button" title="{{TOGGLE_FULL}}"><svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg></button>' }, toggleFull: { tpl: '<button data-panzoom-action="toggleFull" class="f-button" title="{{TOGGLE_FULL}}"><svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg></button>' }, rotateCCW: { tpl: '<button data-panzoom-action="rotateCCW" class="f-button" title="{{ROTATE_CCW}}"><svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg></button>' }, rotateCW: { tpl: '<button data-panzoom-action="rotateCW" class="f-button" title="{{ROTATE_CW}}"><svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg></button>' }, flipX: { tpl: '<button data-panzoom-action="flipX" class="f-button" title="{{FLIP_X}}"><svg><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg></button>' }, flipY: { tpl: '<button data-panzoom-action="flipY" class="f-button" title="{{FLIP_Y}}"><svg><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg></button>' }, reset: { tpl: '<button data-panzoom-action="reset" class="f-button" title="{{RESET}}"><svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg></button>' } };

// node_modules/@fancyapps/ui/dist/carousel/carousel.toolbar.js
var i5;
!function(t10) {
  t10.Left = "left", t10.middle = "middle", t10.right = "right";
}(i5 || (i5 = {}));
var s8 = Object.assign({ counter: { tpl: '<div class="f-carousel__counter"><span data-carousel-page></span>/<span data-carousel-pages></span></div>' }, download: { tpl: '<button data-carousel-download class="f-button" title="{{DOWNLOAD}}"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></button>' }, autoplay: { tpl: '<button data-autoplay-action="toggle" class="f-button" title="{{TOGGLE_AUTOPLAY}}"><svg><g><path d="M5 3.5 19 12 5 20.5Z"/></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>' }, thumbs: { tpl: '<button data-thumbs-action="toggle" class="f-button" title="{{TOGGLE_THUMBS}}"><svg><rect width="18" height="14" x="3" y="3" rx="2"/><path d="M4 21h1M9 21h1M14 21h1M19 21h1"/></svg></button>' } }, t8);
var a4 = { absolute: false, display: { left: [], middle: ["zoomIn", "zoomOut", "toggle1to1", "rotateCCW", "rotateCW", "flipX", "flipY", "reset"], right: [] }, enabled: "auto", items: {} };
var u3 = () => {
  let i9, u6;
  function d2() {
    const e11 = null == i9 ? void 0 : i9.getOptions().Toolbar;
    return t(e11) ? Object.assign(Object.assign({}, a4), e11) : a4;
  }
  function r7() {
    var t10, a7, r8;
    if (!(null == i9 ? void 0 : i9.getOptions().Toolbar)) return;
    if (!i9 || u6) return;
    let c4 = d2().enabled;
    if (!c4) return;
    let f2 = d2().absolute;
    const g3 = i9.getSlides().length > 1;
    let p2 = false, b3 = false;
    for (const t11 of i9.getSlides()) t11.panzoomRef && (p2 = true), (t11.downloadSrc || "image" === t11.type && t11.src) && (b3 = true);
    let m3 = (null === (t10 = i9.getPlugins().Thumbs) || void 0 === t10 ? void 0 : t10.isEnabled()) || false, v2 = g3 && i9.getPlugins().Autoplay || false, h3 = i9.getPlugins().Fullscreen && (document.fullscreenEnabled || document.webkitFullscreenEnabled);
    if ("auto" === c4 && (c4 = p2), !c4) return;
    u6 = document.createElement("div"), u6.classList.add("f-carousel__toolbar");
    const j = d2().display, y2 = r({}, s8, d2().items);
    for (const t11 of ["left", "middle", "right"]) {
      const l6 = j[t11] || [], s10 = document.createElement("div");
      s10.classList.add("f-carousel__toolbar__column"), s10.classList.add(`is-${t11}`);
      for (const t12 of l6) {
        let l7;
        if (t2(t12)) {
          if ("counter" === t12 && !g3) continue;
          if ("autoplay" === t12 && !v2) continue;
          if (t8[t12] && !p2) continue;
          if ("fullscreen" === t12 && !h3) continue;
          if ("thumbs" === t12 && !m3) continue;
          if ("download" === t12 && !b3) continue;
          l7 = y2[t12];
        }
        if ("object" == typeof t12 && (l7 = t12), l7 && l7.tpl) {
          let t13 = i9.localize(l7.tpl);
          t13 = t13.split("<svg>").join('<svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24">');
          const e11 = e(t13);
          e11 && ("function" == typeof l7.click && i9 && e11.addEventListener("click", (t14) => {
            t14.preventDefault(), t14.stopPropagation(), "function" == typeof l7.click && i9 && l7.click(i9, t14);
          }), s10.append(e11));
        }
      }
      u6.append(s10);
    }
    u6.childElementCount && (true === f2 && u6.classList.add("is-absolute"), null === (a7 = i9.getContainer()) || void 0 === a7 || a7.classList.add("has-toolbar"), null === (r8 = i9.getViewport()) || void 0 === r8 || r8.insertAdjacentElement("beforebegin", u6));
  }
  return { init: function(t10) {
    i9 = t10, i9.on("initSlides", r7);
  }, destroy: function() {
    var t10;
    null == i9 || i9.off("initSlides", r7), null === (t10 = null == i9 ? void 0 : i9.getContainer()) || void 0 === t10 || t10.classList.remove("has-toolbar"), null == u6 || u6.remove(), u6 = void 0;
  }, add: function(t10, e11) {
    s8[t10] = e11;
  }, isEnabled: function() {
    return !!u6;
  } };
};

// node_modules/@fancyapps/ui/dist/carousel/carousel.autoplay.js
var e9 = { autoStart: true, pauseOnHover: true, showProgressbar: true, timeout: 2e3 };
var n6 = () => {
  let n10, o8, i9 = false, a7 = false, l6 = false, s10 = null;
  function r7(o9) {
    const i10 = null == n10 ? void 0 : n10.getOptions().Autoplay;
    let a8 = (t(i10) ? Object.assign(Object.assign({}, e9), i10) : e9)[o9];
    return a8 && "function" == typeof a8 && n10 ? a8(n10) : a8;
  }
  function u6() {
    var t10;
    const e11 = (null === (t10 = null == n10 ? void 0 : n10.getPage()) || void 0 === t10 ? void 0 : t10.slides) || [];
    for (const t11 of e11) if (0 === t11.state) return true;
    return false;
  }
  function d2() {
    clearTimeout(o8), o8 = void 0;
  }
  function g3() {
    if (o8) return;
    if (l6) return;
    if (u6()) return;
    if (!(null == n10 ? void 0 : n10.isSettled())) return;
    !function() {
      var t11, e11, o9, i10;
      if (!n10) return;
      if (v2(), !r7("showProgressbar")) return;
      let a8 = r7("progressbarParentEl");
      !a8 && (null === (t11 = n10.getPlugins().Toolbar) || void 0 === t11 ? void 0 : t11.isEnabled()) && (a8 = n10.getContainer());
      if (!a8 && true !== (null === (e11 = n10.getPlugins().Toolbar) || void 0 === e11 ? void 0 : e11.isEnabled())) {
        const t12 = (null === (o9 = n10.getPages()[0]) || void 0 === o9 ? void 0 : o9.slides) || [], e12 = (null === (i10 = n10.getPage()) || void 0 === i10 ? void 0 : i10.slides) || [];
        1 === t12.length && 1 === e12.length && (a8 = e12[0].el);
      }
      a8 || (a8 = n10.getViewport());
      if (!a8) return;
      s10 = document.createElement("div"), s10.classList.add("f-progressbar"), a8.prepend(s10);
      const l7 = r7("timeout") || 1e3;
      s10.style.animationDuration = `${l7}ms`;
    }();
    const t10 = r7("timeout");
    o8 = setTimeout(() => {
      n10 && i9 && !a7 && (n10.isInfinite() || n10.getPageIndex() !== n10.getPages().length - 1 ? n10.next() : n10.goTo(0));
    }, t10);
  }
  function f2() {
    var t10, e11;
    if (!n10 || n10.getPages().length < 2 || false === n10.getOptions().Autoplay) return;
    if (i9) return;
    i9 = true, n10.emit("autoplay:start", r7("timeout")), null === (t10 = n10.getContainer()) || void 0 === t10 || t10.classList.add("has-autoplay"), null === (e11 = n10.getTween()) || void 0 === e11 || e11.on("start", b3);
    const o9 = null == n10 ? void 0 : n10.getContainer();
    o9 && r7("pauseOnHover") && matchMedia("(hover: hover)").matches && (o9.addEventListener("mouseenter", E2, false), o9.addEventListener("mouseleave", x2, false)), n10.on("change", h3), n10.on("settle", y2), n10.on("contentReady", p2), n10.on("panzoom:animationStart", c4), n10.isSettled() && g3();
  }
  function c4() {
    var t10, e11;
    if (d2(), v2(), i9 && n10) {
      n10.emit("autoplay:end"), null === (t10 = n10.getContainer()) || void 0 === t10 || t10.classList.remove("has-autoplay"), null === (e11 = n10.getTween()) || void 0 === e11 || e11.off("start", b3);
      const o9 = null == n10 ? void 0 : n10.getContainer();
      o9 && (o9.removeEventListener("mouseenter", E2, false), o9.removeEventListener("mouseleave", x2, false));
    }
    n10 && (n10.off("change", h3), n10.off("settle", y2), n10.off("contentReady", p2), n10.off("panzoom:animationStart", c4)), i9 = false, a7 = false;
  }
  function v2() {
    s10 && (s10.remove(), s10 = null);
  }
  function m3() {
    n10 && n10.getPages().length > 1 && r7("autoStart") && f2();
  }
  function p2(t10) {
    n10 && n10.getPageIndex(t10.index) === n10.getPageIndex() && (!i9 || l6 || u6() || g3());
  }
  function P(t10, e11) {
    const n11 = e11.target;
    n11 && !e11.defaultPrevented && "toggle" === n11.dataset.autoplayAction && L2.toggle();
  }
  function h3() {
    !n10 || !(null == n10 ? void 0 : n10.isInfinite()) && n10.getPageIndex() === n10.getPages().length - 1 ? c4() : (v2(), d2());
  }
  function y2() {
    !i9 || l6 || a7 || g3();
  }
  function b3() {
    d2(), v2();
  }
  function E2() {
    l6 = true, i9 && (v2(), d2());
  }
  function x2() {
    l6 = false, i9 && !a7 && (null == n10 ? void 0 : n10.isSettled()) && g3();
  }
  const L2 = { init: function(t10) {
    n10 = t10, n10.on("ready", m3), n10.on("click", P);
  }, destroy: function() {
    c4(), null == n10 || n10.off("ready", m3), null == n10 || n10.off("click", P), n10 = void 0;
  }, isEnabled: () => i9, pause: function() {
    a7 = true, d2();
  }, resume: function() {
    a7 = false, i9 && !l6 && g3();
  }, start() {
    f2();
  }, stop() {
    c4();
  }, toggle() {
    i9 ? c4() : f2();
  } };
  return L2;
};

// node_modules/@fancyapps/ui/dist/carousel/carousel.thumbs.js
var l2 = { Carousel: { Lazyload: { showLoading: false } }, minCount: 2, showOnStart: true, thumbTpl: '<button aria-label="Slide to #{{page}}"><img draggable="false" alt="{{alt}}" data-lazy-src="{{src}}" /></button>', type: "modern" };
var r5;
var u4 = () => {
  let u6, a7, c4, d2 = 0, f2 = 0, g3 = true;
  function m3(e11) {
    const n10 = null == u6 ? void 0 : u6.getOptions().Thumbs;
    let i9 = (t(n10) ? Object.assign(Object.assign({}, l2), n10) : l2)[e11];
    return i9 && "function" == typeof i9 ? i9() : i9;
  }
  function h3() {
    if (!u6) return false;
    if (false === (null == u6 ? void 0 : u6.getOptions().Thumbs)) return false;
    let t10 = 0;
    for (const e11 of u6.getSlides()) e11.thumbSrc && t10++;
    return t10 >= m3("minCount");
  }
  function p2() {
    return "modern" === m3("type");
  }
  function v2(t10 = false) {
    const e11 = null == u6 ? void 0 : u6.getContainer();
    if (u6 && e11 && !c4 && h3()) {
      if (!c4) {
        const t11 = e11.nextElementSibling;
        (null == t11 ? void 0 : t11.classList.contains("f-thumbs")) && (c4 = t11);
      }
      if (!c4) {
        c4 = document.createElement("div"), c4.classList.add("f-thumbs");
        const t11 = m3("parentEl");
        t11 ? t11.insertAdjacentElement("beforeend", c4) : e11.insertAdjacentElement("afterend", c4);
      }
      c4.classList.add(`is-${m3("type")}`), c4.classList.add("is-syncing"), t10 && (c4.style.maxHeight = "0px");
    }
  }
  function b3() {
    var t10, i9;
    if (!r5) return;
    if (!u6 || !c4 || a7) return;
    const h4 = [];
    for (const t11 of u6.getSlides()) {
      let e11 = t11.thumb ? t11.thumb instanceof HTMLImageElement ? t11.thumb.src : t11.thumb : t11.thumbSrc || void 0, i10 = m3("thumbTpl");
      i10 = n5(i10, "{{alt}}", `Thumbnail #${t11.index}`), i10 = n5(i10, "{{src}}", e11 + ""), i10 = n5(i10, "{{index}}", `${t11.index}`), i10 = n5(i10, "{{page}}", `${t11.index || 1}`), h4.push({ html: i10 });
    }
    h4.length && (a7 = r5(c4, r({}, { Sync: { target: u6 }, Lazyload: { preload: 1 }, slides: h4, classes: { container: "f-thumbs", viewport: "f-thumbs__viewport", slide: "f-thumbs__slide" }, initialSlide: u6.getOptions().initialPage, center: true, fill: !p2(), infinite: false, dragFree: true, rtl: u6.getOptions().rtl || false, slidesPerPage: (t11) => {
      let e11 = 0;
      return p2() && (!function() {
        if (!p2()) return;
        if (!c4) return;
        const t12 = (t13) => c4 && parseFloat(getComputedStyle(c4).getPropertyValue("--f-thumb-" + t13)) || 0;
        d2 = t12("width"), f2 = t12("clip-width");
      }(), e11 = 4 * (d2 - f2)), t11 && t11.getTotalSlideDim() <= t11.getViewportDim() - e11 ? 1 / 0 : 1;
    } }, l2.Carousel || {}, m3("Carousel") || {}), { Sync: i4, Lazyload: l }).init(), null === (t10 = a7.getGestures()) || void 0 === t10 || t10.on("start", () => {
      g3 = false;
    }), a7.on("click", (t11, e11) => {
      const n10 = e11.target;
      if (n10) {
        const t12 = n10.matches("button") ? n10 : n10.firstElementChild;
        t12 && t12.matches("button") && t12.focus({});
      }
    }), null === (i9 = u6.getContainer()) || void 0 === i9 || i9.classList.add("has-thumbs"), C2());
  }
  function y2() {
    var t10;
    h3() && (null === (t10 = null == u6 ? void 0 : u6.getGestures()) || void 0 === t10 || t10.on("start", x2), m3("showOnStart") && (v2(), b3()));
  }
  function x2() {
    var t10, e11;
    g3 = true;
    (null === (t10 = document.activeElement) || void 0 === t10 ? void 0 : t10.closest(".f-thumbs")) && (null === (e11 = document.activeElement) || void 0 === e11 || e11.blur());
  }
  function P() {
    var t10, e11;
    null == c4 || c4.classList.toggle("is-syncing", false === (null == u6 ? void 0 : u6.hasNavigated()) || (null === (t10 = null == u6 ? void 0 : u6.getTween()) || void 0 === t10 ? void 0 : t10.isRunning())), C2(), (null === (e11 = null == u6 ? void 0 : u6.getGestures()) || void 0 === e11 ? void 0 : e11.isPointerDown()) && function() {
      if (!p2()) return;
      if (!u6 || !a7) return;
      if (!g3) return;
      const t11 = a7.getTween(), e12 = a7.getPages(), n10 = u6.getPageIndex() || 0, o8 = u6.getPageProgress() || 0;
      if (!(u6 && e12 && e12[n10] && t11)) return;
      const s10 = t11.isRunning() ? t11.getCurrentValues().pos : a7.getPosition();
      if (void 0 === s10) return;
      let l6 = e12[n10].pos + o8 * (d2 - f2);
      l6 = t4(e12[0].pos, l6, e12[e12.length - 1].pos), t11.from({ pos: s10 }).to({ pos: l6 }).start();
    }();
  }
  function S() {
    g3 = true;
  }
  function L2(t10, e11) {
    const n10 = e11.target;
    n10 && !e11.defaultPrevented && "toggle" === n10.dataset.thumbsAction && function() {
      if (c4 || (v2(true), b3()), !c4) return;
      const t11 = c4.style.maxHeight;
      c4.style.maxHeight = t11 ? "" : "0px";
    }();
  }
  function C2() {
    if (!p2()) return;
    if (!u6 || !a7) return;
    const t10 = (null == a7 ? void 0 : a7.getSlides()) || [];
    let e11 = -0.5 * d2;
    for (const n10 of t10) {
      const t11 = n10.el;
      if (!t11) continue;
      let i9 = u6.getPageProgress(n10.index) || 0;
      i9 = Math.max(-1, Math.min(1, i9)), i9 > -1 && i9 < 1 && (e11 += 0.5 * d2 * (1 - Math.abs(i9))), i9 = Math.round(1e4 * i9) / 1e4, e11 = Math.round(1e4 * e11) / 1e4, t11.style.setProperty("--progress", `${Math.abs(i9)}`), t11.style.setProperty("--shift", `${(null == u6 ? void 0 : u6.isRTL()) ? -1 * e11 : e11}px`), i9 > -1 && i9 < 1 && (e11 += 0.5 * d2 * (1 - Math.abs(i9)));
    }
  }
  return { init: function(t10, e11) {
    r5 = e11, u6 = t10, u6.on("ready", y2), u6.on("render", P), u6.on("change", S), u6.on("click", L2);
  }, destroy: function() {
    var t10, e11;
    null == u6 || u6.off("ready", y2), null == u6 || u6.off("render", P), null == u6 || u6.off("change", S), null == u6 || u6.off("click", L2), null === (t10 = null == u6 ? void 0 : u6.getGestures()) || void 0 === t10 || t10.off("start", x2), null === (e11 = null == u6 ? void 0 : u6.getContainer()) || void 0 === e11 || e11.classList.remove("has-thumbs"), u6 = void 0, null == a7 || a7.destroy(), a7 = void 0, null == c4 || c4.remove(), c4 = void 0;
  }, getContainer: function() {
    return c4;
  }, isEnabled: function() {
    return h3();
  } };
};

// node_modules/@fancyapps/ui/dist/carousel/carousel.html.js
var a5 = { iframeAttr: { allow: "autoplay; fullscreen", scrolling: "auto", credentialless: "" } };
var i6 = () => {
  let i9;
  function l6(t10, a7) {
    let i10 = a7.src;
    if (!t2(i10)) return;
    let l7 = a7.type;
    if (!l7) {
      if (l7 || ("#" === i10.charAt(0) ? l7 = "inline" : i10.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.((a)?png|avif|gif|jp(g|eg)|pjp(eg)?|jfif|svg|webp|bmp|ico|tif(f)?)((\?|#).*)?$)/i) ? l7 = "image" : i10.match(/\.(pdf)((\?|#).*)?$/i) ? l7 = "pdf" : i10.match(/\.(html|php)((\?|#).*)?$/i) && (l7 = "iframe")), !l7) {
        const t11 = i10.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i);
        t11 && (i10 = `https://maps.google.${t11[1]}/?ll=${(t11[2] ? t11[2] + "&z=" + Math.floor(parseFloat(t11[3])) + (t11[4] ? t11[4].replace(/^\//, "&") : "") : t11[4] + "").replace(/\?/, "&")}&output=${t11[4] && t11[4].indexOf("layer=c") > 0 ? "svembed" : "embed"}`, l7 = "gmap");
      }
      if (!l7) {
        const t11 = i10.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i);
        t11 && (i10 = `https://maps.google.${t11[1]}/maps?q=${t11[2].replace("query=", "q=").replace("api=1", "")}&output=embed`, l7 = "gmap");
      }
      a7.src = i10, a7.type = l7;
    }
  }
  function o8(e11, l7) {
    "iframe" !== l7.type && "pdf" !== l7.type && "gmap" !== l7.type || function(e12) {
      if (!i9 || !e12.el || !e12.src) return;
      const l8 = document.createElement("iframe");
      l8.classList.add("f-iframe");
      for (const [e13, o10] of Object.entries(function() {
        const e14 = null == i9 ? void 0 : i9.getOptions().Html;
        return t(e14) ? Object.assign(Object.assign({}, a5), e14) : a5;
      }().iframeAttr || {})) l8.setAttribute(e13, o10);
      l8.onerror = () => {
        i9 && 1 === i9.getState() && i9.showError(e12, "{{IFRAME_ERROR}}");
      }, l8.src = e12.src;
      const o9 = document.createElement("div");
      if (o9.classList.add("f-html"), o9.append(l8), e12.width) {
        let t10 = `${e12.width}`;
        t10.match(/^\d+$/) && (t10 += "px"), o9.style.maxWidth = `${t10}`;
      }
      if (e12.height) {
        let t10 = `${e12.height}`;
        t10.match(/^\d+$/) && (t10 += "px"), o9.style.maxHeight = `${t10}`;
      }
      if (e12.aspectRatio) {
        const t10 = e12.el.getBoundingClientRect();
        o9.style.aspectRatio = `${e12.aspectRatio}`, o9.style[t10.width > t10.height ? "width" : "height"] = "auto", o9.style[t10.width > t10.height ? "maxWidth" : "maxHeight"] = "none";
      }
      e12.contentEl = l8, e12.htmlEl = o9, e12.el.classList.add("has-html"), e12.el.classList.add("has-iframe"), e12.el.classList.add(`has-${e12.type}`), e12.el.prepend(o9), i9.emit("contentReady", e12);
    }(l7);
  }
  function s10(t10, e11) {
    var a7, l7;
    "iframe" !== e11.type && "pdf" !== e11.type && "gmap" !== e11.type || (null == i9 || i9.hideError(e11), null === (a7 = e11.contentEl) || void 0 === a7 || a7.remove(), e11.contentEl = void 0, null === (l7 = e11.htmlEl) || void 0 === l7 || l7.remove(), e11.htmlEl = void 0);
  }
  return { init: function(t10) {
    i9 = t10, i9.on("addSlide", l6), i9.on("attachSlideEl", o8), i9.on("detachSlideEl", s10);
  }, destroy: function() {
    null == i9 || i9.off("addSlide", l6), null == i9 || i9.off("attachSlideEl", o8), null == i9 || i9.off("detachSlideEl", s10), i9 = void 0;
  } };
};

// node_modules/@fancyapps/ui/dist/carousel/carousel.video.js
var n7 = (t10, e11 = {}) => {
  const o8 = new URL(t10), n10 = new URLSearchParams(o8.search), i9 = new URLSearchParams();
  for (const [t11, o9] of [...n10, ...Object.entries(e11)]) {
    let e12 = o9 + "";
    if ("t" === t11) {
      let t12 = e12.match(/((\d*)m)?(\d*)s?/);
      t12 && i9.set("start", 60 * parseInt(t12[2] || "0") + parseInt(t12[3] || "0") + "");
    } else i9.set(t11, e12);
  }
  let l6 = i9 + "", s10 = t10.match(/#t=((.*)?\d+s)/);
  return s10 && (l6 += `#t=${s10[1]}`), l6;
};
var i7 = { autoplay: false, html5videoTpl: `<video class="f-html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">
    <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`, iframeAttr: { allow: "autoplay; fullscreen", scrolling: "auto", credentialless: "" }, vimeo: { byline: 1, color: "00adef", controls: 1, dnt: 1, muted: 0 }, youtube: { controls: 1, enablejsapi: 1, nocookie: 1, rel: 0, fs: 1 } };
var l3 = () => {
  let l6, s10 = false;
  function a7() {
    const e11 = null == l6 ? void 0 : l6.getOptions().Video;
    return t(e11) ? Object.assign(Object.assign({}, i7), e11) : i7;
  }
  function r7() {
    var t10;
    return null === (t10 = null == l6 ? void 0 : l6.getPage()) || void 0 === t10 ? void 0 : t10.slides[0];
  }
  const c4 = (t10) => {
    var e11;
    try {
      let o8 = JSON.parse(t10.data);
      if ("https://player.vimeo.com" === t10.origin) {
        if ("ready" === o8.event) for (let o9 of Array.from((null === (e11 = null == l6 ? void 0 : l6.getContainer()) || void 0 === e11 ? void 0 : e11.getElementsByClassName("f-iframe")) || [])) o9 instanceof HTMLIFrameElement && o9.contentWindow === t10.source && (o9.dataset.ready = "true");
      } else if (t10.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/) && "onReady" === o8.event) {
        const t11 = document.getElementById(o8.id);
        t11 && (t11.dataset.ready = "true");
      }
    } catch (t11) {
    }
  };
  function d2(t10, o8) {
    const i9 = o8.src;
    if (!t2(i9)) return;
    let l7 = o8.type;
    if (!l7 || "html5video" === l7) {
      const t11 = i9.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i);
      t11 && (l7 = "html5video", o8.html5videoFormat = o8.html5videoFormat || "video/" + ("ogv" === t11[1] ? "ogg" : t11[1]));
    }
    if (!l7 || "youtube" === l7) {
      const t11 = i9.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i);
      if (t11) {
        const e11 = Object.assign(Object.assign({}, a7().youtube), o8.youtube || {}), s11 = `www.youtube${e11.nocookie ? "-nocookie" : ""}.com`, r8 = n7(i9, e11), c5 = encodeURIComponent(t11[2]);
        o8.videoId = c5, o8.src = `https://${s11}/embed/${c5}?${r8}`, o8.thumb = o8.thumb || `https://i.ytimg.com/vi/${c5}/mqdefault.jpg`, l7 = "youtube";
      }
    }
    if (!l7 || "vimeo" === l7) {
      const t11 = i9.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/);
      if (t11) {
        const e11 = Object.assign(Object.assign({}, a7().vimeo), o8.vimeo || {}), s11 = n7(i9, e11), r8 = encodeURIComponent(t11[1]), c5 = t11[4] || "";
        o8.videoId = r8, o8.src = `https://player.vimeo.com/video/${r8}?${c5 ? `h=${c5}${s11 ? "&" : ""}` : ""}${s11}`, l7 = "vimeo";
      }
    }
    o8.type = l7;
  }
  function u6(t10, n10) {
    "html5video" === n10.type && function(t11) {
      if (!l6 || !t11.el || !t11.src) return;
      const { el: n11, src: i9 } = t11;
      if (!n11 || !i9) return;
      const s11 = t11.html5videoTpl || a7().html5videoTpl, r8 = t11.html5videoFormat || a7().html5videoFormat;
      if (!s11) return;
      const c5 = t11.poster || (t11.thumb && t2(t11.thumb) ? t11.thumb : ""), d3 = e(s11.replace(/\{\{src\}\}/gi, i9 + "").replace(/\{\{format\}\}/gi, r8 || "").replace(/\{\{poster\}\}/gi, c5 + ""));
      if (!d3) return;
      const u7 = document.createElement("div");
      u7.classList.add("f-html"), u7.append(d3), t11.contentEl = d3, t11.htmlEl = u7, n11.classList.add(`has-${t11.type}`), n11.prepend(u7), h3(t11), l6.emit("contentReady", t11);
    }(n10), "youtube" !== n10.type && "vimeo" !== n10.type || function(t11) {
      if (!l6 || !t11.el || !t11.src) return;
      const e11 = document.createElement("iframe");
      e11.classList.add("f-iframe"), e11.setAttribute("id", `f-iframe_${t11.videoId}`);
      for (const [t12, o9] of Object.entries(a7().iframeAttr || {})) e11.setAttribute(t12, o9);
      e11.onload = () => {
        var o9;
        l6 && 1 === l6.getState() && "youtube" === t11.type && (null === (o9 = e11.contentWindow) || void 0 === o9 || o9.postMessage(JSON.stringify({ event: "listening", id: e11.getAttribute("id") }), "*"));
      }, e11.onerror = () => {
        l6 && 1 === l6.getState() && (null == l6 || l6.showError(t11, "{{IFRAME_ERROR}}"));
      }, e11.src = t11.src;
      const o8 = document.createElement("div");
      o8.classList.add("f-html"), o8.append(e11), t11.contentEl = e11, t11.htmlEl = o8, t11.el.classList.add("has-html"), t11.el.classList.add("has-iframe"), t11.el.classList.add(`has-${t11.type}`), t11.el.prepend(o8), h3(t11), l6.emit("contentReady", t11);
    }(n10);
  }
  function m3(t10, e11) {
    var o8, n10;
    "html5video" !== e11.type && "youtube" !== e11.type && "vimeo" !== e11.type || (null === (o8 = e11.contentEl) || void 0 === o8 || o8.remove(), e11.contentEl = void 0, null === (n10 = e11.htmlEl) || void 0 === n10 || n10.remove(), e11.htmlEl = void 0), e11.poller && clearTimeout(e11.poller);
  }
  function f2() {
    s10 = false;
  }
  function p2() {
    if (s10) return;
    s10 = true;
    const t10 = r7();
    (t10 && void 0 !== t10.autoplay ? t10.autoplay : a7().autoplay) && (function() {
      var t11;
      const e11 = r7(), o8 = null == e11 ? void 0 : e11.el;
      if (o8 && "html5video" === (null == e11 ? void 0 : e11.type)) try {
        const t12 = o8.querySelector("video");
        if (t12) {
          const e12 = t12.play();
          void 0 !== e12 && e12.then(() => {
          }).catch((e13) => {
            t12.muted = true, t12.play();
          });
        }
      } catch (t12) {
      }
      const n10 = null == e11 ? void 0 : e11.htmlEl;
      n10 instanceof HTMLIFrameElement && (null === (t11 = n10.contentWindow) || void 0 === t11 || t11.postMessage('{"event":"command","func":"stopVideo","args":""}', "*"));
    }(), function() {
      const t11 = r7(), e11 = null == t11 ? void 0 : t11.type;
      if (!(null == t11 ? void 0 : t11.el) || "youtube" !== e11 && "vimeo" !== e11) return;
      const o8 = () => {
        if (t11.contentEl && t11.contentEl instanceof HTMLIFrameElement && t11.contentEl.contentWindow) {
          let e12;
          if ("true" === t11.contentEl.dataset.ready) return e12 = "youtube" === t11.type ? { event: "command", func: "playVideo" } : { method: "play", value: "true" }, e12 && t11.contentEl.contentWindow.postMessage(JSON.stringify(e12), "*"), void (t11.poller = void 0);
          "youtube" === t11.type && (e12 = { event: "listening", id: t11.contentEl.getAttribute("id") }, t11.contentEl.contentWindow.postMessage(JSON.stringify(e12), "*"));
        }
        t11.poller = setTimeout(o8, 250);
      };
      o8();
    }());
  }
  function h3(t10) {
    const e11 = null == t10 ? void 0 : t10.el, o8 = null == t10 ? void 0 : t10.htmlEl;
    if (!t10 || !o8) return;
    o8.style.aspectRatio = "", o8.style.width = "", o8.style.height = "", o8.style.maxWidth = "", o8.style.maxHeight = "", o8.offsetHeight;
    const n10 = o8.getBoundingClientRect(), i9 = n10.width || 1, l7 = n10.height || 1;
    if (t10.width) {
      let e12 = `${t10.width}`;
      e12.match(/^\d+$/) && (e12 += "px"), o8.style.maxWidth = `${e12}`;
    }
    if (t10.height) {
      let e12 = `${t10.height}`;
      e12.match(/^\d+$/) && (e12 += "px"), o8.style.maxHeight = `${e12}`;
    }
    if (!e11 || !t10.aspectRatio) return;
    const s11 = t10.aspectRatio.split("/"), a8 = parseFloat(s11[0].trim()), r8 = s11[1] ? parseFloat(s11[1].trim()) : 0, c5 = (a8 && r8 ? a8 / r8 : a8) < i9 / l7;
    o8.style.aspectRatio = `${t10.aspectRatio}`, o8.style.width = c5 ? "auto" : "", o8.style.height = c5 ? "" : "auto";
  }
  function v2() {
    h3(r7());
  }
  return { init: function(t10) {
    l6 = t10, l6.on("addSlide", d2), l6.on("attachSlideEl", u6), l6.on("detachSlideEl", m3), l6.on("ready", p2), l6.on("change", f2), l6.on("settle", p2), l6.on("refresh", v2), window.addEventListener("message", c4);
  }, destroy: function() {
    null == l6 || l6.off("addSlide", d2), null == l6 || l6.off("attachSlideEl", u6), null == l6 || l6.off("detachSlideEl", m3), null == l6 || l6.off("ready", p2), null == l6 || l6.off("change", f2), null == l6 || l6.off("settle", p2), null == l6 || l6.off("refresh", v2), window.removeEventListener("message", c4), l6 = void 0;
  } };
};

// node_modules/@fancyapps/ui/dist/carousel/carousel.fullscreen.js
var n8 = { autoStart: false, btnTpl: '<button data-fullscreen-action="toggle" class="f-button" title="{{TOGGLE_FULLSCREEN}}"><svg><g><path d="M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>' };
var t9 = "in-fullscreen-mode";
var l4 = () => {
  let l6;
  function u6(t10) {
    const u7 = null == l6 ? void 0 : l6.getOptions().Fullscreen;
    let o9 = (t(u7) ? Object.assign(Object.assign({}, n8), u7) : n8)[t10];
    return o9 && "function" == typeof o9 && l6 ? o9(l6) : o9;
  }
  function o8() {
    var e11;
    null === (e11 = null == l6 ? void 0 : l6.getPlugins().Toolbar) || void 0 === e11 || e11.add("fullscreen", { tpl: u6("btnTpl") });
  }
  function c4() {
    if (u6("autoStart")) {
      const e11 = r7();
      e11 && d2(e11);
    }
  }
  function i9(e11, n10) {
    const t10 = n10.target;
    t10 && !n10.defaultPrevented && "toggle" === t10.dataset.fullscreenAction && b3();
  }
  function s10(e11) {
    r7() && "Escape" === e11.key && !e11.defaultPrevented && b3();
  }
  function r7() {
    return u6("el") || (null == l6 ? void 0 : l6.getContainer()) || void 0;
  }
  function a7() {
    const e11 = document;
    return e11.fullscreenEnabled ? !!e11.fullscreenElement : !!e11.webkitFullscreenEnabled && !!e11.webkitFullscreenElement;
  }
  function d2(e11) {
    const n10 = document;
    let l7;
    return e11 || (e11 = n10.documentElement), n10.fullscreenEnabled ? l7 = e11.requestFullscreen() : n10.webkitFullscreenEnabled && (l7 = e11.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)), l7 && l7.then(() => {
      e11.classList.add(t9);
    }), l7;
  }
  function f2() {
    const e11 = document;
    let n10;
    return e11.fullscreenEnabled ? n10 = e11.fullscreenElement && e11.exitFullscreen() : e11.webkitFullscreenEnabled && (n10 = e11.webkitFullscreenElement && e11.webkitExitFullscreen()), n10 && n10.then(() => {
      var e12;
      null === (e12 = r7()) || void 0 === e12 || e12.classList.remove(t9);
    }), n10;
  }
  function b3() {
    const e11 = r7();
    e11 && (a7() ? f2() : d2(e11));
  }
  return { init: function(e11) {
    l6 = e11, l6.on("initPlugins", o8), l6.on("ready", c4), l6.on("click", i9);
  }, destroy: function() {
    null == l6 || l6.off("initPlugins", o8), null == l6 || l6.off("ready", c4), null == l6 || l6.off("click", i9), document.removeEventListener("keydown", s10, true);
  }, exit: f2, inFullscreen: a7, request: d2, toggle: b3 };
};

// node_modules/@fancyapps/ui/dist/fancybox/fancybox.hash.js
var e10;
var n9 = false;
var o6 = false;
var i8 = false;
var r6 = false;
var l5 = () => {
  const t10 = new URL(document.URL).hash, e11 = t10.slice(1).split("-"), n10 = e11[e11.length - 1], o8 = n10 && /^\+?\d+$/.test(n10) && parseInt(e11.pop() || "1", 10) || 1;
  return { hash: t10, slug: e11.join("-"), index: o8 };
};
var a6 = () => {
  if (!e10 || e10.getInstance()) return;
  const { slug: t10, index: n10 } = l5();
  if (!t10) return;
  let o8 = document.querySelector(`[data-slug="${t10}"]`);
  if (o8 && o8.dispatchEvent(new CustomEvent("click", { bubbles: true, cancelable: true })), !e10 || e10.getInstance()) return;
  const i9 = document.querySelectorAll(`[data-fancybox="${t10}"]`);
  i9.length && (o8 = i9[n10 - 1], o8 && o8.dispatchEvent(new CustomEvent("click", { bubbles: true, cancelable: true })));
};
var s9 = () => {
  var t10, n10, o8;
  if (!e10) return;
  if (i8) return;
  const s10 = null == e10 ? void 0 : e10.getInstance();
  if (false === (null == s10 ? void 0 : s10.getOptions().Hash)) return;
  const { slug: c4, index: u6 } = l5(), d2 = (null === (t10 = null == s10 ? void 0 : s10.getSlide()) || void 0 === t10 ? void 0 : t10.fancybox) || (null === (n10 = null == s10 ? void 0 : s10.getSlide()) || void 0 === n10 ? void 0 : n10.slug) || void 0;
  s10 && d2 && (c4 === d2 ? null === (o8 = s10.getCarousel()) || void 0 === o8 || o8.goTo(u6 - 1) : (r6 = true, s10.close(), r6 = false)), a6();
};
var c3 = () => {
  e10 && setTimeout(() => {
    n9 = true, a6(), n9 = false, window.addEventListener("hashchange", s9, false);
  }, 300);
};
var u5 = () => {
  let t10, e11 = "auto", a7 = "";
  function s10() {
    if (!t10 || !t10.isTopMost()) return;
    if (false === t10.getOptions().Hash) return;
    const i9 = t10.getCarousel();
    if (!i9) return;
    const { hash: r7, slug: s11 } = l5(), u7 = t10.getSlide();
    if (!u7) return;
    let d2 = u7.fancybox || "", h3 = parseInt(u7.index + "", 10) + 1;
    if (!d2) return;
    let f2 = `#${d2}-${h3}`;
    if (r7 !== f2 && (a7 = r7), history.scrollRestoration && (e11 = history.scrollRestoration, history.scrollRestoration = "manual"), i9.on("change", c4), !n9) if (d2 === s11) try {
      window.history.replaceState({}, document.title, window.location.pathname + window.location.search + f2);
    } catch (t11) {
    }
    else try {
      window.history.pushState({}, document.title, window.location.pathname + window.location.search + f2), o6 = true;
    } catch (t11) {
    }
  }
  function c4() {
    if (!t10 || !t10.isTopMost()) return;
    if (false === t10.getOptions().Hash) return;
    const { slug: e12 } = l5(), n10 = t10.getSlide();
    if (!n10) return;
    let o8 = n10.fancybox || "", r7 = `#${o8}-${n10.index + 1}`;
    if (o8 === e12) {
      i8 = true;
      try {
        window.history.replaceState({}, document.title, window.location.pathname + window.location.search + r7);
      } catch (t11) {
      }
      i8 = false;
    }
  }
  function u6() {
    if (r6) return;
    if (!t10 || !t10.isTopMost()) return;
    if (false === t10.getOptions().Hash) return;
    const e12 = t10.getSlide();
    if (!e12) return;
    if (e12.fancybox || "") {
      i8 = true;
      try {
        !o6 || n9 || function() {
          if (window.parent === window) return false;
          try {
            var t11 = window.frameElement;
          } catch (e13) {
            t11 = null;
          }
          return null === t11 ? "data:" === location.protocol : t11.hasAttribute("sandbox");
        }() ? window.history.replaceState({}, document.title, window.location.pathname + window.location.search + a7) : window.history.back();
      } catch (t11) {
      }
      i8 = false;
    }
  }
  return { init: function(e12) {
    t10 = e12, t10.on("ready", s10), t10.on("close", u6);
  }, destroy: function() {
    null == t10 || t10.off("ready", s10), null == t10 || t10.off("close", u6);
    const n10 = null == t10 ? void 0 : t10.getCarousel();
    n10 && n10.off("change", c4), t10 = void 0, history.scrollRestoration && e11 && (history.scrollRestoration = e11);
  } };
};
u5.startFromUrl = a6, u5.setup = function(n10) {
  e10 || (e10 = n10, e3() && (/complete|interactive|loaded/.test(document.readyState) ? c3() : document.addEventListener("DOMContentLoaded", c3)));
};

// node_modules/@fancyapps/ui/dist/fancybox/l10n/en_EN.js
var o7 = Object.assign(Object.assign({}, o4), { CLOSE: "Close", NEXT: "Next", PREV: "Previous", MODAL: "You can close this modal content with the ESC key", ELEMENT_NOT_FOUND: "HTML Element Not Found", IFRAME_ERROR: "Error Loading Page" });

// node_modules/@fancyapps/ui/dist/fancybox/fancybox.js
var L = '<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="M19.286 4.714 4.714 19.286M4.714 4.714l14.572 14.572" /></svg></button>';
u3().add("close", { tpl: L });
var C = (e11) => {
  e11 && e11.dispatchEvent(new CustomEvent("animationend", { bubbles: false, cancelable: true, currentTarget: e11 }));
};
var A = (e11 = null, t10 = "", n10) => {
  if (!e11 || !e11.parentElement || !t10) return void (n10 && n10());
  C(e11);
  const o8 = (i9) => {
    i9.target === e11 && e11.dataset.animationName && (e11.removeEventListener("animationend", o8), delete e11.dataset.animationName, n10 && n10(), e11.classList.remove(t10));
  };
  e11.dataset.animationName = t10, e11.addEventListener("animationend", o8), s(e11, t10);
};
var k;
!function(e11) {
  e11[e11.Init = 0] = "Init", e11[e11.Ready = 1] = "Ready", e11[e11.Closing = 2] = "Closing", e11[e11.Destroyed = 3] = "Destroyed";
}(k || (k = {}));
var T = { backdropClick: "close", Carousel: {}, closeButton: "auto", closeExisting: false, delegateEl: void 0, dragToClose: true, fadeEffect: true, groupAll: false, groupAttr: "data-fancybox", hideClass: "f-fadeOut", hideScrollbar: true, id: void 0, idle: false, keyboard: { Escape: "close", Delete: "close", Backspace: "close", PageUp: "next", PageDown: "prev", ArrowUp: "prev", ArrowDown: "next", ArrowRight: "next", ArrowLeft: "prev" }, l10n: o7, mainClass: "", mainStyle: {}, mainTpl: '<dialog class="fancybox__dialog">\n    <div class="fancybox__container" tabindex="0" aria-label="{{MODAL}}">\n      <div class="fancybox__backdrop"></div>\n      <div class="fancybox__carousel"></div>\n    </div>\n  </dialog>', on: {}, parentEl: void 0, placeFocusBack: true, showClass: "f-zoomInUp", startIndex: 0, sync: void 0, theme: "dark", triggerEl: void 0, triggerEvent: void 0, zoomEffect: true };
var _ = /* @__PURE__ */ new Map();
var O = 0;
var I = "with-fancybox";
var z = () => {
  let l6, w2, j, z2, M, R = k.Init, B = Object.assign({}, T), N = -1, H = {}, V = [], F = false, $ = true;
  function q(e11, ...t10) {
    let n10 = B[e11];
    return n10 && "function" == typeof n10 ? n10(xe, ...t10) : n10;
  }
  function W(e11, t10 = []) {
    const n10 = q("l10n") || {};
    e11 = String(e11).replace(/\{\{(\w+)\}\}/g, (e12, t11) => n10[t11] || e12);
    for (let n11 = 0; n11 < t10.length; n11++) e11 = e11.split(t10[n11][0]).join(t10[n11][1]);
    return e11 = e11.replace(/\{\{(.*?)\}\}/g, (e12, t11) => t11);
  }
  const K = /* @__PURE__ */ new Map();
  function U(e11, ...t10) {
    const n10 = K.get(e11) || [];
    for (const [t11, o8] of Object.entries(B.on || {})) (t11 === e11 || t11.split(" ").indexOf(e11) > -1) && n10.push(o8);
    for (const e12 of n10) e12 && "function" == typeof e12 && e12(xe, ...t10);
    "*" !== e11 && U("*", e11, ...t10);
  }
  function G(t10 = [], n10 = {}) {
    R !== k.Init && (xe.destroy(), R = k.Init), B = r({}, T, n10), N = q("id") || "fancybox-" + ++O;
    const i9 = _.get(N);
    if (i9 && i9.destroy(), _.set(N, xe), U("init"), function() {
      for (const [e11, t11] of Object.entries(Object.assign(Object.assign({}, D.Plugins), B.plugins || {}))) if (e11 && !H[e11] && t11 instanceof Function) {
        const n11 = t11();
        n11.init(xe), H[e11] = n11;
      }
      U("initPlugins");
    }(), function(e11 = []) {
      U("initSlides", e11), V = [...e11];
    }(t10), function() {
      const t11 = q("parentEl") || document.body;
      if (!(t11 && t11 instanceof HTMLElement)) return;
      const n11 = W(q("mainTpl") || "");
      if (l6 = e(n11) || void 0, !(l6 && l6 instanceof HTMLDialogElement)) return;
      if (w2 = l6.querySelector(".fancybox__container"), !(w2 && w2 instanceof HTMLElement)) return;
      const i10 = q("mainClass");
      i10 && s(w2, i10);
      const s10 = q("mainStyle");
      if (s10 && t(s10)) for (const [e11, t12] of Object.entries(s10)) w2.style.setProperty(e11, t12);
      const a7 = q("theme"), u6 = "auto" === a7 ? window.matchMedia("(prefers-color-scheme:light)").matches : "light" === a7;
      w2.setAttribute("theme", u6 ? "light" : "dark"), l6.setAttribute("id", `${N}`), l6.addEventListener("keydown", (e11) => {
        "Escape" === e11.key && e11.preventDefault();
      }), l6.addEventListener("cancel", (e11) => {
        be(e11);
      }), t11.append(l6), 1 === _.size && (q("hideScrollbar") && t3(true), document.documentElement.classList.add(I));
      l6.showModal(), U("initLayout");
    }(), function() {
      if (j = (null == l6 ? void 0 : l6.querySelector(".fancybox__carousel")) || void 0, !j) return;
      const e11 = r({ Autoplay: { autoStart: false, pauseOnHover: false, progressbarParentEl: (e12) => {
        const t11 = e12.getContainer();
        return (null == t11 ? void 0 : t11.querySelector(".f-carousel__toolbar [data-autoplay-action]")) || t11;
      } }, Fullscreen: { el: w2 }, Toolbar: { absolute: true, display: { left: ["counter"], right: ["toggleFull", "autoplay", "fullscreen", "thumbs", "close"] } }, Video: { autoplay: true }, Zoomable: { Panzoom: { event: q("triggerEvent") } }, classes: { container: "fancybox__carousel", viewport: "fancybox__viewport", slide: "fancybox__slide" }, spinnerTpl: '<div class="f-spinner" data-fancybox-close></div>', dragFree: false, slidesPerPage: 1, plugins: { Sync: i4, Arrows: r4, Lazyload: l, Zoomable: s6, Html: i6, Video: l3, Autoplay: n6, Fullscreen: l4, Thumbs: u4, Toolbar: u3 } }, q("Carousel") || {}, { slides: V, enabled: true, initialPage: q("startIndex") || 0, l10n: q("l10n") });
      z2 = E(j, e11), U("initCarousel", z2), z2.on("*", (e12, t11, ...n11) => {
        U(`Carousel.${t11}`, e12, ...n11);
      }), null == z2 || z2.on("addSlide", Q), z2.on("attachSlideEl", X), z2.on("detachSlideEl", ee), z2.on("contentReady", se), z2.on("ready", oe), z2.on("change", ne), z2.on("settle", ie), z2.init();
    }(), q("closeExisting")) for (const [e11, t11] of _.entries()) e11 !== N && t11.close();
    q("fadeEffect") && w2 && (setTimeout(() => {
      null == w2 || w2.classList.remove("is-revealing");
    }, 500), s(w2, "is-revealing")), null == w2 || w2.classList.add("is-ready"), R = k.Ready, U("ready");
  }
  function Y(e11) {
    if (!ce()) return;
    if (R !== k.Ready) return e11.preventDefault(), void e11.stopPropagation();
    if (e11.defaultPrevented) return;
    if (!u2.isClickAllowed()) return;
    const t10 = e11.composedPath()[0];
    t10.closest(".fancybox__carousel") && t10.classList.contains("fancybox__slide") && Z(e11);
  }
  function Z(e11) {
    if (!!e11.composedPath()[0].closest("[data-fancybox-close]")) return void be(e11);
    if (U("backdropClick", e11), e11.defaultPrevented) return;
    q("backdropClick") && be(e11);
  }
  function J(e11) {
    if (!ce()) return;
    if (R !== k.Ready) return;
    if (ve(), e11.defaultPrevented) return;
    const t10 = e11.composedPath()[0], n10 = !!t10.closest("[data-fancybox-close]"), o8 = t10.classList.contains("fancybox__backdrop");
    (n10 || o8) && Z(e11);
  }
  function Q(e11, t10) {
    var n10;
    null === (n10 = t10.el) || void 0 === n10 || n10.addEventListener("click", Y);
  }
  function X(e11, n10) {
    te(n10), function(e12) {
      if (!z2 || !e12 || !e12.el) return;
      if ("inline" !== e12.type && "clone" !== e12.type) return;
      let n11 = null;
      if (t2(e12.src)) {
        const t10 = e12.src.split("#", 2).pop();
        n11 = t10 ? document.getElementById(t10) : null;
      }
      if (n11) {
        if (s(n11, "f-html"), "clone" === e12.type || n11.closest(".fancybox__carousel")) {
          n11 = n11.cloneNode(true);
          const t10 = n11.dataset.animationName;
          t10 && (n11.classList.remove(t10), delete n11.dataset.animationName);
          let o8 = n11.getAttribute("id");
          o8 = o8 ? `${o8}--clone` : `clone-${N}-${e12.index}`, n11.setAttribute("id", o8);
        } else if (n11.parentNode) {
          const t10 = document.createElement("div");
          t10.inert = true, n11.parentNode.insertBefore(t10, n11), e12.placeholderEl = t10;
        }
        e12.htmlEl = n11, s(e12.el, "has-html"), e12.el.prepend(n11), n11.classList.remove("hidden"), "none" === n11.style.display && (n11.style.display = ""), "none" === getComputedStyle(n11).getPropertyValue("display") && (n11.style.display = n11.dataset.display || "flex"), null == z2 || z2.emit("contentReady", e12);
      } else null == z2 || z2.showError(e12, "{{ELEMENT_NOT_FOUND}}");
    }(n10);
  }
  function ee(e11, t10) {
    !function(e12) {
      e12.closeButtonEl && (e12.closeButtonEl.remove(), e12.closeButtonEl = void 0);
    }(t10), function(e12) {
      if ("inline" !== e12.type) return;
      const t11 = e12.htmlEl, n10 = e12.placeholderEl;
      t11 && ("none" !== getComputedStyle(t11).getPropertyValue("display") && (t11.style.display = "none"), t11.offsetHeight);
      n10 && (t11 && n10.parentNode && n10.parentNode.insertBefore(t11, n10), n10.remove());
      e12.htmlEl = void 0, e12.placeholderEl = void 0;
    }(t10);
  }
  function te(e11) {
    var t10;
    const { el: n10, htmlEl: i9, closeButtonEl: r7 } = e11;
    if (!n10 || !i9 || r7) return;
    let s10 = q("closeButton");
    if ("auto" === s10 && (s10 = true !== (null === (t10 = null == z2 ? void 0 : z2.getPlugins().Toolbar) || void 0 === t10 ? void 0 : t10.isEnabled())), s10) {
      const t11 = e(W(L));
      t11 && (e11.closeButtonEl = i9.insertAdjacentElement("afterbegin", t11), n10.classList.add("has-close-btn"));
    }
  }
  function ne() {
    $ = false, w2 && z2 && w2.classList.remove("is-revealing");
    const e11 = q("sync");
    if (z2 && e11) {
      const t10 = e11.getPageIndex(z2.getPageIndex()) || 0;
      e11.goTo(t10, { transition: false });
    }
  }
  function oe() {
    var e11;
    if (R !== k.Ready) return;
    re(ue()), function() {
      if (!q("dragToClose")) return;
      if (!z2) return;
      if (!z2.getViewport()) return;
      const e12 = z2.getGestures();
      if (!e12) return;
      let t11 = 0, n10 = 0, o8 = c().on("step", (e13) => {
        t11 = e13.y;
        const n11 = null == z2 ? void 0 : z2.getViewport();
        if (w2 && n11) {
          const e14 = t5(Math.abs(t11), 0, 0.5 * n11.getBoundingClientRect().height, 1, 0.5);
          w2.style.setProperty("--f-drag-opacity", e14 + ""), w2.style.setProperty("--f-drag-offset", t11 + "px");
        }
      }).on("end", () => {
        if (!t11) {
          w2 && w2.style.removeProperty("--f-opacity");
          const e13 = null == z2 ? void 0 : z2.getViewport();
          e13 && (e13.style.transform = "");
        }
      });
      e12.on("start", function() {
        o8.pause();
      }).on("panstart", (e13) => {
        var t12;
        const n11 = e13.srcEvent.target;
        n11 && !n2(n11) && (null === (t12 = null == z2 ? void 0 : z2.getViewport()) || void 0 === t12 || t12.classList.add("is-dragging"));
      }).on("pan", function(e13) {
        const r7 = e13.srcEvent.target;
        r7 && n2(r7) || (null == z2 ? void 0 : z2.getViewport()) && "y" === e13.axis && (n10 += e13.deltaY, o8.spring({ clamp: true, mass: 1, tension: 860, friction: 17, restDelta: 0.01, restSpeed: 0.01 }).from({ y: t11 }).to({ y: n10 }).start());
      }).on("end", function(e13) {
        o8.pause(), "y" === e13.axis && Math.abs(e13.velocityY) > 5 && Math.abs(n10) > 0 ? be(e13.srcEvent, "f-throwOut" + (e13.velocityY > 0 ? "Down" : "Up")) : 0 !== n10 && (n10 = 0, o8.spring({ clamp: true, mass: 1, tension: 140, friction: 25, restDelta: 0.1, restSpeed: 0.1, maxSpeed: 1 / 0 }).from({ y: t11 }).to({ y: n10 }).start());
      });
    }(), document.body.addEventListener("click", J), document.body.addEventListener("keydown", ae, { passive: false, capture: true }), ge();
    const t10 = q("sync");
    t10 && (null === (e11 = t10.getTween()) || void 0 === e11 || e11.start());
  }
  function ie() {
    (null == z2 ? void 0 : z2.canGoNext()) ? ge() : ye();
  }
  function re(e11) {
    if (!($ && z2 && 1 === z2.getState() && e11 && e11.index === z2.getOptions().initialPage && e11.el && e11.el.parentElement)) return;
    const t10 = e11.panzoomRef, n10 = null == t10 ? void 0 : t10.getTween();
    if (t10 && 1 !== e11.state) return;
    $ = false;
    const o8 = q("zoomEffect") ? fe(e11) : void 0;
    if (t10 && n10 && o8) {
      const e12 = t10.getScale("base") || 1, { x: i10, y: r7 } = t10.getMousemovePos(e12) || { x: 0, y: 0 };
      return void n10.spring({ tension: 225, friction: 25, restDelta: 1e-3, restSpeed: 1e-3, maxSpeed: 1 / 0 }).from(o8).to({ x: i10, y: r7, scale: e12 }).start();
    }
    const i9 = (null == t10 ? void 0 : t10.getWrapper()) || e11.htmlEl;
    i9 && A(i9, q("showClass", e11));
  }
  function se(e11, t10) {
    te(t10), re(t10);
  }
  function le() {
    ve();
  }
  function ae(e11) {
    if (!ce()) return;
    if (R !== k.Ready) return;
    const t10 = e11.key, o8 = q("keyboard");
    if (!o8) return;
    if (e11.ctrlKey || e11.altKey || e11.shiftKey) return;
    const i9 = e11.composedPath()[0];
    if (!n(i9)) return;
    if ("Escape" !== t10 && ((e12) => {
      const t11 = ["input", "textarea", "select", "option", "video", "iframe", "[contenteditable]", "[data-selectable]", "[data-draggable]"].join(",");
      return e12.matches(t11) || e12.closest(t11);
    })(i9)) return;
    if (U("keydown", e11), e11.defaultPrevented) return;
    const r7 = o8[t10];
    if (r7) switch (r7) {
      case "close":
        be(e11);
        break;
      case "next":
        e11.preventDefault(), null == z2 || z2.next();
        break;
      case "prev":
        e11.preventDefault(), null == z2 || z2.prev();
    }
  }
  function ce() {
    var e11;
    return (null === (e11 = D.getInstance()) || void 0 === e11 ? void 0 : e11.getId()) === N;
  }
  function ue() {
    var e11;
    return null === (e11 = null == z2 ? void 0 : z2.getPage()) || void 0 === e11 ? void 0 : e11.slides[0];
  }
  function de() {
    const e11 = ue();
    return e11 ? e11.triggerEl || q("triggerEl") : void 0;
  }
  function fe(e11) {
    var t10, n10;
    const o8 = null === (n10 = null === (t10 = e11.panzoomRef) || void 0 === t10 ? void 0 : t10.getWrapper()) || void 0 === n10 ? void 0 : n10.getBoundingClientRect(), i9 = null == o8 ? void 0 : o8.width, r7 = null == o8 ? void 0 : o8.height;
    if (!i9 || !r7) return;
    const s10 = e11.thumbEl;
    if (!s10) return;
    const l7 = s10.getBoundingClientRect();
    let a7 = l7.width, c4 = l7.height, u6 = l7.left, d2 = l7.top;
    if (!l7 || !a7 || !c4) return;
    if (!((e12) => {
      const t11 = e12.getBoundingClientRect(), n11 = e12.closest("[style]"), o9 = null == n11 ? void 0 : n11.parentElement;
      if (n11 && n11.style.transform && o9) {
        const e13 = o9.getBoundingClientRect();
        if (t11.left < e13.left || t11.left > e13.left + e13.width - t11.width) return false;
        if (t11.top < e13.top || t11.top > e13.top + e13.height - t11.height) return false;
      }
      const i10 = Math.max(document.documentElement.clientHeight, window.innerHeight), r8 = Math.max(document.documentElement.clientWidth, window.innerWidth);
      return !(t11.bottom < 0 || t11.top - i10 >= 0 || t11.right < 0 || t11.left - r8 >= 0);
    })(s10)) return;
    if (s10 instanceof HTMLImageElement) {
      if ("contain" === window.getComputedStyle(s10).getPropertyValue("object-fit")) {
        const { width: e12, height: t11 } = ((e13, t12, n11, o9) => {
          const i10 = n11 / e13, r8 = o9 / t12, s11 = Math.min(i10, r8);
          return { width: e13 *= s11, height: t12 *= s11 };
        })(s10.naturalWidth, s10.naturalHeight, a7, c4);
        u6 += 0.5 * (a7 - e12), d2 += 0.5 * (c4 - t11), a7 = e12, c4 = t11;
      }
    }
    if (Math.abs(i9 / r7 - a7 / c4) > 0.1) return;
    return { x: u6 + 0.5 * a7 - (o8.left + 0.5 * i9), y: d2 + 0.5 * c4 - (o8.top + 0.5 * r7), scale: a7 / i9 };
  }
  function me() {
    M && clearTimeout(M), M = void 0, document.removeEventListener("mousemove", le);
  }
  function ge() {
    if (F) return;
    if (M) return;
    const e11 = q("idle");
    e11 && (M = setTimeout(pe, e11));
  }
  function pe() {
    w2 && (me(), s(w2, "is-idle"), document.addEventListener("mousemove", le), F = true);
  }
  function ve() {
    F && (ye(), ge());
  }
  function ye() {
    me(), null == w2 || w2.classList.remove("is-idle"), F = false;
  }
  function be(e11, t10) {
    var n10, o8, i9, r7, l7, a7;
    if (R === k.Closing || R === k.Destroyed) return;
    if (R = k.Closing, me(), e11) {
      if (e11.defaultPrevented) return;
      e11.cancelable && e11.preventDefault(), e11.stopPropagation(), e11.stopImmediatePropagation();
    }
    if (z2) {
      null === (n10 = z2.getGestures()) || void 0 === n10 || n10.destroy(), null === (o8 = z2.getTween()) || void 0 === o8 || o8.pause();
      const e12 = ue(), t11 = null == e12 ? void 0 : e12.panzoomRef;
      e12 && t11 && r(t11.getOptions(), { clickAction: false, wheelAction: false, bounds: false, minScale: 0, maxScale: 1 / 0 });
      for (const e13 of z2.getSlides()) null === (r7 = null === (i9 = e13.panzoomRef) || void 0 === i9 ? void 0 : i9.getGestures()) || void 0 === r7 || r7.destroy(), null === (a7 = null === (l7 = e13.panzoomRef) || void 0 === l7 ? void 0 : l7.getTween()) || void 0 === a7 || a7.pause();
    }
    const c4 = null == z2 ? void 0 : z2.getPlugins().fullscreen;
    c4 && c4.inFullscreen() ? Promise.resolve(c4.exit()).then(() => {
      setTimeout(() => {
        he(e11, t10);
      }, 150);
    }) : he(e11, t10);
  }
  function he(e11, t10) {
    var n10, o8, i9, r7, s10;
    if (R !== k.Closing) return;
    if (U("close", e11), q("placeFocusBack")) {
      const e12 = de();
      !e12 || (s10 = e12.getBoundingClientRect()).bottom > 0 && s10.right > 0 && s10.left < (window.innerWidth || document.documentElement.clientWidth) && s10.top < (window.innerHeight || document.documentElement.clientHeight) || e12.scrollIntoView({ behavior: "instant", block: "center", inline: "center" });
    }
    q("fadeEffect") && (null == w2 || w2.classList.remove("is-ready"), null == w2 || w2.classList.add("is-hiding")), null == w2 || w2.classList.add("is-closing");
    const l7 = ue(), a7 = null == l7 ? void 0 : l7.panzoomRef, c4 = null === (n10 = null == l7 ? void 0 : l7.panzoomRef) || void 0 === n10 ? void 0 : n10.getTween(), d2 = t10 || q("hideClass");
    let f2 = false, m3 = false;
    if (z2 && l7 && a7 && c4) {
      let e12;
      q("zoomEffect") && ((null === (i9 = null === (o8 = z2.getTween()) || void 0 === o8 ? void 0 : o8.getCurrentVelocities()) || void 0 === i9 ? void 0 : i9.pos) || 0) < 700 && 1 === l7.state && (e12 = fe(l7)), e12 && (f2 = true, z2.on("refresh", () => {
        const e13 = fe(l7);
        e13 && c4.to(Object.assign(Object.assign({}, m), e13));
      }), c4.easing(c.Easings.EaseOut).duration(350).from(Object.assign({}, a7.getTransform())).to(Object.assign(Object.assign({}, m), e12)).start());
    }
    const g3 = (null == l7 ? void 0 : l7.htmlEl) || (null === (r7 = null == l7 ? void 0 : l7.panzoomRef) || void 0 === r7 ? void 0 : r7.getWrapper());
    g3 && C(g3), !f2 && d2 && g3 && (m3 = true, A(g3, d2, () => {
      Ee();
    })), f2 || m3 ? setTimeout(() => {
      Ee();
    }, 350) : Ee();
  }
  function Ee() {
    var e11, t10, n10, o8, i9;
    if (R === k.Destroyed) return;
    R = k.Destroyed, document.body.removeEventListener("click", J), document.body.removeEventListener("keydown", ae, { passive: false, capture: true });
    for (const e12 of Object.values(H)) null == e12 || e12.destroy();
    H = {};
    const s10 = de();
    if (U("destroy"), null === (t10 = null === (e11 = q("sync")) || void 0 === e11 ? void 0 : e11.getPlugins().Autoplay) || void 0 === t10 || t10.resume(), null === (o8 = null === (n10 = q("sync")) || void 0 === n10 ? void 0 : n10.getPlugins().Autoscroll) || void 0 === o8 || o8.resume(), l6 instanceof HTMLDialogElement && l6.close(), null === (i9 = null == z2 ? void 0 : z2.getContainer()) || void 0 === i9 || i9.classList.remove("is-idle"), null == z2 || z2.destroy(), null == l6 || l6.remove(), l6 = void 0, w2 = void 0, z2 = void 0, _.delete(N), !_.size && (t3(false), document.documentElement.classList.remove(I), q("placeFocusBack"))) try {
      null == s10 || s10.focus({ preventScroll: true });
    } catch (e12) {
    }
  }
  const xe = { close: be, destroy: Ee, getCarousel: function() {
    return z2;
  }, getContainer: function() {
    return w2;
  }, getId: function() {
    return N;
  }, getOptions: function() {
    return B;
  }, getPlugins: function() {
    return H;
  }, getSlide: function() {
    return ue();
  }, getState: function() {
    return R;
  }, init: function(e11 = [], t10 = {}) {
    return G(e11, t10), xe;
  }, isCurrentSlide: function(e11) {
    const t10 = ue();
    return !(!e11 || !t10) && t10.index === e11.index;
  }, isTopMost: function() {
    return ce();
  }, off: function(e11, t10) {
    return K.has(e11) && K.set(e11, K.get(e11).filter((e12) => e12 !== t10)), xe;
  }, on: function(e11, t10) {
    return K.set(e11, [...K.get(e11) || [], t10]), xe;
  }, toggleIdle(e11) {
    console.log(`[F] toggleIdle(); force: ${e11}`), (F || true === e11) && pe(), F && false !== e11 || ye();
  } };
  return xe;
};
var D = { Plugins: { Hash: u5 }, version: "6.0.7", openers: /* @__PURE__ */ new Map(), bind: function(e11, n10, o8) {
  if (!e3()) return;
  let i9 = document.body, r7 = "[data-fancybox]", s10 = {};
  if (t2(e11) ? (i9 = document.body, r7 = e11, "object" == typeof n10 && (s10 = n10 || {})) : e11 instanceof Element && (i9 = e11, t2(n10) && (r7 = n10), "object" == typeof o8 && (s10 = o8 || {})), !(i9 && i9 instanceof Element && r7)) return false;
  const a7 = D.openers.get(i9) || /* @__PURE__ */ new Map();
  if (a7.set(r7, s10), D.openers.set(i9, a7), 1 === a7.size) {
    i9.addEventListener("click", D.fromEvent);
    for (const e12 of Object.values(D.Plugins)) {
      const t10 = e12.setup;
      "function" == typeof t10 && t10(D);
    }
  }
  return true;
}, close: function(e11 = true, ...t10) {
  if (e11) for (const e12 of _.values()) e12.close(...t10);
  else {
    const e12 = D.getInstance();
    e12 && e12.close(...t10);
  }
}, destroy: function() {
  let e11;
  for (; e11 = D.getInstance(); ) e11.destroy();
  for (const e12 of D.openers.keys()) e12.removeEventListener("click", D.fromEvent);
  D.openers.clear();
}, fromEvent: function(e11) {
  var t10, n10, o8;
  if (e11.defaultPrevented) return;
  if (e11.button && 0 !== e11.button) return;
  if (e11.ctrlKey || e11.metaKey || e11.shiftKey) return;
  let i9 = e11.composedPath()[0];
  if (i9.closest(".fancybox__container.is-hiding")) return e11.preventDefault(), void e11.stopPropagation();
  const r7 = i9.closest("[data-fancybox-delegate]") || void 0;
  if (r7) {
    const e12 = r7.dataset.fancyboxDelegate || "", t11 = document.querySelectorAll(`[data-fancybox="${e12}"]`);
    i9 = t11[parseInt(r7.dataset.fancyboxIndex || "", 10) || 0] || t11[0];
  }
  if (!(i9 && i9 instanceof Element)) return;
  let l6, a7, c4;
  for (const e12 of Array.from(D.openers.keys()).reverse()) {
    const t11 = D.openers.get(e12);
    if (t11 && e12.contains(i9)) for (const n11 of Array.from(t11.keys()).reverse()) {
      let o9 = null;
      try {
        o9 = i9.closest(n11);
      } catch (e13) {
      }
      if (o9) {
        i9 = o9, l6 = e12, a7 = n11, c4 = t11.get(n11);
        break;
      }
    }
  }
  if (!(l6 && a7 && c4)) return;
  e11.preventDefault();
  const u6 = r({}, T, { triggerEvent: e11, triggerEl: i9, delegateEl: r7 }, c4), d2 = u6.groupAll, f2 = u6.groupAttr, m3 = f2 && i9 ? i9.getAttribute(`${f2}`) : "";
  let g3 = [];
  const p2 = null === (t10 = i9.closest(".f-carousel")) || void 0 === t10 ? void 0 : t10.carousel;
  if (p2) {
    const e12 = [];
    for (const t11 of null == p2 ? void 0 : p2.getSlides()) {
      const n11 = t11.el;
      n11 && (n11.matches(a7) ? e12.push(n11) : e12.push(...[].slice.call(n11.querySelectorAll(a7))));
    }
    e12.length && (g3 = [...e12], null === (n10 = p2.getPlugins().Autoplay) || void 0 === n10 || n10.pause(), null === (o8 = p2.getPlugins().Autoscroll) || void 0 === o8 || o8.pause(), u6.sync = p2);
  } else (!i9 || m3 || d2) && (g3 = [].slice.call(l6.querySelectorAll(a7)));
  if (i9 && !d2 && (g3 = m3 ? g3.filter((e12) => e12.getAttribute(`${f2}`) === m3) : [i9]), !g3.length) return;
  const v2 = D.getInstance();
  if (v2) {
    const e12 = v2.getOptions().triggerEl;
    if (e12 && g3.indexOf(e12) > -1) return;
  }
  return Object.assign({}, u6.Carousel || {}).rtl && (g3 = g3.reverse()), i9 && (u6.startIndex = g3.indexOf(i9)), D.fromNodes(g3, u6);
}, fromNodes: function(e11, t10) {
  t10 = r({}, T, t10 || {});
  const n10 = [], o8 = (e12) => e12 instanceof HTMLImageElement ? e12 : e12 instanceof HTMLElement ? e12.querySelector("img:not([aria-hidden])") : void 0;
  for (const i9 of e11) {
    const r7 = i9.dataset || {}, s10 = t10.delegateEl && e11.indexOf(i9) === t10.startIndex ? t10.delegateEl : void 0, l6 = o8(s10) || o8(i9) || void 0, a7 = r7.src || i9.getAttribute("href") || i9.getAttribute("currentSrc") || i9.getAttribute("src") || void 0, c4 = r7.thumb || r7.thumbSrc || (null == l6 ? void 0 : l6.getAttribute("currentSrc")) || (null == l6 ? void 0 : l6.getAttribute("src")) || (null == l6 ? void 0 : l6.dataset.lazySrc) || void 0, u6 = { src: a7, alt: r7.alt || (null == l6 ? void 0 : l6.getAttribute("alt")) || void 0, thumbSrc: c4, thumbEl: l6, triggerEl: i9, delegateEl: s10 };
    for (const e12 in r7) {
      let t11 = r7[e12] + "";
      t11 = "false" !== t11 && ("true" === t11 || t11), u6[e12] = t11;
    }
    n10.push(u6);
  }
  return D.show(n10, t10);
}, fromSelector: function(e11, n10, o8) {
  let i9 = document.body, r7 = "", l6 = {};
  if (t2(e11) ? r7 = e11 : e11 instanceof Element && (i9 = e11, t2(n10) && (r7 = n10), "object" == typeof o8 && (l6 = o8 || {})), !(i9 && i9 instanceof Element && r7)) return;
  const a7 = D.openers.get(i9);
  return a7 ? (l6 = r({}, a7.get(r7) || {}, l6), l6 ? D.fromNodes(Array.from(i9.querySelectorAll(r7)), l6) : void 0) : void 0;
}, getCarousel: function() {
  var e11;
  return (null === (e11 = D.getInstance()) || void 0 === e11 ? void 0 : e11.getCarousel()) || void 0;
}, getDefaults: function() {
  return T;
}, getInstance: function(e11) {
  if (e11) {
    const t10 = _.get(e11);
    return t10 && t10.getState() !== k.Destroyed ? t10 : void 0;
  }
  return Array.from(_.values()).reverse().find((e12) => {
    if (e12.getState() !== k.Destroyed) return e12;
  }) || void 0;
}, getSlide: function() {
  var e11;
  return (null === (e11 = D.getInstance()) || void 0 === e11 ? void 0 : e11.getSlide()) || void 0;
}, show: function(e11 = [], t10 = {}) {
  return z().init(e11, t10);
}, unbind: function(e11, n10) {
  let o8 = document.body, i9 = "";
  if (t2(e11) ? i9 = e11 : e11 instanceof Element && (o8 = e11, t2(n10) && (i9 = n10)), o8) {
    const e12 = D.openers.get(o8);
    e12 && i9 && e12.delete(i9), (null == e12 ? void 0 : e12.size) && i9 || D.openers.delete(o8), o8.removeEventListener("click", D.fromEvent);
  }
} };
export {
  r4 as Arrows,
  n6 as Autoplay,
  E as Carousel,
  D as Fancybox,
  k as FancyboxState,
  l4 as Fullscreen,
  i6 as Html,
  l as Lazyload,
  m as PANZOOM_DEFAULT_POS,
  w as Panzoom,
  g as PanzoomAction,
  h as PanzoomZoomLevel,
  i4 as Sync,
  u4 as Thumbs,
  u3 as Toolbar,
  i5 as ToolbarColumn,
  l3 as Video,
  s6 as Zoomable
};
/*! Bundled license information:

@fancyapps/ui/dist/utils/isPlainObject.js:
@fancyapps/ui/dist/utils/isString.js:
@fancyapps/ui/dist/utils/isNode.js:
@fancyapps/ui/dist/utils/strToHtml.js:
@fancyapps/ui/dist/utils/getScrollableParent.js:
@fancyapps/ui/dist/utils/scrollLock.js:
@fancyapps/ui/dist/utils/extend.js:
@fancyapps/ui/dist/utils/canUseDOM.js:
@fancyapps/ui/dist/utils/clamp.js:
@fancyapps/ui/dist/utils/map.js:
@fancyapps/ui/dist/utils/addClass.js:
@fancyapps/ui/dist/utils/isEqual.js:
@fancyapps/ui/dist/libs/tween.js:
@fancyapps/ui/dist/libs/gestures.js:
@fancyapps/ui/dist/panzoom/l10n/en_EN.js:
@fancyapps/ui/dist/panzoom/panzoom.js:
@fancyapps/ui/dist/utils/getDirectChildren.js:
@fancyapps/ui/dist/utils/removeClass.js:
@fancyapps/ui/dist/utils/toggleClass.js:
@fancyapps/ui/dist/carousel/l10n/en_EN.js:
@fancyapps/ui/dist/carousel/carousel.js:
@fancyapps/ui/dist/utils/replaceAll.js:
@fancyapps/ui/dist/carousel/carousel.zoomable.js:
@fancyapps/ui/dist/carousel/carousel.sync.js:
@fancyapps/ui/dist/carousel/carousel.lazyload.js:
@fancyapps/ui/dist/carousel/carousel.arrows.js:
@fancyapps/ui/dist/shared/buttons.js:
@fancyapps/ui/dist/carousel/carousel.toolbar.js:
@fancyapps/ui/dist/carousel/carousel.autoplay.js:
@fancyapps/ui/dist/carousel/carousel.thumbs.js:
@fancyapps/ui/dist/carousel/carousel.html.js:
@fancyapps/ui/dist/carousel/carousel.video.js:
@fancyapps/ui/dist/carousel/carousel.fullscreen.js:
@fancyapps/ui/dist/fancybox/fancybox.hash.js:
@fancyapps/ui/dist/fancybox/l10n/en_EN.js:
@fancyapps/ui/dist/fancybox/fancybox.js:
@fancyapps/ui/dist/fancybox/index.js:
  (*! License details at fancyapps.com/license *)
*/
//# sourceMappingURL=@fancyapps_ui_dist_fancybox_.js.map
