var E = `\u0074\u006f\u0070`,
  R = `\u0062\u006f\u0074\u0074\u006f\u006d`,
  W = `\u0072\u0069\u0067\u0068\u0074`,
  P = `\u006c\u0065\u0066\u0074`,
  me = `\u0061\u0075\u0074\u006f`,
  G = [E, R, W, P],
  U = `\u0073\u0074\u0061\u0072\u0074`,
  J = `\u0065\u006e\u0064`,
  Xe = `\u0063\u006c\u0069\u0070\u0070\u0069\u006e\u0067\u0050\u0061\u0072\u0065\u006e\u0074\u0073`,
  je = `\u0076\u0069\u0065\u0077\u0070\u006f\u0072\u0074`,
  K = `\u0070\u006f\u0070\u0070\u0065\u0072`,
  Ye = `\u0072\u0065\u0066\u0065\u0072\u0065\u006e\u0063\u0065`,
  De = G.reduce(function (t, e) {
    return t.concat([e + `\u002d` + U, e + `\u002d` + J]);
  }, []),
  Ee = [].concat(G, [me]).reduce(function (t, e) {
    return t.concat([e, e + `\u002d` + U, e + `\u002d` + J]);
  }, []),
  Ge = `\u0062\u0065\u0066\u006f\u0072\u0065\u0052\u0065\u0061\u0064`,
  Je = `\u0072\u0065\u0061\u0064`,
  Ke = `\u0061\u0066\u0074\u0065\u0072\u0052\u0065\u0061\u0064`,
  Qe = `\u0062\u0065\u0066\u006f\u0072\u0065\u004d\u0061\u0069\u006e`,
  Ze = `\u006d\u0061\u0069\u006e`,
  et = `\u0061\u0066\u0074\u0065\u0072\u004d\u0061\u0069\u006e`,
  tt = `\u0062\u0065\u0066\u006f\u0072\u0065\u0057\u0072\u0069\u0074\u0065`,
  nt = `\u0077\u0072\u0069\u0074\u0065`,
  rt = `\u0061\u0066\u0074\u0065\u0072\u0057\u0072\u0069\u0074\u0065`,
  ot = [Ge, Je, Ke, Qe, Ze, et, tt, nt, rt];
function C(t) {
  return t ? (t.nodeName || ``).toLowerCase() : null;
}
function H(t) {
  if (t == null) return window;
  if (t.toString() !== `\u005b\u006f\u0062\u006a\u0065\u0063\u0074\u0020\u0057\u0069\u006e\u0064\u006f\u0077\u005d`) {
    var e = t.ownerDocument;
    return e && e.defaultView || window;
  }
  return t;
}
function Q(t) {
  var e = H(t).Element;
  return t instanceof e || t instanceof Element;
}
function B(t) {
  var e = H(t).HTMLElement;
  return t instanceof e || t instanceof HTMLElement;
}
function Pe(t) {
  if (typeof ShadowRoot == `\u0075\u006e\u0064\u0065\u0066\u0069\u006e\u0065\u0064`) return false;
  var e = H(t).ShadowRoot;
  return t instanceof e || t instanceof ShadowRoot;
}
function Mt(t) {
  var e = t.state;
  Object.keys(e.elements).forEach(function (n) {
    var r = e.styles[n] || {},
      o = e.attributes[n] || {},
      i = e.elements[n];
    !B(i) || !C(i) || (Object.assign(i.style, r), Object.keys(o).forEach(function (a) {
      var s = o[a];
      s === false ? i.removeAttribute(a) : i.setAttribute(a, s === true ? `` : s);
    }));
  });
}
function Rt(t) {
  var e = t.state,
    n = {
      popper: {
        position: e.options.strategy,
        left: `\u0030`,
        top: `\u0030`,
        margin: `\u0030`
      },
      arrow: {
        position: `\u0061\u0062\u0073\u006f\u006c\u0075\u0074\u0065`
      },
      reference: {}
    };
  return Object.assign(e.elements.popper.style, n.popper), e.styles = n, e.elements.arrow && Object.assign(e.elements.arrow.style, n.arrow), function () {
    Object.keys(e.elements).forEach(function (r) {
      var o = e.elements[r],
        i = e.attributes[r] || {},
        a = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : n[r]),
        s = a.reduce(function (f, c) {
          return f[c] = ``, f;
        }, {});
      !B(o) || !C(o) || (Object.assign(o.style, s), Object.keys(i).forEach(function (f) {
        o.removeAttribute(f);
      }));
    });
  };
}
var Ae = {
  name: `\u0061\u0070\u0070\u006c\u0079\u0053\u0074\u0079\u006c\u0065\u0073`,
  enabled: true,
  phase: `\u0077\u0072\u0069\u0074\u0065`,
  fn: Mt,
  effect: Rt,
  requires: [`\u0063\u006f\u006d\u0070\u0075\u0074\u0065\u0053\u0074\u0079\u006c\u0065\u0073`]
};
function q(t) {
  return t.split(`\u002d`)[0];
}
var X = Math.max,
  ve = Math.min,
  Z = Math.round;
