import { p as m, o as Z } from "./reactPlayer-2f69f369.mjs";
import O from "react";
function K(r) {
  return r && typeof r == "object" && "default" in r ? r.default : r;
}
var V = O, ee = K(V);
function B(r, e, n) {
  return e in r ? Object.defineProperty(r, e, {
    value: n,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : r[e] = n, r;
}
function te(r, e) {
  r.prototype = Object.create(e.prototype), r.prototype.constructor = r, r.__proto__ = e;
}
var re = !!(typeof window < "u" && window.document && window.document.createElement);
function ne(r, e, n) {
  if (typeof r != "function")
    throw new Error("Expected reducePropsToState to be a function.");
  if (typeof e != "function")
    throw new Error("Expected handleStateChangeOnClient to be a function.");
  if (typeof n < "u" && typeof n != "function")
    throw new Error("Expected mapStateOnServer to either be undefined or a function.");
  function t(o) {
    return o.displayName || o.name || "Component";
  }
  return function(u) {
    if (typeof u != "function")
      throw new Error("Expected WrappedComponent to be a React component.");
    var s = [], i;
    function a() {
      i = r(s.map(function(f) {
        return f.props;
      })), c.canUseDOM ? e(i) : n && (i = n(i));
    }
    var c = /* @__PURE__ */ function(f) {
      te(p, f);
      function p() {
        return f.apply(this, arguments) || this;
      }
      p.peek = function() {
        return i;
      }, p.rewind = function() {
        if (p.canUseDOM)
          throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");
        var y = i;
        return i = void 0, s = [], y;
      };
      var d = p.prototype;
      return d.UNSAFE_componentWillMount = function() {
        s.push(this), a();
      }, d.componentDidUpdate = function() {
        a();
      }, d.componentWillUnmount = function() {
        var y = s.indexOf(this);
        s.splice(y, 1), a();
      }, d.render = function() {
        return /* @__PURE__ */ ee.createElement(u, this.props);
      }, p;
    }(V.PureComponent);
    return B(c, "displayName", "SideEffect(" + t(u) + ")"), B(c, "canUseDOM", re), c;
  };
}
var oe = ne, ie = typeof Element < "u", ae = typeof Map == "function", ue = typeof Set == "function", ce = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
function M(r, e) {
  if (r === e)
    return !0;
  if (r && e && typeof r == "object" && typeof e == "object") {
    if (r.constructor !== e.constructor)
      return !1;
    var n, t, o;
    if (Array.isArray(r)) {
      if (n = r.length, n != e.length)
        return !1;
      for (t = n; t-- !== 0; )
        if (!M(r[t], e[t]))
          return !1;
      return !0;
    }
    var u;
    if (ae && r instanceof Map && e instanceof Map) {
      if (r.size !== e.size)
        return !1;
      for (u = r.entries(); !(t = u.next()).done; )
        if (!e.has(t.value[0]))
          return !1;
      for (u = r.entries(); !(t = u.next()).done; )
        if (!M(t.value[1], e.get(t.value[0])))
          return !1;
      return !0;
    }
    if (ue && r instanceof Set && e instanceof Set) {
      if (r.size !== e.size)
        return !1;
      for (u = r.entries(); !(t = u.next()).done; )
        if (!e.has(t.value[0]))
          return !1;
      return !0;
    }
    if (ce && ArrayBuffer.isView(r) && ArrayBuffer.isView(e)) {
      if (n = r.length, n != e.length)
        return !1;
      for (t = n; t-- !== 0; )
        if (r[t] !== e[t])
          return !1;
      return !0;
    }
    if (r.constructor === RegExp)
      return r.source === e.source && r.flags === e.flags;
    if (r.valueOf !== Object.prototype.valueOf)
      return r.valueOf() === e.valueOf();
    if (r.toString !== Object.prototype.toString)
      return r.toString() === e.toString();
    if (o = Object.keys(r), n = o.length, n !== Object.keys(e).length)
      return !1;
    for (t = n; t-- !== 0; )
      if (!Object.prototype.hasOwnProperty.call(e, o[t]))
        return !1;
    if (ie && r instanceof Element)
      return !1;
    for (t = n; t-- !== 0; )
      if (!((o[t] === "_owner" || o[t] === "__v" || o[t] === "__o") && r.$$typeof) && !M(r[o[t]], e[o[t]]))
        return !1;
    return !0;
  }
  return r !== r && e !== e;
}
var se = function(e, n) {
  try {
    return M(e, n);
  } catch (t) {
    if ((t.message || "").match(/stack|recursion/i))
      return console.warn("react-fast-compare cannot handle circular refs"), !1;
    throw t;
  }
}, b = {
  BODY: "bodyAttributes",
  HTML: "htmlAttributes",
  TITLE: "titleAttributes"
}, l = {
  BASE: "base",
  BODY: "body",
  HEAD: "head",
  HTML: "html",
  LINK: "link",
  META: "meta",
  NOSCRIPT: "noscript",
  SCRIPT: "script",
  STYLE: "style",
  TITLE: "title"
}, Y = Object.keys(l).map(function(r) {
  return l[r];
}), v = {
  CHARSET: "charset",
  CSS_TEXT: "cssText",
  HREF: "href",
  HTTPEQUIV: "http-equiv",
  INNER_HTML: "innerHTML",
  ITEM_PROP: "itemprop",
  NAME: "name",
  PROPERTY: "property",
  REL: "rel",
  SRC: "src",
  TARGET: "target"
}, H = {
  accesskey: "accessKey",
  charset: "charSet",
  class: "className",
  contenteditable: "contentEditable",
  contextmenu: "contextMenu",
  "http-equiv": "httpEquiv",
  itemprop: "itemProp",
  tabindex: "tabIndex"
}, L = {
  DEFAULT_TITLE: "defaultTitle",
  DEFER: "defer",
  ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
  ON_CHANGE_CLIENT_STATE: "onChangeClientState",
  TITLE_TEMPLATE: "titleTemplate"
}, fe = Object.keys(H).reduce(function(r, e) {
  return r[H[e]] = e, r;
}, {}), le = [l.NOSCRIPT, l.SCRIPT, l.STYLE], E = "data-react-helmet", pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
  return typeof r;
} : function(r) {
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
}, de = function(r, e) {
  if (!(r instanceof e))
    throw new TypeError("Cannot call a class as a function");
}, Te = function() {
  function r(e, n) {
    for (var t = 0; t < n.length; t++) {
      var o = n[t];
      o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);
    }
  }
  return function(e, n, t) {
    return n && r(e.prototype, n), t && r(e, t), e;
  };
}(), h = Object.assign || function(r) {
  for (var e = 1; e < arguments.length; e++) {
    var n = arguments[e];
    for (var t in n)
      Object.prototype.hasOwnProperty.call(n, t) && (r[t] = n[t]);
  }
  return r;
}, me = function(r, e) {
  if (typeof e != "function" && e !== null)
    throw new TypeError("Super expression must either be null or a function, not " + typeof e);
  r.prototype = Object.create(e && e.prototype, {
    constructor: {
      value: r,
      enumerable: !1,
      writable: !0,
      configurable: !0
    }
  }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(r, e) : r.__proto__ = e);
}, q = function(r, e) {
  var n = {};
  for (var t in r)
    e.indexOf(t) >= 0 || Object.prototype.hasOwnProperty.call(r, t) && (n[t] = r[t]);
  return n;
}, ve = function(r, e) {
  if (!r)
    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  return e && (typeof e == "object" || typeof e == "function") ? e : r;
}, j = function(e) {
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
  return n === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
}, he = function(e) {
  var n = P(e, l.TITLE), t = P(e, L.TITLE_TEMPLATE);
  if (t && n)
    return t.replace(/%s/g, function() {
      return Array.isArray(n) ? n.join("") : n;
    });
  var o = P(e, L.DEFAULT_TITLE);
  return n || o || void 0;
}, ye = function(e) {
  return P(e, L.ON_CHANGE_CLIENT_STATE) || function() {
  };
}, N = function(e, n) {
  return n.filter(function(t) {
    return typeof t[e] < "u";
  }).map(function(t) {
    return t[e];
  }).reduce(function(t, o) {
    return h({}, t, o);
  }, {});
}, Ee = function(e, n) {
  return n.filter(function(t) {
    return typeof t[l.BASE] < "u";
  }).map(function(t) {
    return t[l.BASE];
  }).reverse().reduce(function(t, o) {
    if (!t.length)
      for (var u = Object.keys(o), s = 0; s < u.length; s++) {
        var i = u[s], a = i.toLowerCase();
        if (e.indexOf(a) !== -1 && o[a])
          return t.concat(o);
      }
    return t;
  }, []);
}, I = function(e, n, t) {
  var o = {};
  return t.filter(function(u) {
    return Array.isArray(u[e]) ? !0 : (typeof u[e] < "u" && F("Helmet: " + e + ' should be of type "Array". Instead found type "' + pe(u[e]) + '"'), !1);
  }).map(function(u) {
    return u[e];
  }).reverse().reduce(function(u, s) {
    var i = {};
    s.filter(function(d) {
      for (var T = void 0, y = Object.keys(d), g = 0; g < y.length; g++) {
        var A = y[g], S = A.toLowerCase();
        n.indexOf(S) !== -1 && !(T === v.REL && d[T].toLowerCase() === "canonical") && !(S === v.REL && d[S].toLowerCase() === "stylesheet") && (T = S), n.indexOf(A) !== -1 && (A === v.INNER_HTML || A === v.CSS_TEXT || A === v.ITEM_PROP) && (T = A);
      }
      if (!T || !d[T])
        return !1;
      var R = d[T].toLowerCase();
      return o[T] || (o[T] = {}), i[T] || (i[T] = {}), o[T][R] ? !1 : (i[T][R] = !0, !0);
    }).reverse().forEach(function(d) {
      return u.push(d);
    });
    for (var a = Object.keys(i), c = 0; c < a.length; c++) {
      var f = a[c], p = Z({}, o[f], i[f]);
      o[f] = p;
    }
    return u;
  }, []).reverse();
}, P = function(e, n) {
  for (var t = e.length - 1; t >= 0; t--) {
    var o = e[t];
    if (o.hasOwnProperty(n))
      return o[n];
  }
  return null;
}, ge = function(e) {
  return {
    baseTag: Ee([v.HREF, v.TARGET], e),
    bodyAttributes: N(b.BODY, e),
    defer: P(e, L.DEFER),
    encode: P(e, L.ENCODE_SPECIAL_CHARACTERS),
    htmlAttributes: N(b.HTML, e),
    linkTags: I(l.LINK, [v.REL, v.HREF], e),
    metaTags: I(l.META, [v.NAME, v.CHARSET, v.HTTPEQUIV, v.PROPERTY, v.ITEM_PROP], e),
    noscriptTags: I(l.NOSCRIPT, [v.INNER_HTML], e),
    onChangeClientState: ye(e),
    scriptTags: I(l.SCRIPT, [v.SRC, v.INNER_HTML], e),
    styleTags: I(l.STYLE, [v.CSS_TEXT], e),
    title: he(e),
    titleAttributes: N(b.TITLE, e)
  };
}, x = function() {
  var r = Date.now();
  return function(e) {
    var n = Date.now();
    n - r > 16 ? (r = n, e(n)) : setTimeout(function() {
      x(e);
    }, 0);
  };
}(), $ = function(e) {
  return clearTimeout(e);
}, Ae = typeof window < "u" ? window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || x : window.requestAnimationFrame || x, Se = typeof window < "u" ? window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || $ : window.cancelAnimationFrame || $, F = function(e) {
  return console && typeof console.warn == "function" && console.warn(e);
}, _ = null, Ce = function(e) {
  _ && Se(_), e.defer ? _ = Ae(function() {
    G(e, function() {
      _ = null;
    });
  }) : (G(e), _ = null);
}, G = function(e, n) {
  var t = e.baseTag, o = e.bodyAttributes, u = e.htmlAttributes, s = e.linkTags, i = e.metaTags, a = e.noscriptTags, c = e.onChangeClientState, f = e.scriptTags, p = e.styleTags, d = e.title, T = e.titleAttributes;
  D(l.BODY, o), D(l.HTML, u), be(d, T);
  var y = {
    baseTag: w(l.BASE, t),
    linkTags: w(l.LINK, s),
    metaTags: w(l.META, i),
    noscriptTags: w(l.NOSCRIPT, a),
    scriptTags: w(l.SCRIPT, f),
    styleTags: w(l.STYLE, p)
  }, g = {}, A = {};
  Object.keys(y).forEach(function(S) {
    var R = y[S], U = R.newTags, J = R.oldTags;
    U.length && (g[S] = U), J.length && (A[S] = y[S].oldTags);
  }), n && n(), c(e, g, A);
}, z = function(e) {
  return Array.isArray(e) ? e.join("") : e;
}, be = function(e, n) {
  typeof e < "u" && document.title !== e && (document.title = z(e)), D(l.TITLE, n);
}, D = function(e, n) {
  var t = document.getElementsByTagName(e)[0];
  if (t) {
    for (var o = t.getAttribute(E), u = o ? o.split(",") : [], s = [].concat(u), i = Object.keys(n), a = 0; a < i.length; a++) {
      var c = i[a], f = n[c] || "";
      t.getAttribute(c) !== f && t.setAttribute(c, f), u.indexOf(c) === -1 && u.push(c);
      var p = s.indexOf(c);
      p !== -1 && s.splice(p, 1);
    }
    for (var d = s.length - 1; d >= 0; d--)
      t.removeAttribute(s[d]);
    u.length === s.length ? t.removeAttribute(E) : t.getAttribute(E) !== i.join(",") && t.setAttribute(E, i.join(","));
  }
}, w = function(e, n) {
  var t = document.head || document.querySelector(l.HEAD), o = t.querySelectorAll(e + "[" + E + "]"), u = Array.prototype.slice.call(o), s = [], i = void 0;
  return n && n.length && n.forEach(function(a) {
    var c = document.createElement(e);
    for (var f in a)
      if (a.hasOwnProperty(f))
        if (f === v.INNER_HTML)
          c.innerHTML = a.innerHTML;
        else if (f === v.CSS_TEXT)
          c.styleSheet ? c.styleSheet.cssText = a.cssText : c.appendChild(document.createTextNode(a.cssText));
        else {
          var p = typeof a[f] > "u" ? "" : a[f];
          c.setAttribute(f, p);
        }
    c.setAttribute(E, "true"), u.some(function(d, T) {
      return i = T, c.isEqualNode(d);
    }) ? u.splice(i, 1) : s.push(c);
  }), u.forEach(function(a) {
    return a.parentNode.removeChild(a);
  }), s.forEach(function(a) {
    return t.appendChild(a);
  }), {
    oldTags: u,
    newTags: s
  };
}, X = function(e) {
  return Object.keys(e).reduce(function(n, t) {
    var o = typeof e[t] < "u" ? t + '="' + e[t] + '"' : "" + t;
    return n ? n + " " + o : o;
  }, "");
}, we = function(e, n, t, o) {
  var u = X(t), s = z(n);
  return u ? "<" + e + " " + E + '="true" ' + u + ">" + j(s, o) + "</" + e + ">" : "<" + e + " " + E + '="true">' + j(s, o) + "</" + e + ">";
}, Oe = function(e, n, t) {
  return n.reduce(function(o, u) {
    var s = Object.keys(u).filter(function(c) {
      return !(c === v.INNER_HTML || c === v.CSS_TEXT);
    }).reduce(function(c, f) {
      var p = typeof u[f] > "u" ? f : f + '="' + j(u[f], t) + '"';
      return c ? c + " " + p : p;
    }, ""), i = u.innerHTML || u.cssText || "", a = le.indexOf(e) === -1;
    return o + "<" + e + " " + E + '="true" ' + s + (a ? "/>" : ">" + i + "</" + e + ">");
  }, "");
}, W = function(e) {
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  return Object.keys(e).reduce(function(t, o) {
    return t[H[o] || o] = e[o], t;
  }, n);
}, Pe = function(e) {
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  return Object.keys(e).reduce(function(t, o) {
    return t[fe[o] || o] = e[o], t;
  }, n);
}, Re = function(e, n, t) {
  var o, u = (o = {
    key: n
  }, o[E] = !0, o), s = W(t, u);
  return [O.createElement(l.TITLE, s, n)];
}, Ie = function(e, n) {
  return n.map(function(t, o) {
    var u, s = (u = {
      key: o
    }, u[E] = !0, u);
    return Object.keys(t).forEach(function(i) {
      var a = H[i] || i;
      if (a === v.INNER_HTML || a === v.CSS_TEXT) {
        var c = t.innerHTML || t.cssText;
        s.dangerouslySetInnerHTML = { __html: c };
      } else
        s[a] = t[i];
    }), O.createElement(e, s);
  });
}, C = function(e, n, t) {
  switch (e) {
    case l.TITLE:
      return {
        toComponent: function() {
          return Re(e, n.title, n.titleAttributes);
        },
        toString: function() {
          return we(e, n.title, n.titleAttributes, t);
        }
      };
    case b.BODY:
    case b.HTML:
      return {
        toComponent: function() {
          return W(n);
        },
        toString: function() {
          return X(n);
        }
      };
    default:
      return {
        toComponent: function() {
          return Ie(e, n);
        },
        toString: function() {
          return Oe(e, n, t);
        }
      };
  }
}, Q = function(e) {
  var n = e.baseTag, t = e.bodyAttributes, o = e.encode, u = e.htmlAttributes, s = e.linkTags, i = e.metaTags, a = e.noscriptTags, c = e.scriptTags, f = e.styleTags, p = e.title, d = p === void 0 ? "" : p, T = e.titleAttributes;
  return {
    base: C(l.BASE, n, o),
    bodyAttributes: C(b.BODY, t, o),
    htmlAttributes: C(b.HTML, u, o),
    link: C(l.LINK, s, o),
    meta: C(l.META, i, o),
    noscript: C(l.NOSCRIPT, a, o),
    script: C(l.SCRIPT, c, o),
    style: C(l.STYLE, f, o),
    title: C(l.TITLE, { title: d, titleAttributes: T }, o)
  };
}, _e = function(e) {
  var n, t;
  return t = n = function(o) {
    me(u, o);
    function u() {
      return de(this, u), ve(this, o.apply(this, arguments));
    }
    return u.prototype.shouldComponentUpdate = function(i) {
      return !se(this.props, i);
    }, u.prototype.mapNestedChildrenToProps = function(i, a) {
      if (!a)
        return null;
      switch (i.type) {
        case l.SCRIPT:
        case l.NOSCRIPT:
          return {
            innerHTML: a
          };
        case l.STYLE:
          return {
            cssText: a
          };
      }
      throw new Error("<" + i.type + " /> elements are self-closing and can not contain children. Refer to our API for more information.");
    }, u.prototype.flattenArrayTypeChildren = function(i) {
      var a, c = i.child, f = i.arrayTypeChildren, p = i.newChildProps, d = i.nestedChildren;
      return h({}, f, (a = {}, a[c.type] = [].concat(f[c.type] || [], [h({}, p, this.mapNestedChildrenToProps(c, d))]), a));
    }, u.prototype.mapObjectTypeChildren = function(i) {
      var a, c, f = i.child, p = i.newProps, d = i.newChildProps, T = i.nestedChildren;
      switch (f.type) {
        case l.TITLE:
          return h({}, p, (a = {}, a[f.type] = T, a.titleAttributes = h({}, d), a));
        case l.BODY:
          return h({}, p, {
            bodyAttributes: h({}, d)
          });
        case l.HTML:
          return h({}, p, {
            htmlAttributes: h({}, d)
          });
      }
      return h({}, p, (c = {}, c[f.type] = h({}, d), c));
    }, u.prototype.mapArrayTypeChildrenToProps = function(i, a) {
      var c = h({}, a);
      return Object.keys(i).forEach(function(f) {
        var p;
        c = h({}, c, (p = {}, p[f] = i[f], p));
      }), c;
    }, u.prototype.warnOnInvalidChildren = function(i, a) {
      if (process.env.NODE_ENV !== "production") {
        if (!Y.some(function(c) {
          return i.type === c;
        }))
          return typeof i.type == "function" ? F("You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.") : F("Only elements types " + Y.join(", ") + " are allowed. Helmet does not support rendering <" + i.type + "> elements. Refer to our API for more information.");
        if (a && typeof a != "string" && (!Array.isArray(a) || a.some(function(c) {
          return typeof c != "string";
        })))
          throw new Error("Helmet expects a string as a child of <" + i.type + ">. Did you forget to wrap your children in braces? ( <" + i.type + ">{``}</" + i.type + "> ) Refer to our API for more information.");
      }
      return !0;
    }, u.prototype.mapChildrenToProps = function(i, a) {
      var c = this, f = {};
      return O.Children.forEach(i, function(p) {
        if (!(!p || !p.props)) {
          var d = p.props, T = d.children, y = q(d, ["children"]), g = Pe(y);
          switch (c.warnOnInvalidChildren(p, T), p.type) {
            case l.LINK:
            case l.META:
            case l.NOSCRIPT:
            case l.SCRIPT:
            case l.STYLE:
              f = c.flattenArrayTypeChildren({
                child: p,
                arrayTypeChildren: f,
                newChildProps: g,
                nestedChildren: T
              });
              break;
            default:
              a = c.mapObjectTypeChildren({
                child: p,
                newProps: a,
                newChildProps: g,
                nestedChildren: T
              });
              break;
          }
        }
      }), a = this.mapArrayTypeChildrenToProps(f, a), a;
    }, u.prototype.render = function() {
      var i = this.props, a = i.children, c = q(i, ["children"]), f = h({}, c);
      return a && (f = this.mapChildrenToProps(a, f)), O.createElement(e, f);
    }, Te(u, null, [{
      key: "canUseDOM",
      set: function(i) {
        e.canUseDOM = i;
      }
    }]), u;
  }(O.Component), n.propTypes = {
    base: m.object,
    bodyAttributes: m.object,
    children: m.oneOfType([m.arrayOf(m.node), m.node]),
    defaultTitle: m.string,
    defer: m.bool,
    encodeSpecialCharacters: m.bool,
    htmlAttributes: m.object,
    link: m.arrayOf(m.object),
    meta: m.arrayOf(m.object),
    noscript: m.arrayOf(m.object),
    onChangeClientState: m.func,
    script: m.arrayOf(m.object),
    style: m.arrayOf(m.object),
    title: m.string,
    titleAttributes: m.object,
    titleTemplate: m.string
  }, n.defaultProps = {
    defer: !0,
    encodeSpecialCharacters: !0
  }, n.peek = e.peek, n.rewind = function() {
    var o = e.rewind();
    return o || (o = Q({
      baseTag: [],
      bodyAttributes: {},
      encodeSpecialCharacters: !0,
      htmlAttributes: {},
      linkTags: [],
      metaTags: [],
      noscriptTags: [],
      scriptTags: [],
      styleTags: [],
      title: "",
      titleAttributes: {}
    })), o;
  }, t;
}, Le = function() {
  return null;
}, Me = oe(ge, Ce, Q)(Le), k = _e(Me);
k.renderStatic = k.rewind;
const je = k;
export {
  k as H,
  je as a
};
