import { jsxs as xe, jsx as Q } from "react/jsx-runtime";
import K, { forwardRef as He } from "react";
import { _ as ze } from "./twind.BLUk_ZzT.js";
import { aj as Ve, c as U, g as Be } from "./_commonjsHelpers.BCwc0xb5.js";
import { c as oe, p as Fe } from "./index.B5PWYuzd.js";
import { b as Ke } from "./use-section-style.Cg6VYj5D.js";
var G = Number.isNaN || function(t) {
  return typeof t == "number" && t !== t;
};
function We(e, t) {
  return !!(e === t || G(e) && G(t));
}
function Xe(e, t) {
  if (e.length !== t.length)
    return !1;
  for (var r = 0; r < e.length; r++)
    if (!We(e[r], t[r]))
      return !1;
  return !0;
}
function Ye(e, t) {
  t === void 0 && (t = Xe);
  var r, a = [], n, o = !1;
  function h() {
    for (var _ = [], f = 0; f < arguments.length; f++)
      _[f] = arguments[f];
    return o && r === this && t(_, a) || (n = e.apply(this, _), o = !0, r = this, a = _), n;
  }
  return h;
}
const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  default: Ye
}, Symbol.toStringTag, { value: "Module" }));
var Je = function(t, r, a) {
  var n = document.head || document.getElementsByTagName("head")[0], o = document.createElement("script");
  typeof r == "function" && (a = r, r = {}), r = r || {}, a = a || function() {
  }, o.type = r.type || "text/javascript", o.charset = r.charset || "utf8", o.async = "async" in r ? !!r.async : !0, o.src = t, r.attrs && Ze(o, r.attrs), r.text && (o.text = "" + r.text);
  var h = "onload" in o ? ee : Qe;
  h(o, a), o.onload || ee(o, a), n.appendChild(o);
};
function Ze(e, t) {
  for (var r in t)
    e.setAttribute(r, t[r]);
}
function ee(e, t) {
  e.onload = function() {
    this.onerror = this.onload = null, t(null, e);
  }, e.onerror = function() {
    this.onerror = this.onload = null, t(new Error("Failed to load " + this.src), e);
  };
}
function Qe(e, t) {
  e.onreadystatechange = function() {
    this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null, t(null, e));
  };
}
var Ge = Object.create, I = Object.defineProperty, et = Object.getOwnPropertyDescriptor, tt = Object.getOwnPropertyNames, rt = Object.getPrototypeOf, at = Object.prototype.hasOwnProperty, nt = (e, t) => {
  for (var r in t)
    I(e, r, { get: t[r], enumerable: !0 });
}, se = (e, t, r, a) => {
  if (t && typeof t == "object" || typeof t == "function")
    for (let n of tt(t))
      !at.call(e, n) && n !== r && I(e, n, { get: () => t[n], enumerable: !(a = et(t, n)) || a.enumerable });
  return e;
}, W = (e, t, r) => (r = e != null ? Ge(rt(e)) : {}, se(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  !e || !e.__esModule ? I(r, "default", { value: e, enumerable: !0 }) : r,
  e
)), ot = (e) => se(I({}, "__esModule", { value: !0 }), e), ie = {};
nt(ie, {
  callPlayer: () => Ot,
  getConfig: () => vt,
  getSDK: () => Pt,
  isBlobUrl: () => bt,
  isMediaStream: () => wt,
  lazy: () => ut,
  omit: () => gt,
  parseEndTime: () => ht,
  parseStartTime: () => dt,
  queryString: () => mt,
  randomString: () => _t,
  supportsWebKitPresentationMode: () => St
});
var L = ot(ie), st = W(K), it = W(Je), lt = W(oe);
const ut = (e) => st.default.lazy(async () => {
  const t = await e();
  return typeof t.default == "function" ? t : t.default;
}), pt = /[?&#](?:start|t)=([0-9hms]+)/, ct = /[?&#]end=([0-9hms]+)/, z = /(\d+)(h|m|s)/g, ft = /^\d+$/;
function le(e, t) {
  if (e instanceof Array)
    return;
  const r = e.match(t);
  if (r) {
    const a = r[1];
    if (a.match(z))
      return yt(a);
    if (ft.test(a))
      return parseInt(a);
  }
}
function yt(e) {
  let t = 0, r = z.exec(e);
  for (; r !== null; ) {
    const [, a, n] = r;
    n === "h" && (t += parseInt(a, 10) * 60 * 60), n === "m" && (t += parseInt(a, 10) * 60), n === "s" && (t += parseInt(a, 10)), r = z.exec(e);
  }
  return t;
}
function dt(e) {
  return le(e, pt);
}
function ht(e) {
  return le(e, ct);
}
function _t() {
  return Math.random().toString(36).substr(2, 5);
}
function mt(e) {
  return Object.keys(e).map((t) => `${t}=${e[t]}`).join("&");
}
function j(e) {
  return window[e] ? window[e] : window.exports && window.exports[e] ? window.exports[e] : window.module && window.module.exports && window.module.exports[e] ? window.module.exports[e] : null;
}
const O = {}, Pt = function(t, r, a = null, n = () => !0, o = it.default) {
  const h = j(r);
  return h && n(h) ? Promise.resolve(h) : new Promise((_, f) => {
    if (O[t]) {
      O[t].push({ resolve: _, reject: f });
      return;
    }
    O[t] = [{ resolve: _, reject: f }];
    const g = (v) => {
      O[t].forEach((S) => S.resolve(v));
    };
    if (a) {
      const v = window[a];
      window[a] = function() {
        v && v(), g(j(r));
      };
    }
    o(t, (v) => {
      v ? (O[t].forEach((S) => S.reject(v)), O[t] = null) : a || g(j(r));
    });
  });
};
function vt(e, t) {
  return (0, lt.default)(t.config, e.config);
}
function gt(e, ...t) {
  const r = [].concat(...t), a = {}, n = Object.keys(e);
  for (const o of n)
    r.indexOf(o) === -1 && (a[o] = e[o]);
  return a;
}
function Ot(e, ...t) {
  if (!this.player || !this.player[e]) {
    let r = `ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;
    return this.player ? this.player[e] || (r += "The method was not available") : r += "The player was not available", console.warn(r, "font-weight: bold", ""), null;
  }
  return this.player[e](...t);
}
function wt(e) {
  return typeof window < "u" && typeof window.MediaStream < "u" && e instanceof window.MediaStream;
}
function bt(e) {
  return /^blob:/.test(e);
}
function St(e = document.createElement("video")) {
  const t = /iPhone|iPod/.test(navigator.userAgent) === !1;
  return e.webkitSupportsPresentationMode && typeof e.webkitSetPresentationMode == "function" && t;
}
var X = Object.defineProperty, Tt = Object.getOwnPropertyDescriptor, Et = Object.getOwnPropertyNames, At = Object.prototype.hasOwnProperty, Ct = (e, t) => {
  for (var r in t)
    X(e, r, { get: t[r], enumerable: !0 });
}, Mt = (e, t, r, a) => {
  if (t && typeof t == "object" || typeof t == "function")
    for (let n of Et(t))
      !At.call(e, n) && n !== r && X(e, n, { get: () => t[n], enumerable: !(a = Tt(t, n)) || a.enumerable });
  return e;
}, Rt = (e) => Mt(X({}, "__esModule", { value: !0 }), e), ue = {};
Ct(ue, {
  AUDIO_EXTENSIONS: () => Y,
  DASH_EXTENSIONS: () => be,
  FLV_EXTENSIONS: () => Se,
  HLS_EXTENSIONS: () => J,
  MATCH_URL_DAILYMOTION: () => ve,
  MATCH_URL_FACEBOOK: () => ye,
  MATCH_URL_FACEBOOK_WATCH: () => de,
  MATCH_URL_KALTURA: () => we,
  MATCH_URL_MIXCLOUD: () => ge,
  MATCH_URL_MUX: () => fe,
  MATCH_URL_SOUNDCLOUD: () => pe,
  MATCH_URL_STREAMABLE: () => he,
  MATCH_URL_TWITCH_CHANNEL: () => Pe,
  MATCH_URL_TWITCH_VIDEO: () => me,
  MATCH_URL_VIDYARD: () => Oe,
  MATCH_URL_VIMEO: () => ce,
  MATCH_URL_WISTIA: () => _e,
  MATCH_URL_YOUTUBE: () => V,
  VIDEO_EXTENSIONS: () => q,
  canPlay: () => It
});
var $t = Rt(ue), te = L;
const V = /(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//, pe = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/, ce = /vimeo\.com\/(?!progressive_redirect).+/, fe = /stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/, ye = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/, de = /^https?:\/\/fb\.watch\/.+$/, he = /streamable\.com\/([a-z0-9]+)$/, _e = /(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/, me = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/, Pe = /(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/, ve = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/, ge = /mixcloud\.com\/([^/]+\/[^/]+)/, Oe = /vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/, we = /^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/, Y = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i, q = /\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i, J = /\.(m3u8)($|\?)/i, be = /\.(mpd)($|\?)/i, Se = /\.(flv)($|\?)/i, B = (e) => {
  if (e instanceof Array) {
    for (const t of e)
      if (typeof t == "string" && B(t) || B(t.src))
        return !0;
    return !1;
  }
  return (0, te.isMediaStream)(e) || (0, te.isBlobUrl)(e) ? !0 : Y.test(e) || q.test(e) || J.test(e) || be.test(e) || Se.test(e);
}, It = {
  youtube: (e) => e instanceof Array ? e.every((t) => V.test(t)) : V.test(e),
  soundcloud: (e) => pe.test(e) && !Y.test(e),
  vimeo: (e) => ce.test(e) && !q.test(e) && !J.test(e),
  mux: (e) => fe.test(e),
  facebook: (e) => ye.test(e) || de.test(e),
  streamable: (e) => he.test(e),
  wistia: (e) => _e.test(e),
  twitch: (e) => me.test(e) || Pe.test(e),
  dailymotion: (e) => ve.test(e),
  mixcloud: (e) => ge.test(e),
  vidyard: (e) => Oe.test(e),
  kaltura: (e) => we.test(e),
  file: B
};
var Z = Object.defineProperty, Lt = Object.getOwnPropertyDescriptor, Dt = Object.getOwnPropertyNames, kt = Object.prototype.hasOwnProperty, Nt = (e, t) => {
  for (var r in t)
    Z(e, r, { get: t[r], enumerable: !0 });
}, Ut = (e, t, r, a) => {
  if (t && typeof t == "object" || typeof t == "function")
    for (let n of Dt(t))
      !kt.call(e, n) && n !== r && Z(e, n, { get: () => t[n], enumerable: !(a = Lt(t, n)) || a.enumerable });
  return e;
}, jt = (e) => Ut(Z({}, "__esModule", { value: !0 }), e), Te = {};
Nt(Te, {
  default: () => Ht
});
var xt = jt(Te), m = L, y = $t, Ht = [
  {
    key: "youtube",
    name: "YouTube",
    canPlay: y.canPlay.youtube,
    lazyPlayer: (0, m.lazy)(() => import(
      /* webpackChunkName: 'reactPlayerYouTube' */
      "./YouTube.CnGtff6A.js"
    ).then((e) => e.Y))
  },
  {
    key: "soundcloud",
    name: "SoundCloud",
    canPlay: y.canPlay.soundcloud,
    lazyPlayer: (0, m.lazy)(() => import(
      /* webpackChunkName: 'reactPlayerSoundCloud' */
      "./SoundCloud.bPbEzcD8.js"
    ).then((e) => e.S))
  },
  {
    key: "vimeo",
    name: "Vimeo",
    canPlay: y.canPlay.vimeo,
    lazyPlayer: (0, m.lazy)(() => import(
      /* webpackChunkName: 'reactPlayerVimeo' */
      "./Vimeo.Bq-SniUx.js"
    ).then((e) => e.V))
  },
  {
    key: "mux",
    name: "Mux",
    canPlay: y.canPlay.mux,
    lazyPlayer: (0, m.lazy)(() => import(
      /* webpackChunkName: 'reactPlayerMux' */
      "./Mux.C5eY97U4.js"
    ).then((e) => e.M))
  },
  {
    key: "facebook",
    name: "Facebook",
    canPlay: y.canPlay.facebook,
    lazyPlayer: (0, m.lazy)(() => import(
      /* webpackChunkName: 'reactPlayerFacebook' */
      "./Facebook.D1wjEwNo.js"
    ).then((e) => e.F))
  },
  {
    key: "streamable",
    name: "Streamable",
    canPlay: y.canPlay.streamable,
    lazyPlayer: (0, m.lazy)(() => import(
      /* webpackChunkName: 'reactPlayerStreamable' */
      "./Streamable.CQfKHLRD.js"
    ).then((e) => e.S))
  },
  {
    key: "wistia",
    name: "Wistia",
    canPlay: y.canPlay.wistia,
    lazyPlayer: (0, m.lazy)(() => import(
      /* webpackChunkName: 'reactPlayerWistia' */
      "./Wistia.BZlVgCMI.js"
    ).then((e) => e.W))
  },
  {
    key: "twitch",
    name: "Twitch",
    canPlay: y.canPlay.twitch,
    lazyPlayer: (0, m.lazy)(() => import(
      /* webpackChunkName: 'reactPlayerTwitch' */
      "./Twitch.BcN6RR4g.js"
    ).then((e) => e.T))
  },
  {
    key: "dailymotion",
    name: "DailyMotion",
    canPlay: y.canPlay.dailymotion,
    lazyPlayer: (0, m.lazy)(() => import(
      /* webpackChunkName: 'reactPlayerDailyMotion' */
      "./DailyMotion.UWQSb4wY.js"
    ).then((e) => e.D))
  },
  {
    key: "mixcloud",
    name: "Mixcloud",
    canPlay: y.canPlay.mixcloud,
    lazyPlayer: (0, m.lazy)(() => import(
      /* webpackChunkName: 'reactPlayerMixcloud' */
      "./Mixcloud.cR8Sro3R.js"
    ).then((e) => e.M))
  },
  {
    key: "vidyard",
    name: "Vidyard",
    canPlay: y.canPlay.vidyard,
    lazyPlayer: (0, m.lazy)(() => import(
      /* webpackChunkName: 'reactPlayerVidyard' */
      "./Vidyard.DrNfB_He.js"
    ).then((e) => e.V))
  },
  {
    key: "kaltura",
    name: "Kaltura",
    canPlay: y.canPlay.kaltura,
    lazyPlayer: (0, m.lazy)(() => import(
      /* webpackChunkName: 'reactPlayerKaltura' */
      "./Kaltura.DO8141oW.js"
    ).then((e) => e.K))
  },
  {
    key: "file",
    name: "FilePlayer",
    canPlay: y.canPlay.file,
    canEnablePIP: (e) => y.canPlay.file(e) && (document.pictureInPictureEnabled || (0, m.supportsWebKitPresentationMode)()) && !y.AUDIO_EXTENSIONS.test(e),
    lazyPlayer: (0, m.lazy)(() => import(
      /* webpackChunkName: 'reactPlayerFilePlayer' */
      "./FilePlayer.BgYIBfHk.js"
    ).then((e) => e.F))
  }
];
const zt = /* @__PURE__ */ Ve(qe);
var Vt = typeof Element < "u", Bt = typeof Map == "function", Ft = typeof Set == "function", Kt = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
function $(e, t) {
  if (e === t) return !0;
  if (e && t && typeof e == "object" && typeof t == "object") {
    if (e.constructor !== t.constructor) return !1;
    var r, a, n;
    if (Array.isArray(e)) {
      if (r = e.length, r != t.length) return !1;
      for (a = r; a-- !== 0; )
        if (!$(e[a], t[a])) return !1;
      return !0;
    }
    var o;
    if (Bt && e instanceof Map && t instanceof Map) {
      if (e.size !== t.size) return !1;
      for (o = e.entries(); !(a = o.next()).done; )
        if (!t.has(a.value[0])) return !1;
      for (o = e.entries(); !(a = o.next()).done; )
        if (!$(a.value[1], t.get(a.value[0]))) return !1;
      return !0;
    }
    if (Ft && e instanceof Set && t instanceof Set) {
      if (e.size !== t.size) return !1;
      for (o = e.entries(); !(a = o.next()).done; )
        if (!t.has(a.value[0])) return !1;
      return !0;
    }
    if (Kt && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
      if (r = e.length, r != t.length) return !1;
      for (a = r; a-- !== 0; )
        if (e[a] !== t[a]) return !1;
      return !0;
    }
    if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags;
    if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof t.valueOf == "function") return e.valueOf() === t.valueOf();
    if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof t.toString == "function") return e.toString() === t.toString();
    if (n = Object.keys(e), r = n.length, r !== Object.keys(t).length) return !1;
    for (a = r; a-- !== 0; )
      if (!Object.prototype.hasOwnProperty.call(t, n[a])) return !1;
    if (Vt && e instanceof Element) return !1;
    for (a = r; a-- !== 0; )
      if (!((n[a] === "_owner" || n[a] === "__v" || n[a] === "__o") && e.$$typeof) && !$(e[n[a]], t[n[a]]))
        return !1;
    return !0;
  }
  return e !== e && t !== t;
}
var Ee = function(t, r) {
  try {
    return $(t, r);
  } catch (a) {
    if ((a.message || "").match(/stack|recursion/i))
      return console.warn("react-fast-compare cannot handle circular refs"), !1;
    throw a;
  }
}, Wt = Object.create, D = Object.defineProperty, Xt = Object.getOwnPropertyDescriptor, Yt = Object.getOwnPropertyNames, qt = Object.getPrototypeOf, Jt = Object.prototype.hasOwnProperty, Zt = (e, t) => {
  for (var r in t)
    D(e, r, { get: t[r], enumerable: !0 });
}, Ae = (e, t, r, a) => {
  if (t && typeof t == "object" || typeof t == "function")
    for (let n of Yt(t))
      !Jt.call(e, n) && n !== r && D(e, n, { get: () => t[n], enumerable: !(a = Xt(t, n)) || a.enumerable });
  return e;
}, Qt = (e, t, r) => (r = e != null ? Wt(qt(e)) : {}, Ae(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  !e || !e.__esModule ? D(r, "default", { value: e, enumerable: !0 }) : r,
  e
)), Gt = (e) => Ae(D({}, "__esModule", { value: !0 }), e), Ce = {};
Zt(Ce, {
  defaultProps: () => rr,
  propTypes: () => tr
});
var Me = Gt(Ce), er = Qt(Fe);
const { string: u, bool: d, number: w, array: x, oneOfType: T, shape: P, object: c, func: l, node: re } = er.default, tr = {
  url: T([u, x, c]),
  playing: d,
  loop: d,
  controls: d,
  volume: w,
  muted: d,
  playbackRate: w,
  width: T([u, w]),
  height: T([u, w]),
  style: c,
  progressInterval: w,
  playsinline: d,
  pip: d,
  stopOnUnmount: d,
  light: T([d, u, c]),
  playIcon: re,
  previewTabIndex: w,
  previewAriaLabel: u,
  fallback: re,
  oEmbedUrl: u,
  wrapper: T([
    u,
    l,
    P({ render: l.isRequired })
  ]),
  config: P({
    soundcloud: P({
      options: c
    }),
    youtube: P({
      playerVars: c,
      embedOptions: c,
      onUnstarted: l
    }),
    facebook: P({
      appId: u,
      version: u,
      playerId: u,
      attributes: c
    }),
    dailymotion: P({
      params: c
    }),
    vimeo: P({
      playerOptions: c,
      title: u
    }),
    mux: P({
      attributes: c,
      version: u
    }),
    file: P({
      attributes: c,
      tracks: x,
      forceVideo: d,
      forceAudio: d,
      forceHLS: d,
      forceSafariHLS: d,
      forceDisableHls: d,
      forceDASH: d,
      forceFLV: d,
      hlsOptions: c,
      hlsVersion: u,
      dashVersion: u,
      flvVersion: u
    }),
    wistia: P({
      options: c,
      playerId: u,
      customControls: x
    }),
    mixcloud: P({
      options: c
    }),
    twitch: P({
      options: c,
      playerId: u
    }),
    vidyard: P({
      options: c
    })
  }),
  onReady: l,
  onStart: l,
  onPlay: l,
  onPause: l,
  onBuffer: l,
  onBufferEnd: l,
  onEnded: l,
  onError: l,
  onDuration: l,
  onSeek: l,
  onPlaybackRateChange: l,
  onPlaybackQualityChange: l,
  onProgress: l,
  onClickPreview: l,
  onEnablePIP: l,
  onDisablePIP: l
}, p = () => {
}, rr = {
  playing: !1,
  loop: !1,
  controls: !1,
  volume: null,
  muted: !1,
  playbackRate: 1,
  width: "640px",
  height: "360px",
  style: {},
  progressInterval: 1e3,
  playsinline: !1,
  pip: !1,
  stopOnUnmount: !0,
  light: !1,
  fallback: null,
  wrapper: "div",
  previewTabIndex: 0,
  previewAriaLabel: "",
  oEmbedUrl: "https://noembed.com/embed?url={url}",
  config: {
    soundcloud: {
      options: {
        visual: !0,
        // Undocumented, but makes player fill container and look better
        buying: !1,
        liking: !1,
        download: !1,
        sharing: !1,
        show_comments: !1,
        show_playcount: !1
      }
    },
    youtube: {
      playerVars: {
        playsinline: 1,
        showinfo: 0,
        rel: 0,
        iv_load_policy: 3,
        modestbranding: 1
      },
      embedOptions: {},
      onUnstarted: p
    },
    facebook: {
      appId: "1309697205772819",
      version: "v3.3",
      playerId: null,
      attributes: {}
    },
    dailymotion: {
      params: {
        api: 1,
        "endscreen-enable": !1
      }
    },
    vimeo: {
      playerOptions: {
        autopause: !1,
        byline: !1,
        portrait: !1,
        title: !1
      },
      title: null
    },
    mux: {
      attributes: {},
      version: "2"
    },
    file: {
      attributes: {},
      tracks: [],
      forceVideo: !1,
      forceAudio: !1,
      forceHLS: !1,
      forceDASH: !1,
      forceFLV: !1,
      hlsOptions: {},
      hlsVersion: "1.1.4",
      dashVersion: "3.1.3",
      flvVersion: "1.5.0",
      forceDisableHls: !1
    },
    wistia: {
      options: {},
      playerId: null,
      customControls: null
    },
    mixcloud: {
      options: {
        hide_cover: 1
      }
    },
    twitch: {
      options: {},
      playerId: null
    },
    vidyard: {
      options: {}
    }
  },
  onReady: p,
  onStart: p,
  onPlay: p,
  onPause: p,
  onBuffer: p,
  onBufferEnd: p,
  onEnded: p,
  onError: p,
  onDuration: p,
  onSeek: p,
  onPlaybackRateChange: p,
  onPlaybackQualityChange: p,
  onProgress: p,
  onClickPreview: p,
  onEnablePIP: p,
  onDisablePIP: p
};
var ar = Object.create, C = Object.defineProperty, nr = Object.getOwnPropertyDescriptor, or = Object.getOwnPropertyNames, sr = Object.getPrototypeOf, ir = Object.prototype.hasOwnProperty, lr = (e, t, r) => t in e ? C(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ur = (e, t) => {
  for (var r in t)
    C(e, r, { get: t[r], enumerable: !0 });
}, Re = (e, t, r, a) => {
  if (t && typeof t == "object" || typeof t == "function")
    for (let n of or(t))
      !ir.call(e, n) && n !== r && C(e, n, { get: () => t[n], enumerable: !(a = nr(t, n)) || a.enumerable });
  return e;
}, $e = (e, t, r) => (r = e != null ? ar(sr(e)) : {}, Re(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  !e || !e.__esModule ? C(r, "default", { value: e, enumerable: !0 }) : r,
  e
)), pr = (e) => Re(C({}, "__esModule", { value: !0 }), e), i = (e, t, r) => (lr(e, typeof t != "symbol" ? t + "" : t, r), r), Ie = {};
ur(Ie, {
  default: () => k
});
var cr = pr(Ie), ae = $e(K), fr = $e(Ee), Le = Me, yr = L;
const dr = 5e3;
class k extends ae.Component {
  constructor() {
    super(...arguments), i(this, "mounted", !1), i(this, "isReady", !1), i(this, "isPlaying", !1), i(this, "isLoading", !0), i(this, "loadOnReady", null), i(this, "startOnPlay", !0), i(this, "seekOnPlay", null), i(this, "onDurationCalled", !1), i(this, "handlePlayerMount", (t) => {
      if (this.player) {
        this.progress();
        return;
      }
      this.player = t, this.player.load(this.props.url), this.progress();
    }), i(this, "getInternalPlayer", (t) => this.player ? this.player[t] : null), i(this, "progress", () => {
      if (this.props.url && this.player && this.isReady) {
        const t = this.getCurrentTime() || 0, r = this.getSecondsLoaded(), a = this.getDuration();
        if (a) {
          const n = {
            playedSeconds: t,
            played: t / a
          };
          r !== null && (n.loadedSeconds = r, n.loaded = r / a), (n.playedSeconds !== this.prevPlayed || n.loadedSeconds !== this.prevLoaded) && this.props.onProgress(n), this.prevPlayed = n.playedSeconds, this.prevLoaded = n.loadedSeconds;
        }
      }
      this.progressTimeout = setTimeout(this.progress, this.props.progressFrequency || this.props.progressInterval);
    }), i(this, "handleReady", () => {
      if (!this.mounted)
        return;
      this.isReady = !0, this.isLoading = !1;
      const { onReady: t, playing: r, volume: a, muted: n } = this.props;
      t(), !n && a !== null && this.player.setVolume(a), this.loadOnReady ? (this.player.load(this.loadOnReady, !0), this.loadOnReady = null) : r && this.player.play(), this.handleDurationCheck();
    }), i(this, "handlePlay", () => {
      this.isPlaying = !0, this.isLoading = !1;
      const { onStart: t, onPlay: r, playbackRate: a } = this.props;
      this.startOnPlay && (this.player.setPlaybackRate && a !== 1 && this.player.setPlaybackRate(a), t(), this.startOnPlay = !1), r(), this.seekOnPlay && (this.seekTo(this.seekOnPlay), this.seekOnPlay = null), this.handleDurationCheck();
    }), i(this, "handlePause", (t) => {
      this.isPlaying = !1, this.isLoading || this.props.onPause(t);
    }), i(this, "handleEnded", () => {
      const { activePlayer: t, loop: r, onEnded: a } = this.props;
      t.loopOnEnded && r && this.seekTo(0), r || (this.isPlaying = !1, a());
    }), i(this, "handleError", (...t) => {
      this.isLoading = !1, this.props.onError(...t);
    }), i(this, "handleDurationCheck", () => {
      clearTimeout(this.durationCheckTimeout);
      const t = this.getDuration();
      t ? this.onDurationCalled || (this.props.onDuration(t), this.onDurationCalled = !0) : this.durationCheckTimeout = setTimeout(this.handleDurationCheck, 100);
    }), i(this, "handleLoaded", () => {
      this.isLoading = !1;
    });
  }
  componentDidMount() {
    this.mounted = !0;
  }
  componentWillUnmount() {
    clearTimeout(this.progressTimeout), clearTimeout(this.durationCheckTimeout), this.isReady && this.props.stopOnUnmount && (this.player.stop(), this.player.disablePIP && this.player.disablePIP()), this.mounted = !1;
  }
  componentDidUpdate(t) {
    if (!this.player)
      return;
    const { url: r, playing: a, volume: n, muted: o, playbackRate: h, pip: _, loop: f, activePlayer: g, disableDeferredLoading: v } = this.props;
    if (!(0, fr.default)(t.url, r)) {
      if (this.isLoading && !g.forceLoad && !v && !(0, yr.isMediaStream)(r)) {
        console.warn(`ReactPlayer: the attempt to load ${r} is being deferred until the player has loaded`), this.loadOnReady = r;
        return;
      }
      this.isLoading = !0, this.startOnPlay = !0, this.onDurationCalled = !1, this.player.load(r, this.isReady);
    }
    !t.playing && a && !this.isPlaying && this.player.play(), t.playing && !a && this.isPlaying && this.player.pause(), !t.pip && _ && this.player.enablePIP && this.player.enablePIP(), t.pip && !_ && this.player.disablePIP && this.player.disablePIP(), t.volume !== n && n !== null && this.player.setVolume(n), t.muted !== o && (o ? this.player.mute() : (this.player.unmute(), n !== null && setTimeout(() => this.player.setVolume(n)))), t.playbackRate !== h && this.player.setPlaybackRate && this.player.setPlaybackRate(h), t.loop !== f && this.player.setLoop && this.player.setLoop(f);
  }
  getDuration() {
    return this.isReady ? this.player.getDuration() : null;
  }
  getCurrentTime() {
    return this.isReady ? this.player.getCurrentTime() : null;
  }
  getSecondsLoaded() {
    return this.isReady ? this.player.getSecondsLoaded() : null;
  }
  seekTo(t, r, a) {
    if (!this.isReady) {
      t !== 0 && (this.seekOnPlay = t, setTimeout(() => {
        this.seekOnPlay = null;
      }, dr));
      return;
    }
    if (r ? r === "fraction" : t > 0 && t < 1) {
      const o = this.player.getDuration();
      if (!o) {
        console.warn("ReactPlayer: could not seek using fraction – duration not yet available");
        return;
      }
      this.player.seekTo(o * t, a);
      return;
    }
    this.player.seekTo(t, a);
  }
  render() {
    const t = this.props.activePlayer;
    return t ? /* @__PURE__ */ ae.default.createElement(
      t,
      {
        ...this.props,
        onMount: this.handlePlayerMount,
        onReady: this.handleReady,
        onPlay: this.handlePlay,
        onPause: this.handlePause,
        onEnded: this.handleEnded,
        onLoaded: this.handleLoaded,
        onError: this.handleError
      }
    ) : null;
  }
}
i(k, "displayName", "Player");
i(k, "propTypes", Le.propTypes);
i(k, "defaultProps", Le.defaultProps);
var hr = Object.create, M = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, mr = Object.getOwnPropertyNames, Pr = Object.getPrototypeOf, vr = Object.prototype.hasOwnProperty, gr = (e, t, r) => t in e ? M(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Or = (e, t) => {
  for (var r in t)
    M(e, r, { get: t[r], enumerable: !0 });
}, De = (e, t, r, a) => {
  if (t && typeof t == "object" || typeof t == "function")
    for (let n of mr(t))
      !vr.call(e, n) && n !== r && M(e, n, { get: () => t[n], enumerable: !(a = _r(t, n)) || a.enumerable });
  return e;
}, R = (e, t, r) => (r = e != null ? hr(Pr(e)) : {}, De(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  !e || !e.__esModule ? M(r, "default", { value: e, enumerable: !0 }) : r,
  e
)), wr = (e) => De(M({}, "__esModule", { value: !0 }), e), s = (e, t, r) => (gr(e, typeof t != "symbol" ? t + "" : t, r), r), ke = {};
Or(ke, {
  createReactPlayer: () => $r
});
var br = wr(ke), b = R(K), Sr = R(oe), H = R(zt), ne = R(Ee), A = Me, Ne = L, Tr = R(cr);
const Er = (0, Ne.lazy)(() => import(
  /* webpackChunkName: 'reactPlayerPreview' */
  "./Preview.DEVkx785.js"
).then((e) => e.P)), Ar = typeof window < "u" && window.document && typeof document < "u", Cr = typeof U < "u" && U.window && U.window.document, Mr = Object.keys(A.propTypes), Rr = Ar || Cr ? b.Suspense : () => null, E = [], $r = (e, t) => {
  var r;
  return r = class extends b.Component {
    constructor() {
      super(...arguments), s(this, "state", {
        showPreview: !!this.props.light
      }), s(this, "references", {
        wrapper: (a) => {
          this.wrapper = a;
        },
        player: (a) => {
          this.player = a;
        }
      }), s(this, "handleClickPreview", (a) => {
        this.setState({ showPreview: !1 }), this.props.onClickPreview(a);
      }), s(this, "showPreview", () => {
        this.setState({ showPreview: !0 });
      }), s(this, "getDuration", () => this.player ? this.player.getDuration() : null), s(this, "getCurrentTime", () => this.player ? this.player.getCurrentTime() : null), s(this, "getSecondsLoaded", () => this.player ? this.player.getSecondsLoaded() : null), s(this, "getInternalPlayer", (a = "player") => this.player ? this.player.getInternalPlayer(a) : null), s(this, "seekTo", (a, n, o) => {
        if (!this.player)
          return null;
        this.player.seekTo(a, n, o);
      }), s(this, "handleReady", () => {
        this.props.onReady(this);
      }), s(this, "getActivePlayer", (0, H.default)((a) => {
        for (const n of [...E, ...e])
          if (n.canPlay(a))
            return n;
        return t || null;
      })), s(this, "getConfig", (0, H.default)((a, n) => {
        const { config: o } = this.props;
        return Sr.default.all([
          A.defaultProps.config,
          A.defaultProps.config[n] || {},
          o,
          o[n] || {}
        ]);
      })), s(this, "getAttributes", (0, H.default)((a) => (0, Ne.omit)(this.props, Mr))), s(this, "renderActivePlayer", (a) => {
        if (!a)
          return null;
        const n = this.getActivePlayer(a);
        if (!n)
          return null;
        const o = this.getConfig(a, n.key);
        return /* @__PURE__ */ b.default.createElement(
          Tr.default,
          {
            ...this.props,
            key: n.key,
            ref: this.references.player,
            config: o,
            activePlayer: n.lazyPlayer || n,
            onReady: this.handleReady
          }
        );
      });
    }
    shouldComponentUpdate(a, n) {
      return !(0, ne.default)(this.props, a) || !(0, ne.default)(this.state, n);
    }
    componentDidUpdate(a) {
      const { light: n } = this.props;
      !a.light && n && this.setState({ showPreview: !0 }), a.light && !n && this.setState({ showPreview: !1 });
    }
    renderPreview(a) {
      if (!a)
        return null;
      const { light: n, playIcon: o, previewTabIndex: h, oEmbedUrl: _, previewAriaLabel: f } = this.props;
      return /* @__PURE__ */ b.default.createElement(
        Er,
        {
          url: a,
          light: n,
          playIcon: o,
          previewTabIndex: h,
          previewAriaLabel: f,
          oEmbedUrl: _,
          onClick: this.handleClickPreview
        }
      );
    }
    render() {
      const { url: a, style: n, width: o, height: h, fallback: _, wrapper: f } = this.props, { showPreview: g } = this.state, v = this.getAttributes(a), S = typeof f == "string" ? this.references.wrapper : void 0;
      return /* @__PURE__ */ b.default.createElement(f, { ref: S, style: { ...n, width: o, height: h }, ...v }, /* @__PURE__ */ b.default.createElement(Rr, { fallback: _ }, g ? this.renderPreview(a) : this.renderActivePlayer(a)));
    }
  }, s(r, "displayName", "ReactPlayer"), s(r, "propTypes", A.propTypes), s(r, "defaultProps", A.defaultProps), s(r, "addCustomPlayer", (a) => {
    E.push(a);
  }), s(r, "removeCustomPlayers", () => {
    E.length = 0;
  }), s(r, "canPlay", (a) => {
    for (const n of [...E, ...e])
      if (n.canPlay(a))
        return !0;
    return !1;
  }), s(r, "canEnablePIP", (a) => {
    for (const n of [...E, ...e])
      if (n.canEnablePIP && n.canEnablePIP(a))
        return !0;
    return !1;
  }), r;
};
var Ir = Object.create, N = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, Dr = Object.getOwnPropertyNames, kr = Object.getPrototypeOf, Nr = Object.prototype.hasOwnProperty, Ur = (e, t) => {
  for (var r in t)
    N(e, r, { get: t[r], enumerable: !0 });
}, Ue = (e, t, r, a) => {
  if (t && typeof t == "object" || typeof t == "function")
    for (let n of Dr(t))
      !Nr.call(e, n) && n !== r && N(e, n, { get: () => t[n], enumerable: !(a = Lr(t, n)) || a.enumerable });
  return e;
}, jr = (e, t, r) => (r = e != null ? Ir(kr(e)) : {}, Ue(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  !e || !e.__esModule ? N(r, "default", { value: e, enumerable: !0 }) : r,
  e
)), xr = (e) => Ue(N({}, "__esModule", { value: !0 }), e), je = {};
Ur(je, {
  default: () => Br
});
var Hr = xr(je), F = jr(xt), zr = br;
const Vr = F.default[F.default.length - 1];
var Br = (0, zr.createReactPlayer)(F.default, Vr);
const Fr = /* @__PURE__ */ Be(Hr), Kr = He(({ brick: e, editable: t }, r) => {
  const a = Ke(e), n = e.props;
  return /* @__PURE__ */ xe("div", { ref: r, className: ze("max-h-full flex-1 relative", t && "", Object.values(a)), children: [
    t && /* @__PURE__ */ Q("div", { className: "absolute inset-0" }),
    /* @__PURE__ */ Q(Fr, { url: n.url, width: "100%", height: "100%" })
  ] });
}), Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  default: Kr
}, Symbol.toStringTag, { value: "Module" }));
export {
  $t as p,
  L as u,
  Qr as v
};
//# sourceMappingURL=video.BPYPs1G4.js.map