function ee(t, e) {
  e === void 0 && (e = false);
  var n = t.getBoundingClientRect(),
    r = 1,
    o = 1;
  if (B(t) && e) {
    var i = t.offsetHeight,
      a = t.offsetWidth;
    a > 0 && (r = Z(n.width) / a || 1), i > 0 && (o = Z(n.height) / i || 1);
  }
  return {
    width: n.width / r,
    height: n.height / o,
    top: n.top / o,
    right: n.right / r,
    bottom: n.bottom / o,
    left: n.left / r,
    x: n.left / r,
    y: n.top / o
  };
}
function ke(t) {
  var e = ee(t),
    n = t.offsetWidth,
    r = t.offsetHeight;
  return Math.abs(e.width - n) <= 1 && (n = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), {
    x: t.offsetLeft,
    y: t.offsetTop,
    width: n,
    height: r
  };
}
function it(t, e) {
  var n = e.getRootNode && e.getRootNode();
  if (t.contains(e)) return true;
  if (n && Pe(n)) {
    var r = e;
    do {
      if (r && t.isSameNode(r)) return true;
      r = r.parentNode || r.host;
    } while (r);
  }
  return false;
}
function N(t) {
  return H(t).getComputedStyle(t);
}
function Wt(t) {
  return [`\u0074\u0061\u0062\u006c\u0065`, `\u0074\u0064`, `\u0074\u0068`].indexOf(C(t)) >= 0;
}
function I(t) {
  return ((Q(t) ? t.ownerDocument : t.document) || window.document).documentElement;
}
function ge(t) {
  return C(t) === `\u0068\u0074\u006d\u006c` ? t : t.assignedSlot || t.parentNode || (Pe(t) ? t.host : null) || I(t);
}
function at(t) {
  return !B(t) || N(t).position === `\u0066\u0069\u0078\u0065\u0064` ? null : t.offsetParent;
}
function Bt(t) {
  var e = navigator.userAgent.toLowerCase().indexOf(`\u0066\u0069\u0072\u0065\u0066\u006f\u0078`) !== -1,
    n = navigator.userAgent.indexOf(`\u0054\u0072\u0069\u0064\u0065\u006e\u0074`) !== -1;
  if (n && B(t)) {
    var r = N(t);
    if (r.position === `\u0066\u0069\u0078\u0065\u0064`) return null;
  }
  var o = ge(t);
  for (Pe(o) && (o = o.host); B(o) && [`\u0068\u0074\u006d\u006c`, `\u0062\u006f\u0064\u0079`].indexOf(C(o)) < 0;) {
    var i = N(o);
    if (i.transform !== `\u006e\u006f\u006e\u0065` || i.perspective !== `\u006e\u006f\u006e\u0065` || i.contain === `\u0070\u0061\u0069\u006e\u0074` || [`\u0074\u0072\u0061\u006e\u0073\u0066\u006f\u0072\u006d`, `\u0070\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065`].indexOf(i.willChange) !== -1 || e && i.willChange === `\u0066\u0069\u006c\u0074\u0065\u0072` || e && i.filter && i.filter !== `\u006e\u006f\u006e\u0065`) return o;
    o = o.parentNode;
  }
  return null;
}
function se(t) {
  for (var e = H(t), n = at(t); n && Wt(n) && N(n).position === `\u0073\u0074\u0061\u0074\u0069\u0063`;) n = at(n);
  return n && (C(n) === `\u0068\u0074\u006d\u006c` || C(n) === `\u0062\u006f\u0064\u0079` && N(n).position === `\u0073\u0074\u0061\u0074\u0069\u0063`) ? e : n || Bt(t) || e;
}
function Le(t) {
  return [`\u0074\u006f\u0070`, `\u0062\u006f\u0074\u0074\u006f\u006d`].indexOf(t) >= 0 ? `\u0078` : `\u0079`;
}
function fe(t, e, n) {
  return X(t, ve(e, n));
}
function St(t, e, n) {
  var r = fe(t, e, n);
  return r > n ? n : r;
}
function st() {
  return {
    top: 0,
    right: 0,
    bottom: 0,
    left: 0
  };
}
function ft(t) {
  return Object.assign({}, st(), t);
}
function ct(t, e) {
  return e.reduce(function (n, r) {
    return n[r] = t, n;
  }, {});
}
var Tt = function (t, e) {
  return t = typeof t == `\u0066\u0075\u006e\u0063\u0074\u0069\u006f\u006e` ? t(Object.assign({}, e.rects, {
    placement: e.placement
  })) : t, ft(typeof t != `\u006e\u0075\u006d\u0062\u0065\u0072` ? t : ct(t, G));
};
function Ht(t) {
  var e,
    n = t.state,
    r = t.name,
    o = t.options,
    i = n.elements.arrow,
    a = n.modifiersData.popperOffsets,
    s = q(n.placement),
    f = Le(s),
    c = [P, W].indexOf(s) >= 0,
    u = c ? `\u0068\u0065\u0069\u0067\u0068\u0074` : `\u0077\u0069\u0064\u0074\u0068`;
  if (!(!i || !a)) {
    var m = Tt(o.padding, n),
      v = ke(i),
      l = f === `\u0079` ? E : P,
      h = f === `\u0079` ? R : W,
      p = n.rects.reference[u] + n.rects.reference[f] - a[f] - n.rects.popper[u],
      g = a[f] - n.rects.reference[f],
      x = se(i),
      y = x ? f === `\u0079` ? x.clientHeight || 0 : x.clientWidth || 0 : 0,
      $ = p / 2 - g / 2,
      d = m[l],
      b = y - v[u] - m[h],
      w = y / 2 - v[u] / 2 + $,
      O = fe(d, w, b),
      j = f;
    n.modifiersData[r] = (e = {}, e[j] = O, e.centerOffset = O - w, e);
  }
}
function Ct(t) {
  var e = t.state,
    n = t.options,
    r = n.element,
    o = r === void 0 ? `\u005b\u0064\u0061\u0074\u0061\u002d\u0070\u006f\u0070\u0070\u0065\u0072\u002d\u0061\u0072\u0072\u006f\u0077\u005d` : r;
  o != null && (typeof o == `\u0073\u0074\u0072\u0069\u006e\u0067` && (o = e.elements.popper.querySelector(o), !o) || !it(e.elements.popper, o) || (e.elements.arrow = o));
}
var pt = {
  name: `\u0061\u0072\u0072\u006f\u0077`,
  enabled: true,
  phase: `\u006d\u0061\u0069\u006e`,
  fn: Ht,
  effect: Ct,
  requires: [`\u0070\u006f\u0070\u0070\u0065\u0072\u004f\u0066\u0066\u0073\u0065\u0074\u0073`],
  requiresIfExists: [`\u0070\u0072\u0065\u0076\u0065\u006e\u0074\u004f\u0076\u0065\u0072\u0066\u006c\u006f\u0077`]
};
function te(t) {
  return t.split(`\u002d`)[1];
}
var qt = {
  top: `\u0061\u0075\u0074\u006f`,
  right: `\u0061\u0075\u0074\u006f`,
  bottom: `\u0061\u0075\u0074\u006f`,
  left: `\u0061\u0075\u0074\u006f`
};
function Vt(t) {
  var e = t.x,
    n = t.y,
    r = window,
    o = r.devicePixelRatio || 1;
  return {
    x: Z(e * o) / o || 0,
    y: Z(n * o) / o || 0
  };
}
function ut(t) {
  var e,
    n = t.popper,
    r = t.popperRect,
    o = t.placement,
    i = t.variation,
    a = t.offsets,
    s = t.position,
    f = t.gpuAcceleration,
    c = t.adaptive,
    u = t.roundOffsets,
    m = t.isFixed,
    v = a.x,
    l = v === void 0 ? 0 : v,
    h = a.y,
    p = h === void 0 ? 0 : h,
    g = typeof u == `\u0066\u0075\u006e\u0063\u0074\u0069\u006f\u006e` ? u({
      x: l,
      y: p
    }) : {
      x: l,
      y: p
    };
  l = g.x, p = g.y;
  var x = a.hasOwnProperty(`\u0078`),
    y = a.hasOwnProperty(`\u0079`),
    $ = P,
    d = E,
    b = window;
  if (c) {
    var w = se(n),
      O = `\u0063\u006c\u0069\u0065\u006e\u0074\u0048\u0065\u0069\u0067\u0068\u0074`,
      j = `\u0063\u006c\u0069\u0065\u006e\u0074\u0057\u0069\u0064\u0074\u0068`;
    if (w === H(n) && (w = I(n), N(w).position !== `\u0073\u0074\u0061\u0074\u0069\u0063` && s === `\u0061\u0062\u0073\u006f\u006c\u0075\u0074\u0065` && (O = `\u0073\u0063\u0072\u006f\u006c\u006c\u0048\u0065\u0069\u0067\u0068\u0074`, j = `\u0073\u0063\u0072\u006f\u006c\u006c\u0057\u0069\u0064\u0074\u0068`)), w = w, o === E || (o === P || o === W) && i === J) {
      d = R;
      var A = m && w === b && b.visualViewport ? b.visualViewport.height : w[O];
      p -= A - r.height, p *= f ? 1 : -1;
    }
    if (o === P || (o === E || o === R) && i === J) {
      $ = W;
      var k = m && w === b && b.visualViewport ? b.visualViewport.width : w[j];
      l -= k - r.width, l *= f ? 1 : -1;
    }
  }
  var D = Object.assign({
      position: s
    }, c && qt),
    S = u === true ? Vt({
      x: l,
      y: p
    }) : {
      x: l,
      y: p
    };
  if (l = S.x, p = S.y, f) {
    var L;
    return Object.assign({}, D, (L = {}, L[d] = y ? `\u0030` : ``, L[$] = x ? `\u0030` : ``, L.transform = (b.devicePixelRatio || 1) <= 1 ? `\u0074\u0072\u0061\u006e\u0073\u006c\u0061\u0074\u0065\u0028` + l + `\u0070\u0078\u002c\u0020` + p + `\u0070\u0078\u0029` : `\u0074\u0072\u0061\u006e\u0073\u006c\u0061\u0074\u0065\u0033\u0064\u0028` + l + `\u0070\u0078\u002c\u0020` + p + `\u0070\u0078\u002c\u0020\u0030\u0029`, L));
  }
  return Object.assign({}, D, (e = {}, e[d] = y ? p + `\u0070\u0078` : ``, e[$] = x ? l + `\u0070\u0078` : ``, e.transform = ``, e));
}
function Nt(t) {
  var e = t.state,
    n = t.options,
    r = n.gpuAcceleration,
    o = r === void 0 ? true : r,
    i = n.adaptive,
    a = i === void 0 ? true : i,
    s = n.roundOffsets,
    f = s === void 0 ? true : s,
    c = {
      placement: q(e.placement),
      variation: te(e.placement),
      popper: e.elements.popper,
      popperRect: e.rects.popper,
      gpuAcceleration: o,
      isFixed: e.options.strategy === `\u0066\u0069\u0078\u0065\u0064`
    };
  e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, ut(Object.assign({}, c, {
    offsets: e.modifiersData.popperOffsets,
    position: e.options.strategy,
    adaptive: a,
    roundOffsets: f
  })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, ut(Object.assign({}, c, {
    offsets: e.modifiersData.arrow,
    position: `\u0061\u0062\u0073\u006f\u006c\u0075\u0074\u0065`,
    adaptive: false,
    roundOffsets: f
  })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
    "data-popper-placement": e.placement
  });
}
var Me = {
    name: `\u0063\u006f\u006d\u0070\u0075\u0074\u0065\u0053\u0074\u0079\u006c\u0065\u0073`,
    enabled: true,
    phase: `\u0062\u0065\u0066\u006f\u0072\u0065\u0057\u0072\u0069\u0074\u0065`,
    fn: Nt,
    data: {}
  },
  ye = {
    passive: true
  };
function It(t) {
  var e = t.state,
    n = t.instance,
    r = t.options,
    o = r.scroll,
    i = o === void 0 ? true : o,
    a = r.resize,
    s = a === void 0 ? true : a,
    f = H(e.elements.popper),
    c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
  return i && c.forEach(function (u) {
    u.addEventListener(`\u0073\u0063\u0072\u006f\u006c\u006c`, n.update, ye);
  }), s && f.addEventListener(`\u0072\u0065\u0073\u0069\u007a\u0065`, n.update, ye), function () {
    i && c.forEach(function (u) {
      u.removeEventListener(`\u0073\u0063\u0072\u006f\u006c\u006c`, n.update, ye);
    }), s && f.removeEventListener(`\u0072\u0065\u0073\u0069\u007a\u0065`, n.update, ye);
  };
}
var Re = {
    name: `\u0065\u0076\u0065\u006e\u0074\u004c\u0069\u0073\u0074\u0065\u006e\u0065\u0072\u0073`,
    enabled: true,
    phase: `\u0077\u0072\u0069\u0074\u0065`,
    fn: function () {},
    effect: It,
    data: {}
  },
  _t = {
    left: `\u0072\u0069\u0067\u0068\u0074`,
    right: `\u006c\u0065\u0066\u0074`,
    bottom: `\u0074\u006f\u0070`,
    top: `\u0062\u006f\u0074\u0074\u006f\u006d`
  };
function be(t) {
  return t.replace(/left|right|bottom|top/g, function (e) {
    return _t[e];
  });
}
var zt = {
  start: `\u0065\u006e\u0064`,
  end: `\u0073\u0074\u0061\u0072\u0074`
};
function lt(t) {
  return t.replace(/start|end/g, function (e) {
    return zt[e];
  });
}
function We(t) {
  var e = H(t),
    n = e.pageXOffset,
    r = e.pageYOffset;
  return {
    scrollLeft: n,
    scrollTop: r
  };
}
function Be(t) {
  return ee(I(t)).left + We(t).scrollLeft;
}
function Ft(t) {
  var e = H(t),
    n = I(t),
    r = e.visualViewport,
    o = n.clientWidth,
    i = n.clientHeight,
    a = 0,
    s = 0;
  return r && (o = r.width, i = r.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (a = r.offsetLeft, s = r.offsetTop)), {
    width: o,
    height: i,
    x: a + Be(t),
    y: s
  };
}
function Ut(t) {
  var e,
    n = I(t),
    r = We(t),
    o = (e = t.ownerDocument) == null ? void 0 : e.body,
    i = X(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0),
    a = X(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0),
    s = -r.scrollLeft + Be(t),
    f = -r.scrollTop;
  return N(o || n).direction === `\u0072\u0074\u006c` && (s += X(n.clientWidth, o ? o.clientWidth : 0) - i), {
    width: i,
    height: a,
    x: s,
    y: f
  };
}
function Se(t) {
  var e = N(t),
    n = e.overflow,
    r = e.overflowX,
    o = e.overflowY;
  return /auto|scroll|overlay|hidden/.test(n + o + r);
}
function dt(t) {
  return [`\u0068\u0074\u006d\u006c`, `\u0062\u006f\u0064\u0079`, `\u0023\u0064\u006f\u0063\u0075\u006d\u0065\u006e\u0074`].indexOf(C(t)) >= 0 ? t.ownerDocument.body : B(t) && Se(t) ? t : dt(ge(t));
}
function ce(t, e) {
  var n;
  e === void 0 && (e = []);
  var r = dt(t),
    o = r === ((n = t.ownerDocument) == null ? void 0 : n.body),
    i = H(r),
    a = o ? [i].concat(i.visualViewport || [], Se(r) ? r : []) : r,
    s = e.concat(a);
  return o ? s : s.concat(ce(ge(a)));
}
function Te(t) {
  return Object.assign({}, t, {
    left: t.x,
    top: t.y,
    right: t.x + t.width,
    bottom: t.y + t.height
  });
}
function Xt(t) {
  var e = ee(t);
  return e.top = e.top + t.clientTop, e.left = e.left + t.clientLeft, e.bottom = e.top + t.clientHeight, e.right = e.left + t.clientWidth, e.width = t.clientWidth, e.height = t.clientHeight, e.x = e.left, e.y = e.top, e;
}
function ht(t, e) {
  return e === je ? Te(Ft(t)) : Q(e) ? Xt(e) : Te(Ut(I(t)));
}
function Yt(t) {
  var e = ce(ge(t)),
    n = [`\u0061\u0062\u0073\u006f\u006c\u0075\u0074\u0065`, `\u0066\u0069\u0078\u0065\u0064`].indexOf(N(t).position) >= 0,
    r = n && B(t) ? se(t) : t;
  return Q(r) ? e.filter(function (o) {
    return Q(o) && it(o, r) && C(o) !== `\u0062\u006f\u0064\u0079`;
  }) : [];
}
function Gt(t, e, n) {
  var r = e === `\u0063\u006c\u0069\u0070\u0070\u0069\u006e\u0067\u0050\u0061\u0072\u0065\u006e\u0074\u0073` ? Yt(t) : [].concat(e),
    o = [].concat(r, [n]),
    i = o[0],
    a = o.reduce(function (s, f) {
      var c = ht(t, f);
      return s.top = X(c.top, s.top), s.right = ve(c.right, s.right), s.bottom = ve(c.bottom, s.bottom), s.left = X(c.left, s.left), s;
    }, ht(t, i));
  return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
}
function mt(t) {
  var e = t.reference,
    n = t.element,
    r = t.placement,
    o = r ? q(r) : null,
    i = r ? te(r) : null,
    a = e.x + e.width / 2 - n.width / 2,
    s = e.y + e.height / 2 - n.height / 2,
    f;
  switch (o) {
    case E:
      f = {
        x: a,
        y: e.y - n.height
      };
      break;
    case R:
      f = {
        x: a,
        y: e.y + e.height
      };
      break;
    case W:
      f = {
        x: e.x + e.width,
        y: s
      };
      break;
    case P:
      f = {
        x: e.x - n.width,
        y: s
      };
      break;
    default:
      f = {
        x: e.x,
        y: e.y
      };
  }
  var c = o ? Le(o) : null;
  if (c != null) {
    var u = c === `\u0079` ? `\u0068\u0065\u0069\u0067\u0068\u0074` : `\u0077\u0069\u0064\u0074\u0068`;
    switch (i) {
      case U:
        f[c] = f[c] - (e[u] / 2 - n[u] / 2);
        break;
      case J:
        f[c] = f[c] + (e[u] / 2 - n[u] / 2);
        break;
    }
  }
  return f;
}
function ne(t, e) {
  e === void 0 && (e = {});
  var n = e,
    r = n.placement,
    o = r === void 0 ? t.placement : r,
    i = n.boundary,
    a = i === void 0 ? Xe : i,
    s = n.rootBoundary,
    f = s === void 0 ? je : s,
    c = n.elementContext,
    u = c === void 0 ? K : c,
    m = n.altBoundary,
    v = m === void 0 ? false : m,
    l = n.padding,
    h = l === void 0 ? 0 : l,
    p = ft(typeof h != `\u006e\u0075\u006d\u0062\u0065\u0072` ? h : ct(h, G)),
    g = u === K ? Ye : K,
    x = t.rects.popper,
    y = t.elements[v ? g : u],
    $ = Gt(Q(y) ? y : y.contextElement || I(t.elements.popper), a, f),
    d = ee(t.elements.reference),
    b = mt({
      reference: d,
      element: x,
      placement: o
    }),
    w = Te(Object.assign({}, x, b)),
    O = u === K ? w : d,
    j = {
      top: $.top - O.top + p.top,
      bottom: O.bottom - $.bottom + p.bottom,
      left: $.left - O.left + p.left,
      right: O.right - $.right + p.right
    },
    A = t.modifiersData.offset;
  if (u === K && A) {
    var k = A[o];
    Object.keys(j).forEach(function (D) {
      var S = [W, R].indexOf(D) >= 0 ? 1 : -1,
        L = [E, R].indexOf(D) >= 0 ? `\u0079` : `\u0078`;
      j[D] += k[L] * S;
    });
  }
  return j;
}
function Jt(t, e) {
  e === void 0 && (e = {});
  var n = e,
    r = n.placement,
    o = n.boundary,
    i = n.rootBoundary,
    a = n.padding,
    s = n.flipVariations,
    f = n.allowedAutoPlacements,
    c = f === void 0 ? Ee : f,
    u = te(r),
    m = u ? s ? De : De.filter(function (h) {
      return te(h) === u;
    }) : G,
    v = m.filter(function (h) {
      return c.indexOf(h) >= 0;
    });
  v.length === 0 && (v = m);
  var l = v.reduce(function (h, p) {
    return h[p] = ne(t, {
      placement: p,
      boundary: o,
      rootBoundary: i,
      padding: a
    })[q(p)], h;
  }, {});
  return Object.keys(l).sort(function (h, p) {
    return l[h] - l[p];
  });
}
function Kt(t) {
  if (q(t) === me) return [];
  var e = be(t);
  return [lt(t), e, lt(e)];
}
function Qt(t) {
  var e = t.state,
    n = t.options,
    r = t.name;
  if (!e.modifiersData[r]._skip) {
    for (var o = n.mainAxis, i = o === void 0 ? true : o, a = n.altAxis, s = a === void 0 ? true : a, f = n.fallbackPlacements, c = n.padding, u = n.boundary, m = n.rootBoundary, v = n.altBoundary, l = n.flipVariations, h = l === void 0 ? true : l, p = n.allowedAutoPlacements, g = e.options.placement, x = q(g), y = x === g, $ = f || (y || !h ? [be(g)] : Kt(g)), d = [g].concat($).reduce(function (z, V) {
        return z.concat(q(V) === me ? Jt(e, {
          placement: V,
          boundary: u,
          rootBoundary: m,
          padding: c,
          flipVariations: h,
          allowedAutoPlacements: p
        }) : V);
      }, []), b = e.rects.reference, w = e.rects.popper, O = /* @__PURE__ */new Map(), j = true, A = d[0], k = 0; k < d.length; k++) {
      var D = d[k],
        S = q(D),
        L = te(D) === U,
        re = [E, R].indexOf(S) >= 0,
        oe = re ? `\u0077\u0069\u0064\u0074\u0068` : `\u0068\u0065\u0069\u0067\u0068\u0074`,
        M = ne(e, {
          placement: D,
          boundary: u,
          rootBoundary: m,
          altBoundary: v,
          padding: c
        }),
        T = re ? L ? W : P : L ? R : E;
      b[oe] > w[oe] && (T = be(T));
      var pe = be(T),
        _ = [];
      if (i && _.push(M[S] <= 0), s && _.push(M[T] <= 0, M[pe] <= 0), _.every(function (z) {
        return z;
      })) {
        A = D, j = false;
        break;
      }
      O.set(D, _);
    }
    if (j) for (var ue = h ? 3 : 1, xe = function (z) {
        var V = d.find(function (de) {
          var ae = O.get(de);
          if (ae) return ae.slice(0, z).every(function (Y) {
            return Y;
          });
        });
        if (V) return A = V, `\u0062\u0072\u0065\u0061\u006b`;
      }, ie = ue; ie > 0; ie--) {
      var le = xe(ie);
      if (le === `\u0062\u0072\u0065\u0061\u006b`) break;
    }
    e.placement !== A && (e.modifiersData[r]._skip = true, e.placement = A, e.reset = true);
  }
}
var vt = {
  name: `\u0066\u006c\u0069\u0070`,
  enabled: true,
  phase: `\u006d\u0061\u0069\u006e`,
  fn: Qt,
  requiresIfExists: [`\u006f\u0066\u0066\u0073\u0065\u0074`],
  data: {
    _skip: false
  }
};
function gt(t, e, n) {
  return n === void 0 && (n = {
    x: 0,
    y: 0
  }), {
    top: t.top - e.height - n.y,
    right: t.right - e.width + n.x,
    bottom: t.bottom - e.height + n.y,
    left: t.left - e.width - n.x
  };
}
function yt(t) {
  return [E, W, R, P].some(function (e) {
    return t[e] >= 0;
  });
}
function Zt(t) {
  var e = t.state,
    n = t.name,
    r = e.rects.reference,
    o = e.rects.popper,
    i = e.modifiersData.preventOverflow,
    a = ne(e, {
      elementContext: `\u0072\u0065\u0066\u0065\u0072\u0065\u006e\u0063\u0065`
    }),
    s = ne(e, {
      altBoundary: true
    }),
    f = gt(a, r),
    c = gt(s, o, i),
    u = yt(f),
    m = yt(c);
  e.modifiersData[n] = {
    referenceClippingOffsets: f,
    popperEscapeOffsets: c,
    isReferenceHidden: u,
    hasPopperEscaped: m
  }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
    "data-popper-reference-hidden": u,
    "data-popper-escaped": m
  });
}
var bt = {
  name: `\u0068\u0069\u0064\u0065`,
  enabled: true,
  phase: `\u006d\u0061\u0069\u006e`,
  requiresIfExists: [`\u0070\u0072\u0065\u0076\u0065\u006e\u0074\u004f\u0076\u0065\u0072\u0066\u006c\u006f\u0077`],
  fn: Zt
};
function en(t, e, n) {
  var r = q(t),
    o = [P, E].indexOf(r) >= 0 ? -1 : 1,
    i = typeof n == `\u0066\u0075\u006e\u0063\u0074\u0069\u006f\u006e` ? n(Object.assign({}, e, {
      placement: t
    })) : n,
    a = i[0],
    s = i[1];
  return a = a || 0, s = (s || 0) * o, [P, W].indexOf(r) >= 0 ? {
    x: s,
    y: a
  } : {
    x: a,
    y: s
  };
}
function tn(t) {
  var e = t.state,
    n = t.options,
    r = t.name,
    o = n.offset,
    i = o === void 0 ? [0, 0] : o,
    a = Ee.reduce(function (u, m) {
      return u[m] = en(m, e.rects, i), u;
    }, {}),
    s = a[e.placement],
    f = s.x,
    c = s.y;
  e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += f, e.modifiersData.popperOffsets.y += c), e.modifiersData[r] = a;
}
var wt = {
  name: `\u006f\u0066\u0066\u0073\u0065\u0074`,
  enabled: true,
  phase: `\u006d\u0061\u0069\u006e`,
  requires: [`\u0070\u006f\u0070\u0070\u0065\u0072\u004f\u0066\u0066\u0073\u0065\u0074\u0073`],
  fn: tn
};
function nn(t) {
  var e = t.state,
    n = t.name;
  e.modifiersData[n] = mt({
    reference: e.rects.reference,
    element: e.rects.popper,
    placement: e.placement
  });
}
var He = {
  name: `\u0070\u006f\u0070\u0070\u0065\u0072\u004f\u0066\u0066\u0073\u0065\u0074\u0073`,
  enabled: true,
  phase: `\u0072\u0065\u0061\u0064`,
  fn: nn,
  data: {}
};
function rn(t) {
  return t === `\u0078` ? `\u0079` : `\u0078`;
}
function on(t) {
  var e = t.state,
    n = t.options,
    r = t.name,
    o = n.mainAxis,
    i = o === void 0 ? true : o,
    a = n.altAxis,
    s = a === void 0 ? false : a,
    f = n.boundary,
    c = n.rootBoundary,
    u = n.altBoundary,
    m = n.padding,
    v = n.tether,
    l = v === void 0 ? true : v,
    h = n.tetherOffset,
    p = h === void 0 ? 0 : h,
    g = ne(e, {
      boundary: f,
      rootBoundary: c,
      padding: m,
      altBoundary: u
    }),
    x = q(e.placement),
    y = te(e.placement),
    $ = !y,
    d = Le(x),
    b = rn(d),
    w = e.modifiersData.popperOffsets,
    O = e.rects.reference,
    j = e.rects.popper,
    A = typeof p == `\u0066\u0075\u006e\u0063\u0074\u0069\u006f\u006e` ? p(Object.assign({}, e.rects, {
      placement: e.placement
    })) : p,
    k = typeof A == `\u006e\u0075\u006d\u0062\u0065\u0072` ? {
      mainAxis: A,
      altAxis: A
    } : Object.assign({
      mainAxis: 0,
      altAxis: 0
    }, A),
    D = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null,
    S = {
      x: 0,
      y: 0
    };
  if (w) {
    if (i) {
      var L,
        re = d === `\u0079` ? E : P,
        oe = d === `\u0079` ? R : W,
        M = d === `\u0079` ? `\u0068\u0065\u0069\u0067\u0068\u0074` : `\u0077\u0069\u0064\u0074\u0068`,
        T = w[d],
        pe = T + g[re],
        _ = T - g[oe],
        ue = l ? -j[M] / 2 : 0,
        xe = y === U ? O[M] : j[M],
        ie = y === U ? -j[M] : -O[M],
        le = e.elements.arrow,
        z = l && le ? ke(le) : {
          width: 0,
          height: 0
        },
        V = e.modifiersData[`\u0061\u0072\u0072\u006f\u0077\u0023\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0065\u006e\u0074`] ? e.modifiersData[`\u0061\u0072\u0072\u006f\u0077\u0023\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0065\u006e\u0074`].padding : st(),
        de = V[re],
        ae = V[oe],
        Y = fe(0, O[M], z[M]),
        jt = $ ? O[M] / 2 - ue - Y - de - k.mainAxis : xe - Y - de - k.mainAxis,
        Dt = $ ? -O[M] / 2 + ue + Y + ae + k.mainAxis : ie + Y + ae + k.mainAxis,
        Oe = e.elements.arrow && se(e.elements.arrow),
        Et = Oe ? d === `\u0079` ? Oe.clientTop || 0 : Oe.clientLeft || 0 : 0,
        Ce = (L = D == null ? void 0 : D[d]) != null ? L : 0,
        Pt = T + jt - Ce - Et,
        At = T + Dt - Ce,
        qe = fe(l ? ve(pe, Pt) : pe, T, l ? X(_, At) : _);
      w[d] = qe, S[d] = qe - T;
    }
    if (s) {
      var Ve,
        kt = d === `\u0078` ? E : P,
        Lt = d === `\u0078` ? R : W,
        F = w[b],
        he = b === `\u0079` ? `\u0068\u0065\u0069\u0067\u0068\u0074` : `\u0077\u0069\u0064\u0074\u0068`,
        Ne = F + g[kt],
        Ie = F - g[Lt],
        $e = [E, P].indexOf(x) !== -1,
        _e = (Ve = D == null ? void 0 : D[b]) != null ? Ve : 0,
        ze = $e ? Ne : F - O[he] - j[he] - _e + k.altAxis,
        Fe = $e ? F + O[he] + j[he] - _e - k.altAxis : Ie,
        Ue = l && $e ? St(ze, F, Fe) : fe(l ? ze : Ne, F, l ? Fe : Ie);
      w[b] = Ue, S[b] = Ue - F;
    }
    e.modifiersData[r] = S;
  }
}
var xt = {
  name: `\u0070\u0072\u0065\u0076\u0065\u006e\u0074\u004f\u0076\u0065\u0072\u0066\u006c\u006f\u0077`,
  enabled: true,
  phase: `\u006d\u0061\u0069\u006e`,
  fn: on,
  requiresIfExists: [`\u006f\u0066\u0066\u0073\u0065\u0074`]
};
function an(t) {
  return {
    scrollLeft: t.scrollLeft,
    scrollTop: t.scrollTop
  };
}
function sn(t) {
  return t === H(t) || !B(t) ? We(t) : an(t);
}
function fn(t) {
  var e = t.getBoundingClientRect(),
    n = Z(e.width) / t.offsetWidth || 1,
    r = Z(e.height) / t.offsetHeight || 1;
  return n !== 1 || r !== 1;
}
function cn(t, e, n) {
  n === void 0 && (n = false);
  var r = B(e),
    o = B(e) && fn(e),
    i = I(e),
    a = ee(t, o),
    s = {
      scrollLeft: 0,
      scrollTop: 0
    },
    f = {
      x: 0,
      y: 0
    };
  return (r || !r && !n) && ((C(e) !== `\u0062\u006f\u0064\u0079` || Se(i)) && (s = sn(e)), B(e) ? (f = ee(e, true), f.x += e.clientLeft, f.y += e.clientTop) : i && (f.x = Be(i))), {
    x: a.left + s.scrollLeft - f.x,
    y: a.top + s.scrollTop - f.y,
    width: a.width,
    height: a.height
  };
}
function pn(t) {
  var e = /* @__PURE__ */new Map(),
    n = /* @__PURE__ */new Set(),
    r = [];
  t.forEach(function (i) {
    e.set(i.name, i);
  });
  function o(i) {
    n.add(i.name);
    var a = [].concat(i.requires || [], i.requiresIfExists || []);
    a.forEach(function (s) {
      if (!n.has(s)) {
        var f = e.get(s);
        f && o(f);
      }
    }), r.push(i);
  }
  return t.forEach(function (i) {
    n.has(i.name) || o(i);
  }), r;
}
function un(t) {
  var e = pn(t);
  return ot.reduce(function (n, r) {
    return n.concat(e.filter(function (o) {
      return o.phase === r;
    }));
  }, []);
}
function ln(t) {
  var e;
  return function () {
    return e || (e = new Promise(function (n) {
      Promise.resolve().then(function () {
        e = void 0, n(t());
      });
    })), e;
  };
}
function dn(t) {
  var e = t.reduce(function (n, r) {
    var o = n[r.name];
    return n[r.name] = o ? Object.assign({}, o, r, {
      options: Object.assign({}, o.options, r.options),
      data: Object.assign({}, o.data, r.data)
    }) : r, n;
  }, {});
  return Object.keys(e).map(function (n) {
    return e[n];
  });
}
var Ot = {
  placement: `\u0062\u006f\u0074\u0074\u006f\u006d`,
  modifiers: [],
  strategy: `\u0061\u0062\u0073\u006f\u006c\u0075\u0074\u0065`
};
function $t() {
  for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n];
  return !e.some(function (r) {
    return !(r && typeof r.getBoundingClientRect == `\u0066\u0075\u006e\u0063\u0074\u0069\u006f\u006e`);
  });
}
function we(t) {
  t === void 0 && (t = {});
  var e = t,
    n = e.defaultModifiers,
    r = n === void 0 ? [] : n,
    o = e.defaultOptions,
    i = o === void 0 ? Ot : o;
  return function (a, s, f) {
    f === void 0 && (f = i);
    var c = {
        placement: `\u0062\u006f\u0074\u0074\u006f\u006d`,
        orderedModifiers: [],
        options: Object.assign({}, Ot, i),
        modifiersData: {},
        elements: {
          reference: a,
          popper: s
        },
        attributes: {},
        styles: {}
      },
      u = [],
      m = false,
      v = {
        state: c,
        setOptions: function (p) {
          var g = typeof p == `\u0066\u0075\u006e\u0063\u0074\u0069\u006f\u006e` ? p(c.options) : p;
          h(), c.options = Object.assign({}, i, c.options, g), c.scrollParents = {
            reference: Q(a) ? ce(a) : a.contextElement ? ce(a.contextElement) : [],
            popper: ce(s)
          };
          var x = un(dn([].concat(r, c.options.modifiers)));
          return c.orderedModifiers = x.filter(function (y) {
            return y.enabled;
          }), l(), v.update();
        },
        forceUpdate: function () {
          if (!m) {
            var p = c.elements,
              g = p.reference,
              x = p.popper;
            if ($t(g, x)) {
              c.rects = {
                reference: cn(g, se(x), c.options.strategy === `\u0066\u0069\u0078\u0065\u0064`),
                popper: ke(x)
              }, c.reset = false, c.placement = c.options.placement, c.orderedModifiers.forEach(function (j) {
                return c.modifiersData[j.name] = Object.assign({}, j.data);
              });
              for (var y = 0; y < c.orderedModifiers.length; y++) {
                if (c.reset === true) {
                  c.reset = false, y = -1;
                  continue;
                }
                var $ = c.orderedModifiers[y],
                  d = $.fn,
                  b = $.options,
                  w = b === void 0 ? {} : b,
                  O = $.name;
                typeof d == `\u0066\u0075\u006e\u0063\u0074\u0069\u006f\u006e` && (c = d({
                  state: c,
                  options: w,
                  name: O,
                  instance: v
                }) || c);
              }
            }
          }
        },
        update: ln(function () {
          return new Promise(function (p) {
            v.forceUpdate(), p(c);
          });
        }),
        destroy: function () {
          h(), m = true;
        }
      };
    if (!$t(a, s)) return v;
    v.setOptions(f).then(function (p) {
      !m && f.onFirstUpdate && f.onFirstUpdate(p);
    });
    function l() {
      c.orderedModifiers.forEach(function (p) {
        var g = p.name,
          x = p.options,
          y = x === void 0 ? {} : x,
          $ = p.effect;
        if (typeof $ == `\u0066\u0075\u006e\u0063\u0074\u0069\u006f\u006e`) {
          var d = $({
              state: c,
              name: g,
              instance: v,
              options: y
            }),
            b = function () {};
          u.push(d || b);
        }
      });
    }
    function h() {
      u.forEach(function (p) {
        return p();
      }), u = [];
    }
    return v;
  };
}
we();
var mn = [Re, He, Me, Ae];
we({
  defaultModifiers: mn
});
var gn = [Re, He, Me, Ae, wt, vt, xt, pt, bt],
  yn = we({
    defaultModifiers: gn
  });
export { Ee as E, yn as y };